1import{f as t,o as a}from"./vue-vendor.-5bc5rh4.js";import{u as o}from"./useStore.BI-7lv5P.js";import{a as s}from"./utils-vendor.BxwSdHnB.js";import{n}from"./_plugin-vue2_normalizer.1gAS2wYV.js";const e=n({__name:"modal-login",setup(n){const e=o(),l=VueConfig.cdn_url,i=t({currentPath:"",facebookUrl:"",pageType:"",buttonActive:"enabled",modalStatus:""}),c=()=>{i.buttonActive="disabled",i.modalStatus="loading"},r=()=>{i.buttonActive="enabled",i.modalStatus=""},d=()=>{let t="item";"/estimate/search"===i.currentPath&&(t="scan",u("/wait-screen?windowType=close")),i.pageType=t},u=async(t=null)=>{try{return await s.post("/api/account/setAuthReferer",{returnPath:t}),!0}catch(a){return r(),!1}};return a((()=>{i.currentPath=location.pathname,d()})),{__sfc:!0,store:e,cdnUrl:l,localState:i,loadingInit:c,completeInit:r,getPageType:d,setAuthReferer:u,modalLogin:async t=>{const a=t;if(c(),"scan"===i.pageType){if("amazon"===a)var o=window.open("/wait-screen?windowType=amazon","_blank");else o=window.open("/wait-screen","_blank");o.addEventListener("load",(async function(t){o.location.href=a;const s=setInterval((()=>{o.closed&&(clearInterval(s),e.dispatch("loginStatusCheck"))}),100)}),!1)}else await u(),location.href="amazon"===a?"/wait-screen?windowType=amazon":a}}}},(function(){var t=this,a=t._self._c,o=t._self._setupProxy;return a("transition",{attrs:{name:"modalLogin"}},[a("div",{staticClass:"login-modal",class:o.localState.modalStatus},[t.$slots.closeButton?[t._t("closeButton")]:a("div",{staticClass:"modal-close-button",on:{click:function(a){return t.$parent.close()}}},[a("span")]),a("div",{staticClass:"modal-header"},[a("img",{attrs:{src:`${o.cdnUrl}/assets/images/common/logos/logo.svg`}})]),a("div",{staticClass:"modal-body"},[a("p",[t._v("ã©ã¤ãã©ãªã«æ¬ã追å ããã«ã¯")]),a("p",[t._v("ãã°ã¤ã³ããã¦ããã試ããã ããã")])]),a("div",{staticClass:"modal-footer"},[a("p",{staticClass:"signup"},[a("a",{class:o.localState.buttonActive,on:{click:function(t){return o.modalLogin("/login")}}},[t._v("ãã°ã¤ã³ç»é¢ã¸ç§»å")])]),a("p",{staticClass:"signup"},[a("a",{attrs:{href:"/signup",target:"_blank"}},[t._v("åãã¦ãå©ç¨ã®æ¹ï¼æ°è¦ç»é²ï¼")])]),a("div",{staticClass:"other-site-id"},[a("ul",[a("li",{staticClass:"sns-id amazon-id"},[a("a",{class:o.localState.buttonActive,on:{click:function(t){return o.modalLogin("amazon")}}},[t._v("Amazon")])]),a("li",{staticClass:"sns-id google-id"},[a("a",{class:o.localState.buttonActive,on:{click:function(t){return o.modalLogin("/snslogin/google")}}},[t._v("Google")])]),a("li",{staticClass:"sns-id facebook-id"},[a("a",{class:o.localState.buttonActive,on:{click:function(t){return o.modalLogin("/snslogin/facebook")}}},[t._v("Facebook")])])])])]),a("div",{staticClass:"loading-wrapper"},[a("span",{staticClass:"load-spinner"})])],2)])}),[],!1,null,"c4b34987").exports;export{e as M}; 2//# sourceMappingURL=modal-login.CnxXX-9k.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.