@cling-se/widget 0.12.6 → 0.12.8
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-9ecb1f65.js → AddClientCallout-1db76c94.js} +5 -5
- package/dist/{AnswerModal-740a32d9.js → AnswerModal-6c06a8a2.js} +19 -16
- package/dist/{AttachmentItem-b5feec24.js → AttachmentItem-41e444a4.js} +3 -3
- package/dist/{BaseDatePicker-4de97237.js → BaseDatePicker-d2a55800.js} +2 -2
- package/dist/{BaseInput-0fd105dc.js → BaseInput-18e129c8.js} +5 -8
- package/dist/{BaseUpload-7da3dfa3.js → BaseUpload-a9e1877b.js} +2 -2
- package/dist/{BlockMedia-8538a7e4.js → BlockMedia-8f9708c5.js} +2 -2
- package/dist/{CCallout-cb6ed00c.js → CCallout-b49bff26.js} +2 -2
- package/dist/{CDropdownItem-3e55db42.js → CDropdownItem-d4615a56.js} +1 -1
- package/dist/{CField-83895bd6.js → CField-f2688fc2.js} +1 -1
- package/dist/{CPhoneFormat-89bc45bf.js → CPhoneFormat-b1e386fc.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-8ad297eb.js → CSlider.vue_vue_type_style_index_0_lang-5d43c5ff.js} +1 -1
- package/dist/{ClientAutocomplete-660860d5.js → ClientAutocomplete-e74a234a.js} +2 -2
- package/dist/{ClientModal-33675a8c.js → ClientModal-37836644.js} +9 -6
- package/dist/{ColorPicker-882e51a3.js → ColorPicker-ccea269c.js} +1 -1
- package/dist/{CompanyModal-cb5a2df0.js → CompanyModal-1ae0f6ac.js} +3 -3
- package/dist/{ContentWrapper-8f9a3424.js → ContentWrapper-a4b0def6.js} +14 -14
- package/dist/{CoverBlockSettings-e97bd444.js → CoverBlockSettings-9adcce77.js} +8 -8
- package/dist/{DocAnswer-6cccdd47.js → DocAnswer-2cebb34c.js} +4 -4
- package/dist/{DocDetails-c957efaf.js → DocDetails-4779c308.js} +4 -4
- package/dist/{DocForm-821529a9.js → DocForm-211552a8.js} +127 -84
- package/dist/{DocFormSend-c7d8316a.js → DocFormSend-046a4add.js} +17 -17
- package/dist/{DocLinks-5d90c8da.js → DocLinks-45fab5d6.js} +2 -2
- package/dist/{DocModalBase-f94bd68c.js → DocModalBase-5f1948d9.js} +1 -1
- package/dist/{DocPrint-8eb06698.js → DocPrint-8332f880.js} +1 -1
- package/dist/{DocReceipt-8c8a7913.js → DocReceipt-fe11e0cb.js} +2 -4
- package/dist/{DocSendReminder-bfcbe73c.js → DocSendReminder-8943a812.js} +1 -1
- package/dist/{DocTextEditor-b691f5d0.js → DocTextEditor-de66d76f.js} +34 -15
- package/dist/{DocTimeline-6905dfa2.js → DocTimeline-3502cb4c.js} +1 -1
- package/dist/{DocumentClient-84874729.js → DocumentClient-b781dd1f.js} +7 -7
- package/dist/{DocumentLayout-0280007c.js → DocumentLayout-27fbb225.js} +4 -4
- package/dist/{DocumentLogotype-af5615e2.js → DocumentLogotype-a28abe5a.js} +3 -3
- package/dist/{DocumentVoided-1608d7d8.js → DocumentVoided-455343c5.js} +1 -1
- package/dist/{EmbedInput-b557906f.js → EmbedInput-d11d5de2.js} +2 -2
- package/dist/{EmbedSettings-6879968d.js → EmbedSettings-016ff455.js} +3 -3
- package/dist/{ErrorCallout-29ec868f.js → ErrorCallout-a074770e.js} +1 -1
- package/dist/{FilePreviewModal-2c83e9ce.js → FilePreviewModal-fca6faef.js} +5 -5
- package/dist/{Flag-a72eedd7.js → Flag-900b37df.js} +1 -1
- package/dist/{HeaderSettings-f896361e.js → HeaderSettings-ae0b3cf5.js} +16 -16
- package/dist/{ImageSelectModal-87115a0d.js → ImageSelectModal-97133858.js} +8 -8
- package/dist/{ImageUploadWrapper-b848e2c0.js → ImageUploadWrapper-1635702c.js} +2 -2
- package/dist/{Index-4e8673d8.js → Index-0a894180.js} +2 -2
- package/dist/{Index-896744ca.js → Index-0c29aa88.js} +11 -11
- package/dist/{Index-45532a12.js → Index-1c7f63c9.js} +9 -9
- package/dist/{Index-e5bca4ba.js → Index-1cb91a78.js} +2 -2
- package/dist/{Index-143885f0.js → Index-1cf58bbf.js} +2 -2
- package/dist/{Index-5fb570f5.js → Index-1ed5e7ea.js} +4 -4
- package/dist/{Index-9bfd19ae.js → Index-30d88fb4.js} +8 -8
- package/dist/{Index-b855bb6b.js → Index-31a7de9d.js} +7 -7
- package/dist/{Index-17532b7c.js → Index-330c01cb.js} +7 -7
- package/dist/{Index-cc275f1a.js → Index-398a837d.js} +4 -4
- package/dist/{Index-57b1bd74.js → Index-3b5a9052.js} +2 -2
- package/dist/{Index-317a278d.js → Index-3f500f06.js} +2 -2
- package/dist/{Index-5a98a216.js → Index-59e9af38.js} +1 -1
- package/dist/{Index-fb873cb0.js → Index-5af3739d.js} +4 -4
- package/dist/{Index-233d78f7.js → Index-5ddfb8a8.js} +2 -2
- package/dist/{Index-ac5ed93b.js → Index-693618d0.js} +2 -2
- package/dist/{Index-41d36214.js → Index-6c0d7d03.js} +1 -1
- package/dist/{Index-a84493fa.js → Index-6ee8096a.js} +4 -4
- package/dist/{Index-dd7c60a3.js → Index-7510cf12.js} +4 -4
- package/dist/{Index-06d09242.js → Index-7c6cea7d.js} +6 -6
- package/dist/{Index-5d96ebf8.js → Index-7f1831cc.js} +6 -6
- package/dist/{Index-d4831043.js → Index-831f4f0b.js} +6 -6
- package/dist/{Index-6a2c6bb4.js → Index-84efdf4e.js} +7 -7
- package/dist/{Index-1d872d01.js → Index-86d26237.js} +4 -4
- package/dist/{Index-e2275b80.js → Index-87a4e82c.js} +2 -2
- package/dist/{Index-66422854.js → Index-8b7c94ba.js} +5 -5
- package/dist/{Index-392a72f0.js → Index-8b8ee120.js} +4 -4
- package/dist/{Index-b14355c6.js → Index-9bb614c4.js} +9 -9
- package/dist/{Index-a6170166.js → Index-9c4b7f92.js} +30 -23
- package/dist/{Index-8378b41b.js → Index-b626f0cc.js} +5 -5
- package/dist/{Index-adc4d454.js → Index-b8b9f7f0.js} +3 -3
- package/dist/{Index-6cc9b40a.js → Index-d9e51018.js} +15 -15
- package/dist/{Index-d1422cac.js → Index-ef2a29e9.js} +14 -14
- package/dist/{Index-0e1ec3a9.js → Index-f1000bb7.js} +4 -4
- package/dist/{InputToggleRow-57168fd7.js → InputToggleRow-ea78cea0.js} +1 -1
- package/dist/{IsPremiumPreStep-c47b64ba.js → IsPremiumPreStep-e80f039e.js} +80 -28
- package/dist/{ManualPopover-f0d020f7.js → ManualPopover-4b11a2f4.js} +1 -1
- package/dist/{MediaWrapper-f88b5042.js → MediaWrapper-517aefb6.js} +4 -4
- package/dist/{NotBindingText-5443e8ae.js → NotBindingText-0e7bf539.js} +2 -2
- package/dist/{PackageGroup-b04e1dd2.js → PackageGroup-7686c682.js} +13 -13
- package/dist/{PdfTerms-1b2ccc92.js → PdfTerms-20b187ab.js} +5 -5
- package/dist/{PdfViewer-70a62650.js → PdfViewer-5f7f3e7e.js} +2 -2
- package/dist/{PlainHtml-69debaed.js → PlainHtml-8da72eb0.js} +1 -1
- package/dist/{PriceHeader-57e8c8b2.js → PriceHeader-1664be58.js} +14 -14
- package/dist/{SearchApi-89a10999.js → SearchApi-969f26f3.js} +2 -2
- package/dist/{Setup-e49038b9.js → Setup-6924ae55.js} +1 -1
- package/dist/{TermsSettings-9230124b.js → TermsSettings-24722cab.js} +7 -7
- package/dist/{ThemeColorRow-7fa03127.js → ThemeColorRow-dad2a360.js} +4 -4
- package/dist/{ToggleBinding-eccf31b0.js → ToggleBinding-95b398b5.js} +3 -3
- package/dist/{UploadModal-7ec92085.js → UploadModal-fcb5d747.js} +3 -3
- package/dist/{VideoPlayerInput-79ecaa25.js → VideoPlayerInput-0653fdac.js} +3 -3
- package/dist/{VideoPlayerSettings-832db291.js → VideoPlayerSettings-cd36d947.js} +4 -4
- package/dist/{VideoSelectModal-71610c73.js → VideoSelectModal-80bce79a.js} +8 -8
- package/dist/{answerDocumentMixin-9ef76853.js → answerDocumentMixin-562a6227.js} +3 -3
- package/dist/{color-71c20583.js → color-c1606adc.js} +5 -1
- package/dist/{debounce-8671f8dc.js → debounce-e16e154a.js} +1 -1
- package/dist/{focusDrawerMixin-e1e74aa5.js → focusDrawerMixin-2ea3f8b2.js} +1 -1
- package/dist/{formComponentsInstall-7929495e.js → formComponentsInstall-f0935848.js} +12 -12
- package/dist/{formDrawerState-132b3356.js → formDrawerState-5cb1d38e.js} +1 -1
- package/dist/{formValidationMixin-7e63bf02.js → formValidationMixin-fbcf6044.js} +1 -1
- package/dist/{index-d581dd3e.js → index-0f93916c.js} +5 -5
- package/dist/{index-c932bbd7.js → index-3eb46e3e.js} +3 -3
- package/dist/{index-689abdc4.js → index-4284b917.js} +1 -1
- package/dist/{index-c32415d8.js → index-926169da.js} +1 -1
- package/dist/{index-ecae741c.js → index-b6c7c8f9.js} +1 -1
- package/dist/{index-e08e9511.js → index-e7242888.js} +10 -10
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +6 -6
- package/dist/{main-3e2eb1ab.js → main-00182277.js} +692 -321
- package/dist/{mapFormMixin-7434613a.js → mapFormMixin-1c6561a7.js} +1 -1
- package/dist/{publicSenderState-d2935885.js → publicSenderState-a9f48e73.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{throttle-67fcd09d.js → throttle-ac46d119.js} +2 -2
- package/dist/{tinycolor-efcd3ffc.js → tinycolor-dc78edeb.js} +1 -1
- package/dist/{tippy.esm-2fc4283d.js → tippy.esm-95420c02.js} +5 -5
- package/dist/{utils-0765b02b.js → utils-eb62baff.js} +1 -1
- package/dist/{vuedraggable.umd-6b43b866.js → vuedraggable.umd-f51633ac.js} +1 -1
- package/package.json +1 -1
|
@@ -5158,10 +5158,7 @@ class N4 {
|
|
|
5158
5158
|
}
|
|
5159
5159
|
const _n = new N4();
|
|
5160
5160
|
_n.setLevel(_e.logLevel);
|
|
5161
|
-
const L4 = [
|
|
5162
|
-
"sv",
|
|
5163
|
-
"en"
|
|
5164
|
-
];
|
|
5161
|
+
const L4 = ["sv", "en"];
|
|
5165
5162
|
var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5166
5163
|
function _t(e) {
|
|
5167
5164
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -7671,7 +7668,9 @@ Anteckningar är enbart synlig för dig & dina kollegor.`,
|
|
|
7671
7668
|
warningInfo: { title: "Avrådande" },
|
|
7672
7669
|
estimatedTime: { title: "Tider" },
|
|
7673
7670
|
extraWorkTimeImpact: { title: "Tider" },
|
|
7674
|
-
extraWorkConstructionPricingList: {
|
|
7671
|
+
extraWorkConstructionPricingList: {
|
|
7672
|
+
title: "Ändringar och tilläggsarbeten"
|
|
7673
|
+
},
|
|
7675
7674
|
paymentTerms: { title: "Betalning" },
|
|
7676
7675
|
misc: { title: "Övrigt" },
|
|
7677
7676
|
subChapters: {
|
|
@@ -7682,7 +7681,9 @@ Anteckningar är enbart synlig för dig & dina kollegor.`,
|
|
|
7682
7681
|
travelCosts: { title: "Resor" },
|
|
7683
7682
|
attachments: { title: "Bilagor" },
|
|
7684
7683
|
notIncluded: { title: "Arbete, material & övrigt som inte ingår" },
|
|
7685
|
-
warningInfo: {
|
|
7684
|
+
warningInfo: {
|
|
7685
|
+
title: "Arbete som beställaren vill ha utfört trots avrådande"
|
|
7686
|
+
},
|
|
7686
7687
|
estimatedTimeToComplete: { title: "Kalendertid för genomförande" },
|
|
7687
7688
|
estimatedWorkStartAndEndAt: { title: "Datum för genomförande" },
|
|
7688
7689
|
extraWorkConstructionPricingList: {
|
|
@@ -12478,7 +12479,9 @@ const vS = aS, yS = {
|
|
|
12478
12479
|
saveMissing: !0,
|
|
12479
12480
|
// Needed for missingKeyHandler to be used
|
|
12480
12481
|
missingKeyHandler(t, r, n, i) {
|
|
12481
|
-
_n.info(
|
|
12482
|
+
_n.info(
|
|
12483
|
+
`i18next: Missing translation lng '${t}', ns '${r}', 'key: '${n}'`
|
|
12484
|
+
);
|
|
12482
12485
|
},
|
|
12483
12486
|
// parseMissingKeyHandler: function () {
|
|
12484
12487
|
// return 'Invalid i18n Key';
|
|
@@ -12510,7 +12513,15 @@ const vS = aS, yS = {
|
|
|
12510
12513
|
}), sm = nS.createInstance();
|
|
12511
12514
|
sm.use(vS).use(bS).use(yS).init({
|
|
12512
12515
|
...wS(sm),
|
|
12513
|
-
namespaces: [
|
|
12516
|
+
namespaces: [
|
|
12517
|
+
"_common",
|
|
12518
|
+
"views",
|
|
12519
|
+
"components",
|
|
12520
|
+
"errors",
|
|
12521
|
+
"actions",
|
|
12522
|
+
"router",
|
|
12523
|
+
"iso"
|
|
12524
|
+
],
|
|
12514
12525
|
defaultNS: "_common",
|
|
12515
12526
|
fallbackNS: "_common"
|
|
12516
12527
|
});
|
|
@@ -19444,15 +19455,7 @@ $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
|
|
|
19444
19455
|
vatIdentificationNumberShort: "Btw id.",
|
|
19445
19456
|
rate: "Belastingtarief"
|
|
19446
19457
|
}
|
|
19447
|
-
}, GH = [
|
|
19448
|
-
"en",
|
|
19449
|
-
"sv",
|
|
19450
|
-
"de",
|
|
19451
|
-
"fi",
|
|
19452
|
-
"fr",
|
|
19453
|
-
"es",
|
|
19454
|
-
"nl"
|
|
19455
|
-
], oCe = {
|
|
19458
|
+
}, GH = ["en", "sv", "de", "fi", "fr", "es", "nl"], oCe = {
|
|
19456
19459
|
en: "English",
|
|
19457
19460
|
sv: "Svenska",
|
|
19458
19461
|
fi: "Suomi",
|
|
@@ -26645,7 +26648,7 @@ const HX = [
|
|
|
26645
26648
|
{
|
|
26646
26649
|
name: "form",
|
|
26647
26650
|
path: "/form",
|
|
26648
|
-
component: () => import("./DocForm-
|
|
26651
|
+
component: () => import("./DocForm-211552a8.js"),
|
|
26649
26652
|
props: !0,
|
|
26650
26653
|
meta: {
|
|
26651
26654
|
mode: "modal",
|
|
@@ -26657,7 +26660,7 @@ const HX = [
|
|
|
26657
26660
|
{
|
|
26658
26661
|
name: "document",
|
|
26659
26662
|
path: "/document",
|
|
26660
|
-
component: () => import("./DocumentLayout-
|
|
26663
|
+
component: () => import("./DocumentLayout-27fbb225.js").then((e) => e.c),
|
|
26661
26664
|
props: !0,
|
|
26662
26665
|
meta: {
|
|
26663
26666
|
mode: "modal",
|
|
@@ -26670,7 +26673,7 @@ const HX = [
|
|
|
26670
26673
|
{
|
|
26671
26674
|
name: "send",
|
|
26672
26675
|
path: "/send",
|
|
26673
|
-
component: () => import("./DocFormSend-
|
|
26676
|
+
component: () => import("./DocFormSend-046a4add.js"),
|
|
26674
26677
|
props: !0,
|
|
26675
26678
|
meta: {
|
|
26676
26679
|
mode: "drawer",
|
|
@@ -26682,7 +26685,7 @@ const HX = [
|
|
|
26682
26685
|
{
|
|
26683
26686
|
name: "print",
|
|
26684
26687
|
path: "/print",
|
|
26685
|
-
component: () => import("./DocPrint-
|
|
26688
|
+
component: () => import("./DocPrint-8332f880.js"),
|
|
26686
26689
|
props: !0,
|
|
26687
26690
|
meta: {
|
|
26688
26691
|
mode: "modal",
|
|
@@ -26693,7 +26696,7 @@ const HX = [
|
|
|
26693
26696
|
{
|
|
26694
26697
|
name: "sendReminder",
|
|
26695
26698
|
path: "/sendReminder",
|
|
26696
|
-
component: () => import("./DocSendReminder-
|
|
26699
|
+
component: () => import("./DocSendReminder-8943a812.js"),
|
|
26697
26700
|
props: !0,
|
|
26698
26701
|
meta: {
|
|
26699
26702
|
mode: "modal",
|
|
@@ -26704,7 +26707,7 @@ const HX = [
|
|
|
26704
26707
|
{
|
|
26705
26708
|
name: "timeline",
|
|
26706
26709
|
path: "/timeline",
|
|
26707
|
-
component: () => import("./DocTimeline-
|
|
26710
|
+
component: () => import("./DocTimeline-3502cb4c.js"),
|
|
26708
26711
|
props: !0,
|
|
26709
26712
|
meta: {
|
|
26710
26713
|
mode: "modal",
|
|
@@ -26714,7 +26717,7 @@ const HX = [
|
|
|
26714
26717
|
{
|
|
26715
26718
|
name: "receipt",
|
|
26716
26719
|
path: "/receipt",
|
|
26717
|
-
component: () => import("./DocReceipt-
|
|
26720
|
+
component: () => import("./DocReceipt-fe11e0cb.js"),
|
|
26718
26721
|
props: !0,
|
|
26719
26722
|
meta: {
|
|
26720
26723
|
mode: "modal",
|
|
@@ -26724,7 +26727,7 @@ const HX = [
|
|
|
26724
26727
|
{
|
|
26725
26728
|
name: "clientLinks",
|
|
26726
26729
|
path: "/clientLinks",
|
|
26727
|
-
component: () => import("./DocLinks-
|
|
26730
|
+
component: () => import("./DocLinks-45fab5d6.js"),
|
|
26728
26731
|
props: !0,
|
|
26729
26732
|
meta: {
|
|
26730
26733
|
mode: "modal",
|
|
@@ -26734,7 +26737,7 @@ const HX = [
|
|
|
26734
26737
|
{
|
|
26735
26738
|
name: "documentClient",
|
|
26736
26739
|
path: "/documentClient",
|
|
26737
|
-
component: () => import("./DocumentClient-
|
|
26740
|
+
component: () => import("./DocumentClient-b781dd1f.js"),
|
|
26738
26741
|
props: !0,
|
|
26739
26742
|
meta: {
|
|
26740
26743
|
mode: "modal",
|
|
@@ -26746,7 +26749,7 @@ const HX = [
|
|
|
26746
26749
|
{
|
|
26747
26750
|
name: "setup",
|
|
26748
26751
|
path: "/setup",
|
|
26749
|
-
component: () => import("./Setup-
|
|
26752
|
+
component: () => import("./Setup-6924ae55.js"),
|
|
26750
26753
|
props: !0,
|
|
26751
26754
|
meta: {
|
|
26752
26755
|
mode: "modal",
|
|
@@ -26758,7 +26761,7 @@ const HX = [
|
|
|
26758
26761
|
{
|
|
26759
26762
|
name: "docAnswer",
|
|
26760
26763
|
path: "/docAnswer",
|
|
26761
|
-
component: () => import("./DocAnswer-
|
|
26764
|
+
component: () => import("./DocAnswer-2cebb34c.js"),
|
|
26762
26765
|
props: !0,
|
|
26763
26766
|
meta: {
|
|
26764
26767
|
mode: "modal",
|
|
@@ -26769,7 +26772,7 @@ const HX = [
|
|
|
26769
26772
|
{
|
|
26770
26773
|
name: "docDetails",
|
|
26771
26774
|
path: "/docDetails",
|
|
26772
|
-
component: () => import("./DocDetails-
|
|
26775
|
+
component: () => import("./DocDetails-4779c308.js"),
|
|
26773
26776
|
props: !0,
|
|
26774
26777
|
meta: {
|
|
26775
26778
|
mode: "drawer",
|
|
@@ -27096,8 +27099,11 @@ class xl extends Error {
|
|
|
27096
27099
|
showMessage: !0
|
|
27097
27100
|
// Should a message be displayed for the user?
|
|
27098
27101
|
});
|
|
27099
|
-
typeof r.stack == "string" && (this.stack = r.stack.replace(
|
|
27100
|
-
|
|
27102
|
+
typeof r.stack == "string" && (this.stack = r.stack.replace(
|
|
27103
|
+
/.*\n/i,
|
|
27104
|
+
`${this.constructor.name}: ${r.message}
|
|
27105
|
+
`
|
|
27106
|
+
));
|
|
27101
27107
|
}
|
|
27102
27108
|
add(r) {
|
|
27103
27109
|
return this.payload = {
|
|
@@ -27310,7 +27316,7 @@ const Yee = (e, { renewToken: t }) => {
|
|
|
27310
27316
|
// allow API to store cookie
|
|
27311
27317
|
paramsSerializer: (d) => Gee(d)
|
|
27312
27318
|
});
|
|
27313
|
-
n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.12.
|
|
27319
|
+
n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.12.8";
|
|
27314
27320
|
const i = async (d, p, h = null, f = {}) => {
|
|
27315
27321
|
const m = p.startsWith("/public/"), g = xe.getItem("token");
|
|
27316
27322
|
switch (g && !m && (n.defaults.headers["X-TOKEN"] = g), d) {
|
|
@@ -27325,7 +27331,9 @@ const Yee = (e, { renewToken: t }) => {
|
|
|
27325
27331
|
case "patch":
|
|
27326
27332
|
return n.patch(p, h, f);
|
|
27327
27333
|
default:
|
|
27328
|
-
throw new Error(
|
|
27334
|
+
throw new Error(
|
|
27335
|
+
`SendRequest failed as method: '${d}' is not implemented`
|
|
27336
|
+
);
|
|
27329
27337
|
}
|
|
27330
27338
|
}, a = (d, p = {}) => i("get", d, null, p), o = (d, p = {}, h = {}) => i("put", d, p, h), s = (d, p, h = {}) => i("post", d, p, h), l = (d, p = {}) => i("delete", d, null, p), c = (d, p = {}) => i("patch", d, null, p), u = async () => {
|
|
27331
27339
|
if (!ks)
|
|
@@ -27370,7 +27378,15 @@ const tte = async (e) => {
|
|
|
27370
27378
|
}, oo = {
|
|
27371
27379
|
withCredentials: !0,
|
|
27372
27380
|
baseUrl: _e.api.baseUrl
|
|
27373
|
-
}, {
|
|
27381
|
+
}, {
|
|
27382
|
+
get: we,
|
|
27383
|
+
post: Be,
|
|
27384
|
+
put: At,
|
|
27385
|
+
patch: on,
|
|
27386
|
+
del: Yt,
|
|
27387
|
+
instance: lCe,
|
|
27388
|
+
renewToken: rte
|
|
27389
|
+
} = Qee({
|
|
27374
27390
|
withCredentials: oo.withCredentials,
|
|
27375
27391
|
baseUrl: oo.baseUrl,
|
|
27376
27392
|
cache: tte
|
|
@@ -27379,15 +27395,39 @@ async function dA(e) {
|
|
|
27379
27395
|
const t = yH(e);
|
|
27380
27396
|
return we(`/project${t}`, { saveCache: !0 });
|
|
27381
27397
|
}
|
|
27382
|
-
const nte = async (e, t = {}) => we("/project", e, { params: t }), ite = async (e, t = {}) => we(`/project/${e}`, { params: t, saveCache: !0 }), ate = async (e, t, r = {}) => At(`/project/${e}`, t, {
|
|
27398
|
+
const nte = async (e, t = {}) => we("/project", e, { params: t }), ite = async (e, t = {}) => we(`/project/${e}`, { params: t, saveCache: !0 }), ate = async (e, t, r = {}) => At(`/project/${e}`, t, {
|
|
27399
|
+
params: r,
|
|
27400
|
+
invalidateCache: { type: "project", id: e }
|
|
27401
|
+
}), ote = async (e) => on(`/project/${e}`), ste = async (e, t = {}) => Yt(`/project/${e}`, { params: t, invalidateCache: { type: "project", id: e } }), lte = async () => we("/project/createDemo"), cte = () => we("/"), ute = async (e, t = {}) => Be("/auth/actionlink", { token: e, ...t }), dte = async (e) => Be("/register", e), pte = async (e, t) => Be("/companyUser/forgottenPassword/new", {
|
|
27402
|
+
password: e,
|
|
27403
|
+
resetPasswordToken: t
|
|
27404
|
+
}), fte = async (e) => Be("/public/consent", e), hte = async (e) => we(`/projectFile/${e}`), mte = async (e) => Be("/projectFile", e), gte = async (e, t) => At(`/projectFile/${e}`, t), vte = async (e) => Yt(`/projectFile/${e}`), yte = async (e) => on(`/projectFile/${e}`), bte = async (e, t = {}) => we(`/projectNote/${e}`, { params: t }), wte = async (e, t = {}) => Be("/projectNote", e, { params: t }), _te = async (e, t, r = {}) => At(`/projectNote/${e}`, t, { params: r }), Ete = async (e) => we(`/file/${e}`), Yw = async (e) => Be("/file", e), xte = async (e, t) => At(`/file/${e}`, t), Tte = async (e) => Yt(`/file/${e}`), kte = async (e) => on(`/file/${e}`), Ste = async (e = {}) => we("/article", { params: e }), Ote = async (e) => we(`/article/${e}`), Cte = async (e) => Be("/article", e), Ate = async (e, t) => At(`/article/${e}`, t), $te = async (e) => Yt(`/article/${e}`), Pte = async (e) => on(`/article/${e}`), Rte = async (e) => Be("/search", {
|
|
27383
27405
|
type: "article",
|
|
27384
27406
|
query: e
|
|
27385
27407
|
}), as = {
|
|
27386
27408
|
get: async (e, t = {}) => we(e ? `/unitType/${e}` : "/unitType", { params: t, saveCache: !0 }),
|
|
27387
27409
|
post: async (e, t = {}) => Be("/unitType", e, { params: t }),
|
|
27388
|
-
put: async (e, t, r = {}) => At(`/unitType/${e}`, t, {
|
|
27389
|
-
|
|
27390
|
-
|
|
27410
|
+
put: async (e, t, r = {}) => At(`/unitType/${e}`, t, {
|
|
27411
|
+
params: r,
|
|
27412
|
+
invalidateCache: { type: "unitType", id: e }
|
|
27413
|
+
}),
|
|
27414
|
+
delete: async (e, t = {}) => Yt(`/unitType/${e}`, {
|
|
27415
|
+
params: t,
|
|
27416
|
+
invalidateCache: { type: "unitType", id: e }
|
|
27417
|
+
})
|
|
27418
|
+
}, Mte = async (e = {}) => we("/templateMessage", { params: e, saveCache: !0 }), Dte = async (e, t = {}) => we(`/templateMessage/${e}`, { params: t, saveCache: !0 }), Ite = async (e, t = {}) => Be("/templateMessage", e, { params: t }), Nte = async (e, t, r = {}) => At(`/templateMessage/${e}`, t, {
|
|
27419
|
+
params: r,
|
|
27420
|
+
invalidateCache: { type: "templateMessage", id: e }
|
|
27421
|
+
}), Lte = async (e, t = {}) => Yt(`/templateMessage/${e}`, {
|
|
27422
|
+
params: t,
|
|
27423
|
+
invalidateCache: { type: "templateMessage", id: e }
|
|
27424
|
+
}), jte = async (e, t = {}) => on(`/templateMessage/${e}`, { params: t }), Fte = async (e = {}) => we("/endCustomer", { params: e }), Ute = async (e, t = {}) => we(`/endCustomer/${e}`, { params: t }), Vte = async (e, t = {}) => Be("/endCustomer", e, { params: t }), zte = async (e, t, r = {}) => At(`/endCustomer/${e}`, t, { params: r }), Bte = async (e, t = {}) => Yt(`/endCustomer/${e}`, { params: t }), Hte = async (e, t = {}) => on(`/endCustomer/${e}`, { params: t }), Wte = async (e = {}) => we("/companyUser", { params: e, saveCache: !0 }), Gte = async (e, t = {}) => we(`/companyUser/${e}`, { params: t, saveCache: !0 }), qte = async (e, t = {}) => Be("/companyUser", e, { params: t }), Yte = async (e, t, r = {}) => At(`/companyUser/${e}`, t, {
|
|
27425
|
+
params: r,
|
|
27426
|
+
invalidateCache: { type: "companyUser", id: e }
|
|
27427
|
+
}), Kte = async (e, t = {}) => Yt(`/companyUser/${e}`, {
|
|
27428
|
+
params: t,
|
|
27429
|
+
invalidateCache: { type: "companyUser", id: e }
|
|
27430
|
+
}), Jte = async (e, t = {}) => on(`/companyUser/${e}`, { params: t }), Kw = {
|
|
27391
27431
|
getPublic: async (e, t = {}) => we(`/public/companyUser/${e}`, { params: t }),
|
|
27392
27432
|
getConnectedUsers: async (e = {}) => we("/companyUser/self/connectedUsers", { params: e }),
|
|
27393
27433
|
getConnectedUserAuth: async (e, t = {}) => we(`/companyUser/self/connectedUsers/${e}/auth`, { params: t }),
|
|
@@ -27403,14 +27443,30 @@ const nte = async (e, t = {}) => we("/project", e, { params: t }), ite = async (
|
|
|
27403
27443
|
putCustomer: async (e, t = {}) => At("/companyAccount/customer", e, { params: t }),
|
|
27404
27444
|
// getStripePortalURL: async (params = {}) => get('/companyAccount/customer/stripePortalUrl', { params }),
|
|
27405
27445
|
createCheckoutSession: async (e, t = {}) => Be("/companyAccount/create-checkout-session", e, { params: t })
|
|
27406
|
-
}, Xte = async (e, t) => Be(`/project/${e}/projectMember/${t}`, null, {
|
|
27446
|
+
}, Xte = async (e, t) => Be(`/project/${e}/projectMember/${t}`, null, {
|
|
27447
|
+
invalidateCache: { type: "project", id: e }
|
|
27448
|
+
}), Qte = async (e, t) => Yt(`/project/${e}/projectMember/${t}`, {
|
|
27449
|
+
invalidateCache: { type: "project", id: e }
|
|
27450
|
+
}), Qt = {
|
|
27407
27451
|
get: async (e, t = {}) => we(`/document/${e}`, { params: t, saveCache: !0 }),
|
|
27408
27452
|
getAll: async (e = {}) => we("/document", { params: e, saveCache: !0 }),
|
|
27409
27453
|
post: async (e, t = {}) => Be("/document", e, { params: t }),
|
|
27410
|
-
send: async (e, t = {}, r = {}) => Be(`/document/${e}/send`, t, {
|
|
27411
|
-
|
|
27412
|
-
|
|
27413
|
-
|
|
27454
|
+
send: async (e, t = {}, r = {}) => Be(`/document/${e}/send`, t, {
|
|
27455
|
+
params: r,
|
|
27456
|
+
invalidateCache: { type: "document", id: e }
|
|
27457
|
+
}),
|
|
27458
|
+
clearAnswers: async (e, t = {}, r = {}) => Be(`/document/${e}/clearAnswers`, t, {
|
|
27459
|
+
params: r,
|
|
27460
|
+
invalidateCache: { type: "document", id: e }
|
|
27461
|
+
}),
|
|
27462
|
+
put: async (e, t, r = {}) => At(`/document/${e}`, t, {
|
|
27463
|
+
params: r,
|
|
27464
|
+
invalidateCache: { type: "document", id: e }
|
|
27465
|
+
}),
|
|
27466
|
+
delete: async (e, t = {}) => Yt(`/document/${e}`, {
|
|
27467
|
+
params: t,
|
|
27468
|
+
invalidateCache: { type: "document", id: e }
|
|
27469
|
+
}),
|
|
27414
27470
|
patch: async (e, t = {}) => on(`/document/${e}`, { params: t }),
|
|
27415
27471
|
validate: async (e, t = {}) => Be("/documentValidate", e, { params: t })
|
|
27416
27472
|
}, Kn = {
|
|
@@ -27434,7 +27490,10 @@ const nte = async (e, t = {}) => we("/project", e, { params: t }), ite = async (
|
|
|
27434
27490
|
}, Jw = {
|
|
27435
27491
|
getDocuments: async (e = {}) => {
|
|
27436
27492
|
const t = xe.getItem("clientToken");
|
|
27437
|
-
return li.get(`${oo.baseUrl}/client/document`, {
|
|
27493
|
+
return li.get(`${oo.baseUrl}/client/document`, {
|
|
27494
|
+
headers: { Authorization: t },
|
|
27495
|
+
params: e
|
|
27496
|
+
});
|
|
27438
27497
|
},
|
|
27439
27498
|
requestMagicLink: async (e, t = {}) => li.post(`${oo.baseUrl}/client/requestMagicLink`, e, { params: t })
|
|
27440
27499
|
}, ere = {
|
|
@@ -27451,11 +27510,29 @@ const nte = async (e, t = {}) => we("/project", e, { params: t }), ite = async (
|
|
|
27451
27510
|
getPublicAuthUrl: async (e, t = {}) => we("/public/extension/authUrl", { params: { ...t, service: e } }),
|
|
27452
27511
|
install: async (e, t, r = {}) => Be("/extension/install", t, { params: { ...r, service: e } }),
|
|
27453
27512
|
uninstall: async (e, t = {}) => Yt("/extension/uninstall", { params: { ...t, service: e } }),
|
|
27454
|
-
suggestClients: async (e, t = {}) => we("/extension/suggestClients", {
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
|
|
27513
|
+
suggestClients: async (e, t = {}) => we("/extension/suggestClients", {
|
|
27514
|
+
params: { ...t, service: e },
|
|
27515
|
+
saveCache: !0,
|
|
27516
|
+
cacheTtl: 20
|
|
27517
|
+
}),
|
|
27518
|
+
signupWithCrm: async (e, t, r = {}) => Be("/public/extension/register", t, {
|
|
27519
|
+
params: { ...r, service: e }
|
|
27520
|
+
}),
|
|
27521
|
+
search: async (e, t = {}) => we("/extension/search", {
|
|
27522
|
+
params: { ...t, service: e },
|
|
27523
|
+
saveCache: !0,
|
|
27524
|
+
cacheTtl: 10
|
|
27525
|
+
}),
|
|
27526
|
+
getFields: async (e, t = {}) => we("/extension/fields", {
|
|
27527
|
+
params: { ...t, service: e },
|
|
27528
|
+
saveCache: !0,
|
|
27529
|
+
cacheTtl: 60
|
|
27530
|
+
}),
|
|
27531
|
+
getExternalReferenceDetails: async (e, t = {}) => we("/extension/externalReferenceDetails", {
|
|
27532
|
+
params: { ...t, service: e },
|
|
27533
|
+
saveCache: !0,
|
|
27534
|
+
cacheTtl: 20
|
|
27535
|
+
}),
|
|
27459
27536
|
settings: async (e, t = {}) => we("/extension/settings", { params: { ...t, service: e } })
|
|
27460
27537
|
}, Vt = {
|
|
27461
27538
|
get: we,
|
|
@@ -29715,15 +29792,25 @@ function ire(e) {
|
|
|
29715
29792
|
}
|
|
29716
29793
|
return null;
|
|
29717
29794
|
}
|
|
29718
|
-
const are = "disabledThirdParties", ore = [
|
|
29795
|
+
const are = "disabledThirdParties", ore = [
|
|
29796
|
+
"google",
|
|
29797
|
+
"facebook",
|
|
29798
|
+
"segment",
|
|
29799
|
+
"logrocket",
|
|
29800
|
+
"rollbar"
|
|
29801
|
+
];
|
|
29719
29802
|
function sre() {
|
|
29720
29803
|
let e = [];
|
|
29721
29804
|
try {
|
|
29722
|
-
const t = JSON.parse(
|
|
29805
|
+
const t = JSON.parse(
|
|
29806
|
+
ire(are)
|
|
29807
|
+
);
|
|
29723
29808
|
Array.isArray(t) && (e = t);
|
|
29724
29809
|
} catch {
|
|
29725
29810
|
}
|
|
29726
|
-
return e.filter(
|
|
29811
|
+
return e.filter(
|
|
29812
|
+
(t) => ore.includes(t)
|
|
29813
|
+
);
|
|
29727
29814
|
}
|
|
29728
29815
|
const mA = _e.rollbar.clientToken, Gv = new nre({
|
|
29729
29816
|
accessToken: mA,
|
|
@@ -29754,7 +29841,7 @@ const mA = _e.rollbar.clientToken, Gv = new nre({
|
|
|
29754
29841
|
client: {
|
|
29755
29842
|
javascript: {
|
|
29756
29843
|
// eslint-disable-next-line
|
|
29757
|
-
code_version: "0.12.
|
|
29844
|
+
code_version: "0.12.8",
|
|
29758
29845
|
// Git SHA of the deployed code (from webpack plugin)
|
|
29759
29846
|
source_map_enabled: !0,
|
|
29760
29847
|
guess_uncaught_frames: !0
|
|
@@ -29766,7 +29853,10 @@ const mA = _e.rollbar.clientToken, Gv = new nre({
|
|
|
29766
29853
|
if (t && t.frames)
|
|
29767
29854
|
for (let r = 0; r < t.frames.length; r++) {
|
|
29768
29855
|
const { filename: n } = t.frames[r];
|
|
29769
|
-
n && (t.frames[r].filename = t.frames[r].filename.replace(
|
|
29856
|
+
n && (t.frames[r].filename = t.frames[r].filename.replace(
|
|
29857
|
+
_e.baseUrl,
|
|
29858
|
+
"https://dynamichost"
|
|
29859
|
+
));
|
|
29770
29860
|
}
|
|
29771
29861
|
}
|
|
29772
29862
|
}), lre = !!mA && !sre().includes("rollbar");
|
|
@@ -29784,7 +29874,12 @@ class pre {
|
|
|
29784
29874
|
qe(this, "errors", /* @__PURE__ */ new Map());
|
|
29785
29875
|
this.handleError.bind(this);
|
|
29786
29876
|
}
|
|
29787
|
-
init({
|
|
29877
|
+
init({
|
|
29878
|
+
logger: t = console,
|
|
29879
|
+
showMessage: r,
|
|
29880
|
+
onNetworkError: n,
|
|
29881
|
+
clearNetworkError: i
|
|
29882
|
+
} = {}) {
|
|
29788
29883
|
if (this._logger = t, typeof r != "function")
|
|
29789
29884
|
throw Error("showMessage must be a function");
|
|
29790
29885
|
this._showMessage = r, this._onNetworkError = n, this._clearNetworkError = i;
|
|
@@ -35191,7 +35286,9 @@ const A$ = {
|
|
|
35191
35286
|
}, Oe = {};
|
|
35192
35287
|
Object.keys(mn).forEach((e) => {
|
|
35193
35288
|
typeof mn[e] == "object" && Object.keys(mn[e]).forEach((t) => {
|
|
35194
|
-
Oe[t] && console.warn(
|
|
35289
|
+
Oe[t] && console.warn(
|
|
35290
|
+
`Duplicate action constant warning!, ${mn[e][t]}`
|
|
35291
|
+
), Oe[t] = `${e}/${mn[e][t]}`;
|
|
35195
35292
|
});
|
|
35196
35293
|
});
|
|
35197
35294
|
Object.keys($$).forEach((e) => {
|
|
@@ -35836,10 +35933,7 @@ var Mge = hd(function(e, t, r, n) {
|
|
|
35836
35933
|
return Dge(a, o, n, i);
|
|
35837
35934
|
})), r;
|
|
35838
35935
|
};
|
|
35839
|
-
const {
|
|
35840
|
-
SET_USER_LOCATION: Ige,
|
|
35841
|
-
SET_USER: Nge
|
|
35842
|
-
} = xt, Lge = {
|
|
35936
|
+
const { SET_USER_LOCATION: Ige, SET_USER: Nge } = xt, Lge = {
|
|
35843
35937
|
[Ige](e, t) {
|
|
35844
35938
|
e.user.position = t;
|
|
35845
35939
|
},
|
|
@@ -35864,7 +35958,11 @@ const {
|
|
|
35864
35958
|
});
|
|
35865
35959
|
},
|
|
35866
35960
|
[xt.RESET_VIEW_SETTINGS](e, t) {
|
|
35867
|
-
te.set(
|
|
35961
|
+
te.set(
|
|
35962
|
+
e.viewSettings,
|
|
35963
|
+
t,
|
|
35964
|
+
JSON.parse(A$.viewSettings[t])
|
|
35965
|
+
);
|
|
35868
35966
|
},
|
|
35869
35967
|
[xt.SET_ERROR](e, t) {
|
|
35870
35968
|
e.error = t;
|
|
@@ -36225,10 +36323,17 @@ const Xr = new wu(), fn = class {
|
|
|
36225
36323
|
const { getters: i } = this.store, { CompanyUserPermission: a } = i["application/user"] || {};
|
|
36226
36324
|
if (!a || !this.hasFeature(t))
|
|
36227
36325
|
return !1;
|
|
36228
|
-
let s = this.getRequiredCompanyUserPermission(
|
|
36326
|
+
let s = this.getRequiredCompanyUserPermission(
|
|
36327
|
+
t,
|
|
36328
|
+
r
|
|
36329
|
+
);
|
|
36229
36330
|
if (!s || s.length === 0)
|
|
36230
|
-
return console.warn(
|
|
36231
|
-
|
|
36331
|
+
return console.warn(
|
|
36332
|
+
`Permission ${r} in scope ${t} has not been implemented`
|
|
36333
|
+
), !1;
|
|
36334
|
+
let l = s.some(
|
|
36335
|
+
(u) => a[u] === !0
|
|
36336
|
+
);
|
|
36232
36337
|
if (l)
|
|
36233
36338
|
return !0;
|
|
36234
36339
|
if (!n)
|
|
@@ -36237,7 +36342,9 @@ const Xr = new wu(), fn = class {
|
|
|
36237
36342
|
if (s = s.map((u) => u.includes("Own") ? u : u.replace(
|
|
36238
36343
|
`${c[0].toUpperCase()}${c.slice(1)}`,
|
|
36239
36344
|
`Own${c[0].toUpperCase()}${c.slice(1)}`
|
|
36240
|
-
)), l = s.some(
|
|
36345
|
+
)), l = s.some(
|
|
36346
|
+
(u) => a[u] === !0
|
|
36347
|
+
), l) {
|
|
36241
36348
|
const u = this._getObjectById(n, t);
|
|
36242
36349
|
if (!u)
|
|
36243
36350
|
return !1;
|
|
@@ -36310,7 +36417,13 @@ qe(Os, "schema", {
|
|
|
36310
36417
|
create: ["manageProjects", "manageOwnProjects"],
|
|
36311
36418
|
modify: ["manageProjects", "manageOwnProjects"],
|
|
36312
36419
|
delete: ["manageProjects", "manageOwnProjects"],
|
|
36313
|
-
readPrice: [
|
|
36420
|
+
readPrice: [
|
|
36421
|
+
"manageOwnAtas",
|
|
36422
|
+
"manageAtas",
|
|
36423
|
+
"manageProjects",
|
|
36424
|
+
"manageOwnProjects",
|
|
36425
|
+
"showPrices"
|
|
36426
|
+
],
|
|
36314
36427
|
$scopeKey: "projects",
|
|
36315
36428
|
$module: "articles",
|
|
36316
36429
|
$id: "id"
|
|
@@ -36960,9 +37073,13 @@ const ds = "companies", { LOAD_FILE: _Ce, FORM_RESET_OLD: sx } = Oe, { SET_FORM:
|
|
|
36960
37073
|
if (t(dn, !0), !r)
|
|
36961
37074
|
throw new Error("Missing parameter accountType");
|
|
36962
37075
|
if (i && !a)
|
|
36963
|
-
throw new Error(
|
|
37076
|
+
throw new Error(
|
|
37077
|
+
"Param billingCycleCount is required if billingCycleInterval is used"
|
|
37078
|
+
);
|
|
36964
37079
|
if (!i && a)
|
|
36965
|
-
throw new Error(
|
|
37080
|
+
throw new Error(
|
|
37081
|
+
"Param billingCycleInterval is required if billingCycleCount is used"
|
|
37082
|
+
);
|
|
36966
37083
|
if ((i || a) && typeof n > "u")
|
|
36967
37084
|
throw new Error("Param billingCycleCost is missing");
|
|
36968
37085
|
const l = {
|
|
@@ -36987,7 +37104,10 @@ const ds = "companies", { LOAD_FILE: _Ce, FORM_RESET_OLD: sx } = Oe, { SET_FORM:
|
|
|
36987
37104
|
*/
|
|
36988
37105
|
async [gve]({ rootGetters: e }, { props: t = [] } = {}) {
|
|
36989
37106
|
try {
|
|
36990
|
-
const r = to(
|
|
37107
|
+
const r = to(
|
|
37108
|
+
e["application/company"],
|
|
37109
|
+
t
|
|
37110
|
+
);
|
|
36991
37111
|
return this.commit(`forms/${Bf}`, { key: "company", formData: r }), !0;
|
|
36992
37112
|
} catch (r) {
|
|
36993
37113
|
return this.handleError(r), !1;
|
|
@@ -37093,7 +37213,7 @@ const ds = "companies", { LOAD_FILE: _Ce, FORM_RESET_OLD: sx } = Oe, { SET_FORM:
|
|
|
37093
37213
|
return r || console.warn(`No schema found for type: '${t}'`), Z$(e, r);
|
|
37094
37214
|
};
|
|
37095
37215
|
function $i(e, t, r = !1) {
|
|
37096
|
-
let n = t.replace(/\[(\d*)\]/
|
|
37216
|
+
let n = t.replace(/\[(\d*)\]/gi, (o, s) => `.${s}`);
|
|
37097
37217
|
n = n.split(".");
|
|
37098
37218
|
let i = e;
|
|
37099
37219
|
const a = n.pop();
|
|
@@ -37206,14 +37326,7 @@ const {
|
|
|
37206
37326
|
FORM_NEW_COMPANY_USER: Nve,
|
|
37207
37327
|
FORM_EDIT_COMPANY_USER: Lve,
|
|
37208
37328
|
FORM_SUBMIT_COMPANY_USER: gx
|
|
37209
|
-
} = R$, {
|
|
37210
|
-
SET_AS_NORMALIZED_DATA: jve,
|
|
37211
|
-
FORM_RESET_OLD: Fve,
|
|
37212
|
-
DELETE_FILE: Uve
|
|
37213
|
-
} = Oe, {
|
|
37214
|
-
SET_COMPANY_USERS_FETCHING: Sc,
|
|
37215
|
-
SET_COMPANY_USERS_POSTING: Un
|
|
37216
|
-
} = Ny, Vve = {
|
|
37329
|
+
} = R$, { SET_AS_NORMALIZED_DATA: jve, FORM_RESET_OLD: Fve, DELETE_FILE: Uve } = Oe, { SET_COMPANY_USERS_FETCHING: Sc, SET_COMPANY_USERS_POSTING: Un } = Ny, Vve = {
|
|
37217
37330
|
/**
|
|
37218
37331
|
* @name DO_NORMALIZE_COMPANY_USERS
|
|
37219
37332
|
* Normalize company users and insert into store.
|
|
@@ -37307,7 +37420,10 @@ const {
|
|
|
37307
37420
|
companyUsers: [s]
|
|
37308
37421
|
}), this.dispatch("application/SHOW_MESSAGE", {
|
|
37309
37422
|
type: "success",
|
|
37310
|
-
message: ne.t("sentThingTo", {
|
|
37423
|
+
message: ne.t("sentThingTo", {
|
|
37424
|
+
thing: ne.t("invitation"),
|
|
37425
|
+
recipient: s.email
|
|
37426
|
+
})
|
|
37311
37427
|
}), s.id;
|
|
37312
37428
|
} catch (i) {
|
|
37313
37429
|
return this.handleError(i, {
|
|
@@ -37578,9 +37694,7 @@ const {
|
|
|
37578
37694
|
company: {},
|
|
37579
37695
|
isFetching: !1,
|
|
37580
37696
|
isPosting: !1
|
|
37581
|
-
}, Vn = "settings", {
|
|
37582
|
-
FORM_RESET_OLD: vx
|
|
37583
|
-
} = Oe, {
|
|
37697
|
+
}, Vn = "settings", { FORM_RESET_OLD: vx } = Oe, {
|
|
37584
37698
|
DO_LOAD_ALL_SETTINGS: yx,
|
|
37585
37699
|
LOAD_ALL_SETTINGS: bx,
|
|
37586
37700
|
DO_LOAD_SETTINGS_COMPANY: Oc,
|
|
@@ -37593,13 +37707,12 @@ const {
|
|
|
37593
37707
|
FORM_SUBMIT_COMPANY_SETTINGS: Tx,
|
|
37594
37708
|
FORM_EDIT_COMPANY_USER_SETTINGS: kx,
|
|
37595
37709
|
FORM_SUBMIT_COMPANY_USER_SETTINGS: Sx
|
|
37596
|
-
} = N$, {
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
} = $e.forms, cP = ["ataTravel"], Zve = ["extraWorkPrice", "extraWorkManagementPrice", "extraEntrepreneurPercentage", "extraOtherPercentage"], Ax = (e) => {
|
|
37710
|
+
} = N$, { SET_SETTINGS: Kf, SET_SETTINGS_FETCHING: Ac, SET_SETTINGS_POSTING: Ox } = $e.settings, { SET_FORM: Cx } = $e.forms, cP = ["ataTravel"], Zve = [
|
|
37711
|
+
"extraWorkPrice",
|
|
37712
|
+
"extraWorkManagementPrice",
|
|
37713
|
+
"extraEntrepreneurPercentage",
|
|
37714
|
+
"extraOtherPercentage"
|
|
37715
|
+
], Ax = (e) => {
|
|
37603
37716
|
const t = e;
|
|
37604
37717
|
return Object.keys(t).forEach((r) => {
|
|
37605
37718
|
cP.includes(r) && t[r] === "0" ? t[r] = "" : t[r] === "true" ? t[r] = !0 : t[r] === "false" ? t[r] = !1 : t[r] === "null" ? t[r] = null : typeof t[r] != "boolean" && !Number.isNaN(Number(t[r])) && t[r] !== "" && (t[r] = Number(t[r]));
|
|
@@ -37649,14 +37762,10 @@ const {
|
|
|
37649
37762
|
const { data: t } = await Vt.get("/companySetting"), r = Ax(t);
|
|
37650
37763
|
e(Kf, { key: "company", settings: r });
|
|
37651
37764
|
const { ataTitleKey: n } = t;
|
|
37652
|
-
n && n !== "ata" && ne.i18next.addResources(
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
ata: `$t(${n})`,
|
|
37657
|
-
ataThe: `$t(${n}The)`
|
|
37658
|
-
}
|
|
37659
|
-
);
|
|
37765
|
+
n && n !== "ata" && ne.i18next.addResources(ne.i18next.language, "_common", {
|
|
37766
|
+
ata: `$t(${n})`,
|
|
37767
|
+
ataThe: `$t(${n}The)`
|
|
37768
|
+
});
|
|
37660
37769
|
} catch (t) {
|
|
37661
37770
|
throw t;
|
|
37662
37771
|
} finally {
|
|
@@ -37693,7 +37802,10 @@ const {
|
|
|
37693
37802
|
const { autoTriggerPurchaseEvent: a } = i;
|
|
37694
37803
|
if (a) {
|
|
37695
37804
|
const { currency: o, amount: s, accountType: l } = a || {};
|
|
37696
|
-
(r = this.$trackEvent) == null || r.call(this, "purchase", { currency: o, amount: s, accountType: l }), await e(ps, {
|
|
37805
|
+
(r = this.$trackEvent) == null || r.call(this, "purchase", { currency: o, amount: s, accountType: l }), await e(ps, {
|
|
37806
|
+
key: "companyUser",
|
|
37807
|
+
settings: $c({ autoTriggerPurchaseEvent: null })
|
|
37808
|
+
});
|
|
37697
37809
|
}
|
|
37698
37810
|
} catch (n) {
|
|
37699
37811
|
throw n;
|
|
@@ -37746,7 +37858,7 @@ const {
|
|
|
37746
37858
|
* @param {Object} object
|
|
37747
37859
|
* @param {String} object.key String of the setting type, can match company or companyUser
|
|
37748
37860
|
* @param {Object[]} object.settings Array of objects
|
|
37749
|
-
|
|
37861
|
+
*/
|
|
37750
37862
|
async [ps]({ dispatch: e, commit: t }, { key: r, settings: n }) {
|
|
37751
37863
|
try {
|
|
37752
37864
|
if (t(Ox, !0), r === "company")
|
|
@@ -37754,7 +37866,9 @@ const {
|
|
|
37754
37866
|
else if (r === "companyUser")
|
|
37755
37867
|
await Vt.post("/companyUserSetting", n), e(Cc);
|
|
37756
37868
|
else
|
|
37757
|
-
throw new Error(
|
|
37869
|
+
throw new Error(
|
|
37870
|
+
`Setting key: '${r}' is not valid, cannot update settings.`
|
|
37871
|
+
);
|
|
37758
37872
|
} catch (i) {
|
|
37759
37873
|
throw i;
|
|
37760
37874
|
} finally {
|
|
@@ -37767,7 +37881,7 @@ const {
|
|
|
37767
37881
|
* @param {Object} Vuex object
|
|
37768
37882
|
* @param {Object} object
|
|
37769
37883
|
* @param {String[]} object.props Optional array of strings which props to load into store
|
|
37770
|
-
|
|
37884
|
+
*/
|
|
37771
37885
|
async [xx]({ commit: e, state: t }, { props: r = [] } = {}) {
|
|
37772
37886
|
try {
|
|
37773
37887
|
const n = to(t.company, r);
|
|
@@ -37789,7 +37903,7 @@ const {
|
|
|
37789
37903
|
* @name FORM_SUBMIT_COMPANY_SETTINGS
|
|
37790
37904
|
* Submit company settings
|
|
37791
37905
|
* @param {Object} Vuex object
|
|
37792
|
-
|
|
37906
|
+
*/
|
|
37793
37907
|
async [Tx]({ rootGetters: e, dispatch: t }) {
|
|
37794
37908
|
try {
|
|
37795
37909
|
const r = e["forms/getFormByKey"]("companySettings"), n = $c(r);
|
|
@@ -37811,7 +37925,7 @@ const {
|
|
|
37811
37925
|
* @param {Object} Vuex object
|
|
37812
37926
|
* @param {Object} object
|
|
37813
37927
|
* @param {String[]} object.props Optional array of strings which props to load into store
|
|
37814
|
-
|
|
37928
|
+
*/
|
|
37815
37929
|
async [kx]({ commit: e, state: t }, { props: r = [] } = {}) {
|
|
37816
37930
|
try {
|
|
37817
37931
|
const n = to(t.companyUser, r);
|
|
@@ -37833,10 +37947,12 @@ const {
|
|
|
37833
37947
|
* @name FORM_SUBMIT_COMPANY_USER_SETTINGS
|
|
37834
37948
|
* Submit companyUser settings
|
|
37835
37949
|
* @param {Object} Vuex object
|
|
37836
|
-
|
|
37950
|
+
*/
|
|
37837
37951
|
async [Sx]({ rootGetters: e, dispatch: t }) {
|
|
37838
37952
|
try {
|
|
37839
|
-
const r = e["forms/getFormByKey"](
|
|
37953
|
+
const r = e["forms/getFormByKey"](
|
|
37954
|
+
"companyUserSettings"
|
|
37955
|
+
), n = $c(r);
|
|
37840
37956
|
return await t(ps, {
|
|
37841
37957
|
key: "companyUser",
|
|
37842
37958
|
settings: n
|
|
@@ -37938,7 +38054,9 @@ const {
|
|
|
37938
38054
|
} = e.company || {};
|
|
37939
38055
|
return {
|
|
37940
38056
|
...t && t !== "hsla(239,71%,89%,0)" && { backgroundFilter: t },
|
|
37941
|
-
...r && r !== "hsla(215, 14%, 34%, 1)" && {
|
|
38057
|
+
...r && r !== "hsla(215, 14%, 34%, 1)" && {
|
|
38058
|
+
priceSummaryBackground: r
|
|
38059
|
+
},
|
|
37942
38060
|
...n && n !== "hsla(215, 14%, 34%, 1)" && { headingColor: n },
|
|
37943
38061
|
...n && n !== "hsla(215, 14%, 34%, 1)" && { headingColor: n },
|
|
37944
38062
|
...i && { background: i }
|
|
@@ -37968,7 +38086,9 @@ const {
|
|
|
37968
38086
|
);
|
|
37969
38087
|
},
|
|
37970
38088
|
// Not including Upsales due to limited support
|
|
37971
|
-
allAuthenticatedCRMs: (e, t) => ["hubspot", "salesforce", "pipedrive"].filter(
|
|
38089
|
+
allAuthenticatedCRMs: (e, t) => ["hubspot", "salesforce", "pipedrive"].filter(
|
|
38090
|
+
(r) => !!t.isAuthenticatedCRM(r)
|
|
38091
|
+
),
|
|
37972
38092
|
isFortnoxInstalled: (e, t) => !!t.getCompanySetting("fortnoxTokens") && Xr.checkFeature("fortnox"),
|
|
37973
38093
|
stripeCustomDealToken: (e, t) => t.getCompanySetting("stripeCustomDealToken")
|
|
37974
38094
|
}, aye = {
|
|
@@ -38002,22 +38122,12 @@ const {
|
|
|
38002
38122
|
documentTerm: {}
|
|
38003
38123
|
}), sye = {
|
|
38004
38124
|
...oye()
|
|
38005
|
-
}, {
|
|
38006
|
-
FORM_DOCUMENT_SET_CLIENT: $x,
|
|
38007
|
-
FORM_DOCUMENT_SUBMIT_CLIENT: lye
|
|
38008
|
-
} = Vr, {
|
|
38009
|
-
SET_FORM_VALUE: wi,
|
|
38010
|
-
REMOVE_FORM_VALUE: Px
|
|
38011
|
-
} = zr, cye = {
|
|
38125
|
+
}, { FORM_DOCUMENT_SET_CLIENT: $x, FORM_DOCUMENT_SUBMIT_CLIENT: lye } = Vr, { SET_FORM_VALUE: wi, REMOVE_FORM_VALUE: Px } = zr, cye = {
|
|
38012
38126
|
/**
|
|
38013
38127
|
* Action to set the endCustomer for document
|
|
38014
38128
|
* @param {Object} formData Object with the endCustomer object, if null then customer is reset
|
|
38015
38129
|
*/
|
|
38016
|
-
async [$x]({
|
|
38017
|
-
commit: e,
|
|
38018
|
-
getters: t,
|
|
38019
|
-
rootGetters: r
|
|
38020
|
-
}, { formData: n }) {
|
|
38130
|
+
async [$x]({ commit: e, getters: t, rootGetters: r }, { formData: n }) {
|
|
38021
38131
|
if (!n)
|
|
38022
38132
|
return e(wi, {
|
|
38023
38133
|
key: "document.ModuleEndCustomer",
|
|
@@ -38036,7 +38146,15 @@ const {
|
|
|
38036
38146
|
}
|
|
38037
38147
|
});
|
|
38038
38148
|
const o = r["settings/getCompanySetting"]("priceInputCompany"), s = r["settings/getCompanySetting"]("priceInputDefault");
|
|
38039
|
-
return i.customerType === "company" && o ? e(
|
|
38149
|
+
return i.customerType === "company" && o ? e(
|
|
38150
|
+
"application/updateField",
|
|
38151
|
+
{ path: "priceInputVat", value: o },
|
|
38152
|
+
{ root: !0 }
|
|
38153
|
+
) : i.customerType === "individual" && s && e(
|
|
38154
|
+
"application/updateField",
|
|
38155
|
+
{ path: "priceInputVat", value: s },
|
|
38156
|
+
{ root: !0 }
|
|
38157
|
+
), !0;
|
|
38040
38158
|
},
|
|
38041
38159
|
// Submit the endCustomer in the context of client
|
|
38042
38160
|
async [lye]({ commit: e, dispatch: t, rootGetters: r }, { mode: n = "create" } = {}) {
|
|
@@ -38053,7 +38171,9 @@ const {
|
|
|
38053
38171
|
value: { name: o.reference }
|
|
38054
38172
|
});
|
|
38055
38173
|
else if (o.customerType === "company") {
|
|
38056
|
-
const s = r["forms/documentField"](
|
|
38174
|
+
const s = r["forms/documentField"](
|
|
38175
|
+
"ModuleExtraCustomers"
|
|
38176
|
+
);
|
|
38057
38177
|
s && s[0] ? e(wi, {
|
|
38058
38178
|
key: "document.ModuleExtraCustomers[0]",
|
|
38059
38179
|
value: { name: o.reference }
|
|
@@ -38062,12 +38182,22 @@ const {
|
|
|
38062
38182
|
value: { name: o.reference }
|
|
38063
38183
|
});
|
|
38064
38184
|
}
|
|
38065
|
-
i = Object.assign({}, o, {
|
|
38185
|
+
i = Object.assign({}, o, {
|
|
38186
|
+
id: o.EndCustomerId
|
|
38187
|
+
}), o.doUpdateEndCustomer && (e(wi, {
|
|
38066
38188
|
key: "endCustomer",
|
|
38067
38189
|
value: i
|
|
38068
|
-
}), await t(
|
|
38190
|
+
}), await t(
|
|
38191
|
+
`endCustomers/${mn.FORM_SUBMIT_ENDCUSTOMER}`,
|
|
38192
|
+
{},
|
|
38193
|
+
{ root: !0 }
|
|
38194
|
+
));
|
|
38069
38195
|
} else {
|
|
38070
|
-
const a = await t(
|
|
38196
|
+
const a = await t(
|
|
38197
|
+
`endCustomers/${mn.FORM_SUBMIT_ENDCUSTOMER}`,
|
|
38198
|
+
{},
|
|
38199
|
+
{ root: !0 }
|
|
38200
|
+
), o = r["endCustomers/endCustomerById"](a);
|
|
38071
38201
|
if (!o)
|
|
38072
38202
|
throw new Error("Could not find the endCustomer");
|
|
38073
38203
|
i = Object.assign({}, o);
|
|
@@ -38192,7 +38322,11 @@ let Wr = class {
|
|
|
38192
38322
|
return this.data.language;
|
|
38193
38323
|
}
|
|
38194
38324
|
get theme() {
|
|
38195
|
-
return re(
|
|
38325
|
+
return re(
|
|
38326
|
+
this,
|
|
38327
|
+
"_data.validationSchema.properties.data.properties.theme.default",
|
|
38328
|
+
{}
|
|
38329
|
+
) || {};
|
|
38196
38330
|
}
|
|
38197
38331
|
get thumbnailUrl() {
|
|
38198
38332
|
return this.data.thumbnailUrl;
|
|
@@ -38207,7 +38341,9 @@ let Wr = class {
|
|
|
38207
38341
|
get defaultMedia() {
|
|
38208
38342
|
if (this.thumbnailUrl)
|
|
38209
38343
|
return { type: "image", resourceUrl: this.thumbnailUrl };
|
|
38210
|
-
const { defaultData: t } = this, r = (re(this, "_data.views.read.nodes") || []).filter(
|
|
38344
|
+
const { defaultData: t } = this, r = (re(this, "_data.views.read.nodes") || []).filter(
|
|
38345
|
+
(i) => ["header", "coverBlock"].includes(i.itemType)
|
|
38346
|
+
);
|
|
38211
38347
|
let n = null;
|
|
38212
38348
|
for (const i of r)
|
|
38213
38349
|
if (i) {
|
|
@@ -38218,7 +38354,9 @@ let Wr = class {
|
|
|
38218
38354
|
continue;
|
|
38219
38355
|
if (i.itemType === "header") {
|
|
38220
38356
|
a += ".items";
|
|
38221
|
-
const o = (re(t, a) || []).find(
|
|
38357
|
+
const o = (re(t, a) || []).find(
|
|
38358
|
+
({ type: s }) => s === "media"
|
|
38359
|
+
);
|
|
38222
38360
|
o && o.media && ({ media: n } = o);
|
|
38223
38361
|
} else if (i.itemType === "coverBlock") {
|
|
38224
38362
|
const { type: o, cover: s } = re(t, a) || {};
|
|
@@ -38232,7 +38370,9 @@ let Wr = class {
|
|
|
38232
38370
|
return n;
|
|
38233
38371
|
}
|
|
38234
38372
|
get reminders() {
|
|
38235
|
-
const t = this.getDefaultData({
|
|
38373
|
+
const t = this.getDefaultData({
|
|
38374
|
+
path: "properties.data.properties.reminders"
|
|
38375
|
+
});
|
|
38236
38376
|
return t && Array.isArray(t) ? t : [];
|
|
38237
38377
|
}
|
|
38238
38378
|
/**
|
|
@@ -38243,7 +38383,10 @@ let Wr = class {
|
|
|
38243
38383
|
return this.getDefaultData();
|
|
38244
38384
|
}
|
|
38245
38385
|
get categoryTags() {
|
|
38246
|
-
return re(this.defaultData, "tags", []).reduce(
|
|
38386
|
+
return re(this.defaultData, "tags", []).reduce(
|
|
38387
|
+
(t, r) => [...t, r.name],
|
|
38388
|
+
[]
|
|
38389
|
+
);
|
|
38247
38390
|
}
|
|
38248
38391
|
get type() {
|
|
38249
38392
|
return this.categoryTags[0];
|
|
@@ -38958,7 +39101,10 @@ const $ye = (e) => {
|
|
|
38958
39101
|
};
|
|
38959
39102
|
}, Dye = (e, t = {}) => (!e || !e.data || re(e, "template.views.read.nodes", []).filter((n) => n.itemType === "header" && !!n.value.header).map((n) => n.value.header.substring(5)).forEach((n) => {
|
|
38960
39103
|
if (e.data[n] && e.data[n].layout === "legacy") {
|
|
38961
|
-
const i = {
|
|
39104
|
+
const i = {
|
|
39105
|
+
...t,
|
|
39106
|
+
...Ka(e.data.theme)
|
|
39107
|
+
};
|
|
38962
39108
|
e.data[n] = Mye({
|
|
38963
39109
|
header: {
|
|
38964
39110
|
...e.data[n],
|
|
@@ -38991,12 +39137,17 @@ const $ye = (e) => {
|
|
|
38991
39137
|
answer: ["answer"]
|
|
38992
39138
|
}, Nye = () => ({
|
|
38993
39139
|
docChapter: {
|
|
38994
|
-
parties: {
|
|
39140
|
+
parties: {
|
|
39141
|
+
title: zn("parties"),
|
|
39142
|
+
classList: "print-avoid-break-inside"
|
|
39143
|
+
},
|
|
38995
39144
|
workPackage: { title: zn("workPackage") },
|
|
38996
39145
|
warningInfo: { title: zn("warningInfo") },
|
|
38997
39146
|
estimatedTime: { title: zn("estimatedTime") },
|
|
38998
39147
|
extraWorkTimeImpact: { title: zn("extraWorkTimeImpact") },
|
|
38999
|
-
extraWorkConstructionPricingList: {
|
|
39148
|
+
extraWorkConstructionPricingList: {
|
|
39149
|
+
title: zn("extraWorkConstructionPricingList")
|
|
39150
|
+
},
|
|
39000
39151
|
paymentTerms: { title: zn("paymentTerms") },
|
|
39001
39152
|
misc: { title: zn("misc") }
|
|
39002
39153
|
},
|
|
@@ -39008,8 +39159,12 @@ const $ye = (e) => {
|
|
|
39008
39159
|
notIncluded: { title: Wt("notIncluded") },
|
|
39009
39160
|
warningInfo: { title: Wt("warningInfo") },
|
|
39010
39161
|
estimatedTimeToComplete: { title: Wt("estimatedTimeToComplete") },
|
|
39011
|
-
estimatedWorkStartAndEndAt: {
|
|
39012
|
-
|
|
39162
|
+
estimatedWorkStartAndEndAt: {
|
|
39163
|
+
title: Wt("estimatedWorkStartAndEndAt")
|
|
39164
|
+
},
|
|
39165
|
+
extraWorkConstructionPricingList: {
|
|
39166
|
+
title: Wt("extraWorkConstructionPricingList")
|
|
39167
|
+
},
|
|
39013
39168
|
extraWorkTravelCosts: { title: Wt("extraWorkTravelCosts") },
|
|
39014
39169
|
paymentTerms: { title: Wt("paymentTerms") },
|
|
39015
39170
|
miscAgreement: { title: Wt("miscAgreement") },
|
|
@@ -39027,14 +39182,26 @@ const $ye = (e) => {
|
|
|
39027
39182
|
"custom",
|
|
39028
39183
|
"termsDisclaimer"
|
|
39029
39184
|
], jye = (e) => {
|
|
39030
|
-
for (const [t, r] of Object.entries(
|
|
39185
|
+
for (const [t, r] of Object.entries(
|
|
39186
|
+
Iye
|
|
39187
|
+
))
|
|
39031
39188
|
if (r.includes(e))
|
|
39032
39189
|
return t;
|
|
39033
39190
|
return e;
|
|
39034
|
-
}, Fye = ({
|
|
39191
|
+
}, Fye = ({
|
|
39192
|
+
data: e,
|
|
39193
|
+
tree: t,
|
|
39194
|
+
bindData: r = !1,
|
|
39195
|
+
customProps: n = {},
|
|
39196
|
+
pdfOptions: i = {}
|
|
39197
|
+
}) => {
|
|
39035
39198
|
const a = /* @__PURE__ */ Object.create(null), o = Nye();
|
|
39036
39199
|
t.forEach((l) => {
|
|
39037
|
-
const c = jye(l.itemType), u = re(
|
|
39200
|
+
const c = jye(l.itemType), u = re(
|
|
39201
|
+
o,
|
|
39202
|
+
`${c}.${l.itemId}`,
|
|
39203
|
+
{}
|
|
39204
|
+
), d = l.value && typeof l.value == "object";
|
|
39038
39205
|
r && d && (Object.keys(l.value).forEach((p) => {
|
|
39039
39206
|
u[p] = re(e, `${l.value[p]}`);
|
|
39040
39207
|
}), l._value = l.value), a[l.nodeId] = {
|
|
@@ -39267,7 +39434,10 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
39267
39434
|
type: "object",
|
|
39268
39435
|
required: ["subject", "title", "content"],
|
|
39269
39436
|
properties: {
|
|
39270
|
-
subject: {
|
|
39437
|
+
subject: {
|
|
39438
|
+
type: "string",
|
|
39439
|
+
default: "Dokument från {{company.name}} - {{document.data.name}}"
|
|
39440
|
+
},
|
|
39271
39441
|
title: { type: "string", default: "Hej{{clientFirstName}}!" },
|
|
39272
39442
|
content: {
|
|
39273
39443
|
type: "string",
|
|
@@ -39285,7 +39455,10 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
39285
39455
|
type: "object",
|
|
39286
39456
|
required: ["subject", "title", "content"],
|
|
39287
39457
|
properties: {
|
|
39288
|
-
subject: {
|
|
39458
|
+
subject: {
|
|
39459
|
+
type: "string",
|
|
39460
|
+
default: "Glöm inte bort att läsa dokumentet: {{document.data.name}}"
|
|
39461
|
+
},
|
|
39289
39462
|
title: { type: "string", default: "Hej{{clientFirstName}}!" },
|
|
39290
39463
|
content: {
|
|
39291
39464
|
type: "string",
|
|
@@ -39303,7 +39476,10 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
39303
39476
|
type: "object",
|
|
39304
39477
|
required: ["subject", "title", "content"],
|
|
39305
39478
|
properties: {
|
|
39306
|
-
subject: {
|
|
39479
|
+
subject: {
|
|
39480
|
+
type: "string",
|
|
39481
|
+
default: "Påminnelse! Lämna svar på dokumentet - {{document.data.name}}"
|
|
39482
|
+
},
|
|
39307
39483
|
title: { type: "string", default: "Hej{{clientFirstName}}!" },
|
|
39308
39484
|
content: {
|
|
39309
39485
|
type: "string",
|
|
@@ -39321,7 +39497,10 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
39321
39497
|
type: "object",
|
|
39322
39498
|
required: ["subject", "title", "content"],
|
|
39323
39499
|
properties: {
|
|
39324
|
-
subject: {
|
|
39500
|
+
subject: {
|
|
39501
|
+
type: "string",
|
|
39502
|
+
default: "Påminnelse! Dokumentet - {{document.data.name}} - behöver ditt svar"
|
|
39503
|
+
},
|
|
39325
39504
|
title: { type: "string", default: "Hej{{clientFirstName}}!" },
|
|
39326
39505
|
content: {
|
|
39327
39506
|
type: "string",
|
|
@@ -39407,7 +39586,10 @@ Glöm inte bort att läsa dokumentet från {{company.name}}. Läs mer och lämna
|
|
|
39407
39586
|
fontSize: "16px"
|
|
39408
39587
|
}
|
|
39409
39588
|
}
|
|
39410
|
-
}, tb = { type: "object", default: {} }, rb = {
|
|
39589
|
+
}, tb = { type: "object", default: {} }, rb = {
|
|
39590
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
39591
|
+
default: ""
|
|
39592
|
+
}, nb = { anyOf: [{ type: "string" }, { type: "null" }] }, ib = { anyOf: [{ type: "string" }, { type: "null" }] }, ab = { $ref: `${_e.api.baseUrl}/schemas/price/1.json` }, ob = { type: "string", format: "date-time" }, sb = { type: "object" }, Dx = {
|
|
39411
39593
|
reminders: Jy,
|
|
39412
39594
|
smsTemplate: Zy,
|
|
39413
39595
|
emailTemplate: Xy,
|
|
@@ -42939,32 +43121,32 @@ class Rl extends yg {
|
|
|
42939
43121
|
// ? does this still exist as a setting ?
|
|
42940
43122
|
showClingLogo: v
|
|
42941
43123
|
} = i["settings/allCompanySettings"] || {};
|
|
42942
|
-
super(
|
|
42943
|
-
|
|
42944
|
-
{
|
|
42945
|
-
|
|
42946
|
-
|
|
42947
|
-
|
|
42948
|
-
|
|
42949
|
-
|
|
42950
|
-
|
|
42951
|
-
|
|
42952
|
-
|
|
42953
|
-
|
|
42954
|
-
|
|
42955
|
-
|
|
42956
|
-
|
|
42957
|
-
|
|
42958
|
-
|
|
42959
|
-
|
|
42960
|
-
|
|
42961
|
-
})
|
|
42962
|
-
}
|
|
42963
|
-
), this._documentOptions = r, this._can = n, this._defaultScope = "documents", this._getters = i;
|
|
43124
|
+
super(o, {
|
|
43125
|
+
...r,
|
|
43126
|
+
props: {
|
|
43127
|
+
defaultSenderString: s,
|
|
43128
|
+
defaultReceiverString: l,
|
|
43129
|
+
...r.props
|
|
43130
|
+
},
|
|
43131
|
+
readPrices: n ? n("prices", "read") : !0,
|
|
43132
|
+
isPreview: !0,
|
|
43133
|
+
settingsTheme: Ka({
|
|
43134
|
+
background: d,
|
|
43135
|
+
backgroundFilter: p,
|
|
43136
|
+
showPriceSummary: h,
|
|
43137
|
+
priceSummaryBackground: f,
|
|
43138
|
+
headingColor: m,
|
|
43139
|
+
fontFamily: g,
|
|
43140
|
+
showClingLogo: v
|
|
43141
|
+
})
|
|
43142
|
+
}), this._documentOptions = r, this._can = n, this._defaultScope = "documents", this._getters = i;
|
|
42964
43143
|
const y = a || !Object.keys(re(this, "_doc.company", {})).length || !Object.keys(re(this, "_doc.companyUser", {})).length, b = y ? this._doc.companyId ? i["companies/companyById"](this._doc.companyId) : i["application/company"] : this._doc.company;
|
|
42965
43144
|
b && y && (b.fSkatt = c, b.insurance = u);
|
|
42966
43145
|
const _ = y ? this._doc.companyUserId ? i["companyUsers/referenceById"](this._doc.companyUserId) : i["application/user"] : this._doc.companyUser;
|
|
42967
|
-
this.sender = this._documentOptions.sender || {
|
|
43146
|
+
this.sender = this._documentOptions.sender || {
|
|
43147
|
+
company: b,
|
|
43148
|
+
user: _
|
|
43149
|
+
};
|
|
42968
43150
|
const w = this._getters["application/companyAccount"], E = re(w, "customViewRoute"), R = this._getters["application/feature"]("subdomain") && E;
|
|
42969
43151
|
this._baseDomain = R ? E : _e.baseUrl;
|
|
42970
43152
|
}
|
|
@@ -42987,7 +43169,9 @@ class Rl extends yg {
|
|
|
42987
43169
|
if (!t.length)
|
|
42988
43170
|
return;
|
|
42989
43171
|
const { _getters: r } = this, n = r["settings/reminderSettings"], i = (a, o) => t.filter(({ type: s }) => s === a).map((s) => (s.sendDays = o, !0));
|
|
42990
|
-
typeof n.notAnswered < "u" && i("reminder", n.notAnswered), typeof n.notViewed < "u" && i("viewed", n.notViewed), typeof n.expires < "u" && i("expires", n.expires), t = t.filter(
|
|
43172
|
+
typeof n.notAnswered < "u" && i("reminder", n.notAnswered), typeof n.notViewed < "u" && i("viewed", n.notViewed), typeof n.expires < "u" && i("expires", n.expires), t = t.filter(
|
|
43173
|
+
({ type: a, sendDays: o }) => a === "first" || o
|
|
43174
|
+
), this.reminders = t;
|
|
42991
43175
|
}
|
|
42992
43176
|
/**
|
|
42993
43177
|
* Clone a companyDocument, returns a identical copy
|
|
@@ -43057,7 +43241,9 @@ const Ewe = (e) => ({
|
|
|
43057
43241
|
// Temporary
|
|
43058
43242
|
partiesString: {
|
|
43059
43243
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
43060
|
-
default: ne.t("components:document.chapters.parties.title", {
|
|
43244
|
+
default: ne.t("components:document.chapters.parties.title", {
|
|
43245
|
+
lng: e
|
|
43246
|
+
})
|
|
43061
43247
|
},
|
|
43062
43248
|
"header-kh0loiq7": {
|
|
43063
43249
|
default: {
|
|
@@ -43098,7 +43284,10 @@ const Ewe = (e) => ({
|
|
|
43098
43284
|
default: {
|
|
43099
43285
|
kh0lol91: {
|
|
43100
43286
|
type: "",
|
|
43101
|
-
title: ne.t(
|
|
43287
|
+
title: ne.t(
|
|
43288
|
+
"components:document.chapters.packageGroup.title",
|
|
43289
|
+
{ lng: e }
|
|
43290
|
+
),
|
|
43102
43291
|
hideGroupPrice: !1,
|
|
43103
43292
|
packages: []
|
|
43104
43293
|
}
|
|
@@ -43221,7 +43410,10 @@ const Ewe = (e) => ({
|
|
|
43221
43410
|
type: "object",
|
|
43222
43411
|
required: ["clients", "data"],
|
|
43223
43412
|
properties: {
|
|
43224
|
-
tags: {
|
|
43413
|
+
tags: {
|
|
43414
|
+
type: "array",
|
|
43415
|
+
default: [{ name: "document", type: "category" }]
|
|
43416
|
+
},
|
|
43225
43417
|
docNumber: {
|
|
43226
43418
|
type: "object",
|
|
43227
43419
|
properties: {
|
|
@@ -43278,18 +43470,31 @@ const Ewe = (e) => ({
|
|
|
43278
43470
|
const t = Ewe(e);
|
|
43279
43471
|
return {
|
|
43280
43472
|
...t,
|
|
43281
|
-
views: Object.keys(t.views).reduce(
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43285
|
-
|
|
43286
|
-
|
|
43287
|
-
|
|
43473
|
+
views: Object.keys(t.views).reduce(
|
|
43474
|
+
(r, n) => ({
|
|
43475
|
+
...r,
|
|
43476
|
+
[n]: {
|
|
43477
|
+
...t.views[n],
|
|
43478
|
+
nodes: hg(t.views[n].nodes, {
|
|
43479
|
+
setId: !0
|
|
43480
|
+
})
|
|
43481
|
+
}
|
|
43482
|
+
}),
|
|
43483
|
+
{}
|
|
43484
|
+
)
|
|
43288
43485
|
};
|
|
43289
43486
|
}, tT = {
|
|
43290
43487
|
default: Twe,
|
|
43291
43488
|
empty: xwe
|
|
43292
|
-
}, {
|
|
43489
|
+
}, {
|
|
43490
|
+
FORM_CLEAR_FORM: rT,
|
|
43491
|
+
CLEAR_DOCUMENT2_ANSWERS: nT,
|
|
43492
|
+
DO_SEND_DOCUMENT2: kwe,
|
|
43493
|
+
SHOW_MESSAGE: Swe,
|
|
43494
|
+
LOAD_ENDCUSTOMER: Owe,
|
|
43495
|
+
UPDATE_TEMPLATE: Cwe,
|
|
43496
|
+
DO_CREATE_TEMPLATE: Awe
|
|
43497
|
+
} = Oe, {
|
|
43293
43498
|
LOAD_DOCUMENT2_FORM: $we,
|
|
43294
43499
|
LOAD_DOCUMENT2_PUBLIC_FORM: Pwe,
|
|
43295
43500
|
LOAD_DUPLICATE_DOCUMENT2_FORM: iT,
|
|
@@ -43322,16 +43527,16 @@ async function Nwe({
|
|
|
43322
43527
|
return !1;
|
|
43323
43528
|
const {
|
|
43324
43529
|
name: l,
|
|
43325
|
-
params: {
|
|
43326
|
-
id: c
|
|
43327
|
-
}
|
|
43530
|
+
params: { id: c }
|
|
43328
43531
|
} = r.route || {}, {
|
|
43329
43532
|
id: u,
|
|
43330
|
-
template: {
|
|
43331
|
-
id: d
|
|
43332
|
-
}
|
|
43533
|
+
template: { id: d }
|
|
43333
43534
|
} = s;
|
|
43334
|
-
return ["documentForm"].includes(l) && (e ? u && u === c && u === e && (_n.debug(
|
|
43535
|
+
return ["documentForm"].includes(l) && (e ? u && u === c && u === e && (_n.debug(
|
|
43536
|
+
"DYNDOC_FORM: Using existing store data existing id match route"
|
|
43537
|
+
), o = !0) : !u && !e && (t === "default" && !d || t === d) && (_n.debug("DYNDOC_FORM: Using existing store data as no ids was found"), o = !0)), o && _n.debug(
|
|
43538
|
+
"DYNDOC_FORM: Dont reload as forms/document2 is already defined"
|
|
43539
|
+
), o;
|
|
43335
43540
|
}
|
|
43336
43541
|
const Lwe = {
|
|
43337
43542
|
/**
|
|
@@ -43341,13 +43546,7 @@ const Lwe = {
|
|
|
43341
43546
|
* @param {Object} object Document parameters (optional)
|
|
43342
43547
|
* @param {Number} object.docId Numeric document id (optional)
|
|
43343
43548
|
*/
|
|
43344
|
-
async [$we]({
|
|
43345
|
-
commit: e,
|
|
43346
|
-
rootState: t,
|
|
43347
|
-
rootGetters: r,
|
|
43348
|
-
state: n,
|
|
43349
|
-
dispatch: i
|
|
43350
|
-
}, {
|
|
43549
|
+
async [$we]({ commit: e, rootState: t, rootGetters: r, state: n, dispatch: i }, {
|
|
43351
43550
|
documentId: a = null,
|
|
43352
43551
|
templateId: o = null,
|
|
43353
43552
|
galleryId: s = null,
|
|
@@ -43359,7 +43558,14 @@ const Lwe = {
|
|
|
43359
43558
|
dummyClient: h = !1
|
|
43360
43559
|
} = {}) {
|
|
43361
43560
|
var y;
|
|
43362
|
-
if (await Nwe({
|
|
43561
|
+
if (await Nwe({
|
|
43562
|
+
id: a,
|
|
43563
|
+
templateId: o,
|
|
43564
|
+
rootState: t,
|
|
43565
|
+
state: n,
|
|
43566
|
+
rootGetters: r,
|
|
43567
|
+
dispatch: i
|
|
43568
|
+
}) && !l)
|
|
43363
43569
|
return;
|
|
43364
43570
|
let m = {
|
|
43365
43571
|
id: null,
|
|
@@ -43394,7 +43600,10 @@ const Lwe = {
|
|
|
43394
43600
|
}
|
|
43395
43601
|
if (_ || (await this.dispatch(Oe.LOAD_TEMPLATE, { id: o }), _ = this.getters["templates/byId"](o)), !_)
|
|
43396
43602
|
throw new Error(`Could not find template by id: '${o}'`);
|
|
43397
|
-
m.template = {
|
|
43603
|
+
m.template = {
|
|
43604
|
+
..._._data,
|
|
43605
|
+
defaultData: _.defaultData
|
|
43606
|
+
};
|
|
43398
43607
|
} else if (s) {
|
|
43399
43608
|
const { data: _ } = await pA.get({
|
|
43400
43609
|
_id: s,
|
|
@@ -43419,7 +43628,9 @@ const Lwe = {
|
|
|
43419
43628
|
// Merge input and default clients
|
|
43420
43629
|
clients: [...(b == null ? void 0 : b.clients) || [], ...m.clients]
|
|
43421
43630
|
}, Object.keys(t.settings.company).length || await this.dispatch(Oe.LOAD_SETTINGS_COMPANY), l) {
|
|
43422
|
-
await this.dispatch(Oe.DO_LOAD_DOCUMENT2, {
|
|
43631
|
+
await this.dispatch(Oe.DO_LOAD_DOCUMENT2, {
|
|
43632
|
+
id: l
|
|
43633
|
+
});
|
|
43423
43634
|
const _ = this.getters["documents2/byId"](l), { publicId: w, clients: E } = _.duplicate();
|
|
43424
43635
|
m = {
|
|
43425
43636
|
...m,
|
|
@@ -43434,7 +43645,12 @@ const Lwe = {
|
|
|
43434
43645
|
}
|
|
43435
43646
|
if (c && (m.projectId = c), u) {
|
|
43436
43647
|
await this.dispatch(Owe, { id: u });
|
|
43437
|
-
const b = r["endCustomers/endCustomerById"](u), _ = re(
|
|
43648
|
+
const b = r["endCustomers/endCustomerById"](u), _ = re(
|
|
43649
|
+
m,
|
|
43650
|
+
"template.defaultData.data.defaultAnswerMethod"
|
|
43651
|
+
), w = Pye(b, {
|
|
43652
|
+
..._ && { answerMethod: _ }
|
|
43653
|
+
});
|
|
43438
43654
|
m.clients = [...m.clients, w];
|
|
43439
43655
|
}
|
|
43440
43656
|
if (h) {
|
|
@@ -43467,14 +43683,19 @@ const Lwe = {
|
|
|
43467
43683
|
];
|
|
43468
43684
|
}
|
|
43469
43685
|
const g = re(m, "data.defaultAnswerMethod", null);
|
|
43470
|
-
g && (m.clients = m.clients.map(
|
|
43686
|
+
g && (m.clients = m.clients.map(
|
|
43687
|
+
(b) => re(b, "answerMethod.accept") !== "inPerson" ? { ...b, answerMethod: g } : b
|
|
43688
|
+
) || []);
|
|
43471
43689
|
let v = {
|
|
43472
43690
|
...m,
|
|
43473
43691
|
data: {
|
|
43474
43692
|
...m.data,
|
|
43475
43693
|
...!a && {
|
|
43476
43694
|
// TODO - Add key to template to know which path to read it from
|
|
43477
|
-
reminders: this.getters["forms/getDocumentAccountDefault"](
|
|
43695
|
+
reminders: this.getters["forms/getDocumentAccountDefault"](
|
|
43696
|
+
"reminders",
|
|
43697
|
+
{ template: new Wr(m.template) }
|
|
43698
|
+
)
|
|
43478
43699
|
}
|
|
43479
43700
|
}
|
|
43480
43701
|
};
|
|
@@ -43489,11 +43710,7 @@ const Lwe = {
|
|
|
43489
43710
|
* @param {Object} Vuex object
|
|
43490
43711
|
* @param {Object} formData Document parameters (optional)
|
|
43491
43712
|
*/
|
|
43492
|
-
async [Pwe]({
|
|
43493
|
-
commit: e
|
|
43494
|
-
}, {
|
|
43495
|
-
formData: t = null
|
|
43496
|
-
} = {}) {
|
|
43713
|
+
async [Pwe]({ commit: e }, { formData: t = null } = {}) {
|
|
43497
43714
|
let r = {
|
|
43498
43715
|
id: null,
|
|
43499
43716
|
language: ne.lang,
|
|
@@ -43506,8 +43723,13 @@ const Lwe = {
|
|
|
43506
43723
|
};
|
|
43507
43724
|
if (!t) {
|
|
43508
43725
|
if (!r.template) {
|
|
43509
|
-
const a = new Wr(
|
|
43510
|
-
|
|
43726
|
+
const a = new Wr(
|
|
43727
|
+
tT.default(r.language)
|
|
43728
|
+
);
|
|
43729
|
+
r.template = {
|
|
43730
|
+
...a._data,
|
|
43731
|
+
defaultData: a.defaultData
|
|
43732
|
+
};
|
|
43511
43733
|
}
|
|
43512
43734
|
const i = re(r, "template.defaultData", {});
|
|
43513
43735
|
r = {
|
|
@@ -43517,7 +43739,9 @@ const Lwe = {
|
|
|
43517
43739
|
}
|
|
43518
43740
|
r.language === "sv" && r.data.defaultAnswerMethod && (r.data.defaultAnswerMethod.accept = "bankId");
|
|
43519
43741
|
const n = re(r, "data.defaultAnswerMethod", null);
|
|
43520
|
-
n && (r.clients = r.clients.map(
|
|
43742
|
+
n && (r.clients = r.clients.map(
|
|
43743
|
+
(i) => re(i, "answerMethod.accept") !== "inPerson" ? { ...i, answerMethod: n } : i
|
|
43744
|
+
) || []), e(Qf, {
|
|
43521
43745
|
key: "document2",
|
|
43522
43746
|
formData: {
|
|
43523
43747
|
...r,
|
|
@@ -43533,7 +43757,14 @@ const Lwe = {
|
|
|
43533
43757
|
* @param {Object} obj
|
|
43534
43758
|
* @param {String} obj.id
|
|
43535
43759
|
*/
|
|
43536
|
-
async [iT]({ commit: e, dispatch: t }, {
|
|
43760
|
+
async [iT]({ commit: e, dispatch: t }, {
|
|
43761
|
+
id: r,
|
|
43762
|
+
publicDocId: n,
|
|
43763
|
+
projectId: i = null,
|
|
43764
|
+
keepClients: a = !1,
|
|
43765
|
+
isPublicForm: o = !1,
|
|
43766
|
+
_formData: s = null
|
|
43767
|
+
}) {
|
|
43537
43768
|
if (!r && !n)
|
|
43538
43769
|
throw new Error("Missing parameter id");
|
|
43539
43770
|
let l;
|
|
@@ -43612,8 +43843,13 @@ const Lwe = {
|
|
|
43612
43843
|
async [aT]({ rootGetters: e, getters: t, commit: r }, { showMessage: n = !0 } = {}) {
|
|
43613
43844
|
const { document: i } = t;
|
|
43614
43845
|
let { id: a } = i;
|
|
43615
|
-
const o = (c) => Ba.t(`documentTemplateView.${c}`, {
|
|
43616
|
-
|
|
43846
|
+
const o = (c) => Ba.t(`documentTemplateView.${c}`, {
|
|
43847
|
+
lng: i.language,
|
|
43848
|
+
interpolation: { prefix: "__", suffix: "__" }
|
|
43849
|
+
}), s = re(i, "data.defaultAnswerMethod", null);
|
|
43850
|
+
s && (i.clients = i.clients.map(
|
|
43851
|
+
(c) => re(c, "answerMethod.accept") !== "inPerson" ? { ...c, answerMethod: s } : c
|
|
43852
|
+
));
|
|
43617
43853
|
const l = {
|
|
43618
43854
|
...i,
|
|
43619
43855
|
data: {
|
|
@@ -43665,7 +43901,11 @@ const Lwe = {
|
|
|
43665
43901
|
timeZone: re(Intl.DateTimeFormat().resolvedOptions(), "timeZone") || ""
|
|
43666
43902
|
}
|
|
43667
43903
|
};
|
|
43668
|
-
return delete l.company, delete l.companyUser, a ? (i.clearAnswerBeforePut && (await this.dispatch(nT, { id: a, doFetch: !1 }), await this.dispatch(Oe.DO_UPDATE_DOCUMENT2, {
|
|
43904
|
+
return delete l.company, delete l.companyUser, a ? (i.clearAnswerBeforePut && (await this.dispatch(nT, { id: a, doFetch: !1 }), await this.dispatch(Oe.DO_UPDATE_DOCUMENT2, {
|
|
43905
|
+
id: a,
|
|
43906
|
+
body: { status: "draft" },
|
|
43907
|
+
showMessage: n
|
|
43908
|
+
})), await this.dispatch(Oe.DO_UPDATE_DOCUMENT2, { id: a, body: l, showMessage: n })) : (a = await this.dispatch(Oe.DO_CREATE_DOCUMENT2, { body: l }), r(oT, { key: "document2.id", value: a })), e["settings/showOverviewOnboardingOverlay"] && this.dispatch("settings/UPDATE_SETTINGS", {
|
|
43669
43909
|
key: "companyUser",
|
|
43670
43910
|
settings: { showOverviewOnboardingOverlay: !1 }
|
|
43671
43911
|
}), a;
|
|
@@ -43699,9 +43939,16 @@ const Lwe = {
|
|
|
43699
43939
|
text: ne.t(`actions:editDocumentDialog.${c}.submit`),
|
|
43700
43940
|
callback: async () => {
|
|
43701
43941
|
if (c === "accepted")
|
|
43702
|
-
await t(iT, {
|
|
43942
|
+
await t(iT, {
|
|
43943
|
+
id: a,
|
|
43944
|
+
projectId: s,
|
|
43945
|
+
keepClients: !0
|
|
43946
|
+
}), this.$router.push({ name: "documentForm" });
|
|
43703
43947
|
else if (c === "hasAnswers") {
|
|
43704
|
-
await this.dispatch(nT, {
|
|
43948
|
+
await this.dispatch(nT, {
|
|
43949
|
+
id: a,
|
|
43950
|
+
doFetch: !0
|
|
43951
|
+
});
|
|
43705
43952
|
const u = { name: "documentForm", params: a ? { id: a } : {} };
|
|
43706
43953
|
this.$router.push(u);
|
|
43707
43954
|
}
|
|
@@ -43725,15 +43972,22 @@ const Lwe = {
|
|
|
43725
43972
|
const { document: n } = t;
|
|
43726
43973
|
if (n != null && n.externalReferences && n.externalReferences.length)
|
|
43727
43974
|
try {
|
|
43728
|
-
await Promise.all(
|
|
43729
|
-
|
|
43730
|
-
|
|
43731
|
-
|
|
43732
|
-
|
|
43733
|
-
|
|
43734
|
-
|
|
43735
|
-
|
|
43736
|
-
|
|
43975
|
+
await Promise.all(
|
|
43976
|
+
(n.externalReferences || []).map(
|
|
43977
|
+
async ({ service: i, type: a, typeId: o }) => {
|
|
43978
|
+
if (a && o && i && e["settings/isAuthenticatedCRM"](i)) {
|
|
43979
|
+
const { data: s } = await fA.getFields(
|
|
43980
|
+
i,
|
|
43981
|
+
{ type: a, typeId: o, populated: !0 }
|
|
43982
|
+
);
|
|
43983
|
+
r(oT, {
|
|
43984
|
+
key: "document2.data.fields",
|
|
43985
|
+
value: { ...re(n, "data.fields"), ...s }
|
|
43986
|
+
});
|
|
43987
|
+
}
|
|
43988
|
+
}
|
|
43989
|
+
)
|
|
43990
|
+
);
|
|
43737
43991
|
} catch (i) {
|
|
43738
43992
|
this.handleError(i);
|
|
43739
43993
|
}
|
|
@@ -43858,7 +44112,9 @@ const qwe = {
|
|
|
43858
44112
|
const s = (c, u) => o.filter(({ type: d }) => d === c).forEach((d) => {
|
|
43859
44113
|
d.sendDays = u;
|
|
43860
44114
|
}), l = n["settings/reminderSettings"];
|
|
43861
|
-
l.notAnswered !== void 0 && s("reminder", l.notAnswered), l.notViewed !== void 0 && s("viewed", l.notViewed), l.expires !== void 0 && s("expires", l.expires), o = o.filter(
|
|
44115
|
+
l.notAnswered !== void 0 && s("reminder", l.notAnswered), l.notViewed !== void 0 && s("viewed", l.notViewed), l.expires !== void 0 && s("expires", l.expires), o = o.filter(
|
|
44116
|
+
({ type: c, sendDays: u }) => c === "first" || u
|
|
44117
|
+
);
|
|
43862
44118
|
}
|
|
43863
44119
|
return o;
|
|
43864
44120
|
}
|
|
@@ -43907,10 +44163,7 @@ const qwe = {
|
|
|
43907
44163
|
DELETE_ONE_FILE: Qwe,
|
|
43908
44164
|
SET_FILES_FETCHING: pT,
|
|
43909
44165
|
SET_FILES_POSTING: Bn
|
|
43910
|
-
} = jy, {
|
|
43911
|
-
SET_FORM: fT,
|
|
43912
|
-
CLEAR_FORM: e_e
|
|
43913
|
-
} = $e.forms, t_e = {
|
|
44166
|
+
} = jy, { SET_FORM: fT, CLEAR_FORM: e_e } = $e.forms, t_e = {
|
|
43914
44167
|
/**
|
|
43915
44168
|
* @name LOAD_FILE
|
|
43916
44169
|
* Load one file by id into store
|
|
@@ -44050,7 +44303,11 @@ const qwe = {
|
|
|
44050
44303
|
blob: null,
|
|
44051
44304
|
fileName: null
|
|
44052
44305
|
};
|
|
44053
|
-
return e(
|
|
44306
|
+
return e(
|
|
44307
|
+
`forms/${fT}`,
|
|
44308
|
+
{ key: "file", formData: t },
|
|
44309
|
+
{ root: !0 }
|
|
44310
|
+
);
|
|
44054
44311
|
},
|
|
44055
44312
|
/**
|
|
44056
44313
|
* @name FORM_EDIT_FILE
|
|
@@ -44065,7 +44322,11 @@ const qwe = {
|
|
|
44065
44322
|
...to(t.data[r], n),
|
|
44066
44323
|
id: r
|
|
44067
44324
|
};
|
|
44068
|
-
return e(
|
|
44325
|
+
return e(
|
|
44326
|
+
`forms/${fT}`,
|
|
44327
|
+
{ key: "file", formData: i },
|
|
44328
|
+
{ root: !0 }
|
|
44329
|
+
);
|
|
44069
44330
|
},
|
|
44070
44331
|
/**
|
|
44071
44332
|
* @name FORM_SUBMIT_FILE
|
|
@@ -44495,9 +44756,7 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44495
44756
|
SET_PROJECT_NOTES: AT,
|
|
44496
44757
|
SET_PROJECT_NOTES_FETCHING: $T,
|
|
44497
44758
|
SET_PROJECT_NOTES_POSTING: Mc
|
|
44498
|
-
} = tr, {
|
|
44499
|
-
SET_FORM: PT
|
|
44500
|
-
} = zr, Yxe = {
|
|
44759
|
+
} = tr, { SET_FORM: PT } = zr, Yxe = {
|
|
44501
44760
|
/**
|
|
44502
44761
|
* @name LOAD_PROJECT_NOTE
|
|
44503
44762
|
* Load one project notes by id
|
|
@@ -44586,7 +44845,11 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44586
44845
|
ProjectId: t,
|
|
44587
44846
|
text: ""
|
|
44588
44847
|
};
|
|
44589
|
-
e(
|
|
44848
|
+
e(
|
|
44849
|
+
`forms/${PT}`,
|
|
44850
|
+
{ key: "projectNote", formData: r },
|
|
44851
|
+
{ root: !0 }
|
|
44852
|
+
);
|
|
44590
44853
|
},
|
|
44591
44854
|
/**
|
|
44592
44855
|
* @name FORM_EDIT_PROJECT_NOTE
|
|
@@ -44598,7 +44861,11 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44598
44861
|
async [OT]({ commit: e, state: t }, { projectId: r }) {
|
|
44599
44862
|
try {
|
|
44600
44863
|
const n = t.data[r].ProjectNote;
|
|
44601
|
-
e(
|
|
44864
|
+
e(
|
|
44865
|
+
`forms/${PT}`,
|
|
44866
|
+
{ key: "projectNote", formData: n },
|
|
44867
|
+
{ root: !0 }
|
|
44868
|
+
);
|
|
44602
44869
|
} catch (n) {
|
|
44603
44870
|
this.handleError(n, {
|
|
44604
44871
|
object: "projectNote",
|
|
@@ -44680,7 +44947,10 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44680
44947
|
throw new Error("Missing parameter projectId");
|
|
44681
44948
|
if (typeof r > "u")
|
|
44682
44949
|
throw new Error("Missing parameter fileId");
|
|
44683
|
-
const { data: n } = await mte({
|
|
44950
|
+
const { data: n } = await mte({
|
|
44951
|
+
ProjectId: t,
|
|
44952
|
+
FileId: r
|
|
44953
|
+
});
|
|
44684
44954
|
return await this.dispatch(Oe.SET_AS_NORMALIZED_DATA, {
|
|
44685
44955
|
data: [n],
|
|
44686
44956
|
schema: "projectFiles"
|
|
@@ -44809,11 +45079,7 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44809
45079
|
SET_PROJECT_SORT: rTe,
|
|
44810
45080
|
SET_QUICKVIEW_PROJECT: ph,
|
|
44811
45081
|
CLEAR_PROJECTS: nTe
|
|
44812
|
-
} = Ur, {
|
|
44813
|
-
UPDATE_VIEW_SETTINGS: iTe,
|
|
44814
|
-
DO_UPDATE_SETTINGS: fh,
|
|
44815
|
-
DO_LOAD_CURRENT_COMPANY: aTe
|
|
44816
|
-
} = Oe, {
|
|
45082
|
+
} = Ur, { UPDATE_VIEW_SETTINGS: iTe, DO_UPDATE_SETTINGS: fh, DO_LOAD_CURRENT_COMPANY: aTe } = Oe, {
|
|
44817
45083
|
CLEAR_PROJECT_DATA: oTe,
|
|
44818
45084
|
SET_PROJECTS_POSTING: dt,
|
|
44819
45085
|
SET_PROJECTS_FETCHING: _i,
|
|
@@ -44865,23 +45131,36 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
44865
45131
|
let l = {};
|
|
44866
45132
|
s.forEach(({ cachedDocuments: p }) => {
|
|
44867
45133
|
if (p) {
|
|
44868
|
-
const h = Object.keys(p.documents).reduce(
|
|
44869
|
-
|
|
44870
|
-
|
|
44871
|
-
|
|
44872
|
-
|
|
44873
|
-
|
|
44874
|
-
|
|
44875
|
-
|
|
44876
|
-
|
|
44877
|
-
|
|
44878
|
-
|
|
44879
|
-
|
|
44880
|
-
|
|
44881
|
-
|
|
44882
|
-
|
|
44883
|
-
|
|
44884
|
-
|
|
45134
|
+
const h = Object.keys(p.documents).reduce(
|
|
45135
|
+
(f, m) => ({
|
|
45136
|
+
...f,
|
|
45137
|
+
[m]: {
|
|
45138
|
+
id: m,
|
|
45139
|
+
data: {
|
|
45140
|
+
name: p.documents[m].name,
|
|
45141
|
+
clients: [
|
|
45142
|
+
{
|
|
45143
|
+
name: re(
|
|
45144
|
+
p,
|
|
45145
|
+
`documents[${m}].firstClient.name`,
|
|
45146
|
+
""
|
|
45147
|
+
),
|
|
45148
|
+
type: re(
|
|
45149
|
+
p,
|
|
45150
|
+
`documents[${m}].firstClient.type`
|
|
45151
|
+
),
|
|
45152
|
+
addresses: re(
|
|
45153
|
+
p,
|
|
45154
|
+
`documents[${m}].firstClient.addresses`
|
|
45155
|
+
)
|
|
45156
|
+
}
|
|
45157
|
+
]
|
|
45158
|
+
},
|
|
45159
|
+
status: p.documents[m].status
|
|
45160
|
+
}
|
|
45161
|
+
}),
|
|
45162
|
+
{}
|
|
45163
|
+
);
|
|
44885
45164
|
l = { ...l, ...h };
|
|
44886
45165
|
}
|
|
44887
45166
|
});
|
|
@@ -45072,7 +45351,10 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
45072
45351
|
try {
|
|
45073
45352
|
t(dt, !0);
|
|
45074
45353
|
const { data: r } = await lte(), { id: n } = r;
|
|
45075
|
-
return this.dispatch(fh, {
|
|
45354
|
+
return this.dispatch(fh, {
|
|
45355
|
+
key: "company",
|
|
45356
|
+
settings: [{ name: "demoProjectId", value: n }]
|
|
45357
|
+
}), await e(Ur.LOAD_PROJECT, {
|
|
45076
45358
|
id: n
|
|
45077
45359
|
}), t(dt, !1), n;
|
|
45078
45360
|
} catch (r) {
|
|
@@ -45284,7 +45566,10 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
45284
45566
|
},
|
|
45285
45567
|
async [tTe](e, t) {
|
|
45286
45568
|
const r = JSON.stringify(t);
|
|
45287
|
-
await this.dispatch(fh, {
|
|
45569
|
+
await this.dispatch(fh, {
|
|
45570
|
+
key: "companyUser",
|
|
45571
|
+
settings: [{ name: "projectListFilter", value: r }]
|
|
45572
|
+
});
|
|
45288
45573
|
},
|
|
45289
45574
|
/**
|
|
45290
45575
|
*
|
|
@@ -45295,7 +45580,10 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
45295
45580
|
*/
|
|
45296
45581
|
async [rTe](e, t) {
|
|
45297
45582
|
const r = JSON.stringify(t);
|
|
45298
|
-
await this.dispatch(fh, {
|
|
45583
|
+
await this.dispatch(fh, {
|
|
45584
|
+
key: "companyUser",
|
|
45585
|
+
settings: [{ name: "projectListSort", value: r }]
|
|
45586
|
+
});
|
|
45299
45587
|
},
|
|
45300
45588
|
[nTe]({ commit: e }) {
|
|
45301
45589
|
e(tr.CLEAR_PROJECT_DATA), e(tr.SET_PROJECTS_CAN_FETCH_MORE, !0);
|
|
@@ -45359,7 +45647,10 @@ const Gxe = /* @__PURE__ */ _t(Wxe), ah = "projects", {
|
|
|
45359
45647
|
let a = [];
|
|
45360
45648
|
e.data[i].ProjectFiles ? a = e.data[i].ProjectFiles : te.set(e.data[i], "ProjectFiles", a);
|
|
45361
45649
|
const o = a.findIndex((s) => s.id === n.id);
|
|
45362
|
-
return o !== -1 ? a[o] = Object.assign(
|
|
45650
|
+
return o !== -1 ? a[o] = Object.assign(
|
|
45651
|
+
a[o],
|
|
45652
|
+
n
|
|
45653
|
+
) : a.push(n), !0;
|
|
45363
45654
|
});
|
|
45364
45655
|
},
|
|
45365
45656
|
// Delete one
|
|
@@ -45731,7 +46022,11 @@ const OTe = {
|
|
|
45731
46022
|
...OTe,
|
|
45732
46023
|
byId: (e, t, r, n) => (i) => e.data[i] ? new js(e.data[i], n) : null,
|
|
45733
46024
|
projectIdsByClientId: (e) => (t) => e.ids.filter((r) => {
|
|
45734
|
-
const n = re(
|
|
46025
|
+
const n = re(
|
|
46026
|
+
e.data[r],
|
|
46027
|
+
"clientEndCustomerIds",
|
|
46028
|
+
""
|
|
46029
|
+
);
|
|
45735
46030
|
return n ? n.split(",").includes(`${t}`) : !1;
|
|
45736
46031
|
}),
|
|
45737
46032
|
projectIdsOwnedByUserId: (e, t) => (r) => e.ids.filter((n) => {
|
|
@@ -46129,9 +46424,7 @@ const OTe = {
|
|
|
46129
46424
|
// array of ids
|
|
46130
46425
|
isPosting: !1,
|
|
46131
46426
|
isFetching: !1
|
|
46132
|
-
}, pn = "templateMessages", {
|
|
46133
|
-
FORM_RESET_OLD: VTe
|
|
46134
|
-
} = Oe, {
|
|
46427
|
+
}, pn = "templateMessages", { FORM_RESET_OLD: VTe } = Oe, {
|
|
46135
46428
|
LOAD_TEMPLATE_MESSAGES: t2,
|
|
46136
46429
|
LOAD_TEMPLATE_MESSAGE: vh,
|
|
46137
46430
|
CREATE_TEMPLATE_MESSAGE: r2,
|
|
@@ -46314,7 +46607,11 @@ const OTe = {
|
|
|
46314
46607
|
name: "",
|
|
46315
46608
|
message: ""
|
|
46316
46609
|
};
|
|
46317
|
-
e(
|
|
46610
|
+
e(
|
|
46611
|
+
`forms/${$e.SET_FORM}`,
|
|
46612
|
+
{ key: "templateMessage", formData: t },
|
|
46613
|
+
{ root: !0 }
|
|
46614
|
+
);
|
|
46318
46615
|
} catch (t) {
|
|
46319
46616
|
this.handleError(t, {
|
|
46320
46617
|
object: "templateMessage",
|
|
@@ -46412,12 +46709,12 @@ const OTe = {
|
|
|
46412
46709
|
te.set(e, "data", {}), te.set(e, "ids", []);
|
|
46413
46710
|
},
|
|
46414
46711
|
/**
|
|
46415
|
-
|
|
46416
|
-
|
|
46417
|
-
|
|
46418
|
-
|
|
46419
|
-
|
|
46420
|
-
|
|
46712
|
+
* @name SET_TEMPLATE_MESSAGES_FETCHING
|
|
46713
|
+
* Set fetching status of template messages
|
|
46714
|
+
*
|
|
46715
|
+
* @param {Object} state Vuex state
|
|
46716
|
+
* @param {Boolean} isFetching New state of isFetching
|
|
46717
|
+
*/
|
|
46421
46718
|
[GTe](e, t) {
|
|
46422
46719
|
e.isFetching = t;
|
|
46423
46720
|
},
|
|
@@ -46623,7 +46920,14 @@ const OTe = {
|
|
|
46623
46920
|
}
|
|
46624
46921
|
}
|
|
46625
46922
|
};
|
|
46626
|
-
e(It, !0), await Qt.send(t, {
|
|
46923
|
+
e(It, !0), await Qt.send(t, {
|
|
46924
|
+
...n,
|
|
46925
|
+
...r,
|
|
46926
|
+
sendSource: "reminder"
|
|
46927
|
+
}), this.dispatch("application/SHOW_MESSAGE", {
|
|
46928
|
+
type: "success",
|
|
46929
|
+
message: ne.t("sentThing", { thing: ne.t("reminder") })
|
|
46930
|
+
});
|
|
46627
46931
|
} catch (n) {
|
|
46628
46932
|
throw n;
|
|
46629
46933
|
} finally {
|
|
@@ -46665,7 +46969,10 @@ const OTe = {
|
|
|
46665
46969
|
]
|
|
46666
46970
|
}
|
|
46667
46971
|
}
|
|
46668
|
-
}, { data: i } = await Qt.get(t), a = (s) => ne.t(`propertyDesignationRequest.${s}`, {
|
|
46972
|
+
}, { data: i } = await Qt.get(t), a = (s) => ne.t(`propertyDesignationRequest.${s}`, {
|
|
46973
|
+
ns: "actions",
|
|
46974
|
+
interpolation: { prefix: "__", suffix: "__" }
|
|
46975
|
+
});
|
|
46669
46976
|
Et(i, "data.smsTemplate.propertyDesignation", {
|
|
46670
46977
|
text: a("smsTemplate.text")
|
|
46671
46978
|
}), Et(i, "data.emailTemplate.propertyDesignation", {
|
|
@@ -46681,7 +46988,14 @@ const OTe = {
|
|
|
46681
46988
|
clients: [i.clients[0]]
|
|
46682
46989
|
// Use first client
|
|
46683
46990
|
};
|
|
46684
|
-
e(It, !0), await Qt.send(t, {
|
|
46991
|
+
e(It, !0), await Qt.send(t, {
|
|
46992
|
+
...o,
|
|
46993
|
+
...r,
|
|
46994
|
+
sendSource: "propertyDesignation"
|
|
46995
|
+
}), this.dispatch("application/SHOW_MESSAGE", {
|
|
46996
|
+
type: "success",
|
|
46997
|
+
message: ne.t("actions:propertyDesignationRequest.successMessage")
|
|
46998
|
+
});
|
|
46685
46999
|
} catch (n) {
|
|
46686
47000
|
throw n;
|
|
46687
47001
|
} finally {
|
|
@@ -46933,7 +47247,9 @@ const OTe = {
|
|
|
46933
47247
|
throw new Error("Param service must be a string");
|
|
46934
47248
|
return e.ids.filter((o) => {
|
|
46935
47249
|
const s = e.data[o], { externalReferences: l = [] } = s;
|
|
46936
|
-
return l.some(
|
|
47250
|
+
return l.some(
|
|
47251
|
+
(c) => c.service === r && (!n || c.type === n) && (!i || c.typeId === i)
|
|
47252
|
+
);
|
|
46937
47253
|
}).map((o) => t.byId(o));
|
|
46938
47254
|
},
|
|
46939
47255
|
isPosting: (e) => e.isPosting,
|
|
@@ -47162,7 +47478,10 @@ const OTe = {
|
|
|
47162
47478
|
externalId: null,
|
|
47163
47479
|
note: null
|
|
47164
47480
|
};
|
|
47165
|
-
return this.commit(`forms/${$e.SET_FORM}`, {
|
|
47481
|
+
return this.commit(`forms/${$e.SET_FORM}`, {
|
|
47482
|
+
key: "endCustomer",
|
|
47483
|
+
formData: t
|
|
47484
|
+
}), !0;
|
|
47166
47485
|
} catch (t) {
|
|
47167
47486
|
return this.handleError(t, {
|
|
47168
47487
|
object: "endCustomer",
|
|
@@ -47180,7 +47499,10 @@ const OTe = {
|
|
|
47180
47499
|
*/
|
|
47181
47500
|
async [v2e]({ getters: e }, { id: t, props: r = [] }) {
|
|
47182
47501
|
const n = to(e.endCustomerById(t), r);
|
|
47183
|
-
this.dispatch(`forms/${$e.forms.SET_FORM_VALUE}`, {
|
|
47502
|
+
this.dispatch(`forms/${$e.forms.SET_FORM_VALUE}`, {
|
|
47503
|
+
key: "endCustomer",
|
|
47504
|
+
value: n
|
|
47505
|
+
});
|
|
47184
47506
|
},
|
|
47185
47507
|
/**
|
|
47186
47508
|
* @name FORM_SUBMIT_ENDCUSTOMER
|
|
@@ -47295,10 +47617,7 @@ const OTe = {
|
|
|
47295
47617
|
FORM_NEW_ARTICLE: A2e,
|
|
47296
47618
|
FORM_EDIT_ARTICLE: $2e,
|
|
47297
47619
|
FORM_SUBMIT_ARTICLE: x2
|
|
47298
|
-
} = j$, {
|
|
47299
|
-
SET_ARTICLES_FETCHING: Bc,
|
|
47300
|
-
SET_ARTICLES_POSTING: qn
|
|
47301
|
-
} = F$, P2e = {
|
|
47620
|
+
} = j$, { SET_ARTICLES_FETCHING: Bc, SET_ARTICLES_POSTING: qn } = F$, P2e = {
|
|
47302
47621
|
/**
|
|
47303
47622
|
* @name LOAD_ARTICLES
|
|
47304
47623
|
* Load all articles into store
|
|
@@ -47466,7 +47785,11 @@ const OTe = {
|
|
|
47466
47785
|
*/
|
|
47467
47786
|
[A2e]({ commit: e, rootGetters: t }) {
|
|
47468
47787
|
const r = t["articles/getNewArticle"]();
|
|
47469
|
-
return e(
|
|
47788
|
+
return e(
|
|
47789
|
+
`forms/${$e.SET_FORM}`,
|
|
47790
|
+
{ key: "article", formData: r },
|
|
47791
|
+
{ root: !0 }
|
|
47792
|
+
);
|
|
47470
47793
|
},
|
|
47471
47794
|
/**
|
|
47472
47795
|
* @name FORM_EDIT_ARTICLE
|
|
@@ -47475,12 +47798,16 @@ const OTe = {
|
|
|
47475
47798
|
*/
|
|
47476
47799
|
[$2e]({ commit: e, getters: t }, { id: r }) {
|
|
47477
47800
|
const n = t.articleById(r);
|
|
47478
|
-
return e(
|
|
47801
|
+
return e(
|
|
47802
|
+
`forms/${$e.SET_FORM}`,
|
|
47803
|
+
{ key: "article", formData: n },
|
|
47804
|
+
{ root: !0 }
|
|
47805
|
+
);
|
|
47479
47806
|
},
|
|
47480
47807
|
/**
|
|
47481
47808
|
* @name FORM_SUBMIT_ARTICLE
|
|
47482
47809
|
* Submit article form
|
|
47483
|
-
|
|
47810
|
+
* @returns {Promise<Number>} Promise that resolves with the article id or null
|
|
47484
47811
|
*/
|
|
47485
47812
|
async [x2]({ rootGetters: e, dispatch: t }) {
|
|
47486
47813
|
try {
|
|
@@ -47592,11 +47919,7 @@ const OTe = {
|
|
|
47592
47919
|
UPDATE_UNIT_TYPE: k2,
|
|
47593
47920
|
CREATE_UNIT_TYPE: V2e,
|
|
47594
47921
|
DELETE_UNIT_TYPE: S2
|
|
47595
|
-
} = H$, {
|
|
47596
|
-
SET_UNIT_TYPES: Ch,
|
|
47597
|
-
SET_UNIT_TYPE_FETCHING: Wc,
|
|
47598
|
-
SET_UNIT_TYPE_POSTING: Ca
|
|
47599
|
-
} = fp, z2e = {
|
|
47922
|
+
} = H$, { SET_UNIT_TYPES: Ch, SET_UNIT_TYPE_FETCHING: Wc, SET_UNIT_TYPE_POSTING: Ca } = fp, z2e = {
|
|
47600
47923
|
async [T2]({ commit: e }, t = {}) {
|
|
47601
47924
|
try {
|
|
47602
47925
|
e(Wc, !0);
|
|
@@ -49852,33 +50175,54 @@ const gs = new Lke({
|
|
|
49852
50175
|
}), gs.on("event", ({ type: t, action: r, id: n }) => {
|
|
49853
50176
|
if (t === "document")
|
|
49854
50177
|
e.getters["documents2/byId"](n) && setTimeout(() => {
|
|
49855
|
-
r === "deleted" ? e.commit(
|
|
50178
|
+
r === "deleted" ? e.commit(
|
|
50179
|
+
`documents2/${$e.documents2.DELETE_MANY_DOCUMENTS2}`,
|
|
50180
|
+
n
|
|
50181
|
+
) : e.dispatch(Oe.LOAD_DOCUMENT2, { id: n, emit: !0 });
|
|
49856
50182
|
}, 1);
|
|
49857
50183
|
else if (t === "template")
|
|
49858
50184
|
e.getters["templates/byId"](n) && setTimeout(() => {
|
|
49859
|
-
r === "deleted" ? e.commit(
|
|
50185
|
+
r === "deleted" ? e.commit(
|
|
50186
|
+
`templates/${$e.templates.DELETE_MANY_TEMPLATES}`,
|
|
50187
|
+
n
|
|
50188
|
+
) : e.dispatch(Oe.LOAD_TEMPLATE, { id: n, emit: !0 });
|
|
49860
50189
|
}, 1);
|
|
49861
50190
|
else if (t === "notification") {
|
|
49862
50191
|
if (!e.hasModule("notifications"))
|
|
49863
50192
|
return;
|
|
49864
50193
|
setTimeout(() => {
|
|
49865
|
-
r === "deleted" ? e.commit(
|
|
50194
|
+
r === "deleted" ? e.commit(
|
|
50195
|
+
`notifications/${$e.notifications.DELETE_MANY_NOTIFICATIONS}`,
|
|
50196
|
+
n
|
|
50197
|
+
) : e.dispatch(Oe.LOAD_NOTIFICATION, { id: n });
|
|
49866
50198
|
}, 1);
|
|
49867
50199
|
} else if (t === "project") {
|
|
49868
50200
|
if (!e.hasModule("projects"))
|
|
49869
50201
|
return;
|
|
49870
50202
|
e.getters["projects/byId"](n) && setTimeout(() => {
|
|
49871
|
-
r === "deleted" ? e.commit(
|
|
50203
|
+
r === "deleted" ? e.commit(
|
|
50204
|
+
`projects/${$e.projects.DELETE_MANY_PROJECTS}`,
|
|
50205
|
+
n
|
|
50206
|
+
) : e.dispatch(Oe.LOAD_PROJECT, { id: n, emit: !0 });
|
|
49872
50207
|
}, 1);
|
|
49873
50208
|
} else
|
|
49874
50209
|
t === "companyUser" ? e.getters["companyUsers/byId"](n) && setTimeout(() => {
|
|
49875
|
-
r === "deleted" ? e.commit(
|
|
50210
|
+
r === "deleted" ? e.commit(
|
|
50211
|
+
`companyUsers/${$e.DELETE_COMPANY_USER}`,
|
|
50212
|
+
n
|
|
50213
|
+
) : e.dispatch(Oe.LOAD_COMPANY_USER, { id: n });
|
|
49876
50214
|
}, 1) : t === "companyAccount" ? setTimeout(() => {
|
|
49877
50215
|
e.dispatch(Oe.DO_LOAD_CURRENT_COMPANY);
|
|
49878
50216
|
}, 1) : t === "companySetting" ? setTimeout(() => {
|
|
49879
|
-
r === "deleted" ? e.commit(`settings/${$e.settings.CLEAR_SETTINGS}`, {
|
|
50217
|
+
r === "deleted" ? e.commit(`settings/${$e.settings.CLEAR_SETTINGS}`, {
|
|
50218
|
+
key: "company",
|
|
50219
|
+
name: n
|
|
50220
|
+
}) : e.dispatch(Oe.LOAD_SETTINGS_COMPANY);
|
|
49880
50221
|
}, 1) : t === "companyUserSetting" ? setTimeout(() => {
|
|
49881
|
-
r === "deleted" ? e.commit(`settings/${$e.settings.CLEAR_SETTINGS}`, {
|
|
50222
|
+
r === "deleted" ? e.commit(`settings/${$e.settings.CLEAR_SETTINGS}`, {
|
|
50223
|
+
key: "companyUser",
|
|
50224
|
+
name: n
|
|
50225
|
+
}) : e.dispatch(Oe.LOAD_SETTINGS_COMPANYUSER);
|
|
49882
50226
|
}, 1) : t === "systemClient" && r === "refreshToken" && setTimeout(() => {
|
|
49883
50227
|
rte();
|
|
49884
50228
|
}, 1);
|
|
@@ -49940,7 +50284,9 @@ const gs = new Lke({
|
|
|
49940
50284
|
let i;
|
|
49941
50285
|
typeof r.schema == "string" ? { entities: i } = Ove(n, r.schema) : { entities: i } = Z$(n, r.schema);
|
|
49942
50286
|
let a = Object.keys(i);
|
|
49943
|
-
a = a.filter(
|
|
50287
|
+
a = a.filter(
|
|
50288
|
+
(o) => (!r.includedModules || r.includedModules.includes(o)) && (!r.excludedModules || !r.excludedModules.includes(o))
|
|
50289
|
+
), a.forEach((o) => {
|
|
49944
50290
|
if (!N2[o]) {
|
|
49945
50291
|
_n.warn(`setActions: '${o}', does not exist`);
|
|
49946
50292
|
return;
|
|
@@ -49949,7 +50295,10 @@ const gs = new Lke({
|
|
|
49949
50295
|
_n.warn(`moduleKeys: '${o}', does not exist`);
|
|
49950
50296
|
return;
|
|
49951
50297
|
}
|
|
49952
|
-
const s = {
|
|
50298
|
+
const s = {
|
|
50299
|
+
doClearOld: !1,
|
|
50300
|
+
...r.moduleOpts[o] || {}
|
|
50301
|
+
};
|
|
49953
50302
|
this.commit(`${I2[o]}/${N2[o]}`, {
|
|
49954
50303
|
data: Object.keys(i[o]).map((l) => i[o][l]),
|
|
49955
50304
|
...s
|
|
@@ -50089,7 +50438,9 @@ class Vke extends Uke {
|
|
|
50089
50438
|
this.unbind(r);
|
|
50090
50439
|
const a = i.context, o = n.value;
|
|
50091
50440
|
if (typeof o != "function") {
|
|
50092
|
-
Vue.util.warn(
|
|
50441
|
+
Vue.util.warn(
|
|
50442
|
+
`v-${n.name}="${n.expression}" expects a function value, got ${o}`
|
|
50443
|
+
);
|
|
50093
50444
|
return;
|
|
50094
50445
|
}
|
|
50095
50446
|
let s = !1;
|
|
@@ -50101,7 +50452,11 @@ class Vke extends Uke {
|
|
|
50101
50452
|
}, document.documentElement.addEventListener("click", r[this.HANDLER], !1);
|
|
50102
50453
|
}
|
|
50103
50454
|
unbind(r) {
|
|
50104
|
-
document.documentElement.removeEventListener(
|
|
50455
|
+
document.documentElement.removeEventListener(
|
|
50456
|
+
"click",
|
|
50457
|
+
r[this.HANDLER],
|
|
50458
|
+
!1
|
|
50459
|
+
), delete r[this.HANDLER];
|
|
50105
50460
|
}
|
|
50106
50461
|
}
|
|
50107
50462
|
const zke = new Vke(), Bke = {
|
|
@@ -52713,8 +53068,8 @@ const z2 = xSe.exports, TSe = {
|
|
|
52713
53068
|
},
|
|
52714
53069
|
computed: {
|
|
52715
53070
|
/**
|
|
52716
|
-
|
|
52717
|
-
|
|
53071
|
+
* Find parent Field, max 3 levels deep.
|
|
53072
|
+
*/
|
|
52718
53073
|
parentField() {
|
|
52719
53074
|
let e = this.$parent;
|
|
52720
53075
|
for (let t = 0; t < 3; t++)
|
|
@@ -52722,8 +53077,8 @@ const z2 = xSe.exports, TSe = {
|
|
|
52722
53077
|
return e;
|
|
52723
53078
|
},
|
|
52724
53079
|
/**
|
|
52725
|
-
|
|
52726
|
-
|
|
53080
|
+
* Get the type prop from parent if it's a Field.
|
|
53081
|
+
*/
|
|
52727
53082
|
statusType() {
|
|
52728
53083
|
if (this.parentField && this.parentField.newType) {
|
|
52729
53084
|
if (typeof this.parentField.newType == "string")
|
|
@@ -52756,8 +53111,8 @@ const z2 = xSe.exports, TSe = {
|
|
|
52756
53111
|
},
|
|
52757
53112
|
methods: {
|
|
52758
53113
|
/**
|
|
52759
|
-
|
|
52760
|
-
|
|
53114
|
+
* Focus method that work dynamically depending on the component.
|
|
53115
|
+
*/
|
|
52761
53116
|
focus() {
|
|
52762
53117
|
this.$data._elementRef !== void 0 && this.$nextTick(() => {
|
|
52763
53118
|
const e = this.$el.querySelector(this.$data._elementRef);
|
|
@@ -54906,11 +55261,7 @@ inputSlider.addEventListener('input', onInput);
|
|
|
54906
55261
|
setContent(inputSlider);
|
|
54907
55262
|
`)
|
|
54908
55263
|
}
|
|
54909
|
-
}, nOe = [
|
|
54910
|
-
eOe,
|
|
54911
|
-
rOe,
|
|
54912
|
-
tOe
|
|
54913
|
-
], Ja = "custom", xb = () => ({
|
|
55264
|
+
}, nOe = [eOe, rOe, tOe], Ja = "custom", xb = () => ({
|
|
54914
55265
|
javascript: Ht(`// Add your javascript here
|
|
54915
55266
|
// You can also access all the document data
|
|
54916
55267
|
// from the global variable doc
|
|
@@ -54954,7 +55305,10 @@ setContent(inputSlider);
|
|
|
54954
55305
|
}
|
|
54955
55306
|
], oOe = (e) => ({
|
|
54956
55307
|
[`data.${Ja}-${e}`]: xb()
|
|
54957
|
-
}), sOe = ({
|
|
55308
|
+
}), sOe = ({
|
|
55309
|
+
includeMockData: e = !1,
|
|
55310
|
+
contentData: t = null
|
|
55311
|
+
} = {}) => {
|
|
54958
55312
|
const r = An();
|
|
54959
55313
|
let n = null;
|
|
54960
55314
|
return typeof t == "function" ? n = t(r) : e && (n = oOe(r)), {
|
|
@@ -55595,10 +55949,7 @@ const EOe = "publicDocuments", {
|
|
|
55595
55949
|
SET_VIEWER: ek,
|
|
55596
55950
|
SET_PUBLIC_COMPANIES: tk
|
|
55597
55951
|
} = B$, rk = (e, t) => {
|
|
55598
|
-
const {
|
|
55599
|
-
companySettings: r = {},
|
|
55600
|
-
company: n = {}
|
|
55601
|
-
} = t.companyById(re(e, "company.publicId")) || {}, {
|
|
55952
|
+
const { companySettings: r = {}, company: n = {} } = t.companyById(re(e, "company.publicId")) || {}, {
|
|
55602
55953
|
senderString: i,
|
|
55603
55954
|
receiverString: a,
|
|
55604
55955
|
// default theme
|
|
@@ -55670,7 +56021,10 @@ const EOe = "publicDocuments", {
|
|
|
55670
56021
|
try {
|
|
55671
56022
|
if (!t.currentDocumentId)
|
|
55672
56023
|
throw Error("No current document have been set yet");
|
|
55673
|
-
await e(Ph, {
|
|
56024
|
+
await e(Ph, {
|
|
56025
|
+
id: t.currentDocumentId,
|
|
56026
|
+
params: { preview: !0 }
|
|
56027
|
+
});
|
|
55674
56028
|
} catch (r) {
|
|
55675
56029
|
throw r;
|
|
55676
56030
|
}
|
|
@@ -55681,7 +56035,9 @@ const EOe = "publicDocuments", {
|
|
|
55681
56035
|
await r($h, { id: n, params: i, showLast4ssn: a });
|
|
55682
56036
|
const o = e.documents[e.viewerIdToId[n]], { language: s } = o || {};
|
|
55683
56037
|
if (s && ne.i18next.changeLanguage(s), t("SET_CURRENT_DOCUMENT", { data: o }), re(e, "viewer.publicDocumentId", null) !== n) {
|
|
55684
|
-
const l = re(o, "clients", []).find(
|
|
56038
|
+
const l = re(o, "clients", []).find(
|
|
56039
|
+
(c) => c.publicDocumentId === n
|
|
56040
|
+
);
|
|
55685
56041
|
l && t(ek, l);
|
|
55686
56042
|
}
|
|
55687
56043
|
} catch (o) {
|
|
@@ -55707,7 +56063,10 @@ const EOe = "publicDocuments", {
|
|
|
55707
56063
|
a || (o.clients && Array.isArray(o.clients) && o.clients.filter((l) => l.socialNo).forEach((l) => {
|
|
55708
56064
|
l.socialNo = `${l.socialNo.slice(0, -4)}****`;
|
|
55709
56065
|
}), o.senderClient && o.senderClient.socialNo && (o.senderClient.socialNo = `${o.senderClient.socialNo.slice(0, -4)}****`)), t(Mh, { data: [{ ...o, viewerId: n }] });
|
|
55710
|
-
const s = re(
|
|
56066
|
+
const s = re(
|
|
56067
|
+
e.documents[o.id],
|
|
56068
|
+
"company.publicId"
|
|
56069
|
+
);
|
|
55711
56070
|
return s && await r(X2, { id: s }), o.id;
|
|
55712
56071
|
} catch (o) {
|
|
55713
56072
|
throw o;
|
|
@@ -55719,7 +56078,10 @@ const EOe = "publicDocuments", {
|
|
|
55719
56078
|
try {
|
|
55720
56079
|
e(Ti, !0);
|
|
55721
56080
|
const a = { docChecksum: i }, { data: o } = await Ds.answer(r, n, {}, a);
|
|
55722
|
-
return await t(Rh, {
|
|
56081
|
+
return await t(Rh, {
|
|
56082
|
+
id: r,
|
|
56083
|
+
params: { preview: !0 }
|
|
56084
|
+
}), o;
|
|
55723
56085
|
} catch (a) {
|
|
55724
56086
|
throw a;
|
|
55725
56087
|
} finally {
|
|
@@ -55754,7 +56116,14 @@ const EOe = "publicDocuments", {
|
|
|
55754
56116
|
if (!t.currentDocumentId)
|
|
55755
56117
|
throw Error("No current document have been set yet");
|
|
55756
56118
|
const { currentDocument: i, changes: a } = t, { checksum: o } = (i == null ? void 0 : i._doc) || {};
|
|
55757
|
-
n && Object.assign(r, a), await e(J2, {
|
|
56119
|
+
n && Object.assign(r, a), await e(J2, {
|
|
56120
|
+
id: t.currentDocumentId,
|
|
56121
|
+
body: r,
|
|
56122
|
+
checksum: o
|
|
56123
|
+
}), await e(Rh, {
|
|
56124
|
+
id: t.currentDocumentId,
|
|
56125
|
+
params: { preview: !0 }
|
|
56126
|
+
});
|
|
55758
56127
|
},
|
|
55759
56128
|
async [X2]({ commit: e, getters: t }, { id: r }) {
|
|
55760
56129
|
try {
|
|
@@ -55817,7 +56186,9 @@ const EOe = "publicDocuments", {
|
|
|
55817
56186
|
[tk](e, { data: t = [] }) {
|
|
55818
56187
|
if (typeof t != "object")
|
|
55819
56188
|
throw Error("Data must be a company or an array of companies!");
|
|
55820
|
-
const r = Array.isArray(t) ? t : [t], { ids: n, values: i } = pi(r, {
|
|
56189
|
+
const r = Array.isArray(t) ? t : [t], { ids: n, values: i } = pi(r, {
|
|
56190
|
+
keyId: "publicId"
|
|
56191
|
+
});
|
|
55821
56192
|
Cr(e.companies, i), e.companyIds = yr([...n, ...e.companyIds]);
|
|
55822
56193
|
},
|
|
55823
56194
|
[Mh](e, { data: t = [] }) {
|