my-header-yichong 2.1.5 → 2.1.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { warn as Pr, inject as H, ref as O, computed as x, unref as z, isRef as Se, getCurrentInstance as ot, provide as re, reactive as hn, defineComponent as U, h as j, Transition as fo, withCtx as be, withDirectives as Xe, createVNode as ue, vShow as po, createApp as Or, toRefs as Qt, nextTick as Qe, cloneVNode as Cr, Fragment as ve, onMounted as K, watchEffect as se, onUnmounted as oe, watch as rt, Teleport as Tr, shallowRef as ho, openBlock as A, createElementBlock as L, createElementVNode as g, toDisplayString as J, createTextVNode as mt, createCommentVNode as B, vModelText as Mt, pushScopeId as st, popScopeId as at, hasInjectionContext as Nr, markRaw as Ke, effectScope as Ar, isReactive as mn, toRef as Ut, toRaw as Lr, getCurrentScope as kr, onScopeDispose as $r, normalizeStyle as Fr, normalizeClass as Rr, createBlock as Le, renderList as Ht } from "vue";
1
+ import { warn as Pr, inject as V, ref as O, computed as x, unref as H, isRef as Se, getCurrentInstance as ot, provide as re, reactive as hn, defineComponent as U, h as j, Transition as fo, withCtx as be, withDirectives as Xe, createVNode as ue, vShow as po, createApp as Or, toRefs as Qt, nextTick as Qe, cloneVNode as Cr, Fragment as ve, onMounted as K, watchEffect as se, onUnmounted as oe, watch as rt, Teleport as Tr, shallowRef as ho, openBlock as A, createElementBlock as L, createElementVNode as g, toDisplayString as J, createTextVNode as mt, createCommentVNode as B, vModelText as Mt, pushScopeId as st, popScopeId as at, hasInjectionContext as Nr, markRaw as Ke, effectScope as Ar, isReactive as mn, toRef as Ut, toRaw as Lr, getCurrentScope as kr, onScopeDispose as $r, normalizeStyle as Fr, normalizeClass as Rr, createBlock as Le, renderList as Ht } from "vue";
2
2
  function mo(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
@@ -1985,25 +1985,25 @@ var Ii = {
1985
1985
  }
1986
1986
  }
1987
1987
  };
1988
- const Bi = (e) => (t, n) => Mi(t, n, z(e)), Mi = (e, t, n) => Li(n, e, e).replace(/\{(\w+)\}/g, (o, r) => {
1988
+ const Bi = (e) => (t, n) => Mi(t, n, H(e)), Mi = (e, t, n) => Li(n, e, e).replace(/\{(\w+)\}/g, (o, r) => {
1989
1989
  var s;
1990
1990
  return `${(s = t == null ? void 0 : t[r]) != null ? s : `{${r}}`}`;
1991
1991
  }), Ui = (e) => {
1992
- const t = x(() => z(e).name), n = Se(e) ? e : O(e);
1992
+ const t = x(() => H(e).name), n = Se(e) ? e : O(e);
1993
1993
  return {
1994
1994
  lang: t,
1995
1995
  locale: n,
1996
1996
  t: Bi(e)
1997
1997
  };
1998
1998
  }, Vo = Symbol("localeContextKey"), Hi = (e) => {
1999
- const t = e || H(Vo, O());
1999
+ const t = e || V(Vo, O());
2000
2000
  return Ui(x(() => t.value || Ii));
2001
2001
  }, wt = "el", Vi = "is-", ye = (e, t, n, o, r) => {
2002
2002
  let s = `${e}-${t}`;
2003
2003
  return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
2004
2004
  }, zo = Symbol("namespaceContextKey"), zi = (e) => {
2005
- const t = e || (ot() ? H(zo, O(wt)) : O(wt));
2006
- return x(() => z(t) || wt);
2005
+ const t = e || (ot() ? V(zo, O(wt)) : O(wt));
2006
+ return x(() => H(t) || wt);
2007
2007
  }, qi = (e, t) => {
2008
2008
  const n = zi(t);
2009
2009
  return {
@@ -2035,8 +2035,8 @@ const Bi = (e) => (t, n) => Mi(t, n, z(e)), Mi = (e, t, n) => Li(n, e, e).replac
2035
2035
  cssVarBlockName: (p) => `--${n.value}-${e}-${p}`
2036
2036
  };
2037
2037
  }, Zn = O(0), qo = 2e3, Go = Symbol("zIndexContextKey"), Gi = (e) => {
2038
- const t = e || (ot() ? H(Go, void 0) : void 0), n = x(() => {
2039
- const s = z(t);
2038
+ const t = e || (ot() ? V(Go, void 0) : void 0), n = x(() => {
2039
+ const s = H(t);
2040
2040
  return ki(s) ? s : qo;
2041
2041
  }), o = x(() => n.value + Zn.value);
2042
2042
  return {
@@ -2052,7 +2052,7 @@ Di({
2052
2052
  });
2053
2053
  const Wi = Symbol("size"), Wo = Symbol(), St = O();
2054
2054
  function Jo(e, t = void 0) {
2055
- const n = ot() ? H(Wo, St) : St;
2055
+ const n = ot() ? V(Wo, St) : St;
2056
2056
  return e ? x(() => {
2057
2057
  var o, r;
2058
2058
  return (r = (o = n.value) == null ? void 0 : o[e]) != null ? r : t;
@@ -2070,9 +2070,9 @@ function Ji(e, t) {
2070
2070
  return ((i = n.value) == null ? void 0 : i.zIndex) || qo;
2071
2071
  })), a = x(() => {
2072
2072
  var i;
2073
- return z(t) || ((i = n.value) == null ? void 0 : i.size) || "";
2073
+ return H(t) || ((i = n.value) == null ? void 0 : i.size) || "";
2074
2074
  });
2075
- return Ki(x(() => z(n) || {})), {
2075
+ return Ki(x(() => H(n) || {})), {
2076
2076
  ns: o,
2077
2077
  locale: r,
2078
2078
  zIndex: s,
@@ -2087,7 +2087,7 @@ const Ki = (e, t, n = !1) => {
2087
2087
  return;
2088
2088
  }
2089
2089
  const i = x(() => {
2090
- const d = z(e);
2090
+ const d = H(e);
2091
2091
  return s != null && s.value ? Yi(s.value, d) : d;
2092
2092
  });
2093
2093
  return a(Wo, i), a(Vo, x(() => i.value.locale)), a(zo, x(() => i.value.namespace)), a(Go, x(() => i.value.zIndex)), a(Wi, {
@@ -2492,14 +2492,14 @@ function ee() {
2492
2492
  return cl();
2493
2493
  }
2494
2494
  var pe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(pe || {});
2495
- function E(e) {
2495
+ function S(e) {
2496
2496
  var t;
2497
2497
  return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
2498
2498
  }
2499
2499
  let er = Symbol("Context");
2500
2500
  var te = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(te || {});
2501
2501
  function Cn() {
2502
- return H(er, null);
2502
+ return V(er, null);
2503
2503
  }
2504
2504
  function dl(e) {
2505
2505
  re(er, e);
@@ -2517,7 +2517,7 @@ function fl(e, t) {
2517
2517
  n.value = oo(e.value.type, e.value.as);
2518
2518
  }), se(() => {
2519
2519
  var o;
2520
- n.value || E(t) && E(t) instanceof HTMLButtonElement && !((o = E(t)) != null && o.hasAttribute("type")) && (n.value = "button");
2520
+ n.value || S(t) && S(t) instanceof HTMLButtonElement && !((o = S(t)) != null && o.hasAttribute("type")) && (n.value = "button");
2521
2521
  }), n;
2522
2522
  }
2523
2523
  var pl = Object.defineProperty, hl = (e, t, n) => t in e ? pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ro = (e, t, n) => (hl(e, typeof t != "symbol" ? t + "" : t, n), n);
@@ -2551,7 +2551,7 @@ function fe(e) {
2551
2551
  if (e instanceof Node)
2552
2552
  return e.ownerDocument;
2553
2553
  if (e != null && e.hasOwnProperty("value")) {
2554
- let t = E(e);
2554
+ let t = S(e);
2555
2555
  if (t)
2556
2556
  return t.ownerDocument;
2557
2557
  }
@@ -2660,7 +2660,7 @@ function or(e, t, n = x(() => !0)) {
2660
2660
  for (let l of d) {
2661
2661
  if (l === null)
2662
2662
  continue;
2663
- let c = l instanceof HTMLElement ? l : E(l);
2663
+ let c = l instanceof HTMLElement ? l : S(l);
2664
2664
  if (c != null && c.contains(i) || s.composed && s.composedPath().includes(c))
2665
2665
  return;
2666
2666
  }
@@ -2748,7 +2748,7 @@ function ar(e) {
2748
2748
  return new Set(e());
2749
2749
  let t = /* @__PURE__ */ new Set();
2750
2750
  for (let n of e.value) {
2751
- let o = E(n);
2751
+ let o = S(n);
2752
2752
  o instanceof HTMLElement && t.add(o);
2753
2753
  }
2754
2754
  return t;
@@ -2763,7 +2763,7 @@ let We = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
2763
2763
  Ol({ ownerDocument: s, container: r, containers: e.containers, previousActiveElement: i }, x(() => a.value && !!(e.features & 8)));
2764
2764
  let d = Nn();
2765
2765
  function l(v) {
2766
- let m = E(r);
2766
+ let m = S(r);
2767
2767
  m && ((p) => p())(() => {
2768
2768
  X(d.value, { [Y.Forwards]: () => {
2769
2769
  ne(m, q.First, { skipElements: [v.relatedTarget] });
@@ -2782,9 +2782,9 @@ let We = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
2782
2782
  if (!a.value)
2783
2783
  return;
2784
2784
  let m = ar(e.containers);
2785
- E(r) instanceof HTMLElement && m.add(E(r));
2785
+ S(r) instanceof HTMLElement && m.add(S(r));
2786
2786
  let p = v.relatedTarget;
2787
- p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (lr(m, p) || (c.value ? ne(E(r), X(d.value, { [Y.Forwards]: () => q.Next, [Y.Backwards]: () => q.Previous }) | q.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ee(v.target)));
2787
+ p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (lr(m, p) || (c.value ? ne(S(r), X(d.value, { [Y.Forwards]: () => q.Next, [Y.Backwards]: () => q.Previous }) | q.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ee(v.target)));
2788
2788
  }
2789
2789
  return () => {
2790
2790
  let v = {}, m = { ref: r, onKeydown: u, onFocusout: f }, { features: p, initialFocus: b, containers: w, ...N } = e;
@@ -2825,12 +2825,12 @@ function Pl({ ownerDocument: e, container: t, initialFocus: n }, o) {
2825
2825
  rt([t, n, o], (a, i) => {
2826
2826
  if (a.every((l, c) => (i == null ? void 0 : i[c]) === l) || !o.value)
2827
2827
  return;
2828
- let d = E(t);
2828
+ let d = S(t);
2829
2829
  d && sr(() => {
2830
2830
  var l, c;
2831
2831
  if (!s.value)
2832
2832
  return;
2833
- let u = E(n), f = (l = e.value) == null ? void 0 : l.activeElement;
2833
+ let u = S(n), f = (l = e.value) == null ? void 0 : l.activeElement;
2834
2834
  if (u) {
2835
2835
  if (u === f) {
2836
2836
  r.value = f;
@@ -2851,7 +2851,7 @@ function Ol({ ownerDocument: e, container: t, containers: n, previousActiveEleme
2851
2851
  if (!r.value)
2852
2852
  return;
2853
2853
  let i = ar(n);
2854
- E(t) instanceof HTMLElement && i.add(E(t));
2854
+ S(t) instanceof HTMLElement && i.add(S(t));
2855
2855
  let d = o.value;
2856
2856
  if (!d)
2857
2857
  return;
@@ -2871,7 +2871,7 @@ function ao(e, t = O(!0)) {
2871
2871
  var o;
2872
2872
  if (!t.value)
2873
2873
  return;
2874
- let r = E(e);
2874
+ let r = S(e);
2875
2875
  if (!r)
2876
2876
  return;
2877
2877
  n(function() {
@@ -2890,7 +2890,7 @@ function ao(e, t = O(!0)) {
2890
2890
  }
2891
2891
  let ur = Symbol("ForcePortalRootContext");
2892
2892
  function Cl() {
2893
- return H(ur, !1);
2893
+ return V(ur, !1);
2894
2894
  }
2895
2895
  let ln = U({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
2896
2896
  return re(ur, e.force), () => {
@@ -2912,13 +2912,13 @@ function Tl(e) {
2912
2912
  return o.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(o);
2913
2913
  }
2914
2914
  let cr = U({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2915
- let o = O(null), r = x(() => fe(o)), s = Cl(), a = H(fr, null), i = O(s === !0 || a == null ? Tl(o.value) : a.resolveTarget());
2915
+ let o = O(null), r = x(() => fe(o)), s = Cl(), a = V(fr, null), i = O(s === !0 || a == null ? Tl(o.value) : a.resolveTarget());
2916
2916
  se(() => {
2917
2917
  s || a != null && (i.value = a.resolveTarget());
2918
2918
  });
2919
- let d = H(un, null);
2919
+ let d = V(un, null);
2920
2920
  return K(() => {
2921
- let l = E(o);
2921
+ let l = S(o);
2922
2922
  l && d && oe(d.register(l));
2923
2923
  }), oe(() => {
2924
2924
  var l, c;
@@ -2932,7 +2932,7 @@ let cr = U({ name: "Portal", props: { as: { type: [Object, String], default: "di
2932
2932
  };
2933
2933
  } }), un = Symbol("PortalParentContext");
2934
2934
  function dr() {
2935
- let e = H(un, null), t = O([]);
2935
+ let e = V(un, null), t = O([]);
2936
2936
  function n(s) {
2937
2937
  return t.value.push(s), e && e.register(s), () => o(s);
2938
2938
  }
@@ -2959,7 +2959,7 @@ let fr = Symbol("PortalGroupContext"), Nl = U({ name: "PortalGroup", props: { as
2959
2959
  } }), pr = Symbol("StackContext");
2960
2960
  var cn = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(cn || {});
2961
2961
  function Al() {
2962
- return H(pr, () => {
2962
+ return V(pr, () => {
2963
2963
  });
2964
2964
  }
2965
2965
  function Ll({ type: e, enabled: t, element: n, onUpdate: o }) {
@@ -2977,7 +2977,7 @@ function Ll({ type: e, enabled: t, element: n, onUpdate: o }) {
2977
2977
  }
2978
2978
  let hr = Symbol("DescriptionContext");
2979
2979
  function kl() {
2980
- let e = H(hr, null);
2980
+ let e = V(hr, null);
2981
2981
  if (e === null)
2982
2982
  throw new Error("Missing parent");
2983
2983
  return e;
@@ -2995,7 +2995,7 @@ function $l({ slot: e = O({}), name: t = "Description", props: n = {} } = {}) {
2995
2995
  U({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
2996
2996
  let o = kl();
2997
2997
  return K(() => oe(o.register(e.id))), () => {
2998
- let { name: r = "Description", slot: s = O({}), props: a = {} } = o, { id: i, ...d } = e, l = { ...Object.entries(a).reduce((c, [u, f]) => Object.assign(c, { [u]: z(f) }), {}), id: i };
2998
+ let { name: r = "Description", slot: s = O({}), props: a = {} } = o, { id: i, ...d } = e, l = { ...Object.entries(a).reduce((c, [u, f]) => Object.assign(c, { [u]: H(f) }), {}), id: i };
2999
2999
  return G({ ourProps: l, theirProps: d, slot: s.value, attrs: t, slots: n, name: r });
3000
3000
  };
3001
3001
  } });
@@ -3117,7 +3117,7 @@ function mr({ defaultContainers: e = [], portals: t } = {}) {
3117
3117
  for (let i of t.value)
3118
3118
  a.push(i);
3119
3119
  for (let i of (s = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? s : [])
3120
- i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (i.contains(E(n)) || a.some((d) => i.contains(d)) || a.push(i));
3120
+ i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (i.contains(S(n)) || a.some((d) => i.contains(d)) || a.push(i));
3121
3121
  return a;
3122
3122
  }
3123
3123
  return { resolveContainers: r, contains(s) {
@@ -3129,7 +3129,7 @@ function mr({ defaultContainers: e = [], portals: t } = {}) {
3129
3129
  var Ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ul || {});
3130
3130
  let dn = Symbol("DialogContext");
3131
3131
  function ct(e) {
3132
- let t = H(dn, null);
3132
+ let t = V(dn, null);
3133
3133
  if (t === null) {
3134
3134
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
3135
3135
  throw Error.captureStackTrace && Error.captureStackTrace(n, ct), n;
@@ -3147,17 +3147,17 @@ let ht = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
3147
3147
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
3148
3148
  if (typeof l.value != "boolean")
3149
3149
  throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value === ht ? void 0 : e.open}`);
3150
- let f = x(() => a.value && l.value ? 0 : 1), v = x(() => f.value === 0), m = x(() => i.value > 1), p = H(dn, null) !== null, [b, w] = dr(), { resolveContainers: N, mainTreeNodeRef: C, MainTreeNode: F } = mr({ portals: b, defaultContainers: [x(() => {
3150
+ let f = x(() => a.value && l.value ? 0 : 1), v = x(() => f.value === 0), m = x(() => i.value > 1), p = V(dn, null) !== null, [b, w] = dr(), { resolveContainers: N, mainTreeNodeRef: C, MainTreeNode: F } = mr({ portals: b, defaultContainers: [x(() => {
3151
3151
  var $;
3152
3152
  return ($ = I.panelRef.value) != null ? $ : c.value;
3153
- })] }), S = x(() => m.value ? "parent" : "leaf"), T = x(() => d !== null ? (d.value & te.Closing) === te.Closing : !1), y = x(() => p || T.value ? !1 : v.value), V = x(() => {
3153
+ })] }), E = x(() => m.value ? "parent" : "leaf"), T = x(() => d !== null ? (d.value & te.Closing) === te.Closing : !1), y = x(() => p || T.value ? !1 : v.value), z = x(() => {
3154
3154
  var $, R, ie;
3155
- return (ie = Array.from((R = ($ = u.value) == null ? void 0 : $.querySelectorAll("body > *")) != null ? R : []).find((le) => le.id === "headlessui-portal-root" ? !1 : le.contains(E(C)) && le instanceof HTMLElement)) != null ? ie : null;
3155
+ return (ie = Array.from((R = ($ = u.value) == null ? void 0 : $.querySelectorAll("body > *")) != null ? R : []).find((le) => le.id === "headlessui-portal-root" ? !1 : le.contains(S(C)) && le instanceof HTMLElement)) != null ? ie : null;
3156
3156
  });
3157
- ao(V, y);
3157
+ ao(z, y);
3158
3158
  let W = x(() => m.value ? !0 : v.value), P = x(() => {
3159
3159
  var $, R, ie;
3160
- return (ie = Array.from((R = ($ = u.value) == null ? void 0 : $.querySelectorAll("[data-headlessui-portal]")) != null ? R : []).find((le) => le.contains(E(C)) && le instanceof HTMLElement)) != null ? ie : null;
3160
+ return (ie = Array.from((R = ($ = u.value) == null ? void 0 : $.querySelectorAll("[data-headlessui-portal]")) != null ? R : []).find((le) => le.contains(S(C)) && le instanceof HTMLElement)) != null ? ie : null;
3161
3161
  });
3162
3162
  ao(P, W), Ll({ type: "Dialog", enabled: x(() => f.value === 0), element: c, onUpdate: ($, R) => {
3163
3163
  if (R === "Dialog")
@@ -3184,7 +3184,7 @@ let ht = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
3184
3184
  }), se(($) => {
3185
3185
  if (f.value !== 0)
3186
3186
  return;
3187
- let R = E(c);
3187
+ let R = S(c);
3188
3188
  if (!R)
3189
3189
  return;
3190
3190
  let ie = new ResizeObserver((le) => {
@@ -3196,7 +3196,7 @@ let ht = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
3196
3196
  ie.observe(R), $(() => ie.disconnect());
3197
3197
  }), () => {
3198
3198
  let { id: $, open: R, initialFocus: ie, ...le } = e, Bt = { ...n, ref: c, id: $, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": _.value }, Ae = { open: f.value === 0 };
3199
- return j(ln, { force: !0 }, () => [j(cr, () => j(Nl, { target: c.value }, () => j(ln, { force: !1 }, () => j(We, { initialFocus: ie, containers: N, features: v.value ? X(S.value, { parent: We.features.RestoreFocus, leaf: We.features.All & ~We.features.FocusLock }) : We.features.None }, () => j(w, {}, () => G({ ourProps: Bt, theirProps: { ...le, ...n }, slot: Ae, attrs: n, slots: o, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(F)]);
3199
+ return j(ln, { force: !0 }, () => [j(cr, () => j(Nl, { target: c.value }, () => j(ln, { force: !1 }, () => j(We, { initialFocus: ie, containers: N, features: v.value ? X(E.value, { parent: We.features.RestoreFocus, leaf: We.features.All & ~We.features.FocusLock }) : We.features.None }, () => j(w, {}, () => G({ ourProps: Bt, theirProps: { ...le, ...n }, slot: Ae, attrs: n, slots: o, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(F)]);
3200
3200
  };
3201
3201
  } });
3202
3202
  U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
@@ -3242,7 +3242,7 @@ U({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" },
3242
3242
  var zl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(zl || {});
3243
3243
  let vr = Symbol("PopoverContext");
3244
3244
  function Dt(e) {
3245
- let t = H(vr, null);
3245
+ let t = V(vr, null);
3246
3246
  if (t === null) {
3247
3247
  let n = new Error(`<${e} /> is missing a parent <${wr.name} /> component.`);
3248
3248
  throw Error.captureStackTrace && Error.captureStackTrace(n, Dt), n;
@@ -3251,32 +3251,32 @@ function Dt(e) {
3251
3251
  }
3252
3252
  let gr = Symbol("PopoverGroupContext");
3253
3253
  function yr() {
3254
- return H(gr, null);
3254
+ return V(gr, null);
3255
3255
  }
3256
3256
  let br = Symbol("PopoverPanelContext");
3257
3257
  function ql() {
3258
- return H(br, null);
3258
+ return V(br, null);
3259
3259
  }
3260
3260
  let wr = U({ name: "Popover", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n, expose: o }) {
3261
3261
  var r;
3262
3262
  let s = O(null);
3263
3263
  o({ el: s, $el: s });
3264
3264
  let a = O(1), i = O(null), d = O(null), l = O(null), c = O(null), u = x(() => fe(s)), f = x(() => {
3265
- var S, T;
3266
- if (!E(i) || !E(c))
3265
+ var E, T;
3266
+ if (!S(i) || !S(c))
3267
3267
  return !1;
3268
3268
  for (let I of document.querySelectorAll("body > *"))
3269
- if (Number(I == null ? void 0 : I.contains(E(i))) ^ Number(I == null ? void 0 : I.contains(E(c))))
3269
+ if (Number(I == null ? void 0 : I.contains(S(i))) ^ Number(I == null ? void 0 : I.contains(S(c))))
3270
3270
  return !0;
3271
- let y = Rt(), V = y.indexOf(E(i)), W = (V + y.length - 1) % y.length, P = (V + 1) % y.length, _ = y[W], D = y[P];
3272
- return !((S = E(c)) != null && S.contains(_)) && !((T = E(c)) != null && T.contains(D));
3271
+ let y = Rt(), z = y.indexOf(S(i)), W = (z + y.length - 1) % y.length, P = (z + 1) % y.length, _ = y[W], D = y[P];
3272
+ return !((E = S(c)) != null && E.contains(_)) && !((T = S(c)) != null && T.contains(D));
3273
3273
  }), v = { popoverState: a, buttonId: O(null), panelId: O(null), panel: c, button: i, isPortalled: f, beforePanelSentinel: d, afterPanelSentinel: l, togglePopover() {
3274
3274
  a.value = X(a.value, { [0]: 1, [1]: 0 });
3275
3275
  }, closePopover() {
3276
3276
  a.value !== 1 && (a.value = 1);
3277
- }, close(S) {
3277
+ }, close(E) {
3278
3278
  v.closePopover();
3279
- let T = (() => S ? S instanceof HTMLElement ? S : S.value instanceof HTMLElement ? E(S) : E(v.button) : E(v.button))();
3279
+ let T = (() => E ? E instanceof HTMLElement ? E : E.value instanceof HTMLElement ? S(E) : S(v.button) : S(v.button))();
3280
3280
  T == null || T.focus();
3281
3281
  } };
3282
3282
  re(vr, v), dl(x(() => X(a.value, { [0]: te.Open, [1]: te.Closed })));
@@ -3284,18 +3284,18 @@ let wr = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
3284
3284
  v.closePopover();
3285
3285
  } }, p = yr(), b = p == null ? void 0 : p.registerPopover, [w, N] = dr(), C = mr({ portals: w, defaultContainers: [i, c] });
3286
3286
  function F() {
3287
- var S, T, y, V;
3288
- return (V = p == null ? void 0 : p.isFocusWithinPopoverGroup()) != null ? V : ((S = u.value) == null ? void 0 : S.activeElement) && (((T = E(i)) == null ? void 0 : T.contains(u.value.activeElement)) || ((y = E(c)) == null ? void 0 : y.contains(u.value.activeElement)));
3287
+ var E, T, y, z;
3288
+ return (z = p == null ? void 0 : p.isFocusWithinPopoverGroup()) != null ? z : ((E = u.value) == null ? void 0 : E.activeElement) && (((T = S(i)) == null ? void 0 : T.contains(u.value.activeElement)) || ((y = S(c)) == null ? void 0 : y.contains(u.value.activeElement)));
3289
3289
  }
3290
- return se(() => b == null ? void 0 : b(m)), An((r = u.value) == null ? void 0 : r.defaultView, "focus", (S) => {
3290
+ return se(() => b == null ? void 0 : b(m)), An((r = u.value) == null ? void 0 : r.defaultView, "focus", (E) => {
3291
3291
  var T, y;
3292
- S.target !== window && S.target instanceof HTMLElement && a.value === 0 && (F() || i && c && (C.contains(S.target) || (T = E(v.beforePanelSentinel)) != null && T.contains(S.target) || (y = E(v.afterPanelSentinel)) != null && y.contains(S.target) || v.closePopover()));
3293
- }, !0), or(C.resolveContainers, (S, T) => {
3292
+ E.target !== window && E.target instanceof HTMLElement && a.value === 0 && (F() || i && c && (C.contains(E.target) || (T = S(v.beforePanelSentinel)) != null && T.contains(E.target) || (y = S(v.afterPanelSentinel)) != null && y.contains(E.target) || v.closePopover()));
3293
+ }, !0), or(C.resolveContainers, (E, T) => {
3294
3294
  var y;
3295
- v.closePopover(), tr(T, Tn.Loose) || (S.preventDefault(), (y = E(i)) == null || y.focus());
3295
+ v.closePopover(), tr(T, Tn.Loose) || (E.preventDefault(), (y = S(i)) == null || y.focus());
3296
3296
  }, x(() => a.value === 0)), () => {
3297
- let S = { open: a.value === 0, close: v.close };
3298
- return j(N, {}, () => G({ theirProps: { ...e, ...n }, ourProps: { ref: s }, slot: S, slots: t, attrs: n, name: "Popover" }));
3297
+ let E = { open: a.value === 0, close: v.close };
3298
+ return j(N, {}, () => G({ theirProps: { ...e, ...n }, ourProps: { ref: s }, slot: E, slots: t, attrs: n, name: "Popover" }));
3299
3299
  };
3300
3300
  } }), Gl = U({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: o }) {
3301
3301
  let r = Dt("PopoverButton"), s = x(() => fe(r.button));
@@ -3310,14 +3310,14 @@ let wr = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
3310
3310
  });
3311
3311
  let f = fl(x(() => ({ as: e.as, type: t.type })), c);
3312
3312
  function v(C) {
3313
- var F, S, T, y, V;
3313
+ var F, E, T, y, z;
3314
3314
  if (l.value) {
3315
3315
  if (r.popoverState.value === 1)
3316
3316
  return;
3317
3317
  switch (C.key) {
3318
3318
  case pe.Space:
3319
3319
  case pe.Enter:
3320
- C.preventDefault(), (S = (F = C.target).click) == null || S.call(F), r.closePopover(), (T = E(r.button)) == null || T.focus();
3320
+ C.preventDefault(), (E = (F = C.target).click) == null || E.call(F), r.closePopover(), (T = S(r.button)) == null || T.focus();
3321
3321
  break;
3322
3322
  }
3323
3323
  } else
@@ -3329,7 +3329,7 @@ let wr = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
3329
3329
  case pe.Escape:
3330
3330
  if (r.popoverState.value !== 0)
3331
3331
  return i == null ? void 0 : i(r.buttonId.value);
3332
- if (!E(r.button) || (y = s.value) != null && y.activeElement && !((V = E(r.button)) != null && V.contains(s.value.activeElement)))
3332
+ if (!S(r.button) || (y = s.value) != null && y.activeElement && !((z = S(r.button)) != null && z.contains(s.value.activeElement)))
3333
3333
  return;
3334
3334
  C.preventDefault(), C.stopPropagation(), r.closePopover();
3335
3335
  break;
@@ -3339,24 +3339,24 @@ let wr = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
3339
3339
  l.value || C.key === pe.Space && C.preventDefault();
3340
3340
  }
3341
3341
  function p(C) {
3342
- var F, S;
3343
- e.disabled || (l.value ? (r.closePopover(), (F = E(r.button)) == null || F.focus()) : (C.preventDefault(), C.stopPropagation(), r.popoverState.value === 1 && (i == null || i(r.buttonId.value)), r.togglePopover(), (S = E(r.button)) == null || S.focus()));
3342
+ var F, E;
3343
+ e.disabled || (l.value ? (r.closePopover(), (F = S(r.button)) == null || F.focus()) : (C.preventDefault(), C.stopPropagation(), r.popoverState.value === 1 && (i == null || i(r.buttonId.value)), r.togglePopover(), (E = S(r.button)) == null || E.focus()));
3344
3344
  }
3345
3345
  function b(C) {
3346
3346
  C.preventDefault(), C.stopPropagation();
3347
3347
  }
3348
3348
  let w = Nn();
3349
3349
  function N() {
3350
- let C = E(r.panel);
3350
+ let C = S(r.panel);
3351
3351
  if (!C)
3352
3352
  return;
3353
3353
  function F() {
3354
- X(w.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) === nt.Error && ne(Rt().filter((S) => S.dataset.headlessuiFocusGuard !== "true"), X(w.value, { [Y.Forwards]: q.Next, [Y.Backwards]: q.Previous }), { relativeTo: E(r.button) });
3354
+ X(w.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) === nt.Error && ne(Rt().filter((E) => E.dataset.headlessuiFocusGuard !== "true"), X(w.value, { [Y.Forwards]: q.Next, [Y.Backwards]: q.Previous }), { relativeTo: S(r.button) });
3355
3355
  }
3356
3356
  F();
3357
3357
  }
3358
3358
  return () => {
3359
- let C = r.popoverState.value === 0, F = { open: C }, { id: S, ...T } = e, y = l.value ? { ref: c, type: f.value, onKeydown: v, onClick: p } : { ref: c, id: S, type: f.value, "aria-expanded": e.disabled ? void 0 : r.popoverState.value === 0, "aria-controls": E(r.panel) ? r.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: v, onKeyup: m, onClick: p, onMousedown: b };
3359
+ let C = r.popoverState.value === 0, F = { open: C }, { id: E, ...T } = e, y = l.value ? { ref: c, type: f.value, onKeydown: v, onClick: p } : { ref: c, id: E, type: f.value, "aria-expanded": e.disabled ? void 0 : r.popoverState.value === 0, "aria-controls": S(r.panel) ? r.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: v, onKeyup: m, onClick: p, onMousedown: b };
3360
3360
  return j(ve, [G({ ourProps: y, theirProps: { ...t, ...T }, slot: F, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && r.isPortalled.value && j(De, { id: u, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N })]);
3361
3361
  };
3362
3362
  } });
@@ -3381,68 +3381,68 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
3381
3381
  if (!r || s.popoverState.value !== 0 || !s.panel)
3382
3382
  return;
3383
3383
  let N = (b = a.value) == null ? void 0 : b.activeElement;
3384
- (w = E(s.panel)) != null && w.contains(N) || ne(E(s.panel), q.First);
3384
+ (w = S(s.panel)) != null && w.contains(N) || ne(S(s.panel), q.First);
3385
3385
  });
3386
3386
  let l = Cn(), c = x(() => l !== null ? (l.value & te.Open) === te.Open : s.popoverState.value === 0);
3387
3387
  function u(b) {
3388
3388
  var w, N;
3389
3389
  switch (b.key) {
3390
3390
  case pe.Escape:
3391
- if (s.popoverState.value !== 0 || !E(s.panel) || a.value && !((w = E(s.panel)) != null && w.contains(a.value.activeElement)))
3391
+ if (s.popoverState.value !== 0 || !S(s.panel) || a.value && !((w = S(s.panel)) != null && w.contains(a.value.activeElement)))
3392
3392
  return;
3393
- b.preventDefault(), b.stopPropagation(), s.closePopover(), (N = E(s.button)) == null || N.focus();
3393
+ b.preventDefault(), b.stopPropagation(), s.closePopover(), (N = S(s.button)) == null || N.focus();
3394
3394
  break;
3395
3395
  }
3396
3396
  }
3397
3397
  function f(b) {
3398
- var w, N, C, F, S;
3398
+ var w, N, C, F, E;
3399
3399
  let T = b.relatedTarget;
3400
- T && E(s.panel) && ((w = E(s.panel)) != null && w.contains(T) || (s.closePopover(), ((C = (N = E(s.beforePanelSentinel)) == null ? void 0 : N.contains) != null && C.call(N, T) || (S = (F = E(s.afterPanelSentinel)) == null ? void 0 : F.contains) != null && S.call(F, T)) && T.focus({ preventScroll: !0 })));
3400
+ T && S(s.panel) && ((w = S(s.panel)) != null && w.contains(T) || (s.closePopover(), ((C = (N = S(s.beforePanelSentinel)) == null ? void 0 : N.contains) != null && C.call(N, T) || (E = (F = S(s.afterPanelSentinel)) == null ? void 0 : F.contains) != null && E.call(F, T)) && T.focus({ preventScroll: !0 })));
3401
3401
  }
3402
3402
  let v = Nn();
3403
3403
  function m() {
3404
- let b = E(s.panel);
3404
+ let b = S(s.panel);
3405
3405
  if (!b)
3406
3406
  return;
3407
3407
  function w() {
3408
3408
  X(v.value, { [Y.Forwards]: () => {
3409
3409
  var N;
3410
- ne(b, q.First) === nt.Error && ((N = E(s.afterPanelSentinel)) == null || N.focus());
3410
+ ne(b, q.First) === nt.Error && ((N = S(s.afterPanelSentinel)) == null || N.focus());
3411
3411
  }, [Y.Backwards]: () => {
3412
3412
  var N;
3413
- (N = E(s.button)) == null || N.focus({ preventScroll: !0 });
3413
+ (N = S(s.button)) == null || N.focus({ preventScroll: !0 });
3414
3414
  } });
3415
3415
  }
3416
3416
  w();
3417
3417
  }
3418
3418
  function p() {
3419
- let b = E(s.panel);
3419
+ let b = S(s.panel);
3420
3420
  if (!b)
3421
3421
  return;
3422
3422
  function w() {
3423
3423
  X(v.value, { [Y.Forwards]: () => {
3424
- let N = E(s.button), C = E(s.panel);
3424
+ let N = S(s.button), C = S(s.panel);
3425
3425
  if (!N)
3426
3426
  return;
3427
- let F = Rt(), S = F.indexOf(N), T = F.slice(0, S + 1), y = [...F.slice(S + 1), ...T];
3428
- for (let V of y.slice())
3429
- if (V.dataset.headlessuiFocusGuard === "true" || C != null && C.contains(V)) {
3430
- let W = y.indexOf(V);
3427
+ let F = Rt(), E = F.indexOf(N), T = F.slice(0, E + 1), y = [...F.slice(E + 1), ...T];
3428
+ for (let z of y.slice())
3429
+ if (z.dataset.headlessuiFocusGuard === "true" || C != null && C.contains(z)) {
3430
+ let W = y.indexOf(z);
3431
3431
  W !== -1 && y.splice(W, 1);
3432
3432
  }
3433
3433
  ne(y, q.First, { sorted: !1 });
3434
3434
  }, [Y.Backwards]: () => {
3435
3435
  var N;
3436
- ne(b, q.Previous) === nt.Error && ((N = E(s.button)) == null || N.focus());
3436
+ ne(b, q.Previous) === nt.Error && ((N = S(s.button)) == null || N.focus());
3437
3437
  } });
3438
3438
  }
3439
3439
  w();
3440
3440
  }
3441
3441
  return () => {
3442
3442
  let b = { open: s.popoverState.value === 0, close: s.close }, { id: w, focus: N, ...C } = e, F = { ref: s.panel, id: w, onKeydown: u, onFocusout: r && s.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
3443
- return G({ ourProps: F, theirProps: { ...t, ...C }, attrs: t, slot: b, slots: { ...n, default: (...S) => {
3443
+ return G({ ourProps: F, theirProps: { ...t, ...C }, attrs: t, slot: b, slots: { ...n, default: (...E) => {
3444
3444
  var T;
3445
- return [j(ve, [c.value && s.isPortalled.value && j(De, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m }), (T = n.default) == null ? void 0 : T.call(n, ...S), c.value && s.isPortalled.value && j(De, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
3445
+ return [j(ve, [c.value && s.isPortalled.value && j(De, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m }), (T = n.default) == null ? void 0 : T.call(n, ...E), c.value && s.isPortalled.value && j(De, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
3446
3446
  } }, features: Pe.RenderStrategy | Pe.Static, visible: c.value, name: "PopoverPanel" });
3447
3447
  };
3448
3448
  } });
@@ -3464,7 +3464,7 @@ U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
3464
3464
  if (!f)
3465
3465
  return !1;
3466
3466
  let v = f.activeElement;
3467
- return (u = E(r)) != null && u.contains(v) ? !0 : s.value.some((m) => {
3467
+ return (u = S(r)) != null && u.contains(v) ? !0 : s.value.some((m) => {
3468
3468
  var p, b;
3469
3469
  return ((p = f.getElementById(m.buttonId.value)) == null ? void 0 : p.contains(v)) || ((b = f.getElementById(m.panelId.value)) == null ? void 0 : b.contains(v));
3470
3470
  });
@@ -3930,7 +3930,7 @@ function wu(e, t, n, o, r, s) {
3930
3930
  </div> `)
3931
3931
  ]);
3932
3932
  }
3933
- const _r = /* @__PURE__ */ Ue(Yl, [["render", wu], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]);
3933
+ const _r = /* @__PURE__ */ Ue(Yl, [["render", wu], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]);
3934
3934
  const _u = {
3935
3935
  data() {
3936
3936
  return {};
@@ -3986,7 +3986,7 @@ function Cu(e, t, n, o, r, s) {
3986
3986
  ])
3987
3987
  ]);
3988
3988
  }
3989
- const Tu = /* @__PURE__ */ Ue(_u, [["render", Cu], ["__scopeId", "data-v-47199182"], ["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);
3989
+ const Tu = /* @__PURE__ */ Ue(_u, [["render", Cu], ["__scopeId", "data-v-47199182"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);
3990
3990
  /*!
3991
3991
  * pinia v2.1.4
3992
3992
  * (c) 2023 Eduardo San Martin Morote
@@ -4143,7 +4143,7 @@ function pn(e, t, n = {}, o, r, s) {
4143
4143
  return $ instanceof Promise ? $.then((R) => (ke(I, R), R)).catch((R) => (ke(ge, R), Promise.reject(R))) : (ke(I, $), $);
4144
4144
  };
4145
4145
  }
4146
- const S = /* @__PURE__ */ Ke({
4146
+ const E = /* @__PURE__ */ Ke({
4147
4147
  actions: {},
4148
4148
  getters: {},
4149
4149
  state: [],
@@ -4168,7 +4168,7 @@ function pn(e, t, n = {}, o, r, s) {
4168
4168
  $dispose: C
4169
4169
  }, y = hn(process.env.NODE_ENV !== "production" || Zt ? Z(
4170
4170
  {
4171
- _hmrPayload: S,
4171
+ _hmrPayload: E,
4172
4172
  _customProperties: Ke(/* @__PURE__ */ new Set())
4173
4173
  // devtools custom properties
4174
4174
  },
@@ -4177,16 +4177,16 @@ function pn(e, t, n = {}, o, r, s) {
4177
4177
  // setupStore
4178
4178
  ) : T);
4179
4179
  o._s.set(e, y);
4180
- const V = o._a && o._a.runWithContext || Au, W = o._e.run(() => (a = Ar(), V(() => a.run(t))));
4180
+ const z = o._a && o._a.runWithContext || Au, W = o._e.run(() => (a = Ar(), z(() => a.run(t))));
4181
4181
  for (const P in W) {
4182
4182
  const _ = W[P];
4183
4183
  if (Se(_) && !lo(_) || mn(_))
4184
- process.env.NODE_ENV !== "production" && r ? ft(p.value, P, Ut(W, P)) : s || (m && ku(_) && (Se(_) ? _.value = m[P] : fn(_, m[P])), o.state.value[e][P] = _), process.env.NODE_ENV !== "production" && S.state.push(P);
4184
+ process.env.NODE_ENV !== "production" && r ? ft(p.value, P, Ut(W, P)) : s || (m && ku(_) && (Se(_) ? _.value = m[P] : fn(_, m[P])), o.state.value[e][P] = _), process.env.NODE_ENV !== "production" && E.state.push(P);
4185
4185
  else if (typeof _ == "function") {
4186
4186
  const D = process.env.NODE_ENV !== "production" && r ? _ : F(P, _);
4187
- W[P] = D, process.env.NODE_ENV !== "production" && (S.actions[P] = _), i.actions[P] = _;
4187
+ W[P] = D, process.env.NODE_ENV !== "production" && (E.actions[P] = _), i.actions[P] = _;
4188
4188
  } else
4189
- process.env.NODE_ENV !== "production" && lo(_) && (S.getters[P] = s ? (
4189
+ process.env.NODE_ENV !== "production" && lo(_) && (E.getters[P] = s ? (
4190
4190
  // @ts-expect-error
4191
4191
  n.getters[P]
4192
4192
  ) : _, Ln && (W._getters || // @ts-expect-error: same
@@ -4271,7 +4271,7 @@ function $u(e, t, n) {
4271
4271
  const l = Nr();
4272
4272
  if (i = // in test mode, ignore the argument provided as we can always retrieve a
4273
4273
  // pinia instance with getActivePinia()
4274
- (process.env.NODE_ENV === "test" && Ye && Ye._testing ? null : i) || (l ? H(Nu, null) : null), i && xt(i), process.env.NODE_ENV !== "production" && !Ye)
4274
+ (process.env.NODE_ENV === "test" && Ye && Ye._testing ? null : i) || (l ? V(Nu, null) : null), i && xt(i), process.env.NODE_ENV !== "production" && !Ye)
4275
4275
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
4276
4276
  const pinia = createPinia()
4277
4277
  app.use(pinia)
@@ -4580,7 +4580,7 @@ function sc(e, t, n, o, r, s) {
4580
4580
  }, rc, 8, nc)) : B("v-if", !0)
4581
4581
  ]);
4582
4582
  }
4583
- const co = /* @__PURE__ */ Ue(Du, [["render", sc], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]);
4583
+ const co = /* @__PURE__ */ Ue(Du, [["render", sc], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]);
4584
4584
  const ac = {
4585
4585
  props: ["content", "top"]
4586
4586
  }, ic = (e) => (st("data-v-7b6def48"), e = e(), at(), e), lc = /* @__PURE__ */ ic(() => /* @__PURE__ */ g(
@@ -4625,7 +4625,7 @@ function uc(e, t, n, o, r, s) {
4625
4625
  /* STYLE */
4626
4626
  );
4627
4627
  }
4628
- const cc = /* @__PURE__ */ Ue(ac, [["render", uc], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);
4628
+ const cc = /* @__PURE__ */ Ue(ac, [["render", uc], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);
4629
4629
  const dc = { class: "background-cover" }, fc = /* @__PURE__ */ g(
4630
4630
  "div",
4631
4631
  { class: "invite-success" },
@@ -4710,7 +4710,7 @@ const dc = { class: "background-cover" }, fc = /* @__PURE__ */ g(
4710
4710
  ])
4711
4711
  ]));
4712
4712
  }
4713
- }, wc = /* @__PURE__ */ Ue(bc, [["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);
4713
+ }, wc = /* @__PURE__ */ Ue(bc, [["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);
4714
4714
  function _c(e, t) {
4715
4715
  return A(), L("svg", {
4716
4716
  xmlns: "http://www.w3.org/2000/svg",
@@ -4821,13 +4821,13 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4821
4821
  };
4822
4822
  typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (o = app_config), console.log("appInfo", o);
4823
4823
  const r = O(o), s = ut(), a = [
4824
- { name: "Live Poll Maker for Slides", href: "https://www.livepolls.app/polls-google-slides" },
4824
+ { name: "Live Poll Maker for Slides", href: "https://www.livepolls.app" },
4825
4825
  { name: "Geocode for Sheets", href: "https://www.livepolls.app/geocode" },
4826
4826
  { name: "Slides Translator", href: "https://www.livepolls.app/slides_translator" },
4827
4827
  { name: "Screen&Audio Recorder", href: "https://recorder.livepolls.app/recorder" },
4828
4828
  { name: "ChatGPT Slides Maker", href: "https://www.livepolls.app/ai_slide_generator" },
4829
4829
  { name: "More Apps >", href: "https://www.livepolls.app/apps" }
4830
- ], i = O(
4830
+ ].filter((E) => E.href != "https://www.livepolls.app" + s), i = O(
4831
4831
  n.isShenHe ? [
4832
4832
  { name: "Privacy Policy", href: s + "/privacy", target: "_blank" }
4833
4833
  ] : [
@@ -4838,8 +4838,8 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4838
4838
  }, f = O(!1);
4839
4839
  K(() => {
4840
4840
  n.userStore.getUser(n.driveQuery).then(
4841
- ({ profile: S }) => {
4842
- t("initUserCallback", S), console.log("login", S), !S && n.from != "login" && !n.isShenHe && N();
4841
+ ({ profile: E }) => {
4842
+ t("initUserCallback", E), console.log("login", E), !E && n.from != "login" && !n.isShenHe && N();
4843
4843
  },
4844
4844
  () => {
4845
4845
  }
@@ -4847,7 +4847,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4847
4847
  });
4848
4848
  async function v() {
4849
4849
  m();
4850
- const S = $e.service({
4850
+ const E = $e.service({
4851
4851
  text: "logining...",
4852
4852
  background: "rgba(0, 0, 0, 0.7)"
4853
4853
  });
@@ -4855,7 +4855,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4855
4855
  await n.userStore.getUser(n.driveQuery), t("loginSuccess");
4856
4856
  } catch {
4857
4857
  } finally {
4858
- S.close();
4858
+ E.close();
4859
4859
  }
4860
4860
  }
4861
4861
  function m() {
@@ -4870,14 +4870,14 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4870
4870
  function w() {
4871
4871
  l.value = !l.value;
4872
4872
  }
4873
- function N(S) {
4873
+ function N(E) {
4874
4874
  console.log("addGoogleAccountsScript:before"), typeof google < "u" && (google.accounts.id.initialize({
4875
4875
  client_id: "704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",
4876
4876
  callback: C
4877
4877
  }), google.accounts.id.prompt());
4878
4878
  }
4879
- function C(S) {
4880
- !S || !S.credential || Xo(S.credential).then(
4879
+ function C(E) {
4880
+ !E || !E.credential || Xo(E.credential).then(
4881
4881
  (T) => {
4882
4882
  console.log("fetch_success", T), n.userStore ? n.userStore.getUser(n.driveQuery) : location.href = location.pathname;
4883
4883
  },
@@ -4889,7 +4889,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4889
4889
  function F() {
4890
4890
  n.userStore.hideInvite(!1);
4891
4891
  }
4892
- return (S, T) => (A(), L(
4892
+ return (E, T) => (A(), L(
4893
4893
  ve,
4894
4894
  null,
4895
4895
  [
@@ -4927,23 +4927,23 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4927
4927
  onClick: T[0] || (T[0] = (y) => f.value = !0)
4928
4928
  }, [
4929
4929
  Nc,
4930
- ue(z(Jl), {
4930
+ ue(H(Jl), {
4931
4931
  class: "h-6 w-6",
4932
4932
  "aria-hidden": "true"
4933
4933
  })
4934
4934
  ])
4935
4935
  ]),
4936
4936
  g("div", Ac, [
4937
- e.isShenHe ? B("v-if", !0) : (A(), Le(z(wr), {
4937
+ e.isShenHe ? B("v-if", !0) : (A(), Le(H(wr), {
4938
4938
  key: 0,
4939
4939
  class: "relative"
4940
4940
  }, {
4941
4941
  default: be(() => [
4942
- ue(z(Gl), null, {
4942
+ ue(H(Gl), null, {
4943
4943
  default: be(() => [
4944
4944
  g("div", Lc, [
4945
4945
  kc,
4946
- ue(z(_c), {
4946
+ ue(H(_c), {
4947
4947
  class: "h-5 w-5",
4948
4948
  "aria-hidden": "true"
4949
4949
  })
@@ -4961,20 +4961,20 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
4961
4961
  "leave-to-class": "opacity-0 translate-y-1"
4962
4962
  }, {
4963
4963
  default: be(() => [
4964
- ue(z(Wl), { class: "absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" }, {
4964
+ ue(H(Wl), { class: "absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" }, {
4965
4965
  default: be(() => [
4966
4966
  g("div", $c, [
4967
- (A(), L(
4967
+ (A(!0), L(
4968
4968
  ve,
4969
4969
  null,
4970
- Ht(a, (y) => g("a", {
4970
+ Ht(H(a), (y) => (A(), L("a", {
4971
4971
  key: y.name,
4972
4972
  href: y.href,
4973
4973
  class: "block p-2 hover:text-indigo-600",
4974
4974
  target: "_blank"
4975
- }, J(y.name), 9, Fc)),
4976
- 64
4977
- /* STABLE_FRAGMENT */
4975
+ }, J(y.name), 9, Fc))),
4976
+ 128
4977
+ /* KEYED_FRAGMENT */
4978
4978
  ))
4979
4979
  ])
4980
4980
  ]),
@@ -5057,7 +5057,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
5057
5057
  ])
5058
5058
  ]))
5059
5059
  ]),
5060
- ue(z(Hl), {
5060
+ ue(H(Hl), {
5061
5061
  as: "div",
5062
5062
  class: "lg:hidden",
5063
5063
  onClose: T[2] || (T[2] = (y) => f.value = !1),
@@ -5065,7 +5065,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
5065
5065
  }, {
5066
5066
  default: be(() => [
5067
5067
  zc,
5068
- ue(z(Vl), { 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" }, {
5068
+ ue(H(Vl), { 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" }, {
5069
5069
  default: be(() => [
5070
5070
  g("div", qc, [
5071
5071
  g("a", {
@@ -5091,7 +5091,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
5091
5091
  onClick: T[1] || (T[1] = (y) => f.value = !1)
5092
5092
  }, [
5093
5093
  Kc,
5094
- ue(z(Kl), {
5094
+ ue(H(Kl), {
5095
5095
  class: "h-6 w-6",
5096
5096
  "aria-hidden": "true"
5097
5097
  })
@@ -5163,7 +5163,7 @@ const Ne = (e) => (st("data-v-c970699f"), e = e(), at(), e), Ec = {
5163
5163
  /* STABLE_FRAGMENT */
5164
5164
  ));
5165
5165
  }
5166
- }, od = /* @__PURE__ */ Ue(nd, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), sd = {
5166
+ }, od = /* @__PURE__ */ Ue(nd, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), sd = {
5167
5167
  install(e) {
5168
5168
  e.component("my-header", od);
5169
5169
  }
package/my-header.umd.cjs CHANGED
@@ -8,7 +8,7 @@
8
8
  </div> `),rl,r.createElementVNode("div",{class:"account flew-row-v-center",style:{padding:"0 12px","border-radius":"4px"},onClick:t[2]||(t[2]=(...i)=>a.handleFbLogin&&a.handleFbLogin(...i))},[r.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;">
9
9
  <div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),sl,al])]),il,r.createElementVNode("div",null,[r.createElementVNode("div",ll,[cl,r.withDirectives(r.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[3]||(t[3]=i=>s.email=i),onInput:t[4]||(t[4]=(...i)=>a.handleInput&&a.handleInput(...i)),onBlur:t[5]||(t[5]=(...i)=>a.handleInputBlur&&a.handleInputBlur(...i))},null,544),[[r.vModelText,s.email]]),s.emailErrorHelp?(r.openBlock(),r.createElementBlock("p",ul,r.toDisplayString(s.emailErrorHelp),1)):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("div",dl,[fl,r.withDirectives(r.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[6]||(t[6]=i=>s.name=i)},null,512),[[r.vModelText,s.name]])])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",pl,[ml,r.withDirectives(r.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[7]||(t[7]=i=>s.password=i),onInput:t[8]||(t[8]=(...i)=>a.handleInput&&a.handleInput(...i))},null,544),[[r.vModelText,s.password]]),s.passwordErrorHelp?(r.openBlock(),r.createElementBlock("p",hl,[r.createTextVNode(r.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(r.openBlock(),r.createElementBlock("span",gl,yl)):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...i)=>a.handleSignup&&a.handleSignup(...i))},"Create Your Account",8,bl)):(r.openBlock(),r.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[10]||(t[10]=(...i)=>a.handleLogin&&a.handleLogin(...i))},"Login",8,wl))]),s.isSignup?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",_l,[El,r.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),r.createCommentVNode(` <div class="link">
10
10
  By creating an account you agree to our <a href="/site/terms" style="color: #1778f2;">Terms of Use</a>
11
- </div> `)])}const Ro=Ee(Qi,[["render",vl],["__scopeId","data-v-4682235c"],["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),eu="",Sl={data(){return{}},components:{Login1:Ro},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(si(e),localStorage.removeItem("cache_passport"),oo({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},xl=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nl={class:"background-cover"},Pl={class:"login-content"},Cl=[xl(()=>r.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"},[r.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 Ol(e,t,n,o,s,a){const i=Ro;return r.openBlock(),r.createElementBlock("div",Nl,[r.createElementVNode("div",Pl,[r.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},Cl)])])}const kl=Ee(Sl,[["render",Ol],["__scopeId","data-v-47199182"],["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
11
+ </div> `)])}const Ro=Ee(Qi,[["render",vl],["__scopeId","data-v-4682235c"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),eu="",Sl={data(){return{}},components:{Login1:Ro},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(si(e),localStorage.removeItem("cache_passport"),oo({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},xl=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nl={class:"background-cover"},Pl={class:"login-content"},Cl=[xl(()=>r.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"},[r.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 Ol(e,t,n,o,s,a){const i=Ro;return r.openBlock(),r.createElementBlock("div",Nl,[r.createElementVNode("div",Pl,[r.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},Cl)])])}const kl=Ee(Sl,[["render",Ol],["__scopeId","data-v-47199182"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
12
12
  * pinia v2.1.4
13
13
  * (c) 2023 Eduardo San Martin Morote
14
14
  * @license MIT
@@ -23,4 +23,4 @@ This will fail in production.`);l=Be,l._s.has(o)||(a?Kt(o,t,s,l):Io(o,s,l),proce
23
23
  <span id="free_cnt">My Credit: {{user.free_cnt}}</span>
24
24
  </div>
25
25
  <div class="user-upgrade user-buy-credit"><span>Buy credit</span></div>
26
- </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...i)=>a.handlePay&&a.handlePay(...i))},[r.createElementVNode("div",Hl,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zl,ql)):(r.openBlock(),r.createElementBlock("svg",Gl,Wl)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Jl,Kl)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,href:s.path+"/dashboard",target:"_blank"},Xl,8,Yl)):r.createCommentVNode("v-if",!0),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:1,rel:"nofollow",href:s.path+"/user/logout"},Ql,8,Zl)):r.createCommentVNode("v-if",!0)])}const Uo=Ee(Dl,[["render",ec],["__scopeId","data-v-8580ad75"],["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),cu="",tc={props:["content","top"]},nc=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.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"},[r.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 oc(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[nc,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const rc=Ee(tc,[["render",oc],["__scopeId","data-v-7b6def48"],["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]),du="",sc={class:"background-cover"},ac=r.createElementVNode("div",{class:"invite-success"},[r.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"},[r.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"}),r.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),ic=r.createElementVNode("div",{class:"invite-title"},[r.createElementVNode("span",null,"Successfully subscribed!")],-1),lc=r.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),cc=[r.createElementVNode("span",null,"Invite Partners Now",-1)],uc=[r.createElementVNode("span",null,"Invite Later",-1)],dc=Ee({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const n=$e(),o=()=>{t("cancel"),location.href=n+"/dashboard"},s=()=>{t("cancel")};return(a,i)=>(r.openBlock(),r.createElementBlock("div",sc,[r.createElementVNode("div",{class:"invite-dialog"},[ac,ic,lc,r.createElementVNode("div",null,[r.createElementVNode("div",{class:"button button-up",onClick:o},cc),r.createElementVNode("div",{class:"button button-down",onClick:s},uc)])])]))}},[["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function fc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.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 hu="",gu="",ue=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),pc={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},mc={class:"flex lg:flex-1"},hc=ue(()=>r.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),gc=["href"],yc=["src","alt"],bc={class:"pl-2 text-xl"},wc={class:"flex lg:hidden"},_c=ue(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),Ec={class:"hidden lg:flex lg:gap-x-12"},vc={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},Sc=ue(()=>r.createElementVNode("span",null,"Apps",-1)),xc={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},Nc=["href"],Pc=["href","target"],Cc={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Oc={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},kc=ue(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),Tc={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},Ac={class:"pr-4"},Lc=["src"],$c=ue(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Vc={class:"user-center-dialog shadow-xl"},Rc=ue(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Fc={class:"flex items-center justify-between"},Dc=["href"],Bc={class:"sr-only"},jc=["src","alt"],Ic=ue(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),Mc={class:"mt-6 flow-root"},Uc={class:"-my-6 divide-y divide-gray-500/10"},Hc={class:"space-y-2 py-6"},zc={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},qc=["href","target"],Gc={key:0,class:"py-6"},Wc=Ee({__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}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={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&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=$e(),i=[{name:"Live Poll Maker for Slides",href:"https://www.livepolls.app/polls-google-slides"},{name:"Geocode for Sheets",href:"https://www.livepolls.app/geocode"},{name:"Slides Translator",href:"https://www.livepolls.app/slides_translator"},{name:"Screen&Audio Recorder",href:"https://recorder.livepolls.app/recorder"},{name:"ChatGPT Slides Maker",href:"https://www.livepolls.app/ai_slide_generator"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}],l=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),d=r.computed(()=>n.userStore.user),u=()=>{n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{n.userStore.getUser(n.driveQuery).then(({profile:S})=>{t("initUserCallback",S),console.log("login",S),!S&&n.from!="login"&&!n.isShenHe&&C()},()=>{})});async function y(){g();const S=ye.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(n.driveQuery),t("loginSuccess")}catch{}finally{S.close()}}function g(){n.userStore.showLogin(!1)}function m(){c.value=!0}function w(){c.value=!1}function _(){c.value=!c.value}function C(S){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:N}),google.accounts.id.prompt())}function N(S){!S||!S.credential||ao(S.credential).then(P=>{console.log("fetch_success",P),n.userStore?n.userStore.getUser(n.driveQuery):location.href=location.pathname},P=>{console.log("fetch_fail",P)})}function T(){n.userStore.hideInvite(!1)}return(S,P)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",pc,[r.createElementVNode("div",mc,[hc,r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,yc),r.createElementVNode("span",bc,r.toDisplayString(s.value.name),1)],8,gc)]),r.createElementVNode("div",wc,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:P[0]||(P[0]=b=>p.value=!0)},[_c,r.createVNode(r.unref(Xi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Ec,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(Vo),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ki),null,{default:r.withCtx(()=>[r.createElementVNode("div",vc,[Sc,r.createVNode(r.unref(fc),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),r.createVNode(r.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:r.withCtx(()=>[r.createVNode(r.unref(Yi),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",xc,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,b=>r.createElementVNode("a",{key:b.name,href:b.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(b.name),9,Nc)),64))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(b.name),9,Pc))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",Cc)):d.value?(r.openBlock(),r.createElementBlock("div",Tc,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:m,onMouseleave:w},[r.createElementVNode("div",Ac,[r.createElementVNode("span",null,r.toDisplayString(d.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:d.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,Lc),$c,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Vc,[d.value?(r.openBlock(),r.createBlock(Uo,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",Oc,[r.createElementVNode("a",{onClick:u,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"},[r.createTextVNode("Log in"),kc])]))]),r.createVNode(r.unref(qi),{as:"div",class:"lg:hidden",onClose:P[2]||(P[2]=b=>p.value=!1),open:p.value},{default:r.withCtx(()=>[Rc,r.createVNode(r.unref(Gi),{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:r.withCtx(()=>[r.createElementVNode("div",Fc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Bc,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,jc)],8,Dc),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:P[1]||(P[1]=b=>p.value=!1)},[Ic,r.createVNode(r.unref(Zi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Mc,[r.createElementVNode("div",Uc,[r.createElementVNode("div",Hc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",zc,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(b.name),9,qc))),128))]),d.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:_},[d.value?(r.openBlock(),r.createBlock(Uo,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",Gc,[r.createElementVNode("a",{href:"#",onClick:u,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")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(r.openBlock(),r.createBlock(kl,{key:0,onSuccess:y,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore.isShowToast?(r.openBlock(),r.createBlock(rc,{key:1,content:e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(r.openBlock(),r.createBlock(dc,{key:2,onCancel:T})):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/a123/Desktop/project-gongshi/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Wc)}}});
26
+ </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...i)=>a.handlePay&&a.handlePay(...i))},[r.createElementVNode("div",Hl,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zl,ql)):(r.openBlock(),r.createElementBlock("svg",Gl,Wl)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Jl,Kl)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,href:s.path+"/dashboard",target:"_blank"},Xl,8,Yl)):r.createCommentVNode("v-if",!0),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:1,rel:"nofollow",href:s.path+"/user/logout"},Ql,8,Zl)):r.createCommentVNode("v-if",!0)])}const Uo=Ee(Dl,[["render",ec],["__scopeId","data-v-8580ad75"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),cu="",tc={props:["content","top"]},nc=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.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"},[r.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 oc(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[nc,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const rc=Ee(tc,[["render",oc],["__scopeId","data-v-7b6def48"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]),du="",sc={class:"background-cover"},ac=r.createElementVNode("div",{class:"invite-success"},[r.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"},[r.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"}),r.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),ic=r.createElementVNode("div",{class:"invite-title"},[r.createElementVNode("span",null,"Successfully subscribed!")],-1),lc=r.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),cc=[r.createElementVNode("span",null,"Invite Partners Now",-1)],uc=[r.createElementVNode("span",null,"Invite Later",-1)],dc=Ee({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const n=$e(),o=()=>{t("cancel"),location.href=n+"/dashboard"},s=()=>{t("cancel")};return(a,i)=>(r.openBlock(),r.createElementBlock("div",sc,[r.createElementVNode("div",{class:"invite-dialog"},[ac,ic,lc,r.createElementVNode("div",null,[r.createElementVNode("div",{class:"button button-up",onClick:o},cc),r.createElementVNode("div",{class:"button button-down",onClick:s},uc)])])]))}},[["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function fc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.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 hu="",gu="",ue=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),pc={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},mc={class:"flex lg:flex-1"},hc=ue(()=>r.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),gc=["href"],yc=["src","alt"],bc={class:"pl-2 text-xl"},wc={class:"flex lg:hidden"},_c=ue(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),Ec={class:"hidden lg:flex lg:gap-x-12"},vc={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},Sc=ue(()=>r.createElementVNode("span",null,"Apps",-1)),xc={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},Nc=["href"],Pc=["href","target"],Cc={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Oc={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},kc=ue(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),Tc={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},Ac={class:"pr-4"},Lc=["src"],$c=ue(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Vc={class:"user-center-dialog shadow-xl"},Rc=ue(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Fc={class:"flex items-center justify-between"},Dc=["href"],Bc={class:"sr-only"},jc=["src","alt"],Ic=ue(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),Mc={class:"mt-6 flow-root"},Uc={class:"-my-6 divide-y divide-gray-500/10"},Hc={class:"space-y-2 py-6"},zc={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},qc=["href","target"],Gc={key:0,class:"py-6"},Wc=Ee({__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}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={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&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=$e(),i=[{name:"Live Poll Maker for Slides",href:"https://www.livepolls.app"},{name:"Geocode for Sheets",href:"https://www.livepolls.app/geocode"},{name:"Slides Translator",href:"https://www.livepolls.app/slides_translator"},{name:"Screen&Audio Recorder",href:"https://recorder.livepolls.app/recorder"},{name:"ChatGPT Slides Maker",href:"https://www.livepolls.app/ai_slide_generator"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}].filter(S=>S.href!="https://www.livepolls.app"+a),l=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),d=r.computed(()=>n.userStore.user),u=()=>{n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{n.userStore.getUser(n.driveQuery).then(({profile:S})=>{t("initUserCallback",S),console.log("login",S),!S&&n.from!="login"&&!n.isShenHe&&C()},()=>{})});async function y(){g();const S=ye.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(n.driveQuery),t("loginSuccess")}catch{}finally{S.close()}}function g(){n.userStore.showLogin(!1)}function m(){c.value=!0}function w(){c.value=!1}function _(){c.value=!c.value}function C(S){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:N}),google.accounts.id.prompt())}function N(S){!S||!S.credential||ao(S.credential).then(P=>{console.log("fetch_success",P),n.userStore?n.userStore.getUser(n.driveQuery):location.href=location.pathname},P=>{console.log("fetch_fail",P)})}function T(){n.userStore.hideInvite(!1)}return(S,P)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",pc,[r.createElementVNode("div",mc,[hc,r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,yc),r.createElementVNode("span",bc,r.toDisplayString(s.value.name),1)],8,gc)]),r.createElementVNode("div",wc,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:P[0]||(P[0]=b=>p.value=!0)},[_c,r.createVNode(r.unref(Xi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Ec,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(Vo),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ki),null,{default:r.withCtx(()=>[r.createElementVNode("div",vc,[Sc,r.createVNode(r.unref(fc),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),r.createVNode(r.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:r.withCtx(()=>[r.createVNode(r.unref(Yi),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",xc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(b.name),9,Nc))),128))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(b.name),9,Pc))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",Cc)):d.value?(r.openBlock(),r.createElementBlock("div",Tc,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:m,onMouseleave:w},[r.createElementVNode("div",Ac,[r.createElementVNode("span",null,r.toDisplayString(d.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:d.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,Lc),$c,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Vc,[d.value?(r.openBlock(),r.createBlock(Uo,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",Oc,[r.createElementVNode("a",{onClick:u,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"},[r.createTextVNode("Log in"),kc])]))]),r.createVNode(r.unref(qi),{as:"div",class:"lg:hidden",onClose:P[2]||(P[2]=b=>p.value=!1),open:p.value},{default:r.withCtx(()=>[Rc,r.createVNode(r.unref(Gi),{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:r.withCtx(()=>[r.createElementVNode("div",Fc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Bc,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,jc)],8,Dc),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:P[1]||(P[1]=b=>p.value=!1)},[Ic,r.createVNode(r.unref(Zi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Mc,[r.createElementVNode("div",Uc,[r.createElementVNode("div",Hc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",zc,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(b.name),9,qc))),128))]),d.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:_},[d.value?(r.openBlock(),r.createBlock(Uo,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",Gc,[r.createElementVNode("a",{href:"#",onClick:u,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")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(r.openBlock(),r.createBlock(kl,{key:0,onSuccess:y,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore.isShowToast?(r.openBlock(),r.createBlock(rc,{key:1,content:e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(r.openBlock(),r.createBlock(dc,{key:2,onCancel:T})):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Wc)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-header-yichong",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "",
5
5
  "main": "my-header.umd.cjs",
6
6
  "scripts": {