PageSourceSearch

https://www.companyhero.com/_next/static/chunks/pages/app/home-408291c422f101b6.js

js companyhero.com collected 2026-10-01 10:40:22 UTC 51,735 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43018,29256],{79926:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/home",function(){return n(55120)}])},84482:function(e,t,n){"use strict";n.d(t,{x8:function(){return d},qt:function(){return u},d_:function(){return x}});var s=n(85893);n(67294);var a=n(31929),l=n(53740),i=n(12782),r=n.n(i);let{Paragraph:o,Title:c}=l.default,d={Container:e=>{let{children:t}=e;return(0,s.jsx)("div",{className:r().container,children:t})},Title:e=>{let{children:t}=e;return(0,s.jsx)(a.default,{theme:{components:{Typography:{sizeSM:22}}},children:(0,s.jsx)(c,{level:4,className:r().title,children:t})})},Description:e=>{let{children:t}=e;return(0,s.jsx)(o,{className:r().description,children:t})}},u={services:{title:"Servi\xe7os",subtitle:"Escolha qual \xe9 o servi\xe7o ideal para cada etapa da sua jornada como profissional por conta pr\xf3pria."},benefits:{title:"Benef\xedcios",subtitle:"Acesse descontos exclusivos de <strong>at\xe9 30%</strong> em laborat\xf3rios, farm\xe1cias e cursos de tecnologia."},tools:{title:"Ferramentas",subtitle:"Use gratuitamente as ferramentas desenvolvidas para ajudar voc\xea a calcular e planejar seus ganhos, gastos e investimentos."}},x=[{url:"/images/dashboard/life_insurance_banner.png",alt:"Seguro contra acidentes pessoais",redirect_link:"https://www.companyhero.com/seguro-de-acidentes-pessoais"},{url:"/images/dashboard/health_plan_banner.jpg",alt:"Planos de sa\xfade",redirect_link:"https://wa.me/5511913028017?text=Ol%C3%A1%21%20%F0%9F%98%8A%20Vim%20pela%20%C3%A1rea%20logada%20da%20Company%20Hero%20e%20gostaria%20de%20saber%20mais%20sobre%20as%20op%C3%A7%C3%B5es%20de%20Planos%20de%20Sa%C3%BAde%20dispon%C3%ADveis%20para%20mim"},{url:"/images/dashboard/nf_banner.png",alt:"NF",redirect_link:"https://pjhero.go.link/eYrf9"}]},54563:function(e,t,n){"use strict";var s=n(85893),a=n(67294);n(5904);var l=n(67814),i=n(19317);t.Z=e=>{let{icon:t,className:n}=e,[r,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{o(!0)},[]);let c=null;return t&&t.includes(".svg")&&(c=(0,s.jsx)(i.Q,{src:t,className:n})),t&&!t.includes(".svg")&&(c=(0,s.jsx)("div",{className:n,children:r?(0,s.jsx)(l.FontAwesomeIcon,{icon:t}):null})),c}},18858:function(e,t,n){"use strict";var s=n(85893),a=n(89552);t.Z=()=>(0,s.jsx)("section",{className:"padding",children:(0,s.jsx)(a.default,{className:"centerDiv",style:{display:"table"}})})},97525:function(e,t,n){"use strict";var s=n(85893);n(67294);var a=n(59361),l=n(31929),i=n(1541),r=n(7136),o=n(18945),c=n(29256),d=n(25675),u=n.n(d);let{useToken:x}=i.default;t.Z=function(e){let{description:t,tags:n,cover:i,fullHeight:d,cover_thumb:p,meta:m,customTag:h,id:g}=e,{token:f}=x(),v="fullHeight",_="",j=n;return"false"===d&&(v=""),j&&(j=j.map(e=>h?(0,s.jsx)(h,{children:e},"tag_".concat(e)):(0,s.jsx)(a.default,{color:"blue",style:{fontSize:"13px"},children:e},"tag_".concat(e)))),_=p?(0,s.jsx)(u(),{title:i.title,alt:i.title,src:p,width:350,height:230,blurDataURL:p,placeholder:"blur",quality:60,style:{height:"auto"}}):(0,s.jsx)("img",{src:"https://picsum.photos/id/1/640/420"}),(0,s.jsx)(l.default,{theme:{token:{fontSize:f.fontSizeSM}},children:(0,s.jsx)(o.default,{href:"/blog/".concat(m.slug),buttonId:g,children:(0,s.jsxs)(r.Card,{hoverable:!0,className:"CardContent ".concat(v),cover:_,bodyStyle:{padding:"16px"},style:{maxWidth:"350px",minWidth:"220px"},children:[(0,s.jsx)(c.default,{...e,level:5,titleSize:"14px",content:t,margin:!1}),(0,s.jsx)("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",marginTop:"16px"},children:j})]})})})}},29256:function(e,t,n){"use strict";n.r(t);var s=n(85893),a=n(67294),l=n(5152),i=n.n(l),r=n(25675),o=n.n(r),c=n(53740);let d=i()(()=>n.e(41044).then(n.bind(n,41044)),{loadableGenerated:{webpack:()=>[41044]}}),{Title:u,Paragraph:x}=c.default;t.default=(0,a.memo)(function(e){let{level:t=2,title:n,margin:l="",classNameTitle:i="",content:r,image:c="",className:p,titleSize:m="inherit"}=e,[h,g]=(0,a.useState)(!1),f=l?"":"noMargin";return(0,s.jsxs)("div",{className:p,children:[(0,s.jsx)(u,{level:t,style:{fontSize:m},className:i,children:n}),(0,s.jsx)(x,{className:"p".concat(t," ").concat(f),children:(0,s.jsx)("p",{className:"".concat(f),children:r.split("<br/>").map((e,t)=>(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:e}},t))})}),c&&(0,s.jsxs)("div",{style:{marginBottom:"40px"}
1,children:[(0,s.jsx)(o(),{quality:50,width:c.width,height:c.height,src:c.url,alt:n,onClick:()=>g(!0)}),(0,s.jsx)(d,{src:c.url,visible:h,onCancel:function(){g(!1)}})]})]},"title_text")})},46657:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var s=n(85893),a=n(67294),l=n(19435),i=n(39691),r=n(90008),o=n(72157),c=n(18858),common_ModelTemplate=function(e){let{slug:t}=e,[n,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{(async function(){await r.eZ.getModel(t).then(e=>{let{data:t}=e;l(t)}).catch(e=>!1)})()},[]),(0,s.jsx)(s.Fragment,{children:n?(0,s.jsx)(o.default,{...n}):(0,s.jsx)(c.Z,{})})};n(5904);var d=n(67814),u=n(55673),x=n(5789),p=(0,a.memo)(e=>{let{area:t,className:n=""}=e,{widgetAreas:o,loggedIn:c,adminView:p}=(0,a.useContext)(l.I),{defaultCompanyObject:m,user:{id:h=!1,is_staff:g=!1}=!1}=(0,a.useContext)(i.S),[f,v]=(0,a.useState)(null),_=o.find(e=>{let{key:n}=e;return n===t}),j=_&&(null==_?void 0:_.widgets_to_show)>1?null==_?void 0:_.columns:1,y=(g||!1)&&p,C=c||!!h,fetchWidgets=(e,t,n)=>{r.HD.getWidgets(e.key,t,n).then(t=>{let{data:{items:n}}=t,s=n.filter(e=>!e.is_private||g);e.widgets_to_show>0?v(s.slice(0,e.widgets_to_show)):v(s)}).catch(()=>{})};return((0,a.useEffect)(()=>{if((null==_?void 0:_.key)&&m){var e;let t=["logged_in_user",...null!==(e=m.widgets_tags)&&void 0!==e?e:[]];g&&t.push("is_staff"),fetchWidgets(_,t.join(","),m.access_roles)}},[m]),(0,a.useEffect)(()=>{(null==_?void 0:_.key)&&!C&&fetchWidgets(_,"visitor")},[_,C]),_)?(0,s.jsxs)(u.default,{className:"widget_area ".concat(t," ").concat(y&&"_border"," ").concat(n),type:"flex",justify:"space-around",align:"top",children:[y&&(0,s.jsx)(()=>(0,s.jsxs)("div",{className:"areaName",children:["Widget Area: ",(0,s.jsx)("strong",{children:t}),"\xa0\xa0",(0,s.jsx)("a",{href:"".concat("https://admin.companyhero.com/","/cms/widgets/areawidget/edit/").concat(null==_?void 0:_.id,"/"),target:"_blank",rel:"noreferrer",children:(0,s.jsx)(d.FontAwesomeIcon,{icon:"edit",size:"xs",color:"#fff",style:{marginBottom:"0px"}})})]}),{}),f&&f.map(e=>{let{model_slug:t,is_private:n}=e;return(0,s.jsxs)(x.default,{span:24/j,className:"_mobile_full_width",children:[n&&(0,s.jsx)("span",{className:"areaName _private",children:"Widget visivel s\xf3 para administradores"}),(0,s.jsx)(common_ModelTemplate,{slug:t})]},t)})]}):(0,s.jsx)(s.Fragment,{})})},64984:function(e,t,n){"use strict";n.d(t,{z:function(){return getActiveProductDocuments},E:function(){return getActiveProductStatus}});var s=n(29369),a=n(43499);let l={async getActiveProductStatus(e,t){try{let n=await a.Z.get("v2/listing/product/active?company_id=".concat(e,"&product_club_slug=").concat(t)),l=(0,s.Z)({json:n.data});return l}catch(e){throw e}},async getActiveProductDocuments(e,t){try{let n=await a.Z.get("/v2/listing/product/active/documents/".concat(e,"/").concat(t)),l=n.data.map(e=>(0,s.Z)({json:{...e,key:e.id}}));return l}catch(e){throw e}}};var i=n(67848);function getActiveProductStatus(e,t){return(0,i.a)({queryFn:()=>l.getActiveProductStatus(e,t),queryKey:["benefitProducts",e,t]})}function getActiveProductDocuments(e,t){return(0,i.a)({enabled:!!e&&!!t,queryFn:()=>l.getActiveProductDocuments(null!=e?e:"",null!=t?t:""),queryKey:["benefitDocuments",e,t]})}},55120:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return tf},default:function(){return tv}});var s,a,l=n(85893),i=n(67294),r=n(5216),o=n(81361),c=n(73818),d=n(7136),u=n(18945),NotCompany=()=>(0,l.jsx)(c.default,{status:"warning",title:"Algo n\xe3o est\xe1 certo",subTitle:"Voc\xea n\xe3o est\xe1 relacionado a nenhuma empresa, entre em contato com o time de suporte",extra:(0,l.jsx)(u.default,{href:"#open_chat",children:(0,l.jsx)(d.zx,{type:"primary",children:"Abrir chat com um Hero"},"console")})}),x=n(5789),p=n(55673),m=n(53740),h=n(46657),g=n(65182),f=n(39691);function useUserType(){let{defaultCompanyObject:e,userIsCad:t}=(0,i.useContext)(f.S);return t?"cad":(null==e?void 0:e.count_members_hidden)>1?"organization":"professional"}var v=n(63241),_=n(4670),j=n(57396),y=n.n(j),C=n(43054),b=n.n(C),S=n(27874);let T=[{id:"escritorio-virtual",title:"Quero um endere\xe7o para abrir meu CNPJ",category:"escritorio-virtual",link:"/app/plataforma-escritorio-virtual"},{id:"escritorio-virtual-para-comercio",title:"Quero alterar o endere\xe7o do meu CNPJ",category:"escritorio-virtual",link:"/app/plataforma-escritorio-virtual"},{id:"protecao",title:"Quero proteger minha renda",category:"seguros",link:"/app/plataforma-protecao-de-renda"}],w=[{category:"escritorio-virtual",label:{pending_onboarding:"Liberar documentos",pen
1ding_signature:"Assinar",documents:"Acessar documentos",active:"Acessar documentos"}},{category:"seguros",label:{pending_onboarding:"Finalizar solicita\xe7\xe3o",pending_signature:"Assinar contrato",waiting:"",active:"Acessar"}}],{Paragraph:N,Title:k,Text:P}=m.default,A={Container:e=>{let{children:t}=e;return(0,l.jsx)("div",{className:b().container,children:t})},Card:e=>{let{children:t}=e,{isMobile:n}=(0,v.F)();return(0,l.jsx)(x.default,{className:b().card,style:{minHeight:n?"auto":"200px",paddingBlockStart:n?"32px":"52px"},children:t})},CardActive:e=>{let{children:t,onClick:n}=e,{isMobile:s}=(0,v.F)();return(0,l.jsx)("div",{onClick:n,className:b().cardActive,style:{minHeight:s?"auto":"200px",paddingBlockStart:"16px"},children:t})},Cta:e=>{var t,n;let{service:s}=e,{tagCategory:a}=(0,S.Z)(s.completeContract),i=null===(n=w.find(e=>(null==e?void 0:e.category)===(null==s?void 0:s.category)))||void 0===n?void 0:null===(t=n.label)||void 0===t?void 0:t[null!=a?a:""];return(0,l.jsx)(P,{className:b().cta,children:i})},Icon:e=>{let{children:t,position:n="center"}=e;return(0,l.jsx)("div",{className:"".concat(b().icon," ").concat(b()[n]),children:t})},Text:e=>{let{children:t,align:n="center",style:s}=e;return(0,l.jsx)(N,{style:{textAlign:n,...s},className:"".concat(b().text),children:t})}};var I=n(84482);let F=[{title:"Calculadora CLTxPJ",description:"Descubra se vale a pena ser CLT ou PJ",icon:"/icons/calculator.svg",link:"/app/calculadora-pj"},{title:"Precifica\xe7\xe3o de servi\xe7o",description:"Descubra o valor ideal para cobrar pelo seu servi\xe7o",icon:"/icons/price-tag.svg",link:"/app/planilha-precificacao"}];var D=n(57588),B=n(60713),E=n(94293),M=n.n(E),O={Container:e=>{let{children:t,direction:n="row"}=e;return(0,l.jsx)(p.default,{gutter:[16,8],style:{flexDirection:n},children:t})},Card:e=>{let{children:t,block:n=!1,onMouseEnter:s,onClick:a,...i}=e,r=n?{xl:24,lg:24,md:24,sm:24,xs:24}:{xl:8,lg:8,md:12,sm:24,xs:24};return(0,l.jsx)(x.default,{xs:r.xs,sm:r.sm,md:r.md,lg:r.lg,xl:r.xl,onClick:a,children:(0,l.jsx)("div",{className:M().card,children:t})})},CarouselMobile:e=>{let{children:t}=e;return(0,l.jsx)(B.default,{dots:!1,style:{marginTop:"24px"},slidesToShow:1.3,infinite:!1,className:M().carouselMobile,children:t})},Thumbnail:e=>{let{children:t}=e;return(0,l.jsx)("div",{className:M().thumbnail,children:t})},Content:e=>{let{children:t}=e;return(0,l.jsx)(D.default,{justify:"space-between",align:"center",gap:8,className:M().content,children:t})},Title:e=>{let{children:t,style:n,className:s}=e;return(0,l.jsx)("h4",{style:{...n},className:s,children:t})},Icon:e=>{let{children:t,position:n="center",whenHover:s=!1,style:a}=e;return(0,l.jsx)("div",{style:{...a},className:"".concat(M().icon," ").concat(M()[n]," ").concat(s?M().iconWithHover:""),children:t})}},H=n(47041),Z=n(25675),R=n.n(Z),q=n(91574),z=n.n(q),W=n(83482);let{Text:V}=m.default,G={Title:e=>{let{children:t}=e;return(0,l.jsx)(V,{strong:!0,children:t})},Description:e=>{let{children:t}=e;return(0,l.jsx)(V,{children:t})},Cover:e=>{let{src:t,width:n,height:s,quality:a,alt:i=""}=e;return t?(0,l.jsx)("div",{className:z().cover,children:(0,l.jsx)(R(),{loader:()=>"".concat(t,"?width=").concat(n||300,"&quality=").concat(a||75,"&height=").concat(s||300),src:t,alt:i,fill:!0,objectFit:"contain"})}):null},Body:e=>{let{children:t}=e;return(0,l.jsx)("div",{className:z().body,children:t})},CloseIcon:()=>(0,l.jsx)(W.default,{color:"#1F242973",className:z().closeIcon})};var L=n(65400),U=n.n(L),J=n(62201),K=n(36457),Q=n.n(K),components_HeroTour=e=>{let{firstNextButtonText:t="Come\xe7ar",firstCloseButtonText:n,nextButtonText:s="Avan\xe7ar",prevButtonText:a="Anterior",lastButtonText:i="Acessar a plataforma",steps:r,handleTourClose:o,handleTourFinish:c}=e,{isMobile:d}=(0,v.F)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(J.ZP,{tooltipComponent:e=>{let{index:o,step:c,backProps:u,primaryProps:x,size:p,skipProps:m}=e,h=p-1,g=!d||o!==h;return(0,l.jsxs)(G.Body,{children:[(0,l.jsx)("span",{...m,children:(0,l.jsx)(G.CloseIcon,{})}),(0,l.jsx)(G.Cover,{src:r[o].cover||""}),(0,l.jsx)(G.Title,{children:c.title}),(0,l.jsx)(G.Description,{children:c.content}),(0,l.jsxs)(D.default,{align:"center",justify:"space-between",style:{marginBlockStart:12},children:[g?(0,l.jsx)("div",{className:Q().stepsDotsWrapper,children:r.map((e,t)=>(0,l.jsx)("div",{className:"".concat(Q().stepsDots," ").concat(o===t&&Q().active)},t))}):null,(0,l.jsxs)(D.default,{gap:d?0:16,align:"center",justify:"space-between",flex:d&&o===h?1:0,children:[0===o&&n&&(0,l.jsx)(U(),{...m,type:"text",className:Q().textButton,children:n}),0===o&&(0,l.jsx)(U(),{...x,type:"primary",children:t}),0!==o&&(0,l.jsx)(U(),{...u,type:"text",className:Q().textButton,style:d&&o===h?{padding:0}:{},children:a}),o<h&&0!==o&&(0,l.jsx)(U(),{...x,type:"primary",children:s}
1),o===h&&(0,l.jsx)(U(),{...x,type:"primary",children:i})]})]})]})},callback:function(e){let{action:t,type:n}=e;t===J.aO.RESET&&c&&c(),(t===J.aO.CLOSE||t===J.aO.SKIP&&n===J.FP.TOUR_END)&&o&&o()},steps:r,scrollDuration:.3,continuous:!0,styles:{overlay:{height:d?"250%":"135%"}}})})},X=n(64487),Y=n(43499);let $={get:e=>Y.Z.get("/v3/tour_log",{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}}),create:e=>Y.Z.post("/v3/tour_log/create",e),update:(e,t)=>e?Y.Z.put("/v3/tour_log/update/".concat(e,"/"),t):Promise.reject("Tour ID is required")};(s=a||(a={})).STARTED="started",s.COMPLETED="completed";let TourDashboard=e=>{let{tourAlreadyOpenToday:t,tourCompleted:n,setTourAlreadyOpenToday:s,tourOpen:a,targetUserGroup:r,tourContent:o,setTourOpen:c,toursUser:d=[]}=e;if(!a||t||n)return(0,l.jsx)(l.Fragment,{});let u=(0,i.useCallback)(e=>d.filter(t=>t.id_tour===e&&"completed"!==t.status&&"completd"!==t.status)[0],[d]),x=o.filter(e=>{var t;return e.data.targetUserGroup===r&&(t=e.id,!d.some(e=>"completed"===e.status&&e.id_tour===t))});if(!x.length)return(0,l.jsx)(l.Fragment,{});function getContent(e){if(x.length&&x[0].data&&x[0].data.steps){let t=x[0].data.steps.find(t=>t.step.referenceStep===e);if(t&&t.step)return t.step}return console.error("Error get content: Missing or invalid data"),X.Tb("Error get content: Missing or invalid data"),{title:"",content:"",cover:""}}let handleFinishTour=async()=>{try{let e=(0,H.getCookie)("defaultCompanyId"),t=u(x[0].id);await $.update(t.id,{company:e,status:"completed",id_tour:x[0].id})}catch(e){X.Tb(e)}finally{s(!0),(0,H.setCookie)("tourHomeCompleted","true")}},handleTourClose=async()=>{c(!1);try{let e=(0,H.getCookie)("defaultCompanyId"),t=u(x[0].id);await $.update(t.id,{company:e,status:"started",id_tour:x[0].id})}catch(e){X.Tb(e)}finally{s(!0),(0,H.setCookie)("tourHomeAlreadyOpenToday","true",{expires:new Date(new Date().setHours(23,59,59,999))})}},p=[{placement:"center",target:"body",title:getContent("start").title,content:getContent("start").content,cover:getContent("start").cover,disableBeacon:!1},{target:'[data-tour="services"]',placement:"top",title:getContent("services").title,content:getContent("services").content,cover:getContent("services").cover,disableBeacon:!1},{target:'[data-tour="tools"]',placement:"left",title:getContent("tools").title,content:getContent("tools").content,cover:getContent("tools").cover,disableBeacon:!0},{target:'[data-tour="benefits"]',placement:"top",title:getContent("benefits").title,content:getContent("benefits").content,cover:getContent("benefits").cover,disableBeacon:!0},{placement:"center",target:"body",title:getContent("end").title,content:getContent("end").content,cover:getContent("end").cover,disableBeacon:!0}];return(0,l.jsx)(components_HeroTour,{firstCloseButtonText:"Pular",steps:p,handleTourClose:handleTourClose,handleTourFinish:handleFinishTour})};var ee=n(11163),et=n(91701),en=n(90008),es=n(9158),ea=n(56697),el=n(89552),ei=n(11187),er=n(4851),eo=n(3855),ec=n(48138),ed=n(8163),eu=n(12892),ex=n.n(eu);let{Text:ep,Title:em,Paragraph:eh}=m.default,PendingAnalysisCard=e=>{let{onStatusChange:t}=e,{user:n,refreshUserData:s}=(0,i.useContext)(f.S),[a,r]=(0,i.useState)(null),[o,c]=(0,i.useState)(!0),[d,u]=(0,i.useState)(!1),[x,p]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),g=i.useRef(null),v=i.useRef(!1),_=(0,i.useCallback)(async()=>{if(!(null==n?void 0:n.email)||!(null==n?void 0:n.cpf)){c(!1);return}try{let e=await ed.Z.getStatus({document:n.cpf,email:n.email});if(null===e){g.current=null,r(null),c(!1),null==t||t(null);return}let a=e.status,l=g.current;if("PENDING"===l&&"PENDING"!==a&&!v.current){if(v.current=!0,p(!1),"APPROVED"===a){h(!0),ei.default.success("Documenta\xe7\xe3o aprovada! Atualizando seus servi\xe7os..."),setTimeout(async()=>{try{s&&await s(),setTimeout(()=>{window.location.reload()},1e3)}catch(e){console.error("[PendingAnalysisCard] Erro ao atualizar dados:",e),window.location.reload()}},2e3),g.current=a,r(a),null==t||t(a),c(!1);return}g.current=a,r(a),null==t||t(a),c(!1);return}g.current=a,r(a),null==t||t(a),"PENDING"===a?p(!0):p(!1),c(!1)}catch(e){console.error("[PendingAnalysisCard] Erro ao verificar status:",e),c(!1),g.current||(r(null),null==t||t(null))}},[null==n?void 0:n.email,null==n?void 0:n.cpf,t,s]);(0,i.useEffect)(()=>{let e;return x&&(e=setInterval(()=>{_()},5e3)),()=>{e&&clearInterval(e)}},[x,_]),(0,i.useEffect)(()=>{_()},[_]);let handleCardClick=()=>{u(!0)},handleCloseModal=()=>{u(!1)};return o||null===a?null:"APPROVED"===a&&m?(0,l.jsxs)(A.CardActive,{className:ex().approvedCard,children:[(0,l.jsx)(A.Icon,{position:"left",children:(0,l.jsx)(ec.Z,{style:{fontSize:24,color:"#52c41a"}})}),(0,l.jsx)(A.Text,{align:"left",children:(0,l.jsx)("span",{className:ex().title,children:"Escrit\xf3rio Virtual"})}),(0,l.jsx)(A.Text,{align:"left",style:{flexGrow:1},children:(0,l.jsxs)("span",{className:ex().approvedText,children:[(0,l.jsx)(er.default,{spin:!0,style:{marginRight:8}}
1),"Documenta\xe7\xe3o aprovada! Carregando seus servi\xe7os..."]})})]}):"APPROVED"===a?null:"PENDING"===a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(A.CardActive,{onClick:handleCardClick,className:ex().pendingCard,children:[(0,l.jsx)(A.Icon,{position:"left",children:(0,l.jsx)(R(),{width:24,height:24,src:"/icons/ev-map.svg",alt:"Escrit\xf3rio Virtual"})}),(0,l.jsx)(A.Text,{align:"left",children:(0,l.jsx)("span",{className:ex().title,children:"Escrit\xf3rio Virtual"})}),(0,l.jsx)(A.Text,{align:"left",style:{flexGrow:1},children:(0,l.jsxs)("span",{className:ex().pendingText,children:[(0,l.jsx)(er.default,{spin:!0,style:{marginRight:8}}),"Estamos criando sua documenta\xe7\xe3o..."]})})]}),(0,l.jsx)(ea.default,{open:d,onCancel:handleCloseModal,footer:null,centered:!0,className:ex().pendingModal,children:(0,l.jsxs)("div",{className:ex().modalContent,children:[(0,l.jsx)(el.default,{indicator:(0,l.jsx)(er.default,{style:{fontSize:48},spin:!0})}),(0,l.jsx)(em,{level:3,style:{marginTop:24},children:"Estamos gerando sua documenta\xe7\xe3o"}),(0,l.jsx)(eh,{children:"Aguarde enquanto preparamos tudo para voc\xea. Isso pode levar alguns minutos."}),(0,l.jsx)(ep,{type:"secondary",children:"Voc\xea pode fechar esta janela. Avisaremos quando estiver pronto!"})]})})]}):"REFUSED"===a||"WARNING"===a||"TIMEOUT"===a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(A.CardActive,{onClick:handleCardClick,className:ex().errorCard,children:[(0,l.jsx)(A.Icon,{position:"left",children:(0,l.jsx)(eo.Z,{style:{fontSize:24,color:"#ff4d4f"}})}),(0,l.jsx)(A.Text,{align:"left",children:(0,l.jsx)("span",{className:ex().title,children:"Escrit\xf3rio Virtual"})}),(0,l.jsx)(A.Text,{align:"left",style:{flexGrow:1},children:(0,l.jsx)("span",{className:ex().errorText,children:"N\xe3o foi poss\xedvel gerar sua documenta\xe7\xe3o"})})]}),(0,l.jsx)(ea.default,{open:d,onCancel:handleCloseModal,footer:null,centered:!0,className:ex().errorModal,children:(0,l.jsxs)("div",{className:ex().modalContent,children:[(0,l.jsx)(eo.Z,{style:{fontSize:48,color:"#ff4d4f"}}),(0,l.jsx)(em,{level:3,style:{marginTop:24},children:"Valida\xe7\xe3o em andamento"}),(0,l.jsx)(eh,{children:"Seus dados est\xe3o passando por uma valida\xe7\xe3o adicional, isso pode levar alguns minutos."}),(0,l.jsxs)(eh,{children:["Para mais esclarecimentos, entre em contato com nosso time atrav\xe9s do e-mail:"," ",(0,l.jsx)("a",{href:"mailto:[email protected]",style:{fontWeight:600},children:"[email protected]"})]})]})})]}):null};var eg=n(92211),ef=n(74048),ev=n(10149),e_=n(29941),ej=n(89071),ey=n(25318),eC=n.n(ey);let ServiceSection=e=>{let{loading:t,servicesData:n,hasAnyOrder:s,setUpdates:a}=e,{setContractModalConfig:r}=a,{handleOpenOnboarding:o}=(0,g.Z)("",!1),{defaultCompanyObject:c}=(0,i.useContext)(f.S),[d,x]=(0,i.useState)(null),p=n.some(e=>"escritorio-virtual"===e.category&&e.status_financeiro),m=(0,i.useCallback)(e=>{x(e)},[]);return(0,l.jsx)("section",{id:"serviceCards",children:t?(0,l.jsx)(function(){return(0,l.jsxs)(ef.default,{size:"middle",style:{marginBottom:"16px"},role:"status",children:[(0,l.jsx)(ev.default.Node,{active:!0,style:{width:"192px"},children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(ev.default.Node,{active:!0,style:{width:"192px"},children:(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(ev.default.Node,{active:!0,style:{width:"192px"},children:(0,l.jsx)(l.Fragment,{})})]})},{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(A.Container,{children:[!p&&s&&(0,l.jsx)(PendingAnalysisCard,{onStatusChange:m}),n.map(e=>{var t,n;let s=null==e?void 0:null===(t=e.requestSignature)||void 0===t?void 0:t.status,a=s===e_._.RUNNING,i=null==e?void 0:null===(n=e.requestSignature)||void 0===n?void 0:n.key,{tagCategory:d}=(0,S.v)(a,e.completeContract),x=s!==e_._.RUNNING,p=x&&"pending_signature"!==d||!i||e.slug.includes("escritorio-virtual");return(0,l.jsx)(u.default,{href:p?(0,ej.j)({link:e.link,slug:e.slug,roles:c.access_roles}):void 0,target:"_self",buttonId:"service-card-".concat(e.category),children:e.status_financeiro?(0,l.jsxs)(A.CardActive,{onClick:function(){if(a&&"pending_signature"===d&&i&&(null==e?void 0:e.order)){var t;r({key:i,orderId:null==e?void 0:null===(t=e.order)||void 0===t?void 0:t.id})}"pending_onboarding"===d&&o(e)},children:[(0,l.jsx)(A.Icon,{position:"left",children:(0,l.jsx)(R(),{width:24,height:24,src:(null==e?void 0:e.icon)||"/icons/ev-map.svg",alt:"\xcdcone de mapa fazendo refer\xeancia a um escrit\xf3rio virtual"})}),(0,l.jsx)(A.Text,{align:"left",children:(0,l.jsx)("span",{className:eC().text,children:e.title})}),(0,l.jsx)(A.Text,{align:"left",style:{flexGrow:1},children:(0,l.jsx)("span",{className:eC().contentText,children:e.subt
1itle})}),(0,l.jsx)(eg.Y,{contractedService:e.completeContract}),(0,l.jsx)(A.Text,{align:"left",style:{margin:"12px 0 0 0"},children:(0,l.jsx)(A.Cta,{service:e})})]},e.title):(0,l.jsxs)(A.Card,{children:[(0,l.jsx)(A.Icon,{children:(0,l.jsx)(es.Z,{})}),(0,l.jsx)(A.Text,{children:e.title})]},e.title)},e.id)})]})})})};var eb=n(85518),eS=n(91724),eT=n(16318),ew=n(28508),eN=n(29369);let ek={"assistente-pessoal":"assistente-pessoal-de-saude"},getProductRoute=e=>{let t="/app/produto/".concat(e),n=ek[e];return n?"".concat(t,"/").concat(n):t};function BenefitActivation(e){let{benefit:t,children:n}=e,{defaultCompanyId:s}=(0,i.useContext)(f.S),[a,r]=(0,i.useState)(null),[o,c]=(0,i.useState)(!1),[d,x]=(0,i.useState)(!1),{slug:p,title:m,description:h,form:g,categoryCompany:v,term:_}=(0,eN.Z)({json:t}),setHeroProductOnStorage=()=>{sessionStorage.setItem("heroProduct",JSON.stringify({slug:p,title:m,description:h,category:v}))},j=(0,i.useCallback)(async()=>{if(s){let{data:e}=await en.ApiPrivate.validateHeroProduct({companyId:s,productSlug:t.slug}),n=(0,eN.Z)({json:e});r(n.companyActive)}},[s,t.slug]);(0,i.useEffect)(()=>{o&&(r(!0),eT.default.success({message:"Produto ativado com sucesso"}),setTimeout(()=>{c(!1)},3e3))},[o]);let handleClick=()=>{if(null!==a){if(!0===a){setHeroProductOnStorage();return}x(!0)}};return(0,i.useEffect)(()=>{j()},[j]),(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(l.Fragment,{children:"educacao"===t.slug?(0,l.jsx)(u.default,{title:m,href:"https://empresas.alura.com.br/alura-partners-companyhero",target:"_blank",buttonId:"benefit-card-".concat(t.slug),children:n}):(0,l.jsx)(l.Fragment,{children:a?(0,l.jsx)("div",{onClick:()=>handleClick(),children:(0,l.jsx)(u.default,{title:m,href:getProductRoute(t.slug),target:"_self",buttonId:"benefit-card-".concat(t.slug),children:n})}):(0,l.jsx)("div",{id:"benefit-card-".concat(t.slug,"-active"),onClick:()=>handleClick(),children:n})})}),(0,l.jsx)(ew.O,{open:d,setOpen:x,productTitle:m,productSlug:p,defaultCompanyId:s,setActivationSuccess:c,activationForm:g,termKey:_.key})]})}var eP=n(88553),eA=n.n(eP),eI=n(64984),eF=n(59361);function BenefitCard(e){var t,n;let{benefit:s}=e,{defaultCompanyId:a}=(0,i.useContext)(f.S),{data:r}=(0,eI.E)(a,s.slug);function CardTag(){if(!r)return;let e=r.companyActive?"success":"warning",t=r.companyActive?"Ativo":"Ativa\xe7\xe3o pendente";return(0,l.jsx)(eF.default,{color:e,className:eA().tag,children:t})}return eb.tq?(0,l.jsxs)(O.Card,{link:s.link,children:[(0,l.jsx)(CardTag,{}),(0,l.jsxs)(BenefitActivation,{benefit:s,children:[(0,l.jsx)(O.Thumbnail,{children:(0,l.jsx)(R(),{src:null===(n=s.img)||void 0===n?void 0:n.url,alt:s.title,fill:!0,objectFit:"cover"})}),(0,l.jsxs)(O.Content,{children:[(0,l.jsx)(O.Icon,{position:"left",children:(0,l.jsx)(R(),{src:s.icon_url,alt:s.title,width:24,height:24})}),(0,l.jsx)(O.Title,{className:eA().link,children:s.title}),(0,l.jsx)(O.Icon,{whenHover:!0,style:{flex:2},position:"right",children:(0,l.jsx)(eS.default,{className:eA().arrow})})]})]})]},s.title):(0,l.jsxs)(O.Card,{children:[(0,l.jsx)(CardTag,{}),(0,l.jsxs)(BenefitActivation,{benefit:s,children:[(0,l.jsx)(O.Thumbnail,{children:(0,l.jsx)(R(),{src:null===(t=s.img)||void 0===t?void 0:t.url,alt:s.title,fill:!0,objectFit:"cover"})}),(0,l.jsxs)(O.Content,{children:[(0,l.jsx)(O.Icon,{position:"left",children:(0,l.jsx)(R(),{src:s.icon_url,alt:s.title,width:24,height:24})}),(0,l.jsx)(O.Title,{className:eA().link,children:s.title}),(0,l.jsx)(O.Icon,{whenHover:!0,style:{flex:2},position:"right",children:(0,l.jsx)(eS.default,{className:eA().arrow})})]})]})]},s.title)}var homeV2_BenefitsSection=e=>{let{benefits:t}=e;return(0,l.jsx)(l.Fragment,{children:eb.tq?(0,l.jsx)(O.CarouselMobile,{children:null==t?void 0:t.items.sort((e,t)=>new Date(e.created_at).getTime()-new Date(t.created_at).getTime()).map(e=>(0,l.jsx)(BenefitCard,{benefit:e}))}):(0,l.jsx)(O.Container,{children:(null==t?void 0:t.items)&&(null==t?void 0:t.items.sort((e,t)=>new Date(e.created_at).getTime()-new Date(t.created_at).getTime()).map(e=>(0,l.jsx)(BenefitCard,{benefit:e})))})})},eD=n(22657),eB=n(94055),homeV2_ToolsSection=e=>{let{toolsData:t}=e;return(0,l.jsxs)(l.Fragment,{children:[" ",t.map(e=>(0,l.jsx)(u.default,{href:e.link,title:e.title,target:"_self",style:{flex:1},buttonId:"tool-card-".concat((0,eD.Z)(e.title)),children:(0,l.jsx)(eB.default,{title:e.description,placement:"left",children:(0,l.jsx)("div",{style:{width:"100%"},children:(0,l.jsx)(O.Card,{block:!0,onMouseEnter:()=>{},children:(0,l.jsxs)(O.Content,{children:[(0,l.jsx)(O.Icon,{position:"left",children:(0,l.jsx)(R(),{src:e.icon,alt:e.title,width:24,height:24})}),(0,l.jsx)(O.Title,{style:{color:"#1F2429E0"},children:e.title}),(0,l.jsx)(O.Icon,{whenHover:!0,style:{flex:2},position:"right",children:(0,l.jsx)(eS.default,{style:{color:"#FF0066"}})})]})}
1,e.title)})})}))]})},eE=n(11866),eM=n(62313),eO=n.n(eM);n(5904);var homeV2_MarketingSection=e=>{let{im:t}=e,n=t.map((e,t)=>{let{url:n,alt:s,redirect_link:a}=e;return(0,l.jsx)(p.default,{justify:"center",children:(0,l.jsx)(x.default,{children:(0,l.jsx)(u.default,{href:a,target:"_blank",children:n&&(0,l.jsx)("div",{className:eO().imageContainer,children:(0,l.jsx)(R(),{alt:s,src:n,width:500,height:350,className:eO().marketingImage})})})})},t)});return(0,l.jsx)(p.default,{justify:"center",children:(0,l.jsx)(x.default,{children:(0,l.jsx)(B.default,{autoplay:!0,pauseOnHover:!0,className:eO().customCarousel,effect:"fade",children:n})})})},eH=n(17365),eZ=n.n(eH);function PartnerPlatformBanner(){let[e,t]=(0,i.useState)(!1);return(0,l.jsxs)("section",{className:eZ().banner,"aria-label":"Nova plataforma Contadores",children:[(0,l.jsx)("div",{className:eZ().imageWrapper,"aria-hidden":"true",children:(0,l.jsx)("img",{className:eZ().image,src:"/images/partners-platform-banner.png",alt:""})}),(0,l.jsxs)("div",{className:eZ().content,children:[(0,l.jsx)("h2",{children:"Nova Plataforma liberada para voc\xea!"}),(0,l.jsx)("a",{className:"".concat(eZ().button," ").concat(e?eZ().loading:""),href:"/api/sso/partners","aria-busy":e,onClick:()=>t(!0),children:e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:eZ().spinner,"aria-hidden":"true"}),"Atualizando..."]}):"Atualizar vers\xe3o"})]})]})}let{Title:eR,Text:eq}=m.default,ez=(0,i.memo)(e=>{var t,n;let{user:s,benefits:a,feedback:c,dashboardTourContent:d,toursUser:u,hasPartnerPlatformAccess:m}=e,[_,j]=(0,i.useState)(!1),[C,b]=(0,i.useState)([]),[S,w]=(0,i.useState)([]),[N,k]=(0,i.useState)(!1),{setReload:P,defaultCompanyId:A}=(0,i.useContext)(f.S),[D,B]=(0,i.useState)(!1),[E,M]=(0,i.useState)(!1),[H,Z]=(0,i.useState)(!1),R=(0,o.SS)("home_login_v2").on,q=(0,o.SS)("show_tour").on,{listServicesActive:z,loading:W}=(0,g.Z)("",!1),[V,G]=(0,i.useState)(),L=useUserType(),{isMobile:U}=(0,v.F)({desktopSettings:{query:"(min-width: 960px)"}}),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(null),X=null==s?void 0:s.groups.some(e=>12===e.id||10===e.id),Y=(0,ee.useRouter)();if(!(null==s?void 0:s.companies)||(null==s?void 0:null===(t=s.companies)||void 0===t?void 0:t.length)===0)return(0,l.jsx)(NotCompany,{});function mountObjectServices(e){var t,n,s,a,l,i,r,o,c;return{id:null==e?void 0:e.id,title:null==e?void 0:null===(t=e.smart)||void 0===t?void 0:t.title,order:null==e?void 0:e.order,subtitle:null==e?void 0:null===(n=e.smart)||void 0===n?void 0:n.subtitle,description:null==e?void 0:null===(s=e.smart)||void 0===s?void 0:s.description,plan:null==e?void 0:e.plan,status_financeiro:null==e?void 0:e.status_financeiro,smart_internal_list:null==e?void 0:e.smart_internal_list,smart_internal_detail:null==e?void 0:e.smart_internal_detail,onboarding_details:null==e?void 0:e.onboarding_details,type_sale:null==e?void 0:e.type_sale,company:null==e?void 0:e.company,smart:null==e?void 0:e.smart,slug:null==e?void 0:null===(l=e.smart)||void 0===l?void 0:null===(a=l.category[0])||void 0===a?void 0:a.slug,category:null==e?void 0:null===(r=e.smart)||void 0===r?void 0:null===(i=r.category[0])||void 0===i?void 0:i.slug,icon:function(e){switch(e){case"escritorio-virtual":default:return"/icons/ev-map.svg";case"seguros":return"/icons/pr-shield.svg"}}(null==e?void 0:null===(c=e.smart)||void 0===c?void 0:null===(o=c.category[0])||void 0===o?void 0:o.slug),link:"/app/home/".concat(null==e?void 0:e.id,"?company=").concat(null==e?void 0:e.company.id),requestSignature:e.request_signature,completeContract:e}}let $=(0,i.useCallback)(()=>{let e=[],t=z.filter(e=>{var t,n,s,a;return(null==e?void 0:null===(n=e.smart)||void 0===n?void 0:null===(t=n.category[0])||void 0===t?void 0:t.slug)==="escritorio-virtual"||(null==e?void 0:null===(a=e.smart)||void 0===a?void 0:null===(s=a.category[0])||void 0===s?void 0:s.slug)==="escritorio-virtual-inscricao-estadual"}).map(e=>mountObjectServices(e));if(t.length>0)e=[...e,...t];else{let t=T.filter(e=>"escritorio-virtual"===e.category);e=[...e,...t]}let n=z.filter(e=>{var t,n;return(null==e?void 0:null===(n=e.smart)||void 0===n?void 0:null===(t=n.category[0])||void 0===t?void 0:t.slug)==="seguros"}).map(e=>mountObjectServices(e)),s=z.filter(e=>{var t,n;return(null==e?void 0:null===(n=e.smart)||void 0===n?void 0:null===(t=n.category[0])||void 0===t?void 0:t.slug)==="teleconsulta"}).map(e=>mountObjectServices(e));if(n.length>0)e=[...e,...n];else{let t=T.filter(e=>"seguros"===e.category);e=[...e,...t]}if(s.length>0)e=[...e,...s];else{let t=T.filter(e=>"teleconsulta"===e.category);e=[...e,...t]}t.length>0&&(e=[...e,{id:"contratar-outro-ev",title:"Quero contratar outro endere\xe7o virtual",category:"escritorio-virtual",link:"/app/novo-escritorio-virtual"}]);let a=e.filter(e=>e.status_financeiro).map(e=>"escritorio-virtual"===e.category?{...e,showOrder:0}:"seguros"===e.category?{...e,showOrder:1}:{...e,showOrder:999}),l=a.length>0?a.sort((e,t)=>
1(e.showOrder||0)-(t.showOrder||0)):[],i=e.filter(e=>!e.status_financeiro);b([...l,...i])},[z,mountObjectServices,b]);return((0,i.useEffect)(()=>{let getTools=async()=>{D&&B(!1);try{let e=await en.ApiPrivate.getTools();200===e.status&&w(e.data.items)}catch(e){(0,r.T)(e),w(F)}finally{B(!1)}};getTools(),(0,et.Q)({email:s.email,event:"home_login_v2",userType:L}),c&&(Y.query.beta="s",Y.push(Y));let e=document.cookie.split(";").some(e=>e.trim().startsWith("tourHomeAlreadyOpenToday=")),t=document.cookie.split(";").some(e=>e.trim().startsWith("tourHomeCompleted="));(e||t)&&(M(!0),Z(!0))},[]),(0,i.useEffect)(()=>{j(!0),$()},[z]),(0,i.useEffect)(()=>{let checkForPaidOrders=async()=>{if(A)try{var e;let t=await en.ApiPrivate.getOrdersByCompany(A),n=(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.items)||[],s=n.filter(e=>1===e.status);k(s.length>0)}catch(e){k(!1)}};checkForPaidOrders()},[A]),(null==s?void 0:s.companies)&&(null==s?void 0:null===(n=s.companies)||void 0===n?void 0:n.length)!==0)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.default,{area:"homelogin_popup_area"}),(0,l.jsxs)("section",{className:"padding container paddingTop50",style:{width:"auto",overflow:U?"hidden":"auto",padding:U?"24px 16px 0 16px":"50px 24px"},children:[R?(0,l.jsxs)("section",{children:[(0,l.jsxs)(eq,{children:["Ol\xe1 ",s.first_name,",",(0,l.jsx)("br",{}),(0,l.jsx)(eR,{level:3,style:{margin:0,marginBottom:"24px"},children:(0,l.jsx)("strong",{children:function(){let e=new Date().getHours();return e>=18?"Boa noite!":e>=12?"Boa tarde!":"Bom dia!"}()})})]}),(0,l.jsxs)("main",{className:y().mainContainer,children:[(0,l.jsxs)("section",{className:y().leftContent,children:[m?(0,l.jsx)(PartnerPlatformBanner,{}):null,(0,l.jsx)(h.default,{area:"interactive_banner_homelogin"}),(0,l.jsxs)("div",{ref:J,"data-tour":"services",children:[(0,l.jsxs)(I.x8.Container,{children:[(0,l.jsx)(I.x8.Title,{children:I.qt.services.title}),(0,l.jsx)(I.x8.Description,{children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:I.qt.services.subtitle}})})]}),(0,l.jsx)(ServiceSection,{loading:W,servicesData:C,hasAnyOrder:N,setUpdates:{setContractModalConfig:G}})]}),(0,l.jsxs)("div",{ref:K,"data-tour":"benefits",children:[(0,l.jsxs)(I.x8.Container,{children:[(0,l.jsx)(I.x8.Title,{children:I.qt.benefits.title}),(0,l.jsx)(I.x8.Description,{children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:I.qt.benefits.subtitle}})})]}),(0,l.jsx)(homeV2_BenefitsSection,{benefits:a})]})]}),(0,l.jsxs)(p.default,{className:y().rightContent,gutter:{xs:24,sm:24,md:0,lg:0,xl:0,xxl:0},children:[(0,l.jsx)(x.default,{children:(0,l.jsx)(h.default,{area:"home_login_aside"})}),(0,l.jsx)(x.default,{children:(0,l.jsx)(homeV2_MarketingSection,{im:I.d_})}),(0,l.jsxs)(x.default,{ref:Q,"data-tour":"tools",children:[(0,l.jsxs)(I.x8.Container,{children:[(0,l.jsx)(I.x8.Title,{children:I.qt.tools.title}),(0,l.jsx)(I.x8.Description,{children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:I.qt.tools.subtitle}})})]}),(0,l.jsx)(O.Container,{direction:"column",children:(0,l.jsx)(homeV2_ToolsSection,{toolsData:S})})]})]})]}),q?(0,l.jsx)(TourDashboard,{tourAlreadyOpenToday:E,tourCompleted:H,setTourAlreadyOpenToday:M,tourOpen:_,setTourOpen:j,targetUserGroup:X?"BetaTester":"FreeRegister",tourContent:d,toursUser:u}):null]}):(0,l.jsxs)("section",{children:[(0,l.jsx)(h.default,{area:"home_login_header"}),m?(0,l.jsx)(PartnerPlatformBanner,{}):null,(0,l.jsx)(h.default,{area:"home_login_footer"})]}),(0,l.jsx)(eE.e,{orderId:(null==V?void 0:V.orderId)||"",contractId:(null==V?void 0:V.key)||"",isVisible:!!V,onCloseModal:()=>G(void 0),onSigned:()=>P(!0)})]})]}):(0,l.jsx)(NotCompany,{})});var eW=(0,_.FR)(ez),eV=n(16282),eG=n(97525),eL=n(70302),eU=n(67848);function CustomTag(e){let{children:t}=e;return(0,l.jsx)(eF.default,{color:"magenta",style:{borderWidth:"1px",borderRadius:"4px"},children:t})}function HomeBlog(){var e,t;let{isLoading:n,error:s,data:a}=(0,eU.a)({queryKey:["blogHomeLogin"],queryFn:()=>en.eZ.getBlogPosts("?limit=3&offset=0",{})}),i=null!==(t=null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.items)&&void 0!==t?t:[],{isDesktop:r,isMobile:o}=(0,v.F)();return(s&&eT.default.error({message:"Ocorreu um erro!",description:"Algo deu errado ao carregar informa\xe7\xf5es do blog.",duration:10,key:"blog"}),i.length||n)?(0,l.jsxs)("section",{style:{width:"-webkit-fill-available",minWidth:"1px"},children:[(0,l.jsx)("header",{children:(0,l.jsx)(eV.M,{title:"Not\xedcias pra voc\xea",loading:!1,action:{buttonText:r?"Ver todos os artigos":"Ver mais",href:"/blog"},buttonProps:{style:{padding:0},id:"homelogin_blog_ver_mais"}})}),(0,l.jsx)(p.default,{justify:"start",style:{gap:"24px",margin:"16px 0 0 0",width:o?"100vw":"100%",paddingRight:o?"18%":"0"},wrap:!1,children:n?[1,2,3].map(e=>(0,l.jsx)(x.default,{style:{minWidth:"220px"},children:(0,l.jsxs)(eL.default,{children:[(0,l.jsx)(ev.default.Image,{active:!0}),(0,l.jsx)(ev.default,{active:!0})]})},e)):i.map(e=>(0,l.jsx)(x.default,{"data-testid":"card-blog",children:(0,l.jsx)(eG.Z,{...e,customTag:CustomTag,id:"homelogin_blog_blogpost_".concat(e.id)})},e.id))})]}):(0,l.jsx)(l.Fragment,{})}var eJ=n(4863),eK=n(31929),eQ=n(36671),eX=n(56590),eY=n(19435);let e$={getPendencies:(e,t)=>Y.Z.get("/v3/pendencies/".concat(e),{params:t})};var e0=n(25258);let e1={subscription:{title:"Assinatura pendente",description:"Assine o contrato para concluir a contrata\xe7\xe3o do seguro.",hasModal:!0,modal:{title:"Assinatura pendente",description:"Estamos quase l\xe1! D\xea uma olhada no seu e-mail e assine o contrato que te enviamos para finalizar sua contrata\xe7\xe3o e garantir seu acesso ao seguro.",actionText:"Est\xe1 bem!"}}
1,onboarding:{title:"Contrata\xe7\xe3o pendente",description:"Ops, o seu servi\xe7o ainda n\xe3o est\xe1 ativo! Clique aqui e finalize a contrata\xe7\xe3o preenchendo dados importantes.",hasModal:!1}},{Title:e2,Text:e3}=m.default,e4=(0,i.forwardRef)((e,t)=>{var n,s,a,r,o,c;let{setHasPendencies:d}=e,[u,x]=(0,i.useState)([]),[p,m]=(0,i.useState)(null),[h,g]=(0,i.useState)(!1),[v,_]=(0,i.useState)(""),[j,y]=(0,i.useState)(!0),{setFlowChartExtraParams:C,setModalFlowChartVisible:b}=(0,i.useContext)(eY.I),{defaultCompanyId:S}=(0,i.useContext)(f.S),T=(0,i.useCallback)(async()=>{try{let{data:e}=await e$.getPendencies(S,{}),t=[];Object.keys(e).forEach(n=>{e[n].length&&t.push({key:n,title:e1[n].title,description:e1[n].description})}),x(t),m({onboarding:e.onboarding[0],subscription:e.subscription[0]}),d(!!t.length)}catch(e){x([]),m(null)}finally{y(!1)}},[S,d]);function closeModal(){g(!1),_("")}return(0,i.useEffect)(()=>{T()},[T]),(0,l.jsxs)("section",{ref:t,children:[(0,l.jsx)(e2,{level:4,children:"Pend\xeancias"}),0!==u.length||j?(0,l.jsx)(eL.default,{bodyStyle:{padding:"0px 16px"},children:j?(0,l.jsx)(l.Fragment,{children:[1,2].map(e=>(0,l.jsx)(ev.default,{loading:j,active:!0,style:{paddingBottom:"16px"},paragraph:{rows:2}},e))}):(0,l.jsx)(eK.default,{theme:{components:{List:{descriptionFontSize:14,colorBgBase:"#0000"}}},children:(0,l.jsx)(eX.default,{dataSource:u,renderItem:e=>(0,l.jsx)(eX.default.Item,{style:{cursor:"pointer"},onClick:()=>(function(e){var t;if(_(e),(null===(t=e1[e])||void 0===t?void 0:t.hasModal)&&p.subscription&&g(!0),"onboarding"===e&&p.onboarding){let{order_id:e,smart_id:t,plan_key:n,flowchart_id:s}=p.onboarding;C({type:"onboarding",order_id:e,smart_id:t}),b(s),n&&e0.w.setState({planKey:n})}})(e.key),"data-testid":"pendency-item",id:"homelogin_pendencies_".concat(e.title,"_").concat(e.key),children:(0,l.jsx)(eX.default.Item.Meta,{title:e.title,description:e.description})})})})}):(0,l.jsx)(eL.default,{style:{background:"transparent"},children:(0,l.jsx)(eQ.default,{image:eQ.default.PRESENTED_IMAGE_SIMPLE,description:(0,l.jsx)(e3,{disabled:!0,children:"Parab\xe9ns, voc\xea n\xe3o tem pend\xeancias."}),"data-testid":"empty-pendencies"})}),(0,l.jsx)(ea.default,{title:null===(s=e1[v])||void 0===s?void 0:null===(n=s.modal)||void 0===n?void 0:n.title,open:h,onCancel:closeModal,footer:(0,l.jsx)(U(),{onClick:closeModal,type:"primary",children:null===(r=e1[v])||void 0===r?void 0:null===(a=r.modal)||void 0===a?void 0:a.actionText}),children:(0,l.jsx)(e3,{children:null===(c=e1[v])||void 0===c?void 0:null===(o=c.modal)||void 0===o?void 0:o.description})})]})});var e5=n(54563),e8=n(36257),e7=n.n(e8);let{Title:e9}=m.default;var PillarCard_PillarCard=e=>{let{pillar:t}=e,{isMobile:n}=(0,v.F)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.default,{href:"/app/home/pilares/".concat(t.id),buttonId:"homelogin_pilar_".concat(null==t?void 0:t.title,"_").concat(null==t?void 0:t.id),style:{flex:1,flexBasis:n?"33.333%":"20%"},children:(0,l.jsxs)(d.Card,{className:e7().card,style:n?{background:"#1F24290F",boxShadow:"none",flexBasis:"100%"}:{background:"#1F24290F",boxShadow:"none"},children:[(0,l.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,l.jsx)(e5.Z,{icon:t.icon,className:"iconItem"})}),(0,l.jsx)("div",{children:(0,l.jsx)(e9,{style:{fontSize:"16px",fontWeight:"400"},children:t.title})})]})})})},e6=n(2545),te=n.n(e6);let{Title:tt,Text:tn}=m.default;function PillarsOptionsSection(){let{isDesktop:e}=(0,v.F)(),[t,n]=(0,i.useState)(!0),[s,a]=(0,i.useState)();async function fetchPillarsData(){try{let e=await en.ApiPrivate.getPillars();a(e.data.items)}catch(e){a([])}finally{n(!1)}}return(0,i.useEffect)(()=>{fetchPillarsData()},[]),(0,l.jsxs)(eL.default,{className:te().mainSection,bodyStyle:{padding:"16px"},children:[(0,l.jsxs)("div",{className:e?te().textContentImage:te().textContentImageMobile,children:[e&&(0,l.jsx)(R(),{style:{borderRadius:"8px",objectFit:"cover"},alt:"Mulher sorrindo usando notebook",src:"/images/pilares_image.png",width:88,height:126,priority:!0}),(0,l.jsxs)("div",{className:te().descriptionContent,children:[(0,l.jsxs)(tt,{level:5,style:{marginBottom:0},children:["Conhe\xe7a os 4 pilares fundamentais para o profissional por conta pr\xf3pria."," "]}),(0,l.jsx)(tn,{style:{fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"0em",textAlign:"left"},children:"Ser um profissional independente traz mais liberdade e autonomia. Mas existem novas responsabilidades que voc\xea precisa ficar atento para ter seguran\xe7a, estabilidade financeira e emocional."}),(0,l.jsx)(tn,{style:{fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"0em",textAlign:"left"},children:"Por isso, desenvolvemos solu\xe7\xf5es para que voc\xea esteja blindado em 4 \xe1reas fundamentais."})]})]}),(0,l.jsxs)("div",{children:[e&&(0,l.jsx)(tt,{level:5,style:{marginTop:"20px"},children:"Entenda os pilares"}),(0,l.jsx)(p.default,{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:t?(0,l.jsx)(()=>(0,l.jsx)(ef.default,{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[1,2,3,4].map(e=>(0,l.jsx)(ev.default.Node,{active:!0,className:te().skeletonCard,children:(0,l.jsx)(l.Fragment,{})},e))}),{}):null==s?void 0:s.map(e=>(0,l.jsx)(PillarCard_PillarCard,{pillar:e},e.id))})]})]})}var ts=n(74252),ta=n(30978),tl=n(13716),ti=n(43455),tr=n(38382),to=n.n(tr),tc=n(5152),td=n.n(tc);let tu=td()(()=>Promise.all([n.e(79367),n.e(82387)]).then(n.bind(n,58358)).then(e=>e.PageHeader),{loadableGenerated:{webpack:()=>[58358]},ssr:!1}),{Title:tx,Text:tp}=m.default,tm=(0,i.memo)(e=>{var t;let{user:n,hasPartnerPlatformAccess:s}=e,TitleHeader=e=>{let{title:t,url:n,linkText:s}=e;return(0,l.jsx)(tu,{title:t,style:{paddingLeft:0,marginBottom:20},subTitle:n&&(0,l.jsx)(u.default,{href:n,children:s})})},[a,r]=(0,i.useState)(!1),c=(0,i.useRef)(null),d=(0,o.SS)("home_login_v2").on,{listServicesActive:m,loading:f,handleOpenOnboarding:_,ownerId:j}=(0,g.Z)("",!1),y=useUserType(),{isDesktop:C,isMobile:b}=(0,v.F)({desktopSettings:{query:"(min-width: 960px)"}});return(null==n?void 0:n.companies)&&(null==n?void 0:null===(t=n.companies)||void 0===t?void 0:t.length)!==0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.default,{area:"homelogin_popup_area"}),(0,l.jsx)("section",{className:"padding container paddingTop50",style:{width:"auto",overflow:b?"hidden":"auto"},children:d?(0,l.jsxs)("section",{children:[(0,l.jsxs)(tp,{children:["Ol\xe1 ",n.first_name,",",(0,l.jsx)("br",{}),(0,l.jsx)(tx,{level:3,style:{margin:0,marginBottom:"24px"},children:function(){let e=new Date().getHours();return e>=18?"Boa noite!":e>=12?"Boa tarde!":"Bom dia!"}()})]}),(0,l.jsxs)("main",{className:to().mainContainer,children:[!C&&a&&(0,l.jsx)(eJ.default,{message:"Voc\xea tem pend\xeancias",type:"warning",showIcon:!0,action:(0,l.jsx)(ef.default,{children:(0,l.jsx)(U(),{onClick:function(){c.current.scrollIntoView({behavior:"smooth"})},type:"text",size:"middle",style:{color:"#1F2429E0",fontWeight:600},children:"Ver"})})}),(0,l.jsxs)("section",{className:to().leftContent,children:[s?(0,l.jsx)(PartnerPlatformBanner,{}):null,"professional"===y&&(0,l.jsx)(PillarsOptionsSection,{}),(0,l.jsx)(ts.R,{productList:m,loading:f,title:"Meus servi\xe7os",onOpenOnboarding:_,ownerId:j,showAddNewServicesOption:!0,showQuickAccessCard:!0}),C&&(0,l.jsx)(HomeBlog,{})]}),(0,l.jsxs)(p.default,{className:to().rightContent,gutter:{xs:24,sm:24,md:0,lg:0,xl:0,xxl:0},children:[(0,l.jsx)(x.default,{children:(0,l.jsx)(h.default,{area:"home_login_aside"})}),(0,l.jsx)(x.default,{children:(0,l.jsx)(e4,{setHasPendencies:r,ref:c})})]}),!C&&(0,l.jsx)(HomeBlog,{})]})]}):(0,l.jsxs)("section",{children:[(0,l.jsx)(h.default,{area:"home_login_header"}),s?(0,l.jsx)(PartnerPlatformBanner,{}):null,(0,l.jsx)(tx,{level:5,children:"Meus servi\xe7os"}),(0,l.jsx)(ti.Z,{}),(0,l.jsx)(TitleHeader,{title:"Servi\xe7os recomendados",url:"/solucoes",linkText:"Ver todos os servi\xe7os"}),(0,l.jsx)(ta.Z,{}),(0,l.jsx)(p.default,{type:"flex",gutter:46,style:{marginBottom:80},children:(0,l.jsxs)(x.default,{xs:24,md:18,children:[(0,l.jsx)(TitleHeader,{title:"Not\xedcias pra voc\xea",url:"/blog",linkText:"Ver todos os artigos"}),(0,l.jsx)(tl.Z,{})]})}),(0,l.jsx)(h.default,{area:"home_login_footer"})]})})]}):(0,l.jsx)(NotCompany,{})});var th=(0,_.FR)(tm);let tg=(0,i.memo)(e=>{let{user:t,benefitsList:n,dashboardTourContent:s,toursUser:a,hasPartnerPlatformAccess:i}=e,{origin:r,groups:c,date_joined:d}=t,u=(0,o.cC)("enable_home_login_v2");
1if(u)return(0,l.jsx)(eW,{benefits:n,user:t,feedback:!0,dashboardTourContent:s,toursUser:a,hasPartnerPlatformAccess:i});let x=null==c?void 0:c.some(e=>12===e.id||10===e.id),p=new Date(d)>=new Date("2024-04-01");return x||"free_register"===r&&p?(0,l.jsx)(eW,{benefits:n,user:t,feedback:!0,dashboardTourContent:s,toursUser:a,hasPartnerPlatformAccess:i}):(0,l.jsx)(th,{user:t,hasPartnerPlatformAccess:i})});var tf=!0,tv=(0,_.FR)(tg)},89071:function(e,t,n){"use strict";n.d(t,{V:function(){return getRestrictedLinkByRole},j:function(){return getRestrictedRouteBySlug}});let s={"acessar-correspondencias":"/app/correspondencia","acessar-documentos":"/app/documentos"};function getRestrictedLinkByRole(e){let{link:t,roles:n}=e;if(!n)return t;let a=[];return(Object.keys(s).forEach(e=>{n.includes(e)||a.push(s[e])}),a.includes(t))?"modal|model|modal-baixar-app":t}function getRestrictedRouteBySlug(e){let{slug:t,link:n,roles:s,contract:a}=e;return["escritorio-virtual","escritorio-virtual-inscricao-estadual"].includes(t)&&!s.includes("acessar-contrato")?a?"not-allowed":"modal|model|modal-baixar-app":a?"allowed":n}},22657:function(e,t){"use strict";t.Z=e=>{if(e)return e.toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"_").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}},36457:function(e){e.exports={stepsDotsWrapper:"styles_stepsDotsWrapper__SJ6iV",stepsDots:"styles_stepsDots__G9ix4",active:"styles_active__HmI6Y",tourFooter:"styles_tourFooter__FyL4M",textButton:"styles_textButton___M8my"}},91574:function(e){e.exports={body:"styles_body__vBsU3",cover:"styles_cover__FQ9c_",stepDotsActive:"styles_stepDotsActive__mKZrB",stepDots:"styles_stepDots__ZGIAz",closeIcon:"styles_closeIcon__KJnyl"}},12782:function(e){e.exports={title:"styles_title__KPQ1M",description:"styles_description__Cd3SL"}},43054:function(e){e.exports={container:"styles_container__yXQ_v",card:"styles_card__HjXDP",icon:"styles_icon__Ibcqf",text:"styles_text__UpjoE",cardActive:"styles_cardActive__q1vO9",center:"styles_center__zSCuD",left:"styles_left__0VkSi",right:"styles_right__bcBk3",cta:"styles_cta__GJ1O2"}},12892:function(e){e.exports={pendingCard:"styles_pendingCard__Najyw",approvedCard:"styles_approvedCard__Gb2q8",errorCard:"styles_errorCard__ogLeJ",title:"styles_title__sVpJd",pendingText:"styles_pendingText__OVQTT",approvedText:"styles_approvedText__DnMMo",errorText:"styles_errorText__wziYz",pendingModal:"styles_pendingModal__oFbeD",errorModal:"styles_errorModal__x_SZw",modalContent:"styles_modalContent__CePxI"}},2545:function(e){e.exports={mainSection:"styles_mainSection__qzzKc",textContentImage:"styles_textContentImage__C19D8",descriptionContent:"styles_descriptionContent__1i4md",textContentImageMobile:"styles_textContentImageMobile__XcidJ",skeletonCard:"styles_skeletonCard__fgp9n"}},94293:function(e){e.exports={container:"styles_container__htMb5",card:"styles_card__JXsMA",iconWithHover:"styles_iconWithHover__wi0oY",thumbnail:"styles_thumbnail__FvOFO",content:"styles_content__pQ22z",icon:"styles_icon__f8fuX",right:"styles_right__13x6T",left:"styles_left__ey8Ep",carouselMobile:"styles_carouselMobile__a6bP7"}},36257:function(e){e.exports={card:"styles_card__monBI"}},17365:function(e){e.exports={banner:"styles_banner__WiDgD",imageWrapper:"styles_imageWrapper__6GOlW",image:"styles_image__jl2oC",content:"styles_content__VcSRZ",button:"styles_button__HbKAZ",loading:"styles_loading__LXTHd",spinner:"styles_spinner__3Zfb0",spin:"styles_spin__oXDhW"}},38382:function(e){e.exports={mainContainer:"styles_mainContainer__9ovyX",leftContent:"styles_leftContent__DZ8_Y",rightContent:"styles_rightContent__b2eIU"}},88553:function(e){e.exports={link:"styles_link__ZheDI",arrow:"styles_arrow__6JHta",tag:"styles_tag__rb7U7"}},62313:function(e){e.exports={customCarousel:"styles_customCarousel__dGCj9",imageContainer:"styles_imageContainer__0sXcn",marketingImage:"styles_marketingImage__z_KZY"}},25318:function(e){e.exports={text:"styles_text__J7WwD",contentText:"styles_contentText__WKJWi"}},57396:function(e){e.exports={mainContainer:"styles_mainContainer__Blwga",leftContent:"styles_leftContent___Upd
1o",rightContent:"styles_rightContent__8SZIf"}}},function(e){e.O(0,[94976,97948,95445,23636,25675,69843,97538,73818,1852,56590,19317,60713,58841,67848,67514,54477,62793,72157,57326,96120,74761,49774,92888,40179],function(){return e(e.s=79926)}),_N_E=e.O()}]);

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.