PageSourceSearch

https://abrilsignature.com.br/_next/static/chunks/81461-c936540b23cd8c11.js

js abrilsignature.com.br collected 2026-10-04 20:43:02 UTC 167,114 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81461],{146767:(e,l,a)=>{a.d(l,{Bc:()=>r,ZI:()=>c,k$:()=>d,m_:()=>o});var t=a(695155),s=a(126852),n=a(212115),i=a(964269);let r=s.Kq,o=s.bL,d=s.l9,c=n.forwardRef((e,l)=>{let{className:a,sideOffset:n=4,...r}=e;return(0,t.jsx)(s.UC,{ref:l,sideOffset:n,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})});c.displayName=s.UC.displayName},182132:(e,l,a)=>{a.d(l,{q:()=>em});var t=a(695155),s=a(585515),n=a(914323),i=a(602528),r=a(529633),o=a(950927),d=a(664982),c=a(189592),u=a(115815),m=a(659556),x=a(942499),h=a(476733),f=a(821966),p=a(596047),g=a(359895),j=a(771804),b=a(829599),v=a(804924),y=a(173593),N=a(908198),w=a(741076),k=a(619474),C=a(412498),S=a(287526),E=a(269587),z=a(539604),A=a(40872),I=a(7596),_=a(762742),L=a(729021),R=a(60952),P=a(811908),T=a(738748),D=a(659668),O=a(139068),U=a(924425),q=a(238565),F=a(446577),B=a(623896),$=a(610512),M=a(545221),V=a(717085),H=a(816645),W=a(395740),G=a(476378),J=a(965993),X=a(353873),K=a(445483),Y=a(911621),Z=a(320779),Q=a(426341),ee=a(557076),el=a(353568),ea=a(38707),et=a(943586),es=a(507658),en=a(458071),ei=a(842572),er=a(578435),eo=a(945345);let ed={Serviços:(0,t.jsx)(s.default,{}),Educação:(0,t.jsx)(n.default,{}),Entretenimento:(0,t.jsx)(i.default,{}),Turismo:(0,t.jsx)(r.default,{}),Beleza:(0,t.jsx)(o.default,{}),Esportes:(0,t.jsx)(d.default,{}),Alimentação:(0,t.jsx)(c.default,{}),Hotéis:(0,t.jsx)(u.default,{})},ec={oglobo:ed,folhaGourmet:{Italiana:(0,t.jsx)(c.default,{}),Japonesa:(0,t.jsx)(m.default,{}),Portuguesa:(0,t.jsx)(x.default,{}),Brasileira:(0,t.jsx)(h.default,{}),Hamburgueria:(0,t.jsx)(f.default,{}),Pizzaria:(0,t.jsx)(p.default,{}),Coquetelaria:(0,t.jsx)(g.default,{}),Vegana:(0,t.jsx)(j.default,{}),Contemporânea:(0,t.jsx)(b.default,{}),Indiana:(0,t.jsx)(v.default,{}),Carnes:(0,t.jsx)(y.default,{}),Parrilla:(0,t.jsx)(N.default,{}),Latina:(0,t.jsx)(w.default,{}),Peruana:(0,t.jsx)(v.default,{}),Mexicana:(0,t.jsx)(k.default,{}),Francesa:(0,t.jsx)(C.default,{}),Árabe:(0,t.jsx)(S.default,{}),Cafeteria:(0,t.jsx)(E.default,{}),Saudável:(0,t.jsx)(z.default,{}),Variada:(0,t.jsx)(s.default,{}),Gelateria:(0,t.jsx)(A.default,{}),Bar:(0,t.jsx)(C.default,{})},folha:{"Cultura e Lazer":(0,t.jsx)(I.default,{}),Teatro:(0,t.jsx)(_.default,{}),Show:(0,t.jsx)(L.default,{}),Delivery:(0,t.jsx)(R.default,{})}},eu={Varejo:(0,t.jsx)(P.default,{}),Serviços:(0,t.jsx)(T.default,{}),Produtos:(0,t.jsx)(D.default,{}),Online:(0,t.jsx)(O.default,{}),Saúde:(0,t.jsx)(U.default,{}),Educação:(0,t.jsx)(q.default,{}),Cosméticos:(0,t.jsx)(F.default,{}),Entretenimento:(0,t.jsx)(B.default,{}),"E-commerce":(0,t.jsx)($.default,{}),Turismo:(0,t.jsx)(M.default,{}),Bebidas:(0,t.jsx)(V.default,{}),Variedades:(0,t.jsx)(H.default,{}),Academia:(0,t.jsx)(d.default,{}),Beleza:(0,t.jsx)(W.default,{}),Esportes:(0,t.jsx)(G.default,{}),Casa:(0,t.jsx)(J.default,{}),Moda:(0,t.jsx)(X.default,{}),Pet:(0,t.jsx)(K.default,{}),Eletrônicos:(0,t.jsx)(Y.default,{}),Transporte:(0,t.jsx)(Z.default,{}),Alimentação:(0,t.jsx)(Q.default,{}),Cinemas:(0,t.jsx)(ee.default,{}),Hotéis:(0,t.jsx)(el.default,{}),Bares:(0,t.jsx)(g.default,{}),Lazer:(0,t.jsx)(ea.default,{}),Teatros:(0,t.jsx)(_.default,{}),Shows:(0,t.jsx)(et.default,{}),Eventos:(0,t.jsx)(es.default,{}),"Bem-estar":(0,t.jsx)(en.default,{}),"Em cartaz":(0,t.jsx)(ei.default,{}),Todas:(0,t.jsx)(er.default,{})},em=(e,l)=>{var a,s;let n=l?ec[l]:void 0;return null!=(s=null!=(a=null==n?void 0:n[e])?a:eu[e])?s:(0,t.jsx)(eo.default,{})}},268326:(e,l,a)=>{a.d(l,{A:()=>s});var t=a(212115);function s(){let[e,l]=(0,t.useState)(null),[a,s]=(0,t.useState)(null),[n,i]=(0,t.useState)(null),[r,o]=(0,t.useState)(null),[d,c]=(0,t.useState)(null);return(0,t.useEffect)(()=>
1{if(window){let e=window.navigator.userAgent;c(e),s(e.indexOf("SamsungBrowser")>-1?"SamsungBrowser":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("FxiOS")>-1?"FirefoxiOS":e.indexOf("CriOS")>-1?"ChromeiOS":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Safari")>-1?"Safari":"unknown");let a=e.match(/iPhone|iPad|iPod/i),t=e.match(/Android/i);i(!!a),l(!!(a||t)),window.matchMedia("(display-mode: standalone)").matches&&o(!0)}},[]),{isMobile:e,userAgent:a,isIOS:n,isStandalone:r,userAgentString:d}}},451180:(e,l,a)=>{a.d(l,{X:()=>t});let t=(0,a(495988).vt)()((e,l)=>({allEstablishments:[],qtdSkipExclusiveEstablishments:0,qtdSkipUrbisEstablishments:0,setAllEstablishments:a=>{e({allEstablishments:[...l().allEstablishments,...a]})},setQtdSkipExclusiveEstablishments:l=>{e({qtdSkipExclusiveEstablishments:l})},setQtdSkipUrbisEstablishments:l=>{e({qtdSkipUrbisEstablishments:l})},selectedCategory:{},setSelectedCategory:l=>e({selectedCategory:l}),clearAllEstablishments:()=>e({allEstablishments:[]})}))},459992:(e,l,a)=>{a.d(l,{w:()=>i});var t=a(653455),s=a(313797),n=a(228748);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,l=(0,n._2)();return(0,t.I)({queryKey:["categories",e],queryFn:async()=>l?(await s.Ay.get("/whiteLabel/".concat(l.id,"/categories-for-club"),{params:{type:e,paginable:!1,orderBy:"order",sort:"asc"}})).data.data.data:[],enabled:!!l,initialData:[]})}},471249:(e,l,a)=>{a.d(l,{s:()=>i});var t=a(212115),s=a(228748);let n=["a8c54abc-fd8e-45be-b58c-b296bb3df4e6","1dceb2b1-b3a7-4f7f-8355-28af10345460"],i=()=>{let[e,l]=(0,t.useState)(!1),a=(0,s._2)();return(0,t.useEffect)(()=>{(null==a?void 0:a.id)&&l(n.includes(null==a?void 0:a.id))},[a]),e}},614183:(e,l,a)=>{a.d(l,{G:()=>y});var t=a(695155),s=a(505917),n=a(212115),i=a(964269),r=a(518078),o=a(242967),d=a(886651),c=a(637135);a(851834);var u=a(3998),m=a(146767);let x=n.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(o.uB,{ref:l,className:(0,i.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...s})});x.displayName=o.uB.displayName;let h=n.forwardRef((e,l)=>{let{className:a,clearable:s=!1,onClear:n,...r}=e;return(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(d.default,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(o.uB.Input,{ref:l,className:(0,i.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...r}),s&&(0,t.jsx)(m.Bc,{children:(0,t.jsxs)(m.m_,{children:[(0,t.jsx)(m.k$,{asChild:!0,children:(0,t.jsx)(u.$,{variant:"ghost",size:"icon",className:"h-8 w-12",onClick:e=>{e.preventDefault(),n&&n()},children:(0,t.jsx)(c.default,{size:16})})}),(0,t.jsx)(m.ZI,{side:"right",children:"Limpar Sele\xe7\xe3o"})]})})]})});h.displayName=o.uB.Input.displayName;let f=n.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(o.uB.List,{ref:l,className:(0,i.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...s})});f.displayName=o.uB.List.displayName;let p=n.forwardRef((e,l)=>(0,t.jsx)(o.uB.Empty,{ref:l,className:"py-6 text-center text-sm",...e}));p.displayName=o.uB.Empty.displayName;let g=n.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(o.uB.Group,{ref:l,className:(0,i.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),...s})});g.displayName=o.uB.Group.displayName,n.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(o.uB.Separator,{ref:l,className:(0,i.cn)("-mx-1 h-px bg-border",a),...s})}).displayName=o.uB.Separator.displayName;let j=n.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(o.uB.Item,{ref:l,className:(0,i.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a),...s})});j.displayName=o.uB.Item.displayName;var b=a(468725),v=a(426333);let y=e=>{let{placeholder:l,disabled:a,value:s,onChange:i,options:o,searchPlaceholder:d,clearable:c,onClear:m}=e,x=(0,r.U)("(min-width: 768px)"),[h,f]=n.useState(!1),p=(0,n.useMemo)(()=>-1===o.findIndex(e=>e.value===s)?null:s,[s,o]);return x?(0,t.jsxs)(v.AM,{open:h,onOpenChange:f,children:[(0,t.jsx)(v.Wv,{asChild:!0,children:(0,t.jsx)(u.$,{variant:"outline",className:"justify-start w-full",disabled:a,children:p||l})}),(0,t.jsx)(v.hl,{className:"z-[9999] w-full p-0",align:"start",children:(0,t.jsx)(N,{setOpen:f,selectedOption:null!=p?p:"",onCh
1ange:i,searchPlaceholder:d,options:o,clearable:c,onClear:m})})]}):(0,t.jsxs)(b._s,{open:h,onOpenChange:f,children:[(0,t.jsx)(b.Uz,{asChild:!0,children:(0,t.jsx)(u.$,{variant:"outline",className:"w-full justify-start",children:p||l})}),(0,t.jsx)(b.zj,{children:(0,t.jsx)("div",{className:"mt-4 border-t",children:(0,t.jsx)(N,{setOpen:f,selectedOption:null!=p?p:"",onChange:i,searchPlaceholder:d,options:o,clearable:c,onClear:m})})})]})};function N(e){let{setOpen:l,onChange:a,searchPlaceholder:n,options:r,selectedOption:o,clearable:d,onClear:c}=e;return(0,t.jsxs)(x,{children:[(0,t.jsx)(h,{placeholder:n,clearable:d,onClear:c}),(0,t.jsxs)(f,{children:[(0,t.jsx)(p,{children:"Sem resultado"}),(0,t.jsx)(g,{children:r.map(e=>(0,t.jsxs)(j,{value:e.value,onSelect:e=>{if(e){var t;a((null==(t=r.find(l=>l.value===e))?void 0:t.label)||null),l(!1)}},children:[e.label,(0,t.jsx)(s.default,{className:(0,i.cn)("ml-auto",e.value===o?"opacity-100":"opacity-0")})]},e.value))})]})]})}},637808:(e,l,a)=>{a.d(l,{A7:()=>h,FN:()=>m,Oj:()=>p,Q8:()=>f,Wk:()=>x});var t=a(695155),s=a(268072),n=a(35626),i=a(552987),r=a(212115),o=a(3998),d=a(964269);let c=r.createContext(null);function u(){let e=r.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=r.forwardRef((e,l)=>{let{orientation:a="horizontal",opts:n,setApi:i,plugins:o,className:u,children:m,...x}=e,[h,f]=(0,s.A)({...n,axis:"horizontal"===a?"x":"y"},o),[p,g]=r.useState(!1),[j,b]=r.useState(!1),v=r.useCallback(e=>{e&&(g(e.canScrollPrev()),b(e.canScrollNext()))},[]),y=r.useCallback(()=>{null==f||f.scrollPrev()},[f]),N=r.useCallback(()=>{null==f||f.scrollNext()},[f]),w=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),N())},[y,N]);return r.useEffect(()=>{f&&i&&i(f)},[f,i]),r.useEffect(()=>{if(f)return v(f),f.on("reInit",v),f.on("select",v),()=>{null==f||f.off("select",v)}},[f,v]),(0,t.jsx)(c.Provider,{value:{carouselRef:h,api:f,opts:n,orientation:a||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:N,canScrollPrev:p,canScrollNext:j},children:(0,t.jsx)("div",{ref:l,onKeyDownCapture:w,className:(0,d.cn)("relative",u),role:"region","aria-roledescription":"carousel",...x,children:m})})});m.displayName="Carousel";let x=r.forwardRef((e,l)=>{let{className:a,...s}=e,{carouselRef:n,orientation:i}=u();return(0,t.jsx)("div",{ref:n,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:l,className:(0,d.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",a),...s})})});x.displayName="CarouselContent";let h=r.forwardRef((e,l)=>{let{className:a,...s}=e,{orientation:n}=u();return(0,t.jsx)("div",{ref:l,role:"group","aria-roledescription":"slide",className:(0,d.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pl-4":"pt-4",a),...s})});h.displayName="CarouselItem";let f=r.forwardRef((e,l)=>{let{className:a,variant:s="outline",size:i="icon",...r}=e,{orientation:c,scrollPrev:m,canScrollPrev:x}=u();return(0,t.jsxs)(o.$,{ref:l,variant:s,size:i,className:(0,d.cn)("absolute min-h-8 min-w-8 rounded-full","horizontal"===c?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!x,onClick:m,...r,children:[(0,t.jsx)(n.default,{className:"h-4 w-4"}),r.children?(0,t.jsx)("p",{className:"ml-2",children:r.children}):null,(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});f.displayName="CarouselPrevious";let p=r.forwardRef((e,l)=>{let{className:a,variant:s="outline",size:n="icon",...r}=e,{orientation:c,scrollNext:m,canScrollNext:x}=u();return(0,t.jsxs)(o.$,{ref:l,variant:s,size:n,className:(0,d.cn)("absolute min-h-8 min-w-8 rounded-full","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!x,onClick:m,...r,children:[r.children?(0,t.jsx)("p",{className:"mr-2",children:r.children}):null,(0,t.jsx)(i.default,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});p.displayName="CarouselNext"},730986:(e,l,a)=>{a.d(l,{w:()=>t});let t=(0,a(495988).vt)(e=>({selectedTab:"discount",setSelectedTab:l=>e({selectedTab:l})}))},782341:(e,l,a)=>{a.d(l,{k:()=>i});var t=a(380549),s=a(295125),n=a(818720);let i=e=>{let{onSuccess:l}=e;
1return(0,t.n)({mutationKey:["geolocation"],mutationFn:async()=>await new Promise(e=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(async l=>{let{longitude:a,latitude:t}=l.coords;try{let l=await s.A.get("https://maps.googleapis.com/maps/api/geocode/json",{params:{latlng:"".concat(t,",").concat(a),sensor:!1,key:"AIzaSyCNo5u4_8gMimiwrEqPUEayFP5HR2tjTfA",region:"BR"}});if("OK"===l.data.status){let a=l.data.results[0],t=[{from:"administrative_area_level_1",to:"state"},{from:"administrative_area_level_2",to:"city"},{from:"sublocality_level_1",to:"area"},{from:"country",to:"country"}],s=a.address_components.reduce((e,l)=>(t.forEach(a=>{l.types.includes(a.from)&&(e[a.to]=l)}),e),{});e({uf:s.state.short_name,city:s.city.long_name})}}catch(l){n.oR.error("Endere\xe7o n\xe3o encontrado",{description:"N\xe3o foi poss\xedvel obter o endere\xe7o a partir da sua localiza\xe7\xe3o"}),e(!1)}},l=>{n.oR.error("Geolocaliza\xe7\xe3o n\xe3o dispon\xedvel",{description:"Voc\xea precisa habilitar a geolocaliza\xe7\xe3o no seu navegador para usar este recurso"}),e(!1)}):(n.oR.error("Geolocaliza\xe7\xe3o n\xe3o dispon\xedvel",{description:"Por favor, ative a geolocaliza\xe7\xe3o no seu navegador"}),e(!1))}),onSuccess:l})}},802060:(e,l,a)=>{a.d(l,{y:()=>n});var t=a(653455),s=a(313797);let n=e=>{let{country:l}=e;return(0,t.I)({queryKey:["ufs"],queryFn:async()=>"US"===l?(await s.Ay.get("/integration/geonames/get-states-of-us")).data.map(e=>({id:e.geonameId,nome:e.adminName1,sigla:e.adminCode1})):(await s.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados?orderBy=nome")).data,initialData:[],refetchOnWindowFocus:!1})}},886259:(e,l,a)=>{a.d(l,{w:()=>r});var t=a(695155),s=a(547321),n=a(212115),i=a(964269);let r=n.forwardRef((e,l)=>{let{className:a,orientation:n="horizontal",decorative:r=!0,...o}=e;return(0,t.jsx)(s.b,{ref:l,decorative:r,orientation:n,className:(0,i.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",a),...o})});r.displayName=s.b.displayName},981461:(e,l,a)=>{a.d(l,{AppLayout:()=>s$});var t=a(695155),s=a(515239),n=a(442444),i=a(212115),r=a(261987),o=a(167161),d=a(769141),c=a(723664),u=a(849502),m=a(352619),x=a.n(m),h=a(818720),f=a(954879),p=a(146767),g=a(228748),j=a(518078),b=a(507658),v=a(886651),y=a(150069),N=a(451180),w=a(773056),k=a(416989),C=a(746717),S=a(683428),E=a(952944),z=a(730986),A=a(3998);let I=()=>{var e;let l=(0,n.useRouter)(),a=(0,n.usePathname)(),s=(0,g._2)(),{user:o}=(0,w.Jd)(),{DiscountIcon:d,CashbackIcon:c,discountLabel:u,cashbackLabel:m}=(0,S.a)(),{isOnlyLottery:x}=(0,E.H)(),{selectedTab:h,setSelectedTab:f}=(0,z.w)(),{loginAction:p}=(0,C.Y)(),j=(0,k.o)(),{setSelectedCategory:I,clearAllEstablishments:_,setQtdSkipExclusiveEstablishments:L,setQtdSkipUrbisEstablishments:R}=(0,N.X)(e=>e),P=[{name:"Sorteios",href:"/sorteios",icon:(0,t.jsx)(b.default,{}),isActive:"/sorteios"===a,visible:x,onclick:()=>D("/sorteios")},{name:u,href:"/",icon:(0,t.jsx)(d,{}),isActive:("/"===a||"/inicio"===a)&&"discount"===h,visible:!x,onclick:()=>{("/"!==a&&"/inicio"!==a||"discount"!==h)&&(_(),L(0),R(0),I({}),f("discount"),l.push("/"))}},{name:m,href:"/",icon:(0,t.jsx)(c,{}),isActive:("/"===a||"/inicio"===a)&&"cashback"===h,visible:!x&&null!=(e=null==s?void 0:s.useCashbackPartners)&&e,onclick:()=>{("/"!==a&&"/inicio"!==a||"cashback"!==h)&&(_(),L(0),R(0),I({}),f("cashback"),l.push("/"))}},{name:"Explorar",href:"/pesquisar",icon:(0,t.jsx)(v.default,{}),visible:!0,isActive:"/pesquisar"===a,onclick:()=>D("/pesquisar")},{name:"Perfil",href:"/eu",icon:(0,t.jsx)(y.default,{}),visible:(null==s?void 0:s.id)!==r.u$.gassCompany,isActive:"/eu"===a,onclick:()=>{if(!o&&p)return void j(p)();D("/eu")}}],T=(0,i.useMemo)(()=>P.filter(e=>e.visible).length,[P]),D=e=>{l.push(e)};return(0,t.jsx)("div",{className:"shadow-t fixed bottom-0 left-0 right-0 z-50 grid h-20 w-full items-start border-t bg-background/95 backdrop-blur-sm",style:{gridTemplateColumns:"repeat(".concat(T,", 1fr)")},children:P.map((e,l)=>(0,t.jsx)(A.$,{variant:"ghost",asChild:!0,onClick:e.onclick,"data-isActive":e.isActive,"data-visible":e.visible,className:"h-full data-[visible=false]:hidden data-[isActive=true]:text-primary",children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-1",children:[(0,t.jsx)("span",{children:e.icon}),(0,t.jsx)("p",{className:"text-xs",children:e.name})]})},l))})},_=[r.u$.estadao,r.u$.estadaoColaboradores,r.u$.fluminense,r.u$.folha,r.u$.folhaGourmet],L={"c18e0668-e0b2-4eeb-9f46-7c57ef49b5a0":[{href:"/files/aloBrasil/CONTRATO DE CLIENTE.pdf",label:"Contrato Cliente"},{href:"/files/aloBrasil/CONTRATO PARCEIRO DO FUTURO.pdf",label:"Contrato Parceiro do Futuro"}],[r.u$.spx]:[{href:"/files/spx/CONCURSO_CULTURAL_SPX.pdf",label:"Concurso Cultural"}],[r.u$.fluminense]:[{href:"https://nense.com.br/termos-e-politicas",label:"Termos e condi\xe7\xf5es"},{href:"https://nense.com.br/politica-de-privacidade",label:"Pol\xedtica de Privacidade"}],[r.u$.folha]:[{href:"https://www1.folha.uol.com.br/paineldoleitor/2020/04/termos-e-condicoes-de-uso-folha-de-spaulo.shtml",label:"Termos e condi\xe7\xf5es"},{href:"https://www1.folha.uol.com.br/politica-de-privacidade/",label:"Pol\xedtica de Privacidade"}],[r.u$.folhaGourmet]:[{href:"https://www1.folha.uol.com.br/paineldoleitor/2020/04/termos-e-condicoes-de-uso-folha-de-spaulo.shtml",label:"Termos e condi\xe7\xf5es"},{href:"https://www1.folha.uol.com.br/politica-de-privacidade/",label:"Pol\xedtica de Privacidade"}],[r.u$.grupoSinos]:[{href:"https://urbis.cc/sorteios",label:"Regulamento dos Sorteios"}]},R=e=>{let{clubId:l}=e,a=l?L[l]:void 0;return a?(0,t.jsx)(t.Fragment,{children:a.map(e=>{let{href:l,label:a}=e;return(0,t.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"hover:bg-black-light rounded-md p-2 hover:underline xs:w-full",children:(0,t.jsx)("p",{children:a})},l)})}):null},P=f.Yj().regex(/^\d{10,11}$/,{message:"N\xfamero de celular deve conter 10 ou 11 d\xedgitos num\xe9ricos."});function T(e){let l=P.safeParse(e);if(!l.success)return e;let a=l.data,t=a.length;return 11===t?"(".concat(a.slice(0,2),") ").concat(a.slice(2,7),"-").concat(a.slice(7)):10===t?"(".concat(a.slice(0,2),") ").concat(a.slice(2,6),"-").concat(a.slice(6)):9===t?"".concat(a.slice(0,5),"-").concat(a.slice(5)):8===t?"".concat(a.slice(0,4),"-").concat(a.slice(4)):e}let D=()=>{var e;let l=(0,g._2)();return(0,t.jsxs)("div",{className:"flex flex-col justify-between bg-zinc-50 p-4 text-xs text-zinc-800 dark:bg-zinc-950 dark:text-white md:flex-row md:items-center md:justify-between md:px-20",children:[(0,t.jsxs)("div",{className:"mr-2 flex flex-row gap-4 text-xs xs:mr-0 xs:flex-col",children:[!(null==_?void 0:_.includes(null!=(e=null==l?void 0:l.id)?e:""))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:null==l?void 0:l.terms,target:"_blank",rel:"noopener noreferrer",className:"hover:bg-black-light rounded-md p-2 hover:underline xs:w-full",children:(0,t.jsx)("p",{children:"Termos e condi\xe7\xf5es"})}),(0,t.jsx)("a",{href:null==l?void 0:l.politics,target:"_blank",rel:"noopener noreferrer",className:"hover:bg-black-light rounded-md p-2 hover:underline xs:w-full",children:(0,t.jsx)("p",{children:"Privacidade"})})]}),(0,t.jsx)(R,{clubId:null==l?void 0:l.id})]}),(0,t.jsxs)("p",{className:"mt-2 data-[hidden=true]:hidden xs:w-full xs:text-center","data-hidden":[r.u$.rapidoc,r.u$.selectmax,r.u$.engajji].includes(null==l?void 0:l.id),children:["Desenvolvido por"," ",(0,t.jsx)("a",{href:"https://www.urbis.cc",target:"_blank",rel:"noreferrer",className:"underline",children:"Urbis.cc"})]})]})},O=()=>{var e;let l=(0,g._2)(),a=(0,j.U)("(max-width: 639px)"),s=(0,j.U)("(display-mode: standalone)");return a||s?(0,t.jsx)(I,{}):(0,t.jsxs)("div",{className:"flex w-full flex-col pt-12 md:z-0 md:mt-0",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col-reverse gap-4 border-t-2 border-primary bg-zinc-50 dark:bg-zinc-950 md:flex-row md:items-center md:justify-start md:px-20",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-2 p-4 text-center text-zinc-800 dark:text-white md:text-left",children:[(0,t.jsx)("p",{className:"text-xl font-medium",children:"Suporte"}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center justify-center gap-4",children:[(null==l?void 0:l.urlInsta)?(0,t.jsx)("a",{href:null==l?void 0:l.urlInsta,target:"_blank",rel:"noreferrer",children:(0,t.jsxs)(A.$,{variant:"ghost",children:[(0,t.jsx)(o.default,{size:20,className:"mr-2"}),"Instagram"]})}):null,(null==l?void 0:l.telephone)&&!r.Nu.includes(l.id)?(0,t.jsx)(p.Bc,{children:(0,t.jsxs)(p.m_,{children:[(0,t.jsx)(p.k$,{asChild:!0,children:(0,t.jsxs)(A.$,{variant:"ghost",onClick:()=>{navigator.clipboard.writeText(null==l?void 0:l.telephone),h.oR.success("Telefone copiado com sucesso!")},children:[(0,t.jsx)(d.default,{size:20,className:"mr-2"}),T(null==l?void 0:l.telephone)]})}),(0,t.jsx)(p.ZI,{children:(0,t.jsx)("p",{children:"Clique para copiar o telefone"})})]})}):null,(0,t.jsx)("a",{href:"mailto:".concat(null==l?void 0:l.contactEmail),children:(0,t.jsxs)(A.$,{variant:"ghost",children:[(0,t.jsx)(c.default,{size:20,className:"mr-2"}),"Contato"]})}),(null==l?void 0:l.id)===r.u$.agazeta?(0,t.jsx)("a",{href:"https://clubeagazeta.zendesk.com/hc/pt-br",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(A.$,{variant:"outline",children:[(0,t.jsx)(u.default,{size:20,className:"mr-2"}),"D\xfavidas Frequentes"]})}):(0,t.jsx)(x(),{href:"/faq",children:(0,t.jsxs)(A.$,{variant:"outline",children:[(0,t.jsx)(u.default,{size:20,className:"mr-2"}),"D\xfavidas Frequentes"]})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-2 p-2 text-center text-zinc-800 data-[hidden=true]:hidden dark:text-white md:text-left","data-hidden":!(null==l||null==(e=l.address)?void 0:e.length),children:[(0,t.jsx)("p",{className:"text-xl font-medium",children:"A Empresa"}),(0,t.jsxs)("p",{children:[null==l?void 0:l.address,", ",null==l?void 0:l.number," ",null==l?void 0:l.complement," ",null==l?void 0:l.zipCode," - ",null==l?void 0:l.area,", ",null==l?void 0:l.city,", ",null==l?void 0:l.uf]})]})]}),(0,t.jsx)(D,{})]})};var U=a(179150),q=a(65870),F=a(567909),B=a(268326),$=a(797094);
1let M="@urbis/addToHomeScreenPrompt",V=()=>(0,t.jsx)("p",{className:"animate-bounce font-bold text-white",children:"carregando..."}),H=(0,F.default)(()=>a.e(90838).then(a.bind(a,90838)),{loadableGenerated:{webpack:()=>[90838]},loading:()=>(0,t.jsx)(V,{})}),W=(0,F.default)(()=>a.e(19219).then(a.bind(a,519219)),{loadableGenerated:{webpack:()=>[519219]},loading:()=>(0,t.jsx)(V,{})}),G=(0,F.default)(()=>a.e(17251).then(a.bind(a,317251)),{loadableGenerated:{webpack:()=>[317251]},loading:()=>(0,t.jsx)(V,{})}),J=(0,F.default)(()=>a.e(56102).then(a.bind(a,556102)),{loadableGenerated:{webpack:()=>[556102]},loading:()=>(0,t.jsx)(V,{})}),X=(0,F.default)(()=>a.e(84671).then(a.bind(a,884671)),{loadableGenerated:{webpack:()=>[884671]},loading:()=>(0,t.jsx)(V,{})}),K="@urbis/addToHomeScreenPrompt",Y=[r.u$.redeSaude,r.u$.socioVozao,r.u$.bahia];function Z(e){return"Safari"===e?"safari":"Chrome"===e?"chrome":"ChromeiOS"===e?"chromeIos":"SamsungBrowser"===e?"samsung":"other"}function Q(){let e=(0,g._2)(),[l,a]=(0,i.useState)(""),{userAgent:s,isMobile:n,isStandalone:o,isIOS:d}=(0,B.A)(),{manualTrigger:c,resetTrigger:u}=(0,$.H)();(0,i.useEffect)(()=>{if(c&&n&&!o)return void a(Z(s));"dontShow"!==(()=>{let e=(0,q.parseCookies)();if(e[M])return e[M];if("undefined"!=typeof localStorage)try{return localStorage.getItem(M)}catch(e){}return null})()&&n&&!o&&a(Z(s))},[s,n,o,d,c]);let m=(0,r.At)(null==e?void 0:e.id),x=Y.includes(null==e?void 0:e.id)||m,h=""!==l&&(!x||m&&c);return(0,t.jsx)(t.Fragment,{children:h?(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[9999999] bg-black/70",children:(0,t.jsx)(ee,{closePrompt:()=>{a(""),u()},doNotShowAgain:()=>{var e="dontShow";try{let l=new Date;l.setFullYear(l.getFullYear()+1),(0,q.setCookie)(void 0,M,e,{expires:l})}catch(e){}if("undefined"!=typeof localStorage)try{localStorage.setItem(M,e)}catch(e){}a(""),u()},displayPrompt:l})}):(0,t.jsx)(t.Fragment,{})})}let ee=e=>{let{displayPrompt:l,closePrompt:a,doNotShowAgain:s}=e;return(0,t.jsx)(t.Fragment,{children:{safari:(0,t.jsx)(H,{closePrompt:a,doNotShowAgain:s}),chrome:(0,t.jsx)(W,{closePrompt:a,doNotShowAgain:s}),chromeIos:(0,t.jsx)(G,{closePrompt:a,doNotShowAgain:s}),samsung:(0,t.jsx)(J,{closePrompt:a,doNotShowAgain:s}),other:(0,t.jsx)(X,{closePrompt:a,doNotShowAgain:s}),"":(0,t.jsx)(t.Fragment,{})}[l]})};var el=a(644648),ea=a(964269),et=a(782463),es=a(495988);let en=(0,es.vt)(e=>({open:!1,setOpen:l=>e({open:l})})),ei=e=>{let{children:l,link:a,key:s,isExternal:n=!1,disabled:i=!1,className:r,...o}=e,d=(0,j.U)("(max-width: 639px)"),c=(0,j.U)("(display-mode: standalone)");return(0,t.jsx)(A.$,{variant:"link",asChild:!0,className:(0,ea.cn)("flex h-6 w-full justify-start gap-2",d||c?"h-auto text-gray-800":"text-white",r),onClick:()=>(0,et.u4)("footer click",{link:s}),disabled:i,...o,children:(0,t.jsx)("a",{href:a,target:n?"_blank":"_self",rel:n?"noreferrer":void 0,className:(0,ea.cn)(i?"pointer-events-none":""),children:l})})},er={Root:e=>{let{children:l,bgColor:a,className:s}=e,n=(0,j.U)("(max-width: 639px)"),i=(0,j.U)("(display-mode: standalone)");return n||i?(0,t.jsx)("div",{className:"flex flex-col gap-2",children:l}):(0,t.jsx)("div",{className:(0,ea.cn)("w-full p-8 ".concat(a," grid xs:grid-cols-1 xs:gap-8 md:grid-cols-2 md:gap-4 lg:grid-cols-4"),s),children:l})},LinksRoot:e=>{let{children:l,title:a,className:s}=e,n=(0,j.U)("(max-width: 639px)"),i=(0,j.U)("(display-mode: standalone)"),{setOpen:r}=en();return n||i?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"font-medium",children:a}),l,!i&&n&&(0,t.jsx)(er.LinkItem,{link:"#",isExternal:!1,disabled:!1,onClick:()=>{r(!1),(0,q.setCookie)(void 0,K,"show",{expires:new Date(Date.now()+31536e6)}),window.location.reload()},children:"Instale este aplicativo"},"Instale este aplicativo")]}):(0,t.jsx)("div",{className:(0,ea.cn)("grid content-start gap-2 text-white xs:grid-cols-1 sm:grid-cols-1 md:col-span-2 md:grid-cols-3 lg:col-span-3 lg:place-content-center",s),children:l})},LinkItem:ei,Logo:e=>{let{src:l,alt:a,className:n}=e;return(0,t.jsx)(s.default,{src:l,alt:a,className:(0,ea.cn)("h-20 w-52 xs:hidden md:grid-cols-2 lg:col-span-3",n),priority:!0,width:208,he
1ight:80})},SupportChannels:e=>{let{children:l,className:a,hideTitleSection:s=!1}=e,n=(0,j.U)("(max-width: 639px)"),i=(0,j.U)("(display-mode: standalone)");return n||i?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[!s&&(0,t.jsx)("p",{className:"font-medium",children:"Canais de Atendimento"}),l]}):(0,t.jsxs)("div",{className:(0,ea.cn)("flex flex-col gap-2 text-white lg:ml-16",a),children:[!s&&(0,t.jsx)("p",{children:"CANAIS DE ATENDIMENTO"}),(0,t.jsx)("span",{className:"flex flex-col gap-2",children:l})]})},SupportChannelItem:e=>{let{children:l,icon:a,link:s,key:n,className:i}=e;return(0,t.jsxs)(x(),{href:s,className:(0,ea.cn)("flex w-full cursor-pointer items-center gap-4 rounded-md px-4 py-2 hover:brightness-110",i),target:"_blank",onClick:()=>(0,et.u4)("footer click",{link:n}),children:[(0,t.jsx)(a,{size:24}),(0,t.jsx)("p",{children:l})]})},SocialLinks:e=>{let{children:l,titleCustom:a,className:s,linksClassName:n}=e,i=(0,j.U)("(max-width: 639px)"),r=(0,j.U)("(display-mode: standalone)");return i||r?(0,t.jsxs)("div",{className:(0,ea.cn)("flex flex-col gap-2",s),children:[(0,t.jsx)("p",{className:"font-medium",children:a||"Siga o clube nas redes sociais"}),(0,t.jsx)("span",{className:"flex gap-4",children:l})]}):(0,t.jsxs)("div",{className:(0,ea.cn)("flex flex-col justify-center text-white font-medium md:content-center md:items-center lg:col-span-1 lg:items-start lg:justify-start",s),children:[(0,t.jsx)("p",{className:"uppercase",children:a||"Siga o clube nas redes sociais"}),(0,t.jsx)("span",{className:(0,ea.cn)("flex items-center gap-1",n),children:l})]})},SocialLinkItem:e=>{let{link:l,key:a,icon:s,hoverColor:n,className:i,title:r}=e;return(0,t.jsx)(A.$,{size:"icon",variant:"ghost",className:(0,ea.cn)("hover:".concat(n),i),asChild:!0,onClick:()=>(0,et.u4)("footer click",{link:a}),children:(0,t.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",title:r,children:(0,t.jsx)(s,{size:24})})})},TermsAndConditions:e=>{let{link:l,key:a,children:s,modalTitle:n,modalDescription:r,fileUrl:o,modalType:d,className:c}=e,[u,m]=(0,i.useState)(!1),[x,h]=(0,i.useState)(o);return(0,t.jsxs)(el.st,{open:u,onOpenChange:m,children:[(0,t.jsx)(el.cn,{children:(0,t.jsx)(ei,{link:l,className:(0,ea.cn)("flex h-6 w-full justify-start gap-2",c),children:s},a)}),(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{children:[(0,t.jsx)(el.aL,{children:n}),(0,t.jsx)(el.i3,{children:r})]}),(0,t.jsx)("div",{children:x?(0,t.jsx)("iframe",{src:"https://docs.google.com/gview?url=".concat(x,"&embedded=true"),style:{width:"100%",height:"500px"},className:"h-full w-full",title:"PDF",frameBorder:"0"}):(0,t.jsx)("object",{data:n,type:"application/pdf",children:(0,t.jsx)("embed",{src:(e=>{var l;return null!=(l=({terms:"/files/Termos de Uso.pdf",privacy:"/files/Politica de Privacidade.pdf"})[d])?l:"/files/Termos de Uso.pdf"})(0),style:{width:"100%",height:"500px"},className:"h-full w-full",title:"PDF",type:"application/pdf"})})})]})]})}},eo=[{link:"https://assine.abril.com.br/?utm_source=clubeabril&utm_medium=clube&utm_campaign=as_aa_footer_conversao_clube",key:"Assine",isExternal:!0,children:"Assine",disabled:!1},{link:"https://minha.abril.com.br/login?callbackUrl=https%3A%2F%2Fminha.abril.com.br%2F",key:"Atendimento ao assinante - Minha Abril",isExternal:!0,children:"Atendimento ao assinante - Minha Abril",disabled:!1},{link:"https://minha.abril.com.br/dicasSeguranca",key:"Dicas de seguran\xe7a",isExternal:!0,children:"Dicas de seguran\xe7a",disabled:!1},{link:"/faq",key:"D\xfavidas frequentes",children:"D\xfavidas frequentes",disabled:!1},{link:"https://abril.com.br/politica-de-privacidade/",key:"Pol\xedtica de Privacidade",isExternal:!0,children:"Pol\xedtica de Privacidade",hiddenOnMobile:!1,disabled:!1},{link:"https://assine.abril.com.br/fale-conosco/",key:"Fale conosco",isExternal:!0,children:"Fale conosco",disabled:!1},{link:"https://api.whatsapp.com/send?phone=551135849200",key:"WhatsApp +55 11 3584-9200",isExternal:!0,children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(U.yi6,{className:"h-4 w-4"}),"WhatsApp +55 11 3584-9200"]}),disabled:!1,className:"md:col-start-2 lg:col-start-3"}],ed=[{link:"https://atarde.com.br/assine",key:"Assine A Tarde",isExternal:!0,children:"Assine A Tarde"},{link:"https://atarde.com.br/",key:"Site Portal A Tarde",isExternal:!0,children:"Site Portal A Tarde"},{link:"mailto:[email protected]",key:"Seja nosso parceiro",isExternal:!0,disabled:!0,children:"Seja nosso parceiro"},{link:"/faq",key:"D\xfavidas Frequentes",children:"D\xfavidas Frequentes"},{link:"#",key:"Termos e Condi\xe7\xf5es",isExternal:!0,children:"Termos e Condi\xe7\xf5es",modalTitle:"Termos e Condi\xe7\xf5es",modalDescription:"Termos e Condi\xe7\xf5es",isTermsAndConditions:!0,type:"terms",hiddenOnMobile:!0},{link:"mailto:[email protected]",key:"Seja nosso parceiro",isExternal:!0,children:"[email protected]",hiddenOnMobile:!0},{link:"#",key:"Pol\xedtica de Privacidade",isExternal:!0,children:"Pol\xedtica de Privacidade",modalTitle:"Pol\xedtica de Privacidade",modalDescription:"Pol\xedtica de Privacidade",isTermsAndConditions:!0,type:"privacy",hiddenOnMobile:!0},{link:"https://chat.whatsapp.com/DYmUhSx9N8S4aoG635SB6y",key:"WhatsApp do Clube Radar de Novidades",isExternal:!0,children:"WhatsApp do Clube - Radar de Novidades"}],ec=[{link:"https://www.instagram.com/clubeatarde",key:"Instagram",icon:U.$vj},{link:"https://www.facebook.com/clubeatarde",key:"Facebook",icon:U.Boy}],eu=()=>{let e=(0,j.U)("(max-width: 639px)"),l=(0,j.U)("(display-mode: standalone)");return(0,t.jsxs)(er.Root,{bgColor:"bg-[#0e56ae]",children:[(0,t.jsx)(er.Logo,{src:"/img/logo-atarde.svg",alt:"logo Atarde"}),(0,t.jsx)(er.LinksRoot,{title:"Mais Informa\xe7\xf5es",children:ed.map(a=>(e||l)&&a.hiddenOnMobile?null:a.isTermsAndConditions?(0,t.jsx)(er.TermsAndConditions,{link:a.link,modalTitle:a.modalTitle,modalDescription:a.modalDe
1scription,modalType:a.type,children:a.children},a.key):(0,t.jsx)(er.LinkItem,{link:a.link,isExternal:a.isExternal,disabled:a.disabled,children:a.children},a.key))}),(0,t.jsx)(er.SocialLinks,{children:ec.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.link,icon:e.icon,hoverColor:"text-[#0e56ae]"},e.key))})]})},em="ra-verified-seal",ex="ra-embed-verified-seal",eh="https://s3.amazonaws.com/raichu-beta/ra-verified/bundle.js",ef=e=>{let{sealId:l,model:a="compact_1",className:s}=e;return(0,i.useEffect)(()=>{let e=document.getElementById(em);if(!e||e.childElementCount>0||document.getElementById(ex))return;document.querySelectorAll('script[src^="'.concat(eh,'"]')).forEach(e=>e.remove());let t=document.createElement("script");t.type="text/javascript",t.id=ex,t.src=eh,t.setAttribute("data-id",l),t.setAttribute("data-target",em),t.setAttribute("data-model",a),document.body.appendChild(t)},[l,a]),(0,t.jsx)("div",{id:em,className:s})},ep=[{link:"https://sobre.baitabeneficios.com.br",key:"Sobre o Baita",isExternal:!0,children:"Sobre o Baita"},{link:"/faq",key:"D\xfavidas Frequentes",children:"D\xfavidas Frequentes"},{link:"https://urbis-data-drive-api.s3.us-east-1.amazonaws.com/lottery/Anexo+ll+-+Regulamento+da+Promoc%CC%A7a%CC%83o+Comercial+-+CLUBE+DE+BENEFICIOS+DG++OUTUBRO.pdf",key:"Regulamento",isExternal:!0,children:"Regulamento"},{link:"https://cdn.media.urbis.cc/whitelabels/Termos+de+Uso.pdf",key:"Termos e Condi\xe7\xf5es",isExternal:!0,children:"Termos e Condi\xe7\xf5es"},{link:"https://cdn.media.urbis.cc/whitelabels/Politica+de+Privacidade.pdf",key:"Pol\xedtica de Privacidade",isExternal:!0,children:"Pol\xedtica de Privacidade"}],eg=[{link:"https://www.instagram.com/baitabeneficios/",key:"Instagram",icon:U.$vj},{link:"https://www.facebook.com/baitabeneficios",key:"Facebook",icon:U.Boy},{link:"https://www.tiktok.com/@baitabeneficios",key:"TikTok",icon:U.ryL}],ej=()=>{var e;let l=(0,j.U)("(max-width: 639px)"),a=(0,j.U)("(display-mode: standalone)"),s=(0,g._2)();return(0,t.jsxs)(er.Root,{bgColor:"bg-primary",className:"flex w-full flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(er.Logo,{src:null!=(e=null==s?void 0:s.logoPath)?e:"",alt:"logo Oglobo",className:"w-fit"}),(0,t.jsx)(er.SocialLinks,{titleCustom:"Siga nas redes sociais",className:"text-black",children:eg.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.link,icon:e.icon,hoverColor:"text-black/70",className:"text-black"},e.key))}),(0,t.jsx)(ef,{sealId:"RVRyVXlmUXprX0hnVzJWMjpiYWl0YS1iZW5lZmljaW9z",className:"mt-1 w-fit"})]}),(0,t.jsx)(er.LinksRoot,{title:"Mais Informa\xe7\xf5es",className:"text-black md:grid-cols-2 lg:grid-cols-3",children:ep.map(e=>(0,t.jsx)(er.LinkItem,{link:e.link,isExternal:e.isExternal,className:"text-black",children:e.children},e.key))}),(0,t.jsxs)(er.SupportChannels,{className:"w-72 text-black",children:[(0,t.jsx)(er.SupportChannelItem,{link:(0,g.x2)(s),icon:U.faC,className:(0,ea.cn)(l||a?"bg-background":"bg-primary"),children:"Atendimento"},"WhatsApp"),(0,t.jsx)(er.SupportChannelItem,{link:"mailto:[email protected]",icon:c.default,className:(0,ea.cn)(l||a?"bg-background":"bg-primary"),children:"Contato"},"Contato"),(0,t.jsxs)("div",{className:"mt-2 flex flex-col gap-1 text-sm",children:[(0,t.jsx)("p",{children:"CLUBE DE BENEF\xcdCIOS DO DG LTDA"}),(0,t.jsx)("p",{children:"CNPJ 65.599.083/0001-22"})]})]})]})};var eb=a(220908);let ev={Root:e=>{let{children:l,bgColor:a,className:s}=e,n=(0,j.U)("(max-width: 639px)"),i=(0,j.U)("(display-mode: standalone)");return n||i?(0,t.jsxs)("div",{className:(0,ea.cn)("flex flex-col gap-2",s),children:[(0,t.jsx)("p",{className:"font-medium",children:"Mais Informa\xe7\xf5es"}),l]}):(0,t.jsx)("div",{className:(0,ea.cn)("h-60 w-full p-8",a,"grid border-t-4 border-primary xs:grid-cols-1 xs:gap-8 md:grid-cols-2 md:gap-4 lg:grid-cols-4",s),children:l})},Logo:e=>{let{src:l,alt:a,className:n}=e;return(0,t.jsx)(s.default,{src:l,alt:a,className:(0,ea.cn)("h-20 w-52 xs:hidden md:block md:grid-cols-2 lg:col-span-1",n),priority:!0,width:208,he
1ight:80})},Section:e=>{let{children:l,className:a}=e;return(0,t.jsx)("div",{className:(0,ea.cn)("flex flex-col gap-2",a),children:l})},SectionTitle:e=>{let{children:l,className:a}=e;return(0,t.jsx)("h3",{className:(0,ea.cn)("text-lg font-bold xs:text-base xs:font-medium",a),children:l})},SectionIcon:e=>{let{icon:l}=e;return(0,t.jsx)(l,{className:"size-6 xs:size-4"})},SectionHeader:e=>{let{children:l}=e;return(0,t.jsx)("div",{className:"flex items-center gap-2",children:l})},SectionLink:e=>{let{children:l,href:a,className:s}=e;return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:(0,ea.cn)("text-primary",s),children:l})},SectionText:e=>{let{children:l,className:a}=e;return(0,t.jsx)("p",{className:(0,ea.cn)(a),children:l})}};var ey=a(996052),eN=a(779051),ew=a(332711);let ek={facebook:U.Boy,instagram:U.$vj,whatsapp:U.faC,twitter:U.ase,tiktok:U.ryL,linkedin:U.PWi,website:U.bl6},eC=[...ew.O4,ew.wW],eS={facebook:U.Boy,instagram:U.$vj,whatsapp:U.faC,twitter:U.ase,tiktok:U.ryL,linkedin:U.PWi},eE=[ew._H.slice(0,3),ew._H.slice(3)];var ez=a(139068);let eA=[{link:"https://oglobo.globo.com/clube-o-globo/",key:"Editoria do Clube",isExternal:!0,children:"Editoria do Clube"},{link:"/faq",key:"D\xfavidas Frequentes",children:"D\xfavidas Frequentes"},{link:"mailto:[email protected]",key:"Seja nosso parceiro",isExternal:!0,disabled:!1,children:"Seja nosso parceiro"},{link:"https://assinaturaglobo.globo.com/o-globo/vitrine/leia-o-globo-e-ganhe-rdollar180-de-desconto/?campanha=sim&utm_source=siteclube&utm_medium=siteclube&utm_campaign=og_urbis_banner_lateral",key:"Assine",isExternal:!0,children:"Assine"},{link:"https://oglobo.globo.com/termos-de-uso/",key:"Termos e Condi\xe7\xf5es",isExternal:!0,children:"Termos e Condi\xe7\xf5es"},{link:"https://privacidade.globo.com/privacy-policy/",key:"Pol\xedtica de Privacidade",isExternal:!0,children:"Pol\xedtica de Privacidade",hiddenOnMobile:!1},{link:"https://oglobo.globo.com/blogs/blog-clube-o-globo/post/2025/02/aproveite-os-descontos-do-clube-o-globo-saiba-como-acessar-a-sua-carteirinha-digital.ghtml",key:"Como usar sua carteirinha",isExternal:!0,children:"Como usar sua carteirinha"}],eI=[{link:"https://www.instagram.com/clubeoglobo/?campanha=sim&utm_source=siteclube&utm_medium=botao&utm_campaign=og_instagram_footer",key:"Instagram",icon:U.$vj},{link:"https://www.facebook.com/clubeoglobo/?locale=pt_BR?campanha=sim&utm_source=siteclube&utm_medium=botao&utm_campaign=og_facebook_footer",key:"Facebook",icon:U.Boy},{link:"https://www.tiktok.com/@clubeoglobo?_t=8oSW0WCxDao&_r=1?campanha=sim&utm_source=siteclube&utm_medium=botao&utm_campaign=og_tiktok_footer",key:"TikTok",icon:U.ryL},{link:"https://x.com/ClubeOGlobo?campanha=sim&utm_source=siteclube&utm_medium=botao&utm_campaign=og_twitter_footer",key:"Twitter/X",icon:U.ase}],e_=[{link:"https://api.whatsapp.com/send?l=pt-BR&phone=5571992095387&text=Oi,%20vim%20do%20clube%20de%20vantagens.",key:"Seja cliente",isExternal:!0,children:"Seja cliente"},{link:"https://legraninteligenciacontabil.com.br/",key:"Site Legran",isExternal:!0,children:"Site Legran"},{link:"mailto:[email protected]",key:"Seja nosso parceiro",isExternal:!0,children:"Seja nosso parceiro"},{link:"/faq",key:"D\xfavidas Frequentes",children:"D\xfavidas Frequentes"},{link:"#",key:"Termos e Condi\xe7\xf5es",isExternal:!0,children:"Termos e Condi\xe7\xf5es",modalTitle:"Termos e Condi\xe7\xf5es",modalDescription:"Termos e Condi\xe7\xf5es",isTermsAndConditions:!0,type:"terms",hiddenOnMobile:!0},{link:"#",key:"Pol\xedtica de Privacidade",isExternal:!0,children:"Pol\xedtica de Privacidade",modalTitle:"Pol\xedtica de Privacidade",modalDescription:"Pol\xedtica de Privacidade",isTermsAndConditions:!0,type:"privacy",hiddenOnMobile:!0}],eL=[{link:"https://www.instagram.com/legraninteligenciacontabil",key:"Instagram",icon:U.$vj},{link:"https://www.facebook.com/lealinteligenciacontabil",key:"Facebook",icon:U.Boy}];var eR=a(302821),eP=a(475889);function eT(){for(var e=arguments.length,l=Array(e),a=0;a<e;a++)l[a]=arguments[a];return(0,eP.QP)((0,eR.$)(l))}let eD={top:0,right:0,bottom:0,left:0};function eO(e){var l,a,t,s;return null==e?{...eD}:"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:null!=(l=e.top)?l:0,right:null!=(a=e.right)?a:0,bottom:null!=(t=e.bottom)?t:0,left:null!=(s=e.left)?s:0}}function eU(e,l){return e?eO(e):"number"==typeof l?{top:0,right:l,bottom:0,left:l}:{...eD}}function eq(e){return 0!==e.top||0!==e.right||0!==e.bottom||0!==e.left}function eF(e){return null!=e?e:"stretch"}function eB(e){var l,a;if(!e||!e.color)return;let t=null!=(l=e.width)?l:1,s=null!=(a=e.style)?a:"solid";return"".concat(t,"px ").concat(s," ").concat(e.color)}function e$(e,l){if(!l)return;let a=eB(l.top),t=eB(l.right),s=eB(l.bottom),n=eB(l.left);a&&(e.borderTop=a),t&&(e.borderRight=t),s&&(e.borderBottom=s),n&&(e.borderLeft=n)}let eM={none:void 0,sm:"0 1px 2px rgba(15, 23, 42, 0.08)",md:"0 4px 10px rgba(15, 23, 42, 0.12)",lg:"0 12px 28px rgba(15, 23, 42, 0.18)"};function eV(e){var l,a,t,s;let{canvas:n,placement:i}=e,r=function(e){var l;let a={width:"100%",backgroundColor:e.backgroundColor};if(e.backgroundImage)a.backgroundImage='url("'.concat(e.backgroundImage,'")'),a.backgroundSize="cover",a.backgroundPosition="center";else if(e.backgroundGradient){let{from:l,to:t,angle:s=180}=e.backgroundGradient;a.backgroundImage="linear-gradient(".concat(s,"deg, ").concat(l,", ").concat(t,")")}return e.minHeight&&e.minHeight>0&&(a.minHeight="".concat(e.minHeight,"px")),e$(a,e.border),(null==(l=e.border)?void 0:l.bottom)||!e.borderVisible||(a.borderBottom="1px solid var(--ub-border, var(--ub-secondary))"),a}(n),o=eB(n.columnDivider),d={display:"grid",gridTemplateColumns:"repeat(".concat(n.colCount,", 1fr)"),gridTemplateRows:"repeat(".concat(n.rowCount,", minmax(").concat(n.rowHeight,"px, auto))")};return d.maxWidth="".concat(1400,"px"),d.marginLeft="auto",d.marginRight="auto",n.gap&&n.gap>
10&&(d.gap="".concat(n.gap,"px")),((null!=(l=n.paddingX)?l:0)>0||(null!=(a=n.paddingY)?a:0)>0)&&(d.padding="".concat(null!=(t=n.paddingY)?t:0,"px ").concat(null!=(s=n.paddingX)?s:0,"px")),{wrapper:r,container:d,items:i.map(e=>{var l,a;let t={gridColumn:"".concat(e.x+1," / span ").concat(e.w),gridRow:"".concat(e.y+1," / span ").concat(e.h),minWidth:0,minHeight:0,...function(e){let l=eO(null==e?void 0:e.padding),a=eU(null==e?void 0:e.margin,null==e?void 0:e.marginX),t={display:"grid",justifyItems:eF(null==e?void 0:e.align),alignItems:eF(null==e?void 0:e.valign)};return eq(l)&&(t.padding="".concat(l.top,"px ").concat(l.right,"px ").concat(l.bottom,"px ").concat(l.left,"px")),a.top&&(t.marginTop="".concat(a.top,"px")),a.right&&(t.marginRight="".concat(a.right,"px")),a.bottom&&(t.marginBottom="".concat(a.bottom,"px")),a.left&&(t.marginLeft="".concat(a.left,"px")),(null==e?void 0:e.background)&&(t.backgroundColor=e.background),(null==e?void 0:e.borderRadius)&&(t.borderRadius="".concat(e.borderRadius,"px")),(null==e?void 0:e.shadow)&&"none"!==e.shadow&&(t.boxShadow=eM[e.shadow]),e$(t,null==e?void 0:e.border),t}(e.layout)};return o&&e.x>0&&!(null==(a=e.layout)||null==(l=a.border)?void 0:l.left)&&(t.borderLeft=o),{blockId:e.blockId,style:t}})}}function eH(e,l){if(e||l)return a=>{a.actionKey&&e?e(a.actionKey):null==l||l(a)}}function eW(e){var l;let{logoUrl:a,logoAlt:s,href:n,logoHeight:i=48,brandLogoUrl:r,brandName:o,brandHref:d="/",onLogoClick:c,mode:u="live",className:m}=e,x=null!=a?a:r,h=null!=(l=null!=s?s:o)?l:"Logo",f="inert"===u?void 0:c;return(0,t.jsx)("div",{className:eT(m),"data-ub-block":"footer-logo",children:(0,t.jsx)("a",{href:null!=n?n:d,"aria-label":h,onClick:f?e=>{e.preventDefault(),f()}:void 0,children:x?(0,t.jsx)("img",{src:x,alt:h,style:{height:"".concat(i,"px"),width:"auto"}}):(0,t.jsx)("span",{"data-ub-block":"footer-logo-text",children:null!=o?o:"Logo"})})})}function eG(e){let{title:l,items:a,linkColor:s,linkHoverColor:n,underline:i="hover",fontSize:r,titleFontSize:o,lineHeight:d,termsUrl:c,privacyUrl:u,cookiesUrl:m,onLinkClick:x,mode:h="live",className:f}=e,p="always"===i?{base:"underline",hover:"underline"}:"none"===i?{base:"none",hover:"none"}:{base:"none",hover:"underline"},g={"--ub-link-decoration":p.base,"--ub-link-decoration-hover":p.hover};s&&(g["--ub-link-color"]=s),n&&(g["--ub-link-hover"]=n);let j={};"number"==typeof o&&(j.fontSize="".concat(o,"px"));let b={};return"number"==typeof r&&(b.fontSize="".concat(r,"px")),"number"==typeof d&&(b.lineHeight=d),(0,t.jsxs)("div",{className:eT(f),"data-ub-block":"footer-link-list",style:g,children:[l&&(0,t.jsx)("p",{"data-ub-block":"footer-link-list-title",style:j,children:l}),(0,t.jsx)("ul",{style:b,children:a.map(e=>{let l=e.href?e.href:"terms"===e.kind?c:"privacy"===e.kind?u:"cookies"===e.kind?m:void 0;return(0,t.jsx)("li",{"data-ub-block":"footer-link-list-item","data-ub-item-kind":e.kind,children:(0,t.jsx)("a",{href:"inert"===h?void 0:l,target:e.target,onClick:"inert"!==h&&x?l=>{l.preventDefault(),x(e)}:void 0,children:e.label})},e.id)})})]})}function eJ(e){let{text:l,href:a,target:s,fontSize:n,onLinkClick:i,mode:r="live",className:o}=e,d=(0,t.jsx)("div",{className:"[&_ul]:list-disc [&_ol]:list-decimal [&_ul]:pl-5 [&_ol]:pl-5 [&_a]:underline",dangerouslySetInnerHTML:{__html:l}}),c={};return"number"==typeof n&&(c.fontSize="".concat(n,"px")),(0,t.jsx)("div",{className:eT(o),"data-ub-block":"footer-text",style:c,children:a?(0,t.jsx)("a",{href:"inert"===r?void 0:a,target:s,onClick:"inert"!==r&&i?e=>{e.preventDefault(),i()}:void 0,children:d}):d})}var eX=a(473155),eK=a(497378),eY=a(820064),eZ=a(867333),eQ=a(585449),e0=a(805937),e2=a(704788);let e1={facebook:eX.default,instagram:o.default,twitter:eK.default,youtube:eY.default,linkedin:eZ.default,tiktok:eQ.default,whatsapp:e0.default,custom:e2.default};function e5(e){let{title:l,items:a,showLabels:s=!0,direction:n="row",gap:i=12,iconSize:r=20,iconColor:o,hoverColor:d,fontSize:c,titleFontSize:u,mode:m="live",className:x}=e;if(!a||0===a.length)return null;let h="column"===n,f={};o&&(f["--ub-social-color"]=o),d&&(f["--ub-social-hover"]=d);let p={};return"number"==typeof u&&(p.fontSize="".concat(u,"px")),(0,t.jsxs)("div",{className:eT(x),"data-ub-block":"footer-social-links",style:f,children:[l&&(0,t.jsx)("p",{style:p,children:l}),(0,t.jsx)("ul",{style:{display:"flex",flexDirection:h?"column":"row",flexWrap:h?"nowrap":"wrap",gap:"".concat(i,"px"),listStyle:"none",margin:0,padding:0,..."number"==typeof c?{fontSize:"".concat(c,"px")}
1:{}},children:a.map(e=>{var l,a;let n=null!=(l=e1[e.platform])?l:e2.default,i=null!=(a=e.label)?a:e.platform;return(0,t.jsx)("li",{"data-ub-item-platform":e.platform,children:(0,t.jsxs)("a",{href:"inert"===m?void 0:e.href,"aria-label":i,style:{display:"inline-flex",alignItems:"center",gap:8*!!s},children:[(0,t.jsx)(n,{size:r,"aria-hidden":"true"}),s&&(0,t.jsx)("span",{children:i})]})},e.id)})})]})}function e4(e){let{title:l,channels:a,contactEmail:s,contactPhone:n,fontSize:i,titleFontSize:r,mode:o="live",className:d}=e,c={};"number"==typeof r&&(c.fontSize="".concat(r,"px"));let u={};return"number"==typeof i&&(u.fontSize="".concat(i,"px")),(0,t.jsxs)("div",{className:eT(d),"data-ub-block":"footer-support-channels",children:[l&&(0,t.jsx)("p",{style:c,children:l}),(0,t.jsx)("ul",{style:u,children:a.map(e=>{let l=function(e,l,a){var t;let s=null!=(t=e.value)?t:"email"===e.kind?l:"phone"===e.kind||"whatsapp"===e.kind?a:void 0;if(s)return"email"===e.kind?"mailto:".concat(s):"phone"===e.kind?"tel:".concat(s):"whatsapp"===e.kind?"https://wa.me/".concat(s):s}(e,s,n);return(0,t.jsx)("li",{"data-ub-channel-kind":e.kind,children:l&&"inert"!==o?(0,t.jsx)("a",{href:l,children:e.label}):(0,t.jsx)("span",{children:e.label})},e.id)})})]})}function e9(e){let{title:l,manualAddress:a,address:s,fontSize:n,titleFontSize:i,mode:r="live",className:o}=e,d=null!=a?a:s;if(!d)return null;let c={};"number"==typeof i&&(c.fontSize="".concat(i,"px"));let u={};return"number"==typeof n&&(u.fontSize="".concat(n,"px")),(0,t.jsxs)("div",{className:eT(o),"data-ub-block":"footer-address",children:[l&&(0,t.jsx)("p",{style:c,children:l}),(0,t.jsx)("span",{"data-ub-block":"footer-address-text",style:u,children:d})]})}function e6(e){let{title:l,buttons:a,qrCodeUrl:s,qrCodeAlt:n,fontSize:i,titleFontSize:r,mode:o="live",className:d}=e,c={};"number"==typeof r&&(c.fontSize="".concat(r,"px"));let u={};return"number"==typeof i&&(u.fontSize="".concat(i,"px")),(0,t.jsxs)("div",{className:eT(d),"data-ub-block":"footer-app-download",children:[l&&(0,t.jsx)("p",{"data-ub-block":"footer-app-download-title",style:c,children:l}),(0,t.jsx)("ul",{style:u,children:(null!=a?a:[]).map(e=>(0,t.jsx)("li",{"data-ub-button-kind":e.kind,children:(0,t.jsx)("a",{href:"inert"===o?void 0:e.href,children:e.label})},e.id))}),s&&(0,t.jsx)("img",{src:s,alt:null!=n?n:"QR Code","data-ub-block":"footer-app-download-qr"})]})}function e8(e){var l,a,s,n,i;let{block:r,data:o,handlers:d,mode:c="live"}=e,u=r.config;if("logo"===r.type)return(0,t.jsx)(eW,{logoUrl:u.logoUrl,logoAlt:u.logoAlt,href:u.href,logoHeight:u.logoHeight,brandLogoUrl:o.brandLogoUrl,brandName:o.brandName,brandHref:o.brandHref,onLogoClick:null==d?void 0:d.onLogoClick,mode:c});if("link-list"===r.type){let e=(null!=(l=u.items)?l:[]).map(e=>"custom"===e.kind?e:{...e,actionKey:void 0});return(0,t.jsx)(eG,{title:u.title,items:e,linkColor:u.linkColor,linkHoverColor:u.linkHoverColor,underline:u.underline,fontSize:u.fontSize,titleFontSize:u.titleFontSize,lineHeight:u.lineHeight,termsUrl:o.termsUrl,privacyUrl:o.privacyUrl,cookiesUrl:o.cookiesUrl,onLinkClick:eH(null==d?void 0:d.onActionTrigger,null==d?void 0:d.onLinkClick),mode:c})}return"text"===r.type?(0,t.jsx)(eJ,{text:null!=(a=u.text)?a:"",href:u.href,target:u.target,fontSize:u.fontSize,mode:c}):"social-links"===r.type?(0,t.jsx)(e5,{title:u.title,items:null!=(s=u.items)?s:[],showLabels:u.showLabels,direction:u.direction,gap:u.gap,iconSize:u.iconSize,iconColor:u.iconColor,hoverColor:u.hoverColor,fontSize:u.fontSize,titleFontSize:u.titleFontSize,mode:c}):"support-channels"===r.type?(0,t.jsx)(e4,{title:u.title,channels:null!=(n=u.channels)?n:[],contactEmail:o.contactEmail,contactPhone:o.contactPhone,fontSize:u.fontSize,titleFontSize:u.titleFontSize,mode:c}):"address"===r.type?(0,t.jsx)(e9,{title:u.title,manualAddress:u.manualAddress,address:o.address,fontSize:u.fontSize,titleFontSize:u.titleFontSize,mode:c}):"app-download"===r.type?(0,t.jsx)(e6,{title:u.title,buttons:null!=(i=u.buttons)?i:[],qrCodeUrl:u.qrCodeUrl,qrCodeAlt:u.qrCodeAlt,fontSize:u.fontSize,titleFontSize:u.titleFontSize,mode:c}):null}
1function e3(e){let{config:l,data:a,theme:s,handlers:n,mode:i="live",breakpoint:r="desktop",previewAuth:o,className:d}=e,c=l.layouts.desktop,{wrapper:u,container:m,items:x}=eV({canvas:c.canvas,placement:c.placement}),h="inert"===i,f={...function(e){if(!e)return{};let l={};return e.primary&&(l["--ub-primary"]=e.primary),e.secondary&&(l["--ub-secondary"]=e.secondary),e.foreground&&(l["--ub-foreground"]=e.foreground),e.background&&(l["--ub-background"]=e.background),l}(s),...u,...c.canvas.textColor?{color:c.canvas.textColor}:null,...h?{pointerEvents:"none"}:null};return(0,t.jsx)("footer",{className:eT("ub-scope",d),"data-ub-block":"footer-renderer","data-ub-breakpoint":r,"data-ub-mode":i,style:f,children:(0,t.jsx)("div",{style:m,"data-ub-block":"footer-content",children:x.map(e=>{var s;let{blockId:r,style:d}=e,c=l.blocks.find(e=>e.id===r);return c?o&&(s=c.visibility,"always"!==s&&s!==o)?null:(0,t.jsx)("div",{style:d,"data-ub-block-id":r,"data-ub-block-type":c.type,children:(0,t.jsx)(e8,{block:c,data:a,handlers:h?void 0:n,mode:i})},r):null})})})}var e7=a(526302),le=a(456241);function ll(e){let l=(0,e7.Tp)(e),a=(0,le.z)();return!!l&&a}var la=a(249622),lt=a(569237);let ls={oglobo:()=>{var e;let l=(0,j.U)("(max-width: 639px)"),a=(0,j.U)("(display-mode: standalone)"),s=(0,g._2)();return(0,t.jsxs)(er.Root,{bgColor:"bg-[#9900EB]",className:"flex w-full flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,t.jsx)(er.Logo,{src:null!=(e=null==s?void 0:s.logoPath)?e:"",alt:"logo Oglobo",className:"w-fit"}),(0,t.jsx)(er.SocialLinks,{children:eI.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.link,icon:e.icon,hoverColor:"text-[#8B1AE0]"},e.key))})]}),(0,t.jsx)(er.LinksRoot,{title:"Mais Informa\xe7\xf5es",className:"md:grid-cols-2 lg:grid-cols-3",children:eA.map(e=>(l||a)&&e.hiddenOnMobile?null:(0,t.jsx)(er.LinkItem,{link:e.link,isExternal:e.isExternal,disabled:e.disabled&&(l||a),children:e.children},e.key))}),(0,t.jsxs)(er.SupportChannels,{className:"h-60 w-72 md:h-auto",children:[(0,t.jsx)(er.SupportChannelItem,{link:"https://api.whatsapp.com/send?phone=552140025300",icon:U.faC,className:(0,ea.cn)(l||a?"bg-background":"bg-[#9900EB]"),children:"(21) 4002-5300"},"Telefone"),(0,t.jsx)(er.SupportChannelItem,{link:"https://editoraglobo.my.site.com/assinante/s/",icon:ez.default,className:(0,ea.cn)(l||a?"bg-background":"bg-[#9900EB]"),children:"Portal do Assinante"},"Portal do Assinante")]})]})},atarde:eu,estadao:()=>{let e=(0,g._2)();return(0,t.jsxs)(ev.Root,{bgColor:"bg-[#F5F5F6]",className:"flex w-full flex-col items-center justify-around sm:h-full md:h-auto md:flex-row md:items-start",children:[(0,t.jsx)(ev.Logo,{src:(null==e?void 0:e.logoPath)||"",alt:"logo"}),(0,t.jsxs)(ev.Section,{className:"items-center md:items-start",children:[(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(ev.SectionIcon,{icon:c.default}),(0,t.jsx)(ev.SectionTitle,{children:"Contato"})]}),(0,t.jsx)(ev.SectionLink,{href:"https://meu.estadao.com.br/fale-conosco/clube-estadao-mais",className:"md:pl-6",children:"Fale Conosco"}),(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(s.default,{src:"/img/wpp.png",alt:"Logo whatsapp",className:"h-[26px] w-[26px] xs:h-[18px] xs:w-[18px]",width:26,height:26}),(0,t.jsx)(ev.SectionTitle,{children:"Whatsapp"})]}),(0,t.jsx)(ev.SectionLink,{href:"https://sac.estadao.com.br/551140035323",className:"md:pl-6",children:"Fale com um atendente"}),(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(ev.SectionIcon,{icon:ey.default}),(0,t.jsx)(ev.SectionTitle,{children:"Central de Atendimento"})]}),(0,t.jsx)(ev.SectionText,{className:"text-center md:pl-6 md:text-left",children:"4003-5323 (Capitais e Regi\xf5es Metropolitanas)"}),(0,t.jsx)(ev.SectionText,{className:"text-center md:pl-6 md:text-left",children:"0800-014-7720 (Demais Localidades)"}),(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(ev.SectionIcon,{icon:eN.default}),(0,t.jsx)(ev.SectionTitle,{children:"Hor\xe1rio de Atendimento"})]}),(0,t.jsx)(ev.SectionText,{className:"text-center md:pl-6 md:text-left",children:"Seg a Sex, das 6h30 \xe0s 18h | S\xe1b, Dom e Feriados, das 6h30 \xe0s 13h"})]}),(0,t.jsxs)(ev.Section,{className:"mt-3 h-[100%] items-center gap-0 md:mt-0 md:items-start md:border-l-[1px] md:border-[#D3D2DA] md:pb-[50px] md:pl-[50px]",children:[(0,t.jsx)(ev.SectionLink,{href:"/faq",className:"font-black text-primary",children:"D\xfavidas frequentes"}),(0,t.jsx)(ev.SectionLink,{href:"https://www.estadao.com.br/termo-de-uso#politica-privacidade",className:"font-black text-primary",children:"Pol\xedtica de privacidade"}),(null==e?void 0:e.terms)&&(0,t.jsx)(ev.SectionLink,{href:null==e?void 0:e.terms,className:"font-black text-primary",children:"Termos de uso"}),(0,t.jsx)(ev.SectionLink,{href:"https://www.estadao.com.br/termo-de-uso#politica-cookies",className:"font-black text-primary",children:"Pol\xedtica de cookies"}),(0,t.jsx)(ev.SectionHeader,{children:(0,t.jsx)(ev.SectionTitle,{className:"mt-3",children:"Seja um parceiro do Clube Estad\xe3o+"})}),(0,t.jsx)(ev.SectionLink,{href:"mailto:parceiro.estadaomais@estada
1o.com",children:"[email protected]"})]})]})},"estadao-colaboradores":()=>{let e=(0,g._2)();return(0,t.jsxs)(ev.Root,{bgColor:"bg-[#F5F5F6]",children:[(0,t.jsx)(ev.Logo,{src:(null==e?void 0:e.logoPath)||"",alt:"logo",className:"h-auto"}),(0,t.jsxs)(ev.Section,{children:[(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(ev.SectionIcon,{icon:c.default}),(0,t.jsx)(ev.SectionTitle,{children:"Contato"})]}),(0,t.jsx)(ev.SectionLink,{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsxs)(ev.Section,{children:[(0,t.jsxs)(ev.SectionHeader,{children:[(0,t.jsx)(ev.SectionIcon,{icon:eb.default}),(0,t.jsx)(ev.SectionTitle,{children:"D\xfavidas Frequentes"})]}),(0,t.jsx)(ev.SectionLink,{href:"/faq",children:"Acesse"})]}),(0,t.jsxs)(ev.Section,{children:[(0,t.jsx)(ev.SectionHeader,{children:(0,t.jsx)(ev.SectionTitle,{className:"text-end",children:"Seja um parceiro do Clube Estad\xe3o+"})}),(0,t.jsx)(ev.SectionLink,{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsx)(ev.Section,{className:"col-span-4 col-start-4",children:(null==e?void 0:e.terms)?(0,t.jsx)(x(),{href:null==e?void 0:e.terms,className:"font-bold text-primary xs:hidden",children:"Termos de Uso"}):null})]})},legran:()=>{let e=(0,j.U)("(max-width: 639px)"),l=(0,j.U)("(display-mode: standalone)");return(0,t.jsxs)(er.Root,{bgColor:"bg-primary",children:[(0,t.jsx)(er.Logo,{src:"https://cdn.media.urbis.cc/whitelabels/logos/logo-legran.png",alt:"logo Legran",className:"w-fit"}),(0,t.jsx)(er.LinksRoot,{title:"Mais Informa\xe7\xf5es",children:e_.map(a=>(e||l)&&a.hiddenOnMobile?null:a.isTermsAndConditions?(0,t.jsx)(er.TermsAndConditions,{link:a.link,modalTitle:a.modalTitle,modalDescription:a.modalDescription,modalType:a.type,children:a.children},a.key):(0,t.jsx)(er.LinkItem,{link:a.link,isExternal:a.isExternal,children:a.children},a.key))}),(0,t.jsx)(er.SocialLinks,{titleCustom:"Siga a Legran nas redes sociais",children:eL.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.link,icon:e.icon},e.key))})]})},abril:()=>{var e;let l=(0,j.U)("(max-width: 639px)"),a=(0,j.U)("(display-mode: standalone)"),s=(0,g._2)();return(0,t.jsxs)(er.Root,{bgColor:"bg-[#1F2614]",className:"m-0 flex h-[550px] w-full flex-col space-y-0 md:h-auto md:gap-0",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2 md:flex-row md:items-center md:justify-center",children:[(0,t.jsx)("div",{className:"w-3/12 xl:w-2/12",children:(0,t.jsx)(er.Logo,{src:null!=(e=null==s?void 0:s.logoPath)?e:"",alt:"logo Abril",className:"h-28 w-fit"})}),(0,t.jsx)(er.LinksRoot,{title:"Mais Informa\xe7\xf5es",className:"md:grid-cols-2 lg:grid-cols-3",children:eo.map(e=>(l||a)&&e.hiddenOnMobile?null:(0,t.jsx)(er.LinkItem,{link:e.link,isExternal:e.isExternal,disabled:e.disabled,className:e.className,children:e.children},e.key))})]}),(0,t.jsx)("div",{className:"flex h-9 justify-start py-4 md:items-end md:justify-end md:py-0",children:(0,t.jsx)(er.Logo,{src:"https://cdn.media.urbis.cc/whitelabels/logo-grupoabril+1.png",alt:"logo Grupo Abril",className:"h-9 w-fit md:w-32"})})]})},baita:ej,folha:()=>(0,t.jsxs)(er.Root,{bgColor:"bg-black",className:"items-start",children:[(0,t.jsx)("div",{className:"flex flex-col gap-2 text-white",children:ew.O8.map(e=>(0,t.jsx)(er.LinkItem,{link:e.url,isExternal:e.external,title:e.title,className:"text-white hover:text-white font-normal",children:e.label},e.label))}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-white",children:[(0,t.jsx)("p",{className:"uppercase",children:"Contato"}),ew.y7.map(e=>(0,t.jsxs)("p",{children:[e.phone,(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-sm text-gray-300",children:e.description})]},e.phone)),(0,t.jsxs)("p",{className:"text-sm text-gray-300",children:["Hor\xe1rio de atendimento:",(0,t.jsx)("br",{}),ew.eN]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 text-white",children:[(0,t.jsx)("a",{href:ew.wW.url,target:"_blank",rel:"noreferrer",children:(0,t.jsx)(er.Logo,{src:ew.XD,alt:"logo Clube Folha Gourmet",className:"h-16 w-auto"})}),(0,t.jsx)(er.SocialLinks,{titleCustom:"Conhe\xe7a o Clube Folha Gourmet",className:"font-normal",children:eC.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.url,icon:ek[e.platform],title:e.title},e.platform))})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 text-white",children:[(0,t.jsx)("a",{href:"https://www.folha.com.br",target:"_blank",rel:"noreferrer",title:"Acesse a Folha de S. Paulo",className:"font-medium uppercase hover:text-white",children:(0,t.jsx)(er.Logo,{src:ew.TY,alt:"Folha de S. Paulo",className:"h-16 w-auto"})}),(0,t.jsx)(er.SocialLinks,{titleCustom:"Siga a Folha nas redes sociais",className:"font-normal",linksClassName:"w-full justify-center",children:ew.$8.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.url,icon:ek[e.platform],title:e.title},e.platform))})]})]}),"folha-gourmet":()=>(0,t.jsxs)(er.Root,{bgColor:"bg-primary",className:"flex w-full flex-col gap-8 md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsx)(er.Logo,{src:ew.XD,alt:"logo Clube Folha Gourmet",className:"w-fit"}),(0,t.jsx)(er.SocialLinks,{className:"font-normal",children:ew.O4.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.url,icon:eS[e.platform],title:e.title},e.platform))})]}),(0,t.jsx)("div",{className:"grid gap-6 md:col-span-2 md:grid-cols-2",children:eE.map((e,l)=>(0,t.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,t.jsx)(er.LinkItem,{link:e.url,isExternal:e.external,title:e.title,className:"text-white hover:text-white font-normal",children:e.label},e.label))},l))}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-white",children:[(0,t.jsx)("p",{className:"font-normal uppercase",children:"Contato"}),ew.y7.map(e=>(0,t.jsxs)("p",{children:[e.phone,(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-sm",children:e.description})]},e.phone)),(0,t.jsxs)("p",{className:"text-sm",children:["Hor\xe1rio de atendimento:",(0,t.jsx)("br",{}),ew.eN]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-white",children:[(0,t.jsx)("a",{href:"https://www.folha.com.br",target:"_blank",rel:"noreferrer",title:"Acesse a Folha de S. Paulo",className:"font-normal uppercase hover:text-white",children:(0,t.jsx)(er.Logo,{src:ew.TY,alt:"Folha de S. Paulo",className:"h-16 w-auto"})}),(0,t.jsx)(er.SocialLinks,{titleCustom:"Siga a Folha nas redes sociais",className:"font-normal",linksClassName:"w-full justify-center",children:ew.$8.map(e=>(0,t.jsx)(er.SocialLinkItem,{link:e.url,icon:eS[e.platform],title:e.title},e.platform))})]})]})};function ln(){let e=(0,j.U)("(max-width: 639px)"),l=(0,j.U)("(display-mode: standalone)");return e||l?(0,t.jsx)(O,{}):(0,t.jsx)(li,{})}function li(){var e;let l=(0,g._2)(),a=function(){let{data:e}=(0,la.H)(),[l,a]=(0,i.useState)(null);return(0,i.useEffect)(()=>{var l,t,s;e&&a(null!=(s=null==(l=Object.values(null!=(t=e.sections)?t:{}).flat().find(e=>(null==e?void 0:e.sectionType)==="footer"))?void 0:l.config)?s:null)},[e]),l}(),{data:s,handlers:o}=function(){var e,l,a,t,s;let i=(0,g._2)(),r=(0,n.useRouter)(),o=(0,lt.Pe)(),d={brandLogoUrl:null!=(e=null==i?void 0:i.logoPath)?e:void 0,brandName:null!=(l=null==i?void 0:i.name)?l:void 0,brandHref:"/",contactEmail:null!=(a=null==i?void 0:i.contactEmail)?a:void 0,contactPhone:null!=(t=null==i?void 0:i.telephone)?t:void 0,address:null!=(s=null==i?void 0:i.address)?s:void 0,termsUrl:void 0,privacyUrl:void 0,cookiesUrl:void 0};return{data:d,handlers:{onLogoClick:()=>{var e;(0,et.u4)(et.R2.FOOTER_LOGO_CLICKED,{clubName:null==i?void 0:i.name}),r.push(null!=(e=d.brandHref)?e:"/")},onActionTrigger:o,onLinkClick:e=>{(0,et.u4)(et.R2.FOOTER_LINK_CLICKED,{href:null==e?void 0:e.href,label:null==e?void 0:e.label,clubName:null==i?void 0:i.name});let l=null==e?void 0:e.href;if(l)if("_blank"===e.target||/^https?:\/\//.test(l)){var a;window.open(l,null!=(a=e.target)?a:"_blank")}else r.push(l)}}}}(),d=ll("is-atarde");if(a)return(0,t.jsx)(e3,{config:a,data:s,handlers:o,mode:"live",breakpoint:"desktop"});let c=null==l||null==(e=l.profile)?void 0:e.footer;if(c){let e=ls[c];return(0,t.jsx)(e,{})}return d?(0,t.jsx)(eu,{}):(0,r.At)(null==l?void 0:l.id)?(0,t.jsx)(ej,{}):(0,t.jsx)(O,{})}var lr=a(121873),lo=a(597415),ld=a(578435),lc=a(567030),lu=a(6613),lm=a(255136),lx=a(637808),lh=a(886259);let lf=e=>{window.setTimeout(()=>
1{let l=document.getElementById(e);null==l||l.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},300)},lp=[{id:"last-updated",label:"Descontos mais recentes",icon:(0,t.jsx)(lo.default,{size:16,className:"mr-2"})},{id:"highlights",label:"Destaques",icon:(0,t.jsx)(ld.default,{size:16,className:"mr-2"})},{id:"categories",label:"Categorias",icon:(0,t.jsx)(lc.default,{size:16,className:"mr-2"})},{id:"sorteios",label:"Sorteios",icon:(0,t.jsx)(lu.default,{size:16,className:"mr-2"})},{id:"all-partners",label:"Todos os parceiros",icon:(0,t.jsx)(lm.default,{size:16,className:"mr-2"})}],lg={[r.u$.socioVozao]:{hyperlinks:{custom:"text-white hover:text-white"},separator:{custom:"bg-white/50"}},[r.u$.oglobo]:{content:{custom:"bg-secondary"},hyperlinks:{custom:"hover:bg-[hsl(279,100%,42%)]"},separator:{custom:"bg-[hsl(279,100%,40%)]"}},[r.u$.belezaCard]:{hiddenItems:["last-updated"]},[r.u$.abril]:{content:{custom:"bg-[#1F2614]"},hyperlinks:{custom:"text-white hover:text-white hover:bg-[#3C4525]"},separator:{custom:"bg-white/50"}},[r.u$.folha]:{content:{custom:"bg-[#0a4c7d]"},hyperlinks:{custom:"text-[#ede7d6] hover:text-[#ede7d6]"},separator:{custom:"bg-[#013459]"}},[r.u$.folhaGourmet]:{content:{custom:"bg-[#330b04]"},hyperlinks:{custom:"text-[#ede7d6] hover:text-[#ede7d6]"},separator:{custom:"bg-[#0f0200]"},labels:{"last-updated":"Benef\xedcios mais recentes"}}},lj=()=>{var e,l,a,s;let o=(0,j.U)("(max-width: 768px)"),d=(0,n.useRouter)(),c=(0,n.usePathname)(),u=(0,g._2)(),m=e=>{"/"===c||"/inicio"===c?lf(e):d.push("/#".concat(e))},[x,h]=i.useState(),[f,p]=i.useState(0);null==u||u.id,r.u$.oglobo;let b=!!(null==u?void 0:u.useLottery);i.useEffect(()=>{x&&(p(x.selectedScrollSnap()+1),x.on("select",()=>{p(x.selectedScrollSnap()+1)}))},[x]);let v=lg[null==u?void 0:u.id],y=null==v||null==(e=v.content)?void 0:e.custom,N=null==v||null==(l=v.hyperlinks)?void 0:l.custom,w=null==v||null==(a=v.separator)?void 0:a.custom,k=null!=(s=null==v?void 0:v.hiddenItems)?s:[],C=null==v?void 0:v.labels,S=lp.filter(e=>!k.includes(e.id)&&("sorteios"!==e.id||b)).map(e=>(null==C?void 0:C[e.id])?{...e,label:C[e.id]}:e);return o?(0,t.jsxs)(lx.FN,{className:(0,ea.cn)("w-full bg-primary py-2",y),setApi:h,opts:{loop:!1,active:!0,dragFree:!0},orientation:"horizontal",children:[(0,t.jsx)(lx.Wk,{children:S.map((e,l)=>(0,t.jsx)(lx.A7,{className:"flex items-start xs:basis-auto sm:basis-auto",children:(0,t.jsxs)(A.$,{variant:"ghost",onClick:()=>{m(e.id)},className:(0,ea.cn)("text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",N),children:[e.icon,e.label]})},l))}),(0,t.jsxs)("div",{className:"relative mx-2 mt-2 py-2 text-center text-sm text-muted-foreground xs:hidden",children:[(0,t.jsx)(lx.Oj,{className:"absolute right-0"}),(0,t.jsx)(lx.Q8,{className:"absolute left-0"})]})]}):(0,t.jsx)("div",{className:(0,ea.cn)("z-40 flex h-16 w-full flex-nowrap items-center justify-center bg-primary",y),children:(0,t.jsx)("span",{className:"flex items-center gap-2",children:S.map((e,l)=>(0,t.jsxs)(i.Fragment,{children:[l>0&&(0,t.jsx)(lh.w,{className:(0,ea.cn)("h-6 w-[1px] bg-primary-foreground/20",w)}),(0,t.jsxs)(A.$,{variant:"ghost",onClick:()=>m(e.id),className:(0,ea.cn)("text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",N),children:[e.icon,e.label]})]},e.id))})})};var lb=a(193713),lv=a(325195);let ly=e=>{let{authReady:l=!1}=e,[a,s]=(0,i.useState)(!1),n=(0,i.useId)();return((0,i.useEffect)(()=>{if(!l&&window.location.hostname===lv.C.estadao){s(!0);let e=document.createElement("script");return e.src="https://meu.estadao.com.br/static/js/barra-parceiro-urbis.js",e.async=!0,e.setAttribute("data-theme","dark"),document.body.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}}},[l]),a)?(0,t.jsx)("div",{id:"estadao-bar-container-".concat(n),style:{position:"fixed",top:0,left:0,right:0,zIndex:1e4,width:"100%",height:"".concat(44,"px"),pointerEvents:"none"}}):null};var lN=a(866942),lw=a(799776),lk=a(653455),lC=a(380549),lS=a(295125),lE=a(509295),lz=a(909058),lA=a(35299),lI=a(422544),l_=a(313797),lL=a(224035),lR=a(492619),lP=a(471249),lT=a(614183),lD=a(941052),lO=a(711186);let lU=f.Ik({country:f.k5(["BR","US"]).default("BR"),uf:f.Yj().min(2).max(2),city:f.Yj().min(2).max(50),area:f.Yj().min(2).max(50).optional()}),lq=[{label:"Brasil",value:"BR"},{label:"Estados Unidos",value:"US"}],lF=e=>{var l,a,s,o;let{compact:d=!1}=e,c=(0,g._2)(),{isEnabled:u,isStateAllowed:m}=function(e){var l;let a=null==(l=(0,lL.a)(e))?void 0:l.neighborhoodFilter,t=!!(null==a?void 0:a.enabled);
1return{isEnabled:t,isStateAllowed:e=>{var l;return t&&(!(null==a||null==(l=a.states)?void 0:l.length)||a.states.includes(e))}}}(null==c?void 0:c.id),x=null==(l=(0,lt.aE)(null==c?void 0:c.id))?void 0:l.geo,f=!!(null==x?void 0:x.verticalLayout)||d,b=(0,lP.s)(),v=(0,lw.jE)(),y=(0,n.usePathname)(),[w,k]=(0,i.useState)(!0),C="session-geo-alert-initialized",S=(0,i.useRef)(!1),E=(0,lI.mN)({resolver:(0,lN.u)(lU),defaultValues:{country:"",uf:"",city:"",area:""}}),z=(0,j.U)("(max-width: 639px)"),I=(0,j.U)("(display-mode: standalone)"),_=E.watch("uf"),L=E.watch("city"),R=E.watch("country"),P=E.watch("area"),T=m(_),{setUserRegion:D,userRegion:O,setUserArea:U,userArea:q,setNewRegion:F,newRegion:B}=(0,lR.n)(e=>e),$=e=>!!e&&"undefined"!==e&&"null"!==e;$(B.city)||$(B.uf)||$(B.area);let{clearAllEstablishments:M,setQtdSkipExclusiveEstablishments:V,setQtdSkipUrbisEstablishments:H}=(0,N.X)(e=>{let{clearAllEstablishments:l,setQtdSkipExclusiveEstablishments:a,setQtdSkipUrbisEstablishments:t}=e;return{clearAllEstablishments:l,setQtdSkipExclusiveEstablishments:a,setQtdSkipUrbisEstablishments:t}}),{data:W,refetch:G}=(0,lk.I)({queryKey:["ufs"],queryFn:async()=>"US"===R?(await l_.Ay.get("/integration/geonames/get-states-of-us")).data.map(e=>({id:e.geonameId,nome:e.adminName1,sigla:e.adminCode1})):(await l_.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados?orderBy=nome")).data,initialData:[],refetchOnWindowFocus:!1}),J=(0,lk.I)({queryKey:["cities"],queryFn:async()=>{if("US"===R){let e=W.find(e=>e.sigla===_);return(await l_.Ay.get("/integration/geonames/get-cities-by-state?name=".concat(e.nome,"&adminCode1=").concat(e.sigla))).data.map(e=>({id:e.geonameId,nome:e.name}))}return(await l_.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados/".concat(_,"/municipios"))).data.map(e=>({id:e.id,label:e.nome,value:e.nome}))},enabled:!!(null==c?void 0:c.id),initialData:[],refetchOnWindowFocus:!1}),X=(0,lk.I)({queryKey:["areas"],queryFn:async()=>{try{var e;let l=null==(e=J.data.find(e=>e.value===L))?void 0:e.id;if(!l)return[];return(await l_.Ay.get("/establishment/find-districts/".concat(l))).data.data}catch(e){(0,et.l2)(e,{component:"GeoAlert",context:"findDistricts"})}},enabled:!!(null==c?void 0:c.id)&&("RJ"===_||T)&&!!L,initialData:[],refetchOnWindowFocus:!1}),K=e=>{var l,a;if((null==(l=B.uf)?void 0:l.length)>0&&(null==(a=B.city)?void 0:a.length)>0){let{city:l,uf:a,country:t,area:s}=B;"uf"===e?E.setValue("uf",a):"city"===e?E.setValue("city",l):"area"===e?E.setValue("area",null!=s?s:""):E.setValue("country",t)}},Y=(0,lC.n)({mutationKey:["geolocation"],mutationFn:async()=>{await new Promise(e=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(async l=>{let{longitude:a,latitude:t}=l.coords;try{let l=await lS.A.get("https://maps.googleapis.com/maps/api/geocode/json",{params:{latlng:"".concat(t,",").concat(a),sensor:!1,key:"AIzaSyCNo5u4_8gMimiwrEqPUEayFP5HR2tjTfA",region:"BR"}});if("OK"===l.data.status){let a=l.data.results[0],t=[{from:"administrative_area_level_1",to:"state"},{from:"administrative_area_level_2",to:"city"},{from:"sublocality_level_1",to:"area"},{from:"country",to:"country"}],s=a.address_components.reduce((e,l)=>(t.forEach(a=>{l.types.includes(a.from)&&(e[a.to]=l)}),e),{});M(),V(0),H(0);let n="".concat(s.city.long_name,"/").concat(s.state.short_name);E.setValue("uf",s.state.short_name),E.setValue("city",s.city.long_name),m(s.state.short_name)&&(E.setValue("area",s.area.long_name),U(s.area.long_name)),F({...B,uf:s.state.short_name,city:s.city.long_name,area:m(s.state.short_name)?s.area.long_name:void 0}),D(n),lf("all-partners"),e(!0)}}catch(l){h.oR.error("Endere\xe7o n\xe3o encontrado",{description:"N\xe3o foi poss\xedvel obter o endere\xe7o a partir da sua localiza\xe7\xe3o"}),e(!1)}},l=>{h.oR.error("Geolocaliza\xe7\xe3o n\xe3o dispon\xedvel",{description:"Voc\xea precisa habilitar a geolocaliza\xe7\xe3o no seu navegador para usar este recurso"}),e(!1)}):(h.oR.error("Geolocaliza\xe7\xe3o n\xe3o dispon\xedvel",{description:"Por favor, ative a geolocaliza\xe7\xe3o no seu navegador"}),e(!1))})}});(0,i.useEffect)(()=>{!async function(){R&&B.country!==R&&(F({country:R,city:"",area:"",uf:""}),F({country:R,city:"",area:"",uf:""}),E.setValue("uf",""),E.setValue("city",""),v.clear(),await G())}()},[R]),(0,i.useEffect)(()=>{R&&(V(0),H(0),M())},[R]),(0,i.useEffect)(()=>{_&&J.refetch()},[_]),(0,i.useEffect)(()=>{L&&(F({...B,city:L}
1),T&&X.refetch()),L&&_&&L!==B.city&&!T&&S.current&&("/inicio"===y||"/"===y)&&lf("all-partners")},[L]),(0,i.useEffect)(()=>{K("country"),K("uf")},[W]),(0,i.useEffect)(()=>{K("city")},[J.data]),(0,i.useEffect)(()=>{K("area")},[X.data]),(0,i.useEffect)(()=>{(_&&L&&B.city!==L||!_&&!L)&&(M(),V(0),H(0),F({...B,city:L,uf:_,area:""}))},[L,_]),(0,i.useEffect)(()=>{if(P&&(M(),V(0),H(0),F({...B,area:P}),S.current&&P!==B.area)){let e=setTimeout(()=>{("/inicio"===y||"/"===y)&&lf("all-partners")},300);return()=>clearTimeout(e)}},[P]),(0,i.useEffect)(()=>{var e,l;let a=sessionStorage.getItem(C);if(!((null==c?void 0:c.id)&&c.defaultCity&&!(null==(e=B.uf)?void 0:e.length)&&!(null==(l=B.city)?void 0:l.length)&&!a&&!(null==x?void 0:x.disableDefaultCity)))return;let[t,s]=c.defaultCity.split("/");F({...B,uf:s,city:t}),E.setValue("uf",s),E.setValue("city",t),sessionStorage.setItem(C,"true")},[c,x]),(0,i.useEffect)(()=>{let e=()=>{sessionStorage.removeItem(C)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[]),(0,i.useEffect)(()=>{if(!X.data.find(e=>e.nome===e))return void F({...B,area:""})},[X.data]);let Z={[r.u$.socioVozao]:{button:{className:"text-white hover:text-white"}},[r.u$.abril]:{button:{variant:"link",className:"text-white hover:text-white"}},[r.u$.oglobo]:{button:{variant:"secondary"}},[r.u$.folha]:{button:{className:"border-0 bg-[#1872b5] text-white hover:bg-[#1872b5]/90"}}},Q=null==(a=Z[null==c?void 0:c.id])?void 0:a.button.variant;return(0,t.jsx)("div",{className:"flex xs:w-full xs:flex-col sm:flex-col lg:flex-row",children:(0,t.jsx)("div",{className:"flex gap-2 xs:flex-col",children:w?(0,t.jsx)(lD.lV,{...E,children:(0,t.jsxs)("div",{className:(0,ea.cn)(f?"flex w-full flex-col gap-2":"flex space-x-2 xs:flex-col xs:space-x-0 xs:gap-2"),children:[(0,t.jsxs)("form",{className:(0,ea.cn)(f?"flex w-full flex-col gap-2 xs:space-x-0 xs:space-y-2":"flex space-x-2 xs:gap-2 xs:space-x-0 data-[ismobile=true]:xs:flex-col"),"data-ismobile":z||I,children:[b&&(0,t.jsx)(lD.zB,{control:E.control,name:"country",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{className:"xs:w-full",children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)(lO.l6,{onValueChange:l.onChange,value:l.value,defaultValue:B.country,children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(lO.bq,{children:(0,t.jsx)(lO.yv,{placeholder:"Selecione um pa\xeds"})})}),(0,t.jsx)(lO.gC,{children:lq.map(e=>(0,t.jsx)(lO.eb,{value:e.value,children:e.label},e.value))})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:E.control,name:"uf",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{className:"xs:w-full",children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)(lO.l6,{onValueChange:e=>{l.onChange(e)},value:l.value,defaultValue:l.value,children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(lO.bq,{children:(0,t.jsx)(lO.yv,{placeholder:"Selecione um estado"})})}),(0,t.jsx)(lO.gC,{clearable:!0,onClear:()=>{l.onChange(""),E.setValue("city",""),F({city:"",area:"",uf:"",country:R})},children:W.map(e=>(0,t.jsxs)(lO.eb,{value:e.sigla,children:[(0,t.jsx)("span",{className:"mr-2 text-sm font-semibold",children:e.sigla}),e.nome]},e.id))})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:E.control,name:"city",render:e=>{var l;let{field:a}=e;return(0,t.jsxs)(lD.eI,{className:"xs:w-full",children:[(0,t.jsx)(lT.G,{disabled:!_,value:null!=(l=a.value)?l:"",onChange:e=>{S.current=!0,a.onChange(e)},options:J.data,searchPlaceholder:"Pesquisar cidade",placeholder:"Selecione uma cidade",clearable:!0,onClear:()=>{a.onChange(""),E.setValue("area","")}}),(0,t.jsx)(lD.C5,{})]})}}),T&&(null==(s=J.data)?void 0:s.findIndex(e=>e.value===L))>=0?(0,t.jsx)(lD.zB,{control:E.control,name:"area",render:e=>{var l;let{field:a}=e;return(0,t.jsxs)(lD.eI,{className:"xs:w-full",children:[(0,t.jsx)(lT.G,{disabled:!L,value:null!=(l=a.value)?l:"",onChange:e=>{S.current=!0,a.onChange(e)},options:X.data.map(e=>{var l;let a=(null==(l=e.name)?void 0:l.length)?e.name:"Bairro sem nome";return{label:a,value:a}}),searchPlaceholder:"Pesquisar bairro",placeholder:"Selecione um bairro",clearable:!0,onClear:()=>{a.onChange("")}}),(0,t.jsx)(lD.C5,{})]})}}):null]}),B.city||B.uf||B.area?(0,t.jsx)(p.Bc,{children:(0,t.jsxs)(p.m_,{children:[(0,t.jsx)(p.k$,{asChild:!0,children:(0,t.jsxs)(A.$,{variant:"outline",onClick:()=>{F({...B,city:"",uf:"",area:""}),E.reset()},children:[(0,t.jsx)(lE.default,{size:16,className:"xs:mr-2 lg:mr-2"}),(0,t.jsx)("span",{className:"md:hidden lg:block",children:"Limpar localiza\xe7\xe3o"})]})}),(0,t.jsx)(p.ZI,{children:(0,t.jsx)("p",{children:"Limpar localiza\xe7\xe3o"})})]})}):null,(0,t.jsx)(A.$,{variant:Q||"default",className:(0,ea.cn)("data-[hidden=true]:hidden",null==(o=Z[null==c?void 0:c.id])?void 0:o.button.className),onClick:async()=>Y.mutate(),"data-hidden":u?!!B.area&&B.area===q:O==="".concat(B.city,"/").concat(B.uf),children:Y.isPending?(0,t.jsx)(lA.default,{size:16,className:"animate-spin"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(lz.default,{size:16,className:"xs:mr-2 lg:mr-2"}),(0,t.jsx)("span",{className:"md:hidden lg:block",children:"Usar minha localiza\xe7\xe3o"})]})})]})}):(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(A.$,{variant:"ghost",onClick:()=>k(!0),children:"Selecionar manualmente"})})})})};var lB=a(585897),l$=a(965142),lM=a(426333),lV=a(320243);let lH=(0,i.createContext)({}),lW=(0,i.forwardRef)((e,l)=>{let{children:a}=e,{user:s}=(0,w.Jd)(),n=(0,j.U)("(max-width: 768px)");return(0,t.jsx)(lH.Provider,{value:{user:s,isMobile:n},children:(0,t.jsx)("div",{ref:l,className:"sticky top-0 z-50 flex w-full flex-col",children:a})})}),lG=e=>{let{className:l}=e,a=(0,n.useRouter)(),s=(0,n.usePathname)(),[o,d]=(0,i.useState)(""),{isMobile:c}=(()=>{let e=(0,i.useContext)(lH);if(!e)throw Error("useHeader must be used within a HeaderProvider");return e})(),u=(0,g._2)(),m=(null==u?void 0:u.id)===r.u$.oglobo;return(0,t.jsxs)("div",{className:(0,ea.cn)("my-2 flex data-[hidden=true]:hidden xs:w-full sm:w-full lg:w-fit lg:min-w-64",l),"data-hidden":"/pesquisar"===s,children:[(0,t.jsx)(l$.p,{className:(0,ea.cn)("rounded-r-none",m&&"focus-visible:ring-[#9900eb]"),placeholder:"Buscar parceiros e ofertas",onChange:e=>d(e.target.value),onKeyUp:e=>{"Enter"===e.key&&a.push("/pesquisar?name="+encodeURIComponent(o))}}),(0,t.jsx)(A.$,{className:"rounded-l-none border-l-0",variant:"outline",onClick:()=>a.push("/pesquisar?name="+encodeURIComponent(o)),children:!m&&c?"Pesquisar":(0,t.jsx)(v.default,{})})]})},lJ={Root:lW,NavHeader:e=>{let{children:l,navClassName:a,innerClassName:s}=e;return(0,t.jsx)("div",{className:(0,ea.cn)("z-50 flex w-full items-center justify-between border-b px-8 xs:flex-col xs:flex-wrap xs:px-4 lg:h-32 xl:h-24",a||"bg-background"),children:s?(0,t.jsx)("div",{className:s,children:l}):l})},Actions:e=>{let{children:l}=e;return(0,t.jsx)("div",{className:"flex gap-2 data-[hidden=true]:hidden xs:mb-4 xs:w-full xs:justify-center",children:l})},Logo:e=>{var l;let{src:a}=e,i=(0,g._2)(),r=(0,n.useRouter)();return(0,t.jsxs)("div",{children:[(0,t.jsx)(s.default,{src:null!=(l=null!=a?a:null==i?void 0:i.logoPath)?l:"/img/logo-placeholder.png",alt:"logo",className:"h-16 max-w-xs cursor-pointer",sizes:"100vw",style:{width:"auto",height:"64px"},quality:100,width:100,height:64,onClick:()=>r.push("/")}),(0,t.jsx)("h1",{className:"hidden",children:null==i?void 0:i.name})]})},Search:{Root:e=>{let{children:l}=e;return(0,t.jsx)("span",{className:"flex items-center gap-2 xs:mb-4 xs:w-full xs:flex-col sm:w-6/12 sm:flex-col lg:w-[871.23px] lg:flex-row lg:flex-wrap lg:justify-center lg:gap-0 xl:w-fit xl:flex-row xl:flex-nowrap xl:justify-between xl:gap-2",children:l})},Input:lG,InputMobile:e=>{let{hasHidden:l}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-hidden":l,className:"fixed left-0 right-0 z-40 flex w-full flex-col gap-4 bg-white p-2 shadow-sm data-[hidden=true]:hidden dark:bg-zinc-800",children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(lG,{})})}),(0,t.jsx)("div",{"data-hidden":l,className:"data-[hidden=true]:hidden",style:{height:"80px"}})]})}},Profile:{Root:e=>{let{children:l,isLoading:a}=e;return(0,t.jsx)("div",{className:"flex gap-2",children:a?(0,t.jsx)(lV.E,{className:"h-10 w-24"}):l})},Avatar:()=>{var e,l;let{user:a}=(0,w.Jd)();return(0,t.jsx)(lB.eu,{children:(0,t.jsx)(lB.q5,{children:null==a||null==(l=a.name)||null==(e=l.split(" ")[0])?void 0:e.charAt(0)})})}},CustomPopover:e=>{let{trigger:l,content:a,align:s="end",side:n="bottom"}=e;return(0,t.jsxs)(lM.AM,{children:[(0,t.jsx)(lM.Wv,{asChild:!0,children:l}),(0,t.jsx)(lM.hl,{align:s,side:n,className:"w-full",children:a})]})}};var lX=a(809540),lK=a(952508),lY=a(184926),lZ=a(270749),lQ=a(712108),l0=a(924033),l2=a(138755),l1=a(327063),l5=a(367057),l4=a(617175),l9=a(985484);function l6(){let e=(0,n.useRouter)(),l=(0,n.usePathname)(),a=(0,g._2)(),t=(null==a?void 0:a.id)===r.u$.oglobo,s=(null==a?void 0:a.id)===r.u$.origoEnergia,{logOut:i}=(0,l5.T)(),{logOut:o}=(0,l4.C)();return async()=>{(0,l9.q7)(),localStorage.removeItem("@urbis/show-toast-notification"),(0,lb.FH)();try{if(t)return void await i();if(s)return void o()}catch(e){console.error("Logout error:",e)}t&&"/eu"===l?e.push("/inicio"):window.location.href=window.location.pathname}}var l8=a(459992);let l3=(0,es.vt)(e=>
1({filters:{categories:[],mechanics:null},setFilters:l=>e({filters:l})}));var l7=a(182132);let ae=(0,i.memo)(e=>{var l,a,r,m,f,p,b,v,y,N,k,C,S;let{setMarginTopHeader:E}=e,z=(0,w.WL)(),I=(0,i.useRef)(null),_=(0,g._2)(),L=(0,j.U)("(display-mode: standalone)"),[R,P]=(0,i.useState)(!1),{open:O,setOpen:U}=en(),F=l6(),B=(0,g.IY)(),{loggedOutActions:$,loggedInExpiredAction:M,isLoading:V}=(0,lt.Yf)(),H=(0,lt.aE)(null==_?void 0:_.id),W=null==H||null==(a=H.header)||null==(l=a.styling)?void 0:l.mobile,G=(null==W?void 0:W.primaryActionInBar)&&!V?(0,lt.QK)({loggedOutActions:$,loggedInExpiredAction:M}):null,J=null!=(y=null==H||null==(r=H.footer)?void 0:r.hideTermsAndConditions)&&y,X=(0,l8.w)(),Y=(0,n.useRouter)(),Z=(0,n.usePathname)(),Q=(0,n.useSearchParams)(),{setFilters:ee}=l3(e=>{let{setFilters:l}=e;return{setFilters:l}});(0,i.useEffect)(()=>{if(!I.current)return;let e=new ResizeObserver(()=>{let e=I.current.offsetHeight;document.body.style.paddingTop="".concat(e,"px"),"/inicio"===Z||"/"===Z?E(e-80):E(e)});return e.observe(I.current),()=>{e.disconnect(),document.body.style.paddingTop="0"}},[]);let el=null==W?void 0:W.logo,et=!!((null==Q?void 0:Q.get("access_token"))||(null==Q?void 0:Q.get("token")));return(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(ly,{authReady:et}),(0,t.jsxs)(l2.P.div,{ref:I,initial:"closed",animate:R?"open":"closed",variants:{open:{height:"fit-content"},closed:{height:"5rem"}},className:(0,ea.cn)("fixed left-0 right-0 z-[999] flex w-full flex-col gap-4 bg-zinc-100 p-4 shadow-sm dark:bg-zinc-800",null==W?void 0:W.containerClassName),style:{top:B?"".concat(44,"px"):0},children:[(0,t.jsxs)("span",{className:(0,ea.cn)("z-50 flex justify-between bg-gray-100 dark:bg-zinc-800",null==W?void 0:W.contentClassName),children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsxs)(l1.cj,{open:O,onOpenChange:U,children:[(0,t.jsx)(l1.CG,{asChild:!0,children:(0,t.jsx)(A.$,{variant:"outline",size:"icon",children:(0,t.jsx)(lX.default,{size:16})})}),(0,t.jsx)(l1.h,{side:"left",className:"p-0",children:(0,t.jsxs)("div",{className:"flex h-full max-h-screen flex-col gap-4 overflow-y-auto px-2 pb-4 pt-24",children:[(0,t.jsx)(s.default,{src:(null==el?void 0:el.sideMenu)||(null!=(N=null==_?void 0:_.logoPath)?N:""),width:72,height:40,alt:"club logo"}),V?(0,t.jsx)(lV.E,{className:"h-10 w-full"}):(0,t.jsx)("div",{className:"flex w-full flex-col gap-2 data-[hidden=true]:hidden","data-hidden":!!z,children:$.map(e=>(0,t.jsx)(lt.rA,{action:e,onBeforeAction:()=>U(!1)},e.label))}),M&&(0,t.jsx)(lt.rA,{action:M,onBeforeAction:()=>U(!1)}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"font-medium",children:"Categorias"}),(0,t.jsx)(A.$,{variant:"link",asChild:!0,children:(0,t.jsx)(x(),{href:"/establishments",onClick:()=>{U(!1)},children:"Ver Todas"})})]}),(0,t.jsx)("div",{children:X.data.slice(0,5).map(e=>{var l;return(0,t.jsxs)(A.$,{variant:"ghost",className:"flex w-full justify-start gap-2",onClick:()=>{ee({categories:[e.category.id],mechanics:null}),"/pesquisar"!==Z&&Y.push("/pesquisar"),U(!1)},children:[(0,t.jsx)("span",{className:"text-primary",children:(0,l7.q)(e.category.name,null==H?void 0:H.categoryIconSet)}),(0,t.jsx)("p",{children:(null==e||null==(l=e.customName)?void 0:l.length)>0?null==e?void 0:e.customName:null==e?void 0:e.category.name})]},e.id)})})]}),!(null==H||null==(f=H.footer)||null==(m=f.blocks)?void 0:m.length)&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("span",{children:(0,t.jsx)("p",{className:"font-medium",children:"Mais Informa\xe7\xf5es"})}),(null==_?void 0:_.urlInsta)?(0,t.jsx)("a",{href:null==_?void 0:_.urlInsta,target:"_blank",rel:"noopener",children:(0,t.jsxs)(A.$,{variant:"ghost",children:[(0,t.jsx)(o.default,{size:20,className:"mr-2"}),"Instagram"]})}):null,(null==_?void 0:_.telephone)?(0,t.jsxs)(A.$,{className:"w-full justify-start",variant:"ghost",onClick:()=>{navigator.clipboard.writeText(null==_?void 0:_.telephone),h.oR.success("Telefone copiado com sucesso!")},children:[(0,t.jsx)(d.default,{size:20,className:"mr-2"}),T(null==_?void 0:_.telephone)]}):null,(0,t.jsx)("a",{href:"mailto:".concat(null==_?void 0:_.contactEmail),children:(0,t.jsxs)(A.$,{variant:"ghost",className:"w-full justify-start",children:[(0,t.jsx)(c.default,{size:20,className:"mr-2"}),"Contato"]})}),(0,t.jsx)(x(),{href:"/faq",children:(0,t.jsxs)(A.$,{variant:"ghost",className:"w-full justify-start",children:[(0,t.jsx)(u.default,{size:20,className:"mr-2"}),"D\xfavidas Frequentes"]})}),!L&&(0,t.jsxs)(A.$,{variant:"ghost",onClick:()=>{U(!1),(0,q.destroyCookie)(void 0,K),window.location.reload()},className:"w-full justify-start",children:[(0,t.jsx)(lK.default,{size:20,className:"mr-2"}),(0,t.jsx)("p",{className:"hover:brightness-75",children:"Instale este aplicativo"})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-2 p-2 text-center text-zinc-800 data-[hidden=true]:hidden md:text-left","data-hidden":!(null==_||null==(p=_.address)?void 0:p.length),children:[(0,t.jsx)("p",{className:"text-start font-medium",children:"A Empresa"}),(0,t.jsxs)("p",{className:"text-zinc-500",children:[null==_?void 0:_.address,", ",null==_?void 0:_.number," ",null==_?void 0:_.complement," ",null==_?void 0:_.zipCode," - ",null==_?void 0:_.area,", ",null==_?void 0:_.city,","," ",null==_?void 0:_.uf]})]})]}),(null==H||null==(b=H.footer)?void 0:b.blocks)&&(0,t.jsx)(lt.aD,{blocks:H.footer.blocks}),(0,t.jsx)("span",{className:"h-full w-full"}),!J&&(0,t.jsx)(D,{}),!!z&&!(null==H||null==(v=H.header)?void 0:v.hideLogout)&&(0,t.jsxs)(A.$,{variant:"destructive",className:(0,ea.cn)("w-full",null==W?void 0:W.logoutButtonClassName),onClick:F,children:[(0,t.jsx)(lY.default,{className:"mr-2",size:16})," Sair"]})]})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(s.default,{src:(null==el?void 0:el.header)||(null!=(k=null==_?void 0:_.logoPath)?k:""),alt:"club logo",className:"max-w-xs cursor-pointer",sizes:"25vw",style:{width:"auto",height:"".concat(null!=(C=null==el?void 0:el.height)?C:48,"px")},width:54,height:null!=(S=null==el?void 0:el.height)?S:48,onClick:()=>Y.push("/")})})]}),(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[("/"===Z||"/inicio"===Z)&&(null==W?void 0:W.categoriesShortcut)&&(0,t.jsxs)(A.$,{variant:"ghost",onClick:()=>lf("categories"),className:(0,ea.cn)(W.categoriesShortcut.className),children:[(0,t.jsx)(lc.default,{size:16,className:"mr-1"}),"Categorias"]}),G&&(0,t.jsx)(lt.rA,{action:G,size:"sm"}),(0,t.jsx)(A.$,{variant:"outline",size:"icon",onClick:()=>P(!R),children:(null==W?void 0:W.geoToggleIcon)==="map-pin"?R?(0,t.jsx)(lZ.default,{size:16}):(0,t.jsx)(lr.default,{size:16}):R||R?(0,t.jsx)(lQ.default,{}):(0,t.jsx)(l0.default,{})}),z?(0,t.jsx)(lb.bL,{}):null]})]}),(0,t.jsx)(l2.P.div,{variants:{closed:{opacity:0,y:-200,display:"none"},open:{opacity:1,y:0,display:"block"}},initial:"closed",animate:R?"open":"closed",children:(0,t.jsx)(lF,{})})]})]})});var al=a(106259);let aa=()=>{var e,l,a;let{user:s}=(0,w.Jd)(),i=(0,n.useRouter)(),r=l6(),o=(0,g._2)(),d=null==(l=(0,lt.aE)(null==o?void 0:o.id))||null==(e=l.header)?void 0:e.hideLogout;return(0,t.jsxs)(al.rI,{children:[(0,t.jsx)(al.ty,{asChild:!0,children:(0,t.jsx)(lB.eu,{className:"group cursor-pointer",children:(0,t.jsx)(lB.q5,{className:"group-hover:bg-zinc-200",children:null==s||null==(a=s.name)?void 0:a.split(" ")[0][0]})})}),(0,t.jsxs)(al.SQ,{children:[(0,t.jsx)(al.lp,{children:"Op\xe7\xf5es"}),(0,t.jsx)(al.mB,{}),(0,t.jsxs)(al._2,{onClick:()=>i.push("/eu"),children:[(0,t.jsx)(y.default,{className:"mr-2 h-4 w-4"}),"Meu perfil"]}),!d&&(0,t.jsxs)(al._2,{onClick:()=>r(),children:[(0,t.jsx)(lY.default,{className:"mr-2 h-4 w-4"}),"Sair do clube"]})]})]})},at=e=>{var l,a,s,o,d,c,u;let{setMarginTopHeader:m}
1=e,x=(0,i.useRef)(),h=(0,n.usePathname)(),f=(0,n.useSearchParams)(),p=(0,w.WL)(),j=(0,g._2)(),b=(null==j?void 0:j.id)===r.u$.oglobo,v=(null==j?void 0:j.id)===r.u$.baitaRbs,y=(0,lt.aE)(null==j?void 0:j.id),N=b||(0,r.At)(null==j?void 0:j.id)||!!(null==y||null==(l=y.geo)?void 0:l.verticalLayout),k=(0,g.IY)(),C="/pesquisar"===h,S="/"===h||"/inicio"===h,{loggedOutActions:E,loggedInExpiredAction:z,isLoading:I}=(0,lt.Yf)(),_=null==y||null==(a=y.header)?void 0:a.styling;(0,i.useEffect)(()=>{if(!x.current)return;let e=new ResizeObserver(()=>{var e;m(null==(e=x.current)?void 0:e.offsetHeight)});return e.observe(x.current),()=>e.disconnect()},[m]);let L=!!((null==f?void 0:f.get("access_token"))||(null==f?void 0:f.get("token")));return(0,t.jsxs)("span",{children:[(0,t.jsx)(ly,{authReady:L}),(0,t.jsx)("span",{className:"xs:block sm:block md:hidden",children:(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)(ae,{setMarginTopHeader:m}),!b&&(S||v)&&(0,t.jsx)("div",{style:k?{marginTop:"".concat(44,"px")}:{},children:(0,t.jsx)(lj,{})}),b&&S&&(0,t.jsx)(lJ.Search.InputMobile,{hasHidden:C})]})}),(0,t.jsx)("span",{className:"hidden md:block",children:(0,t.jsx)("div",{style:k?{paddingTop:"".concat(44,"px")}:{},children:(0,t.jsxs)(lJ.Root,{ref:x,children:[(0,t.jsxs)(lJ.NavHeader,{navClassName:null==_||null==(s=_.desktop)?void 0:s.navClassName,innerClassName:null==_||null==(o=_.desktop)?void 0:o.innerClassName,children:[(0,t.jsx)(lJ.Logo,{src:null==_||null==(c=_.desktop)||null==(d=c.logo)?void 0:d.header}),(0,t.jsxs)(lJ.Search.Root,{children:[(0,t.jsx)(lJ.Search.Input,{className:null==_||null==(u=_.desktop)?void 0:u.searchClassName}),N?!C&&(0,t.jsx)(lJ.CustomPopover,{trigger:(0,t.jsx)(A.$,{variant:"outline",size:"icon",className:"h-10 w-10",children:(0,t.jsx)(lr.default,{className:"h-5 w-5"})}),content:(0,t.jsx)(lF,{compact:!0})}):(0,t.jsx)(lF,{})]}),(0,t.jsxs)(lJ.Profile.Root,{isLoading:I,children:[C&&N&&(0,t.jsx)(lJ.CustomPopover,{trigger:(0,t.jsx)(A.$,{variant:"outline",size:"icon",className:"ms-4 h-10 w-10",children:(0,t.jsx)(lr.default,{className:"h-5 w-5"})}),content:(0,t.jsx)(lF,{compact:!0})}),p?(0,t.jsxs)(t.Fragment,{children:[z&&(0,t.jsx)(lt.rA,{action:z}),(0,t.jsx)(lb.bL,{}),(0,t.jsx)(aa,{})]}):(0,t.jsx)(lJ.Actions,{children:E.map(e=>(0,t.jsx)(lt.rA,{action:e},e.label))})]})]}),(S||v)&&(0,t.jsx)(lj,{})]})})})]})};function as(e,l){return l?{...e,config:{...e.config,...l}}:e}let an="(max-width: ".concat(767,"px)");function ai(){return"function"!=typeof window.matchMedia?"desktop":window.matchMedia(an).matches?"mobile":"desktop"}let ar=function(e){let l=new Map(void 0);return{register(e,a){if(!e)throw Error("customBlockRegistry.register: key vazia");l.set(e,a)},unregister(e){l.delete(e)},resolve:e=>l.get(e),has:e=>l.has(e),keys:()=>Array.from(l.keys()),clear(){l.clear()}}}();function ao(e){var l;let{block:a}=e,s=null!=(l=a.customKey)?l:"(sem customKey)";return(0,t.jsx)("div",{className:"ub-block-fallback","data-ub-fallback":s,"data-ub-block-type":a.type,role:"presentation"})}function ad(e,l){return e?function(){for(var a=arguments.length,t=Array(a),s=0;s<a;s++)t[s]=arguments[s];e(...t),l()}:e}var ac=a(527209),au=a(60952),am=a(382063),ax=a(419204),ah=a(175882),af=a(948648),ap=a(760709),ag=a(891456),aj=a(216485),ab=a(539347),av=a(685998),ay=a(869823),aN=a(332467);let aw=(0,a(983101).F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ak=i.forwardRef((e,l)=>{let{className:a,variant:s,size:n,asChild:i=!1,children:r,disabled:o,isLoading:d=!1,...c}=e,u=i?aN.DX:"button";return(0,t.jsx)(u,{className:eT(aw({variant:s,size:n,className:a})),ref:l,disabled:d||o,...c,children:d?(0,t.jsx)(lA.default,{className:"mr-2 h-5 w-5 animate-spin"}):(0,t.jsx)(aN.xV,{children:r})})});ak.displayName="Button";var aC=a(268072),aS=a(35626),aE=a(552987);let az=i.createContext(null);function aA(){let e=i.useContext(az);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let aI=i.forwardRef((e,l)=>{let{orientation:a="horizontal",opts:s,setApi:n,plugins:r,className:o,children:d,...c}=e,[u,m]=(0,aC.A)({...s,axis:"horizontal"===a?"x":"y"},r),[x,h]=i.useState(!1),[f,p]=i.useState(!1),g=i.useCallback(e=>{e&&(h(e.canScrollPrev()),p(e.canScrollNext()))},[]),j=i.useCallback(()=>{null==m||m.scrollPrev()},[m]),b=i.useCallback(()=>{null==m||m.scrollNext()},[m]),v=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),j()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[j,b]);return i.useEffect(()=>{m&&n&&n(m)},[m,n]),i.useEffect(()=>{if(m)return g(m),m.on("reInit",g),m.on("select",g),()=>{null==m||m.off("select",g)}},[m,g]),(0,t.jsx)(az.Provider,{value:{carouselRef:u,api:m,opts:s,orientation:a||((null==s?void 0:s.axis)==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:b,canScrollPrev:x,canScrollNext:f},children:(0,t.jsx)("div",{ref:l,onKeyDownCapture:v,className:eT("relative",o),role:"region","aria-roledescription":"carousel",...c,children:d})})});
1aI.displayName="Carousel";let a_=i.forwardRef((e,l)=>{let{className:a,...s}=e,{carouselRef:n,orientation:i}=aA();return(0,t.jsx)("div",{ref:n,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:l,className:eT("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",a),...s})})});a_.displayName="CarouselContent";let aL=i.forwardRef((e,l)=>{let{className:a,...s}=e,{orientation:n}=aA();return(0,t.jsx)("div",{ref:l,role:"group","aria-roledescription":"slide",className:eT("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pl-4":"pt-4",a),...s})});aL.displayName="CarouselItem",i.forwardRef((e,l)=>{let{className:a,variant:s="outline",size:n="icon",...i}=e,{orientation:r,scrollPrev:o,canScrollPrev:d}=aA();return(0,t.jsxs)(ak,{ref:l,variant:s,size:n,className:eT("absolute min-h-8 min-w-8 rounded-full","horizontal"===r?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(aS.default,{className:"h-4 w-4"}),i.children?(0,t.jsx)("p",{className:"ml-2",children:i.children}):null,(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",i.forwardRef((e,l)=>{let{className:a,variant:s="outline",size:n="icon",...i}=e,{orientation:r,scrollNext:o,canScrollNext:d}=aA();return(0,t.jsxs)(ak,{ref:l,variant:s,size:n,className:eT("absolute min-h-8 min-w-8 rounded-full","horizontal"===r?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...i,children:[i.children?(0,t.jsx)("p",{className:"mr-2",children:i.children}):null,(0,t.jsx)(aE.default,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";var aR=a(547321);let aP=i.forwardRef((e,l)=>{let{className:a,orientation:s="horizontal",decorative:n=!0,...i}=e;return(0,t.jsx)(aR.b,{ref:l,decorative:n,orientation:s,className:eT("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",a),...i})});aP.displayName=aR.b.displayName;let aT={film:ac.default,"shopping-bag":au.default,ticket:am.default,percent:ax.default,wallet:ah.default,handshake:af.default,gift:ap.default,"layout-grid":ag.default,"map-pin":lr.default,calendar:aj.default,star:ab.default,phone:d.default,bell:av.default,"last-updated":lo.default,highlights:ld.default,categories:lc.default,lottery:lu.default,"all-partners":lm.default};function aD(e){let{icon:l}=e;if(!l)return null;let a=aT[l];return a?(0,t.jsx)(a,{size:16,className:"mr-2"}):(0,t.jsx)(ay.A,{name:l,size:16,className:"mr-2"})}function aO(e){let{items:l,isMobile:a=!1,onItemClick:s,className:n}=e;return a?(0,t.jsx)(aI,{className:eT("w-full bg-primary py-2",n),opts:{loop:!1,dragFree:!0},orientation:"horizontal","data-ub-block":"custom-links",children:(0,t.jsx)(a_,{children:l.map(e=>(0,t.jsx)(aL,{className:"flex items-start xs:basis-auto sm:basis-auto",children:(0,t.jsxs)(ak,{variant:"ghost",onClick:()=>null==s?void 0:s(e),className:"text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",children:[(0,t.jsx)(aD,{icon:e.icon}),e.label]})},e.id))})}):(0,t.jsx)("div",{className:eT("z-40 flex h-full min-h-16 w-full flex-nowrap items-center justify-center bg-primary",n),"data-ub-block":"custom-links",children:(0,t.jsx)("span",{className:"flex items-center gap-2",children:l.map((e,l)=>(0,t.jsxs)(i.Fragment,{children:[l>0?(0,t.jsx)(aP,{className:"h-6 w-[1px] bg-primary-foreground/20"}):null,(0,t.jsxs)(ak,{variant:"ghost",onClick:()=>null==s?void 0:s(e),className:"text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",children:[(0,t.jsx)(aD,{icon:e.icon}),e.label]})]},e.id))})})}var aU=a(265229);let aq={menu:lX.default,chevron:l0.default};function aF(e){var l;let{side:a="left",defaultOpen:s=!1,triggerIcon:n="menu",triggerLabel:r="Abrir menu",children:o,className:d}=e,[c,u]=(0,i.useState)(s),m=()=>u(!1),x=null!=(l=aq[n])?l:lX.default;return(0,t.jsxs)("div",{className:d,"data-ub-block":"drawer","data-ub-drawer-side":a,children:[(0,t.jsx)(ak,{variant:"outline",size:"icon","aria-label":r,"aria-expanded":c,onClick:()=>u(e=>!e),children:(0,t.jsx)(x,{size:16})}),c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50","data-ub-drawer-overlay":!0,onClick:m}),(0,t.jsxs)("aside",{className:eT("fixed top-0 z-50 flex h-full max-h-screen w-72 flex-col gap-4 overflow-y-auto bg-background p-4 shadow-lg","right"===a?"right-0":"left-0"),"data-ub-drawer-panel":!0,"data-ub-drawer-side":a,children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(ak,{variant:"ghost",size:"icon","aria-label":"Fechar menu",onClick:m,children:(0,t.jsx)(aU.default,{size:16})})}),o(m)]})]}):null]})}var aB=a(931138);let a$=aB.bL,aM=aB.l9,aV=i.forwardRef((e,l)=>{let{className:a,align:s="center",sideOffset:n=4,...i}=e;return(0,t.jsx)(aB.ZL,{children:(0,t.jsx)(aB.UC,{ref:l,align:s,sideOffset:n,className:eT("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...i})})});aV.displayName=aB.UC.displayName;var aH=a(804729),aW=a(637135),aG=a(505917);let aJ=aH.bL;aH.YJ;let aX=aH.WT,aK=i.forwardRef((e,l)=>{let{className:a,children:s,...n}=e;return(0,t.jsxs)(aH.l9,{ref:l,className:eT("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...n,children:[s,(0,t.jsx)(aH.In,{asChild:!0,children:(0,t.jsx)(l0.default,{className:"h-4 w-4 opacity-50"})})]})});aK.displayName=aH.l9.displayName;let aY=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(aH.PP,{ref:l,className:eT("flex cursor-default items-center justify-center py-1",a),...s,children:(0,t.jsx)(lQ.default,{className:"h-4 w-4"})})});aY.displayName=aH.PP.displayName;let aZ=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(aH.wn,{ref:l,className:eT("flex cursor-default items-center justify-center py-1",a),...s,children:(0,t.jsx)(l0.default,{className:"h-4 w-4"})})});aZ.displayName=aH.wn.displayName;let aQ=i.forwardRef((e,l)=>{let{onClear:a,...s}=e;return(0,t.jsxs)(ak,{ref:l,variant:"ghost",...s,onClick:a,children:[(0,t.jsx)(aW.default,{className:"mr-2",size:16}),(0,t.jsx)("p",{children:"Limpar sele\xe7\xe3o"})]})});aQ.displayName="SelectClearButton";let a0=i.forwardRef((e,l)=>{let{className:a,children:s,position:n="popper",clearable:i=!1,onClear:r,...o}=e;return(0,t.jsx)(aH.ZL,{children:(0,t.jsxs)(aH.UC,{ref:l,className:eT("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...o,children:[i&&(0,t.jsx)(aQ,{onClear:r}),(0,t.jsx)(aY,{}),(0,t.jsx)(aH.LM,{className:eT("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,t.jsx)(aZ,{})]})})});a0.displayName=aH.UC.displayName,i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(aH.JU,{ref:l,className:eT("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})}).displayName=aH.JU.displayName;let a2=i.forwardRef((e,l)=>{let{className:a,children:s,...n}=e;return(0,t.jsxs)(aH.q7,{ref:l,className:eT("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(aH.VF,{children:(0,t.jsx)(aG.default,{className:"h-4 w-4"})})}),(0,t.jsx)(aH.p4,{children:s})]})});a2.displayName=aH.q7.displayName,i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(aH.wv,{ref:l,className:eT("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=aH.wv.displayName;var a1=a(126852);let a5=a1.Kq,a4=a1.bL,a9=a1.l9,a6=i.forwardRef((e,l)=>{let{className:a,sideOffset:s=4,...n}=e;return(0,t.jsx)(a1.UC,{ref:l,sideOffset:s,className:eT("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})});function a8(e){let{value:l,placeholder:a,options:s,disabled:n,onChange:i,className:r}=e;return(0,t.jsxs)(aJ,{value:null!=l?l:"",onValueChange:i,disabled:n,children:[(0,t.jsx)(aK,{className:eT("ub-geo-select",r),children:(0,t.jsx)(aX,{placeholder:a})}),(0,t.jsx)(a0,{children:s.map(e=>(0,t.jsx)(a2,{value:e.value,children:e.label},e.value))})]})}
1function a3(e){let{variant:l="inline",locationLabel:a,countries:s,selectedCountry:n,states:r,cities:o,areas:d,selectedState:c,selectedCity:u,selectedArea:m,isLocating:x=!1,countryPlaceholder:h="Selecione um pa\xeds",statePlaceholder:f="Selecione um estado",cityPlaceholder:p="Selecione uma cidade",areaPlaceholder:g="Selecione um bairro",manualSelectLabel:j="Selecionar localiza\xe7\xe3o",useMyLocationLabel:b="Usar minha localiza\xe7\xe3o",clearLabel:v="Limpar localiza\xe7\xe3o",collapsibleIcon:y="chevron",defaultExpanded:N=!1,onCountryChange:w,onStateChange:k,onCityChange:C,onAreaChange:S,onClear:E,onUseMyLocation:z,className:A,expanded:I,onToggleExpanded:_,slot:L}=e,[R,P]=(0,i.useState)(N),T=void 0!==I,D=T?I:R,O=!!(n||c||u||m),U=!!(s&&s.length>0),q=!!(d&&d.length>0),F=(0,t.jsxs)(t.Fragment,{children:[U?(0,t.jsx)(a8,{value:n,placeholder:h,options:null!=s?s:[],onChange:w}):null,(0,t.jsx)(a8,{value:c,placeholder:f,options:r,onChange:k}),(0,t.jsx)(a8,{value:u,placeholder:p,options:o,disabled:!c,onChange:C}),q?(0,t.jsx)(a8,{value:m,placeholder:g,options:null!=d?d:[],disabled:!u,onChange:S}):null,O?(0,t.jsx)(a5,{children:(0,t.jsxs)(a4,{children:[(0,t.jsx)(a9,{asChild:!0,children:(0,t.jsxs)(ak,{variant:"outline",onClick:E,children:[(0,t.jsx)(lE.default,{size:16,className:"mr-2"}),(0,t.jsx)("span",{children:v})]})}),(0,t.jsx)(a6,{children:(0,t.jsx)("p",{children:v})})]})}):null,(0,t.jsx)(ak,{variant:"default",onClick:z,disabled:x,children:x?(0,t.jsx)(lA.default,{size:16,className:"animate-spin"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(lr.default,{size:16,className:"mr-2"}),(0,t.jsx)("span",{children:b})]})})]});if("popover"===l)return(0,t.jsx)("div",{className:A,"data-ub-block":"geo","data-ub-geo-variant":"popover",children:(0,t.jsxs)(a$,{children:[(0,t.jsx)(aM,{asChild:!0,children:(0,t.jsxs)(ak,{variant:"outline",className:"xs:w-full",children:[(0,t.jsx)(lr.default,{size:16,className:"mr-2"}),(0,t.jsx)("span",{children:a||j})]})}),(0,t.jsx)(aV,{className:"flex flex-col gap-2",children:F})]})});if("collapsible"===l){let e="map-pin"===y?D?lZ.default:lr.default:D?lQ.default:l0.default,l=(0,t.jsx)(ak,{variant:"outline",size:"icon","aria-expanded":D,"aria-label":a||j,title:a||j,onClick:()=>T?null==_?void 0:_():P(e=>!e),children:(0,t.jsx)(e,{size:16})}),s=D?(0,t.jsx)("div",{className:"ub-geo-inline w-full","data-ub-geo-panel":!0,children:(0,t.jsx)("div",{className:"ub-geo-inline-controls",children:F})}):null;return"trigger"===L?(0,t.jsx)("div",{className:eT("flex max-w-full flex-col",A),"data-ub-block":"geo","data-ub-geo-variant":"collapsible",children:l}):"panel"===L?(0,t.jsx)("div",{className:eT("w-full",A),"data-ub-block":"geo","data-ub-geo-variant":"collapsible",children:s}):(0,t.jsxs)("div",{className:eT("flex max-w-full flex-col gap-2",A),"data-ub-block":"geo","data-ub-geo-variant":"collapsible",children:[l,D?(0,t.jsx)("div",{className:"flex w-full min-w-0 flex-col gap-2 [&_button]:h-auto [&_button]:min-h-10 [&_button]:whitespace-normal","data-ub-geo-panel":!0,children:F}):null]})}return(0,t.jsx)("div",{className:eT("ub-geo-inline",A),"data-ub-block":"geo","data-ub-geo-variant":"inline",children:(0,t.jsx)("div",{className:"ub-geo-inline-controls",children:F})})}function a7(e){let{logoUrl:l,logoAlt:a="logo",name:s,logoHeight:n=64,onLogoClick:i,className:r}=e;return(0,t.jsxs)("div",{className:r,"data-ub-block":"logo",children:[l?(0,t.jsx)("img",{src:l,alt:a,className:"max-w-full cursor-pointer",style:{width:"auto",height:"".concat(n,"px")},onClick:i}):(0,t.jsx)("span",{className:"cursor-pointer font-semibold",onClick:i,"data-ub-block":"logo-text",children:null!=s?s:a}),s?(0,t.jsx)("h1",{className:"hidden",children:s}):null]})}function te(e){if(e)return"brand.primary"===e?"var(--ub-primary)":"brand.secondary"===e?"var(--ub-secondary)":e}function tl(e){var l,a,t,s;let n=function(e){switch(e){case"ghost":case"link":return{textColor:"brand.primary"};case"outline":return{textColor:"brand.primary",borderColor:"brand.primary",borderWidth:1};default:return{bgColor:"brand.primary",textColor:"#ffffff"}}}(e.variant),i=te(null!=(l=e.bgColor)?l:n.bgColor),r=te(null!=(a=e.textColor)?a:n.textColor),o=te(null!=(t=e.borderColor)?t:n.borderColor),d=null!=(s=e.borderWidth)?s:n.borderWidth,c=te(e.hoverBgColor),u=te(e.hoverTextColor),m={"--ub-btn-bg":null!=i?i:"transparent","--ub-btn-text":null!=r?r:"inherit","--ub-btn-hover-filter":c||u?"none":"brightness(0.92)"};return c&&(m["--ub-btn-hover-bg"]=c),u&&(m["--ub-btn-hover-text"]=u),o&&d&&(m.border="".concat(d,"px solid ").concat(o)),"number"==typeof e.borderRadius&&(m.borderRadius="".concat(e.borderRadius,"px")),m}function ta(e){return"sm"===e.size?"sm":"lg"===e.size?"lg":"default"}function tt(e){var l;let{onButtonClick:a,className:s,...n}=e;if(!n.label)return null;let i={id:"button",label:n.label,href:null!=(l=n.href)?l:"#",...n},r=n.iconUrl?(0,t.jsx)("img",{src:n.iconUrl,alt:"","aria-hidden":"true",className:"h-[1.1em] w-auto shrink-0"}):null,o="right"===n.iconSide;
1return(0,t.jsx)("div",{className:eT("flex items-center",s),"data-ub-block":"button",children:(0,t.jsxs)(ak,{variant:"ghost",size:ta(i),className:"w-full gap-2",style:tl(i),onClick:()=>null==a?void 0:a(),children:[r&&!o?r:null,n.label,r&&o?r:null]})})}function ts(e){let{onButtonClick:l,className:a,...s}=e,n=function(e){var l,a,t;if(e.buttons&&e.buttons.length>0)return e.buttons;let s=[];return(e.primaryLabel&&s.push({id:"primary",label:e.primaryLabel,href:null!=(l=e.primaryHref)?l:"#",variant:"default"}),e.secondaryLabel&&s.push({id:"secondary",label:e.secondaryLabel,href:null!=(a=e.secondaryHref)?a:"#",variant:"ghost"}),s.length>0)?s:e.label?[{id:"single",label:e.label,href:"#",variant:null!=(t=e.variant)?t:"outline"}]:[]}(s);return 0===n.length?null:(0,t.jsx)("div",{className:eT("flex gap-2","column"===s.direction?"flex-col items-stretch":"flex-row items-center flex-wrap",a),"data-ub-block":"login-button",children:n.map(e=>{let a=e.iconUrl?(0,t.jsx)("img",{src:e.iconUrl,alt:"","aria-hidden":"true",className:"h-[1.1em] w-auto shrink-0"}):null,s="right"===e.iconSide;return(0,t.jsxs)(ak,{variant:"ghost",size:ta(e),className:"gap-2",style:tl(e),onClick:()=>null==l?void 0:l(e),"data-ub-button-id":e.id,children:[a&&!s?a:null,e.label,a&&s?a:null]},e.id)})})}a6.displayName=a1.UC.displayName;var tn=a(692472),ti=a(749716),tr=a(583161);let to=e=>{let{shouldScaleBackground:l=!0,...a}=e;return(0,t.jsx)(tr._s.Root,{shouldScaleBackground:l,...a})};to.displayName="Drawer";let td=tr._s.Trigger,tc=tr._s.Portal,tu=tr._s.Close,tm=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tr._s.Overlay,{ref:l,className:eT("fixed inset-0 z-50 bg-black/80",a),...s})});tm.displayName=tr._s.Overlay.displayName;let tx=i.forwardRef((e,l)=>{let{className:a,children:s,...n}=e;return(0,t.jsxs)(tc,{children:[(0,t.jsx)(tm,{}),(0,t.jsxs)(tr._s.Content,{ref:l,className:eT("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...n,children:[(0,t.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),s]})]})});tx.displayName="DrawerContent";let th=e=>{let{className:l,...a}=e;return(0,t.jsx)("div",{className:eT("grid gap-1.5 p-4 text-center sm:text-left",l),...a})};th.displayName="DrawerHeader";let tf=e=>{let{className:l,...a}=e;return(0,t.jsx)("div",{className:eT("mt-auto flex flex-col gap-2 p-4",l),...a})};tf.displayName="DrawerFooter";let tp=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tr._s.Title,{ref:l,className:eT("text-lg font-semibold leading-none tracking-tight",a),...s})});tp.displayName=tr._s.Title.displayName;let tg=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tr._s.Description,{ref:l,className:eT("text-sm text-muted-foreground",a),...s})});tg.displayName=tr._s.Description.displayName;var tj=a(737738),tb=a(627937),tv=a(499051);let ty=tj.bL,tN=tj.l9;tj.YJ,tj.ZL,tj.Pb,tj.z6,i.forwardRef((e,l)=>{let{className:a,inset:s,children:n,...i}=e;return(0,t.jsxs)(tj.ZP,{ref:l,className:eT("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&&"pl-8",a),...i,children:[n,(0,t.jsx)(tb.default,{className:"ml-auto h-4 w-4"})]})}).displayName=tj.ZP.displayName,i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tj.G5,{ref:l,className:eT("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=tj.G5.displayName;let tw=i.forwardRef((e,l)=>{let{className:a,sideOffset:s=4,...n}=e;return(0,t.jsx)(tj.ZL,{children:(0,t.jsx)(tj.UC,{ref:l,sideOffset:s,className:eT("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});tw.displayName=tj.UC.displayName;let tk=i.forwardRef((e,l)=>{let{className:a,inset:s,...n}=e;return(0,t.jsx)(tj.q7,{ref:l,className:eT("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",a),...n})});tk.displayName=tj.q7.displayName,i.forwardRef((e,l)=>{let{className:a,children:s,checked:n,...i}=e;return(0,t.jsxs)(tj.H_,{ref:l,className:eT("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:n,...i,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tj.VF,{children:(0,t.jsx)(aG.default,{className:"h-4 w-4"})})}),s]})}).displayName=tj.H_.displayName,i.forwardRef((e,l)=>{let{className:a,children:s,...n}=e;return(0,t.jsxs)(tj.hN,{ref:l,className:eT("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tj.VF,{children:(0,t.jsx)(tv.default,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=tj.hN.displayName;let tC=i.forwardRef((e,l)=>{let{className:a,inset:s,...n}=e;return(0,t.jsx)(tj.JU,{ref:l,className:eT("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...n})});tC.displayName=tj.JU.displayName;let tS=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tj.wv,{ref:l,className:eT("-mx-1 my-1 h-px bg-muted",a),...s})});tS.displayName=tj.wv.displayName;var tE=a(659034);let tz=i.forwardRef((e,l)=>{let{className:a,children:s,thumbClassName:n,...i}=e;return(0,t.jsxs)(tE.bL,{ref:l,className:eT("relative overflow-hidden",a),...i,children:[(0,t.jsx)(tE.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,t.jsx)(tA,{thumbClassName:n}),(0,t.jsx)(tE.OK,{})]})});tz.displayName=tE.bL.displayName;let tA=i.forwardRef((e,l)=>{let{className:a,orientation:s="vertical",thumbClassName:n,...i}=e;return(0,t.jsx)(tE.VM,{ref:l,orientation:s,className:eT("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...i,children:(0,t.jsx)(tE.lr,{className:eT("relative flex-1 rounded-full bg-border",n)})})});function tI(e){let{item:l,onItemClick:a}=e;return(0,t.jsxs)("button",{type:"button",className:"flex w-full flex-col items-start gap-0.5 px-4 py-2 text-left text-sm hover:bg-accent",onClick:()=>null==a?void 0:a(l),children:[(0,t.jsx)("span",{className:"font-medium",children:l.title}),l.description?(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:l.description}):null,l.createdAt||!l.visited?(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-2",children:[l.createdAt?(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,tn.B)(new Date(l.createdAt),new Date,{addSuffix:!0,locale:ti.F})}):null,l.visited?null:(0,t.jsx)("span",{className:"inline-flex items-center rounded-full border px-2.5 py-0.5 text-[10px] font-semibold text-foreground",children:"Novo!"})]}):null]})}function t_(e){let{label:l}=e;return(0,t.jsx)("p",{className:"px-4 py-2 text-center text-sm text-zinc-600",children:l})}function tL(e){let{items:l,emptyLabel:a,onItemClick:s}=e;return(0,t.jsx)(tz,{className:"h-96 md:pb-10",children:0===l.length?(0,t.jsx)(t_,{label:a}):l.map(e=>(0,t.jsx)(tI,{item:e,onItemClick:s},e.id))})}function tR(e){let{items:l=[],isMobile:a=!1,title:s="Notifica\xe7\xf5es",description:n="Veja suas notifica\xe7\xf5es mais recentes",emptyLabel:r="Sem notifica\xe7\xf5es",closeLabel:o="Fechar",onNotificationsClick:d,onItemClick:c,className:u}=e,[m,x]=(0,i.useState)(!1),h=l.length,f=e=>{x(e),e&&(null==d||d())},p=(0,t.jsxs)("span",{className:"relative","data-ub-block":"notifications",children:[h>0?(0,t.jsx)("span",{className:"absolute right-0 top-0 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-center text-[8px] text-white",children:h}):null,(0,t.jsx)(ak,{variant:"outline",size:"icon",className:u,children:(0,t.jsx)(av.default,{size:16})})]});return a?(0,t.jsxs)(to,{open:m,onOpenChange:f,children:[(0,t.jsx)(td,{asChild:!0,children:p}),(0,t.jsxs)(tx,{children:[(0,t.jsxs)(th,{className:"text-left",children:[(0,t.jsx)(tp,{children:s}),(0,t.jsx)(tg,{children:n})]}),(0,t.jsx)(tL,{items:l,emptyLabel:r,onItemClick:c}),(0,t.jsx)(tf,{className:"pt-2",children:(0,t.jsx)(tu,{asChild:!0,children:(0,t.jsx)(ak,{variant:"outline",children:o})})})]})]}):(0,t.jsxs)(ty,{open:m,onOpenChange:f,modal:!1,children:[(0,t.jsx)(tN,{asChild:!0,children:p}),(0,t.jsxs)(tw,{className:"max-h-96 max-w-96",children:[(0,t.jsx)(tC,{children:s}),(0,t.jsx)(tS,{}),0===l.length?(0,t.jsx)(t_,{label:r}):l.map(e=>(0,t.jsx)(tk,{asChild:!0,children:(0,t.jsx)(tI,{item:e,onItemClick:c})},e.id))]})]})}tA.displayName=tE.VM.displayName;let tP=i.forwardRef((e,l)=>{let{className:a,type:s,...n}=e;return(0,t.jsx)("input",{type:s,className:eT("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:l,...n})});function tT(e){let{placeholder:l="Buscar parceiros e ofertas",mobileLabel:a="Pesquisar",isMobile:s=!1,defaultValue:n="",onSearch:r,className:o}=e,[d,c]=(0,i.useState)(n),u=()=>null==r?void 0:r(d);return(0,t.jsxs)("div",{className:eT("my-2 flex xs:w-full sm:w-full lg:w-fit lg:min-w-64",o),"data-ub-block":"search",children:[(0,t.jsx)(tP,{className:"rounded-r-none",placeholder:l,value:d,onChange:e=>c(e.target.value),onKeyUp:e=>{"Enter"===e.key&&u()}}),(0,t.jsx)(ak,{className:"rounded-l-none border-l-0",variant:"outline",onClick:u,children:s?a:(0,t.jsx)(v.default,{})})]})}tP.displayName="Input";var tD=a(763366);let tO=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tD.bL,{ref:l,className:eT("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...s})});tO.displayName=tD.bL.displayName;let tU=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tD._V,{ref:l,className:eT("aspect-square h-full w-full",a),width:24,height:24,...s})});tU.displayName=tD._V.displayName;let tq=i.forwardRef((e,l)=>{let{className:a,...s}=e;return(0,t.jsx)(tD.H4,{ref:l,className:eT("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...s})});function tF(e){let{userName:l,avatarUrl:a,menuLabel:s="Op\xe7\xf5es",profileLabel:n="Meu perfil",logoutLabel:i="Sair do clube",onProfileClick:r,onLogout:o,className:d}=e;return(0,t.jsxs)(ty,{children:[(0,t.jsx)(tN,{asChild:!0,children:(0,t.jsxs)(tO,{className:eT("group cursor-pointer",d),"data-ub-block":"user-menu",children:[a?(0,t.jsx)(tU,{src:a,alt:null!=l?l:""}):null,(0,t.jsx)(tq,{className:"group-hover:bg-zinc-200",children:function(e){let l=null==e?void 0:e.trim().split(" ")[0];return l?l.charAt(0).toUpperCase():""}(l)})]})}),(0,t.jsxs)(tw,{children:[(0,t.jsx)(tC,{children:s}),(0,t.jsx)(tS,{}),(0,t.jsxs)(tk,{onClick:r,children:[(0,t.jsx)(y.default,{className:"mr-2 h-4 w-4"}),n]}),(0,t.jsxs)(tk,{onClick:o,children:[(0,t.jsx)(lY.default,{className:"mr-2 h-4 w-4"}),i]})]})]})}function tB(e){return e.config}function t$(e){let l=null==e?void 0:e.onNavClick;return eH(null==e?void 0:e.onActionTrigger,l&&(e=>{var a,t;return l({label:null!=(a=e.label)?a:"",href:null!=(t=e.href)?t:"#"})}))}function tM(e){var l,a,s,n,i,r,o,d,c,u,m;let{block:x,data:h,handlers:f,breakpoint:p="desktop",mode:g="live",registry:j=ar,blocks:b=[],auth:v,geoSlot:y,geoExpanded:N,onGeoToggle:w}=e;if("custom"===x.type){let e=null!=(l=x.customKey?j.resolve(x.customKey):void 0)?l:ao;return(0,t.jsx)(e,{block:x,data:h,handlers:f,mode:g})}switch(x.type){case"logo":{let e=tB(x);return(0,t.jsx)(a7,{...e,logoUrl:null!=(s=null!=(a=e.logoUrl)?a:h.brandLogoUrl)?s:"",logoAlt:null!=(n=e.logoAlt)?n:h.brandName,name:null!=(i=e.name)?i:h.brandName,onLogoClick:null==f?void 0:f.onLogoClick})}case"search":return(0,t.jsx)(tT,{...tB(x),isMobile:"mobile"===p,onSearch:null==f?void 0:f.onSearch});case"geo":{let e=h.geo;return(0,t.jsx)(a3,{...tB(x),countries:null==e?void 0:e.countries,selectedCountry:null==e?void 0:e.selectedCountry,states:null!=(r=null==e?void 0:e.states)?r:[],cities:null!=(o=null==e?void 0:e.cities)?o:[],areas:null==e?void 0:e.areas,selectedState:null==e?void 0:e.selectedState,selectedCity:null==e?void 0:e.selectedCity,selectedArea:null==e?void 0:e.selectedArea,isLocating:null==e?void 0:e.isLocating,locationLabel:h.locationLabel,onCountryChange:null==f?void 0:f.onGeoCountryChange,onStateChange:null==f?void 0:f.onGeoStateChange,onCityChange:null==f?void 0:f.onGeoCityChange,onAreaChange:null==f?void 0:f.onGeoAreaChange,onClear:null==f?void 0:f.onGeoClear,onUseMyLocation:null==f?void 0:f.onUseMyLocation,slot:y,expanded:N,onToggleExpanded:w})}case"custom-links":return(0,t.jsx)(aO,{...tB(x),isMobile:"mobile"===p,onItemClick:t$(f)});case"login-button":return(0,t.jsx)(ts,{...tB(x),onButtonClick:t$(f)});case"button":{let e=tB(x),l=t$(f);return(0,t.jsx)(tt,{...e,onButtonClick:l&&(()=>l(e))})}case"user-menu":return(0,t.jsx)(tF,{...tB(x),userName:null==(d=h.user)?void 0:d.name,avatarUrl:null==(c=h.user)?void 0:c.avatarUrl,onProfileClick:null==f?void 0:f.onProfileClick,onLogout:null==f?void 0:f.onLogout});case"notifications":return(0,t.jsx)(tR,{...tB(x),items:h.notifications,isMobile:"mobile"===p,onNotificationsClick:null==f?void 0:f.onNotificationsClick,onItemClick:null==f?void 0:f.onNotificationItemClick});case"drawer":{let e=tB(x),l=null==(u=e.closeOnNavigate)||u,a=null!=v?v:h.auth,s=(null!=(m=e.children)?m:[]).map(e=>{var l;let t=b.find(l=>l.id===e.blockId);return t&&"drawer"!==t.type?(l=t.visibility,"always"!==l&&l!==a)?null:{ref:e,child:t}:null}).filter(e=>null!==e);return(0,t.jsx)(aF,{side:e.side,defaultOpen:e.defaultOpen,triggerIcon:e.triggerIcon,triggerLabel:e.triggerLabel,children:e=>{let n=l?f?{...f,onLogoClick:ad(f.onLogoClick,e),onNavClick:ad(f.onNavClick,e),onSearch:ad(f.onSearch,e),onLoginClick:ad(f.onLoginClick,e),onProfileClick:ad(f.onProfileClick,e),onLogout:ad(f.onLogout,e),onNotificationItemClick:ad(f.onNotificationItemClick,e),onActionTrigger:ad(f.onActionTrigger,e)}:f:f;return s.map(e=>{let{ref:l,child:s}=e;return(0,t.jsx)("div",{style:function(e){var l,a,t;let s={},n=eO(null==(l=e.layout)?void 0:l.padding),i=eU(null==(a=e.layout)?void 0:a.margin,null==(t=e.layout)?void 0:t.marginX);return eq(n)&&(s.padding="".concat(n.top,"px ").concat(n.right,"px ").concat(n.bottom,"px ").concat(n.left,"px")),i.top&&(s.marginTop="".concat(i.top,"px")),i.right&&(s.marginRight="".concat(i.right,"px")),i.bottom&&(s.marginBottom="".concat(i.bottom,"px")),i.left&&(s.marginLeft="".concat(i.left,"px")),s}(l),children:(0,t.jsx)(tM,{block:s,data:h,handlers:n,breakpoint:p,mode:g,registry:j,blocks:b,auth:a})},s.id)})}})}default:return(0,t.jsx)("div",{className:"ub-block-placeholder","data-ub-placeholder":x.type,children:x.type})}}function tV(e,l){return"always"===e||e===l}function tH(e){return"geo"===e.type&&"collapsible"===e.config.variant}
1function tW(e){let{config:l,data:a,theme:s,handlers:n,mode:r="live",previewAuth:o,breakpoint:d,className:c}=e,u=function(){let[e,l]=(0,i.useState)(ai);return(0,i.useEffect)(()=>{if("function"!=typeof window.matchMedia)return;let e=window.matchMedia(an),a=()=>l(ai());return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e}(),m=null!=d?d:u,x=l.layouts[m],{wrapper:h,container:f,items:p}=eV({canvas:x.canvas,placement:x.placement}),g=null!=o?o:a.auth,j="inert"===r,b=new Map(x.placement.map(e=>[e.blockId,e])),v=e=>{var a;let t=l.blocks.find(l=>l.id===e);return t?as(t,null==(a=b.get(e))?void 0:a.presentation):null},[y,N]=(0,i.useState)(()=>{for(let e of x.placement){let l=v(e.blockId);if(l&&tH(l)&&l.config.defaultExpanded)return e.blockId}return null}),w=y?v(y):null,k=!!w&&tH(w)&&tV(w.visibility,g),C={...function(e){if(!e)return{};let l={};return e.primary&&(l["--ub-primary"]=e.primary),e.secondary&&(l["--ub-secondary"]=e.secondary),e.foreground&&(l["--ub-foreground"]=e.foreground),e.background&&(l["--ub-background"]=e.background),l}(s),...h,...j?{pointerEvents:"none"}:null};return(0,t.jsxs)("header",{className:eT("ub-scope",c),"data-ub-block":"header-renderer","data-ub-breakpoint":m,"data-ub-mode":r,style:C,children:[(0,t.jsx)("div",{style:f,"data-ub-block":"header-content",children:p.map(e=>{var s;let{blockId:i,style:o}=e,d=l.blocks.find(e=>e.id===i);if(!d||!tV(d.visibility,g))return null;let c=as(d,null==(s=b.get(i))?void 0:s.presentation),u=tH(c),x="custom-links"===c.type?{...o,gridColumn:"1 / -1",width:"100vw",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)"}:o;return(0,t.jsx)("div",{style:x,"data-ub-block-id":i,"data-ub-block-type":c.type,children:(0,t.jsx)(tM,{block:c,data:a,handlers:j?void 0:n,breakpoint:m,mode:r,blocks:l.blocks,auth:g,geoSlot:u?"trigger":void 0,geoExpanded:u?y===i:void 0,onGeoToggle:u?()=>N(e=>e===i?null:i):void 0})},i)})}),k&&y&&w?(0,t.jsx)("div",{style:{width:"100%",maxWidth:"".concat(1400,"px"),marginLeft:"auto",marginRight:"auto"},"data-ub-block":"header-geo-panel","data-ub-block-id":y,children:(0,t.jsx)(tM,{block:w,data:a,handlers:j?void 0:n,breakpoint:m,mode:r,blocks:l.blocks,auth:g,geoSlot:"panel",geoExpanded:!0})}):null]})}tq.displayName=tD.H4.displayName;var tG=a(851834),tJ=a(468725),tX=a(709e3);let tK=e=>{let{item:l,open:a,setOpen:s}=e,{user:n}=(0,w.Jd)(),{searchInfoBackend:r}=(0,lb.hN)(),o=(0,j.U)("(min-width: 768px)");return((0,i.useEffect)(()=>{a&&l&&l_.Ay.put("notification/read/".concat(l.id),{userId:null==n?void 0:n.id}).then(()=>r()).catch(e=>{console.log("error",e)})},[a,l]),l)?o?(0,t.jsx)(tG.lG,{open:a,onOpenChange:s,children:(0,t.jsxs)(tG.Cf,{className:"sm:max-w-[680px]",children:[(0,t.jsxs)(tG.c7,{children:[(0,t.jsx)(tG.L3,{children:"Confirma\xe7\xe3o de dados"}),(0,t.jsx)(tG.rr,{children:"Os benef\xedcios de cashback s\xe3o pagos via pix, por favor confirme as informa\xe7\xf5es"})]}),(0,t.jsx)(tX.C,{setOpen:s,notificationId:l.id})]})}):(0,t.jsx)(tJ._s,{open:a,onOpenChange:s,children:(0,t.jsxs)(tJ.zj,{children:[(0,t.jsxs)(tJ.BE,{className:"text-left",children:[(0,t.jsx)(tJ.gk,{children:"Confirma\xe7\xe3o de dados"}),(0,t.jsx)(tJ.I6,{children:"Preencha os dados abaixo"})]}),(0,t.jsx)(tX.C,{setOpen:s,notificationId:l.id})]})}):null};var tY=a(738621),tZ=a(528810);let tQ=e=>{let{item:l,open:a,setOpen:s}=e,n=(0,j.U)("(min-width: 768px)"),i=null==l?void 0:l.ratingPayload;if(!i)return null;let r=(0,tY.GP)(new Date(i.createdAt),"dd/MM/yyyy"),o=(0,t.jsx)(tZ.A,{idNotification:l.id,categoryId:i.categoryId,incentiveId:i.incentiveId,userId:i.userId,establishment:i.establishment,establishmentId:i.establishmentId,visible:a,setVisible:s,acesssDate:r});return n?(0,t.jsx)(tG.lG,{open:a,onOpenChange:s,children:(0,t.jsx)(tG.Cf,{className:"max-h-[90vh] overflow-y-auto sm:max-w-[680px]",children:o})}):(0,t.jsx)(tJ._s,{open:a,onOpenChange:s,children:(0,t.jsxs)(tJ.zj,{className:"max-h-[70vh] overflow-y-auto",children:[o,(0,t.jsx)(tJ.tb,{className:"pt-2",children:(0,t.jsx)(tJ.cp,{asChild:!0,children:(0,t.jsx)(A.$,{variant:"outline",children:"Cancelar"})})})]})})},t0="@urbis/layout-config";var t2=a(782341),t1=a(989363),t5=a(802060);let t4=()=>{};function t9(e){let{setMarginTopHeader:l=t4}=e,{config:a,theme:s}=function(){let{data:e}=(0,la.H)(),l=(0,i.useMemo)(()=>{var l,a,t;return(l=null==e?void 0:e.sections)&&null!=(t=null==(a=Object.values(l).flat().find(e=>(null==e?void 0:e.sectionType)==="header"))?void 0:a.config)?t:null},[e]);(0,i.useEffect)(()=>
1{e&&function(e){try{e?window.localStorage.setItem(t0,JSON.stringify(e)):window.localStorage.removeItem(t0)}catch(e){}}(l)},[l,e]);let a={primary:null==e?void 0:e.primaryColor,secondary:null==e?void 0:e.secondaryColor,foreground:null==e?void 0:e.primaryForeground,background:null==l?void 0:l.layouts.desktop.canvas.backgroundColor};return{config:l,theme:a}}();return a?(0,t.jsx)(t6,{config:a,theme:s}):(0,t.jsx)(at,{setMarginTopHeader:l})}function t6(e){let{config:l,theme:a}=e,{data:s,handlers:r,ratingModal:o,dataUpdateModal:d}=function(){let e=(0,n.useRouter)(),{user:l}=(0,w.Jd)(),a=(0,g._2)(),t=l6(),s=(0,lt.Pe)(),{dataNotification:r,qntNotification:o}=(0,lb.hN)(),[d,c]=(0,i.useState)(null),[u,m]=(0,i.useState)(null),x=(0,lR.n)(e=>e.region),h=(0,lR.n)(e=>e.country),f=(0,lR.n)(e=>e.setUf),p=(0,lR.n)(e=>e.setCity),j=(0,lR.n)(e=>e.setRegion),b=(0,lR.n)(e=>e.setNewRegion),v=(0,N.X)(e=>e.clearAllEstablishments),y=(0,N.X)(e=>e.setQtdSkipExclusiveEstablishments),k=(0,N.X)(e=>e.setQtdSkipUrbisEstablishments),{city:C,uf:S}=function(e){let[l="",a=""]=e.split("/");return{city:l,uf:a}}(x),{data:E}=(0,t5.y)({country:h}),{data:z}=(0,t1.J)({uf:S,country:h}),A=(0,i.useMemo)(()=>(null!=E?E:[]).map(e=>({value:e.sigla,label:e.nome})),[E]),I=(0,i.useMemo)(()=>(null!=z?z:[]).map(e=>{var l,a,t,s;return{value:null!=(a=null!=(l=e.value)?l:e.nome)?a:"",label:null!=(s=null!=(t=e.label)?t:e.nome)?s:""}}),[z]),_=(0,i.useMemo)(()=>(null!=r?r:[]).map(e=>{var l,a;return{id:e.id,title:e.text,type:e.type,createdAt:e.createdAt,visited:e.visited,ratingPayload:"dataRequestUpdate"===e.type?void 0:{categoryId:null!=(l=e.categoryId)?l:"",incentiveId:null!=(a=e.incentiveId)?a:"",userId:e.userId,establishment:e.establishment,establishmentId:e.establishment.id,createdAt:e.createdAt}}}),[r]),L=(0,t2.k)({onSuccess:e=>{e&&e.uf&&e.city&&(j("".concat(e.city,"/").concat(e.uf)),b({country:h,city:e.city,uf:e.uf}),v(),y(0),k(0),lf("all-partners"))}});return{data:{auth:l?"logged-in":"logged-out",user:l?{id:l.id,name:l.name}:void 0,brandLogoUrl:null==a?void 0:a.logoPath,brandName:null==a?void 0:a.name,notifications:_,notificationsCount:o,locationLabel:C?"".concat(C,"/").concat(S):void 0,geo:{states:A,cities:I,selectedState:S||void 0,selectedCity:C||void 0,isLocating:L.isPending}},handlers:{onLogoClick:()=>e.push("/"),onSearch:l=>e.push("/pesquisar?name="+encodeURIComponent(l)),onLoginClick:()=>e.push("/login"),onLogout:()=>t(),onProfileClick:()=>e.push("/eu"),onNotificationItemClick:e=>{if("dataRequestUpdate"===e.type)return void m(e);e.ratingPayload&&c(e)},onNavClick:l=>{/^https?:\/\//.test(l.href)?window.open(l.href):e.push(l.href)},onGeoStateChange:e=>f(e),onGeoCityChange:e=>{p(e),b({country:h,city:e,uf:S}),v(),y(0),k(0),lf("all-partners")},onGeoClear:()=>j(""),onUseMyLocation:()=>L.mutate(),onActionTrigger:s},ratingModal:{item:d,open:null!==d,setOpen:e=>{e||c(null)}},dataUpdateModal:{item:u,open:null!==u,setOpen:e=>{e||m(null)}}}}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tW,{config:l,data:s,theme:a,handlers:r,mode:"live"}),(0,t.jsx)(tQ,{item:o.item,open:o.open,setOpen:o.setOpen}),(0,t.jsx)(tK,{item:d.item,open:d.open,setOpen:d.setOpen})]})}var t8=a(407712),t3=a(197268);let t7=()=>{let e=(0,t3.q)(e=>e.setStep);return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-primary/10 p-2",children:(0,t.jsx)(t8.default,{className:"text-primary"})}),(0,t.jsx)(el.aL,{children:"Acesso expirado"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Seu \xfaltimo c\xf3digo expirou. Valide um novo c\xf3digo para voltar a participar dos sorteios e acessar os benef\xedcios exclusivos do Baita."})]}),(0,t.jsxs)(el.Uh,{className:"flex flex-col gap-3",children:[(0,t.jsx)(A.$,{variant:"default",className:"w-full",onClick:()=>e("CODE_INPUT"),children:"J\xe1 possuo um novo c\xf3digo"}),(0,t.jsx)(A.$,{variant:"outline",className:"w-full",onClick:()=>e("CHOOSE_FLOW"),children:"Comprar novo c\xf3digo"})]})]})};var se=a(750970),sl=a(854690),sa=a(911621);let st=()=>{let e=(0,n.useRouter)(),l=(0,t3.q)(e=>e.setStep),a=(0,t3.q)(e=>e.setIsOpen);return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-primary/10 p-2",children:(0,t.jsx)(se.default,{})}),(0,t.jsx)(el.aL,{children:"Como deseja participar?"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Escolha como voc\xea quer ativar seu acesso aos sorteios e benef\xedcios"})]}),(0,t.jsxs)(el.Uh,{className:"flex flex-col gap-3",children:[(0,t.jsxs)("button",{onClick:()=>l("CODE_INPUT"),className:"flex items-center gap-3 rounded-lg border border-primary/20 bg-primary/5 p-4 text-left transition-colors hover:bg-primary/10",children:[(0,t.jsx)("span",{className:"rounded-md bg-primary/10 p-2",children:(0,t.jsx)(sl.default,{className:"h-5 w-5 text-primary"})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"font-semibold",children:"J\xe1 tenho um c\xf3digo"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Comprei o Baita Card e quero digitar o c\xf3digo"})]}),(0,t.jsx)(tb.default,{className:"h-5 w-5 text-muted-foreground"})]}),(0,t.jsxs)("button",{onClick:()=>{a(!1),e.push("/eu?openSubscription=true")},className:"flex items-center gap-3 rounded-lg border border-primary/20 bg-primary/5 p-4 text-left transition-colors hover:bg-primary/10",children:[(0,t.jsx)("span",{className:"rounded-md bg-primary/10 p-2",children:(0,t.jsx)(sa.default,{className:"h-5 w-5 text-primary"})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"font-semibold",children:"Comprar um c\xf3digo"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Quero acessar o baita online"})]}),(0,t.jsx)(tb.default,{className:"h-5 w-5 text-muted-foreground"})]})]})]})};var ss=a(711647),sn=a(386948);let si=()=>{let e=(0,n.useRouter)(),l=(0,t3.q)(e=>e.validatedCode),a=(0,t3.q)(e=>e.pendingCode),s=(0,t3.q)(e=>e.setPendingCode),r=(0,t3.q)(e=>e.setStep),o=(0,t3.q)(e=>e.accessData),d=(0,t3.q)(e=>e.setAccessData),[c,u]=(0,i.useState)(!1),{user:m}=(0,w.Jd)(),{mutateAsync:x,isPending:h}=(0,lC.n)({mutationFn:async e=>(await l_.Ay.post("/accesscodes/activate",{code:e})).data,onSuccess:e=>{(0,q.setCookie)(void 0,"@urbis/user",JSON.stringify({...m,accessCode:e})),o||d({codeType:e.codeType,valid_until:e.expiresAt}),u(!0),s(null)},onError:()=>{r("CODE_INPUT"),s(null)}});(0,i.useEffect)(()=>{a&&!c&&x(a)},[a,c]);let f=(0,t3.q)(e=>e.setIsOpen),p=()=>{r("CODE_INPUT"),s(null),f(!1)};return h||!c?(0,t.jsx)(el.lW,{children:(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-primary/10 p-4",children:(0,t.jsx)(lA.default,{className:"animate-spin text-xl text-primary"})}),(0,t.jsx)(el.aL,{children:"Ativando seu acesso"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Aguarde enquanto conclu\xedmos a ativa\xe7\xe3o do seu acesso."})]})}):(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-primary/10 p-4",children:(0,t.jsx)(b.default,{className:"text-xl text-primary"})}),(0,t.jsx)(el.aL,{className:"flex items-center gap-2",children:"Acesso ativado com sucesso! \uD83C\uDF89"}),(0,t.jsxs)(el.i3,{className:"text-center",children:["O c\xf3digo ",(0,t.jsx)(ss.E,{variant:"outline",children:l})," libera acesso a:"]})]}),(0,t.jsxs)(el.Uh,{className:"space-y-4",children:[(0,t.jsx)(sn.Zp,{className:"px-4 py-3",children:(0,t.jsx)("ul",{className:"mt-2",children:(()=>
1{if(!o)return[];switch(o.codeType){case"onlyLottery":return["Participa\xe7\xe3o nos sorteios"];case"lotteryAndIncentives":return["Participa\xe7\xe3o nos sorteios","Benef\xedcios exclusivos"];default:return[]}})().map((e,l)=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(ap.default,{className:"text-primary"}),e]},l))})}),(0,t.jsx)("div",{className:"flex flex-col gap-2",children:(null==o?void 0:o.codeType)==="onlyLottery"?(0,t.jsx)(A.$,{onClick:()=>{p(),e.push("/sorteios")},children:"Acessar Sorteios"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.$,{onClick:()=>{e.push("/inicio"),p()},children:"Conferir benef\xedcios"}),(0,t.jsx)(A.$,{variant:"outline",onClick:()=>{var e;p(),null==(e=document.getElementById("sorteios"))||e.scrollIntoView({behavior:"smooth"})},children:"Acessar sorteios"})]})})]})]})};var sr=a(206132);let so=()=>{let{setStep:e,setPendingCode:l,setIsOpen:a}=(0,t3.q)();return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-yellow-500/10 p-2",children:(0,t.jsx)(sr.default,{className:"text-yellow-500"})}),(0,t.jsx)(el.aL,{children:"C\xf3digo n\xe3o validado"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Cada usu\xe1rio pode validar apenas um c\xf3digo por vez e voc\xea j\xe1 possui um validado. Entre na sua conta para acessar seus benef\xedcios."})]}),(0,t.jsx)(el.Uh,{children:(0,t.jsx)(A.$,{variant:"default",className:"w-full",onClick:()=>{e("CODE_INPUT"),l(null),a(!1),window.history.replaceState(null,"",window.location.pathname)},children:"Acessar minha conta"})})]})};var sd=a(724589),sc=a(308463),su=a(162050);let sm=/[A-Za-z0-9]/,sx=[sm,sm,sm,"-",sm,sm,sm,"-",sm,sm,sm],sh=f.Ik({code:f.Yj().min(1,"Digite o c\xf3digo da sua raspadinha")}),sf=()=>{let{user:e}=(0,w.Jd)(),[l,a]=(0,sc.ZA)("code",sc.tU.withDefault("")),s=(0,t3.q)(e=>e.setStep),n=(0,t3.q)(e=>e.setAccessData),i=(0,t3.q)(e=>e.setValidatedCode),r=(0,lI.mN)({resolver:(0,lN.u)(sh),defaultValues:{code:l}}),{mutateAsync:o,isPending:d}=(0,lC.n)({mutationFn:async e=>(await l_.Ay.post("/accesscodes/validate",e)).data,onError:e=>{var l,a;console.log(e),s(null==(a=e.response)||null==(l=a.data)?void 0:l.errorCode)},onSuccess:(e,l)=>{n(e),i(l.code),a(l.code),s("CODE_VALID")}}),c=async e=>{let{code:l}=e;await o({code:l})};return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-primary/10 p-2",children:(0,t.jsx)(sd.default,{})}),(0,t.jsx)(el.aL,{children:"Validar C\xf3digo"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Digite o c\xf3digo do giftcard para acessar benef\xedcios e sorteios"})]}),(0,t.jsx)(el.Uh,{children:(0,t.jsx)(lD.lV,{...r,children:(0,t.jsxs)("form",{onSubmit:r.handleSubmit(c),className:"flex flex-col gap-4",children:[(0,t.jsx)(lD.zB,{control:r.control,name:"code",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{children:[(0,t.jsx)(lD.lR,{required:!0,children:"C\xf3digo do giftcard"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(su.A,{options:{mask:sx},placeholder:"XXX-XXX-XXX",...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(A.$,{type:"submit",className:"w-full",disabled:d,isLoading:d,children:"Validar C\xf3digo"}),!e&&(0,t.jsx)("p",{className:"mt-4 text-center text-xs text-muted-foreground",children:"Ap\xf3s a valida\xe7\xe3o do c\xf3digo, crie ou entre na sua conta para ativar o seu acesso."})]})})})]})},sp={CODE_NOT_FOUND:{title:"C\xf3digo inv\xe1lido",description:"N\xe3o foi poss\xedvel encontrar o c\xf3digo digitado. Revise os caracteres e tente novamente."},CODE_ALREADY_USED:{title:"C\xf3digo j\xe1 foi utilizado",description:"O c\xf3digo que voc\xea digitou j\xe1 foi utilizado. Verifique se digitou corretamente e tente novamente."},CODE_EXPIRED:{title:"C\xf3digo expirado",description:"O c\xf3digo que voc\xea digitou expirou. Verifique se digitou corretamente e tente novamente."},CODE_UNAVAILABLE:{title:"C\xf3digo indispon\xedvel",description:"O c\xf3digo que voc\xea digitou est\xe1 indispon\xedvel. Verifique se digitou corretamente e tente novamente."},CODE_ASSOCIATED_IN_USE:{title:"C\xf3digo associado em uso",description:"O c\xf3digo que voc\xea digitou est\xe1 associado a um usu\xe1rio em uso. Verifique se digitou corretamente e tente novamente."}};var sg=a(278874);let sj=e=>{var l,a;let{code:s}=e,n=(0,t3.q)(e=>e.setStep);return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"bg-red-500/10 p-2 rounded-full",children:(0,t.jsx)(sg.default,{className:"text-red-500"})}),(0,t.jsx)(el.aL,{children:null!=(l=sp[s].title)?l:""}),(0,t.jsx)(el.i3,{className:"text-center",children:null!=(a=sp[s].description)?a:""})]}),(0,t.jsx)(el.Uh,{children:(0,t.jsx)(A.$,{variant:"default",className:"w-full",onClick:()=>n("CODE_INPUT"),children:"Tentar novamente"})})]})};var sb=a(993701);let sv=e=>{var l,a,s,n,r,o,d;let{onSubmit:c,defaultValues:u,submitLabel:m="Continuar",isLoading:x,backButton:h,lockFieldsByCep:f=!1}=e,[p,g]=(0,i.useState)(!1),[j,b]=(0,i.useState)({}),[v,y]=(0,i.useState)(null),[N,w]=(0,i.useState)(!1),k=(0,lI.mN)({resolver:(0,lN.u)(sb.oL),defaultValues:{zipCode:null!=(l=null==u?void 0:u.zipCode)?l:"",address:null!=(a=null==u?void 0:u.address)?a:"",number:null!=(s=null==u?void 0:u.number)?s:"",area:null!=(n=null==u?void 0:u.area)?n:"",uf:null!=(r=null==u?void 0:u.uf)?r:"",city:null!=(o=null==u?void 0:u.city)?o:"",complement:null!=(d=null==u?void 0:u.complement)?d:""}}),C=k.watch("uf"),S=k.watch("zipCode");(0,i.useEffect)(()=>{N&&(w(!1),k.clearErrors("zipCode"))},[S]);let{data:E}=(0,lk.I)({queryKey:["ufs"],queryFn:async()=>(await l_.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados?orderBy=nome")).data,initialData:[],refetchOnWindowFocus:!1}),z=(0,lk.I)({queryKey:["cities",C],queryFn:async()=>(await l_.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados/".concat(C,"/municipios"))).data,enabled:!!C,initialData:[],refetchOnWindowFocus:!1});(0,i.useEffect)(()=>{(null==v?void 0:v.value)&&k.setValue("city",v.value)},[z.data,v]),(0,i.useEffect)(()=>{let e=function(e,l){if(!e||!(null==l?void 0:l.length)||l.some(l=>l.nome===e))return;let a=l.find(l=>l.nome.toLowerCase()===e.toLowerCase());return null==a?void 0:a.nome}(k.getValues("city"),z.data);e&&k.setValue("city",e)},[z.data,k]);let I=async()=>{let e=null==S?void 0:S.replace(/\D/g,"");if(e&&!(e.length<8))try{let l=await lS.A.get("https://viacep.com.br/ws/".concat(e,"/json/"));if(l.data.erro){w(!0),k.setError("zipCode",{type:"manual",message:"CEP n\xe3o encontrado"});return}w(!1),k.clearErrors("zipCode");let a={address:!!l.data.logradouro,area:!!l.data.bairro,uf:!!l.data.uf,city:!!l.data.localidade};b(a),l.data.uf&&l.data.localidade&&g(!0),k.setValue("uf",l.data.uf),z.refetch().then(()=>{var e,a;y({label:l.data.localidade,value:l.data.localidade}),k.setValue("address",null!=(e=l.data.logradouro)?e:""),k.setValue("area",null!=(a=l.data.bairro)?a:"")})}catch(e){w(!0),k.setError("zipCode",{type:"manual",message:"Erro ao buscar CEP. Verifique e tente novamente."})}};return(0,t.jsx)(lD.lV,{...k,children:(0,t.jsxs)("form",{onSubmit:k.handleSubmit(e=>{if(N)return void k.setError("zipCode",{type:"manual",message:"CEP n\xe3o encontrado"});c(e)}),className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(lD.zB,{control:k.control,name:"zipCode",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"zipCode",children:[(0,t.jsx)(lD.lR,{required:!0,children:"CEP"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(su.A,{options:{mask:[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]},placeholder:"00000-000",...l,onBlur:async()=>await I()})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:k.control,name:"number",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"number",children:[(0,t.jsx)(lD.lR,{required:!0,children:"N\xfamero"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"123",...l})}),(0,t.jsx)(lD.C5,{})]})}})]}),(0,t.jsx)(lD.zB,{control:k.control,name:"address",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"address",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Endere\xe7o"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"Rua, Avenida...",disabled:f&&j.address,...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:k.control,name:"area",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"area",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Bairro"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"Bairro",disabled:f&&j.area,...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(lD.zB,{control:k.control,name:"uf",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"uf",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Estado"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)(lO.l6,{disabled:f?j.uf:p,onValueChange:l.onChange,value:l.value,defaultValue:l.value,children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(lO.bq,{children:(0,t.jsx)(lO.yv,{placeholder:"Selecione"})})}),(0,t.jsx)(lO.gC,{children:E.map(e=>(0,t.jsxs)(lO.eb,{value:e.sigla,children:[(0,t.jsx)("span",{className:"mr-2 text-sm font-semibold",children:e.sigla}),e.nome]},e.id))})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:k.control,name:"city",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"city",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Cidade"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)(lO.l6,{disabled:!C||(f?j.city:p),onValueChange:l.onChange,value:l.value,defaultValue:l.value,children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(lO.bq,{children:(0,t.jsx)(lO.yv,{placeholder:"Selecione"})})}),(0,t.jsx)(lO.gC,{children:z.data.map(e=>(0,t.jsx)(lO.eb,{value:e.nome,children:e.nome},e.id))})]})}),(0,t.jsx)(lD.C5,{})]})}})]}),(0,t.jsx)(lD.zB,{control:k.control,name:"complement",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"complement",children:[(0,t.jsx)(lD.lR,{children:"Complemento"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"Apto, bloco...",...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsxs)("div",{className:"flex gap-2",children:[h,(0,t.jsx)(A.$,{type:"submit",className:"w-full flex-1","data-action":"submit",disabled:x,children:m})]})]})})};var sy=a(137633);let sN=()=>{let e=(0,n.useRouter)(),l=(0,t3.q)(e=>e.setStep),a=(0,t3.q)(e=>e.setIsOpen),s=(0,t3.q)(e=>e.registerData),i=(0,t3.q)(e=>e.setRegisterData),r=(0,t3.q)(e=>e.validatedCode),o=(0,t3.q)(e=>e.accessData),d=(0,sy.T)({autoLogin:!0,activationCode:r,checkCpfUniqueness:!0,origin:"code-input-modal",onSuccess:()=>{a(!1);let l=(null==o?void 0:o.codeType)==="onlyLottery"?"/sorteios":"/inicio";e.push(l),h.oR.success("Conta criada e c\xf3digo ativado com sucesso!")},onError:e=>{console.log({error:e}),h.oR.error(e.message)}});return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)(el.aL,{children:"Endere\xe7o"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Informe seu endere\xe7o para completar o cadastro."})]}),(0,t.jsx)(el.Uh,{children:(0,t.jsx)(sv,{defaultValues:s,onSubmit:e=>{i(e);let l={...s,...e};d.mutate({cpfCnpj:l.cpfCnpj,name:l.name,email:l.email,password:l.password,telephone:l.telephone,birthDate:l.birthDate,gender:l.gender,address:l.address,city:l.city,number:l.number,area:l.area,uf:l.uf,zipCode:l.zipCode,complement:l.complement})},submitLabel:"Criar conta e ativar c\xf3digo",isLoading:d.isPending,backButton:(0,t.jsx)(A.$,{type:"button",variant:"outline",className:"flex-1",onClick:()=>l("REGISTER_PERSONAL"),children:"Voltar"})})})]})};var sw=a(50276),sk=a(673457),sC=a(533133),sS=a(670532),sE=a(957828);let sz=e=>{var l,a,s,n,r,o,d;let{onSubmit:c,defaultValues:u,submitLabel:m="Continuar",isLoading:x,backButton:h,showCpf:f=!1,checkExistingUser:p=!1,disabledFields:j=[]}=e,b=(0,g._2)(),[v,y]=(0,i.useState)(!1),[N,w]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),[S,E]=(0,i.useState)(!1),z=(0,lI.mN)({resolver:(0,lN.u)(f?sb.$i:sb.WN),defaultValues:{cpfCnpj:null!=(l=null==u?void 0:u.cpfCnpj)?l:"",name:null!=(a=null==u?void 0:u.name)?a:"",email:null!=(s=null==u?void 0:u.email)?s:"",telephone:null!=(n=null==u?void 0:u.telephone)?n:"",birthDate:null==u?void 0:u.birthDate,gender:null==u?void 0:u.gender,password:null!=(r=null==u?void 0:u.password)?r:"",confirmPassword:null!=(o=null==u?void 0:u.confirmPassword)?o:"",terms:null!=(d=null==u?void 0:u.terms)&&d}}),I=async e=>{if(p&&(null==b?void 0:b.id))try{C(!0);let l=[l_.Ay.get("/user/check-exists?whitelabelId=".concat(b.id,"&identifier=").concat(encodeURIComponent(e.email))).then(e=>e.data).catch(()=>null)];if(f&&e.cpfCnpj){let a=e.cpfCnpj.replace(/\D/g,"");l.push(l_.Ay.get("/user/check-exists?whitelabelId=".concat(b.id,"&identifier=").concat(a)).then(e=>e.data).catch(()=>null))}let[a,t]=await Promise.all(l),s=!1;if((null==a?void 0:a.exists)&&(z.setError("email",{type:"manual",message:"Este e-mail j\xe1 possui cadastro. Fa\xe7a login para continuar."}),s=!0),(null==t?void 0:t.exists)&&(z.setError("cpfCnpj",{type:"manual",message:"Este CPF j\xe1 possui cadastro. Fa\xe7a login para continuar."}),s=!0),s)return}finally{C(!1)}c(e)};return(0,t.jsx)(lD.lV,{...z,children:(0,t.jsxs)("form",{onSubmit:z.handleSubmit(I),className:"flex flex-col gap-4",children:[f&&(0,t.jsx)(lD.zB,{control:z.control,name:"cpfCnpj",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"cpfCnpj",children:[(0,t.jsx)(lD.lR,{required:!0,children:"CPF"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(su.A,{options:{mask:[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/]},placeholder:"123.456.789-00",disabled:j.includes("cpfCnpj"),...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"name",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"name",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Nome completo"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"Seu nome completo",...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"email",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"email",children:[(0,t.jsx)(lD.lR,{required:!0,children:"E-mail"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(l$.p,{placeholder:"[email protected]",type:"email",...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"telephone",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"telephone",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Telefone"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(su.A,{options:{mask:["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]},placeholder:"(00) 00000-0000",...l})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"birthDate",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"birthDate",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Data de nascimento"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)(lM.AM,{open:S,onOpenChange:E,children:[(0,t.jsx)(lM.Wv,{asChild:!0,children:(0,t.jsxs)(A.$,{variant:"outline",className:(0,ea.cn)("w-full justify-start text-left font-normal",!l.value&&"text-muted-foreground"),children:[(0,t.jsx)(aj.default,{className:"mr-2 h-4 w-4"}),l.value?(0,tY.GP)(l.value,"dd/MM/yyyy",{locale:ti.F}):(0,t.jsx)("span",{children:"DD/MM/AAAA"})]})}),(0,t.jsx)(lM.hl,{align:"start",className:"p-0",children:(0,t.jsx)(sw.V,{mode:"single",captionLayout:"dropdown-buttons",selected:l.value,onSelect:e=>{l.onChange(e),E(!1)},fromYear:1900,toYear:(0,sC.C)(new Date)})})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"gender",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"gender",children:[(0,t.jsx)(lD.lR,{required:!0,children:"G\xeanero"}),(0,t.jsxs)(lO.l6,{onValueChange:l.onChange,defaultValue:l.value,children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(lO.bq,{children:(0,t.jsx)(lO.yv,{placeholder:"Selecione seu g\xeanero"})})}),(0,t.jsx)(lO.gC,{children:sb.e5.map(e=>(0,t.jsx)(lO.eb,{value:e.value,children:e.label},e.value))})]}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"password",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"password",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Senha"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)("div",{className:"flex 
1gap-1",children:[(0,t.jsx)(l$.p,{type:v?"text":"password",placeholder:"M\xednimo 6 caracteres",...l}),(0,t.jsx)(A.$,{type:"button",variant:"outline",size:"icon",onClick:()=>y(e=>!e),children:v?(0,t.jsx)(sS.default,{size:16}):(0,t.jsx)(sE.default,{size:16})})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"confirmPassword",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"confirmPassword",children:[(0,t.jsx)(lD.lR,{required:!0,children:"Confirmar senha"}),(0,t.jsx)(lD.MJ,{children:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(l$.p,{type:N?"text":"password",placeholder:"Repita sua senha",...l}),(0,t.jsx)(A.$,{type:"button",variant:"outline",size:"icon",onClick:()=>w(e=>!e),children:N?(0,t.jsx)(sS.default,{size:16}):(0,t.jsx)(sE.default,{size:16})})]})}),(0,t.jsx)(lD.C5,{})]})}}),(0,t.jsx)(lD.zB,{control:z.control,name:"terms",render:e=>{let{field:l}=e;return(0,t.jsxs)(lD.eI,{"data-field":"terms",className:"flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4",children:[(0,t.jsx)(lD.MJ,{children:(0,t.jsx)(sk.S,{checked:l.value,onCheckedChange:l.onChange})}),(0,t.jsxs)("div",{className:"space-y-1 leading-none",children:[(0,t.jsxs)(lD.lR,{children:["Li e aceito os"," ",(0,t.jsx)("a",{href:null==b?void 0:b.terms,target:"_blank",rel:"noopener noreferrer",className:"text-helper-info underline",children:"termos de uso"})," ","e a"," ",(0,t.jsx)("a",{href:null==b?void 0:b.politics,target:"_blank",rel:"noopener noreferrer",className:"text-helper-info underline",children:"pol\xedtica de privacidade"})]}),(0,t.jsx)(lD.C5,{})]})]})}}),(0,t.jsxs)("div",{className:"flex gap-2",children:[h,(0,t.jsx)(A.$,{type:"submit",className:"w-full flex-1","data-action":"submit",disabled:x||k,isLoading:k,children:m})]})]})})},sA=()=>{let e=(0,t3.q)(e=>e.setStep),l=(0,t3.q)(e=>e.registerData),a=(0,t3.q)(e=>e.setRegisterData);return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)(el.aL,{children:"Informe seus dados"}),(0,t.jsx)(el.i3,{className:"text-center",children:"Preencha os campos abaixo para criar a sua conta."})]}),(0,t.jsx)(el.Uh,{children:(0,t.jsx)(sz,{defaultValues:l,onSubmit:l=>{a(l),e("REGISTER_ADDRESS")},submitLabel:"Pr\xf3ximo",showCpf:!0,checkExistingUser:!0,backButton:(0,t.jsx)(A.$,{type:"button",variant:"outline",className:"flex-1",onClick:()=>e("CODE_VALID"),children:"Voltar"})})})]})};var sI=a(142529);let s_=()=>{let e=(0,n.useRouter)(),l=(0,t3.q)(e=>e.validatedCode),a=(0,t3.q)(e=>e.accessData),{user:s}=(0,w.Jd)(),i=(0,t3.q)(e=>e.setStep),r=(0,t3.q)(e=>e.setPendingCode),o=(0,t3.q)(e=>e.setIsOpen);if(a)return(0,t.jsxs)(el.lW,{children:[(0,t.jsxs)(el.T9,{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-green-500/10 p-2",children:(0,t.jsx)(sI.default,{className:"text-green-500"})}),(0,t.jsx)(el.aL,{children:"C\xf3digo Validado"}),(0,t.jsx)(el.i3,{children:"Agora basta criar ou acessar a sua conta para ativar seu acesso."})]}),(0,t.jsxs)(el.Uh,{className:"space-y-4",children:[(0,t.jsxs)(sn.Zp,{className:"px-4 py-2",children:[(0,t.jsx)(sn.BT,{children:"Seu c\xf3digo inclui"}),(0,t.jsx)("ul",{children:(()=>{switch(a.codeType){case"onlyLottery":return["Participa\xe7\xe3o nos sorteios"];case"lotteryAndIncentives":return["Participa\xe7\xe3o nos sorteios","Beneficios exclusivos"];default:return[]}})().map((e,l)=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(ap.default,{className:"text-primary"}),e]},l))})]}),s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:"Clique no bot\xe3o abaixo para ativar o seu acesso."}),(0,t.jsx)(A.$,{onClick:()=>{r(l),i("CODE_ACTIVATED")},className:"w-full",children:"Ativar Acesso"})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(A.$,{className:"w-full",onClick:()=>i("REGISTER_PERSONAL"),children:"Criar uma conta"}),(0,t.jsx)(A.$,{className:"w-full",variant:"outline",onClick:()=>{o(!1),e.push("/login?validatedCode=".concat(l))},children:"Acessar minha conta"})]})]})]})},sL=()=>{let e=(0,t3.q)(e=>e.step),l=(0,t3.q)(e=>e.isOpen),a=(0,t3.q)(e=>e.setIsOpen);return(0,t.jsxs)(el.st,{open:l,onOpenChange:a,children:[["CODE_NOT_FOUND","CODE_EXPIRED","CODE_ALREADY_USED","CODE_ASSOCIATED_IN_USE","CODE_UNAVAILABLE"].includes(e)&&(0,t.jsx)(sj,{code:e}),"CHOOSE_FLOW"===e&&(0,t.jsx)(st,{}),"CODE_INPUT"===e&&(0,t.jsx)(sf,{}),"CODE_VALID"===e&&(0,t.jsx)(s_,{}),"CODE_ACTIVATED"===e&&(0,t.jsx)(si,{}),"CODE_ALREADY_ACTIVE"===e&&(0,t.jsx)(so,{}),"REGISTER_PERSONAL"===e&&(0,t.jsx)(sA,{}),"REGISTER_ADDRESS"===e&&(0,t.jsx)(sN,{}),"ACCESS_EXPIRED"===e&&(0,t.jsx)(t7,{})]})},sR="access-expired-modal-shown";var sP=a(678103);let sT=(0,es.vt)()(e=>({cookies:"",setCookies:l=>{e({cookies:null!=l?l:""}),l&&localStorage.setItem("cookies",l)},loadCookies:()=>{let l=localStorage.getItem("cookies");l&&e({cookies:l})}})),sD="grupo-sinos-subscriber-dismissed";function sO(){let e=(0,g._2)(),l=(0,n.useRouter)(),[a,s]=(0,i.useState)(!0);return"true"===(0,q.parseCookies)()[sD]?null:(0,t.jsx)(el.st,{open:a,onOpenChange:s,children:(0,t.jsxs)(el.lW,{className:"sm:max-w-md border-none",children:[(0,t.jsxs)(el.T9,{children:[(0,t.jsxs)(el.aL,{className:"text-xl font-bold",children:["Fa\xe7a parte do ",null==e?void 0:e.name]}),(0,t.jsx)(el.i3,{className:"text-base text-muted-foreground mt-2",children:"Aproveite todas as vantagens exclusivas que s\xf3 um assinante tem."})]}),(0,t.jsxs)(el.Rp,{className:"flex-col gap-2 sm:flex-row",children:[(0,t.jsx)(A.$,{className:"w-full sm:w-auto",asChild:!0,children:(0,t.jsx)("a",{href:"https://banca.gruposinos.com.br/?utm_source=siteABC&utm_medium=link&utm_campaign=Assine",target:"_blank",rel:"noreferrer",children:"N\xe3o sou assinante"})}),(0,t.jsx)(A.$,{variant:"outline",className:"w-full sm:w-auto",onClick:()=>{(0,q.setCookie)(null,sD,"true",{path:"/",maxAge:31536e3,sameSite:"lax"}),s(!1),l.push("/login")},children:"J\xe1 sou assinante"})]})]})})}let sU=e=>{let{accept:l,refuse:a}=e,s=(0,j.U)("(max-width: 639px)"),n=(0,j.U)("(display-mode: standalone)");return s||n?(0,t.jsx)("div",{className:"absolute bottom-0 z-[9999999999999999] h-[300px] w-full backdrop-blur-sm",children:(0,t.jsxs)(sn.Zp,{className:"absolute bottom-0",children:[(0,t.jsxs)(sn.aR,{children:[(0,t.jsx)(sn.ZB,{className:"text-lg",children:"Cookies"}),(0,t.jsx)(sn.BT,{children:"Usamos cookies e tecnologias semelhantes a guardar dados pessoais, ajudar a personalizar conte\xfados, adaptar e avaliar an\xfancios e oferecer uma experi\xeancia melhor. Ao clicar em Aceitar voc\xea concorda com isso."})]}),(0,t.jsxs)(sn.wL,{className:"flex-col gap-2",children:[(0,t.jsx)(A.$,{className:"w-full",onClick:()=>l(),children:"Aceitar"}),(0,t.jsx)(A.$,{className:"w-full",variant:"outline",onClick:()=>a(),children:"Recusar"})]})]})}):(0,t.jsx)("div",{className:"absolute bottom-0 z-[9999999999999999] h-[230px] w-full",children:(0,t.jsxs)(sn.Zp,{className:"absolute bottom-0 flex w-full items-center justify-between rounded-none",children:[(0,t.jsxs)(sn.aR,{children:[(0,t.jsx)(sn.ZB,{className:"text-lg",children:"Cookies"}),(0,t.jsx)(sn.BT,{children:"Usamos cookies e tecnologias semelhantes a guardar dados pessoais, ajudar a personalizar conte\xfados, adaptar e avaliar an\xfancios e oferecer uma experi\xeancia melhor. Ao clicar em Aceitar voc\xea concorda com isso."})]}),(0,t.jsxs)(sn.Wu,{className:"mt-4 flex w-[500px] gap-2",children:[(0,t.jsx)(A.$,{className:"w-full",onClick:()=>l(),children:"Aceitar"}),(0,t.jsx)(A.$,{className:"w-full",variant:"outline",onClick:()=>a(),children:"Recusar"})]})]})})},sq=[r.u$.socioVozao,r.u$.redeSaude],sF=[r.u$.minhaEntrada],sB=()=>{let e=(0,g._2)(),{cookies:l,setCookies:a}=sT(),s=sq.includes(null==e?void 0:e.id);return l||s?sF.includes(null==e?void 0:e.id)?null:(0,t.jsx)(Q,{}):(0,t.jsx)(sU,{accept:()=>{a("true")},refuse:()=>{a("false")}})};function s$(e){let{children:l,header:a=!0,headerOverride:o,footerOverride:d,unbounded:c=!1}=e,{status:u,club:m}=(0,g.Ey)(),x=(0,le.z)(),h=(0,w.WL)(),f=(0,n.usePathname)(),p=(0,j.U)("(max-width: 639px)"),b=ll("baita-access-code-enabled"),v=sT(e=>e.loadCookies);return((()=>{let{user:e}=(0,w.Jd)(),{hasAccess:l}=(0,E.H)(),a=(0,g._2)(),t=(0,t3.q)(e=>e.setIsOpen),s=(0,e7.Tp)("baita-access-code-enabled");(0,i.useEffect)(()=>
1{if((0,r.At)(null==a?void 0:a.id)&&e){if(l)return void sessionStorage.removeItem(sR);s&&"true"!==sessionStorage.getItem(sR)&&(sessionStorage.setItem(sR,"true"),t(!0,"ACCESS_EXPIRED"))}},[e,l,a,t,s])})(),(0,i.useEffect)(()=>{v()},[v]),"ready"!==u)?"unavailable"===u?(0,t.jsx)(g.Nk,{}):(0,t.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background",children:(0,t.jsx)(s.default,{alt:"loading",width:20,height:20,className:"w-5 animate-spin object-contain",src:"/icons/loading.svg"})}):(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex-horizontal flex ".concat(c?"":"h-screen max-h-screen"),children:(0,t.jsxs)("div",{className:"flex-1 overscroll-none xs:pb-72 ".concat(c?"":"overflow-y-auto"),children:[a?null!=o?o:(0,t.jsx)(t9,{}):null,l,b&&(0,t.jsx)(sL,{}),x&&m.id===r.u$.grupoSinos&&!h&&"/"===f&&(0,t.jsx)(sO,{}),(0,t.jsx)(sB,{}),a?null!=d?d:(0,t.jsx)(ln,{}):null]})}),!p&&m.btnWhatsapp?(0,t.jsx)("a",{href:(0,sP.x)(m),target:"_blank",rel:"noreferrer",children:(0,t.jsx)("button",{type:"button",className:"fixed bottom-10 right-10 items-center rounded",children:(0,t.jsx)(s.default,{src:"/img/wpp.png",alt:"whatsapp",width:64,height:64})})}):null]})}},989363:(e,l,a)=>{a.d(l,{J:()=>r});var t=a(799776),s=a(653455),n=a(313797),i=a(228748);let r=e=>{let{uf:l,country:a}=e,r=(0,i._2)(),o=(0,t.jE)();return(0,s.I)({queryKey:["cities",l],queryFn:async()=>{if("US"===a){let e=o.getQueryData(["ufs"]).find(e=>e.sigla===l);return(await n.Ay.get("/integration/geonames/get-cities-by-state?name=".concat(e.nome,"&adminCode1=").concat(e.sigla))).data.map(e=>({id:e.geonameId,nome:e.name}))}return(await n.Ay.get("https://servicodados.ibge.gov.br/api/v1/localidades/estados/".concat(l,"/municipios"))).data.map(e=>({id:e.id,label:e.nome,value:e.nome}))},enabled:!!(null==r?void 0:r.id),initialData:[],refetchOnWindowFocus:!1})}}}]);

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.