@cling-se/widget 0.9.4 → 0.9.6
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/dist/{AddClientCallout-d472aa84.js → AddClientCallout-d8f5bc53.js} +5 -5
- package/dist/{AnswerModal-06487437.js → AnswerModal-5f83562b.js} +248 -248
- package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-79eb718b.js} +8 -8
- package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-ae7aebf1.js} +43 -43
- package/dist/{BaseInput-2723d613.js → BaseInput-2c476604.js} +1 -1
- package/dist/{BaseUpload-996d74b3.js → BaseUpload-9e15729d.js} +3 -3
- package/dist/{BlockMedia-00907fb6.js → BlockMedia-a3f00a2f.js} +1 -1
- package/dist/{CCallout-ffa95028.js → CCallout-04e2c8c6.js} +6 -6
- package/dist/{CDropdownItem-74672842.js → CDropdownItem-5532f8af.js} +76 -75
- package/dist/{CField-06dd50f1.js → CField-0bc9de28.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js} +1 -1
- package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-e13c2753.js} +4 -4
- package/dist/{ClientModal-d276aabd.js → ClientModal-da9fddf9.js} +16 -16
- package/dist/{ColorPicker-4f6b70af.js → ColorPicker-06b731b7.js} +2 -2
- package/dist/{CompanyModal-30c54ce3.js → CompanyModal-b7c42f2a.js} +8 -8
- package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fe4a67bc.js} +19 -19
- package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-2024e993.js} +19 -19
- package/dist/DocForm-af03179d.js +7012 -0
- package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-44161541.js} +14 -14
- package/dist/{DocModalBase-f4915a62.js → DocModalBase-9eb0f26f.js} +4 -4
- package/dist/DocPrint-92d12950.js +222 -0
- package/dist/{DocReceipt-d192000e.js → DocReceipt-4df57e1d.js} +1 -1
- package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-041af744.js} +1 -1
- package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-b07dd391.js} +19 -19
- package/dist/{DocTimeline-b4c20f93.js → DocTimeline-2ae2ca63.js} +7 -7
- package/dist/{DocumentClient-c2319f00.js → DocumentClient-3a1aecf2.js} +8 -6
- package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-ae49ac7a.js} +1617 -1709
- package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-91436523.js} +3 -3
- package/dist/{EmbedInput-654c0477.js → EmbedInput-05e22228.js} +2 -2
- package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-9dabb6d4.js} +10 -10
- package/dist/ErrorCallout-c7f69cd9.js +30 -0
- package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-167a40c8.js} +8 -7
- package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-e9b177e0.js} +29 -29
- package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-8565c461.js} +11 -11
- package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-1e61e8da.js} +3 -3
- package/dist/{Index-5cc51230.js → Index-0708b238.js} +12 -12
- package/dist/{Index-82574a41.js → Index-0799eaba.js} +18 -19
- package/dist/{Index-1a7e98d7.js → Index-1f3de208.js} +11 -10
- package/dist/{Index-d8879ca9.js → Index-27a05d76.js} +2 -2
- package/dist/{Index-b15cfd62.js → Index-43899daf.js} +13 -13
- package/dist/{Index-c4de05aa.js → Index-4446581c.js} +10 -9
- package/dist/{Index-01c63c88.js → Index-49766088.js} +2 -2
- package/dist/{Index-caf5cf44.js → Index-630600c9.js} +94 -94
- package/dist/{Index-b14d0f03.js → Index-6b63686e.js} +4 -4
- package/dist/{Index-34c84bab.js → Index-716dbe24.js} +10 -10
- package/dist/{Index-f935c492.js → Index-72bcad54.js} +10 -10
- package/dist/{Index-61f7dc92.js → Index-84820d3d.js} +2 -2
- package/dist/{Index-e749f6f1.js → Index-85e8119e.js} +14 -14
- package/dist/Index-88e175bf.js +54 -0
- package/dist/{Index-e45a0c32.js → Index-89addabd.js} +27 -27
- package/dist/{Index-701f0d05.js → Index-8b29bd10.js} +2 -2
- package/dist/{Index-d45a1eff.js → Index-8d1c62be.js} +4 -4
- package/dist/{Index-63805642.js → Index-96a07794.js} +9 -9
- package/dist/{Index-60fc8a6e.js → Index-9bbfa37b.js} +3 -3
- package/dist/{Index-7443e91c.js → Index-a7a6f91c.js} +31 -31
- package/dist/{Index-8bca2d87.js → Index-a987a099.js} +9 -9
- package/dist/{Index-98e8bb86.js → Index-b6b60b81.js} +8 -8
- package/dist/{Index-5e35f4a2.js → Index-ba0c8eaa.js} +8 -8
- package/dist/{Index-9aaf8b90.js → Index-c038406f.js} +26 -26
- package/dist/Index-c53330d6.js +79 -0
- package/dist/{Index-9233cc83.js → Index-c58260f8.js} +15 -15
- package/dist/{Index-2535f58f.js → Index-c893d091.js} +2 -2
- package/dist/{Index-1d361d01.js → Index-ca112d97.js} +4 -4
- package/dist/{Index-cd76b120.js → Index-e728d2f7.js} +7 -7
- package/dist/{Index-6ef78b7a.js → Index-ecf93915.js} +2 -2
- package/dist/{Index-c7e68382.js → Index-eda700f4.js} +4 -4
- package/dist/{Index-82b5de12.js → Index-ee75e74a.js} +4 -4
- package/dist/{Index-c67218ce.js → Index-f75b1dd5.js} +15 -15
- package/dist/{Index-66c8cbfa.js → Index-fc722547.js} +4 -4
- package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-483acc75.js} +5 -5
- package/dist/{IsPremiumPreStep-3a087524.js → IsPremiumPreStep-aa08f8c8.js} +856 -432
- package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-ed7db800.js} +3 -3
- package/dist/{NotBindingText-b199006c.js → NotBindingText-a99b4f85.js} +2 -2
- package/dist/{PackageGroup-37ac99b1.js → PackageGroup-8cae78f1.js} +56 -56
- package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-9c1c806e.js} +8 -7
- package/dist/{PdfViewer-38bd8439.js → PdfViewer-1227dda6.js} +5 -4
- package/dist/{PlainHtml-9174cbf6.js → PlainHtml-647219e9.js} +1 -1
- package/dist/PriceHeader-cfb22169.js +337 -0
- package/dist/{SearchApi-2e286be6.js → SearchApi-c0067742.js} +2 -2
- package/dist/{TermsSettings-c74eec79.js → TermsSettings-a0282ad7.js} +11 -11
- package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-71af67bd.js} +3 -3
- package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-16c2879e.js} +3 -3
- package/dist/{UploadModal-6d0abd77.js → UploadModal-084e3c2e.js} +16 -16
- package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-fe87698e.js} +3 -3
- package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-06cfaccc.js} +12 -12
- package/dist/VideoSelectModal-fa81fb92.js +111 -0
- package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-ef48c7eb.js} +3 -3
- package/dist/{cssMode-8552fc56.js → cssMode-916ae2c1.js} +7 -7
- package/dist/dom-068d1a7b.js +59 -0
- package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-24942dd1.js} +1 -1
- package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-2dfa2def.js} +25 -25
- package/dist/formValidationMixin-82793652.js +49 -0
- package/dist/{freemarker2-7e10a65d.js → freemarker2-6fd30e77.js} +7 -7
- package/dist/{handlebars-8045bfa8.js → handlebars-ff07e526.js} +7 -7
- package/dist/{html-8afcb633.js → html-5ad143f9.js} +7 -7
- package/dist/{htmlMode-1a2d1b48.js → htmlMode-adc834ff.js} +7 -7
- package/dist/{index-3d6d7a03.js → index-045c9c73.js} +31 -31
- package/dist/{index-c48c5eb4.js → index-1f068e8e.js} +3 -3
- package/dist/{index-bf93d7c2.js → index-6eda8be0.js} +7 -7
- package/dist/{index-f805bfce.js → index-b3fb8f92.js} +45 -45
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +565 -561
- package/dist/{javascript-dad5561e.js → javascript-9c241e8d.js} +8 -8
- package/dist/{jsonMode-ce09245f.js → jsonMode-36a8e1fd.js} +7 -7
- package/dist/{liquid-05247459.js → liquid-da99d7af.js} +7 -7
- package/dist/{main-04025a56.js → main-2dc98356.js} +15380 -12891
- package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-4ac649c2.js} +1 -1
- package/dist/{publicSenderState-97108de1.js → publicSenderState-1db8a50c.js} +1 -1
- package/dist/{python-3f3513c5.js → python-15d86041.js} +7 -7
- package/dist/{razor-1f3e9c4e.js → razor-19e0207f.js} +7 -7
- package/dist/simplebar.min-9f5e0b8a.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{template-42a1d852.js → template-069f0890.js} +1 -1
- package/dist/{throttle-a2c1f34d.js → throttle-f8ef830f.js} +2 -2
- package/dist/{tinycolor-88fa380f.js → tinycolor-78c3e3d5.js} +1 -1
- package/dist/{FormInputRow-9819eb71.js → tippy.esm-d2a6f864.js} +285 -285
- package/dist/{tsMode-4c026047.js → tsMode-7fcdffc4.js} +7 -7
- package/dist/{typescript-baf56f67.js → typescript-f492bdab.js} +7 -7
- package/dist/{utils-6670dea6.js → utils-aab0bc31.js} +1 -1
- package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-eb01eee5.js} +41 -41
- package/dist/{xml-ffc6146a.js → xml-976a8723.js} +7 -7
- package/package.json +3 -2
- package/stats.html +1 -1
- package/vite-plugin-library-asset-external/index.js +134 -0
- package/dist/DocForm-9ca24de4.js +0 -6772
- package/dist/ErrorCallout-60d0b3ab.js +0 -30
- package/dist/Index-b020a80c.js +0 -47
- package/dist/Index-e80f5f9c.js +0 -79
- package/dist/PriceHeader-e357afe9.js +0 -336
- package/dist/VideoSelectModal-d2299552.js +0 -111
- package/dist/simplebar.min-3af55aab.js +0 -2429
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as pe } from "./index-805c56e4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { J as T } from "./main-2dc98356.js";
|
|
3
3
|
var P = {}, f = {}, b = {}, O = {};
|
|
4
4
|
Object.defineProperty(O, "__esModule", {
|
|
5
5
|
value: !0
|
|
@@ -117,8 +117,8 @@ Object.defineProperty(j, "__esModule", {
|
|
|
117
117
|
value: !0
|
|
118
118
|
});
|
|
119
119
|
j.default = void 0;
|
|
120
|
-
var
|
|
121
|
-
j.default =
|
|
120
|
+
var Ve = f, ze = /(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/, De = (0, Ve.regex)("email", ze);
|
|
121
|
+
j.default = De;
|
|
122
122
|
var M = {};
|
|
123
123
|
Object.defineProperty(M, "__esModule", {
|
|
124
124
|
value: !0
|
|
@@ -166,54 +166,54 @@ Object.defineProperty(S, "__esModule", {
|
|
|
166
166
|
value: !0
|
|
167
167
|
});
|
|
168
168
|
S.default = void 0;
|
|
169
|
-
var
|
|
170
|
-
return (0,
|
|
169
|
+
var J = f, Ie = function(t) {
|
|
170
|
+
return (0, J.withParams)({
|
|
171
171
|
type: "maxLength",
|
|
172
172
|
max: t
|
|
173
173
|
}, function(r) {
|
|
174
|
-
return !(0,
|
|
174
|
+
return !(0, J.req)(r) || (0, J.len)(r) <= t;
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
177
|
S.default = Ie;
|
|
178
|
-
var
|
|
179
|
-
Object.defineProperty(
|
|
178
|
+
var V = {};
|
|
179
|
+
Object.defineProperty(V, "__esModule", {
|
|
180
180
|
value: !0
|
|
181
181
|
});
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
return (0,
|
|
182
|
+
V.default = void 0;
|
|
183
|
+
var E = f, Ue = function(t) {
|
|
184
|
+
return (0, E.withParams)({
|
|
185
185
|
type: "minLength",
|
|
186
186
|
min: t
|
|
187
187
|
}, function(r) {
|
|
188
|
-
return !(0,
|
|
188
|
+
return !(0, E.req)(r) || (0, E.len)(r) >= t;
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
Object.defineProperty(
|
|
191
|
+
V.default = Ue;
|
|
192
|
+
var z = {};
|
|
193
|
+
Object.defineProperty(z, "__esModule", {
|
|
194
194
|
value: !0
|
|
195
195
|
});
|
|
196
|
-
|
|
197
|
-
var
|
|
196
|
+
z.default = void 0;
|
|
197
|
+
var F = f, Ze = (0, F.withParams)({
|
|
198
198
|
type: "required"
|
|
199
199
|
}, function(e) {
|
|
200
|
-
return typeof e == "string" ? (0,
|
|
200
|
+
return typeof e == "string" ? (0, F.req)(e.trim()) : (0, F.req)(e);
|
|
201
201
|
});
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
Object.defineProperty(
|
|
202
|
+
z.default = Ze;
|
|
203
|
+
var D = {};
|
|
204
|
+
Object.defineProperty(D, "__esModule", {
|
|
205
205
|
value: !0
|
|
206
206
|
});
|
|
207
|
-
|
|
208
|
-
var
|
|
209
|
-
return (0,
|
|
207
|
+
D.default = void 0;
|
|
208
|
+
var H = f, Ce = function(t) {
|
|
209
|
+
return (0, H.withParams)({
|
|
210
210
|
type: "requiredIf",
|
|
211
211
|
prop: t
|
|
212
212
|
}, function(r, u) {
|
|
213
|
-
return (0,
|
|
213
|
+
return (0, H.ref)(t, this, u) ? (0, H.req)(r) : !0;
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
D.default = Ce;
|
|
217
217
|
var L = {};
|
|
218
218
|
Object.defineProperty(L, "__esModule", {
|
|
219
219
|
value: !0
|
|
@@ -247,17 +247,17 @@ Object.defineProperty(W, "__esModule", {
|
|
|
247
247
|
value: !0
|
|
248
248
|
});
|
|
249
249
|
W.default = void 0;
|
|
250
|
-
var
|
|
251
|
-
W.default =
|
|
250
|
+
var Je = f, Ee = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i, Fe = (0, Je.regex)("url", Ee);
|
|
251
|
+
W.default = Fe;
|
|
252
252
|
var N = {};
|
|
253
253
|
Object.defineProperty(N, "__esModule", {
|
|
254
254
|
value: !0
|
|
255
255
|
});
|
|
256
256
|
N.default = void 0;
|
|
257
|
-
var
|
|
257
|
+
var He = f, Ke = function() {
|
|
258
258
|
for (var t = arguments.length, r = new Array(t), u = 0; u < t; u++)
|
|
259
259
|
r[u] = arguments[u];
|
|
260
|
-
return (0,
|
|
260
|
+
return (0, He.withParams)({
|
|
261
261
|
type: "or"
|
|
262
262
|
}, function() {
|
|
263
263
|
for (var _ = this, m = arguments.length, v = new Array(m), o = 0; o < m; o++)
|
|
@@ -458,7 +458,7 @@ G.default = rt;
|
|
|
458
458
|
return _e.default;
|
|
459
459
|
}
|
|
460
460
|
}), e.helpers = void 0;
|
|
461
|
-
var r = i(P), u = i($), _ = i(w), m = i(q), v = i(j), o = i(M), d = i(A), a = i(S), l = i(
|
|
461
|
+
var r = i(P), u = i($), _ = i(w), m = i(q), v = i(j), o = i(M), d = i(A), a = i(S), l = i(V), y = i(z), ue = i(D), ae = i(L), fe = i(R), ie = i(W), de = i(N), oe = i(I), le = i(U), ce = i(Z), me = i(C), ve = i(B), _e = i(G), se = ye(f);
|
|
462
462
|
e.helpers = se;
|
|
463
463
|
function Q() {
|
|
464
464
|
if (typeof WeakMap != "function")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as e, P as u, a as P, I as C, s as I } from "./IsPremiumPreStep-
|
|
2
|
-
import "./main-
|
|
1
|
+
import { C as e, P as u, a as P, I as C, s as I } from "./IsPremiumPreStep-aa08f8c8.js";
|
|
2
|
+
import "./main-2dc98356.js";
|
|
3
3
|
import "./vuex.esm-4a0fff7c.js";
|
|
4
4
|
import "./anime.es-e284c852.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-045c9c73.js";
|
|
6
6
|
import "./index-805c56e4.js";
|
|
7
7
|
import "./regions-29ee6964.js";
|
|
8
8
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { w as a, d as o } from "./CDropdownItem-
|
|
2
|
-
import { t as c } from "./throttle-
|
|
3
|
-
import { n } from "./main-
|
|
4
|
-
import { i as d } from "./
|
|
5
|
-
import { s as u } from "./simplebar.min-
|
|
1
|
+
import { w as a, d as o } from "./CDropdownItem-5532f8af.js";
|
|
2
|
+
import { t as c } from "./throttle-f8ef830f.js";
|
|
3
|
+
import { n } from "./main-2dc98356.js";
|
|
4
|
+
import { i as d } from "./dom-068d1a7b.js";
|
|
5
|
+
import { s as u } from "./simplebar.min-9f5e0b8a.js";
|
|
6
6
|
const f = {
|
|
7
7
|
name: "BackgroundsModalList",
|
|
8
8
|
i18nOptions: {
|
|
@@ -118,7 +118,7 @@ var h = function() {
|
|
|
118
118
|
}, "&mouseleave": function(r) {
|
|
119
119
|
return e.pauseVideo(l);
|
|
120
120
|
} } }, [t("video", { ref: "video", refInFor: !0, attrs: { src: s.minVideo || s.video, loop: "", muted: "", playsInline: "", preload: "none" }, domProps: { muted: !0 } })]) : e._e(), e.selectedIndex === l ? t("div", { staticClass: "select-wrapper" }) : e._e(), t("div", { staticClass: "photo__credit" }, [e._v(e._s(s.userName))])]);
|
|
121
|
-
})], 2), t("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "2em 1em" } }, [e.isLoading ? t("BaseIcon", { staticClass: "rotateSpin", attrs: { type: "loader" } }) : e.allowMoreResults ? e._e() : t("div", { staticClass: "flex items-center justify-center w-full
|
|
121
|
+
})], 2), t("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "2em 1em" } }, [e.isLoading ? t("BaseIcon", { staticClass: "rotateSpin", attrs: { type: "loader" } }) : e.allowMoreResults ? e._e() : t("div", { staticClass: "flex items-center justify-center w-full text-gray-400" }, [e._v(" " + e._s(e.$t("noMoreResults")) + " ")])], 1)])], 1), t("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { padding: "4px 4px 4px 8px", "flex-shrink": "0" } }, [t("div", { staticClass: "flex-grow text-gray-400" }, [e.mq !== "sm" ? [e.query && e.noOfResults && e.noOfResults > 0 ? t("div", [e._v(" " + e._s(e.$tc("_common:result", { count: e.noOfResults })) + " ")]) : e._e(), t("div", [e._v(" " + e._s(e.creditText) + " ")])] : e._e()], 2), e._t("footer", function() {
|
|
122
122
|
return [t("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { type: "secondary" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])];
|
|
123
123
|
})], 2)]);
|
|
124
124
|
}, p = [], m = /* @__PURE__ */ n(
|
|
@@ -127,7 +127,7 @@ var h = function() {
|
|
|
127
127
|
p,
|
|
128
128
|
!1,
|
|
129
129
|
null,
|
|
130
|
-
"
|
|
130
|
+
"90a095d8",
|
|
131
131
|
null,
|
|
132
132
|
null
|
|
133
133
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as f, a as
|
|
2
|
-
import { n as o, v, S as h, g as l,
|
|
3
|
-
import { w as d } from "./CDropdownItem-
|
|
4
|
-
import { S as x } from "./CSlider.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { B as p } from "./DocTextEditor-
|
|
1
|
+
import { m as f, a as m, b as _ } from "./vuex.esm-4a0fff7c.js";
|
|
2
|
+
import { n as o, x as v, S as h, g as l, h as i } from "./main-2dc98356.js";
|
|
3
|
+
import { w as d } from "./CDropdownItem-5532f8af.js";
|
|
4
|
+
import { S as x } from "./CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js";
|
|
5
|
+
import { B as p } from "./DocTextEditor-b07dd391.js";
|
|
6
6
|
import { v as r } from "./index-805c56e4.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./ColorPicker-
|
|
9
|
-
import "./
|
|
7
|
+
import "./tippy.esm-d2a6f864.js";
|
|
8
|
+
import "./ColorPicker-06b731b7.js";
|
|
9
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
10
10
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
11
11
|
import "./color-71c20583.js";
|
|
12
12
|
const g = {
|
|
@@ -33,12 +33,12 @@ const g = {
|
|
|
33
33
|
};
|
|
34
34
|
var C = function() {
|
|
35
35
|
var e = this, t = e._self._c;
|
|
36
|
-
return e.mq === "sm" ? t("div", [t("div", { on: { click: e.onOpen } }, [e._t("default")], 2), e.isOpen ? t("portal", { attrs: { to: "modal" } }, [t("div", { staticClass: "modal-overlay", on: { click: function(
|
|
37
|
-
return
|
|
38
|
-
} } }, [t("div", { staticClass: "modal-container" }, [e._t("popover", null, { close: e.onClose })], 2)])]) : e._e()], 1) : t("v-popover", e._b({ attrs: { open: e.isOpen, placement: e.placement, "popover-class": "reset" }, on: { close: function(
|
|
36
|
+
return e.mq === "sm" ? t("div", [t("div", { on: { click: e.onOpen } }, [e._t("default")], 2), e.isOpen ? t("portal", { attrs: { to: "modal" } }, [t("div", { staticClass: "modal-overlay", on: { click: function(a) {
|
|
37
|
+
return a.target !== a.currentTarget ? null : e.onClose.apply(null, arguments);
|
|
38
|
+
} } }, [t("div", { staticClass: "modal-container" }, [e._t("popover", null, { close: e.onClose })], 2)])]) : e._e()], 1) : t("v-popover", e._b({ attrs: { open: e.isOpen, placement: e.placement, "popover-class": "reset" }, on: { close: function(a) {
|
|
39
39
|
return e.onClose();
|
|
40
|
-
}, "update:open": function(
|
|
41
|
-
|
|
40
|
+
}, "update:open": function(a) {
|
|
41
|
+
a ? e.onOpen() : e.onClose();
|
|
42
42
|
} } }, "v-popover", e.$props, !1), [e._t("default"), t("div", { staticClass: "popover-container", attrs: { slot: "popover" }, slot: "popover" }, [e.isOpen ? t("portal", { attrs: { to: "modal" } }, [t("div", { staticClass: "overlay" })]) : e._e(), e._t("popover", null, { close: e.onClose })], 2)], 2);
|
|
43
43
|
}, T = [], $ = /* @__PURE__ */ o(
|
|
44
44
|
g,
|
|
@@ -165,7 +165,7 @@ const { mapFields: S } = v({
|
|
|
165
165
|
this.load(), this.predefinedTextContent && (this.textContent = this.predefinedTextContent);
|
|
166
166
|
},
|
|
167
167
|
methods: {
|
|
168
|
-
...
|
|
168
|
+
...m({
|
|
169
169
|
loadTemplate: l.LOAD_TEMPLATE_MESSAGE,
|
|
170
170
|
deleteTemplate: l.DELETE_TEMPLATE_MESSAGE,
|
|
171
171
|
formNewTemplate: l.FORM_NEW_TEMPLATE_MESSAGE,
|
|
@@ -182,8 +182,8 @@ const { mapFields: S } = v({
|
|
|
182
182
|
}), await this.formEditTemplate({
|
|
183
183
|
id: this.id
|
|
184
184
|
})) : await this.formNewTemplate();
|
|
185
|
-
} catch (
|
|
186
|
-
i(
|
|
185
|
+
} catch (s) {
|
|
186
|
+
i(s);
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
validateBeforeSubmit() {
|
|
@@ -193,34 +193,34 @@ const { mapFields: S } = v({
|
|
|
193
193
|
if (this.hasChanged)
|
|
194
194
|
try {
|
|
195
195
|
await this.formSubmitTemplate(), typeof this.onAfterSubmit == "function" && this.onAfterSubmit();
|
|
196
|
-
} catch (
|
|
197
|
-
i(
|
|
196
|
+
} catch (s) {
|
|
197
|
+
i(s);
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
async remove() {
|
|
201
201
|
try {
|
|
202
202
|
await this.deleteTemplate({ id: this.id }), typeof this.onAfterSubmit == "function" && this.onAfterSubmit();
|
|
203
|
-
} catch (
|
|
204
|
-
i(
|
|
203
|
+
} catch (s) {
|
|
204
|
+
i(s);
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
var M = function() {
|
|
210
210
|
var e = this, t = e._self._c;
|
|
211
|
-
return t("div", { staticStyle: { position: "relative" } }, [e.showFixedCloseButton ? t("CButton", { staticClass: "fixed-close-button", attrs: { circle: "", icon: "x" }, on: { click: function(
|
|
211
|
+
return t("div", { staticStyle: { position: "relative" } }, [e.showFixedCloseButton ? t("CButton", { staticClass: "fixed-close-button", attrs: { circle: "", icon: "x" }, on: { click: function(a) {
|
|
212
212
|
return e.$emit("close");
|
|
213
|
-
} } }) : e._e(), e.isFetching ? t("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "
|
|
213
|
+
} } }) : e._e(), e.isFetching ? t("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "calc(3 * var(--rem)) 0" } }, [t("Spinner")], 1) : e.templateMessage !== void 0 ? t("form", [t("CField", { attrs: { validator: e.$v.name, messages: e.messages.name, label: e.$t("name.label") } }, [t("CInput", { attrs: { placeholder: e.$t("name.placeholder") }, on: { blur: function(a) {
|
|
214
214
|
return e.$v.name.$touch();
|
|
215
|
-
} }, model: { value: e.name, callback: function(
|
|
216
|
-
e.name =
|
|
217
|
-
}, expression: "name" } })], 1), t("CField", { attrs: { validator: e.$v.textContent, messages: e.messages.textContent, label: e.$t("textLabel") } }, [t("BaseTextEditor", { attrs: { placeholder: e.$t("placeholderType.default"), "class-list": "large" }, on: { blur: function(
|
|
215
|
+
} }, model: { value: e.name, callback: function(a) {
|
|
216
|
+
e.name = a;
|
|
217
|
+
}, expression: "name" } })], 1), t("CField", { attrs: { validator: e.$v.textContent, messages: e.messages.textContent, label: e.$t("textLabel") } }, [t("BaseTextEditor", { attrs: { placeholder: e.$t("placeholderType.default"), "class-list": "large" }, on: { blur: function(a) {
|
|
218
218
|
return e.$v.textContent.$touch();
|
|
219
|
-
} }, model: { value: e.textContent, callback: function(
|
|
220
|
-
e.textContent =
|
|
221
|
-
}, expression: "textContent" } })], 1), t("CButton", { staticStyle: { "margin-top": "
|
|
219
|
+
} }, model: { value: e.textContent, callback: function(a) {
|
|
220
|
+
e.textContent = a;
|
|
221
|
+
}, expression: "textContent" } })], 1), t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, disabled: !e.hasChanged, type: "secondary", icon: "save", wide: "" }, on: { click: function(a) {
|
|
222
222
|
return e.validateBeforeSubmit();
|
|
223
|
-
} } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")]), e.id ? t("CButton", { staticStyle: { "margin-top": "
|
|
223
|
+
} } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")]), e.id ? t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", pattern: "tertiary", wide: "" }, on: { click: function(a) {
|
|
224
224
|
return e.remove();
|
|
225
225
|
} } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")]) : e._e()], 1) : e._e()], 1);
|
|
226
226
|
}, E = [], F = /* @__PURE__ */ o(
|
|
@@ -229,7 +229,7 @@ var M = function() {
|
|
|
229
229
|
E,
|
|
230
230
|
!1,
|
|
231
231
|
null,
|
|
232
|
-
"
|
|
232
|
+
"7cf9875e",
|
|
233
233
|
null,
|
|
234
234
|
null
|
|
235
235
|
);
|
|
@@ -249,15 +249,15 @@ const k = {
|
|
|
249
249
|
},
|
|
250
250
|
computed: {
|
|
251
251
|
..._("templateMessages", {
|
|
252
|
-
templateMessages: (
|
|
252
|
+
templateMessages: (s) => s.data
|
|
253
253
|
}),
|
|
254
254
|
templates() {
|
|
255
255
|
return Object.values(this.templateMessages);
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
methods: {
|
|
259
|
-
onSelect(
|
|
260
|
-
this.$emit("select",
|
|
259
|
+
onSelect(s) {
|
|
260
|
+
this.$emit("select", s), this.close();
|
|
261
261
|
},
|
|
262
262
|
close() {
|
|
263
263
|
this.$emit("close");
|
|
@@ -286,18 +286,18 @@ const k = {
|
|
|
286
286
|
};
|
|
287
287
|
var q = function() {
|
|
288
288
|
var e = this, t = e._self._c;
|
|
289
|
-
return t("SmartList", { attrs: { items: e.templates, "sort-key": "position", query: e.query }, scopedSlots: e._u([{ key: "default", fn: function({ items:
|
|
289
|
+
return t("SmartList", { attrs: { items: e.templates, "sort-key": "position", query: e.query }, scopedSlots: e._u([{ key: "default", fn: function({ items: a }) {
|
|
290
290
|
return [t("div", { ref: "modal-container", staticClass: "font-inter t-modal" }, [t("div", { staticClass: "t-nav" }, [t("CInput", { ref: "searchInput", staticClass: "search-input focus:text-gray-500", attrs: { placeholder: e.$t("search"), icon: "search" }, on: { input: function(n) {
|
|
291
291
|
e.selectedIndex = 0;
|
|
292
292
|
} }, model: { value: e.query, callback: function(n) {
|
|
293
293
|
e.query = n;
|
|
294
|
-
}, expression: "query" } })], 1), t("div", { staticClass: "t-main" }, [t("div", { staticClass: "t-list" }, e._l(
|
|
295
|
-
return t("div", { key: n.id, staticClass: "t-list-item truncate-text", class: { selected:
|
|
296
|
-
e.selectedIndex =
|
|
294
|
+
}, expression: "query" } })], 1), t("div", { staticClass: "t-main" }, [t("div", { staticClass: "t-list" }, e._l(a, function(n, c) {
|
|
295
|
+
return t("div", { key: n.id, staticClass: "t-list-item truncate-text", class: { selected: c === e.selectedIndex }, on: { "&mouseover": function(u) {
|
|
296
|
+
e.selectedIndex = c;
|
|
297
297
|
}, click: function(u) {
|
|
298
|
-
return e.onSelect(
|
|
298
|
+
return e.onSelect(a[e.selectedIndex].message || "");
|
|
299
299
|
} } }, [e._v(" " + e._s(n.name) + " ")]);
|
|
300
|
-
}), 0), e.mq !== "sm" ? t("div", { staticClass: "t-text quill-format" }, [
|
|
300
|
+
}), 0), e.mq !== "sm" ? t("div", { staticClass: "t-text quill-format" }, [a[e.selectedIndex] ? t("BaseTextEditor", { attrs: { value: a[e.selectedIndex].message || "", editable: !1, extensions: "all", "class-list": "document-form", unstyled: "" } }) : t("div", [e._v(" " + e._s(e.$t("noResults")) + " ")])], 1) : e._e()]), t("div", { staticClass: "flex items-center justify-between w-full t-footer" }, [t("div", { staticStyle: { display: "inline-flex", "align-items": "center" } }), t("div", [t("CButton", { staticClass: "t-footer-button", attrs: { to: { name: "settingsTemplates" }, target: "_blank", size: "small" } }, [e._v(" " + e._s(e.$t("handle")) + " "), t("BaseIcon", { staticStyle: { "margin-left": "0.5em" }, attrs: { type: "new-window", size: "16" } })], 1), t("CButton", { staticClass: "t-footer-button", attrs: { size: "small" }, on: { click: e.openCreateModal } }, [e._v(" " + e._s(e.$t("create", { thing: e.$t("template") })) + " ")])], 1)])])];
|
|
301
301
|
} }]) });
|
|
302
302
|
}, A = [], L = /* @__PURE__ */ o(
|
|
303
303
|
k,
|
|
@@ -305,7 +305,7 @@ var q = function() {
|
|
|
305
305
|
A,
|
|
306
306
|
!1,
|
|
307
307
|
null,
|
|
308
|
-
"
|
|
308
|
+
"dee4a01c",
|
|
309
309
|
null,
|
|
310
310
|
null
|
|
311
311
|
);
|
|
@@ -330,19 +330,19 @@ const B = L.exports, O = {
|
|
|
330
330
|
this.viewSettings.isPublicForm || this.loadTemplateMessages();
|
|
331
331
|
},
|
|
332
332
|
methods: {
|
|
333
|
-
...
|
|
333
|
+
...m({
|
|
334
334
|
loadTemplateMessages: l.LOAD_TEMPLATE_MESSAGES
|
|
335
335
|
})
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
var I = function() {
|
|
339
339
|
var e = this, t = e._self._c;
|
|
340
|
-
return e.viewSettings.isPublicForm ? e._e() : t("div", { staticClass: "t-list" }, [t("ContextModal", { attrs: { "break-point": 1e3, placement: e.placement }, on: { open: function(
|
|
340
|
+
return e.viewSettings.isPublicForm ? e._e() : t("div", { staticClass: "t-list" }, [t("ContextModal", { attrs: { "break-point": 1e3, placement: e.placement }, on: { open: function(a) {
|
|
341
341
|
return e.$emit("open");
|
|
342
|
-
}, close: function(
|
|
342
|
+
}, close: function(a) {
|
|
343
343
|
return e.$emit("close");
|
|
344
|
-
} }, scopedSlots: e._u([{ key: "popover", fn: function({ close:
|
|
345
|
-
return [t("TextTemplatesModal", { on: { close:
|
|
344
|
+
} }, scopedSlots: e._u([{ key: "popover", fn: function({ close: a }) {
|
|
345
|
+
return [t("TextTemplatesModal", { on: { close: a, select: function(n) {
|
|
346
346
|
return e.$emit("select", n);
|
|
347
347
|
} } })];
|
|
348
348
|
} }], null, !1, 1240188552) }, [t("div", { staticClass: "t-option main" }, [e._t("default")], 2)])], 1);
|