@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-DRcy9Dqb.js +101 -0
- package/dist/AnswerModal-Dc3cgkap.js +3291 -0
- package/dist/AttachmentItem-Bef5zdHr.js +171 -0
- package/dist/BaseUpload--paElAyr.js +2472 -0
- package/dist/BlockMedia-DbVE3vsb.js +103 -0
- package/dist/CCallout-81NkOge7.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
- package/dist/CDropdownItem-DvaU14-V.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
- package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
- package/dist/CPriceInput-BfWZZv0f.js +140 -0
- package/dist/CSelect-B1AAIFbK.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
- package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
- package/dist/ClientModal-D8_TPzkv.js +1181 -0
- package/dist/ColorPicker-C0OahiVg.js +1408 -0
- package/dist/CompanyModal-CjzwQU4B.js +250 -0
- package/dist/ContentWrapper-DrmiaFOz.js +265 -0
- package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
- package/dist/DocAnswer-BEsvAMEp.js +33 -0
- package/dist/DocDetails--LO0-S5d.js +448 -0
- package/dist/DocForm-D6_tGw06.js +6748 -0
- package/dist/DocFormSend-CdFL6rOD.js +171 -0
- package/dist/DocLinks-CIQFUh7c.js +36 -0
- package/dist/DocModalBase-DtPJK9sp.js +29 -0
- package/dist/DocPrint-qX88Ue2I.js +399 -0
- package/dist/DocReceipt-BbXoCmpz.js +341 -0
- package/dist/DocSendReminder-DZqOkd63.js +181 -0
- package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
- package/dist/DocTimeline-CdbSOVD1.js +537 -0
- package/dist/DocumentClient-DtTv7gkF.js +90 -0
- package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
- package/dist/DocumentLogotype-CUNzyewq.js +162 -0
- package/dist/DocumentVoided-CgDt-JFI.js +33 -0
- package/dist/EmbedInput-rPvTnpXn.js +157 -0
- package/dist/EmbedSettings-BtmFxYGB.js +103 -0
- package/dist/ErrorCallout-B6YrdUsG.js +34 -0
- package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
- package/dist/Flag-CE3K7-8a.js +41 -0
- package/dist/HeaderSettings-5QR7MmVf.js +720 -0
- package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
- package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
- package/dist/Index--gv5fH24.js +201 -0
- package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
- package/dist/Index-B7ECpXAa.js +28 -0
- package/dist/Index-BIXfUsHH.js +52 -0
- package/dist/Index-BM658CCq.js +93 -0
- package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
- package/dist/Index-BcMATT2_.js +47 -0
- package/dist/Index-BpWFU3Td.js +68 -0
- package/dist/Index-BulSI5iO.js +38 -0
- package/dist/Index-CHInIRw5.js +228 -0
- package/dist/Index-COYqsxs9.js +25 -0
- package/dist/Index-CSGk060H.js +1098 -0
- package/dist/Index-CV2O2fWT.js +21 -0
- package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
- package/dist/Index-CavttI66.js +126 -0
- package/dist/Index-CbZ65-O3.js +629 -0
- package/dist/Index-CqrTij2j.js +70 -0
- package/dist/Index-CrsGxDWC.js +16 -0
- package/dist/Index-CxY5Ii6K.js +49 -0
- package/dist/Index-D7Z2w9cd.js +163 -0
- package/dist/Index-D7ixmzBH.js +76 -0
- package/dist/Index-D7pzv-AR.js +74 -0
- package/dist/Index-D9keESQi.js +159 -0
- package/dist/Index-Dd6ueeUc.js +136 -0
- package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
- package/dist/Index-Dnmt6W0u.js +140 -0
- package/dist/Index-DtcV6rl1.js +4 -0
- package/dist/Index-DuDVafLn.js +3452 -0
- package/dist/Index-L913X8Ly.js +102 -0
- package/dist/Index-Mdn0niR_.js +28 -0
- package/dist/Index-_ellB2fs.js +363 -0
- package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
- package/dist/Index-bgKndj-l.js +39 -0
- package/dist/Index-lNYXAFUH.js +87 -0
- package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
- package/dist/InputToggleRow-BCvMVbW-.js +99 -0
- package/dist/ManualPopover-BzBvSl_x.js +57 -0
- package/dist/MediaWrapper-_LPau2Ks.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
- package/dist/PackageGroup-1X3jUipj.js +1058 -0
- package/dist/PdfTerms-Bf4TlzP5.js +34 -0
- package/dist/PdfViewer-BdhwFfc6.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
- package/dist/PriceHeader-DyC8xssf.js +488 -0
- package/dist/SearchApi-C__orGkO.js +137 -0
- package/dist/SendForm-Be8uiuaJ.js +7031 -0
- package/dist/Setup-DbXs2Zar.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
- package/dist/ThemeColorRow-BL6p09pN.js +108 -0
- package/dist/ToggleBinding-B-tVioQ9.js +44 -0
- package/dist/UploadModal-BnA1xLMy.js +134 -0
- package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
- package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
- package/dist/VideoSelectModal-BNCoMFKU.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-C1AuSpOZ.js → debounce-CBRJalZI.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
- package/dist/helpers-Vo_6Zz3M.js +44 -0
- package/dist/index-8g2jwLJx.js +513 -0
- package/dist/index-B0udVHyo.js +125 -0
- package/dist/index-D63IJVsJ.js +3525 -0
- package/dist/index-DCYCN_FR.js +508 -0
- package/dist/index-FRHGChx1.js +149 -0
- package/dist/index-HXiq8Yxs.js +270 -0
- package/dist/index-jOufDnZ8.js +188 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
- package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
- package/dist/omit-GuxX6Zt-.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-DChJiJ8d.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-m1V22cUt.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
- package/dist/tippy.esm-Dz-faEsS.js +1994 -0
- package/dist/useTermsModal-C_eLdGLi.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
- package/dist/validation-C-dQpENM.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { a } from "./publicSenderState-BujjYsZZ.js";
|
|
2
|
-
import { g as s, n as l } from "./main-WKzC-Dnu.js";
|
|
3
|
-
import { m as p, a as r } from "./vuex.esm-DKGl8mcw.js";
|
|
4
|
-
const c = {
|
|
5
|
-
name: "DocumentLogotype",
|
|
6
|
-
components: {
|
|
7
|
-
ImageUploadWrapper: () => import("./ImageUploadWrapper-Dv43rGdb.js")
|
|
8
|
-
},
|
|
9
|
-
inject: {
|
|
10
|
-
viewSettings: {
|
|
11
|
-
default: () => ({
|
|
12
|
-
canEdit: !1,
|
|
13
|
-
isPublicForm: !1
|
|
14
|
-
})
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
value: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: null
|
|
21
|
-
},
|
|
22
|
-
companyLogotype: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: null
|
|
25
|
-
},
|
|
26
|
-
showLogo: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
hasHover: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
computed: {
|
|
36
|
-
...p({
|
|
37
|
-
isPosting: "companies/isPosting"
|
|
38
|
-
}),
|
|
39
|
-
logotype() {
|
|
40
|
-
return this.value || this.companyLogotype || "";
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
...r({
|
|
45
|
-
updateCompany: s.DO_UPDATE_CURRENT_COMPANY
|
|
46
|
-
}),
|
|
47
|
-
initUpload() {
|
|
48
|
-
this.$refs.uploadWrapper && this.$refs.uploadWrapper.onClick();
|
|
49
|
-
},
|
|
50
|
-
async setLogotype({ response: e }) {
|
|
51
|
-
const { publicId: t, url: o } = e || {};
|
|
52
|
-
o && this.$emit("input", o), !this.companyLogotype && t && await this.postLogo(t);
|
|
53
|
-
},
|
|
54
|
-
async postLogo(e) {
|
|
55
|
-
if (this.isPosting)
|
|
56
|
-
return;
|
|
57
|
-
const t = { LogotypePublicId: e };
|
|
58
|
-
this.viewSettings.isPublicForm ? a({ company: t }) : await this.updateCompany({ body: t });
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var m = function() {
|
|
63
|
-
var t = this, o = t._self._c;
|
|
64
|
-
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 }) {
|
|
65
|
-
return [o("CDropdown", { attrs: { position: "is-bottom-right" }, nativeOn: { click: function(i) {
|
|
66
|
-
i.stopPropagation();
|
|
67
|
-
} } }, [o("template", { slot: "trigger" }, [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 && {
|
|
68
|
-
visibility: "hidden",
|
|
69
|
-
pointerEvents: "none"
|
|
70
|
-
}, attrs: { loading: !!n && n < 100 || t.isPosting, type: "text", size: "normal", pattern: "secondary" } }, [t._v(" " + t._s(t.$t("_common:logo").capitalize()) + " ")])], 1), o("CDropdownItem", { attrs: { value: t.showLogo, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
|
|
71
|
-
return t.$emit("update:show-logo", i);
|
|
72
|
-
} } }, [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) {
|
|
73
|
-
return t.$emit("input", "");
|
|
74
|
-
} } }, [t._v(" " + t._s(t.$t("_common:reset")) + " ")])] : t._e()], 2)];
|
|
75
|
-
} }], null, !1, 818564773) }) : t.showLogo ? o("div", { staticStyle: { display: "inline-block" } }, [o("img", { attrs: { src: t.logotype, alt: "", width: "150" } })]) : t._e();
|
|
76
|
-
}, u = [], g = /* @__PURE__ */ l(
|
|
77
|
-
c,
|
|
78
|
-
m,
|
|
79
|
-
u,
|
|
80
|
-
!1,
|
|
81
|
-
null,
|
|
82
|
-
"ad15ba8a"
|
|
83
|
-
);
|
|
84
|
-
const f = g.exports;
|
|
85
|
-
export {
|
|
86
|
-
f as default
|
|
87
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { n } from "./main-WKzC-Dnu.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,113 +0,0 @@
|
|
|
1
|
-
import { d } from "./debounce-C1AuSpOZ.js";
|
|
2
|
-
import { b as l, n as o } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const m = (t) => {
|
|
4
|
-
const i = new DOMParser().parseFromString(t, "text/html"), [a] = l(i, "body.children") || [];
|
|
5
|
-
return !a || a.tagName !== "IFRAME" ? {} : Array.from(a.attributes).reduce(
|
|
6
|
-
(s, { name: r, value: n }) => ({ ...s, [r]: n }),
|
|
7
|
-
{}
|
|
8
|
-
);
|
|
9
|
-
}, u = (t) => {
|
|
10
|
-
if (typeof t != "object" || !t)
|
|
11
|
-
return "";
|
|
12
|
-
const e = document.createElement("iframe");
|
|
13
|
-
return Object.keys(t).forEach((i) => e.setAttribute(i, t[i])), e.hasAttribute("src") ? e.outerHTML : "";
|
|
14
|
-
}, c = (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(
|
|
15
|
-
t
|
|
16
|
-
), p = {
|
|
17
|
-
name: "EmbedInput",
|
|
18
|
-
i18nOptions: {
|
|
19
|
-
namespaces: "embedInput",
|
|
20
|
-
messages: {
|
|
21
|
-
en: {
|
|
22
|
-
placeholder: "Paste embed link",
|
|
23
|
-
validations: {
|
|
24
|
-
embed: {
|
|
25
|
-
isValid: "No supported source found"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
sv: {
|
|
30
|
-
placeholder: "Klista in inbäddningslänk",
|
|
31
|
-
validations: {
|
|
32
|
-
embed: {
|
|
33
|
-
isValid: "Ingen källa kunde hittas"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
props: {
|
|
40
|
-
value: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: () => ({})
|
|
43
|
-
},
|
|
44
|
-
isDrawerMode: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
data() {
|
|
50
|
-
return {
|
|
51
|
-
isLoading: !1,
|
|
52
|
-
embed: {},
|
|
53
|
-
// TODO: could remove the template string in the input and only parse/validate input strings
|
|
54
|
-
// TODO: would
|
|
55
|
-
iFrameTplString: "",
|
|
56
|
-
inputPlaceholder: '<iframe style="border: 1px solid rgba(0, 0, 0, 0.1)...'
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
validations() {
|
|
60
|
-
return {
|
|
61
|
-
embed: { isValid: (t) => t && c(t.src) }
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
computed: {
|
|
65
|
-
messages() {
|
|
66
|
-
return {
|
|
67
|
-
embed: { isValid: this.$t("validations.embed.isValid") }
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
watch: {
|
|
72
|
-
value: {
|
|
73
|
-
immediate: !0,
|
|
74
|
-
handler(t) {
|
|
75
|
-
this.embed = Object.assign({}, t), this.iFrameTplString = u(this.embed);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
onInput: d(function(e) {
|
|
81
|
-
this.$v.$reset(), e && this.validateInput(e);
|
|
82
|
-
}, 500),
|
|
83
|
-
async validateInput(t) {
|
|
84
|
-
this.isLoading = !0, this.embed = await m(t), this.embed.src || (this.embed.src = t), this.$v.$invalid || this.$emit("input", this.embed), this.isLoading = !1, this.$v.$touch();
|
|
85
|
-
},
|
|
86
|
-
focus() {
|
|
87
|
-
this.$refs.input && this.$refs.input.focus();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var f = function() {
|
|
92
|
-
var e = this, i = e._self._c;
|
|
93
|
-
return i("CField", { style: e.isDrawerMode && {
|
|
94
|
-
display: "flex",
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
alignItems: "flex-start"
|
|
97
|
-
}, 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(a) {
|
|
98
|
-
e.iFrameTplString = a;
|
|
99
|
-
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(a) {
|
|
100
|
-
return e.validateInput(e.iFrameTplString);
|
|
101
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
|
|
102
|
-
}, h = [], b = /* @__PURE__ */ o(
|
|
103
|
-
p,
|
|
104
|
-
f,
|
|
105
|
-
h,
|
|
106
|
-
!1,
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
const v = b.exports;
|
|
111
|
-
export {
|
|
112
|
-
v as default
|
|
113
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import n from "./EmbedInput-BY-wHSfc.js";
|
|
2
|
-
import { n as l } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const o = {
|
|
4
|
-
i18nOptions: {
|
|
5
|
-
namespaces: "embedSettings",
|
|
6
|
-
messages: {
|
|
7
|
-
en: {
|
|
8
|
-
title: "Embed - iFrame",
|
|
9
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)",
|
|
10
|
-
responsiveSize: "Responsive size"
|
|
11
|
-
},
|
|
12
|
-
sv: {
|
|
13
|
-
title: "Bädda in - iFrame",
|
|
14
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)",
|
|
15
|
-
responsiveSize: "Responsiv storlek"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
name: "EmbedSettings",
|
|
20
|
-
components: {
|
|
21
|
-
EmbedInput: n
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
value: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: () => ({})
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "small"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
sizeOptions() {
|
|
35
|
-
return [
|
|
36
|
-
{
|
|
37
|
-
value: "small",
|
|
38
|
-
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>'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
value: "medium",
|
|
42
|
-
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>'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
value: "large",
|
|
46
|
-
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>'
|
|
47
|
-
}
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var r = function() {
|
|
53
|
-
var e = this, t = e._self._c;
|
|
54
|
-
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) {
|
|
55
|
-
return e.$emit("input", i);
|
|
56
|
-
} } })], 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) {
|
|
57
|
-
return t("div", { key: a, staticClass: "size-option", on: { click: function(m) {
|
|
58
|
-
return e.$emit("update:size", i);
|
|
59
|
-
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(s) } })]);
|
|
60
|
-
}), 0) : e._e()])]);
|
|
61
|
-
}, d = [], v = /* @__PURE__ */ l(
|
|
62
|
-
o,
|
|
63
|
-
r,
|
|
64
|
-
d,
|
|
65
|
-
!1,
|
|
66
|
-
null,
|
|
67
|
-
"5e441f83"
|
|
68
|
-
);
|
|
69
|
-
const z = v.exports;
|
|
70
|
-
export {
|
|
71
|
-
z as default
|
|
72
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./main-WKzC-Dnu.js";
|
|
2
|
-
const a = {
|
|
3
|
-
name: "ErrorCallout",
|
|
4
|
-
props: {
|
|
5
|
-
message: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
size: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "normal"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var s = function(r, t) {
|
|
16
|
-
return r("div", { staticClass: "flex items-center", class: [t.data.staticClass], staticStyle: { "margin-top": "calc(1 * var(--rem))" }, style: [t.data.staticStyle] }, [r("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${t.props.size}`], staticStyle: { margin: "calc(1 * var(--rem)) 0" } }, [r("CIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), r("div", [t._v(" " + t._s(t.props.message) + " ")])], 1)]);
|
|
17
|
-
}, i = [], n = /* @__PURE__ */ e(
|
|
18
|
-
a,
|
|
19
|
-
s,
|
|
20
|
-
i,
|
|
21
|
-
!0,
|
|
22
|
-
null,
|
|
23
|
-
"a90b7cb8"
|
|
24
|
-
);
|
|
25
|
-
const c = n.exports;
|
|
26
|
-
export {
|
|
27
|
-
c as E
|
|
28
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { V as n } from "./PdfViewer-CIVkvOBr.js";
|
|
2
|
-
import { n as o, S as r } from "./main-WKzC-Dnu.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-PJKrghi9.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { R as c, n as _ } from "./main-WKzC-Dnu.js";
|
|
2
|
-
var m = {
|
|
3
|
-
name: "simplebar-vue",
|
|
4
|
-
mounted: function() {
|
|
5
|
-
var e = c.getOptions(this.$refs.element.attributes);
|
|
6
|
-
this.SimpleBar = new c(this.$refs.element, e);
|
|
7
|
-
},
|
|
8
|
-
computed: {
|
|
9
|
-
scrollElement: function() {
|
|
10
|
-
return this.$refs.scrollElement;
|
|
11
|
-
},
|
|
12
|
-
contentElement: function() {
|
|
13
|
-
return this.$refs.contentElement;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}, d = m, o = function() {
|
|
17
|
-
var e = this, s = e.$createElement, r = e._self._c || s;
|
|
18
|
-
return r("div", {
|
|
19
|
-
ref: "element"
|
|
20
|
-
}, [r("div", {
|
|
21
|
-
staticClass: "simplebar-wrapper"
|
|
22
|
-
}, [e._m(0), e._v(" "), r("div", {
|
|
23
|
-
staticClass: "simplebar-mask"
|
|
24
|
-
}, [r("div", {
|
|
25
|
-
staticClass: "simplebar-offset"
|
|
26
|
-
}, [r("div", e._g({
|
|
27
|
-
ref: "scrollElement",
|
|
28
|
-
staticClass: "simplebar-content-wrapper"
|
|
29
|
-
}, Object.assign({}, e.$listeners.scroll && {
|
|
30
|
-
scroll: e.$listeners.scroll
|
|
31
|
-
})), [r("div", {
|
|
32
|
-
ref: "contentElement",
|
|
33
|
-
staticClass: "simplebar-content"
|
|
34
|
-
}, [e._t("default")], 2)])])]), e._v(" "), r("div", {
|
|
35
|
-
staticClass: "simplebar-placeholder"
|
|
36
|
-
})]), e._v(" "), e._m(1), e._v(" "), e._m(2)]);
|
|
37
|
-
}, v = [function() {
|
|
38
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
39
|
-
return s("div", {
|
|
40
|
-
staticClass: "simplebar-height-auto-observer-wrapper"
|
|
41
|
-
}, [s("div", {
|
|
42
|
-
staticClass: "simplebar-height-auto-observer"
|
|
43
|
-
})]);
|
|
44
|
-
}, function() {
|
|
45
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
46
|
-
return s("div", {
|
|
47
|
-
staticClass: "simplebar-track simplebar-horizontal"
|
|
48
|
-
}, [s("div", {
|
|
49
|
-
staticClass: "simplebar-scrollbar"
|
|
50
|
-
})]);
|
|
51
|
-
}, function() {
|
|
52
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
53
|
-
return s("div", {
|
|
54
|
-
staticClass: "simplebar-track simplebar-vertical"
|
|
55
|
-
}, [s("div", {
|
|
56
|
-
staticClass: "simplebar-scrollbar"
|
|
57
|
-
})]);
|
|
58
|
-
}];
|
|
59
|
-
o._withStripped = !0;
|
|
60
|
-
var p = void 0, u = void 0;
|
|
61
|
-
function f(t, e, s, r, n, i, l, S) {
|
|
62
|
-
var a = (typeof s == "function" ? s.options : s) || {};
|
|
63
|
-
return a.__file = "/Users/adriendenat/Sites/simplebar/packages/simplebar-vue/index.vue", a.render || (a.render = t.render, a.staticRenderFns = t.staticRenderFns, a._compiled = !0), a._scopeId = r, a;
|
|
64
|
-
}
|
|
65
|
-
var $ = f({
|
|
66
|
-
render: o,
|
|
67
|
-
staticRenderFns: v
|
|
68
|
-
}, p, d, u);
|
|
69
|
-
const h = {
|
|
70
|
-
name: "FlagIcon",
|
|
71
|
-
props: {
|
|
72
|
-
region: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: null
|
|
75
|
-
},
|
|
76
|
-
title: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: null
|
|
79
|
-
},
|
|
80
|
-
isSquared: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: !1
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
mounted() {
|
|
86
|
-
var i, l;
|
|
87
|
-
const t = "FLAG_ICONS", e = (l = (i = this.$el).getRootNode) == null ? void 0 : l.call(i), r = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
|
|
88
|
-
if (r.querySelector(`#${t}`))
|
|
89
|
-
return;
|
|
90
|
-
const n = document.createElement("link");
|
|
91
|
-
n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", r.appendChild(n);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var b = function() {
|
|
95
|
-
var e = this, s = e._self._c;
|
|
96
|
-
return e.region ? s("span", { staticClass: "fi", class: [
|
|
97
|
-
`fi-${e.region.toLowerCase()}`,
|
|
98
|
-
{
|
|
99
|
-
fis: e.isSquared
|
|
100
|
-
}
|
|
101
|
-
], attrs: { title: e.title || e.region } }) : e._e();
|
|
102
|
-
}, g = [], C = /* @__PURE__ */ _(
|
|
103
|
-
h,
|
|
104
|
-
b,
|
|
105
|
-
g,
|
|
106
|
-
!1,
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
const w = C.exports;
|
|
111
|
-
export {
|
|
112
|
-
w as F,
|
|
113
|
-
$ as s
|
|
114
|
-
};
|