@konnectio/core 4.0.22 → 4.0.24
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-83fef1c1.cjs → ActionField-8ee667bd.cjs} +1 -1
- package/dist/{ActionField-4c47ccce.js → ActionField-b2ee8f91.js} +2 -2
- package/dist/ActionField-b2ee8f91.js.br +0 -0
- package/dist/AvailabilitySkeleton-16a3be88.js +227 -0
- package/dist/AvailabilitySkeleton-16a3be88.js.br +0 -0
- package/dist/AvailabilitySkeleton-83a2e2c6.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs → DateField.vue_vue_type_style_index_0_lang-4caf9daf.cjs} +2 -2
- package/dist/{DateField.vue_vue_type_style_index_0_lang-6242a55d.js → DateField.vue_vue_type_style_index_0_lang-a4abbe86.js} +6 -6
- package/dist/DateField.vue_vue_type_style_index_0_lang-a4abbe86.js.br +0 -0
- package/dist/{Field-72b689c4.cjs → Field-877b4588.cjs} +1 -1
- package/dist/{Field-d3e306c7.js → Field-f5f98938.js} +2 -2
- package/dist/Field-f5f98938.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js → NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs → NumberField.vue_vue_type_script_setup_true_lang-f72da2f4.cjs} +1 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-727c44d8.cjs +855 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-b53d9177.js → SelectField.vue_vue_type_style_index_0_lang-f136675d.js} +8594 -8260
- package/dist/SelectField.vue_vue_type_style_index_0_lang-f136675d.js.br +0 -0
- package/dist/{ThankYou-ebdebf4e.js → ThankYou-58baa41d.js} +11 -11
- package/dist/ThankYou-58baa41d.js.br +0 -0
- package/dist/{ThankYou-98807e93.cjs → ThankYou-f027d958.cjs} +2 -2
- package/dist/{_-07462fdc.cjs → _-573e46fc.cjs} +1 -1
- package/dist/{_-f5b07fc1.js → _-e0a2fd6e.js} +1 -1
- package/dist/_-e0a2fd6e.js.br +0 -0
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +62 -64
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-5c513f23.cjs → event-01f44344.cjs} +1 -1
- package/dist/{event-136853fa.js → event-3e48b8ad.js} +9 -9
- package/dist/event-3e48b8ad.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +18 -18
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +12 -12
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1640 -1674
- package/dist/hotel.js.br +0 -0
- package/dist/index-68332b8a.cjs +1 -0
- package/dist/index-931022d3.js +405 -0
- package/dist/index-931022d3.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +1 -1
- package/dist/store/payment.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ActionField-4c47ccce.js.br +0 -0
- package/dist/AvailabilitySkeleton-0e77a3ad.cjs +0 -1
- package/dist/AvailabilitySkeleton-6ba16e6b.js +0 -223
- package/dist/AvailabilitySkeleton-6ba16e6b.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-6242a55d.js.br +0 -0
- package/dist/Field-d3e306c7.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b53d9177.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs +0 -855
- package/dist/ThankYou-ebdebf4e.js.br +0 -0
- package/dist/_-f5b07fc1.js.br +0 -0
- package/dist/event-136853fa.js.br +0 -0
- package/dist/index-c407bc6f.cjs +0 -1
- package/dist/index-eab5c85f.js +0 -664
- package/dist/index-eab5c85f.js.br +0 -0
- package/dist/store/tracking.d.ts +0 -16
package/dist/index-eab5c85f.js
DELETED
|
@@ -1,664 +0,0 @@
|
|
|
1
|
-
import { ah as isPlainObject, ai as nextTick, aj as isFunction, h as defineComponent, j as ranId, r as ref, o as onMounted, k as openBlock, l as createBlock, w as withCtx, x as createBaseVNode, m as createVNode, n as unref, T as TextField, I as InputField, _ as _export_sfc, ak as mergeProps, v as normalizeClass, al as normalizeStyle, am as withKeys, q as createElementBlock, A as toDisplayString, t as createCommentVNode, z as useI18n, a5 as createTextVNode, s as storeToRefs, a as useUtilityStore, R as PaymentGateway, L as pushScopeId, M as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
|
|
2
|
-
function _defineProperty(e, t, n) {
|
|
3
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
4
|
-
value: n,
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
configurable: !0,
|
|
7
|
-
writable: !0
|
|
8
|
-
}) : e[t] = n, e;
|
|
9
|
-
}
|
|
10
|
-
function ownKeys(e, t) {
|
|
11
|
-
var n = Object.keys(e);
|
|
12
|
-
if (Object.getOwnPropertySymbols) {
|
|
13
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
14
|
-
t && (i = i.filter(function(s) {
|
|
15
|
-
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
16
|
-
})), n.push.apply(n, i);
|
|
17
|
-
}
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
function _objectSpread2(e) {
|
|
21
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
22
|
-
var n = arguments[t] != null ? arguments[t] : {};
|
|
23
|
-
t % 2 ? ownKeys(Object(n), !0).forEach(function(i) {
|
|
24
|
-
_defineProperty(e, i, n[i]);
|
|
25
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ownKeys(Object(n)).forEach(function(i) {
|
|
26
|
-
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return e;
|
|
30
|
-
}
|
|
31
|
-
var load = function(t) {
|
|
32
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
33
|
-
return new Promise(function(i, s) {
|
|
34
|
-
if (!(typeof document > "u")) {
|
|
35
|
-
var r = document.head || document.getElementsByTagName("head")[0], l = document.createElement("script");
|
|
36
|
-
if (l.async = !0, l.src = t, l.defer = n.defer, n.preconnectOrigin) {
|
|
37
|
-
var u = document.createElement("link");
|
|
38
|
-
u.href = n.preconnectOrigin, u.rel = "preconnect", r.appendChild(u);
|
|
39
|
-
}
|
|
40
|
-
r.appendChild(l), l.onload = i, l.onerror = s;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}, mergeDeep = function e(t) {
|
|
44
|
-
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
45
|
-
i[s - 1] = arguments[s];
|
|
46
|
-
if (!i.length)
|
|
47
|
-
return t;
|
|
48
|
-
var r = i.shift();
|
|
49
|
-
if (!(!isPlainObject(t) || !isPlainObject(r))) {
|
|
50
|
-
for (var l in r)
|
|
51
|
-
isPlainObject(r[l]) ? (t[l] || Object.assign(t, _defineProperty({}, l, {})), e(t[l], r[l])) : Object.assign(t, _defineProperty({}, l, r[l]));
|
|
52
|
-
return e.apply(void 0, [t].concat(i));
|
|
53
|
-
}
|
|
54
|
-
}, isBrowser = function() {
|
|
55
|
-
return !(typeof window > "u" || typeof document > "u");
|
|
56
|
-
}, warn = function(t) {
|
|
57
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
58
|
-
isBrowser();
|
|
59
|
-
}, validateScreenviewShape = function() {
|
|
60
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
61
|
-
return warn('Missing "appName" property inside the plugin options.', t.app_name == null), warn('Missing "name" property in the route.', t.screen_name == null), t;
|
|
62
|
-
};
|
|
63
|
-
function getPathWithBase() {
|
|
64
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", n = e.split("/"), i = t.split("/");
|
|
65
|
-
return n[0] === "" && t[t.length - 1] === "/" && n.shift(), i.join("/") + n.join("/");
|
|
66
|
-
}
|
|
67
|
-
var getDefaultParams = function() {
|
|
68
|
-
return {
|
|
69
|
-
bootstrap: !0,
|
|
70
|
-
onReady: null,
|
|
71
|
-
onError: null,
|
|
72
|
-
onBeforeTrack: null,
|
|
73
|
-
onAfterTrack: null,
|
|
74
|
-
pageTrackerTemplate: null,
|
|
75
|
-
customResourceURL: "https://www.googletagmanager.com/gtag/js",
|
|
76
|
-
customPreconnectOrigin: "https://www.googletagmanager.com",
|
|
77
|
-
deferScriptLoad: !1,
|
|
78
|
-
pageTrackerExcludedRoutes: [],
|
|
79
|
-
pageTrackerEnabled: !0,
|
|
80
|
-
enabled: !0,
|
|
81
|
-
disableScriptLoad: !1,
|
|
82
|
-
pageTrackerScreenviewEnabled: !1,
|
|
83
|
-
appName: null,
|
|
84
|
-
pageTrackerUseFullPath: !1,
|
|
85
|
-
pageTrackerPrependBase: !0,
|
|
86
|
-
pageTrackerSkipSamePath: !0,
|
|
87
|
-
globalDataLayerName: "dataLayer",
|
|
88
|
-
globalObjectName: "gtag",
|
|
89
|
-
defaultGroupName: "default",
|
|
90
|
-
includes: null,
|
|
91
|
-
config: {
|
|
92
|
-
id: null,
|
|
93
|
-
params: {
|
|
94
|
-
send_page_view: !1
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}, params = {}, setOptions = function() {
|
|
99
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = getDefaultParams();
|
|
100
|
-
params = mergeDeep(n, t);
|
|
101
|
-
}, getOptions = function() {
|
|
102
|
-
return params;
|
|
103
|
-
}, query = function() {
|
|
104
|
-
var e, t = getOptions(), n = t.globalObjectName;
|
|
105
|
-
!isBrowser() || typeof window[n] > "u" || (e = window)[n].apply(e, arguments);
|
|
106
|
-
}, config = function() {
|
|
107
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
108
|
-
t[n] = arguments[n];
|
|
109
|
-
var i = getOptions(), s = i.config, r = i.includes;
|
|
110
|
-
query.apply(void 0, ["config", s.id].concat(t)), Array.isArray(r) && r.forEach(function(l) {
|
|
111
|
-
query.apply(void 0, ["config", l.id].concat(t));
|
|
112
|
-
});
|
|
113
|
-
}, assignGlobalProperty = function(t, n) {
|
|
114
|
-
isBrowser() && (window["ga-disable-".concat(t)] = n);
|
|
115
|
-
}, disable = function() {
|
|
116
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = getOptions(), n = t.config, i = t.includes;
|
|
117
|
-
assignGlobalProperty(n.id, e), Array.isArray(i) && i.forEach(function(s) {
|
|
118
|
-
return assignGlobalProperty(s.id, e);
|
|
119
|
-
});
|
|
120
|
-
}, optOut = function() {
|
|
121
|
-
disable(!0);
|
|
122
|
-
}, optIn = function() {
|
|
123
|
-
disable(!1);
|
|
124
|
-
}, router, setRouter = function(t) {
|
|
125
|
-
router = t;
|
|
126
|
-
}, getRouter = function() {
|
|
127
|
-
return router;
|
|
128
|
-
}, event = function(e) {
|
|
129
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.includes, s = n.defaultGroupName;
|
|
130
|
-
t.send_to == null && Array.isArray(i) && i.length && (t.send_to = i.map(function(r) {
|
|
131
|
-
return r.id;
|
|
132
|
-
}).concat(s)), query("event", e, t);
|
|
133
|
-
}, pageview = function(e) {
|
|
134
|
-
if (isBrowser()) {
|
|
135
|
-
var t;
|
|
136
|
-
if (typeof e == "string")
|
|
137
|
-
t = {
|
|
138
|
-
page_path: e
|
|
139
|
-
};
|
|
140
|
-
else if (e.path || e.fullPath) {
|
|
141
|
-
var n = getOptions(), i = n.pageTrackerUseFullPath, s = n.pageTrackerPrependBase, r = getRouter(), l = r && r.options.base, u = i ? e.fullPath : e.path;
|
|
142
|
-
t = _objectSpread2(_objectSpread2({}, e.name && {
|
|
143
|
-
page_title: e.name
|
|
144
|
-
}), {}, {
|
|
145
|
-
page_path: s ? getPathWithBase(u, l) : u
|
|
146
|
-
});
|
|
147
|
-
} else
|
|
148
|
-
t = e;
|
|
149
|
-
t.page_location == null && (t.page_location = window.location.href), t.send_page_view == null && (t.send_page_view = !0), event("page_view", t);
|
|
150
|
-
}
|
|
151
|
-
}, screenview = function(e) {
|
|
152
|
-
var t = getOptions(), n = t.appName;
|
|
153
|
-
if (e) {
|
|
154
|
-
var i;
|
|
155
|
-
typeof e == "string" ? i = {
|
|
156
|
-
screen_name: e
|
|
157
|
-
} : i = e, i.app_name = i.app_name || n, event("screen_view", i);
|
|
158
|
-
}
|
|
159
|
-
}, exception = function() {
|
|
160
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
161
|
-
t[n] = arguments[n];
|
|
162
|
-
event.apply(void 0, ["exception"].concat(t));
|
|
163
|
-
}, linker = function(e) {
|
|
164
|
-
config("linker", e);
|
|
165
|
-
}, time = function(e) {
|
|
166
|
-
event("timing_complete", e);
|
|
167
|
-
}, set = function() {
|
|
168
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
169
|
-
t[n] = arguments[n];
|
|
170
|
-
query.apply(void 0, ["set"].concat(t));
|
|
171
|
-
}, refund = function() {
|
|
172
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
173
|
-
t[n] = arguments[n];
|
|
174
|
-
event.apply(void 0, ["refund"].concat(t));
|
|
175
|
-
}, purchase = function(e) {
|
|
176
|
-
event("purchase", e);
|
|
177
|
-
}, customMap = function(e) {
|
|
178
|
-
config({
|
|
179
|
-
custom_map: e
|
|
180
|
-
});
|
|
181
|
-
}, api = /* @__PURE__ */ Object.freeze({
|
|
182
|
-
__proto__: null,
|
|
183
|
-
query,
|
|
184
|
-
config,
|
|
185
|
-
optOut,
|
|
186
|
-
optIn,
|
|
187
|
-
pageview,
|
|
188
|
-
screenview,
|
|
189
|
-
exception,
|
|
190
|
-
linker,
|
|
191
|
-
time,
|
|
192
|
-
set,
|
|
193
|
-
refund,
|
|
194
|
-
purchase,
|
|
195
|
-
customMap,
|
|
196
|
-
event
|
|
197
|
-
}), attachApi = function(t) {
|
|
198
|
-
t.config.globalProperties.$gtag = api;
|
|
199
|
-
}, registerGlobals = function() {
|
|
200
|
-
if (isBrowser()) {
|
|
201
|
-
var e = getOptions(), t = e.enabled, n = e.globalObjectName, i = e.globalDataLayerName;
|
|
202
|
-
return window[n] == null && (window[i] = window[i] || [], window[n] = function() {
|
|
203
|
-
window[i].push(arguments);
|
|
204
|
-
}), window[n]("js", /* @__PURE__ */ new Date()), t || optOut(), window[n];
|
|
205
|
-
}
|
|
206
|
-
}, mergeDefaultParams = function(t) {
|
|
207
|
-
return _objectSpread2({
|
|
208
|
-
send_page_view: !1
|
|
209
|
-
}, t);
|
|
210
|
-
}, addConfiguration = function() {
|
|
211
|
-
var e = getOptions(), t = e.config, n = e.includes;
|
|
212
|
-
query("config", t.id, mergeDefaultParams(t.params)), Array.isArray(n) && n.forEach(function(i) {
|
|
213
|
-
query("config", i.id, mergeDefaultParams(i.params));
|
|
214
|
-
});
|
|
215
|
-
}, track = function() {
|
|
216
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.appName, s = n.pageTrackerTemplate, r = n.pageTrackerScreenviewEnabled, l = n.pageTrackerSkipSamePath;
|
|
217
|
-
if (!(l && e.path === t.path)) {
|
|
218
|
-
var u = e;
|
|
219
|
-
if (isFunction(s) ? u = s(e, t) : r && (u = validateScreenviewShape({
|
|
220
|
-
app_name: i,
|
|
221
|
-
screen_name: e.name
|
|
222
|
-
})), r) {
|
|
223
|
-
screenview(u);
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
pageview(u);
|
|
227
|
-
}
|
|
228
|
-
}, isRouteExcluded = function(t) {
|
|
229
|
-
var n = getOptions(), i = n.pageTrackerExcludedRoutes;
|
|
230
|
-
return i.includes(t.path) || i.includes(t.name);
|
|
231
|
-
}, addRoutesTracker = function() {
|
|
232
|
-
var e = getOptions(), t = e.onBeforeTrack, n = e.onAfterTrack, i = getRouter();
|
|
233
|
-
i.isReady().then(function() {
|
|
234
|
-
nextTick().then(function() {
|
|
235
|
-
var s = i.currentRoute;
|
|
236
|
-
addConfiguration(), !isRouteExcluded(s.value) && track(s.value);
|
|
237
|
-
}), i.afterEach(function(s, r) {
|
|
238
|
-
nextTick().then(function() {
|
|
239
|
-
isRouteExcluded(s) || (isFunction(t) && t(s, r), track(s, r), isFunction(n) && n(s, r));
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
}, bootstrap = function() {
|
|
244
|
-
var e = getOptions(), t = e.onReady, n = e.onError, i = e.globalObjectName, s = e.globalDataLayerName, r = e.config, l = e.customResourceURL, u = e.customPreconnectOrigin, p = e.deferScriptLoad, d = e.pageTrackerEnabled, f = e.disableScriptLoad, m = !!(d && getRouter());
|
|
245
|
-
if (registerGlobals(), m ? addRoutesTracker() : addConfiguration(), !f)
|
|
246
|
-
return load("".concat(l, "?id=").concat(r.id, "&l=").concat(s), {
|
|
247
|
-
preconnectOrigin: u,
|
|
248
|
-
defer: p
|
|
249
|
-
}).then(function() {
|
|
250
|
-
t && t(window[i]);
|
|
251
|
-
}).catch(function(h) {
|
|
252
|
-
return n && n(h), h;
|
|
253
|
-
});
|
|
254
|
-
}, install = function(t) {
|
|
255
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 ? arguments[2] : void 0;
|
|
256
|
-
attachApi(t), setOptions(n), setRouter(i), getOptions().bootstrap && bootstrap();
|
|
257
|
-
};
|
|
258
|
-
const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
259
|
-
__name: "PhoneField",
|
|
260
|
-
props: {
|
|
261
|
-
modelValue: {},
|
|
262
|
-
label: {},
|
|
263
|
-
id: {},
|
|
264
|
-
placeholder: {},
|
|
265
|
-
icon: { default: "phone-office" },
|
|
266
|
-
iconColor: {},
|
|
267
|
-
iconType: { default: "fal" },
|
|
268
|
-
required: { type: Boolean, default: !1 },
|
|
269
|
-
readonly: { type: Boolean, default: !1 },
|
|
270
|
-
inputStyle: {}
|
|
271
|
-
},
|
|
272
|
-
emits: ["update:modelValue"],
|
|
273
|
-
setup(e, { emit: t }) {
|
|
274
|
-
const n = t, i = e, s = i.id || ranId(), r = ref("+45"), l = ref("");
|
|
275
|
-
function u() {
|
|
276
|
-
n("update:modelValue", `${r.value} ${l.value}`);
|
|
277
|
-
}
|
|
278
|
-
return onMounted(() => {
|
|
279
|
-
if (i.modelValue) {
|
|
280
|
-
const p = i.modelValue.split(" ");
|
|
281
|
-
r.value = p[0], l.value = p[1];
|
|
282
|
-
}
|
|
283
|
-
}), (p, d) => (openBlock(), createBlock(InputField, {
|
|
284
|
-
label: p.label,
|
|
285
|
-
id: unref(s),
|
|
286
|
-
type: "phone",
|
|
287
|
-
required: p.required,
|
|
288
|
-
readonly: p.readonly
|
|
289
|
-
}, {
|
|
290
|
-
default: withCtx(() => [
|
|
291
|
-
createBaseVNode("div", _hoisted_1$3, [
|
|
292
|
-
createVNode(TextField, {
|
|
293
|
-
modelValue: r.value,
|
|
294
|
-
"onUpdate:modelValue": d[0] || (d[0] = (f) => r.value = f),
|
|
295
|
-
type: "text",
|
|
296
|
-
id: unref(ranId)(),
|
|
297
|
-
name: "phone-code",
|
|
298
|
-
autocomplete: "tel-country-code",
|
|
299
|
-
icon: p.icon,
|
|
300
|
-
"icon-color": p.iconColor,
|
|
301
|
-
"icon-type": p.iconType,
|
|
302
|
-
placeholder: "+45",
|
|
303
|
-
required: p.required,
|
|
304
|
-
readonly: p.readonly,
|
|
305
|
-
"input-style": p.inputStyle,
|
|
306
|
-
onInput: d[1] || (d[1] = (f) => u())
|
|
307
|
-
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
|
|
308
|
-
createVNode(TextField, {
|
|
309
|
-
modelValue: l.value,
|
|
310
|
-
"onUpdate:modelValue": d[2] || (d[2] = (f) => l.value = f),
|
|
311
|
-
type: "number",
|
|
312
|
-
name: "phone",
|
|
313
|
-
autocomplete: "tel-national",
|
|
314
|
-
id: unref(s),
|
|
315
|
-
placeholder: p.placeholder,
|
|
316
|
-
required: p.required,
|
|
317
|
-
readonly: p.readonly,
|
|
318
|
-
"input-style": p.inputStyle,
|
|
319
|
-
onInput: d[3] || (d[3] = (f) => u())
|
|
320
|
-
}, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
|
|
321
|
-
])
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["label", "id", "required", "readonly"]));
|
|
325
|
-
}
|
|
326
|
-
}), PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang = "", PhoneField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-5cd094ab"]]), _hoisted_1$2 = ["required", "type", "name", "readonly", "disabled", "value", "checked"], _hoisted_2$2 = ["data-test"], _hoisted_3 = { key: 0 }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
327
|
-
__name: "Checkbox",
|
|
328
|
-
props: {
|
|
329
|
-
modelValue: { type: [String, Boolean, Number] },
|
|
330
|
-
numeric: { type: Boolean, default: !1 },
|
|
331
|
-
checked: { type: Boolean, default: !1 },
|
|
332
|
-
label: {},
|
|
333
|
-
price: {},
|
|
334
|
-
name: {},
|
|
335
|
-
readonly: { type: Boolean, default: !1 },
|
|
336
|
-
type: { default: "checkbox" },
|
|
337
|
-
required: { type: Boolean, default: !1 },
|
|
338
|
-
inputStyle: {},
|
|
339
|
-
val: {}
|
|
340
|
-
},
|
|
341
|
-
emits: ["update:modelValue"],
|
|
342
|
-
setup(e, { emit: t }) {
|
|
343
|
-
const n = e, i = t;
|
|
344
|
-
function s() {
|
|
345
|
-
n.readonly !== !0 && i(
|
|
346
|
-
"update:modelValue",
|
|
347
|
-
n.type === "radio" ? n.val : n.numeric ? n.modelValue ? 0 : 1 : !n.modelValue
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
return (r, l) => (openBlock(), createBlock(InputField, {
|
|
351
|
-
required: r.required,
|
|
352
|
-
type: r.type,
|
|
353
|
-
readonly: r.readonly
|
|
354
|
-
}, {
|
|
355
|
-
default: withCtx(() => [
|
|
356
|
-
createBaseVNode("label", {
|
|
357
|
-
class: normalizeClass([
|
|
358
|
-
"fresh-booking-click-box-container",
|
|
359
|
-
{ "is-readonly": r.readonly },
|
|
360
|
-
{ "has-label": r.label },
|
|
361
|
-
r.type === "radio" ? "radio" : "checkbox"
|
|
362
|
-
])
|
|
363
|
-
}, [
|
|
364
|
-
createBaseVNode("input", mergeProps(r.$attrs, {
|
|
365
|
-
required: !!r.required,
|
|
366
|
-
type: r.type,
|
|
367
|
-
name: r.name,
|
|
368
|
-
class: "hidden",
|
|
369
|
-
readonly: !!r.readonly,
|
|
370
|
-
disabled: !!r.readonly,
|
|
371
|
-
value: r.type === "radio" ? r.val : r.modelValue,
|
|
372
|
-
checked: r.type === "radio" ? r.val === r.modelValue : !!r.modelValue,
|
|
373
|
-
onChange: l[0] || (l[0] = (u) => s())
|
|
374
|
-
}), null, 16, _hoisted_1$2),
|
|
375
|
-
createBaseVNode("div", {
|
|
376
|
-
class: normalizeClass([
|
|
377
|
-
"fresh-booking-click-box",
|
|
378
|
-
{ checked: r.type === "radio" ? r.val === r.modelValue : !!r.modelValue }
|
|
379
|
-
]),
|
|
380
|
-
tabindex: "0",
|
|
381
|
-
style: normalizeStyle(r.inputStyle),
|
|
382
|
-
"data-test": r.name,
|
|
383
|
-
onKeyup: l[1] || (l[1] = withKeys((u) => s(), ["enter"]))
|
|
384
|
-
}, null, 46, _hoisted_2$2),
|
|
385
|
-
r.label ? (openBlock(), createElementBlock("div", {
|
|
386
|
-
key: 0,
|
|
387
|
-
class: normalizeClass(["fresh-booking-click-box-label", { "with-price": r.price }])
|
|
388
|
-
}, [
|
|
389
|
-
createBaseVNode("span", null, toDisplayString(r.label), 1),
|
|
390
|
-
r.price ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(r.price), 1)) : createCommentVNode("", !0)
|
|
391
|
-
], 2)) : createCommentVNode("", !0)
|
|
392
|
-
], 2)
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
}, 8, ["required", "type", "readonly"]));
|
|
396
|
-
}
|
|
397
|
-
}), Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang = "", Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7ef656cb"]]), _hoisted_1$1 = { href: "https://policies.google.com/privacy" }, _hoisted_2$1 = { href: "https://policies.google.com/terms" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
398
|
-
__name: "GoogleNotice",
|
|
399
|
-
setup(e) {
|
|
400
|
-
const { t } = useI18n();
|
|
401
|
-
return (n, i) => (openBlock(), createElementBlock("span", null, [
|
|
402
|
-
createTextVNode(toDisplayString(unref(t)("googleNotice")) + " ", 1),
|
|
403
|
-
createBaseVNode("a", _hoisted_1$1, toDisplayString(unref(t)("googlePrivacyPolicy")), 1),
|
|
404
|
-
createTextVNode(" " + toDisplayString(unref(t)("googleAnd")) + " ", 1),
|
|
405
|
-
createBaseVNode("a", _hoisted_2$1, toDisplayString(unref(t)("googleTOS")), 1),
|
|
406
|
-
createTextVNode(" " + toDisplayString(unref(t)("googleApply")) + ". ", 1)
|
|
407
|
-
]));
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
function block0(e) {
|
|
411
|
-
const t = e;
|
|
412
|
-
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
413
|
-
locale: "",
|
|
414
|
-
resource: {
|
|
415
|
-
da: {
|
|
416
|
-
googleNotice: (n) => {
|
|
417
|
-
const { normalize: i } = n;
|
|
418
|
-
return i(["Denne side er beskyttet af reCAPTCHA og Google's"]);
|
|
419
|
-
},
|
|
420
|
-
googlePrivacyPolicy: (n) => {
|
|
421
|
-
const { normalize: i } = n;
|
|
422
|
-
return i(["Privatlivspolitik"]);
|
|
423
|
-
},
|
|
424
|
-
googleAnd: (n) => {
|
|
425
|
-
const { normalize: i } = n;
|
|
426
|
-
return i(["og"]);
|
|
427
|
-
},
|
|
428
|
-
googleTOS: (n) => {
|
|
429
|
-
const { normalize: i } = n;
|
|
430
|
-
return i(["Servicevilkår"]);
|
|
431
|
-
},
|
|
432
|
-
googleApply: (n) => {
|
|
433
|
-
const { normalize: i } = n;
|
|
434
|
-
return i(["er gældende"]);
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
en: {
|
|
438
|
-
googleNotice: (n) => {
|
|
439
|
-
const { normalize: i } = n;
|
|
440
|
-
return i(["This site is protected by reCAPTCHA and the Google"]);
|
|
441
|
-
},
|
|
442
|
-
googlePrivacyPolicy: (n) => {
|
|
443
|
-
const { normalize: i } = n;
|
|
444
|
-
return i(["Privacy Policy"]);
|
|
445
|
-
},
|
|
446
|
-
googleAnd: (n) => {
|
|
447
|
-
const { normalize: i } = n;
|
|
448
|
-
return i(["and"]);
|
|
449
|
-
},
|
|
450
|
-
googleTOS: (n) => {
|
|
451
|
-
const { normalize: i } = n;
|
|
452
|
-
return i(["Terms of Service"]);
|
|
453
|
-
},
|
|
454
|
-
googleApply: (n) => {
|
|
455
|
-
const { normalize: i } = n;
|
|
456
|
-
return i(["apply"]);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
typeof block0 == "function" && block0(_sfc_main$1);
|
|
463
|
-
const _withScopeId = (e) => (pushScopeId("data-v-340cb9ce"), e = e(), popScopeId(), e), _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { id: "fresh-booking-payment-checkout" }, null, -1)), _hoisted_2 = [
|
|
464
|
-
_hoisted_1
|
|
465
|
-
], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
466
|
-
__name: "CheckoutWindow",
|
|
467
|
-
setup(e) {
|
|
468
|
-
const { paymentGatewayId: t } = storeToRefs(useUtilityStore());
|
|
469
|
-
return onMounted(() => {
|
|
470
|
-
const n = document.createElement("script"), i = document.createElement("script");
|
|
471
|
-
n.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), i.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(n), document.head.appendChild(i);
|
|
472
|
-
}), (n, i) => (openBlock(), createElementBlock("div", null, [
|
|
473
|
-
createBaseVNode("div", {
|
|
474
|
-
id: "fresh-booking-payment-checkout-wrapper",
|
|
475
|
-
class: normalizeClass({ reePay: unref(t) === unref(PaymentGateway).ReePay })
|
|
476
|
-
}, _hoisted_2, 2)
|
|
477
|
-
]));
|
|
478
|
-
}
|
|
479
|
-
}), CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang = "", CheckoutWindow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-340cb9ce"]]);
|
|
480
|
-
var a = Object.defineProperty, c = (e, t, n) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t, n) => (c(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
481
|
-
const namespace = "@@vue3-sticky-directive", events = [
|
|
482
|
-
"resize",
|
|
483
|
-
"scroll",
|
|
484
|
-
"touchstart",
|
|
485
|
-
"touchmove",
|
|
486
|
-
"touchend",
|
|
487
|
-
"pageshow",
|
|
488
|
-
"load"
|
|
489
|
-
], batchStyle = (e, t = {}, n = {}) => {
|
|
490
|
-
for (let i in t)
|
|
491
|
-
e.style[i] = t[i];
|
|
492
|
-
for (let i in n)
|
|
493
|
-
n[i] && !e.classList.contains(i) ? e.classList.add(i) : !n[i] && e.classList.contains(i) && e.classList.remove(i);
|
|
494
|
-
};
|
|
495
|
-
class Sticky {
|
|
496
|
-
constructor(e, t) {
|
|
497
|
-
o(this, "el"), o(this, "vm"), o(this, "unSubscribers"), o(this, "isPending"), o(this, "state"), o(this, "lastState"), o(this, "options"), o(this, "placeholderEl"), o(this, "containerEl"), this.el = e, this.vm = t, this.unSubscribers = [], this.isPending = !1, this.state = {
|
|
498
|
-
isTopSticky: null,
|
|
499
|
-
isBottomSticky: null,
|
|
500
|
-
height: null,
|
|
501
|
-
width: null,
|
|
502
|
-
xOffset: null
|
|
503
|
-
}, this.lastState = {
|
|
504
|
-
top: null,
|
|
505
|
-
bottom: null,
|
|
506
|
-
sticked: !1
|
|
507
|
-
};
|
|
508
|
-
const n = this.getAttribute("sticky-offset") || {}, i = this.getAttribute("sticky-side") || "top", s = this.getAttribute("sticky-z-index") || "10", r = this.getAttribute("on-stick") || null;
|
|
509
|
-
this.options = {
|
|
510
|
-
topOffset: Number(n.top) || 0,
|
|
511
|
-
bottomOffset: Number(n.bottom) || 0,
|
|
512
|
-
shouldTopSticky: i === "top" || i === "both",
|
|
513
|
-
shouldBottomSticky: i === "bottom" || i === "both",
|
|
514
|
-
zIndex: s,
|
|
515
|
-
onStick: r
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
doBind() {
|
|
519
|
-
if (this.unSubscribers.length > 0)
|
|
520
|
-
return;
|
|
521
|
-
const { el: e, vm: t } = this;
|
|
522
|
-
t.$nextTick(() => {
|
|
523
|
-
this.placeholderEl = document.createElement("div"), this.containerEl = this.getContainerEl(), e.parentElement.insertBefore(this.placeholderEl, e), events.forEach((n) => {
|
|
524
|
-
const i = this.update.bind(this);
|
|
525
|
-
this.unSubscribers.push(() => window.removeEventListener(n, i)), this.unSubscribers.push(() => this.containerEl.removeEventListener(n, i)), window.addEventListener(n, i, { passive: !0 }), this.containerEl.addEventListener(n, i, { passive: !0 });
|
|
526
|
-
});
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
doUnbind() {
|
|
530
|
-
this.unSubscribers.forEach((e) => e()), this.unSubscribers = [], this.resetElement();
|
|
531
|
-
}
|
|
532
|
-
update() {
|
|
533
|
-
this.isPending || (requestAnimationFrame(() => {
|
|
534
|
-
this.isPending = !1, this.recomputeState(), this.updateElements();
|
|
535
|
-
}), this.isPending = !0);
|
|
536
|
-
}
|
|
537
|
-
isTopSticky() {
|
|
538
|
-
if (!this.options.shouldTopSticky)
|
|
539
|
-
return !1;
|
|
540
|
-
const e = this.state.placeholderElRect.top, t = this.state.containerElRect.bottom, n = this.options.topOffset, i = this.options.bottomOffset;
|
|
541
|
-
return e <= n && t >= i;
|
|
542
|
-
}
|
|
543
|
-
isBottomSticky() {
|
|
544
|
-
if (!this.options.shouldBottomSticky)
|
|
545
|
-
return !1;
|
|
546
|
-
const e = window.innerHeight - this.state.placeholderElRect.top - this.state.height, t = window.innerHeight - this.state.containerElRect.top, n = this.options.topOffset, i = this.options.bottomOffset;
|
|
547
|
-
return e <= i && t >= n;
|
|
548
|
-
}
|
|
549
|
-
recomputeState() {
|
|
550
|
-
this.state = Object.assign({}, this.state, {
|
|
551
|
-
height: this.getHeight(),
|
|
552
|
-
width: this.getWidth(),
|
|
553
|
-
xOffset: this.getXOffset(),
|
|
554
|
-
placeholderElRect: this.getPlaceholderElRect(),
|
|
555
|
-
containerElRect: this.getContainerElRect()
|
|
556
|
-
}), this.state.isTopSticky = this.isTopSticky(), this.state.isBottomSticky = this.isBottomSticky();
|
|
557
|
-
}
|
|
558
|
-
fireEvents() {
|
|
559
|
-
typeof this.options.onStick == "function" && (this.lastState.top !== this.state.isTopSticky || this.lastState.bottom !== this.state.isBottomSticky || this.lastState.sticked !== (this.state.isTopSticky || this.state.isBottomSticky)) && (this.lastState = {
|
|
560
|
-
top: this.state.isTopSticky,
|
|
561
|
-
bottom: this.state.isBottomSticky,
|
|
562
|
-
sticked: this.state.isBottomSticky || this.state.isTopSticky
|
|
563
|
-
}, this.options.onStick(this.lastState));
|
|
564
|
-
}
|
|
565
|
-
updateElements() {
|
|
566
|
-
const e = {
|
|
567
|
-
paddingTop: 0
|
|
568
|
-
}, t = {
|
|
569
|
-
position: "static",
|
|
570
|
-
top: "auto",
|
|
571
|
-
bottom: "auto",
|
|
572
|
-
left: "auto",
|
|
573
|
-
width: "auto",
|
|
574
|
-
zIndex: this.options.zIndex
|
|
575
|
-
}, n = {
|
|
576
|
-
"vue-sticky-placeholder": !0
|
|
577
|
-
}, i = {
|
|
578
|
-
"vue-sticky-el": !0,
|
|
579
|
-
"top-sticky": !1,
|
|
580
|
-
"bottom-sticky": !1
|
|
581
|
-
};
|
|
582
|
-
if (this.state.isTopSticky) {
|
|
583
|
-
t.position = "fixed", t.top = this.options.topOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
|
|
584
|
-
const s = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
|
|
585
|
-
s < 0 && (t.top = s + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
|
|
586
|
-
} else if (this.state.isBottomSticky) {
|
|
587
|
-
t.position = "fixed", t.bottom = this.options.bottomOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
|
|
588
|
-
const s = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
|
|
589
|
-
s < 0 && (t.bottom = s + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
|
|
590
|
-
} else
|
|
591
|
-
e.paddingTop = 0;
|
|
592
|
-
batchStyle(this.el, t, i), batchStyle(this.placeholderEl, e, n), this.fireEvents();
|
|
593
|
-
}
|
|
594
|
-
resetElement() {
|
|
595
|
-
["position", "top", "bottom", "left", "width", "zIndex"].forEach((t) => {
|
|
596
|
-
this.el.style.removeProperty(t);
|
|
597
|
-
}), this.el.classList.remove("bottom-sticky", "top-sticky");
|
|
598
|
-
const { parentElement: e } = this.placeholderEl;
|
|
599
|
-
e && e.removeChild(this.placeholderEl);
|
|
600
|
-
}
|
|
601
|
-
getContainerEl() {
|
|
602
|
-
let e = this.el.parentElement;
|
|
603
|
-
for (; e && e.tagName !== "HTML" && e.tagName !== "BODY" && e.nodeType === 1; ) {
|
|
604
|
-
if (e.hasAttribute("sticky-container"))
|
|
605
|
-
return e;
|
|
606
|
-
e = e.parentElement;
|
|
607
|
-
}
|
|
608
|
-
return this.el.parentElement;
|
|
609
|
-
}
|
|
610
|
-
getXOffset() {
|
|
611
|
-
return this.placeholderEl.getBoundingClientRect().left;
|
|
612
|
-
}
|
|
613
|
-
getWidth() {
|
|
614
|
-
return this.placeholderEl.getBoundingClientRect().width;
|
|
615
|
-
}
|
|
616
|
-
getHeight() {
|
|
617
|
-
return this.el.getBoundingClientRect().height;
|
|
618
|
-
}
|
|
619
|
-
getPlaceholderElRect() {
|
|
620
|
-
return this.placeholderEl.getBoundingClientRect();
|
|
621
|
-
}
|
|
622
|
-
getContainerElRect() {
|
|
623
|
-
return this.containerEl.getBoundingClientRect();
|
|
624
|
-
}
|
|
625
|
-
getAttribute(name) {
|
|
626
|
-
const expr = this.el.getAttribute(name);
|
|
627
|
-
let result;
|
|
628
|
-
if (expr)
|
|
629
|
-
if (this.vm[expr])
|
|
630
|
-
result = this.vm[expr];
|
|
631
|
-
else
|
|
632
|
-
try {
|
|
633
|
-
result = eval(`(${expr})`);
|
|
634
|
-
} catch (e) {
|
|
635
|
-
result = expr;
|
|
636
|
-
}
|
|
637
|
-
return result;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
const Sticky$1 = {
|
|
641
|
-
mounted(e, t) {
|
|
642
|
-
(typeof t.value > "u" || t.value) && (e[namespace] = new Sticky(e, t.instance), e[namespace].doBind());
|
|
643
|
-
},
|
|
644
|
-
unmounted(e) {
|
|
645
|
-
e[namespace] && (e[namespace].doUnbind(), e[namespace] = void 0);
|
|
646
|
-
},
|
|
647
|
-
updated(e, t) {
|
|
648
|
-
typeof t.value > "u" || t.value ? (e[namespace] || (e[namespace] = new Sticky(e, t.instance)), e[namespace].doBind()) : e[namespace] && e[namespace].doUnbind();
|
|
649
|
-
}
|
|
650
|
-
}, StickyPlugin = {
|
|
651
|
-
install(e) {
|
|
652
|
-
e.directive("Sticky", Sticky$1);
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
export {
|
|
656
|
-
Checkbox as C,
|
|
657
|
-
PhoneField as P,
|
|
658
|
-
StickyPlugin as S,
|
|
659
|
-
_sfc_main$1 as _,
|
|
660
|
-
CheckoutWindow as a,
|
|
661
|
-
event as e,
|
|
662
|
-
install as i,
|
|
663
|
-
setOptions as s
|
|
664
|
-
};
|
|
Binary file
|
package/dist/store/tracking.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const useTrackingStore: import("pinia").StoreDefinition<"tracking", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
-
setup: () => void;
|
|
3
|
-
viewItem: (name: string) => void;
|
|
4
|
-
addToCart: (id: string, name: string, value: number) => void;
|
|
5
|
-
removeFromCart: (id: string, name: string, value: number) => void;
|
|
6
|
-
}, never>>, Pick<{
|
|
7
|
-
setup: () => void;
|
|
8
|
-
viewItem: (name: string) => void;
|
|
9
|
-
addToCart: (id: string, name: string, value: number) => void;
|
|
10
|
-
removeFromCart: (id: string, name: string, value: number) => void;
|
|
11
|
-
}, never>, Pick<{
|
|
12
|
-
setup: () => void;
|
|
13
|
-
viewItem: (name: string) => void;
|
|
14
|
-
addToCart: (id: string, name: string, value: number) => void;
|
|
15
|
-
removeFromCart: (id: string, name: string, value: number) => void;
|
|
16
|
-
}, "setup" | "viewItem" | "addToCart" | "removeFromCart">>;
|