1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4820],{59207:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/help/faq",function(){return t(49042)}])},49042:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>_,default:()=>A});var s=t(74848),r=t(87742),n=t(78159),l=t.n(n),c=t(3438),o=t.n(c),i=t(10090),d=t(27704),f=t(17955),x=t(14953),u=t.n(x),p=t(96540),h=t(30133),g=t(33013),m=t(7764),b=t.n(m),y=t(86715);let w=r.g$.FAQ,F=u()(()=>t.e(5192).then(t.bind(t,55192)).then(e=>e.MagnifyingGlass),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),N=u()(()=>t.e(5192).then(t.bind(t,55192)).then(e=>e.WhatsappLogo),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),v=u()(()=>t.e(5192).then(t.bind(t,55192)).then(e=>e.PlusCircle),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),j=u()(()=>t.e(5192).then(t.bind(t,55192)).then(e=>e.MinusCircle),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),q=u()(()=>t.e(5192).then(t.bind(t,55192)).then(e=>e.X),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),k=e=>{let{buttonLink:a}=e;a&&window.open(a,"_blank")};var _=!0;let A=()=>{let{t:e}=(0,f.Bd)(w),a=(0,y.useRouter)(),t=null==a?void 0:a.query,r=null==t?void 0:t.draft,[n,c]=(0,p.useState)(null),[x,u]=(0,p.useState)([]),[m,_]=(0,p.useState)(!0),[A,E]=(0,p.useState)(null),[S,C]=(0,p.useState)([]),[I,P]=(0,p.useState)([]),[T,Q]=(0,p.useState)(""),[B,W]=(0,p.useState)(1),R=e=>{c(n===e?null:e)},D=e=>{P(I.includes(e)?[]:[e])};return(0,p.useEffect)(()=>{(async()=>{try{_(!0),E(null);let e=(await h.W.getAllFaq({type:"desktop",pageIndex:B})).items||[];u(a=>B>1?[...a,...e]:e)}catch(e){console.error("Erro ao carregar FAQs:",e),E("N\xe3o foi poss\xedvel carregar as perguntas frequentes. Por favor, tente novamente.")}finally{_(!1)}})()},[B]),(0,p.useEffect)(()=>{let e=async()=>{W(1);
1try{_(!0),E(null);let e=await h.W.getFaqWithFilters({type:"desktop",pageIndex:1,searchParams:{question:T,tags:I}});u(e.items||[])}catch(e){console.error("Erro ao filtrar FAQs:",e),E("N\xe3o foi poss\xedvel filtrar as perguntas. Por favor, tente novamente.")}finally{_(!1)}},a=setTimeout(()=>{e()},500);return()=>clearTimeout(a)},[I,T]),(0,p.useEffect)(()=>{(async()=>{try{_(!0),E(null);let e=await h.W.getFaqTags();C(e)}catch(e){console.error("Erro ao carregar FAQs:",e),E("N\xe3o foi poss\xedvel carregar as perguntas frequentes. Por favor, tente novamente.")}finally{_(!1)}})()},[]),((e,a)=>{(0,p.useEffect)(()=>{(async()=>{if(e){let e=await (0,g.getSession)(),t=null==e?void 0:e.accessToken;b().setSession(t),f.Ru&&f.Ru.reloadResources(f.Ru.language,a).then(()=>{null===f.Ru||void 0===f.Ru||f.Ru.changeLanguage(f.Ru.language)})}})()},[e,a])})(r,w),(0,s.jsxs)("div",{className:"max-w-[1920px] mx-auto",children:[(0,s.jsx)(i.default,{namespace:w}),(0,s.jsx)("section",{className:" w-full relative flex lg:min-h-[702px] lg:h-auto sm:h-auto ",children:(0,s.jsxs)("div",{className:"flex relative w-full h-full lg:flex-row sm:flex-col",children:[(0,s.jsxs)("div",{className:"lg:w-[53%] sm:w-[100%] bg-[#FEE6D2] lg:px-12 sm:px-6 lg:py-16 sm:py-8 lg:gap-6 lg:items-start sm:items-center",children:[(0,s.jsxs)("div",{className:"sm:items-center sm:text-center lg:items-start lg:text-start",children:[(0,s.jsx)("p",{className:"".concat(l().className," text-[#141414] lg:text-[56px] sm:text-[32px] font-bold"),children:e("faq.title")}),(0,s.jsx)("p",{className:"".concat(o().className," text-[#000000] lg:text-[20px] sm:text-[16px] font-normal"),children:e("faq.subtitle")})]}),(0,s.jsxs)("div",{className:"relative w-full mt-8",children:[(0,s.jsx)("input",{type:"text",placeholder:e("faq.searchbar.placeholder"),className:"w-full border-solid border p-3 rounded-[50px] border-[#E6BA98] flex-1 bg-transparent outline-none text-[#141414] placeholder-[#E6BA98] px-4 pr-12",value:T,onChange:e=>{Q(e.target.value)}}),(0,s.jsx)("button",{onClick:()=>Q(""),children:T.length?(0,s.jsx)(q,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-8 h-8 text-[#141414]"}):(0,s.jsx)(F,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-8 h-8 text-[#141414]"})})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3 mt-8 sm:hidden lg:flex",children:S.map(e=>(0,s.jsx)("button",{className:"".concat(o().className," h-[40px] flex-1\n min-w-[163px]\n font-extrabold text-[14px] \n border-2 border-solid border-[#0065CB] rounded-full\n ").concat(I.includes(e)?"bg-[#0065CB] text-[#FFF]":"bg-transparent text-[#0065CB]","\n hover:text-[#FFF] hover:bg-[#0065CB]\n transition-colors duration-200"),onClick:()=>D(e),children:e},e))}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3 mt-8 sm:flex lg:hidden",children:S.map(e=>(0,s.jsx)("button",{className:"".concat(o().className," h-[40px] flex-grow\n px-4\n font-extrabold text-[14px] \n border-2 border-solid border-[#0065CB] rounded-full\n ").concat(I.includes(e)?"bg-[#0065CB] text-[#FFF]":"bg-transparent text-[#0065CB]","\n hover:text-[#FFF] hover:bg-[#0065CB]\n transition-colors duration-200"),onClick:()=>D(e),children:e},e))}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2 lg:mt-40 sm:mt-8 sm:justify-center lg:justify-start",children:(0,s.jsxs)("button",{onClick:()=>k({buttonLink:e("faq.help.button.link")}),className:"".concat(o().className," gap-3 flex flex-row justify-center items-center h-[48px] px-6 min-w-[150px] font-extrabold text-[14px] bg-[#048459] hover:bg-[#035439] text-[#FFFFFF] rounded-full"),children:[e("faq.help.button.text")," ",(0,s.jsx)(N,{className:"w-6 h-6"})]})})]}),(0,s.jsxs)("div",{className:"lg:w-[46%] sm:w-[100%] lg:px-12 sm:px-6 lg:py-16 sm:py-8 lg:gap-6 flex flex-col gap-[30px] h-auto",children:[m?(0,s.jsx)("div",{className:"flex justify-center items-center h-40",children:(0,s.jsx)("p",{className:"".concat(o().className," text-[#141414]"),children:"Carregando perguntas..."})}):A?(0,s.jsx)("div",{className:"flex justify-center items-center h-40",children:(0,s.jsx)("p",{className:"".concat(o().className," text-[#FF0000]"),children:A})}):0===x.length?(0,s.jsx)("div",{className:"flex justify-center items-center h-40",children:(0,s.jsx)("p",{className:"".concat(o().className," text-[#141414]"),children:"Nenhuma pergunta encontrada para os filtros selecionados."})}):x.map((e,a)=>(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsxs)("div",{className:"border-b-2 border-solid border-[#A9C15A]",children:[(0,s.jsxs)("div",{className:"flex flex-row justify-between py-4",children:[(0,s.jsx)("p",{className:"".concat(o().className," text-[#141414]"),children:e.question}),(0,s.jsx)("button",{onClick:()=>R(a),children:n===a?(0,s.jsx)(j,{className:"text-[#141414] w-6 h-6"}):(0,s.jsx)(v,{className:"text-[#141414] w-6 h-6"})})]}),n===a&&(0,s.jsx)("div",{className:"bg-[#FDEAD7] flex flex-col gap-4 pt-4",children:(0,s.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:(0,s.jsx)("div",{className:"".concat(o().className," text-[#141414] bg-[#FDEAD7]"),dangerouslySetInnerHTML:{__html:e.answer}}
1)})})]})},a)),(0,s.jsx)("div",{className:"flex flex-wrap lg:justify-end md:justify-center sm:justify-center mt-8",children:(0,s.jsx)("button",{onClick:()=>W(3!==B?B+1:3),className:"".concat(o().className," h-[48px] px-6 min-w-[150px] border-2 border-[#048459]\n font-extrabold text-[14px] bg-transparent text-[#048459] rounded-full\n "),children:e("faq.load.button.text")})})]})]})}),(0,s.jsx)(d.default,{namespace:w})]})}},30133:(e,a,t)=>{"use strict";t.d(a,{W:()=>n});var s=t(94852),r=t(94335);let n={getFaq:async e=>{try{return(await s.F.get("/v1/faqs",{params:{type:e.type,...e.searchParams},headers:{"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24","x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-page-index":e.pageIndex.toString()}})).data}catch(e){throw console.error("Error fetching FAQ data:",e),e}},createFaqDraft:async e=>{try{return(await s.F.post("/v1/faqs/draft",{answer:e.answer||"",tag:(null==e?void 0:e.filterTag)||"",language:e.language||"pt",question:e.question||""},{headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error creating FAQ draft:",e),e}},getFaqAlternative:async e=>{try{return(await s.F.post("/v1/faqs?type=".concat(e.type),e.searchParams,{headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-page-index":e.pageIndex.toString(),"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching FAQ data:",e),e}},getFaqWithFilters:async e=>{try{let{question:a,tags:t}=e.searchParams;return(await r.A.request({method:"GET",url:"".concat("https://zoologico.com.br","/v1/faqs"),params:{type:e.type,question:a,tag:t[0]},headers:{"Content-Type":"application/json","x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-page-index":e.pageIndex.toString(),"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching filtered FAQ data:",e),e}},getAllFaq:async e=>{try{return(await s.F.get("/v1/faqs",{params:{type:e.type},headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-page-index":e.pageIndex.toString(),"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching all FAQ data:",e),e}},updateFaqDraft:async e=>{try{let a={id:e.id,language:e.language,faqId:e.faq_id,answer:e.answer,tag:e.filterTag,question:e.question,externalLink:e.externalLink};return(await s.F.put("/v1/faqs/draft",a,{headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error updating FAQ draft:",e),e}},getAllFaqDrafts:async e=>{try{return(await s.F.get("/v1/faqs/draft",{params:{type:e.type},headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-page-index":e.pageIndex.toString(),"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching all FAQ data:",e),e}},deleteFaqDraft:async e=>{let{faq:a}=e;try{return(await s.F.delete("/v1/faqs/draft",{data:{id:a.id,tag:"ZOO SP",language:"pt",faqId:a.faq_id,answer:a.answer,question:a.question,externalLink:a.externalLink},headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching all FAQ data:",e),e}},getFaqTags:async()=>{try{return(await s.F.get("".concat("https://zoologico.com.br","/v1/faqs/tags"),{headers:{"x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24"}})).data}catch(e){throw console.error("Error fetching all FAQ data:",e),e}}}},94852:(e,a,t)=>{"use strict";t.d(a,{F:()=>l});var s=t(94335),r=t(33013);class n{setupInterceptors(){this.api.interceptors.request.use(async e=>{let a=await (0,r.getSession)(),t=null==a?void 0:a.accessToken;return t&&(e.headers.Authorization="Bearer ".concat(t)),e},e=>Promise.reject(e)),this.api.interceptors.response.use(e=>e,e=>{var a;return null===(a=e.response)||void 0===a||a.status,Promise.reject(e)})}static getInstance(){return n.instance||(n.instance=new n),n.instance}getAxiosInstance(){return this.api}constructor(){this.api=s.A.create({baseURL:"https://zoologico.com.br",headers:{"x-source-id":"6a52a4d4-f55d-42f5-af3d-358242209c24","x-api-key":"37909ecf-ba0e-465f-b648-0616964154b0","Content-Type":"application/json"}}),this.setupInterceptors()}}let l=n.getInstance().getAxiosInstance()},87827:e=>{e.exports={style:{fontFamily:"'Work Sans', 'Work Sans Fallback'",fontStyle:"normal"},className:"__className_a2025e"}},78159:e=>{e.exports={style:{fontFamily:"'Oswald', 'Oswald Fallback'",fontStyle:"normal"},className:"__className_ff0238"}},3438:e=>{e.exports={style:{fontFamily:"'Work Sans', 'Work Sans Fallback'",fontStyle:"normal"},className:"__className_fb5a0f"}}},e=>{var a=a=>e(e.s=a);e.O(0,[1106,2330,4335,1213,90,7704,636,6593,8792],()=>a(59207)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.