@cling-se/widget 0.17.0 → 1.0.0-beta.2
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-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Setup-CmAK2_ZT.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { n as s, c as o, e as c } from "./main-BgzLHIoo.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-RgoXRrud.js";
|
|
2
|
-
import { M as s } from "./ManualPopover-BE2IN-XU.js";
|
|
3
|
-
import { h as a } from "./color-TdtKxwVa.js";
|
|
4
|
-
import { n as i } from "./main-BgzLHIoo.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-CQgSN7dv.js";
|
|
2
|
-
import { I as t } from "./InputToggleRow-CcqJDguN.js";
|
|
3
|
-
import { b as s } from "./CDropdownItem-CaoSQX6X.js";
|
|
4
|
-
import { n as a } from "./main-BgzLHIoo.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-BgzLHIoo.js";
|
|
2
|
-
import m from "./Index-DAQQQlut.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-Dd2Y71JG.js";
|
|
2
|
-
import { d as l } from "./debounce-D0hKNU85.js";
|
|
3
|
-
import { v as r } from "./utils-nos8CB1L.js";
|
|
4
|
-
import { n } from "./main-BgzLHIoo.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-DKHKjMgX.js";
|
|
2
|
-
import { n as s } from "./main-BgzLHIoo.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-DKHKjMgX.js";
|
|
2
|
-
import { B as v, a as g } from "./index-COKDjmM2.js";
|
|
3
|
-
import { c as y, n as x, q as _ } from "./main-BgzLHIoo.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-CaoSQX6X.js";
|
|
2
|
-
import { b as r } from "./main-BgzLHIoo.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-frHq1g4s.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
|
-
};
|
package/dist/dom-CWsqMElk.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
const l = {}, f = {};
|
|
2
|
-
function p(t) {
|
|
3
|
-
if (f[t])
|
|
4
|
-
return;
|
|
5
|
-
if (l[t])
|
|
6
|
-
return l[t];
|
|
7
|
-
const o = new Promise((n, e) => {
|
|
8
|
-
const s = document.createElement("script");
|
|
9
|
-
t.endsWith(".mjs") && (s.type = "module");
|
|
10
|
-
const i = window.setTimeout(() => {
|
|
11
|
-
l[t] = null, e(new Error(`Failed to load ${t} in 20s`));
|
|
12
|
-
}, 2e4);
|
|
13
|
-
s.onload = (a) => {
|
|
14
|
-
i && window.clearTimeout(i), f[t] = !0, l[t] = null, n();
|
|
15
|
-
}, s.onerror = (a) => {
|
|
16
|
-
i && window.clearTimeout(i), l[t] = null, e(a);
|
|
17
|
-
}, s.src = t, document.body.appendChild(s);
|
|
18
|
-
});
|
|
19
|
-
return l[t] = o, o;
|
|
20
|
-
}
|
|
21
|
-
function w(t) {
|
|
22
|
-
const o = t.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, e = window.innerWidth || document.documentElement.clientWidth, s = o.top <= n && o.top + o.height >= 0, i = o.left <= e && o.left + o.width >= 0;
|
|
23
|
-
return s && i;
|
|
24
|
-
}
|
|
25
|
-
const u = (t) => {
|
|
26
|
-
const o = /(auto|scroll)/, n = (r, c) => r.parentNode === null ? c : n(r.parentNode, c.concat([r])), e = (r, c) => getComputedStyle(r, null).getPropertyValue(c), s = (r) => e(r, "overflow") + e(r, "overflow-y") + e(r, "overflow-x"), i = (r) => o.test(s(r));
|
|
27
|
-
return ((r) => {
|
|
28
|
-
if (!(r instanceof HTMLElement || r instanceof SVGElement))
|
|
29
|
-
return null;
|
|
30
|
-
const c = n(r.parentNode, []);
|
|
31
|
-
for (let d = 0; d < c.length; d += 1)
|
|
32
|
-
if (i(c[d]))
|
|
33
|
-
return c[d];
|
|
34
|
-
return document.scrollingElement || document.documentElement;
|
|
35
|
-
})(t);
|
|
36
|
-
}, m = (t) => {
|
|
37
|
-
let o = 0;
|
|
38
|
-
for (; t; )
|
|
39
|
-
o += t.offsetTop, t = t.offsetParent;
|
|
40
|
-
return o;
|
|
41
|
-
};
|
|
42
|
-
function h(t, o) {
|
|
43
|
-
let n = t;
|
|
44
|
-
typeof n == "string" && (n = document.querySelector(n));
|
|
45
|
-
const e = {
|
|
46
|
-
offset: 0,
|
|
47
|
-
behavior: "smooth",
|
|
48
|
-
body: u(n),
|
|
49
|
-
// custom option used for choosing parent scroll element
|
|
50
|
-
...o
|
|
51
|
-
}, s = m(n);
|
|
52
|
-
HTMLElement.prototype.scrollTo ? e.body.scrollTo({
|
|
53
|
-
behavior: e.behavior,
|
|
54
|
-
top: s - e.offset
|
|
55
|
-
}) : e.body.scrollTop = s - e.offset;
|
|
56
|
-
}
|
|
57
|
-
const g = (t) => {
|
|
58
|
-
var e;
|
|
59
|
-
const o = (e = t == null ? void 0 : t.getRootNode) == null ? void 0 : e.call(t), n = (o == null ? void 0 : o.toString()) === "[object ShadowRoot]";
|
|
60
|
-
return {
|
|
61
|
-
isShadow: n,
|
|
62
|
-
el: n ? o : document
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
u as a,
|
|
67
|
-
p as e,
|
|
68
|
-
g,
|
|
69
|
-
w as i,
|
|
70
|
-
h as s
|
|
71
|
-
};
|