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]="c9116c51-a3b6-0c99-b231-83033aec755c")}catch(e){}}(); 2(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, 3303536, ((__turbopack_context__) => { 4"use strict"; 5
6// src/focus-guards.tsx 7var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 8"use client"; 9var __defProp = Object.defineProperty; 10var __name = (target, value)=>__defProp(target, "name", { 11 value, 12 configurable: true 13 }); 14; 15var count = 0; 16var guards = null; 17function FocusGuards(props) { 18 useFocusGuards(); 19 return props.children; 20} 21__name(FocusGuards, "FocusGuards"); 22function useFocusGuards() { 23 __TURBOPACK__imported__module__271645__["useEffect"](()=>{ 24 if (!guards) { 25 guards = { 26 start: createFocusGuard(), 27 end: createFocusGuard() 28 }; 29 } 30 const { start, end } = guards; 31 if (document.body.firstElementChild !== start) { 32 document.body.insertAdjacentElement("afterbegin", start); 33 } 34 if (document.body.lastElementChild !== end) { 35 document.body.insertAdjacentElement("beforeend", end); 36 } 37 count++; 38 return ()=>{ 39 if (count === 1) { 40 guards === null || guards === void 0 ? void 0 : guards.start.remove(); 41 guards === null || guards === void 0 ? void 0 : guards.end.remove(); 42 guards = null; 43 } 44 count = Math.max(0, count - 1); 45 }; 46 }, []); 47} 48__name(useFocusGuards, "useFocusGuards"); 49function createFocusGuard() { 50 const element = document.createElement("span"); 51 element.setAttribute("data-radix-focus-guard", ""); 52 element.tabIndex = 0; 53 element.style.outline = "none"; 54 element.style.opacity = "0"; 55 element.style.position = "fixed"; 56 element.style.pointerEvents = "none"; 57 return element; 58} 59__name(createFocusGuard, "createFocusGuard"); 60; 61__turbopack_context__.s([ 62 "useFocusGuards", 63 0, 64 useFocusGuards 65]); 66}), 67765491, ((__turbopack_context__) => { 68"use strict"; 69
70// src/focus-scope.tsx 71var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 72var __TURBOPACK__imported__module__820783__ = __turbopack_context__.i(820783); 73var __TURBOPACK__imported__module__248425__ = __turbopack_context__.i(248425); 74var __TURBOPACK__imported__module__30207__ = __turbopack_context__.i(30207); 75var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 76"use client"; 77var __defProp = Object.defineProperty; 78var __name = (target, value)=>__defProp(target, "name", { 79 value, 80 configurable: true 81 }); 82; 83; 84; 85; 86; 87var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount"; 88var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount"; 89var EVENT_OPTIONS = { 90 bubbles: false, 91 cancelable: true 92}; 93var FocusScope = /* @__PURE__ */ __TURBOPACK__imported__module__271645__["forwardRef"](/* @__PURE__ */ __name(function FocusScope2(props, forwardedRef) { 94 const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props; 95 const [container, setContainer] = __TURBOPACK__imported__module__271645__["useState"](null); 96 const onMountAutoFocus = (0, __TURBOPACK__imported__module__30207__["useCallbackRef"])(onMountAutoFocusProp); 97 const onUnmountAutoFocus = (0, __TURBOPACK__imported__module__30207__["useCallbackRef"])(onUnmountAutoFocusProp); 98 const lastFocusedElementRef = __TURBOPACK__imported__module__271645__["useRef"](null); 99 const composedRefs = (0, __TURBOPACK__imported__module__820783__["useComposedRefs"])(forwardedRef, setContainer); 100 const focusScope = __TURBOPACK__imported__module__271645__["useRef"]({ 101 paused: false, 102 pause () { 103 this.paused = true; 104 }, 105 resume () { 106 this.paused = false; 107 } 108 }).current; 109 __TURBOPACK__imported__module__271645__["useEffect"](()=>{ 110 if (trapped) { 111 let handleFocusIn2 = function(event) { 112 if (focusScope.paused || !container) return; 113 const target = event.target; 114 if (container.contains(target)) { 115 lastFocusedElementRef.current = target; 116 } else { 117 focus(lastFocusedElementRef.current, { 118 select: true 119 }); 120 } 121 }, handleFocusOut2 = function(event) { 122 if (focusScope.paused || !container) return; 123 const relatedTarget = event.relatedTarget; 124 if (relatedTarget === null) return; 125 if (!container.contains(relatedTarget)) { 126 focus(lastFocusedElementRef.current, { 127 select: true 128 }); 129 } 130 }, handleMutations2 = function(mutations) { 131 const focusedElement = document.activeElement; 132 if (focusedElement !== document.body) return; 133 for (const mutation of mutations){ 134 if (mutation.removedNodes.length > 0) focus(container); 135 } 136 }; 137 var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2; 138 __name(handleFocusIn2, "handleFocusIn"); 139 __name(handleFocusOut2, "handleFocusOut"); 140 __name(handleMutations2, "handleMutations"); 141 document.addEventListener("focusin", handleFocusIn2); 142 document.addEventListener("focusout", handleFocusOut2); 143 const mutationObserver = new MutationObserver(handleMutations2); 144 if (container) mutationObserver.observe(container, { 145 childList: true, 146 subtree: true 147 }); 148 return ()=>{ 149 document.removeEventListener("focusin", handleFocusIn2); 150 document.removeEventListener("focusout", handleFocusOut2); 151 mutationObserver.disconnect(); 152 }; 153 } 154 }, [ 155 trapped, 156 container, 157 focusScope.paused 158 ]); 159 __TURBOPACK__imported__module__271645__["useEffect"](()=>{ 160 if (container) { 161 focusScopesStack.add(focusScope); 162 const previouslyFocusedElement = document.activeElement; 163 const hasFocusedCandidate = container.contains(previouslyFocusedElement); 164 if (!hasFocusedCandidate) { 165 const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS); 166 container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
167 container.dispatchEvent(mountEvent); 168 if (!mountEvent.defaultPrevented) { 169 focusFirst(removeLinks(getTabbableCandidates(container)), { 170 select: true 171 }); 172 if (document.activeElement === previouslyFocusedElement) { 173 focus(container); 174 } 175 } 176 } 177 return ()=>{ 178 container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus); 179 setTimeout(()=>{ 180 const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS); 181 container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus); 182 container.dispatchEvent(unmountEvent); 183 if (!unmountEvent.defaultPrevented) { 184 focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, { 185 select: true 186 }); 187 } 188 container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus); 189 focusScopesStack.remove(focusScope); 190 }, 0); 191 }; 192 } 193 }, [ 194 container, 195 onMountAutoFocus, 196 onUnmountAutoFocus, 197 focusScope 198 ]); 199 const handleKeyDown = __TURBOPACK__imported__module__271645__["useCallback"]((event)=>{ 200 if (!loop && !trapped) return; 201 if (focusScope.paused) return; 202 const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey; 203 const focusedElement = document.activeElement; 204 if (isTabKey && focusedElement) { 205 const container2 = event.currentTarget; 206 const [first, last] = getTabbableEdges(container2); 207 const hasTabbableElementsInside = first && last; 208 if (!hasTabbableElementsInside) { 209 if (focusedElement === container2) event.preventDefault(); 210 } else { 211 if (!event.shiftKey && focusedElement === last) { 212 event.preventDefault(); 213 if (loop) focus(first, { 214 select: true 215 }); 216 } else if (event.shiftKey && focusedElement === first) { 217 event.preventDefault(); 218 if (loop) focus(last, { 219 select: true 220 }); 221 } 222 } 223 } 224 }, [ 225 loop, 226 trapped, 227 focusScope.paused 228 ]); 229 return /* @__PURE__ */ (0, __TURBOPACK__imported__module__843476__["jsx"])(__TURBOPACK__imported__module__248425__["Primitive"].div, { 230 tabIndex: -1, 231 ...scopeProps, 232 ref: composedRefs, 233 onKeyDown: handleKeyDown 234 }); 235}, "FocusScope")); 236function focusFirst(candidates) { 237 let { select = false } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 238 const previouslyFocusedElement = document.activeElement; 239 for (const candidate of candidates){ 240 focus(candidate, { 241 select 242 }); 243 if (document.activeElement !== previouslyFocusedElement) return; 244 } 245} 246__name(focusFirst, "focusFirst"); 247function getTabbableEdges(container) { 248 const candidates = getTabbableCandidates(container); 249 const first = findVisible(candidates, container); 250 const last = findVisible(candidates.reverse(), container); 251 return [ 252 first, 253 last 254 ]; 255} 256__name(getTabbableEdges, "getTabbableEdges"); 257function getTabbableCandidates(container) { 258 const nodes = []; 259 const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { 260 acceptNode: /* @__PURE__ */ __name((node)=>{ 261 const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden"; 262 if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; 263 return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 264 }, "acceptNode") 265 }); 266 while(walker.nextNode())nodes.push(walker.currentNode); 267 return nodes; 268} 269__name(getTabbableCandidates, "getTabbableCandidates"); 270function findVisible(elements, container) { 271 const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({ 272 checkVisibilityCSS: true 273 }); 274 for (const element of elements){ 275 const hidden = canUseCheckVisibility ? !element.checkVisibility({ 276 checkVisibilityCSS: true 277 }) : isHidden(element, { 278 upTo: container 279 });
280 if (!hidden) { 281 return element; 282 } 283 } 284} 285__name(findVisible, "findVisible"); 286function isHidden(node, param) { 287 let { upTo } = param; 288 if (getComputedStyle(node).visibility === "hidden") return true; 289 while(node){ 290 if (upTo !== void 0 && node === upTo) return false; 291 if (getComputedStyle(node).display === "none") return true; 292 node = node.parentElement; 293 } 294 return false; 295} 296__name(isHidden, "isHidden"); 297function isSelectableInput(element) { 298 return element instanceof HTMLInputElement && "select" in element; 299} 300__name(isSelectableInput, "isSelectableInput"); 301function focus(element) { 302 let { select = false } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 303 if (element && element.focus) { 304 const previouslyFocusedElement = document.activeElement; 305 element.focus({ 306 preventScroll: true 307 }); 308 if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select(); 309 } 310} 311__name(focus, "focus"); 312var focusScopesStack = createFocusScopesStack(); 313function createFocusScopesStack() { 314 let stack = []; 315 return { 316 add (focusScope) { 317 const activeFocusScope = stack[0]; 318 if (focusScope !== activeFocusScope) { 319 activeFocusScope === null || activeFocusScope === void 0 ? void 0 : activeFocusScope.pause(); 320 } 321 stack = arrayRemove(stack, focusScope); 322 stack.unshift(focusScope); 323 }, 324 remove (focusScope) { 325 var _stack_; 326 stack = arrayRemove(stack, focusScope); 327 (_stack_ = stack[0]) === null || _stack_ === void 0 ? void 0 : _stack_.resume(); 328 } 329 }; 330} 331__name(createFocusScopesStack, "createFocusScopesStack"); 332function arrayRemove(array, item) { 333 const updatedArray = [ 334 ...array 335 ]; 336 const index = updatedArray.indexOf(item); 337 if (index !== -1) { 338 updatedArray.splice(index, 1); 339 } 340 return updatedArray; 341} 342__name(arrayRemove, "arrayRemove"); 343function removeLinks(items) { 344 return items.filter((item)=>item.tagName !== "A"); 345} 346__name(removeLinks, "removeLinks"); 347var Root = FocusScope; 348; 349__turbopack_context__.s([ 350 "FocusScope", 351 0, 352 FocusScope 353]); 354}), 355985369, ((__turbopack_context__) => { 356"use strict"; 357 358// MERGED MODULE: [project]/node_modules/react-remove-scroll/dist/es2015/Combination.js [app-client] (ecmascript) <export default as RemoveScroll> 359; 360// MERGED MODULE: [project]/node_modules/react-remove-scroll/dist/es2015/Combination.js [app-client] (ecmascript) 361; 362var __TURBOPACK__imported__module__290571__ = __turbopack_context__.i(290571); 363var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 364var __TURBOPACK__imported__module__209730__ = __turbopack_context__.i(209730); 365var __TURBOPACK__imported__module__663306__ = __turbopack_context__.i(663306); 366; 367; 368; 369; 370var ReactRemoveScroll = __TURBOPACK__imported__module__271645__["forwardRef"](function(props, ref) { 371 return __TURBOPACK__imported__module__271645__["createElement"](__TURBOPACK__imported__module__209730__["RemoveScroll"], (0, __TURBOPACK__imported__module__290571__["__assign"])({}, props, { 372 ref: ref, 373 sideCar: __TURBOPACK__imported__module__663306__["default"] 374 })); 375}); 376ReactRemoveScroll.classNames = __TURBOPACK__imported__module__209730__["RemoveScroll"].classNames; 377const __TURBOPACK__default__export__ = ReactRemoveScroll; 378__turbopack_context__.s([ 379 "RemoveScroll", 380 0, 381 __TURBOPACK__default__export__ 382], 985369); 383}), 384637275, ((__turbopack_context__) => { 385"use strict"; 386 387// MERGED MODULE: [project]/node_modules/date-fns/locale/nl.js [app-client] (ecmascript) 388; 389// MERGED MODULE: [project]/node_modules/date-fns/locale/nl/_lib/formatDistance.js [app-client] (ecmascript) 390; 391const formatDistanceLocale = { 392 lessThanXSeconds: { 393 one: "minder dan een seconde", 394 other: "minder dan {{count}} seconden" 395 }, 396 xSeconds: { 397 one: "1 seconde", 398 other: "{{count}} seconden" 399 }, 400 halfAMinute: "een halve minuut", 401 lessThanXMinutes: { 402 one: "minder dan een minuut", 403 other: "minder dan {{count}} minuten" 404 }, 405 xMinutes: { 406 one: "een minuut", 407 other: "{{count}} minuten" 408 }, 409 aboutXHours: { 410 one: "ongeveer 1 uur", 411 other: "ongeveer {{count}} uur" 412 }, 413 xHours: { 414 one: "1 uur", 415 other: "{{count}} uur" 416 }, 417 xDays: { 418 one: "1 dag", 419 other: "{{count}} dagen" 420 }, 421 aboutXWeeks: { 422 one: "ongeveer 1 week", 423 other: "ongeveer {{count}} weken" 424 }, 425 xWeeks: { 426 one: "1 week", 427 other: "{{count}} weken" 428 }, 429 aboutXMonths: { 430 one: "ongeveer 1 maand", 431 other: "ongeveer {{count}} maanden" 432 }, 433 xMonths: { 434 one: "1 maand", 435 other: "{{count}} maanden" 436 }, 437 aboutXYears: { 438 one: "ongeveer 1 jaar", 439 other: "ongeveer {{count}} jaar" 440 }, 441 xYears: { 442 one: "1 jaar", 443 other: "{{count}} jaar" 444 }, 445 overXYears: { 446 one: "meer dan 1 jaar", 447 other: "meer dan {{count}} jaar" 448 }, 449 almostXYears: { 450 one: "bijna 1 jaar", 451 other: "bijna {{count}} jaar" 452 } 453}; 454const formatDistance = (token, count, options)=>{ 455 let result; 456 const tokenValue = formatDistanceLocale[token]; 457 if (typeof tokenValue === "string") { 458 result = tokenValue; 459 } else if (count === 1) { 460 result = tokenValue.one; 461 } else { 462 result = tokenValue.other.replace("{{count}}", String(count)); 463 } 464 if (options === null || options === void 0 ? void 0 : options.addSuffix) { 465 if (options.comparison && options.comparison > 0) { 466 return "over " + result; 467 } else { 468 return result + " geleden"; 469 } 470 } 471 return result; 472}; 473// MERGED MODULE: [project]/node_modules/date-fns/locale/nl/_lib/formatLong.js [a
473pp-client] (ecmascript) 474; 475var __TURBOPACK__imported__module__515000__ = __turbopack_context__.i(515000); 476; 477const dateFormats = { 478 full: "EEEE d MMMM y", 479 long: "d MMMM y", 480 medium: "d MMM y", 481 short: "dd-MM-y" 482}; 483const timeFormats = { 484 full: "HH:mm:ss zzzz", 485 long: "HH:mm:ss z", 486 medium: "HH:mm:ss", 487 short: "HH:mm" 488}; 489const dateTimeFormats = { 490 full: "{{date}} 'om' {{time}}", 491 long: "{{date}} 'om' {{time}}", 492 medium: "{{date}}, {{time}}", 493 short: "{{date}}, {{time}}" 494}; 495const formatLong = { 496 date: (0, __TURBOPACK__imported__module__515000__["buildFormatLongFn"])({ 497 formats: dateFormats, 498 defaultWidth: "full" 499 }), 500 time: (0, __TURBOPACK__imported__module__515000__["buildFormatLongFn"])({ 501 formats: timeFormats, 502 defaultWidth: "full" 503 }), 504 dateTime: (0, __TURBOPACK__imported__module__515000__["buildFormatLongFn"])({ 505 formats: dateTimeFormats, 506 defaultWidth: "full" 507 }) 508}; 509// MERGED MODULE: [project]/node_modules/date-fns/locale/nl/_lib/formatRelative.js [app-client] (ecmascript) 510; 511const formatRelativeLocale = { 512 lastWeek: "'afgelopen' eeee 'om' p", 513 yesterday: "'gisteren om' p", 514 today: "'vandaag om' p", 515 tomorrow: "'morgen om' p", 516 nextWeek: "eeee 'om' p", 517 other: "P" 518}; 519const formatRelative = (token, _date, _baseDate, _options)=>formatRelativeLocale[token]; 520// MERGED MODULE: [project]/node_modules/date-fns/locale/nl/_lib/localize.js [app-client] (ecmascript) 521; 522var __TURBOPACK__imported__module__679564__ = __turbopack_context__.i(679564); 523; 524const eraValues = { 525 narrow: [ 526 "v.C.", 527 "n.C." 528 ], 529 abbreviated: [ 530 "v.Chr.", 531 "n.Chr." 532 ], 533 wide: [ 534 "voor Christus", 535 "na Christus" 536 ] 537}; 538const quarterValues = { 539 narrow: [ 540 "1", 541 "2", 542 "3", 543 "4" 544 ], 545 abbreviated: [ 546 "K1", 547 "K2", 548 "K3", 549 "K4" 550 ], 551 wide: [ 552 "1e kwartaal", 553 "2e kwartaal", 554 "3e kwartaal", 555 "4e kwartaal" 556 ] 557}; 558const monthValues = { 559 narrow: [ 560 "J", 561 "F", 562 "M", 563 "A", 564 "M", 565 "J", 566 "J", 567 "A", 568 "S", 569 "O", 570 "N", 571 "D" 572 ], 573 abbreviated: [ 574 "jan.", 575 "feb.", 576 "mrt.", 577 "apr.", 578 "mei", 579 "jun.", 580 "jul.", 581 "aug.", 582 "sep.", 583 "okt.", 584 "nov.", 585 "dec." 586 ], 587 wide: [ 588 "januari", 589 "februari", 590 "maart", 591 "april", 592 "mei", 593 "juni", 594 "juli", 595 "augustus", 596 "september", 597 "oktober", 598 "november", 599 "december" 600 ] 601}; 602const dayValues = { 603 narrow: [ 604 "Z", 605 "M", 606 "D", 607 "W", 608 "D", 609 "V", 610 "Z" 611 ], 612 short: [ 613 "zo", 614 "ma", 615 "di", 616 "wo", 617 "do", 618 "vr", 619 "za" 620 ], 621 abbreviated: [ 622 "zon", 623 "maa", 624 "din", 625 "woe", 626 "don", 627 "vri", 628 "zat" 629 ], 630 wide: [ 631 "zondag", 632 "maandag", 633 "dinsdag", 634 "woensdag", 635 "donderdag", 636 "vrijdag", 637 "zaterdag" 638 ] 639}; 640const dayPeriodValues = { 641 narrow: { 642 am: "AM", 643 pm: "PM", 644 midnight: "middernacht", 645 noon: "het middaguur", 646 morning: "'s ochtends", 647 afternoon: "'s middags", 648 evening: "'s avonds", 649 night: "'s nachts"
650 }, 651 abbreviated: { 652 am: "AM", 653 pm: "PM", 654 midnight: "middernacht", 655 noon: "het middaguur", 656 morning: "'s ochtends", 657 afternoon: "'s middags", 658 evening: "'s avonds", 659 night: "'s nachts" 660 }, 661 wide: { 662 am: "AM", 663 pm: "PM", 664 midnight: "middernacht", 665 noon: "het middaguur", 666 morning: "'s ochtends", 667 afternoon: "'s middags", 668 evening: "'s avonds", 669 night: "'s nachts" 670 } 671}; 672const ordinalNumber = (dirtyNumber, _options)=>{ 673 const number = Number(dirtyNumber); 674 return number + "e"; 675}; 676const localize = { 677 ordinalNumber, 678 era: (0, __TURBOPACK__imported__module__679564__["buildLocalizeFn"])({ 679 values: eraValues, 680 defaultWidth: "wide" 681 }), 682 quarter: (0, __TURBOPACK__imported__module__679564__["buildLocalizeFn"])({ 683 values: quarterValues, 684 defaultWidth: "wide", 685 argumentCallback: (quarter)=>quarter - 1 686 }), 687 month: (0, __TURBOPACK__imported__module__679564__["buildLocalizeFn"])({ 688 values: monthValues, 689 defaultWidth: "wide" 690 }), 691 day: (0, __TURBOPACK__imported__module__679564__["buildLocalizeFn"])({ 692 values: dayValues, 693 defaultWidth: "wide" 694 }), 695 dayPeriod: (0, __TURBOPACK__imported__module__679564__["buildLocalizeFn"])({ 696 values: dayPeriodValues, 697 defaultWidth: "wide" 698 }) 699}; 700// MERGED MODULE: [project]/node_modules/date-fns/locale/nl/_lib/match.js [app-client] (ecmascript) 701; 702var __TURBOPACK__imported__module__216283__ = __turbopack_context__.i(216283); 703var __TURBOPACK__imported__module__710961__ = __turbopack_context__.i(710961); 704; 705; 706const matchOrdinalNumberPattern = /^(\d+)e?/i; 707const parseOrdinalNumberPattern = /\d+/i; 708const matchEraPatterns = { 709 narrow: /^([vn]\.? ?C\.?)/, 710 abbreviated: /^([vn]\. ?Chr\.?)/, 711 wide: /^((voor|na) Christus)/ 712}; 713const parseEraPatterns = { 714 any: [ 715 /^v/, 716 /^n/ 717 ] 718}; 719const matchQuarterPatterns = { 720 narrow: /^[1234]/i, 721 abbreviated: /^K[1234]/i, 722 wide: /^[1234]e kwartaal/i 723}; 724const parseQuarterPatterns = { 725 any: [ 726 /1/i, 727 /2/i, 728 /3/i, 729 /4/i 730 ] 731}; 732const matchMonthPatterns = { 733 narrow: /^[jfmasond]/i, 734 abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, 735 wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i 736}; 737const parseMonthPatterns = { 738 narrow: [ 739 /^j/i, 740 /^f/i, 741 /^m/i, 742 /^a/i, 743 /^m/i, 744 /^j/i, 745 /^j/i, 746 /^a/i, 747 /^s/i, 748 /^o/i, 749 /^n/i, 750 /^d/i 751 ], 752 any: [ 753 /^jan/i, 754 /^feb/i, 755 /^m(r|a)/i, 756 /^apr/i, 757 /^mei/i, 758 /^jun/i, 759 /^jul/i, 760 /^aug/i, 761 /^sep/i, 762 /^okt/i, 763 /^nov/i, 764 /^dec/i 765 ] 766}; 767const matchDayPatterns = { 768 narrow: /^[zmdwv]/i, 769 short: /^(zo|ma|di|wo|do|vr|za)/i, 770 abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, 771 wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i 772}; 773const parseDayPatterns = { 774 narrow: [ 775 /^z/i, 776 /^m/i, 777 /^d/i, 778 /^w/i, 779 /^d/i, 780 /^v/i, 781 /^z/i 782 ], 783 any: [ 784 /^zo/i, 785 /^ma/i, 786 /^di/i, 787 /^wo/i, 788 /^do/i, 789 /^vr/i, 790 /^za/i 791 ] 792}; 793const matchDayPeriodPatterns = { 794 any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i 795}; 796const parseDayPeriodPatterns = { 797 any: { 798 am: /^am/i, 799 pm: /^pm/i, 800 midnight: /^middernacht/i, 801 noon: /^het middaguur/i, 802 morning: /ochtend/i, 803 afternoon: /middag/i, 804 evening: /avond/i, 805 night: /nacht/i 806 } 807}; 808const match = { 809 ordinalNumber: (0, __TURBOPACK__imported__module__710961__["buildMatchPatternFn"])({ 810 matchPattern: matchOrdinalNumberPattern, 811 parsePattern: parseOrdinalNumberPattern, 812 valueCallback: (value)=>parseInt(value, 10) 813 }), 814 era: (0, __TURBOPACK__imported__module__216283__["buildMatchFn"])({ 815 matchPatterns: matchEraPatterns, 816 defaultMatchWidth: "wide", 817 parsePatterns: parseEraPatterns, 818 defaultParseWidth: "any" 819 }), 820 quarter: (0, __TURBOPACK__imported__module__216283__["buildMatchFn"])({ 821 matchPatterns: matchQuarterPatterns, 822 defaultMatchWidth: "wide", 823 parsePatterns: parseQuarterPatterns, 824 defaultParseWidth: "any", 825 valueCallback: (index)=>index + 1 826 }), 827 month: (0, __TURBOPACK__imported__module__216283__["buildMatchFn"])({ 828 matchPatterns: matchMonthPatterns, 829 defaultMatchWidth: "wide", 830 parsePatterns: parseMonthPatterns, 831 defaultParseWidth: "any" 832 }), 833 day: (0, __TURBOPACK__imported__module__216283__["buildMatchFn"])({ 834 matchPatterns: matchDayPatterns, 835 defaultMatchWidth: "wide", 836 parsePatterns: parseDayPatterns, 837 defaultParseWidth: "any" 838 }), 839 dayPeriod: (0, __TURBOPACK__imported__module__216283__["buildMatchFn"])({ 840 matchPatterns: matchDayPeriodPatterns, 841 defaultMatchWidth: "any", 842 parsePatterns: parseDayPeriodPatterns, 843 defaultParseWidth: "any" 844 }) 845}; 846; 847; 848; 849; 850; 851const nl = { 852 code: "nl", 853 formatDistance: formatDistance, 854 formatLong: formatLong, 855 formatRelative: formatRelative, 856 localize: localize, 857 match: match, 858 options: { 859 weekStartsOn: 1 /* Monday */ , 860 firstWeekContainsDate: 4 861 } 862}; 863const __TURBOPACK__default__export__ = nl; 864__turbopack_context__.s([ 865 "nl", 866 0, 867 nl 868], 637275); 869}), 870299378, 688594, 871((__turbopack_context__) => { 872"use strict"; 873 874// MERGED MODULE: [project]/node_modules/date-fns/addYears.js [app-client] (ecmascript) 875; 876// MERGED MODULE: [project]/node_modules/date-fns/addMonths.js [app-client] (ecmascript) 877; 878var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 879var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 880; 881; 882function addMonths(date, amount, options) { 883 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 884 if (isNaN(amount)) return (0, __TURBOPACK__imported__module__677241__["constructFrom"])((options === null || options === void 0 ? void 0 : options.in) || date, NaN); 885 if (!amount) { 886 // If 0 months, no-op to avoid changing times in the hour before end of DST 887 return _date; 888 } 889 const dayOfMonth = _date.getDate(); 890 // The JS Date object supports date math by accepting out-of-bounds values for 891 // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and 892 // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we 893 // want except that dates will wrap around the end of a month, meaning that 894 // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So 895 // we'll default to the end of the desired month by adding 1 to the desired 896 // month and using a date of 0 to back up one day to the end of the desired 897 // month. 898 const endOfDesiredMonth = (0, __TURBOPACK__imported__module__677241__["constructFrom"])((options === null || options === void 0 ? void 0 : options.in) || date, _date.getTime()); 899 endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); 900 const daysInMonth = endOfDesiredMonth.getDate(); 901 if (dayOfMonth >= daysInMonth) { 902 // If we're already at the end of the month, then this is the correct date 903 // and we're done. 904 return endOfDesiredMonth; 905 } else { 906 // Otherwise, we now know that setting the original day-of-month value won't 907 // cause an overflow, so set the desired day-of-month. Note that we can't 908 // just set the date of `endOfDesiredMonth` because that object may have had 909 // its time changed in the unusual case where where a DST transition was on 910 // the last day of the month and its local time was in the hour skipped or 911 // repeated next to a DST transition. So we use `date` instead which is 912 // guaranteed to still have the original time. 913 _date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); 914 return _date; 915 } 916} 917const __TURBOPACK__default__export__ = addMonths; 918__turbopack_context__.s([ 919 "addMonths", 920 0, 921 addMonths 922], 688594); 923; 924function addYears(date, amount, options) { 925 return addMonths(date, amount * 12, options); 926} 927const __TURBOPACK__default__export__1 = addYears; 928__turbopack_context__.s([ 929 "addYears", 930 0, 931 addYears 932], 299378); 933}), 934520062, 707935, 935((__turbopack_context__) => { 936"use strict"; 937 938// MERGED MODULE: [project]/node_modules/date-fns/differenceInCalendarMonths.js [app-client] (ecmascript) 939; 940var __TURBOPACK__imported__module__845110__ = __turbopack_context__.i(845110); 941; 942function differenceInCalendarMonths(laterDate, earlierDate, options) {
943 const [laterDate_, earlierDate_] = (0, __TURBOPACK__imported__module__845110__["normalizeDates"])(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate); 944 const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); 945 const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); 946 return yearsDiff * 12 + monthsDiff; 947} 948const __TURBOPACK__default__export__ = differenceInCalendarMonths; 949__turbopack_context__.s([ 950 "differenceInCalendarMonths", 951 0, 952 differenceInCalendarMonths 953], 520062); 954// MERGED MODULE: [project]/node_modules/date-fns/endOfWeek.js [app-client] (ecmascript) 955; 956var __TURBOPACK__imported__module__455024__ = __turbopack_context__.i(455024); 957var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 958; 959; 960function endOfWeek(date, options) { 961 var _ref, _ref1, _ref2, _ref3; 962 var _options_locale_options, _options_locale, _defaultOptions_locale_options, _defaultOptions_locale; 963 const defaultOptions = (0, __TURBOPACK__imported__module__455024__["getDefaultOptions"])(); 964 const weekStartsOn = (_ref = (_ref1 = (_ref2 = (_ref3 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : options === null || options === void 0 ? void 0 : (_options_locale = options.locale) === null || _options_locale === void 0 ? void 0 : (_options_locale_options = _options_locale.options) === null || _options_locale_options === void 0 ? void 0 : _options_locale_options.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : defaultOptions.weekStartsOn) !== null && _ref1 !== void 0 ? _ref1 : (_defaultOptions_locale = defaultOptions.locale) === null || _defaultOptions_locale === void 0 ? void 0 : (_defaultOptions_locale_options = _defaultOptions_locale.options) === null || _defaultOptions_locale_options === void 0 ? void 0 : _defaultOptions_locale_options.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; 965 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 966 const day = _date.getDay(); 967 const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); 968 _date.setDate(_date.getDate() + diff); 969 _date.setHours(23, 59, 59, 999); 970 return _date; 971} 972const __TURBOPACK__default__export__1 = endOfWeek; 973__turbopack_context__.s([ 974 "endOfWeek", 975 0, 976 endOfWeek 977], 707935); 978}), 97939978, ((__turbopack_context__) => { 980"use strict"; 981 982var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 983; 984function endOfMonth(date, options) { 985 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in);
986 const month = _date.getMonth(); 987 _date.setFullYear(_date.getFullYear(), month + 1, 0); 988 _date.setHours(23, 59, 59, 999); 989 return _date; 990} 991const __TURBOPACK__default__export__ = endOfMonth; 992__turbopack_context__.s([ 993 "endOfMonth", 994 0, 995 endOfMonth 996]); 997}), 998885697, ((__turbopack_context__) => { 999"use strict"; 1000 1001var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1002; 1003function endOfYear(date, options) { 1004 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 1005 const year = _date.getFullYear(); 1006 _date.setFullYear(year + 1, 0, 0); 1007 _date.setHours(23, 59, 59, 999); 1008 return _date; 1009} 1010const __TURBOPACK__default__export__ = endOfYear; 1011__turbopack_context__.s([ 1012 "endOfYear", 1013 0, 1014 endOfYear 1015]); 1016}), 1017808960, ((__turbopack_context__) => { 1018"use strict"; 1019 1020var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1021; 1022function getMonth(date, options) { 1023 return (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in).getMonth(); 1024} 1025const __TURBOPACK__default__export__ = getMonth; 1026__turbopack_context__.s([ 1027 "getMonth", 1028 0, 1029 getMonth 1030]); 1031}), 1032205300, ((__turbopack_context__) => { 1033"use strict"; 1034 1035var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1036; 1037function getYear(date, options) { 1038 return (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); 1039} 1040const __TURBOPACK__default__export__ = getYear; 1041__turbopack_context__.s([ 1042 "getYear", 1043 0, 1044 getYear 1045]); 1046}), 1047614921, ((__turbopack_context__) => { 1048"use strict"; 1049 1050var __TURBOPACK__imported__module__845110__ = __turbopack_context__.i(845110); 1051; 1052function isSameMonth(laterDate, earlierDate, options) { 1053 const [laterDate_, earlierDate_] = (0, __TURBOPACK__imported__module__845110__["normalizeDates"])(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate); 1054 return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth(); 1055} 1056const __TURBOPACK__default__export__ = isSameMonth; 1057__turbopack_context__.s([ 1058 "isSameMonth", 1059 0, 1060 isSameMonth 1061]); 1062}), 1063626183, ((__turbopack_context__) => { 1064"use strict"; 1065 1066var __TURBOPACK__imported__module__845110__ = __turbopack_context__.i(845110); 1067; 1068function isSameYear(laterDate, earlierDate, options) { 1069 const [laterDate_, earlierDate_] = (0, __TURBOPACK__imported__module__845110__["normalizeDates"])(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate); 1070 return laterDate_.getFullYear() === earlierDate_.getFullYear(); 1071} 1072const __TURBOPACK__default__export__ = isSameYear; 1073__turbopack_context__.s([ 1074 "isSameYear", 1075 0, 1076 isSameYear 1077]); 1078}), 1079883998, ((__turbopack_context__) => { 1080"use strict"; 1081 1082var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 1083var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1084; 1085; 1086function max(dates, options) { 1087 let result; 1088 let context = options === null || options === void 0 ? void 0 : options.in; 1089 dates.forEach((date)=>{ 1090 // Use the first date object as the context function 1091 if (!context && typeof date === "object") context = __TURBOPACK__imported__module__677241__["constructFrom"].bind(null, date); 1092 const date_ = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, context); 1093 if (!result || result < date_ || isNaN(+date_)) result = date_; 1094 }); 1095 return (0, __TURBOPACK__imported__module__677241__["constructFrom"])(context, result || NaN); 1096} 1097const __TURBOPACK__default__export__ = max; 1098__turbopack_context__.s([ 1099 "max", 1100 0, 1101 max 1102]); 1103}), 1104499635, ((__turbopack_context__) => { 1105"use strict"; 1106 1107var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 1108var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1109; 1110; 1111function min(dates, options) { 1112 let result;
1113 let context = options === null || options === void 0 ? void 0 : options.in; 1114 dates.forEach((date)=>{ 1115 // Use the first date object as the context function 1116 if (!context && typeof date === "object") context = __TURBOPACK__imported__module__677241__["constructFrom"].bind(null, date); 1117 const date_ = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, context); 1118 if (!result || result > date_ || isNaN(+date_)) result = date_; 1119 }); 1120 return (0, __TURBOPACK__imported__module__677241__["constructFrom"])(context, result || NaN); 1121} 1122const __TURBOPACK__default__export__ = min; 1123__turbopack_context__.s([ 1124 "min", 1125 0, 1126 min 1127]); 1128}), 112951516, ((__turbopack_context__) => { 1130"use strict"; 1131 1132var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 1133var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1134; 1135; 1136function getDaysInMonth(date, options) { 1137 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 1138 const year = _date.getFullYear(); 1139 const monthIndex = _date.getMonth(); 1140 const lastDayOfMonth = (0, __TURBOPACK__imported__module__677241__["constructFrom"])(_date, 0); 1141 lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); 1142 lastDayOfMonth.setHours(0, 0, 0, 0); 1143 return lastDayOfMonth.getDate(); 1144} 1145const __TURBOPACK__default__export__ = getDaysInMonth; 1146__turbopack_context__.s([ 1147 "getDaysInMonth", 1148 0, 1149 getDaysInMonth 1150]); 1151}), 1152643551, ((__turbopack_context__) => { 1153"use strict"; 1154 1155var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 1156var __TURBOPACK__imported__module__51516__ = __turbopack_context__.i(51516); 1157var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1158; 1159; 1160; 1161function setMonth(date, month, options) { 1162 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 1163 const year = _date.getFullYear(); 1164 const day = _date.getDate(); 1165 const midMonth = (0, __TURBOPACK__imported__module__677241__["constructFrom"])((options === null || options === void 0 ? void 0 : options.in) || date, 0); 1166 midMonth.setFullYear(year, month, 15); 1167 midMonth.setHours(0, 0, 0, 0); 1168 const daysInMonth = (0, __TURBOPACK__imported__module__51516__["getDaysInMonth"])(midMonth); 1169 // Set the earlier date, allows to wrap Jan 31 to Feb 28 1170 _date.setMonth(month, Math.min(day, daysInMonth)); 1171 return _date; 1172} 1173const __TURBOPACK__default__export__ = setMonth; 1174__turbopack_context__.s([ 1175 "setMonth", 1176 0, 1177 setMonth 1178]); 1179}), 1180998756, ((__turbopack_context__) => { 1181"use strict"; 1182 1183var __TURBOPACK__imported__module__677241__ = __turbopack_context__.i(677241); 1184var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1185; 1186; 1187function setYear(date, year, options) { 1188 const date_ = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 1189 // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 1190 if (isNaN(+date_)) return (0, __TURBOPACK__imported__module__677241__["constructFrom"])((options === null || options === void 0 ? void 0 : options.in) || date, NaN); 1191 date_.setFullYear(year); 1192 return date_; 1193} 1194const __TURBOPACK__default__export__ = setYear; 1195__turbopack_context__.s([ 1196 "setYear", 1197 0, 1198 setYear 1199]); 1200}), 1201608199, ((__turbopack_context__) => { 1202"use strict"; 1203 1204var __TURBOPACK__imported__module__281092__ = __turbopack_context__.i(281092); 1205; 1206function startOfMonth(date, options) { 1207 const _date = (0, __TURBOPACK__imported__module__281092__["toDate"])(date, options === null || options === void 0 ? void 0 : options.in); 1208 _date.setDate(1); 1209 _date.setHours(0, 0, 0, 0); 1210 return _date; 1211} 1212const __TURBOPACK__default__export__ = startOfMonth; 1213__turbopack_context__.s([ 1214 "startOfMonth", 1215 0, 1216 startOfMonth 1217]); 1218}), 1219362753, 957668, 1220((__turbopack_context__) => { 1221"use strict"; 1222 1223// MERGED MODULE: [project]/src/app/(site)/[locale]/opslag-huren/utils.ts [app-client] (ecmascript) 1224; 1225// MERGED MODULE: [project]/src/app/(site)/[locale]/opslag-huren/constants.ts [app-client] (ecmascript) 1226; 1227const DEFAULT_STORAGE_LOCATION_ID = "01"; 1228const FUTURE_START_DAY_LIMIT_30_DAYS = 30; 1229const FUTURE_START_DAY_LIMIT_60_DAYS = 60; 1230const DEFAULT_DIMENSION_TYPE = "squareMeters"; 1231const ADDON_IMAGE_BASE_PATH = "/images/storage_addons"; 1232const STORAGE_ADDON_ID_IMAGE_MAPPING = { 1233 2: "verhuisdoos_48x32x36.png", 1234 3: "verhuisdoos_48x32x36.png", 1235 6: "garderobedoos_60x50x132_met_roede.png", 1236 7: "matrashoes_130x240_1p.png", 1237 10: "verhuisdoos_48x32x36.png", 1238 11: "matrashoes_220x240_2p.png", 1239 12: "stoelhoes_160x130.png", 1240 13: "bankhoes_300x130_23_zits.png", 1241 14: "wikkelfolie_rol_45cm_breed.png", 1242 15: "noppenfolie_5mtr_x_100cm.png", 1243 16: "inpakpapier_50x75_1_kg.png", 1244 17: "tape_breekbaar.png", 1245 18: "tape_extra_strong.png",
1246 19: "tapedispenser.png", 1247 20: "stellingkast_staal_180x90x40.png", 1248 21: "verhuisdeken_200x130.png", 1249 22: "spanband_per_stuk_25mm_x_250.png", 1250 23: "werkhandschoenen.png", 1251 24: "fallback.png", 1252 25: "cilinderslot_kaal[56].png", 1253 26: "diks_geurstokjes.png", 1254 29: "bestelbus.png" 1255}; 1256const CATEGORY_SHOW_ALL_VALUE = "__ALL__"; 1257__turbopack_context__.s([ 1258 "ADDON_IMAGE_BASE_PATH", 1259 0, 1260 ADDON_IMAGE_BASE_PATH, 1261 "CATEGORY_SHOW_ALL_VALUE", 1262 0, 1263 CATEGORY_SHOW_ALL_VALUE, 1264 "DEFAULT_DIMENSION_TYPE", 1265 0, 1266 DEFAULT_DIMENSION_TYPE, 1267 "DEFAULT_STORAGE_LOCATION_ID", 1268 0, 1269 DEFAULT_STORAGE_LOCATION_ID, 1270 "FUTURE_START_DAY_LIMIT_60_DAYS", 1271 0, 1272 FUTURE_START_DAY_LIMIT_60_DAYS, 1273 "STORAGE_ADDON_ID_IMAGE_MAPPING", 1274 0, 1275 STORAGE_ADDON_ID_IMAGE_MAPPING 1276], 957668); 1277; 1278function roundDownToOneDecimal(number) { 1279 return Math.floor(number * 10) / 10; 1280} 1281const getIsBusiness = (overview)=>{ 1282 var _overview_details; 1283 return (overview === null || overview === void 0 ? void 0 : (_overview_details = overview.details) === null || _overview_details === void 0 ? void 0 : _overview_details.accountType) === "company"; 1284}; 1285function mapCategoryToSelectValue(value) { 1286 return value !== null && value !== void 0 ? value : CATEGORY_SHOW_ALL_VALUE; 1287} 1288function mapSelectOptionToCategory(value) { 1289 return value === CATEGORY_SHOW_ALL_VALUE ? null : value; 1290} 1291__turbopack_context__.s([ 1292 "getIsBusiness", 1293 0, 1294 getIsBusiness, 1295 "mapCategoryToSelectValue", 1296 0, 1297 mapCategoryToSelectValue, 1298 "mapSelectOptionToCategory", 1299 0, 1300 mapSelectOptionToCategory, 1301 "roundDownToOneDecimal", 1302 0, 1303 roundDownToOneDecimal 1304], 362753); 1305}), 1306688886, ((__turbopack_context__) => { 1307"use strict"; 1308 1309// MERGED MODULE: [project]/src/generated/storage/reactQueries.tsx [app-client] (ecmascript) 1310; 1311var __TURBOPACK__imported__module__266027__ = __turbopack_context__.i(266027); 1312var __TURBOPACK__imported__module__197643__ = __turbopack_context__.i(197643); 1313// MERGED MODULE: [project]/src/generated/storage/apiClient.ts [app-client] (ecmascript) 1314; 1315async function apiStorageAddons(axiosInstance, params, query, requestConfig) { 1316 const response = await axiosInstance.request({ 1317 url: "storage/".concat(params.storageLocationId, "/addons"), 1318 method: "GET", 1319 params: query, 1320 ...requestConfig 1321 }); 1322 return response.data; 1323} 1324async function apiStorageCategories(axiosInstance, params, requestConfig) { 1325 const response = await axiosInstance.request({ 1326 url: "storage/".concat(params.storageLocationId, "/categories"), 1327 method: "GET", 1328 ...requestConfig 1329 }); 1330 return response.data; 1331} 1332async function apiStorageStorageLocationUnitTypes(axiosInstance, params, query, requestConfig) { 1333 const response = await axiosInstance.request({ 1334 url: "storage/".concat(params.storageLocationId, "/unitTypes"), 1335 method: "GET", 1336 params: query, 1337 ...requestConfig 1338 }); 1339 return response.data; 1340} 1341async function apiStorageTerminationTypes(axiosInstance, requestConfig) { 1342 const response = await axiosInstance.request({ 1343 url: "storage/terminationTypes", 1344 method: "GET", 1345 ...requestConfig 1346 }); 1347 return response.data; 1348} 1349async function apiStorageUnitTypes(axiosInstance, params, query, requestConfig) { 1350 const response = await axiosInstance.request({ 1351 url: "storage/".concat(params.storageLocationId, "/category/").concat(params.categoryId, "/unitTypes"), 1352 method: "GET", 1353 params: query, 1354 ...requestConfig 1355 }); 1356 return response.data; 1357} 1358; 1359; 1360; 1361function useStorageAddons(opts) { 1362 var _ref; 1363 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1364 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1365 options.enabled = options.enabled === true || options.enabled !== false && opts["storageLocationId"] !== undefined && opts["storageLocationId"] !== null; 1366 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1367 queryKey: useStorageAddons.queryKey(opts), 1368 queryFn: (param)=>{ 1369 let { signal } = param; 1370 var _opts, _requestConfig; 1371 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1372 throw new Error("Not all required variables where provided to 'useStorageAddons'. 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."); 1373 } 1374 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1375 opts.requestConfig.signal = signal; 1376 return apiStorageAddons(axiosInstance, { 1377 storageLocationId: opts["storageLocationId"] 1378 }, { 1379 excludeUnavailable: opts["excludeUnavailable"] 1380 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1381 }, 1382 ...options 1383 }); 1384} 1385/** 1386 * Base key used by useStorageAddons.queryKey() 1387 */ useStorageAddons.baseKey = ()=>[ 1388 "storage", 1389 "addons" 1390 ]; 1391/** 1392 * Query key used by useStorageAddons 1393 */ useStorageAddons.queryKey = (opts)=>{ 1394 var _opts_excludeUnavailable; 1395 return [ 1396 ...useStorageAddons.baseKey(), 1397 { 1398 storageLocationId: opts["storageLocationId"] 1399 }, 1400 { 1401 excludeUnavailable: (_opts_excludeUnavailable = opts["excludeUnavailable"]) !== null && _opts_excludeUnavailable !== void 0 ? _opts_excludeUnavailable : null 1402 } 1403 ]; 1404}; 1405/** 1406 * Fetch useStorageAddons via the queryClient and return the result 1407 */ useStorageAddons.fetch = (queryClient, axiosInstance, opts)=>{ 1408 return queryClient.fetchQuery({ 1409 queryKey: useStorageAddons.queryKey(opts), 1410 queryFn: ()=>{ 1411 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1412 throw new Error("Not all required variables where provided to 'useStorageAddons.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."); 1413 } 1414 return apiStorageAddons(axiosInstance, { 1415 storageLocationId: opts["storageLocationId"] 1416 }, { 1417 excludeUnavailable: opts["excludeUnavailable"] 1418 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1419 } 1420 }); 1421}; 1422/** 1423 * Prefetch useStorageAddons via the queryClient 1424 */ useStorageAddons.prefetch = (queryClient, axiosInstance, opts)=>{ 1425 return queryClient.prefetchQuery({ 1426 queryKey: useStorageAddons.queryKey(opts), 1427 queryFn: ()=>{ 1428 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1429 throw new Error("Not all required variables where provided to 'useStorageAddons.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."); 1430 } 1431 return apiStorageAddons(axiosInstance, { 1432 storageLocationId: opts["storageLocationId"] 1433 }, { 1434 excludeUnavailable: opts["excludeUnavailable"] 1435 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1436 } 1437 }); 1438}; 1439/** 1440 * Invalidate useStorageAddons via the queryClient 1441 */ useStorageAddons.invalidate = (queryClient, opts)=>
1441queryClient.invalidateQueries({ 1442 queryKey: useStorageAddons.queryKey(opts) 1443 }); 1444/** 1445 * Set query data for useStorageAddons via the queryClient 1446 */ useStorageAddons.setQueryData = (queryClient, opts, data)=>{ 1447 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1448 throw new Error("Not all required variables where provided to 'useStorageAddons.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."); 1449 } 1450 return queryClient.setQueryData(useStorageAddons.queryKey(opts), data); 1451}; 1452function useStorageCategories(opts) { 1453 var _ref; 1454 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1455 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1456 options.enabled = options.enabled === true || options.enabled !== false && opts["storageLocationId"] !== undefined && opts["storageLocationId"] !== null; 1457 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1458 queryKey: useStorageCategories.queryKey(opts), 1459 queryFn: (param)=>{ 1460 let { signal } = param; 1461 var _opts, _requestConfig; 1462 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1463 throw new Error("Not all required variables where provided to 'useStorageCategories'. 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."); 1464 } 1465 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1466 opts.requestConfig.signal = signal; 1467 return apiStorageCategories(axiosInstance, { 1468 storageLocationId: opts["storageLocationId"] 1469 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1470 }, 1471 ...options 1472 }); 1473} 1474/** 1475 * Base key used by useStorageCategories.queryKey() 1476 */ useStorageCategories.baseKey = ()=>[ 1477 "storage", 1478 "categories" 1479 ]; 1480/** 1481 * Query key used by useStorageCategories 1482 */ useStorageCategories.queryKey = (opts)=>[ 1483 ...useStorageCategories.baseKey(), 1484 { 1485 storageLocationId: opts["storageLocationId"] 1486 } 1487 ]; 1488/** 1489 * Fetch useStorageCategories via the queryClient and return the result 1490 */ useStorageCategories.fetch = (queryClient, axiosInstance, opts)=>{ 1491 return queryClient.fetchQuery({ 1492 queryKey: useStorageCategories.queryKey(opts), 1493 queryFn: ()=>{ 1494 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1495 throw new Error("Not all required variables where provided to 'useStorageCategories.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."); 1496 } 1497 return apiStorageCategories(axiosInstance, { 1498 storageLocationId: opts["storageLocationId"] 1499 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1500 } 1501 }); 1502}; 1503/** 1504 * Prefetch useStorageCategories via the queryClient 1505 */ useStorageCategories.prefetch = (queryClient, axiosInstance, opts)=>{ 1506 return queryClient.prefetchQuery({ 1507 queryKey: useStorageCategories.queryKey(opts), 1508 queryFn: ()=>{ 1509 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1510 throw new Error("Not all required variables where provided to 'useStorageCategories.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."); 1511 } 1512 return apiStorageCategories(axiosInstance, { 1513 storageLocationId: opts["storageLocationId"] 1514 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1515 } 1516 }); 1517}; 1518/** 1519 * Invalidate useStorageCategories via the queryClient 1520 */ useStorageCategories.invalidate = (queryClient, opts)=>
1520queryClient.invalidateQueries({ 1521 queryKey: useStorageCategories.queryKey(opts) 1522 }); 1523/** 1524 * Set query data for useStorageCategories via the queryClient 1525 */ useStorageCategories.setQueryData = (queryClient, opts, data)=>{ 1526 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1527 throw new Error("Not all required variables where provided to 'useStorageCategories.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."); 1528 } 1529 return queryClient.setQueryData(useStorageCategories.queryKey(opts), data); 1530}; 1531function useStorageStorageLocationUnitTypes(opts) { 1532 var _ref; 1533 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1534 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1535 options.enabled = options.enabled === true || options.enabled !== false && opts["storageLocationId"] !== undefined && opts["storageLocationId"] !== null; 1536 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1537 queryKey: useStorageStorageLocationUnitTypes.queryKey(opts), 1538 queryFn: (param)=>{ 1539 let { signal } = param; 1540 var _opts, _requestConfig; 1541 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1542 throw new Error("Not all required variables where provided to 'useStorageStorageLocationUnitTypes'. 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."); 1543 } 1544 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1545 opts.requestConfig.signal = signal; 1546 return apiStorageStorageLocationUnitTypes(axiosInstance, { 1547 storageLocationId: opts["storageLocationId"] 1548 }, { 1549 excludeFull: opts["excludeFull"], 1550 categoryId: opts["categoryId"] 1551 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1552 }, 1553 ...options 1554 }); 1555} 1556/** 1557 * Base key used by useStorageStorageLocationUnitTypes.queryKey() 1558 */ useStorageStorageLocationUnitTypes.baseKey = ()=>[ 1559 "storage", 1560 "storageLocationUnitTypes" 1561 ]; 1562/** 1563 * Query key used by useStorageStorageLocationUnitTypes 1564 */ useStorageStorageLocationUnitTypes.queryKey = (opts)=>{ 1565 var _opts_excludeFull, _opts_categoryId; 1566 return [ 1567 ...useStorageStorageLocationUnitTypes.baseKey(), 1568 { 1569 storageLocationId: opts["storageLocationId"] 1570 }, 1571 { 1572 excludeFull: (_opts_excludeFull = opts["excludeFull"]) !== null && _opts_excludeFull !== void 0 ? _opts_excludeFull : null, 1573 categoryId: (_opts_categoryId = opts["categoryId"]) !== null && _opts_categoryId !== void 0 ? _opts_categoryId : null 1574 } 1575 ]; 1576}; 1577/** 1578 * Fetch useStorageStorageLocationUnitTypes via the queryClient and return the result 1579 */ useStorageStorageLocationUnitTypes.fetch = (queryClient, axiosInstance, opts)=>{ 1580 return queryClient.fetchQuery({ 1581 queryKey: useStorageStorageLocationUnitTypes.queryKey(opts), 1582 queryFn: ()=>{ 1583 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1584 throw new Error("Not all required variables where provided to 'useStorageStorageLocationUnitTypes.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."); 1585 } 1586 return apiStorageStorageLocationUnitTypes(axiosInstance, { 1587 storageLocationId: opts["storageLocationId"] 1588 }, { 1589 excludeFull: opts["excludeFull"], 1590 categoryId: opts["categoryId"] 1591 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1592 } 1593 }); 1594}; 1595/** 1596 * Prefetch useStorageStorageLocationUnitTypes via the queryClient 1597 */ useStorageStorageLocationUnitTypes.prefetch = (queryClient, axiosInstance, opts)=>{ 1598 return queryClient.prefetchQuery({ 1599 queryKey: useStorageStorageLocationUnitTypes.queryKey(opts), 1600 queryFn: ()=>{ 1601 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1602 throw new Error("Not all required variables where provided to 'useStorageStorageLocationUnitTypes.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."); 1603 } 1604 return apiStorageStorageLocationUnitTypes(axiosInstance, { 1605 storageLocationId: opts["storageLocationId"] 1606 }, { 1607 excludeFull: opts["excludeFull"], 1608 categoryId: opts["categoryId"] 1609 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1610 } 1611 }); 1612}; 1613/** 1614 * Invalidate useStorageStorageLocationUnitTypes via the queryClient 1615 */ useStorageStorageLocationUnitTypes.invalidate = (queryClient, opts)=>
1615queryClient.invalidateQueries({ 1616 queryKey: useStorageStorageLocationUnitTypes.queryKey(opts) 1617 }); 1618/** 1619 * Set query data for useStorageStorageLocationUnitTypes via the queryClient 1620 */ useStorageStorageLocationUnitTypes.setQueryData = (queryClient, opts, data)=>{ 1621 if (opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1622 throw new Error("Not all required variables where provided to 'useStorageStorageLocationUnitTypes.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."); 1623 } 1624 return queryClient.setQueryData(useStorageStorageLocationUnitTypes.queryKey(opts), data); 1625}; 1626function useStorageTerminationTypes() { 1627 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1628 var _ref; 1629 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1630 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1631 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1632 queryKey: useStorageTerminationTypes.queryKey(), 1633 queryFn: (param)=>{ 1634 let { signal } = param; 1635 var _opts, _requestConfig; 1636 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1637 opts.requestConfig.signal = signal; 1638 return apiStorageTerminationTypes(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1639 }, 1640 ...options 1641 }); 1642} 1643/** 1644 * Base key used by useStorageTerminationTypes.queryKey() 1645 */ useStorageTerminationTypes.baseKey = ()=>[ 1646 "storage", 1647 "terminationTypes" 1648 ]; 1649/** 1650 * Query key used by useStorageTerminationTypes 1651 */ useStorageTerminationTypes.queryKey = ()=>[ 1652 ...useStorageTerminationTypes.baseKey() 1653 ]; 1654/** 1655 * Fetch useStorageTerminationTypes via the queryClient and return the result 1656 */ useStorageTerminationTypes.fetch = (queryClient, axiosInstance, opts)=>{ 1657 return queryClient.fetchQuery({ 1658 queryKey: useStorageTerminationTypes.queryKey(), 1659 queryFn: ()=>{ 1660 return apiStorageTerminationTypes(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1661 } 1662 }); 1663}; 1664/** 1665 * Prefetch useStorageTerminationTypes via the queryClient 1666 */ useStorageTerminationTypes.prefetch = (queryClient, axiosInstance, opts)=>{ 1667 return queryClient.prefetchQuery({ 1668 queryKey: useStorageTerminationTypes.queryKey(), 1669 queryFn: ()=>{ 1670 return apiStorageTerminationTypes(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1671 } 1672 }); 1673}; 1674/** 1675 * Invalidate useStorageTerminationTypes via the queryClient 1676 */ useStorageTerminationTypes.invalidate = (queryClient)=>queryClient.invalidateQueries({ 1677 queryKey: useStorageTerminationTypes.queryKey() 1678 }); 1679/** 1680 * Set query data for useStorageTerminationTypes via the queryClient 1681 */ useStorageTerminationTypes.setQueryData = (queryClient, data)=>{ 1682 return queryClient.setQueryData(useStorageTerminationTypes.queryKey(), data); 1683}; 1684function useStorageUnitTypes(opts) { 1685 var _ref; 1686 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1687 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1688 options.enabled = options.enabled === true || options.enabled !== false && opts["categoryId"] !== undefined && opts["categoryId"] !== null && opts["storageLocationId"] !== undefined && opts["storageLocationId"] !== null; 1689 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1690 queryKey: useStorageUnitTypes.queryKey(opts), 1691 queryFn: (param)=>{ 1692 let { signal } = param; 1693 var _opts, _requestConfig; 1694 if (opts["categoryId"] === undefined || opts["categoryId"] === null || opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1695 throw new Error("Not all required variables where provided to 'useStorageUnitTypes'. 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."); 1696 } 1697 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1698 opts.requestConfig.signal = signal; 1699 return apiStorageUnitTypes(axiosInstance, { 1700 categoryId: opts["categoryId"], 1701 storageLocationId: opts["storageLocationId"] 1702 }, { 1703 excludeFull: opts["excludeFull"] 1704 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1705 }, 1706 ...options 1707 }); 1708} 1709/** 1710 * Base key used by useStorageUnitTypes.queryKey() 1711 */ useStorageUnitTypes.baseKey = ()=>[ 1712 "storage", 1713 "unitTypes" 1714 ]; 1715/** 1716 * Query key used by useStorageUnitTypes 1717 */ useStorageUnitTypes.queryKey = (opts)=>{ 1718 var _opts_excludeFull; 1719 return [ 1720 ...useStorageUnitTypes.baseKey(), 1721 { 1722 categoryId: opts["categoryId"], 1723 storageLocationId: opts["storageLocationId"] 1724 }, 1725 { 1726 excludeFull: (_opts_excludeFull = opts["excludeFull"]) !== null && _opts_excludeFull !== void 0 ? _opts_excludeFull : null 1727 } 1728 ]; 1729}; 1730/** 1731 * Fetch useStorageUnitTypes via the queryClient and return the result 1732 */ useStorageUnitTypes.fetch = (queryClient, axiosInstance, opts)=>{ 1733 return queryClient.fetchQuery({ 1734 queryKey: useStorageUnitTypes.queryKey(opts), 1735 queryFn: ()=>{ 1736 if (opts["categoryId"] === undefined || opts["categoryId"] === null || opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1737 throw new Error("Not all required variables where provided to 'useStorageUnitTypes.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."); 1738 } 1739 return apiStorageUnitTypes(axiosInstance, { 1740 categoryId: opts["categoryId"], 1741 storageLocationId: opts["storageLocationId"] 1742 }, { 1743 excludeFull: opts["excludeFull"] 1744 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1745 } 1746 }); 1747}; 1748/** 1749 * Prefetch useStorageUnitTypes via the queryClient 1750 */ useStorageUnitTypes.prefetch = (queryClient, axiosInstance, opts)=>{ 1751 return queryClient.prefetchQuery({ 1752 queryKey: useStorageUnitTypes.queryKey(opts), 1753 queryFn: ()=>{ 1754 if (opts["categoryId"] === undefined || opts["categoryId"] === null || opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1755 throw new Error("Not all required variables where provided to 'useStorageUnitTypes.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."); 1756 } 1757 return apiStorageUnitTypes(axiosInstance, { 1758 categoryId: opts["categoryId"], 1759 storageLocationId: opts["storageLocationId"] 1760 }, { 1761 excludeFull: opts["excludeFull"] 1762 }, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1763 } 1764 }); 1765}; 1766/** 1767 * Invalidate useStorageUnitTypes via the queryClient 1768 */ useStorageUnitTypes.invalidate = (queryClient, opts)=>
1768queryClient.invalidateQueries({ 1769 queryKey: useStorageUnitTypes.queryKey(opts) 1770 }); 1771/** 1772 * Set query data for useStorageUnitTypes via the queryClient 1773 */ useStorageUnitTypes.setQueryData = (queryClient, opts, data)=>{ 1774 if (opts["categoryId"] === undefined || opts["categoryId"] === null || opts["storageLocationId"] === undefined || opts["storageLocationId"] === null) { 1775 throw new Error("Not all required variables where provided to 'useStorageUnitTypes.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."); 1776 } 1777 return queryClient.setQueryData(useStorageUnitTypes.queryKey(opts), data); 1778}; 1779__turbopack_context__.s([ 1780 "useStorageAddons", 1781 0, 1782 useStorageAddons, 1783 "useStorageCategories", 1784 0, 1785 useStorageCategories, 1786 "useStorageStorageLocationUnitTypes", 1787 0, 1788 useStorageStorageLocationUnitTypes, 1789 "useStorageTerminationTypes", 1790 0, 1791 useStorageTerminationTypes 1792], 688886); 1793}), 1794]); 1795 1796//# debugId=c9116c51-a3b6-0c99-b231-83033aec755c
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.