@bluepic/embed 0.6.9 → 0.6.11

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/dist/main.mjs CHANGED
@@ -41466,7 +41466,7 @@ var AT = ["data-bx-popover-id"], jT = ["data-origin", "data-placement"], MT = {
41466
41466
  }
41467
41467
  }), [["__scopeId", "data-v-9cf50f47"]]);
41468
41468
  window.addEventListener("load", () => {
41469
- let e = document.querySelector(hZ);
41469
+ let e = document.querySelector(CZ);
41470
41470
  e && (e.classList.add("bluepic-popup-app-wrapper"), e.parentElement?.classList.add("bluepic-popup-body"));
41471
41471
  });
41472
41472
  function LT(e) {
@@ -41917,7 +41917,7 @@ var QT = /* @__PURE__ */ y({
41917
41917
  });
41918
41918
  let g = window.bluepicPopupProvider;
41919
41919
  return F(() => {
41920
- let e = document.querySelector(hZ);
41920
+ let e = document.querySelector(CZ);
41921
41921
  e && (e.classList.add("bluepic-popup-app-wrapper"), e.parentElement?.classList.add("bluepic-popup-body"));
41922
41922
  }), (e, t) => (L(!0), p(a, null, re(U(u), (e, t) => (L(), d(ie(e), {
41923
41923
  ref_for: !0,
@@ -49654,7 +49654,7 @@ var TD = wD.exports, ED = ["contenteditable", "data-ghost"], DD = ["data-paragra
49654
49654
  });
49655
49655
  let ee = window.bluepicPopupProvider;
49656
49656
  F(() => {
49657
- let e = document.querySelector(hZ);
49657
+ let e = document.querySelector(CZ);
49658
49658
  e && (e.classList.add("bluepic-popup-app-wrapper"), e.parentElement?.classList.add("bluepic-popup-body"));
49659
49659
  }), I(() => {
49660
49660
  for (let e of u.value) e.removeEventListener("click", x);
@@ -57635,7 +57635,7 @@ var II = ["data-overlay-id"], LI = ["data-overlay-id"], RI = /*#__PURE__*/ q(/*
57635
57635
  return t;
57636
57636
  }
57637
57637
  W(m, () => {
57638
- let e = document.querySelector(hZ);
57638
+ let e = document.querySelector(CZ);
57639
57639
  e && (m.value.length > 0 ? e.classList.add("bluepic-popup-app-wrapper-in-background") : e.classList.remove("bluepic-popup-app-wrapper-in-background"));
57640
57640
  });
57641
57641
  function g(e) {
@@ -73349,7 +73349,7 @@ function MJ(e, t, n) {
73349
73349
  [data-bx-style-target='${e.uid}'], .bluepic-popup-provider__wrapper { ${i} ${r} }`;
73350
73350
  }
73351
73351
  function NJ(e, t = {}) {
73352
- let n = jJ(t.wrapperSelector ?? hZ), r = l(() => {
73352
+ let n = jJ(t.wrapperSelector ?? CZ), r = l(() => {
73353
73353
  let n = ue(e), r = ue(t.legacyCustomStyle);
73354
73354
  return yJ(n ?? (r ? EJ(r) : void 0));
73355
73355
  });
@@ -73363,14 +73363,14 @@ function NJ(e, t = {}) {
73363
73363
  };
73364
73364
  }
73365
73365
  function PJ(e, t = {}) {
73366
- let n = jJ(t.wrapperSelector ?? hZ);
73366
+ let n = jJ(t.wrapperSelector ?? CZ);
73367
73367
  return MJ(n, CJ(e), {
73368
73368
  colorScheme: e.mode,
73369
73369
  fontUrl: t.fontUrl,
73370
73370
  extraFontUrls: e.fontUrls
73371
73371
  }), n.uid;
73372
73372
  }
73373
- function FJ(e = hZ, t = "auto", n, r) {
73373
+ function FJ(e = CZ, t = "auto", n, r) {
73374
73374
  if (TJ(n)) {
73375
73375
  let { theme: i } = NJ({
73376
73376
  preset: t === "light" ? "light" : "dark",
@@ -73474,6 +73474,8 @@ var UJ = "https://bx-studio-api-production.bluepic.workers.dev", WJ = "https://r
73474
73474
  stripeEnv = B("prod");
73475
73475
  bxThemeStyleVars;
73476
73476
  id = `bluepic-app-${xe()}`;
73477
+ app;
73478
+ destroyed = !1;
73477
73479
  constructor(e, t, n) {
73478
73480
  if (super(), typeof e == "string") {
73479
73481
  let t = document.querySelector(e);
@@ -73520,6 +73522,9 @@ var UJ = "https://bx-studio-api-production.bluepic.workers.dev", WJ = "https://r
73520
73522
  }
73521
73523
  this.dispatchEvent(new CustomEvent("ready"));
73522
73524
  }
73525
+ destroy() {
73526
+ this.destroyed = !0, this.app?.unmount(), this.app = void 0, this.element.innerHTML = "";
73527
+ }
73523
73528
  mount() {
73524
73529
  getComputedStyle(this.element).boxSizing === "content-box" && (this.element.style.boxSizing = "border-box");
73525
73530
  let e = document.createElement("style");
@@ -73597,7 +73602,7 @@ var UJ = "https://bx-studio-api-production.bluepic.workers.dev", WJ = "https://r
73597
73602
  `;
73598
73603
  let t = this;
73599
73604
  k(() => {
73600
- u({
73605
+ t.destroyed || (t.app = u({
73601
73606
  components: {
73602
73607
  BxTemplateEditor: tG,
73603
73608
  BxSpin: Kb
@@ -73669,7 +73674,7 @@ var UJ = "https://bx-studio-api-production.bluepic.workers.dev", WJ = "https://r
73669
73674
  enforceVideoServerSideRendering: !1
73670
73675
  };
73671
73676
  }
73672
- }).mount(`#${this.id}`);
73677
+ }), t.app.mount(`#${this.id}`));
73673
73678
  });
73674
73679
  }
73675
73680
  setVariable(e, t) {
@@ -73747,17 +73752,62 @@ var qJ = async () => {
73747
73752
  };
73748
73753
  window.addEventListener("load", qJ), window.BluepicEmbed = GJ;
73749
73754
  //#endregion
73755
+ //#region src/embed/popup.ts
73756
+ var JJ = "bluepic-campaign-popup-style", YJ = "\n.bluepic-campaign-popup-stage {\n width: min(1200px, calc(100vw - 48px));\n height: min(820px, calc(100vh - 140px));\n display: flex;\n}\n.bluepic-campaign-popup-stage > div { flex: 1; min-width: 0; min-height: 0; }\n@media (max-width: 640px) {\n .bluepic-campaign-popup-stage { width: calc(100vw - 16px); height: calc(100vh - 110px); }\n}\n";
73757
+ function XJ(e) {
73758
+ if (!document.getElementById(JJ)) {
73759
+ let e = document.createElement("style");
73760
+ e.id = JJ, e.textContent = YJ, document.head.appendChild(e);
73761
+ }
73762
+ let t, n = y({
73763
+ name: "BluepicCampaignPopupStage",
73764
+ setup() {
73765
+ let n = B();
73766
+ return F(() => {
73767
+ n.value && (t = new GJ(n.value, e.campaignId, {
73768
+ templateId: e.templateId,
73769
+ initData: e.data,
73770
+ theme: e.theme,
73771
+ apiBaseUrl: e.apiBaseUrl ?? "https://api.bluepic.io",
73772
+ stripeEnv: e.stripeEnv
73773
+ }));
73774
+ }), N(() => t?.destroy()), () => C("div", { class: "bluepic-campaign-popup-stage" }, [C("div", { ref: n })]);
73775
+ }
73776
+ }), r = RT({
73777
+ type: e.type ?? "frame",
73778
+ title: e.title,
73779
+ draggable: !1,
73780
+ customClasses: ["bluepic-campaign-popup"],
73781
+ content: () => C(n),
73782
+ onClose: e.onClose
73783
+ });
73784
+ return {
73785
+ close: () => r.close(),
73786
+ get embed() {
73787
+ return t;
73788
+ }
73789
+ };
73790
+ }
73791
+ if (typeof window < "u") {
73792
+ let e = window;
73793
+ e.Bluepic = {
73794
+ ...e.Bluepic ?? {},
73795
+ openPopup: XJ,
73796
+ Embed: GJ
73797
+ };
73798
+ }
73799
+ //#endregion
73750
73800
  //#region src/components/User/UserInfo.vue?vue&type=script&setup=true&lang.ts
73751
- var JJ = { class: "user-info" }, YJ = { class: "user-content" }, XJ = {
73801
+ var ZJ = { class: "user-info" }, QJ = { class: "user-content" }, $J = {
73752
73802
  key: 0,
73753
73803
  class: "user-name"
73754
- }, ZJ = {
73804
+ }, eY = {
73755
73805
  key: 1,
73756
73806
  class: "user-email"
73757
- }, QJ = {
73807
+ }, tY = {
73758
73808
  key: 0,
73759
73809
  class: "user-extra"
73760
- }, $J = { class: "actions" }, eY = /*#__PURE__*/ q(/* @__PURE__ */ y({
73810
+ }, nY = { class: "actions" }, rY = /*#__PURE__*/ q(/* @__PURE__ */ y({
73761
73811
  __name: "UserInfo",
73762
73812
  props: {
73763
73813
  user: {},
@@ -73769,14 +73819,14 @@ var JJ = { class: "user-info" }, YJ = { class: "user-content" }, XJ = {
73769
73819
  emits: ["logout", "settings"],
73770
73820
  setup(e, { emit: t }) {
73771
73821
  let n = t, r = fe();
73772
- return (t, i) => (L(), p("div", JJ, [
73822
+ return (t, i) => (L(), p("div", ZJ, [
73773
73823
  m("main", null, [v(aq, {
73774
73824
  user: e.user,
73775
73825
  width: 40,
73776
73826
  height: 40
73777
- }, null, 8, ["user"]), m("div", YJ, [e.user.name ? (L(), p("div", XJ, H(e.user.name), 1)) : f("", !0), e.user.email ? (L(), p("div", ZJ, H(e.user.email), 1)) : f("", !0)])]),
73778
- r.default ? (L(), p("div", QJ, [V(t.$slots, "default", {}, void 0, !0)])) : f("", !0),
73779
- m("footer", null, [m("div", $J, [e.showSettings ? (L(), d(Yb, {
73827
+ }, null, 8, ["user"]), m("div", QJ, [e.user.name ? (L(), p("div", $J, H(e.user.name), 1)) : f("", !0), e.user.email ? (L(), p("div", eY, H(e.user.email), 1)) : f("", !0)])]),
73828
+ r.default ? (L(), p("div", tY, [V(t.$slots, "default", {}, void 0, !0)])) : f("", !0),
73829
+ m("footer", null, [m("div", nY, [e.showSettings ? (L(), d(Yb, {
73780
73830
  key: 0,
73781
73831
  size: "medium",
73782
73832
  onClick: i[0] ||= (e) => n("settings")
@@ -73800,7 +73850,7 @@ var JJ = { class: "user-info" }, YJ = { class: "user-content" }, XJ = {
73800
73850
  })])])
73801
73851
  ]));
73802
73852
  }
73803
- }), [["__scopeId", "data-v-8e175b2d"]]), tY = { class: "category-tabs" }, nY = { class: "tabs-wrapper" }, rY = ["onClick"], iY = /*#__PURE__*/ q(/* @__PURE__ */ y({
73853
+ }), [["__scopeId", "data-v-8e175b2d"]]), iY = { class: "category-tabs" }, aY = { class: "tabs-wrapper" }, oY = ["onClick"], sY = /*#__PURE__*/ q(/* @__PURE__ */ y({
73804
73854
  __name: "Tabs",
73805
73855
  props: /*@__PURE__*/ D({ tabs: {} }, {
73806
73856
  activeTab: { required: !0 },
@@ -73812,13 +73862,13 @@ var JJ = { class: "user-info" }, YJ = { class: "user-content" }, XJ = {
73812
73862
  function i(e) {
73813
73863
  r.value = e, n("click:category", e);
73814
73864
  }
73815
- return (t, n) => (L(), p("div", tY, [m("div", nY, [(L(!0), p(a, null, re(e.tabs, (e) => (L(), p("button", {
73865
+ return (t, n) => (L(), p("div", iY, [m("div", aY, [(L(!0), p(a, null, re(e.tabs, (e) => (L(), p("button", {
73816
73866
  key: e,
73817
73867
  class: A({ active: e === r.value }),
73818
73868
  onClick: (t) => i(e)
73819
- }, [m("span", null, H(e), 1)], 10, rY))), 128))])]));
73869
+ }, [m("span", null, H(e), 1)], 10, oY))), 128))])]));
73820
73870
  }
73821
- }), [["__scopeId", "data-v-a1d3c812"]]), aY = [
73871
+ }), [["__scopeId", "data-v-a1d3c812"]]), cY = [
73822
73872
  "A0",
73823
73873
  "A1",
73824
73874
  "A2",
@@ -73830,14 +73880,14 @@ var JJ = { class: "user-info" }, YJ = { class: "user-content" }, XJ = {
73830
73880
  "A8",
73831
73881
  "A9",
73832
73882
  "A10"
73833
- ], oY = {
73883
+ ], lY = {
73834
73884
  w: 841,
73835
73885
  h: 1189
73836
73886
  };
73837
- function sY() {
73887
+ function uY() {
73838
73888
  let e = [{
73839
- w: oY.w,
73840
- h: oY.h
73889
+ w: lY.w,
73890
+ h: lY.h
73841
73891
  }];
73842
73892
  for (let t = 1; t <= 10; t++) {
73843
73893
  let n = e[t - 1], r = Math.round(n.h / 2), i = n.w, a = r <= i ? {
@@ -73850,20 +73900,20 @@ function sY() {
73850
73900
  e.push(a);
73851
73901
  }
73852
73902
  let t = {};
73853
- return aY.forEach((n, r) => t[n] = e[r]), t;
73903
+ return cY.forEach((n, r) => t[n] = e[r]), t;
73854
73904
  }
73855
- var cY = sY(), lY = 25.4;
73856
- function uY(e) {
73857
- return e / lY;
73905
+ var dY = uY(), fY = 25.4;
73906
+ function pY(e) {
73907
+ return e / fY;
73858
73908
  }
73859
- function dY(e, t) {
73909
+ function mY(e, t) {
73860
73910
  return e * t;
73861
73911
  }
73862
- function fY(e, t) {
73863
- return e / t * lY;
73912
+ function hY(e, t) {
73913
+ return e / t * fY;
73864
73914
  }
73865
- function pY(e, t) {
73866
- let n = cY[e], r = uY(n.w), i = uY(n.h), a = dY(r, t), o = dY(i, t);
73915
+ function gY(e, t) {
73916
+ let n = dY[e], r = pY(n.w), i = pY(n.h), a = mY(r, t), o = mY(i, t);
73867
73917
  return {
73868
73918
  widthPx: Math.round(a),
73869
73919
  heightPx: Math.round(o),
@@ -73876,10 +73926,10 @@ function pY(e, t) {
73876
73926
  }
73877
73927
  };
73878
73928
  }
73879
- function mY(e, t, n, r = 2) {
73880
- let i = e > t, [a, o] = e <= t ? [e, t] : [t, e], s = fY(a, n), c = fY(o, n), l = null;
73881
- for (let e of aY) {
73882
- let t = cY[e], n = s - t.w, i = c - t.h;
73929
+ function _Y(e, t, n, r = 2) {
73930
+ let i = e > t, [a, o] = e <= t ? [e, t] : [t, e], s = hY(a, n), c = hY(o, n), l = null;
73931
+ for (let e of cY) {
73932
+ let t = dY[e], n = s - t.w, i = c - t.h;
73883
73933
  if (Math.abs(n) <= r && Math.abs(i) <= r) {
73884
73934
  let r = Math.abs(n) + Math.abs(i);
73885
73935
  (!l || r < l.score) && (l = {
@@ -73912,27 +73962,27 @@ function mY(e, t, n, r = 2) {
73912
73962
  }
73913
73963
  //#endregion
73914
73964
  //#region src/util/contentEditable.ts
73915
- function hY(e) {
73965
+ function vY(e) {
73916
73966
  let t = window.getSelection();
73917
73967
  if (!t) throw Error("No selection descriptor");
73918
73968
  if (!t.anchorNode) throw Error("No anchor node");
73919
73969
  if (!t.focusNode) throw Error("No focus node");
73920
73970
  if (t.anchorNode.textContent === null) throw Error("Anchor node's text content: null");
73921
73971
  if (t.focusNode.textContent === null) throw Error("Focus node's text content: null");
73922
- let n = vY(e, (e) => e === t.anchorNode), r = vY(e, (e) => e === t.focusNode), i = n.length + t.anchorOffset;
73972
+ let n = xY(e, (e) => e === t.anchorNode), r = xY(e, (e) => e === t.focusNode), i = n.length + t.anchorOffset;
73923
73973
  return {
73924
73974
  start: i,
73925
73975
  length: r.length + t.focusOffset - i
73926
73976
  };
73927
73977
  }
73928
- function gY(e) {
73978
+ function yY(e) {
73929
73979
  let t = B(null);
73930
73980
  function n() {
73931
73981
  let n = document.getSelection();
73932
73982
  if (e.value && n && n.rangeCount > 0) {
73933
73983
  let r = n.getRangeAt(0);
73934
73984
  if (e.value.contains(r.commonAncestorContainer)) try {
73935
- t.value = hY(e.value);
73985
+ t.value = vY(e.value);
73936
73986
  } catch (e) {
73937
73987
  console.error("Failed to get selection", e), t.value = null;
73938
73988
  }
@@ -73942,13 +73992,13 @@ function gY(e) {
73942
73992
  document.removeEventListener("selectionchange", n);
73943
73993
  }), t;
73944
73994
  }
73945
- function _Y({ text: e, format: t }, ...n) {
73995
+ function bY({ text: e, format: t }, ...n) {
73946
73996
  return {
73947
73997
  text: e.slice(...n),
73948
73998
  format: t
73949
73999
  };
73950
74000
  }
73951
- function vY(e, t) {
74001
+ function xY(e, t) {
73952
74002
  let n = document.createTreeWalker(e), r = n.nextNode(), i = "";
73953
74003
  for (; r;) {
73954
74004
  if (t(r)) return i;
@@ -73962,8 +74012,8 @@ function vY(e, t) {
73962
74012
  }
73963
74013
  return i.endsWith("\n") && (i = i.slice(0, -1)), i;
73964
74014
  }
73965
- window.collectContentEditableText = vY;
73966
- function yY(e, t) {
74015
+ window.collectContentEditableText = xY;
74016
+ function SY(e, t) {
73967
74017
  let n = "";
73968
74018
  function r(e) {
73969
74019
  if (!e) return "";
@@ -73980,27 +74030,27 @@ function yY(e, t) {
73980
74030
  }
73981
74031
  return n = r(e), n;
73982
74032
  }
73983
- function bY(e) {
74033
+ function CY(e) {
73984
74034
  let t = [[]], n = 0;
73985
74035
  for (; n in e;) {
73986
74036
  let r = t.length - 1, i = e[n].text.search("\n");
73987
74037
  if (i > -1) {
73988
- let a = _Y(e[n], 0, i), o = _Y(e[n], i + 1);
74038
+ let a = bY(e[n], 0, i), o = bY(e[n], i + 1);
73989
74039
  t[r].push(a);
73990
- let s = bY([o]);
74040
+ let s = CY([o]);
73991
74041
  for (let e of s) t.push(e);
73992
74042
  } else t[r].push(e[n]);
73993
74043
  n++;
73994
74044
  }
73995
74045
  return t;
73996
74046
  }
73997
- function xY(e, t, n = !1) {
74047
+ function wY(e, t, n = !1) {
73998
74048
  let r = [[]], i = Array.from(e.childNodes).filter((e) => e.nodeType === Node.TEXT_NODE ? (e.textContent?.length ?? 0) > 0 : e.nodeType !== Node.COMMENT_NODE);
73999
74049
  for (let e of i) if (e.nodeType === Node.TEXT_NODE && e.textContent) r[r.length - 1].push({
74000
74050
  text: e.textContent,
74001
74051
  format: t
74002
74052
  });
74003
- else if (e.nodeType === Node.ELEMENT_NODE && e.tagName.toLowerCase() === "br") yY(e, (e) => e?.tagName !== "DIV").length === 0 ? n && r[r.length - 1].push({
74053
+ else if (e.nodeType === Node.ELEMENT_NODE && e.tagName.toLowerCase() === "br") SY(e, (e) => e?.tagName !== "DIV").length === 0 ? n && r[r.length - 1].push({
74004
74054
  text: "",
74005
74055
  format: t
74006
74056
  }) : r.push([]);
@@ -74015,14 +74065,14 @@ function xY(e, t, n = !1) {
74015
74065
  ...JSON.parse(e.getAttribute("data-feature-format") ?? "{}") ?? {}
74016
74066
  };
74017
74067
  e.tagName.toLowerCase() === "div" && r.push([]);
74018
- let o = xY(e, a, n);
74068
+ let o = wY(e, a, n);
74019
74069
  o.slice(0, 1);
74020
74070
  for (let e of o.slice(0, 1)) for (let t of e) t.text === "\n" ? r.push([]) : r[r.length - 1].push(t);
74021
74071
  for (let e of o.slice(1)) r.push(e);
74022
74072
  }
74023
74073
  return r.filter((e) => e.length > 0);
74024
74074
  }
74025
- function SY(e, t, n) {
74075
+ function TY(e, t, n) {
74026
74076
  return e.map(({ text: r, format: i }, a) => {
74027
74077
  let o = e.slice(0, a).reduce((e, { text: t }) => e + t.length, 0);
74028
74078
  return {
@@ -74031,26 +74081,26 @@ function SY(e, t, n) {
74031
74081
  };
74032
74082
  }).filter(({ text: e }) => e.length > 0);
74033
74083
  }
74034
- function CY(e) {
74084
+ function EY(e) {
74035
74085
  return e.reduce((e, { text: t }) => e + t.length, 0);
74036
74086
  }
74037
- function wY(e, t, n, r) {
74087
+ function DY(e, t, n, r) {
74038
74088
  let i = B(t.value), a = B(t.value);
74039
74089
  W(t, () => {
74040
74090
  xE(i.value, t.value) || (i.value = t.value, o.value = xe());
74041
74091
  });
74042
- let o = B(xe()), s = gY(e), c = (t) => {
74092
+ let o = B(xe()), s = yY(e), c = (t) => {
74043
74093
  if (e.value) {
74044
- let t = xY(e.value, {}, !0), r = t.reduce((e, t) => {
74045
- let n = bY(t);
74094
+ let t = wY(e.value, {}, !0), r = t.reduce((e, t) => {
74095
+ let n = CY(t);
74046
74096
  return [...e, ...n];
74047
74097
  }, []).filter((e, n) => [].concat(...t.slice(n)).length > 0), o = n.maxLengthPerLine ?? Infinity, s = n.maxLength ?? Infinity, c = n.maxLines ?? Infinity, l = 0;
74048
74098
  a.value = r.map((e, t) => {
74049
74099
  if (e.length === 1 && e[0].text === "") return e;
74050
- let n = CY(SY(e, 0, o));
74100
+ let n = EY(TY(e, 0, o));
74051
74101
  l += n;
74052
74102
  let r = l + t, i = t >= c ? 0 : Math.min(n - Math.max(r - s, 0), o);
74053
- return [...SY(e, 0, i), ...SY(e, i, Infinity).map((e) => ({
74103
+ return [...TY(e, 0, i), ...TY(e, i, Infinity).map((e) => ({
74054
74104
  text: e.text,
74055
74105
  format: {
74056
74106
  ...e.format,
@@ -74071,14 +74121,14 @@ function wY(e, t, n, r) {
74071
74121
  let u = (e, t, n, r) => {
74072
74122
  let i = t + n;
74073
74123
  return CE(e.map((n, a) => {
74074
- let o = a + e.slice(0, a).map(CY).reduce((e, t) => e + t, 0), s = CY(n), c = SY(n, t - o, i - o).map(({ text: e }) => e).join("");
74124
+ let o = a + e.slice(0, a).map(EY).reduce((e, t) => e + t, 0), s = EY(n), c = TY(n, t - o, i - o).map(({ text: e }) => e).join("");
74075
74125
  return o + s >= t && o < i ? [
74076
- ...SY(n, 0, t - o),
74126
+ ...TY(n, 0, t - o),
74077
74127
  {
74078
74128
  text: c,
74079
74129
  format: r
74080
74130
  },
74081
- ...SY(n, i - o, Infinity)
74131
+ ...TY(n, i - o, Infinity)
74082
74132
  ] : n;
74083
74133
  })).map((e) => {
74084
74134
  let t = [];
@@ -74098,19 +74148,19 @@ function wY(e, t, n, r) {
74098
74148
  applyFormat: (t, n, r, s = !0) => {
74099
74149
  let { start: c, length: d } = l(t, n);
74100
74150
  i.value = u(i.value, c, d, r), a.value = u(a.value, c, d, r), o.value = xe(), k(() => {
74101
- e.value && s && EY(e.value, c, d);
74151
+ e.value && s && kY(e.value, c, d);
74102
74152
  });
74103
74153
  },
74104
74154
  resolveFeatures: (e, t) => {
74105
74155
  let n = e + t;
74106
74156
  return i.value.map((t, r) => {
74107
- let a = r + i.value.slice(0, r).map(CY).reduce((e, t) => e + t, 0);
74108
- return SY(t, e - a, n - a);
74157
+ let a = r + i.value.slice(0, r).map(EY).reduce((e, t) => e + t, 0);
74158
+ return TY(t, e - a, n - a);
74109
74159
  });
74110
74160
  }
74111
74161
  };
74112
74162
  }
74113
- function TY(e, t) {
74163
+ function OY(e, t) {
74114
74164
  let n = document.createTreeWalker(t), r = n.nextNode(), i = 0;
74115
74165
  for (; r;) {
74116
74166
  if (r === e) return i;
@@ -74118,12 +74168,12 @@ function TY(e, t) {
74118
74168
  }
74119
74169
  return null;
74120
74170
  }
74121
- function EY(e, t, n) {
74171
+ function kY(e, t, n) {
74122
74172
  let r = t + n, i = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null), a = [], o = i.nextNode();
74123
74173
  for (; o;) {
74124
74174
  let n = o.textContent?.length ?? 0;
74125
74175
  if (n > 0) {
74126
- let i = TY(o, e);
74176
+ let i = OY(o, e);
74127
74177
  if (i !== null && i < r && i + n > t) {
74128
74178
  let e = Math.max(0, t - i), s = Math.min(Math.max(0, r - i), i + n);
74129
74179
  a.push({
@@ -74145,7 +74195,7 @@ function EY(e, t, n) {
74145
74195
  }
74146
74196
  //#endregion
74147
74197
  //#region src/components/RichTextDisplay.vue?vue&type=script&setup=true&lang.ts
74148
- var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__PURE__*/ q(/* @__PURE__ */ y({
74198
+ var AY = ["contenteditable", "data-ghost"], jY = ["data-paragraph"], MY = /*#__PURE__*/ q(/* @__PURE__ */ y({
74149
74199
  __name: "RichTextDisplay",
74150
74200
  props: {
74151
74201
  paragraphs: {},
@@ -74195,9 +74245,9 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74195
74245
  key: 0,
74196
74246
  "data-custom-br": "true",
74197
74247
  "data-paragraph": JSON.stringify(e)
74198
- }, null, 8, OY)) : f("", !0)], 64))), 128))], 42, DY));
74248
+ }, null, 8, jY)) : f("", !0)], 64))), 128))], 42, AY));
74199
74249
  }
74200
- }), [["__scopeId", "data-v-88776d3a"]]), AY = { class: "rich-text-wrapper" }, jY = ["data-feature-format"], MY = ["data-feature-format"], NY = /*#__PURE__*/ q(/* @__PURE__ */ y({
74250
+ }), [["__scopeId", "data-v-88776d3a"]]), NY = { class: "rich-text-wrapper" }, PY = ["data-feature-format"], FY = ["data-feature-format"], IY = /*#__PURE__*/ q(/* @__PURE__ */ y({
74201
74251
  __name: "RichText",
74202
74252
  props: {
74203
74253
  value: {},
@@ -74220,7 +74270,7 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74220
74270
  "update:focus"
74221
74271
  ],
74222
74272
  setup(e, { expose: t, emit: n }) {
74223
- let r = e, i = n, a = l(() => !r.multiline), o = B(), s = B(), c = l(() => o.value?.richTextEditorDivRef), { handleInputEvent: u, paragraphs: f, visibleParagraphs: h, manipulationState: g, applyFormat: _, resolveFeatures: y, selection: b } = wY(c, le(r, "value"), {
74273
+ let r = e, i = n, a = l(() => !r.multiline), o = B(), s = B(), c = l(() => o.value?.richTextEditorDivRef), { handleInputEvent: u, paragraphs: f, visibleParagraphs: h, manipulationState: g, applyFormat: _, resolveFeatures: y, selection: b } = DY(c, le(r, "value"), {
74224
74274
  maxLength: r.maxLength,
74225
74275
  maxLengthPerLine: r.maxLengthPerLine,
74226
74276
  maxLines: r.maxLines
@@ -74265,7 +74315,7 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74265
74315
  }), t({
74266
74316
  applyFormat: _,
74267
74317
  resolveFeatures: y
74268
- }), (t, n) => (L(), p("div", { class: A(["rich-text", { focus: C.value }]) }, [m("div", AY, [v(kY, {
74318
+ }), (t, n) => (L(), p("div", { class: A(["rich-text", { focus: C.value }]) }, [m("div", NY, [v(MY, {
74269
74319
  ref_key: "richTextDisplayGhostInstance",
74270
74320
  ref: s,
74271
74321
  paragraphs: U(h),
@@ -74280,9 +74330,9 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74280
74330
  "line-overflow": !!t.format.lineOverflow,
74281
74331
  overflow: !!t.format.overflow
74282
74332
  }])
74283
- }, H(t.text), 11, jY)]),
74333
+ }, H(t.text), 11, PY)]),
74284
74334
  _: 1
74285
- }, 8, ["paragraphs"]), (L(), d(kY, {
74335
+ }, 8, ["paragraphs"]), (L(), d(MY, {
74286
74336
  ref_key: "richTextDisplayInstance",
74287
74337
  ref: o,
74288
74338
  key: U(g),
@@ -74294,7 +74344,7 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74294
74344
  feature: G((t) => [m("span", {
74295
74345
  "data-feature-format": JSON.stringify(t.format),
74296
74346
  class: A(["feature-wrapper", { [t.cssclass(e.renderFeatureInlineStyle(t.format))]: !0 }])
74297
- }, H(t.text), 11, MY)]),
74347
+ }, H(t.text), 11, FY)]),
74298
74348
  _: 1
74299
74349
  }, 8, [
74300
74350
  "paragraphs",
@@ -74305,46 +74355,96 @@ var DY = ["contenteditable", "data-ghost"], OY = ["data-paragraph"], kY = /*#__P
74305
74355
  }), [["__scopeId", "data-v-53250444"]]);
74306
74356
  //#endregion
74307
74357
  //#region src/util/gallery.ts
74308
- function PY(e) {
74358
+ function LY(e) {
74309
74359
  return (e.canvases?.length ?? 0) >= 2;
74310
74360
  }
74311
- function FY(e) {
74361
+ function RY(e) {
74312
74362
  let t = /* @__PURE__ */ new Map();
74313
74363
  for (let n in e) {
74314
74364
  let r = e[n];
74315
74365
  if (!r) continue;
74316
- let i = PY(r) ? n : r.name;
74366
+ let i = LY(r) ? n : r.name;
74317
74367
  t.has(i) || t.set(i, {}), t.get(i)[n] = r;
74318
74368
  }
74319
74369
  let n = (e, t) => Object.values(e)[0]?.name ?? t, r = Array.from(t.entries()).sort(([e, t], [r, i]) => n(t, e).toLowerCase().localeCompare(n(i, r).toLowerCase()));
74320
74370
  return Object.fromEntries(r);
74321
74371
  }
74322
- var IY = "Other";
74323
- function LY(e) {
74372
+ var zY = "Other";
74373
+ function BY(e) {
74324
74374
  return [...e].sort((e, t) => e.title.toLowerCase().localeCompare(t.title.toLowerCase()));
74325
74375
  }
74326
- function RY(e, t, n) {
74327
- let r = t ?? [], i = new Set((n ?? []).flatMap((e) => e.items)), a = (t) => {
74376
+ function VY(e, t) {
74377
+ let n = e[t];
74378
+ return LY(n) ? t : n.name;
74379
+ }
74380
+ function HY(e, t) {
74381
+ return [...Object.entries(e).map(([e, t]) => ({
74382
+ kind: "template",
74383
+ key: e,
74384
+ templates: t
74385
+ })), ...t.map((e) => ({
74386
+ kind: "asset",
74387
+ asset: e
74388
+ }))];
74389
+ }
74390
+ function UY(e, t, n) {
74391
+ let r = RY(e), i = new Map(t.map((e) => [e.id, e])), a = [], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
74392
+ for (let t of n) if (e[t]) {
74393
+ let i = VY(e, t);
74394
+ if (o.has(i)) continue;
74395
+ o.add(i);
74396
+ let s = r[i], c = Object.keys(s).sort((e, t) => WY(n, e) - WY(n, t));
74397
+ a.push({
74398
+ kind: "template",
74399
+ key: i,
74400
+ templates: Object.fromEntries(c.map((e) => [e, s[e]]))
74401
+ });
74402
+ } else i.has(t) && !s.has(t) && (s.add(t), a.push({
74403
+ kind: "asset",
74404
+ asset: i.get(t)
74405
+ }));
74406
+ for (let [e, t] of Object.entries(r)) o.has(e) || a.push({
74407
+ kind: "template",
74408
+ key: e,
74409
+ templates: t
74410
+ });
74411
+ for (let e of BY(t)) s.has(e.id) || a.push({
74412
+ kind: "asset",
74413
+ asset: e
74414
+ });
74415
+ return a;
74416
+ }
74417
+ function WY(e, t) {
74418
+ let n = e.indexOf(t);
74419
+ return n < 0 ? 2 ** 53 - 1 : n;
74420
+ }
74421
+ function GY(e, t, n, r = {}) {
74422
+ let i = t ?? [], a = new Set((n ?? []).flatMap((e) => e.items)), o = Array.isArray(r.order) ? r.order : null, s = (t) => {
74328
74423
  let n = {};
74329
74424
  for (let r in e) e[r] && t(r) && (n[r] = e[r]);
74330
74425
  return n;
74331
- }, o = (n ?? []).map((e) => ({
74332
- category: e.label,
74333
- templatesByName: FY(a((t) => e.items.includes(t))),
74334
- assets: LY(r.filter((t) => e.items.includes(t.id)))
74335
- })), s = a((e) => !i.has(e)), c = LY(r.filter((e) => !i.has(e.id)));
74336
- return (Object.keys(s).length > 0 || c.length > 0) && o.push({
74337
- category: IY,
74338
- templatesByName: FY(s),
74339
- assets: c
74340
- }), o.filter((e) => Object.keys(e.templatesByName).length > 0 || e.assets.length > 0);
74341
- }
74342
- function zY(e, t, n) {
74343
- return RY(e, t, n).map((e) => e.category);
74426
+ }, c = (e, t, n, r, i) => {
74427
+ let a = RY(n), o = BY(r);
74428
+ return {
74429
+ category: e,
74430
+ categoryIndex: t,
74431
+ templatesByName: a,
74432
+ assets: o,
74433
+ items: i ? UY(n, r, i) : HY(a, o)
74434
+ };
74435
+ }, l = (n ?? []).map((e, t) => c(e.label, t, s((t) => e.items.includes(t)), i.filter((t) => e.items.includes(t.id)), o ? e.items : null)), u = s((e) => !a.has(e)), d = i.filter((e) => !a.has(e.id));
74436
+ return (Object.keys(u).length > 0 || d.length > 0) && l.push(c(zY, null, u, d, o)), r.includeEmpty ? l : l.filter((e) => e.items.length > 0);
74437
+ }
74438
+ function KY(e, t, n) {
74439
+ let r = t ?? [];
74440
+ return Array.isArray(n) ? UY(e, r, n) : HY(RY(e), BY(r));
74441
+ }
74442
+ function qY(e, t, n) {
74443
+ return GY(e, t, n).map((e) => e.category);
74344
74444
  }
74345
74445
  //#endregion
74346
74446
  //#region src/util/aspectRatio.ts
74347
- function BY(e, t) {
74447
+ function JY(e, t) {
74348
74448
  let n = [0, 1], r = [1, 0];
74349
74449
  for (;;) {
74350
74450
  let i = [n[0] + r[0], n[1] + r[1]];
@@ -74358,51 +74458,51 @@ function BY(e, t) {
74358
74458
  }
74359
74459
  }
74360
74460
  }
74361
- var VY = (e, t) => {
74362
- let n = BY(e / t, 50);
74461
+ var YY = (e, t) => {
74462
+ let n = JY(e / t, 50);
74363
74463
  return `${n[0]}:${n[1]}`;
74364
74464
  };
74365
- function HY(e) {
74366
- let t = e.meta.width, n = e.meta.height, r = mY(t, n, 300);
74367
- return r ? r.level : VY(t, n);
74465
+ function XY(e) {
74466
+ let t = e.meta.width, n = e.meta.height, r = _Y(t, n, 300);
74467
+ return r ? r.level : YY(t, n);
74368
74468
  }
74369
74469
  //#endregion
74370
74470
  //#region src/util/assetAuth.ts
74371
- var UY = "password", WY = "access_token";
74372
- function GY(e) {
74471
+ var ZY = "password", QY = "access_token";
74472
+ function $Y(e) {
74373
74473
  return {
74374
74474
  ...e?.password ? { "X-Bluepic-Password": e.password } : {},
74375
74475
  ...e?.accessToken ? { Authorization: `Bearer ${e.accessToken}` } : {}
74376
74476
  };
74377
74477
  }
74378
- function KY(e, t) {
74478
+ function eX(e, t) {
74379
74479
  if (!t?.password && !t?.accessToken) return e;
74380
- let [n, r] = qY(e), i = n.includes("?") ? "&" : "?", a = new URLSearchParams();
74381
- return t.password && a.set(UY, t.password), t.accessToken && a.set(WY, t.accessToken), `${n}${i}${a.toString()}${r}`;
74480
+ let [n, r] = tX(e), i = n.includes("?") ? "&" : "?", a = new URLSearchParams();
74481
+ return t.password && a.set(ZY, t.password), t.accessToken && a.set(QY, t.accessToken), `${n}${i}${a.toString()}${r}`;
74382
74482
  }
74383
- function qY(e) {
74483
+ function tX(e) {
74384
74484
  let t = e.indexOf("#");
74385
74485
  return t === -1 ? [e, ""] : [e.slice(0, t), e.slice(t)];
74386
74486
  }
74387
74487
  //#endregion
74388
74488
  //#region src/components/AssetViewer/AssetViewer.vue?vue&type=script&setup=true&lang.ts
74389
- var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disabled"], ZY = { class: "page-label" }, QY = ["disabled"], $Y = ["aria-label"], eX = {
74489
+ var nX = { class: "viewer-header-tools" }, rX = ["aria-pressed"], iX = ["disabled"], aX = { class: "page-label" }, oX = ["disabled"], sX = ["aria-label"], cX = {
74390
74490
  key: 0,
74391
74491
  class: "page-rail",
74392
74492
  "aria-label": "Pages"
74393
- }, tX = [
74493
+ }, lX = [
74394
74494
  "aria-current",
74395
74495
  "aria-label",
74396
74496
  "onClick"
74397
- ], nX = { class: "rail-number" }, rX = ["src"], iX = ["src", "alt"], aX = ["src", "poster"], oX = {
74497
+ ], uX = { class: "rail-number" }, dX = ["src"], fX = ["src", "alt"], pX = ["src", "poster"], mX = {
74398
74498
  key: 4,
74399
74499
  class: "audio-player"
74400
- }, sX = { class: "transport" }, cX = ["aria-label"], lX = {
74500
+ }, hX = { class: "transport" }, gX = ["aria-label"], _X = {
74401
74501
  viewBox: "0 0 24 24",
74402
74502
  width: "22",
74403
74503
  height: "22",
74404
74504
  "aria-hidden": "true"
74405
- }, uX = {
74505
+ }, vX = {
74406
74506
  key: 0,
74407
74507
  x: "6",
74408
74508
  y: "5",
@@ -74410,7 +74510,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74410
74510
  height: "14",
74411
74511
  rx: "1.5",
74412
74512
  fill: "currentColor"
74413
- }, dX = {
74513
+ }, yX = {
74414
74514
  key: 1,
74415
74515
  x: "14",
74416
74516
  y: "5",
@@ -74418,75 +74518,75 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74418
74518
  height: "14",
74419
74519
  rx: "1.5",
74420
74520
  fill: "currentColor"
74421
- }, fX = {
74521
+ }, bX = {
74422
74522
  key: 2,
74423
74523
  d: "M8 5.5v13l11-6.5z",
74424
74524
  fill: "currentColor"
74425
- }, pX = { class: "time" }, mX = { class: "time total" }, hX = ["src"], gX = {
74525
+ }, xX = { class: "time" }, SX = { class: "time total" }, CX = ["src"], wX = {
74426
74526
  key: 5,
74427
74527
  class: "sheet-view"
74428
- }, _X = {
74528
+ }, TX = {
74429
74529
  key: 0,
74430
74530
  class: "text-status"
74431
- }, vX = {
74531
+ }, EX = {
74432
74532
  key: 0,
74433
74533
  class: "doc-toolbar"
74434
- }, yX = { class: "sheet-scroll" }, bX = { class: "sheet-table" }, xX = { class: "row-number" }, SX = {
74534
+ }, DX = { class: "sheet-scroll" }, OX = { class: "sheet-table" }, kX = { class: "row-number" }, AX = {
74435
74535
  key: 1,
74436
74536
  class: "text-status"
74437
- }, CX = {
74537
+ }, jX = {
74438
74538
  key: 2,
74439
74539
  class: "text-status"
74440
- }, wX = {
74540
+ }, MX = {
74441
74541
  key: 6,
74442
74542
  class: "email-view"
74443
- }, TX = {
74543
+ }, NX = {
74444
74544
  key: 0,
74445
74545
  class: "text-status"
74446
- }, EX = { class: "email-headers" }, DX = { key: 0 }, OX = { key: 1 }, kX = {
74546
+ }, PX = { class: "email-headers" }, FX = { key: 0 }, IX = { key: 1 }, LX = {
74447
74547
  key: 0,
74448
74548
  class: "email-attachments"
74449
- }, AX = { class: "attachment-label" }, jX = ["innerHTML"], MX = {
74549
+ }, RX = { class: "attachment-label" }, zX = ["innerHTML"], BX = {
74450
74550
  key: 2,
74451
74551
  class: "text-status"
74452
- }, NX = {
74552
+ }, VX = {
74453
74553
  key: 7,
74454
74554
  class: "markdown-view"
74455
- }, PX = {
74555
+ }, HX = {
74456
74556
  key: 0,
74457
74557
  class: "text-status"
74458
- }, FX = ["innerHTML"], IX = {
74558
+ }, UX = ["innerHTML"], WX = {
74459
74559
  key: 2,
74460
74560
  class: "text-status"
74461
- }, LX = {
74561
+ }, GX = {
74462
74562
  key: 8,
74463
74563
  class: "text-view"
74464
- }, RX = {
74564
+ }, KX = {
74465
74565
  key: 0,
74466
74566
  class: "text-status"
74467
- }, zX = { class: "text-body" }, BX = {
74567
+ }, qX = { class: "text-body" }, JX = {
74468
74568
  key: 0,
74469
74569
  class: "text-status"
74470
- }, VX = {
74570
+ }, YX = {
74471
74571
  key: 2,
74472
74572
  class: "text-status"
74473
- }, HX = {
74573
+ }, XX = {
74474
74574
  key: 0,
74475
74575
  class: "font-error"
74476
- }, UX = { class: "specimen-controls" }, WX = { class: "specimen-scale" }, GX = { class: "scale-label" }, KX = {
74576
+ }, ZX = { class: "specimen-controls" }, QX = { class: "specimen-scale" }, $X = { class: "scale-label" }, eZ = {
74477
74577
  key: 2,
74478
74578
  class: "font-loading"
74479
- }, qX = ["src", "alt"], JX = {
74579
+ }, tZ = ["src", "alt"], nZ = {
74480
74580
  key: 11,
74481
74581
  class: "no-preview"
74482
- }, YX = { class: "ext-badge" }, XX = { class: "name" }, ZX = {
74582
+ }, rZ = { class: "ext-badge" }, iZ = { class: "name" }, aZ = {
74483
74583
  key: 12,
74484
74584
  class: "rendering",
74485
74585
  "aria-live": "polite"
74486
- }, QX = {
74586
+ }, oZ = {
74487
74587
  key: 1,
74488
74588
  class: "description"
74489
- }, $X = 3, eZ = 2, tZ = 524288, nZ = 500, rZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
74589
+ }, sZ = 3, cZ = 2, lZ = 524288, uZ = 500, dZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
74490
74590
  __name: "AssetViewer",
74491
74591
  props: {
74492
74592
  asset: {},
@@ -74499,9 +74599,9 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74499
74599
  let n = e, r = t, i = /pdf|postscript|illustrator|photoshop|eps|psd/, s = /csv|tab-separated|spreadsheet|ms-excel/, c = /font|opentype|truetype|woff/, u = l(() => {
74500
74600
  let e = n.asset.mime;
74501
74601
  return n.asset.kind === "image" ? "image" : e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : c.test(e) ? "font" : s.test(e) || /\.(csv|tsv|xlsx?|ods)$/i.test(n.asset.filename) ? "sheet" : e === "message/rfc822" || /\.eml$/i.test(n.asset.filename) ? "email" : e === "text/markdown" || /\.mdx?$/i.test(n.asset.filename) ? "markdown" : e.startsWith("text/") || e === "application/json" ? "text" : n.renderPage && (n.asset.documentUrl || i.test(e)) ? "page" : "none";
74502
- }), h = l(() => n.asset.downloadUrl.replace(/\/download(?=$|\?)/, "/preview")), g = l(() => KY(h.value, n.assetAuth)), _ = l(() => ({
74602
+ }), h = l(() => n.asset.downloadUrl.replace(/\/download(?=$|\?)/, "/preview")), g = l(() => eX(h.value, n.assetAuth)), _ = l(() => ({
74503
74603
  credentials: "omit",
74504
- headers: GY(n.assetAuth)
74604
+ headers: $Y(n.assetAuth)
74505
74605
  })), y = B(), b = B(), x = B(), S = B(!1), C = B();
74506
74606
  async function w() {
74507
74607
  if (!(u.value !== "text" && u.value !== "markdown" || x.value !== void 0)) {
@@ -74510,7 +74610,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74510
74610
  let e = await fetch(h.value, _.value);
74511
74611
  if (!e.ok) throw Error(`Could not load the file (${e.status})`);
74512
74612
  let t = await e.arrayBuffer();
74513
- S.value = t.byteLength > tZ, x.value = new TextDecoder("utf-8", { fatal: !1 }).decode(t.slice(0, tZ)), qe.value = !0, u.value === "markdown" && await pe(x.value);
74613
+ S.value = t.byteLength > lZ, x.value = new TextDecoder("utf-8", { fatal: !1 }).decode(t.slice(0, lZ)), qe.value = !0, u.value === "markdown" && await pe(x.value);
74514
74614
  } catch (e) {
74515
74615
  console.warn("[AssetViewer] text could not be loaded", e), C.value = "This file could not be loaded for preview. You can still download it.";
74516
74616
  }
@@ -74531,7 +74631,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74531
74631
  if (s === "\"") a = !0;
74532
74632
  else if (s === t) r.push(i), i = "";
74533
74633
  else if (s === "\n") {
74534
- if (r.push(i), n.push(r), r = [], i = "", n.length > nZ) break;
74634
+ if (r.push(i), n.push(r), r = [], i = "", n.length > uZ) break;
74535
74635
  } else s !== "\r" && (i += s);
74536
74636
  }
74537
74637
  return (i !== "" || r.length) && (r.push(i), n.push(r)), n;
@@ -74560,7 +74660,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74560
74660
  raw: !1,
74561
74661
  defval: ""
74562
74662
  });
74563
- O.value = r.length > nZ, T.value = r.slice(0, nZ).map((e) => e.map((e) => String(e ?? "")));
74663
+ O.value = r.length > uZ, T.value = r.slice(0, uZ).map((e) => e.map((e) => String(e ?? "")));
74564
74664
  }
74565
74665
  async function ne() {
74566
74666
  if (!(u.value !== "sheet" || T.value.length || k.value)) try {
@@ -74570,7 +74670,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74570
74670
  if (/sheet|ms-excel/.test(n.asset.mime) || /\.(xlsx?|ods)$/i.test(n.asset.filename)) j = (await import("./xlsx-Bm1OL5B8.js")).read(t, { type: "array" }), E.value = j.SheetNames, D.value = E.value[0] ?? "", D.value && await R(D.value);
74571
74671
  else {
74572
74672
  let e = new TextDecoder("utf-8", { fatal: !1 }).decode(t), n = ee(e, I(e));
74573
- O.value = n.length > nZ, T.value = n.slice(0, nZ);
74673
+ O.value = n.length > uZ, T.value = n.slice(0, uZ);
74574
74674
  }
74575
74675
  qe.value = !0;
74576
74676
  } catch (e) {
@@ -74797,12 +74897,12 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74797
74897
  if (it || t !== rt) return;
74798
74898
  let i = b.value;
74799
74899
  if (!i) return;
74800
- let a = Math.min(typeof window < "u" && window.devicePixelRatio || 1, eZ);
74900
+ let a = Math.min(typeof window < "u" && window.devicePixelRatio || 1, cZ);
74801
74901
  if (await n.renderPage(r, i, {
74802
74902
  page: e,
74803
74903
  dpi: 96 * a
74804
74904
  }), it || t !== rt) return;
74805
- if (i.width && i.height && (Ge.value = i.width / i.height), qe.value = !0, nt.set(e, i), nt.size > $X) {
74905
+ if (i.width && i.height && (Ge.value = i.width / i.height), qe.value = !0, nt.set(e, i), nt.size > sZ) {
74806
74906
  let e = nt.keys().next().value;
74807
74907
  e !== void 0 && nt.delete(e);
74808
74908
  }
@@ -74859,7 +74959,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74859
74959
  key: 0,
74860
74960
  to: U(ge) || void 0
74861
74961
  }, {
74862
- default: G(() => [m("div", JY, [
74962
+ default: G(() => [m("div", nX, [
74863
74963
  u.value === "page" && Ze.value > 1 ? (L(), p(a, { key: 0 }, [
74864
74964
  m("button", {
74865
74965
  class: A(["tool-btn rail-toggle", { active: st.value }]),
@@ -74899,22 +74999,22 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74899
74999
  stroke: "currentColor",
74900
75000
  "stroke-width": "1.6"
74901
75001
  })
74902
- ], -1)]], 10, YY),
75002
+ ], -1)]], 10, rX),
74903
75003
  m("button", {
74904
75004
  class: "tool-btn",
74905
75005
  type: "button",
74906
75006
  disabled: Xe.value <= 1,
74907
75007
  "aria-label": "Previous page",
74908
75008
  onClick: n[1] ||= (e) => mt(Xe.value - 1)
74909
- }, "‹", 8, XY),
74910
- m("span", ZY, H(Xe.value) + " / " + H(Ze.value), 1),
75009
+ }, "‹", 8, iX),
75010
+ m("span", aX, H(Xe.value) + " / " + H(Ze.value), 1),
74911
75011
  m("button", {
74912
75012
  class: "tool-btn",
74913
75013
  type: "button",
74914
75014
  disabled: Xe.value >= Ze.value,
74915
75015
  "aria-label": "Next page",
74916
75016
  onClick: n[2] ||= (e) => mt(Xe.value + 1)
74917
- }, "›", 8, QY)
75017
+ }, "›", 8, oX)
74918
75018
  ], 64)) : f("", !0),
74919
75019
  u.value === "markdown" ? (L(), d(vF, {
74920
75020
  key: 1,
@@ -74956,7 +75056,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74956
75056
  "aria-modal": "true",
74957
75057
  "aria-label": e.asset.title
74958
75058
  }, [
74959
- ct.value ? (L(), p("aside", eX, [(L(!0), p(a, null, re(Ze.value, (e) => (L(), p("button", {
75059
+ ct.value ? (L(), p("aside", cX, [(L(!0), p(a, null, re(Ze.value, (e) => (L(), p("button", {
74960
75060
  key: e,
74961
75061
  class: A(["rail-item", { current: e === Xe.value }]),
74962
75062
  type: "button",
@@ -74967,7 +75067,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74967
75067
  ref_for: !0,
74968
75068
  ref: (t) => ft(e, t),
74969
75069
  class: "rail-thumb"
74970
- }, null, 512), m("span", nX, H(e), 1)], 10, tX))), 128))])) : f("", !0),
75070
+ }, null, 512), m("span", uX, H(e), 1)], 10, lX))), 128))])) : f("", !0),
74971
75071
  m("div", {
74972
75072
  ref_key: "stageRef",
74973
75073
  ref: y,
@@ -74979,14 +75079,14 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74979
75079
  src: e.asset.previewUrl,
74980
75080
  alt: "",
74981
75081
  "aria-hidden": "true"
74982
- }, null, 8, rX)) : f("", !0),
75082
+ }, null, 8, dX)) : f("", !0),
74983
75083
  u.value === "image" ? (L(), p("img", {
74984
75084
  key: 1,
74985
75085
  class: "full",
74986
75086
  src: g.value,
74987
75087
  alt: e.asset.title,
74988
75088
  onLoad: Ke
74989
- }, null, 40, iX)) : u.value === "page" && !Ye.value ? (L(), p("canvas", {
75089
+ }, null, 40, fX)) : u.value === "page" && !Ye.value ? (L(), p("canvas", {
74990
75090
  key: 2,
74991
75091
  ref_key: "canvasRef",
74992
75092
  ref: b,
@@ -74999,21 +75099,21 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
74999
75099
  controls: "",
75000
75100
  playsinline: "",
75001
75101
  onLoadeddata: n[5] ||= (e) => qe.value = !0
75002
- }, null, 40, aX)) : u.value === "audio" ? (L(), p("div", oX, [
75102
+ }, null, 40, pX)) : u.value === "audio" ? (L(), p("div", mX, [
75003
75103
  m("canvas", {
75004
75104
  ref_key: "waveCanvasRef",
75005
75105
  ref: ke,
75006
75106
  class: "wave",
75007
75107
  "aria-hidden": "true"
75008
75108
  }, null, 512),
75009
- m("div", sX, [
75109
+ m("div", hX, [
75010
75110
  m("button", {
75011
75111
  class: "play",
75012
75112
  type: "button",
75013
75113
  "aria-label": Ae.value ? "Pause" : "Play",
75014
75114
  onClick: Ue
75015
- }, [(L(), p("svg", lX, [Ae.value ? (L(), p("rect", uX)) : f("", !0), Ae.value ? (L(), p("rect", dX)) : (L(), p("path", fX))]))], 8, cX),
75016
- m("span", pX, H(We(Me.value)), 1),
75115
+ }, [(L(), p("svg", _X, [Ae.value ? (L(), p("rect", vX)) : f("", !0), Ae.value ? (L(), p("rect", yX)) : (L(), p("path", bX))]))], 8, gX),
75116
+ m("span", xX, H(We(Me.value)), 1),
75017
75117
  v(eo, {
75018
75118
  class: "seek",
75019
75119
  "model-value": Me.value,
@@ -75028,7 +75128,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
75028
75128
  "max",
75029
75129
  "aria-valuetext"
75030
75130
  ]),
75031
- m("span", mX, H(We(je.value)), 1)
75131
+ m("span", SX, H(We(je.value)), 1)
75032
75132
  ]),
75033
75133
  m("audio", {
75034
75134
  ref_key: "audioRef",
@@ -75043,37 +75143,37 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
75043
75143
  onPlay: Re,
75044
75144
  onPause: n[8] ||= (e) => Ae.value = !1,
75045
75145
  onEnded: n[9] ||= (e) => Ae.value = !1
75046
- }, null, 40, hX)
75047
- ])) : u.value === "sheet" ? (L(), p("div", gX, [k.value ? (L(), p("div", _X, H(k.value), 1)) : T.value.length ? (L(), p(a, { key: 1 }, [
75048
- E.value.length > 1 ? (L(), p("div", vX, [v(vF, {
75146
+ }, null, 40, CX)
75147
+ ])) : u.value === "sheet" ? (L(), p("div", wX, [k.value ? (L(), p("div", TX, H(k.value), 1)) : T.value.length ? (L(), p(a, { key: 1 }, [
75148
+ E.value.length > 1 ? (L(), p("div", EX, [v(vF, {
75049
75149
  "model-value": D.value,
75050
75150
  tabs: me.value,
75051
75151
  size: "small",
75052
75152
  "aria-label": "Sheets",
75053
75153
  "onUpdate:modelValue": te
75054
75154
  }, null, 8, ["model-value", "tabs"])])) : f("", !0),
75055
- m("div", yX, [m("table", bX, [m("thead", null, [m("tr", null, [n[14] ||= m("th", {
75155
+ m("div", DX, [m("table", OX, [m("thead", null, [m("tr", null, [n[14] ||= m("th", {
75056
75156
  class: "row-number",
75057
75157
  scope: "col"
75058
75158
  }, null, -1), (L(!0), p(a, null, re(T.value[0], (e, t) => (L(), p("th", {
75059
75159
  key: t,
75060
75160
  scope: "col"
75061
- }, H(e), 1))), 128))])]), m("tbody", null, [(L(!0), p(a, null, re(T.value.slice(1), (e, t) => (L(), p("tr", { key: t }, [m("td", xX, H(t + 2), 1), (L(!0), p(a, null, re(e, (e, t) => (L(), p("td", {
75161
+ }, H(e), 1))), 128))])]), m("tbody", null, [(L(!0), p(a, null, re(T.value.slice(1), (e, t) => (L(), p("tr", { key: t }, [m("td", kX, H(t + 2), 1), (L(!0), p(a, null, re(e, (e, t) => (L(), p("td", {
75062
75162
  key: t,
75063
75163
  class: A({ numeric: P(e) })
75064
75164
  }, H(e), 3))), 128))]))), 128))])])]),
75065
- O.value ? (L(), p("div", SX, "Showing the first " + H(nZ) + " rows — download the file for the rest.")) : f("", !0)
75066
- ], 64)) : (L(), p("div", CX, "Loading…"))])) : u.value === "email" ? (L(), p("div", wX, [ae.value ? (L(), p("div", TX, H(ae.value), 1)) : V.value ? (L(), p(a, { key: 1 }, [
75067
- m("dl", EX, [(L(!0), p(a, null, re(oe.value, (e) => (L(), p(a, { key: e.label }, [e.value ? (L(), p("dt", DX, H(e.label), 1)) : f("", !0), e.value ? (L(), p("dd", OX, H(e.value), 1)) : f("", !0)], 64))), 128))]),
75068
- V.value.attachments.length ? (L(), p("div", kX, [m("span", AX, H(V.value.attachments.length) + " attachment" + H(V.value.attachments.length === 1 ? "" : "s") + ":", 1), (L(!0), p(a, null, re(V.value.attachments, (e) => (L(), p("span", {
75165
+ O.value ? (L(), p("div", AX, "Showing the first " + H(uZ) + " rows — download the file for the rest.")) : f("", !0)
75166
+ ], 64)) : (L(), p("div", jX, "Loading…"))])) : u.value === "email" ? (L(), p("div", MX, [ae.value ? (L(), p("div", NX, H(ae.value), 1)) : V.value ? (L(), p(a, { key: 1 }, [
75167
+ m("dl", PX, [(L(!0), p(a, null, re(oe.value, (e) => (L(), p(a, { key: e.label }, [e.value ? (L(), p("dt", FX, H(e.label), 1)) : f("", !0), e.value ? (L(), p("dd", IX, H(e.value), 1)) : f("", !0)], 64))), 128))]),
75168
+ V.value.attachments.length ? (L(), p("div", LX, [m("span", RX, H(V.value.attachments.length) + " attachment" + H(V.value.attachments.length === 1 ? "" : "s") + ":", 1), (L(!0), p(a, null, re(V.value.attachments, (e) => (L(), p("span", {
75069
75169
  key: e,
75070
75170
  class: "attachment-chip"
75071
75171
  }, H(e), 1))), 128))])) : f("", !0),
75072
75172
  m("div", {
75073
75173
  class: "email-body",
75074
75174
  innerHTML: V.value.bodyHtml
75075
- }, null, 8, jX)
75076
- ], 64)) : (L(), p("div", MX, "Loading…"))])) : u.value === "markdown" ? (L(), p("div", NX, [C.value ? (L(), p("div", PX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", IX, "Loading…")) : (L(), p(a, { key: 1 }, [ue.value ? (L(), d(oG, {
75175
+ }, null, 8, zX)
75176
+ ], 64)) : (L(), p("div", BX, "Loading…"))])) : u.value === "markdown" ? (L(), p("div", VX, [C.value ? (L(), p("div", HX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", WX, "Loading…")) : (L(), p(a, { key: 1 }, [ue.value ? (L(), d(oG, {
75077
75177
  key: 1,
75078
75178
  code: x.value,
75079
75179
  language: "markdown",
@@ -75082,12 +75182,12 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
75082
75182
  key: 0,
75083
75183
  class: "markdown-body",
75084
75184
  innerHTML: de.value
75085
- }, null, 8, FX))], 64))])) : u.value === "text" ? (L(), p("div", LX, [C.value ? (L(), p("div", RX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", VX, "Loading…")) : (L(), p(a, { key: 1 }, [m("pre", zX, H(x.value), 1), S.value ? (L(), p("div", BX, " Showing the first " + H(Math.round(tZ / 1024)) + " KB — download the file for the rest. ", 1)) : f("", !0)], 64))])) : u.value === "font" ? (L(), p("div", {
75185
+ }, null, 8, UX))], 64))])) : u.value === "text" ? (L(), p("div", GX, [C.value ? (L(), p("div", KX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", YX, "Loading…")) : (L(), p(a, { key: 1 }, [m("pre", qX, H(x.value), 1), S.value ? (L(), p("div", JX, " Showing the first " + H(Math.round(lZ / 1024)) + " KB — download the file for the rest. ", 1)) : f("", !0)], 64))])) : u.value === "font" ? (L(), p("div", {
75086
75186
  key: 9,
75087
75187
  class: "font-book",
75088
75188
  style: M({ "--specimen-family": we.value })
75089
- }, [Ce.value ? (L(), p("div", HX, H(Ce.value), 1)) : Se.value ? (L(), p(a, { key: 1 }, [
75090
- m("div", UX, [v(TO, {
75189
+ }, [Ce.value ? (L(), p("div", XX, H(Ce.value), 1)) : Se.value ? (L(), p(a, { key: 1 }, [
75190
+ m("div", ZX, [v(TO, {
75091
75191
  modelValue: be.value,
75092
75192
  "onUpdate:modelValue": n[10] ||= (e) => be.value = e,
75093
75193
  class: "specimen-input",
@@ -75112,7 +75212,7 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
75112
75212
  m("div", { class: "glyph-row" }, "abcdefghijklmnopqrstuvwxyz"),
75113
75213
  m("div", { class: "glyph-row" }, "0123456789 & ! ? @ # € $ % ( ) [ ] { } / \\ — “ ” ‘ ’")
75114
75214
  ], -1),
75115
- m("div", WX, [(L(), p(a, null, re([
75215
+ m("div", QX, [(L(), p(a, null, re([
75116
75216
  12,
75117
75217
  16,
75118
75218
  24,
@@ -75122,31 +75222,31 @@ var JY = { class: "viewer-header-tools" }, YY = ["aria-pressed"], XY = ["disable
75122
75222
  key: e,
75123
75223
  class: "scale-row",
75124
75224
  style: M({ fontSize: `${e}px` })
75125
- }, [m("span", GX, H(e), 1), n[15] ||= m("span", { class: "scale-sample" }, "The quick brown fox jumps over the lazy dog", -1)], 4)), 64))])
75126
- ], 64)) : (L(), p("div", KX, "Loading typeface…"))], 4)) : e.asset.previewUrl ? (L(), p("img", {
75225
+ }, [m("span", $X, H(e), 1), n[15] ||= m("span", { class: "scale-sample" }, "The quick brown fox jumps over the lazy dog", -1)], 4)), 64))])
75226
+ ], 64)) : (L(), p("div", eZ, "Loading typeface…"))], 4)) : e.asset.previewUrl ? (L(), p("img", {
75127
75227
  key: 10,
75128
75228
  class: "full generated-preview",
75129
75229
  src: e.asset.previewUrl,
75130
75230
  alt: e.asset.title,
75131
75231
  onLoad: n[12] ||= (e) => qe.value = !0
75132
- }, null, 40, qX)) : (L(), p("div", JX, [
75133
- m("div", YX, H(Qe.value), 1),
75134
- m("p", XX, H(e.asset.filename), 1),
75232
+ }, null, 40, tZ)) : (L(), p("div", nZ, [
75233
+ m("div", rZ, H(Qe.value), 1),
75234
+ m("p", iZ, H(e.asset.filename), 1),
75135
75235
  n[17] ||= m("p", { class: "hint" }, "This file type can’t be previewed here.", -1)
75136
75236
  ])),
75137
- Je.value ? (L(), p("div", ZX, "Rendering…")) : f("", !0)
75237
+ Je.value ? (L(), p("div", aZ, "Rendering…")) : f("", !0)
75138
75238
  ], 2),
75139
- e.asset.description ? (L(), p("p", QX, H(e.asset.description), 1)) : f("", !0)
75140
- ], 14, $Y)], 64));
75239
+ e.asset.description ? (L(), p("p", oZ, H(e.asset.description), 1)) : f("", !0)
75240
+ ], 14, sX)], 64));
75141
75241
  }
75142
- }), [["__scopeId", "data-v-fcc6d687"]]), iZ;
75143
- function aZ() {
75242
+ }), [["__scopeId", "data-v-fcc6d687"]]), fZ;
75243
+ function pZ() {
75144
75244
  let e = B(!1), t = B(!1), n = B(0), r = B(!1), i, a, o = 0;
75145
75245
  function s() {
75146
75246
  a &&= (URL.revokeObjectURL(a), void 0), i &&= (i.pause(), i.removeAttribute("src"), i.load(), void 0), r.value = !1, e.value = !1, t.value = !1, n.value = 0;
75147
75247
  }
75148
75248
  function c() {
75149
- o++, iZ === s && (iZ = void 0), s();
75249
+ o++, fZ === s && (fZ = void 0), s();
75150
75250
  }
75151
75251
  async function l(c, l) {
75152
75252
  if (i) {
@@ -75154,7 +75254,7 @@ function aZ() {
75154
75254
  return;
75155
75255
  }
75156
75256
  let u = ++o;
75157
- iZ?.(), iZ = s, t.value = !0;
75257
+ fZ?.(), fZ = s, t.value = !0;
75158
75258
  let d;
75159
75259
  try {
75160
75260
  d = typeof c == "function" ? await c() : c;
@@ -75198,19 +75298,19 @@ function aZ() {
75198
75298
  }
75199
75299
  //#endregion
75200
75300
  //#region src/components/BxAudioPlayButton.vue?vue&type=script&setup=true&lang.ts
75201
- var oZ = ["aria-label", "aria-busy"], sZ = {
75301
+ var mZ = ["aria-label", "aria-busy"], hZ = {
75202
75302
  class: "ring",
75203
75303
  viewBox: "0 0 44 44",
75204
75304
  "aria-hidden": "true"
75205
- }, cZ = ["stroke-dashoffset"], lZ = {
75305
+ }, gZ = ["stroke-dashoffset"], _Z = {
75206
75306
  class: "glyph",
75207
75307
  viewBox: "0 0 24 24",
75208
75308
  "aria-hidden": "true"
75209
- }, uZ = {
75309
+ }, vZ = {
75210
75310
  key: 1,
75211
75311
  d: "M8.5 5.5v13l10-6.5z",
75212
75312
  fill: "currentColor"
75213
- }, dZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75313
+ }, yZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75214
75314
  __name: "BxAudioPlayButton",
75215
75315
  props: {
75216
75316
  playing: {
@@ -75235,7 +75335,7 @@ var oZ = ["aria-label", "aria-busy"], sZ = {
75235
75335
  "aria-label": e.playing ? "Pause" : "Play",
75236
75336
  "aria-busy": e.loading || void 0,
75237
75337
  onClick: n[0] ||= ye((e) => r("toggle"), ["stop"])
75238
- }, [(L(), p("svg", sZ, [n[1] ||= m("circle", {
75338
+ }, [(L(), p("svg", hZ, [n[1] ||= m("circle", {
75239
75339
  class: "track",
75240
75340
  cx: "22",
75241
75341
  cy: "22",
@@ -75247,7 +75347,7 @@ var oZ = ["aria-label", "aria-busy"], sZ = {
75247
75347
  r: "20",
75248
75348
  "stroke-dasharray": i,
75249
75349
  "stroke-dashoffset": i * (1 - o.value)
75250
- }, null, 8, cZ)])), (L(), p("svg", lZ, [e.playing ? (L(), p(a, { key: 0 }, [n[2] ||= m("rect", {
75350
+ }, null, 8, gZ)])), (L(), p("svg", _Z, [e.playing ? (L(), p(a, { key: 0 }, [n[2] ||= m("rect", {
75251
75351
  x: "7",
75252
75352
  y: "5",
75253
75353
  width: "3.5",
@@ -75261,9 +75361,9 @@ var oZ = ["aria-label", "aria-busy"], sZ = {
75261
75361
  height: "14",
75262
75362
  rx: "1.25",
75263
75363
  fill: "currentColor"
75264
- }, null, -1)], 64)) : (L(), p("path", uZ))]))], 10, oZ));
75364
+ }, null, -1)], 64)) : (L(), p("path", vZ))]))], 10, mZ));
75265
75365
  }
75266
- }), [["__scopeId", "data-v-09ee9555"]]), fZ = ["aria-label"], pZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75366
+ }), [["__scopeId", "data-v-09ee9555"]]), bZ = ["aria-label"], xZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75267
75367
  __name: "BxWaveformThumb",
75268
75368
  props: {
75269
75369
  src: {},
@@ -75275,9 +75375,9 @@ var oZ = ["aria-label", "aria-busy"], sZ = {
75275
75375
  style: M({ "--bx-waveform-src": `url(${JSON.stringify(e.src)})` }),
75276
75376
  role: "img",
75277
75377
  "aria-label": e.alt
75278
- }, null, 12, fZ));
75378
+ }, null, 12, bZ));
75279
75379
  }
75280
- }), [["__scopeId", "data-v-69c139e5"]]), mZ = "bluepic-app-wrapper", hZ = `.${mZ}`;
75380
+ }), [["__scopeId", "data-v-69c139e5"]]), SZ = "bluepic-app-wrapper", CZ = `.${SZ}`;
75281
75381
  oO(), window.bluepicPopupProvider = new BI();
75282
75382
  //#endregion
75283
- export { WY as ASSET_AUTH_QUERY_ACCESS_TOKEN, UY as ASSET_AUTH_QUERY_PASSWORD, Ub as ASSET_PROXY_KEY, GJ as BluepicEmbed, wI as BluepicFieldComponents, WL as BluepicLogo, jG as BluepicSpinner, wR as BxAlert, rZ as BxAssetViewer, dZ as BxAudioPlayButton, EG as BxAvatar, DG as BxBadge, Yb as BxButton, iI as BxButtonGroup, cE as BxCard, tj as BxCheckbox, oG as BxCode, KF as BxColorPicker, ZF as BxColorPickerPopover, lA as BxCropper, CK as BxDatePicker, FK as BxDatePickerPopover, _G as BxDrawer, yk as BxDropdown, IJ as BxEmbedThemeDarkmode, RJ as BxEmbedThemeDarkmodeWcag, LJ as BxEmbedThemeLightmode, zJ as BxEmbedThemeLightmodeWcag, PO as BxEmpty, MI as BxFields, XS as BxIcon, mA as BxImageCropper, TO as BxInput, sk as BxList, fk as BxListItem, oL as BxLiveTemplate, WD as BxMenu, eI as BxNumberInput, ID as BxPopover, QT as BxPopup, $I as BxPreviewLayer, XT as BxProgress, qK as BxRadio, WK as BxRadioGroup, dT as BxScrollbar, QD as BxSelect, eo as BxSlider, Kb as BxSpin, gG as BxStepper, sG as BxSwitch, zK as BxTab, QL as BxTable, vF as BxTabs, LR as BxTag, tG as BxTemplateEditor, lO as BxTooltip, mE as BxUpload, pZ as BxWaveformThumb, yF as CSS_COLOR_NAMES, qL as CircularProgress, HI as CollectionFieldPopup, aY as DIN_LEVELS, BR as ExportAnalytics, gA as FACE_VERTICAL_ANCHOR, $P as FieldIcons, mZ as GLOBAL_APP_WRAPPER_CLASS, hZ as GLOBAL_APP_WRAPPER_SELECTOR, bJ as LEGACY_BRIDGE, hA as MIN_FACE_SCORE, lF as MapboxMap, IY as OTHER_CATEGORY, NY as RichText, cq as SEMANTIC_PREFIX, lq as SEMANTIC_TOKEN_GROUPS, sq as SEMANTIC_TOKEN_NAMES, fq as STATUS_BASES, BL as SlidesNavigation, dq as THEME_HOUSE_PRESETS, uq as THEME_PRESETS, iY as Tabs, zL as TemplateView, aq as UserAvatar, eY as UserInfo, kE as anyTextToRichText, EA as applyAutoCrop, Rb as applyColorMatricesToImage, Hb as applyColorMatrix, Lb as applyColorMatrixToColor, PJ as applyTheme, BY as aspectRatio, VY as aspectRatioStr, GY as assetRequestHeaders, VR as canvasLabel, HR as canvasSizeToken, CE as cloneDeep, zY as collectPortalCategories, UI as convertDeprecatedField, TR as cropImage, Bb as cropToVisibleBBox, vb as cssFontsCache, CF as cyrb53, wF as cyrb53ToHex, WR as deliverableFileNames, pY as dinPixels, Nb as exportSVGDocument, RR as extractHost, BJ as fetchWithProgress, VJ as fetchWithProgressV1, UR as fitCanvasBox, GP as flattenFieldTable, JP as flattenFields, eF as getDefaultValueForFieldModel, ZP as getFieldDescription, QP as getFieldsDescription, $K as getInitials, OE as getRawText, HY as getTemplateAspectRatioHumanReadable, ZK as getTemplateLiveUrl, XK as getTemplatePreviewUrl, YK as getTemplateSerialUrl, DJ as getThemeStyle, zb as getVisibleBBox, TE as groupFeatureByLinebreaks, RY as groupPortalItemsByCategory, FY as groupTemplatesByName, xA as hasFaceDetector, bF as hslToRgb, mY as identifyDin, bk as imageInfo, yb as imagesCache, qJ as initEmbeds, oO as initInputModality, GT as injectPortal, SF as isDark, PY as isMultiCanvasTemplateDescriptor, TJ as looksLikeThemeInput, KP as modelField, Sk as normalizeAdjust, xk as normalizeCrop, QK as optimizePreviewUrl, EF as parseColor, Vb as rasterize, tF as realizeField, rF as renderFieldIcon, Ib as renderSVG, Wv as resolveAssetUrl, wb as resolveCSSFontFile, Eb as resolveImage, yJ as resolveTheme, kJ as resolveThemeStyle, OF as rgbToHex, kF as rgbToHsv, xF as rgba, bA as setFaceDetector, iO as setInputModality, vA as solveAutoCrop, LY as sortPortalAssetsByTitle, TF as stringToHslColor, nF as stringifyField, xb as textIsInUnicodeRange, pq as themeColor, EJ as themeInputFromLegacyCustomStyle, wJ as themeToCssText, CJ as themeToCssVars, DF as toHex2, EE as ungroupFeaturesDividedByLinebreaks, Wb as useAssetProxy, aZ as useAudioPlayback, XP as useFields, YP as useMobileFields, WT as usePopup, FJ as useTheme, NJ as useThemeV2, Sa as useUpload, oq as waitUntil, KY as withAssetAuthQuery };
75383
+ export { QY as ASSET_AUTH_QUERY_ACCESS_TOKEN, ZY as ASSET_AUTH_QUERY_PASSWORD, Ub as ASSET_PROXY_KEY, GJ as BluepicEmbed, wI as BluepicFieldComponents, WL as BluepicLogo, jG as BluepicSpinner, wR as BxAlert, dZ as BxAssetViewer, yZ as BxAudioPlayButton, EG as BxAvatar, DG as BxBadge, Yb as BxButton, iI as BxButtonGroup, cE as BxCard, tj as BxCheckbox, oG as BxCode, KF as BxColorPicker, ZF as BxColorPickerPopover, lA as BxCropper, CK as BxDatePicker, FK as BxDatePickerPopover, _G as BxDrawer, yk as BxDropdown, IJ as BxEmbedThemeDarkmode, RJ as BxEmbedThemeDarkmodeWcag, LJ as BxEmbedThemeLightmode, zJ as BxEmbedThemeLightmodeWcag, PO as BxEmpty, MI as BxFields, XS as BxIcon, mA as BxImageCropper, TO as BxInput, sk as BxList, fk as BxListItem, oL as BxLiveTemplate, WD as BxMenu, eI as BxNumberInput, ID as BxPopover, QT as BxPopup, $I as BxPreviewLayer, XT as BxProgress, qK as BxRadio, WK as BxRadioGroup, dT as BxScrollbar, QD as BxSelect, eo as BxSlider, Kb as BxSpin, gG as BxStepper, sG as BxSwitch, zK as BxTab, QL as BxTable, vF as BxTabs, LR as BxTag, tG as BxTemplateEditor, lO as BxTooltip, mE as BxUpload, xZ as BxWaveformThumb, yF as CSS_COLOR_NAMES, qL as CircularProgress, HI as CollectionFieldPopup, cY as DIN_LEVELS, BR as ExportAnalytics, gA as FACE_VERTICAL_ANCHOR, $P as FieldIcons, SZ as GLOBAL_APP_WRAPPER_CLASS, CZ as GLOBAL_APP_WRAPPER_SELECTOR, bJ as LEGACY_BRIDGE, hA as MIN_FACE_SCORE, lF as MapboxMap, zY as OTHER_CATEGORY, IY as RichText, cq as SEMANTIC_PREFIX, lq as SEMANTIC_TOKEN_GROUPS, sq as SEMANTIC_TOKEN_NAMES, fq as STATUS_BASES, BL as SlidesNavigation, dq as THEME_HOUSE_PRESETS, uq as THEME_PRESETS, sY as Tabs, zL as TemplateView, aq as UserAvatar, rY as UserInfo, kE as anyTextToRichText, EA as applyAutoCrop, Rb as applyColorMatricesToImage, Hb as applyColorMatrix, Lb as applyColorMatrixToColor, PJ as applyTheme, JY as aspectRatio, YY as aspectRatioStr, $Y as assetRequestHeaders, VR as canvasLabel, HR as canvasSizeToken, CE as cloneDeep, qY as collectPortalCategories, UI as convertDeprecatedField, TR as cropImage, Bb as cropToVisibleBBox, vb as cssFontsCache, CF as cyrb53, wF as cyrb53ToHex, WR as deliverableFileNames, gY as dinPixels, Nb as exportSVGDocument, RR as extractHost, BJ as fetchWithProgress, VJ as fetchWithProgressV1, UR as fitCanvasBox, KY as flatPortalItems, GP as flattenFieldTable, JP as flattenFields, eF as getDefaultValueForFieldModel, ZP as getFieldDescription, QP as getFieldsDescription, $K as getInitials, OE as getRawText, XY as getTemplateAspectRatioHumanReadable, ZK as getTemplateLiveUrl, XK as getTemplatePreviewUrl, YK as getTemplateSerialUrl, DJ as getThemeStyle, zb as getVisibleBBox, TE as groupFeatureByLinebreaks, GY as groupPortalItemsByCategory, RY as groupTemplatesByName, xA as hasFaceDetector, bF as hslToRgb, _Y as identifyDin, bk as imageInfo, yb as imagesCache, qJ as initEmbeds, oO as initInputModality, GT as injectPortal, SF as isDark, LY as isMultiCanvasTemplateDescriptor, TJ as looksLikeThemeInput, KP as modelField, Sk as normalizeAdjust, xk as normalizeCrop, XJ as openPopup, QK as optimizePreviewUrl, UY as orderPortalItems, EF as parseColor, Vb as rasterize, tF as realizeField, rF as renderFieldIcon, Ib as renderSVG, Wv as resolveAssetUrl, wb as resolveCSSFontFile, Eb as resolveImage, yJ as resolveTheme, kJ as resolveThemeStyle, OF as rgbToHex, kF as rgbToHsv, xF as rgba, bA as setFaceDetector, iO as setInputModality, vA as solveAutoCrop, BY as sortPortalAssetsByTitle, TF as stringToHslColor, nF as stringifyField, xb as textIsInUnicodeRange, pq as themeColor, EJ as themeInputFromLegacyCustomStyle, wJ as themeToCssText, CJ as themeToCssVars, DF as toHex2, EE as ungroupFeaturesDividedByLinebreaks, Wb as useAssetProxy, pZ as useAudioPlayback, XP as useFields, YP as useMobileFields, WT as usePopup, FJ as useTheme, NJ as useThemeV2, Sa as useUpload, oq as waitUntil, eX as withAssetAuthQuery };