@konnectio/core 4.0.0 → 4.0.2
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-138c1747.mjs +104 -0
- package/dist/ActionField-138c1747.mjs.br +0 -0
- package/dist/ActionField-2b6751b4.js +2 -0
- package/dist/ActionField-2b6751b4.js.br +0 -0
- package/dist/Clickable-26efd8d0.mjs +3497 -0
- package/dist/Clickable-26efd8d0.mjs.br +0 -0
- package/dist/Clickable-6b252cca.js +763 -0
- package/dist/Clickable-6b252cca.js.br +0 -0
- package/dist/HotelAvailabilityForm-56badafa.js +2 -0
- package/dist/HotelAvailabilityForm-56badafa.js.br +0 -0
- package/dist/HotelAvailabilityForm-a550be2e.mjs +100 -0
- package/dist/HotelAvailabilityForm-a550be2e.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs +5918 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js +56 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-59863bbf.mjs +377 -0
- package/dist/ReCaptchaVuePlugin-59863bbf.mjs.br +0 -0
- package/dist/ReCaptchaVuePlugin-809f1dcc.js +2 -0
- package/dist/ReCaptchaVuePlugin-809f1dcc.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js +57 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs +10110 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs.br +0 -0
- package/dist/ThankYou-103d0395.js +16 -0
- package/dist/ThankYou-103d0395.js.br +0 -0
- package/dist/ThankYou-95c1eef3.mjs +8520 -0
- package/dist/ThankYou-95c1eef3.mjs.br +0 -0
- package/dist/_commonjsHelpers-10dfc225.mjs +9 -0
- package/dist/_commonjsHelpers-87b0abe8.js +2 -0
- package/dist/applyGiftCard-2eac2416.js +2 -0
- package/dist/applyGiftCard-2eac2416.js.br +0 -0
- package/dist/applyGiftCard-fb6fb8f4.mjs +118 -0
- package/dist/applyGiftCard-fb6fb8f4.mjs.br +0 -0
- package/dist/availability.cjs.js +2 -0
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +186 -0
- package/dist/availability.es.js.br +0 -0
- package/dist/event-b7b4870b.js +2 -0
- package/dist/event-b7b4870b.js.br +0 -0
- package/dist/event-d697bdb9.mjs +329 -0
- package/dist/event-d697bdb9.mjs.br +0 -0
- package/dist/event.cjs.js +2 -0
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +648 -0
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +2 -0
- package/dist/gift-card-validation.cjs.js.br +9 -0
- package/dist/gift-card-validation.es.js +173 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +2 -0
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +587 -0
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +20 -0
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +2395 -0
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-76459611.mjs +656 -0
- package/dist/index-76459611.mjs.br +0 -0
- package/dist/index-95820cc1.js +2 -0
- package/dist/index-95820cc1.js.br +0 -0
- package/dist/navigation.cjs.js +2 -0
- package/dist/navigation.cjs.js.br +0 -0
- package/dist/navigation.es.js +60 -0
- package/dist/navigation.es.js.br +0 -0
- package/dist/payment-215f120d.js +3 -0
- package/dist/payment-215f120d.js.br +0 -0
- package/dist/payment-31263275.mjs +8149 -0
- package/dist/payment-31263275.mjs.br +0 -0
- package/dist/polyfill.cjs.js +5 -0
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +6766 -0
- package/dist/polyfill.es.js.br +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.br +0 -0
- package/package.json +8 -7
- package/target/assets/ActionField-b0b40c88.js +0 -2
- package/target/assets/ActionField-b0b40c88.js.br +0 -0
- package/target/assets/AvailabilityForm-13918dfc.js +0 -2
- package/target/assets/AvailabilityForm-13918dfc.js.br +0 -0
- package/target/assets/Checkbox-0b398a1a.js +0 -2
- package/target/assets/Checkbox-0b398a1a.js.br +0 -0
- package/target/assets/Clickable-803d7e0c.js +0 -2
- package/target/assets/Clickable-803d7e0c.js.br +0 -0
- package/target/assets/DateField.vue_vue_type_style_index_0_lang-f5878599.js +0 -2
- package/target/assets/DateField.vue_vue_type_style_index_0_lang-f5878599.js.br +0 -0
- package/target/assets/GoogleNotice-950f8f64.js +0 -2
- package/target/assets/GoogleNotice-950f8f64.js.br +0 -0
- package/target/assets/NumberField.vue_vue_type_script_setup_true_lang-3c220f4d.js +0 -2
- package/target/assets/NumberField.vue_vue_type_script_setup_true_lang-3c220f4d.js.br +0 -0
- package/target/assets/NumberField.vue_vue_type_style_index_0_lang-8bcb59b1.js +0 -2
- package/target/assets/NumberField.vue_vue_type_style_index_0_lang-8bcb59b1.js.br +0 -0
- package/target/assets/SelectField.vue_vue_type_style_index_0_lang-d1aa221e.js +0 -2
- package/target/assets/SelectField.vue_vue_type_style_index_0_lang-d1aa221e.js.br +0 -0
- package/target/assets/ThankYou-670c2cca.js +0 -5
- package/target/assets/ThankYou-670c2cca.js.br +0 -0
- package/target/assets/TimeField.vue_vue_type_style_index_0_lang-8f7003f1.js +0 -2
- package/target/assets/TimeField.vue_vue_type_style_index_0_lang-8f7003f1.js.br +0 -0
- package/target/assets/admin-708f5aa9.js +0 -2
- package/target/assets/admin-708f5aa9.js.br +0 -0
- package/target/assets/applyGiftCard-dff85e53.js +0 -2
- package/target/assets/applyGiftCard-dff85e53.js.br +0 -0
- package/target/assets/availability-72ce6097.js +0 -2
- package/target/assets/availability-a20d4ba0.js +0 -2
- package/target/assets/availability-a20d4ba0.js.br +0 -0
- package/target/assets/event-5d483aec.js +0 -2
- package/target/assets/event-5d483aec.js.br +0 -0
- package/target/assets/gift-card-a840a7f0.js +0 -2
- package/target/assets/gift-card-a840a7f0.js.br +0 -0
- package/target/assets/gift-card-validation-385d06bd.js +0 -2
- package/target/assets/gift-card-validation-385d06bd.js.br +0 -0
- package/target/assets/giftCard-75628b52.js +0 -2
- package/target/assets/giftCard-75628b52.js.br +0 -0
- package/target/assets/hotel-9386d0a1.js +0 -2
- package/target/assets/hotel-9386d0a1.js.br +0 -0
- package/target/assets/navigation-bce4c537.js +0 -2
- package/target/assets/navigation-bce4c537.js.br +0 -0
- package/target/assets/polyfill-a64d350a.js +0 -2
- package/target/assets/style.css +0 -1
- package/target/assets/style.css.br +0 -0
- package/target/assets/vendor-7782fc29.js +0 -878
- package/target/assets/vendor-7782fc29.js.br +0 -0
- package/target/manifest.json.br +0 -0
- package/target/vite-dev-server.json +0 -1
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { c as h } from "./_commonjsHelpers-10dfc225.mjs";
|
|
2
|
+
import O from "vue";
|
|
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
|
+
};
|
|
377
|
+
//# sourceMappingURL=ReCaptchaVuePlugin-59863bbf.mjs.map
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const h=require("./_commonjsHelpers-87b0abe8.js"),D=require("vue");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 E=m,g=D,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 x(){return g.inject(I)}exports.useReCaptcha_1=p.useReCaptcha=x;function T(n){return L(this,void 0,void 0,function(){return R(this,function(i){switch(i.label){case 0:return[4,E.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()]}})})}}
|
|
2
|
+
//# sourceMappingURL=ReCaptchaVuePlugin-809f1dcc.js.map
|
|
Binary file
|