PageSourceSearch

https://www.arcadis.com/dist-client/chunks/687.851815a1312f67729273.js

js arcadis.com collected 2026-10-09 22:12:58 UTC 12,207 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkarcadis_optimizely_web_design=globalThis.webpackChunkarcadis_optimizely_web_design||[]).push([[687],{7427(t,e,s){s.d(e,{$:()=>o,s:()=>r});var i=s(3763),a=s(1530),n=s(6834),r=class extends a.k{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,n.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i="pending"===this.state.status,a=!this.#i.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const e=await(this.options.onMutate?.(t,s));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:a})}const n=await this.#i.start();return await(this.#s.config.onSuccess?.(n,t,this.state.context,this,s)),await(this.options.onSuccess?.(n,t,this.state.context,s)),await(this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(n,null,t,this.state.context,s)),this.#a({type:"success",data:n}),n}catch(e){try{await(this.#s.config.onError?.(e,t,this.state.context,this,s))}catch(t){Promise.reject(t)}try{await(this.options.onError?.(e,t,this.state.context,s))}catch(t){Promise.reject(t)}try{await(this.#s.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s))}catch(t){Promise.reject(t)}try{await(this.options.onSettled?.(void 0,e,t,this.state.context,s))}catch(t){Promise.reject(t)}throw this.#a({type:"error",error:e}),e}finally{this.#s.runNext(this)}}#a(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},3775(t,e,s){s.d(e,{E:()=>f});var i=s(8138),a=s(6355),n=s(3763),r=s(9802),o=class extends r.Q{constructor(t={}){super(),this.config=t,this.#n=new Map}#n;build(t,e,s){const n=e.queryKey,r=e.queryHash??(0,i.F$)(n,e);let o=this.get(r);return o||(o=new a.X({client:t,queryKey:n,queryHash:r,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(o)),o}add(t){this.#n.has(t.queryHash)||(this.#n.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#n.get(t.queryHash);
1e&&(t.destroy(),e===t&&this.#n.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){n.jG.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#n.get(t)}getAll(){return[...this.#n.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>(0,i.MK)(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,i.MK)(t,e)):e}notify(t){n.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){n.jG.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){n.jG.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},u=s(7427),h=class extends r.Q{constructor(t={}){super(),this.config=t,this.#r=new Set,this.#o=new Map,this.#u=0}#r;#o;#u;build(t,e,s){const i=new u.s({client:t,mutationCache:this,mutationId:++this.#u,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#r.add(t);const e=c(t);if("string"==typeof e){const s=this.#o.get(e);s?s.push(t):this.#o.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){const e=c(t);if("string"==typeof e){const s=this.#o.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#o.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=c(t);if("string"==typeof e){const s=this.#o.get(e),i=s?.find(t=>"pending"===t.state.status);return!i||i===t}return!0}runNext(t){const e=c(t);if("string"==typeof e){const s=this.#o.get(e)?.find(e=>
1e!==t&&e.state.isPaused);return s?.continue()??Promise.resolve()}return Promise.resolve()}clear(){n.jG.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#o.clear()})}getAll(){return Array.from(this.#r)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>(0,i.nJ)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,i.nJ)(t,e))}notify(t){n.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return n.jG.batch(()=>Promise.all(t.map(t=>t.continue().catch(i.lQ))))}};function c(t){return t.options.scope?.id}var l=s(8448),d=s(1681),f=class{#h;#s;#c;#l;#d;#f;#y;#p;constructor(t={}){this.#h=t.queryCache||new o,this.#s=t.mutationCache||new h,this.#c=t.defaultOptions||{},this.#l=new Map,this.#d=new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#y=l.m.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#p=d.t.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#y?.(),this.#y=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#h.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#h.build(this,e),a=s.state.data;return void 0===a?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime((0,i.d2)(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return this.#h.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const a=this.defaultQueryOptions({queryKey:t}),n=this.#h.get(a.queryHash),r=n?.state.data,o=(0,i.Zw)(e,r);if(void 0!==o)return this.#h.build(this,a).setData(o,{...s,manual:!0})}setQueriesData(t,e,s){return n.jG.batch(()=>this.#h.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state}removeQueries(t){const e=this.#h;n.jG.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#h;return n.jG.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},a=n.jG.batch(()=>this.#h.findAll(t).map(t=>t.cancel(s)));return Promise.all(a).then(i.lQ).catch(i.lQ)}invalidateQueries(t,e={}){return n.jG.batch(()=>(this.#h.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},a=n.jG.batch(()=>this.#h.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,s);return s.throwOnError||(e=e.catch(i.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(a).then(i.lQ)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#h.build(this,e);return s.isStaleByTime((0,i.d2)(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return d.t.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#s}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set((0,i.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#l.values()],s={};return e.forEach(e=>{(0,i.Cp)(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#d.set((0,i.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#d.values()],s={};
1return e.forEach(e=>{(0,i.Cp)(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,i.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#h.clear(),this.#s.clear()}}},7125(t,e,s){s.d(e,{N:()=>f});var i=s(3986),a=s(9742),n=s(2501);function r(t,e,s){return i=>{if(0!==e.length&&!e.some(e=>!(0,n.t)(i.getAll(e),t.getAll(e))))return(0,a.c)("[nuqs `%s`] no change, returning previous",e.join(","),i),i;const r=o(t,e,s);return(0,a.c)("[nuqs `%s`] subbed search params change\n  from %O\n  to   %O",e.join(","),i,r),r}}function o(t,e,s){if(0===e.length)return t;const i=s?new URLSearchParams(t):t;for(const s of t.keys())e.includes(s)||i.delete(s);return i}const u="__nuqs__";var h=s(758);const c=(0,i.r)();const l=(0,h.createContext)({fullPageNavigationOnShallowFalseUpdates:!1});const d=(0,a.n)(function(t){const{fullPageNavigationOnShallowFalseUpdates:e}=(0,h.useContext)(l),[s,i]=(0,h.useState)(()=>"undefined"==typeof location?new URLSearchParams:o(new URLSearchParams(location.search),t,!1));return(0,h.useEffect)(()=>{const e=()=>
1{i(r(new URLSearchParams(location.search),t,!1))},s=e=>{i(r(e,t,!0))};return c.on("update",s),window.addEventListener("popstate",e),()=>{c.off("update",s),window.removeEventListener("popstate",e)}},[t.join("&")]),{searchParams:s,updateUrl:(0,h.useMemo)(()=>function(t){return function(e,s){const i=new URL(location.href);i.search=(0,a.o)(e),(0,a.c)("[nuqs react] Updating url: %s",i),t&&!1===s.shallow?("push"===s.history?location.assign:location.replace).call(location,i):("push"===s.history?history.pushState:history.replaceState).call(history,history.state,u,i),c.emit("update",e),!0===s.scroll&&window.scrollTo({top:0})}}(e),[e])}});function f({children:t,fullPageNavigationOnShallowFalseUpdates:e=!1,...s}){return(0,h.createElement)(l.Provider,{value:{fullPageNavigationOnShallowFalseUpdates:e}},(0,h.createElement)(d,{...s,children:t}))}}}]);
2//# sourceMappingURL=687.851815a1312f67729273.js.map

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.