PageSourceSearch

https://www.ciaathletica.com.br/_next/static/chunks/298-fb88d41100b8fee0.js

js ciaathletica.com.br collected 2026-09-24 11:11:48 UTC 150,958 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{93298:function(e,i,n){n.d(i,{default:function(){return eZ}});var t=n(57437),o=n(2265),a=n(99376),l=n(16783),r=n(65947),d=n(92840),s=n(91336),c=n(75463),p=n(61430),x=function(e){var i,n,l,r,d,p;let{setClose:x,close:w}=e,{setOpenMenu:j,units:y,selectedUnit:k,setSelectedUnit:N,hashUnits:C,setHashUnits:z}=(0,o.useContext)(s.k),_=(0,a.useRouter)(),E=(0,a.usePathname)(),S=(0,a.useSearchParams)(),{unitService:P}=(0,o.useContext)(c.Hk),I=null==y?void 0:y.find(e=>e.cod_unid===k),F=S.get("p"),[$,M]=(0,o.useState)(!0),[U,L]=(0,o.useState)(0),[A,D]=(0,o.useState)(void 0),[Z,O]=(0,o.useState)(""),[T,R]=(0,o.useState)(!1),[W,q]=(0,o.useState)(null),[B,X]=(0,o.useState)(null),[V,H]=(0,o.useState)(void 0),[G,K]=(0,o.useState)(!1),[Q,Y]=(0,o.useState)(null),[J,ee]=(0,o.useState)({type:"",text:""}),[ei,en]=(0,o.useState)(!1),[et,eo]=(0,o.useState)(null),ea=(0,o.useRef)(null),[el,er]=(0,o.useState)(!1),[ed,es]=(0,o.useState)(!1),ec=(0,o.useRef)(null),ep=(0,o.useRef)(null),[ex,eu]=(0,o.useState)(!1),[eh,em]=(0,o.useState)(void 0),[eg,ef]=(0,o.useState)(!1),[ev,eb]=(0,o.useState)(0),ew=(0,o.useRef)(null),[ej,ey]=(0,o.useState)(!1),ek=(0,o.useRef)(!1);(0,o.useEffect)(()=>{ey(980>=window.innerWidth)},[]),(0,o.useEffect)(()=>{if(ej&&ew.current){let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&eb(parseInt(e.target.getAttribute("data-index")||"0",10))})},{root:ew.current,rootMargin:"0px",threshold:.7}),i=ew.current.querySelectorAll(".content-op");return i.forEach(i=>e.observe(i)),()=>{i.forEach(i=>e.unobserve(i))}}},[B,ej]);let eN=e=>{if(ew.current){let i=ew.current.querySelectorAll(".content-op");i[e]&&(i[e].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),eb(e))}};(0,o.useEffect)(()=>{2===U&&er(["nome","sexo","email","telefone","datanasc","cep","uf","cidade","bairro","endereco","numero"].every(e=>(null==et?void 0:et[e])&&""!==String(null==et?void 0:et[e]).trim()))},[et,U]),(0,o.useEffect)(()=>{(ea.current&&1===U||ea.current&&ej)&&ea.current.scrollTo({top:0,behavior:"smooth"})},[U,ei]),(0,o.useEffect)(()=>{3!==U&&en(!1)},[U]),(0,o.useEffect)(()=>{if(null==A?void 0:A.dataini_min){let[e,i,n]=A.dataini_min.split("/");Y(new Date(parseInt(n),parseInt(i)-1,parseInt(e)))}},[A]);let eC=async()=>{try{eh&&em(void 0),ef(!0);let e={hash:(null==V?void 0:V.novo_hash)||(null==V?void 0:V.hash)||F,pess_email:null==V?void 0:V.email,pess_tel:null==V?void 0:V.telefone.replace(/\D/g,"")},i=await P.executeUpdateStudent(e);(null==i?void 0:i.code)===200?en(!0):em(null==i?void 0:i.message)}catch(e){em("Erro ao atualizar dados do aluno")}finally{ef(!1)}},ez=async()=>{if(!Q)return;let e=Q.toLocaleDateString("pt-BR"),i={hash:(null==V?void 0:V.novo_hash)!==null?null==V?void 0:V.novo_hash:(null==V?void 0:V.hash)?null==V?void 0:V.hash:F,plan_id:null==A?void 0:A.id,plan_ftu:(null==A?void 0:A.ftu)||"N",plan_dataini:e};try{eh&&em(void 0),ef(!0);let e=await P.executeSale(i);(null==e?void 0:e.code)===200?window.location.href=e.message:em(null==e?void 0:e.message)}catch(e){em("Erro ao processar a venda")}finally{ef(!1)}},e_=async()=>{if(function(e){let i=String(e).replace(/[^\d]/g,"");if(11!==i.length||/^(\d)\1{10}$/.test(i))return!1;let n=0,t;for(let e=1;e<=9;
1e++)n+=parseInt(i.substring(e-1,e))*(11-e);if((10==(t=10*n%11)||11===t)&&(t=0),t!==parseInt(i.substring(9,10)))return!1;n=0;for(let e=1;e<=10;e++)n+=parseInt(i.substring(e-1,e))*(12-e);return(10==(t=10*n%11)||11===t)&&(t=0),t===parseInt(i.substring(10,11))}(Z)){M(!0);try{var e,i,n,t;eh&&em(void 0),ef(!0);let o=await P.executeIdentification({unid_id:k,pess_cpf:null==Z?void 0:Z.replace(/\D/g,""),plan_id:null==A?void 0:A.id,hash:(null==V?void 0:V.novo_hash)!==null?null==V?void 0:V.novo_hash:(null==V?void 0:V.hash)?null==V?void 0:V.hash:F});(null==o?void 0:o.code)===200&&(H(null==o?void 0:null===(e=o.message)||void 0===e?void 0:e.aluno),(null===(i=o.message.aluno)||void 0===i?void 0:i.desconhecido)==="S"?L(2):L(3)),(null==o?void 0:o.code)===204&&X(null==o?void 0:null===(t=o.message)||void 0===t?void 0:null===(n=t.oportunidades)||void 0===n?void 0:n.flatMap(e=>e.planos)),eE(o)}catch(e){em("Erro ao enviar o formul\xe1rio")}finally{ef(!1)}}else M(!1)},eE=e=>{205===e.code?(ee({type:"modal1",text:e.message.info}),K(!0)):204===e.code?(ee({type:"modal2",text:e.message.info}),K(!0)):401===e.code?(ee({type:"modal3",text:e.message.info}),K(!0)):(null==e?void 0:e.message)&&200!==e.code&&em("string"==typeof e.message?e.message:"Ocorreu um erro inesperado. Por favor, tente novamente.")};(0,o.useEffect)(()=>{A||L(0)},[]),(0,o.useEffect)(()=>{2===U&&eo({nome:"",sexo:"",email:"",telefone:"",datanasc:"",cep:"",uf:"",cidade:"",bairro:"",endereco:"",numero:"",complemento:""})},[U]);let eS=e=>{let{name:i,value:n}=e.target;"telefone"===i?eo(e=>({...e,[i]:function(e){if(!e)return"";let i=e.replace(/\D/g,"").slice(0,11);return i.length>10?i.replace(/(\d{2})(\d{5})(\d{4})/,"($1) $2-$3"):i.length>6?i.replace(/(\d{2})(\d{4})(\d{0,4})/,"($1) $2-$3"):i.length>2?i.replace(/(\d{2})(\d*)/,"($1) $2"):"(".concat(i)}(n)})):"datanasc"===i?eo(e=>({...e,[i]:function(e){if(!e)return"";let i=e.replace(/\D/g,"").slice(0,8);return i.length>4?i=i.replace(/(\d{2})(\d{2})(\d{1,4})/,"$1/$2/$3"):i.length>2&&(i=i.replace(/(\d{2})(\d{1,2})/,"$1/$2")),i}(n)})):eo(e=>({...e,[i]:n}))},eP=async()=>{var e;eh&&em(void 0),es(!0);let i=null==et?void 0:null===(e=et.cep)||void 0===e?void 0:e.replace(/\D/g,"");if((null==i?void 0:i.length)===8)try{eh&&em(void 0),ef(!0);let e=await P.executeCEP({hash:(null==V?void 0:V.novo_hash)!==null?null==V?void 0:V.novo_hash:(null==V?void 0:V.hash)?null==V?void 0:V.hash:F,pess_cep:i});e&&!e.erro?(eo(i=>({...i,endereco:e.endereco||"",bairro:e.bairro||"",cidade:e.cidade||"",uf:e.uf||""})),setTimeout(()=>{var e;null===(e=ec.current)||void 0===e||e.focus()},0)):(em("CEP n\xe3o encontrado"),es(!1))}catch(e){em("Erro ao buscar CEP"),es(!1)}finally{ef(!1)}},eI=async()=>{if(eh&&em(void 0),!el)return;let e={...et,hash:(null==V?void 0:V.novo_hash)!==null?null==V?void 0:V.novo_hash:(null==V?void 0:V.hash)?null==V?void 0:V.hash:F,cpf:Z.replace(/[^\d]/g,""),telefone:et.telefone.replace(/\D/g,""),plan_id:A.id};try{ef(!0);let i=await P.executeForm(e);(null==i?void 0:i.code)===200?(L(3),H(e=>{var n;return{...e,novo_hash:null==i?void 0:null===(n=i.message)||void 0===n?void 0:n.novo_hash}}),en(!0)):(eE(i),L(1))}catch(e){em("Erro ao enviar o formul\xe1rio")}finally{ef(!1)}},eF=e=>"string"==typeof e&&e.includes(" - ")?e.split(" - ")[1].toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)+/g,""):"";(0,o.useEffect)(()=>{var e;if(!(null==I?void 0:I.nomelocal))return;let i=eF(I.nomelocal);if(!i)return;let n=S.get("p"),t=null,o=null==C?void 0:null===(e=C.find(e=>e.hasOwnProperty(k)))||void 0===e?void 0:e[k];if((null==V?void 0:V.novo_hash)?t=V.novo_hash:o?t=o:(null==V?void 0:V.hash)&&(t=V.hash),t&&t!==n){ek.current=!0,_.replace("/".concat(i,"?p=").concat(t));return}!t&&n&&(ek.current=!0,_.replace("/".concat(i)))},[V,C,k,I,S]),(0,o.useEffect)(()=>{(async()=>{if(!k){X(null);return}ef(!0);try{var e;let i=await P.executeOportunities(k,null!=F?F:void 0),n=null==i?void 0:null===(e=i.oportunidades)||void 0===e?void 0:e.flatMap(e=>e.planos);if(q(null==i?void 0:i.configuracoes),X(n),A&&n){let e=n.find(e=>e.id===A.id);D(e)}ek.current?ek.current=!1:H(null==i?void 0:i.aluno),n&&null!==n&&F&&z(e=>{let i=e.findIndex(e=>e.hasOwnProperty(k));if(-1===i)return[...e,{[k]:F}];let n=[...e];return n[i]={[k]:F},n})}finally{ef(!1)}})()},[k,S.toString()]),(0,o.useEffect)(()=>
1{document.documentElement.style.overflow="hidden",window.history.pushState(null,"",window.location.href)},[w]);let e$=()=>{document.documentElement.style.overflow="auto",x(!1),window.history.back()};function eM(){(async()=>{let e=await P.executeWpp(k,F&&null!==B?F:void 0);e.whatsapp_url&&window.open(e.whatsapp_url,"_blank","noopener,noreferrer")})()}(0,o.useEffect)(()=>{let e=e=>{w&&(e$(),e.preventDefault())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[w]);let eU=window.location.origin,eL=null==I?void 0:null===(l=I.nomelocal)||void 0===l?void 0:null===(n=l.split(" - "))||void 0===n?void 0:null===(i=n[1])||void 0===i?void 0:i.replaceAll(" ","-");return(0,t.jsxs)(b,{children:[(0,t.jsxs)("div",{className:"content-container",onClick:e=>{e.currentTarget===e.target&&e$()},children:[(0,t.jsxs)("section",{children:[ej&&(0,t.jsx)("img",{src:"/images/menu.svg",onClick:()=>{e$(),j(!0)},alt:"\xcdcone de Menu",className:"menu"}),(0,t.jsx)("div",{className:"close ".concat(ej?"mobile":"outside"),onClick:e$,children:"Ir para o Site Cia"}),(0,t.jsx)("div",{className:"iframe",ref:ea,children:eg||ej&&null===B?(0,t.jsxs)(f,{children:[(0,t.jsx)("div",{className:"loading-spinner"}),(0,t.jsxs)("p",{children:["Preparando as promo\xe7\xf5es",(0,t.jsx)("br",{}),"da sua unidade da Cia Athletica..."]}),(0,t.jsx)("img",{src:"/images/logo-small.svg",alt:"Cia Athletica",className:"loading-logo"})]}):(0,t.jsxs)(t.Fragment,{children:[(null==W?void 0:null===(r=W.imagens)||void 0===r?void 0:r.mobile)&&(null==W?void 0:null===(d=W.imagens)||void 0===d?void 0:d.desktop)&&(0,t.jsx)("img",{src:ej?W.imagens.mobile:W.imagens.desktop,alt:"BG de Oportunidades",className:"img-header"}),(0,t.jsxs)("div",{className:"content-has",children:[(0,t.jsxs)("div",{className:"bread",children:[(0,t.jsx)("a",{href:eU,target:"_blank",children:"Cia Athletica"}),(0,t.jsx)("span",{children:" > "}),(0,t.jsx)("a",{href:"".concat(eU,"/").concat(eL),children:null==I?void 0:I.nomelocal}),(0,t.jsx)("span",{children:" > "}),(0,t.jsx)("span",{children:"Oportunidade"})]}),(null==B?void 0:B.length)>0&&(0,t.jsxs)("button",{className:"floating-help-button",onClick:eM,children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",children:(0,t.jsx)("path",{d:"M16.2958 0C14.1618 0 12.0487 0.420319 10.0772 1.23696C8.10566 2.0536 6.31427 3.25056 4.80532 4.75951C1.75785 7.80698 0.0458029 11.9402 0.0458029 16.25C0.0315968 20.0023 1.33084 23.6414 3.7183 26.5362L0.468303 29.7862C0.242822 30.0148 0.0900778 30.3049 0.0293448 30.6202C-0.0313881 30.9354 0.00261121 31.2616 0.127053 31.5575C0.262022 31.8499 0.480822 32.0956 0.755679 32.2634C1.03054 32.4312 1.34905 32.5135 1.6708 32.5H16.2958C20.6056 32.5 24.7388 30.788 27.7863 27.7405C30.8338 24.693 32.5458 20.5598 32.5458 16.25C32.5458 11.9402 30.8338 7.80698 27.7863 4.75951C24.7388 1.71205 20.6056 0 16.2958 0ZM16.2958 29.25H5.58705L7.0983 27.7388C7.40096 27.4343 7.57084 27.0224 7.57084 26.5931C7.57084 26.1638 7.40096 25.752 7.0983 25.4475C4.9705 23.3221 3.64546 20.5246 3.34893 17.5318C3.05239 14.539 3.80271 11.5359 5.47205 9.03422C7.14138 6.53256 9.62646 4.68708 12.5039 3.81221C15.3813 2.93733 18.4731 3.08718 21.2524 4.23623C24.0317 5.38529 26.3267 7.46245 27.7463 10.1138C29.1658 12.7652 29.6222 15.8268 29.0376 18.7769C28.4531 21.727 26.8637 24.3832 24.5403 26.2929C22.2169 28.2026 19.3033 29.2476 16.2958 29.25Z",fill:"#339878"})}),(0,t.jsx)("span",{children:"Quero ajuda para comprar"})]}),0===U&&(0,t.jsxs)("div",{className:"content-has-type",children:[(0,t.jsxs)("div",{className:"has-type",children:[(0,t.jsxs)("div",{children:[(null==B?void 0:B.length)>0&&(0,t.jsx)("h1",{children:"Escolha o plano da Cia Athletica ideal para voc\xea"}),(null==B?void 0:B.length)>0&&(0,t.jsx)("div",{className:"max",children:"Valores referentes \xe0 m\xe9dia mensal. Verificar faixa et\xe1ria e demais informa\xe7\xf5es na recep\xe7\xe3o da sua unidade CIA, como tamb\xe9m para compra de mais de um plano."})]}),(0,t.jsxs)("div",{className:"select",children:[(0,t.jsx)("label",{children:"Unidade referente \xe0"}),(0,t.jsxs)("select",{name:"units",onChange:e=>{var i,n;let t=Number(e.target.value),o=null==y?void 0:y.find(e=>e.cod_unid===t);if(!o)return;X(null),L(0),eh&&em(void 0);let a=null===(n=o.nomelocal)||void 0===n?void 0:null===(i=n.split(" - ")[1])||void 0===i?void 0:i.replaceAll(" ","-");if(!a){N(t);return}S.has("p")&&_.replace("/".concat(a)),N(t)},value:k,children:[(0,t.jsx)("option",{value:0,children:"Escolher Unidade"}),null==y?void 0:null===(p=y.filter(e=>99!==e.cod_unid))||void 0===p?void 0:p.map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},"option-component-".concat(e.cod_unid)))]})]})]}),(null==B?void 0:B.length)>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"oportunities",ref:ew,children:B.map((e,i)=>{var n,o;return(0,t.jsxs)("div",{className:"content-op","data-index":i,children:[(0,t.jsxs)("div",{className:"header",children:[(0,t.jsx)("h2",{className:"topo",children:null!==(o=null==e?void 0:e.topo)&&void 0!==o?o:""}),(0,t.jsx)("h2",{children:null==e?void 0:e.titulo}
1),(0,t.jsx)("span",{children:null==e?void 0:e.subtitulo}),(null==e?void 0:e.desconto_percentual_texto)&&(0,t.jsxs)("div",{className:"percentual",children:[null==e?void 0:e.desconto_percentual_texto," OFF"]})]}),(0,t.jsxs)("div",{className:"content-op-type",children:[(0,t.jsxs)("div",{className:"one-op",children:[(0,t.jsx)("div",{children:null==e?void 0:e.idade_texto}),(0,t.jsxs)("div",{children:["Valido at\xe9 ",null==e?void 0:e.datafim_texto]})]}),(0,t.jsx)("div",{className:"two-op",children:(0,t.jsxs)("div",{children:[null==e?void 0:e.parcelas_texto," ",(0,t.jsx)("span",{className:"value",children:null==e?void 0:e.valor_texto})]})}),(0,t.jsx)("div",{className:"three-op",children:null==e?void 0:null===(n=e.adicionais)||void 0===n?void 0:n.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("img",{src:"/images/circle.svg",alt:""}),(0,t.jsx)("span",{children:null==e?void 0:e.descricao})]},e.descricao))}),(0,t.jsx)("div",{className:"last-op",children:(0,t.jsx)("button",{onClick:()=>{D(e),L(1)},children:"Selecionar este plano"})})]})]},e.id||i)})}),B.length>1&&ej&&(0,t.jsx)("div",{className:"dots-container",children:B.map((e,i)=>(0,t.jsx)("div",{className:"dot ".concat(ev===i?"active":""),onClick:()=>eN(i)},i))})]})]}),(null==B?void 0:B.length)>0&&1===U&&(0,t.jsxs)("div",{className:"step-one-container",children:[(0,t.jsxs)("div",{className:"stepper",children:[(0,t.jsxs)("div",{className:"step-item active",children:[(0,t.jsx)("div",{className:"step-number",children:"1"}),(0,t.jsxs)("div",{className:"step-label",children:["Identifica\xe7\xe3o",(0,t.jsx)("p",{children:"Informe seu CPF"})]})]}),(0,t.jsxs)("div",{className:"step-item",children:[(0,t.jsx)("div",{className:"step-number",children:"2"}),(0,t.jsxs)("div",{className:"step-label",children:["Cadastro",(0,t.jsx)("p",{children:"Valide seus dados"})]})]}),(0,t.jsxs)("div",{className:"step-item",children:[(0,t.jsx)("div",{className:"step-number",children:"3"}),(0,t.jsxs)("div",{className:"step-label",children:["Finaliza\xe7\xe3o",(0,t.jsx)("p",{children:"Escolha a data e pague"})]})]})]}),(0,t.jsxs)("div",{className:"plan-summary-card ".concat(ex?"":"compact-card"),onClick:()=>eu(e=>!e),children:[(0,t.jsxs)("div",{className:"plan-header",children:[(0,t.jsx)("div",{className:"plan-info",children:(0,t.jsx)("span",{children:ex?"Plano selecionado":"Resumo do pedido"})}),(0,t.jsxs)("span",{className:"plan-price",children:[null==A?void 0:A.valor_texto,(0,t.jsx)("span",{children:"/m\xeas"}),(0,t.jsx)("div",{className:"dropdown-arrow ".concat(ex?"up":"")})]})]}),(0,t.jsx)("h3",{className:"plan-title",children:null==A?void 0:A.titulo}),ex?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"plan-subtitle",children:null==A?void 0:A.subtitulo}),(0,t.jsxs)("div",{className:"plan-installment",children:[null==A?void 0:A.parcelas_texto," ",null==A?void 0:A.valor_texto,"/m\xeas"]}),(0,t.jsxs)("div",{className:"plan-details",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("img",{src:"/images/circle.svg",alt:""}),"Detalhes deste plano"]}),(0,t.jsx)("ul",{children:null==A?void 0:A.adicionais.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("img",{src:"/images/circle.svg",alt:""}),e.descricao]},e.descricao))})]})]}):(0,t.jsx)("p",{className:"plan-subtitle",children:null==A?void 0:A.subtitulo})]}),(0,t.jsxs)("div",{className:"identification-form",children:[(0,t.jsx)("h3",{children:"Identifica\xe7\xe3o"}),(0,t.jsx)("p",{children:"Digite seu CPF para continuarmos com seu plano"}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{htmlFor:"cpf",children:"CPF"}),(0,t.jsx)("input",{id:"cpf",type:"text",placeholder:"000.000.000-00",value:Z,maxLength:14,onChange:e=>{$||(M(!0),R(!1));let i=e.target.value.replace(/\D/g,"");O(i=(i=(i=i.replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{1,2})$/,"$1-$2")),R(14===i.length)}})]}),!$&&(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)("img",{src:"/images/erro.svg",alt:"Erro"}),"O CPF informado \xe9 inv\xe1lido. Tente novamente ou escolha entrar em contato via WhatsApp."]}),eh&&(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)("img",{src:"/images/erro.svg",alt:"Erro"}),eh]}),(0,t.jsxs)("div",{className:"form-buttons",children:[(0,t.jsx)("button",{className:"back-button",onClick:()=>L(0),children:"← Voltar"}),T&&$?(0,t.jsx)("button",{className:"next-button",onClick:e_,disabled:eg,children:eg?(0,t.jsx)("div",{className:"spinner"}):"Avan\xe7ar"}):(0,t.jsx)("span",{className:"next-button-disabled-text",children:"Avan\xe7ar"})]})]})]}),(null==B?void 0:B.length)>0&&2===U&&(0,t.jsxs)("div",{className:"step-two-container",children:[(0,t.jsxs)("div",{className:"stepper",children:[(0,t.jsxs)("div",{className:"step-item completed",children:[(0,t.jsx)("div",{className:"step-number",children:"✔"}),(0,t.jsxs)("div",{className:"step-label",children:["Identifica\xe7\xe3o",(0,t.jsx)("p",{children:"Informe seu CPF"})]})]}),(0,t.jsxs)("div",{className:"step-item active",children:[(0,t.jsx)("div",{className:"step-number",children:"2"}),(0,t.jsxs)("div",{className:"step-label",children:["Cadastro",(0,t.jsx)("p",{children:"Valide seus dados"})]})]}),(0,t.jsxs)("div",{className:"step-item",children:[(0,t.jsx)("div",{className:"step-number",children:"3"}),(0,t.jsxs)("div",{className:"step-label",children:["Finaliza\xe7\xe3o",(0,t.jsx)("p",{children:"Escolha a data e pague"})]})]})]}),(0,t.jsxs)("div",{className:"cadastro-form",children:[(0,t.jsx)("h2",{children:"Cadastro R\xe1pido"}),(0,t.jsxs)("div",{className:"form-section",children:[(0,t.jsx)("h3",{children:"Dados pessoais"}),(0,t.jsx)("hr",{}),(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Nome completo *"}),(0,t.jsx)("input",{type:"text",name:"nome",placeholder:"Digite seu nome",required:!0,value:(null==et?void 0:et.nome)||"",onChange:eS})]}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Sexo *"}),(0,t.jsxs)("select",{name:"sexo",value:(null==et?void 0:et.sexo)||"",onChange:eS,required:!0,children:[(0,t.jsx)("option",{value:"",children:"Selecione"}),(0,t.jsx)("option",{value:"M",children:"Masculino"}),(0,t.jsx)("option",{value:"F",children:"Feminino"})]})]})]}),(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"E-mail *"}),(0,t.jsx)("input",{type:"email",name:"email",placeholder:"[email protected]",value:(null==et?void 0:et.email)||"",required:!0,onChange:eS})]}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Telefone *"}),(0,t.jsx)("input",{type:"tel",name:"telefone",placeholder:"(11) 99999-9999",value:(null==et?void 0:et.telefone)||"",required:!0,onChange:eS,maxLength:15})]})]}),(0,t.jsx)("div",{className:"form-row",children:(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Data de nascimento *"}),(0,t.jsx)("input",{type:"text",name:"datanasc",maxLength:10,required:!0,placeholder:"DD/MM/AAAA",value:(null==et?void 0:et.datanasc)||"",onChange:eS})]})})]}),(0,t.jsxs)("div",{className:"form-section",children:[(0,t.jsx)("h3",{children:"Endere\xe7o"}),(0,t.jsx)("hr",{}),(0,t.jsx)("div",{className:"form-row",children:(0,t.jsxs)("div",{className:"input-group cep-group",children:[(0,t.jsx)("label",{children:"CEP *"}),(0,t.jsxs)("div",{className:"cep-wrapper",children:[(0,t.jsx)("input",{required:!0,type:"text",name:"cep",placeholder:"00000-000",value:(null==et?void 0:et.cep)||"",onChange:eS,maxLength:10}),(0,t.jsx)("button",{type:"button",className:"cep-button",onClick:eP,disabled:!(null==et?void 0:et.cep),children:"\uD83D\uDD0D"})]})]})}),((null==et?void 0:et.cep)===""||!ed)&&(0,t.jsx)("span",{className:"span",children:"Digite o CEP e clique na lupa para carregar os dados do endere\xe7o"}),(null==et?void 0:et.cep)!==""&&ed&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsxs)("div",{className:"input-group small",children:[(0,t.jsx)("label",{children:"UF *"}),(0,t.jsxs)("select",{name:"uf",value:(null==et?void 0:et.uf)||"",onChange:eS,required:!0,children:[(0,t.jsx)("option",{value:"",children:"UF"}),["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"].map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Cidade *"}),(0,t.jsx)("input",{type:"text",required:!0,name:"cidade",placeholder:"Sua cidade",value:(null==et?void 0:et.cidade)||"",onChange:eS})]}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Bairro *"}),(0,t.jsx)("input",{type:"text",required:!0,name:"bairro",placeholder:"Seu bairro",value:(null==et?void 0:et.bairro)||"",onChange:eS})]})]}),(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Endere\xe7o *"}),(0,t.jsx)("input",{type:"text",name:"endereco",required:!0,placeholder:"Sua rua ou avenida",value:(null==et?void 0:et.endereco)||"",onChange:eS})]}),(0,t.jsxs)("div",{className:"input-group small",children:[(0,t.jsx)("label",{children:"N\xfamero *"}),(0,t.jsx)("input",{type:"text",name:"numero",required:!0,placeholder:"123",value:(null==et?void 0:et.numero)||"",onChange:eS,ref:ec})]})]}),(0,t.jsx)("div",{className:"form-row",children:(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Complemento (opcional)"}),(0,t.jsx)("input",{type:"text",name:"complemento",placeholder:"Apto / Bloco",value:(null==et?void 0:et.complemento)||"",onChange:eS})]})})]})]}),eh&&(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)("img",{src:"/images/erro.svg",alt:"Erro"}),eh]}),(0,t.jsxs)("div",{className:"form-buttons",children:[(0,t.jsx)("button",{className:"back-button",onClick:()=>L(1),children:"← Voltar"}),(0,t.jsx)("button",{className:"next-button",disabled:!el||eg,onClick:eI,children:eg?(0,t.jsx)("div",{className:"spinner"}):"Continuar"})]})]})]}),(null==B?void 0:B.length)>0&&3===U&&(0,t.jsxs)("div",{className:"step-three-container",children:[(0,t.jsxs)("div",{className:"stepper",children:[(0,t.jsxs)("div",{className:"step-item completed",children:[(0,t.jsx)("div",{className:"step-number",children:"✔"}),(0,t.jsxs)("div",{className:"step-label",children:["Identifica\xe7\xe3o",(0,t.jsx)("p",{children:"Informe seu CPF"})]})]}),(0,t.jsxs)("div",{className:"step-item completed",children:[(0,t.jsx)("div",{className:"step-number",children:"✔"}),(0,t.jsxs)("div",{className:"step-label",children:["Cadastro",(0,t.jsx)("p",{children:"Valide seus dados"})]})]}),(0,t.jsxs)("div",{className:"step-item active",children:[(0,t.jsx)("div",{className:"step-number",children:"3"}),(0,t.jsxs)("div",{className:"step-label",children:["Finaliza\xe7\xe3o",(0,t.jsx)("p",{children:"Escolha a data e pague"})]})]})]}),(0,t.jsxs)("div",{className:"plan-summary-card ".concat(ex?"":"compact-card"),onClick:()=>eu(e=>!e),children:[(0,t.jsxs)("div",{className:"plan-header",children:[(0,t.jsx)("div",{className:"plan-info",children:(0,t.jsx)("span",{children:ex?"Plano selecionado":"Resumo do pedido"})}),(0,t.jsxs)("span",{className:"plan-price",children:[null==A?void 0:A.valor_texto,(0,t.jsx)("span",{children:"/m\xeas"}),(0,t.jsx)("div",{className:"dropdown-arrow ".concat(ex?"up":"")})]})]}),(0,t.jsx)("h3",{className:"plan-title",children:null==A?void 0:A.titulo}),ex?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"plan-subtitle",children:null==A?void 0:A.subtitulo}),(0,t.jsxs)("div",{className:"plan-installment",children:[null==A?void 0:A.parcelas_texto," ",null==A?void 0:A.valor_texto,"/m\xeas"]}
1),(0,t.jsxs)("div",{className:"plan-details",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("img",{src:"/images/circle.svg",alt:""}),"Detalhes deste plano"]}),(0,t.jsx)("ul",{children:null==A?void 0:A.adicionais.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("img",{src:"/images/circle.svg",alt:""}),e.descricao]},e.descricao))})]})]}):(0,t.jsx)("p",{className:"plan-subtitle",children:(null==V?void 0:V.nome)||(null==A?void 0:A.subtitulo)})]}),ei?(0,t.jsxs)("div",{className:"date-payment-card",children:[(0,t.jsx)("h4",{children:"Data de in\xedcio do plano:"}),(0,t.jsxs)("div",{className:"date-input-wrapper",onClick:()=>{ep.current&&"function"==typeof ep.current.showPicker&&ep.current.showPicker()},children:[(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:(0,t.jsx)("path",{d:"M8 7V3M16 7V3M7 13H17M6 21H18C19.1046 21 20 20.1046 20 19V7C20 5.89543 19.1046 5 18 5H6C4.89543 5 4 5.89543 4 7V19C4 20.1046 4.89543 21 6 21Z",stroke:"#5F6368",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,t.jsx)("input",{type:"date",value:Q?Q.toISOString().split("T")[0]:"",min:(null==A?void 0:A.dataini_min)?A.dataini_min.split("/").reverse().join("-"):"",max:(null==A?void 0:A.dataini_max)?A.dataini_max.split("/").reverse().join("-"):"",onChange:e=>Y(new Date(e.target.value+"T00:00:00")),ref:ep}),(0,t.jsx)("span",{children:Q?Q.toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"}):"Selecione uma data"})]}),(0,t.jsxs)("p",{className:"date-helper-text",children:["Voc\xea pode escolher uma data entre ",null==A?void 0:A.dataini_min," e ",null==A?void 0:A.dataini_max]}),eh&&(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)("img",{src:"/images/erro.svg",alt:"Erro"}),eh]}),(0,t.jsx)("div",{className:"form-buttons",children:(0,t.jsxs)("button",{className:"payment-button",onClick:ez,disabled:!Q||eg,children:[(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,t.jsx)("path",{d:"M21 8V6C21 4.89543 20.1046 4 19 4H5C3.89543 4 3 4.89543 3 6V18C3 19.1046 3.89543 20 5 20H19C20.1046 20 21 19.1046 21 18V16M3 10H21M7 16
1H11",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),eg?(0,t.jsx)("div",{className:"spinner"}):"Pagar com o CiaPay"]})})]}):(0,t.jsxs)("div",{className:"confirmation-form",children:[(0,t.jsx)("h4",{children:"Confirme seus dados:"}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"E-mail"}),(0,t.jsx)("input",{type:"email",value:null==V?void 0:V.email,onChange:e=>H(i=>({...i,email:e.target.value}))})]}),(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)("label",{children:"Telefone"}),(0,t.jsx)("input",{type:"tel",value:null==V?void 0:V.telefone,onChange:e=>H(i=>({...i,telefone:e.target.value})),maxLength:15})]}),eh&&(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)("img",{src:"/images/erro.svg",alt:"Erro"}),eh]}),(0,t.jsxs)("div",{className:"form-buttons",children:[(0,t.jsx)("button",{className:"back-button",onClick:()=>L(1),children:"← Voltar"}),(0,t.jsx)("button",{className:"next-button",onClick:eC,disabled:eg,children:eg?(0,t.jsx)("div",{className:"spinner"}):"Avan\xe7ar"})]})]})]})]}),(!B||(null==B?void 0:B.length)===0)&&(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("img",{src:"/images/oportunidades.svg",alt:"Imagem de Oportunidades"}),(0,t.jsx)("h1",{children:"Nenhum plano dispon\xedvel por aqui"}),(0,t.jsx)("span",{children:"Para conhecer nossos planos, fale com a nossa equipe de vendas"}),(0,t.jsx)("div",{className:"last-op",children:(0,t.jsx)("button",{onClick:eM,children:"Falar com a equipe de vendas"})})]})]})})]}),(0,t.jsx)("section",{})]}),G&&(null==J?void 0:J.type)==="modal1"&&(0,t.jsx)(u,{onClick:()=>K(!1),children:(0,t.jsxs)(h,{onClick:e=>e.stopPropagation(),children:[(0,t.jsx)(m,{onClick:()=>K(!1),children:"\xd7"}),(0,t.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:J.text}}),(0,t.jsx)(g,{children:(0,t.jsx)(v,{$primary:!0,onClick:eM,children:"Falar com a equipe de vendas"})})]})}),G&&(null==J?void 0:J.type)==="modal2"&&(0,t.jsx)(u,{onClick:()=>K(!1),children:(0,t.jsxs)(h,{onClick:e=>e.stopPropagation(),children:[(0,t.jsx)(m,{onClick:()=>K(!1),children:"\xd7"}),(0,t.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:J.text}}),(0,t.jsxs)(g,{children:[(0,t.jsx)(v,{onClick:()=>{K(!1),L(0)},children:"Escolher outro plano"}),(0,t.jsx)(v,{$primary:!0,onClick:eM,children:"Falar com a equipe de vendas"})]})]})}),G&&(null==J?void 0:J.type)==="modal3"&&(0,t.jsx)(u,{onClick:()=>K(!1),children:(0,t.jsxs)(h,{onClick:e=>e.stopPropagation(),children:[(0,t.jsx)(m,{onClick:()=>K(!1),children:"\xd7"}),(0,t.jsx)("h2",{children:"CPF informado n\xe3o \xe9 o esperado"}),(0,t.jsx)("p",{children:"Como voc\xea prefere continuar?"}),(0,t.jsxs)(g,{children:[(0,t.jsx)(v,{onClick:()=>K(!1),children:"Tentar novamente"}),(0,t.jsx)(v,{$primary:!0,onClick:()=>{_.replace(E),O(""),R(!1),eh&&em(void 0),K(!1),H(void 0)},children:"Recome\xe7ar com outro CPF"})]})]})})]})};let u=d.ZP.div.withConfig({componentId:"sc-1c52a2d9-0"})(["position:fixed;inset:0;background:rgba(0,0,0,0.7);display:flex;justify-content:center;align-items:center;z-index:1000;"]),h=d.ZP.div.withConfig({componentId:"sc-1c52a2d9-1"})(["background:#fff;border-radius:16px;max-width:70%;padding:40px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,0.2);position:relative;display:flex;flex-direction:column;align-items:center;font-family:'Poppins',sans-serif;button{border-radius:20px;}.text,h2{font-size:24px;font-weight:600;margin:30px;color:#202124;line-height:1.3;@media ","{font-size:18px;}}h2{margin-bottom:10px;}p{font-family:'Inter',sans-serif;font-size:17px;color:#5F6368;margin:0 0 32px;line-height:1.5;max-width:95%;}"],p.U.laptop),m=d.ZP.button.withConfig({componentId:"sc-1c52a2d9-2"})(["position:absolute;top:16px;right:16px;background:transparent;border:none;font-size:28px;font-weight:300;color:#888;cursor:pointer;line-height:1;padding:0;&:hover{color:#333;}"]),g=d.ZP.div.withConfig({componentId:"sc-1c52a2d9-3"})(["display:flex;gap:16px;width:100%;margin-top:auto;justify-content:center;@media ","{flex-direction:column;}"],p.U.laptop),f=d.ZP.div.withConfig({componentId:"sc-1c52a2d9-4"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#700B19;padding:20px;box-sizing:border-box;gap:25px;.loading-spinner{width:60px;height:60px;border:5px solid rgba(255,255,255,0.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite;}p{font-family:'Poppins',sans-serif;color:#fff;font-size:1.2rem;font-weight:500;text-align:center;line-height:1.5;}.loading-logo{width:80px;height:auto;position:absolute;bottom:40px;}@keyframes spin{to{transform:rotate(360deg);}}"]),v=d.ZP.button.withConfig({componentId:"sc-1c52a2d9-5"})(["min-width:190px;padding:14px 24px;border-radius:10px;font-size:16px;font-weight:600;font-family:'Inter',sans-serif;cursor:pointer;border:2px solid #4CAF71;transition:all 0.2s ease;background-color:#fff;color:#4CAF71;@media ","{font-size:14px;}&:hover{background-color:#f5fcf8;}&:only-child{min-width:250px;}",""],p.U.laptop,e=>{let{$primary:i}=e;return i&&"background-color: #4CAF71; color: #fff; &:hover { background-color: #45a065; border-color: #45a065; }"}),b=d.ZP.article.withConfig({componentId:"sc-1c52a2d9-6"})(["position:fixed;top:0;z-index:9999999;width:100%;height:100%;background:linear-gradient(180deg,#3b2327 0%,#0e0d0d80 90%,#0e0d0d80 100%);.span{font-family:'Inter',sans-serif;font-size:17px;color:#5F6368;margin:0 0 32px;line-height:1.5;max-width:95%;}.iframe{width:170vh;height:85vh;border:2px solid #c3202a;background:#f1f1f1;overflow:auto;@media ","{width:100%;height:100%;border:none;}.img-header{width:100%;}h1{font-family:Poppins;font-weight:800;font-size:24px;text-align:center;margin:7px 0 15px 0;}span{font-family:Inter;font-weight:400;font-size:13px;text-align:center;}.content{color:#10172A;display:flex;flex-direction:column;align-items:center;justify-content:center;img{height:185px;margin-bottom:20px;}.last-op{margin:30px 0;button{padding:10px 20px;border-radius:16px;border:none;background-color:#4CAF71;color:white;font-family:Inter;cursor:pointer;}}}.content-has-type{display:flex;flex-direction:column;width:80%;.has-type{display:flex;gap:7%;justify-content:space-between;.max{max-width:600px;color:#323232;font-weight:300;}}.oportunities{display:flex;gap:20px;margin-top:30px;align-items:center;justify-content:center;flex-wrap:wrap;.content-op{width:340px;max-width:340px;height:500px;flex:1 1 300px;.content-op-type{position:relative;background-color:white;border-bottom-left-radius:16px;border-bottom-right-radius:16px;padding:15px;font-family:Inter;font-weight:400;min-height:300px;.last-op{position:absolute;bottom:15px;left:30px;width:280px;button{padding:15px 20px;border-radius:16px;border:none;background-color:#4CAF71;color:white;font-family:Inter;cursor:pointer;width:100%;font-size:16px;}}
1.one-op{display:flex;gap:5px;justify-content:center;div{border-radius:16px;background:#D9D9D9;padding:5px 10px;font-size:12px;&:first-of-type{background:#696969;color:white;}}}.two-op{display:flex;justify-content:center;margin:30px 0;div{display:flex;flex-direction:column;align-items:center;}.value{font-weight:700;font-size:25px;margin-top:5px;}}.three-op{display:flex;flex-direction:column;margin:0 20px;div{display:flex;align-items:center;margin:5px;img{width:20px;margin-right:5px;}}}}.header{background-color:#700B19;border-top-left-radius:16px;border-top-right-radius:16px;height:140px;display:flex;flex-direction:column;align-items:center;color:#FFFFFF;padding:15px;font-family:Poppins;justify-content:flex-start;.percentual{background:#230000;font-family:Inter;font-weight:700;font-size:15px;padding:8px 10px;border-radius:20px;margin-top:10px;}h2{font-weight:800;font-size:20px;margin:10px 0;text-align:center;}h2.topo{color:#ff7f27;font-size:14px;margin-bottom:2px;font-weight:600;}span{font-weight:300;font-size:12px;}h2,span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;}}}}}.content-has{color:#222222;padding:20px 0;display:flex;flex-direction:column;align-items:center;h1{text-align:left;margin:5px 0;}.bread{margin-bottom:15px;width:80%;a{text-decoration:underline;color:#222222;}a,span{font-family:Inter;font-weight:700;font-size:12px;}}.select{font-family:Inter;font-weight:400;font-size:12px;color:#323232;display:flex;flex-direction:column;label{padding-bottom:5px;}select{border:1px solid #B5B5B5;color:#323232;font-family:Inter;font-weight:400;font-size:12px;border-radius:12px;padding:10px 16px;background:url('/images/cursor.svg') no-repeat 90% #d8d7d7 !important;}}}}.content-container{display:flex;align-items:center;justify-content:center;height:100%;section{display:flex;position:relative;width:auto;@media ","{width:100%;height:100%;&:last-of-type{display:none;}}}.menu{position:absolute;left:20px;top:40px;width:25px;}.close{position:absolute;background:#c3202a;color:white;padding:13px 22px;border-radius:61px;border-style:none;cursor:pointer;font-family:Lexend;font-size:16px;font-weight:400;line-height:24px;&:hover{background:#680006;}&.outside{left:50%;transform:translateX(-50%);top:-23px;@media ","{left:19%;top:-40px;}}&.mobile{top:20px;right:20px;z-index:2;}}}--brand-red:#790A1A;--soft-red-bg:#FDECEA;--dark-text:#202124;--medium-text:#5F6368;--light-text:#A0AEC0;--border-color:#DADCE0;--light-gray-bg:#F1F3F4;--white:#FFFFFF;--brand-green:#00A95A;.step-one-container,.step-two-container{width:100%;display:flex;flex-direction:column;align-items:center;gap:24px;padding:20px 0;font-family:'Poppins';}.stepper{display:flex;justify-content:space-between;width:90%;max-width:700px;margin-bottom:20px;.step-item{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;color:var(--light-text);flex:1;&.active{color:var(--dark-text);.step-number{background-color:var(--brand-red);color:var(--white);border-color:var(--brand-red);}}&.completed .step-number{background-color:var(--brand-green);color:var(--white);}}.step-number{width:45px;height:45px;border-radius:50%;background-color:var(--white);border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;}.step-label{font-size:15px;font-weight:800;display:flex;flex-direction:column;align-items:center;font-family:Poppins;p{font-size:13px;font-weight:400;margin:0;color:var(--medium-text);font-family:Inter;}}}.plan-summary-card{background-color:var(--white);border:1px solid #e8eaed;border-radius:16px;padding:24px;width:90%;max-width:600px;display:flex;flex-direction:column;
1cursor:pointer;transition:all 0.3s ease-in-out;.plan-header{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:8px;}.plan-info{display:flex;align-items:center;gap:8px;color:var(--medium-text);font-size:14px;}.dropdown-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--medium-text);transition:transform 0.3s ease-in-out;&.up{transform:rotate(180deg);}}.plan-price{font-size:24px;font-weight:700;color:var(--brand-red);display:flex;align-items:baseline;gap:4px;span{font-size:14px;font-weight:400;color:var(--medium-text);}}.plan-title{font-size:22px;color:var(--dark-text);margin:0;text-align:left;}.plan-subtitle{font-size:14px;color:var(--medium-text);text-align:left;width:100%;margin:4px 0 16px 0;}.plan-installment{background-color:var(--soft-red-bg);color:var(--brand-red);padding:12px;border-radius:8px;font-size:14px;margin-bottom:20px;}.plan-details{text-align:left;p,li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--medium-text);}p{font-weight:600;color:var(--dark-text);}ul{list-style:none;padding:0;margin:8px 0 0 20px;display:flex;flex-direction:column;gap:8px;}p > img,li > img{width:18px;height:18px;}}}.plan-summary-card,.identification-form,.cadastro-form{background-color:var(--white);border:1px solid #e8eaed;border-radius:16px;padding:24px;width:90%;max-width:600px;font-family:'Poppins',sans-serif;display:flex;flex-direction:column;h2{text-align:center;}h3,h2{font-weight:300;}}.identification-form{align-items:center;h3{margin-bottom:0;}.input-group{align-items:center;input{width:95%;}}}.error-message{display:flex;align-items:center;gap:10px;background-color:var(--soft-red-bg);color:var(--brand-red);font-size:14px;font-weight:500;padding:12px;border-radius:8px;margin:10px 0;img{width:20px;height:20px;}}.input-group{display:flex;flex-direction:column;font-size:14px;font-weight:500;flex:1;width:100%;label{margin-bottom:6px;font-weight:600;font-family:'Poppins';color:var(--dark-text);}input,select{padding:12px 14px;border-radius:8px;border:1px solid var(--border-color);font-size:14px;font-family:'Poppins';background:var(--white);color:var(--dark-text);}input::placeholder{color:var(--light-text);}&.small{max-width:120px;}}.form-section{margin-bottom:28px;font-family:'Poppins';h3{font-size:16px;font-weight:400;margin-bottom:10px;color:var(--dark-text);}hr{border:none;border-top:1px solid var(--border-color);margin:0 0 25px;}}.form-row{display:flex;gap:16px;margin-bottom:16px;}.cep-wrapper{display:flex;gap:6px;input{flex:1;}}.cep-button{padding:0 12px;border:1px solid var(--border-color);border-radius:8px;background:var(--light-gray-bg);cursor:pointer;&:disabled{background-color:#EEEEEE;color:#5F6368;cursor:not-allowed;}}.form-buttons{display:flex;justify-content:space-between;align-items:center;margin-top:24px;gap:10px;width:100%;button,.next-button-disabled-text{padding:12px 24px;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:0.2s;display:flex;align-items:center;flex:1;justify-content:center;}.back-button{border:1px solid var(--border-color);background-color:var(--white);color:var(--dark-text);&:hover{background-color:var(--light-gray-bg);}}.next-button{border:none;background-color:var(--brand-green);color:var(--white);&:hover{opacity:0.9;}&:disabled{background-color:#EEEEEE;color:#5F6368;cursor:not-allowed;}}.next-button-disabled-text{font-size:16px;font-weight:600;color:var(--light-text);cursor:default;}}.step-three-container{width:100%;display:flex;flex-direction:column;align-items:center;gap:24px;padding:20px 0;font-family:'Poppins';}.confirmation-form{background-color:var(--white);border:1px solid #e8eaed;border-radius:16px;padding:24px;width:90%;max-width:600px;display:flex;flex-direction:column;gap:16px;h4{font-weight:600;font-size:18px;text-align:left;margin:0 0 8px 0;}.input-group{width:100%;text-align:left;}input:disabled{background-color:#EEEEEE;color:#5F6368;cursor:not-allowed;}}.date-payment-card{background-color:var(--white);border:1px solid #e8eaed;border-radius:16px;padding:24px;width:90%;max-width:600px;display:flex;flex-direction:column;align-items:center;gap:16px;h4{font-weight:600;font-size:18px;text-align:center;width:100%;margin:0 0 8px 0;}}.date-input-wrapper{border:1px solid var(--border-color);border-radius:12px;padding:12px 16px;width:100%;max-width:350px;display:flex;align-items:center;gap:12px;position:relative;cursor:pointer;@media ","{width:90%;}span{font-size:16px;color:var(--dark-text);}input[type=\"date\"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}}.date-helper-text{font-family:'Inter',sans-serif;font-size:14px;color:var(--medium-text);}.payment-button{background-color:var(--brand-green);color:var(--white);border:none;padding:14px 24px;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:0.2s;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;&:hover{opacity:0.9;}&:disabled{background-color:#EEEEEE;color:#5F6368;cursor:not-allowed;}}.floating-help-button{position:absolute;bottom:25px;right:30px;z-index:100;display:flex;align-items:center;gap:10px;background-color:#fff;border:2px solid #4CAF71;color:#4CAF71;padding:12px 24px;border-radius:50px;font-size:16px;font-weight:600;font-family:'Inter',sans-serif;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.15);transition:all 0.2s ease-in-out;&:hover{transform:translateY(-3px);box-shadow:0 6px 16px rgba(0,0,0,0.2);}svg{width:22px;height:22px;}}.spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,0.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite;@media ","{width:15px;height:15px;}}@keyframes spin{to{transform:rotate(360deg);}}@media ","{.iframe{width:100%;height:100%;}.content-has{padding:15px 5%;width:100%;}.bread,.has-type,.step-one-container,.step-two-container,.step-three-container{width:100%;}.bread{text-align:center;}h1,span{max-width:90%;}.has-type{flex-direction:column;gap:20px;& > div{display:flex;flex-direction:column;align-items:center;margin-bottom:20px;}h1{font-size:22px;text-align:center !important;}.max{text-align:center;}.select{align-items:center;}}.oportunities{justify-content:flex-start !important;flex-wrap:nowrap !important;width:100%;overflow-x:auto;padding:10px 5%;scroll-snap-type:x mandatory;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;.content-op{border:1px solid #e8eaed;border-radius:16px;background-color:#fff;width:90%;min-width:90%;flex-shrink:0;display:flex;flex-direction:column;box-shadow:0 4px 12px rgba(0,0,0,0.05);scroll-snap-align:center;.header{background-color:#700B19;border-top-left-radius:16px;border-top-right-radius:16px;padding:15px 20px 20px 20px;color:#FFFFFF;text-align:center;display:flex;flex-direction:column;align-items:center;h2{font-size:1.5rem;font-weight:800;text-transform:uppercase;margin:0 0 5px 0;white-space:pre-line;}h2.topo{color:#FF3D00;}span{font-size:0.9rem;font-weight:400;}.percentual{background:#fff;color:#700B19;font-weight:700;font-size:0.9rem;padding:6px 12px;border-radius:20px;margin-top:15px;
1display:inline-block;}}.content-op-type{padding:25px 20px;display:flex;flex-direction:column;flex-grow:1;.one-op{display:flex;gap:8px;justify-content:center;margin-bottom:25px;div{font-size:0.75rem;padding:4px 10px;border-radius:12px;color:#5F6368;background:#F1F3F4;border:1px solid #DADCE0;&:first-of-type{background:#5F6368;color:white;border-color:#5F6368;}}}.two-op{text-align:center;margin-bottom:25px;div{color:#5F6368;font-size:0.9rem;}.value{font-size:2.5rem;font-weight:700;color:var(--dark-text);}}.three-op{display:flex;flex-direction:column;gap:12px;text-align:left;margin-bottom:30px;div{display:flex;align-items:center;gap:10px;color:#5F6368;font-size:0.9rem;}img{display:none;}}.last-op{margin-top:auto;width:80% !important;button{background-color:var(--brand-green);color:white;border:none;border-radius:12px;padding:16px;font-size:1rem;font-weight:600;cursor:pointer;}}}}}.plan-summary-card,.identification-form,.cadastro-form,.confirmation-form,.date-payment-card{width:90%;padding:20px 15px !important;}.plan-title{font-size:18px;}.plan-info{width:40%;span{width:100%;}}.stepper{width:100%;.step-label{font-size:12px;font-weight:600;p{display:none;}}.step-number{width:35px;height:35px;}}.form-row{flex-direction:column;gap:16px;margin-bottom:16px;}.input-group.small{max-width:100%;}.form-buttons .next-button-disabled-text{text-align:center;width:100%;padding:12px 24px;background:#EEEEEE;border-radius:10px;}.floating-help-button{position:relative;bottom:auto;right:auto;order:10;margin-top:24px;justify-content:center;width:auto;}.step-one-container .floating-help-button,.step-two-container .floating-help-button,.step-three-container .floating-help-button{display:none;}.dots-container{display:flex;justify-content:center;gap:8px;margin-top:20px;}.dot{width:20px;height:20px;border-radius:50%;background-color:#DADCE0;transition:background-color 0.3s ease;&.active{background-color:var(--brand-red);}}}"],p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop);function w(e){var i,n;let{info:a,setOpen:l,open:r,modal:d}=e,{setOpenMenu:c}=(0,o.useContext)(s.k),p=1200>=window.innerWidth;(0,o.useEffect)(()=>(document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow="auto"}),[]),(0,o.useEffect)(()=>{r&&window.history.pushState(null,"",window.location.href)},[r]),(0,o.useEffect)(()=>{let e=e=>{r&&(l(!1),e.preventDefault())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[r,l]);let x=()=>{document.documentElement.style.overflow="auto",l(!1),window.history.back()};return(0,t.jsx)(j,{$scroll:window.pageYOffset,onClick:e=>{"DIALOG"===e.target.tagName&&x()},children:(0,t.jsxs)("section",{children:[!p&&(0,t.jsx)("img",{src:"/images/cancel.svg",className:"close",onClick:x,alt:"Fechar"}),p&&(0,t.jsxs)("div",{className:"header",children:[(0,t.jsx)("img",{src:"/images/arrow-left.svg",onClick:x,alt:"Fechar"}),(0,t.jsx)("img",{src:"/images/logo-small.svg",alt:"Logo",className:"logo"}),(0,t.jsx)("img",{src:"/images/menu.svg",onClick:()=>{x(),c(!0)},alt:"Menu",className:"menu"})]}),(0,t.jsx)("img",{src:null==d?void 0:d.imagemtopo_desktop,alt:"Imagem do evento",className:"img-background"}),(0,t.jsxs)("div",{className:"content-event ".concat((null==d?void 0:d.dataini_dia)?"has-date":""),children:[(null==a?void 0:null===(i=a.unidade)||void 0===i?void 0:i.nome_local)&&(0,t.jsx)("img",{src:"/images/long-arrow-right.svg",alt:""}),(0,t.jsx)("span",{className:"title",children:null==a?void 0:null===(n=a.unidade)||void 0===n?void 0:n.nome_local}),(null==d?void 0:d.dataini_dia)&&(0,t.jsxs)("div",{className:"card-address",children:[(0,t.jsxs)("div",{className:"date-container ".concat((null==d?void 0:d.datafim_dia)?"two-dates":""," ").concat((null==d?void 0:d.local)?"":"not-found-local"),children:[null==d?void 0:d.dataini_dia,(0,t.jsx)("span",{children:null==d?void 0:d.dataini_mes_extenso}),(0,t.jsx)("span",{children:null==d?void 0:d.dataini_ano})]}),(null==d?void 0:d.datafim_dia)&&(0,t.jsx)("div",{className:"two-dates",children:(0,t.jsx)("span",{children:"-"})}),(null==d?void 0:d.datafim_dia)&&(0,t.jsxs)("div",{className:"date-container ".concat((null==d?void 0:d.datafim_dia)?"two-dates":""," ").concat((null==d?void 0:d.local)?"":"not-found-local"),children:[null==d?void 0:d.datafim_dia,(0,t.jsx)("span",{children:null==d?void 0:d.datafim_mes_extenso}),(0,t.jsx)("span",{children:null==d?void 0:d.datafim_ano})]}),(null==d?void 0:d.local)&&(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:"Local do evento"}),(0,t.jsx)("span",{children:null==d?void 0:d.local})]})]}),(0,t.jsx)("h1",{children:null==d?void 0:d.titulo}),(0,t.jsx)("span",{className:"type",children:null==d?void 0:d.texto}),(0,t.jsxs)("div",{className:"buttons",children:[(null==d?void 0:d.urlcta_1)&&(0,t.jsx)("a",{href:null==d?void 0:d.urlcta_1,target:"_blank",rel:"noopener noreferrer",children:null==d?void 0:d.textocta_1}),(null==d?void 0:d.urlcta_2)&&(0,t.jsx)("a",{href:null==d?void 0:d.urlcta_2,target:"_blank",rel:"noopener noreferrer",children:null==d?void 0:d.textocta_2}),(null==d?void 0:d.urlcta_3)&&(0,t.jsx)("a",{href:null==d?void 0:d.urlcta_3,target:"_blank",rel:"noopener noreferrer",children:null==d?void 0:d.textocta_3})]})]})]})})}let j=d.ZP.dialog.withConfig({componentId:"sc-3959048a-0"})(["width:100vw;height:100vh;background-color:#12121290;top:","px;z-index:100;display:flex;align-items:center;justify-content:center;@media ","{width:auto;padding:0;border:none;section{width:100% !important;height:100%;max-height:100%;border-radius:0 !important;}}.header{display:flex;justify-content:space-between;margin:20px 20px 0 20px;z-index:1;.logo{width:45px;height:45px;}}
1section{box-shadow:0 0 15px 5px rgb(228 224 224 / 39%);width:50%;max-width:850px;min-height:30vh;background:#1e252d;border-radius:30px;font-family:Lexend;font-size:16px;font-weight:300;line-height:24px;position:relative;display:flex;flex-direction:column;overflow-y:auto;color:#ffffff;overflow:hidden;.close{cursor:pointer;position:absolute;right:20px;top:20px;z-index:3;}.img-background{width:100%;height:230px;object-fit:cover;top:0;mask-image:linear-gradient(180deg,rgba(0,0,0,1) 20.27%,rgba(0,0,0,0.005) 103.7%);mask-size:100% 100%;@media ","{object-fit:fill;position:absolute;}}.content-event{padding:10px 30px;display:flex;flex-direction:column;overflow-y:auto;margin-top:-90px;z-index:1;&.has-date{margin-top:-170px;}.type{white-space:pre-line;color:#E4E4E7;}@media ","{margin-top:180px !important;span,a{font-size:12px;}span.type{margin-top:20px;}}h1{font-family:Poppins;font-size:29px;padding:30px 0 50px 0;margin:0;@media ","{text-align:left;padding:30px 0 0 0;font-size:20px;max-width:80%;}}.title{color:#F5FA00;font-family:Montserrat;font-size:12px;font-weight:800;}img{width:30px;}}.card-address{display:flex;margin-top:20px;div{background:#091018ac;display:flex;flex-direction:column;justify-content:center;align-items:left;border-radius:0 11px 11px 0;&:last-child:not(.not-found-local){padding:0 20px;span{font-family:Lexend;font-size:14.64px;font-weight:700;color:#ffffff;text-transform:none;&:last-child{font-size:12.39px;font-weight:300;color:#72808f;}}}&.not-found-local{border-radius:11px !important;}&.two-dates{background:#c3202a;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:0;span{color:#e4e4e7;font-size:20px;}}&.date-container{border-radius:11px 0 0 11px;background:#c3202a;font-size:29px;line-height:37px;text-transform:uppercase;width:70px;height:90px;display:flex;align-items:center;&.two-dates:first-of-type{border-radius:11px 0 0 11px;}&.two-dates:nth-child(3){border-radius:0;}span{font-size:13px;font-weight:300;line-height:20px;color:#e4e4e7;font-family:Lexend;}}}}.buttons{margin:40px 0;@media ","{display:flex;flex-direction:column;margin:20px 0;a{margin:10px 0 !important;}}a{border-radius:61px;font-family:Lexend;font-size:14px;font-weight:400;line-height:150%;padding:13px 24px;color:white;cursor:pointer;background:#c3202a;border:1px solid #c3202a;margin:40px 16px 0 0;&:hover{background:#680006;border-color:#680006;}&:not(:first-child){border:1px solid #fff;background:#1e252d;&:hover{background:#c3202a;border-color:#c3202a;}}}}}"],e=>e.$scroll,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop);var y=n(60770),k=function(e){let{setShow:i,isModal:n}=e,{units:a,selectedUnit:l}=(0,o.useContext)(s.k),[r,d]=(0,o.useState)(""),[c,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{p(980>=window.innerWidth)},[]);let x=99===l||!l,u=(0,o.useMemo)(()=>(null==a?void 0:a.map(e=>{var i,n;return"".concat(null===(i=e.localizacao)||void 0===i?void 0:i.cidade,"/").concat(null===(n=e.localizacao)||void 0===n?void 0:n.uf)}).filter((e,i,n)=>n.indexOf(e)===i&&"undefined/undefined"!==e))||[],[a]),h=(0,o.useMemo)(()=>{let e=(null==a?void 0:a.filter(e=>{var i;return null==e?void 0:null===(i=e.contato)||void 0===i?void 0:i.whatsapp}))||[];return x&&r&&(e=e.filter(e=>{var i,n;return"".concat(null===(i=e.localizacao)||void 0===i?void 0:i.cidade,"/").concat(null===(n=e.localizacao)||void 0===n?void 0:n.uf)===r})),e},[a,x,r]);return(0,t.jsxs)(N,{onMouseLeave:()=>i(!1),$isModal:n||!1,children:[(0,t.jsxs)("div",{className:"header",children:[(0,t.jsx)("img",{src:"/images/logo.svg",alt:"Logo da Companhia Atl\xe9tica"}),(0,t.jsx)("h2",{children:"Ol\xe1,"}),(0,t.jsx)("span",{children:"Selecione uma unidade e teremos todo o prazer em ajud\xe1-lo(a)!"}),x&&(0,t.jsxs)("div",{className:"filter",children:[(0,t.jsx)("label",{htmlFor:"unit-filter",children:"Filtre por Estado/Cidade:"}),(0,t.jsxs)("select",{id:"unit-filter",value:r,onChange:e=>d(e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Todas as localidades"}),u.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}
1),(0,t.jsx)("img",{src:"/images/cancel.svg",alt:"Fechar",className:"close",onClick:()=>i(!1)})]}),(0,t.jsx)("div",{className:"content",children:(0,t.jsx)("div",{className:"units",children:h.map((e,i)=>{var n,o,a,l,r,d,s,p;return(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:"img-unit unit-content",children:(0,t.jsx)("img",{src:c?null==e?void 0:null===(n=e.midias)||void 0===n?void 0:n.img_fachada_whatsapp_mobile:null==e?void 0:null===(o=e.midias)||void 0===o?void 0:o.img_fachada_whatsapp_desktop,alt:""})}),(0,t.jsxs)("div",{className:"unit-content",children:[(0,t.jsx)("div",{className:"color",children:"Unidade"}),(0,t.jsx)("div",{className:"color",children:function(e){let i=e.split(" - ");return i.length>1?i.slice(1).join(" - "):e}(e.nomelocal)}),(0,t.jsxs)("div",{children:[null===(a=e.localizacao)||void 0===a?void 0:a.cidade,"/",null===(l=e.localizacao)||void 0===l?void 0:l.uf]}),(0,t.jsx)("div",{children:"".concat(null==e?void 0:null===(r=e.localizacao)||void 0===r?void 0:r.rua,", ").concat(null==e?void 0:null===(d=e.localizacao)||void 0===d?void 0:d.numero)}),(0,t.jsx)("div",{children:"CEP: ".concat(null==e?void 0:null===(s=e.localizacao)||void 0===s?void 0:s.cep)}),(0,t.jsxs)("a",{href:null==e?void 0:null===(p=e.contato)||void 0===p?void 0:p.whatsapp,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)("img",{src:"/images/wpp-icon.svg",alt:"WhatsApp",className:"logo"}),(0,t.jsx)("span",{className:"text",children:"ENTRE EM CONTATO"})]})]})]},"contact-".concat((null==e?void 0:e.cod_unid)||i))})})})]})};let N=d.ZP.div.withConfig({componentId:"sc-bde89e75-0"})(["position:fixed;bottom:","%;right:","%;background-color:white;color:black;width:350px;border-radius:10px;transition:all 0.3s ease;font-family:Poppins;z-index:6;@media ","{bottom:",";right:",";width:100%;}&& .header{display:block;background:#c3202a;color:#e4e4e7;padding:20px;font-size:16px;font-weight:800;border-top-left-radius:6px;border-top-right-radius:6px;position:relative;h2{margin:0;}img{&:not(.close){width:150px;margin-bottom:15px;}&.close{cursor:pointer;position:absolute;right:5%;top:10%;z-index:3;}}span{font-size:14px;font-weight:400;}.filter{margin-top:15px;display:flex;flex-direction:column;gap:5px;font-size:13px;select{border:none;outline:none;cursor:pointer;width:100%;color:white;font-weight:600;border-radius:12px;padding:12px 14px;background:url(/images/cursor.svg) no-repeat 95% #26323e;}}}.content{background:#e4e4e7;border-radius:10px;z-index:5;max-height:300px;overflow:auto;padding:20px;@media ","{max-height:55vh;}.units{section{display:flex;margin-bottom:20px;width:100%;max-height:230px;.unit-content{font-size:12px;.color{color:#c3202a;}&:first-child{flex:1;border-top-left-radius:6px;border-bottom-left-radius:6px;}&:last-child{flex:2;background-color:white;border-top-right-radius:6px;border-bottom-right-radius:6px;padding:5px;}div{margin:10px;&:first-child{margin:10px 10px 0 10px;font-size:13px;font-weight:700;}&:nth-child(2){margin:0 10px 10px 10px;font-size:15px;font-weight:700;}&:nth-child(3){font-size:13px;font-weight:700;color:#363636;}&:nth-child(4){margin:10px 10px 0 10px;color:#151515;}&:nth-child(5){margin:0 10px 10px 10px;color:#151515;}}}.img-unit{img{width:100%;height:100%;object-fit:cover;object-position:center;border-top-left-radius:10px;border-bottom-left-radius:10px;}}a{display:flex;flex-direction:row;align-items:center;color:white;background:#0dae21;border-radius:999px;cursor:pointer;margin:10px;max-width:170px;flex-shrink:0;min-height:40px;text-decoration:none;img{width:40px;}.text{font-size:12px;white-space:nowrap;}}}}}"],e=>e.$isModal?"27":"15",e=>e.$isModal?"30":"5",p.U.laptop,e=>e.$isModal?"auto":"0%",e=>e.$isModal?"auto":"0%",p.U.laptop);function C(e){let{setOpen:i,open:n}=e,{units:a,selectedUnit:l,setOpenMenu:r}=(0,o.useContext)(s.k),{unitService:d}=(0,o.useContext)(c.Hk),[p,x]=(0,o.useState)(void 0),[u,h]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),[f,v]=(0,o.useState)(!1),[b,w]=(0,o.useState)(0),[j,y]=(0,o.useState)(!1),N={nome:"",email:"",mensagem:"Contato proveniente do SiteCia",telefone:""},[C,z]=(0,o.useState)(N);(0,o.useEffect)(()=>{h(1200>=window.innerWidth)},[]),(0,o.useEffect)(()=>{var e;x(null==a?void 0:null===(e=a.find(e=>(null==e?void 0:e.cod_unid)===l))||void 0===e?void 0:e.contato)},[l,a]),(0,o.useEffect)(()=>{w(null!=l?l:0)},[l]),(0,o.useEffect)(()=>(document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow="auto"}),[]),(0,o.useEffect)(()=>{n&&window.history.pushState(null,"",window.location.href)},[n]),(0,o.useEffect)(()=>{let e=e=>{n&&(i(!1),e.preventDefault())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[n,i]);let _=()=>{document.documentElement.style.overflow="auto",i(!1),window.history.back()},E=async e=>{e.preventDefault();try{await d.executeContact({...C,telefone:C.telefone.replace(/\D/g,""),unidade:{id:b}}),g(!0),z(N),w(0),v(!1)}catch(e){g(!0),v(!0)}};return(0,t.jsxs)(L,{$scroll:window.pageYOffset,onClick:e=>{"DIALOG"===e.target.tagName&&_()},children:[(0,t.jsxs)("form",{onSubmit:E,children:[(0,t.jsx)(U,{$img:"/images/Layer4.svg"}),(0,t.jsxs)("div",{className:"container-layer",children:[!u&&(0,t.jsx)("img",{src:"/images/cancel.
1svg",className:"close",onClick:_,alt:"Fechar"}),u&&(0,t.jsxs)("div",{className:"header",children:[(0,t.jsx)("img",{src:"/images/arrow-left.svg",onClick:_,alt:"Fechar"}),(0,t.jsx)("img",{src:"/images/logo-small.svg",alt:"Logo",className:"logo"}),(0,t.jsx)("img",{src:"/images/menu.svg",onClick:()=>{_(),r(!0)},alt:"Menu",className:"menu"})]}),(0,t.jsx)("h1",{children:"Estamos quase l\xe1! \uD83D\uDCAA"}),(0,t.jsx)("span",{children:"Preencha seus dados rapidinho e nossa equipe entrar\xe1 em contato com voc\xea para te orientar e te ajudar a alcan\xe7ar seus resultados."}),(0,t.jsx)("input",{placeholder:"Nome *",required:!0,value:C.nome,onChange:e=>z({...C,nome:e.target.value})}),(0,t.jsx)("input",{placeholder:"Telefone *",required:!0,value:C.telefone,onChange:e=>z({...C,telefone:e.target.value})}),(0,t.jsx)("input",{placeholder:"Email *",type:"email",required:!0,value:C.email,onChange:e=>z({...C,email:e.target.value})}),(0,t.jsxs)("select",{name:"units",required:!0,value:b,onChange:e=>w(Number(e.target.value)),children:[(0,t.jsx)("option",{value:0,children:"Unidade *"}),null==a?void 0:a.filter(e=>99!==e.cod_unid).map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},e.cod_unid))]}),(0,t.jsxs)("div",{className:"footer-btn",children:[(0,t.jsx)("button",{type:"button",onClick:_,children:"Cancelar"}),(0,t.jsx)("button",{type:"submit",children:"Enviar"})]}),(0,t.jsx)("span",{children:"ou fale com a nossa equipe pelo WhatsApp."}),(0,t.jsx)("a",{href:null==p?void 0:p.whatsapp,target:"_blank",rel:"noopener noreferrer",role:(null==p?void 0:p.whatsapp)?void 0:"button",tabIndex:0,"aria-label":(null==p?void 0:p.whatsapp)?"Fale conosco pelo WhatsApp":"Selecione uma unidade para falar pelo WhatsApp",onClick:()=>y(!0),onKeyDown:e=>{(null==p?void 0:p.whatsapp)||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),y(!0))},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(null==p||!p.whatsapp),children:(0,t.jsx)("img",{src:"/images/wpp.svg",alt:"WhatsApp",className:"wpp-icon"})})]})]}),!(null==p?void 0:p.whatsapp)&&j&&(0,t.jsx)(k,{setShow:y,isModal:!0}),m&&(0,t.jsx)("div",{style:{position:"fixed",inset:0,background:"#12121290",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsxs)("div",{style:{background:"#1e252d",borderRadius:20,padding:40,color:"white",fontFamily:"Poppins"},children:[(0,t.jsx)("p",{children:f?"Ocorreu um erro. Tente novamente.":"Mensagem enviada com sucesso!"}),(0,t.jsx)("button",{onClick:()=>g(!1),style:{background:"#c3202a",color:"white",border:"none",borderRadius:8,padding:"10px 20px",cursor:"pointer"},children:"OK"})]})})]})}function z(e){var i,n,a,l,r,d,c,p,x,u,h;let{slide:m,setSlide:g,open:f,openModal:v}=e,{principal:b,selectedUnit:w}=(0,o.useContext)(s.k),[j,y]=(0,o.useState)(!1),[k,N]=(0,o.useState)(void 0),[C,z]=(0,o.useState)(void 0);(0,o.useEffect)(()=>{y(980>=window.innerWidth)},[]);let _=(null==b?void 0:null===(a=b.componentes_unidades)||void 0===a?void 0:null===(n=a.find(e=>{var i;return(null==e?void 0:null===(i=e.unidade)||void 0===i?void 0:i.id)===w}))||void 0===n?void 0:null===(i=n.componentes)||void 0===i?void 0:i[0])||(null==b?void 0:null===(d=b.componentes_unidades)||void 0===d?void 0:null===(r=d.find(e=>{var i;return(null==e?void 0:null===(i=e.unidade)||void 0===i?void 0:i.id)===99}))||void 0===r?void 0:null===(l=r.componentes)||void 0===l?void 0:l[0]),E=(null==_?void 0:null===(p=_.itens)||void 0===p?void 0:null===(c=p[m])||void 0===c?void 0:c.temposcroll)||(null==_?void 0:_.temposcroll)||4e3;return(0,o.useEffect)(()=>{if(f||v)return;let e=setInterval(()=>{var e,i;g(m===(null!==(i=null==_?void 0:null===(e=_.itens)||void 0===e?void 0:e.length)&&void 0!==i?i:1)-1?0:m+1)},E);return()=>clearInterval(e)},[m,null==_?void 0:null===(x=_.itens)||void 0===x?void 0:x.length,E,f,v]),(0,o.useEffect)(()=>{g(0)},[w]),(0,t.jsxs)(I,{children:[(0,t.jsx)(F,{$currentIndex:m,onTouchStart:j?e=>{let i=e.touches[0].clientX;N(i),z(i)}:void 0,onTouchMove:j?e=>{z(e.touches[0].clientX)}:void 0,onTouchEnd:j?()=>{if(null!=k&&null!=C){var e,i;C-k>50&&m>0?g(m-1):k-C>50&&m<(null!==(i=null==_?void 0:null===(e=_.itens)||void 0===e?void 0:e.length)&&void 0!==i?i:1)-1&&g(m+1)}}:void 0,children:null==_?void 0:null===(u=_.itens)||void 0===u?void 0:u.map((e,i)=>{var n,o;
1let a=j?null==e?void 0:null===(n=e.midia_mobile)||void 0===n?void 0:n.includes("mp4"):null==e?void 0:null===(o=e.midia_desktop)||void 0===o?void 0:o.includes("mp4"),l=j?null==e?void 0:e.midia_mobile:null==e?void 0:e.midia_desktop;return a?(0,t.jsx)(M,{src:l,className:"".concat("S"===e.overlay?"overlay":""," slide"),children:(0,t.jsx)("video",{src:l,autoPlay:!0,muted:!0,loop:!0,playsInline:!0})},"v-".concat(i)):(0,t.jsx)($,{src:l,className:"".concat("S"===e.overlay?"overlay":""," slide")},"i-".concat(i))})}),(0,t.jsx)("span",{className:"indicators",children:null==_?void 0:null===(h=_.itens)||void 0===h?void 0:h.slice(0,4).map((e,i)=>(0,t.jsx)("button",{className:m===i?"indicator":"indicator inactive",onClick:()=>g(i),name:"indicator"},i))})]})}var _=function(e){var i,n,a,l,r,d;let{component:c}=e,{selectedUnit:p,units:u}=(0,o.useContext)(s.k),[h,m]=(0,o.useState)(0),[g,f]=(0,o.useState)(!1),[v,b]=(0,o.useState)(!1),[j,N]=(0,o.useState)(!1),[_,I]=(0,o.useState)(!1),[F,$]=(0,o.useState)(!1),[M,U]=(0,o.useState)(!1);(0,o.useEffect)(()=>{$(980>=window.innerWidth)},[]);let L=null==u?void 0:u.find(e=>e.cod_unid===p),A=null==c?void 0:null===(i=c.itens)||void 0===i?void 0:i[h];return(0,t.jsxs)(S,{children:[(0,t.jsx)(z,{slide:h,setSlide:m,open:g,openModal:v}),c&&A&&(0,t.jsxs)(P,{children:[(0,t.jsx)("div",{className:"img-content",children:(F?null==A?void 0:A.logo_mobile:null==A?void 0:A.logo_desktop)?(0,t.jsx)("img",{src:F?null==A?void 0:A.logo_mobile:null==A?void 0:A.logo_desktop,alt:"Logo"}):""}),(0,t.jsxs)("div",{className:"content-span",children:[(0,t.jsx)("span",{children:null==A?void 0:A.titulo}),(0,t.jsx)("span",{className:"sub",children:null==A?void 0:A.subtitulo})]}),(null==A?void 0:A.textocta_1)&&(0,t.jsx)("button",{onClick:()=>{if((null==A?void 0:A.urlcta_1)==="%OPORTUNIDADES%"){I(!0);return}if(!(null==A?void 0:A.modal)&&(null==A?void 0:A.urlcta_1)==="%SEJAALUNO%"){f(!g);return}if(null==A?void 0:A.modal){b(!g);return}if(null==A?void 0:A.urlhotsite){N(!j);return}(null==A?void 0:A.linkexterno)&&window.open(A.linkexterno,"_blank")},children:null==A?void 0:A.textocta_1})]}),g&&!(null==A?void 0:A.modal)&&(0,t.jsx)(C,{open:g,setOpen:f}),v&&(null==A?void 0:A.modal)&&(0,t.jsx)(w,{info:A,modal:null==A?void 0:A.modal,open:v,setOpen:b}),j&&(null==A?void 0:A.urlhotsite)&&(0,t.jsx)(y.R,{url:null==A?void 0:A.urlhotsite,setClose:N,close:j}),_&&p&&(0,t.jsx)(x,{setClose:I,close:_}),!(null==L?void 0:null===(n=L.contato)||void 0===n?void 0:n.whatsapp)&&M&&(0,t.jsx)(k,{setShow:U}),(0,t.jsxs)(E,{href:null==L?void 0:null===(a=L.contato)||void 0===a?void 0:a.whatsapp,target:"_blank",rel:"noopener noreferrer",role:(null==L?void 0:null===(l=L.contato)||void 0===l?void 0:l.whatsapp)?void 0:"button",tabIndex:0,"aria-label":(null==L?void 0:null===(r=L.contato)||void 0===r?void 0:r.whatsapp)?"Fale conosco pelo WhatsApp":"Selecione uma unidade para falar pelo WhatsApp",onClick:()=>U(!0),onKeyDown:e=>{var i;(null==L?void 0:null===(i=L.contato)||void 0===i?void 0:i.whatsapp)||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),U(!0))},onMouseEnter:()=>U(!0),onMouseLeave:()=>{var e;return U(null==L||null===(e=L.contato)||void 0===e||!e.whatsapp)},children:[(0,t.jsx)("img",{src:"/images/wpp-icon.svg",alt:"WhatsApp",className:"logo"}),(null==L?void 0:null===(d=L.contato)||void 0===d?void 0:d.whatsapp)&&(0,t.jsx)("span",{className:"text",children:"ENTRE EM CONTATO"})]})]})};let E=d.ZP.a.withConfig({componentId:"sc-d7f65d4d-0"})(["position:fixed;bottom:5%;right:5%;background:#0dae21;border-radius:50%;display:flex;align-items:center;cursor:pointer;font-family:Poppins;font-size:15px;font-weight:800;z-index:5;.text{display:none;color:#ffffff;}&:hover{border-radius:30px;.text{display:block;margin-right:10px;}}"]),S=d.ZP.article.withConfig({componentId:"sc-d7f65d4d-1"})(["width:100%;height:100vh;min-height:700px;"]),P=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-2"})(["display:flex;flex-direction:column;align-items:flex-start;top:150px;left:10%;position:absolute;color:white;z-index:2;.img-content{min-height:132px;}.content-span{display:flex;flex-direction:column;min-height:143px;}button{padding:13px 22px;border-radius:61px;border-style:none;background:#c3202a;color:white;margin-top:60px;cursor:pointer;font-family:Lexend;font-size:16px;font-weight:400;line-height:24px;@media ","{font-size:13px;}&:hover{background:#680006;}}img{margin-bottom:40px;width:260px;height:88.51px;}span{font-size:52.85px;font-family:Poppins;font-weight:900;line-height:57.6px;&:nth-child(2){text-transform:uppercase;}&.sub{color:#ff1c2a;text-transform:uppercase;}@media ","{font-size:31px;line-height:35px;word-break:break-word;max-width:40vh;}}"],p.U.laptop,p.U.laptop),I=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-3"})(["position:relative;width:100%;height:100vh;overflow:hidden;min-height:700px;.slide{width:100%;min-height:700px;height:100vh;flex-shrink:0;display:flex;justify-content:center;align-items:center;background-color:#ddd;}.indicators{display:flex;position:absolute;bottom:20%;left:10%;z-index:5;.indicator{width:16px;height:16px;border-radius:100%;box-shadow:0 0 5px #fff;border:1px solid white;margin:0 10px;background-color:white;cursor:pointer;&.inactive{box-shadow:none;background-color:transparent;}}}"]),F=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-4"})(["display:flex;transition:transform 0.5s ease-in-out;transform:",";"],e=>"translateX(-".concat(100*e.$currentIndex,"%)")),$=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-5"})(["position:relative;width:100%;height:100%;background-image:url(",");background-size:cover;background-position:top;background-repeat:no-repeat;"],e=>e.src),M=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-6"})(['position:relative;width:100%;height:100%;video{width:100%;height:100%;object-fit:cover;}&.overlay::before{content:"";position:absolute;inset:0;z-index:6;background:linear-gradient(to left,transparent 0%,rgba(32,20,29,0.8) 90%);pointer-events:none;}']),U=d.ZP.div.withConfig({componentId:"sc-d7f65d4d-7"})(["background-image:url(",");background-size:cover;background-position:right;
1transform:scaleX(-1);flex:1;border-bottom-right-radius:40px;border-top-right-radius:40px;@media ","{display:none;}"],e=>e.$img,p.U.laptop),L=d.ZP.dialog.withConfig({componentId:"sc-d7f65d4d-8"})(["width:100vw;height:100vh;background-color:#12121290;top:","px;z-index:6;display:flex;align-items:center;justify-content:center;@media ","{width:auto;justify-content:initial;padding:0;border:none;}.header{display:flex;justify-content:space-between;margin-bottom:20px;.logo{width:45px;height:45px;}}form{width:70%;height:80%;max-height:70vh;min-height:30vh;background:#0b141e;border-radius:40px;position:relative;display:flex;@media ","{width:100%;height:100%;max-height:100%;border-radius:0;}h1{font-family:Poppins;font-size:29px;font-weight:800;line-height:32px;margin-bottom:20px;color:#ffffff;@media ","{font-size:20px;margin-bottom:10px;}}span{color:#e4e4e7;margin:10px 0;font-family:Lexend;font-size:16px;font-weight:300;line-height:24px;&:last-of-type{text-align:center;}@media ","{font-size:12px;line-height:18px;}}.footer-btn{display:flex;gap:20px;margin:20px 0 10px 0;@media ","{flex-direction:column;}button{cursor:pointer;font-family:Lexend;font-size:16px;font-weight:400;border-radius:61px;padding:13px 24px;border-style:none;flex:1;@media ","{font-size:12px;padding:6px 20px;}&:first-child{border:1px solid #fff;background:#12121290;color:#fff;&:hover{background:#c3202a;border-color:#c3202a;}}&:last-child{background:#c3202a;color:white;&:hover{background:#680006;}}}}.close{cursor:pointer;position:absolute;right:3%;}.wpp-icon{cursor:pointer;margin:20px 0 0 35%;width:150px;@media ","{margin:10px 0 0 0;width:120px;}}.container-layer{flex:1;margin:40px;display:flex;flex-direction:column;overflow-y:auto;@media ","{margin:20px;}input,select{border:1px solid #c4c4c4;border-radius:10px;margin:10px 0;padding:8px 12px;color:#c4c4c4;font-family:Inter;font-size:16px;font-weight:400;background:#121921;@media ","{font-size:12px;}}select{color:#757575;background:url('/images/cursor.svg') no-repeat 90% #121921 !important;}}}"],e=>e.$scroll,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop);var A=function(e){var i,n,a;let{component:l}=e,[r,d]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),[x,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{d(1200>=window.innerWidth),c(window.innerWidth<=Number(p.d.laptop.replace("px","")))};return u(/Android/i.test(navigator.userAgent)),e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let h=()=>(0,t.jsxs)("section",{className:"apps",children:[(0,t.jsx)("a",{href:null==l?void 0:l.urlcta_1,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:null==l?void 0:l.imgbtncta_1,alt:"App Store"})}),(0,t.jsx)("a",{href:null==l?void 0:l.urlcta_2,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:null==l?void 0:l.imgbtncta_2,alt:"Google Play"})})]});return(0,t.jsxs)(D,{$qtd:null==l?void 0:null===(i=l.itens)||void 0===i?void 0:i.length,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("img",{src:"/images/ciago.svg",alt:"Logo da Ciaon",className:"logo"}),(0,t.jsx)("h2",{children:null==l?void 0:l.titulo}
1),(0,t.jsx)("span",{children:null==l?void 0:l.subtitulo}),!s&&h()]}),(0,t.jsx)("div",{className:"videos",children:null==l?void 0:null===(a=l.itens)||void 0===a?void 0:null===(n=a.slice(0,1))||void 0===n?void 0:n.map((e,i)=>(null==e?void 0:e.midia_mobile)||(null==e?void 0:e.midia_desktop)?(0,t.jsxs)("section",{children:[(0,t.jsx)("img",{src:"/images/app-bg.png",alt:"Borda do APP"}),(0,t.jsx)("video",{src:r?null==e?void 0:e.midia_mobile:null==e?void 0:e.midia_desktop,autoPlay:!0,muted:!0,loop:!0,playsInline:!0})]},"app-".concat(i)):null)}),s&&h(),s&&(0,t.jsx)("a",{className:"download-app",href:x?null==l?void 0:l.urlcta_2:null==l?void 0:l.urlcta_1,target:"_blank",rel:"noopener noreferrer",children:"Baixar aplicativo"})]})};let D=d.ZP.article.withConfig({componentId:"sc-2a2e625-0"})(["display:flex;background:#fbfbfb;position:relative;height:400px;padding-top:70px;.download-app{background:#c3202a;border:1px solid #c3202a;margin:20px 0 0 0;border-radius:61px;font-family:Lexend;font-size:14px;font-weight:400;line-height:150%;padding:13px 24px;color:white;cursor:pointer;&:hover{background:#680006;border-color:#680006;}}.videos{display:flex;flex-direction:row;section{width:80%;position:relative;display:flex;align-items:center;justify-content:center;border-radius:30px;overflow:hidden;img{width:110%;position:absolute;}@media ","{width:65%;border-radius:40px;img{width:104%;}}}}@media ","{position:initial;flex-direction:column;display:flex;align-items:center;height:auto;padding:30px 0 50px 0;.apps{margin-top:30px;a:first-child{margin-right:10px;}}}div{display:flex;flex-direction:column;.logo{width:175px;@media ","{width:110px;margin-bottom:20px;}}span{font-family:Poppins;color:#3b3b3b;font-size:14px;font-weight:400;line-height:180%;margin:5px 0 20px 0;max-width:60%;}h2{color:#000;font-size:35px;font-weight:800;line-height:109%;font-family:Poppins;margin:5px 0 20px 0;max-width:60%;}&:first-of-type{position:absolute;left:",";@media ","{left:10%;}@media ","{position:initial;display:flex;align-items:center;}}&:last-of-type{position:absolute;flex-direction:row;top:10%;right:",";@media ","{right:10%;}@media ","{position:initial;display:flex;align-items:center;flex-direction:column;}}section{a{margin-right:10px;cursor:pointer;}}}video{width:96%;@media ","{margin:-4%;}}"],p.U.laptop,p.U.laptop,p.U.laptop,e=>e.$qtd>1?"10%":"20%",p.U.laptopM,p.U.laptop,e=>e.$qtd>1?"10%":"20%",p.U.laptopM,p.U.laptop,p.U.laptopM);var Z=function(e){var i,n,a;let{component:l}=e,[r,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{d(980>=window.innerWidth)},[]);let s=e=>{window.open(e.url,"_blank")};return(0,t.jsxs)(O,{children:[(0,t.jsx)("h3",{children:"Conte\xfados para voc\xea"}),(0,t.jsxs)("div",{className:"content-blog",children:[null==l?void 0:null===(i=l.itens)||void 0===i?void 0:i.slice(0,1).map(e=>(0,t.jsxs)(T,{$img:e.imagem_url,$isfirst:"true",onClick:()=>s(e),children:[(0,t.jsx)("div",{className:"content-img"}),(0,t.jsxs)("div",{className:"content-informations",children:[(0,t.jsx)("h3",{children:e.titulo}),(0,t.jsx)("div",{className:"category",children:e&&Object.keys(null==e?void 0:e.categorias).map(i=>null==e?void 0:e.categorias[i]).slice(0,r?1:3).map(e=>(0,t.jsx)("span",{children:e},e))}),!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.texto}),(0,t.jsx)("div",{className:"informations",children:(0,t.jsx)("a",{className:"more-button",children:"Saiba mais"})})]})]})]},e.titulo)),(0,t.jsx)("div",{className:"second-content",children:null==l?void 0:null===(a=l.itens)||void 0===a?void 0:null===(n=a.slice(1,3))||void 0===n?void 0:n.map(e=>(0,t.jsxs)(T,{$img:e.imagem_url,onClick:()=>s(e),children:[(0,t.jsx)("div",{className:"content-img"}),(0,t.jsxs)("div",{className:"content-informations",children:[(0,t.jsx)("h3",{children:e.titulo}),(0,t.jsx)("div",{className:"category",children:e&&Object.keys(null==e?void 0:e.categorias).map(i=>null==e?void 0:e.categorias[i]).slice(0,r?1:2).map(e=>(0,t.jsx)("span",{children:e},e))})]})]},e.titulo))})]})]})};let O=d.ZP.article.withConfig({componentId:"sc-4b42c438-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin:47px 0;color:#252525;font-family:Poppins;a{color:#000;&.more-button{background:#c3202a;color:white;padding:14px 22px;border-radius:61px;border:none;width:100px;cursor:pointer;text-align:center;&:hover{background:#680006;}}}h3{font-size:40px;font-weight:800;line-height:109%;margin:0 0 50px 0;@media ","{font-size:25px;
1max-width:200px;text-align:center;}}.category{display:flex;margin:10px 0;span{background:#8e4c4c;color:#fff;font-size:12px;font-weight:500;text-transform:uppercase;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px;display:flex;align-items:center;display:flow;&:not(:last-child){margin-right:8px;}@media ","{font-size:10px;}}@media ","{display:none;}}.content-blog{display:flex;.second-content{display:flex;flex-direction:column;justify-content:space-between;margin-left:20px;h3{height:64px;}}@media ","{flex-direction:column;align-items:center;width:90%;.second-content{margin-left:0;h3{height:50px;}}}}"],p.U.laptop,p.U.laptopL,p.U.laptop,p.U.laptop),T=d.ZP.section.withConfig({componentId:"sc-4b42c438-1"})(["display:flex;font-family:Poppins;font-size:14px;font-weight:400;line-height:20px;border:1px solid #e9e9e9;background:#f5f5f5;border-radius:7.5px;padding:24px;max-width:","px;height:","px;color:#000000;cursor:pointer;@media ","{padding:10px;}h3{font-size:","px;font-weight:800;line-height:","px;margin:0;-webkit-line-clamp:3;}h3,span{max-width:","px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;}span{color:#3b3b3b;-webkit-line-clamp:4;}.content-img{width:60%;min-width:120px;max-width:","px;height:","px;border-radius:22px;background-image:url(",");background-size:cover;}.content-informations{display:flex;flex-direction:column;margin-left:20px;justify-content:center;.informations{display:flex;justify-content:flex-end;margin:20px 20px 0 0;}}@media ","{max-width:43vh;min-width:280px;height:120px;margin-bottom:20px;align-items:center;h3{font-size:16px;line-height:17px;height:50px;}h3,span{max-width:150px;-webkit-line-clamp:2;}.content-img{min-width:99px;min-height:96px;width:99px;height:96px;}}"],e=>e.$isfirst?753:423,e=>e.$isfirst?310:120,p.U.laptopL,e=>e.$isfirst?30:20,e=>e.$isfirst?32.7:21.8,e=>e.$isfirst?390:233,e=>e.$isfirst?284:120,e=>e.$isfirst?295:118,e=>e.$img,p.U.laptop);var R=function(e){let{component:i}=e,{selectedUnit:n}=(0,o.useContext)(s.k),[a,l]=(0,o.useState)(!1),[r,d]=(0,o.useState)(!1),[c,p]=(0,o.useState)(!1),[x,u]=(0,o.useState)(0);(0,o.useEffect)(()=>{let e=()=>{u(window.innerWidth),p(window.innerWidth<=980)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let h=(null==i?void 0:i.itens)||[],[m,g]=(0,o.useState)(0),[f,v]=(0,o.useState)(void 0),[b,j]=(0,o.useState)(void 0),[k,N]=(0,o.useState)(void 0),C=c?Math.max(0,h.length-1):Math.max(0,h.length-3);(0,o.useEffect)(()=>{g(0)},[n,c]);let z=()=>g(e=>Math.max(e-1,0)),_=()=>g(e=>Math.min(e+1,C)),E=e=>{v(e),e.modal&&d(!0),e.urlhotsite&&l(!0),e.linkexterno&&window.open(e.linkexterno,"_blank")},S=e=>{if(c){g(e);return}g(e>C?C:e)};return(0,t.jsxs)(q,{$open:r||a,children:[(0,t.jsxs)("div",{className:"h1",children:[(0,t.jsx)("img",{src:"/images/heartTick.svg",alt:"\xcdcone de cora\xe7\xe3o"}),(0,t.jsx)("h2",{children:(null==i?void 0:i.titulo)||"Por que a CIA Athletica?"}),(0,t.jsx)("span",{children:(null==i?void 0:i.texto)||"Descubra os diferenciais que fazem da CIA Athletica a melhor escolha para sua jornada fitness"})]}),(0,t.jsxs)("div",{className:"carousel-wrapper",children:[(0,t.jsx)(W,{className:"left",$visible:m>0}),(0,t.jsx)(W,{className:"right",$visible:!0}),(0,t.jsx)(B,{className:"arrow-left ".concat(0===m?"disabled":""),onClick:z,children:(0,t.jsx)("img",{src:"/images/arrow-left.svg",alt:"Anterior"})}),(0,t.jsx)(X,{onTouchStart:c?e=>{j(e.touches[0].clientX),N(e.touches[0].clientX)}:void 0,onTouchMove:c?e=>{N(e.touches[0].clientX)}:void 0,onTouchEnd:c?()=>{null!=b&&null!=k&&(b-k>50&&_(),k-b>50&&z()),j(void 0),N(void 0)}:void 0,children:(0,t.jsx)(V,{$currentindex:m,$cardWidthMobile:290,$cardWidthDesktop:300,$gap:20,$isMobile:c,children:h.map((e,i)=>(0,t.jsxs)(H,{img:c?e.midia_mobile:e.midia_desktop,$width:c?290:300,onClick:()=>E(e),children:[(0,t.jsx)("div",{className:"image-area"}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{children:e.titulo}),(0,t.jsx)("span",{children:e.texto}),(e.modal||e.urlhotsite||e.linkexterno)&&(0,t.jsxs)("button",{children:["Ver mais ",(0,t.jsx)("img",{src:"/images/arrow-right.svg",alt:"",className:"btn-arrow"})]})]})]}
1,"".concat(e.titulo,"-").concat(i)))})}),(0,t.jsx)(B,{className:"arrow-right ".concat(m>=C?"disabled":""),onClick:_,children:(0,t.jsx)("img",{src:"/images/arrow-right.svg",alt:"Pr\xf3ximo"})})]}),(0,t.jsx)(G,{children:h.map((e,i)=>(0,t.jsx)(K,{$active:i===m,onClick:()=>S(i),className:i>=C&&!c?"disabled":""},i))}),a&&(null==f?void 0:f.urlhotsite)&&(0,t.jsx)(y.R,{url:f.urlhotsite,setClose:l,close:a}),r&&(null==f?void 0:f.modal)&&(0,t.jsx)(w,{info:f,modal:f.modal,open:r,setOpen:d})]})};let W=d.ZP.div.withConfig({componentId:"sc-4e07198-0"})(["position:absolute;top:0;bottom:0;width:15%;max-width:150px;z-index:5;pointer-events:none;transition:opacity 0.3s ease;opacity:",";&.left{left:0;background:linear-gradient(to right,#0d1117 10%,transparent 100%);}&.right{right:0;background:linear-gradient(to left,#0d1117 10%,transparent 100%);}@media (max-width:768px){width:12%;}"],e=>e.$visible?1:0),q=d.ZP.article.withConfig({componentId:"sc-4e07198-1"})(['background:#0d1117;padding:40px 0 60px 0;display:flex;flex-direction:column;align-items:center;overflow:hidden;.h1{margin-bottom:10px;display:flex;flex-direction:column;text-align:center;align-items:center;color:white;padding:0 20px;h2{font-family:Poppins;font-size:35px;font-weight:800;line-height:1.1;margin:0;}span{font-family:"Lexend";font-weight:400;font-size:16px;margin:15px 0 30px 0;color:#ccc;max-width:600px;}img{margin-bottom:12px;width:40px;}}.carousel-wrapper{width:100%;position:relative;display:flex;align-items:center;justify-content:center;}']),B=d.ZP.div.withConfig({componentId:"sc-4e07198-2"})(["position:absolute;top:50%;transform:translateY(-50%);z-index:20;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;&.arrow-left{left:10px;}&.arrow-right{right:10px;}@media ","{width:50px;height:50px;&.arrow-left{left:calc(50% - 600px);}&.arrow-right{right:calc(50% - 600px);}}&:hover{background:#c3202a;border-color:#c3202a;transform:translateY(-50%) scale(1.1);}&.disabled{opacity:0;pointer-events:none;}img{width:18px;height:18px;}"],p.U.laptop),X=d.ZP.div.withConfig({componentId:"sc-4e07198-3"})(["overflow:hidden;width:100%;padding:20px 0;display:flex;justify-content:flex-start;@media (min-width:981px){justify-content:safe center;padding-left:80px;padding-right:80px;}@media ","{max-width:1100px;padding-left:10px;}"],p.U.laptop),V=d.ZP.div.withConfig({componentId:"sc-4e07198-4"})(["display:flex;width:max-content;gap:","px;transform:",";transition:transform 0.5s cubic-bezier(0.25,1,0.5,1);"],e=>e.$gap,e=>e.$isMobile?"translateX(calc(".concat("calc(50vw - ".concat(e.$cardWidthMobile/2,"px)")," - ").concat(e.$currentindex*(e.$cardWidthMobile+e.$gap),"px))"):"translateX(-".concat(e.$currentindex*(e.$cardWidthDesktop+e.$gap),"px)")),H=d.ZP.div.withConfig({componentId:"sc-4e07198-5"})(["width:","px;flex-shrink:0;border-radius:12px;background:#fff;color:#000;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;box-shadow:0 4px 15px rgba(0,0,0,0.3);transition:opacity 0.3s;.image-area{height:180px;width:100%;background-image:url(",");background-size:cover;background-position:center;}section{padding:20px 25px;background:#fff;flex:1;display:flex;flex-direction:column;align-items:flex-start;min-height:220px;position:relative;}section h3{font-size:20px;font-weight:800;color:#c3202a;margin-bottom:12px;font-family:Poppins,sans-serif;}section span{font-size:14px;line-height:1.4;color:#555;font-weight:400;margin-bottom:50px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;}button{position:absolute;bottom:25px;left:25px;padding:8px 24px;border-radius:6px;background:#c3202a;color:#fff;border:none;font-weight:600;font-size:13px;display:flex;align-items:center;gap:8px;cursor:pointer;transition:background 0.2s;&:hover{background:#a01820;}.btn-arrow{width:10px;height:10px;filter:brightness(0) invert(1);margin:0;}}"],e=>e.$width,e=>e.img),G=d.ZP.div.withConfig({componentId:"sc-4e07198-6"})(["display:flex;justify-content:center;gap:12px;margin-top:10px;width:100%;z-index:5;"]),K=d.ZP.div.withConfig({componentId:"sc-4e07198-7"})(["width:12px;height:12px;border-radius:50%;border:1px solid #fff;background-color:",";cursor:pointer;transition:all 0.3s ease;&:hover{background-color:rgba(255,255,255,0.5);}&.disabled{opacity:0;pointer-events:none;}"],e=>e.$active?"#fff":"transparent");var Q=function(e){var i;
1let{component:n}=e,[a,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>l(window.innerWidth<=980);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let r=(0,o.useRef)(null),d=(0,o.useRef)(null),s=(0,o.useRef)(!1),c=(0,o.useRef)(0),p=(0,o.useRef)(0),[x,u]=(0,o.useState)(!1),[h,m]=(0,o.useState)(!1),[g,f]=(0,o.useState)(void 0),v=()=>{if(a)return;let e=r.current;e&&(d.current&&clearInterval(d.current),d.current=setInterval(()=>{if(s.current)return;let i=e.scrollWidth-e.clientWidth;e.scrollLeft>=i-1?e.scrollLeft=0:e.scrollLeft+=1},30))},b=()=>{d.current&&(clearInterval(d.current),d.current=null)},j=()=>{s.current=!1,v()};return(0,o.useEffect)(()=>{if(a)return;let e=r.current;if(!e)return;let i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?v():b()})},{threshold:.3});return i.observe(e),()=>{i.disconnect(),b()}},[null==n?void 0:n.itens,a]),(0,t.jsxs)(Y,{$bg:null==n?void 0:n.imagemfundo_desktop,children:[(0,t.jsxs)("div",{className:"header-club",children:[(0,t.jsxs)("h1",{children:[(0,t.jsx)("img",{src:"/images/plus-circle.svg",alt:""})," Clube de vantagens Cia Athletica"]}),(0,t.jsx)("h4",{children:null==n?void 0:n.subtitulo})]}),(0,t.jsx)("div",{className:"club-content",ref:r,onMouseDown:e=>{s.current=!0,b();let i=r.current;c.current=e.pageX-i.offsetLeft,p.current=i.scrollLeft},onMouseLeave:j,onMouseUp:j,onMouseMove:e=>{if(!s.current)return;e.preventDefault();let i=r.current;i.scrollLeft=p.current-(e.pageX-i.offsetLeft-c.current)*1.5},children:null==n?void 0:null===(i=n.itens)||void 0===i?void 0:i.map((e,i)=>{var n;return(0,t.jsxs)("div",{className:"club-card",onClick:()=>{var i,n;if(!(Math.abs((null!==(n=null===(i=r.current)||void 0===i?void 0:i.scrollLeft)&&void 0!==n?n:0)-p.current)>5)&&(f(e),(null==e?void 0:e.modal)&&m(!h),(null==e?void 0:e.urlhotsite)&&u(!x),null==e?void 0:e.linkexterno)){let i=document.createElement("a");i.href=e.linkexterno,i.target="_blank",i.click()}},children:[(0,t.jsxs)("div",{className:"top-unit",children:[(0,t.jsx)("span",{className:"unit",children:null==e?void 0:null===(n=e.unidade)||void 0===n?void 0:n.nome_local}),(null==e?void 0:e.nome_local)&&(0,t.jsx)("span",{className:"unit-sub",children:null==e?void 0:e.nome_local})]}),(0,t.jsx)("div",{className:"img",children:(0,t.jsx)("img",{src:a?null==e?void 0:e.midia_mobile:null==e?void 0:e.midia_desktop,alt:"\xcdcone",onDragStart:e=>e.preventDefault()})}),(0,t.jsx)("div",{className:"content-text",children:(0,t.jsx)("span",{children:null==e?void 0:e.texto})}),(null==e?void 0:e.datafim)&&(0,t.jsxs)("span",{children:["* Validade de ",null==e?void 0:e.datafim]}),(0,t.jsx)("span",{children:null==e?void 0:e.regra})]},i)})}),x&&(null==g?void 0:g.urlhotsite)&&(0,t.jsx)(y.R,{url:null==g?void 0:g.urlhotsite,setClose:u,close:x}),h&&(null==g?void 0:g.modal)&&(0,t.jsx)(w,{info:g,modal:null==g?void 0:g.modal,open:h,setOpen:m})]})};let Y=d.ZP.article.withConfig({componentId:"sc-494b5ca8-0"})(["background:#d0d0d0;font-family:Poppins;font-size:14px;line-height:180%;color:#3b3b3b;padding:40px 0 80px;h4{font-weight:400;margin:10px 0 0;text-align:center;padding:0 20px;}h1{display:flex;align-items:center;text-align:center;font-weight:800;font-size:40px;line-height:109%;color:#000;img{margin-right:20px;}@media (max-width:980px){font-size:24px;flex-direction:column;img{width:30px;margin-right:0;margin-bottom:10px;}}}.header-club{display:flex;flex-direction:column;align-items:center;padding-bottom:40px;}.club-content{@media (min-width:981px){justify-content:safe center;}display:flex;justify-content:flex-start;gap:20px;margin:0;overflow-x:auto;padding:0 20px;cursor:grab;user-select:none;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;&:active{cursor:grabbing;}@media ","{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:0 15px;gap:15px;width:100%;box-sizing:border-box;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}.club-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:380px;height:425px;flex:0 0 auto;background:#000;border-radius:20px;scroll-snap-align:start;@media ","{width:calc(100vw - 60px);max-width:290px;flex:0 0 auto;scroll-snap-align:center;padding:20px;height:290px;.unit{font-size:14px;margin:0 0 5px;}.unit-sub{font-size:14px;margin:0 0 15px;width:100px;}.content-text span{font-size:14px;}span:last-child{font-size:12px;margin-top:10px;}}.content-text{display:flex;align-items:center;justify-content:center;width:85%;min-height:40px;margin-bottom:15px;padding:10px 15px;background:#1f1f1f;border-radius:12px;span{font-family:Lexend;font-weight:700;font-size:15.96px;line-height:125%;text-align:center;color:#fff;@media (max-width:980px){font-size:11px;}}@media (max-width:980px){margin-bottom:0;}}.top-unit{height:70px;}.img{display:flex;align-items:center;justify-content:center;height:200px;img{max-width:290px;max-height:120px;margin:10px 0;object-fit:contain;@media (max-width:980px){max-height:90px;}}@media (max-width:980px){height:100px;}}span{font-family:Lexend;font-weight:300;font-size:13px;line-height:125%;text-align:center;color:#e4e4e7;max-width:250px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:980px){font-size:10px;max-width:90%;}&.unit{margin:20px 0;color:#f5fa00;font-family:Montserrat;font-weight:800;font-size:14px;line-height:21.07px;letter-spacing:-0.46px;text-align:center;text-transform:uppercase;@media (max-width:980px){font-size:10px;margin:5px 0;}}&.unit-sub{margin:-15px 0 20px;@media (max-width:980px){margin:0 0 10px;}}
1}}}"],p.U.laptop,p.U.laptop);var J=function(e){var i,n,a,l;let{component:r}=e,{selectedUnit:d,units:c,setSelectedUnit:p}=(0,o.useContext)(s.k),[x,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>u(980>=window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let[h,m]=(0,o.useState)(0),[g,f]=(0,o.useState)(!1),[v,b]=(0,o.useState)(void 0),[j,k]=(0,o.useState)(!1),[N,C]=(0,o.useState)(void 0),[z,_]=(0,o.useState)(void 0),E=x?1:3,S=(null==r?void 0:null===(i=r.itens)||void 0===i?void 0:i.length)||0,P=Math.max(0,S-E);(0,o.useEffect)(()=>{m(0)},[d]);let I=e=>{b(e),(null==e?void 0:e.modal)&&f(!g),(null==e?void 0:e.urlhotsite)&&k(!j),(null==e?void 0:e.linkexterno)&&window.open(e.linkexterno,"_blank")};return(0,t.jsxs)(en,{$bg:null==r?void 0:r.imagemfundo_desktop,children:[(0,t.jsxs)("h3",{children:[(0,t.jsx)("img",{src:"/images/book.svg",alt:"\xcdcone de livro"})," Agenda de eventos"]}),(0,t.jsx)("h4",{className:"text",children:"Ver eventos da unidade"}),(0,t.jsxs)("select",{name:"units",onChange:e=>p(Number(e.target.value)),value:d,children:[(0,t.jsx)("option",{value:0,children:"Escolher Unidade"},0),null==c?void 0:null===(n=c.filter(e=>99!==e.cod_unid))||void 0===n?void 0:n.map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},"option-".concat(e.cod_unid)))]}),(0,t.jsxs)("section",{className:"section",children:[!x&&(0,t.jsx)("img",{className:"arrow ".concat(0===h?"disabled":""),src:"/images/arrow-left.svg",alt:"Seta Esquerda",onClick:()=>h>0&&m(e=>e-1)}),(0,t.jsx)(ee,{$currentindex:h,onTouchStart:x?e=>{let i=e.touches[0].clientX;C(i),_(i)}:void 0,onTouchMove:x?e=>{_(e.touches[0].clientX)}:void 0,onTouchEnd:x?()=>{null!=N&&null!=z&&(z-N>50&&h>0?m(e=>Math.max(0,e-1)):N-z>50&&h<P&&m(e=>Math.min(P,e+1))),C(void 0),_(void 0)}:void 0,children:null==r?void 0:null===(l=r.itens)||void 0===l?void 0:null===(a=l.slice(h,h+E))||void 0===a?void 0:a.map((e,i)=>{var n;return(0,t.jsx)(o.Fragment,{children:(0,t.jsxs)(ei,{$img:x?null==e?void 0:e.midia_mobile:null==e?void 0:e.midia_desktop,onClick:()=>I(e),children:[(0,t.jsxs)("article",{children:[(0,t.jsxs)("div",{className:"date-container ".concat((null==e?void 0:e.datafim_dia)?"two-dates":""),children:[null==e?void 0:e.dataini_dia,(0,t.jsx)("span",{children:null==e?void 0:e.dataini_mes_extenso}),(0,t.jsx)("span",{children:null==e?void 0:e.dataini_ano})]}),(null==e?void 0:e.datafim_dia)&&(0,t.jsx)("div",{className:"two-dates",children:(0,t.jsx)("span",{children:"-"})}),(null==e?void 0:e.datafim_dia)&&(0,t.jsxs)("div",{className:"date-container ".concat((null==e?void 0:e.datafim_dia)?"two-dates":""),children:[null==e?void 0:e.datafim_dia,(0,t.jsx)("span",{children:null==e?void 0:e.datafim_mes_extenso}),(0,t.jsx)("span",{children:null==e?void 0:e.datafim_ano})]})]}),(0,t.jsx)("img",{src:"/images/long-arrow-right.svg",alt:""}),(0,t.jsx)("span",{children:null==e?void 0:null===(n=e.unidade)||void 0===n?void 0:n.nome_local}),(0,t.jsx)("h4",{children:null==e?void 0:e.titulo}),(0,t.jsx)("span",{children:null==e?void 0:e.texto}),((null==e?void 0:e.modal)||(null==e?void 0:e.urlhotsite)||(null==e?void 0:e.linkexterno))&&(0,t.jsx)("button",{children:"Ver mais"})]})},"event-".concat((null==e?void 0:e.id)||i))})}),!x&&(0,t.jsx)("img",{alt:"Seta Direita",className:"arrow ".concat(h>=P?"disabled":""),src:"/images/arrow-right.svg",onClick:()=>h<P&&m(e=>e+1)})]}),x&&S>1&&(0,t.jsx)(et,{children:null==r?void 0:r.itens.map((e,i)=>
1(0,t.jsx)(eo,{$active:i===h,onClick:()=>m(i)},"dot-".concat(i)))}),g&&(null==v?void 0:v.modal)&&(0,t.jsx)(w,{info:v,modal:null==v?void 0:v.modal,open:g,setOpen:f}),j&&(null==v?void 0:v.urlhotsite)&&(0,t.jsx)(y.R,{url:null==v?void 0:v.urlhotsite,setClose:k,close:j})]})};let ee=d.ZP.div.withConfig({componentId:"sc-53557cae-0"})(["display:flex;@media ","{width:100%;overflow:hidden;padding-left:2%;justify-content:center;gap:20px;}"],p.U.laptop),ei=d.ZP.div.withConfig({componentId:"sc-53557cae-1"})(["color:#fff;font-family:Montserrat;font-weight:800;line-height:20px;margin:0 10px;width:220px;height:520px;padding:0 50px;border-radius:15px;position:relative;background:linear-gradient(180deg,rgba(0,0,0,0.14) 0%,rgba(0,0,0,0.7) 99.99%,#090909 100%),url(",");background-size:cover;cursor:pointer;button{position:absolute;bottom:30px;padding:5px 15px;border-radius:61px;border-style:none;background:#c3202a;color:white;margin-top:20px;cursor:pointer;font-family:Lexend;font-size:14px;font-weight:400;line-height:24px;@media ","{font-size:13px;}&:hover{background:#680006;}}&:hover{height:584px;width:240px;transform:translateY(-5%);}flex-shrink:0;@media ","{margin:0 10px 0 0;width:85%;box-sizing:border-box;height:500px;&:hover{height:500px;width:300px;transform:none;}}article{display:flex;justify-content:center;.two-dates{background:#c3202a;display:flex;flex-direction:column;align-items:center;justify-content:center;span{color:#e4e4e7;font-size:20px;}}.date-container{border-radius:0 0 11px 11px;background:#c3202a;font-size:29px;line-height:37px;text-transform:uppercase;width:70px;height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;&.two-dates:first-of-type{border-radius:0 0 0 11px;}&.two-dates:last-of-type{border-radius:0 0 11px 0;}span{font-size:13px;line-height:20px;color:#e4e4e7;font-family:Lexend;font-weight:300;}}}img{padding-top:80%;}h4,span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;}h4{font-size:16px;margin:15px 0;@media ","{margin:10px 0;}}span{color:#e4e4e7;font-family:Lexend;font-size:13px;font-weight:300;line-height:20px;&:first-of-type{font-family:Montserrat;font-size:12px;font-weight:800;line-height:21px;color:#f5fa00;text-transform:uppercase;}}"],e=>e.$img,p.U.laptop,p.U.laptop,p.U.laptop),en=d.ZP.article.withConfig({componentId:"sc-53557cae-2"})(["display:flex;flex-direction:column;align-items:center;background:url(",");background-size:cover;background-blend-mode:multiply;padding-top:220px;color:#fff;height:900px;@media ","{padding:60px 0;height:auto;}select{border-radius:12px;padding:16px 20px;background:url('/images/cursor.svg') no-repeat 90% #5b4142 !important;margin-bottom:70px;@media ","{margin-bottom:30px;}}.text{color:#fff;font-family:Poppins;font-size:16px;font-weight:800;margin:30px 0 10px 0;line-height:17.44px;}h3{font-family:Poppins;font-size:40px;font-weight:800;line-height:109%;align-items:center;display:flex;margin:0;img{margin-right:20px;}@media ","{font-size:25px;flex-direction:column;max-width:200px;text-align:center;margin:0 0 25px 0;img{width:33px;margin-bottom:5px;margin-right:0;}}}.section{display:flex;width:100%;max-width:100%;justify-content:space-between;@media ","{justify-content:flex-start;}.arrow{background-color:#c3202a;box-shadow:0px 4px 4px 0px #00000040;cursor:pointer;border-radius:10px;padding:7px;height:25px;margin:300px 30px 30px 30px;@media ","{margin:300px 10px 30px 10px;}&.disabled{cursor:default;filter:brightness(0.3);}}}"],e=>e.$bg,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop),et=d.ZP.div.withConfig({componentId:"sc-53557cae-3"})(["display:flex;justify-content:center;gap:12px;margin-top:20px;width:100%;z-index:5;"]),eo=d.ZP.div.withConfig({componentId:"sc-53557cae-4"})(["width:14px;height:14px;border-radius:50%;border:1px solid #fff;background-color:",";cursor:pointer;transition:all 0.3s ease;&:hover{background-color:rgba(255,255,255,0.5);}"],e=>e.$active?"#fff":"transparent");var ea=function(e){let{component:i}=e,{selectedUnit:n}=(0,o.useContext)(s.k),[a,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>l(980>=window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let[r,d]=(0,o.useState)(0),[c,p]=(0,o.useState)(0),[x,u]=(0,o.useState)(!1),[h,m]=(0,o.useState)(void 0),[g,f]=(0,o.useState)(!1),[v,b]=(0,o.useState)(void 0),[j,k]=(0,o.useState)(void 0),N=(null==i?void 0:i.itens)||[];(0,o.useEffect)(()=>{d(0),p(0)},[n]);let C=e=>{if(e.target.closest(".link")){b(void 0);return}b(e.touches[0].clientX)},z=e=>{if(e.target.closest(".link")){k(void 0);return}k(e.touches[0].clientX)},_=()=>{null!=v&&null!=j&&(j-v>50&&r>0?d(r-1):v-j>50&&r<N.length-1&&d(r+1))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(es,{children:[(0,t.jsx)(el,{$currentindex:c||r,onTouchStart:e=>a&&C(e),onTouchMove:e=>a&&z(e),onTouchEnd:()=>a&&_(),children:N.map((e,i)=>{var n,o;let l=a?null==e?void 0:null===(n=e.midia_mobile)||void 0===n?void 0:n.includes("mp4"):null==e?void 0:null===(o=e.midia_desktop)||void 0===o?void 0:o.includes("mp4"),r=a?null==e?void 0:e.midia_mobile:null==e?void 0:e.midia_desktop;return l?(0,t.jsx)(ed,{src:r,className:"".concat("S"===e.overlay?"overlay":""," slide"),children:(0,t.jsx)("video",{src:r,autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0})},"v-".concat(i)):(0,t.jsx)(er,{$bg:r,className:"".concat("S"===e.overlay?"overlay":""," slide")},"i-".concat(i))})}),(0,t.jsxs)("section",{className:"cards",children:[!a&&N.length>3&&(0,t.jsx)("img",{className:"arrow ".concat(0===r?"disabled":""),src:"/images/arrow-left.svg",alt:"Anterior",onClick:()=>{r>0&&!a&&(d(r-3),p(r-3))}}),(0,t.jsx)("div",{className:"types",children:N.slice(r,3+r).map((e,i)=>{var n;return(0,t.jsxs)("div",{className:"card ".concat(c===i?"selected":""),onClick:()=>{a||p(i)},onMouseEnter:()=>{a||p(i)},onTouchStart:e=>a&&C(e),onTouchMove:e=>a&&z(e),onTouchEnd:()=>a&&_(),children:[(0,t.jsx)("h2",{children:null==e?void 0:null===(n=e.titulo)||void 0===n?void 0:n.toLowerCase()}),(0,t.jsx)("span",{children:null==e?void 0:e.texto}),c===i&&(0,t.jsx)("span",{className:"link",onClick:()=>{m(e),(null==e?void 0:e.urlhotsite)&&u(!x),(null==e?void 0:e.modal)&&f(!g),(null==e?void 0:e.linkexterno)&&window.open(e.linkexterno,"_blank")},children:null==e?void 0:e.textocta_1})]},"card-".concat(i,"-").concat(e.id))})}),!a&&N.length>3&&(0,t.jsx)("img",{alt:"Pr\xf3ximo",className:"arrow ".concat((3+r>=N.length||3===N.length)&&!a?"disabled":""),src:"/images/arrow-right.svg",onClick:()=>{(3+r<N.length||3===N.length)&&!a&&(p(r+1),d(r+3),p(Math.floor(r/3)))}})]})]}),g&&(null==h?void 0:h.modal)&&(0,t.jsx)(w,{info:h,modal:null==h?void 0:h.modal,open:g,setOpen:f}),x&&(null==h?void 0:h.urlhotsite)&&(0,t.jsx)(y.R,{url:null==h?void 0:h.urlhotsite,setClose:u,close:x})]})};let el=d.ZP.div.withConfig({componentId:"sc-3e42ee92-0"})(["display:flex;transition:transform 0.9s ease-in-out;transform:",";"],e=>"translateX(-".concat(100*e.$currentindex,"%)")),er=d.ZP.div.withConfig({componentId:"sc-3e42ee92-1"})(["background:url(",');background-size:cover;height:785px;&.overlay::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to left,transparent 0%,rgba(32,20,29,.9) 160%);pointer-events:none;}'],e=>e.$bg),ed=d.ZP.div.withConfig({componentId:"sc-3e42ee92-2"})(["background-image:linear-gradient(to left,transparent 0%,rgba(32,20,29,.9) 98%),url(",");background-size:cover;object-fit:fill;video{transform:scaleX(1);width:100%;height:100%;object-fit:cover;}"],e=>e.src),es=d.ZP.article.withConfig({componentId:"sc-3e42ee92-3"})(["overflow:hidden;position:relative;.types{display:flex;gap:30px;@media ","{height:230px;gap:20px;}}.slide{width:100%;height:100vh;flex-shrink:0;display:flex;justify-content:center;align-items:center;}.cards{display:flex;position:absolute;justify-content:center;gap:0;bottom:0;align-items:center;width:100%;padding:40px 0 80px 0;background-color:rgba(0,0,0,0.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);@media ","{overflow-x:hidden;justify-content:flex-start;padding:30px 0 0 20px;gap:10px;}.arrow{background-color:#c3202a;box-shadow:0px 4px 4px 0px #00000040;cursor:pointer;border-radius:10px;padding:7px;height:25px;margin:0 20px;&.disabled{cursor:default;filter:brightness(0.3);}@media ","{height:20px;&:last-child{position:absolute;right:30px;}}}.card{font-family:Poppins;display:flex;flex-direction:column;width:260px;height:170px;cursor:pointer;padding:30px;@media ","{padding:15px;width:260px;}&.selected{border-radius:10px;background-color:white;color:#151515;.link{color:#151515;}}&:not(.selected){padding-top:30px;border-top:2px solid white;}h2{font-size:28px;font-weight:800;line-height:26px;min-height:30px;text-transform:capitalize;margin-top:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:15px;@media ","{font-size:25px;margin:0 0 10px 0;}}span{font-size:14px;font-weight:300;line-height:20px;margin-bottom:13px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media ","{font-size:12px;}}.link{font-size:15px;font-weight:600;line-height:24px;color:white;text-decoration:underline;margin-bottom:0;}}}"],p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop);var ec=n(27648),ep=n(1322);function ex(e){var i,n,a,l,r,d,c,p,x,u;let{mapsKey:h=""}=e,{units:m,selectedUnit:g,setSelectedUnit:f}=(0,o.useContext)(s.k),[v,b]=(0,o.useState)(null),[w,j]=(0,o.useState)([]),[y,k]=(0,o.useState)(""),[N,C]=(0,o.useState)(!1),[z,_]=(0,o.useState)(null),[E,S]=(0,o.useState)(void 0),[P,I]=(0,o.useState)(null),[F,$]=(0,o.useState)(!1);(0,o.useEffect)(()=>{$(980>=window.innerWidth)},[]);let M=g?null==m?void 0:m.find(e=>(null==e?void 0:e.cod_unid)===g):void 0,U=e=>{if(!e)return null;let i=Number(String(e.latitude||e.lat).replace(",",".")),n=Number(String(e.longitude||e.lng).replace(",","."));return isNaN(i)||isNaN(n)?null:{lat:i,lng:n}},L=(0,o.useMemo)(()=>z?U(z):v?U(v):(null==M?void 0:M.localizacao)?U(M.localizacao):null,[z,v,M]),A=(0,o.useMemo)(()=>z?U(z):(null==M?void 0:M.localizacao)?U(M.localizacao):null,[z,M]),D=(e,i,n,t)=>{let o=Math.sin(Math.PI/180*(n-e)/2)**2+Math.cos(e*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.sin(Math.PI/180*(t-i)/2)**2;
1return 12742*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},Z=async()=>{C(!1);try{let e=await fetch("https://maps.googleapis.com/maps/api/geocode/json?address=".concat(encodeURIComponent(y),"&key=").concat(h)),i=await e.json();if("OK"===i.status){let{lat:e,lng:n}=i.results[0].geometry.location;b({lat:e,lng:n});let t=e=>{var i;return Number(String(null==e?void 0:null===(i=e.localizacao)||void 0===i?void 0:i.latitude).replace(",","."))},o=e=>{var i;return Number(String(null==e?void 0:null===(i=e.localizacao)||void 0===i?void 0:i.longitude).replace(",","."))};I({...M,distance:D(t(M),o(M),e,n)});let a=null==m?void 0:m.map(i=>({...i,distance:D(t(i),o(i),e,n)})).sort((e,i)=>e.distance-i.distance).slice(0,5).filter(e=>e.cod_unid!==g&&99!==e.cod_unid);j(a||[])}else C(!0)}catch(e){C(!0)}};function O(e){var i,n,t,o;if(S(e),0===e)_({lat:Number(String(null==M?void 0:null===(i=M.localizacao)||void 0===i?void 0:i.latitude).replace(",",".")),lng:Number(String(null==M?void 0:null===(n=M.localizacao)||void 0===n?void 0:n.longitude).replace(",","."))});else{let i=w[e-1];_({lat:Number(String(null==i?void 0:null===(t=i.localizacao)||void 0===t?void 0:t.latitude).replace(",",".")),lng:Number(String(null==i?void 0:null===(o=i.localizacao)||void 0===o?void 0:o.longitude).replace(",","."))})}}return(0,t.jsxs)(ej,{children:[(0,t.jsx)("h1",{children:"Descubra a melhor CIA pra voc\xea"}),(0,t.jsxs)("div",{className:"find-content",children:[(0,t.jsx)("span",{className:"h2",children:"1"}),(0,t.jsx)("img",{src:"/images/send.svg",alt:""}),(0,t.jsx)("h2",{className:"span",children:"Encontre a unidade mais pr\xf3xima \xe0 voc\xea"})]}),(0,t.jsxs)("div",{className:"find-informations",children:[(0,t.jsxs)("section",{className:"find-select",children:[(0,t.jsx)("img",{src:"/images/search.svg",alt:""}),(0,t.jsx)("form",{onSubmit:e=>{var i;e.preventDefault(),Z(),null===(i=document.activeElement)||void 0===i||i.blur()},children:(0,t.jsx)("input",{placeholder:"Digite o seu endere\xe7o",value:y,onChange:e=>k(e.target.value)})}),(0,t.jsx)("img",{src:"/images/cancel.svg",alt:"",onClick:()=>{k(""),j([]),C(!1),b(null),_(null),g&&O(0)}})]}),(0,t.jsx)("button",{type:"button",onClick:Z,children:"Buscar"}),(0,t.jsx)("span",{children:"ou"}),(0,t.jsxs)("select",{name:"units",onChange:e=>f(Number(e.target.value)),value:99===g?0:g,className:g?"selected":"",children:[!g&&(0,t.jsx)("option",{value:0,children:"Aulas da unidade"}),null==m?void 0:null===(i=m.filter(e=>99!==e.cod_unid))||void 0===i?void 0:i.map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},e.cod_unid))]})]}),N&&!M&&(null==w?void 0:w.length)===0&&(0,t.jsx)("h4",{children:"Endere\xe7o n\xe3o encontrado"}),(M||v)&&(0,t.jsxs)("div",{className:"maps",children:[(0,t.jsxs)("div",{className:"map",children:[(0,t.jsx)("span",{children:"Resultados da busca"}),(0,t.jsxs)("div",{className:"cards",children:[g&&(0,t.jsxs)("div",{className:"card ".concat(E&&0!==E?"":"selected"),onClick:()=>O(0),children:[(0,t.jsx)("img",{src:F&&(null==M?void 0:null===(n=M.midias)||void 0===n?void 0:n.img_fachada_whatsapp_mobile)?null==M?void 0:null===(a=M.midias)||void 0===a?void 0:a.img_fachada_whatsapp_mobile:(null==M?void 0:null===(l=M.midias)||void 0===l?void 0:l.img_fachada_whatsapp_desktop)||"/images/Layer4.svg",alt:"",className:"unit-img"}),(0,t.jsxs)("div",{className:"content-card",children:[(0,t.jsx)("span",{children:(null==M?void 0:M.nomelocal)||"-"}),(0,t.jsxs)("span",{className:"second",children:[(0,t.jsx)("img",{src:"/images/car.svg",alt:""}),"".concat((null==P?void 0:P.distance)?(P.distance/50*60).toFixed(0):" - "," min")]}),(0,t.jsx)("span",{className:"second-type",children:"".concat(null==M?void 0:null===(r=M.localizacao)||void 0===r?void 0:r.rua,", ").concat(null==M?void 0:null===(d=M.localizacao)||void 0===d?void 0:d.numero," - ").concat(null==M?void 0:null===(c=M.localizacao)||void 0===c?void 0:c.cidade,", ").concat(null==M?void 0:null===(p=M.localizacao)||void 0===p?void 0:p.uf)}),(0,t.jsx)("input",{type:"checkbox",checked:!!g&&!z||0===E,onChange:e=>e.preventDefault(),onClick:e=>e.preventDefault()})]})]}),null==w?void 0:w.map((e,i)=>{var n,o,a,l,r,d;return(0,t.jsxs)("div",{className:"card ".concat(i===(null!=E?E:-1)-1?"selected":""),onClick:()=>O(i+1),children:[(0,t.jsx)("img",{src:F?null==e?void 0:null===(n=e.midias)||void 0===n?void 0:n.img_fachada_whatsapp_mobile:null==e?void 0:null===(o=e.midias)||void 0===o?void 0:o.img_fachada_whatsapp_desktop,alt:"",className:"unit-img"}),(0,t.jsxs)("div",{className:"content-card",children:[(0,t.jsx)("span",{children:(null==e?void 0:e.nomelocal)||"-"}),(0,t.jsxs)("span",{className:"second",children:[(0,t.jsx)("img",{src:"/images/car.svg",alt:""}),"".concat((e.distance/50*60).toFixed(0)," min")]}),(0,t.jsx)("span",{className:"second-type",children:"".concat(null==e?void 0:null===(a=e.localizacao)||void 0===a?void 0:a.rua,", ").concat(null==e?void 0:null===(l=e.localizacao)||void 0===l?void 0:l.numero," - ").concat(null==e?void 0:null===(r=e.localizacao)||void 0===r?void 0:r.cidade,", ").concat(null==e?void 0:null===(d=e.localizacao)||void 0===d?void 0:d.uf)}),(0,t.jsx)("input",{type:"checkbox",checked:i+1===E,onChange:e=>e.preventDefault()})]})]},e.cod_unid+i)})]}),(0,t.jsx)("div",{className:"fade"})]}),(0,t.jsx)("div",{className:"map map-content",children:(0,t.jsx)(ep.un,{apiKey:h,children:L&&(0,t.jsxs)(ep.D5,{defaultZoom:15,mapId:"map",defaultCenter:L,children:[(0,t.jsx)(ep.Jx,{position:{lat:Number(String(null==M?void 0:null===(x=M.localizacao)||void 0===x?void 0:x.latitude).replace(",",".")),lng:Number(String(null==M?void 0:null===(u=M.localizacao)||void 0===u?void 0:u.longitude).replace(",","."))}}),null==w?void 0:w.map(e=>{var i,n,o;return(0,t.jsx)(ep.Jx,{position:{lat:Number(String(null==e?void 0:null===(i=e.localizacao)||void 0===i?void 0:i.latitude).replace(",",".")),lng:Number(String(null==e?void 0:null===(n=e.localizacao)||void 0===n?void 0:n.longitude).replace(",","."))}},e.cod_unid+(null==e?void 0:null===(o=e.localizacao)||void 0===o?void 0:o.latitude))}),(0,t.jsx)(eu,{origin:v,destination:A,center:L})]})})})]})]})}function eu(e){let{origin:i,destination:n,center:t}=e,a=(0,ep.Sx)(),l=(0,ep.kY)("routes"),[r,d]=(0,o.useState)(),[s,c]=(0,o.useState)();return(0,o.useEffect)(()=>{l&&a&&(d(new l.DirectionsService),c(new l.DirectionsRenderer({map:a})))},[l,a]),(0,o.useEffect)(()=>
1{if(r&&s){if(!i||!n){s.setDirections({routes:[]}),a&&t&&(a.setCenter(t),a.setZoom(15));return}r.route({origin:i,destination:n,travelMode:google.maps.TravelMode.DRIVING}).then(e=>s.setDirections(e)).catch(()=>{})}},[r,s,i,n,t,a]),(0,o.useEffect)(()=>()=>null==s?void 0:s.setMap(null),[s]),null}function eh(){var e,i;let{base:n,groups:a,setGroups:l,selectedGroupType:r,selectedModality:d,setSelectedGroupType:c,setSelectedModality:p,selectedType:x,setSelectedType:u,modalities:h,selectedUnit:m}=(0,o.useContext)(s.k),[g,f]=(0,o.useState)(0),[v,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{b(980>=window.innerWidth)},[]);let[w,j]=(0,o.useState)(void 0),[y,k]=(0,o.useState)(void 0),N=e=>{let i=(null==h?void 0:h.filter(i=>{var n,t;return a&&(null===(t=a[void 0!==e?e:r])||void 0===t?void 0:null===(n=t.modalidades)||void 0===n?void 0:n.find(e=>e===i.id))}))||[];return m&&(i=i.filter(e=>{var i;return null===(i=e.unidades)||void 0===i?void 0:i.find(e=>e===m)})),i};(0,o.useEffect)(()=>{n&&void 0!==x&&l(null==n?void 0:n.agrupamentos_modalidades[x].grupos)},[n,x,g,m]),(0,o.useEffect)(()=>{var e;let i=null==n?void 0:null===(e=n.agrupamentos_modalidades[x])||void 0===e?void 0:e.grupos.filter((e,i)=>{var n;return(null===(n=N(i))||void 0===n?void 0:n.length)>0});JSON.stringify(a)!==JSON.stringify(i)&&l(i)},[a,x,m]),(0,o.useEffect)(()=>{var e,i;p((null===(e=N().find(e=>e.id===d))||void 0===e?void 0:e.id)||(null===(i=N()[0])||void 0===i?void 0:i.id))},[r,g,a]),(0,o.useEffect)(()=>{f(0),c(0)},[m,x]);let C=e=>{let i=e.touches[0].clientX;j(i),k(i)},z=e=>{k(e.touches[0].clientX)},_=()=>{if(null!=w&&null!=y){var e;y-w>50&&g>0?(f(g-1),c(g-1)):w-y>50&&g<(null!==(e=null==a?void 0:a.length)&&void 0!==e?e:0)-1&&(f(g+1),c(g+1))}};return(0,t.jsxs)(ek,{children:[(0,t.jsxs)("div",{className:"find-content",children:[(0,t.jsx)("span",{className:"h2",children:"2"}),(0,t.jsx)("img",{src:"/images/user.svg",alt:""}),(0,t.jsx)("h2",{className:"span",children:"Selecione o seu interesse, perfil ou objetivo"})]}),(0,t.jsx)("div",{className:"types-content",children:null==n?void 0:null===(e=n.agrupamentos_modalidades)||void 0===e?void 0:e.slice(0,3).map((e,i)=>(0,t.jsxs)("button",{className:x===i?"selected":"",onClick:()=>u(i),onMouseOver:()=>u(i),children:["Por ",null==e?void 0:e.descricao]},i))}),(0,t.jsx)("div",{className:"profile-content",children:v?a?[{data:a[g-1],index:g-1,key:"prev",isFirst:0===g},{data:a[g],index:g,key:"curr"},{data:a[g+1],index:g+1,key:"next",isLast:g===a.length-1}].map(e=>{var i,n;if(!e.data){let i="mobile-carousel-item placeholder";return e.isFirst&&(i+=" placeholder-left"),e.isLast&&(i+=" placeholder-right"),(0,t.jsx)(ey,{className:i},e.key)}return(0,t.jsxs)(ey,{$img:e.data.imagem_url,className:"mobile-carousel-item ".concat(g===e.index&&(null===(i=N(e.index))||void 0===i?void 0:i.length)>0?"selected-group":""),onTouchStart:C,onTouchMove:z,onTouchEnd:_,onClick:()=>{f(e.index),c(e.index)},children:[g===e.index&&(0,t.jsx)("img",{src:"/images/over.svg",className:g===e.index&&(null===(n=N(e.index))||void 0===n?void 0:n.length)>0?"selected":"",alt:""}),(0,t.jsx)("span",{children:e.data.descricao})]},e.data.id||e.key)}):null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ey,{className:0===g?"disabled":""}),null==a?void 0:a.slice(g,6+g).map((e,i)=>{var n,o;return(0,t.jsxs)(ey,{$img:null==e?void 0:e.imagem_url,onClick:()=>{var e;(null===(e=N(i))||void 0===e?void 0:e.length)>0&&c(i)},onMouseOver:()=>{var e;(null===(e=N(i))||void 0===e?void 0:e.length)>0&&c(i)},className:r===i&&(null===(n=N(i))||void 0===n?void 0:n.length)>0?"selected-group":"",children:[r===i&&(0,t.jsx)("img",{src:"/images/over.svg",className:r===i&&(null===(o=N(i))||void 0===o?void 0:o.length)>0?"selected":"",alt:""}),(0,t.jsx)("span",{children:null==e?void 0:e.descricao})]},e.id)}),(0,t.jsx)(ey,{className:2+g>(null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0)?"disabled":""})]})}),v&&a&&a.length>0&&(0,t.jsx)(eN,{children:a.map((e,i)=>(0,t.jsx)(eC,{$isActive:g===i,onClick:()=>{f(i),c(i)}},i))})]})}function em(e){let{setNewLeft:i,newLeft:n}=e,{setSelectedModality:a,groups:l,modalities:r,selectedGroupType:d,selectedModality:c,selectedUnit:p,selectedType:x}=(0,o.useContext)(s.k),[u,h]=(0,o.useState)(0),[m,g]=(0,o.useState)([]),f=()=>{var e,i;let n=(null==r?void 0:r.filter(e=>{var i,n;return l&&(null===(n=l[d])||void 0===n?void 0:null===(i=n.modalidades)||void 0===i?void 0:i.find(i=>i===e.id))}))||[];p&&(n=n.filter(e=>{var i;return null===(i=e.unidades)||void 0===i?void 0:i.find(e=>e===p)})),g(n),a((null===(e=n.find(e=>e.id===c))||void 0===e?void 0:e.id)||(null===(i=n[0])||void 0===i?void 0:i.id))},v=e=>{var n;if(!e)return;let t=e.getBoundingClientRect(),o=null===(n=e.parentElement)||void 0===n?void 0:n.getBoundingClientRect();o&&i(t.left-o.left)};return(0,o.useEffect)(()=>{f()},[d,p,x,l]),(0,o.useEffect)(()=>{setTimeout(()=>{let e=document.querySelectorAll(".menu-item.selected");v(null==e?void 0:e[0])},10)},[c,p,d]),(0,o.useEffect)(()=>{h(0)},[d,x,p]),(0,t.jsxs)(ez,{children:[(0,t.jsxs)("div",{className:"find-content",children:[(0,t.jsx)("span",{className:"h2",children:"3"}),(0,t.jsx)("img",{src:"/images/chart.svg",alt:""}),(0,t.jsx)("h2",{className:"span",children:"Modalidades dispon\xedveis"})]}),(null==m?void 0:m.length)>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"cards",children:[(0,t.jsx)("img",{src:"/images/arrow-left.svg",alt:"Anterior",className:"arrow ".concat(0===u?"disabled":""),onClick:()=>u>0&&h(u-1)}),(0,t.jsx)("div",{className:"modality-cards",children:m.slice(u,7+u).map(e=>{var i,n;return(0,t.jsxs)(eE,{onClick:()=>a(e.id),onMouseOver:()=>a(e.id),$color:null==e?void 0:e.departamento_cor_hexa,className:"menu-item ".concat(e.id===c?"selected":""),children:[(0,t.jsx)("div",{className:"tag",children:null==e?void 0:null===(i=e.area)||void 0===i?void 0:i.descricao}),(0,t.jsx)("img",{className:"modality_icon",src:null===(n=l[d])||void 0===n?void 0:n.icone_url,alt:""}),(0,t.jsx)("span",{children:e.descricao})]},"".concat(e.descricao,"_").concat(e.id))})}),(0,t.jsx)("img",{className:"arrow ".concat(7+u>=m.length?"disabled":""),src:"/images/arrow-right.svg",onClick:()=>7+u<m.length&&h(u+1),alt:"Pr\xf3ximo"})]}),(0,t.jsx)("div",{className:"indicator",children:(0,t.jsx)(e_,{$newLeft:n})})]})]})}function eg(){let{setSelectedModality:e,groups:i,modalities:n,selectedGroupType:a,selectedModality:l,selectedUnit:r,selectedType:d}=(0,o.useContext)(s.k),[c,p]=(0,o.useState)([]),[x,u]=(0,o.useState)(1),[h,m]=(0,o.useState)(null),g=()=>{var t,o;let d=(null==n?void 0:n.filter(e=>{var n,t;return i&&(null===(t=i[a])||void 0===t?void 0:null===(n=t.modalidades)||void 0===n?void 0:n.find(i=>i===e.id))}))||[];r&&(d=d.filter(e=>{var i;return null===(i=e.unidades)||void 0===i?void 0:i.find(e=>e===r)})),p(d),e((null===(t=d.find(e=>e.id===l))||void 0===t?void 0:t.id)||(null===(o=d[0])||void 0===o?void 0:o.id))};(0,o.useEffect)(()=>{m(null),u(1),g()},[a,r,d,i]);let f=7*x,v=c.slice(f-7,f),b=Math.ceil(c.length/7);return(0,t.jsxs)(eS,{children:[(0,t.jsxs)("div",{className:"find-content",children:[(0,t.jsx)("h2",{children:"3"}),(0,t.jsx)("span",{children:"Modalidades dispon\xedveis para o seu perfil"})]}),c.length>0&&(0,t.jsxs)("div",{className:"cards",children:[(0,t.jsx)("div",{className:"modality-cards",children:v.map(n=>{var o,l;return(0,t.jsxs)(eP,{onClick:()=>e(n.id),$color:null==n?void 0:n.departamento_cor_hexa,children:[(0,t.jsxs)("div",{className:"header-card",onClick:()=>m(h===n.id?null:n.id),children:[(0,t.jsx)("img",{className:"modality_icon",src:null===(o=i[a])||void 0===o?void 0:o.icone_url,alt:""}),(0,t.jsxs)("div",{className:"tag-content",children:[(0,t.jsx)("span",{children:n.descricao}),(0,t.jsx)("div",{className:"tag",children:null==n?void 0:null===(l=n.area)||void 0===l?void 0:l.descricao})]}),(0,t.jsx)("img",{className:"arrow",src:h===n.id?"/images/arrow-top.svg":"/images/arrow-bottom.svg",alt:""})]}),h===n.id&&(0,t.jsx)("div",{className:"expanded-cards",children:(0,t.jsx)(ef,{})})]},"".concat(n.descricao,"_").concat(n.id))})}),b>1&&(0,t.jsxs)(eI,{children:[Array.from({length:b},(e,i)=>i+1).map(e=>(0,t.jsx)(eF,{$isActive:e===x,onClick:()=>{u(e),m(null)},children:e},e)),x<b&&(0,t.jsx)(e$,{onClick:()=>{u(x+1),m(null)},children:">"})]})]})]})}function ef(){var e,i,n,a,l,r,d,c;let{modalities:p,selectedModality:x,periods:u,informations:h,selectedUnit:m,units:g,setSelectedUnit:f}=(0,o.useContext)(s.k),[v,b]=(0,o.useState)([]),[w,j]=(0,o.useState)(0),[y,k]=(0,o.useState)(null),N=["
1SEG","TER","QUA","QUI","SEX","SAB","DOM"];(0,o.useEffect)(()=>{var e,i,n,t,o,a;j(0);let l=null==h?void 0:null===(i=h.modalidades)||void 0===i?void 0:null===(e=i.find(e=>(null==e?void 0:e.id)===x))||void 0===e?void 0:e.aulas;b((null==h?void 0:h.modalidades)?l:[]),k((null==g?void 0:null===(o=g.find(e=>e.cod_unid===m))||void 0===o?void 0:null===(t=o.modalidades)||void 0===t?void 0:null===(n=t.find(e=>e.id===x))||void 0===n?void 0:n.carousel)||(null==p?void 0:null===(a=p.find(e=>e.id===x))||void 0===a?void 0:a.carousel)||null)},[h,x]),(0,o.useEffect)(()=>{j(0)},[m]);let C=()=>null==p?void 0:p.find(e=>(null==e?void 0:e.id)===x),z=()=>(null==g?void 0:g.filter(e=>{var i,n;return null===(n=C())||void 0===n?void 0:null===(i=n.unidades)||void 0===i?void 0:i.find(i=>i===e.cod_unid)}))||[];return(0,t.jsxs)(eU,{$color:null===(e=C())||void 0===e?void 0:e.departamento_cor_hexa,children:[m&&(0,t.jsxs)("section",{className:"content-section image-content",children:[(0,t.jsxs)("div",{children:[null==y?void 0:null===(i=y.itens)||void 0===i?void 0:i.slice(w,1+w).map((e,i)=>(0,t.jsx)(eA,{src:e.midia_mobile||e.midia_desktop},"img-mm-".concat(i))),(!y||!(null==y?void 0:null===(n=y.itens)||void 0===n?void 0:n.length))&&(0,t.jsx)(eA,{src:"/images/default.svg"})]}),(0,t.jsx)("div",{className:"indicators",children:null==y?void 0:null===(l=y.itens)||void 0===l?void 0:null===(a=l.slice(0,4))||void 0===a?void 0:a.map((e,i)=>(0,t.jsx)("button",{className:w===i?"indicator":"indicator inactive",onClick:()=>j(i),name:"indicator"},i))})]}),(0,t.jsx)("h4",{children:"Modalidade dispon\xedvel em"}),(0,t.jsxs)("select",{name:"units",onChange:e=>f(Number(e.target.value)),value:m||0,className:m?"selected":"",children:[!m&&(0,t.jsx)("option",{value:0,children:(null===(r=z())||void 0===r?void 0:r.length)?"".concat(z().length," unidades"):"Escolher Unidade"}),null===(d=z())||void 0===d?void 0:d.filter(e=>99!==e.cod_unid).map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},e.cod_unid))]}),(0,t.jsx)("h4",{children:"Per\xedodo das aulas"}),(0,t.jsxs)("article",{children:[m&&(0,t.jsx)("div",{className:"week-content",children:N.map((e,i)=>(0,t.jsx)("span",{children:e},i))}),m&&(null==u?void 0:u.map((e,i)=>(0,t.jsxs)("div",{className:"period-content",children:[(0,t.jsx)("img",{src:null==e?void 0:e.src,alt:""}),(0,t.jsx)("span",{children:e.label}),N.map((e,i)=>(0,t.jsx)("div",{className:"checkbox",children:(0,t.jsx)("input",{type:"checkbox",onChange:e=>e.preventDefault(),onClick:e=>e.preventDefault(),checked:(null==v?void 0:v.find(i=>e===i.diasemana))||!1})},i))]},i))),!m&&(0,t.jsxs)(eD,{children:[(0,t.jsx)("img",{src:"/images/home.svg",alt:""}),(0,t.jsx)("h1",{children:"Selecione uma unidade"}),(0,t.jsx)("span",{children:"E visualize os departamentos e modalidades dispon\xedveis no local"})]}),m&&(0,t.jsx)("div",{className:"title",children:null===(c=C())||void 0===c?void 0:c.informacao_adulto}),(0,t.jsxs)("div",{className:"buttons",children:[(0,t.jsx)("button",{type:"button",children:"Quero experimentar"}),(0,t.jsx)(ec.default,{href:"/horarios",children:"Acessar hor\xe1rios"})]})]})]})}function ev(){var e,i,n,a,l,r,d,c,p,x,u,h,m,g;let{modalities:f,selectedModality:v,periods:b,informations:w,selectedUnit:j,units:y,groups:k,selectedGroupType:N,setSelectedUnit:C,getSelectedUnit:z,setSelectedUnits:_}=(0,o.useContext)(s.k),[E,S]=(0,o.useState)([]),[P,I]=(0,o.useState)(0),[F,$]=(0,o.useState)(!1),[M,U]=(0,o.useState)(null),[L,A]=(0,o.useState)(!1),D=["SEG","TER","QUA","QUI","SEX","SAB","DOM"];(0,o.useEffect)(()=>{A(980>=window.innerWidth)},[]),(0,o.useEffect)(()=>{var e,i,n,t,o,a;I(0);let l=null==w?void 0:null===(i=w.modalidades)||void 0===i?void 0:null===(e=i.find(e=>(null==e?void 0:e.id)===v))||void 0===e?void 0:e.aulas;S((null==w?void 0:w.modalidades)?l:[]),U((null==y?void 0:null===(o=y.find(e=>e.cod_unid===j))||void 0===o?void 0:null===(t=o.modalidades)||void 0===t?void 0:null===(n=t.find(e=>e.id===v))||void 0===n?void 0:n.carousel)||(null==f?void 0:null===(a=f.find(e=>e.id===v))||void 0===a?void 0:a.carousel)||null)},[w,v,j]),(0,o.useEffect)(()=>{I(0)},[j]);let Z=()=>null==f?void 0:f.find(e=>(null==e?void 0:e.id)===v),O=()=>(null==y?void 0:y.filter(e=>{var i,n;return null===(n=Z())||void 0===n?void 0:null===(i=n.unidades)||void 0===i?void 0:i.find(i=>i===e.cod_unid)}))||[];return(0,t.jsxs)(eM,{$color:null===(e=Z())||void 0===e?void 0:e.departamento_cor_hexa,children:[(0,t.jsxs)("section",{className:"content-section",children:[Z()&&(0,t.jsxs)("div",{className:"title-content",children:[(0,t.jsx)("img",{src:null===(i=k[N])||void 0===i?void 0:i.icone_url,alt:""}),(0,t.jsxs)("section",{className:"content-section",children:[(0,t.jsx)("h3",{children:null===(n=Z())||void 0===n?void 0:n.descricao}),(0,t.jsx)("div",{className:"tag",children:null===(l=Z())||void 0===l?void 0:null===(a=l.area)||void 0===a?void 0:a.descricao})]})]}),(0,t.jsx)("span",{children:null===(r=Z())||void 0===r?void 0:r.informacao_adulto}),(0,t.jsx)("h4",{children:"Modalidade dispon\xedvel em"}),(0,t.jsxs)("select",{name:"units",onChange:e=>C(Number(e.target.value)),value:j||0,className:j?"selected":"",children:[!j&&(0,t.jsx)("option",{value:0,children:(null===(d=O())||void 0===d?void 0:d.length)?"".concat(O().length," unidades"):"Escolher Unidade"}),null===(c=O())||void 0===c?void 0:c.filter(e=>99!==e.cod_unid).map(e=>(0,t.jsx)("option",{value:e.cod_unid,children:e.nomelocal},e.cod_unid))]}),(0,t.jsx)("h4",{children:"Per\xedodo das aulas"}),(0,t.jsxs)("article",{children:[j&&(0,t.jsx)("div",{className:"week-content",children:D.map((e,i)=>(0,t.jsx)("span",{children:e},i))}),j&&(null==b?void 0:b.map((e,i)=>(0,t.jsxs)("div",{className:"period-content",children:[(0,t.jsx)("img",{src:null==e?void 0:e.src,alt:""}),(0,t.jsx)("span",{children:e.label}),D.map((e,i)=>(0,t.jsx)("div",{className:"checkbox",children:(0,t.jsx)("input",{type:"checkbox",onChange:e=>e.preventDefault(),onClick:e=>e.preventDefault(),checked:(null==E?void 0:E.find(i=>e===i.diasemana))||!1})},i))]},i))),!j&&(0,t.jsxs)(eD,{children:[(0,t.jsx)("img",{src:"/images/home.svg",alt:""}),(0,t.jsx)("h1",{children:"Selecione uma unidade"}),(0,t.jsx)("span",{children:"E visualize os departamentos e modalidades dispon\xedveis no local"})]}),(0,t.jsxs)("div",{className:"buttons",children:[(0,t.jsx)("button",{type:"button",onClick:()=>$(!0),children:"Quero experimentar"}),(0,t.jsx)(ec.default,{href:"/horarios",onClick:()=>
1{if(j){let e=null==z?void 0:z();e&&(null==_||_([{...e,label:e.nomelocal,value:e.cod_unid}]))}},children:"Acessar hor\xe1rios"})]})]})]}),(0,t.jsxs)("section",{className:"content-section image-content",children:[(0,t.jsxs)("div",{children:[(null==M?void 0:null===(p=M.itens)||void 0===p?void 0:p.length)?(0,t.jsx)("div",{className:"profile-item ".concat(0===P?"disabled":""),onClick:()=>P>0&&I(P-1),children:(0,t.jsx)("img",{src:"/images/arrow-left.svg",alt:""})}):null,(0,t.jsx)(eL,{$currentindex:P,children:null==M?void 0:null===(x=M.itens)||void 0===x?void 0:x.slice(P,1+P).map((e,i)=>(0,t.jsx)(eA,{src:L?e.midia_mobile:e.midia_desktop},i))}),(!M||!(null==M?void 0:null===(u=M.itens)||void 0===u?void 0:u.length))&&(0,t.jsx)(eA,{src:"/images/default.svg"}),(null==M?void 0:null===(h=M.itens)||void 0===h?void 0:h.length)?(0,t.jsx)("div",{className:"profile-item ".concat(1+P>=M.itens.length?"disabled":""),onClick:()=>1+P<M.itens.length&&I(P+1),children:(0,t.jsx)("img",{src:"/images/arrow-right.svg",alt:""})}):null]}),(0,t.jsx)("div",{className:"indicators",children:null==M?void 0:null===(g=M.itens)||void 0===g?void 0:null===(m=g.slice(0,4))||void 0===m?void 0:m.map((e,i)=>(0,t.jsx)("button",{className:P===i?"indicator":"indicator inactive",onClick:()=>I(i),name:"indicator"},i))})]})]})}function eb(e){let{mapsKey:i="",...n}=e,[a,l]=(0,o.useState)(0),[r,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{d(1200>=window.innerWidth)},[]),(0,t.jsxs)(ew,{children:[(0,t.jsx)(ex,{mapsKey:i}),(0,t.jsx)(eh,{}),r&&(0,t.jsx)(eg,{}),!r&&(0,t.jsx)(em,{setNewLeft:l,newLeft:a}),!r&&(0,t.jsx)(ev,{})]})}let ew=d.ZP.article.withConfig({componentId:"sc-9ba4c950-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;padding-top:50px;background-color:#F7F6F6;@media ","{padding-top:0;}"],p.U.laptop),ej=d.ZP.div.withConfig({componentId:"sc-9ba4c950-1"})(["width:80%;max-width:1078px;border-radius:17px 17px 0 0;padding:50px;background:#222a33;font-family:Lexend;font-size:17px;font-weight:500;line-height:25.5px;text-transform:uppercase;user-select:none;@media ","{width:100%;margin:-14px 0 0 0;z-index:1;padding:0;}h4{display:flex;align-items:center;justify-content:center;margin-top:40px;}h1{font-family:Poppins;font-size:35px;font-weight:800;line-height:38.15px;text-align:center;margin-bottom:30px;text-transform:math-auto;@media ","{font-size:25px;padding:40px 30px 0 30px;}}.find-content{align-items:center;display:flex;font-family:Lexend;.span{width:80%;font-weight:500;font-size:17px;text-transform:initial;}.h2{font-size:37.2px;font-weight:700;line-height:55.8px;}.h2,img{margin:0 10px 0 0;}@media ","{flex-direction:column;margin-bottom:30px;padding:0 30px;img{display:none;}.span{width:80%;text-align:center;}}}.find-informations{display:flex;form{width:100%;}span{display:flex;align-items:center;margin:0 10px;}select{border-radius:12px;padding:16px 58px;margin-left:24px;background:url('/images/cursor.svg') no-repeat 90% #26323e !important;&.selected{color:#f5fa00;}}@media ","{flex-direction:column;align-items:center;padding:0 30px 50px 30px;button{display:none;}select{width:100%;margin-left:0;}section{width:90% !important;}span{margin:10px 0;}}.find-select{padding:8px 12px;width:80%;background:#131a21;border:1px solid #424242;border-radius:12px;display:flex;align-items:center;input{width:95%;color:white;background:transparent;border:none;outline:none;}img:last-child{cursor:pointer;}}button{padding:10px 20px;border-radius:50px;color:white;background:#222a33;cursor:pointer;border:1px solid white;margin:0 20px;font-size:14px;font-weight:400;&:hover{background:#c3202a;border-color:#c3202a;}}}.maps{display:flex;gap:20px;margin:50px 0 -50px 0;@media ","{flex-direction:column;height:700px;padding:0 0 0 20px;margin:0 0 -50px 0;}.map{position:relative;@media ",'{[data-testid="map"]{height:75% !important;}}&.map-content{margin:40px 0 50px 0;div{border-radius:16px;}@media ',"{margin:0 20px 0 0;}}&:first-child{flex:1;}&:last-child{flex:2;}.cards{display:flex;flex-direction:column;height:390px;overflow-y:auto;margin-top:5px;padding-right:15px;@media ","{flex-direction:row;height:auto;}.card{cursor:pointer;display:flex;border-radius:16px;padding:20px;background:#0c1621;margin-top:10px;border:1px solid #20354b;width:390px;height:118px;min-height:108px;min-width:270px;position:relative;@media ","{font-size:14px;span:first-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px !important;min-height:20px;}&:not(:last-of-type){margin-right:10px;}}.unit-img{border-radius:16px;margin-right:15px;object-fit:cover;width:108px;}.content-card{display:flex;flex-direction:column;span:first-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;min-height:20px;}}&.selected{background:#991c24;}
1&:not(.selected){span{&.second-type{color:#908e90;}&:not(:first-of-type,:last-of-type).second{border:1px solid #20354b;background-color:#0c1621;}}}input[type=\"checkbox\"]{position:absolute;top:20px;right:20px;border:1px solid #20354b;border-radius:5px;width:27px;height:27px;background-color:#0c1621;appearance:none;&:checked{background:#56080C;border:1.06px solid #6C1419;}&:checked::before{content:'';position:absolute;top:7px;left:6px;width:14px;height:14px;background-image:url(/images/check.svg);background-size:contain;background-repeat:no-repeat;}}span{&:not(:first-of-type){font-family:Lexend;font-size:12px;font-weight:300;line-height:18px;}&:not(:first-of-type,:last-of-type){display:flex;align-items:center;justify-content:center;background:#5c0e12;border-radius:20px;width:75px;padding:8px 10px;text-align:center;margin:10px 0;img{padding-right:8px;}}}}}.fade{width:100%;bottom:0;height:30px;position:absolute;background:linear-gradient(rgb(33 42 51 / 67%),rgb(12 22 33 / 78%));@media ","{display:none;}}}}"],p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop,p.U.laptop),ey=d.ZP.div.withConfig({componentId:"sc-9ba4c950-2"})(["width:180px;height:190px;cursor:pointer;background-image:url(",");background-size:contain;display:flex;align-items:flex-end;margin-right:-50px;text-transform:uppercase;user-select:none;text-align:center;@media ","{background-size:cover;text-align:left;&:not(:first-child){min-width:174px;margin-right:-40px;}}&.mobile-carousel-item{margin-right:-50px !important;flex-shrink:0;&:not(.selected-group){filter:grayscale(100%) brightness(50%);z-index:1;}&.placeholder{background-image:none;filter:none;cursor:default;z-index:0;opacity:0.8;}&.placeholder-left{background:linear-gradient(270deg,rgba(38,50,62,0.7) 0%,rgba(12,22,33,0) 100%);}&.placeholder-right{background:linear-gradient(90deg,rgba(38,50,62,0.7) 0%,rgba(12,22,33,0) 100%);}&.selected-group{z-index:5;filter:none;span{text-align:center;}}&:first-child,&:last-child{width:180px;background:url(",");background-size:cover;transform:none;border-radius:0;justify-content:center;align-items:flex-end;margin-left:0;> img:not(.selected){display:none;}&.placeholder-left{background:linear-gradient(270deg,rgba(38,50,62,0.7) 0%,rgba(12,22,33,0) 100%);}&.placeholder-right{background:linear-gradient(90deg,rgba(38,50,62,0.7) 0%,rgba(12,22,33,0) 100%);}}}&.selected-group{position:relative;img{&.selected{position:absolute;left:-15px;bottom:-20px;width:210px;}@media ","{position:relative;}}}span{font-family:Montserrat;font-size:12px;font-weight:800;word-break:break-word;width:70%;margin-bottom:10px;}&:not(.mobile-carousel-item):not(:first-child):not(:last-child):not(.selected-group){filter:grayscale(90%);}&:not(.mobile-carousel-item):first-child{background:linear-gradient(-90deg,#26323e 0%,rgba(12,23,34,0) 50%);margin-right:-5px;justify-content:flex-end;img{margin-right:10px;-webkit-transform:skew(16deg);transform:skew(16deg);width:40px;}&.disabled{z-index:3;img{filter:grayscale(100%) brightness(50%);pointer-events:none;}}@media ","{display:none;}}&:not(.mobile-carousel-item):last-child{background:linear-gradient(90deg,#26323e 0%,rgba(12,23,34,0) 50%);margin-left:10px;img{margin-left:10px;-webkit-transform:skew(16deg);transform:skew(16deg);width:40px;}&.disabled{z-index:3;img{filter:grayscale(100%) brightness(50%);pointer-events:none;}}position:absolute;right:120px;@media ","{display:none;}}&:not(.mobile-carousel-item):first-child,&:not(.mobile-carousel-item):last-child{width:100px;-webkit-transform:skew(-16deg);transform:skew(-16deg);border-radius:12px;align-items:center;display:flex;}&:nth-child(7){width:185px;margin-right:-34px;}"],e=>e.$img,p.U.laptop,e=>e.$img,p.U.laptop,p.U.laptop,p.U.laptop),ek=d.ZP.div.withConfig({componentId:"sc-9ba4c950-3"})(["width:80%;max-width:1078px;padding:15px 50px 24px 50px;background:#0c1621;position:relative;.types-content{display:flex;justify-content:center;margin:40px 0;button{width:268px;height:40px;border-radius:140px;border:none;background:#344454;color:#e4e4e7;text-align:center;font-family:Lexend;font-size:12px;font-weight:800;cursor:pointer;text-transform:uppercase;&:not(:last-of-type){margin-right:20px;}&.selected{background:#ff3d00;}}}.profile-content{display:flex;position:relative;@media ","{overflow:hidden;height:230px;padding:0 8px;justify-content:center;}}.find-content{align-items:center;display:flex;font-family:Lexend;.span{width:80%;font-weight:500;font-size:17px;text-transform:initial;}.h2{font-size:37.2px;font-weight:700;line-height:55.8px;}.h2,img{margin:0 10px 0 0;}@media ","{flex-direction:column;margin-bottom:30px;img{display:none;}.span{width:80%;text-align:center;}}}@media ","{width:100%;padding:20px 0 50px 0;.find-content{padding:15px 50px 5px 50px;position:relative;}.types-content{padding:0;display:flex;flex-direction:column;align-items:center;margin:0 0 30px 0;button{margin-right:0 !important;margin-bottom:20px;}}}"],p.U.laptop,p.U.laptop,p.U.laptop),eN=d.ZP.div.withConfig({componentId:"sc-9ba4c950-4"})(["display:none;@media ","{display:flex;justify-content:center;align-items:center;margin-top:15px;gap:12px;}"],p.U.laptop),eC=d.ZP.div.withConfig({componentId:"sc-9ba4c950-5"})(["width:12px;height:12px;border-radius:50%;border:1px solid #FFFFFF;background-color:",";cursor:pointer;transition:all 0.3s ease;"],e=>e.$isActive?"#FFFFFF":"transparent"),ez=d.ZP.div.withConfig({componentId:"sc-9ba4c950-6"})(["width:80%;max-width:1078px;padding:15px 50px 27px 50px;background:#230804;box-shadow:0px 4px 8px 0px #190a077d;border:0.93px solid;position:relative;border-image-source:linear-gradient(180deg,rgba(106,56,48,0.5) 0%,rgba(114,58,49,0.5) 100%);
1.indicator{border:0.5px solid #a86f79;opacity:0.5;position:relative;margin:30px 10px 0 10px;}.cards{display:flex;margin-top:24px;align-items:center;position:relative;.modality-cards{display:flex;width:90%;}.arrow{background-color:#c3202a;box-shadow:0px 4px 4px 0px #00000040;cursor:pointer;border-radius:10px;padding:7px;height:25px;&.disabled{cursor:default;filter:brightness(0.3);}&:first-child{margin-right:20px;}}}.find-content{align-items:center;display:flex;.span{width:80%;font-weight:500;font-size:17px;text-transform:initial;}.h2{font-family:Lexend;font-size:37.2px;font-weight:700;line-height:55.8px;}.h2,img{margin:0 10px 0 0;}@media ","{flex-direction:column;margin-bottom:30px;img{display:none;}.span{width:80%;text-align:center;}}}"],p.U.laptop),e_=d.ZP.div.withConfig({componentId:"sc-9ba4c950-7"})(["transform:translateX(",'px);position:absolute;bottom:0;height:0;width:0;transition:all 0.3s ease;&::before{content:"";position:absolute;top:-10px;left:50%;transform:translateX(-50%);border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #a86f79;}'],e=>{var i;return(null!==(i=e.$newLeft)&&void 0!==i?i:0)+100}),eE=d.ZP.div.withConfig({componentId:"sc-9ba4c950-8"})(["display:flex;flex-direction:column;
1cursor:pointer;align-items:center;border-radius:15px;width:119px;height:148px;margin-right:16px;border:1px solid #6a3830;background:#330609;box-shadow:0px 4px 8px 0px rgba(25,10,7,0.49);color:#e4e4e7;text-align:center;font-family:Lexend;font-weight:800;text-transform:uppercase;user-select:none;&.selected,&:hover{background:linear-gradient(180deg,#ff3d00 0%,#ff3d00 100%);box-shadow:0 -5px 14px 0 rgb(195 32 42 / 75%),0 4px 10px 0 rgb(195 32 42 / 75%);.tag{background:white;color:#ff3d00;}}span{text-align:center;width:90px;font-size:10px;line-height:14px;word-break:break-word;}.tag{border-radius:180px;background:",";padding:5px 10px;font-size:8px;margin-top:15px;}.modality_icon{width:30px;margin:15px 0;}"],e=>e.$color),eS=d.ZP.div.withConfig({componentId:"sc-9ba4c950-9"})(["width:100%;background:#230804;box-shadow:0px 4px 8px 0px #190a077d;position:relative;border-top:1px solid rgba(106,56,48,0.5);color:#fff;.expanded-cards{width:100%;margin-top:20px;}.find-content{align-items:center;display:flex;flex-direction:column;margin-bottom:20px;font-family:Lexend;padding:30px 50px 0 50px;span{width:80%;text-align:center;font-weight:400;font-size:14px;line-height:1.2;}h2{font-size:40px;font-weight:700;line-height:1;margin:0 0 10px 0;}}.cards{padding:0 30px 30px 30px;min-height:550px;display:flex;flex-direction:column;justify-content:space-between;}"]),eP=d.ZP.div.withConfig({componentId:"sc-9ba4c950-10"})(["display:flex;align-items:center;font-family:Lexend;font-weight:800;font-size:12.72px;padding:20px 0;border-bottom:1px solid #51201d;position:relative;flex-direction:column;align-items:flex-start;img{width:28.5px;height:28.5px;&.arrow{width:16px;height:16px;position:absolute;right:10px;cursor:pointer;}}.tag{border-radius:180px;background:",";padding:5px 10px;font-size:8px;text-transform:uppercase;color:#fff;}span{margin:0 10px;text-transform:uppercase;}.header-card{display:flex;width:100%;cursor:pointer;.tag-content{display:flex;align-items:center;width:80%;}}.expanded-cards{width:100%;margin-top:20px;}"],e=>e.$color),eI=d.ZP.div.withConfig({componentId:"sc-9ba4c950-11"})(["display:flex;justify-content:center;align-items:center;gap:15px;margin-top:30px;font-family:Lexend;"]),eF=d.ZP.span.withConfig({componentId:"sc-9ba4c950-12"})(["font-size:25px;cursor:pointer;font-weight:",";color:",";transition:all 0.2s ease;&:hover{color:#FF4500;}"],e=>e.$isActive?"700":"400",e=>e.$isActive?"#FF4500":"#FFFFFF"),e$=d.ZP.span.withConfig({componentId:"sc-9ba4c950-13"})(["font-size:16px;color:#FFFFFF;cursor:pointer;font-weight:300;margin-left:10px;&:hover{color:#FF4500;}"]),eM=d.ZP.div.withConfig({componentId:"sc-9ba4c950-14"})(['text-transform:uppercase;user-select:none;display:flex;width:80%;max-width:1078px;padding:15px 50px 50px 50px;background:#230804;box-shadow:0px 4px 8px 0px #190a077d;border:0.93px solid;border-image-source:linear-gradient(180deg,rgba(106,56,48,0.5) 0%,rgba(114,58,49,0.5) 100%);color:#e4e4e7;font-family:Lexend;font-size:10px;font-weight:600;line-height:18px;border-radius:0 0 17px 17px;margin-bottom:50px;.buttons{button,a{border-radius:61px;font-family:Lexend;font-size:14px;font-weight:400;line-height:150%;padding:13px 24px;margin-top:40px;color:white;cursor:pointer;}button{background:#c3202a;border:1px solid #c3202a;margin-right:16px;&:hover{background:#680006;border-color:#680006;}}a{border:1px solid #fff;background:#230804;&:hover{background:#c3202a;border-color:#c3202a;}}}.content-section{width:40%;position:relative;&.image-content{flex-direction:column;.indicators{display:flex;justify-content:center;margin-top:20px;.indicator{width:16px;height:16px;border-radius:100%;box-shadow:0 0 5px #fff;border:1px solid white;margin:0 10px;background-color:white;cursor:pointer;&.inactive{box-shadow:none;background-color:transparent;}}}}article{max-width:453px;.period-content{display:flex;background:rgba(73,13,4,0.44);text-transform:uppercase;border:0.6px solid #3c221e;&:nth-child(3){border:0.607px solid #3c221e;background:rgba(122,82,76,0.61);}&:nth-child(2){border-radius:9px 0 0 0;}&:nth-child(4){border-radius:0 0 9px 9px;}img{margin:8px;}span{font-size:12px;font-weight:600;width:60px;margin:8px 6px 0 0;}.checkbox{width:60px;display:flex;justify-content:center;align-items:center;&:first-of-type{border-left:0.6px solid #3c221e;}&:not(:last-of-type){border-right:0.6px solid #3c221e;}input[type="checkbox"]{transform:scale(2);cursor:pointer;&:checked{accent-color:#ff3d00;}&:not(:checked){appearance:none;border-radius:3px;width:14px;
1height:14px;background-color:#5b3831;border:0.6px solid #3C221E;}}}}.week-content{display:flex;border-radius:9px 9px 0 0;border:0.6px solid #3c221e;margin-left:96px;span{display:flex;justify-content:center;padding:4px 6px;&:not(:last-of-type){border-right:1px solid #3c221e;}}}}&:first-of-type{width:60%;align-items:center;}&:last-of-type{display:flex;.profile-item{background:#c3202a;padding:8px;border-radius:6px;margin:-15px;z-index:1;display:flex;cursor:pointer;height:25px;position:absolute;top:250px;&:last-of-type{right:20px;}&:first-of-type{left:-10px;}img{width:26px;}&:hover{background:#680006;}&.disabled{cursor:default;filter:brightness(0.3);&:hover{background:#c3202a;}}}}}.title-content{display:flex;flex-direction:column;img{width:41px;height:41px;}h3{color:#fff;font-family:Montserrat;font-size:20px;font-weight:800;line-height:25px;}.tag{border-radius:180px;background:',";padding:5px 10px;font-size:8px;height:15px;margin-left:20px;display:flex;align-items:center;}}h4{color:#fff;font-family:Poppins;font-size:16px;font-weight:800;margin:24px 0;}span{font-size:16px;font-weight:300;line-height:24px;width:90%;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;text-align:justify;}select{border-radius:12px;padding:16px 25px;background:url('/images/cursor.svg') no-repeat 90% #51292c !important;width:300px;&.selected{color:#f5fa00;}}"],e=>e.$color),eU=d.ZP.div.withConfig({componentId:"sc-9ba4c950-15"})(["width:100%;display:flex;align-items:center;flex-direction:column;.content-section{margin:20px 0;&.image-content{flex-direction:column;.indicators{display:flex;justify-content:center;margin-top:20px;.indicator{width:16px;height:16px;border-radius:100%;box-shadow:0 0 5px #fff;border:1px solid white;margin:0 10px;background-color:white;cursor:pointer;&.inactive{box-shadow:none;background-color:transparent;}}}}}.title{font-family:Lexend;font-weight:300;font-size:14px;line-height:21px;text-align:center;margin:20px 30px;color:#E4E4E7;}article{.period-content{display:flex;background:rgba(73,13,4,0.44);text-transform:uppercase;border:0.6px solid #3c221e;&:nth-child(3){border:0.607px solid #3c221e;background:rgba(122,82,76,0.61);}&:nth-child(2){border-radius:9px 0 0 0;}&:nth-child(4){border-radius:0 0 9px 9px;}img{margin:8px;width:20px;height:20px;}span{font-size:12px;font-weight:600;width:40px;margin:8px 6px 0 0;}.checkbox{width:40px;display:flex;justify-content:center;align-items:center;&:first-of-type{border-left:0.6px solid #3c221e;}&:not(:last-of-type){border-right:0.6px solid #3c221e;}input[type=\"checkbox\"]{transform:scale(2);cursor:pointer;&:checked{accent-color:#ff3d00;}&:not(:checked){appearance:none;border-radius:3px;width:14px;height:14px;background-color:#5b3831;border:0.6px solid #3C221E;}}}}.week-content{display:flex;border-radius:9px 9px 0 0;border:0.6px solid #3c221e;margin-left:83px;span{display:flex;justify-content:center;padding:4px 6px;margin:0;&:not(:last-of-type){border-right:1px solid #3c221e;}}}}h4{color:#fff;font-family:Poppins;font-size:12px;font-weight:800;margin:24px 0;text-align:center;}select{border-radius:12px;padding:16px 25px;background:url('/images/cursor.svg') no-repeat 90% #51292c !important;&.selected{color:#f5fa00;}}.buttons{display:flex;flex-direction:column;align-items:center;margin-top:10px;button,a{border-radius:61px;font-family:Lexend;font-size:14px;font-weight:400;padding:13px 24px;color:white;cursor:pointer;}button{background:#c3202a;border:1px solid #c3202a;margin:20px 0;&:hover{background:#680006;border-color:#680006;}}a{border:1px solid #fff;background:#230804;&:hover{background:#c3202a;border-color:#c3202a;}}}"]),eL=d.ZP.div.withConfig({componentId:"sc-9ba4c950-16"})(["display:flex;transition:transform 0.5s ease-in-out;transform:",";"],e=>{let i=-((e.$currentindex-1)*10),n=100*e.$currentindex;return"translateX(-".concat(Math.min(n,i/2),"%)")}),eA=d.ZP.div.withConfig({componentId:"sc-9ba4c950-17"})(["background-image:url(",");background-size:cover;width:400px;height:468px;border-radius:15px;"],e=>e.src),eD=d.ZP.div.withConfig({componentId:"sc-9ba4c950-18"})(["display:flex;justify-content:center;flex-direction:column;align-items:center;padding:20px;width:100%;background:linear-gradient(90deg,rgba(19,0,1,0.72) 0%,rgba(19,0,1,0.72) 100%);img{margin-bottom:10px;width:30px;}h1{font-family:Poppins;font-size:18px;font-weight:800;line-height:19px;margin-bottom:5px;}span{font-family:Lexend;font-size:12px;font-weight:300;line-height:18px;color:#e4e4e7;text-align:center;}@media ","{h1{font-size:25px;line-height:35px;}span{font-size:14px;}h1,span{max-width:50vh;text-align:center;}}"],p.U.laptop);function eZ(e){var i,n,d,c;let{principal:p,initialUnitId:u,mapsKey:h=""}=e,[m,g]=(0,o.useState)(!1),[f,v]=(0,o.useState)(!1),{setSelectedUnit:b,selectedUnit:w,principal:j}=(0,o.useContext)(s.k),y=(0,a.useSearchParams)().get("p"),k=null!=j?j:p;(0,o.useEffect)(()=>{u&&b(u)},[u]),(0,o.useEffect)(()=>{y&&v(!0)},[]);let N=(null==k?void 0:null===(n=k.componentes_unidades)||void 0===n?void 0:null===(i=n.find(e=>{var i;return(null==e?void 0:null===(i=e.unidade)||void 0===i?void 0:i.id)===w}))||void 0===i?void 0:i.componentes)||(null==k?void 0:null===(c=k.componentes_unidades)||void 0===c?void 0:null===(d=c.find(e=>{var i;return(null==e?void 0:null===(i=e.unidade)||void 0===i?void 0:i.id)===99}))||void 0===d?void 0:d.componentes),C=e=>{var i,n;let a={component:e},l={A:(0,t.jsx)(A,{...a}
1),B:(0,t.jsx)(Z,{...a}),C:(0,t.jsx)(_,{...a}),G:(0,t.jsx)(ea,{...a}),N:null,T:(0,o.createElement)(eb,{...a,mapsKey:h,key:"modalities-key"})},r={S:null,N:(0,t.jsx)(J,{...a})},d={B:{N:(0,o.createElement)(R,{...a,key:"benefits-key"}),S:null},D:l,E:r,C:{C:(0,o.createElement)(Q,{...a,key:"club-key"}),S:null}};return null!==(n=null==d?void 0:null===(i=d[e.tipo])||void 0===i?void 0:i[e.subtipo])&&void 0!==n?n:null};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z,{setOpen:g,open:m}),null==N?void 0:N.map((e,i)=>(0,t.jsx)(o.Fragment,{children:C(e)},"principal-".concat(i))),(0,t.jsx)(r.Footer,{}),f&&w&&(0,t.jsx)(x,{setClose:v,close:f})]})}},60770:function(e,i,n){n.d(i,{R:function(){return d}});var t=n(57437),o=n(92840),a=n(2265),l=n(91336),r=n(61430);function d(e){let{url:i,setClose:n,close:o,closeLabel:r="Voltar \xe0 p\xe1gina anterior"}=e,{setOpenMenu:d}=(0,a.useContext)(l.k),c=980>=window.innerWidth;(0,a.useEffect)(()=>{if(!i){null==n||n(!1);return}return document.documentElement.style.overflow="hidden",window.history.pushState(null,"",window.location.href),()=>{document.documentElement.style.overflow="auto"}},[o]),(0,a.useEffect)(()=>{let e=e=>{o&&(n(!1),e.preventDefault())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[o,n]);let p=()=>{document.documentElement.style.overflow="auto",n(!1),window.history.back()};return(0,t.jsx)(s,{children:(0,t.jsxs)("div",{className:"content-container",onClick:e=>{e.target.classList.contains("content-container")&&p()},children:[(0,t.jsxs)("section",{children:[c&&(0,t.jsx)("img",{src:"/images/menu.svg",onClick:()=>{p(),d(!0)},alt:"Menu",className:"menu"}),(0,t.jsx)("div",{className:"close ".concat(c?"mobile":"outside"),onClick:p,children:r}),(0,t.jsx)("iframe",{src:i})]}),(0,t.jsx)("section",{})]})})}let s=o.ZP.article.withConfig({componentId:"sc-d6536025-0"})(["position:fixed;top:0;z-index:8;width:100%;height:100%;background:linear-gradient(180deg,#3b2327 0%,#0e0d0d80 90%,#0e0d0d80 100%);iframe{width:170vh;height:85vh;border:none;border:2px solid #c3202a;@media ","{width:100%;height:100%;border:none;}}.content-container{display:flex;align-items:center;justify-content:center;height:100%;section{display:flex;position:relative;width:auto;@media ","{width:100%;height:100%;&:last-of-type{display:none;}}}.menu{position:absolute;left:20px;top:40px;width:25px;}.close{position:absolute;background:#c3202a;color:white;padding:13px 22px;border-radius:61px;border-style:none;cursor:pointer;font-family:Lexend;font-size:16px;font-weight:400;line-height:24px;&:hover{background:#680006;}&.outside{left:40%;top:-23px;}&.mobile{top:20px;right:20px;}}}"],r.U.laptop,r.U.laptop)}}]);

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.