@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,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as c } from "./mapFormMixin-
|
|
3
|
-
import g from "./
|
|
4
|
-
|
|
1
|
+
import { f as m, N as o, n as v } from "./main-U22_wtg0.js";
|
|
2
|
+
import { m as c } from "./mapFormMixin-BZf4RJIE.js";
|
|
3
|
+
import { C as g } from "./CCallout-BNvM6gNJ.js";
|
|
4
|
+
import { C as p, a as u } from "./CDropdownItem-DiLisSei.js";
|
|
5
|
+
import f from "./Index-BUQ75xOU.js";
|
|
6
|
+
const h = {
|
|
5
7
|
i18nOptions: {
|
|
6
8
|
namespaces: "terms",
|
|
7
9
|
messages: {
|
|
@@ -29,7 +31,10 @@ const p = {
|
|
|
29
31
|
},
|
|
30
32
|
name: "TermsSettings",
|
|
31
33
|
components: {
|
|
32
|
-
TermsDisclaimer:
|
|
34
|
+
TermsDisclaimer: f,
|
|
35
|
+
CCallout: g,
|
|
36
|
+
CDropdown: p,
|
|
37
|
+
CDropdownItem: u
|
|
33
38
|
},
|
|
34
39
|
mixins: [c(["term"])],
|
|
35
40
|
data() {
|
|
@@ -77,9 +82,11 @@ const p = {
|
|
|
77
82
|
truncate: o
|
|
78
83
|
}
|
|
79
84
|
};
|
|
80
|
-
var
|
|
85
|
+
var k = function() {
|
|
81
86
|
var t = this, e = t._self._c;
|
|
82
|
-
return e("div", { staticClass: "d-root" }, [e("div", { staticClass: "d-option-title" }, [t._v(" " + t._s(t.$t("title")) + " "), e("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "square", "stroke-linejoin": "bevel" } }, [e("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), e("line", { attrs: { x1: "12", y1: "16", x2: "12", y2: "12" } }), e("line", { attrs: { x1: "12", y1: "8", x2: "12", y2: "8" } })])]), e("CDropdown", { attrs: { value: t.term ? t.term.id : null, expanded: "" }
|
|
87
|
+
return e("div", { staticClass: "d-root" }, [e("div", { staticClass: "d-option-title" }, [t._v(" " + t._s(t.$t("title")) + " "), e("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "square", "stroke-linejoin": "bevel" } }, [e("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), e("line", { attrs: { x1: "12", y1: "16", x2: "12", y2: "12" } }), e("line", { attrs: { x1: "12", y1: "8", x2: "12", y2: "8" } })])]), e("CDropdown", { attrs: { value: t.term ? t.term.id : null, expanded: "" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
88
|
+
return [e("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { "dropdown-icon": !0 } }, [e("div", { staticClass: "truncate-text" }, [t._v(" " + t._s(t.truncate(t.term && t.terms.ids.length && t.terms.data[t.term.termId].name || t.$t("noneSelected"), 20)) + " ")])])];
|
|
89
|
+
}, proxy: !0 }]) }, [t._l(t.terms.ids, function(a) {
|
|
83
90
|
return e("CDropdownItem", { key: a, staticStyle: { "padding-right": "calc(1 * var(--rem))" }, attrs: { value: a }, on: { click: function(n) {
|
|
84
91
|
t.term = t.terms.data[a];
|
|
85
92
|
} } }, [e("div", { staticClass: "truncate-text" }, [t._v(" " + t._s(t.terms.data[a].name) + " ")])]);
|
|
@@ -88,15 +95,15 @@ var u = function() {
|
|
|
88
95
|
} } }, [t._v(t._s(t.$t("notSet")))]), t.terms.ids.length ? t._e() : e("CDropdownItem", { attrs: { disabled: "" } }, [t._v(t._s(t.$t("noResults")))])], 2), t.viewSettings.isPublicForm ? e("CCallout", { staticStyle: { margin: "1em 0" }, attrs: { title: t.$t("publicFormCalloutTitle"), size: "small" } }, [t._v(" " + t._s(t.$t("publicFormCallout")) + " ")]) : t._e(), t.term ? e("TermsDisclaimer", { attrs: { _document: t._document, "term-type": t.term.type, href: t.term.href, text: t.term.text, file: t.term.file }, scopedSlots: t._u([{ key: "default", fn: function({ openTerms: a }) {
|
|
89
96
|
return [e("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "secondary", size: "small", "icon-left": "eye" }, on: { click: a } }, [t._v(" " + t._s(t.$t("show")) + " ")])];
|
|
90
97
|
} }], null, !1, 1475186016) }) : t._e()], 1);
|
|
91
|
-
},
|
|
92
|
-
p,
|
|
93
|
-
u,
|
|
98
|
+
}, b = [], _ = /* @__PURE__ */ v(
|
|
94
99
|
h,
|
|
100
|
+
k,
|
|
101
|
+
b,
|
|
95
102
|
!1,
|
|
96
103
|
null,
|
|
97
|
-
"
|
|
104
|
+
"4d461b8a"
|
|
98
105
|
);
|
|
99
|
-
const
|
|
106
|
+
const T = _.exports;
|
|
100
107
|
export {
|
|
101
|
-
|
|
108
|
+
T as default
|
|
102
109
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as n } from "./ColorPicker-
|
|
2
|
-
import { M as s } from "./ManualPopover-
|
|
1
|
+
import { C as n } from "./ColorPicker-BupC4jvI.js";
|
|
2
|
+
import { M as s } from "./ManualPopover-Cf8DotlW.js";
|
|
3
3
|
import { h as a } from "./color-TdtKxwVa.js";
|
|
4
|
-
import { n as i } from "./main-
|
|
4
|
+
import { n as i } from "./main-U22_wtg0.js";
|
|
5
5
|
const l = {
|
|
6
6
|
name: "ThemeColorRow",
|
|
7
7
|
components: {
|
|
@@ -44,22 +44,24 @@ const l = {
|
|
|
44
44
|
};
|
|
45
45
|
var c = function() {
|
|
46
46
|
var e = this, t = e._self._c;
|
|
47
|
-
return t("div", { ref: "themeContainer", staticClass: "theme-row" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._t("default")], 2), e.showReset ? t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("reset"), expression: "$t('reset')" }], staticClass: "reset-button", on: { click: e.reset } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38" } })])]) : e._e(), t("ManualPopover", { attrs: { "popover-class": "popover-color-picker no-tip", "popover-inner-class": "color-wrapper" }
|
|
47
|
+
return t("div", { ref: "themeContainer", staticClass: "theme-row" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._t("default")], 2), e.showReset ? t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("reset"), expression: "$t('reset')" }], staticClass: "reset-button", on: { click: e.reset } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38" } })])]) : e._e(), t("ManualPopover", { attrs: { "popover-class": "popover-color-picker no-tip", "popover-inner-class": "color-wrapper" }, scopedSlots: e._u([{ key: "popover", fn: function() {
|
|
48
|
+
return [t("div", { on: { mousedown: function(o) {
|
|
49
|
+
o.stopPropagation();
|
|
50
|
+
}, click: function(o) {
|
|
51
|
+
o.stopPropagation();
|
|
52
|
+
} } }, [t("ColorPicker", e._b({ ref: "colorPicker", model: { value: e.internalValue, callback: function(o) {
|
|
53
|
+
e.internalValue = o;
|
|
54
|
+
}, expression: "internalValue" } }, "ColorPicker", e.pickerOptions, !1))], 1)];
|
|
55
|
+
}, proxy: !0 }]) }, [t("div", { ref: "button" }, [e._t("button", function() {
|
|
48
56
|
return [t("div", { staticClass: "current-color-icon", style: { backgroundColor: e.internalValue } })];
|
|
49
|
-
})], 2),
|
|
50
|
-
o.stopPropagation();
|
|
51
|
-
}, click: function(o) {
|
|
52
|
-
o.stopPropagation();
|
|
53
|
-
} }, slot: "popover" }, [t("ColorPicker", e._b({ ref: "colorPicker", model: { value: e.internalValue, callback: function(o) {
|
|
54
|
-
e.internalValue = o;
|
|
55
|
-
}, expression: "internalValue" } }, "ColorPicker", e.pickerOptions, !1))], 1)])], 1);
|
|
57
|
+
})], 2)])], 1);
|
|
56
58
|
}, p = [], u = /* @__PURE__ */ i(
|
|
57
59
|
l,
|
|
58
60
|
c,
|
|
59
61
|
p,
|
|
60
62
|
!1,
|
|
61
63
|
null,
|
|
62
|
-
"
|
|
64
|
+
"82de33f7"
|
|
63
65
|
);
|
|
64
66
|
const h = u.exports;
|
|
65
67
|
export {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { m as i } from "./mapFormMixin-BZf4RJIE.js";
|
|
2
|
+
import { I as t } from "./InputToggleRow-DLFIMIdx.js";
|
|
3
|
+
import { b as s } from "./CDropdownItem-DiLisSei.js";
|
|
4
|
+
import { n as a } from "./main-U22_wtg0.js";
|
|
5
|
+
const r = {
|
|
6
|
+
name: "ToggleBinding",
|
|
7
|
+
i18nOptions: {
|
|
8
|
+
namespaces: "ToggleBinding",
|
|
9
|
+
messages: {
|
|
10
|
+
en: {
|
|
11
|
+
label: "Answer not binding"
|
|
12
|
+
},
|
|
13
|
+
sv: {
|
|
14
|
+
label: "Ej bindande svar"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
InputToggleRow: t,
|
|
20
|
+
CSwitch: s
|
|
21
|
+
},
|
|
22
|
+
mixins: [i(["notBinding"])]
|
|
23
|
+
};
|
|
24
|
+
var l = function() {
|
|
25
|
+
var n = this, e = n._self._c;
|
|
26
|
+
return e("div", [e("InputToggleRow", { attrs: { "display-value": n.notBinding, label: n.$t("label") }, scopedSlots: n._u([{ key: "toggle", fn: function() {
|
|
27
|
+
return [e("CSwitch", { model: { value: n.notBinding, callback: function(o) {
|
|
28
|
+
n.notBinding = o;
|
|
29
|
+
}, expression: "notBinding" } })];
|
|
30
|
+
}, proxy: !0 }]) })], 1);
|
|
31
|
+
}, g = [], m = /* @__PURE__ */ a(
|
|
32
|
+
r,
|
|
33
|
+
l,
|
|
34
|
+
g,
|
|
35
|
+
!1,
|
|
36
|
+
null,
|
|
37
|
+
null
|
|
38
|
+
);
|
|
39
|
+
const u = m.exports;
|
|
40
|
+
export {
|
|
41
|
+
u as default
|
|
42
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import m from "./Index-
|
|
1
|
+
import { f as l, h as o, O as c, n as d } from "./main-U22_wtg0.js";
|
|
2
|
+
import m from "./Index-sqI1TF7Z.js";
|
|
3
3
|
import { m as p } from "./vuex.esm-DKGl8mcw.js";
|
|
4
4
|
const u = {
|
|
5
5
|
i18nOptions: {
|
|
@@ -48,15 +48,15 @@ const u = {
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
this.recentFiles = (e || []).map(
|
|
51
|
-
({ displayName: t, mime: s, id: r, createdAt:
|
|
51
|
+
({ displayName: t, mime: s, id: r, createdAt: n, url: i }) => ({
|
|
52
52
|
name: t,
|
|
53
53
|
// TODO, could refactor to only 'displayName'
|
|
54
54
|
displayName: t,
|
|
55
55
|
// file-uploader-component uses displayName, therefore needed for select
|
|
56
56
|
mime: s,
|
|
57
57
|
id: r,
|
|
58
|
-
createdAt:
|
|
59
|
-
url:
|
|
58
|
+
createdAt: n,
|
|
59
|
+
url: i
|
|
60
60
|
})
|
|
61
61
|
);
|
|
62
62
|
} catch (e) {
|
|
@@ -87,7 +87,7 @@ var h = function() {
|
|
|
87
87
|
f,
|
|
88
88
|
!1,
|
|
89
89
|
null,
|
|
90
|
-
"
|
|
90
|
+
"f11a7bdd"
|
|
91
91
|
);
|
|
92
92
|
const y = _.exports;
|
|
93
93
|
export {
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { C as a } from "./CFormField-DcZVdj3a.js";
|
|
2
|
+
import { d as l } from "./debounce-DLiv1sQX.js";
|
|
3
|
+
import { v as r } from "./utils-BOWVR87A.js";
|
|
4
|
+
import { n } from "./main-U22_wtg0.js";
|
|
5
|
+
const o = {
|
|
5
6
|
name: "VideoPlayerInput",
|
|
6
7
|
i18nOptions: {
|
|
7
8
|
namespaces: "components",
|
|
8
9
|
keyPrefix: "document.videoPlayer"
|
|
9
10
|
},
|
|
11
|
+
components: {
|
|
12
|
+
CField: a
|
|
13
|
+
},
|
|
10
14
|
props: {
|
|
11
15
|
value: {
|
|
12
16
|
type: Object,
|
|
@@ -52,13 +56,13 @@ const n = {
|
|
|
52
56
|
this.value && this.value.url && (this.url = this.value.url);
|
|
53
57
|
},
|
|
54
58
|
methods: {
|
|
55
|
-
onInput:
|
|
59
|
+
onInput: l(function(e) {
|
|
56
60
|
this.$v.$reset(), this.isValid = !1, e && this.validateUrl(e);
|
|
57
61
|
}, 500),
|
|
58
62
|
async validateUrl(i) {
|
|
59
63
|
const e = i;
|
|
60
64
|
this.isLoading = !0;
|
|
61
|
-
const t = await
|
|
65
|
+
const t = await r(e, this.videoOptions);
|
|
62
66
|
t && (this.isValid = !0, this.$emit("input", t)), this.isLoading = !1, this.$v.$touch();
|
|
63
67
|
},
|
|
64
68
|
focus() {
|
|
@@ -66,7 +70,7 @@ const n = {
|
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
|
-
var
|
|
73
|
+
var d = function() {
|
|
70
74
|
var e = this, t = e._self._c;
|
|
71
75
|
return t("CField", { style: e.isDrawerMode && {
|
|
72
76
|
display: "flex",
|
|
@@ -79,15 +83,15 @@ var o = function() {
|
|
|
79
83
|
return e.validateUrl(e.url);
|
|
80
84
|
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])];
|
|
81
85
|
})], 2);
|
|
82
|
-
},
|
|
83
|
-
n,
|
|
86
|
+
}, u = [], f = /* @__PURE__ */ n(
|
|
84
87
|
o,
|
|
85
88
|
d,
|
|
89
|
+
u,
|
|
86
90
|
!1,
|
|
87
91
|
null,
|
|
88
92
|
null
|
|
89
93
|
);
|
|
90
|
-
const
|
|
94
|
+
const h = f.exports;
|
|
91
95
|
export {
|
|
92
|
-
|
|
96
|
+
h as default
|
|
93
97
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import n from "./VideoPlayerInput-
|
|
2
|
-
import { n as s } from "./main-
|
|
1
|
+
import n from "./VideoPlayerInput-Cm3KoRnR.js";
|
|
2
|
+
import { n as s } from "./main-U22_wtg0.js";
|
|
3
3
|
const l = {
|
|
4
4
|
i18nOptions: {
|
|
5
5
|
namespaces: "components",
|
|
@@ -53,7 +53,7 @@ var r = function() {
|
|
|
53
53
|
v,
|
|
54
54
|
!1,
|
|
55
55
|
null,
|
|
56
|
-
"
|
|
56
|
+
"03fa1deb"
|
|
57
57
|
);
|
|
58
58
|
const f = d.exports;
|
|
59
59
|
export {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import h from "./VideoPlayerInput-Cm3KoRnR.js";
|
|
2
|
+
import { B as v, a as g } from "./index-DLa3QER7.js";
|
|
3
|
+
import { c as y, n as x, q as _ } from "./main-U22_wtg0.js";
|
|
4
|
+
const V = y.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: v,
|
|
21
|
+
BackgroundList: g,
|
|
22
|
+
VideoPlayerInput: h
|
|
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
|
+
(l, n) => (l[n.quality] && n.link && l[n.quality].push(n.link), l),
|
|
48
|
+
{ sd: [], hd: [] }
|
|
49
|
+
), [f] = m;
|
|
50
|
+
let c = u(r);
|
|
51
|
+
return c || ([c] = p.length ? p : m.slice(-1)), {
|
|
52
|
+
id: `${o}`,
|
|
53
|
+
image: i,
|
|
54
|
+
minImage: i,
|
|
55
|
+
video: c,
|
|
56
|
+
minVideo: f,
|
|
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 k = function() {
|
|
81
|
+
var t = this, e = t._self._c;
|
|
82
|
+
return e("BackgroundModal", t._g({ scopedSlots: t._u([{ key: "header", fn: function() {
|
|
83
|
+
return [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%)" } }, [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) {
|
|
84
|
+
t.activeTab = "pexels";
|
|
85
|
+
} } }, [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) {
|
|
86
|
+
t.activeTab = "customUrl";
|
|
87
|
+
} } }, [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)];
|
|
88
|
+
}, proxy: !0 }]) }, t.$listeners), [t.activeTab === "pexels" ? e("BackgroundList", { attrs: { fetch: t.fetch, "credit-text": t.$t("creditVideos", { thing: "Pexels" }), "default-query": "nature" }, on: { select: t.selectVideo }, scopedSlots: t._u([{ key: "footer", fn: function() {
|
|
89
|
+
return [e("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { disable: !t.selectedVideo, type: "secondary" }, on: { click: t.onSave } }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])];
|
|
90
|
+
}, proxy: !0 }], null, !1, 3698158385) }) : 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) {
|
|
91
|
+
t.customVideo = a;
|
|
92
|
+
}, 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);
|
|
93
|
+
}, b = [], S = /* @__PURE__ */ x(
|
|
94
|
+
w,
|
|
95
|
+
k,
|
|
96
|
+
b,
|
|
97
|
+
!1,
|
|
98
|
+
null,
|
|
99
|
+
"6fb5cf13"
|
|
100
|
+
);
|
|
101
|
+
const C = S.exports;
|
|
102
|
+
export {
|
|
103
|
+
C as default
|
|
104
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as a } from "./CDropdownItem-
|
|
2
|
-
import { b as r } from "./main-
|
|
1
|
+
import { w as a } from "./CDropdownItem-DiLisSei.js";
|
|
2
|
+
import { b as r } from "./main-U22_wtg0.js";
|
|
3
3
|
const m = ({ documentKey: s = "document" } = {}) => ({
|
|
4
4
|
mixins: [a],
|
|
5
5
|
inject: {
|
|
@@ -23,7 +23,7 @@ const m = ({ documentKey: s = "document" } = {}) => ({
|
|
|
23
23
|
const e = r(this, s);
|
|
24
24
|
if (!e || e.isPreview || !(t === "decline" ? !0 : this.isValid()))
|
|
25
25
|
return;
|
|
26
|
-
const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-
|
|
26
|
+
const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-C3r9vyki.js");
|
|
27
27
|
this.$modal.show(
|
|
28
28
|
n,
|
|
29
29
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { af as C, o as O, ag as j, l as A } from "./main-U22_wtg0.js";
|
|
2
2
|
var L = C, M = function() {
|
|
3
3
|
return L.Date.now();
|
|
4
4
|
}, B = M, F = /\s/;
|
|
@@ -11,7 +11,7 @@ var D = R, H = D, P = /^\s+/;
|
|
|
11
11
|
function U(e) {
|
|
12
12
|
return e && e.slice(0, H(e) + 1).replace(P, "");
|
|
13
13
|
}
|
|
14
|
-
var X = U, q = X, y =
|
|
14
|
+
var X = U, q = X, y = O, w = j, _ = NaN, z = /^[-+]0x[0-9a-f]+$/i, G = /^0b[01]+$/i, J = /^0o[0-7]+$/i, K = parseInt;
|
|
15
15
|
function Q(e) {
|
|
16
16
|
if (typeof e == "number")
|
|
17
17
|
return e;
|
|
@@ -27,20 +27,20 @@ function Q(e) {
|
|
|
27
27
|
var i = G.test(e);
|
|
28
28
|
return i || J.test(e) ? K(e.slice(2), i ? 2 : 8) : z.test(e) ? _ : +e;
|
|
29
29
|
}
|
|
30
|
-
var V = Q, Y =
|
|
30
|
+
var V = Q, Y = O, T = B, $ = V, Z = "Expected a function", ee = Math.max, ne = Math.min;
|
|
31
31
|
function re(e, r, i) {
|
|
32
|
-
var u,
|
|
32
|
+
var u, s, l, o, t, f, d = 0, I = !1, c = !1, b = !0;
|
|
33
33
|
if (typeof e != "function")
|
|
34
34
|
throw new TypeError(Z);
|
|
35
35
|
r = $(r) || 0, Y(i) && (I = !!i.leading, c = "maxWait" in i, l = c ? ee($(i.maxWait) || 0, r) : l, b = "trailing" in i ? !!i.trailing : b);
|
|
36
36
|
function g(n) {
|
|
37
|
-
var a = u, m =
|
|
38
|
-
return u =
|
|
39
|
-
}
|
|
40
|
-
function O(n) {
|
|
41
|
-
return d = n, t = setTimeout(v, r), I ? g(n) : s;
|
|
37
|
+
var a = u, m = s;
|
|
38
|
+
return u = s = void 0, d = n, o = e.apply(m, a), o;
|
|
42
39
|
}
|
|
43
40
|
function S(n) {
|
|
41
|
+
return d = n, t = setTimeout(v, r), I ? g(n) : o;
|
|
42
|
+
}
|
|
43
|
+
function k(n) {
|
|
44
44
|
var a = n - f, m = n - d, p = r - a;
|
|
45
45
|
return c ? ne(p, l - m) : p;
|
|
46
46
|
}
|
|
@@ -52,26 +52,26 @@ function re(e, r, i) {
|
|
|
52
52
|
var n = T();
|
|
53
53
|
if (h(n))
|
|
54
54
|
return E(n);
|
|
55
|
-
t = setTimeout(v,
|
|
55
|
+
t = setTimeout(v, k(n));
|
|
56
56
|
}
|
|
57
57
|
function E(n) {
|
|
58
|
-
return t = void 0, b && u ? g(n) : (u =
|
|
58
|
+
return t = void 0, b && u ? g(n) : (u = s = void 0, o);
|
|
59
59
|
}
|
|
60
60
|
function N() {
|
|
61
|
-
t !== void 0 && clearTimeout(t), d = 0, u = f =
|
|
61
|
+
t !== void 0 && clearTimeout(t), d = 0, u = f = s = t = void 0;
|
|
62
62
|
}
|
|
63
63
|
function W() {
|
|
64
|
-
return t === void 0 ?
|
|
64
|
+
return t === void 0 ? o : E(T());
|
|
65
65
|
}
|
|
66
66
|
function x() {
|
|
67
67
|
var n = T(), a = h(n);
|
|
68
|
-
if (u = arguments,
|
|
68
|
+
if (u = arguments, s = this, f = n, a) {
|
|
69
69
|
if (t === void 0)
|
|
70
|
-
return
|
|
70
|
+
return S(f);
|
|
71
71
|
if (c)
|
|
72
72
|
return clearTimeout(t), t = setTimeout(v, r), g(f);
|
|
73
73
|
}
|
|
74
|
-
return t === void 0 && (t = setTimeout(v, r)),
|
|
74
|
+
return t === void 0 && (t = setTimeout(v, r)), o;
|
|
75
75
|
}
|
|
76
76
|
return x.cancel = N, x.flush = W, x;
|
|
77
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as s,
|
|
1
|
+
import { g as s, U as l, W as r, n as d, V as n } from "./main-U22_wtg0.js";
|
|
2
2
|
import { m as p, a as c } from "./vuex.esm-DKGl8mcw.js";
|
|
3
3
|
const m = {
|
|
4
4
|
name: "ClientLinks",
|
|
@@ -77,7 +77,7 @@ var u = function() {
|
|
|
77
77
|
h,
|
|
78
78
|
!1,
|
|
79
79
|
null,
|
|
80
|
-
"
|
|
80
|
+
"39699716"
|
|
81
81
|
);
|
|
82
82
|
const v = y.exports, g = v, _ = ({ id: o }) => {
|
|
83
83
|
if (!n.prototype.$modal)
|