1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2337,4511],{2282:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var l=a(95155),r=a(12115),s=a(70104);let i=function(){return(0,l.jsx)("div",{className:"aspect-square h-full w-full animate-pulse bg-gray-400",children:(0,l.jsx)("div",{className:"h-full w-full bg-gray-400"})})};var o=a(32321),c=a(34339),n=a(26428),d=a(35184),u=a(74644),m=a(86906);let h=(0,r.memo)(e=>{let{title:t,imageSrc:a,isLoading:r,link:h,id:p,cardClassName:g,imageClassName:v,titleClassName:x}=e,b=(0,m.z)();return(0,l.jsx)("a",{href:h||"#",className:"w-full",onClick:e=>(0,d.eu)({event:e,link:h,adobeEvent:u.Q.ADB_CATEGORY_GRID_CLICK,postdata:{categoryID:p,productCategory:t,...b}}),children:(0,l.jsxs)("div",{className:(0,o.cn)("flex h-full flex-col overflow-hidden rounded-2xl border border-[var(--color-gray-600)] bg-white",g),children:[(0,l.jsx)("div",{className:"relative w-full cursor-pointer overflow-hidden rounded-t-xl",children:r?(0,l.jsx)(i,{}):(0,l.jsx)(n.A,{loader:(0,l.jsx)(i,{}),children:(0,l.jsx)("div",{className:(0,o.cn)("aspect-square",v),children:(0,l.jsx)(c.default,{src:a||"",alt:"Image for ".concat(t),fill:!0,className:"object-cover",loading:"lazy",priority:!1})})})}),(0,l.jsx)("div",{className:(0,o.cn)("border-t border-t-gray-600 px-4 py-4 lg:justify-start lg:px-7 lg:py-5",x),children:(0,l.jsx)("div",{className:"relative min-h-[1.5em] overflow-hidden",children:(0,l.jsx)(s.default,{variant:"body-xl",weight:"medium",className:"text-primary-900 line-clamp-2 text-left",children:t})})})]})})});h.displayName="Card";let p=h},4511:(e,t,a)=>{"use strict";a.r(t),a.d(t,{BlogPageSection:()=>eV,CategoryWidget:()=>p,Covers:()=>O,CustomerSpeak:()=>eG,ExploreSellingProducts:()=>eN,FabricSection:()=>eU,FilterSection:()=>C,FreshNewProducts:()=>ed,Personalization:()=>ei,ProductList:()=>D,TrendingProducts:()=>ew,UnCoveringSlider:()=>eT,UncoveringHappiness:()=>eg,VideoBanner:()=>F,VideoTestimonials:()=>eO});var l=a(95155),r=a(70104),s=a(74644);let i=[{title:"Canât find what youâre looking for?",buttonLabel:"Cover Anything",image:"/images/widgetimage1.webp",href:"/custom-covers-c",eventName:s.Q.ADB_SHOP_CUSTOM_COVER_T1},{title:"Want to buy in bulk? Get extra discounts.",buttonLabel:"Know more",image:"/images/widgetimage3.webp",href:"/commercial-sales-program.html",eventName:s.Q.ADB_BULK_DISCOUNT},{title:"Looking to do business with us?",buttonLabel:"Business enquiry",image:"/images/smallproduct.webp",href:"https://business.coversandall.com/",eventName:s.Q.ADB_BUSINESS_ENQUIRY}],o=["bg-blue-50","bg-orange-50","bg-green-50","bg-yellow-50"];var c=a(36219),n=a(12115),d=a(34339),u=a(77821),m=a(49322);let h=e=>{let{imageSrc:t,title:a,buttonLabel:s,id:i,href:h,eventName:p}=e,g=(0,m.v)().domain,v=(0,n.useMemo)(()=>h.startsWith("/")?"".concat(g).concat(h):h,[h,g]);return(0,l.jsxs)("div",{className:"flex flex-row gap-x-6 overflow-hidden rounded-[10] ".concat(o[i%o.length]),onClick:()=>(0,u.S)(p,{navigation_name:a},!0),children:[(0,l.jsx)("div",{className:"relative max-w-38",children:(0,l.jsx)(d.CDNImage,{src:t,alt:a,width:133,height:153,className:"h-full w-full object-cover",loading:"lazy"})}),(0,l.jsxs)("div",{className:"grid gap-y-4 py-6 pr-9",children:[(0,l.jsx)(r.default,{element:"p",className:"text-black",children:a}),(0,l.jsx)("a",{href:v,children:(0,l.jsx)(c.A,{variant:"secondary",size:"small",className:"max-w-[160px] border-none bg-white",children:s})})]})]})},p=()=>(0,l.jsx)("section",{className:"mb-4 w-full bg-white py-10 pt-6",children:(0,l.jsx)("div",{className:"tablet-view mx-auto max-w-screen-xl space-y-4 px-4",children:i.map((e,t)=>(0,l.jsx)(h,{id:t,imageSrc:e.image,title:e.title,buttonLabel:e.buttonLabel,href:e.href,eventName:e.eventName},t))})});var g=a(20063),v=a(1213),x=a(75075),b=a(27982),w=a(86906),f=a(21090),_=a(32321),y=a(35505),j=a(43366);let N=(0,n.memo)(e=>{var t,a;let{title:i,groupKey:o,filterOptions:c,priceRange:m,defaultOpen:h=!1,categoryDetails:p,fieldType:g,multiSelect:N}=e,C=(0,v.wA)(),S=(0,w.z)(),[T,E]=(0,n.useState)(!1),[P,A]=(0,n.useState)(""),k=(0,v.d4)(e=>e.filters.selectedFilters,v.bN),I=(0,n.useMemo)(()=>k.find(e=>"range"===e.type),[k]),B=g===y.xI.RANGE_SLIDE,U=g===y.xI.COLOR_SWATCH,D=null!=(t=null==m?void 0:m.min)?t:0,O=null!=(a=null==m?void 0:m.max)?a:0,L=(0,n.useCallback)(e=>k.some(t=>t.value===e),[k]),R=(0,n.useCallback)((e,t)=>{var a;let l=!L(t);N?C((0,b.VH)({group:e,value:t})):C((0,b.U2)({group:e,value:t})),(0,u.S)(s.Q.ADB_FILTER_APPLIED,{...S,categoryName:(null==p||null==(a=p.categoryDetail)?void 0:a.categoryName)||"N/A",pageType:(null==p?void 0:p.pageType)||"N/A",value:[{name:e,value:t,type:l?"Add":"Remove"}]},!0)},[C,L,S,p,i,N]),M=(0,n.useMemo)(()=>!P.trim()||P.trim().length<3?c:c.filter(e=>e.label.toLowerCase().includes(P.toLowerCase())),[c,P]),z=M.length-10,F=T?M:M.slice(0,10);return(0,l.jsx)(x.default,{title:i,defaultOpen:h,className:"space-y-3.5 bg-gray-300",headerClassName:"p-0",typoVariant:"body-base",buttonClassName:"mb-0",contentClassName:"space-y-3",typoClassName:"text-primary-900",onToggle:e=>{if(e){var t;(0,u.S)(s.Q.ADB_FILTER_INTERACT,{...S,categoryName:(null==p||null==(t=p.categoryDetail)?void 0:t.categoryName)||"N/A",pageType:(null==p?void 0:p.pageType)||"N/A",value:{type:o}})}}
1,children:B?(0,l.jsx)(f.A,{priceFilter:I,minPrice:D,maxPrice:O,step:null==m?void 0:m.step,gap:null==m?void 0:m.gap,setPriceRange:(e,t,a,l)=>{var r;let i=e===D&&t===O,o={name:"price",value:i?"".concat(a,"-").concat(l):"".concat(e,"-").concat(t),type:i?"Remove":"Add"};i?C((0,b.X6)({group:"price",value:"".concat(a,"-").concat(l)})):C((0,b.U2)({group:"price",type:"range",min:e,max:t,value:"".concat(e,"-").concat(t)})),(0,u.S)(s.Q.ADB_FILTER_APPLIED,{...S,categoryName:(null==p||null==(r=p.categoryDetail)?void 0:r.categoryName)||"N/A",pageType:(null==p?void 0:p.pageType)||"N/A",value:[o]},!0)}}):(0,l.jsxs)(l.Fragment,{children:[c.length>10&&(0,l.jsxs)("div",{id:"",className:"relative mb-6",children:[(0,l.jsx)(j.$,{className:"text-primary absolute top-3 left-2",size:16,weight:"bold"}),(0,l.jsx)("input",{type:"text",placeholder:"Search for ".concat(i),value:P,onChange:e=>A(e.target.value),className:"focus:border-primary-500 placeholder:text-secondary-100 w-full rounded-lg border border-neutral-200 bg-white px-7 py-2.5 text-xs outline-none"}),P.length>0&&(0,l.jsx)("button",{onClick:()=>A(""),className:"absolute top-1/2 right-3 -translate-y-1/2 text-[#8B8B8B]",children:"â"})]}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:F.map((e,t)=>{let a=(e=>null!=e.count?"".concat(e.label," (").concat(e.count,")"):e.label)(e),s=U?e.colorUrl:void 0,i=L(e.value);return(0,l.jsxs)("label",{htmlFor:"".concat(e.value,"-").concat(o,"-").concat(t),className:"flex cursor-pointer items-center gap-x-2",children:[(0,l.jsx)("input",{id:"".concat(e.value,"-").concat(o,"-").concat(t),type:N?"checkbox":"radio",checked:i,onChange:()=>R(o,e.value),className:(0,_.cn)("mt-0 h-4 w-4 !p-0",i?"border border-white":"border border-gray-500")}),s&&(0,l.jsx)(d.CDNImage,{src:"/media/personalize/coloroptions/color_image"+s,alt:e.label,width:16,height:16,className:"h-4 w-4 flex-1 overflow-hidden rounded-full object-cover"}),(0,l.jsx)(r.default,{variant:"body-sm",weight:i?"medium":"normal",className:"text-primary-900",children:a})]},"".concat(e.value,"-").concat(o,"-").concat(t))})}),M.length>10&&(0,l.jsx)("button",{onClick:()=>E(e=>!e),className:"text-primary mt-4 ml-6 text-sm",children:T?"Less":" +".concat(z," more")})]})})}),C=function(e){let{productFilters:t,categoryDetails:a}=e,s=(0,g.usePathname)(),[i,o]=(0,n.useState)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(!1);if((0,n.useEffect)(()=>{if(!d.current&&Array.isArray(t)&&0!==t.length)return c.current&&clearTimeout(c.current),c.current=window.setTimeout(()=>{o(t),d.current=!0},120),()=>{c.current&&clearTimeout(c.current)}},[t]),!i||0===i.length)return null;let u="/all-products"===s||"/catalogsearch/result"===s?t:i;return(0,l.jsxs)("div",{className:"sticky top-34 flex max-h-[calc(100vh-10rem)] flex-col",children:[(0,l.jsx)(r.default,{variant:"heading-4",weight:"medium",className:"text-primary-900 mb-5.5 shrink-0",children:"/all-products"===s||"/catalogsearch/result"===s?"Shopping Options":"Filter Search Results"}),(0,l.jsx)("div",{className:"no-scrollbar flex-1 overflow-y-scroll",children:(0,l.jsx)("div",{className:"flex flex-col gap-y-5.5",children:u.map(e=>{var t;return(0,l.jsx)(N,{title:e.title,groupKey:e.key,filterOptions:e.options,priceRange:e.priceRange,defaultOpen:(null==e?void 0:e.defaultState)===y.zz.EXPANDED,categoryDetails:a,fieldType:null==e?void 0:e.fieldType,multiSelect:[y.xI.MULTI,y.xI.COLOR_SWATCH].includes(null!=(t=e.fieldType)?t:y.xI.MULTI)},e.key)})})})]})};var S=a(61061),T=a(18832),E=a(53182),P=a(17539),A=a(99240),k=a(31182),I=a(7101),B=a(41239);let U=()=>{var e;let t=(0,g.usePathname)(),a=(0,g.useSearchParams)(),s=a.get("q");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"tablet-view text-primary-900 flex flex-col gap-y-7 px-4 pt-10 2xl:max-w-360 2xl:px-7",children:[(0,l.jsx)("div",{children:(0,l.jsxs)(r.default,{variant:"body-3xl",weight:"bold",className:"text-primary-900",children:["Sorry, we didnât find any matches for â",s,"â"]})}),(0,l.jsxs)("div",{children:[(0,l.jsx)(r.default,{variant:"body-2xl",weight:"medium",className:"mb-2",children:"Try the following:"}),(0,l.jsxs)("ul",{className:"!list-disc !pl-8 text-sm",children:[(0,l.jsx)("li",{children:"Double check your spelling"}),(0,l.jsx)("li",{children:"Use fewer keywords"}),(0,l.jsx)("li",{children:"Search for an item that is less specific and refine results"})]})]}),(0,l.jsxs)("div",{className:"px-4 pb-6 lg:px-0",children:[(0,l.jsx)(r.default,{variant:"body-2xl",weight:"bold",children:"You can try one of the popular search queries"}),(0,l.jsxs)("div",{className:"mt-3 flex flex-row flex-wrap items-center gap-3",children:[null==(e=B.$P.items)?void 0:e.map((e,r)=>(0,l.jsx)("span",{onClick:()=>(e=>{let l=new URLSearchParams(a.toString());l.set("q",e);let r=l.toString().replace(/\+/g,"%20");window.open("".concat(t,"?").concat(r),"_blank")})(e),className:"text-primary-900 cursor-pointer rounded-lg border border-gray-500 bg-white px-3 py-1.5 text-xs font-normal hover:bg-gray-300",children:e},r)),(0,l.jsx)(r.default,{children:"or"}),(0,l.jsx)(I.A,{href:"/catalogsearch/result",variant:"secondary",className:"py-1 text-xs",children:"See all products"})]})]})]}),(0,l.jsx)(ew,{title:"Browse Popular Products",className:"pb-10"})]})},D=function(e){var t;let{productData:a,categoryDetails:i,className:o="",pathName:d,isLoading:h=!1}=e,{selectedFilters:p,sortBy:g}=(0,v.d4)(e=>e.filters),x=(0,m.v)(),f=(0,v.wA)(),_=(0,w.z)(),y=(null==x?void 0:x.currencyCode)||"USD",j=k.IK[y],N=(0,v.d4)(e=>e.auth.customer),C=(e,t)=>{var a;(0,u.S)(s.Q.ADB_FILTER_APPLIED,{..._,categoryName:(null==i||null==(a=i.categoryDetail)?void 0:a.categoryName)||"N/A",pageType:(null==i?void 0:i.pageType)||"N/A",value:[{name:e,value:t,type:"Remove"}]},!0),f((0,b.VH)({group:e,value:t}))},I=(0,n.useMemo)(()=>{var e;return(0,E.aC)(a,y,x.cdnPath||"",Number(null==N||null==(e=N.customer_extra_fields)?void 0:e.discount_percent)||0)},[a,x,null==N||null==(t=N.customer_extra_fields)?void 0:t.discount_percent]);return(0,l.jsxs)("section",{className:"w-full space-y-3.5",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 pl-2 lg:flex-row lg:items-start lg:justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[p.map((e,t)=>{if("range"===e.type)return(0,l.jsx)(S.A,{label:"".concat(j).concat(null==e?void 0:e.min," - ").concat(j).concat(null==e?void 0:e.max),className:"rounded-lg border-gray-500 bg-transparent px-3 py-1.5",onRemove:()=>C(e.group,e.value)},t);let a=e.value,[r]=(null==a?void 0:a.includes("::"))?a.split("::"):[a];return(0,l.jsx)(S.A,{label:r,className:"rounded-lg border-gray-500 bg-transparent px-3 py-1.5 capitalize",onRemove:()=>C(e.group,e.value)},t)}
1),p.length>0&&(0,l.jsx)(c.A,{variant:"tertiary",size:"small",className:"w-20 p-0",onClick:()=>{var e;f((0,b.We)({clearSort:!0})),(0,u.S)(s.Q.ADB_CLEAR_FILTER,{..._,categoryName:(null==i||null==(e=i.categoryDetail)?void 0:e.categoryName)||"N/A",pageType:(null==i?void 0:i.pageType)||"N/A",value:p.map(e=>({name:e.group,value:e.value}))},!0)},children:(0,l.jsx)(r.default,{variant:"body-xs",weight:"bold",children:"Clear Filter"})})]}),(0,l.jsxs)("div",{className:"relative z-2 hidden justify-end lg:flex",children:[(0,l.jsx)(r.default,{variant:"body-3xs",className:"text-secondary-100 absolute top-[-8] left-4 z-2 bg-white",children:"Sort By"}),(0,l.jsx)(P.l,{value:g,onChange:e=>{var t;Array.isArray(e)||((0,u.S)(s.Q.ADB_SORT_BY,{..._,categoryName:(null==i||null==(t=i.categoryDetail)?void 0:t.categoryName)||"N/A",pageType:(null==i?void 0:i.pageType)||"N/A",value:[{name:"sortBy",value:e}]},!0),f((0,b.r5)(e)))},options:A.A,className:"text-primary-900 min-w-55 rounded-md border border-neutral-200 bg-white px-4 py-2.5 text-xs",optionContainerClassName:" border border-neutral-200 rounded-md bg-white top-0 z-1 ",children:A.A.map(e=>(0,l.jsx)(P.c,{value:e.value,className:"text-primary-900 px-4 py-2.5 text-xs",children:e.label},e.value))})]})]}),(null==a?void 0:a.length)?(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-2 lg:grid-cols-3 ".concat(o),children:I.map((e,t)=>{let a=e.id?"".concat(e.id,"-").concat(t):"product-".concat(t);return(0,l.jsx)("div",{className:"contents",children:(0,l.jsx)(T.ProductCard,{product:e,event:s.Q.ADB_PRODUCT_IN_LISTING_PAGE})},a)})}):h?null:(0,l.jsx)(l.Fragment,{children:"/catalogsearch/result"===d?(0,l.jsx)(U,{}):(0,l.jsx)("div",{className:"flex h-full items-center justify-center text-center",children:(0,l.jsxs)(r.default,{variant:"body-sm",className:"text-gray-700",children:["We couldn't find any products matching your filters. ",(0,l.jsx)("br",{})," Try adjusting your search or explore other categories."]})})})]})},O=()=>(0,l.jsx)("div",{className:"tablet-view cover-image-section mx-auto bg-gray-50",children:(0,l.jsxs)("section",{className:"mx-auto bg-cyan-200 pt-8",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-1",weight:"medium",className:"text-primary-900 mx-4 text-center",children:"Why our covers bring peace of mind"}),(0,l.jsx)("div",{className:"hidden lg:block",children:(0,l.jsx)("div",{className:"relative aspect-[72/31] w-full",children:(0,l.jsx)(d.CDNImage,{src:"/images/cover-1.webp",alt:"cover",fill:!0,sizes:"100vw",className:"object-contain",loading:"lazy"})})}),(0,l.jsx)("div",{className:"block lg:hidden",children:(0,l.jsx)("div",{className:"relative aspect-[402/425] w-full",children:(0,l.jsx)(d.CDNImage,{src:"/images/cover-mobile.webp",alt:"cover",fill:!0,sizes:"100vw",className:"object-contain",loading:"lazy"})})})]})});var L=a(98470),R=a(67909);let M=()=>{let e=(0,w.z)(),t=()=>{(0,u.S)(s.Q.ADB_HOMEPAGE_CUSTOM_COVERS_EVENT,{other:{linkName:"Create custom cover",linkURL:L.j}},!0),(0,u.S)(s.Q.ADB_SHOP_CUSTOM_COVER_T1,{...e},!0)};return(0,l.jsx)("a",{href:L.j,className:"flex cursor-pointer justify-center rounded-lg border border-white bg-transparent px-6 py-2 text-sm font-medium text-white transition-all md:text-base lg:w-2/6 lg:px-0 lg:py-3",onClick:()=>{t&&t()},children:L.o.ctaText})},z=(0,R.default)(()=>a.e(7638).then(a.bind(a,17638)),{loadableGenerated:{webpack:()=>[17638]}}),F=e=>{let{cdnPath:t}=e;return(0,l.jsxs)("section",{className:"tablet-view relative mx-auto aspect-[402/509] w-full overflow-hidden lg:aspect-[1440/609]",children:[(0,l.jsx)(z,{cdnPath:t}),(0,l.jsx)("div",{className:"bg-primary-900/50 relative z-10 flex h-full w-full items-center justify-center p-4",children:(0,l.jsxs)("div",{className:"grid w-full grid-rows-3 place-items-center gap-y-8 text-white lg:max-w-5xl",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-2",weight:"bold",className:"px-2 text-center sm:px-10",children:L.o.title}),(0,l.jsx)(M,{}),(0,l.jsx)("div",{className:"flex items-center justify-between gap-5 sm:gap-14 lg:gap-24",children:L.o.features.map((e,t)=>(0,l.jsxs)("div",{className:"flex flex-col items-center rounded-lg",children:[(0,l.jsx)("div",{className:"flex h-10 w-full items-center justify-center",children:(0,l.jsx)(d.
1CDNImage,{src:e.icon,alt:"Video Icon",width:32,height:32,className:"object-contain",title:"Video Icons"})}),(0,l.jsx)(r.default,{element:"span",weight:"medium",variant:"body-sm",className:"text-center",children:e.text})]},t))})]})})]})};var V=a(71420),W=a(87826),G=a(43858),Q=a(6829),H=a(43517);let q=()=>{let[e,t]=(0,n.useState)(""),{storeCode:a,currencyCode:s}=(0,m.v)(),i=(0,G.z2)(),o=(0,v.d4)(e=>e.auth.customer),c=i.length<=4;return(0,n.useEffect)(()=>{var e;let l=a==W.wh.EU&&null!=(e=(0,Q.Ri)(Q.S3))?e:s;t((null!=l?l:"USD").substring(0,3))},[s,a]),(0,l.jsxs)("div",{className:"bg-primary-light px-4 py-8 pt-10 pb-10 sm:px-6 md:gap-y-8 md:pt-8 lg:px-8",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-3",weight:"medium",className:"text-primary-900 mb-6 text-center",children:"Recently Viewed Products"}),(0,l.jsx)("div",{className:(0,_.cn)("container mx-auto w-full overflow-hidden",{"center-swiper-slides":c}),children:(0,l.jsx)(H.A,{showNavigation:!0,defaultBreakpoints:{320:{slidesToShow:1.5,slidesToScroll:1,gap:16},768:{slidesToShow:2.5,slidesToScroll:1,gap:20},1024:{slidesToShow:3.4,slidesToScroll:1,gap:24},1280:{slidesToShow:4.3,slidesToScroll:1,gap:24}},navButtonClass:"!inline-flex",children:i.map(t=>{var a;let r={id:null==t?void 0:t.product_id,name:null==t?void 0:t.name,imageUrl:null==t?void 0:t.image_url,originalprice:null==t?void 0:t.final_price,price:null==t?void 0:t.final_price,rating:Number((null==t?void 0:t.rating)||0),reviewsCount:Number((null==t?void 0:t.reviewsCount)||0),formattedPrice:k.IK[e]+(0,E.yi)(Number(null==t?void 0:t.final_price),Number((null==o||null==(a=o.customer_extra_fields)?void 0:a.discount_percent)||0)),url:t.url};return(0,l.jsx)("div",{className:"h-full",children:(0,l.jsx)(T.ProductCard,{product:r,hideColorSwatches:!0,hideHoverImage:!0,className:"h-full",contentClassName:"justify-between"})},r.id)})})})]})};var K=a(74774),X=a(15239),$=a(2582);let Y=e=>{var t,a,i;let{name:o,image:c,imageMobile:d,originalPrice:m,discountedPrice:h,variant:p="product",isChecked:g,onToggle:v,showAddThis:x=!1,isStacked:b=!1,hideDetails:w=!0,isLoading:f=!1,isSingleProduct:y=!1,currency:j=k.IK.USD,addonCount:N}=e,[C,S]=(0,n.useState)(!0),{isDesktop:T}=(0,$.Q)();return(0,n.useEffect)(()=>{let e=()=>S(window.innerWidth<640);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.jsxs)("div",{className:(0,_.cn)("responsive-min-height relative flex w-full items-center justify-center rounded-xl bg-none p-0 shadow-none sm:bg-white sm:p-4 sm:shadow-[0px_0px_25px_-10px_rgba(0,0,0,0.60)]",{"flex-col xl:flex-row":!y,"flex-col md:flex-row":y}),children:[x&&!f&&(0,l.jsxs)("label",{className:"bg-primary absolute top-0 right-0 z-10 flex items-center space-x-1 rounded-tr-[10px] rounded-bl-[10px] p-1 sm:pointer-events-auto sm:top-2 sm:right-3 sm:bg-white sm:p-0",children:[(0,l.jsx)(r.default,{element:"span",variant:"body-sm",weight:"normal",className:"text-font-secondary hidden md:inline",children:"Add this too"}),(0,l.jsx)("input",{type:"checkbox",checked:g,onChange:e=>{let t=e.target.checked;null==v||v(e);let a=null;(a=(null==o?void 0:o.includes("Assurance"))?t?s.Q.ADB_HOME_PAGE_ASSURANCE_CHECK:s.Q.ADB_HOME_PAGE_ASSURANCE_UNCHECK:t?s.Q.ADB_HOME_PAGE_PRODUCT_UPSELL_CHECK:s.Q.ADB_HOME_PAGE_PRODUCT_UPSELL_UNCHECK)&&(0,u.S)(a,{},!0)},className:"accent-primary h-4 w-4 cursor-pointer"})]}),(0,l.jsx)("div",{className:"mb-2 w-full flex-shrink-0 rounded-[20px] border border-gray-500 sm:mb-0 ".concat(b?"shadow-[0_4px_8px_rgba(0,0,0,0.25)]":"shadow-none"," border-gray-500 sm:w-auto sm:shadow-none"),children:f?(0,l.jsx)("div",{className:"h-[100px] w-[100px] animate-pulse sm:h-[90px] sm:w-[100px]"}):w?C&&"product"===p&&d?(0,l.jsxs)("div",{className:"relatve",children:[(0,l.jsx)(X.default,{src:d||"/images/product-default-mobile.png",alt:o||"product name",width:80,height:80,className:"w-full rounded-[20px] bg-white object-contain p-0 sm:h-[90px] sm:w-[100px] sm:p-2"}),N?(0,l.jsxs)(r.default,{className:"absolute bottom-3 left-1/2 w-max -translate-x-1/2 rounded bg-gray-700 px-2 py-0.5 text-xs text-[10px] text-white",children:[N," ",1===N?"accessory added":"accessories added"]}):null]}):(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(X.default,{src:c||"",alt:o||"/images/product-default.svg",width:80,height:80,className:"w-full rounded-[20px] bg-white object-contain sm:h-[120px] sm:w-[120px] ".concat((null==o?void 0:o.includes("Assurance"))&&"p-6"),style:{height:C?"160px":"120px"}}),N&&!T?(0,l.jsxs)(r.default,{className:"absolute bottom-3 left-1/2 w-max -translate-x-1/2 roun
1ded bg-gray-700 px-2 py-0.5 text-xs text-[10px] text-white",children:[N," ",1===N?"accessory added":"accessories added"]}):null]}):(0,l.jsx)("div",{className:(0,_.cn)("w-full rounded-[20px] bg-gray-200 shadow-[0_4px_8px_rgba(0,0,0,0.25)]","h-[160px]","sm:h-auto sm:w-[100px]")})}),w&&(0,l.jsxs)("div",{className:"ml-0 flex w-full flex-col justify-center bg-[var(--color-primary-light)] sm:ml-4 sm:bg-white",children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.default,{element:"p",variant:"body-xs",weight:"medium",className:"text-primary-900 line-clamp-1 w-full pt-2 text-left whitespace-normal sm:line-clamp-2",children:o}),(0,l.jsx)("div",{className:"mt-1 flex flex-wrap items-center gap-2 sm:justify-start",children:h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.default,{element:"span",variant:"heading-4",weight:"bold",className:"text-primary",children:[j,(null!=(t=Number(h))?t:0).toFixed(2)]}),(0,l.jsxs)(r.default,{element:"span",variant:"body-xs",weight:"normal",className:"text-gray-800 line-through",children:[j,(null!=(a=Number(m))?a:0).toFixed(2)]})]}):(0,l.jsxs)(r.default,{element:"span",variant:"heading-4",weight:"bold",className:"text-primary",children:[j,(null!=(i=Number(m))?i:0).toFixed(2)]})})]}),N&&T?(0,l.jsxs)(r.default,{className:"mt-1 flex self-start rounded bg-gray-700 px-2 py-0.5 text-[10px] text-white",children:[N," ",1===N?"accessory added":"accessories added"]}):null]})]})},J={image:"/images/icons/addOn-icon.svg"},Z=e=>{var t,a,l;let r=null==e||null==(t=e.cp_extra_attributes)?void 0:t.product_image;return r&&"string"==typeof r&&r.startsWith("{")?(null==(l=JSON.parse(r))?void 0:l.front_image)||"":(null==e||null==(a=e.cp_extra_attributes)?void 0:a.main_product_image)||""},ee=e=>{var t,a,r,s,i,o,c,d,u,m,h,p;let{products:g=[],isAddonChecked:v,onAddonToggle:x,assurancePrice:b=0,showAssurance:w=!1,personalizedItemsSummary:f,productsLength:y,currency:j=k.IK.USD,hideFrontTaxDisplay:N}=e,[C,S]=(0,n.useState)(!1),T=0===b&&f&&!(null==f?void 0:f.isInCart),E=w&&0!==b;(0,n.useEffect)(()=>{let e=()=>S(window.innerWidth<640);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let P=null==g?void 0:g[0],A=null==(t=P.addon_items)?void 0:t.length,I=(0,n.useMemo)(()=>E||T,[E,T]),B=(0,n.useMemo)(()=>g.length<=1?[]:C&&I?g.slice(0,3):g.slice(1,4),[g,C,I]),U=(0,n.useMemo)(()=>C&&(T||E)?g.length-1:g.length-2,[g.length,C,E,T]),D=(0,n.useMemo)(()=>g.length?C?"w-[calc(100%/2)]":1===g.length?"w-[calc((100%-20px)/2)] xl:max-w-112.5":"w-[calc((100%-60px)/3)] xl:max-w-112.5":"w-full",[g.length,C]),O=(0,n.useMemo)(()=>g.length>3?"ml-[20px] sm:ml-[20px]":3===g.length?"ml-[10px] sm:ml-[10px]":"ml-0",[g.length]),L="relative ".concat(1!==g.length||E||T?D:"w-full lg:min-w-112.5"," sm:w-full"),R=(0,n.useMemo)(()=>{var e;let t=Number(null==f||null==(e=f.formattedPrice)?void 0:e.replace(/[^\d.]/g,""));return isNaN(t)?0:t},[f]),M=(0,n.useCallback)(e=>{var t,a,l,r;let s=null==e?void 0:e.cp_extra_attributes,i=Number(N?null==s?void 0:s.price_incl_tax:null==s?void 0:s.price)||0,o=Number(null==s||null==(a=s.warranty_data)||null==(t=a.selected_warranty)?void 0:t.price)||0,c=i+((null==e||null==(l=e.addon_items)?void 0:l.reduce((e,t)=>{let a=N?null==t?void 0:t.cp_extra_attributes.row_total_incl_tax:null==t?void 0:t.cp_extra_attributes.row_total;return a&&!isNaN(a)?e+a:e},0))||0);return(null==s?void 0:s.is_warranty)&&(null==s||null==(r=s.warranty_data)?void 0:r.is_selected_warranty)?c+o:c},[N]),z=null==(r=B[0])||null==(a=r.addon_items)?void 0:a.length;return(0,l.jsxs)("div",{className:(0,_.cn)("flex w-full flex-nowrap items-stretch justify-center",{"gap-6 lg:w-fit":1===y&&!I,"gap-5 xl:w-[75%] 2xl:w-[73%] [@media(max-width:390px)]:gap-2":y>=2&&!I||1===y&&I,"gap-3":y>=2&&I}),children:[P&&(0,l.jsx)("div",{className:"".concat(0===U||(E||T)&&"hidden"," sm:block ").concat(L),children:(0,l.jsx)(Y,{image:Z(P),name:null!=(o=null==(s=P.product)?void 0:s.name)?o:"",originalPrice:M(P),variant:"product",isSingleProduct:1===y&&!I,currency:j,shouldShowUpsell:T,addonCount:A})},null!=(u=null!=(d=null!=(c=P.uid)?c:null==(i=P.product)?void 0:i.sku)?d:P.id)?u:"first-product"),B.length>0&&(0,l.jsx)("div",{className:"mb-[calc(100vw/6)] items-center text-2xl font-medium text-[var(--color-gray-800)] sm:mb-0 ".concat(T||E?"hidden sm:flex":"flex"),children:"+"}),B.length>0&&(0,l.jsxs)("div",{className:"".concat(L," ").concat(O),children:[B.map((e,t)=>{var a,r,s;let i=B.length;return(0,l.jsx)("div",{className:"absolute top-0 w-full",style:{right:"".concat(10*(i-1-t),"px"),zIndex:i-(t+1)},children:(0,l.jsx)(Y,{image:Z(e),name:null!=(r=null==(a=e.product)?void 0:a.name)?r:"",originalPrice
1:M(e),variant:"product",isStacked:!0,hideDetails:0===t,currency:j,shouldShowUpsell:T,addonCount:z})},null!=(s=e.uid)?s:t)}),U>0?(0,l.jsxs)("div",{className:"absolute top-[-10px] right-[10px] z-5 rounded-[20px] border border-gray-800 bg-white px-2 py-2 text-[10px] font-semibold text-gray-800 sm:top-[-12px] sm:right-[40px] sm:px-3 sm:py-1 sm:text-[12px]",children:["+",U," ",(0,l.jsx)("span",{children:"more"})]}):null]}),(T||E)&&(0,l.jsx)("div",{className:"mb-[calc(100vw/6)] flex items-center text-2xl font-medium text-[var(--color-gray-800)] sm:mb-0",children:"+"}),E&&(0,l.jsx)("div",{className:L,children:(0,l.jsx)(Y,{image:null!=(m=J.image)?m:"",showAddThis:!0,name:"1-Year Assurance Plus",originalPrice:Number(b)||0,isChecked:v.checked&&"assurance"===v.type,onToggle:()=>x("assurance"),currency:j,shouldShowUpsell:T})}),T&&(0,l.jsx)("div",{className:L,children:(0,l.jsx)(Y,{image:null!=(h=f.image)?h:"",showAddThis:!0,name:null!=(p=f.name)?p:"",originalPrice:R,isChecked:v.checked&&"upsell"===v.type,onToggle:()=>x("upsell"),currency:j})}),(0,l.jsx)("div",{className:"hidden self-center px-2 text-2xl font-medium text-[var(--color-gray-800)] sm:flex [@media(max-width:1023px)]:hidden",children:"="})]})};var et=a(28720);let ea=()=>{var e,t,a,i,o;let{data:c,mutations:d}=(0,V._)(),[h,p]=(0,n.useState)({checked:!0,type:"assurance"}),[g,v]=(0,n.useState)(!1),x=(0,n.useMemo)(()=>structuredClone(c.newCartItems)||[],[c.newCartItems]),b=c.hasAssuranceOption,w=c.nonSelectedTotalOneYearAssurancePrice||0,f=c.personalizedItemsSummary,y=null!=(o=null==c||null==(t=c.cart)||null==(e=t.cp_extra_attributes)?void 0:e.hide_front_tax_display)&&o,j=(0,n.useMemo)(()=>Number(c.subtotal)+Number(c.assuranceTotal)+(h.checked&&"assurance"!==h.type?Number(w):0),[c.subtotal,c.assuranceTotal,h.checked,h.type,w]),N=(0,n.useMemo)(()=>x.length,[x]),C=null==c||null==(i=c.cart)||null==(a=i.cp_extra_attributes)?void 0:a.display_cart_button,S=(0,m.v)(),T=k.IK[S.currencyCode]||"$";(0,n.useEffect)(()=>{p({checked:!0,type:0===w?"upsell":"assurance"})},[w]);let P=(0,n.useCallback)(e=>{p(t=>({type:e,checked:t.type!==e||!t.checked}))},[]),A=(0,n.useCallback)(async e=>{if(!(null==f?void 0:f.sku)||!f.productId)return;let t="add"===e?()=>d.addItmeToCart([{data:{quantity:1,sku:f.sku}}]):()=>d.removeItem(f.productId);await t()},[d,f]),I=(0,n.useCallback)(async()=>{v(!0),(0,u.S)(s.Q.ADB_YOUR_CART_IS_WAITING_PROCEED,{},!0);try{"assurance"===h.type&&h.checked?await d.assuranceForAll(x,"add"):"upsell"===h.type&&h.checked&&await A("add");let e=C?et.A.MYCART:et.A.CHECKOUT;window.location.assign(e)}catch(e){}finally{v(!1)}},[h,d,x,A]),B=(0,n.useMemo)(()=>{let e=(0,E.hj)((null==f?void 0:f.formattedPrice)||"");return isNaN(Number(e))?0:Number(e)},[f]),U=(0,n.useMemo)(()=>"assurance"===h.type&&h.checked&&Number(w)>0?" + ".concat(null==c?void 0:c.currency).concat(Number(w).toFixed(2),"*"):"",[w,h.checked,h.type]),D=(0,n.useMemo)(()=>0!==B&&"upsell"===h.type&&h.checked?"+ ".concat(null==c?void 0:c.currency).concat(Number(B).toFixed(2),"*"):"",[h.checked,h.type,B]),O=b&&0!==w,L=0===w&&f&&!(null==f?void 0:f.isInCart),R=O||L;return(0,l.jsxs)(l.Fragment,{children:[g&&(0,l.jsx)(K.A,{}),(0,l.jsxs)("section",{className:"bg-primary-light tablet-view mx-auto w-full px-5 py-9 pb-10 lg:px-12 [@media(max-width:390px)]:px-3",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-3",weight:"medium",className:"text-primary-900 mb-6 text-center",children:"Products added in your cart"}),(0,l.jsxs)("div",{className:(0,_.cn)("container mx-auto flex w-full flex-nowrap items-center justify-center [@media(max-width:1023px)]:flex-wrap",{"gap-6":1===N&&!R,"gap-5":N>=2&&!R||1===N&&R,"gap-3":N>=2&&R}),children:[(0,l.jsx)(ee,{products:x,isAddonChecked:h,showAssurance:b,assurancePrice:w,onAddonToggle:P,personalizedItemsSummary:f||void 0,productsLength:N,currency:T,hideFrontTaxDisplay:y}),(0,l.jsxs)("div",{className:"mt-5 flex flex-col items-center justify-center gap-y-2 pl-0 text-center sm:mt-0 [@media(max-width:1023px)]:mt-[40px]",children:[(0,l.jsxs)(r.default,{element:"p",variant:"body-xs",className:"text-primary-900 w-fit",children:[c.totalItems," Item",1!==c.cartItems.length&&"s"," (",null==c?void 0:c.currency,j.toFixed(2),")",U,D]}),(0,l.jsx)("button",{onClick:I,className:"bg-primary self-center rounded-md px-6 py-3 font-semibold text-white transition hover:opacity-90 focus:ring-2 focus:ring-offset-2 focus:outline-none lg:px-8 lg:py-2",disabled:g,children:(0,l.jsxs)(r.default,{variant:"body-xs",className:"text-base whitespace-nowrap",children:["Proceed to ",C?"cart":"checkout"]})})]})]})]})]})};var el=a(89022);let er=()=>(0,l.jsx)("div",{className:"h-[120px] w-[120px] sm:w-[200px] md:w-[400px]",children:(0,l.jsx)("div",{className:"h-full w-full animate-pulse rounded-lg bg-gray-400"})}),es=e=>{let{count:t=3}=e;return(0,l.jsx)("div",{className:"bg-[#F1F6FE] px-4 py-8 sm:px-6 md:px-10 lg:px-12",children:(0,l.jsxs)("div",{className:"mx-auto flex max-w-screen-xl flex-col gap-8 lg:flex-row lg:items-start lg:gap-12",children:[(0,l.jsxs)("div",{className:"flex flex-wrap justify-center gap-4 lg:w-8/12 lg:flex-nowrap lg:justify-start",children:[Array.from({length:t}).map((e,t)=>(0,l.jsx)(er,{},t)),(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(el.R,{weight:"bold",size:20})})]}),(0,l.jsx)("div",{className:"w-full lg:w-[280px]",children:(0,l.jsxs)("div",{className:"mt-5 flex flex-col items-center justify-center space-y-2 text-center",children:[(0,l.jsx)("div",{className:"h-4 w-[80%] animate-pulse rounded-md bg-gray-400"}),(0,l.jsx)("div",{className:"mt-2 h-4 w-[50%] animate-pulse rounded-md bg-gray-400"}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)("div",{className:"h-8 w-40 animate-pulse rounded-md bg-gray-400"})})]})})]})})},ei=()=>{var e;let{data:t,loading:a}=(0,V._)(),r=(0,G.z2)(),s=(0,n.useMemo)(()=>
1{if(1===t.cartItems.length)return t.cartItems.some(e=>{var a;return e.product.sku===(null==(a=t.personalizedItemsSummary)?void 0:a.sku)})},[t.cartItems,t.personalizedItemsSummary]),i=(0,n.useMemo)(()=>t.cartItems.filter(e=>{var a,l;return(null==e||null==(a=e.product)?void 0:a.sku)!==(null==(l=t.personalizedItemsSummary)?void 0:l.sku)}),[t.cartItems,null==(e=t.personalizedItemsSummary)?void 0:e.sku]);return a.fetchCart?(0,l.jsx)(es,{count:2,itemCount:5,productTotal:730,addonPrice:10,isAddonChecked:!1}):0===i.length&&r.length<3?null:s||0===t.cartItems.length?(0,l.jsx)(q,{}):(0,l.jsx)(ea,{})},eo={320:{slidesToShow:1.5,slidesToScroll:1,gap:16},640:{slidesToShow:2.4,slidesToScroll:1,gap:20},768:{slidesToShow:2.8,slidesToScroll:1,gap:20},1024:{slidesToShow:3.5,slidesToScroll:1,gap:24},1152:{slidesToShow:4,slidesToScroll:1,gap:24},1280:{slidesToShow:4.25,slidesToScroll:1,gap:24}},ec={320:{slidesToShow:1.5,slidesToScroll:1,gap:16},640:{slidesToShow:2.4,slidesToScroll:1,gap:20},768:{slidesToShow:2.8,slidesToScroll:1,gap:20},1024:{slidesToShow:3.5,slidesToScroll:1,gap:24},1152:{slidesToShow:4,slidesToScroll:1,gap:24},1366:{slidesToShow:4.5,slidesToScroll:1,gap:24}},en={320:{slidesToShow:1.5,slidesToScroll:1,gap:25},640:{slidesToShow:2,slidesToScroll:1,gap:20},1024:{slidesToShow:3,slidesToScroll:1,gap:24},1280:{slidesToShow:3.8,slidesToScroll:1,gap:24},1366:{slidesToShow:4,slidesToScroll:1,gap:24}},ed=e=>{let{newProducts:t,currencyCode:a}=e,i=k.IK[a],o=(0,E.Jb)(null==t?void 0:t.product,i);return o&&(null==o?void 0:o.length)?(0,l.jsxs)("section",{className:"flex flex-col items-center px-4 py-12 pr-0 md:px-8 lg:pr-8",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-1",weight:"medium",className:"text-primary-900 pr-4 text-center lg:pr-0",children:"Fresh, new and ready to impress"}),(0,l.jsx)("div",{className:"container mx-auto mt-8 w-full overflow-hidden",children:(0,l.jsx)(H.A,{defaultBreakpoints:eo,adobeEventName:s.Q.ADB_NEW_ARRIVAL_SECTION_CTA,children:null==o?void 0:o.map((e,t)=>(0,l.jsx)(T.ProductCard,{product:e,event:s.Q.ADB_NEW_ARRIVAL_SECTION_CTA,className:"h-full"},t))})})]}):(0,l.jsx)(l.Fragment,{})};var eu=a(29562);let em=[{id:1,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"},{id:2,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"},{id:3,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"},{id:4,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"},{id:5,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"},{id:6,video:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4"}];var eh=a(46429);let ep=e=>{let{videoSrc:t,id:a}=e,{ref:r,inView:s}=(0,eh.Wx)({threshold:.3});return(0,l.jsx)("div",{ref:r,className:"relative aspect-[1/1] w-full max-w-[400px] overflow-hidden rounded-3xl px-8",children:(0,l.jsx)("div",{className:"absolute inset-0 h-full w-full",children:s&&(0,l.jsx)("video",{className:"h-full w-full object-cover",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,"aria-label":"Uncovering Happiness video ".concat(a),preload:"auto",children:(0,l.jsx)("source",{src:t,type:"video/mp4"})})})})},eg=()=>(0,l.jsxs)("section",{className:"bg-primary-light flex flex-col items-center px-4 py-12 md:px-8",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-3",weight:"medium",className:"text-primary-900 text-center",children:"Uncovering Happiness"}),(0,l.jsx)("div",{className:"mt-12 w-full overflow-hidden",children:(0,l.jsx)(eu.A,{virtual:!0,navigationEnable:!0,breakpoints:{320:{slidesPerView:1.5,spaceBetween:16},768:{slidesPerView:2.5,spaceBetween:20},1024:{slidesPerView:4.4,spaceBetween:24}},children:em.map(e=>(0,l.jsx)(ep,{id:e.video,videoSrc:e.video},e.id))})})]});var ev=a(97738),ex=a(6233),eb=a(26428);let ew=e=>{let{title:t="Seasonâs trending must-haves for you",renderOnlyName:a=!1,slidesPerView:i=4.25,className:o,titleClassName:c}=e,{products:d,error:u,loading:m}=(0,ex.D2)(),h=(0,n.useMemo)(()=>({...eo,1280:{slidesToShow:i,slidesToScroll:1,gap:24}}),[i]);return u?(0,l.jsx)(l.Fragment,{}):m?(0,l.jsx)("div",{className:"pt-14",children:(0,l.jsx)(ev.A,{})}):(0,l.jsxs)("section",{className:(0,_.cn)("flex flex-col items-center px-4 pr-0 md:px-0 lg:px-8 lg:pr-8",o),children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-1",weight:"medium",className:(0,_.cn)("text-primary-900 mt-7 pr-4 text-center md:mt-12 lg:pr-0",c,{hidden:""===t}),children:t}),(0,l.jsx)(eb.A,{loader:(0,l.jsx)(ev.A,{}),className:"container mx-auto mt-8 mb-1 w-full overflow-hidden md:mt-10",children:(0,l.jsx)(H.A,{defaultBreakp
1oints:h,navButtonClass:"bg-primary inline-flex items-center justify-center rounded-full border p-2 text-white shadow-md transition-opacity disabled:opacity-40",adobeEventName:s.Q.ADB_PRODUCT_MOST_LOVED_PRODUCTS_EVENT,showNavigation:!0,children:d.map(e=>(0,l.jsx)(T.ProductCard,{product:e,renderOnlyName:a,className:"h-full",event:s.Q.ADB_PRODUCT_MOST_LOVED_PRODUCTS_EVENT},e.id))})})]})};var ef=a(2282);let e_=(0,n.memo)(e=>{let{categories:t,cardClassName:a,imageClassName:r,titleClassName:i,showButton:o}=e,[c,d]=(0,n.useState)(!1),m=(0,w.z)();return(0,l.jsxs)(l.Fragment,{children:[c&&t.map((e,t)=>(0,l.jsx)(ef.default,{imageSrc:e.image,title:e.name,link:e.url,id:e.entity_id,cardClassName:a,imageClassName:r,titleClassName:i},t)),o&&(0,l.jsx)("div",{className:"col-span-2 mt-4 place-self-center lg:col-span-4 lg:mt-8",children:(0,l.jsx)("button",{className:"md:border-primary text-primary flex cursor-pointer rounded-lg px-6 py-2 text-base underline sm:no-underline md:border",onClick:()=>{d(e=>!e),(0,u.S)(c?s.Q.ADB_CATEGORY_GRID_VIEW_LESS:s.Q.ADB_CATEGORY_GRID_VIEW_MORE,{...m},!0)},"aria-expanded":c,"aria-controls":"toggleContent","aria-label":c?"View less":"View more",role:"button",children:c?"View less":"View more"})})]})});var ey=a(16873);let ej=e=>{let{viewMoreText:t,viewMoreDescription:a,title:i}=e,[o,c]=(0,n.useState)(!1),d=(0,w.z)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center justify-center pt-1 lg:pt-3",children:[(0,l.jsxs)(r.default,{element:"span",className:"text-secondary",children:[t," "]}),(0,l.jsx)("button",{onClick:()=>{(0,u.S)(s.Q.ADB_AI_CONTENT_POPUP,{...d},!0),c(!0)},className:"text-primary hover:text-primary pl-1 text-xs font-medium underline",type:"button",children:"View More"})]}),o&&(0,l.jsx)(ey.A,{title:i,description:a,onClose:()=>c(!1)})]})},eN=e=>{let{topcategory:t,className:a,viewType:s="default",mobiletitle:i="Top Categories",desktoptitle:o="Our best-selling categories",element:c="h2",cardClassName:n,imageClassName:d,titleClassName:u,viewMoreText:m,viewMoreDescription:h,viewMoreTitle:p}=e,g=(null==t?void 0:t.category)||[],v="all"===s,x=v?g:g.slice(0,4),b=v?[]:g.slice(4),w=!v&&b.length>0,f=m&&h;return x.length?(0,l.jsxs)("section",{className:"mx-4 mb-12 lg:mx-8",children:[(0,l.jsxs)("div",{className:"my-8 mt-10 text-center",children:[(0,l.jsx)(r.default,{element:c,variant:"heading-1",weight:"medium",className:"text-primary-900 hidden lg:block",children:o}),(0,l.jsx)(r.default,{variant:"heading-1",weight:"medium",className:"text-primary-900 block lg:hidden",children:i}),f&&(0,l.jsx)(ej,{viewMoreText:m,viewMoreDescription:h,title:p||o})]}),(0,l.jsx)("div",{className:"container mx-auto w-full overflow-hidden",children:(0,l.jsxs)("div",{className:(0,_.cn)("grid grid-cols-2 gap-x-3 gap-y-2.5 rounded-full transition-all duration-300 ease-out lg:grid-cols-4 lg:gap-x-4 lg:gap-y-5",a),children:[x.map((e,t)=>(0,l.jsx)(ef.default,{imageSrc:e.image,title:e.name,link:e.url,id:e.entity_id,cardClassName:n,imageClassName:d,titleClassName:u},t)),(0,l.jsx)(e_,{categories:b,cardClassName:n,imageClassName:d,titleClassName:u,showButton:w})]})})]}):null};var eC=a(31362);let eS=e=>{let{slideData:t}=e,{isDesktop:a}=(0,$.Q)();return(0,l.jsx)(T.PH,{event:s.Q.ADB_HOMEPAGE_HAPPINESSVIDEO_EVENT,videoUrl:a?null==t?void 0:t.url:null==t?void 0:t.mobile_url,name:"",role:"",className:"h-full w-full object-cover"})},eT=e=>{let{happinessvideo:t}=e,a=null==t?void 0:t.type,r=null==t?void 0:t.data;if(!r||!(null==r?void 0:r.length))return(0,l.jsx)(l.Fragment,{});let s=null==r?void 0:r.reverse();return(0,l.jsx)("section",{className:"uncovering-section tablet-view mx-auto mt-10 w-full overflow-hidden lg:mt-16",children:(0,l.jsx)(eC.FN,{slidesToScroll:1,slidesToShow:1,loop:!0,autoplay:{delay:3e3,pauseOnHover:!1,enabled:!0},drag:!0,children:(0,l.jsx)(eC.bd,{children:s.map((e,t)=>(0,l.jsx)("div",{className:"relative block aspect-[402/450] h-full w-full lg:aspect-[1440/350]",children:"image"===a?(0,l.jsx)(d.ResponsiveImage,{mobileSrc:null==e?void 0:e.mobile_url,desktopSrc:null==e?void 0:e.url,fill:!0,className:"object-cover",alt:null==e?void 0:e.productname}):(0,l.jsx)(eS,{slideData:e})},"".concat(e.line1,"-").concat(e.line2,"-").concat(t)))})})})};var eE=a(43938);a(7528);let eP=e=>{let{children:t}=e,a=(0,n.useCallback)(()=>{(0,u.S)(s.Q.ADB_HOMEPAGE_FABRIC_PREV_EVENT,{},!0)},[]),r=(0,n.useCallback)(()=>{(0,u.S)(s.Q.ADB_HOMEPAGE_FABRIC_NEXT_EVENT,{},!0)},[]);return(0,l.jsxs)(eE.FN,{className:"collection-carousel py-4 transition-all duration-700 sm:py-6",slidesToShow:1,slidesToScroll:1,gap:16,drag:!0,loop:!0,pagination:"dots",autoplay:{delay:4e3,enabled:!0,pauseOnHover:!1},onPrev:a,onNext:r,ariaLabel:"Fabric collection",children:[(0,l.jsx)(eE.bd,{children:t}),(0,l.jsxs)("div",{className:"relative mt-4 flex flex-col-reverse gap-4 sm:gap-6 lg:mt-0 lg:flex-row lg:gap-16",children:[(0,l.jsx)("div",{className:"flex-1 sm:mb-10 sm:pr-4",children:(0,l.jsxs)("div",{className:"flex w-full items-center justify-center gap-4 lg:justify-between",children:[(0,l.jsx)(eE.Q8,{ariaLabel:"Previous Slide",className:"hidden cursor-pointer pr-5 text-sm text-gray-800 lg:flex",children:(0,l.jsx)("div",{className:"flex h-10 w-full items-center justify-center",children:(0,l.jsx)(d.
1CDNImage,{src:"/images/icons/left-arrow.svg",alt:"Previous Slide",width:34,height:34,className:"mr-2 object-contain",title:"Previous Slide","aria-hidden":!0})})}),(0,l.jsx)(eE.hL,{}),(0,l.jsx)(eE.Oj,{ariaLabel:"Next Slide",className:"hidden cursor-pointer pl-5 text-sm text-gray-800 lg:flex",children:(0,l.jsx)("div",{className:"flex h-10 w-full items-center justify-center",children:(0,l.jsx)(d.CDNImage,{src:"/images/icons/right-arrow.svg",alt:"Next Slide",width:34,height:34,className:"ml-2 object-contain",title:"Next Slide","aria-hidden":!0})})})]})}),(0,l.jsx)("div",{className:"hidden flex-1 lg:block","aria-hidden":!0})]})]})};var eA=a(16405);function ek(e,t){return!e||e.startsWith("http")?e:"".concat(t).concat(e)}let eI=e=>{let{href:t}=e,a=(0,n.useCallback)(()=>{(0,u.S)(s.Q.ADB_HOMEPAGE_FABRIC_EVENT,{})},[]);return(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)("a",{href:t,onClick:a,className:"bg-primary hover:bg-primary-hover active:bg-primary-deep focus:bg-primary flex cursor-pointer items-center justify-center gap-x-2 self-center rounded-lg px-10 py-3 text-base leading-6 font-medium text-white transition-all duration-200 disabled:bg-gray-600 sm:mt-6 sm:px-12 lg:self-start",children:"Know more"})})},eB=e=>{let{slide:t,cdnPath:a}=e;return(0,l.jsxs)("div",{className:"flex flex-col-reverse gap-4 sm:gap-6 lg:flex-row lg:items-start lg:gap-16",children:[(0,l.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,l.jsxs)("div",{className:"slide-content flex flex-col items-center justify-center text-center lg:items-start lg:text-start!",children:[(0,l.jsxs)("div",{className:"mt-2 mb-5 flex flex-row items-end",children:[(0,l.jsx)("div",{children:(0,l.jsx)(X.default,{src:ek(t.materialimg,a),alt:t.title,width:150,height:100,quality:75,loading:"lazy",decoding:"async",fetchPriority:"low",unoptimized:!0})}),(0,l.jsx)(r.default,{element:"span",variant:"heading-3",weight:"bold",className:"text-primary-800",children:t.label})]}),(0,l.jsxs)("div",{className:"dynamic-html flex flex-col items-center justify-center lg:items-start lg:justify-start lg:pl-2",children:[function(e){return e?(0,eA.Ay)(e,{replace(e){var t;if(!(e instanceof eA.Hg)||"img"!==e.name)return;let a=e.attribs;if(a.src||a.srcset)return(0,l.jsx)("img",{src:a.src,srcSet:a.srcset,sizes:a.sizes,alt:null!=(t=a.alt)?t:"",className:a.class,width:a.width?a.width:void 0,height:a.height?a.height:void 0,loading:"lazy",decoding:"async",fetchPriority:"low"})}}):null}(t.materialdesc),(0,l.jsx)(eI,{href:t.materiallink})]})]})}),(0,l.jsx)("div",{className:"h-fit flex-1 overflow-hidden rounded-xl shadow-md",children:(0,l.jsx)("div",{className:"relative aspect-[37/33] w-full overflow-hidden lg:aspect-[310/213]",children:(0,l.jsx)(X.default,{src:ek(t.materialimage,a),alt:t.title,fill:!0,loading:"lazy",decoding:"async",fetchPriority:"low",className:"rounded-xl object-cover",unoptimized:!0})})})]})},eU=e=>{let{rawSlides:t,cdnPath:a}=e;return(null==t?void 0:t.length)?(0,l.jsx)("section",{className:"collection-section tablet-view mx-auto w-full overflow-hidden bg-white px-4 pt-5 pb-10 sm:px-8 sm:py-10",children:(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-1",weight:"medium",className:"w-full px-6 pb-6 text-center sm:hidden",children:"Explore our fabric collection"}),(0,l.jsx)(eP,{children:t.map((e,t)=>(0,l.jsx)(eB,{slide:e,cdnPath:a},"".concat(e.title,"-").concat(t)))})]})}):null},eD=function(){return(0,l.jsx)("div",{className:"tablet-view mx-auto",children:(0,l.jsx)("div",{className:"no-scrollbar container mx-auto overflow-x-scroll py-10",children:(0,l.jsx)("div",{className:"flex gap-x-4",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,l.jsx)("div",{className:"aspect-[9/16] min-h-90 animate-pulse rounded-3xl bg-gray-600 lg:min-h-108 lg:min-w-76"},t))})})})},eO=e=>{let{title:t="Real Products, Real Stories",titleClassName:a,testimonials:i,ClassName:o,cardClassName:c}=e;return i&&(null==i?void 0:i.length)?(0,l.jsx)("div",{className:(0,_.cn)("flex flex-col tablet-view mx-auto items-center gap-y-6 bg-neutral-100 pl-4 pt-10 pb-12 lg:gap-y-8 lg:px-8 lg:pr-8",o),children:(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-1",weight:"medium",className:(0,_.cn)("text-primary-900 text-center pr-4 lg:px-0",a),children:t}),(0,l.jsx)("div",{className:"relative mt-6 w-full overflow-hidden pr-4 md:pr-0",children:(0,l.jsx)(eb.A,{loader:(0,l.jsx)(eD,{}
1),children:(0,l.jsx)(H.A,{defaultBreakpoints:ec,adobeEventName:s.Q.ADB_HOMEPAGE_REALSTORIES_EVENT,children:i.map((e,t)=>(0,l.jsx)(T.PH,{event:s.Q.ADB_HOMEPAGE_REALSTORIES_EVENT,videoUrl:"video_url"in e?e.video_url:e.url,name:(null==e?void 0:e.title)||(null==e?void 0:e.name)||"",role:"Verified Buyer",className:(0,_.cn)("w-full min-h-90 transition-shadow duration-300 hover:shadow-lg lg:min-h-108",c),thumbnail:"thumb_image"in e?e.thumb_image:e.thumnbailImage},t))})})})]})}):(0,l.jsx)(l.Fragment,{})};var eL=a(77951),eR=a(63890);let eM=e=>{let{title:t,href:a,className:r,children:i}=e;return(0,l.jsx)("a",{href:a,onClick:()=>{(0,u.S)(s.Q.ADB_BLOGS_AND_NEWS_EVENT,{blog:{blogName:t,blogURL:a}},!0)},className:r,children:i})},ez=e=>{let{date:t,imageSrc:a,title:s,description:i,link:o}=e,c=(null==i?void 0:i.includes("<"))?(0,eL.Bg)(i):i,n=(0,eA.Ay)((0,eL.Bg)(s||""),{replace:(e,t)=>(0,eL.pd)(e,t,"heading-4")}),d=(null==c?void 0:c.includes("<"))?(0,eA.Ay)(c,{replace:(e,t)=>(0,eL.pd)(e,t,"body-sm")}):c;return(0,l.jsxs)("div",{className:"mb-1 flex h-full w-full flex-col overflow-hidden lg:rounded-3xl lg:border lg:border-gray-500 lg:shadow-md",children:[(0,l.jsx)(eM,{title:s||"",href:o,className:"relative block aspect-[4/2.2] w-full lg:aspect-[4/3.5]",children:(0,l.jsx)("div",{className:"relative h-full w-full",children:(0,l.jsx)(X.default,{src:a,alt:t,fill:!0,className:"rounded-md object-cover lg:rounded-b-none",loading:"lazy",priority:!1,decoding:"async"})})}),(0,l.jsxs)("div",{className:"flex h-full flex-col gap-2 px-0 py-4 lg:px-4 lg:pt-5 lg:pb-4",children:[(0,l.jsx)(r.default,{element:"p",variant:"body-2xs",className:"text-primary-900 lg:text-black",children:(0,_.Yq)(t)}),(0,l.jsx)(r.default,{element:"h3",variant:"body-3xl",weight:"medium",className:"text-primary-900 line-clamp-3 text-base lg:text-gray-800",children:(0,l.jsx)(eM,{title:s||"",href:o,className:"text-inherit",children:n})}),(null==i?void 0:i.includes("<"))?(0,l.jsx)(r.default,{element:"h4",variant:"body-2xs",className:"*:text-primary-900 *:line-clamp-3",children:d}):(0,l.jsx)(r.default,{element:"p",className:"text-primary-900",variant:"body-3xs",children:i}),(0,l.jsx)("div",{className:"mt-auto",children:(0,l.jsx)(r.default,{element:"p",variant:"body-sm",weight:"medium",children:(0,l.jsxs)(eM,{title:s||"",href:o,className:"text-primary mt-1 flex items-center gap-2 underline sm:mt-auto sm:no-underline",children:["View More ",(0,l.jsx)(eR.f,{className:"hidden lg:block"})]})})})]})]})},eF=e=>{let{domain:t}=e;return(0,l.jsx)("div",{className:"mt-6 mb-11 flex justify-center md:mt-12 md:mb-0",children:(0,l.jsx)("a",{onClick:()=>{(0,u.S)(s.Q.ADB_READ_OUR_BLOGS_EVENT,{},!0)},href:"".concat(t||"https://www.coversandall.com","/blog"),target:"_blank",className:"border-primary text-primary cursor-pointer rounded-lg border-2 px-5 py-3 text-sm font-medium sm:border sm:px-8 sm:py-3 sm:text-lg","aria-label":"View all blogs & news",children:"View all blogs & news"})})},eV=e=>{let{blogs:t,domain:a}=e;return(0,l.jsx)("section",{className:"mx-auto px-4 pt-10 pb-0 sm:py-10 lg:px-20",children:(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsx)(r.default,{element:"h2",variant:"heading-2",weight:"medium",className:"text-primary-900 pb-8 text-center",children:"Inspiration and news"}),(0,l.jsx)("div",{className:"overlfow-hidden w-full",children:(0,l.jsx)(H.A,{defaultBreakpoints:en,slideClassName:"flex",navButtonClass:"xl:!hidden",children:t.map((e,t)=>(0,l.jsx)("div",{className:(0,_.cn)("flex h-full w-full max-w-sm pb-2 lg:min-w-0"),children:(0,l.jsx)(ez,{date:e.date,imageSrc:e.featured_media,title:e.title,description:e.excerpt,link:e.link})},"".concat(e.id,"-").concat(e.title,"-").concat(t)))})}),(0,l.jsx)(eF,{domain:a})]})})};var eW=a(99744);let eG=e=>{let{reviews:t}=e,{isDesktop:a}=(0,$.Q)();return t&&(null==t?void 0:t.length)?(0,l.jsx)("div",{id:"customer-speak",className:"scroll-mt-40 bg-neutral-100",children:(0,l.jsx)("div",{className:"tablet-view customer-speak container mx-auto px-4 py-9 lg:px-7.5",children:(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsx)(r.default,{variant:"heading-1",weight:"medium",className:"text-primary-900 text-center",children:"Customers Speak"}),(0,l.jsx)("div",{className:"w-full overflow-hidden",children:(0,l.jsx)(eu.A,{navigationEnable:!!a,breakpoints:{320:{slidesPerView:1.2,spaceBetween:15},500:{slidesPerView:1.4,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:24}},children:t.map((e,t)=>(0,l.jsx)(eW.A,{review:{...e,sitejabber_id:"".concat(e.sitejabber_id)},className:"gap-y-3 rounded-3xl px-7 pt-10.5 pb-8",showTitle:!0,starColor:"text-highlight",reviewClassName:"lg:mb-7"},t))})})]})})}):(0,l.jsx)(l.Fragment,{})}},6233:(e,t,a)=>{"use strict";a.d(t,{D2:()=>u,FV:()=>m,U4:()=>h});var l=a(12115),r=a(6829),s=a(49322),i=a(50655),o=a(43858),c=a(87826),n=a(53182);a(71420);var d=a(1213);let u=()=>{var e;let{storeCode:t,cdnPath:a,currencyCode:u}=(0,s.v)(),[m,h]=(0,l.useState)(""),{products:p,error:g,loading:v}=(e=>
1{let[t,a]=(0,l.useState)(null),[r,s]=(0,l.useState)(!0),[c,n]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let t=(0,o.Yy)(e);t&&t.length>0?(a(t),s(!1),n(!1)):n(!0)},[e]);let{data:d,isFetching:u,isError:m,error:h,refetch:p}=(0,i.z2)({storeCode:e},{skip:!c});return(0,l.useEffect)(()=>{var l;!u&&(null==d||null==(l=d.products)?void 0:l.length)&&null===t&&(a(d.products),(0,o.d3)(e,d.products),s(!1))},[d,u,t,e]),{products:null!=t?t:[],loading:r,isError:m,error:h,refetch:p}})(null!=t?t:c.wh.USA),x=(0,d.d4)(e=>e.auth.customer);(0,l.useEffect)(()=>{var e;let a=t===c.wh.EU&&null!=(e=(0,r.Ri)(r.S3))?e:u;h((null!=a?a:"USD").substring(0,3))},[t,u]);let b=(0,l.useMemo)(()=>{var e;return p&&(null==p?void 0:p.length)?(0,n.yz)(p,m,a,Number(null==x||null==(e=x.customer_extra_fields)?void 0:e.discount_percent)||0):[]},[p,m,a,null==x||null==(e=x.customer_extra_fields)?void 0:e.discount_percent]);return{products:null!=b?b:[],loading:v,error:g,currency:m,storeCode:null!=t?t:c.wh.USA,cdnPath:null!=a?a:""}},m=e=>{var t;let{categoryId:a,categoryName:o}=e,{storeCode:u,cdnPath:m,currencyCode:h}=(0,s.v)(),p=(0,d.d4)(e=>e.auth.customer),[g,v]=(0,l.useState)({}),{data:x,isFetching:b,isError:w,error:f}=(0,i.z2)({storeCode:null!=u?u:c.wh.USA,facetName:"categoryIds",facetValue:a||"487"}),_=(0,l.useMemo)(()=>{if(u===c.wh.EU){var e,t;return(null!=(t=null!=(e=(0,r.Ri)(r.S3))?e:h)?t:"USD").substring(0,3)}return(null!=h?h:"USD").substring(0,3)},[u,h]);return(0,l.useEffect)(()=>{var e,t;if(!x)return;let a={};for(let t of x.products)for(let l of null!=(e=t.categories.level1)?e:[])for(let e of l.split(" /// ").map(e=>e.trim()).filter(e=>e!==o))a[e]||(a[e]=[]),a[e].push(t);let l=Object.entries(a).sort((e,t)=>(t.at(1)||[]).length-(e.at(1)||[]).length),r={};for(let[e,a]of l)r[e]=(0,n.yz)(a,_,m,Number(null==p||null==(t=p.customer_extra_fields)?void 0:t.discount_percent)||0);v(r)},[x,_,m,null==p||null==(t=p.customer_extra_fields)?void 0:t.discount_percent]),{products:g,loading:b,error:f,isError:w}},h=e=>{var t;let{ObjectId:a}=e,{storeCode:o,cdnPath:u,currencyCode:m}=(0,s.v)(),h=(0,d.d4)(e=>e.auth.customer),[p,g]=(0,l.useState)(""),{data:v,isFetching:x,isError:b}=(0,i.u$)({storeCode:o||c.wh.USA,objectIDs:[a],maxRecommendations:10});(0,l.useEffect)(()=>{var e;let t=o===c.wh.EU&&null!=(e=(0,r.Ri)(r.S3))?e:m;g((null!=t?t:"USD").substring(0,3))},[o,m]);let w=(0,l.useMemo)(()=>{var e;let t=(null==v?void 0:v.products)||[];return t&&(null==t?void 0:t.length)?(0,n.yz)(t,p,u,Number(null==h||null==(e=h.customer_extra_fields)?void 0:e.discount_percent)||0):[]},[v,p,u,null==h||null==(t=h.customer_extra_fields)?void 0:t.discount_percent]);return{products:null!=w?w:[],loading:x,isError:b}}},7528:()=>{},11423:(e,t,a)=>{"use strict";a.d(t,{H2:()=>c,TN:()=>o,sM:()=>n});var l=a(49322),r=a(65791),s=a(31886);let i=!1;function o(){i=!0}function c(e){var t;if(!(0,r.Yw)()||i)return null;let a=(null!=e?e:(null==(t=(0,l.v)(window.location.host).storeCode)?void 0:t.trim())||"").trim();return a?(0,s.g)(a,!1):null}function n(e){return null!==c(e)}window.addEventListener("pageshow",()=>{i=!1})},16873:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(95155),r=a(70104),s=a(10127),i=a(77821),o=a(74644),c=a(86906);let n=e=>{let{title:t,description:a,onClose:n}=e,d=(0,c.z)();return a?(0,l.jsxs)("div",{className:"bg-opacity-grey fixed inset-0 z-50 flex h-full items-center justify-center px-4 sm:px-10",children:[(0,l.jsxs)("div",{className:"relative z-10 flex w-2xl flex-col rounded-md bg-white pb-4",children:[(0,l.jsx)("button",{onClick:()=>{(0,i.S)(o.Q.ADB_AI_CONTENT_CLOSE,{...d},!0),n()},className:"absolute top-3 right-3 z-20 flex h-8 w-8 items-center justify-center rounded-full bg-gray-200 hover:bg-gray-300",children:(0,l.jsx)(s.u,{size:20,weight:"bold",className:"text-primary-900"})}),(0,l.jsxs)("div",{className:"flex max-h-[70vh] flex-col overflow-auto p-5 pt-12",children:[(0,l.jsx)(r.default,{element:"h3",weight:"medium",variant:"heading-3",className:"text-primary-900 mb-4 text-center font-semibold lg:font-medium",children:t}),(0,l.jsx)("div",{className:"prose prose-sm text-primary-900 max-w-none text-sm",dangerouslySetInnerHTML:{__html:a}})]})]}),(0,l.jsx)("div",{className:"fixed top-0 left-0 z-0 h-full w-full",onClick:n})]}):null}},21090:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var l=a(95155),r=a(70104),s=a(49322),i=a(31182),o=a(12115);let c=function(e){var t,a;let{minPrice:c,maxPrice:n,step:d=5,gap:u=50,priceFilter:m,setPriceRange:h}=e,p=Number(c),g=Number(n),v=(0,s.v)(),x=i.IK[v.currencyCode],b=(0,o.useMemo)(()=>Math.max(g-p,1),[p,g]),w=null!=(t=null==m?void 0:m.min)?t:p,f=null!=(a=null==m?void 0:m.max)?a:g,[_,y]=(0,o.useState)(w),[j,N]=(0,o.useState)(f);(0,o.useEffect)(()=>{y(w),N(f)},[w,f]);let C=(_-p)/b*100,S=(j-p)/b*100;return(0,l.jsxs)("div",{className:"flex flex-col-reverse gap-y-4 px-4 pb-4 lg:flex-col lg:gap-y-5 lg:p-0",children:[(0,l.jsxs)("div",{className:"relative h-6 w-full",children:[(0,l.jsx)("div",{className:"absolute top-1/2 h-[2px] w-full -translate-y-1/2 roun
1ded-full bg-gray-500"}),(0,l.jsx)("div",{className:"absolute top-1/2 h-[2px] -translate-y-1/2 rounded-full bg-blue-600",style:{left:"".concat(C,"%"),right:"".concat(100-S,"%")}}),(0,l.jsx)("input",{type:"range",min:p,max:g,step:d,value:_,onChange:e=>{y(Math.min(Number(e.target.value),j-u))},onMouseUp:()=>h(_,j,w,f),onTouchEnd:()=>h(_,j,w,f),className:"pointer-events-none absolute inset-0 z-10 w-full appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-blue-600 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-md"}),(0,l.jsx)("input",{type:"range",min:p,max:g,step:d,value:j,onChange:e=>{N(Math.max(Number(e.target.value),_+u))},onMouseUp:()=>h(_,j,w,f),onTouchEnd:()=>h(_,j,w,f),className:"pointer-events-none absolute inset-0 z-20 w-full appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-blue-600 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-md"})]}),(0,l.jsxs)("div",{className:"text-primary-900 flex items-center text-sm font-semibold",children:[(0,l.jsxs)("span",{children:[x,_]}),(0,l.jsx)("span",{className:"mx-2",children:"-"}),(0,l.jsxs)("span",{children:[x,j===g?"".concat(j,"+"):j]})]}),(0,l.jsx)(r.default,{variant:"body-sm",className:"text-primary-900 mb-2 lg:hidden",children:"Selected price range"})]})}},31886:(e,t,a)=>{"use strict";a.d(t,{g:()=>o});var l=a(95704);function r(e,t){let a=null==e?void 0:e.trim();if(!a)return null;let l=null==t?void 0:t.trim();return l?{siteToken:a,domain:l}:{siteToken:a}}let s={default:r("0pB7fxXrTPbBBsuTOxN_4eHS08beumQFCmKicE7W_OI",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_default),canada:r("u-vMEN0tQzlELP6ato3siNPMqnlqRyn7RvJX5QJqKkI",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_canada),australia:r("KnvrMq0HB2CH9O8sLUUkXzzGNQMsJVJm-r4mFjz-o-A",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_australia),unitedkingdom:r("4XtZ7w6RZ-_EsRoSR9uaoWfn1tFIRe25kU9uQ1nF90E",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_unitedkingdom),europeanunion:r("WYb-5BXkrxh7hHXxAg16JFdtixmU9M4Fx34q8CKLmRo",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_europeanunion),germany:r("EKD7fx87F4j9LA_VospaFnGP3aFGVcVh_RoEoMMj9BY",l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_germany)},i={default:r(l.env.PLP_SITE_TOKEN_default||"0pB7fxXrTPbBBsuTOxN_4eHS08beumQFCmKicE7W_OI",l.env.PLP_WEBSITE_DOMAIN_default||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_default),canada:r(l.env.PLP_SITE_TOKEN_canada||"u-vMEN0tQzlELP6ato3siNPMqnlqRyn7RvJX5QJqKkI",l.env.PLP_WEBSITE_DOMAIN_canada||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_canada),australia:r(l.env.PLP_SITE_TOKEN_australia||"KnvrMq0HB2CH9O8sLUUkXzzGNQMsJVJm-r4mFjz-o-A",l.env.PLP_WEBSITE_DOMAIN_australia||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_australia),unitedkingdom:r(l.env.PLP_SITE_TOKEN_unitedkingdom||"4XtZ7w6RZ-_EsRoSR9uaoWfn1tFIRe25kU9uQ1nF90E",l.env.PLP_WEBSITE_DOMAIN_unitedkingdom||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_unitedkingdom),europeanunion:r(l.env.PLP_SITE_TOKEN_europeanunion||"WYb-5BXkrxh7hHXxAg16JFdtixmU9M4Fx34q8CKLmRo",l.env.PLP_WEBSITE_DOMAIN_europeanunion||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_europeanunion),germany:r(l.env.PLP_SITE_TOKEN_germany||"EKD7fx87F4j9LA_VospaFnGP3aFGVcVh_RoEoMMj9BY",l.env.PLP_WEBSITE_DOMAIN_germany||l.env.NEXT_PUBLIC_PLP_WEBSITE_DOMAIN_germany)};function o(e){var t;let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=e.trim();return l&&null!=(t=(a?i:s)[l])?t:null}},33290:(e,t,a)=>{"use strict";a.d(t,{n:()=>s});var l=a(42820);a(95704);let r=null,s=function(){if(r)return r;let e="0SGKNBRXRG",t="d87f31ea4380c9154e4c21a0c4bded4a";if(!e||!t)throw Error("Algolia environment variables are missing");return r=(0,l.w)(e,t)}()},50655:(e,t,a)=>{"use strict";a.d(t,{dP:()=>u,u$:()=>h,z2:()=>d});var l=a(90735),r=a(87114),s=a.n(r),i=a(33290),o=a(11423),c=a(90038);async function n(e){var t;let{storeCode:a,facetFilters:l=[],query:r="",hitsPerPage:s=50,page:o=0,sortIndex:c="",numericFilters:n}=e,d="".concat("liveCOV").concat(a).concat("_products").concat(c);return null==(t=(await i.n.search([{indexName:d,params:{query:r,hitsPerPage:s,maxValuesPerFacet:100,facets:["*"],page:o,facetFilters:l,...(null==n?void 0:n.length)?{numericFilters:n}:{}}}])).results)?void 0:t[0]}let{useGetTrendingProductsQuery:d,useGetPopularProductsQuery:u,useGetRelatedProductsQuery:m,useGetFrequentlyBoughtProductsQuery:h}=l.tb.injectEndpoints({endpoints:e=>({getTrendingProducts:e.query({queryFn:async(e,t,a,l)=>{let{storeCode:r,facetName:i,facetValue:n}=e;try{var d,u,m,h,p,g,v,x;if((0,o.sM)())try{return{data:{products:(null!=(p=null==(h=(await (0,c.Xp)({type:"trending-items",storeCode:r,...i&&n?{facetName:i,facetValue:n}:{}}
1,(0,o.H2)())).results)||null==(m=h[0])?void 0:m.hits)?p:[]).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){}let e=(g="0SGKNBRXRG",void 0!==g)?g:"",t=(v="d87f31ea4380c9154e4c21a0c4bded4a",void 0!==v)?v:"",a="".concat("liveCOV").concat(r).concat("_products"),l=s()(e,t),b={indexName:a,...i&&n?{facetName:i,facetValue:n}:{},queryParameters:{filters:"(NOT sku: 'SwatchKit001 ')"}};return{data:{products:(null!=(x=null==(u=(await l.getTrendingItems([b])).results)||null==(d=u[0])?void 0:d.hits)?x:[]).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){return{error:{status:500,data:e instanceof Error?null==e?void 0:e.message:"Unknown error occurred"}}}}}),getPopularProducts:e.query({queryFn:async(e,t,a,l)=>{try{if((0,o.sM)()){let{storeCode:t,facetFilters:a=[],query:l="",hitsPerPage:r=50,page:s=0,sortIndex:i="",numericFilters:n}=e,d={storeCode:t,query:l,page:s,hitsPerPage:r,sortIndex:i},u=function(e){if(!(null==e?void 0:e.length))return;if("string"==typeof e[0])return e;let t=e.filter(e=>e.length>0);return t.length>0?t:void 0}(a);u&&(d.facetFilters=u),(null==n?void 0:n.length)&&(d.numericFilters=n);try{return{data:await (0,c.Ti)(d,(0,o.H2)()),meta:{fetchedAt:Date.now()}}}catch(e){}}return{data:await n(e),meta:{fetchedAt:Date.now()}}}catch(e){return{error:{status:500,data:e instanceof Error?null==e?void 0:e.message:"Unknown error occurred"}}}}}),getRelatedProducts:e.query({queryFn:async(e,t,a,l)=>{let{storeCode:r,objectIDs:i,model:n="related-products",maxRecommendations:d=20}=e;try{var u,m,h;if((0,o.sM)())try{return{data:{products:(null!=(u=(await (0,c.Xp)({type:"related-products",storeCode:r,objectIDs:i,model:n,maxRecommendations:d},(0,o.H2)())).results)?u:[]).flatMap(e=>{var t;return null!=(t=e.hits)?t:[]}).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){}let e=(m="0SGKNBRXRG",void 0!==m)?m:"",t=(h="d87f31ea4380c9154e4c21a0c4bded4a",void 0!==h)?h:"",a="".concat("liveCOV").concat(r).concat("_products"),l=s()(e,t),p=i.map(e=>({indexName:a,model:n,objectID:e,maxRecommendations:d}));return{data:{products:(await l.getRelatedProducts(p)).results.flatMap(e=>{var t;return null!=(t=e.hits)?t:[]}).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){return{error:{status:500,data:e instanceof Error?null==e?void 0:e.message:"Unknown error occurred"}}}}}),getFrequentlyBoughtProducts:e.query({queryFn:async(e,t,a,l)=>{let{storeCode:r,objectIDs:i,maxRecommendations:n=20}=e;try{var d,u,m;if((0,o.sM)())try{return{data:{products:(null!=(d=(await (0,c.Xp)({type:"frequently-bought-together",storeCode:r,objectIDs:i,maxRecommendations:n},(0,o.H2)())).results)?d:[]).flatMap(e=>{var t;return null!=(t=e.hits)?t:[]}).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){}let e=(u="0SGKNBRXRG",void 0!==u)?u:"",t=(m="d87f31ea4380c9154e4c21a0c4bded4a",void 0!==m)?m:"",a="".concat("liveCOV").concat(r).concat("_products"),l=s()(e,t),h=i.map(e=>({indexName:a,model:"related-products",objectID:e,maxRecommendations:n}));return{data:{products:(await l.getFrequentlyBoughtTogether(h)).results.flatMap(e=>{var t;return null!=(t=e.hits)?t:[]}).filter(e=>1===e.visibility_catalog)},meta:{fetchedAt:Date.now()}}}catch(e){return{error:{status:500,data:e instanceof Error?null==e?void 0:e.message:"Unknown error occurred"}}}}})}),overrideExisting:!1})},61061:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(95155);a(12115);let r=(0,a(83101).F)("inline-flex items-center rounded-full border border-secondary-100 font-medium bg-gray-300 text-gray-800 transition-colors",{variants:{size:{sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-sm",lg:"px-4 py-1.5 text-base"}},defaultVariants:{size:"md"}});var s=a(32321),i=a(70104),o=a(36219),c=a(10127);let n=e=>{let{label:t,onRemove:a,className:n="",size:d="md"}=e;return(0,l.jsxs)("div",{className:(0,s.cn)(r({size:d,className:n})),children:[(0,l.jsx)(i.default,{element:"span",variant:"body-xs",className:"text-primary-900",children:t}),a&&(0,l.jsx)(o.A,{variant:"tertiary",size:"small",onClick:a,className:"ml-1.5 p-0 transition-colors focus:outline-none","aria-label":"Remove ".concat(t),children:(0,l.jsx)(c.u,{className:"text-gray-700",weight:"bold",size:14})})]})}},65791:(e,t,a)=>{"use strict";a.d(t,{Yw:()=>r,gy:()=>s});var l=a(31886);function r(){{let e="true".trim().toLowerCase();return"false"!==e&&"0"!==e}}function s(e){return(0,l.g)(e,!1)}a(95704)},67006:(e,t,a)=>{"use strict";a.d(t,{Zj:()=>n,aQ:()=>l,bj:()=>o,sf:()=>c});
1class l extends Error{constructor(e,t){super(e),this.name="GatewayResponseError",this.status=t}}let r=/gateway disabled/i,s=/unregistered|not registered|unknown (site|domain|brand)|invalid site( token)?|site not found/i;function i(e){return e instanceof Error?e.message:""}function o(e){return e instanceof l?403===e.status&&r.test(e.message):r.test(i(e))}function c(e){return!!s.test(i(e))||e instanceof l&&401===e.status}function n(e){return!!(o(e)||c(e))||e instanceof l&&(401===e.status||403===e.status)}},90038:(e,t,a)=>{"use strict";a.d(t,{Ti:()=>n,Xp:()=>d,Xx:()=>u});var l=a(65791),r=a(11423),s=a(67006);let i={plp:"/api/plp/search",recommend:"/api/algolia/recommend",autocomplete:"/api/algolia/autocomplete/search"};async function o(e){let t=await e.json().catch(()=>({}));if(!e.ok){let a="string"==typeof t.error?t.error:e.statusText,l=new s.aQ(a,e.status);throw(0,s.Zj)(l)&&(0,r.TN)(),l}return t}async function c(e,t,a){return o(await fetch(i[e],{method:"POST",headers:function(e,t){var a;let s={"Content-Type":"application/json"},i=null!=t?t:null!=(a=(0,r.H2)())?a:(0,l.gy)(e);return i&&(s["X-Site-Token"]=i.siteToken,i.domain&&(s["X-Website-Domain"]=i.domain)),s}(t.storeCode,a),body:JSON.stringify(t),cache:"no-store"}))}async function n(e,t){var a=await c("plp",{facets:["*"],maxValuesPerFacet:100,...e},t);if(Array.isArray(a.hits))return a;let l=Array.isArray(a.results)?a.results[0]:null;return l&&"object"==typeof l&&Array.isArray(l.hits)?l:a}function d(e,t){return c("recommend",e,t)}function u(e,t){return c("autocomplete",e,t)}},98470:(e,t,a)=>{"use strict";a.d(t,{j:()=>l,o:()=>r});let l="/custom-covers/custom-covers-p",r={videoUrl:"https://cdn.coversandall.com.au/media/happinessvideo/homepage_usp.mp4",title:"We've got you covered, no matter what!",ctaText:"Shop Custom Covers now",thumbnail:"/images/video_banner_thumb.webp",features:[{icon:"/images/icons/slug.svg",text:"Snug fit"},{icon:"/images/icons/fabric.svg",text:"Multiple fabric options"},{icon:"/images/icons/waterproof.svg",text:"Weatherproof"}]}},99240:(e,t,a)=>{"use strict";a.d(t,{A:()=>i,JL:()=>s,tr:()=>o,vB:()=>r});var l=a(35184);(0,l.q)(["Chair Covers","Dining Set Covers","Ottoman Covers","Accent Covers","Table Top Covers","Picnic Table Covers","Umbrella Covers","Custom Covers","Outdoor Daybed Covers","Table Covers","Sectional Couch Covers","Seating Covers","Outdoor Lifestyle Covers","Game Table Covers"]),(0,l.q)(["White","Black","Blue","Red","Yellow","Brown"]);let r=[{id:"1",name:"Classic White L-Shaped Chair Cover",price:"19.99",formattedPrice:"$19.99",originalprice:"29.99",productScore:92,rating:4,reviewsCount:124,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/classic-white-chair-cover",subCategories:["Chair Covers","Seating Covers"]},{id:"2",name:"Deluxe U-Shaped Dining Set Cover",price:"49.99",formattedPrice:"$19.99",originalprice:"29.99",productScore:88,rating:5,reviewsCount:89,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/deluxe-dining-set-cover",subCategories:["Dining Set Covers","Table Top Covers"]},{id:"3",name:"Modern Black Ottoman Cover",price:"25.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:75,rating:3,reviewsCount:42,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/modern-black-ottoman-cover",subCategories:["Ottoman Covers"],colors:["Black"],offer:"20% Off"},{id:"4",name:"Red Full Shaped Umbrella Cover",price:"34.95",formattedPrice:"$19.99",originalprice:"29.99",productScore:90,rating:4,reviewsCount:110,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/red-umbrella-cover",subCategories:["Umbrella Covers","Outdoor Lifestyle Covers"],colors:["Red"],offer:"20% Off"},{id:"5",name:"Yellow Picnic Table Cover",price:"22.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:85,rating:5,reviewsCount:77,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/yellow-picnic-table-cover",subCategories:["Picnic Table Covers"],colors:["Yellow"],offer:"20% Off"},{id:"6",name:"Blue L-Shaped Sectional Couch Cover",price:"89.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:97,rating:5,reviewsCount:203,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/blue-sectional-couch-cover",subCategories:["Sectional Couch Covers","Seating Covers"],colors:["Blue"],offer:"20% Off"},{id:"7",name:"Custom U-Shaped Game Table Cover Set",price:"59.99",formattedPrice:"$19.99",originalprice:"29.99",productScore:80,rating:4,reviewsCount:67,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/custom-game-table-cover",subCategories:["Game Table Covers","Custom Covers"],colors:["Black","Red"],offer:"20% Off"},{id:"8",name:"White Full Shaped Outdoor Daybed Cover",price:"119.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:94,rating:5,reviewsCount:158,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/outdoor-d
1aybed-cover",subCategories:["Outdoor Daybed Covers"],colors:["White","Blue"],offer:"20% Off"},{id:"9",name:"Minimal L-Shaped Accent Cover Set",price:"39.99",formattedPrice:"$19.99",originalprice:"29.99",productScore:78,rating:4,reviewsCount:53,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/minimal-accent-cover",subCategories:["Accent Covers"],colors:["Black","Brown"],offer:"20% Off"},{id:"10",name:"Bold Red Chair Cover",price:"21.99",formattedPrice:"$19.99",originalprice:"29.99",productScore:83,rating:4,reviewsCount:102,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/bold-red-chair-cover",subCategories:["Chair Covers"],colors:["Red"],offer:"20% Off"},{id:"11",name:"Elegant U-Shaped Table Cover - Black",price:"27.50",formattedPrice:"$19.99",originalprice:"29.99",productScore:89,rating:5,reviewsCount:91,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/elegant-black-table-cover",subCategories:["Table Covers"],colors:["Black"],offer:"20% Off"},{id:"12",name:"Custom Full Shaped Outdoor Lifestyle Cover",price:"69.95",formattedPrice:"$19.99",originalprice:"29.99",productScore:87,rating:4,reviewsCount:88,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/custom-outdoor-lifestyle-cover",subCategories:["Outdoor Lifestyle Covers","Custom Covers"],colors:["Blue","Brown"],offer:"20% Off"},{id:"13",name:"Premium L-Shaped Seating Covers - White & Yellow",price:"54.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:91,rating:5,reviewsCount:134,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/seating-covers-white-yellow",subCategories:["Seating Covers"],colors:["White","Yellow"],offer:"20% Off"},{id:"14",name:"Multi-use U-Shaped Custom Covers",price:"44.90",formattedPrice:"$19.99",originalprice:"29.99",productScore:84,rating:4,reviewsCount:73,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/multi-use-custom-covers",subCategories:["Custom Covers"]},{id:"15",name:"Brown Accent Table Top Cover",price:"35.00",formattedPrice:"$19.99",originalprice:"29.99",productScore:76,rating:3,reviewsCount:41,imageUrl:"/images/product.webp",hoverImageUrl:"/images/product-holo.webp",url:"/products/brown-accent-table-top-cover",subCategories:["Accent Covers","Table Top Covers"]},{id:"SquareRectangleTableChairSetCovers",name:"Custom Square/Rectangle Table Chair Set Covers",imageUrl:"https://cdn.coversandall.com/media/catalog/product/s/q/square-rectangle-table-chair-set-covers.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/s/q/square-rectangle-table-chair-set-covers.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"75.17",formattedPrice:"$75.17",rating:0,url:"https://www.coversandall.com/patio-furniture-covers/outdoor-table-covers/dining-set-covers/square-rectangle-table-chair-set-covers-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_2.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/a/max_color_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/k/sky_blue-1_6684b2_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushionrite_navy_blue_3.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushion-rite-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/h/charcoal_gray.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_7_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_2.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_1_.jpg"],subCategories:["Seating Covers"]},{id:"LShapeSofaCoversDesign5",name:"L Shape Couch Custom Covers - Design 5",imageUrl:"https://cdn.coversandall.com/media/catalog/product/l/-/l-shape-sofa-covers-design-5-new.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/l/-/l-shape-sofa-covers-design-5-new.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"284.37",formattedPrice:"$284.37",rating:0,url:"https://www.coversandall.com/patio-fur
1niture-covers/sectional-covers/l-shaped-sofa-cover/l-shape-sofa-covers-design-5-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_2.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/a/max_color_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/k/sky_blue-1_6684b2_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushionrite_navy_blue_3.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushion-rite-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/h/charcoal_gray.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_7_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_2.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_1_.jpg"],subCategories:["Outdoor Lifestyle Covers","Custom Covers"]},{id:"GrillCoverForWeberGenesisIIE435GasGrill",name:"Grill Cover for Weber Genesis II E-435 Gas Grill",imageUrl:"https://cdn.coversandall.com/media/catalog/product/g/e/genesis-ii-e-435-gas-grill-new.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/g/e/genesis-ii-e-435-gas-grill-new.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"146.59",formattedPrice:"$146.59",rating:0,url:"https://www.coversandall.com/standard-size-covers/grill-bbq-covers/weber-covers/gas-grill-covers/genesis-series/grill-cover-for-weber-genesis-ii-e-435-gas-grill-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/p/v/pvc-max-blue.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_2.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-white.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/a/max_color_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-tuff-grey.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-tuff-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-tuff-blue.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_1.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/r/e/red.png"],subCategories:["Table Covers"]},{id:"DiningTableCoversDesign5",name:"Dining Table Custom Covers",imageUrl:"https://cdn.coversandall.com/media/catalog/product/d/i/dining-table-covers-design-5.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/d/i/dining-table-covers-design-5.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"16.37",formattedPrice:"$16.37",rating:0,url:"https://www.coversandall.com/patio-furniture-covers/outdoor-table-covers/dining-set-covers/dining-table-covers-design-5-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/a/max_color_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_2.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/k/sky_blue-1_6684b2_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushionrite_navy_blue_3.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushion-rite-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/h/charcoal_gray.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_7_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_2.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_1_.jpg"],subCategories:["Game Table Covers","Custom Covers"]},{id:"RectangleTableCoversDesign3",name:"Oval Patio Dining Table Custom Covers",
1imageUrl:"https://cdn.coversandall.com/media/catalog/product/p/r/production-slip-rectangle-table-covers-design-3.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/p/r/production-slip-rectangle-table-covers-design-3.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"55.85",formattedPrice:"$55.85",rating:0,url:"https://www.coversandall.com/patio-furniture-covers/outdoor-table-covers/table-covers/custom-oval-table-cover-design-2-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/a/max_color_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/coffee-brown_2.png","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/o/cover-max-black.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/k/sky_blue-1_6684b2_5.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushionrite_navy_blue_3.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/u/cushion-rite-beige_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/h/charcoal_gray.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_7_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_2.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_22.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/0/1/01_1_.jpg"],subCategories:["Picnic Table Covers"]},{id:"OvalPoolCoverNoStepsP",name:"Oval Pool Cover - No Steps",imageUrl:"https://cdn.coversandall.com/media/catalog/product/n/o/no_step_oval__1_.jpg?width=433&height=433&canvas=433%2C433&optimize=high&bg-color=255%2C255%2C255&fit=bounds",hoverImageUrl:"https://cdn.coversandall.com/media/catalog/product/o/v/oval-pool-cover-no-steps-ps-2.jpg?optimize=high&bg-color=255%2C255%2C255&fit=bounds&height=433&width=433&canvas=433%2C433",reviewsCount:0,price:"350.18",formattedPrice:"$350.18",rating:0,url:"https://www.coversandall.com/swimming-pool-covers/oval-pool-covers/oval-pool-cover-no-steps-p",colors:["https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/b/e/beige_cotton_2__2.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/h/shade_lite-lime_grass-1_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/h/shade_elite-teal_yellow-1_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/s/h/shade_elite-pine_needle-1_1.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/m/i/midnight_green-165.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/1/p/1pebble-grey.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/e/l/electric_blue-165.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/c/h/charcoal_grey-165.jpg","https://cdn.coversandall.com/media/attribute/swatch/swatch_thumb/110/v/i/vivid_silver-165.jpg"],subCategories:["Dining Set Covers","Table Top Covers"]}],s=[{title:"FILTER",icon:"filter",key:"filteryby"},{title:"SORT",icon:"sort",key:"sortby"}],i=[{label:"Relevance",value:""},{label:"Bestsellers",value:"bestsellers"},{label:"Price : High to Low",value:"price-desc"},{label:"Price : Low to High",value:"price-asc"},{label:"New Arrivals",value:"new"}],o={bestsellers:"_ordered_qty_desc","price-desc":"_price_default_desc","price-asc":"_price_default_asc",new:"_created_at_desc"}},99744:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(95155),r=a(61084),s=a(70104),i=a(32321);let o=e=>{let{review:t,starColor:a="text-primary",className:o,showTitle:c=!1,reviewClassName:n}=e;return(0,l.jsxs)("div",{className:(0,i.cn)("relative flex h-full flex-col gap-2 bg-white py-2 lg:min-h-40 lg:p-5 lg:px-6",o),role:"group",children:[(0,l.jsx)("div",{className:"order-1 flex items-center gap-x-0.5 pb-1 lg:order-0",children:(0,l.jsx)(r.A,{value:t.rating,starColor:a,size:22,readOnly:!0})}),c&&t.title&&(0,l.jsx)(s.default,{variant:"body-2xl",weight:"medium",children:t.title}),(0,l.jsx)(s.default,{element:"p",variant:"body-2xs",weight:"medium",className:(0,i.cn)("order-0 block leading-normal tracking-normal text-gray-800 lg:order-1",n),children:t.review_text}),(0,l.jsxs)("div",{className:"order-2 mt-auto flex w-full justify-between",children:[(0,l.jsx)(s.default,{element:"p",variant:"body-xs",weight:"bold",className:"text-[#67646a] lg:text-black",children:t.user}),(0,l.jsx)(s.default,{variant:"body-xs",weight:"bold",className:"text-[#67646a] lg:text-black",children:(0,i.Yq)(new Date(t.created_at))})]})]})}}}]);
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.