@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-DRcy9Dqb.js +101 -0
- package/dist/AnswerModal-Dc3cgkap.js +3291 -0
- package/dist/AttachmentItem-Bef5zdHr.js +171 -0
- package/dist/BaseUpload--paElAyr.js +2472 -0
- package/dist/BlockMedia-DbVE3vsb.js +103 -0
- package/dist/CCallout-81NkOge7.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
- package/dist/CDropdownItem-DvaU14-V.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
- package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
- package/dist/CPriceInput-BfWZZv0f.js +140 -0
- package/dist/CSelect-B1AAIFbK.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
- package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
- package/dist/ClientModal-D8_TPzkv.js +1181 -0
- package/dist/ColorPicker-C0OahiVg.js +1408 -0
- package/dist/CompanyModal-CjzwQU4B.js +250 -0
- package/dist/ContentWrapper-DrmiaFOz.js +265 -0
- package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
- package/dist/DocAnswer-BEsvAMEp.js +33 -0
- package/dist/DocDetails--LO0-S5d.js +448 -0
- package/dist/DocForm-D6_tGw06.js +6748 -0
- package/dist/DocFormSend-CdFL6rOD.js +171 -0
- package/dist/DocLinks-CIQFUh7c.js +36 -0
- package/dist/DocModalBase-DtPJK9sp.js +29 -0
- package/dist/DocPrint-qX88Ue2I.js +399 -0
- package/dist/DocReceipt-BbXoCmpz.js +341 -0
- package/dist/DocSendReminder-DZqOkd63.js +181 -0
- package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
- package/dist/DocTimeline-CdbSOVD1.js +537 -0
- package/dist/DocumentClient-DtTv7gkF.js +90 -0
- package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
- package/dist/DocumentLogotype-CUNzyewq.js +162 -0
- package/dist/DocumentVoided-CgDt-JFI.js +33 -0
- package/dist/EmbedInput-rPvTnpXn.js +157 -0
- package/dist/EmbedSettings-BtmFxYGB.js +103 -0
- package/dist/ErrorCallout-B6YrdUsG.js +34 -0
- package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
- package/dist/Flag-CE3K7-8a.js +41 -0
- package/dist/HeaderSettings-5QR7MmVf.js +720 -0
- package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
- package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
- package/dist/Index--gv5fH24.js +201 -0
- package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
- package/dist/Index-B7ECpXAa.js +28 -0
- package/dist/Index-BIXfUsHH.js +52 -0
- package/dist/Index-BM658CCq.js +93 -0
- package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
- package/dist/Index-BcMATT2_.js +47 -0
- package/dist/Index-BpWFU3Td.js +68 -0
- package/dist/Index-BulSI5iO.js +38 -0
- package/dist/Index-CHInIRw5.js +228 -0
- package/dist/Index-COYqsxs9.js +25 -0
- package/dist/Index-CSGk060H.js +1098 -0
- package/dist/Index-CV2O2fWT.js +21 -0
- package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
- package/dist/Index-CavttI66.js +126 -0
- package/dist/Index-CbZ65-O3.js +629 -0
- package/dist/Index-CqrTij2j.js +70 -0
- package/dist/Index-CrsGxDWC.js +16 -0
- package/dist/Index-CxY5Ii6K.js +49 -0
- package/dist/Index-D7Z2w9cd.js +163 -0
- package/dist/Index-D7ixmzBH.js +76 -0
- package/dist/Index-D7pzv-AR.js +74 -0
- package/dist/Index-D9keESQi.js +159 -0
- package/dist/Index-Dd6ueeUc.js +136 -0
- package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
- package/dist/Index-Dnmt6W0u.js +140 -0
- package/dist/Index-DtcV6rl1.js +4 -0
- package/dist/Index-DuDVafLn.js +3452 -0
- package/dist/Index-L913X8Ly.js +102 -0
- package/dist/Index-Mdn0niR_.js +28 -0
- package/dist/Index-_ellB2fs.js +363 -0
- package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
- package/dist/Index-bgKndj-l.js +39 -0
- package/dist/Index-lNYXAFUH.js +87 -0
- package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
- package/dist/InputToggleRow-BCvMVbW-.js +99 -0
- package/dist/ManualPopover-BzBvSl_x.js +57 -0
- package/dist/MediaWrapper-_LPau2Ks.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
- package/dist/PackageGroup-1X3jUipj.js +1058 -0
- package/dist/PdfTerms-Bf4TlzP5.js +34 -0
- package/dist/PdfViewer-BdhwFfc6.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
- package/dist/PriceHeader-DyC8xssf.js +488 -0
- package/dist/SearchApi-C__orGkO.js +137 -0
- package/dist/SendForm-Be8uiuaJ.js +7031 -0
- package/dist/Setup-DbXs2Zar.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
- package/dist/ThemeColorRow-BL6p09pN.js +108 -0
- package/dist/ToggleBinding-B-tVioQ9.js +44 -0
- package/dist/UploadModal-BnA1xLMy.js +134 -0
- package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
- package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
- package/dist/VideoSelectModal-BNCoMFKU.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-C1AuSpOZ.js → debounce-CBRJalZI.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
- package/dist/helpers-Vo_6Zz3M.js +44 -0
- package/dist/index-8g2jwLJx.js +513 -0
- package/dist/index-B0udVHyo.js +125 -0
- package/dist/index-D63IJVsJ.js +3525 -0
- package/dist/index-DCYCN_FR.js +508 -0
- package/dist/index-FRHGChx1.js +149 -0
- package/dist/index-HXiq8Yxs.js +270 -0
- package/dist/index-jOufDnZ8.js +188 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
- package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
- package/dist/omit-GuxX6Zt-.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-DChJiJ8d.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-m1V22cUt.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
- package/dist/tippy.esm-Dz-faEsS.js +1994 -0
- package/dist/useTermsModal-C_eLdGLi.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
- package/dist/validation-C-dQpENM.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { m as g } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as c, z as l, ah as y, b as r, o as n, d as t, s as a, v as z, e as m, Z as V, f as d, n as w, F as C, c as E, w as h } from "./main-C4OdoeS2.js";
|
|
3
|
+
import { f as k } from "./focusDrawerMixin-T94b2Y6F.js";
|
|
4
|
+
const S = {
|
|
5
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
|
6
|
+
name: "Embed",
|
|
7
|
+
i18nOptions: {
|
|
8
|
+
namespaces: "embed",
|
|
9
|
+
messages: {
|
|
10
|
+
en: {
|
|
11
|
+
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)"
|
|
12
|
+
},
|
|
13
|
+
sv: {
|
|
14
|
+
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
EmbedSettings: l(() => import("./EmbedSettings-BtmFxYGB.js")),
|
|
20
|
+
EmbedInput: l(() => import("./EmbedInput-rPvTnpXn.js")),
|
|
21
|
+
Spinner: y
|
|
22
|
+
},
|
|
23
|
+
mixins: [g(["embed", "size"]), k],
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
showControls: !1,
|
|
27
|
+
isLoading: !0
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
onAdd() {
|
|
32
|
+
var e;
|
|
33
|
+
this._isNodeRecentlyAdded() && ((e = this.$refs.input) == null || e.focus());
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, D = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "embed-container"
|
|
39
|
+
}, F = {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "embed-element"
|
|
42
|
+
}, M = { class: "is-placeholder" }, B = { class: "text-gray-600" }, I = {
|
|
43
|
+
key: 2,
|
|
44
|
+
class: "embed-loading-container"
|
|
45
|
+
};
|
|
46
|
+
function P(e, s, $, A, i, p) {
|
|
47
|
+
const u = r("EmbedInput"), b = r("Spinner"), f = r("EmbedSettings"), v = r("portal");
|
|
48
|
+
return n(), t("div", {
|
|
49
|
+
class: "embed-root font-inter",
|
|
50
|
+
onMouseoverPassive: s[4] || (s[4] = (o) => i.showControls = !0),
|
|
51
|
+
onMouseleavePassive: s[5] || (s[5] = (o) => i.showControls = !1)
|
|
52
|
+
}, [
|
|
53
|
+
a("div", {
|
|
54
|
+
class: w([[
|
|
55
|
+
(e.size || !(e.embed && e.embed.src)) && "auto-size",
|
|
56
|
+
`embed-is-${e.size}`
|
|
57
|
+
], "no-drag"])
|
|
58
|
+
}, [
|
|
59
|
+
e.embed ? (n(), t("div", D, [
|
|
60
|
+
!e.embed.src && e.canEdit ? (n(), t("div", F, [
|
|
61
|
+
a("div", M, [
|
|
62
|
+
a("div", B, z(e.$t("subTitle")), 1),
|
|
63
|
+
m(u, {
|
|
64
|
+
ref: "input",
|
|
65
|
+
modelValue: e.embed,
|
|
66
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => e.embed = o),
|
|
67
|
+
style: { "padding-top": "1em" },
|
|
68
|
+
onVnodeMounted: p.onAdd
|
|
69
|
+
}, null, 8, ["modelValue", "onVnodeMounted"])
|
|
70
|
+
])
|
|
71
|
+
])) : e.embed.src ? (n(), t("iframe", V({ key: 1 }, { allowfullscreen: "", ...e.embed }, {
|
|
72
|
+
ref: "iframe",
|
|
73
|
+
class: "embed-element",
|
|
74
|
+
onLoad: s[1] || (s[1] = (o) => i.isLoading = !1)
|
|
75
|
+
}), null, 16)) : d("", !0),
|
|
76
|
+
e.embed.src && i.isLoading ? (n(), t("div", I, [
|
|
77
|
+
m(b, { color: "hsl(0, 0%, 60%)" })
|
|
78
|
+
])) : d("", !0)
|
|
79
|
+
])) : d("", !0)
|
|
80
|
+
], 2),
|
|
81
|
+
e.isForm ? (n(), t(C, { key: 0 }, [
|
|
82
|
+
e.showDrawer ? (n(), E(v, {
|
|
83
|
+
key: 0,
|
|
84
|
+
to: "drawer-content"
|
|
85
|
+
}, {
|
|
86
|
+
default: h(() => [
|
|
87
|
+
m(f, {
|
|
88
|
+
modelValue: e.embed,
|
|
89
|
+
"onUpdate:modelValue": s[2] || (s[2] = (o) => e.embed = o),
|
|
90
|
+
size: e.size,
|
|
91
|
+
"onUpdate:size": s[3] || (s[3] = (o) => e.size = o)
|
|
92
|
+
}, null, 8, ["modelValue", "size"])
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
})) : d("", !0)
|
|
96
|
+
], 64)) : d("", !0)
|
|
97
|
+
], 32);
|
|
98
|
+
}
|
|
99
|
+
const U = /* @__PURE__ */ c(S, [["render", P], ["__scopeId", "data-v-0bad5058"]]);
|
|
100
|
+
export {
|
|
101
|
+
U as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { m as i } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as p, z as e, b as o, o as a, c as s } from "./main-C4OdoeS2.js";
|
|
3
|
+
const u = {
|
|
4
|
+
name: "EstimatedWorkStartAndEndAtText",
|
|
5
|
+
components: {
|
|
6
|
+
Read: e(() => import("./Index-baSB5tPv.js")),
|
|
7
|
+
Edit: e(() => import("./Index-CqrTij2j.js"))
|
|
8
|
+
},
|
|
9
|
+
emits: ["input"],
|
|
10
|
+
mixins: [i(["startAt", "endAt"])]
|
|
11
|
+
};
|
|
12
|
+
function c(t, n, l, _, f, A) {
|
|
13
|
+
const r = o("Edit"), d = o("Read");
|
|
14
|
+
return t.canEdit ? (a(), s(r, {
|
|
15
|
+
key: 0,
|
|
16
|
+
_document: t._document,
|
|
17
|
+
_value: t._value,
|
|
18
|
+
onInput: n[0] || (n[0] = (m) => t.$emit("input", m))
|
|
19
|
+
}, null, 8, ["_document", "_value"])) : (a(), s(d, {
|
|
20
|
+
key: 1,
|
|
21
|
+
"start-at": t.startAt,
|
|
22
|
+
"end-at": t.endAt
|
|
23
|
+
}, null, 8, ["start-at", "end-at"]));
|
|
24
|
+
}
|
|
25
|
+
const $ = /* @__PURE__ */ p(u, [["render", c]]);
|
|
26
|
+
export {
|
|
27
|
+
$ as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { m as A } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { C as E } from "./CCallout-81NkOge7.js";
|
|
3
|
+
import { C as B, a as K } from "./CDropdownItem-DvaU14-V.js";
|
|
4
|
+
import { _ as z, b as h, o as n, d as c, s as g, v as u, c as f, F as C, B as w, n as V, z as M, aa as N, w as y, e as b, k as I, f as v } from "./main-C4OdoeS2.js";
|
|
5
|
+
import { C as O } from "./CPhoneFormat-BBQ_UIc_.js";
|
|
6
|
+
const $ = {
|
|
7
|
+
name: "DocPartiesItem",
|
|
8
|
+
components: {
|
|
9
|
+
CPhoneFormat: O
|
|
10
|
+
},
|
|
11
|
+
emits: ["click"],
|
|
12
|
+
props: {
|
|
13
|
+
label: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
type: [String, Object],
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
canEdit: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, q = { class: "client-row" }, L = { class: "label" };
|
|
31
|
+
function j(e, o, t, a, s, l) {
|
|
32
|
+
const p = h("CPhoneFormat");
|
|
33
|
+
return n(), c("div", q, [
|
|
34
|
+
g("div", L, u(t.label), 1),
|
|
35
|
+
g("div", {
|
|
36
|
+
class: V([{
|
|
37
|
+
"is-editable": t.canEdit
|
|
38
|
+
}, "data"])
|
|
39
|
+
}, [
|
|
40
|
+
g("span", {
|
|
41
|
+
onClick: o[0] || (o[0] = (k) => e.$emit("click"))
|
|
42
|
+
}, [
|
|
43
|
+
t.type === "phone" ? (n(), f(p, {
|
|
44
|
+
key: 0,
|
|
45
|
+
phone: t.data.cellphone,
|
|
46
|
+
region: t.data.region
|
|
47
|
+
}, null, 8, ["phone", "region"])) : (n(), c(C, { key: 1 }, [
|
|
48
|
+
w(u(t.data), 1)
|
|
49
|
+
], 64))
|
|
50
|
+
])
|
|
51
|
+
], 2)
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
const R = /* @__PURE__ */ z($, [["render", j], ["__scopeId", "data-v-5a104f72"]]), T = {
|
|
55
|
+
client: M(
|
|
56
|
+
() => import("./ClientModal-D8_TPzkv.js").then((e) => e.b)
|
|
57
|
+
),
|
|
58
|
+
company: M(
|
|
59
|
+
() => import("./CompanyModal-CjzwQU4B.js")
|
|
60
|
+
)
|
|
61
|
+
}, G = {
|
|
62
|
+
i18nOptions: {
|
|
63
|
+
namespaces: "components"
|
|
64
|
+
},
|
|
65
|
+
name: "DocParties",
|
|
66
|
+
components: {
|
|
67
|
+
DocPartiesItem: R,
|
|
68
|
+
CCallout: E,
|
|
69
|
+
CDropdown: B,
|
|
70
|
+
CDropdownItem: K,
|
|
71
|
+
AddClientCallout: M(
|
|
72
|
+
() => import("./AddClientCallout-DRcy9Dqb.js")
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
emits: ["input"],
|
|
76
|
+
mixins: [A()],
|
|
77
|
+
props: {
|
|
78
|
+
// todo: atm custom behaviour for path 'data.sender' through doc-class
|
|
79
|
+
parties: {
|
|
80
|
+
type: [Array, Object],
|
|
81
|
+
default: () => []
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
type: "client",
|
|
87
|
+
hoverIndex: null
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
mappedParties() {
|
|
92
|
+
const e = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
|
|
93
|
+
return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
|
|
94
|
+
const {
|
|
95
|
+
orgNo: a,
|
|
96
|
+
socialNo: s,
|
|
97
|
+
companyName: l,
|
|
98
|
+
name: p,
|
|
99
|
+
type: k,
|
|
100
|
+
cellphone: S,
|
|
101
|
+
cellphoneRegion: P,
|
|
102
|
+
email: F,
|
|
103
|
+
addresses: _,
|
|
104
|
+
hasFSkatt: r,
|
|
105
|
+
hasInsurance: d
|
|
106
|
+
} = t, i = k === "individual", m = _ && (_.standard || _.work);
|
|
107
|
+
m && (m.formKey = _.standard ? "street" : "workStreet");
|
|
108
|
+
const x = [
|
|
109
|
+
l && {
|
|
110
|
+
label: e("company"),
|
|
111
|
+
value: l,
|
|
112
|
+
formKey: "name"
|
|
113
|
+
},
|
|
114
|
+
a && {
|
|
115
|
+
label: e("orgNoShort"),
|
|
116
|
+
value: a,
|
|
117
|
+
formKey: "orgNo"
|
|
118
|
+
},
|
|
119
|
+
p && {
|
|
120
|
+
label: e(i ? "name" : "reference"),
|
|
121
|
+
value: p,
|
|
122
|
+
formKey: i ? "name" : "reference"
|
|
123
|
+
},
|
|
124
|
+
s && i && {
|
|
125
|
+
label: e("socialNo"),
|
|
126
|
+
value: s,
|
|
127
|
+
formKey: "orgNo"
|
|
128
|
+
},
|
|
129
|
+
F && {
|
|
130
|
+
label: e("email"),
|
|
131
|
+
value: F,
|
|
132
|
+
formKey: "email"
|
|
133
|
+
},
|
|
134
|
+
S && {
|
|
135
|
+
label: e("phone"),
|
|
136
|
+
type: "phone",
|
|
137
|
+
value: {
|
|
138
|
+
cellphone: S,
|
|
139
|
+
region: P || N(this._document, "sender.company.region", "")
|
|
140
|
+
},
|
|
141
|
+
formKey: "cellphone"
|
|
142
|
+
},
|
|
143
|
+
m && {
|
|
144
|
+
label: e("address"),
|
|
145
|
+
value: this.parseStreet(m.street, m.city, m.zip),
|
|
146
|
+
formKey: m.formKey
|
|
147
|
+
}
|
|
148
|
+
], D = [];
|
|
149
|
+
return r && D.push({
|
|
150
|
+
label: this._document.$t("chapters.parties.fTax"),
|
|
151
|
+
value: r
|
|
152
|
+
}), d && D.push({
|
|
153
|
+
label: this._document.$t("chapters.parties.allRiskAndLiability"),
|
|
154
|
+
value: d
|
|
155
|
+
}), {
|
|
156
|
+
main: x,
|
|
157
|
+
checks: D
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
created() {
|
|
163
|
+
N(this, "_value.parties", "") !== "clients" && (this.type = "company");
|
|
164
|
+
},
|
|
165
|
+
methods: {
|
|
166
|
+
openModal({ formKey: e, index: o } = {}) {
|
|
167
|
+
var s;
|
|
168
|
+
let t = "name", a = !1;
|
|
169
|
+
e && (t = e, ["name", "email", "cellphone", "reference"].includes(e) || (a = !0)), this.$modal.show(T[this.type], {
|
|
170
|
+
inputFocusOnMount: t,
|
|
171
|
+
forceExpand: a,
|
|
172
|
+
documentClientIndex: o,
|
|
173
|
+
signOptions: (s = this._document) == null ? void 0 : s.signOptions,
|
|
174
|
+
setFormValue: this.viewSettings.setFormValue,
|
|
175
|
+
removeFormValue: this.viewSettings.removeFormValue,
|
|
176
|
+
isPublicForm: this.viewSettings.isPublicForm
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
removeClient(e) {
|
|
180
|
+
this.parties[e] && this.removeField(`clients[${e}]`);
|
|
181
|
+
},
|
|
182
|
+
parseStreet(e, o, t) {
|
|
183
|
+
let a = "";
|
|
184
|
+
return e && (a += e), e && (t || o) && (a += ", "), t && (a += ` ${t}`), o && (a += ` ${o}`), a;
|
|
185
|
+
},
|
|
186
|
+
searchEndCustomers(e, o) {
|
|
187
|
+
e({
|
|
188
|
+
q: o,
|
|
189
|
+
cb: ({ endCustomer: t }) => {
|
|
190
|
+
this.results = t;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
setClient(e) {
|
|
195
|
+
this.$emit("input", {
|
|
196
|
+
key: `clients[${this.parties.length}]`,
|
|
197
|
+
value: e
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, H = { style: { position: "relative" } }, J = {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "edit-button"
|
|
204
|
+
}, Q = { style: { "padding-bottom": "1em" } }, U = ["onMouseoverPassive"], W = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "controls",
|
|
207
|
+
style: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" }
|
|
208
|
+
}, X = {
|
|
209
|
+
key: 1,
|
|
210
|
+
style: { width: "100%", "padding-top": "calc(1 * var(--rem))" }
|
|
211
|
+
};
|
|
212
|
+
function Y(e, o, t, a, s, l) {
|
|
213
|
+
const p = h("CButton"), k = h("CDropdownItem"), S = h("CDropdown"), P = h("AddClientCallout"), F = h("CCallout"), _ = h("DocPartiesItem");
|
|
214
|
+
return n(), c("div", H, [
|
|
215
|
+
e.viewSettings.canEdit ? (n(), c("div", J, [
|
|
216
|
+
s.type === "company" ? (n(), f(p, {
|
|
217
|
+
key: 0,
|
|
218
|
+
type: "none",
|
|
219
|
+
size: "small",
|
|
220
|
+
pattern: "secondary",
|
|
221
|
+
onClick: l.openModal
|
|
222
|
+
}, {
|
|
223
|
+
default: y(() => [
|
|
224
|
+
w(u(e.$t("_common:edit").capitalize()), 1)
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["onClick"])) : t.parties.length && s.type === "client" ? (n(), f(S, {
|
|
228
|
+
key: 1,
|
|
229
|
+
ref: "dropdown",
|
|
230
|
+
position: "is-bottom-left"
|
|
231
|
+
}, {
|
|
232
|
+
trigger: y(() => [
|
|
233
|
+
b(p, {
|
|
234
|
+
type: "none",
|
|
235
|
+
size: "small",
|
|
236
|
+
pattern: "secondary",
|
|
237
|
+
"icon-right": "chevron-down"
|
|
238
|
+
}, {
|
|
239
|
+
default: y(() => [
|
|
240
|
+
w(u(e.$t("_common:more").capitalize()), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
default: y(() => [
|
|
246
|
+
b(k, {
|
|
247
|
+
"icon-props": {
|
|
248
|
+
class: "text-primary-500"
|
|
249
|
+
},
|
|
250
|
+
"icon-left": "plus-circle",
|
|
251
|
+
onClick: o[0] || (o[0] = (r) => l.openModal({ index: t.parties.length }))
|
|
252
|
+
}, {
|
|
253
|
+
default: y(() => [
|
|
254
|
+
w(u(e.$t("components:account.documentForm.clients.add.extra")), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}),
|
|
258
|
+
b(k, { separator: "" }),
|
|
259
|
+
(n(!0), c(C, null, I(t.parties, (r, d) => (n(), f(k, {
|
|
260
|
+
key: d,
|
|
261
|
+
"icon-props": {
|
|
262
|
+
class: "text-gray-400"
|
|
263
|
+
},
|
|
264
|
+
"icon-left": "edit",
|
|
265
|
+
onClick: (i) => l.openModal({ index: d })
|
|
266
|
+
}, {
|
|
267
|
+
default: y(() => [
|
|
268
|
+
w(u(r.type === "individual" ? r.name : r.companyName || r.name), 1)
|
|
269
|
+
]),
|
|
270
|
+
_: 2
|
|
271
|
+
}, 1032, ["onClick"]))), 128))
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 512)) : v("", !0)
|
|
275
|
+
])) : v("", !0),
|
|
276
|
+
e.viewSettings.canEdit ? (n(), c(C, { key: 1 }, [
|
|
277
|
+
s.type === "client" && !(t.parties && t.parties.length) ? (n(), f(P, {
|
|
278
|
+
key: 0,
|
|
279
|
+
onAdd: o[1] || (o[1] = (r) => l.openModal({ index: t.parties.length })),
|
|
280
|
+
onSetClient: l.setClient
|
|
281
|
+
}, null, 8, ["onSetClient"])) : v("", !0),
|
|
282
|
+
s.type === "company" && e.viewSettings.isPublicForm && !(t.parties.companyName || t.parties.email) ? (n(), f(F, {
|
|
283
|
+
key: 1,
|
|
284
|
+
title: e.$t("document.chapters.parties.missingSender.title")
|
|
285
|
+
}, {
|
|
286
|
+
default: y(() => [
|
|
287
|
+
g("div", Q, u(e.$t("document.chapters.parties.missingSender.description")), 1),
|
|
288
|
+
b(p, {
|
|
289
|
+
"icon-left": "plus",
|
|
290
|
+
type: "secondary",
|
|
291
|
+
onClick: l.openModal
|
|
292
|
+
}, {
|
|
293
|
+
default: y(() => [
|
|
294
|
+
w(u(e.$t("_common:add", { thing: e.$t("_common:info") })), 1)
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["onClick"])
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["title"])) : v("", !0)
|
|
301
|
+
], 64)) : v("", !0),
|
|
302
|
+
(n(!0), c(C, null, I(l.mappedParties, (r, d) => (n(), c("div", {
|
|
303
|
+
key: d,
|
|
304
|
+
class: "party-wrapper print-avoid-break-inside",
|
|
305
|
+
onMouseoverPassive: (i) => s.hoverIndex = d,
|
|
306
|
+
onMouseleavePassive: o[2] || (o[2] = (i) => s.hoverIndex = null)
|
|
307
|
+
}, [
|
|
308
|
+
e.viewSettings.canEdit && s.type !== "company" && s.hoverIndex === d ? (n(), c("div", W, [
|
|
309
|
+
b(p, {
|
|
310
|
+
circle: "",
|
|
311
|
+
size: "small",
|
|
312
|
+
icon: "edit",
|
|
313
|
+
type: "none",
|
|
314
|
+
pattern: "tertiary",
|
|
315
|
+
onClick: (i) => l.openModal({ index: d })
|
|
316
|
+
}, null, 8, ["onClick"]),
|
|
317
|
+
b(p, {
|
|
318
|
+
circle: "",
|
|
319
|
+
size: "small",
|
|
320
|
+
icon: "x",
|
|
321
|
+
type: "none",
|
|
322
|
+
pattern: "tertiary",
|
|
323
|
+
onClick: (i) => l.removeClient(d)
|
|
324
|
+
}, null, 8, ["onClick"])
|
|
325
|
+
])) : v("", !0),
|
|
326
|
+
(n(!0), c(C, null, I(r.main, (i, m) => (n(), c(C, { key: m }, [
|
|
327
|
+
i ? (n(), f(_, {
|
|
328
|
+
key: 0,
|
|
329
|
+
label: i.label,
|
|
330
|
+
data: i.value,
|
|
331
|
+
type: i.type,
|
|
332
|
+
"can-edit": e.viewSettings.canEdit,
|
|
333
|
+
onClick: (x) => e.viewSettings.canEdit ? l.openModal({ formKey: i.formKey, index: d }) : null
|
|
334
|
+
}, null, 8, ["label", "data", "type", "can-edit", "onClick"])) : v("", !0)
|
|
335
|
+
], 64))), 128)),
|
|
336
|
+
r.checks && r.checks.length ? (n(), c("div", X, [
|
|
337
|
+
(n(!0), c(C, null, I(r.checks, (i, m) => (n(), c("div", {
|
|
338
|
+
key: m,
|
|
339
|
+
class: "check-text"
|
|
340
|
+
}, [
|
|
341
|
+
o[3] || (o[3] = g("svg", {
|
|
342
|
+
width: "11",
|
|
343
|
+
height: "11",
|
|
344
|
+
viewBox: "0 0 218 185",
|
|
345
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
346
|
+
}, [
|
|
347
|
+
g("path", {
|
|
348
|
+
class: "primary-svg-fill",
|
|
349
|
+
d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z",
|
|
350
|
+
fill: "#D8D8D8",
|
|
351
|
+
"fill-rule": "evenodd"
|
|
352
|
+
})
|
|
353
|
+
], -1)),
|
|
354
|
+
g("div", null, u(i.label), 1)
|
|
355
|
+
]))), 128))
|
|
356
|
+
])) : v("", !0)
|
|
357
|
+
], 40, U))), 128))
|
|
358
|
+
]);
|
|
359
|
+
}
|
|
360
|
+
const ie = /* @__PURE__ */ z(G, [["render", Y], ["__scopeId", "data-v-54bc3f52"]]);
|
|
361
|
+
export {
|
|
362
|
+
ie as default
|
|
363
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { _ as n } from "./PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js";
|
|
2
|
+
import { e, B as t } from "./main-C4OdoeS2.js";
|
|
3
|
+
const a = {
|
|
4
4
|
name: "EstimatedWorkStartAndEndAtTextRead",
|
|
5
5
|
props: {
|
|
6
6
|
startAt: {
|
|
@@ -27,20 +27,12 @@ const s = {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
render() {
|
|
31
|
+
return e(n, null, {
|
|
32
|
+
default: () => [this.$t("description1"), t(" "), e("strong", null, [this.$formatDate(this.startAt)]), t(" "), this.$t("description2"), t(" "), e("strong", null, [this.$formatDate(this.endAt)]), t("."), " ", this.$t("description3")]
|
|
33
|
+
});
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
|
-
var a = /* @__PURE__ */ n(
|
|
36
|
-
s,
|
|
37
|
-
r,
|
|
38
|
-
o,
|
|
39
|
-
!1,
|
|
40
|
-
null,
|
|
41
|
-
null
|
|
42
|
-
);
|
|
43
|
-
const l = a.exports;
|
|
35
|
+
};
|
|
44
36
|
export {
|
|
45
|
-
|
|
37
|
+
a as default
|
|
46
38
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { m as d } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as p, z as n, b as o, o as i, c as m } from "./main-C4OdoeS2.js";
|
|
3
|
+
const u = {
|
|
4
|
+
name: "ExtraWorkTimeImpactText",
|
|
5
|
+
components: {
|
|
6
|
+
Read: n(() => import("./Index-B3ycPjAI.js")),
|
|
7
|
+
Edit: n(() => import("./Index-CHInIRw5.js"))
|
|
8
|
+
},
|
|
9
|
+
emits: ["input"],
|
|
10
|
+
mixins: [
|
|
11
|
+
d([
|
|
12
|
+
"workStartAt",
|
|
13
|
+
"workEndAt",
|
|
14
|
+
"timeUnit",
|
|
15
|
+
"noOfTimeUnits",
|
|
16
|
+
"timeDeltaDirection"
|
|
17
|
+
])
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
function c(t, e, l, k, f, w) {
|
|
21
|
+
const r = o("Edit"), a = o("Read");
|
|
22
|
+
return t.canEdit ? (i(), m(r, {
|
|
23
|
+
key: 0,
|
|
24
|
+
_document: t._document,
|
|
25
|
+
_value: t._value,
|
|
26
|
+
onInput: e[0] || (e[0] = (s) => t.$emit("input", s))
|
|
27
|
+
}, null, 8, ["_document", "_value"])) : (i(), m(a, {
|
|
28
|
+
key: 1,
|
|
29
|
+
"work-start-at": t.workStartAt,
|
|
30
|
+
"work-end-at": t.workEndAt,
|
|
31
|
+
"time-unit": t.timeUnit,
|
|
32
|
+
"no-of-time-units": t.noOfTimeUnits,
|
|
33
|
+
"time-delta-direction": t.timeDeltaDirection
|
|
34
|
+
}, null, 8, ["work-start-at", "work-end-at", "time-unit", "no-of-time-units", "time-delta-direction"]));
|
|
35
|
+
}
|
|
36
|
+
const A = /* @__PURE__ */ p(u, [["render", c]]);
|
|
37
|
+
export {
|
|
38
|
+
A as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { m as T } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { f as w } from "./focusDrawerMixin-T94b2Y6F.js";
|
|
3
|
+
import { _ as k, z as l, b as s, a3 as C, o as n, d as p, e as u, F as g, E as F, c as d, f as r, w as S } from "./main-C4OdoeS2.js";
|
|
4
|
+
const _ = {
|
|
5
|
+
name: "Terms",
|
|
6
|
+
i18nOptions: {
|
|
7
|
+
namespaces: "terms",
|
|
8
|
+
messages: {
|
|
9
|
+
en: {
|
|
10
|
+
noneSelected: "No terms selected"
|
|
11
|
+
},
|
|
12
|
+
sv: {
|
|
13
|
+
noneSelected: "Inga villkor valda"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
components: {
|
|
18
|
+
Read: l(() => import("./Index-BIXfUsHH.js")),
|
|
19
|
+
TermsSettings: l(() => import("./TermsSettings-DsN6v5yj.js"))
|
|
20
|
+
},
|
|
21
|
+
emits: ["input"],
|
|
22
|
+
mixins: [
|
|
23
|
+
T(["href", "termType", "file", "text"]),
|
|
24
|
+
w
|
|
25
|
+
],
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
showControls: !1
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
computed: {
|
|
32
|
+
hasTerms() {
|
|
33
|
+
const e = ["href", "file"].includes(this.termType) && this.href, t = this.termType === "text" && this.text, i = this.termType === "file" && this.file;
|
|
34
|
+
return e || t || i;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function B(e, t, i, D, m, a) {
|
|
39
|
+
const c = s("Read"), f = s("CButton"), v = s("TermsSettings"), h = s("portal"), y = C("tooltip");
|
|
40
|
+
return e.isForm || a.hasTerms ? (n(), p("div", {
|
|
41
|
+
key: 0,
|
|
42
|
+
onMouseoverPassive: t[2] || (t[2] = (o) => m.showControls = !0),
|
|
43
|
+
onMouseleavePassive: t[3] || (t[3] = (o) => m.showControls = !1),
|
|
44
|
+
class: "px-7 py-5"
|
|
45
|
+
}, [
|
|
46
|
+
u(c, {
|
|
47
|
+
_document: e._document,
|
|
48
|
+
href: e.href,
|
|
49
|
+
"term-type": e.termType,
|
|
50
|
+
file: e.file,
|
|
51
|
+
text: e.text,
|
|
52
|
+
onInput: t[0] || (t[0] = (o) => e.$emit("input", o))
|
|
53
|
+
}, null, 8, ["_document", "href", "term-type", "file", "text"]),
|
|
54
|
+
e.isForm ? (n(), p(g, { key: 0 }, [
|
|
55
|
+
a.hasTerms ? r("", !0) : F((n(), d(f, {
|
|
56
|
+
key: 0,
|
|
57
|
+
"icon-props": { size: 18 },
|
|
58
|
+
pattern: "secondary",
|
|
59
|
+
icon: "info",
|
|
60
|
+
circle: "",
|
|
61
|
+
size: "small",
|
|
62
|
+
type: "danger",
|
|
63
|
+
style: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" },
|
|
64
|
+
onClick: e.openDrawer
|
|
65
|
+
}, null, 8, ["onClick"])), [
|
|
66
|
+
[y, e.$t("noneSelected")]
|
|
67
|
+
]),
|
|
68
|
+
e.showDrawer ? (n(), d(h, {
|
|
69
|
+
key: 1,
|
|
70
|
+
to: "drawer-content"
|
|
71
|
+
}, {
|
|
72
|
+
default: S(() => [
|
|
73
|
+
u(v, {
|
|
74
|
+
_document: e._document,
|
|
75
|
+
_value: { term: "data.terms" },
|
|
76
|
+
onInput: t[1] || (t[1] = (o) => e.$emit("input", o))
|
|
77
|
+
}, null, 8, ["_document"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})) : r("", !0)
|
|
81
|
+
], 64)) : r("", !0)
|
|
82
|
+
], 32)) : r("", !0);
|
|
83
|
+
}
|
|
84
|
+
const x = /* @__PURE__ */ k(_, [["render", B]]);
|
|
85
|
+
export {
|
|
86
|
+
x as default
|
|
87
|
+
};
|