@cling-se/widget 0.19.13 → 0.20.1

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.internal.md +5 -5
  3. package/dist/{AddClientCallout-Da7NOVA5.js → AddClientCallout-DOzqL6Ei.js} +4 -4
  4. package/dist/{AnswerModal-B2ApEIfo.js → AnswerModal-aoQoCe3o.js} +679 -681
  5. package/dist/{AttachmentItem-BM_DzA34.js → AttachmentItem-DTqI5mwy.js} +4 -4
  6. package/dist/{BaseUpload-CGVbfe4H.js → BaseUpload-nxVqZX3O.js} +2 -2
  7. package/dist/{BlockMedia-Dza5TjFS.js → BlockMedia-BYVRSrze.js} +1 -1
  8. package/dist/{CCallout-BpHUnBsq.js → CCallout-Db9YEwws.js} +1 -1
  9. package/dist/{CCurrencyDropdown-Glt0CY7w.js → CCurrencyDropdown-sRqig-2P.js} +3 -3
  10. package/dist/{CDropdownItem-rpcdHW76.js → CDropdownItem-CZO28TQW.js} +96 -96
  11. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js → CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js} +2 -2
  12. package/dist/{CPhoneFormat-uxMRSGaN.js → CPhoneFormat-CUtvNKnk.js} +1 -1
  13. package/dist/{CPhoneInput-DnigKWiR.js → CPhoneInput-kOcllgTr.js} +5 -5
  14. package/dist/{CPriceInput-BNVWpxMd.js → CPriceInput-3X1Et9ny.js} +2 -2
  15. package/dist/{CSelect-ioLMsxK3.js → CSelect-DVCPHAdo.js} +1 -1
  16. package/dist/{CSkeleton-BsApoNUe.js → CSkeleton-Bxdz5nlu.js} +1 -1
  17. package/dist/{ClientAutocomplete-Dof0Wnp9.js → ClientAutocomplete-DCphFPmv.js} +3 -3
  18. package/dist/{ClientModal-CVsZrXLV.js → ClientModal-oTn-trfu.js} +218 -248
  19. package/dist/{ColorPicker-Ca2a0Dib.js → ColorPicker-Bs_kXTFe.js} +1 -1
  20. package/dist/{CompanyModal-C6AUjpnI.js → CompanyModal-DzXAdbGd.js} +7 -7
  21. package/dist/{ContentWrapper-wTfXDKX-.js → ContentWrapper-2wh0OBB0.js} +6 -6
  22. package/dist/{CoverBlockSettings-BkWhPlN2.js → CoverBlockSettings-DSOoms9U.js} +7 -7
  23. package/dist/{DocAnswer-DoRmk17c.js → DocAnswer-B529e1E2.js} +2 -2
  24. package/dist/{DocDetails-D_E3lERC.js → DocDetails-BHqTgx1H.js} +4 -4
  25. package/dist/{DocForm-DbpjRBRm.js → DocForm-DOdyjHWA.js} +99 -97
  26. package/dist/{DocFormSend-DN2k9giy.js → DocFormSend-DfrWjvTy.js} +2 -2
  27. package/dist/{DocLinks-BvtcG9-D.js → DocLinks-BRJnZ1rA.js} +2 -2
  28. package/dist/{DocModalBase-D_LZXbIj.js → DocModalBase-Cf-C2hVQ.js} +1 -1
  29. package/dist/{DocPrint-BrjeZaPK.js → DocPrint-OVtsohie.js} +1 -1
  30. package/dist/{DocReceipt-BXAGCO6L.js → DocReceipt-tmBbom2x.js} +2 -2
  31. package/dist/{DocSendReminder-BtcutNHV.js → DocSendReminder-C6fGp2qu.js} +1 -1
  32. package/dist/{DocTextEditor-DYrnRt6O.js → DocTextEditor-D3EjoBGe.js} +171 -148
  33. package/dist/{DocTimeline-AZQVm00F.js → DocTimeline-CChHnG2Q.js} +2 -2
  34. package/dist/{DocumentClient-BTsdprjd.js → DocumentClient-kV1ps0P5.js} +5 -5
  35. package/dist/{DocumentLayout-DbXHslTY.js → DocumentLayout-B2vKSnWD.js} +21 -21
  36. package/dist/{DocumentLogotype-B6ENzX02.js → DocumentLogotype-BldUocoJ.js} +4 -4
  37. package/dist/{DocumentVoided-B9AHAIvl.js → DocumentVoided-rZxx0TDM.js} +1 -1
  38. package/dist/{EmbedInput-BN6DFeq0.js → EmbedInput-C-bORXEJ.js} +3 -3
  39. package/dist/{EmbedSettings-DD9uIXDi.js → EmbedSettings-CaRoWZzj.js} +3 -3
  40. package/dist/{ErrorCallout-BFezjCn3.js → ErrorCallout-BQkcHI49.js} +1 -1
  41. package/dist/{FilePreviewModal-CXE7RahY.js → FilePreviewModal-egIS6jnw.js} +2 -2
  42. package/dist/{Flag-BCe6xe-D.js → Flag-DUrDD56m.js} +1 -1
  43. package/dist/{HeaderSettings-Uyr0qhas.js → HeaderSettings-Cfql7vW5.js} +9 -9
  44. package/dist/{ImageSelectModal-CSW3shsb.js → ImageSelectModal-3U22LhEN.js} +3 -3
  45. package/dist/{ImageUploadWrapper-DyunQdxO.js → ImageUploadWrapper-DWmlB4Ha.js} +2 -2
  46. package/dist/{Index-BRhtJdqU.js → Index-38AEfgHb.js} +4 -4
  47. package/dist/{Index-DAnljErU.js → Index-7rnf6UDQ.js} +6 -6
  48. package/dist/{Index-BUwF7tDs.js → Index-BepK484N.js} +3 -3
  49. package/dist/{Index-r-bi4xvP.js → Index-BlBA6eMl.js} +4 -4
  50. package/dist/{Index-CdtKkfEh.js → Index-BuPSt_Hb.js} +8 -8
  51. package/dist/{Index-B8EGrohn.js → Index-C2jLt_-J.js} +4 -4
  52. package/dist/{Index-DRVJFBy_.js → Index-CKisxkqL.js} +3 -3
  53. package/dist/{Index-BcPpzfWP.js → Index-CN1flEMh.js} +1 -1
  54. package/dist/{Index-D91m2xKm.js → Index-CRAk8dmP.js} +26 -17
  55. package/dist/{Index-BieU1ZTV.js → Index-CZFXyZp-.js} +2 -2
  56. package/dist/{Index-BGVViv6b.js → Index-C_2Gf2Da.js} +46 -37
  57. package/dist/{Index-ziuExFyj.js → Index-CcOeCvOe.js} +5 -5
  58. package/dist/{Index-DI91U3g3.js → Index-CcSq7dWo.js} +1 -1
  59. package/dist/{Index-Ch2Y3XbD.js → Index-Ckr5i1Li.js} +258 -240
  60. package/dist/{Index-VRzwBnM4.js → Index-Cl7KBtZX.js} +4 -4
  61. package/dist/{Index-CpZWI-QN.js → Index-CyAAbl1D.js} +14 -14
  62. package/dist/{Index-DMDWW0zp.js → Index-CyYFJf0D.js} +5 -5
  63. package/dist/Index-D05o3s14.js +4 -0
  64. package/dist/{Index-jSpfKPKP.js → Index-D1PUyqFa.js} +8 -8
  65. package/dist/{Index-32_BJudF.js → Index-DAI1qHEl.js} +3 -3
  66. package/dist/{Index-DaXHQaxr.js → Index-DAcRb0rT.js} +4 -4
  67. package/dist/{Index-BGsQAzCd.js → Index-DCWl_6gz.js} +9 -9
  68. package/dist/{Index-DH5l8DHo.js → Index-DGq9TdPd.js} +4 -4
  69. package/dist/{Index-Bh5sjhBw.js → Index-DIlbkelD.js} +1 -1
  70. package/dist/{Index-wb02iXXO.js → Index-DR3O2rVd.js} +5 -5
  71. package/dist/{Index-CgdCQDsv.js → Index-DSTJ0ZME.js} +7 -7
  72. package/dist/{Index-BmoysUi1.js → Index-DUKDykzl.js} +2 -2
  73. package/dist/{Index-Dssz58AL.js → Index-DfMMDolH.js} +3 -3
  74. package/dist/{Index-C-rVXB4u.js → Index-DikWyKIw.js} +2 -2
  75. package/dist/{Index-CATlFu8B.js → Index-Dn_EZ_k2.js} +2 -2
  76. package/dist/{Index-CLdIolDF.js → Index-STi0ufm3.js} +2 -2
  77. package/dist/{Index-DBozFV2a.js → Index-l8RB4z_B.js} +4 -4
  78. package/dist/{Index-DKKc3zZQ.js → Index-phqgcko1.js} +6 -6
  79. package/dist/{Index-Cnnkb8ey.js → Index-xKr7qP9f.js} +4 -4
  80. package/dist/{Index.vue_vue_type_script_lang-CUl4C9jx.js → Index.vue_vue_type_script_lang-DsCnlKNn.js} +2 -2
  81. package/dist/{InputToggleRow-e1gC6XnA.js → InputToggleRow-BiyZz3ua.js} +1 -1
  82. package/dist/{ManualPopover-BbqVfuJE.js → ManualPopover-CFwiZHZw.js} +1 -1
  83. package/dist/{MediaWrapper-Bqy-cGev.js → MediaWrapper-B6flFwa-.js} +3 -3
  84. package/dist/{NotBindingText-_GKq6jSE.js → NotBindingText-CyfRBqiL.js} +2 -2
  85. package/dist/{PackageGroup-IiQ0mqWg.js → PackageGroup-DDgLD4Yb.js} +5 -5
  86. package/dist/{PdfTerms-CO7SxSke.js → PdfTerms-zEPJCgb-.js} +2 -2
  87. package/dist/{PdfViewer-apckUEAj.js → PdfViewer-BNFYiBMf.js} +2 -2
  88. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-gCh1Q-qi.js → PlainHtml.vue_vue_type_script_setup_true_lang-CPGJZjFh.js} +1 -1
  89. package/dist/{PriceHeader-CXP09nZ6.js → PriceHeader-B9Mk_GDV.js} +7 -7
  90. package/dist/{SearchApi-CQOtHW43.js → SearchApi-BsSeYGH9.js} +1 -1
  91. package/dist/{SendForm-C3v06Gwx.js → SendForm-Ci2s-FsJ.js} +8 -8
  92. package/dist/{Setup-Dr37DSNY.js → Setup-C5uQOyWH.js} +1 -1
  93. package/dist/{SmartList-Opr_24HD.js → SmartList-BglLgQmN.js} +1 -1
  94. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DtvYuVUg.js → Sortable.vue_vue_type_script_setup_true_lang-C-Uy1WwV.js} +1 -1
  95. package/dist/{TermsSettings-P8IWZn08.js → TermsSettings-BUXZ0GDb.js} +34 -32
  96. package/dist/{ThemeColorRow-BdXx5ClL.js → ThemeColorRow-EJd126k7.js} +3 -3
  97. package/dist/{ToggleBinding-BZyqWBnB.js → ToggleBinding-Bxx2OzYq.js} +4 -4
  98. package/dist/{UploadModal-6E9HzkQ0.js → UploadModal-BjrFM0lw.js} +13 -11
  99. package/dist/{VideoPlayerInput-DRcDC2q-.js → VideoPlayerInput-o2GX5-Ma.js} +4 -4
  100. package/dist/{VideoPlayerSettings-Dw7zEg1k.js → VideoPlayerSettings-DXSwsMJl.js} +2 -2
  101. package/dist/{VideoSelectModal-DIV9-62A.js → VideoSelectModal-BI0-L5dG.js} +3 -3
  102. package/dist/{focusDrawerMixin-CrKt75PZ.js → focusDrawerMixin-Dz9oC1MR.js} +1 -1
  103. package/dist/{formDrawerState-BesayjqS.js → formDrawerState-0vhg7tV-.js} +1 -1
  104. package/dist/fortnoxTheme-B0DA1l7P.js +8 -0
  105. package/dist/{helpers-DOdzW9pA.js → helpers-Dkn2xKzv.js} +1 -1
  106. package/dist/{index-DINik6UH.js → index-Bw8qzZRS.js} +1 -1
  107. package/dist/{index-DWwjiiMe.js → index-D-NDkjvk.js} +1 -1
  108. package/dist/{index-BHg-4y6B.js → index-DI9iTlQc.js} +8 -8
  109. package/dist/{index-DNQzIGHD.js → index-DNBN1EEl.js} +642 -565
  110. package/dist/{index-BnjVWyGe.js → index-Dkh_SXlu.js} +3 -3
  111. package/dist/{index-DDfG6A20.js → index-c4rO163H.js} +1 -1
  112. package/dist/{index-Cl5j-fNE.js → index-dqh4rth1.js} +1 -1
  113. package/dist/index.es.js +3 -33
  114. package/dist/index.umd.js +142 -142
  115. package/dist/{main-C18owm58.js → main-DAjWLLG0.js} +5116 -5085
  116. package/dist/{mapFormMixin-bA_KI0pt.js → mapFormMixin-CFaAoXxf.js} +4 -4
  117. package/dist/{omit-BVoDlsuC.js → omit-5nzNft5F.js} +2 -2
  118. package/dist/{publicSenderState-BR7541Fw.js → publicSenderState-BaH8Utk8.js} +1 -1
  119. package/dist/{splitpanes-OUpaQjCW.js → splitpanes-CxaAqPCT.js} +1 -1
  120. package/dist/{template-Y3wS95il.js → template-CHAQR6C-.js} +1 -1
  121. package/dist/{tippy.esm-CQD-ZLcV.js → tippy.esm-DYmyPdOc.js} +5 -5
  122. package/dist/{useTermsModal-DS9T_NyM.js → useTermsModal-aIBQHQEU.js} +4 -4
  123. package/dist/{utils-DwKlp8_z.js → utils-CiYKHNqS.js} +1 -1
  124. package/dist/{validation-b_jF-CIN.js → validation-BRPTZqtn.js} +2 -2
  125. package/dist/validations-ohsJ5nBz.js +34 -0
  126. package/dist/widget.css +1 -1
  127. package/package.json +1 -1
  128. package/dist/Index-DEBrME_f.js +0 -4
@@ -1,11 +1,11 @@
1
- import { a7 as Xr, A as Qr, a3 as wd, G as na, ak as Zr, cB as Cd, b$ as ra, p as cs, r as Sd, da as ds, db as Md, M as vd, I as Td, z as Ad, _ as kt, b as Z, c as we, o as D, w as De, j as A, d as H, an as V, f as Ve, F as _e, n as en, R as ia, e as he, x as G, t as Tt, a4 as oa, u as ji, ai as Ed, c4 as Od, l as sa, al as Nd, aD as us, W as Rd, af as bi, am as Dd, T as hs, $ as Ld } from "./main-C18owm58.js";
1
+ import { a7 as Xr, A as Qr, a3 as wd, G as na, ak as Zr, cB as Cd, b$ as ra, p as cs, r as Sd, da as ds, db as Md, M as vd, I as Td, z as Ad, _ as kt, b as Z, c as we, o as D, w as De, j as A, d as z, an as V, f as Ve, F as _e, n as en, R as ia, e as ce, x as G, t as Tt, a4 as oa, u as ji, ai as Ed, c4 as Od, l as sa, al as Nd, aD as us, W as Rd, af as bi, am as Dd, T as hs, $ as Ld } from "./main-DAjWLLG0.js";
2
2
  import { g as ir } from "./dom-DOcGU3-g.js";
3
- import { t as la, F as Id, s as Pd, d as fs } from "./tippy.esm-CQD-ZLcV.js";
4
- import { d as aa } from "./helpers-DOdzW9pA.js";
5
- import { C as Bd } from "./ColorPicker-Ca2a0Dib.js";
6
- import { _ as ca } from "./ManualPopover-BbqVfuJE.js";
3
+ import { t as la, F as Id, s as Pd, d as fs } from "./tippy.esm-DYmyPdOc.js";
4
+ import { d as aa } from "./helpers-Dkn2xKzv.js";
5
+ import { C as Bd } from "./ColorPicker-Bs_kXTFe.js";
6
+ import { _ as ca } from "./ManualPopover-CFwiZHZw.js";
7
7
  import { h as zd } from "./color-HetJPhlA.js";
8
- import { w as Hd } from "./CDropdownItem-rpcdHW76.js";
8
+ import { w as Hd } from "./CDropdownItem-CZO28TQW.js";
9
9
  function re(n) {
10
10
  this.content = n;
11
11
  }
@@ -3065,7 +3065,7 @@ class Xt {
3065
3065
  }
3066
3066
  }
3067
3067
  const wi = /* @__PURE__ */ Object.create(null);
3068
- class ue {
3068
+ class he {
3069
3069
  /**
3070
3070
  Get the step map that represents the changes made by this step,
3071
3071
  and which can be used to transform between positions in the old
@@ -3148,7 +3148,7 @@ function vo(n, e, t) {
3148
3148
  }
3149
3149
  return b.fromArray(r);
3150
3150
  }
3151
- class ct extends ue {
3151
+ class ct extends he {
3152
3152
  /**
3153
3153
  Create a mark step.
3154
3154
  */
@@ -3186,8 +3186,8 @@ class ct extends ue {
3186
3186
  return new ct(t.from, t.to, e.markFromJSON(t.mark));
3187
3187
  }
3188
3188
  }
3189
- ue.jsonID("addMark", ct);
3190
- class Fe extends ue {
3189
+ he.jsonID("addMark", ct);
3190
+ class Fe extends he {
3191
3191
  /**
3192
3192
  Create a mark-removing step.
3193
3193
  */
@@ -3225,8 +3225,8 @@ class Fe extends ue {
3225
3225
  return new Fe(t.from, t.to, e.markFromJSON(t.mark));
3226
3226
  }
3227
3227
  }
3228
- ue.jsonID("removeMark", Fe);
3229
- class dt extends ue {
3228
+ he.jsonID("removeMark", Fe);
3229
+ class dt extends he {
3230
3230
  /**
3231
3231
  Create a node mark step.
3232
3232
  */
@@ -3269,8 +3269,8 @@ class dt extends ue {
3269
3269
  return new dt(t.pos, e.markFromJSON(t.mark));
3270
3270
  }
3271
3271
  }
3272
- ue.jsonID("addNodeMark", dt);
3273
- class tn extends ue {
3272
+ he.jsonID("addNodeMark", dt);
3273
+ class tn extends he {
3274
3274
  /**
3275
3275
  Create a mark-removing step.
3276
3276
  */
@@ -3304,8 +3304,8 @@ class tn extends ue {
3304
3304
  return new tn(t.pos, e.markFromJSON(t.mark));
3305
3305
  }
3306
3306
  }
3307
- ue.jsonID("removeNodeMark", tn);
3308
- class ee extends ue {
3307
+ he.jsonID("removeNodeMark", tn);
3308
+ class ee extends he {
3309
3309
  /**
3310
3310
  The given `slice` should fit the 'gap' between `from` and
3311
3311
  `to`—the depths must line up, and the surrounding nodes must be
@@ -3356,8 +3356,8 @@ class ee extends ue {
3356
3356
  return new ee(t.from, t.to, w.fromJSON(e, t.slice), !!t.structure);
3357
3357
  }
3358
3358
  }
3359
- ue.jsonID("replace", ee);
3360
- class te extends ue {
3359
+ he.jsonID("replace", ee);
3360
+ class te extends he {
3361
3361
  /**
3362
3362
  Create a replace-around step with the given range and gap.
3363
3363
  `insert` should be the point in the slice into which the content
@@ -3414,7 +3414,7 @@ class te extends ue {
3414
3414
  return new te(t.from, t.to, t.gapFrom, t.gapTo, w.fromJSON(e, t.slice), t.insert, !!t.structure);
3415
3415
  }
3416
3416
  }
3417
- ue.jsonID("replaceAround", te);
3417
+ he.jsonID("replaceAround", te);
3418
3418
  function Gi(n, e, t) {
3419
3419
  let r = n.resolve(e), i = t - e, o = r.depth;
3420
3420
  for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
@@ -4000,7 +4000,7 @@ function Fa(n, e) {
4000
4000
  }
4001
4001
  return t;
4002
4002
  }
4003
- class Qt extends ue {
4003
+ class Qt extends he {
4004
4004
  /**
4005
4005
  Construct an attribute step.
4006
4006
  */
@@ -4037,8 +4037,8 @@ class Qt extends ue {
4037
4037
  return new Qt(t.pos, t.attr, t.value);
4038
4038
  }
4039
4039
  }
4040
- ue.jsonID("attr", Qt);
4041
- class Cn extends ue {
4040
+ he.jsonID("attr", Qt);
4041
+ class Cn extends he {
4042
4042
  /**
4043
4043
  Construct an attribute step.
4044
4044
  */
@@ -4071,7 +4071,7 @@ class Cn extends ue {
4071
4071
  return new Cn(t.attr, t.value);
4072
4072
  }
4073
4073
  }
4074
- ue.jsonID("docAttr", Cn);
4074
+ he.jsonID("docAttr", Cn);
4075
4075
  let nn = class extends Error {
4076
4076
  };
4077
4077
  nn = function n(e) {
@@ -5220,7 +5220,7 @@ function $u(n, e, t) {
5220
5220
  }
5221
5221
  const We = typeof navigator < "u" ? navigator : null, Ps = typeof document < "u" ? document : null, wt = We && We.userAgent || "", Xi = /Edge\/(\d+)/.exec(wt), ja = /MSIE \d/.exec(wt), Qi = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wt), be = !!(ja || Qi || Xi), pt = ja ? document.documentMode : Qi ? +Qi[1] : Xi ? +Xi[1] : 0, Le = !be && /gecko\/(\d+)/i.test(wt);
5222
5222
  Le && +(/Firefox\/(\d+)/.exec(wt) || [0, 0])[1];
5223
- const Zi = !be && /Chrome\/(\d+)/.exec(wt), ce = !!Zi, qa = Zi ? +Zi[1] : 0, fe = !be && !!We && /Apple Computer/.test(We.vendor), rn = fe && (/Mobile\/\w+/.test(wt) || !!We && We.maxTouchPoints > 2), ve = rn || (We ? /Mac/.test(We.platform) : !1), Fu = We ? /Win/.test(We.platform) : !1, Ne = /Android \d/.test(wt), Ln = !!Ps && "webkitFontSmoothing" in Ps.documentElement.style, Vu = Ln ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5223
+ const Zi = !be && /Chrome\/(\d+)/.exec(wt), de = !!Zi, qa = Zi ? +Zi[1] : 0, fe = !be && !!We && /Apple Computer/.test(We.vendor), rn = fe && (/Mobile\/\w+/.test(wt) || !!We && We.maxTouchPoints > 2), ve = rn || (We ? /Mac/.test(We.platform) : !1), Fu = We ? /Win/.test(We.platform) : !1, Ne = /Android \d/.test(wt), Ln = !!Ps && "webkitFontSmoothing" in Ps.documentElement.style, Vu = Ln ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5224
5224
  function _u(n) {
5225
5225
  let e = n.defaultView && n.defaultView.visualViewport;
5226
5226
  return e ? {
@@ -6428,7 +6428,7 @@ class sh {
6428
6428
  for (; e instanceof zt; )
6429
6429
  t = e, e = t.children[t.children.length - 1];
6430
6430
  (!e || // Empty textblock
6431
- !(e instanceof oi) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((fe || ce) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
6431
+ !(e instanceof oi) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((fe || de) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
6432
6432
  }
6433
6433
  addHackNode(e, t) {
6434
6434
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -6604,7 +6604,7 @@ function rc(n) {
6604
6604
  function et(n, e = !1) {
6605
6605
  let t = n.state.selection;
6606
6606
  if (ic(n, t), !!rc(n)) {
6607
- if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && ce) {
6607
+ if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && de) {
6608
6608
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
6609
6609
  if (r.anchorNode && i.anchorNode && Bt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
6610
6610
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
@@ -6620,7 +6620,7 @@ function et(n, e = !1) {
6620
6620
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
6621
6621
  }
6622
6622
  }
6623
- const js = fe || ce && qa < 63;
6623
+ const js = fe || de && qa < 63;
6624
6624
  function qs(n, e) {
6625
6625
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
6626
6626
  if (fe && i && i.contentEditable == "false")
@@ -6848,7 +6848,7 @@ function ro(n, e, t) {
6848
6848
  }
6849
6849
  function Ys(n, e) {
6850
6850
  let t = n.state.doc.resolve(e);
6851
- if (!(ce || Fu) && t.parent.inlineContent) {
6851
+ if (!(de || Fu) && t.parent.inlineContent) {
6852
6852
  let i = n.coordsAtPos(e);
6853
6853
  if (e > t.start()) {
6854
6854
  let o = n.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
@@ -7101,7 +7101,7 @@ function vh(n) {
7101
7101
  return t;
7102
7102
  }
7103
7103
  function Th(n) {
7104
- let e = n.querySelectorAll(ce ? "span:not([class]):not([style])" : "span.Apple-converted-space");
7104
+ let e = n.querySelectorAll(de ? "span:not([class]):not([style])" : "span.Apple-converted-space");
7105
7105
  for (let t = 0; t < e.length; t++) {
7106
7106
  let r = e[t];
7107
7107
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
@@ -7176,7 +7176,7 @@ function Lh(n, e) {
7176
7176
  }
7177
7177
  me.keydown = (n, e) => {
7178
7178
  let t = e;
7179
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mc(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ne && ce && t.keyCode == 13)))
7179
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mc(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ne && de && t.keyCode == 13)))
7180
7180
  if (t.keyCode != 229 && n.domObserver.forceFlush(), rn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
7181
7181
  let r = Date.now();
7182
7182
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -7320,7 +7320,7 @@ class Vh {
7320
7320
  // (hidden) cursor is doesn't change the selection, and
7321
7321
  // thus doesn't get a reaction from ProseMirror. This
7322
7322
  // works around that.
7323
- ce && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Zt(this.view, O.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : ut(this.view, "pointer");
7323
+ de && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Zt(this.view, O.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : ut(this.view, "pointer");
7324
7324
  }
7325
7325
  move(e) {
7326
7326
  this.updateAllowDefault(e), ut(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -7480,7 +7480,7 @@ pe.dragstart = (n, e) => {
7480
7480
  }
7481
7481
  }
7482
7482
  let l = (s || n.state.selection).content(), { dom: a, text: c, slice: d } = lc(n, l);
7483
- (!t.dataTransfer.files.length || !ce || qa > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Mn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Mn || t.dataTransfer.setData("text/plain", c), n.dragging = new kc(d, !t[xc], s);
7483
+ (!t.dataTransfer.files.length || !de || qa > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Mn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Mn || t.dataTransfer.setData("text/plain", c), n.dragging = new kc(d, !t[xc], s);
7484
7484
  };
7485
7485
  pe.dragend = (n) => {
7486
7486
  let e = n.dragging;
@@ -7537,7 +7537,7 @@ pe.blur = (n, e) => {
7537
7537
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
7538
7538
  };
7539
7539
  pe.beforeinput = (n, e) => {
7540
- if (ce && Ne && e.inputType == "deleteContentBackward") {
7540
+ if (de && Ne && e.inputType == "deleteContentBackward") {
7541
7541
  n.domObserver.flushSoon();
7542
7542
  let { domChangeCount: r } = n.input;
7543
7543
  setTimeout(() => {
@@ -8256,7 +8256,7 @@ function nf(n, e) {
8256
8256
  }
8257
8257
  function rf(n, e, t) {
8258
8258
  let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
8259
- if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), ce && n.input.lastKeyCode === 8)
8259
+ if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), de && n.input.lastKeyCode === 8)
8260
8260
  for (let g = o; g > i; g--) {
8261
8261
  let y = r.childNodes[g - 1], k = y.pmViewDesc;
8262
8262
  if (y.nodeName == "BR" && !k) {
@@ -8303,7 +8303,7 @@ function lf(n, e, t, r, i) {
8303
8303
  if (n.input.compositionPendingChanges = 0, e < 0) {
8304
8304
  let v = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, j = Ro(n, v);
8305
8305
  if (j && !n.state.selection.eq(j)) {
8306
- if (ce && Ne && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (St) => St(n, Mt(13, "Enter"))))
8306
+ if (de && Ne && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (St) => St(n, Mt(13, "Enter"))))
8307
8307
  return;
8308
8308
  let ge = n.state.tr.setSelection(j);
8309
8309
  v == "pointer" ? ge.setMeta("pointer", !0) : v == "key" && ge.scrollIntoView(), o && ge.setMeta("composition", o), n.dispatch(ge);
@@ -8339,10 +8339,10 @@ function lf(n, e, t, r, i) {
8339
8339
  return;
8340
8340
  }
8341
8341
  if (n.state.selection.anchor > p.start && cf(d, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (v) => v(n, Mt(8, "Backspace")))) {
8342
- Ne && ce && n.domObserver.suppressSelectionUpdates();
8342
+ Ne && de && n.domObserver.suppressSelectionUpdates();
8343
8343
  return;
8344
8344
  }
8345
- ce && Ne && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ne && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
8345
+ de && Ne && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ne && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
8346
8346
  n.someProp("handleKeyDown", function(v) {
8347
8347
  return v(n, Mt(13, "Enter"));
8348
8348
  });
@@ -8365,7 +8365,7 @@ function lf(n, e, t, r, i) {
8365
8365
  }
8366
8366
  if (S || (S = n.state.tr.replace(N, R, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
8367
8367
  let v = sl(n, S.doc, c.sel);
8368
- v && !(ce && Ne && n.composing && v.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (v.head == N || v.head == S.mapping.map(R) - 1) || be && v.empty && v.head == N) && S.setSelection(v);
8368
+ v && !(de && Ne && n.composing && v.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (v.head == N || v.head == S.mapping.map(R) - 1) || be && v.empty && v.head == N) && S.setSelection(v);
8369
8369
  }
8370
8370
  P && S.ensureMarks(P), o && S.setMeta("composition", o), n.dispatch(S.scrollIntoView());
8371
8371
  }
@@ -8519,9 +8519,9 @@ class uf {
8519
8519
  let h = d == "preserve" && s && this.dom.style.overflowAnchor == null && ju(this);
8520
8520
  if (s) {
8521
8521
  this.domObserver.stop();
8522
- let f = u && (be || ce) && !this.composing && !i.selection.empty && !e.selection.empty && hf(i.selection, e.selection);
8522
+ let f = u && (be || de) && !this.composing && !i.selection.empty && !e.selection.empty && hf(i.selection, e.selection);
8523
8523
  if (u) {
8524
- let p = ce ? this.trackWrites = this.domSelectionRange().focusNode : null;
8524
+ let p = de ? this.trackWrites = this.domSelectionRange().focusNode : null;
8525
8525
  this.composing && (this.input.compositionNode = Wh(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = _s(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (f = !0);
8526
8526
  }
8527
8527
  f || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ph(this)) ? et(this, f) : (ic(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -9582,7 +9582,7 @@ function ne(n, e) {
9582
9582
  }
9583
9583
  return n;
9584
9584
  }
9585
- function z(...n) {
9585
+ function H(...n) {
9586
9586
  return n.filter((e) => !!e).reduce((e, t) => {
9587
9587
  const r = { ...e };
9588
9588
  return Object.entries(t).forEach(([i, o]) => {
@@ -9610,7 +9610,7 @@ function z(...n) {
9610
9610
  function so(n, e) {
9611
9611
  return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
9612
9612
  [t.name]: n.attrs[t.name]
9613
- }).reduce((t, r) => z(t, r), {});
9613
+ }).reduce((t, r) => H(t, r), {});
9614
9614
  }
9615
9615
  function zc(n) {
9616
9616
  return typeof n == "function";
@@ -12231,7 +12231,7 @@ const Pm = Oe.create({
12231
12231
  ];
12232
12232
  },
12233
12233
  renderHTML({ HTMLAttributes: n }) {
12234
- return ["span", z(this.options.HTMLAttributes, n), 0];
12234
+ return ["span", H(this.options.HTMLAttributes, n), 0];
12235
12235
  },
12236
12236
  addCommands() {
12237
12237
  return {
@@ -12301,7 +12301,7 @@ const Pm = Oe.create({
12301
12301
  ];
12302
12302
  },
12303
12303
  renderHTML({ HTMLAttributes: n }) {
12304
- return ["mark", z(this.options.HTMLAttributes, n), 0];
12304
+ return ["mark", H(this.options.HTMLAttributes, n), 0];
12305
12305
  },
12306
12306
  addCommands() {
12307
12307
  return {
@@ -13201,9 +13201,9 @@ const cg = Oe.create({
13201
13201
  defaultValidate: (e) => !!un(e, this.options.protocols),
13202
13202
  protocols: this.options.protocols,
13203
13203
  defaultProtocol: this.options.defaultProtocol
13204
- }) ? ["a", z(this.options.HTMLAttributes, n), 0] : [
13204
+ }) ? ["a", H(this.options.HTMLAttributes, n), 0] : [
13205
13205
  "a",
13206
- z(this.options.HTMLAttributes, { ...n, href: "" }),
13206
+ H(this.options.HTMLAttributes, { ...n, href: "" }),
13207
13207
  0
13208
13208
  ];
13209
13209
  },
@@ -13280,7 +13280,7 @@ const cg = Oe.create({
13280
13280
  ];
13281
13281
  },
13282
13282
  renderHTML({ HTMLAttributes: n }) {
13283
- return ["p", z(this.options.HTMLAttributes, n), 0];
13283
+ return ["p", H(this.options.HTMLAttributes, n), 0];
13284
13284
  },
13285
13285
  addCommands() {
13286
13286
  return {
@@ -13370,7 +13370,7 @@ const cg = Oe.create({
13370
13370
  ];
13371
13371
  },
13372
13372
  renderHTML({ HTMLAttributes: n }) {
13373
- return ["td", z(this.options.HTMLAttributes, n), 0];
13373
+ return ["td", H(this.options.HTMLAttributes, n), 0];
13374
13374
  }
13375
13375
  }), hg = Q.create({
13376
13376
  name: "tableHeader",
@@ -13405,7 +13405,7 @@ const cg = Oe.create({
13405
13405
  ];
13406
13406
  },
13407
13407
  renderHTML({ HTMLAttributes: n }) {
13408
- return ["th", z(this.options.HTMLAttributes, n), 0];
13408
+ return ["th", H(this.options.HTMLAttributes, n), 0];
13409
13409
  }
13410
13410
  }), fg = Q.create({
13411
13411
  name: "tableRow",
@@ -13422,7 +13422,7 @@ const cg = Oe.create({
13422
13422
  ];
13423
13423
  },
13424
13424
  renderHTML({ HTMLAttributes: n }) {
13425
- return ["tr", z(this.options.HTMLAttributes, n), 0];
13425
+ return ["tr", H(this.options.HTMLAttributes, n), 0];
13426
13426
  }
13427
13427
  }), pg = X.create({
13428
13428
  name: "textAlign",
@@ -13484,7 +13484,7 @@ const cg = Oe.create({
13484
13484
  ];
13485
13485
  },
13486
13486
  renderHTML({ HTMLAttributes: n }) {
13487
- return ["u", z(this.options.HTMLAttributes, n), 0];
13487
+ return ["u", H(this.options.HTMLAttributes, n), 0];
13488
13488
  },
13489
13489
  addCommands() {
13490
13490
  return {
@@ -13515,7 +13515,7 @@ const cg = Oe.create({
13515
13515
  ];
13516
13516
  },
13517
13517
  renderHTML({ HTMLAttributes: n }) {
13518
- return ["blockquote", z(this.options.HTMLAttributes, n), 0];
13518
+ return ["blockquote", H(this.options.HTMLAttributes, n), 0];
13519
13519
  },
13520
13520
  addCommands() {
13521
13521
  return {
@@ -13564,7 +13564,7 @@ const cg = Oe.create({
13564
13564
  ];
13565
13565
  },
13566
13566
  renderHTML({ HTMLAttributes: n }) {
13567
- return ["strong", z(this.options.HTMLAttributes, n), 0];
13567
+ return ["strong", H(this.options.HTMLAttributes, n), 0];
13568
13568
  },
13569
13569
  addCommands() {
13570
13570
  return {
@@ -13623,7 +13623,7 @@ const cg = Oe.create({
13623
13623
  ];
13624
13624
  },
13625
13625
  renderHTML({ HTMLAttributes: n }) {
13626
- return ["ul", z(this.options.HTMLAttributes, n), 0];
13626
+ return ["ul", H(this.options.HTMLAttributes, n), 0];
13627
13627
  },
13628
13628
  addCommands() {
13629
13629
  return {
@@ -13667,7 +13667,7 @@ const cg = Oe.create({
13667
13667
  ];
13668
13668
  },
13669
13669
  renderHTML({ HTMLAttributes: n }) {
13670
- return ["code", z(this.options.HTMLAttributes, n), 0];
13670
+ return ["code", H(this.options.HTMLAttributes, n), 0];
13671
13671
  },
13672
13672
  addCommands() {
13673
13673
  return {
@@ -13737,7 +13737,7 @@ const cg = Oe.create({
13737
13737
  renderHTML({ node: n, HTMLAttributes: e }) {
13738
13738
  return [
13739
13739
  "pre",
13740
- z(this.options.HTMLAttributes, e),
13740
+ H(this.options.HTMLAttributes, e),
13741
13741
  [
13742
13742
  "code",
13743
13743
  {
@@ -14152,7 +14152,7 @@ const _g = X.create({
14152
14152
  ];
14153
14153
  },
14154
14154
  renderHTML({ HTMLAttributes: n }) {
14155
- return ["br", z(this.options.HTMLAttributes, n)];
14155
+ return ["br", H(this.options.HTMLAttributes, n)];
14156
14156
  },
14157
14157
  renderText() {
14158
14158
  return `
@@ -14210,7 +14210,7 @@ const _g = X.create({
14210
14210
  }));
14211
14211
  },
14212
14212
  renderHTML({ node: n, HTMLAttributes: e }) {
14213
- return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, z(this.options.HTMLAttributes, e), 0];
14213
+ return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, H(this.options.HTMLAttributes, e), 0];
14214
14214
  },
14215
14215
  addCommands() {
14216
14216
  return {
@@ -14611,7 +14611,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
14611
14611
  return [{ tag: "hr" }];
14612
14612
  },
14613
14613
  renderHTML({ HTMLAttributes: n }) {
14614
- return ["hr", z(this.options.HTMLAttributes, n)];
14614
+ return ["hr", H(this.options.HTMLAttributes, n)];
14615
14615
  },
14616
14616
  addCommands() {
14617
14617
  return {
@@ -14675,7 +14675,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
14675
14675
  ];
14676
14676
  },
14677
14677
  renderHTML({ HTMLAttributes: n }) {
14678
- return ["em", z(this.options.HTMLAttributes, n), 0];
14678
+ return ["em", H(this.options.HTMLAttributes, n), 0];
14679
14679
  },
14680
14680
  addCommands() {
14681
14681
  return {
@@ -14733,7 +14733,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
14733
14733
  ];
14734
14734
  },
14735
14735
  renderHTML({ HTMLAttributes: n }) {
14736
- return ["li", z(this.options.HTMLAttributes, n), 0];
14736
+ return ["li", H(this.options.HTMLAttributes, n), 0];
14737
14737
  },
14738
14738
  addKeyboardShortcuts() {
14739
14739
  return {
@@ -14777,7 +14777,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
14777
14777
  },
14778
14778
  renderHTML({ HTMLAttributes: n }) {
14779
14779
  const { start: e, ...t } = n;
14780
- return e === 1 ? ["ol", z(this.options.HTMLAttributes, t), 0] : ["ol", z(this.options.HTMLAttributes, n), 0];
14780
+ return e === 1 ? ["ol", H(this.options.HTMLAttributes, t), 0] : ["ol", H(this.options.HTMLAttributes, n), 0];
14781
14781
  },
14782
14782
  addCommands() {
14783
14783
  return {
@@ -14834,7 +14834,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
14834
14834
  ];
14835
14835
  },
14836
14836
  renderHTML({ HTMLAttributes: n }) {
14837
- return ["s", z(this.options.HTMLAttributes, n), 0];
14837
+ return ["s", H(this.options.HTMLAttributes, n), 0];
14838
14838
  },
14839
14839
  addCommands() {
14840
14840
  return {
@@ -15398,15 +15398,15 @@ function E0(n, e, t, r, i, o) {
15398
15398
  onClick: e[4] || (e[4] = V(() => {
15399
15399
  }, ["stop"]))
15400
15400
  }, [
15401
- t.showPicker ? (D(), H("div", T0, [
15401
+ t.showPicker ? (D(), z("div", T0, [
15402
15402
  Ve(s, {
15403
15403
  ref: "colorPicker",
15404
15404
  "model-value": i.internalColor,
15405
15405
  class: "!p-0 !shadow-none",
15406
15406
  "onUpdate:modelValue": e[0] || (e[0] = (c) => o.setColor(c))
15407
15407
  }, null, 8, ["model-value"])
15408
- ])) : (D(), H(_e, { key: 1 }, [
15409
- (D(), H(_e, null, en([
15408
+ ])) : (D(), z(_e, { key: 1 }, [
15409
+ (D(), z(_e, null, en([
15410
15410
  "auto",
15411
15411
  "#0a5cff",
15412
15412
  "#3022f1",
@@ -15438,7 +15438,7 @@ function E0(n, e, t, r, i, o) {
15438
15438
  size: "14",
15439
15439
  fill: "hsl(0, 0%, 30%)",
15440
15440
  stroke: "hsl(0, 0%, 30%)"
15441
- })) : he("", !0)
15441
+ })) : ce("", !0)
15442
15442
  ], 16, A0)), 64)),
15443
15443
  A("div", {
15444
15444
  class: "color-option-button",
@@ -15517,7 +15517,7 @@ function E0(n, e, t, r, i, o) {
15517
15517
  "data-texteditor-tooltip": n.$t("_common:color").capitalize(),
15518
15518
  class: "menu-button"
15519
15519
  }, [
15520
- (D(), H("svg", {
15520
+ (D(), z("svg", {
15521
15521
  fill: t.editor.getAttributes("textStyle").color,
15522
15522
  viewBox: "0 0 24 24",
15523
15523
  width: "20",
@@ -15586,7 +15586,7 @@ function I0(n, e, t, r, i, o) {
15586
15586
  }, "texteditor-tooltip-dropdown-item"]),
15587
15587
  onClick: e[0] || (e[0] = (a) => t.editor.chain().focus().setParagraph({ typography: "title" }).run())
15588
15588
  }, Tt(n.$t("title")), 3),
15589
- (D(), H(_e, null, en([1, 2, 3], (a) => A("div", {
15589
+ (D(), z(_e, null, en([1, 2, 3], (a) => A("div", {
15590
15590
  key: `h${a}`,
15591
15591
  class: G([{ "is-active": t.editor.isActive("heading", { level: a }) }, "texteditor-tooltip-dropdown-item"]),
15592
15592
  onClick: (c) => t.editor.chain().focus().setHeading({ level: a }).run()
@@ -15597,11 +15597,11 @@ function I0(n, e, t, r, i, o) {
15597
15597
  }, "texteditor-tooltip-dropdown-item"]),
15598
15598
  onClick: e[1] || (e[1] = (a) => t.editor.chain().focus().setParagraph({ typography: null }).run())
15599
15599
  }, Tt(n.$t("paragraph")), 3),
15600
- t.editor.commands.toggleBlockquote ? (D(), H("div", {
15600
+ t.editor.commands.toggleBlockquote ? (D(), z("div", {
15601
15601
  key: 0,
15602
15602
  class: G([{ "is-active": t.editor.isActive("blockquote") }, "texteditor-tooltip-dropdown-item"]),
15603
15603
  onClick: e[2] || (e[2] = (a) => t.editor.chain().focus().toggleBlockquote().run())
15604
- }, Tt(n.$t("blockquote")), 3)) : he("", !0)
15604
+ }, Tt(n.$t("blockquote")), 3)) : ce("", !0)
15605
15605
  ], 8, D0)
15606
15606
  ]),
15607
15607
  default: De(() => [
@@ -15708,7 +15708,7 @@ function K0(n, e, t, r, i, o) {
15708
15708
  }
15709
15709
  ], "menu"])
15710
15710
  }, [
15711
- i.linkMenuIsActive ? ji((D(), H("form", {
15711
+ i.linkMenuIsActive ? ji((D(), z("form", {
15712
15712
  key: 0,
15713
15713
  class: "menu-form",
15714
15714
  onSubmit: e[3] || (e[3] = V((u) => o.setLink(i.linkUrl), ["prevent"]))
@@ -15734,9 +15734,9 @@ function K0(n, e, t, r, i, o) {
15734
15734
  ], 32)
15735
15735
  ], 32)), [
15736
15736
  [d, () => i.linkMenuIsActive = !1]
15737
- ]) : (D(), H("div", z0, [
15737
+ ]) : (D(), z("div", z0, [
15738
15738
  Ve(l, { editor: t.editor }, null, 8, ["editor"]),
15739
- t.editor.commands.toggleBold ? (D(), H("button", {
15739
+ t.editor.commands.toggleBold ? (D(), z("button", {
15740
15740
  key: 0,
15741
15741
  "data-texteditor-tooltip": n.$t("bold"),
15742
15742
  class: G([{ "is-active": t.editor.isActive("bold") }, "menu-button"]),
@@ -15753,8 +15753,8 @@ function K0(n, e, t, r, i, o) {
15753
15753
  }, [
15754
15754
  A("path", { d: "M 14 5 A 4.0004 4.0004 0 0 0 10 9 L 10 39 A 4.0004 4.0004 0 0 0 14 43 L 29 43 C 35.580064 43 41 37.580064 41 31 C 41 27.155249 39.030751 23.864926 36.179688 21.662109 C 37.230561 19.978585 38 18.110372 38 16 C 38 9.972248 33.027752 5 27 5 L 14 5 z M 18 13 L 27 13 C 28.704248 13 30 14.295752 30 16 C 30 17.704248 28.704248 19 27 19 L 18 19 L 18 13 z M 18 27 L 27 27 L 29 27 C 31.255936 27 33 28.744064 33 31 C 33 33.255936 31.255936 35 29 35 L 18 35 L 18 27 z" })
15755
15755
  ], -1)
15756
- ]), 42, H0)) : he("", !0),
15757
- t.editor.commands.toggleItalic ? (D(), H("button", {
15756
+ ]), 42, H0)) : ce("", !0),
15757
+ t.editor.commands.toggleItalic ? (D(), z("button", {
15758
15758
  key: 1,
15759
15759
  "data-texteditor-tooltip": n.$t("italic"),
15760
15760
  class: G([{ "is-active": t.editor.isActive("italic") }, "menu-button"]),
@@ -15766,7 +15766,7 @@ function K0(n, e, t, r, i, o) {
15766
15766
  type: "editorItalic",
15767
15767
  size: "20"
15768
15768
  })
15769
- ], 42, $0)) : he("", !0),
15769
+ ], 42, $0)) : ce("", !0),
15770
15770
  A("button", {
15771
15771
  "data-texteditor-tooltip": n.$t("underline"),
15772
15772
  class: G([{ "is-active": t.editor.isActive("underline") }, "menu-button"]),
@@ -15802,7 +15802,7 @@ function K0(n, e, t, r, i, o) {
15802
15802
  ], -1)
15803
15803
  ]), 42, V0),
15804
15804
  e[28] || (e[28] = A("div", { class: "menu-divider" }, null, -1)),
15805
- t.editor.commands.toggleHighlight ? (D(), H("button", {
15805
+ t.editor.commands.toggleHighlight ? (D(), z("button", {
15806
15806
  key: 2,
15807
15807
  class: G([{ "is-active": t.editor.isActive("highlight") }, "menu-button"]),
15808
15808
  "data-texteditor-tooltip": n.$t("highlight"),
@@ -15819,15 +15819,15 @@ function K0(n, e, t, r, i, o) {
15819
15819
  }, [
15820
15820
  A("path", { d: "M 7.4765625 4.9785156 A 1.50015 1.50015 0 0 0 6 6.5 L 6 15.5 C 6 17.790682 7.7748091 19.635632 10 19.898438 L 10 24.5 C 10 26.967501 12.032499 29 14.5 29 L 15 29 L 15 43.5 C 15 44.013 15.261359 44.489625 15.693359 44.765625 C 15.938359 44.920625 16.219 45 16.5 45 C 16.716 45 16.933766 44.953375 17.134766 44.859375 L 30.402344 38.667969 C 31.980344 37.932969 33 36.330844 33 34.589844 L 33 29 L 33.5 29 C 35.967501 29 38 26.967501 38 24.5 L 38 19.898438 C 40.225191 19.635632 42 17.790682 42 15.5 L 42 6.5 A 1.50015 1.50015 0 1 0 39 6.5 L 39 15.5 C 39 16.346499 38.346499 17 37.5 17 L 36.746094 17 A 1.50015 1.50015 0 0 0 36.259766 17 L 11.746094 17 A 1.50015 1.50015 0 0 0 11.259766 17 L 10.5 17 C 9.6535009 17 9 16.346499 9 15.5 L 9 6.5 A 1.50015 1.50015 0 0 0 7.4765625 4.9785156 z M 13 20 L 35 20 L 35 24.5 C 35 25.346499 34.346499 26 33.5 26 L 14.5 26 C 13.653501 26 13 25.346499 13 24.5 L 13 20 z" })
15821
15821
  ], -1)
15822
- ]), 42, _0)) : he("", !0),
15822
+ ]), 42, _0)) : ce("", !0),
15823
15823
  t.editor.commands.setColor ? (D(), we(a, {
15824
15824
  key: 3,
15825
15825
  "show-picker": i.showColorPicker,
15826
15826
  "onUpdate:showPicker": e[14] || (e[14] = (u) => i.showColorPicker = u),
15827
15827
  editor: t.editor
15828
- }, null, 8, ["show-picker", "editor"])) : he("", !0),
15828
+ }, null, 8, ["show-picker", "editor"])) : ce("", !0),
15829
15829
  e[29] || (e[29] = A("div", { class: "menu-divider" }, null, -1)),
15830
- t.editor.commands.setTextAlign ? (D(), H(_e, { key: 4 }, [
15830
+ t.editor.commands.setTextAlign ? (D(), z(_e, { key: 4 }, [
15831
15831
  A("button", {
15832
15832
  class: G([{ "is-active": o.textAlignActive("left") }, "menu-button"]),
15833
15833
  "data-texteditor-tooltip": n.$t("_common:align", { thing: n.$t("_common:left") }),
@@ -15879,7 +15879,7 @@ function K0(n, e, t, r, i, o) {
15879
15879
  A("path", { d: "M 14 9 A 2.0002 2.0002 0 1 0 14 13 L 42 13 A 2.0002 2.0002 0 1 0 42 9 L 14 9 z M 6 22 A 2.0002 2.0002 0 1 0 6 26 L 42 26 A 2.0002 2.0002 0 1 0 42 22 L 6 22 z M 22 35 A 2.0002 2.0002 0 1 0 22 39 L 42 39 A 2.0002 2.0002 0 1 0 42 35 L 22 35 z" })
15880
15880
  ], -1)
15881
15881
  ]), 42, q0)
15882
- ], 64)) : he("", !0)
15882
+ ], 64)) : ce("", !0)
15883
15883
  ]))
15884
15884
  ], 2)
15885
15885
  ]),
@@ -15890,7 +15890,7 @@ const U0 = /* @__PURE__ */ kt(B0, [["render", K0], ["__scopeId", "data-v-e14ee88
15890
15890
  components: {
15891
15891
  FormInputRow: Id,
15892
15892
  TextTemplates: sa(
15893
- () => import("./index-BHg-4y6B.js")
15893
+ () => import("./index-DI9iTlQc.js")
15894
15894
  )
15895
15895
  },
15896
15896
  emits: ["upload-image"],
@@ -16233,15 +16233,15 @@ function Q0(n, e, t, r, i, o) {
16233
16233
  mode: "out-in"
16234
16234
  }, {
16235
16235
  default: De(() => [
16236
- o.shouldShow ? (D(), H("div", {
16236
+ o.shouldShow ? (D(), z("div", {
16237
16237
  key: o.menuActions[0].tooltip,
16238
16238
  class: "menu"
16239
16239
  }, [
16240
- (D(!0), H(_e, null, en(o.menuActions, (u, h) => (D(), H(_e, { key: h }, [
16241
- u.type === "divider" && !u.hide ? (D(), H("div", {
16240
+ (D(!0), z(_e, null, en(o.menuActions, (u, h) => (D(), z(_e, { key: h }, [
16241
+ u.type === "divider" && !u.hide ? (D(), z("div", {
16242
16242
  key: "divider-" + h,
16243
16243
  class: "menu-divider"
16244
- })) : u.hide ? he("", !0) : ji((D(), H("div", {
16244
+ })) : u.hide ? ce("", !0) : ji((D(), z("div", {
16245
16245
  key: h,
16246
16246
  "data-texteditor-tooltip": u.tooltip,
16247
16247
  class: G([{
@@ -16256,13 +16256,13 @@ function Q0(n, e, t, r, i, o) {
16256
16256
  type: u.icon || "info",
16257
16257
  size: "22"
16258
16258
  }, null, 8, ["type"]),
16259
- u.popup && i.popupOpen ? (D(), H("div", Y0, [
16260
- (D(!0), H(_e, null, en(u.popup(), (f, p) => (D(), we(l, {
16259
+ u.popup && i.popupOpen ? (D(), z("div", Y0, [
16260
+ (D(!0), z(_e, null, en(u.popup(), (f, p) => (D(), we(l, {
16261
16261
  key: p,
16262
16262
  label: f.label,
16263
16263
  inputs: f.inputs
16264
16264
  }, null, 8, ["label", "inputs"]))), 128))
16265
- ])) : he("", !0)
16265
+ ])) : ce("", !0)
16266
16266
  ], 42, G0)), [
16267
16267
  [
16268
16268
  d,
@@ -16293,7 +16293,7 @@ function Q0(n, e, t, r, i, o) {
16293
16293
  ], 8, X0)
16294
16294
  ]),
16295
16295
  _: 1
16296
- }, 8, ["onSelect"])) : he("", !0),
16296
+ }, 8, ["onSelect"])) : ce("", !0),
16297
16297
  A("input", {
16298
16298
  ref: "inputImgUpload",
16299
16299
  type: "file",
@@ -16302,7 +16302,7 @@ function Q0(n, e, t, r, i, o) {
16302
16302
  n.$emit("upload-image", { file: u }), i.popupOpen = !1;
16303
16303
  })
16304
16304
  }, null, 544)
16305
- ])) : he("", !0)
16305
+ ])) : ce("", !0)
16306
16306
  ]),
16307
16307
  _: 1
16308
16308
  })
@@ -16450,7 +16450,7 @@ const ny = new K("mention"), ry = Q.create({
16450
16450
  var t;
16451
16451
  return [
16452
16452
  "span",
16453
- z(this.HTMLAttributes, n.HTMLAttributes),
16453
+ H(this.HTMLAttributes, n.HTMLAttributes),
16454
16454
  `${n.suggestion.char}${(t = e.attrs.label) !== null && t !== void 0 ? t : e.attrs.id}`
16455
16455
  ];
16456
16456
  },
@@ -16511,21 +16511,21 @@ const ny = new K("mention"), ry = Q.create({
16511
16511
  if (this.options.renderLabel !== void 0)
16512
16512
  return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
16513
16513
  "span",
16514
- z({ "data-type": this.name }, this.options.HTMLAttributes, e),
16514
+ H({ "data-type": this.name }, this.options.HTMLAttributes, e),
16515
16515
  this.options.renderLabel({
16516
16516
  options: this.options,
16517
16517
  node: n
16518
16518
  })
16519
16519
  ];
16520
16520
  const t = { ...this.options };
16521
- t.HTMLAttributes = z({ "data-type": this.name }, this.options.HTMLAttributes, e);
16521
+ t.HTMLAttributes = H({ "data-type": this.name }, this.options.HTMLAttributes, e);
16522
16522
  const r = this.options.renderHTML({
16523
16523
  options: t,
16524
16524
  node: n
16525
16525
  });
16526
16526
  return typeof r == "string" ? [
16527
16527
  "span",
16528
- z({ "data-type": this.name }, this.options.HTMLAttributes, e),
16528
+ H({ "data-type": this.name }, this.options.HTMLAttributes, e),
16529
16529
  r
16530
16530
  ] : r;
16531
16531
  },
@@ -16622,11 +16622,11 @@ const ny = new K("mention"), ry = Q.create({
16622
16622
  class: "px-4 py-2 opacity-50"
16623
16623
  };
16624
16624
  function dy(n, e, t, r, i, o) {
16625
- return D(), H("div", oy, [
16626
- t.items.length ? (D(), H(_e, { key: 0 }, [
16625
+ return D(), z("div", oy, [
16626
+ t.items.length ? (D(), z(_e, { key: 0 }, [
16627
16627
  A("div", sy, Tt(n.$t("referenceTooltipTitle")), 1),
16628
16628
  A("div", ly, [
16629
- (D(!0), H(_e, null, en(t.items, (s, l) => (D(), H("div", {
16629
+ (D(!0), z(_e, null, en(t.items, (s, l) => (D(), z("div", {
16630
16630
  ref_for: !0,
16631
16631
  ref: "mentions",
16632
16632
  key: s.id + l,
@@ -16639,7 +16639,7 @@ function dy(n, e, t, r, i, o) {
16639
16639
  onClick: (a) => o.selectItem(s)
16640
16640
  }, Tt(s.label), 43, ay))), 128))
16641
16641
  ])
16642
- ], 64)) : (D(), H("div", cy, Tt(n.$t("_common:noResults")), 1))
16642
+ ], 64)) : (D(), z("div", cy, Tt(n.$t("_common:noResults")), 1))
16643
16643
  ]);
16644
16644
  }
16645
16645
  const uy = /* @__PURE__ */ kt(iy, [["render", dy]]), Hl = "mention", $l = (n, e) => (e || []).filter(
@@ -16808,7 +16808,7 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
16808
16808
  ];
16809
16809
  },
16810
16810
  renderHTML({ HTMLAttributes: n }) {
16811
- return ["img", z(this.options.HTMLAttributes, n)];
16811
+ return ["img", H(this.options.HTMLAttributes, n)];
16812
16812
  },
16813
16813
  addCommands() {
16814
16814
  return {
@@ -16839,6 +16839,8 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
16839
16839
  // https://tiptap.dev/guide/node-views/vue#all-available-props
16840
16840
  data() {
16841
16841
  return {
16842
+ hasError: !1,
16843
+ // Handle image load errors
16842
16844
  displayOptions: [
16843
16845
  {
16844
16846
  value: "left",
@@ -16890,7 +16892,7 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
16890
16892
  async openPreview() {
16891
16893
  var t;
16892
16894
  const n = sa(
16893
- () => import("./FilePreviewModal-CXE7RahY.js")
16895
+ () => import("./FilePreviewModal-egIS6jnw.js")
16894
16896
  ), { title: e } = ((t = this.node) == null ? void 0 : t.attrs) || {};
16895
16897
  this.$modal.show(
16896
16898
  n,
@@ -16908,10 +16910,13 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
16908
16910
  transition: ""
16909
16911
  }
16910
16912
  );
16913
+ },
16914
+ onError() {
16915
+ this.hasError = !0;
16911
16916
  }
16912
16917
  }
16913
16918
  }, yy = ["src"], by = {
16914
- key: 0,
16919
+ key: 1,
16915
16920
  class: "image-menu top-2 rounded-md bg-gray-800"
16916
16921
  }, ky = ["innerHTML"];
16917
16922
  function xy(n, e, t, r, i, o) {
@@ -16929,14 +16934,16 @@ function xy(n, e, t, r, i, o) {
16929
16934
  "data-drag-handle": ""
16930
16935
  }, {
16931
16936
  default: De(() => [
16932
- A("img", {
16937
+ i.hasError ? ce("", !0) : (D(), z("img", {
16938
+ key: 0,
16933
16939
  src: o.src,
16934
16940
  class: G({ selected: o.isSelected }),
16935
16941
  style: Rd(o.style),
16936
- onClick: e[0] || (e[0] = (...c) => o.selectImage && o.selectImage(...c))
16937
- }, null, 14, yy),
16938
- o.isSelected ? (D(), H("div", by, [
16939
- (D(!0), H(_e, null, en(i.displayOptions, (c, d) => (D(), we(s, {
16942
+ onClick: e[0] || (e[0] = (...c) => o.selectImage && o.selectImage(...c)),
16943
+ onError: e[1] || (e[1] = (...c) => o.onError && o.onError(...c))
16944
+ }, null, 46, yy)),
16945
+ o.isSelected ? (D(), z("div", by, [
16946
+ (D(!0), z(_e, null, en(i.displayOptions, (c, d) => (D(), we(s, {
16940
16947
  key: d,
16941
16948
  class: G({ "!text-primary-300": o.display === c.value }),
16942
16949
  "data-texteditor-tooltip": c.tooltip,
@@ -16945,7 +16952,7 @@ function xy(n, e, t, r, i, o) {
16945
16952
  onClick: (u) => o.changeDisplay(c.value)
16946
16953
  }, {
16947
16954
  default: De(() => [
16948
- (D(), H("svg", {
16955
+ (D(), z("svg", {
16949
16956
  viewBox: "0 0 24 24",
16950
16957
  width: "21",
16951
16958
  height: "21",
@@ -16959,7 +16966,7 @@ function xy(n, e, t, r, i, o) {
16959
16966
  ]),
16960
16967
  _: 2
16961
16968
  }, 1032, ["class", "data-texteditor-tooltip", "onClick"]))), 128)),
16962
- e[1] || (e[1] = A("div", {
16969
+ e[2] || (e[2] = A("div", {
16963
16970
  class: "bg-gray-500",
16964
16971
  style: { width: "1px", height: "1.5em", margin: "0 2px" }
16965
16972
  }, null, -1)),
@@ -16977,15 +16984,17 @@ function xy(n, e, t, r, i, o) {
16977
16984
  ]),
16978
16985
  _: 1
16979
16986
  }, 8, ["data-texteditor-tooltip", "onClick"])
16980
- ])) : he("", !0)
16987
+ ])) : ce("", !0)
16981
16988
  ]),
16982
16989
  _: 1
16983
16990
  }, 8, ["class"]);
16984
16991
  }
16985
- const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-2d13a056"]]), Cy = (n, e = !1) => my.extend({
16992
+ const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-7f9e7fe8"]]), Cy = (n, e = !1) => my.extend({
16986
16993
  addOptions() {
16987
16994
  return {
16988
16995
  inline: !0,
16996
+ allowBase64: !0,
16997
+ // Allows base64/data URIs as src, cleaned up in backend
16989
16998
  HTMLAttributes: {},
16990
16999
  resolveImgSrc: (t) => Dd(
16991
17000
  t,
@@ -17015,6 +17024,16 @@ const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-2d13a05
17015
17024
  default: "",
17016
17025
  parseHTML: (t) => t.getAttribute("style"),
17017
17026
  renderHTML: (t) => ({ style: t.style })
17027
+ },
17028
+ hash: {
17029
+ default: null,
17030
+ parseHTML: (t) => t.getAttribute("data-hash"),
17031
+ renderHTML: (t) => ({ "data-hash": t.hash })
17032
+ },
17033
+ algorithm: {
17034
+ default: null,
17035
+ parseHTML: (t) => t.getAttribute("data-alg"),
17036
+ renderHTML: (t) => ({ "data-alg": t.algorithm })
17018
17037
  }
17019
17038
  };
17020
17039
  },
@@ -17033,11 +17052,13 @@ const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-2d13a05
17033
17052
  r.preventDefault();
17034
17053
  const { schema: s } = t.state, l = o.getAsFile();
17035
17054
  if (n)
17036
- n(l).then((a) => {
17037
- const c = s.nodes.image.create({
17038
- src: a
17039
- }), d = t.state.tr.replaceSelectionWith(c);
17040
- t.dispatch(d);
17055
+ n(l).then(({ url: a, hash: c, algorithm: d }) => {
17056
+ const u = s.nodes.image.create({
17057
+ src: a,
17058
+ hash: c,
17059
+ algorithm: d
17060
+ }), h = t.state.tr.replaceSelectionWith(u);
17061
+ t.dispatch(h);
17041
17062
  });
17042
17063
  else {
17043
17064
  const a = new FileReader();
@@ -17066,13 +17087,15 @@ const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-2d13a05
17066
17087
  o.forEach(async (a) => {
17067
17088
  const c = new FileReader();
17068
17089
  if (n) {
17069
- const d = s.nodes.image.create({
17070
- src: await n(a)
17071
- }), u = t.state.tr.insert(
17090
+ const { url: d, hash: u, algorithm: h } = await n(a), f = s.nodes.image.create({
17091
+ src: d,
17092
+ hash: u,
17093
+ algorithm: h
17094
+ }), p = t.state.tr.insert(
17072
17095
  l.pos,
17073
- d
17096
+ f
17074
17097
  );
17075
- t.dispatch(u);
17098
+ t.dispatch(p);
17076
17099
  } else
17077
17100
  c.onload = (d) => {
17078
17101
  const u = s.nodes.image.create({
@@ -17296,7 +17319,7 @@ function Ty(n) {
17296
17319
  e.push(0);
17297
17320
  return e;
17298
17321
  }
17299
- function de(n) {
17322
+ function ue(n) {
17300
17323
  let e = n.cached.tableNodeTypes;
17301
17324
  if (!e) {
17302
17325
  e = n.cached.tableNodeTypes = {};
@@ -17379,7 +17402,7 @@ function ud(n, e, t = 1) {
17379
17402
  return r;
17380
17403
  }
17381
17404
  function Ny(n, e, t) {
17382
- const r = de(e.type.schema).header_cell;
17405
+ const r = ue(e.type.schema).header_cell;
17383
17406
  for (let i = 0; i < n.height; i++)
17384
17407
  if (e.nodeAt(n.map[t + i * n.width]).type != r)
17385
17408
  return !1;
@@ -17693,7 +17716,7 @@ function zy(n, e, t, r) {
17693
17716
  d.firstChild && (f = d.firstChild.type.spec.tableRole);
17694
17717
  const p = [];
17695
17718
  for (let g = 0; g < h; g++) {
17696
- const y = de(n.schema)[f].createAndFill();
17719
+ const y = ue(n.schema)[f].createAndFill();
17697
17720
  y && p.push(y);
17698
17721
  }
17699
17722
  const m = (a == 0 || s == a - 1) && l == a ? c + 1 : u - 1;
@@ -17723,7 +17746,7 @@ function md(n, { map: e, tableStart: t, table: r }, i) {
17723
17746
  ud(c.attrs, i - e.colCount(a))
17724
17747
  ), s += c.attrs.rowspan - 1;
17725
17748
  } else {
17726
- const a = o == null ? de(r.type.schema).cell : r.nodeAt(e.map[l + o]).type, c = e.positionAt(s, i, r);
17749
+ const a = o == null ? ue(r.type.schema).cell : r.nodeAt(e.map[l + o]).type, c = e.positionAt(s, i, r);
17727
17750
  n.insert(n.mapping.map(t + c), a.createAndFill());
17728
17751
  }
17729
17752
  }
@@ -17783,7 +17806,7 @@ function Vy(n, e) {
17783
17806
  }
17784
17807
  function _y(n, e, t) {
17785
17808
  var r;
17786
- const i = de(e.type.schema).header_cell;
17809
+ const i = ue(e.type.schema).header_cell;
17787
17810
  for (let o = 0; o < n.width; o++)
17788
17811
  if (((r = e.nodeAt(n.map[o + t * n.width])) == null ? void 0 : r.type) != i)
17789
17812
  return !1;
@@ -17805,10 +17828,10 @@ function gd(n, { map: e, tableStart: t, table: r }, i) {
17805
17828
  rowspan: h.rowspan + 1
17806
17829
  }), c += h.colspan - 1;
17807
17830
  } else {
17808
- const u = a == null ? de(r.type.schema).cell : (o = r.nodeAt(e.map[d + a * e.width])) == null ? void 0 : o.type, h = u == null ? void 0 : u.createAndFill();
17831
+ const u = a == null ? ue(r.type.schema).cell : (o = r.nodeAt(e.map[d + a * e.width])) == null ? void 0 : o.type, h = u == null ? void 0 : u.createAndFill();
17809
17832
  h && l.push(h);
17810
17833
  }
17811
- return n.insert(s, de(r.type.schema).row.create(null, l)), n;
17834
+ return n.insert(s, ue(r.type.schema).row.create(null, l)), n;
17812
17835
  }
17813
17836
  function Wy(n, e) {
17814
17837
  if (!Ie(n))
@@ -17931,7 +17954,7 @@ function Vl(n, e) {
17931
17954
  return !0;
17932
17955
  }
17933
17956
  function _l(n, e) {
17934
- const t = de(n.schema);
17957
+ const t = ue(n.schema);
17935
17958
  return Jy(({ node: r }) => t[r.type.spec.tableRole])(n, e);
17936
17959
  }
17937
17960
  function Jy(n) {
@@ -18013,7 +18036,7 @@ function Yy(n) {
18013
18036
  if (!Ie(e))
18014
18037
  return !1;
18015
18038
  if (t) {
18016
- const r = de(e.schema), i = qe(e), o = e.tr, s = i.map.cellsInRect(
18039
+ const r = ue(e.schema), i = qe(e), o = e.tr, s = i.map.cellsInRect(
18017
18040
  n == "column" ? {
18018
18041
  left: i.left,
18019
18042
  top: 0,
@@ -18063,7 +18086,7 @@ function Rn(n, e) {
18063
18086
  if (!Ie(t))
18064
18087
  return !1;
18065
18088
  if (r) {
18066
- const i = de(t.schema), o = qe(t), s = t.tr, l = Wl("row", o, i), a = Wl(
18089
+ const i = ue(t.schema), o = qe(t), s = t.tr, l = Wl("row", o, i), a = Wl(
18067
18090
  "column",
18068
18091
  o,
18069
18092
  i
@@ -18149,7 +18172,7 @@ function qn(n, e) {
18149
18172
  if (!(t instanceof F))
18150
18173
  return !1;
18151
18174
  if (e) {
18152
- const r = n.tr, i = de(n.schema).cell.createAndFill().content;
18175
+ const r = n.tr, i = ue(n.schema).cell.createAndFill().content;
18153
18176
  t.forEachCell((o, s) => {
18154
18177
  o.content.eq(i) || r.replace(
18155
18178
  r.mapping.map(s + 1),
@@ -18172,14 +18195,14 @@ function e1(n) {
18172
18195
  let c = e.child(a).content;
18173
18196
  const d = a ? 0 : Math.max(0, t - 1), u = a < e.childCount - 1 ? 0 : Math.max(0, r - 1);
18174
18197
  (d || u) && (c = wo(
18175
- de(s).row,
18198
+ ue(s).row,
18176
18199
  new w(c, d, u)
18177
18200
  ).content), l.push(c);
18178
18201
  }
18179
18202
  else if (o == "cell" || o == "header_cell")
18180
18203
  l.push(
18181
18204
  t || r ? wo(
18182
- de(s).row,
18205
+ ue(s).row,
18183
18206
  new w(e, t, r)
18184
18207
  ).content : e
18185
18208
  );
@@ -18202,7 +18225,7 @@ function t1(n, e) {
18202
18225
  r = Math.max(r, t[i]);
18203
18226
  for (let i = 0; i < t.length; i++)
18204
18227
  if (i >= e.length && e.push(b.empty), t[i] < r) {
18205
- const o = de(n).cell.createAndFill(), s = [];
18228
+ const o = ue(n).cell.createAndFill(), s = [];
18206
18229
  for (let l = t[i]; l < r; l++)
18207
18230
  s.push(o);
18208
18231
  e[i] = e[i].append(b.from(s));
@@ -18256,7 +18279,7 @@ function n1({ width: n, height: e, rows: t }, r, i) {
18256
18279
  return { width: n, height: e, rows: t };
18257
18280
  }
18258
18281
  function r1(n, e, t, r, i, o, s) {
18259
- const l = n.doc.type.schema, a = de(l);
18282
+ const l = n.doc.type.schema, a = ue(l);
18260
18283
  let c, d;
18261
18284
  if (i > e.width)
18262
18285
  for (let u = 0, h = 0; u < e.height; u++) {
@@ -18445,7 +18468,7 @@ function s1(n, e, t) {
18445
18468
  height: 1,
18446
18469
  rows: [
18447
18470
  b.from(
18448
- wo(de(n.state.schema).cell, t)
18471
+ wo(ue(n.state.schema).cell, t)
18449
18472
  )
18450
18473
  ]
18451
18474
  });
@@ -18592,7 +18615,7 @@ function c1({
18592
18615
  state: {
18593
18616
  init(s, l) {
18594
18617
  var a, c;
18595
- const d = (c = (a = o.spec) == null ? void 0 : a.props) == null ? void 0 : c.nodeViews, u = de(l.schema).table.name;
18618
+ const d = (c = (a = o.spec) == null ? void 0 : a.props) == null ? void 0 : c.nodeViews, u = ue(l.schema).table.name;
18596
18619
  return r && d && (d[u] = (h, f) => new r(h, t, f)), new d1(-1, !1);
18597
18620
  },
18598
18621
  apply(s, l) {
@@ -18972,7 +18995,7 @@ const Jn = ({ editor: n }) => {
18972
18995
  const { colgroup: t, tableWidth: r, tableMinWidth: i } = w1(n, this.options.cellMinWidth);
18973
18996
  return [
18974
18997
  "table",
18975
- z(this.options.HTMLAttributes, e, {
18998
+ H(this.options.HTMLAttributes, e, {
18976
18999
  style: r ? `width: ${r}` : `min-width: ${i}`
18977
19000
  }),
18978
19001
  t,
@@ -19174,8 +19197,8 @@ const E1 = X.create({
19174
19197
  }), ta = async (n) => {
19175
19198
  const e = new FormData();
19176
19199
  e.append("file", n, n.name);
19177
- const { data: t } = await Ld("/file", e, { timeout: 6e4 });
19178
- return t.url;
19200
+ const { data: t } = await Ld("/file", e, { timeout: 6e4 }), { url: r, hash: i, algorithm: o } = t;
19201
+ return { url: r, hash: i, algorithm: o };
19179
19202
  }, O1 = td.extend({
19180
19203
  addAttributes() {
19181
19204
  return {
@@ -19411,8 +19434,8 @@ const E1 = X.create({
19411
19434
  this.editor && this.editor.isEditable && this.editor.commands.focus("end");
19412
19435
  },
19413
19436
  async onUploadImage({ file: n }) {
19414
- const e = n.target.files[0], t = await ta(e);
19415
- this.editor && this.editor.chain().focus().setImage({ src: t }).run();
19437
+ const e = n.target.files[0], { url: t, hash: r, algorithm: i } = await ta(e);
19438
+ this.editor && this.editor.chain().focus().setImage({ src: t, hash: r, algorithm: i }).run();
19416
19439
  },
19417
19440
  // TODO: Could ideally be moved to tiptap extension
19418
19441
  // TODO: Handling create/destroy of tippy instances etc
@@ -19476,7 +19499,7 @@ const E1 = X.create({
19476
19499
  };
19477
19500
  function R1(n, e, t, r, i, o) {
19478
19501
  const s = Z("BubbleMenu"), l = Z("EditorContent"), a = Z("EditorFixedMenu");
19479
- return i.editor ? (D(), H("div", {
19502
+ return i.editor ? (D(), z("div", {
19480
19503
  key: 0,
19481
19504
  class: G([
19482
19505
  {
@@ -19491,7 +19514,7 @@ function R1(n, e, t, r, i, o) {
19491
19514
  editor: i.editor,
19492
19515
  "is-focused": i.isFocused,
19493
19516
  extensions: o.enabledExtensions
19494
- }, null, 8, ["editor", "is-focused", "extensions"])) : he("", !0),
19517
+ }, null, 8, ["editor", "is-focused", "extensions"])) : ce("", !0),
19495
19518
  hs(n.$slots, "label"),
19496
19519
  Ve(l, {
19497
19520
  editor: i.editor,
@@ -19520,8 +19543,8 @@ function R1(n, e, t, r, i, o) {
19520
19543
  "is-focused": i.isFocused,
19521
19544
  extensions: o.enabledExtensions,
19522
19545
  onUploadImage: o.onUploadImage
19523
- }, null, 8, ["editor", "is-focused", "extensions", "onUploadImage"])) : he("", !0)
19524
- ], 2)) : he("", !0);
19546
+ }, null, 8, ["editor", "is-focused", "extensions", "onUploadImage"])) : ce("", !0)
19547
+ ], 2)) : ce("", !0);
19525
19548
  }
19526
19549
  const D1 = /* @__PURE__ */ kt(N1, [["render", R1]]), L1 = {
19527
19550
  name: "TextEditor",