PageSourceSearch

https://seatcovers.com/_next/static/chunks/app/layout-6920dc60ef9e648e.js

js seatcovers.com collected 2026-10-04 09:08:33 UTC 44,241 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2173:(e,t,l)=>{Promise.resolve().then(l.bind(l,7299)),Promise.resolve().then(l.t.bind(l,3915,23)),Promise.resolve().then(l.t.bind(l,6529,23)),Promise.resolve().then(l.t.bind(l,1141,23)),Promise.resolve().then(l.t.bind(l,9234,23)),Promise.resolve().then(l.t.bind(l,5315,23)),Promise.resolve().then(l.t.bind(l,7898,23)),Promise.resolve().then(l.bind(l,5311)),Promise.resolve().then(l.bind(l,9175)),Promise.resolve().then(l.bind(l,7518)),Promise.resolve().then(l.bind(l,2186)),Promise.resolve().then(l.bind(l,2399)),Promise.resolve().then(l.bind(l,3807)),Promise.resolve().then(l.bind(l,6154)),Promise.resolve().then(l.bind(l,7900)),Promise.resolve().then(l.bind(l,6954))},776:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(8558);let s=e=>{var t,l;return{item_name:e.productMetadata.title,item_variant:null!==(l=null===(t=e.selectedOptions)||void 0===t?void 0:t.filter(e=>e.value!==a.E6).map(e=>e.value).join(" "))&&void 0!==l?l:"",item_brand:e.productMetadata.vendor,item_category:e.productMetadata.productType,price:parseFloat(e.price.amount).toFixed(2),quantity:1}},n=e=>{var t;let l=1===e.variants.length;return{item_name:e.title,item_brand:e.vendor,item_category:e.productType,price:l?parseFloat(null===(t=e.variants[0])||void 0===t?void 0:t.price.amount).toFixed(2):parseFloat(e.price).toFixed(2),quantity:1}},r=e=>({item_name:e.title,item_brand:"",item_category:"",price:parseFloat(e.price).toFixed(2),quantity:1}),i={trackViewItem:e=>{var t,l;let{product:a}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null});let s=1===a.variants.length;window.dataLayer.push({event:"view_item",ecommerce:{currency:s?null===(t=a.variants[0])||void 0===t?void 0:t.price.currencyCode:a.currencyCode,value:s?null===(l=a.variants[0])||void 0===l?void 0:l.price:a.price,items:[n(a)]}})},trackAddToCart:e=>{let{products:t}=e;if(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),0===t.length||!t[0])return;let l=t[0].price.currencyCode,a=t.reduce((e,t)=>t.price.amount?e+parseFloat(t.price.amount):e,0);window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:l,value:a.toFixed(2),items:t.map(e=>s(e))}})},trackViewItemList:e=>{let{products:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"view_item_list",items:t.map(e=>r(e))})},trackAddQtyToCart:e=>{var t,l;let{item:a}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:a.merchandise.product.priceRange.minVariantPrice.currencyCode,value:parseFloat(a.cost.amountPerQuantity.amount).toFixed(2),items:[{item_name:a.merchandise.product.title,item_brand:a.merchandise.product.vendor,item_category:a.merchandise.product.productType,item_variant:a.merchandise.selectedOptions.map(e=>e.value).join(" "),price:parseFloat(a.cost.amountPerQuantity.amount).toFixed(2),discount:null!==(l=null===(t=a.discountAllocations[0])||void 0===t?void 0:t.discountedAmount.amount)&&void 0!==l?l:0,quantity:1}]}})},trackRemoveFromCart:e=>{var t,l;let{item:a,isFullRemove:s}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"remove_from_cart",ecommerce:{currency:a.merchandise.product.priceRange.minVariantPrice.currencyCode,value:s?parseFloat(a.cost.totalAmount.amount).toFixed(2):parseFloat(a.cost.amountPerQuantity.amount).toFixed(2),items:[{item_name:a.merchandise.product.title,item_brand:a.merchandise.product.vendor,item_category:a.merchandise.product.productType,item_variant:a.merchandise.selectedOptions.map(e=>e.value).join(" "),price:s?parseFloat(a.cost.totalAmount.amount).toFixed(2):parseFloat(a.cost.amountPerQuantity.amount).toFixed(2),discount:null!==(l=null===(t=a.discountAllocations[0])||void 0===t?void 0:t.discountedAmount.amount)&&void 0!==l?l:0,quantity:s?a.quantity:1}]}})}}},5311:(e,t,l)=>{"use strict";l.d(t,{default:()=>N});var a=l(6896),s=l(6772),n=l(8558),r=l(1331),i=l(567),o=l(403),c=l(3632),d=l(3915),u=l.n(d),x=l(1676),m=l(5351);let h=e=>{let{className:t}=e;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 26 25",fill:"none",className:t||"",children:(0,a.jsxs)("g",{id:"Vector",children:[(0,a.jsx)("path",{id:"Vector (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M7.7915 22.3751C7.7915 21.2245 8.72424 20.2917 9.87484 20.2917C11.0254 20.2917 11.9582 21.2245 11.9582 22.3751C11.9582 23.5257 11.0254 24.4584 9.87484 24.4584C8.72424 24.4584 7.7915 23.5257 7.7915 22.3751Z",fill:"#02050D"}),(0,a.jsx)("path",{id:"Vector (Stroke)_2",fillRule:"evenodd",clipRule:"evenodd",d:"M19.25 22.3751C19.25 21.2245 20.1827 20.2917 21.3333 20.2917C22.4839 20.2917 23.4167 21.2245 23.4167 22.3751C23.4167 23.5257 22.4839 24.4584 21.3333 24.4584C20.1827 24.4584 19.25 23.5257 19.25 22.3751Z",fill:"#02050D"}),(0,a.jsx)("path",{id:"Vector (Stroke)_3",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 1.54167C0.5 0.96637 0.96637 0.5 1.54167 0.5H5.70833C6.20482 0.5 6.6323 0.850401 6.72974 1.33723L7.60461 5.70833H24.4583C24.7688 5.70833 25.063 5.8468 25.2609 6.08599C25.4588 6.32519 25.5397 6.64018 25.4816 6.94513L23.8134 15.6925C23.6705 16.4119 23.2791 17.0581 22.7078 17.518C22.1394 17.9756 21.4288 18.2198 20.6993 18.2083H10.5923C9.86289 18.2198 9.15229 17.9756 8.58383 17.518C8.01276 17.0583 7.62149 16.4124 7.47847 15.6934C7.47841 15.6931 7.47852 15.6937 7.47847 15.6934L5.73832 6.99917C5.73126 6.97041 5.7254 6.94118 5.72078 6.91154L4.85449 2.58333H1.54
1167C0.96637 2.58333 0.5 2.11696 0.5 1.54167ZM8.02159 7.79166L9.52171 15.2866C9.56933 15.5264 9.69978 15.7418 9.89022 15.8951C10.0807 16.0484 10.3189 16.1299 10.5634 16.1252L10.5833 16.125H20.7083L20.7283 16.1252C20.9727 16.1299 21.211 16.0484 21.4014 15.8951C21.591 15.7425 21.7211 15.5284 21.7693 15.29L23.1992 7.79166H8.02159Z",fill:"#02050D"})]})})},f=e=>{let{amount:t,className:l,currencyCode:s="USD"}=e;return(0,a.jsx)("span",{className:l,children:"".concat(new Intl.NumberFormat(void 0,{style:"currency",currency:s,currencyDisplay:"narrowSymbol"}).format(parseFloat(t)))})};var p=l(3377);let v=()=>(0,a.jsxs)("div",{className:"bg-black-20 absolute z-[100] flex h-full w-full items-center justify-center bg-opacity-50",children:[(0,a.jsx)("span",{className:"sr-only",children:"Loading..."}),(0,a.jsx)(p.A,{color:"text-black-100"})]});var b=l(776);function j(e){let{item:t}=e,[l,n]=(0,x.useTransition)(),{removeItem:r,setIsLoading:i}=(0,s.hy)();return(0,a.jsx)("button",{"aria-label":"Remove cart item",onClick:()=>{i(!0),n(async()=>{let e=await r(t.id);if(e){alert(e);return}b.A.trackRemoveFromCart({item:t,isFullRemove:!0})})},disabled:l,className:(0,o.A)("ease bg-black-100 flex h-5 w-5 items-center justify-center transition-all duration-200",{"cursor-not-allowed px-0":l}),children:(0,a.jsx)(m.Qks,{className:(0,o.A)("[1px] h-4 w-4 text-white hover:opacity-80")})})}function g(e){let{discountCode:t,onClick:l,isPending:s}=e;return(0,a.jsxs)("div",{className:"border-grey flex flex-shrink-0 flex-wrap rounded-3xl border-[1px] bg-white px-4 py-1 leading-[18px]",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",focusable:"false","aria-hidden":"true",className:"m-auto inline-block h-5 fill-none",stroke:"currentColor",children:[(0,a.jsx)("path",{strokeLinecap:"round",d:"M7.284 1.402h4.964a.35.35 0 0 1 .35.35v4.964a.7.7 0 0 1-.205.495L7.49 12.115a.7.7 0 0 1-.99 0L1.885 7.5a.7.7 0 0 1 0-.99L6.79 1.607a.7.7 0 0 1 .495-.205Z",strokeWidth:"1.4px",vectorEffect:"non-scaling-stroke"}),(0,a.jsx)("circle",{cx:"9.1",cy:"4.9",r:"0.7",vectorEffect:"non-scaling-stroke",strokeWidth:"1.4px"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.102 4.897h-.005v.005h.005v-.005Z"})]}),(0,a.jsx)("div",{className:"mx-3 my-auto inline-block max-w-[240px] break-words uppercase",children:t.code}),(0,a.jsx)("button",{className:"inline-block",onClick:()=>{l(t.code)},disabled:s,children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:"m-auto inline-block h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}function w(e){let{discountCodes:t}=e,{updateDiscount:l,setIsLoading:n}=(0,s.hy)(),[r,i]=(0,x.useTransition)(),[o,c]=(0,x.useState)(""),[d,u]=(0,x.useState)(""),[m,h]=(0,x.useState)(t.length&&t.some(e=>e.applicable)),f=(0,x.useRef)(),p="Enter a valid discount code.",v=t.filter(e=>e.applicable),b=()=>{j(null)},j=e=>{u(""),n(!0),i(async()=>{let t=await l(e);c(""),t&&u("An error occurred while applying the discount code. Please try again.")})};return(0,x.useEffect)(()=>{if(!t.length){h(!1),u("");return}h(t.some(e=>e.applicable)),u(t.some(e=>e.applicable)?"":p)},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-3 flex min-h-[37px] items-center justify-between gap-4 leading-5",children:m?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex w-full flex-wrap justify-between gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0 py-2",children:v&&v.length>1?"Discount Codes":"Discount Code"}),v.map((e,t)=>(0,a.jsx)(g,{discountCode:e,onClick:b,isPending:r},t))]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{className:"w-full appearance-none px-3 py-2 text-base font-medium leading-4",type:"text",name:"discountCode",placeholder:"Discount code",value:o,onChange:e=>c(e.target.value),ref:f}),(0,a.jsx)("button",{className:"flex justify-end whitespace-nowrap text-base font-bold",onClick:()=>{if(!o||0===o.trim().length){u(p),c(""),f.current&&f.current.focus();return}j(o.trim())},disabled:r,children:"Apply Discount"})]})}),!m&&d?(0,a.jsx)("p",{className:"text-red my-3 text-sm",children:d}):null]})}function y(e){let{item:t,type:l}
1=e,[n,r]=(0,x.useTransition)(),{removeItem:i,updateItemQuantity:c,setIsLoading:d}=(0,s.hy)();return(0,a.jsx)("button",{"aria-label":"plus"===l?"Increase item quantity":"Reduce item quantity",onClick:()=>{d(!0),r(async()=>{let e="minus"===l&&t.quantity-1==0?await i(t.id):await c({lineId:t.id,variantId:t.merchandise.id,quantity:"plus"===l?t.quantity+1:t.quantity-1});if(e){console.error(e);return}"plus"===l?b.A.trackAddQtyToCart({item:t}):"minus"===l&&b.A.trackRemoveFromCart({item:t})})},disabled:n,className:(0,o.A)("ease flex h-full min-w-[36px] max-w-[36px] flex-none items-center justify-center px-2 transition-all duration-200 hover:border-neutral-800 hover:opacity-80",{"cursor-not-allowed":n,"ml-auto":"minus"===l}),children:"plus"===l?(0,a.jsx)(m.Ld_,{className:"h-4 w-4"}):(0,a.jsx)(m.oev,{className:"h-4 w-4"})})}function N(){let{cart:e,isOpen:t,isLoading:l}=(0,s.B_)(),{setIsOpen:d}=(0,s.hy)(),p=()=>d(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"px-[2.5px] pb-[3.54px] pt-[2.5px]",children:(0,a.jsxs)("button",{"aria-label":"Open cart",onClick:()=>d(!0),className:"relative",children:[(0,a.jsx)(h,{}),(null==e?void 0:e.totalQuantity)&&e.totalQuantity>0?(0,a.jsx)("span",{className:"font-robotoBold text-black-100 absolute right-0 top-0 -mr-2.5 -mt-2 flex h-[18px] w-[18px] items-center justify-center rounded bg-yellow-100 text-xs",children:e.totalQuantity}):null]})}),(0,a.jsx)(r.e,{show:t,children:(0,a.jsxs)(i.lG,{onClose:p,className:"font-rajdhaniMedium relative z-50",children:[(0,a.jsx)(r._,{as:x.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-all ease-in-out duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"bg-black-100 fixed inset-0 bg-opacity-50","aria-hidden":"true"})}),(0,a.jsx)(r._,{as:x.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transition-all ease-in-out duration-200",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,a.jsxs)(i.Lj,{className:(0,o.A)("border-black-20 bg-black-10 fixed bottom-0 right-0 top-0 flex h-full w-full flex-col p-6 md:w-2/3 lg:w-[560px]",{"border-l-black-20/50":!l}),children:[l&&(0,a.jsx)("div",{className:"absolute -ml-6 -mt-6 flex h-full w-full flex-col items-center justify-center",children:(0,a.jsx)(v,{})}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("p",{className:"text-lg font-semibold",children:"Cart"}),(0,a.jsx)("button",{"aria-label":"Close cart",onClick:p,children:(0,a.jsx)("div",{className:"border-black-20 relative flex h-11 w-11 items-center justify-center border text-black transition-colors",children:(0,a.jsx)(m.Qks,{className:(0,o.A)("h-6 w-6 transition-all ease-in-out hover:scale-110")})})})]}),e&&0!==e.lines.length?(0,a.jsxs)("div",{className:"flex h-full flex-col justify-between overflow-hidden p-1",children:[(0,a.jsx)("ul",{className:"flex-grow overflow-auto py-4",children:e.lines.map((e,t)=>{var l,s;let r="/products/".concat(e.merchandise.product.handle),i=e.discountAllocations.reduce((e,t)=>e+parseFloat(t.discountedAmount.amount),0),o=i>0?parseFloat(e.cost.totalAmount.amount)+i:e.cost.totalAmount.amount;return(0,a.jsx)("li",{className:"border-black-20 flex w-full flex-col border-b",children:(0,a.jsxs)("div",{className:"relative flex w-full flex-row justify-between px-1 py-4",children:[(0,a.jsx)("div",{className:"absolute z-40 -mt-2 ml-[55px]",children:(0,a.jsx)(j,{item:e})}),(0,a.jsxs)(u(),{href:r,onClick:p,className:"z-30 flex flex-row space-x-4",children:[(0,a.jsx)("div",{className:"border-black-30 bg-black-30 relative h-16 w-16 cursor-pointer overflow-hidden border",children:(null===(l=e.merchandise.image)||void 0===l?void 0:l.url)&&(0,a.jsx)(c.default,{className:"h-full w-full object-cover",width:64,height:64,alt:e.merchandise.product.title,src:null===(s=e.merchandise.image)||void 0===s?void 0:s.url})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col text-base",children:[(0,a.jsx)("span",{className:"font-rajdhani leading-tight",children:e.merchandise.product.title}),e.merchandise.title!==n.E6?(0,a.jsx)("p",{className:"font-rajdhaniMedium text-black-70 flex flex-col text-sm",children:e.merchandise.selectedOptions.map((e,t)=>(0,a.jsxs)("span",{children:[(0,a.jsxs)("span",{className:"font-bold",children:[e.name,":"]})," ",e.value]},t))}):null,e.attributes?(0,a.jsxs)("p",{className:"font-rajdhaniMedium text-black-70 flex flex-col text-sm",children:[e.attributes.filter(e=>e.key!==n.ZA).map((e,t)=>(0,a.jsxs)("span",{children:[(0,a.jsxs)("span",{className:"font-bold",children:[e.key,":"]})," ",e.value]},t))," "]}):null]})]}),(0,a.jsxs)("div",{className:"flex h-16 flex-col justify-between",children:[i>0?(0,a.jsx)(f,{className:"text-black-70 flex justify-end space-y-2 text-right text-xs line-through",amount:o.toString(),currencyCode:e.cost.totalAmount.currencyCode}):null,(0,a.jsx)(f,{className:"flex justify-end space-y-2 text-right text-base",amount:e.cost.totalAmount.amount,currencyCode:e.cost.totalAmount.currencyCode}),(0,a.jsxs)("div",{className:"border-black-20 ml-auto mt-2 flex h-9 flex-row items-center border",children:[(0,a.jsx)(y,{item:e,type:"minus"}),(0,a.jsx)("p",{className:"w-6 text-center",children:(0,a.jsx)("span",{className:"w-full text-sm",children:e.quantity})}),(0,a.jsx)(y,{item:e,type:"plus"})]})]})]})},t)})}),(0,a.jsxs)("div",{className:"text-black-70 py-4 text-sm",children:[(0,a.jsxs)("div",{className:"border-black-20 mb-3 flex items-center justify-between border-b pb-1",children:[(0,a.jsx)("p",{children:"Taxes"}),(0,a.jsx)(f,{className:"text-right text-base font-semibold",amount:e.cost.totalTaxAmount.amount,currencyCode:e.cost.totalTaxAmount.currencyCode})]}),(0,a.jsxs)("div",{className:"border-black-20 mb-3 flex items-center justify-between border-b pb-1 pt-1",children:[(0,a.jsx)("p",{children:"Shipping"}),(0,a.jsx)("p",{className:"text-right",children:"Calculated at checkout"})]}),(0,a.jsxs)("div",{className:"border-black-20 mb-3 flex items-center justify-between border-b pb-1 pt-1",children:[(0,a.jsx)("p",{children:"Subtotal"}),(0,a.jsx)(f,{className:"text-right text-base font-semibold",amount:e.cost.totalAmount.amount,currencyCode:e.cost.totalAmount.currencyCode})]}),(0,a.jsx)(w,{discountCodes:e.discountCodes})]}),(0,a.jsx)("a",{href:e.checkoutUrl,className:"bg-black-100 font-rajdhani block w-full p-3 text-center uppercase text-white hover:opacity-80",children:"Proceed to Checkout"})]}):(0,a.jsxs)("div",{className:"mt-20 flex w-full flex-col items-center justify-center overflow-hidden",children:[(0,a.jsx)(h,{className:"h-12 w-12"}),(0,a.jsx)("p",{className:"mt-6 text-center text-2xl font-bold",children:"Your cart is empty"})]})]})})]})})]})}},9175:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(6896),s=l(3377),n=l(8135),r=l(3915),i=l.n(r),o=l(8189),c=l(1676),d=l(4022),u=l(1013),x=l(2818),m=l(1845);let h=()=>{let e=(0,o.usePathname)(),[t,l]=(0,c.useState)(!1),{fitment:r,isLoading:h}=(0,n.eT)(),{remove:f,setShowFitmentModal:p,setSkipRedirect:v,setShowFitmentMobile:b}=(0,n.Qz)(),j=!(r&&r.slug===decodeURIComponent(e));return((0,c.useEffect)(()=>
1{l(!0)},[]),!t||h)?(0,a.jsx)("div",{className:"bg-black-100 flex min-h-[44px] items-center lg:min-h-[90px]",children:(0,a.jsx)(s.A,{})}):r?(0,a.jsx)("div",{className:"bg-black-100 flex min-h-[44px] items-center justify-center px-4 py-2.5 text-white lg:min-h-[90px] lg:py-6",children:(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-[9px]",children:[(0,a.jsx)(()=>null,{}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(u.h,{})}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-1 lg:gap-y-2",children:[(0,a.jsxs)("p",{className:"font-rajdhani text-base font-semibold !leading-[10px] lg:text-xl",children:[r.year," ",r.make," ",r.model]}),j&&(0,a.jsx)(i(),{href:r.slug,className:"font-rajdhani text-black-30 text-xs !font-semibold !leading-[10px] underline lg:text-base",children:"Shop Covers"})]})]}),(0,a.jsxs)("button",{className:"hidden items-center gap-x-1 lg:flex",onClick:()=>{p(!0),v(!1)},children:[(0,a.jsx)(m.A,{}),(0,a.jsx)("span",{className:"font-rajdhani text-black-30 h-3.5 text-xs !font-semibold uppercase underline lg:h-5 lg:text-base",children:"Change"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-x-1 lg:hidden",onClick:()=>{b(!0)},children:[(0,a.jsx)(m.A,{}),(0,a.jsx)("span",{className:"font-rajdhani text-black-30 h-3.5 text-xs !font-semibold uppercase underline lg:h-5 lg:text-base",children:"Change"})]})]})})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"bg-black-100 flex items-center justify-center px-4 py-2.5 text-white lg:py-6",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsxs)("div",{className:"flex w-full cursor-pointer items-center justify-between lg:hidden",onClick:()=>b(!0),children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-[9px]",children:[(0,a.jsx)("div",{className:"flex lg:hidden",children:(0,a.jsx)(u.h,{})}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-1 lg:gap-y-1.5",children:[(0,a.jsx)("p",{className:"font-rajdhani text-base font-semibold leading-[10px] lg:text-xl lg:leading-5",children:"Select Vehicle"}),(0,a.jsx)("p",{className:"text-black-20 text-xs !leading-[10px] lg:text-base",children:"For custom fit seat covers"})]})]}),(0,a.jsx)("div",{className:"flex",onClick:()=>b(!0),children:(0,a.jsx)(x.A,{})})]}),(0,a.jsxs)("div",{className:"hidden w-full justify-between lg:flex",children:[(0,a.jsx)("div",{className:"flex items-center gap-x-[9px]",children:(0,a.jsxs)("div",{className:"flex flex-col gap-y-1 lg:gap-y-1.5",children:[(0,a.jsx)("p",{className:"font-rajdhani text-base font-semibold leading-[10px] lg:text-xl lg:leading-5",children:"Select Vehicle"}),(0,a.jsx)("p",{className:"text-black-20 text-xs !leading-[10px] lg:text-base",children:"For custom fit seat covers"})]})}),(0,a.jsx)(d.g,{useHorizontal:!0})]})]})})})}},1845:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(6896);let s=e=>{let{fill:t,size:l}=e,s=t||"white";return l&&"small"===l?(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M8.60449 4.05078L5.22949 7.42578V9.67578H7.47949L10.8545 6.30078M8.60449 4.05078L10.292 2.36328L12.542 4.61328L10.8545 6.30078M8.60449 4.05078L10.8545 6.30078M6.35449 2.92578H2.97949V11.9258H11.9795V8.55078",stroke:s,strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,a.jsx)("svg",{className:"h-4 w-4 lg:h-5 lg:w-5",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:(0,a.jsxs)("g",{id:"Vector",children:[(0,a.jsx)("path",{id:"Vector_2",d:"M10 3.12134H3C2.46957 3.12134 1.96086 3.33205 1.58579 3.70712C1.21071 4.0822 1 4.5909 1 5.12134V19.1213C1 19.6518 1.21071 20.1605 1.58579 20.5356C1.96086 20.9106 2.46957 21.1213 3 21.1213H17C17.5304 21.1213 18.0391 20.9106 18.4142 20.5356C18.7893 20.1605 19 19.6518 19 19.1213V12.1213",stroke:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{id:"Vector_3",d:"M17.5 1.62132C17.8978 1.2235 18.4374 1 19 1C19.5626 1 20.1022 1.2235 20.5 1.62132C20.8978 2.01915 21.12
113 2.55871 21.1213 3.12132C21.1213 3.68393 20.8978 4.2235 20.5 4.62132L11 14.1213L7 15.1213L8 11.1213L17.5 1.62132Z",stroke:s,strokeLinecap:"round",strokeLinejoin:"round"})]})})}},7069:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var a=l(6896),s=l(8135),n=l(403),r=l(1676),i=l(2238),o=l(3377),c=l(4022),d=l(1013),u=l(2818);let x=e=>{let{isModal:t,onContinue:l}=e,[x,m]=(0,r.useState)(!1),[h]=(0,r.useState)(!t),{fitment:f,isEditing:p,vehicleName:v}=(0,s.eT)(),{setIsEditingFitment:b,setShowFitmentModal:j,setShowFitmentMobile:g}=(0,s.Qz)();return((0,r.useEffect)(()=>{m(!0)},[]),x)?(0,a.jsx)("div",{className:"relative m-auto flex min-h-[438px] w-[288px] flex-col justify-center bg-yellow-100 px-4 py-6 max-lg:h-full max-lg:w-full xs:min-w-[380px] md:min-h-[454px] md:min-w-[500px] lg:min-h-[403px] lg:p-8",children:f&&(!p||h)?(0,a.jsxs)("div",{className:(0,n.A)("m-auto mx-auto flex w-full flex-col xs:max-w-[360px] md:max-w-[480px]",{"gap-y-8 max-lg:items-center":!0===t},{"gap-y-6 md:gap-y-8":!t}),children:[(0,a.jsx)("h3",{className:"font-rajdhani text-2xl leading-none md:text-[40px]",children:"Continue Shopping"}),(0,a.jsxs)("button",{className:"flex h-[60px] w-full cursor-pointer items-center justify-center gap-x-2.5 bg-black-100 font-rajdhani text-xl uppercase leading-normal text-white",onClick:l,children:[(0,a.jsx)(d.h,{}),(0,a.jsx)("span",{className:"line-clamp-1 max-w-[160px] min-[360px]:max-w-[240px]",children:v}),(0,a.jsx)(u.A,{})]}),(0,a.jsxs)("div",{className:"relative mx-auto flex min-h-[11px] w-full flex-row items-center font-robotoBold font-medium xs:w-[300px]",children:[(0,a.jsx)("div",{className:"flex-grow border-t border-t-black-100"}),(0,a.jsx)("span",{className:"flex-shrink px-8 text-black-100",children:"Or"}),(0,a.jsx)("div",{className:"flex-grow border-t border-t-black-100"})]}),(0,a.jsx)("button",{className:"hidden h-[60px] w-full cursor-pointer items-center justify-center bg-white font-rajdhani text-xl uppercase leading-normal text-black-100 lg:flex",onClick:()=>{b(!0),t||j(!0)},children:"Change Vehicle"}),(0,a.jsx)("button",{className:"flex h-[60px] w-full cursor-pointer items-center justify-center bg-white font-rajdhani text-xl uppercase leading-normal text-black-100 lg:hidden",onClick:()=>g(!0),children:"Change Vehicle"}),(0,a.jsx)(i.A,{}),t&&(0,a.jsx)("div",{className:"order-2 flex items-center justify-center",children:(0,a.jsx)("button",{className:"w-full cursor-pointer font-rajdhani text-xl uppercase leading-normal",onClick:()=>j(!1),children:"Cancel"})})]}):(0,a.jsxs)(a.Fragment,{children:[!t&&(0,a.jsx)("div",{className:"absolute inset-0 bottom-0 left-0 right-0 top-0 z-40 cursor-pointer lg:hidden",onClick:()=>g(!0)}),(0,a.jsx)("div",{className:"mx-auto w-full xs:max-w-[360px] md:max-w-[480px]",children:(0,a.jsx)(c.A,{headline:p?"Change Vehicle":"Select Vehicle"})}),t&&(0,a.jsx)("div",{className:"order-2 mt-8 flex items-center justify-center",children:(0,a.jsx)("button",{className:"w-full cursor-pointer font-rajdhani text-xl uppercase leading-normal",onClick:()=>j(!1),children:"Cancel"})})]})}):(0,a.jsx)("div",{className:"m-auto flex min-h-[438px] w-full flex-col items-center justify-center gap-y-8 bg-yellow-100 px-4 py-6 xs:min-w-[380px] md:min-h-[454px] md:min-w-[500px] lg:min-h-[403px] lg:p-8",children:(0,a.jsx)(o.A,{color:"text-black-100"})})}},7518:(e,t,l)=>{"use strict";l.d(t,{default:()=>r});var a=l(6896),s=l(4070),n=l(1676);function r(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[e]),(0,a.jsx)(a.Fragment,{children:e?(0,a.jsx)(s.q,{type:"announcement-bar-small"}):(0,a.jsx)(a.Fragment,{})})}},2186:(e,t,l)=>{"use strict";l.d(t,{default:()=>j});var a=l(6896),s=l(8189),n=l(1676),r=l(5351);let i=e=>{let{onClose:t}=e;return(0,a.jsx)("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:t,children:(0,a.jsx)("path",{d:"M4.70703 3.29297L3.29297 4.70703L10.5859 12L3.29297 19.293L4.70703 20.707L12 13.4141L19.293 20.707L20.707 19.293L13.4141 12L20.707 4.70703L19.293 3.29297L12 10.5859L4.70703 3.29297Z",fill:"black"})})};var o=l(403),c=l(3632),d=l(3915),u=l.n(d),x=l(1013),m=l(2818),h=l(8135),f=l(5642);let p=e=>{let{onClick:t}
1=e,[l,s]=(0,n.useState)(!1),{fitment:r}=(0,h.eT)(),{setShowFitmentMobile:i}=(0,h.Qz)();return((0,n.useEffect)(()=>{s(!0)},[]),r||!l)?null:(0,a.jsxs)("div",{className:"flex cursor-pointer items-center justify-between border-t border-t-[#DFE1E4] bg-gray-100 px-4 py-2.5",onClick:()=>{t(),(0,f.A)(300).then(()=>{i(!0)})},children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)(x.h,{fill:"#faa601"}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"font-rajdhani text-sm",children:"Select Vehicle"}),(0,a.jsx)("p",{className:"font-robotoRegular text-xs",children:"Start here for custom fit seat covers"})]})]}),(0,a.jsx)(m.A,{fill:"#02050d"})]})},v=[{href:"/about-us",label:"About Us"},{href:"/customer-service",label:"Customer Service"},{href:"/installation",label:"Installation"}],b=e=>{let{isOpen:t,onClose:l}=e;return(0,a.jsxs)("div",{className:(0,o.A)("absolute inset-0 z-50 overflow-hidden",{"w-0":!t,"w-full":t}),children:[(0,a.jsx)("div",{className:"bg-black-100 absolute z-[55] h-full w-full opacity-50",onClick:l}),(0,a.jsx)("div",{className:(0,o.A)("absolute z-[60] w-full max-w-[288px] transform bg-white pb-4 transition-all delay-100 duration-150 ease-in-out min-[360px]:max-w-[320px] lg:hidden",{"inset-0 left-auto translate-x-0 opacity-100":t,"left-[1000px] translate-x-full opacity-0":!t}),children:(0,a.jsxs)("div",{className:"flex h-full flex-col justify-start",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-4 py-6",children:[(0,a.jsx)(u(),{href:"/",className:"min-h-[24px]",title:"SeatCovers.com Home Page",children:(0,a.jsx)(c.default,{src:"/images/logo.svg",width:190,height:24,alt:"",priority:!0})}),(0,a.jsx)(i,{onClose:l})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(n.Suspense,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:(0,a.jsx)(p,{onClick:l})}),v.map((e,t)=>(0,a.jsx)(u(),{href:e.href,className:(0,o.A)("font-roboto flex h-[50px] items-center border-t border-t-[#DFE1E4] px-4 font-medium leading-6",{"border-b border-b-[#DFE1E4]":t===v.length-1}),children:e.label},t))]}),(0,a.jsx)("div",{className:"flex grow flex-col items-center justify-end self-stretch",children:(0,a.jsxs)("p",{className:"font-rajdhani text-center text-xl uppercase leading-6",children:["Have a question? Call us.",(0,a.jsx)("br",{}),(0,a.jsx)("a",{href:"tel:855-791-0785",children:"1-855-791-0785"})]})})]})})]})},j=()=>{let[e,t]=(0,n.useState)(!1),l=(0,s.usePathname)(),o=(0,s.useSearchParams)();return(0,n.useEffect)(()=>{t(!1)},[l,o]),(0,n.useEffect)(()=>{if(e){let e=document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.marginRight=document.body.offsetWidth-e+"px"}else document.body.style.overflow="",document.body.style.marginRight=""},[e]),(0,a.jsxs)(a.Fragment,{children:[e?(0,a.jsx)(i,{onClose:()=>t(!1)}):(0,a.jsx)(r.ybW,{className:"cursor-pointer text-2xl",onClick:()=>t(!0)}),(0,a.jsx)(b,{isOpen:e,onClose:()=>t(!1)})]})}},2399:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var a=l(6896),s=l(8179);function n(){return(0,a.jsx)(s.i4,{options:{showSpinner:!1},color:"#f28705",height:"4px",delay:200})}},3807:(e,t,l)=>{"use strict";l.d(t,{ScrollLock:()=>s});var a=l(1676);let s=()=>{let e=(0,a.useCallback)(e=>{if(e){if("hidden"===document.body.style.overflow)return;let e=document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.marginRight=document.body.offsetWidth-e+"px"}else document.body.style.overflow="",document.body.style.marginRight=""},[]);return(0,a.useEffect)(()=>(window.addEventListener("modal-opened",()=>{e(!0)}),window.addEventListener("modal-closed",()=>{e(!1)}),()=>{window.removeEventListener("modal-opened",()=>{e(!0)}),window.removeEventListener("modal-closed",()=>{e(!1)})}),[e]),null}},6772:(e,t,l)=>{"use strict";l.d(t,{B_:()=>r,MI:()=>s,_Y:()=>n,hy:()=>i});var a=l(1676);let s=(0,a.createContext)({cart:{},isOpen:{},isLoading:{}}),n=(0,a.createContext)({addItem:async(e,t)=>Promise.resolve({}),removeItem:e=>Promise.resolve({}),updateItemQuantity:async e=>{let{lineId:t,variantId:l,quantity:a}=e;return Promise.resolve({})},updateDiscount:async e=>Promise.resolve({}),setIsOpen:e=>{},setIsLoading:e=>{}}),r=()=>(0,a.useContext)(s),i=()=>(0,a.useContext)(n)},6154:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(6896);let s=(0,l(6929).A)("/api/cart");async function n(){return await fetch(s,{cache:"no-store"}).then(async e=>{let t=await e.json();if(null==t||!t.errors)return t})}
1var r=l(4255);let i=(0,r.createServerReference)("7ff08bffd350c33a704f406ec123b0f711dc4a6837",r.callServer,void 0,r.findSourceMapURL,"addItem"),o=(0,r.createServerReference)("7f503b3960c24fe0901ca222294e09ec2f0fa4c76e",r.callServer,void 0,r.findSourceMapURL,"removeItem"),c=(0,r.createServerReference)("7fba9a4b459a63259103425ea6d6abb8baa0fdafa6",r.callServer,void 0,r.findSourceMapURL,"updateItemQuantity"),d=(0,r.createServerReference)("7fa654eb330180dc90db87c4dd7071bd155b8cec16",r.callServer,void 0,r.findSourceMapURL,"updateDiscount");var u=l(5642),x=l(1676),m=l(6772);let h=e=>{let{children:t}=e,[l,s]=(0,x.useState)(!1),[r,h]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),[v,b]=(0,x.useState)(void 0),[j,g]=(0,x.useState)(!1),w=async()=>{let e=await n();e&&b(e)};(0,x.useEffect)(()=>{w()},[]),(0,x.useEffect)(()=>{r&&(h(!1),w(),(0,u.A)(150).then(()=>g(!0)))},[r]),(0,x.useEffect)(()=>{f&&(p(!1),w())},[f]);let y=async(e,t)=>{let l=await i(e,t);if(!l){h(!0);return}return l.message},N=async e=>{let t=await o(e);if((0,u.A)(250).then(()=>s(!1)),!t){p(!0);return}return t.message},k=async e=>{let{lineId:t,variantId:l,quantity:a}=e,n=await c({lineId:t,variantId:l,quantity:a});if((0,u.A)(250).then(()=>s(!1)),!n){w();return}return n.message},C=async e=>{let t=await d({discountCodes:e});if((0,u.A)(250).then(()=>s(!1)),!t){w();return}return t.message},A=(0,x.useMemo)(()=>({addItem:y,removeItem:N,updateItemQuantity:k,updateDiscount:C,setIsOpen:g,setIsLoading:s}),[y,N,k,C,g,s]);return(0,a.jsx)(m.MI.Provider,{value:{cart:v,isOpen:j,isLoading:l},children:(0,a.jsx)(m._Y.Provider,{value:A,children:t})})}},7900:(e,t,l)=>{"use strict";l.d(t,{default:()=>_});var a=l(6896),s=l(3377),n=l(8135),r=l(3370),i=l(5642),o=l(1676),c=l(2818),d=l(403);let u=e=>{let{value:t,isFirst:l,isLast:s,onClick:n}=e;return(0,a.jsxs)("div",{className:(0,d.A)("border-black-30 box-content flex h-[14px] cursor-pointer items-center justify-between px-4 py-5",{"border-t":!l,"border-b":s}),onClick:()=>n(t),children:[(0,a.jsx)("p",{className:"text-black-100 font-robotoBold",children:t}),(0,a.jsx)("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M1 1L8 8L1 15",stroke:"#02050D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})},x=[{title:"Make"},{title:"Year"},{title:"Model"}],m=e=>{let{activeStep:t,onClick:l}=e;return(0,a.jsx)("div",{className:"border-black-30 box-content flex h-4 items-center justify-between gap-x-3 border-b bg-gray-100 p-4",children:x.map((e,s)=>{let n=s+1;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:(0,d.A)("flex items-center gap-x-1",{"cursor-pointer":t>n,"cursor-not-allowed":t<n}),onClick:()=>l(n),children:[(0,a.jsx)("div",{className:(0,d.A)("box-content flex h-4 w-4 items-center justify-center rounded-full border p-[1px]",{"bg-gray-100":t!==n,"bg-black-100":t===n,"border-black-100":t>=n,"border-[#4E5056]":t<n}),children:(0,a.jsx)("div",{className:(0,d.A)("font-robotoRegular text-xs font-semibold !leading-[normal]",{"text-white":t===n,"text-black-100":t>n,"text-[#4E5056]":t<n}),children:n})}),(0,a.jsx)("div",{className:(0,d.A)("font-robotoRegular text-sm font-semibold leading-[normal]",{"text-black-100":t>=n,"text-black-[#4E5056]":t<n}),children:e.title})]}),s<x.length-1&&(0,a.jsx)("div",{className:(0,d.A)("h-[0px] grow border-t",{"border-black-100":t>=n,"border-[#4E5056]":t<n})})]},s)})})},h=["Make","Year","Model"],f=()=>{let e=(0,r.v)().getMakes(),{showFitmentMobile:t}=(0,n.eT)(),{setShowFitmentMobile:l,setFitment:d}=(0,n.Qz)(),{getYears:x,getModels:f}=(0,r.v)(),[p,v]=(0,o.useState)(1),[b,j]=(0,o.useState)(""),[g,w]=(0,o.useState)(""),[y,N]=(0,o.useState)([]),[k,C]=(0,o.useState)(""),[A,L]=(0,o.useState)([]),[S,E]=(0,o.useState)(!1),F=(e,t)=>{switch(e){case 1:t&&(j(""),N([])),w(""),C(""),L([]);break;case 2:t&&(w(""),L([])),C("")}},_=e=>{p<=e||(F(e,!0),v(e))},M=e=>{v(p+1),1===p?j(e):2===p?w(e):3===p&&C(e),F(p)};return((0,o.useEffect)(()=>(window.addEventListener("resize",()=>{window.innerWidth>1024&&l(!1)}),()=>{window.removeEventListener("resize",()=>{window.innerWidth>1024&&l(!1)})}),[l]),(0,o.useEffect)(()=>{t||(v(1),j(""),N([]),w(""),C(""),L([]),E(!1))},[t]),(0,o.useEffect)(()=>{4===p&&(E(!0),d({year:g,make:b,model:k}))}
1,[p,b,k,g,d]),(0,o.useEffect)(()=>{b&&!g&&(E(!0),x(b).then(e=>{(0,i.A)(1e3).then(()=>{N(e),E(!1)})}))},[b,g,x]),(0,o.useEffect)(()=>{g&&!k&&(E(!0),f(b,g).then(e=>{(0,i.A)(1e3).then(()=>{L(e),E(!1)})}))},[b,g,k,f]),t)?(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-opacity-50"}),(0,a.jsxs)("div",{className:"scrollbar-hide fixed bottom-0 left-0 top-0 z-[100] flex min-h-screen w-full flex-col overflow-y-scroll bg-white pb-28",children:[(0,a.jsxs)("div",{className:"border-black-30 sticky top-0 border-b",children:[(0,a.jsxs)("div",{className:"relative flex min-h-[60px] items-center justify-center bg-yellow-100",children:[(0,a.jsxs)("button",{className:"absolute left-0 flex cursor-pointer items-center gap-x-[5px] pl-4",onClick:()=>{1===p?l(!1):(F(p-1,!0),v(p-1))},children:[(0,a.jsx)(c.A,{size:"medium",fill:"#02050d"}),(0,a.jsx)("span",{className:"font-rajdhani uppercase leading-[normal]",children:"Back"})]}),(0,a.jsx)("div",{className:"flex items-center gap-x-1",children:(0,a.jsxs)("h6",{className:"font-rajdhani text-xl",children:["Select ",h[p-1]]})})]}),(0,a.jsx)(m,{activeStep:p,onClick:e=>_(e)})]}),!S&&(0,a.jsxs)("div",{className:"flex flex-col justify-center",children:[1===p?e.map((t,l)=>(0,a.jsx)(u,{value:t,onClick:M,isFirst:0===l,isLast:l===e.length-1},l)):null,2===p?y.map((e,t)=>(0,a.jsx)(u,{value:e,onClick:M,isFirst:0===t,isLast:t===y.length-1},t)):null,3===p?A.map((e,t)=>(0,a.jsx)(u,{value:e,onClick:M,isFirst:0===t,isLast:t===A.length-1},t)):null]}),S&&(0,a.jsx)(s.A,{color:"#02050D"})]})]}):null};var p=l(8179),v=l(8189),b=l(7069);let j=()=>{let e=(0,v.usePathname)(),t=(0,p.rd)(),l=(0,n.eT)(),{setShowFitmentModal:s}=(0,n.Qz)(),[r,c]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{c(!0)},[]),r&&!l.showFitmentModal&&window.dispatchEvent(new Event("modal-closed")),l.showFitmentModal)?(r&&window.dispatchEvent(new Event("modal-opened")),(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black-100 bg-opacity-50",children:[(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-[55]",onClick:()=>s(!1)}),(0,a.jsx)("div",{className:"z-[60] flex flex-col max-lg:h-full max-lg:w-full max-lg:items-center max-lg:justify-center",children:(0,a.jsx)(b.A,{onContinue:()=>{s(!1),(0,i.A)(100).then(()=>{l&&l.fitment&&l.fitment.slug!==e&&t.push(l.fitment.slug)})},isModal:!0})})]})):null};var g=function(e){return e.FITMENT_ANIMATE_START="fitment_animate_start",e.FITMENT_ANIMATE_END="fitment_animate_end",e.FITMENT_SAVED="fitment_saved",e}({});let w=()=>{let e=(0,p.rd)();return(0,o.useEffect)(()=>(window.addEventListener(g.FITMENT_SAVED,t=>{let l=t.detail;l&&(0,i.A)(1500).then(()=>{e.push(l)})}),()=>window.removeEventListener(g.FITMENT_SAVED,t=>{let l=t.detail;l&&(0,i.A)(1500).then(()=>{e.push(l)})})),[e]),null};var y=l(3632);function N(e){let{onClick:t}=e,[l,s]=(0,o.useState)(!1),n=(0,v.usePathname)(),[r,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,i.A)(2500).then(()=>{s(!1),c(!1)})},[n]),(0,o.useEffect)(()=>{r&&(0,i.A)(7500).then(()=>{s(!1),c(!1)})},[r]),(0,o.useEffect)(()=>(window.addEventListener(g.FITMENT_SAVED,()=>{(0,i.A)(350).then(()=>{s(!0),c(!0)})}),()=>window.removeEventListener(g.FITMENT_SAVED,()=>{(0,i.A)(350).then(()=>{s(!0),c(!0)})})),[]),l&&(0,a.jsx)("div",{className:"bg-black-100 fixed inset-0 z-[100] overflow-y-auto bg-opacity-50","aria-labelledby":"vehicle-matching-modal",role:"dialog","aria-modal":"true",onClick:t,children:(0,a.jsx)("div",{id:"vehicle-matching-modal",className:"flex min-h-screen flex-col justify-center text-center",children:(0,a.jsxs)("div",{className:"mx-auto flex min-h-screen min-w-full flex-col items-center justify-center gap-y-6 bg-white md:gap-y-10",children:[(0,a.jsx)(y.default,{src:"/images/logo.svg",width:339,height:45,alt:"",className:"max-md:w-[256px]"}),(0,a.jsx)("span",{className:"sr-only",children:"Finding covers that fit your vehicle..."}),(0,a.jsxs)("h2",{className:"font-robotoRegular text-black-100 h-[35px] md:h-[14px] md:text-xl",children:["Finding covers that ",(0,a.jsx)("br",{className:"inline md:hidden"})," fit your vehicle..."]}),(0,a.jsx)("span",{className:"flex justify-center",children:(0,a.jsx)("span",{className:"inline-flex rounded-md",children:(0,a.jsxs)("svg",{"aria-hidden":"true",className:"text-brand-successAccent my-6 h-8 w-8 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})})})]})})})}var k=l(5351);let C=e=>{let{heading:t,children:l,label:s,useOverlay:n=!0,onClose:r=()=>{}}=e;return(0,a.jsx)("div",{className:(0,d.A)("fixed inset-0 z-[85] overflow-y-auto bg-opacity-50",{"bg-black-100/70":n}),"aria-labelledby":s,role:"dialog","aria-modal":"true",children:(0,a.jsx)("div",{className:(0,d.A)("scrollbar-hide fixed bottom-0 left-0 right-0 top-0 z-50 flex flex-col justify-center overflow-y-scroll"),id:s,children:(0,a.jsx)("div",{className:"shadow-card mx-auto min-w-[280px] rounded-md bg-white p-2",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"border-b-brand-darkGray font-robotoBold relative box-content flex min-h-[32px] flex-row items-center justify-between gap-2 border-b py-2",children:[(0,a.jsx)("div",{children:t}),(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("button",{onClick:r,className:"text-brand-primary border-brand-darkGray rounded-full border-2 p-1 text-xs font-bold hover:opacity-50","aria-label":"Close modal",children:(0,a.jsx)(k.Qks,{className:"h-6 w-6",fill:"#444"})})})]}),(0,a.jsx)("div",{className:"font-robotoRegular my-3 flex flex-row gap-4 py-2",children:l})]}):(0,a.jsxs)("div",{className:"relative box-content flex min-h-[32px] flex-row items-center justify-end gap-2 py-2 text-black",children:[(0,a.jsx)("div",{className:"font-robotoRegular my-3 mr-8 flex flex-row gap-4 py-2",children:l}),(0,a.jsx)("div",{className:"absolute right-0 top-0",children:(0,a.jsx)("button",{onClick:r,className:"text-brand-primary border-brand-darkGray rounded-full border-2 p-1 text-xs font-bold hover:opacity-50",children:(0,a.jsx)(k.Qks,{className:"h-6 w-6",fill:"#444"})})})]})})})})},A=()=>{let{showFitmentValidationWarning:e}=(0,n.eT)(),{setShowFitmentValidationWarning:t}=(0,n.Qz)();return e?(0,a.jsx)(C,{onClose:()=>t(!1),label:"Warning",useOverlay:!0,children:(0,a.jsx)("div",{className:"px-4 font-robotoBold",children:"Please select the Make, Year and Model of your vehicle to continue."})}):null};var L=l(8437),S=l(2058);let E="sc_fitment",F=()=>
1{if((0,S.hasCookie)(E))return JSON.parse((0,S.getCookie)(E))},_=e=>{let{children:t}=e,[l,s]=(0,o.useState)(F()),[r,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[x,m]=(0,o.useState)(!1),[h,p]=(0,o.useState)(!1),[v,b]=(0,o.useState)(!1),[y,k]=(0,o.useState)(!1),C=(0,o.useCallback)(()=>{k(!1),m(!1),u(!1),p(!1),c(!1)},[]),_=(0,o.useCallback)(async e=>{var t;let l=!v;window.dispatchEvent(new CustomEvent(l?g.FITMENT_SAVED:g.FITMENT_ANIMATE_START,{detail:"/collections/seat-covers"}));let a=await (0,L.sK)(e.make,e.model,e.year);if(l||(u(!1),b(!1),(0,i.A)(500).then(()=>{c(!1)})),!a)return;k(!0);let n=null!==(t=a.generations.flatMap(e=>{var t;return null!==(t=e.products)&&void 0!==t?t:[]}).map(e=>{var t;return null!==(t=e.slug)&&void 0!==t?t:""}))&&void 0!==t?t:[];(0,i.A)(1500).then(()=>{let t={...e,slug:"/collections/seat-covers",productUrls:n};s(t),(0,S.setCookie)(E,JSON.stringify(t)),C()})},[v]),M=(0,o.useCallback)(()=>{k(!0),(0,i.A)(500).then(()=>{s(void 0),(0,S.deleteCookie)(E),k(!1)})},[]),T=(0,o.useMemo)(()=>(0,S.hasCookie)(E)&&void 0!==l,[l]),P=(0,o.useCallback)(e=>{var t;return!!l&&!!T&&!!l.productUrls&&0!==l.productUrls.length&&null!==(t=l.productUrls.includes(e))&&void 0!==t&&t},[l,T]),R=(0,o.useCallback)(()=>l?l.year+" "+l.make+" "+l.model:"",[l]),I=(0,o.useCallback)(e=>{u(e),e||m(!1)},[]),V=(0,o.useMemo)(()=>({remove:M,setIsEditingFitment:m,setFitment:_,setShowFitmentMobile:c,setShowFitmentModal:I,setSkipRedirect:b,setShowFitmentValidationWarning:p}),[_,M,I,c,m,p,b]);return(0,a.jsx)(n.TA.Provider,{value:{getSkipRedirect:v,isEditing:x,fitment:l,isLoading:y,isProductMatch:P,isFitmentValid:T,showFitmentModal:d,showFitmentMobile:r,showFitmentValidationWarning:h,vehicleName:R()},children:(0,a.jsxs)(n.nU.Provider,{value:V,children:[(0,a.jsx)(f,{}),(0,a.jsx)(w,{}),(0,a.jsx)(A,{}),(0,a.jsx)(N,{}),(0,a.jsx)(j,{}),t]})})}},6954:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(6896),s=l(8437),n=l(1676),r=l(3370);let i=e=>{let{makes:t,children:l}=e,i=(0,n.useCallback)(e=>(0,s.b0)(e),[]),o=(0,n.useCallback)((e,t)=>(0,s.zr)(e,t),[]);return(0,a.jsx)(r.U.Provider,{value:{getMakes:()=>t,getYears:i,getModels:o},children:l})}},8437:(e,t,l)=>{"use strict";l.d(t,{sK:()=>o,zr:()=>i,b0:()=>r});var a=l(6929);let s="model",n="/api/fitment",r=async e=>{let t=(0,a.A)("".concat(n,"/year/").concat(e)),l="".concat(s);return await fetch(t,{next:{revalidate:604800,tags:[l]}}).then(async e=>{let t=await e.json();return(null==t?void 0:t.errors)?[]:t})},i=async(e,t)=>{let l=(0,a.A)("".concat(n,"/model/").concat(e,"/").concat(t)),r="".concat(s);return await fetch(l,{next:{revalidate:604800,tags:[r]}}).then(async e=>{let t=await e.json();return(null==t?void 0:t.errors)?[]:t})},o=async(e,t,l)=>{let r=(0,a.A)("".concat(n,"/vehicle/").concat(e,"/").concat(t,"/").concat(l)),i="".concat("make","-").concat(s);return await fetch(r,{next:{revalidate:604800,tags:[i]}}).then(async e=>{let t=await e.json();return(null==t?void 0:t.errors)?{}:t})}},8558:(e,t,l)=>{"use strict";l.d(t,{E6:()=>a,ZA:()=>s});let a="Default Title",s="_costOverride"},6929:(e,t,l)=>{"use strict";function a(e){return new URL(e,window.location.origin).toString()}l.d(t,{A:()=>a})},7898:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[526,961,181,176,296,343,632,282,179,567,671,70,310,161,551,358],()=>t(2173)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.