PageSourceSearch

https://www.arcadis.com/dist-client/chunks/554.3b56b9e210262eae8bbd.js

js arcadis.com collected 2026-10-09 22:12:56 UTC 11,143 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkarcadis_optimizely_web_design=globalThis.webpackChunkarcadis_optimizely_web_design||[]).push([[554],{4031(e,t,n){n.d(t,{A:()=>m});var s=n(6070),l=n(37),a=n(1955),i=n(5177),c=n(3080),o=n(2255),r=n(1602);function d({children:e,viewportClassName:t,...n}){return(0,s.jsxs)(r.Kq,{...n,children:[e,(0,s.jsx)(r.LM,{className:(0,o.cn)("fixed bottom-0 left-0 z-50 w-full p-4 md:w-fit",t)})]})}function u({children:e,...t}){return(0,s.jsx)(r.bL,{"data-slot":"toast-root",...t,children:e})}function h({...e}){return(0,s.jsx)(r.hE,{"data-slot":"toast-title",...e})}function f({...e}){return(0,s.jsx)(r.rc,{"data-slot":"toast-action",...e})}const m=({savedToCollectionLabel:e,viewCollections:t,successToastOpen:n,setSuccessToastOpen:o})=>(0,s.jsx)(d,{swipeDirection:"left",children:(0,s.jsx)(u,{open:n,onOpenChange:o,children:(0,s.jsxs)(a._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,s.jsx)(h,{asChild:!0,children:(0,s.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,s.jsx)(l.S,{className:"text-type-button-primary bg-surface-button-primary-default h-6 w-6 rounded-full p-1"}),(0,s.jsx)(c.H4,{className:"leading-[100%]",children:e})]})}),(0,s.jsx)(f,{asChild:!0,altText:t.text||"",children:(0,s.jsx)(i.N,{linkModel:t,variant:"tertiary",size:"small-text",className:"font-bold"})})]})})})},8837(e,t,n){n.d(t,{A:()=>h,w:()=>u});var s=n(6070),l=n(3665),a=n(1955),i=n(6223),c=n(8704),o=n(3080),r=n(9807),d=n(782);const u=({cookiesRequiredLabels:e,className:t,isModalOpen:n,onClose:u,triggerButton:h,...f})=>{const{heading:m,description:p,tryAgainLabel:x,openCookieSettings:g}=e;return(0,s.jsx)(i.A,{openModal:n,onClose:()=>u?.(),heading:m,description:p,triggerButton:h,className:"top-1/2 h-fit -translate-y-1/2 rounded-sm md:w-full md:max-w-112",children:(0,s.jsx)("div",{className:(0,r.cn)(t),...f,children:(0,s.jsxs)(a._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex flex-col items-center text-center",children:[m&&(0,s.jsx)(o.H2,{className:"pt-8 md:pt-4",dangerouslySetInnerHTML:{__html:m||""}}),p&&(0,s.jsx)(c.uv,{className:"pt-1 pb-6",dangerouslySetInnerHTML:{__html:p||""}}),(0,s.jsxs)("div",{className:"flex flex-row justify-center gap-4",children:[g&&(0,s.jsx)(l.$,{variant:"secondary",size:"small",onClick:e=>{e.preventDefault(),(0,d.U)()},children:g}),x&&(0,s.jsx)(l.$,{size:"small",onClick:e=>{e.preventDefault(),u?.(!0)},children:x})]})]})})})},h=u},7353(e,t,n){n.d(t,{A:()=>g,y:()=>x});var s=n(6070),l=n(3665),a=n(6223),i=n(8704),c=n(3080),o=n(1955),r=n(4174),d=n(710),u=n(6669),h=n(9807),f=n(9109),m=n(8698),p=n(758);const x=({addSuccessLabel:e,createCollectionLabels:t,className:n,isModalOpen:x,onClose:g,triggerButton:y,contentId:w,contentTitle:j,ownerId:b,contentType:_,...v})=>{const N=(0,u.v)(),{heading:C,brow:S,backLabel:I,createAndSaveLabel:k}=t,[T,L]=p.useState(!1),[q,E]=p.useState(0),[A,M]=p.useState(""),[F,H]=p.useState(!1),{refetch:O,isFetching:P,isError:z}=(0,d.W)(A,w?[w]:[]);p.useEffect(()=>{if(T&&!P)if(z)H(!0);else{const t=(0,f.K)(e,"",1);B(!0,t)}},[P,T,z]);const B=(e=!1,t)=>{E(0),M(""),H(!1),L(!1),g?.(e,t)};return(0,s.jsx)(a.A,{openModal:x,onClose:()=>B(),heading:C,description:S,triggerButton:y,className:"top-1/2 h-fit -translate-y-1/2 rounded-sm md:h-full md:max-h-107 md:w-full md:max-w-112",children:(0,s.jsx)("div",{className:(0,h.cn)("md:h-full",n),...v,children:(0,s.jsxs)(o._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex h-full flex-col justify-between text-center",children:[(0,s.jsxs)("div",{children:[C&&(0,s.jsx)(c.H2,{className:"border-b-stroke-default-default border-b pt-8 pb-4 md:pt-4",dangerouslySetInnerHTML:{__html:C||""}}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 pt-6 text-left",children:[S&&(0,s.jsx)(i.Ub,{asChild:!0,children:(0,s.jsx)("label",{htmlFor:"collectionName",dangerouslySetInnerHTML:{__html:S||""}})}
1),(0,s.jsx)(r.p,{type:"text",className:"rounded-sm",id:"collectionName",maxLength:50,onChange:e=>{E(e.target.value.length),M(e.target.value)},"aria-invalid":F}),(0,s.jsx)(i.Ub,{asChild:!0,children:(0,s.jsx)("p",{children:`${q} / 50`})})]})]}),(0,s.jsxs)("div",{className:"flex flex-row justify-center gap-4 pt-7 md:shrink-0 md:justify-between",children:[I&&(0,s.jsx)(l.$,{variant:"secondary",size:"small",onClick:e=>{e.preventDefault(),B()},children:I}),k&&(0,s.jsx)(l.$,{size:"small",onClick:e=>{e.preventDefault(),A&&q>0?(L(!0),H(!1),O(),w?N.push({event:"content_item_saved_to_new_collection",collection_name:A,content_id:w,content_title:m.Hh(j||"").root().text(),owner_id:b,content_type:_}):N.push({event:"collection_created",collection_name:A,owner_id:b})):H(!0)},disabled:0===q||F,"aria-invalid":F,children:k})]})]})})})},g=x},1153(e,t,n){n.d(t,{A:()=>y});var s=n(6070),l=n(3665),a=n(4028),i=n(6223),c=n(8704),o=n(3080),r=n(1955),d=n(8083),u=n(2168);function h(e,t,n){const s=(0,u.E)({queries:n.map(n=>{const s=e.find(e=>e.id.externalId===n),l=s?.contentIds||[],a=l.includes(t)?l.filter(e=>e!==t):[...l,t],i=JSON.stringify({contentIds:a,name:s?.name,ownerId:s?.ownerId});return{queryKey:["allCollections"],queryFn:()=>(async(e,t)=>await fetch(`/API/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:t}).then(e=>e.json()))(n||"",i),enabled:!1}})});return{isAnyFetching:s.some(e=>e.isFetching),refetchArray:s.map(e=>e.refetch)}}var f=n(6669),m=n(9807),p=n(9109),x=n(8698),g=n(758);const y=({collections:e,contentId:t,contentTitle:n,saveCollectionModal:u,openCreateCollectionModal:y,className:w,isModalOpen:j,onClose:b,triggerButton:_,ownerId:v,contentType:N,...C})=>{const{heading:S,createCollectionLabel:I,saveCollectionLabel:k,description:T,addSuccessLabel:L,addSuccessPluralLabel:q}=u,[E,A]=g.useState(!1),[M,F]=g.useState(!1),[H,O]=g.useState([]),[P,z]=g.useState([]),[B,D]=g.useState([]),[$,K]=g.useState(!1),U=(0,f.v)(),{isAnyFetching:V,refetchArray:J}=h(e,t,B),Q=e=>{let t=[];t=P.includes(e)?P.filter(t=>t!==e):[...P,e],z(t);const n=!((e,t)=>{if(e.length!==t.length)return!1;const n=[...e].sort(),s=[...t].sort();return JSON.stringify(n)===JSON.stringify(s)})(H,t);K(n)},G=(e=!1,t)=>{K(!1),A(!1),z([]),D([]),O([]),b?.(e,t)};return g.useEffect(()=>{j&&F(!1)},[j]),g.useEffect(()=>{if(!M&&e&&e.length>0&&0===B.length){const n=[];e.forEach(e=>{(e.contentIds||[]).includes(t)&&n.push(e.id.externalId)}),n.length>0&&(z(n),O(n)),F(!0)}},[M,e]),g.useEffect(()=>{E&&B.length>0&&J&&J.length>0&&J.forEach(e=>e())},[E,B]),g.useEffect(()=>{if(E&&!V){const e=(0,p.K)(L,q,B.length);G(!0,e)}},[V,E]),(0,s.jsx)(i.A,{openModal:j,onClose:()=>G(),heading:S,description:T,className:(0,m.cn)("p-4 md:h-full md:max-h-150 md:w-full md:max-w-112 md:p-0",(!e||0===e.length)&&"md:max-h-107"),triggerButton:_,children:(0,s.jsx)("div",{className:(0,m.cn)("bg-type-default h-full w-full overflow-hidden rounded-sm",w),...C,children:(0,s.jsxs)(r._V,{palette:"palette-light",spacing:"standard",className:"bg-surface-primary-default text-type-default flex h-full flex-col justify-between pb-6",children:[S&&(0,s.jsx)(o.H2,{className:"pb-4",dangerouslySetInnerHTML:{__html:S||""}}),(0,s.jsxs)("div",{className:"flex h-full overflow-y-auto",children:[e&&e.length>0&&(0,s.jsx)("ol",{className:"pr-2",children:e.map(e=>{const t=e.id.externalId;return(0,s.jsxs)("li",{className:"flex flex-row gap-3 py-3",children:[(0,s.jsx)(d.S,{className:"data-[state=checked]:bg-surface-primary-default data-[state=checked]:border-type-default data-[state=checked]:text-type-default mt-0.5",onCheckedChange:()=>{Q(t)},checked:P.includes(t)}),(0,s.jsx)("span",{children:e.name})]},t)})}),T&&(!e||0===e.length)&&(0,s.jsx)("div",{className:"bg-surface-primary-hover flex h-full w-full items-center justify-center",children:(0,s.jsx)(c.uv,{className:"text-type-disabled max-w-49 text-center md:py-6",dangerouslySetInnerHTML:{__html:T||""}})})]}),(0,s.jsxs)("div",{className:"flex flex-col justify-center gap-4 pt-6 md:flex-row md:justify-between",children:[I&&(0,s.jsxs)(l.$,{variant:"secondary",size:"small",className:"w-full self
1-center md:w-fit",onClick:()=>{y?.(),G()},children:[(0,s.jsx)(a.R,{className:"h-4 w-4"}),I]}),e&&e.length>0&&k&&(0,s.jsx)(l.$,{className:"w-full self-center md:w-fit",size:"small",onClick:s=>{s.preventDefault(),A(!0);const l=new Set;P.forEach(e=>{H.includes(e)||l.add(e)}),H.forEach(e=>{P.includes(e)||l.add(e)});const a=Array.from(l)||[];D(a),U.push({event:"content_item_inclusion_in_collections_updated",content_id:t,content_title:x.Hh(n||"").root().text(),owner_id:v,content_type:N,collections:e.map(e=>({collection_id:e.id.externalId,is_included:!!P.find(t=>t===e.id.externalId)}))})},disabled:!$,children:k})]})]})})})}},2181(e,t,n){n.d(t,{L:()=>m});var s=n(6070),l=n(4513),a=n(7664),i=n(2265),c=n(3775),o=n(2610),r=n(7125),d=n(5947),u=n(8534),h=n(758);const f=new c.E,m=e=>{const{children:t,language:n,utmParams:c,analytics:m,eloquaSiteId:p}=e,{pageType:x,environment:g,pageSection:y,userType:w}=m||{};!function({eloquaSiteId:e}){(0,h.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 n=document.getElementsByTagName("script")[0];n?.parentNode?.insertBefore(t,n),window._elqQ.push(["elqGetCustomerGUID"])},[])}({eloquaSiteId:p});const j={page_lang:n,page_type:x,environment:g,page_section:y,user_type:w,is_new_site:!0};return(0,s.jsxs)(a.q,{additionalParams:j,children:[(0,s.jsx)(d.ClientOnly,{children:(0,s.jsx)(u.A,{utmParams:c})}),(0,s.jsx)(r.N,{children:(0,s.jsx)(o.Ht,{client:f,children:(0,s.jsx)(l.ri,{children:(0,s.jsx)(i.D,{...e,children:t})})})})]})}},710(e,t,n){n.d(t,{W:()=>l});var s=n(6114);function l(e,t){const n=JSON.stringify({name:e,contentIds:t||[]}),{refetch:l,isFetching:a,isError:i}=(0,s.I)({queryKey:["allCollections",e],queryFn:async()=>await fetch("/API/collections",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:n}).then(e=>e.json()),enabled:!1});return{refetch:l,isFetching:a,isError:i}}},4684(e,t,n){n.d(t,{q:()=>l});var s=n(6114);function l(e=!0){const{data:t,isPending:n,isFetching:l,isError:a,refetch:i}=(0,s.I)({queryKey:["allCollections"],queryFn:async()=>await fetch("/API/collections",{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"}).then(e=>e.json()),enabled:e});return!t||a?{isLoading:n,isFetching:l,collections:[],refetch:i}:{isLoading:n,isFetching:l,collections:t,refetch:i}}},782(e,t,n){n.d(t,{U:()=>l,V:()=>s});const s=()=>"undefined"!=typeof window&&window.Cookiebot&&window.Cookiebot.consented||!1,l=()=>{"undefined"!=typeof window&&window.Cookiebot&&window.Cookiebot.show()}},9109(e,t,n){n.d(t,{K:()=>s});const s=(e,t,n)=>{let s="";return e&&1===n?s=e.replace("{number}",n?.toString()||""):t&&(s=t.replace("{number}",n?.toString()||"")),s}}}]);
2//# sourceMappingURL=554.3b56b9e210262eae8bbd.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.