@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
@@ -155,16 +155,16 @@ function p(e) {
155
155
  function m(e) {
156
156
  return e.type === "wrapper";
157
157
  }
158
- var h = {
158
+ var ie = {
159
159
  content: "<p>Enter your title</p>",
160
160
  level: 2,
161
161
  textAlign: "left"
162
- }, g = { content: "<p>Enter your text here</p>" }, _ = {
162
+ }, h = { content: "<p>Enter your text here</p>" }, g = {
163
163
  src: "",
164
164
  alt: "",
165
165
  width: "full",
166
166
  align: "center"
167
- }, v = {
167
+ }, _ = {
168
168
  text: "Click Here",
169
169
  url: "",
170
170
  backgroundColor: "#333333",
@@ -178,36 +178,36 @@ var h = {
178
178
  left: 24
179
179
  },
180
180
  align: "center"
181
- }, ie = {
181
+ }, v = {
182
182
  lineStyle: "solid",
183
183
  color: "#e0e0e0",
184
184
  thickness: 1,
185
185
  width: "full"
186
- }, ae = { columns: "1" }, oe = {
186
+ }, y = { columns: "1" }, b = {
187
187
  url: "",
188
188
  thumbnailUrl: "",
189
189
  alt: "Video",
190
190
  width: "full",
191
191
  align: "center"
192
- }, se = {
192
+ }, x = {
193
193
  iconStyle: "solid",
194
194
  iconSize: "medium",
195
195
  spacing: 10,
196
196
  align: "center"
197
- }, ce = { height: 24 }, le = { content: "" }, ue = {
197
+ }, ae = { height: 24 }, oe = { content: "" }, se = {
198
198
  fontSize: 15,
199
199
  textAlign: "center",
200
200
  separator: "|",
201
201
  separatorColor: "#e0e0e0",
202
202
  spacing: 10
203
- }, y = {
203
+ }, ce = {
204
204
  hasHeaderRow: !0,
205
205
  borderColor: "#e0e0e0",
206
206
  borderWidth: 1,
207
207
  cellPadding: 8,
208
208
  fontSize: 15,
209
209
  textAlign: "left"
210
- }, b = {
210
+ }, le = {
211
211
  targetDate: "",
212
212
  timezone: "UTC",
213
213
  showDays: !0,
@@ -227,21 +227,21 @@ var h = {
227
227
  expiredMessage: "This offer has expired",
228
228
  expiredImageUrl: "",
229
229
  hideOnExpiry: !1
230
+ }, ue = {
231
+ title: ie,
232
+ paragraph: h,
233
+ image: g,
234
+ button: _,
235
+ divider: v,
236
+ section: y,
237
+ video: b,
238
+ social: x,
239
+ spacer: ae,
240
+ html: oe,
241
+ menu: se,
242
+ table: ce,
243
+ countdown: le
230
244
  }, de = {
231
- title: h,
232
- paragraph: g,
233
- image: _,
234
- button: v,
235
- divider: ie,
236
- section: ae,
237
- video: oe,
238
- social: se,
239
- spacer: ce,
240
- html: le,
241
- menu: ue,
242
- table: y,
243
- countdown: b
244
- }, x = {
245
245
  width: 600,
246
246
  backgroundColor: "#ffffff",
247
247
  textColor: "#1a1a1a",
@@ -249,28 +249,28 @@ var h = {
249
249
  fontFamily: "Arial",
250
250
  locale: "en"
251
251
  };
252
- function S(e) {
252
+ function fe(e) {
253
253
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
254
254
  }
255
- function C(e, t) {
255
+ function S(e, t) {
256
256
  let n = { ...e };
257
257
  for (let r of Object.keys(t)) {
258
258
  let i = e[r], a = t[r];
259
- a !== void 0 && (n[r] = S(i) && S(a) ? C(i, a) : a);
259
+ a !== void 0 && (n[r] = fe(i) && fe(a) ? S(i, a) : a);
260
260
  }
261
261
  return n;
262
262
  }
263
- function fe(e = "Arial", t) {
263
+ function pe(e = "Arial", t) {
264
264
  return {
265
265
  blocks: [],
266
266
  settings: {
267
- ...x,
267
+ ...de,
268
268
  fontFamily: e,
269
269
  ...t
270
270
  }
271
271
  };
272
272
  }
273
- var pe = [
273
+ var me = [
274
274
  "ar",
275
275
  "he",
276
276
  "iw",
@@ -284,20 +284,32 @@ var pe = [
284
284
  "ckb",
285
285
  "ks"
286
286
  ];
287
- function me(e) {
287
+ function he(e) {
288
288
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
289
- return !!t && pe.includes(t);
289
+ return !!t && me.includes(t);
290
290
  }
291
- function he(e) {
292
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : me(e.locale) ? "rtl" : "ltr";
291
+ function ge(e) {
292
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : he(e.locale) ? "rtl" : "ltr";
293
+ }
294
+ function C(e) {
295
+ let t = [];
296
+ return JSON.parse(JSON.stringify(e, function(e, n) {
297
+ if (typeof n != "object" || !n) return n;
298
+ for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
299
+ if (!t.includes(n)) return t.push(n), n;
300
+ }));
293
301
  }
294
302
  function w(e, t) {
295
- return !t || Object.keys(t).length === 0 ? e : C(e, t);
303
+ let n = C(e);
304
+ return !t || Object.keys(t).length === 0 ? n : S(n, t);
305
+ }
306
+ function T(e) {
307
+ return e === void 0 ? void 0 : C(e);
296
308
  }
297
- function T() {
309
+ function E() {
298
310
  return crypto.randomUUID();
299
311
  }
300
- function ge(e = 0) {
312
+ function _e(e = 0) {
301
313
  return {
302
314
  top: e,
303
315
  right: e,
@@ -305,135 +317,135 @@ function ge(e = 0) {
305
317
  left: e
306
318
  };
307
319
  }
308
- function E(e = 10) {
309
- return { padding: ge(e) };
320
+ function D(e = 10) {
321
+ return { padding: _e(e) };
310
322
  }
311
- function D(e = {}) {
323
+ function O(e = {}) {
312
324
  return w({
313
- id: T(),
325
+ id: E(),
314
326
  type: "title",
315
- ...h,
316
- styles: E()
327
+ ...ie,
328
+ styles: D()
317
329
  }, e);
318
330
  }
319
- function O(e = {}) {
331
+ function k(e = {}) {
320
332
  return w({
321
- id: T(),
333
+ id: E(),
322
334
  type: "paragraph",
323
- ...g,
324
- styles: E()
335
+ ...h,
336
+ styles: D()
325
337
  }, e);
326
338
  }
327
- function k(e = {}) {
339
+ function A(e = {}) {
328
340
  return w({
329
- id: T(),
341
+ id: E(),
330
342
  type: "image",
331
- ..._,
332
- styles: E()
343
+ ...g,
344
+ styles: D()
333
345
  }, e);
334
346
  }
335
- function A(e = {}) {
347
+ function j(e = {}) {
336
348
  return w({
337
- id: T(),
349
+ id: E(),
338
350
  type: "button",
339
- ...v,
340
- styles: E()
351
+ ..._,
352
+ styles: D()
341
353
  }, e);
342
354
  }
343
- function j(e = {}) {
355
+ function M(e = {}) {
344
356
  return w({
345
- id: T(),
357
+ id: E(),
346
358
  type: "divider",
347
- ...ie,
348
- styles: E(20)
359
+ ...v,
360
+ styles: D(20)
349
361
  }, e);
350
362
  }
351
- function M(e = {}) {
363
+ function N(e = {}) {
352
364
  return w({
353
- id: T(),
365
+ id: E(),
354
366
  type: "section",
355
- ...ae,
367
+ ...y,
356
368
  children: [[]],
357
- styles: E(20)
369
+ styles: D(20)
358
370
  }, e);
359
371
  }
360
- function N(e = {}) {
372
+ function P(e = {}) {
361
373
  return w({
362
- id: T(),
374
+ id: E(),
363
375
  type: "video",
364
- ...oe,
365
- styles: E()
376
+ ...b,
377
+ styles: D()
366
378
  }, e);
367
379
  }
368
- function P(e = {}) {
380
+ function F(e = {}) {
369
381
  return w({
370
- id: T(),
382
+ id: E(),
371
383
  type: "social",
372
384
  icons: [],
373
- ...se,
374
- styles: E()
385
+ ...x,
386
+ styles: D()
375
387
  }, e);
376
388
  }
377
- function F(e = {}) {
389
+ function I(e = {}) {
378
390
  return w({
379
- id: T(),
391
+ id: E(),
380
392
  type: "spacer",
381
- ...ce,
382
- styles: E(0)
393
+ ...ae,
394
+ styles: D(0)
383
395
  }, e);
384
396
  }
385
- function I(e = {}) {
397
+ function L(e = {}) {
386
398
  return w({
387
- id: T(),
399
+ id: E(),
388
400
  type: "html",
389
- ...le,
390
- styles: E()
401
+ ...oe,
402
+ styles: D()
391
403
  }, e);
392
404
  }
393
- function L(e = {}) {
405
+ function R(e = {}) {
394
406
  return w({
395
- id: T(),
407
+ id: E(),
396
408
  type: "menu",
397
409
  items: [],
398
- ...ue,
399
- styles: E()
410
+ ...se,
411
+ styles: D()
400
412
  }, e);
401
413
  }
402
- function _e(e, t) {
414
+ function ve(e, t) {
403
415
  return Array.from({ length: t }, () => ({
404
- id: T(),
416
+ id: E(),
405
417
  cells: Array.from({ length: e }, () => ({
406
- id: T(),
418
+ id: E(),
407
419
  content: ""
408
420
  }))
409
421
  }));
410
422
  }
411
- function R(e = {}) {
423
+ function z(e = {}) {
412
424
  return w({
413
- id: T(),
425
+ id: E(),
414
426
  type: "table",
415
- rows: _e(3, 3),
416
- ...y,
417
- styles: E()
427
+ rows: ve(3, 3),
428
+ ...ce,
429
+ styles: D()
418
430
  }, e);
419
431
  }
420
- function z(e = {}) {
432
+ function B(e = {}) {
421
433
  return w({
422
- id: T(),
434
+ id: E(),
423
435
  type: "countdown",
424
- ...b,
425
- styles: E()
436
+ ...le,
437
+ styles: D()
426
438
  }, e);
427
439
  }
428
- function ve(e) {
440
+ function ye(e) {
429
441
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
430
442
  }
431
- function ye(e) {
443
+ function be(e) {
432
444
  let t = {};
433
- for (let n of e.fields) t[n.key] = ve(n);
434
- let n = w(E(), e.defaultStyles);
445
+ for (let n of e.fields) t[n.key] = T(ye(n));
446
+ let n = w(D(), T(e.defaultStyles));
435
447
  return {
436
- id: T(),
448
+ id: E(),
437
449
  type: "custom",
438
450
  customType: e.type,
439
451
  fieldValues: t,
@@ -441,96 +453,94 @@ function ye(e) {
441
453
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
442
454
  };
443
455
  }
444
- function be() {
456
+ function xe() {
445
457
  return {
446
- id: T(),
458
+ id: E(),
447
459
  type: "slot",
448
- styles: E(0)
460
+ styles: D(0)
449
461
  };
450
462
  }
451
- function xe(e = {}) {
463
+ function Se(e = {}) {
452
464
  return w({
453
- id: T(),
465
+ id: E(),
454
466
  type: "wrapper",
455
467
  children: [],
456
- styles: E(0)
468
+ styles: D(0)
457
469
  }, e);
458
470
  }
459
- function Se(e, t) {
471
+ function Ce(e, t) {
460
472
  switch (e) {
461
- case "section": return M(t?.section);
462
- case "title": return D(t?.title);
463
- case "paragraph": return O(t?.paragraph);
464
- case "image": return k(t?.image);
465
- case "button": return A(t?.button);
466
- case "divider": return j(t?.divider);
467
- case "video": return N(t?.video);
468
- case "social": return P(t?.social);
469
- case "spacer": return F(t?.spacer);
470
- case "html": return I(t?.html);
471
- case "menu": return L(t?.menu);
472
- case "table": return R(t?.table);
473
- case "countdown": return z(t?.countdown);
473
+ case "section": return N(T(t?.section));
474
+ case "title": return O(T(t?.title));
475
+ case "paragraph": return k(T(t?.paragraph));
476
+ case "image": return A(T(t?.image));
477
+ case "button": return j(T(t?.button));
478
+ case "divider": return M(T(t?.divider));
479
+ case "video": return P(T(t?.video));
480
+ case "social": return F(T(t?.social));
481
+ case "spacer": return I(T(t?.spacer));
482
+ case "html": return L(T(t?.html));
483
+ case "menu": return R(T(t?.menu));
484
+ case "table": return z(T(t?.table));
485
+ case "countdown": return B(T(t?.countdown));
474
486
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
475
487
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
476
488
  default: throw Error(`Unknown block type: ${e}`);
477
489
  }
478
490
  }
479
- function B(e) {
480
- let t = JSON.parse(JSON.stringify(e));
481
- return t.id = T(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => B(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => B(e))), t;
482
- }
483
491
  function V(e) {
484
- let t = [];
485
- return JSON.parse(JSON.stringify(e, function(e, n) {
486
- if (typeof n != "object" || !n) return n;
487
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
488
- if (!t.includes(n)) return t.push(n), n;
489
- }));
492
+ let t = JSON.parse(JSON.stringify(e));
493
+ if (t.id = E(), t.type === "table") for (let e of t.rows) {
494
+ e.id = E();
495
+ for (let t of e.cells) t.id = E();
496
+ }
497
+ if (t.type === "menu") for (let e of t.items) e.id = E();
498
+ if (t.type === "social") for (let e of t.icons) e.id = E();
499
+ return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => V(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => V(e))), t;
490
500
  }
491
- var H = "[Templatical] layout: must contain exactly one slot block", U = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ce = "[Templatical] layout: a wrapper cannot contain a wrapper", we = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Te = "[Templatical] slot is not a valid content block", Ee = "[Templatical] wrapper is not a valid content block";
492
- function W(e, t, n = null, r = !1) {
493
- for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) W(e, t, i, !0);
494
- else m(i) && W(i.children, t, i, r);
501
+ var H = "[Templatical] layout: must contain exactly one slot block", we = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Te = "[Templatical] layout: a wrapper cannot contain a wrapper", Ee = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", De = "[Templatical] slot is not a valid content block", Oe = "[Templatical] wrapper is not a valid content block";
502
+ function U(e, t, n = null, r = !1) {
503
+ for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) U(e, t, i, !0);
504
+ else m(i) && U(i.children, t, i, r);
495
505
  }
496
- function G(e) {
506
+ function W(e) {
497
507
  let t = 0;
498
- if (W(e.blocks, (e, n, r) => {
499
- if (p(e) && (t += 1, r)) throw Error(U);
508
+ if (U(e.blocks, (e, n, r) => {
509
+ if (p(e) && (t += 1, r)) throw Error(we);
500
510
  if (m(e)) {
501
- if (r) throw Error(U);
502
- if (e.children.some(m)) throw Error(Ce);
511
+ if (r) throw Error(we);
512
+ if (e.children.some(m)) throw Error(Te);
503
513
  }
504
514
  }), t !== 1) throw Error(H);
505
515
  }
506
- function K(e) {
507
- W(e.blocks, (e) => {
508
- if (p(e)) throw Error(Te);
516
+ function G(e) {
517
+ U(e.blocks, (e) => {
518
+ if (p(e)) throw Error(De);
509
519
  });
510
520
  }
511
- function q(e) {
512
- W(e.blocks, (e) => {
513
- if (m(e)) throw Error(Ee);
521
+ function K(e) {
522
+ U(e.blocks, (e) => {
523
+ if (m(e)) throw Error(Oe);
514
524
  });
515
525
  }
516
- function De(e) {
526
+ function ke(e) {
517
527
  let t = !1;
518
- return W(e.blocks, (e, n) => {
528
+ return U(e.blocks, (e, n) => {
519
529
  p(e) && n !== null && m(n) && (t = !0);
520
530
  }), t;
521
531
  }
522
- function Oe(e) {
532
+ function Ae(e) {
523
533
  if (p(e)) return e;
524
534
  if (m(e)) {
525
- let t = B({
535
+ let t = V({
526
536
  ...e,
527
537
  children: []
528
538
  });
529
- return t.children = e.children.map(Oe), t;
539
+ return t.children = e.children.map(Ae), t;
530
540
  }
531
- return B(e);
541
+ return V(e);
532
542
  }
533
- function ke(e) {
543
+ function je(e) {
534
544
  for (let t = 0; t < e.length; t++) {
535
545
  let n = e[t];
536
546
  if (p(n)) return {
@@ -538,49 +548,49 @@ function ke(e) {
538
548
  index: t
539
549
  };
540
550
  if (m(n)) {
541
- let e = ke(n.children);
551
+ let e = je(n.children);
542
552
  if (e) return e;
543
553
  }
544
554
  }
545
555
  return null;
546
556
  }
547
- function Ae(e) {
557
+ function Me(e) {
548
558
  for (let t of e) if (f(t)) {
549
559
  if (t.wrapper) return !0;
550
- for (let e of t.children) if (Ae(e)) return !0;
560
+ for (let e of t.children) if (Me(e)) return !0;
551
561
  }
552
562
  return !1;
553
563
  }
554
- function je(e, t) {
555
- if (G(e), K(t), q(t), De(e) && Ae(t.blocks)) throw Error(we);
556
- let n = e.blocks.map(Oe), r = ke(n);
564
+ function Ne(e, t) {
565
+ if (W(e), G(t), K(t), ke(e) && Me(t.blocks)) throw Error(Ee);
566
+ let n = e.blocks.map(Ae), r = je(n);
557
567
  if (!r) throw Error(H);
558
- return r.parent.splice(r.index, 1, ...V(t.blocks)), {
568
+ return r.parent.splice(r.index, 1, ...C(t.blocks)), {
559
569
  blocks: n,
560
570
  settings: {
561
- ...V(t.settings),
571
+ ...C(t.settings),
562
572
  backgroundColor: e.settings.backgroundColor
563
573
  }
564
574
  };
565
575
  }
566
- var Me = /* @__PURE__ */ new Set(["\"", "'"]);
567
- function Ne(e, t) {
576
+ var Pe = /* @__PURE__ */ new Set(["\"", "'"]);
577
+ function Fe(e, t) {
568
578
  let n = null;
569
579
  for (let r = t; r < e.length; r++) {
570
580
  let t = e[r];
571
581
  if (n !== null) t === n && (n = null);
572
- else if (Me.has(t)) n = t;
582
+ else if (Pe.has(t)) n = t;
573
583
  else if (t === ">") return r;
574
584
  }
575
585
  return -1;
576
586
  }
577
- function Pe(e) {
587
+ function Ie(e) {
578
588
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
579
589
  }
580
- function J(e) {
590
+ function q(e) {
581
591
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
582
592
  }
583
- var Fe = {
593
+ var Le = {
584
594
  amp: "&",
585
595
  lt: "<",
586
596
  gt: ">",
@@ -588,44 +598,105 @@ var Fe = {
588
598
  apos: "'",
589
599
  nbsp: "\xA0"
590
600
  };
591
- function Ie(e) {
601
+ function Re(e) {
592
602
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
593
603
  if (t[0] === "#") {
594
604
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
595
605
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
596
606
  }
597
- return Fe[t.toLowerCase()] ?? e;
607
+ return Le[t.toLowerCase()] ?? e;
598
608
  }) : e;
599
609
  }
600
- function Le(e, t) {
610
+ function ze(e, t) {
601
611
  let n = t.toLowerCase(), r = 0;
602
612
  for (; r < e.length;) {
603
- for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
613
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
604
614
  if (r >= e.length) break;
605
615
  let t = r;
606
- for (; r < e.length && Pe(e[r]);) r++;
616
+ for (; r < e.length && Ie(e[r]);) r++;
607
617
  let i = e.substring(t, r).toLowerCase();
608
618
  if (i === "") {
609
619
  r++;
610
620
  continue;
611
621
  }
612
- for (; r < e.length && J(e[r]);) r++;
622
+ for (; r < e.length && q(e[r]);) r++;
613
623
  if (e[r] !== "=") continue;
614
- for (r++; r < e.length && J(e[r]);) r++;
624
+ for (r++; r < e.length && q(e[r]);) r++;
615
625
  let a = e[r];
616
- if (Me.has(a)) {
626
+ if (Pe.has(a)) {
617
627
  let t = r + 1, o = e.indexOf(a, t);
618
628
  if (o === -1) return null;
619
- if (i === n) return Ie(e.substring(t, o));
629
+ if (i === n) return Re(e.substring(t, o));
620
630
  r = o + 1;
621
631
  continue;
622
632
  }
623
633
  let o = r;
624
- for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
625
- if (i === n) return Ie(e.substring(o, r));
634
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
635
+ if (i === n) return Re(e.substring(o, r));
626
636
  }
627
637
  return null;
628
638
  }
639
+ var Be = {
640
+ arial: "Arial, sans-serif",
641
+ helvetica: "Helvetica, sans-serif",
642
+ georgia: "Georgia, serif",
643
+ "times new roman": "'Times New Roman', serif",
644
+ verdana: "Verdana, sans-serif",
645
+ "trebuchet ms": "'Trebuchet MS', sans-serif",
646
+ "courier new": "'Courier New', monospace",
647
+ tahoma: "Tahoma, sans-serif"
648
+ }, Ve = /* @__PURE__ */ new Set([
649
+ "inherit",
650
+ "initial",
651
+ "unset",
652
+ "revert",
653
+ "revert-layer"
654
+ ]);
655
+ function He(e) {
656
+ return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
657
+ }
658
+ function J(e) {
659
+ if (typeof e != "string") return [];
660
+ let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
661
+ for (;;) {
662
+ for (; r < t.length && He(t[r]);) r++;
663
+ if (r >= t.length) return [];
664
+ let e = t[r];
665
+ if (e === "\"" || e === "'") {
666
+ let i = "", a = r + 1, o = !1;
667
+ for (; a < t.length;) {
668
+ let n = t[a];
669
+ if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
670
+ else {
671
+ if (n === e) {
672
+ o = !0, a++;
673
+ break;
674
+ }
675
+ i += n, a++;
676
+ }
677
+ }
678
+ if (!o) return [];
679
+ for (; a < t.length && He(t[a]);) a++;
680
+ if (a < t.length && t[a] !== ",") return [];
681
+ n.push({
682
+ name: i,
683
+ quoted: !0
684
+ }), r = a;
685
+ } else {
686
+ let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
687
+ if (a === "" || a.includes("\"") || a.includes("'") || Ve.has(a.toLowerCase())) return [];
688
+ n.push({
689
+ name: a,
690
+ quoted: !1
691
+ }), r = i;
692
+ }
693
+ if (r >= t.length) return n;
694
+ r++;
695
+ }
696
+ }
697
+ function Ue(e) {
698
+ return J(e)[0]?.name ?? "";
699
+ }
629
700
  var Y = {
630
701
  liquid: {
631
702
  value: /\{\{.+?\}\}/g,
@@ -643,33 +714,33 @@ var Y = {
643
714
  value: /%%=.+?=%%/g,
644
715
  logic: /%%\[\s*(\w+).*?\]%%/g
645
716
  }
646
- }, Re = {
717
+ }, We = {
647
718
  liquid: "{{",
648
719
  handlebars: "{{",
649
720
  mailchimp: "*|",
650
721
  ampscript: "%%="
651
- }, ze = {
722
+ }, Ge = {
652
723
  liquid: "}}",
653
724
  handlebars: "}}",
654
725
  mailchimp: "|*",
655
726
  ampscript: "=%%"
656
727
  };
657
- function Be(e) {
658
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Re[t];
728
+ function Ke(e) {
729
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
659
730
  return null;
660
731
  }
661
- function Ve(e) {
662
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return ze[t];
732
+ function qe(e) {
733
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
663
734
  return null;
664
735
  }
665
- function He(e) {
736
+ function Je(e) {
666
737
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
667
738
  }
668
739
  function X(e) {
669
740
  let t = e.source, n = e.flags.replace("g", "");
670
741
  return RegExp(`^${t}$`, n);
671
742
  }
672
- function Ue(e, t) {
743
+ function Ye(e, t) {
673
744
  let n = e?.trim() || "";
674
745
  return !X(t.logic).test(n) && X(t.value).test(n);
675
746
  }
@@ -677,41 +748,41 @@ function Z(e, t) {
677
748
  let n = t.find((t) => t.value === e);
678
749
  return n ? n.label : e;
679
750
  }
680
- function We(e, t) {
751
+ function Xe(e, t) {
681
752
  return $(e, "data-merge-tag", (e) => Z(e, t));
682
753
  }
683
754
  function Q(e, t) {
684
755
  return t.find((t) => t.value === e)?.sample;
685
756
  }
686
- function Ge(e, t) {
687
- return $(e, "data-merge-tag", (e) => Je(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
757
+ function Ze(e, t) {
758
+ return $(e, "data-merge-tag", (e) => et(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
688
759
  }
689
- function Ke(e) {
760
+ function Qe(e) {
690
761
  return e.some((e) => e.sample !== void 0);
691
762
  }
692
- function qe(e, t) {
763
+ function $e(e, t) {
693
764
  if (!e) return e;
694
765
  let n = e;
695
766
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
696
767
  return n;
697
768
  }
698
- function Je(e) {
769
+ function et(e) {
699
770
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
700
771
  }
701
- function Ye(e, t) {
772
+ function tt(e, t) {
702
773
  if (!e) return !1;
703
774
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
704
775
  return n.test(e) || r.test(e);
705
776
  }
706
- function Xe(e, t) {
777
+ function nt(e, t) {
707
778
  return X(t.logic).test(e?.trim() || "");
708
779
  }
709
- function Ze(e, t) {
780
+ function rt(e, t) {
710
781
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
711
782
  return r && r[1] ? r[1].toUpperCase() : e;
712
783
  }
713
- function Qe(e, t) {
714
- return $(e, "data-logic-merge-tag", (e) => Ze(e, t));
784
+ function it(e, t) {
785
+ return $(e, "data-logic-merge-tag", (e) => rt(e, t));
715
786
  }
716
787
  function $(e, t, n, r) {
717
788
  let i = "", a = 0;
@@ -726,7 +797,7 @@ function $(e, t, n, r) {
726
797
  i += e.substring(a, o + 5), a = o + 5;
727
798
  continue;
728
799
  }
729
- let c = Ne(e, o + 5);
800
+ let c = Fe(e, o + 5);
730
801
  if (c === -1) {
731
802
  i += e.substring(a);
732
803
  break;
@@ -736,7 +807,7 @@ function $(e, t, n, r) {
736
807
  i += e.substring(a);
737
808
  break;
738
809
  }
739
- let u = Le(e.substring(o + 5, c), t);
810
+ let u = ze(e.substring(o + 5, c), t);
740
811
  if (u === null) {
741
812
  i += e.substring(a, o + 5), a = o + 5;
742
813
  continue;
@@ -746,12 +817,12 @@ function $(e, t, n, r) {
746
817
  }
747
818
  return i;
748
819
  }
749
- function $e(e) {
820
+ function at(e) {
750
821
  if (typeof e != "object" || !e) return !1;
751
822
  let t = e;
752
823
  return Array.isArray(t.blocks);
753
824
  }
754
- var et = class extends Error {
825
+ var ot = class extends Error {
755
826
  statusCode;
756
827
  constructor(e, t) {
757
828
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -767,4 +838,4 @@ var et = class extends Error {
767
838
  }
768
839
  };
769
840
  //#endregion
770
- export { V as $, D as A, Ke as B, L as C, P as D, be as E, Ze as F, f as G, Xe as H, Z as I, De as J, p as K, Q as L, xe as M, C as N, F as O, T as P, He as Q, Ve as R, k as S, M as T, Ue as U, re as V, $e as W, Qe as X, he as Y, We as Z, z as _, s as a, n as at, j as b, Y as c, t as ct, K as d, ee as et, q as f, A as g, Se as h, x as i, qe as it, N as j, R as k, et as l, G as lt, Ye as m, e as n, te as nt, c as o, r as ot, B as p, m as q, de as r, Ge as rt, l as s, o as st, i as t, ne as tt, je as u, ye as v, O as w, I as x, fe as y, Be as z };
841
+ export { it as $, z as A, qe as B, A as C, xe as D, N as E, Ue as F, Ye as G, Qe as H, E as I, p as J, at as K, rt as L, P as M, Se as N, F as O, S as P, ge as Q, Z as R, L as S, k as T, re as U, Ke as V, nt as W, ke as X, m as Y, J as Z, j as _, de as a, te as at, pe as b, l as c, n as ct, Ne as d, t as dt, Xe as et, G as f, W as ft, Ce as g, tt as h, ue as i, ne as it, O as j, I as k, Y as l, r as lt, V as m, e as n, C as nt, s as o, Ze as ot, K as p, f as q, Be as r, ee as rt, c as s, $e as st, i as t, Je as tt, ot as u, o as ut, B as v, R as w, M as x, be as y, Q as z };