@cling-se/widget 0.17.0 → 1.0.0-beta.2

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/dist/AddClientCallout-e8d19R3f.js +101 -0
  2. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  3. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  4. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  5. package/dist/BlockMedia-CW5wgipC.js +103 -0
  6. package/dist/CCallout-Cy2eeIYd.js +104 -0
  7. package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
  8. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  9. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  10. package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  11. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  12. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  13. package/dist/CSelect-DgnT07Hk.js +98 -0
  14. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  15. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  16. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  17. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  18. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  19. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  20. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  21. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  22. package/dist/DocDetails-CStEwWnU.js +448 -0
  23. package/dist/DocForm-BOoILf5E.js +6748 -0
  24. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  25. package/dist/DocLinks-BRX5QzNe.js +36 -0
  26. package/dist/DocModalBase-D72yWj-x.js +29 -0
  27. package/dist/DocPrint-BI1LXUPE.js +399 -0
  28. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  29. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  30. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  31. package/dist/DocTimeline-DCwofzuk.js +537 -0
  32. package/dist/DocumentClient-vJdxCB53.js +90 -0
  33. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  34. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  35. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  36. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  37. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  38. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  39. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  40. package/dist/Flag-BwTgCNHO.js +41 -0
  41. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  42. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  43. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  44. package/dist/Index-0_3ULrWX.js +126 -0
  45. package/dist/Index-4NPe0sfX.js +629 -0
  46. package/dist/Index-B1uA0FF6.js +4 -0
  47. package/dist/Index-BBkCYm2q.js +201 -0
  48. package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
  49. package/dist/Index-BEMlsYwJ.js +68 -0
  50. package/dist/Index-BRBhJ6kz.js +21 -0
  51. package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
  52. package/dist/Index-BcUNnxLC.js +1098 -0
  53. package/dist/Index-Bo6ExBUL.js +93 -0
  54. package/dist/Index-BvMPCgdH.js +102 -0
  55. package/dist/Index-Bx5TOI9k.js +74 -0
  56. package/dist/Index-C7GZS8EI.js +16 -0
  57. package/dist/Index-CNWhm07R.js +25 -0
  58. package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
  59. package/dist/Index-CRzsnIij.js +159 -0
  60. package/dist/Index-CeSG1C41.js +140 -0
  61. package/dist/Index-CjfjdZj5.js +52 -0
  62. package/dist/Index-CskKmZpd.js +363 -0
  63. package/dist/Index-D5qwbCo1.js +28 -0
  64. package/dist/Index-D8Ae1Txt.js +228 -0
  65. package/dist/Index-DE8aenDB.js +3452 -0
  66. package/dist/Index-DI5EB5Rt.js +39 -0
  67. package/dist/Index-DaV57YPP.js +163 -0
  68. package/dist/Index-DbwkmoyM.js +38 -0
  69. package/dist/Index-Df9skok6.js +70 -0
  70. package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
  71. package/dist/Index-Dw1CO5F9.js +76 -0
  72. package/dist/Index-PZXyOoVb.js +87 -0
  73. package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
  74. package/dist/Index-cjKGSiDi.js +136 -0
  75. package/dist/Index-m-goRuKD.js +49 -0
  76. package/dist/Index-rGeWbLcB.js +47 -0
  77. package/dist/Index-vrljNp6G.js +28 -0
  78. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  79. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  80. package/dist/ManualPopover-BONBJIUA.js +57 -0
  81. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  82. package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
  83. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  84. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  85. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  86. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  87. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  88. package/dist/SearchApi-B7lXgUY6.js +137 -0
  89. package/dist/SendForm-BcD0xSvB.js +7031 -0
  90. package/dist/Setup-C2qaYDei.js +47 -0
  91. package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
  92. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  93. package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
  94. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  95. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  96. package/dist/UploadModal-C_X2NjVY.js +134 -0
  97. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  98. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  99. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  100. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  101. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  102. package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
  103. package/dist/dom-CkTGWrfu.js +69 -0
  104. package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  105. package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
  106. package/dist/helpers-CPW--XIz.js +44 -0
  107. package/dist/index-BjiGCJPI.js +149 -0
  108. package/dist/index-CFNv6OvX.js +188 -0
  109. package/dist/index-Cx71On5Z.js +508 -0
  110. package/dist/index-DKMxIBz_.js +270 -0
  111. package/dist/index-DKf5SGLD.js +125 -0
  112. package/dist/index-E32WgUp9.js +3525 -0
  113. package/dist/index-kp-GC5I0.js +513 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +285 -1485
  116. package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
  117. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  118. package/dist/omit--YYr41Xp.js +31 -0
  119. package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
  120. package/dist/splitpanes-D-ThFkeR.js +342 -0
  121. package/dist/style.css +1 -4
  122. package/dist/template-BvaNnq-g.js +1493 -0
  123. package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
  124. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  125. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  126. package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
  127. package/dist/validation-DOcUOoMe.js +40 -0
  128. package/package.json +18 -21
  129. package/dist/AddClientCallout-BJzBdba1.js +0 -48
  130. package/dist/AnswerModal-frHq1g4s.js +0 -3874
  131. package/dist/AttachmentItem-BaN0OrEV.js +0 -85
  132. package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
  133. package/dist/BaseUpload-CY3lTcte.js +0 -1977
  134. package/dist/BlockMedia-Bb5wQIDg.js +0 -76
  135. package/dist/CCallout-5quI6yyk.js +0 -58
  136. package/dist/CDropdownItem-CaoSQX6X.js +0 -640
  137. package/dist/CFormField-Dd2Y71JG.js +0 -240
  138. package/dist/CPhoneInput-BU1t6eo_.js +0 -138
  139. package/dist/CPriceInput-pv2aIVkH.js +0 -116
  140. package/dist/CSelect-CrM45B7V.js +0 -91
  141. package/dist/CSkeleton-BkvONMqL.js +0 -55
  142. package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
  143. package/dist/ClientModal-CvHAptV2.js +0 -666
  144. package/dist/ColorPicker-RgoXRrud.js +0 -2879
  145. package/dist/CompanyModal-OL4bD9Gk.js +0 -147
  146. package/dist/ContentWrapper-8HduCnR4.js +0 -190
  147. package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
  148. package/dist/DocAnswer-DiyFfpT2.js +0 -36
  149. package/dist/DocDetails-BxNRfBnK.js +0 -263
  150. package/dist/DocForm-MGp-o0pu.js +0 -5017
  151. package/dist/DocFormSend-q_QuVCqh.js +0 -146
  152. package/dist/DocLinks-DGDdp30U.js +0 -38
  153. package/dist/DocModalBase-qG4RqwBn.js +0 -28
  154. package/dist/DocPrint-Cln3kt0g.js +0 -240
  155. package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
  156. package/dist/DocSendReminder-B3qdqduf.js +0 -140
  157. package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
  158. package/dist/DocTimeline-CgKHoDcG.js +0 -485
  159. package/dist/DocumentClient-UZlnIlz5.js +0 -136
  160. package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
  161. package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
  162. package/dist/DocumentVoided-BXYNrf_6.js +0 -25
  163. package/dist/EmbedInput-YRUrw3c6.js +0 -117
  164. package/dist/EmbedSettings-DvRreF7H.js +0 -74
  165. package/dist/ErrorCallout-DVknpLVY.js +0 -27
  166. package/dist/FilePreviewModal-DC56FaGy.js +0 -81
  167. package/dist/Flag-D5iZLESg.js +0 -46
  168. package/dist/HeaderSettings-DXZnZL7A.js +0 -440
  169. package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
  170. package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
  171. package/dist/Index-B1dJO6Bk.js +0 -54
  172. package/dist/Index-B3pz1coY.js +0 -150
  173. package/dist/Index-BHgW8EHW.js +0 -2446
  174. package/dist/Index-BNucs2O-.js +0 -154
  175. package/dist/Index-BW-EtZ1z.js +0 -55
  176. package/dist/Index-BjKACpun.js +0 -66
  177. package/dist/Index-C94BL4uU.js +0 -294
  178. package/dist/Index-CB57haU8.js +0 -58
  179. package/dist/Index-CP17iXT6.js +0 -25
  180. package/dist/Index-CUSbvjoD.js +0 -62
  181. package/dist/Index-CVnD6jo5.js +0 -25
  182. package/dist/Index-Ci5zdPeT.js +0 -28
  183. package/dist/Index-CikqSMjb.js +0 -41
  184. package/dist/Index-CxO4tJ3U.js +0 -26
  185. package/dist/Index-D4J4BpHd.js +0 -230
  186. package/dist/Index-DAQQQlut.js +0 -754
  187. package/dist/Index-DNxSR72J.js +0 -73
  188. package/dist/Index-DPuKRwmu.js +0 -41
  189. package/dist/Index-DSy8QG8T.js +0 -32
  190. package/dist/Index-DX6_D-J-.js +0 -77
  191. package/dist/Index-Dk0KaIKg.js +0 -643
  192. package/dist/Index-Hkzoh9QR.js +0 -24
  193. package/dist/Index-KsHJxWAa.js +0 -94
  194. package/dist/Index-TtItTuv6.js +0 -33
  195. package/dist/Index-YAD39Qvg.js +0 -146
  196. package/dist/Index-eh909lAz.js +0 -107
  197. package/dist/Index-otowKI_C.js +0 -56
  198. package/dist/Index-t_oVV8Rc.js +0 -84
  199. package/dist/Index-vG96oEXZ.js +0 -144
  200. package/dist/InputToggleRow-CcqJDguN.js +0 -57
  201. package/dist/ManualPopover-BE2IN-XU.js +0 -60
  202. package/dist/MediaWrapper-lnGUFiyc.js +0 -23
  203. package/dist/PackageGroup-BsmxOMLW.js +0 -704
  204. package/dist/PdfTerms-BgYwZoAZ.js +0 -31
  205. package/dist/PdfViewer-C0lDpjte.js +0 -383
  206. package/dist/PlainHtml-5YwYVj1v.js +0 -27
  207. package/dist/PriceHeader-CxqhpGS-.js +0 -338
  208. package/dist/SearchApi-BndaIbri.js +0 -161
  209. package/dist/SendForm-D7U9fG-5.js +0 -1023
  210. package/dist/Setup-CmAK2_ZT.js +0 -50
  211. package/dist/ThemeColorRow-BlnhzebY.js +0 -69
  212. package/dist/ToggleBinding-t_58JFya.js +0 -42
  213. package/dist/UploadModal-T-WpYNsN.js +0 -95
  214. package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
  215. package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
  216. package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
  217. package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
  218. package/dist/dom-CWsqMElk.js +0 -71
  219. package/dist/formValidationMixin-WZ2lGndu.js +0 -49
  220. package/dist/index-B2l57ilt.js +0 -102
  221. package/dist/index-COKDjmM2.js +0 -167
  222. package/dist/index-HtKGcIng.js +0 -2700
  223. package/dist/index-LQ7NztTt.js +0 -81
  224. package/dist/index-fx5gR8fM.js +0 -351
  225. package/dist/index-zXXJrTvv.js +0 -492
  226. package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
  227. package/dist/omit-ScS7B6c5.js +0 -31
  228. package/dist/simplebar.min-B0cB_p8g.js +0 -71
  229. package/dist/splitpanes-BHUVsCZF.js +0 -382
  230. package/dist/tippy.esm-CR89mtdY.js +0 -1805
  231. package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,25 +1,25 @@
1
- import { m as g } from "./mapFormMixin-CQgSN7dv.js";
2
- import { J as o, ax as u, b as h, n as l, ay as b, az as a, aA as n } from "./main-BgzLHIoo.js";
3
- import { s as v, p as y } from "./splitpanes-BHUVsCZF.js";
4
- import { t as w } from "./throttle-DT2UVOqm.js";
5
- import { W as m } from "./DocumentLayout-Dvr4zgyF.js";
6
- import { e as p } from "./dom-CWsqMElk.js";
7
- import { d as _ } from "./debounce-D0hKNU85.js";
8
- const x = `
1
+ import { m as $ } from "./mapFormMixin-D3BihYWW.js";
2
+ import { ac as v, d9 as C, aa as k, e as n, _, b as r, o as c, d as u, s as f, F as S, k as U, n as V, v as b, l as L, c as T, w as p, ao as B, da as N, db as y, dc as w, f as x, B as P } from "./main-Cb-nyil1.js";
3
+ import { M as A, g as I } from "./splitpanes-D-ThFkeR.js";
4
+ import { t as R } from "./throttle-D-bUGaVh.js";
5
+ import { a as z } from "./DocumentLayout-CKSi42ev.js";
6
+ import { e as j } from "./dom-CkTGWrfu.js";
7
+ import { d as J } from "./debounce-DNl99Gyo.js";
8
+ const F = `
9
9
  /*! 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
- `, M = (e, { _document: t, id: s, firstRender: i }) => `
10
+ `, W = (t, { _document: e, id: o, firstRender: l }) => `
11
11
  <!DOCTYPE html>
12
12
  <html>
13
13
  <head>
14
- <style>${x}</style>
15
- <style>${e.css}</style>
14
+ <style>${F}</style>
15
+ <style>${t.css}</style>
16
16
  </head>
17
17
  <body>
18
- ${e.html}
18
+ ${t.html}
19
19
  </body>
20
20
  <script>
21
- var doc = ${t};
22
- var firstRender = ${i};
21
+ var doc = ${e};
22
+ var firstRender = ${l};
23
23
  function getOuterHeight(el) {
24
24
  var height = el.clientHeight;
25
25
  var computedStyle = window.getComputedStyle(el);
@@ -32,7 +32,7 @@ const x = `
32
32
 
33
33
  function sendHeightMessage() {
34
34
  var message = JSON.stringify({
35
- id: '${s}',
35
+ id: '${o}',
36
36
  channel: 'customBlock',
37
37
  data: {
38
38
  height: getOuterHeight(document.body),
@@ -58,9 +58,9 @@ const x = `
58
58
  });
59
59
  <\/script>
60
60
  <script type="module">
61
- ${e.javascript}
61
+ ${t.javascript}
62
62
  <\/script>
63
- </html>`, f = {
63
+ </html>`, E = {
64
64
  name: "CustomView",
65
65
  props: {
66
66
  html: {
@@ -100,46 +100,47 @@ const x = `
100
100
  },
101
101
  methods: {
102
102
  updateView({
103
- firstRender: e = !1
103
+ firstRender: t = !1
104
104
  } = {}) {
105
- if (!this.$refs.iframe)
106
- return;
107
- const t = this._document.getRawData();
108
- this.setUsedPathValues(), this.$refs.iframe.srcdoc = M({
109
- html: o(this.html, t),
110
- css: o(this.css, t),
111
- javascript: o(this.javascript, t)
105
+ if (!this.$refs.iframe) return;
106
+ const e = this._document.getRawData();
107
+ this.setUsedPathValues(), this.$refs.iframe.srcdoc = W({
108
+ html: v(this.html, e),
109
+ css: v(this.css, e),
110
+ javascript: v(this.javascript, e)
112
111
  }, {
113
- _document: JSON.stringify(t),
114
- id: this._uid,
115
- firstRender: e
112
+ _document: JSON.stringify(e),
113
+ id: this.$.uid,
114
+ firstRender: t
116
115
  });
117
116
  },
118
117
  registerStoreListener() {
119
- this.sendDocumentUpdate = w(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((e) => {
118
+ this.sendDocumentUpdate = R(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((t) => {
120
119
  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));
120
+ type: e
121
+ } = t;
122
+ (e === "forms/SET_FORM_VALUE" || e === "publicDocuments/SET_CURRENT_DOCUMENT_VALUE") && (this.sendDocumentUpdate(), ["html", "css", "javascript"].some((l) => {
123
+ const i = C(this[l]);
124
+ return Object.keys(i).some((s) => this.usedPathValues[s] !== k(this._document.getRawData(), s));
126
125
  }) && this.updateView());
127
126
  });
128
127
  },
129
128
  unregisterStoreListener() {
130
- var e;
131
- (e = this.storeListenerUnsubscribe) == null || e.call(this);
129
+ var t;
130
+ (t = this.storeListenerUnsubscribe) == null || t.call(this);
132
131
  },
133
132
  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);
133
+ ["html", "css", "javascript"].forEach((t) => {
134
+ const e = C(this[t]);
135
+ Object.keys(e).forEach((o) => {
136
+ this.usedPathValues[o] = k(this._document.getRawData(), o);
138
137
  });
139
138
  });
140
139
  },
141
140
  // Update doc variable in iFrame
142
141
  sendDocMessage() {
142
+ const t = this.$refs.iframe;
143
+ if (!t || !t.contentWindow) return;
143
144
  const e = JSON.stringify({
144
145
  channel: "document",
145
146
  data: {
@@ -152,32 +153,31 @@ const x = `
152
153
  mounted() {
153
154
  this.updateView({
154
155
  firstRender: !0
155
- }), this.sendDocMessage(), window.addEventListener("message", (e) => {
156
- let t = null;
156
+ }), this.sendDocMessage(), window.addEventListener("message", (t) => {
157
+ let e = null;
157
158
  try {
158
- t = JSON.parse(e.data);
159
+ e = JSON.parse(t.data);
159
160
  } catch {
160
161
  }
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");
162
+ 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
163
  }), this.registerStoreListener();
163
164
  },
164
- beforeDestroy() {
165
- var e, t;
166
- this.unregisterStoreListener(), (t = (e = this.sendDocumentUpdate) == null ? void 0 : e.cancel) == null || t.call(e);
165
+ beforeUnmount() {
166
+ var t, e;
167
+ this.unregisterStoreListener(), (e = (t = this.sendDocumentUpdate) == null ? void 0 : t.cancel) == null || e.call(t);
167
168
  },
168
- render(e) {
169
- return e("iframe", {
170
- attrs: {
171
- id: this._uid,
172
- sandbox: "allow-scripts",
173
- frameBorder: "0"
174
- },
169
+ render() {
170
+ return n("iframe", {
171
+ id: this.$.uid,
175
172
  ref: "iframe",
173
+ sandbox: "allow-scripts",
174
+ frameBorder: "0",
176
175
  class: "h-0 w-full"
177
- });
176
+ }, null);
178
177
  }
179
- }, S = {
178
+ }, q = {
180
179
  name: "MonacoEditor",
180
+ emits: ["change", "input"],
181
181
  props: {
182
182
  value: String,
183
183
  srcdoc: String,
@@ -219,14 +219,14 @@ const x = `
219
219
  }
220
220
  },
221
221
  components: {
222
- WithDimensions: m
222
+ WithDimensions: z
223
223
  },
224
224
  watch: {
225
225
  options: {
226
226
  deep: !0,
227
- handler(e) {
228
- var t;
229
- (t = this.editor) == null || t.updateOptions(e);
227
+ handler(t) {
228
+ var e;
229
+ (e = this.editor) == null || e.updateOptions(t);
230
230
  }
231
231
  },
232
232
  value() {
@@ -238,98 +238,101 @@ const x = `
238
238
  theme() {
239
239
  this.editor && window.monaco.editor.setTheme(this.theme);
240
240
  },
241
- disabled(e) {
242
- var t;
243
- (t = this.editor) == null || t.updateOptions({
244
- readOnly: e
241
+ disabled(t) {
242
+ var e;
243
+ (e = this.editor) == null || e.updateOptions({
244
+ readOnly: t
245
245
  });
246
246
  }
247
247
  },
248
248
  mounted() {
249
249
  this.loadMonaco().then(() => {
250
- var e;
251
- this.initMonaco(), (e = this.editor) == null || e.focus();
250
+ var t;
251
+ this.initMonaco(), (t = this.editor) == null || t.focus();
252
252
  });
253
253
  },
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);
254
+ beforeUnmount() {
255
+ var t, e, o;
256
+ (t = this.editor) == null || t.dispose(), (o = (e = this.codeChangeEmitter) == null ? void 0 : e.cancel) == null || o.call(e);
257
257
  },
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
- }
258
+ render() {
259
+ return n(z, {
260
+ onWidth: () => {
261
+ var t;
262
+ return (t = this.editor) == null ? void 0 : t.layout();
263
+ },
264
+ onHeight: () => {
265
+ var t;
266
+ return (t = this.editor) == null ? void 0 : t.layout();
269
267
  }
270
- }, [e("div")]);
268
+ }, {
269
+ default: () => [n("div", {
270
+ ref: "editorContainer",
271
+ style: "width: 100%; height: 100%"
272
+ }, null)]
273
+ });
271
274
  },
272
275
  methods: {
273
276
  async loadMonaco() {
274
- await p("https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js");
275
- const e = {
277
+ await j("https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js");
278
+ const t = {
276
279
  paths: {
277
280
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
278
281
  }
279
282
  };
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");
283
+ await new Promise((e, o) => {
284
+ window.require.config(t), window.require(["vs/editor/editor.main"], e, o);
285
+ }), await j("https://cdn.jsdelivr.net/npm/emmet-monaco-es@5.1.0/dist/emmet-monaco.js");
283
286
  },
284
287
  initMonaco() {
285
288
  window.emmetMonaco.emmetHTML(window.monaco), window.emmetMonaco.emmetCSS(window.monaco);
286
289
  const {
287
- value: e,
288
- language: t,
289
- theme: s,
290
- options: i
290
+ value: t,
291
+ language: e,
292
+ theme: o,
293
+ options: l
291
294
  } = this;
292
- Object.assign(i, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$el, {
293
- value: e,
294
- language: t,
295
- theme: s,
295
+ Object.assign(l, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$refs.editorContainer, {
296
+ value: t,
297
+ language: e,
298
+ theme: o,
296
299
  readOnly: this.disabled,
297
- ...i
300
+ ...l
298
301
  }), this._editorMounted(this.editor);
299
302
  },
300
303
  getEditor() {
301
304
  return this.editor ? this.editor : null;
302
305
  },
303
- setValue(e) {
304
- const t = this.getEditor();
305
- t == null || t.setValue(e);
306
+ setValue(t) {
307
+ const e = this.getEditor();
308
+ e == null || e.setValue(t);
306
309
  },
307
310
  getValue() {
308
- const e = this.getEditor();
309
- return e ? e.getValue() : "";
311
+ const t = this.getEditor();
312
+ return t ? t.getValue() : "";
310
313
  },
311
314
  _editorBeforeMount() {
312
315
  return this.editorBeforeMount(window.monaco) || {};
313
316
  },
314
- _editorMounted(e) {
315
- this.editorMounted(e, window.monaco), this.codeChangeEmitter = _((t, s) => this.emitChange(t, s), this.debounceTime), e.onDidChangeModelContent((t) => {
316
- const s = this.getValue();
317
- this.codeChangeEmitter(s, t);
317
+ _editorMounted(t) {
318
+ this.editorMounted(t, window.monaco), this.codeChangeEmitter = J((e, o) => this.emitChange(e, o), this.debounceTime), t.onDidChangeModelContent((e) => {
319
+ const o = this.getValue();
320
+ this.codeChangeEmitter(o, e);
318
321
  });
319
322
  },
320
- emitChange(e, t) {
321
- this.$emit("change", e, t), this.$emit("input", e);
323
+ emitChange(t, e) {
324
+ this.$emit("change", t, e), this.$emit("input", t);
322
325
  }
323
326
  }
324
- }, z = {
327
+ }, Y = {
325
328
  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
329
  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
330
  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
331
  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 = {
332
+ }, Z = {
330
333
  name: "Tabs",
331
334
  props: {
332
- value: {
335
+ modelValue: {
333
336
  type: String,
334
337
  default: ""
335
338
  },
@@ -342,44 +345,73 @@ const x = `
342
345
  default: !1
343
346
  }
344
347
  },
348
+ emits: ["update:modelValue", "update:hLayout", "close"],
345
349
  data() {
346
350
  return {
347
- icons: z
351
+ icons: Y
348
352
  };
349
353
  }
350
- };
351
- var C = 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
- }, j = [], $ = /* @__PURE__ */ l(
367
- k,
368
- C,
369
- j,
370
- !1,
371
- null,
372
- "2b587c3e"
373
- );
374
- const L = $.exports, V = {
354
+ }, K = { class: "tabs-root" }, G = ["onClick"], Q = ["innerHTML"], X = ["textContent"];
355
+ function tt(t, e, o, l, i, s) {
356
+ const m = r("CIcon");
357
+ return c(), u("div", K, [
358
+ f("div", {
359
+ class: "simple-btn",
360
+ onClick: e[0] || (e[0] = (a) => t.$emit("close"))
361
+ }, [
362
+ n(m, {
363
+ type: "x",
364
+ size: "18"
365
+ })
366
+ ]),
367
+ (c(!0), u(S, null, U(o.items, (a) => (c(), u("div", {
368
+ key: a.value,
369
+ class: V([{
370
+ "tab-item-active": o.modelValue === a.value
371
+ }, "tab-item"]),
372
+ onClick: (g) => t.$emit("update:modelValue", a.value)
373
+ }, [
374
+ (c(), u("svg", {
375
+ xmlns: "http://www.w3.org/2000/svg",
376
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
377
+ "aria-hidden": "true",
378
+ role: "img",
379
+ width: "18",
380
+ height: "18",
381
+ preserveAspectRatio: "xMidYMid meet",
382
+ viewBox: "0 0 32 32",
383
+ style: { "margin-right": "0.5em" },
384
+ innerHTML: i.icons[a.value]
385
+ }, null, 8, Q)),
386
+ f("span", {
387
+ textContent: b(a.text)
388
+ }, null, 8, X)
389
+ ], 10, G))), 128)),
390
+ f("div", {
391
+ style: { "margin-left": "auto" },
392
+ class: "simple-btn",
393
+ onClick: e[1] || (e[1] = (a) => t.$emit("update:hLayout", !o.hLayout))
394
+ }, [
395
+ n(m, {
396
+ style: L([{
397
+ transform: o.hLayout ? "rotate(0deg)" : "rotate(90deg)"
398
+ }, { transition: "transform 150ms" }]),
399
+ type: "layout",
400
+ size: "18"
401
+ }, null, 8, ["style"])
402
+ ])
403
+ ]);
404
+ }
405
+ const et = /* @__PURE__ */ _(Z, [["render", tt], ["__scopeId", "data-v-477b66fe"]]), ot = {
375
406
  name: "CustomModal",
376
407
  components: {
377
- Tabs: L,
378
- MonacoEditor: S,
379
- Splitpanes: v,
380
- Pane: y,
381
- CustomView: f
408
+ Tabs: et,
409
+ MonacoEditor: q,
410
+ Splitpanes: A,
411
+ Pane: I,
412
+ CustomView: E
382
413
  },
414
+ emits: ["update:html", "update:css", "update:javascript", "update:json"],
383
415
  props: {
384
416
  _document: {
385
417
  type: Object,
@@ -408,7 +440,7 @@ const L = $.exports, V = {
408
440
  { text: "JS", value: "javascript" },
409
441
  { text: "Data", value: "json", disabled: !0 }
410
442
  ],
411
- modalName: `customModal${this._uid}`
443
+ modalName: `customModal${this.$.uid}`
412
444
  };
413
445
  },
414
446
  computed: {
@@ -416,7 +448,7 @@ const L = $.exports, V = {
416
448
  return this[this.currentTab];
417
449
  },
418
450
  currentItem() {
419
- return this.items.find(({ value: e }) => e === this.currentTab) || {};
451
+ return this.items.find(({ value: t }) => t === this.currentTab) || {};
420
452
  },
421
453
  json() {
422
454
  return JSON.stringify(this._document.getRawData(), null, 2);
@@ -427,34 +459,73 @@ const L = $.exports, V = {
427
459
  this.$modal.show(this.modalName);
428
460
  }
429
461
  }
430
- };
431
- var T = function() {
432
- var t = this, s = t._self._c;
433
- 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) {
434
- t.hLayout = i;
435
- }, "update:h-layout": function(i) {
436
- t.hLayout = i;
437
- }, close: function(i) {
438
- return t.$modal.hide(t.modalName);
439
- } }, model: { value: t.currentTab, callback: function(i) {
440
- t.currentTab = i;
441
- }, expression: "currentTab" } }), s("MonacoEditor", { staticStyle: { width: "100%", height: "100%" }, attrs: { language: t.currentTab, value: t.currentValue, disabled: t.currentItem.disabled }, on: { change: function(i) {
442
- return t.$emit(`update:${t.currentTab}`, i);
443
- } }, nativeOn: { keyup: function(i) {
444
- i.stopPropagation();
445
- } } })], 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);
446
- }, E = [], H = /* @__PURE__ */ l(
447
- V,
448
- T,
449
- E,
450
- !1,
451
- null,
452
- "34c1270f"
453
- );
454
- const O = H.exports, r = b(), D = {
462
+ }, st = { style: { height: "100%", width: "100%", overflow: "auto" } };
463
+ function it(t, e, o, l, i, s) {
464
+ const m = r("Tabs"), a = r("MonacoEditor"), g = r("Pane"), d = r("CustomView"), H = r("Splitpanes"), O = r("modal"), D = r("portal");
465
+ return c(), T(D, { to: "modal" }, {
466
+ default: p(() => [
467
+ n(O, {
468
+ name: i.modalName,
469
+ adaptive: !0,
470
+ width: "100%",
471
+ height: "100%",
472
+ classes: "overflow-visible primary"
473
+ }, {
474
+ default: p(() => [
475
+ n(H, {
476
+ class: "root font-inter",
477
+ horizontal: i.hLayout
478
+ }, {
479
+ default: p(() => [
480
+ n(g, null, {
481
+ default: p(() => [
482
+ n(m, {
483
+ modelValue: i.currentTab,
484
+ "onUpdate:modelValue": e[0] || (e[0] = (h) => i.currentTab = h),
485
+ "h-layout": i.hLayout,
486
+ "onUpdate:hLayout": e[1] || (e[1] = (h) => i.hLayout = h),
487
+ items: i.items,
488
+ onClose: e[2] || (e[2] = (h) => t.$modal.hide(i.modalName))
489
+ }, null, 8, ["modelValue", "h-layout", "items"]),
490
+ n(a, {
491
+ style: { width: "100%", height: "100%" },
492
+ language: i.currentTab,
493
+ value: s.currentValue,
494
+ disabled: s.currentItem.disabled,
495
+ onChange: e[3] || (e[3] = (h) => t.$emit(`update:${i.currentTab}`, h)),
496
+ onKeyup: e[4] || (e[4] = B(() => {
497
+ }, ["stop"]))
498
+ }, null, 8, ["language", "value", "disabled"])
499
+ ]),
500
+ _: 1
501
+ }),
502
+ n(g, null, {
503
+ default: p(() => [
504
+ f("div", st, [
505
+ n(d, {
506
+ html: o.html,
507
+ css: o.css,
508
+ javascript: o.javascript,
509
+ _document: o._document
510
+ }, null, 8, ["html", "css", "javascript", "_document"])
511
+ ])
512
+ ]),
513
+ _: 1
514
+ })
515
+ ]),
516
+ _: 1
517
+ }, 8, ["horizontal"])
518
+ ]),
519
+ _: 1
520
+ }, 8, ["name"])
521
+ ]),
522
+ _: 1
523
+ });
524
+ }
525
+ const nt = /* @__PURE__ */ _(ot, [["render", it], ["__scopeId", "data-v-6e225c74"]]), M = N(), at = {
455
526
  components: {
456
- CustomView: f,
457
- CustomModal: O
527
+ CustomView: E,
528
+ CustomModal: nt
458
529
  },
459
530
  i18nOptions: {
460
531
  namespaces: "Custom",
@@ -471,7 +542,7 @@ const O = H.exports, r = b(), D = {
471
542
  }
472
543
  }
473
544
  },
474
- mixins: [g(["custom"])],
545
+ mixins: [$(["custom"])],
475
546
  inject: {
476
547
  setOpenDrawer: {
477
548
  type: Function,
@@ -485,38 +556,38 @@ const O = H.exports, r = b(), D = {
485
556
  },
486
557
  computed: {
487
558
  isEdited() {
488
- return this.custom ? this.custom.html !== r.html || this.custom.css !== r.css || this.custom.javascript !== r.javascript : !1;
559
+ return this.custom ? this.custom.html !== M.html || this.custom.css !== M.css || this.custom.javascript !== M.javascript : !1;
489
560
  },
490
561
  html: {
491
562
  get() {
492
- return this.custom.html ? a(this.custom.html) : "";
563
+ return this.custom.html ? y(this.custom.html) : "";
493
564
  },
494
- set(e) {
565
+ set(t) {
495
566
  this.custom = {
496
567
  ...this.custom,
497
- html: n(e)
568
+ html: w(t)
498
569
  };
499
570
  }
500
571
  },
501
572
  css: {
502
573
  get() {
503
- return this.custom.css ? a(this.custom.css) : "";
574
+ return this.custom.css ? y(this.custom.css) : "";
504
575
  },
505
- set(e) {
576
+ set(t) {
506
577
  this.custom = {
507
578
  ...this.custom,
508
- css: n(e)
579
+ css: w(t)
509
580
  };
510
581
  }
511
582
  },
512
583
  javascript: {
513
584
  get() {
514
- return this.custom.javascript ? a(this.custom.javascript) : "";
585
+ return this.custom.javascript ? y(this.custom.javascript) : "";
515
586
  },
516
- set(e) {
587
+ set(t) {
517
588
  this.custom = {
518
589
  ...this.custom,
519
- javascript: n(e)
590
+ javascript: w(t)
520
591
  };
521
592
  }
522
593
  }
@@ -529,31 +600,67 @@ const O = H.exports, r = b(), D = {
529
600
  this.$refs.customModal.show();
530
601
  }
531
602
  }
532
- };
533
- var P = function() {
534
- var t = this, s = t._self._c;
535
- return s("div", { staticClass: "custom-root", class: {
536
- "is-empty": !t.isEdited
537
- }, style: t.canEdit && { minHeight: "100px" }, on: { "&mouseover": function(i) {
538
- t.showControls = !0;
539
- }, "&mouseleave": function(i) {
540
- t.showControls = !1;
541
- } } }, [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) {
542
- t.html = i;
543
- }, "update:css": function(i) {
544
- t.css = i;
545
- }, "update:javascript": function(i) {
546
- t.javascript = i;
547
- } } })], 2);
548
- }, R = [], U = /* @__PURE__ */ l(
549
- D,
550
- P,
551
- R,
552
- !1,
553
- null,
554
- null
555
- );
556
- const q = U.exports;
603
+ }, rt = {
604
+ key: 0,
605
+ class: "flex flex-col items-center justify-center text-center",
606
+ style: { padding: `calc(3 * var(--rem)) calc(1 * var(--rem))
607
+ calc(4 * var(--rem)) calc(1 * var(--rem))`, "line-height": "1.5", color: "white" }
608
+ }, lt = ["textContent"], dt = ["textContent"];
609
+ function ct(t, e, o, l, i, s) {
610
+ const m = r("CustomView"), a = r("CButton"), g = r("CustomModal");
611
+ return c(), u("div", {
612
+ class: V(["custom-root", {
613
+ "is-empty": !s.isEdited
614
+ }]),
615
+ style: L(t.canEdit && { minHeight: "100px" }),
616
+ onMouseoverPassive: e[3] || (e[3] = (d) => i.showControls = !0),
617
+ onMouseleavePassive: e[4] || (e[4] = (d) => i.showControls = !1)
618
+ }, [
619
+ s.isEdited ? (c(), T(m, {
620
+ key: 0,
621
+ html: s.html,
622
+ css: s.css,
623
+ javascript: s.javascript,
624
+ _document: t._document,
625
+ style: { width: "100%", "min-height": "0" }
626
+ }, null, 8, ["html", "css", "javascript", "_document"])) : x("", !0),
627
+ t.isForm ? (c(), u(S, { key: 1 }, [
628
+ t.canEdit && !s.isEdited ? (c(), u("div", rt, [
629
+ f("div", {
630
+ style: { "font-weight": "500", "margin-bottom": "0.25em", opacity: "0.98" },
631
+ textContent: b(t.$t("title"))
632
+ }, null, 8, lt),
633
+ f("div", {
634
+ style: { "font-size": "14px", "margin-bottom": "calc(2 * var(--rem))", color: "hsl(218deg 24% 60%)", "max-width": "40ch" },
635
+ textContent: b(t.$t("text"))
636
+ }, null, 8, dt),
637
+ n(a, {
638
+ size: "normal",
639
+ style: { "font-size": "14px", "border-radius": "8px", padding: "12px 12px", height: "initial", "box-shadow": "rgb(0, 0, 0, 50%) 0px 10px 40px" },
640
+ "icon-left": "code",
641
+ type: "secondary",
642
+ onClick: s.openModal
643
+ }, {
644
+ default: p(() => [
645
+ P(b(t.$t("action")), 1)
646
+ ]),
647
+ _: 1
648
+ }, 8, ["onClick"])
649
+ ])) : x("", !0)
650
+ ], 64)) : x("", !0),
651
+ n(g, {
652
+ ref: "customModal",
653
+ html: s.html,
654
+ "onUpdate:html": e[0] || (e[0] = (d) => s.html = d),
655
+ css: s.css,
656
+ "onUpdate:css": e[1] || (e[1] = (d) => s.css = d),
657
+ javascript: s.javascript,
658
+ "onUpdate:javascript": e[2] || (e[2] = (d) => s.javascript = d),
659
+ _document: t._document
660
+ }, null, 8, ["html", "css", "javascript", "_document"])
661
+ ], 38);
662
+ }
663
+ const vt = /* @__PURE__ */ _(at, [["render", ct]]);
557
664
  export {
558
- q as default
665
+ vt as default
559
666
  };