import{f as C,q as L,g as j,E as z,r as B,o as i,c as d,a as t,F as h,v as x,b as p,j as u,k as D,w as _,l as g,t as E,x as M,y as U}from"./entry.DV6a5_Hb.js";import{_ as q}from"./Icon.DriN-LnI.js";import{_ as I}from"./Button.CpdQ1HRJ.js";import{_ as P}from"./Accordion.ClnxDlwE.js";import{_ as T}from"./Skeleton.CkVv1L6V.js";import{u as w}from"./fetch.Bb5GbrhF.js";const F=M(()=>U(()=>import("./nuxt-img.Db20Erng.js").then(l=>l.n),__vite__mapDeps([0,1,2,3]),import.meta.url).then(l=>l.default||l)),N={class:"flex md:flex-row flex-col w-full max-h-[99dvh] overflow-y-scroll AccordionContainer"},S={class:"z-10 w-[160px] sm:w-[240px] md:w-[280px] lg:w-[280px] xl:w-[380px] persona-ie"},V=["media","srcset","width","height"],H={class:"flex flex-col md:ml-8 p-6 w-full md:max-h-[52dvh] md:overflow-y-scroll AccordionContainer"},R=t("header",{class:"px-1 pt-5"},[t("h4",{class:"text-[var(--text-light-primary)] text-bold"}," Processo Seletivo Medicina "),t("h5",{class:"text-[var(--text-light-primary)]"}," Acompanhe aqui os editais, inscrições, resultados e outros documentos da sua forma de entrada de escolha! ")],-1),G={class:"sm:pr-4"},O={class:"py-3 max-w-[90%] font-semibold text-[var(--text-light-primary)] text-left md:text-base"},Q={class:"flex items-center py-3"},X=t("svg",{class:"mr-2 w-6 min-w-[24px] text-[var(--light-tertiary)]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",color:"#000000",fill:"none"},[t("path",{d:"M20 12L4 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),t("path",{d:"M15 17C15 17 20 13.3176 20 12C20 10.6824 15 7 15 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Y=["innerHTML"],at=C({__name:"Accordion",setup(l){const e=L.get(j().public.ie);let m=z({accordion:[]});const f=B(!1);(async()=>{if(e.slug!=="una"&&e.slug!=="unifacs"){const o=e.slug==="uam"?"?_fields[]=data":"?_fields[]=acf.accordion_content.tabs",a=await w(`${e.url}/wp-json/wp/v2/pages/${e.idCandidateParams}${o}`,"$5tqQYjjzwb");f.value=a.pending.value,e.slug==="uam"?m.accordion=a.data.value.data.accordion:m.accordion=a.data.value.acf.accordion_content.tabs.map(n=>({title:n.title,content:n.content}))}else{const o=await w(`${e.url}/wp-json/wp/v2/pages/?_fields=data,title&slug=candidato-medicina`,"$vtXmdyk64G");if(Array.isArray(o.data.value)&&o.data.value.length>0){const a=o.data.value[0].data.accordion;m.accordion=a.map(n=>({title:n.title,content:n.content}))}else console.error("Unexpected response format",o.data.value)}})();function v(o){const a=[];return o.content.split(`\r \r `).forEach(c=>{c&&c!==`\r `&&a.push(c)}),a}const y=[{src:`assets/img/modalAccordion/${e.slug}/persona-modal-large.webp`,media:"(min-width: 768px)",width:"234px",height:"514px"},{src:`assets/img/modalAccordion/${e.slug}/persona-modal-small.webp`,media:"(max-width: 768px)",width:"735px",height:"160px"}];return(o,a)=>{const n=F,c=q,b=I,k=P,A=T;return i(),d("div",N,[t("div",null,[t("picture",S,[(i(),d(h,null,x(y,(s,r)=>t("source",{key:r,media:s.media,srcset:s.src,width:s.width,height:s.height},null,8,V)),64)),p(n,{class:"rounded-t-lg md:rounded-t-none md:rounded-r-lg w-full md:max-w-[650px] h-40 md:h-full md:min-h-[60dvh] md:max-h-[90dvh] overflow-clip object-cover scale-x-[-1]",src:`assets/img/modalAccordion/${u(e).slug}/persona-modal-large.webp`,provider:"local",alt:`Imagem mostrando uma pessoa em relação ao Links de modalidades abertas da ${u(e).slug}`},null,8,["src","alt"])])]),t("div",H,[R,t("div",G,[u(f)?(i(),d(h,{key:1},x(3,s=>p(A,{class:"mt-5 w-full h-16"})),64)):(i(),D(k,{key:0,items:u(m).accordion,ui:{wrapper:"flex flex-col w-full accordion-faq"}},{default:_(({item:s,open:r})=>[p(b,{color:"gray",variant:"ghost",ui:{rounded:"!rounded-lg",padding:{sm:"p-2"}},class:g(`${[r?"!rounded-b-none":"rounded-b-lg"]} mt-2 md:mt-4 px-4 md:px-7 bg-[var(--bg-light-tertiary)] hover:bg-[var(--bg-light-tertiary)]`)},{trailing:_(()=>[p(c,{name:"",class:g(`${[r?"i-heroicons-minus-solid":"i-heroicons-plus-solid"]} w-6 h-6 ms-auto `)},null,8,["class"])]),default:_(()=>[t("h2",O,E(s.title),1)]),_:2},1032,["class"])]),item:_(({item:s,close:r})=>[t("ul",{class:g(`${[r?"mt-[-6px]":"mt-0"]} text-accordion bg-[var(--bg-light-tertiary)] p-4 md:px-7 md:text-base text-[var(--text-light-secondary)] mb-[-10px] rounded-b-lg flex flex-start flex-col AccordionLinks`)},[(i(!0),d(h,null,x(v(s),$=>(i(),d("li",Q,[X,t("span",{innerHTML:$},null,8,Y)]))),256))],2)]),_:1},8,["items"]))])])])}}});export{at as _}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./nuxt-img.Db20Erng.js","./entry.DV6a5_Hb.js","./entry.P_1uoI7d.css","./image-options.B4CkkJRm.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }