1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39264],{24315:function(e,o,t){"use strict";var l=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:(0,l.jsx)("path",{id:"icon",d:"M-122-66a9.01 9.01 0 0 1 9 9 9.01 9.01 0 0 1-9 9 9.01 9.01 0 0 1-9-9 9.01 9.01 0 0 1 9-9m0-1a10.011 10.011 0 0 0-10 10 10.011 10.011 0 0 0 10 10 10.011 10.011 0 0 0 10-10 10.011 10.011 0 0 0-10-10Zm-1.4 14.36 7.249-7a.5.5 0 0 0 .013-.707.5.5 0 0 0-.707-.013l-6.885 6.648-3.4-3.63a.5.5 0 0 0-.706-.023.5.5 0 0 0-.023.707l3.75 4a.5.5 0 0 0 .352.158h.012a.5.5 0 0 0 .345-.14Z",transform:"translate(132 67)"})}));o.Z=n},37293:function(e,o,t){"use strict";var l=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:(0,l.jsx)("path",{id:"icon",d:"M12 22a10 10 0 1 1 10-10 10 10 0 0 1-10 10Zm0-19a9 9 0 1 0 9 9 9.011 9.011 0 0 0-9-9Zm3.5 13a.519.519 0 0 1-.354-.144L12 12.71l-3.146 3.144a.5.5 0 0 1-.71-.71L11.29 12 8.144 8.854a.5.5 0 0 1 .71-.71L12 11.29l3.144-3.146a.5.5 0 0 1 .71.71L12.71 12l3.144 3.144a.5.5 0 0 1 0 .71.512.512 0 0 1-.354.146Z",transform:"translate(-2 -2)"})}));o.Z=n},67694:function(e,o,t){"use strict";var l=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",...e,children:(0,l.jsx)("path",{id:"icon",d:"M32.032 0a2.704 2.704 0 0 0-2.688 2.688v10.304a2.684 2.684 0 0 0 2.688 2.688 2.704 2.704 0 0 0 2.688-2.688V2.688C34.688 1.216 33.504 0 32.032 0zm0 48.32a2.704 2.704 0 0 0-2.688 2.688v10.304A2.684 2.684 0 0 0 32.032 64a2.704 2.704 0 0 0 2.688-2.688V51.008c-.032-1.472-1.216-2.688-2.688-2.688zm-8.16-2.176a2.673 2.673 0 0 0-3.648.992l-5.184 8.896c-.736 1.28-.288 2.912.992 3.68.416.256.896.352 1.344.352a2.71 2.71 0 0 0 2.336-1.344l5.152-8.928a2.673 2.673 0 0 0-.992-3.648zm-5.984-5.984a2.673 2.673 0 0 0-3.648-.992L5.312 44.32A2.703 2.703 0 0 0 4.32 48a2.71 2.71 0 0 0 2.336 1.344c.448 0 .928-.128 1.344-.352l8.928-5.152a2.708 2.708 0 0 0 .96-3.68zM15.712 32a2.684 2.684 0 0 0-2.688-2.688H2.72C1.248 29.312.032 30.528.032 32s1.184 2.688 2.688 2.688h10.304A2.704 2.704 0 0 0 15.712 32zm45.6-2.688H51.008c-1.472 0-2.688 1.216-2.688 2.688s1.216 2.688 2.688 2.688h10.304C62.784 34.688 64 33.472 64 32s-1.216-2.688-2.688-2.688zM43.84 47.104c-.736-1.28-2.368-1.728-3.648-.992s-1.728 2.368-.992 3.68l5.152 8.928c.48.864 1.408 1.344 2.336 1.344.448 0 .928-.128 1.344-.352a2.703 2.703 0 0 0 .992-3.68l-5.184-8.928zm14.88-2.784-8.928-5.152c-1.28-.736-2.912-.288-3.648.992s-.288 2.912.992 3.68l8.928 5.152c.416.256.896.352 1.344.352A2.71 2.71 0 0 0 59.744 48c.704-1.28.256-2.912-1.024-3.68zM40.192 17.856c.416.256.896.352 1.344.352a2.71 2.71 0 0 0 2.336-1.344l5.152-8.928c.736-1.28.288-2.912-.992-3.68-1.28-.736-2.912-.32-3.648.992l-5.152 8.928c-.768 1.312-.352 2.944.96 3.68zm5.952 5.984c.48.864 1.408 1.344 2.336 1.344.448 0 .928-.128 1.344-.352l8.928-5.152a2.703 2.703 0 0 0 .992-3.68 2.673 2.673 0 0 0-3.648-.992l-8.96 5.152a2.69 2.69 0 0 0-.992 3.68z"})}));o.Z=n},96548:function(e,o,t){"use strict";var l=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{id:"icon",d:"m23.6 11.87-1.9-2.06a.948.948 0 0 0-.7-.31h-4.5v-4c0-.83-.67-1.5-1.5-1.5H1.5C.67 4 0 4.67 0 5.5v11c0 .82.67 1.5 1.5 1.5h2.55a2.5 2.5 0 0 0 4.9 0h5.1a2.5 2.5 0 0 0 4.95-.5h3.58c.78 0 1.42-.68 1.42-1.5v-3.09c0-.39-.14-.76-.4-1.04zM7.91 18c-.21.58-.76 1-1.41 1s-1.2-.42-1.41-1c-.06-.15-.09-.33-.09-.5 0-.18.03-.35.09-.5.21-.58.76-1 1.41-1s1.2.42 1.41 1c.06.15.09.32.09.5 0 .17-.03.35-.09.5zm6.14-1h-5.1a2.5 2.5 0 0 0-4.9 0H1.5c-.27 0-.5-.23-.5-.5v-11c0-.27.23-.5.5-.5H15c.27 0 .5.23.5.5v9.7c-.73.33-1.29 1-1.45 1.8zm2.45 2c-.65 0-1.21-.42-1.41-1.01-.06-.15-.09-.32-.09-.49 0-.18.03-.35.1-.51.08-.23.23-.45.4-.61.27-.24.62-.38 1-.38.83 0 1.5.67 1.5 1.5 0 .82-.67 1.5-1.5 1.5zm6.5-3c0 .27-.19.5-.42.5H18.8c-.39-.88-1.27-1.5-2.3-1.5v-4.5l4.46-.02 1.9 2.06c.09.1.14.23.14.37V16z"})}));o.Z=n},6007:function(e,o,t){"use strict";t.d(o,{Z:function(){return _}});
1var l=t(14710),a=t(42081),n=t(83259),c=t.n(n),i=t(21028),r=t(48075),d=t(52811),s=t.n(d);let p={LEFT:"left",CENTER:"center",RIGHT:"right"},ModalBody=e=>{let{children:o,className:t}=e,n=(0,a.useRef)(null),i=c()(s().Body,t);return(0,a.useEffect)(()=>{let e=null==n?void 0:n.current;if(e){let o=(null==e?void 0:e.scrollHeight)>(null==e?void 0:e.clientHeight);o?null==e||e.classList.add(s().Scrollable):null==e||e.classList.remove(s().Scrollable)}},[]),(0,l.jsx)("div",{ref:n,className:i,children:o})};ModalBody.Title=e=>{let{children:o}=e;return(0,l.jsx)(i.Z,{tag:r.rb.STRONG,modifier:r.Fc.X_SMALL,lg:r.TO.X_SMALL,className:s().Title,children:o})},ModalBody.Paragraph=e=>{let{children:o}=e;return(0,l.jsx)(i.Z,{tag:r.rb.P,modifier:r.Sr.SMALL,lg:r.hp.SMALL,className:s().Paragraph,children:o})},ModalBody.Image=e=>{let{children:o}=e;return(0,l.jsx)("div",{className:s().Image,children:(0,l.jsx)("div",{className:s().Overflow,children:o})})},ModalBody.Box=e=>{let{children:o,align:t=p.LEFT}=e,a=c()(s().Overflow,{[s().AlignLeft]:t===p.LEFT,[s().AlignCenter]:t===p.CENTER,[s().AlignRight]:t===p.RIGHT});return(0,l.jsx)("div",{className:s().Box,children:(0,l.jsx)("div",{className:a,children:o})})};var _=ModalBody},39264:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return ZipModal_ZipModal}});var l,a,n=t(14710),c=t(42081),i=t(73884),r=t(53060),d=t(21028),s=t(57885),p=t(6007),_=t(67578),u=t(83259),h=t.n(u),Z=t(43685),m=t.n(Z),ZipcodeControl_ZipcodeControlArea=e=>{let{children:o,className:t}=e;return(0,n.jsxs)("div",{className:h()(m().ZipcodeControlArea,t),children:[(0,n.jsx)("p",{className:m().ZipcodeControlArea_Label,"data-text-mobile":"Digite seu CEP para calcular o frete","data-text-desktop":"Valor do frete para"}),o]})},C=t(96548),g=t(24315),v=t(37293),x=t(67694),M=t(42025);(l=a||(a={})).EMPTY="empty",l.INCOMPLETED="incompleted",l.COMPLETED="completed";let zipcodeMask=e=>e?e.replace(/\D/g,"").replace(/(\d{5})(\d{3})/,"$1-$2"):"",getAction=e=>""===e?"empty":(null==e?void 0:e.length)===9?"completed":"incompleted";let ZipcodeControl=class ZipcodeControl extends c.Component{static getDerivedStateFromProps(e,o){return e.success!==o.success||e.error!==o.error||e.loading!==o.loading?{success:e.success,error:e.error,loading:e.loading}:null}render(){let{zipcodeValue:e,success:o,error:t,loading:l}=this.state,a=h()(m().ZipcodeControl_Input,{[m().ZipcodeControl_Input__active]:""!==e,[m().ZipcodeControl_Input__success]:o,[m().ZipcodeControl_Input__error]:t,[m().ZipcodeControl_Input__loading]:l}),c=h()(m().ZipcodeControl,{[m().UseFullLine]:this.state.useFullLine});return(0,n.jsxs)("form",{onSubmit:this.handleSubmit,className:c,children:[(0,n.jsxs)("div",{className:a,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:m().ZipcodeControl_Input_Icon,children:(0,n.jsx)(C.Z,{})}),(0,n.jsx)("input",{id:"zipcode",name:"zipcode",type:"tel",value:e,placeholder:"Digite seu CEP",maxLength:9,onChange:this.handleChange,onKeyUp:this.handleKeyUp,className:m().ZipcodeControl_Input_Field}),l&&(0,n.jsx)(x.Z,{className:m().ZipcodeControl_Input_FeedbackIcon}),o&&(0,n.jsx)(g.Z,{className:m().ZipcodeControl_Input_FeedbackIcon}),t&&(0,n.jsx)(v.Z,{className:m().ZipcodeControl_Input_FeedbackIcon}),(0,n.jsx)("span",{className:m().ZipcodeControl_Input_Bar})]}),o&&(0,n.jsx)("p",{className:m().ZipcodeControl_Input_Feedback,children:"CEP aplicado"}),t&&(0,n.jsx)("p",{className:m().ZipcodeControl_Input_Feedback,children:"CEP inv\xe1lido"})]}),(0,n.jsx)(M.Z,{type:"submit","data-testid":"cta-cep-modal",children:this.state.callToAction||"Calcular"})]})}constructor(e){super(e),this.handleChange=e=>{let o=e.target.value;this.setState(()=>({zipcodeValue:zipcodeMask(o)}))},this.handleKeyUp=()=>{let{zipcodeValue:e}=this.state,{onClear:o}=this.props;!e&&o&&o(),this.setState(()=>({action:getAction(e),success:!1,error:!1}))},this.handleSubmit=e=>{e.preventDefault();let{onSubmit:o}=this.props,{zipcodeValue:t,action:l}=this.state;o&&o({value:t.replace(/\D/g,""),valueMask:t,action:l})},this.state={zipcodeValue:zipcodeMask(e.defaultValue),action:getAction(e.defaultValue),success:e.success||!1,error:e.error||!1,loading:e.loading||!1,useFullLine:(null==e?void 0:e.useFullLine)||!1,callToAction:(null==e?void 0:e.callToAction)||void 0}}};var f=t(99166),I=t.n(f),ZipModal_ZipModal=e=>{let{closeModal:o,pageName:t,location:l,status:a,fetchLocationByZipcode:u,clearLocation:h}=e,Z=null==l?void 0:l.zipcode,[m,C]=(0,c.useState)(void 0),[g,v]=(0,c.useState)(!1),x="rejected"===a,M="pending"===a,f=!x&&!M&&!!Z&&!g,A=(!!Z||!!m)&&x||g;return(0,c.useEffect)(()=>{f&&((0,i.dispatch)({category:"".concat(r.Z.BRAND_NAME_LOWERED,"_").concat(t),action:"header_view_cep",label:"success-apply-cep"}),(0,i.dispatch)((0,i.getGA4EventTemplate)({eventName:"cep_header",pagetype:t,area:"header-view-cep",option:"success-apply-cep"})),null==o||o()),A&&((0,i.dispatch)({category:"".concat(r.Z.BRAND_NAME_LOWERED,"_").concat(t),action:"modal-cep_view_error",label:"cep-nao-encontrado"}),(0,i.dispatch)((0,i.getGA4EventTemplate)({eventName:"cep_header",pagetype:t,area:"modal-cep_view_error",option:"cep-nao-encontrado"})))},[l]),(0,n.jsx)(s.Z,{hash:_.tK,children:(0,n.jsx)(p.Z,{children:(0,n.jsxs)("section",{className:I().Modal,children:[(0,n.jsx)(d.Z,{modifier:"DesktopTitleM",lg:"DesktopTitleM",className:I().ModalTitle,children:"Informe seu CEP"}),(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Z,{modifier:"MobileParagraphS",className:I().ModalText,children:"Veja as melhores ofertas e condi\xe7\xf5es de frete dispon\xedveis para a sua regi\xe3o"}),(0,n.jsx)(ZipcodeControl_ZipcodeControlArea,{className:I().CepContainer,children:(0,n.jsx)(ZipcodeControl,{defaultValue:Z,success:f,error:A,loading:M,onSubmit:e=>{let o=e.valueMask;if(C(o),(0,i.dispatch)({category:"".concat(r.Z.BRAND_NAME_LOWERED,"_").concat(t),action:"modal-cep_click_button",label:"Confirmar"}),(0,i.dispatch)((0,i.getGA4EventTemplate)({eventName:"cep_header",pagetype:t,area:"button",option:"Confirmar"})),!o)return;if((null==o?void 0:o.length)<8){v(!0);return}let makeActions=async()=>{"completed"===e.action&&u&&u(o)};makeActions(),v(!1)},onClear:h,callToAction:"Confirmar"},Z)})]})]})})})}},52811:function(e){e.exports={Body:"Body_Body__Y8tjJ",Scrollable:"Body_Scrollable__RFfto",Title:"Body_Title__r8dzF",Paragraph:"Body_Paragraph__gnIGh",Image:"Body_Image__GaoYQ",Box:"Body_Box__ONEPZ",Overflow:"Body_Overflow__JTUhP",AlignLeft:"Body_AlignLeft__d4FY_",AlignCenter:"Body_AlignCenter__4a_KR",AlignRight:"Body_AlignRight__8NppP"}},99166:function(e){e.exports={highlightLayout:"ZipModal_highlightLayout___CMYr",Modal:"ZipModal_Modal__6jAdV",ModalTitle:"ZipModal_ModalTitle__ktcXG",ModalText:"ZipModal_ModalText__H1zki",ModalCloseButton:"ZipModal_ModalCloseButton__f7AqD",ModalBody:"ZipModal_ModalBody__o2o1H",Gray:"ZipModal_Gray__hTp6T"}},43685:function(e){e.exports={highlightLayout:"ZipcodeControl_highlightLayout__M_fXk",ZipcodeControlArea:"ZipcodeControl_ZipcodeControlArea__gfCuY",ZipcodeControlArea_Label:"ZipcodeControl_ZipcodeControlArea_Label__UP4hM",ZipcodeControl:"ZipcodeControl_ZipcodeControl__tliOX",UseFullLine:"ZipcodeControl_UseFullLine__4E1he",ZipcodeControl_Input:"ZipcodeControl_ZipcodeControl_Input__7Tgr7",ZipcodeControl_Input__success:"ZipcodeControl_ZipcodeControl_Input__success__mBBiP",ZipcodeControl_Input_Icon:"ZipcodeControl_ZipcodeControl_Input_Icon__Sd8iJ",ZipcodeControl_Input_Feedback:"ZipcodeControl_ZipcodeControl_Input_Feedback__WtH6I",ZipcodeControl_Input_FeedbackIcon:"ZipcodeControl_ZipcodeControl_Input_FeedbackIcon__RiJ32",ZipcodeControl_Input_Bar:"ZipcodeControl_ZipcodeControl_Input_Bar__a_dMq",ZipcodeControl_Input__error:"ZipcodeControl_ZipcodeControl_Input__error__2_ltW",ZipcodeControl_Input__loading:"ZipcodeControl_ZipcodeControl_Input__loading__SBjgr",spin:"ZipcodeControl_spin__ougeU",ZipcodeControl_Input_Field:"ZipcodeControl_ZipcodeControl_Input_Field__LO4D4",ZipcodeControl_Input__active:"Zi
1pcodeControl_ZipcodeControl_Input__active__IznDu"}}}]);
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.