1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5443],{70016:function(e,n,t){t.d(n,{Z:function(){return v}});var a=t(85893),i=t(25675),o=t.n(i),r=t(67294),l=t(19521),s=t(65278),d=t(85703);let c=l.ZP.div.withConfig({displayName:"frequency-card-planos-price.styled__ContentFrequencyCardPlanosPrice",componentId:"sc-5551d209-0"})(["padding-bottom:20px;width:100%;"," @media (max-width:1199px){padding-bottom:35px;}.container-frequency{backdrop-filter:blur(4px);background:",";border:1px solid ",";border-radius:999px;box-shadow:-4px -8px 10px 0px #ffffff99 inset;box-shadow:0px 1px 6px 0px #0000000d inset;display:flex;flex-direction:row;height:auto;margin:0 auto;max-width:100%;padding:6px;width:fit-content;button{align-items:center;background-color:transparent;border:none;border-radius:999px;color:",";cursor:pointer;display:flex;flex-direction:row;font-size:15px;font-weight:600;gap:5px;line-height:24px;padding:5px 16px;opacity:0.4;","{font-size:14px;padding:5px 12px;}&.active{background-color:",";color:",";opacity:1;.icon-frequency{filter:initial;}}","{padding:8px;}.text-after-frequency *{background:linear-gradient( 90deg,rgba(141,215,215,0.2) 0%,rgba(141,215,215,0) 106.17% );border-radius:99px;color:",";font-size:14px;font-weight:700;line-height:24px;padding:2px 10px;","{font-size:13px;}}}.icon-frequency{height:22px;object-fit:contain;width:22px;}}"],e=>{let{isSolutionsItemns:n}=e;return n&&(0,l.iv)(["align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:20px;justify-content:space-between;","{flex-direction:column;justify-content:center;}"],s.Hb.mediumSimple)},e=>{let{bgColor:n}=e;return n||d.r.colors.white},e=>{let{borderColor:n}=e;return n||"trasnparent"},e=>{let{textColor:n}=e;return n||d.r.colors.dark},s.Hb.mobile,e=>{let{colorButtonActive:n}=e;return n||d.r.colors.white},e=>{let{textColorActive:n}=e;return n||d.r.colors.white},s.Hb.xsmall,d.r.colors.green,s.Hb.mobile),u=l.ZP.div.withConfig({displayName:"frequency-card-planos-price.styled__SolutionItemsList",componentId:"sc-5551d209-1"})(["display:flex;gap:8px;","{flex-wrap:wrap;justify-content:center;}"],s.Hb.mediumSimple),p=l.ZP.div.withConfig({displayName:"frequency-card-planos-price.styled__SolutionItem",componentId:"sc-5551d209-2"})(["align-items:center;background:transparent;border:1px solid #ccdff2;border-radius:999px;display:inline-flex;gap:4px;padding:7px 17px;.solution-icon{flex-shrink:0;height:16px;object-fit:contain;width:16px;}.solution-text *{color:",";font-weight:400;font-size:16px;line-height:120%;}.solution-highlight{background:linear-gradient( 90deg,rgba(76,146,221,0.2) 0%,rgba(10,78,228,0) 100% );border-radius:15px;color:",";font-size:14px;font-weight:500;line-height:120%;padding:2px 10px;white-space:nowrap;}"],d.r.colors.dark,d.r.colors.primary),m=l.ZP.div.withConfig({displayName:"frequency-card-planos-price.styled__TagFrequency",componentId:"sc-5551d209-3"})(["p{color:",";font-size:14px;font-weight:400;line-height:24px;padding-bottom:8px;text-align:center;i{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background:linear-gradient( 89deg,"," -13.76%,#8dd7d7 23.1%,#e64e36 59.21%,#df9fc7 81.15%,#f0a028 105.63% );background-clip:text;font-style:normal;}}"],d.r.colors.dark,d.r.colors.primary);var v=e=>{var n,t,i,l,s,d,v,h;let{frequency:g,handleFrequencySelect:x,solutionItems:f}=e,_=null==g?void 0:g.active_frequency,b=f&&f.length>0,[y,w]=(0,r.useState)(_),j=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MENSAL";w(e),x(e,n)};return(0,a.jsxs)(c,{className:"frequency-card-planos-price",bgColor:null==g?void 0:g.bg_frequency,colorButtonActive:null==g?void 0:g.color_frequency_active,textColor:null==g?void 0:g.color_text_frequency,textColorActive:null==g?void 0:g.color_text_frequency_active,borderColor:null==g?void 0:g.border_color,isSolutionsItemns:b,children:[b&&(0,a.jsx)(u,{children:f.map(e=>(0,a.jsxs)(p,{children:[e.icon&&(0,a.jsx)(o(),{className:"solution-icon",src:e.icon.url,alt:e.icon.alternativeText||"",width:16,height:16}),e.text&&(0,a.jsx)("div",{className:"solution-text",dangerouslySetInnerHTML:{__html:null==e?void 0:e.text}}
1),e.title_tooltip&&(0,a.jsx)("span",{className:"solution-highlight",children:e.title_tooltip})]},e.id))}),(0,a.jsxs)("div",{children:[(null==g?void 0:g.text_top_new)&&(0,a.jsx)(m,{dangerouslySetInnerHTML:{__html:null==g?void 0:g.text_top_new}}),(0,a.jsxs)("div",{className:"container-frequency",children:[(0,a.jsxs)("button",{type:"button",className:y?"":"active",onClick:()=>j(!1,"MENSAL"),children:[null==g?void 0:g.frequency_1,(null==g?void 0:null===(n=g.img_monthly)||void 0===n?void 0:n.data)&&(0,a.jsx)(o(),{className:"icon-frequency",src:null==g?void 0:null===(l=g.img_monthly)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.url,alt:"Icone",width:22,height:22}),(0,a.jsx)("div",{className:"text-after-frequency",dangerouslySetInnerHTML:{__html:null==g?void 0:g.text_after_monthly}})]}),(0,a.jsxs)("button",{type:"button",className:y?"active":"",onClick:()=>j(!0,"ANUAL"),children:[null==g?void 0:g.frequency_2,(null==g?void 0:null===(s=g.img_yearly)||void 0===s?void 0:s.data)&&(0,a.jsx)(o(),{className:"icon-frequency",src:null==g?void 0:null===(h=g.img_yearly)||void 0===h?void 0:null===(v=h.data)||void 0===v?void 0:null===(d=v.attributes)||void 0===d?void 0:d.url,alt:"Icone",width:22,height:22}),(0,a.jsx)("div",{className:"text-after-frequency",dangerouslySetInnerHTML:{__html:null==g?void 0:g.text_after_yearly}})]})]})]})]})}},2588:function(e,n,t){t.d(n,{X:function(){return g}});var a=t(85893),i=t(25675),o=t.n(i),r=t(67294),l=t(85703),s=t(19521);let d=s.ZP.div.withConfig({displayName:"countdown.styles__CountdownContainer",componentId:"sc-c8c9aeb0-0"})(["align-items:center;display:flex;gap:10px;justify-content:center;"]),c=s.ZP.div.withConfig({displayName:"countdown.styles__CountdownItem",componentId:"sc-c8c9aeb0-1"})(["background-color:",";border-radius:4px;display:flex;flex-direction:column;padding:10px;.time{color:",";font-size:22px;font-weight:800;line-height:22px;text-align:center;transition:all ease 250ms;}.name{color:",";font-size:16px;font-weight:400;line-height:16px;text-align:center;}"],e=>{let{bgcolor:n}=e;return n},l.r.colors.white,l.r.colors.white),u=e=>{let{bgColor:n=l.r.colors.primary,endDate:t}=e,[i,o]=(0,r.useState)({days:0,hours:0,minutes:0,seconds:0});return(0,r.useEffect)(()=>{let e=setTimeout(()=>{o(function(e){let n=+new Date(e)-+new Date,t={days:0,hours:0,minutes:0,seconds:0};return n>0&&(t={days:Math.floor(n/864e5),hours:Math.floor(n/36e5%24),minutes:Math.floor(n/1e3/60%60),seconds:Math.floor(n/1e3%60)}),t}(t))},1e3);return()=>{clearTimeout(e)}}),(0,a.jsxs)(d,{children:[(0,a.jsxs)(c,{bgcolor:n,children:[(0,a.jsx)("div",{className:"time",children:i.days}),(0,a.jsx)("div",{className:"name",children:"dias"})]}),(0,a.jsxs)(c,{bgcolor:n,children:[(0,a.jsx)("div",{className:"time",children:i.hours}),(0,a.jsx)("div",{className:"name",children:"horas"})]}),(0,a.jsxs)(c,{bgcolor:n,children:[(0,a.jsxs)("div",{className:"time",children:[" ",i.minutes]}),(0,a.jsx)("div",{className:"name",children:"min"})]}),(0,a.jsxs)(c,{bgcolor:n,children:[(0,a.jsxs)("div",{className:"time",children:[" ",i.seconds]}),(0,a.jsx)("div",{className:"name",children:"seg"})]})]})};var p=t(31873),m=t(65278);let v=s.ZP.div.withConfig({displayName:"bf-banner-header.styles__BannerContent",componentId:"sc-5d3acca-0"})(["background:",";height:100%;padding:8px 28px;width:100%;","{padding:8px 16px;}","{padding:8px;}"," .flex-banner-bf{align-items:center;display:flex;gap:30px;justify-content:center;width:auto;margin:0 auto;","{flex-direction:column;gap:10px;}&.countdown-off{width:100%;max-width:1070px;flex-direction:row;gap:44px;justify-content:space-between;","{flex-direction:column;gap:10px;}}&.space-center{justify-content:center;}}.bf-image{max-width:230px;width:100%;height:auto;object-fit:contain;","{max-width:200px;}}.description{&.title-md{p{color:",";font-size:18px;line-height:120%;"," ","{text-align:center;}}}","{max-width:100%;}p{color:",";font-size:18px;line-height:120%;"," ","{text-align:center;}}img{max-width:1000px;object-fit:contain;width:100%;}}.countdown-container{align-items:center;display:flex;flex-direction:row;gap:30px;","{flex-direction:column;gap:10px;}","{flex-direction:column;gap:10px;}button,a{white-space:nowrap;}}"],e=>{let{bgcolor:n}=e;return n||"#001c5b"},m.Hb.small,m.Hb.xsmall,e=>{let{bgimage:n}=e;return n&&(0,s.iv)(["background-image:url(",");background-position:center;background-repeat:no-repeat;background-size:cover;"],n)},m.Hb.mediumSimple,m.Hb.mobile,m.Hb.xsmall,l.r.colors.white,m.yc,m.Hb.mobile,m.Hb.mediumSimple,l.r.colors.white,m.yc,m.Hb.mobile,m.Hb.medium,m.Hb.mobile),h=(0,s.ZP)(p.Z).withConfig({displayName:"bf-banner-header.styles__StyledButtonBannerHeader",componentId:"sc-5d3acca-1"})(["background:"," !important;color:"," !important;margin:"," !important;white-space:nowrap;&:hover{background:",";color:",";}"],e=>{let{bgcolor:n}=e;return n||l.r.colors.primary},e=>{let{textcolor:n}=e;return n},e=>{let{margin:n}=e;return n},e=>{let{bgcolor:n}=e;return n||l.r.colors.primary},e=>{let{textcolor:n}=e;return n||l.r.colors.white}),g=e=>{var n,t,i,r,l,s,d,c,p,m,g,x,f,_,b,y,w,j;let{addButtonBanner:C,data:A}=e,N=!!(null==A?void 0:null===(n=A.banner_bf_header)||void 0===n?void 0:n.countdown_end_date);return(0,a.jsx)(v,{id:"banner-bf-olist",bgimage:null==A?void 0:null===(i=A.banner_bf_header)||void 0===i?void 0:null===(t=i.bg_image)||void 0===t?void 0:t.url,bgcolor:null==A?void 0:null===(r=A.banner_bf_header)||void 0===r?void 0:r.bg_color,children:(0,a.jsxs)("div",{className:"flex-banner-bf\n ".concat(N?"":"countdown-off","\n ").concat(C?"":"space-center","\n "),children:[(null==A?void 0:null===(s=A.banner_bf_header)||void 0===s?void 0:null===(l=s.main_image)||void 0===l?void 0:l.url)&&(0,a.jsx)(o(),{className:"bf-image",alt:"black friday banner",src:null==A?void 0:null===(c=A.banner_bf_header)||void 0===c?void 0:null===(d=c.main_image)||void 0===d?void 0:d.url,loading:"eager",width:230,height:40,sizes:"100vw"}),(null==A?void 0:null===(p=A.banner_bf_header)||void 0===p?void 0:p.description)&&(0,a.jsx)("div",{className:"description ".concat(N?"":"title-md"),dangerouslySetInnerHTML:{__html:null==A?void 0:null===(m=A.banner_bf_header)||void 0===m?void 0:m.description}}),(0,a.jsxs)("div",{className:"countdown-container",children:[(null==A?void 0:null===(g=A.banner_bf_header)||void 0===g?void 0:g.countdown_end_date)&&(0,a.jsx)(u,{endDate:null==A?void 0:null===(x=A.banner_bf_header)||void 0===x?void 0:x.countdown_end_date,bgColor:null==A?void 0:null===(f=A.banner_bf_header)||void 0===f?void 0:f.countdown_bg_color}),C&&(null==A?void 0:null===(_=A.banner_bf_header)||void 0===_?void 0:_.button_title)&&(0,a.jsx)("div",{children:(0,a.jsx)(h,{className:"pill-button button-banner",href:null==A?void 0:null===(b=A.banner_bf_header)||void 0===b?void 0:b.button_link,bgcolor:null==A?void 0:null===(y=A.banner_bf_header)||void 0===y?void 0:y.bg_button,textcolor:null==A?void 0:null===(w=A.banner_bf_header)||void 0===w?void 0:w.text_color_button,children:null==A?void 0:null===(j=A.banner_bf_header)||void 0===j?void 0:j.button_title})})]})]})})}},32570:function(e,n,t){var a=t(85893);t(67294),n.Z=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:33,fill:"none",...e,children:(0,a.jsx)("path",{fill:"#4D5C7E",d:"M29.73 16.135c0-
17.396-5.988-13.399-13.365-13.399S3 8.74 3 16.135c0 6.484 4.598 11.884 10.692 13.13v-9.11h-2.673v-4.02h2.673v-3.35c0-2.586 2.098-4.69 4.678-4.69h3.341v4.02h-2.673c-.735 0-1.337.603-1.337 1.34v2.68h4.01v4.02h-4.01v9.311c6.75-.67 12.029-6.378 12.029-13.331Z"})})},17958:function(e,n,t){var a=t(85893);t(67294);var i=t(85703);n.Z=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:33,fill:"none",...e,children:[(0,a.jsx)("mask",{id:"a",fill:i.r.colors.white,children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M15.997 29.372c7.364 0 13.334-5.97 13.334-13.333 0-7.364-5.97-13.333-13.334-13.333-7.363 0-13.333 5.97-13.333 13.333 0 7.364 5.97 13.333 13.333 13.333Zm3.36-21.333h-6.72a4.64 4.64 0 0 0-4.64 4.64v6.72c0 2.56 2.08 4.64 4.64 4.64h6.72a4.64 4.64 0 0 0 4.64-4.64v-6.72c0-2.56-2.08-4.64-4.64-4.64Zm-8.917 2.443a2.88 2.88 0 0 1 2.036-.843h7.04a2.878 2.878 0 0 1 2.88 2.88v7.04a2.88 2.88 0 0 1-2.88 2.88h-7.04a2.878 2.878 0 0 1-2.88-2.88v-7.04c0-.764.304-1.496.844-2.037Zm10.463.65a1 1 0 1 0-1.414 1.414 1 1 0 0 0 1.414-1.414Zm-2.078 2.078a4 4 0 1 0-5.657 5.656 4 4 0 0 0 5.657-5.656Zm-4.526 1.132a2.4 2.4 0 1 1 3.394 3.394 2.4 2.4 0 0 1-3.394-3.394Z",clipRule:"evenodd"})}),(0,a.jsx)("path",{fill:"#4D5C7E",fillRule:"evenodd",d:"M15.997 29.372c7.364 0 13.334-5.97 13.334-13.333 0-7.364-5.97-13.333-13.334-13.333-7.363 0-13.333 5.97-13.333 13.333 0 7.364 5.97 13.333 13.333 13.333Zm3.36-21.333h-6.72a4.64 4.64 0 0 0-4.64 4.64v6.72c0 2.56 2.08 4.64 4.64 4.64h6.72a4.64 4.64 0 0 0 4.64-4.64v-6.72c0-2.56-2.08-4.64-4.64-4.64Zm-8.917 2.443a2.88 2.88 0 0 1 2.036-.843h7.04a2.878 2.878 0 0 1 2.88 2.88v7.04a2.88 2.88 0 0 1-2.88 2.88h-7.04a2.878 2.878 0 0 1-2.88-2.88v-7.04c0-.764.304-1.496.844-2.037Zm10.463.65a1 1 0 1 0-1.414 1.414 1 1 0 0 0 1.414-1.414Zm-2.078 2.078a4 4 0 1 0-5.657 5.656 4 4 0 0 0 5.657-5.656Zm-4.526 1.132a2.4 2.4 0 1 1 3.394 3.394 2.4 2.4 0 0 1-3.394-3.394Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#4D5C7E",d:"m10.44 10.482-.943-.942.943.942Zm11.113 11.113.942.943-.942-.943Zm-.65-10.463-.943.943.943-.943Zm-1.414 0 .943.943-.943-.943Zm-.665 2.078-.942.943.942-.943Zm-5.656 0-.943-.942.943.942Zm0 5.657.943-.943-.943.943Zm5.657 0-.943-.943.942.943Zm-4.526-4.525-.943-.943.943.943Zm3.394 0 .943-.943-.943.943ZM14.3 17.736l-.943.943.943-.943Zm13.698-1.697c0 6.628-5.372 12-12 12v2.667c8.1 0 14.667-6.567 14.667-14.667h-2.667Zm-12-12c6.628 0 12 5.373 12 12h2.667c0-8.1-6.566-14.667-14.667-14.667V4.04Zm-12 12c0-6.627 5.373-12 12-12V1.372c-8.1 0-14.666 6.567-14.666 14.667h2.666Zm12 12c-6.627 0-12-5.372-12-12H1.331c0 8.1 6.566 14.667 14.666 14.667v-2.667Zm-3.36-18.667h6.72V6.705h-6.72v2.667Zm-2.34.969a3.307 3.307 0 0 1 2.34-.969V6.705c-1.585 0-3.104.63-4.225 1.75l1.886 1.886Zm-.968 2.338c0-.877.349-1.718.969-2.338L8.412 8.455a5.973 5.973 0 0 0-1.75 4.224H9.33Zm0 6.72v-6.72H6.663v6.72h2.666Zm3.307 3.306A3.31 3.31 0 0 1 9.33 19.4H6.663a5.977 5.977 0 0 0 5.973 5.973v-2.666Zm6.72 0h-6.72v2.667h6.72v-2.666Zm2.338-.968c-.62.62-1.46.969-2.338.969v2.666c1.584 0 3.104-.63 4.224-1.75l-1.886-1.885Zm.969-2.338c0 .877-.349 1.718-.969 2.338l1.886 1.886a5.973 5.973 0 0 0 1.75-4.224h-2.667Zm0-6.72v6.72h2.666v-6.72h-2.666Zm-3.307-3.307a3.31 3.31 0 0 1 3.307 3.307h2.666a5.977 5.977 0 0 0-5.973-5.974v2.667Zm-6.88-1.067c-1.117 0-2.189.444-2.98 1.235l1.886 1.885c.29-.29.684-.453 1.094-.453V8.305Zm7.04 0h-7.04v2.667h7.04V8.305Zm4.213 4.214a4.211 4.211 0 0 0-4.213-4.214v2.667c.856 0 1.547.691 1.547 1.547h2.666Zm0 7.04v-7.04h-2.666v7.04h2.666Zm-1.234 2.98a4.214 4.214 0 0 0 1.234-2.98h-2.666c0 .41-.163.803-.453 1.093l1.885 1.886Zm-2.979 1.233c1.118 0 2.19-.444 2.98-1.234l-1.886-1.886c-.29.29-.684.453-1.094.453v2.667Zm-7.04 0h7.04v-2.666h-7.04v2.666ZM8.263 19.56a4.212 4.212 0 0 0 4.213 4.213v-2.666a1.545 1.545 0 0 1-1.547-1.547H8.263Zm0-7.04v7.04h2.666v-7.04H8.263Zm1.234-2.98a4.213 4.213 0 0 0-1.234 2.98h2.666c0-.41.163-.804.453-1.094L9.497 9.54Zm10.7 2.633a.333.333 0 0 1-.237-.098l1.886-1.885a2.333 2.333 0 0 0-1.65-.684v2.667Zm.235-.098a.333.333 0 0 1-.236.098V9.505c-.619 0-1.212.246-1.65.684l1.886 1.886Zm.097-.235a.333.333 0 0 1-.097.236l-1.886-1.886a2.333 2.333 0 0 0-.683 1.65h2.666Zm-.097-.236a.333.333 0 0 1 .097.236h-2.666c0 .619.246 1.212.683 1.65l1.886-1.886Zm-.236-.098c.088 0 .173.036.236.098l-1.886 1.886a2.333 2.333 0 0 0 1.65.683v-2.667Zm-.236.098a.333.333 0 0 1 .236-.098v2.667c.619 0 1.212-.246 1.65-.683l-1.886-1.886Zm-.097.236c0-.089.035-.173.097-.236l1.886 1.886a2.333 2.333 0 0 0 .683-1.65h-2.666Zm.097.236a.333.333 0 0 1-.097-.236h2.666c0-.619-.245-1.213-.683-1.65l-1.886 1.886Zm-3.964 1.297c.707 0 1.386.281 1.886.781l1.885-1.885c-1-1-2.356-1.563-3.77-1.563v2.667Zm-1.886.781c.5-.5 1.179-.78 1.886-.78v-2.667a5.333 5.333 0 0 0-3.771 1.562l1.886 1.885Zm-.78 1.886c0-.707.28-1.386.78-1.886l-1.885-1.885c-1 1-1.562 2.356-1.562 3.77h2.666Zm.78 1.885c-.5-.5-.78-1.178-.78-1.885h-2.667c0 1.414.562 2.77 1.562 3.771l1.886-1.886Zm1.886.782a2.667 2.667 0 0 1-1.886-.782l-1.885 1.886c1 1 2.357 1.562 3.771 1.562v-2.666Zm1.886-.782c-.5.5-1.179.782-1.886.782v2.666a5.334 5.334 0 0 0 3.771-1.562l-1.885-1.886Zm.78-1.885c0 .707-.28 1.385-.78 1.885l1.885 1.886c1-1 1.562-2.357 1.562-3.771h-2.666Zm-.78-1.886c.5.5.78 1.179.78 1.886h2.667a5.333 5.333 0 0 0-1.562-3.771l-1.885 1.885Zm-1.886-1.848c-.99 0-1.94.394-2.64 1.094l1.886 1.886c.2-.2.471-.313.754-.313v-2.666Zm2.64 1.094c-.7-.7-1.65-1.093-2.64-1.093v2.666c.283 0 .554.113.754.313l1.886-1.886Zm1.093 2.64c0-.99-.393-1.94-1.
1093-2.64l-1.886 1.886c.2.2.313.47.313.754h2.666Zm-1.093 2.64c.7-.7 1.093-1.65 1.093-2.64h-2.666c0 .283-.113.554-.313.754l1.886 1.886Zm-2.64 1.093c.99 0 1.94-.393 2.64-1.093l-1.886-1.886c-.2.2-.471.313-.754.313v2.666Zm-2.64-1.093c.7.7 1.65 1.093 2.64 1.093v-2.666c-.283 0-.554-.113-.754-.313l-1.886 1.886Zm-1.093-2.64c0 .99.393 1.94 1.093 2.64l1.886-1.886c-.2-.2-.313-.471-.313-.754h-2.666Zm1.093-2.64c-.7.7-1.093 1.65-1.093 2.64h2.666c0-.283.113-.554.313-.754l-1.886-1.886Z",mask:"url(#a)"})]})},78838:function(e,n,t){var a=t(85893);t(67294),n.Z=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:33,fill:"none",...e,children:(0,a.jsx)("path",{fill:"#4D5C7E",fillRule:"evenodd",d:"M16.365 29.466c7.381 0 13.365-5.984 13.365-13.365S23.746 2.736 16.365 2.736 3 8.72 3 16.101s5.984 13.365 13.365 13.365ZM12.632 12.68h-3.43v10.256h3.43V12.68ZM9 9.507c0-1.005.767-1.77 1.94-1.77s1.896.765 1.918 1.77c0 .984-.745 1.773-1.94 1.773h-.022C9.744 11.28 9 10.49 9 9.507Zm8.96 4.625c.455-.698 1.27-1.693 3.091-1.693 2.258 0 3.949 1.466 3.949 4.616v5.881h-3.43v-5.487c0-1.378-.495-2.32-1.738-2.32-.946 0-1.51.635-1.759 1.247-.09.22-.113.526-.113.832v5.728h-3.43s.046-9.294 0-10.256h3.43v1.452Z",clipRule:"evenodd"})})},40544:function(e,n,t){var a=t(85893);t(67294),n.Z=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:33,fill:"none",...e,children:(0,a.jsx)("path",{fill:"#4D5C7E",fillRule:"evenodd",d:"M16.365 29.73c7.381 0 13.365-5.984 13.365-13.365S23.746 3 16.365 3 3 8.984 3 16.365 8.984 29.73 16.365 29.73ZM23.253 9l-5.1 5.928L23.698 23h-4.08l-3.734-5.436L11.209 23H10l5.348-6.216L10 9h4.08l3.536 5.147L22.044 9h1.209Zm-7.297 7.077.541.775 3.691 5.28h1.857l-4.523-6.47-.542-.775L13.5 9.91h-1.856l4.312 6.167Z",clipRule:"evenodd"})})},82468:function(e,n,t){var a=t(85893);t(67294),n.Z=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:33,fill:"none",...e,children:(0,a.jsx)("path",{fill:"#4D5C7E",fillRule:"evenodd",d:"M16.365 29.466c7.381 0 13.365-5.984 13.365-13.365S23.746 2.736 16.365 2.736 3 8.72 3 16.101s5.984 13.365 13.365 13.365Zm2.527-13.73L15 17.88v-4.286l3.892 2.143Zm4.988-2.093c-.045-.571-.113-1.021-.21-1.357-.188-.643-.623-1.057-1.298-1.236-.772-.2-2.73-.314-5.872-.314l-1.193.043c-.825 0-1.717.021-2.692.071-.99.043-1.635.107-1.988.2-.675.179-1.11.593-1.297 1.236-.21.736-.33 1.886-.33 3.45l.045.6c0 .429.023.922.075 1.493.045.571.113 1.021.21 1.357.188.643.623 1.057 1.297 1.236.773.2 2.73.314 5.873.314l1.192-.043c.825 0 1.718-.021 2.693-.071.99-.043 1.635-.107 1.987-.2.675-.179 1.11-.593 1.298-1.236.21-.736.33-1.886.33-3.45l-.045-.6c0-.428-.022-.921-.075-1.493Z",clipRule:"evenodd"})})},39373:function(e,n,t){t.d(n,{G:function(){return l},_:function(){return a}});let a={default:"Cupom inv\xe1lido",alreadyUsed:"O cupom adicionado j\xe1 foi utilizado e n\xe3o \xe9 poss\xedvel utilizar novamente"},i=e=>"object"==typeof e&&null!==e,o=e=>{if(!i(e))return;let{response:n}=e;if(!i(n)||!i(n.data))return;let{details:t}=n.data;if(i(t))return"string"==typeof t.mensagem?t.mensagem:void 0},r=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes("JA FOI UTILIZADO"),l=e=>{let n=o(e);return n&&r(n)?a.alreadyUsed:a.default}},63342:function(e,n,t){t.d(n,{A:function(){return ni}});var a,i,o=t(85893),r=t(95416),l=t(14866),s=t(11163),d=t(67294),c=t(11873),u=t(85441),p=t(72627),m=t(25675),v=t.n(m),h=e=>{let{className:n,height:t=24,primaryFill:a="#F2F0E8",secondaryFill:i="black",secondaryOpacity:r=.1,width:l=28}=e;return(0,o.jsxs)("svg",{width:l,height:t,viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[(0,o.jsx)("path",{d:"M11.8125 23.7819L11.8125 18.9694C9.8875 18.5028 8.4 17.6569 7.35 16.4319C6.3 15.1486 5.65833 13.6028 5.425 11.7944L10.0625 11.7944L10.0625 0.419435L0 0.419436L6.50207e-07 7.85694C1.02248e-06 12.1153 0.991668 15.6444 2.975 18.4444C4.95834 21.1861 7.90417 22.9653 11.8125 23.7819ZM28 23.7819L28 18.9694C26.075 18.5028 24.5875 17.6569 23.5375 16.4319C22.4875 15.1486 21.8458 13.6028 21.6125 11.7944L26.25 11.7944L26.25 0.419434L16.1875 0.419435L16.1875 7.85694C16.1875 12.1153 17.1792 15.6444 19.1625 18.4444C21.1458 21.1861 24.0917 22.9653 28 23.7819Z",fill:a}),(0,o.jsx)("path",{d:"M11.8125 23.7819L11.8125 18.9694C9.8875 18.5028 8.4 17.6569 7.35 16.4319C6.3 15.1486 5.65833 13.6028 5.425 11.7944L10.0625 11.7944L10.0625 0.419435L0 0.419436L6.50207e-07 7.85694C1.02248e-06 12.1153 0.991668 15.6444 2.975 18.4444C4.95834 21.1861 7.90417 22.9653 11.8125 23.7819ZM28 23.7819L28 18.9694C26.075 18.5028 24.5875 17.6569 23.5375 16.4319C22.4875 15.1486 21.8458 13.6028 21.6125 11.7944L26.25 11.7944L26.25 0.419434L16.1875 0.419435L16.1875 7.85694C16.1875 12.1153 17.1792 15.6444 19.1625 18.4444C21.1458 21.1861 24.0917 22.9653 28 23.7819Z",fill:i,fillOpacity:r})]})},g=t(68924),x=t.n(g);let f={title:e=>!!e&&""!==e.trim(),tag:e=>{var n,t;return!!(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.url)},side_image:e=>{var n,t;return!!(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.url)},testimonial:e=>!!e&&""!==e.trim(),testimonial_author:e=>!!e&&""!==e.trim(),testimonial_case_name:e=>!!e&&""!==e.trim()},_=(e,n)=>{var t,a,i,o;let r=(null==n?void 0:null===(a=n.template)||void 0===a?void 0:null===(t=a.data[0])||void 0===t?void 0:t.attributes[e])||null,l=f[e],s={whiteList:{p:[],b:[],a:["href","target"],strong:[],em:[],img:[],ul:[],ol:[],li:[],h1:[],h2:[],h3:[]}};if(l(r))return"string"==typeof r?x()(r,s):r;let d=(null==n?void 0:null===(o=n.templateDefault)||void 0===o?void 0:null===(i=o.data[0])||void 0===i?void 0:i.attributes[e])||null;return"string"==typeof d?x()(d,s):d},b=e=>e&&e.trim().toLowerCase().replace(/[^a-z0-9-_]/g,"")||"padrao";var y=t(48861),w=t(19521),j=t(65278),C=t(85703);let A=w.ZP.div.withConfig({displayName:"fixed-sidebar.styles__SidebarContainer",componentId:"sc-80ed6486-0"})(["background-color:",";bottom:0;height:100%;position:fixed;right:0;top:0;width:50%;","{display:none;}","{display:none;}"],C.r.colors.beige_surface,j.Hb.medium,j.Hb.mobile),N="\n color: ".concat(C.r.colors.dark,";\n font-family: Plus Jakarta Sans;\n font-size: 21px;\n font-weight: 500;\n letter-spacing: 0%;\n line-height: 29px;\n margin: 33px 0 ;\n"),S=w.ZP.div.withConfig({displayName:"fixed-sidebar.styles__TestimonialContainer",componentId:"sc-80ed6486-1"})(["display:flex;flex-direction:column;height:100%;justify-content:center;max-width:700px;padding:0 120px;width:100%;","{padding:0 80px;}","{padding:0 80px;}&:before{content:url(https://d3hw41hpah8tvx.cloudfront.net/images/pattern_use_cases_left_5e892ac9bc.svg);left:0;position:absolute;top:15%;}&:after{bottom:15%;content:url(https://d3hw41hpah8tvx.cloudfront.net/images/pattern_use_cases_right_a0b550fdc9.svg);position:absolute;right:0;}.testimonial-text{","}"],j.Hb.large,j.Hb.medium,N),Z=w.ZP.p.withConfig({displayName:"fixed-sidebar.styles__TestimonialText",componentId:"sc-80ed6486-2"})(["",""],N),I=(0,w.ZP)(y.Z).withConfig({displayName:"fixed-sidebar.styles__TestimonialAuthor",componentId:"sc-80ed6486-3"})(["font-size:14px;font-weight:500;margin-bottom:8px;"]),k=w.ZP.div.withConfig({displayName:"fixed-sidebar.styles__SideImageContainer",componentId:"sc-80ed6486-4"})(["display:flex;flex-direction:column;height:100%;justify-content:center;padding:0 0 0 80px;width:100%;.side-image{height:auto;width:100%;}"]),P=e=>{var n,t,a,i,r,l,s,d,c,u,p,m,g,x;let{templates:f={}}=e,b=((e,n)=>{var t,a,i,o,r,l;let s=!!(null==e?void 0:null===(i=e.side_image)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.url),d=!!(null==e?void 0:e.testimonial);if(s)return!1;if(d)return!0;let c=!!(null==n?void 0:null===(l=n.side_image)||void 0===l?void 0:null===(r=l.data)||void 0===r?void 0:null===(o=r.attributes)||void 0===o?void 0:o.url);return null==n||n.testimonial,!c})(null==f?void 0:null===(t=f.template)||void 0===t?void 0:null===(n=t.data[0])||void 0===n?void 0:n.attributes,null==f?void 0:null===(i=f.templateDefault)||void 0===i?void 0:null===(a=i.data[0])||void 0===a?void 0:a.attributes),y=b?null:_("side_image",f),w=b?_("testimonial",f):null;return(0,o.jsxs)(A,{children:[b&&(0,o.jsxs)(S,{children:[(0,o.jsx)(h,{}),w?(0,o.jsx)("div",{className:"testimonial-text",dangerouslySetInnerHTML:{__html:w}}):(0,o.jsx)(Z,{children:"âA nossa principal dor da empresa era ter processos mais eficientes. Com a implanta\xe7\xe3o da Olist a gente conseguiu ter essa efici\xeancia, com uma maior organiza\xe7\xe3o do n
1osso fluxo e com tudo integradoâ."}),(0,o.jsx)(I,{type:"default",children:w?_("testimonial_author",f):"Felipe Bernardini"}),(0,o.jsx)(I,{type:"default",children:w?_("testimonial_case_name",f):"Propriet\xe1rio da Birden Clothing"})]}),!b&&(0,o.jsx)(k,{children:(0,o.jsx)(v(),{className:"side-image",src:null==y?void 0:null===(l=y.data)||void 0===l?void 0:null===(r=l.attributes)||void 0===r?void 0:r.url,alt:(null==y?void 0:null===(d=y.data)||void 0===d?void 0:null===(s=d.attributes)||void 0===s?void 0:s.alternativeText)||"Image Olist",width:null==y?void 0:null===(u=y.data)||void 0===u?void 0:null===(c=u.attributes)||void 0===c?void 0:c.width,height:null==y?void 0:null===(m=y.data)||void 0===m?void 0:null===(p=m.attributes)||void 0===p?void 0:p.height,style:{maxWidth:null==y?void 0:null===(x=y.data)||void 0===x?void 0:null===(g=x.attributes)||void 0===g?void 0:g.width}})})]})};var E=t(2862),L=t(47423),D=t(31768),T=t(69206),R=t(24545),V=t(40819),O=t(70016);let M={MENSAL:"valorMensal",ANUAL:"valorAnual"};M.MENSAL,M.ANUAL;let q={[M.MENSAL]:"valorMensal",[M.ANUAL]:"valorAnual"},H={EMAIL:1,WHATSAPP:2},F={plano:"plan",nomeAdministrador:"name",email:"email",celular:"phone",documento:"cnpj",senha:"password",codigoPromocional:"coupon",default:"default"},z=w.ZP.form.withConfig({displayName:"signup.styles__AccountForm",componentId:"sc-1d4f924a-0"})(["display:flex;justify-content:center;padding-top:",";width:100%;","{flex-direction:column-reverse;padding-top:0;}","{flex-direction:column-reverse;padding-top:0;.grecaptcha-badge{height:0;visibility:hidden;width:0;}}"],e=>{let{paddingTop:n}=e;return n},j.Hb.medium,j.Hb.mobile);w.ZP.div.withConfig({displayName:"signup.styles__AccountFormContainer",componentId:"sc-1d4f924a-1"})([""]);let U=w.ZP.div.withConfig({displayName:"signup.styles__AccountFormContent",componentId:"sc-1d4f924a-2"})(["max-width:",";padding-right:",";.form-policy{a{color:",";}}","{max-width:100%;padding-right:0;}","{max-width:100%;padding-right:0;}"],e=>{let{mx:n}=e;return n},e=>{let{pr:n}=e;return n},C.r.colors.gray_blue,j.Hb.medium,j.Hb.mobile),B=w.ZP.div.withConfig({displayName:"signup.styles__FormPolicy",componentId:"sc-1d4f924a-3"})(["color:",";margin:16px 0 32px 0;&.center-form-policy{text-align:center;}a{color:",";text-decoration:underline;}"],C.r.colors.gray_blue,C.r.colors.gray_blue),G=w.ZP.div.withConfig({displayName:"signup.styles__SidebarContainer",componentId:"sc-1d4f924a-4"})(["border-left:1px solid ",";max-width:440px;padding-left:70px;position:relative;width:100%;.pricetag{font-weight:300;color:",";font-size:1rem;box-sizing:border-box;background-color:",";margin-bottom:10px;position:relative;display:inline-block;padding:0 12px;border-radius:4px;line-height:25px;span{color:",";font-size:16px;font-weight:500;line-height:25px;box-sizing:border-box;}&::after{border-top:0;border-bottom:8px solid ",";border-left:8px solid transparent;border-right:8px solid transparent;content:'';position:absolute;right:50%;top:-7px;bottom:unset;}}.month{background-color:",";span{color:",";}&::after{border-bottom:8px solid ",";}}.container-frequency{margin:0 !important;}.resource-description{font-size:14px;font-weight:600;line-height:22px;}.form-description{display:none;}.frequency-card-planos-price{margin-bottom:24px;}.values-title{color:",";font-weight:600;margin:0 0 8px 0;font-size:16px;line-height:24px;letter-spacing:0px;}.price-plans{font-size:16px;font-weight:400;letter-spacing:0px;line-height:140%;.font-small{font-size:12px;}.font-strong{font-size:16px;}.font-large-price-plans{display:inline-block;font-size:32px;font-weight:800;line-height:32px;}.price-plans-explain{font-size:14px;color:",";margin-top:8px;}}","{border-left:none;max-width:100%;padding-left:0;.form-description{display:block;}}","{border-left:none;max-width:100%;padding-left:0;.frequency-card-planos-price{margin-bottom:24px;}.form-description{display:block;}}"],C.r.colors.gray_medium,C.r.colors.black,C.r.colors.pink_light,C.r.colors.black,C.r.colors.pink_light,C.r.colors.blue_light,C.r.colors.primary_strong,C.r.colors.blue_light,C.r.colors.ink,C.r.colors.gray_blue,j.Hb.medium,j.Hb.mobile),W=w.ZP.label.withConfig({displayName:"signup.styles__CustomLabel",componentId:"sc-1d4f924a-5"})(["@media (min-width:768px){font-size:16px;line-height:24px;letter-spacing:0px;}color:",";display:flex;font-size:15px;font-weight:600;justify-content:space-between;letter-spacing:0px;line-height:20px;margin:0 0 8px 0;button{background-color:transparent;background-image:none;border:1px solid transparent;box-sizing:border-box;color:",";cursor:pointer;display:inline-block;font:inherit;font-size:14px;font-weight:500;line-height:1.428571429;overflow:visible;text-align:center;text-decoration:none;text-decoration-line:underline;text-transform:lowercase;transition:border-radius 0.2s ease-out;white-space:nowrap;}"],e=>{let{theme:n}=e;return n.color.neutral.stronger},C.r.colors.gray_strong),J=w.ZP.div.withConfig({displayName:"signup.styles__CustomSelect",componentId:"sc-1d4f924a-6"})(["margin:0 1px;position:relative;svg{pointer-events:none;position:absolute;right:16px;top:13px;}select{-webkit-appearance:none;align-items:center;background-color:transparent;border:none;border-radius:8px;box-shadow:none;box-sizing:border-box;color:",";display:flex;font-size:16px;height:48px;line-height:24px;margin-top:8px;outline:1px solid ",";padding:0 16px;width:100%;&:focus{outline:2px solid ",";}}"],C.r.colors.ink,C.r.colors.border_light,C.r.colors.primary),$=w.ZP.p.withConfig({displayName:"signup.styles__ChannelsTitle",componentId:"sc-1d4f924a-7"})(["font-size:16px;font-weight:600;margin-top:32px;"]),K=w.ZP.div.withConfig({displayName:"signup.styles__ResourceContainer",componentId:"sc-1d4f924a-8"})(["h4{display:flex;font-size:14px;font-weight:600;gap:8px;margin-bottom:10px;}"]),Y=w.ZP.hr.withConfig({displayName:"signup.styles__Divider",componentId:"sc-1d4f924a-9"})(["border:0;border-top:1px solid ",";margin-bottom:24px;margin-top:24px;"],C.r.colors.gray_medium);w.ZP.span.withConfig({displayName:"signup.styles__CouponSuccessMessage",componentId:"sc-1d4f924a-10"})(["color:",";"],C.r.colors.success_strong);
1let X=w.ZP.form.withConfig({displayName:"signup.styles__UseCasesAccountForm",componentId:"sc-1d4f924a-11"})(["display:flex;justify-content:flex-end;padding:0;padding-top:",";width:50%;","{padding:40px 0 0 0;}","{flex-direction:column-reverse;padding:0 0 0 0;}","{flex-direction:column-reverse;padding:0 0 0 0;.grecaptcha-badge{height:0;visibility:hidden;width:0;}}"],e=>{let{paddingTop:n}=e;return n},j.Hb.large,j.Hb.medium,j.Hb.mobile),Q=w.ZP.div.withConfig({displayName:"signup.styles__UseCasesAccountFormContainer",componentId:"sc-1d4f924a-12"})(["display:flex;justify-content:flex-end;width:100%;","{justify-content:center;max-width:60vw;padding:0 48px 60px 48px;width:100%;}","{justify-content:center;padding:0 20px 60px 0;width:80vw;}","{justify-content:center;padding:0 0px 60px 0px;width:80vw;}.form-policy{a{color:",";}}","{justify-content:center;padding-right:0;width:90vw;.form-description{margin:60px 0;}}","{justify-content:center;padding-right:0;width:90vw;.form-description{margin:60px 0;}}"],j.Hb.large,j.Hb.small,j.Hb.xsmall,C.r.colors.gray_blue,j.Hb.medium,j.Hb.mobile);function ee(e){return e.toLocaleString("pt-br",{minimumFractionDigits:2,maximumFractionDigits:2})}var en=t(28742);let et=(0,w.ZP)(L.k).withConfig({displayName:"progress-bar.styles__ProgressBarContainer",componentId:"sc-57dd9de4-0"})(["gap:5px;width:100%;"]),ea=w.ZP.div.withConfig({displayName:"progress-bar.styles__ProgressBarStep",componentId:"sc-57dd9de4-1"})(["background-color:",";border-radius:15px;height:14px;width:",";"],e=>{let{currentStep:n,step:t}=e;return t<=n?C.r.colors.primary:C.r.colors.beige_light},e=>{let{steps:n}=e;return"".concat(100/n,"%")});function ei(e){let{currentStep:n,numberOfSteps:t}=e,a=Array.from({length:t},(e,n)=>n+1);return(0,o.jsx)(et,{marginTop:60,marginBottom:42,children:a.map(e=>(0,o.jsx)(ea,{step:e,steps:a.length,currentStep:n},e))})}var eo=t(91151);let er=w.ZP.div.withConfig({displayName:"form-description.styles__FormDescriptionContainer",componentId:"sc-35ea008a-0"})(["h1{font-size:20px;font-weight:700;line-height:30px;margin-bottom:24px;text-align:left;}ul{display:flex;flex-direction:column;gap:4px;list-style:none;margin-bottom:32px;li{align-items:center;color:",";display:flex;font-size:14px;gap:4px;line-height:24px;}}"],C.r.colors.ink),el=w.ZP.div.withConfig({displayName:"form-description.styles__UseCasesFormDescriptionContainer",componentId:"sc-35ea008a-1"})([".title-wrapper{margin:10px 0 80px 0;}h1{font-size:24px;font-weight:700;line-height:32px;text-align:left;}p,h2,h3,h4{margin-top:8px;}"]),es=(0,w.ZP)(eo.Z).withConfig({displayName:"form-description.styles__CustomBadge",componentId:"sc-35ea008a-2"})(["background-color:",";border-radius:15px;color:",";font-size:14px;font-weight:600;height:24px;line-height:unset;text-align:center;text-transform:uppercase;"],C.r.colors.green,C.r.colors.white),ed=e=>{var n,t,a,i,r,l,s,d,c,u;let{templates:p,variant:m="default"}=e,h="use_cases"===m,g=h?_("tag",p):null,x=h?_("title",p):null;return h?(0,o.jsxs)(el,{className:"form-description",children:[(0,o.jsx)(ei,{currentStep:1,numberOfSteps:3}),(null==g?void 0:null===(t=g.data)||void 0===t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.url)?(0,o.jsx)(v(),{src:null==g?void 0:null===(i=g.data)||void 0===i?void 0:null===(a=i.attributes)||void 0===a?void 0:a.url,alt:(null==g?void 0:null===(l=g.data)||void 0===l?void 0:null===(r=l.attributes)||void 0===r?void 0:r.alternativeText)||"Teste gr\xe1tis por 30 dias",width:null==g?void 0:null===(d=g.data)||void 0===d?void 0:null===(s=d.attributes)||void 0===s?void 0:s.width,height:null==g?void 0:null===(u=g.data)||void 0===u?void 0:null===(c=u.attributes)||void 0===c?void 0:c.height}):(0,o.jsx)(es,{children:"Teste gr\xe1tis por 30 dias"}),x?(0,o.jsx)("div",{className:"title-wrapper",dangerouslySetInnerHTML:{__html:x}}):(0,o.jsx)("div",{className:"title-wrapper",children:(0,o.jsx)("h1",{children:"Experimente Olist: o ecossistema de solu\xe7\xf5es para empreendedores mais completo do Brasil."})})]}):(0,o.jsxs)(er,{className:"form-description",children:[(0,o.jsx)("h1",{children:"Crie sua conta para testar o Olist por 30 dias gr\xe1tis"}),(0,o.jsxs)("ul",{children:[(0,o.jsxs)("li",{children:[(0,o.jsx)(en.Z,{color:C.r.colors.ink}),(0,o.jsx)("div",{children:"Sem cobran\xe7a durante o per\xedodo de teste"})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(en.Z,{color:C.r.colors.ink}),(0,o.jsx)("div",{children:"Acesse todas as funcionalidades do plano escolhido"})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(en.Z,{color:C.r.colors.ink}),(0,o.jsx)("div",{children:"Cancele a assinatura mensal a qualquer momento"})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(en.Z,{color:C.r.colors.ink}),(0,o.jsx)("div",{children:"Configure sua conta em poucos minutos"})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(en.Z,{color:C.r.colors.ink}),(0,o.jsx)("div",{children:"Abra sua Conta Digital gr\xe1tis e tenha o financeiro integrado"})]})]})]})},ec=w.ZP.div.withConfig({displayName:"sidebar.styles__SidebarWrapper",componentId:"sc-64b43ccb-0"})(["position:sticky;right:0;top:160px;width:100%;"]);var eu=e=>{let{activePlans:n,couponData:t,formValues:a,frequency:i,handleGetCoupon:l,handleSetCoupon:s,hasCoupon:c,isLoading:u,isLoadingPlans:p,periodicity:m,selectedPlan:h,setCouponData:g,setFormValues:x,setPeriodicity:f,setPlansComparisonVisible:_}=e,b=(0,d.useMemo)(()=>{var e,n,a;
1if(!h)return null;if(m===M.MENSAL){let n=t?ee(parseFloat(null==t?void 0:t.valorMensalComDesconto.toString())):ee(parseFloat(null==h?void 0:null===(e=h.values)||void 0===e?void 0:e.valorMensal));return(0,o.jsx)(E.x,{className:"price-plans",children:(0,o.jsxs)(E.x,{mb:10,children:[(0,o.jsx)("span",{className:"font-strong",children:"R$ "}),(0,o.jsx)("span",{className:"font-large-price-plans",children:n}),"/m\xeas"]})})}if(m===M.ANUAL){let e=t?ee(parseFloat(null==t?void 0:t.valorAnualComDesconto.toString())):ee(parseFloat(null==h?void 0:null===(n=h.values)||void 0===n?void 0:n.valorAnual)),i=t?ee(parseFloat(null==t?void 0:t.valorAnualComDesconto.toString())/12):ee(parseFloat(null==h?void 0:null===(a=h.values)||void 0===a?void 0:a.valorAnual)/12),r=t?"economize R$ ".concat(ee(parseFloat(null==h?void 0:h.tag_price_yearly)+(t.valorAnual-t.valorAnualComDesconto))):"economize R$ ".concat(ee(parseFloat(null==h?void 0:h.tag_price_yearly)));return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(E.x,{className:"price-plans",position:"relative",children:[(0,o.jsx)("span",{className:"font-strong",children:"12x "}),(0,o.jsxs)("span",{className:"font-large-price-plans",children:["R$ ",i]}),"/m\xeas",(0,o.jsxs)(E.x,{className:"price-plans-explain",mb:10,children:["ou 1x ",(0,o.jsx)("strong",{children:e})," no plano anual"]}),(0,o.jsx)("div",{className:"pricetag",children:(0,o.jsx)("span",{children:r})})]})})}},[m,h,t]);return(0,o.jsxs)(G,{children:[(0,o.jsx)(ed,{}),(0,o.jsxs)(ec,{children:[(0,o.jsxs)(W,{children:["Escolha um plano para iniciar o teste",(0,o.jsx)("button",{type:"button",onClick:()=>"function"==typeof _&&_(!0),children:"Conhecer planos"})]}),(0,o.jsxs)(J,{children:[(0,o.jsx)("select",{disabled:p,required:!0,name:"plano",id:"tiny-plan",onChange:e=>{x(n=>({...n,plan:{value:e.target.value,error:""}})),l({couponValue:a.coupon.value,planValue:e.target.value,hasCoupon:c})},value:a.plan.value,children:n.map(e=>{if("Potencializar"!=e.plan_name){var n,t;return(0,o.jsx)("option",{value:null==e?void 0:null===(n=e.values)||void 0===n?void 0:n.nome,children:null===(t=e.values)||void 0===t?void 0:t.descricao},"side-bar-plan-".concat(null==e?void 0:e.id))}})}),p?(0,o.jsx)(r.Z,{variation:"neutral"}):(0,o.jsx)(R.Z,{width:24,height:24,color:"#312f4f"})]}),(0,o.jsx)(L.k,{mt:15,gap:8,flexDirection:"column",children:null==h?void 0:h.list_resources_new.map((e,n)=>(0,o.jsxs)(L.k,{gap:8,className:"resource-plan",children:[(0,o.jsx)(v(),{src:e.icon.data.attributes.url,width:16,height:16,alt:"Icon",className:"resource-icon",loading:"lazy"}),(0,o.jsx)("div",{className:"resource-description",dangerouslySetInnerHTML:{__html:e.text}})]},"plan-resource-".concat(n)))}),(0,o.jsx)(Y,{}),(0,o.jsxs)(K,{children:[(0,o.jsxs)("h4",{children:[(0,o.jsx)(v(),{src:"https://d3hw41hpah8tvx.cloudfront.net/images/integration_49f5b71f03.svg",width:20,height:20,alt:"Icon",loading:"lazy"}),"Integra\xe7\xf5es sem custo"]}),(0,o.jsx)(v(),{src:"https://d3hw41hpah8tvx.cloudfront.net/images/logo_integracoes_planos_2_711579657e.png",width:200,height:31,alt:"Icon",loading:"lazy"})]}),(0,o.jsx)(Y,{}),(0,o.jsx)(E.x,{children:(0,o.jsx)(D.Z,{label:"Tenho um cupom",checked:c,onChange:s})}),c&&(0,o.jsx)(E.x,{mt:8,children:(0,o.jsx)(T.I,{label:"Cupom",name:"tem-cupom",placeholder:"Insira seu cupom",prefix:V.Z,isLoading:u,onChange:e=>{x(n=>({...n,coupon:{value:e.target.value,error:""}})),t&&g(null)},onBlur:()=>{l({couponValue:a.coupon.value,planValue:a.plan.value,hasCoupon:c})},value:a.coupon.value,required:!0,feedback:a.coupon.error?"error":t?"valid":void 0,helperText:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(E.x,{mt:8,children:t.mensagemMensal?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:"Planos mensais"}),":"," ",t.mensagemMensal,(0,o.jsx)("br",{})]}):""}),(0,o.jsx)(E.x,{children:t.mensagemAnual?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:"Planos anuais"}),":"," ",t.mensagemAnual]}):""}),(0,o.jsx)(E.x,{children:t.mensagemMensal||t.mensagemAnual?"":"".concat(t.diasDemo," dias gr\xe1tis")})]}):a.coupon.error})}),(0,o.jsx)(Y,{}),(0,o.jsx)("div",{className:"values-title",children:"Conhe\xe7a as op\xe7\xf5es de pagamento:"}),(0,o.jsx)(O.Z,{frequency:i,handleFrequencySelect:(e,n)=>{f(M[n])}}),(0,o.jsx)(o.Fragment,{children:b})]})]})},ep=t(78206),em=t(31873),ev=t(34853);let eh=e=>e.includes("/mastercard")?"mastercard":e.includes("/hub-de-integracao/shopee")?"ai-onboarding-shopee":"erp";function eg(){let[e,n]=(0,d.useState)([]),[t,a]=(0,d.useState)(!1),i=(0,d.useRef)(!1);return(0,d.useEffect)(()=>
1{if(i.current)return;let e=eh(window.location.pathname);a("mastercard"===e),n(n=>[...n,{attribute_slug:"lead_source",value:e,product:"tiny"}]),i.current=!0},[]),{isMastercardPath:t,leadAttributes:e}}var ex=t(16965),ef=t(18378);let e_=e=>{let{label:n,valid:t}=e;return(0,o.jsxs)(L.k,{mt:"8px",alignItems:"center",children:[t?(0,o.jsx)(en.Z,{"data-testid":"success-icon",style:{color:C.r.colors.blue_feedback,marginRight:"2px"}}):(0,o.jsx)(ef.Z,{"data-testid":"close-icon",style:{color:C.r.colors.gray_strong,marginRight:"2px"}}),(0,o.jsx)("p",{style:{color:t?C.r.colors.blue_feedback:C.r.colors.gray_strong,fontSize:14},children:n})]})},eb=e=>{let{email:n,onValid:t,password:a}=e,[i,r]=(0,d.useState)({min_characters:{label:"m\xednimo de 12 caracteres",valid:!1},max_characters:{label:"m\xe1ximo de 32 caracteres",valid:!1},min_lowercase:{label:"um caractere em letra min\xfascula",valid:!1},min_uppercase:{label:"um caractere em letra mai\xfascula",valid:!1},min_number:{label:"um numero",valid:!1},special_character:{label:"um caractere especial (exceto: -, â, â e :)",valid:!1},has_login:{label:"evite usar o E-mail da empresa na sua senha",valid:!1}}),l=()=>{if(!a)return r({special_character:{...i.special_character,valid:!1},min_characters:{...i.min_characters,valid:!1},max_characters:{...i.max_characters,valid:!1},min_number:{...i.min_number,valid:!1},min_uppercase:{...i.min_uppercase,valid:!1},min_lowercase:{...i.min_lowercase,valid:!1},has_login:{...i.has_login,valid:!1}});let e=a.length>=12,o=a.length<=32,l=!!a.match(/\d/),s=!!a.match(/[A-Z]/),d=!!a.match(/[a-z]/),c=/^(?=.*[^a-zA-Z0-9\s])(?:(?![="'\,\+\:\s]).)*$/.test(a),u=new RegExp(n).test(a);return t&&t(e&&l&&s&&d&&c),r({min_characters:{...i.min_characters,valid:e},max_characters:{...i.max_characters,valid:o},min_uppercase:{...i.min_uppercase,valid:s},min_lowercase:{...i.min_lowercase,valid:d},special_character:{...i.special_character,valid:c},min_number:{...i.min_number,valid:l},has_login:{...i.has_login,valid:!u}})};return(0,d.useEffect)(()=>
1{l()},[a]),Object.keys(i).map(e=>(0,o.jsx)(e_,{valid:i[e].valid,label:i[e].label},e))};var ey=t(36236);let ew=e=>Object.values(ey.L).includes(e),ej=()=>Object.values(ey.L),eC=e=>e&&""!==e.trim()?ew(e)?e:(console.warn('â ï¸ PLANO INV\xc1LIDO: "'.concat(e,'" n\xe3o \xe9 um plano v\xe1lido.\n')+'â
Usando fallback: "'.concat(p.w.IMPULSIONE_V2,'"\n')+"\uD83D\uDCCB Planos v\xe1lidos: ".concat(ej().join(", "),"\n")+"\uD83D\uDCA1 Use um dos planos da constante PLANOS em signup.types.ts"),p.w.IMPULSIONE_V2):(""===e&&console.warn('â ï¸ PLANO INV\xc1LIDO: "'.concat(e,'" n\xe3o \xe9 um plano v\xe1lido.\n')+'â
Usando fallback: "'.concat(p.w.IMPULSIONE_V2,'"\n')+"\uD83D\uDCCB Planos v\xe1lidos: ".concat(ej().join(", "),"\n")+"\uD83D\uDCA1 Use um dos planos da constante PLANOS em signup.types.ts"),p.w.IMPULSIONE_V2),eA=e=>{var n,t,a;let{activePlans:i,couponData:l,emailChannel:s,fixedPlanName:c,formBehavior:u,formValues:m,handleGetCoupon:v,handleReCAPTCHAChange:h,handleSetCoupon:g,hasCoupon:x,hasSideBar:f,hidePlanSelect:_=!1,invisibleRecaptchaToken:b,isCouponReadOnly:y=!1,isLoading:w,isLoadingPlans:j,isLoadingValidation:A,isValidPassword:N,recaptchaRef:S,setCouponData:Z,setEmailChannel:I,setFormValues:k,setIsPasswordValid:P,setWhatsappChannel:O,validateSignupOnBlur:M,whatsappChannel:q}=e,{isMastercardPath:H}=eg(),F=void 0!==c?eC(c):null;return(0,d.useEffect)(()=>{void 0!==c&&F&&m.plan.value!==F&&k(e=>({...e,plan:{value:F,error:""}}))},[c,F,m.plan.value,k]),(f||void 0!==c&&F)&&(_=!0),(0,o.jsxs)(U,{pr:f?"70px":"0",mx:f?"540px":"100%",children:[f&&(0,o.jsx)(ed,{}),(0,o.jsx)(ev.Z,{ref:S,size:"invisible",sitekey:b,onChange:h}),!f&&(0,o.jsxs)(o.Fragment,{children:[!_&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(W,{children:"Escolha um plano"}),(0,o.jsxs)(J,{children:[(0,o.jsx)("select",{disabled:j,required:!0,name:"plano",id:"tiny-plan",onChange:e=>{var n;k(n=>({...n,plan:{value:e.target.value,error:""}})),v({couponValue:null==m?void 0:null===(n=m.coupon)||void 0===n?void 0:n.value,planValue:e.target.value,hasCoupon:x})},value:m.plan.value,children:i.map(e=>{if(e.plan_name!=p.w.PROTAGONIZE){var n,t;return(0,o.jsx)("option",{value:null==e?void 0:null===(n=e.values)||void 0===n?void 0:n.nome,children:null==e?void 0:null===(t=e.values)||void 0===t?void 0:t.descricao},"plan-".concat(null==e?void 0:e.id))}})}),j?(0,o.jsx)(r.Z,{variation:"neutral"}):(0,o.jsx)(R.Z,{width:24,height:24,color:C.r.colors.ink})]})]}),!y&&(0,o.jsx)(E.x,{mt:32,children:(0,o.jsx)(D.Z,{name:"tem-cupom",label:"Tenho um cupom",checked:x,onChange:g})}),x&&(0,o.jsxs)(E.x,{mt:8,children:[(0,o.jsx)(T.I,{label:"Cupom",name:"codigoPromocional",placeholder:"Insira seu cupom",prefix:V.Z,isLoading:w,onChange:e=>{!y&&(k(n=>({...n,coupon:{value:e.target.value,error:""}})),l&&Z(null))},onBlur:()=>{y||v({couponValue:m.coupon.value,planValue:m.plan.value,hasCoupon:x})},value:m.coupon.value,required:!0,readOnly:y,disabled:y,className:m.coupon.error?"input-error-signup":"",feedback:m.coupon.error?"error":l?"valid":void 0,helperText:m.coupon.error}),l&&H&&(0,o.jsx)(E.x,{mt:8,color:C.r.colors.success_strong,children:"Cupom aplicado!"}),l&&!H&&(0,o.jsxs)(E.x,{mt:8,children:[l.mensagemMensal?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:"Planos mensais"}),":"," ",l.mensagemMensal,(0,o.jsx)("br",{})]}):"",l.mensagemAnual?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:"Planos anuais"}),":"," ",l.mensagemAnual]}):"",l.mensagemMensal||l.mensagemAnual?"":"".concat(l.diasDemo," dias gr\xe1tis")]})]})]}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"Nome",name:"nomeAdministrador",placeholder:"como gostaria de ser chamado",required:!0,onChange:e=>k(n=>({...n,name:{value:e.target.value,error:""}})),value:m.name.value,className:m.name.error?"input-error-signup":"",feedback:m.name.error?"error":void 0,helperText:m.name.error})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"E-mail",placeholder:"[email protected]",name:"email",required:!0,type:"email",onChange:e=>k(n=>({...n,email:{...n.email,value:e.target.value}})),value:m.email.value,className:m.email.error?"input-error-signup":"",feedback:m.email.error?"error":void 0,helperText:m.email.error,onBlur:M,isLoading:A})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"N\xfamero de celular",placeholder:"N\xfamero com DDD",required:!0,name:"celular",value:(0,ex.gP)(m.phone.value),onChange:e=>{var n;let t=(0,ex.xN)(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value);k({...m,phone:{value:t,error:""}})},className:"phone-input ".concat(m.phone.error?"input-error-signup":""),feedback:m.phone.error?"error":void 0,helperText:m.phone.error})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"CNPJ",placeholder:"AA.AAA.AAA/AAAA-00",required:!0,name:"documento",value:(0,ex.A)(m.cnpj.value),onChange:e=>k({...m,cnpj:{value:e.target.value,error:""}}),className:m.cnpj.error?"input-error-signup":"",feedback:m.cnpj.error?"error":void 0,helperText:m.cnpj.error,onBlur:M,isLoading:A})}),(null==u?void 0:u.shouldRenderPassword)&&(0,o.jsxs)(E.x,{mt:16,children:[(0,o.jsx)(ep.Z,{id:"password","data-testid":"input-password",name:"senha",label:"Senha",value:m.password.value,onChange:e=>{k({...m,password:{value:e.target.value,error:""}})},placeholder:"************",required:!0}),m.password.value&&(0,o.jsx)(eb,{onValid:e=>P(e),password:m.password.value,email:null==m?void 0:null===(n=m.email)||void 0===n?void 0:n.value})]}),(0,o.jsx)(E.x,{mt:52,children:(0,o.jsx)(em.Z,{name:"submit-button",type:"submit",fixed:!0,isLoading:w||A||j,disabled:w||A||j||!(q||s)||(null==u?void 0:u.shouldRenderPassword)&&!N||H&&(!(null===(t=m.coupon.value)||void 0===t?void 0:t.trim())||!!m.coupon.error),size:"medium",children:null!==(a=null==u?void 0:u.submitLabel)&&void 0!==a?a:"Come\xe7ar teste"})}),!H&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(E.x,{mt:40,children:[(0,o.jsx)($,{children:"Conte\xfados e dicas sobre o uso do sistema"}),(0,o.jsxs)(L.k,{justifyContent:"space-between",flexWrap:"wrap",children:[(0,o.jsx)(D.Z,{label:"receber por e-mail",checked:s,onChange:()=>I(e=>!e)}
1),(0,o.jsx)(D.Z,{label:"receber por WhatsApp",checked:q,onChange:()=>O(e=>!e)})]})]}),(0,o.jsxs)(B,{className:"form-policy",children:["Ao prosseguir voc\xea concorda com os"," ",(0,o.jsx)("a",{target:"_blank",href:"https://olist.com/seguranca-e-privacidade/termos-de-uso-ecossistema/",rel:"noreferrer",children:"termos de uso"})," ","do",(0,o.jsx)("b",{children:" produto que est\xe1 aderindo "}),"e a"," ",(0,o.jsx)("a",{target:"_blank",href:"https://olist.com/seguranca-e-privacidade/politica-de-privacidade/",rel:"noreferrer",children:"pol\xedtica de prote\xe7\xe3o de dados"})," ","do ecossistema da Olist."]})]}),(0,o.jsx)(B,{className:"form-policy ".concat(H?"center-form-policy":""),children:(0,o.jsxs)("small",{children:[H&&(0,o.jsxs)(o.Fragment,{children:["Ao iniciar, voc\xea concorda com a",(0,o.jsx)("a",{target:"_blank",href:"https://olist.com/seguranca-e-privacidade/politica-de-privacidade/",rel:"noreferrer",children:"pol\xedtica de prote\xe7\xe3o de dados da Olist"}),"."]}),"Este site \xe9 protegido por reCAPTCHA e aplica a"," ",(0,o.jsx)("a",{target:"_blank",href:"https://policies.google.com/privacy",rel:"noreferrer",children:"pol\xedtica de privacidade"})," ","e"," ",(0,o.jsx)("a",{target:"_blank",href:"https://policies.google.com/terms",rel:"noreferrer",children:"termos de servi\xe7o"})," ","do Google.",H&&(0,o.jsxs)("p",{children:[(0,o.jsx)("a",{href:"https://olist.com/seguranca-e-privacidade/termos-de-uso-parceria-olist-e-mastercard/",target:"_blank",rel:"noopener noreferrer",children:"Termos de uso"})," ","parceria Olist e Mastercard."]})]})})]})};var eN=t(66394);let eS=w.ZP.div.withConfig({displayName:"use-cases-signup-form.styles__CustomCheckboxLabel",componentId:"sc-ebc668d9-0"})(["p{color:"," !important;font-size:14px;font-weight:600;line-height:20px;}"],C.r.colors.primary),eZ=w.ZP.span.withConfig({displayName:"use-cases-signup-form.styles__CustomError",componentId:"sc-ebc668d9-1"})(["color:",";font-size:14px;"],eN.themes.olist.base.color.alert.base),eI=w.ZP.span.withConfig({displayName:"use-cases-signup-form.styles__CustomSuccess",componentId:"sc-ebc668d9-2"})(["color:",";font-size:14px;"],eN.themes.olist.base.color.success.base),ek=(0,w.ZP)(em.Z).withConfig({displayName:"use-cases-signup-form.styles__CustomButton",componentId:"sc-ebc668d9-3"})(["background-color:",";border-radius:26px;height:52px;"],C.r.colors.primary),eP=w.ZP.div.withConfig({displayName:"use-cases-signup-form.styles__CustomCheckbox",componentId:"sc-ebc668d9-4"})(["label > span > span{background-color:"," !important;border-color:"," !important;}"],C.r.colors.primary,C.r.colors.primary),eE=e=>{var n,t;let{couponData:a,emailChannel:i,formBehavior:r,formValues:l,handleGetCoupon:s,handleReCAPTCHAChange:d,handleSetCoupon:c,hasCoupon:u,invisibleRecaptchaToken:p,isCouponReadOnly:m=!1,isLoading:v,isLoadingValidation:h,isValidPassword:g,recaptchaRef:x,setCouponData:f,setEmailChannel:_,setFormValues:b,setIsPasswordValid:y,setWhatsappChannel:w,templates:j={},validateSignupOnBlur:C,whatsappChannel:A}=e;return(0,o.jsxs)(U,{pr:"70px",children:[(0,o.jsx)(ed,{variant:"use_cases",templates:j}),(0,o.jsx)(ev.Z,{ref:x,size:"invisible",sitekey:p,onChange:d}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"Nome",name:"nomeAdministrador",placeholder:"como gostaria de ser chamado",required:!0,onChange:e=>b(n=>({...n,name:{value:e.target.value,error:""}})),value:l.name.value,className:l.name.error?"input-error-signup":"",feedback:l.name.error?"error":void 0,helperText:l.name.error})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"E-mail",name:"email",placeholder:"[email protected]",required:!0,type:"email",onChange:e=>b(n=>({...n,email:{...n.email,value:e.target.value}})),value:l.email.value,className:l.email.error?"input-error-signup":"",feedback:l.email.error?"error":void 0,helperText:l.email.error,isLoading:h,onBlur:C})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"N\xfamero de celular",placeholder:"N\xfamero com DDD",required:!0,name:"celular",value:(0,ex.gP)(l.phone.value),onChange:e=>{var n;let t=(0,ex.xN)(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value);b({...l,phone:{value:t,error:""}})},className:"phone-input ".concat(l.phone.error?"input-error-signup":""),feedback:l.phone.error?"error":void 0,helperText:l.phone.error})}),(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(T.I,{label:"CNPJ",placeholder:"AA.AAA.AAA/AAAA-00",required:!0,name:"documento",value:(0,ex.A)(l.cnpj.value),onChange:e=>b({...l,cnpj:{value:e.target.value,error:""}}),className:l.cnpj.error?"input-error-signup":"",feedback:l.cnpj.error?"error":void 0,helperText:l.cnpj.error,isLoading:h,onBlur:C})}),(null==r?void 0:r.shouldRenderPassword)&&(0,o.jsxs)(E.x,{mt:16,children:[(0,o.jsx)(ep.Z,{id:"password","data-testid":"input-password",name:"senha",label:"Senha",value:l.password.value,onChange:e=>{b({...l,password:{value:e.target.value,error:""}})},placeholder:"************",required:!0,helperText:"Entre 12 e 32 caracteres"}),l.password.value&&(0,o.jsx)(eb,{onValid:e=>y(e),password:l.password.value,email:null==l?void 0:null===(n=l.email)||void 0===n?void 0:n.value})]}),!m&&(0,o.jsx)(E.x,{mt:16,children:(0,o.jsx)(eS,{children:(0,o.jsx)(D.Z,{name:"tem-cupom",label:"Tenho um cupom de desconto",checked:u,onChange:c})})}),u&&(0,o.jsxs)(E.x,{children:[(0,o.jsx)(T.I,{name:"codigoPromocional",placeholder:"Insira seu cupom",isLoading:v,onCh
1ange:e=>{!m&&(b(n=>({...n,coupon:{value:e.target.value,error:""}})),a&&f(null))},onBlur:()=>{m||s({couponValue:l.coupon.value,planValue:l.plan.value,hasCoupon:u})},value:l.coupon.value,required:!0,readOnly:m,disabled:m,className:l.coupon.error?"input-error-signup":"",feedback:l.coupon.error?"error":a?"valid":void 0}),(0,o.jsx)(E.x,{children:a?(0,o.jsx)(eI,{children:"Cupom aplicado! Continue para visualizar os detalhes do desconto."}):(0,o.jsx)(eZ,{children:l.coupon.error})})]}),(0,o.jsx)(E.x,{mt:32,children:(0,o.jsx)(ek,{type:"submit",fixed:!0,isLoading:v||h,disabled:v||h||!(A||i)||(null==r?void 0:r.shouldRenderPassword)&&!g,size:"medium",children:null!==(t=null==r?void 0:r.submitLabel)&&void 0!==t?t:"Come\xe7ar teste"})}),(0,o.jsxs)(E.x,{mt:40,children:[(0,o.jsx)($,{children:"Conte\xfados e dicas sobre o uso do sistema"}),(0,o.jsxs)(L.k,{justifyContent:"space-between",flexWrap:"wrap",children:[(0,o.jsx)(eP,{children:(0,o.jsx)(D.Z,{label:"receber por e-mail",checked:i,onChange:()=>_(e=>!e)})}),(0,o.jsx)(eP,{children:(0,o.jsx)(D.Z,{label:"receber por WhatsApp",checked:A,onChange:()=>w(e=>!e)})})]})]}),(0,o.jsx)(B,{className:"form-policy",children:(0,o.jsxs)("small",{children:["Ao prosseguir voc\xea concorda com os"," ",(0,o.jsx)("a",{target:"_blank",href:"https://olist.com/seguranca-e-privacidade/termos-de-uso-ecossistema/",rel:"noreferrer",children:"termos de uso"})," ","do",(0,o.jsx)("b",{children:" produto que est\xe1 aderindo "}),"e a"," ",(0,o.jsx)("a",{target:"_blank",href:"https://olist.com/seguranca-e-privacidade/politica-de-privacidade/",rel:"noreferrer",children:"pol\xedtica de prote\xe7\xe3o de dados"})," ","do ecossistema da Olist."]})}),(0,o.jsx)(B,{className:"form-policy",children:(0,o.jsxs)("small",{children:["Este site \xe9 protegido por reCAPTCHA e aplica a"," ",(0,o.jsx)("a",{target:"_blank",href:"https://policies.google.com/privacy",children:"pol\xedtica de privacidade"})," ","e"," ",(0,o.jsx)("a",{target:"_blank",href:"https://policies.google.com/terms",children:"termos de servi\xe7o"})," ","do Google."]})})]})};var eL=t(71107),eD=t(42168),eT=t(39373),eR=t(92729);let eV=["@olist.com","@tiny.com.br","@olist.com.br"],eO=e=>eV.some(n=>e.toLowerCase().endsWith(n)),eM=async(e,n)=>{try{if("email"===e&&eO(n))return{is_valid:!0,errors:[]};let t="https://app.olist.com/bff/acquisition-growth/v1";if(!t)return console.warn("[SoftValidation] BFF_URL not configured - FAIL-OPEN"),{is_valid:!0,errors:[]};return(await eR.Z.post("".concat(t,"/soft-validation/validate"),{contact_type:e,contact_value:n},{timeout:5e3,headers:{"Content-Type":"application/json"}})).data}catch(n){return console.warn("[SoftValidation] Error validating ".concat(e," - FAIL-OPEN strategy applied:"),n.message),{is_valid:!0,errors:[]}}},eq=async e=>eM("email",e),eH=async e=>eM("phone",e.replace(/\D/g,"")),eF=async(e,n)=>{let[t,a]=await Promise.all([eq(e),eH(n)]);return{email:t,phone:a,isValid:t.is_valid&&a.is_valid}};var ez=t(44335),eU=t(34155);parseInt(eU.env.MAIN_SIDEBAR_ID||"1"),parseInt(eU.env.HEADER_WIDGET_AREA_ID||"2");let eB=async()=>{try{return(await (0,ez.R)().get("/erp/plans/")).data}catch(a){try{var e,n,t;fetch("/api/log",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:"[GET_Plans] failed to get erp plans",context:{path:(null===(n=window)||void 0===n?void 0:null===(e=n.location)||void 0===e?void 0:e.pathname)||"",error:(null==a?void 0:a.message)||"",status:(null==a?void 0:null===(t=a.response)||void 0===t?void 0:t.status)||0},level:"error"})})}catch(e){}return null}};var eG=t(82729),eW=t(17283);let eJ="\n id\n link\n title\n target\n type\n border_color\n custom_bg_color\n custom_hover_color\n custom_hover_text_color\n custom_text_color\n type_modal\n ".concat("\n script_form {\n name\n title\n form\n script\n }\n","\n ").concat("\n salesforce_form {\n form_id\n title\n de_external_key\n subscriber_key_field\n form_fields {\n label\n sf_field_name\n input_type\n required\n hidden\n hidden_value\n select_options {\n label\n value\n }\n }\n submit_label\n acceptance_fields {\n label\n sf_field_name\n }\n }\n","\n"),e$="\n id\n text\n icon {\n url\n alternativeText\n }\n is_new\n add_tooltip\n title_tooltip\n description_tooltip\n card_type (pagination: { limit: 50 }) {\n id\n content_type_card\n }\n color_text_tooltip\n",eK="\n data {\n attributes {\n name\n frequency {\n frequency_1\n frequency_2\n color_frequency_active\n active_frequency\n color_text_frequency\n color_text_frequency_active\n border_color\n bg_frequency\n text_top_new\n img_monthly {\n data {\n attributes {\n url\n alternativeText\n }\n }\n }\n img_yearly {\n data {\n attributes {\n url\n alternativeText\n }\n }\n }\n text_after_monthly\n text_after_yearly\n }\n cards_planos {\n id\n name\n plan_name\n description\n add_price\n is_plan_active\n list_resources_new {\n id\n text\n icon {\n data {\n attributes {\n url\n alternativeText\n }\n }\n }\n is_new\n add_tooltip\n title_tooltip\n description_tooltip\n }\n button_plan {\n ".concat(eJ,"\n }\n text_bottom_button\n icon_plan {\n data {\n attributes {\n url\n alternativeText\n }\n }\n }\n button_anchor {\n id\n text\n url\n }\n resources_card_plans {\n name\n resources_type\n details_card {\n id\n title\n list_card (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n card_simple (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n }\n features_card {\n id\n title\n cards (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n }\n benefit_card {\n id\n title\n cards (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n }\n fee_card {\n id\n title\n cards (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n }\n plan_features_group {\n id\n title_group {\n icon {\n url\n alternativeText\n }\n title\n sub_title\n bg_color\n is_dropdown\n text_color_sub_title\n }\n features {\n title\n cards (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n has_show_more\n min_height\n }\n }\n }\n price_card_plan {\n ").concat("\n name\n monthly_price\n yearly_price\n value_risked_monthly\n value_risked_yearly\n tag_price_monthly\n tag_price_yearly\n total_monthly\n total_yearly\n monthly_discount\n yearly_discount\n image_promotion_monthly {\n url\n alternativeText\n width\n height\n }\n image_promotion_yearly {\n url\n alternativeText\n width\n height\n }\n icon_tag_price_monthly {\n url\n alternativeText\n width\n height\n }\n icon_tag_price_yearly {\n url\n alternativeText\n width\n height\n }\n","\n }\n background_card\n text_color\n }\n solution_items (pagination: { limit: 50 }) {\n ").concat(e$,"\n }\n is_arrow_slider_plan_dark\n color_border_cards\n add_banner_plan_5\n banner_plan_5 {\n ").concat("\n name\n banner_plan_5 {\n text\n title_featured\n bg_color\n text_color\n list_featured {\n id\n title\n icon {\n url\n alternativeText\n width\n height\n }\n description\n }\n tag {\n id\n text\n icon {\n url\n alternativeText\n width\n height\n }\n }\n image {\n url\n alternativeText\n width\n height\n }\n button {\n ".concat(eJ,"\n }\n bg_image {\n url\n alternativeText\n width\n height\n }\n image_block {\n url\n alternativeText\n width\n height\n }\n image_block_mobile {\n url\n alternativeText\n width\n height\n }\n }\n"),"\n }\n }\n }\n"),eY="\n site_tiny_cards_plans_pricing {\n ".concat(eK,"\n }\n");function eX(){let e=(0,eG._)(["\n query {\n siteTinySignup {\n data {\n attributes {\n title\n features {\n id\n title\n content\n }\n ","\n }\n }\n }\n siteTinyPlan {\n data {\n attributes {\n plans {\n id\n name\n description\n benefits_title\n badge_description\n button {\n title\n link\n }\n features {\n id\n icon {\n data {\n attributes {\n url\n }\n }\n }\n description\n tooltip_description\n }\n benefits {\n id\n text\n }\n }\n resources_title\n resources(pagination: { limit: 1000 }) {\n id\n category\n icon {\n data {\n attributes {\n url\n }\n }\n }\n disclaimer\n name\n is_newer\n attributes {\n id\n name\n value\n checked\n }\n tooltip_description\n }\n }\n }\n }\n }\n"]);return eX=function(){return e},e}let eQ=()=>(0,eW.Ps)(eX(),eY);var e0=t(54599);let e1=(e,n,t)=>{let a=(0,e0.E)(!1),[i,o]=(0,d.useState)([]),[r,l]=(0,d.useState)([]),[s,c]=(0,d.useState)(null),[u,p]=(0,d.useState)(!1),m=async()=>{try{var e,n,t,i,o,r,s,d,u,p,m,v,h,g;let x=await a.query({query:eQ()});l((null==x?void 0:null===(s=x.data)||void 0===s?void 0:null===(r=s.siteTinySignup)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:null===(t=i.site_tiny_cards_plans_pricing)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:null===(e=n.attributes)||void 0===e?void 0:e.cards_planos)||[]),c((null==x?void 0:null===(g=x.data)||void 0===g?void 0:null===(h=g.siteTinySignup)||void 0===h?void 0:null===(v=h.data)||void 0===v?void 0:null===(m=v.attributes)||void 0===m?void 0:null===(p=m.site_tiny_cards_plans_pricing)||void 0===p?void 0:null===(u=p.data)||void 0===u?void 0:null===(d=u.attributes)||void 0===d?void 0:d.frequency)||null)}catch(e){l([])}},v=async()=>{let e=await eB();o((null==e?void 0:e.data)||[])};return(0,d.useEffect)(()=>{(async()=>{e||n||t?(l(e),c(n),o(t)):(p(!0),await m(),await v(),p(!1))})()},[e,n,t]),{plans:(0,d.useMemo)(()=>r.length<=0&&i.length<=0?[]:r.map(e=>{let n=i.find(n=>n.nome===e.plan_name);return{...e,values:n}}),[r,i]),isLoadingPlans:u,frequency:s}};var e3=t(29994),e6=e=>{let{formValues:n,setFormValues:t,setIsLoading:a}=e;(0,e3.x)();let i=(0,d.createRef)();return{setReCAPTCHA:e=>{t({...n,recaptcha:{value:e,error:""}})},validateReCAPTCHA:async()=>{try{let e=await i.current.executeAsync(),{data:n}=await (0,ez.k)().post("/erp/verify-invisible-captcha",{token:e});if(null==n?void 0:n.success)return!0;return a(!1),!1}catch(e){return a(!1),!1}},invisibleRecaptchaToken:"6LfNLtgpAAAAAL1t4lttfKoPJB4kXGgFn2WlXDp2",recaptchaRef:i}},e2=t(39332),e4=t(87930),e8=t(15825),e5=t(45699),e7=t(40055);(a=i||(i={})).DEFAULT="default",a.MASTERCARD="mastercard",a.CONTADORES="contadores";let e9={"/mastercard":"mastercard","/contadores":"contadores","/accountants":"contadores"},ne=e=>{let n=Object.keys(e9).find(n=>e.includes(n));return n?e9[n]:"default"},nn=(e,n)=>({[e5.Rt.LEAD_GENERATE_ORIGIN]:"erp",[e5.Rt.LEAD_GENERATE_SUBORIGIN]:ne(n),[e5.Rt.ID_EMPRESA]:e,[e5.Rt.PAGE_PATH]:n});var nt=t(37871);let na=p.w.IMPULSIONE_V2,ni=e=>{var n;let{cardsPlans:t=null,defaultCoupon:a="",eventDistinctId:i,fixedPlanName:m,frequency:v
1=null,hasSideBar:h=!1,hidePlanSelect:g=!1,isCouponReadOnly:x=!1,isLpModa:f=!1,plansValues:_=null,setPlansComparisonVisible:y,templates:w={},variant:j="default"}=e,C=(0,s.useRouter)(),A=j===u.x.USE_CASES,N=(()=>{var e,n,t,a,i,o,r;try{if(!(null==C?void 0:null===(e=C.query)||void 0===e?void 0:e.pl))return"";if(Array.isArray(null==C?void 0:null===(n=C.query)||void 0===n?void 0:n.pl))return null==C?void 0:null===(o=C.query)||void 0===o?void 0:null===(i=o.pl[0])||void 0===i?void 0:i.split(",")[0];return null==C?void 0:null===(a=C.query)||void 0===a?void 0:null===(t=a.pl)||void 0===t?void 0:t.split(",")[0]}catch(e){return null==C?void 0:null===(r=C.query)||void 0===r?void 0:r.pl}})(),[S,Z]=(0,d.useState)(M.ANUAL),[I,k]=(0,d.useState)(!1),[E,L]=(0,d.useState)(!1),[D,T]=(0,d.useState)(!1),[R,V]=(0,d.useState)(!0),O=j===u.x.USE_CASES?"success":"primary",{emailChannel:U,formValues:B,isSoftValidating:G,setEmailChannel:W,setFormValues:J,setWhatsappChannel:$,validateForm:K,whatsappChannel:Y}=function(e){let{defaultCoupon:n,fixedPlanName:t,isUseCases:a,isValidPassword:i,planFromQs:o}=e,r=p.w.IMPULSIONE_V2,l={plan:{value:t?eC(t):o||r,error:""},name:{value:"",error:""},email:{value:"",error:""},phone:{value:"",error:""},cnpj:{value:"",error:""},password:{value:"",error:""},coupon:{value:n||"",error:""},recaptcha:{value:"",error:""}},[s,c]=(0,d.useState)(l),[u,m]=(0,d.useState)(!0),[v,h]=(0,d.useState)(!0),[g,x]=(0,d.useState)(!1),f=async()=>{let e=s.phone.value.replace(/[^0-9.]/g,"").replace(/\s+/g,""),n=!a&&!s.plan.value&&"Selecione um plano",t=!ex.In.test(s.email.value)&&"Insira um e-mail v\xe1lido",o=!(0,ex.JC)(s.cnpj.value)&&"CNPJ inv\xe1lido",r=e.length<11&&"N\xfamero de celular inv\xe1lido (DDD + 9 d\xedgitos)",l=!s.name.value&&"Insira o nome completo",d=s.name.value.split(" ").length<2&&"Insira o nome completo";if(n||l||d||t||r||o||!(u||v)||!i)return c(e=>({...e,plan:{...e.plan,error:n},name:{...e.name,error:l||d},email:{...e.email,error:t},phone:{...e.phone,error:r},cnpj:{...e.cnpj,error:o}})),!1;try{x(!0);let e=await eF(s.email.value,s.phone.value);if(x(!1),!e.isValid){var p,m;let n=(null===(p=e.email.errors)||void 0===p?void 0:p.length)>0?e.email.errors[0]:"",t=(null===(m=e.phone.errors)||void 0===m?void 0:m.length)>0?e.phone.errors[0]:"";return c(e=>({...e,email:{...e.email,error:n||e.email.error},phone:{...e.phone,error:t||e.phone.error}})),!1}}catch(e){console.error("[Soft Validation] Error during validation:",e),x(!1)}return!0};return{formValues:s,setFormValues:c,whatsappChannel:u,setWhatsappChannel:m,emailChannel:v,setEmailChannel:h,validateForm:f,isValidPassword:i,isSoftValidating:g}}({defaultCoupon:a,fixedPlanName:m,isUseCases:A,planFromQs:N,isValidPassword:D}),{openToast:ee,toasts:en}=function(){let[e,n]=(0,d.useState)([]);return{toasts:e,openToast:t=>{n([...e,{...t,id:String(Date.now())}])}}}(),{frequency:et,isLoadingPlans:ea,plans:ei}=e1(t,v,_),{couponData:eo,getCoupon:er,hasCoupon:el,resetCoupon:es,setCouponData:ed,setHasCoupon:ec}=function(e){let{setFormValues:n,setIsLoading:t}=e,[a,i]=(0,d.useState)(null),[o,r]=(0,d.useState)(!1),l=(0,d.useRef)(0),s=e=>{i(null),n(n=>({...n,coupon:{...n.coupon,error:e}}))},c=e=>{var n;if(!e.ok){s(e.message);return}let{campanha:t}=null!==(n=e.data)&&void 0!==n?n:{};if(!(0,eL.S)(t,window.location.pathname)){s(eT._.default);return}i(e.data)};return{getCoupon:async e=>{let{couponValue:n,hasCoupon:a,planValue:i=p.w.IMPULSIONE_V2}=e;if(!a||!n||!n.trim())return;let o={code:n,plan:i},r=(0,eD.qY)(o);l.current+=1;let s=l.current;if(r){c(r),t(!1);return}t(!0);let d=await (0,eD.v3)(o);s===l.current&&(c(d),t(!1))},resetCoupon:(0,d.useCallback)(()=>{r(e=>!e),n(e=>({...e,coupon:{value:"",error:""}})),a&&i(null)},[r,n,a,i]),couponData:a,setCouponData:i,hasCoupon:o,setHasCoupon:r}}({setIsLoading:k,setFormValues:J}),{invisibleRecaptchaToken:ep,recaptchaRef:em,setReCAPTCHA:ev,validateReCAPTCHA:eh}=e6({setFormValues:J,formValues:B,setIsLoading:k}),{signupValidationState:ef,submit:e_,validateSignup:eb}=function(e){let{emailChannel:n,eventDistinctId:t,formValues:a,isLpModa:i,isUseCases:o,openToast:r,periodicity:l,setFormValues:s,setIsLoading:c,setIsLoadingValidation:u,setIsPasswordValid:p,validateForm:m,validateReCAPTCHA:v,whatsappChannel:h}=e,{loginWithJwt:g}=function(){let[e,n]=(0,d.useState)(null),t=(0,e3.x)(),a=/^(teste\.|new\.)/.test(window.location.hostname);return(0,d.useEffect)(()=>{{let e=window.location.protocol;a&&"true"===t.public_erp_use_pre_release&&t.public_erp_pre_release_version?(console.log("USING ERP PRE RELEASE URL: ",t.public_erp_pre_release_version),n("".concat(e,"//erp.olist.com/").concat(t.public_erp_pre_release_version))):n("".concat(e,"//erp.olist.com"))}},[t.public_erp_url,t.public_erp_pre_release_url,t.public_erp_pre_release_version,t.public_erp_use_pre_release,a]),{loginWithJwt:(0,d.useCallback)(n=>{let t=document.createElement("form");t.method="POST",t.action="".concat(e,"/login/");let a=document.createElement("input");a.type="hidden",a.name="jwtLogin",a.value=n,t.appendChild(a),document.body.appendChild(t),t.submit()},[e])}}(),x=ey.$.USE_CASES,{handleGetUtms:f}=(0,nt.Z)(),_=(0,e8.N)(),y=(0,e2.useSearchParams)(),{isMastercardPath:w,leadAttributes:j}=eg(),C=b(y.get("signup")),A=(0,d.useRef)(new Set),[N,S]=(0,d.useState)({validatedData:{cnpj:"",email:""},isValid:!1,signupValidateData:null}),Z=async(e,n,a)=>{await (0,ez.k)().post("/events/mixpanel/alias",{distinctId:t,userId:e}),await (0,ez.k)().post("/events/mixpanel/event",{distinctId:e,eventName:e4.Vi.ACCOUNT_CREATED,properties:{signup_param:n,choice:e4.tu.CLICKED_START,[e4.Mt.O
1NBOARDING_USE_CASES]:o}}),await (0,ez.k)().post("/events/mixpanel/event",{distinctId:e,eventName:e4.Vi.SIGNUP_FORM_SUBMITTED_SUCCESSFULLY,properties:{signup_param:n,choice:e4.tu.CLICKED_START,[e4.Mt.ONBOARDING_USE_CASES]:o}}),await (0,ez.k)().post("/events/mixpanel/onboarding/clicked-start-test",{distinctId:e,email:a,eventName:"[Onboarding] Clicked start test",properties:{signup_param:n,choice:e4.tu.CLICKED_START,[e4.Mt.ONBOARDING_USE_CASES]:o}})},I=e=>{var n,t;if(!e||A.current.has(e))return Promise.resolve();A.current.add(e);let a=nn(e,(null===(t=window)||void 0===t?void 0:null===(n=t.location)||void 0===n?void 0:n.pathname)||"");return new Promise(e=>{let n=!1,t=()=>{n||(n=!0,e())};setTimeout(t,1e3),(0,e5.hU)(e5.CP.LEAD_GENERATE_SIGNUP,a,{eventCallback:t,eventTimeout:1e3})})},k=async(e,n)=>{await (0,e7.bq)("form_submit_signup",{adv_unique1:e,adv_sub2:n.plano})},P=async(e,n,t)=>{await k(e,n),await Z(e,t,n.email)},E=async e=>{try{c(!0);let{data:n}=await (0,ez.k)().post("/erp/account",e,{retry:0}),t=n.idEmpresa,a=C&&""!==C.trim()?C:"padrao";await P(t,e,a),await I(t),c(!1),r({message:"Conta criada com sucesso.",variation:"success"}),await g(n.jwtLogin)}catch(l){var n,t,i;let e=null==l?void 0:null===(t=l.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.details;if(!e){r({message:"Ooops! Tivemos um problema, por favor tente novamente mais tarde ou entre em contato conosco.",variation:"alert"}),c(!1);return}let o=null==e?void 0:null===(i=e.detalhes)||void 0===i?void 0:i.map(e=>e);null==o||o.forEach(e=>{let n=F[e.campo]||e.campo;"celular"===n&&(n="phone"),n&&a.hasOwnProperty(n)?"password"===n?r({message:null==e?void 0:e.mensagem,variation:"alert"}):s(t=>{var a;return{...t,[n]:{value:null===(a=t[n])||void 0===a?void 0:a.value,error:null==e?void 0:e.mensagem}}}):r({message:(null==e?void 0:e.mensagem)||"Erro de valida\xe7\xe3o",variation:"alert"})}),c(!1)}},L=()=>{let e=document.querySelector(".input-error-signup");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},D=async(e,o)=>{var d,u,p,g,b,y;if(e.preventDefault(),c(!0),!await v()){r({message:"Por favor, confirme que voc\xea n\xe3o \xe9 um rob\xf4.",variation:"alert"});return}let C=await m();if(!C){c(!1),setTimeout(L,0);return}if(w&&(!(null===(d=o.coupon.value)||void 0===d?void 0:d.trim())||o.coupon.error)){c(!1),s(e=>({...e,coupon:{...e.coupon,error:e.coupon.error||"Cupom obrigat\xf3rio para continuar"}})),setTimeout(L,0);return}if(!N.isValid){c(!1);return}if(C){let e=[];n&&e.push(H.EMAIL),h&&e.push(H.WHATSAPP);let r={celular:o.phone.value.replace(/\D/g,""),documento:o.cnpj.value.replace(/[^A-Z0-9]/gi,""),email:o.email.value,isOrigemLPModa:i,nomeAdministrador:o.name.value,periodicidadePlano:l,plano:o.plan.value,senha:o.password.value,onboardingNextStep:x,origem:(null===(p=window)||void 0===p?void 0:null===(u=p.location)||void 0===u?void 0:u.pathname)||"/inscricao",tags:["#testeab_SUP_validacaodados"],eventDistinctId:t},s=f();if(s&&(r={...r,utm:s}),e.length>0&&(r={...r,canalComunicacao:e}),o.coupon.value&&(r={...r,codigoPromocional:String(o.coupon.value)}),_&&(r={...r,device:_}),j.length>0&&(r={...r,lead_attributes:j}),(null===(g=N.signupValidateData)||void 0===g?void 0:g.nextStep)==="login"){let e=new URLSearchParams(JSON.parse(JSON.stringify({origin:null===(b=N.signupValidateData)||void 0===b?void 0:b.origin,destination:"tiny",type:"tiny_signup",cnpj:a.cnpj.value.replace(/[^A-Z0-9]/gi,""),username:a.name.value,plan:a.plan.value,cupom:a.coupon.value,periodicidade:q[l],celular:a.phone.value.replace(/\D/g,""),email:(null===(y=N.signupValidateData)||void 0===y?void 0:y.shouldForwardEmail)?a.email.value:""}))).toString();window.location.assign("https://accounts.olist.com/v2/authentication/start_flow?".concat(e));return}await E(r)}};return{validateSignup:async()=>{var e,n,t,i;let o=null==a?void 0:null===(e=a.email)||void 0===e?void 0:e.value,l=null==a?void 0:null===(n=a.cnpj)||void 0===n?void 0:n.value.replace(/[^A-Z0-9]/gi,"");if(l===N.validatedData.cnpj.replace(/[^A-Z0-9]/gi,"")&&o===N.validatedData.email)return;let d=ex.In.test(o),c=(0,ex.JC)(l);if(!d||!c){S({isValid:!1,validatedData:{cnpj:l,email:o},signupValidateData:null});return}s(e=>{var n,t;return{...e,email:{value:null==e?void 0:null===(n=e.email)||void 0===n?void 0:n.value,error:""},cnpj:{value:null==e?void 0:null===(t=e.cnpj)||void 0===t?void 0:t.value,error:""}}});try{u(!0);let{data:e}=await (0,ez.k)().get("/accounts/validate-signup",{params:{product:"tiny",cnpj:l,email:o}});if(u(!1),(null==e?void 0:e.nextStep)==="login")return p(!0),S({isValid:!0,validatedData:{cnpj:l,email:o},signupValidateData:e}),{isValid:!0,signupValidateData:e};if((null==e?void 0:e.nextStep)==="none"){let n=null==e?void 0:null===(t=e.error)||void 0===t?void 0:t.field,a=null==e?void 0:null===(i=e.error)||void 0===i?void 0:i.detail,d=null==e?void 0:e.shouldContactSupport;return n&&s(e=>{var t;return{...e,[n]:{value:null===(t=e[n])||void 0===t?void 0:t.value,error:a}}}),!n&&d&&r({message:"Ooops! Tivemos um problema, por favor tente novamente mais tarde ou entre em contato conosco.",variation:"alert"}),S({isValid:!1,validatedData:{cnpj:l,email:o},signupValidateData:e}),{isValid:!1,signupValidateData:e}}return S({isValid:!0,validatedData:{cnpj:l,email:o},signupValidateData:e}),{isValid:!0,signupValidateData:e}}catch(e){return S({isValid:!1,validatedData:{cnpj:l,email:o},signupValidateData:null}),r({message:"Ooops! Tivemos um problema, por favor tente novamente mais tarde ou entre em contato conosco.",variation:"alert"}),u(!1),{isValid:!1,signupValidateData:null}}},createAccount:E,submit:D,signupValidationState:N}}({emailChannel:U,eventDistinctId:i,formValues:B,isLpModa:f,isUseCases:A,openToast:ee,periodicity:S,setFormValues:J,setIsLoading:k,setIsLoadingValidation:L,validateForm:K,validateReCAPTCHA:eh,whatsappChannel:Y,setIsPasswordValid:T});(0,d.useEffect)(()=>
1{if(ei&&ei.length>0&&!A){let e=m?eC(m):null,n=ei.find(e=>{var n;return na===(null==e?void 0:null===(n=e.values)||void 0===n?void 0:n.nome)}),t=ei.find(e=>{var n;return N===(null==e?void 0:null===(n=e.values)||void 0===n?void 0:n.nome)});J(a=>{var i,o;return{...a,fixedPlan:{value:m,error:""},plan:{value:null!=e?e:N?null==t?void 0:null===(i=t.values)||void 0===i?void 0:i.nome:null==n?void 0:null===(o=n.values)||void 0===o?void 0:o.nome,error:""}}})}},[ei,N,ei,A,m]),(0,d.useEffect)(()=>{a&&B.plan.value&&(ec(!0),J(e=>({...e,coupon:{value:a,error:""}})),er({couponValue:a,planValue:B.plan.value,hasCoupon:!0}))},[a,B.plan.value]);let ew=(0,d.useMemo)(()=>(B.plan.value,ei.find(e=>{var n;return(null==e?void 0:null===(n=e.values)||void 0===n?void 0:n.nome)===B.plan.value})),[B.plan.value,ei]);async function ej(){await eb()}(0,d.useEffect)(()=>{if(I||E||ea||G){V(!0);return}V(!1)},[I,E,ea,G]);let eN=(null==ef?void 0:ef.isValid)&&(null==ef?void 0:null===(n=ef.signupValidateData)||void 0===n?void 0:n.nextStep)==="login"?{submitLabel:"Avan\xe7ar",shouldRenderPassword:!1}:{submitLabel:"Come\xe7ar teste",shouldRenderPassword:!0};return(0,o.jsxs)(o.Fragment,{children:[R&&(0,o.jsx)(c.u,{children:(0,o.jsx)(r.Z,{variation:O})}),A?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X,{onSubmit:e=>e_(e,B),paddingTop:"50px",children:(0,o.jsx)(Q,{children:(0,o.jsx)(eE,{recaptchaRef:em,invisibleRecaptchaToken:ep,handleReCAPTCHAChange:ev,formValues:B,setFormValues:J,isLoading:I,isLoadingValidation:E,setIsPasswordValid:T,whatsappChannel:Y,emailChannel:U,setEmailChannel:W,setWhatsappChannel:$,hasCoupon:el,handleSetCoupon:es,couponData:eo,setCouponData:ed,handleGetCoupon:er,isValidPassword:D,formBehavior:eN,templates:w,validateSignupOnBlur:ej,isCouponReadOnly:x})})}),(0,o.jsx)(P,{templates:w})]}):(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(z,{onSubmit:e=>e_(e,B),paddingTop:h?"50px":"0",children:[(0,o.jsx)(eA,{hasSideBar:h,recaptchaRef:em,invisibleRecaptchaToken:ep,handleReCAPTCHAChange:ev,isLoadingPlans:ea,formValues:B,setFormValues:J,handleGetCoupon:er,activePlans:ei,hasCoupon:el,handleSetCoupon:es,isLoading:I,couponData:eo,isLoadingValidation:E,setIsPasswordValid:T,whatsappChannel:Y,emailChannel:U,setEmailChannel:W,setWhatsappChannel:$,setCouponData:ed,isValidPassword:D,formBehavior:eN,validateSignupOnBlur:ej,fixedPlanName:m,hidePlanSelect:g,isCouponReadOnly:x}),h&&(0,o.jsx)(eu,{activePlans:ei,couponData:eo,formValues:B,handleGetCoupon:er,handleSetCoupon:es,hasCoupon:el,isLoading:I,isLoadingPlans:ea,selectedPlan:ew,setCouponData:ed,setFormValues:J,periodicity:S,frequency:et,setPeriodicity:Z,setPlansComparisonVisible:y})]})}),(0,o.jsx)(l.F,{toasts:en})]})}},11873:function(e,n,t){t.d(n,{I5:function(){return c},hL:function(){return d},lP:function(){return s},ou:function(){return l},u:function(){return u}});var a=t(19521),i=t(65278),o=t(85703),r=t(8070);let l=a.ZP.div.withConfig({displayName:"signup.styles__SignupWrapper",componentId:"sc-530aa1c6-0"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;width:100vw;"]),s=a.ZP.section.withConfig({displayName:"signup.styles__FirstSection",componentId:"sc-530aa1c6-1"})(["align-items:center;background-color:",";display:flex;flex-direction:row;height:auto;justify-content:center;padding:0;width:100%;","{padding:0 48px 0 48px;}","{padding:0 20px 0 20px;}","{padding:0 20px 0 20px;}"],o.r.colors.white,i.Hb.medium,i.Hb.small,i.Hb.xsmall),d=a.ZP.div.withConfig({displayName:"signup.styles__FirstSectionContent",componentId:"sc-530aa1c6-2"})(["align-items:flex-start;display:flex;flex-direction:row;gap:32px;height:100%;max-width:","px;width:100%;","{flex-direction:column;}"],r.Ur,i.Hb.mobile),c=(0,a.vJ)(["body{overflow-x:hidden;overflow-y:auto;}.dropdown-olist{display:none !important;}#site-footer{display:none !important;}#bf-banner{display:none !important;}#banner-header{display:none !important;}.headerstyles__ButtonsContainer-sc-fbfjuu-12{display:none !important;}#site-desktop-header{position:relative;height:60px;background:transparent;box-shadow:none;}"]),u=a.ZP.div.withConfig({displayName:"signup.styles__LoadingWrapper",componentId:"sc-530aa1c6-3"})(["align-items:center;background-color:",";bottom:0;display:flex;justify-content:center;left:0;min-height:100%;opacity:0.8;position:fixed;width:100%;z-index:3;"],o.r.colors.white)},85441:function(e,n,t){var a,i;t.d(n,{x:function(){return a}}),(i=a||(a={})).DEFAULT="default",i.USE_CASES="use_cases"},71107:function(e,n,t){t.d(n,{S:function(){return l}});let a={mastercard:["/mastercard"]},i=e=>"string"==typeof e?e.trim().toLowerCase():"",o=e=>{if("string"!=typeof e||!e.trim())return"";let[n]=e.trim().split(/[?#]/);return(n.replace(/\/+$/,"")||"/").toLowerCase()},r=(e,n)=>e===n||e.startsWith("".concat(n,"/")),l=(e,n)=>{let t=i(e);if(!t)return!0;let l=a[t];
1if(!l)return!0;let s=o(n);return!!s&&l.some(e=>r(s,o(e)))}},42168:function(e,n,t){t.d(n,{qY:function(){return h},v3:function(){return f}});var a=t(39373),i=t(44335);let o="olist:coupon-cache",r=new Map,l=e=>{let{code:n,plan:t}=e;return"".concat(n.trim().toUpperCase(),"|").concat(t)},s=()=>{try{return window.sessionStorage}catch(e){return null}},d=()=>{let e=s();if(!e)return{};try{let n=e.getItem(o);if(!n)return{};let t=JSON.parse(n);if("object"!=typeof t||null===t)return{};return t}catch(e){return{}}},c=e=>{let n=s();if(n)try{n.setItem(o,JSON.stringify(e))}catch(e){}},u=e=>"object"==typeof e&&null!==e&&"number"==typeof e.expiresAt&&"boolean"==typeof e.ok,p=e=>{let n=d()[e];return!u(n)||n.expiresAt<=Date.now()?null:n},m=(e,n)=>{let t=Date.now();c({...Object.fromEntries(Object.entries(d()).filter(n=>{let[a,i]=n;return a!==e&&u(i)&&i.expiresAt>t}).sort((e,n)=>{let[,t]=e,[,a]=n;return t.expiresAt-a.expiresAt}).slice(-19)),[e]:n})},v=(e,n)=>{var t;return e.ok?{data:e.data,fromCache:n,ok:!0}:{detail:e.detail,fromCache:n,message:e.message||a._.default,ok:!1,status:null!==(t=e.status)&&void 0!==t?t:null}},h=e=>{let{code:n,plan:t}=e,a=p(l({code:n,plan:t}));return a?v(a,!0):null},g=e=>{var n;let t=null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.status;return"number"==typeof t?t:null},x=async(e,n)=>{let{code:t,plan:o}=n;try{let{data:n}=await (0,i.k)().get("/erp/coupon",{params:{code:t,plan:o}});return m(e,{data:n,expiresAt:Date.now()+6e5,ok:!0}),{data:n,fromCache:!1,ok:!0}}catch(o){let n=(0,a.G)(o),t=g(o),i=null==o?void 0:o.message;return m(e,{detail:i,expiresAt:Date.now()+6e5,message:n,ok:!1,status:t}),{detail:i,fromCache:!1,message:n,ok:!1,status:t}}},f=e=>{let{code:n,plan:t}=e,a=l({code:n,plan:t}),i=h({code:n,plan:t});if(i)return Promise.resolve(i);let o=r.get(a);if(o)return o;let s=x(a,{code:n,plan:t}).finally(()=>{r.delete(a)});return r.set(a,s),s}},72627:function(e,n,t){t.d(n,{w:function(){return a}});let a={AVANCE:"Avance",CONSTRUA:"Construa",IMPULSIONE:"Impulsione",DOMINE:"Domine",PROTAGONIZE:"Protagonize",AVANCE_V2:"Avance_v2",CONSTRUA_V2:"Construa_v2",IMPULSIONE_V2:"Impulsione_v2",DOMINE_V2:"Domine_v2",PDV_V2:"PDV_v2",AVANCE_SURPREENDA_MASTERCARD:"AvanceSurpreendaMastercard"}},87930:function(e,n,t){var a,i,o,r;t.d(n,{Mt:function(){return o},Vi:function(){return a},tu:function(){return i}}),(r=a||(a={})).PAGE_VIEW="Created user account pageview",r.ACCOUNT_CREATED="Created user account",r.SIGNUP_FORM_SUBMITTED_SUCCESSFULLY="Signup form submitted successfully",(i||(i={})).CLICKED_START="clicked_start",(o||(o={})).ONBOARDING_USE_CASES="onboarding:casos_de_uso"},8070:function(e,n,t){t.d(n,{AN:function(){return o},O$:function(){return d},P$:function(){return r},Ur:function(){return i},gw:function(){return l},wG:function(){return s}});var a=t(34155);parseInt(a.env.MAIN_SIDEBAR_ID||"1"),parseInt(a.env.HEADER_WIDGET_AREA_ID||"2");let i=1200,o=1360,r="#FAFAFA",l="#616161",s="#EBEBEB",d="#D4E9FF"}}]);
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.