@cling-se/widget 0.15.1 → 0.15.3
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-XGs5vmVP.js → AddClientCallout-8s5a1_CZ.js} +3 -3
- package/dist/{AnswerModal-Djvpd4kg.js → AnswerModal-Cnp43tGo.js} +3 -3
- package/dist/{AttachmentItem-C_5E8Fa4.js → AttachmentItem-BP85gcjP.js} +6 -4
- package/dist/{BaseDatePicker-BpGzPBp_.js → BaseDatePicker-C27CsTzy.js} +486 -482
- package/dist/{BaseUpload-Dm5C-j0L.js → BaseUpload-DnhS3hGx.js} +2 -2
- package/dist/{BlockMedia-DbiVw803.js → BlockMedia-D4nhek2s.js} +1 -1
- package/dist/{CCallout-DL9smLC_.js → CCallout-CQjRcxpC.js} +1 -1
- package/dist/{CCurrencyDropdown--RshYh6V.js → CCurrencyDropdown-BT01qBGg.js} +24 -20
- package/dist/{CDropdownItem-Bzbrlurh.js → CDropdownItem-BSPNul90.js} +1 -1
- package/dist/{CFormField-DABM0TLB.js → CFormField-Cz_jNazS.js} +1 -1
- package/dist/{CPhoneFormat-BhzciB_P.js → CPhoneFormat-C017AoM0.js} +1 -1
- package/dist/{CPriceInput-DVZ4OVfI.js → CPriceInput-jktMjvwx.js} +20 -16
- package/dist/ClientAutocomplete-B3z6RPXr.js +82 -0
- package/dist/{ClientModal-BSUhx0YR.js → ClientModal-DLtFhJya.js} +31 -25
- package/dist/{ColorPicker-BpTmTnpR.js → ColorPicker-MQmVGbvm.js} +1 -1
- package/dist/{CompanyModal-C7LZybS4.js → CompanyModal-Qx5xMku0.js} +4 -4
- package/dist/{ContentWrapper-DlRJSB1H.js → ContentWrapper-B9NQqp2q.js} +63 -55
- package/dist/{CoverBlockSettings-Cxxex_lN.js → CoverBlockSettings-Bcz_W5I3.js} +5 -5
- package/dist/{DocAnswer-B-MxL_1t.js → DocAnswer-BlxFv_Gc.js} +2 -2
- package/dist/{DocDetails-DjBrxQ_R.js → DocDetails-dGcYGJpp.js} +42 -38
- package/dist/{DocForm-Beoj5wra.js → DocForm-C6o_XBcW.js} +915 -879
- package/dist/{DocFormSend-D_v5NC6u.js → DocFormSend-_prtxNIf.js} +11 -7
- package/dist/{DocLinks-CojBcyHP.js → DocLinks-Dp495SCS.js} +2 -2
- package/dist/{DocModalBase-BgduKHWe.js → DocModalBase-B0wYq3ft.js} +1 -1
- package/dist/{DocPrint-BCscbY6G.js → DocPrint-CURxofeU.js} +1 -1
- package/dist/{DocReceipt-Dxn5vcAc.js → DocReceipt-DgGcBRVH.js} +5 -3
- package/dist/{DocSendReminder-YpVUkgYH.js → DocSendReminder-CPty4svi.js} +1 -1
- package/dist/{DocTextEditor-In_CaKPA.js → DocTextEditor-BYsXFRLg.js} +67 -63
- package/dist/{DocTimeline-DU9nUQUH.js → DocTimeline-CHg1QykR.js} +7 -5
- package/dist/{DocumentClient-D5Eo9CcZ.js → DocumentClient-CZ6N73pQ.js} +5 -5
- package/dist/{DocumentLayout-BQ-wP5NB.js → DocumentLayout-CiszuoQc.js} +277 -271
- package/dist/{DocumentLogotype-CDG2k8N2.js → DocumentLogotype-BgFCWcwC.js} +17 -15
- package/dist/{DocumentVoided-B-bk6BHd.js → DocumentVoided-DT2hhHk2.js} +1 -1
- package/dist/{EmbedInput-8xfYdX6Q.js → EmbedInput-aLmvzK1I.js} +2 -2
- package/dist/{EmbedSettings-CzNKHRWA.js → EmbedSettings-BZipciy9.js} +2 -2
- package/dist/ErrorCallout-CNxSDsr_.js +27 -0
- package/dist/{FilePreviewModal-Dq8oaKBy.js → FilePreviewModal-DxdksQiy.js} +2 -2
- package/dist/{Flag-Fs-s9E60.js → Flag-3OyFDPsP.js} +1 -1
- package/dist/{HeaderSettings-DdmyTypr.js → HeaderSettings-DeoSRi6O.js} +18 -14
- package/dist/{ImageSelectModal-BXyTJKrO.js → ImageSelectModal-DvQz2VPi.js} +13 -11
- package/dist/{ImageUploadWrapper-B8D5l07p.js → ImageUploadWrapper-CNQRdHF9.js} +2 -2
- package/dist/{Index-BnCsHbZ1.js → Index-3bD76d9q.js} +6 -6
- package/dist/{Index-SkCtzHwt.js → Index-B0n1UOOA.js} +4 -4
- package/dist/{Index-BU8ft1y6.js → Index-B3Q09phm.js} +4 -4
- package/dist/{Index-V2Givdp2.js → Index-B9_POjpY.js} +5 -5
- package/dist/{Index-CgRP1XiQ.js → Index-BDCgilFk.js} +2 -2
- package/dist/{Index-Dl-EHPWj.js → Index-BEpKb8IR.js} +3 -3
- package/dist/{Index-YDDq9NSQ.js → Index-BIv8flFB.js} +8 -8
- package/dist/{Index-BcL9ebMW.js → Index-BNJ2KHKc.js} +2 -2
- package/dist/{Index-0aodZg_n.js → Index-BeMeWDIf.js} +5 -5
- package/dist/{Index-hz-7LKR4.js → Index-BglKAnNq.js} +21 -17
- package/dist/{Index-9uS4_N--.js → Index-BiVwDgqW.js} +2 -2
- package/dist/{Index-DmUOBV3i.js → Index-BjdxeF4C.js} +2 -2
- package/dist/{Index-BowtUux0.js → Index-C-CE21WK.js} +5 -5
- package/dist/{Index-B8_vIbXh.js → Index-CDKq7Fx6.js} +4 -4
- package/dist/{Index-CkqDhbLd.js → Index-CJeSVpRh.js} +2 -2
- package/dist/{Index-C8SV-RPw.js → Index-CPjAXBMU.js} +5 -5
- package/dist/{Index-BiApZ1Ic.js → Index-CTk6Nh-I.js} +7 -7
- package/dist/{Index-CqB099xV.js → Index-CTqdaykO.js} +3 -3
- package/dist/{Index-DPo796kj.js → Index-CWj2vDHc.js} +17 -15
- package/dist/{Index-NagcpUmI.js → Index-CXibuEkU.js} +1 -1
- package/dist/{Index-BMY2m8rD.js → Index-CePHdKi2.js} +4 -4
- package/dist/{Index-Db_zxCDU.js → Index-Cfc0Q0AG.js} +5 -5
- package/dist/Index-Ch5j2tqD.js +41 -0
- package/dist/{Index-DLSht_p3.js → Index-CjfCyQlB.js} +4 -4
- package/dist/{Index-BDA5wus0.js → Index-Cr6DlYGN.js} +2 -2
- package/dist/{Index-wpr5rBje.js → Index-CvRNeJ4U.js} +7 -7
- package/dist/{Index-B8XLiKic.js → Index-D-l3i9vY.js} +3 -3
- package/dist/{Index-C8Gsbm1Z.js → Index-D1NwTUs-.js} +5 -5
- package/dist/{Index-EGUIgf2A.js → Index-FC1UsElU.js} +4 -4
- package/dist/{Index-C2ZwmSbs.js → Index-PUFeH_1z.js} +4 -4
- package/dist/{Index-DcGgVbKe.js → Index-S3LqU0A0.js} +9 -7
- package/dist/{Index-C-OSub91.js → Index-jIIHHGh3.js} +376 -350
- package/dist/{Index-BYsgDllD.js → Index-q04Dwxrr.js} +17 -15
- package/dist/{Index-B68-YXDK.js → Index-w5DWfGOc.js} +4 -4
- package/dist/{InputToggleRow-J8fqDcd7.js → InputToggleRow-CvHvRdsn.js} +1 -1
- package/dist/{ManualPopover-BkAZ-cLE.js → ManualPopover-DxE-6-Sp.js} +13 -11
- package/dist/{MediaWrapper-BUQroqgd.js → MediaWrapper-DNi80fbw.js} +3 -3
- package/dist/{NotBindingText-DEjIIRIy.js → NotBindingText-D2rYFVxr.js} +2 -2
- package/dist/{PackageGroup-BXsk0x4O.js → PackageGroup-6ar8HjPo.js} +8 -8
- package/dist/{PdfTerms-vLidfDfk.js → PdfTerms-B-lbU_6H.js} +2 -2
- package/dist/{PdfViewer-Cyl_FcY1.js → PdfViewer-B5qbLLtd.js} +21 -21
- package/dist/PlainHtml-CIMtcn2F.js +27 -0
- package/dist/{PriceHeader-BV254rc3.js → PriceHeader-BSpj_-5M.js} +6 -6
- package/dist/{SearchApi-HLHEy8AM.js → SearchApi-Cwgf52EV.js} +2 -2
- package/dist/{Setup-DuCP6m5-.js → Setup-CRmiH9lD.js} +1 -1
- package/dist/{SmartList-C0IKb8qw.js → SmartList-D6AvxfSL.js} +1 -1
- package/dist/{TermsSettings-bHhM9dtD.js → TermsSettings-DEO1O460.js} +7 -5
- package/dist/{ThemeColorRow-MgU9X4Tj.js → ThemeColorRow-Cy1NKEIG.js} +14 -12
- package/dist/{ToggleBinding-gjKO_LN5.js → ToggleBinding-BvIUt1Jx.js} +8 -6
- package/dist/{UploadModal-QuXCJkzY.js → UploadModal-C1j-GeMD.js} +4 -4
- package/dist/{VideoPlayerInput-XebqdCEO.js → VideoPlayerInput-BmbrquN6.js} +3 -3
- package/dist/{VideoPlayerSettings-DMxguTAv.js → VideoPlayerSettings-B7HpBoWX.js} +2 -2
- package/dist/VideoSelectModal-CeaG2tME.js +104 -0
- package/dist/{answerDocumentMixin-BaVqM_ri.js → answerDocumentMixin-AcDG8Byi.js} +3 -3
- package/dist/{debounce-DUUqRe1d.js → debounce-HJoaSvIY.js} +1 -1
- package/dist/{focusDrawerMixin-BFQK8OUc.js → focusDrawerMixin-CBYjpEGL.js} +1 -1
- package/dist/{formComponentsInstall-qLhjQ7Rl.js → formComponentsInstall-DMoWrprH.js} +229 -223
- package/dist/{formDrawerState-BT31echi.js → formDrawerState-DYSBcjo4.js} +1 -1
- package/dist/{formValidationMixin-DWRJGUXb.js → formValidationMixin-Dqlhg0R2.js} +1 -1
- package/dist/{index-CLbtIs9u.js → index-CFe1BJZJ.js} +1 -1
- package/dist/{index-Dpx08x9s.js → index-CFwLDxbi.js} +5 -5
- package/dist/{index-BYMG8jiP.js → index-CFx0cpeM.js} +1 -1
- package/dist/{index-CO1KeOmj.js → index-CKZmpLr6.js} +69 -45
- package/dist/{index-Dsxyi-7P.js → index-CLOsPxCh.js} +14 -12
- package/dist/{index-DSOWfTTb.js → index-zzCfHTf8.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +142 -142
- package/dist/{main-CRQiO-g7.js → main-BIwKzAN8.js} +7329 -7275
- package/dist/{mapFormMixin-C9fs0AV5.js → mapFormMixin-e2PJ431T.js} +1 -1
- package/dist/{omit-tP4ZEy3Q.js → omit-CpamclWf.js} +3 -3
- package/dist/{publicSenderState-CApNsACD.js → publicSenderState-D-_7UwjT.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-B4S8Wjwz.js → throttle-B2yMLA5N.js} +2 -2
- package/dist/{tinycolor-PkULT0yA.js → tinycolor-vIxz4Xgi.js} +1 -1
- package/dist/{tippy.esm-C5HrjSHu.js → tippy.esm-DiOYviyf.js} +57 -53
- package/dist/{utils-j0eN0bhD.js → utils-CFXqaEy7.js} +1 -1
- package/dist/{vuedraggable.umd-BPB1Hmn2.js → vuedraggable.umd-DDT8qZBI.js} +1 -1
- package/package.json +1 -1
- package/dist/ClientAutocomplete-C9yyFzJ9.js +0 -78
- package/dist/ErrorCallout-Bh8OsLfY.js +0 -28
- package/dist/Index-CVSBD1f6.js +0 -31
- package/dist/PlainHtml-SVyW9vV2.js +0 -20
- package/dist/VideoSelectModal-B5AlGSUz.js +0 -100
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as n, l } from "./main-
|
|
2
|
-
import { a as o } from "./debounce-
|
|
1
|
+
import { k as n, l } from "./main-BIwKzAN8.js";
|
|
2
|
+
import { a as o } from "./debounce-HJoaSvIY.js";
|
|
3
3
|
var g = o, c = l, f = "Expected a function";
|
|
4
4
|
function u(a, i, t) {
|
|
5
5
|
var r = !0, e = !0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as dr } from "./DocumentLayout-
|
|
2
|
-
import "./CDropdownItem-
|
|
3
|
-
import { n as vr } from "./main-
|
|
4
|
-
import { C as mr } from "./ColorPicker-
|
|
5
|
-
import { C as hr } from "./CCurrencyDropdown
|
|
1
|
+
import { F as dr } from "./DocumentLayout-CiszuoQc.js";
|
|
2
|
+
import "./CDropdownItem-BSPNul90.js";
|
|
3
|
+
import { n as vr } from "./main-BIwKzAN8.js";
|
|
4
|
+
import { C as mr } from "./ColorPicker-MQmVGbvm.js";
|
|
5
|
+
import { C as hr } from "./CCurrencyDropdown-BT01qBGg.js";
|
|
6
6
|
const gr = {
|
|
7
7
|
components: {
|
|
8
8
|
ColorPicker: mr,
|
|
@@ -55,13 +55,17 @@ var yr = function() {
|
|
|
55
55
|
n.onInput && n.onInput(a.target.value);
|
|
56
56
|
} } }, "select", n.props, !1), t._l(n.props.options, function(a) {
|
|
57
57
|
return r("option", { key: a.value, domProps: { value: a.value, selected: a.value === n.props.value } }, [t._v(" " + t._s(a.label) + " ")]);
|
|
58
|
-
}), 0)]) : n.component === "color" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: "240px" }, position: n.props.position || "is-top-right", paddingless: "", expanded: "" }
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
}), 0)]) : n.component === "color" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: "240px" }, position: n.props.position || "is-top-right", paddingless: "", expanded: "" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
59
|
+
return [r("div", { staticStyle: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" } }, [r("div", { staticStyle: { height: "20px", width: "26px", margin: "0px 3px", "border-radius": "3px", "box-shadow": "inset 0 0 2px rgba(0, 0, 0, 0.3)" }, style: { "background-color": n.props.value } }), r("div", { staticStyle: { padding: "0 5px" } }, [t._v(t._s(n.props.value))]), n.props.value && n.props.showReset ? r("div", { staticClass: "plain-button", staticStyle: { position: "absolute", width: "24px", right: "2px", display: "grid", "place-items": "center", top: "2px", bottom: "2px", "border-radius": "4px" }, on: { click: function(a) {
|
|
60
|
+
return a.preventDefault(), a.stopPropagation(), n.onInput("");
|
|
61
|
+
} } }, [r("CIcon", { attrs: { type: "reset", size: "14", "stroke-width": "2.5" } })], 1) : t._e()])];
|
|
62
|
+
}, proxy: !0 }], null, !0) }, [r("ColorPicker", t._b({ staticStyle: { "box-shadow": "none" }, on: { input: ({ a, hex: p, hex8: c }) => n.onInput && n.onInput(a === 1 ? p : c) } }, "ColorPicker", n.props, !1))], 1)], 1) : n.component === "font" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("FontPickerDropdown", t._b({ staticClass: "font-input-wrapper", on: { input: (a) => n.onInput && n.onInput(a) }, scopedSlots: t._u([{ key: "default", fn: function({ selectedFamily: a }) {
|
|
63
|
+
return [r("button", { staticClass: "truncate-text" }, [r("span", { staticStyle: { width: "90%", display: "block" } }, [t._v(" " + t._s(a) + " ")])])];
|
|
62
64
|
} }], null, !0) }, "FontPickerDropdown", n.props, !1))], 1) : n.component === "currency" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CCurrencyDropdown", t._b({ staticClass: "currency-input-wrapper", on: { input: (a) => n.onInput && n.onInput(a) }, scopedSlots: t._u([{ key: "default", fn: function({ selectedValue: a }) {
|
|
63
|
-
return r("button", { staticClass: "truncate-text" }, [r("span", { staticStyle: { width: "90%", display: "block" } }, [t._v(" " + t._s(a) + " ")])]);
|
|
64
|
-
} }], null, !0) }, "CCurrencyDropdown", n.props, !1))], 1) : n.component === "switch" ? r("div", { key: o, staticClass: "input-wrapper switch" }, [r("CSwitch", t._b({ attrs: { size: "tiny", type: "secondary" }, on: { input: (a) => n.onInput && n.onInput(a) } }, "CSwitch", n.props, !1))], 1) : n.component === "popup" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: n.props.width } }
|
|
65
|
+
return [r("button", { staticClass: "truncate-text" }, [r("span", { staticStyle: { width: "90%", display: "block" } }, [t._v(" " + t._s(a) + " ")])])];
|
|
66
|
+
} }], null, !0) }, "CCurrencyDropdown", n.props, !1))], 1) : n.component === "switch" ? r("div", { key: o, staticClass: "input-wrapper switch" }, [r("CSwitch", t._b({ attrs: { size: "tiny", type: "secondary" }, on: { input: (a) => n.onInput && n.onInput(a) } }, "CSwitch", n.props, !1))], 1) : n.component === "popup" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: n.props.width } }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
67
|
+
return [r("div", { staticStyle: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" } }, [r("div", { staticStyle: { padding: "0 5px" } }, [t._v(t._s(n.props.value))])])];
|
|
68
|
+
}, proxy: !0 }], null, !0) }, [r("div", t._l(n.props.popup.inputs, function(a, p) {
|
|
65
69
|
return r("FormInputRow", { key: p, attrs: { inputs: a.inputs, label: a.label } });
|
|
66
70
|
}), 1)])], 1) : n.component === "button" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("button", { staticStyle: { width: "100%", height: "100%", display: "flex", "justify-content": "center", "align-items": "center", cursor: "pointer" }, on: { click: n.onClick } }, [t._v(" " + t._s(n.props.text) + " ")])]) : [t._v(" " + t._s(n.component) + " ")]];
|
|
67
71
|
})], 2)]);
|
|
@@ -71,16 +75,16 @@ var yr = function() {
|
|
|
71
75
|
br,
|
|
72
76
|
!1,
|
|
73
77
|
null,
|
|
74
|
-
"
|
|
78
|
+
"992a3d0e"
|
|
75
79
|
);
|
|
76
80
|
const xr = wr.exports, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
77
81
|
__proto__: null,
|
|
78
82
|
default: xr
|
|
79
83
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
80
|
-
var N = "top", q = "bottom", X = "right", V = "left", mt = "auto", Ne = [N, q, X, V], Ee = "start",
|
|
81
|
-
return e.concat([t + "-" + Ee, t + "-" +
|
|
84
|
+
var N = "top", q = "bottom", X = "right", V = "left", mt = "auto", Ne = [N, q, X, V], Ee = "start", Be = "end", Er = "clippingParents", Wt = "viewport", Ie = "popper", Tr = "reference", Tt = /* @__PURE__ */ Ne.reduce(function(e, t) {
|
|
85
|
+
return e.concat([t + "-" + Ee, t + "-" + Be]);
|
|
82
86
|
}, []), Ut = /* @__PURE__ */ [].concat(Ne, [mt]).reduce(function(e, t) {
|
|
83
|
-
return e.concat([t, t + "-" + Ee, t + "-" +
|
|
87
|
+
return e.concat([t, t + "-" + Ee, t + "-" + Be]);
|
|
84
88
|
}, []), Ar = "beforeRead", Cr = "read", Dr = "afterRead", Sr = "beforeMain", kr = "main", Lr = "afterMain", Rr = "beforeWrite", Pr = "write", Ir = "afterWrite", Mr = [Ar, Cr, Dr, Sr, kr, Lr, Rr, Pr, Ir];
|
|
85
89
|
function te(e) {
|
|
86
90
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -118,7 +122,7 @@ function jr(e) {
|
|
|
118
122
|
}));
|
|
119
123
|
});
|
|
120
124
|
}
|
|
121
|
-
function
|
|
125
|
+
function _r(e) {
|
|
122
126
|
var t = e.state, r = {
|
|
123
127
|
popper: {
|
|
124
128
|
position: t.options.strategy,
|
|
@@ -147,7 +151,7 @@ const zt = {
|
|
|
147
151
|
enabled: !0,
|
|
148
152
|
phase: "write",
|
|
149
153
|
fn: jr,
|
|
150
|
-
effect:
|
|
154
|
+
effect: _r,
|
|
151
155
|
requires: ["computeStyles"]
|
|
152
156
|
};
|
|
153
157
|
function ee(e) {
|
|
@@ -205,7 +209,7 @@ function Xt(e, t) {
|
|
|
205
209
|
function ae(e) {
|
|
206
210
|
return Y(e).getComputedStyle(e);
|
|
207
211
|
}
|
|
208
|
-
function
|
|
212
|
+
function Br(e) {
|
|
209
213
|
return ["table", "td", "th"].indexOf(te(e)) >= 0;
|
|
210
214
|
}
|
|
211
215
|
function ce(e) {
|
|
@@ -247,7 +251,7 @@ function $r(e) {
|
|
|
247
251
|
return null;
|
|
248
252
|
}
|
|
249
253
|
function Ve(e) {
|
|
250
|
-
for (var t = Y(e), r = At(e); r &&
|
|
254
|
+
for (var t = Y(e), r = At(e); r && Br(r) && ae(r).position === "static"; )
|
|
251
255
|
r = At(r);
|
|
252
256
|
return r && (te(r) === "html" || te(r) === "body" && ae(r).position === "static") ? t : r || $r(e) || t;
|
|
253
257
|
}
|
|
@@ -330,7 +334,7 @@ function Ct(e) {
|
|
|
330
334
|
var g = p.hasOwnProperty("x"), E = p.hasOwnProperty("y"), T = V, i = N, A = window;
|
|
331
335
|
if (l) {
|
|
332
336
|
var m = Ve(r), S = "clientHeight", I = "clientWidth";
|
|
333
|
-
if (m === Y(r) && (m = ce(r), ae(m).position !== "static" && c === "absolute" && (S = "scrollHeight", I = "scrollWidth")), m = m, o === N || (o === V || o === X) && a ===
|
|
337
|
+
if (m === Y(r) && (m = ce(r), ae(m).position !== "static" && c === "absolute" && (S = "scrollHeight", I = "scrollWidth")), m = m, o === N || (o === V || o === X) && a === Be) {
|
|
334
338
|
i = q;
|
|
335
339
|
var P = b && m === A && A.visualViewport ? A.visualViewport.height : (
|
|
336
340
|
// $FlowFixMe[prop-missing]
|
|
@@ -338,7 +342,7 @@ function Ct(e) {
|
|
|
338
342
|
);
|
|
339
343
|
w -= P - n.height, w *= u ? 1 : -1;
|
|
340
344
|
}
|
|
341
|
-
if (o === V || (o === N || o === q) && a ===
|
|
345
|
+
if (o === V || (o === N || o === q) && a === Be) {
|
|
342
346
|
T = X;
|
|
343
347
|
var L = b && m === A && A.visualViewport ? A.visualViewport.width : (
|
|
344
348
|
// $FlowFixMe[prop-missing]
|
|
@@ -551,7 +555,7 @@ function Qt(e) {
|
|
|
551
555
|
case Ee:
|
|
552
556
|
u[l] = u[l] - (t[f] / 2 - r[f] / 2);
|
|
553
557
|
break;
|
|
554
|
-
case
|
|
558
|
+
case Be:
|
|
555
559
|
u[l] = u[l] + (t[f] / 2 - r[f] / 2);
|
|
556
560
|
break;
|
|
557
561
|
}
|
|
@@ -619,16 +623,16 @@ function an(e) {
|
|
|
619
623
|
allowedAutoPlacements: w
|
|
620
624
|
}) : K);
|
|
621
625
|
}, []), A = t.rects.reference, m = t.rects.popper, S = /* @__PURE__ */ new Map(), I = !0, P = i[0], L = 0; L < i.length; L++) {
|
|
622
|
-
var M = i[L], R = ee(M), k = Ce(M) === Ee, F = [N, q].indexOf(R) >= 0, H = F ? "width" : "height",
|
|
626
|
+
var M = i[L], R = ee(M), k = Ce(M) === Ee, F = [N, q].indexOf(R) >= 0, H = F ? "width" : "height", _ = $e(t, {
|
|
623
627
|
placement: M,
|
|
624
628
|
boundary: f,
|
|
625
629
|
rootBoundary: b,
|
|
626
630
|
altBoundary: x,
|
|
627
631
|
padding: l
|
|
628
|
-
}),
|
|
629
|
-
A[H] > m[H] && (
|
|
630
|
-
var j = et(
|
|
631
|
-
if (a && G.push(
|
|
632
|
+
}), B = F ? k ? X : V : k ? q : N;
|
|
633
|
+
A[H] > m[H] && (B = et(B));
|
|
634
|
+
var j = et(B), G = [];
|
|
635
|
+
if (a && G.push(_[R] <= 0), c && G.push(_[B] <= 0, _[j] <= 0), G.every(function(re) {
|
|
632
636
|
return re;
|
|
633
637
|
})) {
|
|
634
638
|
P = M, I = !1;
|
|
@@ -768,11 +772,11 @@ function hn(e) {
|
|
|
768
772
|
};
|
|
769
773
|
if (m) {
|
|
770
774
|
if (a) {
|
|
771
|
-
var k, F = i === "y" ? N : V, H = i === "y" ? q : X,
|
|
775
|
+
var k, F = i === "y" ? N : V, H = i === "y" ? q : X, _ = i === "y" ? "height" : "width", B = m[i], j = B + d[F], G = B - d[H], J = h ? -I[_] / 2 : 0, fe = E === Ee ? S[_] : I[_], Q = E === Ee ? -I[_] : -S[_], le = t.elements.arrow, re = h && le ? gt(le) : {
|
|
772
776
|
width: 0,
|
|
773
777
|
height: 0
|
|
774
|
-
}, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yt(), ne = K[F], ye = K[H], ie = Me(0, S[
|
|
775
|
-
m[i] = ke, R[i] = ke -
|
|
778
|
+
}, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yt(), ne = K[F], ye = K[H], ie = Me(0, S[_], re[_]), be = T ? S[_] / 2 - J - ie - ne - L.mainAxis : fe - ie - ne - L.mainAxis, se = T ? -S[_] / 2 + J + ie + ye + L.mainAxis : Q + ie + ye + L.mainAxis, we = t.elements.arrow && Ve(t.elements.arrow), Fe = we ? i === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, Se = (k = M == null ? void 0 : M[i]) != null ? k : 0, He = B + be - Se - Fe, We = B + se - Se, ke = Me(h ? tt(j, He) : j, B, h ? he(G, We) : G);
|
|
779
|
+
m[i] = ke, R[i] = ke - B;
|
|
776
780
|
}
|
|
777
781
|
if (c) {
|
|
778
782
|
var Le, Ue = i === "x" ? N : V, ze = i === "x" ? q : X, oe = m[A], ue = A === "y" ? "height" : "width", Re = oe + d[Ue], de = oe - d[ze], Pe = [N, V].indexOf(g) !== -1, qe = (Le = M == null ? void 0 : M[A]) != null ? Le : 0, Xe = Pe ? Re : oe - S[ue] - I[ue] - qe + L.altAxis, Ye = Pe ? oe + S[ue] + I[ue] - qe - L.altAxis : de, Ke = h && Pe ? Nr(Xe, oe, Ye) : Me(h ? Xe : Re, oe, h ? Ye : de);
|
|
@@ -1041,7 +1045,7 @@ function jt(e) {
|
|
|
1041
1045
|
return e[r] !== void 0 && (t[r] = e[r]), t;
|
|
1042
1046
|
}, {});
|
|
1043
1047
|
}
|
|
1044
|
-
function
|
|
1048
|
+
function _e() {
|
|
1045
1049
|
return document.createElement("div");
|
|
1046
1050
|
}
|
|
1047
1051
|
function it(e) {
|
|
@@ -1052,10 +1056,10 @@ function it(e) {
|
|
|
1052
1056
|
function jn(e) {
|
|
1053
1057
|
return Ot(e, "NodeList");
|
|
1054
1058
|
}
|
|
1055
|
-
function
|
|
1059
|
+
function _n(e) {
|
|
1056
1060
|
return Ot(e, "MouseEvent");
|
|
1057
1061
|
}
|
|
1058
|
-
function
|
|
1062
|
+
function Bn(e) {
|
|
1059
1063
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
1060
1064
|
}
|
|
1061
1065
|
function $n(e) {
|
|
@@ -1066,7 +1070,7 @@ function ut(e, t) {
|
|
|
1066
1070
|
r && (r.style.transitionDuration = t + "ms");
|
|
1067
1071
|
});
|
|
1068
1072
|
}
|
|
1069
|
-
function
|
|
1073
|
+
function _t(e, t) {
|
|
1070
1074
|
e.forEach(function(r) {
|
|
1071
1075
|
r && r.setAttribute("data-state", t);
|
|
1072
1076
|
});
|
|
@@ -1091,7 +1095,7 @@ function pt(e, t, r) {
|
|
|
1091
1095
|
e[n](o, r);
|
|
1092
1096
|
});
|
|
1093
1097
|
}
|
|
1094
|
-
function
|
|
1098
|
+
function Bt(e, t) {
|
|
1095
1099
|
for (var r = t; r; ) {
|
|
1096
1100
|
var n;
|
|
1097
1101
|
if (e.contains(r))
|
|
@@ -1112,7 +1116,7 @@ function ir() {
|
|
|
1112
1116
|
}
|
|
1113
1117
|
function Hn() {
|
|
1114
1118
|
var e = document.activeElement;
|
|
1115
|
-
if (
|
|
1119
|
+
if (Bn(e)) {
|
|
1116
1120
|
var t = e._tippy;
|
|
1117
1121
|
e.blur && !t.state.isVisible && e.blur();
|
|
1118
1122
|
}
|
|
@@ -1238,7 +1242,7 @@ function dt(e, t) {
|
|
|
1238
1242
|
e[Jn()] = t;
|
|
1239
1243
|
}
|
|
1240
1244
|
function Vt(e) {
|
|
1241
|
-
var t =
|
|
1245
|
+
var t = _e();
|
|
1242
1246
|
return e === !0 ? t.className = er : (t.className = tr, it(e) ? t.appendChild(e) : dt(t, e)), t;
|
|
1243
1247
|
}
|
|
1244
1248
|
function Ft(e, t) {
|
|
@@ -1260,9 +1264,9 @@ function vt(e) {
|
|
|
1260
1264
|
};
|
|
1261
1265
|
}
|
|
1262
1266
|
function ar(e) {
|
|
1263
|
-
var t =
|
|
1267
|
+
var t = _e(), r = _e();
|
|
1264
1268
|
r.className = kn, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
|
|
1265
|
-
var n =
|
|
1269
|
+
var n = _e();
|
|
1266
1270
|
n.className = Zt, n.setAttribute("data-state", "hidden"), Ft(n, e.props), t.appendChild(r), r.appendChild(n), o(e.props, e.props);
|
|
1267
1271
|
function o(a, p) {
|
|
1268
1272
|
var c = vt(t), u = c.box, l = c.content, f = c.arrow;
|
|
@@ -1291,7 +1295,7 @@ function Zn(e, t) {
|
|
|
1291
1295
|
// properties
|
|
1292
1296
|
id: d,
|
|
1293
1297
|
reference: e,
|
|
1294
|
-
popper:
|
|
1298
|
+
popper: _e(),
|
|
1295
1299
|
popperInstance: g,
|
|
1296
1300
|
props: r,
|
|
1297
1301
|
state: T,
|
|
@@ -1315,7 +1319,7 @@ function Zn(e, t) {
|
|
|
1315
1319
|
var I = E.map(function(s) {
|
|
1316
1320
|
return s.fn(i);
|
|
1317
1321
|
}), P = e.hasAttribute("aria-expanded");
|
|
1318
|
-
return we(), J(),
|
|
1322
|
+
return we(), J(), B(), j("onCreate", [i]), r.showOnCreate && Re(), m.addEventListener("mouseenter", function() {
|
|
1319
1323
|
i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
|
|
1320
1324
|
}), m.addEventListener("mouseleave", function() {
|
|
1321
1325
|
i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", O);
|
|
@@ -1341,10 +1345,10 @@ function Zn(e, t) {
|
|
|
1341
1345
|
function H() {
|
|
1342
1346
|
return vt(m);
|
|
1343
1347
|
}
|
|
1344
|
-
function
|
|
1348
|
+
function _(s) {
|
|
1345
1349
|
return i.state.isMounted && !i.state.isVisible || Z.isTouch || f && f.type === "focus" ? 0 : st(i.props.delay, s ? 0 : 1, W.delay);
|
|
1346
1350
|
}
|
|
1347
|
-
function
|
|
1351
|
+
function B(s) {
|
|
1348
1352
|
s === void 0 && (s = !1), m.style.pointerEvents = i.props.interactive && !s ? "" : "none", m.style.zIndex = "" + i.props.zIndex;
|
|
1349
1353
|
}
|
|
1350
1354
|
function j(s, v, y) {
|
|
@@ -1386,9 +1390,9 @@ function Zn(e, t) {
|
|
|
1386
1390
|
function Q(s) {
|
|
1387
1391
|
if (!(Z.isTouch && (u || s.type === "mousedown"))) {
|
|
1388
1392
|
var v = s.composedPath && s.composedPath()[0] || s.target;
|
|
1389
|
-
if (!(i.props.interactive &&
|
|
1393
|
+
if (!(i.props.interactive && Bt(m, v))) {
|
|
1390
1394
|
if (me(i.props.triggerTarget || e).some(function(y) {
|
|
1391
|
-
return
|
|
1395
|
+
return Bt(y, v);
|
|
1392
1396
|
})) {
|
|
1393
1397
|
if (Z.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
|
|
1394
1398
|
return;
|
|
@@ -1473,7 +1477,7 @@ function Zn(e, t) {
|
|
|
1473
1477
|
var v, y = !1;
|
|
1474
1478
|
if (!(!i.state.isEnabled || Le(s) || c)) {
|
|
1475
1479
|
var D = ((v = f) == null ? void 0 : v.type) === "focus";
|
|
1476
|
-
f = s, w = s.currentTarget, J(), !i.state.isVisible &&
|
|
1480
|
+
f = s, w = s.currentTarget, J(), !i.state.isVisible && _n(s) && Ze.forEach(function(C) {
|
|
1477
1481
|
return C(s);
|
|
1478
1482
|
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || p) && i.props.hideOnClick !== !1 && i.state.isVisible ? y = !0 : Re(s), s.type === "click" && (p = !y), y && !D && de(s);
|
|
1479
1483
|
}
|
|
@@ -1577,7 +1581,7 @@ function Zn(e, t) {
|
|
|
1577
1581
|
}
|
|
1578
1582
|
function Re(s) {
|
|
1579
1583
|
i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), K();
|
|
1580
|
-
var v =
|
|
1584
|
+
var v = _(!0), y = L(), D = y[0], C = y[1];
|
|
1581
1585
|
Z.isTouch && D === "hold" && C && (v = C), v ? n = setTimeout(function() {
|
|
1582
1586
|
i.show();
|
|
1583
1587
|
}, v) : i.show();
|
|
@@ -1588,7 +1592,7 @@ function Zn(e, t) {
|
|
|
1588
1592
|
return;
|
|
1589
1593
|
}
|
|
1590
1594
|
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && p)) {
|
|
1591
|
-
var v =
|
|
1595
|
+
var v = _(!1);
|
|
1592
1596
|
v ? o = setTimeout(function() {
|
|
1593
1597
|
i.state.isVisible && i.hide();
|
|
1594
1598
|
}, v) : a = requestAnimationFrame(function() {
|
|
@@ -1613,7 +1617,7 @@ function Zn(e, t) {
|
|
|
1613
1617
|
}));
|
|
1614
1618
|
i.props = y, we(), v.interactiveDebounce !== y.interactiveDebounce && (fe(), O = It(He, y.interactiveDebounce)), v.triggerTarget && !y.triggerTarget ? me(v.triggerTarget).forEach(function(D) {
|
|
1615
1619
|
D.removeAttribute("aria-expanded");
|
|
1616
|
-
}) : y.triggerTarget && e.removeAttribute("aria-expanded"), J(),
|
|
1620
|
+
}) : y.triggerTarget && e.removeAttribute("aria-expanded"), J(), B(), S && S(v, y), i.popperInstance && (Ue(), ue().forEach(function(D) {
|
|
1617
1621
|
requestAnimationFrame(D._tippy.popperInstance.forceUpdate);
|
|
1618
1622
|
})), j("onAfterUpdate", [i, s]);
|
|
1619
1623
|
}
|
|
@@ -1626,7 +1630,7 @@ function Zn(e, t) {
|
|
|
1626
1630
|
function sr() {
|
|
1627
1631
|
var s = i.state.isVisible, v = i.state.isDestroyed, y = !i.state.isEnabled, D = Z.isTouch && !i.props.touch, C = st(i.props.duration, 0, W.duration);
|
|
1628
1632
|
if (!(s || v || y || D) && !k().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
|
|
1629
|
-
if (i.state.isVisible = !0, R() && (m.style.visibility = "visible"),
|
|
1633
|
+
if (i.state.isVisible = !0, R() && (m.style.visibility = "visible"), B(), K(), i.state.isMounted || (m.style.transition = "none"), R()) {
|
|
1630
1634
|
var $ = H(), U = $.box, xe = $.content;
|
|
1631
1635
|
ut([U, xe], 0);
|
|
1632
1636
|
}
|
|
@@ -1635,7 +1639,7 @@ function Zn(e, t) {
|
|
|
1635
1639
|
if (!(!i.state.isVisible || l)) {
|
|
1636
1640
|
if (l = !0, m.offsetHeight, m.style.transition = i.props.moveTransition, R() && i.props.animation) {
|
|
1637
1641
|
var ot = H(), Ge = ot.box, Oe = ot.content;
|
|
1638
|
-
ut([Ge, Oe], C),
|
|
1642
|
+
ut([Ge, Oe], C), _t([Ge, Oe], "visible");
|
|
1639
1643
|
}
|
|
1640
1644
|
G(), J(), Mt(ct, i), (ve = i.popperInstance) == null || ve.forceUpdate(), j("onMount", [i]), i.props.animation && R() && ie(C, function() {
|
|
1641
1645
|
i.state.isShown = !0, j("onShown", [i]);
|
|
@@ -1647,9 +1651,9 @@ function Zn(e, t) {
|
|
|
1647
1651
|
function ur() {
|
|
1648
1652
|
var s = !i.state.isVisible, v = i.state.isDestroyed, y = !i.state.isEnabled, D = st(i.props.duration, 1, W.duration);
|
|
1649
1653
|
if (!(s || v || y) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
1650
|
-
if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, p = !1, R() && (m.style.visibility = "hidden"), fe(), ne(),
|
|
1654
|
+
if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, p = !1, R() && (m.style.visibility = "hidden"), fe(), ne(), B(!0), R()) {
|
|
1651
1655
|
var C = H(), $ = C.box, U = C.content;
|
|
1652
|
-
i.props.animation && (ut([$, U], D),
|
|
1656
|
+
i.props.animation && (ut([$, U], D), _t([$, U], "hidden"));
|
|
1653
1657
|
}
|
|
1654
1658
|
G(), J(), i.props.animation ? R() && ye(D, i.unmount) : i.unmount();
|
|
1655
1659
|
}
|
package/package.json
CHANGED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { S as o } from "./SearchApi-HLHEy8AM.js";
|
|
2
|
-
import { n as l, y as c } from "./main-CRQiO-g7.js";
|
|
3
|
-
const i = {
|
|
4
|
-
i18nOptions: {
|
|
5
|
-
namespaces: "components",
|
|
6
|
-
keyPrefix: "account.documentForm.clients"
|
|
7
|
-
},
|
|
8
|
-
name: "ClientAutocomplete",
|
|
9
|
-
components: {
|
|
10
|
-
SearchApi: o
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
searchEnabled: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !0
|
|
16
|
-
},
|
|
17
|
-
showLoading: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !1
|
|
20
|
-
},
|
|
21
|
-
showEmpty: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
filled: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
data() {
|
|
31
|
-
return {
|
|
32
|
-
convertToNewClient: c,
|
|
33
|
-
results: [],
|
|
34
|
-
// results when searching for existing endCustomer
|
|
35
|
-
searchQuery: ""
|
|
36
|
-
// query used to search for endCustomers
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
search(r, e) {
|
|
41
|
-
this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, r({
|
|
42
|
-
q: e,
|
|
43
|
-
cb: ({ endCustomer: s }) => {
|
|
44
|
-
this.results = s;
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var u = function() {
|
|
51
|
-
var e = this, s = e._self._c;
|
|
52
|
-
return s("SearchApi", { attrs: { "custom-search": { endCustomer: !0 } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: a, isLoading: n }) {
|
|
53
|
-
return [s("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && n, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
|
|
54
|
-
return e.search(a, t);
|
|
55
|
-
}, select: function(t) {
|
|
56
|
-
e.$emit("setClient", e.convertToNewClient(t));
|
|
57
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ option: t }) {
|
|
58
|
-
return s("div", { staticStyle: { "line-height": "1.5" } }, [s("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(t.name || t.email))]), s("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(t.reference ? `${t.reference} · ` : "") + " " + e._s(t.workStreet || t.street || " ") + " ")])]);
|
|
59
|
-
} }], null, !0) }, "CAutocomplete", {
|
|
60
|
-
placeholder: e.$t("search.placeholder"),
|
|
61
|
-
...e.$attrs,
|
|
62
|
-
...e.$props
|
|
63
|
-
}, !1), [e.searchEnabled && e.showEmpty ? [s("div", { attrs: { slot: "footer" }, slot: "footer" }, [e.searchQuery && !e.results.length ? s("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(t) {
|
|
64
|
-
return e.$emit("add");
|
|
65
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")]) : e._e()], 1), s("template", { slot: "empty" }, [e._v(" " + e._s(e.$t("search.empty")) + " " + e._s(e.searchQuery) + " ")])] : e._e()], 2)];
|
|
66
|
-
} }]) });
|
|
67
|
-
}, d = [], f = /* @__PURE__ */ l(
|
|
68
|
-
i,
|
|
69
|
-
u,
|
|
70
|
-
d,
|
|
71
|
-
!1,
|
|
72
|
-
null,
|
|
73
|
-
"7407276e"
|
|
74
|
-
);
|
|
75
|
-
const h = f.exports;
|
|
76
|
-
export {
|
|
77
|
-
h as C
|
|
78
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./main-CRQiO-g7.js";
|
|
2
|
-
const a = {
|
|
3
|
-
name: "ErrorCallout",
|
|
4
|
-
props: {
|
|
5
|
-
message: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
size: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "normal"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var s = function(r, t) {
|
|
16
|
-
return r("div", { staticClass: "flex items-center", class: [t.data.staticClass], staticStyle: { "margin-top": "calc(1 * var(--rem))" }, style: [t.data.staticStyle] }, [r("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${t.props.size}`], staticStyle: { margin: "calc(1 * var(--rem)) 0" } }, [r("CIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), r("div", [t._v(" " + t._s(t.props.message) + " ")])], 1)]);
|
|
17
|
-
}, i = [], n = /* @__PURE__ */ e(
|
|
18
|
-
a,
|
|
19
|
-
s,
|
|
20
|
-
i,
|
|
21
|
-
!0,
|
|
22
|
-
null,
|
|
23
|
-
"a90b7cb8"
|
|
24
|
-
);
|
|
25
|
-
const c = n.exports;
|
|
26
|
-
export {
|
|
27
|
-
c as E
|
|
28
|
-
};
|
package/dist/Index-CVSBD1f6.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { n as r } from "./main-CRQiO-g7.js";
|
|
2
|
-
const l = {
|
|
3
|
-
name: "DocChapterSub",
|
|
4
|
-
inject: {
|
|
5
|
-
viewSettings: { default: () => ({ canEdit: !1 }) }
|
|
6
|
-
},
|
|
7
|
-
inheritAttrs: !1
|
|
8
|
-
};
|
|
9
|
-
var o = function(e, t) {
|
|
10
|
-
var i, n;
|
|
11
|
-
return t.props.hideFromEdit && t.injections.viewSettings.canEdit ? t._e() : e("div", { staticClass: "sub-chapter" }, [e("div", { staticClass: "sub-chapter-title" }, [e("span", { staticClass: "sub-chapter-counter primary-pseudo-background" }), t.injections.viewSettings.canEdit && ((n = (i = t.props) == null ? void 0 : i._value) != null && n.title) ? [e("CInput", { staticClass: "preview-title-input", attrs: { value: t.props.title, spellcheck: !1, static: "" }, on: { blur: (s) => {
|
|
12
|
-
var a;
|
|
13
|
-
t.injections.viewSettings.setFormValue && t.injections.viewSettings.setFormValue({
|
|
14
|
-
key: t.props._value.title,
|
|
15
|
-
value: ((a = s.target) == null ? void 0 : a.value) || ""
|
|
16
|
-
});
|
|
17
|
-
} }, nativeOn: { keydown: function(s) {
|
|
18
|
-
return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : s.target.blur();
|
|
19
|
-
} } })] : t.props.title ? e("div", [t._v(t._s(t.props.title))]) : t._e()], 2), e("div", { staticClass: "sub-chapter-content" }, [t._t("default")], 2)]);
|
|
20
|
-
}, c = [], p = /* @__PURE__ */ r(
|
|
21
|
-
l,
|
|
22
|
-
o,
|
|
23
|
-
c,
|
|
24
|
-
!0,
|
|
25
|
-
null,
|
|
26
|
-
"cf4c14b1"
|
|
27
|
-
);
|
|
28
|
-
const f = p.exports;
|
|
29
|
-
export {
|
|
30
|
-
f as default
|
|
31
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { n as r } from "./main-CRQiO-g7.js";
|
|
2
|
-
const e = {
|
|
3
|
-
name: "PlainHtml"
|
|
4
|
-
};
|
|
5
|
-
var o = function(t, n) {
|
|
6
|
-
return t("div", { staticClass: "quill-format" }, [n._t("default", function() {
|
|
7
|
-
return [t("div", { domProps: { innerHTML: n._s(n.props.content) } })];
|
|
8
|
-
})], 2);
|
|
9
|
-
}, s = [], a = /* @__PURE__ */ r(
|
|
10
|
-
e,
|
|
11
|
-
o,
|
|
12
|
-
s,
|
|
13
|
-
!0,
|
|
14
|
-
null,
|
|
15
|
-
null
|
|
16
|
-
);
|
|
17
|
-
const c = a.exports;
|
|
18
|
-
export {
|
|
19
|
-
c as P
|
|
20
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import v from "./VideoPlayerInput-XebqdCEO.js";
|
|
2
|
-
import { B as f, a as g } from "./index-Dpx08x9s.js";
|
|
3
|
-
import { c as x, n as y, o as _ } from "./main-CRQiO-g7.js";
|
|
4
|
-
const V = x.pexels.id, w = {
|
|
5
|
-
name: "VideoSelectModal",
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "videoSelectModal",
|
|
8
|
-
messages: {
|
|
9
|
-
en: {
|
|
10
|
-
creditVideos: "Videos from {{thing}}",
|
|
11
|
-
tabLink: "Use link"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
creditVideos: "Videor från {{thing}}",
|
|
15
|
-
tabLink: "Egen länk"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
components: {
|
|
20
|
-
BackgroundModal: f,
|
|
21
|
-
BackgroundList: g,
|
|
22
|
-
VideoPlayerInput: v
|
|
23
|
-
},
|
|
24
|
-
data() {
|
|
25
|
-
return {
|
|
26
|
-
activeTab: "pexels",
|
|
27
|
-
selectedVideo: null,
|
|
28
|
-
customVideo: null
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
async fetch({ query: s, page: t }) {
|
|
33
|
-
const { data: e } = await _.get("https://api.pexels.com/videos/search", {
|
|
34
|
-
headers: {
|
|
35
|
-
Authorization: V
|
|
36
|
-
},
|
|
37
|
-
params: {
|
|
38
|
-
page: t,
|
|
39
|
-
per_page: 12,
|
|
40
|
-
query: s
|
|
41
|
-
}
|
|
42
|
-
}), a = (o, i) => o.height < i.height || o.width < i.width ? -1 : 1, u = (o) => (o.find(({ height: i }) => i > 1e3 && i < 1200) || {}).link;
|
|
43
|
-
return {
|
|
44
|
-
items: (e.videos || []).map(
|
|
45
|
-
({ id: o, image: i, video_files: r = [], user: d }) => {
|
|
46
|
-
const { sd: m, hd: p } = (r || []).sort(a).reduce(
|
|
47
|
-
(c, n) => (c[n.quality] && n.link && c[n.quality].push(n.link), c),
|
|
48
|
-
{ sd: [], hd: [] }
|
|
49
|
-
), [h] = m;
|
|
50
|
-
let l = u(r);
|
|
51
|
-
return l || ([l] = p.length ? p : m.slice(-1)), {
|
|
52
|
-
id: `${o}`,
|
|
53
|
-
image: i,
|
|
54
|
-
minImage: i,
|
|
55
|
-
video: l,
|
|
56
|
-
minVideo: h,
|
|
57
|
-
userName: d.name,
|
|
58
|
-
userLink: d.link
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
total: e.total_results
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
selectVideo(s) {
|
|
66
|
-
const { id: t, image: e, video: a } = s || {};
|
|
67
|
-
this.selectedVideo = {
|
|
68
|
-
id: t,
|
|
69
|
-
url: a,
|
|
70
|
-
thumbnail: e,
|
|
71
|
-
provider: "pexels"
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
onSave() {
|
|
75
|
-
const s = this.activeTab === "pexels" ? this.selectedVideo : this.customVideo;
|
|
76
|
-
this.$emit("input", s), this.$parent && this.$parent.$emit("input", s), this.$emit("close");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var b = function() {
|
|
81
|
-
var t = this, e = t._self._c;
|
|
82
|
-
return e("BackgroundModal", t._g({}, t.$listeners), [e("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { padding: "calc(0.25 * var(--rem)) calc(1 * var(--rem))", "border-bottom": "1px solid hsl(0, 0%, 88%)" }, attrs: { slot: "header" }, slot: "header" }, [e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "pexels" && { opacity: 1 }, on: { click: function(a) {
|
|
83
|
-
t.activeTab = "pexels";
|
|
84
|
-
} } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "calc(0.5 * var(--rem))" }, attrs: { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 32 32" } }, [e("path", { attrs: { d: "M2 0h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z", fill: "#05A081" } }), e("path", { attrs: { d: "M13 21h3.863v-3.752h1.167a3.124 3.124 0 1 0 0-6.248H13v10zm5.863 2H11V9h7.03a5.124 5.124 0 0 1 .833 10.18V23z", fill: "#fff" } })]), t._v(" " + t._s(t.$t("_common:video").capitalize()) + " ")])]), e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "customUrl" && { opacity: 1 }, on: { click: function(a) {
|
|
85
|
-
t.activeTab = "customUrl";
|
|
86
|
-
} } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "calc(0.5 * var(--rem))" }, attrs: { width: "28", height: "28", xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0", y: "0", "xml:space": "preserve", viewBox: "0 0 71.412 50" } }, [e("g", { attrs: { transform: "scale(.58824)" } }, [e("path", { attrs: { d: "M118.9 13.3c-1.4-5.2-5.5-9.3-10.7-10.7C98.7 0 60.7 0 60.7 0s-38 0-47.5 2.5C8.1 3.9 3.9 8.1 2.5 13.3 0 22.8 0 42.5 0 42.5s0 19.8 2.5 29.2C3.9 76.9 8 81 13.2 82.4 22.8 85 60.7 85 60.7 85s38 0 47.5-2.5c5.2-1.4 9.3-5.5 10.7-10.7 2.5-9.5 2.5-29.2 2.5-29.2s.1-19.8-2.5-29.3z", fill: "red", "fill-opacity": "1" } }), e("path", { attrs: { fill: "#fff", d: "M80.2 42.5L48.6 24.3v36.4z" } })])]), t._v(" " + t._s(t.$t("tabLink").capitalize()) + " ")])])], 1), t.activeTab === "pexels" ? e("BackgroundList", { attrs: { fetch: t.fetch, "credit-text": t.$t("creditVideos", { thing: "Pexels" }), "default-query": "nature" }, on: { select: t.selectVideo } }, [e("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { slot: "footer", disable: !t.selectedVideo, type: "secondary" }, on: { click: t.onSave }, slot: "footer" }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1) : e("div", { staticClass: "flex w-full flex-col items-center justify-center" }, [e("div", { staticStyle: { "max-width": "500px", width: "100%", margin: "0 auto", "padding-top": "calc(3 * var(--rem))" } }, [e("div", { staticStyle: { position: "relative", width: "100%", "padding-top": "56.25%", "background-color": "hsl(var(--gray-color-100) / 1)", "border-radius": "0.5em", "margin-bottom": "calc(1.5 * var(--rem))" } }, [t.customVideo ? e("iframe", { staticClass: "custom-video-preview", attrs: { src: t.customVideo.url } }) : t._e()]), e("VideoPlayerInput", { attrs: { filled: !0, "video-options": { background: !0 } }, model: { value: t.customVideo, callback: function(a) {
|
|
87
|
-
t.customVideo = a;
|
|
88
|
-
}, expression: "customVideo" } }, [e("CButton", { attrs: { disable: !t.customVideo, type: "secondary" }, on: { click: t.onSave } }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1)], 1)])], 1);
|
|
89
|
-
}, k = [], S = /* @__PURE__ */ y(
|
|
90
|
-
w,
|
|
91
|
-
b,
|
|
92
|
-
k,
|
|
93
|
-
!1,
|
|
94
|
-
null,
|
|
95
|
-
"670d3d62"
|
|
96
|
-
);
|
|
97
|
-
const C = S.exports;
|
|
98
|
-
export {
|
|
99
|
-
C as default
|
|
100
|
-
};
|