@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.
- package/CHANGELOG.md +8 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-sPxYX5tQ.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CzzOlHB-.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-BGPxfM2X.js} +11 -11
- package/dist/{CCallout-BlglVZrm.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-E-kRDIiy.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-9AwTJm-0.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-agFahtr1.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-BpautzPq.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-GIqd-JU4.js} +18 -18
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-DOHX9Igy.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-DAXKN_b3.js} +49 -49
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-B9F8znY_.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-BvIMVys6.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-DB22RaUr.js} +20 -20
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings--l4fH9mr.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-yxmchgO5.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-CzrR8o22.js} +819 -825
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint-D0IdWsUM.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-4e-RmgeQ.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-L35eZxgk.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-Be5CvtcQ.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-Bc4kf2q9.js} +12 -12
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-BFo5UEWS.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-DlQtlO7G.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-B29usQZZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-D-9rcSn0.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout--EnH1Ezu.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-H5Ilg9xN.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-HuM_JwJw.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-CJ-DstAf.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-TYs37LIQ.js} +72 -72
- package/dist/{Index-ezY0DbcB.js → Index-6N_iRlrQ.js} +5 -5
- package/dist/{Index-BJf4YdYB.js → Index-B-PDcQKh.js} +29 -29
- package/dist/{Index-C-EUJjuk.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-BLdFyt-s.js} +9 -9
- package/dist/{Index-CXjLkK_n.js → Index-BMpHXgR4.js} +15 -15
- package/dist/{Index-COF0evH4.js → Index-BZ6ZDf9T.js} +6 -6
- package/dist/{Index-y_AJP61r.js → Index-BdnFLjgV.js} +9 -9
- package/dist/{Index-DAkq_7Ws.js → Index-BeOtRIzZ.js} +18 -18
- package/dist/{Index-CTrX3VRa.js → Index-BsRxY7vc.js} +5 -5
- package/dist/{Index-D-gJQEAD.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-C2-s62x7.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-Dxg4gEKd.js → Index-CGus-YwW.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-CLgN5Jzf.js} +2 -2
- package/dist/{Index-Cjg3X74T.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-DkQ8_VkX.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-DfuzxXzD.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-CrdSdXWN.js} +19 -19
- package/dist/{Index-Ct735UtM.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-Ck-_9woY.js → Index-D5_GLLQH.js} +501 -506
- package/dist/{Index-DzdEqsZB.js → Index-D9sceHk5.js} +16 -16
- package/dist/{Index-Dfy0PsiW.js → Index-DJ11Zra_.js} +29 -29
- package/dist/{Index-DOeHci16.js → Index-DMIjuWSa.js} +7 -7
- package/dist/{Index-Bb6JZC8l.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CQboLS2e.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-GPliVrhC.js → Index-DYUvtCff.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-DYW8T0Hl.js} +27 -27
- package/dist/{Index-BTDQax0X.js → Index-Dg4dwlh_.js} +60 -59
- package/dist/{Index-BlownK7_.js → Index-N88Abomf.js} +7 -7
- package/dist/{Index-9ZFW8Ka7.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-BbVHxVFJ.js → Index-edWEg_rF.js} +33 -33
- package/dist/{Index-B53eUt7Y.js → Index-nRqNPZ3B.js} +15 -15
- package/dist/{Index-1WPEpaVr.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-yS5OPrJJ.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-DCr_DEm4.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-CpVsmQvn.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-CqrWEfCT.js} +29 -29
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-DmrPDtae.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-C2EEwUBa.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-BaREzUxI.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-CdZzn0qW.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-EoJvsPqK.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-D3blQMiD.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-BBycKv9w.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-BXXpTWBf.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-B2VPO6q4.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9s0P7o.js} +4 -4
- package/dist/{index-B86TZXOh.js → index-C3pnyYI4.js} +94 -94
- package/dist/{index-D0Qee2OX.js → index-CBn1mHmK.js} +30 -30
- package/dist/{index-DXNrJnEc.js → index-DAJmNac8.js} +10 -10
- package/dist/{index-Cd4S4J-L.js → index-DYJN9yoF.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-DuXECcGq.js} +25 -25
- package/dist/{index-BH5vwOzR.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-CsbYpQqP.js → index-_MfZEYgE.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BayUZ9OO.js} +13620 -13669
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-Bx5_nE7g.js} +40 -46
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-CblTasKp.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-CYKcJaqz.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-DFmdeFRm.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { m as O } from "./mapFormMixin-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
-
`,
|
|
7
|
+
`, Y = (e, { _document: t, id: o, firstRender: n }) => `
|
|
9
8
|
<!DOCTYPE html>
|
|
10
9
|
<html>
|
|
11
10
|
<head>
|
|
12
|
-
<style>${
|
|
13
|
-
<style>${
|
|
11
|
+
<style>${K}</style>
|
|
12
|
+
<style>${e.css}</style>
|
|
14
13
|
</head>
|
|
15
14
|
<body>
|
|
16
|
-
${
|
|
15
|
+
${e.html}
|
|
17
16
|
</body>
|
|
18
17
|
<script>
|
|
19
|
-
var doc = ${
|
|
20
|
-
var firstRender = ${
|
|
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
|
-
${
|
|
58
|
+
${e.javascript}
|
|
60
59
|
<\/script>
|
|
61
|
-
</html>`,
|
|
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:
|
|
100
|
+
firstRender: e = !1
|
|
102
101
|
} = {}) {
|
|
103
102
|
if (!this.$refs.iframe) return;
|
|
104
|
-
const
|
|
105
|
-
this.setUsedPathValues(), this.$refs.iframe.srcdoc =
|
|
106
|
-
html:
|
|
107
|
-
css:
|
|
108
|
-
javascript:
|
|
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(
|
|
109
|
+
_document: JSON.stringify(t),
|
|
111
110
|
id: this.$.uid,
|
|
112
|
-
firstRender:
|
|
111
|
+
firstRender: e
|
|
113
112
|
});
|
|
114
113
|
},
|
|
115
114
|
registerStoreListener() {
|
|
116
|
-
this.sendDocumentUpdate =
|
|
115
|
+
this.sendDocumentUpdate = U(this.sendDocMessage, 1e3), this.storeListenerUnsubscribe = this.$store.subscribe((e) => {
|
|
117
116
|
const {
|
|
118
|
-
type:
|
|
119
|
-
} =
|
|
120
|
-
(
|
|
121
|
-
const i =
|
|
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
|
|
128
|
-
(
|
|
126
|
+
var e;
|
|
127
|
+
(e = this.storeListenerUnsubscribe) == null || e.call(this);
|
|
129
128
|
},
|
|
130
129
|
setUsedPathValues() {
|
|
131
|
-
["html", "css", "javascript"].forEach((
|
|
132
|
-
const
|
|
133
|
-
Object.keys(
|
|
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
|
|
141
|
-
if (!
|
|
142
|
-
const
|
|
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(
|
|
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", (
|
|
155
|
-
let
|
|
153
|
+
}), this.sendDocMessage(), window.addEventListener("message", (e) => {
|
|
154
|
+
let t = null;
|
|
156
155
|
try {
|
|
157
|
-
|
|
156
|
+
t = JSON.parse(e.data);
|
|
158
157
|
} catch {
|
|
159
158
|
}
|
|
160
|
-
|
|
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
|
|
165
|
-
this.unregisterStoreListener(), (
|
|
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
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
},
|
|
205
|
-
|
|
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(
|
|
226
|
-
var
|
|
227
|
-
(
|
|
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(
|
|
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(
|
|
240
|
-
var
|
|
241
|
-
(
|
|
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
|
|
249
|
-
this.initMonaco(), (
|
|
230
|
+
var e;
|
|
231
|
+
this.initMonaco(), (e = this.editor) == null || e.focus();
|
|
250
232
|
});
|
|
251
233
|
},
|
|
252
234
|
beforeUnmount() {
|
|
253
|
-
var
|
|
254
|
-
(
|
|
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
|
|
276
|
-
|
|
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((
|
|
282
|
-
window.require.config(
|
|
283
|
-
}), await
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
...
|
|
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(
|
|
305
|
-
const
|
|
306
|
-
|
|
268
|
+
setValue(e) {
|
|
269
|
+
const t = this.getEditor();
|
|
270
|
+
t == null || t.setValue(e);
|
|
307
271
|
},
|
|
308
272
|
getValue() {
|
|
309
|
-
const
|
|
310
|
-
return
|
|
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(
|
|
316
|
-
this.editorMounted(
|
|
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,
|
|
285
|
+
this.codeChangeEmitter(o, t);
|
|
319
286
|
});
|
|
320
287
|
},
|
|
321
|
-
emitChange(
|
|
322
|
-
this.$emit("change",
|
|
288
|
+
emitChange(e, t) {
|
|
289
|
+
this.$emit("change", e, t), this.$emit("input", e);
|
|
323
290
|
}
|
|
324
291
|
}
|
|
325
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
325
|
+
icons: Q
|
|
350
326
|
};
|
|
351
327
|
}
|
|
352
|
-
},
|
|
353
|
-
function
|
|
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
|
|
331
|
+
return d(), u("div", et, [
|
|
356
332
|
f("div", {
|
|
357
333
|
class: "simple-btn",
|
|
358
|
-
onClick:
|
|
334
|
+
onClick: t[0] || (t[0] = (r) => e.$emit("close"))
|
|
359
335
|
}, [
|
|
360
|
-
|
|
336
|
+
a(m, {
|
|
361
337
|
type: "x",
|
|
362
338
|
size: "18"
|
|
363
339
|
})
|
|
364
340
|
]),
|
|
365
|
-
(
|
|
341
|
+
(d(!0), u(j, null, I(o.items, (r) => (d(), u("div", {
|
|
366
342
|
key: r.value,
|
|
367
|
-
class:
|
|
343
|
+
class: S([{
|
|
368
344
|
"tab-item-active": o.modelValue === r.value
|
|
369
345
|
}, "tab-item"]),
|
|
370
|
-
onClick: (g) =>
|
|
346
|
+
onClick: (g) => e.$emit("update:modelValue", r.value)
|
|
371
347
|
}, [
|
|
372
|
-
(
|
|
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,
|
|
359
|
+
}, null, 8, st)),
|
|
384
360
|
f("span", {
|
|
385
361
|
textContent: b(r.text)
|
|
386
|
-
}, null, 8,
|
|
387
|
-
], 10,
|
|
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:
|
|
367
|
+
onClick: t[1] || (t[1] = (r) => e.$emit("update:hLayout", !o.hLayout))
|
|
392
368
|
}, [
|
|
393
|
-
|
|
394
|
-
style:
|
|
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
|
|
379
|
+
const at = /* @__PURE__ */ M(tt, [["render", nt], ["__scopeId", "data-v-477b66fe"]]), rt = {
|
|
404
380
|
name: "CustomModal",
|
|
405
381
|
components: {
|
|
406
|
-
Tabs:
|
|
407
|
-
MonacoEditor:
|
|
408
|
-
Splitpanes:
|
|
409
|
-
Pane:
|
|
410
|
-
CustomView:
|
|
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:
|
|
425
|
+
return this.items.find(({ value: e }) => e === this.currentTab) || {};
|
|
450
426
|
},
|
|
451
427
|
json() {
|
|
452
|
-
const
|
|
453
|
-
return JSON.stringify(
|
|
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(
|
|
461
|
-
const
|
|
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 = { ...
|
|
470
|
-
return
|
|
471
|
-
|
|
445
|
+
], o = { ...e };
|
|
446
|
+
return t.forEach((n) => {
|
|
447
|
+
P(o, n);
|
|
472
448
|
}), o;
|
|
473
449
|
}
|
|
474
450
|
}
|
|
475
|
-
},
|
|
476
|
-
function
|
|
477
|
-
const m = l("Tabs"), r = l("MonacoEditor"), g = l("Pane"),
|
|
478
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
464
|
+
a(E, {
|
|
489
465
|
class: "root font-inter",
|
|
490
466
|
horizontal: i.hLayout
|
|
491
467
|
}, {
|
|
492
468
|
default: p(() => [
|
|
493
|
-
|
|
469
|
+
a(g, null, {
|
|
494
470
|
default: p(() => [
|
|
495
|
-
|
|
471
|
+
a(m, {
|
|
496
472
|
modelValue: i.currentTab,
|
|
497
|
-
"onUpdate:modelValue":
|
|
473
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => i.currentTab = h),
|
|
498
474
|
"h-layout": i.hLayout,
|
|
499
|
-
"onUpdate:hLayout":
|
|
475
|
+
"onUpdate:hLayout": t[1] || (t[1] = (h) => i.hLayout = h),
|
|
500
476
|
items: i.items,
|
|
501
|
-
onClose:
|
|
477
|
+
onClose: t[2] || (t[2] = (h) => e.$modal.hide(i.modalName))
|
|
502
478
|
}, null, 8, ["modelValue", "h-layout", "items"]),
|
|
503
|
-
|
|
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:
|
|
509
|
-
onKeyup:
|
|
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
|
-
|
|
491
|
+
a(g, null, {
|
|
516
492
|
default: p(() => [
|
|
517
|
-
f("div",
|
|
518
|
-
|
|
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
|
|
514
|
+
const ct = /* @__PURE__ */ M(rt, [["render", dt], ["__scopeId", "data-v-8b9ea3bc"]]), _ = J(), ut = {
|
|
539
515
|
components: {
|
|
540
|
-
CustomView:
|
|
541
|
-
CustomModal:
|
|
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 !==
|
|
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 ?
|
|
552
|
+
return this.custom.html ? x(this.custom.html) : "";
|
|
577
553
|
},
|
|
578
|
-
set(
|
|
554
|
+
set(e) {
|
|
579
555
|
this.custom = {
|
|
580
556
|
...this.custom,
|
|
581
|
-
html: w(
|
|
557
|
+
html: w(e)
|
|
582
558
|
};
|
|
583
559
|
}
|
|
584
560
|
},
|
|
585
561
|
css: {
|
|
586
562
|
get() {
|
|
587
|
-
return this.custom.css ?
|
|
563
|
+
return this.custom.css ? x(this.custom.css) : "";
|
|
588
564
|
},
|
|
589
|
-
set(
|
|
565
|
+
set(e) {
|
|
590
566
|
this.custom = {
|
|
591
567
|
...this.custom,
|
|
592
|
-
css: w(
|
|
568
|
+
css: w(e)
|
|
593
569
|
};
|
|
594
570
|
}
|
|
595
571
|
},
|
|
596
572
|
javascript: {
|
|
597
573
|
get() {
|
|
598
|
-
return this.custom.javascript ?
|
|
574
|
+
return this.custom.javascript ? x(this.custom.javascript) : "";
|
|
599
575
|
},
|
|
600
|
-
set(
|
|
576
|
+
set(e) {
|
|
601
577
|
this.custom = {
|
|
602
578
|
...this.custom,
|
|
603
|
-
javascript: w(
|
|
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
|
-
},
|
|
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
|
-
},
|
|
622
|
-
function
|
|
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
|
|
625
|
-
class:
|
|
600
|
+
return d(), u("div", {
|
|
601
|
+
class: S(["custom-root", {
|
|
626
602
|
"is-empty": !s.isEdited
|
|
627
603
|
}]),
|
|
628
|
-
style:
|
|
629
|
-
onMouseoverPassive:
|
|
630
|
-
onMouseleavePassive:
|
|
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 ? (
|
|
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:
|
|
613
|
+
_document: e._document,
|
|
638
614
|
style: { width: "100%", "min-height": "0" }
|
|
639
|
-
}, null, 8, ["html", "css", "javascript", "_document"])) :
|
|
640
|
-
|
|
641
|
-
|
|
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(
|
|
645
|
-
}, null, 8,
|
|
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(
|
|
649
|
-
}, null, 8,
|
|
650
|
-
|
|
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
|
-
|
|
634
|
+
F(b(e.$t("action")), 1)
|
|
659
635
|
]),
|
|
660
636
|
_: 1
|
|
661
637
|
}, 8, ["onClick"])
|
|
662
|
-
])) :
|
|
663
|
-
], 64)) :
|
|
664
|
-
|
|
638
|
+
])) : y("", !0)
|
|
639
|
+
], 64)) : y("", !0),
|
|
640
|
+
a(g, {
|
|
665
641
|
ref: "customModal",
|
|
666
642
|
html: s.html,
|
|
667
|
-
"onUpdate:html":
|
|
643
|
+
"onUpdate:html": t[0] || (t[0] = (c) => s.html = c),
|
|
668
644
|
css: s.css,
|
|
669
|
-
"onUpdate:css":
|
|
645
|
+
"onUpdate:css": t[1] || (t[1] = (c) => s.css = c),
|
|
670
646
|
javascript: s.javascript,
|
|
671
|
-
"onUpdate:javascript":
|
|
672
|
-
_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
|
|
652
|
+
const wt = /* @__PURE__ */ M(ut, [["render", ft]]);
|
|
677
653
|
export {
|
|
678
|
-
|
|
654
|
+
wt as default
|
|
679
655
|
};
|