@cling-se/widget 0.17.3 → 0.18.1
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 +24 -0
- package/dist/AddClientCallout-CCt78VvH.js +101 -0
- package/dist/AnswerModal-B4LwVv2N.js +3371 -0
- package/dist/AttachmentItem-DnvYffKP.js +171 -0
- package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
- package/dist/BlockMedia-Amo_kdHo.js +103 -0
- package/dist/CCallout-Gd06ds6O.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
- package/dist/CDropdownItem-BUNVCpSR.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
- package/dist/CPhoneInput-B6iyhsOG.js +207 -0
- package/dist/CPriceInput-BLQaNu1d.js +142 -0
- package/dist/CSelect-BVO9iO9L.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
- package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
- package/dist/ClientModal-B9cbuEiC.js +1188 -0
- package/dist/ColorPicker-G2kkxL7_.js +1408 -0
- package/dist/CompanyModal-por9AG4P.js +250 -0
- package/dist/ContentWrapper-CQtaGA2u.js +265 -0
- package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
- package/dist/DocAnswer-BrKctwrY.js +33 -0
- package/dist/DocDetails-B_LWVHGt.js +452 -0
- package/dist/DocForm-D6T7NmfO.js +6772 -0
- package/dist/DocFormSend-COYPrhl7.js +171 -0
- package/dist/DocLinks-B0LjxXIk.js +36 -0
- package/dist/DocModalBase-DObZHuYr.js +29 -0
- package/dist/DocPrint-CkDq78fB.js +399 -0
- package/dist/DocReceipt-CYBPyePC.js +341 -0
- package/dist/DocSendReminder-Dau6s43e.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
- package/dist/DocTimeline-ChBDPOfd.js +537 -0
- package/dist/DocumentClient-MLXzzXLb.js +90 -0
- package/dist/DocumentLayout-BMHOt380.js +1434 -0
- package/dist/DocumentLogotype-Clj3fopX.js +162 -0
- package/dist/DocumentVoided-B5_MSBbC.js +33 -0
- package/dist/EmbedInput-CzkOa02p.js +156 -0
- package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
- package/dist/ErrorCallout-CJn6NCse.js +34 -0
- package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
- package/dist/Flag-C4_G5IY1.js +41 -0
- package/dist/HeaderSettings-DWN0TjVD.js +720 -0
- package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
- package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
- package/dist/Index-B06eCuBA.js +76 -0
- package/dist/Index-B8Zj0-MX.js +87 -0
- package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
- package/dist/Index-BCHLxp7B.js +21 -0
- package/dist/Index-BDAp1CwZ.js +363 -0
- package/dist/Index-BFbcjFo4.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
- package/dist/Index-BOx_9tTM.js +136 -0
- package/dist/Index-BgZNiD7A.js +47 -0
- package/dist/Index-Bt97lEsI.js +228 -0
- package/dist/Index-C9aBeBBk.js +70 -0
- package/dist/Index-CE3pWPzp.js +49 -0
- package/dist/Index-CMdPSsp4.js +38 -0
- package/dist/Index-CNhBDG2e.js +126 -0
- package/dist/Index-CdsOdgG2.js +28 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
- package/dist/Index-CpxzwwQS.js +52 -0
- package/dist/Index-CxTwWRD9.js +93 -0
- package/dist/Index-D9WFWlE6.js +140 -0
- package/dist/Index-D9bulLeI.js +39 -0
- package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
- package/dist/Index-DR-sGE3Y.js +25 -0
- package/dist/Index-DRoOW5Pn.js +163 -0
- package/dist/Index-DTn47-hP.js +74 -0
- package/dist/Index-DeGDlj0B.js +68 -0
- package/dist/Index-DhYYK4bK.js +28 -0
- package/dist/Index-Dssdb-0Z.js +629 -0
- package/dist/Index-OcBnU480.js +200 -0
- package/dist/Index-Qh_8JqAv.js +3477 -0
- package/dist/Index-W10PQb8i.js +102 -0
- package/dist/Index-lbWFEELM.js +4 -0
- package/dist/Index-qFAg7VVU.js +1098 -0
- package/dist/Index-rDndJKo1.js +160 -0
- package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
- package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
- package/dist/InputToggleRow-DJarYsVL.js +99 -0
- package/dist/ManualPopover-BMrkEHtV.js +65 -0
- package/dist/MediaWrapper-BYdVpmov.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
- package/dist/PackageGroup-q7_oBOqw.js +1060 -0
- package/dist/PdfTerms-DBEClYQ5.js +34 -0
- package/dist/PdfViewer-C_y5sqXB.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
- package/dist/PriceHeader-BSwv3mzc.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
- package/dist/SendForm-DfmBbhp9.js +6689 -0
- package/dist/Setup-BC1feKr_.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
- package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
- package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
- package/dist/UploadModal-1OWPRxA5.js +134 -0
- package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
- package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
- package/dist/VideoSelectModal-CSv67eA8.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-r-OZchfV.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
- package/dist/helpers-ChwW54Ex.js +46 -0
- package/dist/index-BMZle8Ew.js +513 -0
- package/dist/index-Bf-fiKJf.js +268 -0
- package/dist/index-Bg4JRi5S.js +125 -0
- package/dist/index-C7chK2UD.js +3525 -0
- package/dist/index-CR52qIBO.js +149 -0
- package/dist/index-D1x9O_nJ.js +188 -0
- package/dist/index-YFcPqc9m.js +508 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-DI0diChK.js +57570 -0
- package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
- package/dist/omit-DpjD7Dj9.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
- package/dist/splitpanes-BypKTSRL.js +342 -0
- package/dist/template-Dzexob5I.js +1572 -0
- package/dist/tippy.esm-0UMN6kWf.js +1994 -0
- package/dist/useTermsModal-DzH_PDFP.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
- package/dist/validation-B-omH73u.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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { a } from "./publicSenderState-CGEm9EYe.js";
|
|
2
|
-
import { C as s, a as r } from "./CDropdownItem-CN7gSfgY.js";
|
|
3
|
-
import { g as l, n as p } from "./main-BL_yzf2r.js";
|
|
4
|
-
import { m as c, a as m } from "./vuex.esm-DKGl8mcw.js";
|
|
5
|
-
const u = {
|
|
6
|
-
name: "DocumentLogotype",
|
|
7
|
-
components: {
|
|
8
|
-
CDropdown: s,
|
|
9
|
-
CDropdownItem: r,
|
|
10
|
-
ImageUploadWrapper: () => import("./ImageUploadWrapper-BiYzUQur.js")
|
|
11
|
-
},
|
|
12
|
-
inject: {
|
|
13
|
-
viewSettings: {
|
|
14
|
-
default: () => ({
|
|
15
|
-
canEdit: !1,
|
|
16
|
-
isPublicForm: !1
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
value: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
companyLogotype: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: null
|
|
28
|
-
},
|
|
29
|
-
showLogo: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !0
|
|
32
|
-
},
|
|
33
|
-
hasHover: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
computed: {
|
|
39
|
-
...c({
|
|
40
|
-
isPosting: "companies/isPosting"
|
|
41
|
-
}),
|
|
42
|
-
logotype() {
|
|
43
|
-
return this.value || this.companyLogotype || "";
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
...m({
|
|
48
|
-
updateCompany: l.DO_UPDATE_CURRENT_COMPANY
|
|
49
|
-
}),
|
|
50
|
-
initUpload() {
|
|
51
|
-
this.$refs.uploadWrapper && this.$refs.uploadWrapper.onClick();
|
|
52
|
-
},
|
|
53
|
-
async setLogotype({ response: e }) {
|
|
54
|
-
const { publicId: t, url: o } = e || {};
|
|
55
|
-
o && this.$emit("input", o), !this.companyLogotype && t && await this.postLogo(t);
|
|
56
|
-
},
|
|
57
|
-
async postLogo(e) {
|
|
58
|
-
if (this.isPosting)
|
|
59
|
-
return;
|
|
60
|
-
const t = { LogotypePublicId: e };
|
|
61
|
-
this.viewSettings.isPublicForm ? a({ company: t }) : await this.updateCompany({ body: t });
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
var d = function() {
|
|
66
|
-
var t = this, o = t._self._c;
|
|
67
|
-
return t.viewSettings.canEdit ? o("ImageUploadWrapper", { ref: "uploadWrapper", staticStyle: { display: "inline-block", width: "fit-content", "will-change": "opacity", "z-index": "3" }, attrs: { "on-image-upload": t.setLogotype, "upload-options": { maxWidth: 500, maxHeight: 300 } }, scopedSlots: t._u([{ key: "default", fn: function({ progress: n }) {
|
|
68
|
-
return [o("CDropdown", { attrs: { position: "is-bottom-right" }, nativeOn: { click: function(i) {
|
|
69
|
-
i.stopPropagation();
|
|
70
|
-
} }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
71
|
-
return [t.logotype && t.showLogo ? o("div", { staticClass: "logo", staticStyle: { "min-height": "35px" } }, [o("img", { staticClass: "hover:outline-primary-500 hover:outline hover:outline-2", attrs: { src: t.logotype, alt: "", width: "150" } })]) : o("CButton", { staticClass: "button-logo", style: !t.hasHover && {
|
|
72
|
-
visibility: "hidden",
|
|
73
|
-
pointerEvents: "none"
|
|
74
|
-
}, attrs: { loading: !!n && n < 100 || t.isPosting, type: "text", size: "normal", pattern: "secondary" } }, [t._v(" " + t._s(t.$t("_common:logo").capitalize()) + " ")])];
|
|
75
|
-
}, proxy: !0 }], null, !0) }, [o("CDropdownItem", { attrs: { value: t.showLogo, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
|
|
76
|
-
return t.$emit("update:show-logo", i);
|
|
77
|
-
} } }, [t._v(" " + t._s(t.$t("_common:show", { thing: t.$t("_common:logotype") })) + " ")]), t.showLogo ? [o("CDropdownItem", { attrs: { separator: !0 } }), o("CDropdownItem", { on: { click: t.initUpload } }, [t._v(" " + t._s(t.$t("_common:change", { thing: t.$t("_common:logotype") })) + " ")]), o("CDropdownItem", { attrs: { disabled: !t.value }, on: { click: function(i) {
|
|
78
|
-
return t.$emit("input", "");
|
|
79
|
-
} } }, [t._v(" " + t._s(t.$t("_common:reset")) + " ")])] : t._e()], 2)];
|
|
80
|
-
} }], null, !1, 4142946360) }) : t.showLogo ? o("div", { staticStyle: { display: "inline-block" } }, [o("img", { attrs: { src: t.logotype, alt: "", width: "150" } })]) : t._e();
|
|
81
|
-
}, g = [], y = /* @__PURE__ */ p(
|
|
82
|
-
u,
|
|
83
|
-
d,
|
|
84
|
-
g,
|
|
85
|
-
!1,
|
|
86
|
-
null,
|
|
87
|
-
"0bf1f99b"
|
|
88
|
-
);
|
|
89
|
-
const w = y.exports;
|
|
90
|
-
export {
|
|
91
|
-
w as default
|
|
92
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { n } from "./main-BL_yzf2r.js";
|
|
2
|
-
const s = {
|
|
3
|
-
name: "DocumentVoided",
|
|
4
|
-
props: {
|
|
5
|
-
document: {
|
|
6
|
-
type: Object,
|
|
7
|
-
required: !0
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
var o = function() {
|
|
12
|
-
var t = this, e = t._self._c;
|
|
13
|
-
return e("div", { staticClass: "grid h-full place-items-center text-center" }, [e("div", { staticClass: "py-12" }, [e("CIcon", { staticClass: "text-primary-500 mb-2", attrs: { type: "info" } }), e("div", { staticClass: "text-lg font-medium", domProps: { textContent: t._s(t.document.$t("documentVoided.title")) } }), e("div", { staticClass: "text-gray-700", domProps: { textContent: t._s(t.document.$t("documentVoided.description")) } })], 1)]);
|
|
14
|
-
}, r = [], c = /* @__PURE__ */ n(
|
|
15
|
-
s,
|
|
16
|
-
o,
|
|
17
|
-
r,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const a = c.exports;
|
|
23
|
-
export {
|
|
24
|
-
a as D
|
|
25
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { C as d } from "./CFormField-Clvcf2Jh.js";
|
|
2
|
-
import { d as o } from "./debounce-Ch1d3526.js";
|
|
3
|
-
import { b as l, n as m } from "./main-BL_yzf2r.js";
|
|
4
|
-
const u = (t) => {
|
|
5
|
-
const i = new DOMParser().parseFromString(t, "text/html"), [s] = l(i, "body.children") || [];
|
|
6
|
-
return !s || s.tagName !== "IFRAME" ? {} : Array.from(s.attributes).reduce(
|
|
7
|
-
(a, { name: r, value: n }) => ({ ...a, [r]: n }),
|
|
8
|
-
{}
|
|
9
|
-
);
|
|
10
|
-
}, c = (t) => {
|
|
11
|
-
if (typeof t != "object" || !t)
|
|
12
|
-
return "";
|
|
13
|
-
const e = document.createElement("iframe");
|
|
14
|
-
return Object.keys(t).forEach((i) => e.setAttribute(i, t[i])), e.hasAttribute("src") ? e.outerHTML : "";
|
|
15
|
-
}, p = (t) => /^(?:https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi.test(
|
|
16
|
-
t
|
|
17
|
-
), f = {
|
|
18
|
-
name: "EmbedInput",
|
|
19
|
-
i18nOptions: {
|
|
20
|
-
namespaces: "embedInput",
|
|
21
|
-
messages: {
|
|
22
|
-
en: {
|
|
23
|
-
placeholder: "Paste embed link",
|
|
24
|
-
validations: {
|
|
25
|
-
embed: {
|
|
26
|
-
isValid: "No supported source found"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
sv: {
|
|
31
|
-
placeholder: "Klista in inbäddningslänk",
|
|
32
|
-
validations: {
|
|
33
|
-
embed: {
|
|
34
|
-
isValid: "Ingen källa kunde hittas"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
components: {
|
|
41
|
-
CField: d
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
value: {
|
|
45
|
-
type: Object,
|
|
46
|
-
default: () => ({})
|
|
47
|
-
},
|
|
48
|
-
isDrawerMode: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
data() {
|
|
54
|
-
return {
|
|
55
|
-
isLoading: !1,
|
|
56
|
-
embed: {},
|
|
57
|
-
// TODO: could remove the template string in the input and only parse/validate input strings
|
|
58
|
-
// TODO: would
|
|
59
|
-
iFrameTplString: "",
|
|
60
|
-
inputPlaceholder: '<iframe style="border: 1px solid rgba(0, 0, 0, 0.1)...'
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
validations() {
|
|
64
|
-
return {
|
|
65
|
-
embed: { isValid: (t) => t && p(t.src) }
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
computed: {
|
|
69
|
-
messages() {
|
|
70
|
-
return {
|
|
71
|
-
embed: { isValid: this.$t("validations.embed.isValid") }
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
watch: {
|
|
76
|
-
value: {
|
|
77
|
-
immediate: !0,
|
|
78
|
-
handler(t) {
|
|
79
|
-
this.embed = Object.assign({}, t), this.iFrameTplString = c(this.embed);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
methods: {
|
|
84
|
-
onInput: o(function(e) {
|
|
85
|
-
this.$v.$reset(), e && this.validateInput(e);
|
|
86
|
-
}, 500),
|
|
87
|
-
async validateInput(t) {
|
|
88
|
-
this.isLoading = !0, this.embed = await u(t), this.embed.src || (this.embed.src = t), this.$v.$invalid || this.$emit("input", this.embed), this.isLoading = !1, this.$v.$touch();
|
|
89
|
-
},
|
|
90
|
-
focus() {
|
|
91
|
-
this.$refs.input && this.$refs.input.focus();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
var h = function() {
|
|
96
|
-
var e = this, i = e._self._c;
|
|
97
|
-
return i("CField", { style: e.isDrawerMode && {
|
|
98
|
-
display: "flex",
|
|
99
|
-
flexDirection: "column",
|
|
100
|
-
alignItems: "flex-start"
|
|
101
|
-
}, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(s) {
|
|
102
|
-
e.iFrameTplString = s;
|
|
103
|
-
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(s) {
|
|
104
|
-
return e.validateInput(e.iFrameTplString);
|
|
105
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
|
|
106
|
-
}, b = [], w = /* @__PURE__ */ m(
|
|
107
|
-
f,
|
|
108
|
-
h,
|
|
109
|
-
b,
|
|
110
|
-
!1,
|
|
111
|
-
null,
|
|
112
|
-
null
|
|
113
|
-
);
|
|
114
|
-
const F = w.exports;
|
|
115
|
-
export {
|
|
116
|
-
F as default
|
|
117
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { b as n } from "./CDropdownItem-CN7gSfgY.js";
|
|
2
|
-
import l from "./EmbedInput-BPdy0lGS.js";
|
|
3
|
-
import { n as o } from "./main-BL_yzf2r.js";
|
|
4
|
-
const r = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "embedSettings",
|
|
7
|
-
messages: {
|
|
8
|
-
en: {
|
|
9
|
-
title: "Embed - iFrame",
|
|
10
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)",
|
|
11
|
-
responsiveSize: "Responsive size"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
title: "Bädda in - iFrame",
|
|
15
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)",
|
|
16
|
-
responsiveSize: "Responsiv storlek"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: "EmbedSettings",
|
|
21
|
-
components: {
|
|
22
|
-
EmbedInput: l,
|
|
23
|
-
CSwitch: n
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
value: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default: () => ({})
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "small"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
computed: {
|
|
36
|
-
sizeOptions() {
|
|
37
|
-
return [
|
|
38
|
-
{
|
|
39
|
-
value: "small",
|
|
40
|
-
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>'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: "medium",
|
|
44
|
-
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>'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: "large",
|
|
48
|
-
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>'
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var d = function() {
|
|
55
|
-
var e = this, t = e._self._c;
|
|
56
|
-
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "text-gray-600", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(i) {
|
|
57
|
-
return e.$emit("input", i);
|
|
58
|
-
} } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (i) => e.$emit("update:size", i ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: i, svg: s }, a) {
|
|
59
|
-
return t("div", { key: a, staticClass: "size-option", on: { click: function(c) {
|
|
60
|
-
return e.$emit("update:size", i);
|
|
61
|
-
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(s) } })]);
|
|
62
|
-
}), 0) : e._e()])]);
|
|
63
|
-
}, v = [], p = /* @__PURE__ */ o(
|
|
64
|
-
r,
|
|
65
|
-
d,
|
|
66
|
-
v,
|
|
67
|
-
!1,
|
|
68
|
-
null,
|
|
69
|
-
"a62790ae"
|
|
70
|
-
);
|
|
71
|
-
const g = p.exports;
|
|
72
|
-
export {
|
|
73
|
-
g as default
|
|
74
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { u as c, y as l, x as r, n } from "./main-BL_yzf2r.js";
|
|
2
|
-
const o = /* @__PURE__ */ c({
|
|
3
|
-
__name: "ErrorCallout",
|
|
4
|
-
props: {
|
|
5
|
-
message: null,
|
|
6
|
-
size: { default: "normal" }
|
|
7
|
-
},
|
|
8
|
-
setup(a) {
|
|
9
|
-
const s = l(), t = r(() => s.style), e = r(() => s.class);
|
|
10
|
-
return { __sfc: !0, attrs: s, staticStyle: t, staticClass: e };
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var i = function() {
|
|
14
|
-
var s = this, t = s._self._c, e = s._self._setupProxy;
|
|
15
|
-
return t("div", { staticClass: "flex items-center", class: [e.staticClass], staticStyle: { "margin-top": "calc(1 * var(--rem))" }, style: [e.staticStyle] }, [t("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${s.size}`], staticStyle: { margin: "calc(1 * var(--rem)) 0" } }, [t("CIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), t("div", [s._v(" " + s._s(s.message) + " ")])], 1)]);
|
|
16
|
-
}, _ = [], m = /* @__PURE__ */ n(
|
|
17
|
-
o,
|
|
18
|
-
i,
|
|
19
|
-
_,
|
|
20
|
-
!1,
|
|
21
|
-
null,
|
|
22
|
-
"f8619ad7"
|
|
23
|
-
);
|
|
24
|
-
const u = m.exports;
|
|
25
|
-
export {
|
|
26
|
-
u as E
|
|
27
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { V as n } from "./PdfViewer-mBLxI8bA.js";
|
|
2
|
-
import { n as o, S as r } from "./main-BL_yzf2r.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "FilesPreviewModal",
|
|
5
|
-
components: {
|
|
6
|
-
Spinner: r,
|
|
7
|
-
VuePdf: n
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
index: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 0
|
|
13
|
-
},
|
|
14
|
-
list: {
|
|
15
|
-
type: Array,
|
|
16
|
-
required: !0
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
isLoading: !0,
|
|
22
|
-
currentIndex: this.index
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
computed: {
|
|
26
|
-
isPdf() {
|
|
27
|
-
return this.list[this.currentIndex].mime === "application/pdf";
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
mounted() {
|
|
31
|
-
window.addEventListener("keyup", this.handleKey, { capture: !0 }), this.toggleIsLoading();
|
|
32
|
-
},
|
|
33
|
-
beforeDestroy() {
|
|
34
|
-
window.removeEventListener("keyup", this.handleKey, { capture: !0 });
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
onGo(i) {
|
|
38
|
-
const t = this.currentIndex + i;
|
|
39
|
-
this.list[t] && (this.currentIndex = t, this.toggleIsLoading());
|
|
40
|
-
},
|
|
41
|
-
toggleIsLoading() {
|
|
42
|
-
this.isLoading = !0, setTimeout(() => {
|
|
43
|
-
this.isLoading = !1;
|
|
44
|
-
}, 1e3);
|
|
45
|
-
},
|
|
46
|
-
handleKey(i) {
|
|
47
|
-
i.stopPropagation(), parseInt(i.keyCode, 10) === 37 && this.onGo(-1), parseInt(i.keyCode, 10) === 39 && this.onGo(1);
|
|
48
|
-
const t = i.key || i.keyCode;
|
|
49
|
-
(t === "Escape" || t === "Esc" || t === 27) && this.$emit("close");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var l = function() {
|
|
54
|
-
var t = this, e = t._self._c;
|
|
55
|
-
return e("div", { staticClass: "flex w-full flex-col", staticStyle: { height: "100%" } }, [e("div", { staticClass: "image-modal-overlay" }), e("div", { staticClass: "image-modal-nav", staticStyle: { "z-index": "2" } }, [e("div", { staticClass: "truncate-text", staticStyle: { "align-items": "center", display: "flex" } }, [e("div", { staticClass: "truncate-text" }, [t._v(t._s(t.list[t.currentIndex].name))])]), e("div", { staticStyle: { display: "flex" } }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("previous") }), expression: "$t('show', { thing: $t('previous') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex - 1] }, on: { click: function(s) {
|
|
56
|
-
return t.onGo(-1);
|
|
57
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M19 12H6M12 5l-7 7 7 7" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("next") }), expression: "$t('show', { thing: $t('next') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex + 1] }, on: { click: function(s) {
|
|
58
|
-
return t.onGo(1);
|
|
59
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M5 12h13M12 5l7 7-7 7" } })])]), e("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("download"), expression: "$t('download')" }], staticClass: "image-modal-nav-button", attrs: { href: t.list[t.currentIndex].url, target: "_blank", download: "" } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("close"), expression: "$t('close')" }], staticClass: "image-modal-nav-button", on: { click: function(s) {
|
|
60
|
-
return t.$emit("close");
|
|
61
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])])])]), e("div", { staticClass: "content-container flex w-full items-center justify-center", staticStyle: { position: "relative" }, on: { click: function(s) {
|
|
62
|
-
return t.$emit("close");
|
|
63
|
-
} } }, [t.isLoading ? e("Spinner", { staticStyle: { position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }, attrs: { size: "50px" } }) : t._e(), t.isPdf ? e("div", { staticClass: "pdf-root" }, [e("VuePdf", { staticClass: "pdf-page", attrs: { src: t.list[t.currentIndex].url }, on: { rendered: () => {
|
|
64
|
-
t.isLoading = !1;
|
|
65
|
-
} }, nativeOn: { click: function(s) {
|
|
66
|
-
s.stopPropagation();
|
|
67
|
-
} } })], 1) : t.isLoading ? t._e() : e("img", { staticClass: "modal-image", attrs: { src: t.list[t.currentIndex].url }, on: { load: function(s) {
|
|
68
|
-
t.isLoading = !1;
|
|
69
|
-
} } })], 1)]);
|
|
70
|
-
}, d = [], c = /* @__PURE__ */ o(
|
|
71
|
-
a,
|
|
72
|
-
l,
|
|
73
|
-
d,
|
|
74
|
-
!1,
|
|
75
|
-
null,
|
|
76
|
-
"76622471"
|
|
77
|
-
);
|
|
78
|
-
const p = c.exports;
|
|
79
|
-
export {
|
|
80
|
-
p as default
|
|
81
|
-
};
|
package/dist/Flag-1-HcT5Dz.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { n as r } from "./main-BL_yzf2r.js";
|
|
2
|
-
const i = {
|
|
3
|
-
name: "FlagIcon",
|
|
4
|
-
props: {
|
|
5
|
-
region: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: null
|
|
8
|
-
},
|
|
9
|
-
title: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: null
|
|
12
|
-
},
|
|
13
|
-
isSquared: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
mounted() {
|
|
19
|
-
var a, l;
|
|
20
|
-
const n = "FLAG_ICONS", e = (l = (a = this.$el).getRootNode) == null ? void 0 : l.call(a), o = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
|
|
21
|
-
if (o.querySelector(`#${n}`))
|
|
22
|
-
return;
|
|
23
|
-
const t = document.createElement("link");
|
|
24
|
-
t.id = n, t.rel = "stylesheet", t.type = "text/css", t.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", t.media = "all", o.appendChild(t);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var c = function() {
|
|
28
|
-
var e = this, s = e._self._c;
|
|
29
|
-
return e.region ? s("span", { staticClass: "fi", class: [
|
|
30
|
-
`fi-${e.region.toLowerCase()}`,
|
|
31
|
-
{
|
|
32
|
-
fis: e.isSquared
|
|
33
|
-
}
|
|
34
|
-
], attrs: { title: e.title || e.region } }) : e._e();
|
|
35
|
-
}, d = [], f = /* @__PURE__ */ r(
|
|
36
|
-
i,
|
|
37
|
-
c,
|
|
38
|
-
d,
|
|
39
|
-
!1,
|
|
40
|
-
null,
|
|
41
|
-
null
|
|
42
|
-
);
|
|
43
|
-
const u = f.exports;
|
|
44
|
-
export {
|
|
45
|
-
u as F
|
|
46
|
-
};
|