@cling-se/widget 0.15.3 → 0.15.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/README.md +43 -43
- package/dist/{AddClientCallout-8s5a1_CZ.js → AddClientCallout-BpWCvb7A.js} +15 -13
- package/dist/{AnswerModal-Cnp43tGo.js → AnswerModal-0JXov7oA.js} +71 -71
- package/dist/{AttachmentItem-BP85gcjP.js → AttachmentItem-C93ndWhI.js} +17 -12
- package/dist/{BaseDatePicker-C27CsTzy.js → BaseDatePicker-BaUxrKlN.js} +2 -2
- package/dist/{BaseUpload-DnhS3hGx.js → BaseUpload-CACi6tYY.js} +3 -3
- package/dist/{BlockMedia-D4nhek2s.js → BlockMedia-Dlv23tgo.js} +2 -2
- package/dist/{CCallout-CQjRcxpC.js → CCallout-jnIpJu5U.js} +4 -5
- package/dist/{CCurrencyDropdown-BT01qBGg.js → CCurrencyDropdown-BQLDbp9J.js} +4 -4
- package/dist/{CDropdownItem-BSPNul90.js → CDropdownItem-CNUf29O4.js} +139 -37
- package/dist/{CFormField-Cz_jNazS.js → CFormField-qy_STCgm.js} +3 -4
- package/dist/{CPhoneFormat-C017AoM0.js → CPhoneFormat-BZd_xftN.js} +1 -1
- package/dist/CPhoneInput-j4Zuah8p.js +138 -0
- package/dist/{CPriceInput-jktMjvwx.js → CPriceInput-CXGw4w0R.js} +2 -2
- package/dist/CSelect-CSwTYXae.js +91 -0
- package/dist/CSkeleton-B5J9cKAm.js +55 -0
- package/dist/ClientAutocomplete-CjaUEuHJ.js +438 -0
- package/dist/{ClientModal-DLtFhJya.js → ClientModal-Cn40dzh3.js} +77 -42
- package/dist/{ColorPicker-MQmVGbvm.js → ColorPicker-wUW8hJ8i.js} +2 -2
- package/dist/{CompanyModal-Qx5xMku0.js → CompanyModal-CbcusrDu.js} +25 -19
- package/dist/{ContentWrapper-B9NQqp2q.js → ContentWrapper-Bad8dXOX.js} +11 -11
- package/dist/CoverBlockSettings-DX390gBU.js +659 -0
- package/dist/{DocAnswer-BlxFv_Gc.js → DocAnswer-BESzyKCO.js} +2 -2
- package/dist/{DocDetails-dGcYGJpp.js → DocDetails-1rMbwwY3.js} +10 -10
- package/dist/{DocForm-C6o_XBcW.js → DocForm-B3IxEK4j.js} +512 -498
- package/dist/{DocFormSend-_prtxNIf.js → DocFormSend-sm8Hu8Be.js} +14 -15
- package/dist/{DocLinks-Dp495SCS.js → DocLinks-CyXFaNcq.js} +2 -2
- package/dist/{DocModalBase-B0wYq3ft.js → DocModalBase-CSh4Lkzq.js} +2 -2
- package/dist/{DocPrint-CURxofeU.js → DocPrint-BQ-M-3OC.js} +3 -3
- package/dist/{DocReceipt-DgGcBRVH.js → DocReceipt-OoEOv4bh.js} +25 -20
- package/dist/{DocSendReminder-CPty4svi.js → DocSendReminder-dQcAFIdw.js} +19 -16
- package/dist/{DocTextEditor-BYsXFRLg.js → DocTextEditor-Ckfx6Hj5.js} +13 -15
- package/dist/{DocTimeline-CHg1QykR.js → DocTimeline-DDaN8k9R.js} +36 -34
- package/dist/{DocumentClient-CZ6N73pQ.js → DocumentClient-DBA3AQQG.js} +5 -5
- package/dist/{DocumentLayout-CiszuoQc.js → DocumentLayout-D42e3G51.js} +1503 -1539
- package/dist/{DocumentLogotype-BgFCWcwC.js → DocumentLogotype-ngySb8g4.js} +18 -15
- package/dist/{DocumentVoided-DT2hhHk2.js → DocumentVoided-Dtj2XpOI.js} +1 -1
- package/dist/{EmbedInput-aLmvzK1I.js → EmbedInput-CxqpXi4D.js} +25 -21
- package/dist/{EmbedSettings-BZipciy9.js → EmbedSettings-B4ejIQIJ.js} +13 -11
- package/dist/{ErrorCallout-CNxSDsr_.js → ErrorCallout-BiCmogrM.js} +6 -6
- package/dist/{FilePreviewModal-DxdksQiy.js → FilePreviewModal-CpSfuR9V.js} +3 -3
- package/dist/Flag-B9CEVlmX.js +46 -0
- package/dist/{HeaderSettings-DeoSRi6O.js → HeaderSettings-CowCzINW.js} +155 -110
- package/dist/{ImageSelectModal-DvQz2VPi.js → ImageSelectModal-DdzcxIMp.js} +6 -6
- package/dist/{ImageUploadWrapper-CNQRdHF9.js → ImageUploadWrapper-CWCF8Dlc.js} +3 -3
- package/dist/{Index-CPjAXBMU.js → Index-07hqDjA-.js} +5 -5
- package/dist/{Index-CDKq7Fx6.js → Index-4_K-mW5b.js} +4 -4
- package/dist/Index-B4PLiPUX.js +28 -0
- package/dist/{Index-CjfCyQlB.js → Index-B4imH9tr.js} +5 -5
- package/dist/{Index-CJeSVpRh.js → Index-BGXkhXYw.js} +2 -2
- package/dist/{Index-BjdxeF4C.js → Index-BLK2yfMF.js} +2 -2
- package/dist/{Index-w5DWfGOc.js → Index-BS2bqI3s.js} +4 -4
- package/dist/{Index-CWj2vDHc.js → Index-BXm5pjk3.js} +49 -44
- package/dist/{Index-B3Q09phm.js → Index-BY9jJJk1.js} +4 -4
- package/dist/{Index-BEpKb8IR.js → Index-BeAySORd.js} +4 -4
- package/dist/{Index-BIv8flFB.js → Index-BguXp1xd.js} +9 -9
- package/dist/{Index-CTqdaykO.js → Index-CEQgPBnH.js} +18 -12
- package/dist/{Index-q04Dwxrr.js → Index-CWRkkwfa.js} +7 -7
- package/dist/{Index-3bD76d9q.js → Index-CaRFixxe.js} +7 -7
- package/dist/{Index-D-l3i9vY.js → Index-ClP8s9kZ.js} +3 -3
- package/dist/{Index-BDCgilFk.js → Index-Cmu_M3TM.js} +2 -2
- package/dist/{Index-BglKAnNq.js → Index-Cnyk_-IC.js} +7 -7
- package/dist/{Index-CvRNeJ4U.js → Index-CpLsMmCx.js} +124 -123
- package/dist/{Index-CXibuEkU.js → Index-D7WQe9WH.js} +15 -15
- package/dist/{Index-CTk6Nh-I.js → Index-DAsAy5JF.js} +7 -7
- package/dist/{Index-BiVwDgqW.js → Index-DEcCSixa.js} +2 -2
- package/dist/{Index-PUFeH_1z.js → Index-DMy3kJ7T.js} +4 -4
- package/dist/{Index-Cfc0Q0AG.js → Index-DWC0ggkj.js} +6 -6
- package/dist/{Index-B0n1UOOA.js → Index-DZ59IAyR.js} +6 -6
- package/dist/{Index-S3LqU0A0.js → Index-DdJbi1AO.js} +12 -10
- package/dist/{Index-B9_POjpY.js → Index-Df9ct4wb.js} +23 -21
- package/dist/{Index-D1NwTUs-.js → Index-DhrjL3IY.js} +5 -5
- package/dist/{Index-FC1UsElU.js → Index-Dm0Fzc6C.js} +7 -7
- package/dist/{Index-Ch5j2tqD.js → Index-DqSikIZB.js} +2 -2
- package/dist/{Index-BeMeWDIf.js → Index-DtSf7JJt.js} +6 -6
- package/dist/{Index-BNJ2KHKc.js → Index-FfBNBm3w.js} +3 -3
- package/dist/{Index-jIIHHGh3.js → Index-SN7H4PM1.js} +489 -471
- package/dist/{Index-CePHdKi2.js → Index-U_PvsI4Y.js} +5 -5
- package/dist/{Index-C-CE21WK.js → Index-sFiPn5zO.js} +5 -5
- package/dist/{InputToggleRow-CvHvRdsn.js → InputToggleRow-CRC8ievQ.js} +2 -2
- package/dist/{ManualPopover-DxE-6-Sp.js → ManualPopover-15SKAS2F.js} +1 -1
- package/dist/{MediaWrapper-DNi80fbw.js → MediaWrapper-CihDdp6P.js} +3 -3
- package/dist/{NotBindingText-D2rYFVxr.js → NotBindingText-nUBihSic.js} +2 -2
- package/dist/{PackageGroup-6ar8HjPo.js → PackageGroup-Bk0UeRqr.js} +26 -20
- package/dist/PdfTerms-Cy2kB_Zo.js +31 -0
- package/dist/{PdfViewer-B5qbLLtd.js → PdfViewer-BMcMfsRH.js} +5 -5
- package/dist/{PlainHtml-CIMtcn2F.js → PlainHtml-BDvPNe17.js} +1 -1
- package/dist/{PriceHeader-BSpj_-5M.js → PriceHeader-DzvUaY9O.js} +15 -15
- package/dist/{SearchApi-Cwgf52EV.js → SearchApi-BPJpYWWz.js} +2 -2
- package/dist/SendForm-DWVu8jq8.js +1023 -0
- package/dist/{Setup-CRmiH9lD.js → Setup-DjxGq4d9.js} +1 -1
- package/dist/{SmartList-D6AvxfSL.js → SmartList-Bh10ojB0.js} +1 -1
- package/dist/{TermsSettings-DEO1O460.js → TermsSettings-Cg8TYiLL.js} +17 -12
- package/dist/{ThemeColorRow-Cy1NKEIG.js → ThemeColorRow-BeNhoFSI.js} +4 -4
- package/dist/{ToggleBinding-BvIUt1Jx.js → ToggleBinding-KmMUK5gz.js} +12 -10
- package/dist/{UploadModal-C1j-GeMD.js → UploadModal-DTmPPCz3.js} +6 -6
- package/dist/{VideoPlayerInput-BmbrquN6.js → VideoPlayerInput-Z5j6JzLW.js} +15 -11
- package/dist/{VideoPlayerSettings-B7HpBoWX.js → VideoPlayerSettings-C7GjuMAw.js} +3 -3
- package/dist/{VideoSelectModal-CeaG2tME.js → VideoSelectModal-DMIdcoOE.js} +4 -4
- package/dist/{answerDocumentMixin-AcDG8Byi.js → answerDocumentMixin-DulmofDA.js} +3 -3
- package/dist/{debounce-HJoaSvIY.js → debounce-nohaKn7u.js} +16 -16
- package/dist/{focusDrawerMixin-CBYjpEGL.js → focusDrawerMixin-BsYcC4qG.js} +1 -1
- package/dist/{formDrawerState-DYSBcjo4.js → formDrawerState-Bpcaq429.js} +1 -1
- package/dist/{formValidationMixin-Dqlhg0R2.js → formValidationMixin-DYGNCEbq.js} +1 -1
- package/dist/{index-CLOsPxCh.js → index-BUGMJTF2.js} +35 -33
- package/dist/{index-CKZmpLr6.js → index-BVOHCIHl.js} +781 -2021
- package/dist/{index-CFe1BJZJ.js → index-CtA6LmXt.js} +1 -1
- package/dist/{index-zzCfHTf8.js → index-CxitjuY3.js} +2 -2
- package/dist/{index-CFx0cpeM.js → index-CySeSzas.js} +1 -1
- package/dist/{index-CFwLDxbi.js → index-zBWldKKX.js} +18 -17
- package/dist/index.es.js +10 -10
- package/dist/index.umd.js +177 -173
- package/dist/{main-BIwKzAN8.js → main-CfSVOXu-.js} +12995 -11349
- package/dist/{mapFormMixin-e2PJ431T.js → mapFormMixin-BTZaIaQ8.js} +1 -1
- package/dist/omit-DIEW6Th9.js +31 -0
- package/dist/{publicSenderState-D-_7UwjT.js → publicSenderState-B4TdI-yD.js} +1 -1
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/simplebar.min-BZ0EEeAp.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{throttle-B2yMLA5N.js → throttle-JENEyCY1.js} +2 -2
- package/dist/{tinycolor-vIxz4Xgi.js → tinycolor-79beE8BV.js} +1 -1
- package/dist/{tippy.esm-DiOYviyf.js → tippy.esm-CR28gOMM.js} +208 -206
- package/dist/{utils-CFXqaEy7.js → utils-CD2k1yv3.js} +1 -1
- package/dist/{vuedraggable.umd-DDT8qZBI.js → vuedraggable.umd-IXGjMCUG.js} +1 -1
- package/package.json +2 -11
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-B3z6RPXr.js +0 -82
- package/dist/CoverBlockSettings-Bcz_W5I3.js +0 -275
- package/dist/Flag-3OyFDPsP.js +0 -114
- package/dist/Index-Cr6DlYGN.js +0 -21
- package/dist/PdfTerms-B-lbU_6H.js +0 -36
- package/dist/formComponentsInstall-DMoWrprH.js +0 -2505
- package/dist/omit-CpamclWf.js +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ad as Ue, l as De, n as $e, an as ye, W as ve } from "./main-CfSVOXu-.js";
|
|
2
2
|
/*!
|
|
3
3
|
* Compressor.js v1.1.1
|
|
4
4
|
* https://fengyuanchen.github.io/compressorjs
|
|
@@ -1697,7 +1697,7 @@ const Ve = /* @__PURE__ */ De(Ye), Qe = {
|
|
|
1697
1697
|
name: "BaseUpload",
|
|
1698
1698
|
components: {
|
|
1699
1699
|
FileUpload: Ve,
|
|
1700
|
-
UploadModal: () => import("./UploadModal-
|
|
1700
|
+
UploadModal: () => import("./UploadModal-DTmPPCz3.js")
|
|
1701
1701
|
},
|
|
1702
1702
|
props: {
|
|
1703
1703
|
// Optional function to handle any errors
|
|
@@ -1969,7 +1969,7 @@ var Ze = function() {
|
|
|
1969
1969
|
et,
|
|
1970
1970
|
!1,
|
|
1971
1971
|
null,
|
|
1972
|
-
"
|
|
1972
|
+
"fbb556fb"
|
|
1973
1973
|
);
|
|
1974
1974
|
const nt = tt.exports;
|
|
1975
1975
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as d } from "./color-TdtKxwVa.js";
|
|
2
|
-
import { n, b as i,
|
|
2
|
+
import { n, b as i, G as c } from "./main-CfSVOXu-.js";
|
|
3
3
|
const u = {
|
|
4
4
|
name: "BlockMedia",
|
|
5
5
|
inject: {
|
|
@@ -68,7 +68,7 @@ var m = function() {
|
|
|
68
68
|
p,
|
|
69
69
|
!1,
|
|
70
70
|
null,
|
|
71
|
-
"
|
|
71
|
+
"020e4498"
|
|
72
72
|
);
|
|
73
73
|
const g = v.exports;
|
|
74
74
|
export {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as a,
|
|
2
|
-
import "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js";
|
|
1
|
+
import { n as a, k as s } from "./main-CfSVOXu-.js";
|
|
3
2
|
const i = {
|
|
4
3
|
name: "CCallout",
|
|
5
4
|
components: {
|
|
@@ -51,9 +50,9 @@ var l = function() {
|
|
|
51
50
|
n,
|
|
52
51
|
!1,
|
|
53
52
|
null,
|
|
54
|
-
"
|
|
53
|
+
"fa2899aa"
|
|
55
54
|
);
|
|
56
|
-
const
|
|
55
|
+
const u = r.exports;
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
u as C
|
|
59
58
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as t, a as l } from "./CDropdownItem-
|
|
2
|
-
import { n as s,
|
|
3
|
-
import { S as c } from "./SmartList-
|
|
1
|
+
import { C as t, a as l } from "./CDropdownItem-CNUf29O4.js";
|
|
2
|
+
import { n as s, j as u, r as i } from "./main-CfSVOXu-.js";
|
|
3
|
+
import { S as c } from "./SmartList-Bh10ojB0.js";
|
|
4
4
|
const d = {
|
|
5
5
|
AED: "United Arab Emirates Dirham",
|
|
6
6
|
AFN: "Afghan Afghani",
|
|
@@ -242,7 +242,7 @@ var S = function() {
|
|
|
242
242
|
C,
|
|
243
243
|
!1,
|
|
244
244
|
null,
|
|
245
|
-
"
|
|
245
|
+
"dea600c8"
|
|
246
246
|
);
|
|
247
247
|
const y = m.exports;
|
|
248
248
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as f,
|
|
1
|
+
import { V as f, l as m, n as p } from "./main-CfSVOXu-.js";
|
|
2
2
|
class b {
|
|
3
3
|
constructor({ defaults: e = { width: 800, height: 600 }, delay: i = 50 } = {}) {
|
|
4
4
|
this._width = e.width, this._height = e.height, this._delay = i, this._timer = null, this._initialized = !1, this._handler = this._handleResize.bind(this);
|
|
@@ -30,7 +30,7 @@ class b {
|
|
|
30
30
|
return this.initialized ? (window.removeEventListener("resize", this._handler, { passive: !0 }), this._initialized = !1, this) : this;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const y = new b().init(), c = new f({ data: { windowSize: y } }), v = {
|
|
34
34
|
computed: {
|
|
35
35
|
windowWidth() {
|
|
36
36
|
return c.windowSize.width;
|
|
@@ -54,7 +54,7 @@ const v = new b().init(), c = new f({ data: { windowSize: v } }), y = {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var u = { exports: {} };
|
|
58
58
|
(function(t, e) {
|
|
59
59
|
Object.defineProperty(e, "__esModule", {
|
|
60
60
|
value: !0
|
|
@@ -63,10 +63,10 @@ var h = { exports: {} };
|
|
|
63
63
|
return !!(typeof window < "u" && ("ontouchstart" in window || window.DocumentTouch && typeof document < "u" && document instanceof window.DocumentTouch)) || !!(typeof navigator < "u" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
64
64
|
}
|
|
65
65
|
t.exports = e.default;
|
|
66
|
-
})(
|
|
67
|
-
var g =
|
|
68
|
-
const w = /* @__PURE__ */ m(g),
|
|
69
|
-
function
|
|
66
|
+
})(u, u.exports);
|
|
67
|
+
var g = u.exports;
|
|
68
|
+
const w = /* @__PURE__ */ m(g), F = w();
|
|
69
|
+
function j(t, e) {
|
|
70
70
|
return e.split(".").reduce((o, s) => o ? o[s] : null, t);
|
|
71
71
|
}
|
|
72
72
|
function _(t) {
|
|
@@ -79,10 +79,10 @@ function C(t) {
|
|
|
79
79
|
const a = document.createElement("div");
|
|
80
80
|
return s.appendChild(a), a.appendChild(t), o.appendChild(s), s;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function H(t, e, i) {
|
|
83
83
|
return Math.max(e, Math.min(i, t));
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const d = (t, e = !1) => t ? e ? t.querySelectorAll('*[tabindex="-1"]') : t.querySelectorAll(`a[href]:not([tabindex="-1"]),
|
|
86
86
|
area[href],
|
|
87
87
|
input:not([disabled]),
|
|
88
88
|
select:not([disabled]),
|
|
@@ -93,27 +93,27 @@ const r = (t, e = !1) => t ? e ? t.querySelectorAll('*[tabindex="-1"]') : t.quer
|
|
|
93
93
|
embed,
|
|
94
94
|
*[tabindex]:not([tabindex="-1"]),
|
|
95
95
|
*[contenteditable]`) : null;
|
|
96
|
-
let
|
|
96
|
+
let h;
|
|
97
97
|
const x = (t, { value: e = !0 }) => {
|
|
98
98
|
if (e) {
|
|
99
|
-
let i =
|
|
100
|
-
i && i.length > 0 && (
|
|
101
|
-
i =
|
|
99
|
+
let i = d(t), o = d(t, !0);
|
|
100
|
+
i && i.length > 0 && (h = (s) => {
|
|
101
|
+
i = d(t), o = d(t, !0);
|
|
102
102
|
const a = i[0], n = i[i.length - 1];
|
|
103
103
|
s.target === a && s.shiftKey && s.key === "Tab" ? (s.preventDefault(), n.focus()) : (s.target === n || Array.from(o).indexOf(s.target) >= 0) && !s.shiftKey && s.key === "Tab" && (s.preventDefault(), a.focus());
|
|
104
|
-
}, t.addEventListener("keydown",
|
|
104
|
+
}, t.addEventListener("keydown", h));
|
|
105
105
|
}
|
|
106
|
-
},
|
|
107
|
-
t.removeEventListener("keydown",
|
|
108
|
-
},
|
|
106
|
+
}, k = (t) => {
|
|
107
|
+
t.removeEventListener("keydown", h);
|
|
108
|
+
}, $ = {
|
|
109
109
|
bind: x,
|
|
110
|
-
unbind:
|
|
110
|
+
unbind: k
|
|
111
111
|
}, S = ["escape", "outside"], A = {
|
|
112
112
|
name: "CDropdown",
|
|
113
113
|
directives: {
|
|
114
|
-
trapFocus:
|
|
114
|
+
trapFocus: $
|
|
115
115
|
},
|
|
116
|
-
mixins: [
|
|
116
|
+
mixins: [v],
|
|
117
117
|
props: {
|
|
118
118
|
value: {
|
|
119
119
|
type: [String, Number, Boolean, Object, Array, Function],
|
|
@@ -356,8 +356,8 @@ const x = (t, { value: e = !0 }) => {
|
|
|
356
356
|
n[l] && i.classList.add(l);
|
|
357
357
|
}), this.appendToBodyCopyParent) {
|
|
358
358
|
const n = this.$refs.dropdown.parentNode, l = this.$data._bodyEl;
|
|
359
|
-
l.classList.forEach((
|
|
360
|
-
l.classList.add(
|
|
359
|
+
l.classList.forEach((r) => l.classList.remove(r)), n.classList.forEach((r) => {
|
|
360
|
+
l.classList.add(r);
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
const o = e.getBoundingClientRect();
|
|
@@ -385,16 +385,117 @@ var B = function() {
|
|
|
385
385
|
}, attrs: { "aria-hidden": !e.isActive } }, [e.isActive ? [e._t("header"), i("div", { staticClass: "dropdown-content", class: `${e.uniquePopoverClass}`, style: e.contentStyle, attrs: { role: e.ariaRole } }, [e.isMobileModal && e.mobileLabel ? e._t("mobileLabel", function() {
|
|
386
386
|
return [i("div", { staticClass: "dropdown-content-label" }, [e._v(e._s(e.mobileLabel))])];
|
|
387
387
|
}) : e._e(), e._t("default")], 2), e._t("footer")] : e._e()], 2)])], 1);
|
|
388
|
-
},
|
|
388
|
+
}, O = [], L = /* @__PURE__ */ p(
|
|
389
389
|
A,
|
|
390
390
|
B,
|
|
391
|
-
|
|
391
|
+
O,
|
|
392
392
|
!1,
|
|
393
393
|
null,
|
|
394
394
|
null
|
|
395
395
|
);
|
|
396
|
-
const
|
|
396
|
+
const q = L.exports, E = {
|
|
397
|
+
name: "CSwitch",
|
|
398
|
+
props: {
|
|
399
|
+
value: {
|
|
400
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
401
|
+
default: null
|
|
402
|
+
},
|
|
403
|
+
nativeValue: {
|
|
404
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
405
|
+
default: null
|
|
406
|
+
},
|
|
407
|
+
disabled: Boolean,
|
|
408
|
+
type: {
|
|
409
|
+
type: String,
|
|
410
|
+
default: ""
|
|
411
|
+
},
|
|
412
|
+
name: {
|
|
413
|
+
type: String,
|
|
414
|
+
default: ""
|
|
415
|
+
},
|
|
416
|
+
required: Boolean,
|
|
417
|
+
size: {
|
|
418
|
+
type: String,
|
|
419
|
+
default: ""
|
|
420
|
+
},
|
|
421
|
+
trueValue: {
|
|
422
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
423
|
+
default: !0
|
|
424
|
+
},
|
|
425
|
+
falseValue: {
|
|
426
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
427
|
+
default: !1
|
|
428
|
+
},
|
|
429
|
+
rounded: {
|
|
430
|
+
type: Boolean,
|
|
431
|
+
default: !0
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
data() {
|
|
435
|
+
return {
|
|
436
|
+
newValue: this.value
|
|
437
|
+
};
|
|
438
|
+
},
|
|
439
|
+
computed: {
|
|
440
|
+
computedValue: {
|
|
441
|
+
get() {
|
|
442
|
+
return this.newValue;
|
|
443
|
+
},
|
|
444
|
+
set(t) {
|
|
445
|
+
this.newValue = t, this.$emit("input", t);
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
newClass() {
|
|
449
|
+
return [
|
|
450
|
+
`is-${this.size}`,
|
|
451
|
+
{
|
|
452
|
+
"is-disabled": this.disabled,
|
|
453
|
+
"is-rounded": this.rounded
|
|
454
|
+
}
|
|
455
|
+
];
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
watch: {
|
|
459
|
+
/**
|
|
460
|
+
* When v-model change, set internal value.
|
|
461
|
+
*/
|
|
462
|
+
value(t) {
|
|
463
|
+
this.newValue = t;
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
methods: {
|
|
467
|
+
focus() {
|
|
468
|
+
this.$refs.input.focus();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
var I = function() {
|
|
473
|
+
var e = this, i = e._self._c;
|
|
474
|
+
return i("label", { ref: "label", staticClass: "switch", class: e.newClass, attrs: { disabled: e.disabled }, on: { click: e.focus, keydown: function(o) {
|
|
475
|
+
return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.preventDefault(), e.$refs.label.click());
|
|
476
|
+
} } }, [i("input", { directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "input", attrs: { disabled: e.disabled, name: e.name, required: e.required, "true-value": e.trueValue, "false-value": e.falseValue, type: "checkbox" }, domProps: { value: e.nativeValue, checked: Array.isArray(e.computedValue) ? e._i(e.computedValue, e.nativeValue) > -1 : e._q(e.computedValue, e.trueValue) }, on: { click: function(o) {
|
|
477
|
+
o.stopPropagation();
|
|
478
|
+
}, change: function(o) {
|
|
479
|
+
var s = e.computedValue, a = o.target, n = a.checked ? e.trueValue : e.falseValue;
|
|
480
|
+
if (Array.isArray(s)) {
|
|
481
|
+
var l = e.nativeValue, r = e._i(s, l);
|
|
482
|
+
a.checked ? r < 0 && (e.computedValue = s.concat([l])) : r > -1 && (e.computedValue = s.slice(0, r).concat(s.slice(r + 1)));
|
|
483
|
+
} else
|
|
484
|
+
e.computedValue = n;
|
|
485
|
+
} } }), i("span", { staticClass: "check", class: [`is-${e.type}`] }), i("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
|
|
486
|
+
}, z = [], V = /* @__PURE__ */ p(
|
|
487
|
+
E,
|
|
488
|
+
I,
|
|
489
|
+
z,
|
|
490
|
+
!1,
|
|
491
|
+
null,
|
|
492
|
+
"86121513"
|
|
493
|
+
);
|
|
494
|
+
const P = V.exports, R = {
|
|
397
495
|
name: "CDropdownItem",
|
|
496
|
+
components: {
|
|
497
|
+
CSwitch: P
|
|
498
|
+
},
|
|
398
499
|
props: {
|
|
399
500
|
value: {
|
|
400
501
|
type: [String, Number, Boolean, Object, Array, Function],
|
|
@@ -514,25 +615,26 @@ const H = O.exports, E = {
|
|
|
514
615
|
}
|
|
515
616
|
}
|
|
516
617
|
};
|
|
517
|
-
var
|
|
618
|
+
var T = function() {
|
|
518
619
|
var e = this, i = e._self._c;
|
|
519
620
|
return e.separator ? i("hr", { staticClass: "dropdown-divider" }) : !e.custom && !e.hasLink ? i(e.to && !e.disabled ? "router-link" : "a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], tag: "component", staticClass: "dropdown-item truncate-text", class: [e.anchorClasses, `is-${e.type}`], attrs: { to: e.to, role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.toggle ? i("CSwitch", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], staticStyle: { display: "inline-flex", "pointer-events": "none", position: "absolute", right: "0", top: "50%", transform: "translateY(-50%)", "margin-right": "0" }, attrs: { value: e.value, size: "tiny", type: "success" } }) : e._e(), e.iconRight ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight || "chevron-up-down" } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2) : i("div", { staticClass: "truncate-text", class: [e.itemClasses, `is-${e.type}`], attrs: { role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.iconRight ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2);
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
621
|
+
}, D = [], M = /* @__PURE__ */ p(
|
|
622
|
+
R,
|
|
623
|
+
T,
|
|
624
|
+
D,
|
|
524
625
|
!1,
|
|
525
626
|
null,
|
|
526
627
|
null
|
|
527
628
|
);
|
|
528
|
-
const
|
|
629
|
+
const W = M.exports;
|
|
529
630
|
export {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
631
|
+
q as C,
|
|
632
|
+
W as a,
|
|
633
|
+
P as b,
|
|
533
634
|
C as c,
|
|
534
|
-
|
|
535
|
-
|
|
635
|
+
H as d,
|
|
636
|
+
j as g,
|
|
637
|
+
F as i,
|
|
536
638
|
_ as r,
|
|
537
|
-
|
|
639
|
+
v as w
|
|
538
640
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as i,
|
|
2
|
-
import "./CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js";
|
|
1
|
+
import { n as i, aa as l } from "./main-CfSVOXu-.js";
|
|
3
2
|
const n = {
|
|
4
3
|
name: "CFieldBody",
|
|
5
4
|
props: {
|
|
@@ -234,8 +233,8 @@ var m = function() {
|
|
|
234
233
|
null,
|
|
235
234
|
null
|
|
236
235
|
);
|
|
237
|
-
const
|
|
236
|
+
const $ = y.exports;
|
|
238
237
|
export {
|
|
239
|
-
|
|
238
|
+
$ as C,
|
|
240
239
|
_ as a
|
|
241
240
|
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { n as o, j as u, k as c } from "./main-CfSVOXu-.js";
|
|
2
|
+
import { C as d, a as h } from "./CDropdownItem-CNUf29O4.js";
|
|
3
|
+
import { a as p } from "./CFormField-qy_STCgm.js";
|
|
4
|
+
import { F as f } from "./Flag-B9CEVlmX.js";
|
|
5
|
+
import { S as g } from "./SmartList-Bh10ojB0.js";
|
|
6
|
+
import { r as n } from "./regions-BdZt9Srn.js";
|
|
7
|
+
const m = {
|
|
8
|
+
name: "CPhoneInput",
|
|
9
|
+
components: {
|
|
10
|
+
Flag: f,
|
|
11
|
+
CInput: u,
|
|
12
|
+
CDropdown: d,
|
|
13
|
+
CDropdownItem: h,
|
|
14
|
+
CButton: c,
|
|
15
|
+
CField: p,
|
|
16
|
+
SmartList: g
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
value: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
region: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
// Region to fallback to if prefix is not found in value
|
|
28
|
+
defaultRegion: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: !0
|
|
31
|
+
},
|
|
32
|
+
label: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
labelPosition: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
internalPrefix: null,
|
|
44
|
+
// Used to remember prefix when value is changed to empty
|
|
45
|
+
searchQuery: ""
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
defaultPrefix() {
|
|
50
|
+
return n[this.internalRegion].callingCode;
|
|
51
|
+
},
|
|
52
|
+
currentRegion() {
|
|
53
|
+
return this.getRegionByCallingCode(this.prefix);
|
|
54
|
+
},
|
|
55
|
+
internalRegion: {
|
|
56
|
+
get() {
|
|
57
|
+
if (this.region)
|
|
58
|
+
return this.region;
|
|
59
|
+
if (this.value) {
|
|
60
|
+
const e = (Object.keys(n) || []).find(
|
|
61
|
+
(t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
|
|
62
|
+
);
|
|
63
|
+
if (e)
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
|
|
67
|
+
},
|
|
68
|
+
set(e) {
|
|
69
|
+
this.$emit("update:region", e), this.updateValue({ prefix: n[e].callingCode });
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
prefix() {
|
|
73
|
+
if (!this.value)
|
|
74
|
+
return this.internalPrefix || this.defaultPrefix;
|
|
75
|
+
const e = (Object.keys(n) || []).find(
|
|
76
|
+
(t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
|
|
77
|
+
);
|
|
78
|
+
return e ? n[e].callingCode : this.defaultPrefix;
|
|
79
|
+
},
|
|
80
|
+
phone: {
|
|
81
|
+
get() {
|
|
82
|
+
return this.prefix && this.value && this.value.startsWith(this.prefix) ? this.value.substring(this.prefix.length) : this.value;
|
|
83
|
+
},
|
|
84
|
+
set(e) {
|
|
85
|
+
this.updateValue({ phone: e });
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
sortedRegions() {
|
|
89
|
+
return (Object.keys(n) || []).map((e) => ({
|
|
90
|
+
key: e,
|
|
91
|
+
title: `${n[e].name} (${e})`,
|
|
92
|
+
callingCode: n[e].callingCode
|
|
93
|
+
})).sort((e, t) => e.title.localeCompare(t.title));
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
getRegionByCallingCode(e) {
|
|
98
|
+
return e ? (Object.keys(n) || []).find(
|
|
99
|
+
(i) => e === n[i].callingCode
|
|
100
|
+
) : null;
|
|
101
|
+
},
|
|
102
|
+
updateValue({ prefix: e, phone: t }) {
|
|
103
|
+
const i = e !== void 0 ? e : this.prefix || "", s = t !== void 0 ? t : this.phone || "", r = `${i}${s}`;
|
|
104
|
+
r !== i ? (this.$emit("input", r), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = i, this.$emit("input", ""));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
var C = function() {
|
|
109
|
+
var t = this, i = t._self._c;
|
|
110
|
+
return i("CField", { staticClass: "has-addons", attrs: { expanded: "" } }, [i("div", { staticClass: "control" }, [i("SmartList", { attrs: { query: t.searchQuery, items: t.sortedRegions }, scopedSlots: t._u([{ key: "default", fn: function({ items: s }) {
|
|
111
|
+
return [i("CDropdown", { staticClass: "control", staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, disabled: t.$attrs.disabled, "menu-styling": {
|
|
112
|
+
maxWidth: "300px"
|
|
113
|
+
}, scrollable: !0, position: "is-bottom-right", "max-height": "240px" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
114
|
+
return [i("CButton", { staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, type: "none", pattern: "secondary" } }, [i("Flag", { staticStyle: { "margin-right": "0.35em" }, attrs: { region: t.internalRegion } }), t._v(" " + t._s(t.prefix) + " ")], 1)];
|
|
115
|
+
}, proxy: !0 }, { key: "header", fn: function() {
|
|
116
|
+
return [i("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: t.$t("_common:search"), filled: "" }, model: { value: t.searchQuery, callback: function(r) {
|
|
117
|
+
t.searchQuery = r;
|
|
118
|
+
}, expression: "searchQuery" } })];
|
|
119
|
+
}, proxy: !0 }], null, !0), model: { value: t.internalRegion, callback: function(r) {
|
|
120
|
+
t.internalRegion = r;
|
|
121
|
+
}, expression: "internalRegion" } }, t._l(s, function({ key: r, title: a, callingCode: l }) {
|
|
122
|
+
return i("CDropdownItem", { key: r, staticClass: "truncate-text", attrs: { value: r } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: r, title: a } }), i("span", { staticClass: "truncate-text" }, [t._v(" " + t._s(a) + " (" + t._s(l) + ") ")])], 1);
|
|
123
|
+
}), 1)];
|
|
124
|
+
} }]) })], 1), i("CField", { staticClass: "control", attrs: { label: t.label, "label-position": t.labelPosition, expanded: "" } }, [i("CInput", t._b({ attrs: { size: t.$attrs.size, placeholder: t.$attrs.placeholder, type: "tel" }, model: { value: t.phone, callback: function(s) {
|
|
125
|
+
t.phone = s;
|
|
126
|
+
}, expression: "phone" } }, "CInput", { ...t.$attrs, ...t.$props }, !1))], 1)], 1);
|
|
127
|
+
}, y = [], x = /* @__PURE__ */ o(
|
|
128
|
+
m,
|
|
129
|
+
C,
|
|
130
|
+
y,
|
|
131
|
+
!1,
|
|
132
|
+
null,
|
|
133
|
+
null
|
|
134
|
+
);
|
|
135
|
+
const S = x.exports;
|
|
136
|
+
export {
|
|
137
|
+
S as C
|
|
138
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as i } from "./CCurrencyDropdown-
|
|
2
|
-
import { n as s,
|
|
1
|
+
import { C as i } from "./CCurrencyDropdown-BQLDbp9J.js";
|
|
2
|
+
import { n as s, j as u, r as a } from "./main-CfSVOXu-.js";
|
|
3
3
|
const o = {
|
|
4
4
|
name: "CPriceInput",
|
|
5
5
|
components: {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { n as r, F as c } from "./main-CfSVOXu-.js";
|
|
2
|
+
const u = {
|
|
3
|
+
name: "CSelect",
|
|
4
|
+
mixins: [c],
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
value: {
|
|
8
|
+
type: [String, Number, Boolean, Object, Array, Function],
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
multiple: Boolean,
|
|
16
|
+
selectClass: {
|
|
17
|
+
type: [String, Object, Array],
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
nativeSize: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
selected: this.value,
|
|
28
|
+
_elementRef: "select"
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
computed: {
|
|
32
|
+
computedValue: {
|
|
33
|
+
get() {
|
|
34
|
+
return this.selected;
|
|
35
|
+
},
|
|
36
|
+
set(l) {
|
|
37
|
+
this.selected = l, this.$emit("input", l), !this.isValid && this.checkHtml5Validity();
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
spanClasses() {
|
|
41
|
+
return [
|
|
42
|
+
this.size,
|
|
43
|
+
this.statusType,
|
|
44
|
+
{
|
|
45
|
+
"is-fullwidth": this.expanded,
|
|
46
|
+
"is-loading": this.loading,
|
|
47
|
+
"is-multiple": this.multiple,
|
|
48
|
+
"is-rounded": this.rounded,
|
|
49
|
+
"is-empty": this.selected === null
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
watch: {
|
|
55
|
+
/**
|
|
56
|
+
* When v-model is changed:
|
|
57
|
+
* 1. Set the selected option.
|
|
58
|
+
* 2. If it's invalid, validate again.
|
|
59
|
+
*/
|
|
60
|
+
value(l) {
|
|
61
|
+
this.selected = l, !this.isValid && this.checkHtml5Validity();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var d = function() {
|
|
66
|
+
var e = this, i = e._self._c;
|
|
67
|
+
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded, "has-icons-left": e.icon } }, [i("span", { staticClass: "select", class: e.spanClasses }, [i("select", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "select", class: e.selectClass, attrs: { multiple: e.multiple, size: e.nativeSize }, on: { blur: function(t) {
|
|
68
|
+
e.$emit("blur", t) && e.checkHtml5Validity();
|
|
69
|
+
}, focus: function(t) {
|
|
70
|
+
return e.$emit("focus", t);
|
|
71
|
+
}, change: function(t) {
|
|
72
|
+
var a = Array.prototype.filter.call(t.target.options, function(s) {
|
|
73
|
+
return s.selected;
|
|
74
|
+
}).map(function(s) {
|
|
75
|
+
var n = "_value" in s ? s._value : s.value;
|
|
76
|
+
return n;
|
|
77
|
+
});
|
|
78
|
+
e.computedValue = t.target.multiple ? a : a[0];
|
|
79
|
+
} } }, "select", e.$attrs, !1), [e.placeholder && e.computedValue == null ? i("option", { attrs: { disabled: "", hidden: "" }, domProps: { value: null } }, [e._v(" " + e._s(e.placeholder) + " ")]) : e._e(), e._t("default")], 2)])]);
|
|
80
|
+
}, o = [], p = /* @__PURE__ */ r(
|
|
81
|
+
u,
|
|
82
|
+
d,
|
|
83
|
+
o,
|
|
84
|
+
!1,
|
|
85
|
+
null,
|
|
86
|
+
"5cf2c0d1"
|
|
87
|
+
);
|
|
88
|
+
const h = p.exports;
|
|
89
|
+
export {
|
|
90
|
+
h as C
|
|
91
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { u as m, w as y, x as u, y as h, n as C } from "./main-CfSVOXu-.js";
|
|
2
|
+
const k = /* @__PURE__ */ m({
|
|
3
|
+
__name: "CSkeleton",
|
|
4
|
+
props: {
|
|
5
|
+
active: { type: Boolean, default: !0 },
|
|
6
|
+
animated: { type: Boolean, default: !1 },
|
|
7
|
+
width: { default: "" },
|
|
8
|
+
height: { default: "" },
|
|
9
|
+
circle: { type: Boolean, default: !1 },
|
|
10
|
+
rounded: { type: Boolean, default: !0 },
|
|
11
|
+
count: { default: 1 },
|
|
12
|
+
hidden: { type: Boolean, default: !1 },
|
|
13
|
+
color: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
setup(i) {
|
|
16
|
+
const t = i, {
|
|
17
|
+
active: s,
|
|
18
|
+
animated: e,
|
|
19
|
+
width: a,
|
|
20
|
+
height: l,
|
|
21
|
+
circle: c,
|
|
22
|
+
rounded: d,
|
|
23
|
+
count: r,
|
|
24
|
+
hidden: f,
|
|
25
|
+
color: n
|
|
26
|
+
} = y(t), v = u(() => ({
|
|
27
|
+
height: l.value === void 0 ? null : isNaN(Number(l.value)) ? l.value : `${l.value}px`,
|
|
28
|
+
width: a.value === void 0 ? null : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
|
|
29
|
+
borderRadius: c.value ? "50%" : null,
|
|
30
|
+
background: n.value ? n.value : null
|
|
31
|
+
})), o = h(), _ = u(() => o.style), p = u(() => o.class);
|
|
32
|
+
return { __sfc: !0, props: t, active: s, animated: e, width: a, height: l, circle: c, rounded: d, count: r, hidden: f, color: n, itemStyle: v, attrs: o, staticStyle: _, staticClass: p };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var x = function() {
|
|
36
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
37
|
+
return e.active ? s("div", { class: [
|
|
38
|
+
"c-skeleton",
|
|
39
|
+
{ "is-animated": e.animated, "is-invisible": e.hidden },
|
|
40
|
+
e.staticClass
|
|
41
|
+
], style: e.staticStyle }, t._l(e.count, function(a) {
|
|
42
|
+
return s("div", { key: a, staticClass: "c-skeleton-item", class: { "is-rounded": e.rounded }, style: e.itemStyle });
|
|
43
|
+
}), 0) : t._e();
|
|
44
|
+
}, N = [], S = /* @__PURE__ */ C(
|
|
45
|
+
k,
|
|
46
|
+
x,
|
|
47
|
+
N,
|
|
48
|
+
!1,
|
|
49
|
+
null,
|
|
50
|
+
null
|
|
51
|
+
);
|
|
52
|
+
const B = S.exports;
|
|
53
|
+
export {
|
|
54
|
+
B as C
|
|
55
|
+
};
|