1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4849],{17414:(e,t,l)=>{l.d(t,{AM:()=>s,Wv:()=>i,hl:()=>c});var a=l(95155),r=l(12115),o=l(67198),n=l(40980);let s=o.bL,i=o.l9,c=r.forwardRef(({className:e,align:t="center",sideOffset:l=4,...r},s)=>(0,a.jsx)(o.ZL,{children:(0,a.jsx)(o.UC,{ref:s,align:t,sideOffset:l,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));c.displayName=o.UC.displayName},25252:(e,t,l)=>{l.d(t,{V:()=>r});var a=l(12115);function r(e,t){let[l,r]=(0,a.useState)(e),[o,n]=(0,a.useState)(t);return o!==t&&(n(t),r(e)),[l,r]}},54336:(e,t,l)=>{l.d(t,{default:()=>L});var a=l(95155),r=l(12115),o=l(73321),n=l(25252),s=l(58282),i=l(20212),c=l(5772),d=l(98500),p=l.n(d),x=l(89239),u=l(856),f=l(54174);function h({post:e,titleTag:t}){let l=(0,f._$)(t);return(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-8 md:gap-[70px] items-start md:items-center w-full",children:[(0,a.jsx)("div",{className:"relative w-full md:w-[51%] aspect-[622/430] overflow-hidden rounded-xl shrink-0",children:(0,a.jsx)(c.default,{src:(0,u.ZC)(e.featured_image)||"/placeholder.svg",alt:e.title,fill:!0,className:"object-cover"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 md:gap-[30px] flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex gap-[25px] items-center",children:[(0,a.jsx)("span",{className:"border-2 border-cfao-600 rounded-[35px] px-5 py-2.5 text-sm font-medium text-cfao-600 shrink-0",children:"Latest Article"}),e.publishedAt&&(0,a.jsx)("span",{className:"text-sm text-cfao-400 leading-5",children:new Date(e.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-5 md:gap-[30px]",children:[(0,a.jsx)(l,{className:"text-2xl md:text-[32px] font-bold leading-tight md:leading-[39px] text-cfao-600",children:e.title}),e.excerpt&&(0,a.jsx)("div",{className:"w-full text-[18px] font-['Gotham'] font-[350] leading-normal break-words text-[#363C5A] line-clamp-2",children:e.excerpt}),e.content&&(0,a.jsx)("div",{className:"w-full text-[16px] font-['Gotham'] font-normal leading-normal break-words text-[#5E637B] line-clamp-3",children:e.content.replace(/<[^>]*>/gm,"").replace(/&[a-z]+;|&#\d+;/gi," ").replace(/\s+/g," ").trim()})]}),(0,a.jsx)(x.$,{asChild:!0,className:"w-full md:w-[200px] bg-cfao-700 hover:bg-cfao-800 text-white rounded-[5px] h-[45px]",children:(0,a.jsx)(p(),{href:`/blog/${e.slug}`,children:"Read more"})})]})]})}var m=l(73973),g=l(64479),b=l(61878),v=l(33210),y=l(40980),j=l(66088),w=l(17414);function C({label:e,placeholder:t,options:l,selected:o,onChange:n,className:s,showChips:i=!0}){let[c,d]=(0,r.useState)(!1),p=e=>o.some(t=>t.toLowerCase()===e.toLowerCase()),x=e=>l.find(t=>t.value.toLowerCase()===e.toLowerCase())?.label??e,u=e=>{n(p(e)?o.filter(t=>t.toLowerCase()!==e.toLowerCase()):[...o,e])},f=0===o.length?t:1===o.length?x(o[0]):`${o.length} selected`;return(0,a.jsxs)("div",{className:(0,y.cn)("flex flex-col gap-[5px]",s),children:[(0,a.jsx)("label",{className:"text-sm font-medium text-graycfao-700",children:e}),(0,a.jsxs)(w.AM,{open:c,onOpenChange:d,children:[(0,a.jsx)(w.Wv,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:(0,y.cn)("relative h-[45px] w-full flex items-center justify-between border border-gray-200 rounded-[5px] px-3 pr-10 text-sm bg-white focus:outline-none focus:border-cfao-400 focus:ring-1 focus:ring-cfao-400 transition-colors",0===o.length?"text-graycfao-300":"text-black"),children:[(0,a.jsx)("span",{className:"truncate",children:f}),(0,a.jsx)(j.A,{className:(0,y.cn)("absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-graycfao-300 transition-transform",c&&"rotate-180")})]})}),(0,a.jsx)(w.hl,{align:"start",className:"w-[var(--radix-popover-trigger-width)] p-0 max-h-60 overflow-y-auto",children:0===l.length?(0,a.jsx)("div",{className:"px-3 py-2 text-sm text-graycfao-400",children:"No options"}):l.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>u(e.value),className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-left hover:bg-gray-50",children:[(0,a.jsx)("span",{className:(0,y.cn)("shrink-0 size-4 rounded border-2 flex items-center justify-center",p(e.value)?"bg-redcfao-600 border-redcfao-600":"border-graycfao-300"),children:p(e.value)&&(0,a.jsx)("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:(0,a.jsx)("path",{d:"M1 4L3.5 6.5L9 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)("span",{className:"truncate",children:e.label})]},e.value))})]}),i&&o.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1 mt-1",children:o.map(e=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-cfao-100 text-cfao-800 text-xs",children:[x(e),(0,a.jsx)("button",{type:"button",onClick:()=>u(e),children:(0,a.jsx)(v.A,{className:"w-3 h-3"})})]},e))})]})}var N=l(14693),k=l(352);function A({searchQuery:e,onSearchQueryChange:t,onSearch:l,brand:o,onBrandChange:n,model:s,onModelChange:i,vehicleType:c,onVehicleTypeChange:d,condition:p,onConditionChange:u,vehicleTypeCategory:f,onVehicleTypeCategoryChange:h,province:m,onProvinceChange:j,town:w,onTownChange:R,priceRange:_,onPriceRangeChange:S,onClearAll:P,filterOptions:L}){let[M,E]=(0,r.useState)(!1),[T,B]=(0,r.useState)(!1);(0,r.useEffect)(()=>
1{if(!M)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[M]);let O=(L?.brands??[]).filter(e=>o.some(t=>[e.name,e.slug??"",(0,k.BF)(e.name)].some(e=>e&&e.toLowerCase()===t.trim().toLowerCase()))).map(e=>e.id),V=(0,N.Hw)((L?.models??[]).filter(e=>0===O.length||O.includes(e.makeId))),F=(0,N.Hw)(L?.brands),D=(0,N.F4)(L?.vehicleTypes),z=N.nh.map(e=>({value:e.value,label:e.label})),W=(0,N.$v)(L?.provinces),$=(0,N.$v)(L?.towns),I=(e,t)=>(0,N.Ds)(e,t)?.value??t,K=(e,t)=>(0,N.Ds)(e,t)?.label??t,q=(e,t)=>Array.from(new Set(t.map(t=>I(e,t)))),U=q(N.y0,p),Z=q(z,f),G=q(F,o),H=q(V,s),X=q(D,c),Q=q(W,m),J=q($,w),Y=q(N.lW,_),ee=(e,t,l)=>a=>l(t.filter(t=>I(e,t)!==a)),et=e=>{if(n(e),e.length>0){let t=(L?.brands??[]).filter(t=>e.some(e=>I(F,e)===(t.slug??(0,k.BF)(t.name)))).map(e=>e.id),l=(0,N.Hw)((L?.models??[]).filter(e=>t.includes(e.makeId))).map(e=>e.value);i(H.filter(e=>l.includes(e)))}},el=[...U.map(e=>({label:K(N.y0,e),onRemove:()=>ee(N.y0,p,u)(e)})),...Z.map(e=>({label:K(z,e),onRemove:()=>ee(z,f,h)(e)})),...G.map(e=>({label:K(F,e),onRemove:()=>et(G.filter(t=>t!==e))})),...H.map(e=>({label:K(V,e),onRemove:()=>ee(V,s,i)(e)})),...X.map(e=>({label:K(D,e),onRemove:()=>ee(D,c,d)(e)})),...Q.map(e=>({label:K(W,e),onRemove:()=>ee(W,m,j)(e)})),...J.map(e=>({label:K($,e),onRemove:()=>ee($,w,R)(e)})),...Y.map(e=>({label:K(N.lW,e),onRemove:()=>ee(N.lW,_,S)(e)}))];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"hidden md:flex md:flex-col md:gap-4 bg-gray-50 border border-gray-100 rounded-xl p-5",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[1.5fr_1fr_1fr_1fr_auto_auto] gap-4 items-end",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,a.jsx)("label",{className:"text-sm font-medium text-graycfao-700",children:"Search"}),(0,a.jsx)("div",{className:"h-[45px]",children:(0,a.jsx)("input",{type:"text",placeholder:"Search articles...",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),className:"w-full h-full border border-gray-200 rounded-[5px] px-3 text-sm bg-white placeholder:text-graycfao-300 focus:outline-none focus:border-cfao-400 focus:ring-1 focus:ring-cfao-400 transition-colors"})})]}),(0,a.jsx)(C,{label:"Make",placeholder:"All Makes",options:F,selected:G,onChange:et,showChips:!1}),(0,a.jsx)(C,{label:"Model",placeholder:"All Models",options:V,selected:H,onChange:i,showChips:!1}),(0,a.jsx)(C,{label:"Body Type",placeholder:"All Body Types",options:D,selected:X,onChange:d,showChips:!1}),(0,a.jsx)("button",{type:"button","aria-label":"More filters","aria-expanded":T,onClick:()=>B(e=>!e),className:(0,y.cn)("h-[45px] w-[45px] flex items-center justify-center rounded-[5px] border transition-colors",T?"bg-cfao-50 border-cfao-400 text-cfao-600":"bg-white border-gray-200 text-graycfao-500 hover:border-cfao-400"),children:(0,a.jsx)(g.A,{className:"w-[18px] h-[18px]"})}),(0,a.jsxs)(x.$,{onClick:l,className:"h-[45px] bg-redcfao-600 hover:bg-redcfao-700 text-white rounded-[5px] gap-2 font-medium text-sm px-6",children:[(0,a.jsx)(b.A,{className:"w-4 h-4"}),"Search"]})]}),T&&(0,a.jsxs)("div",{className:"grid grid-cols-5 gap-4 items-end pt-4 border-t border-gray-100",children:[(0,a.jsx)(C,{label:"Vehicle Condition",placeholder:"All Conditions",options:N.y0,selected:U,onChange:u,showChips:!1}),(0,a.jsx)(C,{label:"Vehicle Type",placeholder:"All Types",options:z,selected:Z,onChange:h,showChips:!1}),(0,a.jsx)(C,{label:"Province",placeholder:"All Provinces",options:W,selected:Q,onChange:j,showChips:!1}),(0,a.jsx)(C,{label:"Town",placeholder:"All Towns",options:$,selected:J,onChange:R,showChips:!1}),(0,a.jsx)(C,{label:"Price Range",placeholder:"All Prices",options:N.lW,selected:Y,onChange:S,showChips:!1})]}),el.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-1 border-t border-gray-100",children:[(0,a.jsx)("span",{className:"text-xs text-graycfao-400 font-medium shrink-0",children:"Active filters:"}),el.map((e,t)=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-cfao-50 border border-cfao-100 text-cfao-700 text-xs font-medium",children:[e.label,(0,a.jsx)("button",{type:"button",onClick:e.onRemove,className:"ml-0.5 hover:text-redcfao-600",children:(0,a.jsx)(v.A,{className:"w-3 h-3"})})]},t)),(0,a.jsx)("button",{type:"button",onClick:P,className:"text-xs text-graycfao-400 hover:text-redcfao-600 underline ml-1",children:"Clear all"})]})]}),(0,a.jsxs)("div",{className:"flex md:hidden items-end gap-[25px]",children:[(0,a.jsx)("div",{className:"flex flex-1 flex-col gap-[5px]",children:(0,a.jsx)("div",{className:"h-[45px]",children:(0,a.jsx)("input",{type:"text",placeholder:"Search...",value:e,onCh
1ange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),className:"w-full h-full border-2 border-graycfao-200 rounded-[5px] px-3 text-base bg-white placeholder:text-graycfao-300 focus:outline-none"})})}),(0,a.jsx)("button",{onClick:()=>E(!0),className:"shrink-0 size-[45px] flex items-center justify-center bg-redcfao-600 rounded-[5px]",children:(0,a.jsx)(g.A,{className:"w-[18px] h-[18px] text-white"})})]}),M&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col bg-white md:hidden",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between h-[60px] px-4 bg-redcfao-600 shadow-[0px_4px_4px_0px_rgba(54,60,90,0.1)]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-[15px]",children:[(0,a.jsx)(g.A,{className:"w-[18px] h-[18px] text-white"}),(0,a.jsx)("span",{className:"text-base font-medium text-white",children:"Blog Filter"})]}),(0,a.jsx)("button",{onClick:()=>E(!1),children:(0,a.jsx)(v.A,{className:"w-6 h-6 text-white"})})]}),(0,a.jsxs)("div",{className:"flex flex-col flex-1 gap-5 p-5 overflow-y-auto",children:[(0,a.jsx)(C,{label:"Vehicle Condition",placeholder:"Select Condition",options:N.y0,selected:U,onChange:u}),(0,a.jsx)(C,{label:"Vehicle Type",placeholder:"Select Vehicle Type",options:z,selected:Z,onChange:h}),(0,a.jsx)(C,{label:"Make",placeholder:"Select Make",options:F,selected:G,onChange:et}),(0,a.jsx)(C,{label:"Model",placeholder:"Select Model",options:V,selected:H,onChange:i}),(0,a.jsx)(C,{label:"Body Type",placeholder:"Select Body Type",options:D,selected:X,onChange:d}),(0,a.jsx)(C,{label:"Province",placeholder:"Select Province",options:W,selected:Q,onChange:j}),(0,a.jsx)(C,{label:"Town",placeholder:"Select Town",options:$,selected:J,onChange:R}),(0,a.jsx)(C,{label:"Price Range",placeholder:"Select Price Range",options:N.lW,selected:Y,onChange:S})]}),(0,a.jsx)("div",{className:"px-[10px] pt-[10px] pb-[15px] shadow-[0px_-4px_4px_0px_rgba(54,60,90,0.15)]",children:(0,a.jsx)("button",{onClick:()=>{l(),E(!1)},className:"w-full h-[45px] border-2 border-redcfao-600 rounded-[5px] text-base font-medium text-redcfao-600",children:"Apply to Search"})})]})]})}var R=l(2983);function _(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function S(e){return{id:e.id,title:e.title,slug:e.slug,excerpt:e.excerpt??"",content:e.content??"",publishedAt:e.publishedAt??"",featured_image:e.featured_image??"",category:e.category??"",categorySlug:e.categorySlug??"",tags:e.tags,author:{id:0,name:e.author??"",title:"",avatar:""},comments:[],commentCount:0,featured:!1}}function P({category:e="",featuredArticleTitleHeadingTag:t}){let l=(0,o.useRouter)(),c=(0,o.useSearchParams)(),[d,p]=(0,r.useState)(12),[x,u]=(0,r.useState)(!1),f=c.toString(),[g,b]=(0,n.V)(c.get("q")??"",f),[v,y]=(0,n.V)(_(c.get("brand")),f),[j,w]=(0,n.V)(_(c.get("model")),f),[C,L]=(0,n.V)(_(c.get("body_type")),f),[M,E]=(0,n.V)(_(c.get("vehicle_condition")),f),[T,B]=(0,n.V)(_(c.get("vehicle_type")),f),[O,V]=(0,n.V)(_(c.get("province")),f),[F,D]=(0,n.V)(_(c.get("town")),f),[z,W]=(0,n.V)(_(c.get("price_range")),f);(0,r.useEffect)(()=>{let e=window.matchMedia("(max-width: 639px)"),t=()=>{p(e.matches?4:12),u(e.matches)};return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let $=Math.max(1,Number(c.get("page")??1)),I=c.get("q")?.trim()??"",K=c.get("chain")??"",q=K?K.split(",").filter(Boolean):void 0,U=q?.length?Object.fromEntries(q.map(e=>[e,c.get(e)??""]).filter(([,e])=>e)):void 0,Z=e||(q?.includes("category")?U?.category??"":""),{data:G}=(0,i.Wk)(),{data:H}=(0,i.kd)(),X=(H?.brands??[]).filter(e=>v.some(t=>[e.name,e.slug??"",(0,k.BF)(e.name)].some(e=>e&&e.toLowerCase()===t.trim().toLowerCase()))).map(e=>e.id),{data:Q}=(0,i.kd)(1===X.length?X[0]:void 0),J=H?{...H,models:1===X.length?Q?.models??H.models:H.models}:void 0,Y=(0,r.useMemo)(()=>(0,N.yt)(U,H),[U,H]),{data:ee,isLoading:et}=(0,i.BL)({page:$,pageSize:d,category:e||void 0,searchQuery:I||void 0,chain:q,chainValues:Y}),{data:el}=(0,i.BL)({page:1,pageSize:1}),ea=!!(I||q&&q.length||e),er=el?.featured?S(el.featured):void 0,eo=[...ea&&1===$&&ee?.featured?[S(ee.featured)]:[],...(ee?.data??[]).map(S)],en=ea?ee?.total??0:Math.max(0,(ee?.total??0)-1),es=(G??[]).filter(e=>e.postCount>0),ei=(e,t,l,a,r)=>{let o=new URLSearchParams;if(t>1&&o.set("page",String(t)),r&&o.set("q",r),l.length)for(let e of(o.set("chain",l.join(",")),l)){let t=a[e];t&&o.set(e,t)}let n=(0,N.Pf)(o);return n?`${e}?${n}`:e},ec=(0,r.useMemo)(()=>[{label:"Latest",value:""},...es.map(e=>({label:e.name,value:e.slug}))],[es]);return(0,a.jsxs)("section",{className:"bg-white flex flex-col gap-12 md:gap-[100px] items-center max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 md:py-[100px]",children:[er&&(0,a.jsx)(h,{post:er,titleTag:t}),(0,a.jsxs)("div",{className:"flex flex-col gap-[50px] w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[30px]",children:[(0,a.jsx)(m.A,{tabs:ec,activeTab:Z,activeColor:"#363c5a",onChange:e=>{(""===e||es.some(t=>t.slug===e))&&l.push(e?`/blog/${e}`:"/blog")},hint:"Category:",itemBorder:!0,maxVisible:x?4:void 0}),(0,a.jsx)(A,{searchQuery:g,onSearchQueryChange:b,onSearch:()=>{let t=e?`/blog/${e}`:"/blog",a=[],r={},o=(e,t)=>{t.length>0&&(a.push(e),r[e]=t.join(","))};o("vehicle_condition",M),o("vehicle_type",T),o("brand",v),o("model",j),o("body_type",C),o("province",O),o("town",F),o("price_range",z),l.push(ei(t,1,a,r,g.trim()||void 0))},brand:v,onBrandChange:y,model:j,onModelChange:w,vehicleType:C,onVehicleTypeChange:L,condition:M,onConditionChange:E,vehicleTypeCategory:T,onVehicleTypeCategoryChange:B,province:O,onProvinceChange:V,town:F,onTownChange:D,priceRange:z,onPriceRangeChange:W,onClearAll:()=>{b(""),y([]),w([]),L([]),E([]),B([]),V([]),D([]),W([]),l.push(e?`/blog/${e}`:"/blog")},filterOptions:J})]}),et?(0,a.jsx)("div",{className:"text-center py-10 text-cfao-400",children:"Loading articles..."}):0===eo.length?(0,a.jsx)("div",{className:"text-center py-10 text-cfao-400",children:"No results found."}):(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-[25px]",children:eo.map(e=>(0,a.jsx)("div",{children:(0,a.jsx)(s.A,{post:e})},e.id))}),!et&&eo.length>0&&(0,a.jsx)(R.A,{page:$,pageSize:d,pageSizeOptions:[d],totalCount:en,onPageChange:t=>{let a=e?`/blog/${e}`:"/blog";l.push(ei(a,t,q??[],U??{},I||void 0))},onPageSizeChange:p})]})]})}function L({category:e="",featuredArticleTitleHeadingTag:t}){return(0,a.jsx)(r.Suspense,{children:(0,a.jsx)(P,{category:e,featuredArticleTitleHeadingTag:t})})}},60285:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(78340).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},64479:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(78340).A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},67198:(e,t,l)=>{let a,r,o;l.d(t,{UC:()=>H,ZL:()=>G,bL:()=>U,l9:()=>Z});var n=l(12115),s=l(70379),i=l(47527),c=l(68599),d=l(98454),p=l(32007),x=l(69885),u=l(89971),f=l(80878),h=l(19040),m=l(83935),g=l(99354),b=l(95155),v=Symbol("radix.slottable");function y(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var j=l(98979),w=l(22954),C=l(78919),N="Popover",[k,A]=(0,c.A)(N,[f.Bk]),R=(0,f.Bk)(),[_,S]=k(N),P=e=>{let{__scopePopover:t,children:l,open:a,defaultOpen:r,onOpenChange:o,modal:s=!1}=e,i=R(t),c=n.useRef(null),[d,p]=n.useState(!1),[x,h]=(0,j.i)({prop:a,defaultProp:r??!1,onChange:o,caller:N});return(0,b.jsx)(f.bL,{...i,children:(0,b.jsx)(_,{scope:t,contentId:(0,u.B)(),triggerRef:c,open:x,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:s,children:l})})};P.displayName=N;var L="PopoverAnchor";n.forwardRef((e,t)=>
1{let{__scopePopover:l,...a}=e,r=S(L,l),o=R(l),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=r;return n.useEffect(()=>(s(),()=>i()),[s,i]),(0,b.jsx)(f.Mz,{...o,...a,ref:t})}).displayName=L;var M="PopoverTrigger",E=n.forwardRef((e,t)=>{let{__scopePopover:l,...a}=e,r=S(M,l),o=R(l),n=(0,i.s)(t,r.triggerRef),c=(0,b.jsx)(g.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":q(r.open),...a,ref:n,onClick:(0,s.mK)(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:(0,b.jsx)(f.Mz,{asChild:!0,...o,children:c})});E.displayName=M;var T="PopoverPortal",[B,O]=k(T,{forceMount:void 0}),V=e=>{let{__scopePopover:t,forceMount:l,children:a,container:r}=e,o=S(T,t);return(0,b.jsx)(B,{scope:t,forceMount:l,children:(0,b.jsx)(m.C,{present:l||o.open,children:(0,b.jsx)(h.Z,{asChild:!0,container:r,children:a})})})};V.displayName=T;var F="PopoverContent",D=n.forwardRef((e,t)=>{let l=O(F,e.__scopePopover),{forceMount:a=l.forceMount,...r}=e,o=S(F,e.__scopePopover);return(0,b.jsx)(m.C,{present:a||o.open,children:o.modal?(0,b.jsx)(W,{...r,ref:t}):(0,b.jsx)($,{...r,ref:t})})});D.displayName=F;var z=((o=n.forwardRef((e,t)=>{let{children:l,...a}=e;if(n.isValidElement(l)){var r;let e,o,s=(r=l,(o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(o=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref),c=function(e,t){let l={...t};for(let a in t){let r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?l[a]=(...e)=>{let t=o(...e);return r(...e),t}:r&&(l[a]=r):"style"===a?l[a]={...r,...o}:"className"===a&&(l[a]=[r,o].filter(Boolean).join(" "))}return{...e,...l}}(a,l.props);return l.type!==n.Fragment&&(c.ref=t?(0,i.t)(t,s):s),n.cloneElement(l,c)}return n.Children.count(l)>1?n.Children.only(null):null})).displayName="PopoverContent.RemoveScroll.SlotClone",a=o,(r=n.forwardRef((e,t)=>{let{children:l,...r}=e,o=n.Children.toArray(l),s=o.find(y);if(s){let e=s.props.children,l=o.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,b.jsx)(a,{...r,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,b.jsx)(a,{...r,ref:t,children:l})})).displayName="PopoverContent.RemoveScroll.Slot",r),W=n.forwardRef((e,t)=>{let l=S(F,e.__scopePopover),a=n.useRef(null),r=(0,i.s)(t,a),o=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,w.Eq)(e)},[]),(0,b.jsx)(C.A,{as:z,allowPinchZoom:!0,children:(0,b.jsx)(I,{...e,ref:r,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,s.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,l=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||l},{checkForDefaultPrevented:!1}),onFocusOutside:(0,s.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),$=n.forwardRef((e,t)=>{let l=S(F,e.__scopePopover),a=n.useRef(!1),r=n.useRef(!1);return(0,b.jsx)(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||l.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));let o=t.target;l.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),I=n.forwardRef((e,t)=>{let{__scopePopover:l,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:o,disableOutsidePointerEvents:n,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:u,...h}=e,m=S(F,l),g=R(l);return(0,p.Oh)(),(0,b.jsx)(x.n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:o,children:(0,b.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:n,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:(0,b.jsx)(f.UC,{"data-state":q(m.open),role:"dialog",id:m.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),K="PopoverClose";function q(e){return e?"open":"closed"}n.forwardRef((e,t)=>
1{let{__scopePopover:l,...a}=e,r=S(K,l);return(0,b.jsx)(g.sG.button,{type:"button",...a,ref:t,onClick:(0,s.mK)(e.onClick,()=>r.onOpenChange(!1))})}).displayName=K,n.forwardRef((e,t)=>{let{__scopePopover:l,...a}=e,r=R(l);return(0,b.jsx)(f.i3,{...r,...a,ref:t})}).displayName="PopoverArrow";var U=P,Z=E,G=V,H=D},73973:(e,t,l)=>{l.d(t,{A:()=>c});var a=l(95155),r=l(12115),o=l(41641),n=l(21362),s=l(40980);function i(e){return"string"==typeof e?{label:e,value:e}:e}function c({tabs:e,activeTab:t,onChange:l,activeColor:d="#e4243b",hint:p,stretch:x=!1,itemBorder:u=!1,itemBorderColor:f,inactiveOpacity:h=!1,wrapItems:m=!1,maxVisible:g}){let b,v,y=(0,r.useRef)(null),j=(0,r.useRef)(new Map),[w,C]=(0,r.useState)(!1),[N,k]=(0,r.useState)(!1),A="number"==typeof g&&e.length>g,R=m||"number"==typeof g,_=A?(b=e.slice(0,g),(v=e.find(e=>i(e).value===t))&&!b.includes(v)?[...b,v]:b):e,S=A&&!N?_:e,P=(0,r.useRef)(null),L=(0,r.useRef)(!1),M=()=>{let e=y.current;e&&C(e.scrollWidth>e.clientWidth+1)};(0,r.useEffect)(()=>{let e=y.current;if(!e)return;M();let t=new ResizeObserver(M);return t.observe(e),e.addEventListener("scroll",M),()=>{t.disconnect(),e.removeEventListener("scroll",M)}},[e,x]);let E=e=>{y.current?.scrollBy({left:"left"===e?-200:200,behavior:"smooth"})},T=(0,r.useCallback)(e=>{let t=y.current;t&&(P.current={startX:e.pageX-t.offsetLeft,scrollLeft:t.scrollLeft},L.current=!1)},[]),B=(0,r.useCallback)(e=>{if(!P.current)return;let t=y.current;if(!t)return;let l=e.pageX-t.offsetLeft-P.current.startX;Math.abs(l)>4&&(L.current=!0),t.scrollLeft=P.current.scrollLeft-l},[]),O=(0,r.useCallback)(()=>{P.current=null},[]);(0,r.useEffect)(()=>{let e=y.current,l=j.current.get(t);e&&l&&requestAnimationFrame(()=>{let t=e.getBoundingClientRect(),a=l.getBoundingClientRect(),r=e.scrollLeft+a.left-t.left-t.width/2+a.width/2;e.scrollTo({left:r,behavior:"smooth"})})},[t]);let V=x&&(m||!w),F=null!==P.current;return(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-center p-[10px] gap-[10px] md:gap-0 bg-white border-2 border-[#afb1bd] rounded-[12px] shadow-[0px_4px_12px_0px_rgba(54,60,90,0.12)]",children:[p&&(0,a.jsx)("span",{className:"text-base font-medium text-graycfao-900 whitespace-nowrap shrink-0 md:pl-[0.25rem]",children:p}),(0,a.jsxs)("div",{className:"flex items-center w-full min-w-0",children:[w&&!R&&(0,a.jsx)("button",{onClick:()=>E("left"),className:"shrink-0 ml-0 md:ml-[1.5625rem]",children:(0,a.jsx)(o.A,{className:"w-4 h-4 text-graycfao-700"})}),(0,a.jsxs)("div",{ref:y,className:(0,s.cn)("flex flex-1 items-center select-none",R?"flex-wrap":"overflow-x-auto scrollbar-hide snap-x snap-mandatory",w&&!R?"ml-[1.875rem]":"ml-[0.9375rem]",V?"gap-[18px]":"gap-[8px]",!m&&(F?"cursor-grabbing":"cursor-grab")),onMouseDown:T,onMouseMove:B,onMouseUp:O,onMouseLeave:O,children:[S.map(e=>{let r=i(e),o=r.value===t;return(0,a.jsx)("button",{ref:e=>{e?j.current.set(r.value,e):j.current.delete(r.value)},onClick:()=>{L.current||o||l(r.value)},style:o?{backgroundColor:d}:u&&f?{borderColor:f}:void 0,className:(0,s.cn)("h-11 rounded-[8px] text-[15px] whitespace-nowrap transition-colors pointer-events-auto",m?"grow basis-[calc(50%-9px)] sm:basis-0 flex items-center justify-center":V?"flex-1 flex items-center justify-center":"shrink-0 px-4 md:px-6 snap-start",o?"text-white font-bold":(0,s.cn)("bg-white text-graycfao-700 font-medium hover:bg-cfao-50",u&&"border-2 border-graycfao-700",h&&"opacity-50")),children:r.label},r.value)}),A&&(0,a.jsx)("button",{type:"button",onClick:()=>k(e=>!e),className:"h-11 px-4 md:px-6 shrink-0 flex items-center justify-center text-[15px] font-medium text-graycfao-700 underline underline-offset-4 whitespace-nowrap hover:text-graycfao-900",children:N?"Show less":"View all"})]}),w&&!R&&(0,a.jsx)("button",{onClick:()=>E("right"),className:"shrink-0 ml-[1.875rem]",children:(0,a.jsx)(n.A,{className:"w-4 h-4 text-graycfao-700"})})]})]})}},92130:(e,t,l)=>{l.d(t,{default:()=>s});var a=l(95155),r=l(5772),o=l(40980),n=l(60023);let s=({backgroundImage:e,title:t,titleTag:l,titleClassName:s,description:i,breadcrumbs:c,brandLogo:d,priceBlock:p,ctaButton:x,secondaryCta:u,bgColour:f,height:h,className:m,contentClassName:g,fullWidth:b=!1})=>{let v=c&&c.length>0,y=l?.toLowerCase()??"h1";return(0,a.jsxs)("section",{className:(0,o.cn)("relative w-full overflow-hidden",d?"h-[651px] md:h-[808px]":h??"h-[400px] md:h-[500px]",m),style:f?{backgroundColor:f}:void 0,children:[e&&(0,a.jsx)(r.default,{src:e,alt:"",fill:!0,sizes:"100vw",className:"object-cover",priority:!0,fetchPriority:"high"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[rgba(24,24,38,0.2)
1]"}),(0,a.jsx)("div",{className:"relative h-full flex",children:(0,a.jsxs)("div",{className:(0,o.cn)("flex flex-col justify-center gap-6 md:gap-10 px-[50px] py-8 md:py-0 h-full bg-[rgba(24,24,38,0.7)]",b?"w-full":"w-full md:w-[550px] md:ml-[312px]",v&&!b&&"text-center md:text-left",g),children:[v&&(0,a.jsx)(n.default,{crumbs:c,className:b?"[&_ol]:justify-center":"[&_ol]:justify-center [&_ol]:md:justify-start"}),(0,a.jsxs)("div",{className:(0,o.cn)("flex flex-col text-white",p?"gap-6 md:gap-10":"gap-4 md:gap-6"),children:[(0,a.jsx)(y,{className:(0,o.cn)("font-bold [line-height:normal] text-[32px] lg:text-[48px]",s),children:t}),p&&(0,a.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[p.fromLabel&&(0,a.jsx)("p",{className:"text-xl leading-[27px] font-medium",children:p.fromLabel}),(0,a.jsx)("p",{className:"text-[36px] md:text-[50px] font-bold leading-none",children:p.price}),p.monthly&&(0,a.jsx)("p",{className:"text-2xl font-medium",children:p.monthly})]}),i&&(0,a.jsx)("p",{className:"text-lg leading-[27px]",children:i}),(x||u)&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[x&&(x.href?(0,a.jsx)("a",{href:x.href,className:(0,o.cn)("inline-flex items-center justify-center h-[45px] px-5 py-3 rounded-[5px] text-[15px] font-medium text-white w-fit",x.className||"bg-[#a48a73]"),children:x.label}):(0,a.jsx)("button",{type:"button",onClick:x.onClick,className:(0,o.cn)("inline-flex items-center justify-center h-[45px] px-5 py-3 rounded-[5px] text-[15px] font-medium text-white w-fit",x.className||"bg-[#a48a73]"),children:x.label})),u&&(u.href?(0,a.jsx)("a",{href:u.href,className:(0,o.cn)("inline-flex items-center justify-center h-[45px] px-5 py-3 rounded-[5px] text-[15px] font-medium text-white w-fit",u.className||"bg-[#e40046] hover:bg-redcfao-700 transition-colors"),children:u.label}):(0,a.jsx)("button",{type:"button",onClick:u.onClick,className:(0,o.cn)("inline-flex items-center justify-center h-[45px] px-5 py-3 rounded-[5px] text-[15px] font-medium text-white w-fit",u.className||"bg-[#e40046] hover:bg-redcfao-700 transition-colors"),children:u.label}))]})]})]})}),d&&(0,a.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 md:left-[100px] md:translate-x-0 bg-white flex items-end p-[10px] md:p-[16px] rounded-b-[10px]",children:(0,a.jsx)("img",{src:d.src,alt:d.alt,className:"h-[44px] md:h-[68px] w-auto object-contain"})})]})}}}]);
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.