1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d3a8fbc0-ce15-0236-12a1-70d4f8951b29")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,381451,e=>{"use strict";let t;var n=e.i(271645),a=e.i(753244),o=e.i(315473);e.i(552450);var i=e.i(151673),r=e.i(699472);let l=0,s="",c=["google.com","bing.com","yahoo.com","duckduckgo.com ","aol.com","dogpile.com","yandex.com","qwant.com","baidu.com","lycos.com","ask.com"];e.s(["default",0,()=>((0,n.useEffect)(()=>{if((0,a.getSessionStorage)("activeSession"))return;let e={};for(let[t,n]of new URLSearchParams(window.location.search).entries())e[t]=n;(e=>{s="";let n=new Date,i=n.setDate(n.getDate()+548),r=!1,u=null;e.pel_campaign_code?(r=!0,u=e.pel_campaign_code,(0,a.setCookie)("pel_campaign_code",e.pel_campaign_code,new Date(i),!0)):(0,a.getCookie)("pel_campaign_code")&&(r=!0,u=(0,a.getCookie)("pel_campaign_code")),0===Object.values(e).length&&"u">typeof document&&document.referrer&&c.some(e=>document.referrer.includes(e))&&(r=!0,u="PEL198681500",(0,a.setCookie)("pel_campaign_code",u,new Date(i),!0)),t=setInterval(()=>((e,n,i)=>{if(l<6)if((0,a.getCookie)("__utmz")){s="";let r=(e=>{let t={};for(let n of e){let e=n.split("="),a=e[0],i=e[1];switch(!(0,o.isNullOrUndefined)(i)&&(i=(i=i.replace("not provided","")).replace("not set","")),a){case"utmccn":t.utmcampaign=i;break;case"utmcsr":t.utmsource=i;break;case"utmcmd":t.utmmedium=i;break;case"utmctr":t.utmterm=i;break;case"utmcct":t.utmcontent=i;break;case"utmgclid":t.utmgclid=i}}return t})((e=>{let t=["utmccn","utmcsr","utmcmd","utmctr","utmcct","utmgclid"],n=[];for(let a of t){let o=e.indexOf(a);if(-1!==o){let a=o,i=!1,r=-1;for(;!i;)if(-1!==(r=e.indexOf("|",a))){for(let n of t)if(e.slice(r+1,r+1+n.length)===n){i=!0;break}a=e.indexOf("|",r+1)}else i=!0;-1!==r&&r>o?n.push(e.slice(o,r)):n.push(e.slice(Math.max(0,o)))}}return n})((0,a.getCookie)("__utmz").split(".")[4]));for(let e of Object.keys(r))""!==s&&(s+="^^"),s+=`${e}:${r[e]}`;e.Network&&(""!==s&&(s+="^^"),s+=`Network:${e.Network}`),n&&(""!==s&&(s+="^^"),s+=`pel_campaign_code:${i}`,(0,a.setSessionStorage)("pel_campaign_code",i,!1)),""===s&&(s="utmcampaign:(direct)^^utmsource:(direct)^^utmmedium:(none)^^rtapb:1");let l=document.referrer,c=null;if(!(0,o.isNullOrUndefined)(l)){let e=l.slice(Math.max(0,l.indexOf("//")+2));c=e.slice(0,Math.max(0,e.indexOf("/")))}let u=`^^parentSite:${c}`;if(s+=c?u:"^^parentSite:www.pella.com",(0,a.getCookie)("ELOQUA")){let e=(0,a.getCookie)("ELOQUA");s+=`^^${e.replace("GUID=","EloquaID:").replace("&FPCVISITED:1","")}`}(0,a.setSessionStorage)("urlstring",s),clearInterval(t)}else l++;else clearInterval(t)})(e,r,u),500),e.utm_campaign?s+=`utmcampaign:${e.utm_campaign}`:e.utmcampaign?s+=`utmcampaign:${e.utmcampaign}`:e.Campaign&&(s+=`utmcampaign:${e.Campaign}`),e.utm_source?(""!==s&&(s+="^^"),s+=`utmsource:${e.utm_source}`):e.utmsource&&(""!==s&&(s+="^^"),s+=`utmsource:${e.utmsource}`),e.utm_medium?(""!==s&&(s+="^^"),s+=`utmmedium:${e.utm_medium}`):e.utmmedium&&(""!==s&&(s+="^^"),s+=`utmmedium:${e.utmmedium}`),e.utm_term?(""!==s&&(s+="^^"),s+=`utmterm:${e.utm_term}`):e.utmterm&&(""!==s&&(s+="^^"),s+=`utmterm:${e.utmterm}`);let m=!1;if(e.utm_content?(""!==s&&(s+="^^"),m=!0,s+=`utmcontent:${e.utm_content}`):e.utmcontent&&(""!==s&&(s+="^^"),m=!0,s+=`utmcontent:${e.utmcontent}`),e.utm_type?(""!==s&&(s+="^^"),s+=`utmtype:${e.utm_type}`):e.utmtype&&(""!==s&&(s+="^^"),s+=`utmtype:${e.utmtype}`),e.gclid){""!==s&&(s+="^^");let t=`utmgclid:${e.gclid}^^gclid:${e.gclid}`,n=`utmcontent:gclid-${e.gclid}^^utmgclid:${e.gclid}^^gclid:${e.gclid}`;s+=m?n:t}else if(e.utmgclid){""!==s&&(s+="^^");let t=`utmgclid:${e.utmgclid}^^gclid:${e.utmgclid}`,n=`utmcontent:gclid-${e.utmgclid}^^utmgclid:${e.utmgclid}^^gclid:${e.utmgclid}`;s+=m?n:t}e.Network&&(""!==s&&(s+="^^"),s+=`Network:${e.Network}`),r?(""!==s&&(s+="^^"),s+=`pel_campaign_code:${u}`,(0,a.setSessionStorage)("pel_campaign_code",u,!1)):/utm(campaign|medium):\(?organic\)?/u.test(s)&&(s+="^^pel_campaign_code:PEL198681500",(0,a.setCookie)("pel_campaign_code","PEL198681500",new Date(i),!0)),""===s&&(s="utmcampaign:(direct)^^utmsource:(direct)^^utmmedium:(none)^^rtapb:1");let d=document.referrer,f=null;if(!(0,o.isNullOrUndefined)(d)){let e=d.slice(Math.max(0,d.indexOf("//")+2));f=e.slice(0,Math.max(0,e.indexOf("/")))}let p=`^^parentSite:${f}`;if(s+=f?p:"^^parentSite:www.pella.com",(0,a.getCookie)("ELOQUA")){let e=(0,a.getCookie)("ELOQUA");s+=`^^${e.replace("GUID=","EloquaID:").replace("&FPCVISITED:1","")}`}s+=`^^host:${window.location.host}`,(0,a.setSessionStorage)("urlstring",s)})(e),(0,a.setSessionStorage)("activeSession",!0)},[]),(0,n.useEffect)(()=>{let e=()=>{};return(async()=>{try{let n=await r.stack.fetchEntry(i.contentstackTypes.campaignCodes,i.contentstackEntryIds.campaignCodes),l=n?.cluster?.map(e=>e.pairs)?.flat(),s=new URLSearchParams(window.location.search).get("pel_campaign_code")||(0,a.getSessionStorage)("pel_campaign_code");if(!(0,o.isNullOrUndefined)(s)&&l?.find(e=>e.campaign_code===s)?.tfn){var t;let n,o,i,r;t=l.find(e=>e.campaign_code===s).tfn,o=null,i=()=>{(e=>{let t=document.querySelectorAll('.localNavTop a[href^="tel:"], .rta-description-copy a[href^="tel:"], .ctPhone'),n=`tel:${e}`;for(let o of t)o.href!==n&&(o.href=n,o.textContent=(0,a.formatPhoneNumber)(e));return t.length>0})(t)&&(clearTimeout(o),o=setTimeout(()=>n.disconnect(),500))},(n=new MutationObserver(i)).observe(document.body,{childList:!0,subtree:!0}),i(),r=setTimeout(()=>{n.disconnect()},3e3),e=()=>{clearTimeout(o),clearTimeout(r),n.disconnect()}}}catch{}})(),()=>e()},[]),null)],381451)},990522,e=>{"use strict";var t=e.i(519464);
2e.s(["default",0,()=>((0,t.useCroPromoTestEnabled)(),null)])},880753,e=>{"use strict";var t=e.i(843476),n=e.i(500932);let a=(0,e.i(770703).default)(()=>e.A(628598),{loadableGenerated:{modules:[364327]},ssr:!1});e.s(["default",0,()=>{let e,o=(0,n.c)(1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a,{}),o[0]=e):e=o[0],e}])},378060,e=>{"use strict";var t=e.i(843476),n=e.i(500932);let a=(0,e.i(770703).default)(()=>e.A(541055),{loadableGenerated:{modules:[850121]},ssr:!1});e.s(["default",0,()=>{let e,o=(0,n.c)(1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a,{}),o[0]=e):e=o[0],e}])},471892,e=>{"use strict";var t=e.i(500932),n=e.i(271645),a=e.i(687597),o=e.i(753244);let i=()=>`serverActionSkewReloaded:${(0,a.getPublicEnv)().NEXT_PUBLIC_GIT_SHA||"dev"}`,r=()=>{let e,a=(0,t.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],a[0]=e):e=a[0],(0,n.useEffect)(s,e),null};function l(e){if((e=>{if(e?.name==="UnrecognizedActionError")return!0;let t=e?.message;return"string"==typeof t&&t.includes("was not found on the server")&&t.includes("failed-to-find-server-action")})(e?.reason)){try{if((0,o.getSessionStorage)(i()))return;(0,o.setSessionStorage)(i(),"1")}catch{return}window.location.reload()}}function s(){return window.addEventListener("unhandledrejection",l),()=>window.removeEventListener("unhandledrejection",l)}e.s(["ServerActionSkewRecovery",0,r,"default",0,r])},217380,e=>{"use strict";var t=e.i(843476),n=e.i(500932);let a=(0,e.i(770703).default)(()=>e.A(491667),{loadableGenerated:{modules:[607717]},ssr:!1});e.s(["default",0,()=>{let e,o=(0,n.c)(1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a,{}),o[0]=e):e=o[0],e}])},727563,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(3303),o=e.i(680174),i=e.i(494724);e.s(["Autopilot",0,()=>{let e,r=(0,n.c)(1);return(0,i.useOneTrustConsent)(o.ONETRUST_CATEGORY_TARGETING)?(r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a.default,{src:"//cdn.bc0a.com/autopilot/f00000000230629/autopilot_sdk.js",strategy:"lazyOnload"}),r[0]=e):e=r[0],e):null}])},329802,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(271645),o=e.i(618566),i=e.i(3303),r=e.i(687597),l=e.i(579972),s=e.i(561819);let c=["/locations/baltimore/","/locations/washington-dc/","/locations/eastern-shore/"],u=[{id:"00000006",branchIds:["754","716"],paths:["/locations/ct/norwalk/","/locations/ny/roslyn-heights/"]},{id:"00000007",branchIds:["757","731","735"],paths:["/locations/nc/","/locations/north-carolina"]},{id:"00000018",branchIds:["743"],paths:["/locations/mi/grand-rapids/"]},{id:"00000004",branchIds:["769","770"],paths:["/locations/memphis/","/locations/nashville/"]}],m=()=>{let e=new Date,t=e.getHours(),n=e.getDay();return n>0&&n<6&&t>=8&&t<16};function d(){return!1}e.s(["ChatLoader",0,()=>{let e,f,p,_,h,g,C,E,b,q,y=(0,n.c)(31),w=(0,o.usePathname)(),{context:S}=(0,l.useLocationMachine)(),{entryMetaRef:v,subscribe:P}=(0,s.usePageEntry)(),x=S?.retail_branch_id,[N,T]=(0,a.useState)(!1),[k]=(0,a.useState)(m);y[0]!==v?(e=()=>!!v.current?.remove_chat,y[0]=v,y[1]=e):e=y[1];let I=(0,a.useSyncExternalStore)(P,e,d),L="/where-to-buy/schedule-consultation/"===w||I;y[2]!==L||y[3]!==w?(f=!L&&c.some(e=>w.includes(e)),y[2]=L,y[3]=w,y[4]=f):f=y[4];let A=f;if(y[5]!==L||y[6]!==w||y[7]!==x){let e;p=!L&&(e=u.find(e=>e.branchIds.includes(x)||e.paths.some(e=>w.includes(e))),e?.id??null),y[5]=L,y[6]=w,y[7]=x,y[8]=p}else p=y[8];let F=p;return y[9]!==F||y[10]!==L||y[11]!==A||y[12]!==k?(_=null,A?_="mid-atlantic":F?_="hatch":k&&!L&&(_="quiq"),y[9]=F,y[10]=L,y[11]=A,y[12]=k,y[13]=_):_=y[13],y[14]!==_?(h=()=>{for(let e of document.querySelectorAll("hatch-chat"))"hatch"===_?e.style.removeProperty("display"):e.style.setProperty("display","none","important");let e=document.querySelector("#livechat-hide");if("mid-atlantic"===_)e?.remove();else if(!e){let e=document.createElement("style");e.id="livechat-hide",e.textContent="#chat-widget-container { display: none !important; }",document.head.append(e)}let t=document.querySelector("#quiq-hide");if("quiq"===_)t?.remove();else if(!t){let e=document.createElement("style");e.id="quiq-hide",e.textContent=".quiq-floating-element { display: none !important; }",document.head.append(e)}},y[14]=_,y[15]=h):h=y[15],y[16]!==_?(g=[_],y[16]=_,y[17]=g):g=y[17],(0,a.useEffect)(h,g),y[18]!==L||y[19]!==k||y[20]!==N?(C=k&&!L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:(0,r.getPublicEnv)().NEXT_PUBLIC_QUIQ_CHAT_URL,onLoad:()=>T(!0),strategy:"lazyOnload"}),N&&(0,t.jsx)(i.default,{id:"quiq-chat-script",children:"\n if (typeof Quiq !== 'undefined') {\n var chat = Quiq({\n pageConfigurationId: 'support',\n seo: {\n delayScriptLoad: {\n enabled: true,\n delay: 5000\n }\n }\n });\n\n chat.on('statusChanged', async (event) => {\n if (event.data.status === 'initialized') {\n if (!chat.defaultWidget) return;\n\n const widgetState = await chat.defaultWidget.getState();\n if (widgetState?.currentPlatform?.name === 'SMS') {\n const realBtn = document.querySelector('.quiq-floating-element');\n const fauxBtn = document.createElement('button');\n\n fauxBtn.innerHTML = \"<span class='sr-only'>Chat</span>\";\n fauxBtn.setAttribute('style', 'position: absolute; left: 0; top: 0; width: 100%; height: 100%;');\n realBtn?.appendChild(fauxBtn);\n\n function onBubbleClick(e) {\n e.preventDefault();\n chat.showNotificationBlurb({\n text: 'Pella Support is ready to help. Please text \"Help\" when you enter your texting app on the next step.',\n buttons: [\n {\n text: 'Continue',\n action: {\n type: 'triggerDefaultAction'\n }\n }\n ]\n });\n document.querySelector('.quiq-floating-element > button')?.remove();\n }\n\n fauxBtn.addEventListener('click', onBubbleClick);\n }\n }\n });\n }\n "}),(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .quiq-togglechatbutton-button:focus {\n outline: 2px solid #0e69e9;\n }\n .quiq-notificationblurb-wrapper {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0.5rem;\n }\n .quiq-notificationblurb-item-wrapper { margin: 0 !important; }\n .quiq-notificationblurb-content-children {\n background-color: transparent !important;\n color: #fff !important;\n }\n .quiq-notificationblurb-text-wrapper {\n font-size: 0.875rem !important;\n line-height: 1.3;\n }\n .quiq-notificationblurb-buttons-wrapper {\n margin: 0 auto 0 1rem !important;\n text-transform: uppercase !important;\n font-weight: 600 !important;\n letter-spacing: 1px !important;\n }\n .quiq-notificationblurb-button {\n background-color: #ffde00 !important;\n border-radius: 0 !important;\n margin: 0 0 1rem !important;\n }\n .quiq-notificationblurb-dismiss-button {\n left: auto !important;\n right: -8px !important;\n top: -8px !important;\n }\n "}})]}),y[18]=L,y[19]=k,y[20]=N,y[21]=C):C=y[21],y[22]!==_?(E="mid-atlantic"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{id:"mid-atlantic-chat-script",strategy:"lazyOnload",children:'\n window.__lc = window.__lc || {};\n window.__lc.license = 7753391;\n\n ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)};\n var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){\n i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},\n get:function(){if(!e._h)throw new Error("[LiveChatWidget] Youcan\'t use getters before load.");\n return\n i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},\n init:function(){\n\n var n=t.createElement("script");\n n.async=!0,n.type="text/javascript",\n n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};
2\n !n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))\n '}),(0,t.jsx)("noscript",{dangerouslySetInnerHTML:{__html:'<a href="https://www.livechatinc.com/chat-with/7753391/" rel="nofollow">Chat with us </a>, powered by <a href="https://www.livechatinc.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a>'}})]}),y[22]=_,y[23]=E):E=y[23],y[24]!==_||y[25]!==F?(b="hatch"===_&&(0,t.jsx)(i.default,{id:`hatch-chat-script-${F}`,strategy:"lazyOnload",children:` 3 function _loadHatchScripts(t){try{var e=document,n=e.createElement("script");n.src=t,n.async=!0,n.defer=!0,n.dataset.hatchid="${F}";var a=e.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a)}catch(t){}}window.addEventListener("WebComponentsReady",function(){_loadHatchScripts("https://www.usehatchapp.com/hubfs/static/js/hatchChat-beta.js")}),"attachShadow"in Element.prototype?document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})):_loadHatchScripts("https://unpkg.com/@webcomponents/[email protected]/webcomponents-bundle.js"); 4 `},F),y[24]=_,y[25]=F,y[26]=b):b=y[26],y[27]!==C||y[28]!==E||y[29]!==b?(q=(0,t.jsxs)(t.Fragment,{children:[C,E,b]}),y[27]=C,y[28]=E,y[29]=b,y[30]=q):q=y[30],q}])},480129,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(753244),o=e.i(680174),i=e.i(271645),r=e.i(494724);function l(e,t){(0,a.setLocalStorage)("cheqResponse",t)}function s(){if(document.querySelector("#cheq-tag-script"))return;window.onCheqResponse=l;let e=document.createElement("script");e.id="cheq-tag-script",e.src="https://ob.sd6544.pella.com/i/0c2fc9e0dd87888c5b5c699373cd9566.js",e.async=!0,e.dataset.ch="Pella",e.dataset.jsonp="onCheqResponse",e.className="ct_clicktrue_54936",document.body.append(e)}e.s(["CheqTag",0,()=>{let e,a,l,c=(0,n.c)(4),u=(0,r.useOneTrustConsent)(o.ONETRUST_CATEGORY_TARGETING);return(c[0]!==u?(e=()=>{if(!u)return;let e=setTimeout(()=>{"requestIdleCallback"in window?requestIdleCallback(s,{timeout:1e4}):s()},5e3);return()=>clearTimeout(e)},a=[u],c[0]=u,c[1]=e,c[2]=a):(e=c[1],a=c[2]),(0,i.useEffect)(e,a),u)?(c[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("noscript",{children:(0,t.jsx)("iframe",{title:"Cheq",src:"https://obs.sd6544.pella.com/ns/0c2fc9e0dd87888c5b5c699373cd9566.html?ch=Pella",width:"0",height:"0",style:{display:"none",visibility:"hidden"}})}),c[3]=l):l=c[3],l):null}])},785950,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(3303),o=e.i(680174),i=e.i(494724);e.s(["Eloqua",0,()=>{let e,r=(0,n.c)(1);return(0,i.useOneTrustConsent)(o.ONETRUST_CATEGORY_TARGETING)?(r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{id:"eloqua-script",strategy:"lazyOnload",children:` 5 var _elqQ = _elqQ || []; 6 _elqQ.push([ 'elqSetSiteId', ${o.ELOQUA_SITE_ID} ]); 7 _elqQ.push([ 'elqUseFirstPartyCookie', 'tracking.pella.com' ]); 8 _elqQ.push([ 'elqTrackPageView', window.location.href ]); 9 10 function setFormFieldValue(elqForm, strFormFieldName, strContactFieldName){ 11 if (elqForm.elements[strFormFieldName]) 12 elqForm.elements[strFormFieldName].value = GetElqContentPersonalizationValue(strContactFieldName); 13 } 14 15 function SetElqContent() { 16 if (this.GetElqContentPersonalizationValue && GetElqContentPersonalizationValue("V_Email_Address")) { 17 _elqQ.push(['elqDataLookup', escape("6fdc24db-5b3a-494a-bf83-52e22d8fa2b0"), '<C_EmailAddress>' + GetElqContentPersonalizationValue('V_Email_Address') + '</C_EmailAddress>']); 18 _elqQ.push(['elqDataLookup', escape("03741c19-2d84-48f9-8fea-4f91b5bb4a83"),'<C_EmailAddress>' + GetElqContentPersonalizationValue('V_Email_Address') + '</C_EmailAddress>']); 19 } else if (this.GetElqContentPersonalizationValue && GetElqContentPersonalizationValue("C_EmailAddress")) { 20 const data = { 21 CustomerID: GetElqContentPersonalizationValue('ContactIDExt'), 22 LeadScore: GetElqContentPersonalizationValue('C_Lead_Score'), 23 LeadScoreImplicit: GetElqContentPersonalizationValue('C_Lead_
23Score___Implicit1'), 24 LeadScoreExplicit: GetElqContentPersonalizationValue('C_Lead_Score___Explicit1'), 25 LeadScoreMostRecent: GetElqContentPersonalizationValue('C_Lead_Score_Date___Most_Recent1'), 26 LeadScoreDateProfile: GetElqContentPersonalizationValue('C_Lead_Score_Date___Profile___Most_Recent1'), 27 LeadSourceMostRecent: GetElqContentPersonalizationValue('C_Lead_Source___Most_Recent1'), 28 LeadSource: GetElqContentPersonalizationValue('C_Lead_Source___Original1'), 29 DateCreated: GetElqContentPersonalizationValue('C_DateCreated'), 30 DoNotEmail: GetElqContentPersonalizationValue('C_Do_Not_Email1'), 31 DoNotText: GetElqContentPersonalizationValue('C_Do_Not_Text1'), 32 Zip: GetElqContentPersonalizationValue('C_Zip_Postal'), 33 Birthdate: GetElqContentPersonalizationValue('C_Birthdate1'), 34 Company: GetElqContentPersonalizationValue('C_Company'), 35 ContactPermissionGranted: GetElqContentPersonalizationValue('C_Contact_Permission_Granted1'), 36 ContactPermissionRemoved: GetElqContentPersonalizationValue('C_Contact_Permission_Removed1'), 37 BusinessEntity: GetElqContentPersonalizationValue('C_Business_Entity1'), 38 BusinessEntitySubtype: GetElqContentPersonalizationValue('C_Business_Entity_Subtype1') 39 }; 40 41 var elqForm; 42 var blnFound = false; 43 44 var prefData = { 45 C_FirstName: GetElqContentPersonalizationValue('C_FirstName'), 46 C_LastName: GetElqContentPersonalizationValue('C_LastName'), 47 C_EmailAddress: GetElqContentPersonalizationValue('C_EmailAddress'), 48 C_Zip_Postal: GetElqContentPersonalizationValue('C_Zip_Postal'), 49 emailNewsletter: GetElqContentPersonalizationValue('C_Do_Not_Email___Newsletter1'), 50 emailPromo: GetElqContentPersonalizationValue('C_Do_Not_Email___Promotional1'), 51 }; 52 53 //find the form object from the form HTMLName 54 for (var formIndex = 0; formIndex < document.forms.length; formIndex++) 55 { 56 for (var elemIndex = 0; elemIndex < document.forms[formIndex].length; elemIndex++) 57 { 58 if (document.forms[formIndex].elements[elemIndex].name == "elqFormName") 59 { 60 if (document.forms[formIndex].elements[elemIndex].value == "preference-center") 61 { 62 elqForm = document.forms[formIndex]; 63 blnFound = true; 64 break; 65 } 66 } 67 } 68 if (blnFound) break; 69 } 70 71 if (elqForm) 72 { 73 setFormFieldValue(elqForm, "firstName", "C_FirstName"); 74 setFormFieldValue(elqForm, "lastName", "C_LastName"); 75 setFormFieldValue(elqForm, "emailAddress", "C_EmailAddress"); 76 setFormFieldValue(elqForm, "zipPostal", "C_Zip_Postal"); 77 // setFormFieldValue(elqForm, "emailNewsletter", "C_Do_Not_Email___Newsletter1"); 78 // setFormFieldValue(elqForm, "emailPromo", "C_Do_Not_Email___Promotional1"); 79 80 if (GetElqContentPersonalizationValue("C_Do_Not_Email___Newsletter1")) { 81 if(GetElqContentPersonalizationValue("C_Do_Not_Email___Newsletter1") === '1') { 82 elqForm.elements["emailNewsletter"].value = true; 83 elqForm.elements["emailNewsletter"].checked = true; 84 } else { 85 elqForm.elements["emailNewsletter"].value = false; 86 elqForm.elements["emailNewsletter"].checked = false; 87 } 88 89 } 90 if (GetElqContentPersonalizationValue("C_Do_Not_Email___Promotional1")) { 91 if(GetElqContentPersonalizationValue("C_Do_Not_Email___Promotional1") === '1') { 92 elqForm.elements["emailPromo"].value = true; 93 elqForm.elements["emailPromo"].checked = true; 94 } else { 95 elqForm.elements["emailPromo"].value = false; 96 elqForm.elements["emailPromo"].checked = false; 97 } 98 } 99 } 100 101 // Push to global variable 102 window.eloquaPrefData = window.eloquaPrefData || {}; 103 window.eloquaPrefData = prefData; 104 } 105 } 106 107 _elqQ.push(['elqDataLookup', escape("67e165b8-93e7-4d84-aec5-0bfc26c38b6f"), '']); 108 `}),(0,t.jsx)(a.default,{id:"eloqua-cfg",src:"https://img.en25.com/i/elqCfg.min.js",strategy:"lazyOnload"})]}),r[0]=e):e=r[0],e):null}])},262115,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(3303),o=e.i(680174),i=e.i(494724);e.s(["Monetate",0,()=>{let e,r=(0,n.c)(1);return(0,i.useOneTrustConsent)(o.ONETRUST_CATEGORY_TARGETING)?(r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{id:"monetate-init",strategy:"lazyOnload",children:"var monetateT = new Date().getTime(); var pellamon = {};"}),(0,t.jsx)(a.default,{id:"monetate-script",src:"//se.monetate.net/js/2/a-446afbad/p/pella.com/custom.js",strategy:"lazyOnload"})]}),r[0]=e):e=r[0],e):null}])},180668,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(271645);e.i(806883);var o=e.i(928132),i=e.i(753244),r=e.i(56385),l=e.i(146588),s=e.i(819768),c=e.i(560124);let u=e=>{let{children:t}=e,{getUser:n}=(0,r.useAccountApi)(),{getCart:u}=(0,l.useCart)(),m=(0,a.useCallback)(async(e,t)=>{if(e===o.ACCESS_TOKEN_STORAGE_KEY)try{let e=t?.accessToken??t,[a]=await Promise.all([n(e),u(e)]);a?.profile||(0,s.onAuthError)(Error("Critical error - Failed to validate user integrity"))}catch(e){(0,s.onAuthError)(e)}},[]),{startAuthService:d,stopAuthService:f}=(0,c.useAuthAccount)();return(0,a.useEffect)(()=>{let e=(0,i.createLocalStorageSync)("cartSession");return d({onTokenRenewed:(e,t)=>{m(e,t)},onTokenExpire:t=>{t===o.REFRESH_TOKEN_STORAGE_KEY&&((0,i.removeLocalStorage)("authSession"),e.set({}))},onTokenError:()=>{(0,i.removeLocalStorage)("authSession"),e.set({})}}),()=>{f()}},[]),t};e.s(["default",0,e=>{let a,o=(0,n.c)(2),{children:i}=e;return o[0]!==i?(a=(0,t.jsx)(c.AuthAccountProvider,{children:(0,t.jsx)(u,{children:i})}),o[0]=i,o[1]=a):a=o[1],a}])},640665,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(662537),o=e.i(271645);class i extends o.Component{static getDerivedStateFromError(e){return{hasError:!0}}constructor(e){super(e),this.state={hasError:!1},this.contentRef=(0,o.createRef)()}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}contentRef;
108render(){if(this.state.hasError){let e=this.contentRef.current?.innerHTML||"";return e&&""!==e.trim()?(0,t.jsx)("div",{ref:this.contentRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}}):(0,t.jsx)("div",{className:"flex h-screen items-center overflow-auto bg-neutral-50 py-14",children:(0,t.jsx)("div",{className:"m-auto w-full max-w-150",children:(0,t.jsxs)("div",{className:"bg-white p-14 pt-8 text-center shadow-lg",children:[(0,t.jsx)("a",{href:"/",className:"flex justify-center",children:(0,t.jsx)("div",{className:"relative z-10 mb-2 block h-24 text-4xl font-bold text-black",children:"Pella"})}),(0,t.jsx)("h1",{className:"text-3xl",children:"An error occurred"}),(0,t.jsx)("p",{className:"my-4",children:"We encountered an unexpected error. Please try refreshing the page or return to the homepage."}),(0,t.jsx)("a",{href:"/",className:"block text-blue-600 underline hover:text-blue-800",children:"Return to Homepage"})]})})})}return(0,t.jsx)("div",{ref:this.contentRef,children:this.props.children})}}function r(e,t){a.captureException(e,{contexts:{react:{componentStack:t.componentStack}}})}e.s(["GlobalErrorBoundary",0,e=>{let a,o=(0,n.c)(2),{children:l}=e;return o[0]!==l?(a=(0,t.jsx)(i,{onError:r,children:l}),o[0]=l,o[1]=a):a=o[1],a}],640665)},231466,e=>{"use strict";var t=e.i(843476),n=e.i(500932),a=e.i(189901),o=e.i(687597);e.s(["default",0,e=>{let i,r,l=(0,n.c)(3),{children:s}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(i={"client-id":(0,o.getPublicEnv)().NEXT_PUBLIC_PAYPAL_CLIENT_ID,currency:"USD",components:"messages"},l[0]=i):i=l[0],l[1]!==s?(r=(0,t.jsx)(a.PayPalScriptProvider,{options:i,deferLoading:!0,children:s}),l[1]=s,l[2]=r):r=l[2],r}])},347201,e=>{"use strict";var t=e.i(271645),n=e.i(618566),a=e.i(687597);e.s(["LivePreviewInit",0,()=>{let o=(0,n.useRouter)();return(0,t.useEffect)(()=>{let t;if(window.top===window.self)return;let n=(0,a.getPublicEnv)(),i=n.NEXT_PUBLIC_CONTENTSTACK_API_KEY,r=n.NEXT_PUBLIC_CONTENTSTACK_ENVIRONMENT;return i&&r?(e.A(593958).then(e=>{let{default:n}=e;return t=n.onEntryChange(()=>o.refresh()),n.init({enable:!0,debug:!0,ssr:!0,stackDetails:{apiKey:i,environment:r,branch:"main",locale:"en-us"},mode:"builder",editButton:{exclude:["outsideLivePreviewPortal"]},editInVisualBuilderButton:{enable:!1}})}).catch(()=>{}),()=>{t&&e.A(593958).then(e=>{let{default:n}=e;return n.unsubscribeOnEntryChange(t)}
108).catch(()=>{})}):void console.warn("Contentstack Live Preview: Missing API key or environment configuration")},[o]),null}])},917483,e=>{"use strict";"function"!=typeof globalThis.structuredClone&&(globalThis.structuredClone=e=>JSON.parse(JSON.stringify(e))),e.s(["PolyfillsInit",0,()=>null],917483)},94417,e=>{"use strict";var t=e.i(500932),n=e.i(271645);function a(e){e.addIntegration(e.replayIntegration({blockAllMedia:!1,maskAllText:!1,maskAllInputs:!0}))}function o(){}function i(){e.A(45990).then(a).catch(o)}e.s(["SentryReplay",0,()=>{let e,a=(0,t.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],a[0]=e):e=a[0],(0,n.useEffect)(i,e),null}],94417)}]); 109 110//# debugId=d3a8fbc0-ce15-0236-12a1-70d4f8951b29
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.