my-header-yichong 3.7.3 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/my-header.js +12 -11
- package/my-header.umd.cjs +3 -3
- package/package.json +1 -1
package/my-header.js
CHANGED
|
@@ -8316,7 +8316,7 @@ function Ev(e, t, n, o, r, s) {
|
|
|
8316
8316
|
</div> `)
|
|
8317
8317
|
]);
|
|
8318
8318
|
}
|
|
8319
|
-
const Hl = /* @__PURE__ */ Ft(Z0, [["render", Ev], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/sen/Desktop
|
|
8319
|
+
const Hl = /* @__PURE__ */ Ft(Z0, [["render", Ev], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Login1.vue"]]);
|
|
8320
8320
|
const Sv = {
|
|
8321
8321
|
data() {
|
|
8322
8322
|
return {};
|
|
@@ -8372,7 +8372,7 @@ function Av(e, t, n, o, r, s) {
|
|
|
8372
8372
|
])
|
|
8373
8373
|
]);
|
|
8374
8374
|
}
|
|
8375
|
-
const $v = /* @__PURE__ */ Ft(Sv, [["render", Av], ["__scopeId", "data-v-47199182"], ["__file", "/Users/sen/Desktop
|
|
8375
|
+
const $v = /* @__PURE__ */ Ft(Sv, [["render", Av], ["__scopeId", "data-v-47199182"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Login.vue"]]);
|
|
8376
8376
|
/*!
|
|
8377
8377
|
* pinia v2.1.4
|
|
8378
8378
|
* (c) 2023 Eduardo San Martin Morote
|
|
@@ -8777,7 +8777,8 @@ const Dv = {
|
|
|
8777
8777
|
return {
|
|
8778
8778
|
path: Vl,
|
|
8779
8779
|
showCancelDialog: !1,
|
|
8780
|
-
showStripeConfirmDialog: !1
|
|
8780
|
+
showStripeConfirmDialog: !1,
|
|
8781
|
+
cancelledLocally: !1
|
|
8781
8782
|
};
|
|
8782
8783
|
},
|
|
8783
8784
|
methods: {
|
|
@@ -8819,7 +8820,7 @@ const Dv = {
|
|
|
8819
8820
|
document.body.classList.remove("el-loading-parent--relative");
|
|
8820
8821
|
} catch {
|
|
8821
8822
|
}
|
|
8822
|
-
ot({
|
|
8823
|
+
this.cancelledLocally = !0, ot({
|
|
8823
8824
|
message: "Your subscription will be canceled at the end of the current billing period",
|
|
8824
8825
|
type: "success",
|
|
8825
8826
|
duration: 3e3
|
|
@@ -9178,12 +9179,12 @@ function g1(e, t, n, o, r, s) {
|
|
|
9178
9179
|
href: r.path + "/pricing",
|
|
9179
9180
|
target: "_self"
|
|
9180
9181
|
}, a1, 8, r1)),
|
|
9181
|
-
n.user.is_subscribed && ((d = (u = n.user) == null ? void 0 : u.detail) != null && d.stripe_plan) && !((g = (f = n.user) == null ? void 0 : f.detail) != null && g.cancelled) ? (T(), R("button", {
|
|
9182
|
+
n.user.is_subscribed && ((d = (u = n.user) == null ? void 0 : u.detail) != null && d.stripe_plan) && !((g = (f = n.user) == null ? void 0 : f.detail) != null && g.cancelled) && !r.cancelledLocally ? (T(), R("button", {
|
|
9182
9183
|
key: 1,
|
|
9183
9184
|
class: "cancel_btn text-md rounded-xl py-2",
|
|
9184
9185
|
onClick: t[8] || (t[8] = (...v) => s.handleCancelSubscription && s.handleCancelSubscription(...v))
|
|
9185
9186
|
}, l1)) : L("v-if", !0),
|
|
9186
|
-
n.user.is_subscribed && ((h = (p = n.user) == null ? void 0 : p.detail) != null && h.cancelled) ? (T(), R("span", c1, " Cancelled ")) : L("v-if", !0)
|
|
9187
|
+
n.user.is_subscribed && ((h = (p = n.user) == null ? void 0 : p.detail) != null && h.cancelled || r.cancelledLocally) ? (T(), R("span", c1, " Cancelled ")) : L("v-if", !0)
|
|
9187
9188
|
]),
|
|
9188
9189
|
m("a", {
|
|
9189
9190
|
href: r.path + "/dashboard",
|
|
@@ -9199,7 +9200,7 @@ function g1(e, t, n, o, r, s) {
|
|
|
9199
9200
|
/* STABLE_FRAGMENT */
|
|
9200
9201
|
);
|
|
9201
9202
|
}
|
|
9202
|
-
const Na = /* @__PURE__ */ Ft(Dv, [["render", g1], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/sen/Desktop
|
|
9203
|
+
const Na = /* @__PURE__ */ Ft(Dv, [["render", g1], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]);
|
|
9203
9204
|
const v1 = {
|
|
9204
9205
|
props: ["content", "top"]
|
|
9205
9206
|
}, b1 = (e) => (tn("data-v-7b6def48"), e = e(), nn(), e), y1 = /* @__PURE__ */ b1(() => /* @__PURE__ */ m(
|
|
@@ -9244,7 +9245,7 @@ function _1(e, t, n, o, r, s) {
|
|
|
9244
9245
|
/* STYLE */
|
|
9245
9246
|
);
|
|
9246
9247
|
}
|
|
9247
|
-
const w1 = /* @__PURE__ */ Ft(v1, [["render", _1], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/sen/Desktop
|
|
9248
|
+
const w1 = /* @__PURE__ */ Ft(v1, [["render", _1], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Toast.vue"]]);
|
|
9248
9249
|
const x1 = { class: "background-cover" }, E1 = /* @__PURE__ */ m(
|
|
9249
9250
|
"div",
|
|
9250
9251
|
{ class: "invite-success" },
|
|
@@ -9329,7 +9330,7 @@ const x1 = { class: "background-cover" }, E1 = /* @__PURE__ */ m(
|
|
|
9329
9330
|
])
|
|
9330
9331
|
]));
|
|
9331
9332
|
}
|
|
9332
|
-
}, $1 = /* @__PURE__ */ Ft(A1, [["__file", "/Users/sen/Desktop
|
|
9333
|
+
}, $1 = /* @__PURE__ */ Ft(A1, [["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);
|
|
9333
9334
|
function M1(e, t) {
|
|
9334
9335
|
return T(), R("svg", {
|
|
9335
9336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9793,7 +9794,7 @@ const Rn = (e) => (tn("data-v-b9e2cd3f"), e = e(), nn(), e), I1 = /* @__PURE__ *
|
|
|
9793
9794
|
});
|
|
9794
9795
|
};
|
|
9795
9796
|
}
|
|
9796
|
-
}, nb = /* @__PURE__ */ Ft(tb, [["__scopeId", "data-v-b9e2cd3f"], ["__file", "/Users/sen/Desktop
|
|
9797
|
+
}, nb = /* @__PURE__ */ Ft(tb, [["__scopeId", "data-v-b9e2cd3f"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/MobileMoreApps.vue"]]);
|
|
9797
9798
|
const ze = (e) => (tn("data-v-c970699f"), e = e(), nn(), e), ob = {
|
|
9798
9799
|
class: "flex items-center justify-between py-6 lg:px-0 px-6",
|
|
9799
9800
|
"aria-label": "Global"
|
|
@@ -10915,7 +10916,7 @@ const ze = (e) => (tn("data-v-c970699f"), e = e(), nn(), e), ob = {
|
|
|
10915
10916
|
/* STABLE_FRAGMENT */
|
|
10916
10917
|
));
|
|
10917
10918
|
}
|
|
10918
|
-
}, hy = /* @__PURE__ */ Ft(fy, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/sen/Desktop
|
|
10919
|
+
}, hy = /* @__PURE__ */ Ft(fy, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Header.vue"]]), yy = {
|
|
10919
10920
|
install(e) {
|
|
10920
10921
|
e.component("my-header", hy);
|
|
10921
10922
|
}
|
package/my-header.umd.cjs
CHANGED
|
@@ -17,7 +17,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
17
17
|
</div> `),n.createElementVNode("div",Bg,[Vg,s.lastLoginType=="google_login"&&!s.isSignup?(n.openBlock(),n.createElementBlock("div",$g,"Last Login")):n.createCommentVNode("v-if",!0),s.lastSignupType=="google_signup"&&s.isSignup?(n.openBlock(),n.createElementBlock("div",Ag,"Last Sign up")):n.createCommentVNode("v-if",!0)]),n.createCommentVNode(' <div class="account flew-row-v-center" style="padding: 0 12px;border-radius: 4px;" @click="handleFbLogin"> '),n.createCommentVNode(` <img class="img" src="https://statics.imgkits.com/images/facebook_logo.png" alt="facebook logo" width="24" height="24" style="width: 24pxheight: 24px;margin: 8px 8px 8px 12px;">
|
|
18
18
|
<div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),n.createCommentVNode(' <svg t="1661493482810" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3146" width="24" height="24"><path d="M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658" fill="#537BBC" p-id="3147"></path><path d="M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z" fill="#FFFFFF" p-id="3148"></path></svg> '),n.createCommentVNode(' <div style="flex: 1;margin-left: 5px;font-size: 14px;font-weight: 500;">Login With Facebook</div> '),n.createCommentVNode(" </div> ")]),n.createElementVNode("div",Mg,[s.lastLoginType=="email_login"&&!s.isSignup?(n.openBlock(),n.createElementBlock("div",Ig,"Last Login")):n.createCommentVNode("v-if",!0),s.lastSignupType=="email_signup"&&s.isSignup?(n.openBlock(),n.createElementBlock("div",Rg,"Last Sign up")):n.createCommentVNode("v-if",!0),Lg,n.createElementVNode("div",null,[n.createElementVNode("div",Fg,[Dg,n.withDirectives(n.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[2]||(t[2]=i=>s.email=i),onInput:t[3]||(t[3]=(...i)=>a.handleInput&&a.handleInput(...i)),onBlur:t[4]||(t[4]=(...i)=>a.handleInputBlur&&a.handleInputBlur(...i))},null,544),[[n.vModelText,s.email]]),s.emailErrorHelp?(n.openBlock(),n.createElementBlock("p",jg,n.toDisplayString(s.emailErrorHelp),1)):n.createCommentVNode("v-if",!0)]),s.isSignup?(n.openBlock(),n.createElementBlock("div",Hg,[zg,n.withDirectives(n.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[5]||(t[5]=i=>s.name=i)},null,512),[[n.vModelText,s.name]])])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",Ug,[qg,n.createCommentVNode(' <input id="user_password" type="password" v-model="password" @input="handleInput"> '),n.withDirectives(n.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[6]||(t[6]=i=>s.password=i),onInput:t[7]||(t[7]=(...i)=>a.handleInput&&a.handleInput(...i)),pattern:"^(?=.*[a-zA-Z])(?=.*\\d|.*[!@#$%^&*_])[a-zA-Z\\d!@#$%^&*_]{8,}$"},null,544),[[n.vModelText,s.password]]),s.passwordErrorHelp?(n.openBlock(),n.createElementBlock("p",Wg,[n.createTextVNode(n.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(n.openBlock(),n.createElementBlock("span",Gg,[n.createElementVNode("a",{href:s.childPath+"/user/resend-verify",target:"_blank"},"Resend email",8,Kg)])):n.createCommentVNode("v-if",!0)])):n.createCommentVNode("v-if",!0)]),s.isSignup?(n.openBlock(),n.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[8]||(t[8]=(...i)=>a.handleSignup&&a.handleSignup(...i))},"Create Your Account",8,Jg)):(n.openBlock(),n.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...i)=>a.handleLogin&&a.handleLogin(...i))},"Login",8,Zg))])]),s.isSignup?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",Xg,[n.createElementVNode("a",{href:s.childPath+"/user/password-reset",target:"_blank"},"Forgot your password?",8,Yg),n.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),n.createCommentVNode(` <div class="link">
|
|
19
19
|
By creating an account you agree to our <a href="/site/terms" style="color: #1778f2;">Terms of Use</a>
|
|
20
|
-
</div> `)])}const $i=st(Cg,[["render",Qg],["__scopeId","data-v-4682235c"],["__file","/Users/sen/Desktop
|
|
20
|
+
</div> `)])}const $i=st(Cg,[["render",Qg],["__scopeId","data-v-4682235c"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Login1.vue"]]),Zb="",e0={data(){return{}},components:{Login1:$i},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(Vh(e),localStorage.removeItem("cache_passport"),ei({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},t0=e=>(n.pushScopeId("data-v-47199182"),e=e(),n.popScopeId(),e),n0={class:"background-cover"},o0={class:"login-content"},r0=[t0(()=>n.createElementVNode("svg",{t:"1641536858080",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1477",width:"32",height:"32"},[n.createElementVNode("path",{d:"M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z","p-id":"1478",fill:"#2c2c2c"})],-1))];function s0(e,t,o,r,s,a){const i=$i;return n.openBlock(),n.createElementBlock("div",n0,[n.createElementVNode("div",o0,[n.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),n.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},r0)])])}const a0=st(e0,[["render",s0],["__scopeId","data-v-47199182"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
|
|
21
21
|
* pinia v2.1.4
|
|
22
22
|
* (c) 2023 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
@@ -26,10 +26,10 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
26
26
|
Found in store "${_.$id}".`),f&&a&&o.hydrate&&o.hydrate(_.$state,f),c=!0,u=!0,_}function u0(e,t,o){let r,s;const a=typeof t=="function";if(typeof e=="string")r=e,s=a?o:t;else if(s=e,r=e.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(l,d){const c=n.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Jt&&Jt._testing?null:l)||(c?n.inject(i0,null):null),l&&Gn(l),process.env.NODE_ENV!=="production"&&!Jt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
27
27
|
const pinia = createPinia()
|
|
28
28
|
app.use(pinia)
|
|
29
|
-
This will fail in production.`);l=Jt,l._s.has(r)||(a?hr(r,t,s,l):Li(r,s,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const u=l._s.get(r);if(process.env.NODE_ENV!=="production"&&d){const p="__hot:"+r,m=a?hr(p,t,s,l,!0):Li(p,ue({},s),l,!0);d._hotUpdate(m),delete l.state.value[p],l._s.delete(p)}if(process.env.NODE_ENV!=="production"&&pr){const p=n.getCurrentInstance();if(p&&p.proxy&&!d){const m=p.proxy,g="_pStores"in m?m._pStores:m._pStores={};g[r]=u}}return u}return i.$id=r,i}function p0(e,t){return Array.isArray(t)?t.reduce((o,r)=>(o[r]=function(...s){return e(this.$pinia)[r](...s)},o),{}):Object.keys(t).reduce((o,r)=>(o[r]=function(...s){return e(this.$pinia)[t[r]](...s)},o),{})}const f0=u0("user",{state:()=>({user:null,isShowLogin:!1,isShowToast:!1,toastContent:"",isShowInvite:!1}),actions:{getUser(e=!1){return console.log("yichong-user"),window.getUserStatusPromise=new Promise((t,o)=>{ni(e).then(({profile:r,subscription:s,team_subscription:a,drive:i,jwt:l})=>{if(l&&(window.g_app_jwt=l),r){let{free_cnt:d,is_subscribed:c,detail:u,monthly_usage_cnt:p}=s;console.log(s,"subscription"),console.log(p,"monthly_usage_cnt"),d||(d=0),u&&u.ends_at&&(c=new Date(u.ends_at)>new Date);const m=a&&a.detail||null,g=m&&!0||!1,f=c&&u.name||g&&m.name||"",h={...r,free_cnt:d,monthly_usage_cnt:p,is_subscribed:c||g,subscribedType:f,detail:u||m,team_subscription:a,isMember:!c&&a,drive:i};this.user=h,window.userStatus=h}t({profile:r,subscription:s,is_subscribed:this.user&&this.user.is_subscribed})},r=>{o(r)})})},logout(){this.user=null,window.userStatus=null},updateUser(e=!1,t,o=!1,r=20,s=null){const a=Xe.service({text:"Upgrading....",background:"rgba(0, 0, 0, 0.7)"});let i=1;const l=this.user&&this.user.free_cnt||0,d=()=>{ni(o).then(({profile:c,subscription:u,team_subscription:p,drive:m,jwt:g})=>{g&&(window.g_app_jwt=g);let{free_cnt:f,is_subscribed:h,detail:b}=u;f||(f=0),b&&b.ends_at&&(h=new Date(b.ends_at)>new Date);const y=p&&p.detail||null,k=y&&!0||!1,C=h&&b.name||k&&y.name||"";if(t=="purchase"?f>l:h||k){const S={...c,free_cnt:f,is_subscribed:h||k,subscribedType:C,detail:b||y,team_subscription:p,isMember:!h&&p,drive:m};if(this.user=S,window.userStatus=S,window.opener){const O={type:"subscribed"};ei({message:O,user:S},"subscribed:success"),window.opener.postMessage(O,process.env.NODE_ENV=="development"?"http://localhost:8080":"*")}a.close(),p&&p.quota>1?this.isShowInvite=!0:(this.isShowToast=!0,this.toastContent=t=="purchase"?"purchased credits":"upgraded to a member",setTimeout(()=>{this.isShowToast=!1;const O=ti();window.opener&&!e||O.product&&O.product=="image_translator"?window.close():O.close&&(s&&typeof s=="function"?s():window.close())},3e3))}else i>r?a.close():setTimeout(()=>{i++,d()},2e3)},c=>{a.close()})};return d(),a},showLogin(e){this.isShowLogin=e},hideInvite(e){this.isShowInvite=e}}}),Yb="",Qb="";let Fi=kt();console.log("childPath3",Fi);const m0={props:["user","from"],data(){return{path:Fi,showCancelDialog:!1,showStripeConfirmDialog:!1}},methods:{...p0(f0,["logout"]),handlePay(){console.log("user",this.user),this.user.is_subscribed||this.$emit("subscribe")},closeCancelDialog(){this.showCancelDialog=!1},closeStripeConfirmDialog(){this.showStripeConfirmDialog=!1},async confirmStripeCancellation(){var o,r,s;this.showStripeConfirmDialog=!1;const e=Xe.service({text:"Canceling subscription...",background:"rgba(0, 0, 0, 0.7)"});let t=Ye();t=="ai_image_generator"&&(t="AI_image_generator");try{const a=await ns.post("https://usa.imgkits.com/api/pay-stripe/cancel-subscription",{subscription_id:(o=this.user.detail)==null?void 0:o.subscription_id,cancel_type:"period_end"},{headers:{"content-type":"application/json","X-Access-Channel":t}});e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}Oe({message:"Your subscription will be canceled at the end of the current billing period",type:"success",duration:3e3})}catch(a){e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}Oe({showClose:!0,message:((s=(r=a.response)==null?void 0:r.data)==null?void 0:s.msg)||"Failed to cancel subscription. Please try again or contact support.",type:"error",duration:5e3})}},copyEmail(){const e="vote@imgkits.com";navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{Oe({message:"Email copied to clipboard",type:"success",duration:2e3})}).catch(()=>{this.fallbackCopyEmail(e)}):this.fallbackCopyEmail(e)},fallbackCopyEmail(e){const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),Oe({message:"Email copied to clipboard",type:"success",duration:2e3})}catch{Oe({message:"Failed to copy email",type:"error",duration:2e3})}document.body.removeChild(t)},async handleCancelSubscription(){this.user.detail&&this.user.detail.stripe_plan?this.showStripeConfirmDialog=!0:this.showCancelDialog=!0},formatDate(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):""}}},ne=e=>(n.pushScopeId("data-v-8580ad75"),e=e(),n.popScopeId(),e),h0=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-header"},[n.createElementVNode("div",{class:"warning-icon-wrapper"},[n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M12 9V13M12 17H12.01M5.07183 19H18.9282C20.4678 19 21.4301 17.3333 20.6603 16L13.7321 4C12.9623 2.66667 11.0377 2.66667 10.2679 4L3.33975 16C2.56995 17.3333 3.53223 19 5.07183 19Z",stroke:"#DC2626","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])]),n.createElementVNode("h3",null,"Cancel Subscription")],-1)),g0=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-body"},[n.createElementVNode("p",{class:"cancel-dialog-text"},"Are you sure you want to cancel your subscription? This action cannot be undone."),n.createElementVNode("div",{class:"info-box"},[n.createElementVNode("div",{class:"info-box-header"},[n.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M12 9V13M12 17H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#F59E0B","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),n.createElementVNode("span",null,"What happens next?")]),n.createElementVNode("p",{class:"info-box-text"},"You'll keep access to all premium features until the end of your current billing period.")])],-1)),b0={class:"cancel-dialog-footer"},ey=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-header"},[n.createElementVNode("h3",null,"Cancel Subscription")],-1)),ty={class:"cancel-dialog-body"},ny=ne(()=>n.createElementVNode("p",{class:"cancel-dialog-text"},"To cancel your subscription, please contact our support team via email.",-1)),oy={class:"email-input-group"},ry=ne(()=>n.createElementVNode("label",null,"Email us at",-1)),sy={class:"email-display"},ay=ne(()=>n.createElementVNode("span",null,"vote@imgkits.com",-1)),ly=[ne(()=>n.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M8 4V16C8 17.1046 8.89543 18 10 18H18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),n.createElementVNode("rect",{x:"4",y:"8",width:"12",height:"12",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1))],cy={class:"user-email-hint"},dy={class:"cancel-dialog-footer"},uy=["href"],y0={class:"user-center-content"},_0={class:"user-info flew-row-v-center"},w0=["src"],E0={class:"user-name",style:{color:"#000"}},v0={class:"user-email"},k0={class:"flew-row-v-center"},x0={key:0,t:"1637834706702",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10206",width:"32",height:"32"},S0=[ne(()=>n.createElementVNode("path",{d:"M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",fill:"#d19844","p-id":"10207","data-spm-anchor-id":"a313x.7781069.0.i16",class:"selected"},null,-1)),ne(()=>n.createElementVNode("path",{d:"M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",fill:"#FFFFFF","p-id":"10208"},null,-1))],C0={key:1,t:"1637055277290",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"32",height:"32"},N0=[ne(()=>n.createElementVNode("path",{d:"M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z","p-id":"8081",fill:"#969696"},null,-1))],T0={key:2,class:"subscription-ends-info"},O0={class:"ends-text"},P0=["href"],B0=[ne(()=>n.createElementVNode("button",{class:"upgrade_btn"},[n.createElementVNode("span",{class:"text-white"},"Upgrade")],-1))],V0=[ne(()=>n.createElementVNode("span",null,"Cancel",-1))],$0={key:2,class:"cancelled-badge"},A0=["href"],M0=[ne(()=>n.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[n.createElementVNode("svg",{t:"1661398041322",class:"user-item-icon dashboard-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6706",width:"32",height:"32"},[n.createElementVNode("path",{d:"M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z",fill:"#969696","p-id":"6707"})]),n.createElementVNode("span",null,"Dashboard")],-1))],I0=["href"],R0=[ne(()=>n.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[n.createElementVNode("svg",{t:"1637049676350",class:"user-item-icon",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5498",width:"32",height:"32"},[n.createElementVNode("path",{d:"M1001.65696 463.424l-332.224-332.416C648.76096 110.4 624.05696 104.256 598.52096 113.792c-26.176 9.856-41.152 33.28-41.216 64.384L557.30496 328.32 492.28096 328.32 305.65696 328.384C266.48896 328.512 239.16096 355.712 239.03296 394.624c-0.128 78.4-0.128 156.736 0 235.072 0.128 37.696 27.776 65.28 65.792 65.664l252.48 0.064L557.24096 724.48c-0.128 40.768-0.256 81.408 0.576 122.112 0.256 15.936 6.528 33.28 16.256 45.184 11.904 14.656 28.224 22.72 45.952 22.72l0 0c17.536 0 35.2-8 49.728-22.464 110.848-110.72 221.568-221.504 332.288-332.352C1031.60896 530.176 1031.48096 493.248 1001.65696 463.424z","p-id":"5499",fill:"#969696"}),n.createElementVNode("path",{d:"M387.70496 805.696 387.64096 805.696l-72.576 0.128-103.872-0.064c-52.48 0-82.624-30.144-82.624-82.688L128.56896 300.48c0-52.416 30.144-82.496 82.752-82.496l68.8-0.064 75.584 0.064 42.048-0.064c30.08 0 46.528-15.104 48.896-44.8 0.896-11.072 0.64-22.336 0.256-34.88C446.13696 106.944 428.60096 89.664 397.68896 89.6L321.33696 89.6C280.44096 89.6 239.54496 89.6 198.71296 89.856 186.16896 89.92 173.30496 91.328 160.44096 94.08 68.21696 113.728 0.88896 196.416 0.37696 290.688 0.12096 341.504 0.18496 392.384 0.24896 443.136l0.064 67.648L0.18496 581.76C0.12096 632.768-0.00704 683.712 0.44096 734.784c0.896 107.776 88.768 197.056 195.904 199.04 26.368 0.512 52.8 0.64 79.168 0.64l125.376-0.256c24.768 0 42.112-15.04 45.184-39.232 1.088-8.832 1.216-17.856 1.28-26.88l0-4.48c0.128-13.312 0.256-31.552-12.544-44.48C422.45696 806.784 404.66496 805.696 387.70496 805.696z","p-id":"5500",fill:"#969696"})]),n.createElementVNode("span",null,"Logout")],-1))];function L0(e,t,o,r,s,a){var i,l,d,c,u,p,m,g,f,h;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" Stripe 取消订阅确认弹窗 - 使用 Teleport 渲染到 body "),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[s.showStripeConfirmDialog?(n.openBlock(),n.createElementBlock("div",{key:0,class:"cancel-dialog-overlay",onClick:t[3]||(t[3]=(...b)=>a.closeStripeConfirmDialog&&a.closeStripeConfirmDialog(...b))},[n.createElementVNode("div",{class:"cancel-dialog stripe-confirm-dialog",onClick:t[2]||(t[2]=n.withModifiers(()=>{},["stop"]))},[h0,g0,n.createElementVNode("div",b0,[n.createElementVNode("button",{class:"dialog-btn close-btn",onClick:t[0]||(t[0]=(...b)=>a.closeStripeConfirmDialog&&a.closeStripeConfirmDialog(...b))},"Close"),n.createElementVNode("button",{class:"dialog-btn cancel-subscription-btn",onClick:t[1]||(t[1]=(...b)=>a.confirmStripeCancellation&&a.confirmStripeCancellation(...b))},"Cancel Subscription")])])])):n.createCommentVNode("v-if",!0)])),n.createCommentVNode(" 非 Stripe 取消订阅弹窗 - 使用 Teleport 渲染到 body "),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createCommentVNode(" 非stripe 暂时关闭了 "),(s.showCancelDialog,n.createCommentVNode("v-if",!0))])),n.createElementVNode("div",y0,[n.createElementVNode("div",_0,[n.createElementVNode("img",{class:"user-avatar",src:o.user.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,w0),n.createElementVNode("div",null,[n.createElementVNode("div",E0,[n.createElementVNode("span",null,n.toDisplayString(o.user.username),1)]),n.createElementVNode("div",v0,[n.createElementVNode("span",null,n.toDisplayString(o.user.email),1)])])]),n.createCommentVNode(` <div v-if="!user.is_subscribed" class="user-item user-item-active flew-row-v-center space-between" @click="handlePay">
|
|
29
|
+
This will fail in production.`);l=Jt,l._s.has(r)||(a?hr(r,t,s,l):Li(r,s,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const u=l._s.get(r);if(process.env.NODE_ENV!=="production"&&d){const p="__hot:"+r,m=a?hr(p,t,s,l,!0):Li(p,ue({},s),l,!0);d._hotUpdate(m),delete l.state.value[p],l._s.delete(p)}if(process.env.NODE_ENV!=="production"&&pr){const p=n.getCurrentInstance();if(p&&p.proxy&&!d){const m=p.proxy,g="_pStores"in m?m._pStores:m._pStores={};g[r]=u}}return u}return i.$id=r,i}function p0(e,t){return Array.isArray(t)?t.reduce((o,r)=>(o[r]=function(...s){return e(this.$pinia)[r](...s)},o),{}):Object.keys(t).reduce((o,r)=>(o[r]=function(...s){return e(this.$pinia)[t[r]](...s)},o),{})}const f0=u0("user",{state:()=>({user:null,isShowLogin:!1,isShowToast:!1,toastContent:"",isShowInvite:!1}),actions:{getUser(e=!1){return console.log("yichong-user"),window.getUserStatusPromise=new Promise((t,o)=>{ni(e).then(({profile:r,subscription:s,team_subscription:a,drive:i,jwt:l})=>{if(l&&(window.g_app_jwt=l),r){let{free_cnt:d,is_subscribed:c,detail:u,monthly_usage_cnt:p}=s;console.log(s,"subscription"),console.log(p,"monthly_usage_cnt"),d||(d=0),u&&u.ends_at&&(c=new Date(u.ends_at)>new Date);const m=a&&a.detail||null,g=m&&!0||!1,f=c&&u.name||g&&m.name||"",h={...r,free_cnt:d,monthly_usage_cnt:p,is_subscribed:c||g,subscribedType:f,detail:u||m,team_subscription:a,isMember:!c&&a,drive:i};this.user=h,window.userStatus=h}t({profile:r,subscription:s,is_subscribed:this.user&&this.user.is_subscribed})},r=>{o(r)})})},logout(){this.user=null,window.userStatus=null},updateUser(e=!1,t,o=!1,r=20,s=null){const a=Xe.service({text:"Upgrading....",background:"rgba(0, 0, 0, 0.7)"});let i=1;const l=this.user&&this.user.free_cnt||0,d=()=>{ni(o).then(({profile:c,subscription:u,team_subscription:p,drive:m,jwt:g})=>{g&&(window.g_app_jwt=g);let{free_cnt:f,is_subscribed:h,detail:b}=u;f||(f=0),b&&b.ends_at&&(h=new Date(b.ends_at)>new Date);const y=p&&p.detail||null,k=y&&!0||!1,C=h&&b.name||k&&y.name||"";if(t=="purchase"?f>l:h||k){const S={...c,free_cnt:f,is_subscribed:h||k,subscribedType:C,detail:b||y,team_subscription:p,isMember:!h&&p,drive:m};if(this.user=S,window.userStatus=S,window.opener){const O={type:"subscribed"};ei({message:O,user:S},"subscribed:success"),window.opener.postMessage(O,process.env.NODE_ENV=="development"?"http://localhost:8080":"*")}a.close(),p&&p.quota>1?this.isShowInvite=!0:(this.isShowToast=!0,this.toastContent=t=="purchase"?"purchased credits":"upgraded to a member",setTimeout(()=>{this.isShowToast=!1;const O=ti();window.opener&&!e||O.product&&O.product=="image_translator"?window.close():O.close&&(s&&typeof s=="function"?s():window.close())},3e3))}else i>r?a.close():setTimeout(()=>{i++,d()},2e3)},c=>{a.close()})};return d(),a},showLogin(e){this.isShowLogin=e},hideInvite(e){this.isShowInvite=e}}}),Yb="",Qb="";let Fi=kt();console.log("childPath3",Fi);const m0={props:["user","from"],data(){return{path:Fi,showCancelDialog:!1,showStripeConfirmDialog:!1,cancelledLocally:!1}},methods:{...p0(f0,["logout"]),handlePay(){console.log("user",this.user),this.user.is_subscribed||this.$emit("subscribe")},closeCancelDialog(){this.showCancelDialog=!1},closeStripeConfirmDialog(){this.showStripeConfirmDialog=!1},async confirmStripeCancellation(){var o,r,s;this.showStripeConfirmDialog=!1;const e=Xe.service({text:"Canceling subscription...",background:"rgba(0, 0, 0, 0.7)"});let t=Ye();t=="ai_image_generator"&&(t="AI_image_generator");try{const a=await ns.post("https://usa.imgkits.com/api/pay-stripe/cancel-subscription",{subscription_id:(o=this.user.detail)==null?void 0:o.subscription_id,cancel_type:"period_end"},{headers:{"content-type":"application/json","X-Access-Channel":t}});e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}this.cancelledLocally=!0,Oe({message:"Your subscription will be canceled at the end of the current billing period",type:"success",duration:3e3})}catch(a){e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}Oe({showClose:!0,message:((s=(r=a.response)==null?void 0:r.data)==null?void 0:s.msg)||"Failed to cancel subscription. Please try again or contact support.",type:"error",duration:5e3})}},copyEmail(){const e="vote@imgkits.com";navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{Oe({message:"Email copied to clipboard",type:"success",duration:2e3})}).catch(()=>{this.fallbackCopyEmail(e)}):this.fallbackCopyEmail(e)},fallbackCopyEmail(e){const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),Oe({message:"Email copied to clipboard",type:"success",duration:2e3})}catch{Oe({message:"Failed to copy email",type:"error",duration:2e3})}document.body.removeChild(t)},async handleCancelSubscription(){this.user.detail&&this.user.detail.stripe_plan?this.showStripeConfirmDialog=!0:this.showCancelDialog=!0},formatDate(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):""}}},ne=e=>(n.pushScopeId("data-v-8580ad75"),e=e(),n.popScopeId(),e),h0=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-header"},[n.createElementVNode("div",{class:"warning-icon-wrapper"},[n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M12 9V13M12 17H12.01M5.07183 19H18.9282C20.4678 19 21.4301 17.3333 20.6603 16L13.7321 4C12.9623 2.66667 11.0377 2.66667 10.2679 4L3.33975 16C2.56995 17.3333 3.53223 19 5.07183 19Z",stroke:"#DC2626","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])]),n.createElementVNode("h3",null,"Cancel Subscription")],-1)),g0=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-body"},[n.createElementVNode("p",{class:"cancel-dialog-text"},"Are you sure you want to cancel your subscription? This action cannot be undone."),n.createElementVNode("div",{class:"info-box"},[n.createElementVNode("div",{class:"info-box-header"},[n.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M12 9V13M12 17H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#F59E0B","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),n.createElementVNode("span",null,"What happens next?")]),n.createElementVNode("p",{class:"info-box-text"},"You'll keep access to all premium features until the end of your current billing period.")])],-1)),b0={class:"cancel-dialog-footer"},ey=ne(()=>n.createElementVNode("div",{class:"cancel-dialog-header"},[n.createElementVNode("h3",null,"Cancel Subscription")],-1)),ty={class:"cancel-dialog-body"},ny=ne(()=>n.createElementVNode("p",{class:"cancel-dialog-text"},"To cancel your subscription, please contact our support team via email.",-1)),oy={class:"email-input-group"},ry=ne(()=>n.createElementVNode("label",null,"Email us at",-1)),sy={class:"email-display"},ay=ne(()=>n.createElementVNode("span",null,"vote@imgkits.com",-1)),ly=[ne(()=>n.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M8 4V16C8 17.1046 8.89543 18 10 18H18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),n.createElementVNode("rect",{x:"4",y:"8",width:"12",height:"12",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1))],cy={class:"user-email-hint"},dy={class:"cancel-dialog-footer"},uy=["href"],y0={class:"user-center-content"},_0={class:"user-info flew-row-v-center"},w0=["src"],E0={class:"user-name",style:{color:"#000"}},v0={class:"user-email"},k0={class:"flew-row-v-center"},x0={key:0,t:"1637834706702",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10206",width:"32",height:"32"},S0=[ne(()=>n.createElementVNode("path",{d:"M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",fill:"#d19844","p-id":"10207","data-spm-anchor-id":"a313x.7781069.0.i16",class:"selected"},null,-1)),ne(()=>n.createElementVNode("path",{d:"M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",fill:"#FFFFFF","p-id":"10208"},null,-1))],C0={key:1,t:"1637055277290",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"32",height:"32"},N0=[ne(()=>n.createElementVNode("path",{d:"M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z","p-id":"8081",fill:"#969696"},null,-1))],T0={key:2,class:"subscription-ends-info"},O0={class:"ends-text"},P0=["href"],B0=[ne(()=>n.createElementVNode("button",{class:"upgrade_btn"},[n.createElementVNode("span",{class:"text-white"},"Upgrade")],-1))],V0=[ne(()=>n.createElementVNode("span",null,"Cancel",-1))],$0={key:2,class:"cancelled-badge"},A0=["href"],M0=[ne(()=>n.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[n.createElementVNode("svg",{t:"1661398041322",class:"user-item-icon dashboard-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6706",width:"32",height:"32"},[n.createElementVNode("path",{d:"M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z",fill:"#969696","p-id":"6707"})]),n.createElementVNode("span",null,"Dashboard")],-1))],I0=["href"],R0=[ne(()=>n.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[n.createElementVNode("svg",{t:"1637049676350",class:"user-item-icon",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5498",width:"32",height:"32"},[n.createElementVNode("path",{d:"M1001.65696 463.424l-332.224-332.416C648.76096 110.4 624.05696 104.256 598.52096 113.792c-26.176 9.856-41.152 33.28-41.216 64.384L557.30496 328.32 492.28096 328.32 305.65696 328.384C266.48896 328.512 239.16096 355.712 239.03296 394.624c-0.128 78.4-0.128 156.736 0 235.072 0.128 37.696 27.776 65.28 65.792 65.664l252.48 0.064L557.24096 724.48c-0.128 40.768-0.256 81.408 0.576 122.112 0.256 15.936 6.528 33.28 16.256 45.184 11.904 14.656 28.224 22.72 45.952 22.72l0 0c17.536 0 35.2-8 49.728-22.464 110.848-110.72 221.568-221.504 332.288-332.352C1031.60896 530.176 1031.48096 493.248 1001.65696 463.424z","p-id":"5499",fill:"#969696"}),n.createElementVNode("path",{d:"M387.70496 805.696 387.64096 805.696l-72.576 0.128-103.872-0.064c-52.48 0-82.624-30.144-82.624-82.688L128.56896 300.48c0-52.416 30.144-82.496 82.752-82.496l68.8-0.064 75.584 0.064 42.048-0.064c30.08 0 46.528-15.104 48.896-44.8 0.896-11.072 0.64-22.336 0.256-34.88C446.13696 106.944 428.60096 89.664 397.68896 89.6L321.33696 89.6C280.44096 89.6 239.54496 89.6 198.71296 89.856 186.16896 89.92 173.30496 91.328 160.44096 94.08 68.21696 113.728 0.88896 196.416 0.37696 290.688 0.12096 341.504 0.18496 392.384 0.24896 443.136l0.064 67.648L0.18496 581.76C0.12096 632.768-0.00704 683.712 0.44096 734.784c0.896 107.776 88.768 197.056 195.904 199.04 26.368 0.512 52.8 0.64 79.168 0.64l125.376-0.256c24.768 0 42.112-15.04 45.184-39.232 1.088-8.832 1.216-17.856 1.28-26.88l0-4.48c0.128-13.312 0.256-31.552-12.544-44.48C422.45696 806.784 404.66496 805.696 387.70496 805.696z","p-id":"5500",fill:"#969696"})]),n.createElementVNode("span",null,"Logout")],-1))];function L0(e,t,o,r,s,a){var i,l,d,c,u,p,m,g,f,h;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(" Stripe 取消订阅确认弹窗 - 使用 Teleport 渲染到 body "),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[s.showStripeConfirmDialog?(n.openBlock(),n.createElementBlock("div",{key:0,class:"cancel-dialog-overlay",onClick:t[3]||(t[3]=(...b)=>a.closeStripeConfirmDialog&&a.closeStripeConfirmDialog(...b))},[n.createElementVNode("div",{class:"cancel-dialog stripe-confirm-dialog",onClick:t[2]||(t[2]=n.withModifiers(()=>{},["stop"]))},[h0,g0,n.createElementVNode("div",b0,[n.createElementVNode("button",{class:"dialog-btn close-btn",onClick:t[0]||(t[0]=(...b)=>a.closeStripeConfirmDialog&&a.closeStripeConfirmDialog(...b))},"Close"),n.createElementVNode("button",{class:"dialog-btn cancel-subscription-btn",onClick:t[1]||(t[1]=(...b)=>a.confirmStripeCancellation&&a.confirmStripeCancellation(...b))},"Cancel Subscription")])])])):n.createCommentVNode("v-if",!0)])),n.createCommentVNode(" 非 Stripe 取消订阅弹窗 - 使用 Teleport 渲染到 body "),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createCommentVNode(" 非stripe 暂时关闭了 "),(s.showCancelDialog,n.createCommentVNode("v-if",!0))])),n.createElementVNode("div",y0,[n.createElementVNode("div",_0,[n.createElementVNode("img",{class:"user-avatar",src:o.user.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,w0),n.createElementVNode("div",null,[n.createElementVNode("div",E0,[n.createElementVNode("span",null,n.toDisplayString(o.user.username),1)]),n.createElementVNode("div",v0,[n.createElementVNode("span",null,n.toDisplayString(o.user.email),1)])])]),n.createCommentVNode(` <div v-if="!user.is_subscribed" class="user-item user-item-active flew-row-v-center space-between" @click="handlePay">
|
|
30
30
|
<div class="flew-row-v-center">
|
|
31
31
|
<svg t="1637055176346" class="user-item-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6419" width="32" height="32"><path d="M179.2 182.4c-34.4 16.8-51.2 35.2-51.2 55.2v55.2c0 20 16.8 38.4 51.2 55.2 34.4 16.8 80.8 30.4 140 40 59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-55.2c0-20-16.8-38.4-51.2-55.2-34.4-16.8-80.8-30.4-140-40C645.6 132.8 581.6 128 512 128s-133.6 4.8-192.8 14.4c-58.4 10.4-105.6 23.2-140 40M128 552v69.6c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-72.8c-40 24-93.6 42.4-162.4 54.4-68.8 12.8-142.4 18.4-221.6 18.4s-152.8-5.6-221.6-18.4C221.6 591.2 168 572.8 128 548.8M128 712v74.4c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-72.8c-40 24-93.6 42.4-162.4 54.4-68.8 12-142.4 18.4-221.6 18.4s-152.8-6.4-221.6-18.4C221.6 756 168 737.6 128 713.6M128 384v72.8c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2V384c-40 24-93.6 42.4-162.4 54.4-68.8 12-142.4 18.4-221.6 18.4s-152.8-6.4-221.6-18.4C221.6 426.4 168 408 128 384" p-id="6420" fill="#969696"></path></svg>
|
|
32
32
|
<span id="free_cnt">My Credit: {{user.free_cnt}}</span>
|
|
33
33
|
</div>
|
|
34
34
|
<div class="user-upgrade user-buy-credit"><span>Buy credit</span></div>
|
|
35
|
-
</div> `),n.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[9]||(t[9]=(...b)=>a.handlePay&&a.handlePay(...b))},[n.createElementVNode("div",k0,[o.user.is_subscribed?(n.openBlock(),n.createElementBlock("svg",x0,S0)):(n.openBlock(),n.createElementBlock("svg",C0,N0)),n.createElementVNode("span",null,"My Plan: "+n.toDisplayString(o.user.is_subscribed?"Premium Plan":"free"),1),(l=(i=o.user)==null?void 0:i.detail)!=null&&l.cancelled&&((c=(d=o.user)==null?void 0:d.detail)!=null&&c.ends_at)?(n.openBlock(),n.createElementBlock("div",T0,[n.createElementVNode("span",O0,"Ends on "+n.toDisplayString(a.formatDate(o.user.detail.ends_at)),1)])):n.createCommentVNode("v-if",!0)]),o.user.is_subscribed?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("a",{key:0,href:s.path+"/pricing",target:"_self"},B0,8,P0)),o.user.is_subscribed&&((p=(u=o.user)==null?void 0:u.detail)!=null&&p.stripe_plan)&&!((g=(m=o.user)==null?void 0:m.detail)!=null&&g.cancelled)?(n.openBlock(),n.createElementBlock("button",{key:1,class:"cancel_btn text-md rounded-xl py-2",onClick:t[8]||(t[8]=(...b)=>a.handleCancelSubscription&&a.handleCancelSubscription(...b))},V0)):n.createCommentVNode("v-if",!0),o.user.is_subscribed&&((h=(f=o.user)==null?void 0:f.detail)!=null&&h.cancelled)?(n.openBlock(),n.createElementBlock("span",$0," Cancelled ")):n.createCommentVNode("v-if",!0)]),n.createElementVNode("a",{href:s.path+"/dashboard",target:"_blank"},M0,8,A0),n.createElementVNode("a",{rel:"nofollow",href:s.path+"/user/logout"},R0,8,I0)])],64)}const Di=st(m0,[["render",L0],["__scopeId","data-v-8580ad75"],["__file","/Users/sen/Desktop/公司Code/workspace/z_liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),_y="",F0={props:["content","top"]},D0=(e=>(n.pushScopeId("data-v-7b6def48"),e=e(),n.popScopeId(),e))(()=>n.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[n.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function j0(e,t,o,r,s,a){return n.openBlock(),n.createElementBlock("div",{class:"toast-wrapper",style:n.normalizeStyle({top:o.top||"60PX"})},[D0,n.createElementVNode("span",null,"Congratulations! you have successfully "+n.toDisplayString(o.content)+".",1)],4)}const H0=st(F0,[["render",j0],["__scopeId","data-v-7b6def48"],["__file","/Users/sen/Desktop/公司Code/workspace/z_liusenlin_project/Translation_Video/src/components/Toast.vue"]]),Ey="",z0={class:"background-cover"},U0=n.createElementVNode("div",{class:"invite-success"},[n.createElementVNode("svg",{t:"1658474740344",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3982",width:"32",height:"32"},[n.createElementVNode("path",{d:"M512 57.677643C261.084506 57.677643 57.677643 261.084506 57.677643 512s203.406863 454.322357 454.322357 454.322357 454.322357-203.406863 454.322357-454.322357S762.915494 57.677643 512 57.677643z",fill:"#89B7FF","p-id":"3983"}),n.createElementVNode("path",{d:"M574.292742 467.479958c98.402496-98.402496 199.008277-157.332187 224.708547-131.631916 25.706482 25.706482-33.222322 126.311376-131.626592 224.714759-69.494461 69.494461-140.091009 119.304873-184.627023 133.519306-5.030378 2.413588-10.914385 3.680721-17.476326 3.871501-5.891106 0.594523-11.002232 0.199653-15.218024-1.247611-31.752873-5.672818-73.424527-30.023432-111.022364-67.622156-58.328069-58.327182-84.768388-126.443591-59.068118-152.143862 25.706482-25.706482 93.822003 0.733837 152.150073 59.061907 16.800166 16.800166 30.956035 34.414031 41.981338 51.592208 24.079085-36.552541 58.614683-78.530329 100.199376-120.114136z",fill:"#FFFFFF","p-id":"3984"})])],-1),q0=n.createElementVNode("div",{class:"invite-title"},[n.createElementVNode("span",null,"Successfully subscribed!")],-1),W0=n.createElementVNode("p",{class:"invite-desc"},"You have successfully subscribed to the business plan and now you have the right to add licenses for partners.",-1),G0=[n.createElementVNode("span",null,"Invite Partners Now",-1)],K0=[n.createElementVNode("span",null,"Invite Later",-1)],J0=st({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const o=kt(),r=()=>{t("cancel"),location.href=o+"/dashboard"},s=()=>{t("cancel")};return(a,i)=>(n.openBlock(),n.createElementBlock("div",z0,[n.createElementVNode("div",{class:"invite-dialog"},[U0,q0,W0,n.createElementVNode("div",null,[n.createElementVNode("div",{class:"button button-up",onClick:r},G0),n.createElementVNode("div",{class:"button button-down",onClick:s},K0)])])]))}},[["__file","/Users/sen/Desktop/公司Code/workspace/z_liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function Z0(e,t){return n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[n.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Sy="",Cy="",Ny="",Ty="",Oy="",Xt=e=>(n.pushScopeId("data-v-b9e2cd3f"),e=e(),n.popScopeId(),e),X0=Xt(()=>n.createElementVNode("span",null,"Our other apps",-1)),Y0=Xt(()=>n.createElementVNode("img",{src:"https://statics.imgkits.com/lsl_ali_icon4392779680.png ",class:"h-[20px] mr-2 w-[20px] inline-block"},null,-1)),Q0=["href"],e1=["src"],t1={class:"flex flex-col pl-1"},n1={class:"text-lg font-semibold"},o1={class:"text-gray-500 font-semibold text-sm truncate w-52"},r1=Xt(()=>n.createElementVNode("img",{style:{width:"20px",height:"20px",marginRight:"8px"},src:"https://statics.imgkits.com/images/workspace_logo.png ",class:"h-[20px] mr-2 w-[20px] inline-block"},null,-1)),s1=["href"],a1=["src"],i1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},l1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},c1=Xt(()=>n.createElementVNode("svg",{class:"inline-block mr-2","data-v-8a1f9b8f":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"20",viewBox:"0 0 192 192",width:"20"},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M0 0h192v192H0z",fill:"none"}),n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",id:"a"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"b"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#a"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v152H8z",fill:"#eee"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M116 36H76c-4.42 0-8 3.58-8 8s3.58 8 8 8h40c4.42 0 8-3.58 8-8s-3.58-8-8-8z",fill:"#fff"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#b)"},[n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",id:"c",r:"76"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"d"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#c"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M32.07 84v93.27h34.01L96 125.45h76V84zm0 0v93.27h34.01L96 125.45h76V84z",fill:"#DB4437"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M20 236h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24zm0 0h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24z",fill:"#0F9D58"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M96 125.45l29.92 51.82L92.35 236H172V125.45zm0 0l29.92 51.82L92.35 236H172V125.45z",fill:"#FFCD40"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#d)"},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#F1F1F1",r:"34.55"}),n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#4285F4",r:"27.64"})])]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v76H8z",fill:"#212121","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 95h176v1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 96h176v1H8z",fill:"#fff","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M116 52H76c-4.25 0-7.72-3.32-7.97-7.5-.02.17-.03.33-.03.5 0 4.42 3.58 8 8 8h40c4.42 0 8-3.58 8-8 0-.17-.01-.33-.03-.5-.25 4.18-3.72 7.5-7.97 7.5zM8 20v1h176v-1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M76 36h40c4.25 0 7.72 3.32 7.97 7.5.01-.17.03-.33.03-.5 0-4.42-3.58-8-8-8H76c-4.42 0-8 3.58-8 8 0 .17.01.33.03.5.25-4.18 3.72-7.5 7.97-7.5zm96 135H20c-6.6 0-12-5.4-12-12v1c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12v-1c0 6.6-5.4 12-12 12z",fill:"#231F20","fill-opacity":".1"}),n.createElementVNode("radialGradient",{"data-v-8a1f9b8f":"",cx:"7.502",cy:"19.344",gradientUnits:"userSpaceOnUse",id:"e",r:"227.596"},[n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"0","stop-color":"#fff","stop-opacity":".1"}),n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"1","stop-color":"#fff","stop-opacity":"0"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",fill:"url(#e)"})],-1)),d1=["href"],u1=["src"],p1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},f1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},m1=Xt(()=>n.createElementVNode("img",{style:{width:"20px",height:"20px",marginRight:"8px"},src:"https://statics.imgkits.com/images/edge_logo.png",class:"inline-block w-[20px] h-[20px] mr-2"},null,-1)),h1=["href"],g1=["src"],b1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},y1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},_1=st({__name:"MobileMoreApps",props:{hotApps:Array,workspaceTools:Array,chrome_addon_tools:Array,edge_addon_tools:Array},setup(e){const t=n.ref(null);return n.onMounted(()=>{const o=new URL(location.href);t.value=o.searchParams.get("from")||null}),(o,r)=>{const s=fh,a=zm,i=Lm;return n.openBlock(),n.createBlock(i,{class:"tac"},{default:n.withCtx(()=>[n.createVNode(a,{span:12},{default:n.withCtx(()=>[n.createVNode(n.unref(ph),{"collapse-transition":"false"},{default:n.withCtx(()=>[n.createVNode(s,{"collapse-transition":"false",class:"w-full",index:"1"},{title:n.withCtx(()=>[X0]),default:n.withCtx(()=>[n.createVNode(s,{index:"1-1"},{title:n.withCtx(()=>[Y0,n.createTextVNode(" Hot Tools ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hotApps,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"hot_item",index:"1-1-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{target:"_blank",href:l.app_url+(t.value?"?from="+t.value:""),class:"cursor-pointer flex items-center bg-gradient-to-r h-24 mb-6 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-96 p-3"},[n.createElementVNode("img",{style:{height:"64px",width:"64px",marginRight:"4px",borderRadius:"4px"},class:"h-16 w-16 mr-1 rounded",src:l.icon},null,8,e1),n.createElementVNode("div",t1,[n.createElementVNode("h3",n1,n.toDisplayString(l.name),1),n.createElementVNode("div",o1,n.toDisplayString(l.desc),1)])],8,Q0)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-2"},{title:n.withCtx(()=>[r1,n.createTextVNode(" Google Workspace Tools ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.workspaceTools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-2-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:t.value?l.url+"?from="+t.value:l.url,class:"flex w-full items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,a1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",i1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",l1,"AI")):n.createCommentVNode("v-if",!0)],8,s1)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-3"},{title:n.withCtx(()=>[c1,n.createTextVNode(" Chrome Extensions ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.chrome_addon_tools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-3-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:l.chrome_addon_url,class:"w-full flex items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,u1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",p1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",f1,"AI")):n.createCommentVNode("v-if",!0)],8,d1)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-4"},{title:n.withCtx(()=>[m1,n.createTextVNode(" Edge Extensions ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.edge_addon_tools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-4-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:l.edge_addon_url,class:"w-full flex items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,g1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",b1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",y1,"AI")):n.createCommentVNode("v-if",!0)],8,h1)]),_:2},1032,["index"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-b9e2cd3f"],["__file","/Users/sen/Desktop/公司Code/workspace/z_liusenlin_project/Translation_Video/src/components/MobileMoreApps.vue"]]),By="",Vy="",we=e=>(n.pushScopeId("data-v-c970699f"),e=e(),n.popScopeId(),e),w1={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},E1={class:"flex lg:flex-1"},v1=we(()=>n.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),k1=["href"],x1=["src","alt"],S1={class:"pl-2 text-xl"},C1={class:"flex lg:hidden"},N1=we(()=>n.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),T1={class:"hidden lg:flex lg:gap-x-12"},O1={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},P1=we(()=>n.createElementVNode("span",null,"Our other apps",-1)),B1={class:"hot w-1/4 border-r mr-10"},V1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/lsl_ali_icon4392779680.png ",class:"h-[32px] mr-2 w-[32px] inline-block"}),n.createTextVNode(" Hot Tools ")],-1)),$1={class:"h-[300px] pt-5 w-[97%]"},A1=["href"],M1=["src"],I1={class:"flex flex-col pl-1"},R1={class:"text font-semibold"},L1={class:"text-gray-500 font-semibold text-sm"},F1={class:"flex w-1/4 border-r mr-10 flex-col"},D1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/images/workspace_logo.png ",class:"h-[32px] mr-2 w-[32px] inline-block"}),n.createTextVNode(" Google Workspace ")],-1)),j1={class:"h-[300px] w-[98%] text-sm font-semibold leading-6 text-gray-900 pt-2"},H1=["href"],z1=["src"],U1={key:0,class:"h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},q1={key:1,class:"h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},W1={class:"flex w-1/4 border-r mr-10 flex-col"},G1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("svg",{class:"inline-block mr-2","data-v-8a1f9b8f":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"32",viewBox:"0 0 192 192",width:"32"},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M0 0h192v192H0z",fill:"none"}),n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",id:"a"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"b"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#a"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v152H8z",fill:"#eee"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M116 36H76c-4.42 0-8 3.58-8 8s3.58 8 8 8h40c4.42 0 8-3.58 8-8s-3.58-8-8-8z",fill:"#fff"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#b)"},[n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",id:"c",r:"76"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"d"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#c"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M32.07 84v93.27h34.01L96 125.45h76V84zm0 0v93.27h34.01L96 125.45h76V84z",fill:"#DB4437"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M20 236h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24zm0 0h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24z",fill:"#0F9D58"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M96 125.45l29.92 51.82L92.35 236H172V125.45zm0 0l29.92 51.82L92.35 236H172V125.45z",fill:"#FFCD40"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#d)"},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#F1F1F1",r:"34.55"}),n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#4285F4",r:"27.64"})])]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v76H8z",fill:"#212121","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 95h176v1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 96h176v1H8z",fill:"#fff","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M116 52H76c-4.25 0-7.72-3.32-7.97-7.5-.02.17-.03.33-.03.5 0 4.42 3.58 8 8 8h40c4.42 0 8-3.58 8-8 0-.17-.01-.33-.03-.5-.25 4.18-3.72 7.5-7.97 7.5zM8 20v1h176v-1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M76 36h40c4.25 0 7.72 3.32 7.97 7.5.01-.17.03-.33.03-.5 0-4.42-3.58-8-8-8H76c-4.42 0-8 3.58-8 8 0 .17.01.33.03.5.25-4.18 3.72-7.5 7.97-7.5zm96 135H20c-6.6 0-12-5.4-12-12v1c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12v-1c0 6.6-5.4 12-12 12z",fill:"#231F20","fill-opacity":".1"}),n.createElementVNode("radialGradient",{"data-v-8a1f9b8f":"",cx:"7.502",cy:"19.344",gradientUnits:"userSpaceOnUse",id:"e",r:"227.596"},[n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"0","stop-color":"#fff","stop-opacity":".1"}),n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"1","stop-color":"#fff","stop-opacity":"0"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",fill:"url(#e)"})]),n.createTextVNode(" Chrome Extensions ")],-1)),K1={class:"h-[300px] text-sm w-[98%] font-semibold leading-6 pt-2 text-gray-900"},J1=["href"],Z1=["src"],X1={key:0,class:"h-4 font-normal flex items-center bg-[#f16a41] text-white rounded-sm px-1 text-center"},Y1={key:1,class:"h-4 font-normal flex items-center bg-[#5b4fff] text-white rounded-sm px-1 text-center"},Q1={class:"flex w-1/4 mr-10 flex-col"},eb=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/images/edge_logo.png",class:"inline-block w-[32px] h-[32px] mr-2"}),n.createTextVNode(" Edge Extensions ")],-1)),tb={class:"text-sm font-semibold leading-6 text-gray-900 pt-2"},nb=["href"],ob=["src"],rb={key:0,class:"h-4 font-normal flex items-center bg-[#f16a41] text-white rounded-sm px-1 text-center"},sb={key:1,class:"h-4 font-normal flex items-center bg-[#5b4fff] text-white rounded-sm px-1 text-center"},ab=["onClick"],ib={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},lb={class:"mr-4"},cb={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end items-center"},db={class:"mr-4"},ub=we(()=>n.createElementVNode("span",{"aria-hidden":"true"},null,-1)),pb={class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},fb={class:"mr-4"},mb={class:"pr-4"},hb=["src"],gb=we(()=>n.createElementVNode("div",{class:"open-icon"},null,-1)),bb={class:"user-center-dialog shadow-xl"},yb=we(()=>n.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),_b={class:"flex items-center justify-between"},wb=["href"],Eb={class:"sr-only"},vb=["src","alt"],kb=we(()=>n.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),xb={class:"mt-6 flow-root"},Sb={class:"-my-6 divide-y divide-gray-500/10"},Cb={class:"space-y-2 py-6"},Nb=["onClick"],Tb={class:"py-4"},Ob={key:0,class:"py-6"},ji=st({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userStore:{type:Object,default:()=>{}},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"},driveQuery:{type:Boolean,default:!1},PopoverPanelClass:{type:String,default:""},z_index:{type:String,default:"z-30"}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const o=e;let r={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(r=app_config);const s=n.ref(r),a=kt(),i=n.ref([{name:"AI Image Kits",desc:"Top AI Image Processing Tools Online",icon:"https://www.imgkits.com/favicon.ico",url:"https://www.imgkits.com/",app_url:"https://www.imgkits.com/"},{name:"AI Image Generator",desc:"Turn text prompts into an image",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://www.imgkits.com/ai-image-generator/generate",app_url:"https://www.imgkits.com/ai-image-generator"}]),l=n.ref([{name:"Live Polls Maker for Slides™",desc:"Make your meetings and classes more interactive by live polling to collect instant feedback. Include multiple choice, open text, word cloud, survey, Q&A, quizzes.",icon:"https://statics.imgkits.com/landingpage_poll_maker_logo.png",url:"https://workspace.google.com/marketplace/app/live_polls_maker_create_interactive_pres/964324417500",app_url:"https://www.livepolls.app",chrome_addon_url:"",edge_addon_url:"",for:["Slides"],type:0,key:"poll-maker"},{name:"Slides™ Translator",desc:"Translate Slides™ content quickly and automatically with just one click, we support hundreds of languages.",icon:"https://statics.imgkits.com/landingpage_slides_translator.png",url:"https://workspace.google.com/marketplace/app/slides_translator_translate_whole_slides/552662411825",app_url:"https://www.livepolls.app/slides_translator",chrome_addon_url:"",edge_addon_url:"",for:["Slides"],type:0,key:"slides_translator"},{name:"Screen/Voice/Video Recorder",desc:"Record screen, record audio, and record video, automatically saves them to your Drive™, you can easily insert them into Slides™, Sheets™, and Docs™.",icon:"https://statics.imgkits.com/landingpage_recorder_logo.png",url:"https://workspace.google.com/marketplace/app/screen_recorder_voice_recorder_video_rec/659492711995",app_url:"https://recorder.livepolls.app",chrome_addon_url:"",edge_addon_url:"",for:["Slides","Docs","Sheets"],type:0,key:"recorder"},{name:"Geocode for Sheets™",desc:"Our geocoding tool can batch convert addresses to GPS coordinates (latitude,longitude), convert coordinates to addresses, create custom interactive maps from these data.",icon:"https://statics.imgkits.com/landingpage_geocode_logo.jpg",url:"https://workspace.google.com/u/0/marketplace/app/geocode_for_sheets_mapping_sheets/1083994590944",app_url:"https://www.livepolls.app/geocode",chrome_addon_url:"",edge_addon_url:"",for:["Sheets"],type:1,key:"geocode"},{name:"GPT Mind Maps Maker",desc:"AI-powered Mind Mapping tool based on ChatGPT, can quickly generate a mind map from text prompts, pdf, video, web page. And you can continue to edit it in a WYSIWYG way.",icon:"https://statics.imgkits.com/landingpage_mindmap_logo.png",url:"https://workspace.google.com/marketplace/app/gpt_mind_maps_maker_create_mind_map_with/571560817026",app_url:"https://www.livepolls.app/mindmap",chrome_addon_url:"https://chromewebstore.google.com/detail/gpt-mind-maps-maker-chatg/kobjlbfijacndpcbmnehimaonohaphjd",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/gpt-mind-maps-maker-cre/ifgemhbambhhdppdgcfflbgokfindfgg",for:["Docs","Slides"],type:2,key:"mindmap"},{name:"GPT Slides™ Maker",desc:"Let ChatGPT convert text descriptions, summaries of videos/PDFs/web pages into visually appealing Slides™ in seconds.",icon:"https://statics.imgkits.com/landingpage_ai_slides_generator_logo.png",url:"https://workspace.google.com/marketplace/app/gpt_slides_maker_text_video_pdf_url_to_s/715931934006",app_url:"https://www.livepolls.app/ai_slide_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/gpt-powerpoint-maker-text/ejofiomkeagajdhnbbohfojbcnaibdnb",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/gpt-powerpoint-maker-tex/njaengaginpfbkojgjabbaadbcmhglgk",for:["Slides"],type:0,key:"ai_slide_generator"},{name:"More Google Workspace >",url:"https://www.livepolls.app/apps"}]),d=n.ref([{name:"AI Image Generator",desc:"Turn text prompts into an image with our AI Image Generator, you can get the best free stock photos without searching from Pexels or unsplash.",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://workspace.google.com/u/0/marketplace/app/ai_image_generator_text_to_image_online/457606665049",app_url:"https://www.livepolls.app/ai_image_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/ai-image-generator-text-t/nfnkkmgbapopddmomigpnhcnffjdmfgo",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/miibamllpjnieaaienhfolfomibibekl",for:["Chrome"],type:0,key:"AI_image_generator"},{name:"Tweet Delete - Bulk Delete Tweets",desc:"Delete Twitter posts/X posts in bulk based on advanced filtering. Can run once or automatically on a schedule.",icon:"https://statics.imgkits.com/tweet_delete_logo.png",url:"",app_url:"https://www.livepolls.app/tweet_delete",chrome_addon_url:"https://chromewebstore.google.com/detail/tweet-delete-bulk-delete/iiopbdanicaeijelgbbilpmoeongakkf",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/ngeadmieiogcjcnojilkcpgedaeoface",for:["Chrome"],type:1,key:"tweet_delete"},{name:"Image Translator",desc:"Quickly translate images into over 30 languages through Google Translate.",icon:"https://statics.imgkits.com/landingpage_image_translator.png",url:"https://workspace.google.com/u/0/marketplace/app/image_translator_translate_image_by_chat/641614143005",app_url:"https://www.livepolls.app/image_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/image-translator-translat/pbhpcbdjngblklnibanbkgkogjmbjeoe",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/opimdenmabjbacmheeebgjckapkmedkp",for:["Chrome"],type:0,key:"image_translator"},{name:"Video Translator",desc:"AI-enabled video translator to easily and quickly translate the video into any other language. It's online and easy to handle.",icon:"https://statics.imgkits.com/landingpage_video_translator_logo.png",url:"https://workspace.google.com/marketplace/app/video_translator_translate_video_online/285433175728",app_url:"https://www.livepolls.app/video_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/video-translator-translat/ofhkcffhkdhjpnpplihikdpkcpailpnc",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/video-translator-transl/lnfofgbefnahkjdkpehdnokfnabgombj",for:["Chrome"],type:2,key:"video_translator"},{name:"Document Translator",desc:"Translate PDF, Word/Google Docs , Excel/Google Sheets, PowerPoint/Google Slides, and other documents with just one click.",icon:"https://statics.imgkits.com/landingpage_translate_logo.png",url:"https://workspace.google.com/marketplace/app/document_translator_translate_pdf_pptsli/151510329810",app_url:"https://translate.livepolls.app",chrome_addon_url:"https://chromewebstore.google.com/detail/document-translator-trans/ekgbhhaimaahdlaiplkafkomhoblilel",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/document-translator-tra/kolojdicjhalckcppakjlfgcgmmgblmn",for:["Chrome"],type:0,key:"translate"},{name:"Table OCR",desc:"Extract tables from PDFs, scanned files & images. Capture relevant data stored in tabular structures on any document, save to Sheets.",icon:"https://statics.imgkits.com/landingpage_table_ocr.png",url:"https://workspace.google.com/u/0/marketplace/app/table_ocr_extract_tabular_data_from_pdfi/959950861676",app_url:"https://www.livepolls.app/table_ocr",chrome_addon_url:"https://chromewebstore.google.com/detail/table-ocr-extract-tabular/chcphpeifolppcfemopkgpbkenaoijpl",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/table-ocr-extract-tabul/cblmfjclolkedgdlpaldomfbknbgdaje",for:["Chrome"],type:0,key:"table_ocr"},{name:"More Chrome Extensions >",chrome_addon_url:"https://www.livepolls.app/chrome_addons",edge_addon_url:"https://www.livepolls.app/edge_addons"}]),c=n.ref([{name:"AI Image Generator",desc:"Turn text prompts into an image with our AI Image Generator, you can get the best free stock photos without searching from Pexels or unsplash.",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://workspace.google.com/u/0/marketplace/app/ai_image_generator_text_to_image_online/457606665049",app_url:"https://www.livepolls.app/ai_image_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/ai-image-generator-text-t/nfnkkmgbapopddmomigpnhcnffjdmfgo",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/miibamllpjnieaaienhfolfomibibekl",for:["Chrome"],type:0,key:"AI_image_generator"},{name:"Tweet Delete - Bulk Delete Tweets",desc:"Delete Twitter posts/X posts in bulk based on advanced filtering. Can run once or automatically on a schedule.",icon:"https://statics.imgkits.com/tweet_delete_logo.png",url:"",app_url:"https://www.livepolls.app/tweet_delete",chrome_addon_url:"https://chromewebstore.google.com/detail/tweet-delete-bulk-delete/iiopbdanicaeijelgbbilpmoeongakkf",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/ngeadmieiogcjcnojilkcpgedaeoface",for:["Chrome"],type:1,key:"tweet_delete"},{name:"Image Translator",desc:"Quickly translate images into over 30 languages through Google Translate.",icon:"https://statics.imgkits.com/landingpage_image_translator.png",url:"https://workspace.google.com/u/0/marketplace/app/image_translator_translate_image_by_chat/641614143005",app_url:"https://www.livepolls.app/image_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/image-translator-translat/pbhpcbdjngblklnibanbkgkogjmbjeoe",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/opimdenmabjbacmheeebgjckapkmedkp",for:["Chrome"],type:0,key:"image_translator"},{name:"Video Translator",desc:"AI-enabled video translator to easily and quickly translate the video into any other language. It's online and easy to handle.",icon:"https://statics.imgkits.com/landingpage_video_translator_logo.png",url:"https://workspace.google.com/marketplace/app/video_translator_translate_video_online/285433175728",app_url:"https://www.livepolls.app/video_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/video-translator-translat/ofhkcffhkdhjpnpplihikdpkcpailpnc",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/video-translator-transl/lnfofgbefnahkjdkpehdnokfnabgombj",for:["Chrome"],type:2,key:"video_translator"},{name:"Document Translator",desc:"Translate PDF, Word/Google Docs , Excel/Google Sheets, PowerPoint/Google Slides, and other documents with just one click.",icon:"https://statics.imgkits.com/landingpage_translate_logo.png",url:"https://workspace.google.com/marketplace/app/document_translator_translate_pdf_pptsli/151510329810",app_url:"https://translate.livepolls.app",chrome_addon_url:"https://chromewebstore.google.com/detail/document-translator-trans/ekgbhhaimaahdlaiplkafkomhoblilel",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/document-translator-tra/kolojdicjhalckcppakjlfgcgmmgblmn",for:["Chrome"],type:0,key:"translate"},{name:"Table OCR",desc:"Extract tables from PDFs, scanned files & images. Capture relevant data stored in tabular structures on any document, save to Sheets.",icon:"https://statics.imgkits.com/landingpage_table_ocr.png",url:"https://workspace.google.com/u/0/marketplace/app/table_ocr_extract_tabular_data_from_pdfi/959950861676",app_url:"https://www.livepolls.app/table_ocr",chrome_addon_url:"https://chromewebstore.google.com/detail/table-ocr-extract-tabular/chcphpeifolppcfemopkgpbkenaoijpl",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/table-ocr-extract-tabul/cblmfjclolkedgdlpaldomfbknbgdaje",for:["Chrome"],type:0,key:"table_ocr"},{name:"More Edge Extensions >",edge_addon_url:"https://www.livepolls.app/edge_addons"}]),u=n.ref(o.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),p=n.ref(a||"/"),m=n.ref(!1),g=n.ref(null),f=(x,w)=>{window.app_type?x=`${x}?from=${window.app_type}`:g.value&&(x=`${x}?from=${g.value}`),w==="_blank"?window.open(x,"_blank"):window.location.href=x},h=n.computed(()=>{var x;return(x=o.userStore)==null?void 0:x.user}),b=()=>{o.userStore.showLogin(!0)},y=n.ref(!1);n.onMounted(()=>{ri(a.substring(1),"chrome_addon").then(x=>{d.value=x.data.slice(0,6),d.value.push({name:"More Chrome Extensions >",chrome_addon_url:"https://www.livepolls.app/chrome_addons",edge_addon_url:"https://www.livepolls.app/apps"}),c.value=x.data.slice(0,6),c.value.push({name:"More Edge Extensions >",edge_addon_url:"https://www.livepolls.app/edge_addons"})}),ri(a.substring(1),"google_workspace").then(x=>{const w=JSON.parse(x.message);i.value=w.map(E=>{const{desc:P,logo:I,name:L,url:A}=E;return{desc:P,icon:I,name:L,url:A}}),l.value=x.data.slice(0,6),l.value.push({name:"More Google Workspace >",url:"https://www.livepolls.app/apps"})}),n.nextTick(()=>{const x=new URL(location.href);g.value=window.app_type||x.searchParams.get("from");const w=Ye()+"_app_type";localStorage.getItem(w)||localStorage.setItem(w,g.value)}),o.userStore.getUser(o.driveQuery).then(({profile:x})=>{t("initUserCallback",x),!x&&o.from!="login"&&!o.isShenHe&&_()},()=>{})});async function k(){C();const x=Xe.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await o.userStore.getUser(o.driveQuery),t("loginSuccess")}catch{}finally{x.close()}}function C(){o.userStore.showLogin(!1)}function T(){m.value=!0}function S(){m.value=!1}function O(){m.value=!m.value}function _(x){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:B}),google.accounts.id.prompt())}function B(x){!x||!x.credential||oi(x.credential).then(w=>{o.userStore?o.userStore.getUser(o.driveQuery):location.href=location.pathname},w=>{})}function M(){o.userStore.hideInvite(!1)}return(x,w)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.normalizeClass(["h-[84px]",[e.z_index]])},[n.createElementVNode("div",{class:n.normalizeClass(["h-[84px] fixed top-0 left-0 w-full bg-white",[e.z_index]])},[n.createElementVNode("header",{class:n.normalizeClass(["absolute h-[84px] top-0 bg-white inset-x-0 z-30 mx-auto",[e.className]])},[n.createCommentVNode(" nav "),n.createElementVNode("nav",w1,[n.createCommentVNode(" 显示 当前项目产品logo和 名称 大小屏幕公用 "),n.createElementVNode("div",E1,[v1,n.createElementVNode("a",{href:p.value,class:"-m-1.5 p-1.5 flex items-center",id:"logo_link"},[n.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,x1),n.createElementVNode("span",S1,n.toDisplayString(s.value.name),1)],8,k1)]),n.createCommentVNode(" 小屏幕 menu菜单栏 "),n.createElementVNode("div",C1,[n.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:w[0]||(w[0]=E=>y.value=!0)},[N1,n.createVNode(n.unref(xg),{class:"h-6 w-6","aria-hidden":"true"})])]),n.createCommentVNode(" lg>屏幕 显示 workspace 产品推荐的组件 "),n.createElementVNode("div",T1,[n.createCommentVNode(" 弹出菜单栏组件 "),e.isShenHe?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Bi),{key:0,class:"relative bug_buuton_wrap",id:"other_apps_popover"},{default:n.withCtx(()=>[n.createVNode(n.unref(vg),{class:"bg-transparent border-0 outline-none"},{default:n.withCtx(()=>[n.createElementVNode("div",O1,[P1,n.createVNode(n.unref(Z0),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),n.createVNode(n.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:n.withCtx(()=>[n.createVNode(n.unref(kg),{class:"fixed mx-auto left-0 right-0 shadow-lg z-10 bg-white mt-5 flex w-screen ring-1 ring-gray-900/5"},{default:n.withCtx(()=>[n.createCommentVNode(" 分三个模块 "),n.createElementVNode("div",{class:n.normalizeClass(["flex w-screen mx-auto px-10",[e.PopoverPanelClass]])},[n.createElementVNode("div",B1,[V1,n.createCommentVNode(" face_swap_ai.png "),n.createElementVNode("div",$1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,(E,P)=>(n.openBlock(),n.createElementBlock("a",{key:P,target:"_blank",href:E.url+(g.value?"?from="+g.value:""),class:"cursor-pointer flex items-center bg-gradient-to-r h-24 mb-6 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-60 xl:w-72 p-3"},[n.createElementVNode("img",{class:"h-16 w-16 mr-1 rounded",src:E.icon},null,8,M1),n.createElementVNode("div",I1,[n.createElementVNode("h3",R1,n.toDisplayString(E.name),1),n.createElementVNode("div",L1,n.toDisplayString(E.desc),1)])],8,A1))),128))])]),n.createCommentVNode(" workspace "),n.createElementVNode("div",F1,[D1,n.createElementVNode("div",j1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:g.value?E.url+"?from="+g.value:E.url,class:"truncate font-normal hover:underline block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,z1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,H1),E.type==1?(n.openBlock(),n.createElementBlock("span",U1,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",q1,"AI")):n.createCommentVNode("v-if",!0)]))),128))])]),n.createCommentVNode(" chrome_addon "),n.createElementVNode("div",W1,[G1,n.createElementVNode("div",K1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:E.chrome_addon_url,class:"truncate font-normal hover:underline block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,Z1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,J1),E.type==1?(n.openBlock(),n.createElementBlock("span",X1,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",Y1,"AI")):n.createCommentVNode("v-if",!0)]))),128))])]),n.createCommentVNode(" edge_addon "),n.createElementVNode("div",Q1,[eb,n.createElementVNode("div",tb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:E.edge_addon_url,class:"truncate hover:underline font-normal block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,ob)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,nb),E.type==1?(n.openBlock(),n.createElementBlock("span",rb,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",sb,"AI")):n.createCommentVNode("v-if",!0)]))),128))])])],2)]),_:1})]),_:1})]),_:1})),n.createCommentVNode(" 产品slot "),n.renderSlot(x.$slots,"product-slot",{},void 0,!0),n.createCommentVNode(" 下面这个非菜单栏 "),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,E=>(n.openBlock(),n.createElementBlock("a",{key:E.name,onClick:n.withModifiers(P=>f(E.href,E.target),["prevent"]),class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},n.toDisplayString(E.name),9,ab))),128))]),n.createCommentVNode(" lg>屏幕 显示 非审核 显示login 已经登录显示用户信息 "),e.isShenHe?(n.openBlock(),n.createElementBlock("div",ib,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",lb,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)])])):h.value?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createCommentVNode(" 用户信息 "),n.createElementVNode("div",pb,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",fb,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)]),n.createElementVNode("div",{class:"flex items-center",onMouseenter:T,onMouseleave:S},[n.createElementVNode("div",mb,[n.createElementVNode("span",null,n.toDisplayString(h.value.username),1)]),n.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:h.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,hb),gb,n.withDirectives(n.createElementVNode("div",null,[n.createElementVNode("div",bb,[n.createCommentVNode(" 用户信息 移入菜单栏 "),h.value?(n.openBlock(),n.createBlock(Di,{key:0,user:h.value},null,8,["user"])):n.createCommentVNode("v-if",!0)])],512),[[n.vShow,m.value]])],32)])],2112)):(n.openBlock(),n.createElementBlock("div",cb,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",db,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)]),n.createElementVNode("a",{onClick:b,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[n.createTextVNode("Log in"),ub])]))]),n.createCommentVNode(" 小屏幕 menu菜单栏 "),n.createVNode(n.unref(yg),{as:"div",class:"lg:hidden",onClose:w[2]||(w[2]=E=>y.value=!1),open:y.value},{default:n.withCtx(()=>[yb,n.createVNode(n.unref(_g),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:n.withCtx(()=>[n.createElementVNode("div",_b,[n.createElementVNode("a",{href:p.value,class:"-m-1.5 p-1.5"},[n.createElementVNode("span",Eb,n.toDisplayString(s.value.name),1),n.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,vb)],8,wb),n.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:w[1]||(w[1]=E=>y.value=!1)},[kb,n.createVNode(n.unref(Sg),{class:"h-6 w-6","aria-hidden":"true"})])]),n.createElementVNode("div",xb,[n.createElementVNode("div",Sb,[n.createElementVNode("div",Cb,[n.createVNode(_1,{hotApps:i.value,workspaceTools:l.value,chrome_addon_tools:d.value,edge_addon_tools:c.value},null,8,["hotApps","workspaceTools","chrome_addon_tools","edge_addon_tools"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,E=>(n.openBlock(),n.createElementBlock("a",{key:E.name,onClick:n.withModifiers(P=>f(E.href,E.target),["prevent"]),class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},n.toDisplayString(E.name),9,Nb))),128))]),n.createCommentVNode(" 移动端语言选择slot "),n.createElementVNode("div",Tb,[n.renderSlot(x.$slots,"language-selector-mobile",{},void 0,!0)]),h.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog block ml-10 py-6 right flew-center",onClick:O},[h.value?(n.openBlock(),n.createBlock(Di,{key:0,user:h.value},null,8,["user"])):n.createCommentVNode("v-if",!0)])):(n.openBlock(),n.createElementBlock("div",Ob,[n.createElementVNode("a",{href:"#",onClick:b,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:3})]),_:3},8,["open"])],2)],2)],2),n.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(n.openBlock(),n.createBlock(a0,{key:0,onSuccess:k,onClose:C})):n.createCommentVNode("v-if",!0),e.userStore.isShowToast?(n.openBlock(),n.createBlock(H0,{key:1,content:e.userStore.toastContent},null,8,["content"])):n.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(n.openBlock(),n.createBlock(J0,{key:2,onCancel:M})):n.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/sen/Desktop/公司Code/workspace/z_liusenlin_project/Translation_Video/src/components/Header.vue"]]),Pb={install(e){e.component("my-header",ji)}};$e.Header=ji,$e.default=Pb,Object.defineProperties($e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
35
|
+
</div> `),n.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[9]||(t[9]=(...b)=>a.handlePay&&a.handlePay(...b))},[n.createElementVNode("div",k0,[o.user.is_subscribed?(n.openBlock(),n.createElementBlock("svg",x0,S0)):(n.openBlock(),n.createElementBlock("svg",C0,N0)),n.createElementVNode("span",null,"My Plan: "+n.toDisplayString(o.user.is_subscribed?"Premium Plan":"free"),1),(l=(i=o.user)==null?void 0:i.detail)!=null&&l.cancelled&&((c=(d=o.user)==null?void 0:d.detail)!=null&&c.ends_at)?(n.openBlock(),n.createElementBlock("div",T0,[n.createElementVNode("span",O0,"Ends on "+n.toDisplayString(a.formatDate(o.user.detail.ends_at)),1)])):n.createCommentVNode("v-if",!0)]),o.user.is_subscribed?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("a",{key:0,href:s.path+"/pricing",target:"_self"},B0,8,P0)),o.user.is_subscribed&&((p=(u=o.user)==null?void 0:u.detail)!=null&&p.stripe_plan)&&!((g=(m=o.user)==null?void 0:m.detail)!=null&&g.cancelled)&&!s.cancelledLocally?(n.openBlock(),n.createElementBlock("button",{key:1,class:"cancel_btn text-md rounded-xl py-2",onClick:t[8]||(t[8]=(...b)=>a.handleCancelSubscription&&a.handleCancelSubscription(...b))},V0)):n.createCommentVNode("v-if",!0),o.user.is_subscribed&&((h=(f=o.user)==null?void 0:f.detail)!=null&&h.cancelled||s.cancelledLocally)?(n.openBlock(),n.createElementBlock("span",$0," Cancelled ")):n.createCommentVNode("v-if",!0)]),n.createElementVNode("a",{href:s.path+"/dashboard",target:"_blank"},M0,8,A0),n.createElementVNode("a",{rel:"nofollow",href:s.path+"/user/logout"},R0,8,I0)])],64)}const Di=st(m0,[["render",L0],["__scopeId","data-v-8580ad75"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),_y="",F0={props:["content","top"]},D0=(e=>(n.pushScopeId("data-v-7b6def48"),e=e(),n.popScopeId(),e))(()=>n.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[n.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function j0(e,t,o,r,s,a){return n.openBlock(),n.createElementBlock("div",{class:"toast-wrapper",style:n.normalizeStyle({top:o.top||"60PX"})},[D0,n.createElementVNode("span",null,"Congratulations! you have successfully "+n.toDisplayString(o.content)+".",1)],4)}const H0=st(F0,[["render",j0],["__scopeId","data-v-7b6def48"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Toast.vue"]]),Ey="",z0={class:"background-cover"},U0=n.createElementVNode("div",{class:"invite-success"},[n.createElementVNode("svg",{t:"1658474740344",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3982",width:"32",height:"32"},[n.createElementVNode("path",{d:"M512 57.677643C261.084506 57.677643 57.677643 261.084506 57.677643 512s203.406863 454.322357 454.322357 454.322357 454.322357-203.406863 454.322357-454.322357S762.915494 57.677643 512 57.677643z",fill:"#89B7FF","p-id":"3983"}),n.createElementVNode("path",{d:"M574.292742 467.479958c98.402496-98.402496 199.008277-157.332187 224.708547-131.631916 25.706482 25.706482-33.222322 126.311376-131.626592 224.714759-69.494461 69.494461-140.091009 119.304873-184.627023 133.519306-5.030378 2.413588-10.914385 3.680721-17.476326 3.871501-5.891106 0.594523-11.002232 0.199653-15.218024-1.247611-31.752873-5.672818-73.424527-30.023432-111.022364-67.622156-58.328069-58.327182-84.768388-126.443591-59.068118-152.143862 25.706482-25.706482 93.822003 0.733837 152.150073 59.061907 16.800166 16.800166 30.956035 34.414031 41.981338 51.592208 24.079085-36.552541 58.614683-78.530329 100.199376-120.114136z",fill:"#FFFFFF","p-id":"3984"})])],-1),q0=n.createElementVNode("div",{class:"invite-title"},[n.createElementVNode("span",null,"Successfully subscribed!")],-1),W0=n.createElementVNode("p",{class:"invite-desc"},"You have successfully subscribed to the business plan and now you have the right to add licenses for partners.",-1),G0=[n.createElementVNode("span",null,"Invite Partners Now",-1)],K0=[n.createElementVNode("span",null,"Invite Later",-1)],J0=st({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const o=kt(),r=()=>{t("cancel"),location.href=o+"/dashboard"},s=()=>{t("cancel")};return(a,i)=>(n.openBlock(),n.createElementBlock("div",z0,[n.createElementVNode("div",{class:"invite-dialog"},[U0,q0,W0,n.createElementVNode("div",null,[n.createElementVNode("div",{class:"button button-up",onClick:r},G0),n.createElementVNode("div",{class:"button button-down",onClick:s},K0)])])]))}},[["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function Z0(e,t){return n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[n.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Sy="",Cy="",Ny="",Ty="",Oy="",Xt=e=>(n.pushScopeId("data-v-b9e2cd3f"),e=e(),n.popScopeId(),e),X0=Xt(()=>n.createElementVNode("span",null,"Our other apps",-1)),Y0=Xt(()=>n.createElementVNode("img",{src:"https://statics.imgkits.com/lsl_ali_icon4392779680.png ",class:"h-[20px] mr-2 w-[20px] inline-block"},null,-1)),Q0=["href"],e1=["src"],t1={class:"flex flex-col pl-1"},n1={class:"text-lg font-semibold"},o1={class:"text-gray-500 font-semibold text-sm truncate w-52"},r1=Xt(()=>n.createElementVNode("img",{style:{width:"20px",height:"20px",marginRight:"8px"},src:"https://statics.imgkits.com/images/workspace_logo.png ",class:"h-[20px] mr-2 w-[20px] inline-block"},null,-1)),s1=["href"],a1=["src"],i1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},l1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},c1=Xt(()=>n.createElementVNode("svg",{class:"inline-block mr-2","data-v-8a1f9b8f":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"20",viewBox:"0 0 192 192",width:"20"},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M0 0h192v192H0z",fill:"none"}),n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",id:"a"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"b"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#a"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v152H8z",fill:"#eee"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M116 36H76c-4.42 0-8 3.58-8 8s3.58 8 8 8h40c4.42 0 8-3.58 8-8s-3.58-8-8-8z",fill:"#fff"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#b)"},[n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",id:"c",r:"76"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"d"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#c"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M32.07 84v93.27h34.01L96 125.45h76V84zm0 0v93.27h34.01L96 125.45h76V84z",fill:"#DB4437"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M20 236h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24zm0 0h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24z",fill:"#0F9D58"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M96 125.45l29.92 51.82L92.35 236H172V125.45zm0 0l29.92 51.82L92.35 236H172V125.45z",fill:"#FFCD40"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#d)"},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#F1F1F1",r:"34.55"}),n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#4285F4",r:"27.64"})])]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v76H8z",fill:"#212121","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 95h176v1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 96h176v1H8z",fill:"#fff","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M116 52H76c-4.25 0-7.72-3.32-7.97-7.5-.02.17-.03.33-.03.5 0 4.42 3.58 8 8 8h40c4.42 0 8-3.58 8-8 0-.17-.01-.33-.03-.5-.25 4.18-3.72 7.5-7.97 7.5zM8 20v1h176v-1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M76 36h40c4.25 0 7.72 3.32 7.97 7.5.01-.17.03-.33.03-.5 0-4.42-3.58-8-8-8H76c-4.42 0-8 3.58-8 8 0 .17.01.33.03.5.25-4.18 3.72-7.5 7.97-7.5zm96 135H20c-6.6 0-12-5.4-12-12v1c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12v-1c0 6.6-5.4 12-12 12z",fill:"#231F20","fill-opacity":".1"}),n.createElementVNode("radialGradient",{"data-v-8a1f9b8f":"",cx:"7.502",cy:"19.344",gradientUnits:"userSpaceOnUse",id:"e",r:"227.596"},[n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"0","stop-color":"#fff","stop-opacity":".1"}),n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"1","stop-color":"#fff","stop-opacity":"0"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",fill:"url(#e)"})],-1)),d1=["href"],u1=["src"],p1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},f1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},m1=Xt(()=>n.createElementVNode("img",{style:{width:"20px",height:"20px",marginRight:"8px"},src:"https://statics.imgkits.com/images/edge_logo.png",class:"inline-block w-[20px] h-[20px] mr-2"},null,-1)),h1=["href"],g1=["src"],b1={key:1,class:"ml-2 h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},y1={key:2,class:"ml-2 h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},_1=st({__name:"MobileMoreApps",props:{hotApps:Array,workspaceTools:Array,chrome_addon_tools:Array,edge_addon_tools:Array},setup(e){const t=n.ref(null);return n.onMounted(()=>{const o=new URL(location.href);t.value=o.searchParams.get("from")||null}),(o,r)=>{const s=fh,a=zm,i=Lm;return n.openBlock(),n.createBlock(i,{class:"tac"},{default:n.withCtx(()=>[n.createVNode(a,{span:12},{default:n.withCtx(()=>[n.createVNode(n.unref(ph),{"collapse-transition":"false"},{default:n.withCtx(()=>[n.createVNode(s,{"collapse-transition":"false",class:"w-full",index:"1"},{title:n.withCtx(()=>[X0]),default:n.withCtx(()=>[n.createVNode(s,{index:"1-1"},{title:n.withCtx(()=>[Y0,n.createTextVNode(" Hot Tools ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hotApps,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"hot_item",index:"1-1-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{target:"_blank",href:l.app_url+(t.value?"?from="+t.value:""),class:"cursor-pointer flex items-center bg-gradient-to-r h-24 mb-6 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-96 p-3"},[n.createElementVNode("img",{style:{height:"64px",width:"64px",marginRight:"4px",borderRadius:"4px"},class:"h-16 w-16 mr-1 rounded",src:l.icon},null,8,e1),n.createElementVNode("div",t1,[n.createElementVNode("h3",n1,n.toDisplayString(l.name),1),n.createElementVNode("div",o1,n.toDisplayString(l.desc),1)])],8,Q0)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-2"},{title:n.withCtx(()=>[r1,n.createTextVNode(" Google Workspace Tools ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.workspaceTools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-2-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:t.value?l.url+"?from="+t.value:l.url,class:"flex w-full items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,a1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",i1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",l1,"AI")):n.createCommentVNode("v-if",!0)],8,s1)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-3"},{title:n.withCtx(()=>[c1,n.createTextVNode(" Chrome Extensions ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.chrome_addon_tools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-3-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:l.chrome_addon_url,class:"w-full flex items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,u1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",p1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",f1,"AI")):n.createCommentVNode("v-if",!0)],8,d1)]),_:2},1032,["index"]))),256))]),_:1}),n.createVNode(s,{index:"1-4"},{title:n.withCtx(()=>[m1,n.createTextVNode(" Edge Extensions ")]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.edge_addon_tools,(l,d)=>(n.openBlock(),n.createBlock(n.unref(jn),{class:"flex items-center",index:"1-4-"+d},{default:n.withCtx(()=>[n.createElementVNode("a",{href:l.edge_addon_url,class:"w-full flex items-center font-normal hover:underline p-2 hover:text-indigo-600",target:"_blank"},[l.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:l.icon},null,8,g1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(l.name)+" ",1),l.type==1?(n.openBlock(),n.createElementBlock("span",b1,"Hot")):n.createCommentVNode("v-if",!0),l.type==2?(n.openBlock(),n.createElementBlock("span",y1,"AI")):n.createCommentVNode("v-if",!0)],8,h1)]),_:2},1032,["index"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-b9e2cd3f"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/MobileMoreApps.vue"]]),By="",Vy="",we=e=>(n.pushScopeId("data-v-c970699f"),e=e(),n.popScopeId(),e),w1={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},E1={class:"flex lg:flex-1"},v1=we(()=>n.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),k1=["href"],x1=["src","alt"],S1={class:"pl-2 text-xl"},C1={class:"flex lg:hidden"},N1=we(()=>n.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),T1={class:"hidden lg:flex lg:gap-x-12"},O1={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},P1=we(()=>n.createElementVNode("span",null,"Our other apps",-1)),B1={class:"hot w-1/4 border-r mr-10"},V1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/lsl_ali_icon4392779680.png ",class:"h-[32px] mr-2 w-[32px] inline-block"}),n.createTextVNode(" Hot Tools ")],-1)),$1={class:"h-[300px] pt-5 w-[97%]"},A1=["href"],M1=["src"],I1={class:"flex flex-col pl-1"},R1={class:"text font-semibold"},L1={class:"text-gray-500 font-semibold text-sm"},F1={class:"flex w-1/4 border-r mr-10 flex-col"},D1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/images/workspace_logo.png ",class:"h-[32px] mr-2 w-[32px] inline-block"}),n.createTextVNode(" Google Workspace ")],-1)),j1={class:"h-[300px] w-[98%] text-sm font-semibold leading-6 text-gray-900 pt-2"},H1=["href"],z1=["src"],U1={key:0,class:"h-4 flex items-center font-normal bg-[#f16a41] text-white rounded-sm px-1 text-center"},q1={key:1,class:"h-4 flex items-center font-normal bg-[#5b4fff] text-white rounded-sm px-1 text-center"},W1={class:"flex w-1/4 border-r mr-10 flex-col"},G1=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("svg",{class:"inline-block mr-2","data-v-8a1f9b8f":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"32",viewBox:"0 0 192 192",width:"32"},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M0 0h192v192H0z",fill:"none"}),n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",id:"a"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"b"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#a"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v152H8z",fill:"#eee"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M116 36H76c-4.42 0-8 3.58-8 8s3.58 8 8 8h40c4.42 0 8-3.58 8-8s-3.58-8-8-8z",fill:"#fff"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#b)"},[n.createElementVNode("defs",{"data-v-8a1f9b8f":""},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",id:"c",r:"76"})]),n.createElementVNode("clipPath",{"data-v-8a1f9b8f":"",id:"d"},[n.createElementVNode("use",{"data-v-8a1f9b8f":"",overflow:"visible","xlink:href":"#c"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M32.07 84v93.27h34.01L96 125.45h76V84zm0 0v93.27h34.01L96 125.45h76V84z",fill:"#DB4437"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M20 236h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24zm0 0h72.34l33.58-33.58v-25.14l-59.84-.01L20 98.24z",fill:"#0F9D58"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#d)",d:"M96 125.45l29.92 51.82L92.35 236H172V125.45zm0 0l29.92 51.82L92.35 236H172V125.45z",fill:"#FFCD40"}),n.createElementVNode("g",{"data-v-8a1f9b8f":"","clip-path":"url(#d)"},[n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#F1F1F1",r:"34.55"}),n.createElementVNode("circle",{"data-v-8a1f9b8f":"",cx:"96",cy:"160",fill:"#4285F4",r:"27.64"})])]),n.createElementVNode("path",{"data-v-8a1f9b8f":"","clip-path":"url(#b)",d:"M8 20h176v76H8z",fill:"#212121","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 95h176v1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 96h176v1H8z",fill:"#fff","fill-opacity":".05"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M116 52H76c-4.25 0-7.72-3.32-7.97-7.5-.02.17-.03.33-.03.5 0 4.42 3.58 8 8 8h40c4.42 0 8-3.58 8-8 0-.17-.01-.33-.03-.5-.25 4.18-3.72 7.5-7.97 7.5zM8 20v1h176v-1H8z",fill:"#212121","fill-opacity":".02"}),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M76 36h40c4.25 0 7.72 3.32 7.97 7.5.01-.17.03-.33.03-.5 0-4.42-3.58-8-8-8H76c-4.42 0-8 3.58-8 8 0 .17.01.33.03.5.25-4.18 3.72-7.5 7.97-7.5zm96 135H20c-6.6 0-12-5.4-12-12v1c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12v-1c0 6.6-5.4 12-12 12z",fill:"#231F20","fill-opacity":".1"}),n.createElementVNode("radialGradient",{"data-v-8a1f9b8f":"",cx:"7.502",cy:"19.344",gradientUnits:"userSpaceOnUse",id:"e",r:"227.596"},[n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"0","stop-color":"#fff","stop-opacity":".1"}),n.createElementVNode("stop",{"data-v-8a1f9b8f":"",offset:"1","stop-color":"#fff","stop-opacity":"0"})]),n.createElementVNode("path",{"data-v-8a1f9b8f":"",d:"M8 20v140c0 6.6 5.4 12 12 12h152c6.6 0 12-5.4 12-12V20H8zm108 32H76c-4.42 0-8-3.58-8-8s3.58-8 8-8h40c4.42 0 8 3.58 8 8s-3.58 8-8 8z",fill:"url(#e)"})]),n.createTextVNode(" Chrome Extensions ")],-1)),K1={class:"h-[300px] text-sm w-[98%] font-semibold leading-6 pt-2 text-gray-900"},J1=["href"],Z1=["src"],X1={key:0,class:"h-4 font-normal flex items-center bg-[#f16a41] text-white rounded-sm px-1 text-center"},Y1={key:1,class:"h-4 font-normal flex items-center bg-[#5b4fff] text-white rounded-sm px-1 text-center"},Q1={class:"flex w-1/4 mr-10 flex-col"},eb=we(()=>n.createElementVNode("div",{class:"py-3 text-sm font-bold flex items-center leading-6"},[n.createElementVNode("img",{src:"https://statics.imgkits.com/images/edge_logo.png",class:"inline-block w-[32px] h-[32px] mr-2"}),n.createTextVNode(" Edge Extensions ")],-1)),tb={class:"text-sm font-semibold leading-6 text-gray-900 pt-2"},nb=["href"],ob=["src"],rb={key:0,class:"h-4 font-normal flex items-center bg-[#f16a41] text-white rounded-sm px-1 text-center"},sb={key:1,class:"h-4 font-normal flex items-center bg-[#5b4fff] text-white rounded-sm px-1 text-center"},ab=["onClick"],ib={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},lb={class:"mr-4"},cb={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end items-center"},db={class:"mr-4"},ub=we(()=>n.createElementVNode("span",{"aria-hidden":"true"},null,-1)),pb={class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},fb={class:"mr-4"},mb={class:"pr-4"},hb=["src"],gb=we(()=>n.createElementVNode("div",{class:"open-icon"},null,-1)),bb={class:"user-center-dialog shadow-xl"},yb=we(()=>n.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),_b={class:"flex items-center justify-between"},wb=["href"],Eb={class:"sr-only"},vb=["src","alt"],kb=we(()=>n.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),xb={class:"mt-6 flow-root"},Sb={class:"-my-6 divide-y divide-gray-500/10"},Cb={class:"space-y-2 py-6"},Nb=["onClick"],Tb={class:"py-4"},Ob={key:0,class:"py-6"},ji=st({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userStore:{type:Object,default:()=>{}},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"},driveQuery:{type:Boolean,default:!1},PopoverPanelClass:{type:String,default:""},z_index:{type:String,default:"z-30"}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const o=e;let r={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(r=app_config);const s=n.ref(r),a=kt(),i=n.ref([{name:"AI Image Kits",desc:"Top AI Image Processing Tools Online",icon:"https://www.imgkits.com/favicon.ico",url:"https://www.imgkits.com/",app_url:"https://www.imgkits.com/"},{name:"AI Image Generator",desc:"Turn text prompts into an image",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://www.imgkits.com/ai-image-generator/generate",app_url:"https://www.imgkits.com/ai-image-generator"}]),l=n.ref([{name:"Live Polls Maker for Slides™",desc:"Make your meetings and classes more interactive by live polling to collect instant feedback. Include multiple choice, open text, word cloud, survey, Q&A, quizzes.",icon:"https://statics.imgkits.com/landingpage_poll_maker_logo.png",url:"https://workspace.google.com/marketplace/app/live_polls_maker_create_interactive_pres/964324417500",app_url:"https://www.livepolls.app",chrome_addon_url:"",edge_addon_url:"",for:["Slides"],type:0,key:"poll-maker"},{name:"Slides™ Translator",desc:"Translate Slides™ content quickly and automatically with just one click, we support hundreds of languages.",icon:"https://statics.imgkits.com/landingpage_slides_translator.png",url:"https://workspace.google.com/marketplace/app/slides_translator_translate_whole_slides/552662411825",app_url:"https://www.livepolls.app/slides_translator",chrome_addon_url:"",edge_addon_url:"",for:["Slides"],type:0,key:"slides_translator"},{name:"Screen/Voice/Video Recorder",desc:"Record screen, record audio, and record video, automatically saves them to your Drive™, you can easily insert them into Slides™, Sheets™, and Docs™.",icon:"https://statics.imgkits.com/landingpage_recorder_logo.png",url:"https://workspace.google.com/marketplace/app/screen_recorder_voice_recorder_video_rec/659492711995",app_url:"https://recorder.livepolls.app",chrome_addon_url:"",edge_addon_url:"",for:["Slides","Docs","Sheets"],type:0,key:"recorder"},{name:"Geocode for Sheets™",desc:"Our geocoding tool can batch convert addresses to GPS coordinates (latitude,longitude), convert coordinates to addresses, create custom interactive maps from these data.",icon:"https://statics.imgkits.com/landingpage_geocode_logo.jpg",url:"https://workspace.google.com/u/0/marketplace/app/geocode_for_sheets_mapping_sheets/1083994590944",app_url:"https://www.livepolls.app/geocode",chrome_addon_url:"",edge_addon_url:"",for:["Sheets"],type:1,key:"geocode"},{name:"GPT Mind Maps Maker",desc:"AI-powered Mind Mapping tool based on ChatGPT, can quickly generate a mind map from text prompts, pdf, video, web page. And you can continue to edit it in a WYSIWYG way.",icon:"https://statics.imgkits.com/landingpage_mindmap_logo.png",url:"https://workspace.google.com/marketplace/app/gpt_mind_maps_maker_create_mind_map_with/571560817026",app_url:"https://www.livepolls.app/mindmap",chrome_addon_url:"https://chromewebstore.google.com/detail/gpt-mind-maps-maker-chatg/kobjlbfijacndpcbmnehimaonohaphjd",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/gpt-mind-maps-maker-cre/ifgemhbambhhdppdgcfflbgokfindfgg",for:["Docs","Slides"],type:2,key:"mindmap"},{name:"GPT Slides™ Maker",desc:"Let ChatGPT convert text descriptions, summaries of videos/PDFs/web pages into visually appealing Slides™ in seconds.",icon:"https://statics.imgkits.com/landingpage_ai_slides_generator_logo.png",url:"https://workspace.google.com/marketplace/app/gpt_slides_maker_text_video_pdf_url_to_s/715931934006",app_url:"https://www.livepolls.app/ai_slide_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/gpt-powerpoint-maker-text/ejofiomkeagajdhnbbohfojbcnaibdnb",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/gpt-powerpoint-maker-tex/njaengaginpfbkojgjabbaadbcmhglgk",for:["Slides"],type:0,key:"ai_slide_generator"},{name:"More Google Workspace >",url:"https://www.livepolls.app/apps"}]),d=n.ref([{name:"AI Image Generator",desc:"Turn text prompts into an image with our AI Image Generator, you can get the best free stock photos without searching from Pexels or unsplash.",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://workspace.google.com/u/0/marketplace/app/ai_image_generator_text_to_image_online/457606665049",app_url:"https://www.livepolls.app/ai_image_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/ai-image-generator-text-t/nfnkkmgbapopddmomigpnhcnffjdmfgo",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/miibamllpjnieaaienhfolfomibibekl",for:["Chrome"],type:0,key:"AI_image_generator"},{name:"Tweet Delete - Bulk Delete Tweets",desc:"Delete Twitter posts/X posts in bulk based on advanced filtering. Can run once or automatically on a schedule.",icon:"https://statics.imgkits.com/tweet_delete_logo.png",url:"",app_url:"https://www.livepolls.app/tweet_delete",chrome_addon_url:"https://chromewebstore.google.com/detail/tweet-delete-bulk-delete/iiopbdanicaeijelgbbilpmoeongakkf",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/ngeadmieiogcjcnojilkcpgedaeoface",for:["Chrome"],type:1,key:"tweet_delete"},{name:"Image Translator",desc:"Quickly translate images into over 30 languages through Google Translate.",icon:"https://statics.imgkits.com/landingpage_image_translator.png",url:"https://workspace.google.com/u/0/marketplace/app/image_translator_translate_image_by_chat/641614143005",app_url:"https://www.livepolls.app/image_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/image-translator-translat/pbhpcbdjngblklnibanbkgkogjmbjeoe",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/opimdenmabjbacmheeebgjckapkmedkp",for:["Chrome"],type:0,key:"image_translator"},{name:"Video Translator",desc:"AI-enabled video translator to easily and quickly translate the video into any other language. It's online and easy to handle.",icon:"https://statics.imgkits.com/landingpage_video_translator_logo.png",url:"https://workspace.google.com/marketplace/app/video_translator_translate_video_online/285433175728",app_url:"https://www.livepolls.app/video_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/video-translator-translat/ofhkcffhkdhjpnpplihikdpkcpailpnc",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/video-translator-transl/lnfofgbefnahkjdkpehdnokfnabgombj",for:["Chrome"],type:2,key:"video_translator"},{name:"Document Translator",desc:"Translate PDF, Word/Google Docs , Excel/Google Sheets, PowerPoint/Google Slides, and other documents with just one click.",icon:"https://statics.imgkits.com/landingpage_translate_logo.png",url:"https://workspace.google.com/marketplace/app/document_translator_translate_pdf_pptsli/151510329810",app_url:"https://translate.livepolls.app",chrome_addon_url:"https://chromewebstore.google.com/detail/document-translator-trans/ekgbhhaimaahdlaiplkafkomhoblilel",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/document-translator-tra/kolojdicjhalckcppakjlfgcgmmgblmn",for:["Chrome"],type:0,key:"translate"},{name:"Table OCR",desc:"Extract tables from PDFs, scanned files & images. Capture relevant data stored in tabular structures on any document, save to Sheets.",icon:"https://statics.imgkits.com/landingpage_table_ocr.png",url:"https://workspace.google.com/u/0/marketplace/app/table_ocr_extract_tabular_data_from_pdfi/959950861676",app_url:"https://www.livepolls.app/table_ocr",chrome_addon_url:"https://chromewebstore.google.com/detail/table-ocr-extract-tabular/chcphpeifolppcfemopkgpbkenaoijpl",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/table-ocr-extract-tabul/cblmfjclolkedgdlpaldomfbknbgdaje",for:["Chrome"],type:0,key:"table_ocr"},{name:"More Chrome Extensions >",chrome_addon_url:"https://www.livepolls.app/chrome_addons",edge_addon_url:"https://www.livepolls.app/edge_addons"}]),c=n.ref([{name:"AI Image Generator",desc:"Turn text prompts into an image with our AI Image Generator, you can get the best free stock photos without searching from Pexels or unsplash.",icon:"https://statics.imgkits.com/landingpage_ai_image_generator.png",url:"https://workspace.google.com/u/0/marketplace/app/ai_image_generator_text_to_image_online/457606665049",app_url:"https://www.livepolls.app/ai_image_generator",chrome_addon_url:"https://chromewebstore.google.com/detail/ai-image-generator-text-t/nfnkkmgbapopddmomigpnhcnffjdmfgo",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/miibamllpjnieaaienhfolfomibibekl",for:["Chrome"],type:0,key:"AI_image_generator"},{name:"Tweet Delete - Bulk Delete Tweets",desc:"Delete Twitter posts/X posts in bulk based on advanced filtering. Can run once or automatically on a schedule.",icon:"https://statics.imgkits.com/tweet_delete_logo.png",url:"",app_url:"https://www.livepolls.app/tweet_delete",chrome_addon_url:"https://chromewebstore.google.com/detail/tweet-delete-bulk-delete/iiopbdanicaeijelgbbilpmoeongakkf",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/ngeadmieiogcjcnojilkcpgedaeoface",for:["Chrome"],type:1,key:"tweet_delete"},{name:"Image Translator",desc:"Quickly translate images into over 30 languages through Google Translate.",icon:"https://statics.imgkits.com/landingpage_image_translator.png",url:"https://workspace.google.com/u/0/marketplace/app/image_translator_translate_image_by_chat/641614143005",app_url:"https://www.livepolls.app/image_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/image-translator-translat/pbhpcbdjngblklnibanbkgkogjmbjeoe",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/opimdenmabjbacmheeebgjckapkmedkp",for:["Chrome"],type:0,key:"image_translator"},{name:"Video Translator",desc:"AI-enabled video translator to easily and quickly translate the video into any other language. It's online and easy to handle.",icon:"https://statics.imgkits.com/landingpage_video_translator_logo.png",url:"https://workspace.google.com/marketplace/app/video_translator_translate_video_online/285433175728",app_url:"https://www.livepolls.app/video_translator",chrome_addon_url:"https://chromewebstore.google.com/detail/video-translator-translat/ofhkcffhkdhjpnpplihikdpkcpailpnc",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/video-translator-transl/lnfofgbefnahkjdkpehdnokfnabgombj",for:["Chrome"],type:2,key:"video_translator"},{name:"Document Translator",desc:"Translate PDF, Word/Google Docs , Excel/Google Sheets, PowerPoint/Google Slides, and other documents with just one click.",icon:"https://statics.imgkits.com/landingpage_translate_logo.png",url:"https://workspace.google.com/marketplace/app/document_translator_translate_pdf_pptsli/151510329810",app_url:"https://translate.livepolls.app",chrome_addon_url:"https://chromewebstore.google.com/detail/document-translator-trans/ekgbhhaimaahdlaiplkafkomhoblilel",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/document-translator-tra/kolojdicjhalckcppakjlfgcgmmgblmn",for:["Chrome"],type:0,key:"translate"},{name:"Table OCR",desc:"Extract tables from PDFs, scanned files & images. Capture relevant data stored in tabular structures on any document, save to Sheets.",icon:"https://statics.imgkits.com/landingpage_table_ocr.png",url:"https://workspace.google.com/u/0/marketplace/app/table_ocr_extract_tabular_data_from_pdfi/959950861676",app_url:"https://www.livepolls.app/table_ocr",chrome_addon_url:"https://chromewebstore.google.com/detail/table-ocr-extract-tabular/chcphpeifolppcfemopkgpbkenaoijpl",edge_addon_url:"https://microsoftedge.microsoft.com/addons/detail/table-ocr-extract-tabul/cblmfjclolkedgdlpaldomfbknbgdaje",for:["Chrome"],type:0,key:"table_ocr"},{name:"More Edge Extensions >",edge_addon_url:"https://www.livepolls.app/edge_addons"}]),u=n.ref(o.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),p=n.ref(a||"/"),m=n.ref(!1),g=n.ref(null),f=(x,w)=>{window.app_type?x=`${x}?from=${window.app_type}`:g.value&&(x=`${x}?from=${g.value}`),w==="_blank"?window.open(x,"_blank"):window.location.href=x},h=n.computed(()=>{var x;return(x=o.userStore)==null?void 0:x.user}),b=()=>{o.userStore.showLogin(!0)},y=n.ref(!1);n.onMounted(()=>{ri(a.substring(1),"chrome_addon").then(x=>{d.value=x.data.slice(0,6),d.value.push({name:"More Chrome Extensions >",chrome_addon_url:"https://www.livepolls.app/chrome_addons",edge_addon_url:"https://www.livepolls.app/apps"}),c.value=x.data.slice(0,6),c.value.push({name:"More Edge Extensions >",edge_addon_url:"https://www.livepolls.app/edge_addons"})}),ri(a.substring(1),"google_workspace").then(x=>{const w=JSON.parse(x.message);i.value=w.map(E=>{const{desc:P,logo:I,name:L,url:A}=E;return{desc:P,icon:I,name:L,url:A}}),l.value=x.data.slice(0,6),l.value.push({name:"More Google Workspace >",url:"https://www.livepolls.app/apps"})}),n.nextTick(()=>{const x=new URL(location.href);g.value=window.app_type||x.searchParams.get("from");const w=Ye()+"_app_type";localStorage.getItem(w)||localStorage.setItem(w,g.value)}),o.userStore.getUser(o.driveQuery).then(({profile:x})=>{t("initUserCallback",x),!x&&o.from!="login"&&!o.isShenHe&&_()},()=>{})});async function k(){C();const x=Xe.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await o.userStore.getUser(o.driveQuery),t("loginSuccess")}catch{}finally{x.close()}}function C(){o.userStore.showLogin(!1)}function T(){m.value=!0}function S(){m.value=!1}function O(){m.value=!m.value}function _(x){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:B}),google.accounts.id.prompt())}function B(x){!x||!x.credential||oi(x.credential).then(w=>{o.userStore?o.userStore.getUser(o.driveQuery):location.href=location.pathname},w=>{})}function M(){o.userStore.hideInvite(!1)}return(x,w)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.normalizeClass(["h-[84px]",[e.z_index]])},[n.createElementVNode("div",{class:n.normalizeClass(["h-[84px] fixed top-0 left-0 w-full bg-white",[e.z_index]])},[n.createElementVNode("header",{class:n.normalizeClass(["absolute h-[84px] top-0 bg-white inset-x-0 z-30 mx-auto",[e.className]])},[n.createCommentVNode(" nav "),n.createElementVNode("nav",w1,[n.createCommentVNode(" 显示 当前项目产品logo和 名称 大小屏幕公用 "),n.createElementVNode("div",E1,[v1,n.createElementVNode("a",{href:p.value,class:"-m-1.5 p-1.5 flex items-center",id:"logo_link"},[n.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,x1),n.createElementVNode("span",S1,n.toDisplayString(s.value.name),1)],8,k1)]),n.createCommentVNode(" 小屏幕 menu菜单栏 "),n.createElementVNode("div",C1,[n.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:w[0]||(w[0]=E=>y.value=!0)},[N1,n.createVNode(n.unref(xg),{class:"h-6 w-6","aria-hidden":"true"})])]),n.createCommentVNode(" lg>屏幕 显示 workspace 产品推荐的组件 "),n.createElementVNode("div",T1,[n.createCommentVNode(" 弹出菜单栏组件 "),e.isShenHe?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Bi),{key:0,class:"relative bug_buuton_wrap",id:"other_apps_popover"},{default:n.withCtx(()=>[n.createVNode(n.unref(vg),{class:"bg-transparent border-0 outline-none"},{default:n.withCtx(()=>[n.createElementVNode("div",O1,[P1,n.createVNode(n.unref(Z0),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),n.createVNode(n.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:n.withCtx(()=>[n.createVNode(n.unref(kg),{class:"fixed mx-auto left-0 right-0 shadow-lg z-10 bg-white mt-5 flex w-screen ring-1 ring-gray-900/5"},{default:n.withCtx(()=>[n.createCommentVNode(" 分三个模块 "),n.createElementVNode("div",{class:n.normalizeClass(["flex w-screen mx-auto px-10",[e.PopoverPanelClass]])},[n.createElementVNode("div",B1,[V1,n.createCommentVNode(" face_swap_ai.png "),n.createElementVNode("div",$1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,(E,P)=>(n.openBlock(),n.createElementBlock("a",{key:P,target:"_blank",href:E.url+(g.value?"?from="+g.value:""),class:"cursor-pointer flex items-center bg-gradient-to-r h-24 mb-6 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-60 xl:w-72 p-3"},[n.createElementVNode("img",{class:"h-16 w-16 mr-1 rounded",src:E.icon},null,8,M1),n.createElementVNode("div",I1,[n.createElementVNode("h3",R1,n.toDisplayString(E.name),1),n.createElementVNode("div",L1,n.toDisplayString(E.desc),1)])],8,A1))),128))])]),n.createCommentVNode(" workspace "),n.createElementVNode("div",F1,[D1,n.createElementVNode("div",j1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:g.value?E.url+"?from="+g.value:E.url,class:"truncate font-normal hover:underline block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,z1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,H1),E.type==1?(n.openBlock(),n.createElementBlock("span",U1,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",q1,"AI")):n.createCommentVNode("v-if",!0)]))),128))])]),n.createCommentVNode(" chrome_addon "),n.createElementVNode("div",W1,[G1,n.createElementVNode("div",K1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:E.chrome_addon_url,class:"truncate font-normal hover:underline block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,Z1)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,J1),E.type==1?(n.openBlock(),n.createElementBlock("span",X1,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",Y1,"AI")):n.createCommentVNode("v-if",!0)]))),128))])]),n.createCommentVNode(" edge_addon "),n.createElementVNode("div",Q1,[eb,n.createElementVNode("div",tb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(E,P)=>(n.openBlock(),n.createElementBlock("div",{key:E.name,class:"flex items-center"},[n.createElementVNode("a",{href:E.edge_addon_url,class:"truncate hover:underline font-normal block p-2 hover:text-indigo-600",target:"_blank"},[E.icon?(n.openBlock(),n.createElementBlock("img",{key:0,class:"h-4 mr-2 w-4 inline-block",src:E.icon},null,8,ob)):n.createCommentVNode("v-if",!0),n.createTextVNode(" "+n.toDisplayString(E.name),1)],8,nb),E.type==1?(n.openBlock(),n.createElementBlock("span",rb,"Hot")):n.createCommentVNode("v-if",!0),E.type==2?(n.openBlock(),n.createElementBlock("span",sb,"AI")):n.createCommentVNode("v-if",!0)]))),128))])])],2)]),_:1})]),_:1})]),_:1})),n.createCommentVNode(" 产品slot "),n.renderSlot(x.$slots,"product-slot",{},void 0,!0),n.createCommentVNode(" 下面这个非菜单栏 "),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,E=>(n.openBlock(),n.createElementBlock("a",{key:E.name,onClick:n.withModifiers(P=>f(E.href,E.target),["prevent"]),class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},n.toDisplayString(E.name),9,ab))),128))]),n.createCommentVNode(" lg>屏幕 显示 非审核 显示login 已经登录显示用户信息 "),e.isShenHe?(n.openBlock(),n.createElementBlock("div",ib,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",lb,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)])])):h.value?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createCommentVNode(" 用户信息 "),n.createElementVNode("div",pb,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",fb,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)]),n.createElementVNode("div",{class:"flex items-center",onMouseenter:T,onMouseleave:S},[n.createElementVNode("div",mb,[n.createElementVNode("span",null,n.toDisplayString(h.value.username),1)]),n.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:h.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,hb),gb,n.withDirectives(n.createElementVNode("div",null,[n.createElementVNode("div",bb,[n.createCommentVNode(" 用户信息 移入菜单栏 "),h.value?(n.openBlock(),n.createBlock(Di,{key:0,user:h.value},null,8,["user"])):n.createCommentVNode("v-if",!0)])],512),[[n.vShow,m.value]])],32)])],2112)):(n.openBlock(),n.createElementBlock("div",cb,[n.createCommentVNode(" 语言选择slot "),n.createElementVNode("div",db,[n.renderSlot(x.$slots,"language-selector",{},void 0,!0)]),n.createElementVNode("a",{onClick:b,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[n.createTextVNode("Log in"),ub])]))]),n.createCommentVNode(" 小屏幕 menu菜单栏 "),n.createVNode(n.unref(yg),{as:"div",class:"lg:hidden",onClose:w[2]||(w[2]=E=>y.value=!1),open:y.value},{default:n.withCtx(()=>[yb,n.createVNode(n.unref(_g),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:n.withCtx(()=>[n.createElementVNode("div",_b,[n.createElementVNode("a",{href:p.value,class:"-m-1.5 p-1.5"},[n.createElementVNode("span",Eb,n.toDisplayString(s.value.name),1),n.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,vb)],8,wb),n.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:w[1]||(w[1]=E=>y.value=!1)},[kb,n.createVNode(n.unref(Sg),{class:"h-6 w-6","aria-hidden":"true"})])]),n.createElementVNode("div",xb,[n.createElementVNode("div",Sb,[n.createElementVNode("div",Cb,[n.createVNode(_1,{hotApps:i.value,workspaceTools:l.value,chrome_addon_tools:d.value,edge_addon_tools:c.value},null,8,["hotApps","workspaceTools","chrome_addon_tools","edge_addon_tools"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,E=>(n.openBlock(),n.createElementBlock("a",{key:E.name,onClick:n.withModifiers(P=>f(E.href,E.target),["prevent"]),class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},n.toDisplayString(E.name),9,Nb))),128))]),n.createCommentVNode(" 移动端语言选择slot "),n.createElementVNode("div",Tb,[n.renderSlot(x.$slots,"language-selector-mobile",{},void 0,!0)]),h.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog block ml-10 py-6 right flew-center",onClick:O},[h.value?(n.openBlock(),n.createBlock(Di,{key:0,user:h.value},null,8,["user"])):n.createCommentVNode("v-if",!0)])):(n.openBlock(),n.createElementBlock("div",Ob,[n.createElementVNode("a",{href:"#",onClick:b,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:3})]),_:3},8,["open"])],2)],2)],2),n.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(n.openBlock(),n.createBlock(a0,{key:0,onSuccess:k,onClose:C})):n.createCommentVNode("v-if",!0),e.userStore.isShowToast?(n.openBlock(),n.createBlock(H0,{key:1,content:e.userStore.toastContent},null,8,["content"])):n.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(n.openBlock(),n.createBlock(J0,{key:2,onCancel:M})):n.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/sen/Desktop/CompanyCode/workspace/z_liusenlin_project/Translation_Video/src/components/Header.vue"]]),Pb={install(e){e.component("my-header",ji)}};$e.Header=ji,$e.default=Pb,Object.defineProperties($e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|