@bluepic/embed 0.6.10 → 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(bZ);
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(bZ);
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(bZ);
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(bZ);
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 ?? bZ), 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 ?? bZ);
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 = bZ, 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,29 +74355,29 @@ 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) {
74376
+ function VY(e, t) {
74327
74377
  let n = e[t];
74328
- return PY(n) ? t : n.name;
74378
+ return LY(n) ? t : n.name;
74329
74379
  }
74330
- function zY(e, t) {
74380
+ function HY(e, t) {
74331
74381
  return [...Object.entries(e).map(([e, t]) => ({
74332
74382
  kind: "template",
74333
74383
  key: e,
@@ -74337,13 +74387,13 @@ function zY(e, t) {
74337
74387
  asset: e
74338
74388
  }))];
74339
74389
  }
74340
- function BY(e, t, n) {
74341
- let r = FY(e), i = new Map(t.map((e) => [e.id, e])), a = [], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
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();
74342
74392
  for (let t of n) if (e[t]) {
74343
- let i = RY(e, t);
74393
+ let i = VY(e, t);
74344
74394
  if (o.has(i)) continue;
74345
74395
  o.add(i);
74346
- let s = r[i], c = Object.keys(s).sort((e, t) => VY(n, e) - VY(n, t));
74396
+ let s = r[i], c = Object.keys(s).sort((e, t) => WY(n, e) - WY(n, t));
74347
74397
  a.push({
74348
74398
  kind: "template",
74349
74399
  key: i,
@@ -74358,43 +74408,43 @@ function BY(e, t, n) {
74358
74408
  key: e,
74359
74409
  templates: t
74360
74410
  });
74361
- for (let e of LY(t)) s.has(e.id) || a.push({
74411
+ for (let e of BY(t)) s.has(e.id) || a.push({
74362
74412
  kind: "asset",
74363
74413
  asset: e
74364
74414
  });
74365
74415
  return a;
74366
74416
  }
74367
- function VY(e, t) {
74417
+ function WY(e, t) {
74368
74418
  let n = e.indexOf(t);
74369
74419
  return n < 0 ? 2 ** 53 - 1 : n;
74370
74420
  }
74371
- function HY(e, t, n, r = {}) {
74421
+ function GY(e, t, n, r = {}) {
74372
74422
  let i = t ?? [], a = new Set((n ?? []).flatMap((e) => e.items)), o = Array.isArray(r.order) ? r.order : null, s = (t) => {
74373
74423
  let n = {};
74374
74424
  for (let r in e) e[r] && t(r) && (n[r] = e[r]);
74375
74425
  return n;
74376
74426
  }, c = (e, t, n, r, i) => {
74377
- let a = FY(n), o = LY(r);
74427
+ let a = RY(n), o = BY(r);
74378
74428
  return {
74379
74429
  category: e,
74380
74430
  categoryIndex: t,
74381
74431
  templatesByName: a,
74382
74432
  assets: o,
74383
- items: i ? BY(n, r, i) : zY(a, o)
74433
+ items: i ? UY(n, r, i) : HY(a, o)
74384
74434
  };
74385
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));
74386
- return (Object.keys(u).length > 0 || d.length > 0) && l.push(c(IY, null, u, d, o)), r.includeEmpty ? l : l.filter((e) => e.items.length > 0);
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);
74387
74437
  }
74388
- function UY(e, t, n) {
74438
+ function KY(e, t, n) {
74389
74439
  let r = t ?? [];
74390
- return Array.isArray(n) ? BY(e, r, n) : zY(FY(e), LY(r));
74440
+ return Array.isArray(n) ? UY(e, r, n) : HY(RY(e), BY(r));
74391
74441
  }
74392
- function WY(e, t, n) {
74393
- return HY(e, t, n).map((e) => e.category);
74442
+ function qY(e, t, n) {
74443
+ return GY(e, t, n).map((e) => e.category);
74394
74444
  }
74395
74445
  //#endregion
74396
74446
  //#region src/util/aspectRatio.ts
74397
- function GY(e, t) {
74447
+ function JY(e, t) {
74398
74448
  let n = [0, 1], r = [1, 0];
74399
74449
  for (;;) {
74400
74450
  let i = [n[0] + r[0], n[1] + r[1]];
@@ -74408,51 +74458,51 @@ function GY(e, t) {
74408
74458
  }
74409
74459
  }
74410
74460
  }
74411
- var KY = (e, t) => {
74412
- let n = GY(e / t, 50);
74461
+ var YY = (e, t) => {
74462
+ let n = JY(e / t, 50);
74413
74463
  return `${n[0]}:${n[1]}`;
74414
74464
  };
74415
- function qY(e) {
74416
- let t = e.meta.width, n = e.meta.height, r = mY(t, n, 300);
74417
- return r ? r.level : KY(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);
74418
74468
  }
74419
74469
  //#endregion
74420
74470
  //#region src/util/assetAuth.ts
74421
- var JY = "password", YY = "access_token";
74422
- function XY(e) {
74471
+ var ZY = "password", QY = "access_token";
74472
+ function $Y(e) {
74423
74473
  return {
74424
74474
  ...e?.password ? { "X-Bluepic-Password": e.password } : {},
74425
74475
  ...e?.accessToken ? { Authorization: `Bearer ${e.accessToken}` } : {}
74426
74476
  };
74427
74477
  }
74428
- function ZY(e, t) {
74478
+ function eX(e, t) {
74429
74479
  if (!t?.password && !t?.accessToken) return e;
74430
- let [n, r] = QY(e), i = n.includes("?") ? "&" : "?", a = new URLSearchParams();
74431
- return t.password && a.set(JY, t.password), t.accessToken && a.set(YY, 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}`;
74432
74482
  }
74433
- function QY(e) {
74483
+ function tX(e) {
74434
74484
  let t = e.indexOf("#");
74435
74485
  return t === -1 ? [e, ""] : [e.slice(0, t), e.slice(t)];
74436
74486
  }
74437
74487
  //#endregion
74438
74488
  //#region src/components/AssetViewer/AssetViewer.vue?vue&type=script&setup=true&lang.ts
74439
- var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disabled"], nX = { class: "page-label" }, rX = ["disabled"], iX = ["aria-label"], aX = {
74489
+ var nX = { class: "viewer-header-tools" }, rX = ["aria-pressed"], iX = ["disabled"], aX = { class: "page-label" }, oX = ["disabled"], sX = ["aria-label"], cX = {
74440
74490
  key: 0,
74441
74491
  class: "page-rail",
74442
74492
  "aria-label": "Pages"
74443
- }, oX = [
74493
+ }, lX = [
74444
74494
  "aria-current",
74445
74495
  "aria-label",
74446
74496
  "onClick"
74447
- ], sX = { class: "rail-number" }, cX = ["src"], lX = ["src", "alt"], uX = ["src", "poster"], dX = {
74497
+ ], uX = { class: "rail-number" }, dX = ["src"], fX = ["src", "alt"], pX = ["src", "poster"], mX = {
74448
74498
  key: 4,
74449
74499
  class: "audio-player"
74450
- }, fX = { class: "transport" }, pX = ["aria-label"], mX = {
74500
+ }, hX = { class: "transport" }, gX = ["aria-label"], _X = {
74451
74501
  viewBox: "0 0 24 24",
74452
74502
  width: "22",
74453
74503
  height: "22",
74454
74504
  "aria-hidden": "true"
74455
- }, hX = {
74505
+ }, vX = {
74456
74506
  key: 0,
74457
74507
  x: "6",
74458
74508
  y: "5",
@@ -74460,7 +74510,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74460
74510
  height: "14",
74461
74511
  rx: "1.5",
74462
74512
  fill: "currentColor"
74463
- }, gX = {
74513
+ }, yX = {
74464
74514
  key: 1,
74465
74515
  x: "14",
74466
74516
  y: "5",
@@ -74468,75 +74518,75 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74468
74518
  height: "14",
74469
74519
  rx: "1.5",
74470
74520
  fill: "currentColor"
74471
- }, _X = {
74521
+ }, bX = {
74472
74522
  key: 2,
74473
74523
  d: "M8 5.5v13l11-6.5z",
74474
74524
  fill: "currentColor"
74475
- }, vX = { class: "time" }, yX = { class: "time total" }, bX = ["src"], xX = {
74525
+ }, xX = { class: "time" }, SX = { class: "time total" }, CX = ["src"], wX = {
74476
74526
  key: 5,
74477
74527
  class: "sheet-view"
74478
- }, SX = {
74528
+ }, TX = {
74479
74529
  key: 0,
74480
74530
  class: "text-status"
74481
- }, CX = {
74531
+ }, EX = {
74482
74532
  key: 0,
74483
74533
  class: "doc-toolbar"
74484
- }, wX = { class: "sheet-scroll" }, TX = { class: "sheet-table" }, EX = { class: "row-number" }, DX = {
74534
+ }, DX = { class: "sheet-scroll" }, OX = { class: "sheet-table" }, kX = { class: "row-number" }, AX = {
74485
74535
  key: 1,
74486
74536
  class: "text-status"
74487
- }, OX = {
74537
+ }, jX = {
74488
74538
  key: 2,
74489
74539
  class: "text-status"
74490
- }, kX = {
74540
+ }, MX = {
74491
74541
  key: 6,
74492
74542
  class: "email-view"
74493
- }, AX = {
74543
+ }, NX = {
74494
74544
  key: 0,
74495
74545
  class: "text-status"
74496
- }, jX = { class: "email-headers" }, MX = { key: 0 }, NX = { key: 1 }, PX = {
74546
+ }, PX = { class: "email-headers" }, FX = { key: 0 }, IX = { key: 1 }, LX = {
74497
74547
  key: 0,
74498
74548
  class: "email-attachments"
74499
- }, FX = { class: "attachment-label" }, IX = ["innerHTML"], LX = {
74549
+ }, RX = { class: "attachment-label" }, zX = ["innerHTML"], BX = {
74500
74550
  key: 2,
74501
74551
  class: "text-status"
74502
- }, RX = {
74552
+ }, VX = {
74503
74553
  key: 7,
74504
74554
  class: "markdown-view"
74505
- }, zX = {
74555
+ }, HX = {
74506
74556
  key: 0,
74507
74557
  class: "text-status"
74508
- }, BX = ["innerHTML"], VX = {
74558
+ }, UX = ["innerHTML"], WX = {
74509
74559
  key: 2,
74510
74560
  class: "text-status"
74511
- }, HX = {
74561
+ }, GX = {
74512
74562
  key: 8,
74513
74563
  class: "text-view"
74514
- }, UX = {
74564
+ }, KX = {
74515
74565
  key: 0,
74516
74566
  class: "text-status"
74517
- }, WX = { class: "text-body" }, GX = {
74567
+ }, qX = { class: "text-body" }, JX = {
74518
74568
  key: 0,
74519
74569
  class: "text-status"
74520
- }, KX = {
74570
+ }, YX = {
74521
74571
  key: 2,
74522
74572
  class: "text-status"
74523
- }, qX = {
74573
+ }, XX = {
74524
74574
  key: 0,
74525
74575
  class: "font-error"
74526
- }, JX = { class: "specimen-controls" }, YX = { class: "specimen-scale" }, XX = { class: "scale-label" }, ZX = {
74576
+ }, ZX = { class: "specimen-controls" }, QX = { class: "specimen-scale" }, $X = { class: "scale-label" }, eZ = {
74527
74577
  key: 2,
74528
74578
  class: "font-loading"
74529
- }, QX = ["src", "alt"], $X = {
74579
+ }, tZ = ["src", "alt"], nZ = {
74530
74580
  key: 11,
74531
74581
  class: "no-preview"
74532
- }, eZ = { class: "ext-badge" }, tZ = { class: "name" }, nZ = {
74582
+ }, rZ = { class: "ext-badge" }, iZ = { class: "name" }, aZ = {
74533
74583
  key: 12,
74534
74584
  class: "rendering",
74535
74585
  "aria-live": "polite"
74536
- }, rZ = {
74586
+ }, oZ = {
74537
74587
  key: 1,
74538
74588
  class: "description"
74539
- }, iZ = 3, aZ = 2, oZ = 524288, sZ = 500, cZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
74589
+ }, sZ = 3, cZ = 2, lZ = 524288, uZ = 500, dZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
74540
74590
  __name: "AssetViewer",
74541
74591
  props: {
74542
74592
  asset: {},
@@ -74549,9 +74599,9 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74549
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(() => {
74550
74600
  let e = n.asset.mime;
74551
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";
74552
- }), h = l(() => n.asset.downloadUrl.replace(/\/download(?=$|\?)/, "/preview")), g = l(() => ZY(h.value, n.assetAuth)), _ = l(() => ({
74602
+ }), h = l(() => n.asset.downloadUrl.replace(/\/download(?=$|\?)/, "/preview")), g = l(() => eX(h.value, n.assetAuth)), _ = l(() => ({
74553
74603
  credentials: "omit",
74554
- headers: XY(n.assetAuth)
74604
+ headers: $Y(n.assetAuth)
74555
74605
  })), y = B(), b = B(), x = B(), S = B(!1), C = B();
74556
74606
  async function w() {
74557
74607
  if (!(u.value !== "text" && u.value !== "markdown" || x.value !== void 0)) {
@@ -74560,7 +74610,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74560
74610
  let e = await fetch(h.value, _.value);
74561
74611
  if (!e.ok) throw Error(`Could not load the file (${e.status})`);
74562
74612
  let t = await e.arrayBuffer();
74563
- S.value = t.byteLength > oZ, x.value = new TextDecoder("utf-8", { fatal: !1 }).decode(t.slice(0, oZ)), 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);
74564
74614
  } catch (e) {
74565
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.";
74566
74616
  }
@@ -74581,7 +74631,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74581
74631
  if (s === "\"") a = !0;
74582
74632
  else if (s === t) r.push(i), i = "";
74583
74633
  else if (s === "\n") {
74584
- if (r.push(i), n.push(r), r = [], i = "", n.length > sZ) break;
74634
+ if (r.push(i), n.push(r), r = [], i = "", n.length > uZ) break;
74585
74635
  } else s !== "\r" && (i += s);
74586
74636
  }
74587
74637
  return (i !== "" || r.length) && (r.push(i), n.push(r)), n;
@@ -74610,7 +74660,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74610
74660
  raw: !1,
74611
74661
  defval: ""
74612
74662
  });
74613
- O.value = r.length > sZ, T.value = r.slice(0, sZ).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 ?? "")));
74614
74664
  }
74615
74665
  async function ne() {
74616
74666
  if (!(u.value !== "sheet" || T.value.length || k.value)) try {
@@ -74620,7 +74670,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74620
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);
74621
74671
  else {
74622
74672
  let e = new TextDecoder("utf-8", { fatal: !1 }).decode(t), n = ee(e, I(e));
74623
- O.value = n.length > sZ, T.value = n.slice(0, sZ);
74673
+ O.value = n.length > uZ, T.value = n.slice(0, uZ);
74624
74674
  }
74625
74675
  qe.value = !0;
74626
74676
  } catch (e) {
@@ -74847,12 +74897,12 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74847
74897
  if (it || t !== rt) return;
74848
74898
  let i = b.value;
74849
74899
  if (!i) return;
74850
- let a = Math.min(typeof window < "u" && window.devicePixelRatio || 1, aZ);
74900
+ let a = Math.min(typeof window < "u" && window.devicePixelRatio || 1, cZ);
74851
74901
  if (await n.renderPage(r, i, {
74852
74902
  page: e,
74853
74903
  dpi: 96 * a
74854
74904
  }), it || t !== rt) return;
74855
- if (i.width && i.height && (Ge.value = i.width / i.height), qe.value = !0, nt.set(e, i), nt.size > iZ) {
74905
+ if (i.width && i.height && (Ge.value = i.width / i.height), qe.value = !0, nt.set(e, i), nt.size > sZ) {
74856
74906
  let e = nt.keys().next().value;
74857
74907
  e !== void 0 && nt.delete(e);
74858
74908
  }
@@ -74909,7 +74959,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74909
74959
  key: 0,
74910
74960
  to: U(ge) || void 0
74911
74961
  }, {
74912
- default: G(() => [m("div", $Y, [
74962
+ default: G(() => [m("div", nX, [
74913
74963
  u.value === "page" && Ze.value > 1 ? (L(), p(a, { key: 0 }, [
74914
74964
  m("button", {
74915
74965
  class: A(["tool-btn rail-toggle", { active: st.value }]),
@@ -74949,22 +74999,22 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
74949
74999
  stroke: "currentColor",
74950
75000
  "stroke-width": "1.6"
74951
75001
  })
74952
- ], -1)]], 10, eX),
75002
+ ], -1)]], 10, rX),
74953
75003
  m("button", {
74954
75004
  class: "tool-btn",
74955
75005
  type: "button",
74956
75006
  disabled: Xe.value <= 1,
74957
75007
  "aria-label": "Previous page",
74958
75008
  onClick: n[1] ||= (e) => mt(Xe.value - 1)
74959
- }, "‹", 8, tX),
74960
- m("span", nX, H(Xe.value) + " / " + H(Ze.value), 1),
75009
+ }, "‹", 8, iX),
75010
+ m("span", aX, H(Xe.value) + " / " + H(Ze.value), 1),
74961
75011
  m("button", {
74962
75012
  class: "tool-btn",
74963
75013
  type: "button",
74964
75014
  disabled: Xe.value >= Ze.value,
74965
75015
  "aria-label": "Next page",
74966
75016
  onClick: n[2] ||= (e) => mt(Xe.value + 1)
74967
- }, "›", 8, rX)
75017
+ }, "›", 8, oX)
74968
75018
  ], 64)) : f("", !0),
74969
75019
  u.value === "markdown" ? (L(), d(vF, {
74970
75020
  key: 1,
@@ -75006,7 +75056,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75006
75056
  "aria-modal": "true",
75007
75057
  "aria-label": e.asset.title
75008
75058
  }, [
75009
- ct.value ? (L(), p("aside", aX, [(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", {
75010
75060
  key: e,
75011
75061
  class: A(["rail-item", { current: e === Xe.value }]),
75012
75062
  type: "button",
@@ -75017,7 +75067,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75017
75067
  ref_for: !0,
75018
75068
  ref: (t) => ft(e, t),
75019
75069
  class: "rail-thumb"
75020
- }, null, 512), m("span", sX, H(e), 1)], 10, oX))), 128))])) : f("", !0),
75070
+ }, null, 512), m("span", uX, H(e), 1)], 10, lX))), 128))])) : f("", !0),
75021
75071
  m("div", {
75022
75072
  ref_key: "stageRef",
75023
75073
  ref: y,
@@ -75029,14 +75079,14 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75029
75079
  src: e.asset.previewUrl,
75030
75080
  alt: "",
75031
75081
  "aria-hidden": "true"
75032
- }, null, 8, cX)) : f("", !0),
75082
+ }, null, 8, dX)) : f("", !0),
75033
75083
  u.value === "image" ? (L(), p("img", {
75034
75084
  key: 1,
75035
75085
  class: "full",
75036
75086
  src: g.value,
75037
75087
  alt: e.asset.title,
75038
75088
  onLoad: Ke
75039
- }, null, 40, lX)) : u.value === "page" && !Ye.value ? (L(), p("canvas", {
75089
+ }, null, 40, fX)) : u.value === "page" && !Ye.value ? (L(), p("canvas", {
75040
75090
  key: 2,
75041
75091
  ref_key: "canvasRef",
75042
75092
  ref: b,
@@ -75049,21 +75099,21 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75049
75099
  controls: "",
75050
75100
  playsinline: "",
75051
75101
  onLoadeddata: n[5] ||= (e) => qe.value = !0
75052
- }, null, 40, uX)) : u.value === "audio" ? (L(), p("div", dX, [
75102
+ }, null, 40, pX)) : u.value === "audio" ? (L(), p("div", mX, [
75053
75103
  m("canvas", {
75054
75104
  ref_key: "waveCanvasRef",
75055
75105
  ref: ke,
75056
75106
  class: "wave",
75057
75107
  "aria-hidden": "true"
75058
75108
  }, null, 512),
75059
- m("div", fX, [
75109
+ m("div", hX, [
75060
75110
  m("button", {
75061
75111
  class: "play",
75062
75112
  type: "button",
75063
75113
  "aria-label": Ae.value ? "Pause" : "Play",
75064
75114
  onClick: Ue
75065
- }, [(L(), p("svg", mX, [Ae.value ? (L(), p("rect", hX)) : f("", !0), Ae.value ? (L(), p("rect", gX)) : (L(), p("path", _X))]))], 8, pX),
75066
- m("span", vX, 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),
75067
75117
  v(eo, {
75068
75118
  class: "seek",
75069
75119
  "model-value": Me.value,
@@ -75078,7 +75128,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75078
75128
  "max",
75079
75129
  "aria-valuetext"
75080
75130
  ]),
75081
- m("span", yX, H(We(je.value)), 1)
75131
+ m("span", SX, H(We(je.value)), 1)
75082
75132
  ]),
75083
75133
  m("audio", {
75084
75134
  ref_key: "audioRef",
@@ -75093,37 +75143,37 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75093
75143
  onPlay: Re,
75094
75144
  onPause: n[8] ||= (e) => Ae.value = !1,
75095
75145
  onEnded: n[9] ||= (e) => Ae.value = !1
75096
- }, null, 40, bX)
75097
- ])) : u.value === "sheet" ? (L(), p("div", xX, [k.value ? (L(), p("div", SX, H(k.value), 1)) : T.value.length ? (L(), p(a, { key: 1 }, [
75098
- E.value.length > 1 ? (L(), p("div", CX, [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, {
75099
75149
  "model-value": D.value,
75100
75150
  tabs: me.value,
75101
75151
  size: "small",
75102
75152
  "aria-label": "Sheets",
75103
75153
  "onUpdate:modelValue": te
75104
75154
  }, null, 8, ["model-value", "tabs"])])) : f("", !0),
75105
- m("div", wX, [m("table", TX, [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", {
75106
75156
  class: "row-number",
75107
75157
  scope: "col"
75108
75158
  }, null, -1), (L(!0), p(a, null, re(T.value[0], (e, t) => (L(), p("th", {
75109
75159
  key: t,
75110
75160
  scope: "col"
75111
- }, 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", EX, 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", {
75112
75162
  key: t,
75113
75163
  class: A({ numeric: P(e) })
75114
75164
  }, H(e), 3))), 128))]))), 128))])])]),
75115
- O.value ? (L(), p("div", DX, "Showing the first " + H(sZ) + " rows — download the file for the rest.")) : f("", !0)
75116
- ], 64)) : (L(), p("div", OX, "Loading…"))])) : u.value === "email" ? (L(), p("div", kX, [ae.value ? (L(), p("div", AX, H(ae.value), 1)) : V.value ? (L(), p(a, { key: 1 }, [
75117
- m("dl", jX, [(L(!0), p(a, null, re(oe.value, (e) => (L(), p(a, { key: e.label }, [e.value ? (L(), p("dt", MX, H(e.label), 1)) : f("", !0), e.value ? (L(), p("dd", NX, H(e.value), 1)) : f("", !0)], 64))), 128))]),
75118
- V.value.attachments.length ? (L(), p("div", PX, [m("span", FX, 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", {
75119
75169
  key: e,
75120
75170
  class: "attachment-chip"
75121
75171
  }, H(e), 1))), 128))])) : f("", !0),
75122
75172
  m("div", {
75123
75173
  class: "email-body",
75124
75174
  innerHTML: V.value.bodyHtml
75125
- }, null, 8, IX)
75126
- ], 64)) : (L(), p("div", LX, "Loading…"))])) : u.value === "markdown" ? (L(), p("div", RX, [C.value ? (L(), p("div", zX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", VX, "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, {
75127
75177
  key: 1,
75128
75178
  code: x.value,
75129
75179
  language: "markdown",
@@ -75132,12 +75182,12 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75132
75182
  key: 0,
75133
75183
  class: "markdown-body",
75134
75184
  innerHTML: de.value
75135
- }, null, 8, BX))], 64))])) : u.value === "text" ? (L(), p("div", HX, [C.value ? (L(), p("div", UX, H(C.value), 1)) : x.value === void 0 ? (L(), p("div", KX, "Loading…")) : (L(), p(a, { key: 1 }, [m("pre", WX, H(x.value), 1), S.value ? (L(), p("div", GX, " Showing the first " + H(Math.round(oZ / 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", {
75136
75186
  key: 9,
75137
75187
  class: "font-book",
75138
75188
  style: M({ "--specimen-family": we.value })
75139
- }, [Ce.value ? (L(), p("div", qX, H(Ce.value), 1)) : Se.value ? (L(), p(a, { key: 1 }, [
75140
- m("div", JX, [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, {
75141
75191
  modelValue: be.value,
75142
75192
  "onUpdate:modelValue": n[10] ||= (e) => be.value = e,
75143
75193
  class: "specimen-input",
@@ -75162,7 +75212,7 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75162
75212
  m("div", { class: "glyph-row" }, "abcdefghijklmnopqrstuvwxyz"),
75163
75213
  m("div", { class: "glyph-row" }, "0123456789 & ! ? @ # € $ % ( ) [ ] { } / \\ — “ ” ‘ ’")
75164
75214
  ], -1),
75165
- m("div", YX, [(L(), p(a, null, re([
75215
+ m("div", QX, [(L(), p(a, null, re([
75166
75216
  12,
75167
75217
  16,
75168
75218
  24,
@@ -75172,31 +75222,31 @@ var $Y = { class: "viewer-header-tools" }, eX = ["aria-pressed"], tX = ["disable
75172
75222
  key: e,
75173
75223
  class: "scale-row",
75174
75224
  style: M({ fontSize: `${e}px` })
75175
- }, [m("span", XX, H(e), 1), n[15] ||= m("span", { class: "scale-sample" }, "The quick brown fox jumps over the lazy dog", -1)], 4)), 64))])
75176
- ], 64)) : (L(), p("div", ZX, "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", {
75177
75227
  key: 10,
75178
75228
  class: "full generated-preview",
75179
75229
  src: e.asset.previewUrl,
75180
75230
  alt: e.asset.title,
75181
75231
  onLoad: n[12] ||= (e) => qe.value = !0
75182
- }, null, 40, QX)) : (L(), p("div", $X, [
75183
- m("div", eZ, H(Qe.value), 1),
75184
- m("p", tZ, 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),
75185
75235
  n[17] ||= m("p", { class: "hint" }, "This file type can’t be previewed here.", -1)
75186
75236
  ])),
75187
- Je.value ? (L(), p("div", nZ, "Rendering…")) : f("", !0)
75237
+ Je.value ? (L(), p("div", aZ, "Rendering…")) : f("", !0)
75188
75238
  ], 2),
75189
- e.asset.description ? (L(), p("p", rZ, H(e.asset.description), 1)) : f("", !0)
75190
- ], 14, iX)], 64));
75239
+ e.asset.description ? (L(), p("p", oZ, H(e.asset.description), 1)) : f("", !0)
75240
+ ], 14, sX)], 64));
75191
75241
  }
75192
- }), [["__scopeId", "data-v-fcc6d687"]]), lZ;
75193
- function uZ() {
75242
+ }), [["__scopeId", "data-v-fcc6d687"]]), fZ;
75243
+ function pZ() {
75194
75244
  let e = B(!1), t = B(!1), n = B(0), r = B(!1), i, a, o = 0;
75195
75245
  function s() {
75196
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;
75197
75247
  }
75198
75248
  function c() {
75199
- o++, lZ === s && (lZ = void 0), s();
75249
+ o++, fZ === s && (fZ = void 0), s();
75200
75250
  }
75201
75251
  async function l(c, l) {
75202
75252
  if (i) {
@@ -75204,7 +75254,7 @@ function uZ() {
75204
75254
  return;
75205
75255
  }
75206
75256
  let u = ++o;
75207
- lZ?.(), lZ = s, t.value = !0;
75257
+ fZ?.(), fZ = s, t.value = !0;
75208
75258
  let d;
75209
75259
  try {
75210
75260
  d = typeof c == "function" ? await c() : c;
@@ -75248,19 +75298,19 @@ function uZ() {
75248
75298
  }
75249
75299
  //#endregion
75250
75300
  //#region src/components/BxAudioPlayButton.vue?vue&type=script&setup=true&lang.ts
75251
- var dZ = ["aria-label", "aria-busy"], fZ = {
75301
+ var mZ = ["aria-label", "aria-busy"], hZ = {
75252
75302
  class: "ring",
75253
75303
  viewBox: "0 0 44 44",
75254
75304
  "aria-hidden": "true"
75255
- }, pZ = ["stroke-dashoffset"], mZ = {
75305
+ }, gZ = ["stroke-dashoffset"], _Z = {
75256
75306
  class: "glyph",
75257
75307
  viewBox: "0 0 24 24",
75258
75308
  "aria-hidden": "true"
75259
- }, hZ = {
75309
+ }, vZ = {
75260
75310
  key: 1,
75261
75311
  d: "M8.5 5.5v13l10-6.5z",
75262
75312
  fill: "currentColor"
75263
- }, gZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75313
+ }, yZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75264
75314
  __name: "BxAudioPlayButton",
75265
75315
  props: {
75266
75316
  playing: {
@@ -75285,7 +75335,7 @@ var dZ = ["aria-label", "aria-busy"], fZ = {
75285
75335
  "aria-label": e.playing ? "Pause" : "Play",
75286
75336
  "aria-busy": e.loading || void 0,
75287
75337
  onClick: n[0] ||= ye((e) => r("toggle"), ["stop"])
75288
- }, [(L(), p("svg", fZ, [n[1] ||= m("circle", {
75338
+ }, [(L(), p("svg", hZ, [n[1] ||= m("circle", {
75289
75339
  class: "track",
75290
75340
  cx: "22",
75291
75341
  cy: "22",
@@ -75297,7 +75347,7 @@ var dZ = ["aria-label", "aria-busy"], fZ = {
75297
75347
  r: "20",
75298
75348
  "stroke-dasharray": i,
75299
75349
  "stroke-dashoffset": i * (1 - o.value)
75300
- }, null, 8, pZ)])), (L(), p("svg", mZ, [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", {
75301
75351
  x: "7",
75302
75352
  y: "5",
75303
75353
  width: "3.5",
@@ -75311,9 +75361,9 @@ var dZ = ["aria-label", "aria-busy"], fZ = {
75311
75361
  height: "14",
75312
75362
  rx: "1.25",
75313
75363
  fill: "currentColor"
75314
- }, null, -1)], 64)) : (L(), p("path", hZ))]))], 10, dZ));
75364
+ }, null, -1)], 64)) : (L(), p("path", vZ))]))], 10, mZ));
75315
75365
  }
75316
- }), [["__scopeId", "data-v-09ee9555"]]), _Z = ["aria-label"], vZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75366
+ }), [["__scopeId", "data-v-09ee9555"]]), bZ = ["aria-label"], xZ = /*#__PURE__*/ q(/* @__PURE__ */ y({
75317
75367
  __name: "BxWaveformThumb",
75318
75368
  props: {
75319
75369
  src: {},
@@ -75325,9 +75375,9 @@ var dZ = ["aria-label", "aria-busy"], fZ = {
75325
75375
  style: M({ "--bx-waveform-src": `url(${JSON.stringify(e.src)})` }),
75326
75376
  role: "img",
75327
75377
  "aria-label": e.alt
75328
- }, null, 12, _Z));
75378
+ }, null, 12, bZ));
75329
75379
  }
75330
- }), [["__scopeId", "data-v-69c139e5"]]), yZ = "bluepic-app-wrapper", bZ = `.${yZ}`;
75380
+ }), [["__scopeId", "data-v-69c139e5"]]), SZ = "bluepic-app-wrapper", CZ = `.${SZ}`;
75331
75381
  oO(), window.bluepicPopupProvider = new BI();
75332
75382
  //#endregion
75333
- export { YY as ASSET_AUTH_QUERY_ACCESS_TOKEN, JY 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, cZ as BxAssetViewer, gZ 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, vZ 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, yZ as GLOBAL_APP_WRAPPER_CLASS, bZ 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, GY as aspectRatio, KY as aspectRatioStr, XY as assetRequestHeaders, VR as canvasLabel, HR as canvasSizeToken, CE as cloneDeep, WY 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, UY as flatPortalItems, GP as flattenFieldTable, JP as flattenFields, eF as getDefaultValueForFieldModel, ZP as getFieldDescription, QP as getFieldsDescription, $K as getInitials, OE as getRawText, qY as getTemplateAspectRatioHumanReadable, ZK as getTemplateLiveUrl, XK as getTemplatePreviewUrl, YK as getTemplateSerialUrl, DJ as getThemeStyle, zb as getVisibleBBox, TE as groupFeatureByLinebreaks, HY 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, BY 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, 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, uZ as useAudioPlayback, XP as useFields, YP as useMobileFields, WT as usePopup, FJ as useTheme, NJ as useThemeV2, Sa as useUpload, oq as waitUntil, ZY 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 };