@cling-se/widget 0.19.7 → 0.19.8

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 (127) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-sPxYX5tQ.js} +19 -19
  3. package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-o8OHHulg.js} +80 -80
  4. package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CzzOlHB-.js} +14 -14
  5. package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-oZQfFwOj.js} +256 -256
  6. package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-BGPxfM2X.js} +11 -11
  7. package/dist/{CCallout-BlglVZrm.js → CCallout-CrbMGTIj.js} +15 -15
  8. package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
  9. package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-E-kRDIiy.js} +11 -11
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +17 -17
  11. package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-CIQAVdsB.js} +1 -1
  12. package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-9AwTJm-0.js} +23 -23
  13. package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-agFahtr1.js} +12 -12
  14. package/dist/{CSelect-CmoAbVkP.js → CSelect-BpautzPq.js} +15 -15
  15. package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-GIqd-JU4.js} +18 -18
  16. package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-DOHX9Igy.js} +24 -24
  17. package/dist/{ClientModal-Com23Qgc.js → ClientModal-DAXKN_b3.js} +49 -49
  18. package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-B9F8znY_.js} +66 -66
  19. package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-BvIMVys6.js} +18 -18
  20. package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-DB22RaUr.js} +20 -20
  21. package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings--l4fH9mr.js} +39 -39
  22. package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-Bq-4uVbe.js} +4 -4
  23. package/dist/{DocDetails-C5Vzh550.js → DocDetails-yxmchgO5.js} +56 -56
  24. package/dist/{DocForm-DEUVV11n.js → DocForm-CzrR8o22.js} +819 -825
  25. package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-Bjc1QDcK.js} +11 -11
  26. package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BXbC-6v3.js} +6 -6
  27. package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-axX_Rlp3.js} +1 -1
  28. package/dist/{DocPrint-D_uxg7qD.js → DocPrint-D0IdWsUM.js} +15 -15
  29. package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-4e-RmgeQ.js} +23 -23
  30. package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-L35eZxgk.js} +10 -10
  31. package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-KrfylSV6.js} +4493 -4435
  32. package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-Be5CvtcQ.js} +16 -16
  33. package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-Bc4kf2q9.js} +12 -12
  34. package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
  35. package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-BFo5UEWS.js} +18 -18
  36. package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-DlQtlO7G.js} +4 -4
  37. package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-B29usQZZ.js} +8 -8
  38. package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-D-9rcSn0.js} +12 -12
  39. package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout--EnH1Ezu.js} +10 -10
  40. package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-H5Ilg9xN.js} +7 -7
  41. package/dist/{Flag-wXawyyMO.js → Flag-DgZVh3Lf.js} +4 -4
  42. package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-HuM_JwJw.js} +36 -36
  43. package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-CJ-DstAf.js} +16 -16
  44. package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-TYs37LIQ.js} +72 -72
  45. package/dist/{Index-ezY0DbcB.js → Index-6N_iRlrQ.js} +5 -5
  46. package/dist/{Index-BJf4YdYB.js → Index-B-PDcQKh.js} +29 -29
  47. package/dist/{Index-C-EUJjuk.js → Index-B942Auag.js} +2 -2
  48. package/dist/{Index-NnBwJv9v.js → Index-BLdFyt-s.js} +9 -9
  49. package/dist/{Index-CXjLkK_n.js → Index-BMpHXgR4.js} +15 -15
  50. package/dist/{Index-COF0evH4.js → Index-BZ6ZDf9T.js} +6 -6
  51. package/dist/{Index-y_AJP61r.js → Index-BdnFLjgV.js} +9 -9
  52. package/dist/{Index-DAkq_7Ws.js → Index-BeOtRIzZ.js} +18 -18
  53. package/dist/{Index-CTrX3VRa.js → Index-BsRxY7vc.js} +5 -5
  54. package/dist/{Index-D-gJQEAD.js → Index-CAMAtPVL.js} +6 -6
  55. package/dist/{Index-C2-s62x7.js → Index-CC4E2CmH.js} +11 -11
  56. package/dist/{Index-Dxg4gEKd.js → Index-CGus-YwW.js} +18 -18
  57. package/dist/{Index-Ciy9lnhS.js → Index-CLgN5Jzf.js} +2 -2
  58. package/dist/{Index-Cjg3X74T.js → Index-CTlB43yV.js} +7 -7
  59. package/dist/{Index-DkQ8_VkX.js → Index-CY2sRfaY.js} +194 -218
  60. package/dist/{Index-DfuzxXzD.js → Index-CnrSvy6E.js} +2 -2
  61. package/dist/{Index-DjfbgA_7.js → Index-CrdSdXWN.js} +19 -19
  62. package/dist/{Index-Ct735UtM.js → Index-CtJfMiZW.js} +2 -2
  63. package/dist/Index-D4HNTocO.js +4 -0
  64. package/dist/{Index-Ck-_9woY.js → Index-D5_GLLQH.js} +501 -506
  65. package/dist/{Index-DzdEqsZB.js → Index-D9sceHk5.js} +16 -16
  66. package/dist/{Index-Dfy0PsiW.js → Index-DJ11Zra_.js} +29 -29
  67. package/dist/{Index-DOeHci16.js → Index-DMIjuWSa.js} +7 -7
  68. package/dist/{Index-Bb6JZC8l.js → Index-DTm59e-A.js} +11 -11
  69. package/dist/{Index-CQboLS2e.js → Index-DXT_IMjq.js} +8 -8
  70. package/dist/{Index-GPliVrhC.js → Index-DYUvtCff.js} +7 -7
  71. package/dist/{Index-BvAqglwa.js → Index-DYW8T0Hl.js} +27 -27
  72. package/dist/{Index-BTDQax0X.js → Index-Dg4dwlh_.js} +60 -59
  73. package/dist/{Index-BlownK7_.js → Index-N88Abomf.js} +7 -7
  74. package/dist/{Index-9ZFW8Ka7.js → Index-W-Q19E3a.js} +7 -7
  75. package/dist/{Index-BbVHxVFJ.js → Index-edWEg_rF.js} +33 -33
  76. package/dist/{Index-B53eUt7Y.js → Index-nRqNPZ3B.js} +15 -15
  77. package/dist/{Index-1WPEpaVr.js → Index-nTp9wEni.js} +7 -7
  78. package/dist/{Index-yS5OPrJJ.js → Index-yJRtT77X.js} +2 -2
  79. package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
  80. package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-DCr_DEm4.js} +15 -15
  81. package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-CpVsmQvn.js} +6 -6
  82. package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-Cj3LBhdR.js} +4 -4
  83. package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-1J0p_k4u.js} +5 -5
  84. package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-CqrWEfCT.js} +29 -29
  85. package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-DmrPDtae.js} +9 -9
  86. package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-C2EEwUBa.js} +71 -71
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
  88. package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-BaREzUxI.js} +31 -31
  89. package/dist/{SearchApi-ZczKsBb7.js → SearchApi-Bf4jeQVr.js} +6 -6
  90. package/dist/{SendForm-D5jqkofo.js → SendForm-D5qpHxNU.js} +713 -711
  91. package/dist/{Setup-CdZzn0qW.js → Setup-Bw8ViFxw.js} +4 -4
  92. package/dist/{SmartList-B36ffGAZ.js → SmartList-CzylvV8N.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +118 -118
  94. package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-EoJvsPqK.js} +16 -16
  95. package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-D3blQMiD.js} +13 -13
  96. package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-BteBsRYr.js} +7 -7
  97. package/dist/{UploadModal-2tXsmGMM.js → UploadModal-Cr5sF3M-.js} +19 -19
  98. package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-BBycKv9w.js} +10 -10
  99. package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-BXXpTWBf.js} +9 -9
  100. package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-B2VPO6q4.js} +19 -19
  101. package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
  102. package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-CJyP4ce1.js} +1 -1
  103. package/dist/{helpers-BVP2Pul1.js → helpers-Cf9s0P7o.js} +4 -4
  104. package/dist/{index-B86TZXOh.js → index-C3pnyYI4.js} +94 -94
  105. package/dist/{index-D0Qee2OX.js → index-CBn1mHmK.js} +30 -30
  106. package/dist/{index-DXNrJnEc.js → index-DAJmNac8.js} +10 -10
  107. package/dist/{index-Cd4S4J-L.js → index-DYJN9yoF.js} +56 -56
  108. package/dist/{index-BDb4bM0D.js → index-DuXECcGq.js} +25 -25
  109. package/dist/{index-BH5vwOzR.js → index-XzoHqJIR.js} +9 -9
  110. package/dist/{index-CsbYpQqP.js → index-_MfZEYgE.js} +57 -57
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +153 -158
  113. package/dist/{main-C2Q8_T2Y.js → main-BayUZ9OO.js} +13620 -13669
  114. package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-Bx5_nE7g.js} +40 -46
  115. package/dist/omit-BKJdPM2H.js +56 -0
  116. package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-CblTasKp.js} +4 -4
  117. package/dist/{splitpanes-CuxtOZyV.js → splitpanes-DFkgBT3z.js} +6 -6
  118. package/dist/{template-DzrGrOEa.js → template-CvGgzazD.js} +5 -5
  119. package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-CYKcJaqz.js} +273 -275
  120. package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-DFmdeFRm.js} +7 -7
  121. package/dist/{utils-a_Odlqb5.js → utils-DTwXcY8_.js} +1 -1
  122. package/dist/{validation-38muBV6x.js → validation-d_jonAPy.js} +4 -4
  123. package/dist/widget.css +1 -1
  124. package/package.json +2 -2
  125. package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
  126. package/dist/Index-qFx0G3fC.js +0 -4
  127. package/dist/omit-DzlbtNCX.js +0 -56
@@ -1,23 +1,22 @@
1
- import { m as O } from "./mapFormMixin-CjfqZnmd.js";
2
- import { s as y, aL as $, bl as _, n as k, d as n, a9 as B, _ as C, e as l, o as c, b as u, j as f, F as S, G as N, y as V, t as b, Y as L, bm as A, c as T, w as p, ab as P, bn as I, bo as v, bp as w, f as x, x as R } from "./main-C2Q8_T2Y.js";
3
- import { M as F, g as J } from "./splitpanes-CuxtOZyV.js";
4
- import { a as z } from "./DocumentLayout-DaVz9SGF.js";
5
- import { e as j } from "./dom-DOcGU3-g.js";
6
- const W = `
1
+ import { m as O } from "./mapFormMixin-Bx5_nE7g.js";
2
+ import { f as a, bl as C, ae as k, aS as U, ag as v, u as $, I as B, bd as N, d as u, o as d, X as A, _ as M, b as l, j as f, F as j, n as I, x as S, t as b, W as V, bm as P, c as L, w as p, am as R, e as y, q as F, bn as w, bo as x, bp as J } from "./main-BayUZ9OO.js";
3
+ import { g as q, M as W } from "./splitpanes-DFkgBT3z.js";
4
+ import { e as z } from "./dom-DOcGU3-g.js";
5
+ const K = `
7
6
  /*! 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}
8
- `, q = (t, { _document: e, id: o, firstRender: a }) => `
7
+ `, Y = (e, { _document: t, id: o, firstRender: n }) => `
9
8
  <!DOCTYPE html>
10
9
  <html>
11
10
  <head>
12
- <style>${W}</style>
13
- <style>${t.css}</style>
11
+ <style>${K}</style>
12
+ <style>${e.css}</style>
14
13
  </head>
15
14
  <body>
16
- ${t.html}
15
+ ${e.html}
17
16
  </body>
18
17
  <script>
19
- var doc = ${e};
20
- var firstRender = ${a};
18
+ var doc = ${t};
19
+ var firstRender = ${n};
21
20
  function getOuterHeight(el) {
22
21
  var height = el.clientHeight;
23
22
  var computedStyle = window.getComputedStyle(el);
@@ -56,9 +55,9 @@ const W = `
56
55
  });
57
56
  <\/script>
58
57
  <script type="module">
59
- ${t.javascript}
58
+ ${e.javascript}
60
59
  <\/script>
61
- </html>`, E = {
60
+ </html>`, T = {
62
61
  name: "CustomView",
63
62
  props: {
64
63
  html: {
@@ -98,74 +97,74 @@ const W = `
98
97
  },
99
98
  methods: {
100
99
  updateView({
101
- firstRender: t = !1
100
+ firstRender: e = !1
102
101
  } = {}) {
103
102
  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)
103
+ const t = this._document.getRawData();
104
+ this.setUsedPathValues(), this.$refs.iframe.srcdoc = Y({
105
+ html: v(this.html, t),
106
+ css: v(this.css, t),
107
+ javascript: v(this.javascript, t)
109
108
  }, {
110
- _document: JSON.stringify(e),
109
+ _document: JSON.stringify(t),
111
110
  id: this.$.uid,
112
- firstRender: t
111
+ firstRender: e
113
112
  });
114
113
  },
115
114
  registerStoreListener() {
116
- this.sendDocumentUpdate = $(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((t) => {
115
+ this.sendDocumentUpdate = U(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((e) => {
117
116
  const {
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]);
117
+ type: t
118
+ } = e;
119
+ (t === "forms/SET_FORM_VALUE" || t === "publicDocuments/SET_CURRENT_DOCUMENT_VALUE") && (this.sendDocumentUpdate(), ["html", "css", "javascript"].some((n) => {
120
+ const i = C(this[n]);
122
121
  return Object.keys(i).some((s) => this.usedPathValues[s] !== k(this._document.getRawData(), s));
123
122
  }) && this.updateView());
124
123
  });
125
124
  },
126
125
  unregisterStoreListener() {
127
- var t;
128
- (t = this.storeListenerUnsubscribe) == null || t.call(this);
126
+ var e;
127
+ (e = this.storeListenerUnsubscribe) == null || e.call(this);
129
128
  },
130
129
  setUsedPathValues() {
131
- ["html", "css", "javascript"].forEach((t) => {
132
- const e = _(this[t]);
133
- Object.keys(e).forEach((o) => {
130
+ ["html", "css", "javascript"].forEach((e) => {
131
+ const t = C(this[e]);
132
+ Object.keys(t).forEach((o) => {
134
133
  this.usedPathValues[o] = k(this._document.getRawData(), o);
135
134
  });
136
135
  });
137
136
  },
138
137
  // Update doc variable in iFrame
139
138
  sendDocMessage() {
140
- const t = this.$refs.iframe;
141
- if (!t || !t.contentWindow) return;
142
- const e = JSON.stringify({
139
+ const e = this.$refs.iframe;
140
+ if (!e || !e.contentWindow) return;
141
+ const t = JSON.stringify({
143
142
  channel: "document",
144
143
  data: {
145
144
  body: this._document.getRawData()
146
145
  }
147
146
  });
148
- this.$refs.iframe.contentWindow.postMessage(e, "*");
147
+ this.$refs.iframe.contentWindow.postMessage(t, "*");
149
148
  }
150
149
  },
151
150
  mounted() {
152
151
  this.updateView({
153
152
  firstRender: !0
154
- }), this.sendDocMessage(), window.addEventListener("message", (t) => {
155
- let e = null;
153
+ }), this.sendDocMessage(), window.addEventListener("message", (e) => {
154
+ let t = null;
156
155
  try {
157
- e = JSON.parse(t.data);
156
+ t = JSON.parse(e.data);
158
157
  } catch {
159
158
  }
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");
159
+ t && t.channel === "customBlock" && (t == null ? void 0 : t.id) === `${this.$.uid}` && this.$refs.iframe && (this.$refs.iframe.style.height = t.data.height + "px");
161
160
  }), this.registerStoreListener();
162
161
  },
163
162
  beforeUnmount() {
164
- var t, e;
165
- this.unregisterStoreListener(), (e = (t = this.sendDocumentUpdate) == null ? void 0 : t.cancel) == null || e.call(t);
163
+ var e, t;
164
+ this.unregisterStoreListener(), (t = (e = this.sendDocumentUpdate) == null ? void 0 : e.cancel) == null || t.call(e);
166
165
  },
167
166
  render() {
168
- return n("iframe", {
167
+ return a("iframe", {
169
168
  id: this.$.uid,
170
169
  ref: "iframe",
171
170
  sandbox: "allow-scripts",
@@ -173,20 +172,17 @@ const W = `
173
172
  class: "h-0 w-full"
174
173
  }, null);
175
174
  }
176
- }, K = {
175
+ }, Z = {
176
+ ref: "editorContainer",
177
+ class: "h-full w-full"
178
+ }, X = {
177
179
  name: "MonacoEditor",
178
180
  emits: ["change", "input"],
179
181
  props: {
180
182
  value: String,
181
183
  srcdoc: String,
182
- language: {
183
- type: String,
184
- default: "javascript"
185
- },
186
- theme: {
187
- type: String,
188
- default: "vs-dark"
189
- },
184
+ language: { type: String, default: "javascript" },
185
+ theme: { type: String, default: "vs-dark" },
190
186
  options: {
191
187
  type: Object,
192
188
  default: () => ({
@@ -197,137 +193,117 @@ const W = `
197
193
  }
198
194
  })
199
195
  },
200
- editorMounted: {
201
- type: Function,
202
- default: () => {
203
- }
204
- },
205
- editorBeforeMount: {
206
- type: Function,
207
- default: () => {
208
- }
209
- },
210
- debounceTime: {
211
- type: Number,
212
- default: 500
213
- },
214
- disabled: {
215
- type: Boolean,
216
- default: !1
217
- }
218
- },
219
- components: {
220
- WithDimensions: z
196
+ editorMounted: { type: Function, default: () => {
197
+ } },
198
+ editorBeforeMount: { type: Function, default: () => {
199
+ } },
200
+ debounceTime: { type: Number, default: 500 },
201
+ disabled: { type: Boolean, default: !1 }
221
202
  },
222
203
  watch: {
223
204
  options: {
224
205
  deep: !0,
225
- handler(t) {
226
- var e;
227
- (e = this.editor) == null || e.updateOptions(t);
206
+ handler(e) {
207
+ var t;
208
+ (t = this.editor) == null || t.updateOptions(e);
228
209
  }
229
210
  },
230
211
  value() {
231
212
  this.editor && this.value !== this.getValue() && this.setValue(this.value);
232
213
  },
233
214
  language() {
234
- this.editor && window.monaco.editor.setModelLanguage(this.editor.getModel(), this.language);
215
+ this.editor && window.monaco.editor.setModelLanguage(
216
+ this.editor.getModel(),
217
+ this.language
218
+ );
235
219
  },
236
220
  theme() {
237
221
  this.editor && window.monaco.editor.setTheme(this.theme);
238
222
  },
239
- disabled(t) {
240
- var e;
241
- (e = this.editor) == null || e.updateOptions({
242
- readOnly: t
243
- });
223
+ disabled(e) {
224
+ var t;
225
+ (t = this.editor) == null || t.updateOptions({ readOnly: e });
244
226
  }
245
227
  },
246
228
  mounted() {
247
229
  this.loadMonaco().then(() => {
248
- var t;
249
- this.initMonaco(), (t = this.editor) == null || t.focus();
230
+ var e;
231
+ this.initMonaco(), (e = this.editor) == null || e.focus();
250
232
  });
251
233
  },
252
234
  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);
255
- },
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();
265
- }
266
- }, {
267
- default: () => [n("div", {
268
- ref: "editorContainer",
269
- style: "width: 100%; height: 100%"
270
- }, null)]
271
- });
235
+ var e, t, o;
236
+ (e = this.editor) == null || e.dispose(), (o = (t = this.codeChangeEmitter) == null ? void 0 : t.cancel) == null || o.call(t);
272
237
  },
273
238
  methods: {
274
239
  async loadMonaco() {
275
- await j("https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js");
276
- const t = {
240
+ await z(
241
+ "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs/loader.js"
242
+ );
243
+ const e = {
277
244
  paths: {
278
245
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
279
246
  }
280
247
  };
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");
248
+ await new Promise((t, o) => {
249
+ window.require.config(e), window.require(["vs/editor/editor.main"], t, o);
250
+ }), await z(
251
+ "https://cdn.jsdelivr.net/npm/emmet-monaco-es@5.1.0/dist/emmet-monaco.js"
252
+ );
284
253
  },
285
254
  initMonaco() {
286
255
  window.emmetMonaco.emmetHTML(window.monaco), window.emmetMonaco.emmetCSS(window.monaco);
287
- const {
288
- value: t,
289
- language: e,
290
- theme: o,
291
- options: a
292
- } = this;
293
- Object.assign(a, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$refs.editorContainer, {
294
- value: t,
295
- language: e,
256
+ const { value: e, language: t, theme: o, options: n } = this;
257
+ Object.assign(n, this._editorBeforeMount()), this.editor = window.monaco.editor.create(this.$refs.editorContainer, {
258
+ value: e,
259
+ language: t,
296
260
  theme: o,
297
261
  readOnly: this.disabled,
298
- ...a
262
+ ...n
299
263
  }), this._editorMounted(this.editor);
300
264
  },
301
265
  getEditor() {
302
266
  return this.editor ? this.editor : null;
303
267
  },
304
- setValue(t) {
305
- const e = this.getEditor();
306
- e == null || e.setValue(t);
268
+ setValue(e) {
269
+ const t = this.getEditor();
270
+ t == null || t.setValue(e);
307
271
  },
308
272
  getValue() {
309
- const t = this.getEditor();
310
- return t ? t.getValue() : "";
273
+ const e = this.getEditor();
274
+ return e ? e.getValue() : "";
311
275
  },
312
276
  _editorBeforeMount() {
313
277
  return this.editorBeforeMount(window.monaco) || {};
314
278
  },
315
- _editorMounted(t) {
316
- this.editorMounted(t, window.monaco), this.codeChangeEmitter = B((e, o) => this.emitChange(e, o), this.debounceTime), t.onDidChangeModelContent((e) => {
279
+ _editorMounted(e) {
280
+ this.editorMounted(e, window.monaco), this.codeChangeEmitter = A(
281
+ (t, o) => this.emitChange(t, o),
282
+ this.debounceTime
283
+ ), e.onDidChangeModelContent((t) => {
317
284
  const o = this.getValue();
318
- this.codeChangeEmitter(o, e);
285
+ this.codeChangeEmitter(o, t);
319
286
  });
320
287
  },
321
- emitChange(t, e) {
322
- this.$emit("change", t, e), this.$emit("input", t);
288
+ emitChange(e, t) {
289
+ this.$emit("change", e, t), this.$emit("input", e);
323
290
  }
324
291
  }
325
- }, Y = {
292
+ }, G = /* @__PURE__ */ Object.assign(X, {
293
+ setup(e) {
294
+ return (t, o) => $((d(), u("div", Z, null, 512)), [
295
+ [B(N), () => {
296
+ var n;
297
+ return (n = t.editor) == null ? void 0 : n.layout();
298
+ }]
299
+ ]);
300
+ }
301
+ }), Q = {
326
302
  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>',
327
303
  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>',
328
304
  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>',
329
305
  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>'
330
- }, Z = {
306
+ }, tt = {
331
307
  name: "Tabs",
332
308
  props: {
333
309
  modelValue: {
@@ -346,30 +322,30 @@ const W = `
346
322
  emits: ["update:modelValue", "update:hLayout", "close"],
347
323
  data() {
348
324
  return {
349
- icons: Y
325
+ icons: Q
350
326
  };
351
327
  }
352
- }, G = { class: "tabs-root" }, Q = ["onClick"], X = ["innerHTML"], tt = ["textContent"];
353
- function et(t, e, o, a, i, s) {
328
+ }, et = { class: "tabs-root" }, ot = ["onClick"], st = ["innerHTML"], it = ["textContent"];
329
+ function nt(e, t, o, n, i, s) {
354
330
  const m = l("CIcon");
355
- return c(), u("div", G, [
331
+ return d(), u("div", et, [
356
332
  f("div", {
357
333
  class: "simple-btn",
358
- onClick: e[0] || (e[0] = (r) => t.$emit("close"))
334
+ onClick: t[0] || (t[0] = (r) => e.$emit("close"))
359
335
  }, [
360
- n(m, {
336
+ a(m, {
361
337
  type: "x",
362
338
  size: "18"
363
339
  })
364
340
  ]),
365
- (c(!0), u(S, null, N(o.items, (r) => (c(), u("div", {
341
+ (d(!0), u(j, null, I(o.items, (r) => (d(), u("div", {
366
342
  key: r.value,
367
- class: V([{
343
+ class: S([{
368
344
  "tab-item-active": o.modelValue === r.value
369
345
  }, "tab-item"]),
370
- onClick: (g) => t.$emit("update:modelValue", r.value)
346
+ onClick: (g) => e.$emit("update:modelValue", r.value)
371
347
  }, [
372
- (c(), u("svg", {
348
+ (d(), u("svg", {
373
349
  xmlns: "http://www.w3.org/2000/svg",
374
350
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
375
351
  "aria-hidden": "true",
@@ -380,18 +356,18 @@ function et(t, e, o, a, i, s) {
380
356
  viewBox: "0 0 32 32",
381
357
  style: { "margin-right": "0.5em" },
382
358
  innerHTML: i.icons[r.value]
383
- }, null, 8, X)),
359
+ }, null, 8, st)),
384
360
  f("span", {
385
361
  textContent: b(r.text)
386
- }, null, 8, tt)
387
- ], 10, Q))), 128)),
362
+ }, null, 8, it)
363
+ ], 10, ot))), 128)),
388
364
  f("div", {
389
365
  style: { "margin-left": "auto" },
390
366
  class: "simple-btn",
391
- onClick: e[1] || (e[1] = (r) => t.$emit("update:hLayout", !o.hLayout))
367
+ onClick: t[1] || (t[1] = (r) => e.$emit("update:hLayout", !o.hLayout))
392
368
  }, [
393
- n(m, {
394
- style: L([{
369
+ a(m, {
370
+ style: V([{
395
371
  transform: o.hLayout ? "rotate(0deg)" : "rotate(90deg)"
396
372
  }, { transition: "transform 150ms" }]),
397
373
  type: "layout",
@@ -400,14 +376,14 @@ function et(t, e, o, a, i, s) {
400
376
  ])
401
377
  ]);
402
378
  }
403
- const ot = /* @__PURE__ */ C(Z, [["render", et], ["__scopeId", "data-v-477b66fe"]]), st = {
379
+ const at = /* @__PURE__ */ M(tt, [["render", nt], ["__scopeId", "data-v-477b66fe"]]), rt = {
404
380
  name: "CustomModal",
405
381
  components: {
406
- Tabs: ot,
407
- MonacoEditor: K,
408
- Splitpanes: F,
409
- Pane: J,
410
- CustomView: E
382
+ Tabs: at,
383
+ MonacoEditor: G,
384
+ Splitpanes: W,
385
+ Pane: q,
386
+ CustomView: T
411
387
  },
412
388
  emits: ["update:html", "update:css", "update:javascript", "update:json"],
413
389
  props: {
@@ -446,19 +422,19 @@ const ot = /* @__PURE__ */ C(Z, [["render", et], ["__scopeId", "data-v-477b66fe"
446
422
  return this[this.currentTab];
447
423
  },
448
424
  currentItem() {
449
- return this.items.find(({ value: t }) => t === this.currentTab) || {};
425
+ return this.items.find(({ value: e }) => e === this.currentTab) || {};
450
426
  },
451
427
  json() {
452
- const t = this._document.getRawData(), e = this.removeUnwantedKeys(t);
453
- return JSON.stringify(e, null, 2);
428
+ const e = this._document.getRawData(), t = this.removeUnwantedKeys(e);
429
+ return JSON.stringify(t, null, 2);
454
430
  }
455
431
  },
456
432
  methods: {
457
433
  show() {
458
434
  this.$modal.show(this.modalName);
459
435
  },
460
- removeUnwantedKeys(t) {
461
- const e = [
436
+ removeUnwantedKeys(e) {
437
+ const t = [
462
438
  "company.CompanyAccount",
463
439
  "company.CompanyBranding",
464
440
  "company.CompanyCertificates",
@@ -466,18 +442,18 @@ const ot = /* @__PURE__ */ C(Z, [["render", et], ["__scopeId", "data-v-477b66fe"
466
442
  "company.CompanySectors",
467
443
  "companyUser.connectedUsers",
468
444
  "template"
469
- ], o = { ...t };
470
- return e.forEach((a) => {
471
- A(o, a);
445
+ ], o = { ...e };
446
+ return t.forEach((n) => {
447
+ P(o, n);
472
448
  }), o;
473
449
  }
474
450
  }
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" }, {
451
+ }, lt = { style: { height: "100%", width: "100%", overflow: "auto" } };
452
+ function dt(e, t, o, n, i, s) {
453
+ const m = l("Tabs"), r = l("MonacoEditor"), g = l("Pane"), c = l("CustomView"), E = l("Splitpanes"), H = l("modal"), D = l("portal");
454
+ return d(), L(D, { to: "modal" }, {
479
455
  default: p(() => [
480
- n(D, {
456
+ a(H, {
481
457
  name: i.modalName,
482
458
  adaptive: !0,
483
459
  width: "100%",
@@ -485,37 +461,37 @@ function nt(t, e, o, a, i, s) {
485
461
  classes: "overflow-visible primary"
486
462
  }, {
487
463
  default: p(() => [
488
- n(H, {
464
+ a(E, {
489
465
  class: "root font-inter",
490
466
  horizontal: i.hLayout
491
467
  }, {
492
468
  default: p(() => [
493
- n(g, null, {
469
+ a(g, null, {
494
470
  default: p(() => [
495
- n(m, {
471
+ a(m, {
496
472
  modelValue: i.currentTab,
497
- "onUpdate:modelValue": e[0] || (e[0] = (h) => i.currentTab = h),
473
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => i.currentTab = h),
498
474
  "h-layout": i.hLayout,
499
- "onUpdate:hLayout": e[1] || (e[1] = (h) => i.hLayout = h),
475
+ "onUpdate:hLayout": t[1] || (t[1] = (h) => i.hLayout = h),
500
476
  items: i.items,
501
- onClose: e[2] || (e[2] = (h) => t.$modal.hide(i.modalName))
477
+ onClose: t[2] || (t[2] = (h) => e.$modal.hide(i.modalName))
502
478
  }, null, 8, ["modelValue", "h-layout", "items"]),
503
- n(r, {
479
+ a(r, {
504
480
  style: { width: "100%", height: "100%" },
505
481
  language: i.currentTab,
506
482
  value: s.currentValue,
507
483
  disabled: s.currentItem.disabled,
508
- onChange: e[3] || (e[3] = (h) => t.$emit(`update:${i.currentTab}`, h)),
509
- onKeyup: e[4] || (e[4] = P(() => {
484
+ onChange: t[3] || (t[3] = (h) => e.$emit(`update:${i.currentTab}`, h)),
485
+ onKeyup: t[4] || (t[4] = R(() => {
510
486
  }, ["stop"]))
511
487
  }, null, 8, ["language", "value", "disabled"])
512
488
  ]),
513
489
  _: 1
514
490
  }),
515
- n(g, null, {
491
+ a(g, null, {
516
492
  default: p(() => [
517
- f("div", it, [
518
- n(d, {
493
+ f("div", lt, [
494
+ a(c, {
519
495
  html: o.html,
520
496
  css: o.css,
521
497
  javascript: o.javascript,
@@ -535,10 +511,10 @@ function nt(t, e, o, a, i, s) {
535
511
  _: 1
536
512
  });
537
513
  }
538
- const at = /* @__PURE__ */ C(st, [["render", nt], ["__scopeId", "data-v-35c6b94a"]]), M = I(), rt = {
514
+ const ct = /* @__PURE__ */ M(rt, [["render", dt], ["__scopeId", "data-v-8b9ea3bc"]]), _ = J(), ut = {
539
515
  components: {
540
- CustomView: E,
541
- CustomModal: at
516
+ CustomView: T,
517
+ CustomModal: ct
542
518
  },
543
519
  i18nOptions: {
544
520
  namespaces: "Custom",
@@ -569,38 +545,38 @@ const at = /* @__PURE__ */ C(st, [["render", nt], ["__scopeId", "data-v-35c6b94a
569
545
  },
570
546
  computed: {
571
547
  isEdited() {
572
- return this.custom ? this.custom.html !== M.html || this.custom.css !== M.css || this.custom.javascript !== M.javascript : !1;
548
+ return this.custom ? this.custom.html !== _.html || this.custom.css !== _.css || this.custom.javascript !== _.javascript : !1;
573
549
  },
574
550
  html: {
575
551
  get() {
576
- return this.custom.html ? v(this.custom.html) : "";
552
+ return this.custom.html ? x(this.custom.html) : "";
577
553
  },
578
- set(t) {
554
+ set(e) {
579
555
  this.custom = {
580
556
  ...this.custom,
581
- html: w(t)
557
+ html: w(e)
582
558
  };
583
559
  }
584
560
  },
585
561
  css: {
586
562
  get() {
587
- return this.custom.css ? v(this.custom.css) : "";
563
+ return this.custom.css ? x(this.custom.css) : "";
588
564
  },
589
- set(t) {
565
+ set(e) {
590
566
  this.custom = {
591
567
  ...this.custom,
592
- css: w(t)
568
+ css: w(e)
593
569
  };
594
570
  }
595
571
  },
596
572
  javascript: {
597
573
  get() {
598
- return this.custom.javascript ? v(this.custom.javascript) : "";
574
+ return this.custom.javascript ? x(this.custom.javascript) : "";
599
575
  },
600
- set(t) {
576
+ set(e) {
601
577
  this.custom = {
602
578
  ...this.custom,
603
- javascript: w(t)
579
+ javascript: w(e)
604
580
  };
605
581
  }
606
582
  }
@@ -613,41 +589,41 @@ const at = /* @__PURE__ */ C(st, [["render", nt], ["__scopeId", "data-v-35c6b94a
613
589
  this.$refs.customModal.show();
614
590
  }
615
591
  }
616
- }, lt = {
592
+ }, mt = {
617
593
  key: 0,
618
594
  class: "flex flex-col items-center justify-center text-center",
619
595
  style: { padding: `calc(3 * var(--rem)) calc(1 * var(--rem))
620
596
  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) {
597
+ }, ht = ["textContent"], pt = ["textContent"];
598
+ function ft(e, t, o, n, i, s) {
623
599
  const m = l("CustomView"), r = l("CButton"), g = l("CustomModal");
624
- return c(), u("div", {
625
- class: V(["custom-root", {
600
+ return d(), u("div", {
601
+ class: S(["custom-root", {
626
602
  "is-empty": !s.isEdited
627
603
  }]),
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)
604
+ style: V(e.canEdit && { minHeight: "100px" }),
605
+ onMouseoverPassive: t[3] || (t[3] = (c) => i.showControls = !0),
606
+ onMouseleavePassive: t[4] || (t[4] = (c) => i.showControls = !1)
631
607
  }, [
632
- s.isEdited ? (c(), T(m, {
608
+ s.isEdited ? (d(), L(m, {
633
609
  key: 0,
634
610
  html: s.html,
635
611
  css: s.css,
636
612
  javascript: s.javascript,
637
- _document: t._document,
613
+ _document: e._document,
638
614
  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, [
615
+ }, null, 8, ["html", "css", "javascript", "_document"])) : y("", !0),
616
+ e.isForm ? (d(), u(j, { key: 1 }, [
617
+ e.canEdit && !s.isEdited ? (d(), u("div", mt, [
642
618
  f("div", {
643
619
  style: { "font-weight": "500", "margin-bottom": "0.25em", opacity: "0.98" },
644
- textContent: b(t.$t("title"))
645
- }, null, 8, dt),
620
+ textContent: b(e.$t("title"))
621
+ }, null, 8, ht),
646
622
  f("div", {
647
623
  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, {
624
+ textContent: b(e.$t("text"))
625
+ }, null, 8, pt),
626
+ a(r, {
651
627
  size: "normal",
652
628
  style: { "font-size": "14px", "border-radius": "8px", padding: "12px 12px", height: "initial", "box-shadow": "rgb(0, 0, 0, 50%) 0px 10px 40px" },
653
629
  "icon-left": "code",
@@ -655,25 +631,25 @@ function ut(t, e, o, a, i, s) {
655
631
  onClick: s.openModal
656
632
  }, {
657
633
  default: p(() => [
658
- R(b(t.$t("action")), 1)
634
+ F(b(e.$t("action")), 1)
659
635
  ]),
660
636
  _: 1
661
637
  }, 8, ["onClick"])
662
- ])) : x("", !0)
663
- ], 64)) : x("", !0),
664
- n(g, {
638
+ ])) : y("", !0)
639
+ ], 64)) : y("", !0),
640
+ a(g, {
665
641
  ref: "customModal",
666
642
  html: s.html,
667
- "onUpdate:html": e[0] || (e[0] = (d) => s.html = d),
643
+ "onUpdate:html": t[0] || (t[0] = (c) => s.html = c),
668
644
  css: s.css,
669
- "onUpdate:css": e[1] || (e[1] = (d) => s.css = d),
645
+ "onUpdate:css": t[1] || (t[1] = (c) => s.css = c),
670
646
  javascript: s.javascript,
671
- "onUpdate:javascript": e[2] || (e[2] = (d) => s.javascript = d),
672
- _document: t._document
647
+ "onUpdate:javascript": t[2] || (t[2] = (c) => s.javascript = c),
648
+ _document: e._document
673
649
  }, null, 8, ["html", "css", "javascript", "_document"])
674
650
  ], 38);
675
651
  }
676
- const bt = /* @__PURE__ */ C(rt, [["render", ut]]);
652
+ const wt = /* @__PURE__ */ M(ut, [["render", ft]]);
677
653
  export {
678
- bt as default
654
+ wt as default
679
655
  };