@konnectio/core 4.0.1 → 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.
Files changed (122) hide show
  1. package/dist/ActionField-138c1747.mjs +104 -0
  2. package/dist/ActionField-138c1747.mjs.br +0 -0
  3. package/dist/ActionField-2b6751b4.js +2 -0
  4. package/dist/ActionField-2b6751b4.js.br +0 -0
  5. package/dist/Clickable-26efd8d0.mjs +3497 -0
  6. package/dist/Clickable-26efd8d0.mjs.br +0 -0
  7. package/dist/Clickable-6b252cca.js +763 -0
  8. package/dist/Clickable-6b252cca.js.br +0 -0
  9. package/dist/HotelAvailabilityForm-56badafa.js +2 -0
  10. package/dist/HotelAvailabilityForm-56badafa.js.br +0 -0
  11. package/dist/HotelAvailabilityForm-a550be2e.mjs +100 -0
  12. package/dist/HotelAvailabilityForm-a550be2e.mjs.br +0 -0
  13. package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs +5918 -0
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js +56 -0
  16. package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js.br +0 -0
  17. package/dist/ReCaptchaVuePlugin-59863bbf.mjs +377 -0
  18. package/dist/ReCaptchaVuePlugin-59863bbf.mjs.br +0 -0
  19. package/dist/ReCaptchaVuePlugin-809f1dcc.js +2 -0
  20. package/dist/ReCaptchaVuePlugin-809f1dcc.js.br +0 -0
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js +57 -0
  22. package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js.br +0 -0
  23. package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs +10110 -0
  24. package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs.br +0 -0
  25. package/dist/ThankYou-103d0395.js +16 -0
  26. package/dist/ThankYou-103d0395.js.br +0 -0
  27. package/dist/ThankYou-95c1eef3.mjs +8520 -0
  28. package/dist/ThankYou-95c1eef3.mjs.br +0 -0
  29. package/dist/_commonjsHelpers-10dfc225.mjs +9 -0
  30. package/dist/_commonjsHelpers-87b0abe8.js +2 -0
  31. package/dist/applyGiftCard-2eac2416.js +2 -0
  32. package/dist/applyGiftCard-2eac2416.js.br +0 -0
  33. package/dist/applyGiftCard-fb6fb8f4.mjs +118 -0
  34. package/dist/applyGiftCard-fb6fb8f4.mjs.br +0 -0
  35. package/dist/availability.cjs.js +2 -0
  36. package/dist/availability.cjs.js.br +0 -0
  37. package/dist/availability.es.js +186 -0
  38. package/dist/availability.es.js.br +0 -0
  39. package/dist/event-b7b4870b.js +2 -0
  40. package/dist/event-b7b4870b.js.br +0 -0
  41. package/dist/event-d697bdb9.mjs +329 -0
  42. package/dist/event-d697bdb9.mjs.br +0 -0
  43. package/dist/event.cjs.js +2 -0
  44. package/dist/event.cjs.js.br +0 -0
  45. package/dist/event.es.js +648 -0
  46. package/dist/event.es.js.br +0 -0
  47. package/dist/gift-card-validation.cjs.js +2 -0
  48. package/dist/gift-card-validation.cjs.js.br +9 -0
  49. package/dist/gift-card-validation.es.js +173 -0
  50. package/dist/gift-card-validation.es.js.br +0 -0
  51. package/dist/gift-card.cjs.js +2 -0
  52. package/dist/gift-card.cjs.js.br +0 -0
  53. package/dist/gift-card.es.js +587 -0
  54. package/dist/gift-card.es.js.br +0 -0
  55. package/dist/hotel.cjs.js +20 -0
  56. package/dist/hotel.cjs.js.br +0 -0
  57. package/dist/hotel.es.js +2395 -0
  58. package/dist/hotel.es.js.br +0 -0
  59. package/dist/index-76459611.mjs +656 -0
  60. package/dist/index-76459611.mjs.br +0 -0
  61. package/dist/index-95820cc1.js +2 -0
  62. package/dist/index-95820cc1.js.br +0 -0
  63. package/dist/navigation.cjs.js +2 -0
  64. package/dist/navigation.cjs.js.br +0 -0
  65. package/dist/navigation.es.js +60 -0
  66. package/dist/navigation.es.js.br +0 -0
  67. package/dist/payment-215f120d.js +3 -0
  68. package/dist/payment-215f120d.js.br +0 -0
  69. package/dist/payment-31263275.mjs +8149 -0
  70. package/dist/payment-31263275.mjs.br +0 -0
  71. package/dist/polyfill.cjs.js +5 -0
  72. package/dist/polyfill.cjs.js.br +0 -0
  73. package/dist/polyfill.es.js +6766 -0
  74. package/dist/polyfill.es.js.br +0 -0
  75. package/dist/style.css +1 -0
  76. package/dist/style.css.br +0 -0
  77. package/package.json +3 -1
  78. package/dist/admin.js +0 -2
  79. package/dist/admin.js.br +0 -0
  80. package/dist/assets/ActionField-d1b315e3.js +0 -2
  81. package/dist/assets/ActionField-d1b315e3.js.br +0 -0
  82. package/dist/assets/Alert-2cd22061.js +0 -2
  83. package/dist/assets/Alert-2cd22061.js.br +0 -0
  84. package/dist/assets/Clickable-19c9ecdc.js +0 -2
  85. package/dist/assets/Clickable-19c9ecdc.js.br +0 -0
  86. package/dist/assets/GoogleNotice-83805aa2.js +0 -2
  87. package/dist/assets/GoogleNotice-83805aa2.js.br +0 -0
  88. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js +0 -2
  89. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js.br +0 -0
  90. package/dist/assets/Icon-6c933148.js +0 -2
  91. package/dist/assets/Icon-6c933148.js.br +0 -0
  92. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js +0 -2
  93. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js.br +0 -0
  94. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js +0 -2
  95. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js.br +0 -0
  96. package/dist/assets/ThankYou-29820212.js +0 -5
  97. package/dist/assets/ThankYou-29820212.js.br +0 -0
  98. package/dist/assets/applyGiftCard-39571f2e.js +0 -2
  99. package/dist/assets/applyGiftCard-39571f2e.js.br +0 -0
  100. package/dist/assets/event-79c562c0.js +0 -2
  101. package/dist/assets/event-79c562c0.js.br +0 -0
  102. package/dist/assets/payment-a3a9b5dd.js +0 -2
  103. package/dist/assets/payment-a3a9b5dd.js.br +0 -0
  104. package/dist/assets/style.css +0 -1
  105. package/dist/assets/style.css.br +0 -0
  106. package/dist/assets/vendor-65ee0d78.js +0 -889
  107. package/dist/assets/vendor-65ee0d78.js.br +0 -0
  108. package/dist/availability.js +0 -2
  109. package/dist/availability.js.br +0 -0
  110. package/dist/event.js +0 -2
  111. package/dist/event.js.br +0 -0
  112. package/dist/gift-card-validation.js +0 -2
  113. package/dist/gift-card-validation.js.br +0 -0
  114. package/dist/gift-card.js +0 -2
  115. package/dist/gift-card.js.br +0 -0
  116. package/dist/hotel.js +0 -2
  117. package/dist/hotel.js.br +0 -0
  118. package/dist/manifest.json +0 -231
  119. package/dist/manifest.json.br +0 -0
  120. package/dist/navigation.js +0 -2
  121. package/dist/navigation.js.br +0 -0
  122. package/dist/polyfill.js +0 -2
@@ -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
@@ -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