@ozdao/prometheus-framework 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Product-3001d998.mjs +838 -0
- package/dist/Product-84e2c789.js +7 -0
- package/dist/ProductEdit-576c9ff8.js +1 -0
- package/dist/ProductEdit-86fedffe.mjs +350 -0
- package/dist/UploadImage-15e24d71.mjs +83 -0
- package/dist/UploadImage-2170c4df.js +1 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +634 -584
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +1 -1
- package/dist/organizations.client-49eaeca6.mjs +3017 -0
- package/dist/organizations.client-d47f0b3f.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +9 -9
- package/package.json +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +24 -1
- package/src/modules/auth/components/pages/SignIn.vue +67 -4
- package/src/modules/users/components/pages/Profile.vue +1 -1
package/dist/auth.client.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { v as
|
3
|
-
import { c as
|
4
|
-
import { e as
|
5
|
-
import { C as kt, S as
|
6
|
-
import { useI18n as
|
7
|
-
import { useRoute as
|
8
|
-
import { s as
|
9
|
-
import { _ as
|
1
|
+
import { ref as w, onMounted as ct, openBlock as b, createBlock as pe, unref as f, withCtx as O, createElementBlock as _, Fragment as me, renderList as ft, createElementVNode as c, normalizeStyle as W, toDisplayString as h, resolveComponent as Ce, createVNode as v, Transition as M, resolveDynamicComponent as Tt, reactive as pt, withDirectives as E, vModelText as Q, watch as At, withAsyncContext as Ft, defineComponent as Dt, resolveDirective as Rt, normalizeClass as H, withKeys as ae, createCommentVNode as k, vShow as q, vModelDynamic as Mt, renderSlot as xt, createTextVNode as z } from "vue";
|
2
|
+
import { v as x, b as mt, c as we, d as Pe } from "./inputs.validation-14e8e01f.mjs";
|
3
|
+
import { c as ht, s as p, d as se, a as Lt, F as L, _ as J, b as X } from "./auth-cfeacd61.mjs";
|
4
|
+
import { e as Di, t as Ri } from "./auth-cfeacd61.mjs";
|
5
|
+
import { C as kt, S as zt } from "./carousel.es-44c501bc.mjs";
|
6
|
+
import { useI18n as V } from "vue-i18n";
|
7
|
+
import { useRoute as j, useRouter as B } from "vue-router";
|
8
|
+
import { s as R } from "./globals-96ba60e4.mjs";
|
9
|
+
import { _ as Oe } from "./Tab-a243605d.mjs";
|
10
10
|
import { _ as jt } from "./_plugin-vue_export-helper-dad06003.mjs";
|
11
|
-
import { r as
|
12
|
-
const Bt = { class: "parent-div" }, Ut = { class: "mn-small" }, Gt = { class: "mn-big mn-r-small mn-l-small" },
|
11
|
+
import { r as K, a as le, c as Fe } from "./auth.validation-3fd4cc7c.mjs";
|
12
|
+
const Bt = { class: "parent-div" }, Ut = { class: "mn-small" }, Gt = { class: "mn-big mn-r-small mn-l-small" }, Ni = {
|
13
13
|
__name: "SliderFeatures",
|
14
14
|
setup(e) {
|
15
|
-
const n =
|
15
|
+
const n = w(null), t = {
|
16
16
|
messages: {
|
17
17
|
en: {
|
18
18
|
features: [
|
@@ -55,12 +55,12 @@ const Bt = { class: "parent-div" }, Ut = { class: "mn-small" }, Gt = { class: "m
|
|
55
55
|
]
|
56
56
|
}
|
57
57
|
}
|
58
|
-
}, { tm: d, rt: r } =
|
59
|
-
return
|
58
|
+
}, { tm: d, rt: r } = V(t), i = w(!1);
|
59
|
+
return ct(() => {
|
60
60
|
setTimeout(() => {
|
61
61
|
n.value.restartCarousel(), i.value = !0;
|
62
62
|
}, "500");
|
63
|
-
}), (o, a) => (
|
63
|
+
}), (o, a) => (b(), pe(f(kt), {
|
64
64
|
ref_key: "ImagesSlider",
|
65
65
|
ref: n,
|
66
66
|
"items-to-show": 1,
|
@@ -70,19 +70,19 @@ const Bt = { class: "parent-div" }, Ut = { class: "mn-small" }, Gt = { class: "m
|
|
70
70
|
pauseAutoplayOnHover: !0,
|
71
71
|
class: "bg-grey w-100"
|
72
72
|
}, {
|
73
|
-
default:
|
74
|
-
(
|
73
|
+
default: O(() => [
|
74
|
+
(b(!0), _(me, null, ft(f(d)("features"), (l, s) => (b(), pe(f(zt), {
|
75
75
|
key: s,
|
76
76
|
class: "w-100 flex-v-center flex"
|
77
77
|
}, {
|
78
|
-
default:
|
78
|
+
default: O(() => [
|
79
79
|
c("div", Bt, [
|
80
80
|
c("div", {
|
81
81
|
class: "background-div",
|
82
|
-
style:
|
82
|
+
style: W(`background-image: url(/assets/images/features/${s}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)
|
83
83
|
}, null, 4),
|
84
|
-
c("h4", Ut,
|
85
|
-
c("p", Gt,
|
84
|
+
c("h4", Ut, h(l.title), 1),
|
85
|
+
c("p", Gt, h(l.description), 1)
|
86
86
|
])
|
87
87
|
]),
|
88
88
|
_: 2
|
@@ -96,22 +96,22 @@ function Ht(e, n) {
|
|
96
96
|
var t = Array.prototype.slice.call(n);
|
97
97
|
return t.push(Vt), e.apply(this, t);
|
98
98
|
}
|
99
|
-
function
|
99
|
+
function he(e) {
|
100
100
|
"@babel/helpers - typeof";
|
101
|
-
return
|
101
|
+
return he = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
102
102
|
return typeof n;
|
103
103
|
} : function(n) {
|
104
104
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
105
|
-
},
|
105
|
+
}, he(e);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function De(e, n) {
|
108
108
|
for (var t = 0; t < n.length; t++) {
|
109
109
|
var d = n[t];
|
110
110
|
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
|
111
111
|
}
|
112
112
|
}
|
113
113
|
function Kt(e, n, t) {
|
114
|
-
return n &&
|
114
|
+
return n && De(e.prototype, n), t && De(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
115
115
|
}
|
116
116
|
function Wt(e, n) {
|
117
117
|
if (!(e instanceof n))
|
@@ -120,14 +120,14 @@ function Wt(e, n) {
|
|
120
120
|
function qt(e, n) {
|
121
121
|
if (typeof n != "function" && n !== null)
|
122
122
|
throw new TypeError("Super expression must either be null or a function");
|
123
|
-
e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n &&
|
123
|
+
e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && Y(e, n);
|
124
124
|
}
|
125
125
|
function Xt(e) {
|
126
|
-
var n =
|
126
|
+
var n = gt();
|
127
127
|
return function() {
|
128
|
-
var d =
|
128
|
+
var d = Z(e), r;
|
129
129
|
if (n) {
|
130
|
-
var i =
|
130
|
+
var i = Z(this).constructor;
|
131
131
|
r = Reflect.construct(d, arguments, i);
|
132
132
|
} else
|
133
133
|
r = d.apply(this, arguments);
|
@@ -135,20 +135,20 @@ function Xt(e) {
|
|
135
135
|
};
|
136
136
|
}
|
137
137
|
function Yt(e, n) {
|
138
|
-
if (n && (
|
138
|
+
if (n && (he(n) === "object" || typeof n == "function"))
|
139
139
|
return n;
|
140
140
|
if (n !== void 0)
|
141
141
|
throw new TypeError("Derived constructors may only return object or undefined");
|
142
|
-
return
|
142
|
+
return yt(e);
|
143
143
|
}
|
144
|
-
function
|
144
|
+
function yt(e) {
|
145
145
|
if (e === void 0)
|
146
146
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
147
147
|
return e;
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function ye(e) {
|
150
150
|
var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
151
|
-
return
|
151
|
+
return ye = function(d) {
|
152
152
|
if (d === null || !Zt(d))
|
153
153
|
return d;
|
154
154
|
if (typeof d != "function")
|
@@ -159,20 +159,20 @@ function me(e) {
|
|
159
159
|
n.set(d, r);
|
160
160
|
}
|
161
161
|
function r() {
|
162
|
-
return
|
162
|
+
return ee(d, arguments, Z(this).constructor);
|
163
163
|
}
|
164
|
-
return r.prototype = Object.create(d.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }),
|
165
|
-
},
|
164
|
+
return r.prototype = Object.create(d.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), Y(r, d);
|
165
|
+
}, ye(e);
|
166
166
|
}
|
167
|
-
function
|
168
|
-
return
|
167
|
+
function ee(e, n, t) {
|
168
|
+
return gt() ? ee = Reflect.construct : ee = function(r, i, o) {
|
169
169
|
var a = [null];
|
170
170
|
a.push.apply(a, i);
|
171
171
|
var l = Function.bind.apply(r, a), s = new l();
|
172
|
-
return o &&
|
173
|
-
},
|
172
|
+
return o && Y(s, o.prototype), s;
|
173
|
+
}, ee.apply(null, arguments);
|
174
174
|
}
|
175
|
-
function
|
175
|
+
function gt() {
|
176
176
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
177
177
|
return !1;
|
178
178
|
if (typeof Proxy == "function")
|
@@ -187,26 +187,26 @@ function mt() {
|
|
187
187
|
function Zt(e) {
|
188
188
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
return
|
190
|
+
function Y(e, n) {
|
191
|
+
return Y = Object.setPrototypeOf || function(d, r) {
|
192
192
|
return d.__proto__ = r, d;
|
193
|
-
},
|
193
|
+
}, Y(e, n);
|
194
194
|
}
|
195
|
-
function
|
196
|
-
return
|
195
|
+
function Z(e) {
|
196
|
+
return Z = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
197
197
|
return t.__proto__ || Object.getPrototypeOf(t);
|
198
|
-
},
|
198
|
+
}, Z(e);
|
199
199
|
}
|
200
|
-
var
|
200
|
+
var A = /* @__PURE__ */ function(e) {
|
201
201
|
qt(t, e);
|
202
202
|
var n = Xt(t);
|
203
203
|
function t(d) {
|
204
204
|
var r;
|
205
|
-
return Wt(this, t), r = n.call(this, d), Object.setPrototypeOf(
|
205
|
+
return Wt(this, t), r = n.call(this, d), Object.setPrototypeOf(yt(r), t.prototype), r.name = r.constructor.name, r;
|
206
206
|
}
|
207
207
|
return Kt(t);
|
208
|
-
}(/* @__PURE__ */
|
209
|
-
function
|
208
|
+
}(/* @__PURE__ */ ye(Error)), Se = 2, Jt = 17, Qt = 3, T = "0-90-9٠-٩۰-۹", en = "-‐-―−ー-", tn = "//", nn = "..", dn = " ", rn = "()()[]\\[\\]", on = "~⁓∼~", te = "".concat(en).concat(tn).concat(nn).concat(dn).concat(rn).concat(on), Ie = "++";
|
209
|
+
function Re(e, n) {
|
210
210
|
e = e.split("-"), n = n.split("-");
|
211
211
|
for (var t = e[0].split("."), d = n[0].split("."), r = 0; r < 3; r++) {
|
212
212
|
var i = Number(t[r]), o = Number(d[r]);
|
@@ -221,32 +221,32 @@ function Fe(e, n) {
|
|
221
221
|
}
|
222
222
|
return e[1] && n[1] ? e[1] > n[1] ? 1 : e[1] < n[1] ? -1 : 0 : !e[1] && n[1] ? 1 : e[1] && !n[1] ? -1 : 0;
|
223
223
|
}
|
224
|
-
function
|
224
|
+
function ne(e) {
|
225
225
|
"@babel/helpers - typeof";
|
226
|
-
return
|
226
|
+
return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
227
227
|
return typeof n;
|
228
228
|
} : function(n) {
|
229
229
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
230
|
-
},
|
230
|
+
}, ne(e);
|
231
231
|
}
|
232
|
-
function
|
232
|
+
function re(e, n) {
|
233
233
|
if (!(e instanceof n))
|
234
234
|
throw new TypeError("Cannot call a class as a function");
|
235
235
|
}
|
236
|
-
function
|
236
|
+
function Me(e, n) {
|
237
237
|
for (var t = 0; t < n.length; t++) {
|
238
238
|
var d = n[t];
|
239
239
|
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
|
240
240
|
}
|
241
241
|
}
|
242
|
-
function
|
243
|
-
return n &&
|
242
|
+
function ie(e, n, t) {
|
243
|
+
return n && Me(e.prototype, n), t && Me(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
244
244
|
}
|
245
|
-
var an = "1.2.0", sn = "1.7.35",
|
245
|
+
var an = "1.2.0", sn = "1.7.35", xe = " ext. ", ln = /^\d+$/, N = /* @__PURE__ */ function() {
|
246
246
|
function e(n) {
|
247
|
-
|
247
|
+
re(this, e), fn(n), this.metadata = n, vt.call(this, n);
|
248
248
|
}
|
249
|
-
return
|
249
|
+
return ie(e, [{
|
250
250
|
key: "getCountries",
|
251
251
|
value: function() {
|
252
252
|
return Object.keys(this.metadata.countries).filter(function(t) {
|
@@ -300,11 +300,11 @@ var an = "1.2.0", sn = "1.7.35", Re = " ext. ", ln = /^\d+$/, O = /* @__PURE__ *
|
|
300
300
|
if (t && ln.test(t) && (d = t, t = null), t && t !== "001") {
|
301
301
|
if (!this.hasCountry(t))
|
302
302
|
throw new Error("Unknown country: ".concat(t));
|
303
|
-
this.numberingPlan = new
|
303
|
+
this.numberingPlan = new Le(this.getCountryMetadata(t), this);
|
304
304
|
} else if (d) {
|
305
305
|
if (!this.hasCallingCode(d))
|
306
306
|
throw new Error("Unknown calling code: ".concat(d));
|
307
|
-
this.numberingPlan = new
|
307
|
+
this.numberingPlan = new Le(this.getNumberingPlanMetadata(d), this);
|
308
308
|
} else
|
309
309
|
this.numberingPlan = void 0;
|
310
310
|
return this;
|
@@ -428,11 +428,11 @@ var an = "1.2.0", sn = "1.7.35", Re = " ext. ", ln = /^\d+$/, O = /* @__PURE__ *
|
|
428
428
|
return this.numberingPlan !== void 0;
|
429
429
|
}
|
430
430
|
}]), e;
|
431
|
-
}(),
|
431
|
+
}(), Le = /* @__PURE__ */ function() {
|
432
432
|
function e(n, t) {
|
433
|
-
|
433
|
+
re(this, e), this.globalMetadataObject = t, this.metadata = n, vt.call(this, t.metadata);
|
434
434
|
}
|
435
|
-
return
|
435
|
+
return ie(e, [{
|
436
436
|
key: "callingCode",
|
437
437
|
value: function() {
|
438
438
|
return this.metadata[0];
|
@@ -555,20 +555,20 @@ var an = "1.2.0", sn = "1.7.35", Re = " ext. ", ln = /^\d+$/, O = /* @__PURE__ *
|
|
555
555
|
}, {
|
556
556
|
key: "type",
|
557
557
|
value: function(t) {
|
558
|
-
if (this.hasTypes() &&
|
559
|
-
return new cn(
|
558
|
+
if (this.hasTypes() && ke(this.types(), t))
|
559
|
+
return new cn(ke(this.types(), t), this);
|
560
560
|
}
|
561
561
|
}, {
|
562
562
|
key: "ext",
|
563
563
|
value: function() {
|
564
|
-
return this.v1 || this.v2 ?
|
564
|
+
return this.v1 || this.v2 ? xe : this.metadata[13] || xe;
|
565
565
|
}
|
566
566
|
}]), e;
|
567
567
|
}(), $n = /* @__PURE__ */ function() {
|
568
568
|
function e(n, t) {
|
569
|
-
|
569
|
+
re(this, e), this._format = n, this.metadata = t;
|
570
570
|
}
|
571
|
-
return
|
571
|
+
return ie(e, [{
|
572
572
|
key: "pattern",
|
573
573
|
value: function() {
|
574
574
|
return this._format[0];
|
@@ -613,9 +613,9 @@ var an = "1.2.0", sn = "1.7.35", Re = " ext. ", ln = /^\d+$/, O = /* @__PURE__ *
|
|
613
613
|
}]), e;
|
614
614
|
}(), un = /^\(?\$1\)?$/, cn = /* @__PURE__ */ function() {
|
615
615
|
function e(n, t) {
|
616
|
-
|
616
|
+
re(this, e), this.type = n, this.metadata = t;
|
617
617
|
}
|
618
|
-
return
|
618
|
+
return ie(e, [{
|
619
619
|
key: "pattern",
|
620
620
|
value: function() {
|
621
621
|
return this.metadata.v1 ? this.type : this.type[0];
|
@@ -628,7 +628,7 @@ var an = "1.2.0", sn = "1.7.35", Re = " ext. ", ln = /^\d+$/, O = /* @__PURE__ *
|
|
628
628
|
}
|
629
629
|
}]), e;
|
630
630
|
}();
|
631
|
-
function
|
631
|
+
function ke(e, n) {
|
632
632
|
switch (n) {
|
633
633
|
case "FIXED_LINE":
|
634
634
|
return e[0];
|
@@ -655,46 +655,46 @@ function xe(e, n) {
|
|
655
655
|
function fn(e) {
|
656
656
|
if (!e)
|
657
657
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
658
|
-
if (
|
659
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(
|
658
|
+
if (!$e(e) || !$e(e.countries))
|
659
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat($e(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + pn(e) + ": " + e, "."));
|
660
660
|
}
|
661
|
-
var
|
662
|
-
return
|
661
|
+
var $e = function(n) {
|
662
|
+
return ne(n) === "object";
|
663
663
|
}, pn = function(n) {
|
664
|
-
return
|
664
|
+
return ne(n);
|
665
665
|
};
|
666
|
-
function
|
667
|
-
if (n = new
|
666
|
+
function Ne(e, n) {
|
667
|
+
if (n = new N(n), n.hasCountry(e))
|
668
668
|
return n.country(e).countryCallingCode();
|
669
669
|
throw new Error("Unknown country: ".concat(e));
|
670
670
|
}
|
671
671
|
function mn(e, n) {
|
672
672
|
return n.countries.hasOwnProperty(e);
|
673
673
|
}
|
674
|
-
function
|
674
|
+
function vt(e) {
|
675
675
|
var n = e.version;
|
676
|
-
typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ?
|
676
|
+
typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? Re(n, an) === -1 ? this.v2 = !0 : Re(n, sn) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
677
677
|
}
|
678
|
-
var hn = ";ext=",
|
679
|
-
return "([".concat(
|
678
|
+
var hn = ";ext=", U = function(n) {
|
679
|
+
return "([".concat(T, "]{1,").concat(n, "})");
|
680
680
|
};
|
681
|
-
function
|
682
|
-
var n = "20", t = "15", d = "9", r = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)",
|
683
|
-
return
|
681
|
+
function bt(e) {
|
682
|
+
var n = "20", t = "15", d = "9", r = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", y = "[- ]+", C = "[ \\t]*", m = "(?:,{2}|;)", $ = hn + U(n), u = i + l + o + U(n) + a, g = i + s + o + U(d) + a, S = y + U(r) + "#", P = C + m + o + U(t) + a, oe = C + "(?:,)+" + o + U(d) + a;
|
683
|
+
return $ + "|" + u + "|" + g + "|" + S + "|" + P + "|" + oe;
|
684
684
|
}
|
685
|
-
var yn = "[" +
|
686
|
-
"(?:" +
|
685
|
+
var yn = "[" + T + "]{" + Se + "}", gn = "[" + Ie + "]{0,1}(?:[" + te + "]*[" + T + "]){3,}[" + te + T + "]*", vn = new RegExp("^[" + Ie + "]{0,1}(?:[" + te + "]*[" + T + "]){1,2}$", "i"), bn = gn + // Phone number extensions
|
686
|
+
"(?:" + bt() + ")?", _n = new RegExp(
|
687
687
|
// Either a short two-digit-only phone number
|
688
688
|
"^" + yn + "$|^" + bn + "$",
|
689
689
|
"i"
|
690
690
|
);
|
691
691
|
function Cn(e) {
|
692
|
-
return e.length >=
|
692
|
+
return e.length >= Se && _n.test(e);
|
693
693
|
}
|
694
694
|
function wn(e) {
|
695
695
|
return vn.test(e);
|
696
696
|
}
|
697
|
-
var ze = new RegExp("(?:" +
|
697
|
+
var ze = new RegExp("(?:" + bt() + ")$", "i");
|
698
698
|
function Pn(e) {
|
699
699
|
var n = e.search(ze);
|
700
700
|
if (n < 0)
|
@@ -800,21 +800,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
800
800
|
function Nn(e, n) {
|
801
801
|
if (e) {
|
802
802
|
if (typeof e == "string")
|
803
|
-
return
|
803
|
+
return je(e, n);
|
804
804
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
805
805
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
806
806
|
return Array.from(e);
|
807
807
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
808
|
-
return
|
808
|
+
return je(e, n);
|
809
809
|
}
|
810
810
|
}
|
811
|
-
function
|
811
|
+
function je(e, n) {
|
812
812
|
(n == null || n > e.length) && (n = e.length);
|
813
813
|
for (var t = 0, d = new Array(n); t < n; t++)
|
814
814
|
d[t] = e[t];
|
815
815
|
return d;
|
816
816
|
}
|
817
|
-
function
|
817
|
+
function Be(e) {
|
818
818
|
for (var n = "", t = In(e.split("")), d; !(d = t()).done; ) {
|
819
819
|
var r = d.value;
|
820
820
|
n += En(r, n) || "";
|
@@ -841,15 +841,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
841
841
|
function An(e, n) {
|
842
842
|
if (e) {
|
843
843
|
if (typeof e == "string")
|
844
|
-
return
|
844
|
+
return Ue(e, n);
|
845
845
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
846
846
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
847
847
|
return Array.from(e);
|
848
848
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
849
|
-
return
|
849
|
+
return Ue(e, n);
|
850
850
|
}
|
851
851
|
}
|
852
|
-
function
|
852
|
+
function Ue(e, n) {
|
853
853
|
(n == null || n > e.length) && (n = e.length);
|
854
854
|
for (var t = 0, d = new Array(n); t < n; t++)
|
855
855
|
d[t] = e[t];
|
@@ -864,16 +864,16 @@ function Fn(e, n) {
|
|
864
864
|
return o - a;
|
865
865
|
});
|
866
866
|
}
|
867
|
-
function
|
868
|
-
return
|
867
|
+
function Ee(e, n) {
|
868
|
+
return _t(e, void 0, n);
|
869
869
|
}
|
870
|
-
function
|
870
|
+
function _t(e, n, t) {
|
871
871
|
var d = t.type(n), r = d && d.possibleLengths() || t.possibleLengths();
|
872
872
|
if (!r)
|
873
873
|
return "IS_POSSIBLE";
|
874
874
|
if (n === "FIXED_LINE_OR_MOBILE") {
|
875
875
|
if (!t.type("FIXED_LINE"))
|
876
|
-
return
|
876
|
+
return _t(e, "MOBILE", t);
|
877
877
|
var i = t.type("MOBILE");
|
878
878
|
i && (r = Fn(r, i.possibleLengths()));
|
879
879
|
} else if (n && !d)
|
@@ -882,7 +882,7 @@ function gt(e, n, t) {
|
|
882
882
|
return a === o ? "IS_POSSIBLE" : a > o ? "TOO_SHORT" : r[r.length - 1] < o ? "TOO_LONG" : r.indexOf(o, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
883
883
|
}
|
884
884
|
function Dn(e, n, t) {
|
885
|
-
if (n === void 0 && (n = {}), t = new
|
885
|
+
if (n === void 0 && (n = {}), t = new N(t), n.v2) {
|
886
886
|
if (!e.countryCallingCode)
|
887
887
|
throw new Error("Invalid phone number object passed");
|
888
888
|
t.selectNumberingPlan(e.countryCallingCode);
|
@@ -900,20 +900,20 @@ function Dn(e, n, t) {
|
|
900
900
|
}
|
901
901
|
}
|
902
902
|
if (t.possibleLengths())
|
903
|
-
return
|
903
|
+
return Ct(e.phone || e.nationalNumber, t);
|
904
904
|
if (e.countryCallingCode && t.isNonGeographicCallingCode(e.countryCallingCode))
|
905
905
|
return !0;
|
906
906
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
907
907
|
}
|
908
|
-
function
|
909
|
-
switch (
|
908
|
+
function Ct(e, n) {
|
909
|
+
switch (Ee(e, n)) {
|
910
910
|
case "IS_POSSIBLE":
|
911
911
|
return !0;
|
912
912
|
default:
|
913
913
|
return !1;
|
914
914
|
}
|
915
915
|
}
|
916
|
-
function
|
916
|
+
function D(e, n) {
|
917
917
|
return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
|
918
918
|
}
|
919
919
|
function Rn(e, n) {
|
@@ -933,57 +933,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
933
933
|
function Mn(e, n) {
|
934
934
|
if (e) {
|
935
935
|
if (typeof e == "string")
|
936
|
-
return
|
936
|
+
return Ge(e, n);
|
937
937
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
938
938
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
939
939
|
return Array.from(e);
|
940
940
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
941
|
-
return
|
941
|
+
return Ge(e, n);
|
942
942
|
}
|
943
943
|
}
|
944
|
-
function
|
944
|
+
function Ge(e, n) {
|
945
945
|
(n == null || n > e.length) && (n = e.length);
|
946
946
|
for (var t = 0, d = new Array(n); t < n; t++)
|
947
947
|
d[t] = e[t];
|
948
948
|
return d;
|
949
949
|
}
|
950
950
|
var xn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
951
|
-
function
|
951
|
+
function Te(e, n, t) {
|
952
952
|
if (n = n || {}, !!e.country) {
|
953
|
-
t = new
|
953
|
+
t = new N(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
|
954
954
|
var d = n.v2 ? e.nationalNumber : e.phone;
|
955
|
-
if (
|
956
|
-
if (
|
957
|
-
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") ||
|
955
|
+
if (D(d, t.nationalNumberPattern())) {
|
956
|
+
if (ue(d, "FIXED_LINE", t))
|
957
|
+
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || ue(d, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
958
958
|
for (var r = Rn(xn), i; !(i = r()).done; ) {
|
959
959
|
var o = i.value;
|
960
|
-
if (
|
960
|
+
if (ue(d, o, t))
|
961
961
|
return o;
|
962
962
|
}
|
963
963
|
}
|
964
964
|
}
|
965
965
|
}
|
966
|
-
function
|
967
|
-
return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 :
|
966
|
+
function ue(e, n, t) {
|
967
|
+
return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : D(e, n.pattern());
|
968
968
|
}
|
969
|
-
function
|
970
|
-
if (n = n || {}, t = new
|
971
|
-
return
|
969
|
+
function Ln(e, n, t) {
|
970
|
+
if (n = n || {}, t = new N(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
|
971
|
+
return Te(e, n, t.metadata) !== void 0;
|
972
972
|
var d = n.v2 ? e.nationalNumber : e.phone;
|
973
|
-
return
|
973
|
+
return D(d, t.nationalNumberPattern());
|
974
974
|
}
|
975
975
|
function kn(e, n, t) {
|
976
|
-
var d = new
|
976
|
+
var d = new N(t), r = d.getCountryCodesForCallingCode(e);
|
977
977
|
return r ? r.filter(function(i) {
|
978
|
-
return
|
978
|
+
return zn(n, i, t);
|
979
979
|
}) : [];
|
980
980
|
}
|
981
|
-
function
|
982
|
-
var d = new
|
981
|
+
function zn(e, n, t) {
|
982
|
+
var d = new N(t);
|
983
983
|
return d.selectNumberingPlan(n), d.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
984
984
|
}
|
985
985
|
function jn(e) {
|
986
|
-
return e.replace(new RegExp("[".concat(
|
986
|
+
return e.replace(new RegExp("[".concat(te, "]+"), "g"), " ").trim();
|
987
987
|
}
|
988
988
|
var Bn = /(\$\d)/;
|
989
989
|
function Un(e, n, t) {
|
@@ -1009,7 +1009,7 @@ function Un(e, n, t) {
|
|
1009
1009
|
}
|
1010
1010
|
var Gn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
1011
1011
|
function Vn(e, n, t) {
|
1012
|
-
var d = new
|
1012
|
+
var d = new N(t);
|
1013
1013
|
if (d.selectNumberingPlan(e, n), d.defaultIDDPrefix())
|
1014
1014
|
return d.defaultIDDPrefix();
|
1015
1015
|
if (Gn.test(d.IDDPrefix()))
|
@@ -1040,21 +1040,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1040
1040
|
function Wn(e, n) {
|
1041
1041
|
if (e) {
|
1042
1042
|
if (typeof e == "string")
|
1043
|
-
return
|
1043
|
+
return Ve(e, n);
|
1044
1044
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
1045
1045
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
1046
1046
|
return Array.from(e);
|
1047
1047
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
1048
|
-
return
|
1048
|
+
return Ve(e, n);
|
1049
1049
|
}
|
1050
1050
|
}
|
1051
|
-
function
|
1051
|
+
function Ve(e, n) {
|
1052
1052
|
(n == null || n > e.length) && (n = e.length);
|
1053
1053
|
for (var t = 0, d = new Array(n); t < n; t++)
|
1054
1054
|
d[t] = e[t];
|
1055
1055
|
return d;
|
1056
1056
|
}
|
1057
|
-
function
|
1057
|
+
function He(e, n) {
|
1058
1058
|
var t = Object.keys(e);
|
1059
1059
|
if (Object.getOwnPropertySymbols) {
|
1060
1060
|
var d = Object.getOwnPropertySymbols(e);
|
@@ -1064,12 +1064,12 @@ function Ge(e, n) {
|
|
1064
1064
|
}
|
1065
1065
|
return t;
|
1066
1066
|
}
|
1067
|
-
function
|
1067
|
+
function Ke(e) {
|
1068
1068
|
for (var n = 1; n < arguments.length; n++) {
|
1069
1069
|
var t = arguments[n] != null ? arguments[n] : {};
|
1070
|
-
n % 2 ?
|
1070
|
+
n % 2 ? He(Object(t), !0).forEach(function(d) {
|
1071
1071
|
qn(e, d, t[d]);
|
1072
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1072
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : He(Object(t)).forEach(function(d) {
|
1073
1073
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1074
1074
|
});
|
1075
1075
|
}
|
@@ -1078,13 +1078,13 @@ function Ve(e) {
|
|
1078
1078
|
function qn(e, n, t) {
|
1079
1079
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
1080
1080
|
}
|
1081
|
-
var
|
1081
|
+
var We = {
|
1082
1082
|
formatExtension: function(n, t, d) {
|
1083
1083
|
return "".concat(n).concat(d.ext()).concat(t);
|
1084
1084
|
}
|
1085
1085
|
};
|
1086
1086
|
function Xn(e, n, t, d) {
|
1087
|
-
if (t ? t =
|
1087
|
+
if (t ? t = Ke(Ke({}, We), t) : t = We, d = new N(d), e.country && e.country !== "001") {
|
1088
1088
|
if (!d.hasCountry(e.country))
|
1089
1089
|
throw new Error("Unknown country: ".concat(e.country));
|
1090
1090
|
d.country(e.country);
|
@@ -1095,9 +1095,9 @@ function Xn(e, n, t, d) {
|
|
1095
1095
|
var r = d.countryCallingCode(), i = t.v2 ? e.nationalNumber : e.phone, o;
|
1096
1096
|
switch (n) {
|
1097
1097
|
case "NATIONAL":
|
1098
|
-
return i ? (o =
|
1098
|
+
return i ? (o = de(i, e.carrierCode, "NATIONAL", d, t), ce(o, e.ext, d, t.formatExtension)) : "";
|
1099
1099
|
case "INTERNATIONAL":
|
1100
|
-
return i ? (o =
|
1100
|
+
return i ? (o = de(i, null, "INTERNATIONAL", d, t), o = "+".concat(r, " ").concat(o), ce(o, e.ext, d, t.formatExtension)) : "+".concat(r);
|
1101
1101
|
case "E.164":
|
1102
1102
|
return "+".concat(r).concat(i);
|
1103
1103
|
case "RFC3966":
|
@@ -1109,12 +1109,12 @@ function Xn(e, n, t, d) {
|
|
1109
1109
|
if (!t.fromCountry)
|
1110
1110
|
return;
|
1111
1111
|
var a = Zn(i, e.carrierCode, r, t.fromCountry, d);
|
1112
|
-
return
|
1112
|
+
return ce(a, e.ext, d, t.formatExtension);
|
1113
1113
|
default:
|
1114
1114
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n, '"'));
|
1115
1115
|
}
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function de(e, n, t, d, r) {
|
1118
1118
|
var i = Yn(d.formats(), e);
|
1119
1119
|
return i ? Un(e, i, {
|
1120
1120
|
useInternationalFormat: t === "INTERNATIONAL",
|
@@ -1131,24 +1131,24 @@ function Yn(e, n) {
|
|
1131
1131
|
if (n.search(i) !== 0)
|
1132
1132
|
continue;
|
1133
1133
|
}
|
1134
|
-
if (
|
1134
|
+
if (D(n, r.pattern()))
|
1135
1135
|
return r;
|
1136
1136
|
}
|
1137
1137
|
}
|
1138
|
-
function
|
1138
|
+
function ce(e, n, t, d) {
|
1139
1139
|
return n ? d(e, n, t) : e;
|
1140
1140
|
}
|
1141
1141
|
function Zn(e, n, t, d, r) {
|
1142
|
-
var i =
|
1142
|
+
var i = Ne(d, r.metadata);
|
1143
1143
|
if (i === t) {
|
1144
|
-
var o =
|
1144
|
+
var o = de(e, n, "NATIONAL", r);
|
1145
1145
|
return t === "1" ? t + " " + o : o;
|
1146
1146
|
}
|
1147
1147
|
var a = Vn(d, void 0, r.metadata);
|
1148
1148
|
if (a)
|
1149
|
-
return "".concat(a, " ").concat(t, " ").concat(
|
1149
|
+
return "".concat(a, " ").concat(t, " ").concat(de(e, null, "INTERNATIONAL", r));
|
1150
1150
|
}
|
1151
|
-
function
|
1151
|
+
function qe(e, n) {
|
1152
1152
|
var t = Object.keys(e);
|
1153
1153
|
if (Object.getOwnPropertySymbols) {
|
1154
1154
|
var d = Object.getOwnPropertySymbols(e);
|
@@ -1158,12 +1158,12 @@ function Ke(e, n) {
|
|
1158
1158
|
}
|
1159
1159
|
return t;
|
1160
1160
|
}
|
1161
|
-
function
|
1161
|
+
function Xe(e) {
|
1162
1162
|
for (var n = 1; n < arguments.length; n++) {
|
1163
1163
|
var t = arguments[n] != null ? arguments[n] : {};
|
1164
|
-
n % 2 ?
|
1164
|
+
n % 2 ? qe(Object(t), !0).forEach(function(d) {
|
1165
1165
|
Jn(e, d, t[d]);
|
1166
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1166
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(d) {
|
1167
1167
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1168
1168
|
});
|
1169
1169
|
}
|
@@ -1176,14 +1176,14 @@ function Qn(e, n) {
|
|
1176
1176
|
if (!(e instanceof n))
|
1177
1177
|
throw new TypeError("Cannot call a class as a function");
|
1178
1178
|
}
|
1179
|
-
function
|
1179
|
+
function Ye(e, n) {
|
1180
1180
|
for (var t = 0; t < n.length; t++) {
|
1181
1181
|
var d = n[t];
|
1182
1182
|
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
|
1183
1183
|
}
|
1184
1184
|
}
|
1185
1185
|
function ed(e, n, t) {
|
1186
|
-
return n &&
|
1186
|
+
return n && Ye(e.prototype, n), t && Ye(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
1187
1187
|
}
|
1188
1188
|
var td = /* @__PURE__ */ function() {
|
1189
1189
|
function e(n, t, d) {
|
@@ -1218,14 +1218,14 @@ var td = /* @__PURE__ */ function() {
|
|
1218
1218
|
}, {
|
1219
1219
|
key: "isValid",
|
1220
1220
|
value: function() {
|
1221
|
-
return
|
1221
|
+
return Ln(this, {
|
1222
1222
|
v2: !0
|
1223
1223
|
}, this.getMetadata());
|
1224
1224
|
}
|
1225
1225
|
}, {
|
1226
1226
|
key: "isNonGeographic",
|
1227
1227
|
value: function() {
|
1228
|
-
var t = new
|
1228
|
+
var t = new N(this.getMetadata());
|
1229
1229
|
return t.isNonGeographicCallingCode(this.countryCallingCode);
|
1230
1230
|
}
|
1231
1231
|
}, {
|
@@ -1250,14 +1250,14 @@ var td = /* @__PURE__ */ function() {
|
|
1250
1250
|
}, {
|
1251
1251
|
key: "getType",
|
1252
1252
|
value: function() {
|
1253
|
-
return
|
1253
|
+
return Te(this, {
|
1254
1254
|
v2: !0
|
1255
1255
|
}, this.getMetadata());
|
1256
1256
|
}
|
1257
1257
|
}, {
|
1258
1258
|
key: "format",
|
1259
1259
|
value: function(t, d) {
|
1260
|
-
return Xn(this, t, d ?
|
1260
|
+
return Xn(this, t, d ? Xe(Xe({}, d), {}, {
|
1261
1261
|
v2: !0
|
1262
1262
|
}) : {
|
1263
1263
|
v2: !0
|
@@ -1283,16 +1283,16 @@ var td = /* @__PURE__ */ function() {
|
|
1283
1283
|
return /^[A-Z]{2}$/.test(n);
|
1284
1284
|
};
|
1285
1285
|
function dd(e, n) {
|
1286
|
-
var t, d, r = new
|
1286
|
+
var t, d, r = new N(n);
|
1287
1287
|
return nd(e) ? (t = e, r.selectNumberingPlan(t), d = r.countryCallingCode()) : d = e, {
|
1288
1288
|
country: t,
|
1289
1289
|
countryCallingCode: d
|
1290
1290
|
};
|
1291
1291
|
}
|
1292
|
-
var rd = new RegExp("([" +
|
1292
|
+
var rd = new RegExp("([" + T + "])");
|
1293
1293
|
function id(e, n, t, d) {
|
1294
1294
|
if (n) {
|
1295
|
-
var r = new
|
1295
|
+
var r = new N(d);
|
1296
1296
|
r.selectNumberingPlan(n, t);
|
1297
1297
|
var i = new RegExp(r.IDDPrefix());
|
1298
1298
|
if (e.search(i) === 0) {
|
@@ -1316,8 +1316,8 @@ function od(e, n) {
|
|
1316
1316
|
}
|
1317
1317
|
var s;
|
1318
1318
|
if (a) {
|
1319
|
-
var
|
1320
|
-
|
1319
|
+
var y = e.indexOf(d[1]), C = e.slice(0, y);
|
1320
|
+
C === n.numberingPlan.nationalPrefix() && (s = n.numberingPlan.nationalPrefix());
|
1321
1321
|
} else
|
1322
1322
|
s = d[0];
|
1323
1323
|
return {
|
@@ -1331,7 +1331,7 @@ function od(e, n) {
|
|
1331
1331
|
nationalNumber: e
|
1332
1332
|
};
|
1333
1333
|
}
|
1334
|
-
function
|
1334
|
+
function ge(e, n) {
|
1335
1335
|
var t = od(e, n), d = t.carrierCode, r = t.nationalNumber;
|
1336
1336
|
if (r !== e) {
|
1337
1337
|
if (!ad(e, r, n))
|
@@ -1349,10 +1349,10 @@ function he(e, n) {
|
|
1349
1349
|
};
|
1350
1350
|
}
|
1351
1351
|
function ad(e, n, t) {
|
1352
|
-
return !(
|
1352
|
+
return !(D(e, t.nationalNumberPattern()) && !D(n, t.nationalNumberPattern()));
|
1353
1353
|
}
|
1354
1354
|
function sd(e, n) {
|
1355
|
-
switch (
|
1355
|
+
switch (Ee(e, n)) {
|
1356
1356
|
case "TOO_SHORT":
|
1357
1357
|
case "INVALID_LENGTH":
|
1358
1358
|
return !1;
|
@@ -1361,11 +1361,11 @@ function sd(e, n) {
|
|
1361
1361
|
}
|
1362
1362
|
}
|
1363
1363
|
function ld(e, n, t, d) {
|
1364
|
-
var r = n ?
|
1364
|
+
var r = n ? Ne(n, d) : t;
|
1365
1365
|
if (e.indexOf(r) === 0) {
|
1366
|
-
d = new
|
1367
|
-
var i = e.slice(r.length), o =
|
1368
|
-
if (!
|
1366
|
+
d = new N(d), d.selectNumberingPlan(n, t);
|
1367
|
+
var i = e.slice(r.length), o = ge(i, d), a = o.nationalNumber, l = ge(e, d), s = l.nationalNumber;
|
1368
|
+
if (!D(s, d.nationalNumberPattern()) && D(a, d.nationalNumberPattern()) || Ee(s, d) === "TOO_LONG")
|
1369
1369
|
return {
|
1370
1370
|
countryCallingCode: r,
|
1371
1371
|
number: i
|
@@ -1402,13 +1402,13 @@ function $d(e, n, t, d) {
|
|
1402
1402
|
}
|
1403
1403
|
if (e[1] === "0")
|
1404
1404
|
return {};
|
1405
|
-
d = new
|
1405
|
+
d = new N(d);
|
1406
1406
|
for (var s = 2; s - 1 <= Qt && s <= e.length; ) {
|
1407
|
-
var
|
1408
|
-
if (d.hasCallingCode(
|
1409
|
-
return d.selectNumberingPlan(
|
1407
|
+
var y = e.slice(1, s);
|
1408
|
+
if (d.hasCallingCode(y))
|
1409
|
+
return d.selectNumberingPlan(y), {
|
1410
1410
|
countryCallingCodeSource: r ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
1411
|
-
countryCallingCode:
|
1411
|
+
countryCallingCode: y,
|
1412
1412
|
number: e.slice(s)
|
1413
1413
|
};
|
1414
1414
|
s++;
|
@@ -1432,15 +1432,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1432
1432
|
function cd(e, n) {
|
1433
1433
|
if (e) {
|
1434
1434
|
if (typeof e == "string")
|
1435
|
-
return
|
1435
|
+
return Ze(e, n);
|
1436
1436
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
1437
1437
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
1438
1438
|
return Array.from(e);
|
1439
1439
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
1440
|
-
return
|
1440
|
+
return Ze(e, n);
|
1441
1441
|
}
|
1442
1442
|
}
|
1443
|
-
function
|
1443
|
+
function Ze(e, n) {
|
1444
1444
|
(n == null || n > e.length) && (n = e.length);
|
1445
1445
|
for (var t = 0, d = new Array(n); t < n; t++)
|
1446
1446
|
d[t] = e[t];
|
@@ -1448,13 +1448,13 @@ function Xe(e, n) {
|
|
1448
1448
|
}
|
1449
1449
|
function fd(e, n) {
|
1450
1450
|
var t = n.countries, d = n.defaultCountry, r = n.metadata;
|
1451
|
-
r = new
|
1451
|
+
r = new N(r);
|
1452
1452
|
for (var i = [], o = ud(t), a; !(a = o()).done; ) {
|
1453
1453
|
var l = a.value;
|
1454
1454
|
if (r.country(l), r.leadingDigits()) {
|
1455
1455
|
if (e && e.search(r.leadingDigits()) === 0)
|
1456
1456
|
return l;
|
1457
|
-
} else if (
|
1457
|
+
} else if (Te({
|
1458
1458
|
phone: e,
|
1459
1459
|
country: l
|
1460
1460
|
}, void 0, r.metadata))
|
@@ -1481,12 +1481,12 @@ function md(e, n) {
|
|
1481
1481
|
metadata: r.metadata
|
1482
1482
|
});
|
1483
1483
|
}
|
1484
|
-
var
|
1484
|
+
var wt = "+", hd = "[\\-\\.\\(\\)]?", Je = "([" + T + "]|" + hd + ")", yd = "^\\" + wt + Je + "*[" + T + "]" + Je + "*$", gd = new RegExp(yd, "g"), ve = T, vd = "[" + ve + "]+((\\-)*[" + ve + "])*", bd = "a-zA-Z", _d = "[" + bd + "]+((\\-)*[" + ve + "])*", Cd = "^(" + vd + "\\.)*" + _d + "\\.?$", wd = new RegExp(Cd, "g"), Qe = "tel:", be = ";phone-context=", Pd = ";isub=";
|
1485
1485
|
function Od(e) {
|
1486
|
-
var n = e.indexOf(
|
1486
|
+
var n = e.indexOf(be);
|
1487
1487
|
if (n < 0)
|
1488
1488
|
return null;
|
1489
|
-
var t = n +
|
1489
|
+
var t = n + be.length;
|
1490
1490
|
if (t >= e.length)
|
1491
1491
|
return "";
|
1492
1492
|
var d = e.indexOf(";", t);
|
@@ -1498,67 +1498,67 @@ function Sd(e) {
|
|
1498
1498
|
function Id(e, n) {
|
1499
1499
|
var t = n.extractFormattedPhoneNumber, d = Od(e);
|
1500
1500
|
if (!Sd(d))
|
1501
|
-
throw new
|
1501
|
+
throw new A("NOT_A_NUMBER");
|
1502
1502
|
var r;
|
1503
1503
|
if (d === null)
|
1504
1504
|
r = t(e) || "";
|
1505
1505
|
else {
|
1506
|
-
r = "", d.charAt(0) ===
|
1507
|
-
var i = e.indexOf(
|
1508
|
-
i >= 0 ? o = i +
|
1509
|
-
var a = e.indexOf(
|
1506
|
+
r = "", d.charAt(0) === wt && (r += d);
|
1507
|
+
var i = e.indexOf(Qe), o;
|
1508
|
+
i >= 0 ? o = i + Qe.length : o = 0;
|
1509
|
+
var a = e.indexOf(be);
|
1510
1510
|
r += e.substring(o, a);
|
1511
1511
|
}
|
1512
1512
|
var l = r.indexOf(Pd);
|
1513
1513
|
if (l > 0 && (r = r.substring(0, l)), r !== "")
|
1514
1514
|
return r;
|
1515
1515
|
}
|
1516
|
-
var Nd = 250, Ed = new RegExp("[" +
|
1516
|
+
var Nd = 250, Ed = new RegExp("[" + Ie + T + "]"), Td = new RegExp("[^" + T + "#]+$");
|
1517
1517
|
function Ad(e, n, t) {
|
1518
|
-
if (n = n || {}, t = new
|
1519
|
-
throw n.v2 ? new
|
1518
|
+
if (n = n || {}, t = new N(t), n.defaultCountry && !t.hasCountry(n.defaultCountry))
|
1519
|
+
throw n.v2 ? new A("INVALID_COUNTRY") : new Error("Unknown country: ".concat(n.defaultCountry));
|
1520
1520
|
var d = Dd(e, n.v2, n.extract), r = d.number, i = d.ext, o = d.error;
|
1521
1521
|
if (!r) {
|
1522
1522
|
if (n.v2)
|
1523
|
-
throw o === "TOO_SHORT" ? new
|
1523
|
+
throw o === "TOO_SHORT" ? new A("TOO_SHORT") : new A("NOT_A_NUMBER");
|
1524
1524
|
return {};
|
1525
1525
|
}
|
1526
|
-
var a = Md(r, n.defaultCountry, n.defaultCallingCode, t), l = a.country, s = a.nationalNumber,
|
1526
|
+
var a = Md(r, n.defaultCountry, n.defaultCallingCode, t), l = a.country, s = a.nationalNumber, y = a.countryCallingCode, C = a.countryCallingCodeSource, m = a.carrierCode;
|
1527
1527
|
if (!t.hasSelectedNumberingPlan()) {
|
1528
1528
|
if (n.v2)
|
1529
|
-
throw new
|
1529
|
+
throw new A("INVALID_COUNTRY");
|
1530
1530
|
return {};
|
1531
1531
|
}
|
1532
|
-
if (!s || s.length <
|
1532
|
+
if (!s || s.length < Se) {
|
1533
1533
|
if (n.v2)
|
1534
|
-
throw new
|
1534
|
+
throw new A("TOO_SHORT");
|
1535
1535
|
return {};
|
1536
1536
|
}
|
1537
1537
|
if (s.length > Jt) {
|
1538
1538
|
if (n.v2)
|
1539
|
-
throw new
|
1539
|
+
throw new A("TOO_LONG");
|
1540
1540
|
return {};
|
1541
1541
|
}
|
1542
1542
|
if (n.v2) {
|
1543
|
-
var
|
1544
|
-
return l && (
|
1543
|
+
var $ = new td(y, s, t.metadata);
|
1544
|
+
return l && ($.country = l), m && ($.carrierCode = m), i && ($.ext = i), $.__countryCallingCodeSource = C, $;
|
1545
1545
|
}
|
1546
|
-
var
|
1546
|
+
var u = (n.extended ? t.hasSelectedNumberingPlan() : l) ? D(s, t.nationalNumberPattern()) : !1;
|
1547
1547
|
return n.extended ? {
|
1548
1548
|
country: l,
|
1549
|
-
countryCallingCode:
|
1550
|
-
carrierCode:
|
1551
|
-
valid:
|
1552
|
-
possible:
|
1549
|
+
countryCallingCode: y,
|
1550
|
+
carrierCode: m,
|
1551
|
+
valid: u,
|
1552
|
+
possible: u ? !0 : !!(n.extended === !0 && t.possibleLengths() && Ct(s, t)),
|
1553
1553
|
phone: s,
|
1554
1554
|
ext: i
|
1555
|
-
} :
|
1555
|
+
} : u ? Rd(l, s, i) : {};
|
1556
1556
|
}
|
1557
1557
|
function Fd(e, n, t) {
|
1558
1558
|
if (e) {
|
1559
1559
|
if (e.length > Nd) {
|
1560
1560
|
if (t)
|
1561
|
-
throw new
|
1561
|
+
throw new A("TOO_LONG");
|
1562
1562
|
return;
|
1563
1563
|
}
|
1564
1564
|
if (n === !1)
|
@@ -1593,11 +1593,11 @@ function Rd(e, n, t) {
|
|
1593
1593
|
return t && (d.ext = t), d;
|
1594
1594
|
}
|
1595
1595
|
function Md(e, n, t, d) {
|
1596
|
-
var r = $d(
|
1596
|
+
var r = $d(Be(e), n, t, d.metadata), i = r.countryCallingCodeSource, o = r.countryCallingCode, a = r.number, l;
|
1597
1597
|
if (o)
|
1598
1598
|
d.selectNumberingPlan(o);
|
1599
1599
|
else if (a && (n || t))
|
1600
|
-
d.selectNumberingPlan(n, t), n && (l = n), o = t ||
|
1600
|
+
d.selectNumberingPlan(n, t), n && (l = n), o = t || Ne(n, d.metadata);
|
1601
1601
|
else
|
1602
1602
|
return {};
|
1603
1603
|
if (!a)
|
@@ -1605,20 +1605,20 @@ function Md(e, n, t, d) {
|
|
1605
1605
|
countryCallingCodeSource: i,
|
1606
1606
|
countryCallingCode: o
|
1607
1607
|
};
|
1608
|
-
var s =
|
1609
|
-
nationalNumber:
|
1608
|
+
var s = ge(Be(a), d), y = s.nationalNumber, C = s.carrierCode, m = md(o, {
|
1609
|
+
nationalNumber: y,
|
1610
1610
|
defaultCountry: n,
|
1611
1611
|
metadata: d
|
1612
1612
|
});
|
1613
|
-
return
|
1613
|
+
return m && (l = m, m === "001" || d.country(l)), {
|
1614
1614
|
country: l,
|
1615
1615
|
countryCallingCode: o,
|
1616
1616
|
countryCallingCodeSource: i,
|
1617
|
-
nationalNumber:
|
1618
|
-
carrierCode:
|
1617
|
+
nationalNumber: y,
|
1618
|
+
carrierCode: C
|
1619
1619
|
};
|
1620
1620
|
}
|
1621
|
-
function
|
1621
|
+
function et(e, n) {
|
1622
1622
|
var t = Object.keys(e);
|
1623
1623
|
if (Object.getOwnPropertySymbols) {
|
1624
1624
|
var d = Object.getOwnPropertySymbols(e);
|
@@ -1628,12 +1628,12 @@ function Je(e, n) {
|
|
1628
1628
|
}
|
1629
1629
|
return t;
|
1630
1630
|
}
|
1631
|
-
function
|
1631
|
+
function tt(e) {
|
1632
1632
|
for (var n = 1; n < arguments.length; n++) {
|
1633
1633
|
var t = arguments[n] != null ? arguments[n] : {};
|
1634
|
-
n % 2 ?
|
1634
|
+
n % 2 ? et(Object(t), !0).forEach(function(d) {
|
1635
1635
|
xd(e, d, t[d]);
|
1636
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1636
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(d) {
|
1637
1637
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1638
1638
|
});
|
1639
1639
|
}
|
@@ -1642,20 +1642,20 @@ function Qe(e) {
|
|
1642
1642
|
function xd(e, n, t) {
|
1643
1643
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
1644
1644
|
}
|
1645
|
-
function
|
1646
|
-
return Ad(e,
|
1645
|
+
function Ld(e, n, t) {
|
1646
|
+
return Ad(e, tt(tt({}, n), {}, {
|
1647
1647
|
v2: !0
|
1648
1648
|
}), t);
|
1649
1649
|
}
|
1650
|
-
function
|
1650
|
+
function _e(e) {
|
1651
1651
|
"@babel/helpers - typeof";
|
1652
|
-
return
|
1652
|
+
return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
1653
1653
|
return typeof n;
|
1654
1654
|
} : function(n) {
|
1655
1655
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
1656
|
-
},
|
1656
|
+
}, _e(e);
|
1657
1657
|
}
|
1658
|
-
function
|
1658
|
+
function nt(e, n) {
|
1659
1659
|
var t = Object.keys(e);
|
1660
1660
|
if (Object.getOwnPropertySymbols) {
|
1661
1661
|
var d = Object.getOwnPropertySymbols(e);
|
@@ -1668,15 +1668,15 @@ function et(e, n) {
|
|
1668
1668
|
function kd(e) {
|
1669
1669
|
for (var n = 1; n < arguments.length; n++) {
|
1670
1670
|
var t = arguments[n] != null ? arguments[n] : {};
|
1671
|
-
n % 2 ?
|
1672
|
-
|
1673
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1671
|
+
n % 2 ? nt(Object(t), !0).forEach(function(d) {
|
1672
|
+
zd(e, d, t[d]);
|
1673
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(d) {
|
1674
1674
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1675
1675
|
});
|
1676
1676
|
}
|
1677
1677
|
return e;
|
1678
1678
|
}
|
1679
|
-
function
|
1679
|
+
function zd(e, n, t) {
|
1680
1680
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
1681
1681
|
}
|
1682
1682
|
function jd(e, n) {
|
@@ -1689,15 +1689,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1689
1689
|
function Ud(e, n) {
|
1690
1690
|
if (e) {
|
1691
1691
|
if (typeof e == "string")
|
1692
|
-
return
|
1692
|
+
return dt(e, n);
|
1693
1693
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
1694
1694
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
1695
1695
|
return Array.from(e);
|
1696
1696
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
1697
|
-
return
|
1697
|
+
return dt(e, n);
|
1698
1698
|
}
|
1699
1699
|
}
|
1700
|
-
function
|
1700
|
+
function dt(e, n) {
|
1701
1701
|
(n == null || n > e.length) && (n = e.length);
|
1702
1702
|
for (var t = 0, d = new Array(n); t < n; t++)
|
1703
1703
|
d[t] = e[t];
|
@@ -1748,9 +1748,9 @@ function Hd(e) {
|
|
1748
1748
|
};
|
1749
1749
|
}
|
1750
1750
|
var Kd = function(n) {
|
1751
|
-
return
|
1751
|
+
return _e(n) === "object";
|
1752
1752
|
};
|
1753
|
-
function
|
1753
|
+
function rt(e, n) {
|
1754
1754
|
var t = Object.keys(e);
|
1755
1755
|
if (Object.getOwnPropertySymbols) {
|
1756
1756
|
var d = Object.getOwnPropertySymbols(e);
|
@@ -1760,12 +1760,12 @@ function nt(e, n) {
|
|
1760
1760
|
}
|
1761
1761
|
return t;
|
1762
1762
|
}
|
1763
|
-
function
|
1763
|
+
function it(e) {
|
1764
1764
|
for (var n = 1; n < arguments.length; n++) {
|
1765
1765
|
var t = arguments[n] != null ? arguments[n] : {};
|
1766
|
-
n % 2 ?
|
1766
|
+
n % 2 ? rt(Object(t), !0).forEach(function(d) {
|
1767
1767
|
Wd(e, d, t[d]);
|
1768
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1768
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(d) {
|
1769
1769
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1770
1770
|
});
|
1771
1771
|
}
|
@@ -1775,13 +1775,13 @@ function Wd(e, n, t) {
|
|
1775
1775
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
1776
1776
|
}
|
1777
1777
|
function qd(e, n, t) {
|
1778
|
-
n && n.defaultCountry && !mn(n.defaultCountry, t) && (n =
|
1778
|
+
n && n.defaultCountry && !mn(n.defaultCountry, t) && (n = it(it({}, n), {}, {
|
1779
1779
|
defaultCountry: void 0
|
1780
1780
|
}));
|
1781
1781
|
try {
|
1782
|
-
return
|
1782
|
+
return Ld(e, n, t);
|
1783
1783
|
} catch (d) {
|
1784
|
-
if (!(d instanceof
|
1784
|
+
if (!(d instanceof A))
|
1785
1785
|
throw d;
|
1786
1786
|
}
|
1787
1787
|
}
|
@@ -1789,23 +1789,23 @@ function Xd() {
|
|
1789
1789
|
var e = Hd(arguments), n = e.text, t = e.options, d = e.metadata;
|
1790
1790
|
return qd(n, t, d);
|
1791
1791
|
}
|
1792
|
-
function
|
1792
|
+
function fe() {
|
1793
1793
|
return Ht(Xd, arguments);
|
1794
1794
|
}
|
1795
1795
|
const Yd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Zd = /* @__PURE__ */ c("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), Jd = {
|
1796
1796
|
__name: "Auth",
|
1797
1797
|
setup(e) {
|
1798
|
-
return
|
1799
|
-
const d =
|
1800
|
-
return
|
1801
|
-
|
1802
|
-
default:
|
1803
|
-
|
1798
|
+
return w(null), w(null), w(null), j(), B(), w("email"), (n, t) => {
|
1799
|
+
const d = Ce("router-view");
|
1800
|
+
return b(), _("div", Yd, [
|
1801
|
+
v(d, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
|
1802
|
+
default: O(({ Component: r, route: i }) => [
|
1803
|
+
v(M, {
|
1804
1804
|
name: "scaleIn",
|
1805
1805
|
mode: "out-in"
|
1806
1806
|
}, {
|
1807
|
-
default:
|
1808
|
-
(
|
1807
|
+
default: O(() => [
|
1808
|
+
(b(), pe(Tt(r), {
|
1809
1809
|
ref: "page",
|
1810
1810
|
key: i.path,
|
1811
1811
|
localPosition: n.localPosition
|
@@ -1821,7 +1821,7 @@ const Yd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Zd = /* @__PURE_
|
|
1821
1821
|
};
|
1822
1822
|
}
|
1823
1823
|
};
|
1824
|
-
function
|
1824
|
+
function ot(e) {
|
1825
1825
|
const n = e;
|
1826
1826
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
1827
1827
|
locale: "",
|
@@ -1865,216 +1865,225 @@ function rt(e) {
|
|
1865
1865
|
}
|
1866
1866
|
});
|
1867
1867
|
}
|
1868
|
-
const Qd = { class: "t-center pd-medium" }, er = { class: "mn-medium" }, tr = { class: "mn-big t-transp" }, nr = { class: "w-100 mn-big flex-nowrap flex" }, dr = { key: 1 },
|
1868
|
+
const Qd = { class: "t-center pd-medium" }, er = { class: "mn-medium" }, tr = { class: "mn-big t-transp" }, nr = { class: "w-100 mn-big flex-nowrap flex" }, dr = { key: 1 }, Pt = {
|
1869
1869
|
__name: "EnterCode",
|
1870
1870
|
setup(e) {
|
1871
|
-
const n =
|
1871
|
+
const n = j(), t = B(), { t: d } = V({
|
1872
1872
|
inheritLocale: !0,
|
1873
1873
|
useScope: "local"
|
1874
|
-
}), r =
|
1874
|
+
}), r = pt({
|
1875
1875
|
digits: ["", "", "", ""],
|
1876
1876
|
error: null
|
1877
|
-
}), i =
|
1877
|
+
}), i = w(null), o = w(0);
|
1878
1878
|
async function a() {
|
1879
1879
|
try {
|
1880
|
-
await
|
1881
|
-
const
|
1882
|
-
o.value > 0 ? o.value -= 1 : clearInterval(
|
1880
|
+
await ht(p.user, n.query.type, p.user.phone ? "phone" : "email"), o.value = 30;
|
1881
|
+
const m = setInterval(() => {
|
1882
|
+
o.value > 0 ? o.value -= 1 : clearInterval(m);
|
1883
1883
|
}, 1e3);
|
1884
1884
|
} catch {
|
1885
|
-
|
1885
|
+
R({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
|
1886
1886
|
}
|
1887
1887
|
}
|
1888
|
-
const l = (
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1888
|
+
const l = (m, $) => {
|
1889
|
+
navigator.clipboard.readText().then((g) => {
|
1890
|
+
if (g && /^\d{4}$/.test(g)) {
|
1891
|
+
for (let S = 0; S < 4; S++)
|
1892
|
+
r.digits[$ + S] = g[S];
|
1893
|
+
C($ + 3);
|
1894
|
+
}
|
1895
|
+
});
|
1896
|
+
}, s = (m, $) => {
|
1897
|
+
m.preventDefault();
|
1898
|
+
const u = m.clipboardData.getData("text/plain");
|
1899
|
+
if (/^\d{4}$/.test(u)) {
|
1900
|
+
for (let g = 0; g < 4; g++)
|
1901
|
+
r.digits[$ + g] = u[g];
|
1902
|
+
C($ + 3);
|
1895
1903
|
} else
|
1896
|
-
|
1897
|
-
},
|
1898
|
-
if (
|
1899
|
-
|
1900
|
-
const
|
1901
|
-
|
1904
|
+
R({ response: { data: { errorCode: "INPUT_ERROR" } } });
|
1905
|
+
}, y = (m, $) => {
|
1906
|
+
if (m.key === "Backspace" && (r.digits[$] === null || r.digits[$] === void 0 || r.digits[$] === "")) {
|
1907
|
+
m.preventDefault();
|
1908
|
+
const u = document.querySelectorAll("input"), g = $ > 0 ? u[$ - 1] : null;
|
1909
|
+
g && (g.focus(), g.setSelectionRange(g.value.length, g.value.length));
|
1902
1910
|
}
|
1903
|
-
},
|
1904
|
-
const $ = document.querySelectorAll("input"),
|
1905
|
-
if (r.digits[
|
1906
|
-
const
|
1907
|
-
|
1911
|
+
}, C = (m) => {
|
1912
|
+
const $ = document.querySelectorAll("input"), u = $[m + 1], g = m > 0 ? $[m - 1] : null;
|
1913
|
+
if (r.digits[m] !== "" && r.digits[m] !== null && r.digits[m] !== void 0 && m < 4 && (m < 3 ? u.focus() : i.value.focus()), (r.digits[m] === null || r.digits[m] === void 0 || r.digits[m] === "") && m > 0 && g.focus(), r.digits.every((S) => S !== "")) {
|
1914
|
+
const S = r.digits.join(""), P = se.code.code.toString();
|
1915
|
+
S === P ? (se.code.isValid = !0, t.push({
|
1908
1916
|
path: "/auth/enter-password",
|
1909
|
-
query: { type:
|
1910
|
-
})) : (
|
1917
|
+
query: { type: se.code.type, method: n.query.method }
|
1918
|
+
})) : (R({ response: { data: { errorCode: "WRONG_CODE" } } }), i.value.focus(), r.digits = ["", "", "", ""]);
|
1911
1919
|
}
|
1912
1920
|
};
|
1913
|
-
return (
|
1914
|
-
c("h3", er,
|
1915
|
-
c("p", tr,
|
1921
|
+
return (m, $) => (b(), _("section", Qd, [
|
1922
|
+
c("h3", er, h(f(d)("verifyNumberTitle")), 1),
|
1923
|
+
c("p", tr, h(f(d)("instructions")), 1),
|
1916
1924
|
c("div", nr, [
|
1917
|
-
|
1925
|
+
E(c("input", {
|
1918
1926
|
type: "number",
|
1919
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
1927
|
+
"onUpdate:modelValue": $[0] || ($[0] = (u) => r.digits[0] = u),
|
1920
1928
|
ref_key: "firstInput",
|
1921
1929
|
ref: i,
|
1922
1930
|
maxlength: "1",
|
1923
|
-
onInput: $[1] || ($[1] = (
|
1924
|
-
onPaste: $[2] || ($[2] = (
|
1925
|
-
onKeydown: $[3] || ($[3] = (
|
1931
|
+
onInput: $[1] || ($[1] = (u) => C(0)),
|
1932
|
+
onPaste: $[2] || ($[2] = (u) => s(u, 0)),
|
1933
|
+
onKeydown: $[3] || ($[3] = (u) => y(u, 0)),
|
1934
|
+
onFocus: $[4] || ($[4] = (u) => l(u, 0)),
|
1926
1935
|
class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
|
1927
1936
|
}, null, 544), [
|
1928
|
-
[
|
1937
|
+
[Q, r.digits[0]]
|
1929
1938
|
]),
|
1930
|
-
|
1939
|
+
E(c("input", {
|
1931
1940
|
type: "number",
|
1932
|
-
"onUpdate:modelValue": $[
|
1941
|
+
"onUpdate:modelValue": $[5] || ($[5] = (u) => r.digits[1] = u),
|
1933
1942
|
maxlength: "1",
|
1934
|
-
onInput: $[
|
1935
|
-
onPaste: $[
|
1936
|
-
onKeydown: $[
|
1943
|
+
onInput: $[6] || ($[6] = (u) => C(1)),
|
1944
|
+
onPaste: $[7] || ($[7] = (u) => s(u, 1)),
|
1945
|
+
onKeydown: $[8] || ($[8] = (u) => y(u, 1)),
|
1937
1946
|
class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
|
1938
1947
|
}, null, 544), [
|
1939
|
-
[
|
1948
|
+
[Q, r.digits[1]]
|
1940
1949
|
]),
|
1941
|
-
|
1950
|
+
E(c("input", {
|
1942
1951
|
type: "number",
|
1943
|
-
"onUpdate:modelValue": $[
|
1952
|
+
"onUpdate:modelValue": $[9] || ($[9] = (u) => r.digits[2] = u),
|
1944
1953
|
maxlength: "1",
|
1945
|
-
onInput: $[
|
1946
|
-
onPaste: $[
|
1947
|
-
onKeydown: $[
|
1954
|
+
onInput: $[10] || ($[10] = (u) => C(2)),
|
1955
|
+
onPaste: $[11] || ($[11] = (u) => s(u, 2)),
|
1956
|
+
onKeydown: $[12] || ($[12] = (u) => y(u, 2)),
|
1948
1957
|
class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
|
1949
1958
|
}, null, 544), [
|
1950
|
-
[
|
1959
|
+
[Q, r.digits[2]]
|
1951
1960
|
]),
|
1952
|
-
|
1961
|
+
E(c("input", {
|
1953
1962
|
type: "number",
|
1954
|
-
"onUpdate:modelValue": $[
|
1963
|
+
"onUpdate:modelValue": $[13] || ($[13] = (u) => r.digits[3] = u),
|
1955
1964
|
maxlength: "1",
|
1956
|
-
onInput: $[
|
1957
|
-
onPaste: $[
|
1958
|
-
onKeydown: $[
|
1965
|
+
onInput: $[14] || ($[14] = (u) => C(3)),
|
1966
|
+
onPaste: $[15] || ($[15] = (u) => s(u, 3)),
|
1967
|
+
onKeydown: $[16] || ($[16] = (u) => y(u, 3)),
|
1959
1968
|
class: "w-100 h1 pd-small t-center bg-grey radius-small"
|
1960
1969
|
}, null, 544), [
|
1961
|
-
[
|
1970
|
+
[Q, r.digits[3]]
|
1962
1971
|
])
|
1963
1972
|
]),
|
1964
|
-
o.value < 1 ? (
|
1973
|
+
o.value < 1 ? (b(), _("a", {
|
1965
1974
|
key: 0,
|
1966
1975
|
onClick: a,
|
1967
1976
|
class: "t-blue"
|
1968
|
-
},
|
1977
|
+
}, h(f(d)("resendCode")), 1)) : (b(), _("span", dr, h(o.value) + " " + h(f(d)("secondsResend")), 1))
|
1969
1978
|
]));
|
1970
1979
|
}
|
1971
1980
|
};
|
1972
|
-
typeof
|
1981
|
+
typeof ot == "function" && ot(Pt);
|
1973
1982
|
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1974
1983
|
__proto__: null,
|
1975
|
-
default:
|
1976
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1977
|
-
|
1978
|
-
const
|
1984
|
+
default: Pt
|
1985
|
+
}, Symbol.toStringTag, { value: "Module" })), G = Lt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
1986
|
+
G.defaults.withCredentials = !0;
|
1987
|
+
const F = pt({
|
1979
1988
|
invites: [],
|
1980
1989
|
invite: null,
|
1981
1990
|
error: null
|
1982
|
-
}),
|
1991
|
+
}), Ot = {
|
1983
1992
|
async read(e) {
|
1984
|
-
await
|
1985
|
-
|
1993
|
+
await G.get(`/api/invites/${e}`).then((n) => {
|
1994
|
+
F.invites = n.data, F.error = null;
|
1986
1995
|
}).catch((n) => {
|
1987
|
-
|
1996
|
+
R(n);
|
1988
1997
|
});
|
1989
1998
|
},
|
1990
1999
|
async readOne(e) {
|
1991
|
-
await
|
1992
|
-
|
2000
|
+
await G.get(`/api/invites/get/${e}`).then((n) => {
|
2001
|
+
F.invite = n.data, p.user.phone = n.data.invitedPhone, p.user.email = n.data.invitedEmail;
|
1993
2002
|
}).catch((n) => {
|
1994
|
-
|
2003
|
+
R(n);
|
1995
2004
|
});
|
1996
2005
|
},
|
1997
2006
|
async create(e, n) {
|
1998
|
-
await
|
1999
|
-
|
2007
|
+
await G.post(`/api/invites/${e}/create`, n).then(() => {
|
2008
|
+
F.error = null;
|
2000
2009
|
}).catch((t) => {
|
2001
|
-
|
2010
|
+
R(t);
|
2002
2011
|
});
|
2003
2012
|
},
|
2004
2013
|
async update(e, n) {
|
2005
|
-
await
|
2006
|
-
|
2014
|
+
await G.put(`/api/invites/${e}/update`, n).then(() => {
|
2015
|
+
F.error = null;
|
2007
2016
|
}).catch((t) => {
|
2008
|
-
|
2017
|
+
R(t);
|
2009
2018
|
});
|
2010
2019
|
},
|
2011
2020
|
async delete(e) {
|
2012
|
-
await
|
2013
|
-
|
2021
|
+
await G.delete(`/api/invites/${e}/delete`).then(() => {
|
2022
|
+
F.error = null;
|
2014
2023
|
}).catch((n) => {
|
2015
|
-
|
2024
|
+
R(n);
|
2016
2025
|
});
|
2017
2026
|
}
|
2018
2027
|
};
|
2019
|
-
At(
|
2028
|
+
At(F, (e, n) => {
|
2020
2029
|
});
|
2021
|
-
const
|
2030
|
+
const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2022
2031
|
__proto__: null,
|
2023
|
-
actions:
|
2024
|
-
state:
|
2032
|
+
actions: Ot,
|
2033
|
+
state: F
|
2025
2034
|
}, Symbol.toStringTag, { value: "Module" }));
|
2026
2035
|
const ir = { class: "t-left pd-medium" }, or = /* @__PURE__ */ c("h3", { class: "mn-small" }, "Вы были пригилашены в организацию", -1), ar = /* @__PURE__ */ c("p", { class: "mn-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), sr = { class: "mn-semi radius-small o-hidden" }, lr = { key: 0 }, $r = { key: 1 }, ur = {
|
2027
2036
|
__name: "Invite",
|
2028
2037
|
async setup(e) {
|
2029
2038
|
let n, t;
|
2030
|
-
const d =
|
2031
|
-
[n, t] = Ft(() =>
|
2039
|
+
const d = w(null), r = j(), i = B();
|
2040
|
+
[n, t] = Ft(() => Ot.readOne(r.query.inviteCode)), await n, t();
|
2032
2041
|
async function o() {
|
2033
2042
|
try {
|
2034
|
-
await
|
2043
|
+
await x(
|
2035
2044
|
d,
|
2036
|
-
|
2045
|
+
mt,
|
2037
2046
|
p.user.password,
|
2038
2047
|
"Некорректный пароль"
|
2039
2048
|
);
|
2040
2049
|
} catch {
|
2041
2050
|
throw new Error();
|
2042
2051
|
}
|
2043
|
-
await
|
2052
|
+
await X.signup(p.user, r.query.type, r.query.inviteCode);
|
2044
2053
|
}
|
2045
2054
|
function a() {
|
2046
2055
|
i.push({ name: "Dashboard" });
|
2047
2056
|
}
|
2048
|
-
return (l, s) => (
|
2057
|
+
return (l, s) => (b(), _("section", ir, [
|
2049
2058
|
or,
|
2050
2059
|
ar,
|
2051
2060
|
c("div", sr, [
|
2052
|
-
|
2061
|
+
v(L, {
|
2053
2062
|
field: p.user.password,
|
2054
|
-
"onUpdate:field": s[0] || (s[0] = (
|
2063
|
+
"onUpdate:field": s[0] || (s[0] = (y) => p.user.password = y),
|
2055
2064
|
type: "password",
|
2056
2065
|
validation: d.value,
|
2057
2066
|
label: "Пароль",
|
2058
2067
|
placeholder: "******",
|
2059
2068
|
class: "bg-white radius-small mn-small"
|
2060
2069
|
}, null, 8, ["field", "validation"]),
|
2061
|
-
|
2070
|
+
v(L, {
|
2062
2071
|
field: p.user.passwordRepeat,
|
2063
|
-
"onUpdate:field": s[1] || (s[1] = (
|
2072
|
+
"onUpdate:field": s[1] || (s[1] = (y) => p.user.passwordRepeat = y),
|
2064
2073
|
type: "password",
|
2065
2074
|
label: "Повторите пароль",
|
2066
2075
|
placeholder: "******",
|
2067
2076
|
class: "bg-white radius-small mn-semi"
|
2068
2077
|
}, null, 8, ["field"])
|
2069
2078
|
]),
|
2070
|
-
|
2071
|
-
disabled:
|
2079
|
+
v(J, {
|
2080
|
+
disabled: F.invite === null,
|
2072
2081
|
submit: o,
|
2073
2082
|
callback: a,
|
2074
2083
|
class: "mn-big"
|
2075
2084
|
}, {
|
2076
|
-
default:
|
2077
|
-
|
2085
|
+
default: O(() => [
|
2086
|
+
f(r).query.method === "reset-password" ? (b(), _("span", lr, "Поменять пароль")) : (b(), _("span", $r, "Зарегистрироваться"))
|
2078
2087
|
]),
|
2079
2088
|
_: 1
|
2080
2089
|
}, 8, ["disabled"])
|
@@ -2084,7 +2093,7 @@ const ir = { class: "t-left pd-medium" }, or = /* @__PURE__ */ c("h3", { class:
|
|
2084
2093
|
__proto__: null,
|
2085
2094
|
default: ur
|
2086
2095
|
}, Symbol.toStringTag, { value: "Module" }));
|
2087
|
-
function
|
2096
|
+
function at(e) {
|
2088
2097
|
const n = e;
|
2089
2098
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
2090
2099
|
locale: "",
|
@@ -2158,67 +2167,67 @@ const fr = { class: "t-left pd-medium" }, pr = { class: "mn-small" }, mr = {
|
|
2158
2167
|
}, hr = {
|
2159
2168
|
key: 1,
|
2160
2169
|
class: "mn-semi t-transp"
|
2161
|
-
}, yr = { class: "mn-semi radius-small o-hidden" }, gr = { key: 0 }, vr = { key: 1 },
|
2170
|
+
}, yr = { class: "mn-semi radius-small o-hidden" }, gr = { key: 0 }, vr = { key: 1 }, St = {
|
2162
2171
|
__name: "EnterPassword",
|
2163
2172
|
setup(e) {
|
2164
|
-
const n =
|
2173
|
+
const n = w(null), { t } = V({
|
2165
2174
|
inheritLocale: !0,
|
2166
2175
|
useScope: "local"
|
2167
|
-
}), d =
|
2168
|
-
|
2176
|
+
}), d = j(), r = B();
|
2177
|
+
w("phone");
|
2169
2178
|
async function i() {
|
2170
2179
|
try {
|
2171
|
-
await
|
2180
|
+
await x(
|
2172
2181
|
n,
|
2173
|
-
|
2182
|
+
mt,
|
2174
2183
|
p.user.password,
|
2175
2184
|
"Некорректный пароль"
|
2176
2185
|
);
|
2177
2186
|
} catch {
|
2178
2187
|
throw new Error();
|
2179
2188
|
}
|
2180
|
-
d.query.method === "reset-password" && await
|
2189
|
+
d.query.method === "reset-password" && await X.updatePassword(p.user, d.query.type), d.query.method !== "reset-password" && await X.signup(p.user, d.query.type);
|
2181
2190
|
}
|
2182
2191
|
function o() {
|
2183
2192
|
r.push({ name: "User Profile", params: { _id: p.user._id } });
|
2184
2193
|
}
|
2185
|
-
return (a, l) => (
|
2186
|
-
c("h3", pr,
|
2187
|
-
|
2194
|
+
return (a, l) => (b(), _("section", fr, [
|
2195
|
+
c("h3", pr, h(f(t)("almostDone")), 1),
|
2196
|
+
f(d).query.method === "reset-password" ? (b(), _("p", mr, h(f(t)("newPasswordPrompt")), 1)) : (b(), _("p", hr, h(f(t)("registrationPasswordPrompt")), 1)),
|
2188
2197
|
c("div", yr, [
|
2189
|
-
|
2198
|
+
v(L, {
|
2190
2199
|
field: p.user.password,
|
2191
2200
|
"onUpdate:field": l[0] || (l[0] = (s) => p.user.password = s),
|
2192
2201
|
type: "password",
|
2193
2202
|
validation: n.value,
|
2194
|
-
placeholder:
|
2203
|
+
placeholder: f(t)("passwordPlaceholder"),
|
2195
2204
|
class: "bg-grey pd-small radius-small mn-thin"
|
2196
2205
|
}, null, 8, ["field", "validation", "placeholder"]),
|
2197
|
-
|
2206
|
+
v(L, {
|
2198
2207
|
field: p.user.passwordRepeat,
|
2199
2208
|
"onUpdate:field": l[1] || (l[1] = (s) => p.user.passwordRepeat = s),
|
2200
2209
|
type: "password",
|
2201
|
-
placeholder:
|
2210
|
+
placeholder: f(t)("repeatPasswordPlaceholder"),
|
2202
2211
|
class: "bg-grey pd-small radius-small mn-thin"
|
2203
2212
|
}, null, 8, ["field", "placeholder"])
|
2204
2213
|
]),
|
2205
|
-
|
2214
|
+
v(J, {
|
2206
2215
|
submit: i,
|
2207
2216
|
callback: o,
|
2208
2217
|
class: "mn-big"
|
2209
2218
|
}, {
|
2210
|
-
default:
|
2211
|
-
|
2219
|
+
default: O(() => [
|
2220
|
+
f(d).query.method === "reset-password" ? (b(), _("span", gr, h(f(t)("changePasswordBtn")), 1)) : (b(), _("span", vr, h(f(t)("registerBtn")), 1))
|
2212
2221
|
]),
|
2213
2222
|
_: 1
|
2214
2223
|
})
|
2215
2224
|
]));
|
2216
2225
|
}
|
2217
2226
|
};
|
2218
|
-
typeof
|
2227
|
+
typeof at == "function" && at(St);
|
2219
2228
|
const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2220
2229
|
__proto__: null,
|
2221
|
-
default:
|
2230
|
+
default: St
|
2222
2231
|
}, Symbol.toStringTag, { value: "Module" })), _r = [["افغانستان", "af", "93", , "🇦🇫"], ["Shqipëri", "al", "355", , "🇦🇱"], ["الجزائر", "dz", "213", , "🇩🇿"], ["American Samoa", "as", "1684", , "🇦🇸"], ["Andorra", "ad", "376", , "🇦🇩"], ["Angola", "ao", "244", , "🇦🇴"], ["Anguilla", "ai", "1264", , "🇦🇮"], ["Antigua and Barbuda", "ag", "1268", , "🇦🇬"], ["Argentina", "ar", "54", , "🇦🇷"], ["Հայաստան", "am", "374", , "🇦🇲"], ["Aruba", "aw", "297", , "🇦🇼"], ["Australia", "au", "61", 0, , "🇦🇺"], ["Österreich", "at", "43", , "🇦🇹"], ["Azərbaycan", "az", "994", , "🇦🇿"], ["Bahamas", "bs", "1242", , "🇧🇸"], ["البحرين", "bh", "973", , "🇧🇭"], ["বাংলাদেশ", "bd", "880", , "🇧🇩"], ["Barbados", "bb", "1246", , "🇧🇧"], ["Беларусь", "by", "375", , "🇧🇾"], ["België", "be", "32", , "🇧🇪"], ["Belize", "bz", "501", , "🇧🇿"], ["Bénin", "bj", "229", , "🇧🇯"], ["Bermuda", "bm", "1441", , "🇧🇲"], ["འབྲུག", "bt", "975", , "🇧🇹"], ["Bolivia", "bo", "591", , "🇧🇴"], ["Босна и Херцеговина", "ba", "387", , "🇧🇦"], ["Botswana", "bw", "267", , "🇧🇼"], ["Brasil", "br", "55", , "🇧🇷"], ["British Indian Ocean Territory", "io", "246", , "🇮🇴"], ["British Virgin Islands", "vg", "1284", , "🇻🇬"], ["Brunei", "bn", "673", , "🇧🇳"], ["България", "bg", "359", , "🇧🇬"], ["Burkina Faso", "bf", "226", , "🇧🇫"], ["Uburundi", "bi", "257", , "🇧🇮"], ["កម្ពុជា", "kh", "855", , "🇰🇭"], ["Cameroun", "cm", "237", , "🇨🇲"], ["Canada", "ca", "1", 1, "🇨🇦"], ["Kabu Verdi", "cv", "238", , "🇨🇻"], ["Caribbean Netherlands", "bq", "599", 1, , "🇧🇶"], ["Cayman Islands", "ky", "1345", , "🇰🇾"], ["République centrafricaine", "cf", "236", , "🇨🇫"], ["Tchad", "td", "235", , "🇹🇩"], ["Chile", "cl", "56", , "🇨🇱"], ["中国", "cn", "86", , "🇨🇳"], ["Christmas Island", "cx", "61", 2, , "🇨🇽"], ["Keeling", "cc", "61", 1, , "🇨🇨"], ["Colombia", "co", "57", , "🇨🇴"], ["جزر القمر", "km", "269", , "🇰🇲"], ["DRC", "cd", "243", , "🇨🇩"], ["Republic", "cg", "242", , "🇨🇬"], ["Cook Islands", "ck", "682", , "🇨🇰"], ["Costa Rica", "cr", "506", , "🇨🇷"], ["Côte d’Ivoire", "ci", "225", , "🇨🇮"], ["Hrvatska", "hr", "385", , "🇭🇷"], ["Cuba", "cu", "53", , "🇨🇺"], ["Curaçao", "cw", "599", 0, , "🇨🇼"], ["Κύπρος", "cy", "357", , "🇨🇾"], ["Česká republika", "cz", "420", , "🇨🇿"], ["Danmark", "dk", "45", , "🇩🇰"], ["Djibouti", "dj", "253", , "🇩🇯"], ["Dominica", "dm", "1767", , "🇩🇲"], ["República Dominicana", "do", "1", 2, ["809", "829", "849", "🇩🇴"]], ["Ecuador", "ec", "593", , "🇪🇨"], ["مصر", "eg", "20", , "🇪🇬"], ["El Salvador", "sv", "503", , "🇸🇻"], ["Guinea Ecuatorial", "gq", "240", , "🇬🇶"], ["Eritrea", "er", "291", , "🇪🇷"], ["Eesti", "ee", "372", , "🇪🇪"], ["Ethiopia", "et", "251", , "🇪🇹"], ["Islas Malvinas", "fk", "500", , "🇫🇰"], ["Føroyar", "fo", "298", , "🇫🇴"], ["Fiji", "fj", "679", , "🇫🇯"], ["Suomi", "fi", "358", 0, , "🇫🇮"], ["France", "fr", "33", , "🇫🇷"], ["Guyane française", "gf", "594", , "🇬🇫"], ["Polynésie française", "pf", "689", , "🇵🇫"], ["Gabon", "ga", "241", , "🇬🇦"], ["Gambia", "gm", "220", , "🇬🇲"], ["საქართველო", "ge", "995", , "🇬🇪"], ["Deutschland", "de", "49", , "🇩🇪"], ["Gaana", "gh", "233", , "🇬🇭"], ["Gibraltar", "gi", "350", , "🇬🇮"], ["Ελλάδα", "gr", "30", , "🇬🇷"], ["Kalaallit Nunaat", "gl", "299", , "🇬🇱"], ["Grenada", "gd", "1473", , "🇬🇩"], ["Guadeloupe", "gp", "590", 0, , "🇬🇵"], ["Guam", "gu", "1671", , "🇬🇺"], ["Guatemala", "gt", "502", , "🇬🇹"], ["Guernsey", "gg", "44", 1, , "🇬🇬"], ["Guinée", "gn", "224", , "🇬🇳"], ["Guiné Bissau", "gw", "245", , "🇬🇼"], ["Guyana", "gy", "592", , "🇬🇾"], ["Haiti", "ht", "509", , "🇭🇹"], ["Honduras", "hn", "504", , "🇭🇳"], ["香港", "hk", "852", , "🇭🇰"], ["Magyarország", "hu", "36", , "🇭🇺"], ["Ísland", "is", "354", , "🇮🇸"], ["भारत", "in", "91", , "🇮🇳"], ["Indonesia", "id", "62", , "🇮🇩"], ["ایران", "ir", "98", , "🇮🇷"], ["العراق", "iq", "964", , "🇮🇶"], ["Ireland", "ie", "353", , "🇮🇪"], ["Isle of Man", "im", "44", 2, , "🇮🇲"], ["ישראל", "il", "972", , "🇮🇱"], ["Italia", "it", "39", 0, , "🇮🇹"], ["Jamaica", "jm", "1876", , "🇯🇲"], ["日本", "jp", "81", , "🇯🇵"], ["Jersey", "je", "44", 3, , "🇯🇪"], ["الأردن", "jo", "962", , "🇯🇴"], ["Казахстан", "kz", "7", 1, , "🇰🇿"], ["Kenya", "ke", "254", , "🇰🇪"], ["Kiribati", "ki", "686", , "🇰🇮"], ["Kosovo", "xk", "383", , "🇽🇰"], ["الكويت", "kw", "965", , "🇰🇼"], ["Кыргызстан", "kg", "996", , "🇰🇬"], ["ລາວ", "la", "856", , "🇱🇦"], ["Latvija", "lv", "371", , "🇱🇻"], ["لبنان", "lb", "961", , "🇱🇧"], ["Lesotho", "ls", "266", , "🇱🇸"], ["Liberia", "lr", "231", , "🇱🇷"], ["ليبيا", "ly", "218", , "🇱🇾"], ["Liechtenstein", "li", "423", , "🇱🇮"], ["Lietuva", "lt", "370", , "🇱🇹"], ["Luxembourg", "lu", "352", , "🇱🇺"], ["澳門", "mo", "853", , "🇲🇴"], ["FYROM", "mk", "389", , "🇲🇰"], ["Madagasikara", "mg", "261", , "🇲🇬"], ["Malawi", "mw", "265", , "🇲🇼"], ["Malaysia", "my", "60", , "🇲🇾"], ["Maldives", "mv", "960", , "🇲🇻"], ["Mali", "ml", "223", , "🇲🇱"], ["Malta", "mt", "356", , "🇲🇹"], ["Marshall Islands", "mh", "692", , "🇲🇭"], ["Martinique", "mq", "596", , "🇲🇶"], ["موريتانيا", "mr", "222", , "🇲🇷"], ["Moris", "mu", "230", , "🇲🇺"], ["Mayotte", "yt", "262", 1, , "🇾🇹"], ["México", "mx", "52", , "🇲🇽"], ["Micronesia", "fm", "691", , "🇫🇲"], ["Republica Moldova", "md", "373", , "🇲🇩"], ["Monaco", "mc", "377", , "🇲🇨"], ["Монгол", "mn", "976", , "🇲🇳"], ["Crna Gora", "me", "382", , "🇲🇪"], ["Montserrat", "ms", "1664", , "🇲🇸"], ["المغرب", "ma", "212", 0, , "🇲🇦"], ["Moçambique", "mz", "258", , "🇲🇿"], ["Burma", "mm", "95", , "🇲🇲"], ["Namibië", "na", "264", , "🇳🇦"], ["Nauru", "nr", "674", , "🇳🇷"], ["नेपाल", "np", "977", , "🇳🇵"], ["Nederland", "nl", "31", , "🇳🇱"], ["Nouvelle-Calédonie", "nc", "687", , "🇳🇨"], ["New Zealand", "nz", "64", , "🇳🇿"], ["Nicaragua", "ni", "505", , "🇳🇮"], ["Nijar", "ne", "227", , "🇳🇪"], ["Nigeria", "ng", "234", , "🇳🇬"], ["Niue", "nu", "683", , "🇳🇺"], ["Norfolk Island", "nf", "672", , "🇳🇫"], ["조선 민주주의 인민 공화국", "kp", "850", , "🇰🇵"], ["Northern Mariana Islands", "mp", "1670", , "🇲🇵"], ["Norge", "no", "47", 0, , "🇳🇴"], ["عُمان", "om", "968", , "🇴🇲"], ["پاکستان", "pk", "92", , "🇵🇰"], ["Palau", "pw", "680", , "🇵🇼"], ["فلسطين", "ps", "970", , "🇵🇸"], ["Panamá", "pa", "507", , "🇵🇦"], ["Papua New Guinea", "pg", "675", , "🇵🇬"], ["Paraguay", "py", "595", , "🇵🇾"], ["Perú", "pe", "51", , "🇵🇪"], ["Philippines", "ph", "63", , "🇵🇭"], ["Polska", "pl", "48", , "🇵🇱"], ["Portugal", "pt", "351", , "🇵🇹"], ["Puerto Rico", "pr", "1", 3, ["787", "939", "🇵🇷"]], ["قطر", "qa", "974", , "🇶🇦"], ["La Réunion", "re", "262", 0, , "🇷🇪"], ["România", "ro", "40", , "🇷🇴"], ["Россия", "ru", "7", 0, , "🇷🇺"], ["Rwanda", "rw", "250", , "🇷🇼"], ["Saint Barthélemy", "bl", "590", 1, , "🇧🇱"], ["Saint Helena", "sh", "290", , "🇸🇭"], ["Saint Kitts and Nevis", "kn", "1869", , "🇰🇳"], ["Saint Lucia", "lc", "1758", , "🇱🇨"], ["Saint-Martin (partie française", "mf", "590", 2, , "🇲🇫"], ["Saint-Pierre-et-Miquelon", "pm", "508", , "🇵🇲"], ["Saint Vincent and the Grenadines", "vc", "1784", , "🇻🇨"], ["Samoa", "ws", "685", , "🇼🇸"], ["San Marino", "sm", "378", , "🇸🇲"], ["São Tomé e Príncipe", "st", "239", , "🇸🇹"], ["المملكة العربية السعودية", "sa", "966", , "🇸🇦"], ["Sénégal", "sn", "221", , "🇸🇳"], ["Србија", "rs", "381", , "🇷🇸"], ["Seychelles", "sc", "248", , "🇸🇨"], ["Sierra Leone", "sl", "232", , "🇸🇱"], ["Singapore", "sg", "65", , "🇸🇬"], ["Sint Maarten", "sx", "1721", , "🇸🇽"], ["Slovensko", "sk", "421", , "🇸🇰"], ["Slovenija", "si", "386", , "🇸🇮"], ["Solomon Islands", "sb", "677", , "🇸🇧"], ["Soomaaliya", "so", "252", , "🇸🇴"], ["South Africa", "za", "27", , "🇿🇦"], ["대한민국", "kr", "82", , "🇰🇷"], ["جنوب السودان", "ss", "211", , "🇸🇸"], ["España", "es", "34", , "🇪🇸"], ["ශ්රී ලංකාව", "lk", "94", , "🇱🇰"], ["السودان", "sd", "249", , "🇸🇩"], ["Suriname", "sr", "597", , "🇸🇷"], ["Svalbard and Jan Mayen", "sj", "47", 1, , "🇸🇯"], ["Swaziland", "sz", "268", , "🇸🇿"], ["Sverige", "se", "46", , "🇸🇪"], ["Schweiz", "ch", "41", , "🇨🇭"], ["سوريا", "sy", "963", , "🇸🇾"], ["台灣", "tw", "886", , "🇹🇼"], ["Tajikistan", "tj", "992", , "🇹🇯"], ["Tanzania", "tz", "255", , "🇹🇿"], ["ไทย", "th", "66", , "🇹🇭"], ["Timor-Leste", "tl", "670", , "🇹🇱"], ["Togo", "tg", "228", , "🇹🇬"], ["Tokelau", "tk", "690", , "🇹🇰"], ["Tonga", "to", "676", , "🇹🇴"], ["Trinidad and Tobago", "tt", "1868", , "🇹🇹"], ["تونس", "tn", "216", , "🇹🇳"], ["Türkiye", "tr", "90", , "🇹🇷"], ["Turkmenistan", "tm", "993", , "🇹🇲"], ["Turks and Caicos Islands", "tc", "1649", , "🇹🇨"], ["Tuvalu", "tv", "688", , "🇹🇻"], ["U.S. Virgin Islands", "vi", "1340", , "🇻🇮"], ["Uganda", "ug", "256", , "🇺🇬"], ["Україна", "ua", "380", , "🇺🇦"], ["الإمارات العربية المتحدة", "ae", "971", , "🇦🇪"], ["United Kingdom", "gb", "44", 0, , "🇬🇧"], ["United States", "us", "1", 0, , "🇺🇸"], ["Uruguay", "uy", "598", , "🇺🇾"], ["Oʻzbekiston", "uz", "998", , "🇺🇿"], ["Vanuatu", "vu", "678", , "🇻🇺"], ["Città del Vaticano", "va", "39", 1, , "🇻🇦"], ["Venezuela", "ve", "58", , "🇻🇪"], ["Việt Nam", "vn", "84", , "🇻🇳"], ["Wallis-et-Futuna", "wf", "681", , "🇼🇫"], ["الصحراء الغربية", "eh", "212", 1, , "🇪🇭"], ["اليمن", "ye", "967", , "🇾🇪"], ["Zambia", "zm", "260", , "🇿🇲"], ["Zimbabwe", "zw", "263", , "🇿🇼"], ["Åland Islands", "ax", "358", 1, , "🇦🇽"]], Cr = _r.map((e) => ({
|
2223
2232
|
name: e[0],
|
2224
2233
|
iso2: e[1].toUpperCase(),
|
@@ -2475,7 +2484,7 @@ const Or = [
|
|
2475
2484
|
[n.name]: n.default
|
2476
2485
|
});
|
2477
2486
|
return e;
|
2478
|
-
}, {}),
|
2487
|
+
}, {}), st = {
|
2479
2488
|
options: { ...Sr }
|
2480
2489
|
}, Ir = {
|
2481
2490
|
beforeMount(e, n, t) {
|
@@ -2493,9 +2502,9 @@ const Or = [
|
|
2493
2502
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
2494
2503
|
}
|
2495
2504
|
};
|
2496
|
-
function
|
2497
|
-
const n =
|
2498
|
-
return typeof n > "u" ?
|
2505
|
+
function I(e) {
|
2506
|
+
const n = st.options[e];
|
2507
|
+
return typeof n > "u" ? st.options[e] : n;
|
2499
2508
|
}
|
2500
2509
|
const Nr = /* @__PURE__ */ Dt({
|
2501
2510
|
name: "Vue3ReactiveTelInput",
|
@@ -2572,14 +2581,14 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2572
2581
|
*/
|
2573
2582
|
allCountries: {
|
2574
2583
|
type: Array,
|
2575
|
-
default: () =>
|
2584
|
+
default: () => I("allCountries")
|
2576
2585
|
},
|
2577
2586
|
/**
|
2578
2587
|
* flag to know if the value will be automatically formatted
|
2579
2588
|
*/
|
2580
2589
|
autoFormat: {
|
2581
2590
|
type: Boolean,
|
2582
|
-
default: () =>
|
2591
|
+
default: () => I("autoFormat")
|
2583
2592
|
},
|
2584
2593
|
validation: {
|
2585
2594
|
type: [Boolean, Object],
|
@@ -2590,7 +2599,7 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2590
2599
|
*/
|
2591
2600
|
customValidate: {
|
2592
2601
|
type: [Boolean, RegExp],
|
2593
|
-
default: () =>
|
2602
|
+
default: () => I("customValidate")
|
2594
2603
|
},
|
2595
2604
|
/**
|
2596
2605
|
* a default country
|
@@ -2599,84 +2608,84 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2599
2608
|
// Default country code, ie: 'AU'
|
2600
2609
|
// Will override the current country of user
|
2601
2610
|
type: String,
|
2602
|
-
default: () =>
|
2611
|
+
default: () => I("defaultCountry")
|
2603
2612
|
},
|
2604
2613
|
/**
|
2605
2614
|
* flag defining whether the input must be disabled
|
2606
2615
|
*/
|
2607
2616
|
disabled: {
|
2608
2617
|
type: Boolean,
|
2609
|
-
default: () =>
|
2618
|
+
default: () => I("disabled")
|
2610
2619
|
},
|
2611
2620
|
/**
|
2612
2621
|
* flag definir if we'll automatically choose a default country
|
2613
2622
|
*/
|
2614
2623
|
autoDefaultCountry: {
|
2615
2624
|
type: Boolean,
|
2616
|
-
default: () =>
|
2625
|
+
default: () => I("autoDefaultCountry")
|
2617
2626
|
},
|
2618
2627
|
/**
|
2619
2628
|
* object of dropdown options
|
2620
2629
|
*/
|
2621
2630
|
dropdownOptions: {
|
2622
2631
|
type: Object,
|
2623
|
-
default: () =>
|
2632
|
+
default: () => I("dropdownOptions")
|
2624
2633
|
},
|
2625
2634
|
/**
|
2626
2635
|
* list of countries to ignore
|
2627
2636
|
*/
|
2628
2637
|
ignoredCountries: {
|
2629
2638
|
type: Array,
|
2630
|
-
default: () =>
|
2639
|
+
default: () => I("ignoredCountries")
|
2631
2640
|
},
|
2632
2641
|
/**
|
2633
2642
|
* object of input options
|
2634
2643
|
*/
|
2635
2644
|
inputOptions: {
|
2636
2645
|
type: Object,
|
2637
|
-
default: () =>
|
2646
|
+
default: () => I("inputOptions")
|
2638
2647
|
},
|
2639
2648
|
/**
|
2640
2649
|
* valid message to display
|
2641
2650
|
*/
|
2642
2651
|
invalidMsg: {
|
2643
2652
|
type: String,
|
2644
|
-
default: () =>
|
2653
|
+
default: () => I("invalidMsg")
|
2645
2654
|
},
|
2646
2655
|
/**
|
2647
2656
|
* the mode of the input
|
2648
2657
|
*/
|
2649
2658
|
mode: {
|
2650
2659
|
type: String,
|
2651
|
-
default: () =>
|
2660
|
+
default: () => I("mode")
|
2652
2661
|
},
|
2653
2662
|
/**
|
2654
2663
|
* limit the giving input to only manage your list of contry
|
2655
2664
|
*/
|
2656
2665
|
onlyCountries: {
|
2657
2666
|
type: Array,
|
2658
|
-
default: () =>
|
2667
|
+
default: () => I("onlyCountries")
|
2659
2668
|
},
|
2660
2669
|
/**
|
2661
2670
|
* the list of preferred countries
|
2662
2671
|
*/
|
2663
2672
|
preferredCountries: {
|
2664
2673
|
type: Array,
|
2665
|
-
default: () =>
|
2674
|
+
default: () => I("preferredCountries")
|
2666
2675
|
},
|
2667
2676
|
/**
|
2668
2677
|
* the flag defining if the input must only content valid characters
|
2669
2678
|
*/
|
2670
2679
|
validCharactersOnly: {
|
2671
2680
|
type: Boolean,
|
2672
|
-
default: () =>
|
2681
|
+
default: () => I("validCharactersOnly")
|
2673
2682
|
},
|
2674
2683
|
/**
|
2675
2684
|
* the root default class
|
2676
2685
|
*/
|
2677
2686
|
rootClass: {
|
2678
2687
|
type: [String, Array, Object],
|
2679
|
-
default: () =>
|
2688
|
+
default: () => I("styleClasses")
|
2680
2689
|
},
|
2681
2690
|
/**
|
2682
2691
|
* the input default class
|
@@ -2818,7 +2827,7 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2818
2827
|
phoneObject() {
|
2819
2828
|
var i, o, a;
|
2820
2829
|
let e;
|
2821
|
-
((i = this.phone) == null ? void 0 : i[0]) === "+" ? e =
|
2830
|
+
((i = this.phone) == null ? void 0 : i[0]) === "+" ? e = fe(this.phone) || {} : e = fe(this.phone, this.activeCountryCode) || {};
|
2822
2831
|
const {
|
2823
2832
|
metadata: n,
|
2824
2833
|
...t
|
@@ -2892,7 +2901,7 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2892
2901
|
let n = e;
|
2893
2902
|
if (typeof n == "string" && (n = this.findCountry(n)), !!n) {
|
2894
2903
|
if (((t = this.phone) == null ? void 0 : t[0]) === "+" && n.iso2 && this.phoneObject.nationalNumber) {
|
2895
|
-
this.activeCountryCode = n.iso2, this.phone =
|
2904
|
+
this.activeCountryCode = n.iso2, this.phone = fe(
|
2896
2905
|
this.phoneObject.nationalNumber,
|
2897
2906
|
n.iso2
|
2898
2907
|
).formatInternational();
|
@@ -2983,70 +2992,70 @@ const Nr = /* @__PURE__ */ Dt({
|
|
2983
2992
|
}), Er = ["tabindex"], Tr = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" }, Ar = ["innerHTML"], Fr = {
|
2984
2993
|
key: 1,
|
2985
2994
|
class: "vti__country-code"
|
2986
|
-
}, Dr = ["onClick", "onMousemove"], Rr = ["innerHTML"], Mr = { key: 1 }, xr = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"],
|
2995
|
+
}, Dr = ["onClick", "onMousemove"], Rr = ["innerHTML"], Mr = { key: 1 }, xr = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"], Lr = {
|
2987
2996
|
key: 0,
|
2988
2997
|
class: "mn-t-thin mn-b-thin invalid-feedback"
|
2989
2998
|
};
|
2990
2999
|
function kr(e, n, t, d, r, i) {
|
2991
3000
|
const o = Rt("click-outside");
|
2992
|
-
return
|
3001
|
+
return b(), _(me, null, [
|
2993
3002
|
c("div", {
|
2994
|
-
class:
|
2995
|
-
style:
|
3003
|
+
class: H(["vue3-reactive-tel-input", { "bg-fourth-nano": e.validation }, e.$attrs.class, e.rootClass, { disabled: e.disabled }, e.classes]),
|
3004
|
+
style: W([e.rootStyle, e.styles]),
|
2996
3005
|
ref: "rootElement"
|
2997
3006
|
}, [
|
2998
|
-
|
2999
|
-
class:
|
3007
|
+
E((b(), _("div", {
|
3008
|
+
class: H([["vti__dropdown", { open: e.open }], "br-solid br-black-transp br-1px radius-medium"]),
|
3000
3009
|
tabindex: e.dropdownOptions.tabindex,
|
3001
3010
|
onKeydown: [
|
3002
3011
|
n[0] || (n[0] = (...a) => e.keyboardNav && e.keyboardNav(...a)),
|
3003
|
-
n[2] || (n[2] =
|
3012
|
+
n[2] || (n[2] = ae((...a) => e.reset && e.reset(...a), ["esc"]))
|
3004
3013
|
],
|
3005
3014
|
onClick: n[1] || (n[1] = (...a) => e.toggleDropdown && e.toggleDropdown(...a)),
|
3006
|
-
style:
|
3015
|
+
style: W([e.dropdownStyle])
|
3007
3016
|
}, [
|
3008
3017
|
c("span", Tr, [
|
3009
|
-
e.dropdownOptions.showFlags ? (
|
3018
|
+
e.dropdownOptions.showFlags ? (b(), _("span", {
|
3010
3019
|
key: 0,
|
3011
3020
|
innerHTML: e.activeCountryFlag,
|
3012
3021
|
class: "mn-r-thin"
|
3013
|
-
}, null, 8, Ar)) :
|
3014
|
-
e.dropdownOptions.showDialCodeInSelection ? (
|
3022
|
+
}, null, 8, Ar)) : k("", !0),
|
3023
|
+
e.dropdownOptions.showDialCodeInSelection ? (b(), _("span", Fr, " +" + h(e.activeCountry && e.activeCountry.dialCode), 1)) : k("", !0)
|
3015
3024
|
]),
|
3016
|
-
|
3025
|
+
E(c("ul", {
|
3017
3026
|
ref: "list",
|
3018
|
-
class:
|
3019
|
-
style:
|
3027
|
+
class: H(["bs-black radius-small vti__dropdown-list", e.dropdownOpenDirection]),
|
3028
|
+
style: W([e.listStyle])
|
3020
3029
|
}, [
|
3021
|
-
(
|
3022
|
-
class:
|
3030
|
+
(b(!0), _(me, null, ft(e.sortedCountries, (a, l) => (b(), _("li", {
|
3031
|
+
class: H(["flex-nowrap flex w-max", ["vti__dropdown-item", e.getItemClass(l, a.iso2)]]),
|
3023
3032
|
key: a.iso2 + (a.preferred ? "-preferred" : ""),
|
3024
3033
|
onClick: (s) => e.choose(a),
|
3025
3034
|
onMousemove: (s) => e.selectedIndex = l
|
3026
3035
|
}, [
|
3027
|
-
e.dropdownOptions.showFlags ? (
|
3036
|
+
e.dropdownOptions.showFlags ? (b(), _("span", {
|
3028
3037
|
key: 0,
|
3029
3038
|
innerHTML: a.flag,
|
3030
3039
|
class: "mn-r-thin"
|
3031
|
-
}, null, 8, Rr)) :
|
3032
|
-
c("strong", null,
|
3033
|
-
e.dropdownOptions.showDialCodeInList ? (
|
3040
|
+
}, null, 8, Rr)) : k("", !0),
|
3041
|
+
c("strong", null, h(a.name), 1),
|
3042
|
+
e.dropdownOptions.showDialCodeInList ? (b(), _("span", Mr, " +" + h(a.dialCode), 1)) : k("", !0)
|
3034
3043
|
], 42, Dr))), 128))
|
3035
3044
|
], 6), [
|
3036
|
-
[
|
3045
|
+
[q, e.open]
|
3037
3046
|
])
|
3038
3047
|
], 46, Er)), [
|
3039
3048
|
[o, e.clickedOutside]
|
3040
3049
|
]),
|
3041
|
-
|
3050
|
+
E(c("input", {
|
3042
3051
|
"onUpdate:modelValue": n[3] || (n[3] = (a) => e.phone = a),
|
3043
3052
|
pattern: "[0-9]*",
|
3044
3053
|
ref: "input",
|
3045
3054
|
type: e.inputOptions.type,
|
3046
3055
|
autocomplete: e.inputOptions.autocomplete,
|
3047
3056
|
autofocus: e.inputOptions.autofocus,
|
3048
|
-
class:
|
3049
|
-
style:
|
3057
|
+
class: H(["vti__input", e.inputOptions.styleClasses, e.inputClass, e.Iclasses]),
|
3058
|
+
style: W([e.inputStyle, e.Istyles]),
|
3050
3059
|
disabled: e.disabled,
|
3051
3060
|
id: e.inputId !== "" ? e.inputId : e.inputOptions.id,
|
3052
3061
|
maxlength: e.inputOptions.maxlength,
|
@@ -3059,24 +3068,24 @@ function kr(e, n, t, d, r, i) {
|
|
3059
3068
|
onFocus: n[5] || (n[5] = (...a) => e.onFocus && e.onFocus(...a)),
|
3060
3069
|
onInput: n[6] || (n[6] = (...a) => e.onInput && e.onInput(...a)),
|
3061
3070
|
onKeyup: [
|
3062
|
-
n[7] || (n[7] =
|
3063
|
-
n[8] || (n[8] =
|
3071
|
+
n[7] || (n[7] = ae((...a) => e.onEnter && e.onEnter(...a), ["enter"])),
|
3072
|
+
n[8] || (n[8] = ae((...a) => e.onSpace && e.onSpace(...a), ["space"]))
|
3064
3073
|
]
|
3065
3074
|
}, null, 46, xr), [
|
3066
3075
|
[Mt, e.phone]
|
3067
3076
|
]),
|
3068
3077
|
xt(e.$slots, "default", {}, void 0, !0)
|
3069
3078
|
], 6),
|
3070
|
-
|
3071
|
-
default:
|
3072
|
-
e.validation ? (
|
3079
|
+
v(M, { name: "fade" }, {
|
3080
|
+
default: O(() => [
|
3081
|
+
e.validation ? (b(), _("div", Lr, " * " + h(e.validation.message), 1)) : k("", !0)
|
3073
3082
|
]),
|
3074
3083
|
_: 1
|
3075
3084
|
})
|
3076
3085
|
], 64);
|
3077
3086
|
}
|
3078
|
-
const
|
3079
|
-
function
|
3087
|
+
const Ae = /* @__PURE__ */ jt(Nr, [["render", kr], ["__scopeId", "data-v-50353ca7"]]);
|
3088
|
+
function lt(e) {
|
3080
3089
|
const n = e;
|
3081
3090
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
3082
3091
|
locale: "",
|
@@ -3160,31 +3169,31 @@ function at(e) {
|
|
3160
3169
|
}
|
3161
3170
|
});
|
3162
3171
|
}
|
3163
|
-
const
|
3172
|
+
const zr = { class: "t-left pd-medium" }, jr = { class: "mn-small" }, Br = { class: "mn-small t-transp" }, Ur = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, Gr = {
|
3164
3173
|
key: 0,
|
3165
3174
|
class: "mn-semi radius-small o-hidden"
|
3166
3175
|
}, Vr = { class: "mn-small t-transp" }, Hr = {
|
3167
3176
|
key: 0,
|
3168
3177
|
class: "mn-semi radius-small o-hidden"
|
3169
|
-
}, Kr = { class: "mn-small t-transp" },
|
3178
|
+
}, Kr = { class: "mn-small t-transp" }, It = {
|
3170
3179
|
__name: "ResetPassword",
|
3171
3180
|
setup(e) {
|
3172
|
-
const { t: n } =
|
3181
|
+
const { t: n } = V({
|
3173
3182
|
inheritLocale: !0,
|
3174
3183
|
useScope: "local"
|
3175
|
-
}), t =
|
3176
|
-
|
3177
|
-
const r =
|
3184
|
+
}), t = w(null), d = w(null);
|
3185
|
+
j();
|
3186
|
+
const r = B(), i = w("phone");
|
3178
3187
|
async function o() {
|
3179
3188
|
try {
|
3180
|
-
i.value === "phone" && await
|
3189
|
+
i.value === "phone" && await x(
|
3181
3190
|
t,
|
3182
|
-
|
3191
|
+
we,
|
3183
3192
|
p.user.phone,
|
3184
3193
|
"Некорректный телефон"
|
3185
|
-
), i.value === "email" && await
|
3194
|
+
), i.value === "email" && await x(
|
3186
3195
|
d,
|
3187
|
-
|
3196
|
+
Pe,
|
3188
3197
|
p.user.email,
|
3189
3198
|
"Некорректный email"
|
3190
3199
|
);
|
@@ -3192,7 +3201,7 @@ const Lr = { class: "t-left pd-medium" }, jr = { class: "mn-small" }, Br = { cla
|
|
3192
3201
|
throw new Error();
|
3193
3202
|
}
|
3194
3203
|
try {
|
3195
|
-
await
|
3204
|
+
await X.resetPassword(p.user, i.value, "reset-password");
|
3196
3205
|
} catch (l) {
|
3197
3206
|
throw console.log(l), new Error();
|
3198
3207
|
}
|
@@ -3200,27 +3209,27 @@ const Lr = { class: "t-left pd-medium" }, jr = { class: "mn-small" }, Br = { cla
|
|
3200
3209
|
function a() {
|
3201
3210
|
r.push({ name: "Enter Code", query: { type: i.value, method: "reset-password" } });
|
3202
3211
|
}
|
3203
|
-
return (l, s) => (
|
3204
|
-
c("h3", jr,
|
3205
|
-
c("p", Br,
|
3212
|
+
return (l, s) => (b(), _("section", zr, [
|
3213
|
+
c("h3", jr, h(f(n)("forgotPasswordTitle")), 1),
|
3214
|
+
c("p", Br, h(f(n)("instructions")), 1),
|
3206
3215
|
c("div", Ur, [
|
3207
|
-
|
3216
|
+
v(Oe, {
|
3208
3217
|
selected: i.value,
|
3209
|
-
"onUpdate:selected": s[0] || (s[0] = (
|
3218
|
+
"onUpdate:selected": s[0] || (s[0] = (y) => i.value = y),
|
3210
3219
|
tabs: [
|
3211
|
-
{ name:
|
3212
|
-
{ name:
|
3220
|
+
{ name: f(n)("phone"), value: "phone" },
|
3221
|
+
{ name: f(n)("email"), value: "email" }
|
3213
3222
|
]
|
3214
3223
|
}, null, 8, ["selected", "tabs"])
|
3215
3224
|
]),
|
3216
3225
|
c("div", null, [
|
3217
|
-
|
3218
|
-
default:
|
3219
|
-
i.value === "phone" ? (
|
3220
|
-
c("p", Vr,
|
3221
|
-
|
3226
|
+
v(M, { name: "slide-fade" }, {
|
3227
|
+
default: O(() => [
|
3228
|
+
i.value === "phone" ? (b(), _("div", Gr, [
|
3229
|
+
c("p", Vr, h(f(n)("smsInfo")), 1),
|
3230
|
+
v(Ae, {
|
3222
3231
|
modelValue: p.user.phone,
|
3223
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
3232
|
+
"onUpdate:modelValue": s[1] || (s[1] = (y) => p.user.phone = y),
|
3224
3233
|
dropdownOptions: {
|
3225
3234
|
showDialCodeInSelection: !0,
|
3226
3235
|
showFlags: !0,
|
@@ -3228,48 +3237,48 @@ const Lr = { class: "t-left pd-medium" }, jr = { class: "mn-small" }, Br = { cla
|
|
3228
3237
|
},
|
3229
3238
|
validation: t.value,
|
3230
3239
|
mode: "national",
|
3231
|
-
inputOptions: { placeholder:
|
3240
|
+
inputOptions: { placeholder: f(n)("phonePlaceholder") },
|
3232
3241
|
class: "bg-grey pd-small radius-small mn-thin"
|
3233
3242
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3234
|
-
])) :
|
3243
|
+
])) : k("", !0)
|
3235
3244
|
]),
|
3236
3245
|
_: 1
|
3237
3246
|
}),
|
3238
|
-
|
3239
|
-
default:
|
3240
|
-
i.value === "email" ? (
|
3241
|
-
c("p", Kr,
|
3242
|
-
|
3247
|
+
v(M, { name: "slide-fade" }, {
|
3248
|
+
default: O(() => [
|
3249
|
+
i.value === "email" ? (b(), _("div", Hr, [
|
3250
|
+
c("p", Kr, h(f(n)("emailInfo")), 1),
|
3251
|
+
v(L, {
|
3243
3252
|
field: p.user.email,
|
3244
|
-
"onUpdate:field": s[2] || (s[2] = (
|
3245
|
-
placeholder:
|
3253
|
+
"onUpdate:field": s[2] || (s[2] = (y) => p.user.email = y),
|
3254
|
+
placeholder: f(n)("emailPlaceholder"),
|
3246
3255
|
validation: d.value,
|
3247
3256
|
class: "bg-grey pd-medium radius-small"
|
3248
3257
|
}, null, 8, ["field", "placeholder", "validation"])
|
3249
|
-
])) :
|
3258
|
+
])) : k("", !0)
|
3250
3259
|
]),
|
3251
3260
|
_: 1
|
3252
3261
|
})
|
3253
3262
|
]),
|
3254
|
-
|
3263
|
+
v(J, {
|
3255
3264
|
submit: o,
|
3256
3265
|
callback: a,
|
3257
3266
|
class: "mn-big"
|
3258
3267
|
}, {
|
3259
|
-
default:
|
3260
|
-
|
3268
|
+
default: O(() => [
|
3269
|
+
z(h(f(n)("sendCode")), 1)
|
3261
3270
|
]),
|
3262
3271
|
_: 1
|
3263
3272
|
})
|
3264
3273
|
]));
|
3265
3274
|
}
|
3266
3275
|
};
|
3267
|
-
typeof
|
3276
|
+
typeof lt == "function" && lt(It);
|
3268
3277
|
const Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3269
3278
|
__proto__: null,
|
3270
|
-
default:
|
3279
|
+
default: It
|
3271
3280
|
}, Symbol.toStringTag, { value: "Module" }));
|
3272
|
-
function
|
3281
|
+
function $t(e) {
|
3273
3282
|
const n = e;
|
3274
3283
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
3275
3284
|
locale: "",
|
@@ -3361,25 +3370,25 @@ function st(e) {
|
|
3361
3370
|
}
|
3362
3371
|
});
|
3363
3372
|
}
|
3364
|
-
const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { class: "mn-small t-transp" }, Zr = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, Jr = { class: "" }, Qr = { class: "mn-semi radius-small" },
|
3373
|
+
const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { class: "mn-small t-transp" }, Zr = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, Jr = { class: "" }, Qr = { class: "mn-semi radius-small" }, ei = { class: "mn-small t-transp" }, ti = { class: "mn-semi radius-small o-hidden" }, ni = { class: "mn-small t-transp" }, di = { class: "w-100" }, Nt = {
|
3365
3374
|
__name: "SignUp",
|
3366
3375
|
setup(e) {
|
3367
|
-
const { t: n } =
|
3376
|
+
const { t: n } = V({
|
3368
3377
|
inheritLocale: !0,
|
3369
3378
|
useScope: "local"
|
3370
|
-
}), t =
|
3371
|
-
|
3372
|
-
const r =
|
3379
|
+
}), t = w(null), d = w(null);
|
3380
|
+
j();
|
3381
|
+
const r = B(), i = w("phone");
|
3373
3382
|
async function o() {
|
3374
3383
|
try {
|
3375
|
-
i.value === "phone" && await
|
3384
|
+
i.value === "phone" && await x(
|
3376
3385
|
t,
|
3377
|
-
|
3386
|
+
we,
|
3378
3387
|
p.user.phone,
|
3379
3388
|
"Некорректный телефон"
|
3380
|
-
), i.value === "email" && await
|
3389
|
+
), i.value === "email" && await x(
|
3381
3390
|
d,
|
3382
|
-
|
3391
|
+
Pe,
|
3383
3392
|
p.user.email,
|
3384
3393
|
"Некорректный email"
|
3385
3394
|
);
|
@@ -3387,7 +3396,7 @@ const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { cla
|
|
3387
3396
|
throw new Error();
|
3388
3397
|
}
|
3389
3398
|
try {
|
3390
|
-
await
|
3399
|
+
await ht(p.user, "signup", i.value);
|
3391
3400
|
} catch {
|
3392
3401
|
throw new Error();
|
3393
3402
|
}
|
@@ -3396,28 +3405,28 @@ const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { cla
|
|
3396
3405
|
r.push({ name: "Enter Code" });
|
3397
3406
|
}
|
3398
3407
|
return (l, s) => {
|
3399
|
-
const
|
3400
|
-
return
|
3401
|
-
c("h3", Xr,
|
3402
|
-
c("p", Yr,
|
3408
|
+
const y = Ce("router-link");
|
3409
|
+
return b(), _("section", qr, [
|
3410
|
+
c("h3", Xr, h(f(n)("title")), 1),
|
3411
|
+
c("p", Yr, h(f(n)("description")), 1),
|
3403
3412
|
c("div", Zr, [
|
3404
|
-
|
3413
|
+
v(Oe, {
|
3405
3414
|
selected: i.value,
|
3406
|
-
"onUpdate:selected": s[0] || (s[0] = (
|
3415
|
+
"onUpdate:selected": s[0] || (s[0] = (C) => i.value = C),
|
3407
3416
|
tabs: [
|
3408
|
-
{ name:
|
3409
|
-
{ name:
|
3417
|
+
{ name: f(n)("phone"), value: "phone" },
|
3418
|
+
{ name: f(n)("email"), value: "email" }
|
3410
3419
|
]
|
3411
3420
|
}, null, 8, ["selected", "tabs"])
|
3412
3421
|
]),
|
3413
3422
|
c("div", Jr, [
|
3414
|
-
|
3415
|
-
default:
|
3416
|
-
|
3417
|
-
c("p",
|
3418
|
-
|
3423
|
+
v(M, { name: "slide-fade" }, {
|
3424
|
+
default: O(() => [
|
3425
|
+
E(c("div", Qr, [
|
3426
|
+
c("p", ei, h(f(n)("smsNotice")), 1),
|
3427
|
+
v(Ae, {
|
3419
3428
|
modelValue: p.user.phone,
|
3420
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
3429
|
+
"onUpdate:modelValue": s[1] || (s[1] = (C) => p.user.phone = C),
|
3421
3430
|
dropdownOptions: {
|
3422
3431
|
showDialCodeInSelection: !0,
|
3423
3432
|
showFlags: !0,
|
@@ -3425,50 +3434,50 @@ const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { cla
|
|
3425
3434
|
},
|
3426
3435
|
validation: t.value,
|
3427
3436
|
mode: "national",
|
3428
|
-
inputOptions: { placeholder:
|
3437
|
+
inputOptions: { placeholder: f(n)("phonePlaceholder") },
|
3429
3438
|
class: "bg-grey pd-small radius-small mn-thin"
|
3430
3439
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3431
3440
|
], 512), [
|
3432
|
-
[
|
3441
|
+
[q, i.value === "phone"]
|
3433
3442
|
])
|
3434
3443
|
]),
|
3435
3444
|
_: 1
|
3436
3445
|
}),
|
3437
|
-
|
3438
|
-
default:
|
3439
|
-
|
3440
|
-
c("p",
|
3441
|
-
|
3446
|
+
v(M, { name: "slide-fade" }, {
|
3447
|
+
default: O(() => [
|
3448
|
+
E(c("div", ti, [
|
3449
|
+
c("p", ni, h(f(n)("emailNotice")), 1),
|
3450
|
+
v(L, {
|
3442
3451
|
field: p.user.email,
|
3443
|
-
"onUpdate:field": s[2] || (s[2] = (
|
3444
|
-
placeholder:
|
3452
|
+
"onUpdate:field": s[2] || (s[2] = (C) => p.user.email = C),
|
3453
|
+
placeholder: f(n)("emailPlaceholder"),
|
3445
3454
|
validation: d.value,
|
3446
3455
|
class: "bg-grey pd-medium radius-small"
|
3447
3456
|
}, null, 8, ["field", "placeholder", "validation"])
|
3448
3457
|
], 512), [
|
3449
|
-
[
|
3458
|
+
[q, i.value === "email"]
|
3450
3459
|
])
|
3451
3460
|
]),
|
3452
3461
|
_: 1
|
3453
3462
|
})
|
3454
3463
|
]),
|
3455
|
-
|
3464
|
+
v(J, {
|
3456
3465
|
submit: o,
|
3457
3466
|
callback: a,
|
3458
3467
|
class: "mn-big"
|
3459
3468
|
}, {
|
3460
|
-
default:
|
3461
|
-
|
3469
|
+
default: O(() => [
|
3470
|
+
z(h(f(n)("sendCode")), 1)
|
3462
3471
|
]),
|
3463
3472
|
_: 1
|
3464
3473
|
}),
|
3465
|
-
c("div",
|
3466
|
-
|
3474
|
+
c("div", di, [
|
3475
|
+
v(y, {
|
3467
3476
|
to: "/auth/signin",
|
3468
3477
|
class: "underline mn-medium d-block t-blue"
|
3469
3478
|
}, {
|
3470
|
-
default:
|
3471
|
-
|
3479
|
+
default: O(() => [
|
3480
|
+
z(h(f(n)("haveAccount")), 1)
|
3472
3481
|
]),
|
3473
3482
|
_: 1
|
3474
3483
|
})
|
@@ -3477,12 +3486,12 @@ const qr = { class: "t-left pd-medium" }, Xr = { class: "mn-small" }, Yr = { cla
|
|
3477
3486
|
};
|
3478
3487
|
}
|
3479
3488
|
};
|
3480
|
-
typeof
|
3481
|
-
const
|
3489
|
+
typeof $t == "function" && $t(Nt);
|
3490
|
+
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3482
3491
|
__proto__: null,
|
3483
|
-
default:
|
3492
|
+
default: Nt
|
3484
3493
|
}, Symbol.toStringTag, { value: "Module" }));
|
3485
|
-
function
|
3494
|
+
function ut(e) {
|
3486
3495
|
const n = e;
|
3487
3496
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
3488
3497
|
locale: "",
|
@@ -3598,72 +3607,105 @@ function lt(e) {
|
|
3598
3607
|
}
|
3599
3608
|
});
|
3600
3609
|
}
|
3601
|
-
const
|
3610
|
+
const ii = { class: "" }, oi = { class: "mn-medium" }, ai = /* @__PURE__ */ c("br", null, null, -1), si = { class: "t-semi" }, li = { class: "mn-big" }, $i = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, ui = { class: "" }, ci = { class: "mn-thin radius-small" }, fi = { class: "mn-thin radius-small o-hidden" }, pi = { class: "w-100 mn-big" }, mi = { class: "flex-v-center flex" }, hi = { class: "mn-r-small" }, Et = {
|
3602
3611
|
__name: "SignIn",
|
3603
3612
|
setup(e) {
|
3604
|
-
const { t: n } =
|
3613
|
+
const { t: n } = V({
|
3605
3614
|
inheritLocale: !0,
|
3606
3615
|
useScope: "local"
|
3607
|
-
}), t =
|
3608
|
-
|
3609
|
-
const i =
|
3610
|
-
|
3616
|
+
}), t = w(null), d = w(null), r = w(null);
|
3617
|
+
j();
|
3618
|
+
const i = B(), o = w("phone"), a = (u) => {
|
3619
|
+
console.log("Apple login success:", u);
|
3620
|
+
}, l = (u) => {
|
3621
|
+
console.log("Apple login failure:", u);
|
3622
|
+
}, s = () => {
|
3623
|
+
if (!window.AppleID) {
|
3624
|
+
console.error('"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js" needs to be included as a <script>');
|
3625
|
+
return;
|
3626
|
+
}
|
3627
|
+
const u = process.env.APPLE_CLIENTID, g = process.env.API_URL, S = "email", P = "123", oe = !0;
|
3628
|
+
window.AppleID.auth.init({
|
3629
|
+
clientId: u,
|
3630
|
+
scope: S,
|
3631
|
+
redirectURI: g,
|
3632
|
+
state: P,
|
3633
|
+
usePopup: oe
|
3634
|
+
}), document.addEventListener("AppleIDSignInOnSuccess", a), document.addEventListener("AppleIDSignInOnFailure", l);
|
3635
|
+
}, y = () => {
|
3636
|
+
try {
|
3637
|
+
window.AppleID.auth.signIn();
|
3638
|
+
} catch (u) {
|
3639
|
+
console.error("Error signing in with Apple:", u);
|
3640
|
+
}
|
3641
|
+
}, C = (u) => new Promise((g, S) => {
|
3642
|
+
const P = document.createElement("script");
|
3643
|
+
P.type = "text/javascript", P.src = u, P.onload = g, P.onerror = S, document.head.appendChild(P);
|
3644
|
+
});
|
3645
|
+
ct(async () => {
|
3611
3646
|
try {
|
3612
|
-
|
3647
|
+
await C("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"), s();
|
3648
|
+
} catch (u) {
|
3649
|
+
console.error("Error loading AppleID script:", u);
|
3650
|
+
}
|
3651
|
+
});
|
3652
|
+
async function m() {
|
3653
|
+
try {
|
3654
|
+
o.value === "phone" && await x(
|
3613
3655
|
t,
|
3614
|
-
|
3656
|
+
we,
|
3615
3657
|
p.user.phone,
|
3616
3658
|
"Некорректный телефон"
|
3617
|
-
), o.value === "email" && await
|
3659
|
+
), o.value === "email" && await x(
|
3618
3660
|
r,
|
3619
|
-
|
3661
|
+
Pe,
|
3620
3662
|
p.user.email,
|
3621
3663
|
"Некорректный email"
|
3622
3664
|
);
|
3623
3665
|
} catch {
|
3624
3666
|
throw new Error();
|
3625
3667
|
}
|
3626
|
-
await
|
3668
|
+
await X.login(p.user, o.value);
|
3627
3669
|
}
|
3628
|
-
function
|
3670
|
+
function $() {
|
3629
3671
|
i.push({ name: "User Profile", params: { _id: p.user._id } });
|
3630
3672
|
}
|
3631
|
-
return (
|
3632
|
-
const
|
3633
|
-
return
|
3634
|
-
c("h3",
|
3635
|
-
|
3636
|
-
|
3637
|
-
c("span",
|
3673
|
+
return (u, g) => {
|
3674
|
+
const S = Ce("router-link");
|
3675
|
+
return b(), _("section", ii, [
|
3676
|
+
c("h3", oi, [
|
3677
|
+
z(h(f(n)("title")) + " ", 1),
|
3678
|
+
ai,
|
3679
|
+
c("span", si, h(f(n)("subtitle")), 1)
|
3638
3680
|
]),
|
3639
|
-
c("p",
|
3640
|
-
|
3681
|
+
c("p", li, [
|
3682
|
+
v(S, {
|
3641
3683
|
to: { name: "Sign Up" },
|
3642
3684
|
class: "underline t-second"
|
3643
3685
|
}, {
|
3644
|
-
default:
|
3645
|
-
|
3686
|
+
default: O(() => [
|
3687
|
+
z(h(f(n)("signup")), 1)
|
3646
3688
|
]),
|
3647
3689
|
_: 1
|
3648
3690
|
})
|
3649
3691
|
]),
|
3650
|
-
c("div", $
|
3651
|
-
|
3692
|
+
c("div", $i, [
|
3693
|
+
v(Oe, {
|
3652
3694
|
selected: o.value,
|
3653
|
-
"onUpdate:selected":
|
3695
|
+
"onUpdate:selected": g[0] || (g[0] = (P) => o.value = P),
|
3654
3696
|
tabs: [
|
3655
|
-
{ name:
|
3656
|
-
{ name:
|
3697
|
+
{ name: f(n)("phone"), value: "phone" },
|
3698
|
+
{ name: f(n)("email"), value: "email" }
|
3657
3699
|
]
|
3658
3700
|
}, null, 8, ["selected", "tabs"])
|
3659
3701
|
]),
|
3660
|
-
c("div",
|
3661
|
-
|
3662
|
-
default:
|
3663
|
-
|
3664
|
-
|
3702
|
+
c("div", ui, [
|
3703
|
+
v(M, { name: "slide-fade" }, {
|
3704
|
+
default: O(() => [
|
3705
|
+
E(c("div", ci, [
|
3706
|
+
v(Ae, {
|
3665
3707
|
modelValue: p.user.phone,
|
3666
|
-
"onUpdate:modelValue":
|
3708
|
+
"onUpdate:modelValue": g[1] || (g[1] = (P) => p.user.phone = P),
|
3667
3709
|
dropdownOptions: {
|
3668
3710
|
showDialCodeInSelection: !0,
|
3669
3711
|
showFlags: !0,
|
@@ -3671,70 +3713,78 @@ const i1 = { class: "" }, o1 = { class: "mn-medium" }, a1 = /* @__PURE__ */ c("b
|
|
3671
3713
|
},
|
3672
3714
|
validation: t.value,
|
3673
3715
|
mode: "national",
|
3674
|
-
inputOptions: { placeholder:
|
3716
|
+
inputOptions: { placeholder: f(n)("phonePlaceholder") },
|
3675
3717
|
class: "bg-grey pd-small radius-small mn-thin"
|
3676
3718
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3677
3719
|
], 512), [
|
3678
|
-
[
|
3720
|
+
[q, o.value === "phone"]
|
3679
3721
|
])
|
3680
3722
|
]),
|
3681
3723
|
_: 1
|
3682
3724
|
}),
|
3683
|
-
|
3684
|
-
default:
|
3685
|
-
|
3686
|
-
|
3725
|
+
v(M, { name: "slide-fade" }, {
|
3726
|
+
default: O(() => [
|
3727
|
+
E(c("div", fi, [
|
3728
|
+
v(L, {
|
3687
3729
|
field: p.user.email,
|
3688
|
-
"onUpdate:field":
|
3689
|
-
placeholder:
|
3730
|
+
"onUpdate:field": g[2] || (g[2] = (P) => p.user.email = P),
|
3731
|
+
placeholder: f(n)("emailPlaceholder"),
|
3690
3732
|
validation: r.value,
|
3691
3733
|
class: "bg-grey pd-medium radius-small"
|
3692
3734
|
}, null, 8, ["field", "placeholder", "validation"])
|
3693
3735
|
], 512), [
|
3694
|
-
[
|
3736
|
+
[q, o.value === "email"]
|
3695
3737
|
])
|
3696
3738
|
]),
|
3697
3739
|
_: 1
|
3698
3740
|
})
|
3699
3741
|
]),
|
3700
|
-
|
3742
|
+
v(L, {
|
3701
3743
|
field: p.user.password,
|
3702
|
-
"onUpdate:field":
|
3744
|
+
"onUpdate:field": g[3] || (g[3] = (P) => p.user.password = P),
|
3703
3745
|
type: "password",
|
3704
3746
|
validation: d.value,
|
3705
|
-
placeholder:
|
3747
|
+
placeholder: f(n)("passwordPlaceholder"),
|
3706
3748
|
class: "bg-grey pd-medium radius-small mn-semi"
|
3707
3749
|
}, null, 8, ["field", "validation", "placeholder"]),
|
3708
|
-
c("div",
|
3709
|
-
|
3750
|
+
c("div", pi, [
|
3751
|
+
v(S, {
|
3710
3752
|
to: "/auth/reset-password",
|
3711
3753
|
class: "underline d-block t-blue"
|
3712
3754
|
}, {
|
3713
|
-
default:
|
3714
|
-
|
3755
|
+
default: O(() => [
|
3756
|
+
z(h(f(n)("forgotPassword")), 1)
|
3715
3757
|
]),
|
3716
3758
|
_: 1
|
3717
3759
|
})
|
3718
3760
|
]),
|
3719
|
-
|
3720
|
-
submit:
|
3721
|
-
callback:
|
3761
|
+
v(J, {
|
3762
|
+
submit: m,
|
3763
|
+
callback: $,
|
3722
3764
|
class: "mn-thin"
|
3723
3765
|
}, {
|
3724
|
-
default:
|
3725
|
-
|
3766
|
+
default: O(() => [
|
3767
|
+
z(h(f(n)("signin")), 1)
|
3726
3768
|
]),
|
3727
3769
|
_: 1
|
3728
|
-
})
|
3770
|
+
}),
|
3771
|
+
c("button", {
|
3772
|
+
onClick: y,
|
3773
|
+
class: "bg-black t-white w-100 button"
|
3774
|
+
}, [
|
3775
|
+
c("div", mi, [
|
3776
|
+
c("span", hi, h(f(n)("signinMetamask")), 1)
|
3777
|
+
])
|
3778
|
+
])
|
3729
3779
|
]);
|
3730
3780
|
};
|
3731
3781
|
}
|
3732
3782
|
};
|
3733
|
-
typeof
|
3734
|
-
const
|
3783
|
+
typeof ut == "function" && ut(Et);
|
3784
|
+
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3735
3785
|
__proto__: null,
|
3736
|
-
default:
|
3737
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
3786
|
+
default: Et
|
3787
|
+
}, Symbol.toStringTag, { value: "Module" })), Ti = [
|
3738
3788
|
{
|
3739
3789
|
path: "auth",
|
3740
3790
|
name: "Authentication",
|
@@ -3749,8 +3799,8 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3749
3799
|
path: "signin",
|
3750
3800
|
name: "Sign In",
|
3751
3801
|
beforeEnter: [
|
3752
|
-
|
3753
|
-
|
3802
|
+
K,
|
3803
|
+
le
|
3754
3804
|
],
|
3755
3805
|
meta: {
|
3756
3806
|
title: {
|
@@ -3758,13 +3808,13 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3758
3808
|
ru: "Вход"
|
3759
3809
|
}
|
3760
3810
|
},
|
3761
|
-
component: () => Promise.resolve().then(() =>
|
3811
|
+
component: () => Promise.resolve().then(() => yi)
|
3762
3812
|
}, {
|
3763
3813
|
path: "reset-password",
|
3764
3814
|
name: "Reset Password",
|
3765
3815
|
beforeEnter: [
|
3766
|
-
|
3767
|
-
|
3816
|
+
K,
|
3817
|
+
le
|
3768
3818
|
],
|
3769
3819
|
meta: {
|
3770
3820
|
title: {
|
@@ -3777,8 +3827,8 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3777
3827
|
path: "signup",
|
3778
3828
|
name: "Sign Up",
|
3779
3829
|
beforeEnter: [
|
3780
|
-
|
3781
|
-
|
3830
|
+
K,
|
3831
|
+
le
|
3782
3832
|
],
|
3783
3833
|
meta: {
|
3784
3834
|
title: {
|
@@ -3786,13 +3836,13 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3786
3836
|
ru: "Регистрация"
|
3787
3837
|
}
|
3788
3838
|
},
|
3789
|
-
component: () => Promise.resolve().then(() =>
|
3839
|
+
component: () => Promise.resolve().then(() => ri)
|
3790
3840
|
}, {
|
3791
3841
|
path: "enter-code",
|
3792
3842
|
name: "Enter Code",
|
3793
3843
|
beforeEnter: [
|
3794
|
-
|
3795
|
-
|
3844
|
+
K,
|
3845
|
+
Fe
|
3796
3846
|
],
|
3797
3847
|
meta: {
|
3798
3848
|
title: {
|
@@ -3805,8 +3855,8 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3805
3855
|
path: "enter-password",
|
3806
3856
|
name: "Enter Password",
|
3807
3857
|
beforeEnter: [
|
3808
|
-
|
3809
|
-
|
3858
|
+
K,
|
3859
|
+
Fe
|
3810
3860
|
],
|
3811
3861
|
meta: {
|
3812
3862
|
title: {
|
@@ -3830,15 +3880,15 @@ const m1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3830
3880
|
];
|
3831
3881
|
export {
|
3832
3882
|
Jd as Auth,
|
3833
|
-
|
3834
|
-
|
3883
|
+
Pt as EnterCode,
|
3884
|
+
St as EnterPassword,
|
3835
3885
|
ur as Invite,
|
3836
|
-
|
3837
|
-
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
|
3842
|
-
|
3843
|
-
|
3886
|
+
It as ResetPassword,
|
3887
|
+
Et as SignIn,
|
3888
|
+
Nt as SignUp,
|
3889
|
+
Ni as SliderFeatures,
|
3890
|
+
Ti as authRoutes,
|
3891
|
+
Di as authStore,
|
3892
|
+
Ei as invitesStore,
|
3893
|
+
Ri as twofaStore
|
3844
3894
|
};
|