@cling-se/widget 0.17.3 → 0.18.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 (232) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AddClientCallout-CCt78VvH.js +101 -0
  3. package/dist/AnswerModal-B4LwVv2N.js +3371 -0
  4. package/dist/AttachmentItem-DnvYffKP.js +171 -0
  5. package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
  6. package/dist/BlockMedia-Amo_kdHo.js +103 -0
  7. package/dist/CCallout-Gd06ds6O.js +104 -0
  8. package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
  9. package/dist/CDropdownItem-BUNVCpSR.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
  11. package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
  12. package/dist/CPhoneInput-B6iyhsOG.js +207 -0
  13. package/dist/CPriceInput-BLQaNu1d.js +142 -0
  14. package/dist/CSelect-BVO9iO9L.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
  16. package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
  17. package/dist/ClientModal-B9cbuEiC.js +1188 -0
  18. package/dist/ColorPicker-G2kkxL7_.js +1408 -0
  19. package/dist/CompanyModal-por9AG4P.js +250 -0
  20. package/dist/ContentWrapper-CQtaGA2u.js +265 -0
  21. package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
  22. package/dist/DocAnswer-BrKctwrY.js +33 -0
  23. package/dist/DocDetails-B_LWVHGt.js +452 -0
  24. package/dist/DocForm-D6T7NmfO.js +6772 -0
  25. package/dist/DocFormSend-COYPrhl7.js +171 -0
  26. package/dist/DocLinks-B0LjxXIk.js +36 -0
  27. package/dist/DocModalBase-DObZHuYr.js +29 -0
  28. package/dist/DocPrint-CkDq78fB.js +399 -0
  29. package/dist/DocReceipt-CYBPyePC.js +341 -0
  30. package/dist/DocSendReminder-Dau6s43e.js +181 -0
  31. package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
  32. package/dist/DocTimeline-ChBDPOfd.js +537 -0
  33. package/dist/DocumentClient-MLXzzXLb.js +90 -0
  34. package/dist/DocumentLayout-BMHOt380.js +1434 -0
  35. package/dist/DocumentLogotype-Clj3fopX.js +162 -0
  36. package/dist/DocumentVoided-B5_MSBbC.js +33 -0
  37. package/dist/EmbedInput-CzkOa02p.js +156 -0
  38. package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
  39. package/dist/ErrorCallout-CJn6NCse.js +34 -0
  40. package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
  41. package/dist/Flag-C4_G5IY1.js +41 -0
  42. package/dist/HeaderSettings-DWN0TjVD.js +720 -0
  43. package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
  44. package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
  45. package/dist/Index-B06eCuBA.js +76 -0
  46. package/dist/Index-B8Zj0-MX.js +87 -0
  47. package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
  48. package/dist/Index-BCHLxp7B.js +21 -0
  49. package/dist/Index-BDAp1CwZ.js +363 -0
  50. package/dist/Index-BFbcjFo4.js +16 -0
  51. package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
  52. package/dist/Index-BOx_9tTM.js +136 -0
  53. package/dist/Index-BgZNiD7A.js +47 -0
  54. package/dist/Index-Bt97lEsI.js +228 -0
  55. package/dist/Index-C9aBeBBk.js +70 -0
  56. package/dist/Index-CE3pWPzp.js +49 -0
  57. package/dist/Index-CMdPSsp4.js +38 -0
  58. package/dist/Index-CNhBDG2e.js +126 -0
  59. package/dist/Index-CdsOdgG2.js +28 -0
  60. package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
  61. package/dist/Index-CpxzwwQS.js +52 -0
  62. package/dist/Index-CxTwWRD9.js +93 -0
  63. package/dist/Index-D9WFWlE6.js +140 -0
  64. package/dist/Index-D9bulLeI.js +39 -0
  65. package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
  66. package/dist/Index-DR-sGE3Y.js +25 -0
  67. package/dist/Index-DRoOW5Pn.js +163 -0
  68. package/dist/Index-DTn47-hP.js +74 -0
  69. package/dist/Index-DeGDlj0B.js +68 -0
  70. package/dist/Index-DhYYK4bK.js +28 -0
  71. package/dist/Index-Dssdb-0Z.js +629 -0
  72. package/dist/Index-OcBnU480.js +200 -0
  73. package/dist/Index-Qh_8JqAv.js +3477 -0
  74. package/dist/Index-W10PQb8i.js +102 -0
  75. package/dist/Index-lbWFEELM.js +4 -0
  76. package/dist/Index-qFAg7VVU.js +1098 -0
  77. package/dist/Index-rDndJKo1.js +160 -0
  78. package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
  79. package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
  80. package/dist/InputToggleRow-DJarYsVL.js +99 -0
  81. package/dist/ManualPopover-BMrkEHtV.js +65 -0
  82. package/dist/MediaWrapper-BYdVpmov.js +18 -0
  83. package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
  84. package/dist/PackageGroup-q7_oBOqw.js +1060 -0
  85. package/dist/PdfTerms-DBEClYQ5.js +34 -0
  86. package/dist/PdfViewer-C_y5sqXB.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
  88. package/dist/PriceHeader-BSwv3mzc.js +488 -0
  89. package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
  90. package/dist/SendForm-DfmBbhp9.js +6689 -0
  91. package/dist/Setup-BC1feKr_.js +47 -0
  92. package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
  94. package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
  95. package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
  96. package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
  97. package/dist/UploadModal-1OWPRxA5.js +134 -0
  98. package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
  99. package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
  100. package/dist/VideoSelectModal-CSv67eA8.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
  105. package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
  106. package/dist/helpers-ChwW54Ex.js +46 -0
  107. package/dist/index-BMZle8Ew.js +513 -0
  108. package/dist/index-Bf-fiKJf.js +268 -0
  109. package/dist/index-Bg4JRi5S.js +125 -0
  110. package/dist/index-C7chK2UD.js +3525 -0
  111. package/dist/index-CR52qIBO.js +149 -0
  112. package/dist/index-D1x9O_nJ.js +188 -0
  113. package/dist/index-YFcPqc9m.js +508 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-DI0diChK.js +57570 -0
  117. package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
  118. package/dist/omit-DpjD7Dj9.js +56 -0
  119. package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
  120. package/dist/splitpanes-BypKTSRL.js +342 -0
  121. package/dist/template-Dzexob5I.js +1572 -0
  122. package/dist/tippy.esm-0UMN6kWf.js +1994 -0
  123. package/dist/useTermsModal-DzH_PDFP.js +87 -0
  124. package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
  125. package/dist/validation-B-omH73u.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-Br6IhwGH.js +0 -48
  129. package/dist/AnswerModal-CsWltR6j.js +0 -3879
  130. package/dist/AttachmentItem-BG7FuSCD.js +0 -85
  131. package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
  132. package/dist/BaseUpload-BfEurAAV.js +0 -1977
  133. package/dist/BlockMedia-Bo3OfNSU.js +0 -76
  134. package/dist/CCallout-CAjM8-1X.js +0 -58
  135. package/dist/CDropdownItem-CN7gSfgY.js +0 -640
  136. package/dist/CFormField-Clvcf2Jh.js +0 -240
  137. package/dist/CPhoneInput-CEHXh5jM.js +0 -138
  138. package/dist/CPriceInput-D2c07SXp.js +0 -116
  139. package/dist/CSelect-Cz2IPzxS.js +0 -91
  140. package/dist/CSkeleton-AsnvnD-m.js +0 -55
  141. package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
  142. package/dist/ClientModal-CgUhWZ5L.js +0 -666
  143. package/dist/ColorPicker-IFGHqH-u.js +0 -2879
  144. package/dist/CompanyModal-TLSBFo3U.js +0 -147
  145. package/dist/ContentWrapper-HClxKPuT.js +0 -190
  146. package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
  147. package/dist/DocAnswer-CTV_Bpt7.js +0 -36
  148. package/dist/DocDetails-CQe5htXj.js +0 -263
  149. package/dist/DocForm-6Efv5_oz.js +0 -5017
  150. package/dist/DocFormSend-DbXcklxU.js +0 -146
  151. package/dist/DocLinks-BO545zbL.js +0 -38
  152. package/dist/DocModalBase-DXHNJ-6i.js +0 -28
  153. package/dist/DocPrint-Bf2U4FQN.js +0 -240
  154. package/dist/DocReceipt-CWXvC7bY.js +0 -217
  155. package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
  156. package/dist/DocTimeline-DGVOk8-2.js +0 -485
  157. package/dist/DocumentClient-Das9BaJ7.js +0 -136
  158. package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
  159. package/dist/DocumentLogotype-DLncJJAB.js +0 -92
  160. package/dist/DocumentVoided-CcI9lX27.js +0 -25
  161. package/dist/EmbedInput-BPdy0lGS.js +0 -117
  162. package/dist/EmbedSettings-L2iwYLQK.js +0 -74
  163. package/dist/ErrorCallout-Ds_tBT02.js +0 -27
  164. package/dist/FilePreviewModal-hxUu330p.js +0 -81
  165. package/dist/Flag-1-HcT5Dz.js +0 -46
  166. package/dist/HeaderSettings-C27fMugK.js +0 -440
  167. package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
  168. package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
  169. package/dist/Index-5BOWxcPG.js +0 -26
  170. package/dist/Index-B1Odktov.js +0 -754
  171. package/dist/Index-B3d5BjEn.js +0 -25
  172. package/dist/Index-B3sSU_4X.js +0 -54
  173. package/dist/Index-B5Dqsh3K.js +0 -150
  174. package/dist/Index-B6aO1c_w.js +0 -62
  175. package/dist/Index-BGfICxJQ.js +0 -643
  176. package/dist/Index-BHopC0hv.js +0 -24
  177. package/dist/Index-BJXcSmp_.js +0 -55
  178. package/dist/Index-BQe6QjQZ.js +0 -25
  179. package/dist/Index-BmXx_x6t.js +0 -77
  180. package/dist/Index-C692qMTG.js +0 -294
  181. package/dist/Index-CEvbw-3i.js +0 -41
  182. package/dist/Index-CYSULnpn.js +0 -32
  183. package/dist/Index-CdtYzwAM.js +0 -107
  184. package/dist/Index-CetF2FW0.js +0 -230
  185. package/dist/Index-Cv6XLM20.js +0 -73
  186. package/dist/Index-Cwy8ff76.js +0 -154
  187. package/dist/Index-D34z4UEY.js +0 -84
  188. package/dist/Index-DNCei-lp.js +0 -56
  189. package/dist/Index-DUbxgIYB.js +0 -2445
  190. package/dist/Index-DVwn_LLf.js +0 -28
  191. package/dist/Index-Dla-mesV.js +0 -146
  192. package/dist/Index-KtUkOPI2.js +0 -58
  193. package/dist/Index-LjnOTVJk.js +0 -66
  194. package/dist/Index-ky1SRtfY.js +0 -94
  195. package/dist/Index-mceZW2NX.js +0 -41
  196. package/dist/Index-tD3hZjh8.js +0 -144
  197. package/dist/Index-vM5kDtC2.js +0 -33
  198. package/dist/InputToggleRow-BmDuSbE2.js +0 -57
  199. package/dist/ManualPopover-CQfjPvFe.js +0 -60
  200. package/dist/MediaWrapper-DDzcjR6V.js +0 -23
  201. package/dist/PackageGroup-mAGXfZDv.js +0 -704
  202. package/dist/PdfTerms-BH_Nwf2h.js +0 -31
  203. package/dist/PdfViewer-mBLxI8bA.js +0 -383
  204. package/dist/PlainHtml-B7gUNNZd.js +0 -27
  205. package/dist/PriceHeader-DClYMPcq.js +0 -338
  206. package/dist/SendForm-Cxv_m8Rq.js +0 -1023
  207. package/dist/Setup-B90VDZTG.js +0 -50
  208. package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
  209. package/dist/ToggleBinding-DOeTcWzi.js +0 -42
  210. package/dist/UploadModal-DOPLVEpV.js +0 -95
  211. package/dist/VideoPlayerInput-1zG06elO.js +0 -97
  212. package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
  213. package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
  214. package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
  215. package/dist/debounce-Ch1d3526.js +0 -84
  216. package/dist/formValidationMixin-D_MzsHsR.js +0 -49
  217. package/dist/index-BNdbPq4J.js +0 -492
  218. package/dist/index-BXzugeJ6.js +0 -81
  219. package/dist/index-C5wcxrC6.js +0 -167
  220. package/dist/index-CgDOs7t4.js +0 -2700
  221. package/dist/index-Cj-_2coz.js +0 -351
  222. package/dist/index-DpqV5y0K.js +0 -102
  223. package/dist/main-BL_yzf2r.js +0 -57357
  224. package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
  225. package/dist/omit-Dfe_H1Ft.js +0 -31
  226. package/dist/simplebar.min-CRlLD1Oz.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-BX_w77tW.js +0 -18
  230. package/dist/tippy.esm-n4arfVzA.js +0 -1805
  231. package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,25 +1,23 @@
1
- import { m as g } from "./mapFormMixin-Cu_vkTP-.js";
2
- import { J as o, ax as u, b as h, n as l, ay as b, az as v, aA as a, aB as n } from "./main-BL_yzf2r.js";
3
- import { s as y, p as w } from "./splitpanes-BHUVsCZF.js";
4
- import { t as _ } from "./throttle-BX_w77tW.js";
5
- import { W as m } from "./DocumentLayout-4q8rmTVT.js";
6
- import { e as p } from "./dom-Ds4ypDrd.js";
7
- import { d as x } from "./debounce-Ch1d3526.js";
8
- const M = `
1
+ import { m as O } from "./mapFormMixin-Cgvwie9a.js";
2
+ import { ab as y, aS as $, bj as _, a9 as k, d as n, X as B, _ as C, e as l, o as c, b as u, s as f, F as S, k as N, n as V, v as b, l as L, bk as A, c as T, w as p, an as P, bl as I, bm as v, bn as w, f as x, B as R } from "./main-DI0diChK.js";
3
+ import { M as F, g as J } from "./splitpanes-BypKTSRL.js";
4
+ import { a as z } from "./DocumentLayout-BMHOt380.js";
5
+ import { e as j } from "./dom-CkTGWrfu.js";
6
+ const W = `
9
7
  /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}html{box-sizing:border-box;font-family:sans-serif}*,::after,::before{box-sizing:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,p,pre{margin:0}button{background:0 0;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{margin:0}*,::after,::before{border-width:0;border-style:solid;border-color:#dae1e7}img{border-style:solid}[type=button],[type=reset],[type=submit],button{border-radius:0}textarea{resize:vertical}img{max-width:100%;height:auto}button,input,optgroup,select,textarea{font-family:inherit}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:inherit;opacity:.5}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:inherit;opacity:.5}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:inherit;opacity:.5}input::placeholder,textarea::placeholder{color:inherit;opacity:.5}[role=button],button{cursor:pointer}table{border-collapse:collapse}
10
- `, S = (e, { _document: t, id: s, firstRender: i }) => `
8
+ `, q = (t, { _document: e, id: o, firstRender: a }) => `
11
9
  <!DOCTYPE html>
12
10
  <html>
13
11
  <head>
14
- <style>${M}</style>
15
- <style>${e.css}</style>
12
+ <style>${W}</style>
13
+ <style>${t.css}</style>
16
14
  </head>
17
15
  <body>
18
- ${e.html}
16
+ ${t.html}
19
17
  </body>
20
18
  <script>
21
- var doc = ${t};
22
- var firstRender = ${i};
19
+ var doc = ${e};
20
+ var firstRender = ${a};
23
21
  function getOuterHeight(el) {
24
22
  var height = el.clientHeight;
25
23
  var computedStyle = window.getComputedStyle(el);
@@ -32,7 +30,7 @@ const M = `
32
30
 
33
31
  function sendHeightMessage() {
34
32
  var message = JSON.stringify({
35
- id: '${s}',
33
+ id: '${o}',
36
34
  channel: 'customBlock',
37
35
  data: {
38
36
  height: getOuterHeight(document.body),
@@ -58,9 +56,9 @@ const M = `
58
56
  });
59
57
  <\/script>
60
58
  <script type="module">
61
- ${e.javascript}
59
+ ${t.javascript}
62
60
  <\/script>
63
- </html>`, f = {
61
+ </html>`, E = {
64
62
  name: "CustomView",
65
63
  props: {
66
64
  html: {
@@ -100,46 +98,47 @@ const M = `
100
98
  },
101
99
  methods: {
102
100
  updateView({
103
- firstRender: e = !1
101
+ firstRender: t = !1
104
102
  } = {}) {
105
- if (!this.$refs.iframe)
106
- return;
107
- const t = this._document.getRawData();
108
- this.setUsedPathValues(), this.$refs.iframe.srcdoc = S({
109
- html: o(this.html, t),
110
- css: o(this.css, t),
111
- javascript: o(this.javascript, t)
103
+ if (!this.$refs.iframe) return;
104
+ const e = this._document.getRawData();
105
+ this.setUsedPathValues(), this.$refs.iframe.srcdoc = q({
106
+ html: y(this.html, e),
107
+ css: y(this.css, e),
108
+ javascript: y(this.javascript, e)
112
109
  }, {
113
- _document: JSON.stringify(t),
114
- id: this._uid,
115
- firstRender: e
110
+ _document: JSON.stringify(e),
111
+ id: this.$.uid,
112
+ firstRender: t
116
113
  });
117
114
  },
118
115
  registerStoreListener() {
119
- this.sendDocumentUpdate = _(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((e) => {
116
+ this.sendDocumentUpdate = $(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((t) => {
120
117
  const {
121
- type: t
122
- } = e;
123
- (t === "forms/SET_FORM_VALUE" || t === "publicDocuments/SET_CURRENT_DOCUMENT_VALUE") && (this.sendDocumentUpdate(), ["html", "css", "javascript"].some((i) => {
124
- const c = u(this[i]);
125
- return Object.keys(c).some((d) => this.usedPathValues[d] !== h(this._document.getRawData(), d));
118
+ type: e
119
+ } = t;
120
+ (e === "forms/SET_FORM_VALUE" || e === "publicDocuments/SET_CURRENT_DOCUMENT_VALUE") && (this.sendDocumentUpdate(), ["html", "css", "javascript"].some((a) => {
121
+ const i = _(this[a]);
122
+ return Object.keys(i).some((s) => this.usedPathValues[s] !== k(this._document.getRawData(), s));
126
123
  }) && this.updateView());
127
124
  });
128
125
  },
129
126
  unregisterStoreListener() {
130
- var e;
131
- (e = this.storeListenerUnsubscribe) == null || e.call(this);
127
+ var t;
128
+ (t = this.storeListenerUnsubscribe) == null || t.call(this);
132
129
  },
133
130
  setUsedPathValues() {
134
- ["html", "css", "javascript"].forEach((e) => {
135
- const t = u(this[e]);
136
- Object.keys(t).forEach((s) => {
137
- this.usedPathValues[s] = h(this._document.getRawData(), s);
131
+ ["html", "css", "javascript"].forEach((t) => {
132
+ const e = _(this[t]);
133
+ Object.keys(e).forEach((o) => {
134
+ this.usedPathValues[o] = k(this._document.getRawData(), o);
138
135
  });
139
136
  });
140
137
  },
141
138
  // Update doc variable in iFrame
142
139
  sendDocMessage() {
140
+ const t = this.$refs.iframe;
141
+ if (!t || !t.contentWindow) return;
143
142
  const e = JSON.stringify({
144
143
  channel: "document",
145
144
  data: {
@@ -152,32 +151,31 @@ const M = `
152
151
  mounted() {
153
152
  this.updateView({
154
153
  firstRender: !0
155
- }), this.sendDocMessage(), window.addEventListener("message", (e) => {
156
- let t = null;
154
+ }), this.sendDocMessage(), window.addEventListener("message", (t) => {
155
+ let e = null;
157
156
  try {
158
- t = JSON.parse(e.data);
157
+ e = JSON.parse(t.data);
159
158
  } catch {
160
159
  }
161
- t && t.channel === "customBlock" && (t == null ? void 0 : t.id) === `${this._uid}` && this.$refs.iframe && (this.$refs.iframe.style.height = t.data.height + "px");
160
+ e && e.channel === "customBlock" && (e == null ? void 0 : e.id) === `${this.$.uid}` && this.$refs.iframe && (this.$refs.iframe.style.height = e.data.height + "px");
162
161
  }), this.registerStoreListener();
163
162
  },
164
- beforeDestroy() {
165
- var e, t;
166
- this.unregisterStoreListener(), (t = (e = this.sendDocumentUpdate) == null ? void 0 : e.cancel) == null || t.call(e);
163
+ beforeUnmount() {
164
+ var t, e;
165
+ this.unregisterStoreListener(), (e = (t = this.sendDocumentUpdate) == null ? void 0 : t.cancel) == null || e.call(t);
167
166
  },
168
- render(e) {
169
- return e("iframe", {
170
- attrs: {
171
- id: this._uid,
172
- sandbox: "allow-scripts",
173
- frameBorder: "0"
174
- },
167
+ render() {
168
+ return n("iframe", {
169
+ id: this.$.uid,
175
170
  ref: "iframe",
171
+ sandbox: "allow-scripts",
172
+ frameBorder: "0",
176
173
  class: "h-0 w-full"
177
- });
174
+ }, null);
178
175
  }
179
- }, z = {
176
+ }, K = {
180
177
  name: "MonacoEditor",
178
+ emits: ["change", "input"],
181
179
  props: {
182
180
  value: String,
183
181
  srcdoc: String,
@@ -219,14 +217,14 @@ const M = `
219
217
  }
220
218
  },
221
219
  components: {
222
- WithDimensions: m
220
+ WithDimensions: z
223
221
  },
224
222
  watch: {
225
223
  options: {
226
224
  deep: !0,
227
- handler(e) {
228
- var t;
229
- (t = this.editor) == null || t.updateOptions(e);
225
+ handler(t) {
226
+ var e;
227
+ (e = this.editor) == null || e.updateOptions(t);
230
228
  }
231
229
  },
232
230
  value() {
@@ -238,98 +236,101 @@ const M = `
238
236
  theme() {
239
237
  this.editor && window.monaco.editor.setTheme(this.theme);
240
238
  },
241
- disabled(e) {
242
- var t;
243
- (t = this.editor) == null || t.updateOptions({
244
- readOnly: e
239
+ disabled(t) {
240
+ var e;
241
+ (e = this.editor) == null || e.updateOptions({
242
+ readOnly: t
245
243
  });
246
244
  }
247
245
  },
248
246
  mounted() {
249
247
  this.loadMonaco().then(() => {
250
- var e;
251
- this.initMonaco(), (e = this.editor) == null || e.focus();
248
+ var t;
249
+ this.initMonaco(), (t = this.editor) == null || t.focus();
252
250
  });
253
251
  },
254
- beforeDestroy() {
255
- var e, t, s;
256
- (e = this.editor) == null || e.dispose(), (s = (t = this.codeChangeEmitter) == null ? void 0 : t.cancel) == null || s.call(t);
252
+ beforeUnmount() {
253
+ var t, e, o;
254
+ (t = this.editor) == null || t.dispose(), (o = (e = this.codeChangeEmitter) == null ? void 0 : e.cancel) == null || o.call(e);
257
255
  },
258
- render(e) {
259
- return e(m, {
260
- on: {
261
- width: () => {
262
- var t;
263
- return (t = this.editor) == null ? void 0 : t.layout();
264
- },
265
- height: () => {
266
- var t;
267
- return (t = this.editor) == null ? void 0 : t.layout();
268
- }
256
+ render() {
257
+ return n(z, {
258
+ onWidth: () => {
259
+ var t;
260
+ return (t = this.editor) == null ? void 0 : t.layout();
261
+ },
262
+ onHeight: () => {
263
+ var t;
264
+ return (t = this.editor) == null ? void 0 : t.layout();
269
265
  }
270
- }, [e("div")]);
266
+ }, {
267
+ default: () => [n("div", {
268
+ ref: "editorContainer",
269
+ style: "width: 100%; height: 100%"
270
+ }, null)]
271
+ });
271
272
  },
272
273
  methods: {
273
274
  async loadMonaco() {
274
- await p("https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js");
275
- const e = {
275
+ await j("https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js");
276
+ const t = {
276
277
  paths: {
277
278
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
278
279
  }
279
280
  };
280
- await new Promise((t, s) => {
281
- window.require.config(e), window.require(["vs/editor/editor.main"], t, s);
282
- }), await p("https://cdn.jsdelivr.net/npm/emmet-monaco-es@5.1.0/dist/emmet-monaco.js");
281
+ await new Promise((e, o) => {
282
+ window.require.config(t), window.require(["vs/editor/editor.main"], e, o);
283
+ }), await j("https://cdn.jsdelivr.net/npm/emmet-monaco-es@5.1.0/dist/emmet-monaco.js");
283
284
  },
284
285
  initMonaco() {
285
286
  window.emmetMonaco.emmetHTML(window.monaco), window.emmetMonaco.emmetCSS(window.monaco);
286
287
  const {
287
- value: e,
288
- language: t,
289
- theme: s,
290
- options: i
288
+ value: t,
289
+ language: e,
290
+ theme: o,
291
+ options: a
291
292
  } = this;
292
- Object.assign(i, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$el, {
293
- value: e,
294
- language: t,
295
- theme: s,
293
+ Object.assign(a, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$refs.editorContainer, {
294
+ value: t,
295
+ language: e,
296
+ theme: o,
296
297
  readOnly: this.disabled,
297
- ...i
298
+ ...a
298
299
  }), this._editorMounted(this.editor);
299
300
  },
300
301
  getEditor() {
301
302
  return this.editor ? this.editor : null;
302
303
  },
303
- setValue(e) {
304
- const t = this.getEditor();
305
- t == null || t.setValue(e);
304
+ setValue(t) {
305
+ const e = this.getEditor();
306
+ e == null || e.setValue(t);
306
307
  },
307
308
  getValue() {
308
- const e = this.getEditor();
309
- return e ? e.getValue() : "";
309
+ const t = this.getEditor();
310
+ return t ? t.getValue() : "";
310
311
  },
311
312
  _editorBeforeMount() {
312
313
  return this.editorBeforeMount(window.monaco) || {};
313
314
  },
314
- _editorMounted(e) {
315
- this.editorMounted(e, window.monaco), this.codeChangeEmitter = x((t, s) => this.emitChange(t, s), this.debounceTime), e.onDidChangeModelContent((t) => {
316
- const s = this.getValue();
317
- this.codeChangeEmitter(s, t);
315
+ _editorMounted(t) {
316
+ this.editorMounted(t, window.monaco), this.codeChangeEmitter = B((e, o) => this.emitChange(e, o), this.debounceTime), t.onDidChangeModelContent((e) => {
317
+ const o = this.getValue();
318
+ this.codeChangeEmitter(o, e);
318
319
  });
319
320
  },
320
- emitChange(e, t) {
321
- this.$emit("change", e, t), this.$emit("input", e);
321
+ emitChange(t, e) {
322
+ this.$emit("change", t, e), this.$emit("input", t);
322
323
  }
323
324
  }
324
- }, C = {
325
+ }, Y = {
325
326
  html: '<path fill="#e44f26" d="M5.902 27.201L3.655 2h24.69l-2.25 25.197L15.985 30L5.902 27.201z"></path><path fill="#f1662a" d="m16 27.858l8.17-2.265l1.922-21.532H16v23.797z"></path><path fill="#ebebeb" d="M16 13.407h-4.09l-.282-3.165H16V7.151H8.25l.074.83l.759 8.517H16v-3.091zm0 8.027l-.014.004l-3.442-.929l-.22-2.465H9.221l.433 4.852l6.332 1.758l.014-.004v-3.216z"></path><path fill="#fff" d="M15.989 13.407v3.091h3.806l-.358 4.009l-3.448.93v3.216l6.337-1.757l.046-.522l.726-8.137l.076-.83h-7.185zm0-6.256v3.091h7.466l.062-.694l.141-1.567l.074-.83h-7.743z"></path>',
326
327
  css: '<path fill="#1572b6" d="M5.902 27.201L3.656 2h24.688l-2.249 25.197L15.985 30L5.902 27.201z"></path><path fill="#33a9dc" d="m16 27.858l8.17-2.265l1.922-21.532H16v23.797z"></path><path fill="#fff" d="M16 13.191h4.09l.282-3.165H16V6.935h7.75l-.074.829l-.759 8.518H16v-3.091z"></path><path fill="#ebebeb" d="m16.019 21.218l-.014.004l-3.442-.93l-.22-2.465H9.24l.433 4.853l6.331 1.758l.015-.004v-3.216z"></path><path fill="#fff" d="m19.827 16.151l-.372 4.139l-3.447.93v3.216l6.336-1.756l.047-.522l.537-6.007h-3.101z"></path><path fill="#ebebeb" d="M16.011 6.935v3.091H8.545l-.062-.695l-.141-1.567l-.074-.829h7.743zM16 13.191v3.091h-3.399l-.062-.695l-.14-1.567l-.074-.829H16z"></path>',
327
328
  javascript: '<path fill="#f5de19" d="M2 2h28v28H2z"></path><path d="M20.809 23.875a2.866 2.866 0 0 0 2.6 1.6c1.09 0 1.787-.545 1.787-1.3c0-.9-.716-1.222-1.916-1.747l-.658-.282c-1.9-.809-3.16-1.822-3.16-3.964c0-1.973 1.5-3.476 3.853-3.476a3.889 3.889 0 0 1 3.742 2.107L25 18.128A1.789 1.789 0 0 0 23.311 17a1.145 1.145 0 0 0-1.259 1.128c0 .789.489 1.109 1.618 1.6l.658.282c2.236.959 3.5 1.936 3.5 4.133c0 2.369-1.861 3.667-4.36 3.667a5.055 5.055 0 0 1-4.795-2.691Zm-9.295.228c.413.733.789 1.353 1.693 1.353c.864 0 1.41-.338 1.41-1.653v-8.947h2.631v8.982c0 2.724-1.6 3.964-3.929 3.964a4.085 4.085 0 0 1-3.947-2.4Z"></path>',
328
329
  json: '<path fill="currentColor" d="M31 11v10h-2l-2-6v6h-2V11h2l2 6v-6h2zm-9.666 10h-2.667A1.668 1.668 0 0 1 17 19.334v-6.667A1.668 1.668 0 0 1 18.666 11h2.667A1.668 1.668 0 0 1 23 12.666v6.667A1.668 1.668 0 0 1 21.334 21zM19 19h2v-6h-2zm-5.666 2H9v-2h4v-2h-2a2.002 2.002 0 0 1-2-2v-2.334A1.668 1.668 0 0 1 10.666 11H15v2h-4v2h2a2.002 2.002 0 0 1 2 2v2.333A1.668 1.668 0 0 1 13.334 21zm-8 0H2.667A1.668 1.668 0 0 1 1 19.334V17h2v2h2v-8h2v8.334A1.668 1.668 0 0 1 5.333 21z"></path>'
329
- }, k = {
330
+ }, Z = {
330
331
  name: "Tabs",
331
332
  props: {
332
- value: {
333
+ modelValue: {
333
334
  type: String,
334
335
  default: ""
335
336
  },
@@ -342,44 +343,73 @@ const M = `
342
343
  default: !1
343
344
  }
344
345
  },
346
+ emits: ["update:modelValue", "update:hLayout", "close"],
345
347
  data() {
346
348
  return {
347
- icons: C
349
+ icons: Y
348
350
  };
349
351
  }
350
- };
351
- var j = function() {
352
- var t = this, s = t._self._c;
353
- return s("div", { staticClass: "tabs-root" }, [s("div", { staticClass: "simple-btn", on: { click: function(i) {
354
- return t.$emit("close");
355
- } } }, [s("CIcon", { attrs: { type: "x", size: "18" } })], 1), t._l(t.items, function(i) {
356
- return s("div", { key: i.value, staticClass: "tab-item", class: {
357
- "tab-item-active": t.value === i.value
358
- }, on: { click: function(c) {
359
- return t.$emit("input", i.value);
360
- } } }, [s("svg", { staticStyle: { "margin-right": "0.5em" }, attrs: { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 32 32" }, domProps: { innerHTML: t._s(t.icons[i.value]) } }), s("span", { domProps: { textContent: t._s(i.text) } })]);
361
- }), s("div", { staticClass: "simple-btn", staticStyle: { "margin-left": "auto" }, on: { click: function(i) {
362
- return t.$emit("update:hLayout", !t.hLayout);
363
- } } }, [s("CIcon", { staticStyle: { transition: "transform 150ms" }, style: {
364
- transform: t.hLayout ? "rotate(0deg)" : "rotate(90deg)"
365
- }, attrs: { type: "layout", size: "18" } })], 1)], 2);
366
- }, $ = [], L = /* @__PURE__ */ l(
367
- k,
368
- j,
369
- $,
370
- !1,
371
- null,
372
- "2b587c3e"
373
- );
374
- const V = L.exports, T = {
352
+ }, X = { class: "tabs-root" }, G = ["onClick"], Q = ["innerHTML"], tt = ["textContent"];
353
+ function et(t, e, o, a, i, s) {
354
+ const m = l("CIcon");
355
+ return c(), u("div", X, [
356
+ f("div", {
357
+ class: "simple-btn",
358
+ onClick: e[0] || (e[0] = (r) => t.$emit("close"))
359
+ }, [
360
+ n(m, {
361
+ type: "x",
362
+ size: "18"
363
+ })
364
+ ]),
365
+ (c(!0), u(S, null, N(o.items, (r) => (c(), u("div", {
366
+ key: r.value,
367
+ class: V([{
368
+ "tab-item-active": o.modelValue === r.value
369
+ }, "tab-item"]),
370
+ onClick: (g) => t.$emit("update:modelValue", r.value)
371
+ }, [
372
+ (c(), u("svg", {
373
+ xmlns: "http://www.w3.org/2000/svg",
374
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
375
+ "aria-hidden": "true",
376
+ role: "img",
377
+ width: "18",
378
+ height: "18",
379
+ preserveAspectRatio: "xMidYMid meet",
380
+ viewBox: "0 0 32 32",
381
+ style: { "margin-right": "0.5em" },
382
+ innerHTML: i.icons[r.value]
383
+ }, null, 8, Q)),
384
+ f("span", {
385
+ textContent: b(r.text)
386
+ }, null, 8, tt)
387
+ ], 10, G))), 128)),
388
+ f("div", {
389
+ style: { "margin-left": "auto" },
390
+ class: "simple-btn",
391
+ onClick: e[1] || (e[1] = (r) => t.$emit("update:hLayout", !o.hLayout))
392
+ }, [
393
+ n(m, {
394
+ style: L([{
395
+ transform: o.hLayout ? "rotate(0deg)" : "rotate(90deg)"
396
+ }, { transition: "transform 150ms" }]),
397
+ type: "layout",
398
+ size: "18"
399
+ }, null, 8, ["style"])
400
+ ])
401
+ ]);
402
+ }
403
+ const ot = /* @__PURE__ */ C(Z, [["render", et], ["__scopeId", "data-v-477b66fe"]]), st = {
375
404
  name: "CustomModal",
376
405
  components: {
377
- Tabs: V,
378
- MonacoEditor: z,
379
- Splitpanes: y,
380
- Pane: w,
381
- CustomView: f
406
+ Tabs: ot,
407
+ MonacoEditor: K,
408
+ Splitpanes: F,
409
+ Pane: J,
410
+ CustomView: E
382
411
  },
412
+ emits: ["update:html", "update:css", "update:javascript", "update:json"],
383
413
  props: {
384
414
  _document: {
385
415
  type: Object,
@@ -408,7 +438,7 @@ const V = L.exports, T = {
408
438
  { text: "JS", value: "javascript" },
409
439
  { text: "Data", value: "json", disabled: !0 }
410
440
  ],
411
- modalName: `customModal${this._uid}`
441
+ modalName: `customModal${this.$.uid}`
412
442
  };
413
443
  },
414
444
  computed: {
@@ -416,19 +446,19 @@ const V = L.exports, T = {
416
446
  return this[this.currentTab];
417
447
  },
418
448
  currentItem() {
419
- return this.items.find(({ value: e }) => e === this.currentTab) || {};
449
+ return this.items.find(({ value: t }) => t === this.currentTab) || {};
420
450
  },
421
451
  json() {
422
- const e = this._document.getRawData(), t = this.removeUnwantedKeys(e);
423
- return JSON.stringify(t, null, 2);
452
+ const t = this._document.getRawData(), e = this.removeUnwantedKeys(t);
453
+ return JSON.stringify(e, null, 2);
424
454
  }
425
455
  },
426
456
  methods: {
427
457
  show() {
428
458
  this.$modal.show(this.modalName);
429
459
  },
430
- removeUnwantedKeys(e) {
431
- const t = [
460
+ removeUnwantedKeys(t) {
461
+ const e = [
432
462
  "company.CompanyAccount",
433
463
  "company.CompanyBranding",
434
464
  "company.CompanyCertificates",
@@ -436,40 +466,79 @@ const V = L.exports, T = {
436
466
  "company.CompanySectors",
437
467
  "companyUser.connectedUsers",
438
468
  "template"
439
- ], s = { ...e };
440
- return t.forEach((i) => {
441
- b(s, i);
442
- }), s;
469
+ ], o = { ...t };
470
+ return e.forEach((a) => {
471
+ A(o, a);
472
+ }), o;
443
473
  }
444
474
  }
445
- };
446
- var E = function() {
447
- var t = this, s = t._self._c;
448
- return s("portal", { attrs: { to: "modal" } }, [s("modal", { attrs: { name: t.modalName, adaptive: !0, width: "100%", height: "100%", classes: "overflow-visible primary" } }, [s("Splitpanes", { staticClass: "root font-inter", attrs: { horizontal: t.hLayout } }, [s("Pane", [s("Tabs", { attrs: { items: t.items, "h-layout": t.hLayout }, on: { "update:hLayout": function(i) {
449
- t.hLayout = i;
450
- }, "update:h-layout": function(i) {
451
- t.hLayout = i;
452
- }, close: function(i) {
453
- return t.$modal.hide(t.modalName);
454
- } }, model: { value: t.currentTab, callback: function(i) {
455
- t.currentTab = i;
456
- }, expression: "currentTab" } }), s("MonacoEditor", { staticStyle: { width: "100%", height: "100%" }, attrs: { language: t.currentTab, value: t.currentValue, disabled: t.currentItem.disabled }, on: { change: function(i) {
457
- return t.$emit(`update:${t.currentTab}`, i);
458
- } }, nativeOn: { keyup: function(i) {
459
- i.stopPropagation();
460
- } } })], 1), s("Pane", [s("div", { staticStyle: { height: "100%", width: "100%", overflow: "auto" } }, [s("CustomView", { attrs: { html: t.html, css: t.css, javascript: t.javascript, _document: t._document } })], 1)])], 1)], 1)], 1);
461
- }, D = [], H = /* @__PURE__ */ l(
462
- T,
463
- E,
464
- D,
465
- !1,
466
- null,
467
- "3e3d214d"
468
- );
469
- const O = H.exports, r = v(), U = {
475
+ }, it = { style: { height: "100%", width: "100%", overflow: "auto" } };
476
+ function nt(t, e, o, a, i, s) {
477
+ const m = l("Tabs"), r = l("MonacoEditor"), g = l("Pane"), d = l("CustomView"), H = l("Splitpanes"), D = l("modal"), U = l("portal");
478
+ return c(), T(U, { to: "modal" }, {
479
+ default: p(() => [
480
+ n(D, {
481
+ name: i.modalName,
482
+ adaptive: !0,
483
+ width: "100%",
484
+ height: "100%",
485
+ classes: "overflow-visible primary"
486
+ }, {
487
+ default: p(() => [
488
+ n(H, {
489
+ class: "root font-inter",
490
+ horizontal: i.hLayout
491
+ }, {
492
+ default: p(() => [
493
+ n(g, null, {
494
+ default: p(() => [
495
+ n(m, {
496
+ modelValue: i.currentTab,
497
+ "onUpdate:modelValue": e[0] || (e[0] = (h) => i.currentTab = h),
498
+ "h-layout": i.hLayout,
499
+ "onUpdate:hLayout": e[1] || (e[1] = (h) => i.hLayout = h),
500
+ items: i.items,
501
+ onClose: e[2] || (e[2] = (h) => t.$modal.hide(i.modalName))
502
+ }, null, 8, ["modelValue", "h-layout", "items"]),
503
+ n(r, {
504
+ style: { width: "100%", height: "100%" },
505
+ language: i.currentTab,
506
+ value: s.currentValue,
507
+ disabled: s.currentItem.disabled,
508
+ onChange: e[3] || (e[3] = (h) => t.$emit(`update:${i.currentTab}`, h)),
509
+ onKeyup: e[4] || (e[4] = P(() => {
510
+ }, ["stop"]))
511
+ }, null, 8, ["language", "value", "disabled"])
512
+ ]),
513
+ _: 1
514
+ }),
515
+ n(g, null, {
516
+ default: p(() => [
517
+ f("div", it, [
518
+ n(d, {
519
+ html: o.html,
520
+ css: o.css,
521
+ javascript: o.javascript,
522
+ _document: o._document
523
+ }, null, 8, ["html", "css", "javascript", "_document"])
524
+ ])
525
+ ]),
526
+ _: 1
527
+ })
528
+ ]),
529
+ _: 1
530
+ }, 8, ["horizontal"])
531
+ ]),
532
+ _: 1
533
+ }, 8, ["name"])
534
+ ]),
535
+ _: 1
536
+ });
537
+ }
538
+ const at = /* @__PURE__ */ C(st, [["render", nt], ["__scopeId", "data-v-35c6b94a"]]), M = I(), rt = {
470
539
  components: {
471
- CustomView: f,
472
- CustomModal: O
540
+ CustomView: E,
541
+ CustomModal: at
473
542
  },
474
543
  i18nOptions: {
475
544
  namespaces: "Custom",
@@ -486,7 +555,7 @@ const O = H.exports, r = v(), U = {
486
555
  }
487
556
  }
488
557
  },
489
- mixins: [g(["custom"])],
558
+ mixins: [O(["custom"])],
490
559
  inject: {
491
560
  setOpenDrawer: {
492
561
  type: Function,
@@ -500,38 +569,38 @@ const O = H.exports, r = v(), U = {
500
569
  },
501
570
  computed: {
502
571
  isEdited() {
503
- return this.custom ? this.custom.html !== r.html || this.custom.css !== r.css || this.custom.javascript !== r.javascript : !1;
572
+ return this.custom ? this.custom.html !== M.html || this.custom.css !== M.css || this.custom.javascript !== M.javascript : !1;
504
573
  },
505
574
  html: {
506
575
  get() {
507
- return this.custom.html ? a(this.custom.html) : "";
576
+ return this.custom.html ? v(this.custom.html) : "";
508
577
  },
509
- set(e) {
578
+ set(t) {
510
579
  this.custom = {
511
580
  ...this.custom,
512
- html: n(e)
581
+ html: w(t)
513
582
  };
514
583
  }
515
584
  },
516
585
  css: {
517
586
  get() {
518
- return this.custom.css ? a(this.custom.css) : "";
587
+ return this.custom.css ? v(this.custom.css) : "";
519
588
  },
520
- set(e) {
589
+ set(t) {
521
590
  this.custom = {
522
591
  ...this.custom,
523
- css: n(e)
592
+ css: w(t)
524
593
  };
525
594
  }
526
595
  },
527
596
  javascript: {
528
597
  get() {
529
- return this.custom.javascript ? a(this.custom.javascript) : "";
598
+ return this.custom.javascript ? v(this.custom.javascript) : "";
530
599
  },
531
- set(e) {
600
+ set(t) {
532
601
  this.custom = {
533
602
  ...this.custom,
534
- javascript: n(e)
603
+ javascript: w(t)
535
604
  };
536
605
  }
537
606
  }
@@ -544,31 +613,67 @@ const O = H.exports, r = v(), U = {
544
613
  this.$refs.customModal.show();
545
614
  }
546
615
  }
547
- };
548
- var P = function() {
549
- var t = this, s = t._self._c;
550
- return s("div", { staticClass: "custom-root", class: {
551
- "is-empty": !t.isEdited
552
- }, style: t.canEdit && { minHeight: "100px" }, on: { "&mouseover": function(i) {
553
- t.showControls = !0;
554
- }, "&mouseleave": function(i) {
555
- t.showControls = !1;
556
- } } }, [t.isEdited ? s("CustomView", { staticStyle: { width: "100%", "min-height": "0" }, attrs: { html: t.html, css: t.css, javascript: t.javascript, _document: t._document } }) : t._e(), t.isForm ? [t.canEdit && !t.isEdited ? s("div", { staticClass: "flex flex-col items-center justify-center text-center", staticStyle: { padding: "calc(3 * var(--rem)) calc(1 * var(--rem))", "line-height": "1.5", color: "white" } }, [s("div", { staticStyle: { "font-weight": "500", "margin-bottom": "0.25em", opacity: "0.98" }, domProps: { textContent: t._s(t.$t("title")) } }), s("div", { staticStyle: { "font-size": "14px", "margin-bottom": "calc(2 * var(--rem))", color: "hsl(218deg 24% 60%)", "max-width": "40ch" }, domProps: { textContent: t._s(t.$t("text")) } }), s("CButton", { staticStyle: { "font-size": "14px", "border-radius": "8px", padding: "12px 12px", height: "initial", "box-shadow": "rgb(0, 0, 0, 50%) 0px 10px 40px" }, attrs: { size: "normal", "icon-left": "code", type: "secondary" }, on: { click: t.openModal } }, [t._v(" " + t._s(t.$t("action")) + " ")])], 1) : t._e()] : t._e(), s("CustomModal", { ref: "customModal", attrs: { html: t.html, css: t.css, javascript: t.javascript, _document: t._document }, on: { "update:html": function(i) {
557
- t.html = i;
558
- }, "update:css": function(i) {
559
- t.css = i;
560
- }, "update:javascript": function(i) {
561
- t.javascript = i;
562
- } } })], 2);
563
- }, R = [], A = /* @__PURE__ */ l(
564
- U,
565
- P,
566
- R,
567
- !1,
568
- null,
569
- null
570
- );
571
- const K = A.exports;
616
+ }, lt = {
617
+ key: 0,
618
+ class: "flex flex-col items-center justify-center text-center",
619
+ style: { padding: `calc(3 * var(--rem)) calc(1 * var(--rem))
620
+ calc(4 * var(--rem)) calc(1 * var(--rem))`, "line-height": "1.5", color: "white" }
621
+ }, dt = ["textContent"], ct = ["textContent"];
622
+ function ut(t, e, o, a, i, s) {
623
+ const m = l("CustomView"), r = l("CButton"), g = l("CustomModal");
624
+ return c(), u("div", {
625
+ class: V(["custom-root", {
626
+ "is-empty": !s.isEdited
627
+ }]),
628
+ style: L(t.canEdit && { minHeight: "100px" }),
629
+ onMouseoverPassive: e[3] || (e[3] = (d) => i.showControls = !0),
630
+ onMouseleavePassive: e[4] || (e[4] = (d) => i.showControls = !1)
631
+ }, [
632
+ s.isEdited ? (c(), T(m, {
633
+ key: 0,
634
+ html: s.html,
635
+ css: s.css,
636
+ javascript: s.javascript,
637
+ _document: t._document,
638
+ style: { width: "100%", "min-height": "0" }
639
+ }, null, 8, ["html", "css", "javascript", "_document"])) : x("", !0),
640
+ t.isForm ? (c(), u(S, { key: 1 }, [
641
+ t.canEdit && !s.isEdited ? (c(), u("div", lt, [
642
+ f("div", {
643
+ style: { "font-weight": "500", "margin-bottom": "0.25em", opacity: "0.98" },
644
+ textContent: b(t.$t("title"))
645
+ }, null, 8, dt),
646
+ f("div", {
647
+ style: { "font-size": "14px", "margin-bottom": "calc(2 * var(--rem))", color: "hsl(218deg 24% 60%)", "max-width": "40ch" },
648
+ textContent: b(t.$t("text"))
649
+ }, null, 8, ct),
650
+ n(r, {
651
+ size: "normal",
652
+ style: { "font-size": "14px", "border-radius": "8px", padding: "12px 12px", height: "initial", "box-shadow": "rgb(0, 0, 0, 50%) 0px 10px 40px" },
653
+ "icon-left": "code",
654
+ type: "secondary",
655
+ onClick: s.openModal
656
+ }, {
657
+ default: p(() => [
658
+ R(b(t.$t("action")), 1)
659
+ ]),
660
+ _: 1
661
+ }, 8, ["onClick"])
662
+ ])) : x("", !0)
663
+ ], 64)) : x("", !0),
664
+ n(g, {
665
+ ref: "customModal",
666
+ html: s.html,
667
+ "onUpdate:html": e[0] || (e[0] = (d) => s.html = d),
668
+ css: s.css,
669
+ "onUpdate:css": e[1] || (e[1] = (d) => s.css = d),
670
+ javascript: s.javascript,
671
+ "onUpdate:javascript": e[2] || (e[2] = (d) => s.javascript = d),
672
+ _document: t._document
673
+ }, null, 8, ["html", "css", "javascript", "_document"])
674
+ ], 38);
675
+ }
676
+ const bt = /* @__PURE__ */ C(rt, [["render", ut]]);
572
677
  export {
573
- K as default
678
+ bt as default
574
679
  };