PageSourceSearch

https://www.obahortifruti.com.br/_next/static/chunks/8133.92d0e831556789f8.js

js obahortifruti.com.br collected 2026-10-01 15:16:55 UTC 26,514 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888,8133],{9578:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var n=t(75458);t(75834);var s=t(26514);function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}let i=e=>(0,s.jsx)("svg",a(a({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:(0,s.jsx)("path",{d:"M3.706 12L3 11.294L7.9405 6.35354C8.03424 6.25978 8.08689 6.13263 8.08689 6.00004C8.08689 5.86746 8.03424 5.74031 7.9405 5.64654L3.0085 0.715545L3.7155 0.00854492L8.6465 4.93954C8.92771 5.22084 9.08568 5.6023 9.08568 6.00004C9.08568 6.39779 8.92771 6.77925 8.6465 7.06054L3.706 12Z",fill:"currentColor"})}))},41195:e=>{e.exports={banner:"styles_banner__5yk56",responsivePicture:"styles_responsivePicture__CREyY",bannerFull:"styles_bannerFull__QCE6_"}},53582:e=>{e.exports={registrationPage:"styles_registrationPage__dFBKd",heading:"styles_heading__rkpKu",formStepper:"styles_formStepper__nm_TT",step:"styles_step__enjFB",icon:"styles_icon__VK5rS",formTemplate:"styles_formTemplate__1jrCk",fieldsetGroup:"styles_fieldsetGroup__6Brfr",fieldsetGroupInner:"styles_fieldsetGroupInner__ZrOTo",personal:"styles_personal__w9yBh",address:"styles_address__d0cSO",optins:"styles_optins__2jV8G",submitContainer:"styles_submitContainer__hV1DF",goBack:"styles_goBack__SgHQ_",formModal:"styles_formModal__Uu2so",tryAgain:"styles_tryAgain__U19f0",successBtn:"styles_successBtn__qPWxx"}},62888:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>d});var n=t(36291),s=t(9578),o=new Set(["","#","[object Object]","null","undefined"]);function a(e){var r,t="string"==typeof e?e:e&&"object"==typeof e?null!=(r=e.src)?r:e.url:void 0;if("string"==typeof t){var n=t.trim();return o.has(n)?void 0:n}}var i=t(41195),l=t.n(i),c=t(26514);function d(e){var r=a(e.bannerImg),t=a(e.bannerImgDesk),o=r||t;if(!o)return null;var i="string"==typeof e.bannerAlt?e.bannerAlt.trim():"Banner promocional do Oba Hortifruti",d=!!e.skipLazyLoadingSection,p=!!(r&&t&&r!==t),h=!!(!r&&t);return(0,c.jsxs)("a",{href:e.bannerUrl,style:{marginTop:e.marginTop,marginBottom:e.marginBottom},className:"".concat(l().banner," ").concat(e.bannerFull?l().bannerFull:""),target:e.newTab?"_blank":"_self",rel:e.newTab?"noopener noreferrer":void 0,children:[p?(0,c.jsxs)("picture",{className:l().responsivePicture,children:[(0,c.jsx)("source",{media:"(min-width: 1024px)",srcSet:t,width:1920,height:400}),(0,c.jsx)("img",{src:r,alt:i,width:1e3,height:500,sizes:"100vw",decoding:"async",fetchPriority:d?"high":"low",loading:d?"eager":"lazy"})]}):(0,c.jsx)(n.A,{src:o,alt:i,width:h?1920:1e3,height:h?400:500,sizes:"100vw",priority:d,fetchPriority:d?"high":"low",loading:d?"eager":"lazy"}),e.showCta&&(0,c.jsxs)("span",{children:[e.ctaText,(0,c.jsx)(s.A,{color:"#363636"})]})]})}},78133:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>F});var n=t(75458),s=t(62888),o=t(82699),a=t(6504),i=t(59749),l=t(75834),c=t(50681),d=t(84608).y7,p=t(85819),h=t(40976),m=t(95e3),u=t.n(m),g=t(26514);function b(e){return(0,g.jsxs)("div",{className:u().input,children:[(0,g.jsxs)("label",{htmlFor:e.name,children:[e.label,e.required&&"*"]}),(0,g.jsx)("input",{type:e.email?"email":"text",id:e.name,name:e.name,placeholder:e.placeholder,value:e.value,onChange:r=>{var t=r.target.value;if(e.cpf&&((t=t.replace(/\D/g,"")).length>11&&(t=t.slice(0,11)),t.length>9?t=t.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"):t.length>6?t=t.replace(/(\d{3})(\d{3})(\d+)/,"$1.$2.$3"):t.length>3&&(t=t.replace(/(\d{3})(\d+)/,"$1.$2"))),e.birthDate&&((t=t.replace(/\D/g,"")).length>8&&(t=t.slice(0,8)),t.length>4?t=t.replace(/(\d{2})(\d{2})(\d{1,4})/,"$1/$2/$3"):t.length>2&&(t=t.replace(/(\d{2})(\d{1,2})/,"$1/$2"))),e.cep&&((t=t.replace(/\D/g,"")).length>8&&(t=t.slice(0,8)),t.length>5&&(t=t.replace(/(\d{5})(\d{1,3})/,"$1-$2"))),e.phone){var n=t.replace(/\D/g,"").slice(0,11);t=0===n.length?"":n.length<3?"(".concat(n):n.length<=6?"(".concat(n.slice(0,2),") ").concat(n.slice(2)):n.length<=10?"(".concat(n.slice(0,2),") ").concat(n.slice(2,6),"-").concat(n.slice(6)):"(".concat(n.slice(0,2),") ").concat(n.slice(2,7),"-").concat(n.slice(7))}e.onChange(t)}
1,required:e.required,onBlur:()=>{e.onBlur&&e.onBlur()},inputMode:e.cep||e.cpf||e.phone||e.birthDate?"numeric":void 0,maxLength:e.maxLength}),e.errorMessage&&(0,g.jsx)("span",{className:u().errorMsg,children:e.errorMessage}),e.cep&&(0,g.jsx)("a",{className:u().dkCep,target:"_blank",href:"https://buscacepinter.correios.com.br/app/endereco/index.php?t",children:"N\xe3o sei meu CEP"})]})}function j(e){return(0,g.jsxs)("div",{className:u().select,children:[(0,g.jsxs)("label",{htmlFor:e.name,children:[e.label,e.required&&"*"]}),(0,g.jsxs)("select",{id:e.name,name:e.name,value:e.value,onChange:r=>e.onChange(r.target.value),required:e.required,className:"".concat(""===e.value?u().placeholder:""),children:[(0,g.jsx)("option",{value:"",disabled:!0,children:e.placeholder}),e.options.map((e,r)=>(0,g.jsx)("option",{value:e,children:e},r))]}),e.errorMessage&&(0,g.jsx)("span",{className:u().errorMsg,children:e.errorMessage})]})}function x(e){return(0,g.jsxs)("div",{className:u().checkbox,children:[(0,g.jsxs)("label",{children:[(0,g.jsx)("input",{type:"checkbox",name:e.name,checked:"true"===e.value,onChange:r=>e.onChange(r.target.checked?"true":"false")}),(0,g.jsx)("span",{className:u().checkmark}),"string"==typeof e.label?(0,g.jsx)("p",{dangerouslySetInnerHTML:{__html:e.label}}):(0,g.jsx)("div",{children:e.label})]}),e.errorMessage&&(0,g.jsx)("span",{className:u().errorMsg,children:e.errorMessage})]})}var f=t(53582),C=t.n(f);function v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?v(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function O(e){return(0,g.jsx)("svg",y(y({width:"25",height:"2",viewBox:"0 0 25 2",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:(0,g.jsx)("line",{x1:"0.5",y1:"1",x2:"24.5",y2:"1",stroke:"currentColor"})}))}function w(e){var{firstStepIcon:r,firstStepTitle:t,secondStepIcon:n,secondStepTitle:s,selectedStep:o}=e;return(0,g.jsxs)("section",{className:C().formStepper,children:[(0,g.jsxs)("div",{className:C().step,"data-selected":0===o,children:[(0,g.jsx)("div",{className:C().icon,children:r}),(0,g.jsx)("p",{children:t})]}),(0,g.jsx)(O,{color:"#888888"}),(0,g.jsxs)("div",{className:C().step,"data-selected":1===o,children:[(0,g.jsx)("div",{className:C().icon,children:n}),(0,g.jsx)("p",{children:s})]})]})}var _=t(59014);function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?P(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function N(e){return(0,g.jsxs)("svg",D(D({width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:[(0,g.jsxs)("g",{clipPath:"url(#registration-personal-data-clip)",children:[(0,g.jsx)("path",{d:"M12.75 14H11.5833V11.0582C11.5829 10.6009 11.401 10.1624 11.0776 9.83905C10.7542 9.51567 10.3158 9.33379 9.85842 9.33332H5.14158C4.68425 9.33379 4.24578 9.51567 3.92239 9.83905C3.59901 10.1624 3.41713 10.6009 3.41667 11.0582V14H2.25V11.0582C2.25093 10.2916 2.55587 9.55668 3.09795 9.0146C3.64002 8.47253 4.37497 8.16758 5.14158 8.16666H9.85842C10.625 8.16758 11.36 8.47253 11.9021 9.0146C12.4441 9.55668 12.7491 10.2916 12.75 11.0582V14Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M7.5 7C6.80777 7 6.13108 6.79473 5.55551 6.4101
15C4.97993 6.02556 4.53133 5.47894 4.26642 4.83939C4.00152 4.19985 3.9322 3.49612 4.06725 2.81719C4.2023 2.13825 4.53564 1.51461 5.02513 1.02513C5.51461 0.535644 6.13825 0.202301 6.81719 0.0672531C7.49612 -0.0677952 8.19985 0.0015165 8.83939 0.266423C9.47893 0.53133 10.0256 0.979934 10.4101 1.55551C10.7947 2.13108 11 2.80777 11 3.5C10.9991 4.42798 10.63 5.31768 9.97385 5.97385C9.31768 6.63003 8.42797 6.99908 7.5 7ZM7.5 1.16667C7.03851 1.16667 6.58739 1.30352 6.20367 1.55991C5.81996 1.8163 5.52089 2.18071 5.34428 2.60707C5.16768 3.03343 5.12147 3.50259 5.2115 3.95521C5.30153 4.40784 5.52376 4.8236 5.85009 5.14992C6.17641 5.47624 6.59217 5.69847 7.04479 5.7885C7.49741 5.87853 7.96657 5.83233 8.39293 5.65572C8.81929 5.47912 9.18371 5.18005 9.4401 4.79633C9.69649 4.41262 9.83333 3.96149 9.83333 3.5C9.83333 2.88116 9.5875 2.28767 9.14992 1.85009C8.71233 1.4125 8.11884 1.16667 7.5 1.16667Z",fill:"currentColor"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"registration-personal-data-clip",children:(0,g.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(0.5)"})})})]}))}function M(e){return(0,g.jsxs)("svg",D(D({width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:[(0,g.jsxs)("g",{clipPath:"url(#registration-address-clip)",children:[(0,g.jsx)("path",{d:"M7.47545 14.0047L7.06882 13.6561C6.50825 13.1867 1.61353 8.95948 1.61353 5.86734C1.61353 2.6299 4.23801 0.00541687 7.47545 0.00541687C10.7129 0.00541687 13.3374 2.6299 13.3374 5.86734C13.3374 8.95951 8.44265 13.1868 7.8844 13.6585L7.47545 14.0047ZM7.47545 1.27294C4.93924 1.27581 2.88394 3.3311 2.88107 5.86732C2.88107 7.80987 5.89249 10.9131 7.47545 12.3334C9.05844 10.9125 12.0698 7.80752 12.0698 5.86732C12.067 3.3311 10.0117 1.27583 7.47545 1.27294Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M7.47547 8.19097C6.19218 8.19097 5.15186 7.15065 5.15186 5.86735C5.15186 4.58405 6.19218 3.54373 7.47547 3.54373C8.75877 3.54373 9.79909 4.58405 9.79909 5.86735C9.79909 7.15065 8.7588 8.19097 7.47547 8.19097ZM7.47547 4.70551C6.83382 4.70551 6.31366 5.22567 6.31366 5.86732C6.31366 6.50897 6.83382 7.02913 7.47547 7.02913C8.11712 7.02913 8.63728 6.50897 8.63728 5.86732C8.63728 5.22567 8.11715 4.70551 7.47547 4.70551Z",fill:"currentColor"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"registration-address-clip",children:(0,g.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(0.5)"})})})]}))}function S(e){return(0,g.jsx)("svg",D(D({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:(0,g.jsx)("path",{d:"M3.706 11.9993L3 11.2933L7.9405 6.35281C8.03424 6.25905 8.08689 6.13189 8.08689 5.99931C8.08689 5.86673 8.03424 5.73958 7.9405 5.64581L3.0085 0.714812L3.7155 0.0078125L8.6465 4.93881C8.92771 5.2201 9.08568 5.60157 9.08568 5.99931C9.08568 6.39706 8.92771 6.77852 8.6465 7.05981L3.706 11.9993Z",fill:"currentColor"})}))}function L(e){return(0,g.jsx)("svg",D(D({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),{},{children:(0,g.jsx)("path",{d:"M8.294 0.000688553L9 0.706689L4.0595 5.64719C3.96576 5.74095 3.91311 5.86811 3.91311 6.00069C3.91311 6.13327 3.96576 6.26042 4.0595 6.35419L8.9915 11.2852L8.2845 11.9922L3.3535 7.06119C3.07229 6.7799 2.91432 6.39843 2.91432 6.00069C2.91432 5.60294 3.07229 5.22148 3.3535 4.94019L8.294 0.000688553Z",fill:"currentColor"})}))}function A(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function I(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?A(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function k(e){var{textLabelLinkForm:r="",textLabelClientLinkForm:t=""}=e,{0:n,1:s}=(0,l.useState)(0),{0:o,1:m}=(0,l.useState)({firstName:"",lastName:"",birthDate:"",gender:"",email:"",addressType:"residential",street:"",number:"",complement:"",neighborhood:"",city:"",state:"",reference:"",document:"",phone:"",postalCode:"",optInEmail:"true",optInSMS:"true",optInWhatsApp:"true",optInDirectMail:"true",isTermsAndConditionsOptIn:"true",isTermsClient:"true"}),{0:u,1:f}=(0,l.useState)({firstName:"",lastName:"",birthDate:"",email:"",addressType:"",street:"",number:"",neighborhood:"",city:"",state:"",reference:"",document:"",phone:"",postalCode:"",isTermsAndConditionsOptIn:"",isTermsClient:""}),{0:v,1:y}=(0,l.useState)(!1),{0:O,1:P}=(0,l.useState)(!1),[D,{data:A}]=(0,a._)(p.J,{cep:o.postalCode}),[k,{data:T,error:E}]=(0,a._)(d,{data:o});return(0,l.useEffect)(()=>{var e=null==A?void 0:A.getCepData;e&&(e.city?(m(I(I({},o),{},{street:e.street,city:e.city,neighborhood:e.neighborhood,state:e.state})),f(I(I({},u),{},{street:"",city:"",neighborhood:"",state:""}))):f(I(I({},u),{},{postalCode:"CEP inv\xe1lido"})))},[A]),(0,l.useEffect)(()=>{var e=null==T?void 0:T.submitUserRegistration;e&&("already-have-registration"===e.message&&y(!0),"success"===e.message&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"sign_up"}),P(!0)))},[T]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("section",{className:C().formTemplate,children:[(0,g.jsx)(w,{firstStepIcon:(0,g.jsx)(N,{color:"#363636"}),secondStepIcon:(0,g.jsx)(M,{color:"#363636"}),firstStepTitle:"Dados Pessoais",secondStepTitle:"Endere\xe7o",selectedStep:n}),(0,g.jsxs)("form",{onSubmit:e=>{var r,t;e.preventDefault(),f(I(I({},u),{},{postalCode:o.postalCode?9!==o.postalCode.length?"CEP inv\xe1lido":"":"*O preenchimento do campo “CEP” \xe9 obrigat\xf3rio.",street:o.street?"":"*O preenchimento do campo “Endere\xe7o” \xe9 obrigat\xf3rio.",number:o.number?"":"*O preenchimento do campo “N\xfamero” \xe9 obrigat\xf3rio.",neighborhood:o.neighborhood?"":"*O preenchimento do campo “Bairro” \xe9 obrigat\xf3rio.",city:o.city?"":"*O preenchimento do campo “Cidade” \xe9 obrigat\xf3rio.",state:o.state?"":"*O preenchimento do campo “UF” \xe9 obrigat\xf3rio."})),o.postalCode&&9===o.postalCode.length&&o.street&&o.number&&o.neighborhood&&o.city&&o.state&&Object.values(u).every(e=>!e)&&k({data:I(I({},o),{},{registerPromo:(t=[(r=new URLSearchParams(window.location.search)).get("utm_source"),r.get("utm_medium"),r.get("utm_campaign")]).every(e=>!e)?"":t.map(e=>e||"").join(",").slice(0,100)})})},noValidate:!0,children:[0===n&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h2",{style:{marginBottom:"24px"},children:"Dados Pessoais"}),(0,g.jsxs)("fieldset",{className:C().personal,children:[(0,g.jsx)(b,{placeholder:"Digite o seu nome",label:"Nome",name:"firstName",value:o.firstName,onChange:e=>{m(I(I({},o),{},{firstName:e})),f(I(I({},u),{},{firstName:""}))},required:!0,maxLength:60,errorMessage:u.firstName}),(0,g.jsx)(b,{placeholder:"Digite seu sobrenome",label:"Sobrenome",name:"lastName",value:o.lastName,onChange:e=>{m(I(I({},o),{},{lastName:e})),f(I(I({},u),{},{lastName:""}))},required:!0,maxLength:60,errorMessage:u.lastName}),(0,g.jsx)(b,{placeholder:"000.000.000-00",label:"CPF",name:"document",value:o.document,onChange:e=>{m(I(I({},o),{},{document:e})),f(I(I({},u),{},{document:""})),!function(e){var r,t,n=e.replace(/\./g,"").replace("-","");if(r=0,"00000000000"===n)return!1;for(var s=1;s<=9;s++)r+=parseInt(n.substring(s-1,s))*(11-s);if((10==(t=10*r%11)||11===t)&&(t=0),t!==parseInt(n.substring(9,10)))return!1;r=0;for(var o=1;o<=10;o++)r+=parseInt(n.substring(o-1,o))*(12-o);return(10==(t=10*r%11)||11===t)&&(t=0),t===parseInt(n.substring(10,11))}(e)&&14===e.length&&f(I(I({},u),{},{document:"*O preenchimento do campo “CPF” est\xe1 inv\xe1lido."}))},required:!0,cpf:!0,errorMessage:u.document}),(0,g.jsx)(b,{name:"birthDate",placeholder:"DD/MM/AAAA",value:o.birthDate,onChange:e=>{m(I(I({},o),{},{birthDate:e})),f(I(I({},u),{},{birthDate:""})),!function(e){var r=e.split("/")[2],t=parseInt(new Date().toLocaleDateString("en-US").split("/")[2])-parseInt(r);if(e){var n=e.split("/"),s=[];n.length>1&&(s=e.split("/"));var o=parseInt(s[0]),a=parseInt(s[1]);if(1920>=parseInt(s[2])||a>12||a<1||o>31||o<1||!1==t>=18)return!1}return!0}(e)&&10===e.length&&f(I(I({},u),{},{birthDate:'*O preenchimento do campo "Data de Nascimento" \xe9 obrigat\xf3rio +18 anos.'}))},label:"Data de Nascimento",required:!0,birthDate:!0,errorMessage:u.birthDate}),(0,g.jsx)(j,{name:"gender",placeholder:"Opcional",value:o.gender,onCh
1ange:e=>m(I(I({},o),{},{gender:e})),label:"G\xeanero",options:["Masculino","Feminino"]}),(0,g.jsx)(b,{placeholder:"Digite seu e-mail",label:"E-mail",name:"email",value:o.email,onChange:e=>{m(I(I({},o),{},{email:e})),f(I(I({},u),{},{email:""}))},required:!0,email:!0,maxLength:60,errorMessage:u.email}),(0,g.jsx)(b,{placeholder:"(00) 00000-0000",label:"Celular",name:"phone",value:o.phone,onChange:e=>{m(I(I({},o),{},{phone:e})),f(I(I({},u),{},{phone:""}))},required:!0,phone:!0,errorMessage:u.phone})]}),(0,g.jsxs)("div",{className:C().fieldsetGroup,children:[(0,g.jsxs)("fieldset",{className:C().optins,children:[(0,g.jsx)("h2",{children:"Autorizo receber ofertas e novidades por:"}),(0,g.jsx)(x,{label:"E-mail",name:"optInEmail",value:o.optInEmail,onChange:e=>m(I(I({},o),{},{optInEmail:e}))}),(0,g.jsx)(x,{label:"SMS",name:"optInSMS",value:o.optInSMS,onChange:e=>m(I(I({},o),{},{optInSMS:e}))}),(0,g.jsx)(x,{label:"WhatsApp",name:"optInWhatsApp",value:o.optInWhatsApp,onChange:e=>m(I(I({},o),{},{optInWhatsApp:e}))}),(0,g.jsx)(x,{label:"Envio de correspond\xeancia",name:"optInDirectMail",value:o.optInDirectMail,onChange:e=>m(I(I({},o),{},{optInDirectMail:e}))})]}),(0,g.jsxs)("div",{className:C().fieldsetGroupInner,children:[(0,g.jsx)("fieldset",{children:(0,g.jsx)(x,{label:(0,g.jsx)(_.A,{content:r}),name:"isTermsAndConditionsOptIn",value:o.isTermsAndConditionsOptIn,errorMessage:u.isTermsAndConditionsOptIn,onChange:e=>{m(I(I({},o),{},{isTermsAndConditionsOptIn:e})),f(I(I({},u),{},{isTermsAndConditionsOptIn:""}))}})}),(0,g.jsxs)("fieldset",{children:[(0,g.jsxs)("p",{children:["Participe do ",(0,g.jsx)("span",{children:"Cliente Bem Querer"})," e garanta ",(0,g.jsx)("span",{children:"beneficios exclusivos"})," em loja f\xedsica e online."]}),(0,g.jsx)(x,{label:(0,g.jsx)(_.A,{content:t}),name:"isTermsClient",value:o.isTermsClient,errorMessage:u.isTermsClient,onChange:e=>{m(I(I({},o),{},{isTermsClient:e})),f(I(I({},u),{},{isTermsClient:""}))}})]})]})]}),(0,g.jsxs)("button",{type:"button",onClick:e=>{var r,t,n,a,i,l;return e.preventDefault(),r=/^[ ',-\.A-Za-z\xC0-\xFA]+$/,t=o.email.match(/^[\w-.]+@([\w-]+\.)+[\w-]/),n=o.firstName.match(r),a=o.lastName.match(r),i=14===o.document.length,l=o.phone.length>=14,void(f(I(I({},u),{},{firstName:o.firstName?n?"":"*O preenchimento do campo “Nome” est\xe1 inv\xe1lido.":"*O preenchimento do campo “Nome” \xe9 obrigat\xf3rio.",lastName:o.lastName?a?"":"*O preenchimento do campo “Sobrenome” est\xe1 inv\xe1lido.":"*O preenchimento do campo “Sobrenome” \xe9 obrigat\xf3rio.",document:o.document?i?"":"*O preenchimento do campo “CPF” est\xe1 inv\xe1lido.":"*O preenchimento do campo “CPF” \xe9 obrigat\xf3rio.",phone:o.phone?l?"":"*O preenchimento do campo “Celular” est\xe1 inv\xe1lido.":"*O preenchimento do campo “Celular” \xe9 obrigat\xf3rio.",birthDate:o.birthDate?"":"*O preenchimento do campo “Data de Nascimento” \xe9 obrigat\xf3rio.",email:o.email?t?"":"*O preenchimento do campo “E-Mail” est\xe1 inv\xe1lido.":"*O preenchimento do campo “E-mail” \xe9 obrigat\xf3rio.",isTermsAndConditionsOptIn:"true"!==o.isTermsAndConditionsOptIn?"*O aceite do campo “Termos e Condi\xe7\xf5es de Uso do Site e App” \xe9 obrigat\xf3rio.":"",isTermsClient:"true"!==o.isTermsClient?"*O aceite do campo “Cliente Bem Querer” \xe9 obrigat\xf3rio.":""})),o.firstName&&o.lastName&&o.document&&o.birthDate&&o.email&&o.phone&&"true"===o.isTermsAndConditionsOptIn&&"true"===o.isTermsClient&&t&&n&&a&&i&&l&&Object.values(u).every(e=>!e)&&s(1))},children:["Continuar",(0,g.jsxs)("span",{children:["1/2",(0,g.jsx)(S,{color:"white"})]})]})]}),1===n&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h2",{style:{marginBottom:"24px"},children:"Endere\xe7o"}),(0,g.jsxs)("fieldset",{className:C().address,children:[(0,g.jsx)(b,{placeholder:"Digite o seu CEP",label:"CEP",name:"postalCode",value:o.postalCode,onChange:e=>{m(I(I({},o),{},{postalCode:e})),f(I(I({},u),{},{postalCode:""}))},required:!0,cep:!0,errorMessage:u.postalCode,onBlur:()=>void(o.postalCode&&D({cep:o.postalCode}))}),(0,g.jsx)(b,{placeholder:"Digite seu endere\xe7o",label:"Endere\xe7o",name:"street",value:o.street,onChange:e=>{m(I(I({},o),{},{street:e})),f(I(I({},u),{},{street:""}))},required:!0,errorMessage:u.street,maxLength:100}),(0,g.jsx)(b,{placeholder:"Digite seu n\xfamero",label:"N\xfamero",name:"number",value:o.number,onChange:e=>{m(I(I({},o),{},{number:e})),f(I(I({},u),{},{number:""}))},required:!0,errorMessage:u.number,maxLength:10}),(0,g.jsx)(b,{placeholder:"Opcional",label:"Complemento",name:"complement",value:o.complement,onChange:e=>{m(I(I({},o),{},{complement:e}))},maxLength:60}),(0,g.jsx)(b,{placeholder:"Digite seu bairro",label:"Digite seu bairro",name:"neighborhood",value:o.neighborhood,onChange:e=>{m(I(I({},o),{},{neighborhood:e})),f(I(I({},u),{},{neighborhood:""}))},required:!0,errorMessage:u.neighborhood,maxLength:60}),(0,g.jsxs)("div",{children:[(0,g.jsx)(b,{placeholder:"Digite sua cidade",label:"Cidade",name:"city",value:o.city,onChange:e=>{m(I(I({},o),{},{city:e}))},required:!0,errorMessage:u.city,maxLength:60}),(0,g.jsx)(j,{name:"state",placeholder:"Selecione",value:o.state,onChange:e=>m(I(I({},o),{},{state:e})),label:"UF",options:["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],errorMessage:u.state,required:!0})]}),(0,g.jsx)(b,{placeholder:"Opcional",label:"Ponto de refer\xeancia",name:"reference",value:o.reference,onChange:e=>{m(I(I({},o),{},{reference:e}))},maxLength:100})]}),(0,g.jsxs)("div",{className:C().submitContainer,children:[(0,g.jsx)("div",{onClick:()=>s(0),className:C().goBack,children:(0,g.jsx)(L,{color:"#363636"})}),(0,g.jsx)("button",{type:"submit",children:"Enviar"})]})]})]})]}),v&&(0,g.jsxs)(c.A,{className:C().formModal,onDismiss:()=>y(!1),children:[(0,g.jsx)(i.rQ,{onClose:()=>
1y(!1),title:"",closeBtnProps:{icon:(0,g.jsx)(h.A,{})}}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)("header",{children:[(0,g.jsx)("h4",{children:"J\xe1 existe um cadastro para este e-mail."}),(0,g.jsx)("p",{children:"Por favor, insira um e-mail v\xe1lido para finalizar seu cadastro."})]}),(0,g.jsx)("footer",{children:(0,g.jsx)("button",{className:C().tryAgain,onClick:()=>{y(!1),s(0),m({firstName:"",lastName:"",birthDate:"",gender:"",email:"",addressType:"residential",street:"",number:"",complement:"",neighborhood:"",city:"",state:"",reference:"",document:"",phone:"",postalCode:"",optInEmail:"true",optInSMS:"true",optInWhatsApp:"true",optInDirectMail:"true",isTermsAndConditionsOptIn:"true",isTermsClient:"true"}),window.scrollTo({top:0,behavior:"smooth"})},children:"Tentar novamente"})})]})]}),O&&(0,g.jsxs)(c.A,{className:C().formModal,onDismiss:()=>P(!1),children:[(0,g.jsx)(i.rQ,{onClose:()=>P(!1),title:"",closeBtnProps:{icon:(0,g.jsx)(h.A,{})}}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)("header",{children:[(0,g.jsx)("h4",{children:"Seu cadastro foi conclu\xeddo com sucesso!"}),(0,g.jsx)("p",{children:"Acesse sua conta com seu e-mail e aproveite nossas ofertas."})]}),(0,g.jsx)("footer",{children:(0,g.jsx)("button",{className:C().successBtn,onClick:()=>{window.location.href="https://obahortifruti.com.br/login"},children:"Entrar"})})]})]})]})}function T(e){var r,t,n,a,{isMobile:i,isDesktop:l}=(0,o.A)();return(0,g.jsxs)(g.Fragment,{children:[i&&(0,g.jsxs)("section",{className:C().registrationPage,children:[(0,g.jsx)(s.default,{showCta:!1,bannerFull:!0,bannerImg:e.banner}),(0,g.jsxs)("div",{className:C().heading,children:[(0,g.jsx)("h1",{children:e.title}),(0,g.jsx)("p",{children:e.text})]}),(0,g.jsx)(k,{textLabelLinkForm:null!=(r=e.textLabelLinkForm)?r:e.text,textLabelClientLinkForm:null!=(t=e.textLabelClientLinkForm)?t:e.text})]}),l&&(0,g.jsxs)("section",{className:C().registrationPage,children:[(0,g.jsxs)("div",{className:C().heading,children:[(0,g.jsx)("h1",{children:e.title}),(0,g.jsx)("p",{children:e.text}),(0,g.jsx)("img",{src:e.banner})]}),(0,g.jsx)(k,{textLabelLinkForm:null!=(n=e.textLabelLinkForm)?n:e.text,textLabelClientLinkForm:null!=(a=e.textLabelClientLinkForm)?a:e.text})]})]})}function E(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function B(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?E(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function F(e){return(0,g.jsx)(T,B(B({},e),{},{form:"cbq"}))}},95e3:e=>{e.exports={input:"styles_input__t0PM9",dkCep:"styles_dkCep__RGyBN",select:"styles_select__1DOqJ",placeholder:"styles_placeholder__TChai",checkbox:"styles_checkbox__9WFhP",checkmark:"styles_checkmark__OeMHp",errorMsg:"styles_errorMsg__DtB5O"}}}]);

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.