PageSourceSearch

https://anthemav.com/_next/static/chunks/7426-f135abb6e162041d.js

js anthemav.com collected 2026-10-03 21:23:36 UTC 70,046 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7426],{6895:(e,a,r)=>{r.d(a,{ReviewForm:()=>E});var l=r(11650),t=r(36273),s=r(44856),n=r(70074),i=r(92511),o=r(16759),d=r(78410),c=r(439),u=r(3415),m=r(17272),x=r(24617),h=r(18788),f=r(50633),v=r(36624),p=r(57639),g=r(49218);let b=d.forwardRef((e,a)=>{var r,t;let{label:s,max:n=5,errors:i,className:o,onOptionMouseEnter:c,onOptionMouseLeave:u,colorScheme:m="light",required:x,...b}=e,j=d.useId(),[N,w]=d.useState(null),y=d.useRef(!1),k=null!=(t=null==(r=b.value)?void 0:r.toString())?t:"0",C=parseInt(null!=N?N:k,10)||0,L=()=>{y.current||w(null)};return(0,l.jsxs)("div",{className:(0,f.$)("rating-radio-group space-y-2",o),children:[(0,l.jsx)(p.J,{colorScheme:m,id:j,required:x,children:s}),(0,l.jsx)(h.bL,{...b,"aria-labelledby":j,className:"flex items-center gap-1",onMouseDown:()=>{y.current=!0},onMouseLeave:()=>{w(null),null==u||u()},onMouseUp:()=>{y.current=!1},ref:a,required:x,children:(0,l.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:n},(e,a)=>{let r=a+1,t=C>=r,s=r.toString(),n="".concat(j,"-").concat(r);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(h.q7,{className:(0,f.$)("peer sr-only","transition-colors focus-visible:outline-0 focus-visible:ring-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{light:"focus-visible:ring-[var(--rating-radio-group-focus,hsl(var(--primary)))]",dark:"focus-visible:ring-[var(--rating-radio-group-focus,hsl(var(--primary)))]"}[m]),id:n,onBlur:L,value:s}),(0,l.jsx)("label",{"aria-label":"".concat(r," ").concat(1===r?"star":"stars"),className:"flex shrink-0 cursor-pointer rounded-full transition-colors focus-visible:outline-0 focus-visible:ring-2 peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--rating-radio-group-focus,hsl(var(--primary)))]",htmlFor:n,onMouseEnter:()=>{w(s),null==c||c(s)},children:(0,l.jsx)(g.F,{type:t?"full":"empty"})})]},r)})})}),null==i?void 0:i.map(e=>(0,l.jsx)(v.b,{children:e},e))]})});b.displayName="RatingRadioGroup";var j=r(35039),N=r(35263),w=r(39357),y=r(42818),k=r(49376),C=r(14703),L=r(98096),S=r(58628);let R=S.Ik({productEntityId:S.ai(),title:S.Yj().min(1),author:S.Yj().min(1),email:S.Yj().email(),text:S.Yj().min(1),rating:S.ai().min(1).max(5)}),E=e=>{var a;let{productId:r,action:c,trigger:h,formModalTitle:f="Write a review",formSubmitLabel:v="Submit",formCancelLabel:p="Cancel",formRatingLabel:g="Rating",formTitleLabel:S="Title",formReviewLabel:E="Review",formNameLabel:I="Name",formEmailLabel:T="Email",streamableProduct:z,streamableImages:q,streamableUser:A,recaptchaSiteKey:M}=e,F=(e=>({title:{invalid_type:e("FieldErrors.titleRequired")},author:{invalid_type:e("FieldErrors.authorRequired")},email:{invalid_type:e("FieldErrors.emailRequired"),invalid_string:e("FieldErrors.emailInvalid")},text:{invalid_type:e("FieldErrors.textRequired")},rating:{invalid_type:e("FieldErrors.ratingRequired"),too_small:e("FieldErrors.ratingTooSmall"),too_big:e("FieldErrors.ratingTooLarge")}}))((0,o.useTranslations)("Product.Reviews.Form")),[_,D]=(0,d.useState)(!1),[{lastResult:P,successMessage:V},B]=(0,d.useActionState)(c,{lastResult:null}),O=(0,d.useRef)(null),Z=(0,N.aI)(A),[W,Y]=(0,t.mN)({lastResult:P,constraint:(0,i.z)(R),shouldValidate:"onSubmit",shouldRevalidate:"onInput",defaultValue:{email:Z.email,author:Z.name},onValidate(e){let{formData:a}=e;var r,l=R,t=F;let s=(r=t,e=>{var a,l;let t=e.path[0],s=null==r||null==(a=r["string"==typeof t?t:""])?void 0:a[e.code];return{message:null!=(l=null!=s?s:e.message)?l:"Invalid input"}});return(0,L.L)(a,{schema:l,errorMap:s})},onSubmit(e,a){let{formData:r}=a;e.preventDefault(),(0,d.startTransition)(()=>{B(r)})}}),U=(0,s.RA)(Y.rating),G=(0,s.RA)(Y.title),J=(0,s.RA)(Y.text),H=(0,s.RA)(Y.author),Q=(0,s.RA)(Y.email),K=""!==Z.email,X=""!==Z.name;return(0,d.useEffect)(()=>{if((null==P?void 0:P.status)==="success"&&V){var e;k.o.success(V),D(!1),null==(e=O.current)||e.reset()}},[P,V]),(0,l.jsx)(y.a,{className:"w-full md:min-w-[768px]",isOpen:_,setOpen:D,title:f,trigger:h,children:(0,l.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:gap-8",children:[(0,l.jsx)("div",{className:"shrink-0 md:w-48",children:(0,l.jsx)(N.Z6,{fallback:(0,l.jsxs)("div",{className:"animate-pulse",children:[(0,l.jsx)("div",{className:"mb-4 aspect-square w-full max-w-[200px] rounded-md bg-contrast-100 md:max-w-none"}),(0,l.jsx)("div",{className:"h-6 w-32 rounded-md bg-contrast-100"})]}),value:N.RE.all([z,q]),children:e=>{var a;let[r,t]=e,s=(Array.isArray(t)?t:null!=(a=null==t?void 0:t.images)?a:[])[0];return(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)("div",{className:"relative mb-4 aspect-square w-full max-w-[200px] overflow-hidden rounded-md md:w-full md:max-w-none",children:(0,l.jsx)(C.Image,{alt:s.alt,className:"object-cover",fill:!0,sizes:"(min-width: 768px) 192px, 200px",src:s.src})}),(0,l.jsx)("h3",{className:"text-lg font-semibold font-heading text-center",children:r.name})]})}})}),(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsxs)("form",{...(0,n.NE)(W),action:B,className:"flex w-full flex-col gap-5",ref:O,children:[(0,l.jsx)("input",{name:"productEntityId",type:"hidden",value:r}),(0,l.jsx)(b,{errors:Y.rating.errors,label:g,max:5,name:Y.rating.name,onBlur:U.blur,onFocus:U.focus,onValueChange:U.change,required:Y.rating.required,value:"string"==typeof U.value?U.value:""}),(0,l.jsx)(x.p,{errors:Y.title.errors,label:S,name:Y.title.name,onBlur:G.blur,onChange:e=>G.change(e.currentTarget.value),onFocus:G.focus,required:Y.title.required,type:"text",value:"string"==typeof G.value?G.value:""}),(0,l.jsx)(j.T,{errors:Y.text.errors,label:E,name:Y.text.name,onBlur:J.blur,onChange:e=>J.change(e.currentTarget.value),onFocus:J.focus,required:Y.text.required,value:"string"==typeof J.value?J.value:""}),(0,l.jsx)(x.p,{errors:Y.author.errors,label:I,name:Y.author.name,onBlur:H.blur,onChange:e=>H.change(e.currentTarget.value),onFocus:H.focus,readOnly:X,required:Y.author.required,type:"text",value:X?Z.name:"string"==typeof H.value?H.value:""}),(0,l.jsx)(x.p,{errors:Y.email.errors,label:T,name:Y.email.name,onBlur:Q.blur,onChange:e=>Q.change(e.currentTarget.value),onFocus:Q.focus,readOnly:K,required:Y.email.required,type:"email",value:"string"==typeof Q.value?Q.value:""}),M?(0,l.jsx)(u.A,{sitekey:M}):null,null==(a=W.errors)?void 0:a.map((e,a)=>(0,l.jsx)(m.H,{type:"error",children:e},a)),(0,l.jsxs)("div",{className:"mt-auto flex justify-end gap-3",children:[(0,l.jsx)(w.$,{onClick:()=>D(!1),size:"small",type:"button",variant:"ghost",children:p}),(0,l.jsx)($,{children:v})]})]})})]})})};function $(e){let{children:a}=e,{pending:r}=(0,c.useFormStatus)();return(0,l.jsx)(w.$,{loading:r,size:"small",type:"submit",variant:"secondary",children:a})}},24617:(e,a,r)=>{r.d(a,{p:()=>o});var l=r(11650),t=r(50633),s=r(78410),n=r(36624),i=r(57639);let o=s.forwardRef((e,a)=>{let{prepend:r,append:o,label:d,className:c,required:u,errors:m,colorScheme:x="light",id:h,...f}=e,v=s.useId();return(0,l.jsxs)("div",{className:(0,t.$)("w-full space-y-2",c),children:[null!=d&&""!==d&&(0,l.jsx)(i.J,{colorScheme:x,htmlFor:null!=h?h:v,children:d}),(0,l.jsxs)("div",{className:(0,t.$)("relative overflow-hidden rounded-lg border transition-colors duration-200 focus:outline-none",{light:"border-[var(--input-light-border,hsl(var(--contrast-300)))] bg-[var(--input-light-background,hsl(var(--background)))] focus-within:border-[var(--input-light-focus,hsl(var(--foreground)))]",dark:"border-[var(--input-dark-border,hsl(var(--contrast-500)))] bg-[var(--input-dark-background,hsl(var(--foreground)))] focus-within:border-[var(--input-dark-focus,hsl(var(--background)))]"}[x]),children:[null!=r&&""!==r&&(0,l.jsx)("span",{className:"pointer-events-none absolute left-3.5 to
1p-1/2 -translate-y-1/2",children:r}),null!=o&&""!==o&&(0,l.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:o}),(0,l.jsx)("input",{...f,className:(0,t.$)("w-full px-6 py-3 text-sm [appearance:textfield] placeholder:font-normal focus:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{light:"bg-[var(--input-light-background,hsl(var(--background)))] text-[var(--input-light-text,hsl(var(--foreground)))] placeholder:text-[var(--input-light-placeholder,hsl(var(--contrast-300)))]",dark:"bg-[var(--input-dark-background,hsl(var(--foreground)))] text-[var(--input-dark-text,hsl(var(--background)))] placeholder:text-[var(--input-dark-placeholder,hsl(var(--contrast-100)))]"}[x],{"py-2.5 pe-4 ps-12":r},{"pe-16":o}),id:null!=h?h:v,ref:a})]}),null==m?void 0:m.map(e=>(0,l.jsx)(n.b,{children:e},e))]})});o.displayName="Input"},27879:(e,a,r)=>{r.d(a,{f:()=>l});let l=new(r(52963)).E({breakpoints:{small:{width:640,viewport:390,label:"Small"},medium:{width:768,viewport:765,label:"Medium"},large:{width:1024,viewport:1e3,label:"Large"},screen:{width:1280,label:"XL"}}})},35039:(e,a,r)=>{r.d(a,{T:()=>o});var l=r(11650),t=r(50633),s=r(78410),n=r(36624),i=r(57639);let o=s.forwardRef((e,a)=>{let{label:r,className:o,required:d,errors:c,...u}=e,m=s.useId();return(0,l.jsxs)("div",{className:(0,t.$)("space-y-2",o),children:[null!=r&&""!==r&&(0,l.jsx)(i.J,{htmlFor:m,children:r}),(0,l.jsx)("textarea",{...u,className:(0,t.$)("placeholder-contrast-300 w-full rounded-lg border bg-background p-3 text-foreground transition-colors duration-200 placeholder:font-normal focus:border-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 text-sm",c&&c.length>0?"border-error":"border-contrast-300"),id:m,ref:a}),null==c?void 0:c.map(e=>(0,l.jsx)(n.b,{children:e},e))]})});o.displayName="Textarea"},41459:(e,a,r)=>{r.d(a,{$:()=>c});var l=r(11650),t=r(18788),s=r(50633),n=r(78410),i=r(36624),o=r(57639),d=r(14703);let c=n.forwardRef((e,a)=>{let{label:r,options:c,errors:u,className:m,onOptionMouseEnter:x,...h}=e,f=n.useId();return(0,l.jsxs)("div",{className:(0,s.$)("space-y-2",m),children:[void 0!==r&&""!==r&&(0,l.jsx)(o.J,{id:f,children:r}),(0,l.jsx)(t.bL,{...h,"aria-labelledby":f,className:"space-y-2",ref:a,children:c.map(e=>(0,l.jsxs)(t.q7,{"aria-label":e.label,className:(0,s.$)("relative flex h-12 w-full items-center overflow-hidden rounded-lg border border-contrast-100 font-body text-sm font-normal leading-normal ring-primary transition-colors focus-visible:outline-0 focus-visible:ring-2 data-[disabled]:pointer-events-none data-[state=checked]:bg-foreground data-[state=unchecked]:bg-background data-[state=checked]:text-background data-[disabled]:opacity-50 data-[disabled]:hover:border-transparent data-[state=unchecked]:hover:border-contrast-200 data-[state=unchecked]:hover:bg-contrast-100",u&&u.length>0?"disabled:border-error/50 data-[state=unchecked]:border-error":"data-[state=checked]:border-foreground"),disabled:e.disabled,id:e.value,onMouseEnter:()=>{null==x||x(e.value)},value:e.value,children:[(0,l.jsx)("div",{className:"relative aspect-square h-full",children:(0,l.jsx)(d.Image,{alt:e.image.alt,className:"bg-background object-fill",fill:!0,sizes:"3rem",src:e.image.src})}),(0,l.jsx)("span",{className:"flex-1 truncate text-ellipsis px-4 text-left",children:e.label})]},e.value))}),null==u?void 0:u.map(e=>(0,l.jsx)(i.b,{children:e},e))]})});c.displayName="CardRadioGroup"},42818:(e,a,r)=>{r.d(a,{a:()=>o});var l=r(11650),t=r(36649),s=r(50633),n=r(55424),i=r(39357);let o=e=>{let{className:a="",isOpen:r,setOpen:o,title:d,trigger:c,children:u,required:m=!1,hideHeader:x=!1}=e;return(0,l.jsxs)(t.bL,{onOpenChange:o,open:r,children:[null!=c&&(0,l.jsx)(t.l9,{asChild:!0,children:c}),(0,l.jsx)(t.ZL,{children:(0,l.jsx)(t.hJ,{className:"fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,hsl(var(--foreground)/50%))] @container",children:(0,l.jsx)(t.UC,{className:(0,s.$)("mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-2xl bg-[var(--modal-background,hsl(var(--background)))]","transition ease-out","data-[state=closed]:duration-200 data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out","focus:outline-none data-[state=closed]:slide-out-to-bottom-16 data-[state=open]:slide-in-from-bottom-16",a),onEscapeKeyDown:m?e=>e.preventDefault():void 0,onInteractOutside:m?e=>e.preventDefault():void 0,onPointerDownOutside:m?e=>e.preventDefault():void 0,children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:(0,s.$)("flex min-h-10 flex-row items-center py-3 pl-5",x?"sr-only":""),children:[(0,l.jsx)(t.hE,{asChild:!0,children:(0,l.jsx)("h1",{className:"flex-1 pr-4 text-base font-semibold leading-none",children:d})}),!(m||x)&&(0,l.jsx)("div",{className:"flex items-center justify-center pr-3",children:(0,l.jsx)(t.bm,{asChild:!0,children:(0,l.jsx)(i.$,{shape:"circle",size:"x-small",variant:"ghost",children:(0,l.jsx)(n.A,{size:20})})})})]}),(0,l.jsx)("div",{className:(0,s.$)("mb-5 flex-1 px-5",x?"mt-5":""),children:u})]})})})})]})}},45413:(e,a,r)=>{r.d(a,{Q:()=>c});var l=r(11650),t=r(50633),s=r(400),n=r(12088),i=r(78410),o=r(36624),d=r(57639);let c=i.forwardRef((e,a)=>{let{label:r,className:c,required:u,errors:m,decrementLabel:x,incrementLabel:h,disabled:f=!1,...v}=e,p=i.useId();return(0,l.jsxs)("div",{className:(0,t.$)("space-y-2",c),children:[null!=r&&""!==r&&(0,l.jsx)(d.J,{htmlFor:p,children:r}),(0,l.jsxs)("div",{className:"inline-flex items-center rounded-lg border",children:[(0,l.jsx)("button",{"aria-label":x,className:(0,t.$)("group rounded-l-lg p-3.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",!f&&"hover:bg-contrast-100/50",f&&"curs
1or-not-allowed opacity-30"),disabled:f,onClick:e=>{var a;e.preventDefault();let r=null==(a=e.currentTarget.parentElement)?void 0:a.querySelector("input");null==r||r.stepDown(),null==r||r.dispatchEvent(new InputEvent("change",{bubbles:!0,cancelable:!0}))},children:(0,l.jsx)(s.A,{className:(0,t.$)("text-contrast-300 transition-colors duration-300",!f&&"group-hover:text-foreground"),size:18,strokeWidth:1.5})}),(0,l.jsx)("input",{...v,className:(0,t.$)("w-8 flex-1 select-none justify-center text-center [appearance:textfield] focus-visible:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",f&&"cursor-not-allowed opacity-30"),disabled:f,id:p,ref:a,type:"number"}),(0,l.jsx)("button",{"aria-label":h,className:(0,t.$)("group rounded-r-lg p-3.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",!f&&"hover:bg-contrast-100/50",f&&"cursor-not-allowed opacity-30"),disabled:f,onClick:e=>{var a;e.preventDefault();let r=null==(a=e.currentTarget.parentElement)?void 0:a.querySelector("input");if(r){let e=Number(r.value)||0,a=r.max?Number(r.max):void 0;(void 0===a||e<a)&&(r.stepUp(),r.dispatchEvent(new InputEvent("change",{bubbles:!0,cancelable:!0})))}},children:(0,l.jsx)(n.A,{className:(0,t.$)("text-contrast-300 transition-colors duration-300",!f&&"group-hover:text-foreground"),size:18,strokeWidth:1.5})})]}),null==m?void 0:m.map(e=>(0,l.jsx)(o.b,{children:e},e))]})});c.displayName="NumberInput"},49218:(e,a,r)=>{r.d(a,{F:()=>s,G:()=>n});var l=r(11650),t=r(50633);let s=e=>{let{type:a}=e,r={empty:(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:(0,l.jsx)("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return(0,l.jsx)("svg",{className:"inline-block text-foreground",fill:"none",height:20,viewBox:"0 0 20 20",width:20,children:r[a]})},n=function(e){let{showRating:a=!0,rating:r,numberOfReviews:n,showNumberOfReviews:i=!0,className:o}=e,d=Math.min(r,5),c=Array.from({length:5},(e,a)=>a<Math.floor(d)?"full":a<Math.ceil(d)?"half":"empty");return(0,l.jsxs)("div",{className:(0,t.$)("flex items-center",o),children:[c.map((e,a)=>(0,l.jsx)(s,{type:e},a)),a&&(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"ml-2 flex h-6 shrink-0 items-center justify-center text-xs font-semibold text-foreground bg-gray-100 border-gray-300 border rounded-full px-2",children:d%1!=0?d.toFixed(1):d}),i&&null!=n&&(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"mx-1 h-4 w-px bg-contrast-200"}),(0,l.jsxs)("span",{className:"text-xs text-contrast-500",children:[n," ",1===n?"review":"reviews"]})]})]})]})}},49376:(e,a,r)=>{r.d(a,{l:()=>d,o:()=>c});var l=r(11650),t=r(45475),s=r(50633),n=r(55424),i=r(39357);function o(e){let{variant:a,message:r,description:t,action:o,dismissLabel:d="Dismiss",onDismiss:c}=e;return(0,l.jsxs)("div",{className:(0,s.$)("flex min-w-[284px] max-w-[356px] items-center justify-between gap-2 rounded-xl border border-foreground
1/10 py-3 pe-3 ps-4 shadow-sm ring-foreground group-focus-visible:outline-none group-focus-visible:ring-2",{success:"bg-success-highlight",warning:"bg-warning-highlight",error:"bg-error-highlight",info:"bg-background"}[a]),role:"alert",children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("span",{className:"text-sm font-normal text-foreground",children:r}),!!t&&(0,l.jsx)("span",{className:"text-xs font-medium text-contrast-400",children:t})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[o&&(0,l.jsx)(i.$,{onClick:o.onClick,size:"x-small",variant:"ghost",children:o.label}),(0,l.jsx)(i.$,{"aria-label":d,onClick:c,shape:"circle",size:"x-small",variant:"ghost",children:(0,l.jsx)(n.A,{size:20,strokeWidth:1})})]})]})}let d=e=>{let{...a}=e;return(0,l.jsx)(t.l$,{toastOptions:{unstyled:!0,classNames:{toast:"group focus-visible:ring-0 right-0"}},...a})},c={success:(e,a)=>{let r=null==a?void 0:a.position,s=(0,t.oR)((0,l.jsx)(o,{message:e,onDismiss:()=>t.oR.dismiss(s),variant:"success",...a}),{position:r})},error:(e,a)=>{let r=null==a?void 0:a.position,s=(0,t.oR)((0,l.jsx)(o,{message:e,onDismiss:()=>t.oR.dismiss(s),variant:"error",...a}),{position:r})},warning:(e,a)=>{let r=null==a?void 0:a.position,s=(0,t.oR)((0,l.jsx)(o,{message:e,onDismiss:()=>t.oR.dismiss(s),variant:"warning",...a}),{position:r})},info:(e,a)=>{let r=null==a?void 0:a.position,s=(0,t.oR)((0,l.jsx)(o,{message:e,onDismiss:()=>t.oR.dismiss(s),variant:"info",...a}),{position:r})}}},52693:(e,a,r)=>{r.d(a,{l:()=>u});var l=r(11650),t=r(34506),s=r(50633),n=r(92602),i=r(24551),o=r(78410),d=r(36624),c=r(57639);function u(e){let{label:a,hideLabel:r=!1,name:u,pending:m=!1,placeholder:x="Select an item",variant:h="rectangle",options:f,className:v,errors:p,onFocus:g,onBlur:b,onOptionMouseEnter:j,value:N,...w}=e,y=o.useId();return(0,l.jsxs)("div",{className:(0,s.$)("w-full space-y-2",v),children:[void 0!==a&&""!==a&&(0,l.jsx)(c.J,{className:(0,s.$)(r&&"sr-only","mb-2"),htmlFor:y,children:a}),(0,l.jsxs)(t.bL,{...w,value:N,children:[(0,l.jsxs)(t.l9,{"aria-label":a,className:(0,s.$)("flex h-fit w-full select-none items-center justify-between gap-3 border bg-white p-2 px-5 py-3 text-sm font-normal text-foreground ring-anthemRed transition-colors hover:border-contrast-300 hover:bg-contrast-100 focus-visible:outline-none focus-visible:ring-2 data-[placeholder]:text-contrast-300","rectangle"===h?"rounded-lg":"rounded-full",p&&p.length>0?"border-error":"border-contrast-300"),"data-pending":!!m||null,id:y,name:u,onBlur:b,onFocus:g,children:[(0,l.jsx)(t.WT,{placeholder:x}),(0,l.jsx)(t.In,{asChild:!0,children:(0,l.jsx)(n.A,{className:"w-5 text-foreground transition-transform",strokeWidth:1.5})})]}),(0,l.jsx)(t.ZL,{children:(0,l.jsxs)(t.UC,{className:"z-50 max-h-80 w-full overflow-y-scroll rounded-xl bg-background p-2 shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 @4xl:rounded-3xl @4xl:p-4",children:[(0,l.jsx)(t.PP,{className:"flex w-full cursor-default items-center justify-center py-3",children:(0,l.jsx)(i.A,{className:"w-5 text-foreground",strokeWidth:1.5})}),(0,l.jsx)(t.LM,{children:f.map(e=>(0,l.jsx)(t.q7,{className:"w-full cursor-default select-none rounded-xl px-3 py-2 text-sm font-medium text-contrast-400 outline-none transition-colors hover:bg-contrast-100 hover:text-foreground focus-visible:bg-contrast-100 focus-visible:text-foreground data-[state=checked]:text-foreground @4xl:text-base",onMouseEnter:()=>{null==j||j(e.value)},value:e.value,children:(0,l.jsx)(t.p4,{children:e.label})},e.value))}),(0,l.jsx)(t.wn,{className:"flex w-full cursor-default items-center justify-center py-3",children:(0,l.jsx)(n.A,{className:"w-5 text-foreground",strokeWidth:1.5})})]})})]}),null==p?void 0:p.map(e=>(0,l.jsx)(d.b,{children:e},e))]})}},53441:(e,a,r)=>{r.d(a,{ProductCardSkeleton:()=>f,ProductCardV1:()=>h});var l=r(11650),t=r(50633),s=r(27884),n=r(19791),i=r(39357),o=r(47380),d=r(14703),c=r(63387),u=r(17748),m=r(75042),x=r(51823);function h(e){var a;let{product:r,className:o,colorScheme:h="light",showCompare:f=!0,compareLabel:v,compareParamName:p,imagePriority:g=!1,imageSizes:b="(min-width: 80rem) 20vw, (min-width: 64rem) 25vw, (min-width: 42rem) 33vw, (min-width: 24rem) 50vw, 100vw"}=e,{id:j,title:N,image:w,href:y,condition:k,price:C,categories:L,series:S,customFields:R,bgImage:E,isFeatured:$,availabilityStatus:I}=r,T=(0,m.cj)(),z=C&&"object"==typeof C&&"type"in C&&"sale"===C.type&&C.currentValue;return(0,l.jsxs)("div",{className:(0,t.$)("relative rounded-2xl shadow-md p-5 md:p-8 bg-cover bg-center flex flex-col",o,!E&&"border border-gray-200 bg-gradient-to-r from-gray-200 to-gray-400"),style:{backgroundImage:"url(https://storage.googleapis.com/s.mkswft.com/RmlsZTplZjNkYzczMy1lYzEyLTRjNjEtODIzZS04MGZhMzE4M2MzNzA=/shutterstock_1921725935-integrated-amp.png)"},children:[(0,l.jsxs)("div",{className:"max-w-3xl",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2 min-h-[28px]",children:["NEW"===r.flag&&(0,l.jsx)(s.E,{shape:"rounded",className:"bg-transparent tracking-wide",children:"NEW"}),z&&(0,l.jsx)(s.E,{className:"border border-black bg-transparent tracking-wide",shape:"rounded",children:"SALE"}),$&&(0,l.jsx)(s.E,{className:"border border-black bg-transparent tracking-wide",shape:"rounded",children:"FEATURED"}),"Unavailable"===I&&(0,l.jsx)(s.E,{className:"border border-black bg-transparent tracking-wide",shape:"rounded",children:"ARCHIVED"}),k&&(0,l.jsx)(s.E,{className:(0,t.$)("border border-black bg-transparent tracking-wide"),shape:"rounded",children:k})]}),"Yes"===(null==R||null==(a=R.find(e=>"MadeInCanada"===e.name))?void 0:a.value)?(0,l.jsx)("div",{className:"absolute top-7 right-6 z-10",children:(0,l.jsx)("img",{src:"https://cdn.pmlsound.com/paradigm/made-in-canada-logo-red-leaf.svg",alt:"Made in Canada",className:"h-8 w-auto opacity-90"})}):null]}),(0,l.jsx)("div",{className:"mt-3",children:(0,l.jsx)("h2",{className:"text-3xl md:text-4xl font-medium text-gray-900 font-heading",children:N})}),(()=>{var e;let a=null==R||null==(e=R.find(e=>"ProductCategory"===e.name))?void 0:e.value;return a?(0,l.jsx)("div",{className:"mt-1 font-light",children:a.replace(/s$/,"")}):null})(),(0,l.jsx)("div",{className:"mt-3 flex items-center justify-start gap-8 text-sm font-medium",children:f&&"Available"===I&&(0,l.jsx)(u.G,{colorScheme:h,label:v,paramName:p,productId:j,name:N,image:w})})]}),(0,l.jsx)("div",{className:"mt-3 flex-grow",children:(0,l.jsx)("div",{className:"",children:(0,l.jsx)("div",{className:"relative w-full md:h-28 h-28",children:w?(0,l.jsx)(c.Link,{href:y,children:(0,l.jsx)(d.Image,{alt:w.alt,className:(0,t.$)("object-cover"),fill:!0,priority:g,sizes:b,src:w.src})}):(0,l.jsx)("div",{className:"h-full w-full grid place-items-center bg-gray-200 text-gray-500",children:"No Image"})})})}),(0,l.jsx)("div",{className:"mt-6 flex items-end justify-between gap-6 min-h-[32px]",children:T&&"Available"===I&&(0,l.jsx)("div",{className:"flex gap-3",children:z?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-lg",children:(0,l.jsx)(n.M,{price:C.currentValue,colorScheme:h,isCurrentSalePrice:!0,className:"text-gray-900"})}),(0,l.jsx)("div",{className:"text-lg text-gray-500 line-through",children:(0,l.jsx)(n.M,{price:C.previousValue,colorScheme:h,className:"text-gray-500"})})]}):C&&(0,l.jsx)("div",{className:"text-lg text-gray-900",children:(0,l.jsx)(n.M,{price:C,colorScheme:h})})})}),(0,l.jsx)("div",{className:" gap-3 flex mt-5",children:"Available"===I?(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsx)("a",{href:T?(0,x.i5)(S):x.ng,onClick:e=>{e.preventDefault(),window.location.href=T?(0,x.i5)(S):x.ng},children:(0,l.jsx)(i.$,{variant:"secondary",size:"x-small",shape:"rounded",className:"text-white hover:text-white",children:"Find a Dealer"})}),(0,l.jsx)(c.Link,{href:y,children:(0,l.jsx)(i.$,{variant:"primary",size:"x-small",shape:"rounded",className:"text-white hover:text-white w-28",children:T?"Buy Now":"View"})})]}):(0,l.jsx)(c.Link,{href:y,children:(0,l.jsx)(i.$,{variant:"primary",size:"x-small",shape:"rounded",className:"text-white hover:text-white w-28",children:"Explore More"})})})]})}function f(e){let{className:a,aspectRatio:r="5:6"}=e;return(0,l.jsxs)("div",{className:(0,t.$)("@container flex flex-col rounded-lg shadow-sm",a,"h-[500px]"),children:[(0,l.jsx)(o.az,{className:(0,t.$)("rounded-t-lg w-full h-[240px]")}),(0,l.jsx)("div",{className:"flex flex-col items-center gap-2 p-5 flex-grow justify-between",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(o.EY,{characterCount:10,className:"rounded h-6 w-3/4"}),(0,l.jsx)(o.EY,{characterCount:30,className:"rounded h-4 w-full mt-2"}),(0,l.jsx)(o.EY,{characterCount:20,className:"rounded h-4 w-5/6 mt-1"}),(0,l.jsx)("div",{className:"mt-4 w-1/2",children:(0,l.jsx)(o.EY,{characterCount:12,className:"rounded h-5"})})]})}),(0,l.jsx)(o.az,{className:"mt-4 h-12 w-full rounded-md"})]})}},54941:(e,a,r)=>{r.d(a,{V:()=>c});var l=r(11650),t=r(18788),s=r(50633),n=r(55424),i=r(78410),o=r(36624),d=r(14703);let c=i.forwardRef((e,a)=>{let{label:r,options:c,errors:u,className:m,onOptionMouseEnter:x,value:h,onValueChange:f,...v}=e,p=i.useId(),[g,b]=i.useState(null!=h?h:void 0),j=void 0!==h?h:g,N=c.some(e=>"image"===e.type),w=j?c.find(e=>e.value===j):null,y=N&&w&&"image"===w.type;return(0,l.jsxs)("div",{className:(0,s.$)("space-y-2",m),children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(t.bL,{...v,"aria-labelledby":p,className:"flex flex-wrap gap-2",ref:a,value:j,onValueChange:e=>{f?f(e):b(e)},children:c.map(e=>{var a;return(0,l.jsxs)(t.q7,{"aria-label":e.label,className:(0,s.$)("group relative box-content h-8 w-8 rounded-full border p-0.5 transition-colors hover:border-contrast-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:hover:border-transparent data-[disabled]:pointer-events-none data-[state=checked]:border-foreground [&:disabled>.disabled-icon]:grid",u&&u.length>0?"border-error disabled:border-transparent":"border-transparent"),disabled:e.disabled,onMouseEnter:()=>{"function"==typeof x&&x(e.value)},value:e.value,children:["color"===e.type?(0,l.jsx)("span",{className:"block size-full rounded-full border border-foreground
1/10 group-disabled:opacity-20",style:{backgroundColor:e.color}}):"image"===e.type&&(null==(a=e.image)?void 0:a.src)?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("span",{className:"relative block size-full overflow-hidden rounded-full border border-foreground/10",children:[(0,l.jsx)(d.Image,{alt:e.image.alt||e.label,className:"object-cover",fill:!0,src:e.image.src,unoptimized:!0}),(0,l.jsx)("span",{className:"sr-only",children:e.label})]})}):(0,l.jsx)("span",{className:"block size-full rounded-full border border-foreground/10 bg-gray-200"}),(0,l.jsx)("div",{className:"disabled-icon absolute inset-0 hidden place-content-center text-foreground",children:(0,l.jsx)(n.A,{size:16,strokeWidth:1.5})})]},e.value)})}),y&&(0,l.jsx)("span",{className:"font-body text-sm font-light text-foreground",children:w.label})]}),null==u?void 0:u.map(e=>(0,l.jsx)(o.b,{children:e},e))]})});c.displayName="SwatchRadioGroup"},57639:(e,a,r)=>{r.d(a,{J:()=>n});var l=r(11650),t=r(46533),s=r(50633);function n(e){let{className:a,colorScheme:r="light",...n}=e;return(0,l.jsx)(t.b,{...n,className:(0,s.$)("block font-mono text-xs uppercase",{light:"text-[var(--label-light-text,hsl(var(--contrast-500)))]",dark:"text-[var(--label-dark-text,hsl(var(--contrast-100)))]"}[r],a)})}},60799:(e,a,r)=>{r.r(a),r.d(a,{ProductSeriesContextProvider:()=>h});var l=r(11650),t=r(43773),s=r(39849),n=r(78410),i=r(50633),o=r(39357),d=r(75042),c=r(51823);function u(e){let{className:a,heading:r,buttonText:t,buttonLink:s,videoSrc:u,videoAlt:m="Dealer locator video",productSeries:x}=e,h=(0,n.useId)(),f="dealer_locator_".concat(h),v="videoMachine_".concat(h),p=(0,d.cj)(),g=x?p?(0,c.i5)(x):c.ng:s||c.Re;return(0,l.jsxs)("section",{className:(0,i.$)("relative w-full [content-visibility:auto]",a),id:f,children:[(0,l.jsx)("div",{className:"absolute inset-0 w-full",children:u&&(0,l.jsx)("video",{id:v,width:"100%",height:"100%",autoPlay:!0,muted:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover","aria-label":m,children:(0,l.jsx)("source",{src:u,type:"video/mp4"})})}),(0,l.jsx)("div",{className:"relative flex justify-center items-start overflow-hidden pt-0 px-6 pb-0 min-h-[400px] md:min-h-[600px]",children:(0,l.jsx)("div",{className:"relative w-full max-w-5xl mx-auto text-white pt-4 md:pt-6",children:(0,l.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,l.jsx)("h4",{className:"font-heading text-2xl md:text-5xl lg:text-6xl font-bold text-center text-black leading-snug whitespace-pre-line",children:r}),(0,l.jsx)("p",{className:"text-xl font-light text-center mt-6",children:(0,l.jsx)("a",{href:g,onClick:e=>{e.preventDefault(),window.location.href=g},children:(0,l.jsx)(o.$,{className:"font-heading font-normal text-lg",variant:"primary",size:"large",shape:"rounded",children:t})})})]})})})]})}var m=r(27879);let x=(0,n.createContext)(null),h=e=>{let{value:a,children:r}=e;return(0,l.jsx)(x.Provider,{value:a,children:r})};m.f.registerComponent(function(e){let{className:a,heading:r,buttonText:t,buttonLink:s,videoSrc:i,videoAlt:o}=e,d=(0,n.useContext)(x);return(0,l.jsx)(u,{className:a,heading:r,buttonText:t,buttonLink:(null==s?void 0:s.href)||"https://www.anthemav.com/store-locator/",videoSrc:i,videoAlt:o,productSeries:d})},{type:"section-dealer-locator",label:"Sections / Dealer Locator",props:{className:(0,t.Style)({properties:[t.Style.Margin,t.Style.Padding]}),heading:(0,t.TextInput)({label:"Heading",defaultValue:"Find your local\nAuthorized Anthem dealer"}),buttonText:(0,t.TextInput)({label:"Button Text",defaultValue:"Learn more"}),buttonLink:(0,s.N_)({label:"Button Link"}),videoSrc:(0,t.TextInput)({label:"Video URL",defaultValue:"https://cdn.pmlsound.com/anthem/avm90/videos/AnthemDealerLocatorAnimation_19.mp4"}),videoAlt:(0,t.TextInput)({label:"Video Alt Text",defaultValue:"Dealer locator video"})}})},65897:(e,a,r)=>{r.d(a,{c:()=>n});var l=r(11650),t=r(50633),s=r(63387);function n(e){let{link:a,label:r,className:n}=e;return(0,l.jsx)(s.Link,{className:(0,t.$)("origin-left font-semibold leading-normal text-foreground transition-[background-size] duration-300 [background:linear-gradient(0deg,rgb(172,60,60),rgb(172,60,60))_no-repeat_left_bottom_/_0_2px] hover:bg-[size:100%_2px] focus:outline-none focus-visible:bg-[size:100%_2px]",n),href:a.href,children:r})}},71116:(e,a,r)=>{r.d(a,{Accordion:()=>i,Accordions:()=>c});var l=r(11650),t=r(95443),s=r(50633),n=r(78410);function i(e){let{children:a,title:r,titleHtml:i,colorScheme:c="light",contentClassName:u,titleClassName:m,usePlusMinus:x=!1,...h}
1=e,[f,v]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{v(!0)},[]),(0,l.jsxs)(t.q7,{...h,children:[(0,l.jsx)(t.Y9,{children:(0,l.jsxs)(t.l9,{className:"group flex w-full cursor-pointer items-start gap-8 py-3 text-start @md:py-4",children:[i?(0,l.jsx)("div",{className:(0,s.$)("flex-1 select-none font-[family-name:var(--accordion-title-font-family,var(--font-family-mono))] text-md uppercase transition-colors duration-300 ease-out",m),dangerouslySetInnerHTML:{__html:i}}):(0,l.jsx)("div",{className:(0,s.$)("flex-1 select-none font-[family-name:var(--accordion-title-font-family,var(--font-family-mono))] text-md uppercase transition-colors duration-300 ease-out",m),children:r}),x?(0,l.jsx)(d,{className:(0,s.$)({light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[c])}):(0,l.jsx)(o,{className:(0,s.$)({light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[c])})]})}),(0,l.jsx)(t.UC,{className:(0,s.$)("overflow-hidden",f&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),children:(0,l.jsx)("div",{className:(0,s.$)("pb-5 font-[family-name:var(--accordion-content-font-family)] font-medium leading-normal",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[c]),children:a})})]})}function o(e){let{className:a,...r}=e;return(0,l.jsxs)("svg",{...r,className:(0,s.$)("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",a),viewBox:"0 0 10 10",width:16,children:[(0,l.jsx)("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),(0,l.jsx)("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})}function d(e){let{className:a,...r}=e;return(0,l.jsxs)("svg",{...r,className:(0,s.$)("mt-1 shrink-0",a),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,l.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,l.jsx)("line",{className:"origin-center transition-transform duration-300 ease-out group-data-[state=open]:rotate-90",x1:"12",y1:"8",x2:"12",y2:"16"})]})}let c=t.bL},74438:(e,a,r)=>{r.d(a,{z:()=>d});var l=r(11650),t=r(18788),s=r(50633),n=r(78410),i=r(36624),o=r(57639);let d=n.forwardRef((e,a)=>{let{label:r,options:d,errors:u,className:m,onOptionMouseEnter:x,...h}=e,f=n.useId();return(0,l.jsxs)("div",{className:(0,s.$)("space-y-2",m),children:[void 0!==r&&""!==r&&(0,l.jsx)(o.J,{id:f,children:r}),(0,l.jsx)(t.bL,{...h,"aria-labelledby":f,className:"space-y-2",ref:a,children:d.map((e,a)=>(0,l.jsx)(c,{error:null!=u&&u.length>0,onOptionMouseEnter:x,option:e},a))}),null==u?void 0:u.map(e=>(0,l.jsx)(i.b,{children:e},e))]})});function c(e){let{option:a,error:r=!1,onOptionMouseEnter:i}=e,o=n.useId();return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(t.q7,{"aria-label":a.label,className:(0,s.$)("size-5 cursor-default rounded-full border bg-background outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&:disabled+label]:pointer-events-none [&:disabled+label]:opacity-50",r?"border-error disabled:border-error/50":"border-contrast-200 hover:border-contrast-300 focus:border-contrast-300"),disabled:a.disabled,id:o,onMouseEnter:()=>{"function"==typeof i&&i(a.value)},value:a.value,children:(0,l.jsx)(t.C1,{className:"relative flex size-full items-center justify-center after:block after:size-3 after:rounded-full after:bg-foreground"})}),(0,l.jsx)("label",{className:"pl-3 text-sm leading-none text-foreground",htmlFor:o,children:a.label})]},a.value)}d.displayName="RadioGroup"},87473:(e,a,r)=>{r.r(a),r.d(a,{DescriptionSource:()=>em,MakeswiftProductDetail:()=>eh,PropsContextProvider:()=>eu});var l=r(11650),t=r(78410),s=r(35263),n=r(50633),i=r(53036),o=r(65897);function d(e){let{breadcrumbs:a,className:r}=e;return(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(c,{}),value:a,children:e=>0===e.length?(0,l.jsx)("div",{className:(0,n.$)("min-h-[1lh]",r)}):(0,l.jsx)("nav",{"aria-label":"breadcrumb",className:(0,n.$)(r),children:(0,l.jsx)("ol",{className:"flex flex-wrap items-center gap-x-1.5 text-sm @xl:text-base lg:mt-0 mt-6",children:e.map((a,r)=>
1{let{label:t,href:s}=a;return r<e.length-1?(0,l.jsxs)("li",{className:"inline-flex items-center gap-x-1.5",children:[(0,l.jsx)(o.c,{label:t,link:{href:s}}),(0,l.jsx)(i.A,{"aria-hidden":"true",className:"text-contrast-500",size:20,strokeWidth:1})]},r):(0,l.jsx)("li",{className:"inline-flex items-center text-contrast-500",children:(0,l.jsx)("span",{"aria-current":"page","aria-disabled":"true",role:"link",children:t})},r)})})})})}function c(e){let{className:a}=e;return(0,l.jsxs)("div",{className:(0,n.$)("flex min-h-[1lh] animate-pulse flex-wrap items-center gap-x-1.5 text-base",a),children:[(0,l.jsx)("div",{className:"flex h-[1lh] items-center",children:(0,l.jsx)("span",{className:"block h-[1.25ex] w-[4ch] rounded bg-contrast-100"})}),(0,l.jsx)(i.A,{"aria-hidden":"true",className:"text-contrast-200",size:20,strokeWidth:1}),(0,l.jsx)("div",{className:"flex h-[1lh] items-center",children:(0,l.jsx)("span",{className:"block h-[1.25ex] w-[6ch] rounded bg-contrast-100"})}),(0,l.jsx)(i.A,{"aria-hidden":"true",className:"text-contrast-200",size:20,strokeWidth:1}),(0,l.jsx)("div",{className:"flex h-[1lh] items-center",children:(0,l.jsx)("span",{className:"block h-[1.25ex] w-[6ch] rounded bg-contrast-100"})})]})}var u=r(19791),m=r(88006),x=r(92821),h=r(27884),f=r(14703);function v(e){let{images:a,className:s,thumbnailLabel:i="View image number",arModel:o,price:d,madeInCanada:c}=e,[u,v]=(0,t.useState)(0),[p,g]=(0,t.useState)(!1),[b,j]=(0,m.A)(),[N,w]=(0,t.useState)(!1),y=(0,t.useRef)(null);(0,t.useEffect)(()=>{w(!0),o&&Promise.all([r.e(8141),r.e(6662)]).then(r.bind(r,83858))},[o]);let k=Array.from(new Map(a.map(e=>[e.src,e])).values()),C=d&&"object"==typeof d&&"type"in d&&"sale"===d.type;(0,t.useEffect)(()=>{if(!j)return;let e=()=>{let e=j.selectedScrollSnap();v(a=>"3d"===a?a:e)};return j.on("select",e),()=>{j.off("select",e)}},[j]);let L=e=>{if("3d"===e)return void v("3d");v(e),j&&j.scrollTo(e)};return(0,l.jsxs)("div",{className:(0,n.$)("sticky top-4 flex flex-col gap-2 @2xl:flex-row",s),children:[(0,l.jsxs)("div",{ref:y,className:(0,n.$)("relative w-full overflow-hidden rounded-xl @xl:rounded-2xl @2xl:order-2","3d"===u?"":"bg-[#f6f6f6]"),children:[C&&(0,l.jsx)(h.E,{className:"border border-black bg-transparent tracking-wide absolute top-4 left-4 z-10",shape:"rounded",children:"SALE"}),"Yes"===c&&(0,l.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,l.jsx)("img",{src:"https://cdn.pmlsound.com/paradigm/made-in-canada-logo-red-leaf.svg",alt:"Made in Canada",className:"h-10 w-auto opacity-90"})}),"3d"===u&&o&&N?(0,l.jsxs)("div",{className:"relative aspect-[4/5] w-full bg-white rounded-xl @xl:rounded-2xl overflow-hidden",style:{touchAction:"pan-x pan-y pinch-zoom"},children:[!p&&(0,l.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:[(0,l.jsxs)("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,l.jsx)("span",{className:"sr-only",children:"Loading..."})]}),(0,l.jsx)("model-viewer",{src:o,alt:"3D product model","camera-controls":!0,"disable-pan":!0,"disable-zoom":!0,"camera-orbit":"auto 75deg 150%","min-camera-orbit":"auto 0deg 150%","max-camera-orbit":"auto 180deg 150%","field-of-view":"9
10deg",bounds:"tight","camera-target":"0m 0m 0m","auto-rotate":!0,"quick-look-browsers":"safari chrome","ar-modes":"webxr scene-viewer quick-look",ar:!0,"ar-scale":"fixed","shadow-intensity":"1","shadow-softness":"1",loading:"eager",onLoad:()=>g(!0),style:{width:"100%",height:"100%",backgroundColor:"#fff",borderRadius:"15px",position:"relative",overflow:"hidden"},className:"model-viewer-custom mt-20",children:(0,l.jsx)("button",{slot:"ar-button",style:{background:"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(10px)",borderRadius:"50%",border:"2px solid #fff",position:"absolute",top:"16px",right:"16px",width:"50px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0px 4px 10px rgba(0, 0, 0, 0.1)",transition:"transform 0.3s ease-in-out",cursor:"pointer",zIndex:10},onMouseOver:e=>e.currentTarget.style.transform="scale(1.1)",onMouseOut:e=>e.currentTarget.style.transform="scale(1)",type:"button",children:(0,l.jsx)("img",{src:"https://cdn.pmlsound.com/PML/ar_icon.svg",width:"60%",alt:"Launch AR"})})})]}):(0,l.jsx)("div",{ref:b,children:(0,l.jsx)("div",{className:"flex",children:k.map((e,a)=>(0,l.jsx)("div",{className:"relative aspect-[4/5] w-full shrink-0 grow-0 basis-full",children:(0,l.jsx)(f.Image,{alt:e.alt,className:"object-cover",fill:!0,priority:0===a,sizes:"(min-width: 42rem) 50vw, 100vw",src:e.src})},a))})})]}),(0,l.jsx)("div",{className:"flex max-w-full shrink-0 flex-row gap-2 overflow-x-auto @2xl:order-1 @2xl:flex-col",children:(0,l.jsx)("div",{className:"flex gap-2",children:k.map((e,a)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{"aria-label":"".concat(i," ").concat(a+1),className:(0,n.$)("relative h-12 w-12 shrink-0 overflow-hidden rounded-lg border transition-all duration-300 hover:opacity-100 @md:h-16 @md:w-16",a===u?"border-foreground opacity-100":"border-transparent opacity-50"),onClick:()=>L(a),children:(0,l.jsx)(f.Image,{alt:e.alt,className:"bg-contrast-100 object-cover",fill:!0,sizes:"(min-width: 28rem) 4rem, 3rem",src:e.src,priority:!0})},a),0===a&&o&&(0,l.jsx)("button",{"aria-label":"View 3D model",className:(0,n.$)("relative h-12 w-12 shrink-0 overflow-hidden rounded-lg border transition-all duration-300 hover:opacity-100 @md:h-16 @md:w-16 bg-[#f6f6f6] flex items-center justify-center","3d"===u?"border-foreground opacity-100":"border-transparent opacity-50"),onClick:()=>L("3d"),children:(0,l.jsx)(x.A,{className:"w-6 h-6"})})]}))})})]})}var p=r(6895);function g(e){let{className:a,children:r}=e;return(0,l.jsx)("span",{className:(0,n.$)("origin-left font-[family-name:var(--animated-underline-font-family,var(--font-family-body))] font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",a),children:r})}var b=r(75042),j=r(51823),N=r(36273),w=r(44856),y=r(27541),k=r(70074),C=r(92511),L=r(98096),S=r(90661),R=r(439),E=r(16759),$=r(69332),I=r.n($),T=r(88973),z=r(41459),q=r(78822),A=r(17272),M=r(24617),F=r(45413),_=r(74438),D=r(52693),P=r(54941),V=r(39357),B=r(49376),O=r(92151),Z=r(58628);function W(e){let a={id:Z.Yj(),quantity:Z.ai().min(1)};return e.forEach(e=>{let r;"number"===e.type?(r=Z.ai(),null!=e.min&&(r=r.min(e.min)),null!=e.max&&(r=r.max(e.max))):r=Z.Yj(),a[e.name]=r,!0!==e.required&&(a[e.name]=r.optional())}),Z.Ik(a)}var Y=r(60651);function U(e){var a,r;let{action:s,fields:i,productId:o,ctaLabel:d="Add to cart",quantityLabel:c="Quantity",incrementLabel:u="Increase quantity",decrementLabel:m="Decrease quantity",ctaDisabled:x=!1,prefetch:h=!1,productSeries:f,regionAllowed:v,inventory:p,productName:g,productImage:R,wishlistButton:$}=e,T=(0,O.rd)(),z=(0,O.a8)(),q=(0,b.cj)(),M=null!=v?v:q,_=M||null==f?(0,j.i5)(f):j.ng;console.log("inventory",p),(0,t.useEffect)(()=>{},[null==p?void 0:p.availableToSell]);let D=i.reduce((e,a)=>!0===a.persist?{...e,[a.name]:S.tU}:e,{}),[P]=(0,S.ab)(D,{shallow:!1}),Z=(e,a)=>{if(h){let r=(0,S.rl)(D)(z,{...P,[e]:a});T.prefetch(r)}},U=i.reduce((e,a)=>{var r,l;return{...e,[a.name]:null!=(l=null!=(r=P[a.name])?r:a.defaultValue)?l:""}},{quantity:1}),[H,Q]=(0,t.useActionState)(s,{fields:i,lastResult:null}),{lastResult:K,successMessage:X,addedToCart:ee}=H,[ea,er]=(0,N.mN)({lastResult:K,constraint:(0,C.z)(W(i)),onValidate(e){let{formData:a}=e,r=a.get("quantity");(!r||""===r||isNaN(Number(r))||1>Number(r))&&a.set("quantity","1");let l=(0,L.L)(a,{schema:W(i)});return"success"===l.status&&(null==p?void 0:p.availableToSell)&&Number(l.value.quantity)>p.availableToSell?(0,L.L)(a,{schema:W(i).refine(e=>("number"==typeof e.quantity?e.quantity:Number(e.quantity))<=p.availableToSell,{message:"Only ".concat(p.availableToSell," item").concat(1===p.availableToSell?"":"s"," available in stock"),path:["quantity"]})}):l},onSubmit(e,a){let{submission:r}=a;(null==r?void 0:r.status)==="success"&&(en.current=!1,es.current=setTimeout(()=>{setTimeout(()=>{var e;!en.current&&((null!=(e=et.current)?e:[]).length>0||(g||R?B.o.success((0,l.jsxs)("div",{className:"flex items-center gap-3",children:[R&&(0,l.jsx)("img",{src:R,alt:g||"Product",className:"w-12 h-12 object-cover rounded flex-shrink-0 bg-gray-100",style:{minWidth:"48px",minHeight:"48px"},onError:e=>{e.currentTarget.style.display="none"}}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 text-sm",children:[(0,l.jsx)("span",{className:"font-medium",children:g})," ","has been added to your ",(0,l.jsx)(I(),{className:"underline",href:"/cart",children:"cart"})]})]})):B.o.success("Item has been added to your cart")))},0)},900))},defaultValue:U,shouldValidate:"onSubmit",shouldRevalidate:"onInput"}),el=(0,w.RA)(er.quantity);(0,E.useTranslations)("Product.ProductDetails");let et=(0,t.useRef)([]),es=(0,t.useRef)(null),en=(0,t.useRef)(!1);(0,t.useEffect)(()=>{var e;et.current=null!=(e=ea.errors)?e:[]},[ea.errors]),(0,t.useEffect)(()=>()=>{null!=es.current&&(clearTimeout(es.current),es.current=null)},[]),(0,t.useEffect)(()=>{let e=el.value;(!e||""===e||isNaN(Number(e))||1>Number(e))&&el.change("1")},[]);let ei=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e;let a=null==(e=ea.errors)?void 0:e[0],r=null==a?null:"string"==typeof a?a:String(a);"Item already in cart"===r&&r!==ei.current&&(ei.current=r,en.current=!0,null!=es.current&&(clearTimeout(es.current),es.current=null),B.o.error("Item already in cart")),"Item already in cart"!==r&&(ei.current=r)},[ea.errors]);let eo=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{var e;if(null==(e=ea.errors)?void 0:e.length){eo.current=!1;return}if(ee&&!eo.current)if(eo.current=!0,g||R){let e=(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[R&&(0,l.jsx)("img",{src:R,alt:g||"Product",className:"w-12 h-12 object-cover rounded flex-shrink-0 bg-gray-100",style:{minWidth:"48px",minHeight:"48px"},onError:e=>{e.currentTarget.style.display="none"}}),(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsxs)("div",{className:"text-sm",children:[(0,l.jsx)("span",{className:"font-medium",children:g})," ","has been added to your ",(0,l.jsx)(I(),{className:"underline",href:"/cart",children:"cart"})]})})]});B.o.success(e)}else X?B.o.success(X):B.o.success("Item has been added to your cart")},[ee,null==(a=ea.errors)?void 0:a.length,g,R,X]),(0,l.jsxs)(y.Op,{context:ea.context,children:[(0,l.jsx)(y.g9,{}),(0,l.jsxs)("form",{...(0,k.NE)(ea),action:Q,className:"",children:[(0,l.jsx)("input",{name:"id",type:"hidden",value:o}),(0,l.jsxs)("div",{className:"space-y-6",children:[i.map(e=>(0,l.jsx)(J,{field:e,formField:er[e.name],onPrefetch:Z},er[e.name].id)),null==(r=ea.errors)?void 0:r.map((e,a)=>(0,l.jsx)(A.H,{className:"pt-3",type:"error",children:e},a)),M&&(0,l.jsxs)("div",{className:"flex gap-x-3 pt-6 border-t border-contrast-100",children:[(0,l.jsx)(F.Q,{"aria-label":c,decrementLabel:m,incrementLabel:u,min:1,max:(null==p?void 0:p.availableToSell)&&p.availableToSell>0?p.availableToSell:void 0,name:er.quantity.name,onBlur:el.blur,onChange:e=>{let a=e.currentTarget.value,r=Number(a);(null==p?void 0:p.availableToSell)&&r>p.availableToSell?el.change(String(p.availableToSell)):el.change(a)},onFocus:el.focus,required:!0,value:el.value||"1"}),(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"inline-flex items-center rounded-md bg-[#f6f6f6] px-6 py-1 text-sm font-normal text-gray-900",children:[(0,l.jsx)(Y.A,{"aria-hidden":"true",className:(0,n.$)("-ml-0.5 size-10",(null==p?void 0:p.isInStock)?p.availableToSell>0&&p.availableToSell<=5?"text-yellow-600":"text-green-600":"text-red-600")}),(0,l.jsx)("span",{className:"-ml-2 mr-2",children:(null==p?void 0:p.isInStock)?p.availableToSell>0&&p.availableToSell<=5?"Low Stock":(p.availableToSell,"In Stock"):"Out of Stock"})]})})]}),(0,l.jsxs)("div",{children:[M?(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(G,{className:null!=$?"flex-1 min-w-0":void 0,disabled:x,children:d}),null!=$?(0,l.jsx)("div",{className:"shrink-0",children:$}):null]}):null,(0,l.jsx)("a",{href:_,onClick:e=>{e.preventDefault(),window.location.href=_},children:(0,l.jsxs)("div",{className:(0,n.$)("flex items-center gap-2",M?"mt-3":""),children:[(0,l.jsx)(V.$,{variant:"tertiary",size:"medium",shape:"rounded",className:null==$||M?"w-full":"flex-1 min-w-0",children:"Find a Dealer"}),M||null==$?null:(0,l.jsx)("div",{className:"shrink-0",children:$})]})})]})]})]})]})}function G(e){let{children:a,disabled:r,className:t}=e,{pending:s}=(0,R.useFormStatus)();return(0,l.jsx)(V.$,{className:null!=t?t:"w-full",disabled:r,loading:s,size:"medium",type:"submit",variant:"secondary",shape:"rounded",children:a})}function J(e){var a,r,s;let{field:n,formField:i,onPrefetch:o}=e,d=(0,w.RA)(i),[,c]=(0,S.ab)(!0===n.persist?{[n.name]:S.tU.withOptions({shallow:!1})}:{});(0,t.useEffect)(()=>{n.defaultValue&&(!d.value||""===d.value)&&d.change(n.defaultValue)},[n.defaultValue,n.name]);let u=(0,t.useCallback)(e=>{c({[n.name]:e}),d.change(e)},[c,n,d]),m=e=>{!0===n.persist&&o(n.name,e)},x=d.value||n.defaultValue||"";switch(n.type){case"number":return(0,l.jsx)(F.Q,{decrementLabel:n.decrementLabel,errors:i.errors,incrementLabel:n.incrementLabel,label:n.label,name:i.name,onBlur:d.blur,onChange:e=>u(e.currentTarget.value),onFocus:d.focus,required:i.required,value:null!=(a=d.value)?a:""},i.id);case"text":return(0,l.jsx)(M.p,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onChange:e=>u(e.currentTarget.value),onFocus:d.focus,required:i.required,value:null!=(r=d.value)?r:""},i.id);case"checkbox":return(0,l.jsx)(q.S,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onCheckedChange:e=>u(String(e)),onFocus:d.focus,required:i.required,value:null!=(s=d.value)?s:"false"},i.id);case"select":return(0,l.jsx)(D.l,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onFocus:d.focus,onOptionMouseEnter:m,onValueChange:u,options:n.options,required:i.required,value:x},i.id);case"radio-group":return(0,l.jsx)(_.z,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onFocus:d.focus,onOptionMouseEnter:m,onValueChange:u,options:n.options,required:i.required,value:x},i.id);case"swatch-radio-group":return(0,l.jsx)(P.V,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onFocus:d.focus,onOptionMouseEnter:m,onValueChange:u,options:n.options,required:i.required,value:x},i.id);case"card-radio-group":return(0,l.jsx)(z.$,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onFocus:d.focus,onOptionMouseEnter:m,onValueChange:u,options:n.options,required:i.required,value:x},i.id);case"button-radio-group":return(0,l.jsx)(T.R,{errors:i.errors,label:n.label,name:i.name,onBlur:d.blur,onFocus:d.focus,onOptionMouseEnter:m,onValueChange:u,options:n.options,required:i.required,value:x},i.id)}}var H=r(49218);function Q(e){let{scrollTargetId:a,...r}=e;return(0,l.jsx)("button",{"aria-label":"Scroll to reviews",className:"cursor-pointer text-left",onClick:()=>{let e=document.getElementById(a);e&&e.scrollIntoView({behavior:"smooth",block:"start"})},type:"button",children:(0,l.jsx)(H.G,{...r})})}function K(e){let{description:a}=e,[r,s]=(0,t.useState)(!1);return(0,l.jsxs)("div",{className:"font-body prose prose-sm font-light",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:r?"":"line-clamp-3",children:a}),!r&&(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-10 bg-gradient-to-t from-white via-white/50 to-transparent pointer-events-none"})]}),(0,l.jsx)("button",{onClick:()=>s(!r),className:(0,n.$)("mt-2 origin-left text-sm font-light italic leading-normal text-anthemRed transition-[background-size] duration-300 [background:linear-gradient(0deg,rgb(210,38,48),rgb(210,38,48))_no-repeat_left_bottom_/_0_2px] hover:bg-[size:100%_2px] focus:outline-none focus-visible:bg-[size:100%_2px]"),children:r?"Read less":"Read more"})]})}function X(e){let{product:a,action:r,fields:t,breadcrumbs:n,quantityLabel:i,incrementLabel:c,decrementLabel:m,ctaLabel:x,ctaDisabled:h,prefetch:f,thumbnailLabel:N,additionalInformationLabel:w="Additional information",arModel:y,productSeries:k,madeInCanada:C,wishlistButton:L,reviewFormEmailLabel:S,reviewFormModalTitle:R,reviewFormNameLabel:E,reviewFormRatingLabel:$,reviewFormReviewLabel:I,reviewFormSubmitLabel:T,reviewFormTitleLabel:z,reviewFormAction:q,reviewFormRecaptchaSiteKey:A,user:M}=e,F=(0,b.cj)();return(0,l.jsxs)("div",{className:"bg-white",children:[n&&(0,l.jsx)(d,{breadcrumbs:n,className:"mb-6"}),(0,l.jsx)("div",{className:"mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-24 lg:max-w-7xl lg:px-8",children:(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(eo,{}),value:a,children:e=>e&&(0,l.jsxs)("div",{className:"flex flex-col lg:grid lg:grid-cols-[3fr_2fr] lg:gap-x-8 lg:items-start",children:[(0,l.jsxs)("div",{className:"order-1 lg:col-start-2 lg:row-start-1 lg:max-w-lg",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("h1",{className:"font-heading text-2xl lg:text-4xl leading-none xl:text-4xl 4xl:text-4xl",children:e.title}),null!=k&&""!==k&&(0,l.jsx)("p",{className:"mt-2 font-body text-sm font-medium",children:k}),e.reviewsEnabled&&null!=q&&null!=M&&(0,l.jsx)("div",{className:"group/product-rating",children:(0,l.jsx)(p.ReviewForm,{action:q,formEmailLabel:S,formModalTitle:R,formNameLabel:E,formRatingLabel:$,formReviewLabel:I,formSubmitLabel:T,formTitleLabel:z,productId:Number(e.id),recaptchaSiteKey:A,streamableImages:e.images,streamableProduct:{name:e.title},streamableUser:M,trigger:(0,l.jsx)(g,{className:"cursor-pointer",children:"Write a review"})})}),!1!==e.showRating&&null!=e.rating&&(0,l.jsx)("div",{className:"group/product-rating",children:(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(et,{}),value:s.RE.all([e.rating,e.numberOfReviews]),children:e=>{let[a,r]=e;return(0,l.jsx)(Q,{numberOfReviews:null!=r?r:0,rating:null!=a?a:0,scrollTargetId:"reviews"})}})})]}),F&&(0,l.jsxs)("section",{"aria-labelledby":"information-heading",className:"",children:[(0,l.jsx)("h2",{id:"information-heading",className:"sr-only",children:"Product information"}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(el,{}),value:e.price,children:e=>(0,l.jsx)(u.M,{className:"my-3 text-xl xl:text-2xl font-body",price:null!=e?e:""})})})]})]}),(0,l.jsx)("div",{className:"order-3 lg:order-2 lg:col-start-2 lg:row-start-2 lg:max-w-lg",children:(0,l.jsxs)("section",{"aria-labelledby":"options-heading",className:"",children:[(0,l.jsx)("h2",{id:"options-heading",className:"sr-only",children:"Product options"}),(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(en,{}),value:e.description,children:e=>null!=e&&(0,l.jsx)(K,{description:e})}),(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(ei,{}),value:s.RE.all([t,x,h,e.images]),children:a=>{var t;let[s,n,o,d]=a,u=d&&d.length>0?null==(t=d[0])?void 0:t.src:void 0,x=null==u?void 0:u.replace("{:size}","48w");return(0,l.jsx)(U,{action:r,ctaDisabled:null!=o?o:void 0,ctaLabel:null!=n?n:void 0,decrementLabel:m,fields:s,incrementLabel:c,prefetch:f,productId:e.id,productSeries:k,quantityLabel:i,regionAllowed:F,inventory:e.inventory,productName:e.title,productImage:x,wishlistButton:L})}}),(0,l.jsx)("div",{className:"mt-6 text-center border-b border-contrast-100 pb-6",children:(0,l.jsxs)("p",{className:"text-sm font-light",children:
1["By completing your purchase, you are agreeing ",(0,l.jsx)("br",{})," to our ",(0,l.jsx)(o.c,{link:{href:"/terms-and-conditions"},label:"Terms of Service & Privacy Policy",className:"text-anthemRed font-normal"})," "]})}),(0,l.jsx)("div",{className:"mt-6 text-left",children:(0,l.jsxs)("p",{className:"text-sm font-light",children:[(0,l.jsx)("b",{children:"Quick Links:"}),(0,l.jsx)("br",{})," ",(0,l.jsx)("br",{}),(0,l.jsx)(o.c,{link:{href:"#specifications"},label:"Specifications",className:"text-anthemRed font-normal"})," ",(0,l.jsx)("br",{}),(0,l.jsx)(o.c,{link:{href:"/online-warranty"},label:"Warranty Information",className:"text-anthemRed font-normal"})," ",(0,l.jsx)("br",{}),(0,l.jsx)(o.c,{link:{href:"/blogs/category/product-reviews"},label:"Industry Reviews",className:"text-anthemRed font-normal"})," ",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),"Experience the Anthem Advantage firsthand. Audition our acclaimed products exclusively through our network of authorized Anthem retailers and custom installers. ",(0,l.jsx)("a",{href:F?(0,j.i5)(k):j.ng,onClick:e=>{e.preventDefault(),window.location.href=F?(0,j.i5)(k):j.ng},className:"text-anthemRed font-normal hover:underline",children:"Locate your nearest dealer today."})," "]})})]})]})}),(0,l.jsx)("div",{className:"order-2 mt-10 lg:col-start-1 lg:row-start-1 lg:row-span-2 lg:mt-0",children:(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(er,{}),value:s.RE.all([e.images,e.price]),children:e=>{let[a,r]=e;return(0,l.jsx)(v,{images:a,arModel:y,price:null!=r?r:void 0,madeInCanada:C})}})})]})})})]})}function ee(){return(0,l.jsx)("div",{className:"aspect-[4/5] h-full w-full shrink-0 grow-0 basis-full animate-pulse bg-contrast-100"})}function ea(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"h-12 w-12 shrink-0 animate-pulse rounded-lg bg-contrast-100 @md:h-16 @md:w-16"}),(0,l.jsx)("div",{className:"h-12 w-12 shrink-0 animate-pulse rounded-lg bg-contrast-100 @md:h-16 @md:w-16"}),(0,l.jsx)("div",{className:"h-12 w-12 shrink-0 animate-pulse rounded-lg bg-contrast-100 @md:h-16 @md:w-16"}),(0,l.jsx)("div",{className:"h-12 w-12 shrink-0 animate-pulse rounded-lg bg-contrast-100 @md:h-16 @md:w-16"})]})}function er(){return(0,l.jsxs)("div",{className:"@container",children:[(0,l.jsx)("div",{className:"w-full overflow-hidden rounded-xl @xl:rounded-2xl",children:(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(ee,{})})}),(0,l.jsx)("div",{className:"mt-2 flex max-w-full gap-2 overflow-x-auto",children:(0,l.jsx)(ea,{})})]})}function el(){return(0,l.jsx)("div",{className:"my-4 h-4 w-20 animate-pulse rounded-md bg-contrast-100"})}function et(){return(0,l.jsxs)("div",{className:"flex w-[136px] animate-pulse items-center gap-1",children:[(0,l.jsx)("div",{className:"h-4 w-[100px] rounded-md bg-contrast-100"}),(0,l.jsx)("div",{className:"h-6 w-8 rounded-xl bg-contrast-100"})]})}function es(){return(0,l.jsxs)("div",{className:"flex w-full animate-pulse flex-col gap-3.5 pb-6",children:[(0,l.jsx)("div",{className:"h-2.5 w-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-2.5 w-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-2.5 w-3/4 bg-contrast-100"})]})}function en(){return(0,l.jsxs)("div",{className:"flex w-full animate-pulse flex-col gap-3.5 pb-6",children:[(0,l.jsx)("div",{className:"h-2.5 w-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-2.5 w-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-2.5 w-3/4 bg-contrast-100"})]})}function ei(){return(0,l.jsxs)("div",{className:"flex animate-pulse flex-col gap-8 py-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,l.jsx)("div",{className:"h-2 w-10 rounded-md bg-contrast-100"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{className:"h-11 w-[72px] rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-11 w-[72px] rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-11 w-[72px] rounded-full bg-contrast-100"})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,l.jsx)("div",{className:"h-2 w-16 rounded-md bg-contrast-100"}),(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)("div",{className:"h-10 w-10 rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-10 w-10 rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-10 w-10 rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-10 w-10 rounded-full bg-contrast-100"}),(0,l.jsx)("div",{className:"h-10 w-10 rounded-full bg-contrast-100"})]})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{className:"h-12 w-[120px] rounded-lg bg-contrast-100"}),(0,l.jsx)("div",{className:"h-12 w-[216px] rounded-full bg-contrast-100"})]})]})}function eo(){return(0,l.jsxs)("div",{className:"grid animate-pulse grid-cols-1 items-stretch gap-x-6 gap-y-8 @2xl:gr
1id-cols-2 @5xl:gap-x-12",children:[(0,l.jsx)("div",{className:"hidden @2xl:block",children:(0,l.jsx)(er,{})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mb-6 h-4 w-20 rounded-lg bg-contrast-100"}),(0,l.jsx)("div",{className:"mb-6 h-6 w-72 rounded-lg bg-contrast-100"}),(0,l.jsx)(et,{}),(0,l.jsx)(el,{}),(0,l.jsx)(es,{}),(0,l.jsx)("div",{className:"mb-8 @2xl:hidden",children:(0,l.jsx)(er,{})}),(0,l.jsx)(ei,{})]})]})}var ed=r(88084);let ec=(0,t.createContext)(null),eu=e=>{let{value:a,children:r}=e;return(0,l.jsx)(ec.Provider,{value:a,children:r})},em={CatalogPlainText:"CatalogPlainText",CatalogRichText:"CatalogRichText",Custom:"Custom"},ex=e=>{let{summaryText:a,description:r,accordions:n,product:i,...o}=e,d=(0,t.useCallback)(e=>{switch(r.source){case em.CatalogPlainText:return e.plainTextDescription;case em.CatalogRichText:return e.description;case em.Custom:return r.slot}},[r.source,r.slot]),c=(0,t.useCallback)(e=>null!=e?(0,ed.X)(e,n,(e,a)=>({...e,content:a.content})):void 0,[n]);return(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(eo,{}),value:i,children:e=>(0,l.jsx)(s.Z6,{fallback:(0,l.jsx)(eo,{}),value:e.accordions,children:r=>(0,l.jsx)(X,{...o,product:{...e,summary:a,description:d(e),accordions:c(r)}})})})},eh=(0,t.forwardRef)((e,a)=>{let r=(0,t.useContext)(ec);return null==r?(console.error("No context provided for MakeswiftProductDetail"),(0,l.jsx)("p",{ref:a,children:"There was an error rendering the product detail."})):(0,l.jsx)("div",{className:"flex flex-col",ref:a,children:(0,l.jsx)(ex,{...r,...e})})})},88299:(e,a,r)=>{r.r(a),r.d(a,{Carousel:()=>u,CarouselButtons:()=>h,CarouselContent:()=>m,CarouselItem:()=>x,CarouselScrollbar:()=>f});var l=r(11650),t=r(50633),s=r(88006),n=r(18193),i=r(80154),o=r(78410);let d=o.createContext(null);function c(){let e=o.useContext(d);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function u(e){let{opts:a,setApi:r,plugins:n,className:i,children:c,hideOverflow:u=!0,...m}=e,[x,h]=(0,s.A)(a,n),[f,v]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),b=o.useCallback(e=>{e&&(v(e.canScrollPrev()),g(e.canScrollNext()))},[]),j=(0,o.useCallback)(()=>null==h?void 0:h.scrollPrev(),[h]),N=(0,o.useCallback)(()=>null==h?void 0:h.scrollNext(),[h]),w=(0,o.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),j()):"ArrowRight"===e.key&&(e.preventDefault(),N())},[j,N]);return(0,o.useEffect)(()=>{h&&r&&r(h)},[h,r]),(0,o.useEffect)(()=>{if(h)return b(h),h.on("reInit",b),h.on("select",b),()=>{h.off("select",b)}},[h,b]),(0,l.jsx)(d.Provider,{value:{carouselRef:x,api:h,opts:a,scrollPrev:j,scrollNext:N,canScrollPrev:f,canScrollNext:p},children:(0,l.jsx)("div",{...m,"aria-roledescription":"carousel",className:(0,t.$)("relative @container",u&&"overflow-hidden",i),onKeyDownCapture:w,role:"region",children:c})})}function m(e){let{className:a,...r}=e,{carouselRef:s}=c();return(0,l.jsx)("div",{className:"w-full",ref:s,children:(0,l.jsx)("div",{...r,className:(0,t.$)("-ml-4 flex @2xl:-ml-5",a)})})}function x(e){let{className:a,...r}=e;return(0,l.jsx)("div",{...r,"aria-roledescription":"slide",className:(0,t.$)("min-w-0 shrink-0 grow-0 pl-4 @2xl:pl-5",a),role:"group"})}function h(e){let{className:a,colorScheme:r="light",previousLabel:s="Previous",nextLabel:o="Next",...d}=e,{scrollPrev:u,scrollNext:m,canScrollPrev:x,canScrollNext:h}=c();return(0,l.jsxs)("div",{...d,className:(0,t.$)("flex gap-2",{light:"text-[var(--carousel-light-button,hsl(var(--foreground)))]",dark:"text-[var(--carousel-dark-button,hsl(var(--background)))]"}[r],a),children:[(0,l.jsx)("button",{className:"rounded-lg ring-[var(--carousel-focus,hsl(var(--primary)))] transition-colors duration-300 focus-visible:outline-0 focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-25",disabled:!x,onClick:u,title:s,children:(0,l.jsx)(n.A,{strokeWidth:1.5})}),(0,l.jsx)("button",{className:"rounded-lg ring-[var(--carousel-focus,hsl(var(--primary)))] transition-colors duration-300 focus-visible:outline-0 focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-25",disabled:!h,onClick:m,title:o,children:(0,l.jsx)(i.A,{strokeWidth:1.5})})]})}function f(e){let{className:a,colorScheme:r="light",label:s="Carousel scrollbar"}=e,{api:n,canScrollPrev:i,canScrollNext:d}=c(),[u,m]=(0,o.useState)(0),[x,h]=(0,o.useState)({width:0,left:0}),f=(0,o.useCallback)(e=>{if(!n)return 0;let a=e/100,r=n.scrollSnapList();if(0===r.length)return -1;let l=r.reduce((e,r)=>
1Math.abs(r-a)<Math.abs(e-a)?r:e);return r.findIndex(e=>e===l)},[n]);return(0,o.useEffect)(()=>{if(!n)return;let e=n.scrollSnapList(),a=f(u);h({width:100/e.length,left:a/e.length*100}),n.scrollTo(a)},[u,n,f]),(0,o.useEffect)(()=>{if(n)return n.on("select",e),n.on("scroll",e),n.on("reInit",e),()=>{n.off("select",e),n.off("scroll",e),n.off("reInit",e)};function e(){n&&m(100*n.scrollSnapList()[n.selectedScrollSnap()])}},[n]),(0,l.jsxs)("div",{className:(0,t.$)("relative flex h-6 w-full max-w-56 items-center overflow-hidden",!i&&!d&&"pointer-events-none invisible",a),children:[(0,l.jsx)("input",{"aria-label":s,"aria-orientation":"horizontal","aria-valuenow":u,"aria-valuetext":"".concat(Math.round(u),"%"),className:"absolute h-full w-full cursor-pointer appearance-none bg-transparent opacity-0",max:100,min:0,onChange:e=>m(e.currentTarget.valueAsNumber),type:"range",value:u}),(0,l.jsx)("div",{className:(0,t.$)("pointer-events-none absolute h-1 w-full rounded-full opacity-10",{light:"bg-[var(--carousel-light-scrollbar,hsl(var(--foreground)))]",dark:"bg-[var(--carousel-dark-scrollbar,hsl(var(--background)))]"}[r])}),(0,l.jsx)("div",{className:(0,t.$)("pointer-events-none absolute h-1 rounded-full transition-all ease-out",{light:"bg-[var(--carousel-light-scrollbar,hsl(var(--foreground)))]",dark:"bg-[var(--carousel-dark-scrollbar,hsl(var(--background)))]"}[r]),style:{width:"".concat(x.width,"%"),left:"".concat(x.left,"%")}})]})}},88973:(e,a,r)=>{r.d(a,{R:()=>o});var l=r(11650),t=r(18788),s=r(50633),n=r(78410),i=r(36624);let o=n.forwardRef((e,a)=>{let{label:r,options:o,errors:d,className:c,onOptionMouseEnter:u,...m}=e,x=n.useId();return(0,l.jsxs)("div",{className:(0,s.$)("space-y-2",c),children:[(0,l.jsx)(t.bL,{...m,"aria-labelledby":x,className:"flex flex-wrap gap-2",ref:a,children:o.map(e=>(0,l.jsx)(t.q7,{"aria-label":e.label,className:(0,s.$)("h-12 whitespace-nowrap rounded-full border border-contrast-100 px-4 font-body text-sm font-normal leading-normal ring-primary transition-colors focus-visible:outline-0 focus-visible:ring-2 data-[disabled]:pointer-events-none data-[state=checked]:bg-foreground data-[state=unchecked]:bg-background data-[state=checked]:text-background data-[disabled]:opacity-50 data-[disabled]:hover:border-transparent data-[state=unchecked]:hover:border-contrast-200 data-[state=unchecked]:hover:bg-contrast-100",d&&d.length>0?"disabled:border-error/50 data-[state=unchecked]:border-error":"data-[state=checked]:border-foreground"),disabled:e.disabled,id:e.value,onMouseEnter:()=>{"function"==typeof u&&u(e.value)},value:e.value,children:e.label},e.value))}),null==d?void 0:d.map(e=>(0,l.jsx)(i.b,{children:e},e))]})});o.displayName="ButtonRadioGroup"}}]);

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.