PageSourceSearch

https://www.qualidoc.com.br/_next/static/chunks/pages/parceiros-de-entrega-1380bbcc632499b2.js

js qualidoc.com.br collected 2026-09-24 12:33:46 UTC 31,470 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1742],{92709:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/parceiros-de-entrega",function(){return r(69465)}])},33235:function(e,a,r){"use strict";r.d(a,{u:function(){return getLayoutWithFooter}});var o=r(85893),n=r(33528),t=r(18308),l=r(5152),i=r.n(l),s=r(63847);let d=i()(()=>r.e(7609).then(r.bind(r,87609)),{loadableGenerated:{webpack:()=>[87609]},ssr:!1}),SiteLayoutWithFooter=e=>{let{children:a}=e,{layout:r}=(0,n.Z)();return(0,o.jsxs)("div",{className:"flex flex-col min-h-screen transition-colors duration-150 bg-gray-100",children:[(0,o.jsx)(t.Z,{layout:r}),a,(0,o.jsx)(d,{}),(0,o.jsx)(s.Z,{})]})},getLayoutWithFooter=e=>(0,o.jsx)(SiteLayoutWithFooter,{children:e})},10378:function(e,a,r){"use strict";r.d(a,{Z:function(){return TurnstileWidget}});var o=r(85893),n=r(4298),t=r.n(n),l=r(67294);let i="0x4AAAAAAE_HexWkvWkkvROh";function TurnstileWidget(e){let{onVerify:a,action:r}=e,n=(0,l.useRef)(null),s=(0,l.useRef)(null),d=(0,l.useRef)(a),c=(0,l.useRef)(r),[u,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>{d.current=a},[a]);let p=(0,l.useCallback)(()=>m(!0),[]);return((0,l.useEffect)(()=>{if(!i||!u||!n.current)return;let e=window.turnstile;if(!e)return;let a=c.current!==r;return c.current=r,s.current&&(e.remove(s.current),s.current=null,a&&d.current(null)),s.current=e.render(n.current,{sitekey:i,theme:"light",...r?{action:r}:{},callback:e=>d.current(e),"expired-callback":()=>d.current(null),"error-callback":()=>d.current(null)}),()=>{if(s.current){var e;null===(e=window.turnstile)||void 0===e||e.remove(s.current),s.current=null}}},[u,r]),i)?(0,o.jsxs)("div",{className:"mt-6",children:[(0,o.jsx)(t(),{src:"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",strategy:"lazyOnload",onReady:p}),(0,o.jsx)("div",{ref:n})]}):null}},27798:function(e,a,r){"use strict";var o=r(85893),n=r(30768),t=r(45754),l=r(2962);a.Z=e=>{let{title:a,description:r,images:i,url:s,twitter:d,...c}=e,u=null!=s&&""!==String(s).trim()?(0,n.GR)(s):void 0,m=(0,t.w7)(i,a||"Qualidoc");return(0,o.jsx)(l.PB,{...a?{title:a}:{},...r?{description:r}:{},...u?{canonical:u}:{},openGraph:{type:"website",locale:"pt_BR",...u&&{url:u},...a?{title:a}:{},...r?{description:r}:{},images:m},twitter:{cardType:"summary_large_image",...d},...c})}},40548:function(e,a,r){"use strict";r.d(a,{Z:function(){return s}});var o=r(85893),n=r(67294),t=r(38408);let l={option:(e,a)=>({...e,fontSize:"0.875rem",color:"rgb(var(--text-heading))",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12,cursor:"pointer",borderBottom:"1px solid #E5E7EB",backgroundColor:a.isSelected?"#efefef":a.isFocused?"#F9FAFB":"#ffffff"}),control:(e,a)=>{var r;return{width:null!==(r=a.selectProps.width)&&void 0!==r?r:"100%",display:"flex",alignItems:"center",minHeight:a.selectProps.isMinimal?0:50,backgroundColor:"#ffffff",borderRadius:5,border:a.selectProps.isMinimal?"none":"1px solid #F1F1F1",borderColor:a.isFocused?"rgb(var(--color-gray-500))":"#F1F1F1",boxShadow:a.menuIsOpen&&!a.selectProps.isMinimal&&"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"}},indicatorSeparator:()=>({display:"none"}),dropdownIndicator:(e,a)=>({...e,color:"rgb(var(--text-heading))","&:hover":{color:"rgb(var(--text-heading))"}}),clearIndicator:(e,a)=>({...e,color:a.isFocused?"#9CA3AF":"#cccccc",padding:0,cursor:"pointer","&:hover":{color:"#9CA3AF"}}),menu:(e,a)=>{var r;return{...e,width:null!==(r=a.selectProps.width)&&void 0!==r?r:"100%",borderRadius:5,border:"1px solid #E5E7EB",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"}},menuList:e=>({...e,paddingTop:0,paddingBottom:0}),valueContainer:(e,a)=>({...e,paddingLeft:a.selectProps.isMinimal?0:a.isRtl?4:16,paddingRight:a.selectProps.isMinimal?0:a.isRtl?16:4}),singleValue:(e,a)=>({...e,fontSize:"0.875rem",fontWeight:600,color:"rgb(var(--text-heading))"}),multiValue:(e,a)=>({...e,backgroundColor:"rgb(var(--color-accent-400))",borderRadius:9999,overflow:"hidden",boxShadow:"0 0px 3px 0 rgba(0, 0, 0, 0.1), 0 0px 2px 0 rgba(0, 0, 0, 0.06)"}),multiValueLabel:(e,a)=>({...e,paddingLeft:10,fontSize:"0.875rem",color:"#ffffff"}),multiValueRemove:(e,a)=>({...e,paddingLeft:0,paddingRight:8,color:"#ffffff",cursor:"pointer","&:hover":{backgroundColor:"rgb(var(--color-accent-300))",color:"#F3F4F6"}}),placeholder:(e,a)=>({...e,fontSize:"0.875rem",color:"rgba(107, 114, 128, 0.7)"}),noOptionsMessage:(e,a)=>({...e,fontSize:"0.875rem",color:"rgba(107, 114, 128, 0.7)"})},i=(0,n.forwardRef)((e,a)=>(0,o.jsx)(t.ZP,{ref:a,styles:l,...e}));i.displayName="Select";var s=i},33528:function(e,a,r){"use strict";var o=r(53015),n=r(8392),t=r(11163);a.Z=()=>{var e,a,r,l,i,s,d,c;let u=(0,n.c)({limit:o.Fi}),m=(0,t.useRouter)();if(/^\/$|^\/\?(.*)/.test(null==m?void 0:m.asPath)){let e=null!==(s=null==u?void 0:null===(r=u.types)||void 0===r?void 0:r.find(e=>{var a;return null==e?void 0:null===(a=e.settings)||void 0===a?void 0:a.isHome}))&&void 0!==s?s:null==u?void 0:null===(l=u.types)||void 0===l?void 0:l[0];return{layout:null!==(d=null==e?void 0:null===(i=e.settings)||void 0===i?void 0:i.layoutType)&&void 0!==d?d:"default",page:e}}let p=null==u?void 0:null===(e=u.types)||void 0===e?void 0:e.find(e=>m.asPath.includes(null==e?void 0:e.slug));return{layout:null!==(c=null==p?void 0:null===(a=p.settings)||void 0===a?void 0:a.layoutType)&&void 0!==c?c:"default",page:p}}},69465:function(e,a,r){"use strict";r.r(a),r.d(a,{__N_SSG:function(){return M},default:function(){return ParceirosDeEntregaPage}}
1);var o=r(85893),n=r(27798),t=r(33235),l=r(60802),i=r(88767),s=r(57659),d=r(95439);let c="N\xe3o foi poss\xedvel enviar sua candidatura. Tente novamente em instantes.";var u=r(47533),m=r(93967),p=r.n(m),x=r(67294),h=r(87536);let v=["Centro","Zona Sul","Zona Norte","Zona Leste","Zona Oeste","Barueri","Carapicu\xedba","Diadema","Guarulhos","N\xe3o tenho prefer\xeancia"],g=["Segunda","Ter\xe7a","Quarta","Quinta","Sexta","S\xe1bado","Domingo"],b=["Manh\xe3","Tarde","Noite","Madrugada"],f=[{value:"MEI",label:"MEI",hint:"Sou microempreendedor individual e emito nota fiscal."},{value:"RPA",label:"RPA",hint:"Presto servi\xe7o como aut\xf4nomo, via recibo de pagamento."}],_=[{value:"PF",label:"Pessoa F\xedsica"},{value:"PJ",label:"Pessoa Jur\xeddica"}],j=[{value:"CPF",label:"CPF"},{value:"PHONE",label:"Celular"},{value:"EMAIL",label:"E-mail"},{value:"RANDOM",label:"Chave aleat\xf3ria"}],y=[{id:1,title:"Dados pessoais"},{id:2,title:"Trabalho e pagamento"},{id:3,title:"Prefer\xeancias"}];var N=r(97514),C=r(8152);function DeliveryPartnerSuccess(e){let{protocol:a}=e;return(0,o.jsxs)("section",{className:"mx-auto max-w-2xl rounded-3xl border border-border-base bg-light p-8 text-center sm:p-12","aria-live":"polite",children:[(0,o.jsx)("span",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-accent/10",children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"h-8 w-8 text-accent","aria-hidden":"true",children:(0,o.jsx)("path",{d:"m5 12 5 5L20 7"})})}),(0,o.jsx)("h2",{className:"mb-3 text-2xl font-bold text-heading sm:text-3xl",children:"Candidatura enviada!"}),(0,o.jsx)("p",{className:"mb-2 text-base text-body",children:"Recebemos os seus dados. Nosso time analisa as candidaturas por ordem de chegada e entra em contato pelo telefone ou e-mail informados."}),a&&(0,o.jsxs)("p",{className:"mb-6 text-sm text-body",children:["Guarde o seu protocolo:"," ",(0,o.jsxs)("strong",{className:"font-semibold text-heading",children:["#",a]})]}),(0,o.jsx)("p",{className:"mb-8 text-sm text-body",children:"N\xe3o \xe9 preciso enviar o formul\xe1rio novamente — cadastros duplicados n\xe3o aceleram a an\xe1lise."}),(0,o.jsx)(C.Z,{href:N.Z.home,children:(0,o.jsx)(l.Z,{size:"medium",children:"Voltar para a p\xe1gina inicial"})})]})}function onlyDigits(e){return e.replace(/\D/g,"")}function maskCpf(e){let a=onlyDigits(e).slice(0,11);return a.replace(/^(\d{3})(\d)/,"$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d{1,2})$/,".$1-$2")}function maskPhone(e){let a=onlyDigits(e).slice(0,11);return a.length<=10?a.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{4})(\d{1,4})$/,"$1-$2"):a.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d{1,4})$/,"$1-$2")}function isValidCpf(e){let a=onlyDigits(e);if(11!==a.length||/^(\d)\1+$/.test(a))return!1;let digitAt=e=>{let r=0;for(let o=0;o<e;o+=1)r+=Number(a[o])*(e+1-o);let o=10*r%11;return 10===o||11===o?0:o};return digitAt(9)===Number(a[9])&&digitAt(10)===Number(a[10])}function calculateAge(e){let[a,r,o]=e.split("-").map(Number);if(!a||!r||!o)return Number.NaN;let n=new Date,t=n.getFullYear()-a,l=n.getMonth()+1-r,i=n.getDate()-o;return(l<0||0===l&&i<0)&&(t-=1),t}var k=r(16310);let P={CPF:e=>isValidCpf(e),PHONE:e=>[10,11].includes(onlyDigits(e).length),EMAIL:e=>/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.trim()),RANDOM:e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.trim())},S=k.Ry({first_name:k.Z_().trim().required("Informe seu nome").min(2,"Nome muito curto").max(120,"Nome muito longo"),last_name:k.Z_().trim().required("Informe seu sobrenome").min(2,"Sobrenome muito curto").max(120,"Sobrenome muito longo"),cpf:k.Z_().required("Informe seu CPF").test("cpf","CPF inv\xe1lido",e=>isValidCpf(null!=e?e:"")),rg:k.Z_().transform(e=>e||void 0).test("rg","RG inv\xe1lido",e=>!e||/^[0-9]{5,14}[0-9X]?$/.test(e.replace(/[^0-9Xx]/g,"").toUpperCase())),phone:k.Z_().required("Informe seu telefone").test("phone","Telefone deve ter DDD e 10 ou 11 d\xedgitos",e=>[10,11].includes(onlyDigits(null!=e?e:"").length)),email:k.Z_().trim().required("Informe seu e-mail").email("E-mail inv\xe1lido").max(180,"E-mail muito longo"),birth_date:k.Z_().required("Informe sua data de nascimento").test("age","\xc9 necess\xe1rio ter no m\xednimo ".concat(18," anos"),e=>calculateAge(null!=e?e:"")>=18).test("plausible","Data de nascimento inv\xe1lida",e=>100>calculateAge(null!=e?e:"")),modalidade:k.Z_().oneOf(["MEI","RPA"],"Selecione a modalidade").required("Selecione a modalidade"),cnpj:k.Z_().when("modalidade",{is:"MEI",then:e=>e.required("Informe o CNPJ do seu MEI").test("cnpj","CNPJ inv\xe1lido",e=>(function(e){let a=onlyDigits(e);if(14!==a.length||/^(\d)\1+$/.test(a))return!1;let checkDigit=e=>{let r=e.reduce((e,r,o)=>e+Number(a[o])*r,0),o=r%11;return o<2?0:11-o};return checkDigit([5,4,3,2,9,8,7,6,5,4,3,2])===Number(a[12])&&checkDigit([6,5,4,3,2,9,8,7,6,5,4,3,2])===Number(a[13])})(null!=e?e:"")),otherwise:e=>e.strip()}),has_smartphone:k.O7().required("Selecione uma op\xe7\xe3o"),has_app:k.O7().required("Selecione uma op\xe7\xe3o"),accepts_contact:k.O7().required("Selecione uma op\xe7\xe3o"),bank_name:k.Z_().required("Selecione o banco"),bank_code:k.Z_().optional(),account_type:k.Z_().oneOf(["PF","PJ"],"Selecione o tipo de conta").required("Selecione o tipo de conta"),bank_agency:k.Z_().required("Informe a ag\xeancia").matches(/^\d{1,10}$/,"Ag\xeancia deve conter apenas n\xfameros"),bank_account:k.Z_().required("Informe a conta com d\xedgito").matches(/^[\dxX-]{2,20}$/,"Conta inv\xe1lida"),has_pix:k.O7().required("Selecione uma op\xe7\xe3o"),pix_key_type:k.Z_().when("has_pix",{is:!0,then:e=>e.oneOf(["CPF","PHONE","EMAIL","RANDOM"],"Selecione o tipo de chave").required("Selecione o tipo de chave"),otherwise:e=>e.strip()}),pix_key:k.Z_().when("has_pix",{is:!0,then:e=>e.required("Informe sua chave PIX").test("pix-format","Chave PIX n\xe3o corresponde ao tipo selecionado",function(e){let a=this.parent.pix_key_type,r=a?P[a]:void 0;return!r||r(null!=e?e:"")}
1),otherwise:e=>e.strip()}),regions:k.IX(k.Z_().required()).min(1,"Selecione ao menos uma regi\xe3o").required("Selecione ao menos uma regi\xe3o"),available_days:k.IX(k.Z_().required()).min(1,"Selecione ao menos um dia").required("Selecione ao menos um dia"),preferred_periods:k.IX(k.Z_().required()).min(1,"Selecione ao menos um per\xedodo").required("Selecione ao menos um per\xedodo"),accepted_terms:k.O7().oneOf([!0],"\xc9 necess\xe1rio aceitar os Termos e Condi\xe7\xf5es de Uso").required(),accepted_safety:k.O7().oneOf([!0],"\xc9 necess\xe1rio declarar ci\xeancia das normas de seguran\xe7a").required()}),w=[["first_name","last_name","cpf","rg","phone","email","birth_date"],["modalidade","cnpj","has_smartphone","has_app","accepts_contact","bank_name","account_type","bank_agency","bank_account","has_pix","pix_key_type","pix_key"],["regions","available_days","preferred_periods","accepted_terms","accepted_safety"]];var Z=r(50122);function Fieldset(e){let{legend:a,description:r,children:n}=e;return(0,o.jsxs)("fieldset",{className:"mb-8 last:mb-0",children:[(0,o.jsx)("legend",{className:"mb-1 text-base font-semibold text-heading",children:a}),r?(0,o.jsx)("p",{className:"mb-4 text-sm text-body",children:r}):(0,o.jsx)("div",{className:"mb-4"}),n]})}function ChoiceGroup(e){let{label:a,name:r,options:n,value:t,onChange:l,error:i,columns:s=2}=e;return(0,o.jsxs)("div",{role:"radiogroup","aria-labelledby":"".concat(r,"-label"),"aria-invalid":i?"true":"false","aria-describedby":i?"".concat(r,"-error"):void 0,children:[(0,o.jsx)("span",{id:"".concat(r,"-label"),className:"mb-3 block text-sm font-semibold leading-none text-gray-200",children:a}),(0,o.jsx)("div",{className:p()("grid gap-3",2===s?"sm:grid-cols-2":"grid-cols-1"),children:n.map(e=>{let a="".concat(r,"-").concat(e.value),n=t===e.value;return(0,o.jsxs)("label",{htmlFor:a,className:p()("flex cursor-pointer items-start gap-3 rounded-2xl border p-4 transition",n?"border-accent bg-accent/5":"border-border-base hover:border-accent/50"),children:[(0,o.jsx)("input",{id:a,type:"radio",name:r,value:e.value,checked:n,onChange:()=>l(e.value),className:"mt-0.5 h-4 w-4 shrink-0 accent-accent"}),(0,o.jsxs)("span",{className:"min-w-0",children:[(0,o.jsx)("span",{className:"block text-sm font-medium text-heading",children:e.label}),e.hint&&(0,o.jsx)("span",{className:"mt-0.5 block text-xs text-body",children:e.hint})]})]},e.value)})}),i&&(0,o.jsx)("p",{id:"".concat(r,"-error"),className:"mt-2 text-xs text-red-500",children:i})]})}function CheckboxGroup(e){let{label:a,name:r,options:n,values:t,onChange:l,error:i}=e,toggle=e=>{l(t.includes(e)?t.filter(a=>a!==e):[...t,e])};return(0,o.jsxs)("div",{role:"group","aria-labelledby":"".concat(r,"-label"),"aria-describedby":i?"".concat(r,"-error"):void 0,children:[(0,o.jsx)("span",{id:"".concat(r,"-label"),className:"mb-3 block text-sm font-semibold leading-none text-gray-200",children:a}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(e=>{let a="".concat(r,"-").concat(e.replace(/\s+/g,"-").toLowerCase()),n=t.includes(e);return(0,o.jsxs)("label",{htmlFor:a,className:p()("flex cursor-pointer items-center gap-2 rounded-full border px-4 py-2 text-sm transition",n?"border-accent bg-accent/10 text-accent":"border-border-base text-body hover:border-accent/50"),children:[(0,o.jsx)("input",{id:a,type:"checkbox",checked:n,onChange:()=>toggle(e),className:"h-4 w-4 accent-accent"}),e]},e)})}),i&&(0,o.jsx)("p",{id:"".concat(r,"-error"),className:"mt-2 text-xs text-red-500",children:i})]})}function ConsentCheckbox(e){let{id:a,checked:r,onChange:n,error:t,children:l}=e;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("label",{htmlFor:a,className:"flex cursor-pointer items-start gap-3",children:[(0,o.jsx)("input",{id:a,type:"checkbox",checked:r,onChange:e=>n(e.target.checked),"aria-invalid":t?"true":"false","aria-describedby":t?"".concat(a,"-error"):void 0,className:"mt-0.5 h-4 w-4 shrink-0 accent-accent"}),(0,o.jsx)("span",{className:"text-sm leading-relaxed text-body",children:l})]}),t&&(0,o.jsx)("p",{id:"".concat(a,"-error"),className:"mt-2 text-xs text-red-500",children:t})]})}function StepDadosPessoais(){var e,a,r,n;let{register:t,control:l,formState:{errors:i}}=(0,h.Gc)();return(0,o.jsx)(Fieldset,{legend:"Dados pessoais",description:"Usamos estes dados para identificar voc\xea e entrar em contato sobre a candidatura.",children:(0,o.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,o.jsx)(Z.Z,{label:"Nome",required:!0,placeholder:"Jo\xe3o",...t("first_name"),error:null===(e=i.first_name)||void 0===e?void 0:e.message}),(0,o.jsx)(Z.Z,{label:"Sobrenome",required:!0,placeholder:"Silva",...t("last_name"),error:null===(a=i.last_name)||void 0===a?void 0:a.message}),(0,o.jsx)(h.Qr,{name:"cpf",control:l,render:e=>{var a,r;let{field:n}=e;return(0,o.jsx)(Z.Z,{label:"CPF",required:!0,inputMode:"numeric",placeholder:"000.000.000-00",name:n.name,ref:n.ref,value:null!==(r=n.value)&&void 0!==r?r:"",onBlur:n.onBlur,onChange:e=>n.onChange(maskCpf(e.target.value)),error:null===(a=i.cpf)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"rg",control:l,render:e=>{var a,r;let{field:n}=e;return(0,o.jsx)(Z.Z,{label:"RG",placeholder:"00.000.000-0",name:n.name,ref:n.ref,value:null!==(r=n.value)&&void 0!==r?r:"",onBlur:n.onBlur,onChange:e=>n.onChange(e.target.value.replace(/[^0-9Xx.-]/g,"").slice(0,14).toUpperCase()),error:null===(a=i.rg)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"phone",control:l,render:e=>{var a,r;let{field:n}=e;return(0,o.jsx)(Z.Z,{label:"Telefone / WhatsApp",required:!0,type:"tel",inputMode:"numeric",placeholder:"(11) 99999-9999",name:n.name,ref:n.ref,value:null!==(r=n.value)&&void 0!==r?r:"",onBlur:n.onBlur,onChange:e=>n.onChange(maskPhone(e.target.value)),error:null===(a=i.phone)||void 0===a?void 0:a.message})}}),(0,o.jsx)(Z.Z,{label:"E-mail",required:!0,type:"email",inputMode:"email",placeholder:"[email protected]",...t("email"),error:null===(r=i.email)||void 0===r?void 0:r.message}),(0,o.jsx)(Z.Z,{label:"Data de nascimento",required:!0,type:"date",...t("birth_date"),error:null===(n=i.birth_date)||void 0===n?void 0:n.message})]})})}var F=r(40548);let D=[{value:"true",label:"Sim"},{value:"false",label:"N\xe3o"}],E={CPF:"000.000.000-00",PHONE:"(11) 99999-9999",EMAIL:"[email protected]",RANDOM:"00000000-0000-0000-0000-000000000000"};function StepDadosProfissionais(e){var a,r,n,t;let{banks:l}=e,{register:i,control:s,watch:d,setValue:c,formState:{errors:u}}=(0,h.Gc)(),m=d("modalidade"),p=d("has_pix"),v=d("pix_key_type"),g=d("bank_name"),b=(0,x.useMemo)(()=>l.map(e=>({value:e.name,label:"000"===e.code?e.name:"".concat(e.code," — ").concat(e.name),code:e.code})),[l]),y=null!==(t=b.find(e=>e.value===g))&&void 0!==t?t:null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fieldset,{legend:"Modalidade de presta\xe7\xe3o de servi\xe7o",description:"Escolha como voc\xea quer prestar servi\xe7o para a Qualidoc.",children:(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(h.Qr,{name:"modalidade",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Modalidade",name:"modalidade",options:f,value:r.value,onChange:r.onChange,error:null===(a=u.modalidade)||void 0===a?void 0:a.message})}}),"MEI"===m&&(0,o.jsx)(h.Qr,{name:"cnpj",control:s,render:e=>{var a,r;let{field:n}=e;return(0,o.jsx)(Z.Z,{label:"CNPJ do MEI",required:!0,inputMode:"numeric",placeholder:"00.000.000/0000-00",className:"sm:max-w-sm",name:n.name,ref:n.ref,value:null!==(r=n.value)&&void 0!==r?r:"",onBlur:n.onBlur,onChange:e=>n.onChange(function(e){let a=onlyDigits(e).slice(0,14);return a.replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d{1,2})$/,"$1-$2")}(e.target.value)),error:null===(a=u.cnpj)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"has_smartphone",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Voc\xea tem smartphone com acesso \xe0 internet?",name:"has_smartphone",options:D,value:toRadioValue(r.value),onChange:e=>r.onChange("true"===e),error:null===(a=u.has_smartphone)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"has_app",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Voc\xea j\xe1 baixou o OnHere ou o AgileDelivery?",name:"has_app",options:D,value:toRadioValue(r.value),onChange:e=>r.onChange("true"===e),error:null===(a=u.has_app)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"accepts_contact",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Autoriza contato por telefone, WhatsApp ou SMS?",name:"accepts_contact",options:D,value:toRadioValue(r.value),onChange:e=>r.onChange("true"===e),error:null===(a=u.accepts_contact)||void 0===a?void 0:a.message})}})]})}),(0,o.jsx)(Fieldset,{legend:"Dados banc\xe1rios",description:"A conta precisa estar no seu nome ou no CNPJ do seu MEI. Guardamos estes dados criptografados.",children:(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"bank_name",className:"mb-3 block text-sm font-semibold leading-none text-gray-200",children:"Banco *"}),(0,o.jsx)(F.Z,{inputId:"bank_name",options:b,value:y,placeholder:"Busque pelo nome ou c\xf3digo do banco",noOptionsMessage:()=>"Nenhum banco encontrado",onChange:e=>{var a,r;c("bank_name",null!==(a=null==e?void 0:e.value)&&void 0!==a?a:"",{shouldValidate:!0}),c("bank_code",null!==(r=null==e?void 0:e.code)&&void 0!==r?r:"")}}),(null===(a=u.bank_name)||void 0===a?void 0:a.message)&&(0,o.jsx)("p",{className:"mt-2 text-xs text-red-500",children:u.bank_name.message})]}),(0,o.jsx)(h.Qr,{name:"account_type",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Tipo de conta",name:"account_type",options:_,value:r.value,onChange:r.onChange,error:null===(a=u.account_type)||void 0===a?void 0:a.message})}}),(0,o.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,o.jsx)(Z.Z,{label:"Ag\xeancia",required:!0,inputMode:"numeric",placeholder:"0001",...i("bank_agency"),error:null===(r=u.bank_agency)||void 0===r?void 0:r.message}),(0,o.jsx)(Z.Z,{label:"Conta com d\xedgito",required:!0,placeholder:"12345678-9",...i("bank_account"),error:null===(n=u.bank_account)||void 0===n?void 0:n.message})]}),(0,o.jsx)(h.Qr,{name:"has_pix",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Voc\xea tem chave PIX?",name:"has_pix",options:D,value:toRadioValue(r.value),onChange:e=>r.onChange("true"===e),error:null===(a=u.has_pix)||void 0===a?void 0:a.message})}}),!0===p&&(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(h.Qr,{name:"pix_key_type",control:s,render:e=>{var a;let{field:r}=e;return(0,o.jsx)(ChoiceGroup,{label:"Tipo de chave PIX",name:"pix_key_type",options:j,value:r.value,onChange:e=>{r.onChange(e),c("pix_key","")},error:null===(a=u.pix_key_type)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"pix_key",control:s,render:e=>{var a,r,n;let{field:t}=e;return(0,o.jsx)(Z.Z,{label:"Chave PIX",required:!0,className:"sm:max-w-md",placeholder:null!==(r=E[null!=v?v:""])&&void 0!==r?r:"Sua chave PIX",name:t.name,ref:t.ref,value:null!==(n=t.value)&&void 0!==n?n:"",onBlur:t.onBlur,onChange:e=>{var a;return t.onChange((a=e.target.value,"CPF"===v?maskCpf(a):"PHONE"===v?maskPhone(a):a))},error:null===(a=u.pix_key)||void 0===a?void 0:a.message})}})]})]})})]})}function toRadioValue(e){return void 0===e?void 0:String(e)}function StepPreferencias(e){let{regions:a,weekDays:r,periods:n}=e,{control:t,formState:{errors:l}}=(0,h.Gc)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fieldset,{legend:"Prefer\xeancias de trabalho",description:"Suas escolhas nos ajudam a distribuir as rotas. Elas n\xe3o s\xe3o um compromisso fixo.",children:(0,o.jsxs)("div",{className:"space-y-7",children:[(0,o.jsx)(h.Qr,{name:"regions",control:t,render:e=>{var r,n;let{field:t}=e;return(0,o.jsx)(CheckboxGroup,{label:"Em quais regi\xf5es voc\xea quer atuar?",name:"regions",options:a,values:null!==(n=t.value)&&void 0!==n?n:[],onChange:t.onChange,error:null===(r=l.regions)||void 0===r?void 0:r.message})}}),(0,o.jsx)(h.Qr,{name:"available_days",control:t,render:e=>{var a,n;let{field:t}=e;return(0,o.jsx)(CheckboxGroup,{label:"Quais dias da semana voc\xea tem disponibilidade?",name:"available_days",options:r,values:null!==(n=t.value)&&void 0!==n?n:[],onChange:t.onChange,error:null===(a=l.available_days)||void 0===a?void 0:a.message})}}),(0,o.jsx)(h.Qr,{name:"preferred_periods",control:t,render:e=>{var a,r;let{field:t}=e;return(0,o.jsx)(CheckboxGroup,{label:"Quais per\xedodos voc\xea prefere?",name:"preferred_periods",options:n,values:null!==(r=t.value)&&void 0!==r?r:[],onChange:t.onChange,error:null===(a=l.preferred_periods)||void 0===a?void 0:a.message})}})]})}),(0,o.jsx)(Fieldset,{legend:"Consentimentos",children:(0,o.jsxs)("div",{className:"space-y-4",children:[(0,o.jsx)(h.Qr,{name:"accepted_terms",control:t,render:e=>{var a,r;let{field:n}=e;return(0,o.jsxs)(ConsentCheckbox,{id:"accepted_terms",checked:null!==(r=n.value)&&void 0!==r&&r,onChange:n.onChange,error:null===(a=l.accepted_terms)||void 0===a?void 0:a.message,children:["Li e aceito os"," ",(0,o.jsx)("a",{href:N.Z.terms,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-accent underline",children:"Termos e Condi\xe7\xf5es de Uso"})," ","e a"," ",(0,o.jsx)("a",{href:N.Z.privacy,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-accent underline",children:"Pol\xedtica de Privacidade"}),", e autorizo o tratamento dos meus dados para fins de sele\xe7\xe3o."]})}}),(0,o.jsx)(h.Qr,{name:"accepted_safety",control:t,render:e=>{var a,r;let{field:n}=e;return(0,o.jsx)(ConsentCheckbox,{id:"accepted_safety",checked:null!==(r=n.value)&&void 0!==r&&r,onChange:n.onChange,error:null===(a=l.accepted_safety)||void 0===a?void 0:a.message,children:"Declaro estar ciente das normas de seguran\xe7a e higiene exigidas para o transporte de medicamentos."})}})]})})]})}var q=r(10378);let I={regions:[],available_days:[],preferred_periods:[],accepted_terms:!1,accepted_safety:!1};function DeliveryPartnerForm(){var e,a,r,n;let[t,m]=(0,x.useState)(0),[p,f]=(0,x.useState)(null),{options:_}=function(){let{data:e,isLoading:a,error:r}=(0,i.useQuery)([d.P.DELIVERY_PARTNERS_FORM_OPTIONS],()=>s.Z.deliveryPartners.formOptions(),{staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1});return{options:e,isLoading:a,error:r}}(),{createDeliveryPartner:j,isLoading:N,isSuccess:C,data:k,errorMessage:P}=function(){let{mutate:e,isLoading:a,isSuccess:r,data:o,error:n,reset:t}=(0,i.useMutation)(e=>s.Z.deliveryPartners.create(e));return{createDeliveryPartner:e,isLoading:a,isSuccess:r,data:o,errorMessage:n?function(e){var a,r,o;let n=null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.message;return Array.isArray(n)?null!==(o=n[0])&&void 0!==o?o:c:n||c}(n):null,reset:t}}(),Z=(0,h.cI)({resolver:(0,u.X)(S),mode:"onTouched",defaultValues:I});if(C)return(0,o.jsx)(DeliveryPartnerSuccess,{protocol:null==k?void 0:k.id});let F=t===y.length-1,D=!p,goNext=async()=>{let e=await Z.trigger(w[t],{shouldFocus:!0});e&&(m(e=>Math.min(e+1,y.length-1)),window.scrollTo({top:0,behavior:"smooth"}))};return(0,o.jsx)(h.RV,{...Z,children:(0,o.jsxs)("form",{onSubmit:Z.handleSubmit(e=>{j({first_name:e.first_name,last_name:e.last_name,cpf:onlyDigits(e.cpf),rg:e.rg||void 0,phone:onlyDigits(e.phone),email:e.email,birth_date:e.birth_date,modalidade:e.modalidade,cnpj:e.cnpj?onlyDigits(e.cnpj):void 0,has_smartphone:e.has_smartphone,has_app:e.has_app,accepts_contact:e.accepts_contact,bank_name:e.bank_name,bank_code:e.bank_code||void 0,account_type:e.account_type,bank_agency:onlyDigits(e.bank_agency),bank_account:e.bank_account,has_pix:e.has_pix,pix_key_type:e.has_pix?e.pix_key_type:void 0,pix_key:e.has_pix?e.pix_key:void 0,regions:e.regions,available_days:e.available_days,preferred_periods:e.preferred_periods,accepted_terms:e.accepted_terms,accepted_safety:e.accepted_safety,...p?{turnstile_token:p}:{}})}),noValidate:!0,className:"mx-auto max-w-3xl",children:[(0,o.jsx)(StepIndicator,{current:t}),(0,o.jsxs)("div",{className:"rounded-3xl border border-border-base bg-light p-6 sm:p-8",children:[0===t&&(0,o.jsx)(StepDadosPessoais,{}),1===t&&(0,o.jsx)(StepDadosProfissionais,{banks:null!==(e=null==_?void 0:_.banks)&&voi
1d 0!==e?e:[]}),2===t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(StepPreferencias,{regions:null!==(a=null==_?void 0:_.regions)&&void 0!==a?a:v,weekDays:null!==(r=null==_?void 0:_.week_days)&&void 0!==r?r:g,periods:null!==(n=null==_?void 0:_.periods)&&void 0!==n?n:b}),(0,o.jsx)(q.Z,{onVerify:f})]}),P&&(0,o.jsx)("p",{role:"alert",className:"mt-6 rounded-2xl bg-red-50 px-4 py-3 text-sm text-red-600",children:P}),(0,o.jsxs)("div",{className:"mt-8 flex flex-col-reverse gap-3 sm:flex-row sm:justify-between",children:[t>0?(0,o.jsx)(l.Z,{variant:"outline",onClick:()=>{m(e=>Math.max(e-1,0)),window.scrollTo({top:0,behavior:"smooth"})},disabled:N,children:"Voltar"}):(0,o.jsx)("span",{className:"hidden sm:block"}),F?(0,o.jsx)(l.Z,{type:"submit",loading:N,disabled:N||D,children:"Enviar candidatura"}):(0,o.jsx)(l.Z,{onClick:goNext,children:"Continuar"})]}),D&&F&&(0,o.jsx)("p",{className:"mt-3 text-center text-xs text-body sm:text-right",children:"Conclua a verifica\xe7\xe3o de seguran\xe7a para enviar."})]})]})})}function StepIndicator(e){let{current:a}=e;return(0,o.jsx)("ol",{className:"mb-6 flex items-center gap-2","aria-label":"Etapas do cadastro",children:y.map((e,r)=>{let n=r===a;return(0,o.jsxs)("li",{className:"flex flex-1 flex-col gap-2",children:[(0,o.jsx)("span",{className:p()("h-1.5 w-full rounded-full transition-colors",n||r<a?"bg-accent":"bg-border-base")}),(0,o.jsx)("span",{"aria-current":n?"step":void 0,className:p()("text-xs font-medium",n?"text-accent":"text-body"),children:e.title})]},e.id)})})}let R=[{title:"Voc\xea escolhe quando rodar",description:"Informe os dias e per\xedodos que combinam com a sua rotina. Sem escala fixa."},{title:"Rotas na sua regi\xe3o",description:"Selecione as regi\xf5es da Grande S\xe3o Paulo em que prefere fazer entregas."},{title:"MEI ou RPA",description:"Atenda como microempreendedor individual ou como aut\xf4nomo, do seu jeito."}];var M=!0;function ParceirosDeEntregaPage(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Z,{title:"Parceiros de entrega",description:"Cadastre-se para ser parceiro de entrega da Qualidoc e participar da log\xedstica da farm\xe1cia online.",url:"parceiros-de-entrega"}),(0,o.jsxs)("section",{className:"bg-gray-100 px-4 py-12 sm:py-16",children:[(0,o.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,o.jsx)("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-accent",children:"Trabalhe com a Qualidoc"}),(0,o.jsx)("h1",{className:"mb-4 text-3xl font-bold text-heading sm:text-4xl",children:"Seja um parceiro de entrega"}),(0,o.jsx)("p",{className:"text-base text-body sm:text-lg",children:"Leve sa\xfade at\xe9 a casa das pessoas. Preencha o cadastro em tr\xeas etapas r\xe1pidas e nosso time entra em contato com os pr\xf3ximos passos."})]}),(0,o.jsx)("ul",{className:"mx-auto mt-10 grid max-w-4xl gap-4 sm:grid-cols-3",children:R.map(e=>(0,o.jsxs)("li",{className:"rounded-2xl border border-border-base bg-light p-5",children:[(0,o.jsx)("h2",{className:"mb-1 text-sm font-semibold text-heading",children:e.title}),(0,o.jsx)("p",{className:"text-sm text-body",children:e.description})]},e.title))})]}),(0,o.jsx)("section",{className:"px-4 py-12 sm:py-16",children:(0,o.jsx)(DeliveryPartnerForm,{})})]})}ParceirosDeEntregaPage.getLayout=t.u}},function(e){e.O(0,[8596,7169,4750,8408,8308,2946,3847,9774,2888,179],function(){return e(e.s=92709)}),_N_E=e.O()}]);
2//# sourceMappingURL=parceiros-de-entrega-1380bbcc632499b2.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.