1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="98caa171-f7d1-e5bb-019d-1ae2277cedf7")}catch(e){}}(); 2(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, 3265487, ((__turbopack_context__) => { 4"use strict"; 5 6// Generated by @compas/code-gen 7async function apiAuthGetUser(axiosInstance, params, requestConfig) { 8 const response = await axiosInstance.request({ 9 url: "auth/user/".concat(params.user), 10 method: "GET", 11 ...requestConfig 12 }); 13 return response.data; 14} 15async function apiAuthImpersonateStopSession(axiosInstance, requestConfig) { 16 const response = await axiosInstance.request({ 17 url: "auth/impersonate-stop-session", 18 method: "POST", 19 ...requestConfig 20 }); 21 return response.data; 22} 23async function apiAuthLogout(axiosInstance, requestConfig) { 24 const response = await axiosInstance.request({ 25 url: "auth/logout", 26 method: "POST", 27 ...requestConfig 28 }); 29 return response.data; 30} 31async function apiAuthMe(axiosInstance, requestConfig) { 32 const response = await axiosInstance.request({ 33 url: "auth/me", 34 method: "GET", 35 ...requestConfig 36 }); 37 return response.data; 38} 39async function apiAuthRefreshTokens(axiosInstance, body, requestConfig) { 40 const response = await axiosInstance.request({ 41 url: "auth/refresh-tokens", 42 method: "POST", 43 data: body, 44 ...requestConfig 45 }); 46 return response.data; 47} 48async function apiAuthSetUserActive(axiosInstance, params, body, requestConfig) { 49 const response = await axiosInstance.request({ 50 url: "auth/user/".concat(params.user, "/set-active"), 51 method: "POST", 52 data: body, 53 ...requestConfig 54 }); 55 return response.data; 56} 57async function apiAuthUpdateUser(axiosInstance, params, body, requestConfig) { 58 const response = await axiosInstance.request({ 59 url: "auth/user/".concat(params.user, "/update"), 60 method: "PUT", 61 data: body, 62 ...requestConfig 63 }); 64 return response.data; 65} 66async function apiAuthUserList(axiosInstance, body, requestConfig) { 67 const response = await axiosInstance.request({ 68 url: "auth/list-users", 69 method: "POST", 70 data: body, 71 ...requestConfig 72 }); 73 return response.data; 74} 75__turbopack_context__.s([ 76 "apiAuthGetUser", 77 0, 78 apiAuthGetUser, 79 "apiAuthLogout", 80 0, 81 apiAuthLogout, 82 "apiAuthMe", 83 0, 84 apiAuthMe, 85 "apiAuthRefreshTokens", 86 0, 87 apiAuthRefreshTokens, 88 "apiAuthUserList", 89 0, 90 apiAuthUserList 91]); 92}), 9386480, ((__turbopack_context__) => { 94"use strict"; 95 96// Generated by @compas/code-gen 97var __TURBOPACK__imported__module__954616__ = __turbopack_context__.i(954616); 98var __TURBOPACK__imported__module__266027__ = __turbopack_context__.i(266027); 99var __TURBOPACK__imported__module__912598__ = __turbopack_context__.i(912598); 100var __TURBOPACK__imported__module__197643__ = __turbopack_context__.i(197643); 101var __TURBOPACK__imported__module__265487__ = __turbopack_context__.i(265487); 102; 103; 104; 105function useAuthGetUser(opts) { 106 var _ref; 107 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 108 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 109 options.enabled = options.enabled === true || options.enabled !== false && opts["user"] !== undefined && opts["user"] !== null; 110 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 111 queryKey: useAuthGetUser.queryKey(opts), 112 queryFn: (param)=>{ 113 let { signal } = param; 114 var _opts, _requestConfig; 115 if (opts["user"] === undefined || opts["user"] === null) { 116 throw new Error("Not all required variables where provided to 'useAuthGetUser'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 117 } 118 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 119 opts.requestConfig.signal = signal; 120 return (0, __TURBOPACK__imported__module__265487__["apiAuthGetUser"])(a
120xiosInstance, { 121 user: opts["user"] 122 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 123 }, 124 ...options 125 }); 126} 127/** 128 * Base key used by useAuthGetUser.queryKey() 129 */ useAuthGetUser.baseKey = ()=>[ 130 "auth", 131 "getUser" 132 ]; 133/** 134 * Query key used by useAuthGetUser 135 */ useAuthGetUser.queryKey = (opts)=>[ 136 ...useAuthGetUser.baseKey(), 137 { 138 user: opts["user"] 139 } 140 ]; 141/** 142 * Fetch useAuthGetUser via the queryClient and return the result 143 */ useAuthGetUser.fetch = (queryClient, axiosInstance, opts)=>{ 144 return queryClient.fetchQuery({ 145 queryKey: useAuthGetUser.queryKey(opts), 146 queryFn: ()=>{ 147 if (opts["user"] === undefined || opts["user"] === null) { 148 throw new Error("Not all required variables where provided to 'useAuthGetUser.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 149 } 150 return (0, __TURBOPACK__imported__module__265487__["apiAuthGetUser"])(axiosInstance, { 151 user: opts["user"] 152 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 153 } 154 }); 155}; 156/** 157 * Prefetch useAuthGetUser via the queryClient 158 */ useAuthGetUser.prefetch = (queryClient, axiosInstance, opts)=>{ 159 return queryClient.prefetchQuery({ 160 queryKey: useAuthGetUser.queryKey(opts), 161 queryFn: ()=>{ 162 if (opts["user"] === undefined || opts["user"] === null) { 163 throw new Error("Not all required variables where provided to 'useAuthGetUser.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 164 } 165 return (0, __TURBOPACK__imported__module__265487__["apiAuthGetUser"])(axiosInstance, { 166 user: opts["user"] 167 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 168 } 169 }); 170}; 171/** 172 * Invalidate useAuthGetUser via the queryClient 173 */ useAuthGetUser.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({ 174 queryKey: useAuthGetUser.queryKey(opts) 175 }); 176/** 177 * Set query data for useAuthGetUser via the queryClient 178 */ useAuthGetUser.setQueryData = (queryClient, opts, data)=>{ 179 if (opts["user"] === undefined || opts["user"] === null) { 180 throw new Error("Not all required variables where provided to 'useAuthGetUser.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 181 } 182 return queryClient.setQueryData(useAuthGetUser.queryKey(opts), data); 183}; 184function useAuthImpersonateStopSession() { 185 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 186 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 187 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 188 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 189 mutationFn: (variables)=>(0, __TURBOPACK__imported__module__265487__["apiAuthImpersonateStopSession"])(axiosInstance, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 190 ...options 191 }); 192} 193function useAuthLogout() { 194 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 195 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 196 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 197 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 198 mutationFn: (variables)=>(0, __TURBOPACK__imported__module__265487__["apiAuthLogout"])(axiosInstance, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 199 ...options 200 }); 201} 202function useAuthMe() { 203 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 204 var _ref; 205 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 206 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 207 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 208 queryKey: useAuthMe.queryKey(), 209 queryFn: (param)=>{ 210 let { signal } = param; 211 var _opts, _requestConfig; 212 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 213 opts.requestConfig.signal = signal; 214 return (0, __TURBOPACK__imported__module__265487__["apiAuthMe"])(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 215 }, 216 ...options 217 }); 218} 219/** 220 * Base key used by useAuthMe.queryKey() 221 */ useAuthMe.baseKey = ()=>[ 222 "auth", 223 "me" 224 ]; 225/** 226 * Query key used by useAuthMe 227 */ useAuthMe.queryKey = ()=>[ 228 ...useAuthMe.baseKey() 229 ]; 230/** 231 * Fetch useAuthMe via the queryClient and return the result 232 */ useAuthMe.fetch = (queryClient, axiosInstance, opts)=>{ 233 return queryClient.fetchQuery({ 234 queryKey: useAuthMe.queryKey(), 235 queryFn: ()=>{ 236 return (0, __TURBOPACK__imported__module__265487__["apiAuthMe"])(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 237 } 238 }); 239}; 240/** 241 * Prefetch useAuthMe via the queryClient 242 */ useAuthMe.prefetch = (queryClient, axiosInstance, opts)=>{ 243 return queryClient.prefetchQuery({ 244 queryKey: useAuthMe.queryKey(), 245 queryFn: ()=>{ 246 return (0, __TURBOPACK__imported__module__265487__["apiAuthMe"])(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 247 } 248 }); 249}; 250/** 251 * Invalidate useAuthMe via the queryClient 252 */ useAuthMe.invalidate = (queryClient)=>
252queryClient.invalidateQueries({ 253 queryKey: useAuthMe.queryKey() 254 }); 255/** 256 * Set query data for useAuthMe via the queryClient 257 */ useAuthMe.setQueryData = (queryClient, data)=>{ 258 return queryClient.setQueryData(useAuthMe.queryKey(), data); 259}; 260function useAuthRefreshTokens() { 261 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 262 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 263 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 264 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 265 mutationFn: (variables)=>(0, __TURBOPACK__imported__module__265487__["apiAuthRefreshTokens"])(axiosInstance, { 266 refreshToken: variables["refreshToken"] 267 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 268 ...options 269 }); 270} 271function useAuthSetUserActive() { 272 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 273 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 274 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 275 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 276 mutationFn: (variables)=>(0, __TURBOPACK__imported__module__265487__["apiAuthSetUserActive"])(axiosInstance, { 277 user: variables["user"] 278 }, { 279 active: variables["active"] 280 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 281 ...options 282 }); 283} 284function useAuthUpdateUser() { 285 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 286 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 287 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 288 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 289 mutationFn: (variables)=>(0, __TURBOPACK__imported__module__265487__["apiAuthUpdateUser"])(axiosInstance, { 290 user: variables["user"] 291 }, { 292 name: variables["name"] 293 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 294 ...options 295 }); 296} 297function useAuthUserList(opts) { 298 var _ref; 299 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 300 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 301 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 302 queryKey: useAuthUserList.queryKey(opts), 303 queryFn: (param)=>{ 304 let { signal } = param; 305 var _opts, _requestConfig; 306 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 307 opts.requestConfig.signal = signal; 308 return (0, __TURBOPACK__imported__module__265487__["apiAuthUserList"])(axiosInstance, { 309 search: opts["search"], 310 filters: opts["filters"] 311 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 312 }, 313 ...options 314 }); 315} 316/** 317 * Base key used by useAuthUserList.queryKey() 318 */ useAuthUserList.baseKey = ()=>[ 319 "auth", 320 "userList" 321 ]; 322/** 323 * Query key used by useAuthUserList 324 */ useAuthUserList.queryKey = (opts)=>{ 325 var _opts_search, _opts_filters; 326 return [ 327 ...useAuthUserList.baseKey(), 328 { 329 search: (_opts_search = opts["search"]) !== null && _opts_search !== void 0 ? _opts_search : null, 330 filters: (_opts_filters = opts["filters"]) !== null && _opts_filters !== void 0 ? _opts_filters : null 331 } 332 ]; 333}; 334/** 335 * Fetch useAuthUserList via the queryClient and return the result 336 */ useAuthUserList.fetch = (queryClient, axiosInstance, opts)=>{ 337 return queryClient.fetchQuery({ 338 queryKey: useAuthUserList.queryKey(opts), 339 queryFn: ()=>{ 340 return (0, __TURBOPACK__imported__module__265487__["apiAuthUserList"])(axiosInstance, { 341 search: opts["search"], 342 filters: opts["filters"] 343 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 344 } 345 }); 346}; 347/** 348 * Prefetch useAuthUserList via the queryClient 349 */ useAuthUserList.prefetch = (queryClient, axiosInstance, opts)=>{ 350 return queryClient.prefetchQuery({ 351 queryKey: useAuthUserList.queryKey(opts), 352 queryFn: ()=>{ 353 return (0, __TURBOPACK__imported__module__265487__["apiAuthUserList"])(axiosInstance, { 354 search: opts["search"], 355 filters: opts["filters"] 356 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 357 } 358 }); 359}; 360/** 361 * Invalidate useAuthUserList via the queryClient
362 */ useAuthUserList.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({ 363 queryKey: useAuthUserList.queryKey(opts) 364 }); 365/** 366 * Set query data for useAuthUserList via the queryClient 367 */ useAuthUserList.setQueryData = (queryClient, opts, data)=>{ 368 return queryClient.setQueryData(useAuthUserList.queryKey(opts), data); 369}; 370__turbopack_context__.s([ 371 "useAuthLogout", 372 0, 373 useAuthLogout, 374 "useAuthMe", 375 0, 376 useAuthMe 377]); 378}), 379177413, 964628, 380((__turbopack_context__) => { 381"use strict"; 382 383// MERGED MODULE: [project]/src/generated/account/reactQueries.tsx [app-client] (ecmascript) 384; 385var __TURBOPACK__imported__module__954616__ = __turbopack_context__.i(954616); 386var __TURBOPACK__imported__module__266027__ = __turbopack_context__.i(266027); 387var __TURBOPACK__imported__module__912598__ = __turbopack_context__.i(912598); 388var __TURBOPACK__imported__module__197643__ = __turbopack_context__.i(197643); 389// MERGED MODULE: [project]/src/generated/account/apiClient.ts [app-client] (ecmascript) 390; 391async function apiAccountFavorites(axiosInstance, requestConfig) { 392 const response = await axiosInstance.request({ 393 url: "account/favorites", 394 method: "GET", 395 ...requestConfig 396 }); 397 return response.data; 398} 399async function apiAccountGetAppPreferences(axiosInstance, requestConfig) { 400 const response = await axiosInstance.request({ 401 url: "account/preferences/app", 402 method: "GET", 403 ...requestConfig 404 }); 405 return response.data; 406} 407async function apiAccountGetCompanyPreferences(axiosInstance, requestConfig) { 408 const response = await axiosInstance.request({ 409 url: "account/preferences/company", 410 method: "GET", 411 ...requestConfig 412 }); 413 return response.data; 414} 415async function apiAccountGetPaymentMethods(axiosInstance, requestConfig) { 416 const response = await axiosInstance.request({ 417 url: "account/preferences/payment-methods", 418 method: "GET", 419 ...requestConfig 420 }); 421 return response.data; 422} 423async function apiAccountGetPersonalPreferences(axiosInstance, requestConfig) { 424 const response = await axiosInstance.request({ 425 url: "account/preferences/personal", 426 method: "GET", 427 ...requestConfig 428 }); 429 return response.data; 430} 431async function apiAccountLeaveBusinessCustomer(axiosInstance, body, requestConfig) { 432 const response = await axiosInstance.request({ 433 url: "account/leave-business-customer", 434 method: "POST", 435 data: body, 436 ...requestConfig 437 }); 438 return response.data; 439} 440async function apiAccountMe(axiosInstance, requestConfig) { 441 const response = await axiosInstance.request({ 442 url: "account/me", 443 method: "GET", 444 ...requestConfig 445 }); 446 return response.data; 447} 448async function apiAccountRegister(axiosInstance, body, requestConfig) { 449 const response = await axiosInstance.request({ 450 url: "account/register", 451 method: "POST", 452 data: body, 453 ...requestConfig 454 }); 455 return response.data; 456} 457async function apiAccountRemove(axiosInstance, requestConfig) { 458 const response = await axiosInstance.request({ 459 url: "account/remove", 460 method: "DELETE", 461 ...requestConfig 462 }); 463 return response.data; 464} 465async function apiAccountRemoveDriversLicenseData(axiosInstance, requestConfig) { 466 const response = await axiosInstance.request({ 467 url: "account/remove-drivers-license-data", 468 method: "DELETE", 469 ...requestConfig 470 }); 471 return response.data; 472} 473async function apiAccountReservations(axiosInstance, query, body, requestConfig) { 474 const response = await axiosInstance.request({ 475 url: "account/reservations", 476 method: "POST", 477 params: query, 478 data: body, 479 ...requestConfig 480 }); 481 return response.data; 482} 483async function apiAccountUpdateCompanyPreferences(axiosInstance, body, requestConfig) { 484 const response = await axiosInstance.request({ 485 url: "account/preferences/company", 486 method: "PUT", 487 data: body, 488 ...requestConfig 489 }); 490 return response.data; 491} 492async function apiAccountUpdateIban(axiosInstance, body, requestConfig) { 493 const response = await axiosInstance.request({ 494 url: "account/preferences/update-iban", 495 method: "PUT", 496 data: body, 497 ...requestConfig 498 }); 499 return response.data; 500} 501async function apiAccountUpdateLocale(axiosInstance, body, requestConfig) { 502 const response = await axiosInstance.request({ 503 url: "account/preferences/update-locale", 504 method: "PUT", 505 data: body, 506 ...requestConfig 507 }); 508 return response.data; 509} 510async function apiAccountUpdatePersonalPreferences(axiosInstance, body, requestConfig) { 511 const response = await axiosInstance.request({ 512 url: "account/preferences/personal", 513 method: "PUT", 514 data: body, 515 ...requestConfig 516 }); 517 return response.data; 518} 519async function apiAccountUpdatePushNotifications(axiosInstance, body, requestConfig) { 520 const response = await axiosInstance.request({ 521 url: "account/preferences/update-push-notifications", 522 method: "PUT", 523 data: body, 524 ...requestConfig 525 }); 526 return response.data; 527} 528__turbopack_context__.s([ 529 "apiAccountFavorites", 530 0, 531 apiAccountFavorites, 532 "apiAccountGetAppPreferences", 533 0, 534 apiAccountGetAppPreferences, 535 "apiAccountGetCompanyPreferences", 536 0, 537 apiAccountGetCompanyPreferences, 538 "apiAccountGetPaymentMethods", 539 0, 540 apiAccountGetPaymentMethods, 541 "apiAccountGetPersonalPreferences", 542 0, 543 apiAccountGetPersonalPreferences, 544 "apiAccountMe", 545 0, 546 apiAccountMe, 547 "apiAccountRegister", 548 0, 549 apiAccountRegister, 550 "apiAccountRemove", 551 0, 552 apiAccountRemove, 553 "apiAccountReservations", 554 0, 555 apiAccountReservations,
556 "apiAccountUpdateCompanyPreferences", 557 0, 558 apiAccountUpdateCompanyPreferences, 559 "apiAccountUpdatePersonalPreferences", 560 0, 561 apiAccountUpdatePersonalPreferences 562], 964628); 563; 564; 565; 566function useAccountFavorites() { 567 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 568 var _ref; 569 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 570 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 571 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 572 queryKey: useAccountFavorites.queryKey(), 573 queryFn: (param)=>{ 574 let { signal } = param; 575 var _opts, _requestConfig; 576 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 577 opts.requestConfig.signal = signal; 578 return apiAccountFavorites(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 579 }, 580 ...options 581 }); 582} 583/** 584 * Base key used by useAccountFavorites.queryKey() 585 */ useAccountFavorites.baseKey = ()=>[ 586 "account", 587 "favorites" 588 ]; 589/** 590 * Query key used by useAccountFavorites 591 */ useAccountFavorites.queryKey = ()=>[ 592 ...useAccountFavorites.baseKey() 593 ]; 594/** 595 * Fetch useAccountFavorites via the queryClient and return the result 596 */ useAccountFavorites.fetch = (queryClient, axiosInstance, opts)=>{ 597 return queryClient.fetchQuery({ 598 queryKey: useAccountFavorites.queryKey(), 599 queryFn: ()=>{ 600 return apiAccountFavorites(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 601 } 602 }); 603}; 604/** 605 * Prefetch useAccountFavorites via the queryClient 606 */ useAccountFavorites.prefetch = (queryClient, axiosInstance, opts)=>{ 607 return queryClient.prefetchQuery({ 608 queryKey: useAccountFavorites.queryKey(), 609 queryFn: ()=>{ 610 return apiAccountFavorites(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 611 } 612 }); 613}; 614/** 615 * Invalidate useAccountFavorites via the queryClient 616 */ useAccountFavorites.invalidate = (queryClient)=>queryClient.invalidateQueries({ 617 queryKey: useAccountFavorites.queryKey() 618 }); 619/** 620 * Set query data for useAccountFavorites via the queryClient 621 */ useAccountFavorites.setQueryData = (queryClient, data)=>{ 622 return queryClient.setQueryData(useAccountFavorites.queryKey(), data); 623}; 624function useAccountGetAppPreferences() { 625 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 626 var _ref; 627 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 628 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 629 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 630 queryKey: useAccountGetAppPreferences.queryKey(), 631 queryFn: (param)=>{ 632 let { signal } = param; 633 var _opts, _requestConfig; 634 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 635 opts.requestConfig.signal = signal; 636 return apiAccountGetAppPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 637 }, 638 ...options 639 }); 640} 641/** 642 * Base key used by useAccountGetAppPreferences.queryKey() 643 */ useAccountGetAppPreferences.baseKey = ()=>[ 644 "account", 645 "getAppPreferences" 646 ]; 647/** 648 * Query key used by useAccountGetAppPreferences 649 */ useAccountGetAppPreferences.queryKey = ()=>[ 650 ...useAccountGetAppPreferences.baseKey() 651 ]; 652/** 653 * Fetch useAccountGetAppPreferences via the queryClient and return the result 654 */ useAccountGetAppPreferences.fetch = (queryClient, axiosInstance, opts)=>{ 655 return queryClient.fetchQuery({ 656 queryKey: useAccountGetAppPreferences.queryKey(), 657 queryFn: ()=>{ 658 return apiAccountGetAppPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 659 } 660 }); 661}; 662/** 663 * Prefetch useAccountGetAppPreferences via the queryClient 664 */ useAccountGetAppPreferences.prefetch = (queryClient, axiosInstance, opts)=>{ 665 return queryClient.prefetchQuery({ 666 queryKey: useAccountGetAppPreferences.queryKey(), 667 queryFn: ()=>{ 668 return apiAccountGetAppPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 669 } 670 }); 671}; 672/** 673 * Invalidate useAccountGetAppPreferences via the queryClient 674 */ useAccountGetAppPreferences.invalidate = (queryClient)=>
674queryClient.invalidateQueries({ 675 queryKey: useAccountGetAppPreferences.queryKey() 676 }); 677/** 678 * Set query data for useAccountGetAppPreferences via the queryClient 679 */ useAccountGetAppPreferences.setQueryData = (queryClient, data)=>{ 680 return queryClient.setQueryData(useAccountGetAppPreferences.queryKey(), data); 681}; 682function useAccountGetCompanyPreferences() { 683 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 684 var _ref; 685 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 686 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 687 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 688 queryKey: useAccountGetCompanyPreferences.queryKey(), 689 queryFn: (param)=>{ 690 let { signal } = param; 691 var _opts, _requestConfig; 692 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 693 opts.requestConfig.signal = signal; 694 return apiAccountGetCompanyPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 695 }, 696 ...options 697 }); 698} 699/** 700 * Base key used by useAccountGetCompanyPreferences.queryKey() 701 */ useAccountGetCompanyPreferences.baseKey = ()=>[ 702 "account", 703 "getCompanyPreferences" 704 ]; 705/** 706 * Query key used by useAccountGetCompanyPreferences 707 */ useAccountGetCompanyPreferences.queryKey = ()=>[ 708 ...useAccountGetCompanyPreferences.baseKey() 709 ]; 710/** 711 * Fetch useAccountGetCompanyPreferences via the queryClient and return the result 712 */ useAccountGetCompanyPreferences.fetch = (queryClient, axiosInstance, opts)=>{ 713 return queryClient.fetchQuery({ 714 queryKey: useAccountGetCompanyPreferences.queryKey(), 715 queryFn: ()=>{ 716 return apiAccountGetCompanyPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 717 } 718 }); 719}; 720/** 721 * Prefetch useAccountGetCompanyPreferences via the queryClient 722 */ useAccountGetCompanyPreferences.prefetch = (queryClient, axiosInstance, opts)=>{ 723 return queryClient.prefetchQuery({ 724 queryKey: useAccountGetCompanyPreferences.queryKey(), 725 queryFn: ()=>{ 726 return apiAccountGetCompanyPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 727 } 728 }); 729}; 730/** 731 * Invalidate useAccountGetCompanyPreferences via the queryClient 732 */ useAccountGetCompanyPreferences.invalidate = (queryClient)=>queryClient.invalidateQueries({ 733 queryKey: useAccountGetCompanyPreferences.queryKey() 734 }); 735/** 736 * Set query data for useAccountGetCompanyPreferences via the queryClient 737 */ useAccountGetCompanyPreferences.setQueryData = (queryClient, data)=>{ 738 return queryClient.setQueryData(useAccountGetCompanyPreferences.queryKey(), data); 739}; 740function useAccountGetPaymentMethods() { 741 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 742 var _ref; 743 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 744 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 745 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 746 queryKey: useAccountGetPaymentMethods.queryKey(), 747 queryFn: (param)=>{ 748 let { signal } = param; 749 var _opts, _requestConfig; 750 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 751 opts.requestConfig.signal = signal; 752 return apiAccountGetPaymentMethods(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 753 }, 754 ...options 755 }); 756} 757/** 758 * Base key used by useAccountGetPaymentMethods.queryKey() 759 */ useAccountGetPaymentMethods.baseKey = ()=>[ 760 "account", 761 "getPaymentMethods" 762 ]; 763/** 764 * Query key used by useAccountGetPaymentMethods 765 */ useAccountGetPaymentMethods.queryKey = ()=>[ 766 ...useAccountGetPaymentMethods.baseKey() 767 ]; 768/** 769 * Fetch useAccountGetPaymentMethods via the queryClient and return the result 770 */ useAccountGetPaymentMethods.fetch = (queryClient, axiosInstance, opts)=>{ 771 return queryClient.fetchQuery({ 772 queryKey: useAccountGetPaymentMethods.queryKey(), 773 queryFn: ()=>{ 774 return apiAccountGetPaymentMethods(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 775 } 776 }); 777}; 778/** 779 * Prefetch useAccountGetPaymentMethods via the queryClient 780 */ useAccountGetPaymentMethods.prefetch = (queryClient, axiosInstance, opts)=>{ 781 return queryClient.prefetchQuery({ 782 queryKey: useAccountGetPaymentMethods.queryKey(), 783 queryFn: ()=>{ 784 return apiAccountGetPaymentMethods(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 785 } 786 }); 787}; 788/** 789 * Invalidate useAccountGetPaymentMethods via the queryClient 790 */ useAccountGetPaymentMethods.invalidate = (queryClient)=>
790queryClient.invalidateQueries({ 791 queryKey: useAccountGetPaymentMethods.queryKey() 792 }); 793/** 794 * Set query data for useAccountGetPaymentMethods via the queryClient 795 */ useAccountGetPaymentMethods.setQueryData = (queryClient, data)=>{ 796 return queryClient.setQueryData(useAccountGetPaymentMethods.queryKey(), data); 797}; 798function useAccountGetPersonalPreferences() { 799 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 800 var _ref; 801 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 802 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 803 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 804 queryKey: useAccountGetPersonalPreferences.queryKey(), 805 queryFn: (param)=>{ 806 let { signal } = param; 807 var _opts, _requestConfig; 808 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 809 opts.requestConfig.signal = signal; 810 return apiAccountGetPersonalPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 811 }, 812 ...options 813 }); 814} 815/** 816 * Base key used by useAccountGetPersonalPreferences.queryKey() 817 */ useAccountGetPersonalPreferences.baseKey = ()=>[ 818 "account", 819 "getPersonalPreferences" 820 ]; 821/** 822 * Query key used by useAccountGetPersonalPreferences 823 */ useAccountGetPersonalPreferences.queryKey = ()=>[ 824 ...useAccountGetPersonalPreferences.baseKey() 825 ]; 826/** 827 * Fetch useAccountGetPersonalPreferences via the queryClient and return the result 828 */ useAccountGetPersonalPreferences.fetch = (queryClient, axiosInstance, opts)=>{ 829 return queryClient.fetchQuery({ 830 queryKey: useAccountGetPersonalPreferences.queryKey(), 831 queryFn: ()=>{ 832 return apiAccountGetPersonalPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 833 } 834 }); 835}; 836/** 837 * Prefetch useAccountGetPersonalPreferences via the queryClient 838 */ useAccountGetPersonalPreferences.prefetch = (queryClient, axiosInstance, opts)=>{ 839 return queryClient.prefetchQuery({ 840 queryKey: useAccountGetPersonalPreferences.queryKey(), 841 queryFn: ()=>{ 842 return apiAccountGetPersonalPreferences(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 843 } 844 }); 845}; 846/** 847 * Invalidate useAccountGetPersonalPreferences via the queryClient 848 */ useAccountGetPersonalPreferences.invalidate = (queryClient)=>queryClient.invalidateQueries({ 849 queryKey: useAccountGetPersonalPreferences.queryKey() 850 }); 851/** 852 * Set query data for useAccountGetPersonalPreferences via the queryClient 853 */ useAccountGetPersonalPreferences.setQueryData = (queryClient, data)=>{ 854 return queryClient.setQueryData(useAccountGetPersonalPreferences.queryKey(), data); 855}; 856function useAccountLeaveBusinessCustomer() { 857 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 858 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 859 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 860 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 861 mutationFn: (variables)=>apiAccountLeaveBusinessCustomer(axiosInstance, { 862 businessCustomerId: variables["businessCustomerId"] 863 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 864 ...options 865 }); 866} 867function useAccountMe() { 868 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 869 var _ref; 870 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 871 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 872 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 873 queryKey: useAccountMe.queryKey(), 874 queryFn: (param)=>{ 875 let { signal } = param; 876 var _opts, _requestConfig; 877 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 878 opts.requestConfig.signal = signal; 879 return apiAccountMe(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 880 }, 881 ...options 882 }); 883} 884/** 885 * Base key used by useAccountMe.queryKey() 886 */ useAccountMe.baseKey = ()=>[ 887 "account", 888 "me" 889 ]; 890/** 891 * Query key used by useAccountMe 892 */ useAccountMe.queryKey = ()=>[ 893 ...useAccountMe.baseKey() 894 ]; 895/** 896 * Fetch useAccountMe via the queryClient and return the result 897 */ useAccountMe.fetch = (queryClient, axiosInstance, opts)=>{ 898 return queryClient.fetchQuery({ 899 queryKey: useAccountMe.queryKey(), 900 queryFn: ()=>{ 901 return apiAccountMe(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 902 } 903 }); 904}; 905/** 906 * Prefetch useAccountMe via the queryClient 907 */ useAccountMe.prefetch = (queryClient, axiosInstance, opts)=>{ 908 return queryClient.prefetchQuery({ 909 queryKey: useAccountMe.queryKey(), 910 queryFn: ()=>{ 911 return apiAccountMe(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 912 } 913 }); 914}; 915/** 916 * Invalidate useAccountMe via the queryClient 917 */ useAccountMe.invalidate = (queryClient)=>
917queryClient.invalidateQueries({ 918 queryKey: useAccountMe.queryKey() 919 }); 920/** 921 * Set query data for useAccountMe via the queryClient 922 */ useAccountMe.setQueryData = (queryClient, data)=>{ 923 return queryClient.setQueryData(useAccountMe.queryKey(), data); 924}; 925function useAccountRegister() { 926 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 927 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 928 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 929 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 930 mutationFn: (variables)=>apiAccountRegister(axiosInstance, { 931 email: variables["email"], 932 password: variables["password"], 933 type: variables["type"], 934 subscribeNewsletter: variables["subscribeNewsletter"], 935 street: variables["street"], 936 houseNumber: variables["houseNumber"], 937 houseNumberAddition: variables["houseNumberAddition"], 938 postalCode: variables["postalCode"], 939 city: variables["city"], 940 phone: variables["phone"], 941 firstName: variables["firstName"], 942 middleName: variables["middleName"], 943 surname: variables["surname"], 944 companyName: variables["companyName"], 945 btw: variables["btw"], 946 countryCode: variables["countryCode"], 947 kvk: variables["kvk"], 948 birthDate: variables["birthDate"] 949 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 950 ...options 951 }); 952} 953function useAccountRemove() { 954 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 955 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 956 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 957 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 958 mutationFn: (variables)=>apiAccountRemove(axiosInstance, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 959 ...options 960 }); 961} 962function useAccountRemoveDriversLicenseData() { 963 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 964 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 965 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 966 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 967 mutationFn: (variables)=>apiAccountRemoveDriversLicenseData(axiosInstance, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 968 ...options 969 }); 970} 971function useAccountReservations(opts) { 972 var _ref; 973 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 974 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 975 options.enabled = options.enabled === true || options.enabled !== false && opts["status"] !== undefined && opts["status"] !== null && opts["filters"] !== undefined && opts["filters"] !== null; 976 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 977 queryKey: useAccountReservations.queryKey(opts), 978 queryFn: (param)=>{ 979 let { signal } = param; 980 var _opts, _requestConfig; 981 if (opts["status"] === undefined || opts["status"] === null || opts["filters"] === undefined || opts["filters"] === null) { 982 throw new Error("Not all required variables where provided to 'useAccountReservations'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 983 } 984 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 985 opts.requestConfig.signal = signal; 986 return apiAccountReservations(axiosInstance, { 987 offset: opts["offset"], 988 limit: opts["limit"] 989 }, { 990 status: opts["status"], 991 filters: opts["filters"], 992 sort: opts["sort"] 993 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 994 }, 995 ...options 996 }); 997} 998/** 999 * Base key used by useAccountReservations.queryKey() 1000 */ useAccountReservations.baseKey = ()=>[ 1001 "account", 1002 "reservations" 1003 ]; 1004/** 1005 * Query key used by useAccountReservations 1006 */ useAccountReservations.queryKey = (opts)=>{ 1007 var _opts_offset, _opts_limit, _opts_sort; 1008 return [ 1009 ...useAccountReservations.baseKey(), 1010 { 1011 offset: (_opts_offset = opts["offset"]) !== null && _opts_offset !== void 0 ? _opts_offset : null, 1012 limit: (_opts_limit = opts["limit"]) !== null && _opts_limit !== void 0 ? _opts_limit : null 1013 }, 1014 { 1015 status: opts["status"], 1016 filters: opts["filters"], 1017 sort: (_opts_sort = opts["sort"]) !== null && _opts_sort !== void 0 ? _opts_sort : null 1018 } 1019 ]; 1020}; 1021/** 1022 * Fetch useAccountReservations via the queryClient and return the result 1023 */ useAccountReservations.fetch = (queryClient, axiosInstance, opts)=>{ 1024 return queryClient.fetchQuery({ 1025 queryKey: useAccountReservations.queryKey(opts), 1026 queryFn: ()=>{ 1027 if (opts["status"] === undefined || opts["status"] === null || opts["filters"] === undefined || opts["filters"] === null) { 1028 throw new Error("Not all required variables where provided to 'useAccountReservations.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 1029 } 1030 return apiAccountReservations(axiosInstance, { 1031 offset: opts["offset"], 1032 limit: opts["limit"] 1033 }, { 1034 status: opts["status"], 1035 filters: opts["filters"], 1036 sort: opts["sort"] 1037 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1038 } 1039 }); 1040}; 1041/** 1042 * Prefetch useAccountReservations via the queryClient 1043 */ useAccountReservations.prefetch = (queryClient, axiosInstance, opts)=>{ 1044 return queryClient.prefetchQuery({ 1045 queryKey: useAccountReservations.queryKey(opts), 1046 queryFn: ()=>{ 1047 if (opts["status"] === undefined || opts["status"] === null || opts["filters"] === undefined || opts["filters"] === null) { 1048 throw new Error("Not all required variables where provided to 'useAccountReservations.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 1049 } 1050 return apiAccountReservations(axiosInstance, { 1051 offset: opts["offset"], 1052 limit: opts["limit"] 1053 }, { 1054 status: opts["status"], 1055 filters: opts["filters"], 1056 sort: opts["sort"] 1057 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1058 } 1059 }); 1060}; 1061/** 1062 * Invalidate useAccountReservations via the queryClient 1063 */ useAccountReservations.invalidate = (queryClient, opts)=>
1063queryClient.invalidateQueries({ 1064 queryKey: useAccountReservations.queryKey(opts) 1065 }); 1066/** 1067 * Set query data for useAccountReservations via the queryClient 1068 */ useAccountReservations.setQueryData = (queryClient, opts, data)=>{ 1069 if (opts["status"] === undefined || opts["status"] === null || opts["filters"] === undefined || opts["filters"] === null) { 1070 throw new Error("Not all required variables where provided to 'useAccountReservations.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set."); 1071 } 1072 return queryClient.setQueryData(useAccountReservations.queryKey(opts), data); 1073}; 1074function useAccountUpdateCompanyPreferences() { 1075 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1076 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1077 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1078 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1079 mutationFn: (variables)=>apiAccountUpdateCompanyPreferences(axiosInstance, { 1080 companyPreferences: variables["companyPreferences"] 1081 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1082 ...options 1083 }); 1084} 1085function useAccountUpdateIban() { 1086 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, hookOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 1087 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1088 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1089 if (hookOptions.invalidateQueries) { 1090 const originalOnSuccess = options.onSuccess; 1091 options.onSuccess = async function(data, variables) { 1092 for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ 1093 args[_key - 2] = arguments[_key]; 1094 } 1095 queryClient.invalidateQueries({ 1096 queryKey: [ 1097 "account" 1098 ] 1099 }); 1100 if (typeof originalOnSuccess === "function") { 1101 return await originalOnSuccess(data, variables, ...args); 1102 } 1103 }; 1104 } 1105 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1106 mutationFn: (variables)=>apiAccountUpdateIban(axiosInstance, { 1107 iban: variables["iban"] 1108 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1109 ...options 1110 }); 1111} 1112function useAccountUpdateLocale() { 1113 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, hookOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 1114 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1115 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1116 if (hookOptions.invalidateQueries) { 1117 const originalOnSuccess = options.onSuccess; 1118 options.onSuccess = async function(data, variables) { 1119 for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ 1120 args[_key - 2] = arguments[_key]; 1121 } 1122 queryClient.invalidateQueries({ 1123 queryKey: [ 1124 "account" 1125 ] 1126 }); 1127 if (typeof originalOnSuccess === "function") { 1128 return await originalOnSuccess(data, variables, ...args); 1129 } 1130 }; 1131 } 1132 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1133 mutationFn: (variables)=>apiAccountUpdateLocale(axiosInstance, { 1134 locale: variables["locale"] 1135 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1136 ...options 1137 }); 1138} 1139function useAccountUpdatePersonalPreferences() { 1140 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1141 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1142 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1143 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1144 mutationFn: (variables)=>apiAccountUpdatePersonalPreferences(axiosInstance, { 1145 personalPreferences: variables["personalPreferences"] 1146 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1147 ...options 1148 }); 1149} 1150function useAccountUpdatePushNotifications() { 1151 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, hookOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 1152 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1153 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1154 if (hookOptions.invalidateQueries) { 1155 const originalOnSuccess = options.onSuccess; 1156 options.onSuccess = async function(data, variables) { 1157 for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ 1158 args[_key - 2] = arguments[_key]; 1159 }
1160 queryClient.invalidateQueries({ 1161 queryKey: [ 1162 "account" 1163 ] 1164 }); 1165 if (typeof originalOnSuccess === "function") { 1166 return await originalOnSuccess(data, variables, ...args); 1167 } 1168 }; 1169 } 1170 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1171 mutationFn: (variables)=>apiAccountUpdatePushNotifications(axiosInstance, { 1172 pushNotificationSettings: variables["pushNotificationSettings"] 1173 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1174 ...options 1175 }); 1176} 1177__turbopack_context__.s([ 1178 "useAccountFavorites", 1179 0, 1180 useAccountFavorites, 1181 "useAccountGetAppPreferences", 1182 0, 1183 useAccountGetAppPreferences, 1184 "useAccountGetCompanyPreferences", 1185 0, 1186 useAccountGetCompanyPreferences, 1187 "useAccountGetPersonalPreferences", 1188 0, 1189 useAccountGetPersonalPreferences, 1190 "useAccountMe", 1191 0, 1192 useAccountMe, 1193 "useAccountRegister", 1194 0, 1195 useAccountRegister, 1196 "useAccountRemove", 1197 0, 1198 useAccountRemove, 1199 "useAccountReservations", 1200 0, 1201 useAccountReservations, 1202 "useAccountUpdateCompanyPreferences", 1203 0, 1204 useAccountUpdateCompanyPreferences, 1205 "useAccountUpdatePersonalPreferences", 1206 0, 1207 useAccountUpdatePersonalPreferences 1208], 177413); 1209}), 1210857686, ((__turbopack_context__) => { 1211"use strict"; 1212 1213// MERGED MODULE: [project]/src/analytics/Tracking/index.ts [app-client] (ecmascript) 1214; 1215// MERGED MODULE: [project]/src/analytics/Tracking/cart.ts [app-client] (ecmascript) 1216; 1217var __TURBOPACK__imported__module__401851__ = __turbopack_context__.i(401851); 1218var __TURBOPACK__imported__module__432082__ = __turbopack_context__.i(432082); 1219; 1220; 1221function addToCart(param) { 1222 let { item } = param; 1223 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1224 const pickup_date = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "dd-MM-yyyy"); 1225 const pickup_time = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "HH:mm"); 1226 const return_date = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "dd-MM-yyyy"); 1227 const return_time = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "HH:mm"); 1228 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1229 ecommerce: null 1230 }); // Clear the previous ecommerce object. 1231 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1232 event: "add_to_cart", 1233 ecommerce: { 1234 items: [ 1235 { 1236 ...rest, 1237 options: [ 1238 "".concat(rest.options.map((option)=>option.item_name).join("|")) 1239 ], 1240 item_list_name: "Vehicles list", 1241 pickup_date, 1242 pickup_time, 1243 return_date, 1244 return_time 1245 }, 1246 ...item.options.map((option)=>({ 1247 ...option, 1248 item_category: "Extra", 1249 item_list_name: "Extra - Accessories", 1250 vehicle_category: rest.vehicle_category, 1251 pickup_location: rest.pickup_location, 1252 length_rentalPeriod: rest.length_rentalPeriod, 1253 pickup_date, 1254 pickup_time, 1255 return_date, 1256 return_time 1257 })) 1258 ] 1259 } 1260 }); 1261} 1262function removeFromCart(param) { 1263 let { item } = param; 1264 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1265 const pickup_date = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "dd-MM-yyyy"); 1266 const pickup_time = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "HH:mm"); 1267 const return_date = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "dd-MM-yyyy"); 1268 const return_time = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "HH:mm"); 1269 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1270 ecommerce: null 1271 }); 1272 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1273 event: "remove_from_cart", 1274 ecommerce: { 1275 items: [ 1276 { 1277 ...rest, 1278 options: [ 1279 "".concat(rest.options.map((option)=>option.item_name).join("|")) 1280 ], 1281 item_list_name: "Vehicles list", 1282 pickup_date, 1283 pickup_time, 1284 return_date, 1285 return_time 1286 }, 1287 ...item.options.map((option)=>({ 1288 ...option, 1289 item_category: "Extra", 1290 item_list_name: "Extra - Accessories", 1291 vehicle_category: rest.vehicle_category, 1292 pickup_location: rest.pickup_location, 1293 length_rentalPeriod: rest.length_rentalPeriod, 1294 pickup_date, 1295 pickup_time, 1296 return_date, 1297 return_time 1298 })) 1299 ] 1300 } 1301 }); 1302} 1303function viewCart(param) { 1304 let { value, items } = param; 1305 const options = []; 1306 const vehicles = []; 1307 for (const item of items){ 1308 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1309 const pickup_date = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "dd-MM-yyyy"); 1310 const pickup_time = (0, __TURBOPACK__imported__module__401851__["format"])(pickupDate, "HH:mm"); 1311 const return_date = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "dd-MM-yyyy"); 1312 const return_time = (0, __TURBOPACK__imported__module__401851__["format"])(returnDate, "HH:mm"); 1313 vehicles.push({ 1314 ...rest, 1315 options: [ 1316 "".concat(rest.options.map((option)=>option.item_name).join("|")) 1317 ], 1318 item_list_name: "Vehicles list", 1319 pickup_date, 1320 pickup_time, 1321 return_date, 1322 return_time 1323 }); 1324 for (const option of item.options){ 1325 options.push({ 1326 ...option, 1327 item_category: "Extra", 1328 item_list_name: "Extra - Accessories", 1329 vehicle_category: rest.vehicle_category, 1330 pickup_location: rest.pickup_location, 1331 length_rentalPeriod: rest.length_rentalPeriod, 1332 pickup_date, 1333 pickup_time, 1334 return_date, 1335 return_time 1336 }); 1337 } 1338 } 1339 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1340 ecommerce: null 1341 }); 1342 (0, __TURBOPACK__imported__module__432082__["dataLayer"])({ 1343 event: "view_cart", 1344 ecommerce: { 1345 currency: "EUR", 1346 value, 1347 items: [ 1348 ...vehicles, 1349 ...options 1350 ] 1351 } 1352 }); 1353} 1354__turbopack_context__.s([ 1355 "addToCart", 1356 0, 1357 addToCart, 1358 "removeFromCart", 1359 0, 1360 removeFromCart, 1361 "viewCart", 1362 0, 1363 viewCart 1364], 708934); 1365var __TURBOPACK__imported__module__708934__ = __turbopack_context__.i(708934); 1366// MERGED MODULE: [project]/src/analytics/Tracking/checkout.ts [app-client] (ecmascript) 1367; 1368var __TURBOPACK__imported__module__401851__1 = __TURBOPACK__imported__module__401851__; 1369var __TURBOPACK__imported__module__432082__1 = __TURBOPACK__imported__module__432082__; 1370; 1371; 1372function beginCheckout(param) { 1373 let { items, login_status, customer_type, newsletter_opt_in } = param; 1374 const options = []; 1375 const vehicles = []; 1376 for (const item of items){ 1377 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1378 const pickup_date = (0, __TURBOPACK__imported__module__401851__1["format"])(pickupDate, "dd-MM-yyyy"); 1379 const pickup_time = (0, __TURBOPACK__imported__module__401851__1["format"])(pickupDate, "HH:mm"); 1380 const return_date = (0, __TURBOPACK__imported__module__401851__1["format"])(returnDate, "dd-MM-yyyy"); 1381 const return_time = (0, __TURBOPACK__imported__module__401851__1["format"])(returnDate, "HH:mm"); 1382 vehicles.push({ 1383 ...rest, 1384 options: [ 1385 "".concat(rest.options.map((option)=>option.item_name).join("|")) 1386 ], 1387 item_list_name: "Vehicles list", 1388 pickup_date, 1389 pickup_time, 1390 return_date, 1391 return_time 1392 }); 1393 for (const option of item.options){ 1394 options.push({ 1395 ...option, 1396 item_category: "Extra", 1397 item_list_name: "Extra - Accessories", 1398 vehicle_category: rest.vehicle_category, 1399 pickup_location: rest.pickup_location, 1400 length_rentalPeriod: rest.length_rentalPeriod, 1401 pickup_date, 1402 pickup_time, 1403 return_date, 1404 return_time 1405 }); 1406 } 1407 } 1408 (0, __TURBOPACK__imported__module__432082__1["dataLayer"])({ 1409 ecommerce: null 1410 }); 1411 (0, __TURBOPACK__imported__module__432082__1["dataLayer"])({ 1412 event: "begin_checkout", 1413 login_status, 1414 customer_type, 1415 newsletter_opt_in, 1416 ecommerce: { 1417 items: [ 1418 ...vehicles, 1419 ...options 1420 ] 1421 } 1422 }); 1423}
1424function addPaymentInfo(param) { 1425 let { items, value, coupon_code, payment_type, payment_method, payment_provider, customer_type, login_status, newsletter_opt_in } = param; 1426 const options = []; 1427 const vehicles = []; 1428 for (const item of items){ 1429 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1430 const pickup_date = (0, __TURBOPACK__imported__module__401851__1["format"])(pickupDate, "dd-MM-yyyy"); 1431 const pickup_time = (0, __TURBOPACK__imported__module__401851__1["format"])(pickupDate, "HH:mm"); 1432 const return_date = (0, __TURBOPACK__imported__module__401851__1["format"])(returnDate, "dd-MM-yyyy"); 1433 const return_time = (0, __TURBOPACK__imported__module__401851__1["format"])(returnDate, "HH:mm"); 1434 vehicles.push({ 1435 ...rest, 1436 item_list_name: "Vehicles list", 1437 pickup_date, 1438 pickup_time, 1439 return_date, 1440 return_time 1441 }); 1442 for (const option of item.options){ 1443 options.push({ 1444 ...option, 1445 item_category: "Extra", 1446 item_list_name: "Extra - Accessories", 1447 vehicle_category: rest.vehicle_category, 1448 pickup_location: rest.pickup_location, 1449 length_rentalPeriod: rest.length_rentalPeriod, 1450 pickup_date, 1451 pickup_time, 1452 return_date, 1453 return_time 1454 }); 1455 } 1456 } 1457 (0, __TURBOPACK__imported__module__432082__1["dataLayer"])({ 1458 ecommerce: null 1459 }); 1460 (0, __TURBOPACK__imported__module__432082__1["dataLayer"])({ 1461 event: "add_payment_info", 1462 payment_method, 1463 payment_provider, 1464 customer_type, 1465 login_status, 1466 newsletter_opt_in, 1467 ecommerce: { 1468 currency: "EUR", 1469 value, 1470 coupon_code, 1471 payment_type, 1472 items: [ 1473 ...vehicles, 1474 ...options 1475 ] 1476 } 1477 }); 1478} 1479__turbopack_context__.s([ 1480 "addPaymentInfo", 1481 0, 1482 addPaymentInfo, 1483 "beginCheckout", 1484 0, 1485 beginCheckout 1486], 202611); 1487var __TURBOPACK__imported__module__202611__ = __turbopack_context__.i(202611); 1488// MERGED MODULE: [project]/src/analytics/Tracking/historyChange.ts [app-client] (ecmascript) 1489; 1490var __TURBOPACK__imported__module__432082__2 = __TURBOPACK__imported__module__432082__; 1491; 1492function productSeen(param) { 1493 let { item_id, position, dwellTime, scrollY, pageType, timestamp = Date.now(), eventTimeout = 2000, eventCategory } = param; 1494 (0, __TURBOPACK__imported__module__432082__2["dataLayer"])({ 1495 event: "geschiedeniswijziging", 1496 eventCategory, 1497 eventAction: "productSeen", 1498 eventLabel: item_id, 1499 eventData: { 1500 item_id, 1501 position, 1502 dwellTime, 1503 timestamp, 1504 scrollY, 1505 pageType 1506 }, 1507 eventTimeout 1508 }); 1509} 1510function pageViewed(param) { 1511 let { pageType, name, theme, eventAction, eventCategory } = param; 1512 (0, __TURBOPACK__imported__module__432082__2["dataLayer"])({ 1513 event: "geschiedeniswijziging", 1514 pageType, 1515 name, 1516 theme, 1517 eventAction, 1518 eventCategory 1519 }); 1520} 1521__turbopack_context__.s([ 1522 "pageViewed", 1523 0, 1524 pageViewed, 1525 "productSeen", 1526 0, 1527 productSeen 1528], 136904); 1529var __TURBOPACK__imported__module__136904__ = __turbopack_context__.i(136904); 1530// MERGED MODULE: [project]/src/analytics/Tracking/list.ts [app-client] (ecmascript) 1531; 1532var __TURBOPACK__imported__module__401851__2 = __TURBOPACK__imported__module__401851__; 1533var __TURBOPACK__imported__module__432082__3 = __TURBOPACK__imported__module__432082__; 1534; 1535; 1536function viewItemList(param) { 1537 let { items, search } = param; 1538 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1539 ecommerce: null 1540 }); 1541 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1542 event: "view_item_list", 1543 ...search, 1544 ecommerce: { 1545 items: items.map((item)=>{ 1546 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1547 const pickup_date = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "dd-MM-yyyy"); 1548 const pickup_time = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "HH:mm"); 1549 const return_date = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "dd-MM-yyyy") : undefined; 1550 const return_time = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "HH:mm") : undefined; 1551 return { 1552 ...rest, 1553 pickup_date, 1554 pickup_time, 1555 return_date, 1556 return_time 1557 }; 1558 }) 1559 } 1560 }); 1561} 1562function viewItem(param) { 1563 let { item } = param; 1564 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1565 const pickup_date = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "dd-MM-yyyy"); 1566 const pickup_time = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "HH:mm"); 1567 const return_date = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "dd-MM-yyyy") : undefined; 1568 const return_time = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "HH:mm") : undefined; 1569 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1570 ecommerce: null 1571 }); // Clear the previous ecommerce object. 1572 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1573 event: "view_item", 1574 ecommerce: { 1575 items: [ 1576 { 1577 ...rest, 1578 item_list_name: "Vehicle list", 1579 pickup_date, 1580 pickup_time, 1581 return_date, 1582 return_time 1583 } 1584 ] 1585 } 1586 }); 1587} 1588function selectItem(param) { 1589 let { item } = param; 1590 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1591 const pickup_date = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "dd-MM-yyyy"); 1592 const pickup_time = (0, __TURBOPACK__imported__module__401851__2["format"])(pickupDate, "HH:mm"); 1593 const return_date = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "dd-MM-yyyy") : undefined; 1594 const return_time = returnDate ? (0, __TURBOPACK__imported__module__401851__2["format"])(returnDate, "HH:mm") : undefined; 1595 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1596 ecommerce: null 1597 }); // Clear the previous ecommerce object. 1598 (0, __TURBOPACK__imported__module__432082__3["dataLayer"])({ 1599 event: "select_item", 1600 ecommerce: { 1601 items: [ 1602 { 1603 ...rest, 1604 item_list_name: "Vehicle list", 1605 pickup_date, 1606 pickup_time, 1607 return_date, 1608 return_time 1609 } 1610 ] 1611 } 1612 }); 1613} 1614__turbopack_context__.s([ 1615 "selectItem", 1616 0, 1617 selectItem, 1618 "viewItem", 1619 0, 1620 viewItem, 1621 "viewItemList", 1622 0, 1623 viewItemList 1624], 843470); 1625var __TURBOPACK__imported__module__843470__ = __turbopack_context__.i(843470); 1626// MERGED MODULE: [project]/src/analytics/Tracking/purchase.ts [app-client] (ecmascript) 1627; 1628var __TURBOPACK__imported__module__401851__3 = __TURBOPACK__imported__module__401851__; 1629var __TURBOPACK__imported__module__432082__4 = __TURBOPACK__imported__module__432082__; 1630; 1631; 1632function purchase(param) { 1633 let { transaction_id, value, items, email, order_type, coupon_code, order_discount, deposit, days_till_start_reservation, tax, totalValue, expectedKilometers, extraKilometers, freeKilometers, new_customer, payment_method, payment_provider, customer_type, extras_
1633summary } = param; 1634 const options = []; 1635 const vehicles = []; 1636 for (const item of items){ 1637 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1638 const pickup_date = (0, __TURBOPACK__imported__module__401851__3["format"])(pickupDate, "dd-MM-yyyy"); 1639 const pickup_time = (0, __TURBOPACK__imported__module__401851__3["format"])(pickupDate, "HH:mm"); 1640 const return_date = (0, __TURBOPACK__imported__module__401851__3["format"])(returnDate, "dd-MM-yyyy"); 1641 const return_time = (0, __TURBOPACK__imported__module__401851__3["format"])(returnDate, "HH:mm"); 1642 vehicles.push({ 1643 ...rest, 1644 options: [ 1645 "".concat(rest.options.map((option)=>option.item_name).join("|")) 1646 ], 1647 item_list_name: "Vehicles list", 1648 pickup_date, 1649 pickup_time, 1650 return_date, 1651 return_time 1652 }); 1653 for (const option of item.options){ 1654 options.push({ 1655 ...option, 1656 item_category: "Extra", 1657 item_list_name: "Extra - Accessories", 1658 vehicle_category: rest.vehicle_category, 1659 pickup_location: rest.pickup_location, 1660 length_rentalPeriod: rest.length_rentalPeriod, 1661 pickup_date, 1662 pickup_time, 1663 return_date, 1664 return_time 1665 }); 1666 } 1667 } 1668 (0, __TURBOPACK__imported__module__432082__4["dataLayer"])({ 1669 ecommerce: null 1670 }); 1671 (0, __TURBOPACK__imported__module__432082__4["dataLayer"])({ 1672 event: "purchase", 1673 payment_method, 1674 payment_provider, 1675 customer_type, 1676 extras_summary, 1677 ecommerce: { 1678 value, 1679 transaction_id: transaction_id, 1680 tax, 1681 totalValue, 1682 order_type, 1683 shipping: 0, 1684 order_discount, 1685 coupon_code, 1686 deposit, 1687 currency: "EUR", 1688 days_till_start_reservation, 1689 freeKilometers, 1690 expectedKilometers, 1691 extraKilometers, 1692 items: [ 1693 ...vehicles, 1694 ...options 1695 ], 1696 new_customer 1697 }, 1698 user: { 1699 email 1700 } 1701 }); 1702} 1703function refund(param) { 1704 let { value, item } = param; 1705 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1706 const pickup_date = (0, __TURBOPACK__imported__module__401851__3["format"])(pickupDate, "dd-MM-yyyy"); 1707 const pickup_time = (0, __TURBOPACK__imported__module__401851__3["format"])(pickupDate, "HH:mm"); 1708 const return_date = (0, __TURBOPACK__imported__module__401851__3["format"])(returnDate, "dd-MM-yyyy"); 1709 const return_time = (0, __TURBOPACK__imported__module__401851__3["format"])(returnDate, "HH:mm"); 1710 (0, __TURBOPACK__imported__module__432082__4["dataLayer"])({ 1711 ecommerce: null 1712 }); 1713 (0, __TURBOPACK__imported__module__432082__4["dataLayer"])({ 1714 event: "refund", 1715 ecommerce: { 1716 currency: "EUR", 1717 value, 1718 items: [ 1719 { 1720 ...rest, 1721 item_list_name: "Vehicle list", 1722 pickup_date, 1723 pickup_time, 1724 return_date, 1725 return_time 1726 } 1727 ] 1728 } 1729 }); 1730} 1731__turbopack_context__.s([ 1732 "purchase", 1733 0, 1734 purchase, 1735 "refund", 1736 0, 1737 refund 1738], 340551); 1739var __TURBOPACK__imported__module__340551__ = __turbopack_context__.i(340551); 1740// MERGED MODULE: [project]/src/analytics/Tracking/user.ts [app-client] (ecmascript) 1741; 1742var __TURBOPACK__imported__module__432082__5 = __TURBOPACK__imported__module__432082__; 1743; 1744async function sha256Hex(input) { 1745 if (!input) return undefined; 1746 if (typeof crypto === "undefined" || !crypto.subtle) return undefined; 1747 const buffer = new TextEncoder().encode(input); 1748 const hashBuffer = await crypto.subtle.digest("SHA-256", buffer); 1749 const hashBytes = new Uint8Array(hashBuffer); 1750 return Array.from(hashBytes, (byte)=>byte.toString(16).padStart(2, "0")).join(""); 1751} 1752async function userLoggedIn(param) { 1753 let { account, preferences } = param; 1754 var _ref, _ref1, _ref2, _ref3; 1755 var _preferencesValues_postalCode; 1756 const preferencesValues = preferences === null || preferences === void 0 ? void 0 : preferences.preferences; 1757 const city = (_ref = preferencesValues === null || preferencesValues === void 0 ? void 0 : preferencesValues.city) !== null && _ref !== void 0 ? _ref : undefined; 1758 const postalCode = (_ref1 = preferencesValues === null || preferencesValues === void 0 ? void 0 : (_preferencesValues_postalCode = preferencesValues.postalCode) === null || _preferencesValues_postalCode === void 0 ? void 0 : _preferencesValues_postalCode.slice(0, 4)) !== null && _ref1 !== void 0 ? _ref1 : undefined; 1759 const countryCode = (_ref2 = preferencesValues === null || preferencesValues === void 0 ? void 0 : preferencesValues.countryCode) !== null && _ref2 !== void 0 ? _ref2 : undefined; 1760 const regionNames = new Intl.DisplayNames([ 1761 "en" 1762 ], { 1763 type: "region" 1764 }); 1765 const regionName = countryCode ? regionNames.of(countryCode) : undefined; 1766 const email = account.email; 1767 const phone = (_ref3 = preferencesValues === null || preferencesValues === void 0 ? void 0 : preferencesValues.phone) !== null && _ref3 !== void 0 ? _ref3 : undefined; 1768 const [emailHash, phoneHash] = await Promise.all([ 1769 sha256Hex(email), 1770 sha256Hex(phone) 1771 ]); 1772 (0, __TURBOPACK__imported__module__432082__5["dataLayer"])({ 1773 event: "user_logged_in", 1774 user_id: account.relationNumber, 1775 user_email_hash: emailHash, 1776 user_phone_hash: phoneHash, 1777 user_name: account.name, 1778 user_city: city, 1779 user_country: regionName, 1780 user_postal_code: postalCode 1781 }); 1782} 1783__turbopack_context__.s([ 1784 "userLoggedIn", 1785 0, 1786 userLoggedIn 1787], 234877); 1788var __TURBOPACK__imported__module__234877__ = __turbopack_context__.i(234877); 1789// MERGED MODULE: [project]/src/analytics/Tracking/wishlist.ts [app-client] (ecmascript) 1790; 1791var __TURBOPACK__imported__module__401851__4 = __TURBOPACK__imported__module__401851__; 1792var __TURBOPACK__imported__module__432082__6 = __TURBOPACK__imported__module__432082__; 1793; 1794; 1795function addToWishlist(param) { 1796 let { item } = param; 1797 const { pickup: pickupDate, return: returnDate, ...rest } = item; 1798 const pickup_date = (0, __TURBOPACK__imported__module__401851__4["format"])(pickupDate, "dd-MM-yyyy"); 1799 const pickup_time = (0, __TURBOPACK__imported__module__401851__4["format"])(pickupDate, "HH:mm"); 1800 const return_date = returnDate ? (0, __TURBOPACK__imported__module__401851__4["format"])(returnDate, "dd-MM-yyyy") : undefined; 1801 const return_time = returnDate ? (0, __TURBOPACK__imported__module__401851__4["format"])(returnDate, "HH:mm") : undefined; 1802 (0, __TURBOPACK__imported__module__432082__6["dataLayer"])({ 1803 ecommerce: null 1804 }); 1805 (0, __TURBOPACK__imported__module__432082__6["dataLayer"])({ 1806 event: "add_to_wishlist", 1807 ecommerce: { 1808 currency: "EUR", 1809 value: 0, 1810 items: [ 1811 { 1812 ...rest, 1813 item_list_name: "Vehicle list", 1814 pickup_date, 1815 pickup_time, 1816 return_date, 1817 return_time 1818 } 1819 ] 1820 } 1821 }); 1822} 1823__turbopack_context__.s([ 1824 "addToWishlist", 1825 0, 1826 addToWishlist 1827], 911702); 1828var __TURBOPACK__imported__module__911702__ = __turbopack_context__.i(911702); 1829; 1830; 1831; 1832; 1833; 1834; 1835; 1836const Tracking = { 1837 ...__TURBOPACK__imported__module__708934__, 1838 ...__TURBOPACK__imported__module__202611__, 1839 ...__TURBOPACK__imported__module__136904__, 1840 ...__TURBOPACK__imported__module__843470__, 1841 ...__TURBOPACK__imported__module__340551__, 1842 ...__TURBOPACK__imported__module__234877__, 1843 ...__TURBOPACK__imported__module__911702__ 1844}; 1845const __TURBOPACK__default__export__ = Tracking; 1846__turbopack_context__.s([ 1847 "default", 1848 0, 1849 __TURBOPACK__default__export__ 1850], 857686); 1851}), 1852]); 1853 1854//# debugId=98caa171-f7d1-e5bb-019d-1ae2277cedf7
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.