@konnectio/core 4.0.6 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionField-b87d2fd7.cjs +1 -0
- package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +150 -0
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
- package/dist/Field-21bb32d7.cjs +1 -0
- package/dist/Field-6bfeedce.js +59 -0
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
- package/dist/TextField-99e69631.cjs +54 -0
- package/dist/TextField-b8f4462a.js +9343 -0
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +66 -0
- package/dist/ThankYou-edbf753b.js +14279 -0
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
- package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
- package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/availability.cjs +2 -0
- package/dist/availability.js +236 -0
- package/dist/availability.js.br +0 -0
- package/dist/components/ErrorMessage.vue.d.ts +5 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Test.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Field.vue.d.ts +5 -0
- package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Listing.vue.d.ts +5 -0
- package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +5 -0
- package/dist/components/skeletons/_.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +3 -2
- package/dist/entries/gift-card.d.ts +1 -2
- package/dist/entries/hotel.d.ts +0 -2
- package/dist/event-2c6a2138.cjs +1 -0
- package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/event.cjs +2 -0
- package/dist/event.js +867 -0
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -0
- package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -0
- package/dist/gift-card.d.ts +0 -2
- package/dist/gift-card.js +590 -0
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +19 -0
- package/dist/hotel.d.ts +0 -2
- package/dist/hotel.js +2981 -0
- package/dist/hotel.js.br +0 -0
- package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/index-ec04c269.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +42 -217
- package/dist/layouts/GiftCard.vue.d.ts +130 -99
- package/dist/layouts/Hotel.vue.d.ts +162 -57
- package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
- package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
- package/dist/payment-cce506b8.js.br +0 -0
- package/dist/polyfill.cjs +4 -0
- package/dist/polyfill.js +6815 -0
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -21
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +0 -1
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
- package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
- package/dist/ThankYou-1866d8db.js +0 -8547
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +0 -15
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/availability.cjs.js +0 -1
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +0 -183
- package/dist/availability.es.js.br +0 -0
- package/dist/components/LoadingBlock.vue.d.ts +0 -4
- package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
- package/dist/event-39706438.cjs +0 -1
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +0 -1
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +0 -645
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +0 -1
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +0 -1
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +0 -584
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +0 -19
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +0 -2394
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +0 -1
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/polyfill.cjs.js +0 -4
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +0 -6764
- package/dist/polyfill.es.js.br +0 -0
- /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
- /package/dist/{navigation.es.js → navigation.js} +0 -0
|
Binary file
|
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { c as h } from "./_commonjsHelpers-aeeeeb92.js";
|
|
2
|
-
import { r as O } from "./index-00262c16.js";
|
|
3
|
-
var p = {}, _ = {}, y = {}, g = {}, S = h && h.__awaiter || function(n, i, t, a) {
|
|
4
|
-
function c(e) {
|
|
5
|
-
return e instanceof t ? e : new t(function(u) {
|
|
6
|
-
u(e);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
return new (t || (t = Promise))(function(e, u) {
|
|
10
|
-
function o(l) {
|
|
11
|
-
try {
|
|
12
|
-
r(a.next(l));
|
|
13
|
-
} catch (f) {
|
|
14
|
-
u(f);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function s(l) {
|
|
18
|
-
try {
|
|
19
|
-
r(a.throw(l));
|
|
20
|
-
} catch (f) {
|
|
21
|
-
u(f);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function r(l) {
|
|
25
|
-
l.done ? e(l.value) : c(l.value).then(o, s);
|
|
26
|
-
}
|
|
27
|
-
r((a = a.apply(n, i || [])).next());
|
|
28
|
-
});
|
|
29
|
-
}, j = h && h.__generator || function(n, i) {
|
|
30
|
-
var t = { label: 0, sent: function() {
|
|
31
|
-
if (e[0] & 1)
|
|
32
|
-
throw e[1];
|
|
33
|
-
return e[1];
|
|
34
|
-
}, trys: [], ops: [] }, a, c, e, u;
|
|
35
|
-
return u = { next: o(0), throw: o(1), return: o(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
36
|
-
return this;
|
|
37
|
-
}), u;
|
|
38
|
-
function o(r) {
|
|
39
|
-
return function(l) {
|
|
40
|
-
return s([r, l]);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function s(r) {
|
|
44
|
-
if (a)
|
|
45
|
-
throw new TypeError("Generator is already executing.");
|
|
46
|
-
for (; t; )
|
|
47
|
-
try {
|
|
48
|
-
if (a = 1, c && (e = r[0] & 2 ? c.return : r[0] ? c.throw || ((e = c.return) && e.call(c), 0) : c.next) && !(e = e.call(c, r[1])).done)
|
|
49
|
-
return e;
|
|
50
|
-
switch (c = 0, e && (r = [r[0] & 2, e.value]), r[0]) {
|
|
51
|
-
case 0:
|
|
52
|
-
case 1:
|
|
53
|
-
e = r;
|
|
54
|
-
break;
|
|
55
|
-
case 4:
|
|
56
|
-
return t.label++, { value: r[1], done: !1 };
|
|
57
|
-
case 5:
|
|
58
|
-
t.label++, c = r[1], r = [0];
|
|
59
|
-
continue;
|
|
60
|
-
case 7:
|
|
61
|
-
r = t.ops.pop(), t.trys.pop();
|
|
62
|
-
continue;
|
|
63
|
-
default:
|
|
64
|
-
if (e = t.trys, !(e = e.length > 0 && e[e.length - 1]) && (r[0] === 6 || r[0] === 2)) {
|
|
65
|
-
t = 0;
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
if (r[0] === 3 && (!e || r[1] > e[0] && r[1] < e[3])) {
|
|
69
|
-
t.label = r[1];
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
if (r[0] === 6 && t.label < e[1]) {
|
|
73
|
-
t.label = e[1], e = r;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
if (e && t.label < e[2]) {
|
|
77
|
-
t.label = e[2], t.ops.push(r);
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
e[2] && t.ops.pop(), t.trys.pop();
|
|
81
|
-
continue;
|
|
82
|
-
}
|
|
83
|
-
r = i.call(n, t);
|
|
84
|
-
} catch (l) {
|
|
85
|
-
r = [6, l], c = 0;
|
|
86
|
-
} finally {
|
|
87
|
-
a = e = 0;
|
|
88
|
-
}
|
|
89
|
-
if (r[0] & 5)
|
|
90
|
-
throw r[1];
|
|
91
|
-
return { value: r[0] ? r[1] : void 0, done: !0 };
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
Object.defineProperty(g, "__esModule", { value: !0 });
|
|
95
|
-
g.ReCaptchaInstance = void 0;
|
|
96
|
-
var A = function() {
|
|
97
|
-
function n(i, t, a) {
|
|
98
|
-
this.siteKey = i, this.recaptchaID = t, this.recaptcha = a, this.styleContainer = null;
|
|
99
|
-
}
|
|
100
|
-
return n.prototype.execute = function(i) {
|
|
101
|
-
return S(this, void 0, void 0, function() {
|
|
102
|
-
return j(this, function(t) {
|
|
103
|
-
return [2, this.recaptcha.enterprise ? this.recaptcha.enterprise.execute(this.recaptchaID, { action: i }) : this.recaptcha.execute(this.recaptchaID, { action: i })];
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}, n.prototype.getSiteKey = function() {
|
|
107
|
-
return this.siteKey;
|
|
108
|
-
}, n.prototype.hideBadge = function() {
|
|
109
|
-
this.styleContainer === null && (this.styleContainer = document.createElement("style"), this.styleContainer.innerHTML = ".grecaptcha-badge{visibility:hidden !important;}", document.head.appendChild(this.styleContainer));
|
|
110
|
-
}, n.prototype.showBadge = function() {
|
|
111
|
-
this.styleContainer !== null && (document.head.removeChild(this.styleContainer), this.styleContainer = null);
|
|
112
|
-
}, n;
|
|
113
|
-
}();
|
|
114
|
-
g.ReCaptchaInstance = A;
|
|
115
|
-
Object.defineProperty(y, "__esModule", { value: !0 });
|
|
116
|
-
y.getInstance = y.load = void 0;
|
|
117
|
-
var P = g, d;
|
|
118
|
-
(function(n) {
|
|
119
|
-
n[n.NOT_LOADED = 0] = "NOT_LOADED", n[n.LOADING = 1] = "LOADING", n[n.LOADED = 2] = "LOADED";
|
|
120
|
-
})(d || (d = {}));
|
|
121
|
-
var L = function() {
|
|
122
|
-
function n() {
|
|
123
|
-
}
|
|
124
|
-
return n.load = function(i, t) {
|
|
125
|
-
if (t === void 0 && (t = {}), typeof document > "u")
|
|
126
|
-
return Promise.reject(new Error("This is a library for the browser!"));
|
|
127
|
-
if (n.getLoadingState() === d.LOADED)
|
|
128
|
-
return n.instance.getSiteKey() === i ? Promise.resolve(n.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
|
|
129
|
-
if (n.getLoadingState() === d.LOADING)
|
|
130
|
-
return i !== n.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(c, e) {
|
|
131
|
-
n.successfulLoadingConsumers.push(function(u) {
|
|
132
|
-
return c(u);
|
|
133
|
-
}), n.errorLoadingRunnable.push(function(u) {
|
|
134
|
-
return e(u);
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
n.instanceSiteKey = i, n.setLoadingState(d.LOADING);
|
|
138
|
-
var a = new n();
|
|
139
|
-
return new Promise(function(c, e) {
|
|
140
|
-
a.loadScript(i, t.useRecaptchaNet || !1, t.useEnterprise || !1, t.renderParameters ? t.renderParameters : {}, t.customUrl).then(function() {
|
|
141
|
-
n.setLoadingState(d.LOADED);
|
|
142
|
-
var u = a.doExplicitRender(grecaptcha, i, t.explicitRenderParameters ? t.explicitRenderParameters : {}, t.useEnterprise || !1), o = new P.ReCaptchaInstance(i, u, grecaptcha);
|
|
143
|
-
n.successfulLoadingConsumers.forEach(function(s) {
|
|
144
|
-
return s(o);
|
|
145
|
-
}), n.successfulLoadingConsumers = [], t.autoHideBadge && o.hideBadge(), n.instance = o, c(o);
|
|
146
|
-
}).catch(function(u) {
|
|
147
|
-
n.errorLoadingRunnable.forEach(function(o) {
|
|
148
|
-
return o(u);
|
|
149
|
-
}), n.errorLoadingRunnable = [], e(u);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
}, n.getInstance = function() {
|
|
153
|
-
return n.instance;
|
|
154
|
-
}, n.setLoadingState = function(i) {
|
|
155
|
-
n.loadingState = i;
|
|
156
|
-
}, n.getLoadingState = function() {
|
|
157
|
-
return n.loadingState === null ? d.NOT_LOADED : n.loadingState;
|
|
158
|
-
}, n.prototype.loadScript = function(i, t, a, c, e) {
|
|
159
|
-
var u = this;
|
|
160
|
-
t === void 0 && (t = !1), a === void 0 && (a = !1), c === void 0 && (c = {}), e === void 0 && (e = "");
|
|
161
|
-
var o = document.createElement("script");
|
|
162
|
-
o.setAttribute("recaptcha-v3-script", "");
|
|
163
|
-
var s = "https://www.google.com/recaptcha/api.js";
|
|
164
|
-
t && (a ? s = "https://recaptcha.net/recaptcha/enterprise.js" : s = "https://recaptcha.net/recaptcha/api.js"), a && (s = "https://www.google.com/recaptcha/enterprise.js"), e && (s = e), c.render && (c.render = void 0);
|
|
165
|
-
var r = this.buildQueryString(c);
|
|
166
|
-
return o.src = s + "?render=explicit" + r, new Promise(function(l, f) {
|
|
167
|
-
o.addEventListener("load", u.waitForScriptToLoad(function() {
|
|
168
|
-
l(o);
|
|
169
|
-
}, a), !1), o.onerror = function(D) {
|
|
170
|
-
n.setLoadingState(d.NOT_LOADED), f(D);
|
|
171
|
-
}, document.head.appendChild(o);
|
|
172
|
-
});
|
|
173
|
-
}, n.prototype.buildQueryString = function(i) {
|
|
174
|
-
var t = Object.keys(i);
|
|
175
|
-
return t.length < 1 ? "" : "&" + Object.keys(i).filter(function(a) {
|
|
176
|
-
return !!i[a];
|
|
177
|
-
}).map(function(a) {
|
|
178
|
-
return a + "=" + i[a];
|
|
179
|
-
}).join("&");
|
|
180
|
-
}, n.prototype.waitForScriptToLoad = function(i, t) {
|
|
181
|
-
var a = this;
|
|
182
|
-
return function() {
|
|
183
|
-
window.grecaptcha === void 0 ? setTimeout(function() {
|
|
184
|
-
a.waitForScriptToLoad(i, t);
|
|
185
|
-
}, n.SCRIPT_LOAD_DELAY) : t ? window.grecaptcha.enterprise.ready(function() {
|
|
186
|
-
i();
|
|
187
|
-
}) : window.grecaptcha.ready(function() {
|
|
188
|
-
i();
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
}, n.prototype.doExplicitRender = function(i, t, a, c) {
|
|
192
|
-
var e = {
|
|
193
|
-
sitekey: t,
|
|
194
|
-
badge: a.badge,
|
|
195
|
-
size: a.size,
|
|
196
|
-
tabindex: a.tabindex
|
|
197
|
-
};
|
|
198
|
-
return a.container ? c ? i.enterprise.render(a.container, e) : i.render(a.container, e) : c ? i.enterprise.render(e) : i.render(e);
|
|
199
|
-
}, n.loadingState = null, n.instance = null, n.instanceSiteKey = null, n.successfulLoadingConsumers = [], n.errorLoadingRunnable = [], n.SCRIPT_LOAD_DELAY = 25, n;
|
|
200
|
-
}();
|
|
201
|
-
y.load = L.load;
|
|
202
|
-
y.getInstance = L.getInstance;
|
|
203
|
-
(function(n) {
|
|
204
|
-
Object.defineProperty(n, "__esModule", { value: !0 }), n.ReCaptchaInstance = n.getInstance = n.load = void 0;
|
|
205
|
-
var i = y;
|
|
206
|
-
Object.defineProperty(n, "load", { enumerable: !0, get: function() {
|
|
207
|
-
return i.load;
|
|
208
|
-
} }), Object.defineProperty(n, "getInstance", { enumerable: !0, get: function() {
|
|
209
|
-
return i.getInstance;
|
|
210
|
-
} });
|
|
211
|
-
var t = g;
|
|
212
|
-
Object.defineProperty(n, "ReCaptchaInstance", { enumerable: !0, get: function() {
|
|
213
|
-
return t.ReCaptchaInstance;
|
|
214
|
-
} });
|
|
215
|
-
})(_);
|
|
216
|
-
var m = h && h.__awaiter || function(n, i, t, a) {
|
|
217
|
-
function c(e) {
|
|
218
|
-
return e instanceof t ? e : new t(function(u) {
|
|
219
|
-
u(e);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
return new (t || (t = Promise))(function(e, u) {
|
|
223
|
-
function o(l) {
|
|
224
|
-
try {
|
|
225
|
-
r(a.next(l));
|
|
226
|
-
} catch (f) {
|
|
227
|
-
u(f);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function s(l) {
|
|
231
|
-
try {
|
|
232
|
-
r(a.throw(l));
|
|
233
|
-
} catch (f) {
|
|
234
|
-
u(f);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
function r(l) {
|
|
238
|
-
l.done ? e(l.value) : c(l.value).then(o, s);
|
|
239
|
-
}
|
|
240
|
-
r((a = a.apply(n, i || [])).next());
|
|
241
|
-
});
|
|
242
|
-
}, R = h && h.__generator || function(n, i) {
|
|
243
|
-
var t = { label: 0, sent: function() {
|
|
244
|
-
if (e[0] & 1)
|
|
245
|
-
throw e[1];
|
|
246
|
-
return e[1];
|
|
247
|
-
}, trys: [], ops: [] }, a, c, e, u;
|
|
248
|
-
return u = { next: o(0), throw: o(1), return: o(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
249
|
-
return this;
|
|
250
|
-
}), u;
|
|
251
|
-
function o(r) {
|
|
252
|
-
return function(l) {
|
|
253
|
-
return s([r, l]);
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
function s(r) {
|
|
257
|
-
if (a)
|
|
258
|
-
throw new TypeError("Generator is already executing.");
|
|
259
|
-
for (; t; )
|
|
260
|
-
try {
|
|
261
|
-
if (a = 1, c && (e = r[0] & 2 ? c.return : r[0] ? c.throw || ((e = c.return) && e.call(c), 0) : c.next) && !(e = e.call(c, r[1])).done)
|
|
262
|
-
return e;
|
|
263
|
-
switch (c = 0, e && (r = [r[0] & 2, e.value]), r[0]) {
|
|
264
|
-
case 0:
|
|
265
|
-
case 1:
|
|
266
|
-
e = r;
|
|
267
|
-
break;
|
|
268
|
-
case 4:
|
|
269
|
-
return t.label++, { value: r[1], done: !1 };
|
|
270
|
-
case 5:
|
|
271
|
-
t.label++, c = r[1], r = [0];
|
|
272
|
-
continue;
|
|
273
|
-
case 7:
|
|
274
|
-
r = t.ops.pop(), t.trys.pop();
|
|
275
|
-
continue;
|
|
276
|
-
default:
|
|
277
|
-
if (e = t.trys, !(e = e.length > 0 && e[e.length - 1]) && (r[0] === 6 || r[0] === 2)) {
|
|
278
|
-
t = 0;
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
if (r[0] === 3 && (!e || r[1] > e[0] && r[1] < e[3])) {
|
|
282
|
-
t.label = r[1];
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
if (r[0] === 6 && t.label < e[1]) {
|
|
286
|
-
t.label = e[1], e = r;
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
if (e && t.label < e[2]) {
|
|
290
|
-
t.label = e[2], t.ops.push(r);
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
e[2] && t.ops.pop(), t.trys.pop();
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
r = i.call(n, t);
|
|
297
|
-
} catch (l) {
|
|
298
|
-
r = [6, l], c = 0;
|
|
299
|
-
} finally {
|
|
300
|
-
a = e = 0;
|
|
301
|
-
}
|
|
302
|
-
if (r[0] & 5)
|
|
303
|
-
throw r[1];
|
|
304
|
-
return { value: r[0] ? r[1] : void 0, done: !0 };
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
308
|
-
var x = p.useReCaptcha = p.VueReCaptcha = void 0, E = _, b = O, I = Symbol("VueReCaptchaInjectKey"), v = {
|
|
309
|
-
loadedWaiters: [],
|
|
310
|
-
error: null
|
|
311
|
-
};
|
|
312
|
-
p.VueReCaptcha = {
|
|
313
|
-
install: function(n, i) {
|
|
314
|
-
var t = b.ref(!1), a = b.ref(void 0);
|
|
315
|
-
n.config.globalProperties.$recaptchaLoaded = w(t), k(i).then(function(c) {
|
|
316
|
-
t.value = !0, a.value = c, n.config.globalProperties.$recaptcha = C(a), n.config.globalProperties.$recaptchaInstance = a, v.loadedWaiters.forEach(function(e) {
|
|
317
|
-
return e.resolve(!0);
|
|
318
|
-
});
|
|
319
|
-
}).catch(function(c) {
|
|
320
|
-
v.error = c, v.loadedWaiters.forEach(function(e) {
|
|
321
|
-
return e.reject(c);
|
|
322
|
-
});
|
|
323
|
-
}), n.provide(I, {
|
|
324
|
-
instance: a,
|
|
325
|
-
isLoaded: t,
|
|
326
|
-
executeRecaptcha: C(a),
|
|
327
|
-
recaptchaLoaded: w(t)
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
function T() {
|
|
332
|
-
return b.inject(I);
|
|
333
|
-
}
|
|
334
|
-
x = p.useReCaptcha = T;
|
|
335
|
-
function k(n) {
|
|
336
|
-
return m(this, void 0, void 0, function() {
|
|
337
|
-
return R(this, function(i) {
|
|
338
|
-
switch (i.label) {
|
|
339
|
-
case 0:
|
|
340
|
-
return [4, E.load(n.siteKey, n.loaderOptions)];
|
|
341
|
-
case 1:
|
|
342
|
-
return [2, i.sent()];
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
function w(n) {
|
|
348
|
-
return function() {
|
|
349
|
-
return new Promise(function(i, t) {
|
|
350
|
-
if (v.error !== null)
|
|
351
|
-
return t(v.error);
|
|
352
|
-
if (n.value)
|
|
353
|
-
return i(!0);
|
|
354
|
-
v.loadedWaiters.push({ resolve: i, reject: t });
|
|
355
|
-
});
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
function C(n) {
|
|
359
|
-
var i = this;
|
|
360
|
-
return function(t) {
|
|
361
|
-
return m(i, void 0, void 0, function() {
|
|
362
|
-
var a;
|
|
363
|
-
return R(this, function(c) {
|
|
364
|
-
switch (c.label) {
|
|
365
|
-
case 0:
|
|
366
|
-
return [4, (a = n.value) === null || a === void 0 ? void 0 : a.execute(t)];
|
|
367
|
-
case 1:
|
|
368
|
-
return [2, c.sent()];
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
export {
|
|
375
|
-
x as u
|
|
376
|
-
};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./_commonjsHelpers-6763f629.cjs"),D=require("./index-58f3b0cc.cjs");var p={},m={},y={},b={},O=h.commonjsGlobal&&h.commonjsGlobal.__awaiter||function(n,i,t,a){function c(e){return e instanceof t?e:new t(function(o){o(e)})}return new(t||(t=Promise))(function(e,o){function u(l){try{r(a.next(l))}catch(f){o(f)}}function s(l){try{r(a.throw(l))}catch(f){o(f)}}function r(l){l.done?e(l.value):c(l.value).then(u,s)}r((a=a.apply(n,i||[])).next())})},S=h.commonjsGlobal&&h.commonjsGlobal.__generator||function(n,i){var t={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},a,c,e,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(r){return function(l){return s([r,l])}}function s(r){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,c&&(e=r[0]&2?c.return:r[0]?c.throw||((e=c.return)&&e.call(c),0):c.next)&&!(e=e.call(c,r[1])).done)return e;switch(c=0,e&&(r=[r[0]&2,e.value]),r[0]){case 0:case 1:e=r;break;case 4:return t.label++,{value:r[1],done:!1};case 5:t.label++,c=r[1],r=[0];continue;case 7:r=t.ops.pop(),t.trys.pop();continue;default:if(e=t.trys,!(e=e.length>0&&e[e.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!e||r[1]>e[0]&&r[1]<e[3])){t.label=r[1];break}if(r[0]===6&&t.label<e[1]){t.label=e[1],e=r;break}if(e&&t.label<e[2]){t.label=e[2],t.ops.push(r);break}e[2]&&t.ops.pop(),t.trys.pop();continue}r=i.call(n,t)}catch(l){r=[6,l],c=0}finally{a=e=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(b,"__esModule",{value:!0});b.ReCaptchaInstance=void 0;var A=function(){function n(i,t,a){this.siteKey=i,this.recaptchaID=t,this.recaptcha=a,this.styleContainer=null}return n.prototype.execute=function(i){return O(this,void 0,void 0,function(){return S(this,function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:i}):this.recaptcha.execute(this.recaptchaID,{action:i})]})})},n.prototype.getSiteKey=function(){return this.siteKey},n.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},n.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},n}();b.ReCaptchaInstance=A;Object.defineProperty(y,"__esModule",{value:!0});y.getInstance=y.load=void 0;var P=b,d;(function(n){n[n.NOT_LOADED=0]="NOT_LOADED",n[n.LOADING=1]="LOADING",n[n.LOADED=2]="LOADED"})(d||(d={}));var _=function(){function n(){}return n.load=function(i,t){if(t===void 0&&(t={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(n.getLoadingState()===d.LOADED)return n.instance.getSiteKey()===i?Promise.resolve(n.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(n.getLoadingState()===d.LOADING)return i!==n.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(c,e){n.successfulLoadingConsumers.push(function(o){return c(o)}),n.errorLoadingRunnable.push(function(o){return e(o)})});n.instanceSiteKey=i,n.setLoadingState(d.LOADING);var a=new n;return new Promise(function(c,e){a.loadScript(i,t.useRecaptchaNet||!1,t.useEnterprise||!1,t.renderParameters?t.renderParameters:{},t.customUrl).then(function(){n.setLoadingState(d.LOADED);var o=a.doExplicitRender(grecaptcha,i,t.explicitRenderParameters?t.explicitRenderParameters:{},t.useEnterprise||!1),u=new P.ReCaptchaInstance(i,o,grecaptcha);n.successfulLoadingConsumers.forEach(function(s){return s(u)}),n.successfulLoadingConsumers=[],t.autoHideBadge&&u.hideBadge(),n.instance=u,c(u)}).catch(function(o){n.errorLoadingRunnable.forEach(function(u){return u(o)}),n.errorLoadingRunnable=[],e(o)})})},n.getInstance=function(){return n.instance},n.setLoadingState=function(i){n.loadingState=i},n.getLoadingState=function(){return n.loadingState===null?d.NOT_LOADED:n.loadingState},n.prototype.loadScript=function(i,t,a,c,e){var o=this;t===void 0&&(t=!1),a===void 0&&(a=!1),c===void 0&&(c={}),e===void 0&&(e="");var u=document.createElement("script");u.setAttribute("recaptcha-v3-script","");var s="https://www.google.com/recaptcha/api.js";t&&(a?s="https://recaptcha.net/recaptcha/enterprise.js":s="https://recaptcha.net/recaptcha/api.js"),a&&(s="https://www.google.com/recaptcha/enterprise.js"),e&&(s=e),c.render&&(c.render=void 0);var r=this.buildQueryString(c);return u.src=s+"?render=explicit"+r,new Promise(function(l,f){u.addEventListener("load",o.waitForScriptToLoad(function(){l(u)},a),!1),u.onerror=function(j){n.setLoadingState(d.NOT_LOADED),f(j)},document.head.appendChild(u)})},n.prototype.buildQueryString=function(i){var t=Object.keys(i);return t.length<1?"":"&"+Object.keys(i).filter(function(a){return!!i[a]}).map(function(a){return a+"="+i[a]}).join("&")},n.prototype.waitForScriptToLoad=function(i,t){var a=this;return function(){window.grecaptcha===void 0?setTimeout(function(){a.waitForScriptToLoad(i,t)},n.SCRIPT_LOAD_DELAY):t?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},n.prototype.doExplicitRender=function(i,t,a,c){var e={sitekey:t,badge:a.badge,size:a.size,tabindex:a.tabindex};return a.container?c?i.enterprise.render(a.container,e):i.render(a.container,e):c?i.enterprise.render(e):i.render(e)},n.loadingState=null,n.instance=null,n.instanceSiteKey=null,n.successfulLoadingConsumers=[],n.errorLoadingRunnable=[],n.SCRIPT_LOAD_DELAY=25,n}();y.load=_.load;y.getInstance=_.getInstance;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ReCaptchaInstance=n.getInstance=n.load=void 0;var i=y;Object.defineProperty(n,"load",{enumerable:!0,get:function(){return i.load}}),Object.defineProperty(n,"getInstance",{enumerable:!0,get:function(){return i.getInstance}});var t=b;Object.defineProperty(n,"ReCaptchaInstance",{enumerable:!0,get:function(){return t.ReCaptchaInstance}})})(m);var L=h.commonjsGlobal&&h.commonjsGlobal.__awaiter||function(n,i,t,a){function c(e){return e instanceof t?e:new t(function(o){o(e)})}return new(t||(t=Promise))(function(e,o){function u(l){try{r(a.next(l))}catch(f){o(f)}}function s(l){try{r(a.throw(l))}catch(f){o(f)}}function r(l){l.done?e(l.value):c(l.value).then(u,s)}r((a=a.apply(n,i||[])).next())})},R=h.commonjsGlobal&&h.commonjsGlobal.__generator||function(n,i){var t={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},a,c,e,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(r){return function(l){return s([r,l])}}function s(r){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,c&&(e=r[0]&2?c.return:r[0]?c.throw||((e=c.return)&&e.call(c),0):c.next)&&!(e=e.call(c,r[1])).done)return e;switch(c=0,e&&(r=[r[0]&2,e.value]),r[0]){case 0:case 1:e=r;break;case 4:return t.label++,{value:r[1],done:!1};case 5:t.label++,c=r[1],r=[0];continue;case 7:r=t.ops.pop(),t.trys.pop();continue;default:if(e=t.trys,!(e=e.length>0&&e[e.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!e||r[1]>e[0]&&r[1]<e[3])){t.label=r[1];break}if(r[0]===6&&t.label<e[1]){t.label=e[1],e=r;break}if(e&&t.label<e[2]){t.label=e[2],t.ops.push(r);break}e[2]&&t.ops.pop(),t.trys.pop();continue}r=i.call(n,t)}catch(l){r=[6,l],c=0}finally{a=e=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(p,"__esModule",{value:!0});exports.useReCaptcha_1=p.useReCaptcha=p.VueReCaptcha=void 0;var x=m,g=D.require$$1,I=Symbol("VueReCaptchaInjectKey"),v={loadedWaiters:[],error:null};p.VueReCaptcha={install:function(n,i){var t=g.ref(!1),a=g.ref(void 0);n.config.globalProperties.$recaptchaLoaded=w(t),T(i).then(function(c){t.value=!0,a.value=c,n.config.globalProperties.$recaptcha=C(a),n.config.globalProperties.$recaptchaInstance=a,v.loadedWaiters.forEach(function(e){return e.resolve(!0)})}).catch(function(c){v.error=c,v.loadedWaiters.forEach(function(e){return e.reject(c)})}),n.provide(I,{instance:a,isLoaded:t,executeRecaptcha:C(a),recaptchaLoaded:w(t)})}};function E(){return g.inject(I)}exports.useReCaptcha_1=p.useReCaptcha=E;function T(n){return L(this,void 0,void 0,function(){return R(this,function(i){switch(i.label){case 0:return[4,x.load(n.siteKey,n.loaderOptions)];case 1:return[2,i.sent()]}})})}function w(n){return function(){return new Promise(function(i,t){if(v.error!==null)return t(v.error);if(n.value)return i(!0);v.loadedWaiters.push({resolve:i,reject:t})})}}function C(n){var i=this;return function(t){return L(i,void 0,void 0,function(){var a;return R(this,function(c){switch(c.label){case 0:return[4,(a=n.value)===null||a===void 0?void 0:a.execute(t)];case 1:return[2,c.sent()]}})})}}
|