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]="639ee2e3-24a3-617c-6eb5-95070ed47ce1")}catch(e){}}(); 2(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, 3660678, ((__turbopack_context__) => { 4"use strict"; 5 6// MERGED MODULE: [project]/node_modules/@tanstack/react-query/build/modern/HydrationBoundary.js [app-client] (ecmascript) 7; 8var __TURBOPACK__imported__module__912598__ = __turbopack_context__.i(912598); 9var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 10// MERGED MODULE: [project]/node_modules/@tanstack/query-core/build/modern/hydration.js [app-client] (ecmascript) 11; 12var __TURBOPACK__imported__module__247167__ = __turbopack_context__.i(247167); 13var __TURBOPACK__imported__module__619273__ = __turbopack_context__.i(619273); 14; 15//#region src/hydration.ts 16function tryResolveSync(promise) { 17 var _promise_then_catch, _promise_then; 18 let data; 19 (_promise_then = promise.then((result)=>{ 20 data = result; 21 return result; 22 }, __TURBOPACK__imported__module__619273__["noop"])) === null || _promise_then === void 0 ? void 0 : (_promise_then_catch = _promise_then.catch) === null || _promise_then_catch === void 0 ? void 0 : _promise_then_catch.call(_promise_then, __TURBOPACK__imported__module__619273__["noop"]); 23 if (data !== void 0) return { 24 data 25 }; 26} 27function dehydrateMutation(mutation) { 28 return { 29 mutationKey: mutation.options.mutationKey, 30 state: mutation.state, 31 ...mutation.options.scope && { 32 scope: mutation.options.scope 33 }, 34 ...mutation.meta && { 35 meta: mutation.meta 36 } 37 }; 38} 39function dehydratePromise(query, serializeData, shouldRedactErrors) { 40 var _query_promise; 41 const promise = (_query_promise = query.promise) === null || _query_promise === void 0 ? void 0 : _query_promise.then(serializeData).catch((error)=>{ 42 if ((shouldRedactErrors === null || shouldRedactErrors === void 0 ? void 0 : shouldRedactErrors(error)) === false) return Promise.reject(error); 43 if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable 44 ; 45 return Promise.reject(/* @__PURE__ */ new Error("redacted")); 46 }); 47 promise === null || promise === void 0 ? void 0 : promise.catch(__TURBOPACK__imported__module__619273__["noop"]); 48 return promise; 49} 50function dehydrateQuery(query, serializeData, shouldRedactErrors) { 51 return { 52 dehydratedAt: Date.now(), 53 state: { 54 ...query.state, 55 ...query.state.data !== void 0 && { 56 data: serializeData ? serializeData(query.state.data) : query.state.data 57 } 58 }, 59 queryKey: query.queryKey, 60 queryHash: query.queryHash, 61 ...query.state.status === "pending" && { 62 promise: dehydratePromise(query, serializeData, shouldRedactErrors) 63 }, 64 ...query.meta && { 65 meta: query.meta 66 }, 67 ...query.queryType && { 68 queryType: query.queryType 69 } 70 }; 71} 72function defaultShouldDehydrateMutation(mutation) { 73 return mutation.state.isPaused; 74} 75function defaultShouldDehydrateQuery(query) { 76 return query.state.status === "success"; 77} 78function dehydrate(client) { 79 let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 80 var _ref, _options_shouldDehydrateMutation, _ref1, _options_shouldDehydrateQuery, _options_shouldRedactErrors, _options_serializeData; 81 var _client_getDefaultOptions_dehydrate, _client_getDefaultOptions_dehydrate1, _client_getDefaultOptions_dehydrate2, _client_getDefaultOptions_dehydrate3; 82 const filterMutation = (_ref = (_options_shouldDehydrateMutation = options.shouldDehydrateMutation) !== null && _options_shouldDehydrateMutation !== void 0 ? _options_shouldDehydrateMutation : (_client_getDefaultOptions_dehydrate = client.getDefaultOptions().dehydrate) === null || _client_getDefaultOptions_dehydrate === void 0 ? void 0 : _client_getDefaultOptions_dehydrate.shouldDehydrateMutation) !== null && _ref !== void 0 ? _ref : defaultShouldDehydrateMutation; 83 const mutations = client.getMutationCache().getAll().flatMap((mutation)=>filterMutation(mutation) ? [ 84 dehydrateMutation(mutation) 85 ] : []); 86 const filterQuery = (_ref1 = (_options_shouldDehydrateQuery = options.shouldDehydrateQuery) !== null && _options_shouldDehydrateQuery !== void 0 ? _options_shouldDehydrateQuery : (_client_getDefaultOptions_dehydrate1 = client.getDefaultOptions().dehydrate) === null || _client_getDefaultOptions_dehydrate1 === void 0 ? void 0 : _client_getDefaultOptions_dehydrate1.shouldDehydrateQuery) !== null && _ref1 !== void 0 ? _ref1 : defaultShouldDehydrateQuery; 87 const shouldRedactErrors = (_options_shouldRedactErrors = options.shouldRedactErrors) !== null && _options_shouldRedactErrors !== void 0 ? _options_shouldRedactErrors : (_client_getDefaultOptions_dehydrate2 = client.getDefaultOptions().dehydrate) === null || _client_getDefaultOptions_dehydrate2 === void 0 ? void 0 : _client_getDefaultOptions_dehydrate2.shouldRedactErrors; 88 const serializeData = (_options_serializeData = options.serializeData) !== null && _options_serializeData !== void 0 ? _options_serializeData : (_client_getDefaultOptions_dehydrate3 = client.getDefaultOptions().dehydrate) === null || _client_getDefaultOptions_dehydrate3 === void 0 ? void 0 : _client_getDefaultOptions_dehydrate3.serializeData; 89 return { 90 mutations, 91 queries: client.getQueryCache().getAll().flatMap((query)=>filterQuery(query) ? [ 92 dehydrateQuery(query, serializeData, shouldRedactErrors) 93 ] : []) 94 }; 95} 96function hydrate(client, dehydratedState, options) { 97 var _ref; 98 var _options_defaultOptions, _client_getDefaultOptions_hydrate, _dehydratedState_mutations, _dehydratedState_queries; 99 const mutationCache = client.getMutationCache(); 100 const queryCache = client.getQueryCache(); 101 const deserializeData = (_ref = options === null || options === void 0 ? void 0 : (_options_defaultOptions = options.defaultOptions) === null || _options_defaultOptions === void 0 ? void 0 : _options_defaultOptions.deserializeData) !== null && _ref !== void 0 ? _ref : (_client_getDefaultOptions_hydrate = client.getDefaultOptions().hydrate) === null || _client_getDefaultOptions_hydrate === void 0 ? void 0 : _client_getDefaultOptions_hydrate.deserializeData; 102 (_dehydratedState_mutations = dehydratedState.mutations) === null || _dehydratedState_mutations === void 0 ? void 0 : _dehydratedState_mutations.forEach((param)=>{ 103 let { state, ...mutationOptions } = param; 104 var _client_getDefaultOptions_hydrate, _options_defaultOptions; 105 mutationCache.build(client, { 106 ...(_client_getDefaultOptions_hydrate = client.getDefaultOptions().hydrate) === null || _client_getDefaultOptions_hydrate === void 0 ? void 0 : _client_getDefaultOptions_hydrate.mutations, 107 ...options === null || options === void 0 ? void 0 : (_options_defaultOptions = options.defaultOptions) === null || _options_defaultOptions === void 0 ? void 0 : _options_defaultOptions.mutations, 108 ...mutationOptions 109 }, state); 110 }); 111 (_dehydratedState_queries = dehydratedState.queries) === null || _dehydratedState_queries === void 0 ? void 0 : _dehydratedState_queries.forEac
111h((param)=>{ 112 let { queryKey, state, queryHash, meta, promise, dehydratedAt, queryType } = param; 113 var _client_getDefaultOptions_hydrate, _options_defaultOptions; 114 const syncData = promise ? tryResolveSync(promise) : void 0; 115 const rawData = state.data === void 0 ? syncData === null || syncData === void 0 ? void 0 : syncData.data : state.data; 116 const data = rawData === void 0 ? rawData : deserializeData ? deserializeData(rawData) : rawData; 117 let query = queryCache.get(queryHash); 118 const existingQueryIsPending = (query === null || query === void 0 ? void 0 : query.state.status) === "pending"; 119 const existingQueryIsFetching = (query === null || query === void 0 ? void 0 : query.state.fetchStatus) === "fetching"; 120 if (query) { 121 const hasNewerSyncData = syncData && dehydratedAt !== void 0 && dehydratedAt > query.state.dataUpdatedAt; 122 if (state.dataUpdatedAt > query.state.dataUpdatedAt || hasNewerSyncData) { 123 const { fetchStatus: _ignored, ...serializedState } = state; 124 query.setState({ 125 ...serializedState, 126 data, 127 ...state.status === "pending" && data !== void 0 && { 128 status: "success", 129 dataUpdatedAt: dehydratedAt !== null && dehydratedAt !== void 0 ? dehydratedAt : Date.now(), 130 ...!existingQueryIsFetching && { 131 fetchStatus: "idle" 132 } 133 } 134 }); 135 } 136 } else query = queryCache.build(client, { 137 ...(_client_getDefaultOptions_hydrate = client.getDefaultOptions().hydrate) === null || _client_getDefaultOptions_hydrate === void 0 ? void 0 : _client_getDefaultOptions_hydrate.queries, 138 ...options === null || options === void 0 ? void 0 : (_options_defaultOptions = options.defaultOptions) === null || _options_defaultOptions === void 0 ? void 0 : _options_defaultOptions.queries, 139 queryKey, 140 queryHash, 141 meta, 142 _type: queryType 143 }, { 144 ...state, 145 data, 146 fetchStatus: "idle", 147 status: state.status === "pending" && data !== void 0 ? "success" : state.status, 148 ...state.status === "pending" && data !== void 0 && { 149 dataUpdatedAt: dehydratedAt !== null && dehydratedAt !== void 0 ? dehydratedAt : Date.now() 150 } 151 }); 152 if (promise && !syncData && !existingQueryIsPending && !existingQueryIsFetching && (dehydratedAt === void 0 || dehydratedAt > query.state.dataUpdatedAt)) query.fetch(void 0, { 153 initialPromise: Promise.resolve(promise).then(deserializeData) 154 }).catch(__TURBOPACK__imported__module__619273__["noop"]); 155 }); 156} 157; 158"use client"; 159; 160; 161; 162//#region src/HydrationBoundary.tsx 163const HydrationBoundary = (param)=>{ 164 let { children, options = {}, state, queryClient } = param; 165 const client = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(queryClient); 166 const optionsRef = __TURBOPACK__imported__module__271645__["useRef"](options); 167 __TURBOPACK__imported__module__271645__["useEffect"](()=>{ 168 optionsRef.current = options; 169 }); 170 const hydrationQueue = __TURBOPACK__imported__module__271645__["useMemo"](()=>{ 171 if (state) { 172 if (typeof state !== "object") return; 173 const queryCache = client.getQueryCache(); 174 const queries = state.queries || []; 175 const newQueries = []; 176 const existingQueries = []; 177 for (const dehydratedQuery of queries){ 178 const existingQuery = queryCache.get(dehydratedQuery.queryHash); 179 if (!existingQuery) newQueries.push(dehydratedQuery); 180 else if (dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt || dehydratedQuery.promise && existingQuery.state.status !== "pending" && existingQuery.state.fetchStatus !== "fetching" && dehydratedQuery.dehydratedAt !== void 0 && dehydratedQuery.dehydratedAt > existingQuery.state.dataUpdatedAt) existingQueries.push(dehydratedQuery); 181 } 182 if (newQueries.length > 0) hydrate(client, { 183 queries: newQueries 184 }, optionsRef.current); 185 if (existingQueries.length > 0) return existingQueries; 186 } 187 }, [ 188 client, 189 state 190 ]); 191 __TURBOPACK__imported__module__271645__["useEffect"](()=>{ 192 if (hydrationQueue) hydrate(client, { 193 queries: hydrationQueue 194 }, optionsRef.current); 195 }, [ 196 client, 197 hydrationQueue 198 ]); 199 return children; 200}; 201; 202__turbopack_context__.s([ 203 "HydrationBoundary", 204 0, 205 HydrationBoundary 206], 660678); 207}), 20843418, ((__turbopack_context__) => { 209"use strict"; 210 211// MERGED MODULE: [project]/node_modules/react-aria/dist/private/i18n/I18nProvider.mjs [app-client] (ecmascript) 212; 213// MERGED MODULE: [project]/node_modules/react-aria/dist/private/i18n/utils.mjs [app-client] (ecmascript) 214; 215/* 216 * Copyright 2020 Adobe. All rights reserved. 217 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
218 * you may not use this file except in compliance with the License. You may obtain a copy 219 * of the License at http://www.apache.org/licenses/LICENSE-2.0 220 * 221 * Unless required by applicable law or agreed to in writing, software distributed under 222 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS 223 * OF ANY KIND, either express or implied. See the License for the specific language 224 * governing permissions and limitations under the License. 225 */ // https://en.wikipedia.org/wiki/Right-to-left 226const $d805ff57cab8bee2$var$RTL_SCRIPTS = new Set([ 227 'Arab', 228 'Syrc', 229 'Samr', 230 'Mand', 231 'Thaa', 232 'Mend', 233 'Nkoo', 234 'Adlm', 235 'Rohg', 236 'Hebr' 237]); 238const $d805ff57cab8bee2$var$RTL_LANGS = new Set([ 239 'ae', 240 'ar', 241 'arc', 242 'bcc', 243 'bqi', 244 'ckb', 245 'dv', 246 'fa', 247 'glk', 248 'he', 249 'ku', 250 'mzn', 251 'nqo', 252 'pnb', 253 'ps', 254 'sd', 255 'ug', 256 'ur', 257 'yi' 258]); 259function $d805ff57cab8bee2$export$702d680b21cbd764(localeString) { 260 // If the Intl.Locale API is available, use it to get the locale's text direction. 261 if (Intl.Locale) { 262 let locale = new Intl.Locale(localeString).maximize(); 263 // Use the text info object to get the direction if possible. 264 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo 265 let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo; 266 if (textInfo) return textInfo.direction === 'rtl'; 267 // Fallback: guess using the script. 268 // This is more accurate than guessing by language, since languages can be written in multiple scripts. 269 if (locale.script) return $d805ff57cab8bee2$var$RTL_SCRIPTS.has(locale.script); 270 } 271 // If not, just guess by the language (first part of the locale) 272 let lang = localeString.split('-')[0]; 273 return $d805ff57cab8bee2$var$RTL_LANGS.has(lang); 274} 275; 276// MERGED MODULE: [project]/node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs [app-client] (ecmascript) 277; 278var __TURBOPACK__imported__module__343221__ = __turbopack_context__.i(343221); 279var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 280; 281; 282; 283/* 284 * Copyright 2020 Adobe. All rights reserved. 285 * This file is licensed to you under the Apache License, Version 2.0 (the "License"); 286 * you may not use this file except in compliance with the License. You may obtain a copy 287 * of the License at http://www.apache.org/licenses/LICENSE-2.0 288 * 289 * Unless required by applicable law or agreed to in writing, software distributed under 290 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS 291 * OF ANY KIND, either express or implied. See the License for the specific language 292 * governing permissions and limitations under the License. 293 */ // Locale passed from server by PackageLocalizationProvider. 294const $520a025cdb0d710d$var$localeSymbol = Symbol.for('react-aria.i18n.locale'); 295function $520a025cdb0d710d$export$f09106e7c6677ec5() { 296 let locale = typeof window !== 'undefined' && window[$520a025cdb0d710d$var$localeSymbol] || // @ts-ignore 297 typeof navigator !== 'undefined' && (navigator.language || navigator.userLanguage) || 'en-US'; 298 try { 299 Intl.DateTimeFormat.supportedLocalesOf([ 300 locale 301 ]); 302 } catch (unused) { 303 locale = 'en-US'; 304 } 305 return { 306 locale: locale, 307 direction: (0, $d805ff57cab8bee2$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr' 308 }; 309} 310let $520a025cdb0d710d$var$currentLocale = $520a025cdb0d710d$export$f09106e7c6677ec5(); 311let $520a025cdb0d710d$var$listeners = new Set(); 312function $520a025cdb0d710d$var$updateLocale() { 313 $520a025cdb0d710d$var$currentLocale = $520a025cdb0d710d$export$f09106e7c6677ec5(); 314 for (let listener of $520a025cdb0d710d$var$listeners)listener($520a025cdb0d710d$var$currentLocale); 315} 316function $520a025cdb0d710d$export$188ec29ebc2bdc3a() { 317 let isSSR = (0, __TURBOPACK__imported__module__343221__["useIsSSR"])(); 318 let [defaultLocale, setDefaultLocale] = (0, __TURBOPACK__imported__module__271645__["useState"])($520a025cdb0d710d$var$currentLocale); 319 (0, __TURBOPACK__imported__module__271645__["useEffect"])(()=>{ 320 if ($520a025cdb0d710d$var$listeners.size === 0) window.addEventListener('languagechange', $520a025cdb0d710d$var$updateLocale); 321 $520a025cdb0d710d$var$listeners.add(setDefaultLocale); 322 return ()=>{ 323 $520a025cdb0d710d$var$listeners.delete(setDefaultLocale); 324 if ($520a025cdb0d710d$var$listeners.size === 0) window.removeEventListener('languagechange', $520a025cdb0d710d$var$updateLocale); 325 }; 326 }, []); 327 // We cannot determine the browser's language on the server, so default to 328 // en-US. This will be updated after hydration on the client to the correct value. 329 if (isSSR) { 330 let locale = typeof window !== 'undefined' && window[$520a025cdb0d710d$var$localeSymbol]; 331 return { 332 locale: locale || 'en-US', 333 direction: 'ltr' 334 }; 335 } 336 return defaultLocale; 337} 338; 339var __TURBOPACK__imported__module__271645__1 = __TURBOPACK__imported__module__271645__; 340; 341; 342; 343/* 344 * Copyright 2020 Adobe. All rights reserved. 345 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
346 * you may not use this file except in compliance with the License. You may obtain a copy 347 * of the License at http://www.apache.org/licenses/LICENSE-2.0 348 * 349 * Unless required by applicable law or agreed to in writing, software distributed under 350 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS 351 * OF ANY KIND, either express or implied. See the License for the specific language 352 * governing permissions and limitations under the License. 353 */ const $2eb8e6d23f3d0cb0$var$I18nContext = /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__1["default"]).createContext(null); 354/** 355 * Internal component that handles the case when locale is provided. 356 */ function $2eb8e6d23f3d0cb0$var$I18nProviderWithLocale(props) { 357 let { locale: locale, children: children } = props; 358 let value = (0, __TURBOPACK__imported__module__271645__1["default"]).useMemo(()=>({ 359 locale: locale, 360 direction: (0, $d805ff57cab8bee2$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr' 361 }), [ 362 locale 363 ]); 364 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__1["default"]).createElement($2eb8e6d23f3d0cb0$var$I18nContext.Provider, { 365 value: value 366 }, children); 367} 368/** 369 * Internal component that handles the case when no locale is provided. 370 */ function $2eb8e6d23f3d0cb0$var$I18nProviderWithDefaultLocale(props) { 371 let { children: children } = props; 372 let defaultLocale = (0, $520a025cdb0d710d$export$188ec29ebc2bdc3a)(); 373 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__1["default"]).createElement($2eb8e6d23f3d0cb0$var$I18nContext.Provider, { 374 value: defaultLocale 375 }, children); 376} 377function $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82(props) { 378 let { locale: locale, children: children } = props; 379 // Conditionally render different components to avoid calling useDefaultLocale. 380 // This is necessary because useDefaultLocale triggers a re-render. 381 if (locale) return /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__1["default"]).createElement($2eb8e6d23f3d0cb0$var$I18nProviderWithLocale, { 382 locale: locale, 383 children: children 384 }); 385 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__1["default"]).createElement($2eb8e6d23f3d0cb0$var$I18nProviderWithDefaultLocale, { 386 children: children 387 }); 388} 389function $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7() { 390 let defaultLocale = (0, $520a025cdb0d710d$export$188ec29ebc2bdc3a)(); 391 let context = (0, __TURBOPACK__imported__module__271645__1["useContext"])($2eb8e6d23f3d0cb0$var$I18nContext); 392 return context || defaultLocale; 393} 394; 395__turbopack_context__.s([ 396 "I18nProvider", 397 0, 398 $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82, 399 "useLocale", 400 0, 401 $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 402], 43418); 403}), 404242398, ((__turbopack_context__) => { 405"use strict"; 406 407var __TURBOPACK__imported__module__247167__ = /*#__PURE__*/ __turbopack_context__.i(247167); 408var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 409var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 410var __TURBOPACK__imported__module__171725__ = __turbopack_context__.i(171725); 411"use client"; 412; 413; 414; 415__TURBOPACK__imported__module__171725__["default"].accessToken = ("TURBOPACK compile-time value", "pk.eyJ1IjoiZGlrc2F1dG92ZXJodXVyIiwiYSI6ImNsZzBzd3pncDFvdGYzZHF1NDdyaDU4ZzgifQ.3rdyRfp6IZ48JHnbColvzA"); 416const MapMarker = '<svg width="28" height="40" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 28 40"><path fill="#050C43" d="M0 14.0073c0-3.6749 1.4386-6.8829 3.2704-8.9841l-.0057-.0398C5.3307 2.5312 8.9517 0 13.955 0c.3721 0 .7305.0151 1.0707.0407l.4958.0456c.2405.0261.4694.0568.6848.0902l.4122.0695.3726.073.4775.1086.4662.1243.2783.0863-.0143.0172.0395-.0172c3.318 1.0683 6.1803 3.2595 7.9765 6.4844l.2076.3838.0961.171.1368.2711.1142.245.1278.2938.137.341.1422.3858.1431.4288C27.675 10.767 28 12.275 28 14.0253c0 1.6962-.2697 3.1936-.5871 4.3684l-.1383.4834a16.6371 16.6371 0 0 1-.1402.4416l-.1383.3979-.1324.3518-.1792.4367-.1824.401-.0931.1856c-.2521.5218-.5641 1.07-.9064 1.6189l-.3515.5482-.3652.5431-.3726.5322-.3733.5157-.3675.4935-.5264.6862-.3248.4131-1.0663 1.3211c-1.6522 2.0579-3.3511 4.2019-4.6937 6.6111-.4762.8809-.8325 1.7899-1.1947 2.85l-.3149.9485c-.0538.1652-.1083.3342-.1641.5073-.27.8031-.6191 1.3194-1.3858 1.3194-.7019 0-1.033-.3083-1.3858-1.3194l-.261-.7946-.2389-.7086-.2331-.6508c-.275-.7368-.5714-1.4138-1.0055-2.2342a26.8269 26.8269 0 0 0-.502-.8475l-.4082-.6482a42.9988 42.9988 0 0 0-.2221-.3416l-.4735-.7051c-.4087-.5958-.8487-1.2048-1.292-1.7745l-.2661-.3367-.3558-.4687-.372-.4761-.781-.9747-.8122-1.0056c-1.3673-1.702-2.7714-3.5356-3.7485-5.5177l-.3644-.7797-.1646-.3911-.1609-.4266-.1183-.3441-.1228-.3894-.1238-.4328a16.557 16.557 0 0 1-.061-.2321l-.1183-.494A17.0059 17.0059 0 0 1 0 14.0073Z"/><path fill="#F0C800" d="M11.4074 17.6468H9.5259L10.2863 11h1.8815l-.7604 6.6468ZM20.1897 11h-2.4331l-2.766 2.735L15.304 11h-1.8815l-.7609 6.6468h1.8814l.3129-2.735 2.1403 2.735h2.4331l-2.6006-3.3234L20.1897 11ZM2.761 11h2.6685c2.0157 0 3.5103 1.4544 3.296 3.3234-.2138 1.869-2.0507 3.3234-4.057 3.3234H2L2.761 11Zm1.288 5.1837h.4225c1.1234 0 2.1476-.5644 2.2962-1.8603.1364-1.1901-.6412-1.8603-1.8508-1.8603h-.4415l-.4264 3.7206Zm20.6902-3.2968c-.3151-.2643-.7365-.4407-1.1974-.4407-.3456 0-.8277.1851-.87.5552-.0445.388.447.5378.7626.6349l.4648.1324c.9764.2735 1.7006.7408 1.5776 1.8158-.0757.661-.3262 1.3399-.9536 1.7898-.6168.4406-1.3961.6257-2.1258.6257-.9118 0-1.7724-.2822-2.4571-.7581l.9658-1.3931c.4269.3793.9485.6876 1.5915.6876.4414 0 .9351-.2029.9886-.6702.0556-.4846-.6647-.6523-1.0554-.7581-1.1456-.3088-1.8904-.5905-1.7435-1.8777C20.8415 11.8818 21.9888 11 23.4383 11c.7298 0 1.5981.2116 2.2027.5465l-.9018 1.3404Z"/></svg>'; 417function SingleLocationMap(param) { 418 let { location } = param; 419 const styles = { 420 height: "100%", 421 width: "100%" 422 }; 423 const mapRef = (0, __TURBOPACK__imported__module__271645__["useRef"])(null); 424 const initializeMap = (0, __TURBOPACK__imported__module__271645__["useCallback"])((node)=>{ 425 var _mapRef_current; 426 if (!__TURBOPACK__imported__module__171725__["default"].supported()) { 427 return; 428 } 429 if (!node) { 430 var _mapRef_current1; 431 const container = (_mapRef_current1 = mapRef.current) === null || _mapRef_current1 === void 0 ? void 0 : _mapRef_current1.getContainer(); 432 if (container) { 433 // map.remove() doesn't seem to work nicely, so we manually clear the map's node. 434 container.innerHTML = ""; 435 } 436 mapRef.current = null; 437 } 438 if (node && node !== ((_mapRef_current = mapRef.current) === null || _mapRef_current === void 0 ? void 0 : _mapRef_current.getContainer())) { 439 mapRef.current = new __TURBOPACK__imported__module__171725__["default"].Map({ 440 container: node, 441 style: "mapbox://styles/diksautoverhuur/clg20fiw5000g01p49u16qrzm", 442 interactive: true, 443 zoom: 10 444 }); 445 } 446 }, []); 447 (0, __TURBOPACK__imported__module__271645__["useLayoutEffect"])(()=>{ 448 if (!!location && mapRef.current) { 449 const map = mapRef.current; 450 const el = document.createElement("div"); 451 el.innerHTML = MapMarker; 452 el.style.width = "28px"; 453 el.style.height = "40px"; 454 const longitude = parseFloat(location.coordinates.lng); 455 const latitude = parseFloat(location.coordinates.lat); 456 if (isNaN(longitude) || isNaN(latitude)) { 457 return; 458 } 459 const marker = new __TURBOPACK__imported__module__171725__["default"].Marker(el).setLngLat([ 460 longitude, 461 latitude 462 ]).addTo(map); 463 map.setCenter([ 464 longitude, 465 latitude 466 ]); 467 return ()=>{ 468 marker.remove(); 469 }; 470 } 471 }, [ 472 location 473 ]); 474 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 475 ref: initializeMap, 476 style: styles 477 }); 478} 479__turbopack_context__.s([ 480 "SingleLocationMap", 481 0, 482 SingleLocationMap 483]); 484}), 485795327, ((__turbopack_context__) => { 486"use strict"; 487 488var __TURBOPACK__imported__module__247167__ = /*#__PURE__*/ __turbopack_context__.i(247167); 489var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 490; 491//#region src/lib/errors.ts 492const errors = { 493 303: "Multiple adapter contexts detected. This might happen in monorepos.", 494 404: "nuqs requires an adapter to work with your framework.", 495 409: "Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.", 496 414: "Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.", 497 429: "URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",
498 500: "Empty search params cache. Search params can't be accessed in Layouts.", 499 501: "Search params cache already populated. Have you called `parse` twice?", 500 502: "`processUrlSearchParams` threw while processing key(s) `%s`. %O" 501}; 502function error(code) { 503 return "[nuqs] ".concat(errors[code], "\n See https://nuqs.dev/NUQS-").concat(code); 504} 505//#endregion 506//#region src/lib/url-encoding.ts 507function renderQueryString(search) { 508 if (search.size === 0) return ""; 509 const query = []; 510 for (const [key, value] of search.entries()){ 511 const safeKey = key.replace(/#/g, "%23").replace(/&/g, "%26").replace(/\+/g, "%2B").replace(/=/g, "%3D").replace(/\?/g, "%3F"); 512 query.push("".concat(safeKey, "=").concat(encodeQueryValue(value))); 513 } 514 const queryString = "?" + query.join("&"); 515 warnIfURLIsTooLong(queryString); 516 return queryString; 517} 518function encodeQueryValue(input) { 519 return input.replace(/%/g, "%25").replace(/\+/g, "%2B").replace(/ /g, "+").replace(/#/g, "%23").replace(/&/g, "%26").replace(/"/g, "%22").replace(/'/g, "%27").replace(/`/g, "%60").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/[\x00-\x1F]/g, (char)=>encodeURIComponent(char)); 520} 521const URL_MAX_LENGTH = 2e3; 522function warnIfURLIsTooLong(queryString) { 523 if (typeof location === "undefined") return; 524 if ("TURBOPACK compile-time truthy", 1) return; 525 //TURBOPACK unreachable 526 ; 527 const url = undefined; 528} 529//#endregion 530//#region src/lib/version.ts 531const version = "2.10.1"; 532//#endregion 533//#region src/lib/global-singleton.ts 534const fallbackRegistry = {}; 535/** 536* Store a module-level singleton on globalThis, keyed by library version, 537* so that duplicate copies of the library loaded side by side (e.g. in 538* monorepos, see issue #798) share the same instance instead of each 539* creating their own. Copies of different versions deliberately keep 540* separate instances, as internal state shapes may differ across versions. 541*/ function globalSingleton(scope, create) { 542 var _target, _key, _; 543 const key = Symbol.for("nuqs.".concat(version, ".").concat(scope)); 544 const registry = globalThis; 545 if (registry[key] != null) return registry[key]; 546 const target = Object.isExtensible(registry) ? registry : fallbackRegistry; 547 return (_ = (_target = target)[_key = key]) !== null && _ !== void 0 ? _ : _target[_key] = create(); 548} 549/** 550* Like globalSingleton, but additionally keyed by the identity of a 551* runtime object, for singletons that must not be shared across distinct 552* runtimes (e.g. one React context per React instance). 553*/ function globalWeakSingleton(scope, key, create) { 554 const instances = globalSingleton(scope, ()=>/* @__PURE__ */ new WeakMap()); 555 if (!instances.has(key)) instances.set(key, create()); 556 return instances.get(key); 557} 558//#endregion
559//#region src/adapters/lib/context.ts 560const context = globalWeakSingleton("adapter-context", __TURBOPACK__imported__module__271645__["createContext"], ()=>{ 561 const ctx = (0, __TURBOPACK__imported__module__271645__["createContext"])({ 562 useAdapter () { 563 throw new Error(error(404)); 564 } 565 }); 566 ctx.displayName = "NuqsAdapterContext"; 567 return ctx; 568}); 569if (typeof window !== "undefined") { 570 if (window.__NuqsAdapterContext && window.__NuqsAdapterContext !== context) console.error(error(303)); 571 window.__NuqsAdapterContext = context; 572} 573/** 574* Create a custom adapter (context provider) for nuqs to work with your framework / router. 575* 576* Adapters are based on React Context, 577* 578* @param useAdapter 579* @returns 580*/ function createAdapterProvider(useAdapter) { 581 return (param)=>{ 582 let { children, defaultOptions, processUrlSearchParams, ...props } = param; 583 return (0, __TURBOPACK__imported__module__271645__["createElement"])(context.Provider, { 584 ...props, 585 value: { 586 useAdapter, 587 defaultOptions, 588 processUrlSearchParams 589 } 590 }, children); 591 }; 592} 593function useAdapter(watchKeys) { 594 const value = (0, __TURBOPACK__imported__module__271645__["useContext"])(context); 595 if (!("useAdapter" in value)) throw new Error(error(404)); 596 return value.useAdapter(watchKeys); 597} 598const useAdapterDefaultOptions = ()=>(0, __TURBOPACK__imported__module__271645__["useContext"])(context).defaultOptions; 599const useAdapterProcessUrlSearchParams = ()=>(0, __TURBOPACK__imported__module__271645__["useContext"])(context).processUrlSearchParams; 600; 601__turbopack_context__.s([ 602 "a", 603 0, 604 useAdapterProcessUrlSearchParams, 605 "c", 606 0, 607 renderQueryString, 608 "i", 609 0, 610 useAdapterDefaultOptions, 611 "l", 612 0, 613 error, 614 "n", 615 0, 616 createAdapterProvider, 617 "o", 618 0, 619 globalSingleton, 620 "r", 621 0, 622 useAdapter, 623 "s", 624 0, 625 version 626]); 627}), 628594693, ((__turbopack_context__) => { 629"use strict"; 630 631var __TURBOPACK__imported__module__247167__ = /*#__PURE__*/ __turbopack_context__.i(247167); 632//#region src/lib/debug.ts 633let sink = null; 634/** 635* Install (or remove, with `null`) the function that renders debug logs. 636*/ function setDebugSink(newSink) { 637 sink = newSink; 638} 639function debug(code) { 640 for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ 641 args[_key - 1] = arguments[_key]; 642 } 643 sink === null || sink === void 0 ? void 0 : sink(code, args); 644} 645function warn(code) { 646 for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ 647 args[_key - 1] = arguments[_key]; 648 } 649 sink === null || sink === void 0 ? void 0 : sink(code, args, true); 650} 651function isDebugFlagSet() { 652 if (typeof window === "undefined") return typeof __TURBOPACK__imported__module__247167__["default"] !== "undefined" && (__TURBOPACK__imported__module__247167__["default"].env.DEBUG || "").includes("nuqs"); 653 try { 654 const test = "nuqs-localStorage-test"; 655 if (typeof localStorage === "undefined") return false; 656 localStorage.setItem(test, test); 657 const isStorageAvailable = localStorage.getItem(test) === test; 658 localStorage.removeItem(test); 659 return isStorageAvailable && (localStorage.getItem("debug") || "").includes("nuqs"); 660 } catch (unused) { 661 return false; 662 } 663} 664; 665__turbopack_context__.s([ 666 "i", 667 0, 668 warn, 669 "t", 670 0, 671 debug 672]); 673}), 674907293, ((__turbopack_context__) => { 675"use strict"; 676 677var __TURBOPACK__imported__module__540151__ = __turbopack_context__.i(540151); 678var __TURBOPACK__imported__module__594693__ = __turbopack_context__.i(594693); 679var __TURBOPACK__imported__module__795327__ = __turbopack_context__.i(795327); 680var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 681; 682; 683; 684; 685//#region src/lib/queues/rate-limiting.ts 686function getDefaultThrottle() { 687 if (typeof window === "undefined") return 50; 688 if (!Boolean(window.GestureEvent)) return 50; 689 try { 690 var _navigator_userAgent; 691 const match = (_navigator_userAgent = navigator.userAgent) === null || _navigator_userAgent === void 0 ? void 0 : _navigator_userAgent.match(/version\/([\d\.]+) safari/i); 692 return parseFloat(match[1]) >= 17 ? 120 : 320; 693 } catch (unused) { 694 return 320; 695 } 696} 697function throttle(timeMs) { 698 return { 699 method: "throttle", 700 timeMs 701 }; 702} 703function debounce(timeMs) { 704 return { 705 method: "debounce", 706 timeMs 707 }; 708} 709const defaultRateLimit = throttle(getDefaultThrottle()); 710//#endregion 711//#region src/lib/search-params.ts 712function isAbsentFromUrl(query) { 713 return query === null || Array.isArray(query) && query.length === 0; 714} 715function write(searchParams, key, serialized) { 716 if (typeof serialized === "string") searchParams.set(key, serialized); 717 else { 718 searchParams.delete(key); 719 for (const v of serialized)searchParams.append(key, v); 720 if (!searchParams.has(key)) searchParams.set(key, ""); 721 } 722 return searchParams; 723} 724function getSearchParams(url) { 725 if (url instanceof URL) return url.searchParams; 726 if (url.startsWith("?")) { 727 const hashIndex = url.indexOf("#"); 728 return new URLSearchParams(hashIndex === -1 ? url : url.slice(0, hashIndex)); 729 } 730 try { 731 return new URL(url, location.href).searchParams; 732 } catch (unused) { 733 return new URLSearchParams(url); 734 } 735} 736//#endregion 737//#region src/lib/emitter.ts 738function createEmitter() { 739 const all = /* @__PURE__ */ new Map(); 740 return { 741 on (type, handler) { 742 const handlers = all.get(type) || []; 743 handlers.push(handler); 744 all.set(type, handlers); 745 return ()=>this.off(type, handler); 746 }, 747 off (type, handler) { 748 const handlers = all.get(type); 749 if (handlers) all.set(type, handlers.filter((h)=>h !== handler)); 750 }, 751 emit (type, event) { 752 var _all_get; 753 (_all_get = all.get(type)) === null || _all_get === void 0 ? void 0 : _all_get.forEach((handler)=>handler(event)); 754 } 755 }; 756} 757//#endregion 758//#region src/lib/timeout.ts 759function timeout(callback, ms, signal) { 760 function onTick() { 761 callback(); 762 signal.removeEventListener("abort", onAbort); 763 } 764 const id = setTimeout(onTick, ms); 765 function onAbort() { 766 clearTimeout(id); 767 signal.removeEventListener("abort", onAbort); 768 } 769 signal.addEventListener("abort", onAbort); 770} 771//#endregion 772//#region src/lib/with-resolvers.ts 773function withResolvers() { 774 const P = Promise; 775 if (Promise.hasOwnProperty("withResolvers")) return Promise.withResolvers(); 776 let resolve = ()=>{}; 777 let reject = ()=>{}; 778 return { 779 promise: new P((res, rej)=>{ 780 resolve = res; 781 reject = rej; 782 }), 783 resolve, 784 reject 785 }; 786} 787//#endregion 788//#region src/lib/compose.ts 789function compose(fns, final) { 790 let next = final; 791 for(let i = fns.length - 1; i >= 0; i--){ 792 const fn = fns[i]; 793 if (!fn) continue; 794 const prev = next; 795 next = ()=>fn(prev); 796 } 797 next(); 798} 799//#endregion 800//#region src/lib/queues/throttle.ts
801function getSearchParamsSnapshotFromLocation() { 802 return new URLSearchParams(location.search); 803} 804var ThrottledQueue = class { 805 push(param) { 806 let { key, query, options } = param, timeMs = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultRateLimit.timeMs; 807 if (this.resetQueueOnNextPush) { 808 this.reset(); 809 this.resetQueueOnNextPush = false; 810 } 811 (0, __TURBOPACK__imported__module__594693__["t"])(7, key, query, options); 812 this.updateMap.set(key, query); 813 if (options.history === "push") this.options.history = "push"; 814 if (options.scroll) this.options.scroll = true; 815 if (options.shallow === false) this.options.shallow = false; 816 if (options.startTransition) this.transitions.add(options.startTransition); 817 if (!Number.isFinite(this.timeMs) || timeMs > this.timeMs) this.timeMs = timeMs; 818 } 819 getQueuedQuery(key) { 820 return this.updateMap.get(key); 821 } 822 getPendingPromise(param) { 823 let { getSearchParamsSnapshot = getSearchParamsSnapshotFromLocation } = param; 824 var _ref; 825 var _this_resolvers; 826 return (_ref = (_this_resolvers = this.resolvers) === null || _this_resolvers === void 0 ? void 0 : _this_resolvers.promise) !== null && _ref !== void 0 ? _ref : Promise.resolve(getSearchParamsSnapshot()); 827 } 828 flush(param, processUrlSearchParams) { 829 let { getSearchParamsSnapshot = getSearchParamsSnapshotFromLocation, rateLimitFactor = 1, ...adapter } = param; 830 var _this_controller; 831 (_this_controller = this.controller) !== null && _this_controller !== void 0 ? _this_controller : this.controller = new AbortController(); 832 if (!Number.isFinite(this.timeMs)) { 833 (0, __TURBOPACK__imported__module__594693__["t"])(8); 834 return Promise.resolve(getSearchParamsSnapshot()); 835 } 836 if (this.resolvers) return this.resolvers.promise; 837 this.resolvers = withResolvers(); 838 const flushNow = ()=>{ 839 var _adapter_autoResetQueueOnUpdate; 840 this.lastFlushedAt = performance.now(); 841 const [search, error] = this.applyPendingUpdates({ 842 ...adapter, 843 autoResetQueueOnUpdate: (_adapter_autoResetQueueOnUpdate = adapter.autoResetQueueOnUpdate) !== null && _adapter_autoResetQueueOnUpdate !== void 0 ? _adapter_autoResetQueueOnUpdate : true, 844 getSearchParamsSnapshot 845 }, processUrlSearchParams); 846 if (error === null) { 847 this.resolvers.resolve(search); 848 this.resetQueueOnNextPush = true; 849 } else this.resolvers.reject(search); 850 this.resolvers = null; 851 }; 852 const runOnNextTick = ()=>{ 853 const timeSinceLastFlush = performance.now() - this.lastFlushedAt; 854 const timeMs = this.timeMs; 855 const flushInMs = rateLimitFactor * Math.max(0, timeMs - timeSinceLastFlush); 856 (0, __TURBOPACK__imported__module__594693__["t"])(9, flushInMs, timeMs, rateLimitFactor); 857 if (flushInMs === 0) flushNow(); 858 else timeout(flushNow, flushInMs, this.controller.signal); 859 }; 860 timeout(runOnNextTick, 0, this.controller.signal); 861 return this.resolvers.promise; 862 } 863 abort() { 864 var _this_controller, _this_resolvers; 865 (_this_controller = this.controller) === null || _this_controller === void 0 ? void 0 : _this_controller.abort(); 866 this.controller = new AbortController(); 867 (_this_resolvers = this.resolvers) === null || _this_resolvers === void 0 ? void 0 : _this_resolvers.resolve(new URLSearchParams()); 868 this.resolvers = null; 869 return this.reset(); 870 } 871 reset() { 872 const queuedKeys = Array.from(this.updateMap.keys()); 873 (0, __TURBOPACK__imported__module__594693__["t"])(10, JSON.stringify(Object.fromEntries(this.updateMap))); 874 this.updateMap.clear(); 875 this.transitions.clear(); 876 this.options = { 877 history: "replace", 878 scroll: false, 879 shallow: true 880 }; 881 this.timeMs = defaultRateLimit.timeMs; 882 return queuedKeys; 883 } 884 applyPendingUpdates(adapter, processUrlSearchParams) {
885 const { updateUrl, getSearchParamsSnapshot } = adapter; 886 let search = getSearchParamsSnapshot(); 887 (0, __TURBOPACK__imported__module__594693__["t"])(11, this.updateMap.size, search.toString()); 888 if (this.updateMap.size === 0) return [ 889 search, 890 null 891 ]; 892 const items = Array.from(this.updateMap.entries()); 893 const options = { 894 ...this.options 895 }; 896 const transitions = Array.from(this.transitions); 897 if (adapter.autoResetQueueOnUpdate) this.reset(); 898 (0, __TURBOPACK__imported__module__594693__["t"])(12, items, options); 899 for (const [key, value] of items)if (value === null) search.delete(key); 900 else search = write(search, key, value); 901 if (processUrlSearchParams) try { 902 search = processUrlSearchParams(search); 903 } catch (err) { 904 console.error((0, __TURBOPACK__imported__module__795327__["l"])(502), items.map((param)=>{ 905 let [key] = param; 906 return key; 907 }).join(), err); 908 this.resetQueueOnNextPush = true; 909 return [ 910 search, 911 err 912 ]; 913 } 914 try { 915 compose(transitions, ()=>updateUrl(search, options)); 916 return [ 917 search, 918 null 919 ]; 920 } catch (err) { 921 console.error((0, __TURBOPACK__imported__module__795327__["l"])(429), items.map((param)=>{ 922 let [key] = param; 923 return key; 924 }).join(), err); 925 return [ 926 search, 927 err 928 ]; 929 } 930 } 931 constructor(){ 932 (0, __TURBOPACK__imported__module__540151__["_"])(this, "updateMap", /* @__PURE__ */ new Map()); 933 (0, __TURBOPACK__imported__module__540151__["_"])(this, "options", { 934 history: "replace", 935 scroll: false, 936 shallow: true 937 }); 938 (0, __TURBOPACK__imported__module__540151__["_"])(this, "timeMs", defaultRateLimit.timeMs); 939 (0, __TURBOPACK__imported__module__540151__["_"])(this, "transitions", /* @__PURE__ */ new Set()); 940 (0, __TURBOPACK__imported__module__540151__["_"])(this, "resolvers", null); 941 (0, __TURBOPACK__imported__module__540151__["_"])(this, "controller", null); 942 (0, __TURBOPACK__imported__module__540151__["_"])(this, "lastFlushedAt", 0); 943 (0, __TURBOPACK__imported__module__540151__["_"])(this, "resetQueueOnNextPush", false); 944 } 945}; 946const globalThrottleQueue = (0, __TURBOPACK__imported__module__795327__["o"])("throttle-queue", ()=>new ThrottledQueue()); 947//#endregion 948//#region src/lib/queues/useSyncExternalStores.ts 949/** 950* Like `useSyncExternalStore`, but for subscribing to multiple keys. 951* 952* Each key becomes the key of the returned object, 953* and the value is the result of calling `getKeySnapshot` with that key. 954* 955* @param keys - A list of keys to subscribe to. 956* @param subscribeKey - A function that takes a key and a callback, 957* subscribes to an external store using that key (calling the callback when 958* state changes occur), and returns a function to unsubscribe from that key. 959* @param getKeySnapshot - A function that takes a key and returns the snapshot for that key. 960* It will be called on the server and on the client, so it needs to handle both 961* environments. 962*/ function useSyncExternalStores(keys, subscribeKey, getKeySnapshot) { 963 const snapshot = (0, __TURBOPACK__imported__module__271645__["useCallback"])(()=>{ 964 const record = Object.fromEntries(keys.map((key)=>[ 965 key, 966 getKeySnapshot(key) 967 ])); 968 return [ 969 JSON.stringify(record), 970 record 971 ]; 972 }, [ 973 keys.join(","), 974 getKeySnapshot 975 ]); 976 const cacheRef = (0, __TURBOPACK__imported__module__271645__["useRef"])(null); 977 if (cacheRef.current === null) cacheRef.current = snapshot(); 978 return (0, __TURBOPACK__imported__module__271645__["useSyncExternalStore"])((0, __TURBOPACK__imported__module__271645__["useCallback"])((callback)=>{ 979 const off = keys.map((key)=>subscribeKey(key, callback)); 980 return ()=>off.forEach((unsubscribe)=>unsubscribe()); 981 }, [ 982 keys.join(","), 983 subscribeKey 984 ]), ()=>{ 985 const [cacheKey, record] = snapshot(); 986 if (cacheRef.current[0] === cacheKey) return cacheRef.current[1]; 987 cacheRef.current = [ 988 cacheKey, 989 record 990 ]; 991 return record; 992 }, ()=>cacheRef.current[1]); 993} 994//#endregion 995//#region src/lib/queues/debounce.ts 996var DebouncedPromiseQueue = class { 997 abort() { 998 this.controller.abort(); 999 this.queuedValue = void 0; 1000 } 1001 push(value, timeMs, callback) { 1002 this.queuedValue = value; 1003 this.controller.abort(); 1004 this.controller = new AbortController(); 1005 timeout(()=>{ 1006 const outputResolvers = this.resolvers; 1007 try { 1008 (0, __TURBOPACK__imported__module__594693__["t"])(13, value); 1009 const callbackPromise = callback(value); 1010 (0, __TURBOPACK__imported__module__594693__["t"])(14, this.queuedValue); 1011 this.queuedValue = void 0; 1012 this.resolvers = withResolvers(); 1013 callbackPromise.then((output)=>outputResolvers.resolve(output)).catch((error)=>outputResolvers.reject(error)); 1014 } catch (error) { 1015 this.queuedValue = void 0; 1016 outputResolvers.reject(error); 1017 } 1018 }, timeMs, this.controller.signal); 1019 return this.resolvers.promise; 1020 } 1021 constructor(){ 1022 (0, __TURBOPACK__imported__module__540151__["_"])(this, "resolvers", withResolvers()); 1023 (0, __TURBOPACK__imported__module__540151__["_"])(this, "controller", new AbortController()); 1024 (0, __TURBOPACK__imported__module__540151__["_"])(this, "queuedValue", void 0); 1025 } 1026}; 1027var DebounceController = class { 1028 push(update, timeMs, adapter, processUrlSearchParams) { 1029 if (!Number.isFinite(timeMs)) {
1030 var _adapter_getSearchParamsSnapshot; 1031 const getSnapshot = (_adapter_getSearchParamsSnapshot = adapter.getSearchParamsSnapshot) !== null && _adapter_getSearchParamsSnapshot !== void 0 ? _adapter_getSearchParamsSnapshot : getSearchParamsSnapshotFromLocation; 1032 return Promise.resolve(getSnapshot()); 1033 } 1034 const key = update.key; 1035 let queue = this.queues.get(key); 1036 if (!queue) { 1037 (0, __TURBOPACK__imported__module__594693__["t"])(15, key); 1038 queue = new DebouncedPromiseQueue(); 1039 this.queues.set(key, queue); 1040 } 1041 (0, __TURBOPACK__imported__module__594693__["t"])(17, update); 1042 const flush = ()=>{ 1043 this.throttleQueue.push(update); 1044 return this.throttleQueue.flush(adapter, processUrlSearchParams).finally(()=>{ 1045 var _this_queues_get; 1046 if (((_this_queues_get = this.queues.get(key)) === null || _this_queues_get === void 0 ? void 0 : _this_queues_get.queuedValue) === void 0) { 1047 (0, __TURBOPACK__imported__module__594693__["t"])(16, key); 1048 this.queues.delete(key); 1049 } 1050 this.queuedQuerySync.emit(key); 1051 }); 1052 }; 1053 const promise = queue.push(update, timeMs, flush); 1054 this.queuedQuerySync.emit(key); 1055 return promise; 1056 } 1057 abort(key) { 1058 var _queue_queuedValue; 1059 const queue = this.queues.get(key); 1060 if (!queue) return (passThrough)=>passThrough; 1061 (0, __TURBOPACK__imported__module__594693__["t"])(18, key, (_queue_queuedValue = queue.queuedValue) === null || _queue_queuedValue === void 0 ? void 0 : _queue_queuedValue.query); 1062 this.queues.delete(key); 1063 queue.abort(); 1064 this.queuedQuerySync.emit(key); 1065 return (promise)=>{ 1066 promise.then(queue.resolvers.resolve, queue.resolvers.reject); 1067 return promise; 1068 }; 1069 } 1070 abortAll() { 1071 for (const [key, queue] of this.queues.entries()){ 1072 var _queue_queuedValue; 1073 (0, __TURBOPACK__imported__module__594693__["t"])(18, key, (_queue_queuedValue = queue.queuedValue) === null || _queue_queuedValue === void 0 ? void 0 : _queue_queuedValue.query); 1074 queue.abort(); 1075 queue.resolvers.resolve(new URLSearchParams()); 1076 this.queuedQuerySync.emit(key); 1077 } 1078 this.queues.clear(); 1079 } 1080 getQueuedQuery(key) { 1081 var _this_queues_get_queuedValue, _this_queues_get; 1082 const debouncedQueued = (_this_queues_get = this.queues.get(key)) === null || _this_queues_get === void 0 ? void 0 : (_this_queues_get_queuedValue = _this_queues_get.queuedValue) === null || _this_queues_get_queuedValue === void 0 ? void 0 : _this_queues_get_queuedValue.query; 1083 if (debouncedQueued !== void 0) return debouncedQueued; 1084 return this.throttleQueue.getQueuedQuery(key); 1085 } 1086 constructor(throttleQueue = new ThrottledQueue()){ 1087 (0, __TURBOPACK__imported__module__540151__["_"])(this, "throttleQueue", void 0); 1088 (0, __TURBOPACK__imported__module__540151__["_"])(this, "queues", /* @__PURE__ */ new Map()); 1089 (0, __TURBOPACK__imported__module__540151__["_"])(this, "queuedQuerySync", createEmitter()); 1090 this.throttleQueue = throttleQueue; 1091 } 1092}; 1093const debounceController = (0, __TURBOPACK__imported__module__795327__["o"])("debounce-controller", ()=>new DebounceController(globalThrottleQueue)); 1094function useQueuedQueries(keys) { 1095 return useSyncExternalStores(keys, (key, callback)=>debounceController.queuedQuerySync.on(key, callback), (key)=>debounceController.getQueuedQuery(key)); 1096} 1097; 1098__turbopack_context__.s([ 1099 "a", 1100 0, 1101 getSearchParams, 1102 "c", 1103 0, 1104 debounce, 1105 "i", 1106 0, 1107 createEmitter, 1108 "l", 1109 0, 1110 defaultRateLimit, 1111 "n", 1112 0, 1113 useQueuedQueries, 1114 "o", 1115 0, 1116 isAbsentFromUrl, 1117 "r", 1118 0, 1119 globalThrottleQueue, 1120 "s", 1121 0, 1122 write, 1123 "t", 1124 0, 1125 debounceController, 1126 "u", 1127 0, 1128 throttle 1129]); 1130}), 1131307741, ((__turbopack_context__) => { 1132"use strict"; 1133 1134var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 1135var __TURBOPACK__imported__module__768834__ = __turbopack_context__.i(768834); 1136"use client"; 1137; 1138; 1139const usePortalStore = (0, __TURBOPACK__imported__module__768834__["create"])((set)=>({ 1140 container: null, 1141 setContainer: (node)=>set((state)=>({ 1142 ...state, 1143 container: node 1144 })) 1145 })); 1146function usePortal() { 1147 return usePortalStore((state)=>state.container); 1148} 1149function Portal(props) { 1150 const setContainer = usePortalStore((state)=>state.setContainer); 1151 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 1152 ref: setContainer, 1153 ...props 1154 }); 1155} 1156__turbopack_context__.s([ 1157 "Portal", 1158 0, 1159 Portal, 1160 "usePortal", 1161 0, 1162 usePortal 1163]); 1164}), 1165191476, ((__turbopack_context__) => { 1166"use strict"; 1167 1168var __TURBOPACK__imported__module__581949__ = __turbopack_context__.i(581949); 1169; 1170// This module is intended to unwrap Axios default export as named. 1171// Keep top-level export same with static properties 1172// so that it can keep same with es module or cjs 1173const { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create } = __TURBOPACK__imported__module__581949__["default"]; 1174; 1175__turbopack_context__.s([ 1176 "isAxiosError", 1177 0, 1178 isAxiosError 1179]); 1180}), 1181407830, ((__turbopack_context__) => { 1182"use strict"; 1183 1184// MERGED MODULE: [project]/src/generated/featureFlag/reactQueries.tsx [app-client] (ecmascript) 1185; 1186var __TURBOPACK__imported__module__954616__ = __turbopack_context__.i(954616); 1187var __TURBOPACK__imported__module__266027__ = __turbopack_context__.i(266027); 1188var __TURBOPACK__imported__module__912598__ = __turbopack_context__.i(912598); 1189var __TURBOPACK__imported__module__197643__ = __turbopack_context__.i(197643); 1190// MERGED MODULE: [project]/src/generated/featureFlag/apiClient.ts [app-client] (ecmascript) 1191; 1192async function apiFeatureFlagCurrent(axiosInstance, requestConfig) { 1193 const response = await axiosInstance.request({ 1194 url: "feature-flag/current", 1195 method: "GET", 1196 ...requestConfig 1197 }); 1198 return response.data; 1199} 1200async function apiFeatureFlagList(axiosInstance, requestConfig) { 1201 const response = await axiosInstance.request({ 1202 url: "feature-flag/list", 1203 method: "GET", 1204 ...requestConfig 1205 }); 1206 return response.data; 1207} 1208async function apiFeatureFlagUpdate(axiosInstance, params, body, requestConfig) { 1209 const response = await axiosInstance.request({ 1210 url: "feature-flag/".concat(params.id), 1211 method: "PUT", 1212 data: body, 1213 ...requestConfig 1214 }); 1215 return response.data; 1216} 1217; 1218; 1219; 1220function useFeatureFlagCurrent() { 1221 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1222 var _ref; 1223 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1224 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1225 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1226 queryKey: useFeatureFlagCurrent.queryKey(), 1227 queryFn: (param)=>{ 1228 let { signal } = param; 1229 var _opts, _requestConfig; 1230 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1231 opts.requestConfig.signal = signal; 1232 return apiFeatureFlagCurrent(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1233 }, 1234 ...options 1235 }); 1236} 1237/** 1238 * Base key used by useFeatureFlagCurrent.queryKey() 1239 */ useFeatureFlagCurrent.baseKey = ()=>[ 1240 "featureFlag", 1241 "current" 1242 ]; 1243/** 1244 * Query key used by useFeatureFlagCurrent 1245 */ useFeatureFlagCurrent.queryKey = ()=>[ 1246 ...useFeatureFlagCurrent.baseKey() 1247 ]; 1248/** 1249 * Fetch useFeatureFlagCurrent via the queryClient and return the result 1250 */ useFeatureFlagCurrent.fetch = (queryClient, axiosInstance, opts)=>{ 1251 return queryClient.fetchQuery({ 1252 queryKey: useFeatureFlagCurrent.queryKey(), 1253 queryFn: ()=>{ 1254 return apiFeatureFlagCurrent(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1255 } 1256 }); 1257}; 1258/** 1259 * Prefetch useFeatureFlagCurrent via the queryClient 1260 */ useFeatureFlagCurrent.prefetch = (queryClient, axiosInstance, opts)=>{ 1261 return queryClient.prefetchQuery({ 1262 queryKey: useFeatureFlagCurrent.queryKey(), 1263 queryFn: ()=>{ 1264 return apiFeatureFlagCurrent(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1265 } 1266 }); 1267}; 1268/** 1269 * Invalidate useFeatureFlagCurrent via the queryClient
1270 */ useFeatureFlagCurrent.invalidate = (queryClient)=>queryClient.invalidateQueries({ 1271 queryKey: useFeatureFlagCurrent.queryKey() 1272 }); 1273/** 1274 * Set query data for useFeatureFlagCurrent via the queryClient 1275 */ useFeatureFlagCurrent.setQueryData = (queryClient, data)=>{ 1276 return queryClient.setQueryData(useFeatureFlagCurrent.queryKey(), data); 1277}; 1278function useFeatureFlagList() { 1279 let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1280 var _ref; 1281 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1282 const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {}; 1283 return (0, __TURBOPACK__imported__module__266027__["useQuery"])({ 1284 queryKey: useFeatureFlagList.queryKey(), 1285 queryFn: (param)=>{ 1286 let { signal } = param; 1287 var _opts, _requestConfig; 1288 (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {}; 1289 opts.requestConfig.signal = signal; 1290 return apiFeatureFlagList(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1291 }, 1292 ...options 1293 }); 1294} 1295/** 1296 * Base key used by useFeatureFlagList.queryKey() 1297 */ useFeatureFlagList.baseKey = ()=>[ 1298 "featureFlag", 1299 "list" 1300 ]; 1301/** 1302 * Query key used by useFeatureFlagList 1303 */ useFeatureFlagList.queryKey = ()=>[ 1304 ...useFeatureFlagList.baseKey() 1305 ]; 1306/** 1307 * Fetch useFeatureFlagList via the queryClient and return the result 1308 */ useFeatureFlagList.fetch = (queryClient, axiosInstance, opts)=>{ 1309 return queryClient.fetchQuery({ 1310 queryKey: useFeatureFlagList.queryKey(), 1311 queryFn: ()=>{ 1312 return apiFeatureFlagList(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1313 } 1314 }); 1315}; 1316/** 1317 * Prefetch useFeatureFlagList via the queryClient 1318 */ useFeatureFlagList.prefetch = (queryClient, axiosInstance, opts)=>{ 1319 return queryClient.prefetchQuery({ 1320 queryKey: useFeatureFlagList.queryKey(), 1321 queryFn: ()=>{ 1322 return apiFeatureFlagList(axiosInstance, opts === null || opts === void 0 ? void 0 : opts.requestConfig); 1323 } 1324 }); 1325}; 1326/** 1327 * Invalidate useFeatureFlagList via the queryClient 1328 */ useFeatureFlagList.invalidate = (queryClient)=>queryClient.invalidateQueries({ 1329 queryKey: useFeatureFlagList.queryKey() 1330 }); 1331/** 1332 * Set query data for useFeatureFlagList via the queryClient 1333 */ useFeatureFlagList.setQueryData = (queryClient, data)=>{ 1334 return queryClient.setQueryData(useFeatureFlagList.queryKey(), data); 1335}; 1336function useFeatureFlagUpdate() { 1337 let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 1338 const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])(); 1339 const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])(); 1340 return (0, __TURBOPACK__imported__module__954616__["useMutation"])({ 1341 mutationFn: (variables)=>apiFeatureFlagUpdate(axiosInstance, { 1342 id: variables["id"] 1343 }, { 1344 description: variables["description"], 1345 globalValue: variables["globalValue"] 1346 }, variables === null || variables === void 0 ? void 0 : variables.requestConfig), 1347 ...options 1348 }); 1349} 1350__turbopack_context__.s([ 1351 "useFeatureFlagCurrent", 1352 0, 1353 useFeatureFlagCurrent, 1354 "useFeatureFlagList", 1355 0, 1356 useFeatureFlagList, 1357 "useFeatureFlagUpdate", 1358 0, 1359 useFeatureFlagUpdate 1360], 407830); 1361}), 1362231012, ((__turbopack_context__) => { 1363"use strict"; 1364 1365var __TURBOPACK__imported__module__407830__ = __turbopack_context__.i(407830); 1366; 1367function useFeatureFlags() { 1368 const { data } = (0, __TURBOPACK__imported__module__407830__["useFeatureFlagCurrent"])(); 1369 return data; 1370} 1371__turbopack_context__.s([ 1372 "default", 1373 0, 1374 useFeatureFlags 1375]); 1376}), 1377307173, ((__turbopack_context__) => { 1378"use strict"; 1379 1380var __TURBOPACK__imported__module__247167__ = /*#__PURE__*/ __turbopack_context__.i(247167); 1381"use client"; 1382; 1383; 1384//#region src/index.ts 1385const ReactQueryDevtools = ("TURBOPACK compile-time truthy", 1) ? function() { 1386 return null; 1387} : "TURBOPACK unreachable"; 1388const ReactQueryDevtoolsPanel = ("TURBOPACK compile-time truthy", 1) ? function() { 1389 return null; 1390} : "TURBOPACK unreachable"; 1391; 1392__turbopack_context__.s([ 1393 "ReactQueryDevtools", 1394 0, 1395 ReactQueryDevtools, 1396 "ReactQueryDevtoolsPanel", 1397 0, 1398 ReactQueryDevtoolsPanel 1399]); 1400}), 1401206276, ((__turbopack_context__) => { 1402"use strict"; 1403 1404var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 1405var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 1406; 1407; 1408const SvgPhone = (props, ref)=>/*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("svg", { 1409 xmlns: "http://www.w3.org/2000/svg", 1410 width: 12, 1411 height: 15, 1412 fill: "none",
1413 viewBox: "0 0 12 15", 1414 ref: ref, 1415 ...props, 1416 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("path", { 1417 fill: "currentColor", 1418 d: "m3.658 4.591.85-.78a.73.73 0 0 0 .128-.92L3.065.345a.727.727 0 0 0-1.05-.205L.93.934c-.433.313-.728.78-.824 1.306-.246 1.383-.272 4.232 2.315 7.767s5.31 4.373 6.702 4.556a2.08 2.08 0 0 0 1.494-.39l1.085-.793a.73.73 0 0 0 .121-1.063l-1.95-2.266a.73.73 0 0 0-.915-.157l-1.001.574a.72.72 0 0 1-.484.091c-.581-.101-1.735-.51-2.91-2.12C3.385 6.831 3.344 5.61 3.424 5.023a.72.72 0 0 1 .233-.432" 1419 }) 1420 }); 1421const ForwardRef = /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__["forwardRef"])(SvgPhone); 1422const Memo = /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__["memo"])(ForwardRef); 1423const __TURBOPACK__default__export__ = Memo; 1424__turbopack_context__.s([ 1425 "default", 1426 0, 1427 __TURBOPACK__default__export__ 1428]); 1429}), 1430843362, ((__turbopack_context__) => { 1431"use strict"; 1432 1433var __TURBOPACK__imported__module__19746__ = __turbopack_context__.i(19746); 1434var __TURBOPACK__imported__module__551438__ = __turbopack_context__.i(551438); 1435; 1436; 1437const BasicLocationFragment = (0, __TURBOPACK__imported__module__19746__["graphql"])("\n fragment BasicLocationFragment on LocationRecord {\n id\n image {\n responsiveImage(imgixParams: { fit: crop, w: 315, h: 160 }) {\n ...responsiveImageFragment\n }\n }\n googleLocationId\n locationName\n externalId\n slug\n brand\n partnerLogo {\n responsiveImage(imgixParams: { fit: crop, w: 315, h: 160 }) {\n ...responsiveImageFragment\n }\n }\n divergentOpeningHours {\n id\n description\n from\n to\n closed\n date\n }\n _allSlugLocales {\n value\n locale\n }\n _updatedAt\n _seoMetaTags {\n tag\n content\n attributes\n }\n }\n ", [ 1438 __TURBOPACK__imported__module__551438__["responsiveImageFragment"] 1439]); 1440__turbopack_context__.s([ 1441 "BasicLocationFragment", 1442 0, 1443 BasicLocationFragment 1444]); 1445}), 1446995275, ((__turbopack_context__) => { 1447"use strict"; 1448 1449var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 1450var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 1451var __TURBOPACK__imported__module__843362__ = __turbopack_context__.i(843362); 1452var __TURBOPACK__imported__module__19746__ = __turbopack_context__.i(19746); 1453var __TURBOPACK__imported__module__886282__ = __turbopack_context__.i(886282); 1454var __TURBOPACK__imported__module__501804__ = __turbopack_context__.i(501804); 1455var __TURBOPACK__imported__module__773447__ = __turbopack_context__.i(773447); 1456var __TURBOPACK__imported__module__948148__ = __turbopack_context__.i(948148); 1457var __TURBOPACK__imported__module__206276__ = __turbopack_context__.i(206276); 1458var __TURBOPACK__imported__module__712807__ = __turbopack_context__.i(712807); 1459var __TURBOPACK__imported__module__242398__ = __turbopack_context__.i(242398); 1460"use client"; 1461; 1462; 1463; 1464; 1465; 1466; 1467; 1468; 1469; 1470; 1471const LocationCard = /*#__PURE__*/ (0, __TURBOPACK__imported__module__271645__["memo"])(function LocationCard(param) { 1472 let { fragment, location, omitAppNamePrefix } = param; 1473 var _location_email; 1474 const locationDato = (0, __TURBOPACK__imported__module__886282__["readFragment"])(__TURBOPACK__imported__module__843362__["BasicLocationFragment"], fragment); 1475 const locale = (0, __TURBOPACK__imported__module__501804__["default"])(); 1476 const commonT = (0, __TURBOPACK__imported__module__948148__["useTranslations"])("common"); 1477 const googleLocationId = locationDato === null || locationDato === void 0 ? void 0 : locationDato.googleLocationId; 1478 const destination = (0, __TURBOPACK__imported__module__271645__["useMemo"])(()=>encodeURIComponent("Diks Autoverhuur ".concat(location === null || location === void 0 ? void 0 : location.address.street)).replace(/%20/g, "+"), [ 1479 location === null || location === void 0 ? void 0 : location.address.street 1480 ]); 1481 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("div", { 1482 children: [ 1483 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("p", { 1484 className: "mb-2 text-lg font-bold text-dark-500", 1485 children: [ 1486 !omitAppNamePrefix && /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])(__TURBOPACK__imported__module__843476__["Fragment"], { 1487 children: [ 1488 commonT("appName"), 1489 " ", 1490 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("br", {}) 1491 ] 1492 }), 1493 location === null || location === void 0 ? void 0 : location.name[locale] 1494 ] 1495 }), 1496 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 1497 className: "aspect-336/112 w-full overflow-hidden rounded-md bg-gray-100", 1498 children: !!location && /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])(__TURBOPACK__imported__module__242398__["SingleLocationMap"], { 1499 location: location 1500 }) 1501 }), 1502 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("div", { 1503 className: "space-y-3 py-3", 1504 children: [ 1505 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("a", { 1506 href: "https://www.google.com/maps/dir/?api=1&destination=".concat(destination, "&destination_place_id=").concat(googleLocationId), 1507 target: "_blank", 1508 rel: "norefferer noopener noreferrer", 1509 className: "flex items-center text-14", 1510 children: [ 1511 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("svg", { 1512 className: "shrink-0", 1513 xmlns: "http://www.w3.org/2000/svg", 1514 width: "12", 1515 height: "16", 1516 fill: "none",
1517 viewBox: "0 0 12 16", 1518 "aria-hidden": "true", 1519 children: [ 1520 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("g", { 1521 fillRule: "evenodd", 1522 clipPath: "url(#a)", 1523 clipRule: "evenodd", 1524 children: [ 1525 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("path", { 1526 fill: "#105DFD", 1527 d: "M6 .5C2.687.5 0 3.07 0 6.241c0 2.563 3.921 7.236 5.424 8.932a.765.765 0 0 0 .576.258.764.764 0 0 0 .576-.258C8.079 13.477 12 8.805 12 6.24 12 3.07 9.313.5 6 .5Z" 1528 }), 1529 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("path", { 1530 fill: "#fff", 1531 d: "M6 8.242c-.53 0-1.04-.204-1.414-.567A1.904 1.904 0 0 1 4 6.306c0-.513.21-1.005.586-1.368A2.034 2.034 0 0 1 6 4.37c.53 0 1.04.204 1.414.567C7.79 5.3 8 5.793 8 6.306c0 .514-.21 1.006-.586 1.369A2.034 2.034 0 0 1 6 8.242Z" 1532 }) 1533 ] 1534 }), 1535 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("defs", { 1536 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("clipPath", { 1537 id: "a", 1538 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("path", { 1539 fill: "#fff", 1540 d: "M0 .5h12v15H0z" 1541 }) 1542 }) 1543 }) 1544 ] 1545 }), 1546 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("span", { 1547 className: "ml-2 font-bold leading-none text-blue-500", 1548 children: [ 1549 location === null || location === void 0 ? void 0 : location.address.street, 1550 " ", 1551 location === null || location === void 0 ? void 0 : location.address.houseNumber, 1552 ", ", 1553 location === null || location === void 0 ? void 0 : location.address.postcode, 1554 ",", 1555 " ", 1556 location === null || location === void 0 ? void 0 : location.address.city 1557 ] 1558 }) 1559 ] 1560 }), 1561 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("a", { 1562 href: "tel:".concat(location === null || location === void 0 ? void 0 : location.phone), 1563 className: "flex items-center text-14", 1564 children: [ 1565 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])(__TURBOPACK__imported__module__206276__["default"], { 1566 "aria-hidden": "true", 1567 className: "w-1.5 h-2 text-blue-500" 1568 }), 1569 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("span", { 1570 className: "ml-2 font-bold leading-none text-blue-500", 1571 children: location === null || location === void 0 ? void 0 : location.phone 1572 }) 1573 ] 1574 }), 1575 !!(location === null || location === void 0 ? void 0 : (_location_email = location.email) === null || _location_email === void 0 ? void 0 : _location_email[locale]) && /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("a", { 1576 href: "mailto:".concat(location.email[locale]), 1577 className: "flex items-center text-14", 1578 children: [ 1579 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("svg", { 1580 className: "shrink-0", 1581 xmlns: "http://www.w3.org/2000/svg", 1582 width: "14", 1583 height: "16", 1584 fill: "none",
1585 viewBox: "0 0 14 16", 1586 "aria-hidden": "true", 1587 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("path", { 1588 fill: "#105DFD", 1589 d: "M7.104 15.256c-1.44 0-2.624-.235-3.552-.704-.917-.47-1.61-1.099-2.08-1.888a6.354 6.354 0 0 1-.816-2.624 22.28 22.28 0 0 1-.032-.592V7.88c.01-.245.021-.437.032-.576.053-.63.213-1.253.48-1.872a5.37 5.37 0 0 1 1.152-1.68c.501-.512 1.125-.923 1.872-1.232.747-.31 1.621-.464 2.624-.464 1.216 0 2.224.139 3.024.416.8.277 1.435.661 1.904 1.152.48.49.832 1.05 1.056 1.68.224.63.368 1.296.432 2 .021.181.032.39.032.624 0 .224-.005.453-.016.688 0 .235-.005.448-.016.64-.032.533-.187.987-.464 1.36a2.58 2.58 0 0 1-1.008.848 2.85 2.85 0 0 1-1.2.272c-.352 0-.672-.037-.96-.112a3.13 3.13 0 0 1-.704-.272A2.046 2.046 0 0 1 8.416 11a2.018 2.018 0 0 1-.32.4c-.139.139-.347.256-.624.352-.277.096-.667.144-1.168.144-.8 0-1.424-.299-1.872-.896-.437-.608-.656-1.397-.656-2.368 0-.981.208-1.77.624-2.368.427-.608 1.035-.912 1.824-.912.405 0 .725.059.96.176.245.117.453.293.624.528v-.144c0-.117.043-.219.128-.304a.415.415 0 0 1 .304-.128h1.152c.117 0 .219.043.304.128a.415.415 0 0 1 .128.304V9c0 .256.059.453.176.592.117.139.293.208.528.208.16 0 .288-.032.384-.096a.512.512 0 0 0 .224-.272.999.999 0 0 0 .08-.416v-.832c.01-.267.005-.533-.016-.8-.032-.79-.187-1.435-.464-1.936-.277-.501-.73-.87-1.36-1.104-.63-.235-1.493-.352-2.592-.352-.928 0-1.68.15-2.256.448-.576.299-1.013.704-1.312 1.216a4.565 4.565 0 0 0-.544 1.728 9.688 9.688 0 0 0-.048.768V9.16c.01.33.027.597.048.8.117 1.045.517 1.867 1.2 2.464.683.597 1.76.896 3.232.896.587 0 1.056-.021 1.408-.064a3.02 3.02 0 0 0 .88-.224c.245-.096.48-.23.704-.4.117-.085.213-.144.288-.176a.54.54 0 0 1 .272-.064h1.568c.117 0 .219.043.304.128.096.075.139.181.128.32 0 .043-.01.085-.032.128-.021.032-.048.07-.08.112-.31.373-.71.725-1.2 1.056-.49.341-1.088.613-1.792.816-.693.203-1.51.304-2.448.304Zm-.32-5.296c.31 0 .555-.09.736-.272.192-.181.288-.533.288-1.056s-.096-.875-.288-1.056c-.181-.192-.427-.288-.736-.288a.977.977 0 0 0-.72.288c-.192.181-.288.533-.288 1.056 0 .341.043.613.128.816.085.192.203.325.352.4.16.075.336.112.528.112Z" 1590 }) 1591 }), 1592 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("span", { 1593 className: "ml-2 font-bold leading-none text-blue-500", 1594 children: location.email[locale] 1595 }) 1596 ] 1597 }) 1598 ] 1599 }), 1600 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])(__TURBOPACK__imported__module__712807__["default"], { 1601 location: location 1602 }) 1603 ] 1604 }); 1605}); 1606const __TURBOPACK__default__export__ = LocationCard; 1607__turbopack_context__.s([ 1608 "default", 1609 0, 1610 __TURBOPACK__default__export__ 1611]); 1612}), 1613798154, ((__turbopack_context__) => { 1614"use strict"; 1615 1616// MERGED MODULE: [project]/src/app/(site)/[locale]/contact/_components/Locations.tsx [app-client] (ecmascript) 1617; 1618var __TURBOPACK__imported__module__843476__ = __turbopack_context__.i(843476); 1619var __TURBOPACK__imported__module__843362__ = __turbopack_context__.i(843362); 1620var __TURBOPACK__imported__module__19746__ = __turbopack_context__.i(19746); 1621var __TURBOPACK__imported__module__886282__ = __turbopack_context__.i(886282); 1622var __TURBOPACK__imported__module__995275__ = __turbopack_context__.i(995275); 1623// MERGED MODULE: [project]/src/components/SimplePageHeading.tsx [app-client] (ecmascript) 1624; 1625var __TURBOPACK__imported__module__843476__1 = __TURBOPACK__imported__module__843476__; 1626; 1627function SimplePageHeading(param) { 1628 let { title, subtitle } = param; 1629 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__1["jsxs"])("div", { 1630 className: "container mx-auto max-w-(--breakpoint-2xl) mb-2 px-2 md:border-0 md:px-5 md:pt-5 lg:mb-4 xl:px-11", 1631 children: [ 1632 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__1["jsx"])("h1", { 1633 className: "mt-3 text-lg font-bold text-brand-500 md:mb-2 md:mt-0 md:text-xl",
1634 children: title 1635 }), 1636 !!subtitle && /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__1["jsx"])("p", { 1637 className: "text-brand-500", 1638 children: subtitle 1639 }) 1640 ] 1641 }); 1642} 1643var __TURBOPACK__imported__module__330079__ = __turbopack_context__.i(330079); 1644var __TURBOPACK__imported__module__773447__ = __turbopack_context__.i(773447); 1645var __TURBOPACK__imported__module__948148__ = __turbopack_context__.i(948148); 1646"use client"; 1647; 1648; 1649; 1650; 1651; 1652; 1653; 1654function Locations(param) { 1655 let { fragment } = param; 1656 const t = (0, __TURBOPACK__imported__module__948148__["useTranslations"])("contact"); 1657 const { data: locations = [] } = (0, __TURBOPACK__imported__module__330079__["useLocationList"])({ 1658 queryOptions: { 1659 select: (data)=>data.locations 1660 } 1661 }); 1662 return /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsxs"])("section", { 1663 className: "bg-brand-50 pb-10 md:pb-8", 1664 children: [ 1665 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])(SimplePageHeading, { 1666 title: t("locationsAndOpeningHours") 1667 }), 1668 /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 1669 className: "container mx-auto max-w-(--breakpoint-2xl) md:px-5 md:pt-1 xl:px-11", 1670 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 1671 className: "gap-4 md:grid md:grid-cols-2 lg:grid-cols-3", 1672 children: locations === null || locations === void 0 ? void 0 : locations.map((location)=>/*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])("div", { 1673 className: "relative overflow-hidden rounded border-b border-dark-200 bg-white p-2 md:border", 1674 children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__843476__["jsx"])(__TURBOPACK__imported__module__995275__["default"], { 1675 fragment: fragment.find((_it)=>{ 1676 var _it_externalId; 1677 const it = (0, __TURBOPACK__imported__module__886282__["readFragment"])(__TURBOPACK__imported__module__843362__["BasicLocationFragment"], _it); 1678 return parseInt((_it_externalId = it.externalId) !== null && _it_externalId !== void 0 ? _it_externalId : "") === location.id; 1679 }), 1680 location: location 1681 }) 1682 }, location.id)) 1683 }) 1684 }) 1685 ] 1686 }); 1687} 1688__turbopack_context__.s([ 1689 "default", 1690 0, 1691 Locations 1692], 798154); 1693}), 1694834107, ((__turbopack_context__) => { 1695"use strict"; 1696 1697// MERGED MODULE: [project]/src/trengo/TrengoVisibility.tsx [app-client] (ecmascript) 1698; 1699var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 1700var __TURBOPACK__imported__module__231012__ = __turbopack_context__.i(231012); 1701var __TURBOPACK__imported__module__614537__ = __turbopack_context__.i(614537); 1702// MERGED MODULE: [project]/src/trengo/shouldShowTrengo.ts [app-client] (ecmascript) 1703; 1704// usePathname returns canonical pathnames, so only the Dutch route keys are needed here 1705const PATHNAMES = [ 1706 "/veelgestelde-vragen", 1707 "/faq", 1708 "/contact", 1709 "/klantenservice", 1710 "/vestigingen" 1711]; 1712function shouldShowTrengo(pathname) { 1713 if (!pathname) return false; 1714 return PATHNAMES.some((base)=>pathname === base || pathname.startsWith("".concat(base, "/"))); 1715} 1716"use client"; 1717; 1718; 1719; 1720; 1721const TRENGO_WIDGET_ID = "trengo-web-widget"; 1722function TrengoVisibility() { 1723 const featureFlags = (0, __TURBOPACK__imported__module__231012__["default"])(); 1724 const isEnabled = !!(featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.__FEATURE_ENABLE_TRENGO_CHAT_DIKS_2197); 1725 const pathname = (0, __TURBOPACK__imported__module__614537__["usePathname"])(); 1726 const isVisible = shouldShowTrengo(pathname); 1727 const [widget, setWidget] = (0, __TURBOPACK__imported__module__271645__["useState"])(null); 1728 // The embed loads asynchronously, so wait for Trengo to be ready 1729 (0, __TURBOPACK__imported__module__271645__["useEffect"])(()=>{ 1730 window.Trengo = window.Trengo || {}; 1731 const findWidget = ()=>setWidget(document.getElementById(TRENGO_WIDGET_ID)); 1732 findWidget(); 1733 window.Trengo.on_ready = findWidget; 1734 return ()=>{ 1735 var _window_Trengo; 1736 (_window_Trengo = window.Trengo) === null || _window_Trengo === void 0 ? true : delete _window_Trengo.on_ready; 1737 }; 1738 }, []); 1739 // Chat ending on a hidden page should hide the widget again. 1740 (0, __TURBOPACK__imported__module__271645__["useEffect"])(()=>{
1741 var _window_Trengo_Api_Widget_url_updated, _window_Trengo_Api_Widget, _window_Trengo_Api, _window_Trengo; 1742 if (!widget) return; 1743 const apply = ()=>{ 1744 var _ref; 1745 var _window_Trengo_Api_Widget_is_chatting, _window_Trengo_Api_Widget, _window_Trengo_Api, _window_Trengo; 1746 const isChatting = (_ref = (_window_Trengo = window.Trengo) === null || _window_Trengo === void 0 ? void 0 : (_window_Trengo_Api = _window_Trengo.Api) === null || _window_Trengo_Api === void 0 ? void 0 : (_window_Trengo_Api_Widget = _window_Trengo_Api.Widget) === null || _window_Trengo_Api_Widget === void 0 ? void 0 : (_window_Trengo_Api_Widget_is_chatting = _window_Trengo_Api_Widget.is_chatting) === null || _window_Trengo_Api_Widget_is_chatting === void 0 ? void 0 : _window_Trengo_Api_Widget_is_chatting.call(_window_Trengo_Api_Widget)) !== null && _ref !== void 0 ? _ref : false; 1747 const isHidden = !isEnabled || !isVisible && !isChatting; 1748 widget.style.display = isHidden ? "none" : ""; 1749 }; 1750 apply(); 1751 (_window_Trengo = window.Trengo) === null || _window_Trengo === void 0 ? void 0 : (_window_Trengo_Api = _window_Trengo.Api) === null || _window_Trengo_Api === void 0 ? void 0 : (_window_Trengo_Api_Widget = _window_Trengo_Api.Widget) === null || _window_Trengo_Api_Widget === void 0 ? void 0 : (_window_Trengo_Api_Widget_url_updated = _window_Trengo_Api_Widget.url_updated) === null || _window_Trengo_Api_Widget_url_updated === void 0 ? void 0 : _window_Trengo_Api_Widget_url_updated.call(_window_Trengo_Api_Widget); 1752 window.Trengo = window.Trengo || {}; 1753 window.Trengo.on_chat_ended = apply; 1754 return ()=>{ 1755 var _window_Trengo; 1756 (_window_Trengo = window.Trengo) === null || _window_Trengo === void 0 ? true : delete _window_Trengo.on_chat_ended; 1757 }; 1758 }, [ 1759 widget, 1760 isEnabled, 1761 isVisible 1762 ]); 1763 return null; 1764} 1765__turbopack_context__.s([ 1766 "default", 1767 0, 1768 TrengoVisibility 1769], 834107); 1770}), 1771887176, ((__turbopack_context__) => { 1772"use strict"; 1773 1774var __TURBOPACK__imported__module__271645__ = __turbopack_context__.i(271645); 1775var __TURBOPACK__imported__module__614537__ = __turbopack_context__.i(614537); 1776"use client"; 1777; 1778; 1779function CookiebotConvertConsentListener() { 1780 const router = (0, __TURBOPACK__imported__module__614537__["useRouter"])(); 1781 const dialogDisplayedRef = (0, __TURBOPACK__imported__module__271645__["useRef"])(false); 1782 (0, __TURBOPACK__imported__module__271645__["useEffect"])(()=>{ 1783 const handleDialogDisplay = ()=>{ 1784 dialogDisplayedRef.current = true; 1785 }; 1786 const handleAccept = ()=>{ 1787 var _window_Cookiebot; 1788 // Only refresh if the banner was actually shown & the user 1789 // just made a choice â not on a replay from stored consent. 1790 if (dialogDisplayedRef.current && ((_window_Cookiebot = window.Cookiebot) === null || _window_Cookiebot === void 0 ? void 0 : _window_Cookiebot.consent.statistics)) { 1791 window._conv_q = window._conv_q || []; 1792 window._conv_q.push({ 1793 what: "consentGiven" 1794 }); 1795 router.refresh(); 1796 } 1797 }; 1798 window.addEventListener("CookiebotOnDialogDisplay", handleDialogDisplay); 1799 window.addEventListener("CookiebotOnAccept", handleAccept); 1800 return ()=>{ 1801 window.removeEventListener("CookiebotOnDialogDisplay", handleDialogDisplay); 1802 window.removeEventListener("CookiebotOnAccept", handleAccept); 1803 }; 1804 }, [ 1805 router 1806 ]); 1807 return null; 1808} 1809__turbopack_context__.s([ 1810 "CookiebotConvertConsentListener", 1811 0, 1812 CookiebotConvertConsentListener 1813]); 1814}), 1815]); 1816 1817//# debugId=639ee2e3-24a3-617c-6eb5-95070ed47ce1
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.