@cling-se/widget 0.15.2 → 0.15.5
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-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
- package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
- package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
- package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
- package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
- package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
- package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
- package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
- package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
- package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
- package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
- package/dist/CPhoneInput-UzZkxbC6.js +138 -0
- package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
- package/dist/CSelect-BmP1UsQA.js +91 -0
- package/dist/CSkeleton-BNbft-NE.js +55 -0
- package/dist/ClientAutocomplete-BnredOme.js +438 -0
- package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
- package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
- package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
- package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
- package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
- package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
- package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
- package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
- package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
- package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
- package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
- package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
- package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
- package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
- package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
- package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
- package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
- package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
- package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
- package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
- package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
- package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
- package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
- package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
- package/dist/Flag-DkJgyDQK.js +46 -0
- package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
- package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
- package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
- package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
- package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
- package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
- package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
- package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
- package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
- package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
- package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
- package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
- package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
- package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
- package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
- package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
- package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
- package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
- package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
- package/dist/Index-Cf45UGbc.js +28 -0
- package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
- package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
- package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
- package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
- package/dist/Index-CtKNyVUB.js +56 -0
- package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
- package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
- package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
- package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
- package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
- package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
- package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
- package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
- package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
- package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
- package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
- package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
- package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
- package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
- package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
- package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
- package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
- package/dist/PdfTerms-im6uTd5E.js +31 -0
- package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
- package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
- package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
- package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
- package/dist/SendForm-BDY5VDkS.js +1023 -0
- package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
- package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
- package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
- package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
- package/dist/ToggleBinding-B715OVl2.js +42 -0
- package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
- package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
- package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
- package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
- package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
- package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
- package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
- package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
- package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
- package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
- package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
- package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
- package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
- package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
- package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.umd.js +179 -175
- package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
- package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
- package/dist/omit-RBXmF_Fo.js +31 -0
- package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/simplebar.min-Bnrne5ZK.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
- package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
- package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
- package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
- package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.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-DyXQEfcS.js +0 -78
- package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
- package/dist/Flag-CwnrA4SV.js +0 -114
- package/dist/Index-B0pgh8nR.js +0 -21
- package/dist/Index-Ccx9wHcb.js +0 -52
- package/dist/PdfTerms-ChtDfzne.js +0 -36
- package/dist/ToggleBinding-CTTYdrkp.js +0 -38
- package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
- package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
- package/dist/omit-DGBewD2h.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-U22_wtg0.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-THDJ-UNp.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-U22_wtg0.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-U22_wtg0.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-DiLisSei.js";
|
|
2
|
+
import { n as s, j as u, r as i } from "./main-U22_wtg0.js";
|
|
3
|
+
import { S as c } from "./SmartList-CP2wHig-.js";
|
|
4
4
|
const d = {
|
|
5
5
|
AED: "United Arab Emirates Dirham",
|
|
6
6
|
AFN: "Afghan Afghani",
|
|
@@ -194,21 +194,21 @@ const d = {
|
|
|
194
194
|
get() {
|
|
195
195
|
return this.value;
|
|
196
196
|
},
|
|
197
|
-
set(
|
|
198
|
-
this.$emit("input",
|
|
197
|
+
set(r) {
|
|
198
|
+
this.$emit("input", r);
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
selectedValue() {
|
|
202
|
-
return this.internalCurrency ?
|
|
202
|
+
return this.internalCurrency ? i(this.internalCurrency) : "";
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
watch: {
|
|
206
|
-
isCurrencyDropdownOpen(
|
|
207
|
-
this.$emit("active-change",
|
|
206
|
+
isCurrencyDropdownOpen(r) {
|
|
207
|
+
this.$emit("active-change", r), r ? this.$refs.searchCurrencyInput && this.$refs.searchCurrencyInput.focus() : this.searchQuery = "";
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
methods: {
|
|
211
|
-
getCurrencySymbol:
|
|
211
|
+
getCurrencySymbol: i
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
var S = function() {
|
|
@@ -218,29 +218,33 @@ var S = function() {
|
|
|
218
218
|
maxWidth: "300px"
|
|
219
219
|
}, scrollable: !0, "max-height": 200 }, on: { "active-change": function(n) {
|
|
220
220
|
a.isCurrencyDropdownOpen = n;
|
|
221
|
-
} },
|
|
221
|
+
} }, scopedSlots: a._u([{ key: "trigger", fn: function() {
|
|
222
|
+
return [a._t("default", function() {
|
|
223
|
+
return [e("CButton", { staticClass: "is-left", staticStyle: { width: "100%", "text-align": "left", "min-width": "7em" }, attrs: { "dropdown-icon": !0, raised: "" } }, [a._v(" " + a._s(a.selectedValue) + " ")])];
|
|
224
|
+
}, { selectedValue: a.selectedValue })];
|
|
225
|
+
}, proxy: !0 }, { key: "header", fn: function() {
|
|
226
|
+
return [e("CInput", { ref: "searchCurrencyInput", staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: a.$t("_common:search"), filled: "" }, model: { value: a.searchQuery, callback: function(n) {
|
|
227
|
+
a.searchQuery = n;
|
|
228
|
+
}, expression: "searchQuery" } })];
|
|
229
|
+
}, proxy: !0 }], null, !0), model: { value: a.internalCurrency, callback: function(n) {
|
|
222
230
|
a.internalCurrency = n;
|
|
223
231
|
}, expression: "internalCurrency" } }, "CDropdown", {
|
|
224
232
|
position: "is-bottom-left",
|
|
225
233
|
...a.$attrs,
|
|
226
234
|
...a.$props
|
|
227
|
-
}, !1),
|
|
228
|
-
return [e("CButton", { staticClass: "is-left", staticStyle: { width: "100%", "text-align": "left", "min-width": "7em" }, attrs: { "dropdown-icon": !0, raised: "" } }, [a._v(" " + a._s(a.selectedValue) + " ")])];
|
|
229
|
-
}, { slot: "trigger", selectedValue: a.selectedValue }), e("CInput", { ref: "searchCurrencyInput", staticStyle: { "margin-bottom": "0.25em" }, attrs: { slot: "header", placeholder: a.$t("_common:search"), filled: "" }, slot: "header", model: { value: a.searchQuery, callback: function(n) {
|
|
230
|
-
a.searchQuery = n;
|
|
231
|
-
}, expression: "searchQuery" } }), a._l(o, function(n) {
|
|
235
|
+
}, !1), a._l(o, function(n) {
|
|
232
236
|
return e("CDropdownItem", { key: n, staticClass: "truncate-text", staticStyle: { "padding-right": "0.5em" }, attrs: { value: n } }, [e("div", { staticStyle: { "margin-right": "auto" } }, [a._v(a._s(n))]), e("div", { staticStyle: { opacity: "0.7" } }, [a._v(" " + a._s(a.getCurrencySymbol(n)) + " ")])]);
|
|
233
|
-
})
|
|
234
|
-
} }]
|
|
237
|
+
}), 1)];
|
|
238
|
+
} }]) });
|
|
235
239
|
}, C = [], m = /* @__PURE__ */ s(
|
|
236
240
|
D,
|
|
237
241
|
S,
|
|
238
242
|
C,
|
|
239
243
|
!1,
|
|
240
244
|
null,
|
|
241
|
-
"
|
|
245
|
+
"dea600c8"
|
|
242
246
|
);
|
|
243
|
-
const
|
|
247
|
+
const y = m.exports;
|
|
244
248
|
export {
|
|
245
|
-
|
|
249
|
+
y as C
|
|
246
250
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as f,
|
|
1
|
+
import { V as f, l as m, n as p } from "./main-U22_wtg0.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-U22_wtg0.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-U22_wtg0.js";
|
|
2
|
+
import { C as d, a as h } from "./CDropdownItem-DiLisSei.js";
|
|
3
|
+
import { a as p } from "./CFormField-DcZVdj3a.js";
|
|
4
|
+
import { F as f } from "./Flag-DkJgyDQK.js";
|
|
5
|
+
import { S as g } from "./SmartList-CP2wHig-.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,10 +1,10 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
1
|
+
import { C as i } from "./CCurrencyDropdown-xmqmb8gW.js";
|
|
2
|
+
import { n as s, j as u, r as a } from "./main-U22_wtg0.js";
|
|
3
|
+
const o = {
|
|
4
4
|
name: "CPriceInput",
|
|
5
5
|
components: {
|
|
6
6
|
CInput: u,
|
|
7
|
-
CCurrencyDropdown:
|
|
7
|
+
CCurrencyDropdown: i
|
|
8
8
|
},
|
|
9
9
|
props: {
|
|
10
10
|
value: {
|
|
@@ -87,26 +87,30 @@ const l = {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
var
|
|
90
|
+
var c = function() {
|
|
91
91
|
var e = this, r = e._self._c;
|
|
92
|
-
return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" },
|
|
92
|
+
return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, scopedSlots: e._u([{ key: "prefix", fn: function() {
|
|
93
|
+
return [e.$slots.prefix ? r("div", [e._t("prefix")], 2) : e._e()];
|
|
94
|
+
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
95
|
+
return [e.$slots.suffix ? r("div", [e._t("suffix")], 2) : r("div", [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
|
|
96
|
+
e.isCurrencyDropdownOpen = n;
|
|
97
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
|
|
98
|
+
return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
|
|
99
|
+
} }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
|
|
100
|
+
e.internalCurrency = n;
|
|
101
|
+
}, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)];
|
|
102
|
+
}, proxy: !0 }], null, !0), model: { value: e.internalValue, callback: function(n) {
|
|
93
103
|
e.internalValue = n;
|
|
94
|
-
}, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners)
|
|
95
|
-
|
|
96
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
|
|
97
|
-
return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
|
|
98
|
-
} }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
|
|
99
|
-
e.internalCurrency = n;
|
|
100
|
-
}, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
|
|
101
|
-
}, p = [], c = /* @__PURE__ */ i(
|
|
102
|
-
l,
|
|
104
|
+
}, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners));
|
|
105
|
+
}, p = [], l = /* @__PURE__ */ s(
|
|
103
106
|
o,
|
|
107
|
+
c,
|
|
104
108
|
p,
|
|
105
109
|
!1,
|
|
106
110
|
null,
|
|
107
111
|
null
|
|
108
112
|
);
|
|
109
|
-
const y =
|
|
113
|
+
const y = l.exports;
|
|
110
114
|
export {
|
|
111
115
|
y as C
|
|
112
116
|
};
|