@cling-se/widget 0.9.23 → 0.9.25
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-49655a64.js → AddClientCallout-b8390699.js} +5 -5
- package/dist/{AnswerModal-6f4004e1.js → AnswerModal-87be4c0b.js} +84 -27
- package/dist/{AttachmentItem-e3bfcd82.js → AttachmentItem-24ad77d3.js} +7 -5
- package/dist/{BaseDatePicker-d04f761f.js → BaseDatePicker-5a89a264.js} +1 -1
- package/dist/{BaseInput-e14e8b12.js → BaseInput-f180db14.js} +6 -2
- package/dist/{BaseUpload-0fa8ad72.js → BaseUpload-529d21bb.js} +28 -11
- package/dist/{BlockMedia-b49a63f3.js → BlockMedia-93ee8699.js} +5 -3
- package/dist/{CCallout-baeb732f.js → CCallout-1c3a4b40.js} +6 -9
- package/dist/{CDropdownItem-e0cecd02.js → CDropdownItem-109be2e2.js} +3 -3
- package/dist/{CField-c10f5951.js → CField-d2390b15.js} +18 -4
- package/dist/{CPhoneFormat-636103a1.js → CPhoneFormat-570a91d9.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-d964f857.js → CSlider.vue_vue_type_style_index_0_lang-49fcd521.js} +4 -2
- package/dist/{ClientAutocomplete-28bf2076.js → ClientAutocomplete-ee0b54d5.js} +3 -3
- package/dist/{ClientModal-b94206f4.js → ClientModal-dc178083.js} +34 -19
- package/dist/{ColorPicker-b5a7f700.js → ColorPicker-94e3b1d4.js} +2 -2
- package/dist/{CompanyModal-c47e7c55.js → CompanyModal-6ef7dcdc.js} +8 -5
- package/dist/{ContentWrapper-8293109f.js → ContentWrapper-95159ca6.js} +40 -27
- package/dist/{CoverBlockSettings-2242d653.js → CoverBlockSettings-647e6b18.js} +49 -34
- package/dist/{DocAnswer-75f53dd5.js → DocAnswer-299edc71.js} +4 -4
- package/dist/{DocDetails-1bdecff4.js → DocDetails-c740d0a6.js} +71 -46
- package/dist/{DocForm-263bac20.js → DocForm-42c0c67c.js} +515 -291
- package/dist/{DocFormSend-5b098ca6.js → DocFormSend-1f9c446f.js} +18 -18
- package/dist/{DocLinks-500b61b0.js → DocLinks-2c63c0dc.js} +2 -2
- package/dist/{DocModalBase-b64e792b.js → DocModalBase-62c42e04.js} +4 -4
- package/dist/{DocPrint-555475c6.js → DocPrint-cea9de40.js} +2 -2
- package/dist/{DocReceipt-5a393f79.js → DocReceipt-61b17b52.js} +33 -10
- package/dist/{DocSendReminder-8d875174.js → DocSendReminder-d69f4a3f.js} +30 -5
- package/dist/{DocTextEditor-7fd7ca5f.js → DocTextEditor-e6008feb.js} +86 -37
- package/dist/{DocTimeline-0273acd1.js → DocTimeline-480b7adf.js} +11 -2
- package/dist/{DocumentClient-342454c2.js → DocumentClient-6e36a622.js} +7 -7
- package/dist/{DocumentLayout-00ec1c6f.js → DocumentLayout-81ae175c.js} +31 -11
- package/dist/{DocumentLogotype-137fd8f5.js → DocumentLogotype-dea21bad.js} +8 -8
- package/dist/{DocumentVoided-584cbee7.js → DocumentVoided-1b3a2ab5.js} +1 -1
- package/dist/{EmbedInput-19362c0b.js → EmbedInput-fbbf12f1.js} +2 -2
- package/dist/{EmbedSettings-cbffd133.js → EmbedSettings-1063c1e4.js} +7 -7
- package/dist/ErrorCallout-82e50910.js +30 -0
- package/dist/{FilePreviewModal-80a5f1fc.js → FilePreviewModal-dc188de1.js} +6 -6
- package/dist/{HeaderSettings-e5e52b5a.js → HeaderSettings-663e5b4f.js} +65 -63
- package/dist/{ImageSelectModal-f54699a2.js → ImageSelectModal-a76f7e4b.js} +27 -27
- package/dist/{ImageUploadWrapper-d4291dd3.js → ImageUploadWrapper-1c6f0ae4.js} +11 -5
- package/dist/{Index-468190f0.js → Index-0078c287.js} +15 -15
- package/dist/{Index-5093d646.js → Index-0428c10a.js} +2 -2
- package/dist/{Index-29147f73.js → Index-0a6802ca.js} +51 -43
- package/dist/{Index-4c78a308.js → Index-12f4ded1.js} +24 -17
- package/dist/{Index-a79cd9b6.js → Index-18c5bc6b.js} +6 -6
- package/dist/{Index-bf2ed6a3.js → Index-1914be9d.js} +3 -3
- package/dist/{Index-8ef32146.js → Index-2c3b5b59.js} +20 -16
- package/dist/{Index-d6635896.js → Index-3f3c03a0.js} +20 -16
- package/dist/{Index-0eb9d45b.js → Index-4b1074d0.js} +13 -9
- package/dist/{Index-7fe05fe5.js → Index-58ee00b1.js} +3 -3
- package/dist/{Index-d60eb16f.js → Index-5a61849b.js} +32 -20
- package/dist/{Index-4df3c1d2.js → Index-5fc2d521.js} +300 -147
- package/dist/{Index-b66d1e1a.js → Index-6fe85402.js} +4 -4
- package/dist/Index-7c14fd96.js +28 -0
- package/dist/{Index-64236029.js → Index-81c49dd8.js} +6 -9
- package/dist/{Index-96725e56.js → Index-90cc1544.js} +7 -7
- package/dist/{Index-843f81bd.js → Index-98237ab3.js} +17 -12
- package/dist/{Index-f640eb29.js → Index-a7e8812e.js} +2 -2
- package/dist/{Index-630c21f5.js → Index-ad36c47b.js} +13 -11
- package/dist/{Index-e813c8cd.js → Index-aea14240.js} +2 -2
- package/dist/{Index-0f2bf3b1.js → Index-b1f07b87.js} +13 -13
- package/dist/{Index-c89d17d9.js → Index-b457cd00.js} +17 -17
- package/dist/{Index-12a6485f.js → Index-c0dd3309.js} +3 -3
- package/dist/{Index-aad34e7e.js → Index-c1b546ad.js} +13 -15
- package/dist/{Index-7c60cb32.js → Index-c1b73537.js} +56 -31
- package/dist/{Index-dbeaf863.js → Index-c2ded827.js} +9 -10
- package/dist/{Index-a3ee21e6.js → Index-ca9d1747.js} +4 -4
- package/dist/{Index-a36c3418.js → Index-cb5b055d.js} +2 -2
- package/dist/{Index-9afa091c.js → Index-cea034a9.js} +13 -11
- package/dist/{Index-7dec77f5.js → Index-e63f7ce8.js} +21 -18
- package/dist/{Index-bb62e92d.js → Index-f05733c2.js} +22 -27
- package/dist/{Index-16155aba.js → Index-f62acccc.js} +7 -7
- package/dist/{Index-bf0e9351.js → Index-f9bbee77.js} +2 -2
- package/dist/{Index-0b1a9238.js → Index-ffedf35a.js} +4 -4
- package/dist/{InputToggleRow-40b7b57e.js → InputToggleRow-176f3685.js} +4 -4
- package/dist/{IsPremiumPreStep-d2ceb183.js → IsPremiumPreStep-f3040c7a.js} +81 -36
- package/dist/{ManualPopover-58c3f059.js → ManualPopover-b7c65a0c.js} +5 -2
- package/dist/{MediaWrapper-0e3ff436.js → MediaWrapper-d1f91245.js} +3 -3
- package/dist/{NotBindingText-38e6e74c.js → NotBindingText-00d1b175.js} +2 -2
- package/dist/{PackageGroup-6e6dd719.js → PackageGroup-89033998.js} +184 -69
- package/dist/{PdfTerms-3be0f8d1.js → PdfTerms-0e214875.js} +8 -8
- package/dist/{PdfViewer-991eb731.js → PdfViewer-00d4de8d.js} +2 -2
- package/dist/{PlainHtml-4aaf6438.js → PlainHtml-00ce6fd0.js} +1 -1
- package/dist/{PriceHeader-f3e7b525.js → PriceHeader-553f4ff0.js} +48 -32
- package/dist/{SearchApi-2523a5fb.js → SearchApi-e5cde5cf.js} +40 -20
- package/dist/{Setup-2849b519.js → Setup-7f309cf0.js} +1 -1
- package/dist/{TermsSettings-6d3dfe8d.js → TermsSettings-74d7c2d9.js} +11 -11
- package/dist/{ThemeColorRow-a33d04b5.js → ThemeColorRow-0b7ad102.js} +4 -4
- package/dist/{ToggleBinding-7c726915.js → ToggleBinding-33b62557.js} +3 -3
- package/dist/{UploadModal-814fc3af.js → UploadModal-6f43c373.js} +16 -14
- package/dist/{VideoPlayerInput-fa0774c1.js → VideoPlayerInput-81e64059.js} +3 -3
- package/dist/{VideoPlayerSettings-ff82938f.js → VideoPlayerSettings-f3445401.js} +5 -5
- package/dist/{VideoSelectModal-7b213a09.js → VideoSelectModal-736176ac.js} +32 -36
- package/dist/{answerDocumentMixin-b2488be9.js → answerDocumentMixin-0b94b90e.js} +3 -3
- package/dist/{debounce-0451fa9d.js → debounce-9410d5d6.js} +1 -1
- package/dist/{focusDrawerMixin-0d406532.js → focusDrawerMixin-14a97cd3.js} +1 -1
- package/dist/{formComponentsInstall-9c59efba.js → formComponentsInstall-6a61db21.js} +210 -168
- package/dist/{formDrawerState-6c57d51e.js → formDrawerState-b23639bd.js} +1 -1
- package/dist/{formValidationMixin-7603171e.js → formValidationMixin-047668c3.js} +1 -1
- package/dist/{image-58c45661.js → image-cd324ded.js} +1 -1
- package/dist/{index-47e427b4.js → index-22c9f370.js} +8 -6
- package/dist/{index-b20167b3.js → index-3003bff6.js} +4 -4
- package/dist/{index-cf014fd4.js → index-569793de.js} +2 -2
- package/dist/{index-0c493549.js → index-a62beb97.js} +17 -9
- package/dist/{index-4afc771b.js → index-ad0c2be7.js} +1 -1
- package/dist/{index-c0b45aa7.js → index-b937c6d2.js} +12 -12
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +96 -67
- package/dist/{main-8d566a02.js → main-4f27b552.js} +137 -80
- package/dist/{mapFormMixin-4446a1bd.js → mapFormMixin-9f326a09.js} +1 -1
- package/dist/{publicSenderState-02c0c9eb.js → publicSenderState-ec8a9ad6.js} +1 -1
- package/dist/{simplebar.min-d30d6e1f.js → simplebar.min-c555666e.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-e04cc32f.js → template-70f4518f.js} +7 -7
- package/dist/{throttle-b0a5ba09.js → throttle-a0a6c1c7.js} +2 -2
- package/dist/{tinycolor-c6f29f33.js → tinycolor-2fdfb0b3.js} +1 -1
- package/dist/{tippy.esm-2cb937d0.js → tippy.esm-e8cf7685.js} +8 -8
- package/dist/{utils-36338df7.js → utils-805171cf.js} +1 -1
- package/dist/{vuedraggable.umd-a0d21ce9.js → vuedraggable.umd-79e4b33e.js} +1 -1
- package/package.json +2 -2
- package/dist/ErrorCallout-4ce34a95.js +0 -30
- package/dist/Index-66295ea9.js +0 -28
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { m as c } from "./mapFormMixin-
|
|
2
|
-
import { B as l } from "./BlockMedia-
|
|
3
|
-
import { n, b as r, u as d, a6 as m } from "./main-
|
|
4
|
-
import { T as u } from "./DocTextEditor-
|
|
1
|
+
import { m as c } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { B as l } from "./BlockMedia-93ee8699.js";
|
|
3
|
+
import { n, b as r, u as d, a6 as m } from "./main-4f27b552.js";
|
|
4
|
+
import { T as u } from "./DocTextEditor-e6008feb.js";
|
|
5
5
|
import { i as p } from "./i18nMessages-45c6bfd6.js";
|
|
6
|
-
import { t as _ } from "./tinycolor-
|
|
6
|
+
import { t as _ } from "./tinycolor-2fdfb0b3.js";
|
|
7
7
|
import { s as y } from "./dom-962579a6.js";
|
|
8
8
|
import "./color-71c20583.js";
|
|
9
|
-
import "./tippy.esm-
|
|
10
|
-
import "./ColorPicker-
|
|
11
|
-
import "./DocumentLayout-
|
|
12
|
-
import "./debounce-
|
|
13
|
-
import "./CDropdownItem-
|
|
14
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
9
|
+
import "./tippy.esm-e8cf7685.js";
|
|
10
|
+
import "./ColorPicker-94e3b1d4.js";
|
|
11
|
+
import "./DocumentLayout-81ae175c.js";
|
|
12
|
+
import "./debounce-9410d5d6.js";
|
|
13
|
+
import "./CDropdownItem-109be2e2.js";
|
|
14
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-49fcd521.js";
|
|
15
15
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
16
|
-
import "./ManualPopover-
|
|
16
|
+
import "./ManualPopover-b7c65a0c.js";
|
|
17
17
|
const h = {
|
|
18
18
|
name: "SummaryTop",
|
|
19
19
|
i18nOptions: {
|
|
@@ -22,7 +22,7 @@ const h = {
|
|
|
22
22
|
},
|
|
23
23
|
components: {
|
|
24
24
|
TextEditor: u,
|
|
25
|
-
DocumentLogotype: () => import("./DocumentLogotype-
|
|
25
|
+
DocumentLogotype: () => import("./DocumentLogotype-dea21bad.js")
|
|
26
26
|
},
|
|
27
27
|
inject: ["parentSize"],
|
|
28
28
|
mixins: [c([])],
|
|
@@ -88,7 +88,7 @@ const h = {
|
|
|
88
88
|
};
|
|
89
89
|
var v = function() {
|
|
90
90
|
var t = this, e = t._self._c;
|
|
91
|
-
return e("section", { staticClass: "flex justify-center w-full summary-top" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber))]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$t("name.placeholder"), extensions: {
|
|
91
|
+
return e("section", { staticClass: "flex justify-center w-full summary-top" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber) + " ")]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$t("name.placeholder"), extensions: {
|
|
92
92
|
bulletList: !1,
|
|
93
93
|
heading: [1, 2, 3],
|
|
94
94
|
bold: !1,
|
|
@@ -98,14 +98,14 @@ var v = function() {
|
|
|
98
98
|
table: !1
|
|
99
99
|
}, unstyled: "", static: "" }, on: { input: function(s) {
|
|
100
100
|
return t.$emit("update:doc-name", s);
|
|
101
|
-
} } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex justify-between w-full" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("document").capitalize()))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t(`series.${t.docType}`).capitalize()))])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("time.estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime))])]) : t._e()] : t._e()], 2)])]);
|
|
101
|
+
} } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex justify-between w-full" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(" " + t._s(t._document.$t("document").capitalize()) + " ")]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t(`series.${t.docType}`).capitalize()) + " ")])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("time.estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime) + " ")])]) : t._e()] : t._e()], 2)])]);
|
|
102
102
|
}, g = [], f = /* @__PURE__ */ n(
|
|
103
103
|
h,
|
|
104
104
|
v,
|
|
105
105
|
g,
|
|
106
106
|
!1,
|
|
107
107
|
null,
|
|
108
|
-
"
|
|
108
|
+
"53650981",
|
|
109
109
|
null,
|
|
110
110
|
null
|
|
111
111
|
);
|
|
@@ -176,10 +176,19 @@ const x = {
|
|
|
176
176
|
priceDeductionVatString() {
|
|
177
177
|
let i = "";
|
|
178
178
|
if (this.isReverseVat && !this.showIncVat) {
|
|
179
|
-
const t = this.priceFormat(0, {
|
|
179
|
+
const t = this.priceFormat(0, {
|
|
180
|
+
currency: this.currency,
|
|
181
|
+
showZero: !0
|
|
182
|
+
});
|
|
180
183
|
return i = this._document.$t("summaryBottom.reverseVat", { amount: t }), i;
|
|
181
184
|
}
|
|
182
|
-
return this.houseWorkType && (i = this._document.$t("deduction.afterType", {
|
|
185
|
+
return this.houseWorkType && (i = this._document.$t("deduction.afterType", {
|
|
186
|
+
type: `${this.houseWorkType}_percentage`
|
|
187
|
+
})), this.showIncVat && (i += ` ${this._document.$t("vat.incVat", {
|
|
188
|
+
thing: this._document.$t(`vat.${this.vatType}`)
|
|
189
|
+
})}`), this.showIncVat || (i += ` ${this._document.$t("vat.exVat", {
|
|
190
|
+
thing: this._document.$t(`vat.${this.vatType}`)
|
|
191
|
+
})}`), i.capitalize();
|
|
183
192
|
},
|
|
184
193
|
backgroundSecondary() {
|
|
185
194
|
if (!this.isSmallScreen)
|
|
@@ -212,19 +221,19 @@ var b = function() {
|
|
|
212
221
|
overflow: "hidden",
|
|
213
222
|
padding: 0
|
|
214
223
|
}
|
|
215
|
-
] }, [t.options.length ? e("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [e("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [t._v(t._s(t._document.$t("price.proposal")))]), e("div", [t._v(t._s(t._document.$t("summaryBottom.chooseFrom")))])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [t.base ? e("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "calc(1 * var(--rem)) calc(1 * var(--rem))", "text-align": "left" } }, [e("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [t._v(t._s(t.priceFormat(t.base.prices.total, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })))]), e("div", [t._v("+ " + t._s(t._document.$tc("summaryBottom.option", { count: t.options.length })))])]) : e("div", { staticStyle: { padding: "calc(2 * var(--rem))", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "calc(2.5 * var(--rem))" } }, [t._v(" " + t._s(t._document.$t("summaryBottom.noOfOptions", { count: t.options.length })) + " ")])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.4)", overflow: "hidden", width: "calc(1.5 * var(--rem))", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center", height: "100%", color: "hsla(0, 0%, 100%, 0.2)" } })]) : e("div", { staticClass: "flex justify-between w-full", class: [
|
|
224
|
+
] }, [t.options.length ? e("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [e("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [t._v(" " + t._s(t._document.$t("price.proposal")) + " ")]), e("div", [t._v(t._s(t._document.$t("summaryBottom.chooseFrom")))])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [t.base ? e("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "calc(1 * var(--rem)) calc(1 * var(--rem))", "text-align": "left" } }, [e("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [t._v(" " + t._s(t.priceFormat(t.base.prices.total, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")]), e("div", [t._v(" + " + t._s(t._document.$tc("summaryBottom.option", { count: t.options.length })) + " ")])]) : e("div", { staticStyle: { padding: "calc(2 * var(--rem))", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "calc(2.5 * var(--rem))" } }, [t._v(" " + t._s(t._document.$t("summaryBottom.noOfOptions", { count: t.options.length })) + " ")])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.4)", overflow: "hidden", width: "calc(1.5 * var(--rem))", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center", height: "100%", color: "hsla(0, 0%, 100%, 0.2)" } })]) : e("div", { staticClass: "flex justify-between w-full", class: [
|
|
216
225
|
{
|
|
217
226
|
column: t.isSmallScreen,
|
|
218
227
|
sm: t.isSmallScreen
|
|
219
228
|
}
|
|
220
|
-
], staticStyle: { position: "relative" } }, [e("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": t.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [t.backgroundSecondary] }, [e("div", { staticClass: "price-type-string data-text" }, [t._v(" " + t._s(t.priceTypeString) + " ")]), t.isSmallScreen ? t._e() : e("div", { staticClass: "price-deduction-text" }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")])]), t.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? e("div", { staticClass: "open-acc-wrapper" }, [t.openAccMaxPrice ? e("div", { staticClass: "open-acc-item" }, [e("div", [t._v(t._s(t._document.$t("price.maxPrice").capitalize()) + " " + t._s(t._document.$t("vat.exVat", { thing: t._document.$t(`vat.${t.vatType}`) })) + ":")]), e("div", [t._v(t._s(t.priceFormat(t.openAccMaxPrice, { currency: t.currency })))])]) : t._e(), e("div", { staticClass: "open-acc-link" }, [t._v(" " + t._s(t._document.$t("see").capitalize()) + " "), e("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: t.scrollToPricing } }, [e("u", [t._v(t._s(t._document.$t("price.price_plural")))])]), t._v(" " + t._s(t._document.$t("summaryBottom.forDetails")) + " ")])]) : e("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !t.isSmallScreen }] }, [e("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [t._v(" " + t._s(t.priceType.includes("approx") ? t._document.$t("approx").capitalize() : "") + " " + t._s(t.priceFormat(t.priceTotal, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), t.isSmallScreen ? e("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")]) : t._e()])])]);
|
|
229
|
+
], staticStyle: { position: "relative" } }, [e("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": t.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [t.backgroundSecondary] }, [e("div", { staticClass: "price-type-string data-text" }, [t._v(" " + t._s(t.priceTypeString) + " ")]), t.isSmallScreen ? t._e() : e("div", { staticClass: "price-deduction-text" }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")])]), t.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? e("div", { staticClass: "open-acc-wrapper" }, [t.openAccMaxPrice ? e("div", { staticClass: "open-acc-item" }, [e("div", [t._v(" " + t._s(t._document.$t("price.maxPrice").capitalize()) + " " + t._s(t._document.$t("vat.exVat", { thing: t._document.$t(`vat.${t.vatType}`) })) + ": ")]), e("div", [t._v(t._s(t.priceFormat(t.openAccMaxPrice, { currency: t.currency })))])]) : t._e(), e("div", { staticClass: "open-acc-link" }, [t._v(" " + t._s(t._document.$t("see").capitalize()) + " "), e("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: t.scrollToPricing } }, [e("u", [t._v(t._s(t._document.$t("price.price_plural")))])]), t._v(" " + t._s(t._document.$t("summaryBottom.forDetails")) + " ")])]) : e("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !t.isSmallScreen }] }, [e("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [t._v(" " + t._s(t.priceType.includes("approx") ? t._document.$t("approx").capitalize() : "") + " " + t._s(t.priceFormat(t.priceTotal, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), t.isSmallScreen ? e("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")]) : t._e()])])]);
|
|
221
230
|
}, C = [], $ = /* @__PURE__ */ n(
|
|
222
231
|
x,
|
|
223
232
|
b,
|
|
224
233
|
C,
|
|
225
234
|
!1,
|
|
226
235
|
null,
|
|
227
|
-
"
|
|
236
|
+
"459417ae",
|
|
228
237
|
null,
|
|
229
238
|
null
|
|
230
239
|
);
|
|
@@ -236,14 +245,16 @@ const T = {
|
|
|
236
245
|
SummaryBottom: w,
|
|
237
246
|
BlockMedia: l
|
|
238
247
|
},
|
|
239
|
-
mixins: [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
mixins: [
|
|
249
|
+
c([
|
|
250
|
+
"media",
|
|
251
|
+
"backgroundColor",
|
|
252
|
+
"documentName",
|
|
253
|
+
"showPriceSummary",
|
|
254
|
+
"showLogo",
|
|
255
|
+
"logotype"
|
|
256
|
+
])
|
|
257
|
+
],
|
|
247
258
|
props: {
|
|
248
259
|
_document: {
|
|
249
260
|
type: Object,
|
|
@@ -265,7 +276,10 @@ const T = {
|
|
|
265
276
|
return this.documentName || `<p data-typography="title">${((i = this._document.data) == null ? void 0 : i.name) || ""}</p>`;
|
|
266
277
|
},
|
|
267
278
|
set(i) {
|
|
268
|
-
this.documentName = i, this.$emit("input", {
|
|
279
|
+
this.documentName = i, this.$emit("input", {
|
|
280
|
+
key: "data.name",
|
|
281
|
+
value: m(i).trim().slice(0, 255)
|
|
282
|
+
});
|
|
269
283
|
}
|
|
270
284
|
},
|
|
271
285
|
company() {
|
|
@@ -300,7 +314,9 @@ const T = {
|
|
|
300
314
|
options: e.filter(({ toggable: a }) => a).map(({ prices: a }) => ({ prices: a }))
|
|
301
315
|
} : i = {
|
|
302
316
|
...i,
|
|
303
|
-
show: t && this._document.readPrices && (this.prices.total || this.prices.type.some(
|
|
317
|
+
show: t && this._document.readPrices && (this.prices.total || this.prices.type.some(
|
|
318
|
+
(a) => ["openAccMaxPrice", "openAcc"].includes(a)
|
|
319
|
+
)),
|
|
304
320
|
base: { prices: this.prices }
|
|
305
321
|
}, this.canEdit && t && (i.show = !0), i.documentCurrency || (i.show = !1), i;
|
|
306
322
|
}
|
|
@@ -330,7 +346,7 @@ var k = function() {
|
|
|
330
346
|
A,
|
|
331
347
|
!1,
|
|
332
348
|
null,
|
|
333
|
-
"
|
|
349
|
+
"7bb7b998",
|
|
334
350
|
null,
|
|
335
351
|
null
|
|
336
352
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as u, p as h, f, i as d, n as m } from "./main-
|
|
2
|
-
import { d as p } from "./debounce-
|
|
1
|
+
import { g as u, p as h, f, i as d, n as m } from "./main-4f27b552.js";
|
|
2
|
+
import { d as p } from "./debounce-9410d5d6.js";
|
|
3
3
|
import { m as y, a as g } from "./vuex.esm-4a0fff7c.js";
|
|
4
4
|
const A = {
|
|
5
5
|
name: "SearchApi",
|
|
@@ -36,7 +36,11 @@ const A = {
|
|
|
36
36
|
can: "application/can"
|
|
37
37
|
}),
|
|
38
38
|
typesToFetch() {
|
|
39
|
-
return Object.keys(this.customSearch).length ? Object.keys(this.customSearch).filter(
|
|
39
|
+
return Object.keys(this.customSearch).length ? Object.keys(this.customSearch).filter(
|
|
40
|
+
(e) => this.customSearch[e]
|
|
41
|
+
) : Object.keys(this.defaultSearch).filter(
|
|
42
|
+
(e) => this.defaultSearch[e]
|
|
43
|
+
);
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
methods: {
|
|
@@ -47,23 +51,30 @@ const A = {
|
|
|
47
51
|
return e === "invoice" ? this.can("invoices", "read") : e === "endCustomer" ? this.can("endCustomers", "read") : e === "user" ? this.can("users", "modify") : !0;
|
|
48
52
|
},
|
|
49
53
|
async fetch({ query: e, start: a = null, end: r = null }) {
|
|
50
|
-
const t = this.typesToFetch.reduce(
|
|
54
|
+
const t = this.typesToFetch.reduce(
|
|
55
|
+
(n, c) => ({ ...n, [c]: [] }),
|
|
56
|
+
{}
|
|
57
|
+
), s = e.toLowerCase();
|
|
51
58
|
if (this.emptyQuery && s && s.startsWith(this.emptyQuery) || (this.emptyQuery = null, this.hasSearchedAll = !0, !s))
|
|
52
59
|
return t;
|
|
53
60
|
try {
|
|
54
61
|
const n = [], c = Object.keys(this.defaultSearch);
|
|
55
62
|
(this.typesToFetch || []).forEach((l) => {
|
|
56
|
-
c.includes(l) && n.push(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
c.includes(l) && n.push(
|
|
64
|
+
(async () => {
|
|
65
|
+
let o = [];
|
|
66
|
+
l === "document" ? o = await this.fetchDocuments(s, a, r) : l === "user" ? o = await this.fetchUsers(s, a, r) : l === "extensionArticle" ? o = await this.fetchExtensionArticles(s, a, r) : o = await this.fetchType(l, s, a, r), t[l] = o;
|
|
67
|
+
})()
|
|
68
|
+
);
|
|
60
69
|
}), await Promise.all(n);
|
|
61
70
|
} catch (n) {
|
|
62
71
|
throw n;
|
|
63
72
|
} finally {
|
|
64
73
|
this.isLoading = !1;
|
|
65
74
|
}
|
|
66
|
-
return Object.keys(t).every(
|
|
75
|
+
return Object.keys(t).every(
|
|
76
|
+
(n) => t[n].length === 0
|
|
77
|
+
) && this.hasSearchedAll && (this.emptyQuery = s), t;
|
|
67
78
|
},
|
|
68
79
|
async fetchType(e, a, r, t) {
|
|
69
80
|
if (!this.canFetchType(e))
|
|
@@ -89,7 +100,11 @@ const A = {
|
|
|
89
100
|
{ "docNumber.value": { $regex: t, $options: "i" } },
|
|
90
101
|
{
|
|
91
102
|
clients: {
|
|
92
|
-
$elemMatch: {
|
|
103
|
+
$elemMatch: {
|
|
104
|
+
$or: ["name", "email", "socialNo", "orgNo"].map((c) => ({
|
|
105
|
+
[c]: { $regex: t, $options: "i" }
|
|
106
|
+
}))
|
|
107
|
+
}
|
|
93
108
|
}
|
|
94
109
|
}
|
|
95
110
|
]
|
|
@@ -105,17 +120,22 @@ const A = {
|
|
|
105
120
|
},
|
|
106
121
|
async fetchExtensionArticles(e, a, r) {
|
|
107
122
|
const t = [];
|
|
108
|
-
return await Promise.all(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
123
|
+
return await Promise.all(
|
|
124
|
+
this.allAuthenticatedCRMs.map(async (s) => {
|
|
125
|
+
try {
|
|
126
|
+
if (s === "pipedrive" && e.length < 2) {
|
|
127
|
+
this.hasSearchedAll = !1;
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const { data: i } = await d.search(s, {
|
|
131
|
+
query: e,
|
|
132
|
+
type: "article"
|
|
133
|
+
});
|
|
134
|
+
i && Array.isArray(i) && t.push(...i);
|
|
135
|
+
} catch {
|
|
113
136
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} catch {
|
|
117
|
-
}
|
|
118
|
-
})), t;
|
|
137
|
+
})
|
|
138
|
+
), t;
|
|
119
139
|
},
|
|
120
140
|
// eslint-disable-next-line object-curly-newline
|
|
121
141
|
triggerSearch: p(async function({ q: a, cb: r, start: t, end: s }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as m, B as o, n as v } from "./main-
|
|
2
|
-
import { m as c } from "./mapFormMixin-
|
|
3
|
-
import g from "./Index-
|
|
4
|
-
import "./DocModalBase-
|
|
5
|
-
import "./DocumentLayout-
|
|
6
|
-
import "./debounce-
|
|
7
|
-
import "./CDropdownItem-
|
|
1
|
+
import { f as m, B as o, n as v } from "./main-4f27b552.js";
|
|
2
|
+
import { m as c } from "./mapFormMixin-9f326a09.js";
|
|
3
|
+
import g from "./Index-4b1074d0.js";
|
|
4
|
+
import "./DocModalBase-62c42e04.js";
|
|
5
|
+
import "./DocumentLayout-81ae175c.js";
|
|
6
|
+
import "./debounce-9410d5d6.js";
|
|
7
|
+
import "./CDropdownItem-109be2e2.js";
|
|
8
8
|
const p = {
|
|
9
9
|
i18nOptions: {
|
|
10
10
|
namespaces: "terms",
|
|
@@ -92,17 +92,17 @@ var u = function() {
|
|
|
92
92
|
} } }, [t._v(t._s(t.$t("notSet")))]), t.terms.ids.length ? t._e() : e("CDropdownItem", { attrs: { disabled: "" } }, [t._v(t._s(t.$t("noResults")))])], 2), t.viewSettings.isPublicForm ? e("CCallout", { staticStyle: { margin: "1em 0" }, attrs: { title: t.$t("publicFormCalloutTitle"), size: "small" } }, [t._v(" " + t._s(t.$t("publicFormCallout")) + " ")]) : t._e(), t.term ? e("TermsDisclaimer", { attrs: { _document: t._document, "term-type": t.term.type, href: t.term.href, text: t.term.text, file: t.term.file }, scopedSlots: t._u([{ key: "default", fn: function({ openTerms: a }) {
|
|
93
93
|
return [e("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "secondary", size: "small", "icon-left": "eye" }, on: { click: a } }, [t._v(" " + t._s(t.$t("show")) + " ")])];
|
|
94
94
|
} }], null, !1, 1475186016) }) : t._e()], 1);
|
|
95
|
-
},
|
|
95
|
+
}, h = [], f = /* @__PURE__ */ v(
|
|
96
96
|
p,
|
|
97
97
|
u,
|
|
98
|
-
|
|
98
|
+
h,
|
|
99
99
|
!1,
|
|
100
100
|
null,
|
|
101
|
-
"
|
|
101
|
+
"ca7e6a3c",
|
|
102
102
|
null,
|
|
103
103
|
null
|
|
104
104
|
);
|
|
105
|
-
const S =
|
|
105
|
+
const S = f.exports;
|
|
106
106
|
export {
|
|
107
107
|
S as default
|
|
108
108
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as n } from "./color-71c20583.js";
|
|
2
|
-
import { C as l } from "./ColorPicker-
|
|
3
|
-
import { M as s } from "./ManualPopover-
|
|
4
|
-
import { n as a } from "./main-
|
|
2
|
+
import { C as l } from "./ColorPicker-94e3b1d4.js";
|
|
3
|
+
import { M as s } from "./ManualPopover-b7c65a0c.js";
|
|
4
|
+
import { n as a } from "./main-4f27b552.js";
|
|
5
5
|
const i = {
|
|
6
6
|
name: "ThemeColorRow",
|
|
7
7
|
components: {
|
|
@@ -55,7 +55,7 @@ var c = function() {
|
|
|
55
55
|
p,
|
|
56
56
|
!1,
|
|
57
57
|
null,
|
|
58
|
-
"
|
|
58
|
+
"20910178",
|
|
59
59
|
null,
|
|
60
60
|
null
|
|
61
61
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-
|
|
2
|
-
import { I as t } from "./InputToggleRow-
|
|
3
|
-
import { n as l } from "./main-
|
|
1
|
+
import { m as i } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { I as t } from "./InputToggleRow-176f3685.js";
|
|
3
|
+
import { n as l } from "./main-4f27b552.js";
|
|
4
4
|
const s = {
|
|
5
5
|
name: "ToggleBinding",
|
|
6
6
|
i18nOptions: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import l from "./Index-
|
|
2
|
-
import { f as o, h as c, D as d, n as m } from "./main-
|
|
1
|
+
import l from "./Index-cb5b055d.js";
|
|
2
|
+
import { f as o, h as c, D as d, n as m } from "./main-4f27b552.js";
|
|
3
3
|
import { m as p } from "./vuex.esm-4a0fff7c.js";
|
|
4
|
-
import "./tinycolor-
|
|
4
|
+
import "./tinycolor-2fdfb0b3.js";
|
|
5
5
|
const u = {
|
|
6
6
|
i18nOptions: {
|
|
7
7
|
namespaces: "uploadModal",
|
|
@@ -48,16 +48,18 @@ const u = {
|
|
|
48
48
|
_end: 20
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
-
this.recentFiles = (e || []).map(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
this.recentFiles = (e || []).map(
|
|
52
|
+
({ displayName: t, mime: s, id: r, createdAt: n, url: i }) => ({
|
|
53
|
+
name: t,
|
|
54
|
+
// TODO, could refactor to only 'displayName'
|
|
55
|
+
displayName: t,
|
|
56
|
+
// file-uploader-component uses displayName, therefore needed for select
|
|
57
|
+
mime: s,
|
|
58
|
+
id: r,
|
|
59
|
+
createdAt: n,
|
|
60
|
+
url: i
|
|
61
|
+
})
|
|
62
|
+
);
|
|
61
63
|
} catch (e) {
|
|
62
64
|
c(e);
|
|
63
65
|
} finally {
|
|
@@ -86,7 +88,7 @@ var _ = function() {
|
|
|
86
88
|
h,
|
|
87
89
|
!1,
|
|
88
90
|
null,
|
|
89
|
-
"
|
|
91
|
+
"7a9d7b43",
|
|
90
92
|
null,
|
|
91
93
|
null
|
|
92
94
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as a } from "./debounce-
|
|
2
|
-
import { v as l } from "./utils-
|
|
3
|
-
import { n } from "./main-
|
|
1
|
+
import { d as a } from "./debounce-9410d5d6.js";
|
|
2
|
+
import { v as l } from "./utils-805171cf.js";
|
|
3
|
+
import { n } from "./main-4f27b552.js";
|
|
4
4
|
const r = {
|
|
5
5
|
name: "VideoPlayerInput",
|
|
6
6
|
i18nOptions: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import n from "./VideoPlayerInput-
|
|
2
|
-
import { n as s } from "./main-
|
|
3
|
-
import "./debounce-
|
|
4
|
-
import "./utils-
|
|
1
|
+
import n from "./VideoPlayerInput-81e64059.js";
|
|
2
|
+
import { n as s } from "./main-4f27b552.js";
|
|
3
|
+
import "./debounce-9410d5d6.js";
|
|
4
|
+
import "./utils-805171cf.js";
|
|
5
5
|
const l = {
|
|
6
6
|
i18nOptions: {
|
|
7
7
|
namespaces: "components",
|
|
@@ -55,7 +55,7 @@ var r = function() {
|
|
|
55
55
|
d,
|
|
56
56
|
!1,
|
|
57
57
|
null,
|
|
58
|
-
"
|
|
58
|
+
"ba43bad1",
|
|
59
59
|
null,
|
|
60
60
|
null
|
|
61
61
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { B as _, a as y } from "./index-
|
|
3
|
-
import x from "./VideoPlayerInput-
|
|
4
|
-
import "./debounce-
|
|
5
|
-
import "./throttle-
|
|
1
|
+
import { c as f, n as h, l as g } from "./main-4f27b552.js";
|
|
2
|
+
import { B as _, a as y } from "./index-a62beb97.js";
|
|
3
|
+
import x from "./VideoPlayerInput-81e64059.js";
|
|
4
|
+
import "./debounce-9410d5d6.js";
|
|
5
|
+
import "./throttle-a0a6c1c7.js";
|
|
6
6
|
import "./dom-962579a6.js";
|
|
7
|
-
import "./CDropdownItem-
|
|
8
|
-
import "./simplebar.min-
|
|
9
|
-
import "./utils-
|
|
10
|
-
const V =
|
|
7
|
+
import "./CDropdownItem-109be2e2.js";
|
|
8
|
+
import "./simplebar.min-c555666e.js";
|
|
9
|
+
import "./utils-805171cf.js";
|
|
10
|
+
const V = f.pexels.id, w = {
|
|
11
11
|
name: "VideoSelectModal",
|
|
12
12
|
i18nOptions: {
|
|
13
13
|
namespaces: "videoSelectModal",
|
|
@@ -47,33 +47,29 @@ const V = h.pexels.id, b = {
|
|
|
47
47
|
}
|
|
48
48
|
}), s = (o, i) => o.height < i.height || o.width < i.width ? -1 : 1, u = (o) => (o.find(({ height: i }) => i > 1e3 && i < 1200) || {}).link;
|
|
49
49
|
return {
|
|
50
|
-
items: (e.videos || []).map(
|
|
51
|
-
id: o,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
50
|
+
items: (e.videos || []).map(
|
|
51
|
+
({ id: o, image: i, video_files: r = [], user: d }) => {
|
|
52
|
+
const { sd: m, hd: p } = (r || []).sort(s).reduce(
|
|
53
|
+
(c, l) => (c[l.quality] && l.link && c[l.quality].push(l.link), c),
|
|
54
|
+
{ sd: [], hd: [] }
|
|
55
|
+
), [v] = m;
|
|
56
|
+
let n = u(r);
|
|
57
|
+
return n || ([n] = p.length ? p : m.slice(-1)), {
|
|
58
|
+
id: `${o}`,
|
|
59
|
+
image: i,
|
|
60
|
+
minImage: i,
|
|
61
|
+
video: n,
|
|
62
|
+
minVideo: v,
|
|
63
|
+
userName: d.name,
|
|
64
|
+
userLink: d.link
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
68
|
total: e.total_results
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
selectVideo(a) {
|
|
72
|
-
const {
|
|
73
|
-
id: t,
|
|
74
|
-
image: e,
|
|
75
|
-
video: s
|
|
76
|
-
} = a || {};
|
|
72
|
+
const { id: t, image: e, video: s } = a || {};
|
|
77
73
|
this.selectedVideo = {
|
|
78
74
|
id: t,
|
|
79
75
|
url: s,
|
|
@@ -87,7 +83,7 @@ const V = h.pexels.id, b = {
|
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
};
|
|
90
|
-
var
|
|
86
|
+
var b = function() {
|
|
91
87
|
var t = this, e = t._self._c;
|
|
92
88
|
return e("BackgroundModal", [e("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "calc(0.25 * var(--rem)) calc(1 * var(--rem))", "border-bottom": "1px solid hsl(0, 0%, 88%)" }, attrs: { slot: "header" }, slot: "header" }, [e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "pexels" && { opacity: 1 }, on: { click: function(s) {
|
|
93
89
|
t.activeTab = "pexels";
|
|
@@ -96,13 +92,13 @@ var w = function() {
|
|
|
96
92
|
} } }, [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), t.activeTab === "pexels" ? e("BackgroundList", { attrs: { fetch: t.fetch, "credit-text": t.$t("creditVideos", { thing: "Pexels" }), "default-query": "nature" }, on: { select: t.selectVideo } }, [e("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { slot: "footer", disable: !t.selectedVideo, type: "secondary" }, on: { click: t.onSave }, slot: "footer" }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1) : e("div", { staticClass: "flex flex-col items-center justify-center w-full" }, [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(s) {
|
|
97
93
|
t.customVideo = s;
|
|
98
94
|
}, 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);
|
|
99
|
-
}, k = [], S = /* @__PURE__ */
|
|
100
|
-
b,
|
|
95
|
+
}, k = [], S = /* @__PURE__ */ h(
|
|
101
96
|
w,
|
|
97
|
+
b,
|
|
102
98
|
k,
|
|
103
99
|
!1,
|
|
104
100
|
null,
|
|
105
|
-
"
|
|
101
|
+
"97fc6a32",
|
|
106
102
|
null,
|
|
107
103
|
null
|
|
108
104
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as r } from "./main-
|
|
2
|
-
import { w as l } from "./CDropdownItem-
|
|
1
|
+
import { b as r } from "./main-4f27b552.js";
|
|
2
|
+
import { w as l } from "./CDropdownItem-109be2e2.js";
|
|
3
3
|
const m = ({ documentKey: s = "document" } = {}) => ({
|
|
4
4
|
mixins: [l],
|
|
5
5
|
inject: {
|
|
@@ -26,7 +26,7 @@ const m = ({ documentKey: s = "document" } = {}) => ({
|
|
|
26
26
|
const o = t === "decline" ? !0 : this.isValid();
|
|
27
27
|
if (!i.isPreview && !o)
|
|
28
28
|
return;
|
|
29
|
-
const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-
|
|
29
|
+
const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-87be4c0b.js");
|
|
30
30
|
this.$modal.show(
|
|
31
31
|
a,
|
|
32
32
|
{
|