@templatical/editor 0.45.0 → 0.46.0

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 (140) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-DGcH4Lyo.js} +1 -1
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-B4q-0g1S.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-DwxJOTzH.js → BlockPreviewCanvas-DIZ0KgUD.js} +3 -3
  4. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-ehMYJP68.js} +1 -1
  5. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-BwOaAlKz.js} +2 -2
  6. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-qOZFRNPx.js} +1 -1
  7. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-BeF21SeB.js} +4 -4
  8. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-zH93uB15.js} +1 -1
  9. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-Dltw9haP.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-CHa-UD76.js} +12 -12
  11. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-B3ntd4dN.js} +1 -1
  12. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-C_06ZL0Q.js} +1 -1
  13. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CxuW3TV0.js} +6 -6
  14. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B1n37M1Z.js} +1 -1
  15. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-CP_uULWB.js} +2 -2
  16. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-BSKX_7_v.js} +5 -5
  17. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-CHKrH1gO.js} +4 -4
  18. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-B-xDqBcz.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-D2J-g82g.js} +1 -1
  20. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-D07K_Y4m.js} +4 -4
  21. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BNPw_lID.js} +5 -5
  22. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-8klWo8hE.js} +1 -1
  23. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CmC9OuhA.js} +4 -4
  24. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-COeyWGfT.js} +1 -1
  25. package/dist/{Toolbar-CLpA36RO.js → Toolbar-CqhRb6EM.js} +36 -36
  26. package/dist/{TplModal-D6XtxusQ.js → TplModal-BGFawHY9.js} +1 -1
  27. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DdbGjEOR.js} +1 -1
  28. package/dist/{WrapperBlock-CzJa2Mxw.js → WrapperBlock-CTkmA887.js} +1 -1
  29. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-CVKo6V_v.js} +1 -1
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-kCK4NZM9.js} +2 -2
  32. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-K1dLeDft.js} +2 -2
  34. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js → BlockPreviewCanvas-Djz9YAFx.js} +4 -4
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-5ONQ1RCa.js} +2 -2
  38. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-_irSdWbi.js} +3 -3
  40. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  41. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-CZufI1On.js} +2 -2
  42. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  43. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-BaXCefQM.js} +5 -5
  44. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-BaXCefQM.js.map} +1 -1
  45. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-GjkpHylX.js} +2 -2
  46. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  47. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-C1Lv2y_O.js} +2 -2
  48. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  49. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BYjdrDnQ.js} +4 -4
  50. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Cx67J_vg.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-DZ4EuXVp.js} +2 -2
  54. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-DndEFXmR.js} +7 -7
  56. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js.map → ParagraphEditor-DndEFXmR.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-CFYs13a4.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-DKkDQ0dc.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BOA2RaC_.js} +6 -6
  62. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-DQDVek3K.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-Lu3tJ3QA.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-D7MtqG6r.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-rZiHmq24.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js.map → TemplateSettings-rZiHmq24.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DWEyHXH2.js} +6 -6
  72. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-XXMD-Lnr.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-D1F0YoE-.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  77. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-B5U9cqhi.js} +2 -2
  78. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  79. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-C_5HfUQq.js} +55 -55
  80. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js.map → Toolbar-C_5HfUQq.js.map} +1 -1
  81. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-CYBbPCHL.js} +2 -2
  82. package/dist/cdn/chunks/{TplModal-OOT36AjS.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  83. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-Dq12VsTX.js} +2 -2
  84. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  85. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js → WrapperBlock-CJ0CLqi2.js} +2 -2
  86. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-h1vaHp2p.js} +2 -2
  88. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-h1vaHp2p.js.map} +1 -1
  89. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-bJN9EM1H.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  91. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-CrmXF4MW.js} +6 -6
  92. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  93. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  94. package/dist/cdn/chunks/{preRenderCustomBlocks-CFwa7nP9.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  95. package/dist/cdn/chunks/{socialIcons-CsYnPPll.js → socialIcons-ClJVDZwt.js} +82 -101
  96. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  97. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-B0pZeTYO.js} +200 -183
  98. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  99. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-BMw3u-iV.js} +213 -215
  100. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  101. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-Bh0MoJ67.js} +280 -187
  102. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  103. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-DuC7kVti.js} +323 -319
  104. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  105. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-B3uV3XHG.js} +2 -2
  106. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  107. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-DJLM-7WQ.js} +2 -2
  108. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  109. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-CpmB5KxW.js} +2 -3
  110. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  111. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  112. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  113. package/dist/cdn/editor.css +1 -1
  114. package/dist/cdn/editor.js +435 -417
  115. package/dist/cdn/editor.js.map +1 -1
  116. package/dist/{cloud-CVfwPu19.js → cloud-DPGjMGfv.js} +1 -1
  117. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-D0RRgWab.js} +2 -2
  118. package/dist/{dist-CSaWqmWM.js → dist-BI_LeQGl.js} +271 -200
  119. package/dist/{extensions-B65sfZRk.js → extensions-CYigjb1g.js} +13 -13
  120. package/dist/index.d.ts +34 -12
  121. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  122. package/dist/{socialIcons-CvAixjj8.js → socialIcons-Ct_IoqPQ.js} +107 -126
  123. package/dist/style.css +1 -1
  124. package/dist/templatical-editor.js +456 -438
  125. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BJAQMvNW.js} +482 -478
  126. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-B5gjcMzn.js} +1 -1
  127. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-BwsBIDzR.js} +3 -3
  128. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-JRxhT1u_.js} +1 -2
  129. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  130. package/package.json +8 -8
  131. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  132. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  133. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  134. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  135. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  136. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  137. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  138. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  139. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  140. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,8 +1,8 @@
1
- import { G as e, V as t, q as n } from "./dist-CSaWqmWM.js";
1
+ import { ct as e, ht as t, nt as n } from "./src-Bh0MoJ67.js";
2
2
  //#region src/utils/preRenderCustomBlocks.ts
3
3
  async function r(r, i) {
4
4
  let a = async (r) => {
5
- if (t(r)) {
5
+ if (n(r)) {
6
6
  let e = r;
7
7
  try {
8
8
  e.renderedHtml = await i.renderCustomBlock(e);
@@ -11,9 +11,11 @@ async function r(r, i) {
11
11
  }
12
12
  }
13
13
  if (e(r)) for (let e of r.children) for (let t of e) await a(t);
14
- else if (n(r)) for (let e of r.children) await a(e);
14
+ else if (t(r)) for (let e of r.children) await a(e);
15
15
  };
16
16
  for (let e of r.blocks) await a(e);
17
17
  }
18
18
  //#endregion
19
19
  export { r as t };
20
+
21
+ //# sourceMappingURL=preRenderCustomBlocks-CyGB3lZr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"preRenderCustomBlocks-CFwa7nP9.js","names":["isCustomBlock","isSection","isWrapper","preRenderCustomBlocks","renderBlock","block","customBlock","registry","column","child","content"],"sources":["../../../src/utils/preRenderCustomBlocks.ts"],"sourcesContent":["import type { Block, CustomBlock, TemplateContent } from \"@templatical/types\";\nimport { isCustomBlock, isSection, isWrapper } from \"@templatical/types\";\n\n/**\n * The only thing this needs from the block registry. Named as a slice rather than\n * taking `UseBlockRegistryReturn` so the render-payload builder can supply the\n * editor instance's own `renderCustomBlock` without reaching for the registry.\n */\nexport interface CustomBlockResolver {\n renderCustomBlock: (block: CustomBlock) => Promise<string>;\n}\n\n/**\n * Renders every custom block in the content tree to its HTML representation\n * and stores the result on `block.renderedHtml`.\n *\n * **A contract obligation of every render, not a save-path detail.** A renderer\n * handed a custom block with neither a resolver nor `renderedHtml` omits it from\n * the output silently, and a backend has no way to resolve one: the HTML comes\n * from the consumer's liquid template plus the block's field values, and the\n * definition is registered in the browser. So this runs before a\n * `RenderProvider` sees the content, and before Cloud persists it.\n *\n * Failures per-block are swallowed (and replaced with a comment placeholder)\n * so one broken block doesn't block the save of the rest.\n */\nexport async function preRenderCustomBlocks(\n content: TemplateContent,\n registry: CustomBlockResolver,\n): Promise<void> {\n const renderBlock = async (block: Block): Promise<void> => {\n if (isCustomBlock(block)) {\n const customBlock = block as CustomBlock;\n try {\n customBlock.renderedHtml =\n await registry.renderCustomBlock(customBlock);\n } catch {\n customBlock.renderedHtml = `<!-- Custom block render error: ${customBlock.customType} -->`;\n }\n }\n\n if (isSection(block)) {\n for (const column of block.children) {\n for (const child of column) {\n await renderBlock(child);\n }\n }\n } else if (isWrapper(block)) {\n for (const child of block.children) {\n await renderBlock(child);\n }\n }\n };\n\n for (const block of content.blocks) {\n await renderBlock(block);\n }\n}\n"],"mappings":";;AA0BA,eAAsBG,EACpB,GACA,GACe;CACf,IAAMC,IAAc,OAAO,MAAgC;EACzD,IAAIJ,EAAcK,CAAK,GAAG;GACxB,IAAMC,IAAcD;GACpB,IAAI;IACF,EAAY,eACV,MAAME,EAAS,kBAAkBD,CAAW;GAChD,QAAQ;IACN,EAAY,eAAe,mCAAmCA,EAAY,WAAW;GACvF;EACF;EAEA,IAAIL,EAAUI,CAAK,GACjB,KAAK,IAAMG,KAAUH,EAAM,UACzB,KAAK,IAAMI,KAASD,GAClB,MAAMJ,EAAYK,CAAK;OAGtB,IAAIP,EAAUG,CAAK,GACxB,KAAK,IAAMI,KAASJ,EAAM,UACxB,MAAMD,EAAYK,CAAK;CAG7B;CAEA,KAAK,IAAMJ,KAASK,EAAQ,QAC1B,MAAMN,EAAYC,CAAK;AAE3B"}
1
+ {"version":3,"file":"preRenderCustomBlocks-CyGB3lZr.js","names":["isSection","isWrapper","isCustomBlock","preRenderCustomBlocks","renderBlock","block","customBlock","registry","column","child","content"],"sources":["../../../src/utils/preRenderCustomBlocks.ts"],"sourcesContent":["import type { Block, CustomBlock, TemplateContent } from \"@templatical/types\";\nimport { isCustomBlock, isSection, isWrapper } from \"@templatical/types\";\n\n/**\n * The only thing this needs from the block registry. Named as a slice rather than\n * taking `UseBlockRegistryReturn` so the render-payload builder can supply the\n * editor instance's own `renderCustomBlock` without reaching for the registry.\n */\nexport interface CustomBlockResolver {\n renderCustomBlock: (block: CustomBlock) => Promise<string>;\n}\n\n/**\n * Renders every custom block in the content tree to its HTML representation\n * and stores the result on `block.renderedHtml`.\n *\n * **A contract obligation of every render, not a save-path detail.** A renderer\n * handed a custom block with neither a resolver nor `renderedHtml` omits it from\n * the output silently, and a backend has no way to resolve one: the HTML comes\n * from the consumer's liquid template plus the block's field values, and the\n * definition is registered in the browser. So this runs before a\n * `RenderProvider` sees the content, and before Cloud persists it.\n *\n * Failures per-block are swallowed (and replaced with a comment placeholder)\n * so one broken block doesn't block the save of the rest.\n */\nexport async function preRenderCustomBlocks(\n content: TemplateContent,\n registry: CustomBlockResolver,\n): Promise<void> {\n const renderBlock = async (block: Block): Promise<void> => {\n if (isCustomBlock(block)) {\n const customBlock = block as CustomBlock;\n try {\n customBlock.renderedHtml =\n await registry.renderCustomBlock(customBlock);\n } catch {\n customBlock.renderedHtml = `<!-- Custom block render error: ${customBlock.customType} -->`;\n }\n }\n\n if (isSection(block)) {\n for (const column of block.children) {\n for (const child of column) {\n await renderBlock(child);\n }\n }\n } else if (isWrapper(block)) {\n for (const child of block.children) {\n await renderBlock(child);\n }\n }\n };\n\n for (const block of content.blocks) {\n await renderBlock(block);\n }\n}\n"],"mappings":";;AA0BA,eAAsBG,EACpB,GACA,GACe;CACf,IAAMC,IAAc,OAAO,MAAgC;EACzD,IAAIF,EAAcG,CAAK,GAAG;GACxB,IAAMC,IAAcD;GACpB,IAAI;IACF,EAAY,eACV,MAAME,EAAS,kBAAkBD,CAAW;GAChD,QAAQ;IACN,EAAY,eAAe,mCAAmCA,EAAY,WAAW;GACvF;EACF;EAEA,IAAIN,EAAUK,CAAK,GACjB,KAAK,IAAMG,KAAUH,EAAM,UACzB,KAAK,IAAMI,KAASD,GAClB,MAAMJ,EAAYK,CAAK;OAGtB,IAAIR,EAAUI,CAAK,GACxB,KAAK,IAAMI,KAASJ,EAAM,UACxB,MAAMD,EAAYK,CAAK;CAG7B;CAEA,KAAK,IAAMJ,KAASK,EAAQ,QAC1B,MAAMN,EAAYC,CAAK;AAE3B"}
@@ -1,26 +1,26 @@
1
1
  import { B as e, Q as t, W as n, X as r, Y as i, Z as a, f as o, ot as s, rt as c } from "./draggable-BUTN5vZC.js";
2
- import { D as l, K as u, S as d, T as f, W as p, dt as m, t as h, x as g } from "./src-BcqNlDMe.js";
3
- import { r as _ } from "./dist-C5nRd_ua.js";
4
- import { o as v, s as y } from "./usePopoverPosition-CtVNwoHj.js";
2
+ import { A as l, D as u, E as d, J as f, Y as p, Z as m, gt as h, j as g, t as _ } from "./src-Bh0MoJ67.js";
3
+ import { r as v } from "./dist-C5nRd_ua.js";
4
+ import { o as y, s as b } from "./usePopoverPosition-CtVNwoHj.js";
5
5
  //#region ../core/src/error-reporting.ts
6
- function b(e) {
6
+ function x(e) {
7
7
  return e instanceof Error ? e : Error(String(e), { cause: e });
8
8
  }
9
- function x(e, t) {
9
+ function S(e, t) {
10
10
  try {
11
11
  t();
12
12
  } catch (t) {
13
- e?.(b(t));
13
+ e?.(x(t));
14
14
  }
15
15
  }
16
16
  //#endregion
17
17
  //#region ../core/src/editor.ts
18
- function S(e) {
18
+ function C(e) {
19
19
  return e === "1" ? 1 : e === "3" ? 3 : 2;
20
20
  }
21
- function C(e) {
22
- let t = e.content ?? u(e.defaultFontFamily, e.templateDefaults);
23
- g(t), d(t);
21
+ function w(e) {
22
+ let t = e.content ?? m(e.defaultFontFamily, e.templateDefaults);
23
+ d(t), u(t);
24
24
  let i = r({
25
25
  template: null,
26
26
  content: t,
@@ -55,12 +55,12 @@ function C(e) {
55
55
  function p(e, t) {
56
56
  if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) p(e, t);
57
57
  }
58
- function m(e, t, n = { blocks: e }) {
58
+ function h(e, t, n = { blocks: e }) {
59
59
  for (let r = 0; r < e.length; r++) {
60
60
  let i = e[r];
61
61
  if (i.id === t) return n;
62
62
  if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
63
- let n = m(i.children[e], t, {
63
+ let n = h(i.children[e], t, {
64
64
  blocks: i.children[e],
65
65
  sectionId: i.id,
66
66
  columnIndex: e
@@ -70,11 +70,11 @@ function C(e) {
70
70
  }
71
71
  return null;
72
72
  }
73
- function _(t) {
73
+ function g(t) {
74
74
  return e.lockedBlocks?.value.has(t) ?? !1;
75
75
  }
76
76
  function v(e) {
77
- let t = m(i.content.blocks, e);
77
+ let t = h(i.content.blocks, e);
78
78
  if (!t) return null;
79
79
  let n = t.blocks.findIndex((t) => t.id === e);
80
80
  return n === -1 ? null : {
@@ -84,12 +84,12 @@ function C(e) {
84
84
  };
85
85
  }
86
86
  function y(e, t = !0) {
87
- g(e), d(e), i.content = e, t && s();
87
+ d(e), u(e), i.content = e, t && s();
88
88
  }
89
89
  function b(e) {
90
- e && _(e) || (i.selectedBlockId = e);
90
+ e && g(e) || (i.selectedBlockId = e);
91
91
  }
92
- function C(e) {
92
+ function x(e) {
93
93
  i.viewport = e;
94
94
  }
95
95
  function w(e) {
@@ -102,7 +102,7 @@ function C(e) {
102
102
  i.previewMode = e, e && (i.selectedBlockId = null);
103
103
  }
104
104
  function D(e, t) {
105
- if (_(e)) return;
105
+ if (g(e)) return;
106
106
  let n = f(i.content.blocks, e);
107
107
  n && (Object.assign(n, t), s());
108
108
  }
@@ -117,12 +117,12 @@ function C(e) {
117
117
  settings: i.content.settings,
118
118
  blocks: [e]
119
119
  };
120
- if (g(a), d(a), !(t && e.type === "section")) {
120
+ if (d(a), u(a), !(t && e.type === "section")) {
121
121
  if (t) {
122
- if (_(t)) return;
122
+ if (g(t)) return;
123
123
  let a = f(i.content.blocks, t);
124
124
  if (a && a.type === "section") {
125
- if (n < 0 || n >= S(a.columns)) return;
125
+ if (n < 0 || n >= C(a.columns)) return;
126
126
  a.children[n] = a.children[n] || [];
127
127
  let t = a.children[n];
128
128
  r !== void 0 && r < t.length ? t.splice(r, 0, e) : t.push(e);
@@ -132,8 +132,8 @@ function C(e) {
132
132
  }
133
133
  }
134
134
  function A(e) {
135
- if (_(e)) return;
136
- let t = m(i.content.blocks, e);
135
+ if (g(e)) return;
136
+ let t = h(i.content.blocks, e);
137
137
  if (t) {
138
138
  let n = t.blocks.findIndex((t) => t.id === e);
139
139
  if (n !== -1) {
@@ -147,15 +147,15 @@ function C(e) {
147
147
  }
148
148
  }
149
149
  function j(e, t, n, r = 0) {
150
- if (_(e) || n && _(n)) return;
151
- let a = m(i.content.blocks, e);
150
+ if (g(e) || n && g(n)) return;
151
+ let a = h(i.content.blocks, e);
152
152
  if (!a) return;
153
153
  let o = a.blocks.findIndex((t) => t.id === e);
154
154
  if (o === -1 || n && a.blocks[o].type === "section") return;
155
155
  let c;
156
156
  if (n) {
157
157
  let e = f(i.content.blocks, n);
158
- if (!e || e.type !== "section" || r < 0 || r >= S(e.columns)) return;
158
+ if (!e || e.type !== "section" || r < 0 || r >= C(e.columns)) return;
159
159
  e.children[r] = e.children[r] || [], c = e.children[r];
160
160
  } else c = i.content.blocks;
161
161
  let [l] = a.blocks.splice(o, 1);
@@ -165,10 +165,10 @@ function C(e) {
165
165
  s();
166
166
  }
167
167
  function N(e, t) {
168
- throw new h(`[Templatical] Templates: ${e} ${t}`);
168
+ throw new _(`[Templatical] Templates: ${e} ${t}`);
169
169
  }
170
170
  function P(t) {
171
- x(e.onError, t);
171
+ S(e.onError, t);
172
172
  }
173
173
  function F(t) {
174
174
  let { templates: n } = e;
@@ -203,7 +203,7 @@ function C(e) {
203
203
  let n = F("load()"), r;
204
204
  i.isLoading = !0;
205
205
  try {
206
- r = await n.load(t), g(r.content), d(r.content), i.template = r, i.content = r.content, i.isDirty = !1;
206
+ r = await n.load(t), d(r.content), u(r.content), i.template = r, i.content = r.content, i.isDirty = !1;
207
207
  } catch (t) {
208
208
  throw e.onError?.(t), t;
209
209
  } finally {
@@ -245,10 +245,10 @@ function C(e) {
245
245
  state: a(i),
246
246
  content: c,
247
247
  selectedBlock: l,
248
- isBlockLocked: _,
248
+ isBlockLocked: g,
249
249
  setContent: y,
250
250
  selectBlock: b,
251
- setViewport: C,
251
+ setViewport: x,
252
252
  setDarkMode: w,
253
253
  setUiTheme: T,
254
254
  setPreviewMode: E,
@@ -268,11 +268,11 @@ function C(e) {
268
268
  }
269
269
  //#endregion
270
270
  //#region ../core/src/history.ts
271
- var w = 50, T = 300, E = 1500;
272
- function D(e) {
273
- let { content: r, setContent: i, isRemoteOperation: a, maxSize: o = w } = e, s = t([]), c = t([]), l = t(!1), u = null, d = null, p = n(() => s.value.length > 0), m = n(() => c.value.length > 0);
271
+ var T = 50, E = 300, D = 1500;
272
+ function O(e) {
273
+ let { content: r, setContent: i, isRemoteOperation: a, maxSize: o = T } = e, s = t([]), c = t([]), l = t(!1), u = null, d = null, f = n(() => s.value.length > 0), m = n(() => c.value.length > 0);
274
274
  function h() {
275
- return f(r.value);
275
+ return p(r.value);
276
276
  }
277
277
  function g(e) {
278
278
  s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
@@ -286,17 +286,17 @@ function D(e) {
286
286
  function y(e) {
287
287
  a?.() || (d && d.blockId === e ? (clearTimeout(d.timeoutId), d.timeoutId = setTimeout(() => {
288
288
  d = null;
289
- }, T)) : (_(), g(h()), c.value = [], d = {
289
+ }, E)) : (_(), g(h()), c.value = [], d = {
290
290
  blockId: e,
291
291
  timeoutId: setTimeout(() => {
292
292
  d = null;
293
- }, T)
293
+ }, E)
294
294
  }));
295
295
  }
296
296
  function b() {
297
297
  l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
298
298
  l.value = !1, u = null;
299
- }, E);
299
+ }, D);
300
300
  }
301
301
  function x() {
302
302
  if (s.value.length === 0) return;
@@ -313,11 +313,11 @@ function D(e) {
313
313
  function C() {
314
314
  s.value = [], c.value = [], _();
315
315
  }
316
- function D() {
316
+ function w() {
317
317
  C(), u &&= (clearTimeout(u), null);
318
318
  }
319
319
  return {
320
- canUndo: p,
320
+ canUndo: f,
321
321
  canRedo: m,
322
322
  isNavigating: l,
323
323
  undo: x,
@@ -325,39 +325,20 @@ function D(e) {
325
325
  record: v,
326
326
  recordDebounced: y,
327
327
  clear: C,
328
- destroy: D
328
+ destroy: w
329
329
  };
330
330
  }
331
331
  //#endregion
332
332
  //#region ../core/src/block-actions.ts
333
- function O(e) {
334
- e.type === "table" ? e.rows = e.rows.map((e) => ({
335
- ...e,
336
- id: p(),
337
- cells: e.cells.map((e) => ({
338
- ...e,
339
- id: p()
340
- }))
341
- })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
342
- ...e,
343
- id: p()
344
- })) : e.type === "menu" && (e.items = e.items.map((e) => ({
345
- ...e,
346
- id: p()
347
- })));
348
- }
349
333
  function k(e) {
350
334
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
351
335
  function o(n, r, a) {
352
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = l(n, o);
336
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = g(n, o);
353
337
  return t(s, r, a), i(s.id), s;
354
338
  }
355
339
  function s(e, n, r) {
356
- let o = JSON.parse(JSON.stringify(e));
357
- if (o.id = p(), O(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
358
- let t = JSON.parse(JSON.stringify(e));
359
- return t.id = p(), O(t), t;
360
- }))), n !== void 0 || r !== void 0) t(o, n, r);
340
+ let o = l(e);
341
+ if (n !== void 0 || r !== void 0) t(o, n, r);
361
342
  else {
362
343
  let i = a?.(e.id) ?? null;
363
344
  i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
@@ -502,10 +483,10 @@ function F(e) {
502
483
  return l.value && e.canDelete !== !1;
503
484
  }
504
485
  function f(e, t) {
505
- throw new h(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
486
+ throw new _(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
506
487
  }
507
488
  function p(t) {
508
- x(e.onError, t);
489
+ S(e.onError, t);
509
490
  }
510
491
  async function m(t) {
511
492
  i.value = !0;
@@ -517,7 +498,7 @@ function F(e) {
517
498
  i.value = !1;
518
499
  }
519
500
  }
520
- async function g(t, i, a) {
501
+ async function h(t, i, a) {
521
502
  let { create: o } = n;
522
503
  typeof o != "function" && f("create", "disabled by the provider");
523
504
  try {
@@ -534,7 +515,7 @@ function F(e) {
534
515
  throw e.onError?.(t), t;
535
516
  }
536
517
  }
537
- async function _(t, i) {
518
+ async function g(t, i) {
538
519
  let { update: a } = n;
539
520
  typeof a != "function" && f("update", "disabled by the provider");
540
521
  let o = r.value.find((e) => e.id === t);
@@ -567,8 +548,8 @@ function F(e) {
567
548
  canUpdateBlock: u,
568
549
  canDeleteBlock: d,
569
550
  load: m,
570
- create: g,
571
- update: _,
551
+ create: h,
552
+ update: g,
572
553
  remove: v
573
554
  };
574
555
  }
@@ -601,7 +582,7 @@ function L(e = {}) {
601
582
  },
602
583
  async create(e) {
603
584
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
604
- id: p(),
585
+ id: f(),
605
586
  name: e.name,
606
587
  content: e.content,
607
588
  ...e.category ? { category: e.category } : {},
@@ -669,7 +650,7 @@ function B(e = {}) {
669
650
  },
670
651
  async create(e) {
671
652
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
672
- id: p(),
653
+ id: f(),
673
654
  url: t,
674
655
  filename: e.filename || e.file.name,
675
656
  createdAt: n,
@@ -710,16 +691,16 @@ function V(e) {
710
691
  let { provider: n, getTemplateId: r } = e, i = t([]), a = t(!1), s = t(void 0), c = t(!1), l = /* @__PURE__ */ new Map(), u = o(() => typeof n.create == "function"), d = o(() => typeof n.restore == "function");
711
692
  function f(e) {
712
693
  let t = r();
713
- if (!t) throw new h(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
694
+ if (!t) throw new _(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
714
695
  return t;
715
696
  }
716
697
  function p(e) {
717
- throw new h(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
698
+ throw new _(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
718
699
  }
719
700
  function m(t) {
720
- x(e.onError, t);
701
+ S(e.onError, t);
721
702
  }
722
- async function g(t) {
703
+ async function h(t) {
723
704
  let r = f("list");
724
705
  a.value = !0;
725
706
  try {
@@ -731,11 +712,11 @@ function V(e) {
731
712
  a.value = !1;
732
713
  }
733
714
  }
734
- function _(e) {
715
+ function g(e) {
735
716
  return e.content ?? l.get(e.id) ?? null;
736
717
  }
737
718
  async function v(t) {
738
- let r = _(t);
719
+ let r = g(t);
739
720
  if (r) return r;
740
721
  let i = f("get");
741
722
  try {
@@ -777,8 +758,8 @@ function V(e) {
777
758
  isRestoring: c,
778
759
  canCreate: u,
779
760
  canRestore: d,
780
- load: g,
781
- peekContent: _,
761
+ load: h,
762
+ peekContent: g,
782
763
  resolveContent: v,
783
764
  create: y,
784
765
  restore: b
@@ -787,25 +768,25 @@ function V(e) {
787
768
  //#endregion
788
769
  //#region ../core/src/comments.ts
789
770
  function H(e) {
790
- let { provider: n, getTemplateId: r, getUser: i } = e, a = t([]), s = t(!1), c = t(!1), l = o(() => typeof n.create == "function"), u = o(() => typeof n.update == "function"), d = o(() => typeof n.delete == "function"), f = o(() => typeof n.setResolved == "function"), p = o(() => a.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = o(() => a.value.filter((e) => !e.resolvedAt).length), g = o(() => {
771
+ let { provider: n, getTemplateId: r, getUser: i } = e, a = t([]), s = t(!1), c = t(!1), l = o(() => typeof n.create == "function"), u = o(() => typeof n.update == "function"), d = o(() => typeof n.delete == "function"), f = o(() => typeof n.setResolved == "function"), p = o(() => a.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = o(() => a.value.filter((e) => !e.resolvedAt).length), h = o(() => {
791
772
  let e = /* @__PURE__ */ new Map();
792
773
  for (let t of a.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
793
774
  return e;
794
775
  });
795
- function _(e) {
776
+ function g(e) {
796
777
  let t = r();
797
- if (!t) throw new h(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
778
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
798
779
  return t;
799
780
  }
800
781
  function v(e) {
801
782
  let t = i();
802
- if (!t) throw new h(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
783
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
803
784
  return t;
804
785
  }
805
786
  function y(e) {
806
- throw new h(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
787
+ throw new _(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
807
788
  }
808
- function S(e) {
789
+ function b(e) {
809
790
  for (let t of a.value) {
810
791
  if (t.id === e) return t;
811
792
  for (let n of t.replies ?? []) if (n.id === e) return n;
@@ -817,11 +798,11 @@ function H(e) {
817
798
  return t !== null && e.author.id === t.id;
818
799
  }
819
800
  function w(t) {
820
- let n = b(t);
801
+ let n = x(t);
821
802
  throw e.onError?.(n), n;
822
803
  }
823
804
  function T(t) {
824
- x(e.onError, t);
805
+ S(e.onError, t);
825
806
  }
826
807
  function E(e, t, n) {
827
808
  return [
@@ -854,14 +835,14 @@ function H(e) {
854
835
  return !D(a.value[t], n) && (a.value = E(a.value, t, n), !0);
855
836
  }
856
837
  function k(e, t) {
857
- let n = S(e), r = t ?? n?.parentId ?? null;
838
+ let n = b(e), r = t ?? n?.parentId ?? null;
858
839
  return r ? a.value = a.value.map((t) => t.id === r ? {
859
840
  ...t,
860
841
  replies: (t.replies ?? []).filter((t) => t.id !== e)
861
842
  } : t) : a.value = a.value.filter((t) => t.id !== e), n;
862
843
  }
863
844
  async function A(e) {
864
- let t = _("list");
845
+ let t = g("list");
865
846
  s.value = !0;
866
847
  try {
867
848
  a.value = await n.list(t, e);
@@ -874,7 +855,7 @@ function H(e) {
874
855
  async function j(e) {
875
856
  let { create: t } = n;
876
857
  typeof t != "function" && y("create");
877
- let r = _("create");
858
+ let r = g("create");
878
859
  v("create"), c.value = !0;
879
860
  try {
880
861
  let i = await t(r, e);
@@ -888,7 +869,7 @@ function H(e) {
888
869
  async function M(e, t) {
889
870
  let { update: r } = n;
890
871
  typeof r != "function" && y("update");
891
- let i = _("update");
872
+ let i = g("update");
892
873
  v("update"), c.value = !0;
893
874
  try {
894
875
  let a = await r(i, e, t);
@@ -902,9 +883,9 @@ function H(e) {
902
883
  async function N(e) {
903
884
  let { delete: t } = n;
904
885
  typeof t != "function" && y("delete");
905
- let r = _("delete");
886
+ let r = g("delete");
906
887
  v("delete");
907
- let i = S(e);
888
+ let i = b(e);
908
889
  c.value = !0;
909
890
  try {
910
891
  await t(r, e), k(e), i && T(() => n.onDeleted?.(i, { origin: "local" }));
@@ -917,7 +898,7 @@ function H(e) {
917
898
  async function P(e, t) {
918
899
  let { setResolved: r } = n;
919
900
  typeof r != "function" && y("setResolved");
920
- let i = _("setResolved");
901
+ let i = g("setResolved");
921
902
  v("setResolved"), c.value = !0;
922
903
  try {
923
904
  let a = await r(i, e, t);
@@ -948,13 +929,13 @@ function H(e) {
948
929
  canResolve: f,
949
930
  totalCount: p,
950
931
  unresolvedCount: m,
951
- commentCountByBlock: g,
932
+ commentCountByBlock: h,
952
933
  load: A,
953
934
  create: j,
954
935
  update: M,
955
936
  remove: N,
956
937
  setResolved: P,
957
- find: S,
938
+ find: b,
958
939
  isOwn: C,
959
940
  applyRemoteCreate: F,
960
941
  applyRemoteUpdate: I,
@@ -995,7 +976,7 @@ function G(e, t, n = []) {
995
976
  //#endregion
996
977
  //#region src/utils/resolveFieldColors.ts
997
978
  function K(e, t) {
998
- let n = y({ presets: e.presets }, v), r = n.presets.length === 0;
979
+ let n = b({ presets: e.presets }, y), r = n.presets.length === 0;
999
980
  return {
1000
981
  presets: r ? t.presets : n.presets,
1001
982
  allowCustom: t.allowCustom === !1 ? !1 : e.allowCustom ?? t.allowCustom,
@@ -1009,7 +990,7 @@ function K(e, t) {
1009
990
  //#region src/composables/useImageDrop.ts
1010
991
  var q = "image/";
1011
992
  function J(e) {
1012
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || c(r), { isOverDropZone: a } = _(t, {
993
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || c(r), { isOverDropZone: a } = v(t, {
1013
994
  preventDefaultForUnhandled: !0,
1014
995
  onDrop: (e) => {
1015
996
  if (!i()) return;
@@ -1021,7 +1002,7 @@ function J(e) {
1021
1002
  }
1022
1003
  //#endregion
1023
1004
  //#region src/constants/socialIcons.ts
1024
- var Y = m, X = {
1005
+ var Y = h, X = {
1025
1006
  small: 24,
1026
1007
  medium: 32,
1027
1008
  large: 48
@@ -1045,6 +1026,6 @@ var Y = m, X = {
1045
1026
  "behance"
1046
1027
  ];
1047
1028
  //#endregion
1048
- export { A as _, K as a, D as b, U as c, B as d, L as f, M as g, N as h, J as i, H as l, P as m, Y as n, G as o, F as p, Z as r, W as s, X as t, V as u, j as v, C as x, k as y };
1029
+ export { A as _, K as a, O as b, U as c, B as d, L as f, M as g, N as h, J as i, H as l, P as m, Y as n, G as o, F as p, Z as r, W as s, X as t, V as u, j as v, w as x, k as y };
1049
1030
 
1050
- //# sourceMappingURL=socialIcons-CsYnPPll.js.map
1031
+ //# sourceMappingURL=socialIcons-ClJVDZwt.js.map