@nside/wefa 0.4.3 → 0.4.5
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/README.md +1 -1
- package/dist/LegalConsent-BxOWAO0s.js +126 -0
- package/dist/LegalConsent-ChW-GYBv.cjs +1 -0
- package/dist/LegalDocument-BM4HLw9A.js +1580 -0
- package/dist/LegalDocument-hhYW9BBO.cjs +114 -0
- package/dist/LoginView-BpDNpbMQ.cjs +1 -0
- package/dist/LoginView-bUKvV6JV.js +17 -0
- package/dist/LogoutView-BrAt0b2J.js +16 -0
- package/dist/LogoutView-D7D3LcfL.cjs +1 -0
- package/dist/angledown-DgMf_Vjv.cjs +2 -0
- package/dist/angledown-igq2UW-u.js +46 -0
- package/dist/badge-2r_VjcsG.js +102 -0
- package/dist/badge-DPwocFJ8.cjs +76 -0
- package/dist/basecomponent-CGerMr_k.cjs +146 -0
- package/dist/basecomponent-CRTLSsqZ.js +1278 -0
- package/dist/baseeditableholder-BEn83TQE.js +126 -0
- package/dist/baseeditableholder-Q1_XheNU.cjs +1 -0
- package/dist/baseicon-Ct8wtBEp.cjs +34 -0
- package/dist/baseicon-DdvhP0UT.js +90 -0
- package/dist/baseinput-B6KUYtrd.js +37 -0
- package/dist/baseinput-D8710HSg.cjs +1 -0
- package/dist/bff/openapi.yaml +7 -0
- package/dist/button-M3QREAcT.cjs +651 -0
- package/dist/button-xI3Wu15Z.js +311 -0
- package/dist/calendar-B8nJAQne.js +2891 -0
- package/dist/calendar-CW9WbT3C.cjs +477 -0
- package/dist/card-BXosepCe.js +57 -0
- package/dist/card-Db30JagR.cjs +32 -0
- package/dist/check-BYTdkWQh.js +46 -0
- package/dist/check-D4kxzECF.cjs +2 -0
- package/dist/checkbox-BIDoCr_X.cjs +142 -0
- package/dist/checkbox-TAWN7HJG.js +323 -0
- package/dist/chevrondown-DLIH6sRy.cjs +2 -0
- package/dist/chevrondown-v3qKRLEG.js +46 -0
- package/dist/chevronleft-DMbyAEgw.cjs +2 -0
- package/dist/chevronleft-dQlHS1Vs.js +46 -0
- package/dist/chevronright-B3qtGWZb.js +46 -0
- package/dist/chevronright-BisalZVe.cjs +2 -0
- package/dist/chip-CBoKYRL5.js +107 -0
- package/dist/chip-CLwNi1p_.cjs +54 -0
- package/dist/chunk-BK-Lzi7j.cjs +1 -0
- package/dist/chunk-DgQ9yJBH.js +17 -0
- package/dist/classnames-4RuV7Ryo.js +19 -0
- package/dist/classnames-DqVQ5xbt.cjs +1 -0
- package/dist/containers.cjs +23 -26
- package/dist/containers.d.ts +0 -116
- package/dist/containers.js +4476 -5541
- package/dist/focustrap-BhHF6zvb.js +558 -0
- package/dist/focustrap-C_v0dFmU.cjs +152 -0
- package/dist/inputnumber-CvuB8fHc.cjs +195 -0
- package/dist/inputnumber-UfGZdwk2.js +983 -0
- package/dist/inputtext-B-iUN1cV.js +108 -0
- package/dist/inputtext-D2Ay4aYr.cjs +79 -0
- package/dist/legalConsent-B3erdrHX.cjs +1 -0
- package/dist/legalConsent-kc_KWyR6.js +66 -0
- package/dist/lib.cjs +1331 -1
- package/dist/lib.d.ts +0 -728
- package/dist/lib.js +22977 -35
- package/dist/locales-4eL4-K7f.js +3168 -0
- package/dist/locales-DzyBr_JU.cjs +5 -0
- package/dist/markdown-Cb6J3R4j.js +28 -0
- package/dist/markdown-Dxqg6Ggd.cjs +1 -0
- package/dist/network-DD_yGfK6.js +2404 -0
- package/dist/network-uPe9-HeS.cjs +9 -0
- package/dist/network.cjs +1 -1
- package/dist/network.d.ts +0 -103
- package/dist/network.js +2 -48
- package/dist/portal-BbZw4bN9.js +265 -0
- package/dist/portal-pIcEXWz1.cjs +2 -0
- package/dist/{index-EDm9-cRY.cjs → progressbar-BPR5tRX7.cjs} +2 -2
- package/dist/progressbar-CzckKCUr.js +96 -0
- package/dist/rating-DsIxcJXU.js +332 -0
- package/dist/rating-HfRWRXuI.cjs +61 -0
- package/dist/ripple-CoTE8rF8.js +501 -0
- package/dist/ripple-UYfqtU0m.cjs +24 -0
- package/dist/router-CR-sxf1q.js +34 -0
- package/dist/router-qXH6kffG.cjs +1 -0
- package/dist/router.cjs +1 -1
- package/dist/router.d.ts +0 -54
- package/dist/router.js +2 -16
- package/dist/select-C05BBcmi.js +2357 -0
- package/dist/select-CZouTpLB.cjs +360 -0
- package/dist/stores-BAbCgIKW.cjs +1 -0
- package/dist/stores-C5CUNzM_.js +203 -0
- package/dist/textarea-DUmMHVXf.cjs +84 -0
- package/dist/textarea-f6-j7m1N.js +131 -0
- package/dist/times--t6-zeg6.js +46 -0
- package/dist/times-GcOHYs3E.cjs +2 -0
- package/dist/timescircle-CHGzPrwL.cjs +2 -0
- package/dist/timescircle-_NJIsGD1.js +48 -0
- package/dist/wefa.css +2 -1
- package/package.json +36 -34
- package/src/components/DashboardComponent/DashboardGroupComponent.vue +1 -1
- package/src/components/NetworkButton/__tests__/ApiMutationButton.test.ts +12 -3
- package/src/components/NetworkButton/__tests__/ApiQueryButton.test.ts +12 -3
- package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +1 -1
- package/src/containers/SideMenuContainer/SideMenuContainer.vue +14 -3
- package/src/containers/helpers.ts +1 -1
- package/src/router/guards.ts +2 -2
- package/src/stores/__tests__/backend/jwt.test.ts +6 -6
- package/src/stores/__tests__/backend/oauth.test.ts +1 -1
- package/src/stores/__tests__/backend/token.test.ts +5 -5
- package/src/stores/backend/schemes/jwt.ts +3 -3
- package/src/stores/backend/schemes/token.ts +6 -7
- package/dist/LegalConsent-DQ7fkgVc.cjs +0 -1
- package/dist/LegalConsent-OLyvuzRY.js +0 -151
- package/dist/LegalDocument-B-nntRW7.cjs +0 -109
- package/dist/LegalDocument-BKebNzIK.js +0 -1330
- package/dist/LoginView-DUPa_PsC.js +0 -24
- package/dist/LoginView-Dihs8n_X.cjs +0 -1
- package/dist/LogoutView-DAh7MrFi.js +0 -19
- package/dist/LogoutView-Fl3nfeJ0.cjs +0 -1
- package/dist/apiClient-BHDjT0dU.js +0 -928
- package/dist/apiClient-Cr0IvG5Z.cjs +0 -1
- package/dist/axios-CZvsFspN.js +0 -1887
- package/dist/axios-DMqeKDaq.cjs +0 -6
- package/dist/index--_rUTrqU.js +0 -1414
- package/dist/index-05ASaj7N.cjs +0 -477
- package/dist/index-B7hJ2pku.cjs +0 -61
- package/dist/index-BHSxFTgZ.js +0 -49
- package/dist/index-BaA_oL1s.cjs +0 -32
- package/dist/index-Be5h48vc.js +0 -3530
- package/dist/index-Becfy0pF.cjs +0 -2
- package/dist/index-CPv4agmV.js +0 -400
- package/dist/index-CgAb-gZi.js +0 -89
- package/dist/index-DFSkcsx-.cjs +0 -943
- package/dist/index-DGUVQqZw.js +0 -208
- package/dist/index-DRozw3P8.js +0 -167
- package/dist/index-DfCQoHSf.cjs +0 -146
- package/dist/index-DkuJMEY1.js +0 -6731
- package/dist/index-Dv6jyKbT.js +0 -47
- package/dist/index-IGN7_cyg.cjs +0 -2
- package/dist/index-lFl6UsTa.js +0 -212
- package/dist/index-lQmq7gxp.cjs +0 -54
- package/dist/index-t0sdL3f2.cjs +0 -84
- package/dist/lib-DZzubLGt.js +0 -26376
- package/dist/lib-lTzD7ltX.cjs +0 -2104
- package/dist/libRoutes-B-H3e9wZ.js +0 -22
- package/dist/libRoutes-Cl3TklhN.cjs +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { t as e } from "./chunk-DgQ9yJBH.js";
|
|
2
|
+
import { t } from "./classnames-4RuV7Ryo.js";
|
|
3
|
+
import { r as n } from "./basecomponent-CRTLSsqZ.js";
|
|
4
|
+
import { t as r } from "./baseinput-B6KUYtrd.js";
|
|
5
|
+
import { createElementBlock as i, mergeProps as a, openBlock as o } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region node_modules/primevue/inputtext/style/index.mjs
|
|
8
|
+
var s = n.extend({
|
|
9
|
+
name: "inputtext",
|
|
10
|
+
style: "\n .p-inputtext {\n font-family: inherit;\n font-feature-settings: inherit;\n font-size: 1rem;\n color: dt('inputtext.color');\n background: dt('inputtext.background');\n padding-block: dt('inputtext.padding.y');\n padding-inline: dt('inputtext.padding.x');\n border: 1px solid dt('inputtext.border.color');\n transition:\n background dt('inputtext.transition.duration'),\n color dt('inputtext.transition.duration'),\n border-color dt('inputtext.transition.duration'),\n outline-color dt('inputtext.transition.duration'),\n box-shadow dt('inputtext.transition.duration');\n appearance: none;\n border-radius: dt('inputtext.border.radius');\n outline-color: transparent;\n box-shadow: dt('inputtext.shadow');\n }\n\n .p-inputtext:enabled:hover {\n border-color: dt('inputtext.hover.border.color');\n }\n\n .p-inputtext:enabled:focus {\n border-color: dt('inputtext.focus.border.color');\n box-shadow: dt('inputtext.focus.ring.shadow');\n outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');\n outline-offset: dt('inputtext.focus.ring.offset');\n }\n\n .p-inputtext.p-invalid {\n border-color: dt('inputtext.invalid.border.color');\n }\n\n .p-inputtext.p-variant-filled {\n background: dt('inputtext.filled.background');\n }\n\n .p-inputtext.p-variant-filled:enabled:hover {\n background: dt('inputtext.filled.hover.background');\n }\n\n .p-inputtext.p-variant-filled:enabled:focus {\n background: dt('inputtext.filled.focus.background');\n }\n\n .p-inputtext:disabled {\n opacity: 1;\n background: dt('inputtext.disabled.background');\n color: dt('inputtext.disabled.color');\n }\n\n .p-inputtext::placeholder {\n color: dt('inputtext.placeholder.color');\n }\n\n .p-inputtext.p-invalid::placeholder {\n color: dt('inputtext.invalid.placeholder.color');\n }\n\n .p-inputtext-sm {\n font-size: dt('inputtext.sm.font.size');\n padding-block: dt('inputtext.sm.padding.y');\n padding-inline: dt('inputtext.sm.padding.x');\n }\n\n .p-inputtext-lg {\n font-size: dt('inputtext.lg.font.size');\n padding-block: dt('inputtext.lg.padding.y');\n padding-inline: dt('inputtext.lg.padding.x');\n }\n\n .p-inputtext-fluid {\n width: 100%;\n }\n",
|
|
11
|
+
classes: { root: function(e) {
|
|
12
|
+
var t = e.instance, n = e.props;
|
|
13
|
+
return ["p-inputtext p-component", {
|
|
14
|
+
"p-filled": t.$filled,
|
|
15
|
+
"p-inputtext-sm p-inputfield-sm": n.size === "small",
|
|
16
|
+
"p-inputtext-lg p-inputfield-lg": n.size === "large",
|
|
17
|
+
"p-invalid": t.$invalid,
|
|
18
|
+
"p-variant-filled": t.$variant === "filled",
|
|
19
|
+
"p-inputtext-fluid": t.$fluid
|
|
20
|
+
}];
|
|
21
|
+
} }
|
|
22
|
+
}), c = /* @__PURE__ */ e({ default: () => m }), l = {
|
|
23
|
+
name: "BaseInputText",
|
|
24
|
+
extends: r,
|
|
25
|
+
style: s,
|
|
26
|
+
provide: function() {
|
|
27
|
+
return {
|
|
28
|
+
$pcInputText: this,
|
|
29
|
+
$parentInstance: this
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function u(e) {
|
|
34
|
+
"@babel/helpers - typeof";
|
|
35
|
+
return u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
36
|
+
return typeof e;
|
|
37
|
+
} : function(e) {
|
|
38
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
39
|
+
}, u(e);
|
|
40
|
+
}
|
|
41
|
+
function d(e, t, n) {
|
|
42
|
+
return (t = f(t)) in e ? Object.defineProperty(e, t, {
|
|
43
|
+
value: n,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
configurable: !0,
|
|
46
|
+
writable: !0
|
|
47
|
+
}) : e[t] = n, e;
|
|
48
|
+
}
|
|
49
|
+
function f(e) {
|
|
50
|
+
var t = p(e, "string");
|
|
51
|
+
return u(t) == "symbol" ? t : t + "";
|
|
52
|
+
}
|
|
53
|
+
function p(e, t) {
|
|
54
|
+
if (u(e) != "object" || !e) return e;
|
|
55
|
+
var n = e[Symbol.toPrimitive];
|
|
56
|
+
if (n !== void 0) {
|
|
57
|
+
var r = n.call(e, t);
|
|
58
|
+
if (u(r) != "object") return r;
|
|
59
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
60
|
+
}
|
|
61
|
+
return (t === "string" ? String : Number)(e);
|
|
62
|
+
}
|
|
63
|
+
var m = {
|
|
64
|
+
name: "InputText",
|
|
65
|
+
extends: l,
|
|
66
|
+
inheritAttrs: !1,
|
|
67
|
+
methods: { onInput: function(e) {
|
|
68
|
+
this.writeValue(e.target.value, e);
|
|
69
|
+
} },
|
|
70
|
+
computed: {
|
|
71
|
+
attrs: function() {
|
|
72
|
+
return a(this.ptmi("root", { context: {
|
|
73
|
+
filled: this.$filled,
|
|
74
|
+
disabled: this.disabled
|
|
75
|
+
} }), this.formField);
|
|
76
|
+
},
|
|
77
|
+
dataP: function() {
|
|
78
|
+
return t(d({
|
|
79
|
+
invalid: this.$invalid,
|
|
80
|
+
fluid: this.$fluid,
|
|
81
|
+
filled: this.$variant === "filled"
|
|
82
|
+
}, this.size, this.size));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, h = [
|
|
86
|
+
"value",
|
|
87
|
+
"name",
|
|
88
|
+
"disabled",
|
|
89
|
+
"aria-invalid",
|
|
90
|
+
"data-p"
|
|
91
|
+
];
|
|
92
|
+
function g(e, t, n, r, s, c) {
|
|
93
|
+
return o(), i("input", a({
|
|
94
|
+
type: "text",
|
|
95
|
+
class: e.cx("root"),
|
|
96
|
+
value: e.d_value,
|
|
97
|
+
name: e.name,
|
|
98
|
+
disabled: e.disabled,
|
|
99
|
+
"aria-invalid": e.$invalid || void 0,
|
|
100
|
+
"data-p": c.dataP,
|
|
101
|
+
onInput: t[0] ||= function() {
|
|
102
|
+
return c.onInput && c.onInput.apply(c, arguments);
|
|
103
|
+
}
|
|
104
|
+
}, c.attrs), null, 16, h);
|
|
105
|
+
}
|
|
106
|
+
m.render = g;
|
|
107
|
+
//#endregion
|
|
108
|
+
export { m as n, c as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const e=require(`./chunk-BK-Lzi7j.cjs`),t=require(`./classnames-DqVQ5xbt.cjs`),n=require(`./basecomponent-CGerMr_k.cjs`),r=require(`./baseinput-D8710HSg.cjs`);let i=require(`vue`);var a=n.r.extend({name:`inputtext`,style:`
|
|
2
|
+
.p-inputtext {
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
font-feature-settings: inherit;
|
|
5
|
+
font-size: 1rem;
|
|
6
|
+
color: dt('inputtext.color');
|
|
7
|
+
background: dt('inputtext.background');
|
|
8
|
+
padding-block: dt('inputtext.padding.y');
|
|
9
|
+
padding-inline: dt('inputtext.padding.x');
|
|
10
|
+
border: 1px solid dt('inputtext.border.color');
|
|
11
|
+
transition:
|
|
12
|
+
background dt('inputtext.transition.duration'),
|
|
13
|
+
color dt('inputtext.transition.duration'),
|
|
14
|
+
border-color dt('inputtext.transition.duration'),
|
|
15
|
+
outline-color dt('inputtext.transition.duration'),
|
|
16
|
+
box-shadow dt('inputtext.transition.duration');
|
|
17
|
+
appearance: none;
|
|
18
|
+
border-radius: dt('inputtext.border.radius');
|
|
19
|
+
outline-color: transparent;
|
|
20
|
+
box-shadow: dt('inputtext.shadow');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.p-inputtext:enabled:hover {
|
|
24
|
+
border-color: dt('inputtext.hover.border.color');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.p-inputtext:enabled:focus {
|
|
28
|
+
border-color: dt('inputtext.focus.border.color');
|
|
29
|
+
box-shadow: dt('inputtext.focus.ring.shadow');
|
|
30
|
+
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
|
|
31
|
+
outline-offset: dt('inputtext.focus.ring.offset');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-inputtext.p-invalid {
|
|
35
|
+
border-color: dt('inputtext.invalid.border.color');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-inputtext.p-variant-filled {
|
|
39
|
+
background: dt('inputtext.filled.background');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-inputtext.p-variant-filled:enabled:hover {
|
|
43
|
+
background: dt('inputtext.filled.hover.background');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-inputtext.p-variant-filled:enabled:focus {
|
|
47
|
+
background: dt('inputtext.filled.focus.background');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.p-inputtext:disabled {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
background: dt('inputtext.disabled.background');
|
|
53
|
+
color: dt('inputtext.disabled.color');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.p-inputtext::placeholder {
|
|
57
|
+
color: dt('inputtext.placeholder.color');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.p-inputtext.p-invalid::placeholder {
|
|
61
|
+
color: dt('inputtext.invalid.placeholder.color');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-inputtext-sm {
|
|
65
|
+
font-size: dt('inputtext.sm.font.size');
|
|
66
|
+
padding-block: dt('inputtext.sm.padding.y');
|
|
67
|
+
padding-inline: dt('inputtext.sm.padding.x');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.p-inputtext-lg {
|
|
71
|
+
font-size: dt('inputtext.lg.font.size');
|
|
72
|
+
padding-block: dt('inputtext.lg.padding.y');
|
|
73
|
+
padding-inline: dt('inputtext.lg.padding.x');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.p-inputtext-fluid {
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-inputtext p-component`,{"p-filled":t.$filled,"p-inputtext-sm p-inputfield-sm":n.size===`small`,"p-inputtext-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-inputtext-fluid":t.$fluid}]}}}),o=e.t({default:()=>f}),s={name:`BaseInputText`,extends:r.t,style:a,provide:function(){return{$pcInputText:this,$parentInstance:this}}};function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=d(e,`string`);return c(t)==`symbol`?t:t+``}function d(e,t){if(c(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(c(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var f={name:`InputText`,extends:s,inheritAttrs:!1,methods:{onInput:function(e){this.writeValue(e.target.value,e)}},computed:{attrs:function(){return(0,i.mergeProps)(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return t.t(l({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},p=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function m(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({type:`text`,class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.$invalid||void 0,"data-p":o.dataP,onInput:t[0]||=function(){return o.onInput&&o.onInput.apply(o,arguments)}},o.attrs),null,16,p)}f.render=m,Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-BK-Lzi7j.cjs`);const e=require(`./network-uPe9-HeS.cjs`);let t=require(`vue`);require(`vue-router`);let n=require(`pinia`);var r={path:`/terms-of-use`,name:`terms-of-use`,component:()=>Promise.resolve().then(()=>require(`./LegalDocument-hhYW9BBO.cjs`)),props:{documentEndpoint:`terms-of-use`}},i={path:`/privacy-notice`,name:`privacy-notice`,component:()=>Promise.resolve().then(()=>require(`./LegalDocument-hhYW9BBO.cjs`)),props:{documentEndpoint:`privacy-notice`}},a={path:`/legal-consent`,name:`legal-consent`,component:()=>Promise.resolve().then(()=>require(`./LegalConsent-ChW-GYBv.cjs`))},o={async install(e,t){let n=t.termsOfUseRoute||r,o=t.privacyNoticeRoute||i,c=t.legalConsentRoute||a;t.router.addRoute(n),t.router.addRoute(o),t.router.addRoute(c),await t.router.isReady();let l=s();l.legalEndpoint=t.path;let u=t.backendStore;t.router.beforeEach((e,t,r)=>{let i=[n.name,o.name].includes(e.name),a=e.name===c.name,s=l.legalConsent,d=u.authenticated;if(i){r();return}if(!s){r();return}if(s.valid){if(a){r(!1);return}r();return}if(!a&&d){r({name:c.name});return}r()}),await l.fetchLegalConsent(),t.router.push({path:t.router.currentRoute.value.path}).then(()=>{})}},s=(0,n.defineStore)(`legalStore`,()=>{let n=(0,t.ref)(null),r=(0,t.ref)(void 0);async function i(){n.value=(await e.r.get(`${e.r.defaults.baseURL}/${r.value}/agreement/`)).data}async function a(){n.value=(await e.r.patch(`${e.r.defaults.baseURL}/${r.value}/agreement/`)).data}return{legalEndpoint:r,legalConsent:n,fetchLegalConsent:i,acceptLegalConsent:a}});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { r as e } from "./network-DD_yGfK6.js";
|
|
2
|
+
import { ref as t } from "vue";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import { defineStore as n } from "pinia";
|
|
5
|
+
//#region src/plugins/legalConsent/index.ts
|
|
6
|
+
var r = {
|
|
7
|
+
path: "/terms-of-use",
|
|
8
|
+
name: "terms-of-use",
|
|
9
|
+
component: () => import("./LegalDocument-BM4HLw9A.js"),
|
|
10
|
+
props: { documentEndpoint: "terms-of-use" }
|
|
11
|
+
}, i = {
|
|
12
|
+
path: "/privacy-notice",
|
|
13
|
+
name: "privacy-notice",
|
|
14
|
+
component: () => import("./LegalDocument-BM4HLw9A.js"),
|
|
15
|
+
props: { documentEndpoint: "privacy-notice" }
|
|
16
|
+
}, a = {
|
|
17
|
+
path: "/legal-consent",
|
|
18
|
+
name: "legal-consent",
|
|
19
|
+
component: () => import("./LegalConsent-BxOWAO0s.js")
|
|
20
|
+
}, o = { async install(e, t) {
|
|
21
|
+
let n = t.termsOfUseRoute || r, o = t.privacyNoticeRoute || i, c = t.legalConsentRoute || a;
|
|
22
|
+
t.router.addRoute(n), t.router.addRoute(o), t.router.addRoute(c), await t.router.isReady();
|
|
23
|
+
let l = s();
|
|
24
|
+
l.legalEndpoint = t.path;
|
|
25
|
+
let u = t.backendStore;
|
|
26
|
+
t.router.beforeEach((e, t, r) => {
|
|
27
|
+
let i = [n.name, o.name].includes(e.name), a = e.name === c.name, s = l.legalConsent, d = u.authenticated;
|
|
28
|
+
if (i) {
|
|
29
|
+
r();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (!s) {
|
|
33
|
+
r();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (s.valid) {
|
|
37
|
+
if (a) {
|
|
38
|
+
r(!1);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
r();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!a && d) {
|
|
45
|
+
r({ name: c.name });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
r();
|
|
49
|
+
}), await l.fetchLegalConsent(), t.router.push({ path: t.router.currentRoute.value.path }).then(() => {});
|
|
50
|
+
} }, s = n("legalStore", () => {
|
|
51
|
+
let n = t(null), r = t(void 0);
|
|
52
|
+
async function i() {
|
|
53
|
+
n.value = (await e.get(`${e.defaults.baseURL}/${r.value}/agreement/`)).data;
|
|
54
|
+
}
|
|
55
|
+
async function a() {
|
|
56
|
+
n.value = (await e.patch(`${e.defaults.baseURL}/${r.value}/agreement/`)).data;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
legalEndpoint: r,
|
|
60
|
+
legalConsent: n,
|
|
61
|
+
fetchLegalConsent: i,
|
|
62
|
+
acceptLegalConsent: a
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
export { s as a, o as i, i as n, r, a as t };
|