"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14806],{13993:(e,t,o)=>{o.d(t,{A:()=>n});var r=o(14232);let n=e=>{let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function o(o){t&&t.current&&!t.current.contains(o.target)&&e(o)}return document.addEventListener("keydown",o),document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("keydown",o)}}),t}},19097:(e,t,o)=>{o.d(t,{A:()=>n});var r=o(14232);let n=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(void 0!==window.orientation||!!navigator.userAgent.match(/IEMobile/)||!!navigator.userAgent.match(/Android/i)||!!navigator.userAgent.match(/webOS/i)||!!navigator.userAgent.match(/iPhone/i)||!!navigator.userAgent.match(/iPad/i)||!!navigator.userAgent.match(/iPod/i)||!!navigator.userAgent.match(/BlackBerry/i))},[]),e}},40864:(e,t,o)=>{o.d(t,{A:()=>w});var r=o(29747),n=o(14232),a=o(73018),i=o(59266),s=o(17596),l=o(13993),c=o(54337),d=o(46605),u=o(55705),p=o(25847),E=o(99371),S=o(57532),f=o(87455);let h=f.Ay.core,m=new h.SharedCredentials("31794241460100215"),I=new h.ClientBuilder(m).withLicenses(["us-autocomplete-pro-cloud"]).buildUsAutocompleteProClient(),A=f.Ay.usAutocompletePro.Lookup,b=[];async function g(e,t){let o;try{let r=new A(e);t&&(r.includeOnlyZIPCodes=[t]);let n=await I.send(r);o=n.result.length?n.result:b}catch(e){o=b}return o}var v=o(63276),_=o(44364),T=o(63381),y=o(64398),D=o(36384);let C={customContainerStyles:{marginBottom:T.E.SIZE_20},customError:[D.Il.bodyCopyTight],flexView:{display:"flex"},inputHasError:{paddingBottom:T.E.SIZE_20},selcetInputHasError:{paddingBottom:T.E.SIZE_20,paddingTop:T.E.SIZE_20},stateView:{width:"100%",marginRight:T.E.SIZE_10},suggestionItem:{marginTop:T.E.SIZE_15,cursor:"pointer"},suggestionText:{color:_.l.GLOBAL.BLACK,[v.MQ.S]:(0,D._R)(16,22)},suggestionView:{background:_.l.GLOBAL.WHITE,border:"1px solid ".concat(_.l.LIGHT.GRAY_10),borderRadius:T.E.SIZE_15,boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1)",marginTop:T.E.SIZE_10,maxHeight:200,overflowY:"auto",padding:"0px ".concat(T.E.SIZE_20,"px ").concat(T.E.SIZE_10,"px ").concat(T.E.SIZE_20,"px"),position:"absolute",top:70,width:"100%",zIndex:y.M.FRONT-1},wrapper:{position:"relative"},zipView:{width:"100%",marginLeft:T.E.SIZE_10}};var R=o(94631);let L={[R.f.ADDRESS1]:(0,S.ui)("checkout.paymentType.error.".concat(R.f.ADDRESS1)),[R.f.ADDRESS2]:(0,S.ui)("checkout.paymentType.error.".concat(R.f.ADDRESS2)),[R.f.CITY]:(0,S.ui)("checkout.paymentType.error.".concat(R.f.CITY)),[R.f.ZIP]:(0,S.ui)("checkout.paymentType.error.".concat(R.f.ZIP)),[R.f.STATE]:(0,S.ui)("checkout.paymentType.error.".concat(R.f.STATE)),isMilitaryAddress:(0,S.ui)("checkout.paymentType.error.isMilitaryAddress")},x=e=>{var t,o,r,n;let a=E.kc.test(null!==(r=e[R.f.CITY])&&void 0!==r?r:""),i=["APO","FPO","DPO"].includes(null===(t=e[R.f.CITY])||void 0===t?void 0:t.toLocaleUpperCase()),l=E.Zy.test(null!==(n=e[R.f.ZIP])&&void 0!==n?n:""),c=!/P\.?\s*O\.?\s*BOX/gi.test(null===(o=e[R.f.ADDRESS1])||void 0===o?void 0:o.toLowerCase())&&""!==e[R.f.ADDRESS1]&&null!==e[R.f.ADDRESS1]&&void 0!==e[R.f.ADDRESS1],d=!!e[R.f.STATE]&&(0,s.cw)(e[R.f.STATE]);return a&&!i&&l&&c&&d},w=function(e){var t,o,f,h,m;let{onChange:I,values:A,isSubmitted:v,cartId:_,phone:T,setIsSmartyAddressValid:y,installerId:D,isSameAddress:w}=e,[Y,O]=(0,n.useState)(A||R.u),[Z,G]=(0,n.useState)([]),[P,B]=(0,n.useState)(!1),[k,H]=(0,n.useState)(!1),[M,F]=(0,n.useState)(R.u),[N,U]=(0,n.useState)(!1),z=(0,l.A)(function(){H(!1),B(!1)}),W=E.kc.test(null!==(h=Y[R.f.CITY])&&void 0!==h?h:""),V=E.Zy.test(null!==(m=Y[R.f.ZIP])&&void 0!==m?m:""),q=/P\.?\s*O\.?\s*BOX/gi.test(null===(t=Y[R.f.ADDRESS1])||void 0===t?void 0:t.toLowerCase()),K=/P\.?\s*O\.?\s*BOX/gi.test(null===(o=Y[R.f.ADDRESS2])||void 0===o?void 0:o.toLowerCase()),X=!q&&""!==Y[R.f.ADDRESS1]&&null!==Y[R.f.ADDRESS1]&&void 0!==Y[R.f.ADDRESS1],j=(0,s.cw)(Y[R.f.STATE]),Q=["APO","FPO","DPO"].includes(null===(f=Y[R.f.CITY])||void 0===f?void 0:f.toLocaleUpperCase()),J=e=>t=>{let o=t;e===R.f.STATE&&(o=(0,s.yZ)(t)),F(t=>({...t,[e]:""})),K&&y&&y(!1),O({...Y,[e]:o})},$=(0,n.useCallback)((0,p.A)(async(e,t)=>{G(await g(e,t))},d.E.MS300),[]),ee=e=>{let{city:t,state:o,streetLine:r,zipcode:n,secondary:a}=e;O({...Y,addressLine1:r,addressLine2:a,city:t,state:o,zip:n}),F(R.u),B(!0),H(!1)},et=e=>()=>{ee(e)};return(0,n.useEffect)(()=>{let e=async()=>{let e=await (0,c.fl)({query:{cartId:_||"12345"},input:{...Y,phone:T||"",installerId:D}});e&&!e.isSuccess&&(U(!1),F(t=>({...t,[R.f.ZIP]:e.error.message?e.error.message:(0,S.ui)("checkout.paymentType.error.nonServicableZip")}))),e.isSuccess&&(U(!0),F(e=>({...e,[R.f.ZIP]:""})))};V&&D&&e()},[_,Y.zip]),(0,n.useEffect)(()=>{v&&F(e=>({...e,[R.f.ADDRESS1]:X?"":L[R.f.ADDRESS1],[R.f.CITY]:W?"":L[R.f.CITY],[R.f.STATE]:j?"":L[R.f.STATE],[R.f.ZIP]:V?"":L[R.f.ZIP]}))},[v]),(0,n.useEffect)(()=>{A&&A.addressLine1&&($(A.addressLine1),H(!1))},[]),(0,n.useEffect)(()=>{A&&A[R.f.ADDRESS1]!==Y[R.f.ADDRESS1]&&O(A)},[w]),(0,n.useEffect)(()=>{let e=async e=>{let t=x(e);y&&(t?y(!0):y(!1));let o=await g(e[R.f.ADDRESS1],e[R.f.ZIP]);I(e,o[0],D?t&&N:t,P,N)};if(P)e(Y);else{let e=x(Y);y&&(e?y(!0):y(!1)),e&&I(Y,Z[0],D?e&&N:e,P,N)}},[Y,P,N]),(0,n.useEffect)(()=>{Z.length?H(!0):H(!1)},[Z]),(0,r.FD)("div",{"data-component":"SmartyStreetAddressForm",children:[(0,r.FD)("div",{css:[C.wrapper,!!M[R.f.ADDRESS1]&&C.inputHasError],children:[(0,r.Y)(a.A,{name:R.f.ADDRESS1,label:(0,S.ui)("addressForm.addressLine1"),onChange:e=>{let t={...Y,addressLine1:e};F(e=>({...e,[R.f.ADDRESS1]:""})),O(t),!X&&y&&y(!1),(0===e.length||q)&&G(b),$(e)},value:Y[R.f.ADDRESS1],required:!0,error:{hasError:!X,errorMessage:q?(0,S.ui)("checkout.paymentType.error.address1Error"):L[R.f.ADDRESS1]},customContainerStyles:C.customContainerStyles,customErrorStyle:C.customError,hasError:!!M[R.f.ADDRESS1],"data-element":"Input"}),k&&(0,r.Y)("div",{css:C.suggestionView,ref:z,children:Z.map((e,t)=>(0,r.Y)("div",{css:C.suggestionItem,onClick:et(e),children:(0,r.Y)("span",{css:C.suggestionText,children:"".concat(e.streetLine," ").concat(e.secondary," ").concat(e.city,", ").concat(e.state,", ").concat(e.zipcode)})},t))})]}),(0,r.Y)("div",{css:C.customContainerStyles,children:(0,r.Y)(a.A,{name:R.f.ADDRESS2,label:(0,S.ui)("addressForm.addressLine2"),onChange:J(R.f.ADDRESS2),value:Y[R.f.ADDRESS2],error:{hasError:K,errorMessage:K?(0,S.ui)("checkout.paymentType.error.address1Error"):L[R.f.ADDRESS2]},customErrorStyle:C.customError,"data-element":"Input"})}),(0,r.Y)("div",{css:C.customContainerStyles,children:(0,r.Y)(a.A,{name:R.f.CITY,label:(0,S.ui)("addressForm.city"),onChange:J(R.f.CITY),value:Y[R.f.CITY],required:!0,error:{hasError:Q||!W,errorMessage:Q?L.isMilitaryAddress:L[R.f.CITY]},customErrorStyle:C.customError,hasError:!!M[R.f.CITY],"data-element":"Input"})}),(0,r.FD)("div",{css:[C.flexView,!!M[R.f.STATE]&&C.selcetInputHasError],children:[(0,r.Y)("div",{css:C.stateView,children:(0,r.Y)(i.A,{id:"select-state",name:R.f.STATE,label:(0,S.ui)("addressForm.state"),list:u.K,placeholder:"",onChange:J(R.f.STATE),value:Y[R.f.STATE],required:!0,error:{hasError:!j,errorMessage:L[R.f.STATE]},customErrorStyles:C.customError,hasError:!!M[R.f.STATE],"data-element":"Select"})}),(0,r.Y)("div",{css:C.zipView,children:(0,r.Y)(a.A,{name:R.f.ZIP,label:(0,S.ui)("addressForm.zipCode"),onChange:J(R.f.ZIP),value:Y[R.f.ZIP],required:!0,error:{hasError:!V,errorMessage:""!==M[R.f.ZIP]?M[R.f.ZIP]:L[R.f.ZIP]},customErrorStyle:C.customError,hasError:!!_&&!!M[R.f.ZIP],"data-element":"Input"})})]})]})}},59266:(e,t,o)=>{o.d(t,{A:()=>L});var r=o(29747),n=o(14232),a=o(10983),i=o(20735),s=o(13993),l=o(19097);let c=function(e){let[t,o]=(0,n.useState)(-1);return(0,n.useEffect)(()=>()=>{t>0&&clearTimeout(t)},[t]),(0,n.useCallback)(()=>{e&&e.current&&o(window.setTimeout(()=>{var t;null===(t=e.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})}))},[e])};var d=o(22607),u=o(84473),p=o(44364),E=o(63381),S=o(36384);let f={disabled:{opacity:.4,pointerEvents:"none"},inheritBorder:{borderBottom:"2px dotted",borderBottomColor:"inherit"},inheritBorderColor:{borderBottomColor:"inherit"},inheritFocusBorder:{borderBottom:"2px dotted transparent","&:hover, &:focus, &:active":{borderBottomColor:"inherit"}},option:[S.Il.bodyCopy,{"& button::after":{content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%"},"&:hover":{span:{color:p.l.GLOBAL.BLACK,borderBottom:"2px dotted",borderBottomColor:"inherit"}},backgroundColor:"transparent",color:p.l.LIGHT.GRAY_70,paddingBottom:E.E.SIZE_05,paddingTop:E.E.SIZE_05,position:"relative"}],optionButton:{textAlign:"left"},optionFocused:{color:p.l.GLOBAL.ORANGE},optionSelected:{color:p.l.GLOBAL.ORANGE}},h=function(e){let{customCss:t,baseId:o,focusedOptionIndex:n,selectedOptionIndex:a,index:i,option:s,optionClick:l,ref:c}=e,d=i===n;return(0,r.Y)("li",{"aria-selected":d?"true":"false",id:"option_".concat(o),role:"option",css:[f.option,d&&f.optionFocused,i===a&&f.optionSelected,t],ref:c,tabIndex:-1,"data-component":"Option",children:(0,r.Y)("button",{className:"item-button","data-value":s.value,id:"".concat(o,"__option-button-").concat(i),onClick:()=>{l(s)},tabIndex:-1,type:"button",css:f.optionButton,children:(0,r.Y)("span",{children:s.text})})})};var m=o(18079),I=o(32586),A=o(46605),b=o(64398);let g={INPUT_BOTTOM_PADDING:16,INPUT_HEIGHT:70,LABEL_SCALE_TRANSFORM:.8,LABEL_WIDTH_TRANSFORM:1.25},v={button:{"&::after":{content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%"},alignItems:"center",display:"flex",justifyContent:"space-between",paddingRight:E.E.SIZE_20,width:"100%"},disabled:{pointerEvents:"none","&:hover":{backgroundColor:p.l.LIGHT.GRAY_10},color:p.l.LIGHT.GRAY_20},dropdown:{backgroundColor:p.l.GLOBAL.WHITE,border:m.s.SOLID_GRAY_10_1PX,borderRadius:E.E.SIZE_15,boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1)",boxSizing:"border-box",maxHeight:270,overflowY:"scroll",padding:E.E.SIZE_30,position:"absolute",transform:"translateY(".concat(E.E.SIZE_80,"px)"),width:"100%",zIndex:b.M.TOP},header:[{"&:hover":{backgroundColor:p.l.LIGHT.GRAY_20},backgroundColor:p.l.LIGHT.GRAY_10,border:m.s.SOLID_TRANSPARENT_2PX,borderRadius:I.Z.RADIUS_15,color:p.l.LIGHT.GRAY_70,display:"flex",fontSize:"1.6rem",height:g.INPUT_HEIGHT,justifyContent:"space-between",marginBottom:E.E.SIZE_05,position:"relative",transition:"background-color ".concat(A.E.MS100,"ms ease, border-color ").concat(A.E.MS100,"ms ease")}],hiddenInput:{width:"10%",height:0},input:[S.Il.bodyCopy,{backgroundColor:"transparent",boxSizing:"border-box",color:p.l.GLOBAL.BLACK,height:"100%",opacity:0,overflow:"hidden",padding:"".concat(E.E.SIZE_30,"px ").concat(E.E.SIZE_20,"px ").concat(g.INPUT_BOTTOM_PADDING,"px"),textOverflow:"ellipsis",transition:"opacity ".concat(A.E.MS100,"ms ease"),width:"100%"}],inputActive:{opacity:1,transition:"opacity ".concat(A.E.MS100,"ms ease")},label:{left:E.E.SIZE_20,marginRight:E.E.SIZE_20,maxWidth:"calc(100% - (".concat(E.E.SIZE_20,"px + ").concat(E.E.SIZE_20,"px))"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"50%",transform:"translateY(-50%)",transformOrigin:0,transition:"color ".concat(A.E.MS100,"ms ease, transform ").concat(A.E.MS100,"ms ease"),whiteSpace:"nowrap"},listbox:{display:"flex",flexDirection:"column",position:"relative"},selectWrapper:{display:"none"},visuallyHidden:{display:"none"}},_={container:{borderColor:p.l.GLOBAL.ORANGE,":hover":{backgroundColor:p.l.LIGHT.GRAY_10}},input:{"&::placeholder":{opacity:.5}},label:{display:"block",pointerEvents:"none",textOverflow:"ellipsis",transform:"scale3d(".concat(g.LABEL_SCALE_TRANSFORM,", ").concat(g.LABEL_SCALE_TRANSFORM,", ").concat(g.LABEL_SCALE_TRANSFORM,") translateY(-125%)"),whiteSpace:"nowrap",width:"calc((100% * ".concat(g.LABEL_WIDTH_TRANSFORM,") - ").concat(g.INPUT_HEIGHT,"px)")}},T={container:{backgroundColor:p.l.LIGHT.RED_05,borderColor:p.l.GLOBAL.RED},customErrorStylesForSelect:{marginLeft:E.E.SIZE_20,position:"relative",transform:"none"},errorMessage:[S.Il.smallCopyTight,{bottom:0,color:p.l.GLOBAL.RED,left:0,position:"absolute",transform:"translate3D(0, 100%, 0)"}]};var y=o(63276);let D={INPUT_BOTTOM_PADDING:16,INPUT_HEIGHT:70},C={activeSelect:{opacity:1,transition:"opacity ".concat(A.E.MS100,"ms ease")},header:[{"&:hover":{backgroundColor:p.l.LIGHT.GRAY_20},backgroundColor:p.l.LIGHT.GRAY_10,border:m.s.SOLID_TRANSPARENT_2PX,borderRadius:I.Z.RADIUS_15,color:p.l.LIGHT.GRAY_70,fontSize:"1.6rem",height:D.INPUT_HEIGHT,marginBottom:E.E.SIZE_05,position:"relative",transition:"background-color ".concat(A.E.MS100,"ms ease, border-color ").concat(A.E.MS100,"ms ease")}],icon:{pointerEvents:"none",position:"absolute",right:E.E.SIZE_20,top:"calc(50% - 4px)",[y.MQ.M]:{right:E.E.SIZE_30}},label:{left:E.E.SIZE_20,marginRight:E.E.SIZE_20,maxWidth:"calc(100% - (".concat(E.E.SIZE_20,"px + ").concat(E.E.SIZE_20,"px))"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"50%",transform:"translateY(-50%)",transformOrigin:0,transition:"color ".concat(A.E.MS100,"ms ease, transform ").concat(A.E.MS100,"ms ease"),whiteSpace:"nowrap"},placeholder:{color:p.l.LIGHT.GRAY_20},select:[S.Il.bodyCopy,{"&::after":{content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%"},appearance:"none",background:"transparent",border:"none",color:p.l.GLOBAL.BLACK,mozAppearance:"none",opacity:0,padding:"".concat(E.E.SIZE_30,"px ").concat(E.E.SIZE_20,"px ").concat(D.INPUT_BOTTOM_PADDING,"px"),transition:"opacity ".concat(A.E.MS100,"ms ease"),webkitAppearance:"none",width:"100%"}],title:[S.Il.primaryHeadline,{marginBottom:E.E.SIZE_20}],wrapper:{position:"relative"}},R=function(e){let{id:t,placeholder:o,list:s,onChange:l,disabled:c,required:d,value:u,validationFn:p,label:E,error:S={hasError:!1},customContainerStyles:f,hasError:h,...m}=e,{hasError:I,errorMessage:A}=S,[b,g]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{u?y(!0):y(!1)},[u]);let D=I&&v||h;return(0,r.FD)("div",{css:[C.wrapper,f],"data-component":"SelectForMobile",children:[(0,r.FD)("div",{css:[C.header,c&&C.disabled,b&&_.container,D&&!c&&T.container],children:[(0,r.Y)("label",{htmlFor:"".concat(t,"__input"),css:[C.label,(b||!!u)&&_.label],children:E}),(0,r.FD)("select",{id:"".concat(t,"__input"),disabled:c,onFocus:function(){g(!0)},onBlur:function(){g(!1),u?(y(!0),p&&p(u)):y(!1)},onChange:e=>{let{value:t}=e.target;l(t),p&&v&&t.length>0&&p(t)},"aria-required":d,"aria-label":"".concat(t,"__label"),css:[C.select,(b||!!u)&&C.activeSelect],value:u,...m,children:[(0,r.Y)("option",{value:"",hidden:!0,children:o}),s.map(e=>(0,r.Y)("option",{value:e.value,children:e.text},e.value))]}),(0,r.Y)("span",{css:C.icon,children:(0,r.Y)(a.default,{name:i.Ze.CHEVRON_DOWN,"data-element":"Icon"})})]}),(D&&A||h)&&(0,r.Y)("span",{role:"alert",css:[T.errorMessage,T.customErrorStylesForSelect],children:A})]})},L=function(e){let{disabled:t,error:o={hasError:!1},id:p,list:E,onChange:S,placeholder:f,required:m,validationFn:I,value:A,label:b,customContainerStyles:g,customErrorStyles:y,hasError:D,ref:C,...L}=e,{hasError:x,errorMessage:w}=o,Y={value:"",text:f},[O,Z]=(0,n.useState)(null),[G,P]=(0,n.useState)(null),[B,k]=(0,n.useState)(!1),[H,M]=(0,n.useState)(!1),[F,N]=(0,n.useState)(p),[U,z]=(0,n.useState)(-2),[W,V]=(0,n.useState)(-2),[q,K]=(0,n.useState)(!1),[X,j]=(0,n.useState)([]),Q=(0,l.A)(),J=(0,s.A)(function(){k(!1),K(!1),A?(M(!0),I&&I(A)):M(!1)}),$=c(J);(0,n.useEffect)(()=>{p||N("".concat((0,u.DU)(10),"-select"))},[p]),(0,n.useEffect)(()=>{if(A){if(E&&E.length>0){let e=E.findIndex(e=>e.value===A);P(E[e]),V(e)}}else P(null),V(-1),M(!1)},[A,E,U,H]),(0,n.useEffect)(()=>{E.length&&j(Array.from(Array(E.length)).map(()=>(0,n.createRef)()))},[E]);let ee=(0,n.useCallback)(e=>{if(!e){V(-1);return}V(E.findIndex(t=>t.value===e.value))},[E]),et=(0,n.useCallback)(()=>{K(e=>!e)},[]),eo=(0,n.useCallback)(e=>{B&&(B&&e.keyCode===d._.SPACE&&(e.preventDefault(),O?P(O):P(Y),et()),q&&e.keyCode===d._.ENTER&&(e.preventDefault(),O?P(O):P(Y),et()),e.keyCode===d._.ARROW_DOWN&&Ue+1),e.keyCode===d._.ARROW_UP&&U>-1&&z(e=>e-1))},[et,q,B,U,E,O,Y]);(0,n.useEffect)(()=>{ee(G)},[G,ee]),(0,n.useEffect)(()=>{E.length&&!(U<-1)&&Z(E[U])},[U,E]);let er=e=>{P(e),S(e.value),I&&H&&e.value.length>0&&I(e.value),K(!1),$()},en=x&&H||D;return Q?(0,r.Y)(R,{id:F,onChange:S,disabled:t,placeholder:f,label:b,list:E,value:A,required:m,customContainerStyles:g,error:o,hasError:D,...L}):(0,r.FD)("span",{"aria-haspopup":"listbox","aria-labelledby":"".concat(F,"__label ").concat(F,"__input"),onFocus:t?void 0:()=>{k(!0)},onBlur:t?void 0:()=>{k(!1)},onKeyDown:t?void 0:eo,role:"button",tabIndex:t?-1:0,"aria-disabled":t?"true":"false",css:[v.listbox,g],ref:J,"data-component":"Select",children:[(0,r.FD)("div",{css:[v.header,t&&v.disabled,B&&_.container,en&&!t&&T.container],children:[(0,r.Y)("label",{htmlFor:"".concat(F,"__input"),css:[v.label,(B||!!A)&&!en&&_.label],children:b}),(0,r.FD)("button",{onClick:et,disabled:t,css:v.button,tabIndex:-1,type:"button",ref:C,children:[(0,r.Y)("input",{readOnly:!0,value:G?G.text:f,id:"".concat(F,"__input"),name:L.name,tabIndex:-1,disabled:t,css:[v.input,t&&v.disabled,(B||!!A)&&!en&&v.inputActive]}),(0,r.Y)("input",{css:v.hiddenInput,name:L.name,value:G?G.text:f,onChange:e=>{let{value:t}=e.target;S(t)}}),(0,r.Y)("span",{children:q?(0,r.Y)(a.default,{name:i.Ze.CHEVRON_UP}):(0,r.Y)(a.default,{name:i.Ze.CHEVRON_DOWN})})]})]}),!q&&(en&&w||D)&&(0,r.Y)("span",{role:"alert",css:[T.errorMessage,y,T.customErrorStylesForSelect],children:w}),q&&(0,r.Y)("span",{css:v.dropdown,children:(0,r.FD)("ul",{role:"listbox","aria-activedescendant":O?O.value:void 0,tabIndex:-1,"aria-hidden":B?"false":"true","aria-labelledby":"".concat(F,"__label"),children:[(0,r.Y)(h,{baseId:F,option:Y,index:-1,focusedOptionIndex:U,selectedOptionIndex:W,optionClick:er,customCss:v.visuallyHidden}),E.map((e,t)=>(0,r.Y)(h,{baseId:F,focusedOptionIndex:U,selectedOptionIndex:W,index:t,option:e,optionClick:er,ref:X[t]},t))]})})]})}},60867:(e,t,o)=>{o.d(t,{A:()=>p});var r=o(29747),n=o(14232),a=o(10983),i=o(19009),s=o(88554),l=o(44364),c=o(63381),d=o(36384);let u={content:{borderLeft:"4px solid ".concat(l.l.LIGHT.GRAY_20),display:"flex","& > div":{display:"flex",justifyContent:"center",alignItems:"center"}},description:[(0,d._R)(12,14),{color:l.l.LIGHT.GRAY_70,paddingLeft:c.E.SIZE_90-5}],icon:{marginLeft:c.E.SIZE_15,marginRight:c.E.SIZE_15,"& svg":{height:32,width:50}},root:{display:"flex",flexDirection:"column"},title:[(0,d._R)(12,14),{fontWeight:"bold",marginBottom:c.E.SIZE_20}]},p=(0,n.memo)(function(e){let{customContainerStyle:t,icon:o,title:n,description:l,iconStyle:c}=e;return(0,r.FD)("div",{css:[u.root,t],"data-component":"DescriptionWithIcon",children:[(0,r.FD)("div",{css:u.content,children:[(0,r.Y)(a.default,{css:[u.icon,c],name:o,theme:i.C.ORANGE,"data-element":"Icon"}),(0,r.Y)("div",{css:u.title,children:n})]}),l&&(0,r.Y)("p",{css:u.description,children:(0,r.Y)(s.A,{css:u.subTitle,children:l})})]})})},94631:(e,t,o)=>{o.d(t,{f:()=>r,u:()=>n});var r=function(e){return e.ADDRESS1="addressLine1",e.ADDRESS2="addressLine2",e.CITY="city",e.STATE="state",e.ZIP="zip",e}({});let n={addressLine1:"",addressLine2:"",city:"",zip:"",state:""}}}]);