PageSourceSearch

https://www.arcadis.com/dist-client/chunks/CollectionPage.d3253e673fe7578363a3.js

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

1"use strict";(globalThis.webpackChunkarcadis_optimizely_web_design=globalThis.webpackChunkarcadis_optimizely_web_design||[]).push([[470],{4031(e,t,s){s.d(t,{A:()=>p});var n=s(6070),a=s(37),l=s(1955),i=s(5177),o=s(3080),r=s(2255),c=s(1602);function d({children:e,viewportClassName:t,...s}){return(0,n.jsxs)(c.Kq,{...s,children:[e,(0,n.jsx)(c.LM,{className:(0,r.cn)("fixed bottom-0 left-0 z-50 w-full p-4 md:w-fit",t)})]})}function u({children:e,...t}){return(0,n.jsx)(c.bL,{"data-slot":"toast-root",...t,children:e})}function m({...e}){return(0,n.jsx)(c.hE,{"data-slot":"toast-title",...e})}function h({...e}){return(0,n.jsx)(c.rc,{"data-slot":"toast-action",...e})}const p=({savedToCollectionLabel:e,viewCollections:t,successToastOpen:s,setSuccessToastOpen:r})=>(0,n.jsx)(d,{swipeDirection:"left",children:(0,n.jsx)(u,{open:s,onOpenChange:r,children:(0,n.jsxs)(l._V,{palette:"palette-light",className:"flex flex-row items-center justify-between overflow-hidden rounded-sm px-4 py-5.5 shadow-[0_2px_5px_0_rgba(0,0,0,0.24)] md:gap-22",children:[(0,n.jsx)(m,{asChild:!0,children:(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)(a.S,{className:"text-type-button-primary bg-surface-button-primary-default h-6 w-6 rounded-full p-1"}),(0,n.jsx)(o.H4,{className:"leading-[100%]",children:e})]})}),(0,n.jsx)(h,{asChild:!0,altText:t.text||"",children:(0,n.jsx)(i.N,{linkModel:t,variant:"tertiary",size:"small-text",className:"font-bold"})})]})})})},4214(e,t,s){s.d(t,{A:()=>c});var n=s(6070),a=s(1955),l=s(9807),i=s(758),o=s(2035);const r=["none","palette-light","palette-dark","palette-partial","palette-highlight"],c=({children:e,className:t,active:s=!0,palette:c,...d})=>{const u=(0,i.useRef)(null),[m,h]=(0,i.useState)(c);return(0,i.useEffect)(()=>{const e=u.current;if(!e)return;const t=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t=e.target.getAttribute("data-palette");h(r.includes(t)?t:c)}})},{rootMargin:"-25% 0px -75% 0px",threshold:0});Array.from(e.children).forEach(e=>t.observe(e));const s=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof Element&&t.observe(e)}),e.removedNodes.forEach(e=>{e instanceof Element&&t.unobserve(e)})})});return s.observe(e,{childList:!0}),()=>{t.disconnect(),s.disconnect()}},[c,s]),s?(0,n.jsx)(a._V,{ref:u,palette:m,className:(0,l.cn)("@container col-start-1 row-span-2 row-start-1","ease-macro transition duration-800",t),...d,children:(0,n.jsx)(o.q.Provider,{value:!0,children:e})}):(0,n.jsx)(a._V,{palette:c,className:(0,l.cn)("@container col-start-1 row-span-2 row-start-1",t),...d,children:e})}},8837(e,t,s){s.d(t,{A:()=>m,w:()=>u});var n=s(6070),a=s(3665),l=s(1955),i=s(6223),o=s(8704),r=s(3080),c=s(9807),d=s(782);const u=({cookiesRequiredLabels:e,className:t,isModalOpen:s,onClose:u,triggerButton:m,...h})=>
1{const{heading:p,description:x,tryAgainLabel:f,openCookieSettings:g}=e;return(0,n.jsx)(i.A,{openModal:s,onClose:()=>u?.(),heading:p,description:x,triggerButton:m,className:"top-1/2 h-fit -translate-y-1/2 rounded-sm md:w-full md:max-w-112",children:(0,n.jsx)("div",{className:(0,c.cn)(t),...h,children:(0,n.jsxs)(l._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex flex-col items-center text-center",children:[p&&(0,n.jsx)(r.H2,{className:"pt-8 md:pt-4",dangerouslySetInnerHTML:{__html:p||""}}),x&&(0,n.jsx)(o.uv,{className:"pt-1 pb-6",dangerouslySetInnerHTML:{__html:x||""}}),(0,n.jsxs)("div",{className:"flex flex-row justify-center gap-4",children:[g&&(0,n.jsx)(a.$,{variant:"secondary",size:"small",onClick:e=>{e.preventDefault(),(0,d.U)()},children:g}),f&&(0,n.jsx)(a.$,{size:"small",onClick:e=>{e.preventDefault(),u?.(!0)},children:f})]})]})})})},m=u},2980(e,t,s){s.r(t),s.d(t,{default:()=>F});var n=s(6070),a=s(5947),l=s(3665),i=s(8319),o=s(8421),r=s(9188),c=s(3203),d=s(5177),u=s(8704),m=s(3080),h=s(3426),p=s(9035),x=s(7720),f=s(1730),g=s(9807),j=s(758);const w=({card:e,model:t,quickViewLabel:s,viewFullProjectLabel:a,isSharedView:i,className:o,setRemoveModalOpen:r,setSelectedContentId:c,...d})=>{const[u,m]=j.useState(!1),{ctAs:w,url:b}=e,v=t?.componentGuid,y=t&&"articleType"in t,N=w?.[0]||{url:b,text:a||"View Full Project"};return(0,n.jsxs)("div",{className:(0,g.cn)("bg-surface-primary-default border-stroke-default-default flex w-full flex-col gap-4 roun
1ded-sm border px-5 pt-4 pb-6",o),...d,children:[!i&&(0,n.jsx)(l.$,{variant:"tertiary",size:"icon-small",className:"w-fit self-end",onClick:()=>{c&&v&&(c(v),r?.(!0))},children:(0,n.jsx)(h.d,{className:"h-5 w-5"})}),(0,n.jsx)(x.A,{variant:"standard",card:e}),t&&!y&&s&&(0,n.jsx)(f.A,{block:t,isModalOpen:u,onClose:()=>m(!1),triggerButton:(0,n.jsxs)(l.$,{variant:"menu-option",size:"small",className:"w-fit",onClick:()=>m(!0),children:[(0,n.jsx)(p.I,{className:"h-5 w-5"}),s]}),cta:N})]})};var b=s(5913);const v=({card:e,model:t,removeLabel:s,quickViewLabel:a,isSharedView:i,setRemoveModalOpen:o,setSelectedContentId:r,viewFullProjectLabel:c,className:d,...u})=>{const[x,w]=j.useState(!1),{url:v,ctAs:y,heading:N,media:C,brow:_}=e,S=t?.componentGuid,M=t&&"articleType"in t,I=y?.[0]||{url:v,text:c||"View Full Project"},L=C?.[0];return(0,n.jsx)("div",{className:(0,g.cn)("bg-surface-primary-default border-t-stroke-default-default flex w-full flex-row gap-5 border-t py-6 pr-5.5 pl-2 md:items-center",d),...u,children:(0,n.jsxs)("div",{className:"flex flex-col gap-4 md:grow md:flex-row md:justify-between",children:[(0,n.jsxs)("a",{href:v,className:"flex h-full w-full flex-col md:flex-row md:gap-6",children:[L&&(0,n.jsx)(b.A,{containerClassName:(0,g.cn)("relative h-23.5 aspect-5/4 overflow-hidden rounded-sm hidden md:inline-block shrink-0 self-center"),media:L,videoClassName:"absolute inset-0",imageClassName:"absolute inset-0"}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[_&&(0,n.jsx)(m.Tw,{className:"text-type-brow",children:_}),N&&(0,n.jsx)(m.H4,{className:(0,g.cn)("group-hover:underline md:max-w-125"),dangerouslySetInnerHTML:{__html:N}})]})]}),(0,n.jsxs)("div",{className:"flex flex-row gap-2 md:flex-row-reverse md:items-center",children:[!i&&s&&(0,n.jsxs)(l.$,{variant:"menu-option",size:"small",className:"w-fit",onClick:()=>{r&&S&&(r(S),o?.(!0))},children:[(0,n.jsx)(h.d,{className:"h-5 w-5"}),s]}),t&&a&&!M&&(0,n.jsx)(f.A,{block:t,isModalOpen:x,onClose:()=>w(!1),triggerButton:(0,n.jsxs)(l.$,{variant:"menu-option",size:"small",className:"w-fit",onClick:()=>w(!0),children:[(0,n.jsx)(p.I,{className:"h-5 w-5"}),a]}),cta:I})]})]})})};var y=s(4031),N=s(1955),C=s(4214),_=s(8837),S=s(6223),M=s(536);var I=s(6669),L=s(8698);const k=({removeContentLabels:e,contentId:t,className:s,isModalOpen:a,onClose:i,triggerButton:o,collection:r,removedContentIds:c,contentTitle:d,ownerId:h,contentType:p,...x})=>{const{heading:f,description:w,yesDeleteLabel:b,noCancelLabel:v}=e,[y,C]=j.useState(!1),{mutation:_}=function(e,t,s){const n=t?.contentIds||[];let a=[...n];e&&(a=n.includes(e)?n.filter(t=>e&&t!==e):[...n,e]),s&&s.length>0&&(a=a.filter(e=>!s.includes(e)));const l=JSON.stringify({contentIds:a,name:t?.name,ownerId:t?.ownerId});return{mutation:(0,M.n)({mutationKey:["allCollections",t?.id?.externalId||""],mutationFn:async()=>await fetch(`/API/collections/${t?.id?.externalId}`,{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:l}).then(e=>e.json())})}}(t,r,c),k=(0,I.v)();return j.useEffect(()=>{y&&!_.isPending&&(C(!1),i?.(!0))},[y,_.isPending]),(0,n.jsx)(S.A,{openModal:a,onClose:()=>i?.(),heading:f,description:w,triggerButton:o,className:"top-1/2 h-fit -translate-y-1/2 rounded-sm md:w-full md:max-w-112",children:(0,n.jsx)("div",{className:(0,g.cn)(s),...x,children:(0,n.jsxs)(N._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex flex-col gap-3 pb-6 text-center",children:[f&&(0,n.jsx)(m.H2,{className:"pt-6 md:pt-4",dangerouslySetInnerHTML:{__html:f||""}}),w&&(0,n.jsx)(u.uv,{className:"pt-1 pb-6",dangerouslySetInnerHTML:{__html:w||""}}),(0,n.jsxs)("div",{className:"flex flex-row justify-center gap-4",children:[v&&(0,n.jsx)(l.$,{variant:"secondary",size:"small",onClick:()=>i?.(),children:v}),b&&(0,n.jsx)(l.$,{size:"small",onClick:e=>{e.preventDefault(),C(!0),_.mutate(),k.push({event:"content_item_removed_from_collection",collection_name:r?.name,collection_id:r?.id.externalId,content_id:t,content_title:L.Hh(d||"").root().text(),owner_id:h,content_type:p})},children:b})]})]})})})};var O=s(157),T=s(4174);const A=({shareCollectionLabels:e,className:t,isModalOpen:s,onClose:a,triggerButton:i,...o})=>{const{heading:r,copyLabel:c,copySuccessLabel:d}=e,[u,h]=j.useState(!1);return(0,n.jsx)(S.A,{openModal:s,onClose:()=>{h(!1),a?.()}
1,heading:r,description:c,triggerButton:i,className:"top-1/2 h-fit -translate-y-1/2 rounded-sm md:w-full md:max-w-112",children:(0,n.jsx)("div",{className:(0,g.cn)(t),...o,children:(0,n.jsxs)(N._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex flex-col gap-3 pb-6 text-center",children:[r&&(0,n.jsx)(m.H2,{className:"pt-6 md:pt-4",dangerouslySetInnerHTML:{__html:r||""}}),(0,n.jsx)(T.p,{type:"text",defaultValue:window.location.href,readOnly:!0}),c&&d&&(0,n.jsxs)(l.$,{variant:"default",size:"small",className:"w-full",onClick:async e=>{e.preventDefault();try{await navigator.clipboard.writeText(window.location.href),h(!0)}catch(e){console.error("Failed to copy: ",e)}},children:[u?d:c,u&&(0,n.jsx)(O.C,{})]})]})})})};var V=s(7261),E=s(9494),q=s(7394),P=s(2181),H=s(710),R=s(782);const z=e=>{const{header:t,palette:s,animatedOpening:a=!1,animation:h,breadcrumb:p,heroPalette:x,collection:f,content:b,shareLabel:S,shareBrow:M,totalItemsLabel:L,itemLabel:O,emptyMessage:T,copyCollectionLabel:V,quickViewLabel:P,removeLabel:z,displayMode:F,shareCollectionModal:$,removeContentModal:B,viewFullProjectLabel:G,savedToCollectionLabel:K,viewCollections:U,cookiesRequiredModal:D,analytics:Q}=e;console.log(e);const J="View"===F,[W,X]=j.useState(f?.contentIds&&f.contentIds.length>0),[Y,Z]=j.useState("list"),[ee,te]=j.useState(!1),[se,ne]=j.useState(!1),[ae,le]=j.useState(""),[ie,oe]=j.useState([]),[re,ce]=j.useState(!1),[de,ue]=j.useState(!1),[me,he]=j.useState(!1),{refetch:pe,isFetching:xe}=(0,H.W)(f?.name||"",f?.contentIds||[]),fe=e=>{if(e){const e=(0,R.V)();he(!e),f&&!xe&&e&&(ce(!0),pe())}else he(!1)};j.useEffect(()=>{re&&!xe&&(ue(!0),ce(!1))},[xe]);const ge=j.useMemo(()=>b?.find(e=>e.model?.componentGuid===ae),[b,ae]),je=(0,I.v)();return(0,n.jsxs)("div",{className:"grid grid-rows-[min-content_1fr]",children:[t&&(0,n.jsx)(E.A,{block:t,paletteClassName:(0,g.cn)((0,N.AC)({palette:J?"palette-light":x||s})),className:(0,g.cn)("col-start-1 row-start-1",{"animate-slide-in":a})}),(0,n.jsxs)(C.A,{active:"transition-palette"===h,palette:s,children:[(0,n.jsx)(N._V,{headerUnderlay:!0,spacing:"standard",className:(0,g.cn)("flex flex-col pb-6",J&&"pb-0 md:text-center"),palette:J?"palette-light":x,children:J?(0,n.jsxs)(n.Fragment,{children:[M&&(0,n.jsx)(u.uv,{className:"py-6 font-bold md:pt-12",children:M}),f?.name&&(0,n.jsx)(m.sS,{children:f.name})]}):(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsx)(d.N,{variant:"ghost",size:"ghost",linkModel:p,className:"mt-6 mb-12 self-start justify-self-start rounded-sm px-1 md:mt-12 md:mb-28"}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:justify-between",children:[f?.name&&(0,n.jsx)(m.H1,{children:f.name}),$&&S&&(0,n.jsx)(A,{shareCollectionLabels:$,isModalOpen:ee,onClose:()=>te(!1),triggerButton:(0,n.jsxs)(l.$,{variant:"default",size:"small",className:"shrink- max-h-14 w-fit",onClick:()=>{te(!0),je.push({event:"collection_shared",collection_id:f?.id.externalId,collection_name:f?.name,owner_id:Q?.ownerId})},children:[(0,n.jsx)(c.e,{}),S]})})]})]})}),(0,n.jsxs)(N._V,{spacing:"standard",className:(0,g.cn)("flex flex-col gap-4",J&&"pt-4"),children:[(0,n.jsxs)("div",{className:(0,g.cn)(J&&"flex flex-col justify-between gap-12 md:flex-row md:items-center"),children:[V&&J&&(0,n.jsxs)(l.$,{variant:"secondary",size:"small",className:"w-fit",onClick:()=>fe(!0),children:[(0,n.jsx)(i.o,{}),V]}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between gap-4",children:[L&&(0,n.jsx)(u.uv,{children:`${f?.contentIds?.filter(e=>!ie.includes(e)).length||0} ${L}`}),W&&(0,n.jsxs)(q.O,{value:Y,onValueChange:e=>{e&&Z(e)},type:"single",variant:"outline",children:[(0,n.jsx)(q.d,{value:"grid","aria-label":"Toggle grid",children:(0,n.jsx)(r.v,{className:"size-4.5"})},"grid"),(0,n.jsx)(q.d,{value:"list","aria-label":"Toggle list",children:(0,n.jsx)(o.M,{className:"size-4.5"})},"list")]})]})]}),W?(0,n.jsxs)("div",{children:[O&&"list"===Y&&(0,n.jsx)(m.Tw,{className:"text-type-default hidden pt-4 pb-3 md:block",children:O}),(0,n.jsx)("div",{className:(0,g.cn)("grid",{"gap-5 lg:grid-cols-3":"list"!==Y}),children:!!b?.length&&b?.map(e=>{const t=e.card,s=e.model;return!t||s?.componentGuid&&ie.includes(s.componentGuid)?null:"list"===Y?(0,n.jsx)(v,{card:t,model:s,isSharedView:J,quickViewLabel:P,removeLabel:z,viewFullProjectLabel:G,setRemoveModalOpen:ne,setSelectedContentId:le},s?.componentGuid):(0,n.jsx)(w,{card:t,model:s,isSharedView:J,quickViewLabel:P,viewFullProjectLabel:G,setRemoveModalOpen:ne,setSelectedContentId:le},s?.componentGuid)})})]}):(0,n.jsx)("div",{className:"bg-surface-primary-empty flex h-95 items-center justify-center rounded-sm p-6 md:h-123",children:T&&(0,n.jsx)(u.uv,{className:"text-type-disabled self-center text-center font-normal",dangerouslySetInnerHTML:{__html:T}})})]}),B&&f&&(0,n.jsx)(k,{removeContentLabels:B,contentId:ae,contentTitle:ge?.model?.heading,ownerId:Q?.ownerId,contentType:ge?.model?.reactComponentName,collection:f,removedContentIds:ie,onClose:e=>{if(ne(!1),e){oe(e=>[...e,ae]);const e=f?.contentIds?.filter(e=>!ie.includes(e)&&e!==ae);X(!!e&&e?.length>0)}le("")},isModalOpen:se}),K&&U&&(0,n.jsx)(y.A,{savedToCollectionLabel:K,viewCollections:U,successToastOpen:de,setSuccessToastOpen:ue}),D&&(0,n.jsx)(_.A,{cookiesRequiredLabels:D,isModalOpen:me,onClose:fe})]})]})},F=e=>{const{footer:t}=e;return console.log(e),(0,n.jsxs)(P.L,{...e,children:[(0,n.jsx)(a.ClientOnly,{children:(0,n.jsx)(z,{...e})}),t&&(0,n.jsx)(V.A,{block:t})]})}},1730(e,t,s){s.d(t,{A:()=>h});var n=s(6070),a=s(1955),l=s(5177),i=s(5913),o=s(6223),r=s(8704),c=s(3080),d=s(9797),u=s(9807);const m=({title:e,summary:t})=>(0,n.jsxs)("div",{children:[(0,n.jsx)(c.H4,{className:"pb-2 font-bold",dangerouslySetInnerHTML:{__html:e}}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})]}),h=({block:e,className:t,isModalOpen:s,onClose:h,triggerButton:p,cta:x,...f})=>{const{clientName:g,heading:j,media:w,challengeSummary:b,impactSummary:v,solutionSummary:y,impactAdditional:N}=e,C=w?.[0],_=N?.[0];
1return"Components.Stats"===_?.reactComponentName&&(_.displaySmall=!0,_.hideCta=!0),(0,n.jsx)(o.A,{openModal:s,onClose:h,triggerButton:p,heading:j||"",description:g||"",className:"bg-surface-primary-default rounded-sm md:h-full md:max-h-190 md:w-full md:max-w-280",children:(0,n.jsxs)("div",{className:(0,u.cn)("text-type-default mt-10 grid grid-cols-1 md:mt-0 md:h-full md:grid-cols-12 md:gap-4",t),...f,children:[(0,n.jsxs)(a._V,{spacing:"standard",className:"border-stroke-default-default flex flex-col border-b pb-12 md:col-span-5 md:justify-between md:border-r md:border-b-0 md:pt-12 lg:p-12",children:[(0,n.jsxs)("div",{className:"w-full pb-12",children:[j&&(0,n.jsx)(c.H3,{className:"pb-2",dangerouslySetInnerHTML:{__html:j}}),g&&(0,n.jsx)(r.uv,{className:"text-type-default",dangerouslySetInnerHTML:{__html:g}}),x&&(0,n.jsx)(l.N,{linkModel:x,size:"small",className:"mt-6 w-fit"})]}),(0,n.jsx)("div",{className:"flex flex-col md:flex-row md:justify-between md:gap-12",children:C&&(0,n.jsx)(i.A,{containerClassName:"w-full aspect-5/4 overflow-hidden rounded-sm md:self-end",media:C,videoClassName:"absolute inset-0",imageClassName:"absolute inset-0"})})]}),(0,n.jsxs)(a._V,{spacing:"standard",className:"flex flex-col gap-8 pt-12 md:col-span-7 lg:p-12",children:[b&&(0,n.jsx)(m,{title:"Challenge",summary:b}),y&&(0,n.jsx)(m,{title:"Solution",summary:y}),v&&(0,n.jsx)(m,{title:"Impact",summary:v}),_&&(0,n.jsx)(d.r,{blocks:[_],spacing:"none",className:"@container/stats-horizontal"})]})]})})}},2181(e,t,s){s.d(t,{L:()=>p});var n=s(6070),a=s(4513),l=s(7664),i=s(2265),o=s(3775),r=s(2610),c=s(7125),d=s(5947),u=s(8534),m=s(758);const h=new o.E,p=e=>{const{children:t,language:s,utmParams:o,analytics:p,eloquaSiteId:x}=e,{pageType:f,environment:g,pageSection:j,userType:w}=p||{};!function({eloquaSiteId:e}){(0,m.useEffect)(()=>{window._elqQ=[],window._elqQ.push(["elqSetSiteId",e]),window._elqQ.push(["elqTrackPageView",window.location.href]);const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="//img03.en25.com/i/elqCfg.min.js";const s=document.getElementsByTagName("script")[0];s?.parentNode?.insertBefore(t,s),window._elqQ.push(["elqGetCustomerGUID"])},[])}({eloquaSiteId:x});const b={page_lang:s,page_type:f,environment:g,page_section:j,user_type:w,is_new_site:!0};return(0,n.jsxs)(l.q,{additionalParams:b,children:[(0,n.jsx)(d.ClientOnly,{children:(0,n.jsx)(u.A,{utmParams:o})}),(0,n.jsx)(c.N,{children:(0,n.jsx)(r.Ht,{client:h,children:(0,n.jsx)(a.ri,{children:(0,n.jsx)(i.D,{...e,children:t})})})})]})}},710(e,t,s){s.d(t,{W:()=>a});var n=s(6114);function a(e,t){const s=JSON.stringify({name:e,contentIds:t||[]}),{refetch:a,isFetching:l,isError:i}=(0,n.I)({queryKey:["allCollections",e],queryFn:async()=>await fetch("/API/collections",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:s}).then(e=>e.json()),enabled:!1});return{refetch:a,isFetching:l,isError:i}}},782(e,t,s){s.d(t,{U:()=>a,V:()=>n});const n=()=>"undefined"!=typeof window&&window.Cookiebot&&window.Cookiebot.consented||!1,a=()=>{"undefined"!=typeof window&&window.Cookiebot&&window.Cookiebot.show()}},536(e,t,s){s.d(t,{n:()=>d});var n=s(758),a=s(7427),l=s(3763),i=s(9802),o=s(8138),r=class extends i.Q{#e;#t=void 0;#s;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():"pending"===this.#s?.state.status&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#l(e)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#a(),this.#l()}mutate(e,t){return this.#n=t,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(e)}#a(){const e=this.#s?.state??(0,a.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#l(e){l.jG.batch(()=>
1{if(this.#n&&this.hasListeners()){const t=this.#t.variables,s=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#n.onSuccess?.(e.data,t,s,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(e.data,null,t,s,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#n.onError?.(e.error,t,s,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(void 0,e.error,t,s,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},c=s(2610);function d(e,t){const s=(0,c.jE)(t),[a]=n.useState(()=>new r(s,e));n.useEffect(()=>{a.setOptions(e)},[a,e]);const i=n.useSyncExternalStore(n.useCallback(e=>a.subscribe(l.jG.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d=n.useCallback((e,t)=>{a.mutate(e,t).catch(o.lQ)},[a]);if(i.error&&(0,o.GU)(a.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:d,mutateAsync:i.mutate}}}}]);
2//# sourceMappingURL=CollectionPage.d3253e673fe7578363a3.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.