1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1340],{19608:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var n=r(53520),l=r(5860),s=r(50475),i=r(11405),o=r(41020),a=r(25118);let d=e=>{let{product:t,removeProductButtonText:r,onCartItemRemove:s,onProductQuantityUpdate:i}=e,[d,m]=(0,o.useState)(t.selectedQuantity),[c,h]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let e=(()=>{var e;return[...Array.from({length:null!=(e=Number(null==t?void 0:t.maxNoOfBundles))?e:0},(e,t)=>t+1).map(e=>({value:"".concat(e," ve"),label:"".concat(e," VE")})),...Array.from({length:4},(e,t)=>t+1).map(e=>({value:"".concat(e," stk"),label:"".concat(e," St\xfcck")}))]})();h(e),d||(m(e[0].value),i(t.id,e[0].value))},[]),(0,n.jsxs)("div",{"data-testid":"cart-item",className:"flex flex-col items-center gap-4 border-b border-ui-border-2 pb-5 md:flex-row md:gap-8 md:pb-8 lg:gap-10",children:[(null==t?void 0:t.image)&&(0,n.jsx)(a.A,{width:300,height:300,image:t.image,sizes:{desktop:10,tablet:16},imgStyles:"w-full h-auto md:max-w-3xs"}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,n.jsx)("div",{className:"text-lg leading-tight font-medium",dangerouslySetInnerHTML:{__html:t.title}}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(null==t?void 0:t.quantity)&&(0,n.jsx)("p",{className:"text-brand-text-2",dangerouslySetInnerHTML:{__html:t.quantity}}),(null==t?void 0:t.text)&&(0,n.jsx)("p",{className:"text-brand-text-2",dangerouslySetInnerHTML:{__html:t.text}})]}),(0,n.jsx)("select",{className:"mt-1 min-w-2xs rounded-full border border-brand-primary p-4 font-medium text-brand-primary","data-testid":"cart-item-quantity-select",value:d,onChange:e=>{m(e.target.value),i(t.id,e.target.value)},children:c.map(e=>(0,n.jsx)("option",{value:e.value,dangerouslySetInnerHTML:{__html:e.label}},e.label))})]}),(0,n.jsx)("div",{className:"mt-2 self-start md:self-auto [&>button]:text-alert-danger",children:(0,n.jsx)(l.Button,{buttonStyle:"text","data-testid":"cart-item-remove",text:r,onClick:()=>s(t.id)})})]},t.id)},m=e=>{let{heading:t,text:r,shoppingLink:o,additionalShoppingLink:a,checkoutLink:m}=e,c=(0,i.useDictionary)(),{hasProducts:h,products:u,removeProduct:v,updateProductQuantity:b}=(0,s._)();return(0,n.jsx)("section",{className:"cart-page container mx-auto flex flex-col items-center gap-4 section-container-lg py-12 text-center lg:gap-6 lg:py-22","data-testid":"cart-page",children:h?(()=>{var e;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)("h1",{className:"text-xl font-medium text-brand-primary lg:text-2xl",dangerouslySetInnerHTML:{__html:t}}),r&&(0,n.jsx)("p",{className:"max-w-xl",dangerouslySetInnerHTML:{__html:r}}),m&&(0,n.jsx)(l.Button,{buttonStyle:"primary",size:"large","data-testid":"cart-checkout-button",link:{url:m},displayArrow:!0,text:null==c||null==(e=c.general)?void 0:e.cart.checkoutLinkText}),u&&(0,n.jsx)("div",{className:"mt-8 flex flex-col gap-5 md:gap-8",children:u.map(e=>{var t,r;return(0,n.jsx)(d,{product:e,removeProductButtonText:null!=(r=null==c||null==(t=c.general)?void 0:t.cart.removeProductButtonText)?r:"Remove",onCartItemRemove:v,onProductQuantityUpdate:b},e.id)})})]})})():(()=>{var e,t,r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"text-center text-xl font-medium text-brand-primary lg:text-2xl",dangerouslySetInnerHTML:{__html:(null==c||null==(e=c.general)?void 0:e.cart.emptyTitle)||""}}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 md:flex-row",children:[o&&(0,n.jsx)(l.Button,{buttonStyle:"primary",link:{url:o},displayArrow:!0,text:null==c||null==(t=c.general)?void 0:t.cart.shoppingLinkText}),a&&(0,n.jsx)(l.Button,{buttonStyle:"primary",link:{url:a},displayArrow:!0,text:null==c||null==(r=c.general)?void 0:r.cart.additionalShoppingLinkText})]})]})})()})}},35701:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,26285,23)),Promise.resolve().then(r.t.bind(r,19572,23)),Promise.resolve().then(r.t.bind(r,32981,23)),Promise.resolve().then(r.t.bind(r,1233,23)),Promise.resolve().then(r.bind(r,49512)),Promise.resolve().then(r.bind(r,42421)),Promise.resolve().then(r.bind(r,12786)),Promise.resolve().then(r.bind(r,2942)),Promise.resolve().then(r.bind(r,35177)),Promise.resolve().then(r.bind(r,14159)),Promise.resolve().then(r.bind(r,99536)),Promise.resolve().then(r.bind(r,62058)),Promise.resolve().then(r.bind(r,45146)),Promise.resolve().then(r.bind(r,5860)),Promise.resolve().then(r.bind(r,81008)),Promise.resolve().then(r.bind(r,78027)),Promise.resolve().then(r.bind(r,21881)),Promise.resolve().then(r.bind(r,84047)),Promise.resolve().then(r.bind(r,99501)),Promise.resolve().then(r.bind(r,67855)),Promise.resolve().then(r.bind(r,52643)),Promise.resolve().then(r.bind(r,25529)),Promise.resolve().then(r.bind(r,35047)),Promise.resolve().then(r.bind(r,23179)),Promise.resolve().then(r.bind(r,28918)),Promise.resolve().then(r.bind(r,74812)),Promise.resolve().then(r.bind(r,51967)),Promise.resolve().then(r.bind(r,2713)),Promise.resolve().then(r.bind(r,6662)),Promise.resolve().then(r.bind(r,57583)),Promise.resolve().then(r.bind(r,53943)),Promise.resolve().then(r.bind(r,31878)),Promise.resolve().then(r.bind(r,2185)),Promise.resolve().then(r.bind(r,56456)),Promise.resolve().then(r.bind(r,32583)),Promise.resolve().then(r.bind(r,52626)),Promise.resolve().then(r.bind(r,98771)),Promise.resolve().then(r.t.bind(r,96983,23)),Promise.resolve().then(r.bind(r,4441)),Promise.resolve().then(r.bind(r,83378)),Promise.resolve().then(r.bind(r,33269)),Promise.resolve().then(r.bind(r,24958)),Promise.resolve().then(r.bind(r,39448)),Promise.resolve().then(r.bind(r,92435)),Promise.resolve().then(r.bind(r,6843)),Promise.resolve().then(r.bind(r,59481)),Promise.resolve().then(r.bind(r,79921)),Promise.resolve().then(r.bind(r,46305)),Promise.resolve().then(r.bind(r,31818)),Promise.resolve().then(r.bind(r,60031)),Promise.resolve().then(r.bind(r,80043)),Promise.resolve().then(r.bind(r,76515)),Promise.resolve().then(r.bind(r,77836)),Promise.resolve().then(r.bind(r,8375)),Promise.resolve().then(r.bind(r,94521)),Promise.resolve().then(r.bind(r,78954)),Promise.resolve().then(r.bind(r,17876)),Promise.resolve().then(r.bind(r,2374)),Promise.resolve().then(r.bind(r,2131)),Promise.resolve().then(r.bind(r,87e3)),Promise.resolve().then(r.bind(r,31914)),Promise.resolve().then(r.bind(r,58447)),Promise.resolve().then(r.bind(r,84945)),Promise.resolve().then(r.bind(r,88039)),Promise.resolve().then(r.bind(r,60001)),Promise.resolve().then(r.bind(r,18456)),Promise.resolve().then(r.bind(r,17893)),Promise.resolve().then(r.bind(r,5171)),Promise.resolve().then(r.bind(r,99253)),Promise.resolve().then(r.bind(r,37067)),Promise.resolve().then(r.bind(r,59137)),Promise.resolve().then(r.bind(r,98224)),Promise.resolve().then(r.bind(r,70056)),Promise.resolve().then(r.bind(r,31307)),Promise.resolve().then(r.bind(r,54920)),Promise.resolve().then(r.bind(r,37925)),Promise.resolve().then(r.bind(r,9928)),Promise.resolve().then(r.bind(r,65828)),Promise.resolve().then(r.bind(r,81608)),Promise.resolve().then(r.bind(r,49279)),Promise.resolve().then(r.bind(r,82224)),Promise.resolve().then(r.bind(r,58372)),Promise.resolve().then(r.bind(r,57743)),Promise.resolve().then(r.bind(r,93565)),Promise.resolve().then(r.bind(r,96684)),Promise.resolve().then(r.bind(r,22861)),Promise.resolve().then(r.bind(r,48300)),Promise.resolve().then(r.bind(r,74959)),Promise.resolve().then(r.bind(r,59391)),Promise.resolve().then(r.bind(r,99770)),Promise.resolve().then(r.bind(r,19112)),Promise.resolve().then(r.bind(r,35932)),Promise.resolve().then(r.bind(r,28123)),Promise.resolve().then(r.bind(r,85701)),Promise.resolve().then(r.bind(r,81670)),Promise.resolve().then(r.t.bind(r,69503,23)),Promise.resolve().then(r.t.bind(r,61059,23)),Promise.resolve().then(r.t.bind(r,29303,23)),Promise.resolve().then(r.t.bind(r,66483,23)),Promise.resolve().then(r.t.bind(r,31612,23)),Promise.resolve().then(r.t.bind(r,14952,23)),Promise.resolve().then(r.t.bind(r,85200,23)),Promise.resolve().then(r.bind(r,15220)),Promise.resolve().then(r.bind(r,18961)),Promise.resolve().then(r.bind(r,6646)),Promise.resolve().then(r.bind(r,82029)),Promise.resolve().then(r.bind(r,98983)),Promise.resolve().then(r.bind(r,40109)),Promise.resolve().then(r.bind(r,50475)),Promise.resolve().then(r.bind(r,11405)),Promise.resolve().then(r.bind(r,85228)),Promise.resolve().then(r.t.bind(r,98033,23)),Promise.resolve().then(r.t.bind(r,94247,23)),Promise.resolve().then(r.t.bind(r,62279,23)),Promise.resolve().then(r.t.bind(r,38806,23)),Promise.resolve().then(r.t.bind(r,47780,23)),Promise.resolve().then(r.t.bind(r,58105,23)),Promise.resolve().then(r.bind(r,10001)),Promise.resolve().then(r.bind(r,9327)),Promise.resolve().then(r.bind(r,47606)),Promise.resolve().then(r.bind(r,21914)),Promise.resolve().then(r.bind(r,85536)),Promise.resolve().then(r.bind(r,92147)),Promise.resolve().then(r.bind(r,9318)),Promise.resolve().then(r.bind(r,34888)),Promise.resolve().then(r.bind(r,69747)),Promise.resolve().then(r.bind(r,24615)),Promise.resolve().then(r.bind(r,65723)),Promise.resolve().then(r.bind(r,62837)),Promise.resolve().then(r.bind(r,19608)),Promise.resolve().then(r.bind(r,83067)),Promise.resolve().then(r.bind(r,98031)),Promise.resolve().then(r.t.bind(r,28646,23)),Promise.resolve().then(r.bind(r,52061)),Promise.resolve().then(r.bind(r,40494)),Promise.resolve().then(r.bind(r,63812))},47606:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(41020);function l(e){let{langCode:t}=e;return(0,n.useEffect)(()=>{document.documentElement.lang=t},[t]),null}},62837:(e,t,r)=>{"use strict";r.d(t,{default:()=>j});var n=r(53520),l=r(41020),s=r(19572),i=r.n(s),o=r(38540),a=r(56957),d=r(11576),m=r.n(d),c=r(2942);let h=e=>{let{width:t=17,height:r=17,className:l=""}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,className:l,viewBox:"0 0 512 512",children:[(0,n.jsx)("title",{children:"Email Icon"}),(0,n.jsx)("desc",{children:"Email Icon"}),(0,n.jsx)("path",{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z",fill:"
1currentColor"})]})};var u=r(90899),v=r(64133),b=r(85078);let x=e=>{let{width:t=40,height:r=40,className:l=""}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:l,width:t,height:r,viewBox:"0 0 40 40",children:[(0,n.jsx)("title",{children:"Xing Icon"}),(0,n.jsx)("desc",{children:"Xing Icon"}),(0,n.jsx)("path",{fill:"currentColor",fillRule:"nonzero",d:"M0 20C0 8.954 8.82 0 19.7 0c10.88 0 19.701 8.954 19.701 20s-8.82 20-19.7 20C8.82 40 0 31.046 0 20zm12.605 6c.425 0 .788-.257 1.09-.773L18 17.563l-2.748-4.808c-.29-.504-.659-.755-1.104-.755h-4.004c-.258 0-.435.084-.536.251-.123.17-.118.377.016.623l2.696 4.689c.013.012.013.017 0 .017l-4.236 7.53c-.112.214-.112.415 0 .604.11.19.283.286.517.286h4.004zM30.413 7h-3.866c-.418 0-.76.245-1.027.734L17 23.111l5.44 10.155c.256.49.608.734 1.058.734h3.834c.237 0 .407-.082.514-.245.107-.186.103-.388-.016-.604l-5.39-10.04v-.016l8.47-15.246c.12-.228.12-.43 0-.604-.094-.163-.26-.245-.496-.245h-.001z"})]})};var g=r(21881),f=r(11405),P=r(24522),p=r(78218);let y=e=>{let{platform:t,title:r}=e,[s,o]=(0,l.useState)(null),a=null,d="";switch((0,l.useEffect)(()=>{o(window.location)},[]),t){case"facebook":a=(0,n.jsx)(u.A,{}),d="https://www.facebook.com/sharer/sharer.php?u=".concat(null==s?void 0:s.href);break;case"twitter":a=(0,n.jsx)(b.A,{width:18,height:19}),d="https://x.com/intent/tweet?text=".concat(r,"&url=").concat(null==s?void 0:s.href);break;case"linkedIn":a=(0,n.jsx)(v.A,{width:16,height:17}),d="https://www.linkedin.com/shareArticle?mini=true&url=".concat(null==s?void 0:s.href,"&title=").concat(r);break;case"email":a=(0,n.jsx)(h,{width:20,height:20}),d="mailto:?subject=".concat(r,"&body=").concat(null==s?void 0:s.href);break;case"xing":a=(0,n.jsx)(x,{width:20,height:20}),d="https://www.xing.com/spi/shares/new?url=".concat(null==s?void 0:s.href)}return a?(0,n.jsx)(i(),{className:"hover:text-brand-primary",href:d,target:"_blank",rel:"noopener noreferrer","aria-label":t,children:a}):null},j=e=>{var t;let{children:r,name:s,articleHeading:d,heroTitle:h,heroTitleColour:u,heroImage:v,hideDate:b,hideRelatedPosts:x,postDate:j,modifiedDate:w,author:N,postDateFormatted:S,sharingPlatforms:_,relatedPosts:k,desktopAnimations:T,mobileAnimations:A,publisherName:C,publisherLogo:L,seo:I,schemaInput:M}=e,H=(0,f.useDictionary)(),E=h?"h2":"h1",B=(null==H?void 0:H.general.blog.readMoreText)||"Read more",D=null==H?void 0:H.general.blog.shareText,z=(null==H?void 0:H.general.blog.writtenByAuthorText)||"Written by",Y=(0,l.useMemo)(()=>k&&k.length?k.map(e=>({id:e.contentKey+"",title:e.title,text:e.description,image:e.image,link:{url:e.url,title:B},headingColour:"default",textColour:"default",ctaStyle:"default",backgroundColour:"default",headingHoverColour:"default",textHoverColour:"default",backgroundHoverColour:"default"})):[],[k,B]),O=!x&&!!Y.length,R=(0,l.useMemo)(()=>{var e,t,r;let n=d||h||(null==I?void 0:I.metaTitle)||s,l=(null==v||null==(t=v.sources)||null==(e=t[0])?void 0:e.url)||(null==I?void 0:I.metaImage);if(!n||function(e,t){for(let n of e.matchAll(/<script[^>]*type=["']application\/ld\+json["'][^>]*>([\s\S]*?)<\/script>/gi)){var r;let e=null==(r=n[1])?void 0:r.trim();if(e)try{let r=JSON.parse(e);if(function e(t,r){if(Array.isArray(t))return t.some(t=>e(t,r));if("object"!=typeof t||null===t)return!1;let n=t["@type"];if(n===r||Array.isArray(n)&&n.some(e=>e===r))return!0;let l=t["@graph"];return!!Array.isArray(l)&&l.some(t=>e(t,r))}(r,t))return!0}catch(e){}}return!1}(M||"","Article"))return null;let i={"@context":"https://schema.org","@type":"Article",headline:n.replace(/<[^>]*>/g,"")};return(null==I?void 0:I.metaDescription)&&(i.description=I.metaDescription),l&&(i.image=l),j&&(i.datePublished=m()(j).format("YYYY-MM-DD")),w&&(i.dateModified=m()(w).format("YYYY-MM-DD")),C&&(i.publisher={"@type":"Organization",name:C},L&&(i.publisher.logo={"@type":"ImageObject",url:L})),(null==I?void 0:I.canonicalUrl)&&(i.mainEntityOfPage={"@type":"WebPage","@id":encodeURI(I.canonicalUrl)}),(null==N?void 0:N.socialHeading)&&(i.author={"@type":"Person",name:N.socialHeading,sameAs:(null==(r=N.socialLinks)?void 0:r.map(e=>e.url))||void 0}),i},[d,h,s,v,j,C,L,I,N,w,M]),q=(0,p.A)(),F=!!d,U=!b&&(j||S),K=null==N?void 0:N.socialHeading;return(0,n.jsxs)("div",{className:"blog-article-wrapper","data-testid":"blog-article",children:[v&&(0,n.jsx)(c.default,{isFirstOnPage:!0,shouldPrioritiseImages:!0,style:"small",slides:[{title:h,backgroundImage:v,id:"hero-image",componentType:"bannerSlideImage",textPosition:"left",headingColour:u||"default",textColour:"default",primaryCtaStyle:"default",secondaryCtaStyle:"default",headingTag:"default"}],headingColour:"default",textColour:"default",primaryCtaStyle:"default",secondaryCtaStyle:"default",desktopAnimations:T,mobileAnimations:A}),(F||U||K)&&(0,n.jsxs)("div",{className:"container mx-auto flex flex-col section-container pt-12",children:[K&&(0,n.jsxs)("div",{className:"mb-6 flex flex-row-reverse justify-center gap-8 md:flex-row md:justify-start",children:[N.image&&(0,n.jsx)("div",{className:"flex aspect-square size-20 shrink-0 overflow-hidden rounded-full",children:(0,n.jsx)(P.A,{className:"object-cover object-center",src:N.image.url,alt:N.image.altText,title:N.image.title,height:80,width:80})}),(0,n.jsxs)("div",{children:[N.socialHeading&&(0,n.jsxs)("p",{className:"mb-4",children:[(0,n.jsx)("strong",{className:"text-brand-primary",children:z})," ",N.socialHeading]}),!!(null==(t=N.socialLinks)?void 0:t.length)&&(0,n.jsx)("div",{className:"flex gap-x-2",children:N.socialLinks.map((e,t)=>(0,n.jsx)(i(),{className:"flex size-10 items-center justify-center rounded-full bg-brand-primary text-white transition-colors hover:bg-brand-secondary",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.socialNetwork,children:q({icon:e.socialNetwork,size:20,color:"text-current"})},t))})]})]}),F&&(0,n.jsx)(E,{className:"text-center text-3xl font-medium text-brand-primary",dangerouslySetInnerHTML:{__html:d||""}}),U&&(0,n.jsx)("p",{className:"mt-4 text-center md:text-lg",children:(null==S?void 0:S.shortFormat)?S.shortFormat:m()(j).format("DD/MM/YYYY")}),F||U?(0,n.jsx)("hr",{className:"mt-12 border-ui-border-2"}):null]}),(0,n.jsx)("div",{children:r}),!!(null==_?void 0:_.length)&&(0,n.jsxs)("div",{className:(0,a.A)("container mx-auto flex flex-row items-center gap-x-2 section-container",!O&&"pb-12"),children:[D&&(0,n.jsx)("p",{children:D}),(0,n.jsx)("div",{className:"flex flex-row items-center gap-x-2",children:_.map(e=>(0,n.jsx)(y,{platform:e,title:d||""},e))})]}),O&&!!Y.length&&(0,n.jsx)(g.default,{title:(null==H?void 0:H.general.blog.relatedPostsText)||"",cards:Y,columns:g.COLUMN_VARIANTS.THREE_COLS,mediaDisposition:"sixteenByNine",displayAlignment:"left",verticalAlignment:"sameHeight",cardTextAlignment:"default",cardsAsLinks:!1,headingColour:"default",textColour:"default",backgroundColour:"default",ctaStyle:"default",cardHeadingColour:"default",cardTextColour:"default",cardCtaStyle:"default",cardBackgroun
1dColour:"default",paginationStyle:"default",headingTag:"default",cardHeadingHoverColour:"default",cardTextHoverColour:"default",cardBackgroundHoverColour:"default"}),R&&(0,n.jsx)(o.default,{id:"article-schema",type:"application/ld+json",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify(R)}})]})}},83067:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var n=r(53520),l=r(11405),s=r(265),i=r(34699),o=r(57305),a=r(41020),d=r(65872),m=r(19572),c=r.n(m),h=r(63767),u=r(59470),v=r(86099),b=r(7716);let x=()=>(0,n.jsx)("div",{className:"flex flex-row justify-center",children:(0,n.jsx)(v.m,{})}),g=e=>{let{pageSize:t,suggestions:r,query:m}=e,v=(0,l.useDictionary)(),{searchQuery:g,page:f,setPage:P,results:p,total:y,isFetching:j,isInitialFetching:w,error:N}=((e,t)=>{let r=(0,d.g)(),n=(0,o.useSearchParams)(),l=n.get("t")||t,m=n.get("page"),[c,h]=(0,a.useState)(m?parseInt(m):1),[u,v]=(0,a.useState)(!0),[b,x]=(0,a.useState)(0),{refetch:g,data:f,isFetching:P,isFetched:p,error:y}=(0,s.I)({queryKey:["globalSearch",l,c,e],queryFn:()=>r.get("/api/global-search",{q:l,page:c,count:e||10})});(0,a.useEffect)(()=>{p&&u&&v(!1)},[p,u]),(0,a.useEffect)(()=>{(null==f?void 0:f.total)!==b&&x((null==f?void 0:f.total)||0)},[null==f?void 0:f.total,b]);let j=(0,i.A)(l);(0,a.useEffect)(()=>{if(l!==j){v(!0);let e=new URLSearchParams(window.location.search);e.set("t",l||""),e.set("page","1"),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(e)),1!==c?h(1):g()}},[l,j,c,g]);let w=(0,i.A)(c);return(0,a.useEffect)(()=>{c!==w&&g()},[c,w,g]),(0,a.useEffect)(()=>{let e=e=>{if(e.target){let e=new URLSearchParams(window.location.search).get("page");h(e?parseInt(e):1)}};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),{searchQuery:l,page:c,pageSize:e,setPage:h,results:(null==f?void 0:f.results)||[],total:b,isFetching:P,isInitialFetching:u,error:null==y?void 0:y.message}})(t,m);return g?w?(0,n.jsx)(x,{}):N?(0,n.jsx)("p",{className:"bg-ui-foreground-1 p-3 text-center",children:N}):(0,n.jsxs)(n.Fragment,{children:[0!==p.length&&(0,n.jsx)("p",{"data-testid":"search-total-results",dangerouslySetInnerHTML:{__html:"".concat(null==v?void 0:v.search.totalResultsText," <strong>“").concat(g,"”</strong> - ").concat(y)}}),(0,n.jsxs)("div",{className:"my-8 flex flex-col gap-4",children:[j&&(0,n.jsx)(x,{}),0===p.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{"data-testid":"search-no-results",className:"bg-ui-foreground-1 p-3 text-center",dangerouslySetInnerHTML:{__html:(null==v?void 0:v.search.noResultsText)||""}}),!!(null==r?void 0:r.length)&&(0,n.jsx)("div",{className:"mt-4 flex flex-col gap-4",children:r.map(e=>(0,n.jsxs)("p",{className:"flex flex-row items-center gap-4",children:[(0,n.jsx)("span",{className:"flex aspect-square min-w-8 flex-row items-center justify-center rounded-full bg-brand-primary text-brand-text-inverse",children:(0,n.jsx)(h.A,{})}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})]},e))})]}),p.map((e,t)=>(0,n.jsxs)(a.Fragment,{children:[0===t&&(0,n.jsx)("hr",{className:"border-ui-border-2"}),(0,n.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"search-result-item",children:[(0,n.jsx)("h2",{className:"font-medium",dangerouslySetInnerHTML:{__html:e.title}}),e.description&&(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:e.description}}),(0,n.jsxs)(c(),{href:e.url,className:"flex flex-row items-center gap-x-2 font-bold hover:underline",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(null==v?void 0:v.search.readMoreText)||""}}),(0,n.jsx)(u.A,{width:6,height:11})]})]}),(0,n.jsx)("hr",{className:"border-ui-border-2"})]},"".concat(e.contentKey,"-").concat(t)))]}),(0,n.jsx)(b.A,{currentPage:f,totalPages:Math.ceil(y/(t||10)),onPageChange:P,shouldUpdateParams:!0,parentSectionID:"search-results"})]}):(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:(null==v?void 0:v.search.noSearchTermText)||""}})}}},e=>{e.O(0,[8884,5459,942,301,5112,5e3,6676,7222,2050,6069,1625,5926,584,4838,3507,6964,3849,8270,8931,365,7625,8993,6881,126,7358],()=>e(e.s=35701)),_N_E=e.O()}]);
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.