@cling-se/widget 0.17.3 → 0.18.0
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/CHANGELOG.md +7 -0
- package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
- package/dist/AnswerModal-a2cyKFbt.js +3371 -0
- package/dist/AttachmentItem-DBUqckCS.js +171 -0
- package/dist/BaseUpload-DrWzuvbS.js +6503 -0
- package/dist/BlockMedia-DuE_K9hR.js +103 -0
- package/dist/CCallout-CM1VsH30.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
- package/dist/CDropdownItem-DMUAJ90n.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
- package/dist/CPhoneInput-DuGkDiv-.js +207 -0
- package/dist/CPriceInput-B7DYzKcF.js +142 -0
- package/dist/CSelect-BZZDr27O.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
- package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
- package/dist/ClientModal-CaMSjLkD.js +1188 -0
- package/dist/ColorPicker-BISZPQ6j.js +1408 -0
- package/dist/CompanyModal-ClTcmU4Y.js +250 -0
- package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
- package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
- package/dist/DocAnswer-Bu09V33D.js +33 -0
- package/dist/DocDetails-B6-2LKsO.js +452 -0
- package/dist/DocForm-CFN8LWSd.js +6772 -0
- package/dist/DocFormSend-D1CUhy4n.js +171 -0
- package/dist/DocLinks-CuliFqtN.js +36 -0
- package/dist/DocModalBase-BxKsnwN-.js +29 -0
- package/dist/DocPrint-B_HJ_RET.js +399 -0
- package/dist/DocReceipt-D-A1TaTI.js +341 -0
- package/dist/DocSendReminder-BKTJonzh.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
- package/dist/DocTimeline-CF9S4YDZ.js +537 -0
- package/dist/DocumentClient-7mbq2QA4.js +90 -0
- package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
- package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
- package/dist/DocumentVoided-CWr5WMUv.js +33 -0
- package/dist/EmbedInput-SevVEpwc.js +156 -0
- package/dist/EmbedSettings-YMbUmp1O.js +103 -0
- package/dist/ErrorCallout-CQo2iF9c.js +34 -0
- package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
- package/dist/Flag-BObij6SN.js +41 -0
- package/dist/HeaderSettings-C77pR78n.js +720 -0
- package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
- package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
- package/dist/Index-B3y-jq9s.js +1098 -0
- package/dist/Index-B41pUREi.js +47 -0
- package/dist/Index-BEyeS1OG.js +52 -0
- package/dist/Index-BG5j8ZFP.js +93 -0
- package/dist/Index-BOT65yQR.js +68 -0
- package/dist/Index-BQNl-cXP.js +28 -0
- package/dist/Index-BY6xsS7C.js +38 -0
- package/dist/Index-Bh0Xv5ry.js +163 -0
- package/dist/Index-Bn4FSQcx.js +228 -0
- package/dist/Index-BrRIAede.js +87 -0
- package/dist/Index-C-6um0kX.js +76 -0
- package/dist/{Index-C_aIQ908.js → Index-C-gHa5xk.js} +319 -214
- package/dist/Index-C0wcjKCH.js +629 -0
- package/dist/Index-C6BbUFYw.js +160 -0
- package/dist/Index-C8xwJ0m1.js +200 -0
- package/dist/Index-CKgFEJF4.js +140 -0
- package/dist/{Index-Dfq7egc1.js → Index-CQwmu4f1.js} +47 -60
- package/dist/Index-CXchTpBa.js +74 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CYoRt8PA.js} +9 -17
- package/dist/Index-CZZNQ4q5.js +39 -0
- package/dist/Index-CkaAs5ms.js +136 -0
- package/dist/Index-CtpXaBz8.js +363 -0
- package/dist/Index-CxDsSGtZ.js +126 -0
- package/dist/Index-DFkTBm02.js +102 -0
- package/dist/Index-DP3ll8F-.js +70 -0
- package/dist/{Index-RWMPRDAE.js → Index-DPDzMKQa.js} +10 -18
- package/dist/Index-DvxSig3z.js +25 -0
- package/dist/Index-Dzrn3Y6p.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-LQb0omFE.js} +10 -18
- package/dist/Index-Mt4mSaNT.js +4 -0
- package/dist/Index-_xN_cczo.js +3477 -0
- package/dist/Index-gAz45qgR.js +21 -0
- package/dist/Index-xXLFalgR.js +49 -0
- package/dist/Index-zyZRPz3H.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
- package/dist/InputToggleRow-CokEYwm2.js +99 -0
- package/dist/ManualPopover-Dukly7GP.js +65 -0
- package/dist/MediaWrapper-B8msCrQm.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DcQd8Eej.js} +13 -17
- package/dist/PackageGroup-clUIUoik.js +1060 -0
- package/dist/PdfTerms-DpzMVRfN.js +34 -0
- package/dist/PdfViewer-CSf4Rtbj.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
- package/dist/PriceHeader-Dyweu8aH.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-Y1fDQn0u.js} +37 -49
- package/dist/SendForm-B9l24WwR.js +6689 -0
- package/dist/Setup-DyzbPFM4.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-CWGKoAJh.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-BeQH307A.js} +169 -56
- package/dist/ThemeColorRow-DFIsPy55.js +105 -0
- package/dist/ToggleBinding-DlH4y1IM.js +44 -0
- package/dist/UploadModal-BZ0mPBBB.js +134 -0
- package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
- package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
- package/dist/VideoSelectModal-BhbanMix.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-CogZ-GVm.js} +2 -2
- package/dist/helpers-B4GUxtdD.js +46 -0
- package/dist/index-BZDey7B-.js +268 -0
- package/dist/index-Bd8_ZHHq.js +188 -0
- package/dist/index-BvyoYp1e.js +508 -0
- package/dist/index-CJZoubA3.js +3525 -0
- package/dist/index-D7yQWP4d.js +125 -0
- package/dist/index-D8hGHka6.js +513 -0
- package/dist/index-Dxy4tf7x.js +149 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-Bn5XkQPb.js +57570 -0
- package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
- package/dist/omit-DrWpFvRJ.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-tdtCFPMx.js} +4 -4
- package/dist/splitpanes-BApidgjj.js +342 -0
- package/dist/template-CHdf2K2I.js +1572 -0
- package/dist/tippy.esm-Co6FYzEM.js +1994 -0
- package/dist/useTermsModal-VDnO1Lro.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils-DZkn0Q9c.js} +8 -11
- package/dist/validation-CqBkar3f.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Setup-B90VDZTG.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { n as s, c as o, e as c } from "./main-BL_yzf2r.js";
|
|
2
|
-
const i = {
|
|
3
|
-
name: "Setup",
|
|
4
|
-
props: {
|
|
5
|
-
partnerName: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: "Partner"
|
|
8
|
-
},
|
|
9
|
-
closeFunc: {
|
|
10
|
-
type: Function,
|
|
11
|
-
default: () => {
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
computed: {
|
|
16
|
-
baseAppUrl() {
|
|
17
|
-
return o.baseUrl;
|
|
18
|
-
},
|
|
19
|
-
iframeUrl() {
|
|
20
|
-
return `${this.baseAppUrl}/partner/connect?partnerName=${this.partnerName}`;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
created() {
|
|
24
|
-
window.addEventListener("message", this.onReceiveMessage);
|
|
25
|
-
},
|
|
26
|
-
beforeDestroy() {
|
|
27
|
-
window.removeEventListener("message", this.onReceiveMessage);
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
onReceiveMessage({ data: e, origin: r, source: n }) {
|
|
31
|
-
var t;
|
|
32
|
-
r === this.baseAppUrl && ((e == null ? void 0 : e.type) === "channelPartnerConnect" && (n == null || n.postMessage({ type: "readyForPartnerConnect" }, r)), (e == null ? void 0 : e.type) === "partnerUserConnect" && (c.trigger("account:userConnect", e == null ? void 0 : e.value), (t = this.closeFunc) == null || t.call(this)));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var p = function() {
|
|
37
|
-
var r = this, n = r._self._c;
|
|
38
|
-
return n("iframe", { staticClass: "h-full w-full", attrs: { title: "Partner Connect", src: r.iframeUrl, frameborder: "0" } });
|
|
39
|
-
}, l = [], a = /* @__PURE__ */ s(
|
|
40
|
-
i,
|
|
41
|
-
p,
|
|
42
|
-
l,
|
|
43
|
-
!1,
|
|
44
|
-
null,
|
|
45
|
-
null
|
|
46
|
-
);
|
|
47
|
-
const m = a.exports;
|
|
48
|
-
export {
|
|
49
|
-
m as default
|
|
50
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { C as n } from "./ColorPicker-IFGHqH-u.js";
|
|
2
|
-
import { M as s } from "./ManualPopover-CQfjPvFe.js";
|
|
3
|
-
import { h as a } from "./color-TdtKxwVa.js";
|
|
4
|
-
import { n as i } from "./main-BL_yzf2r.js";
|
|
5
|
-
const l = {
|
|
6
|
-
name: "ThemeColorRow",
|
|
7
|
-
components: {
|
|
8
|
-
ColorPicker: n,
|
|
9
|
-
ManualPopover: s
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
value: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
pickerOptions: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => ({})
|
|
19
|
-
},
|
|
20
|
-
showReset: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
},
|
|
24
|
-
placement: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "bottom-end"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
computed: {
|
|
30
|
-
internalValue: {
|
|
31
|
-
get() {
|
|
32
|
-
return this.value;
|
|
33
|
-
},
|
|
34
|
-
set(r) {
|
|
35
|
-
this.$emit("change", a(r.hsl));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
reset() {
|
|
41
|
-
this.$emit("change", null);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var c = function() {
|
|
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" }, 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() {
|
|
56
|
-
return [t("div", { staticClass: "current-color-icon", style: { backgroundColor: e.internalValue } })];
|
|
57
|
-
})], 2)])], 1);
|
|
58
|
-
}, p = [], u = /* @__PURE__ */ i(
|
|
59
|
-
l,
|
|
60
|
-
c,
|
|
61
|
-
p,
|
|
62
|
-
!1,
|
|
63
|
-
null,
|
|
64
|
-
"4a704dc8"
|
|
65
|
-
);
|
|
66
|
-
const h = u.exports;
|
|
67
|
-
export {
|
|
68
|
-
h as T
|
|
69
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { I as t } from "./InputToggleRow-BmDuSbE2.js";
|
|
3
|
-
import { b as s } from "./CDropdownItem-CN7gSfgY.js";
|
|
4
|
-
import { n as a } from "./main-BL_yzf2r.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,95 +0,0 @@
|
|
|
1
|
-
import { f as l, h as o, O as c, n as d } from "./main-BL_yzf2r.js";
|
|
2
|
-
import m from "./Index-B1Odktov.js";
|
|
3
|
-
import { m as p } from "./vuex.esm-DKGl8mcw.js";
|
|
4
|
-
const u = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "uploadModal",
|
|
7
|
-
messages: {
|
|
8
|
-
sv: {
|
|
9
|
-
upPlaceholder: "Dra & släpp filer hit eller",
|
|
10
|
-
recentlyUsed: "Senast använda"
|
|
11
|
-
},
|
|
12
|
-
en: {
|
|
13
|
-
upPlaceholder: "Drag & drop files here or",
|
|
14
|
-
recentlyUsed: "Recently used"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
name: "UploadModal",
|
|
19
|
-
components: {
|
|
20
|
-
FileIcon: m
|
|
21
|
-
},
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
recentFiles: [],
|
|
25
|
-
isLoading: !0
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
computed: {
|
|
29
|
-
...p({
|
|
30
|
-
user: "application/user"
|
|
31
|
-
})
|
|
32
|
-
},
|
|
33
|
-
mounted() {
|
|
34
|
-
this.loadFiles();
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
async loadFiles() {
|
|
38
|
-
var a;
|
|
39
|
-
this.isLoading = !0;
|
|
40
|
-
try {
|
|
41
|
-
const { data: e } = await l("/file", {
|
|
42
|
-
params: {
|
|
43
|
-
CompanyUserId: (a = this.user) == null ? void 0 : a.id,
|
|
44
|
-
_sort: "lastUsedAt",
|
|
45
|
-
_order: "DESC",
|
|
46
|
-
_start: 0,
|
|
47
|
-
_end: 20
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
this.recentFiles = (e || []).map(
|
|
51
|
-
({ displayName: t, mime: s, id: r, createdAt: n, url: i }) => ({
|
|
52
|
-
name: t,
|
|
53
|
-
// TODO, could refactor to only 'displayName'
|
|
54
|
-
displayName: t,
|
|
55
|
-
// file-uploader-component uses displayName, therefore needed for select
|
|
56
|
-
mime: s,
|
|
57
|
-
id: r,
|
|
58
|
-
createdAt: n,
|
|
59
|
-
url: i
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
} catch (e) {
|
|
63
|
-
o(e);
|
|
64
|
-
} finally {
|
|
65
|
-
this.isLoading = !1;
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
onSelect(a) {
|
|
69
|
-
c(`/file/${a.id}/updateLastUsedAt`), this.$emit("select", a);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var h = function() {
|
|
74
|
-
var e = this, t = e._self._c;
|
|
75
|
-
return t("div", { staticClass: "max-h-[90%] w-[460px] max-w-full rounded-xl bg-white text-base" }, [t("div", { staticClass: "p-6" }, [t("div", { staticClass: "hover:border-primary-500/20 cursor-pointer rounded-lg border border-gray-200 bg-gray-50 p-8 text-center text-gray-700 hover:bg-gray-100 active:bg-gray-200", on: { click: function(s) {
|
|
76
|
-
return e.$emit("open-picker");
|
|
77
|
-
} } }, [e._v(" " + e._s(e.$t("upPlaceholder")) + " "), t("span", { staticClass: "text-primary-500 underline" }, [e._v(e._s(e.$t("_common:browse")))])])]), e.isLoading || e.recentFiles.length ? t("div", { staticClass: "h-[400px] max-h-[50vh] overflow-auto border-t border-gray-200 pb-4 text-left" }, [t("div", { staticStyle: { "font-size": "15px", padding: "1em", margin: "0px 1em", color: "hsl(0, 0%, 30%)" } }, [e._v(" " + e._s(e.$t("recentlyUsed")) + " ")]), e.isLoading ? e._l(6, function(s) {
|
|
78
|
-
return t("ContentPlaceholders", { key: s, staticClass: "up-recent-item flex w-full items-center", attrs: { animated: !1 } }, [t("ContentPlaceholdersText", { staticStyle: { width: "37px", height: "38px", "font-size": "24px", "margin-right": "4px" }, attrs: { lines: 1 } }), t("div", { staticClass: "flex-grow" }, [t("ContentPlaceholdersText", { attrs: { lines: 1 } }), t("ContentPlaceholdersText", { staticClass: "up-recent-item-hint", staticStyle: { "max-width": "50%" }, attrs: { lines: 1 } })], 1)], 1);
|
|
79
|
-
}) : e._l(e.recentFiles, function(s) {
|
|
80
|
-
return t("div", { key: s.id, staticClass: "up-recent-item flex w-full items-center", on: { click: function(r) {
|
|
81
|
-
return e.onSelect(s);
|
|
82
|
-
} } }, [t("FileIcon", { staticStyle: { "margin-right": "1em" }, attrs: { mime: s.mime, size: 30 } }), t("div", { staticClass: "truncate-text" }, [t("div", { staticClass: "truncate-text", staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(s.name) + " ")]), t("div", { staticClass: "up-recent-item-hint" }, [e._v(" " + e._s(e.$formatDate(s.createdAt)) + " ")])])], 1);
|
|
83
|
-
})], 2) : e._e()]);
|
|
84
|
-
}, f = [], _ = /* @__PURE__ */ d(
|
|
85
|
-
u,
|
|
86
|
-
h,
|
|
87
|
-
f,
|
|
88
|
-
!1,
|
|
89
|
-
null,
|
|
90
|
-
"fb90a9bc"
|
|
91
|
-
);
|
|
92
|
-
const y = _.exports;
|
|
93
|
-
export {
|
|
94
|
-
y as default
|
|
95
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { C as a } from "./CFormField-Clvcf2Jh.js";
|
|
2
|
-
import { d as l } from "./debounce-Ch1d3526.js";
|
|
3
|
-
import { v as r } from "./utils-Dr4AcaE9.js";
|
|
4
|
-
import { n } from "./main-BL_yzf2r.js";
|
|
5
|
-
const o = {
|
|
6
|
-
name: "VideoPlayerInput",
|
|
7
|
-
i18nOptions: {
|
|
8
|
-
namespaces: "components",
|
|
9
|
-
keyPrefix: "document.videoPlayer"
|
|
10
|
-
},
|
|
11
|
-
components: {
|
|
12
|
-
CField: a
|
|
13
|
-
},
|
|
14
|
-
props: {
|
|
15
|
-
value: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
},
|
|
19
|
-
isDrawerMode: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
videoOptions: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: () => ({ background: !1 })
|
|
26
|
-
},
|
|
27
|
-
filled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
isLoading: !1,
|
|
35
|
-
isValid: !1,
|
|
36
|
-
url: ""
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
validations() {
|
|
40
|
-
return {
|
|
41
|
-
url: {
|
|
42
|
-
isValid: () => this.isValid
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
computed: {
|
|
47
|
-
messages() {
|
|
48
|
-
return {
|
|
49
|
-
url: {
|
|
50
|
-
isValid: this.$t("validations.url.isValid")
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
created() {
|
|
56
|
-
this.value && this.value.url && (this.url = this.value.url);
|
|
57
|
-
},
|
|
58
|
-
methods: {
|
|
59
|
-
onInput: l(function(e) {
|
|
60
|
-
this.$v.$reset(), this.isValid = !1, e && this.validateUrl(e);
|
|
61
|
-
}, 500),
|
|
62
|
-
async validateUrl(i) {
|
|
63
|
-
const e = i;
|
|
64
|
-
this.isLoading = !0;
|
|
65
|
-
const t = await r(e, this.videoOptions);
|
|
66
|
-
t && (this.isValid = !0, this.$emit("input", t)), this.isLoading = !1, this.$v.$touch();
|
|
67
|
-
},
|
|
68
|
-
focus() {
|
|
69
|
-
this.$refs.input && this.$refs.input.focus();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var d = function() {
|
|
74
|
-
var e = this, t = e._self._c;
|
|
75
|
-
return t("CField", { style: e.isDrawerMode && {
|
|
76
|
-
display: "flex",
|
|
77
|
-
flexDirection: "column",
|
|
78
|
-
alignItems: "flex-start"
|
|
79
|
-
}, attrs: { grouped: !e.isDrawerMode } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.url, messages: e.messages.url, expanded: "" } }, [t("CInput", { ref: "input", attrs: { placeholder: "https://www...", size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.filled || e.isDrawerMode, expanded: "" }, on: { input: e.onInput }, model: { value: e.url, callback: function(s) {
|
|
80
|
-
e.url = s;
|
|
81
|
-
}, expression: "url" } })], 1), e._t("default", function() {
|
|
82
|
-
return [t("CButton", { attrs: { size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(s) {
|
|
83
|
-
return e.validateUrl(e.url);
|
|
84
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])];
|
|
85
|
-
})], 2);
|
|
86
|
-
}, u = [], f = /* @__PURE__ */ n(
|
|
87
|
-
o,
|
|
88
|
-
d,
|
|
89
|
-
u,
|
|
90
|
-
!1,
|
|
91
|
-
null,
|
|
92
|
-
null
|
|
93
|
-
);
|
|
94
|
-
const h = f.exports;
|
|
95
|
-
export {
|
|
96
|
-
h as default
|
|
97
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import n from "./VideoPlayerInput-1zG06elO.js";
|
|
2
|
-
import { n as s } from "./main-BL_yzf2r.js";
|
|
3
|
-
const l = {
|
|
4
|
-
i18nOptions: {
|
|
5
|
-
namespaces: "components",
|
|
6
|
-
keyPrefix: "document.videoPlayer"
|
|
7
|
-
},
|
|
8
|
-
name: "VideoPlayerSettings",
|
|
9
|
-
components: {
|
|
10
|
-
VideoPlayerInput: n
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
video: {
|
|
14
|
-
type: Object,
|
|
15
|
-
default: () => ({})
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "small"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
computed: {
|
|
23
|
-
sizeOptions() {
|
|
24
|
-
return [
|
|
25
|
-
{
|
|
26
|
-
value: "small",
|
|
27
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M22 16h56a2 2 0 012 2v30a2 2 0 01-2 2H22a2 2 0 01-2-2V18a2 2 0 012-2zm0 40h56a2 2 0 012 2v7H20v-7a2 2 0 012-2zM20 0h60v7a2 2 0 01-2 2H22a2 2 0 01-2-2V0z" fill="currentColor"/></g>'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
value: "medium",
|
|
31
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M11 14h76a2 2 0 012 2v33a2 2 0 01-2 2H11a2 2 0 01-2-2V16a2 2 0 012-2zm8-14h60v6a2 2 0 01-2 2H21a2 2 0 01-2-2V0zm2 58h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
value: "large",
|
|
35
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M8 7h84a2 2 0 012 2v42a2 2 0 01-2 2H8a2 2 0 01-2-2V9a2 2 0 012-2zm13 51h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var r = function() {
|
|
42
|
-
var t = this, e = t._self._c;
|
|
43
|
-
return e("div", { staticClass: "d-root" }, [e("div", { staticClass: "d-option" }, [e("div", { staticClass: "d-option-title" }, [t._v(t._s(t.$t("_common:video").capitalize()))]), e("div", { staticClass: "text-gray-600", staticStyle: { "padding-bottom": "1em", "font-size": "15px" } }, [t._v(" " + t._s(t.$t("subTitle")) + " ")]), e("VideoPlayerInput", { attrs: { value: t.video, "is-drawer-mode": !0 }, on: { input: function(i) {
|
|
44
|
-
return t.$emit("input", { key: "video", value: i });
|
|
45
|
-
} } })], 1), e("div", { staticClass: "d-option" }, [e("div", { staticClass: "d-option-title" }, [t._v(t._s(t.$t("_common:size").capitalize()))]), e("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap" } }, t._l(t.sizeOptions, function({ value: i, svg: a }, o) {
|
|
46
|
-
return e("div", { key: o, staticClass: "size-option", on: { click: function(c) {
|
|
47
|
-
return t.$emit("input", { key: "size", value: i });
|
|
48
|
-
} } }, [e("svg", { staticClass: "size-option-image", class: { "is-active": t.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: t._s(a) } })]);
|
|
49
|
-
}), 0)])]);
|
|
50
|
-
}, v = [], d = /* @__PURE__ */ s(
|
|
51
|
-
l,
|
|
52
|
-
r,
|
|
53
|
-
v,
|
|
54
|
-
!1,
|
|
55
|
-
null,
|
|
56
|
-
"ba43bad1"
|
|
57
|
-
);
|
|
58
|
-
const f = d.exports;
|
|
59
|
-
export {
|
|
60
|
-
f as default
|
|
61
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import h from "./VideoPlayerInput-1zG06elO.js";
|
|
2
|
-
import { B as v, a as g } from "./index-C5wcxrC6.js";
|
|
3
|
-
import { c as y, n as x, q as _ } from "./main-BL_yzf2r.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
|
-
"7ff369a0"
|
|
100
|
-
);
|
|
101
|
-
const C = S.exports;
|
|
102
|
-
export {
|
|
103
|
-
C as default
|
|
104
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { w as a } from "./CDropdownItem-CN7gSfgY.js";
|
|
2
|
-
import { b as r } from "./main-BL_yzf2r.js";
|
|
3
|
-
const m = ({ documentKey: s = "document" } = {}) => ({
|
|
4
|
-
mixins: [a],
|
|
5
|
-
inject: {
|
|
6
|
-
formValidation: { default: null }
|
|
7
|
-
},
|
|
8
|
-
methods: {
|
|
9
|
-
isValid() {
|
|
10
|
-
const { isFormValid: t, scrollToInvalidInput: i } = this.formValidation || this;
|
|
11
|
-
return !t || !i || t() ? !0 : i({ offset: 120 });
|
|
12
|
-
},
|
|
13
|
-
isAnswerModalOpen() {
|
|
14
|
-
const t = this.$modal.getOpenInstances();
|
|
15
|
-
return t && t.length && t.some((i) => {
|
|
16
|
-
var e;
|
|
17
|
-
return ((e = i.modalAttrs) == null ? void 0 : e.name) === "AnswerModal";
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
onAnswer(t = "accept", i = {}) {
|
|
21
|
-
if (this.isAnswerModalOpen())
|
|
22
|
-
return;
|
|
23
|
-
const e = r(this, s);
|
|
24
|
-
if (!e || e.isPreview || !(t === "decline" ? !0 : this.isValid()))
|
|
25
|
-
return;
|
|
26
|
-
const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-CsWltR6j.js");
|
|
27
|
-
this.$modal.show(
|
|
28
|
-
n,
|
|
29
|
-
{
|
|
30
|
-
mode: t,
|
|
31
|
-
_document: e,
|
|
32
|
-
fullScreen: o === "100%",
|
|
33
|
-
calcHeight: !!i.calcHeight
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "AnswerModal",
|
|
37
|
-
adaptive: !0,
|
|
38
|
-
height: "auto",
|
|
39
|
-
width: "90%",
|
|
40
|
-
maxWidth: 420,
|
|
41
|
-
classes: "overflow-visible",
|
|
42
|
-
transition: "modal-soft",
|
|
43
|
-
clickToClose: !1
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
m as a
|
|
51
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { af as C, o as O, ag as j, l as A } from "./main-BL_yzf2r.js";
|
|
2
|
-
var L = C, M = function() {
|
|
3
|
-
return L.Date.now();
|
|
4
|
-
}, B = M, F = /\s/;
|
|
5
|
-
function R(e) {
|
|
6
|
-
for (var r = e.length; r-- && F.test(e.charAt(r)); )
|
|
7
|
-
;
|
|
8
|
-
return r;
|
|
9
|
-
}
|
|
10
|
-
var D = R, H = D, P = /^\s+/;
|
|
11
|
-
function U(e) {
|
|
12
|
-
return e && e.slice(0, H(e) + 1).replace(P, "");
|
|
13
|
-
}
|
|
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
|
-
function Q(e) {
|
|
16
|
-
if (typeof e == "number")
|
|
17
|
-
return e;
|
|
18
|
-
if (w(e))
|
|
19
|
-
return _;
|
|
20
|
-
if (y(e)) {
|
|
21
|
-
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
22
|
-
e = y(r) ? r + "" : r;
|
|
23
|
-
}
|
|
24
|
-
if (typeof e != "string")
|
|
25
|
-
return e === 0 ? e : +e;
|
|
26
|
-
e = q(e);
|
|
27
|
-
var i = G.test(e);
|
|
28
|
-
return i || J.test(e) ? K(e.slice(2), i ? 2 : 8) : z.test(e) ? _ : +e;
|
|
29
|
-
}
|
|
30
|
-
var V = Q, Y = O, T = B, $ = V, Z = "Expected a function", ee = Math.max, ne = Math.min;
|
|
31
|
-
function re(e, r, i) {
|
|
32
|
-
var u, s, l, o, t, f, d = 0, I = !1, c = !1, b = !0;
|
|
33
|
-
if (typeof e != "function")
|
|
34
|
-
throw new TypeError(Z);
|
|
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
|
-
function g(n) {
|
|
37
|
-
var a = u, m = s;
|
|
38
|
-
return u = s = void 0, d = n, o = e.apply(m, a), o;
|
|
39
|
-
}
|
|
40
|
-
function S(n) {
|
|
41
|
-
return d = n, t = setTimeout(v, r), I ? g(n) : o;
|
|
42
|
-
}
|
|
43
|
-
function k(n) {
|
|
44
|
-
var a = n - f, m = n - d, p = r - a;
|
|
45
|
-
return c ? ne(p, l - m) : p;
|
|
46
|
-
}
|
|
47
|
-
function h(n) {
|
|
48
|
-
var a = n - f, m = n - d;
|
|
49
|
-
return f === void 0 || a >= r || a < 0 || c && m >= l;
|
|
50
|
-
}
|
|
51
|
-
function v() {
|
|
52
|
-
var n = T();
|
|
53
|
-
if (h(n))
|
|
54
|
-
return E(n);
|
|
55
|
-
t = setTimeout(v, k(n));
|
|
56
|
-
}
|
|
57
|
-
function E(n) {
|
|
58
|
-
return t = void 0, b && u ? g(n) : (u = s = void 0, o);
|
|
59
|
-
}
|
|
60
|
-
function N() {
|
|
61
|
-
t !== void 0 && clearTimeout(t), d = 0, u = f = s = t = void 0;
|
|
62
|
-
}
|
|
63
|
-
function W() {
|
|
64
|
-
return t === void 0 ? o : E(T());
|
|
65
|
-
}
|
|
66
|
-
function x() {
|
|
67
|
-
var n = T(), a = h(n);
|
|
68
|
-
if (u = arguments, s = this, f = n, a) {
|
|
69
|
-
if (t === void 0)
|
|
70
|
-
return S(f);
|
|
71
|
-
if (c)
|
|
72
|
-
return clearTimeout(t), t = setTimeout(v, r), g(f);
|
|
73
|
-
}
|
|
74
|
-
return t === void 0 && (t = setTimeout(v, r)), o;
|
|
75
|
-
}
|
|
76
|
-
return x.cancel = N, x.flush = W, x;
|
|
77
|
-
}
|
|
78
|
-
var te = re;
|
|
79
|
-
const ae = /* @__PURE__ */ A(te);
|
|
80
|
-
export {
|
|
81
|
-
te as a,
|
|
82
|
-
ae as d,
|
|
83
|
-
V as t
|
|
84
|
-
};
|