PageSourceSearch

https://www.lewiscellars.com/_next/static/chunks/8464.555be2e9f02c9d44.js

js lewiscellars.com collected 2026-09-26 05:51:09 UTC 39,017 bytes, 9 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6a3946a6-e56b-4590-8ad0-9ca7bf94f25d",e._sentryDebugIdIdentifier="sentry-dbid-6a3946a6-e56b-4590-8ad0-9ca7bf94f25d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8464],{18092:(e,a,t)=>{t.d(a,{Q:()=>n,t:()=>s});var o=t(25421);let l={type:"email",label:"Email Address",name:"user_email",autocomplete:"email",placeholder:"Email Address",validationRules:{pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Please provide a valid email address (eg: [email protected])"}},defaultValue:"",size:{mobile:12,tablet:6,desktop:6}},i={type:"tel",label:"Phone Number",name:"phone_number",placeholder:"Phone",validationRules:{pattern:{value:/^(\+?[1]{1}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,message:"Please enter a valid phone number (e.g. +12125552368)"}},defaultValue:"",autocomplete:"tel",size:{mobile:12,tablet:6,desktop:6}},s=({minAge:e,maxAge:a,inputName:t})=>{let{minDate:l,maxDate:i}=(0,o.oc)(e,a),s=l.toISOString().split("T")[0],n=i.toISOString().split("T")[0];return{type:"date",label:"Date of Birth*",name:t||"date_of_birth",defaultValue:"",max:s,validationRules:{required:"Please enter a valid date",pattern:{value:/^\d{4}-\d{2}-\d{2}$/,message:"Please enter a valid date format MM-DD-YYYY"},validate:{dateIsInRange:e=>{let a=new Date(e);return!(a>=new Date(s)||a<=new Date(n))||"Please enter a date within the date picker range"}}},size:{mobile:12,tablet:6,desktop:6}}},n={firstName:{type:"text",label:"First Name*",name:"first_name",autocomplete:"given-name",placeholder:"First Name",validationRules:{required:"Please enter first name"},defaultValue:"",size:{mobile:12,tablet:6,desktop:6}},lastName:{type:"text",label:"Last Name*",name:"last_name",autocomplete:"family-name",placeholder:"Last Name",validationRules:{required:"Please enter last name"},defaultValue:"",size:{mobile:12,tablet:6,desktop:6}},emailNotRequired:l,emailRequired:Object.assign(Object.assign({},l),{label:"Email Address*",validationRules:{required:"Please enter email address",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Please provide a valid email address (eg: [email protected])"}}}),phoneNotRequired:i,phoneRequired:Object.assign(Object.assign({},i),{label:"Phone Number*",validationRules:{required:"Please enter a valid phone number (e.g. +12125552368)",pattern:{value:/^(\+?[1]{1}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,message:"Please enter a valid phone number (e.g. +12125552368)"}}}),addressState:{type:"select",label:"State*",name:"state",autocomplete:"address-level1",validationRules:{required:"Please select a state"},defaultValue:"",size:{mobile:6,tablet:6,desktop:6},optgroups:[{label:"",options:[{label:"State",value:""},{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District Of Columbia",value:"DC"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Pennsylvania",value:"PA"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}]}]},addressStreet:{type:"text",label:"Street Address*",placeholder:"Street Address*",name:"street_1",autocomplete:"address-line1",validationRules:{required:"Please enter street address"},defaultValue:"",size:{mobile:12,tablet:12,desktop:12}},addressStreet2:{type:"text",label:"Apt, Suite, Etc.",placeholder:"Apt, Suite, Etc.",name:"street_2",autocomplete:"address-line2",defaultValue:"",size:{mobile:6,tablet:6,desktop:6}},addressCity:{type:"text",label:"City*",placeholder:"City*",name:"city",autocomplete:"address-level2",validationRules:{required:"Please enter city"},defaultValue:"",size:{mobile:6,tablet:6,desktop:6}},addressZipCode:{type:"text",label:"Zip/Postal Code*",placeholder:"Zip/Postal Code*",name:"zip_code",autocomplete:"postal-code",validationRules:{required:"Please enter zip"},defaultValue:"",size:{mobile:6,tablet:6,desktop:6}},legalCheckbox:{type:"checkbox",label:"I have read and agree to the <a href='/privacy-policy'>Privacy Policy</a> and <a href='/terms-of-use'>Terms of Use</a>.*",name:"accept_legal",validationRules:{required:"This field is required"},size:{mobile:12,tablet:12,desktop:12}}}},25421:(e,a,t)=>{var o;function l({event:e,data:a}
1){if("undefined"!=typeof window)switch(void 0===window.dataLayer&&(window.dataLayer=[]),e){case o.CONTACT_FORM_SUBMISSION:window.dataLayer.push(Object.assign({event:o.CONTACT_FORM_SUBMISSION},a));break;case o.POPUP_FORM_SUBMISSION:window.dataLayer.push(Object.assign({event:o.POPUP_FORM_SUBMISSION},a));break;case o.POPUP_FORM_VIEWED:window.dataLayer.push(Object.assign({event:o.POPUP_FORM_VIEWED},a));break;case o.KLAVIYO_FORM_SUBMISSION:window.dataLayer.push(Object.assign({event:o.KLAVIYO_FORM_SUBMISSION},a));break;default:console.error(`Undefined DataLayer Event: ${e}`)}}function i(e){let a=function e(a){if(null===a||"object"!=typeof a)return a;if(a instanceof RegExp)return new RegExp(a);if(a instanceof Date)return new Date(a.getTime());if(a instanceof Function)return a;let t=Array.isArray(a)?[]:{};return Object.keys(a).forEach(o=>{t[o]=e(a[o])}),t}(e);return a.size.mobile=12,a.size.tablet=12,a.size.desktop=12,a}function s(e){let a=new Date;return a.setFullYear(a.getFullYear()-e),a}function n(e,a){return{minDate:s(e),maxDate:s(a)}}function r(e){let a;return(a=e?e.replace(/\D/g,""):"")&&(11===a.length?a=`+${a}`:10===a.length&&(a=`+1${a}`)),a}t.d(a,{Mr:()=>i,YT:()=>o,d:()=>l,n4:()=>r,oc:()=>n}),!function(e){e.CONTACT_FORM_SUBMISSION="contact_form_submission",e.KLAVIYO_FORM_SUBMISSION="klaviyo_form_submission",e.POPUP_FORM_SUBMISSION="popup_form_submission",e.POPUP_FORM_VIEWED="popup_form_viewed"}(o||(o={}))},46723:(e,a,t)=>{t.d(a,{A:()=>f});var o=t(95155),l=t(22544),i=t(31713),s=t(69691),n=t(97625),r={_getCss:function(){return d},visuallyHidden:"InputFields-module_visuallyHidden__Z2X7u"},d=".InputFields-module_visuallyHidden__Z2X7u{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}";let m=(0,n.X)(function(e){let{inputError:a,formId:t,data:i,hasInfoModal:n}=e,{type:d,name:m,label:u,maxLength:_,max:c,min:p,validationRules:f,hasDependentFields:b,defaultValue:h,autocomplete:g,placeholder:v}=i,{register:x,watch:S}=(0,l.xW)();b&&S(m);let y=Object.assign({id:m,name:m,required:!!(null==f?void 0:f.required),"aria-invalid":!!a,placeholder:v,autoComplete:g},a?{"aria-describedby":`error__${m}`}:null),k=e=>(0,o.jsx)("div",{className:`form__field__error form__field__error--${e}`,"data-testid":`form__field__error--${e}`,children:(0,o.jsx)("p",{role:"alert",id:`error__${e}`,children:null==a?void 0:a.message})});return({date:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",Object.assign({"data-testid":`form__field--${m}`},y,{min:p,max:c,type:d},x(m,f),{className:(0,s.$)(`form__field form__field__date form__field__date--${m}`,n&&"has-info-modal")})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label  form__field__label__date form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),tel:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",Object.assign({"data-testid":`form__field--${m}`},y,{type:d},x(m,f),{className:(0,s.$)(`form__field form__field__tel form__field__tel--${m}`,n&&"has-info-modal")})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__tel form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),checkbox:()=>{let{title:t}=e.data,{enableLegalFields:l,legalFields:i}=e,r=u;return l&&i&&("accept_legal"===m?r=i.acceptLegal:"email_opt_in"===m&&(r=i.emailOptIn)),(0,o.jsxs)(o.Fragment,{children:[t&&(0,o.jsx)("p",{className:"form__field__checkbox--title",children:t}),(0,o.jsxs)("div",{className:(0,s.$)(`form__field__checkbox form__field__checkbox--${m}`,n&&"has-info-modal"),children:[(0,o.jsx)("input",Object.assign({},x(m,f),y,{type:d,value:"True",className:(0,s.$)(`form__field__checkbox__input form__field__checkbox__input--${m}`,n&&"has-info-modal"),"data-testid":`form__field--${m}`})),(0,o.jsx)("div",{className:`form__field__checkbox__square form__field__checkbox__square--${m}`}),(0,o.jsx)("label",{htmlFor:`${String(m)}`,className:`form__field__label form__field__label__checkbox  form__field__label--${m}`,dangerouslySetInnerHTML:{__html:r}})]}),a&&k(m)]})},radio:()=>{var t;let l=e.data;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__radio form__field__label--${m}`,children:u}),(0,o.jsx)("div",Object.assign({},y,{className:(0,s.$)(` form__field__radio form__field__radio--${m}`,n&&"has-info-modal"),"data-testid":`form__field--${m}`,children:null==(t=l.options)?void 0:t.map(function(e,a){return(0,o.jsxs)("div",{className:` form__field__radio__option form__field__radio__option--${m}`,children:[(0,o.jsx)("label",{htmlFor:e.label,children:e.label}),(0,o.jsx)("input",Object.assign({type:"radio",id:e.label,value:e.value},x(m,f)))]},`${e.label}--${a}`)})})),a&&k(m)]})},file:()=>{let{labelSubtext:t,accept:l}=e.data;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__file form__field__label--${m}`,children:u}),t&&(0,o.jsx)("p",{className:"form__field__label__file--subtext",children:t}),(0,o.jsx)("div",{className:(0,s.$)(`form__field__file form__field__file--${m}`,n&&"has-info-modal"),"data-testid":`form__field--${m}`,children:(0,o.jsx)("input",Object.assign({},y,{type:d},x(m,f),{className:(0,s.$)("form__field__file__input"),accept:l}))}),a&&k(m)]})},textarea:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("textarea",Object.assign({"data-testid":`form__field--${m}`},y,x(m,f),{className:(0,s.$)(`form__field form__field__textarea form__field__textarea--${m}`,n&&"has-info-modal"),maxLength:_&&_})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__textarea form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),select:()=>{var t;let l=e.data;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("select",Object.assign({},y,x(m,f),{className:(0,s.$)(`form__field form__field__select form__field__select--${m}`,n&&"has-info-modal"),defaultValue:h,"data-testid":`form__field--${m}`,children:null==(t=l.optgroups)?void 0:t.map(function(e,a){var t;{let l=null==(t=e.options)?void 0:t.map(function(e,a){return(0,o.jsx)("option",{value:e.value,disabled:!e.value||"default"==e.value,children:e.label},`${e.label}--${a}`)});return e.label?(0,o.jsx)("optgroup",{label:e.label,children:l},`${e.label}--${a}`):l}})}
1)),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__select form__field__label--${m}`,children:u}),a&&k(m)]})},email:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",Object.assign({},y,x(m,f),{type:d,className:(0,s.$)(`form__field form__field__email form__field__email--${m}`,n&&"has-info-modal"),"data-testid":`form__field--${m}`})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__email form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),number:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",Object.assign({"data-testid":`form__field--${m}`},y,{type:d},x(m,f),{maxLength:_,className:(0,s.$)(`form__field form__field__number form__field__number--${m}`,n&&"has-info-modal")})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__number form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),text:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",Object.assign({"data-testid":`form__field--${m}`},y,{type:d},x(m,f),{maxLength:_,className:(0,s.$)(`form__field form__field__text form__field__text--${m}`,n&&"has-info-modal")})),(0,o.jsx)("label",{htmlFor:m,className:`form__field__label form__field__label__text form__field__label--${m}`,"data-testid":`form__field__label--${m}`,children:u}),a&&k(m)]}),hidden:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{htmlFor:m,className:(0,s.$)(`form__field__label form__field__label--${m}`,r.visuallyHidden),children:u}),(0,o.jsx)("input",Object.assign({"data-testid":`form__field__hidden--${m}`},y,{type:d},x(m,f),{value:"form_id"===m?t:h||"",className:(0,s.$)(`form__field form__field__hidden form__field__hidden--${m}`,n&&"has-info-modal")})),a&&k(m)]})})[e.data.type]()},r);var u=t(12115),_=t(9799),c=t(90280);function p(e){let{label:a,infoIcon:t,closeIcon:l,modalBody:i,ariaLabel:s}=e,[n,r]=(0,u.useState)(!1),d=(0,u.useRef)(null),m=(0,u.useRef)(!1),p=s||a,f=()=>{r(!1),m.current=!0};return(0,u.useEffect)(()=>{var e;
1!n&&m.current&&(null==(e=d.current)||e.focus(),m.current=!1)},[n]),(0,o.jsxs)("div",{className:"info-modal",children:[(0,o.jsxs)("button",{ref:d,type:"button",className:"info-modal__button-open","aria-label":p,"aria-expanded":n,"aria-haspopup":"dialog",onClick:()=>{r(!0)},children:[(0,o.jsx)("img",{src:t,alt:"",loading:"lazy"}),a]}),(0,o.jsx)(c.L,{isOpen:n,onDismiss:f,className:"info-modal__dialog-overlay",children:(0,o.jsxs)(_.C,{ariaLabel:p,isOpen:n,className:"info-modal__dialog-content",children:[(0,o.jsx)("button",{onClick:f,className:"info-modal__button-close","aria-label":"close modal",children:(0,o.jsx)("img",{src:l,alt:"",loading:"lazy"})}),(0,o.jsx)("div",{className:"info-modal__body",children:i})]})})]})}function f(e){let{formId:a,data:t,enableLegalFields:n,legalFields:r}=e,{formState:{errors:d}}=(0,l.xW)(),u=(()=>{let{getValues:e}=(0,l.xW)();return Object.assign(Object.assign({},(0,l.FH)()),e())})();function _(e){let a=!1;return e.forEach(function(e){"default"!==e[1]&&e[1]!==u[e[0]]||(a=!0)}),0===e.length&&(a=!0),a}return(0,o.jsx)(o.Fragment,{children:t.map(function(e,t){return _(e.visibleFieldsetDependencies||[])?(0,o.jsxs)("fieldset",{className:"row",children:[e.legend&&(0,o.jsx)("legend",{className:(0,s.$)("form__legend","col-12"),children:e.legend}),e.legendSubtext&&(0,o.jsx)("div",{className:(0,s.$)("form__legend--subtext","col-12"),dangerouslySetInnerHTML:{__html:(0,i.z)(e.legendSubtext)}}),e.fields.map(function(e){return e.visibleFieldDependencies&&_(e.visibleFieldDependencies)||!e.visibleFieldDependencies?(0,o.jsxs)("div",{className:(0,s.$)("form__group",`form__group__${e.type}`,"col-12",`col-sm-${e.size.mobile}`,`col-md-${e.size.tablet}`,`col-lg-${e.size.desktop}`),children:[(0,o.jsx)(m,{formId:a,data:e,inputError:d[e.name],enableLegalFields:n,legalFields:r,hasInfoModal:!!e.infoModal}),e.infoModal&&(0,o.jsx)(p,Object.assign({},e.infoModal))]},`${String(e.name)}`):null})]},`fieldset--${t}`):null})})}},48464:(e,a,t)=>{t.r(a),t.d(a,{CYPRESS_COOKIE:()=>H,KLAVIYO_COOKIE_STR:()=>B,PopUp:()=>W});var o=t(95155),l=t(12115),i=t(44705),s=t(72378),n=t(20063),r=t(59944),d=t(69691),m=t(3945),u=t(90280),_=t(9799),c=t(97625),p=t(25421),f=t(65251),b=t(71450),h=t(31713),g=t(163),v=t(31870),x=t(22296),S=t(87449),y=t(22544),k=t(97288),O=t(46723),N=t(57774);let j=e=>{let a=e,[t,o,l]=a.split("-");return t&&o&&l&&(a=`${t}-${o}-${l}`),a};var I=t(27122),w=t(31037),C=t(60609),E=t(17362),P=t(77753);let A=e=>(0,b.sH)(void 0,[e],void 0,function*({builderApiKey:e,requestPayload:a,apiEndpoint:t,formApiKey:o,formData:l,abTestingVariantName:s,formDataObject:n,setErrorMessage:r,setHasError:d}){let m=e=>{console.warn("handleError",e,n),409===(null==e?void 0:e.status)&&t.includes("sms")?r("Sorry this phone number is already associated with an account."):r("Something went wrong, please try again in a few minutes."),d(!0),(0,p.d)({event:p.YT.POPUP_FORM_SUBMISSION,data:{form_id:l.formId,success:!1,abTestingVariantName:s}})};try{let r=yield fetch(t,{method:"POST",headers:{"X-API-KEY":o,"Content-Type":"application/json"},body:a});return r.ok?((0,p.d)({event:p.YT.POPUP_FORM_SUBMISSION,data:{form_id:l.formId,success:!0,abTestingVariantName:s}}),(0,i.u4)({type:w.HE.SUBMIT_FORM_POPUP,apiKey:e}),n.email&&((0,C.W)({event:E.Z.ACTIVE_ON_SITE,userData:{user:{email:n.email}}}),(0,P.m8)({email:n.email})),{successfulRequest:!0}):(m(r),{successfulRequest:!1})}catch(e){return console.error("Fetch error:",e),(0,I.wd)("WWC Popup - form submit error",{level:"error",contexts:{popup:{formEndpoint:t,form_id:l.formId,abTestingVariantName:s},error:{error:e}}}),m(),{successfulRequest:!1}}});function F(e){let a=(0,l.useRef)(null),t=(0,l.useRef)(null),{formType:i,formData:s,formEndpoint:n,formApiKey:r,smsFootnote:m,smsFootnoteRequiresConsent:u,submitButtonText:_,successMessage:c,buttonDesign:v,source:x,abTestingVariantName:I,showErrorMessage:w,showSuccessMessage:C,submittedFormData:E,successCallback:P,additionalFormConfigs:F,builderApiKey:L}=e,M=!s,T=(0,y.mN)({mode:"onTouched"}),{handleSubmit:$,register:R,formState:{errors:D}}=T,[U,K]=(0,l.useState)(!1),[q,z]=(0,l.useState)(!1),[V,Y]=(0,l.useState)(null);(0,l.useEffect)(()=>{z(!!w)},[w]);let B=(0,l.useCallback)(()=>(0,b.sH)(this,void 0,void 0,function*(){var e;K(!0);let a=t.current&&new FormData(t.current);if(!a)return;let o=(e=>{let a={};for(let[t,o]of e.entries()){if(t.includes("form_id")||"sms_footnote_consent"===t)continue;let l=o;t.includes("phone")&&"string"==typeof o&&(l=(0,p.n4)(o)),t.includes("date")&&"string"==typeof o&&(l=j(o)),e.set(t,l),a[t]=l}return a})(a),l=Object.assign(Object.assign(Object.assign({},E),{consent:!0}),I&&{extra_fields:{$ab_testing_variant_name:I}});if(i===f.k6.EMAIL_SMS||i===f.k6.EMAIL_DOB_SMS){let e=i===f.k6.EMAIL_SMS?f.k6.EMAIL_ONLY:f.k6.EMAIL_DOB,a=F.formTypes[e],t=F.formTypes[f.k6.SMS_ONLY],{phone_number:n}=o,r=(0,b.Tt)(o,["phone_number"]);if(a.formApiKey&&a.formEndpoint){if(!(yield A({builderApiKey:L,formApiKey:a.formApiKey,apiEndpoint:a.formEndpoint,formData:s,abTestingVariantName:I,formDataObject:o,setErrorMessage:Y,setHasError:z,requestPayload:JSON.stringify(Object.assign(Object.assign({},l),r))})).successfulRequest)return;if(!n&&P)return void P(Object.assign(Object.assign({},o),{shouldUpdateFormStep:!0}));n&&(yield A({builderApiKey:L,formApiKey:t.formApiKey,apiEndpoint:t.formEndpoint,formData:s,abTestingVariantName:I,formDataObject:o,setErrorMessage:Y,setHasError:z,requestPayload:JSON.stringify(Object.assign(Object.assign(Object.assign({},l),{phone_number:n}),r))})).successfulRequest&&P&&P(Object.assign(Object.assign({},o),{shouldUpdateFormStep:!0}))}}else{let{successfulRequest:e}=yield A({builderApiKey:L,formApiKey:r,apiEndpoint:n,formData:s,abTestingVariantName:I,formDataObject:o,setErrorMessage:Y,setHasError:z,requestPayload:JSON.stringify(Object.assign(Object.assign({},l),o))});e&&P&&P(Object.assign(Object.assign({},o),{shouldUpdateFormStep:!0}))}K(!1),null==(e=t.current)||e.scrollIntoView()}),[I,F,r,s,n,i,E,P]);return M?(0,o.jsx)(g.g,{componentName:"PopUpForm",visible:M}):(0,o.jsx)(k.default,{"data-testid":"popup-form",className:(0,d.$)("form","container"),children:C?(0,o.jsx)("div",{"data-testid":"popupform__success",className:(0,d.$)("richtext","form__success"),role:"alert",dangerouslySetInnerHTML:{__html:(0,h.z)(c)}}):(0,o.jsxs)(y.Op,Object.assign({},T,{children:[q&&(0,o.jsx)("div",{"data-testid":"popup-form__error",className:"form__error",ref:a,children:(0,o.jsx)("p",{role:"alert",children:V||"Please correct the fields in red"})}),(0,o.jsx)("p",{className:"form__required__text",children:"* Denotes a required field"}),(0,o.jsxs)("form",{ref:t,onSubmit:$(B),noValidate:!0,"data-testid":s.formId,children:[(0,o.jsx)(O.A,Object.assign({},s)),x&&(0,o.jsx)("input",{type:"hidden",id:"source",name:"source",value:x}),(0,o.jsx)("div",{className:"form__submit-container","aria-live":"polite",children:(0,o.jsx)(S.default,{as:"button",type:"submit",design:v,className:"form__cta--submit",disabled:U,"aria-busy":U,"data-testid":"popup-form__cta--submit",children:U?"Processing":_||"Submit"})}),m&&u?(0,o.jsx)("div",{className:(0,d.$)("pop-up__sms-footnote","richtext"),children:(0,o.jsx)(N.A,{id:"sms_footnote_consent",ariaRequired:!0,label:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,h.z)(m)}}),errors:D.sms_footnote_consent,reactHookFormsRegister:R("sms_footnote_consent",{required:"This field is required"})})}):null]})]}))})}var L={_getCss:function(){return M},stickyButton:"PopUp-module_stickyButton__1xUAN",popUp:"PopUp-module_popUp__K83R2",close:"PopUp-module_close__7su9V",topImage:"PopUp-module_topImage__BtIel",bottomImage:"PopUp-module_bottomImage__IYemi",backgroundImageContainer:"PopUp-module_backgroundImageContainer__qT-GT",backgroundImage:"PopUp-module_backgroundImage__-5oiv",popupOverlay:"PopUp-module_popupOverlay__1JcL0"},M=".PopUp-module_stickyButton__1xUAN{bottom:0;left:0;position:fixed;top:unset;z-index:90000}.PopUp-module_popUp__K83R2{box-shadow:0 4px 10px 0 rgba(0,0,0,.3);margin:auto;position:relative;text-align:center;width:100%}.PopUp-module_popUp__K83R2 .PopUp-module_close__7su9V{border:none;cursor:pointer;padding:0;position:absolute;right:0;top:0;z-index:1}.PopUp-module_popUp__K83R2 form{align-items:center;display:flex;flex-direction:column}.PopUp-module_popUp__K83R2 form .form__group{width:100%;z-index:2}.PopUp-module_popUp__K83R2 .PopUp-module_bottomImage__IYemi,.PopUp-module_popUp__K83R2 .PopUp-module_topImage__BtIel{display:inline-block;position:relative}.PopUp-module_popUp__K83R2 .PopUp-module_backgroundImageContainer__qT-GT{height:100%;left:0;overflow:hidden;position:absolute;top:0}.PopUp-module_popUp__K83R2 .PopUp-module_backgroundImageContainer__qT-GT .PopUp-module_backgroundImage__-5oiv img{height:100%;object-fit:cover}.PopUp-module_popupOverlay__1JcL0{z-index:2147483547!important}.PopUp-module_popupOverlay__1JcL0 .dialog__content-wrapper{width:100%}",T=t(18092);let $={legend:"",fields:[{type:"hidden",label:"Form ID",name:"form_id",size:{mobile:12,tablet:6,desktop:6}},{type:"hidden",label:"Consent",name:"consent",defaultValue:"true",size:{mobile:12,tablet:6,desktop:6}}]},R=Object.assign(Object.assign({},T.Q.emailRequired),{name:"email"}),D=[R,(0,T.t)({minAge:21,maxAge:100,inputName:"age_gated_date_of_birth"})],U={[f.k6.NO_INPUT]:{formId:"klaviyo-no-inputs",data:[$]},[f.k6.EMAIL_DOB]:{formId:"klaviyo-email-dob",data:[$,{legend:"",fields:D}]},[f.k6.EMAIL_ONLY]:{formId:"klaviyo-email",data:[$,{legend:"",fields:[R]}]},[f.k6.SMS_ONLY]:{formId:"klaviyo-sms",data:[$,{legend:"",fields:[T.Q.phoneRequired]}]},[f.k6.EMAIL_SMS]:{formId:"klaviyo-email-sms",data:[$,{legend:"",fields:[R,T.Q.phoneNotRequired]}]},[f.k6.EMAIL_DOB_SMS]:{formId:"klaviyo-email-dob-sms",data:[$,{legend:"",fields:[...D,T.Q.phoneNotRequired]}]}};function K(e,a){let{type:t,currentFormStep:o,additionalFormConfigs:l}=a,i=a=>{let{formEndpoint:t,formApiKey:o}=l.formTypes[a]||{};return Object.assign(Object.assign({},e),{formData:U[a],formEndpoint:t,formApiKey:o})};switch(t){case f.k6.MULTI_STEP_EMAIL_SMS:return i(1===o?f.k6.EMAIL_ONLY:f.k6.SMS_ONLY);case f.k6.MULTI_STEP_EMAIL_DOB_SMS:return i(1===o?f.k6.EMAIL_DOB:f.k6.SMS_ONLY);case f.k6.EMAIL_SMS:{let e=null==l?void 0:l.formTypes[f.k6.EMAIL_ONLY],a=null==l?void 0:l.formTypes[f.k6.SMS_ONLY];return(null==e?void 0:e.formEndpoint)&&(null==a?void 0:a.formEndpoint)&&(null==e?void 0:e.formApiKey)&&(null==a?void 0:a.formApiKey)||console.warn(`
2            WWC <PopUpForm />
2 received invalid props for rendering.
3            Received:
4            - formEndpointEmail: ${null==e?void 0:e.formEndpoint}
5            - formApiKeyEmail: ${null==e?void 0:e.formApiKey}
6            - formEndpointSms: ${null==a?void 0:a.formEndpoint}
7            - formApiKeySms: ${null==a?void 0:a.formApiKey}
8          `),i(f.k6.EMAIL_SMS)}default:return i(t)}}function q(e){let{formStepContent:a,formStepFootnote:t,smsStepContent:i,isSuccessStep:s,currentFormStep:n,successStepContent:r,smsFootnote:m,smsFootnoteRequiresConsent:u,button:_,maxWidth:c,minHeight:p,mobileSMSLink:y,contactFormButtonDesign:k,formConfigs:O,additionalFormConfigs:N,backgroundImage:j,topImage:I,bottomImage:w,formType:C,closePopup:E,setIsSuccessStepCallback:P,setCurrentFormStepCallback:A,submittedFormData:M,setSubmittedFormData:T,builderApiKey:$,loadConditions:R}=e,{submitButtonText:D,successMessage:q,showErrorMessage:z,showSuccessMessage:V,abTestingVariantName:Y}=O,[B,H]=(0,l.useReducer)(K,{formData:U[f.k6.NO_INPUT],formEndpoint:"",formApiKey:""}),W=C===f.k6.MULTI_STEP_EMAIL_SMS||C===f.k6.MULTI_STEP_EMAIL_DOB_SMS,X=function(){let[e,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{a(function(){var e,a;let t=navigator;if(!0===(null==(e=null==t?void 0:t.userAgentData)?void 0:e.mobile))return!0;let o=!1;return a=(null==t?void 0:t.userAgent)||(null==t?void 0:t.vendor)||"",(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))&&(o=!0),o}())},[]),e}()&&y&&(1===n&&C===f.k6.SMS_ONLY||2===n&&W),J=2===n?i:a;(0,l.useEffect)(()=>{H({type:C,currentFormStep:n,additionalFormConfigs:N}),n!==(W?3:2)||s||C===f.k6.NO_INPUT||P&&P()},[W,N,C,n,s,P]);let Z=e=>{let{imageProps:a,classes:t}=e;if(!(null==a?void 0:a.imageSrc))return null;let{dimensions:l}=a,i=(0,b.Tt)(a,["dimensions"]);return(0,o.jsx)(x.x,Object.assign({},i,l,{disableLazyLoad:R===f.DU.DEFAULT,classes:t}))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.g,{componentName:"Pop Up",visible:!c||!(null==a?void 0:a.headline)||!C}),(0,o.jsxs)("div",{className:(0,d.$)(L.popUp,"pop-up","pop-up__".concat(C.replace(/[ +/]/g,"-").toLowerCase())),style:{maxWidth:"".concat(c,"px"),minHeight:"".concat(p,"px")},"data-testid":"pop-up__content",children:[(0,o.jsx)("button",{"data-testid":"pop-up--close-button","aria-label":"Close pop-up",className:(0,d.$)("pop-up__close-btn",L.close),onClick:()=>{E()},type:"button",children:(0,o.jsx)("span",{children:"✕"})}),(null==j?void 0:j.imageSrc)?(0,o.jsx)("div",{className:(0,d.$)(L.backgroundImageContainer,"pop-up__background-image"),children:Z({imageProps:j,classes:L.backgroundImage})}):null,Z({imageProps:I,classes:(0,d.$)(L.topImage,"pop-up__top-image")}),(0,o.jsxs)("div",s?{className:(0,d.$)("pop-up__success-step-content"),children:[(0,o.jsx)(v.V,Object.assign({},r)),(0,o.jsx)(S.default,{as:"button",design:k,onClick:()=>{P&&P(),E()},children:"Start Shopping"})]}:{className:"pop-up__form-content",children:[J?(0,o.jsx)("div",{className:(0,d.$)("pop-up__step-content"),children:(0,o.jsx)(v.V,Object.assign({},J))}):null,C!==f.k6.NO_INPUT?X?(0,o.jsx)(S.default,{as:"a",href:y,design:k,onClick:()=>{A&&A()},children:"Get Your Offers Now"}):(0,o.jsx)(F,{formType:C,formData:B.formData,formEndpoint:B.formEndpoint,formApiKey:B.formApiKey,submitButtonText:D,successMessage:q,showErrorMessage:z,showSuccessMessage:V,buttonDesign:k,submittedFormData:M,successCallback:e=>{let{email:a,age_gated_date_of_birth:t,shouldUpdateFormStep:o}=e;1===n&&T({email:a,age_gated_date_of_birth:t}),o&&A&&A()},abTestingVariantName:Y,builderApiKey:$,additionalFormConfigs:N,smsFootnote:2===n||C===f.k6.SMS_ONLY?m:void 0,smsFootnoteRequiresConsent:u}):null,1===n&&t?(0,o.jsx)("div",{className:(0,d.$)("pop-up__form-step-footnote","richtext"),dangerouslySetInnerHTML:{__html:(0,h.z)(t)}}):null,2!==n&&C!==f.k6.SMS_ONLY||!m||u?null:(0,o.jsx)("div",{className:(0,d.$)("pop-up__sms-footnote","richtext"),dangerouslySetInnerHTML:{__html:(0,h.z)(m)}}),_&&C===f.k6.NO_INPUT?(0,o.jsx)("div",{className:(0,d.$)(L.buttonContainer,"pop-up__button"),children:(0,o.jsx)(S.default,Object.assign({as:"Link"},_,{onClick:()=>{P&&P(),E()},children:_.text}))}):null]}),Z({imageProps:w,classes:(0,d.$)(L.bottomImage,"pop-up__bottom-image")})]})]})}var z=t(2667),V=t(5916);let Y={hidePopup:!1,completed:!1,step:1},B="wwc-popup__form-data",H="wwc-popup__cypress",W=(0,c.X)(function(e){var a;let{design:t,formStepContent:c,formStepFootnote:b,smsStepContent:h,successStepContent:g,smsFootnote:v,smsFootnoteRequiresConsent:x,maxWidth:S,minHeight:y,minimizedText:k,mobileSMSLink:O,contactFormButtonDesign:N,button:j,loadConditions:I,threshold:w,delayTime:C,enforceOnePopupPerSession:E,backgroundImage:P,topImage:A,bottomImage:F,formType:M,formConfigs:T,additionalFormConfigs:$,excludedUrls:R,builderBlock:D,builderApiKey:U}=e,[K,W]=(0,l.useState)(!1),X=(0,l.useRef)(null),[J,Z]=(0,l.useState)(!1),[G,Q]=(0,l.useState)(1),[ee,ea]=(0,l.useState)(),[et,eo]=(0,l.useState)(I===f.DU.DEFAULT),el=t?t.toLowerCase().split(" ").join("-"):"",ei="wwc-popup__".concat(D.id),es=e=>{let{hidePopup:a,completed:t,step:o,submittedFormData:l}=e;Y.hidePopup=a,Y.completed=t,Y.step=o,l&&s.A.set(B,JSON.stringify(l),{sameSite:"strict",secure:!0}),(0,r.cT)(ei,JSON.stringify(Y))},en=()=>
8{W(!1),et||eo(!0),es({hidePopup:!0,completed:J,step:G,submittedFormData:ee})};(0,l.useEffect)(()=>{et&&K&&(window.sessionStorage.getItem(f.YN)||window.sessionStorage.setItem(f.YN,ei),(0,p.d)({event:p.YT.POPUP_FORM_VIEWED,data:{title:null==c?void 0:c.headline,abTestingVariantName:T.abTestingVariantName}}))},[et,K]),(0,l.useEffect)(()=>{!K&&X.current&&(X.current!==document.body&&X.current.focus(),X.current=null)},[K]);let er=()=>(0,o.jsx)(q,{additionalFormConfigs:$,backgroundImage:P,bottomImage:F,button:j,closePopup:en,contactFormButtonDesign:N,currentFormStep:G,formConfigs:T,formStepContent:c,formType:M,isSuccessStep:J,maxWidth:S,minHeight:y,mobileSMSLink:O,setCurrentFormStepCallback:()=>Q(G+1),setIsSuccessStepCallback:()=>{Z(!0)},setSubmittedFormData:ea,formStepFootnote:b,smsFootnote:v,smsFootnoteRequiresConsent:x,smsStepContent:h,submittedFormData:ee,successStepContent:g,topImage:A,builderApiKey:U,loadConditions:I});(e=>{let{loadConditions:a,delayTime:t,setIsLoaded:o}=e;(0,l.useEffect)(()=>{if(a===f.DU.DELAY&&t){let e=setTimeout(()=>{o(!0)},t);return()=>clearTimeout(e)}},[a,t,o])})({loadConditions:I,setIsLoaded:eo,delayTime:C}),(e=>{let{loadConditions:a,threshold:t=50,isLoaded:o,setIsLoaded:i}=e,s=(e=>{let{enabled:a=!1}=e,[t,o]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=()=>{o(window.scrollY)};return a&&window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[a]),t})({enabled:a===f.DU.SCROLL&&!o});(0,l.useEffect)(()=>{if("undefined"==typeof window||o||!s)return;let{scrollHeight:e,clientHeight:a}=document.documentElement;s/(e-a)*100>=t&&i(!0)},[a,s,t,o,i])})({loadConditions:I,isLoaded:et,setIsLoaded:eo,threshold:w}),(e=>{let{loadConditions:a,isLoaded:t,setIsLoaded:o}=e,i=(0,z.G)({maxMobileBreakpoint:V.L.md}),s=(0,l.useRef)("undefined"!=typeof window?window.scrollY:0),n=(0,l.useRef)(performance.now());(0,l.useEffect)(()=>{if(a!==f.DU.EXIT_INTENT||t)return;let e=!1,l=()=>{e||(o(!0),e=!0)},r=()=>{"hidden"===document.visibilityState&&l()},d=e=>{e.clientY<=50&&!i&&l()},m=()=>{if(!i)return;let e=window.scrollY,a=performance.now();-1*(e-s.current)/(a-n.current)>7&&e<s.current&&l(),s.current=e,n.current=a};return document.addEventListener("visibilitychange",r),window.addEventListener("mousemove",d,{passive:!0}),window.addEventListener("scroll",m,{passive:!0}),()=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("mousemove",d),window.removeEventListener("scroll",m)}},[a,t,o,i])})({loadConditions:I,isLoaded:et,setIsLoaded:eo}),(e=>{let{CYPRESS_COOKIE:a,KLAVIYO_COOKIE_STR:t,LOCAL_STORAGE_STR:o,isOpen:n,setIsOpen:d,setIsLoaded:m,currentFormStep:u,setCurrentFormStep:_,isSuccessStep:c,setIsSuccessStep:p,setSubmittedFormData:f}=e;(0,l.useEffect)(()=>{let e=(0,r.sl)(o,{shouldReturnValue:!0});if(s.A.get(a))d(!1);else if((0,i.JN)())d(!0);else if("string"==typeof e){let a,o=(a=e)?JSON.parse(a):null;if(o){let e,a=(e=s.A.get(t))&&"undefined"!==e?JSON.parse(e):null;m(!0),d(!o.hidePopup&&!o.completed),a&&!n&&_(o.step),o.completed&&p(o.completed),a&&f(a)}}else d(!0)},[a,t,o,c,u,n,d,m,_,p,f])})({CYPRESS_COOKIE:H,KLAVIYO_COOKIE_STR:B,LOCAL_STORAGE_STR:ei,isOpen:K,setIsOpen:W,setIsLoaded:eo,currentFormStep:G,setCurrentFormStep:Q,isSuccessStep:J,setIsSuccessStep:Z,setSubmittedFormData:ea});let{enforceSession:ed}=(e=>{let{isLoaded:a,isOpen:t,enforceOnePopupPerSession:o,LOCAL_STORAGE_STR:s}=e,[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if("undefined"==typeof window)return;let e=window.sessionStorage.getItem(f.YN);o&&e&&e!==s&&!(0,i.JN)()&&r(!0)},[a,t,o,s]),{enforceSession:n}})({isLoaded:et,isOpen:K,enforceOnePopupPerSession:E,LOCAL_STORAGE_STR:ei});(0,l.useEffect)(()=>{J&&s.A.remove(B)},[J]),(0,m._)(en,["Escape"]);let em=(0,n.usePathname)();return ed||(null==R?void 0:R.some(e=>(null==e?void 0:e.excludedUrl)&&em.includes(e.excludedUrl)))?null:K||!k||J?(0,i.JN)()?(0,o.jsx)("div",{className:"popup-overlay__".concat(el),style:{"--max-width":"".concat(S,"px")},children:er()}):K&&et?(0,o.jsx)(u.L,{isOpen:!0,className:(0,d.$)(L.popupOverlay,"popup-overlay__".concat(el)),children:(0,o.jsx)(_.C,{isOpen:!0,ariaLabel:("string"==typeof(null==c?void 0:c.headline)?c.headline:null==(a=null==c?void 0:c.headline)?void 0:a.text)||"Popup",inlineStyles:{"--max-width":"".concat(S,"px")},children:er()})}):null:(0,o.jsxs)("div",{className:(0,d.$)(L.stickyButton,"pop-up__minimized"),"data-testid":"pop-up__minimized",children:[(0,o.jsx)("button",{"aria-label":"Close minimized popup button",className:(0,d.$)("pop-up__minimized__close-button",L.minimizedButtonClose),onClick:()=>{W(!1),es({hidePopup:!0,completed:!0,step:G,submittedFormData:ee}),Z(!0)},"data-testid":"pop-up__minimized__close-button",children:(0,o.jsx)("span",{children:"✕"})}),(0,o.jsx)("button",{className:(0,d.$)("pop-up__minimized__open-button",L.minimizedButtonOpen),onClick:()=>(X.current=document.activeElement,W(!0),void es({hidePopup:!1,completed:Y.completed,step:G})),"data-testid":"pop-up__minimized__open-button",children:k})]})},L)},57774:(e,a,t)=>{t.d(a,{A:()=>u});var o=t(71450),l=t(95155),i=t(67909),s=t(69691),n=t(97625),r={_getCss:function(){return d},checkboxContainer:"Checkbox-module_checkboxContainer__A5wXo",checkboxElement:"Checkbox-module_checkboxElement__uOmNe",noErrorBorderColor:"Checkbox-module_noErrorBorderColor__DQb-T"},d='.Checkbox-module_checkboxContainer__A5wXo label{display:flex;width:fit-content}.Checkbox-module_checkboxContainer__A5wXo label:hover{cursor:pointer}.Checkbox-module_checkboxContainer__A5wXo label a{text-decoration:underline;white-space:nowrap}.Checkbox-module_checkboxContainer__A5wXo label .Checkbox-module_checkboxElement__uOmNe{-webkit-appearance:none;appearance:none;cursor:pointer;height:1rem;margin:0 10px 0 0;min-width:1rem;width:1rem}.Checkbox-module_checkboxContainer__A5wXo label .Checkbox-module_checkboxElement__uOmNe:not(.Checkbox-module_noErrorBorderColor__DQb-T):invalid,.Checkbox-module_checkboxContainer__A5wXo label .Checkbox-module_checkboxElement__uOmNe:not(.Checkbox-module_noErrorBorderColor__DQb-T)[aria-invalid=true]{border:1px solid #d52a23}.Checkbox-module_checkboxContainer__A5wXo label .Checkbox-module_checkboxElement__uOmNe:before{content:"";height:calc(1rem - 2px);opacity:0;position:absolute;width:calc(1rem - 2px)}.Checkbox-module_checkboxContainer__A5wXo label .Checkbox-module_checkboxElement__uOmNe:checked:before{opacity:1}';let m=(0,i.default)(()=>t.e(4239).then(t.bind(t,34239)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../../../modules/CustomErrorMessage/CustomErrorMessage.js")]}}),u=(0,n.X)(e=>{var{id:a,label:t,className:i,errors:n,noErrorBorder:d,ariaRequired:u,reactHookFormsRegister:_}=e,c=(0,o.Tt)(e,["id","label","className","errors","noErrorBorder","ariaRequired","reactHookFormsRegister"]);return(0,l.jsxs)("div",{className:(0,s.$)(i&&i,"checkbox__outer-container"),children:[(0,l.jsx)("div",{className:r.checkboxContainer,children:(0,l.jsxs)("label",{children:[(0,l.jsx)("input",Object.assign({type:"checkbox",className:(0,s.$)(r.checkboxElement,"checkbox__element",d&&r.noErrorBorderColor),"aria-invalid":!!n,"aria-describedby":n&&"".concat(a,"-error"),"aria-required":u},_,c)),(0,l.jsx)("div",{children:t})]})}),(null==n?void 0:n.message)?(0,l.jsx)(m,{id:"".concat(a,"-error"),classes:"checkbox__error",children:null==n?void 0:n.message}):null]})},r)}}]);
9//# sourceMappingURL=8464.555be2e9f02c9d44.js.map

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.