@ozdao/prometheus-framework 0.2.48 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- package/dist/organizations.server.js +13 -27
- package/dist/organizations.server.mjs +13 -27
- package/dist/products.server.js +95 -15
- package/dist/products.server.mjs +95 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +44 -32
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +49 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +249 -61
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +78 -45
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +161 -86
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +20 -26
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +123 -113
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +60 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +6 -2
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +87 -24
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
@@ -1,78 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Field.vue2.js";
|
3
|
-
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const p = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
|
8
|
-
key: 1,
|
9
|
-
class: "t-transp mn-l-small"
|
10
|
-
}, C = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Field",
|
15
|
-
props: {
|
16
|
-
label: null,
|
17
|
-
symbol: null,
|
18
|
-
type: "text",
|
19
|
-
placeholder: "Enter something here",
|
20
|
-
field: null,
|
21
|
-
validation: !1,
|
22
|
-
disabled: !1,
|
23
|
-
tabindex: -1
|
24
|
-
},
|
25
|
-
emits: ["update:field", "focus", "blur"],
|
26
|
-
setup(e, { emit: m }) {
|
27
|
-
const n = m, u = f(e.field);
|
28
|
-
return (r, t) => (a(), d(b, null, [
|
29
|
-
i("div", {
|
30
|
-
class: c([[
|
31
|
-
r.$attrs.class,
|
32
|
-
{
|
33
|
-
"bg-fourth-nano": e.validation
|
34
|
-
}
|
35
|
-
], "flex-center flex-nowrap flex"])
|
36
|
-
}, [
|
37
|
-
e.label ? (a(), d("div", p, [
|
38
|
-
i("span", null, o(e.label), 1)
|
39
|
-
])) : s("", !0),
|
40
|
-
i("div", g, [
|
41
|
-
e.type !== "textarea" ? (a(), d("input", {
|
42
|
-
key: 0,
|
43
|
-
onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
|
44
|
-
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
45
|
-
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
46
|
-
type: e.type,
|
47
|
-
class: "w-100",
|
48
|
-
value: e.field,
|
49
|
-
placeholder: e.placeholder,
|
50
|
-
tabindex: e.tabindex
|
51
|
-
}, null, 40, w)) : (a(), d("textarea", {
|
52
|
-
key: 1,
|
53
|
-
onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
|
54
|
-
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
55
|
-
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
56
|
-
class: "w-100",
|
57
|
-
value: e.field,
|
58
|
-
placeholder: e.placeholder,
|
59
|
-
tabindex: e.tabindex
|
60
|
-
}, null, 40, F))
|
61
|
-
]),
|
62
|
-
v(r.$slots, "default", {}, void 0, !0),
|
63
|
-
e.symbol ? (a(), d("div", B, [
|
64
|
-
i("span", null, o(e.symbol), 1)
|
65
|
-
])) : s("", !0)
|
66
|
-
], 2),
|
67
|
-
x(y, { name: "fade" }, {
|
68
|
-
default: h(() => [
|
69
|
-
e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
|
70
|
-
]),
|
71
|
-
_: 1
|
72
|
-
})
|
73
|
-
], 64));
|
74
|
-
}
|
75
|
-
}, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-5e69d3c2"]]);
|
1
|
+
const e = "";
|
76
2
|
export {
|
77
|
-
|
3
|
+
e as default
|
78
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-5e69d3c2"]]);exports.default=y;
|
@@ -1,4 +1,78 @@
|
|
1
|
-
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as d, Fragment as b, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as s, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
|
2
|
+
import "./Field.vue.js";
|
3
|
+
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const p = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, C = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
validation: !1,
|
22
|
+
disabled: !1,
|
23
|
+
tabindex: -1
|
24
|
+
},
|
25
|
+
emits: ["update:field", "focus", "blur"],
|
26
|
+
setup(e, { emit: m }) {
|
27
|
+
const n = m, u = f(e.field);
|
28
|
+
return (r, t) => (a(), d(b, null, [
|
29
|
+
i("div", {
|
30
|
+
class: c([[
|
31
|
+
r.$attrs.class,
|
32
|
+
{
|
33
|
+
"bg-fourth-nano": e.validation
|
34
|
+
}
|
35
|
+
], "flex-center flex-nowrap flex"])
|
36
|
+
}, [
|
37
|
+
e.label ? (a(), d("div", p, [
|
38
|
+
i("span", null, o(e.label), 1)
|
39
|
+
])) : s("", !0),
|
40
|
+
i("div", g, [
|
41
|
+
e.type !== "textarea" ? (a(), d("input", {
|
42
|
+
key: 0,
|
43
|
+
onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
|
44
|
+
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
45
|
+
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
46
|
+
type: e.type,
|
47
|
+
class: "w-100",
|
48
|
+
value: e.field,
|
49
|
+
placeholder: e.placeholder,
|
50
|
+
tabindex: e.tabindex
|
51
|
+
}, null, 40, w)) : (a(), d("textarea", {
|
52
|
+
key: 1,
|
53
|
+
onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
|
54
|
+
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
55
|
+
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
56
|
+
class: "w-100",
|
57
|
+
value: e.field,
|
58
|
+
placeholder: e.placeholder,
|
59
|
+
tabindex: e.tabindex
|
60
|
+
}, null, 40, F))
|
61
|
+
]),
|
62
|
+
v(r.$slots, "default", {}, void 0, !0),
|
63
|
+
e.symbol ? (a(), d("div", B, [
|
64
|
+
i("span", null, o(e.symbol), 1)
|
65
|
+
])) : s("", !0)
|
66
|
+
], 2),
|
67
|
+
x(y, { name: "fade" }, {
|
68
|
+
default: h(() => [
|
69
|
+
e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
], 64));
|
74
|
+
}
|
75
|
+
}, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-5e69d3c2"]]);
|
2
76
|
export {
|
3
|
-
|
77
|
+
$ as default
|
4
78
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, onMounted as S, watchEffect as F, openBlock as T, createElementBlock as b, createVNode as C, unref as v, isRef as H, createCommentVNode as _ } from "vue";
|
2
|
-
import L from "../Field/Field.
|
2
|
+
import L from "../Field/Field.vue2.js";
|
3
3
|
import { useI18n as M } from "vue-i18n";
|
4
4
|
const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./multiselectMixin.cjs"),d=require("./pointerMixin.cjs"),e=require("vue");require("./SelectMulti.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),m={name:"vue-multiselect",mixins:[a.default,d.default],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},h=["tabindex","aria-owns"],p={ref:"tags",class:"multiselect__tags"},c={class:"multiselect__tags-wrap"},g=["textContent"],b=["onKeypress","onMousedown"],v=["textContent"],f={class:"multiselect__spinner"},w=["name","id","placeholder","value","disabled","tabindex","aria-controls"],y=["id"],S={key:0},V={class:"multiselect__option"},L=["id","role"],N=["onClick","onMouseenter","data-select","data-selected","data-deselect"],E=["data-select","data-deselect","onMouseenter","onMousedown"],k={class:"multiselect__option"},M={class:"multiselect__option"};function B(t,s,n,C,T,i){return e.openBlock(),e.createElementBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:e.normalizeClass([{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"]),onFocus:s[13]||(s[13]=l=>t.activate()),onBlur:s[14]||(s[14]=l=>t.searchable?!1:t.deactivate()),onKeydown:[s[15]||(s[15]=e.withKeys(e.withModifiers(l=>t.pointerForward(),["self","prevent"]),["down"])),s[16]||(s[16]=e.withKeys(e.withModifiers(l=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:s[17]||(s[17]=e.withKeys(e.withModifiers(l=>t.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:s[18]||(s[18]=e.withKeys(l=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[e.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(l=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),e.renderSlot(t.$slots,"clear",{search:t.search}),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:i.visibleValues,isOpen:t.isOpen},()=>[e.withDirectives(e.createElementVNode("div",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visibleValues,(l,o)=>e.renderSlot(t.$slots,"tag",{option:l,search:t.search,remove:t.removeElement},()=>[(e.openBlock(),e.createElementBlock("span",{class:"multiselect__tag",key:o},[e.createElementVNode("span",{textContent:e.toDisplayString(t.getOptionLabel(l))},null,8,g),e.createElementVNode("i",{tabindex:"1",onKeypress:e.withKeys(e.withModifiers(r=>t.removeElement(l),["prevent"]),["enter"]),onMousedown:e.withModifiers(r=>t.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,b)]))])),256))],512),[[e.vShow,i.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?e.renderSlot(t.$slots,"limit",{key:0},()=>[e.createElementVNode("strong",{class:"multiselect__strong",textContent:e.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,v)]):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"multiselect__loading"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"loading",{},()=>[e.withDirectives(e.createElementVNode("div",f,null,512),[[e.vShow,n.loading]])])]),_:3}),t.searchable?(e.openBlock(),e.createElementBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,style:e.normalizeStyle(i.inputStyle),value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:s[1]||(s[1]=l=>t.updateSearch(l.target.value)),onFocus:s[2]||(s[2]=e.withModifiers(l=>t.activate(),["prevent"])),onBlur:s[3]||(s[3]=e.withModifiers(l=>t.deactivate(),["prevent"])),onKeyup:s[4]||(s[4]=e.withKeys(l=>t.deactivate(),["esc"])),onKeydown:[s[5]||(s[5]=e.withKeys(e.withModifiers(l=>t.pointerForward(),["prevent"]),["down"])),s[6]||(s[6]=e.withKeys(e.withModifiers(l=>t.pointerBackward(),["prevent"]),["up"])),s[8]||(s[8]=e.withKeys(e.withModifiers(l=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:s[7]||(s[7]=e.withKeys(e.withModifiers(l=>t.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,w)):e.createCommentVNode("",!0),i.isSingleLabelVisible?(e.openBlock(),e.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:s[9]||(s[9]=e.withModifiers((...l)=>t.toggle&&t.toggle(...l),["prevent"]))},[e.renderSlot(t.$slots,"singleLabel",{option:i.singleValue},()=>[e.createTextVNode(e.toDisplayString(t.currentOptionLabel),1)])],32)):e.createCommentVNode("",!0),i.isPlaceholderVisible?(e.openBlock(),e.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:s[10]||(s[10]=e.withModifiers((...l)=>t.toggle&&t.toggle(...l),["prevent"]))},[e.renderSlot(t.$slots,"placeholder",{},()=>[e.createTextVNode(e.toDisplayString(t.placeholder),1)])],32)):e.createCommentVNode("",!0)],512),e.createVNode(e.Transition,{name:"multiselect"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["multiselect__content-wrapper",t.$attrs.class]),onFocus:s[11]||(s[11]=(...l)=>t.activate&&t.activate(...l)),tabindex:"-1",onMousedown:s[12]||(s[12]=e.withModifiers(()=>{},["prevent"])),style:e.normalizeStyle({maxHeight:t.optimizedHeight+"px"}),ref:"list"},[e.createElementVNode("ul",{class:"multiselect__content",style:e.normalizeStyle(i.contentStyle),role:"listbox",id:"listbox-"+t.id},[e.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(e.openBlock(),e.createElementBlock("li",S,[e.createElementVNode("span",V,[e.renderSlot(t.$slots,"maxElements",{},()=>[e.createTextVNode("Maximum of "+e.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):e.createCommentVNode("",!0),!t.max||t.internalValue.length<t.max?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.filteredOptions,(l,o)=>(e.openBlock(),e.createElementBlock("li",{class:"multiselect__element",key:o,id:t.id+"-"+o,role:l&&(l.$isLabel||l.$isDisabled)?null:"option"},[l&&(l.$isLabel||l.$isDisabled)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.optionHighlight(o,l),"multiselect__option"]),onClick:e.withModifiers(r=>t.select(l),["stop"]),onMouseenter:e.withModifiers(r=>t.pointerSet(o),["self"]),"data-select":l&&l.isTag?t.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[e.renderSlot(t.$slots,"option",{option:l,search:t.search,index:o},()=>[e.createElementVNode("span",null,e.toDisplayString(t.getOptionLabel(l)),1)])],42,N)),l&&(l.$isLabel||l.$isDisabled)?(e.openBlock(),e.createElementBlock("span",{key:1,"data-select":t.groupSelect&&i.selectGroupLabelText,"data-deselect":t.groupSelect&&i.deselectGroupLabelText,class:e.normalizeClass([t.groupHighlight(o,l),"multiselect__option"]),onMouseenter:e.withModifiers(r=>t.groupSelect&&t.pointerSet(o),["self"]),onMousedown:e.withModifiers(r=>t.selectGroup(l),["prevent"])},[e.renderSlot(t.$slots,"option",{option:l,search:t.search,index:o},()=>[e.createElementVNode("span",null,e.toDisplayString(t.getOptionLabel(l)),1)])],42,E)):e.createCommentVNode("",!0)],8,L))),128)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("li",null,[e.createElementVNode("span",k,[e.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[e.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),e.withDirectives(e.createElementVNode("li",null,[e.createElementVNode("span",M,[e.renderSlot(t.$slots,"noOptions",{},()=>[e.createTextVNode("List is empty.")])])],512),[[e.vShow,n.showNoOptions&&(t.options.length===0||i.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),e.renderSlot(t.$slots,"afterList")],12,y)],38),[[e.vShow,t.isOpen]])]),_:3})],42,h)}const O=u.default(m,[["render",B]]);exports.default=O;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./multiselectMixin.cjs"),d=require("./pointerMixin.cjs"),e=require("vue");require("./SelectMulti.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),m={name:"vue-multiselect",mixins:[a.default,d.default],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},h=["tabindex","aria-owns"],p={ref:"tags",class:"multiselect__tags"},c={class:"multiselect__tags-wrap"},g=["textContent"],b=["onKeypress","onMousedown"],v=["textContent"],f={class:"multiselect__spinner"},w=["name","id","placeholder","value","disabled","tabindex","aria-controls"],y=["id"],S={key:0},V={class:"multiselect__option"},L=["id","role"],N=["onClick","onMouseenter","data-select","data-selected","data-deselect"],E=["data-select","data-deselect","onMouseenter","onMousedown"],k={class:"multiselect__option"},M={class:"multiselect__option"};function B(t,s,n,C,T,i){return e.openBlock(),e.createElementBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:e.normalizeClass([{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect flex flex-v-center"]),onFocus:s[13]||(s[13]=l=>t.activate()),onBlur:s[14]||(s[14]=l=>t.searchable?!1:t.deactivate()),onKeydown:[s[15]||(s[15]=e.withKeys(e.withModifiers(l=>t.pointerForward(),["self","prevent"]),["down"])),s[16]||(s[16]=e.withKeys(e.withModifiers(l=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:s[17]||(s[17]=e.withKeys(e.withModifiers(l=>t.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:s[18]||(s[18]=e.withKeys(l=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[e.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(l=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),e.renderSlot(t.$slots,"clear",{search:t.search}),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:i.visibleValues,isOpen:t.isOpen},()=>[e.withDirectives(e.createElementVNode("div",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visibleValues,(l,o)=>e.renderSlot(t.$slots,"tag",{option:l,search:t.search,remove:t.removeElement},()=>[(e.openBlock(),e.createElementBlock("span",{class:"multiselect__tag",key:o},[e.createElementVNode("span",{textContent:e.toDisplayString(t.getOptionLabel(l))},null,8,g),e.createElementVNode("i",{tabindex:"1",onKeypress:e.withKeys(e.withModifiers(r=>t.removeElement(l),["prevent"]),["enter"]),onMousedown:e.withModifiers(r=>t.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,b)]))])),256))],512),[[e.vShow,i.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?e.renderSlot(t.$slots,"limit",{key:0},()=>[e.createElementVNode("strong",{class:"multiselect__strong",textContent:e.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,v)]):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"multiselect__loading"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"loading",{},()=>[e.withDirectives(e.createElementVNode("div",f,null,512),[[e.vShow,n.loading]])])]),_:3}),t.searchable?(e.openBlock(),e.createElementBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,style:e.normalizeStyle(i.inputStyle),value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:s[1]||(s[1]=l=>t.updateSearch(l.target.value)),onFocus:s[2]||(s[2]=e.withModifiers(l=>t.activate(),["prevent"])),onBlur:s[3]||(s[3]=e.withModifiers(l=>t.deactivate(),["prevent"])),onKeyup:s[4]||(s[4]=e.withKeys(l=>t.deactivate(),["esc"])),onKeydown:[s[5]||(s[5]=e.withKeys(e.withModifiers(l=>t.pointerForward(),["prevent"]),["down"])),s[6]||(s[6]=e.withKeys(e.withModifiers(l=>t.pointerBackward(),["prevent"]),["up"])),s[8]||(s[8]=e.withKeys(e.withModifiers(l=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:s[7]||(s[7]=e.withKeys(e.withModifiers(l=>t.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,w)):e.createCommentVNode("",!0),i.isSingleLabelVisible?(e.openBlock(),e.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:s[9]||(s[9]=e.withModifiers((...l)=>t.toggle&&t.toggle(...l),["prevent"]))},[e.renderSlot(t.$slots,"singleLabel",{option:i.singleValue},()=>[e.createTextVNode(e.toDisplayString(t.currentOptionLabel),1)])],32)):e.createCommentVNode("",!0),i.isPlaceholderVisible?(e.openBlock(),e.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:s[10]||(s[10]=e.withModifiers((...l)=>t.toggle&&t.toggle(...l),["prevent"]))},[e.renderSlot(t.$slots,"placeholder",{},()=>[e.createTextVNode(e.toDisplayString(t.placeholder),1)])],32)):e.createCommentVNode("",!0)],512),e.createVNode(e.Transition,{name:"multiselect"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["multiselect__content-wrapper",t.$attrs.class]),onFocus:s[11]||(s[11]=(...l)=>t.activate&&t.activate(...l)),tabindex:"-1",onMousedown:s[12]||(s[12]=e.withModifiers(()=>{},["prevent"])),style:e.normalizeStyle({maxHeight:t.optimizedHeight+"px"}),ref:"list"},[e.createElementVNode("ul",{class:"multiselect__content",style:e.normalizeStyle(i.contentStyle),role:"listbox",id:"listbox-"+t.id},[e.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(e.openBlock(),e.createElementBlock("li",S,[e.createElementVNode("span",V,[e.renderSlot(t.$slots,"maxElements",{},()=>[e.createTextVNode("Maximum of "+e.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):e.createCommentVNode("",!0),!t.max||t.internalValue.length<t.max?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.filteredOptions,(l,o)=>(e.openBlock(),e.createElementBlock("li",{class:"multiselect__element",key:o,id:t.id+"-"+o,role:l&&(l.$isLabel||l.$isDisabled)?null:"option"},[l&&(l.$isLabel||l.$isDisabled)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.optionHighlight(o,l),"multiselect__option"]),onClick:e.withModifiers(r=>t.select(l),["stop"]),onMouseenter:e.withModifiers(r=>t.pointerSet(o),["self"]),"data-select":l&&l.isTag?t.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[e.renderSlot(t.$slots,"option",{option:l,search:t.search,index:o},()=>[e.createElementVNode("span",null,e.toDisplayString(t.getOptionLabel(l)),1)])],42,N)),l&&(l.$isLabel||l.$isDisabled)?(e.openBlock(),e.createElementBlock("span",{key:1,"data-select":t.groupSelect&&i.selectGroupLabelText,"data-deselect":t.groupSelect&&i.deselectGroupLabelText,class:e.normalizeClass([t.groupHighlight(o,l),"multiselect__option"]),onMouseenter:e.withModifiers(r=>t.groupSelect&&t.pointerSet(o),["self"]),onMousedown:e.withModifiers(r=>t.selectGroup(l),["prevent"])},[e.renderSlot(t.$slots,"option",{option:l,search:t.search,index:o},()=>[e.createElementVNode("span",null,e.toDisplayString(t.getOptionLabel(l)),1)])],42,E)):e.createCommentVNode("",!0)],8,L))),128)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("li",null,[e.createElementVNode("span",k,[e.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[e.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),e.withDirectives(e.createElementVNode("li",null,[e.createElementVNode("span",M,[e.renderSlot(t.$slots,"noOptions",{},()=>[e.createTextVNode("List is empty.")])])],512),[[e.vShow,n.showNoOptions&&(t.options.length===0||i.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),e.renderSlot(t.$slots,"afterList")],12,y)],38),[[e.vShow,t.isOpen]])]),_:3})],42,h)}const O=u.default(m,[["render",B]]);exports.default=O;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import k from "./multiselectMixin.js";
|
2
2
|
import M from "./pointerMixin.js";
|
3
|
-
import { openBlock as r, createElementBlock as u, normalizeClass as y, withKeys as p, withModifiers as s, renderSlot as a, createElementVNode as n, withDirectives as g, Fragment as
|
3
|
+
import { openBlock as r, createElementBlock as u, normalizeClass as y, withKeys as p, withModifiers as s, renderSlot as a, createElementVNode as n, withDirectives as g, Fragment as c, renderList as w, toDisplayString as h, vShow as v, createCommentVNode as m, createVNode as S, Transition as V, withCtx as O, normalizeStyle as L, createTextVNode as f } from "vue";
|
4
4
|
import "./SelectMulti.vue2.js";
|
5
5
|
import T from "../../../../_virtual/_plugin-vue_export-helper.js";
|
6
6
|
const $ = {
|
@@ -209,7 +209,7 @@ const $ = {
|
|
209
209
|
function j(e, l, o, J, Q, i) {
|
210
210
|
return r(), u("div", {
|
211
211
|
tabindex: e.searchable ? -1 : o.tabindex,
|
212
|
-
class: y([{ "multiselect--active": e.isOpen, "multiselect--disabled": o.disabled, "multiselect--above": i.isAbove, "multiselect--has-options-group": i.hasOptionGroup }, "multiselect"]),
|
212
|
+
class: y([{ "multiselect--active": e.isOpen, "multiselect--disabled": o.disabled, "multiselect--above": i.isAbove, "multiselect--has-options-group": i.hasOptionGroup }, "multiselect flex flex-v-center"]),
|
213
213
|
onFocus: l[13] || (l[13] = (t) => e.activate()),
|
214
214
|
onBlur: l[14] || (l[14] = (t) => e.searchable ? !1 : e.deactivate()),
|
215
215
|
onKeydown: [
|
@@ -236,7 +236,7 @@ function j(e, l, o, J, Q, i) {
|
|
236
236
|
isOpen: e.isOpen
|
237
237
|
}, () => [
|
238
238
|
g(n("div", C, [
|
239
|
-
(r(!0), u(
|
239
|
+
(r(!0), u(c, null, w(i.visibleValues, (t, d) => a(e.$slots, "tag", {
|
240
240
|
option: t,
|
241
241
|
search: e.search,
|
242
242
|
remove: e.removeElement
|
@@ -346,7 +346,7 @@ function j(e, l, o, J, Q, i) {
|
|
346
346
|
])
|
347
347
|
])
|
348
348
|
])) : m("", !0),
|
349
|
-
!e.max || e.internalValue.length < e.max ? (r(!0), u(
|
349
|
+
!e.max || e.internalValue.length < e.max ? (r(!0), u(c, { key: 1 }, w(e.filteredOptions, (t, d) => (r(), u("li", {
|
350
350
|
class: "multiselect__element",
|
351
351
|
key: d,
|
352
352
|
id: e.id + "-" + d,
|
@@ -414,7 +414,7 @@ function j(e, l, o, J, Q, i) {
|
|
414
414
|
})
|
415
415
|
], 42, E);
|
416
416
|
}
|
417
|
-
const
|
417
|
+
const _ = /* @__PURE__ */ T($, [["render", j]]);
|
418
418
|
export {
|
419
|
-
|
419
|
+
_ as default
|
420
420
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,46 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Tab.vue2.js";
|
3
|
-
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
|
4
|
-
__name: "Tab",
|
5
|
-
props: {
|
6
|
-
tabs: Array,
|
7
|
-
selected: String,
|
8
|
-
callback: Function
|
9
|
-
},
|
10
|
-
emits: ["update:selected"],
|
11
|
-
setup(o, { emit: d }) {
|
12
|
-
const u = d, t = o, a = v(0);
|
13
|
-
if (t.selected) {
|
14
|
-
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
|
-
e !== -1 && (a.value = e);
|
16
|
-
}
|
17
|
-
function f(e, l) {
|
18
|
-
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
|
-
}
|
20
|
-
function b(e) {
|
21
|
-
return `${100 / t.tabs.length * e}%`;
|
22
|
-
}
|
23
|
-
function m() {
|
24
|
-
return `${100 / t.tabs.length}%`;
|
25
|
-
}
|
26
|
-
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
|
-
return (e, l) => (c(), s("div", S, [
|
28
|
-
r("div", T, [
|
29
|
-
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
|
-
key: n,
|
31
|
-
onClick: (z) => f(n, i),
|
32
|
-
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
|
-
}, [
|
34
|
-
r("label", null, x(i.name), 1)
|
35
|
-
], 10, w))), 128)),
|
36
|
-
r("div", {
|
37
|
-
style: y(p.value),
|
38
|
-
class: "radius-extra bg-main t-white tab-selector"
|
39
|
-
}, null, 4)
|
40
|
-
])
|
41
|
-
]));
|
42
|
-
}
|
43
|
-
};
|
1
|
+
const e = "";
|
44
2
|
export {
|
45
|
-
|
3
|
+
e as default
|
46
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex pos-relative"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,c=e.ref(0);if(l.selected){const t=l.tabs.findIndex(a=>a.value===l.selected);t!==-1&&(c.value=t)}function u(t,a){c.value=t,i("update:selected",a.value),l.callback&&l.callback()}function d(t){return`${100/l.tabs.length*t}%`}function f(){return`${100/l.tabs.length}%`}const b=e.computed(()=>({left:d(c.value),width:f()}));return(t,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:_=>u(n,r),class:e.normalizeClass([{"t-transp":n!==c.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(b.value),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=k;
|
@@ -1,4 +1,46 @@
|
|
1
|
-
|
1
|
+
import { ref as v, computed as h, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as _, renderList as g, normalizeClass as k, toDisplayString as x, normalizeStyle as y } from "vue";
|
2
|
+
import "./Tab.vue.js";
|
3
|
+
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
|
4
|
+
__name: "Tab",
|
5
|
+
props: {
|
6
|
+
tabs: Array,
|
7
|
+
selected: String,
|
8
|
+
callback: Function
|
9
|
+
},
|
10
|
+
emits: ["update:selected"],
|
11
|
+
setup(o, { emit: d }) {
|
12
|
+
const u = d, t = o, a = v(0);
|
13
|
+
if (t.selected) {
|
14
|
+
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
|
+
e !== -1 && (a.value = e);
|
16
|
+
}
|
17
|
+
function f(e, l) {
|
18
|
+
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
|
+
}
|
20
|
+
function b(e) {
|
21
|
+
return `${100 / t.tabs.length * e}%`;
|
22
|
+
}
|
23
|
+
function m() {
|
24
|
+
return `${100 / t.tabs.length}%`;
|
25
|
+
}
|
26
|
+
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
|
+
return (e, l) => (c(), s("div", S, [
|
28
|
+
r("div", T, [
|
29
|
+
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
|
+
key: n,
|
31
|
+
onClick: (z) => f(n, i),
|
32
|
+
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
|
+
}, [
|
34
|
+
r("label", null, x(i.name), 1)
|
35
|
+
], 10, w))), 128)),
|
36
|
+
r("div", {
|
37
|
+
style: y(p.value),
|
38
|
+
class: "radius-extra bg-main t-white tab-selector"
|
39
|
+
}, null, 4)
|
40
|
+
])
|
41
|
+
]));
|
42
|
+
}
|
43
|
+
};
|
2
44
|
export {
|
3
|
-
|
45
|
+
W as default
|
4
46
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
|
2
|
-
import "../../../../components/Tab/Tab.
|
3
|
-
import "../../../../components/Field/Field.
|
4
|
-
import "../../../../components/Button/Button.
|
2
|
+
import "../../../../components/Tab/Tab.vue.js";
|
3
|
+
import "../../../../components/Field/Field.vue.js";
|
4
|
+
import "../../../../components/Button/Button.vue.js";
|
5
5
|
import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
|
6
6
|
import "vue-i18n";
|
7
7
|
import "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),c=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const m=n.ref(null),i=n.ref(0);async function v(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():m.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,c.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:m,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:v,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { reactive as P, watch as D, ref as c, openBlock as b, createElementBlock as w, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
|
2
|
-
import "../../../../components/Field/Field.
|
2
|
+
import "../../../../components/Field/Field.vue.js";
|
3
3
|
import { useRoute as q, useRouter as $ } from "vue-router";
|
4
4
|
import { useI18n as K } from "vue-i18n";
|
5
5
|
import { state as N } from "../../store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-b-small"},g={key:0,class:"mn-b-semi t-transp"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=v;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as p, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as b, withCtx as P } from "vue";
|
2
|
-
import "../../../../components/Tab/Tab.
|
3
|
-
import c from "../../../../components/Field/Field.
|
4
|
-
import k from "../../../../components/Button/Button.
|
2
|
+
import "../../../../components/Tab/Tab.vue.js";
|
3
|
+
import c from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import k from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { useRoute as q, useRouter as v } from "vue-router";
|
6
6
|
import { useI18n as E } from "vue-i18n";
|
7
7
|
import { state as s, actions as f } from "../../store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const u=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),w=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const b={class:"t-left pd-medium"},h=e.createElementVNode("h3",{class:"mn-b-small"},"Вы были пригилашены в организацию",-1),v=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),q={class:"mn-b-semi radius-small o-hidden"},y=e.createElementVNode("span",null,"Join",-1),V={__name:"Invite",async setup(g){let i,n;const l=e.ref(null),a=d.useRoute(),p=d.useRouter();[i,n]=e.withAsyncContext(()=>w.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",b,[h,v,e.createElementVNode("div",q,[e.createVNode(u.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-b-small"},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-b-semi"},null,8,["field"])]),e.createVNode(f.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode("\\ "),y]),_:1})]))}};exports.default=V;
|