1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,754386,e=>{"use strict";var s=e.i(271645);e.s([],90692),e.i(90692),e.i(523472);var a=e.i(3529),t=e.i(122707),l=e.i(445510),i=e.i(228242);let{ERROR_MESSAGES:r}=t.constants,n=async(e,s,a)=>{if(!e)return i.default.form(`${r.MV_001}. Form was not able to render.`),"";let t=(0,l.getEdgeProxyFormsUrl)(e,s,a);try{i.default.form(`Fetching form data from ${t}`);let e=await fetch(t,{method:"GET",cache:"no-cache"});if(200!==e.status)throw Error(`Failed to fetch form data. ${r.CONTACT_SUPPORT}`);let s=await e.text();return i.default.form(`Form data fetch response: ${s}`),s}catch(e){throw i.default.form(`Form '${s}' was not able to render. ${r.CONTACT_SUPPORT}`,e),e}};e.s(["executeScriptElements",0,e=>{let s=e.querySelectorAll("script");s&&Array.from(s).forEach(e=>{var s;let a=document.createElement("script");Array.from(e.attributes).forEach(e=>{a.setAttribute(e.name,e.value)}),a.text=e.text,null==(s=null==e?void 0:e.parentNode)||s.replaceChild(a,e)})},"loadForm",0,n,"subscribeToFormSubmitEvent",0,(e,s)=>{e.addEventListener("form:engage",e=>{let{formId:t,name:l}=e.detail;t&&l&&(i.default.form("Sending form event",t,l),(0,a.form)(t,l,(null==s?void 0:s.replace(/-/g,""))||""))})}],549826);var d=e.i(549826),d=d,o=e.i(882596),c=e.i(809467);let{ERROR_MESSAGES:u}=t.constants,{executeScriptElements:m,loadForm:f,subscribeToFormSubmitEvent:h}=d;e.s(["Form",0,({params:e,rendering:a})=>{var t,l,i,r,n;let d=null==e?void 0:e.RenderingIdentifier,[p,x]=(0,s.useState)(!1),[v,g]=(0,s.useState)(""),b=(0,o.useSitecore)(),j=(0,s.useRef)(null),C=b.page.mode.isEditing;return((0,s.useEffect)(()=>{var s,t,l,i;if(v){if(!j.current)return;C||h(j.current,a.uid),m(j.current)}else{let a=null==(t=null==(s=b.api)?void 0:s.edge)?void 0:t.clientContextId;if(!a)return void console.warn(`${u.MV_006}. Form cannot be loaded properly on the client`);f(a,e.FormId,null==(i=null==(l=b.api)?void 0:l.edge)?void 0:i.edgeUrl).then(g).catch(()=>{C&&console.error(`Failed to load form with id ${e.FormId}. Check debug logs for content-sdk:form for more details. ${u.CONTACT_SUPPORT}`),x(!0)})}},[v,C,e.FormId,a.uid,null==(l=null==(t=b.api)?void 0:t.edge)?void 0:l.clientContextId,null==(r=null==(i=b.api)?void 0:i.edge)?void 0:r.edgeUrl]),C&&p)?s.default.createElement(c.ErrorComponent,{message:"There was a problem loading this section"}):s.default.createElement("div",{ref:j,dangerouslySetInnerHTML:{__html:v},className:null==(n=e.styles)?void 0:n.trimEnd(),id:d||void 0})},"mockFormModule",0,e=>{m=e.executeScriptElements,f=e.loadForm,h=e.subscribeToFormSubmitEvent}],754386)},628801,e=>{e.v({actionButton:"TechDocChatBot-module__5dFCNW__actionButton",actionButtonsContainer:"TechDocChatBot-module__5dFCNW__actionButtonsContainer",actionButtonsRow:"TechDocChatBot-module__5dFCNW__actionButtonsRow",betaField:"TechDocChatBot-module__5dFCNW__betaField",buttonIcon:"Tech
1DocChatBot-module__5dFCNW__buttonIcon",charCounter:"TechDocChatBot-module__5dFCNW__charCounter",chatHeader:"TechDocChatBot-module__5dFCNW__chatHeader",chatInput:"TechDocChatBot-module__5dFCNW__chatInput",chatbotContainer:"TechDocChatBot-module__5dFCNW__chatbotContainer",chatbotRoot:"TechDocChatBot-module__5dFCNW__chatbotRoot",closeConfirmActions:"TechDocChatBot-module__5dFCNW__closeConfirmActions",closeConfirmButtonNo:"TechDocChatBot-module__5dFCNW__closeConfirmButtonNo",closeConfirmButtonYes:"TechDocChatBot-module__5dFCNW__closeConfirmButtonYes",closeConfirmContent:"TechDocChatBot-module__5dFCNW__closeConfirmContent",closeConfirmOverlay:"TechDocChatBot-module__5dFCNW__closeConfirmOverlay",closeConfirmText:"TechDocChatBot-module__5dFCNW__closeConfirmText",closeConfirmTitle:"TechDocChatBot-module__5dFCNW__closeConfirmTitle",disclaimer:"TechDocChatBot-module__5dFCNW__disclaimer",disclaimerLink:"TechDocChatBot-module__5dFCNW__disclaimerLink","document-link":"TechDocChatBot-module__5dFCNW__document-link","download-link":"TechDocChatBot-module__5dFCNW__download-link",exitConfirmActions:"TechDocChatBot-module__5dFCNW__exitConfirmActions",exitConfirmCloseButton:"TechDocChatBot-module__5dFCNW__exitConfirmCloseButton",exitConfirmContent:"TechDocChatBot-module__5dFCNW__exitConfirmContent",exitConfirmNo:"TechDocChatBot-module__5dFCNW__exitConfirmNo",exitConfirmText:"TechDocChatBot-module__5dFCNW__exitConfirmText",exitConfirmYes:"TechDocChatBot-module__5dFCNW__exitConfirmYes",expandIcon:"TechDocChatBot-module__5dFCNW__expandIcon",fadingOut:"TechDocChatBot-module__5dFCNW__fadingOut",feedbackAck:"TechDocChatBot-module__5dFCNW__feedbackAck",feedbackButton:"TechDocChatBot-module__5dFCNW__feedbackButton",feedbackButtonActive:"TechDocChatBot-module__5dFCNW__feedbackButtonActive",feedbackButtonDisabled:"Tech
1DocChatBot-module__5dFCNW__feedbackButtonDisabled",feedbackIcon:"TechDocChatBot-module__5dFCNW__feedbackIcon",feedbackLabel:"TechDocChatBot-module__5dFCNW__feedbackLabel",feedbackPending:"TechDocChatBot-module__5dFCNW__feedbackPending",feedbackSection:"TechDocChatBot-module__5dFCNW__feedbackSection",floatingButton:"TechDocChatBot-module__5dFCNW__floatingButton",headerButton:"TechDocChatBot-module__5dFCNW__headerButton",headerButtonIcon:"TechDocChatBot-module__5dFCNW__headerButtonIcon",headerIcon:"TechDocChatBot-module__5dFCNW__headerIcon",headerIconWrapper:"TechDocChatBot-module__5dFCNW__headerIconWrapper",headerLeft:"TechDocChatBot-module__5dFCNW__headerLeft",headerRight:"TechDocChatBot-module__5dFCNW__headerRight",headerTitle:"TechDocChatBot-module__5dFCNW__headerTitle",hidden:"TechDocChatBot-module__5dFCNW__hidden",inputArea:"TechDocChatBot-module__5dFCNW__inputArea",inputWrapper:"TechDocChatBot-module__5dFCNW__inputWrapper",messageBubble:"TechDocChatBot-module__5dFCNW__messageBubble",messageBubbleBot:"TechDocChatBot-module__5dFCNW__messageBubbleBot",messageBubbleUser:"TechDocChatBot-module__5dFCNW__messageBubbleUser",messageContainer:"TechDocChatBot-module__5dFCNW__messageContainer",messageContent:"TechDocChatBot-module__5dFCNW__messageContent",messageRow:"TechDocChatBot-module__5dFCNW__messageRow",messageRowBot:"TechDocChatBot-module__5dFCNW__messageRowBot",messageRowUser:"TechDocChatBot-module__5dFCNW__messageRowUser",messageText:"TechDocChatBot-module__5dFCNW__messageText",messagesArea:"TechDocChatBot-module__5dFCNW__messagesArea",minimizedContent:"TechDocChatBot-module__5dFCNW__minimizedContent",minimizedHeader:"TechDocChatBot-module__5dFCNW__minimizedHeader",minimizedIcon:"TechDocChatBot-module__5dFCNW__minimizedIcon",minimizedIconWrapper:"TechDocChatBot-module__5dFCNW__minimizedIconWrapper",minimizedLeft:"TechDocChatBot-module__5dFCNW__minimizedLeft",minimizedTitle:"TechDocChatBot-module__5dFCNW__minimizedTitle",modalActions:"TechDocChatBot-module__5dFCNW__modalActions",modalButtonPrimary:"TechDocChatBot-module__5dFCNW__modalButtonPrimary",modalButtonSecondary:"TechDocChatBot-module__5dFCNW__modalButtonSecondary",modalContent:"TechDocChatBot-module__5dFCNW__modalContent",modalOverlay:"TechDocChatBot-module__5dFCNW__modalOverlay",modalText:"TechDocChatBot-module__5dFCNW__modalText",modalTextarea:"TechDocChatBot-module__5dFCNW__modalTextarea",modalTitle:"TechDocChatBot-module__5dFCNW__modalTitle",moreInfoCloseButton:"TechDocChatBot-module__5dFCNW__moreInfoCloseButton",moreInfoCloseIcon:"TechDocChatBot-module__5dFCNW__moreInfoCloseIcon",moreInfoContent:"TechDocChatBot-module__5dFCNW__moreInfoContent",moreInfoLink:"TechDocChatBot-module__5dFCNW__moreInfoLink",moreInfoOverlay:"TechDocChatBot-module__5dFCNW__moreInfoOverlay",moreInfoText:"TechDocChatBot-module__5dFCNW__moreInfoText",moreInfoTitle:"TechDocChatBot-module__5dFCNW__moreInfoTitle",ratingStars:"TechDocChatBot-module__5dFCNW__ratingStars",safeAreaBottom:"TechDocChatBot-module__5dFCNW__safeAreaBottom",sendButton:"TechDocChatBot-module__5dFCNW__sendButton",sendButtonIcon:"Tech
1DocChatBot-module__5dFCNW__sendButtonIcon",sourceCard:"TechDocChatBot-module__5dFCNW__sourceCard",sourceCardContent:"TechDocChatBot-module__5dFCNW__sourceCardContent",sourceDownloadBadge:"TechDocChatBot-module__5dFCNW__sourceDownloadBadge",sourceDownloadIcon:"TechDocChatBot-module__5dFCNW__sourceDownloadIcon",sourceFileName:"TechDocChatBot-module__5dFCNW__sourceFileName",sourceIcon:"TechDocChatBot-module__5dFCNW__sourceIcon",sourceIconWrapper:"TechDocChatBot-module__5dFCNW__sourceIconWrapper",sourcePageNumbers:"TechDocChatBot-module__5dFCNW__sourcePageNumbers",sourcesContainer:"TechDocChatBot-module__5dFCNW__sourcesContainer",sourcesNavArrow:"TechDocChatBot-module__5dFCNW__sourcesNavArrow",sourcesNavButton:"TechDocChatBot-module__5dFCNW__sourcesNavButton",sourcesNavIcon:"TechDocChatBot-module__5dFCNW__sourcesNavIcon",sourcesScroll:"TechDocChatBot-module__5dFCNW__sourcesScroll",starButton:"TechDocChatBot-module__5dFCNW__starButton",supportFooter:"TechDocChatBot-module__5dFCNW__supportFooter",supportFooterText:"TechDocChatBot-module__5dFCNW__supportFooterText",supportLink:"TechDocChatBot-module__5dFCNW__supportLink",thinkingDot:"TechDocChatBot-module__5dFCNW__thinkingDot",thinkingDots:"TechDocChatBot-module__5dFCNW__thinkingDots",thinkingPulse:"TechDocChatBot-module__5dFCNW__thinkingPulse",thinkingStatus:"TechDocChatBot-module__5dFCNW__thinkingStatus",thinkingStatusText:"TechDocChatBot-module__5dFCNW__thinkingStatusText",timestamp:"TechDocChatBot-module__5dFCNW__timestamp",timestampBot:"TechDocChatBot-module__5dFCNW__timestampBot",timestampUser:"TechDocChatBot-module__5dFCNW__timestampUser"})},276962,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(589669),l=e.i(271645),i=e.i(628801);console.log("[TechDocChatBot] Component loaded and ready");let r={searching:["Searching documents...","Matching product lines and document types...","Comparing matching documents...","Checking source relevance...","Scanning related technical sections...","Cross-checking product references...","Narrowing to the best source excerpts...","Preparing source cards...","Grouping supporting evidence...","Organizing the strongest matches..."],analyzing:["Analyzing sources...","Reading the most relevant excerpts...","Comparing details across documents...","Weighing evidence across sources...","Reconciling overlapping evidence...","Verifying the answer against source text...","Drafting answer...","Tightening wording...","Adding citations...","Finalizing response...","Preparing the final answer..."]},n={searching:["Reviewing additional document matches...","Checking neighboring source sections...","Refining the document shortlist..."],analyzing:["Double-checking supporting details...","Confirming the best citations...","Polishing the final response..."]},d={searching:"Still searching documents... ({elapsedSeconds}s)",analyzing:"Still preparing the response... ({elapsedSeconds}s)"},o=(e,s,a)=>{let t=r[e];if(s<t.length)return t[s];let l=n[e],i=s-t.length;if(i<l.length)return l[i];let o=Math.max(2,Math.floor(a/1e3));return d[e].replace("{elapsedSeconds}",String(o))};function c(e,s){return s||("searching"===e?"Searching documents...":"analyzing"===e?"Analyzing sources...":e?`${e.replace(/_/g," ")}...`:"Working...")}function u(e,s){if("status"===e.type){let a=(e.stage??"").toString(),t=c(a,e.message);"searching"===a||"analyzing"===a?s.updateStatusStage(a,t):s.updateStatus(t)}else if("sources"===e.type){let a=Array.isArray(e.sources)?e.sources:[];a.length>0&&s.updateStatusStage("analyzing",`Found ${a.length} sources. Generating answer...`),s.setFinalSources(a),s.patchMessageById(s.thinkingId,{sources:a})}else if("answer"===e.type){s.stopStatusRotation();let a=s.appendAnswer(e.delta??"");s.patchMessageById(s.thinkingId,{text:a,isThinking:!1})}else if("answer_final"===e.type){s.stopStatusRotation();let a=e.answer_html??"";a&&(s.setFinalAnswer(a),s.patchMessageById(s.thinkingId,{text:a,isThinking:!1}))}else"done"===e.type&&s.setFinalIds(e.message_id,e.session_id)}function m(e){let s=e.trim();if(!s)return null;try{let e=s.startsWith("data:")?s.slice(5).trim():s;return JSON.parse(e)}catch(e){return console.warn("Stream parse error",e,s),null}}async function f(e,s){let a,t,l=new TextDecoder,i="",r="",n=null,d=[],o={...s,setFinalSources:e=>{d=e},appendAnswer:e=>r+=e,setFinalAnswer:e=>{n=e},setFinalIds:(e,s)=>{a=e,t=s}};for(;;){let{done:s,value:a}=await e.read();if(s)break;if(!a)continue;let t=(i+=l.decode(a,{stream:!0})).split("\n");for(let e of(i=t.pop()??"",t)){let s=m(e);s&&u(s,o)}}return{answerHtml:n,answerBuffer:r,sources:d,messageId:a,sessionId:t}}let h=(0,t.withDatasourceCheck)(function(e){let[t,r]=(0,l.useState)(!1),[n,d]=(0,l.useState)(!1),[c,u]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),[p,x]=(0,l.useState)(void 0),v="Hello! I'm your TechDoc assistant. I can help you with questions about Andersen Windows & Doors products, technical documentation, and installation procedures. What would you like to know?",[g,b]=(0,l.useState)([{id:"1",text:v,isUser:!1,timestamp:new Date}]),[j,C]=(0,l.useState)(""),[y,N]=(0,l.useState)(!1),[w,_]=(0,l.useState)(!1),k=(0,l.useRef)(null),[T]=(0,l.useState)(!1),[S,F]=(0,l.useState)([]),[I,D]=(0,l.useState)({open:!1,messageId:void 0,rating:0,userName:"",accuracy:"",sources:"",completeness:"",relevance:"",answers:{}}),[W,L]=(0,l.useState)(null),[E]=(0,l.useState)({open:!1,mode:"login",username:"",email:"",displayName:"",password:"",busy:!1,error:null}),[B,P]=(0,l.useState)(!1),[A,R]=(0,l.useState)(null);async function z(){try{let e=await fetch("/api/auth/me");if(!e.ok)return void L(null);let s=await e.json();L(s)}catch{L(null)}}async function q(e){let s={message_id:e.messageId,session_id:p??null,rating:e.rating,user_name:e.userName??null,responses:e.responses},a=await fetch("/api/ai/feedback-beta",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!a.ok)throw Error("Beta feedback failed");return await a.json()}function O(e,s){b(a=>{let t=[...a];return t[e]={...t[e],...s},t})}function M(e,s){b(a=>{let t=a.findIndex(s=>s.id===e);if(-1===t)return a;let l=[...a];return l[t]={...l[t],...s},l})}async function $(){let e=I.messageId,s=g.findIndex(s=>s.id===e),a=g[s],t=Object.entries(I.answers).map(([e,s])=>({question_id:parseInt(e),answer_text:s}));try{O(s,{feedbackPending:!0}
1),await q({messageId:a.backendMessageId,rating:I.rating,userName:I.userName.trim()||null,responses:t}),O(s,{feedbackPending:!1,feedbackAckText:"Thank you, your feedback helps us improve!",betaFeedback:{rating:I.rating,userName:I.userName.trim()||null,responses:t},fadingAck:!1}),setTimeout(()=>{O(s,{fadingAck:!0}),setTimeout(()=>{O(s,{feedbackAckText:void 0,fadingAck:!1})},500)},2e3)}catch(e){console.error(e),O(s,{feedbackPending:!1})}finally{D(e=>({...e,open:!1}))}}(0,l.useEffect)(()=>{z()},[]),(0,l.useEffect)(()=>{!async function(){try{let e=await fetch("/api/ai/feedback-questions/");if(e.status>=300&&e.status<400){let s=e.headers.get("location"),a=s?new URL(s,window.location.origin).toString():e.url;console.warn("[TechDocChatBot] feedback-questions redirect",{status:e.status,location:s,redirectUrl:a})}if(e.redirected&&console.warn("[TechDocChatBot] feedback-questions redirected to",e.url),e.ok){let s=await e.json();F(s)}}catch(e){console.error("Failed to load feedback questions",e)}}()},[]),(0,l.useEffect)(()=>{let e,s=()=>{let e=window.innerWidth;u(e<768),h(e>=768&&e<1024)},a=()=>{clearTimeout(e),e=setTimeout(s,150)};return s(),window.addEventListener("resize",a),()=>{clearTimeout(e),window.removeEventListener("resize",a)}},[]),(0,l.useEffect)(()=>{k.current?.scrollIntoView({behavior:"smooth",block:"end"})},[g,y]);let V=async()=>{let e;if(!j.trim())return;let s={id:Date.now().toString(),text:j.trim(),isUser:!0,timestamp:new Date};b(e=>[...e,s]);let a=j.trim();C(""),N(!0);let t=`thinking-${Date.now()}`;b(e=>[...e,{id:t,text:"Searching documents...",isUser:!1,timestamp:new Date,isThinking:!0}]);let l="searching",i=0,r=Date.now(),n=()=>{e&&(clearInterval(e),e=void 0)},d=(e,s=!0)=>{M(t,{text:e,isThinking:s})},c=(s,a)=>{l=s,i=0,r=Date.now(),d(a??o(s,0,0),!0),n(),e=setInterval(()=>{i+=1,d(o(l,i,Date.now()-r),!0)},2e3)};c("searching");try{let e={question:a,verbose:!1,session_id:p??null,stream:!0};console.log("POST /ai/answer payload",e);let s=await fetch("/api/ai/answer/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/x-ndjson"},body:JSON.stringify(e)});if(!s.ok){let e=await s.text();throw Error(e??`Upstream error (${s.status})`)}if(!s.body)throw Error("No response body from server");let l=await f(s.body.getReader(),{updateStatusStage:c,updateStatus:e=>d(e,!0),stopStatusRotation:n,patchMessageById:M,thinkingId:t,setFinalSources:()=>{},appendAnswer:()=>"",setFinalAnswer:()=>{},setFinalIds:()=>{}});n();let i=(l.answerHtml??l.answerBuffer??"No response content.").replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/<a\s+href="([^"]*\/downloadfile\?filename=[^"]+)"([^>]*)>([^<]+)<\/a>/gi,(e,s,a,t)=>`<a href="${s}" class="document-link"${a}>${t}<svg xmlns="http://www.w3.org/2000/svg" width="12" height="14" viewBox="0 0 12 14" fill="none" style="display:inline-block;vertical-align:middle;margin-left:6px;"><path d="M5.53125 10L5.53125 1" stroke="#ED6833" stroke-width="1.5"/><path d="M10.4297 4.94922L5.47994 9.89897L0.530193 4.94922" stroke="#ED6833" stroke-width="1.5"/><path d="M0.03125 13H11.0312" stroke="#ED6833" stroke-width="2"/></svg></a>`);M(t,{id:(Date.now()+1).toString(),text:i,isThinking:!1,sources:l.sources,backendMessageId:l.messageId,backendSessionId:l.sessionId}),l.sessionId&&p!==l.sessionId&&x(l.sessionId)}catch(e){console.error("API Error:",e),n(),M(t,{text:`Backend Error: ${e instanceof Error?e.message:"Unknown error"}`,isThinking:!1})}finally{n(),N(!1)}},U=()=>{_(!1)},G=()=>{n&&d(!1),r(!0)};if(!e.fields)return(0,s.jsx)(s.Fragment,{});let H=c?{width:"100vw",height:"100vh",bottom:0,right:0,top:"auto",borderRadius:0}:m?{width:"400px",height:"600px",bottom:"24px",right:"24px",top:"auto",borderRadius:"16px"}:{width:"480px",height:"600px",bottom:"24px",right:"24px",top:"auto",borderRadius:"16px"};return(0,s.jsxs)("div",{className:i.default.chatbotRoot,children:[!t&&!n&&(0,s.jsx)("button",{onClick:G,className:i.default.floatingButton,"aria-label":"Open chat",children:(0,s.jsx)("img",{src:"/chatbot-icon.svg",alt:"ChatBot",className:i.default.buttonIcon})}),n&&(0,s.jsx)("div",{onClick:G,className:i.default.minimizedHeader,children:(0,s.jsxs)("div",{className:i.default.minimizedContent,children:[(0,s.jsxs)("div",{className:i.default.minimizedLeft,children:[(0,s.jsx)("div",{className:i.default.minimizedIconWrapper,children:(0,s.jsx)("img",{src:"/chatbot-icon.svg",alt:"ChatBot",className:i.default.minimizedIcon})}),(0,s.jsx)("span",{className:i.default.minimizedTitle,children:"Tech Doc ChatBot"})]}),(0,s.jsx)("svg",{className:i.default.expandIcon,viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:(0,s.jsx)("polyline",{points:"18 15 12 9 6 15"})})]})}),t&&(0,s.jsxs)("div",{className:i.default.chatbotContainer,style:{width:H.width,height:H.height,bottom:H.bottom,right:H.right,top:H.top,borderRadius:H.borderRadius},children:[(0,s.jsxs)("div",{className:i.default.chatHeader,children:[(0,s.jsxs)("div",{className:i.default.headerLeft,children:[(0,s.jsx)("div",{className:i.default.headerIconWrapper,children:(0,s.jsx)("img",{src:"/chatbot-icon.svg",alt:"ChatBot",className:i.default.headerIcon})}),(0,s.jsx)("h3",{className:i.default.headerTitle,children:"Tech Doc ChatBot"})]}),(0,s.jsxs)("div",{className:i.default.headerRight,children:[!c&&(0,s.jsx)("button",{onClick:()=>{d(!0),r(!1)},className:i.default.headerButton,"aria-label":"Minimize",children:(0,s.jsx)("svg",{className:i.default.headerButtonIcon,viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,s.jsx)("path",{d:"M6 21V19H18V21H6Z"})})}),(0,s.jsx)("button",{onClick:()=>{_(!0)},className:i.default.headerButton,"aria-label":"Close",children:(0,s.jsx)("svg",{className:i.default.headerButtonIcon,viewBox:"0 0 24 24",fill:"currentColor",children:(0,s.jsx)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z"})})})]})]}),(0,s.jsxs)("div",{className:i.default.disclaimer,children:["AI-generated responses."," ",(0,s.jsx)("span",{className:i.default.disclaimerLink,onClick:()=>P(!0),children:"More information"})]}),(0,s.jsxs)("div",{className:i.default.messagesArea,children:[g.map((e,t)=>(0,s.jsxs)("div",{className:i.default.messageContainer,children:[(0,s.jsx)("div",{className:(0,a.default)(i.default.messageRow,e.isUser?i.default.messageRowUser:i.default.messageRowBot),children:(0,s.jsxs)("div",{className:i.default.messageContent,children:[(0,s.jsxs)("div",{className:(0,a.default)(i.default.messageBubble,e.isUser?i.default.messageBubbleUser:i.default.messageBubbleBot),children:[e.isThinking?(0,s.jsxs)("div",{className:i.default.thinkingStatus,children:[(0,s.jsx)("span",{className:i.default.thinkingStatusText,children:e.text}),(0,s.jsxs)("div",{className:i.default.thinkingDots,children:[(0,s.jsx)("span",{className:i.default.thinkingDot}),(0,s.jsx)("span",{className:i.default.thinkingDot}),(0,s.jsx)("span",{className:i.default.thinkingDot}),(0,s.jsx)("span",{className:i.default.thinkingDot})]})]}):(0,s.jsx)("p",{className:i.default.messageText,dangerouslySetInnerHTML:{__html:e.text}}),null]}),!e.isUser&&!e.isThinking&&e.backendMessageId&&(0,s.jsx)("div",{className:i.default.feedbackSection,children:!e.feedbackPending&&e.feedbackAckText?(0,s.jsx)("span",{className:(0,a.default)(i.default.feedbackAck,e.fadingAck&&i.default.fadingOut),children:e.feedbackAckText}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:i.default.feedbackLabel,children:e.betaFeedback?"You rated this:":"Rate this answer:"}),(0,s.jsx)("div",{className:i.default.ratingStars,onMouseLeave:()=>R(null),children:[1,2,3,4,5].map(a=>{let l=!!e.betaFeedback,r=I.open&&I.messageId===e.id,n=A?.id===e.id,d=0;return l?d=e.betaFeedback.rating:n?d=A.rating:r&&(d=I.rating),(0,s.jsx)("button",{onClick:()=>!l&&((e,s)=>{let a=g[e];if(!a.backendMessageId)return;let t={},l=S.find(e=>"sources"===e.key);if(l&&a.sources&&a.sources.length>0){let e=a.sources.map(e=>{var s;let a=e.file_name??"Document",t=Array.isArray(s=e.page_numbers)?s.join(", "):"string"==typeof s?s:"";return t?`${a} (Page ${t})`:a}).join("\n");t[l.id]=e}D({open:!0,messageId:a.id,rating:s,userName:W?.display_name??"",accuracy:"",sources:l&&"number"==typeof l.id?t[l.id]??"":"",completeness:"",relevance:"",answers:t})})(t,a),onMouseEnter:()=>!l&&R({id:e.id,rating:a}),disabled:l,className:i.default.starButton,type:"button","aria-label":`${a} stars`,children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:d>=a?"#ED6833":"none",stroke:"#ED6833",width:"24",height:"24",children:(0,s.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})},a)})})]})})]})}),(0,s.jsx)("div",{className:(0,a.default)(i.default.timestamp,e.isUser?i.default.timestampUser:i.default.timestampBot),children:e.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]},e.id)),(0,s.jsx)("div",{"aria-hidden":!0,style:{height:8}}),(0,s.jsx)("div",{ref:k})]}),(0,s.jsx)("div",{className:i.default.actionButtonsContainer,children:(0,s.jsxs)("div",{className:i.default.actionButtonsRow,children:[(0,s.jsx)("a",{href:"/technical-documents/",className:i.default.actionButton,children:"Find another document"}),(0,s.jsx)("a",{href:"/support/contact-us/",className:i.default.actionButton,children:"Contact an Expert"})]})}),(0,s.jsx)("div",{className:i.default.inputArea,children:(0,s.jsxs)("div",{className:i.default.inputWrapper,children:[(0,s.jsx)("input",{type:"text",value:j,onChange:e=>{e.target.value.length<=200&&C(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),V())},placeholder:"Type your message here...",className:i.default.chatInput,disabled:y}),(0,s.jsxs)("span",{className:i.default.charCounter,children:["/",200]}),(0,s.jsx)("button",{onClick:V,disabled:!j.trim()||y,className:i.default.sendButton,"aria-label":"Send message",children:(0,s.jsx)("svg",{className:i.default.sendButtonIcon,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M6 4L20 12L6 20V4Z",stroke:j.trim()?"#ED6833":"#D1D5DB",strokeWidth:"2",strokeLinejoin:"round"})})})]})}),(0,s.jsx)("div",{className:(0,a.default)(i.default.supportFooter,c&&i.default.safeAreaBottom),children:(0,s.jsxs)("p",{className:i.default.supportFooterText,children:["Contact us at"," ",(0,s.jsx)("a",{href:"tel:18009333626",className:i.default.supportLink,"aria-label":"Call Andersen support at 1 800 933 3626",children:"1-800-933-3626"})]})}),I.open&&(0,s.jsx)("div",{className:i.default.modalOverlay,children:(0,s.jsxs)("div",{className:i.default.modalContent,style:{maxWidth:"650px"},children:[(0,s.jsx)("h4",{className:i.default.modalTitle,children:"Help us improve!"}),(0,s.jsxs)("div",{className:i.default.modalRatingWrapper,children:[(0,s.jsx)("span",{className:i.default.modalRatingText,children:"You rated this:"}),(0,s.jsx)("div",{className:i.default.ratingStars,children:[1,2,3,4,5].map(e=>(0,s.jsx)("button",{onClick:()=>D(s=>({...s,rating:e})),className:i.default.starButton,type:"button",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:I.rating>=e?"#ED6833":"none",stroke:"#ED6833",width:"24",height:"24",children:(0,s.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})},e))})]}),(0,s.jsxs)("div",{className:i.default.betaField,children:[(0,s.jsx)("label",{htmlFor:"feedback-user-name",children:"Your name"}),(0,s.jsx)("input",{id:"feedback-user-name",type:"text",value:I.userName,onChange:e=>D(s=>({...s,userName:e.target.value})),placeholder:"Enter your name",className:i.default.chatInput})]}),S.map(e=>(0,s.jsxs)("div",{className:i.default.betaField,children:[(0,s.jsx)("label",{children:e.text}),(0,s.jsx)("textarea",{value:I.answers[e.id]??"",onChange:s=>{let a=s.target.value;D(s=>({...s,answers:{...s.answers,[e.id]:a}}))},placeholder:e.placeholder??"",className:i.default.modalTextarea})]},e.id)),(0,s.jsxs)("div",{className:i.default.modalActions,children:[(0,s.jsx)("button",{onClick:()=>D(e=>({...e,open:!1})),className:i.default.modalButtonSecondary,children:"Cancel"}),(0,s.jsx)("button",{onClick:$,className:i.default.modalButtonPrimary,children:"Submit Feedback"})]})]})}),w&&(0,s.jsx)("div",{className:i.default.modalOverlay,children:(0,s.jsxs)("div",{className:i.default.exitConfirmContent,children:[(0,s.jsx)("button",{onClick:U,className:i.default.exitConfirmCloseButton,"aria-label":"Close",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,s.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),(0,s.jsx)("path",{d:"M9 9l6 6M15 9l-6 6"})]})}),(0,s.jsx)("p",{className:i.default.exitConfirmText,children:"Are you sure you want to end the conversation?"}),(0,s.jsxs)("div",{className:i.default.exitConfirmActions,children:[(0,s.jsx)("button",{onClick:()=>{_(!1),r(!1),d(!1),x(void 0),b([{id:"1",text:v,isUser:!1,timestamp:new Date}])},className:i.default.exitConfirmYes,children:"Yes"}),(0,s.jsx)("button",{onClick:U,className:i.default.exitConfirmNo,children:"No"})]})]})}),B&&(0,s.jsx)("div",{className:i.default.moreInfoOverlay,style:{width:H.width,height:H.height,bottom:H.bottom,right:H.right,borderRadius:H.borderRadius},onClick:()=>P(!1),children:(0,s.jsxs)("div",{className:i.default.moreInfoContent,onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{onClick:()=>P(!1),className:i.default.moreInfoCloseButton,"aria-label":"Close",children:(0,s.jsx)("svg",{className:i.default.moreInfoCloseIcon,viewBox:"0 0 24 24",strokeWidth:"2.5",children:(0,s.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})}),(0,s.jsx)("h2",{className:i.default.moreInfoTitle,children:"More Information"}),(0,s.jsx)("p",{className:i.default.moreInfoText,children:"Please be advised that this chat may be monitored, copied, stored, or recorded and that by communicating and providing personal information, you agree to our privacy policy."}),(0,s.jsx)("a",{href:"https://www.andersenwindows.com/support/privacy",className:i.default.moreInfoLink,target:"_blank",rel:"noopener noreferrer",children:"Privacy Statement"})]})})]}),!1,!1]})});e.s(["Default",0,h,"consumeStream",0,f,"handleStreamEvent",0,u,"parseN
1djsonLine",0,m,"resolveStageText",0,c])},339512,e=>{"use strict";var s=e.i(843476);e.i(831457);var a=e.i(502318),t=e.i(71321),l=e.i(765794),i=e.i(940775),r=e.i(34202),n=e.i(655425),d=e.i(506785),o=e.i(243680),c=e.i(404620),u=e.i(119974),m=e.i(804563),f=e.i(309206),h=e.i(882596),p=e.i(641527),x=e.i(343794),v=e.i(612348),g=e.i(316454),b=e.i(39045),j=e.i(79920),C=e.i(284764),y=e.i(183665);e.i(318221);var N=e.i(173164);e.i(343888);var w=e.i(747586),_=e.i(382330);e.i(166157);var k=e.i(167597),T=e.i(242050),S=e.i(589669),F=e.i(6145),I=e.i(271645),D=e.i(112594),W=e.i(366761),L=e.i(789164);let E=p.default.coveo.organizationId,B=p.default.coveo.farmName,P=(0,S.withDatasourceCheck)(function(e){let p,{fields:S}=e,{page:P}=(0,h.useSitecore)(),{themeData:A}=(0,_.useTheme)(L.SizingToolTheme),R=(0,I.useRef)(null),z=(0,I.useRef)(null),q=(0,I.useRef)(null),O=(0,I.useRef)(null),M=(0,I.useRef)(null),$=(0,I.useRef)(null),[V,U]=(0,I.useState)(z.current?.state),[G,H]=(0,I.useState)(!1),[Y,Z]=(0,I.useState)(!1),K=e.fields?.facets?.length&&e.fields.facets.length>0,[J,Q]=(0,I.useState)(),X=(0,F.toShortId)(P.layout.sitecore.route?.itemId);return((0,I.useEffect)(()=>{let s=[];return(async()=>{let h=await (0,k.buildEngineAsync)(E);if(!h)return;let{updateAdvancedSearchQueries:p}=(0,u.loadAdvancedSearchQueryActions)(h),x=(0,k.replaceTokenInCoveoExpression)(e.boostingExpression,{currentPage:X}),v=(0,k.replaceTokenInCoveoExpression)(e.filterExpression,{currentPage:X}),g=`${x??""}${x&&v?" AND ":""}${v??""}`.trim();h.dispatch(p({cq:`(@aw_xmc_excludefromsearch=="false") AND (@aw_xmc_sitelanguage==${P.layout.sitecore.context.language??"en"}) AND (@source==AW-Website-${B}) `,aq:g??""})),R.current=(0,d.buildResultTemplatesManager)(h),q.current=(0,a.buildBreadcrumbManager)(h),(0,n.buildResultsPerPage)(h,{initialState:{numberOfResults:S?.searchParameters?.fields?.numberOfResultsPerPage?.value??15}}),z.current=(0,r.buildResultList)(h),M.current=(0,o.buildSearchStatus)(h),(0,c.buildSort)(h,{initialState:{criterion:(0,k.getInitialCriterion)(S?.searchParameters?.fields?.sortType,S?.searchParameters?.fields?.sortDirection,S?.searchParameters?.fields?.sortField)}}),O.current=(0,i.buildQuerySummary)(h),$.current={},e.fields?.facets.forEach(e=>{let s=(0,k.mapFacetOptions)(e),a=(0,t.buildFacet)(h,{options:s});e.fields.dependsOn&&(0,l.buildFacetConditionsManager)(h,{facetId:a.state.facetId,conditions:[{parentFacetId:e.fields.dependsOn.fields.uniqueIdentifier?.value||"",condition:e=>e.some(e=>"selected"===e.state)}]}),$.current[a.state.facetId]={facet:a}}),$.current.productTypeFacet={facet:e.fields?.productTypeFacet&&(0,t.buildFacet)(h,{options:(0,k.mapFacetOptions)(e.fields?.productTypeFacet)})},$.current.productDimensionsFacet={facet:e.fields?.productDimensionsFacet&&(0,t.buildFacet)(h,{options:(0,k.mapFacetOptions)(e.fields?.productDimensionsFacet)})},R.current.registerTemplates({...(0,W.default)(e)});let{updateSearchConfiguration:b}=(0,f.loadSearchConfigurationActions)(h);h.dispatch(b({pipeline:S?.searchParameters?.fields.queryPipeline.value,searchHub:S?.searchParameters?.fields.searchHub.value}));let{updateFacetOptions:j}=(0,m.loadFacetOptionsActions)(h);h.dispatch(j({freezeFacetOrder:!0})),(0,C.bindUrlManager)(h),h.executeFirstSearch(),s?.push(z.current?.subscribe(()=>U(z.current?.state))),Q(h)})(),function(){s.forEach(e=>e?.())}},[]),J)?(0,s.jsx)(g.default,{variant:"lg",gap:"gap-x-s md:gap-x-s",dataComponent:"tool/sizingtool",...e,children:(0,s.jsx)(T.CoveoEngineContext.Provider,{value:J,children:V?.firstSearchExecuted?(0,s.jsxs)(s.Fragment,{children:[$.current&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(D.ProductTypeFacet,{controller:$.current.productTypeFacet.facet,setIsProductTypeSelected:H,...e}),(0,s.jsx)(D.DimensionsFacet,{isProductTypeSelected:G,controller:$.current.productDimensionsFacet.facet,setIsDimensionsSelected:Z,...e})]}),G&&Y&&(0,s.jsxs)(s.Fragment,{children:[K&&(0,s.jsx)("div",{className:"col-span-12 mt-[6px] hidden ml:col-span-3 ml:block",children:(0,s.jsx)(b.FacetGroup,{...e,themeData:A,querySummaryController:O.current,breadcrumbManager:q.current,facetControllers:$.current})}),(0,s.jsxs)("div",{className:(0,x.default)("col-span-12",K&&"ml:col-span-9"),children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsx)(w.Subheadline,{classes:"font-sans font-heavy text-s mb-m ml:mb-xxs",useTag:"div",fields:{subheadlineText:e.fields?.resultsLabel??{value:""}}}),K&&(0,s.jsx)("div",{className:"ml:hidden",children:(0,s.jsx)(b.FacetGroup,{...e,themeData:A,querySummaryController:O.current,breadcrumbManager:q.current,facetControllers:$.current})})]}),(p=`${S.searchParameters.fields.noResultsHeadline.value} ${J?.state.query?.q&&`for "${J?.state.query?.q}"`}`,V?.hasResults?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.default,{classes:"",useTag:"h2",fields:{headlineText:{value:p}}}),(0,s.jsx)(v.default,{classes:"",fields:{body:S?.searchParameters.fields.noResultsBody??{value:""}}})]})),z.current&&R.current&&(0,s.jsx)("ul",{className:(0,x.default)("relative grid gap-s ml:grid-cols-12 ml:gap-s",V.isLoading&&'before:absolute before:top-0 before:left-0 before:h-full before:w-full before:bg-white before:opacity-50 before:content-[""]'),children:(0,s.jsx)(j.ResultList,{display:"raw",gridLightbox:!1,hasFacets:!0,controller:z.current,resultTemplatesManager:R.current})})]})]})]}):(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)("div",{className:"relative py-xxl",children:(0,s.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,s.jsx)(N.Spinner,{size:56})})})})})}):null});e.s(["Default",0,P])},609884,e=>{e.v({rba:"slick-module__7bbnDG__rba",sliderWrapper:"slick-module__7bbnDG__sliderWrapper"})},244185,e=>{"use strict";var s=e.i(843476),a=e.i(316454);e.i(413183);var t=e.i(210628),l=e.i(630177),i=e.i(589669),r=e.i(271645),n=e.i(698532),d=e.i(50868),o=e.i(853042),c=e.i(632962),u=e.i(163895),m=e.i(609884);let f=(0,i.withDatasourceCheck)(function(e){let[i,f]=(0,r.useState)(0),[h,p]=(0,r.useState)(!1),[x,v]=(0,r.useState)(!1),[g,b]=(0,r.useState)(1),[j,C]=(0,r.useState)(0),[y,N]=(0,r.useState)("contemporary"),[w,_]=(0,r.useState)("Contemporary"),{currentScreenWidth:k}=(0,l.useCurrentScreenType)(),T=(0,r.useRef)(null);(0,r.useEffect)(()=>
1{if(j!==i&&(T?.current?.slickGoTo(i),C(i)),h){let e=document.getElementById("scrollToTopDiv"),s=window.scrollY,a=e?.getBoundingClientRect().top===void 0?0:e?.getBoundingClientRect().top+s;k<=(0,l.getBreakpoint)("ml")&&(a-=59),window.scrollTo({top:a,behavior:"smooth"}),p(!1)}let e=document.querySelector(".slick-slide.slick-active.slick-current > div");e&&(e.style.height="auto");let s=document.querySelector(".slick-slide.slick-active.slick-current");s&&(s.style.height="fit-content")},[i,k,j,h]);let S=(0,r.useMemo)(()=>({maxSteps:g,scrollToTop:h,activeStep:i,isCalculated:x,panelStyle:y,panelStyleText:w,setMaxSteps:b,setScrollToTop:p,setActiveStep:f,setIsCalculated:v,setPanelStyle:N,setPanelStyleText:_}),[g,h,i,x,y,w]);return(0,s.jsx)(a.default,{variant:"lg",dataComponent:"tool/foldingdoorsizingcalculator",...e,children:(0,s.jsx)("div",{className:"col-span-12",id:"scrollToTopDiv",children:(0,s.jsxs)(o.FoldingDoorSizingCalculatorContext.Provider,{value:S,children:[(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(c.Stepper,{})}),(0,s.jsx)("div",{className:"md:hidden",children:(0,s.jsx)(t.ProgressBar,{percent:Number(i+1)/(g+1)*100,stepLabel:[["Select Panel Style"],["Enter Size Information"]][i],isComplete:x,activeStep:i+1,totalSteps:g+1})}),(0,s.jsx)("div",{className:"mt-10",children:(0,s.jsx)("div",{className:m.default.sliderWrapper,children:(0,s.jsxs)(n.default,{ref:T,...{accessibility:!1,dots:!1,infinite:!1,touchMove:!1,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0},swipeToSlide:!1,children:[(0,s.jsx)(u.PanelStyle,{...e}),(0,s.jsx)(d.Calculator,{...e})]})})})]})})})});e.s(["Default",0,f])},366714,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(316454),l=e.i(524886),i=e.i(699034);e.i(831837);var r=e.i(37570),n=e.i(207857),d=e.i(382330),o=e.i(589669),c=e.i(658666),u=e.i(271645),m=e.i(653145),f=e.i(935059),h=e.i(521738);let p=(0,o.withDatasourceCheck)(function(e){let{themeData:o}=(0,d.useTheme)((0,h.ESeriesSizingCalculatorTheme)()),p=(0,c.default)(),x=(0,u.useRef)(null),v=(0,f.useReactToPrint)({contentRef:x,documentTitle:"My Document"}),[g,b]=(0,u.useState)(0),[j,C]=(0,u.useState)(!1),[y,N]=(0,u.useState)(),[w,_]=(0,u.useState)(),[k,T]=(0,u.useState)(),[S,F]=(0,u.useState)(),[I,D]=(0,u.useState)(),[W,L]=(0,u.useState)(),[E,B]=(0,u.useState)(),[P,A]=(0,u.useState)(),[R,z]=(0,u.useState)("Overall Unit Size"),[q,O]=(0,u.useState)(),[M,$]=(0,u.useState)(),[V,U]=(0,u.useState)(),[G,H]=(0,u.useState)(),[Y,Z]=(0,u.useState)("None"),[K,J]=(0,u.useState)(),[Q,X]=(0,u.useState)("No Sill Nosing"),[ee,es]=(0,u.useState)(),{register:ea,handleSubmit:et,resetField:el,formState:{errors:ei}}=(0,m.useForm)({mode:"onChange",defaultValues:{calcUsing:"2",shimSpace:"0.25",sealantGap:"0.25",casingSize:"0",width:"",height:"",casingSizeCustom:"",sillNosing:"2",sillNosingCustom:""}}),[er,en]=(0,u.useState)("0"),[ed,eo]=(0,u.useState)("2"),ec=()=>{N("-"),_("-"),A("-"),B("-"),F("-"),T("-"),L("-"),D("-")},eu=e=>{C(!0),b(e)};return e.fields?(0,s.jsxs)(t.default,{variant:"lg",dataComponent:"tool/eseriessizingcalculator",...e,children:[(0,s.jsx)("form",{onSubmit:et(e=>{let s=JSON.parse(JSON.stringify(e,null,2));O(s.width),$(s.height),U(s.shimSpace),H(s.sealantGap),J(s.casingSizeCustom),es(s.sillNosingCustom);let a=Number(s.calcUsing),t=Number(s.sillNosing),l=Number(s.casingSize),i=Number(s.width),r=Number(s.height),n=2*Number(s.shimSpace),d=2*Number(s.sealantGap),o=Number(s.sillNosingCustom),c=Number(s.casingSizeCustom),u=-1*Number(s.sillNosingCustom),m=l<99?l:c,f=0,h=0,p=0;t>1&&t<3?f=m:t>3&&t<5?f=m- -1.125:t>5&&t<7?f=2*m:(o*=-1,f=m-o),a>1&&a<3?(h=i,p=r):a>3&&a<5?(h=i-n,p=r-n):a>5&&a<7?(h=i-2*m,p=r-f):a>7&&a<9&&(h=i-2*m-d,p=r-f-d),f*=-1;let x=h- -(2*m*1),v=p-f;N(x.toString()),_(v.toString()),l<.001&&(N("-"),(t>1&&t<3||t>5&&t<7)&&_("-"));let g=h-(n*=-1),b=p-n;T(h.toString()),F(p.toString()),D(g.toString()),L(b.toString()),B((x-(d*=-1)).toString()),A((l<.001&&t>7?p-d-u:v-d).toString())}),className:"col-span-12",children:(0,s.jsxs)("div",{className:o.classes.formWrapper,children:[(0,s.jsxs)("div",{className:o.classes.columnSpan2,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"calcUsing",children:"Calculate using known"}),(0,s.jsxs)("select",{id:"calcUsing",className:o.classes.selectColumnSpan2,...ea("calcUsing"),onChange:e=>{let s=e.target[e.target.selectedIndex].innerHTML;ec(),z(s)},children:[(0,s.jsx)("option",{value:"2",children:"Overall Unit Size"}),(0,s.jsx)("option",{value:"4",children:"Rough Opening"}),(0,s.jsx)("option",{value:"6",children:"Casing Size"}),(0,s.jsx)("option",{value:"8",children:"Masonry Opening"})]})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"width",children:"Width (in inches)*"}),(0,s.jsx)("input",{id:"width",type:"text",placeholder:"Width",maxLength:25,onInput:ec,className:`${ei.width?o.classes.errorInvalid:o.classes.errorValid}`,...ea("width",{required:"This field is required.",pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}),ei.width&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.width.message}),(0,s.jsxs)("div",{className:o.classes.labelClass,children:[(0,s.jsx)("span",{className:o.classes.helpText,children:"For help, refer to our"}),(0,s.jsx)("button",{className:o.classes.modalLinkButton,type:"button",onClick:()=>{eu(0)},onKeyDown:e=>{"Enter"===e.key&&eu(0)},children:e.fields?.fractionChartLinkText.value})]}),0===g&&j&&(0,s.jsx)(i.default,{isModalOpen:0===g&&j,size:"fluid",handleClose:()=>C(!1),children:(0,s.jsx)("div",{className:"px-ml pb-ml pt-s",children:(0,s.jsx)(l.default,{imageLayout:"intrinsic",image:{value:{src:e.fields?.fractionChartImage?.value.src??"",alt:e.fields?.fractionChartImage?.value.alt??"",width:e.fields?.fractionChartImage?.value.width??549,height:e.fields?.fractionChartImage?.value.height??123}}})})})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"height",children:"Height (in inches)*"}),(0,s.jsx)("input",{id:"height",type:"text",placeholder:"Height",maxLength:25,onInput:ec,className:`${ei.height?o.classes.errorInvalid:o.classes.errorValid}`,...ea("height",{required:"This field is required.",pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}),ei.height&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.height.message})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"shimSpace",children:"Shim Space (in inches)*"}),(0,s.jsx)("input",{id:"shimSpace",type:"text",placeholder:"Shim Space",maxLength:25,onInput:ec,className:`${ei.shimSpace?o.classes.errorInvalid:o.classes.errorValid}`,...ea("shimSpace",{required:"This field is required.",pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}),ei.shimSpace&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.shimSpace.message})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"sealantGap",children:"Sealant Gap (in inches)*"}),(0,s.jsx)("input",{id:"sealantGap",type:"text",placeholder:"Sealant Gap",maxLength:25,onInput:ec,className:`${ei.sealantGap?o.classes.errorInvalid:o.classes.errorValid}`,...ea("sealantGap",{required:"This field is required.",pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}
1),ei.sealantGap&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.sealantGap.message})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"casingSize",children:"Profiled Casing"}),(0,s.jsxs)("select",{className:o.classes.selectColumnSpan1,id:"casingSize",...ea("casingSize"),onChange:e=>{let s=e.target.value,a=e.target[e.target.selectedIndex].innerHTML;ec(),el("casingSizeCustom"),en(s),Z(a)},children:[(0,s.jsx)("option",{value:"0",children:"None"}),(0,s.jsx)("option",{value:"1.625",children:"A753"}),(0,s.jsx)("option",{value:"1.625",children:"A754"}),(0,s.jsx)("option",{value:"3.125",children:"A755"}),(0,s.jsx)("option",{value:"3.125",children:"A756"}),(0,s.jsx)("option",{value:"5.125",children:"A758"}),(0,s.jsx)("option",{value:"3.125",children:"A75B"}),(0,s.jsx)("option",{value:"100",children:"Custom"})]}),(0,s.jsxs)("div",{className:o.classes.labelClass,children:[(0,s.jsx)("span",{className:o.classes.helpText,children:"Show me"}),(0,s.jsx)("button",{className:o.classes.modalLinkButton,type:"button",onClick:()=>{eu(1)},onKeyDown:e=>{"Enter"===e.key&&eu(1)},children:e.fields?.casingProfilesLinkText.value})]}),1===g&&j&&(0,s.jsx)(i.default,{isModalOpen:1===g&&j,size:"fluid",handleClose:()=>C(!1),children:(0,s.jsx)("div",{className:"px-ml pb-ml pt-s",children:(0,s.jsx)(l.default,{imageLayout:"intrinsic",image:{value:{src:e.fields?.casingProfilesImage?.value.src??"",alt:e.fields?.casingProfilesImage?.value.alt??"",width:e.fields?.casingProfilesImage?.value.width??549,height:e.fields?.casingProfilesImage?.value.height??123}}})})})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsxs)("label",{className:(0,a.default)(o.classes.labelClass,"100"===er?"":"text-dark-gray"),htmlFor:"casingSizeCustom",children:["Casing Size ",(0,s.jsx)("span",{hidden:"100"!==er,children:"*"})]}),(0,s.jsx)("input",{id:"casingSizeCustom",type:"text",placeholder:"Casing Size",maxLength:25,disabled:"100"!==er,onInput:ec,className:`${ei.casingSizeCustom?o.classes.errorInvalid:o.classes.errorValid}`,...ea("casingSizeCustom",{required:{value:"100"===er,message:"This field is required."},pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}),ei.casingSizeCustom&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.casingSizeCustom.message})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsx)("label",{className:o.classes.labelClass,htmlFor:"sillNosing",children:"Sill Nosing"}),(0,s.jsxs)("select",{className:o.classes.selectColumnSpan1,id:"sillNosing",...ea("sillNosing"),onChange:e=>{let s=e.target.value,a=e.target[e.target.selectedIndex].innerHTML;ec(),el("sillNosingCustom"),eo(s),X(a)},children:[(0,s.jsx)("option",{value:"2",children:"No Sill Nosing"}),(0,s.jsx)("option",{value:"4",children:"A751 or A752"}),(0,s.jsx)("option",{value:"6",children:"Casing 4 Sides"}),(0,s.jsx)("option",{value:"8",children:"Custom Sill Nosing"})]})]}),(0,s.jsxs)("div",{className:o.classes.columnSpan1,children:[(0,s.jsxs)("label",{className:(0,a.default)(o.classes.labelClass,"8"===ed?"":"text-dark-gray"),htmlFor:"sillNosingCustom",children:["Sill Nosing Size ",(0,s.jsx)("span",{hidden:"8"!==ed,children:"*"})]}),(0,s.jsx)("input",{id:"sillNosingCustom",type:"text",placeholder:"Sill Nosing Size",maxLength:25,disabled:"8"!==ed,onInput:ec,className:`${ei.sillNosingCustom?o.classes.errorInvalid:o.classes.errorValid}`,...ea("sillNosingCustom",{required:{value:"8"===ed,message:"This field is required."},pattern:{value:/^(\d*[1-9]\d*(\.\d+)?|0*\.\d*[1-9]\d*)$/,message:"Please enter a valid number."}})}),ei.sillNosingCustom&&(0,s.jsx)("div",{className:"text-body text-error",children:ei.sillNosingCustom.message})]}),(0,s.jsxs)("div",{className:o.classes.submitWrapper,children:[(0,s.jsx)("button",{type:"submit",className:o.classes.submitButton,children:"Calculate"}),(0,s.jsxs)("button",{type:"button",onClick:()=>{N("-"),_("-"),A("-"),B("-"),F("-"),T("-"),L("-"),D("-"),z("Overall Unit Size"),O("-"),$("-"),U("-"),H("-"),Z("None"),J("-"),X("No Sill Nosing"),es("-"),el("calcUsing"),el("width"),el("height"),el("shimSpace"),el("sealantGap"),el("casingSize"),el("casingSizeCustom"),el("sillNosing"),el("sillNosingCustom"),en("0"),eo("2")},className:o.classes.resetButton,children:["Reset calculator"," ",(0,s.jsx)("span",{className:"ml-xxs",children:(0,s.jsx)(n.default,{icon:"reset"})})]})]})]})}),(0,s.jsxs)("div",{className:"col-span-12 flex flex-row items-center justify-between",children:[(0,s.jsx)("div",{className:"mb-s font-sans text-sm-m font-heavy leading-[30px] text-theme-text last:mb-0 md:leading-normal lg:text-m",children:(0,s.jsx)("h2",{children:"Results:"})}),(0,s.jsx)("div",{className:"mb-s hidden items-end pr-2 md:relative md:block",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{type:"button",className:o.classes.printButton,onClick:v,children:[(0,s.jsx)("span",{className:"mr-xxs text-darkprimary",children:(0,s.jsx)(n.default,{icon:"print"})}),"Print"]}),(0,s.jsx)("div",{ref:x})]})})]}),(0,s.jsxs)("div",{className:o.classes.resultsOutputWrapper,id:"resultsOutput",ref:x,children:[(0,s.jsx)("div",{className:o.classes.printHeaderDiv,children:(0,s.jsx)("h2",{children:"E-Series Sizing Calculator Results"})}),(0,s.jsx)("div",{className:o.classes.columnSpan1,children:(0,s.jsx)("div",{className:"overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,s.jsx)("div",{className:"inline-block min-w-full py-2 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsxs)("table",{className:"min-w-full font-sans text-sm font-light",children:[(0,s.jsx)("thead",{className:o.classes.tableHead,children:(0,s.jsx)("tr",{children:(0,s.jsx)("th",{colSpan:2,scope:"col",className:o.classes.thLeft,children:"Options Selected"})})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Calculate Using Known"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:R})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Width (in inches)"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:q})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Height (in inches)"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:M})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Shim Space (in inches)"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:V})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Sealant Gap (in inches)"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:G})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Profiled Casing"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:Y})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Casing Size"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:K})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Sill Nosing"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:Q})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Sill Nosing Size"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:ee})]})]})]})})})})}),(0,s.jsx)("div",{className:o.classes.columnSpan1,children:(0,s.jsx)("div",{className:"overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,s.jsx)("div",{className:"inline-block min-w-full py-2 sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsxs)("table",{className:"min-w-full font-sans text-sm font-light ",children:[(0,s.jsx)("thead",{className:o.classes.tableHead,children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",className:o.classes.thLeft,children:"Calculated Dimensions"}),(0,s.jsx)("th",{scope:"col",className:o.classes.thCenter,children:"Width"}),(0,s.jsx)("th",{scope:"col",className:o.classes.thRight,children:"Height"})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Overall Unit Size"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:k}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:S})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Rough Opening"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:I}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:W})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Casing Dimensions"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:y}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:w})]}),(0,s.jsxs)("tr",{className:o.classes.tableRow,children:[(0,s.jsx)("td",{className:o.classes.tdColumn,children:"Masonry Opening"}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:E}),(0,s.jsx)("td",{className:o.classes.tdColumnCenter,children:P})]})]})]})})})})})]}),(e.fields?.footer||p)&&(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(r.RichTextWrapper,{field:e.fields?.footer,className:o.classes.footer})})]}):(0,s.jsx)(s.Fragment,{})});e.s(["Default",0,p])},222948,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(343794),l=e.i(316454),i=e.i(183665),r=e.i(207857);e.i(203893);var n=e.i(929137),d=e.i(501773),o=e.i(382330),c=e.i(224043),u=e.i(436591),m=e.i(630177),f=e.i(589669),h=e.i(277432),p=e.i(271645),x=e.i(166305),v=e.i(846091);let g=(0,f.withDatasourceCheck)(function(e){let f,{fields:g}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,c.mapItemFieldResultsToObject)(s.data.item?.fields??[]),children:(0,u.mapSearchResults)(s.data.item?.children??[],e=>({fields:{...(0,c.mapItemFieldResultsToObject)(e.fields),children:(0,u.mapSearchResults)(e.children,e=>({fields:{...(0,c.mapItemFieldResultsToObject)(e.fields)}}))}}))}}}(e.rendering),{children:b}=g??{},{themeName:j,themeData:C}=(0,o.useTheme)(v.TabsFeaturedPromoTheme),{currentScreenWidth:y}=(0,m.useCurrentScreenType)(),N=(0,p.useRef)(null),[w,_]=(0,p.useState)(0),[k,T]=(0,p.useState)(0),[S,F]=(0,p.useState)(-1),[I,D]=(0,p.useState)(!1),W=p.default.useCallback(e=>{if(!e)return!1;for(let s=0;s<b.length;s++){let a=b[s].fields.children;for(let t=0;t<a?.length;t++){let l=a[t];
1if(e===(l?.fields?.contentId?.value??`tab-${(0,h.normalizeGuid)(l.id)}`))return _(s),T(s),F(t),!0}}return!1},[b]),L=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(L.current||!b||0===b.length)return;L.current=!0;let e=window.location.hash?.slice(1),s=g.defaultActiveTab?.fields?.contentId?.value,a=W(e);!a&&s&&(a=W(s)),!a&&b?.[0]?.fields?.children?.[0]&&(_(0),T(0),F(0))},[b,g?.defaultActiveTab,W]),(0,p.useEffect)(()=>{let e=(g?.children?.[k]?.fields.children??[])[S],s=e?.fields?.contentId.value??`tab-${(0,h.normalizeGuid)(e?.id)}`;I&&S>=0&&(history.pushState(history.state,window.location.href,`#${s}`),D(!1),setTimeout(()=>{let e=document.getElementById(s);e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})},0)),N.current&&y<=(0,m.getBreakpoint)("ml")&&s.replace("tab-","").length>0&&N.current.querySelector(`[id='tab-${s}']`)?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[k,S,I,y]);let E=(e,s)=>{D(!0),F(e),T(s)},B=()=>{F(S+1),P.current[S+1]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},P=(0,p.useRef)([]);return(P.current=[],g)?(0,s.jsxs)(l.default,{variant:"lg",dataComponent:"promo/tabsfeaturedpromo",...e,children:[(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(i.default,{fields:g,classes:C.classes.headline})}),g.children?.length>0&&(0,s.jsx)("div",{className:"col-span-12 mb-ml",children:(0,s.jsxs)(n.Tabs,{classes:C.classes.tabsClasses,currentTabIndex:S,children:[(0,s.jsxs)(s.Fragment,{children:[b?.length>1&&(0,s.jsx)("div",{className:C.classes.tabsClasses.toggleContainer,children:(()=>{if(y<=(0,m.getBreakpoint)("ml")){let e;return(0,s.jsx)(d.default,{switchTitles:(e=["",""],b.forEach((s,a)=>{e[a]=s?.fields?.mobileToggleTitle?.value}),e),activeSwitchIndex:w,toggleActiveSwtich:()=>{let e=+(0===w);T(e),_(e),F(0)}})}return null})()}),b?.map((e,l)=>(0,s.jsx)(p.default.Fragment,{children:y<=(0,m.getBreakpoint)("ml")&&l===k||y>(0,m.getBreakpoint)("ml")?(0,s.jsxs)(s.Fragment,{children:[e?.fields?.headlineText?.value!==""&&(0,s.jsxs)("div",{className:C.classes.tabsClasses.tabHeadlineWrapper,children:["aw"===j&&(0,s.jsx)(r.default,{icon:"orange-triangle",className:C.classes.tabsClasses.tabHeadlineIcon}),(0,s.jsx)(i.default,{fields:e?.fields,classes:C.classes.tabsClasses.tabHeadline})]}),(0,s.jsxs)("div",{ref:N,className:C.classes.tabsClasses.tabTitlesContainer,children:[S>0&&(0,s.jsx)("button",{onClick:B,onKeyUp:e=>{("Enter"===e.code||"Space"===e.code)&&B()},children:(0,s.jsx)("div",{className:C.classes.tabsClasses.leftArrowIcon,children:(0,s.jsx)(r.default,{icon:"arrow-left"})})}),(0,s.jsx)("ul",{className:C.classes.tabsClasses.tabTitlesWrapper,children:e?.fields?.children?.map((e,i)=>(0,s.jsx)("li",{id:e.fields?.contentId?.value??`tab-${(0,h.normalizeGuid)(e.id)}`,ref:e=>P.current[i]=e,className:(0,t.default)(y>=(0,m.getBreakpoint)("ml")?"wrap-break-word":"whitespace-nowrap",C.classes.tabsClasses.tabTitle,i===S&&l===k&&C.classes.tabsClasses.activeTabTitle),children:(0,s.jsx)("button",{className:"text-left",onClick:()=>E(i,l),onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&E(i,l)},children:(0,s.jsx)(a.Text,{tag:"h4",field:e.fields?.tabTitle})})},e.id))},l),S<e?.fields.children?.length-1&&(0,s.jsx)("button",{onClick:B,onKeyUp:e=>{("Enter"===e.code||"Space"===e.code)&&B()},children:(0,s.jsx)("div",{className:C.classes.tabsClasses.rightArrowIcon,children:(0,s.jsx)(r.default,{icon:"arrow-right"})})})]})]}):null},e.fields?._AW_TemplateId.value))]}),(f=[],b?.map((e,a)=>a===k&&e.fields?.children?.forEach(e=>{f.push((0,s.jsx)(x.default,{classes:C.classes.promoClasses,...e},e.id))})),f)]})})]}):null});e.s(["Default",0,g])},110176,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(291749),l=e.i(207857),i=e.i(165488),r=e.i(382330),n=e.i(630177),d=e.i(402684),o=e.i(374009),c=e.i(3303),u=e.i(271645),m=e.i(675639);e.s(["Default",0,function(e){let f=e.page.layout.sitecore.route,h=f?.fields?.pageTitle?.value??void 0,{siteInfo:p,breadcrumbs:x=[],featureFlags:v}=(0,d.useWebsiteContext)(),g=p?.canonicalHostName??p?.targetHostName??"",[b,j]=(0,u.useState)(!1),[C,y]=(0,u.useState)(!1),N=(0,u.useRef)(null),{screenType:w}=(0,n.useCurrentScreenType)(),_="sm"!==w&&"md"!==w,[k,T]=(0,u.useState)(""),S=(0,u.useMemo)(()=>{let s=e.page.layout.sitecore.route?.placeholders?.["headless-header"]?.find(e=>"AWHeader"===e.componentName),a=s?.fields?.children?.find(e=>e?.fields?.menuTitle&&e?.fields?.menuTitle.value==="mainMenu");return!!a?.fields?.children?.find(e=>e.templateId===i.SitecoreIds.Templates.Project.AndersenCorporation.AndersenWindows.Components.Navigation.RaqMobileBanner.RaqMobileBanner.Id)},[e.page]),{themeData:F}=(0,r.useTheme)((0,m.BreadcrumbTheme)(S));(0,u.useEffect)(()=>{document.querySelector('[data-component="general/globalmasthead"]')?T("max-ml:relative max-ml:top-[60px] py-0"):T(`max-ml:relative ${S?"max-ml:top-[60px] py-[36px]":"max-ml:top-[30px] py-[12px]"} lg:py-[10px]`)},[]);let I=(0,o.default)(()=>
1{if(N.current){let e=N.current,s=e.scrollLeft,a=document.querySelector(".before-shadow"),t=document.querySelector(".after-shadow");s>0?a.style.opacity="0.6":a.style.opacity="0",s<e.scrollWidth-e.clientWidth?t.style.opacity="0.6":t.style.opacity="0"}},100);(0,u.useEffect)(()=>{let e=document.querySelector(".breadcrumb-nav ol"),s=()=>{e&&(e.offsetWidth>window.innerWidth?y(!0):y(!1))};return x.length>5&&_?j(!0):j(!1),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[x,_]),(0,u.useEffect)(()=>{let e=N.current;return!b&&!_&&C&&e?e.addEventListener("scroll",I):e&&e.removeEventListener("scroll",I),()=>{e&&e.removeEventListener("scroll",I)}},[b,_,C,I]);let D=()=>{j(!1)},W=x.length>0&&x.slice(1),L=W&&W.length>0&&W.pop(),E=W&&W.length>0&&W.pop(),B=x[0]?.name&&x[0]?.href&&(0,s.jsx)("li",{children:(0,s.jsx)(t.default,{field:{href:x[0].href,text:x[0].name},className:"flex items-center text-black underline hover:font-heavy",children:L&&(0,s.jsx)(l.default,{icon:"caret-right",className:"pl-xxxs"})})},"home"),P=(0,s.jsxs)(s.Fragment,{children:[B,(0,s.jsx)("li",{className:"pl-xxxs",children:(0,s.jsxs)("span",{className:"flex cursor-pointer items-center",children:["...",(0,s.jsx)(l.default,{icon:"caret-right",className:"pl-xxxs"})]})}),E&&E.name&&(0,s.jsx)("li",{className:"px-xxxs",children:(0,s.jsx)(t.default,{field:{href:E.href,text:E.name},className:"flex items-center text-black hover:font-heavy",children:(0,s.jsx)(l.default,{icon:"caret-right",className:"pl-xxxs"})})}),L&&(0,s.jsx)("li",{className:"px-xxxs text-black",children:L.name?L.name:h})]}),A=W&&W.length>0&&W.map(e=>e.name&&(0,s.jsx)("li",{className:"px-xxxs",children:(0,s.jsx)(t.default,{field:{href:e.href,text:e.name},className:"flex items-center text-black underline hover:font-heavy",children:(0,s.jsx)(l.default,{icon:"caret-right",className:"pl-xxxs"})})},e.name+e.href)),R={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:x.map((e,s)=>({"@type":"ListItem",position:s+1,name:e.name,item:`${g}${"/"===e.href?"":e.href}`}))};return(0,u.useEffect)(()=>{let e=document.getElementById("scrollBreadcrumb");setTimeout(function(){e&&(e.scrollLeft=e?.scrollWidth)},100)},[]),(0,s.jsxs)(s.Fragment,{children:[!v.releaseSchemaOrgGraph&&(0,s.jsx)(c.default,{id:"",strategy:"beforeInteractive",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(R)}}),x.length>1&&(0,s.jsxs)("div",{className:(0,a.default)(F.classes.breadcrumbMargin,"mt-m px-m md:max-w-(--breakpoint-xl) ml:mb-0 ml:mt-8 ml:p
1x-l lg:mx-auto"),id:"breadcrumb",children:[(0,s.jsx)("style",{children:` 2 @media (min-width: 1009px) and (max-width: 1247px) { 3 .custom-padding { 4 padding-top: 10px !important; 5 padding-bottom: 10px !important; 6 } 7 } 8 `}),(0,s.jsxs)("div",{className:`${F.classes.breadcrumbContainer} ${k} custom-padding`,children:[C&&(0,s.jsx)("span",{className:`before-shadow pointer-events-none absolute left-[-9px] top-0 z-1 h-full w-5 opacity-0 transition-opacity duration-300 ease-[ease-in-out] content-[""] ${_?" hidden":""}`}),(0,s.jsx)("nav",{className:"breadcrumb-nav","aria-label":"breadcrumb",children:(0,s.jsx)("div",{className:"relative flex overflow-x-auto whitespace-nowrap",ref:N,children:b&&_?(0,s.jsx)("button",{onClick:D,onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&D()},children:(0,s.jsx)("ol",{className:"flex ",children:P})}):(0,s.jsxs)("ol",{id:"scrollBreadcrumb",className:"flex overflow-x-auto",children:[L&&B,A,E&&E.name&&(0,s.jsx)("li",{className:"px-xxxs",children:(0,s.jsx)(t.default,{field:{href:E.href,text:E.name},className:"flex items-center text-black underline hover:font-heavy",children:(0,s.jsx)(l.default,{icon:"caret-right",className:"pl-xxxs"})})}),L&&(0,s.jsx)("li",{className:"px-xxxs text-black",children:L?.name?L.name:h})]})})}),C&&(0,s.jsx)("span",{className:`after-shadow pointer-events-none absolute right-0 top-0 z-1 h-full w-5 transition-opacity duration-300 ease-[ease-in-out] content-[""] 9 ${_?" hidden":""}`})]})]})]})}])},708105,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(882596),l=e.i(641527),i=e.i(291749),r=e.i(524886),n=e.i(207857),d=e.i(990002),o=e.i(224043),c=e.i(436591),u=e.i(630177),m=e.i(159277),f=e.i(589669),h=e.i(658666),p=e.i(271645);function x(e,s){return e?.find(e=>e?.fields?.menuTitle?.value===s)}function v(e){let s=e?.fields?.children;return Array.isArray(s)&&s.length>0?s:null}function g({title:e,children:a}){let[t,l]=(0,p.useState)(!1);return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:`border-t border-solid border-t-white py-xs ${t?"open [&_span]:after:-rotate-90 [&_span]:after:transition-all [&_span]:after:duration-100":"[&_span]:after:rotate-90 [&_span]:after:transition-all [&_span]:after:duration-100"}`,onClick:()=>l(!t),children:(0,s.jsx)("span",{className:"flex items-center justify-between text-small font-heavy uppercase leading-[14px] after:text-base after:content-['\\276F'] ml:text-xxs ",children:e})}),(0,s.jsx)("div",{className:`accordion-item ${t?"h-auto max-h-[9999px] overflow-hidden transition-[max-height] duration-300 ease-[cubic-bezier(1,0,1,0)]":"collapsed max-h-0 transition-[max-height] duration-[0.35s] ease-[cubic-bezier(0,1,0,1)]"}`,children:(0,s.jsx)("div",{children:a})})]})}function b({nav:e,linkClassName:a}){let t=e.fields?.navItemLink;return t?(0,s.jsx)("li",{className:"py-xxxs",children:(0,s.jsx)(i.default,{ctaSection:"footer",field:t,className:a,children:"_blank"===t.value.target&&(0,s.jsx)(n.default,{icon:"new-tab",className:"ml-xxxs inline-flex"})})}):null}function j(e,s){return e.fields?.navItemLink?.value?.href||String(s)}function C({menu:e}){let t=e.fields?.children??[];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-xxxs font-sans text-xxs font-heavy uppercase leading-none",children:(0,s.jsx)(a.Text,{tag:"span",field:e.fields?.navGroupTitle})}),(0,s.jsx)("ul",{className:"flex flex-col",children:t.map((e,a)=>(0,s.jsx)(b,{nav:e,linkClassName:"text-body hover:underline"},j(e,a)))})]})}function y({menu:e}){let a=e.fields?.children??[],t=e.fields?.navGroupTitle?.value??"";return(0,s.jsx)(g,{title:t,children:a.length>0&&(0,s.jsx)("ul",{className:"ease flex flex-col transition-all duration-1000",children:a.map((e,a)=>(0,s.jsx)(b,{nav:e,linkClassName:"text-small hover:underline"},j(e,a)))})})}function N({items:e,isEE:a}){return(0,s.jsx)(s.Fragment,{children:e.map((e,t)=>{let l=e.fields?.navItemLink,r=(0,m.getEnum)(e.fields?.navItemIcon);if(!l?.value||!r)return null;let d=l.value.href||`social-${t}`;return(0,s.jsx)("div",{className:"mr-xxs mt-xxxs",children:a?(0,s.jsx)(n.default,{icon:r}):(0,s.jsx)(i.default,{ctaSection:"footer",field:l,children:(0,s.jsx)(n.default,{icon:r})})},d)})})}function w({items:e}){return(0,s.jsx)(s.Fragment,{children:e.map((a,t)=>{let l=a.fields?.navItemLink;if(!l)return null;let r=l.value.href||`privacy-${t}`;return(0,s.jsxs)("span",{children:[(0,s.jsx)(i.default,{ctaSection:"footer",className:"text-body underline",field:l,children:"_blank"===l.value.target&&(0,s.jsx)(n.default,{icon:"new-tab",className:"ml-xxxs inline-flex"})}),t<e.length-1&&(0,s.jsx)("span",{className:"inline-flex md:px-xxxs",children:" | "})]},r)})})}function _(){window?.truste&&window.truste.eu.clickListener()}let k=(0,f.withDatasourceCheck)(function(e){var n,m;let{fields:f}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,o.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,c.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,o.mapItemFieldResultsToObject)(e.fields),children:(0,c.mapSearchResults)(e.children,e=>({fields:{...(0,o.mapItemFieldResultsToObject)(e.fields),children:(0,c.mapSearchResults)(e.children,e=>({fields:{...(0,o.mapItemFieldResultsToObject)(e.fields)}}))}}))}}),[])}}}(e.rendering),p=(0,h.default)(),{screenType:g}=(0,u.useCurrentScreenType)(),b="sm"!==g&&"md"!==g,{page:j}=(0,t.useSitecore)(),k=l.default.trustArc.cmid&&!j?.layout.sitecore.context.pageEditing,T=e.page.customProps.featureFlags.releaseTrustArcAutoBlock;if(!f)return(0,s.jsx)(s.Fragment,{});let S=new Date().getFullYear().toString(),F=(n=f?.copyright?.value,n?.replace("{currentYear}",S)??""),I=f?.children,D=v(x(I,"socialMenu")),W=v(x(I,"footerMenu")),L=v(x(I,"privacyMenu")),E=!0===d.FeatureFlags.values.releaseFooterExpandedLayout,B=(m=W?.length??0)<=5?"ml:w-[20%]":6===m?"ml:w-[33.333%]":"ml:w-[25%]",P=E?`flex flex-col mmd:pr-xxs mmd:max-ml:w-[33.333%] ${B}`:"flex flex-col ml:w-[20%] ml:pr-xxs";return(0,s.jsx)("div",{"data-component":"site/awfooter",className:"awfooter bg-black py-m text-base text-white ml:py-l",children:(0,s.jsx)("div",{className:"px-m ml:max-w-screen-lg lg:mx-auto",children:(0,s.jsxs)("div",{className:"flex flex-col flex-wrap ml:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col max-ml:order-4 max-ml:mt-l ml:w-[16.6%] ml:basis-[16.6%] ml:pr-xxs",children:[(0,s.jsx)("div",{className:"mb-s font-sans text-xs font-heavy uppercase max-ml:hidden ",children:(0,s.jsx)(a.Text,{tag:"h3",field:f.tagLine})}),(0,s.jsx)("div",{className:"mb-s text-body max-ml:order-2",children:(0,s.jsx)(a.Text,{field:{value:F}})}),(0,s.jsx)("div",{className:"flex flex-wrap max-ml:order-1 max-ml:mb-s",children:D&&(0,s.jsx)(N,{items:D,isEE:p})})]}),(0,s.jsxs)("div",{className:"flex flex-col max-ml:order-1 ml:w-[83.4%] ml:basis-[83.4%] ml:pl-xxs",children:[(0,s.jsx)("div",{className:"mb-l font-sans text-sm-s font-heavy uppercase ml:hidden",children:(0,s.jsx)(a.Text,{tag:"h3",field:f.tagLine})}),(0,s.jsx)("div",{className:E?"flex w-full max-mmd:flex-col max-mmd:border-b max-mmd:border-solid max-mmd:border-b-white mmd:flex-wrap mmd:gap-y-l ml:shrink ml:grow ml:basis-0":"flex w-full max-ml:flex-col max-ml:border-b max-ml:border-solid max-ml:border-b-white ml:shrink ml:grow ml:basis-0",children:W?.map((e,a)=>{let t=e.fields?.navGroupTitle?.value||`nav-${a}`;return(0,s.jsx)("div",{className:P,children:b?(0,s.jsx)(C,{menu:e}):(0,s.jsx)(y,{menu:e})},t)})})]}),(0,s.jsx)("div",{className:"mt-l flex flex-col max-ml:order-3 max-ml:mb-l ml:w-[16.6%] ml:basis-[16.6%] ml:pr-xxs",children:f?.logoCTA?.value?.href!==""?(0,s.jsx)(i.default,{ctaSection:"footer",field:f.logoCTA,children:(0,s.jsx)(r.default,{image:f.logo,additionalMobileClasses:"max-w-[120px]",additionalDesktopClasses:"max-w-[120px]"})}):(0,s.jsx)(r.default,{image:f.logo,additionalMobileClasses:"max-w-[120px]",additionalDesktopClasses:"max-w-[120px]"})}),(0,s.jsxs)("div",{className:"mt-l flex flex-col max-ml:order-3 ml:w-[83.4%] ml:basis-[83.4%] ml:pl-xxs",children:[(0,s.jsx)("div",{className:"mb-s flex w-full text-body ml:mb-xxs",children:(0,s.jsx)(a.Text,{tag:"h3",field:f.privacyCaption})}),(0,s.jsx)("div",{className:"w-full flex-wrap max-ml:text-body md:flex",children:L&&(0,s.jsx)(w,{items:L})})]}
9),k&&(T?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"teconsent",className:"peer",dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0}),(0,s.jsx)("button",{className:"hidden underline peer-empty:flex",onClick:_,children:"Cookie Preferences"})]}):(0,s.jsx)("button",{className:"flex underline",onClick:_,children:"Cookie Preferences"}))]})})})});e.s(["Default",0,k])},468255,e=>{"use strict";var s=e.i(843476),a=e.i(589669),t=e.i(402684),l=e.i(3303);let i=(0,a.withDatasourceCheck)(function(e){let{siteInfo:a,featureFlags:i}=(0,t.useWebsiteContext)();if(!a?.name)return(0,s.jsx)(s.Fragment,{});let r=a?.canonicalHostName;if(!r||"string"!=typeof r)return(0,s.jsx)(s.Fragment,{});let n={"@context":"https://schema.org/","@type":"WebSite",url:r},d=e.fields?.searchPage?.value?.href;return d&&(n.potentialAction={"@type":"SearchAction",target:`${r}${d}#q={search_term_string}`,"query-input":"required name=search_term_string"}),(0,s.jsx)(s.Fragment,{children:!i.releaseSchemaOrgGraph&&(0,s.jsx)(l.default,{id:"",type:"application/ld+json",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})})});e.s(["Default",0,i])},940418,e=>{"use strict";var s=e.i(843476),a=e.i(589669),t=e.i(402684),l=e.i(3303);let i=(0,a.withDatasourceCheck)(function(e){let{siteInfo:a,featureFlags:i}=(0,t.useWebsiteContext)();if(!e.fields)return(0,s.jsx)(s.Fragment,{});let r={"@context":"https://schema.org/","@type":"Organization",url:a?.canonicalHostName??"",logo:e.fields?.logo?.value?.src??"",name:e.fields?.name?.value??"",description:e.fields?.description?.value??"",email:e.fields?.email?.value??"",telephone:e.fields?.telephone?.value??"",address:{"@type":"PostalAddress",streetAddress:e.fields?.street?.value??"",addressLocality:e.fields?.city?.value??"",addressCountry:e.fields?.country?.value??"",postalCode:e.fields?.zip?.value??""}};return(0,s.jsx)(s.Fragment,{children:!i.releaseSchemaOrgGraph&&(0,s.jsx)(l.default,{id:"",type:"application/ld+json",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})})});e.s(["Default",0,i])},309549,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(832084),l=e.i(224043),i=e.i(436591),r=e.i(159277);let n=(0,e.i(589669).withDatasourceCheck)(function(e){let{fields:n}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,l.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,i.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,l.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering);return(0,s.jsx)(a.default,{variant:"full",padding:"px-0",backgroundVariant:(0,r.getEnum)(n?.backgroundColor),dataComponent:"general/pagemashup",fields:n,rendering:e.rendering,params:e.params,children:(0,s.jsx)(t.default,{fields:n,rendering:e.rendering,params:e.params})})});e.s(["Default",0,n])},822526,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(292026),l=e.i(56574);e.i(76464);var i=e.i(281942),r=e.i(183665),n=e.i(437014),d=e.i(208304),o=e.i(431221),c=e.i(207857),u=e.i(382330),m=e.i(630177),f=e.i(159277),h=e.i(589669),p=e.i(271645),x=e.i(663191);let v=(0,h.withDatasourceCheck)(function(e){let{fields:h}=e,{themeData:v}=(0,u.useTheme)(x.PromoMediaBackgroundTheme),{screenType:g}=(0,m.useCurrentScreenType)(),[b,j]=(0,p.useState)(!1);if(!h)return null;let C=!!(0,f.getEnum)(h.overlay),y="";if(C)y="md:text-white";else switch((0,f.getEnum)(h.fontColor)){case"gray":y="md:text-dark-gray";break;case"white":y="md:text-white";break;default:y="md:text-black"}return(0,s.jsxs)("div",{"data-component":"promo/promomediabackground",className:"relative m-auto",children:[(0,s.jsxs)("div",{className:v.classes.mediaContainer,children:[(0,s.jsx)(n.default,{imageLayout:"fill",ratio:"hero",additionalDesktopClasses:"h-[280px] md:h-[620px]",additionalMobileClasses:"h-[280px]",...e}),h.primaryVideo&&(0,s.jsx)("div",{className:(0,a.default)("absolute right-0 bottom-0 z-10 cursor-pointer rounded-full bg-black",v.classes.iconWrapper),onClick:function(){let s=e.fields?.primaryVideo;s&&((0,d.playStopVideo)(s,b?"playVideo":"pauseVideo"),j(!b))},children:b?(0,s.jsx)(c.default,{icon:"play",size:"40"}):(0,s.jsx)(c.default,{icon:"pause",size:"40"})})]}),C&&"sm"!==g&&(0,s.jsx)("div",{className:v.classes.overlay}),(0,s.jsx)("div",{className:(0,a.default)(v.classes.contentWrapper,y),children:(0,s.jsxs)("div",{className:(0,a.default)(v.classes.contentContainer,y),children:[(0,s.jsx)(i.Eyebrow,{classes:(0,a.default)(v.classes.eyebrow,y),...e}),(0,s.jsx)(r.default,{classes:(0,a.default)(v.classes.headline,y),...e}),(0,s.jsx)(o.default,{classes:(0,a.default)(v.classes.bodyClass,y),field:e.fields?.body}),h.cta1Link&&(0,s.jsx)(l.default,{cta1:(0,t.cta1ToButtonProps)(e,v.classes.buttonGroupClass.cta1Classes),cta2:(0,t.cta2ToButtonProps)(e,v.classes.buttonGroupClass.cta2Classes),wrapperClasses:v.classes.buttonGroupClass.wrapper})]})})]})});e.s(["Default",0,v])},976176,e=>{e.v({sliderWrapper:"slider-module__Vw-szq__sliderWrapper"})},979199,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(343794),l=e.i(612348);e.i(570139);var i=e.i(623350),r=e.i(316454),n=e.i(183665),d=e.i(207857),o=e.i(299419),c=e.i(382330),u=e.i(630177),m=e.i(159277),f=e.i(589669),h=e.i(271645),p=e.i(403740),x=e.i(699514),v=e.i(976176);let g=(0,f.withDatasourceCheck)(function(e){let f,g,{themeData:b,themeName:j}=(0,c.useTheme)(x.PromoImageWithSliderTheme),{currentScreenWidth:C}=(0,u.useCurrentScreenType)(),[y,N]=(0,h.useState)(50),[w,_]=(0,h.useState)(!1),[k,T]=(0,h.useState)(!1),S=(0,h.useRef)(null),{selectedModalId:F}=(0,o.useModalIdContext)();(0,h.useEffect)(()=>{e.isGenericModal&&""!=F&&T(e=>!e)},[e.isGenericModal,F]),(0,h.useEffect)(()=>{T(e=>!e)},[e.forceUpdate]),(0,h.useEffect)(()=>{setTimeout(()=>{let s=S.current?.querySelector(".before-after-slider__first-photo-container"),a=S.current?.querySelector(".before-after-slider__second-photo-container");s?.classList.add("after:block","after:py-s","after:text-center","after:min-w-[160px]","after:bg-black","after:text-white","after:uppercase","after:w-fit","after:content-none",`${e.fields?.rightImageLabel?.value?"md:after:content-[attr(data-afterLabel)]":'md:after:content-[""]'}`),a?.classList.add("after:block","after:py-s","after:text-center","after:min-w-[160px]","after:bg-black","after:text-white","after:uppercase","after:w-fit","after:content-none",`${e.fields?.leftImageLabel?.value?"md:after:content-[attr(data-beforeLabel)]":'md:after:content-[""]'}`),s?.setAttribute("data-afterLabel",e.fields?.rightImageLabel?.value??""),a?.setAttribute("data-beforeLabel",e.fields?.leftImageLabel?.value??"")},100)},[S.current,k]);let I=(0,m.getEnum)(e.fields?.layoutStyle)??"full-width",D={imageUrl:e.fields?.rightImage.value?.src??"",alt:e.fields?.rightImage.value?.alt},W={imageUrl:e.fields?.leftImage.value?.src??"",alt:e.fields?.leftImage.value?.alt}
9,L={width:"48px",height:"48px",display:C<(0,u.getBreakpoint)("md")?"none":"block",backgroundPosition:"center",borderRadius:"none",backgroundColor:"aw"===j?"#F26924":"#000000",backgroundRepeat:"no-repeat",backgroundImage:"aw"===j?"url('/before-after-slider-arrow-aw.svg')":"url('/before-after-slider-arrow-rba.svg')"};switch(I){case"side-by-side":f=b.classes.sideBySide.promoContent,g=b.classes.sideBySide.promoImgSlider;break;case"full-width":f=b.classes.fullWidth.promoContent,g=b.classes.fullWidth.promoImgSlider}return D?.imageUrl&&W?.imageUrl?(0,s.jsxs)(r.default,{variant:"lg",dataComponent:"promo/promoimagewithslider",...e,children:[(0,s.jsx)("div",{className:f,children:"full-width"===I?(0,s.jsxs)("div",{className:"grid grid-cols-12 ",children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-10",children:(0,s.jsx)(i.Caption,{caption:e.fields?.imageCaption,italic:!1,isImageCaption:!1,classes:b.classes.caption})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-2 md:justify-self-end ",onClick:()=>_(!w),children:(0,s.jsxs)("button",{className:b.classes.expandButton.wrapper,children:[(0,s.jsx)(d.default,{icon:w?"close":"plus",size:"aw"===j?"sm":"md",className:b.classes.expandButton.icon}),(0,s.jsx)(a.Text,{tag:"span",field:w?"aw"===j?{value:"CLOSE DETAILS"}:{value:"Hide Details"}:"aw"===j?{value:"SHOW DETAILS"}:{value:"View Details"},className:b.classes.expandButton.text})]})}),w&&(0,s.jsx)(l.default,{fields:{body:e.fields?.description??{value:""}},classes:b.classes.bodyCopy})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"order-last md:order-0",children:[(0,s.jsx)(n.default,{...e,classes:(0,t.default)(b.classes.sideBySide.headline,"mb-xxs md:mb-s ")}),(0,s.jsx)(l.default,{fields:{body:e.fields?.description??{value:""}},classes:b.classes.bodyCopy})]}),(0,s.jsx)(i.Caption,{caption:e.fields?.imageCaption,italic:!1,classes:(0,t.default)(b.classes.caption,"rba"===j&&"md:mb-0")})]})}),(0,s.jsx)("div",{ref:S,className:g,children:(0,s.jsxs)("div",{className:v.default.sliderWrapper,children:["full-width"===I&&(0,s.jsx)(n.default,{...e,classes:(0,t.default)(b.classes.fullWidth.headline,"mb-xxs md:mb-s")}),(0,s.jsxs)("div",{tabIndex:C<(0,u.getBreakpoint)("md")?-1:0,onKeyDown:function(e){"ArrowLeft"===e.key&&y>-1&&N(y-1),"ArrowRight"===e.key&&y<100&&N(y+1)},className:(0,t.default)(j,"relative -mx-m md:mx-0"),children:[(0,s.jsx)(p.default,{currentPercentPosition:y,onChangePercentPosition:e=>!(C<(0,u.getBreakpoint)("md"))&&(N(e),!0),firstImage:D,secondImage:W,feelsOnlyTheDelimiter:!0,delimiterIconStyles:L,delimiterColor:"white"},e.isGenericModal||e.forceUpdate?`forceRerender-${k}`:"react-before-after-slider"),(0,s.jsxs)("div",{className:(0,t.default)(b.classes.rangewrapper,C<(0,u.getBreakpoint)("md")?"min-h-[48px]":""),children:[(0,s.jsx)(a.Text,{field:e.fields?.rightImageLabel,tag:"span",className:(0,t.default)(b.classes.imageLabels,"left-[30px] flex-1 grow")}),C<(0,u.getBreakpoint)("md")&&(0,s.jsx)("input",{"aria-label":"before-after range input",className:"before-after-slider-range mx-xxs flex-1 grow",onChange:e=>N(parseFloat(e.target.value)),type:"range",min:-1,max:99.9,value:y}),(0,s.jsx)(a.Text,{field:e.fields?.leftImageLabel,tag:"span",className:(0,t.default)(b.classes.imageLabels,"right-[30px] flex-1 grow")})]})]})]})})]}):(0,s.jsx)(r.default,{variant:"lg",dataComponent:"promo/promoimagewithslider",...e,sectionWrapperClasses:"hidden"})});e.s(["Default",0,g])},701527,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(316454);e.i(76464);var l=e.i(281942),i=e.i(183665),r=e.i(349044),n=e.i(524886),d=e.i(146211);e.i(932111);var o=e.i(90217),c=e.i(382330),u=e.i(224043),m=e.i(436591),f=e.i(630177),h=e.i(159277),p=e.i(293351),x=e.i(589669),v=e.i(658666),g=e.i(617002);let b=(0,x.withDatasourceCheck)(function(e){let{fields:x}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,u.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,m.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,u.mapItemFieldResultsToObject)(e.fields)}}))}}}(e),b=(0,h.getEnum)(x?.mobileStyle)??"carousel",j=x?.copyAlignRight?.value,C="carousel"===b,{themeName:y,themeData:N}=(0,c.useTheme)((0,g.PromoImageGridTheme)(j,C)),w=x?.children?.length,{currentScreenWidth:_}=(0,f.useCurrentScreenType)(),k=(0,v.default)(),T={infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1};return(0,s.jsx)(t.default,{variant:"lg",dataComponent:"promo/promoimagegrid",...e,fields:x,children:(0,s.jsxs)("div",{className:N.classes.componentWrapper,children:[(0,s.jsx)("div",{className:N.classes.copyStyle,children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(l.Eyebrow,{useTag:(0,p.getHeadingLevel)("h2",x?.eyebrowLevel),classes:N.classes.eyebrowClass,...e,fields:x}),(0,s.jsx)(i.default,{classes:N.classes.headlineClass,...e,fields:x}),(0,s.jsx)(a.default,{classes:N.classes.bodyClass,...e,fields:x}
9),(x?.cta1Link?.value?.href||k)&&(0,s.jsx)("div",{className:N.classes.buttonClasses,children:(0,s.jsx)(d.default,{...e,fields:x})})]})}),(()=>{if(_<(0,f.getBreakpoint)("md"))if(C)return(0,s.jsx)(o.SliderWrapper,{sliderSettings:T,theme:y,children:x?.children?.map((e,a)=>(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(r.default,{image:e.fields?.primaryImage,layout:"intrinsic"},a)},a))});else if(w<=3)return(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)("div",{className:N.classes.mobileThreeImageGrid,children:x?.children?.map((e,a)=>0===a?(0,s.jsx)("div",{className:"col-span-2",children:(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"})},a):(0,s.jsx)("div",{children:(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"})},a))})});else return(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)("div",{className:"grid grid-cols-2 gap-s",children:x?.children?.map((e,a)=>(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"},a))})});return _>=(0,f.getBreakpoint)("md")&&_<(0,f.getBreakpoint)("ml")&&w<=3?(0,s.jsx)("div",{className:"container mx-auto flex md:w-1/2",children:(0,s.jsx)("div",{className:"grid w-full grid-cols-2 gap-s",children:x?.children?.map((e,a)=>0===a?(0,s.jsx)("div",{className:"col-span-2",children:(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"})},a):(0,s.jsx)("div",{children:(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"})},a))})}):(0,s.jsx)("div",{className:"flex w-full md:w-2/3 ml:w-3/4",children:(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)("div",{className:"grid gap-s md:grid-cols-2 ml:grid-cols-3",children:x?.children?.map((e,a)=>(0,s.jsx)(n.default,{image:e.fields?.primaryImage,imageLayout:"responsive",ratio:"square"},a))})})})})()]})})});e.s(["Default",0,b])},353627,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(292026),l=e.i(56574),i=e.i(316454),r=e.i(183665),n=e.i(382330),d=e.i(159277),o=e.i(589669),c=e.i(658666),u=e.i(796525);let m=(0,o.withDatasourceCheck)(function(e){let o=((0,d.getEnum)(e?.fields?.flipsnackPlacement)??"right")=="left",{themeData:m}=(0,n.useTheme)((0,u.PromoFlipsnackViewerTheme)(o)),f=e?.fields?.flipsnackBaseSrc?.value?.length>0?e?.fields?.flipsnackBaseSrc?.value:"https://cdn.flipsnack.com/widget/v2/widget.html",h=f+(f.indexOf("?")>=0?"&":"?")+`hash=${e?.fields?.flipsnackId?.value}&t=${e?.fields?.flipsnackVersion?.value}`,p=(0,c.default)(),x=e?.fields?.iframeTitle?.value||e?.fields?.headlineText?.value;return(0,s.jsxs)(i.default,{variant:"lg",dataComponent:"promo/promoflipsnackviewer",...e,children:[(0,s.jsx)("div",{className:m.classes.iframeContainer,children:(0,s.jsx)("iframe",{className:m.classes.iframe,src:h,seamless:!0,allowFullScreen:!0,loading:"lazy",title:x,height:"200px"})}),(0,s.jsxs)("div",{className:m.classes.copyContainer,children:[(0,s.jsx)(r.default,{classes:m.classes.headline,...e}),(p||e.fields?.body)&&(0,s.jsx)(a.default,{classes:m.classes?.body,...e}),(p||e.fields?.cta1Link)&&(0,s.jsx)(l.default,{cta1:(0,t.cta1ToButtonProps)(e,m.classes.buttonGroupClasses.cta1Classes),cta2:(0,t.cta2ToButtonProps)(e,m.classes.buttonGroupClasses.cta2Classes),wrapperClasses:m.classes.buttonGroupClasses.wrapper})]})]})});e.s(["Default",0,m])},293512,e=>{"use strict";var s=e.i(843476),a=e.i(795092),t=e.i(612348),l=e.i(292026),i=e.i(56574),r=e.i(316454),n=e.i(183665),d=e.i(580959);e.i(343888);var o=e.i(747586),c=e.i(382330),u=e.i(159277),m=e.i(589669),f=e.i(658666),h=e.i(990211);function p(e,t){let l=(0,f.default)();return t&&t?.value!==""||l?(0,s.jsx)("div",{className:e,children:(0,s.jsx)(a.RichText,{field:t})}):(0,s.jsx)(s.Fragment,{})}let x=(0,m.withDatasourceCheck)(function(e){let a=!!e.fields?.primaryImage?.value?.src,m=(0,u.getEnum)(e.fields?.imgPosition)??"right",f=a&&"right"===m||!a&&e.fields?.ctaRightAlign?.value===!0,x=(0,u.getEnum)(e.fields?.componentStyle)??"brand-color-solid",v=!!e.fields?.cta1Link?.value?.href,g=!!e.fields?.cta2Link?.value?.href,b=0;v&&g?b=2:(v||g)&&(b=1);let j="black-solid"===x,C=e.fields?.fullBleedOnSolidColor?.value===!0&&("brand-color-solid"===x||"black-solid"===x),{themeData:y}=(0,c.useTheme)((0,h.themePromoBannerAuthored)(x,f,a,b)),N=function(e){switch(e){case"brand-color-solid":return"primary";case"black-solid":return"secondary"}return"white"}(x),w="";return C&&!j?w="bg-primary":C&&j&&(w="bg-black"),(0,s.jsxs)(r.default,{variant:"lg",sectionWrapperClasses:w,gap:"gap-x-0",padding:"px-0",dataComponent:"promo/promobannerauthored",backgroundVariant:N,...e,children:[(0,s.jsxs)("div",{className:y.classes.contentClasses.contentWrapperClass,children:[a&&(0,s.jsx)("div",{className:y.classes.contentClasses.imageContainerClass,children:(0,s.jsx)(d.default,{...e,imageLayout:"responsive",ratio:y.classes.contentClasses.imageRatio})}),(0,s.jsxs)("div",{className:y.classes.contentClasses.copyContainerClass,children:[(0,s.jsx)(n.default,{classes:y.classes.firstHeadline.headlineContainer,...e}),e.fields?.subheadlineText&&(0,s.jsx)(o.Subheadline,{classes:y.classes.contentClasses?.subHeadlineContainer,...e}),e.fields?.body&&(0,s.jsx)(t.default,{classes:y.classes.contentClasses?.body,...e}),(a||!f)&&(v||g)&&(0,s.jsx)(i.default,{cta1:(0,l.cta1ToButtonProps)(e,y.classes.buttonGroupClass.cta1Classes),cta2:(0,l.cta2ToButtonProps)(e,y.classes.buttonGroupClass.cta2Classes),wrapperClasses:y.classes.buttonGroupClass.wrapper}),p(y.classes.contentClasses.legalCopyClass,e.fields?.legalCopy)]}),!a&&f&&(v||g)&&(0,s.jsx)(i.default,{cta1:(0,l.cta1ToButtonProps)(e,y.classes.buttonGroupClass.cta1Classes),cta2:(0,l.cta2ToButtonProps)(e,y.classes.buttonGroupClass.cta2Classes),wrapperClasses:y.classes.buttonGroupClass.wrapper})]}),p(y.classes.contentClasses.legalCopyClass,e.fields?.legalCopy)]})});e.s(["Default",0,x])},58582,e=>{"use strict";var s=e.i(843476),a=e.i(473769),t=e.i(630177),l=e.i(589669),i=e.i(316454);let r=(0,l.withDatasourceCheck)(function(e){let{currentScreenWidth:l}
9=(0,t.useCurrentScreenType)(),r=l<=(0,t.getBreakpoint)("ml");return e.fields?(0,s.jsx)(i.default,{variant:r?"full":"lg",dataComponent:"product/productcomparechart",padding:r&&"px-0",...e,children:(0,s.jsx)(a.ProductCompareChart,{...e})}):(0,s.jsx)(s.Fragment,{})});e.s(["Default",0,r])},971648,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(788610),l=e.i(316454),i=e.i(183665),r=e.i(207857),n=e.i(382330),d=e.i(224043),o=e.i(436591),c=e.i(589669),u=e.i(271645),m=e.i(864831),f=e.i(180110);function h(e){let{onClick:a}=e,{themeData:t}=(0,n.useTheme)(m.ProductCarouselTheme);return(0,s.jsx)("div",{className:t.classes.arrowPrevWrapperClass,children:(0,s.jsx)("div",{className:t.classes.arrowPrevButtonWrapperClass,children:(0,s.jsx)("button",{className:t.classes.arrowButtonClass,onClick:a,onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&a&&a(e)},tabIndex:0,children:(0,s.jsx)(r.default,{icon:"arrow-left",size:"lg"})})})})}function p(e){let{onClick:a}=e,{themeData:t}=(0,n.useTheme)(m.ProductCarouselTheme);return(0,s.jsx)("div",{className:t.classes.arrowNextWrapperClass,children:(0,s.jsx)("div",{className:t.classes.arrowPrevButtonWrapperClass,children:(0,s.jsx)("button",{className:t.classes.arrowButtonClass,onClick:a,onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&a&&a(e)},tabIndex:0,children:(0,s.jsx)(r.default,{icon:"arrow-right",size:"lg"})})})})}let x=(0,c.withDatasourceCheck)(function(e){let{themeData:r}=(0,n.useTheme)(m.ProductCarouselTheme),c=(e={...e,...function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,d.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,o.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,d.mapItemFieldResultsToObject)(e.fields)}}))}}}(e)}).fields.children,[x,v]=(0,u.useState)(0),g={className:"center product-carousel",centerMode:!0,infinite:!0,dots:!0,arrows:!0,slidesToScroll:1,variableWidth:!0,enableNumberedPagination:!1,pauseOnFocus:!0,pauseOnHover:!0,dotsClass:"slick-dots static",useTransform:!1,prevArrow:(0,s.jsx)(h,{}),nextArrow:(0,s.jsx)(p,{}),speed:400,beforeChange:(e,s)=>{v(s)}};return(0,s.jsxs)(l.default,{variant:"full",padding:"px-0",dataComponent:"general/productcarousel",...e,children:[(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsxs)("div",{className:"px-m md:max-w-(--breakpoint-lg) lg:mx-auto",children:[(0,s.jsx)(i.default,{defaultTag:"h2",...e}),(0,s.jsx)(a.default,{...e})]})}),(0,s.jsxs)("div",{className:r.classes.columnClass,children:[(0,s.jsx)("div",{className:"product-carousel z-0",children:(0,s.jsx)(f.RenderSlider,{currentSlideIndex:x,slidesData:c,sliderSettings:g})}),(0,s.jsx)("div",{className:r.classes.exploreButtonClass,children:(0,s.jsx)("div",{children:(0,s.jsx)(t.default,{field:e?.fields.cta1Link,variant:e?.fields.cta1Style,icon:e?.fields.cta1Icon,classes:e?.fields.cta1Style,modalId:e.fields?.cta1Modal?.fields?.modalId?.value,modalLinkText:e.fields?.cta1ModalLinkText,ctaPersonalizeEventName:e.fields?.cta1PersonalizeEventName})})})]})]})});e.s(["Default",0,x])},206293,e=>{"use strict";var s=e.i(843476),a=e.i(502220),t=e.i(316454),l=e.i(630177);let i=(0,e.i(589669).withDatasourceCheck)(function(e){let{currentScreenWidth:i}=(0,l.useCurrentScreenType)(),r=i<=(0,l.getBreakpoint)("ml");return e.fields?(0,s.jsx)(t.default,{variant:r?"full":"lg",dataComponent:"product/comparisontableseries",padding:r&&"px-0",...e,children:(0,s.jsx)(a.ComparisonTable,{...e})}):(0,s.jsx)(s.Fragment,{})});e.s(["Default",0,i])},278762,e=>{"use strict";var s=e.i(843476),a=e.i(502220),t=e.i(316454),l=e.i(630177);let i=(0,e.i(589669).withDatasourceCheck)(function(e){let{currentScreenWidth:i}=(0,l.useCurrentScreenType)(),r=i<=(0,l.getBreakpoint)("ml");return e.fields?(0,s.jsx)(t.default,{variant:r?"full":"lg",dataComponent:"product/comparisontableproducts",padding:r&&"px-0",...e,children:(0,s.jsx)(a.ComparisonTable,{...e})}):(0,s.jsx)(s.Fragment,{})});e.s(["Default",0,i])},906403,e=>{"use strict";var s=e.i(843476),a=e.i(882596),t=e.i(316454),l=e.i(382330),i=e.i(224043),r=e.i(436591),n=e.i(159277),d=e.i(589669),o=e.i(182912);let c=(0,d.withDatasourceCheck)(function(e){let{fields:d}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,i.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,r.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,i.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering),{themeData:c}=(0,l.useTheme)(o.ArticleTagsTheme),{page:u}=(0,a.useSitecore)(),m=u.layout.sitecore.route;if(!m?.fields)return null;let f=[],h=m.fields?.articlePublicTags,p=e?.fields?.facetId?.value??"tags",x=m.fields,v=d.children;
9if(v?.length<1&&h?.forEach(e=>{f.push({facetUid:p,value:e.fields?.title?.value??""})}),v?.forEach(e=>{let s=(0,n.getEnum)(e.fields?.field);if(!s||!x.hasOwnProperty(s))return;let a=x[s].map(e=>e.fields?.title?.value),t=e.fields?.facet,l=t?.fields.uniqueIdentifier.value;l&&a&&a.forEach(e=>{e&&f.push({facetUid:l,value:e,facetId:t.id,dependsOn:t.fields.dependsOn?.id})})}),f?.forEach(e=>{if(!e.dependsOn)return;let s=[],a=e.dependsOn;for(;void 0!=a;){let e=f.find(e=>e.facetId&&e.facetId==a);if(!e)return;s.push({facetUid:e.facetUid,value:e.value}),a=e.dependsOn}e.dependencyValues=s}),f?.length<1)return null;let g=d?.tagsLink;return(0,s.jsx)(t.default,{variant:"lg",dataComponent:"pages/articletags",...e,fields:d,children:(0,s.jsx)("div",{className:c.classes.tagsWrapper,children:f?.map(e=>{let a=[`f:${e.facetUid}=[${e.value}]`];return e.dependencyValues?.forEach(e=>a.push(`f:${e.facetUid}=[${e.value}]`)),(0,s.jsxs)(s.Fragment,{children:[g?.value?.href&&(0,s.jsxs)("a",{href:`${g?.value?.href}#${a.join("&")}`,children:[(0,s.jsx)("div",{className:c.classes.tag,children:e.value})," "]},e.facetUid),!g?.value?.href&&(0,s.jsx)("div",{className:c.classes.tag,children:e.value},e.facetUid)]})})})})});e.s(["Default",0,c])},76439,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(316454),l=e.i(183665),i=e.i(291749),r=e.i(207857),n=e.i(382330),d=e.i(943928),o=e.i(589669),c=e.i(271645),u=e.i(275860);let m=(0,o.withDatasourceCheck)(function(e){let{themeData:o,themeName:m}=(0,n.useTheme)(u.RecentlyViewedDocumentsTheme),[f,h]=(0,c.useState)(!1),p=(0,d.useRecentlyViewed)();return(0,s.jsx)(t.default,{variant:"lg",dataComponent:"listing/recentlyvieweddocuments",...e,children:p.recentLinks.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:o.classes.headlineBorder,children:(0,s.jsxs)("div",{className:"mt-s flex md:mt-xxs",children:["aw"===m&&(0,s.jsx)("div",{className:"m-xxxs mt-px flex",children:(0,s.jsx)(r.default,{icon:"orange-triangle"})}),(0,s.jsx)(l.default,{classes:o.classes.headlineClass,...e})]})}),(0,s.jsxs)("div",{className:"col-span-12 border-t border-solid border-gray md:col-span-8",children:[(0,s.jsx)("ul",{className:"flex flex-col",children:p.recentLinks.length>0&&p.recentLinks.map((e,t)=>e&&(0,s.jsx)("li",{className:(0,a.default)(!f&&t>3&&"hidden"),children:(0,s.jsx)(i.default,{field:e,className:"flex border-b border-solid border-gray py-s text-body text-darkprimary hover:underline",target:"_blank",ariaLabel:{value:e??"Recently Viewed Items"}})},e.id))}),p.recentLinks.length>4&&(0,s.jsx)("button",{type:"button",className:"mt-s cursor-pointer border-none bg-transparent p-0 font-sans text-text-link font-heavy underline",onClick:()=>h(!f),children:f?"View Less":"View All"})]})]})})});e.s(["Default",0,m])},280240,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(316454),l=e.i(183665),i=e.i(580959),r=e.i(90217),n=e.i(382330),d=e.i(224043),o=e.i(436591),c=e.i(630177),u=e.i(159277),m=e.i(589669),f=e.i(893239),h=e.i(877022);let p={1:"md:row-start-1!",2:"md:row-start-2!",3:"md:row-start-3!"},x={1:"md:col-start-1!",3:"md:col-start-10!"},v=(0,m.withDatasourceCheck)(function(e){let{fields:m}=e=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,d.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,o.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,d.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering),{themeName:v,themeData:g}=(0,n.useTheme)(h.ListImageWithCalloutsTheme),b=(0,u.getEnum)(m?.imgPosition)??"right",j="";switch((0,u.getEnum)(m?.backgroundColor)){case"black":j="theme-black";break;case"gray":j="theme-gray";break;case"white":j="theme-white";break;case"primary":j="theme-primary";break;case"secondary":j="theme-secondary"}let{currentScreenWidth:C}=(0,c.useCurrentScreenType)();if(!m)return(0,s.jsx)(s.Fragment,{});let y=m.children,N={className:j,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,enableNumberedPagination:!1};return(0,s.jsx)(t.default,{variant:"aw"===v?"full":"lg",backgroundVariant:(0,u.getEnum)(m.backgroundColor),dataComponent:"listing/listimagewithcallouts",...e,children:(0,s.jsx)("div",{className:(0,a.default)("col-span-12",g.classes.listWrapper),children:(0,s.jsxs)("div",{className:(0,a.default)("grid-rows-auto grid grid-cols-12 gap-y-0 md:max-w-(--breakpoint-lg) md:grid-flow-row-dense md:grid-cols-12 md:gap-s md:px-m lg:mx-auto"),children:[(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(l.default,{classes:g.classes.headline,...e})}),(0,s.jsx)("div",{className:(0,a.default)("col-span-12 row-span-3 md:col-span-6 md:row-start-2!",y.length>3?"md:col-start-4!":"right"===b?"md:col-start-7!":"md:col-start-1!",g.classes.imageContainer),children:(0,s.jsx)(i.default,{imageLayout:"intrinsic",ratio:"portrait",focusArea:"top",...e})}
9),C<=(0,c.getBreakpoint)("md")?(0,s.jsx)("div",{className:(0,a.default)("col-span-12",y.length>3?"md:col-span-3":"md:col-span-5"),children:(0,s.jsx)(r.SliderWrapper,{sliderSettings:N,theme:v,children:y.map((e,a)=>(0,s.jsx)(f.default,{fields:e.fields,callOutItemClasses:g.classes.callOutItemClasses},`callout-mobile-${e.fields?.headlineText?.value??a}`))})}):y.map((e,t)=>{let l=y.length>3?"md:col-span-3":"md:col-span-5",i=p[4===y.length?t%2+2:t%3+2],r="";return r=y.length>3?4===y.length?x[t>1?3:1]:x[t>2?3:1]:"right"===b?"md:col-start-1!":"md:col-start-7!",(0,s.jsx)("div",{className:(0,a.default)(l,i,r),children:(0,s.jsx)(f.default,{fields:e.fields,callOutItemClasses:g.classes.callOutItemClasses})},`callout-desktop-${e.fields?.headlineText?.value??t}`)})]})})})});e.s(["Default",0,v])},889118,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(788610),l=e.i(292026),i=e.i(56574),r=e.i(316454),n=e.i(183665),d=e.i(429662),o=e.i(382330),c=e.i(224043),u=e.i(436591),m=e.i(589669),f=e.i(881367);let h=(0,m.withDatasourceCheck)(function(e){e=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,c.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,u.mapSearchResults)(s.data.item.children,e=>({id:e.id,fields:{...(0,c.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering);let{themeData:m,themeName:h}=(0,o.useTheme)((0,f.ListHighlightAndCtaTheme)()),p={fields:{headlineText:e.fields?.sectionHeadline,headlineLevel:e.fields?.sectionHeadlineLevel}},x=e.fields?.listItemStyle?.fields?.Value.value;return(0,s.jsxs)(r.default,{variant:"lg",dataComponent:"listing/listhighlightandcta",...e,children:[(0,s.jsx)("div",{className:m.classes.headlineBorder,children:(0,s.jsxs)("div",{className:"mt-4 flex md:mt-2",children:["aw"===h&&(0,s.jsx)("div",{className:"m-1 mt-px flex",children:(0,s.jsx)(d.default,{})}),(0,s.jsx)(n.default,{classes:m.classes.headlineClass,fields:p.fields})]})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-8",children:e.fields?.children?.map(e=>(e.fields&&"row-list"===x&&(e.fields.cta1Link.value.text=""!==e.fields.headlineText.value?e.fields.headlineText.value:e.fields.cta1Link.value.text),(0,s.jsx)("div",{className:m.classes.listItemContainer,children:(0,s.jsx)("div",{className:m.classes.listItemHeadlineBorder,children:(0,s.jsxs)("div",{children:["row-list"!==x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{classes:m.classes.contentClasses.listItemHeadlineClass,fields:e.fields}),(0,s.jsx)(a.default,{fields:e.fields,classes:m.classes.contentClasses.body})]}),"row-list"===x?(0,s.jsx)(t.default,{field:e.fields?.cta1Link,variant:{name:"Link Right Icon",fields:{Value:{value:"link-right-icon"}},id:"",url:""},icon:e.fields?.cta1Icon,classes:(m.classes.buttonGroupClassRightIcon,"font-sans text-s")}):(0,s.jsx)(i.default,{cta1:(0,l.cta1ToButtonProps)(e,m.classes.buttonGroupClass.cta1Classes),cta2:(0,l.cta2ToButtonProps)(e,m.classes.buttonGroupClass.cta2Classes),wrapperClasses:m.classes.buttonGroupClass.wrapper})]})})},e.id)))})]})});e.s(["Default",0,h])},446520,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(882596),l=e.i(343794),i=e.i(316454),r=e.i(183665),n=e.i(349044),d=e.i(580959);e.i(831837);var o=e.i(37570),c=e.i(146211);e.i(318221);var u=e.i(173164),m=e.i(207857),f=e.i(382330),h=e.i(584456),p=e.i(307961),x=e.i(589669),v=e.i(995817),g=e.i(871607),b=e.i(522016),j=e.i(271645),C=e.i(85201),y=e.i(423081);function N({themeData:e,favProduct:t}){let l=t.standardInteriorColors?.targetItem?.swatches?.colors,i=l?.length,r=t.featuredInteriorColors.colors??[],d=0;return i&&r?.length>0&&(d=i-(r=r.slice(0,3)).length),(0,s.jsxs)(s.Fragment,{children:[r?.length>0&&(0,s.jsxs)("div",{className:e.classes.colorSwatchesWrapper,children:[(0,s.jsx)(a.Text,{tag:"h4",field:{value:"Colors"},className:e.classes.colorLabel}),(0,s.jsx)(b.default,{href:t.productDetailPageLink.url??"",children:(0,s.jsxs)("div",{className:e.classes.swatches,children:[r?.map((a,t)=>(0,s.jsx)("div",{className:e.classes.colorSwatches,children:(0,s.jsx)(n.default,{image:{value:a.swatchImage},layout:"intrinsic"})},t)),d>0&&(0,s.jsxs)("div",{children:["+",d]})]})})]}),!!t.productDetailPageLink.text&&(0,s.jsx)("div",{className:e.classes.actions,children:(0,s.jsx)(c.default,{classes:(e.classes.buttonGroupClass,{wrapper:"mb-0 md:mb-0",cta1Classes:"font-bold"}),fields:{cta1Link:{value:{href:t.productDetailPageLink.url,text:t.productDetailPageLink.text,anchor:t.productDetailPageLink.anchor,target:t.productDetailPageLink.target}},cta1AriaLabel:{value:""},cta1ModalLinkText:{value:""},cta1PersonalizeEventName:{value:""},cta1Style:{id:"",url:"",name:"Primary",displayName:"Primary",fields:{Value:{value:"primary"}}},cta1Icon:{id:"",url:"",name:"Arrow",displayName:"Arrow",fields:{Value:{value:"arrow"}}}}})})]})}let w=(0,x.withDatasourceCheck)(function(e){let{fields:n}=e,{page:c}=(0,t.useSitecore)(),x=c.layout.sitecore.context.language??"en",{themeName:w,themeData:_}
9=(0,f.useTheme)(C.FavoriteProductsTheme),[k,T]=(0,j.useState)([]),S=async(e,s,a)=>{let t=await fetch(e,{method:"POST",body:JSON.stringify({favoriteProducts:s,language:a}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");return t.json()},[F]=(0,j.useState)([]),[I,D]=(0,j.useState)(null),{favoriteProducts:W,toggleFavorite:L}=(0,g.useFavoriteProducts)(),E=W.length>0;(0,j.useEffect)(()=>{W.length>0?S("/api/aw/favorite-products",W,x).then(e=>{T(e.productData)}).catch(e=>D(e)):T([])},[W]),(0,p.useBVScript)({environment:h.default,theme:w});let B=e=>{let s=e.target,a=s?.closest(".favorite-product-item");if(!a)return;let t=a.getAttribute("data-product-id");null==t||(L(t)==v.ToggleFavoriteAction.removed?a.classList.remove("favorited","border-[transparent_#f26924_transparent_transparent]"):a.classList.add("favorited","border-[transparent_#f26924_transparent_transparent]"))};return(0,s.jsxs)(i.default,{variant:"lg",dataComponent:"listing/favoriteproducts",...e,children:[(0,s.jsxs)("div",{className:"printSection col-span-12 flex justify-between",children:[(0,s.jsx)(r.default,{useTag:"h4",classes:_.classes.mainheadline,...e}),F?.length>0&&E&&!I&&(0,s.jsxs)("div",{onClick:()=>{let e=` 10 @media print { 11 header, 12 footer, 13 .react-tabs__tab-list, 14 .no-print, 15 section[data-component="hero/herotwocolumn"], 16 section[data-component="hero/tabsgeneralcontent"] h2 { 17 display: none; 18 } 19 20 .printSection { 21 display: inherit !important; 22 } 23 .printOnly { 24 display: block !important; 25 } 26 } 27 `,s=document.createElement("style");s.innerHTML=e,document.head.appendChild(s),window.print(),document.head.removeChild(s)},className:"no-print flex cursor-pointer items-center text-body text-primary max-md:hidden",children:[(0,s.jsx)(m.default,{icon:"pdf-aw",className:"mr-xxs"}),"Print"]})]}),(0,s.jsx)("div",{className:"col-span-12",children:E?(0,s.jsxs)(s.Fragment,{children:[!F&&!I&&(0,s.jsx)("div",{className:"loader flex min-h-[40vh] w-full items-center justify-center",children:(0,s.jsx)(u.Spinner,{size:48})}),I&&(0,s.jsx)("div",{className:"font-sans text-sm-m font-medium md:text-m",children:"We're sorry, we couldn't process your request at this time. Please refresh or try again later."}),(0,s.jsx)("div",{className:"printSection grid grid-cols-1 gap-4 ml:grid-cols-3",children:!I&&k.length>0&&k.map((e,t)=>{let i=e.productId.value,r=W.includes(i),n=e.priceLevel?.targetItem?.priceLevelText?.value&&+e.priceLevel.targetItem.priceLevelText.value,c=e?.bazaarvoiceProductId?.value;return(0,s.jsx)("div",{className:"mb-m",children:(0,s.jsxs)("div",{className:_.classes.productPreviewCradWrapper,children:[(0,s.jsx)("div",{className:"absolute top-0 right-0",children:(0,s.jsx)("div",{className:(0,l.default)(_.classes.favoriteProduct,r?" favorite-product-item favorited border-[transparent_#f26924_transparent_transparent]":""),"data-product-id":e.productId.value,onClick:B,children:(0,s.jsx)(m.default,{icon:"favorite",fillId:"white",size:"xl",className:_.classes.favoriteIcon})})}),(0,s.jsxs)("div",{className:_.classes.headerWrapper,children:[(0,s.jsx)(a.Text,{tag:"h4",className:_.classes.eyebrow,field:{value:e.productSeries?.targetItem?.productTypeName?.value}}),(0,s.jsx)(b.default,{href:e.productDetailPageLink.url??"",className:_.classes.headlineWrapper,children:(0,s.jsx)(a.Text,{useTag:"h4",className:_.classes.headline,field:{value:e.productName.value}})}),(0,s.jsxs)("div",{className:_.classes.ratingsAndPriceWrapper,children:[c&&(0,s.jsx)("div",{className:"review flex-[0_0_auto]","data-bv-show":"inline_rating","data-bv-product-id":c,"data-bv-seo":"false"}),n&&n>0&&(0,s.jsx)("div",{className:c?_.classes.priceLevelWrapper:"",children:(0,s.jsx)("div",{className:_.classes.priceText,children:function(e,t){switch(t){case 1:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$"}}),(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$$$"}})]});case 2:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$"}}),(0,s.jsx)(a.Text,{ttag:"span",className:e.classes.priceLevel,field:{value:"$$$"}})]});case 3:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$$"}}),(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$"}})]});case 4:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$$$"}}),(0,s.jsx)(a.Text,{ttag:"span",className:e.classes.priceLevel,field:{value:"$"}})]});case 5:return(0,s.jsx)(a.Text,{tag:"span",className:e.classes.priceLevel,field:{value:"$$$$$"}});default:return null}}(_,n)})})]})]}),(0,s.jsxs)("div",{className:"order-2 my-xxs self-stretch",children:[(0,s.jsx)("div",{className:"printOnly hidden",children:(0,s.jsx)("img",{src:e.productImage?.src,alt:e.productImage?.alt,className:"mx-auto h-[350px]"})}),(0,s.jsx)(b.default,{href:e.productDetailPageLink.url??"",className:"no-print",children:(0,s.jsx)(d.default,{imageLayout:"intrinsic",fields:{primaryImageCaption:{value:""},primaryImage:{value:e.productImage},primaryImageMobile:{value:e.productImageMobile},primaryImageMobileFocusArea:e?.primaryImageMobileFocusArea?.targetItem?.value?.value?{id:"",url:"",name:e.primaryImageMobileFocusArea.targetItem.value.value,displayName:e.primaryImageMobileFocusArea.targetItem.value.value,fields:{Value:{value:e.primaryImageMobileFocusArea.targetItem.value.value}}}:{id:"",url:"",name:"Center",displayName:"Center",fields:{Value:{value:"center"}}}}})})]}),(0,s.jsx)(o.RichTextWrapper,{field:{value:e.productDescription.value},classes:_.classes.body}),(0,s.jsx)("div",{className:_.classes.awColorsandCTA,children:(0,s.jsx)(N,{themeData:_,favProduct:e})})]})},t)})})]}):(0,s.jsx)(y.NoResults,{fields:n})})]})});e.s(["Default",0,w])},881305,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665);e.i(318221);var l=e.i(173164),i=e.i(207857),r=e.i(401723),n=e.i(589669),d=e.i(857977),o=e.i(271645),c=e.i(935059),u=e.i(423081),m=e.i(352944),f=e.i(161394);let h=(0,n.withDatasourceCheck)(function(e){let{favoriteDesigns:n,isLoading:h,error:p}=(0,d.useFavoriteDesigns)(),x=(0,o.useRef)(null),v=(0,c.useReactToPrint)({contentRef:x,documentTitle:"Favorite Designs",onBeforePrint:()=>Promise.resolve(console.log("onBeforePrint")),onAfterPrint:()=>console.log("onAfterPrint")}),g=(0,r.useExternalScript)("https://static.addtoany.com/menu/page.js"),{fields:b}=e;return((0,o.useEffect)(()=>{let e=globalThis;e.a2a_config&&(e.a2a_config.onclick=1,e.a2a_config.num_services=8,e.a2a_config.exclude_services=f.shareServicesToExclude,e.a2a_config.templates={email:{subject:"Check out my Favorites from Andersen Windows",body:"Link to my Favorites on AndersenWindows.com ${link}"},sms:{body:"Link to my Favorites on AndersenWindows.com ${link}"}},e.a2a_config.callbacks=e.a2a_config.callbacks||[])},[g]),b)?(0,s.jsxs)(a.default,{variant:"lg",dataComponent:"general/favoritedesigns",...e,children:[(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)(t.default,{...e}),n.length>0&&!p&&(0,s.jsxs)("button",{id:"print-icon",className:"hidden cursor-pointer items-center justify-center text-darkprimary ml:flex",onClick:v,children:[(0,s.jsx)(i.default,{icon:"print"}),(0,s.jsx)("span",{className:"ml-xxs",children:"Print"})]})]})}),(0,s.jsxs)("div",{className:"col-span-12",ref:x,children:[0===n.length&&!p&&(0,s.jsx)(u.NoResults,{fields:b}),!!p&&(0,s.jsx)("div",{className:"font-sans text-sm-m font-medium ml:text-m",children:"We're sorry, we couldn't process your request at this time. Please refresh or try again later."}),!!h&&!p&&(0,s.jsx)("div",{className:"loader flex min-h-[40vh] w-full items-center justify-center",children:(0,s.jsx)(l.Spinner,{size:48})}),n.length>0&&n.map(e=>{let a,t,l,i,r,n;return(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("span",{className:"font-serif text-small print:hidden",children:(a=new Date(e.createdDate),t="en-us",l=a.toLocaleDateString(t,{weekday:"long"}),i=a.toLocaleDateString(t,{month:"long"}),r=a.toLocaleDateString(t,{day:"2-digit"}),n=a.toLocaleDateString(t,{year:"numeric"}),`Created ${l} ${i}, ${r} ${n}`)}),(0,s.jsx)("div",{className:"relative border border-gray",children:(0,s.jsx)(m.default,{...e})})]},e.createdDate)})]})]}):null});e.s(["Default",0,h])},355812,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(612348),l=e.i(292026),i=e.i(56574),r=e.i(316454),n=e.i(183665);e.i(343888);var d=e.i(747586),o=e.i(382330),c=e.i(589669),u=e.i(678330);let m=(0,c.withDatasourceCheck)(function(e){let{themeData:c}=(0,o.useTheme)(u.TwoColumnHeadlineTheme);return e.fields?(0,s.jsxs)(r.default,{variant:"lg",dataComponent:"general/twocolumnheadline",...e,children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(n.default,{classes:c.classes.headlineClass,...e})}),(0,s.jsxs)("div",{className:"col-span-12 md:col-span-6",children:[(0,s.jsx)(d.Subheadline,{classes:(0,a.default)(c.classes.subheadlineClass,{"mb-s":!e.fields?.body?.value}),...e}),(0,s.jsx)(t.default,{classes:c.classes.bodyClass,...e}),(0,s.jsx)(i.default,{cta1:(0,l.cta1ToButtonProps)(e,c.classes.buttonGroupClass.cta1Classes),cta2:(0,l.cta2ToButtonProps)(e,c.classes.buttonGroupClass.cta2Classes),wrapperClasses:c.classes.buttonGroupClass.wrapper})]})]}):null});e.s(["Default",0,m])},898750,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(612348),l=e.i(316454),i=e.i(183665),r=e.i(382330),n=e.i(159277),d=e.i(589669),o=e.i(571738),c=e.i(198334);let u=(0,d.withDatasourceCheck)(function(e){let d=(0,n.getEnum)(e.fields?.headlineLevel),u={...e?.fields?.LeftToggleLink,value:{...e?.fields?.LeftToggleLink?.value,text:e?.fields?.LeftToggleText?.value}},m={...e?.fields?.RightToggleLink,value:{...e?.fields?.RightToggleLink?.value,text:e?.fields?.RightToggleText?.value}},{themeData:f}=(0,r.useTheme)(o.ToggleBannerTheme),h=(0,n.getEnum)(e.fields?.containerWidth)??"fullWidth",p="rightToggle"===(0,n.getEnum)(e.fields?.ToggleChkSelection)?2:1;return(0,s.jsx)(l.default,{dataComponent:"general/togglebanner",variant:"lg",sectionWrapperClasses:"fullBleed"===h?"bg-primary":"",gap:"gap-x-0",padding:"px-0",backgroundVariant:"primary",grid:"section-grid grid grid-cols-2 md:grid-cols-12 bg-primary",...e,children:(0,s.jsxs)("div",{className:f.classes.mainWrapper,children:[(0,s.jsxs)("div",{className:f.classes.headlineWrapper,children:[(0,s.jsx)(i.default,{useTag:d,...e}),(0,s.jsx)(t.default,{...e})]}),(0,s.jsxs)("div",{className:f.classes.buttonWrappers,children:[(0,s.jsx)(c.default,{icon:2===p?{fields:{Value:{value:"checkround"}},name:"checkround"}:e?.fields?.RightToggleIcon,field:m,classes:(0,a.default)(f.classes.buttonRightClass,f.classes.buttonHoverClass)}),(0,s.jsx)(c.default,{icon:1===p?{fields:{Value:{value:"checkround"}},name:"checkround"}:e?.fields?.LeftToggleIcon,classes:(0,a.default)(`-order-1 flex relative gap-2 pl-0 text-center ${1===p?"flex-row-reverse":""}`,f.classes.buttonLeftClass),field:u})]})]})})});e.s(["Default",0,u])},194616,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(898919);let l=(0,e.i(589669).withDatasourceCheck)(function(e){let l=t.default;return(0,s.jsx)(a.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/swatchcollection",...e,children:(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(l,{layoutStyle:"full-width",...e})})})});e.s(["Default",0,l])},335823,e=>{"use strict";var s=e.i(843476),a=e.i(882596),t=e.i(343794),l=e.i(612348),i=e.i(292026),r=e.i(56574),n=e.i(316454),d=e.i(183665),o=e.i(207857),c=e.i(987060),u=e.i(382330),m=e.i(630177),f=e.i(159277),h=e.i(589669),p=e.i(271645),x=e.i(252073);let v=(0,h.withDatasourceCheck)(function(e){let h,{themeData:v}=(0,u.useTheme)(x.StickyBannerTheme),g=(0,c.useStickyBanner)(),{page:b}=(0,a.useSitecore)(),{addBanner:j,removeBanner:C,bannerList:y}=g??{},[N,w]=(0,p.useState)(!1),_=Number(e.fields?.scrollDepth?.value?.replace(/ /g,"")??0),[k,T]=(0,p.useState)(0===_),{currentScreenWidth:S}=(0,m.useCurrentScreenType)(),[F,I]=(0,p.useState)(S<=(0,m.getBreakp
27oint)("md")),D=e.rendering.uid??"",W=b.layout.sitecore.route?.fields?.hideDesktopConsultationSlider?.value,L=b.layout.sitecore.route?.fields?.hideMobileConsultationSlider?.value,E=(0,f.getEnum)(e.fields?.bannerVisibility)??"desktop-mobile";return(0,p.useEffect)(()=>{if((F||!W)&&(!F||!L))return j?.({bannerId:D,visibilityType:E}),()=>C?.({bannerId:D,visibilityType:E})},[F]),(0,p.useEffect)(()=>{I(S<=(0,m.getBreakpoint)("md"))},[S]),(0,p.useEffect)(()=>{let e=()=>{window.scrollY>=_&&!1===k&&T(!0)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),N||y&&(h=F?y?.mobileBannerList:y?.desktopBannerList,h?.[0]?.bannerId!==D)||!k?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(n.default,{variant:"full",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/stickybanner",...e,children:(0,s.jsx)("div",{className:(0,t.default)("theme-black fixed bottom-0 left-0 right-0 z-20 col-span-12 place-items-center bg-theme-bg"),children:(0,s.jsxs)("div",{className:v.classes.bannerWrapper,children:[(0,s.jsxs)("div",{className:v.classes.textWrapper,children:[(0,s.jsx)(d.default,{classes:v.classes.headline,...e}),(0,s.jsx)(l.default,{classes:v.classes.bodyClass,...e})]}),(0,s.jsx)("div",{className:"col-span-2 place-content-center ml:col-span-5 ml:place-self-end ml:self-center",children:(0,s.jsx)(r.default,{cta1:(0,i.cta1ToButtonProps)(e,v.classes.buttonGroupClass.cta1Classes),cta2:(0,i.cta2ToButtonProps)(e,v.classes.buttonGroupClass.cta2Classes),wrapperClasses:v.classes.buttonGroupClass.wrapper})}),(0,s.jsx)("button",{className:v.classes.iconWrapper,onClick:()=>{w(!0),C?.({bannerId:D,visibilityType:E})},title:"btn-close",children:(0,s.jsx)(o.default,{icon:"close",size:"md"})})]})})})});e.s(["Default",0,v])},910190,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(316454),l=e.i(183665),i=e.i(382330),r=e.i(589669),n=e.i(3303),d=e.i(271645),o=e.i(764123);let c=(0,r.withDatasourceCheck)(function(e){let{themeName:r,themeData:c}=(0,i.useTheme)(o.SocialImageCarouselTheme),u=e.fields?.siteName.value??("aw"===r?"andersenwindows-6o5qt0":""),m=e.fields?.containerID?.value??"",f=e.fields?.genericFilter?.value??"",h=e.fields?.slideFormat?.fields?.Value?.value??"inline";return(0,d.useEffect)(()=>{let e=document.documentElement,s=e.style.scrollBehavior;return e.style.scrollBehavior="auto",()=>{e.style.scrollBehavior=s}},[]),(0,s.jsx)(t.default,{variant:"lg",dataComponent:"general/socialimagecarousel",...e,children:(0,s.jsxs)("div",{className:"inline"===h?c.classes.wrapperInline:c.classes.wrapperStack,children:["inline"===h?(0,s.jsxs)("div",{className:c.classes.headlineClass,children:[(0,s.jsx)(l.default,{classes:c.classes.headlineTextInline,...e}),(0,s.jsx)(a.default,{classes:c.classes.bodyCopyClassInline,...e})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)(l.default,{classes:c.classes.headlineTextStack,...e}),"rba"===r&&(0,s.jsx)(a.default,{classes:c.classes.bodyCopyClassStack,...e})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(n.default,{src:`https://edge.curalate.com/sites/${u}/site/latest/site.min.js`}),(0,s.jsx)("div",{className:"inline"===h?c.classes.carouselInline:c.classes.carouselStack,"data-crl8-container-id":`${m}`,"data-crl8-filter":`${f.trim()}`})]})]})})});e.s(["Default",0,c])},265544,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(580959),i=e.i(382330),r=e.i(589669),n=e.i(618566),d=e.i(271645),o=e.i(689295);let c=(0,r.withDatasourceCheck)(function(e){let{themeData:r}=(0,i.useTheme)(o.ShareholderRegistrationTheme),c=(0,n.useRouter)(),[u,m]=(0,d.useState)(""),[f,h]=(0,d.useState)(!1),[p,x]=(0,d.useState)(null),v=e.fields?.supportPhone?.value??"";async function g(e){if(e.preventDefault(),x(null),h(!0),!u){x("Please enter your registration code."),h(!1);return}try{let e=await fetch("/api/aw/webinar/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:u})}),s=await e.json();if(!e.ok||!s?.ok){x(`Problems logging in? Call ${v} for help.`),h(!1);return}c.push(s.redirectTo)}catch{x(`We hit a temporary issue. Please try again or call ${v} for help.`)}finally{h(!1)}}return(0,s.jsx)(a.default,{variant:"lg",padding:"px-0",dataComponent:"general/webinarregistration",...e,children:(0,s.jsxs)("div",{className:r.classes.componentWrapper,children:[(0,s.jsx)("div",{className:r.classes.imageWrapper,children:(0,s.jsx)(l.default,{...e,hideCaption:!0,priority:!0,ratio:"responsive",maxW:"max-w-[640px]",additionalDesktopClasses:"ml-auto mr-auto h-auto block"})}),(0,s.jsx)(t.default,{defaultTag:"h2",classes:r.classes.headlineClass,...e}),(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"text-left formWrapper",children:[(0,s.jsxs)("form",{onSubmit:g,className:"max-w-[640px] mx-auto",noValidate:!0,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"code",className:r.classes.formLabel,children:"Registration Code"}),(0,s.jsx)("input",{id:"code",name:"code",type:"text",inputMode:"text",autoComplete:"one-time-code",className:r.classes.formInput,maxLength:7,placeholder:"Registration Code",value:u,onChange:e=>m(e.target.value),required:!0,"aria-invalid":!!p,"aria-describedby":p?"code-error":void 0})]}),(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)("button",{type:"submit",disabled:f,className:r.classes.buttonClass,children:f?"Checkingâ¦":"Continue"})})]}),p&&(0,s.jsx)("div",{className:"max-w-[640px] mx-auto",children:(0,s.jsxs)("p",{id:"code-error",className:r.classes.errorClass,role:"alert",children:[p," "]})})]})})]})})});e.s(["Default",0,c])},677082,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(382330),i=e.i(159277),r=e.i(589669),n=e.i(110946);let d=(0,r.withDatasourceCheck)(function(e){let r=(0,i.getEnum)(e.fields?.alignment)??"left",d=(0,i.getEnum)(e.fields?.underlineStyle)??"default",{themeData:o}=(0,l.useTheme)((0,n.SectionHeadlineTheme)(r,d));return(0,s.jsx)(a.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/sectionheadline",...e,children:(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(t.default,{classes:o.classes.headlineContainer,...e})})})});e.s(["Default",0,d])},650437,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(243006),l=e.i(159277);let i=(0,e.i(589669).withDatasourceCheck)(function(e){return(0,s.jsx)(a.default,{variant:"full",sectionWrapperClasses:"",padding:"px-0",backgroundVariant:(0,l.getEnum)(e.fields?.backgroundColor)??"default",dataComponent:"general/pagemashup",...e,children:(0,s.jsx)(t.default,{...e})})});e.s(["Default",0,i])},669282,e=>{"use strict";var s=e.i(843476);e.i(523472);var a=e.i(469306),t=e.i(316454),l=e.i(771862),i=e.i(74967),r=e.i(919466),n=e.i(589669),d=e.i(271645);let o=(0,n.withDatasourceCheck)(function(e){let n=e.fields?.metaLocatorItemId?.value,o=Number(e.fields?.cdpInactivityMinutes?.value??15),c=60*o*1e3,u=(0,d.useRef)(null),m=(0,d.useRef)(null),f=(0,d.useRef)(null),h=(0,d.useRef)(!1);(0,d.useEffect)(()=>{(0,r.setSessionStorageItems)({[l.StringConstants.AW.WTB.ContactClickedKey]:"false"})},[]);let p=(0,d.useCallback)(()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]),x=(0,d.useCallback)(e=>({timestamp:new Date().toISOString(),pageUrl:globalThis.location.href,referrer:document.referrer,dealerId:e.locationId??"",dealerName:e.locationName??"",dealerPhone:e.locationPhone??"",dealerCity:e.locationCity??"",dealerState:e.locationState??"",dealerZip:e.locationZip??""}),[]),v=(0,d.useCallback)(e=>{let s={type:l.StringConstants.AW.WTB.MapPopupOpenEventType,channel:"WEB",language:"EN",extensionData:{...x(e),searchZip:e.searchZip??""}};(0,a.event)(s).catch(console.debug)},[x]),g=(0,d.useCallback)(e=>{let s={type:l.StringConstants.AW.WTB.ContactClickEventType,channel:"WEB",language:"EN",extensionData:{...x(e)}};(0,a.event)(s).catch(console.debug)},[x]),b=(0,d.useCallback)((e,s=!1)=>{let t={type:l.StringConstants.AW.WTB.AbandonEventType,channel:"WEB",language:"EN",extensionData:{...x(e),...s&&{elapsedMinutes:o},searchZip:e.searchZip??""}};(0,a.event)(t).catch(console.debug)},[o,x]),j=(0,d.useCallback)(e=>{let s={...x(e),searchZip:e.searchZip??""};(0,r.setSessionStorageItems)({[l.StringConstants.AW.WTB.ActiveJourneyKey]:JSON.stringify({journey:l.StringConstants.AW.WTB.JourneyName,prevPath:globalThis.location.pathname,eventType:l.StringConstants.AW.WTB.AbandonEventType,payloadKey:l.StringConstants.AW.WTB.AbandonPayloadKey}),[l.StringConstants.AW.WTB.AbandonPayloadKey]:JSON.stringify(s)}),(0,i.clearSessionStorageItems)([l.StringConstants.AW.WTB.AbandonEventTriggered])}
27,[x]),C=(0,d.useCallback)(()=>{p(),(0,i.clearSessionStorageItems)([l.StringConstants.AW.WTB.ActiveJourneyKey,l.StringConstants.AW.WTB.AbandonPayloadKey,l.StringConstants.AW.WTB.AbandonEventTriggered])},[p]),y=(0,d.useCallback)(e=>{p(),h.current=!1,j(e),f.current=setTimeout(()=>{let e="true"===sessionStorage.getItem(l.StringConstants.AW.WTB.ContactClickedKey),s=m.current;e||h.current||!s?p():(h.current=!0,b(s,!0),C())},c)},[c,C,p,b,j]);return((0,d.useEffect)(()=>{let e=e=>{let s=e.detail;s?.eventName&&("ml_markeropened"===s.eventName||"ml_phoneClicked"===s.eventName)&&(m.current=s,"ml_markeropened"===s.eventName?((0,r.setSessionStorageItems)({[l.StringConstants.AW.WTB.ContactClickedKey]:"false"}),v(s),y(s)):"ml_phoneClicked"===s.eventName&&((0,r.setSessionStorageItems)({[l.StringConstants.AW.WTB.ContactClickedKey]:"true"}),C(),g(s)))};return globalThis.addEventListener("ml-iframe-message",e),()=>{globalThis.removeEventListener("ml-iframe-message",e),p()}},[C,p,v,g,y]),(0,d.useEffect)(()=>{let e=()=>{let e="true"===sessionStorage.getItem(l.StringConstants.AW.WTB.ContactClickedKey),s=m.current;h.current||e||!s||(h.current=!0,b(s,!1),(0,r.setSessionStorageItems)({[l.StringConstants.AW.WTB.AbandonEventTriggered]:"true"}))};return globalThis.addEventListener("beforeunload",e),()=>{globalThis.removeEventListener("beforeunload",e)}},[b]),(0,d.useEffect)(()=>{if(e.fields?.metaLocatorScript?.value)try{let s=document.createRange().createContextualFragment(e.fields.metaLocatorScript.value);u.current?.append(s)}catch(e){console.error("Error creating fragment:",e)}},[]),n)?(0,s.jsx)(t.default,{variant:"full",backgroundVariant:"",sectionWrapperClasses:"",gap:"gap-x-0",padding:"px-0",dataComponent:"general/metaLocator",...e,children:(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)("div",{"data-metalocator":"locator","data-metalocator-itemid":n}),(0,s.jsx)("div",{className:"body-copy col-span-12 **:max-w-full",ref:u})]})}):(0,s.jsx)(s.Fragment,{})});e.s(["Default",0,o])},306055,e=>{"use strict";var s=e.i(843476),a=e.i(604052),t=e.i(641527),l=e.i(316454),i=e.i(382330),r=e.i(159277),n=e.i(589669),d=e.i(134509);function o(e){let s=[],a=e?.split("&");if(a?.length>0)for(let e of a){let a=e.split("=");a?.length>1&&s.push([a[0],a[1]])}return s}let c=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,i.useTheme)((0,d.IframeTheme)()),c=(0,r.getEnum)(e.fields?.backgroundColor)??"white",u=o(e?.fields?.iframeResizerOptions?.value??""),m=o(e?.fields?.iframeAttributes?.value??""),f=[["className",n.classes.iframeContainerClass],["src",e?.fields?.iframeUrl?.value]];e?.fields?.iframeTitle?.value&&f.push(["title",e?.fields?.iframeTitle?.value]);try{u?.length>0&&(f=f.concat(u)),m?.length>0&&(f=f.concat(m))}catch{}return(0,s.jsx)(l.default,{variant:"full",backgroundVariant:c,padding:" ",dataComponent:"general/iframe",sectionWrapperClasses:"",...e,children:function(e){let l={},i=t.default.iframeResizer.license;for(let[s,a]of(i||console.log('Missing NEXT_PUBLIC_IFRAMERESIZER_LICENSE. Provide your commercial key (or "GPLv3" for OSS).'),e))l[s]=a;return(0,s.jsx)(a.default,{license:i,...l})}(f)})});e.s(["Default",0,c])},947602,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(146211),i=e.i(382330),r=e.i(224043),n=e.i(436591),d=e.i(293351),o=e.i(589669),c=e.i(577157);let u={value:{href:""}},m=(0,o.withDatasourceCheck)(function(e){let{fields:o}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,r.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,n.mapSearchResults)(s.data.item.children,e=>({id:e.id,fields:{...(0,r.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering),{themeData:m}=(0,i.useTheme)(c.HelpfulLinksTheme),f=(0,d.getHeadingLevel)("h2",o?.headlineLevel);return(0,s.jsx)(a.default,{variant:"full",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/helpfullinks",...e,fields:o,children:(0,s.jsxs)("div",{className:m.classes.container,children:[(0,s.jsx)(t.default,{useTag:f,classes:m.classes.headlineClass,...e,fields:o}),(0,s.jsx)("div",{className:m.classes.wrapper,children:o?.children?.map((e,a)=>(0,s.jsx)("div",{className:"mb-xxs md:mb-0",children:(0,s.jsx)(l.default,{classes:{cta1Classes:"whitespace-pre-wrap !leading-ml text-text-link"},fields:{cta1Link:e?.fields?.ctaLink??u,cta1AriaLabel:{value:""},cta1ModalLinkText:{value:""},cta1PersonalizeEventName:{value:""},cta1Style:{id:"",url:"",name:"Link",displayName:"Link",fields:{Value:{value:"link"}}},cta1Icon:{id:"",url:"",name:"Arrow",displayName:"Arrow",fields:{Value:{value:"arrow"}}}}})},`button-${e.id??a}`))})]})})});e.s(["Default",0,m])},922851,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(291749),i=e.i(580959),r=e.i(547443),n=e.i(207857),d=e.i(382330),o=e.i(224043),c=e.i(436591),u=e.i(630177),m=e.i(159277),f=e.i(293351),h=e.i(589669),p=e.i(402684),x=e.i(683992);let v=(0,h.withDatasourceCheck)(function(e){let{fields:h}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,o.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,c.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,o.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering),v=(0,m.getEnum)(h?.componentSpacing)??"standard",{screenType:g}=(0,u.useCurrentScreenType)(),b=h?.children?.length,j=h?.subheadlineText.value,{breadcrumbs:C=[]}=(0,p.useWebsiteContext)(),y=C?.[1]?.name.toLowerCase().includes("for professionals"),{themeData:N}=(0,d.useTheme)((0,x.HeadlineWithNavigationTheme)("standard"===v?"8":"4",y));return(0,s.jsx)(a.default,{dataComponent:"general/HeadlineWithNavigation",variant:"",backgroundVariant:"",sectionWrapperClasses:"",className:1===C.length?"relative pt-[55px] ml:pt-0":"relative",...e,fields:h,children:(0,s.jsxs)("div",{className:"col-span-12",children:[h?.headlineText?.value&&(0,s.jsx)("div",{className:N.classes.headlineContainer,children:(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(t.default,{useTag:(0,f.getHeadingLevel)("h1",h?.headlineLevel),classes:N.classes.headline,...e,fields:h})})}),(0,s.jsxs)("div",{className:N.classes.heroContainer,children:[(0,s.jsx)(i.default,{imageLayout:"fill",ratio:"hero",additionalDesktopClasses:"h-[280px] ml:h-[422px]",additionalMobileClasses:"h-[280px]",priority:!0,...e,fields:h}),(0,s.jsxs)("div",{className:N.classes.linkContainer,children:[(0,s.jsx)(r.default,{classes:N.classes.subheadlineStyle,...e,fields:h}),h?.children?.map((e,a)=>{let t=e.fields?.navigationLink,i=(0,m.getEnum)(e.fields?.navigationIcon);return(0,s.jsx)("div",{className:N.classes.linkStyle,children:(0,s.jsx)(l.default,{className:`${N.classes.linkWrapperStyle} ${b>3&&""!=j&&"mml"===g||"ml"===g?"text-xs":"text-s"}`,field:t,ariaLabel:{value:e.fields?.navigationIcon?.name||"Navigation Icon"},children:e.fields?.navigationIcon&&(0,s.jsx)("div",{className:N.classes.svgWrapper,children:(0,s.jsx)(n.default,{icon:i,className:N.classes.svgIconStyle})})})},t.value.title??`link-${a}`)})]})]})]})})});e.s(["Default",0,v])},378675,e=>{e.v({"encircle-after":"slick-module__IkP5YW__encircle-after","encircle-before":"slick-module__IkP5YW__encircle-before",fadeInUp:"slick-module__IkP5YW__fadeInUp",sliderWrapper:"slick-module__IkP5YW__sliderWrapper"})},622729,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(316454),l=e.i(183665),i=e.i(291749),r=e.i(207857),n=e.i(630177),d=e.i(589669),o=e.i(271645),c=e.i(698532),u=e.i(378675);let m=(0,d.withDatasourceCheck)(function(e){let{fields:d}=e,{screenType:m}=(0,n.useCurrentScreenType)(),[f,h]=(0,o.useState)(""),p="sm"!==m,x=!!d?.link2?.value?.text,v=!!d?.link3?.value?.text;if((0,o.useEffect)(()=>{let e=document.querySelectorAll(".headlinerevolvingcta .title"),s=200;
27if(e.forEach(e=>{let a=e.getBoundingClientRect().width;a>s&&(s=a)}),s+=46,p&&s>600&&(s=600),p?h(Math.round(s)+"px"):h("100%"),x||v){let e=document.querySelector(".headlinerevolvingcta .slick-list");e&&e.classList.add("setgap")}},[x,v,p,m,f]),!d)return null;let g=1;x&&v?g=3:(x||v)&&(g=2);let b={dots:!1,infinite:!0,arrows:!0,slidesToShow:p?1:g,slidesToScroll:1,vertical:!0,verticalSwiping:!0,swipeToSlide:!0,autoplay:!0,adaptiveHeight:!1,autoplaySpeed:d.autoScrollTiming?.value?1e3*d.autoScrollTiming.value:2e3,initialSlide:p&&g?g:1},j=d?.link1,C=d?.link2,y=d?.link3;return p&&(x?(j=d?.link2,C=d?.link1):v&&(j=d?.link3,y=d?.link1)),(0,s.jsx)(t.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/headlinerevolvingcta",...e,children:(0,s.jsx)("div",{className:(0,a.default)(u.default.sliderWrapper,"col-span-12 grid"),children:(0,s.jsx)("div",{className:"headlinerevolvingcta col-span-12",children:(0,s.jsxs)("div",{className:"mx-auto flex flex-col md:flex-row md:items-center md:justify-center",children:[(0,s.jsx)("div",{className:"fadeInUp",children:(0,s.jsx)(l.default,{classes:"font-heavy text-m ml:text-xl",...e})}),(0,s.jsx)("div",{className:"slider-wrapper fadeInUp md:pl-s",style:{maxWidth:f},children:(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)(c.default,{...b,className:`${1===g?"slick-active slick-current":""}`,children:[(0,s.jsx)("div",{className:"flex cursor-pointer items-center",children:(0,s.jsx)(i.default,{field:j,className:"title inline-flex items-center font-sans text-m font-heavy ml:text-xl",ariaLabel:{value:"slider wrapper"},children:(0,s.jsx)(r.default,{icon:"arrow",className:"icon flex items-center justify-center"})})}),x&&(0,s.jsx)("div",{className:"flex cursor-pointer items-center",children:(0,s.jsx)(i.default,{field:C,className:"title inline-flex items-center font-sans text-m font-heavy ml:text-xl",ariaLabel:{value:"hasLink2"},children:(0,s.jsx)(r.default,{icon:"arrow",className:"icon flex items-center justify-center"})})}),v&&(0,s.jsx)("div",{className:"flex cursor-pointer items-center",children:(0,s.jsx)(i.default,{field:y,className:"title inline-flex items-center font-sans text-m font-heavy ml:text-xl",ariaLabel:{value:"hasLink3"},children:(0,s.jsx)(r.default,{icon:"arrow",className:"icon flex items-center justify-center"})})})]})})})]})})})})});e.s(["Default",0,m])},795689,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(159277),l=e.i(589669),i=e.i(271645);let r=(0,l.withDatasourceCheck)(function(e){let l=(0,i.useRef)(null);if((0,i.useEffect)(()=>{if(e.fields?.code?.value)try{let s=document.createRange().createContextualFragment(e.fields?.code?.value);l.current?.append(s)}catch(e){console.error("Error creating fragment:",e)}},[]),!e.fields?.code?.value)return(0,s.jsx)(s.Fragment,{});let r=(0,t.getEnum)(e.fields?.containerWidth)??"fullWidth";return(0,s.jsx)(a.default,{variant:"fullBleed"===r?"full":"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/htmlblock",...e,children:(0,s.jsx)("div",{className:"body-copy col-span-12 **:max-w-full",ref:l})})});e.s(["Default",0,r])},476758,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(291749),l=e.i(524886),i=e.i(382330),r=e.i(224043),n=e.i(436591),d=e.i(630177),o=e.i(159277),c=e.i(589669),u=e.i(271645),m=e.i(661624),f=e.i(441429),h=e.i(88497),p=e.i(303472);let x=(0,c.withDatasourceCheck)(function(e){let{fields:c}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,r.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,n.mapSearchResults)(s.data.item.children,e=>({fields:{...(0,r.mapItemFieldResultsToObject)(e.fields)}}))}}}(e),x=(0,o.getEnum)(c?.backgroundColor)??"white",{themeData:v}=(0,i.useTheme)(h.GlobalMastheadTheme),{currentScreenWidth:g}=(0,d.useCurrentScreenType)(),b=(0,u.useRef)(null),j=g>=(0,d.getBreakpoint)("ml"),C=c?.desktopLogo,y=c?.mobileLogo?.value?.src?c.mobileLogo:c?.desktopLogo,N=(0,u.useMemo)(()=>"gray"===x?"bg-dark-gray":"primary"===x?"bg-primary":"bg-white",[x]),w=(0,u.useMemo)(()=>"white"===x?"text-black":"text-white",[x]),_=(0,u.useMemo)(()=>x?.toLowerCase()==="white"?"black":"white",[x]),[k,T]=(0,u.useState)(!1);(0,u.useEffect)(()=>{let e=()=>{document.getElementsByTagName("main")[0].getBoundingClientRect().top<345?T(!0):T(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let[S,F]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{F(j)},[j]),(0,s.jsx)("div",{"data-component":"general/globalmasthead",className:(0,a.default)(v.classes.mastheadWrapper,N,{"":k},g<=405?"w-max":""),style:{height:"auto"},ref:b,children:(0,s.jsxs)("div",{className:v.classes.headWrapper,children:[(0,s.jsxs)("div",{className:(0,a.default)(v.classes.headLogoWrapper,w
27),children:[(0,s.jsx)("button",{onClick:()=>F(!S),className:v.classes.menuIcon,title:S?"Collapse":"Expand",children:S?(0,s.jsx)(f.IoIosArrowDropup,{size:36}):(0,s.jsx)(f.IoIosArrowDropdown,{size:36})}),(0,s.jsx)("div",{className:v.classes.headLogo,children:(0,s.jsx)(t.default,{field:c?.linkLogo,suppressLinkText:!0,ariaLabel:{value:j?C?.value?.text:y?.value?.text??"global masthead Logo Image"},children:j?(0,s.jsx)(s.Fragment,{children:C?.value?.src?(0,s.jsx)("div",{className:(0,a.default)("h-[60px] w-[550px] object-cover",{"h-[26px] w-[334px]":k}),children:(0,s.jsx)(l.default,{image:C,mobileImage:y,additionalDesktopClasses:"h-full w-full cursor-pointer"})}):(0,s.jsx)("span",{className:v.classes.headline,children:c?.headlineText.value})}):(0,s.jsx)(s.Fragment,{children:y?.value?.src?(0,s.jsx)("div",{className:"h-[30px] w-[300px] object-cover",children:(0,s.jsx)(l.default,{image:y,mobileImage:y,additionalDesktopClasses:"h-full w-full cursor-pointer"})}):(0,s.jsx)("span",{className:v.classes.headline1,children:c?.headlineText.value})})})})]}),S&&(0,s.jsxs)("div",{className:v.classes.anchorWrapper,children:[(0,s.jsx)("div",{className:"hidden ml:block",children:(0,s.jsx)(p.default,{icons:c?.socialIcons,iconColor:_})}),(0,s.jsx)("div",{className:v.classes.anchors,children:c?.children?.map(e=>(0,s.jsx)(t.default,{field:e?.fields?.Link,ctaPersonalizeEventName:e?.fields?.linkPersonalizeEventName,suppressLinkText:!0,ariaLabel:{value:e.fields.Link.value.text??"General Link"},children:(0,s.jsx)("span",{className:(0,a.default)(v.classes.linkTitle,w),children:e.fields.Link.value.text})},e?.id??e?.fields?.Link?.value?.id))}),(0,s.jsx)("div",{className:"mt-2 py-5 pb-2 mmd:py-2 ml:mt-0",children:(0,s.jsxs)(t.default,{field:c?.rightSideLink,suppressLinkText:!0,className:(0,a.default)("flex items-center",w),ariaLabel:{value:c?.rightSideLink.value.text??"Right Side Link"},children:[(0,s.jsx)("span",{className:"font-sans text-[18px] font-bold",children:c?.rightSideLink.value.text}),(0,s.jsx)(m.FiArrowRight,{size:16})]})}),(0,s.jsx)("div",{className:"block ml:hidden",children:(0,s.jsx)(p.default,{icons:c?.socialIcons,iconColor:_})})]})]})})});e.s(["Default",0,x])},24561,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(612348),l=e.i(316454),i=e.i(183665),r=e.i(291749),n=e.i(524886);e.i(831837);var d=e.i(37570),o=e.i(382330),c=e.i(224043),u=e.i(436591),m=e.i(159277),f=e.i(589669),h=e.i(92880);function p(e,s){return e?.fields?.[`row${s}Content`]}function x({ariaLabel:e,link:t,tag:l,text:i,underlineOnHover:n=!1}){let d,o=(0,s.jsx)(a.Text,{field:i,encode:!1});return t?.value?.href?(d=i?.value?n?(0,s.jsx)(l,{children:(0,s.jsx)("span",{className:"border-black hover:border-b-2",children:o})}):(0,s.jsx)(l,{children:o}):(0,s.jsx)(l,{children:t.value.text}),(0,s.jsx)(r.default,{field:t,ariaLabel:{value:e},children:d})):i?.value?(0,s.jsx)(l,{children:o}):(0,s.jsx)(s.Fragment,{})}function v({ariaLabel:e,image:a,link:t,...l}){let i=(0,s.jsx)(n.default,{image:a,...l});return t?.value?.href?(0,s.jsx)(r.default,{field:t,ariaLabel:{value:e},children:i}):i}function g({column:e}){return e?.fields?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{tag:"h3",text:e.fields.title,link:e.fields.titleLink,ariaLabel:e.fields.title?.value||"Title Link",underlineOnHover:!0}),(0,s.jsx)(x,{tag:"h4",text:e.fields.subtitle,link:e.fields.subtitleLink,ariaLabel:e.fields.subtitle?.value||"Subtitle Link",underlineOnHover:!0})]}):(0,s.jsx)(s.Fragment,{})}let b=(0,f.withDatasourceCheck)(function(e){let a=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,c.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,u.mapSearchResults)(s.data.item.children,e=>({id:e.id,fields:{...(0,c.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering).fields,r=(0,m.getEnum)(a?.textAlignment)||"left",n=(0,m.getEnum)(a?.titleRowBackgroundColor)||"black",f=(0,m.getEnum)(a?.titleColumnBackgroundColor)||"gray",{themeData:b}=(0,o.useTheme)((0,h.GenericChartTheme)(n,f,r)),j=a?.children??[],C=0;for(let e of j){let s=0;for(let a=1;a<=25;a++)p(e,a)?.value&&s++;s>C&&(C=s)}let y=Array.from({length:C},(e,s)=>s+1),N=y.some(e=>{var s;return!!(s=`row${e}Title`,a?.[s])?.value}),w=y.some(e=>!!j[e]?.fields?.title?.value||!!j[e]?.fields?.subtitle?.value),_=!!a?.schemaName?.value&&!!a?.schemaDescription?.value,k=j.some(e=>!!e.fields?.image?.value?.src),T=y.some(e=>{var s;return!!(s=`row${e}Image`,a?.[s])?.value?.src});return(0,s.jsxs)(l.default,{sectionWrapperClasses:b.classes.section,variant:"lg",backgroundVariant:"",grid:" w-full ",dataComponent:"general/genericchart",...e,fields:a,children:[(0,s.jsx)(i.default,{...e,fields:a,classes:" text-[26px] font-demi leading-[1.25] mb-[12px] md:text-[34px] "}),(0,s.jsx)(t.default,{...e,fields:a,classes:" hidden md:block text-[18px] leading-1.5] mb-[10px] "}),(0,s.jsxs)("div",{className:"comparison-chart-table",children:[_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{itemProp:"name",content:a?.schemaName?.value}),(0,s.jsx)("meta",{itemProp:"description",content:a?.schemaDescription?.value})]}),(0,s.jsxs)("table",{className:b.classes.table,children:[w&&(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:b.classes.theadRow,children:[T&&(0,s.jsx)("th",{className:b.classes.imageColumnHeader,children:"Â "}),N&&(0,s.jsx)("th",{children:"Â "}),j.map((e,a)=>(0,s.jsx)("th",{className:b.classes.rowHeader,children:(0,s.jsx)(g,{column:e})},e.id??`chart-column-title-${a}`))]})}),(0,s.jsxs)("tbody",{children:[k&&(0,s.jsxs)("tr",{className:b.classes.imageRow,children:[T&&(0,s.jsx)("td",{className:b.classes.imageColumn,children:"Â "}),N&&(0,s.jsx)("th",{children:"Â "}),j.map((e,a)=>(0,s.jsx)("td",{className:b.classes.imageCell,children:(0,s.jsx)(v,{image:e?.fields?.image,link:e?.fields?.imageLink,ariaLabel:"GenericChart image",additionalDesktopClasses:"lazy",imageLayout:"intrinsic"})},e.id??`chart-column-image-${a}`))]}),y.map(e=>{var t,l,i,r,n,o;let c=(t=`row${e}Title`,a?.[t]),u=(l=`row${e}Link`,a?.[l]),f=(i=`row${e}Subtitle`,a?.[i]),C=(r=`row${e}SubtitleLink`,a?.[r]),y=(n=`row${e}Image`,a?.[n]),_=(o=`row${e}ImageLink`,a?.[o]);return(0,s.jsxs)("tr",{className:b.classes.tableRow,children:[T&&(0,s.jsx)("td",{className:b.classes.imageColumn,children:y?.value?.src&&(0,s.jsx)(v,{image:y,link:_,ariaLabel:"Row Image"})}),N&&(0,s.jsxs)("th",{className:b.classes.columnHeader,children:[(0,s.jsx)(x,{tag:"h4",text:c,link:u,ariaLabel:u?.value?.text||"Row Title Link"}),(0,s.jsx)(x,{tag:"h5",text:f,link:C,ariaLabel:C?.value?.text||"Row Subtitle Link"})]}),j.map((a,t)=>{let l=(0,m.getEnum)(a.fields?.textAlignment)||"",i=p(a,e)??{value:""};return(0,s.jsxs)("td",{className:`${b.classes.tableData} ${(0,h.GetTextAlignment)(l)}`,children:[w&&(0,s.jsx)("div",{className:b.classes.mobileTitleColumn,children:(0,s.jsx)(g,{column:a})}),(0,s.jsx)(d.RichTextWrapper,{field:i,classes:b.classes.contentClass})]},a.id??`chart-column-content-${t}`)})]},`content-row-${e}`)})]})]})]}),a?.footer?.value&&(0,s.jsx)("div",{className:b.classes.footer,children:(0,s.jsx)(d.RichTextWrapper,{field:a.footer})})]})});e.s(["Default",0,b])},16283,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(146211),l=e.i(382330),i=e.i(159277),r=e.i(589669),n=e.i(411848),d=e.i(580694);let o=(0,r.withDatasourceCheck)(function(e){let r=e?.fields.cta1Link,o=(0,i.getEnum)(e.fields?.alignment)??"left",{themeData:c}=(0,l.useTheme)((0,d.FreeStandingCtaTheme)(o));return(0,s.jsx)(a.default,{variant:"lg",dataComponent:"general/freestandingcta",...e,spacing:e.fields?.spacing,children:(0,s.jsx)("section",{className:c.classes.contentWrapper,id:e.fields?.sectionId?.value??`id${(0,n.hashCode)(e.rendering?.dataSource)}`,children:(0,s.jsx)("div",{className:"mb-s flex items-start md:flex-row md:items-center md:space-x-4",children:r.value.href&&(0,s.jsx)(t.default,{...e,classes:c.classes.sectionCta})})})})});e.s(["Default",0,o])},921603,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(612348),l=e.i(316454),i=e.i(183665),r=e.i(580959),n=e.i(699034),d=e.i(592336),o=e.i(208039),c=e.i(146211);e.i(932111);var u=e.i(90217),m=e.i(207857),f=e.i(382330),h=e.i(630177),p=e.i(159277),x=e.i(589669),v=e.i(271645),g=e.i(719917);let b=(0,x.withDatasourceCheck)(function(e){let[x,b]=(0,v.useState)(0),[j,C]=(0,v.useState)(!1),y=(0,v.useRef)(null),N={initialSlide:e.fields?.images&&e.fields?.images.length>1?x:0,arrows:!1,dots:!1},w=e=>{C(!0),b(e)},{themeData:_}=(0,f.useTheme)(g.CuratedImageDisplayTheme),{currentScreenWidth:k}=(0,h.useCurrentScreenType)(),T=(0,p.getEnum)(e.fields?.desktopDisplayStyle)??"grid",S=(0,p.getEnum)(e.fields?.mobileDisplayStyle)??"grid",F=e=>e.fields?.thumbnailImage?.value?.src??"",I=e=>{let s=e.fields?.thumbnailImage?.value;return{alt:s?.alt??"",height:Number.parseInt(String(s?.height??"0"),10),width:Number.parseInt(String(s?.width??"0"),10)}},D=()=>(0,s.jsx)("ul",{className:"grid grid-cols-2 gap-y-m md:grid-cols-12 md:gap-s",children:e.fields?.images.map((e,a)=>{let t=F(e),l=!!t,i={value:{src:t,...I(e)}};return(0,s.jsx)("li",{className:"group relative col-span-12 md:col-span-4 lg:col-span-3",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{w(a)},className:"w-full",children:[(0,s.jsx)(r.default,{imageLayout:l?"responsive":"fill",ratio:"square",fields:{primaryImageCaption:{value:""},primaryImage:i,primaryImageMobile:i},alwaysUseFocusArea:!l,additionalMobileClasses:l?"":"aspect-square"}),(0,s.jsx)(m.default,{className:"-translate-t-3/4 absolute top-1/2 left-1/2 -translate-x-1/2 roun
27ded-full bg-black bg-opacity-[.65] p-l text-white opacity-0 transition-all ease-linear group-hover:-translate-y-1/2 group-hover:opacity-100",icon:"zoom-pinch"})]})},e.fields?.thumbnailImage?.value?.src?`image-${e.fields.thumbnailImage.value.src.split("/").pop()?.split("?")[0]}`:e.fields?.fullImage?.value?.src?`image-${e.fields.fullImage.value.src.split("/").pop()?.split("?")[0]}`:`image-${a}`)})}),W=()=>{let a={dots:!1,arrow:!0,infinite:!1,slidesToShow:4,responsive:[{breakpoint:(0,h.getBreakpoint)("md"),settings:{slidesToShow:1,dots:!0}},{breakpoint:(0,h.getBreakpoint)("lg"),settings:{slidesToShow:3,dots:!1}}]};return(0,s.jsx)(u.SliderWrapper,{sliderSettings:a,children:e.fields?.images.map((e,a)=>{let t=F(e),l=!!t,i={value:{src:t??"",...I(e)}};return(0,s.jsx)(v.default.Fragment,{children:(0,s.jsxs)("button",{type:"button",onClick:()=>{w(a)},className:"group relative cursor-pointer md:mr-s",children:[(0,s.jsx)(r.default,{imageLayout:l?"responsive":"fill",ratio:"square",fields:{primaryImageCaption:{value:""},primaryImage:i,primaryImageMobile:i},alwaysUseFocusArea:!l,additionalMobileClasses:l?"":"aspect-square"}),(0,s.jsx)(m.default,{className:"-translate-t-3/4 absolute top-1/2 left-1/2 -translate-x-1/2 rounded-full bg-black bg-opacity-[.65] p-l text-white opacity-0 transition-all ease-linear group-hover:-translate-y-1/2 group-hover:opacity-100",icon:"zoom-pinch"})]})},e.fields?.thumbnailImage?.value?.src?`fragment-${e.fields.thumbnailImage.value.src.split("/").pop()?.split("?")[0]}`:e.fields?.fullImage?.value?.src?`fragment-${e.fields.fullImage.value.src.split("/").pop()?.split("?")[0]}`:`ImageItem-${a}`)})})},L=()=>e.fields?.images?.map((a,t)=>{let l={...a,fields:{...a.fields,fullImage:a.fields?.fullImage,thumbnailImage:a.fields?.thumbnailImage}},i=(0,o.getPhotoItemProps)(l,!1);return e.fields?.hideRelatedPages?.value&&i?.fields&&(i.fields.relatedPages=[]),(0,s.jsx)(d.default,{...i},a.fields?.fullImage?.value?.src?`photo-${a.fields.fullImage.value.src.split("/").pop()}`:`photo-${t}`)});return e.fields?.images?.find(e=>e.fields?.fullImage?.value?.src??e.fields?.thumbnailImage?.value?.src)?(0,s.jsx)(l.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/curatedimagedisplay",...e,children:(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(i.default,{...e,classes:_.classes.headline}),(0,s.jsx)(t.default,{...e,classes:_.classes.bodyCopy}),(0,s.jsx)(c.default,{...e,classes:_.classes.SingleButton}),(()=>{if(k<(0,h.getBreakpoint)("md"))switch(S){case"grid":return D();case"horizontal-scroll":return W()}else switch(T){case"grid":return D();case"horizontal-scroll":return W()}})(),j&&(0,s.jsx)(n.default,{isModalOpen:j,size:"extra-large",customContentWrapperclass:"w-auto h-auto max-w-[1200px] max-h-[90vh]",handleClose:()=>C(!1),children:(0,s.jsx)("div",{className:"px-ml pb-ml pt-s",children:e.fields?.images&&e.fields?.images.length>1?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.SliderWrapper,{sliderSettings:N,sliderRef:y,children:L()}),(0,s.jsxs)("div",{className:"mt-m flex items-center justify-between text-xxs md:justify-center",children:[(0,s.jsxs)("button",{type:"button",className:"ml-xxxs flex cursor-pointer items-center text-button font-bold md:mr-xs",onClick:()=>{y.current&&y.current.slickPrev()},children:[(0,s.jsx)(m.default,{className:"mr-xs",icon:"arrow-left"}),(0,s.jsx)(a.Text,{field:e.fields?.previousLabel,tag:"span"})]}),(0,s.jsxs)("button",{type:"button",className:"mr-xxxs flex cursor-pointer items-center text-button font-bold md:ml-xs",onClick:()=>{y.current&&y.current.slickNext()},children:[(0,s.jsx)(a.Text,{field:e.fields?.nextLabel,tag:"span"}),(0,s.jsx)(m.default,{className:"ml-xs",icon:"arrow-right"})]})]})]}):L()})})]})}):(0,s.jsx)(l.default,{variant:"lg",backgroundVariant:"",dataComponent:"general/curatedimagedisplay",...e,sectionWrapperClasses:"hidden"})});e.s(["Default",0,b])},583580,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(612348),l=e.i(316454),i=e.i(183665),r=e.i(431221),n=e.i(382330),d=e.i(589669),o=e.i(173109);let c=(0,d.withDatasourceCheck)(function(e){let{themeData:d}=(0,n.useTheme)(o.ContentBlockWithSidebarTheme);return(0,s.jsxs)(l.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",gap:"",dataComponent:"general/contentblockwithsidebar",...e,children:[(0,s.jsxs)("div",{className:d.classes.leftColumnClass,children:[(0,s.jsx)(i.default,{useTag:"h2",classes:d.classes.headlineClass,...e}),(0,s.jsx)(t.default,{...e})]}),(0,s.jsxs)("div",{className:d.classes.rightColumnClass,children:[(0,s.jsx)(a.Text,{tag:"h3",className:d.classes.subheadlineClass,field:e.fields?.sideBarSubheading}),(0,s.jsx)("div",{children:(0,s.jsx)(r.default,{classes:d.classes.subBodyClass,field:e.fields?.sideBarBodyCopy})})]})]})});e.s(["Default",0,c])},833492,e=>{"use strict";var s=e.i(843476),a=e.i(788610),t=e.i(292026),l=e.i(56574),i=e.i(316454),r=e.i(183665),n=e.i(524886),d=e.i(437014),o=e.i(49631),c=e.i(699034),u=e.i(431221);e.i(932111);var m=e.i(90217),f=e.i(207857),h=e.i(382330),p=e.i(630177),x=e.i(589669),v=e.i(658666),g=e.i(271645),b=e.i(727778),j=e.i(456535),C=e.i(29969);function y(e){let{onClick:a}=e;return(0,s.jsx)("button",{className:"absolute -bottom-12 left-[34%] z-10 flex h-ml w-ml translate-x-0 -translate-y-1/2 transform items-center justify-center rounded-full border border-secondary bg-transparent",onClick:a,type:"button","aria-label":"Previous slide",children:(0,s.jsx)(f.default,{className:"",size:"md",icon:"arrow-left"})})}function N(e){let{onClick:a}=e;return(0,s.jsx)("button",{className:"absolute -bottom-12 right-[34%] z-10 flex h-ml w-ml translate-x-0 -translate-y-1/2 transform items-center justify-center rounded-full border border-secondary bg-transparent",onClick:a,type:"button","aria-label":"Next slide",children:(0,s.jsx)(f.default,{className:"",size:"md",icon:"arrow-right"})})}let w=(0,x.withDatasourceCheck)(function(e){let x=e?.fields?.["product Series"],[w,_]=(0,g.useState)(null),k=g.default.useMemo(()=>({dots:!0,slidesToShow:1,pauseOnFocus:!0,pauseOnHover:!0,dotsClass:"slick-dots static",adaptiveHeight:!0,nextArrow:(0,s.jsx)(N,{},"next-arrow"),prevArrow:(0,s.jsx)(y,{},"prev-arrow"),beforeChange:(e,s)=>{let a=document.querySelector(`.slick-slide[data-index="${s}"]`);a&&(a.style.height="fit-content")}}),[]),T={field:{value:{href:"#",text:"Learn More"}},variant:{id:"",url:"",name:"Primary",displayName:"Primary",fields:{Value:{value:"primary"}},templateId:"",templateName:"Enum"},icon:{name:"Arrow",displayName:"Arrow",id:"",url:"",fields:{Value:{value:"arrow"}},templateId:"",templateName:"Enum"},classes:"pointer-events-none",suppressLinkText:!0};(0,g.useEffect)(()=>
27{if(null!==w){let e=x[w];b.default.dataLayer({dataLayer:{event:"blog_modal_impression",modalName:`modal-${w}`,modalTitle:e.name,pageType:"blog"}})}},[x,w]);let S={href:"/request-a-quote/",text:"Request a Quote",anchor:"",linktype:"internal",class:"",title:"",querystring:"",id:""},F=(0,v.default)(),{themeData:I}=(0,h.useTheme)((0,j.ContentBlockWithMediaAndProductTheme)(e)),{currentScreenWidth:D}=(0,p.useCurrentScreenType)(),W=(e,s)=>(e.preventDefault(),e.stopPropagation(),b.default.dataLayer({dataLayer:{event:"blog_learnMore_click",productIndex:s,productName:x?.[s]?.fields?.productFullName?.value??x?.[s]?.fields?.seriesTitle?.value,pageType:"blog"}}),_(s),!1),L=()=>{_(null)};if(!e)return(0,s.jsx)(s.Fragment,{});let E=e.fields?.primaryImage?.value?.src&&!e.fields?.secondaryImage?.value?.src&&D>=(0,p.getBreakpoint)("md")?"intrinsic":"responsive",B="intrinsic"===E?{maxWidth:`${e.fields?.primaryImage?.value?.width}px`}:{},P="top center";return(0,s.jsx)(i.default,{variant:"lg",dataComponent:"general/contentblockwithmediandproduct",...e,children:(0,s.jsxs)("div",{className:"col-span-12 grid grid-cols-12 md:gap-x-s",children:[(0,s.jsxs)("div",{className:I.classes.headingContainer,children:[(0,s.jsx)(r.default,{defaultTag:"h2",classes:I.classes.headlineContainer,...e}),(0,s.jsx)(u.default,{field:e.fields?.topCopy,className:I.classes.topCopyContainer})]}),(0,s.jsxs)("div",{className:I.classes.bodyContainer,children:[(0,s.jsxs)("div",{className:I.classes.imageContainer,children:[(e.fields?.primaryImage?.value?.src??e.fields?.primaryVideo??F)&&(0,s.jsx)("div",{className:e.fields?.secondaryImage?.value?.src?I.classes.imageOuterContainer:I.classes.imageOuterContainerSecond,style:B,children:(0,s.jsx)(d.default,{...e,imageLayout:E,focusArea:P})}),(e.fields?.secondaryImage?.value?.src??e.fields?.secondaryVideo??F)&&(0,s.jsx)("div",{className:I.classes.imageOuterContainer,style:B,children:(0,s.jsx)(o.default,{...e,imageLayout:E,focusArea:P})}),x?(0,s.jsxs)("div",{className:"mobile block pb-10 md:hidden",children:[(0,s.jsx)(u.default,{defaultTag:"h2",classes:"text-s md:text-s font-sans text-center font-bold pb-8 ",field:{value:"Products Shown"}}),(0,s.jsx)(m.SliderWrapper,{sliderSettings:k,children:x?.map((e,a)=>{let t=`mobile-product-${e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value??a}`;return(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsx)(n.default,{image:e?.fields?.productImage??e?.fields?.seriesImage,additionalMobileClasses:"w-52 mx-auto pb-s",ratio:"square"}),(0,s.jsx)(u.default,{field:{value:e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value},classes:I.classes.productDescriptionMobile}),(0,s.jsx)("button",{className:"flex w-full justify-center border-0 p-0 cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),W(e,a)},children:(0,s.jsxs)("span",{className:"flex w-fit items-center whitespace-normal rounded-lg border-4 border-theme-btn-border bg-theme-btn-bg px-m py-[9px] font-sans text-button font-heavy text-theme-btn-text hover:border-theme-btn-border-hover hover:bg-theme-btn-bg-hover hover:text-theme-btn-text-hover",children:["Learn More",(0,s.jsx)(f.default,{icon:"arrow",className:"ml-xxs"})]})})]},t)})})]}):(0,s.jsx)(s.Fragment,{children:" "}),x?(0,s.jsxs)("div",{className:"col-span-2 hidden md:block",children:[(0,s.jsx)(u.default,{defaultTag:"h2",classes:I.classes.headlineContainerProductUsed,field:{value:"Products used in this image"}}),(0,s.jsx)("div",{children:x?.map((e,t)=>{let l=`desktop-product-${e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value??t}`,i=e?.fields?.seriesLandingPageCTA??e?.fields?.productDetailPageLink,r=e?.fields?.designToolLink?.value??S;return(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("div",{className:"w-full mb-s md:w-[76%] lg:w-[154px]",children:(0,s.jsx)(n.default,{image:e?.fields?.productImage??e?.fields?.seriesImage,ratio:"square",imageLayout:"fill"})}),(0,s.jsx)(u.default,{field:{value:e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value},classes:I.classes.productDescription}),(0,s.jsx)("button",{className:"self-center pb-8 border-0 p-0 cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),W(e,t)},children:(0,s.jsx)(a.default,{...T})}),(0,s.jsx)(C.default,{children:(0,s.jsx)(c.default,{size:"fluid",handleClose:L,isModalOpen:w===t,customOverlayclass:"",customContentWrapperclass:"md:w-[93vw] lg:w-[50vw] w-[93vw] bg-white!",children:(0,s.jsxs)("div",{className:"grid grid-cols-12 pb-10 md:gap-x-s",children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-3 lg:col-span-3",children:(0,s.jsx)("div",{className:"ml-3 md:w-52 md:ml-4",children:(0,s.jsx)(n.default,{image:e?.fields?.productImage??e?.fields?.seriesImage,ratio:"square",imageLayout:"fill"})})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-9 lg:col-span-9 lg:mr-14",children:(0,s.jsxs)("div",{className:"mr-3 sm:ml-16 lg:mr-0",children:[(0,s.jsx)(u.default,{field:{value:e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value},classes:I.classes.headlineContainer}),(0,s.jsx)(u.default,{field:{value:e?.fields?.seriesSubtitle?.value??e?.fields?.productSubtitle?.value},classes:I.classes.topCopySubtitle}),(0,s.jsx)(u.default,{field:e?.fields?.productDescription??e?.fields?.seriesDescription,classes:I.classes.topCopyContainer}),(0,s.jsxs)("div",{className:"mt-4 flex space-y-4 md:space-x-4 md:space-y-0 lg:flex-row lg:space-y-0 lg:space-x-4 ",children:[i&&(0,s.jsx)(a.default,{variant:{fields:{Value:{value:"primary"}}},field:i,classes:"w-full! md:w-fit! justify-center"}),r&&(0,s.jsx)(a.default,{variant:{fields:{Value:{value:"secondary"}}},field:r,classes:"w-full! md:w-fit! justify-center"})]})]})})]})})})]},l)})})]}):(0,s.jsx)(s.Fragment,{children:" "})]}),(0,s.jsx)(u.default,{classes:I.classes.bodyContainer,field:e.fields?.bottomCopy})]}),(0,s.jsx)("div",{className:I.classes.contentWrapper,children:(0,s.jsx)("div",{className:e.fields.ctaAlignment?.displayName==="Stack"?"flex flex-col items-start justify-evenly md:space-y-4":"flex flex-col items-start md:flex-row",children:(0,s.jsx)(l.default,{cta1:(0,t.cta1ToButtonProps)(e,I.classes.buttonGroupClass.cta1Classes),cta2:(0,t.cta2ToButtonProps)(e,I.classes.buttonGroupClass.cta2Classes),wrapperClasses:I.classes.buttonGroupClass.wrapper})})}),(0,s.jsx)("div",{className:"col-span-12",children:x?.map((e,t)=>{let l=`mobile-modal-${e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value??t}`,i=e?.fields?.seriesLandingPageCTA??e?.fields?.productDetailPageLink,r=e?.fields?.designToolLink?.value??S;return(0,s.jsx)(C.default,{children:(0,s.jsx)("div",{className:"mobile-modal block md:hidden",children:(0,s.jsx)(c.default,{size:"extra-large",handleClose:L,isModalOpen:w===t,customOverlayclass:"",customContentWrapperclass:"size-full! pb-m",children:(0,s.jsxs)("div",{className:"mt-16 grid grid-cols-12 pb-10 md:gap-x-s",children:[(0,s.jsx)("div",{className:"col-span-12 lg:col-span-5",children:(0,s.jsx)("div",{className:"ml-3 mr-3 lg:ml-0",children:(0,s.jsx)(n.default,{image:e?.fields?.productImage??e?.fields?.seriesImage,additionalMobileClasses:"w-40 mx-auto pb-s",ratio:"square",imageLayout:"intrinsic"})})}),(0,s.jsx)("div",{className:"col-span-12 lg:col-span-7",children:(0,s.jsxs)("div",{className:"mr-3 sm:ml-3 sm:mr-3 lg:mr-0",children:[(0,s.jsx)(u.default,{field:{value:e?.fields?.productFullName?.value??e?.fields?.seriesTitle?.value},classes:I.classes.headlineContainerMobile}),(0,s.jsx)(u.default,{field:{value:e?.fields?.seriesSubtitle?.value??e?.fields?.productSubtitle?.value},classes:I.classes.topCopySubtitle}),(0,s.jsx)(u.default,{field:e?.fields?.productDescription??e?.fields?.seriesDescription,classes:I.classes.topCopyContainer}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col space-y-4 lg:flex-row lg:space-y-0 lg:space-x-4",children:[i&&(0,s.jsx)(a.default,{variant:{fields:{Value:{value:"primary"}}},field:i,classes:" md:w-fit! justify-center w-[200px]"}),r&&(0,s.jsx)(a.default,{variant:{fields:{Value:{value:"secondary"}}},field:r,classes:" md:w-fit! justify-center w-[200px]"})]})]})})]})},`${l}-modal`)},`${l}-wrapper`)},l)})})]})})});e.s(["Default",0,w])},595178,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(612348),l=e.i(292026),i=e.i(56574),r=e.i(316454),n=e.i(183665),d=e.i(159277),o=e.i(589669),c=e.i(77116),u=e.i(87582);let m=(0,o.withDatasourceCheck)(function(e){let o=(0,d.getEnum)(e.fields?.backgroundColor)??"white",m=e?.fields?.useLegalCopyFont?.value??!1,f=(0,c.getTheme)(e.page.customProps.theme,(0,u.ContentBlockTheme)(o,e.fields));return(0,s.jsx)(r.default,{variant:"full",gap:"gap-x-0",padding:"px-0",sectionWrapperClasses:"",backgroundVariant:(0,d.getEnum)(e.fields?.backgroundColor)??"",dataComponent:"general/contentblock",...e,children:(0,s.jsxs)("div",{className:f.classes.contentWrapper,children:[(0,s.jsx)(n.default,{useTag:"h2",classes:f.classes.headlineClass,...e}),(0,s.jsx)(t.default,{classes:(0,a.default)(f.classes.bodyClass),refer:m?"legal-copy":"body-copy",...e}),(0,s.jsx)(i.default,{cta1:(0,l.cta1ToButtonProps)(e,f.classes.buttonGroupClass.cta1Classes),cta2:(0,l.cta2ToButtonProps)(e,f.classes.buttonGroupClass.cta2Classes),cta3:(0,l.cta3ToButtonProps)(e,f.classes.buttonGroupClass.cta3Classes),wrapperClasses:f.classes.buttonGroupClass.wrapper,ctaAlignment:e.fields?.ctaAlignment})]})})});e.s(["Default",0,m])},618678,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(343794),l=e.i(316454),i=e.i(703741),r=e.i(299419),n=e.i(382330),d=e.i(159277),o=e.i(589669),c=e.i(983804);let u=(0,o.withDatasourceCheck)(function(e){let{fields:o}=e,{setSelectedModalId:u,prevFocusedElementRef:m,selectedModalId:f}=(0,r.useModalIdContext)(),h=(0,d.getEnum)(o?.tabStyle)??"black",{themeData:p}=(0,n.useTheme)((0,c.bottomStickyTabTheme)(h));if(!o)return(0,s.jsx)(s.Fragment,{});let x=o.genericModal?.fields.modalId?.value;return(0,s.jsx)(l.default,{backgroundVariant:"",sectionWrapperClasses:"relative",variant:"lg",dataComponent:"general/bottomstickytab",...e,children:(0,s.jsx)("div",{className:(0,t.default)("fixed bottom-0 left-0 right-0 bg-theme-bg text-theme-text ","black"===h?"theme-secondary":"theme-primary",x===f||""===f?"z-1001":"z-998"),children:(0,s.jsx)("div",{className:" relative h-full w-full md:h-1.5 ",children:(0,s.jsxs)("button",{onClick:e=>{x&&f!=x?(u(x),m&&(m.current=e.currentTarget)):u("")},className:(0,t.default)(p.classes.stickyTab,"max-md:border-x-0"),children:[(0,s.jsxs)("span",{className:(0,t.default)("flex items-center justify-center",p.classes.tabText),children:[(0,s.jsx)("span",{className:(0,t.default)("duration-500",{"text-[0px] leading-none opacity-0":f!==x}),children:(0,s.jsx)(a.Text,{field:{value:"Close"},tag:""})}),(0,s.jsx)("span",{className:(0,t.default)("inline-flex duration-500",{"translate-x-full text-[0px] leading-none opacity-0 ease-in-out":f===x}),children:(0,s.jsx)(a.Text,{field:o.tabTitle,tag:""})})]}),(0,s.jsx)("span",{className:(0,t.default)("duration-500",f==x?"rotate-0":"rotate-180",p.classes.tabIcon),children:(0,s.jsx)(i.default,{})})]})})})})});e.s(["Default",0,u])},838869,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(316454);e.i(831837);var l=e.i(37570),i=e.i(630177);function r(){let{currentScreenWidth:e}=(0,i.useCurrentScreenType)();
27return(0,s.jsx)("svg",{width:e<=(0,i.getBreakpoint)("md")?41:54,height:e<=(0,i.getBreakpoint)("md")?26:34,viewBox:"0 0 54 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M53.88 0.479994L43.08 0L24.84 33.48L40.56 34.32L53.88 0.479994ZM28.92 0.479994L18.12 0L0 33.48L15.72 34.32L28.92 0.479994Z",fill:"#F26924"})})}let n=(0,e.i(589669).withDatasourceCheck)(function(e){let{fields:i}=e;return(0,s.jsx)(t.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:"",dataComponent:"general/blogquote",...e,children:(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsxs)("div",{className:"flex justify-start",children:[(0,s.jsx)("div",{className:"mr-xs md:mr-m",children:(0,s.jsx)(r,{})}),(0,s.jsxs)("div",{className:"font-sans text-sm-xs font-medium md:text-xs",children:[(0,s.jsx)(l.RichTextWrapper,{field:i?.body,refer:"font-heavy text-sm-s md:text-s! mb-xxs"}),(0,s.jsx)(a.Text,{tag:"p",field:{value:i?.quoteName.value}})]})]})})})});e.s(["Default",0,n])},618013,e=>{e.v({"bv-action-bar":"bazaarvoice-reviews-module__ts4ZPW__bv-action-bar","bv-action-bar-header":"bazaarvoice-reviews-module__ts4ZPW__bv-action-bar-header","bv-author":"bazaarvoice-reviews-module__ts4ZPW__bv-author","bv-content-core":"bazaarvoice-reviews-module__ts4ZPW__bv-content-core","bv-content-data":"bazaarvoice-reviews-module__ts4ZPW__bv-content-data","bv-content-data-summary":"bazaarvoice-reviews-module__ts4ZPW__bv-content-data-summary","bv-content-datetime":"bazaarvoice-reviews-module__ts4ZPW__bv-content-datetime","bv-content-datetime-dot":"bazaarvoice-reviews-module__ts4ZPW__bv-content-datetime-dot","bv-content-datetime-stamp":"bazaarvoice-reviews-module__ts4ZPW__bv-content-datetime-stamp","bv-content-header":"bazaarvoice-reviews-module__ts4ZPW__bv-content-header","bv-content-item":"bazaarvoice-reviews-module__ts4ZPW__bv-content-item","bv-content-meta":"bazaarvoice-reviews-module__ts4ZPW__bv-content-meta","bv-content-meta-wrapper":"bazaarvoice-reviews-module__ts4ZPW__bv-content-meta-wrapper","bv-content-product-questions":"bazaarvoice-reviews-module__ts4ZPW__bv-content-product-questions","bv-content-reference-data":"bazaarvoice-reviews-module__ts4ZPW__bv-content-reference-data","bv-content-review":"bazaarvoice-reviews-module__ts4ZPW__bv-content-review","bv-content-secondary-ratings-container":"bazaarvoice-reviews-module__ts4ZPW__bv-content-secondary-ratings-container","bv-content-summary-body-text":"bazaarvoice-reviews-module__ts4ZPW__bv-content-summary-body-text","bv-content-tag-dimensions":"bazaarvoice-reviews-module__ts4ZPW__bv-content-tag-dimensions","bv-content-title":"bazaarvoice-reviews-module__ts4ZPW__bv-content-title","bv-control-bar":"bazaarvoice-reviews-module__ts4ZPW__bv-control-bar","bv-control-bar-count":"bazaarvoice-reviews-module__ts4ZPW__bv-control-bar-count","bv-control-bar-sort":"bazaarvoice-reviews-module__ts4ZPW__bv-control-bar-sort","bv-cv2-cleanslate":"bazaarvoice-reviews-module__ts4ZPW__bv-cv2-cleanslate","bv-dropdown-arrow":"bazaarvoice-reviews-module__ts4ZPW__bv-dropdown-arrow","bv-dropdown-label":"bazaarvoice-reviews-module__ts4ZPW__bv-dropdown-label","bv-dropdown-target":"bazaarvoice-reviews-module__ts4ZPW__bv-dropdown-target","bv-dropdown-title":"bazaarvoice-reviews-module__ts4ZPW__bv-dropdown-title","bv-expand-filter-button":"bazaarvoice-reviews-module__ts4ZPW__bv-expand-filter-button","bv-filter-control-icon":"bazaarvoice-reviews-module__ts4ZPW__bv-filter-control-icon","bv-flex-container":"bazaarvoice-reviews-module__ts4ZPW__bv-flex-container","bv-flex-container-column":"bazaarvoice-reviews-module__ts4ZPW__bv-flex-container-column","bv-histogram-filter-helper":"bazaarvoice-reviews-module__ts4ZPW__bv-histogram-filter-helper","bv-inline-histogram-ratings":"bazaarvoice-reviews-module__ts4ZPW__bv-inline-histogram-ratings","bv-rating-stars":"bazaarvoice-reviews-module__ts4ZPW__bv-rating-stars","bv-rating-stars-container":"bazaarvoice-reviews-module__ts4ZPW__bv-rating-stars-container","bv-secondary-content-list":"bazaarvoice-reviews-module__ts4ZPW__bv-secondary-content-list","bv-secondary-rating-summary":"bazaarvoice-reviews-module__ts4ZPW__bv-secondary-rating-summary","bv-section-summary":"bazaarvoice-reviews-module__ts4ZPW__bv-section-summary","bv-section-summary-block":"bazaarvoice-reviews-module__ts4ZPW__bv-section-summary-block","bv-section-summary-inline":"bazaarvoice-reviews-module__ts4ZPW__bv-section-summary-inline","bv-shared":"bazaarvoice-reviews-module__ts4ZPW__bv-shared","bv-table":"bazaarvoice-reviews-module__ts4ZPW__bv-table","bv-table-cell":"bazaarvoice-reviews-module__ts4ZPW__bv-table-cell","bv-table-row":"bazaarvoice-reviews-module__ts4ZPW__bv-table-row",bv_avgRating_component_container:"bazaarvoice-reviews-module__ts4ZPW__bv_avgRating_component_container",bv_main_container:"bazaarvoice-reviews-module__ts4ZPW__bv_main_container",bv_numReviews_component_container:"bazaarvoice-reviews-module__ts4ZPW__bv_numReviews_component_container",bv_numReviews_text:"bazaarvoice-reviews-module__ts4ZPW__bv_numReviews_text"})},702889,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(207857),i=e.i(382330),r=e.i(584456),n=e.i(307961),d=e.i(589669),o=e.i(271645),c=e.i(618013),u=e.i(211917);let m=(0,d.withDatasourceCheck)(function(e){let{themeName:d,themeData:m}=(0,i.useTheme)(u.BazaarvoiceReviewsTheme);(0,n.useBVScript)({environment:r.default,theme:d});let f=e?.fields?.productItem,h=e?.fields?.bazaarvoiceProductIdOverride?.value,p=f?.fields?.bazaarvoiceProductId?.value;null!=h&&("string"!=typeof h||0!==h.trim().length)&&(p=h);let x="bazaarvoiceReview-"+p,[v,g]=(0,o.useState)(!1),[b,j]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{j(!0)},[]),b)?(0,s.jsxs)(a.default,{variant:"lg",backgroundVariant:"",sectionWrapperClasses:c.default.bvReviews,dataComponent:"general/bazaarvoicereviews",...e,children:[(0,s.jsx)(t.default,{classes:m.classes.headline,...e}),(0,s.jsxs)("div",{className:m.classes.wrapperClass,children:[(0,s.jsx)("div",{className:m.classes.accordionToggleContainer,"data-anchor-name":"#"+x,children:(0,s.jsxs)("button",{className:m.classes.accordionHeadline,onClick:()=>g(!v),children:[(0,s.jsx)("div",{className:m.classes.readMore,children:"Read Reviews"}),(0,s.jsx)("div",{className:m.classes.accordionRatingContainer,"data-bv-show":"rating_summary","data-bv-product-id":p}),(0,s.jsx)("div",{className:m.classes.accordionToggleIndicator,children:(0,s.jsx)(l.default,{icon:v?"minu
27s":"plus",size:"18",className:m.classes.iconClass})})]})}),(0,s.jsx)("div",{className:`content-container ${v?m.classes.contentOpen:m.classes.contentClosed}`,id:x,children:(0,s.jsx)("div",{className:"content",children:(0,s.jsx)("div",{"data-bv-show":"reviews","data-bv-product-id":p})})})]})]}):null});e.s(["Default",0,m])},632052,e=>{e.v({"bv-action-bar":"bazaarvoice-question-answer-module__qYawRW__bv-action-bar","bv-ask-question":"bazaarvoice-question-answer-module__qYawRW__bv-ask-question","bv-author":"bazaarvoice-question-answer-module__qYawRW__bv-author","bv-content-btn":"bazaarvoice-question-answer-module__qYawRW__bv-content-btn","bv-content-btn-pages":"bazaarvoice-question-answer-module__qYawRW__bv-content-btn-pages","bv-content-core-float":"bazaarvoice-question-answer-module__qYawRW__bv-content-core-float","bv-content-data":"bazaarvoice-question-answer-module__qYawRW__bv-content-data","bv-content-data-count":"bazaarvoice-question-answer-module__qYawRW__bv-content-data-count","bv-content-data-label":"bazaarvoice-question-answer-module__qYawRW__bv-content-data-label","bv-content-data-summary":"bazaarvoice-question-answer-module__qYawRW__bv-content-data-summary","bv-content-datetime-dot":"bazaarvoice-question-answer-module__qYawRW__bv-content-datetime-dot","bv-content-datetime-stamp":"bazaarvoice-question-answer-module__qYawRW__bv-content-datetime-stamp","bv-content-feedback-btn-container":"bazaarvoice-question-answer-module__qYawRW__bv-content-feedback-btn-container","bv-content-feedback-vote":"bazaarvoice-question-answer-module__qYawRW__bv-content-feedback-vote","bv-content-feedback-vote-active":"bazaarvoice-question-answer-module__qYawRW__bv-content-feedback-vote-active","bv-content-feedback-vote-request":"bazaarvoice-question-answer-module__qYawRW__bv-content-feedback-vote-request","bv-content-header":"bazaarvoice-question-answer-module__qYawRW__bv-content-header","bv-content-item":"bazaarvoice-question-answer-module__qYawRW__bv-content-item","bv-content-meta":"bazaarvoice-question-answer-module__qYawRW__bv-content-meta","bv-content-pagination":"bazaarvoice-question-answer-module__qYawRW__bv-content-pagination","bv-content-pagination-pages-current":"bazaarvoice-question-answer-module__qYawRW__bv-content-pagination-pages-current","bv-content-product-questions":"bazaarvoice-question-answer-module__qYawRW__bv-content-product-questions","bv-content-question":"bazaarvoice-question-answer-module__qYawRW__bv-content-question","bv-content-report-btn":"bazaarvoice-question-answer-module__qYawRW__bv-content-report-btn","bv-content-title":"bazaarvoice-question-answer-module__qYawRW__bv-content-title","bv-content-title-container":"bazaarvoice-question-answer-module__qYawRW__bv-content-title-container","bv-control-bar":"bazaarvoice-question-answer-module__qYawRW__bv-control-bar","bv-control-bar-count":"bazaarvoice-question-answer-module__qYawRW__bv-control-bar-count","bv-cv2-cleanslate":"bazaarvoice-question-answer-module__qYawRW__bv-cv2-cleanslate","bv-dropdown-label":"bazaarvoice-question-answer-module__qYawRW__bv-dropdown-label","bv-dropdown-target":"bazaarvoice-question-answer-module__qYawRW__bv-dropdown-target","bv-error":"bazaarvoice-question-answer-module__qYawRW__bv-error","bv-fieldset":"bazaarvoice-question-answer-module__qYawRW__bv-fieldset","bv-fieldset-questionsummary":"bazaarvoice-question-answer-module__qYawRW__bv-fieldset-questionsummary","bv-fieldset-rating":"bazaarvoice-question-answer-module__qYawRW__bv-fieldset-rating","bv-fieldset-small":"bazaarvoice-question-answer-module__qYawRW__bv-fieldset-small","bv-fieldsets":"bazaarvoice-question-answer-module__qYawRW__bv-fieldsets","bv-focusable":"bazaarvoice-question-answer-module__qYawRW__bv-focusable","bv-input-fieldsets":"bazaarvoice-question-answer-module__qYawRW__bv-input-fieldsets","bv-mbox":"bazaarvoice-question-answer-module__qYawRW__bv-mbox","bv-mbox-content-container":"bazaarvoice-question-answer-module__qYawRW__bv-mbox-content-container","bv-outline-grayed":"bazaarvoice-question-answer-module__qYawRW__bv-outline-grayed","bv-secondary-content-list":"bazaarvoice-question-answer-module__qYawRW__bv-secondary-content-list","bv-shared":"bazaarvoice-question-answer-module__qYawRW__bv-shared","bv-sublabel":"bazaarvoice-question-answer-module__qYawRW__bv-sublabel","bv-submission":"bazaarvoice-question-answer-module__qYawRW__bv-submission","bv-submission-section":"bazaarvoice-question-answer-module__qYawRW__bv-submission-section"})},758897,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(207857),i=e.i(382330),r=e.i(584456),n=e.i(307961),d=e.i(589669),o=e.i(271645),c=e.i(632052),u=e.i(279563);let m=(0,d.withDatasourceCheck)(function(e){let{themeName:d,themeData:m}=(0,i.useTheme)(u.BazaarvoiceQuestionAnswerTheme),f=e?.fields?.productItem,h=f?.fields?.bazaarvoiceProductId?.value,p="bazaarvoice-question-answer-"+h,[x,v]=(0,o.useState)(!1),[g,b]=(0,o.useState)(""),j=(0,o.useRef)(null);return(0,n.useBVScript)({environment:r.default,theme:d}),(0,o.useEffect)(()=>
27{if(null!==j.current)return;let e=0,s=()=>{j.current&&(clearInterval(j.current),j.current=null)};return j.current=setInterval(()=>{e+=1;let a=document.querySelector("#BVQAContainer");if((a?.innerText||"").length>0){let e=document.querySelector("#BVQAContainer .bv-control-bar .bv-content-pagination-pages-current span"),a=e?.innerText||"";if(a.length>0){let e=Array.from(a.matchAll(/(\d+)(?!.*\d)/gm))[0];void 0===e?b("0"):b(e[0])}else b(document.querySelectorAll("#BVQAContainer .bv-content-list-container > ol > li").length.toString());s()}e>50&&s()},100),()=>{s()}},[]),(0,o.useEffect)(()=>()=>{null!==j.current&&clearInterval(j.current)},[]),(0,s.jsxs)(a.default,{gap:"0",variant:"lg",backgroundVariant:"",sectionWrapperClasses:c.default.bvQuestionAnswer,dataComponent:"general/bazaarvoicequestionanswer",...e,children:[(0,s.jsx)(t.default,{classes:m.classes.headline,...e}),(0,s.jsxs)("div",{className:m.classes.wrapperClass,children:[(0,s.jsx)("div",{className:m.classes.accordionToggleContainer,"data-anchor-name":`#${p}`,children:(0,s.jsxs)("button",{type:"button",className:m.classes.accordionHeadline,onClick:()=>v(!x),"aria-expanded":x,"aria-controls":`accordion-panel-${p}`,children:[(0,s.jsx)("div",{className:m.classes.readQuestion,children:"Read Questions"}),(0,s.jsxs)("div",{className:m.classes.readQuestionCount,children:["(",g,")"]}),(0,s.jsx)("div",{className:m.classes.accordionToggleIndicator,children:(0,s.jsx)(l.default,{icon:x?"minus":"plus",size:"18",className:m.classes.iconClass})})]})}),(0,s.jsx)("div",{className:`content-container ${x?m.classes.contentOpen:m.classes.contentClosed}`,id:p,children:(0,s.jsx)("div",{className:"content",children:(0,s.jsx)("div",{"data-bv-show":"questions","data-bv-product-id":h})})})]})]})});e.s(["Default",0,m])},555677,e=>{"use strict";var s=e.i(843476),a=e.i(882596),t=e.i(343794),l=e.i(110946),i=e.i(812497),r=e.i(612348),n=e.i(831770),d=e.i(346779),o=e.i(142709),c=e.i(299214),u=e.i(489986),m=e.i(622179),f=e.i(210376);e.i(76464);var h=e.i(281942),p=e.i(183665),x=e.i(524886),v=e.i(146211),g=e.i(207857),b=e.i(274777),j=e.i(382330),C=e.i(584456),y=e.i(307961),N=e.i(589669),w=e.i(271645),_=e.i(499683),k=e.i(102981),T=e.i(613345),S=e.i(208002);let F=(0,N.withDatasourceCheck)(function(e){let{themeName:N,themeData:F}=(0,j.useTheme)(o.FormFieldsTheme),I=(0,j.useTheme)((0,l.SectionHeadlineTheme)("left","dark")).themeData;(0,y.useBVScript)({environment:C.default,theme:N});let D=(0,a.useSitecore)().page.layout.sitecore.context.language,[W,L]=(0,w.useState)(!1),[E,B]=(0,w.useState)(!1),[P,A]=(0,w.useState)(!0),[R,z]=(0,w.useState)(!1),[q,O]=(0,w.useState)([]),M=async e=>{if(e.length>0)try{let s=await fetch("/api/aw/bazaarvoice-product-by-bvid",{method:"POST",body:JSON.stringify({productIds:e,language:D}),headers:{"Content-Type":"application/json"}});if(s.ok){let e=await s.json();O(e.products)}else console.error("Error:",s.statusText)}catch(e){console.error("Error occurred:",e)}},$=async(e,s,a,t)=>{let l;if(l=Object.keys(e)?.reduce((s,a)=>("warranty_products"===a?e[a].forEach((e,t)=>Object.keys(e).forEach(e=>{s[a]=s[a]??[],s[a][t]={...s[a][t],[e]:!0}})):s[a]=!0,s),{}),a({...s,...l},!0),0===Object.keys(await t()).length){let s;A(!1),B("Processing... please wait");let a=(0,S.formActionFactory)({templateName:"Warranty Registration"},e);if(""===(s=document.querySelector('input[name="website"]'),s?.value)){let s=await a?.executeAction(!0);s?.success?(L(!0),M(e.warranty_products.map(e=>e.productseries.split("|")?.[1]??"").filter(e=>e))):A(!0)}else z(!0)}else B("Please fill out all required fields.")};return(0,s.jsx)("div",{"data-component":"forms/warrantyregistration",children:R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.default,{classes:"text-theme-text text-sm-m md:text-m font-heavy mb-s",fields:{headlineText:e.fields?.thankYouHeading}}
27),(0,s.jsx)(r.default,{classes:"text-theme-body text-body text-black mb-s",fields:{body:e.fields?.thankYouText}})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Eyebrow,{...e,classes:"font-sans font-heavy text-sm-xxs mb-xxxs"}),(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(p.default,{classes:I.classes.headlineContainer,fields:{headlineText:W?e.fields?.thankYouHeading??"":e.fields?.headlineText??""}})}),(0,s.jsx)(r.default,{classes:"font-sans! [&_.body-copy_div]:text-s! font-medium mb-l md:mb-[56px]",fields:{body:W?e.fields?.thankYouText??"":e.fields?.body??""}}),(0,s.jsx)(i.Formik,{initialValues:T.warrantyRegistrationInitialValues,validationSchema:_.object().shape(T.warrantyRegistrationValidationSchema),validateOnChange:!0,validateOnBlur:!0,onSubmit:()=>void 0,children:({values:a,touched:l,setTouched:r,validateForm:o,isValid:f})=>!W&&(0,s.jsxs)("form",{className:"mx-auto my-s grid grid-cols-12 gap-xxs gap-y-m md:max-w-(--breakpoint-lg) md:gap-s",children:[(0,s.jsxs)("div",{className:"col-span-12 font-sans text-s font-medium",children:["Contact Information",(0,s.jsx)("span",{className:(0,t.default)("font-serif",F.classes.label),children:"* Indicates a required field"})]}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(u.InputText,{id:"warrantyRegistration-first-name",name:"first_name",type:"text",label:"First name",placeholder:"First name",required:!0,maxLength:25,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(u.InputText,{id:"warrantyRegistration-last-name",name:"last_name",type:"text",label:"Last name",placeholder:"Last name",required:!0,maxLength:25,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(u.InputText,{id:"warrantyRegistration-email",name:"email",type:"email",label:"Email",placeholder:"Email",maxLength:50,subLabel:e?.fields?.privacyPolicyText?.value,required:!0,"aria-required":!0})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputPhone,{id:"warrantyRegistration-phone",name:"phone",label:"Phone",placeholder:"Phone",required:!0,"aria-required":!0})}),(0,s.jsx)(n.default,{address1:{id:"warrantyRegistration-address1",name:"address1",label:"Address",placeholder:"Address",classes:"col-span-12 md:col-span-6",required:!0},country:{id:"warrantyRegistration-country",name:"country",label:"Country",classes:"col-span-12 md:col-span-6",required:!0},city:{id:"warrantyRegistration-city",name:"city",label:a.country===b.FormsConstants.Country.Canada?"Municipality":"City",placeholder:a.country===b.FormsConstants.Country.Canada?"Municipality":"City",classes:"col-span-12 md:col-span-6",required:!0},state:{id:"warrantyRegistration-state",name:"state",label:a.country===b.FormsConstants.Country.Canada?"Province":"State",classes:"col-span-12 md:col-span-3",required:!0},location:{id:"warrantyRegistration-location",name:"location",label:"Location",placeholder:"Location",classes:"col-span-12 md:col-span-3",required:!0},zipCode:{id:"warrantyRegistration-zipCode",name:"zip",label:a.country===b.FormsConstants.Country.Canada?"Postal Code":"Zip",placeholder:a.country===b.FormsConstants.Country.Canada?"Postal Code":"Zip",classes:"col-span-12 md:col-span-3",required:!0}}),(0,s.jsx)("div",{className:"h-0 overflow-hidden p-0","aria-hidden":"true",children:(0,s.jsx)(u.InputText,{label:"Do not fill out this field.",placeholder:"Do not fill out this field.",name:"website"})}),(0,s.jsx)("div",{className:"col-span-12 mt-s font-sans text-s font-medium",children:"Product"}),(0,s.jsx)(i.FieldArray,{name:"warranty_products",render:e=>(0,s.jsxs)(s.Fragment,{children:[a.warranty_products?.map((t,l)=>(0,s.jsx)(k.default,{productIndex:l,removeProduct:()=>{e.remove(l),1===a.warranty_products.length&&e.push({producttype:"",productseries:"",quantity:"",serialnumber:"",installationdate:"",productid:""})}},`warranty_products_${t.productid}_${l}`)),(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsxs)("div",{className:"relative mx-auto flex h-full w-full cursor-pointer flex-col items-center justify-center rounded-[8px] border border-dashed border-gray py-xs text-center font-sans! text-small font-heavy text-darkprimary ml:text-xxs",onClick:()=>e.push({producttype:"",productseries:"",quantity:"",serialnumber:"",installationdate:"",productid:""}),children:[(0,s.jsx)("div",{tabIndex:0,className:"mb-xxs",children:(0,s.jsx)(g.default,{className:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 cursor-pointer",icon:"plus",size:"lg"})}),(0,s.jsx)("span",{className:"font-serif! text-body font-regular text-black",children:"Add another product"})]})})]})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(d.default,{options:[{id:"warrantyRegistration-optin",label:e.fields?.subscribeToNewsUpdateText.value??""}],name:"newsletter"})}),(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(m.default,{type:"button",onClick:()=>$(a,l,r,o),className:(0,t.default)("mx-auto w-[137px] text-center md:mx-0 md:w-[218px]"),disabled:!P,children:(0,s.jsx)("span",{className:"w-full text-center",children:"Submit"})}),(!P||!f)&&(0,s.jsx)("span",{className:f?(0,t.default)("my-xxs block w-fit font-serif text-body text-dark-gray"):(0,t.default)(F.classes.errorMessage,F.classes.errorTextColor),children:E})]})]})}),!W&&(0,s.jsx)(f.default,{fields:{...e.fields},disclaimerClasses:F.classes.disclaimerText}),W&&q.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.default,{classes:"text-theme-text text-sm-m md:text-m font-heavy mb-xxs",fields:{headlineText:e.fields?.productReviewSectionHeading??""}}),(0,s.jsx)(r.default,{fields:{body:e.fields?.productReviewSectionCopy??""}}),(0,s.jsx)("div",{className:"mx-auto my-s grid grid-cols-12 gap-xxs gap-y-m md:max-w-(--breakpoint-lg) md:gap-s",children:W&&q.map(e=>{var a;let t;return t={value:(a=e).productImage},(0,s.jsxs)("div",{className:"col-span-12 border border-gray p-s md:col-span-3",children:[(0,s.jsx)(h.Eyebrow,{fields:{eyebrowText:a.productSeries.targetItem.productTypeName},classes:"font-sans! text-xxs text-dark-gray font-heavy mb-xxs"}),(0,s.jsx)("h3",{className:"mb-s font-sans text-xs font-heavy",children:a.productName.value}),(0,s.jsx)("div",{className:"relative mb-s",children:(0,s.jsx)(x.default,{image:t,imageLayout:"responsive",additionalDesktopClasses:"max-w-full",additionalMobileClasses:"max-w-full"})}),(0,s.jsx)("div",{className:"flex",onClick:e=>{var s;e.preventDefault(),s=a.bazaarvoiceProductId?.value,$BV.ui("rr","submit_review",{productId:s})},children:(0,s.jsx)(v.default,{classes:{wrapper:"mb-0! mx-auto!"},fields:{cta1Icon:{id:"f8ad4587-51a4-4e66-8eec-b448f78b4cb2",url:"http://localhost/sitecore/login/sitecore/system/Settings/Foundation/EnterpriseWeb/Enums/Icons/Augmented-Reality",name:"Augmented Reality",displayName:"Augmented Reality",fields:{Value:{value:"arrow"}},templateId:"d2923fee-da4e-49be-830c-e27764dfa269",templateName:"Enum"},cta1Link:{value:{href:"",text:"Start rating",anchor:"",linktype:"internal",class:"",title:"",target:"",querystring:"",id:"{BD66C47E-42B0-4EDD-BAD3-4BC981C05E5D}"}},cta1Style:{id:"8aedd89c-e161-41d4-b773-6a6097a19372",url:"http://localhost/sitecore/login/sitecore/system/Settings/Foundation/EnterpriseWeb/Enums/CTA-Styles/Secondary",name:"Secondary",displayName:"Primary",fields:{Value:{value:"primary"}},templateId:"d2923fee-da4e-49be-830c-e27764dfa269",templateName:"Enum"},cta1ModalLinkText:{value:""},cta1PersonalizeEventName:{value:""},cta1AriaLabel:{value:""}}})})]})})})]})]})})});e.s(["Default",0,F])},417933,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(343794),l=e.i(812497),i=e.i(612348),r=e.i(346779),n=e.i(780092),d=e.i(142709),o=e.i(299214),
27c=e.i(489986),u=e.i(622179),m=e.i(210376);e.i(76464);var f=e.i(281942),h=e.i(183665),p=e.i(291749),x=e.i(699034),v=e.i(920682),g=e.i(274777),b=e.i(382330),j=e.i(589669),C=e.i(976442),y=e.i(411848),N=e.i(522016),w=e.i(271645),_=e.i(499683),k=e.i(208002);let T=(0,j.withDatasourceCheck)(function(e){let{themeData:j}=(0,b.useTheme)(d.FormFieldsTheme),[T,S]=(0,w.useState)(!1),[F,I]=(0,w.useState)(!0),[D,W]=(0,w.useState)(!1),[L,E]=(0,w.useState)(!1),[B,P]=(0,w.useState)(!1),[A,R]=(0,w.useState)(!1),[z,q]=(0,w.useState)(""),[O,M]=(0,w.useState)(!1),$=(0,w.useRef)(null);if((0,w.useEffect)(()=>{q((document.referrer??"").replace(/https?:\/\//,""))},[]),!e.fields)return(0,s.jsx)(s.Fragment,{});let V={company:"",company_type:"",target_area:"",first_name:"",last_name:"",email:"",phone:"",website:"",country:g.FormsConstants.Country.USA,message:"",optin:""},U=_.lazy(e=>e&&e.length>0&&/\d/.test(e)?_.string().matches(/^(1\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,"Please enter a valid mobile number"):_.string().notRequired()),G={company:_.string().trim().required("This field is required"),company_type:_.string().trim().required("This field is required"),target_area:_.string().trim().required("This field is required"),first_name:_.string().trim().required("This field is required"),last_name:_.string().trim().required("This field is required"),email:_.string().required("This field is required").matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,"Please enter a valid email address"),website:_.string().trim().url("Please enter a valid URL"),country:_.string().trim().required("This field is required"),message:_.string().trim().required("This field is required"),phone:U},H=[{label:"Advanced Materials",value:"Advanced Materials"},{label:"Connected Home",value:"Connected Home"},{label:"Sustainability/Energy Efficiency",value:"Sustainability/Energy Efficiency"},{label:"Advanced Manufacturing",value:"Advanced Manufacturing"},{label:"Other",value:"Other"}],Y=[{label:"Start Up",value:"Start Up"},{label:"Incubator/Accelerator",value:"Incubator/Accelerator"},{label:"Fund",value:"Fund"},{label:"Corporate Venture Capital",value:"Corporate Venture Capital"},{label:"Entrepreneur",value:"Entrepreneur"},{label:"Other",value:"Other"}],Z=e.rendering.dataSource?.replaceAll(/[{}]/g,""),K={sessionId:(0,C.createUUID)().toUpperCase(),name:"Ventures Partner Form",rendering:{dataSource:e.rendering.dataSource},fields:{formName:{value:"Ventures Partner Form"},children:[{fields:{children:[{id:(0,C.createUUID)().toUpperCase(),templateName:"Short Text",fields:{fieldName:{value:"company"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Dropdown",fields:{fieldName:{value:"company_type"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Dropdown",fields:{fieldName:{value:"target_area"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Short Text",fields:{fieldName:{value:"first_name"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Short Text",fields:{fieldName:{value:"last_name"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Email",fields:{fieldName:{value:"email"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Phone",fields:{fieldName:{value:"phone"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Short Text",fields:{fieldName:{value:"website"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Dropdown",fields:{fieldName:{value:"country"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Text Area",fields:{fieldName:{value:"message"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Checkbox",fields:{fieldName:{value:"agree_to_news_updates"}}},{id:(0,C.createUUID)().toUpperCase(),templateName:"Checkbox",fields:{fieldName:{value:"agree_to_terms"}}}]}}]},params:{}},J=new Date,Q=("0"+(J.getMonth()+1)).slice(-2)+"/"+("0"+J.getDate()).slice(-2)+"/"+J.getFullYear(),X=e.fields.emailBody?.value,ee=()=>{W(!1)};return(0,s.jsx)("section",{"data-component":"forms/venturespartner",id:e?.fields?.sectionId?.value??`id${(0,y.hashCode)(e.rendering.dataSource)}`,children:T?(0,s.jsxs)("div",{className:"flex w-full flex-col justify-center text-center",children:[(0,s.jsx)(h.default,{classes:"text-theme-text text-sm-m md:text-m font-heavy",fields:{headlineText:e.fields?.thankYouHeading}}
27),(0,s.jsx)(i.default,{classes:"text-theme-body text-body text-black",fields:{body:e.fields?.thankYouText}})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Eyebrow,{...e,classes:"font-sans font-heavy text-sm-xxs mb-xxxs"}),(0,s.jsx)(h.default,{...e,classes:"text-theme-text text-sm-m md:text-x font-medium mb-xxs"}),(0,s.jsx)(i.default,{...e,classes:"text-theme-body text-body mb-s text-black"}),(0,s.jsx)(l.Formik,{initialValues:V,validationSchema:_.object().shape(G),onSubmit:async s=>{if(B){let a,t;I(!1),s.referrer=z,s.agree_to_terms=B,s.context_id=Z,s.interaction_date=Q;let l={emailBody:{value:X.replaceAll(/{{\s*(\w+)\s*}}/g,(e,a)=>s[a]??e)},emailSubject:{value:e.fields.emailSubject?.value},fromEmailAddress:{value:e.fields.fromEmailAddress?.value},toEmailAddress:{value:e.fields.toEmailAddress?.value},errorMessage:{value:e.fields.errorMessage?.value},stopOnError:{value:!0}},i={account:"AW",definitionKey:"sitecore_venture_confirmation_email",recipient:{contactKey:(0,C.createUUID)().replace(/-/,""),to:s.email,attributes:{company:s.company,company_type:s.company_type,target_area:s.target_area,first_name:s.first_name,last_name:s.last_name,phone:s.phone,website:s.website,country:s.country,message:s.message}}},r=(0,k.formActionFactory)({templateName:"Save To Database"},s,K),n=(0,k.formActionFactory)({templateName:"Send Email",fields:l},{}),d=(0,k.formActionFactory)({templateName:"SFMC Transactional Messaging Send Email"},i);if((t=document.querySelector('input[name="website2"]'),t?.value)?S(!0):a=await r?.executeAction(!0),a?.success){let e=await n?.executeAction(!0);if(e?.success){let e=await d?.executeAction(!0);e?.success?(I(!0),S(!0),R(!0)):M(!0)}else M(!0)}else M(!0)}else A||W(!0)},innerRef:$,children:({touched:a,values:d,errors:m,handleSubmit:f,isValid:h,submitCount:p})=>{let x=!h&&p>0;return(0,s.jsxs)("form",{noValidate:!0,className:" mb-l grid grid-cols-12 gap-s",onSubmit:f,children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputText,{id:"venturesPartnerForm_company",name:"company",type:"text",label:"Company",placeholder:"Company",required:!0,maxLength:100,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-6 hidden md:block"}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(n.default,{name:"company_type",id:"venturesPartnerForm_company_type",options:Y,required:!0,"aria-label":"Company Type","aria-required":"true",label:"Company Type",children:(0,s.jsx)("option",{value:"",selected:!0,children:"Select One"})})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(n.default,{name:"target_area",id:"venturesPartnerForm_target_area",options:H,required:!0,"aria-label":"Focus Area","aria-required":"true",label:"Focus Area",children:(0,s.jsx)("option",{value:"",selected:!0,children:"Select One"})})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputText,{id:"venturesPartnerForm_first_name",name:"first_name",type:"text",label:"First name",placeholder:"First name",required:!0,maxLength:25,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputText,{id:"venturesPartnerForm_last_name",name:"last_name",type:"text",label:"Last name",placeholder:"Last name",required:!0,maxLength:25,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputText,{id:"venturesPartnerForm_email",name:"email",type:"email",label:"Email",placeholder:"Email",maxLength:50,required:!0,"aria-required":"true"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(o.InputPhone,{id:"venturesPartnerForm_phone",name:"phone",label:"Phone",placeholder:"(XXX) XXX-XXXX"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(c.InputText,{id:"venturesPartnerForm_website",name:"website",type:"text",label:"Website",placeholder:"Website",maxLength:100})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(n.default,{name:"country",id:"venturesPartnerForm_country",options:v.countries,"aria-label":"country",required:!0,"aria-required":"true",label:"Country"})}),(0,s.jsxs)("div",{className:"col-span-12 md:col-span-6",children:[(0,s.jsxs)("label",{className:(0,t.default)(j.classes.label,a.message&&m.message?j.classes.errorTextColor:""),htmlFor:"venturesPartnersForm_message",children:["Message"," *"]}),(0,s.jsx)(l.Field,{as:"textarea",placeholder:"Message",rows:"3",name:"message",maxLength:"450","aria-required":"true",id:"venturesPartnersForm_message",className:(0,t.default)(j.classes.textarea,a.message&&m.message?j.classes.errorOutline:"",d.message?"border-black":"border-gray")}),(0,s.jsx)(l.ErrorMessage,{name:"message",className:(0,t.default)(j.classes.errorMessage,j.classes.errorTextColor),component:"span"})]}),(0,s.jsx)("div",{className:"h-0 overflow-hidden p-0","aria-hidden":"true",children:(0,s.jsx)(c.InputText,{label:"Do not fill out this field.",placeholder:"Do not fill out this field.",name:"website2"})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(r.default,{options:[{id:"venturesPartnersForm-agree_to_news_updates",label:e.fields.subscribeToNewsUpdateText?.value}],name:"agree_to_news_updates"})}),(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(u.default,{type:"submit",name:"submit",className:(0,t.default)("min-w-[137px] justify-center max-md:mx-auto md:min-w-[218px]",{"pointer-events-none":O}),disabled:!F&&B&&!O,children:"Submit"}),(!F||x)&&(0,s.jsx)("span",{className:x?(0,t.default)(j.classes.errorMessage,j.classes.errorTextColor,"w-fit"):(0,t.default)("my-xxs block w-fit font-serif text-body text-dark-gray"),children:F?"Please fill out all required fields.":B&&!O&&"Processing... please wait"}),B&&O&&(0,s.jsx)(i.default,{fields:{body:{value:e.fields?.errorMessage?.value}},classes:(0,t.default)("&_.body-copy",j.classes.errorMessage,j.classes.errorTextColor,"mt-xs w-fit")})]})]})}}),(0,s.jsx)(i.default,{fields:{body:{value:e.fields.privacyPolicyText?.value}},classes:"[&_.body-copy]:text-legal!"}),(0,s.jsx)(p.default,{className:"mt-xxxs flex w-full text-legal text-darkprimary",field:{href:e.fields.externalIdeasLink?.value.href,text:e.fields.externalIdeasLink?.value.text??"External ideas
27submission policy"},ariaLabel:{value:e.fields.externalIdeasLink?.value.text??"External ideas"}}),(0,s.jsx)(N.default,{href:"#",children:(0,s.jsx)("button",{className:"mt-xxxs flex w-full text-legal text-darkprimary",onClick:e=>{e.preventDefault(),E(!0)},children:e.fields.termsAndConditionsLinkText?.value})}),(0,s.jsx)(m.default,{fields:e.fields?.disclaimerText,disclaimerClasses:j.classes.disclaimerText}),(0,s.jsx)(x.default,{size:"large",handleClose:ee,isModalOpen:D,children:(0,s.jsxs)("div",{className:"px-m py-[20px] text-justify md:px-[60px]",children:[(0,s.jsx)(i.default,{fields:{body:{value:e.fields.termsAndConditions?.value}},classes:"[&_.body-copy]:text-small!"}),(0,s.jsx)("div",{className:"my-m",children:(0,s.jsxs)("label",{className:"flex",children:[(0,s.jsx)("input",{name:"acceptTCCheck",type:"checkbox",checked:B,onChange:()=>P(!B),className:(0,t.default)("peer mr-xxs inline-flex h-[20px] w-[20px] cursor-pointer appearance-none items-center border border-dark-gray checked:bg-black! hover:border-black focus:bg-gray focus:ring-0!",j.classes.checkbox)}),(0,s.jsx)(a.Text,{tag:"span",className:"inline-flex items-center text-body",field:{value:e.fields.agreeToTermsAndConditionsText?.value}})]})}),(0,s.jsx)("button",{type:"button",className:(0,t.default)("mx-auto flex w-fit min-w-full items-center justify-center whitespace-nowrap rounded-lg border-4 border-theme-btn-border bg-theme-btn-bg px-m py-[9px] font-sans text-button font-heavy text-theme-btn-text hover:border-theme-btn-border-hover hover:bg-theme-btn-bg-hover hover:text-theme-btn-text-hover disabled:cursor-not-allowed disabled:border-gray disabled:text-gray disabled:hover:bg-theme-btn-bg md:mx-0 md:min-w-[218px]"),disabled:!B,onClick:()=>{B&&(P(!0),ee(),$.current&&$.current.handleSubmit())},children:"Accept & Submit"})]})}),(0,s.jsx)(x.default,{size:"large",handleClose:()=>{E(!1)},isModalOpen:L,children:(0,s.jsx)("div",{className:"px-m py-[20px] text-justify md:px-[60px]",children:(0,s.jsx)(i.default,{fields:{body:{value:e.fields.termsAndConditionsStandaloneCopy?.value}},classes:"[&_.body-copy]:text-small!"})})})]})})});e.s(["Default",0,T])},85039,e=>{"use strict";var s=e.i(843476),a=e.i(825056),t=e.i(350708),l=e.i(134387),i=e.i(271645),r=e.i(454705);e.s(["FormWrapper",0,function(e){let{product:n,visualizerUrl:d}=(0,t.useRenoworks)(),o=(0,i.useContext)(a.ShortDesignUrlContext),c=(0,l.useVisualizationReferral)(),u={DESIGNSPECS:o,DESIGNTOOLSERIES:n?.renoworksKey},m={...e??{},fields:{...e?.fields??{},_injectedFields:u,renoworksVisualizerUrl:d,visualizationReferral:c,params:e?.params}};return(0,s.jsx)(r.RequestQuoteClient,{...m})}])},432950,e=>{"use strict";var s=e.i(843476),a=e.i(909224),t=e.i(825056),l=e.i(134387),i=e.i(271645),r=e.i(454705);e.s(["FormWrapper",0,function(e){let{product:n,visualizerUrl:d}=(0,a.useRenoworks)(),o=(0,i.useContext)(t.ShortDesignUrlContext),c=(0,l.useVisualizationReferral)(),u={DESIGNSPECS:o,DESIGNTOOLSERIES:n?.renoworksKey},m={...e??{},fields:{...e?.fields??{},_injectedFields:u,renoworksVisualizerUrl:d,visualizationReferral:c,params:e?.params}};return(0,s.jsx)(r.RequestQuoteClient,{...m})}])},595868,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(612348),i=e.i(346779),r=e.i(780092),n=e.i(142709),d=e.i(299214),o=e.i(489986),c=e.i(622179),u=e.i(210376);e.i(76464);var m=e.i(281942),f=e.i(183665),h=e.i(291749),p=e.i(207857),x=e.i(382330),v=e.i(159277),g=e.i(589669),b=e.i(411848),j=e.i(658666),C=e.i(271645),y=e.i(499683);let N=(0,g.withDatasourceCheck)(function(e){let{themeData:g}=(0,x.useTheme)(n.FormFieldsTheme),[N,w]=(0,C.useState)(!1),[_,k]=(0,C.useState)(!0),[T,S]=(0,C.useState)(!1),[F,I]=(0,C.useState)(""),[D,W]=(0,C.useState)(""),[L,E]=(0,C.useState)(""),[B,P]=(0,C.useState)([]),[A,R]=(0,C.useState)([]),[z,q]=(0,C.useState)([]),O=e.fields?.jobPostingId?.value??"",M=async e=>{var s;k(!1),200===(await fetch("/api/aw/job-applicant/submit-job-applicant",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postingId:O,customQuestions:[{id:F,fields:[{value:(s=e).areaInterested}]},{id:D,fields:[{value:s.source}]},{id:L,fields:[{value:s.location}]}],personalInformation:[{name:"fullName",value:`${s.first_name} ${s.last_name}`},{name:"email",value:s.email},{name:"phone",value:s.phone}]})})).status?(w(!0),k(!0),S(!1)):(S("Error while processing your request."),k(!0))},$=(0,j.default)();if((0,C.useEffect)(()=>{(async()=>{try{let e=await fetch(`/api/aw/job-applicant/get-posting-questions?postingId=${O}`);if(!e.ok)return void console.error("Failed to fetch posting questions");
27((await e.json()).customQuestions??[]).forEach(e=>{let{text:s,id:a,fields:t}=e;switch(s){case"Area of Interest":I(a);break;case"Source":W(a);break;case"Location(s) of Interest":E(a)}t.forEach(e=>{let{text:s,options:a}=e,t=a||[],l=t.map(e=>({id:e.optionId,label:e.text,value:e.text}));switch(s){case"Interest":P(l);break;case"Locations":q(l);break;case"Source":R(t.map(e=>({label:e.text,value:e.text})))}})})}catch(e){console.error("Error fetching data:",e)}})()},[]),!e.fields)return(0,s.jsx)(s.Fragment,{});let V={first_name:y.string().trim().required("This field is required"),last_name:y.string().trim().required("This field is required"),email:y.string().required("This field is required").matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,"This field is required"),phone:y.string().required("This field is required").matches(/^(1\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,"Please enter a valid mobile number."),location:y.array().min(1,"This field is required")};return(0,s.jsx)("section",{"data-component":"forms/jobapplicant",className:"mx-auto my-xl max-w-[1248px] px-m",id:e?.fields?.sectionId?.value??`id${(0,b.hashCode)(e.rendering.dataSource)}`,children:N?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.default,{classes:"text-theme-text text-sm-m md:text-m font-heavy mb-s",fields:{headlineText:e.fields?.thankYouHeading}}
27),(0,s.jsx)(l.default,{classes:"text-theme-body text-body text-black mb-s",fields:{body:e.fields?.thankYouText}}),(0,s.jsx)("ul",{className:"flex gap-x-xxs",children:e.fields.socialLinks?.map((e,a)=>{let t=(0,v.getEnum)(e.fields.icon);return t&&e?.fields?.link?.value&&(0,s.jsx)("li",{children:$?(0,s.jsx)(p.default,{icon:t,className:"text-black"}):(0,s.jsx)(h.default,{field:e.fields.link,ariaLabel:{value:t||"social icon"},children:(0,s.jsx)(p.default,{icon:t,fillId:"black",className:"text-black"})})},a)})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.Eyebrow,{...e,classes:"font-sans font-heavy text-sm-xxs mb-xxxs"}),(0,s.jsx)(f.default,{...e,classes:"text-theme-text text-sm-m md:text-m font-heavy mb-xxs"}),(0,s.jsx)(l.default,{...e,classes:"text-theme-body text-body mb-s text-black"}),(0,s.jsxs)("div",{className:"col-span-12 mb-m font-sans text-sm-s font-medium md:text-s",children:["Contact Information",(0,s.jsx)("div",{className:(0,a.default)("font-serif",g.classes.label,"inline-block ml-2"),children:"* Indicates a required field"})]}),(0,s.jsx)(t.Formik,{initialValues:{first_name:"",last_name:"",email:"",phone:"",areaInterested:[],location:[],source:""},validationSchema:y.object().shape(V),onSubmit:e=>{let s;""===(s=document.querySelector('input[name="website"]'),s?.value)?M(e):w(!0)},children:({errors:e,handleSubmit:t,submitCount:l,isValid:n})=>(0,s.jsxs)("form",{noValidate:!0,className:" grid grid-cols-12 gap-s",onSubmit:t,children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(o.InputText,{id:"jobApplicant_first_name",name:"first_name",placeholder:"First Name",label:"First name",type:"text",maxLength:25,required:!0,"aria-required":!0,"aria-invalid":!!e.first_name})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6",children:(0,s.jsx)(o.InputText,{id:"jobApplicant_last_name",name:"last_name",placeholder:"Last Name",label:"Last name",type:"text",maxLength:25,required:!0,"aria-required":!0,"aria-invalid":!!e.last_name})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6 md:mb-m",children:(0,s.jsx)(o.InputText,{id:"jobApplicant_email",name:"email",placeholder:"Email",label:"Email",type:"email",maxLength:50,required:!0,"aria-required":!0,"aria-invalid":!!e.email})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6 md:mb-m",children:(0,s.jsx)(d.InputPhone,{id:"jobApplicant_phone",name:"phone",placeholder:"Phone",label:"Phone",required:!0,"aria-required":!0,"aria-invalid":!!e.phone})}),(0,s.jsx)("div",{className:"h-0 overflow-hidden p-0","aria-hidden":"true",children:(0,s.jsx)(o.InputText,{label:"Do not fill out this field.",placeholder:"Do not fill out this field.",name:"website"})}),(0,s.jsx)("div",{className:"col-span-12 mt-m md:col-span-6 md:mt-0",children:(0,s.jsxs)("fieldset",{children:[(0,s.jsxs)("legend",{className:"mb-m font-sans text-sm-s font-medium md:text-s",children:["Location(s) of interest",(0,s.jsx)("div",{className:(0,a.default)("font-serif",g.classes.label),children:"Check all that apply *"})]}),(0,s.jsx)(i.default,{options:z,name:"location"})]})}),(0,s.jsxs)("div",{className:"col-span-12 mb-m md:col-span-6 md:mb-0",children:[(0,s.jsxs)("fieldset",{className:"mb-s",children:[(0,s.jsxs)("legend",{className:"mb-m font-sans text-sm-s font-medium md:text-s",children:["Area(s) of interest",(0,s.jsx)("div",{className:(0,a.default)("font-serif",g.classes.label),children:"Check all that apply"})]}),(0,s.jsx)(i.default,{options:B,name:"areaInterested"})]}),(0,s.jsx)("div",{children:(0,s.jsx)(r.default,{options:A,name:"source",id:"JobApplicant_Source",label:"How did you hear about this opportunity"})})]}),(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(c.default,{name:"sumbit",type:"submit",icon:"arrow",disabled:!_,className:"mx-auto flex min-w-[218px] justify-center",children:"Submit"}),(!n&&l>0||T||!_)&&(0,s.jsx)("span",{className:_?(0,a.default)(g.classes.errorMessage,g.classes.errorTextColor,"mx-auto"):(0,a.default)("my-xxs block w-fit justify-center font-serif text-body text-dark-gray"),children:_?T||"Please check all fields to ensure all information is entered correctly.":"Processing... please wait"})]})]})}),(0,s.jsx)(u.default,{fields:e.fields?.disclaimerText,disclaimerClasses:g.classes.disclaimerText,...e})]})})});e.s(["Default",0,N])},534623,e=>{"use strict";var s,a,t=e.i(843476),l=e.i(882596),i=e.i(343794),r=e.i(812497),n=e.i(487840),d=e.i(274777),o=e.i(382330),c=e.i(722271),u=e.i(54258),m=e.i(224043),f=e.i(436591),h=e.i(804101),p=e.i(159277),x=e.i(589669),v=e.i(271645),g=e.i(641599),b=((s=b||{}).fullWidth="12",s.halfWidth="6",s),j=((a=j||{}).fullWidth="12",a.halfWidth="6",a.thirdWidth="4",a.quarterWidth="3",a.sixthWidth="2",a.twelthWidth="1",a);let C={12:"col-span-12",6:"col-span-6"},y={12:"md:col-span-12",6:"md:col-span-6",4:"md:col-span-4",3:"md:col-span-3",2:"md:col-span-2",1:"md:col-span-1"},N=(0,x.withDatasourceCheck)(function(e){let s,{fields:a,submitActions:x}=(s=e.rendering.fields,{fields:{...(0,m.mapItemFieldResultsToObject)(s.data.item.fields)},submitActions:(0,f.mapSearchResults)(s.data.item.children,e=>({id:e.id,fields:{...(0,m.mapItemFieldResultsToObject)(e.fields)},attributes:(0,f.mapSearchResults)(e.children,e=>({id:e.id,fields:{...(0,m.mapItemFieldResultsToObject)(e.fields)}}))??[]}))??[]}),{currentPage:b,navigateToPage:j,formPages:N,formDetails:w,isErrorOnSubmit:_,setIsErrorOnSubmit:k,botCheckers:T,initialValues:S,sessionId:F}=(0,n.useGenericFormBuilderContext)(),{validateForm:I,setTouched:D,touched:W,values:L,setFieldError:E}=(0,r.useFormikContext)(),{page:B}=(0,l.useSitecore)(),[P,A]=(0,v.useState)(!0),{themeName:R}=(0,o.useTheme)(),z=-1;if(void 0==a)return null;let q=Number((0,p.getEnum)(a.navigationStep)??0);function O(){let e=N[b].fields.map(e=>{if((0,c.isStandardField)(e)&&void 0!=S[e.name]&&null!=S[e.name])return e.name;if((0,c.isCompositeField)(e)){for(let s of e.subfields)if(void 0!=S[s.name]&&null!=S[s.name])return s.name}return null}).flat().reduce((e,s)=>(null!=s&&(e[s]=!0),e),{});D({...W,...e},!0)}let M=async()=>{let s={};if(_&&k(!1),x.length>0)for(let t of x){let l=(0,u.submitActionFactory)(t),i={formDetails:w,formValues:function(e){for(let s in e)"string"==typeof e[s]&&(e[s]=e[s].trim());return e}(L),submitButton:{...e,fields:a},sessionId:F,context:s,formPages:N};if(void 0==l)continue;let r=await l.execute(i);if(r.nextPageIndex&&(z=r.nextPageIndex),!r.success&&t.fields?.stopOnError.value)throw k(r.errorMessage??""),Error()}},$=async e=>{if(e.preventDefault(),!function(e,s,a,t){for(let l of e){if(s[l])return a(l,"Submission Unsuccessful"),t("Submission Unsuccessful"),!1;delete s[l]}return!0}(T,L,E,k))return;let s=a?.skipValidation?.value?[]:await I();if(0===Object.keys(s).length||-1===q){k(!1),A(!1);try{let e;e=Number(sessionStorage.getItem(d.FormsConstants.AW.Form.CCPFormStep)||1),sessionStorage.setItem(d.FormsConstants.AW.Form.CCPFormCompleted,String(e)),1===q?e+=1:-1===q&&(e-=1),sessionStorage.setItem(d.FormsConstants.AW.Form.CCPFormStep,String(e)),(0,h.startTimer)(()=>{globalThis.dispatchEvent(new CustomEvent("aw_ccp_abandon",{detail:{isInactivity:!0}}))},sessionStorage.getItem(d.FormsConstants.AW.Form.CCPFormTimeout)?Number(sessionStorage.getItem(d.FormsConstants.AW.Form.CCPFormTimeout)):9e5),await M(),z>-1?j(z):j(b+q),A(!0),-1!==q&&O()}catch{A(!0)}}else{O(),k("Please fill out all required fields.");let e=Object.keys(s)[0],a=document.querySelector(`input[name="${e}"], select[name="${e}"], textarea[name="${e}"]`);a&&a.focus()}},V=(0,p.getEnum)(a.mobileWidth)??"12",U=(0,p.getEnum)(a.width)??"12",G=C[V]??"col-span-12",H=y[U]??"md:col-span-12",Y=(0,p.getEnum)(a.icon),Z="form-link"===Y,K={left:"mr-auto",right:"ml-auto",center:"mx-auto"},J="";return"rba"!==R||Z||(J="pb-ml"),(0,t.jsxs)("div",{className:(0,i.default)("relative self-center",G,H,J),children:[(0,t.jsx)(g.NavigationButtonHelper,{icon:Y,type:"button",disabled:!P,startWithIcon:-1===q,hideIcon:Z,onClick:e=>$(e),className:(0,i.default)(K[(0,p.getEnum)(a?.alignment)||"left"],B.mode.isEditing?"pointer-events-none":""),children:a?.label?.value}),!P&&(0,t.jsx)("span",{className:(0,i.default)("my-xxs block w-fit font-serif text-body text-dark-gray",K[(0,p.getEnum)(a?.alignment)||"left"]),children:"Processing... please wait"})]})});e.s(["Default",0,N])},435312,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140);let o=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,r.useTheme)(i.FormFieldsTheme),{errors:o,touched:c,values:u,setFieldValue:m}=(0,t.useFormikContext)(),{page:f}=e;if(void 0==e.fields)return null;let h=e.fields.fieldName.value;if((0,d.isNullOrWhitespace)(h)&&!f.mode.isEditing)return null;let p=c[h]&&o[h],x=(0,d.isNullOrWhitespace)(e.fields.cityFieldName.value)?`${h}-city`:e.fields.cityFieldName.value,v=(0,d.isNullOrWhitespace)(e.fields.cityFieldId.value)?`${e.rendering.uid}-city`:e.fields.cityFieldId.value,g=(0,d.isNullOrWhitespace)(e.fields.stateFieldName.value)?`${h}-state`:e.fields.stateFieldName.value,b=(0,d.isNullOrWhitespace)(e.fields.stateFieldId.value)?`${e.rendering.uid}-city`:e.fields.stateFieldId.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:h,type:"text",placeholder:e.fields?.placeholderText?.value??"",className:(0,a.default)(n.classes.input,p?n.classes.errorOutline:"",u[h]?"border-black":"",f.mode.isEditing?"pointer-events-none":""),onKeyUp:e=>{let s=e.target.value,a=/^\d{5}$/.test(s),t=async e=>{try{let s=await fetch("/api/aw/generic-form-builder/zippopotam-us",{method:"POST",body:JSON.stringify({postalCode:e}),headers:{"Content-Type":"application/json"}}),a=await s.json();if(a&&Object.keys(a).length>0){let e=a.places[0]["place name"];e&&m(x,e);let s=a.places[0]["state abbreviation"];s&&m(g,s)}}catch(e){console.error("Error fetching Zippopotum.US data:",e)}};m(x,""),m(g,""),s&&a&&t(s)}})}),(0,s.jsx)("div",{className:"relative hidden","data-te-input-wrapper-init":!0,children:(0,s.jsx)(t.Field,{id:v,name:x,type:"hidden"})}),(0,s.jsx)("div",{className:"relative hidden","data-te-input-wrapper-init":!0,children:(0,s.jsx)(t.Field,{id:b,name:g,type:"hidden"})})]})});e.s(["Default",0,o])},692429,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140);let o=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,r.useTheme)(i.FormFieldsTheme),{errors:o,touched:c,values:u}=(0,t.useFormikContext)(),{page:m}=e,f=m.mode.isEditing?"ZipCodeField":e.fields?.fieldName.value;if(void 0==e.fields||(0,d.isNullOrWhitespace)(f))return null;let h=c[f]&&o[f];return(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:f,type:"text",placeholder:e.fields.placeholderText.value,className:(0,a.default)(n.classes.input,{[n.classes.errorOutline]:h,"border-black":u[f],"pointer-events-none":m.mode.isEditing})})})});e.s(["Default",0,o])},364388,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140),o=e.i(271645);let c=(0,n.withDatasourceCheck)(function(e){let{themeName:n,themeData:c}=(0,r.useTheme)(i.FormFieldsTheme),u=(0,o.useRef)(null),{page:m}=e,f=(0,t.useFormikContext)(),h=m.mode.isEditing?"TradeTypeDropdownField":e.fields?.fieldName.value;if((0,d.isNullOrWhitespace)(h))return null;let p=f.values["user-type"],{errors:x,touched:v,values:g}
27=f,b=v[h]&&x[h];return("Homeowner"===p||(0,d.isNullOrWhitespace)(p))&&!m.mode.isEditing?null:(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)("div",{className:"relative",ref:u,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:h,as:"select",value:g[h],className:(0,a.default)("relative pr-ml",c.classes.input,{[c.classes.errorOutline]:b,"border-black":g[h],"pointer-events-none":m.mode.isEditing}),children:e.options.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"aw"===n&&""===e.value,children:e.label},e.value))})})})});e.s(["Default",0,c])},405335,e=>{"use strict";var s,a=e.i(843476),t=e.i(343794),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(159277),d=e.i(589669),o=e.i(324140),c=e.i(342941),u=e.i(748369),m=((s=m||{}).Left="left",s.Center="center",s.Right="right",s.Unknown="",s);let f=(0,d.withDatasourceCheck)(function(e){let{themeData:s}=(0,r.useTheme)(i.FormFieldsTheme),{page:d}=e,m=d.mode.isEditing?"TileButtonField":e.fields?.fieldName.value;if(void 0==e.fields||(0,o.isNullOrWhitespace)(m))return null;let f=(0,n.getEnum)(e.fields.alignment)??"left",h=(0,n.getEnum)(e.fields.selection)===u.SelectionTypes.Multiple,p=e.fields.moveForwardOnClick.value,x="";switch(f){case"center":x="text-center justify-center";break;case"left":x="text-left justify-left";break;case"right":x="text-right justify-end"}let v={1:"md:col-span-12",2:"md:col-span-6",3:"md:col-span-4",4:"md:col-span-3"};return(0,a.jsx)("div",{className:(0,t.default)(s.classes.tileButton.tileButtonContainer,x),children:(0,a.jsx)(l.FieldWrapper,{...e,isArrayField:h,children:(0,a.jsx)("div",{className:(0,t.default)(s.classes.tileButton.tileButtonLayout),children:e.options.map(s=>(0,a.jsx)("div",{className:(0,t.default)(v[(0,n.getEnum)(e.fields?.buttonsPerRows)??2],h?"col-span-1":"col-span-2",d.mode.isEditing?"pointer-events-none":""),children:(0,a.jsx)(c.default,{...s,isMultiSelectEnabled:h,groupName:m,moveForwardOnClick:p},`${s.id}-item`)},s.id))})})})});e.s(["Default",0,f])},142180,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140),o=e.i(271645);let c=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,r.useTheme)(i.FormFieldsTheme),{errors:c,touched:u,values:m,handleChange:f}=(0,t.useFormikContext)(),{page:h}=e,p=e.fields?.maxLength.value,x=e.fields?.minLength.value,v=e.fields?.showRemainingCharactersCount.value??!1,g=e.fields?.fieldName.value??"",[b,j]=(0,o.useState)(v&&p?p-m[g]?.length:0);if((0,d.isNullOrWhitespace)(g)&&!h.mode.isEditing)return null;let C=u[g]&&c[g];return(0,s.jsxs)(l.FieldWrapper,{...e,children:[(0,s.jsx)(t.Field,{id:e.rendering.uid,name:g,placeholder:e.fields?.placeholderText?.value,rows:e.fields?.rows?.value,minLength:x,maxLength:p,as:"textarea",onChange:e=>{v&&p&&j(p-e.target.value.length),f(e)},className:(0,a.default)(n.classes.textarea,C?n.classes.errorOutline:"",m[g]?"border-black":"border-gray",h.mode.isEditing?"pointer-events-none":"")}),v&&(0,s.jsx)("div",{className:n.classes.textareaCharCount,children:b===p?`${b} characters allowed`:`${b} characters remaining`})]})});e.s(["Default",0,c])},506863,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(99451),d=e.i(589669),o=e.i(324140);let c=(0,d.withDatasourceCheck)(function(e){let{themeData:d}=(0,r.useTheme)(i.FormFieldsTheme),{errors:c,touched:u,values:m}=(0,t.useFormikContext)(),{page:f}=e,h=f.mode.isEditing?"ShortTextField":e.fields?.fieldName.value;if((0,o.isNullOrWhitespace)(h))return null;let p=u[h]&&c[h];return(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:h,type:(0,n.isRuleIncludedInField)(e,"url")?"url":"text",placeholder:e.fields?.placeholderText?.value||"",minLength:e.fields?.minLength?.value,maxLength:e.fields?.maxLength?.value,className:(0,a.default)(d.classes.input,{[d.classes.errorOutline]:p,"border-black":m[h],"pointer-events-none":f.mode.isEditing})})})});e.s(["Default",0,c])},906501,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140);let o=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,r.useTheme)(i.FormFieldsTheme),{errors:o,touched:c,values:u}=(0,t.useFormikContext)(),{page:m}=e,f=m.mode.isEditing?"RadioButtonField":e.fields?.fieldName.value;if((0,d.isNullOrWhitespace)(f))return null;let h=c[f]&&o[f],p=e.options,x=2==p.length;return(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)("div",{className:(0,a.default)("mt-xs flex w-full",x?" flex-row":"flex-col"),children:p.map((e,l)=>(0,s.jsxs)("div",{className:(0,a.default)(" items-center text-dark-gray hover:text-black ",{"mr-l inline-flex":x,"mb-m flex":!x,"mr-0! mb-0!":l===p.length-1,"pointer-events-none":m.mode.isEditing}),children:[(0,s.jsx)(t.Field,{id:e.id,name:f,type:"radio",value:e.value,className:(0,a.default)("peer h-[20px] w-[20px] cursor-pointer appearance-none border-2 border-dark-gray checked:bg-black! checked:ring-2! hover:border-black focus:bg-gray focus:ring-0 ",n.classes.radio,h?n.classes.errorOutline:"",u[f]?"border-2 border-black text-black ":"")}),(0,s.jsx)("label",{htmlFor:e.id,className:(0,a.default)(" ml-xs w-auto cursor-pointer items-center text-body text-dark-gray hover:text-black peer-checked:text-black",x?" flex ":"flex"),children:e.label})]},e.id))})})});e.s(["Default",0,o])},182525,e=>{"use strict";var s=e.i(843476),a=e.i(848579),t=e.i(343794),l=e.i(812497),i=e.i(661842),r=e.i(857917),n=e.i(382330),d=e.i(589669),o=e.i(324140);let c=(0,d.withDatasourceCheck)(function(e){let{themeData:d}=(0,n.useTheme)(r.FormFieldsTheme),{errors:c,touched:u,values:m}=(0,l.useFormikContext)(),{page:f}=e,h=f.mode.isEditing?"PhoneField":e.fields?.fieldName.value;if((0,o.isNullOrWhitespace)(h))return null;let p=u[h]&&c[h];return(0,s.jsx)(i.FieldWrapper,{...e,children:(0,s.jsx)(l.Field,{id:e.rendering.uid,name:h,children:({field:l})=>(0,s.jsx)(a.default,{...l,id:e.rendering.uid,mask:"(999) 999-9999",maskPlaceholder:"_",name:h,placeholder:e.fields?.placeholderText?.value,type:"tel",className:(0,t.default)(d.classes.input,{[d.classes.errorOutline]:p,"border-black":m[h],"pointer-events-none":f.mode.isEditing}),value:m[h],onChange:e=>{l.onChange(e)}})})})});e.s(["Default",0,c])},521572,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(589669),d=e.i(324140);let o=(0,n.withDatasourceCheck)(function(e){let{themeData:n}=(0,r.useTheme)(i.FormFieldsTheme),{errors:o,touched:c,values:u}=(0,t.useFormikContext)(),{page:m}=e,f=m.mode.isEditing?"NumberField":e.fields?.fieldName.value;if((0,d.isNullOrWhitespace)(f))return null;let h=c[f]&&o[f],p=e.fields?.dependsOn?.fields.fieldName,x=p?.value,v=void 0!=x&&u[x]<1;return(0,s.jsx)(l.FieldWrapper,{...e,showRequiredIndication:v,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:f,type:"number",placeholder:e.fields?.placeholderText?.value||"",min:e.fields?.minLength?.value,max:e.fields?.maxLength?.value,className:(0,a.default)("text-center",n.classes.input,{[n.classes.errorOutline]:h,"border-black":u[f],"pointer-events-none":m.mode.isEditing})})})});e.s(["Default",0,o])},243078,e=>{"use strict";var s=e.i(843476),a=e.i(812497),t=e.i(589669),l=e.i(324140);let i=(0,t.withDatasourceCheck)(function(e){let{page:t}=e;if(t.mode.isEditing)return(0,s.jsx)("div",{className:"col-span-12 p-3 bg-light-gray border border-gray",children:"Hidden Field"});if(void 0==e.fields)return null;let i=e.fields.fieldName.value;return(0,l.isNullOrWhitespace)(i)&&!t.mode.isEditing?null:(0,s.jsx)("div",{className:"relative mb-s","data-te-input-wrapper-init":!0,children:(0,s.jsx)(a.Field,{id:e.rendering.uid,name:i,type:"hidden"})})});e.s(["Default",0,i])},552852,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(661842),i=e.i(857917),r=e.i(382330),n=e.i(158623),d=e.i(384746),o=e.i(99451),c=e.i(159277),u=e.i(589669),m=e.i(324140),f=e.i(271645);let h=(0,u.withDatasourceCheck)(function(e){let{themeData:u}=(0,r.useTheme)(i.FormFieldsTheme),[h,p]=(0,f.useState)(!1),{errors:x,touched:v,values:g}=(0,t.useFormikContext)(),{page:b}=e,j=b.mode.isEditing?"EmailField":e.fields?.fieldName.value;if(void 0==e.fields||(0,m.isNullOrWhitespace)(j))return null;
27let C=e.fields.showConfirmEmail?.value===!0,y=v[j]&&x[j],N={fieldLabel:e.fields.confirmEmailLabel.value},w=e.fields.validations.find(e=>"required"==(0,c.getEnum)(e.fields?.validationType)),_=w?.fields?.errorMessage?.value,k=`confirmEmail_${j}`;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.FieldWrapper,{...e,children:(0,s.jsx)(t.Field,{id:e.rendering.uid,name:j,placeholder:e.fields?.placeholderText?.value,type:"email",className:(0,a.default)(u.classes.input,y?u.classes.errorOutline:"",g[j]?"border-black":"",b.mode.isEditing?"pointer-events-none":"")})}),C&&(0,s.jsxs)("div",{className:(0,a.default)("relative mb-s",(0,n.getWidthClass)(e)),children:[(0,s.jsxs)("label",{className:(0,a.default)(u.classes.label,h&&!y?u.classes.errorTextColor:""),htmlFor:k,children:[e.fields?.confirmEmailLabel?.value," ",(0,o.isRuleIncludedInField)(e,"required")?"*":""]}),(0,s.jsx)(t.Field,{id:k,name:k,placeholder:e.fields?.confirmEmailPlaceholderText?.value,type:"email",className:(0,a.default)(u.classes.input,{[u.classes.errorOutline]:h&&!y,"border-black":g[j]}),validate:s=>w&&v[k]&&!s&&g[j]?(p(!0),_):(p(!1),g[j]&&s!==g[j]&&v[k])?(p(!0),e.fields?.confirmEmailMatchError?.value):void p(!1)}),v[k]&&x[k]&&(0,s.jsx)("span",{className:(0,a.default)(u.classes.errorMessage,u.classes.errorTextColor),children:(0,d.replacePlaceholders)(x[k],N)})]})]})});e.s(["Default",0,h])},336322,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(986085),i=e.i(857917),r=e.i(207857),n=e.i(382330),d=e.i(589669),o=e.i(324140),c=e.i(271645);let u=(0,d.withDatasourceCheck)(function(e){let{themeName:d,themeData:u}=(0,n.useTheme)(i.FormFieldsTheme),{errors:m,touched:f,values:h}=(0,t.useFormikContext)(),{page:p}=e,x=(0,c.useRef)(null),v=p.mode.isEditing?"DropdownField":e.fields?.fieldName.value;if((0,o.isNullOrWhitespace)(v))return null;let g=f[v]&&m[v];return(0,s.jsx)(l.default,{...e,children:(0,s.jsxs)("div",{className:"relative",ref:x,children:[(0,s.jsx)(t.Field,{id:e.rendering.uid,name:v,as:"select",value:h[v],className:(0,a.default)("relative cursor-pointer bg-[white] bg-none pr-ml",u.classes.input,{[u.classes.errorOutline]:g,"border-black":h[v],"pointer-events-none":p.mode.isEditing}),children:e.options.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"aw"===d&&""===e.value,children:e.label},e.value))}),(0,s.jsx)("div",{className:"pointer-events-none absolute right-xs top-1/2 -translate-y-1/2 ",children:(0,s.jsx)(r.default,{icon:"dropdown-arrow"})})]})})});e.s(["Default",0,u])},392089,e=>{"use strict";var s,a=e.i(843476),t=e.i(343794),l=e.i(812497),i=e.i(304816),r=e.i(661842),n=e.i(857917),d=e.i(382330),o=e.i(159277),c=e.i(589669),u=e.i(324140),m=e.i(271645),f=((s=f||{}).Today="today",s.Tomorrow="tomorrow",s.Yesterday="yesterday",s.Custom="custom",s);function h(e){let s=(0,o.getEnum)(e.date),a=null;if(s&&"today"===s)a=new Date;else if(s&&"tomorrow"===s){let e=new Date;e.setDate(e.getDate()+1),a=e}else if(s&&"yesterday"===s){let e=new Date;e.setDate(e.getDate()-1),a=e}else s&&"custom"===s&&(a=new Date(e.dateCustom));return a}let p=(0,c.withDatasourceCheck)(function(e){let{themeData:s}=(0,d.useTheme)(n.FormFieldsTheme),{errors:o,touched:c,values:f,setFieldValue:p}=(0,l.useFormikContext)(),[x,v]=(0,m.useState)((0,i.getInitialValue)(e)),{page:g}=e;if(void 0==e.fields)return null;let b=g.mode.isEditing?"DateField":e.fields?.fieldName.value;if((0,u.isNullOrWhitespace)(b))return null;let j=h({date:e.fields.minDate,dateCustom:e.fields.minDateCustom.value}),C=h({date:e.fields.maxDate,dateCustom:e.fields.maxDateCustom.value}),y=c[b]&&o[b],N=e=>{let s="";if(e.target.value){let a=new Date(e.target.value);isNaN(a.getTime())||(s=a.toISOString())}v(e.target.value),p(b,s)},w=e.fields.placeholderText.value;return(0,a.jsx)(r.FieldWrapper,{...e,children:(0,a.jsx)(l.Field,{name:b,id:e.rendering.uid,children:({field:l})=>(0,a.jsx)("input",{...l,id:e.rendering.uid,type:"date",placeholder:w,min:null!==j?new Date(j).toISOString().split("T")[0]:void 0,max:null!==C?new Date(C).toISOString().split("T")[0]:void 0,value:x||void 0,onChange:N,onKeyDown:e=>{"Tab"!==e.key&&e.preventDefault()},className:(0,t.default)(s.classes.input,{[s.classes.errorOutline]:y,"border-black":f[b],"pointer-events-none":g.mode.isEditing})})})})});e.s(["Default",0,p])},331907,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(612348),i=e.i(661842),r=e.i(857917),n=e.i(487840),d=e.i(382330),o=e.i(589669),c=e.i(324140);let u=(0,o.withDatasourceCheck)(function(e){let{themeData:o}=(0,d.useTheme)(r.FormFieldsTheme),{errors:u,touched:m}=(0,t.useFormikContext)(),{isFormInteracted:f}=(0,n.useGenericFormBuilderContext)(),{page:h}=e;if(void 0==e.fields)return null;let p=h.mode.isEditing?"ConsentCheckboxField":e.fields?.fieldName.value;if((0,c.isNullOrWhitespace)(p))return null;let x=m[p]&&u[p];return e.fields.hideFieldOnLoad.value&&!f&&Object.keys(m)?.length<=0?null:(0,s.jsx)(i.FieldWrapper,{...e,children:(0,s.jsxs)("div",{className:"flex w-full gap-xxs",children:[(0,s.jsx)(t.Field,{className:(0,a.default)(o.classes.checkbox.input,x?o.classes.checkbox.invalidInput:"",h.mode.isEditing?"pointer-events-none":""),type:"checkbox",id:e.rendering.uid,name:p}),(0,s.jsxs)("svg",{role:"img",width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:o.classes.checkbox.customTickIcon,children:[(0,s.jsx)("title",{children:"checkbox"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M7.50013 13.5454L4.02513 10.0704L2.8418 11.2454L7.50013 15.9038L17.5001 5.90376L16.3251 4.72876L7.50013 13.5454Z",fill:"currentColor"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"currentColor",transform:"translate(0 0.0703125)"})})})]}),(0,s.jsx)("label",{htmlFor:e.rendering.uid,children:(0,s.jsx)(l.BodyCopy,{refer:"",fields:{body:e.fields.consentText},classes:o.classes.consentText})})]})})});e.s(["Default",0,u])},914293,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(142709),i=e.i(661842),r=e.i(382330),n=e.i(159277),d=e.i(589669),o=e.i(324140);let c=(0,d.withDatasourceCheck)(function(e){let{themeData:d}=(0,r.useTheme)(l.FormFieldsTheme),{errors:c,touched:u,values:m}=(0,t.useFormikContext)(),{page:f}=e;if(void 0==e.fields)return null;let h=f.mode.isEditing?"CheckboxGroupField":e.fields?.fieldName.value;if((0,o.isNullOrWhitespace)(h))return null;let p=u[h]&&c[h],x=e.options,v={1:"col-span-12 md:col-span-12",2:"col-span-12 md:col-span-6",3:"col-span-12 md:col-span-4",4:"col-span-12 md:col-span-3"},g=(0,n.getEnum)(e.fields.checkboxesPerRows)||1;return(0,s.jsx)(i.FieldWrapper,{...e,isArrayField:!0,children:(0,s.jsx)("div",{className:(0,a.default)("mt-xs grid grid-cols-12"),children:x.map((e,l)=>(0,s.jsxs)("div",{className:(0,a.default)(v[g],"mb-s flex items-center text-dark-gray hover:text-black",l===x?.length-1?"mr-0!":"",f.mode.isEditing?"pointer-events-none":""),children:[(0,s.jsx)(t.Field,{id:e.id,name:h,type:"checkbox",value:e.value,className:(0,a.default)("peer h-[20px] w-[20px] cursor-pointer appearance-none border border-dark-gray checked:bg-black hover:border-black hover:bg-white checked:hover:bg-black focus:bg-gray focus:ring-0 checked:focus:bg-black",d.classes.checkbox,p?d.classes.errorOutline:"",m[h]?"border-black text-black":"")}
27),(0,s.jsx)("label",{htmlFor:e.id,className:(0,a.default)(" ml-xs flex w-auto cursor-pointer items-center text-body text-dark-gray hover:text-black peer-checked:text-black"),children:e.label})]},e.id))})})});e.s(["Default",0,c])},227554,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(661842),l=e.i(159277),i=e.i(589669),r=e.i(324140),n=e.i(586600),d=e.i(773493);let o=(0,i.withDatasourceCheck)(function(e){let{page:i}=e;if(void 0==e.fields)return null;let o=i.mode.isEditing?"ButtonCardField":e.fields?.fieldName.value;if((0,r.isNullOrWhitespace)(o))return null;let c=(0,l.getEnum)(e.fields.selection)===d.SelectionTypes.Multiple;return(0,s.jsx)(t.FieldWrapper,{...e,isArrayField:c,children:(0,s.jsx)("div",{className:"grid grid-cols-2 gap-s md:grid-cols-12",children:e.options.map(e=>(0,s.jsx)("div",{className:(0,a.default)("col-span-2 md:col-span-4",i.mode.isEditing?"pointer-events-none":""),children:(0,s.jsx)(n.ButtonCardFieldItem,{...e,isMultiSelectEnabled:c,groupName:o},`${e.id}-card`)},e.id))})})});e.s(["Default",0,o])},910692,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(857917),i=e.i(382330);let r=(0,e.i(589669).withDatasourceCheck)(function(e){let{themeData:r}=(0,i.useTheme)(l.FormFieldsTheme),{errors:n,touched:d,values:o}=(0,t.useFormikContext)(),{page:c}=e;if(c.mode.isEditing)return(0,s.jsx)("div",{className:"col-span-12 p-3 bg-light-gray border border-gray",children:"Bot Checker Field"});if(void 0==e.fields)return null;let u=d[e.fields.fieldName.value]&&n[e.fields.fieldName.value];return(0,s.jsxs)("div",{"aria-hidden":!0,className:"absolute col-span-12 m-0 h-0 overflow-hidden",children:[(0,s.jsx)("label",{htmlFor:e.rendering.uid,children:"Do not Fill this field"}),(0,s.jsx)(t.Field,{id:e.rendering.uid,name:e.fields?.fieldName.value,placeholder:"Do not fill this field",autoComplete:"off",tabIndex:"-1",maxLength:"50",className:(0,a.default)(r.classes.input,u?r.classes.errorOutline:"",o[e?.fields?.fieldName?.value]?"border-black":"")})]})});e.s(["Default",0,r])},815719,e=>{"use strict";var s=e.i(843476),a=e.i(734382),t=e.i(641527),l=e.i(343794),i=e.i(812497),r=e.i(661842),n=e.i(857917);e.i(318221);var d=e.i(173164),o=e.i(274777),c=e.i(382330),u=e.i(158623),m=e.i(589669),f=e.i(324140),h=e.i(271645),p=e.i(27618);function x(e,s){let a=s.fields?.cityLabel.value??"City",t=s.fields?.stateLabel.value??"State",l=s.fields?.zipCodeLabel.value??"Zip Code",i=s.fields?.cityPlaceholderText.value??"City",r=s.fields?.zipCodePlaceholderText.value??"Zip Code";return e===o.FormsConstants.Country.USA||e===o.FormsConstants.Country.Mexico?(a=s.fields?.cityUSLabel.value??"City",t=s.fields?.stateUSLabel.value??"State",l=s.fields?.zipCodeUSLabel.value??"Zip Code",i=s.fields?.cityUSPlaceholderText.value??"City",r=s.fields?.zipCodeUSPlaceholderText.value??"Zip Code"):e===o.FormsConstants.Country.Canada?(a=s.fields?.cityCALabel.value??"Municipality",t=s.fields?.stateCALabel.value??"Province",l=s.fields?.zipCodeCALabel.value??"Postal Code",i=s.fields?.cityCAPlaceholderText.value??"Municipality",r=s.fields?.zipCodeCAPlaceholderText.value??"Postal Code"):e===o.FormsConstants.Country.Other&&(a=s.fields?.cityOtherLabel.value??"City",t=s.fields?.stateOtherLabel.value??"Location",l=s.fields?.zipCodeOtherLabel.value??"Zip Code",i=s.fields?.cityOtherPlaceholderText.value??"City",r=s.fields?.zipCodeOtherPlaceholderText.value??"Zip Code"),{cityLabel:a,stateLabel:t,zipCodeLabel:l,cityPlaceholder:i,zipCodePlaceholder:r}}let v=["places"],g=(0,m.withDatasourceCheck)(function(e){let m,g,{page:b}=e,{themeName:j,themeData:C}=(0,c.useTheme)(n.FormFieldsTheme),{errors:y,touched:N,values:w,setFieldValue:_}=(0,i.useFormikContext)(),k=(0,h.useRef)(null),T="",S=[];if(void 0==e.fields||(0,f.isNullOrWhitespace)(e.fields.countryFieldName.value)){let s=e.countryAndStateOptions.find(e=>"USA"===e.value);S=s?.states||[]}else if(T=w[e.fields.countryFieldName.value],void 0!=(T??=e.countryAndStateOptions.length>0?e.countryAndStateOptions[0].value:"")){let s=e.countryAndStateOptions.find(e=>e.value===T);S=s?.states||[]}let{cityLabel:F,stateLabel:I,zipCodeLabel:D,cityPlaceholder:W,zipCodePlaceholder:L}=x(T,e),[E,B]=(0,h.useState)({cityLabel:F,stateLabel:I,zipCodeLabel:D,cityPlaceholder:W,zipCodePlaceholder:L,stateOptions:S,stateOrLocation:"state",lastCountryValue:""});(0,h.useEffect)(()=>
27{if(void 0==e.fields||(0,f.isNullOrWhitespace)(e.fields?.countryFieldName.value)||w[e.fields.countryFieldName.value]===E.lastCountryValue)return;let s=w[e.fields.countryFieldName.value],{cityLabel:a,stateLabel:t,zipCodeLabel:l,cityPlaceholder:i,zipCodePlaceholder:r}=x(s,e),n=E.stateOrLocation,d=e.countryAndStateOptions.find(e=>e.value===s)?.states??E.stateOptions;s===o.FormsConstants.Country.USA||s===o.FormsConstants.Country.Mexico||s===o.FormsConstants.Country.Canada?(n="state",_(e.fields.stateFieldName.value,d[0].value)):s===o.FormsConstants.Country.Other&&(n="location",_(e.fields.stateFieldName.value,"")),B(e=>({...e,lastCountryValue:s,cityLabel:a,stateLabel:t,zipCodeLabel:l,cityPlaceholder:i,zipCodePlaceholder:r,stateOrLocation:n,stateOptions:d}))},[w,E,e,_]);let P=(0,h.useRef)(null),{isLoaded:A}=(0,a.useJsApiLoader)({googleMapsApiKey:t.default.google.apiKey,libraries:v}),R={address1:e.fields?.address1FieldName!=void 0&&N[e.fields.address1FieldName.value]&&y[e.fields.address1FieldName.value],address2:e.fields?.address2FieldName!=void 0&&N[e.fields.address2FieldName.value]&&y[e.fields.address2FieldName.value],city:e.fields?.cityFieldName!=void 0&&N[e.fields.cityFieldName.value]&&y[e.fields.cityFieldName.value],state:e.fields?.stateFieldName!=void 0&&N[e.fields.stateFieldName.value]&&y[e.fields.stateFieldName.value],zipCode:e.fields?.zipCodeFieldName!=void 0&&N[e.fields.zipCodeFieldName.value]&&y[e.fields.zipCodeFieldName.value],country:e.fields?.countryFieldName!=void 0&&N[e.fields.countryFieldName.value]&&y[e.fields.countryFieldName.value]};return A?(0,s.jsxs)(s.Fragment,{children:[e.fields?.address1FieldName&&(0,s.jsx)("div",{className:(0,l.default)("relative mb-s",(0,u.getWidthClass)(e.fields.address1Width)),children:(0,s.jsx)(a.Autocomplete,{onLoad:e=>P.current=e,onPlaceChanged:(0,p.buildHandlePlaceChanged)({address1:e.fields.address1FieldName.value,city:e.fields.cityFieldName?.value,state:e.fields.stateFieldName?.value,zipCode:e.fields.zipCodeFieldName?.value,country:e.fields.countryFieldName?.value},P,_,B),restrictions:{country:["us","ca","mx"]},children:(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.address1FieldName,label:e.fields.address1Label,subLabel:e.fields.address1SubLabel,minLength:e.fields.address1MinLength,maxLength:e.fields.address1MaxLength,validations:e.fields.address1Validations},children:(0,s.jsx)(i.Field,{id:e.fields.address1FieldId.value,name:e.fields.address1FieldName.value,type:"text",placeholder:e.fields.address1PlaceholderText.value,minLength:e.fields.address1MinLength.value,maxLength:e.fields.address1MaxLength.value,className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.address1,"border-black":w[e.fields.address1FieldName.value],"pointer-events-none":b.mode.isEditing})})})})}),e.fields?.address2FieldName&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.address2FieldName,label:e.fields.address2Label,subLabel:e.fields.address2SubLabel,minLength:e.fields.address2MinLength,maxLength:e.fields.address2MaxLength,width:e.fields.address2Width,validations:e.fields.address2Validations},children:(0,s.jsx)(i.Field,{id:e.fields.address2FieldId.value,name:e.fields.address2FieldName.value,type:"text",placeholder:e.fields.address2PlaceholderText.value,minLength:e.fields.address2MinLength.value,maxLength:e.fields.address2MaxLength.value,className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.address2,"border-black":w[e.fields.address2FieldName.value],"pointer-events-none":b.mode.isEditing})})}),e.fields?.countryFieldName&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.countryFieldName,label:e.fields.countryLabel,subLabel:e.fields.countrySubLabel,width:e.fields.countryWidth,validations:e.fields.countryValidations},children:(0,s.jsx)("div",{className:"relative",ref:k,children:(0,s.jsxs)(i.Field,{id:e.fields.countryFieldId.value,name:e.fields.countryFieldName.value,as:"select",value:w[e.fields.countryFieldName.value],className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.country,"border-black":w[e.fields.countryFieldName.value],"pointer-events-none":b.mode.isEditing}),children:[e.countryAndStateOptions.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"aw"===j&&""===e.value,children:e.title},e.id)),!e.countryAndStateOptions.some((m=w[e.fields.countryFieldName.value],e=>e.value===m))&&(0,s.jsx)("option",{value:w[e.fields.countryFieldName.value],children:w[e.fields.countryFieldName.value]})]})})}),e.fields?.cityFieldName&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.cityFieldName,label:{value:E.cityLabel},subLabel:e.fields.citySubLabel,minLength:e.fields.cityMinLength,maxLength:e.fields.cityMaxLength,width:e.fields.cityWidth,validations:e.fields.cityValidations}
27,children:(0,s.jsx)(i.Field,{id:e.fields.cityFieldId.value,name:e.fields.cityFieldName.value,type:"text",placeholder:E.cityPlaceholder,minLength:e.fields.cityMinLength.value,maxLength:e.fields.cityMaxLength.value,className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.city,"border-black":w[e.fields.cityFieldName.value],"pointer-events-none":b.mode.isEditing})})}),e.fields?.stateFieldName&&"state"===E.stateOrLocation&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.stateFieldName,label:{value:E.stateLabel},subLabel:e.fields.stateSubLabel,width:e.fields.stateWidth,validations:e.fields.stateValidations},children:(0,s.jsxs)(i.Field,{id:e.fields?.stateFieldId.value,name:e.fields.stateFieldName.value,as:"select",value:w[e.fields.stateFieldName.value],className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.state,"border-black":w[e.fields.stateFieldName.value],"pointer-events-none":b.mode.isEditing}),children:[E.stateOptions.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"aw"===j&&""===e.value,children:e.title},e.id)),!E.stateOptions.some((g=w[e.fields.stateFieldName.value],e=>e.value===g))&&(0,s.jsx)("option",{value:w[e.fields.stateFieldName.value],children:w[e.fields.stateFieldName.value]})]})}),e.fields?.stateFieldName&&"location"===E.stateOrLocation&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.stateFieldName,label:{value:E.stateLabel},subLabel:e.fields.stateSubLabel,width:e.fields.stateWidth,validations:[]},children:(0,s.jsx)(i.Field,{id:e.fields?.stateFieldId.value,name:e.fields.stateFieldName.value,type:"text",placeholder:e.fields.stateOtherPlaceholderText.value,maxLength:"25",className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.state,"border-black":w[e.fields.stateFieldName.value],"pointer-events-none":b.mode.isEditing})})}),e.fields?.zipCodeFieldName&&(0,s.jsx)(r.FieldWrapper,{fields:{fieldName:e.fields.zipCodeFieldName,label:{value:E.zipCodeLabel},subLabel:e.fields.zipCodeSubLabel,width:e.fields.zipCodeWidth,validations:"location"===E.stateOrLocation?[]:e.fields.zipCodeValidations},children:(0,s.jsx)(i.Field,{id:e.fields.zipCodeFieldId.value,name:e.fields.zipCodeFieldName.value,type:"text",placeholder:E.zipCodePlaceholder,className:(0,l.default)(C.classes.input,{[C.classes.errorOutline]:R.zipCode,"border-black":w[e.fields.zipCodeFieldName.value],"pointer-events-none":b.mode.isEditing})})})]}):(0,s.jsx)("div",{className:"relative col-span-12 flex min-h-[375px] items-center justify-center md:min-h-[150px]",children:(0,s.jsx)(d.Spinner,{size:48})})});e.s(["Default",0,g])},324266,e=>{"use strict";e.i(523472);var s=e.i(469306),a=e.i(274777),t=e.i(771862),l=e.i(804101),i=e.i(702219),r=e.i(509816),n=e.i(271645);e.s(["default",0,function(e){let d=e.fields?.data?.Datasource,o=d?.eventType?.value,c=d?.abandonEventType?.value,u=Number(d?.cdpInactivityMinutes?.value??15),m=60*u*1e3;return(0,n.useEffect)(()=>{if(!o)return void console.warn("[CDP] No event type specified in datasource, skipping Personalization Start Event");let e=()=>(d?.children?.results??[]).map(e=>({id:e.id,key:e.key?.value,constantValue:e.constantValue?.value,constantText:e.constantText?.value})),n=()=>(0,r.createAbandonPayload)({abandonEventType:c,attributes:e()}),f=(e=!1)=>{let l=n();if(!l)return;let i={...l,ext:{...l?.ext,...e&&{elapsedMinutes:u}}};(0,s.event)(i).then(()=>{console.log("[CDP] Form Abandon Event:",i),e&&(sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormStep),sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormTimeout),sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormCompleted),sessionStorage.removeItem(t.StringConstants.AW.GFBForm.ActiveJourneyKey),sessionStorage.removeItem(t.StringConstants.AW.GFBForm.AbandonPayloadKey))}).catch(e=>console.error("[CDP] Form Abandon Error:",e))},h=(0,i.buildPersonalizePayload)({eventType:o,attributes:e()});if(!h)return;(0,s.event)(h).then(()=>{console.log("[CDP] Personalize Form Start Event Payload:",h),sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormStep),sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormTimeout),sessionStorage.removeItem(a.FormsConstants.AW.Form.CCPFormCompleted),sessionStorage.setItem(a.FormsConstants.AW.Form.CCPFormTimeout,String(m));let e=n();(0,r.setAbandonSession)({activeJourneyKey:t.StringConstants.AW.GFBForm.ActiveJourneyKey,journeyName:t.StringConstants.AW.GFBForm.JourneyName,abandonEventType:c,abandonPayloadKey:t.StringConstants.AW.GFBForm.AbandonPayloadKey,payload:e?.ext}),(0,l.startTimer)(()=>{f(!0)},m)}
27).catch(e=>console.error("[CDP] Personalize Form Start Event Error:",e));let p=e=>{f(e.detail?.isInactivity===!0)},x=()=>{sessionStorage.getItem(a.FormsConstants.AW.Form.CCPFormStep)&&sessionStorage.setItem("formReload","true"),"true"!==sessionStorage.getItem(a.FormsConstants.AW.Form.CCPFormCompleted)&&f(!1)};return globalThis.addEventListener("aw_ccp_abandon",p),window.addEventListener("beforeunload",x),()=>{globalThis.removeEventListener("aw_ccp_abandon",p),window.removeEventListener("beforeunload",x)}},[o,d,m,u,c]),null}])},636108,e=>{"use strict";var s=e.i(497988),a=e.i(324140),t=e.i(271645),l=e.i(727778);e.s(["default",0,function(e){let i=e.fields?.data?.Datasource,r=i?.gtmEventName?.value;return(0,t.useEffect)(()=>{if(!r)return void console.warn("[GTM] No event name specified");let e={event:r,...(i?.children?.results??[]).reduce((e,t)=>{let l=t.key?.value;if((0,a.isNullOrWhitespace)(l))return e;let i=t.constantValue?.value?(0,s.resolveAttributeValue)(t.constantValue.value,l):t.constantText?.value;return void 0!==i&&(e[l]=i),e},{})};l.default.dataLayer({dataLayer:e}),console.log("[GTM] Initial Load Event:",e)},[r,i,e.formValues]),null}])},691395,e=>{"use strict";var s=e.i(843476),a=e.i(3903),t=e.i(812497),l=e.i(699034);e.i(318221);var i=e.i(173164),r=e.i(480562),n=e.i(299419),d=e.i(159277),o=e.i(589669),c=e.i(271645);let u=(0,o.withDatasourceCheck)(function(e){let{values:o}=(0,t.useFormikContext)(),u=(0,c.useRef)(null),[m]=(0,c.useState)(!0),{setIsGenericModalOpen:f}=(0,n.useModalIdContext)(),h=(0,c.useRef)(null);function p(){if(!u.current)return;let e=Array.from(u.current.querySelectorAll("*")).find(e=>e.scrollTop>0||e.scrollHeight>e.clientHeight);e?.scrollTo(0,0)}if((0,c.useEffect)(()=>{if("osScript"in window){let e;e={...o},Object.entries((0,a.getCookies)()).forEach(([s,a])=>{s.toLowerCase().startsWith("rba")&&(e[s]=a)}),new URLSearchParams(window.location.search).forEach((s,a)=>{a.toLowerCase().startsWith("rba")&&(e[a]=s)}),h.current=new OnlineSchedulingExperience("os-root",{leadData:e,contentVersion:v,events:{onReady:g,onPageChange:p}}),f(!0)}},[]),!e.fields)return(0,s.jsx)(s.Fragment,{});let x=(0,d.getEnum)(e.fields.modalSize)??"extra-large",v=(0,d.getEnum)(e.fields.contentVersion);function g(){document.getElementById("os-root")?.classList.remove("invisible");let e=document.getElementsByClassName("animate-spin");e.length>0&&e[0].classList.add("invisible")}return(0,s.jsx)("span",{ref:u,children:m&&(0,s.jsxs)(l.default,{size:x,isModalOpen:m,handleClose:function(){h.current&&h.current.sendMessage({type:r.OnlineSchedulingConstants.events.closeModal}),u.current?.classList.add("invisible"),document.body.classList.remove("overflow-y-hidden!"),f(!1)},closeIconWrapperClasses:"absolute flex h-[40px] w-full justify-end",children:[(0,s.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transform",children:(0,s.jsx)(i.Spinner,{size:48})}),(0,s.jsx)("div",{id:"os-root",className:"invisible"})]})})});e.s(["Default",0,u])},182717,e=>{"use strict";var s=e.i(843476),a=e.i(612348),t=e.i(788610),l=e.i(183665),i=e.i(699034),r=e.i(207857),n=e.i(224043),d=e.i(436591),o=e.i(159277),c=e.i(589669),u=e.i(271645);let m=(0,c.withDatasourceCheck)(function(e){let[c,m]=(0,u.useState)(!0);if(void 0==(e={...e,...function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{...(0,n.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,d.mapSearchResults)(s.data.item.children,e=>({...e.id&&{id:e.id},fields:{...(0,n.mapItemFieldResultsToObject)(e.fields)}}))}}}(e.rendering)}).fields)return null;let f=(0,o.getEnum)(e.fields.fontColor)??"orange";return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.default,{size:"fluid",isModalOpen:c,handleClose:()=>{m(!1)},modalLabel:"Request a Quote Modal",showCloseButton:!0,customContentWrapperclass:"!p-0",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center px-m py-s md:px-m md:py-s bg-white",children:[(0,s.jsx)("div",{className:"mb-m flex h-16 w-16 items-center justify-center rounded-full bg-primary",children:(0,s.jsx)(r.default,{icon:"checktick",className:"text-white text-xxl",size:40})}),(0,s.jsx)(l.default,{classes:`font-sans text-sm-m md:text-m font-extrabold text-bold mb-s text-center ${{black:"text-black",white:"text-white",orange:"text-primary"}[f]}`,useTag:"h1",...e.fields.children[0]}),(0,s.jsx)(a.default,{...e.fields.children[1],classes:"text-center font-serif text-body font-regular text-dark-gray max-w-[500px]"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center px-m py-l md:px-m md:py-l bg-[#E8E6E2]",children:[(0,s.jsx)(l.default,{classes:"font-sans text-sm-s md:text-s font-extrabold mb-s text-center text-black",useTag:"h1",...e}),(0,s.jsx)(a.default,{classes:"text-center font-serif text-body font-regular text-dark-gray mb-m max-w-[500px]",...e}),(0,s.jsx)(t.default,{field:e.fields.cta1Link,classes:"",ariaLabel:{value:"Request A Quote"}})]})]})})})});e.s(["Default",0,m])},104045,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(857917),l=e.i(183665),i=e.i(382330),r=e.i(159277);let n=(0,e.i(589669).withDatasourceCheck)(function(e){let{themeData:n}=(0,i.useTheme)(t.FormFieldsTheme);if(void 0==e.fields)return null;let d=(0,r.getEnum)(e.fields.alignment);return(0,s.jsx)("div",{className:(0,a.default)((e?.fields?.removeHorizontalLine?.value?"mb-0!":n.classes.headingRuleLine)??"","relative col-span-12 mb-s",{"mx-auto w-fit":"center"===d}),children:(0,s.jsx)(l.default,{classes:(0,a.default)({left:"text-left",center:"text-center",right:"text-right"}[d||"left"],n.classes.headline),...e})})});e.s(["Default",0,n])},817871,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(158623);let l=(0,e.i(589669).withDatasourceCheck)(function(e){return(0,s.jsx)("div",{className:`relative mb-s hidden md:block ${(0,a.default)((0,t.getWidthClass)(e))}`})});e.s(["Default",0,l])},443125,e=>{"use strict";var s=e.i(843476),a=e.i(343794);e.i(76464);var t=e.i(281942),l=e.i(857917),i=e.i(382330),r=e.i(159277),n=e.i(293351);let d=(0,e.i(589669).withDatasourceCheck)(function(e){let{themeData:d}=(0,i.useTheme)(l.FormFieldsTheme),o=(0,n.getHeadingLevel)("h3",e?.fields?.eyebrowLevel);return void 0==e.fields?null:(0,s.jsx)("div",{className:"relative col-span-12",children:(0,s.jsx)(t.Eyebrow,{classes:(0,a.default)({left:"text-left",center:"text-center",right:"text-right"}[(0,r.getEnum)(e?.fields?.alignment)??"left"],d.classes.eyebrow),useTag:o,...e})})});e.s(["Default",0,d])},676379,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(812497),l=e.i(210376),i=e.i(857917),r=e.i(487840),n=e.i(382330),d=e.i(159277);let o=(0,e.i(589669).withDatasourceCheck)(function(e){let{themeData:o}=(0,n.useTheme)(i.FormFieldsTheme),{touched:c}=(0,t.useFormikContext)(),{isFormInteracted:u}=(0,r.useGenericFormBuilderContext)();return void 0==e.fields||e.fields.hideFieldOnLoad.value&&!u&&Object.keys(c)?.length<=0?null:(0,s.jsx)(l.default,{...e,disclaimerLayoutClasses:"relative col-span-12",disclaimerClasses:(0,a.default)({left:"text-left",center:"text-center",right:"text-right"}[(0,d.getEnum)(e?.fields?.alignment)||"left"],o.classes.disclaimerText)})});e.s(["Default",0,o])},871339,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(612348),l=e.i(857917),i=e.i(382330),r=e.i(159277);let n=(0,e.i(589669).withDatasourceCheck)(function(e){let{themeData:n}=(0,i.useTheme)(l.FormFieldsTheme);return void 0==e.fields?null:(0,s.jsx)("div",{className:"relative col-span-12",children:(0,s.jsx)(t.BodyCopy,{classes:(0,a.default)({left:"text-left",center:"text-center",right:"text-right"}[(0,r.getEnum)(e?.fields?.alignment)||"left"],n.classes.description),fields:{body:e.fields.body}})})});e.s(["Default",0,n])},908832,e=>{"use strict";let s=e=>"aw"===e?{list:"flex flex-col gap-l py-xl list-none",item:"flex items-start gap-s max-w-[360px] mx-auto",iconWrapper:"flex h-[80px] w-[80px] shrink-0 items-center justify-center rounded-full",text:"font-sans text-sm leading-relaxed text-black",link:"text-brand-primary underline"}:{list:"flex flex-col gap-l py-xl list-none",item:"flex items-start gap-s max-w-[360px] mx-auto",iconWrapper:"flex h-[80px] w-[80px] shrink-0 items-center justify-center rounded-full",text:"font-sans text-sm leading-relaxed text-black",link:"text-accent underline"};
27e.s(["getLeftBarTheme",0,()=>({aw:{classes:s("aw")},rba:{classes:s("rba")}})])},419181,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(454707),l=e.i(535062),i=e.i(183665);e.i(298632);var r=e.i(52054);e.i(831837);var n=e.i(37570),d=e.i(382330),o=e.i(350708),c=e.i(159277),u=e.i(522016),m=e.i(271645),f=e.i(908832);e.s(["LeftBar",0,function(e){let{viewModel:h}=(0,o.useRenoworks)(),{designToolRouter:p}=(0,m.useContext)(l.DesignToolContext),{themeData:x}=(0,d.useTheme)((0,t.SummaryAttributeTheme)()),v=x.classes,g=p?.routeData?.product?.series?.value,b=p?.routeData?.product?.category?.value,j=`${g??""} ${b??""}`.trim(),C=h?.interiorImage,y=h?.exteriorImage,N=h?.selectedOptions,w=j.length>0||C||y||N?.length>0,_=(0,f.getLeftBarTheme)().aw.classes,k=(0,c.getEnum)(e?.fields?.width),T=e?.fields?.headlineText?.value??"",S=(0,c.getEnum)(e?.fields.headlineLevel),F=e?.fields?.body?.value??"",I=e?.fields?.edgeToEdgeContainer?.value===!0?"full":"lg",D=e?.fields?.primaryImage?.value?.src;return w?(0,s.jsx)("div",{className:"py-s",children:(0,s.jsx)("div",{className:"body-copy -mt-xxs mb-s text-body font-regular text-dark-gray",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,a.default)(F&&"py-s","full"===I&&T&&"px-m","half"===k&&T&&"px-m","one-third"===k&&T&&"px-m"),children:[(0,s.jsx)(i.default,{defaultTag:S,...e}),(0,s.jsx)(n.RichTextWrapper,{classes:"-mt-xxs mb-s text-body font-regular text-dark-gray",field:e?.fields?.body})]}),D&&(0,s.jsx)("div",{className:"h-full",children:(0,s.jsx)(r.MediaPrimary,{...e,imageLayout:"responsive",additionalDesktopClasses:"w-full h-full",additionalMobileClasses:"max-ml:h-[376px]"})}),(0,s.jsxs)("div",{className:v.designSummary.content,children:[(0,s.jsx)("h3",{className:v.designSummary.header,children:j}),(C||y)&&(0,s.jsxs)("div",{className:v.designSummary.imagesOuterContainer,children:[C&&(0,s.jsxs)("div",{className:v.designSummary.imageWrapper,children:[(0,s.jsx)("img",{className:v.designSummary.image,src:C.src,alt:C.alt,loading:"lazy"}),(0,s.jsx)("p",{className:v.designSummary.imageDescription,children:"Interior"})]}),y&&(0,s.jsxs)("div",{className:v.designSummary.imageWrapper,children:[(0,s.jsx)("img",{className:v.designSummary.image,src:y.src,alt:y.alt,loading:"lazy"}),(0,s.jsx)("p",{className:v.designSummary.imageDescription,children:"Exterior"})]})]}),N.length>0&&(0,s.jsx)("div",{className:v?.designSummary?.selections?.container,children:(0,s.jsx)("table",{className:v?.designSummary?.selections?.table,children:(0,s.jsx)("tbody",{children:N.map(e=>(0,s.jsxs)("tr",{className:v?.designSummary?.selections?.tr,children:[(0,s.jsx)("td",{className:v?.designSummary?.selections?.tdAsset,children:e.title}),(0,s.jsx)("td",{className:v?.designSummary?.selections?.tdAssetValue,children:e.value})]},e.title))})})})]})]})})}):(0,s.jsxs)("ul",{className:_.list,children:[(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Energy Efficient"}),"- Andersen Corporation was awarded the U.S.Environmental Protection Agency's"," ",(0,s.jsx)(u.default,{href:"/ideas-and-inspiration/why-andersen/energy-efficiency/energy-star/",className:_.link,children:"ENERGY STAR"})," ","Partner of the YearâSustained Excellence Award in 2023."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Environmentally Friendly"}),"- Green Builder Media Readers' Choice 2020, Awarded Most Environmentally Friendly 8 of 9 Years"]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Peace of Mind"})," - Our longstanding practice of making products that perform year after year allows us to offer some of the best warranties in the industry."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"We Design with Your Needs In Mind"}),"- With a variety of collections and customization options, we've got reliable products that create the style you're trying to achieve."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"No-Obligation"})," - A local Andersen Windows representative will provide you with a no-obligation quote."]})})]})}])},324221,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(454707),l=e.i(535062),i=e.i(909224),r=e.i(183665);e.i(298632);var n=e.i(52054);e.i(831837);var d=e.i(37570),o=e.i(382330),c=e.i(159277),u=e.i(522016),m=e.i(271645),f=e.i(908832);e.s(["LeftBar",0,function(e){let{viewModel:h}=(0,i.useRenoworks)(),{designToolRouter:p}=(0,m.useContext)(l.DesignToolContext),{themeData:x}=(0,o.useTheme)((0,t.SummaryAttributeTheme)()),v=x.classes;if(!e.fields)return(0,s.jsx)(s.Fragment,{});let g=p?.routeData?.product?.series?.value,b=p?.routeData?.product?.category?.value,j=`${g??""} ${b??""}`.trim(),C=h?.interiorImage,y=h?.exteriorImage,N=h?.selectedOptions,w=j.length>0||C||y||N?.length>0,_=(0,f.getLeftBarTheme)().aw.classes,k=(0,c.getEnum)(e?.fields?.width),T=e?.fields?.headlineText?.value??"",S=(0,c.getEnum)(e?.fields.headlineLevel),F=e?.fields?.body?.value??"",I=e?.fields?.edgeToEdgeContainer?.value===!0?"full":"lg",D=e?.fields?.primaryImage?.value?.src;return w?(0,s.jsx)("div",{className:"py-s",children:(0,s.jsx)("div",{className:"body-copy -mt-xxs mb-s text-body font-regular text-dark-gray",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,a.default)(F&&"py-s","full"===I&&T&&"px-m","half"===k&&T&&"px-m","one-third"===k&&T&&"px-m"),children:[(0,s.jsx)(r.default,{defaultTag:S,...e}),(0,s.jsx)(d.RichTextWrapper,{classes:"-mt-xxs mb-s text-body font-regular text-dark-gray",field:e?.fields?.body})]}),D&&(0,s.jsx)("div",{className:"h-full",children:(0,s.jsx)(n.MediaPrimary,{...e,imageLayout:"responsive",additionalDesktopClasses:"w-full h-full",additionalMobileClasses:"max-ml:h-[376px]"})}),(0,s.jsxs)("div",{className:v.designSummary.content,children:[(0,s.jsx)("h3",{className:v.designSummary.header,children:j}),(C||y)&&(0,s.jsxs)("div",{className:v.designSummary.imagesOuterContainer,children:[C&&
27(0,s.jsxs)("div",{className:v.designSummary.imageWrapper,children:[(0,s.jsx)("img",{className:v.designSummary.image,src:C.src,alt:C.alt,loading:"lazy"}),(0,s.jsx)("p",{className:v.designSummary.imageDescription,children:"Interior"})]}),y&&(0,s.jsxs)("div",{className:v.designSummary.imageWrapper,children:[(0,s.jsx)("img",{className:v.designSummary.image,src:y.src,alt:y.alt,loading:"lazy"}),(0,s.jsx)("p",{className:v.designSummary.imageDescription,children:"Exterior"})]})]}),N.length>0&&(0,s.jsx)("div",{className:v?.designSummary?.selections?.container,children:(0,s.jsx)("table",{className:v?.designSummary?.selections?.table,children:(0,s.jsx)("tbody",{children:N.map(e=>(0,s.jsxs)("tr",{className:v?.designSummary?.selections?.tr,children:[(0,s.jsx)("td",{className:v?.designSummary?.selections?.tdAsset,children:e.title}),(0,s.jsx)("td",{className:v?.designSummary?.selections?.tdAssetValue,children:e.value})]},e.title))})})})]})]})})}):(0,s.jsxs)("ul",{className:_.list,children:[(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Energy Efficient"}),"- Andersen Corporation was awarded the U.S.Environmental Protection Agency's"," ",(0,s.jsx)(u.default,{href:"/ideas-and-inspiration/why-andersen/energy-efficiency/energy-star/",className:_.link,children:"ENERGY STAR"})," ","Partner of the YearâSustained Excellence Award in 2023."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Environmentally Friendly"}),"- Green Builder Media Readers' Choice 2020, Awarded Most Environmentally Friendly 8 of 9 Years"]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"Peace of Mind"})," - Our longstanding practice of making products that perform year after year allows us to offer some of the best warranties in the industry."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"We Design with Your Needs In Mind"}),"- With a variety of collections and customization options, we've got reliable products that create the style you're trying to achieve."]})}),(0,s.jsx)("li",{className:_.item,children:(0,s.jsxs)("p",{className:_.text,children:[(0,s.jsx)("strong",{children:"No-Obligation"})," - A local Andersen Windows representative will provide you with a no-obligation quote."]})})]})}])},206052,e=>{"use strict";var s=e.i(843476),a=e.i(316454);function t(e="Test error"){throw Error(e)}e.s(["Default",0,function(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.default,{fields:{sectionId:{value:"apm-testing"}},variant:"full",children:(0,s.jsx)("button",{onClick:()=>t("Test error for APM monitoring in Component"),className:"col-span-12 bg-red-500 text-white px-4 py-2 rounded",children:"Throw Test Error in Component"})}),(0,s.jsxs)("div",{className:"section-grid grid grid-cols-2 md:grid-cols-12 px-m gap-s md:gap-s",children:[(0,s.jsx)("button",{onClick:()=>t("Test error for APM monitoring out of Component"),className:"col-span-12 bg-red-500 text-white px-4 py-2 rounded",children:"Throw Test Error out of Component"}),(0,s.jsx)("button",{onClick:()=>(function(e="Test API error"){fetch("/api/dev/throw-error",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})})})("Test API error"),className:"col-span-12 bg-red-500 text-white px-4 py-2 rounded",children:"Throw Test Error in API"})]})]})}])},800386,e=>{"use strict";var s=e.i(843476),a=e.i(376917),t=e.i(343794),l=e.i(612348),i=e.i(788610),r=e.i(66528),n=e.i(183665),d=e.i(349044),o=e.i(580959),c=e.i(714787),u=e.i(431221),m=e.i(146211),f=e.i(207857),h=e.i(382330),p=e.i(584456),x=e.i(307961),v=e.i(589669),g=e.i(871607),b=e.i(522016),j=e.i(271645),C=e.i(653423);let y=({fields:e,themeData:l,featuredExteriorColors:r,pairedClickables:n,colorSwatchesCount:o,selectedSwatchImage:c,setSelectedSwatchImage:u})=>(0,s.jsxs)(s.Fragment,{children:[r?.length>0&&(0,s.jsxs)("div",{className:l.classes.colorSwatchesWrapper,children:[(0,s.jsx)(a.Text,{tag:"h4",field:{value:e?.interior
27ColorLabel?.value},className:l.classes.colorLabel}),(0,s.jsx)(b.default,{href:e.cta1Link.value.href??e.productItem?.fields?.productDetailPageLink?.value?.href??"",...n.length>0&&{onClick:e=>{e.preventDefault()}},children:n.length>0?(0,s.jsxs)("div",{className:l.classes.swatches,children:[n?.map((e,a)=>{let i=e?.clickable.fields?.swatchImage?.value,r=e?.rendered?.value,n=r===c;return i&&Object.keys(i).length>0?(0,s.jsx)("div",{className:(0,t.default)(l.classes.colorSwatches,n?"rounded-full p-[2px] ring-2 ring-black":"opacity-80 hover:opacity-100"),onClick:()=>u(r),children:(0,s.jsx)(d.default,{image:e?.clickable.fields?.swatchImage})},a):null}),o>0&&(0,s.jsxs)("div",{children:["+",o]})]}):(0,s.jsxs)("div",{className:l.classes.swatches,children:[r?.map((e,a)=>(0,s.jsx)("div",{className:l.classes.colorSwatches,children:(0,s.jsx)(d.default,{image:e.fields?.swatchImage})},a)),o>0&&(0,s.jsxs)("div",{children:["+",o]})]})})]}),(0,s.jsx)("div",{className:l.classes.actions,children:e.cta1Link?.value?.href&&e.cta1Link?.value?.text?(0,s.jsxs)("div",{className:l.classes.buttonWrapper,children:[(0,s.jsx)(i.default,{field:e?.cta1Link,variant:e?.cta1Style,icon:e?.cta1Icon,modalId:e?.cta1Modal?.fields?.modalId?.value,modalLinkText:e?.cta1ModalLinkText,ctaPersonalizeEventName:e?.cta1PersonalizeEventName,classes:(0,t.default)(e?.cta1Style,l.classes.buttonGroupClass.cta1Classes)}),(0,s.jsx)(i.default,{field:e?.cta2Link,variant:e?.cta2Style,icon:e?.cta2Icon,modalId:e?.cta2Modal?.fields?.modalId?.value,modalLinkText:e?.ctaModal2LinkText,ctaPersonalizeEventName:e?.cta2PersonalizeEventName,classes:(0,t.default)(e?.cta2Style,l.classes.buttonGroupClass.cta2Classes)})]}):e.productItem?.fields.productDetailPageLink?.value?.text&&(0,s.jsx)(m.default,{classes:(l.classes.buttonGroupClass,{wrapper:"mb-0 md:mb-s cursor-pointer",cta1Classes:"font-bold"}),fields:{cta1Link:{value:{href:e.productItem.fields.productDetailPageLink.value.href,text:e.productItem.fields.productDetailPageLink.value.text,anchor:e.productItem.fields.productDetailPageLink.value.anchor,target:e.productItem.fields.productDetailPageLink.value.target}},cta1AriaLabel:{value:""},cta1ModalLinkText:{value:""},cta1PersonalizeEventName:{value:""},cta1Style:{id:"",url:"",name:"Primary",displayName:"Primary",fields:{Value:{value:e.cta1Style?.fields?.Value?.value??"primary"}}},cta1Icon:{id:"",url:"",name:"Arrow",displayName:"Arrow",fields:{Value:{value:"arrow"}}}}})})]});function N({props:e,selectedSwatchImage:a,primaryImageVal:t,primaryImageMobileVal:l}){let i=e.fields;return i.primaryImage?.value?.src&&i.primaryImageMobile?.value?.src&&Object.keys(a??{}).length>0?(0,s.jsx)(o.default,{...e,...Object.keys(a??{}).length>0&&{fields:{...e.fields,primaryImage:{value:a},primaryImageMobile:{value:a}}}}):i.primaryImage?.value?.src&&i.primaryImageMobile?.value?.src?(0,s.jsx)(o.default,{...e}):t||l?(0,s.jsx)(o.default,{imageLayout:"intrinsic",fields:{primaryImageCaption:{value:""},primaryImage:{value:t},primaryImageMobile:{value:l},primaryImageMobileFocusArea:i.productItem?.fields?.primaryImageMobileFocusArea?.targetItem?.value?.value?{id:"",url:"",name:i.productItem.fields.primaryImageMobileFocusArea.targetItem.value.value,displayName:i.productItem.fields.primaryImageMobileFocusArea.targetItem.value.value,fields:{Value:{value:i.productItem.fields.primaryImageMobileFocusArea.targetItem.value.value}}}:{id:"",url:"",name:"Center",displayName:"Center",fields:{Value:{value:"center"}}}}}):(0,s.jsx)(s.Fragment,{})}let w=(0,v.withDatasourceCheck)(function(e){let{fields:i}=e,{themeName:d,themeData:o}=(0,h.useTheme)(C.ProductPreviewCardTheme),{favoriteProducts:m}=(0,g.useFavoriteProducts)(),[v,w]=(0,j.useState)(null);if((0,x.useBVScript)({environment:p.default,theme:d}),!i)return null;let _=i?.productItem?.fields?.bazaarvoiceProductId?.value,k=i?.favorite?.value,T=i.productItem?.fields?.productId?.value,S=m.includes(T),F=i.productItem?.fields?.standardExteriorColors?.fields?.swatches,I=F?.length,D=i?.productItem?.fields?.featuredExteriorColors??[],W=0,L=function(e){let s=e?.fields?.productItem?.fields;if(!s)return[];let{clickableSwatch1:a,clickableSwatch2:t,clickableSwatch3:l,renderedImage1:i,renderedImage2:r,renderedImage3:n}=s,d=[i,r,n];return[a,t,l].map((e,s)=>{let a=d[s];return e&&a?{clickable:e,rendered:a}:null}
27).filter(Boolean)}(e);I&&D?.length>0&&(W=I-(D=D.slice(0,{aw:3,rba:5}[d])).length);let E=i?.productItem?.fields?.priceLevel?.fields?.priceLevelText?.value&&+i?.productItem?.fields?.priceLevel?.fields?.priceLevelText?.value,B={},P={},A=i.primaryImage?.value?.src&&i.primaryImage.value,R=i.primaryImageMobile?.value?.src&&i.primaryImageMobile?.value,z=i.productItem?.fields?.productImage?.value,q=i.productItem?.fields?.productImageMobile?.value;B=A??z??{},P=R??q??B;let O=i.cta1Link?.value?.href,M=i.productItem?.fields?.productDetailPageLink?.value?.href,$=O||M;return(0,s.jsxs)("div",{className:o.classes.productPreviewCradWrapper,"data-component":"card/productpreview",children:[k&&T&&(0,s.jsx)("div",{className:"absolute top-0 right-0",children:(0,s.jsx)("div",{className:(0,t.default)(o.classes.favoriteProduct,S?"favorited border-[transparent_#f26924_transparent_transparent]":""),"data-product-id":T,children:(0,s.jsx)(f.default,{icon:"favorite",fillId:"white",size:"xl",className:o.classes.favoriteIcon})})}),(0,s.jsxs)("div",{className:o.classes.headerWrapper,children:[i.eyebrowText?.value?(0,s.jsx)(r.default,{classes:o.classes.eyebrow,...e}):i.productItem?.fields?.productSeries?.fields?.productTypeName?.value&&(0,s.jsx)(a.Text,{tag:"h4",className:o.classes.eyebrow,field:{value:i.productItem.fields.productSeries.fields.productTypeName.value}}),(0,s.jsx)(b.default,{href:i.cta1Link.value.href??i.productItem?.fields?.productDetailPageLink?.value?.href??"",className:o.classes.headlineWrapper,children:i.headlineText?.value?(0,s.jsx)(n.default,{useTag:"h4",classes:o.classes.headline,...e}):i.productItem?.fields.productName&&(0,s.jsx)(a.Text,{useTag:"h4",className:o.classes.headline,field:{value:i.productItem.fields.productName.value}})}),(0,s.jsxs)("div",{className:o.classes.ratingsAndPriceWrapper,children:[_&&"aw"===d&&(0,s.jsx)("div",{className:"review flex-[0_0_auto]","data-bv-show":"inline_rating","data-bv-product-id":_,"data-bv-seo":"false"}),E&&E>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:_?o.classes.priceLevelWrapper:"",children:(0,s.jsx)(c.default,{priceLevel:E,priceClasses:o.classes.priceTextClasses,priceLevelClasses:o.classes.priceLevelClasses})})})]})]}),(0,s.jsx)("div",{className:"order-2 my-xxs self-stretch",children:$?(0,s.jsx)(b.default,{href:$,children:(0,s.jsx)(N,{props:e,selectedSwatchImage:v,primaryImageVal:B,primaryImageMobileVal:P})}):(0,s.jsx)(N,{props:e,selectedSwatchImage:v,primaryImageVal:B,primaryImageMobileVal:P})}),i.body?.value?(0,s.jsx)(l.default,{classes:o.classes.body,...e}):i.productItem?.fields.productDescription&&(0,s.jsx)(u.default,{field:{value:i.productItem.fields.productDescription.value},classes:o.classes.body}),(0,s.jsx)(y,{fields:e.fields,themeData:o,featuredExteriorColors:D,pairedClickables:L,colorSwatchesCount:W,selectedSwatchImage:v,setSelectedSwatchImage:w})]})});e.s(["Default",0,w])},309610,e=>{"use strict";var s=e.i(843476),a=e.i(316454),t=e.i(183665),l=e.i(291749),i=e.i(580959),r=e.i(207857),n=e.i(382330),d=e.i(224043),o=e.i(436591),c=e.i(159277),u=e.i(589669),m=e.i(271645),f=e.i(854302);let h=(0,u.withDatasourceCheck)(function(e){let{fields:u}=function(e){if(void 0===e.fields||!("data"in e.fields))return{};let s=e.fields;return{fields:{id:s.data.item.id,...(0,d.mapItemFieldResultsToObject)(s.data.item.fields),children:(0,o.mapSearchResults)(s.data.item.children,e=>({id:e.id,fields:{...(0,d.mapItemFieldResultsToObject)(e.fields)}}))}}}(e),{themeData:h}=(0,n.useTheme)(f.CardImageAndProductDetailsTheme),[p,x]=(0,m.useState)(!1);return(0,s.jsxs)(a.default,{padding:"px-0",variant:"lg",dataComponent:"card/cardimageandproductdetails",...e,children:[(0,s.jsxs)("div",{className:h.classes.parentDiv,children:[(0,s.jsx)(i.default,{...e,fields:u,ratio:"square"}),(0,s.jsx)("div",{className:p?h.classes.darkImageOverlay:"collapse absolute",children:(0,s.jsxs)("div",{className:h.classes.groupDiv,children:[(0,s.jsx)(t.default,{classes:h.classes.headline,...e,fields:u}),(0,s.jsx)("div",{className:"product-links",children:u?.children?.map(e=>{let a=(0,c.getEnum)(e.fields?.productIcon),t=e.id??"";return(0,s.jsx)("div",{children:e.fields?.productLink&&(0,s.jsx)(l.default,{field:e.fields?.productLink,className:"flex w-fit items-center p-2 text-body font-normal hover:underline hover:decoration-primary hover:underline-offset-8 disabled:border-gray disabled:text-gray",ariaLabel:{value:"product icon"},rel:"",children:e.fields?.productIcon&&(0,s.jsx)(r.default,{icon:a,className:"ml-[10px] text-theme-btn-bg-hover hover:underline hover:decoration-primary hover:underline-offset-8"})})},t)})})]})})]}),u?.children?.length>0&&(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsxs)("button",{className:h.classes.detailsButton,type:"button",onClick:()=>{x(!p)},children:[p?"Hide Details":"View Details",(0,s.jsx)(r.default,{icon:p?"smallclose":"smallplus",className:h.classes.iconClass})]})})]})});e.s(["Default",0,h])},613261,e=>{"use strict";var s=e.i(843476),a=e.i(343794),t=e.i(612348),l=e.i(952134),i=e.i(602296),r=e.i(66528),n=e.i(183665),d=e.i(349044),o=e.i(704536),c=e.i(547443),u=e.i(382330),m=e.i(159277),f=e.i(589669),h=e.i(271645),p=e.i(537187);let x=(0,f.withDatasourceCheck)(function(e){let f=(0,m.getEnum)(e.fields?.alignment)??"left",{themeData:x}=(0,u.useTheme)((0,p.GenericCardTheme)(f)),v=!!e.fields?.icon?.value?.src,g=!!e.fields?.image?.value?.src,b=e?.fields?.cta1Modal?.fields?.modalId?.value,j=e?.fields?.cta1ModalLinkText,C=(0,h.useRef)(null);return(0,s.jsx)(i.default,{classes:(0,a.default)("transition-all duration-200 ease-in-out md:hover:scale-105 my-s! ml-[11px] ml:!mt-25px ml:!ml-[20px] hover:ml-[20px]! md:hover:shadow-xl group w-[95%]! h-[98%]!"),dataComponent:"
27card/buttoncard",...e,children:(0,s.jsxs)("div",{tabIndex:0,onKeyDown:e=>{if("Enter"===e.code||"Space"===e.code){let e=C?.current?.querySelector(".buttonCardCta");e&&e.click()}},onClick:()=>{let e=C?.current?.querySelector(".buttonCardCta");e&&e.click()},className:(0,a.default)(x.classes.cardWrapper,e.fields?.cta1Link?.value?.href===""?"cursor-default!":"cursor-pointer","md:p-2"),children:[v&&(0,s.jsx)(o.default,{image:e.fields?.icon,className:(0,a.default)(x.classes.iconClass,"h-[80px]! min-h-0! w-[80px]! min-w-0!")}),!v&&g&&(0,s.jsx)(d.default,{image:e.fields?.image}),(e?.fields?.eyebrowText?.value??e?.fields?.headlineText?.value)===""&&(0,s.jsx)("div",{className:"mb-[16px]!"}),(0,s.jsxs)("div",{className:"flex grow flex-col",children:[(0,s.jsxs)("div",{className:x.classes?.copyWrapper,children:[(0,s.jsx)(r.default,{classes:x.classes?.eyebrow,...e}),(0,s.jsx)(n.default,{classes:x.classes?.headline,...e}),(0,s.jsx)(c.default,{classes:x.classes?.subheadline,...e}),(0,s.jsx)(t.default,{classes:x.classes?.body,...e})]}),(0,s.jsx)("div",{ref:C,className:x.classes?.buttonGroupClass?.wrapper,children:(0,s.jsx)(l.default,{field:e.fields?.cta1Link,variant:e.fields?.cta1Style,icon:e.fields?.cta1Icon,classes:(0,a.default)(e.fields?.cta1Style,"md:whitespace-pre-wrap buttonCardCta group-hover:bg-primary group-hover:text-black hover:!text-black"),modalId:b,modalLinkText:j,ctaPersonalizeEventName:e.fields?.cta1PersonalizeEventName,ariaLabel:e.fields?.cta1AriaLabel})})]})]})})});e.s(["Default",0,x])},108527,e=>{"use strict";var s=e.i(843476),a=e.i(584456),t=e.i(159277),l=e.i(857808),i=e.i(589669),r=e.i(976442),n=e.i(411848),d=e.i(324140),o=e.i(3303),c=e.i(271645);let u=(0,i.withDatasourceCheck)(function(e){let{fields:i,rendering:u}=e,m=(0,c.useMemo)(()=>i?.id?.value??`id${(0,n.hashCode)(u.uid??(0,r.createUUID)())}`,[i?.id?.value,u.uid]),f=i?.type?.value??"text/javascript",h=i?.src?.value??"",p=i?.htmlBody?.value??"",x=(0,t.getEnum)(i?.strategy)??"beforeInteractive";return(0,l.isValidForEnvironment)(e,a.default)&&(h||p)?(0,d.isNullOrWhitespace)(h)?(0,s.jsx)(o.default,{id:m,type:f,strategy:x,dangerouslySetInnerHTML:{__html:p}}):(0,s.jsx)(o.default,{id:m,type:f,src:h,strategy:x}):null});e.s(["Default",0,u])},683234,e=>{"use strict";var s=e.i(843476),a=e.i(584456),t=e.i(159277),l=e.i(857808);let i=(0,e.i(589669).withDatasourceCheck)(function(e){let{fields:i}=e,r=i?.href?.value,n=i?.rel?.value,d=i?.title?.value,o=i?.type?.value,c=i?.media?.value,u=i?.sizes?.value,m=i?.hreflang?.value,f=(0,t.getEnum)(i?.crossOrigin),h=(0,t.getEnum)(i?.referrerPolicy),p=i?.charset?.value;return(0,l.isValidForEnvironment)(e,a.default)&&r?(0,s.jsx)("link",{...Object.fromEntries(Object.entries({href:r,rel:n,title:d,type:o,media:c,sizes:u,hreflang:m,crossOrigin:f,referrerPolicy:h,charSet:p}).filter(([,e])=>e))}):null});e.s(["Default",0,i])}]);
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.