(function(t){function e(e){for(var a,o,n=e[0],c=e[1],l=e[2],u=0,d=[];u({}),computed:{...Object(L["c"])("notify",["notify"]),icon(){switch(this.notify.type){default:case"info":return"information";case"success":return"check-circle";case"warning":return"alert-outline";case"alarm":return"alert"}},color(){switch(this.notify.type){default:case"info":return"light-blue darken-1";case"success":return"green darken-1";case"warning":return"orange darken-1";case"alarm":return"red darken-1"}}}},q=N,E=s("2877"),R=Object(E["a"])(q,U,M,!1,null,null,null),B=R.exports,z=s("a797"),H=s("490a"),F=function(){var t=this,e=t._self._c;return e(z["a"],{attrs:{value:t.loading.isShow}},[e(H["a"],{attrs:{indeterminate:"",color:"_light_grey",size:"70"}},[t._v(t._s(t.loadingText))])],1)},V=[],W={name:"Loading",data:()=>({}),computed:{...Object(L["c"])("loading",["loading"]),loadingText(){return this.loading.isNum?this.loading.value:this.$t(this.loading.text)}}},Q=W,K=Object(E["a"])(Q,F,V,!1,null,null,null),Y=K.exports;const G=s("1c46");var J={state:{},userTypeText(t){switch(t){default:case"1":return"generalUser";case"2":return"softwareDeveloper";case"30":return"softwareReviewer";case"31":return"reviewerPhase1";case"32":return"reviewerPhase2";case"33":return"reviewerPhase3";case"4":return"deviceAdmin";case"5":return"systemAdminLv1";case"6":return"systemAdminLv2";case"7":return"systemAdminLv3";case"8":return"systemAdminLv4";case"9":return"systemAdminLv5"}},userTypeValue(t){switch(t){default:case"generalUser":return"1";case"softwareDeveloper":return"2";case"softwareReviewer":return"30";case"reviewerPhase1":return"31";case"reviewerPhase2":return"32";case"reviewerPhase3":return"33";case"deviceAdmin":return"4";case"systemAdminLv1":return"5";case"systemAdminLv2":return"6";case"systemAdminLv3":return"7";case"systemAdminLv4":return"8";case"systemAdminLv5":return"9"}},uuid(){let t=Date.now();return"undefined"!==typeof performance&&"function"===typeof performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const s=(t+16*this.random())%16|0;return t=Math.floor(t/16),("x"===e?s:3&s|8).toString(16)})},randomId(){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e=62,s=s=>{const a=[];let i=s,r=s,o="";for(;;){if(i=0;e-=1)o+=t.substr(a[e],1);return o};return s(Date.now())+s(parseInt(this.random().toString().substr(2,5),10))},random(){return G.randomBytes(1)[0]/255}},Z=s("88c8"),X=s("a030");const tt="Vmx-production-UsersTable-1CWF7GFZFV74B";var et={state:{},list(){return new Promise((t,e)=>{X["a"].post("API","/awsDB",{body:{operation:"list",tableName:tt}}).then(e=>{t(e.data)}).catch(t=>{e(t)})})},read(t){return new Promise((e,s)=>{X["a"].post("API","/awsDB",{body:{operation:"read",tableName:tt,primaryKey:"email",value:t}}).then(t=>{e(t.data)}).catch(t=>{s(t)})})},create(t,e="portal"){return new Promise((s,a)=>{const i={...t};i.opMode=e,X["a"].post("UserAPI","",{body:i}).then(t=>{i.opMode="admin",i.group="admin"===e?"pass":"pending",i.createTime=(new Date).getTime(),i.updateTime=(new Date).getTime(),i.packages="All",i.publishers="All",i.types="All",delete i.opMode,X["a"].post("API","/awsDB",{body:{operation:"create",tableName:tt,item:i}}).then(t=>{s(t)}).catch(t=>{a(t)})}).catch(t=>{a(t)})})},update(t){return new Promise((e,s)=>{X["a"].post("API","/awsDB",{body:{operation:"update",tableName:tt,primaryKey:"email",item:t}}).then(t=>{e(t)}).catch(t=>{s(t)})})},delete(t){return new Promise((e,s)=>{X["a"].del("UserAPI","/"+t.cognitoId).then(a=>{X["a"].post("API","/awsDB",{body:{operation:"delete",tableName:tt,primaryKey:"email",value:t.email}}).then(t=>{e(t)}).catch(t=>{s(t)}),e(a)}).catch(t=>{s(t)})})},pendingPass(t,e){return new Promise((s,a)=>{X["a"].get("UserAPI","/checkPass/"+t).then(()=>{this.update(e).then(t=>{s(t)}).catch(t=>{a(t)})}).catch(t=>{a(t)})})},pendingReject(t,e){return new Promise((s,a)=>{const i={userName:t.email,rejectReason:e};X["a"].post("UserAPI","/checkReject",{body:i}).then(()=>{X["a"].post("API","/awsDB",{body:{operation:"delete",tableName:tt,primaryKey:"email",value:t.email}}).then(t=>{s(t)}).catch(t=>{a(t)})}).catch(t=>{a(t)})})},encrypt(t){return new Promise((e,s)=>{X["a"].post("EcPayAPI","/encrypt",{body:t,headers:{"x-api-key":"WFbdOSQfRm3tIzKUc85Og4sqKJ6tcidK2tLqMEG1"}}).then(t=>{e(t)}).catch(t=>{s(t)})})}},st=(s("d9e2"),s("bc3a")),at=s.n(st),it={state:{isConnect:!1,isInstallRuntime:!1,websocket:null},connect(){this.state.websocket=new WebSocket("ws://127.0.0.1:45658/vmxinstall"),this.state.websocket.binaryType="arraybuffer",this.state.websocket.onopen=()=>{this.state.isConnect=!0,console.log("socket connected...")},this.state.websocket.onclose=()=>{this.state.isConnect=!1,console.log("socket close...")},at()({url:"https://host.docker.internal:44566/v1/Signin",method:"POST",data:{Username:"Admin2",Password:"Admin2"}}).then(()=>{this.state.isInstallRuntime=!0}).catch(()=>{console.log("Fail to start runtime"),this.state.isInstallRuntime=!1})},isConnect(){return this.state.isConnect},isInstallRuntime(){return this.state.isInstallRuntime},async install(t){let e=0;await this.state.websocket.send(t.id),await this.state.websocket.send(t.md5);const s=new Blob(["0"],{type:"application/zip"});return this.state.websocket.send(s),new Promise((t,s)=>{this.state.websocket.onmessage=a=>{if("failed"===a.data)return console.log(a.data),void s(new Error("failed"));e+=1,e>=3&&t("ok"),console.log(e)}})}},rt=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"pa-8",staticStyle:{position:"relative"}},[e("div",[e("h2",{staticClass:"text-center"},[t._v("智慧機械雲平台服務條款")]),e("p",{staticClass:"my-8"},[t._v(" 智慧機械雲平台(以下簡稱「本平台」)係財團法人工業技術研究院(以下簡稱「工研院」)執行經濟部計畫所設置,在使用「本平台」之前,請您詳細閱讀、了解並同意「智慧機械雲平台服務條款」(以下簡稱「本服務條款」),如果您不同意本服務條款的內容,或者您所屬的國家或地域排除本服務條款內容之全部或一部時,您應立即停止使用「本平台」及「本平台」服務。當您使用或繼續使用「本平台」時,即視為您已閱讀、瞭解並同意接受本服務條款之所有內容及其後之修改變更。 ")]),e("p",{staticClass:"mt-1 mb-8 font-weight-bold text-decoration-underline"},[t._v(" 除非「本平台」有另行公告,否則「本平台」將於經濟部計畫執行完畢或經濟部通知計畫停止執行時,即行關閉並停止服務。 ")]),e("h3",[t._v("壹、免責聲明")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、「本平台」因事實上無法就平台上所有之資料或服務進行有無侵權之審查,故不保證所提供之資料或服務絕無侵害他人權利之可能;「本平台」亦未就其正確性、時效性、適用性及可靠性為任何表述或判斷。「本平台」上所有之資料或服務都是依「現況」及「現有」基礎提供,「本平台」明確宣告不作任何明示或默示之擔保(保證),其中包括但不限於商業適售性、特定目的之適用性及未侵害他人權利。您應自行承擔因使用「本平台」資料或服務或「本平台」關閉可能產生之任何損害或損失。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 二、「本平台」所提供的任何資料或服務僅作參考用途,並不構成對您任何形式之建議。「本平台」僅提供您在「本平台」進行APP 應用產品 (以下簡稱「產品」)之買賣及「產品」之下載服務。工研院或「本平台」並非「產品」之買方或賣方。工研院或「本平台」不會對您透過「本平台」購買或販售之「產品」提供任何瑕疵擔保或保固責任。「產品」之使用規範、瑕疵擔保責任、保固責任等所有買賣雙方之權利義務,均由買賣雙方約定,與工研院或「本平台」無涉。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 三、「產品」買賣之收費、開立發票、退貨/退費、第三方金流公司服務內容及報酬、「產品」帳務與金流等由「本平台」指定之第三方金流公司負責製訂。您需自行閱讀「本平台」公告之第三方金流公司製訂之相關規範與規定。您一旦在「本平台」進行「產品」之買賣,代表您同意並接受上述規範與規定。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 四、「本平台」有權隨時進行以下事項,恕不另行通知:"),e("br"),t._v(" (一)基於任何理由而修改、暫停或終止「本平台」服務或其任何部分之運作或存取。"),e("br"),t._v(" (二)修改或變更「本平台」服務或其任何部分以及相關政策或條款。"),e("br"),t._v(" (三)在必要情況下中斷「本平台」服務或其任何部分之運作,以利進行定期或非定期維護、錯誤更正或其他變更。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 五、「本平台」可能會提供連結至第三方網站或網路資源的連結,您可能會因此連結至其他業者經營的網站,但不表示「本平台」與該等業者有任何關係。其他業者經營的網站均由各該業者自行負責,不屬「本平台」控制及負責範圍之內。對於任何與「本平台」連結的第三方網站所提供之服務內容,包括檔案、軟體、內容、音樂、圖像或其他任何格式之數位資料,「本平台」並不負任何檢查其真偽,授權與否等責任,「本平台」僅善意引用及介紹,請您知悉並同意,「本平台」無權利與義務,對第三方網站所提供服務之相關內容進行修訂、拒絕或刪除。在您使用第三方所提供之服務內容時,有可能會接觸到使您感覺到冒犯、反感或不悅、粗俗之內容,您必須自行承擔這些相關之風險。 ")]),e("h3",[t._v("貳、智慧財產權保護政策")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、「本平台」尊重他人智慧財產權,您不得有任何侵害著作權或其他智慧智慧財產權之行為。經權利人通知您涉有侵權行為後,「本平台」將進行所有停止侵權之處置。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 二、如您涉有侵權情事,「本平台」得終止全部或部分服務。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 三、若您認為「本平台」之任何內容已侵害您的智慧財產權,或您係該智慧財產權人之授權人或代理人,您可將下述事項以郵寄、傳真或電子郵件方式,透過以下聯絡窗口通知「本平台」:"),e("br"),t._v(" (一)通知應載明事項 "),e("ol",[e("li",[t._v(" 權利人或其代理人之姓名或名稱、地址及聯絡電話、傳真號碼、電子郵件信箱或其他聯繫方式。如為個人,請簽名或蓋章;如為公司行號,請加蓋大小章。以電子郵件信箱檢舉者,請將前述事項載於書面,並將該書面掃描為電子檔後,作為電子郵件之附件傳送予「本平台」,此檢舉方式不接受電子簽章。 ")]),e("li",[t._v(" 被侵害之智慧財產權內容之名稱。 ")]),e("li",[t._v(" 請求「本平台」將涉有侵害智慧財產權之內容移除或使他人無法進入之聲明。 ")]),e("li",[t._v(" 足使「本平台」知悉該涉有侵權內容之相關資訊及其存取路徑。 ")]),e("li",[t._v(" 權利人表示其係基於善意,相信涉有侵權內容係未經合法授權或違反智慧財產權相關規定之陳述。 ")]),e("li",[t._v(" 註明如有不實致他人受損害者,權利人願負法律責任之聲明。 ")])]),t._v(" (二)您的通知不符合上述格式者,「本平台」將通知補正;您未於通知期限內補正者,視為未提出通知。"),e("br"),t._v(" (三)聯絡窗口: "),e("ol",[e("li",[t._v(" 姓名/名稱:王培寧 ")]),e("li",[t._v(" 聯絡電話:049-2345658 ")]),e("li",[t._v(" 傳真號碼:049-2345301 ")]),e("li",[t._v(" 電子郵件信箱:PNWang@itri.org.tw ")]),e("li",[t._v(" 地址: 540219南投縣南投市文獻路2號B204室 ")])])]),e("h3",[t._v("參、個人資料的蒐集、處理及利用方式")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、「本平台」係因工研院執行經濟部計畫所設置,工研院為提供「本平台」服務而需蒐集、處理及利用您的個人資料(以下簡稱「個資」),謹先告知下列事項:"),e("br"),t._v(" (一)蒐集目的:工研院為提供您「本平台」上之資料或服務或執行經濟部計畫所需。"),e("br"),t._v(" (二)個資類別:包括但不限於姓名、電子郵件、住家電話號碼、行動電話、住址、金融機構帳戶之號碼與姓名、信用卡或簽帳卡之號碼等。"),e("br"),t._v(" (三)利用期間:至蒐集目的消失為止。"),e("br"),t._v(" (四)利用地區:中華民國境內。"),e("br"),t._v(" (五)利用者:工研院、經濟部及工研院指定之第三方金流機構。"),e("br"),t._v(" (六)利用方式::在不違反蒐集目的的前提下,以網際網路、電子郵件、書面、傳真及其他合法方式利用之。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 二、您得以書面主張下列權利:"),e("br"),t._v(" (一)查詢或請求閱覽。"),e("br"),t._v(" (二)請求製給複製本。"),e("br"),t._v(" (三)請求補充或更正。"),e("br"),t._v(" (四)請求停止蒐集、處理或利用。"),e("br"),t._v(" (五)請求刪除。"),e("br"),t._v(" 若有上述需求,請與承辦人員(電話:049-2345658;E-mail:PNWang@itri.org.tw)聯繫,工研院將依法進行回覆。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 三、您若不同意上揭個資蒐集及利用條款,「本平台」可能無法對您提供完整的服務,亦可能無法維護您的權益。 ")]),e("h3",[t._v("肆、帳號、密碼與安全性")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 您應妥善保管您的帳號與密碼,如有未經授權者使用您的帳號或密碼,或發現其他安全漏洞,您應立即通知並尋求「本平台」之協助,以防止任何可能之損害擴大。「本平台」並得採取適當處置或視情況停止您繼續使用「本平台」。 ")]),e("h3",[t._v("伍、金流條款/交易條款(含退貨/退款機制)")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 無論您是「本平台」服務之買方(消費者)或賣方(即「本平台」店家),一旦您在「本平台」進行交易,即表示您接受並同意以下金流及交易相關條款: 一、「本平台」服務之金流由紅陽科技股份有限公司(以下簡稱「紅陽」)提供,其服務內容及條件如下:"),e("br"),t._v(" (一)支付工具:「本平台」交易限用信用卡付款。"),e("br"),t._v(" (二)「紅陽」將向「本平台」店家收取「紅陽」服務費並代收「本平台」服務費。"),e("br"),t._v(" (三)收費方式:「紅陽」撥款予「本平台」店家時內扣。"),e("br"),t._v(" (四)支付流程: 信用卡:消費者至「本平台」店家網頁選購商品→消費者輸入信用卡付款資訊→取得消費者發卡銀行之授權碼→成功授權→收單銀行撥款至「紅陽」與信託銀行簽訂信託契約所約定之信託專戶→交易完成後依約定時程,由「紅陽」指示信託銀行整批匯款至「本平台」店家指定戶頭。"),e("br"),t._v(" (五)付帳戶款項提領方式:依「本平台」店家與「紅陽」簽訂契約之約定期間(如上述支付流程內說明),由「紅陽」主動指示信託銀行辦理匯撥。"),e("br"),t._v(" (六)「本平台」店家與「紅陽」將另簽訂金流服務契約,規範雙方權利義務。"),e("br")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 二、匯率之計算"),e("br"),t._v(" 「本平台」服務所有交易帳款均應以新臺幣計價結付,不涉及匯率換算。若消費者以國外信用卡刷卡結帳,則依發卡銀行以結帳日當天的匯率為準,至於發卡銀行如何換算匯率,由持卡者與發卡銀行聯繫。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 三、繳費金額限制"),e("br"),t._v(" 信用卡:單筆金額限制一百萬以內。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 四、發票機制"),e("br"),t._v(" (一)消費者於消費時可選擇存入電子發票手機條碼,做為「本平台」店家後續開立發票之依據。"),e("br"),t._v(" (二)考量系統維護一致性,建議「本平台」店家使用「紅陽」發票服務。若「本平台」店家希望自行開立發票,「本平台」亦提供消費者所留存之手機條碼等資訊做為開立發票之依據。"),e("br"),t._v(" (三)「本平台」店家於上線前須自行向「紅陽」申請開通發票服務,後續透過「本平台」與「紅陽」串接之電子發票系統,由「紅陽」端協助開立電子發票,相關服務衍伸之合約內容「本平台」店家須自行與「紅陽」洽詢。「紅陽」發票服務可參考網址:https://inv.sunpay.com.tw/。"),e("br"),t._v(" (四)「紅陽」亦提供協助開立紙本發票的服務,「本平台」店家若有此需求,須自行與「紅陽」洽詢。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 五、帳單付款規則"),e("br"),t._v(" (一)帳單採月結制,消費者將統一在每個月 1 號收到繳費通知,提醒繳交上一期費用,並給予寬限期 15 日。若消費者仍未繳款,則於當月 8 號和 15 號將再收到提醒繳款通知,當月 16 號該消費者之使用者帳號將被標示為警示用戶。"),e("br"),t._v(" (二)消費者如被標記為警示用戶,在其完成繳交款項前,將每日收到繳款通知。"),e("br"),t._v(" (三)「本平台」店家將於消費者啟動「產品」時,發動「查詢警示狀態 API」,若回傳的狀態標示為警示用戶,則該店家可決定後續停權機制。"),e("br"),t._v(" (四)若消費者超過寬限期仍未繳款,則該消費者帳號將被標示為警示用戶,並收到繳費通知。"),e("br"),t._v(" (五)若消費者已繳交費用,則其帳號的警示狀態將被取消。"),e("br"),t._v(" (六)訂閱制以月為單位結算費用,若消費者於月底訂閱,仍會以該月整月之訂閱費用計費,消費者將於次月 1 日收到提醒繳費相關訊息之通知。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 六、退貨/退款/取消訂閱機制"),e("br"),t._v(" 消費者有 14 天鑑賞期,鑑賞期自交易當日起算,並以提出退貨申請當日判斷是否超過 14 天鑑賞期。以下根據「產品」交易模式分別說明:"),e("br"),t._v(" (一)買斷制:若於帳單結算前退貨,且退貨時未滿 14 天鑑賞期,則交易取消,不涉及退款。若於帳單結算後退貨,且退貨時未滿 14 天鑑賞期,則同意退貨,交易金額將全額退還。若退貨時已超過 14天鑑賞期,將拒絕退貨及退款申請。"),e("br"),t._v(" (二)計時/計次收費:若於帳單結算前退貨,且退貨時未滿 14 天鑑賞期,則交易取消,不涉及退款行為。若於帳單結算後退貨,且退貨時未滿 14 天鑑賞期,則同意退貨,交易金額將全額退還。若退貨時已超過 14 天鑑賞期,則將拒絕退貨及退款申請。"),e("br"),t._v(" (三)訂閱制:若於帳單結算前取消訂閱,且退貨時未滿 14 天鑑賞期,則同意退訂,次月 1 號不會產生訂單,故不涉及退款行為。若於帳單結算前取消訂閱,且退貨時超過 14 天鑑賞期,則「本平台」店家將辦理取消訂閱,但次月 1 號仍會產生訂單,消費者仍須繳費。若於帳單結算後取消訂閱,且取消訂閱時未滿 14 天鑑賞期,則同意退訂,交易金額將全額退還。若於帳單結算後取消訂閱,且取消訂閱時超過 14 天鑑賞期,則「本平台」店家將辦理取消訂閱,但消費者仍須繳納費用。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 七、其他注意事項"),e("br"),t._v(" 消費者了解並同意「產品」之瑕疵擔保及保固均由「本平台」店家負擔,「本平台」、「本平台」營運單位(指工研院)、及第三方金流處理機構均不負任何瑕疵擔保責任。 ")]),e("h3",[t._v("陸、一般條款")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、本服務條款中,如有任何條款之全部或一部無效時,不影響其他條款之效力。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 二、「本平台」對本服務條款之適用保有最終解釋之權利。 ")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 三、因本服務條款所涉範圍之爭議與糾紛,以中華民國法律為準據法,並以台灣新竹地方法院為第一審管轄法院。 ")])]),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(t._s(t.$t("disagree")))]),e(h["a"],{staticClass:"_blue white--text",on:{click:function(e){return t.$emit("agree")}}},[t._v(t._s(t.$t("agree")))])],1)],1)},ot=[],nt={},ct=nt,lt=(s("62bb"),Object(E["a"])(ct,rt,ot,!1,null,null,null)),ut=lt.exports,ht={name:"Portal",components:{Notify:B,Loading:Y,TermsService:ut},data:()=>({background:"",localUrl:`${window.location.origin}${window.location.pathname}`,remoteUrl:null,isSignUp:!1,showSuccessDialog:!1,showBulletin:!1,isNoShowNext:!1,bulletin:"",showServiceDialog:!1}),computed:{...Object(L["c"])("authenticate",["isSignIn","user","userAttribute"]),...Object(L["b"])("dbTable",["productList","permissionId"]),...Object(L["b"])("locale",["locale","localeItems"]),accountItems(){return"pass"===this.userAttribute.group?(this.isSignUp=!0,["modifyData","modifyPassword","signOut"]):"pending"===this.userAttribute.group?["signOut"]:["signUp","signOut"]},pages(){let t=[{title:"application",items:[{title:"main",text:this.$t("main"),icon:"mdi-home"},{title:"popularRankings",text:this.$t("popularRankings"),icon:"mdi-star"},{title:"newProducts",text:this.$t("newProducts"),icon:"mdi-new-box"}]},{title:"others",items:[{title:"downloadZone",text:this.$t("downloadZone"),icon:"mdi-download"},{title:"serviceSite",text:this.$t("serviceSite"),icon:"mdi-hand-heart"}]}];return this.isSignIn&&this.isSignUp&&(t.push({title:"account",items:[{title:"myWishList",text:this.$t("myWishList"),icon:"mdi-bookmark-plus-outline"}]}),this.isPermit("usage")&&(t[t.length-1].items.push({title:"myApp",text:this.$t("myApp"),icon:"mdi-table-account"}),t[t.length-1].items.push({title:"deployApp",text:this.$t("deployApp"),icon:"mdi-application-export"}),t[t.length-1].items.push({title:"billInfo",text:this.$t("billInfo"),icon:"mdi-account-cash"}),t[t.length-1].items.push({title:"accountingInfo",text:this.$t("accountingInfo"),icon:"mdi-billboard"})),(this.isPermit("launch")||this.isPermit("audit")||this.isPermit("basicStatistics"))&&t[t.length-1].items.push({title:"systemManage",text:this.$tc("systemManage",this.sysManageNameNo),icon:"mdi-monitor-dashboard"}),(this.isPermit("basicStatistics")||this.isPermit("basicQuery"))&&t[t.length-1].items.push({title:"statistics",text:this.$t("statistics"),icon:"mdi-chart-bar"})),t[t.length-1].items.push({title:"customerService",text:this.$t("customerService"),icon:"mdi-face-agent"}),t},sysManageNameNo(){return this.isPermit("basicStatistics")?2:this.isPermit("audit")?1:(this.isPermit("launch"),0)},signInDescription(){return Object.keys(this.userAttribute).length?(Object.prototype.hasOwnProperty.call(this.userAttribute,"agreeService")||(this.showServiceDialog=!0),this.userAttribute.name):""},backgroundStyle(){if("color"===this.background.type)return{backgroundColor:this.background.datas};{let t="url(./bg.jpg)";return"DEFAULT"!==this.background.datas&&(t=`url(${this.background.datas})`),{backgroundImage:t}}},isAvatar(){return!!Object.prototype.hasOwnProperty.call(this.userAttribute,"avatar")&&"image"===this.userAttribute.avatar.type},avatarPath(){return"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/public/avatar/"+this.userAttribute.avatar.path},photoWord(){return Object.keys(this.userAttribute).length?this.userAttribute.name[0]:""},isOauth(){return!0},bulletinContent(){return this.bulletin[this.locale]}},created(){const t=new URLSearchParams(window.location.search);null!==t.get("code")||(window.localStorage.removeItem("oauthRefreshToken"),window.localStorage.removeItem("oauthCode")),window.sessionStorage.setItem("id",J.randomId());let e=null;e=Object.keys(this.$route.query).length&&Object.prototype.hasOwnProperty.call(this.$route.query,"locale")?this.$route.query.locale:window.localStorage.getItem("locale"),null===e&&(e=navigator.language.toLowerCase(),"zh-tw"!==e&&"en-us"!==e&&(e="en-us")),this.changeLocaleHandler(e),Object.keys(this.$route.query).length&&Object.prototype.hasOwnProperty.call(this.$route.query,"deviceId")&&window.localStorage.setItem("deviceId",this.$route.query.deviceId),this.isOauth?this.oauthProcess():this.$store.dispatch("authenticate/currentUser").then(t=>{et.read(t.attributes.email).then(t=>{this.$store.commit("authenticate/setUserAttribute",t),"pending"===t.group&&(this.showSuccessDialog=!0)})}).catch(t=>{console.log(t)}),this.$store.dispatch("dbTable/loadCategory").then(()=>{this.$store.dispatch("dbTable/loadProduct").then(()=>{})}),this.$store.dispatch("dbTable/loadCustom"),this.$store.dispatch("dbTable/loadPermission"),Z["a"].scan("info").then(t=>{this.background=t.find(t=>"background"===t.id)}),Z["a"].scan("info").then(t=>{this.bulletin=t.find(t=>"notice-1"===t.id).datas});const s=window.localStorage.getItem("bulletinExpiredDate");s!==(new Date).toLocaleDateString()&&(this.showBulletin=!0),it.connect(),this.$store.commit("authenticate/setUserUuid",J.uuid())},methods:{oauthProcess(){let t=window.localStorage.getItem("oauthRefreshToken");const e=new URLSearchParams(window.location.search);null!==e.get("code")&&(this.remoteUrl=e.get("redirect_uri"),this.$store.dispatch("authenticate/oauthToken",{refreshToken:t,code:e.get("code"),localUrl:this.localUrl,remoteUrl:this.remoteUrl}).then(t=>{window.localStorage.setItem("oauthRefreshToken",t.refreshToken),window.localStorage.setItem("oauthCode",e.get("code")),this.$store.dispatch("authenticate/oauthCurrentUser",{accessToken:t.accessToken}).then(t=>{et.read(t.attributes.email).then(e=>{if(void 0===e)return void this.$router.push({name:"signUp",params:{redirectUrl:null===this.remoteUrl?this.localUrl:this.remoteUrl}});"pending"===e.group&&(this.showSuccessDialog=!0);const s={...e};t.attributes.cognitoId!==s.cognitoId&&(et.update({email:s.email,cognitoId:t.attributes.cognitoId}),s.cognitoId=t.attributes.cognitoId),this.$store.commit("authenticate/setUserAttribute",s),null!==this.remoteUrl&&this.$store.dispatch("authenticate/oauthSignInUrl",{redirectUrl:this.remoteUrl}).then(t=>{this.routerHandler(t)})})})}).catch(t=>{console.log(t),this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errLoginExpired")]}),this.oauthSignOut(null===this.remoteUrl?this.localUrl:this.remoteUrl)}))},signIn(){this.isOauth?this.$store.dispatch("authenticate/oauthSignInUrl",{redirectUrl:this.localUrl}).then(t=>{this.routerHandler(t)}):this.changePageHandler("signIn")},oauthSignOut(t){this.$store.dispatch("authenticate/oauthSignOutUrl",{redirectUrl:t}).then(t=>{window.localStorage.removeItem("oauthRefreshToken"),window.localStorage.removeItem("oauthCode"),this.routerHandler(t)})},agreeService(){this.showServiceDialog=!1,et.update({email:this.userAttribute.email,agreeService:1})},isPermit(t){return!!this.isSignIn&&(!!Object.keys(this.userAttribute).length&&-1!==Object.keys(this.userAttribute.policy).findIndex(e=>e===this.permissionId(t)))},changePageHandler(t,e={}){if(this.$route.name!==t)switch(t){case"systemManage":return void window.open("https://manager.imacloud.com.tw/admin");case"billInfo":return void window.open("https://cashflow.imacloud.com.tw/pay/login");case"myApp":{let e=[];if(this.userAttribute.ownApp&&this.userAttribute.ownApp[localStorage.getItem("deviceId")]&&Object.keys(this.userAttribute.ownApp[localStorage.getItem("deviceId")]).forEach(t=>{let s=this.productList.find(e=>e.id===t);void 0!==s&&e.push(s)}),this.$store.commit("dbTable/setFilterList",e),this.$store.commit("dbTable/setFilterSubject",this.$t(t)),"filterList"===this.$route.name)return;return void this.$router.push({name:"filterList"})}case"myWishList":{const e=[];if(this.userAttribute.wishApp&&this.userAttribute.wishApp.forEach(t=>{let s=this.productList.find(e=>e.id===t);void 0!==s&&e.push(s)}),this.$store.commit("dbTable/setFilterList",e),this.$store.commit("dbTable/setFilterSubject",this.$t(t)),"filterList"===this.$route.name)return;return void this.$router.push({name:"filterList"})}default:return void this.$router.push({name:t,params:e})}},routerHandler(t){window.location.href=t},accountListHandler(t){switch(t){case"signOut":this.isOauth?this.oauthSignOut(this.localUrl):this.$store.dispatch("authenticate/signOut").then(()=>{-1!==this.$route.path.indexOf("account")&&this.changePageHandler("main")}),this.$store.commit("notify/set",{type:"success",msg:[this.$t("signOut")," ",this.$t("success")]});break;case"modifyPassword":this.changePageHandler("modifyPassword","modifyPassword");break;case"modifyData":this.changePageHandler("modifyData","modifyData");break;case"signUp":this.changePageHandler("signUp",{redirectUrl:null===this.remoteUrl?this.localUrl:this.remoteUrl});break;default:break}},changeLocaleHandler(t){this.$store.commit("locale/set",{locale:t}),window.localStorage.setItem("locale",t),document.title=this.$t("imacloud")},closeBulletin(){if(this.isNoShowNext){const t=(new Date).toLocaleDateString();console.log(t),window.localStorage.setItem("bulletinExpiredDate",t)}this.showBulletin=!1}}},dt=ht,mt=(s("8470"),Object(E["a"])(dt,A,D,!1,null,"7b0c4ed3",null)),pt=mt.exports,ft=s("8c4f"),gt=s("0fd9"),bt=s("b974"),vt=s("8654"),wt=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"transparent ma-0",attrs:{height:"100%",width:"100%"}},[e(d["a"],{staticClass:"_light_grey",attrs:{width:"100%",height:t.height}},[e(gt["a"],{staticClass:"px-2 customStyle"},[t._l(t.selectType,(function(s){return[e(f["a"],{key:s,attrs:{cols:"12",sm:"2"}},[e(bt["a"],{staticClass:"pa-1",attrs:{items:t.selectItems(s),prefix:t.$t(s)+":","menu-props":{bottom:!0,offsetY:!0},dense:"",label:t.$t(s)},on:{input:function(e){return t.selectFilter()},change:function(e){return t.operationLog(s,t.selectValue[s])}},model:{value:t.selectValue[s],callback:function(e){t.$set(t.selectValue,s,e)},expression:"selectValue[item]"}})],1)]})),e(T["a"]),e(f["a"],{attrs:{cols:"12",sm:"3"}},[e(vt["a"],{staticClass:"pa-1",attrs:{dense:"",label:t.$t("search")},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchKeyUp()},change:function(e){return t.operationLog("search",t.searchText)}},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}},[e(y["a"],{attrs:{slot:"prepend"},slot:"prepend"},[t._v("mdi-magnify")])],1)],1)],2)],1),e(g["a"],{staticClass:"pa-0",attrs:{fluid:""}},[e("router-view")],1)],1)},yt=[],_t={name:"Layout",components:{},data:()=>({selectType:["industrys","publishers","types","runtimeEnvironment"],selectValue:{industrys:"All",publishers:"All",types:"All",runtimeEnvironment:"All"},searchText:"",customPage:0}),computed:{...Object(L["c"])("dbTable",["filterList","filterSubject","filterParams","customList"]),...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["b"])("dbTable",["categoryList","productList","generalIndustryId"]),...Object(L["b"])("locale",["locale"]),height(){switch(this.$vuetify.breakpoint.name){case"xs":return"auto";default:case"sm":return 60}}},mounted(){this.selectValue=this.filterParams,this.$root.$on("clearFilter",()=>{this.searchText="",Object.keys(this.selectValue).forEach(t=>{this.selectValue[t]="All"})})},updated(){this.routerQuery()},methods:{industrysFilter(t,e){return"industrys"===t&&e[t]===this.generalIndustryId(this.locale)},selectFilter(){if(!this.productList.length)return;const t={};Object.keys(this.selectValue).forEach(e=>{if("All"!==this.selectValue[e]){if(t[e]=this.selectValue[e],"publishers"===e){const t=this.customList.find(t=>t.id===this.selectValue.publishers);this.customPage=void 0===t?0:t.type}}else"publishers"===e&&(this.customPage=0)});let e=[...this.productList],s="";Object.keys(t).forEach(a=>{e=e.filter(e=>e[a]&&(e[a]===t[a]||this.industrysFilter(a,e))&&"All"!==e[a]),s+=`${a}=${t[a]}&`}),this.$store.commit("dbTable/setFilterList",e),this.$store.commit("dbTable/setFilterSubject",this.$t("filter")),this.searchText="",0!==this.customPage?(this.$store.commit("dbTable/setFilterSubject",this.selectValue.publishers),this.routerPush("custom"+this.customPage)):this.routerPush("filterList"),window.history.replaceState(null,null,"#/?"+s.slice(0,-1))},selectItems(t){if(!this.categoryList.length)return[];let e=this.categoryList.filter(e=>e.category===t);e=e.map(t=>({text:t.name,value:t.id,sortNo:t.seqno}));let s=[];switch(t){case"publishers":if(!this.productList.length)break;e.forEach(t=>{const e=this.productList.filter(e=>e.publishers===t.value);e.length>0&&s.push(t)});break;default:s=[...e];break}return s.sort((t,e)=>t.sortNo-e.sortNo),s.unshift({text:"All",value:"All",sortNo:null}),s},searchKeyUp(){if(!this.productList.length)return;const t=this.productList.filter(t=>-1!==JSON.stringify(t).toLowerCase().indexOf(this.searchText.toLowerCase()));this.$store.commit("dbTable/setFilterList",t),this.$store.commit("dbTable/setFilterSubject",this.$t("search")),Object.keys(this.selectValue).forEach(t=>{this.selectValue[t]="All"}),this.routerPush("filterList")},routerQuery(){!Object.keys(this.$route.query).length||"locale"in this.$route.query||"deviceId"in this.$route.query||(Object.keys(this.$route.query).forEach(t=>{switch(t){case"industrys":case"publishers":case"types":case"runtimeEnvironment":this.selectValue[t]=this.$route.query[t];break;default:break}}),Object.keys(this.selectValue).length&&this.selectFilter())},routerPush(t){this.$route.name!==t&&this.$router.push({name:t})},operationLog(t,e){if("All"===e)return;const s={};s.id=J.randomId(),s.createTime=(new Date).getTime(),s.email=this.isSignIn?this.userAttribute.email:"",s.log={[t]:e},s.sessionId=window.sessionStorage.getItem("id"),Z["a"].create("operation",s)}}},xt=_t,Ct=(s("23be"),Object(E["a"])(xt,wt,yt,!1,null,null,null)),kt=Ct.exports,$t=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"my-5 transparent",attrs:{height:"100%",width:"100%",outlined:""}},[e("CarouselBox",{staticClass:"mt-8",attrs:{items:t.carouselItems,hideDelimiter:!0},on:{action:t.setCarouselIndexHandler}}),t._l(t.cardSubjectList,(function(s){return[e(d["a"],{key:s,staticClass:"ma-8 transparent",attrs:{outlined:""}},[e(m["c"],[e(gt["a"],{attrs:{justify:"center","justify-sm":"space-between",align:"center"}},[e(m["d"],{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t(s)))]),e(h["a"],{staticClass:"mb-5 _blue _light_grey--text",on:{click:function(e){return t.routerFilterList(s)}}},[t._v(t._s(t.$t("seeMore")))])],1),e(gt["a"],{attrs:{justify:"start"}},[t._l(t.cardDataList(s).slice(0,t.cardCount),(function(s){return[e("CardV",{key:s.name,staticClass:"mb-5",attrs:{data:s},on:{click:function(e){return t.cardHandler(s.name)}}})]}))],2)],1)],1)]})),e(z["a"],{attrs:{value:t.hasCarousel},nativeOn:{click:function(e){t.hasCarousel=!1}}},[e("CarouselBox",{attrs:{items:t.carouselItems,showArrows:!0,isCycle:!1,hideDelimiter:!0,model:t.carouselIndex,hasVideo:!0},on:{action:t.carouselDetailHandler}})],1),e(z["a"],{attrs:{value:t.hasVideo},nativeOn:{click:function(e){t.hasVideo=!1}}},[e("iframe",{staticClass:"iframeSize",attrs:{title:"Video",height:"auto",src:t.videoUrl,frameborder:"0",allow:"autoplay; fullscreen",allowfullscreen:""}})])],2)},It=[],St=s("5e66"),Pt=s("3e35"),Tt=function(){var t=this,e=t._self._c;return e(g["a"],[e(St["a"],{attrs:{height:"auto",value:t.model,cycle:t.isCycle,"show-arrows":t.showArrows,"hide-delimiters":t.hideDelimiter,"hide-delimiter-background":"",interval:3e3}},t._l(t.items,(function(s,a){return e(Pt["a"],{key:"carousel-"+a,on:{click:function(e){return t.$emit("action",a)}}},[e(_["a"],{directives:[{name:"show",rawName:"v-show",value:s.src,expression:"item.src"}],attrs:{src:s.src,"lazy-src":t.placeholderImage,eager:"",contain:"",height:t.fixHeight,"max-height":t.maxHeight}}),e("iframe",{directives:[{name:"show",rawName:"v-show",value:s.url,expression:"item.url"}],attrs:{title:"Video",width:t.iframeWidth,height:t.iframeHeight,src:s.url,frameborder:"0",allow:"autoplay; fullscreen"}})],1)})),1)],1)},jt=[],At=s("5b4d"),Dt=s.n(At),Lt={name:"CarouselBox",props:{items:{type:Array,required:!0},showArrows:{tyep:Boolean,default:!1},hideDelimiter:{type:Boolean,default:!1},isCycle:{type:Boolean,default:!0},model:{type:Number,default:0},isVideo:{type:Boolean,default:!1},imgMaxHeight:{type:String,default:"0"},fixHeight:{type:String,default:"auto"}},data:()=>({placeholderImage:Dt.a}),computed:{maxWidth(){switch(this.$vuetify.breakpoint.name){case"xs":return"350";case"sm":return"780";case"md":return"1280";case"lg":default:return"1600"}},maxHeight(){if(this.imgMaxHeight>0)return this.imgMaxHeight;switch(this.$vuetify.breakpoint.name){case"xs":return"230";case"sm":return"400";case"md":return"550";case"lg":default:return"750"}},iframeHeight(){switch(this.$vuetify.breakpoint.name){case"xs":return this.isVideo?"180":"90";case"sm":return this.isVideo?"360":"200";case"md":return this.isVideo?"480":"200";default:case"lg":return this.isVideo?"720":"300"}},iframeWidth(){switch(this.$vuetify.breakpoint.name){case"xs":return this.isVideo?"300":"160";case"sm":return this.isVideo?"600":"480";case"md":return this.isVideo?"854":"400";default:case"lg":return this.isVideo?"1280":"800"}}}},Ot=Lt,Ut=Object(E["a"])(Ot,Tt,jt,!1,null,null,null),Mt=Ut.exports,Nt=s("3f5e"),qt=s("1d4d"),Et=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto",attrs:{height:"255",width:"160",color:t.customColor("cardColor")},on:{click:function(e){return t.$emit("click")}}},[e(gt["a"],{attrs:{justify:"center"}},[e(f["a"],{attrs:{cols:"auto"}},[e(_["a"],{staticClass:"mt-3",attrs:{height:"128","max-width":"128",contain:"",src:t.data.icon}})],1)],1),e(m["c"],{staticClass:"px-2 py-2"},[e("div",{staticClass:"subtitle-1 text-truncate",staticStyle:{"max-width":"140px"},style:t.customColor("titleColor")},[t._v(t._s(t.data.name))]),e("div",{staticClass:"_caption text-truncate",staticStyle:{"max-width":"140px"},style:t.customColor("contentColor")},[t._v(t._s(t.data.publisherName))]),e(gt["a"],{staticClass:"mt-1 px-3",attrs:{justify:"space-between"}},[e(qt["a"],{attrs:{value:t.data.rating,color:t.customColor("ratingColor"),"background-color":t.customColor("ratingColor"),dense:"","half-increments":"",readonly:"",size:"12"}}),t.discount.exist?e("div",{staticClass:"text-decoration-line-through",staticStyle:{"font-size":"12px"},style:t.customColor("priceColor")},[t._v(" NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price))+" ")]):e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("priceColor")},[t._v("NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price)))])],1),e(gt["a"],{directives:[{name:"show",rawName:"v-show",value:t.discount.exist,expression:"discount.exist"}],staticClass:"pb-2 px-3",attrs:{justify:"space-between"}},[e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("discountColor")},[t._v(t._s(t.discountPeriod))]),e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("discountColor")},[t._v("NT$"+t._s(t.price(t.discount.price))+t._s(t.unit(t.discount.price)))])])],1)],1)},Rt=[],Bt={state:{discount:{exist:!1,price:0,startDate:"",endDate:""}},price(t){return t<1e4?t:Math.round(t/1e4)},unit(t){return t<1e4?"":"tenThousand"},discountPeriod(){let t="";return this.state.discount.exist?(this.state.discount.startDate.getFullYear()!==(new Date).getFullYear()&&(t+=this.state.discount.startDate.getFullYear()+"/"),t+=`${this.state.discount.startDate.getMonth()+1}/${this.state.discount.startDate.getDate()}`,this.state.discount.startDate.getTime()===this.state.discount.endDate.getTime()||(t+="-",this.state.discount.endDate.getFullYear()!==(new Date).getFullYear()&&(t+=this.state.discount.endDate.getFullYear()+"/"),t+=`${this.state.discount.endDate.getMonth()+1}/${this.state.discount.endDate.getDate()}`),t):""},discountProc(t,e){if(this.state.discount={exist:!1,price:0,startDate:"",endDate:""},!t||""===t)return this.state.discount;const s=t.split(",");return s.forEach((t,s)=>{const a=t.split("-"),i=parseInt(a[0],10),r=parseInt(a[1],10),o=new Date(`${(new Date).getFullYear()}/${(new Date).getMonth()+1}/${(new Date).getDate()}`).getTime();if(i===o||r===o||io){this.state.discount.exist=!0,this.state.discount.startDate=new Date(i),this.state.discount.endDate=new Date(r);const t=e.split(",");this.state.discount.price=t[s]}}),this.state.discount},install(t){return new Promise((e,s)=>{X["a"].post("EcPayAPI","/product/purchase",{body:t,headers:{"x-api-key":"WFbdOSQfRm3tIzKUc85Og4sqKJ6tcidK2tLqMEG1"}}).then(t=>{e(t)}).catch(t=>{s(t)})})},uninstall(t){return new Promise((e,s)=>{X["a"].post("EcPayAPI","/product/return",{body:t,headers:{"x-api-key":"WFbdOSQfRm3tIzKUc85Og4sqKJ6tcidK2tLqMEG1"}}).then(t=>{e(t)}).catch(t=>{s(t)})})}},zt={name:"CardV",props:{data:{type:Object,required:!0},styleInfo:{type:Object,default:()=>({cardColor:"white",titleColor:"#737373",contentColor:"#737373",ratingColor:"#737373",priceColor:"#007EAE",discountColor:"red"})}},data:()=>({discount:{}}),computed:{discountPeriod(){return Bt.discountPeriod()}},created(){this.discount=Bt.discountProc(this.data.discountPeriod,this.data.discount)},methods:{customColor(t){switch(t){case"cardColor":case"ratingColor":return this.styleInfo[t];default:return"color: "+this.styleInfo[t]}},price(t){return Bt.price(t)},unit(t){return this.$t(Bt.unit(t))}}},Ht=zt,Ft=Object(E["a"])(Ht,Et,Rt,!1,null,null,null),Vt=Ft.exports,Wt={name:"Main",components:{CarouselBox:Mt,CardV:Vt},data:()=>({logoList:null,marqueeList:[],hasCarousel:!1,hasVideo:!1,videoUrl:"",carouselIndex:0,showBulletin:!1,isNoShowNext:!1,bulletin:"",recommendList:{item:[],rating:[],install:[],operation:[],lvq:[]}}),computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["c"])("dbTable",["filterList","filterSubject"]),...Object(L["b"])("dbTable",["productList","publisherList"]),...Object(L["b"])("locale",["locale"]),userIndustry(){return this.isSignIn?this.userAttribute.industrys:"All"},topProductList(){const t=[...this.productList];return t.sort((t,e)=>e.rating-t.rating)},newProductList(){const t=[...this.productList];return t.sort((t,e)=>e.updateTime-t.updateTime)},recommendProductList(){let t=[];if(t=Object.keys(this.recommendList.rating).length>0&&"0"!==this.recommendList.rating.R1?this.recommendList.rating:Object.keys(this.recommendList.install).length>0&&"0"!==this.recommendList.install.R1?this.recommendList.install:Object.keys(this.recommendList.operation).length>0&&"0"!==this.recommendList.operation.R1?this.recommendList.operation:this.recommendList.lvq,0===t.length)return[];const e=[];for(let s=1;se.name===t["R"+s]);void 0!==a&&e.push(a)}return e},cardSubjectList(){switch(this.$route.name){default:case"main":return["new&update","recommend","popular","free"];case"popularRankings":return["popular&free","popular&paid"];case"newProducts":return["new&free","new&paid"]}},cardCount(){switch(this.$vuetify.breakpoint.name){case"xs":return 4;case"sm":return 3;case"md":return 4;default:case"lg":return 7;case"xl":return 10}},carouselLogo(){return null==this.logoList?[]:this.logoList.logo.map(t=>"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t)},carouselList(){return this.marqueeList.filter(t=>t.locale===this.locale)},carouselItems(){return this.carouselList.length?"All"===this.userIndustry?this.carouselList.map(t=>({src:t.thumbnail})):this.carouselList.filter(t=>t.industrys===this.userIndustry).map(t=>({src:t.thumbnail})):[]},bulletinContent(){return this.bulletin[this.locale]}},created(){this.loadLogo(),Z["a"].scan("marquee").then(t=>{this.marqueeList=t.sort((t,e)=>e.updatedAt-t.updatedAt)}),Z["a"].scan("info").then(t=>{this.bulletin=t.find(t=>"notice-1"===t.id).datas});const t=window.localStorage.getItem("bulletinExpiredDate");t!==(new Date).toLocaleDateString()&&(this.showBulletin=!0),this.$root.$emit("clearFilter"),Z["a"].read("recommendLvq","name","LVQ").then(t=>{this.recommendList.lvq=void 0===t?[]:t})},mounted(){this.$store.dispatch("authenticate/currentUser").then(t=>{Z["a"].scan("comment",{email:t.attributes.email},["id"]).then(e=>{e.length>=3&&Z["a"].read("recommendRating","email",t.attributes.email).then(t=>{this.recommendList.rating=void 0===t?[]:t})}),Z["a"].scan("install",{email:t.attributes.email},["id"]).then(e=>{e.length>=5&&Z["a"].read("recommendInstall","userName",t.attributes.email).then(t=>{this.recommendList.install=void 0===t?[]:t})}),Z["a"].scan("operation",{email:t.attributes.email},["id"]).then(e=>{e.length>=10&&Z["a"].read("recommendOperation","userName",t.attributes.email).then(t=>{this.recommendList.operation=void 0===t?[]:t})})}).catch(t=>{console.log(t)})},methods:{routerFilterList(t){this.$store.commit("dbTable/setFilterList",this.cardDataList(t)),this.$store.commit("dbTable/setFilterSubject",this.$t(t)),this.$router.push({name:"filterList"})},cardHandler(t){this.$router.push({name:"cardDetail",params:{productName:t}})},cardDataList(t){if(!this.productList.length)return[];switch(t){case"new&update":return this.newProductList;case"recommend":return this.recommendProductList;case"popular":return this.topProductList;case"free":return this.productList.filter(t=>"0"===t.price);case"popular&free":return this.topProductList.filter(t=>"0"===t.price);case"popular&paid":return this.topProductList.filter(t=>t.price>0);case"new&free":return this.newProductList.filter(t=>"0"===t.price);case"new&paid":return this.newProductList.filter(t=>t.price>0);default:return this.productList}},setCarouselIndexHandler(t){this.hasCarousel=!0,this.carouselIndex=t},carouselDetailHandler(t){"video"===this.carouselList[t].classes?(this.hasVideo=!0,this.videoUrl=this.carouselList[t].url.replace("watch?v=","embed/")+"?rel=0&autoplay=1"):window.location.href=this.carouselList[t].url},closeBulletin(){if(this.isNoShowNext){const t=(new Date).toLocaleDateString();console.log(t),window.localStorage.setItem("bulletinExpiredDate",t)}this.showBulletin=!1},loadLogo(){try{Nt["a"].api("info.json").then(t=>{this.logoList=t.data})}catch(t){console.log("Failed to load logo! "+t)}}}},Qt=Wt,Kt=(s("c425"),Object(E["a"])(Qt,$t,It,!1,null,null,null)),Yt=Kt.exports,Gt=function(){var t=this,e=t._self._c;return e(g["a"],[e(d["a"],{staticClass:"transparent ma-7",attrs:{height:"100%",width:"100%",flat:""}},[e(m["c"],[e(m["d"],{staticClass:"mb-5 text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.filterSubject))]),e(gt["a"],{attrs:{justify:"start",align:"center"}},t._l(t.filterList,(function(s){return e(d["a"],{directives:[{name:"show",rawName:"v-show",value:t.filterList.length,expression:"filterList.length"}],key:s.id,staticClass:"ma-4"},[e("CardV",{key:s.name,attrs:{data:s},on:{click:function(e){return t.cardHandler(s.name)}}})],1)})),1)],1)],1)],1)},Jt=[],Zt={name:"FilterList",props:{},components:{CardV:Vt},data:()=>({}),computed:{...Object(L["c"])("dbTable",["filterList","filterSubject"])},created(){this.filterSubject||this.$router.push({name:"main"})},methods:{cardHandler(t){this.$router.push({name:"cardDetail",params:{productName:t}})}}},Xt=Zt,te=Object(E["a"])(Xt,Gt,Jt,!1,null,null,null),ee=te.exports,se=function(){var t=this,e=t._self._c;return e(d["a"],{attrs:{color:t.background("color"),"min-height":t.$vuetify.breakpoint.height}},[e(_["a"],{style:t.backgroundStyle(),attrs:{"min-height":t.$vuetify.breakpoint.height}},[e("CarouselBox",{staticClass:"mt-8",attrs:{items:t.carouselItems,hideDelimiter:!0,fixHeight:t.carouselFixHeight},nativeOn:{click:function(e){return t.carouselHandler()}}}),e(gt["a"],{staticClass:"my-7 mx-1"},t._l(t.appTopN,(function(s){return e(f["a"],{key:s.id},[e("CardBig",{key:s.id,attrs:{data:s,styleInfo:t.styleInfo},on:{click:function(e){return t.cardHandler(s.name)}}})],1)})),1),e(d["a"],{staticClass:"transparent",attrs:{flat:"",height:"100%",width:"100%"}},[e(m["c"],[e(gt["a"],{attrs:{justify:"center",align:"center"}},t._l(t.appList,(function(s){return e(d["a"],{directives:[{name:"show",rawName:"v-show",value:t.appList.length,expression:"appList.length"}],key:s.id,staticClass:"ma-4"},[e("CardV",{key:s.id,attrs:{data:s,styleInfo:t.styleInfo},on:{click:function(e){return t.cardHandler(s.name)}}})],1)})),1)],1)],1)],1)],1)},ae=[],ie=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto pa-0",attrs:{height:"400",width:"400",color:t.customColor("cardColor")},on:{click:function(e){return t.$emit("click")}}},[e(gt["a"],{staticStyle:{height:"250px"},attrs:{"no-gutter":""}},[e(f["a"],{attrs:{"align-self":"center"}},[e("CarouselBox",{attrs:{items:t.carouselItems,hideDelimiter:!0,imgMaxHeight:"200"}})],1)],1),e(gt["a"],{staticClass:"ma-0 pt-1",attrs:{justify:"space-between"}},[e(f["a"],{attrs:{cols:"4",sm:"5"}},[e(_["a"],{attrs:{height:"128",width:"128",src:t.data.icon,contain:""}})],1),e(f["a"],{attrs:{cols:"8",sm:"7"}},[e(m["c"],[e(gt["a"],[e("div",{staticClass:"text-h6 text-truncate",style:t.customColor("titleColor")},[t._v(t._s(t.data.name))])]),e(gt["a"],[e("div",{staticClass:"caption text-truncate",style:t.customColor("contentColor")},[t._v(t._s(t.data.publisherName))])]),e(gt["a"],{staticClass:"mt-10 mt-sm-14",attrs:{justify:"space-between"}},[e(qt["a"],{attrs:{value:t.data.rating,color:t.customColor("ratingColor"),"background-color":t.customColor("ratingColor"),dense:"","half-increments":"",readonly:"",size:"12"}}),t.discount.exist?e("div",{staticClass:"text-decoration-line-through",staticStyle:{"font-size":"12px"},style:t.customColor("priceColor")},[t._v(" NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price))+" ")]):e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("priceColor")},[t._v(" NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price))+" ")])],1),e(gt["a"],{directives:[{name:"show",rawName:"v-show",value:t.discount.exist,expression:"discount.exist"}],attrs:{justify:"space-between"}},[e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("discountColor")},[t._v(t._s(t.discountPeriod))]),e("div",{staticStyle:{"font-size":"12px"},style:t.customColor("discountColor")},[t._v("NT$"+t._s(t.price(t.discount.price))+t._s(t.unit(t.discount.price)))])])],1)],1)],1)],1)},re=[],oe={name:"CardBig",props:{data:{type:Object,required:!0},styleInfo:{type:Object,default:()=>({cardColor:"white",titleColor:"#757673",contentColor:"#757673",ratingColor:"#757673",priceColor:"#007EAE",discountColor:"red"})}},components:{CarouselBox:Mt},data:()=>({discount:{}}),computed:{carouselItems(){const t=[];for(let e=0;e<3;e+=1)this.data["urls"+e]&&t.push({src:this.data["urls"+e]});return t},discountPeriod(){return Bt.discountPeriod()}},created(){this.discount=Bt.discountProc(this.data.discountPeriod,this.data.discount)},methods:{customColor(t){switch(t){case"cardColor":case"ratingColor":return this.styleInfo[t];default:return"color: "+this.styleInfo[t]}},price(t){return Bt.price(t)},unit(t){return this.$t(Bt.unit(t))}}},ne=oe,ce=Object(E["a"])(ne,ie,re,!1,null,null,null),le=ce.exports,ue={name:"Custom1",props:{},components:{CarouselBox:Mt,CardV:Vt,CardBig:le},data:()=>({}),computed:{...Object(L["c"])("dbTable",["filterList","filterSubject","customList"]),styleInfo(){return this.filterSubject?this.customList.find(t=>t.id===this.filterSubject).styleInfo:{}},appTopN(){return this.filterList.filter(t=>this.styleInfo.topN.includes(t.id))},appList(){return this.filterList.filter(t=>!this.styleInfo.topN.includes(t.id))},carouselFixHeight(){return""===this.styleInfo.boardHeight?"auto":this.styleInfo.boardHeight},carouselItems(){return Object.prototype.hasOwnProperty.call(this.styleInfo,"board")?this.styleInfo.board.map(t=>({src:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t})):[]}},created(){this.filterSubject||this.$router.push({name:"main"})},methods:{background(t){return this.filterSubject&&this.styleInfo.background.type===t?"color"===this.styleInfo.background.type?this.styleInfo.background.color:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+this.styleInfo.background.image:""},backgroundStyle(){return this.filterSubject&&"image"===this.styleInfo.background.type?""===this.styleInfo.background.image?{backgroundImage:"url(./bg.jpg)",backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/${this.styleInfo.background.image})`,backgroundRepeat:"repeat",backgroundSize:"contain"}:""},carouselHandler(){Object.prototype.hasOwnProperty.call(this.styleInfo,"boardHyperlink")&&""!==this.styleInfo.boardHyperlink&&window.open(this.styleInfo.boardHyperlink)},cardHandler(t){this.$router.push({name:"cardDetail",params:{productName:t}})}}},he=ue,de=Object(E["a"])(he,se,ae,!1,null,null,null),me=de.exports,pe=function(){var t=this,e=t._self._c;return e(d["a"],{attrs:{color:t.background("color"),"min-height":t.$vuetify.breakpoint.height}},[e(_["a"],{style:t.backgroundStyle(),attrs:{"min-height":t.$vuetify.breakpoint.height}},[e("CarouselBox",{staticClass:"mt-8",attrs:{items:t.carouselItems,hideDelimiter:!0,fixHeight:t.carouselFixHeight},nativeOn:{click:function(e){return t.carouselHandler()}}}),t._l(t.filterList,(function(s){return e(f["a"],{key:s.name},[e("CardList",{key:s.name,attrs:{data:s,styleInfo:t.styleInfo},on:{click:function(e){return t.cardHandler(s.name)}}})],1)}))],2)],1)},fe=[],ge=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto pa-0",attrs:{height:t.maxHeight,width:"1160",color:t.customColor("cardColor")},on:{click:function(e){return t.$emit("click")}}},[e(m["c"],[e(gt["a"],{attrs:{justify:"center"}},[e(f["a"],{attrs:{cols:"12",sm:"2",md:"2",align:"center"}},[e(_["a"],{attrs:{height:"100",width:"100",src:t.data.icon,contain:""}})],1),e(f["a"],{attrs:{cols:"12",sm:"7",md:"8"}},[e("div",{staticClass:"pa-0 text-h6 text-truncate",style:t.customColor("titleColor")},[t._v(t._s(t.data.name))]),e("div",{staticClass:"text-truncate",style:t.customColor("contentColor")},[e(y["a"],[t._v("mdi-circle-medium")]),t._v(t._s(t.data.publisherName)+" "),e(y["a"],[t._v("mdi-circle-medium")]),t._v(t._s(t.data.industryName)+" "),e(y["a"],[t._v("mdi-circle-medium")]),t._v(t._s(t.data.typeName)+" "),e(y["a"],[t._v("mdi-circle-medium")]),t._v(t._s(t.data.runtimeEnvironmentName)+" ")],1),e(qt["a"],{staticClass:"mt-sm-6",attrs:{value:t.data.rating,color:t.customColor("ratingColor"),"background-color":t.customColor("ratingColor"),dense:"","half-increments":"",readonly:"",size:"14"}})],1),e(f["a"],{staticClass:"mt-sm-9",attrs:{cols:"12",sm:"3",md:"2"}},[t.discount.exist?[e("div",{style:t.customColor("discountColor")},[t._v(t._s(t.discountPeriod))]),e("div",{style:t.customColor("discountColor")},[t._v("NT$"+t._s(t.discount.price))]),e("div",{staticClass:"text-decoration-line-through",style:t.customColor("priceColor")},[t._v("NT$"+t._s(t.data.price))])]:e("div",{staticClass:"mt-sm-10",style:t.customColor("priceColor")},[t._v("NT$"+t._s(t.data.price))])],2)],1)],1)],1)},be=[],ve={name:"CardList",props:{data:{type:Object,required:!0},styleInfo:{type:Object,default:()=>({cardColor:"white",titleColor:"#737373",contentColor:"#737373",ratingColor:"#737373",priceColor:"#007EAE",discountColor:"red"})}},data:()=>({discount:{}}),computed:{discountPeriod(){return Bt.discountPeriod()},maxHeight(){switch(this.$vuetify.breakpoint.name){case"xs":return"320";default:return"130"}}},created(){this.discount=Bt.discountProc(this.data.discountPeriod,this.data.discount)},methods:{customColor(t){switch(t){case"cardColor":case"ratingColor":return this.styleInfo[t];default:return"color: "+this.styleInfo[t]}},price(t){return Bt.price(t)},unit(t){return this.$t(Bt.unit(t))}}},we=ve,ye=Object(E["a"])(we,ge,be,!1,null,null,null),_e=ye.exports,xe={name:"Custom2",props:{},components:{CarouselBox:Mt,CardList:_e},data:()=>({}),computed:{...Object(L["c"])("dbTable",["filterList","filterSubject","customList"]),styleInfo(){return this.filterSubject?this.customList.find(t=>t.id===this.filterSubject).styleInfo:{}},carouselFixHeight(){return""===this.styleInfo.boardHeight?"auto":this.styleInfo.boardHeight},carouselItems(){return Object.prototype.hasOwnProperty.call(this.styleInfo,"board")?this.styleInfo.board.map(t=>({src:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t})):[]}},created(){this.filterSubject||this.$router.push({name:"main"})},methods:{background(t){return this.filterSubject&&this.styleInfo.background.type===t?"color"===this.styleInfo.background.type?this.styleInfo.background.color:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+this.styleInfo.background.image:""},backgroundStyle(){return this.filterSubject&&"image"===this.styleInfo.background.type?""===this.styleInfo.background.image?{backgroundImage:"url(./bg.jpg)",backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/${this.styleInfo.background.image})`,backgroundRepeat:"repeat",backgroundSize:"contain"}:""},carouselHandler(){Object.prototype.hasOwnProperty.call(this.styleInfo,"boardHyperlink")&&""!==this.styleInfo.boardHyperlink&&window.open(this.styleInfo.boardHyperlink)},cardHandler(t){this.$router.push({name:"cardDetail",params:{productName:t}})}}},Ce=xe,ke=Object(E["a"])(Ce,pe,fe,!1,null,null,null),$e=ke.exports,Ie=function(){var t=this,e=t._self._c;return e(d["a"],{attrs:{color:t.background("color"),"min-height":t.$vuetify.breakpoint.height}},[e(_["a"],{style:t.backgroundStyle(),attrs:{"min-height":t.$vuetify.breakpoint.height}},[e("CarouselBox",{staticClass:"mt-8",attrs:{items:t.carouselItems,hideDelimiter:!0,fixHeight:t.carouselFixHeight}}),t._l(Object.keys(t.appList),(function(s,a){return[0!=t.appList[s].length?e(d["a"],{key:s,staticClass:"ma-4",style:t.customColor("groupColor"),attrs:{height:"60",color:t.customColor("groupBackground")}},[e(m["d"],[e(gt["a"],{staticClass:"ma-0 text-h4",attrs:{align:"center",justify:"center"}},[t._v(t._s(t.$t(s)))])],1)],1):t._e(),0!=t.appList[s].length?e(gt["a"],{key:a,staticClass:"mx-8 my-8"},t._l(t.appList[s],(function(s){return e(f["a"],{key:s.name,staticClass:"px-1 my-4"},[e("CardIntro",{key:s.name,staticClass:"mt-15",attrs:{data:s,styleInfo:t.styleInfo},on:{click:function(e){return t.cardHandler(s.name)}},nativeOn:{click:function(e){return t.carouselHandler()}}})],1)})),1):t._e()]}))],2)],1)},Se=[],Pe=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto pa-0",attrs:{rounded:"xl",height:"350",width:"280",color:t.customColor("cardColor")},on:{click:function(e){return t.$emit("click")}}},[e(gt["a"],{attrs:{justify:"center"}},[e(_["a"],{staticClass:"mt-n10 mb-4",attrs:{height:"128",width:"128",src:t.data.icon,contain:""}})],1),e(m["c"],[e(gt["a"],{attrs:{justify:"center"}},[e("div",{staticClass:"ma-4 text-h6 text-truncate",style:t.customColor("titleColor")},[t._v(t._s(t.data.name))])]),e("p",{staticClass:"mx-2 my-4 multi-lines",style:t.customColor("contentColor")},[t._v(t._s(t.data.description))]),e(gt["a"],{staticClass:"mx-2 mt-4",attrs:{justify:"space-between"}},[e(qt["a"],{attrs:{value:t.data.rating,color:t.customColor("ratingColor"),"background-color":t.customColor("ratingColor"),dense:"","half-increments":"",readonly:"",size:"14"}}),t.discount.exist?e("div",{staticClass:"text-decoration-line-through",staticStyle:{"font-size":"14px"},style:t.customColor("priceColor")},[t._v(" NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price))+" ")]):e("div",{staticStyle:{"font-size":"14px"},style:t.customColor("priceColor")},[t._v("NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price)))])],1),e(gt["a"],{directives:[{name:"show",rawName:"v-show",value:t.discount.exist,expression:"discount.exist"}],staticClass:"mx-2",attrs:{justify:"space-between"}},[e("div",{staticStyle:{"font-size":"14px"},style:t.customColor("discountColor")},[t._v(t._s(t.discountPeriod))]),e("div",{staticStyle:{"font-size":"14px"},style:t.customColor("discountColor")},[t._v("NT$"+t._s(t.price(t.discount.price))+t._s(t.unit(t.discount.price)))])])],1)],1)},Te=[],je={name:"CardIntro",props:{data:{type:Object,required:!0},styleInfo:{type:Object,default:()=>({cardColor:"white",titleColor:"#737373",contentColor:"#737373",ratingColor:"#737373",priceColor:"#007EAE",discountColor:"red"})}},data:()=>({discount:{}}),computed:{discountPeriod(){return Bt.discountPeriod()}},created(){this.discount=Bt.discountProc(this.data.discountPeriod,this.data.discount)},methods:{customColor(t){switch(t){case"cardColor":case"ratingColor":return this.styleInfo[t];default:return"color: "+this.styleInfo[t]}},price(t){return Bt.price(t)},unit(t){return this.$t(Bt.unit(t))}}},Ae=je,De=(s("e9c6"),Object(E["a"])(Ae,Pe,Te,!1,null,"3c2cf014",null)),Le=De.exports,Oe={name:"Custom3",props:{},components:{CarouselBox:Mt,CardIntro:Le},data:()=>({group:["newForMonth","hotSale"]}),computed:{...Object(L["c"])("dbTable",["filterList","filterSubject","customList"]),appList(){const t={newForMonth:[],hotSale:[]};return this.filterList.forEach(e=>{new Date(e.updateTime).getFullYear()===(new Date).getFullYear()&&new Date(e.updateTime).getMonth()===(new Date).getMonth()?t.newForMonth.push(e):t.hotSale.push(e)}),t},styleInfo(){return this.filterSubject?this.customList.find(t=>t.id===this.filterSubject).styleInfo:{}},carouselFixHeight(){return""===this.styleInfo.boardHeight?"auto":this.styleInfo.boardHeight},carouselItems(){return Object.prototype.hasOwnProperty.call(this.styleInfo,"board")?this.styleInfo.board.map(t=>({src:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t})):[]}},created(){this.filterSubject||this.$router.push({name:"main"})},methods:{background(t){return this.filterSubject&&this.styleInfo.background.type===t?"color"===this.styleInfo.background.type?this.styleInfo.background.color:"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+this.styleInfo.background.image:""},backgroundStyle(){return this.filterSubject&&"image"===this.styleInfo.background.type?""===this.styleInfo.background.image?{backgroundImage:"url(./bg.jpg)",backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/${this.styleInfo.background.image})`,backgroundRepeat:"repeat",backgroundSize:"contain"}:""},customColor(t){switch(t){case"groupBackground":return this.styleInfo[t];default:return"color: "+this.styleInfo[t]}},carouselHandler(){Object.prototype.hasOwnProperty.call(this.styleInfo,"boardHyperlink")&&""!==this.styleInfo.boardHyperlink&&window.open(this.styleInfo.boardHyperlink)},cardHandler(t){this.$router.push({name:"cardDetail",params:{productName:t}})}}},Ue=Oe,Me=Object(E["a"])(Ue,Ie,Se,!1,null,null,null),Ne=Me.exports,qe=s("4bd4"),Ee=s("1514"),Re=s("b73d"),Be=function(){var t=this,e=t._self._c;return e(g["a"],["signIn"===t.view?e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[t.showSignIn?t._e():e("div",{staticClass:"_blue--text"},[t._v(t._s(t.$t("countDown"))+": "+t._s(t.countDown))]),e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{type:"email",label:t.$t("email"),rules:t.emailRules},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),e(vt["a"],{attrs:{type:"password",label:t.$t("password"),rules:t.rules},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),e("a",{staticClass:"grey--text text--darken-2 text-decoration-underline",on:{click:function(e){return t.changeView("forgotPassword")}}},[t._v(t._s(t.$t("forgotPassword"))+"?")]),t._v("    "),e("a",{staticClass:"grey--text text--darken-2 text-decoration-underline",on:{click:function(e){return t.changeView("signUp")}}},[t._v(t._s(t.$t("signUp")))]),t._v("    "),e("a",{staticClass:"grey--text text--darken-2 text-decoration-underline",on:{click:function(e){return t.ssoSignIn()}}},[t._v(t._s("SSO"+t.$t("signIn")))]),e("VueRecaptcha",{ref:"recaptcha",staticClass:"mt-5",attrs:{sitekey:t.sitekey,loadRecaptchaScript:!0},on:{verify:t.recaptchaVerify}}),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue",disabled:!t.isPassCaptcha||!t.showSignIn},on:{click:function(e){return t.signIn()}}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),"firstSignIn"===t.view?e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{type:"password",label:t.$t("newPassword"),rules:t.rules},model:{value:t.newPassword,callback:function(e){t.newPassword=e},expression:"newPassword"}}),e(vt["a"],{attrs:{type:"password",label:t.$t("confirmNewPassword"),rules:t.rules},model:{value:t.confirmNewPassword,callback:function(e){t.confirmNewPassword=e},expression:"confirmNewPassword"}})],1),e(p["a"],{directives:[{name:"show",rawName:"v-show",value:t.isDeveloper,expression:"isDeveloper"}],attrs:{label:t.$t("iAgree")+t.$t("cooperationTerms"),readonly:""},on:{click:function(e){t.showCooperationDialog=!0}},model:{value:t.agreeCooperationTerms,callback:function(e){t.agreeCooperationTerms=e},expression:"agreeCooperationTerms"}}),e(p["a"],{attrs:{label:t.$t("iAgree")+t.$t("serviceTerms"),readonly:""},on:{click:function(e){t.showServiceDialog=!0}},model:{value:t.agreeServiceTerms,callback:function(e){t.agreeServiceTerms=e},expression:"agreeServiceTerms"}}),e(m["a"],[e(T["a"]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue",disabled:!t.showFirstSignInBtn},on:{click:function(e){return t.firstSignIn()}}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),"modifyPassword"===t.view?e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[t.isForgotPassword?e("div",{staticClass:"_blue--text"},[t._v(t._s(t.$t("countDown"))+": "+t._s(t.countDown))]):t._e(),e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[t.isForgotPassword?e(vt["a"],{attrs:{type:"password",label:t.$t("verifyCode"),rules:t.rules},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}):e(vt["a"],{attrs:{type:"password",label:t.$t("password"),rules:t.rules},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),e(vt["a"],{attrs:{type:"password",label:t.$t("newPassword"),rules:t.rules},model:{value:t.newPassword,callback:function(e){t.newPassword=e},expression:"newPassword"}}),e(vt["a"],{attrs:{type:"password",label:t.$t("confirmNewPassword"),rules:t.rules},model:{value:t.confirmNewPassword,callback:function(e){t.confirmNewPassword=e},expression:"confirmNewPassword"}})],1),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.modifyPassword()}}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),"forgotPassword"===t.view?e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[e("p",{staticClass:"text-xs-center _blue--text"},[t._v(t._s(t.$t("hintForgotPassword")))]),e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{type:"email",label:t.$t("email"),rules:t.emailRules},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){t.view="signIn"}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.forgotPassword()}}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),"signUp"===t.view?e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{label:t.$t("name"),rules:t.rules},model:{value:t.signUpUser.name,callback:function(e){t.$set(t.signUpUser,"name",e)},expression:"signUpUser.name"}}),e(vt["a"],{attrs:{label:t.$t("email"),rules:t.emailRules,disabled:t.isOauth},model:{value:t.signUpUser.email,callback:function(e){t.$set(t.signUpUser,"email",e)},expression:"signUpUser.email"}}),e(vt["a"],{attrs:{label:t.$t("phone"),rules:t.rules},model:{value:t.signUpUser.phone,callback:function(e){t.$set(t.signUpUser,"phone",e)},expression:"signUpUser.phone"}}),e(vt["a"],{attrs:{label:t.$t("address"),rules:t.rules},model:{value:t.signUpUser.address,callback:function(e){t.$set(t.signUpUser,"address",e)},expression:"signUpUser.address"}}),e(vt["a"],{attrs:{label:t.$t("profession"),rules:t.rules},model:{value:t.signUpUser.profession,callback:function(e){t.$set(t.signUpUser,"profession",e)},expression:"signUpUser.profession"}}),e(vt["a"],{attrs:{label:t.$t("department"),rules:t.developerRules},model:{value:t.signUpUser.department,callback:function(e){t.$set(t.signUpUser,"department",e)},expression:"signUpUser.department"}}),e(vt["a"],{attrs:{label:t.$t("taxId"),rules:t.developerRules},model:{value:t.signUpUser.taxId,callback:function(e){t.$set(t.signUpUser,"taxId",e)},expression:"signUpUser.taxId"}}),e(bt["a"],{attrs:{label:t.$t("industrys"),items:t.industryItems,rules:t.rules},model:{value:t.signUpUser.industrys,callback:function(e){t.$set(t.signUpUser,"industrys",e)},expression:"signUpUser.industrys"}}),t.isOauth?[e("a",{attrs:{href:"https://hackmd.io/@iMacloud/rJjtTpBI2",target:"_blank",rel:"noopener"}},[t._v("TOTP"+t._s(t.$t("description")))]),e(Re["a"],{attrs:{label:t.$t("enableTotp")},on:{change:function(e){return t.enableTotp()}},model:{value:t.totpStatus,callback:function(e){t.totpStatus=e},expression:"totpStatus"}}),t.isSetTotp?e(gt["a"],{staticClass:"_grey--text",attrs:{align:"center"}},[e(f["a"],{attrs:{cols:"3"}},[e("QrcodeVue",{attrs:{value:t.qrcodeStr}})],1),e(f["a"],{attrs:{cols:"7"}},[e(gt["a"],[e("div",[t._v(t._s(t.$t("inputOtp")))])]),e(gt["a"],[e("div",{staticClass:"position-relative",staticStyle:{"max-width":"300px"}},[e(Ee["a"],{attrs:{plain:""},model:{value:t.otpValue,callback:function(e){t.otpValue=e},expression:"otpValue"}})],1)])],1),e(f["a"],{attrs:{cols:"2"}},[e(h["a"],{on:{click:function(e){return t.verifyTotp()}}},[t._v(t._s(t.$t("verify")))])],1)],1):t._e()]:t._e(),e(p["a"],{attrs:{"input-value":"true",label:t.$t("iAmUser"),readonly:""}}),e(p["a"],{attrs:{label:t.$t("iAmDeveloper")},model:{value:t.isSignUpDeveloper,callback:function(e){t.isSignUpDeveloper=e},expression:"isSignUpDeveloper"}}),e(p["a"],{directives:[{name:"show",rawName:"v-show",value:t.isSignUpDeveloper,expression:"isSignUpDeveloper"}],attrs:{label:t.$t("iAgree")+t.$t("cooperationTerms"),readonly:""},on:{click:function(e){t.showCooperationDialog=!0}},model:{value:t.agreeCooperationTerms,callback:function(e){t.agreeCooperationTerms=e},expression:"agreeCooperationTerms"}}),e(p["a"],{attrs:{label:t.$t("iAgree")+t.$t("serviceTerms"),readonly:""},on:{click:function(e){t.showServiceDialog=!0}},model:{value:t.agreeServiceTerms,callback:function(e){t.agreeServiceTerms=e},expression:"agreeServiceTerms"}})],2),e("VueRecaptcha",{ref:"recaptcha",staticClass:"mt-5",attrs:{sitekey:t.sitekey,loadRecaptchaScript:!0},on:{verify:t.recaptchaVerify,expired:t.recaptchaExpired}}),e(m["a"],[e(T["a"]),e(h["a"],{directives:[{name:"show",rawName:"v-show",value:!t.isOauth,expression:"!isOauth"}],attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.changeView("signIn")}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue",disabled:!t.showSignUpBtn},on:{click:function(e){return t.signUp()}}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),e(b["a"],{attrs:{persistent:"","max-width":"760"},model:{value:t.showCooperationDialog,callback:function(e){t.showCooperationDialog=e},expression:"showCooperationDialog"}},[e("TermsCooperation",{on:{close:function(e){t.showCooperationDialog=t.agreeCooperationTerms=!1},agree:function(e){t.showCooperationDialog=!1,t.agreeCooperationTerms=!0}}})],1),e(b["a"],{attrs:{persistent:"","max-width":"760"},model:{value:t.showServiceDialog,callback:function(e){t.showServiceDialog=e},expression:"showServiceDialog"}},[e("TermsService",{on:{close:function(e){t.showServiceDialog=t.agreeServiceTerms=!1},agree:function(e){t.showServiceDialog=!1,t.agreeServiceTerms=!0}}})],1),e(b["a"],{attrs:{persistent:"","max-width":"300",transition:"dialog-top-transition"},model:{value:t.showSuccessDialog,callback:function(e){t.showSuccessDialog=e},expression:"showSuccessDialog"}},[e(d["a"],{staticClass:"mx-auto green darken-1 white--text"},[e(m["d"],[t._v(t._s(t.$t("hintSignUpSuccess")))]),e(m["a"],[e(T["a"]),e(h["a"],{staticClass:"_blue white--text",on:{click:function(e){t.showSuccessDialog=!1}}},[t._v(t._s(t.$t("ok")))])],1)],1)],1)],1)},ze=[],He=s("e096"),Fe=s("d7b0"),Ve=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"pa-8",staticStyle:{position:"relative"}},[e("div",[e("h2",{staticClass:"text-center"},[t._v("機械雲軟體開發者與店中店營運商合作契約")]),e("p",{staticClass:"my-8"},[t._v(" 立約人○○○○○○公司(以下簡稱「甲方」)及財團法人工業技術研究院(以下簡稱「乙方」)。緣乙方為執行經濟部○○○科專計畫,由甲乙雙方就機械雲店中店之合作事宜(以下簡稱「本合作」),特立本契約,並同意條件如下: ")]),e("h3",[t._v("第一條:名詞定義")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、管理者:乙方或乙方指定之第三人。"),e("br"),t._v(" 二、服務中心:由管理者負責維運之「機械雲店中店」之服務與管理中心。"),e("br"),t._v(" 三、開發者:依照本契約約定透過「機械雲店中店」發布「產品」的甲方及甲方人員。"),e("br"),t._v(" 四、產品:「開發者」透過「機械雲店中店」提供的軟體、著作、數位資料與文件及其他商品或服務。"),e("br"),t._v(" 五、智慧財產權:技術、資料、文件等及其所已獲得或可能獲得之專利權、著作權、商標權、營業秘密、電路布局權及其他智慧財產權。"),e("br"),t._v(" 六、帳款處理機構:乙方或經由乙方授權提供帳款服務的機構或廠商,使「開發者」得以向使用者收費。"),e("br"),t._v(" 七、開發者帳戶: 由「開發者」向「帳款處理機構」申請後,經由「帳款處理機構」提供之帳戶。「開發者」同意由「帳款處理機構」代為收取透過「機械雲店中店」銷售之「產品」之款項;及轉匯「服務費用」及其它費用予乙方及「帳款處理機構」。"),e("br"),t._v(" 八、服務費用:乙方及「帳款處理機構」因提供服務所收取之費用。 ")]),e("h3",[t._v("第二條:雙方合意")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、雙方同意依下列條件,由乙方提供「機械雲店中店」供甲方於其上發布軟體、內容、數位內容和其他商品與服務(以下簡稱「產品」),供使用者下載使用。"),e("br"),t._v(" 二、「開發者」同意其所提報之「產品」售價均為含稅價。"),e("br"),t._v(" 三、「開發者」同意,甲方「產品」之交易行為存在於甲方與使用者間,故其於「機械雲店中店」之銷售行為及收入,均應依其所屬國家、「產品」銷售國家及中華民國之法令,據實開立發票予使用者並繳納相關稅費。「開發者」應負責判斷「產品」是否需要課稅以及適用的稅率,並將稅費交付給相關稅務主管機關;若乙方或「管理者」依前述法令須代為扣繳或繳納者,「開發者」特此同意委由乙方或「管理者」逕自將所有稅費從售出「產品」的售價中扣除。 ")]),e("h3",[t._v("第三條:服務費用")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、「開發者」透過「機械雲店中店」售出「產品」,乙方得自該之售出「產品」之售價中扣除售價之百分之○以為「服務費用」。"),e("br"),t._v(" 二、「帳款處理機構」之「服務費用」為「開發者」透過「機械雲店中店」□銷售「產品」之售價之百分之○;或□按筆收新台幣X元。"),e("br"),t._v(" 三、甲方「產品」為免費產品者,乙方得□免收;或□收取一定數額之「服務費用」,前述數額由「服務中心」另行公告。"),e("br"),t._v(" 四、甲方特此同意並委託「帳款處理機構」按月轉匯上個月份之乙方「服務費用」予乙方指定之匯款帳戶中。"),e("br"),t._v("      乙方匯款帳戶:"),e("br"),t._v("      匯款帳號:"),e("br"),t._v("      戶名: 財團法人工業技術研究院"),e("br"),t._v(" 五、本契約應支付乙方之款項,應以新台幣支付之。"),e("br"),t._v(" 六、因本契約所生之營業稅由甲方負擔。甲方應於支付本契約任一款項時,一併支付營業稅予乙方。 ")]),e("h3",[t._v("第四條:使用平台之行為")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、「管理者」負責「機械雲店中店」之正常運作。如「機械雲店中店」有無法運作或程式錯誤(BUG)時,應予修復。"),e("br"),t._v(" 二、「帳款處理機構」應如實完成帳款服務。"),e("br"),t._v(" 三、「開發者」擔保其所有「產品」均無侵權之情事。"),e("br"),t._v(" 四、「開發者」同意其所有「產品」均應經「服務中心」審核通過後,始得上架進行銷售。審核未通過之「產品」,乙方不予上架,但得由雙方另行以書面協議後,依該協議另案協助導入甲方所有之網站。"),e("br"),t._v(" 五、「開發者」須負責將「產品」上傳至「機械雲店中店」、為使用者提供必要的「產品」資訊和支援服務,並如實公開「產品」在裝置上運作所需的權限。"),e("br"),t._v(" 六、「開發者」應於「產品」之詳細資訊網頁上,提供有效且正確的聯絡資訊,並加以維護,以便使用者在需要客服支援。"),e("br"),t._v(" 七、「開發者」必須對所有乙方核發之憑證加以保密,並對「產品」自行承擔全部責任。"),e("br"),t._v(" 八、「開發者」須遵守「機械雲店中店」與「服務中心」所訂定之「機械雲APP平台服務條款」、「開發者規範」及其它所有規定。"),e("br"),t._v(" 九、開發者規範包括,但不限於:技術規範;產品規範;資安規範;及其它規範。"),e("br"),t._v(" 例如:技術規範包括,但不限於以下之舉例事項:"),e("br"),t._v(" (一)符合機械雲軟體架構的資料傳輸規範;"),e("br"),t._v(" (二)符合機械雲計量計價相關軟體架構規範;"),e("br"),t._v(" (三)符合機械雲資訊安全相關軟體架構規範;"),e("br"),t._v(" (四)符合機械雲軟體架構下的相容性原則;及"),e("br"),t._v(" (五)其它技術規範。 十、「管理者」有權變動及更新本契約中所提及之相關網站位址及相關規範;「管理者」應將前述變動及更新於「服務中心」網站中公告。 ")]),e("h3",[t._v("第五條:使用者之個人資料與隱私權保護")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 甲方應依法蒐集、處理及利用個人資料。甲方在透過「機械雲店中店」提供「產品」,並應保護使用者之隱私權和合法權利。如果使用者將自己的使用者名稱、密碼或其他登入資訊提供給甲方,或是甲方的「產品」會存取或使用這類資訊,甲方同意告知使用者其「產品」將能存取這類資訊,亦同意為使用者提供具有充分法律效力的隱私權聲明和保護措施。此外,甲方之「產品」僅可將這類資訊用於使用者授權的限定用途。 ")]),e("h3",[t._v("第六條:智慧財產權")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、除雙方另有約定外,任一方均未授予他方實施其智慧財產權之權利。"),e("br"),t._v(" 二、甲方應遵守智慧財產權之相關法律,不得有侵害他人(以下簡稱「權利人」)智慧財產權之情事發生。經權利人通知甲方涉有侵權行為後,乙方有權移除或使他人無法進入該涉有侵權之內容「產品」或相關資訊。若甲方認其無侵權情事者,得檢具權利證明文件與未侵權通知文件(聲明及擔保無侵權情事,並願負擔因此所生之一切責任並賠償乙方或他人因此所受之一切損害),請求乙方回復其被移除或使他人無法進入之內容「產品」或相關資訊。若乙方於接獲前述甲方之文件後,將該前述文件轉送權利人,權利人於接獲乙方通知後之合理期間內,向乙方提出已對甲方訴訟或其它爭端解決程序之證明者,乙方不負回復之義務;若權利人未依前述期間提出相關之證明,乙方有權決定是否回復被移除或使他人無法進入之內容或相關資訊。 ")]),e("h3",[t._v("第七條:侵權責任")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 甲方同意因其「產品」或其行為而引致之後果(包括乙方可能遭受的損失或損壞)承擔全部責任,乙方對甲方無須承擔任何責任。惟前述侵權行為係因可歸責於乙方之事由所致者,乙方得依甲方要求,提供諮詢等支援;因此所產生之費用,由甲方負擔。 ")]),e("h3",[t._v("第八條:特約條款")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、非經乙方事前書面同意,甲方不得使用乙方、乙方之員工及乙方所屬各單位相同或類似之名稱、簡稱、照片、商標或標章。"),e("br"),t._v(" 二、甲方認知乙方為研究機構,並非營利性質法人,乙方係為扶植國內產業、加速我國產業技術發展而設,故甲方同意不論本契約存續與否或有無相反之約定,乙方依本契約及依有關法令之規定所應負擔之全部責任範圍,以本契約實際自甲方受領之「服務費用」總額百分之○為限。"),e("br"),t._v(" 三、有以下情形之一者,任一方得於事前60日以上以書面通知他方,終止本契約:"),e("br"),t._v(" (一)若甲方擬退出「機械雲店中店」時;"),e("br"),t._v(" (二)若政府機關或乙方認「機械雲店中店」無繼續運營之必要時。"),e("br")]),e("h3",[t._v("第九條:權義轉讓")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("任一方依本契約對他方所得主張之權利及所應負擔之義務,非經雙方事前書面合意,不得轉讓予任何第三人。")]),e("h3",[t._v("第十條:聯絡管理")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、本契約有關之通知或要求應以書面送達下列之處所及人員(以下簡稱「聯絡人」),經送達「聯絡人」者,即視為已送達該方當事人:"),e("br"),t._v("    甲方:"),e("br"),t._v("       姓名:○○○"),e("br"),t._v("       職稱:○○○"),e("br"),t._v("       聯絡電話:○○○"),e("br"),t._v("       傳真:○○○"),e("br"),t._v("       電子郵件:○○○"),e("br"),t._v("       地址:○○○"),e("br"),t._v("    乙方:"),e("br"),t._v("       姓名:○○○"),e("br"),t._v("       職稱:○○○"),e("br"),t._v("       聯絡電話:○○○"),e("br"),t._v("       傳真:○○○"),e("br"),t._v("       電子郵件:○○○"),e("br"),t._v("       地址:○○○"),e("br"),t._v(" 二、任一方之「聯絡人」或其職稱、聯絡電話、傳真、電子郵件或地址有變更時,應於變更後之七日內,以書面通知他方。否則,他方依變更前之資訊所為之通知或要求,仍生送達該方當事人之效力。 ")]),e("h3",[t._v("第十一條:違約效果")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、任一方遲延支付他方任何一種款項累積達三十日以上時,他方得以書面終止本契約。"),e("br"),t._v(" 二、任一方違反權義轉讓之約定時,應支付他方○○元整,或應將其因違反前述約定所得之利益轉讓予他方,以為違約罰金,他方並得另以書面終止或解除本契約。"),e("br"),t._v(" 三、任一方違反本契約其他條款之約定或「機械雲店中店」與「服務中心」所訂定之「機械雲APP平台服務條款」、「開發者規範」及其它所有規定時,他方得以書面通知其於三十日內改正。逾期未改正者,他方得另以書面終止本契約。"),e("br"),t._v(" 四、任何一方重整或聲請或被聲請重整;解散或決議解散或被命令或裁定解散;合併或決議合併;破產或聲請或被聲請宣告破產;主要資產被查封;無法償還債務;或有相當事實足證有發生前述任一情事之虞;或股權結構中增加陸、港、澳投資人,且陸、港、澳投資人持有之股份累計達全部股份百分之十以上(下稱:股權變動)時,他方得以書面通知終止本契約。任一方於股權變動情事發生後三十日內,應以書面通知他方;他方僅得於該股權變動情事導致本契約有違反政府法令規定或損及我國整體產業及技術發展之情況下,始得終止本契約或以書面另議新約。"),e("br"),t._v(" 五、甲方遲延支付乙方任何一種款項時,乙方得自「機械雲店中店」上移除甲方之「產品」,直到甲方付清款項時為止。"),e("br"),t._v(" 六、如任一方確有侵權之情事,他方得立即終止本契約。 ")]),e("h3",[t._v("第十二條:終止效果")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、本契約因任一方違約而終止或解除後,未違約方除得依本契約及有關法令之規定行使其權利外,並得向違約方請求賠償其所受之損害。本契約若非因乙方違約而終止或解除,甲方於本契約終止或解除前之給付義務不受影響。乙方經核算截至當時已完成之「服務費用」,如有不足之款項時,甲方仍應負有給付之義務。"),e("br"),t._v(" 二、本契約終止或解除後,甲方應立即停止行使其對「機械雲店中店」所得行使之權利,並應立即將乙方及「服務中心」提供之資料、文件等返還乙方,並銷毀或刪除其電子檔及複製本。 ")]),e("h3",[t._v("第十三條:生效日期")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 本契約下列條款,不因本契約終止或解除而失效:智慧財產權、侵權責任、特約條款、保密條款、終止效果、合意管轄及其他依性質仍應存續之條款。 ")]),e("h3",[t._v("第十四條:契約修改")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("本契約之增刪或修改,非經雙方當事人以書面協議之方式為之,不生效力。")]),e("h3",[t._v("第十五條:不可抗力")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 因水災、火災、風災、地震或其他不可歸責於一方之事由,致其不能履行本契約或不能照本契約履行者,該方免給付義務或不負遲延責任。 ")]),e("h3",[t._v("第十六條:一部無效")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("本契約部分條款依法被認為無效時,其他條款仍應繼續有效。")]),e("h3",[t._v("第十七條:條文名稱")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("本契約各條文及項目之標題,僅係為方便閱讀之用,不得據以解釋、限制或影響各該條文或項目用語所含之意義。")]),e("h3",[t._v("第十八條:合意管轄")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("若因本契約而涉訟時,甲乙雙方同意以新竹地方法院為第一審管轄法院。")]),e("h3",[t._v("第十九條:完整合意")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 一、本契約本文及其附件構成雙方對本案完整之合意。任何於本契約生效前經雙方協議而未記載於本契約本文或其附件之事項,對雙方均無拘束力。"),e("br"),t._v(" 二、附件之效力與本契約之本文同,但兩者有牴觸時,以本契約本文為準。"),e("br"),t._v(" 三、本契約未盡事宜,雙方應本誠信原則互相協議解決。 ")]),e("h3",[t._v("第二十條:契約份數")]),e("p",{staticClass:"mt-1 mb-8"},[t._v("本契約壹式貳份,由甲乙雙方各執乙份為憑。")]),e("p",{staticClass:"mt-1 mb-8"},[t._v(" 立約人:"),e("br"),t._v("   甲方:○○○○○○公司"),e("br"),t._v("     代表人:"),e("br"),t._v("       姓名:"),e("br"),t._v("       職稱:董事長"),e("br"),t._v("     地址:○○○○○○"),e("br"),t._v("     統一編號:○○○○○○"),e("br"),e("br"),t._v("   乙方:財團法人工業技術研究院"),e("br"),t._v("     代理人:"),e("br"),t._v("       姓名:"),e("br"),t._v("       職稱:院長"),e("br"),t._v("     地址:新竹縣竹東鎮中興路四段一九五號"),e("br"),t._v("     統一編號:02750963"),e("br"),t._v("     工研院顧客服務專線:0800-45-8899"),e("br"),e("br"),t._v(" 中華民國○○○年○○月○○日 ")])]),e("p",{staticClass:"text-caption"},[t._v("註:平台有權依實際狀況對條款內容進行更新")]),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(t._s(t.$t("disagree")))]),e(h["a"],{staticClass:"_blue white--text",attrs:{text:""},on:{click:function(e){return t.$emit("agree")}}},[t._v(t._s(t.$t("agree")))])],1)],1)},We=[],Qe={},Ke=Qe,Ye=Object(E["a"])(Ke,Ve,We,!1,null,null,null),Ge=Ye.exports,Je={name:"account",components:{VueRecaptcha:He["a"],TermsService:ut,TermsCooperation:Ge,QrcodeVue:Fe["a"]},props:{form:{type:String,default:"signIn"},redirectUrl:{type:String,default:""}},data:()=>({view:"",email:"",password:"",showSignIn:!0,signUpUser:{industrys:"All"},isPassCaptcha:!1,isSignUpDeveloper:!1,isForgotPassword:!1,showServiceDialog:!1,showCooperationDialog:!1,showSuccessDialog:!1,agreeServiceTerms:!1,agreeCooperationTerms:!1,newPassword:"",confirmNewPassword:"",countDown:60,sitekey:"6LcFVnEaAAAAAKhitHNhZiSZGwqOHV_0FG55_Cgb",totpStatus:!1,isSetTotp:!1,qrcodeStr:"",otpValue:""}),computed:{...Object(L["c"])("authenticate",["isSignIn","user","userAttribute"]),...Object(L["b"])("dbTable",["industryList","permissionId","policyByUserType"]),rules(){return[t=>!!t||this.$t("require")]},emailRules(){return[t=>/[a-zA-Z0-9._%-]+@.+\..+/.test(t)||this.$t("invalid")]},developerRules(){return[t=>this.isSignUpDeveloper||!!t||this.$t("require")]},showSignUpBtn(){return this.isPassCaptcha&&this.agreeServiceTerms&&(!this.isSignUpDeveloper||this.agreeCooperationTerms)},showFirstSignInBtn(){return this.agreeServiceTerms&&(!this.isDeveloper||this.agreeCooperationTerms)},isDeveloper(){return!!this.isSignIn&&(!!Object.keys(this.userAttribute).length&&-1!==Object.keys(this.userAttribute.policy).findIndex(t=>t===this.permissionId("launch")))},industryItems(){if(!this.industryList)return[];const t=this.industryList.map(t=>({text:t.name,value:t.id}));return t.unshift({text:"All",value:"All"}),t},userData(){return{...this.userAttribute}},isOauth(){return!0}},mounted(){this.isSignIn?this.view=this.$route.name:this.isOauth?this.$router.push({name:"main"}):this.view="signIn",this.isOauth&&this.user&&(this.signUpUser.email=this.user.email),this.isOauth&&(this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/oauthToken",{refreshToken:window.localStorage.getItem("oauthRefreshToken")}).then(t=>{this.$store.commit("authenticate/setUserAccessToken",t.accessToken),this.$store.dispatch("authenticate/totpStatus").then(t=>{this.totpStatus=t,console.log("totp status",this.totpStatus),this.$store.commit("loading/stop")}).catch(()=>{this.totpStatus=!1,this.$store.commit("loading/stop")})}).catch(()=>{window.sessionStorage.setItem("isOauthTest",!1),this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errLoginExpired")]}),window.localStorage.removeItem("oauthRefreshToken"),window.localStorage.removeItem("oauthCode")}))},methods:{ssoSignIn(){const t=`${window.location.origin}${window.location.pathname}`;console.log(t),this.$store.dispatch("authenticate/oauthSignInUrl",{redirectUrl:t}).then(t=>{window.sessionStorage.setItem("isOauthTest",!0),window.location.href=t})},recaptchaVerify(){this.isPassCaptcha=!0},recaptchaExpired(){this.isPassCaptcha=!1},resetRecaptcha(){this.$refs.recaptcha.reset()},changeView(t){this.view=t,this.$refs.form&&this.$refs.form.reset()},signIn(){this.$refs.form.validate()&&(window.sessionStorage.setItem("isOauthTest",!1),this.$store.commit("loading/start",{text:"working"}),et.read(this.email).then(t=>{if(void 0===t)return this.$store.commit("loading/stop"),void this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errNotAuthorized")]});this.$store.dispatch("authenticate/signIn",{email:this.email.trim(),password:this.password}).then(e=>{if(this.$store.commit("authenticate/setUserAttribute",t),this.email="",this.password="",this.resetRecaptcha(),this.$store.commit("loading/stop"),"NEW_PASSWORD_REQUIRED"===e.challengeName)this.$store.commit("notify/set",{type:"success",msg:[this.$t("signIn")," ",this.$t("success")]}),this.changeView("firstSignIn");else if(e.challengeName&&""!==e.challengeName)this.$store.commit("notify/set",{type:"alarm",msg:["Not ready to implement this challenge "+e.challengeName]});else{this.$store.commit("notify/set",{type:"success",msg:[this.$t("signIn")," ",this.$t("success")]});const s={...t};e.attributes.sub!==s.cognitoId&&(et.update({email:s.email,cognitoId:e.attributes.sub}),s.cognitoId=e.attributes.sub,this.$store.commit("authenticate/setUserAttribute",s)),this.$router.push({name:"main"})}}).catch(t=>{let e="";switch(t.message){case"User does not exist.":e=this.$t("errUserNotFound");break;case"Incorrect username or password.":e=this.$t("errNotAuthorized");break;case"Password attempts exceeded":{this.showSignIn=!1,e=this.$t("errPasswordAttemptsExceeded");const t=setInterval(()=>{this.countDown-=1,this.countDown<0&&(clearInterval(t),this.resetRecaptcha(),this.isPassCaptcha=!1,this.showSignIn=!0)},1e3);break}case"Temporary password has expired and must be reset by an administrator.":e=this.$t("errTemporaryPasswordExpired");break;case"UserNotConfirmedException":case"User is disabled.":e=this.$t("errNotConfirmed");break;case"Failed to execute 'setItem' on 'Storage': Setting the value of 'user' exceeded the quota.":e=this.$t("errLocalStorageFull");break;default:e=t.message;break}this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[e]})})}))},modifyPassword(){if(!this.$refs.form.validate())return;if(this.newPassword!==this.confirmNewPassword)return void this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errPasswordNotMatch")]});const t=/^(?=.*[a-zA-Z])(?=.*\d).{8,16}$/;t.test(this.newPassword)?(this.$store.commit("loading/start",{text:"working"}),this.isForgotPassword?this.$store.dispatch("authenticate/forgotPasswordSubmit",{email:this.email,code:this.password,newPassword:this.newPassword}).then(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("modify")," ",this.$t("success")]}),this.changeView("signIn"),this.password="",this.newPassword="",this.confirmNewPassword="",this.isForgotPassword=!1}).catch(t=>{let e="";switch(t.message){case"Invalid verification code provided, please try again.":e=this.$t("errVerifyCode");break;default:e=t.message;break}this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[e]})}):this.isOauth?this.$store.dispatch("authenticate/oauthChangePassword",{password:this.password,newPassword:this.newPassword}).then(t=>{if(this.$store.commit("loading/stop"),"success"===t.status)this.$store.commit("notify/set",{type:"success",msg:[this.$t("modify")," ",this.$t("success")]}),this.$router.push({name:"main"}),this.password="",this.newPassword="",this.confirmNewPassword="";else{let e="";switch(t.error.message){case"Incorrect username or password.":e=this.$t("errNotAuthorized");break;default:e=t.error.message;break}this.$store.commit("notify/set",{type:"alarm",msg:[e]})}}).catch(t=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[t]})}):this.$store.dispatch("authenticate/changePassword",{password:this.password,newPassword:this.newPassword}).then(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("modify")," ",this.$t("success")]}),this.$router.push({name:"main"}),this.password="",this.newPassword="",this.confirmNewPassword=""}).catch(t=>{let e="";switch(t.message){case"Incorrect username or password.":e=this.$t("errNotAuthorized");break;default:e=t.message;break}this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[e]})})):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errPasswordTooWeak")]})},forgotPassword(){this.$refs.form.validate()&&et.read(this.email).then(t=>{void 0!==t?"pass"===t.group?(this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/forgotPassword",{email:this.email.trim()}).then(()=>{this.$store.commit("loading/stop"),this.isForgotPassword=!0,this.countDown=300,this.view="modifyPassword";const t=setInterval(()=>{this.countDown-=1,this.countDown<0&&(clearInterval(t),this.changeView("signIn"))},1e3)}).catch(t=>{switch(t.message){case"User password cannot be reset in the current state.":return void this.$store.dispatch("authenticate/resendVerifyCode",{email:this.email.trim()}).then(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("hintForgotPassword")]}),this.changeView("signIn")}).catch(t=>this.$store.commit("notify/set",{type:"alarm",msg:[t]}));default:break}this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[t]})})):this.$store.commit("notify/set",{type:"success",msg:[this.$t("hintSignUpSuccess")]}):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errUserNotFound")]})})},oauthSignUp(){this.$refs.form.validate()&&(this.signUpUser.cognitoId=this.user.cognitoId,this.signUpUser.policy=this.policyByUserType(this.isSignUpDeveloper?"2":"1").policy,this.signUpUser.oauthSignUp=!0,this.$store.commit("loading/start",{text:"working"}),et.create(this.signUpUser).then(()=>{et.read(this.signUpUser.email).then(t=>{this.$store.commit("loading/stop"),this.$store.commit("authenticate/setUserAttribute",t),this.$store.dispatch("authenticate/oauthSignInUrl",{redirectUrl:this.redirectUrl}).then(t=>{window.location.href=t})})}).catch(t=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[t.message]})}))},signUp(){this.isOauth?this.oauthSignUp():this.$refs.form.validate()&&(this.signUpUser.email=this.signUpUser.email.trim(),this.signUpUser.policy=this.policyByUserType(this.isSignUpDeveloper?"2":"1").policy,this.$store.commit("loading/start",{text:"working"}),et.create(this.signUpUser).then(()=>{this.$store.commit("loading/stop"),this.signUpUser={industrys:"All"},this.isPassCaptcha=!1,this.isSignUpDeveloper=!1,this.agreeServiceTerms=!1,this.agreeCooperationTerms=!1,this.resetRecaptcha(),this.changeView("signIn"),this.showSuccessDialog=!0}).catch(t=>{this.$store.commit("loading/stop");let e="";switch(t.message){case"An account with the given email already exists.":e=this.$t("errEmailExist");break;case"Failed to execute 'setItem' on 'Storage': Setting the value of 'user' exceeded the quota.":e=this.$t("errLocalStorageFull");break;default:e=t.message;break}this.$store.commit("notify/set",{type:"alarm",msg:[e]})}))},firstSignIn(){if(!this.$refs.form.validate())return;if(this.newPassword!==this.confirmNewPassword)return void this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errPasswordNotMatch")]});const t=/^(?=.*[a-zA-Z])(?=.*\d).{8,16}$/;t.test(this.newPassword)?(this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/changeNewPassword",{newPassword:this.newPassword}).then(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("modify")," ",this.$t("success")]}),this.agreeServiceTerms=!1,this.agreeCooperationTerms=!1,this.changeView("signIn")}).catch(t=>{let e="";switch(t.message){case"Failed to execute 'setItem' on 'Storage': Setting the value of 'user' exceeded the quota.":e=this.$t("errLocalStorageFull");break;default:e=t.message;break}this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[e]})})):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errPasswordTooWeak")]})},isTotp(){this.$store.dispatch("authenticate/totpStatus").then(t=>{this.totpStatus=t,console.log("totp status",this.totpStatus)}).catch(()=>{this.totpStatus=!1})},enableTotp(){this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/totpEnable",{enable:this.totpStatus}).then(t=>{if(this.isSetTotp=this.totpStatus,this.$store.commit("loading/stop"),console.log(t),this.totpStatus){const e=encodeURIComponent(this.userAttribute.email);this.qrcodeStr=`otpauth://totp/${encodeURIComponent("iMacloud OTP")}:${e}?secret=${t}&issuer=ITRI`}else this.qrcodeStr="",this.$store.commit("notify/set",{type:"success",msg:[this.$t("close")," ",this.$t("success")]})}).catch(()=>{this.totpStatus=!1,this.isSetTotp=!1,this.qrcodeStr="",this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errLoginExpired")]}),this.$store.commit("loading/stop")})},verifyTotp(){""!==this.otpValue?this.$store.dispatch("authenticate/totpVerify",{code:this.otpValue}).then(t=>{this.otpValue="","fail"===t.status?this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]}):(this.$store.commit("notify/set",{type:"success",msg:[this.$t("verify")," ",this.$t("success")]}),this.isSetTotp=!1,this.isTotp())}).catch(t=>{console.log(t),this.otpValue="",this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]})}):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]})}}},Ze=Je,Xe=(s("ed9c"),Object(E["a"])(Ze,Be,ze,!1,null,"6fb8309f",null)),ts=Xe.exports,es=s("23a7"),ss=function(){var t=this,e=t._self._c;return e(g["a"],[e(d["a"],{staticClass:"mx-auto opacity-background pa-8",attrs:{"max-width":"650"}},[e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{label:t.$t("name"),rules:t.rules},model:{value:t.userData.name,callback:function(e){t.$set(t.userData,"name",e)},expression:"userData.name"}}),e(vt["a"],{attrs:{label:t.$t("email"),disabled:""},model:{value:t.userData.email,callback:function(e){t.$set(t.userData,"email",e)},expression:"userData.email"}}),e(vt["a"],{attrs:{label:t.$t("permission"),disabled:""},model:{value:t.permission,callback:function(e){t.permission=e},expression:"permission"}}),e(vt["a"],{attrs:{label:t.$t("phone"),rules:t.rules},model:{value:t.userData.phone,callback:function(e){t.$set(t.userData,"phone",e)},expression:"userData.phone"}}),e(vt["a"],{attrs:{label:t.$t("address"),rules:t.rules},model:{value:t.userData.address,callback:function(e){t.$set(t.userData,"address",e)},expression:"userData.address"}}),e(vt["a"],{attrs:{label:t.$t("profession"),rules:t.rules},model:{value:t.userData.profession,callback:function(e){t.$set(t.userData,"profession",e)},expression:"userData.profession"}}),e(vt["a"],{attrs:{label:t.$t("department"),rules:t.developerRules},model:{value:t.userData.department,callback:function(e){t.$set(t.userData,"department",e)},expression:"userData.department"}}),e(vt["a"],{attrs:{label:t.$t("taxId"),rules:t.developerRules},model:{value:t.userData.taxId,callback:function(e){t.$set(t.userData,"taxId",e)},expression:"userData.taxId"}}),e(bt["a"],{attrs:{label:t.$t("industrys"),items:t.industryItems,rules:t.rules,disabled:t.isDeveloper},model:{value:t.userData.industrys,callback:function(e){t.$set(t.userData,"industrys",e)},expression:"userData.industrys"}}),e(es["a"],{attrs:{label:t.$t("avatar"),"prepend-icon":"","prepend-inner-icon":"mdi-paperclip"},model:{value:t.avatarFile,callback:function(e){t.avatarFile=e},expression:"avatarFile"}}),t.isOauth?[e("a",{attrs:{href:"https://hackmd.io/@iMacloud/rJjtTpBI2",target:"_blank",rel:"noopener"}},[t._v("TOTP"+t._s(t.$t("description")))]),e(Re["a"],{attrs:{label:t.$t("enableTotp")},on:{change:function(e){return t.confirmTotp()}},model:{value:t.totpStatus,callback:function(e){t.totpStatus=e},expression:"totpStatus"}}),t.isSetTotp?e(gt["a"],{staticClass:"_grey--text",attrs:{align:"center"}},[e(f["a"],{attrs:{cols:"3"}},[e("QrcodeVue",{attrs:{value:t.qrcodeStr}})],1),e(f["a"],{attrs:{cols:"7"}},[e(gt["a"],[e("div",[t._v(t._s(t.$t("inputOtp")))])]),e(gt["a"],[e("div",{staticClass:"position-relative",staticStyle:{"max-width":"300px"}},[e(Ee["a"],{attrs:{plain:""},model:{value:t.otpValue,callback:function(e){t.otpValue=e},expression:"otpValue"}})],1)])],1),e(f["a"],{attrs:{cols:"2"}},[e(h["a"],{on:{click:function(e){return t.verifyTotp()}}},[t._v(t._s(t.$t("verify")))])],1)],1):t._e()]:t._e()],2),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.modifyData()}}},[t._v(t._s(t.$t("ok")))])],1)],1),e("Dialog",{attrs:{isShow:t.confirmDialog,title:"cancel",msg:"confirmMsg",verbMsg:"cancel"},on:{confirm:function(e){return t.enableTotp()},cancel:function(e){return t.confirmCancel()}}})],1)},as=[];const is=s("4a9d");is.config.update({region:"ap-northeast-1",credentials:new is.CognitoIdentityCredentials({IdentityPoolId:"ap-northeast-1:c3b64f06-9a37-424c-8e27-be0c402dddec"})});const rs=new is.S3,os="vmx-production-webbucket-11jsmiztxwc9m";var ns={state:{},upload(t,e){return new Promise((s,a)=>{rs.upload({Bucket:os,Body:e,Key:t}).promise().then(t=>{console.log(t),s(t)}).catch(t=>{console.log(t),a(t)})})},delete(t){return new Promise((e,s)=>{rs.deleteObject({Bucket:os,Key:t}).promise().then(t=>{e(t)}).catch(t=>{s(t)})})},list(t,e){return new Promise((s,a)=>{rs.listObjects({Bucket:t,Prefix:e}).promise().then(t=>{s(t)}).catch(t=>{a(t)})})}},cs=function(){var t=this,e=t._self._c;return e(gt["a"],{attrs:{justify:"center"}},[e(b["a"],{attrs:{persistent:"","max-width":"290"},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[e(d["a"],[e(m["d"],{staticClass:"headline"},[t._v(t._s(t.$t(t.title)))]),e(m["c"],[t._v(t._s(t.$t(t.msg,{verb:t.$t(t.verbMsg)})))]),e(m["a"],[e("div",{staticClass:"flex-grow-1"}),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.$t("ok")))])],1)],1)],1)],1)},ls=[],us={name:"Dialog",props:{isShow:{type:Boolean,required:!0},title:{type:String,required:!0},msg:{type:String,required:!0},verbMsg:{type:String,default:""}}},hs=us,ds=Object(E["a"])(hs,cs,ls,!1,null,null,null),ms=ds.exports,ps={name:"userAttribute",props:{form:{type:String,default:"signIn"}},components:{QrcodeVue:Fe["a"],Dialog:ms},data:()=>({avatarFile:[],otpLoading:!1,totpStatus:!1,isSetTotp:!1,qrcodeStr:"",otpValue:"",confirmDialog:!1}),computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["c"])("dbTable",["permissionList"]),...Object(L["b"])("dbTable",["industryList","permissionId"]),permission(){if(!this.isSignIn)return[];const t=["launch","audit","download","usage","basicStatistics","basicQuery"],e=[];return t.forEach(t=>{-1!==Object.keys(this.userData.policy).findIndex(e=>this.permissionId(t)===e)&&e.push(this.$t(t))}),e},rules(){return[t=>!!t||this.$t("require")]},developerRules(){return[t=>this.isDeveloper||!!t||this.$t("require")]},isDeveloper(){return!!this.isSignIn&&-1!==Object.keys(this.userAttribute.policy).findIndex(t=>t===this.permissionId("launch"))},isOauth(){return!0},industryItems(){if(!this.industryList)return[];const t=this.industryList.map(t=>({text:t.name,value:t.id}));return t.unshift({text:"All",value:"All"}),t},userData(){return this.isSignIn?{...this.userAttribute}:{}}},created(){this.isSignIn||this.$router.push({name:"account"}),this.isOauth&&(this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/oauthToken",{refreshToken:window.localStorage.getItem("oauthRefreshToken")}).then(t=>{this.$store.commit("authenticate/setUserAccessToken",t.accessToken),this.$store.dispatch("authenticate/totpStatus").then(t=>{this.totpStatus=t,console.log("totp status",this.totpStatus),this.$store.commit("loading/stop")}).catch(()=>{this.totpStatus=!1,this.$store.commit("loading/stop")})}).catch(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errLoginExpired")]}),window.localStorage.removeItem("oauthRefreshToken"),window.localStorage.removeItem("oauthCode")}))},methods:{isTotp(){this.$store.dispatch("authenticate/totpStatus").then(t=>{this.totpStatus=t,console.log("totp status",this.totpStatus)}).catch(()=>{this.totpStatus=!1})},confirmTotp(){this.totpStatus?this.enableTotp():this.confirmDialog=!0},confirmCancel(){this.confirmDialog=!1,this.totpStatus=!0},enableTotp(){this.confirmDialog=!1,this.$store.commit("loading/start",{text:"working"}),this.$store.dispatch("authenticate/totpEnable",{enable:this.totpStatus}).then(t=>{if(this.isSetTotp=this.totpStatus,this.$store.commit("loading/stop"),console.log(t),this.totpStatus){const e=encodeURIComponent(this.userAttribute.email);this.qrcodeStr=`otpauth://totp/${encodeURIComponent("iMacloud OTP")}:${e}?secret=${t}&issuer=ITRI`}else this.qrcodeStr="",this.$store.commit("notify/set",{type:"success",msg:[this.$t("close")," ",this.$t("success")]})}).catch(()=>{this.totpStatus=!1,this.isSetTotp=!1,this.qrcodeStr="",this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errLoginExpired")]}),this.$store.commit("loading/stop")})},verifyTotp(){""!==this.otpValue?this.$store.dispatch("authenticate/totpVerify",{code:this.otpValue}).then(t=>{this.otpValue="","fail"===t.status?this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]}):(this.$store.commit("notify/set",{type:"success",msg:[this.$t("verify")," ",this.$t("success")]}),this.isSetTotp=!1,this.isTotp())}).catch(t=>{console.log(t),this.otpValue="",this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]})}):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errVerifyCode")]})},modifyData(){if(this.$refs.form.validate()){if(this.$store.commit("loading/start",{text:"working"}),0!==this.avatarFile.length){let t;t=Object.prototype.hasOwnProperty.call(this.userData,"avatar")&&"image"===this.userData.avatar.type?""+this.userData.avatar.path:J.randomId()+".jpg",this.userData.avatar={type:"image",path:t},ns.upload("public/avatar/"+this.userData.avatar.path,this.avatarFile)}et.update(this.userData).then(()=>{this.$store.commit("authenticate/setUserAttribute",this.userData),this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("modify")," ",this.$t("success")]}),this.$router.push({name:"main"})}).catch(t=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[t]})})}},fileExtension(t){return/[.]/.exec(t)?/[^.]+$/.exec(t)[0]:""}}},fs=ps,gs=(s("419c"),Object(E["a"])(fs,ss,as,!1,null,"7d488728",null)),bs=gs.exports,vs=s("a844"),ws=function(){var t=this,e=t._self._c;return e(g["a"],{attrs:{fluid:""}},[e(gt["a"],{staticClass:"px-5",attrs:{justify:"center"}},[e(j["a"],{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(h["a"],t._g(t._b({staticClass:"mt-16",attrs:{icon:""},on:{click:function(e){return t.$router.go(-1)}}},"v-btn",a,!1),s),[e(y["a"],{attrs:{"x-large":"",color:"white"}},[t._v(t._s("mdi-arrow-left-circle"))])],1)]}}])},[e("span",[t._v(t._s(t.$t("back")))])]),e(f["a"],{attrs:{cols:"12",md:"7"}},[e(d["a"],{staticClass:"mx-auto my-16",attrs:{"max-width":"900"}},[e(m["c"],{staticClass:"_grey--text subtitle-1"},[e(gt["a"],{staticClass:"ma-5"},[e(f["a"],{attrs:{cols:"auto",sm:"3"}},[e(_["a"],{attrs:{"max-height":"180",width:"180",contain:"",src:t.app.icon}})],1),e(f["a"],{attrs:{cols:"12",sm:"9"}},[e(gt["a"],{staticClass:"_grey--text text-h5 font-weight-black"},[t._v(t._s(t.app.name))]),e(gt["a"],{staticClass:"_blue--text subtitle-2",attrs:{justify:"space-around"}},[e(f["a"],[t._l(t.categoryType,(function(s){return[e("div",{key:s},[e("a",{staticClass:"_blue--text",on:{click:function(e){return t.categoryClick(s)}}},[t._v(t._s(t.categoryName(s)))])])]})),e("br"),e("br"),e("a",{staticClass:"_blue--text",on:{click:function(e){return t.addWishClick()}}},[e(y["a"],{attrs:{color:"_blue"}},[t._v(t._s(t.wishIcon))]),t._v(" "+t._s(t.$t("addToWishlist"))+" ")],1),e("br"),e("a",{staticClass:"_blue--text",on:{click:function(e){return t.shareCopyClick(t.app.name)}}},[e(y["a"],{attrs:{color:"_blue"}},[t._v("mdi-share-variant")]),t._v(" "+t._s(t.$t("shareCopy"))+" ")],1)],2),e(f["a"],{attrs:{align:"end"}},[e(gt["a"],{staticClass:"_grey--text"},[e(f["a"],[e(qt["a"],{attrs:{value:t.app.rating,color:"_grey","background-color":"_grey",dense:"","half-increments":"",readonly:"",size:"16"}}),e("span",[t._v(t._s(t.installCount))]),e(y["a"],[t._v("mdi-account")]),t._v(" "),e("br"),e("br"),e("br"),e("br"),e(h["a"],{staticClass:"mr-2 _blue _light_grey--text",attrs:{disabled:t.btnManualDisable},on:{click:function(e){return t.manualClick()}}},[t._v(t._s(t.$t("manual")))]),e(j["a"],{attrs:{bottom:"",disabled:!t.btnInstallDisable},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e("div",t._g({staticClass:"d-inline-block"},s),[e(h["a"],{staticClass:"_blue _light_grey--text",attrs:{disabled:t.btnInstallDisable},on:{click:function(e){return t.dialogClick()}}},[t._v(" "+t._s(t.$t("install"))+" ")])],1)]}}])},[e("span",[t._v(t._s(t.$t("hintInstall")))])]),t.discount.exist?[e("div",{staticClass:"text-decoration-line-through"},[t._v(t._s(t.$t("charge")+":NT$"+t.priceSign(t.app.price)+"/"+t.$t(t.chargeType)))]),e("div",{staticClass:"red--text"},[t._v(t._s(t.discountPeriod))]),e("div",{staticClass:"red--text"},[t._v(t._s(t.$t("discount")+":NT$"+t.priceSign(t.discount.price)+"/"+t.$t(t.chargeType)))])]:e("div",[t._v(t._s(t.$t("charge")+":NT$"+t.priceSign(t.app.price)+"/"+t.$t(t.chargeType)))]),e("div",[t._v(t._s(t.$t("size")+":"+t.appSize))])],2)],1)],1)],1)],1)],1),t.isShowWriteComment?e(gt["a"],{staticClass:"mx-5"},[e(m["c"],{staticClass:"subtitle-1"},[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("rateApp")))]),e(gt["a"],{staticClass:"my-2 px-3",on:{click:function(e){return t.commentEdit({})}}},[e("a",[e(qt["a"],{attrs:{"background-color":"_blue",dense:"","half-increments":"",readonly:"",size:"20"}})],1),e("a",{staticClass:"_blue--text"},[t._v(t._s(t.$t("writeComment")))])])],1)],1):t._e(),e(gt["a"],{staticClass:"mx-5"},[e("CarouselBox",{attrs:{items:t.carouselItems,showArrows:!0,isCycle:!1,imgMaxHeight:"400",hideDelimiter:!0},on:{action:t.crouselAction}})],1),e(gt["a"],{staticClass:"mx-5"},[e(m["c"],{staticClass:"subtitle-1"},[t.app.chargeTypeDescription&&"pseudo"!==t.app.chargeTypeDescription?[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("chargeMethod")))]),e("div",[t._v(t._s(t.app.chargeTypeDescription))]),e("div",[t._v(t._s(t.$t("minCharge")+":NT$"+t.app.minFee))]),e("br")]:t._e(),e("label",{staticClass:"font-weight-black",attrs:{for:"introLabel"}},[t._v(t._s(t.$t("introduction")))]),e(vs["a"],{staticClass:"my-textarea ma-0 pa-0",attrs:{rows:"1",id:"introLabel",flat:"","auto-grow":"",disabled:""},model:{value:t.app.description,callback:function(e){t.$set(t.app,"description",e)},expression:"app.description"}}),e("label",{staticClass:"font-weight-black",attrs:{for:"specLabel"}},[t._v(t._s(t.$t("specification")))]),e(vs["a"],{staticClass:"my-textarea ma-0 pa-0",attrs:{rows:"1",id:"specLabel",flat:"","auto-grow":"",disabled:""},model:{value:t.app.specification,callback:function(e){t.$set(t.app,"specification",e)},expression:"app.specification"}}),e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("requirement")))]),t.app.requireSensor&&""!==t.app.requireSensor?e("div",[t._v(t._s(t.$t("requireSensor")+":"+t.app.requireSensor))]):e("div",[t._v(t._s(t.$t("requireSensor")+":"+t.$t("unrequirement")))]),t.app.requireIndustry&&""!==t.app.requireIndustry?e("div",[t._v(t._s(t.$t("requireIndustry")+":"+t.requireIndustryName()))]):e("div",[t._v(t._s(t.$t("requireIndustry")+":"+t.$t("unrequirement")))]),t.app.requireSmb&&""!==t.app.requireSmb?e("div",[t._v(t._s(t.$t("requireSmb")+":"+t.app.requireSmb))]):e("div",[t._v(t._s(t.$t("requireSmb")+":"+t.$t("unrequirement")))]),t.app.isRequireNet?e("div",[t._v(t._s(t.$t("requireNet")+":"+t.$t("yesrequirement")))]):e("div",[t._v(t._s(t.$t("requireNet")+":"+t.$t("unrequirement")))]),t.isShowScore?e("br"):t._e(),t.isShowScore?e(v["a"]):t._e()],2)],1),e(gt["a"],{staticClass:"mx-5"},[t.isShowScore?e(m["c"],{staticClass:"subtitle-1"},[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("comment")))]),e("Score",{attrs:{data:t.score}}),t._l(t.showComment,(function(s){return[e("Comment",{key:s.id,attrs:{data:s,options:t.commentOptions(s)},on:{edit:function(e){return t.commentEdit(s)},helpful:function(e){return t.commentUpdateHelpful(s)},response:function(e){return t.commentResponse(s)}}})]})),t.isShowAllComment?e(f["a"],{attrs:{align:"center"},on:{click:function(e){return t.commentReadAll({})}}},[e("a",{staticClass:"_blue--text"},[t._v(t._s(t.$t("readAllComment")))])]):t._e()],2):t._e(),e(b["a"],{attrs:{"max-width":"705"},model:{value:t.isEditComment,callback:function(e){t.isEditComment=e},expression:"isEditComment"}},[e("EditComment",{attrs:{data:t.editComment},on:{cancel:function(e){t.isEditComment=!1},submit:function(e){return t.commentSubmit()}}})],1),e(b["a"],{attrs:{"max-width":"705"},model:{value:t.isResponseComment,callback:function(e){t.isResponseComment=e},expression:"isResponseComment"}},[e("EditComment",{attrs:{data:t.editComment.response,option:"response"},on:{cancel:function(e){t.isResponseComment=!1},submit:function(e){return t.commentSubmit()}}})],1)],1),e(gt["a"],{staticClass:"mx-5"},[e(m["c"],{staticClass:"subtitle-1"},[e(v["a"],{staticClass:"mb-5"}),e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("otherInfo")))]),e(gt["a"],[e(f["a"],{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("updateDate")))]),e("div",[t._v(t._s(t.appUpdateDate))])]),e(f["a"],{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("installCount")))]),e("div",[t._v(t._s(t.installCount))])]),e(f["a"],{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"font-weight-black"},[t._v(t._s(t.$t("developer")))]),e("div",[t._v(t._s(t.developer.chief+" "+t.developer.phoneNo))]),e("div",[t._v(t._s(t.developer.email))]),e("div",[t._v(t._s(t.developer.addr))])])],1)],1)],1)],1)],1),e(gt["a"],{staticClass:"mb-16",attrs:{justify:"center"}},[e(h["a"],{staticClass:"_blue _light_grey--text",on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("back")))])],1)],1),e(f["a"],{staticClass:"my-16",attrs:{cols:"12",md:"auto"}},[e(d["a"],{staticClass:"transparent"},[e(m["c"],{staticClass:"my-8"},[e(gt["a"],{attrs:{justify:"space-between"}},[e("span",{staticClass:"_light_grey--text text-h5 font-weight-black"},[t._v(t._s(t.$t("similarContent")))]),e(h["a"],{staticClass:"_blue _light_grey--text",on:{click:function(e){return t.seeMoreClick("similarContent")}}},[t._v(t._s(t.$t("seeMore")))])],1)],1),t._l(t.similarList.slice(0,5),(function(s){return[e("CardH",{key:s.name,staticClass:"mb-8",attrs:{data:s},on:{click:function(e){return t.cardClick(s.name)}}})]})),e(z["a"],{attrs:{value:t.hasCarousel},nativeOn:{click:function(e){t.hasCarousel=!1}}},[e("CarouselBox",{attrs:{items:t.carouselItems,showArrows:!0,hideDelimiter:!0,isCycle:!1,isVideo:!0,width:t.width,model:t.carouselIndex}})],1)],2)],1)],1),e(b["a"],{attrs:{persistent:"","max-width":"300"},model:{value:t.isDialog,callback:function(e){t.isDialog=e},expression:"isDialog"}},[e(d["a"],{staticClass:"mx-auto"},[e(m["c"],{staticClass:"subtitle-1"},[e("br"),e(y["a"],{attrs:{large:""}},[t._v(t._s("mdi-help-box"))]),t._v(" "+t._s(t.$t("dialogSure",[t.$t("install")]))+" "),e("div",{staticClass:"mt-5 font-weight-black"},[t._v(t._s(t.$t("requirement")))]),t.app.requireSensor&&""!==t.app.requireSensor?e("div",[t._v(t._s(t.$t("requireSensor")+":"+t.app.requireSensor))]):e("div",[t._v(t._s(t.$t("requireSensor")+":"+t.$t("unrequirement")))]),t.app.requireIndustry&&""!==t.app.requireIndustry?e("div",[t._v(t._s(t.$t("requireIndustry")+":"+t.requireIndustryName()))]):e("div",[t._v(t._s(t.$t("requireIndustry")+":"+t.$t("unrequirement")))]),t.app.requireSmb&&""!==t.app.requireSmb?e("div",[t._v(t._s(t.$t("requireSmb")+":"+t.app.requireSmb))]):e("div",[t._v(t._s(t.$t("requireSmb")+":"+t.$t("unrequirement")))]),t.app.isRequireNet?e("div",[t._v(t._s(t.$t("requireNet")+":"+t.$t("yesrequirement")))]):e("div",[t._v(t._s(t.$t("requireNet")+":"+t.$t("unrequirement")))])],1),e(m["a"],{staticClass:"justify-center"},[e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){t.isDialog=!1}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.installClick()}}},[t._v(t._s(t.$t("ok")))])],1)],1)],1)],1)},ys=[],_s=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto",attrs:{"max-width":"650",flat:""}},[e(gt["a"],{attrs:{justify:"center","no-gutters":""}},[e(f["a"],{attrs:{cols:"12",sm:"3",align:"center"}},[e(m["c"],{staticClass:"_grey--text"},[e("span",{staticClass:"text-h2"},[t._v(t._s(t.data.rating))]),e(qt["a"],{attrs:{color:"_grey","background-color":"_grey",dense:"","half-increments":"",readonly:"",size:"20"},model:{value:t.data.rating,callback:function(e){t.$set(t.data,"rating",e)},expression:"data.rating"}}),e("span",{staticClass:"ml-1"},[t._v(t._s(t.$t("totalScoreCount",{val:t.data.total})))])],1)],1),e(f["a"],{attrs:{cols:"12",sm:"9",align:"center"}},[e("BarChart",{attrs:{chartData:t.chartData,height:150}})],1)],1)],1)},xs=[],Cs=s("1fca");const{reactiveProp:ks}=Cs["b"];var $s,Is,Ss={extends:Cs["a"],props:["chartData"],mixins:[ks],data:()=>({options:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{enabled:!1},scales:{xAxes:[{gridLines:{display:!1},ticks:{display:!1}}],yAxes:[{gridLines:{display:!1}}]}}}),mounted(){this.renderChart(this.chartData,this.options)}},Ps=Ss,Ts=Object(E["a"])(Ps,$s,Is,!1,null,null,null),js=Ts.exports,As={name:"Score",props:{data:{type:Object,default:()=>({rating:0,total:0})}},components:{BarChart:js},data:()=>({}),computed:{chartData(){return{labels:["5","4","3","2","1"],datasets:[{barThickness:23,data:this.data.chartData,backgroundColor:["#79C9A1","#AED888","#FFD935","#FFB235","#FF8C5A"]}]}}}},Ds=As,Ls=Object(E["a"])(Ds,_s,xs,!1,null,null,null),Os=Ls.exports,Us=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto",attrs:{"max-width":"650",flat:""}},[e(m["c"],[e(gt["a"],[e(f["a"],{attrs:{cols:"2",sm:"1"}},[e(u["a"],{attrs:{color:t.randomColor,size:"40"}},[t.isAvatar?e("img",{attrs:{src:t.avatarPath,alt:"picture"}}):e("span",{staticClass:"_light_grey--text headline"},[t._v(t._s(t.photoWord))])])],1),e(f["a"],{attrs:{cols:"10",sm:"11"}},[e(gt["a"],{attrs:{justify:"space-between"}},[e(f["a"],{attrs:{cols:"auto"}},[e("div",{staticClass:"ml-1 text-subtitle-1 font-weight-black"},[t._v(t._s(t.data.userName))]),e(gt["a"],{staticClass:"mx-0 pt-2",attrs:{align:"center"}},[e(qt["a"],{attrs:{color:"_grey","background-color":"_grey",dense:"","half-increments":"",readonly:"",size:"14"},model:{value:t.data.rating,callback:function(e){t.$set(t.data,"rating",e)},expression:"data.rating"}}),e("span",{staticClass:"ml-1"},[t._v(t._s(new Date(t.data.updateTime).toLocaleDateString()))])],1)],1),e(f["a"],{attrs:{cols:"auto",align:"center"}},[e(j["a"],{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(h["a"],{staticStyle:{outline:"none"},attrs:{icon:""},on:{click:function(e){return t.helpfulHandler()}}},[e(y["a"],t._g(t._b({attrs:{color:t.helpfulIconColor,dense:""}},"v-icon",a,!1),s),[t._v("mdi-thumb-up")])],1)]}}])},[e("span",[t._v(t._s(t.$t("helpful")))])]),e(S["a"],{attrs:{bottom:"",right:"","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(j["a"],{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:i}){return[e(y["a"],t._g(t._b({},"v-icon",a,!1),{...i,...s}),[t._v("mdi-dots-vertical")])]}}],null,!0)},[e("span",[t._v(t._s(t.$t("moreOptions")))])])]}}])},[e(x["a"],t._l(t.options,(function(s){return e(C["a"],{key:s,on:{click:function(e){return t.menuHandler(s)}}},[e(k["b"],[t._v(t._s(t.$t(s)))])],1)})),1)],1),e(gt["a"],{attrs:{justify:"center"}},[e("span",{staticClass:"mr-7"},[t._v(t._s(t.data.helpful))])])],1)],1),e(gt["a"],[e(f["a"],[t._v(t._s(t.data.comment))])],1),t.data.hasOwnProperty("response")?e(gt["a"],[e(d["a"],{staticClass:"_light_grey",attrs:{width:"580",flat:""}},[e(m["c"],[e("div",[e("span",{staticClass:"text-body-2 font-weight-black"},[t._v(t._s(t.data.response.userName))]),t._v(" "+t._s(new Date(t.data.response.updateTime).toLocaleDateString())+" ")]),t._v(" "+t._s(t.data.response.comment)+" ")])],1)],1):t._e()],1)],1)],1)],1)},Ms=[],Ns={name:"Comment",props:{data:{type:Object,default:()=>({userName:""})},options:{type:Array,default:()=>["edit","helpless"]}},data:()=>({randomColor:`rgb( ${Math.floor(256*J.random())}, ${Math.floor(256*J.random())}, ${Math.floor(256*J.random())})`,helpfulIconColor:"_grey",isActive:!1}),computed:{photoWord(){return this.data.userName[0]},isAvatar(){return Object.prototype.hasOwnProperty.call(this.data,"avatar")},avatarPath(){return"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/public/avatar/"+this.data.avatar}},methods:{helpfulHandler(){"_blue"!==this.helpfulIconColor&&(this.data.helpful+=1,this.helpfulIconColor="_blue",this.$emit("helpful"))},menuHandler(t){switch(t){case"edit":case"response":this.$emit(t);break;case"helpless":if("_grey"===this.helpfulIconColor&&this.isActive)break;this.isActive=!0,this.data.helpful=this.data.helpful-1<0?0:this.data.helpful-1,this.helpfulIconColor="_grey",this.$emit("helpful");break;default:break}}}},qs=Ns,Es=Object(E["a"])(qs,Us,Ms,!1,null,null,null),Rs=Es.exports,Bs=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"pa-5",attrs:{height:"475",width:"705"}},[e(m["c"],{staticClass:"mt-5"},[e(u["a"],{attrs:{color:t.randomColor}},[t.isAvatar?e("img",{attrs:{src:t.avatarPath,alt:"picture"}}):e("span",{staticClass:"_light_grey--text headline"},[t._v(t._s(t.photoWord))])]),e("span",{staticClass:"ma-5 text-h6 font-weight-black"},[t._v(t._s(t.data.userName))]),e("div",{staticClass:"my-5 _grey--text h6"},[t._v(t._s(t.$t(t.option+"Description")))]),"comment"===t.option?e(qt["a"],{staticClass:"my-5",attrs:{color:"_blue","background-color":"_blue",dense:"",hover:"",size:"30"},model:{value:t.data.rating,callback:function(e){t.$set(t.data,"rating",e)},expression:"data.rating"}}):e("br"),e(vs["a"],{attrs:{label:t.$t(t.option+"Hint"),outlined:"",counter:"",maxlength:"300"},model:{value:t.data.comment,callback:function(e){t.$set(t.data,"comment",e)},expression:"data.comment"}})],1),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.$t("cancel")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue",disabled:t.submitDisable},on:{click:function(e){return t.$emit("submit")}}},[t._v(t._s(t.$t("submit")))])],1)],1)},zs=[],Hs={name:"EditComment",props:{data:{type:Object,default:()=>({userName:""})},option:{type:String,default:"comment"}},data:()=>({randomColor:`rgb( ${Math.floor(256*J.random())}, ${Math.floor(256*J.random())}, ${Math.floor(256*J.random())})`}),computed:{submitDisable(){return"response"!==this.option&&void 0===this.data.rating},photoWord(){return this.data.userName[0]},isAvatar(){return Object.prototype.hasOwnProperty.call(this.data,"avatar")},avatarPath(){return"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/public/avatar/"+this.data.avatar}},methods:{}},Fs=Hs,Vs=Object(E["a"])(Fs,Bs,zs,!1,null,null,null),Ws=Vs.exports,Qs=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"mx-auto pa-0",attrs:{height:"160",width:"330"},on:{click:function(e){return t.$emit("click")}}},[e(gt["a"],{staticClass:"ma-0 pt-1",attrs:{justify:"space-between"}},[e(f["a"],{attrs:{cols:"4",sm:"5"}},[e(_["a"],{attrs:{height:"128",width:"128",src:t.data.icon,contain:""}})],1),e(f["a"],{attrs:{cols:"8",sm:"7"}},[e(m["c"],[e(gt["a"],[e("div",{staticClass:"_grey--text text-h6 text-truncate",staticStyle:{"max-width":"140px"}},[t._v(t._s(t.data.name))])]),e(gt["a"],[e("div",{staticClass:"_grey--text caption text-truncate",staticStyle:{"max-width":"140px"}},[t._v(t._s(t.data.publisherName))])]),e(gt["a"],{staticClass:"mt-10 mt-sm-14",attrs:{justify:"space-between"}},[e(qt["a"],{attrs:{value:t.data.rating,color:"_grey","background-color":"_grey",dense:"","half-increments":"",readonly:"",size:"12"}}),t.discount.exist?e("div",{staticClass:"_blue--text text-decoration-line-through",staticStyle:{"font-size":"12px"}},[t._v(" NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price))+" ")]):e("div",{staticClass:"_blue--text",staticStyle:{"font-size":"12px"}},[t._v("NT$"+t._s(t.price(t.data.price))+t._s(t.unit(t.data.price)))])],1),e(gt["a"],{directives:[{name:"show",rawName:"v-show",value:t.discount.exist,expression:"discount.exist"}],attrs:{justify:"space-between"}},[e("div",{staticClass:"red--text",staticStyle:{"font-size":"12px"}},[t._v(t._s(t.discountPeriod))]),e("div",{staticClass:"red--text",staticStyle:{"font-size":"12px"}},[t._v("NT$"+t._s(t.price(t.discount.price))+t._s(t.unit(t.discount.price)))])])],1)],1)],1)],1)},Ks=[],Ys={name:"CardH",props:{data:{type:Object,required:!0}},data:()=>({discount:{}}),computed:{discountPeriod(){return Bt.discountPeriod()}},created(){this.discount=Bt.discountProc(this.data.discountPeriod,this.data.discount)},methods:{price(t){return Bt.price(t)},unit(t){return this.$t(Bt.unit(t))}}},Gs=Ys,Js=Object(E["a"])(Gs,Qs,Ks,!1,null,null,null),Zs=Js.exports,Xs={name:"CardDetail",props:{productName:{type:String,require:!0}},components:{CarouselBox:Mt,Score:Os,Comment:Rs,EditComment:Ws,CardH:Zs},data:()=>({appName:"",app:{},appSize:"",installCount:0,categoryType:["publishers","industrys","types","runtimeEnvironment"],hasCarousel:!1,carouselIndex:0,logParam:{},score:{},isShowScore:!0,isShowWriteComment:!1,isShowAllComment:!1,commentList:[],showComment:[],editComment:{},isEditComment:!1,isResponseComment:!1,completeLogin:!1,isDialog:!1,discount:{},recommendList:[]}),computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["c"])("dbTable",["filterList","filterSubject","filterParams","customList"]),...Object(L["b"])("dbTable",["isLoadCategory","productList","getIndustryById","getPublisherById","getTypeById","getEnvironmentById","getChiefById","generalIndustryId","permissionId"]),...Object(L["b"])("locale",["locale"]),btnManualDisable(){return!this.isSignIn||!this.app.docSingle},btnInstallDisable(){return!this.isSignIn||!this.app.firmware||!it.isConnect()||!localStorage.getItem("deviceId")||"pending"===this.userAttribute.group},wishIcon(){return Object.prototype.hasOwnProperty.call(this.userAttribute,"wishApp")?-1===this.userAttribute.wishApp.findIndex(t=>t===this.app.id)?"mdi-bookmark-plus-outline":"mdi-bookmark-plus":"mdi-bookmark-plus-outline"},carouselItems(){const t=[];for(let e=0;e<3;e+=1)this.app["urls"+e]&&t.push({src:this.app["urls"+e]});return this.app.videoUrl&&t.push({url:this.app.videoUrl.replace("watch?v=","embed/")+"?rel=0&autoplay=1"}),t},similarList(){return 0===this.recommendList.length?this.productList.filter(t=>t.publishers===this.app.publishers):this.recommendList},isNoRequire(){return(!this.app.requireSensor||""===this.app.requireSensor)&&((!this.app.requireIndustry||""===this.app.requireIndustry)&&((!this.app.requireSmb||""===this.app.requireSmb)&&!this.app.isRequireNet))},appUpdateDate(){return this.app.updateTime?new Date(this.app.updateTime).toLocaleDateString():""},developer(){return this.isLoadCategory&&Object.keys(this.app).length&&this.app.chiefs?this.getChiefById(this.app.chiefs):{chief:"",phoneNo:"",email:"",addr:""}},isManager(){return-1!==Object.keys(this.userAttribute.policy).findIndex(t=>t===this.permissionId("customerHandling"))},chargeType(){switch(this.app.chargeTypeId){case"1":return"month";case"2":return"frequency";case"3":return"hour";default:case"4":return"buyout"}},width(){switch(this.$vuetify.breakpoint.name){case"xs":return"300";case"sm":return"600";case"md":return"1200";default:case"lg":return"1500"}},discountPeriod(){return Bt.discountPeriod()}},created(){Object.keys(this.$route.query).length?this.appName=this.$route.query.name:this.productName?(this.appName=this.productName,window.sessionStorage.setItem("appName",this.appName)):this.appName=window.sessionStorage.getItem("appName"),this.loadApp(this.appName)},destroyed(){this.operationUpdate()},methods:{commentOptions(t){const e=[];return e.push("helpless"),this.isSignIn?(t.email===this.userAttribute.email&&e.push("edit"),this.isManager&&e.push("response"),e):e},commentEdit(t){"{}"===JSON.stringify(t)?Object.prototype.hasOwnProperty.call(this.userAttribute,"avatar")&&"image"===this.userAttribute.avatar.type?this.editComment={userName:this.userAttribute.name,avatar:this.userAttribute.avatar.path}:this.editComment={userName:this.userAttribute.name}:this.editComment={...t},this.isEditComment=!0},commentResponse(t){this.isResponseComment=!0,this.editComment={...t},Object.prototype.hasOwnProperty.call(t,"response")||(this.editComment.response={userName:this.userAttribute.name})},commentUpdateHelpful(t){Z["a"].update("comment","id",{id:t.id,helpful:t.helpful})},commentSubmit(){this.isEditComment?(this.isEditComment=!1,Object.prototype.hasOwnProperty.call(this.editComment,"id")||(this.editComment.id=J.randomId(),this.editComment.appId=this.app.id,this.editComment.email=this.userAttribute.email,this.editComment.helpful=0),this.editComment.updateTime=(new Date).getTime()):(this.isResponseComment=!1,this.editComment.response.updateTime=(new Date).getTime()),Z["a"].create("comment",this.editComment).then(()=>{this.commentUpdate()})},commentUpdate(){this.isShowScore=!1,Z["a"].scan("comment",{appId:this.app.id}).then(t=>{if(t.length>0){this.isShowScore=!0,this.commentList=t.sort((t,e)=>e.updateTime-t.updateTime);let e=0;this.score.chartData=[0,0,0,0,0],this.commentList.forEach(t=>{this.score.chartData[this.score.chartData.length-t.rating]+=1,e+=t.rating}),this.score.total=this.commentList.length,this.score.rating=Math.round(e/this.score.total*100)/100,this.isShowAllComment=this.commentList.length>4,this.isShowAllComment?this.showComment=this.commentList.slice(0,4):this.showComment=[...this.commentList],this.app.rating=this.score.rating,Z["a"].update("product","name",{name:this.app.name,rating:this.app.rating})}})},commentReadAll(){this.isShowAllComment=!1,this.showComment=[...this.commentList]},requireIndustryName(){return this.isLoadCategory&&Object.keys(this.app).length?this.getIndustryById(this.app.requireIndustry).name:""},categoryName(t){if(!this.isLoadCategory||!Object.keys(this.app).length)return"";switch(t){default:return"";case"publishers":return this.getPublisherById(this.app.publishers).name;case"industrys":return this.getIndustryById(this.app.industrys).name;case"types":return this.getTypeById(this.app.types).name;case"runtimeEnvironment":return this.getEnvironmentById(this.app.runtimeEnvironment).name}},operationLog(){const t={};t.id=J.randomId(),t.createTime=(new Date).getTime(),t.email=this.isSignIn?this.userAttribute.email:"",t.log={app:this.app.id,stayTime:0},t.sessionId=window.sessionStorage.getItem("id"),Z["a"].create("operation",t),this.logParam=t},operationUpdate(){Object.prototype.hasOwnProperty.call(this.logParam,"log")&&Object.prototype.hasOwnProperty.call(this.logParam.log,"stayTime")&&(this.logParam.log.stayTime=(new Date).getTime()-this.logParam.createTime,Z["a"].update("operation","id",this.logParam))},installLog(){const t={};t.id=J.randomId(),t.createTime=(new Date).getTime(),null!==this.cognitoUser&&(t.email=this.userAttribute.email),t.appId=this.app.id,t.deviceId=localStorage.getItem("deviceId"),Z["a"].create("install",t);const e={deviceId:t.deviceId,appName:this.app.name,appId:t.appId,userId:t.email};"1"===this.app.chargeTypeId?(e.type="subscription",e.year=(new Date).getFullYear(),e.month=(new Date).getMonth()+1,Nt["a"].api("https://manager.imacloud.com.tw:8443/dw/metering/subscription/raw","POST",e)):"4"===this.app.chargeTypeId&&(e.type="buyout",Nt["a"].api("https://manager.imacloud.com.tw:8443/dw/metering/buyout/raw","POST",e))},crouselAction(t){this.hasCarousel=!0,this.carouselIndex=t},addWishClick(){const t={...this.userAttribute};Object.prototype.hasOwnProperty.call(t,"wishApp")||(t.wishApp=[]);const e=t.wishApp.findIndex(t=>t===this.app.id);-1===e?t.wishApp.push(this.app.id):t.wishApp.splice(e,1),Z["a"].update("user","email",t),this.$store.commit("authenticate/setUserAttribute",t)},shareCopyClick(){this.$store.commit("notify/set",{type:"success",msg:[this.$t("copyAlert")]});const t=document.createElement("input");document.body.appendChild(t),t.setAttribute("value",window.location.href),t.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(t)},manualClick(){this.$store.commit("loading/start",{text:"working"}),Nt["a"].download(this.app.docNameSingle,this.app.docSingle).then(()=>{this.$store.commit("loading/stop")}).catch(t=>{this.$store.commit("loading/stop"),console.log(t)})},async dialogClick(){const t=await Nt["a"].api("https://cashflow.imacloud.com.tw/api/checkUserStatus","POST",{userList:[this.userAttribute.email]});if(console.log(t.data[0].status),"safe"!==t.data[0].status)return void this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errAccountUnpaid")]});const e=this.getPublisherById(this.app.publishers);Object.prototype.hasOwnProperty.call(e,"merchantId")?this.isDialog=!0:this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errMerchantId")]})},installClick(){this.isDialog=!1,it.isConnect()?(this.$store.commit("loading/start",{text:"working"}),it.install(this.app).then(()=>{this.$store.commit("loading/stop");const t={};null!==this.cognitoUser&&(t.email=this.userAttribute.email),t.appName=this.app.name,t.deviceId=localStorage.getItem("deviceId"),t.deviceName=localStorage.getItem("deviceName"),t.appId=this.app.id,Bt.install(t).then(t=>{this.$store.commit("authenticate/setUserAttribute",t.data),this.$store.commit("notify/set",{type:"success",msg:[this.$t("install")," ",this.$t("success")]})})}).catch(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("install")," ",this.$t("fail")]})})):this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errServerDisconnect")]})},cardClick(t){this.operationUpdate(),this.loadApp(t)},seeMoreClick(t){this.$store.commit("dbTable/setFilterList",this.similarList),this.$store.commit("dbTable/setFilterSubject",this.$t(t)),this.$router.push({name:"filterList"})},industrysFilter(t,e){return"industrys"===t&&e[t]===this.generalIndustryId(this.locale)},categoryClick(t){if(!this.productList.length)return;if(this.$store.commit("dbTable/clearFilterParams"),"publishers"===t){const t=this.customList.find(t=>t.id===this.app.publishers);this.customPage=void 0===t?0:t.type}else this.customPage=0;const e=this.filterParams;e[t]=this.app[t];const s=this.productList.filter(e=>e[t]===this.app[t]||this.industrysFilter(t,e));this.$store.commit("dbTable/setFilterList",s),this.$store.commit("dbTable/setFilterSubject",this.categoryName(t)),this.$store.commit("dbTable/setFilterParams",e),0!==this.customPage?(this.$store.commit("dbTable/setFilterSubject",this.app.publishers),this.$router.push({name:"custom"+this.customPage})):this.$router.push({name:"filterList"}),window.history.replaceState(null,null,`#/?${t}=${this.app[t]}`)},priceSign(t){return Number(t).toLocaleString()},loadApp(t){window.history.replaceState(null,null,"#/cardDetail?name="+t),Z["a"].read("product","name",t).then(t=>{if(!t)return void this.$router.push({name:"Error"});this.app=t,this.operationLog(),this.commentUpdate(),Z["a"].scan("install",{appId:this.app.id},["email"]).then(t=>{this.installCount=t.length,this.isShowWriteComment=0!==t.filter(t=>t.email===this.userAttribute.email).length}),this.appSize="",this.discount=Bt.discountProc(this.app.discountPeriod,this.app.discount);let e="https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/",s="vmx-production-webbucket-11jsmiztxwc9m";this.app.firmware.includes("https://imc-backend-mount.s3.ap-northeast-1.amazonaws.com/")&&(e="https://imc-backend-mount.s3.ap-northeast-1.amazonaws.com/",s="imc-backend-mount");const a=decodeURI(this.app.firmware).replace(e,"");ns.list(s,a).then(t=>{const e=t.Contents[0].Size;this.appSize=e>1e6?Math.round(e/1e6)+"M":Math.round(e/1e3)+"K"})}).catch(t=>{console.log(t)}),Z["a"].read("recommendItem","name",t).then(t=>{0===t.length&&(this.recommendList=[]);for(let e=1;es.name===t["R"+e]);void 0!==s&&this.recommendList.push(s)}})}}},ta=Xs,ea=(s("3bbd"),Object(E["a"])(ta,ws,ys,!1,null,null,null)),sa=ea.exports,aa=s("eb2a"),ia=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"ma-2 ma-md-12",attrs:{fluid:""}},[e("div",{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("serviceSite")))]),e(d["a"],{staticClass:"ma-4 ma-sm-8",attrs:{color:"rgba(255, 255, 255, 0.75)"}},[e(gt["a"],{staticClass:"pa-4",attrs:{justify:"start"}},[e(f["a"],{attrs:{cols:"12",sm:"3",md:"2"}},[e(aa["a"],{staticClass:"text-subtitle-1",attrs:{active:t.active,items:t.items,activatable:"","open-on-click":"",dense:"",transition:"","selected-color":"red"},on:{"update:active":function(e){t.active=e}}})],1),e(v["a"],{staticClass:"white",attrs:{vertical:""}}),e(f["a"],{attrs:{cols:"12",sm:"9",md:"10"}},["zh-tw"===t.locale?e(d["a"],{key:t.selected.id,staticClass:"mx-auto",attrs:{color:"transparent",flat:"","max-width":"1200"}},[e(m["c"],{staticClass:"text-h5 font-weight-bold"},[t._v(t._s(t.selected.name))]),e(v["a"],{staticClass:"white"}),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:1===t.selectId,expression:"selectId === 1"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("智慧機械雲")]),e("p",[t._v("臺灣於2014起陸續推出智慧製造相關計畫,以開發智慧機械、物聯網、巨量資料、AI、Digital Twin、雲端運算等技術來引領製造業、商業服務業等 與服務附加價值的提升。機械公會-柯拔希榮譽理事長呼籲政府推動之智慧機上盒(SMB)輔導計畫自2018年起,推動3年已達成5,301台設備聯網,協助 11類產業249家廠商達成數位化轉型,預計2022年達到萬機聯網的目的。SMB補助有所成效之後,機械公會更進一步發表機械公會白皮書,指出:大多 中小企業無較多資本投入研發智慧功能模組,須建立一公版智慧雲端平台,結合智慧機械盒連結各機械設備並利用機聯網方式提升機械附加功能,優化 生產模式與降低物料損耗,運用生產數據與人工智慧技術。簡而言之,當政府鼓勵製造業者設備裝上機上盒後,應該有更多軟體可以提供智慧化服務, 增加設備業者的設備價值與製造業者的製造競爭力,進而打造智慧製造服務的生態系(設備業+製造業+軟體業),因此打造智慧機械雲的計畫因此誕生。 "),e(_["a"],{attrs:{src:s("bccf"),width:"800"}}),e("span",{},[t._v("智慧機械雲服務生態系統")])],1),e("li",[t._v("發展沿革")]),e("p",[e("span",{staticClass:"font-weight-bold"},[t._v("2019~2020")]),t._v(" 經濟部技術處責成工研院智慧機械科技中心於台中智慧製造技術驗證場域概念測試,以工研院之VMX 系統作為概念驗證(POC)。"),e("br"),e("span",{staticClass:"font-weight-bold"},[t._v("2020-2021")]),t._v(" 有鑑於各平台地端(SMB)互不相通,難以推動機械雲服務,因此經濟部技術處責成工研院(ITRI)、 資策會(III)、精機中心(PMC)、金屬中心(MIRDC、紡研(TTRI)所共同打造標準化SMB系統,在各家SMB上增加一層中間層(Runtime),達到機械雲上的 軟體可以在不同品牌SMB上運行並建置智慧機械雲,提供業者快速數位轉型與供應鏈串接服務。"),e("br"),e("span",{staticClass:"font-weight-bold"},[t._v("2021~")]),t._v(" 持續結合各法人能量,大量建置APP服務,推動智慧結晶的匯聚平台。 ")]),e("li",[t._v("產業支援")]),e("p",[t._v("金屬加工產業,塑膠射出產業、金屬成型產業、扣件產業、半導體/PCB產業、紡織產業、食品產業、自行車產業。")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:201===t.selectId,expression:"selectId === 201"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("機械雲整體運作架構是從機械雲標準Runtime為中心,向下連結SMB(Smart Machine Box),再由SMB連結地端各產業工廠設備。另一方面,向上可結合機械 雲平台市集以及各家雲務商,透過開放式標準通訊介面以及標準資訊模型,使得資料可以相互溝通無礙。")]),e("p",[t._v("機械雲標準Runtime的內部分成三個主要模組:共通地端引擎、應用程式管理平台以及共通雲端引擎。其中共通地端引擎負責與各SMB以標準通訊介面以及各 產業的標準資訊模型進行資訊溝通。應用程式管理平台是一個Windows應用程式,也是所有透過機械雲市集下載APP的管理軟體,由應用程式管理平台可以直 接連接機械雲市集,透過下載安裝並且使用。共通雲端引擎的功能是,機械雲市集下載的APP可以透過它以標準通訊介面與標準資訊模型與雲端服務進行溝通。")]),e(_["a"],{attrs:{src:s("fac5"),width:"800"}}),e("span",[t._v("機械雲運作架構圖")])],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:202===t.selectId,expression:"selectId === 202"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("標準SMB係指安裝機械雲標準Runtime的工業電腦(IPC),並且此SMB經過工研院測試與驗證可以透過機械雲市集下載機械雲APP並且於正常使用情況下可穩定執行。"),e("br"),t._v(" 以下為標準SMB的軟硬體規格如下: "),e("ol",[e("li",[t._v("IPC規格:CPU Intel Celeron J1900以上,4GB DDR Ram以上, 32GB SSD以上,RJ45 x 2以上,Windows 10 OS")]),e("li",[t._v("安裝機械雲標準Runtime")])])]),e("p",[t._v("終端使用者可向系統整合商(SI)採購標準SMB,並且透過標準 SMB進行使用者帳號申請。待帳號申請完成後,登入機械雲市集即可開始下載機械雲APP進行使用。 一般而言,使用者可以透過機械雲市集找到可能可以解決自己問題的APP,接著與SI討論該軟體的適用性以及是否需要額外的軟硬體週邊的安裝,甚至是否需要針 對軟硬進行參數設定與調整等,最終可讓SI將整個服務包裝成一個解決方案來服務終端使用者,以達到最快速且有效率的導入。")]),e("p",[t._v("另外,一些跟設備或硬體較無關的APP,使用者可以視情況或對軟體使用的掌握度自行評估後下載使用。基本上APP下載使用,是以帳號為主體進行確認與付費。 "),e(_["a"],{attrs:{src:s("d3de"),width:"800"}}),e("span",[t._v("SMB供應商、SI與終端使用者的關係流程")])],1),e("p",[t._v("目前符合標準SMB的廠商或法人單位:"),e("br"),t._v(" 法人單位:工研院智機中心、工研院機械所、精機中心、金屬中心、資策會。"),e("br"),t._v(" 廠商:研華科技、采威國際")])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:203===t.selectId,expression:"selectId === 203"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("機械雲平台主要是由應用程式管理平台(iMacloud)所管理,透過iMacloud可以註冊並經驗證後得到一個可下載機械雲市集APP的使用者帳號。透過這個帳號 登入之後,在iMacloud可以連接機械雲市集並且開始瀏覽所需要的APP,然後付費下載並且使用。任何APP在說明頁中,均有技術服務人員可聯絡進行使用服務。 "),e(_["a"],{attrs:{src:s("e691"),width:"800"}}),e("span",[t._v("機械雲平台使用流程")])],1),e("p",[t._v("機械雲平台除了使用者角色外,尚有軟體開發者身份。機械雲使用者可以透過申請,將帳號升級為軟體開發者帳號,即可上架APP並且將APP於機械雲市集進行 販售,進一步得到相關分潤。目前機械雲APP符合標準Runtime才允許上架,能符合標準Runtime的APP有以下幾種型式,包含Windows Form APP、Container APP 、Independent Windows EXE APP以及Linux APP。 "),e(_["a"],{attrs:{src:s("98e9"),width:"800"}}),e("span",[t._v("符合機械雲標準Runtime APP型式")])],1),e("p",[t._v("開發欲上架的APP必須符合機械雲標準Runtime方能上架,原因是APP取得設備資訊時,必須透過機械雲標準Runtime內的地端引擎內的資料庫讀取資訊,而非自行 與硬體溝通。再者,各產業的標準資訊模型不同,開發的APP也必須遵守標準資訊模式的資料結構規範,全部符合標準之後,即可申請上架。上架後,APP的審查流 程都可以在開發者管理平台上的Dashboard查看,並且未來通過審查上架後,APP的使用狀況及分潤情形,也可以在這個開發者管理平台中檢視。 "),e(_["a"],{attrs:{src:s("416d"),width:"800"}}),e("span",[t._v("APP上架流程")])],1)]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:204===t.selectId,expression:"selectId === 204"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("通訊協定與資訊模型簡介")]),e("p",[t._v("物聯網是智慧製造系統底層的骨幹,所有的生產設備互相連接,傳遞資料,但實際上傳遞資料不是設備本身,而是各種各樣在虛擬世界中代表設備的軟體系統,為 了讓這些軟體系統可以任意整合與互通,我們需要在物聯網之上加入兩種重要技術:通訊協定與資訊模型。")]),e("li",[t._v("通訊協定")]),e("p",[t._v("軟體跟軟體之間交換資訊的方法稱之為通訊協定,也就相當於軟體之間溝通用的”語言”,只有當所有的軟體都使用相同的”語言”才能互相溝通,智慧機械雲標準地 端軟體及雲端運算平台支援下列目前在設備業、製造業常用的通訊協定 "),e("ol",[e("li",[e("a",{attrs:{href:"https://zh.wikipedia.org/wiki/%E8%B6%85%E6%96%87%E6%9C%AC%E4%BC%A0%E8%BE%93%E5%8D%8F%E8%AE%AE",target:"_blank",rel:"noopener"}},[t._v("HTTP")])]),e("li",[e("a",{attrs:{href:"https://zh.wikipedia.org/wiki/OPC_UA",target:"_blank",rel:"noopener"}},[t._v("OPCUA")])]),e("li",[e("a",{attrs:{href:"https://mqtt.org/",target:"_blank",rel:"noopener"}},[t._v("MQTT")])])]),t._v(" 然而要確保軟體之間溝通順暢,新舊軟體之間也能夠隨插即用、無縫接軌,還需要進一步提升標準化等級,這就是所謂的資訊模型。")]),e("li",[t._v("資訊模型")]),e("p",[t._v("資訊模型就相當於在某個通用的語言之上架構的”用詞”。舉例來說,有一種植物塊莖,有人稱他馬鈴薯,有人稱他洋芋,大陸地區稱他土豆,而土豆在台灣其實是 花生的意思,如果您熟知這幾種稱呼說的是什麼東西,那沒問題,您在跟人談話的時候不會混淆,可是如果談話過程有一方不知道這些稱呼所代表的意義,那麼就 會出現溝通障礙。這就是用詞歧義所造成的溝通問題,在日常生活中我們很快可以透過進一步解釋來消除這個歧異,可是如果是軟體跟軟體之間溝通出現歧異,那 就會造成整個系統無法運作。"),e("br"),t._v(" 因此我們需要在通訊協定之上定義一層軟體之間互相溝通的標準化”用語”,就是所謂資訊模型,才能確保智慧製造系統中所有的軟體系統溝通無障礙,設備才能分 工合作、協同作業。"),e("br"),t._v(" 確保所有軟體都使用相同資訊模型的方法就是集結設備開發者、軟體開發者、終端使用者的需求,共同定義標準資訊模型,並且要求所有設備及軟體使用標準資訊 模型交換資料,而這正是很多大公司、大組織已經完成或正在推動中的事情。")]),e("li",[t._v("智慧機械雲平台支援的資訊模型")]),e("p",[t._v("機械雲平台鎖定的產業別橫跨金屬切削工具機、金屬成形設備、紡織、橡塑膠、電子設備等,因此從地端標準runtime到雲端運算平台都會支援各大通行全球的標 準資訊模型,目前已支援的資訊模型如下:: "),e("ol",[e("li",[e("a",{attrs:{href:"https://www.euromap.org/",target:"_blank",rel:"noopener"}},[t._v("歐洲橡塑膠設備協會推動制定的EuroMap")])]),e("li",[e("a",{attrs:{href:"https://www.semi.org/en",target:"_blank",rel:"noopener"}},[t._v("國際半導體產業協會推動制定的Secs/GEM")])]),e("li",[e("a",{attrs:{href:"https://umati.org/",target:"_blank",rel:"noopener"}},[t._v("德國機械公會推動制定的 Universal Machine Technology Interface,UMATI")])])]),t._v(" 機械雲開發團隊針對上述已經標準化或者制定中的資訊模型,提供對應的通訊軟體模組,並且會隨著標準內容的演進持續更新,而其他尚未具備標準資訊模型的產 業,例如紡織、沖壓等,可與各產業公協會共同協助推動制定行業標準及場域驗證測試,未來亦可推動加入國際標準。 ")]),e("div",[t._v("有關制定行業標準及場域驗證測試相關事宜可洽詢機械雲SIG服務團隊(梁碩芃 "),e("a",{attrs:{href:"mailto:spl@itri.org.tw"}},[t._v("spl@itri.org.tw")]),t._v(")")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:3===t.selectId,expression:"selectId === 3"}],staticClass:"pt-5 text-body-1 black--text"},[e("table",{attrs:{border:"1"}},[e("caption",[t._v("產業軟體開發SIG諮詢窗口")]),e("tr",[e("th",{attrs:{scope:"col"}},[t._v("產業別")]),e("th",{attrs:{scope:"col"}},[t._v("參與團隊窗口")])]),e("tr",[e("td",[t._v("金屬切削產業")]),e("td",[t._v("工研院-智慧機械中心 孫金柱組長"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:ricky@itri.org.tw"}},[t._v("ricky@itri.org.tw")])])]),e("tr",[e("td",[t._v("電子設備產業")]),e("td",[t._v("工研院-機械所 王慶鈞副組長"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:juin0306@itri.org.tw"}},[t._v("juin0306@itri.org.tw")])])]),e("tr",[e("td",[t._v("金屬成型產業")]),e("td",[t._v("工研院-機械所 謝伯璜經理"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:TabShieh@itri.org.tw"}},[t._v("TabShieh@itri.org.tw")])])]),e("tr",[e("td",[t._v("塑橡膠產業")]),e("td",[t._v("工研院-機械所 蔡雅惠副組長"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:YaHuiTsai@itri.org.tw"}},[t._v("YaHuiTsai@itri.org.tw")])])]),e("tr",[e("td",[t._v("紡織設備產業")]),e("td",[t._v("工研院-南分院 吳金能經理"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:LeslieWu@itri.org.tw"}},[t._v("LeslieWu@itri.org.tw")])])]),e("tr",[e("td",[t._v("機械雲平台")]),e("td",[t._v("工研院-智慧機械中心 王培寧經理"),e("br"),t._v("聯絡信箱:"),e("a",{attrs:{href:"mailto:PNWang@itri.org.tw"}},[t._v("PNWang@itri.org.tw")])])])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:4===t.selectId,expression:"selectId === 4"}],staticClass:"pt-5 text-body-1 black--text"},[e(_["a"],{attrs:{src:s("2e39"),cover:""}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:5===t.selectId,expression:"selectId === 5"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("智慧製造技術驗證場域"),e("br"),e("a",{attrs:{href:"http://www.impps.org.tw/",target:"_blank",rel:"noopener"}},[t._v("http://www.impps.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("9793"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TAMI 臺灣機械工業同業公會"),e("br"),e("a",{attrs:{href:"http://www.tami.org.tw/cindex.php",target:"_blank",rel:"noopener"}},[t._v("http://www.tami.org.tw/cindex.php")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("e5fd"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("台灣區電機電子工業同業公會"),e("br"),e("a",{attrs:{href:"http://www.teema.org.tw/",target:"_blank",rel:"noopener"}},[t._v("http://www.teema.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("4e62"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TAIROA 台灣智慧自動化與機器人協會"),e("br"),e("a",{attrs:{href:"https://www.tairoa.org.tw/Default.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.tairoa.org.tw/Default.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("132c"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TMBA 台灣工具機暨零組件工業同業公會"),e("br"),e("a",{attrs:{href:"https://www.tmba.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.tmba.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("264b"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Manufacturing Automation Laboratories(UBC)"),e("br"),e("a",{attrs:{href:"https://www.malinc.com/",target:"_blank",rel:"noopener"}},[t._v("https://www.malinc.com/")]),e("br"),e("a",{attrs:{href:"https://mech.ubc.ca/alumni-no/mal/",target:"_blank",rel:"noopener"}},[t._v("https://mech.ubc.ca/alumni-no/mal/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("1887"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("The University of British Columbia"),e("br"),e("a",{attrs:{href:"https://brand.ubc.ca/guidelines/downloads/logos-signatures-and-visual-identity-assets/",target:"_blank",rel:"noopener"}},[t._v("https://brand.ubc.ca/guidelines/downloads/logos-signatures-and-visual-identity-assets/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("1804"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("PMC 財團法人精密機械研究發展中心"),e("br"),e("a",{attrs:{href:"https://www.pmc.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.pmc.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("b47f"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("財團法人資訊工業策進會"),e("br"),e("a",{attrs:{href:"https://www.iii.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.iii.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("a86c"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("金屬工業研究發展中心"),e("br"),e("a",{attrs:{href:"https://www.mirdc.org.tw/index.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.mirdc.org.tw/index.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("ccbd"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("經濟部產業技術司"),e("br"),e("a",{attrs:{href:"https://www.moea.gov.tw/MNS/doit/home/Home.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.moea.gov.tw/MNS/doit/home/Home.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("4624"),"max-height":"60",contain:""}})],1)],1)],1)]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:6===t.selectId,expression:"selectId === 6"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[e("a",{attrs:{href:"https://www.itri.org.tw/ListStyle.aspx?DisplayStyle=01_content&SiteID=1&MmmID=1036276263153520257&MGID=111121317030841715",target:"_blank",rel:"noopener"}},[t._v(" 工研院攜手法國達梭推智慧機械雲接軌國際 並與中華電信合作搶攻新南向市場商機")])]),e("br"),e("li",[e("a",{attrs:{href:"https://www.itri.org.tw/ListStyle.aspx?DisplayStyle=01_content&SiteID=1&MmmID=1036276263153520257&MGID=111122115041179394",target:"_blank",rel:"noopener"}},[t._v(" 工研院攜手研華科技成立佳研智聯 助臺商搶攻新南向智慧製造商機")])]),e("br"),e("li",[e("a",{attrs:{href:"https://www.youtube.com/watch?v=0PCSFxnuZfM",target:"_blank",rel:"noopener"}},[t._v("研華X機械雲XRuntime")])]),e("br"),e("li",[e("a",{attrs:{href:"https://campaign.advantech.online/en/2021AdvantechConnect_ATW_0830/",target:"_blank",rel:"noopener"}},[t._v("【線上研討會,歡迎報名參加】8/30(一) 14:00~15:10 關鍵設備故障診斷 優化生產機械效能")]),e("br"),t._v(" 台灣製造業在智慧工廠數位轉型的趨勢下,如何以更即時、更自動化的方式透過科技來管理關鍵設備,實為一大議題。此線上研討會將分享物聯網新技術,啟動製造業者再進一步提升數位資料在設備故障診斷上的應用,優化生產機械效能,帶動產業技術升級。")]),e("br"),e("li",[e("a",{attrs:{href:"https://www.itri.org.tw/ListStyle.aspx?DisplayStyle=18_content&SiteID=1&MmmID=1036452026061075714&MGID=1073021750602224601",target:"_blank",rel:"noopener"}},[t._v("本土智慧機械雲平台上線")])]),e("br"),e("li",[e("a",{attrs:{href:"http://www.ctimes.com.tw/DispArt/tw/%E6%99%BA%E6%85%A7%E6%A9%9F%E6%A2%B0%E9%9B%B2/%E9%81%94%E6%98%93%E6%99%BA%E9%80%A0/%E6%95%B8%E4%BD%8D%E8%BD%89%E5%9E%8B/AIoT/%E6%99%BA%E6%85%A7%E8%A3%BD%E9%80%A0/2101261708WK.shtml",target:"_blank",rel:"noopener"}},[t._v("CTIMES-2021內外合力扭轉乾坤 智慧機械跨域聯盟共享商機")])]),e("br"),e("li",[e("a",{attrs:{href:"https://www.bnext.com.tw/article/42915/bn-20170124141334-q455gcyf",target:"_blank",rel:"noopener"}},[t._v("臺灣發展智慧機械的第一哩路-打造「工具機產業製造雲」")])])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:7===t.selectId,expression:"selectId === 7"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[e("a",{on:{click:function(e){return t.hrefUrl("download/店中店申請SOP.pdf")}}},[t._v("機械雲店中店申請流程SOP")])]),e("br"),e("li",[e("a",{on:{click:function(e){return t.hrefUrl("download/智慧機械雲整體架構及開發者應用服務.pdf")}}},[t._v("智慧機械雲整體架構及開發者應用服務")])]),e("br"),e("li",[t._v("智慧機械雲應用情境 "),e("a",{attrs:{href:"https://youtu.be/FKI8U0vb0MQ",target:"_blank",rel:"noopener"}},[t._v("https://youtu.be/FKI8U0vb0MQ")])]),e("iframe",{attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/FKI8U0vb0MQ",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:801===t.selectId,expression:"selectId === 801"}],staticClass:"pt-5 text-body-1 black--text"},[e("a",{on:{click:function(e){return t.hrefUrl("download/智慧機械雲平台服務條款.pdf")}}},[t._v("下載")]),e(_["a"],{attrs:{src:s("d63f"),width:"800"}}),e(_["a"],{attrs:{src:s("1c2b"),width:"800"}}),e(_["a"],{attrs:{src:s("e76c"),width:"800"}}),e(_["a"],{attrs:{src:s("eee8"),width:"800"}}),e(_["a"],{attrs:{src:s("e9e1"),width:"800"}}),e(_["a"],{attrs:{src:s("93fc"),width:"800"}}),e(_["a"],{attrs:{src:s("6cde"),width:"800"}}),e(_["a"],{attrs:{src:s("fe52"),width:"800"}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:802===t.selectId,expression:"selectId === 802"}],staticClass:"pt-5 text-body-1 black--text"},[e("a",{on:{click:function(e){return t.hrefUrl("download/機械雲店中店_申請表.docx")}}},[t._v("下載")]),e(_["a"],{attrs:{src:s("1c39"),width:"800"}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:803===t.selectId,expression:"selectId === 803"}],staticClass:"pt-5 text-body-1 black--text"},[e(_["a"],{attrs:{src:s("2e39"),cover:""}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:9===t.selectId,expression:"selectId === 9"}],staticClass:"pt-5 text-body-1 black--text"},[e("iframe",{attrs:{src:"https://imc-mmsl-service-1092565986.imacloud.com.tw/",title:"Video",width:"100%",height:"600",frameborder:"0"}})]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:11===t.selectId,expression:"selectId === 11"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("什麼是機械雲?")]),e("p",[t._v("機械雲是由工研院、金屬中心、資策會等法人共同打造建立一公版智慧雲端平台,結合智慧機械盒連結各機械設備並利用機聯網方式提升機械附加功能, 優化生產模式與降低物料損耗,運用生產數據與人工智慧技術,集合製造、設備、系統整合、軟體以及技術服務業者,共同建立智慧製造產業聚落。")]),e("li",[t._v("該如何註冊帳號?")]),e("p",[t._v("機械雲平台提供兩種身份類別:使用者與開發者。如您想尋找應用程式方案,請至平台網站註冊會員申請為使用者;如您想藉由平台來上架公司APP, 請至平台網站註冊會員申請為開發者。註冊申請後請等待平台的審核結果通知,一般約需要三到五個工作天。您將會在審查完成時收到系統通知信, 若已通過審查,即可依照隨信附上的臨時密碼登入平台、修改密碼,完成帳號開通。")]),e("li",[t._v("已註冊帳號,但是一直無法登入?")]),e("p",[t._v("送出註冊申請後,系統會寄出認證信。請檢查信件是否被系統擋掉或是歸到垃圾信。如確認沒有收到認證信,可以聯絡系統管理員重發認證信。")]),e("li",[t._v("在安裝機械雲程式時要輸入AWS key參數,請問如何取得?")]),e("p",[t._v('若您想要使用的APP不會使用設備資料,在安裝時不要勾選 "地端引擎" 的項目,就不需要AWS KEY了。如有需要可以聯繫平台聯絡窗口洽詢。')]),e("li",[t._v("機械雲平台的安裝過程出現錯誤怎麼辦?")]),e("p",[t._v("機械雲平台安裝過程中需要自雲端下載部分檔案,請保持網路順暢。若安裝機械雲平台的電腦屬於學術網路或受監管網路,可能會導致部分安裝步驟失敗。")]),e("li",[t._v("機械雲APP的安裝過程出現錯誤怎麼辦?")]),e("p",[t._v("機械雲APP在安裝過程中會與雲端伺服器驗證安裝許可,請保持網路順暢。若安裝機械雲平台的電腦屬於學術網路或受監管網路,可能會導致部分安裝步驟失敗。 若錯誤持續發生,可以聯絡APP開發者或平台聯絡窗口協助。")]),e("li",[t._v("公司想上架幾個APP,該怎麼進行? APP聯絡人可以不同人嗎?")]),e("p",[t._v("請先註冊一帳號公司為開發者,並完成店中店的申請。待帳號開通後,請至APP開發平台申請上架。透過網頁引導欄位可以完成自助上架申請, 公司開發者可上架數個不同APP,各自APP可以申請為不同聯絡人。")]),e("li",[t._v("APP上架,需提供資安檢測報告,如何處理?")]),e("p",[t._v("要上架的APP均需提供資安檢測報告,可參考「資安檢測項目與服務規範.pdf」。資安檢測報告可由機械雲網站提供的付費服務,或是找第三方的資安檢測公司處理, 報告格式依照資安檢測公司標準規定即可。")]),e("li",[t._v("欲上架的APP為網頁型式,而非應用程式,是否無法上架?")]),e("p",[t._v("可以參考「智慧機械雲平台使用手冊.pdf」之中的「四、應用程式管理平台 app 開發說明」,即可將網頁類型的APP打包為機械雲APP。")]),e("li",[t._v("登入時「登入」按鈕無法點選,或無法正確顯示 reCAPTCHA 機器人檢測?")]),e("p",[t._v("1. 請使用Chrome/Firefox等非IE瀏覽器。"),e("br"),t._v(" 2. 清除瀏覽器快取後重新整理頁面。"),e("br"),t._v(" 3. 若您在輸入帳號密碼時錯誤次數過過多,系統會暫時封鎖登入功能60秒,請稍後重新整理頁面再嘗試登入。"),e("br"),t._v(" 4. 若您使用的網路是私人網路或企業網路,請協助確認是否有封鎖reCAPTCHA服務網域。"),e("br"),t._v(" 5. 請確認網路連線是否順暢,並將電腦時間設定為「自動更新」後,重新整理頁面再嘗試登入。")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:10===t.selectId,expression:"selectId === 10"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("行政窗口"),e("br"),t._v("陳靖玫"),e("br"),t._v("E-mail:"),e("a",{attrs:{href:"mailto:chencara@itri.org.tw"}},[t._v("chencara@itri.org.tw")]),e("br"),t._v("電話:04-23583993 ext.658")]),e("p",[t._v("技術支援"),e("br"),t._v("王培寧"),e("br"),t._v("E-mail:"),e("a",{attrs:{href:"mailto:PNWang@itri.org.tw"}},[t._v("PNWang@itri.org.tw")]),e("br"),t._v("電話:049-2345658")])]),t.isSignIn?e(m["c"],{directives:[{name:"show",rawName:"v-show",value:12===t.selectId,expression:"selectId === 12"}],staticClass:"pt-5 text-body-1 black--text"},[e("iframe",{attrs:{src:"https://forms.gle/ibt97LipWxQeDJzA9",title:"questionnaire",width:"100%",height:"600",frameborder:"0"}})]):t._e()],1):e(d["a"],{key:t.selected.id,staticClass:"mx-auto",attrs:{color:"transparent",flat:"","max-width":"1200"}},[e(m["c"],{staticClass:"text-h5 font-weight-bold"},[t._v(t._s(t.selected.name))]),e(v["a"],{staticClass:"white"}),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:1===t.selectId,expression:"selectId === 1"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("Intelligent Cloud for Machinery")]),e("p",[t._v('Various intelligent manufacturing projects were introduced in Taiwan beginning in 2014 for the development of technologies related to intelligent machinery, IoT, BigData, AI, Digital Twin, and cloud computing to lead the enhancement of value-added services in the manufacturing and commercial service industries. The 3-year government promotion of the Smart Machine Box (SMB) Counseling Program urged by the Honorary Chairman of Taiwan Association of Machinery Industry, Ba-hsi Ko, has achieved a network connection of 5,301 pieces of equipment while helping 249 companies in 11 types of industries accomplish digital transformation. The goal of a 10,000-machine network is expected to be achieved in 2022. After the effectiveness of the SMB subsidies was shown, the Taiwan Association of Machinery Industry further published its White Paper on the Taiwan Association of Machinery Industry to point out that: most SMEs do not have too much capital to be invested in the R&D of intelligent functional modules, so there must be a public version of the intelligent cloud platform established in conjunction with the SMB connected to all machinery equipment to enhance the added value of machines via the Internet of Machines, to optimize production modes and reduce material consumption, and to utilize production statistics and artificial intelligence. In short, when the government encourages manufacturers to install SMB; that there shall be more software to provide intelligent services; increase the equipment value of equipment suppliers and the competitiveness of manufacturers, and to create an ecological system (equipment industry + manufacturing industry + software industry) for intelligent manufacturing services. This is why the plan for creating the Intelligent Cloud for Machinery (below, the "machinery cloud") was born. '),e(_["a"],{attrs:{src:s("44f7"),width:"800",contain:""}}),e("span",{},[t._v("Machinery Cloud Service Ecological System")])],1),e("li",[t._v("Development History")]),e("p",[e("span",{staticClass:"font-weight-bold"},[t._v("2019 and 2020")]),t._v(", the Department of Industrial Technology of the MOEA instructed the Smart Machinery Technology Center of ITRI to carry out concept testing in Taichung Smart Manufacturing Technology Verification Field by using ITRI’s VMX system as the proof of concept (POC)."),e("br"),t._v(" In light of the fact that the incompatibility among ground ends of various platforms (SMB) made it difficult to promote the machinery cloud service, from "),e("span",{staticClass:"font-weight-bold"},[t._v("2020 to 2021")]),t._v(", the Department of Industrial Technology of the MOEA instructed the Industrial Technology Research Institute (ITRI), Institute for Information Industry (III), Precision Machinery Research & Development Center (PMC), the Metal Industries Research & Development Centre(MIRDC), and the Taiwan Textile Research Institute (TTRI) to jointly create a standard SMB system, where a layer of Runtime is added to each brand of SMB so that the software on the machinery cloud can be operated in various brands of SMBs to establish the Intelligent Cloud for Machinery (hereinafter “Machinery Cloud” or “machinery cloud”) and to provide the industry with rapid digital transformation and supply chain integration services."),e("br"),t._v(" In "),e("span",{staticClass:"font-weight-bold"},[t._v("2021")]),t._v(", we have continued to integrate the energies of various corporations to establish a huge amount of app services and to promote the platform with an aggregation of intelligence. ")]),e("li",[t._v("Industrial Support")]),e("p",[t._v("Metal machining industry, plastic injection industry, metal forming industry, fastener industry, semiconductor/PCB industry, textile industry, food industry, and bicycle industry.")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:201===t.selectId,expression:"selectId === 201"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("The overall operation architecture of the machinery cloud is centered on the standard Runtime of the cloud platform for the machinery industry. It is connected downward to the SMB (Smart Machine Box), which is then connected to all local industrial factory equipment. On the other hand, it can be connected upward to the market of cloud platform for the machinery industry and various cloud service providers via open standard communication interfaces and standard information models to facilitate data communication.")]),e("p",[t._v("There are three main modules inside the standard Runtime of the machinery cloud: common ground engine, application management platform, and common cloud engine. Among them, the common ground engine is used for information communication with various SMBs via standard communication interfaces and standard information modules of various industries. The application management platform is a Windows application program, which is the management software for download of the App via the machinery cloud market. Any user can directly access the machinery cloud market via the application management platform for download, installation, and use. The function of the common cloud engine is for the App downloaded from the machinery cloud market to communicate with cloud services via standard communication interfaces and standard information models.")]),e(_["a"],{attrs:{src:s("feeb"),width:"800"}}),e("span",[t._v("Operation architecture of the machinery cloud")])],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:202===t.selectId,expression:"selectId === 202"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("Standard SMB refers to the industrial personal computer (IPC) with the installation of machinery cloud standard Runtime, and this SMB has been tested and verified by ITRI to be able to download the machinery cloud app from the machinery cloud market with stable executions under normal use conditions."),e("br"),t._v(" The hardware and software specifications of the standard SMB are as shown below: "),e("ol",[e("li",[t._v("IPC specifications: CPU Intel Celeron J1900 or above, 4GB DDR Ram or above, 32GB SSD or above, RJ45 x 2 or above, Windows 10 OS")]),e("li",[t._v("Installation of machinery cloud standard Runtime")])])]),e("p",[t._v("An end user can purchase the standard SMB from the system integrator (SI) and can apply for a user account via the standard SMB. After the account application is completed, the machinery cloud app can be downloaded from the machinery cloud market. Generally speaking, a user can find the app to solve the user’s problem via the machinery cloud market, and then discuss with the SI regarding the suitability of the software and the need for the installation of additional software and hardware peripherals, or even the needs for parameter setting and adjustment of hardware and software. To summarize the above, the SI can package all services into a solution to serve the end user in order to achieve the fastest and most efficient incorporation.")]),e("p",[t._v("In addition, some apps which are not very related to equipment or hardware can also be downloaded by the user depending on the situation or the self-assessment of the mastery of software usage. On the whole, the confirmation and payment of the app download is based on the account. "),e(_["a"],{attrs:{src:s("d3de"),width:"800"}}),e("span",[t._v("Relationship and process flow of SMB suppliers, SI, and the end user")])],1),e("p",[t._v("Manufacturers or corporations currently in compliance with the standard SMB:"),e("br"),t._v(" Corporation: ITRI Smart Machinery Technology Center, ITRI Mechanical and Mechatronics Systems Research Laboratories, Precision Machinery Research & Development Center (PMC), Metal Industries Research & Development Centre (MIRDC), and the Institute for Information Industry (III)."),e("br"),t._v(" Manufacturers: Advantech Co., Ltd., Iscom Online International Information Inc.")])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:203===t.selectId,expression:"selectId === 203"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("The Machinery Cloud is mainly managed by the app management platform (iMacloud). Any user can register via iMacloud to get a user account after verification, and download the app from the machinery cloud market. After logging in via this account, the user can then connect to the machinery cloud market on iMacloud to browse and pay for the download of the required app to be used. There are technical service personnel on the instruction page of any app to be contacted for user services. "),e(_["a"],{attrs:{src:s("e691"),width:"800"}}),e("span",[t._v("Use Process Flow of the Machinery Cloud")])],1),e("p",[t._v("In addition to the user identity, the Machinery Cloud can also be accessed by the software developer identity. The machinery cloud user can apply for an account upgrade to a software developer account in order to launch and sell apps on the machinery cloud market for profit. Currently only machinery cloud apps meeting the standard Runtime can be launched, which comes in various system types such as a Windows Form app, Container app, Independent Windows EXE app, and a Linux app . "),e(_["a"],{attrs:{src:s("98e9"),width:"800"}}),e("span",[t._v("Types of Apps Meeting the Machinery Cloud Runtime")])],1),e("p",[t._v("The developed app must meet the machinery cloud standard Runtime before it can be launched. This is because the app must access the equipment information via the database in the ground engine in the machinery cloud standard Runtime rather than direct communication with the hardware. Moreover, there are different standard information models in different industries, so the developed app must be in compliance with the data architecture regulations of standard information models before an application for market launch. After market launch, the app review process flow can be viewed via the Dashboard on the developer management platform, along with the use conditions and profit sharing of the app. "),e(_["a"],{attrs:{src:s("416d"),width:"800"}}),e("span",[t._v("App Market Launch Process Flow")])],1)]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:204===t.selectId,expression:"selectId === 204"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("Introduction to the Communication Protocol and Information Model")]),e("p",[t._v("IoT is the backbone of the bottom layer of the smart manufacturing system with an interconnection of all production equipment for data transmission. However, the data transmission is done via various software systems representing the equipment in the virtual world rather than via the equipment itself. Therefore, we need to add two important technologies – the communication protocol and information model - to allow for the free integration and exchanges among these software systems.")]),e("li",[t._v("Communication Protocol")]),e("p",[t._v("The method for information exchange between software is called the communication protocol, which is essentially the “language” for software communication. All software can communicate with each other only when they use the same “language.” The following communication protocols frequently used in the equipment industry and manufacturing industry are currently supported by the Machinery Cloud standard ground software and cloud computing platform. "),e("ol",[e("li",[e("a",{attrs:{href:"https://zh.wikipedia.org/wiki/%E8%B6%85%E6%96%87%E6%9C%AC%E4%BC%A0%E8%BE%93%E5%8D%8F%E8%AE%AE",target:"_blank",rel:"noopener"}},[t._v("HTTP")])]),e("li",[e("a",{attrs:{href:"https://zh.wikipedia.org/wiki/OPC_UA",target:"_blank",rel:"noopener"}},[t._v("OPCUA")])]),e("li",[e("a",{attrs:{href:"https://mqtt.org/",target:"_blank",rel:"noopener"}},[t._v("MQTT")])])]),t._v(" However, the standardization level must be further enhanced in order to ensure smooth communication between software and plug-n-use, and seamless integration between old and new software. This is the so-called information model.")]),e("li",[t._v("Information Model")]),e("p",[t._v("The information model is equivalent to the “term” of the architecture of a common language. For example, there is a type of tuber plant. Some people call it a potato; some people call it a western yam; and people in Mainland China call it an “earth bean,” which actually refers to peanuts in Taiwan. If you are familiar with all these names, you won’t get confused during the conversion. However, if any party of the conversion doesn’t know about the meanings of these names, there could be communication barriers. This is the communication issue caused by the term “ambiguity.” This kind of ambiguity can be quickly eliminated in daily life by further explanation, yet the ambiguity of communication between software and hardware will cause the malfunction of the entire system."),e("br"),t._v(" Therefore, we need to define the standard “term” for mutual communication between one layer of software in the communication protocol, which is the so-called information model, in order to ensure obstacle-free communication between all software systems in the smart manufacturing system, and to achieve a division of labor and collaborative operation of all equipment."),e("br"),t._v(" The method for ensuring that all software uses the same information model is to jointly define the standard information model by collecting the requirements of all equipment developers, software developers, and end users, and request all equipment and software to use the standard information model for data exchange. This is exactly the task which has been completed or is being promoted by many major companies and organizations. ")]),e("li",[t._v("The Information Models Supported by the Machine Cloud")]),e("p",[t._v("The industries locked on by the Machine Cloud include metal cutting machine tools, metal shaping equipment, textiles, rubbers and plastics, and the electronic equipment industries. Therefore, all major standard information models commonly used all over the world are supported from ground standard runtime to a cloud computing platform. So far, the supported information models are as shown below: "),e("ol",[e("li",[e("a",{attrs:{href:"https://www.euromap.org/",target:"_blank",rel:"noopener"}},[t._v("EuroMap promoted and formulated by European Plastics and Rubber Machinery")])]),e("li",[e("a",{attrs:{href:"https://www.semi.org/en",target:"_blank",rel:"noopener"}},[t._v("Secs/GEM promoted and formulated by Semiconductor Equipment and Materials International")])]),e("li",[e("a",{attrs:{href:"https://umati.org/",target:"_blank",rel:"noopener"}},[t._v("Universal Machine Technology Interface (UMATI) promoted and formulated by Verband Deutscher Maschinen- und Anlagenbau")])])]),t._v(" The machinery cloud development team has provided the communication software modules corresponding to the aforementioned information models which are standardized or being formulated, which will be continuously updated along with the evolution of standard content. As for other industries not yet equipped with the standard information models, such as the textile and stamping industries, all industrial associations will jointly assist in the promotion and formulation of industrial standards and field verification tests, along with the future promotion of an inclusion of international standards. ")]),e("div",[t._v("For matters related to the formulation of industrial standards and field verification tests, please contact the Machinery Cloud SIG Service Group (Shuo-Peng Liang "),e("a",{attrs:{href:"mailto:spl@itri.org.tw"}},[t._v("spl@itri.org.tw")]),t._v(")")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:3===t.selectId,expression:"selectId === 3"}],staticClass:"pt-5 text-body-1 black--text"},[e("table",{attrs:{border:"1"}},[e("caption",[t._v("Industrial Software Development SIG Contacts")]),e("tr",[e("th",{attrs:{scope:"col"}},[t._v("Industry")]),e("th",{attrs:{scope:"col"}},[t._v("Contact Window")])]),e("tr",[e("td",[t._v("Metal Cutting Industry")]),e("td",[t._v("Smart Machinery Technology Center of ITRI, Director Jin-chu Sun"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:ricky@itri.org.tw"}},[t._v("ricky@itri.org.tw")])])]),e("tr",[e("td",[t._v("Electronic Equipment Industry")]),e("td",[t._v("Mechanical and Mechatronics Systems Research Laboratories of ITRI, Deputy Director Ching-Jun Wang"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:juin0306@itri.org.tw"}},[t._v("juin0306@itri.org.tw")])])]),e("tr",[e("td",[t._v("Metal Forming Industry")]),e("td",[t._v("Mechanical and Mechatronics Systems Research Laboratories of ITRI, Manager Bo-huang Shieh"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:TabShieh@itri.org.tw"}},[t._v("TabShieh@itri.org.tw")])])]),e("tr",[e("td",[t._v("Plastics and Rubber Industry")]),e("td",[t._v("Mechanical and Mechatronics Systems Research Laboratories of ITRI, Deputy Director Ya-Hui Tsai"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:YaHuiTsai@itri.org.tw"}},[t._v("YaHuiTsai@itri.org.tw")])])]),e("tr",[e("td",[t._v("Textile Equipment Industry")]),e("td",[t._v("ITRI South Campus, Manager Leslie Wu"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:LeslieWu@itri.org.tw"}},[t._v("LeslieWu@itri.org.tw")])])]),e("tr",[e("td",[t._v("Intelligent Cloud for Machinery")]),e("td",[t._v("Smart Machinery Technology Center of ITRI, Manager Pei-Ning Wang"),e("br"),t._v("Email:"),e("a",{attrs:{href:"mailto:PNWang@itri.org.tw"}},[t._v("PNWang@itri.org.tw")])])])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:4===t.selectId,expression:"selectId === 4"}],staticClass:"pt-5 text-body-1 black--text"},[e(_["a"],{attrs:{src:s("584b"),cover:""}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:5===t.selectId,expression:"selectId === 5"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("The Technical Verification Site for Intelligent Manufacturing"),e("br"),e("a",{attrs:{href:"http://www.impps.org.tw/",target:"_blank",rel:"noopener"}},[t._v("http://www.impps.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("9793"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TAMI Taiwan Association of Machinery Industry"),e("br"),e("a",{attrs:{href:"http://www.tami.org.tw/cindex.php",target:"_blank",rel:"noopener"}},[t._v("http://www.tami.org.tw/cindex.php")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("e5fd"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Taiwan Electrical and Electronic Manufacturers’ Association"),e("br"),e("a",{attrs:{href:"http://www.teema.org.tw/",target:"_blank",rel:"noopener"}},[t._v("http://www.teema.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("4e62"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TAIROA Taiwan Automation Intelligence and Robotics Association"),e("br"),e("a",{attrs:{href:"https://www.tairoa.org.tw/Default.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.tairoa.org.tw/Default.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("132c"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("TMBA Taiwan Machine Tool & Accessory Builders’ Association"),e("br"),e("a",{attrs:{href:"https://www.tmba.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.tmba.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("264b"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Manufacturing Automation Laboratories(UBC)"),e("br"),e("a",{attrs:{href:"https://www.malinc.com/",target:"_blank",rel:"noopener"}},[t._v("https://www.malinc.com/")]),e("br"),e("a",{attrs:{href:"https://mech.ubc.ca/alumni-no/mal/",target:"_blank",rel:"noopener"}},[t._v("https://mech.ubc.ca/alumni-no/mal/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("1887"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("The University of British Columbia"),e("br"),e("a",{attrs:{href:"https://brand.ubc.ca/guidelines/downloads/logos-signatures-and-visual-identity-assets/",target:"_blank",rel:"noopener"}},[t._v("https://brand.ubc.ca/guidelines/downloads/logos-signatures-and-visual-identity-assets/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("1804"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("PMC Precision Machinery Research & Development Center"),e("br"),e("a",{attrs:{href:"https://www.pmc.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.pmc.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("b47f"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Institute for Information Industry"),e("br"),e("a",{attrs:{href:"https://www.iii.org.tw/",target:"_blank",rel:"noopener"}},[t._v("https://www.iii.org.tw/")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("a86c"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Metal Industries Research & Development Centre"),e("br"),e("a",{attrs:{href:"https://www.mirdc.org.tw/index.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.mirdc.org.tw/index.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("ccbd"),"max-height":"60",contain:""}})],1)],1),e(gt["a"],[e(f["a"],{attrs:{cols:"12",md:"6"}},[e("li",[t._v("Department of Industrial Technology, MOEA"),e("br"),e("a",{attrs:{href:"https://www.moea.gov.tw/MNS/doit_e/home/Home.aspx",target:"_blank",rel:"noopener"}},[t._v("https://www.moea.gov.tw/MNS/doit_e/home/Home.aspx")])]),e("br")]),e(f["a"],{attrs:{cols:"12",md:"6"}},[e(_["a"],{attrs:{src:s("4624"),"max-height":"60",contain:""}})],1)],1)],1)]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:6===t.selectId,expression:"selectId === 6"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[e("a",{attrs:{href:"https://www.youtube.com/watch?v=0PCSFxnuZfM",target:"_blank",rel:"noopener"}},[t._v("Advantech X Machinery Cloud X Runtime")])]),e("br"),e("li",[e("a",{attrs:{href:"https://campaign.advantech.online/en/2021AdvantechConnect_ATW_0830/",target:"_blank",rel:"noopener"}},[t._v(" [Please Join Our Online Seminar] 8/30 (Monday) 14:00-15:10 Failure Diagnosis of Critical Equipment for Optimization of Production Machine Performance")]),e("br"),t._v(" The manufacturing industry in Taiwan’s management of critical equipment through more timely and automatic methods under the digital transformation of intelligent factories is a major subject. This Online Seminar will share new IoT technologies to inspire manufacturing industry to further enhance the applications of digital data for equipment failure diagnosis, optimize production of machine performance, and drive the upgrade of industrial technologies.")]),e("br"),e("li",[e("a",{attrs:{href:"https://www.itri.org.tw/ListStyle.aspx?DisplayStyle=18_content&SiteID=1&MmmID=1036452026061075714&MGID=1073021750602224601",target:"_blank",rel:"noopener"}},[t._v("Launching of local intelligent cloud for the machinery industry")])]),e("br"),e("li",[e("a",{attrs:{href:"http://www.ctimes.com.tw/DispArt/tw/%E6%99%BA%E6%85%A7%E6%A9%9F%E6%A2%B0%E9%9B%B2/%E9%81%94%E6%98%93%E6%99%BA%E9%80%A0/%E6%95%B8%E4%BD%8D%E8%BD%89%E5%9E%8B/AIoT/%E6%99%BA%E6%85%A7%E8%A3%BD%E9%80%A0/2101261708WK.shtml",target:"_blank",rel:"noopener"}},[t._v("CTIMES-2021 Internal and External Joint Efforts to Turn the Tide and Share Business Opportunities with the Intelligent Machinery Cross-Domain Alliance")])]),e("br"),e("li",[e("a",{attrs:{href:"https://www.bnext.com.tw/article/42915/bn-20170124141334-q455gcyf",target:"_blank",rel:"noopener"}},[t._v("The first mile of the development of intelligent machinery in Taiwan – creation of a “Manufacturing Cloud for the Machine Tool Industry”")])])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:7===t.selectId,expression:"selectId === 7"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[e("a",{on:{click:function(e){return t.hrefUrl("download/店中店申請SOP.pdf")}}},[t._v("SOP for machinery cloud in-shop applications")])]),e("br"),e("li",[e("a",{on:{click:function(e){return t.hrefUrl("download/智慧機械雲整體架構及開發者應用服務.pdf")}}},[t._v("Overall architecture of the machinery cloud and developer application services")])]),e("br"),e("li",[t._v("Application scenarios for the machinery cloud "),e("a",{attrs:{href:"https://youtu.be/FKI8U0vb0MQ",target:"_blank",rel:"noopener"}},[t._v("https://youtu.be/FKI8U0vb0MQ")])]),e("iframe",{attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/FKI8U0vb0MQ",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:801===t.selectId,expression:"selectId === 801"}],staticClass:"pt-5 text-body-1 black--text"},[e("a",{on:{click:function(e){return t.hrefUrl("download/Terms of Service for Smart Machinery Cloud Platform.pdf")}}},[t._v("Download")]),e(_["a"],{attrs:{src:s("1691"),width:"800"}}),e(_["a"],{attrs:{src:s("401e"),width:"800"}}),e(_["a"],{attrs:{src:s("4a37"),width:"800"}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:802===t.selectId,expression:"selectId === 802"}],staticClass:"pt-5 text-body-1 black--text"},[e("a",{on:{click:function(e){return t.hrefUrl("download/Shop-in-shop application form.docx")}}},[t._v("Download")]),e(_["a"],{attrs:{src:s("5af7"),width:"800"}}),e(_["a"],{attrs:{src:s("05bd"),width:"800"}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:803===t.selectId,expression:"selectId === 803"}],staticClass:"pt-5 text-body-1 black--text"},[e(_["a"],{attrs:{src:s("2e39"),cover:""}})],1),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:9===t.selectId,expression:"selectId === 9"}],staticClass:"pt-5 text-body-1 black--text"},[e("iframe",{attrs:{src:"https://imc-mmsl-service-1092565986.imacloud.com.tw/en/",title:"Video",width:"100%",height:"600",frameborder:"0"}})]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:11===t.selectId,expression:"selectId === 11"}],staticClass:"pt-5 text-body-1 black--text"},[e("ul",[e("li",[t._v("What is the machinery cloud?")]),e("p",[t._v("The machinery cloud is the public intelligent cloud platform jointly created by the ITRI, MIRDC, and III to enhance the added value of machines by integrating the SMB connected to various machinery equipment, and via the Internet of Machines, to optimize the production model and reduce material consumption, to utilize production statistics and AI technologies, and to work with manufacturers, equipment vendors, system integrators, and software and technical service providers to jointly establish smart manufacturing clusters.")]),e("li",[t._v("How do I register an account?")]),e("p",[t._v("The machinery cloud provides two types of identities: user and developer. If you are looking for an app, please visit the platform website to register as a user; if you want to launch a company app via the platform, please visit the platform website to register as a developer. After the registration application, in general it will take 3 to 5 working days for the user to receive a notice for the platform review result. If the user is qualified by the review, he/she can log into the platform with the temporary passwords provided in the notice to change their password and to complete their account activation.")]),e("li",[t._v("What do I do when the account has been registered, but the login has failed?")]),e("p",[t._v("After submission of the registration application, the system will send out a certification letter. Please check if the email was blocked by the system or regarded as spam. If it’s confirmed that the certificate letter was not received, the user should contact the system administrator to re-send the certification letter.")]),e("li",[t._v("The AWS key parameters are required during installation of machinery cloud program. How can I get them?")]),e("p",[t._v("If the app you want to use does not need the equipment data, you should not click on the item “Ground engine” during installation, otherwise, you will have to provide the AWS key(s). You can contact the platform service desk if you need more help.")]),e("li",[t._v("What if there is any error during the installation of the machinery cloud?")]),e("p",[t._v("The installation of the machinery cloud will require some files to be downloaded from the cloud, so please keep a smooth network connection. If the computer for the installation of machinery cloud is on an academic network or a regulated network, this could lead to failure in some installation steps.")]),e("li",[t._v("What if there is any error during the installation of the machinery cloud app?")]),e("p",[t._v("During the installation process of the machinery cloud app, the installation permissions must be verified by the cloud server, so please keep a smooth network connection. If the computer for the installation of machinery cloud platform is on an academic network or regulated network, it could lead to failure in some installation steps. If the error persists, you can contact the app developer or platform service desk to seek assistance.")]),e("li",[t._v("Our company wants to launch several apps. What should we do? Can there be different contact persons for different apps?")]),e("p",[t._v("Please register a company account as the developer first, and then complete the application for in-shop market. After the account is activated, please visit the app development platform to apply for the app launch. The self-application for the launch can be completed via the webpage guiding columns. The company developer can launch several different apps, and there can be different contact persons assigned to different apps.")]),e("li",[t._v("A required information security test report must be provided for the launch of the app. How do we provide this?")]),e("p",[t._v("All apps to be launched must come with information security test reports in accordance with the “Information Security Test Times and Service Regulations.pdf”. The information security test reports can be obtained via a paid service provided by the machinery cloud website or by a third party information security test company. The report format must comply with the standard regulation of the information security test company.")]),e("li",[t._v("If the app to be launched is a webpage type rather than an application program, can it still be launched?")]),e("p",[t._v("You can package the webpage type app into a machinery cloud app in accordance with “4. Explanation of App Development on the Application Program Management Platform” of “Machinery Cloud User Manual.pdf” ")]),e("li",[t._v("What if the “Login” button cannot be selected during login, or the reCAPTCHA robot test cannot be correctly displayed?")]),e("p",[t._v("1. Please use a non-IE browser such as Chrome/Firefox."),e("br"),t._v(" 2. Clear the browser cache and refresh the page."),e("br"),t._v(" 3. If you’ve entered the wrong password too many times, the system will temporarily prevent use of the login function for 60 seconds. Please refresh this page later to try the login again."),e("br"),t._v(" 4. If the network you use is a private network or a corporate network, please confirm whether or not the reCAPTCHA service domain is blocked."),e("br"),t._v(" 5. Please confirm whether or not the network connection is normal and set the computer time to “Automatic Update” before refreshing the page and trying again.")])])]),e(m["c"],{directives:[{name:"show",rawName:"v-show",value:10===t.selectId,expression:"selectId === 10"}],staticClass:"pt-5 text-body-1 black--text"},[e("p",[t._v("Administrative contact"),e("br"),t._v("Cara Chen"),e("br"),t._v("E-mail:"),e("a",{attrs:{href:"mailto:chencara@itri.org.tw"}},[t._v("chencara@itri.org.tw")]),e("br"),t._v("Phone:04-23583993 ext.658")]),e("p",[t._v("Technical support"),e("br"),t._v("Pei Ning Wang"),e("br"),t._v("E-mail:"),e("a",{attrs:{href:"mailto:PNWang@itri.org.tw"}},[t._v("PNWang@itri.org.tw")]),e("br"),t._v("Phone:049-2345658")])])],1)],1)],1)],1)],1)},ra=[],oa={name:"Service",data(){return{active:[]}},computed:{...Object(L["c"])("authenticate",["isSignIn"]),...Object(L["b"])("locale",["locale"]),items(){const t=[{id:1,name:this.$t("about iMacloud")},{id:2,name:this.$t("iMacloud structure"),children:[{id:201,name:this.$t("operation structure")},{id:202,name:this.$t("standard SMB")},{id:203,name:this.$t("iMacloud platform")},{id:204,name:this.$t("information model")}]},{id:3,name:this.$t("SIG service group")},{id:4,name:this.$t("site map")},{id:5,name:this.$t("friendly site link")},{id:6,name:this.$t("activity announcement")},{id:7,name:this.$t("teaching video")},{id:8,name:this.$t("terms of service"),children:[{id:801,name:this.$t("enterprise users/individual users")},{id:802,name:this.$t("software developer")}]},{id:9,name:this.$t("tech site")},{id:11,name:this.$t("q&a")},{id:10,name:this.$t("contact me")}];return t},selectId(){return this.active.length?this.active[0]:1},selected(){if(!this.selectId)return"";const t=this.selectId,e=Math.floor(t/100);if(e>1){const s=this.items.find(t=>t.id===e);return s.children.find(e=>e.id===t)}return this.items.find(e=>e.id===t)}},methods:{hrefUrl(t){window.open("https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/public/"+t)},clickHandler(t){window.location.href=t}}},na=oa,ca=(s("64e9"),Object(E["a"])(na,ia,ra,!1,null,"77dfbbe2",null)),la=ca.exports,ua=s("1f4f"),ha=s("71a3"),da=s("c671"),ma=s("fe57"),pa=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"mx-2 ma-sm-12",attrs:{fluid:""}},[e("div",{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("downloadZone")))]),e(ma["a"],{staticClass:"my-2 my-sm-12",attrs:{"background-color":"rgba(0,49,101,0.75)",dark:""}},[t._l(t.noticesCategory,(function(s){return e(ha["a"],{key:s,staticClass:"text-body-2",attrs:{href:"#"+s}},[t._v(t._s(t.$t(s)))])})),e(T["a"]),t._l(t.noticesCategory,(function(s){return e(da["a"],{key:s,attrs:{value:s}},[e(d["a"],{staticClass:"card_scroll",attrs:{flat:"",height:"190px",color:"rgba(195,195,195,0.5)"}},[e(m["c"],t._l(t.showNotices,(function(a,i){return e("ul",{directives:[{name:"show",rawName:"v-show",value:a.category===s,expression:"notice.category === page"}],key:"page_"+i,on:{click:function(e){return t.showDetailHandler(a)}}},[e("li",[e("a",{staticClass:"_blue--text darken-4"},[t._v(t._s(new Date(a.updateTime).toLocaleDateString())+" "+t._s(a.name))])])])})),0)],1)],1)}))],2),t._l(t.downloadCategory,(function(s){return e(ua["a"],{key:s,staticClass:"transparent mb-5",scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",{staticClass:"dt_bg_blueTrans"},[e("tr",[e("th",{staticClass:"text-body-2 text-left white--text",attrs:{scope:"col",width:"30%"}},[t._v(t._s(t.$t("download"))+" - "+t._s(t.$t(s)))]),e("th",{staticClass:"text-body-2 text-left white--text",attrs:{scope:"col",width:"50%"}},[t._v(t._s(t.$t("description")))]),e("th",{staticClass:"text-body-2 text-left white--text",attrs:{scope:"col",width:"10%"}},[t._v(t._s(t.$t("updateDate")))]),e("th",{staticClass:"text-body-2 text-left white--text text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("download")))])])]),e("tbody",{staticClass:"dt_bg_transparent"},t._l(t.downloadCategoryFiles(s),(function(s){return e("tr",{key:s.id},[e("td",{staticClass:"dt_Content"},[t._v(t._s(s.name))]),e("td",[t._v(t._s(s.description))]),e("td",[t._v(t._s(new Date(s.updateTime).toLocaleDateString()))]),e("td",{staticClass:"text-right"},[e(h["a"],{key:s.id,attrs:{icon:""},on:{click:function(e){return t.downloadHandler(s.filePath)}}},[e(y["a"],{attrs:{color:"_blue"}},[t._v("mdi-download")]),e("span",{staticStyle:{"font-size":"0rem"}},[t._v(t._s(t.$t("download")))])],1)],1)])})),0)]},proxy:!0}],null,!0)})})),e(b["a"],{attrs:{"max-width":"600"},model:{value:t.hasDetail,callback:function(e){t.hasDetail=e},expression:"hasDetail"}},[e(d["a"],[e(m["d"],{staticClass:"headline"},[t._v(t._s(t.noticeContent.name))]),e(m["b"],{staticClass:"text-right"},[t._v(t._s(t.$t("updateDate"))+":"+t._s(new Date(t.noticeContent.updateTime).toLocaleDateString()))]),e(m["c"],[e(vs["a"],{attrs:{readonly:"","auto-grow":"",flat:"",solo:""},model:{value:t.noticeContent.description,callback:function(e){t.$set(t.noticeContent,"description",e)},expression:"noticeContent.description"}})],1),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){t.hasDetail=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)],1)],2)},fa=[],ga={name:"DownloadZone",data:()=>({notices:[],noticeContent:{},files:[],hasDetail:!1,categoryDownload:["doc","file"]}),computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["b"])("locale",["locale"]),...Object(L["b"])("dbTable",["permissionId"]),showNotices(){const t=this.notices.filter(t=>t.locale===this.locale);return this.isSignIn?this.isDeveloper(this.userAttribute.policy)?t:t.filter(t=>!0!==t.developerDisplay):t.filter(t=>!0!==t.loginDisplay)},noticesCategory(){return 0===this.showNotices.length?[]:Array.from(new Set(this.notices.map(t=>t.category)))},showDownload(){const t={},e=this.files.filter(t=>t.locale===this.locale);return this.categoryDownload.forEach(s=>{this.isSignIn?this.isDeveloper(this.userAttribute.policy)?t[s]=e.filter(t=>t.category===s):t[s]=e.filter(t=>t.category===s&&!0!==t.developerDisplay):t[s]=e.filter(t=>t.category===s&&!0!==t.loginDisplay)}),t},downloadCategory(){return this.categoryDownload.filter(t=>0!==this.showDownload[t].length)},downloadSelectItem(){const t=[];for(let e=0;et===this.permissionId("launch"))},showDetailHandler(t){this.hasDetail=!0,this.noticeContent=t},downloadHandler(t){window.open("https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t)},downloadCategoryFiles(t){return this.showDownload[t]},update(){Z["a"].scan("smb").then(t=>{void 0!==t&&(this.notices=t.filter(t=>"notice"===t.type),this.files=t.filter(t=>"download"===t.type),0===this.files.length&&(this.files=[{category:"doc"}]),this.notices.sort((t,e)=>e.updateTime-t.updateTime))})}}},ba=ga,va=(s("3440"),Object(E["a"])(ba,pa,fa,!1,null,"207d120a",null)),wa=va.exports,ya=s("cc20"),_a=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"ma-2 ma-sm-12",attrs:{fluid:""}},[e(gt["a"],{staticClass:"my-4",attrs:{justify:"start"}},[e(f["a"],{attrs:{cols:"12",md:"3"}},[e("div",{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("accountingInfo")))])]),e(f["a"],{attrs:{cols:"12","offset-md":"6",md:"3",align:"end"}},[this.costLimit>0?e(ya["a"],{attrs:{label:"",color:"_blue","text-color":"_light_grey",large:"",close:"","close-icon":"mdi-delete-forever"},on:{"click:close":function(e){t.cancelDialog=!0}}},[t._v(" "+t._s(t.$t("alarmLimit")+":"+t.costLimit)+" ")]):e(vt["a"],{ref:"alarmLimit",attrs:{label:t.$t("alarmLimit"),"background-color":"_light_grey",filled:"","append-icon":"mdi-content-save",rules:[()=>t.alarmLimit>0&&t.alarmLimit<=21e8||t.$t("errNumber")]},on:{"click:append":function(e){t.submitDialog=!0}},model:{value:t.alarmLimit,callback:function(e){t.alarmLimit=e},expression:"alarmLimit"}})],1)],1),e("iframe",{attrs:{src:t.dashboardUrl,title:"Dashboard",width:"100%",height:"800",frameborder:"0"}}),e("Dialog",{attrs:{isShow:t.submitDialog,title:"submit",msg:"confirmMsg",verbMsg:"submit"},on:{confirm:function(e){return t.setCostLimit()},cancel:function(e){t.submitDialog=!1}}}),e("Dialog",{attrs:{isShow:t.cancelDialog,title:"cancel",msg:"confirmMsg",verbMsg:"cancel"},on:{confirm:function(e){return t.delCostLimit()},cancel:function(e){t.cancelDialog=!1}}})],1)},xa=[],Ca={name:"Bill",data:()=>({year:(new Date).getFullYear(),month:(new Date).getMonth()+1,startYear:2021,url:"",costLimit:0,alarmLimit:"",submitDialog:!1,cancelDialog:!1,encryptEmail:""}),components:{Dialog:ms},mounted(){this.getCostLimit(),this.encrypt()},computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),account(){return this.isSignIn?this.userAttribute.email:""},yearList(){const t=(new Date).getFullYear()-this.startYear;return 0===t?[this.startYear]:Array(t+1).fill().map((t,e)=>e+this.startYear)},monthList(){return Array(12).fill().map((t,e)=>e+1)},dashboardUrl(){let t="https://manager.imacloud.com.tw:3000/d/XEOLIz9Mz/smp-statistics-user?orgId=1&refresh=10s";return t=`${t}&var-userid=${this.account}&var-year=${this.year}&var-month=${this.month}&kiosk`,t}},methods:{async encrypt(){const t=await et.encrypt({text:this.account});this.encryptEmail=t.data},setCostLimit(){if(this.submitDialog=!1,!this.$refs.alarmLimit.validate())return void this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("errNumber")]});const t={userId:this.account,alarmPrice:this.alarmLimit};Nt["a"].api("https://manager.imacloud.com.tw:8443/dw/priceIntegration/alarm/info","POST",t).then(()=>{this.$store.commit("notify/set",{type:"success",msg:[this.$t("submit")," ",this.$t("success")]}),this.getCostLimit(),this.alarmLimit=""})},getCostLimit(){Nt["a"].api("https://manager.imacloud.com.tw:8443/dw/priceIntegration/alarm/info/"+this.account,"GET").then(t=>{t.data?this.costLimit=t.data.alarmPrice:this.costLimit=0})},delCostLimit(){this.cancelDialog=!1,Nt["a"].api("https://manager.imacloud.com.tw:8443/dw/priceIntegration/alarm/info/"+this.account,"DELETE").then(()=>{this.$store.commit("notify/set",{type:"success",msg:[this.$t("cancel")," ",this.$t("success")]}),this.getCostLimit()})}}},ka=Ca,$a=Object(E["a"])(ka,_a,xa,!1,null,null,null),Ia=$a.exports,Sa=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"ma-2 ma-sm-12",attrs:{fluid:""}},[e("div",{staticClass:"mb-5 text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("deployApp")))]),e("iframe",{attrs:{src:t.dashboardUrl,title:"Dashboard",width:"100%",height:"800",frameborder:"0"}})])},Pa=[],Ta={name:"DeployApp",data:()=>({encryptEmail:""}),mounted(){this.encrypt()},computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["b"])("locale",["locale"]),account(){return this.isSignIn?this.userAttribute.email:""},dashboardUrl(){return`https://vmx-deployment-plan.s3.ap-northeast-1.amazonaws.com/index.html?email=${encodeURIComponent(this.encryptEmail)}&lang=${this.locale}#/`}},methods:{async encrypt(){const t=await et.encrypt({text:this.account});this.encryptEmail=t.data}}},ja=Ta,Aa=Object(E["a"])(ja,Sa,Pa,!1,null,null,null),Da=Aa.exports,La=s("8fea"),Oa=s("8e36"),Ua=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"transparent",attrs:{height:"100%"}},[e("div",{staticClass:"ma-2 ma-sm-12 text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("statistics")))]),e(gt["a"],{staticClass:"ma-2 ma-sm-12",attrs:{justify:"center"}},[e(f["a"],{attrs:{cols:"12",md:"auto"}},[t.isShow("basicStatistics")?e(d["a"],{attrs:{width:"500",color:"_light_grey"}},[e(m["d"],{staticClass:"_grey--text font-weight-black"},[t._v(t._s(t.$t("statistics")))]),e(m["c"],{staticClass:"ma-5 text-subtitle-1"},[e(gt["a"],[t._v(t._s(t.$t("user")+" "+t.$t("total")+" "+t.userCount))]),e(gt["a"],[t._v(" "+t._s(t.$t("publishers")+" "+t.$t("total")+" "+t.publisherCount+" ("+this.$t("include")+this.$t("consortium")+"9)")+" ")]),e(gt["a"],[t._v(t._s(t.$t("application")+" "+t.$t("total")+" "+t.productList.length))]),e(gt["a"],[t._v(t._s(t.$t("downloadCount")+" "+t.$t("total")+" "+t.installCount))])],1)],1):t._e()],1),e(f["a"],{attrs:{cols:"12",md:"4"}},[t.isShow("basicQuery")?e(d["a"],{attrs:{width:"500",color:"_light_grey"}},[e(m["d"],{staticClass:"_grey--text font-weight-black"},[t._v(t._s(t.$t("accountQuery")))]),e(m["c"],[e(vt["a"],{attrs:{"append-icon":"mdi-magnify",label:t.$t("search"),"single-line":"","hide-details":""},model:{value:t.searchUser,callback:function(e){t.searchUser=e},expression:"searchUser"}}),e("div",[t._v(t._s(t.userQueryResult))])],1)],1):t._e()],1),e(f["a"],{attrs:{cols:"12",md:"4"}},[t.isShow("basicQuery")?e(d["a"],{attrs:{width:"500",color:"_light_grey"}},[e(m["d"],{staticClass:"_grey--text font-weight-black"},[t._v(t._s(t.$t("departmentQuery")))]),e(m["c"],[e(vt["a"],{attrs:{"append-icon":"mdi-magnify",label:t.$t("search"),"single-line":"","hide-details":""},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}})],1),e(La["a"],{staticClass:"_light_grey",attrs:{headers:t.companyHeaders,items:t.companyItem,search:t.searchText,"sort-by":"department",dense:"",width:"100"},scopedSlots:t._u([{key:"item",fn:function(s){return[e("tr",[e("td",[t._v(t._s(s.item.department))]),e("td",[t._v(t._s(s.item.count))])])]}}],null,!1,2426498360)},[e(Oa["a"],{attrs:{progress:"",color:"blue",indeterminate:""},scopedSlots:t._u([{key:"default",fn:function(){},proxy:!0}],null,!1,157076738)})],1)],1):t._e()],1)],1)],1)},Ma=[],Na={name:"Statistics",data:()=>({userCount:0,appCount:0,installCount:0,userList:[],searchText:"",searchUser:""}),computed:{...Object(L["b"])("dbTable",["publisherList","productList","permissionId"]),...Object(L["c"])("authenticate",["userAttribute"]),publisherCount(){const t=[];return this.publisherList.forEach(e=>{const s=this.productList.filter(t=>t.publishers===e.id);s.length>0&&t.push(e)}),t.length},userQueryResult(){if(""===this.searchUser)return"";const t=this.userList.map(t=>({email:t.email,name:t.name})),e=t.filter(t=>-1!==JSON.stringify(t).indexOf(this.searchUser.trim()));return e.length?this.$t("exist"):this.$t("notExist")},companyHeaders(){return[{text:this.$t("department"),value:"department",sortable:!0},{text:this.$t("count"),value:"count",sortable:!1}]},company(){return[...new Set(this.userList.map(t=>t.department))]},companyItem(){const t=[];return this.company.forEach(e=>{const s=this.userList.filter(t=>e===t.department);t.push({department:e,count:s.length})}),t}},created(){Z["a"].scan("user",{},["email","name","department"]).then(t=>{this.userList=t,this.userCount=t.length}),Z["a"].scan("install",{},["id"]).then(t=>{this.installCount=t.length})},methods:{isShow(t){return!!this.userAttribute.policy&&-1!==Object.keys(this.userAttribute.policy).findIndex(e=>e===this.permissionId(t))}}},qa=Na,Ea=Object(E["a"])(qa,Ua,Ma,!1,null,null,null),Ra=Ea.exports,Ba=s("71d9"),za=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"mx-8 ma-sm-12",attrs:{fluid:""}},[e("div",{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("customerService")))]),e(gt["a"],{staticClass:"mt-1 mt-sm-3 mx-auto",attrs:{justify:"end"}},[e(h["a"],{staticClass:"_blue _light_grey--text",on:{click:function(e){return t.track()}}},[t._v(t._s(t.$t("track")))])],1),e(d["a"],{staticClass:"my-4 my-sm-12 mx-auto",attrs:{color:"_light_grey"}},[e(m["c"],[e(qe["a"],{ref:"form",attrs:{"lazy-validation":""}},[e(vt["a"],{attrs:{label:t.$t("replyMailbox"),rules:t.rules,required:""},model:{value:t.mail.replyMailbox,callback:function(e){t.$set(t.mail,"replyMailbox",e)},expression:"mail.replyMailbox"}}),e(bt["a"],{attrs:{items:t.serviceItem,label:t.$t("serviceType"),"item-text":"label","item-value":"value",rules:t.rules,required:""},model:{value:t.mail.service,callback:function(e){t.$set(t.mail,"service",e)},expression:"mail.service"}}),t.isReturnRequest?[e(bt["a"],{attrs:{items:t.deviceItem,label:t.$t("deviceName"),"item-text":"label","item-value":"value",rules:t.rules,required:""},model:{value:t.mail.deviceId,callback:function(e){t.$set(t.mail,"deviceId",e)},expression:"mail.deviceId"}}),e(bt["a"],{attrs:{items:t.appItem,label:t.$t("application"),"item-text":"label","item-value":"value",rules:t.rules,hint:t.appHint,required:"",suffix:t.appHint},model:{value:t.mail.appId,callback:function(e){t.$set(t.mail,"appId",e)},expression:"mail.appId"}})]:[e(bt["a"],{attrs:{items:t.categoryItem,label:t.$t("questionType"),"item-text":"label","item-value":"value",rules:t.rules,required:""},model:{value:t.mail.category,callback:function(e){t.$set(t.mail,"category",e)},expression:"mail.category"}}),e(vt["a"],{attrs:{label:t.$t("mailSubject"),rules:t.rules,required:""},model:{value:t.mail.subject,callback:function(e){t.$set(t.mail,"subject",e)},expression:"mail.subject"}})]],2),e("div",[t._v(t._s(t.isReturnRequest?t.$t("mailReason"):t.$t("mailContent")))]),e("div",{staticClass:"mb-8"},[e("quillEditor",{staticStyle:{height:"300px","font-size":"20px"},attrs:{options:t.editorOption},model:{value:t.mail.question,callback:function(e){t.$set(t.mail,"question",e)},expression:"mail.question"}})],1),e(es["a"],{attrs:{chips:"",multiple:"",accept:"image/*",label:t.$t("attachPic")},model:{value:t.attachPic,callback:function(e){t.attachPic=e},expression:"attachPic"}})],1),e(m["a"],[e(T["a"]),e(h["a"],{attrs:{color:"_blue",outlined:"",text:""},on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("back")))]),e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(e){return t.confirmSend()}}},[t._v(t._s(t.$t("submit")))])],1)],1),e(b["a"],{attrs:{"max-width":"800"},scopedSlots:t._u([{key:"default",fn:function(s){return[e(d["a"],[e(Ba["a"],{attrs:{color:"_blue",dark:"",dense:""}},[t._v(t._s(t.$t("track")))]),e(m["c"],{staticClass:"mt-3"},[e(ua["a"],{attrs:{dense:"","fixed-header":"",height:"300px"},scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",[e("tr",[e("th",{staticClass:"text-left"},[t._v("ID")]),e("th",{staticClass:"text-left"},[t._v(t._s(t.$t("deviceName")))]),e("th",{staticClass:"text-left"},[t._v(t._s(t.$t("application")))]),e("th",{staticClass:"text-left"},[t._v(t._s(t.$t("refundStatus")))])])]),e("tbody",t._l(t.returnList,(function(s){return e("tr",{key:s.id},[e("td",[t._v(t._s(s.id))]),e("td",[t._v(t._s(s.deviceName))]),e("td",[t._v(t._s(s.appName))]),e("td",[t._v(t._s(s.refundStatusName))])])})),0)]},proxy:!0}],null,!0)})],1),e(m["a"],{staticClass:"justify-end"},[e(h["a"],{staticClass:"white--text",attrs:{color:"_blue"},on:{click:function(t){s.value=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)]}}]),model:{value:t.showReturnDialog,callback:function(e){t.showReturnDialog=e},expression:"showReturnDialog"}}),e("Dialog",{attrs:{isShow:t.confirmDialog,title:t.dialogText,msg:"confirmMsg",verbMsg:t.dialogText},on:{confirm:function(e){return t.sendMail()},cancel:function(e){t.confirmDialog=!1}}})],1)},Ha=[],Fa=(s("a753"),s("8096"),s("14e1"),s("953d")),Va={send(t){return new Promise((e,s)=>{X["a"].post("API","/awsSes",{body:t}).then(t=>e(t)).catch(t=>s(t))})},serviceAutoReply(t){return new Promise((e,s)=>{X["a"].post("API","/customerService/autoReply",{body:t}).then(t=>e(t)).catch(t=>s(t))})}},Wa={name:"CustomerService",data:()=>({mail:{replyMailbox:"",question:""},editorOption:{modules:{toolbar:!1},formats:["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block","formula"]},attachPic:[],deviceItem:[],returnList:[],unsolvedList:[],showReturnDialog:!1,confirmDialog:!1,dialogText:"submit",isUpdate:!1}),components:{quillEditor:Fa["quillEditor"],Dialog:ms},mounted(){this.initTooltips(),this.initData()},beforeUpdate(){this.userAttribute.email&&!this.isUpdate&&(this.initData(),this.isUpdate=!0)},computed:{...Object(L["c"])("authenticate",["isSignIn","userAttribute"]),...Object(L["b"])("dbTable",["productList","permissionId"]),...Object(L["b"])("locale",["locale"]),isReturnRequest(){return"returnRequest"===this.mail.service},serviceItem(){const t=["advisory"];return this.isSignIn&&t.push("returnRequest"),t.map(t=>({label:this.$t(t),value:t}))},categoryItem(){const t=["Account","Bill","Refund","Discount","AppUsage","Platform","Industry"];return this.isPermit("launch")&&(t.push("Launch"),t.push("Income")),(this.isPermit("audit")||this.isPermit("launch"))&&t.push("Audit"),this.isPermit("shopInShop")&&(t.push("ShopInShop"),t.push("Publisher")),this.isPermit("download")&&t.push("Other"),t.map(t=>({label:this.$t("qa"+t),value:t}))},appItem(){const t=[];if(!this.mail.deviceId)return t;const e=Object.keys(this.userAttribute.ownApp[this.mail.deviceId]);return e.forEach(e=>{const s=this.unsolvedList.findIndex(t=>t.deviceId===this.mail.deviceId&&t.appId===e);if(-1===s){const s=this.productList.find(t=>t.id===e);void 0!==s&&t.push({label:s.name,value:s.id})}}),t},purchaseTime(){return this.mail.deviceId&&this.mail.appId?this.userAttribute.ownApp[this.mail.deviceId][this.mail.appId]:""},appHint(){if(!this.mail.appId)return"";if("Invalid Date"===new Date(this.purchaseTime).toDateString())return this.$t("invalid");let t="errProbation";return t=this.isProbation()?"allowReturn":this.isSubscribe()?"allowUnsubscribe":"errProbation",`${this.$t("purchaseDate")}:${new Date(this.purchaseTime).toDateString()} (${this.$t(t)})`},rules(){return[t=>!!t||this.$t("require")]}},methods:{isPermit(t){return!!this.isSignIn&&(!!Object.keys(this.userAttribute).length&&-1!==Object.keys(this.userAttribute.policy).findIndex(e=>e===this.permissionId(t)))},isSubscribe(){if(!this.mail.appId)return!1;const t=this.productList.find(t=>t.id===this.mail.appId);return"1"===t.chargeTypeId},isProbation(){const t=new Date;return t.setDate(t.getDate()-15),t.setHours(0,0,0,0),console.log(t.toLocaleString()),console.log(new Date(this.purchaseTime).toLocaleString()),!(this.purchaseTime{ns.upload(`public/support/${t.id}/Q_${e.name}`,e),t.question+=`
${e.name}`}),this.isReturnRequest&&!this.isProbation()&&this.isSubscribe()){const e={email:this.userAttribute.email,appId:this.mail.appId,deviceId:this.mail.deviceId};e.appName=this.appItem.find(t=>t.value===this.mail.appId).label,this.$store.commit("loading/start",{text:"working"}),Bt.uninstall(e).then(t=>{console.log(t),this.$store.commit("loading/stop"),this.$store.commit("authenticate/setUserAttribute",t.data.userInfo),this.$store.commit("notify/set",{type:"success",msg:[this.$t("unsubscribe")," ",this.$t("success")]})}).catch(()=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[this.$t("unsubscribe")," ",this.$t("fail")]})}),t.status="unsubscribe",t.log.push({responseTime:t.id,responder:"auto-reply",action:"unsubscribe"}),this.unsubscribeAutoReply(t),this.mail={replyMailbox:this.userAttribute.email,question:""}}else this.sendAutoReply(t);this.attachPic=[],this.$store.commit("loading/start",{text:"working"}),Z["a"].create("support",t).then(t=>{console.log(t),this.updateSupport(),this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"success",msg:[this.$t("submit")," ",this.$t("success")]})}).catch(t=>{this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[t]})})},unsubscribeAutoReply(t){const e={toAddr:[this.mail.replyMailbox],id:t.id,service:"unsubscribe",appName:this.appItem.find(t=>t.value===this.mail.appId).label,deviceName:this.deviceItem.find(e=>e.value===t.deviceId).label,locale:this.locale};console.log(e),this.$store.commit("loading/start"),Va.serviceAutoReply({mail:e}).then(()=>{this.$store.commit("loading/stop"),this.mail={replyMailbox:this.userAttribute.email,question:""}})},sendAutoReply(t){const e={toAddr:[this.mail.replyMailbox],id:t.id,type:t.category,category:this.$t("qa"+t.category),service:t.service,subject:t.subject,locale:this.locale};this.isReturnRequest?(e.appName=this.appItem.find(t=>t.value===this.mail.appId).label,e.deviceName=this.deviceItem.find(t=>t.value===this.mail.deviceId).label,e.category=this.$t(""+t.service),e.content=`${this.$t("mailReason")}:${t.question}`):e.content=`${this.$t("mailContent")}:${t.question}`,console.log(e),this.$store.commit("loading/start"),Va.serviceAutoReply({mail:e}).then(()=>{this.$store.commit("loading/stop"),this.mail={replyMailbox:this.userAttribute.email,question:""}})},track(){this.showReturnDialog=!0,this.returnList=[],this.userAttribute.email&&Z["a"].query("support",{email:this.userAttribute.email},{service:"returnRequest"}).then(t=>{let e={};t.data.forEach(t=>{e={...t};const s=this.productList.find(e=>e.id===t.appId);if(e.appName=s.name,e.deviceName=this.deviceItem.find(e=>e.value===t.deviceId).label,"unsolved"===t.status)e.refundStatusName=this.$t("pending");else if("unreturned"===t.status)e.refundStatusName=this.$t("noRefund");else if("returning"===t.status||"returned"===t.status){let s="0";switch(t.refundStatus){default:case"0":s=this.$t("pending");break;case"1":s=this.$t("refundProcessing");break;case"2":s=this.$t("refundComplete"),s+=`(${t.refundId})`;break;case"3":case"4":case"5":s=this.$t("cancelDeal"),s+=`(${t.refundStatus})`;break;case"99":s=this.$t("refundException");break;case"98":s=this.$t("systemException");break}console.log(s),e.refundStatusName=s}this.returnList.push(e)})})},async updateSupport(){this.unsolvedList=await Z["a"].scan("support",{email:this.userAttribute.email,service:"returnRequest",status:"unsolved"},["deviceId","appId"])},initData(){this.updateSupport(),Z["a"].scan("install",{email:this.userAttribute.email},["createTime","deviceId","deviceName"]).then(t=>{t.sort((t,e)=>e.createTime-t.createTime),this.userAttribute.ownApp&&Object.keys(this.userAttribute.ownApp).forEach(e=>{const s=t.find(t=>t.deviceId===e);this.deviceItem.push({label:s.deviceName,value:e})})}).catch(()=>{}),this.mail.replyMailbox=this.userAttribute.email},initTooltips(){document.getElementsByClassName("ql-editor")[0].dataset.placeholder=this.$t("hintContent")+this.$t("insertImage")}}},Qa=Wa,Ka=(s("5399"),Object(E["a"])(Qa,za,Ha,!1,null,null,null)),Ya=Ka.exports,Ga=function(){var t=this,e=t._self._c;return e(g["a"],{staticClass:"mx-8 ma-sm-12",attrs:{fluid:""}},[e("div",{staticClass:"text-h5 font-weight-black _light_grey--text"},[t._v(t._s(t.$t("chatService")))]),e(d["a"],{staticClass:"my-4 my-sm-12 mx-auto pa-10 _light_grey",attrs:{height:"580"}},[e(d["a"],{staticClass:"_light_grey",attrs:{height:"450"}},[e("div",{ref:"cardContent",staticClass:"scroll-card"},[t._l(t.message,(function(t,s){return[e("Chat",{key:s,attrs:{data:t}})]}))],2)]),e(vt["a"],{staticClass:"my-4 transparent",attrs:{outlined:"",label:t.$t("sendChat"),"append-icon":"mdi-arrow-up-bold-circle-outline"},on:{"click:append":function(e){return t.sendMsg()},keydown:t.handleKeydown},model:{value:t.question,callback:function(e){t.question=e},expression:"question"}})],1),e(gt["a"],{attrs:{justify:"end"}},[e(j["a"],{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(h["a"],t._g(t._b({attrs:{color:"_blue","exact-pathicon":""},on:{click:function(e){return t.changePageHandler("customerService")}}},"v-btn",a,!1),s),[e(y["a"],{attrs:{large:"",color:"_light_grey"}},[t._v("mdi-face-agent")])],1)]}}])},[e("span",[t._v(t._s(t.$t("customerService")))])])],1)],1)},Ja=[],Za=function(){var t=this,e=t._self._c;return e(d["a"],{staticClass:"transparent pa-5",attrs:{flat:""}},[e(gt["a"],{attrs:{dense:"",align:"center"}},[e(f["a"],{attrs:{cols:"1",align:"center"}},[e(u["a"],{attrs:{color:"_blue",size:"40"}},[t.isAvatar?e("img",{attrs:{src:t.data.avatarPath,alt:"picture"}}):e("span",{staticClass:"_light_grey--text headline"},[t._v(t._s(t.photoWord))])])],1),e(f["a"],[e("div",{class:t.data.color+"--text"},[t._v(t._s(t.data.name))])])],1),e(gt["a"],{attrs:{dense:""}},[e(f["a"],{attrs:{cols:"1"}}),e(f["a"],[e(d["a"],{staticClass:"mx-auto",attrs:{cols:"11",color:t.data.color}},[e(m["c"],{staticClass:"_light_grey--text pa-2 d-flex flex-column",style:{whiteSpace:"pre-line"}},[e("span",{staticClass:"align-self-start text-subtitle-1"},[t._v(t._s(t.data.text))]),e("span",{staticClass:"text-caption font-italic align-self-end"},[t._v(t._s(new Date(t.data.time).toLocaleString()))])])],1)],1)],1)],1)},Xa=[],ti={name:"CardBig",props:{data:{type:Object,required:!0}},components:{},data:()=>({discount:{}}),computed:{isAvatar(){return""!==this.data.avatarPath},photoWord(){return this.data.name[0]}},created(){},methods:{}},ei=ti,si=Object(E["a"])(ei,Za,Xa,!1,null,null,null),ai=si.exports,ii={name:"ChatService",data:()=>({question:"",message:[],chatUser:{}}),components:{Chat:ai},created(){Z["a"].read("chatService","id",this.chatUuid).then(t=>{this.message=void 0===t?[]:t.chat,this.scrollToBottom()})},computed:{...Object(L["c"])("authenticate",["userAttribute","chatUuid"]),avatarPath(){return Object.prototype.hasOwnProperty.call(this.userAttribute,"avatar")?"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/public/avatar/"+this.userAttribute.avatar.path:""},imacloudPath(){return"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/appstore/favicon.ico"}},methods:{async sendMsg(){if(""===this.question)return;const t={name:this.userAttribute.name,avatarPath:this.avatarPath,text:this.question,time:(new Date).getTime(),color:"_blue"};this.message.push(t);try{this.$store.commit("loading/start",{text:"working"});const t=await at()({url:`https://www.customer-ervice-robot.com/apps/${this.chatUuid}/member`,method:"POST",data:{query:this.question}});if(console.log(t.data.data),"fail"===t.data.code)return this.$store.commit("loading/stop"),void this.$store.commit("notify/set",{type:"alarm",msg:[t.data.message]});const e={name:this.$t("imacloud")+this.$t("chatService"),avatarPath:this.imacloudPath,text:t.data.data.content,time:(new Date).getTime(),color:"_deep_blue"};this.message.push(e);const s={id:this.chatUuid.toString(),email:this.userAttribute.email,chat:this.message,updateTime:(new Date).getTime()},a=await Z["a"].create("chatService",s);console.log(a),this.$store.commit("loading/stop"),this.question=""}catch(e){this.$store.commit("loading/stop"),this.$store.commit("notify/set",{type:"alarm",msg:[e]})}this.scrollToBottom()},handleKeydown(t){"Enter"===t.key&&this.sendMsg()},scrollToBottom(){this.$nextTick(()=>{const t=this.$refs.cardContent;t.scrollTop=t.scrollHeight})},changePageHandler(t,e={}){this.$router.push({name:t,params:e})}}},ri=ii,oi=(s("9770"),Object(E["a"])(ri,Ga,Ja,!1,null,null,null)),ni=oi.exports;a["a"].use(ft["a"]);const ci=[{path:"/",component:kt,children:[{path:"/",name:"main",component:Yt},{path:"/popularRankings",name:"popularRankings",component:Yt},{path:"/newProducts",name:"newProducts",component:Yt},{path:"/filterList",name:"filterList",component:ee,props:!0},{path:"/custom1",name:"custom1",component:me,props:!0},{path:"/custom2",name:"custom2",component:$e,props:!0},{path:"/custom3",name:"custom3",component:Ne,props:!0}]},{path:"/account",component:ts,name:"account",props:!0,children:[{path:"signIn",name:"signIn",component:ts},{path:"modifyPassword",name:"modifyPassword",component:ts},{path:"firstSignIn",name:"firstSignIn",component:ts},{path:"forgotPassword",name:"forgotPassword",component:ts},{path:"signUp",name:"signUp",component:ts,props:!0}]},{path:"/account/modifyData",name:"modifyData",component:bs},{path:"/cardDetail",name:"cardDetail",component:sa,props:!0},{path:"/serviceSite",name:"serviceSite",component:la},{path:"/downloadZone",name:"downloadZone",component:wa},{path:"/accountingInfo",name:"accountingInfo",component:Ia,meta:{requiresAuth:["usage"]}},{path:"/deployApp",name:"deployApp",component:Da,meta:{requiresAuth:["usage"]}},{path:"/statistics",name:"statistics",component:Ra,meta:{requiresAuth:["basicStatistics","basicQuery"]}},{path:"/customerService",name:"customerService",component:Ya},{path:"/chatService",name:"chatService",component:ni,meta:{requiresAuth:["usage"]}},{path:"/error",name:"Error",component:()=>s.e("chunk-2d22996d").then(s.bind(null,"dda8"))},{path:"*",redirect:"/error"}],li=new ft["a"]({base:"",routes:ci});li.beforeEach((t,e,s)=>{if(!t.meta.requiresAuth)return void s();const a=o["a"].state.authenticate.isSignIn?Object.keys(o["a"].state.authenticate.userAttribute.policy):[];let i=!1,r={};t.meta.requiresAuth.forEach(t=>{r=o["a"].state.dbTable.permissionList.find(e=>e.name===t),r&&-1!==a.findIndex(t=>t===r.id)&&(i=!0)}),i?s():s({name:"main"})});var ui=li;i["default"].configure({Auth:{region:"ap-northeast-1",userPoolId:"ap-northeast-1_QrwX8Oq2v",userPoolWebClientId:"4316nbcmmgbq9b8ud729m2gekk",mandatorySignIn:!0,authenticationFlowType:"USER_PASSWORD_AUTH"},API:{endpoints:[{name:"API",endpoint:"https://b5qmgoq4lk.execute-api.ap-northeast-1.amazonaws.com/Prod"},{name:"UserAPI",endpoint:"https://y61yfoob1k.execute-api.ap-northeast-1.amazonaws.com/Prod/users"},{name:"EcPayAPI",endpoint:"https://hs3cdi3qpe.execute-api.ap-northeast-1.amazonaws.com/prod"}]}}),a["a"].config.productionTip=!1,new a["a"]({router:ui,store:o["a"],vuetify:n["a"],i18n:r["a"],render:t=>t(pt)}).$mount("#app")},"2e39":function(t,e,s){t.exports=s.p+"img/網站地圖.a6ed75c3.png"},3440:function(t,e,s){"use strict";s("6ffb")},"3bbd":function(t,e,s){"use strict";s("598d")},"401e":function(t,e,s){t.exports=s.p+"img/Terms of Service2.14a898a6.jpg"},"416d":function(t,e,s){t.exports=s.p+"img/APP上架流程.6db6bc30.png"},"419c":function(t,e,s){"use strict";s("0074")},"44f7":function(t,e,s){t.exports=s.p+"img/About machinery cloud platform.0eec2344.png"},4624:function(t,e,s){t.exports=s.p+"img/moea.176fda20.png"},4678:function(t,e,s){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var e=r(t);return s(e)}function r(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=r,t.exports=i,i.id="4678"},"4a37":function(t,e,s){t.exports=s.p+"img/Terms of Service3.13583cac.jpg"},"4be3":function(t,e,s){},"4e62":function(t,e,s){t.exports=s.p+"img/teema.b3562124.jpg"},5:function(t,e,s){t.exports=s("2b3a")},5399:function(t,e,s){"use strict";s("8f95")},"584b":function(t,e,s){t.exports=s.p+"img/Marketplace site map.dcec60e3.png"},"598d":function(t,e,s){},"5af7":function(t,e,s){t.exports=s.p+"img/Shop-in-shop application form_1.da06b7ea.jpg"},"5b4d":function(t,e,s){t.exports=s.p+"img/placeholder.12530fda.png"},6:function(t,e){},"62bb":function(t,e,s){"use strict";s("4be3")},"64e9":function(t,e,s){"use strict";s("8317")},"6cde":function(t,e,s){t.exports=s.p+"img/服務條款7.7e2bc49f.png"},"6ffb":function(t,e,s){},7:function(t,e){},7561:function(t,e,s){},8:function(t,e){},8317:function(t,e,s){},8470:function(t,e,s){"use strict";s("bf0c")},"8f95":function(t,e,s){},9:function(t,e){},"93fc":function(t,e,s){t.exports=s.p+"img/服務條款6.4f1ee1b6.png"},9770:function(t,e,s){"use strict";s("9f67")},9793:function(t,e,s){t.exports=s.p+"img/impps.1169c36f.jpg"},"98e9":function(t,e,s){t.exports=s.p+"img/符合機械雲標準Runtime APP型式.f7eced85.png"},"9f67":function(t,e,s){},a86c:function(t,e,s){t.exports=s.p+"img/iii.a335c561.png"},b47f:function(t,e,s){t.exports=s.p+"img/pmc.b8a8be15.png"},bccf:function(t,e,s){t.exports=s.p+"img/智慧機械雲服務生態系統.f4630f15.png"},bf0c:function(t,e,s){},c425:function(t,e,s){"use strict";s("d769")},ccbd:function(t,e,s){t.exports=s.p+"img/mirdc.9c2748cd.png"},d3de:function(t,e,s){t.exports=s.p+"img/SMB供應商、SI與終端使用者的關係流程.a53f96a8.png"},d63f:function(t,e,s){t.exports=s.p+"img/服務條款1.2919f912.png"},d769:function(t,e,s){},e5fd:function(t,e,s){t.exports=s.p+"img/tami.d6f9f2f0.gif"},e691:function(t,e,s){t.exports=s.p+"img/機械雲平台使用流程.4d37820c.png"},e76c:function(t,e,s){t.exports=s.p+"img/服務條款3.240cb72a.png"},e9c6:function(t,e,s){"use strict";s("29b8")},e9e1:function(t,e,s){t.exports=s.p+"img/服務條款5.06d8b4ce.png"},ed9c:function(t,e,s){"use strict";s("7561")},eee8:function(t,e,s){t.exports=s.p+"img/服務條款4.3a8f4f70.png"},fac5:function(t,e,s){t.exports=s.p+"img/機械雲運作架構圖.1019abd1.png"},fb4d:function(t,e,s){},fe52:function(t,e,s){t.exports=s.p+"img/服務條款8.f860ed40.png"},feeb:function(t,e,s){t.exports=s.p+"img/machinery cloud system diagram.71be0d57.png"}}); //# sourceMappingURL=portal.6accd9a9.js.map