PageSourceSearch

https://www.gov.pt/_next/static/chunks/5515-95cc89a6ab9c9446.js

js www.gov.pt collected 2026-10-02 06:27:58 UTC 190,872 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5515],{4337:(e,l,a)=>{"use strict";a.d(l,{C:()=>n,O:()=>s});var t=a(93190);function s(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.j.Web,a=encodeURIComponent(e);return"/servicos?search={searchValue}&channelType={channelType}".replace("{searchValue}",a).replace("{channelType}",l)}function n(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.j.Web,a=encodeURIComponent(e);return"/servicos?channelType={channelType}&themeFilter={themeFilter}".replace("{channelType}",l).replace("{themeFilter}",a)}},5546:e=>{e.exports={informationAndHelpWrapper:"informationAndHelpResultTitle_informationAndHelpWrapper__0uS_t",informationAndHelpResultTitle:"informationAndHelpResultTitle_informationAndHelpResultTitle__KCE4W"}},6342:e=>{e.exports={cardDescription:"contactsGrid_cardDescription__zja7Y",sectionTitle:"contactsGrid_sectionTitle__RcgOt",cardItem:"contactsGrid_cardItem__n3fWI"}},6418:e=>{e.exports={siteMapWrap:"serviceTitle_siteMapWrap__0D8jh",classDescription:"serviceTitle_classDescription__K2cO8",relativeWrapper:"serviceTitle_relativeWrapper__OsxNf"}},6638:e=>{e.exports={customCardNews:"highlights_customCardNews__f7chd",CardArticleTitle:"highlights_CardArticleTitle__gHbq8",newsDescription:"highlights_newsDescription__x0b31",newsSubtitle:"highlights_newsSubtitle__J3Ix5",newsTitle:"highlights_newsTitle__Q7_nt"}},7621:e=>{e.exports={businessLocation_media_query:"styles_businessLocation_media_query__lsws_",businessLocationTitle:"styles_businessLocationTitle__jsOxe",businessLocationDescription:"styles_businessLocationDescription__E7xOv"}},8667:(e,l,a)=>{"use strict";a.d(l,{A:()=>o});var t=a(37876),s=a(18444),n=a(39007),i=a(34846),r=a(49755);let o=e=>{var l,a,o;let{screenType:c,submitStates:d}=e,{t:u}=(0,i.Bd)(),m={[r.ed.success]:s.M.Success,[r.ed.error]:s.M.Error,[r.ed.unauthorized]:s.M.Unauthorized},x=e=>null==e?void 0:e.find(e=>m[e.status]===c),h=u("feedbackInPersonService.messages",{returnObjects:!0}),p=null!=(o=x(d))?o:x(h);if(!p)return null;let g=null==p||null==(l=p.descriptions)?void 0:l.map(e=>e).join("\n\n");return(0,t.jsx)(n.A,{type:m[p.status],icon:p.agoraIcon,title:p.title,subTitle:g,buttonLabel:null==(a=p.button)?void 0:a.placeholder,button:p.button,onClick:()=>{var e;return window.open((null==(e=p.button)?void 0:e.destinationUrl)||"","_self")}})}},9174:e=>{e.exports={customTitle:"localCareGeneralInformation_customTitle__Tymck"}},9956:e=>{e.exports={localCareTitleWrapper:"localCareTitle_localCareTitleWrapper__Hn0j_"}},9992:e=>{e.exports={serviceWrapper:"serviceResultTitle_serviceWrapper__R8Cm1",serviceResultTitle:"serviceResultTitle_serviceResultTitle__V_w0Q"}},10135:e=>{e.exports={guideTitleWrapper:"guideTitle_guideTitleWrapper__pmyFB"}},10934:e=>{e.exports={newsBody:"newsBody_newsBody__C6fAr",newsImage:"newsBody_newsImage__i6QOs",customBody:"newsBody_customBody__9IfJj"}},11489:e=>{e.exports={sectionTitle:"searchCardArticle_sectionTitle__L3YcH"}},15142:e=>{e.exports={levelThreeAnchor:"contactsTopic_levelThreeAnchor__QFZ9w",cardItem:"contactsTopic_cardItem__MK8kk"}},16738:e=>{e.exports={imageContainer:"styles_imageContainer__I19Bh"}},18444:(e,l,a)=>{"use strict";a.d(l,{M:()=>t});var t=function(e){return e.Form="form",e.Pending="pending",e.Success="success",e.Error="error",e.Warning="warning",e.Unavailable="unavailable",e.Unauthorized="unauthorized",e}({})},19452:e=>{e.exports={default:"wrapper_default__cqKbm",halfDefault:"wrapper_halfDefault__NVwsj",headingWrapper:"wrapper_headingWrapper__9Z4SE",fullNeutral:"wrapper_fullNeutral__7yGvi",fullPrimaryHeading:"wrapper_fullPrimaryHeading__IA7HH",fullInformative:"wrapper_fullInformative__tke41",heading:"wrapper_heading__i5yBY",fullScribble:"wrapper_fullScribble__YWa0f"}},22102:e=>{e.exports={siteMapWrap:"accessibilityTitle_siteMapWrap__7YEij",classDescription:"accessibilityTitle_classDescription__I9bii",relativeWrapper:"accessibilityTitle_relativeWrapper__o4Q4N"}},28998:e=>{e.exports={modalContainer:"schedule_modalContainer__Vg0Nz",modalBody:"schedule_modalBody__0zjHV",videoCallForm:"schedule_videoCallForm__jISBb",formLine:"schedule_formLine__wjQa6",lgpVideoCallForm:"schedule_lgpVideoCallForm__nGn8i",lgpFormLine:"schedule_lgpFormLine__maBBq",formLineInputPhone:"schedule_formLineInputPhone__zORKh","agora-input-text-wrapper":"schedule_agora-input-text-wrapper__kuh5E","agora-input-text":"schedule_agora-input-text__BzJQp",lgpDatePicker:"schedule_lgpDatePicker___QC0W",label:"schedule_label__BIQrR",datePicker:"schedule_datePicker__DcTaK","agora-checkbox":"schedule_agora-checkbox__8IAag","agora-btn-with-icon":"schedule_agora-btn-with-icon__9i4bB",leading:"schedule_leading__gs5Pq",formActions:"schedule_formActions__q6Yz_",pendingScreen:"schedule_pendingScreen__R06xV",message:"schedule_message__b8ofu",title:"schedule_title__xjTHw",iconFeedback:"schedule_iconFeedback__zlwQF",subtitle:"schedule_subtitle__slLC_"}},35666:e=>{e.exports={titleWrapper:"localCareResultTitle_titleWrapper__5dv9q",resultTitle:"localCareResultTitle_resultTitle__2rwjp"}},36735:(e,l,a)=>{"use strict";a.d(l,{b:()=>n,r:()=>i});var t=a(40184);let s="evaluation",n=(e,l)=>{if(!e||!l)return!1;let a=sessionStorage.getItem("".concat(s,"_").concat(e,"_").concat(l));return(0,t.stringToBoolean)(null!=a?a:"false")},i=(e,l)=>{sessionStorage.setItem("".concat(s,"_").concat(e,"_").concat(l),"true")}},37294:e=>{e.exports={guideWrapper:"guideResultTitle_guideWrapper__u38FX",guideResultTitle:"guideResultTitle_guideResultTitle__fGffR"}},37741:e=>{e.exports={customArticleCard:"newService_customArticleCard___E0Kp"}},39007:(e,l,a)=>{"use strict";a.d(l,{A:()=>d});var t=a(37876),s=a(18444),n=a(40184),i=a(26263),r=a(74701),o=a.n(r),c=a(49755);let d=e=>{var l,a,r,d;let{type:u,icon:m,title:x,subTitle:h,description:p,button:g,buttonLabel:v,onClick:f}=e,b=null!=(l=null==g?void 0:g.agoraIcon)?l:"agora-line-arrow-left-circle",j=null!=(a=null==g?void 0:g.agoraIcon)?a:"agora-solid-arrow-left-circle",C=null!=(r=null==g?void 0:g.iconLocation)?r:c.pr.left,N=(()=>{switch(u){case s.M.Success:return o().statusModalTitleSuccess;case s.M.Error:return o().statusModalTitleError;case s.M.Unavailable:return o().statusModalTitleUnavailable;case s.M.Warning:return o().statusModalTitleWarning;case s.M.Pending:return o().statusModalTitlePending;
1case s.M.Unauthorized:return o().statusModalTitleError}})();return(0,t.jsxs)("div",{className:"grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-y-16 gap-x-32",children:[(0,t.jsx)("div",{className:"col-span-full flex flex-col items-center justify-center",children:(0,t.jsx)(n.Icon,{name:m,dimensions:"xxl",className:N,"aria-hidden":!0})}),(0,t.jsx)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-8 xl:!col-start-3 text-center",children:(0,t.jsx)(i.A,{content:x,additionalClasses:N})}),(null!=h?h:p)&&(0,t.jsxs)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-6 xl:!col-start-4 text-center gap-8",children:[h&&(0,t.jsx)(i.A,{content:h,additionalClasses:o().statusModalSubTitle}),p&&(0,t.jsx)(i.A,{content:p,additionalClasses:o().statusModalContent})]}),(null!=g?g:v)&&(0,t.jsx)("div",{className:"col-span-full flex flex-col items-center justify-center ",children:(0,t.jsx)(n.Button,{className:"gap-8 mt-16 mx-auto",hasIcon:!0,...((e,l,a)=>e?a===c.pr.right?{trailingIcon:e,trailingIconHover:l,hasIcon:!0}:{leadingIcon:e,leadingIconHover:l,hasIcon:!0}:{})(b,j,C),onClick:f,children:null!=(d=null==g?void 0:g.placeholder)?d:v})})]})}},39926:e=>{e.exports={usefulLinesWrapper:"usefulLinesTitle_usefulLinesWrapper__ZGd_W",usefulLinesTitle:"usefulLinesTitle_usefulLinesTitle__BQJ6r"}},40358:e=>{e.exports={newsWrapper:"newsResultTitle_newsWrapper__exRWy",newsResultTitle:"newsResultTitle_newsResultTitle__aW_P9"}},44638:e=>{e.exports={customTitle:"genericPageMain_customTitle__cMUI6",customDescription:"genericPageMain_customDescription__r8I8T"}},45658:e=>{e.exports={customTitle:"inforCard_customTitle__2KPUx",customDescription:"inforCard_customDescription__5wXfZ"}},48018:e=>{e.exports={classDescription:"projectathonTitle_classDescription__Szfe3"}},52214:e=>{e.exports={customTitle:"divisionFormConfirmation_customTitle__Ry39a"}},53652:(e,l,a)=>{"use strict";a.d(l,{q:()=>h});var t=a(37876),s=a(66598),n=a(40184),i=a(78103),r=a(53207),o=a(14232);let c=e=>{let{showCardHero:l,props:a}=e,{width:c}=(0,s.A)(),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{d.current&&c&&0!==c&&l&&c>=Number(n.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&(d.current.style.width=(0,r.A)(c,Number("1440"),Number("1216"),Number("497"),Number("376")))},[l,c]),(0,t.jsx)(i.A,{isMainWrapper:!1,children:l&&(0,t.jsx)("div",{ref:d,className:"-mt-[240px] col-start-9",children:(0,t.jsx)(n.CardHeroHelper,{...a})})})},d=e=>{let{showCardHero:l,props:a}=e;return(0,t.jsx)("div",{className:"w-full",children:l&&(0,t.jsx)(n.CardHeroHelper,{...a})})};var u=a(69010),m=a.n(u),x=a(37575);let h=e=>{var l;let{totalResults:a,ctaHelp:i}=e,{width:r}=(0,s.A)(),o=r<Number(n.AgoraTailwindConfig.theme.screens.xl.replace("px",""))&&r>=Number(n.AgoraTailwindConfig.theme.screens.xs.replace("px",""));if(!i)return null;let u={title:null==i?void 0:i.title,className:m().searchCardHeroHelp,subtitle:null==i?void 0:i.subtitle,helpTopics:null!=(l=null==i?void 0:i.helpTopics.map(e=>({description:e.description,anchor:{href:e.buttonLinkWithIcon.destinationUrl,children:e.buttonLinkWithIcon.placeholder,target:"_blank",appearance:"link",variant:"primary",...(0,x.J)(e.buttonLinkWithIcon.agoraIcon,e.buttonLinkWithIcon.agoraIcon,e.buttonLinkWithIcon.iconLocation)}})))?l:[]};return(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(d,{showCardHero:0===a,props:u}):(0,t.jsx)(c,{showCardHero:0===a,props:u})})}},55330:e=>{e.exports={contactsTitleWrapper:"contactsTitle_contactsTitleWrapper___I1aR",contactsTitle:"contactsTitle_contactsTitle__3iVR0"}},58905:e=>{e.exports={customRelatedGuidesCardsTitle:"relatedGuidesCards_customRelatedGuidesCardsTitle__S5fjg"}},60241:e=>{e.exports={wrapper:"title_wrapper__603We",description:"title_description__72nO_"}},60244:e=>{e.exports={customCardFrame:"serviceBigNumber_customCardFrame__3QzH6"}},60734:e=>{e.exports={newsTitleWrapper:"newsTitle_newsTitleWrapper__OCGCu"}},63954:e=>{e.exports={description:"contactsOtherThemesTitle_description__tDbO2"}},65201:e=>{e.exports={customBenefit:"separator_customBenefit__CTmlt"}},66204:e=>{e.exports={searchBannerImage:"search_searchBannerImage__jJYYM",searchWra
1p:"search_searchWrap__zbr4m"}},68674:e=>{e.exports={customTitle:"localCareInfoBanner_customTitle__fLZk3"}},69010:e=>{e.exports={searchResultForm:"searchResultTitle_searchResultForm__Sn6Y9",searchResultTitle:"searchResultTitle_searchResultTitle__n1fEE",searchResultSubTitle:"searchResultTitle_searchResultSubTitle__KNBg4",searchResultLastUpdatedAt:"searchResultTitle_searchResultLastUpdatedAt__M5kF_",searchCardHeroHelp:"searchResultTitle_searchCardHeroHelp__Jv9Ph"}},70656:e=>{e.exports={questionTitleRadio:"question_questionTitleRadio__5bsNh",questionTitle:"question_questionTitle__PVTOv"}},72594:e=>{e.exports={contactsFormTitle:"contactsForm_contactsFormTitle__Fagp3"}},73294:e=>{e.exports={customFindServiceMarkdownComponent:"findServices_customFindServiceMarkdownComponent__Kry15",customHelperText:"findServices_customHelperText__qlZvf"}},74701:e=>{e.exports={statusModalTitleSuccess:"statusModal_statusModalTitleSuccess__gV9y_",statusModalTitleWarning:"statusModal_statusModalTitleWarning__yjiRg",statusModalTitleError:"statusModal_statusModalTitleError__qWveK",statusModalTitlePending:"statusModal_statusModalTitlePending__YO0x2",statusModalTitleUnavailable:"statusModal_statusModalTitleUnavailable__t__H1",statusModalSubTitle:"statusModal_statusModalSubTitle__bnwDS",statusModalContent:"statusModal_statusModalContent__0J9dU"}},81027:(e,l,a)=>{"use strict";a.d(l,{D8:()=>tR,x:()=>tq,_6:()=>tW,FV:()=>tz,Tr:()=>ty,Ww:()=>tG,P3:()=>tE,Wj:()=>tL,Q4:()=>tI,ww:()=>t_,wD:()=>tO,mc:()=>tk,wZ:()=>tB,E3:()=>tM,Ep:()=>tP,XA:()=>tT,bH:()=>tS,GI:()=>tD,q0:()=>tA,Zw:()=>tF,fm:()=>tV,Fg:()=>tH});var t=a(37876),s=a(26263),n=a(49652);let i=e=>{let{scribbleName:l,title:a,description:i,customClasseScribble:r,customClass:o}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:a&&l?(0,t.jsx)(n.A,{title:a,scribbleName:l,customClasseScribble:r,customClass:o}):(0,t.jsx)(s.A,{content:a,additionalClasses:"title"})}),i&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 flex flex-col gap-16",children:(0,t.jsx)(s.A,{content:i,additionalClasses:"text-neutral-900"})})]})};var r=a(78103),o=a(82851),c=a.n(o),d=a(54587),u=a.n(d),m=a(8608),x=a(18444),h=function(e){return e.Form="form",e.Level="level",e}({}),p=a(40184),g=a(14232);let v=e=>{var l,a,s,n;let{workflowFormLevel:i,labels:r,setScreen:o,setFormId:c}=e,[d,u]=(0,g.useState)(),[m,v]=(0,g.useState)(),[f,b]=(0,g.useState)(),[j,C]=(0,g.useState)();if((0,g.useEffect)(()=>{if(!d)return;let e=w(h.Level,null==d?void 0:d.levelTwo);1===e.length?v(e[0]):v(void 0)},[d]),(0,g.useEffect)(()=>{if(!m)return void b(void 0);let e=w(h.Level,null==m?void 0:m.levelThree);1===e.length?b(e[0]):b(void 0)},[m]),(0,g.useEffect)(()=>{if(!f)return void C(void 0);let e=w(h.Form,null==f?void 0:f.levelFour);1===e.length?C(e[0]):C(void 0)},[f]),!i)return null;let N=(e,l)=>null==l?void 0:l.find(l=>l.levelTitle===e||l.formSubject===e),w=(e,l)=>{var a;return null!=(a=null==l?void 0:l.filter(l=>l.schemaName===e))?a:[]};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-start-2 xl:col-span-6 xl:col-end-10 flex flex-col gap-32",children:[(0,t.jsx)(p.InputSelect,{searchable:!0,type:"text",label:r.t23_035,placeholder:r.t23_039,searchInputPlaceholder:r.t00_108,searchInputAriaLabel:r.t00_108,className:"xs:mt-0 md:mt-0 xl:mt-8",onChange:e=>{var l;(null==(l=e[0])?void 0:l.value)&&u(N(e[0].value,i))},hideSectionNames:!0,children:(0,t.jsx)(p.DropdownSection,{name:r.t23_035,"aria-label":r.t23_035,children:null==(l=w(h.Level,i))?void 0:l.map((e,l)=>(0,t.jsx)(p.DropdownOption,{value:e.levelTitle,selected:e.levelTitle===(null==d?void 0:d.levelTitle),children:e.levelTitle},"country-option-".concat(e.levelTitle,"-").concat(l)))})}),(0,t.jsx)(p.InputSelect,{searchable:!0,type:"text",label:r.t23_036,placeholder:r.t23_039,searchInputPlaceholder:r.t00_108,searchInputAriaLabel:r.t00_108,className:"xs:mt-0 md:mt-0 xl:mt-8",disabled:(()=>{var e,l,a;return(null==d||null==(e=d.levelTwo)?void 0:e.length)===0||null==d||null==(a=d.levelTwo)||null==(l=a[0])||!l.levelTitle})(),onChange:e=>{var l;(null==(l=e[0])?void 0:l.value)&&v(N(e[0].value,null==d?void 0:d.levelTwo))},hideSectionNames:!0,children:(0,t.jsx)(p.DropdownSection,{name:r.t23_036,"aria-label":r.t23_036,children:null==(a=w(h.Level,null==d?void 0:d.levelTwo))?void 0:a.map((e,l)=>(0,t.jsx)(p.DropdownOption,{value:e.levelTitle,selected:e.levelTitle===(null==m?void 0:m.levelTitle),children:e.levelTitle},"area-option-".concat(e.levelTitle,"-").concat(l)))})}),(0,t.jsx)(p.InputSelect,{searchable:!0,type:"text",label:r.t23_037,placeholder:r.t23_039,searchInputPlaceholder:r.t00_108,searchInputAriaLabel:r.t00_108,className:"xs:mt-0 md:mt-0 xl:mt-8",disabled:!(null==m?void 0:m.levelThree),onChange:e=>{var l;(null==(l=e[0])?void 0:l.value)&&b(N(e[0].value,null==m?void 0:m.levelThree))},hideSectionNames:!0,children:(0,t.jsx)(p.DropdownSection,{name:r.t23_037,"aria-label":r.t23_037,children:null==(s=w(h.Level,null==m?void 0:m.levelThree))?void 0:s.map((e,l)=>(0,t.jsx)(p.DropdownOption,{value:e.levelTitle,selected:e.levelTitle===(null==f?void 0:f.levelTitle),children:e.levelTitle},"theme-option-".concat(e.levelTitle,"-").concat(l)))})}),(0,t.jsx)(p.InputSelect,{searchable:!0,type:"text",label:r.t23_038,placeholder:r.t23_039,searchInputPlaceholder:r.t00_108,searchInputAriaLabel:r.t00_108,className:"xs:mt-0 md:mt-0 xl:mt-8",disabled:!(null==f?void 0:f.levelFour),onChange:e=>{var l;(null==(l=e[0])?void 0:l.value)&&C(N(e[0].value,null==f?void 0:f.levelFour))},hideSectionNames:!0,children:(0,t.jsx)(p.DropdownSection,{name:r.t23_038,"aria-label":r.t23_038,children:null==(n=w(h.Form,null==f?void 0:f.levelFour))?void 0:n.map((e,l)=>{var a;return(0,t.jsx)(p.DropdownOption,{value:null!=(a=e.formSubject)?a:"",selected:e.formSubject===(null==j?void 0:j.formSubject),children:e.formSubject},"theme-option-".concat(e.formId,"-").concat(l))})})})]}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-10 items-end flex flex-col gap-32",children:(0,t.jsx)(p.Button,{appearance:"outline",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",disabled:!j,onClick:()=>
1{(null==j?void 0:j.formId)&&(o(x.M.Form),c(j.formId))},children:r.t00_076})})]})};var f=a(18847),b=a.n(f),j=a(8667),C=a(97083);let N={getFormBuilder:async function e(e){let l=await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:"forms/".concat(e)}),headers:{"Content-Type":"application/json"}});if(!l.ok)return void C.Ay.logError("Error fetching form builder ".concat(e,": ").concat(l.statusText));try{return await l.json()}catch(e){C.Ay.logError(e)}},submitForm:async function e(e){let l="/forms/".concat(e.formGeneral.formId,"/submissions");return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:l,body:e}),headers:{"Content-Type":"application/json"}})}},w=b()(async()=>(await a.e(4899).then(a.bind(a,34899))).Builder,{loadableGenerated:{webpack:()=>[34899]},ssr:!1}),_=e=>{let{formData:l,screen:a,setScreen:s}=e,{formGeneral:n,formBuilder:i,submitState:r}=null!=l?l:{};return a?i?a!==x.M.Form?(0,t.jsx)(j.A,{screenType:a,submitStates:r}):a===x.M.Form&&(null==l?void 0:l.formBuilder)?(0,t.jsx)(w,{data:{...null==l?void 0:l.formBuilder,title:""},onSubmit:e=>{N.submitForm({formGeneral:n,formFields:e}).then(async e=>{if(e.ok)s(x.M.Success);else throw s(x.M.Error),C.Ay.logError("Error FormBuilderConfig submitForm data to API",JSON.stringify(e)),Error("Submit form failed: ".concat(e.status," ").concat(e.statusText))}).catch(e=>{s(x.M.Error),C.Ay.logError("An error occurred while submitting FormBuilderConfig data to API",e)})}}):void 0:void 0:null};var A=a(47026),y=a(34846),S=a(81192),T=a(17968),I=a(21290),k=a(44829),L=a(11479),B=a(82005);let P=e=>{let{modularData:l}=e;return(0,t.jsx)("div",{className:"xs:px-0 md:px-0 xl:pr-128 pb-128 ",children:null==l?void 0:l.map((e,l)=>(0,t.jsxs)("div",{className:"mt-16",children:[e.typename===A.By.BodyAndButtonComponent&&(0,t.jsx)(B.A,{data:e}),e.typename===A.By.ImageComponent&&(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)(k.A,{data:e}),(0,t.jsx)(L.A,{data:e})]}),e.typename===A.By.ContentBlockComponent&&(0,t.jsx)(I.A,{data:e}),e.typename===A.By.ButtonComponent&&(0,t.jsx)(T.A,{data:e})]},"".concat(e.typename,"-").concat(l)))})};var M=a(65201),F=a.n(M),R=a(3340),D=a(39415);let H=e=>{var l;let{data:a}=e;return(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-full flex flex-col gap-32",children:(0,t.jsx)("div",{className:"flex flex-col gap-16 customTabHowCanUse",children:(0,t.jsx)(p.Tabs,{children:null==(l=a.separator)?void 0:l.map((e,l)=>{var a,n,i,r,o,c;return(0,t.jsxs)(p.Tab,{active:0===l,children:[(0,t.jsx)(p.TabHeader,{children:e.tabTitle}),(0,t.jsx)(p.TabBody,{className:"px-32 pt-64 pb-128",children:(0,t.jsxs)("div",{className:"flex flex-col gap-32",children:[e.statusMessage&&(e=>{var l,a,t,s;return(null!=(s=null==e||null==(t=e.statusMessage)||null==(a=t.messages)||null==(l=a.filter(e=>e.active))?void 0:l.length)?s:0)>0})(e)&&(0,t.jsx)("div",{className:"mt-32",children:(0,t.jsx)(D.z,{data:e.statusMessage,headingLevel:"h3"})}),(null==(a=e.introduction)?void 0:a.html)&&((0,R._)(null!=(c=null==(n=e.introduction)?void 0:n.html)?c:"")?(0,t.jsx)("div",{className:"xs:col-span-4 md:col-span-8 xl:col-span-12 flex mt-32",children:(0,t.jsx)(S.A,{content:null==(i=e.introduction)?void 0:i.html,additionalClasses:F().customBenefit})}):(0,t.jsx)(s.A,{additionalClasses:F().customBenefit,content:null==(r=e.introduction)?void 0:r.html})),(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.PanelSwitcher,{data:null==(o=e.tabSections)?void 0:o.map((e,l)=>({text:e.sectionTitle,content:(0,t.jsx)("div",{children:(0,t.jsx)(P,{modularData:e.modularContent})},"".concat(e.sectionTitle,"-$").concat(l))})),modalCloseButtonLabel:"Close"})})]})})]},null==e?void 0:e.tabTitle)})})})})};var E=a(14701);let q=e=>{var l;let{id:a,data:s}=e,{t:i}=(0,y.Bd)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.A,{id:a,customClass:"xs:!px-0 md:!px-64 xl:!px-0",children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 flex flex-col gap-32",children:[(0,t.jsx)(n.A,{title:(null==(l=s.markdown)?void 0:l.trim())?s.markdown:i("guides.genericTitle"),scribbleName:"agora-line-zig",customClass:"xs:px-32 md:!px-0 xl:px-0"}),s.components.filter(e=>e.component.typename!==A.By.SeparatorComponent).map((e,l)=>(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 flex flex-col gap-32",children:(0,t.jsx)(E.X,{type:e.component.typename,comp:e})},"".concat(e.component.typename,"-").concat(l)))]})}),s.components.filter(e=>e.component.typename===A.By.SeparatorComponent).map((e,l)=>(0,t.jsx)("div",{className:"mt-32",children:(0,t.jsx)(H,{data:e.component})},"".concat(e.component.typename,"-").concat(l)))]})};var z=a(17691);let W=e=>{let{children:l,...a}=e;return(0,t.jsx)(p.InputSelect,{...a,children:l})};var O=a(7621),G=a.n(O),V=a(57186),U=a(82462),Q=a.n(U),Y=function(e){return e.VideoCall="#nServVideo#",e.Business="#nServEmpresa#",e.Total="#nTotalGeral#",e}({}),J=a(11489),K=a.n(J);let Z=e=>{let{title:l,cards:a,footLink:n,buttonSeeMoreLabel:i}=e,{t:r}=(0,y.Bd)(),[o]=(0,g.useState)(Math.ceil((null==a?void 0:a.length)/6)),[c,d]=(0,g.useState)(1),[u,m]=(0,g.useState)((null==a?void 0:a.slice(0,6))||[]);return(0,t.jsx)(t.Fragment,{children:(null==a?void 0:a.length)>0&&(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(s.A,{content:l,additionalClasses:K().sectionTitle})}),null==u?void 0:u.map(e=>(0,t.jsx)(p.CardArticle,{variant:"indented",className:"!w-full xs:h-[136px] xs:col-span-full md:col-span-full md:h-[220px] md:!min-h-[184px] xl:h-[220px] xl:col-span-4 xl:!min-h-[184px]",mainAnchor:{title:"".concat(r("global.openPage")," ").concat(e.label),href:e.url,hasIcon:!0,iconOnly:!0},title:(0,t.jsx)(s.A,{content:e.label}),headingLevel:"h3",blockedLink:!0},"key-".concat(e.label))),c!==o&&(0,t.jsx)("div",{className:"col-span-full flex flex-col md:mx-64 xl:mx-0",children:(0,t.jsx)(p.Button,{appearance:"link",hasIcon:!0,trailingIcon:"agora-line-arrow-down-anchor",trailingIconHover:"agora-line-arrow-down-anchor",onClick:()=>{d(e=>e+1),m((e=>{let l=[],t=6*e-6,s=Math.min(t+6,null==a?void 0:a.length);for(let e=t;e<s;e++)l.push(a[e]);return[...u,...l]})(c+1))},children:i})}),(null==n?void 0:n.url)&&(null==n?void 0:n.label)&&(0,t.jsx)("div",{className:"col-span-full h-[60px] flex items-center",children:(0,t.jsx)(p.Anchor,{style:{width:"fit-content"},hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:n.url,appearance:"link",children:n.label})})]})})};var X=a(4337),$=a(81454),ee=a.n($),el=a(93190),ea=a(5136),et=a(11806),es=a(95966),en=a.n(es),ei=a(94655),er=a(55330),eo=a.n(er),ec=a(36584),ed=a(89099),eu=a(72594),em=a.n(eu),ex=a(12556),eh=a(37575),ep=a(6342),eg=a.n(ep),ev=a(15142),ef=a.n(ev),eb=a(74075);let ej=e=>{var l;let{selectedTopic:a,setSelectedTopic:s,labels:n,items:i}=e,{t:r}=(0,y.Bd)(),o=e=>"/formularios?formId={formId}".replace("{formId}",null!=e?e:"");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 gap-8",children:i&&(0,t.jsx)(p.InputSelect,{label:(0,eb.BH)(null==n?void 0:n.t23_034,r("
1contacts.allTopics")),value:a.levelTitle,onChange:e=>{var l;let a=null==e||null==(l=e[0])?void 0:l.value,t=null==i?void 0:i.find(e=>e.levelTitle===a);t&&s(t)},children:(0,t.jsx)(p.DropdownSection,{name:"topics",children:i.map(e=>(0,t.jsx)(p.DropdownOption,{value:e.levelTitle,selected:e.levelTitle===a.levelTitle,children:e.levelTitle},e.levelTitle))})})}),(0,t.jsx)("div",{className:"col-span-full grid xs:!grid-cols-1 md:!grid-cols-2 xl:!grid-cols-2 xs:gap-16 md:gap-x-32 md:gap-y-16",children:(0,t.jsx)("ul",{className:"contents",children:null==a||null==(l=a.levelTwo)?void 0:l.map(e=>{var l,a;return e.schemaName===h.Level?(0,t.jsx)("li",{children:(0,t.jsx)(p.CardExpandable,{cardHeadingLevel:"h4",cardTitle:(0,t.jsx)("span",{className:"text-m-bold text-neutral-900",children:e.levelTitle}),accordionHeadingLevel:"h5",accordionHeadingTitle:(0,ex.k)(null!=(a=e.levelDescription)?a:""),variant:"primary-100",children:(0,t.jsx)("div",{className:"flex flex-col items-start gap-8",children:null==e||null==(l=e.levelThree)?void 0:l.map(e=>(0,t.jsx)(p.Anchor,{hasIcon:!0,appearance:"link",variant:"neutral",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",className:ef().levelThreeAnchor,href:o(e.formId),target:"_self",children:e.formSubject},e.formSubject))})})},e.levelTitle):(0,t.jsx)("li",{className:ef().cardItem,children:(0,t.jsx)(p.CardGeneral,{variant:"primary-100",descriptionText:null,titleText:(0,t.jsx)("h4",{className:"text-m-bold text-neutral-900",children:e.formSubject}),anchor:{href:o(e.formId),target:"_self",children:"",hasIcon:!0,appearance:"link",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",trailingIconActive:"agora-solid-arrow-right-circle"}})},e.formSubject)})})})]})};var eC=a(24644),eN=a(71425),ew=a(73294),e_=a.n(ew),eA=a(35709),ey=a(66598),eS=a(9880);let eT=e=>{let{title:l,links:a}=e;return(0,t.jsxs)("div",{className:"border-l-1 border-neutral-700 p-32",children:[(0,t.jsx)("h2",{className:"text-m-bold text-neutral-900 pb-16",children:l}),(0,t.jsx)("ul",{className:"flex flex-col justify-start items-start",children:null==a?void 0:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(p.Anchor,{appearance:"link",variant:"neutral",...e},e.href)},e.href))})]})},eI=e=>{var l,a;let{title:s,links:n}=e,{width:i}=(0,ey.A)(),o=i<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&i>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px","")),c=i>=Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""));return(0,eS.R)(),(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)(r.A,{isMainWrapper:!1,children:(0,t.jsx)("div",{className:"col-span-full mt-32",children:(null!=(l=null==n?void 0:n.length)?l:0)>0&&(0,t.jsx)(eT,{title:s,links:n})})}),c&&(0,t.jsx)("div",{className:"col-span-3 !col-start-10 row-start-1 row-span-3 flex flex-col gap-16",children:(null!=(a=null==n?void 0:n.length)?a:0)>0&&(0,t.jsx)(eT,{title:s,links:n})})]})};var ek=a(92014),eL=a.n(ek),eB=a(44638),eP=a.n(eB),eM=a(45877),eF=a(22102),eR=a.n(eF),eD=a(97213),eH=a(37294),eE=a.n(eH),eq=a(53652),ez=a(6638),eW=a.n(ez);let eO={error:(0,et.t)("api.getSlots.error.message"),success:(0,et.t)("api.getSlots.success.message")},eG={error:(0,et.t)("api.scheduleVideoCall.error.message"),success:(0,et.t)("api.scheduleVideoCall.success.message")},eV={getSlots:async function e(e,l){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:"v2/video-call/slots",customMessages:eO,body:{date:e,serviceCode:l}}),headers:{"Content-Type":"application/json"}})},postSubmitForm:async function e(e){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:"v2/video-call/schedule-call",customMessages:eG,body:e}),headers:{"Content-Type":"application/json"}})},getMessages:async function e(){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"GET",urlPath:"videoCall/getMessages",customMessages:eO}),headers:{"Content-Type":"application/json"}})},getCountries:async function e(){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"GET",urlPath:"videoCall/getCountries",customMessages:eO}),headers:{"Content-Type":"application/json"}})}},eU={buttonLabel:"AGendar",descriptionA:"Agende o suporte deste servi\xe7o por videochamada.\n",descriptionB:"Agende a realiza\xe7\xe3o deste servi\xe7o por videochamada.\n",fieldsRequired:"Todos os campos do formul\xe1rio s\xe3o de preenchimento obrigat\xf3rio.\n",statusContent:[{type:x.M.Success,icon:"agora-solid-clock",title:"O seu pedido de agendamento foi submetido e aguarda confirma\xe7\xe3o\n",subTitle:"Ir\xe1 receber um email para confirmar o seu pedido de agendamento. Verifique na caixa de entrada ou na pasta de spam se recebeu o email de confirma\xe7\xe3o.\n",description:"Tem 15 minutos para confirmar o seu agendamento.\n",buttonLabel:"Voltar \xe0 p\xe1gina"},{type:x.M.Unavailable,icon:"agora-line-calendar",title:"De momento n\xe3o existem agendamentos dispon\xedveis\n",subTitle:"Pedimos desculpa, mas de momento o servi\xe7o n\xe3o tem disponibilidade de agendamento de videochamada.\n",description:"",buttonLabel:"Voltar \xe0 p\xe1gina inicial"},{type:x.M.Warning,icon:"agora-solid-clock",title:"O seu agendamento foi confirmado com sucesso\n",subTitle:"Ir\xe1 receber um email com a data e a hora do agendamento, e as condi\xe7\xf5es para a realiza\xe7\xe3o do servi\xe7o.\n",description:"Verifique na caixa de entrada ou na pasta de spam se recebeu o email.\n",buttonLabel:"Ir para a p\xe1gina inicial"},{type:x.M.Error,icon:"agora-solid-alert-triangle",title:"Ocorreu um erro a confirmar o agendamento\n",subTitle:"Pedimos desculpa, n\xe3o foi poss\xedvel confirmar o seu agendamento.\n",description:"Tente confirmar mais tarde ou fa\xe7a um novo pedido de agendamento.\n",buttonLabel:"Ir para a p\xe1gina inicial"},{type:x.M.Pending,icon:"agora-solid-smile-sad",title:"O seu agendamento foi cancelado com sucesso\n",subTitle:"Pode agendar novamente.\n",description:"",buttonLabel:"Agendar"}]};var eQ=a(82950),eY=a.n(eQ);let eJ=e=>{let{service:l,children:a}=e;return(0,t.jsxs)(t.Fragment,{children:[(null==l?void 0:l.notification)&&(0,t.jsx)(p.StatusCard,{description:l.n
1otification.description,variant:l.notification.type,title:l.notification.title,className:"mt-32 mb-32"}),(0,t.jsxs)(r.A,{isMainWrapper:!1,children:[(0,t.jsx)("div",{className:"col-span-7 flex flex-col mt-32 gap-16",children:l.benefits?l.benefits.filter(e=>""!==e).map(e=>(0,t.jsxs)("div",{className:"xs:col-span-4 md:col-span-8 xl:col-span-12 flex",children:[(0,t.jsx)(p.Icon,{name:"agora-line-check","aria-hidden":!0,className:"mr-8"}),(0,t.jsx)(s.A,{content:e,additionalClasses:eY().customBenefit})]},e)):null}),a]})]})},eK=e=>!!e.isLgp||!!e.isLgpOnline;var eZ=a(45658),eX=a.n(eZ),e$=function(e){return e.A="A",e.B="B",e}({}),e0=a(99104),e1=a(88992),e2=a(71090),e3=a(91408);let e6=e3.Ik().shape({name:e3.Yj().required("global.requeridField"),email:e3.Yj().required("global.requeridField").matches(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/g,{message:"serviceSheet.modalVideoCallInputInvalidEmail"}),country:e3.Yj().required("global.requeridField"),dateAppointment:e3.Yj().required("global.requeridField"),language:e3.Yj().required("global.requeridField"),phone:e3.Yj().required("global.requeridField").matches(/^(\d{9})/g,{message:"serviceSheet.modalVideoCallInputInvalidPhone"}),terms:e3.Yj().required("global.requeridField"),time:e3.Yj().required("global.requeridField")}),e4=(0,e2.t)(e6);var e9=a(39007);let e8=(e,l)=>(0,eM.A)(e,"yyyy-MM-dd")===l,e7=e=>new Date(new Date(e[0].startDate).getTime()<Date.now()?Date.now():e[0].startDate),e5=e=>{let l=e.length;return new Date(e[l-1].startDate)},le=e=>{var l;return null==e||null==(l=e.split("/"))?void 0:l.reverse().join("-")},ll=e=>{let l=e7(e),a=e5(e),t=[];do e.some(e=>l.toDateString()===new Date(e.startDate).toDateString())||t.push((0,eM.A)(l,"MM/dd/yyyy")),l.setHours(24);while(l.getTime()<a.getTime());return t},la=(e,l)=>l.filter(l=>e===(0,eM.A)(new Date(Date.now()),"yyyy-MM-dd")?e8(new Date(l.startDate),e)&&(e=>new Date(e).setHours(e.getUTCHours(),e.getMinutes(),0,0)>Date.now())(new Date(l.startDate)):e8(new Date(l.startDate),e)).map(e=>(e=>{let l=new Date(e),a=(10>l.getHours()?"0":"")+l.getHours(),t=(10>l.getMinutes()?"0":"")+l.getMinutes();return"".concat(a,":").concat(t)})(e.startDate));function lt(){let{watch:e,register:l,control:a,setValue:t,formState:{errors:s},setError:n,getValues:i}=(0,e1.xW)();
1return{watch:e,register:l,control:a,setValue:t,setError:n,getValues:i,errors:s}}var ls=a(78229),ln=a(28998),li=a.n(ln);let lr=e=>{var l,a,n,i,r,o,c,d,u,m,x,h,v,f,b,j,C,N,w;let{callType:_,countriesInfo:A,availableSlots:S,modalMessages:T,recaptcha:I,setPhoneWithCode:k}=e,{seoInfo:L}=(0,g.useContext)(e0.H),{globalState:B}=(0,g.useContext)(z.q),{hide:P}=(0,p.useModalContext)(),M=(0,g.useRef)(null),F=(0,g.useRef)(null),R=(0,g.useRef)(null),{t:D}=(0,y.Bd)(),[H,E]=(0,g.useState)(""),[q,W]=(0,g.useState)(""),[O,G]=(0,g.useState)([]),[U,Q]=(0,g.useState)(""),[Y,J]=(0,g.useState)([]),[K,Z]=(0,g.useState)([]),{watch:X,register:$,control:ee,setValue:el,setError:ea,getValues:et,errors:es}=lt();(0,g.useEffect)(()=>{if(E(""),W(""),(null==S?void 0:S.length)===0)return;let e=e7(S),l=e5(S);E((0,eM.A)(e,"MM/dd/yyyy")),W((0,eM.A)(l,"MM/dd/yyyy")),en()},[S]),(0,g.useEffect)(()=>{var e;(null==L||null==(e=L.language)?void 0:e.key)&&Q(L.language.key.toUpperCase())},[L]),(0,g.useEffect)(()=>{G([]);let e=et("dateAppointment")&&"string"==typeof et("dateAppointment")&&le(et("dateAppointment"));e&&(el("time",""),er(e))},[X("dateAppointment"),S]),(0,g.useEffect)(()=>{var e,l;let a=D("serviceSheet.modalVideoCallInputLanguageValueDefault"),t=D("serviceSheet.modalVideoCallInputLanguageLGPValue"),s=_===e$.A?null==B||null==(e=B.videoCallConfigs)?void 0:e.typeA:null==B||null==(l=B.videoCallConfigs)?void 0:l.typeB;if(!(null==s?void 0:s.length))return void J([a]);let n=s.filter(e=>e!==a&&e!==t).sort((e,l)=>e.localeCompare(l));J(s.includes(t)?[t,a,...n]:[a,...n])},[_,null==B?void 0:B.videoCallConfigs,el,D]);let en=()=>{Z(ll(S))},ei=e=>{e.code&&k(e.code)},er=e=>{G(la(e,S))},eo={label:D("serviceSheet.modalVideoCallInputDateAppointment"),className:li().datePicker,calendarIconAriaLabel:D("InputDatePick.calendarIconAriaLabel"),previousYearAriaLabel:D("InputDatePick.previousYearAriaLabel"),previousMonthAriaLabel:D("InputDatePick.previousMonthAriaLabel"),nextMonthAriaLabel:D("InputDatePick.nextMonthAriaLabel"),nextYearAriaLabel:D("InputDatePick.nextYearAriaLabel"),selectedDayAriaLabel:D("InputDatePick.selectedDayAriaLabel"),todayLabel:D("InputDatePick.todayLabel"),todayDayAriaLabel:D("InputDatePick.todayLabel"),cancelLabel:D("global.cancel"),dayInputPlaceholder:D("InputDatePick.dayInputPlaceholder"),monthInputPlaceholder:D("InputDatePick.monthInputPlaceholder"),yearInputPlaceholder:D("InputDatePick.yearInputPlaceholder"),okLabel:D("InputDatePick.okLabel")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.InputText,{...$("name"),"data-testid":"schedule-video-call-name-input",label:D("serviceSheet.modalVideoCallInputName"),placeholder:D("serviceSheet.modalVideoCallInputNamePlaceholder"),hasError:!!(null==(l=es.name)?void 0:l.message),feedbackState:"danger",hasFeedback:!!(null==(a=es.name)?void 0:a.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==(n=es.name)?void 0:n.message))})}),(0,t.jsx)(p.InputText,{"data-testid":"schedule-video-call-email-input",label:D("serviceSheet.modalVideoCallInputEmail"),placeholder:D("serviceSheet.modalVideoCallInputEmailPlaceholder"),type:"email",hasError:!!(null==(i=es.email)?void 0:i.message),feedbackState:"danger",hasFeedback:!!(null==(r=es.email)?void 0:r.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==(o=es.email)?void 0:o.message))}),...$("email")}),(0,t.jsx)("div",{children:(0,t.jsx)(e1.xI,{"data-testid":"schedule-video-call-phone-input",name:"phone",control:ee,render:e=>{var l;let{field:{name:a,value:s,onChange:n},fieldState:{error:i}}=e;return(0,t.jsx)(p.InputPhone,{name:a,label:D("serviceSheet.modalVideoCallInputPhone"),placeholder:D("serviceSheet.modalVideoCallInputPhonePlaceholder"),className:"xs:w-full md:w-full",defaultISO:"PT",value:s,onChange:n,onCountryChange:ei,hasError:!!(null==i?void 0:i.message),feedbackState:"danger",hasFeedback:!!(null==i?void 0:i.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==es||null==(l=es.phone)?void 0:l.message))})})}})}),(0,t.jsxs)("div",{className:li().formLine,children:[(0,t.jsx)(e1.xI,{"data-testid":"schedule-video-call-country-input",n
1ame:"country",control:ee,render:e=>{var l;let{field:{name:a,value:s,onChange:n},fieldState:{error:i}}=e;return(0,t.jsx)(p.InputSelect,{name:a,searchable:!0,disabled:(null==A?void 0:A.length)<=0,type:"text",label:D("serviceSheet.modalVideoCallInputCountry"),placeholder:D("serviceSheet.modalVideoCallInputCountryPlaceholder"),searchInputPlaceholder:D("global.search"),searchInputAriaLabel:D("global.search"),className:"xs:mt-0 md:mt-0 xl:mt-8",value:s,onChange:e=>{e[0]&&n(()=>{ea("country",{message:void 0}),el("country",e[0].value)})},ref:F,hasError:!!(null==i?void 0:i.message),feedbackState:"danger",hasFeedback:!!(null==i?void 0:i.message),hideSectionNames:!0,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==(l=es.country)?void 0:l.message))}),children:(0,t.jsx)(p.DropdownSection,{name:D("serviceSheet.modalVideoCallInputCountry"),"aria-label":D("serviceSheet.modalVideoCallInputCountryAriaLabel"),children:null==A?void 0:A.map(e=>(0,t.jsx)(p.DropdownOption,{value:"PT"===U?e.namePT:e.nameEN,selected:("PT"===U?e.namePT:e.nameEN)===X("country"),children:"PT"===U?e.namePT:e.nameEN},"country-option-".concat((0,V.A)())))},"dropdown-country-".concat((0,V.A)()))})}}),(0,t.jsx)(p.InputSelect,{searchable:!0,disabled:Y.length<=0,type:"text",label:D("serviceSheet.modalVideoCallInputLanguage"),placeholder:D("serviceSheet.modalVideoCallInputLanguagePlaceholder"),searchInputPlaceholder:D("global.search"),searchInputAriaLabel:D("global.search"),className:"xs:mt-0 md:mt-0 xl:mt-8",value:X("language"),onChange:e=>{let l=e.find(e=>!0===e.selected);(null==l?void 0:l.value)&&(el("language",l.value),ea("language",{message:void 0}))},ref:R,hasError:!!(null==es||null==(c=es.language)?void 0:c.message),feedbackState:"danger",hasFeedback:!!(null==es||null==(d=es.language)?void 0:d.message),hideSectionNames:!0,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==(u=es.language)?void 0:u.message))}),children:(0,t.jsx)(p.DropdownSection,{name:D("serviceSheet.modalVideoCallInputLanguage"),"aria-label":D("serviceSheet.modalVideoCallInputLanguageAriaLabel"),children:Y.map(e=>(0,t.jsx)(p.DropdownOption,{value:e,selected:e===X("language"),children:e},"language-option-".concat((0,V.A)())))},"dropdown-language-".concat((0,V.A)()))})]}),(0,t.jsxs)("div",{className:li().formLine,children:[(0,t.jsx)(p.InputDate,{id:"schedule-video-call-date-input","aria-label":"dateAppointment",name:"dateAppointment",value:X("dateAppointment"),startDate:H,endDate:q,disabledDates:K,hasError:!!(null==es||null==(m
1=es.dateAppointment)?void 0:m.message),feedbackState:"danger",hasFeedback:!!(null==es||null==(x=es.dateAppointment)?void 0:x.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==es||null==(h=es.dateAppointment)?void 0:h.message))}),onChange:e=>{e.target.value&&(el("dateAppointment",e.target.value),ea("dateAppointment",{message:void 0}))},required:!0,...eo}),(0,t.jsx)(p.InputSelect,{id:"schedule-video-call-time-input",disabled:O.length<=0,searchable:!1,type:"text",label:D("serviceSheet.modalVideoCallInputTime"),placeholder:D("serviceSheet.modalVideoCallInputTimeAriaLabel"),name:"time",value:X("time"),className:"xs:mt-0 md:mt-0 xl:mt-8",onChange:e=>{let l=e.find(e=>!0===e.selected);(null==l?void 0:l.value)&&(el("time",l.value),ea("time",{message:void 0}))},ref:M,hasError:O.length>0&&!!(null==es||null==(v=es.time)?void 0:v.message),feedbackState:"danger",hasFeedback:O.length>0&&!!(null==es||null==(f=es.time)?void 0:f.message),hideSectionNames:!0,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==es||null==(b=es.time)?void 0:b.message))}),required:!0,children:(0,t.jsx)(p.DropdownSection,{name:D("serviceSheet.modalVideoCallInputTime"),"aria-label":D("serviceSheet.modalVideoCallInputTimeAriaLabel"),children:O.map(e=>(0,t.jsx)(p.DropdownOption,{value:e,selected:e===X("time"),children:e},"slot-avaible-time-option-".concat((0,V.A)())))},"dropdown-time-".concat((0,V.A)()))})]}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(p.Checkbox,{"data-testid":"schedule-video-call-terms-input",hasError:!!(null==(j=es.terms)?void 0:j.message),feedbackState:"danger",hasFeedback:!!(null==es||null==(C=es.terms)?void 0:C.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:D("".concat(null==es||null==(N=es.terms)?void 0:N.message))}),onChange:e=>{e.target.value&&(el("terms",e.target.checked),ea("terms",{message:void 0}))},checked:null!=(w=X("terms"))&&w,children:(0,t.jsx)(s.A,{content:null==T?void 0:T.terms,additionalClasses:li().customBenefit})})}),(0,t.jsxs)("div",{className:"flex justify-center xs:gap-0 gap-32 xs:justify-start md:justify-start xl:justify-end",children:[(0,t.jsx)(p.Button,{onClick:P,type:"button","aria-label":D("global.closeModal"),appearance:"link",className:"xs:hidden md:hidden xl:block",children:D("global.cancel")}),(0,t.jsx)(ls.A,{size:"invisible",sitekey:"6Leq-9UUAAAAABWXbl_lrLQiZkmG0xiOHloQv2gc",onChange:e=>{e&&el("token",e)},ref:I}),(0,t.jsx)(p.Button,{"data-testid":"schedule-video-call-submit-button",disabled:!et("terms")||!X("time"),type:"submit",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",className:"xs:w-[100%] md:w-[241px] xl:w-[241px] xs:mt-[-32px] md:mt-auto xl:mt-auto",children:null==T?void 0:T.buttonLabel})]})]})};function lo(e){return e.length<10?"":e.substring(6)+"-"+e.substring(3,5)+"-"+e.substring(0,2)}let lc=e=>{var l;let{isMobile:a,callType:s,modalMessages:n,modalClicks:i,hide:r}=e,{seoInfo:o}=(0,g.useContext)(e0.H),{t:c}=(0,y.Bd)(),d=(0,e1.mN)({mode:"onChange",defaultValues:{name:"",email:"",country:"",dateAppointment:"",language:"",phone:"",terms:!1,time:""},criteriaMode:"all",resolver:e4}),{handleSubmit:u,reset:m,setFocus:h}=d,[v,f]=(0,g.useState)("351"),[b,j]=(0,g.useState)(x.M.Form),[N,w]=(0,g.useState)([]),[_,A]=(0,g.useState)([]),{showLoader:S,hideLoader:T}=(0,p.useLoaderDialogContext)(),I=g.createRef(),k=async e=>{var l;await (null==(l=I.current)?void 0:l.executeAsync());let a="+"+v+e.phone,t="".concat(lo(e.dateAppointment),"T").concat(e.time),s=_.find(e=>e.startDate.startsWith(t)),n={startTime:null==s?void 0:s.startDate,slotToken:null==s?void 0:s.slotToken,citizenName:e.name,citizenEmail:e.email,citizenPhone:a,citizenCountry:e.country,citizenLanguage:e.language,captchaToken:null==e?void 0:e.token};
1S({title:c("serviceSheet.modalPendingTitle"),subtitle:c("serviceSheet.modalPendingSubTitle")}),eV.postSubmitForm(n).then(async e=>{if(e.ok){var l;m(),T(),j(x.M.Success),null==I||null==(l=I.current)||l.reset()}else throw T(),j(x.M.Error),C.Ay.logError("Error fetching data from API",JSON.stringify(e)),Error("Submit form failed: ".concat(e.status," ").concat(e.statusText))}).catch(e=>{var l;T(),j(x.M.Error),C.Ay.logError("Erro ao enviar o formul\xe1rio",e),null==I||null==(l=I.current)||l.reset()})};(0,g.useEffect)(()=>{m(),j(x.M.Form),setTimeout(()=>{h("name")},100),L(),B()},[i]);let L=()=>{var e;let l=new Date().toISOString().split("T")[0];S({title:c("serviceSheet.modalPendingTitle")}),eV.getSlots(l,null!=(e=null==o?void 0:o.code)?e:"").then(async e=>{if(e.ok){let l=await e.json();(null==l?void 0:l.slots.length)>0?(T(),A(l.slots)):(T(),j(x.M.Unavailable))}else T(),j(x.M.Unavailable)}).catch(e=>{T(),j(x.M.Unavailable),C.Ay.logError("Erro ao consultar datas dispon\xedveis",e)})},B=()=>{eV.getCountries().then(async e=>{e.ok?w((await e.json()).countries):j(x.M.Error)}).catch(e=>{j(x.M.Error),C.Ay.logError("Erro ao buscar os pa\xedses dispon\xedveis",e)})};if(b!==x.M.Form){let e=null==n||null==(l=n.statusContent)?void 0:l.find(e=>e.type===b),a=(null==e?void 0:e.type)===x.M.Unavailable||(null==e?void 0:e.type)===x.M.Success?r:()=>{j(x.M.Form)};return e?(0,t.jsx)(e9.A,{...e,onClick:a}):(0,t.jsx)(e9.A,{type:x.M.Error,icon:"agora-solid-alert-triangle",title:c("serviceSheet.modalErrorTitle"),subTitle:c("serviceSheet.modalErrorSubTitle"),buttonLabel:c("serviceSheet.modalErrorButtonBackText"),onClick:r})}return(0,t.jsxs)("div",{className:li().modalContainer,children:[!a&&(0,t.jsxs)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-6 xl:!col-start-4 flex flex-col justify-center items-start text-neutral-900 pb-8",children:[(0,t.jsx)("p",{className:"text-l-regular",children:s===e$.A?null==n?void 0:n.descriptionA:null==n?void 0:n.descriptionB}),(0,t.jsx)("h2",{className:"text-xl-semibold mb-16",children:null==o?void 0:o.pagetitle}),(0,t.jsx)("p",{className:"text-m-regular",children:null==n?void 0:n.fieldsRequired})]}),(0,t.jsx)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-6 xl:!col-start-4",children:(0,t.jsx)(e1.Op,{...d,children:(0,t.jsx)("form",{className:li().videoCallForm,onSubmit:u(k),noValidate:!0,children:(0,t.jsx)(lr,{callType:s,countriesInfo:N,modalMessages:n,setPhoneWithCode:f,availableSlots:_,recaptcha:I})})})})]})},ld=e=>{let l=(0,ed.useRouter)(),{show:a,hide:n}=(0,p.useModalContext)(),[i,r]=(0,g.useState)(0),{icon:o,button:c,title:d,description:m,img:x,callType:h,modalMessages:v}=e,f=()=>{r(i+1),a((0,t.jsx)(lc,{callType:null!=h?h:e$.A,modalMessages:v,modalClicks:i,hide:n}),{closeButtonLabel:(0,et.t)("global.closeModal"),darkMode:!1})};return(0,t.jsxs)("div",{className:"grid gap-32",children:[o&&(0,t.jsx)(p.Icon,{name:o,style:{height:56,width:56},"aria-hidden":!0}),(null==x?void 0:x.url)&&(0,t.jsx)(u(),{src:x.url,alt:x.alt,width:168,height:32}),(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[d&&(0,t.jsx)("div",{children:(0,t.jsx)(s.A,{content:d,additionalClasses:eX().customTitle})}),m&&(0,t.jsx)("div",{children:(0,t.jsx)(s.A,{content:m,additionalClasses:eX().customDescription})})]}),(()=>{let e=(null==c?void 0:c.url)?()=>{(e=>{e&&l.push(e).catch(e=>{C.Ay.logError(e)})})(null==c?void 0:c.url)}:f;return(null==c?void 0:c.label)&&(0,t.jsx)(p.Button,{className:"w-fit",hasIcon:!0,onClick:e,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:c.label})})()]})},lu=e=>{let{iconString:l}=e;if(!l)return null;let a=l.split(";");return(0,t.jsx)("div",{className:"flex items-center gap-16",children:a.map((e,l)=>(0,t.jsx)(g.Fragment,{children:e&&(0,t.jsx)("div",{className:"w-56 h-56 border-2 border-primary-300 rounded-8 p-16 mb-16 flex items-center justify-center",children:(0,t.jsx)(p.Icon,{dimensions:"m",name:e,"aria-hidden":!0})})},"".concat(e+l)))})};var lm=a(48230),lx=a.n(lm);let lh=e=>{var l;let{phones:a,email:n}=e;return(0,t.jsxs)("div",{className:"mt-32",children:[(null==a?void 0:a.title)&&(0,t.jsx)("h3",{className:"text-m-bold text-neutral-900",children:null==a?void 0:a.title}),(null==a?void 0:a.info)&&(0,t.jsx)("div",{className:"grid grid-cols-12 gap-32 mt-16 mb-32",children:null==a||null==(l=a.info)?void 0:l.map(e=>(0,t.jsxs)("div",{className:"col-span-6",children:[(0,t.jsx)("p",{className:"text-m-semibold text-neutral-900 mb
1-8",children:null==e?void 0:e.number}),(0,t.jsx)(s.A,{content:null==e?void 0:e.workingDays,additionalClasses:eY().contactInfo}),(0,t.jsx)(s.A,{content:null==e?void 0:e.autoWorkingDays,additionalClasses:"".concat(eY().contactInfo," mt-16")})]},null==e?void 0:e.number))}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mb-16 text-m-bold text-neutral-900",children:null==n?void 0:n.title}),(0,t.jsx)("div",{children:null==n?void 0:n.info.map(e=>(0,t.jsx)(lx(),{href:"mailto:".concat(e),children:(0,t.jsx)("p",{className:"text-m-semibold text-neutral-900",children:e})},e))})]})]})},lp=e=>{var l,a,n,i,r,o,c,d,u,m,x,h,v,f,b,j,C,N,w,_,A,S,T,I;let{availableSlots:k,modalMessages:L,recaptcha:B,setPhoneWithCode:P,setPointOfCareCode:M}=e,{globalState:F}=(0,g.useContext)(z.q),{hide:R}=(0,p.useModalContext)(),D=(0,g.useRef)(null),{t:H}=(0,y.Bd)(),[E,q]=(0,g.useState)(""),[W,O]=(0,g.useState)(""),[G,U]=(0,g.useState)([]),[Q,Y]=(0,g.useState)([]),{watch:J,register:K,control:Z,setValue:X,setError:$,getValues:ee,errors:el}=lt();(0,g.useEffect)(()=>{if(q(""),O(""),(null==k?void 0:k.length)===0)return;let e=e7(k),l=e5(k);q((0,eM.A)(e,"MM/dd/yyyy")),O((0,eM.A)(l,"MM/dd/yyyy")),ea()},[k]),(0,g.useEffect)(()=>{U([]);let e=ee("dateAppointment")&&"string"==typeof ee("dateAppointment")&&le(ee("dateAppointment"));e&&(X("time",""),es(e))},[J("dateAppointment"),k]);let ea=()=>{Y(ll(k))},et=e=>{e.code&&P(e.code)},es=e=>{U(la(e,k))},en={label:H("serviceSheet.modalLGPInputDateAppointment"),calendarIconAriaLabel:H("InputDatePick.calendarIconAriaLabel"),previousYearAriaLabel:H("InputDatePick.previousYearAriaLabel"),previousMonthAriaLabel:H("InputDatePick.previousMonthAriaLabel"),nextMonthAriaLabel:H("InputDatePick.nextMonthAriaLabel"),nextYearAriaLabel:H("InputDatePick.nextYearAriaLabel"),selectedDayAriaLabel:H("InputDatePick.selectedDayAriaLabel"),todayLabel:H("InputDatePick.todayLabel"),todayDayAriaLabel:H("InputDatePick.todayLabel"),cancelLabel:H("global.cancel"),dayInputPlaceholder:H("InputDatePick.dayInputPlaceholder"),monthInputPlaceholder:H("InputDatePick.monthInputPlaceholder"),yearInputPlaceholder:H("InputDatePick.yearInputPlaceholder"),okLabel:H("InputDatePick.okLabel")},ei=null!=(T=null==F||null==(l=F.services)?void 0:l.listPointsOfCareLGP)?T:[];(0,g.useEffect)(()=>{M("");let e=er();e&&M(e)},[J("pointsOfCare"),k]);let er=()=>{if(ee("pointsOfCare")&&"string"==typeof ee("pointsOfCare"))return ee("pointsOfCare")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.InputText,{...K("name"),label:H("serviceSheet.modalVideoCallInputName"),placeholder:H("serviceSheet.modalVideoCallInputNamePlaceholder"),hasError:!!(null==(a=el.name)?void 0:a.message),feedbackState:"danger",hasFeedback:!!(null==(n=el.name)?void 0:n.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==(i=el.name)?void 0:i.message))})}),(0,t.jsxs)("div",{className:li().lgpFormLine,children:[(0,t.jsx)(p.InputText,{label:H("serviceSheet.modalVideoCallInputEmail"),placeholder:H("serviceSheet.modalVideoCallInputEmailPlaceholder"),type:"email",hasError:!!(null==(r=el.email)?void 0:r.message),feedbackState:"danger",hasFeedback:!!(null==(o=el.email)?void 0:o.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==(c=el.email)?void 0:c.message))}),...K("email")}),(0,t.jsx)("div",{children:(0,t.jsx)(e1.xI,{name:"phone",control:Z,render:e=>{var l;let{field:{name:a,value:s,onChange:n},fieldState:{error:i}}=e;return(0,t.jsx)(p.InputPhone,{name:a,label:H("serviceSheet.modalVideoCallInputPhone"),placeholder:H("serviceSheet.modalVideoCallInputPhonePlaceholder"),className:"w-full",defaultISO:"PT",value:s,onChange:n,onCountryChange:et,hasError:!!(null==i?void 0:i.message),feedbackState:"danger",hasFeedback:!!(null==i?void 0:i.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==el||null==(l=el.phone)?void 0:l.message))})})}})})]}),(0,t.jsxs)("div",{className:li().lgpFormLine,children:[(0,t.jsx)(e1.xI,{name:"pointsOfCare",control:Z,render:e=>{let{field:{name:l,value:a,onChange:s},fieldState:{error:n}}=e;return(0,t.jsx)(p.InputSelect,{name:l,searchable:!0,type:"text",label:H("serviceSheet.modalLGPInputCiticenSpace"),placeholder:H("serviceSheet.modalLGPInputCiticenSpacePlaceholder"),searchInputPlaceholder:H("global.search"),searchInputAriaLabel:H("global.search"),className:"xs:mt-0 md:mt-0 xl:mt-8",value:a,onChange:e=>{e[0]&&s(e[0].value)},hasError:!!(null==n?void 0:n.message),feedbackState:"danger",hasFeedback:!!(null==n?void 0:n.message),hideSectionNames:!0,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==n?void 0:n.message))}),children:(0,t.jsx)(p.DropdownSection,{name:H("serviceSheet.modalLGPInputCiticenSpace"),"aria-label":H("serviceSheet.modalLGPInputCiticenSpaceAriaLabel"),children:(null!=ei?ei:[]).map(e=>(0,t.jsx)(p.DropdownOption,{value:e.pointOfCareCode,selected:a===e.pointOfCareCode,children:e.pointOfCareName},e.pointOfCareCode))},"dropdown-points-of-care-".concat((0,V.A)()))})}}),(0,t.jsx)(p.InputText,{disabled:!0,label:H("serviceSheet.modalVideoCallInputLanguage"),placeholder:null==F||null==(m
1=F.services)||null==(u=m.listPointsOfCareLGP)||null==(d=u[0])?void 0:d.language,hasError:!!(null==(x=el.language)?void 0:x.message),feedbackState:"danger",hasFeedback:!!(null==(h=el.language)?void 0:h.message),hasIcon:!0,icon:"agora-line-lgp",className:"text-neutral-700",feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==(v=el.language)?void 0:v.message))}),...K("language")})]}),(0,t.jsxs)("div",{className:li().lgpFormLine,children:[(0,t.jsx)(p.InputDate,{id:"schedule-video-call-date-input",className:li().lgpDatePicker,"aria-label":"dateAppointment",name:"dateAppointment",value:J("dateAppointment"),startDate:E,endDate:W,disabledDates:Q,hasError:!!(null==el||null==(f=el.dateAppointment)?void 0:f.message),feedbackState:"danger",hasFeedback:!!(null==el||null==(b=el.dateAppointment)?void 0:b.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==el||null==(j=el.dateAppointment)?void 0:j.message))}),onChange:e=>{e.target.value&&(X("dateAppointment",e.target.value),$("dateAppointment",{message:void 0}))},required:!0,disabled:(null==k?void 0:k.length)===0,...en}),(0,t.jsx)(p.InputSelect,{searchable:!1,type:"text",label:H("serviceSheet.modalLGPInputTime"),placeholder:H("serviceSheet.modalLGPInputTimePlaceholder"),name:"time",value:J("time"),className:"xl:mt-8 mt-0",onChange:e=>{let l=e.find(e=>!0===e.selected);(null==l?void 0:l.value)&&(X("time",l.value),$("time",{message:void 0}))},ref:D,hasError:G.length>0&&!!(null==el||null==(C=el.time)?void 0:C.message),feedbackState:"danger",hasFeedback:G.length>0&&!!(null==el||null==(N=el.time)?void 0:N.message),hideSectionNames:!0,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==el||null==(w=el.time)?void 0:w.message))}),required:!0,disabled:(null==k?void 0:k.length)===0,children:(0,t.jsx)(p.DropdownSection,{name:H("serviceSheet.modalLGPInputTime"),"aria-label":H("serviceSheet.modalLGPInputTimePlaceholder"),children:G.map(e=>(0,t.jsx)(p.DropdownOption,{value:e,selected:e===J("time"),children:e},"slot-available-time-option-".concat((0,V.A)())))},"dropdown-time-".concat((0,V.A)()))})]}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(p.Checkbox,{hasError:!!(null==(_=el.terms)?void 0:_.message),feedbackState:"danger",hasFeedback:!!(null==el||null==(A=el.terms)?void 0:A.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:H("".concat(null==el||null==(S=el.terms)?void 0:S.message))}),onChange:e=>{e.target.value&&(X("terms",e.target.checked),$("terms",{message:void 0}))},checked:null!=(I=J("terms"))&&I,children:(0,t.jsx)(s.A,{content:null==L?void 0:L.terms,additionalClasses:li().customBenefit})})}),(0,t.jsxs)("div",{className:"flex gap-32 justify-end",children:[(0,t.jsx)(p.Button,{onClick:R,type:"button","aria-label":H("global.closeModal"),appearance:"link",className:"xl:block md:block hidden",children:H("global.cancel")}),(0,t.jsx)(ls.A,{size:"invisible",sitekey:"6Leq-9UUAAAAABWXbl_lrLQiZkmG0xiOHloQv2gc",onChange:e=>{e&&X("token",e)},ref:B}),(0,t.jsx)(p.Button,{disabled:!ee("terms")||!J("time"),type:"submit",hasIcon:!0,leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle",children:null==L?void 0:L.buttonLabel})]})]})},lg=e3.Ik().shape({name:e3.Yj().required("global.requeridField"),email:e3.Yj().required("global.requeridField").matches(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/g,{message:"serviceSheet.modalVideoCallInputInvalidEmail"}),dateAppointment:e3.Yj().required("global.requeridField"),phone:e3.Yj().required("global.requeridField").matches(/^(\d{9})/g,{message:"serviceSheet.modalVideoCallInputInvalidPhone"}),terms:e3.Yj().required("global.requeridField"),time:e3.Yj().required("global.requeridField")}),lv=(0,e2.t)(lg),lf=e=>{var l;let{modalMessages:a,modalClicks:s,hide:n}=e,{seoInfo:i}=(0,g.useContext)(e0.H),{globalState:r}=(0,g.useContext)(z.q),{t:o}=(0,y.Bd)(),[c,d]=(0,g.useState)("351"),[u,m]=(0,g.useState)(x.M.Form),[h,v]=(0,g.useState)([]),[f,b]=(0,g.useState)(""),{showLoader:j,hideLoader:N}=(0,p.useLoaderDialogContext)(),w=g.createRef(),_=(0,e1.mN)({mode:"onChange",defaultValues:{name:"",email:"",country:"",pointsOfCare:"",dateAppointment:"",language:"",phone:"",terms:!1,time:""},criteriaMode:"all",resolver:lv}),{handleSubmit:A,reset:S}=_,T=async e=>{var l,a,t,s;await (null==(l=w.current)?void 0:l.executeAsync());let n="+"+c+e.phone,d="".concat(lo(e.dateAppointment),"T").concat(e.time),u=h.find(e=>e.startDate.startsWith(d)),p={startTime:null==u?void 0:u.startDate,
1slotToken:null==u?void 0:u.slotToken,citizenName:e.name,citizenEmail:e.email,citizenPhone:n,citizenLanguage:null==r||null==(s=r.services)||null==(t=s.listPointsOfCareLGP)||null==(a=t[0])?void 0:a.language,additionalText:null==i?void 0:i.pagetitle,captchaToken:null==e?void 0:e.token};j({title:o("serviceSheet.modalPendingTitle"),subtitle:o("serviceSheet.modalPendingSubTitle")}),eV.postSubmitForm(p).then(async e=>{if(e.ok){var l;S(),N(),m(x.M.Success),null==w||null==(l=w.current)||l.reset()}else N(),m(x.M.Error),C.Ay.logError("Error fetching data from API",JSON.stringify(e))}).catch(e=>{var l;N(),m(x.M.Error),C.Ay.logError("Erro ao enviar o formul\xe1rio",e),null==w||null==(l=w.current)||l.reset()})};(0,g.useEffect)(()=>{S(),m(x.M.Form),v([]),b("")},[s]),(0,g.useEffect)(()=>{f&&I()},[f]);let I=()=>{let e=encodeURIComponent(new Date().toISOString().split("T")[0]);j({title:o("serviceSheet.modalPendingTitle")}),eV.getSlots(e,f).then(async e=>{if(e.ok){let l=await e.json();(null==l?void 0:l.slots.length)>0?(N(),v(l.slots)):(N(),m(x.M.Unavailable))}else N(),m(x.M.Unavailable)}).catch(e=>{N(),m(x.M.Unavailable),C.Ay.logError("Erro ao consultar datas dispon\xedveis",e)})};if(u!==x.M.Form){let e=null==a||null==(l=a.statusContent)?void 0:l.find(e=>e.type===u),s=(null==e?void 0:e.type)===x.M.Unavailable||(null==e?void 0:e.type)===x.M.Success?n:()=>{m(x.M.Form)};return e?(0,t.jsx)(e9.A,{...e,onClick:s}):(0,t.jsx)(e9.A,{type:x.M.Error,icon:"agora-solid-alert-triangle",title:o("serviceSheet.modalErrorTitle"),subTitle:o("serviceSheet.modalErrorSubTitle"),buttonLabel:o("serviceSheet.modalErrorButtonBackText"),onClick:n})}return(0,t.jsxs)("div",{className:li().modalContainer,children:[(0,t.jsxs)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-8 xl:!col-start-2 flex flex-col justify-center items-start text-neutral-900 pb-8",children:[(0,t.jsx)("p",{className:"xl:text-l-regular md:text-xl-bold text-l-bold xl:mb-0 md:mb-8 mb-16",children:o("serviceSheet.modalLGPTitle")}),(0,t.jsx)("h2",{className:"xl:text-xl-semibold md:text-l-semibold text-m-semibold xl:mb-16 md:mb-16 mb-8",children:null==i?void 0:i.pagetitle}),(0,t.jsx)("p",{className:"text-m-regular",children:null==a?void 0:a.fieldsRequired})]}),(0,t.jsx)("div",{className:"xs:col-span-full xs:col-start-1 md:col-span-full md:col-start-1 xl:col-span-8 xl:!col-start-2",children:(0,t.jsx)(e1.Op,{..._,children:(0,t.jsx)("form",{className:li().lgpVideoCallForm,onSubmit:A(T),noValidate:!0,children:(0,t.jsx)(lp,{seoInfo:i,modalMessages:a,setPhoneWithCode:d,availableSlots:h,recaptcha:w,setPointOfCareCode:b})})})})]})},lb=(e,l)=>{var a,t,s,n,i;if(l){let a=[];for(let n of l)for(let l of null!=(t=null==e?void 0:e.descriptions)?t:[])l.code===n.code&&(null==(s=l.name)?void 0:s.toLocaleLowerCase())===n.name.toLocaleLowerCase()&&l.description&&a.push(l.description);return null!=(n=a.join(" \n\n"))?n:""}return null!=(i=null==e||null==(a=e.descriptions)?void 0:a.map(e=>e.description).join(" \n\n"))?i:""},lj=e=>{var l,a,n,i;let{panelItem:r,modalMessages:o}=e,{show:c,hide:d}=(0,p.useModalContext)(),{globalState:u}=(0,g.useContext)(z.q),[m,x]=(0,g.useState)(0),{t:h}=(0,y.Bd)();return(0,t.jsx)("div",{className:"xl:pr-128 pb-128",children:r&&(0,t.jsxs)("div",{children:[(null==r?void 0:r.subtitle)&&(0,t.jsx)("h3",{className:"text-l-bold text-neutral-900 mb-32",children:null==r?void 0:r.subtitle}),(null==r?void 0:r.descriptions)&&(0,t.jsx)(s.A,{content:lb(r,null==u||null==(l=u.viewAnswerQuizz)?void 0:l.viewDescription),additionalClasses:eY().howCanUseDescription}),r.contacts&&(0,t.jsx)(lh,{phones:null==r||null==(a=r.contacts)?void 0:a.phones,email:null==r||null==(n=r.contacts)?void 0:n.email}),r.footerInfo&&(0,t.jsxs)("div",{className:"mt-64 grid gap-64",children:[(null==r||null==(i=r.contacts)?void 0:i.video)&&(0,t.jsxs)("div",{children:[(0,t.jsx)(lu,{iconString:r.contacts.video.icon}),(0,t.jsx)(s.A,{content:r.contacts.video.description}),(0,t.jsx)(p.Button,{appearance:"link",className:"w-fit !p-0 mt-16",hasIcon:!0,title:r.contacts.video.buttonName,onClick:()=>{var e;e=!!r.isLgp,x(m+1),e?c((0,t.jsx)(lf,{modalClicks:m+1,modalMessages:o,hide:d}),{closeButtonLabel:h("global.closeModal"),darkMode:!1}):c((0,t.jsx)(lc,{modalClicks:m+1,modalMessages:o,callType:e$.A,hide:d}),{closeButtonLabel:h("global.closeModal"),darkMode:!1})},trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:r.contacts.video.buttonName})]}),(0,t.jsx)(ld,{...r.footerInfo,callType:e$.B,modalMessages:o})]})]})})},lC=e=>{let{serviceChannels:l,modalMessages:a}=e;return(0,t.jsx)("div",{className:"customTabHowCanUse",children:(0,t.jsx)(p.Tabs,{children:l.map((e,l)=>{let s=e.verticalTabs.map((e,l)=>({text:e.title,withIcon:eK(e),leadingIcon:eK(e)?"agora-line-lgp":void 0,leadingIconHover:eK(e)?"agora-solid-lgp":void 0,content:(0,t.jsx)(lj,{panelItem:e,modalMessages:a},"key-".concat(e.title,"-").concat(l))}));return(0,t.jsxs)(p.Tab,{active:0===l,children:[(0,t.jsx)(p.TabHeader,{children:e.title}),(0,t.jsx)(p.TabBody,{className:"grid gap-16 px-32 pt-64 pb-128",children:(0,t.jsx)(eJ,{service:e,children:(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.PanelSwitcher,{data:s,modalCloseButtonLabel:"Close"})})})})]},null==e?void 0:e.title)})})})},lN=e=>{let{serviceChannels:l,modalMessages:a}=e,{show:n,hide:i}=(0,p.useModalContext)(),{globalState:o}=(0,g.useContext)(z.q),{seoInfo:c}=(0,g.useContext)(e0.H),[d,u]=(0,g.useState)(0),[m,x]=(0,g.useState)(0),[h,v]=(0,g.useState)(0);return(0,g.useEffect)(()=>
1{if(l){for(let e of l)if(e.type===el.j.VideoCall){let l=e.verticalTabs.findIndex(e=>{var l,a;return(null==(a=e.footerInfo)||null==(l=a.button)?void 0:l.url)===""});l>=0&&x(l)}}},[l]),(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"xs:!px-0 md:!px-64",children:(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.AccordionGroup,{children:null==l?void 0:l.map((e,l)=>{var r,x;return(0,t.jsx)(p.Accordion,{headingTitle:e.title,onClick:()=>{u(l)},className:eY().accordionStyle,defaultExpanded:d===l,headingLevel:"h2",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[e.notification&&(0,t.jsx)(p.StatusCard,{description:e.notification.description,variant:e.notification.type,title:e.notification.title}),(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[e.benefits?e.benefits.filter(e=>""!==e).map(e=>(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(p.Icon,{name:"agora-line-check","aria-hidden":!0,className:"mr-8"}),(0,t.jsx)(s.A,{content:e,additionalClasses:eY().customBenefit})]},"key-".concat(e))):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex flex-col mt-8 gap-8",children:e.verticalTabs.map(l=>{let r=e.type===el.j.VideoCall?e$.B:e$.A;return(0,t.jsx)(p.Button,{onClick:()=>{((e,l)=>{var r,d,u,m,x,g;v(h+1),n((0,t.jsx)("div",{className:"bg-white w-full h-full mb-104",children:e&&(0,t.jsxs)("div",{className:"w-full h-full",children:[(0,t.jsx)("h2",{className:"text-xl-bold text-primary-900 mb-32",children:e.title}),(0,t.jsxs)("div",{children:[(null==e?void 0:e.descriptions)&&(null==e?void 0:e.descriptions.length)>0&&(0,t.jsx)(s.A,{additionalClasses:eY().howCanUseDescription,content:lb(e,null==o||null==(r=o.viewAnswerQuizz)?void 0:r.viewDescription)}),(null==(d=e.contacts)?void 0:d.title)&&(0,t.jsx)(lh,{title:null==(u=e.contacts)?void 0:u.title,phones:null==(m=e.contacts)?void 0:m.phones,email:null==e||null==(x=e.contacts)?void 0:x.email}),(null==(g=e.contacts)?void 0:g.video)&&(0,t.jsxs)("div",{className:"mt-32 flex flex-col gap-32",children:[(0,t.jsx)(lu,{iconString:e.contacts.video.icon}),(0,t.jsxs)("div",{className:"flex flex-col justify-center items-start text-neutral-900 md:pb-8",children:[(0,t.jsx)("p",{className:"text-l-regular",children:l===e$.A?null==a?void 0:a.descriptionA:null==a?void 0:a.descriptionB}),(0,t.jsx)("h2",{className:"text-xl-semibold mb-16",children:null==c?void 0:c.pagetitle}),(0,t.jsx)("p",{className:"text-m-regular",children:null==a?void 0:a.fieldsRequired})]}),(0,t.jsx)(p.Accordion,{expanded:!0,headingTitle:(0,et.t)("serviceSheet.modalMobileVideoCallTitleAccordion"),children:e.isLgp?(0,t.jsx)(lf,{modalClicks:h+1,modalMessages:a,hide:i}):(0,t.jsx)(lc,{isMobile:!0,callType:l,modalMessages:a,modalClicks:h+1,hide:i})})]})]},"key-".concat(e.title))]})}),{closeButtonLabel:(0,et.t)("global.closeModal"),darkMode:!1})})(l,r)},appearance:"link",variant:"neutral",fullWidth:!0,hasIcon:!0,className:eY().subButton,trailingIconHover:"agora-solid-arrow-right-circle",trailingIcon:"agora-line-arrow-right-circle",children:(0,t.jsxs)("p",{className:"flex items-center",children:[eK(l)&&(0,t.jsx)(p.Icon,{name:"agora-line-lgp","aria-hidden":!0,className:"mr-8"}),l.title]})},"key-".concat(l.title))})}),(0,t.jsx)("div",{className:"ml-16",children:(null==(r=e.verticalTabs[m])?void 0:r.footerInfo)&&(0,t.jsx)("div",{className:"mt-64 mb-32",children:(0,t.jsx)(ld,{...null==(x=e.verticalTabs[m])?void 0:x.footerInfo,callType:e$.B,modalMessages:a})})})]})]})]})},e.title)})})})})},lw=e=>{var l;let{serviceChannels:a}=e,{globalState:s}=(0,g.useContext)(z.q),{width:n}=(0,ey.A)(),[i,r]=(0,g.useState)(eU),[o,c]=(0,g.useState)([]),d=n<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&n>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));(0,g.useEffect)(()=>{eV.getMessages().then(async e=>{r(await e.json())}).catch(e=>{C.Ay.logError("Erro ao buscar o conte\xfado dos modais",e)})},[]),(0,g.useEffect)(()=>{c(u())},[a,null==s||null==(l=s.viewAnswerQuizz)?void 0:l.viewDescription]);let u=()=>{var e;let l=[...a],t=null==s||null==(e=s.viewAnswerQuizz)?void 0:e.viewDescription,n=e=>{for(let l of e.verticalTabs)l.showVerticalTab=!0};if(t)return l.filter(e=>((e,l)=>{let a=!1;for(let t of e.verticalTabs){let e=!!t.contacts||m(t,l);t.showVerticalTab=e,e&&(a=!0)}return a})(e,t));for(let e of l)n(e);return l},m=(e,l)=>{var a,t;let s=!1;for(let n of null!=(a=e.descriptions)?a:[])for(let e of l)if(n.code===e.code&&(null==(t=n.name)?void 0:t.toLocaleLowerCase())===e.name.toLocaleLowerCase()&&n.description){s=!0;break}return s};return(0,t.jsx)(t.Fragment,{children:d?(0,t.jsx)(lN,{serviceChannels:o,modalMessages:i}):(0,t.jsx)(lC,{serviceChannels:o,modalMessages:i})})};var l_=a(31546),lA=a(60241),ly=a.n(lA),lS=a(5546),lT=a.n(lS),lI=a(70656),lk=a.n(lI);let lL=e=>{let{question:l,numberQuestion:a,answer:n,onAnswer:i}=e,r=e=>{if(e.target){var a,t;let s=l.options.find(l=>e.target.value===l.text);i({label:null!=(a=null==s?void 0:s.text)?a:"",resp:null!=(t=null==s?void 0:s.resp)?t:[]})}};return(0,t.jsxs)("div",{children:[(null==l?void 0:l.text)&&(0,t.jsx)(s.A,{additionalClasses:lk().questionTitle,content:l.text}),(0,t.jsx)(p.QuizOptions,{children:(0,t.jsxs)("fieldset",{className:"grid xs:grid-cols-1 md:!grid-cols-2 xl:!grid-cols-2 w-full gap-x-16 gap-y-8",children:[(0,t.jsx)("legend",{children:(0,t.jsx)(s.A,{additionalClasses:lk().questionTitleRadio,content:"".concat(a,". ").concat(null==l?void 0:l.title)})}),null==l?void 0:l.options.map(e=>(0,t.jsx)(p.QuizOption,{children:(0,t.jsx)(p.RadioButton,{label:e.text,value:e.text,onChange:r,checked:(null==n?void 0:n.label)===e.text},e.text)},"option-".concat(e.text)))]})})]})},lB=e=>{var l,a;let{questions:n,answers:i,onEdit:r,showSummary:o,currentQuestion:c}=e,{t:d}=(0,y.Bd)();return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(null==(l=n.at(-1))?void 0:l.text)&&(0,t.jsx)(s.A,{additionalClasses:lk().questionTitle,content:null==(a=n.at(-1))?void 0:a.text}),(0,t.jsx)("p",{className:"text-m-semibold text-primary-900",children:d("serviceSheet.quizz.summary")}
1),(0,t.jsx)("ul",{children:n.map((e,l)=>{var a;return(l<c||o)&&(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex xs:flex-wrap xs:items-center xs:justify-between md:flex-row md:justify-between md:items-center xl:justify-between xl:flex-row xl:h-[44px] xl:items-center",children:[(0,t.jsx)("p",{children:null==(a=i[l])?void 0:a.label}),(0,t.jsx)(p.Button,{appearance:"link",hasIcon:!0,className:"!p-0 !decoration-primary-600 hover:!decoration-primary-900",leadingIcon:"agora-line-arrow-left-anchor",leadingIconHover:"agora-line-arrow-left-anchor",onClick:()=>{r(l)},children:d("serviceSheet.quizz.btnEdit")})]})},"".concat(e.id,"-").concat(l))})})]})},lP=e=>{let{questions:l,showResume:a}=e,{show:s,hide:n}=(0,p.usePopupContext)(),{globalState:i,setGlobalState:r}=(0,g.useContext)(z.q),{t:o}=(0,y.Bd)(),[c,d]=(0,g.useState)(0),[u,m]=(0,g.useState)(!1),[x,h]=(0,g.useState)(!1),{showLoader:v,hideLoader:f}=(0,p.useLoaderDialogContext)(),[b,j]=(0,g.useState)(Array(null==l?void 0:l.length).fill(null)),C=()=>{v({title:o("serviceSheet.modalPendingTitle"),subtitle:o("serviceSheet.modalPendingSubTitle")}),setTimeout(()=>{f()},2e3)},N=(u||a)&&b.some(e=>null!==e&&c>0),w=b.filter(e=>null!==e).length/l.length*10;return(0,t.jsxs)("div",{className:"col-span-full flex flex-col gap-32 bg-primary-100 w-full xs:p-32 md:p-64 xl:p-64",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(p.ProgressBarGroup,{hideLabel:!0,hidePercentageValues:!0,children:l.map((e,l)=>(0,t.jsx)(p.ProgressBar,{current:l===c,hidePercentageValue:!0,max:10,value:l<c?10:l===c?w:0},"$key-".concat((0,V.A)())))}),(0,t.jsx)("p",{className:"text-neutral-700 text-s-regular",children:"".concat(l.length===c?c:c+1," / ").concat(l.length)})]}),!u&&(0,t.jsx)(lL,{question:l[c],answer:b[c],onAnswer:e=>{let l=[...b];l[c]=e,j(l)},numberQuestion:c+1}),N&&(0,t.jsx)(lB,{questions:l,answers:b,onEdit:e=>{s((0,t.jsxs)("div",{className:"flex flex-col gap-32",children:[(0,t.jsx)("p",{className:"text-m-regular text-primary-900",children:(0,t.jsx)(y.x6,{i18nKey:"serviceSheet.quizz.modalDescription"})}),(0,t.jsxs)("div",{className:"flex justify-end items-center gap-32",children:[(0,t.jsx)(p.Button,{appearance:"link",onClick:n,children:o("serviceSheet.quizz.modalCancel")}),(0,t.jsx)(p.Button,{onClick:()=>{(e=>{let l=[...b];for(let a=e;a<l.length;a++)l[a]=null;h(!1),j(l),d(e),m(!1),n()})(e)},children:o("serviceSheet.quizz.modalYes")})]})]}),{title:o("serviceSheet.quizz.modalTitle"),className:"w-[592px]"})},currentQuestion:c,showSummary:u}),(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("div",{className:"w-full flex xs:gap-8 xs:flex-col md:flex-row md:justify-between xl:flex-row xl:justify-between",children:[(0,t.jsx)(p.Button,{disabled:c<=0,className:c<=0?"!bg-neutral-200":"!bg-neutral-700 ",onClick:()=>{d(e=>u?l.length-1:e-1),h(!1),m(!1)},hasIcon:!0,leadingIcon:"agora-line-arrow-left-circle",leadingIconHover:"agora-line-arrow-left-circle",children:o("serviceSheet.quizz.btnPrevious")}),c<l.length-1&&(0,t.jsx)(p.Button,{onClick:()=>{d(e=>e+1)},disabled:!b[c],hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",children:o("serviceSheet.quizz.btnNext")}),c===l.length-1&&!u&&(0,t.jsx)(p.Button,{onClick:()=>{C(),m(!0),h(!0);let e=[],a=[];for(let t of(1===l.length&&d(e=>e+1),b))(null==t?void 0:t.resp)&&function(l){for(let t of null!=l?l:[])a.push({name:t.name,code:t.id}),(null==i?void 0:i.serviceChannels)&&function(l,a){for(let t of l)t.verticalTabs&&function(l,a){for(let t of l)t.descriptions&&function(l,a){for(let s of l){var t;s.code===a.id&&(null==(t=s.name)?void 0:t.toLocaleLowerCase())===a.name.toLocaleLowerCase()&&function(l){var a;for(let t of null!=(a=l.whoRelation)?a:[])e.push(t)}(s)}}(t.descriptions,a)}(t.verticalTabs,a)}(i.serviceChannels,t)}(null==t?void 0:t.resp);let t=Array.from(e);r(e=>({...e,viewAnswerQuizz:{viewDescription:a,viewWhoRelation:t}}))},disabled:!b[c],hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",children:o("serviceSheet.quizz.btnCompleted")}),u&&(0,t.jsx)(p.Button,{disabled:!!(u||!b[c]),hasIcon:!0,trailingIcon:"agora-line-arrow-down-circle",trailingIconHover:"agora-line-arrow-down-circle",children:o("serviceSheet.quizz.btnShowInformation")})]}),x&&(0,t.jsx)("div",{className:"w-full md:self-start xl:self-start",children:(0,t.jsx)(p.Button,{appearance:"link",hasIcon:!0,className:"!p-0",leadingIcon:"agora-line-refresh-ccw",leadingIconHover:"agora-solid-refresh-ccw",onClick:()=>{C(),m(!1),j(Array(l.length).fill(null)),d(0),h(!1),r(e=>({...e,viewAnswerQuizz:void 0}))},children:o("serviceSheet.quizz.btnResetQuestions")})})]})]})};var lM=a(82e3),lF=a.n(lM),lR=a(95098),lD=a.n(lR);let lH=e3.Ik({satisfaction:e3.ai().required("global.requeridField").min(1,"global.requeridField").max(5,"global.requeridField"),experience:e3.ai().required("global.requeridField").min(1,"global.requeridField").max(5,"global.requeridField"),waitingTime:e3.zM().default(!1),courtesy:e3.zM().default(!1),service:e3.zM().default(!1)}).test("optional-improvement-required","global.requeridField",function(e){var l;let a=null!=(l=null==e?void 0:e.satisfaction)?l:0;return!(a>0)||!(a<5)||null!=e&&!!e.waitingTime||null!=e&&!!e.courtesy||null!=e&&!!e.service||this.createError({path:"waitingTime",message:"global.requeridField"})}),lE=(0,e2.t)(lH),lq={postSubmitForm:async function e(e){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:"/attendance-evaluation",body:e}),headers:{"Content-Type":"application/json"}})}},lz=e=>{let{name:l,control:a,question:n}=e;return n?(0,t.jsx)("div",{className:"flex flex-col gap-16",children:(0,t.jsx)(e1.xI,{name:l,control:a,render:e=>{var l;let{field:{value:a,onChange:i},fieldState:{error:r}}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.A,{additionalClasses:lD().feedbackQuestion,content:n.question}),(null==(l=n.stars)?void 0:l.length)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.RatingIcons,{value:a,onChange:e=>{e>0&&i(e)},feedbackState:"danger",hasError:!!(null==r?void 0:r.message),hasFeedback:!!(null==r?void 0:r.message),feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:(0,et.t)("".concat(null==r?void 0:r.message))}),children:n.stars.map(e=>(0,t.jsx)(p.Icon,{name:"agora-line-star","aria-label":e},(0,V.A)()))}),null!=a&&(0,t.jsx)("p",{className:"text-neutral-900 text-s-medium",children:n.stars[a-1]||""})]})]})}})}):null};var lW=a(36735),lO=a(9956),lG=a.n(lO),lV=a(9174),lU=a.n(lV),lQ=a(39146),lY=a(94047),lJ=a(35666),lK=a.n(lJ),lZ=a(90331),lX=a(93158),l$=a.n(lX);let l0=e=>{let{title:l,newsRelated:a}=e,{t:s}=(0,y.Bd)();return(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4 xl:col-start-9 xl:row-start-3 customCardLink customCardLinkNews",children:[(0,t.jsx)(n.A,{title:l,scribbleName:"agora-bold-line",customClass:"!text-l-light xl:-mt-16 mb-32",customClasseScribble:"h-fit"}),a.map(e=>{var l,a,n;
1return(0,t.jsx)(p.CardLinks,{className:l$().newsRelated,category:s("global.news"),date:e._source.publicationDate?(0,eM.A)(e._source.publicationDate,"".concat(s("news.datePattern")),{locale:(0,lZ.J)("".concat(s("news.locale")))}):"",headingLevel:"h3",image:e._source.image?{src:null==(l=e._source.image)?void 0:l.url,alt:null==(a=e._source.image)?void 0:a.description}:void 0,mainAnchor:{children:null==(n=e._source)?void 0:n.title,href:e._source.url,target:"_self"}},(0,V.A)())})]})};var l1=a(10934),l2=a.n(l1),l3=a(37741),l6=a.n(l3),l4=a(40358),l9=a.n(l4),l8=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.LinkedIn="linkedin",e.Email="email",e.Whatsapp="whatsapp",e}({});function l7(e){let{newsDetailContent:l,socialMediaIcon:a}=e,{t:s}=(0,y.Bd)(),n=s("news.socialMediaShare.emailBody"),i=s("global.seoTitle"),r="https://www.gov.pt"+l.url,[o,c]=(0,g.useState)(!1),d=()=>{var e;let t={[l8.Twitter]:"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(l.title),"&url=").concat(encodeURIComponent(r)).c
1oncat((null==(e=l.image)?void 0:e.url)?"&card=summary_large_image&image=".concat(encodeURIComponent(l.image.url)):""),[l8.Facebook]:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(r)),[l8.LinkedIn]:"https://linkedin.com/shareArticle?url=".concat(encodeURIComponent(r)),[l8.Email]:(()=>{let e="".concat(i," - ").concat(l.title),a=n.replace("[TITLE]",l.title).replace("[LINK]",r).replace("[DOMAIN]",i);return"mailto:?subject=".concat(encodeURIComponent(e),"&body=").concat(encodeURIComponent(a))})(),[l8.Whatsapp]:"https://wa.me/?text=".concat(encodeURIComponent("".concat(l.title,"\n").concat(l.longTitle,"\n").concat(r)))}[a.name.toLowerCase()];t&&window.open(t,"_blank","noopener,noreferrer")},m=()=>{c(!o)};return(0,t.jsx)(t.Fragment,{children:a.name===s("news.socialMediaShare.socialMediaOptions.whatsapp")?(0,t.jsx)(p.Button,{id:"share-".concat(a.name,"-btn"),appearance:"link",variant:"primary",className:"p-16",onMouseEnter:m,onMouseLeave:m,onClick:d,children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(u(),{src:o?"/assets/images/agora-solid-whatsapp.svg":"/assets/images/agora-line-whatsapp.svg",alt:a.name,"aria-hidden":!0,height:22,width:22,className:"mr-8"}),(0,t.jsx)("span",{children:a.name})]})}):(0,t.jsx)(p.Button,{id:"share-".concat(a.name,"-btn"),appearance:"link",variant:"primary",className:"p-16",hasIcon:!0,onClick:d,leadingIcon:a.icon,leadingIconHover:a.iconHover?a.iconHover:a.icon,children:a.name})})}var l5=a(60734),ae=a.n(l5),al=a(93012),aa=a.n(al),at=a(97414),as=a.n(at),an=a(10135),ai=a.n(an),ar=a(48018),ao=a.n(ar);let ac=e=>{let{children:l,...a}=e;return(0,t.jsx)("div",{className:"p-32 w-full flex justify-start gap-24",children:(0,t.jsx)("div",{className:"p-16",children:(0,t.jsx)(p.List,{...a,listStyle:"number",children:l})})})},ad={src:"/_next/static/media/promotional-spotlight.b90de5a9.png"};var au=a(90347),am=a.n(au);let ax=e=>{let{cards:l,footLink:a,title:n}=e,{t:i}=(0,y.Bd)();return(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)("h3",{children:(0,t.jsx)(s.A,{additionalClasses:am().customRelatedServicesCardsTitle,content:n})})}),null==l?void 0:l.filter(e=>e.title.replace(" ","").length>0).map(e=>{var l;return(0,t.jsx)(p.CardArticle,{variant:"indented",className:"xs:h-[136px] xs:col-span-full md:col-span-full md:h-[220px] md:!min-h-[184px] xl:h-[220px] xl:col-span-4 xl:!min-h-[184px]",mainAnchor:{title:"".concat(i("global.openPage")," ").concat(e.title),href:null==(l=e.link)?void 0:l.url,className:"-ml-[20px]",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle"},title:(0,t.jsx)(s.A,{content:e.title,additionalClasses:am().customRelatedServicesCardsCardTitle}),headingLevel:"h4"},"key-".concat(e.title))}),(0,t.jsx)("div",{className:"col-span-full",children:(null==a?void 0:a.url)&&(null==a?void 0:a.label)&&(0,t.jsx)(p.Anchor,{style:{width:"fit-content"},hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:a.url,appearance:"link",children:a.label})})]})};var ah=a(58905),ap=a.n(ah);let ag=e=>{let{cards:l,footLink:a,title:n}=e,{t:i}=(0,y.Bd)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(s.A,{additionalClasses:ap().customRelatedGuidesCardsTitle,content:n})}),null==l?void 0:l.map(e=>{var l,a,s;return(0,t.jsx)(p.CardArticle,{variant:"indented",className:"xs:col-span-full md:col-span-full xl:col-span-7 text-m-regular",image:{src:null!=(s=null==(l=e.backgroundImage)?void 0:l.url)?s:""},subtitle:"",pill:{variant:"informative"},headingLevel:"h3",title:(0,t.jsx)("span",{className:"text-l-bold text-neutral-900",children:e.title}),mainAnchor:{title:"".concat(i("global.openPage")," ").concat(e.title),href:null==(a=e.link)?void 0:a.url,className:"-ml-[20px]",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle"},children:e.description},"key-".concat(e.description))}),(null==a?void 0:a.url)&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:null==a?void 0:a.url,appearance:"link",className:"mr-auto",children:null==a?void 0:a.label})})]})};var av=a(92822),af=a.n(av),ab=a(66204),aj=a.n(ab),aC=a(53207);let aN=e=>{let{links:l,cards:a}=e,s=(0,g.useRef)(null),{width:n}=(0,ey.A)(),i=n<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&n>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));return(0,g.useEffect)(()=>{s.current&&n>=Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&(s.current.style.width=(0,aC.A)(n,Number("1440"),Number("1216"),Number("497"),Number("376")))},[n]),(0,t.jsx)(t.Fragment,{children:i?(0,t.jsx)("div",{className:"col-span-full -mt-32",children:l&&(0,t.jsx)(p.CardHeroSitemap,{id:"SearchHeroMap",className:"xs:!pt-64 md:!pt-96",highlightedLink:{children:null==a?void 0:a.anchor,href:"#find-services-section",hasIcon:!0,trailingIcon:"agora-line-arrow-down-anchor",trailingIconHover:"agora-solid-arrow-down-anchor",onClick:e=>{(0,eC.A)("find-services-section",e)}},anchors:l,title:a.title})}):(0,t.jsx)(r.A,{isMainWrapper:!1,children:(0,t.jsx)("div",{className:"col-start-9 col-span-4 -mt-[250px] z-50",children:(0,t.jsx)("div",{ref:s,children:l&&(0,t.jsx)(p.CardHeroSitemap,{id:"SearchHeroMap",className:"",highlightedLink:{children:null==a?void 0:a.anchor,href:"#find-services-section",hasIcon:!0,trailingIcon:"agora-line-arrow-down-anchor",trailingIconHover:"agora-solid-arrow-down-anchor",onClick:e=>{(0,eC.A)("find-services-section",e)}},anchors:l,title:a.title})})})})})};
1var aw=a(13114),a_=a(69010),aA=a.n(a_),ay=a(60244),aS=a.n(ay);let aT=e=>{let{service:l}=e,[a,n]=(0,g.useState)(0),[i,o]=(0,g.useState)(0),[c,d]=(0,g.useState)(eU),{width:u}=(0,ey.A)(),m=u<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&u>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px","")),{show:x,hide:h}=(0,p.useModalContext)();(0,g.useEffect)(()=>{eV.getMessages().then(async e=>{d(await e.json())}).catch(e=>{C.Ay.logError("Erro ao buscar o conte\xfado dos modais",e)})},[]);let v=e=>{o(i+1),x((0,t.jsx)(lc,{callType:e,modalMessages:c,modalClicks:i,hide:h}),{closeButtonLabel:(0,et.t)("global.closeModal"),darkMode:!1})},f=()=>{v(e$.A)};return(0,t.jsx)(t.Fragment,{children:m?l&&(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"xs:!px-0 md:!px-64",children:(0,t.jsx)(p.AccordionGroup,{className:"col-span-full",children:l.map((e,l)=>{var i;return(0,t.jsx)(p.Accordion,{headingTitle:e.title,onClick:()=>{n(l)},className:eY().accordionStyle,expanded:a===l,headingLevel:"h2",children:(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 mt-8",children:(0,t.jsxs)("div",{className:"xs:col-span-4 md:col-span-8 xl:p-32 gap-64 flex flex-col",children:[(0,t.jsx)(p.List,{listStyle:"icon",icon:"agora-line-check",children:null==e?void 0:e.list.map(e=>(0,t.jsx)("li",{className:"mt-8",children:(0,t.jsx)(s.A,{content:e,additionalClasses:eY().howCanUseDescription})},"li-".concat(e)))}),(null==e?void 0:e.description)&&(0,t.jsx)(s.A,{content:null==e?void 0:e.description,additionalClasses:eY().howCanUseDescription}),(0,t.jsx)("div",{children:(0,t.jsx)(p.Button,{variant:"primary",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:null==e||null==(i=e.button)?void 0:i.label})})]})})})}
1,e.title)})})}):(0,t.jsx)(p.Tabs,{children:null==l?void 0:l.map(e=>{var l,a,n,i,o;return(0,t.jsxs)(p.Tab,{children:[(0,t.jsx)(p.TabHeader,{children:e.title}),(0,t.jsx)(p.TabBody,{children:(0,t.jsx)(r.A,{isMainWrapper:!1,children:(0,t.jsxs)("div",{className:eY().serviceChannels,children:[(0,t.jsx)(p.List,{listStyle:"icon",icon:"agora-line-check",children:null==(l=e.list)?void 0:l.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(s.A,{content:e,additionalClasses:eY().howCanUseDescription})},"li-".concat(e)))}),(null==e?void 0:e.description)&&(0,t.jsx)(s.A,{content:null==e?void 0:e.description,additionalClasses:eY().howCanUseDescription}),(null==e||null==(a=e.link)?void 0:a.label)&&(0,t.jsx)("div",{children:(0,t.jsx)(p.Button,{className:"-ml-16",appearance:"link",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:null==e||null==(n=e.link)?void 0:n.label})}),(null==e?void 0:e.video)&&(0,t.jsxs)("div",{children:[e.video.icon&&(0,t.jsx)("div",{className:"w-56 h-56 border-2 border-primary-300 rounded-8 p-16 mb-16",children:(0,t.jsx)(p.Icon,{name:e.video.icon,"aria-hidden":!0})}),(0,t.jsx)(s.A,{content:e.video.description}),(0,t.jsx)(p.Button,{appearance:"link",className:"w-fit !p-0 mt-16",hasIcon:!0,title:e.video.buttonName,onClick:f,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:e.video.buttonName})]}),((e,l)=>{let a=l?()=>{(e=>{if(e){var l;null==(l=globalThis.window)||l.location.replace(e)}})(l)}:()=>{v(e$.B)};return e&&(0,t.jsx)(p.Button,{className:"w-fit",onClick:a,variant:"primary",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:e})})(null==e||null==(i=e.button)?void 0:i.label,null==e||null==(o=e.button)?void 0:o.url)]})})})]},e.title)})})})};var aI=a(9992),ak=a.n(aI);function aL(e){return/https:\/\//i.test(e)}var aB=a(6418),aP=a.n(aB),aM=a(19452),aF=a.n(aM);let aR=e=>{let{children:l,variant:a="default",customClass:s="",id:n,backgroundImageUrl:i}=e;return(0,t.jsx)("article",{id:n,suppressHydrationWarning:!0,style:"heading"===a?{"--image-url":"url(".concat(i,")")}:void 0,className:"scroll-mt-256 mt-16 ".concat(aF()[a]," ").concat(s),children:l})};var aD=a(76865),aH=a(78185),aE=a(94382),aq=a.n(aE),az=a(47816),aW=a(91370),aO=a.n(aW);let aG=e=>{let{placeholder:l,onChange:a}=e;return(0,t.jsx)(p.InputSearch,{required:!1,placeholder:l,onChange:e=>{null==a||a(e.target.value)}})};var aV=a(39926),aU=a.n(aV);function aQ(e){let{body:l,header:a}=e,s={verticalAlign:"top",textAlign:"left",justifyContent:"flex-start"},n={width:"50%"},i={"aria-label":"Table general",children:[(0,t.jsx)(p.TableHeader,{children:(0,t.jsx)(p.TableRow,{children:a.map(e=>(0,t.jsx)(p.TableHeaderCell,{children:e},e))})},"header"),(0,t.jsx)(p.TableBody,{children:l.map((e,l)=>(0,t.jsx)(p.TableRow,{children:e.columnBody.map(e=>(0,t.jsx)(p.TableCell,{headerLabel:a[l],style:s,children:(0,t.jsx)("div",{style:n,children:e})},e))},"key-table-row-".concat(e.columnBody[l])))},"body")]};return(0,t.jsx)(p.Table,{...i,tabletLayout:"list"})}var aY=a(68674),aJ=a.n(aY);let aK={getServices:async function e(e){let l=await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"GET",urlPath:"services?pointOfCare=".concat(e)}),headers:{"Content-Type":"application/json"}});if(!l.ok)return void C.Ay.logError("Error fetching services for point of care ".concat(e,": ").concat(l.statusText));try{return await l.json()}catch(e){C.Ay.logError(e)}},getDivisions:async function e(e){let l=await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"GET",urlPath:"tickets?pointOfCare=".concat(e)}),headers:{"Content-Type":"application/json"}});if(!l.ok)return void C.Ay.logError("Error fetching divisions for point of care ".concat(e,": ").concat(l.statusText));try{return await l.json()}catch(e){C.Ay.logError(e)}},postDivisionSubmitForm:async function e(e){return await fetch("/api/generic-middleware",{method:"POST",body:JSON.stringify({method:"POST",urlPath:"tickets",body:e}),headers:{"Content-Type":"application/json"}})}};var aZ=a(16738),aX=a.n(aZ);let a$=e=>{let{name:l,logoUrl:a}=e;return(0,t.jsx)("div",{id:"PointOfCareBanner",className:aX().imageContainer,children:(0,t.jsx)(p.CardGeneral,{variant:"white",titleText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u(),{src:null!=a?a:"/assets/images/defaultLogo.svg",alt:"Log\xf3tipo ".concat(l),width:10,height:10,className:"h-56 w-auto mt-16 mr-16"}),(0,t.jsx)("h3",{className:"text-m-bold pt-32",children:l})]}),descriptionText:""})})};var a0=a(92716),a1=a.n(a0);let a2=e=>{let{cards:l,labelServices:a,onCardClick:s}=e,{t:n}=(0,y.Bd)();return(0,t.jsx)("div",{className:"col-span-full grid xs:!grid-cols-1 md:!grid-cols-2 xl:!grid-cols-4 xs:gap-16 md:gap-32",children:(0,t.jsx)("ul",{className:"contents",children:l.map((e,l)=>{var i;return(0,t.jsx)("li",{className:a1().cardItem,children:(0,t.jsx)("div",{className:"customCardGeneral",children:(0,t.jsx)(p.CardGeneral,{isBlockedLink:!0,descriptionText:"",titleText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u(),{src:null!=(i=e.logo)?i:"/assets/images/defaultLogo.svg",alt:e.name,width:10,height:10,className:"h-56 w-auto my-16 mr-16"}),(0,t.jsx)("h3",{className:"text-m-bold text-neutral-900",children:e.name})]}),anchor:{href:"#PointOfCareBanner",target:"_self",children:null!=a?a:n("localCareDetails.gridContent.serviceButtonLabel"),hasIcon:!0,appearance:"link",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",trailingIconActive:"agora-solid-arrow-right-circle","aria-label":"".concat(null!=a?a:n("localCareDetails.gridContent.serviceButtonLabel")," ").concat(e.name),onClickCapture:l=>{l.preventDefault(),s(e)}}})})},"".concat(e.name,"-").concat(l))})})})};var a3=a(92430),a6=a.n(a3),a4=function(e){return e.service="service",e.division="division",e}({}),a9=function(e){return e.Email="EMAIL",e.Sms="SMS",e}({}),a8=function(e){return e.success="SUCCESS",e.failure="ERROR",e}({}),a7=a(40491),a5=a(2293);let te=(e,l)=>{var a;return null!=(a=null==l?void 0:l.filter(l=>l.type===e))?a:[]},tl=e=>{let{item:l,labelServicePage:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col pb-16",children:[l.description&&(0,t.jsx)(s.A,{content:l.description}),l.url&&a&&(0,t.jsx)("div",{className:"flex items-start pt-32",children:(0,t.jsx)(p.Anchor,{href:l.url,appearance:"link",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",children:a})})]})},ta=e=>{let{items:l}=e;return(0,t.jsx)(t.Fragment,{children:l.map(e=>{let{label:l,value:a}=e;return a?(0,t.jsxs)(g.Fragment,{children:[(0,t.jsx)("span",{className:"text-s-medium text-primary-900",children:l}),(0,t.jsx)("span",{className:"text-m-regular text-primary-900 text-left",children:a})]},l):null})})},tt=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/g,ts=/^(\d{9})/g,tn=e3.Ik().shape({notificationMethod:e3.gl().oneOf([a9.Sms,a9.Email]).required("global.requeridField"),notificationEmail
1:e3.Yj().when("notificationMethod",{is:a9.Email,then:e=>e.required("global.requeridField").matches(tt,{message:"serviceSheet.modalVideoCallInputInvalidEmail"}),otherwise:e=>e.notRequired().strip()}),notificationPhone:e3.Yj().when("notificationMethod",{is:a9.Sms,then:e=>e.required("global.requeridField").matches(ts,{message:"serviceSheet.modalVideoCallInputInvalidPhone"}),otherwise:e=>e.notRequired().strip()}),token:e3.Yj().notRequired()}),ti=(0,e2.t)(tn),tr="portal-unico-ticket-device-id",to=e=>{var l,a,s,n;let{labels:i,divisionDetails:r,entityName:o,setScreen:c}=e,{showLoader:d,hideLoader:u}=(0,p.useLoaderDialogContext)(),{t:m}=(0,y.Bd)(),{seoInfo:h}=(0,g.useContext)(e0.H),[v,f]=(0,g.useState)("351"),b=g.createRef(),j={notificationMethod:a9.Sms,notificationEmail:"",notificationPhone:"",entityId:"",localId:"",serviceId:"",token:""},{handleSubmit:N,control:w,register:_,setValue:A,clearErrors:S,formState:{errors:T}}=(0,e1.mN)({mode:"onChange",reValidateMode:"onChange",resolver:ti,defaultValues:j,shouldUnregister:!0}),I=(0,e1.FH)({control:w,name:"notificationMethod"})===a9.Sms,k=async e=>{var l;await (null==(l=b.current)?void 0:l.executeAsync());let a="+"+v+e.notificationPhone,t={institutionId:null==r?void 0:r.institutionId,entityId:null==r?void 0:r.entityId,localId:null==r?void 0:r.localId,serviceId:null==r?void 0:r.serviceId,deviceId:(()=>{let e=globalThis.localStorage.getItem(tr);if(e)return e;let l=(0,V.A)();return globalThis.localStorage.setItem(tr,l),l})(),notificationMethod:e.notificationMethod,entityName:o,serviceName:null==r?void 0:r.name,localName:null==h?void 0:h.pagetitle,token:e.token,...I?{notificationPhone:a}:{notificationEmail:e.notificationEmail}};d({title:m("serviceSheet.modalPendingTitle"),subtitle:m("serviceSheet.modalPendingSubTitle")}),aK.postDivisionSubmitForm(t).then(async e=>{var l,a;e.ok?(u(),(await e.json()).status===a8.failure?c(x.M.Error):c(x.M.Success),null==b||null==(l=b.current)||l.reset()):(C.Ay.logError("Error fetching data from API",JSON.stringify(e)),u(),c(x.M.Error),null==b||null==(a=b.current)||a.reset())}).catch(e=>{var l;C.Ay.logError(m("api.feedback.error.message")+" ",e),u(),c(x.M.Error),null==b||null==(l=b.current)||l.reset()})},L=e=>{e.code&&f(e.code)};return(0,t.jsx)("div",{className:"flex flex-col gap-8 customRadioButtomTicket",children:(0,t.jsxs)("form",{onSubmit:N(k),noValidate:!0,children:[(0,t.jsx)(e1.xI,{name:"notificationMethod",control:w,render:e=>{let{field:{name:l,value:a,onChange:s}}=e;return(0,t.jsxs)(p.RadioButtonGroup,{name:l,onChange:e=>{((e,l)=>{let a=e.target.value;l(a),a===a9.Email?(A("notificationPhone",""),S("notificationPhone")):(A("notificationEmail",""),S("notificationEmail"))})(e,s)},children:[(0,t.jsx)(p.RadioButton,{label:null==i?void 0:i.t23_010,value:a9.Sms,checked:a===a9.Sms}),(0,t.jsx)(p.RadioButton,{label:null==i?void 0:i.t23_011,value:a9.Email,checked:a===a9.Email})]})}}),(0,t.jsxs)("div",{className:"grid grid-cols-[max-content_auto] gap-16",children:[!I&&(0,t.jsx)("div",{children:(0,t.jsx)(p.InputText,{id:"notificationEmail",type:"notificationEmail",hasError:!!(null==(l=T.notificationEmail)?void 0:l.message),feedbackState:(null==(a=T.notificationEmail)?void 0:a.message)?"danger":"info",hasFeedback:!0,feedbackText:(null==(s=T.notificationEmail)?void 0:s.message)?m(null==(n=T.notificationEmail)?void 0:n.message):null==i?void 0:i.t23_014,..._("notificationEmail")})}),I&&(0,t.jsx)("div",{children:(0,t.jsx)(e1.xI,{name:"notificationPhone",control:w,render:e=>{let{field:{name:l,value:a,onChange:s},fieldState:{error:n}}=e;return(0,t.jsx)(p.InputPhone,{id:"notificationPhone",name:l,defaultISO:"PT",placeholder:m("serviceSheet.modalVideoCallInputPhonePlaceholder"),value:a,onChange:s,onCountryChange:L,hasError:!!(null==n?void 0:n.message),feedbackState:(null==n?void 0:n.message)?"danger":"info",hasFeedback:!0,feedbackText:(null==n?void 0:n.message)?m(null==n?void 0:n.message):null==i?void 0:i.t23_013})}})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(ls.A,{size:"invisible",sitekey:"6Leq-9UUAAAAABWXbl_lrLQiZkmG0xiOHloQv2gc",onChange:e=>{e&&A("token",e)},ref:b}),(0,t.jsx)(p.Button,{type:"submit",hasIcon:!0,leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle",children:null==i?void 0:i.t23_012})]})]})]})})};var tc=a(52214),td=a.n(tc);let tu=e=>{var l,a;let{screen:n,labels:i}=e,{t:r}=(0,y.Bd)(),o={title:null!=(l=null==i?void 0:i.t23_016)?l:r("api.generic.success.title"),subtitle:null==i?void 0:i.t23_006,agoraIcon:"agora-solid-check-circle"},c={title:null!=(a=null==i?void 0:i.t23_029)?a:r("api.generic.error.title"),subtitle:null==i?void 0:i.t23_030,agoraIcon:"agora-solid-x-circle"},d=n===x.M.Success?o:c;return(0,t.jsxs)("div",{className:"grid grid-cols-[max-content_auto] gap-16",children:[(0,t.jsx)(p.Icon,{name:d.agoraIcon,dimensions:"s",className:n===x.M.Error?"fill-danger-600":"fill-success-500"}),(0,t.jsxs)("div",{children:[d.title&&(0,t.jsx)(s.A,{additionalClasses:td().customTitle,content:d.title}),d.subtitle&&(0,t.jsx)("span",{className:"text-m-regular text-neutral-900",children:d.subtitle})]})]})},tm=e=>{var l,a,s,n,i,r;let{item:o,entityName:c,labels:d}=e,[u,m]=(0,g.useState)(x.M.Form);return(0,t.jsxs)("div",{className:"flex flex-col pb-16 gap-32 pr-32",children:[(null==d?void 0:d.t23_001)&&(0,t.jsx)("span",{className:"text-m-regular text-neutral-900",children:d.t23_001}),u!==x.M.Form&&(0,t.jsx)(tu,{screen:u,labels:d}
1),(null==o||null==(l=o.divisionDetails)?void 0:l.isOpen)&&u===x.M.Form&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)("div",{className:"grid grid-cols-[max-content_auto] gap-x-32 gap-y-8",children:(0,t.jsx)(ta,{items:[{label:null==d?void 0:d.t23_002,value:null==o||null==(a=o.divisionDetails)?void 0:a.averageServiceTime},{label:null==d?void 0:d.t23_003,value:null==o||null==(s=o.divisionDetails)?void 0:s.waitingTimeLastTicket},{label:null==d?void 0:d.t23_004,value:null==o||null==(n=o.divisionDetails)?void 0:n.usersOnWaiting},{label:null==d?void 0:d.t23_032,value:null==o||null==(i=o.divisionDetails)?void 0:i.lastTicket}]})}),(0,t.jsx)("div",{className:"flex items-start",children:(0,t.jsx)(p.Pill,{variant:"success",size:"large",children:null==d?void 0:d.t23_005})})]}),(0,t.jsx)(to,{labels:d,divisionDetails:null==o?void 0:o.divisionDetails,entityName:c,setScreen:m})]}),!(null==o||null==(r=o.divisionDetails)?void 0:r.isOpen)&&(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-row items-start",children:[(0,t.jsx)(p.Icon,{name:"agora-solid-bullet",className:"fill-danger-600"}),(0,t.jsx)("span",{className:"text-m-regular text-danger-600",children:null==d?void 0:d.t23_008})]}),(0,t.jsx)("p",{className:"text-s-regular text-neutral-900",children:null==d?void 0:d.t23_009})]})]})},tx=e=>{let{entityName:l,listServices:a,listDivisions:s,labels:n}=e;return(0,t.jsx)("div",{className:"flex flex-col gap-8 mb-32",children:(0,t.jsxs)("ul",{children:[null==s?void 0:s.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(p.Accordion,{headingLevel:"h3",headingTitle:e.title,children:(0,t.jsx)(tm,{item:e,labels:n,entityName:l})})},e.code)),null==a?void 0:a.map(e=>(0,t.jsxs)("li",{children:[e.description&&(0,t.jsx)(p.Accordion,{headingLevel:"h3",headingTitle:e.title,children:(0,t.jsx)(tl,{item:e,labelServicePage:null==n?void 0:n.t23_023})}),!e.description&&(0,t.jsx)("div",{className:"agora-accordion",children:(0,t.jsx)("h3",{className:"flex justify-start !items-start w-full accordion-header text-m-bold text-primary-900",children:e.title})})]},e.code))]})})},th=e=>{var l,a,s;let{queryResult:n,loadMoreButtonLabel:i,levelOne:r}=e,{t:o}=(0,y.Bd)(),{globalState:c,setGlobalState:d}=(0,g.useContext)(z.q),[u,m]=(0,g.useState)([]),x=null!=(s=null==n||null==(a=n.hits)||null==(l=a.total)?void 0:l.value)?s:0;return(0,g.useEffect)(()=>{var e,l,a;if(!(null==n||null==(e=n.hits)?void 0:e.hits))return;let t=Number(null!=(a=null==c||null==(l=c.searchPageFetchFilters)?void 0:l.start)?a:"0");0===x?m([]):0===t?m(n.hits.hits):m(e=>[...e,...n.hits.hits])},[n]),(0,t.jsxs)(t.Fragment,{children:[0===x&&(0,t.jsx)(az.A,{title:o("entityFormSection.allServicesAvailable.noResults.title"),helpLabels:[o("entityFormSection.allServicesAvailable.noResults.helpDescription.helpLabel1"),o("entityFormSection.allServicesAvailable.noResults.helpDescription.helpLabel2")]}),x>0&&(0,t.jsx)("div",{className:"flex flex-col gap-16",children:u.map((e,l)=>{var a,s,n,i;return(0,t.jsx)("div",{className:"flex items-center gap-8",children:(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",appearance:"link",variant:"neutral",className:"text-neutral-900 !no-underline hover:text-primary-700",target:"_self",href:(e=>{var l;let a=null==r?void 0:r[0];return"/formularios?formId={formId}&pageTitle={pageTitle}".replace("{formId}",null!=(l=null==a?void 0:a.formId)?l:"").replace("{pageTitle}",e)})(null!=(n=null==(a=e._source)?void 0:a.title)?n:""),children:null!=(i=null==(s=e._source)?void 0:s.title)?i:""})},e._id+l)})}),u.length<x&&(0,t.jsx)("div",{className:"flex justify-center mt-32",children:(0,t.jsx)(p.Button,{variant:"primary",appearance:"link",hasIcon:!0,trailingIcon:"agora-line-arrow-down-circle",trailingIconHover:"agora-solid-arrow-down-circle",onClick:()=>{d(e=>({...e,searchPageFetchFilters:{...e.searchPageFetchFilters,start:String(u.length)}}))},children:i})})]})},tp=(e,l,a)=>l?{...e,category:l,sort:l===a?"title":"title.sort",order:"asc",start:"0"}:{...e,category:"",start:"0"};var tg=a(80392);let tv=e=>{var l,a,s,n,i,r,o,c,d,u,m,x,h,v,f,b,j,C,N,w,_,A,S;let{labels:T}=e,{t:I}=(0,y.Bd)(),{globalState:k,setGlobalState:L}=(0,g.useContext)(z.q),[B,P]=(0,g.useState)(""),M=[{label:(0,eb.BH)(null==T||null==(l=T.t00_092)?void 0:l.value,I("searchResult.filterAllCategory")),categoryValue:"",icon:null!=(b=null==T||null==(a=T.t00_092)?void 0:a.icon)?b:"agora-solid-check-all",iconHover:null!=(j=null==T||null==(s=T.t00_092)?void 0:s.icon)?j:"agora-solid-check-all"},{label:(0,eb.BH)(null==T||null==(n=T.t00_093)?void 0:n.value,I("global.services")),categoryValue:(0,eb.BH)(null==T||null==(i=T.t00_093)?void 0:i.value,I("global.services")),icon:null!=(C=null==T||null==(r=T.t00_093)?void 0:r.icon)?C:"agora-solid-check-all",iconHover:null!=(N=null==T||null==(o=T.t00_093)?void 0:o.icon)?N:"agora-solid-check-all"},{label:(0,eb.BH)(null==T||null==(c=T.t00_095)?void 0:c.value,I("global.practicalGuides")),categoryValue:(0,eb.BH)(null==T||null==(d=T.t00_095)?void 0:d.value,I("global.practicalGuides")),icon:null!=(w=null==T||null==(u=T.t00_095)?void 0:u.icon)?w:"agora-solid-check-all",iconHover:null!=(_=null==T||null==(m
1=T.t00_095)?void 0:m.icon)?_:"agora-solid-check-all"},{label:(0,eb.BH)(null==T||null==(x=T.t00_097)?void 0:x.value,I("global.localCare")),categoryValue:(0,eb.BH)(null==T||null==(h=T.t00_097)?void 0:h.value,I("global.localCare")),icon:null!=(A=null==T||null==(v=T.t00_097)?void 0:v.icon)?A:"agora-solid-check-all",iconHover:null!=(S=null==T||null==(f=T.t00_097)?void 0:f.icon)?S:"agora-solid-check-all"}],F=e=>{var l,a,t,s;let n=e.target.value;P(n);let i=null==k||null==(l=k.searchPageFetchFilters)?void 0:l.value,r={...tp(null!=(t=null==k?void 0:k.resetBaseFetchFilters)?t:{},n,null!=(s=null==T||null==(a=T.t00_093)?void 0:a.value)?s:""),...i?{value:i}:{}};(0,tg.C)(null==k?void 0:k.searchPageFetchFilters,r)&&L(e=>({...e,searchPageFetchFilters:r,searchPage:{...e.searchPage,filtersApplied:[]}}))};return(0,t.jsx)("div",{className:"flex flex-wrap gap-8",children:M.map(e=>(0,t.jsx)(p.Toggle,{variant:"primary",appearance:"button",checked:B===e.categoryValue,value:e.categoryValue,hasIcon:!0,leadingIcon:B===e.categoryValue?e.iconHover:e.icon,leadingIconHover:e.iconHover,onChange:F,children:e.label},e.categoryValue))})};var tf=a(63954),tb=a.n(tf),tj=a(91101),tC=a.n(tj),tN=a(40876),tw=a(44786);let t_={FindServices:e=>{let{title:l,cards:a,helperText:i}=e,{t:o}=(0,y.Bd)();return(0,t.jsxs)(r.A,{id:"find-services-section",customClassGrid:"xs:!gap-y-16 md:!gap-y-32",children:[(0,t.jsx)("div",{className:"col-span-full xs:pb-16 md:pb-0",children:(0,t.jsx)(n.A,{scribbleName:"agora-line-zig",title:l,customClass:"xs:pb-0 md:pb-32 xl:pb-32",customClasseScribble:"h-1/3"})}),(0,t.jsxs)("div",{className:"col-span-full grid xs:!grid-cols-1 md:!grid-cols-2 xl:!grid-cols-4 xs:gap-16 md:gap-32",children:[(0,t.jsx)("ul",{className:"contents",children:a.length>0&&a.filter(e=>{var l;return""!==e.title.trim()&&(null==(l=e.icon)?void 0:l.name.trim())!==""}).map(e=>{let{serviceQtd:l,title:a,content:n,icon:i,link:r}=e;return(0,t.jsx)("li",{children:(0,t.jsx)(p.CardSingle,{blockedLink:!0,variant:"default",headingLevel:"h3",mainAnchor:{children:(0,t.jsx)(y.x6,{i18nKey:"homePage.findServiceCard.link",count:Number.parseInt(l)}),target:null==r?void 0:r.target,href:null==r?void 0:r.url,leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle",hasIcon:!0,"aria-label":"".concat(l," ").concat(Number.parseInt(l)>1?o("homePage.findServiceCard.areaLabel_other"):o("homePage.findServiceCard.areaLabel")," ").concat(a)},title:a,description:(0,t.jsx)(s.A,{additionalClasses:e_().customFindServiceMarkdownComponent,content:n}),icon:{name:null==i?void 0:i.name,alt:null==i?void 0:i.description,"aria-hidden":"true"},className:"min-h-full customH3CardSingle"},(0,V.A)())},(0,V.A)())})}),(0,t.jsxs)("div",{className:"xl:col-start-3 xl:col-end-5 xl:pt-64 xl:flex",children:[(0,t.jsx)("div",{className:"md:mr-32 xs:mb-32 md:mb-32 xl:mb-0",children:(0,t.jsx)(p.Scribbles,{name:"agora-arrow-loop",width:148,"aria-hidden":!0})}),i.text&&(0,t.jsx)(s.A,{additionalClasses:e_().customHelperText,content:i.text})]})]})]})},NewServices:e=>{let{title:l,cards:a}=e;return(0,t.jsxs)(r.A,{children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:l,scribbleName:"agora-detail-attention",customClass:"xs:pb-0 md:pb-32 xl:pb-32 mt-32"})}),a.filter(e=>{var l,a;return(null==(a=e.backgroundImage)||null==(l=a.url)?void 0:l.trim())!==""&&e.link}).map(e=>{var l,a,s,n,i;return(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4",children:(0,t.jsx)(p.CardArticle,{pill:{variant:"primary"},subtitle:"",title:"",headingLevel:"h3",variant:"indented",image:{src:null==(l=e.backgroundImage)?void 0:l.url,alt:null!=(i=null==(a=e.backgroundImage)?void 0:a.description)?i:""},mainAnchor:{href:e.link.url,hasIcon:!0,target:e.link.target,title:"".concat(null==(s=e.link)?void 0:s.description," ").concat(e.content),children:"".concat(null==(n=e.link)?void 0:n.description)},blockedLink:!0,className:l6().customArticleCard,children:(null==e?void 0:e.content)&&(0,t.jsx)("p",{children:e.content})})},(0,V.A)())})]})},PracticalGuidesSection:e=>{let{title:l,cards:a,seeAllLink:i}=e,{t:r}=(0,y.Bd)();return(0,t.jsxs)(m.A,{isFirstWrapper:!1,customClass:"bg-neutral-50",children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{scribbleName:"agora-arrow-up-right",title:l,customClass:"xs:pb-0 md:pb-32 xl:pb-32"})}),a.length>0&&a.filter(e=>""!==e.title.trim()).map(e=>{var l,a,n,i,o;return(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4",children:(0,t.jsx)(p.CardArticle,{blockedLink:!0,mainAnchor:{target:null==(l=e.link)?void 0:l.target,href:null==(a=e.link)?void 0:a.url,hasIcon:!0,iconOnly:!0,leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle","aria-label":"".concat(r("global.openPage")," ").concat(e.title)},pill:{variant:"primary"},headingLevel:"h3",title:(0,t.jsx)(s.A,{additionalClasses:as().customGuideTitle,content:e.title}),variant:"default",image:{src:null==(n=e.backgroundImage)?void 0:n.url,alt:null!=(o=null==(i=e.backgroundImage)?void 0:i.description)?o:""},className:"".concat(as().customCardGuide),style:{backgroundColor:"transparent"},children:e.content&&(0,t.jsx)(s.A,{additionalClasses:as().customGuideContent,content:e.content})})},(0,V.A)())}),i.url&&(0,t.jsx)("div",{className:"col-span-full xs:mt-0 md:mt-32 xl:mt-32",children:(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:i.url,appearance:"link",className:"xl:pt-32",target:i.target,children:i.label})})]})},Highlights:e=>{var l,a;let{articles:i,title:o,news:c,seeAllLink:d}=e,u=[...i.cards],m=u.shift(),x=u.pop(),{t:h}=(0,y.Bd)();return(0,t.jsxs)(r.A,{children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:o,scribbleName:"agora-circle-right-l",customClasseScribble:"xs:-mt-[3px] md:mt-[2px] xs:scale-x-[1.1] xs:scale-y-[1] md:scale-x-[1.4] md:scale-y-[1.5]",customClass:"xs:pb-0 md:pb-32 xl:pb-32"})}),c.backgroundImage.url&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.CardHighlight,{image:{src:c.backgroundImage.url,alt:c.backgroundImage.description},subtitle:c.title,title:(0,t.jsx)("span",{className:eW().newsSubtitle,children:c.subtitle}),description:(0,t.jsx)("span",{className:eW().newsDescription,children:c.description}),links:[{children:null==(l=c.link)?void 0:l.label,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:null==(a=c.link)?void 0:a.url}],cardPosition:"middle"})}),u.some(e=>""!==e.title)&&(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)(p.CardCollection,{mainAnchor:{children:null,iconOnly:!0,hasIcon:!0,href:m.link.url,target:m.link.target,title:"".concat(h("global.openPage")," ").concat(m.title)},headingLevel:"h3",blockedLink:!0,title:m.title,subtitle:m.subtitle,className:"xs:col-span-4 xl:col-span-4"}),u.map(e=>{var l,a;return(0,t.jsx)(p.CardArticle,{blockedLink:!0,mainAnchor:{hasIcon:!0,iconOnly:!0,children:null,href:e.link.url,target:e.link.target,title:"".concat(h("global.openPage")," ").concat(e.title)},headingLevel:"h3",className:"".concat(eW().customCardNews," customCardArticle"),title:(0,t.jsx)(s.A,{content:null==e?void 0:e.title,additionalClasses:eW().CardArticleTitle}
1),subtitle:null==e?void 0:e.subtitle,variant:"default",image:{src:null==(l=e.backgroundImage)?void 0:l.url,alt:null==(a=e.backgroundImage)?void 0:a.description},children:e.content&&(0,t.jsx)("p",{className:"mb-16",children:e.content})},(0,V.A)())}),x&&(0,t.jsx)(p.CardCollection,{headingLevel:"h3",blockedLink:!0,title:x.title,subtitle:x.subtitle,mainAnchor:{hasIcon:!0,iconOnly:!0,children:null,href:x.link.url,target:x.link.target,title:"".concat(h("global.openPage")," ").concat(x.title)},className:"xs:col-span-4 xl:col-span-4"})]}),(0,t.jsx)("div",{className:"xs:mt-0 xs:flex-col md:mt-32 md:flex-row xl:mt-32 xl:flex-row flex col-span-full",children:d.map(e=>(0,t.jsx)("div",{children:(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:e.url,appearance:"link",target:e.target,children:e.label})},(0,V.A)()))})]})},ServiceBigNumber:e=>{let{title:l,cards:a}=e,{t:s}=(0,y.Bd)();return(0,t.jsxs)(r.A,{applyMb:!0,children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:l,scribbleName:"agora-detail-movement",customClasseScribble:"hidden md:!block w-[47px] h-[47px] order-1 ml-16",customClass:"xs:pb-0 md:pb-32 xl:pb-32 flex flex-wrap",scribbleTitleClass:"flex"})}),a.map(e=>{var l,a;return(0,t.jsx)("div",{className:"col-span-4",children:(0,t.jsx)(p.CardFrame,{blockedLink:!0,mainAnchor:{target:null==(l=e.link)?void 0:l.target,href:null==(a=e.link)?void 0:a.url,iconOnly:!0,hasIcon:!0,leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle",title:"".concat(s("global.openPage")," ").concat(e.description)},linkPosition:"right",className:aS().customCardFrame,headingLevel:"h3",label:(0,t.jsx)("span",{className:"text-2xl-bold text-primary-900",children:e.title}),children:(0,t.jsx)("div",{children:e.description})})},(0,V.A)())})]})},Search:e=>{var l;let{cards:a,title:s,backgroundImage:i}=e,r=(null!=(l=a.links)?l:[]).map(e=>({children:e.label,href:e.url,target:e.target,inline:!1,appearance:"link",variant:"neutral"}));return(0,t.jsxs)("div",{className:"text-white mx-auto relative mt-32 max-w-[1440px]",children:[(0,t.jsx)("div",{className:aj().searchBannerImage,style:{backgroundImage:"url(".concat(null==i?void 0:i.url,")")}}),(0,t.jsx)("div",{className:"xs:px-32 md:px-64 xl:!px-0 max-w-[1216px] mx-auto relative z-10 h-full",children:(0,t.jsxs)("div",{className:"grid gap-32 xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 h-full",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-64 xs:col-span-4 md:col-span-8 xl:col-span-7 h-[436px]",children:[(0,t.jsxs)("div",{className:aj().searchWrap,children:[(0,t.jsx)(p.Scribbles,{name:"agora-bold-arrow","aria-hidden":!0,className:"absolute xs:invisible md:visible md:w-[38px] md:-left-48 xl:visible xl:-left-56 xl:w-56 rotate-0 md:rotate-[13deg] xl:rotate-0",alt:"agora-arrow-curve-right"}),(0,t.jsx)(n.A,{title:s,scribbleName:"agora-bold-line",isMainTitle:!0})]}),(0,t.jsx)(ea.A,{translations:{searchBar:(0,et.t)("homePage.searchInputSearchBar"),searchBarAriaLabel:(0,et.t)("homePage.searchInputSearchBarAriaLabel"),searchBarMicro:(0,et.t)("homePage.searchInputSearchBarMicro")},labelCustomClass:"label-search-bar"})]}),(0,t.jsx)("div",{className:"xs:hidden md:hidden xl:block col-span-1"})]})}),(0,t.jsx)(aN,{cards:a,links:r})]})},PromotionalSpotlight:e=>{let{title:l,description:a,button:s,image:i}=e,{t:r}=(0,y.Bd)(),o={variant:"image",title:(0,t.jsx)(n.A,{customClass:"text-white xs:text-xl-bold md:text-2xl-bold xl:text-2xl-bold",scribbleName:"agora-bold-line",title:l}),description:(0,t.jsx)(n.A,{customClass:"text-white text-m-regular",scribbleName:"agora-bold-line",title:a,headingLevel:"none"}),isCardHorizontal:!0,showBookmarkIcon:!0,bgIllustration:(0,t.jsx)("img",{src:(null==i?void 0:i.url)||ad.src,alt:(null==i?void 0:i.altText)||r("citizenStore.homePageSpotlight.imageAlt"),"aria-hidden":!0,className:"h-full w-full object-cover"}),mainAnchor:{children:null==s?void 0:s.placeholder,href:null==s?void 0:s.descriptionUrl,target:"_parent",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",trailingIconActive:"agora-solid-arrow-right-circle"}};return(0,t.jsx)("div",{className:"grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-16 gap-32",children:(0,t.jsx)("div",{className:"xs:col-span-4 md:col-span-8 xl:col-span-8 mt-64 xs:h-auto md:h-auto xl:h-[372px]",children:(0,t.jsx)(p.CardIllustrative,{...o,className:"xs:px-64 md:!px-64 xl:!px-112",imageFilter:"primary-900"})})})}},tA={SearchResultTitle:e=>{var l,a,s,n,i,r;let{hero:o,searchName:c}=e,{globalState:d}=(0,g.useContext)(z.q),{t:u}=(0,y.Bd)(),x=(0,ed.useRouter)().asPath,{showLoader:h}=(0,p.useLoaderDialogContext)(),v=null==d||null==(l=d.searchPage)?void 0:l.labels,f=null==d||null==(a=d.searchPage)?void 0:a.emptyState,b=null!=(i=null==d||null==(s=d.searchPage)?void 0:s.totalResults)?i:0,j=(0,ec.s)(x,[u("global.home"),null!=(r=null==o?void 0:o.listingTitle)?r:u("global.search")]),C=null==v||null==(n=v.t00_068)?void 0:n.replace(u("searchResult.labelPlaceholder"),"".concat(b));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"".concat(aA().searchResultForm," ").concat(b&&"xl:!pb-128"," "),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:j}),(0,t.jsxs)("div",{className:"xs:col-span-4 md:col-span-8 xl:col-span-6 xl:mt-32 flex flex-col gap-64",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(null==o?void 0:o.listingTitle)&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:o.listingTitle}
1),C&&(0,t.jsx)("p",{className:aA().searchResultSubTitle,children:C})]}),(0,t.jsx)("div",{className:"xs:col-span-12 xl:col-span-8",children:(0,t.jsx)(ea.A,{translations:{searchBarMicro:u("homePage.searchInputSearchBarMicro"),searchBar:(0,eb.BH)(null==v?void 0:v.t04_001,u("homePage.searchInputSearchBar")),searchButtonAriaLabel:(0,eb.BH)(null==v?void 0:v.t04_001,u("homePage.searchInputSearchBar"))},searchValue:c,onClearSearch:()=>{var e;h({title:u("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/pesquisa"))}})}),(null==o?void 0:o.updatedAt)&&(0,t.jsxs)("span",{className:aA().searchResultLastUpdatedAt,children:[(0,eb.BH)(null==v?void 0:v.t00_010,u("entityFormSection.entityFormTitle.lastUpdatedAt"))," ",(0,eM.A)(o.updatedAt,"dd.MM.yyyy")]})]})]}),(0,t.jsx)(eq.q,{ctaHelp:null==f?void 0:f.ctaHelp,totalResults:b})]})},SearchResultContent:e=>{var l,a,s,n,i,o,c,d,u;let{results:m}=e,{globalState:x}=(0,g.useContext)(z.q),h=null==x||null==(l=x.searchPage)?void 0:l.emptyState,p=null!=(c=null==x||null==(a=x.searchPage)?void 0:a.categories)?c:[],v=null!=(d=null==x||null==(s=x.searchPage)?void 0:s.totalResults)?d:0;return(0,t.jsx)(t.Fragment,{children:0===v&&h?(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"xs:mt-64 md:mt-64 xl:mt-0",children:(0,t.jsx)(aw.A,{image:"/assets/images/searchResultNotFound.png",aditionalClass:"pt-32 xs:px-0",title:h.title,description:h.body})}):(0,t.jsx)(eD.$l,{currentResults:null==m||null==(n=m.hits)?void 0:n.hits,currentTotalResults:null!=(u=null==m||null==(o=m.hits)||null==(i=o.total)?void 0:i.value)?u:0,totalResults:v,categories:p,showPill:!1,channelFilter:eD.Ms.Radio})})}},ty={About:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;return c().isEmpty(n)?(0,t.jsx)(t.Fragment,{}):(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{scribbleName:"agora-line-straight",title:s,description:n,customClass:"markdown-title",customClasseScribble:"-mt-[4px]"})})},BannedOrDisabled:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;return(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{title:s,description:n,scribbleName:"agora-line-zig"})})},BusinessLocation:e=>{let{data:l,id:a,districtData:n,municipalityData:i,parishData:o,isDistrictValid:c,isMunicipalityValid:d,isParishValid:u,selectedDistrict:m,selectedParish:x,selectedMunicipality:h,onDistrictSelectChange:v,onParishSelectChange:f,onMunicipalitySelectChange:b}=e,{t:j}=(0,y.Bd)(),{setGlobalState:C}=(0,g.useContext)(z.q);return(0,t.jsxs)(r.A,{id:a,children:[(null==l?void 0:l.title)&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(s.A,{content:null==l?void 0:l.title,additionalClasses:G().businessLocationTitle})}),(null==l?void 0:l.description)&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-full",children:(0,t.jsx)(s.A,{content:l.description,additionalClasses:G().businessLocationDescription})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-5 xl:col-span-4",children:(0,t.jsx)(W,{type:"text",placeholder:j("serviceSheet.districtServiceInputSelectLabel"),label:j("serviceSheet.districtServiceInputSelectLabel"),onChange:v,children:n})}),(0,t.jsx)("div",{className:"xs:col-span-full  md:col-span-5 xl:col-span-4",children:(0,t.jsx)(W,{type:"text",placeholder:j("serviceSheet.municipalityServiceInputSelectLabel"),label:j("serviceSheet.municipalityServiceInputSelectLabel"),onChange:b,disabled:!m,children:i})}),(null==o?void 0:o.length)>0&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-5 xl:col-span-4",children:(0,t.jsx)(W,{type:"text",placeholder:j("serviceSheet.parishServiceInputSelectLabel"),label:j("serviceSheet.parishServiceInputSelectLabel"),onChange:f,children:o})}),(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.Button,{type:"button",onClick:()=>{let e=null!=x?x:h;C(l=>({...l,organizationCode:null==e?void 0:e.value.split("-")[1]}))},disabled:!(c&&d||u),children:j("serviceSheet.continueButton")})})]})},ComplementaryService:e=>{let{data:l}=e;return l.link&&l.title?(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"mt-64",children:(0,t.jsx)(p.CardTopic,{variant:"informative",className:"xs:col-span-full md:col-span-full xl:col-span-7",headingLevel:"h2",title:l.title?(0,t.jsx)(s.A,{additionalClasses:"title",content:l.title}):null,description:l.description,mainAnchor:{children:l.name,href:l.link,target:l.target,variant:"primary",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle"}})}):(0,t.jsx)(t.Fragment,{})},Duedate:e=>{let{data:l,id:a}=e,{title:s}=l;if(c().isEmpty(l.descriptions))return(0,t.jsx)(t.Fragment,{});let n=l.descriptions.map(e=>e.description).join("\n");return(0,t.jsx)(r.A,{id:a,children:s&&(0,t.jsx)(i,{scribbleName:"agora-line-zig",title:s,description:n,customClasseScribble:"-mt-8"})})},Entity:e=>{var l;let{data:a,id:s,titleService:n}=e,{title:i,description:r,entityName:o,link:c,logo:d}=a,u=null==r||null==(l=r.replaceAll("#ServicoNome#",n))?void 0:l.replaceAll("#EntidadeNome#",o);return(0,t.jsx)(m.A,{id:s,isFirstWrapper:!1,applyPy:!1,customClass:"xs:py-64 md:py-64 xl:py-128 bg-neutral-50 relative",children:(0,t.jsx)(eN.A,{title:i,description:u,entityName:o,logo:d,link:c})})},HowCanUse:e=>{let{data:l,id:a}=e,{title:s,serviceChannels:i}=l,{setGlobalState:o}=(0,g.useContext)(z.q);return(0,g.useEffect)(()=>{o(e=>({...e,serviceChannels:l.serviceChannels}))},[]),(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(r.A,{id:a,customClass:"mb-64",children:(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:s,scribbleName:"agora-detail-attention",customClass:"mt-32"})})}),(0,t.jsx)(lw,{serviceChannels:i})]})},HowVersion05:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;return(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{scribbleName:"agora-line-zig",title:s,description:n,customClasseScribble:"-mt-8"})})},InformationQuizz:e=>{let{data:l,id:a}=e,{quizz:n,title:i,description:o,showResume:c}=l;return(0,t.jsxs)(r.A,{id:a,children:[(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6",children:[i&&(0,t.jsx)("h2",{className:"mb-16",children:(0,t.jsx)(s.A,{additionalClasses:lF().informationQuizTitle,content:i})}),o&&(0,t.jsx)(s.A,{additionalClasses:lF().informationQuizDescription,content:o})]}),(0,t.jsx)(lP,{questions:n,showResume:c})]})},OtherInformation:e=>{let{data:l,id:a}=e,{title:i,accordion:o}=l;return(0,t.jsxs)(r.A,{id:a,customClass:"xs:!px-0 md:!px-64",children:[i&&(0,t.jsx)("div",{className:"col-span-full xs:px-32 md:!px-0",children:(0,t.jsx)(n.A,{title:i,scribbleName:"agora-detail-movement",customClasseScribble:"hidden md:!block w-[47px] h-[47px] order-1 ml-16",scribbleTitleClass:"flex"})}),o?(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 xl:m-0 ".concat(aa().otherInfoLinks),children:(0,t.jsx)(p.AccordionGroup,{children:o.filter(e=>void 0!==e.title&&""!==e.title).map(e=>{var l,a;return(0,t.jsxs)(p.Accordion,{headingTitle:(0,t.jsx)("div",{className:"text-start text-m-bold",children:e.title}),headingLevel:"h3",children:[(null==e?void 0:e.descriptions)&&(null==e||null==(l=e.descriptions)?void 0:l.length)>0&&(0,t.jsx)(s.A,{isIcon:!0,additionalClasses:aa().description,content:null==e?void 0:e.descriptions.map(e=>e.description).join("\n\n")}),(null==(a=e.link)?void 0:a.url)?(0,t.jsx)(p.Anchor,{hasIcon:!1,href:e.link.url,appearance:"link",children:e.link.label}):null]},"key-".concat(e.title))})})}):null]})},Price:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;if(c().isEmpty(n))return(0,t.jsx)(t.Fragment,{});let o=(null==n?void 0:n.length)>0?null==n?void 0:n.map(e=>e.description).join(" "):"";return(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{title:s,description:o,scribbleName:"agora-line-zig",customClass:"markdown-title",customClasseScribble:"-mt-8"})})},RelatedServicesAndGuides:e=>{let{data:l,id:a}=e,{relatedCategory:i,relatedGuides:o,relatedServices:d,title:u}=l;return c().isEmpty(d)&&c().isEmpty(o)&&c().isEmpty(i)?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)(r.A,{id:a,children:[u&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(n.A,{title:u,scribbleName:"agora-line-straight"})}),d&&(0,t.jsx)(ax,{cards:d.cards,footLink:d.footLink,title:null==d?void 0:d.title}),o&&(0,t.jsx)(ag,{cards:o.cards,footLink:o.footLink,title:o.title}),(null==i?void 0:i.links)&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(p.CardLinks,{description:(0,t.jsxs)(t.Fragment,{children:[i.subTitle&&(0,t.jsx)(s.A,{content:i.subTitle}),i.description&&(0,t.jsx)(s.A,{content:i.description,additionalClasses:af().customRelatedCategoryDescription})]}),links:(()=>{var e;return null!=(e=null==i?void 0:i.links.filter(e=>{var l;return(null==(l=e.label)?void 0:l.replace(" ",""))!==""}).map(e=>({href:e.url,children:e.label})))?e:[]})(),className:"[&_.body-container]:!gap-32",headingLevel:"h3",title:i.title&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(s.A,{content:i.title,additionalClasses:af().customRelatedCategoryTitle})})})})]})},ServiceChannels:e=>{let{data:l,id:a}=e,{title:i,subtitle:o,service:c}=l;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{id:a,children:[i&&(0,t.jsx)("div",{className:"col-span-full ".concat(!(o&&"null"!==o)&&"pb-64"),children:(0,t.jsx)(n.A,{title:i,scribbleName:"agora-detail-movement",customClasseScribble:"hidden md:!block w-[47px] h-[47px] order-1 ml-16",scribbleTitleClass:"flex"})}),o&&"null"!==o&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 mb-32",children:(0,t.jsx)(s.A,{content:o})})]}),(0,t.jsx)(aT,{service:c})]})},ServiceTitle:e=>{var l,a;let{data:n,links:i}
1=e,{title:r,description:o,subtitle:c,pageAnchorTitle:d,buttonText:u,buttonUrl:x,codeorg:h,lastUpdatedAt:v}=n,{seoInfo:f}=(0,g.useContext)(e0.H),{globalState:b}=(0,g.useContext)(z.q),[j,C]=(0,g.useState)(0),{t:N}=(0,y.Bd)(),w=(0,ed.useRouter)().asPath,_=(0,g.useRef)(null),A=(0,ec.s)(w,[N("global.home"),N("global.services"),r]);return(0,g.useEffect)(()=>{var e,l;C(null!=(l=null==(e=_.current)?void 0:e.offsetHeight)?l:0)},[null==(l=_.current)?void 0:l.offsetHeight]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"bg-primary-900 text-white",refWrap:_,children:[f&&(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:A}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[c&&(0,t.jsx)("span",{className:"text-l-regular",children:c}),(0,t.jsxs)("div",{className:"flex gap-16 items-center",children:[(0,t.jsx)("span",{className:"text-l-regular",children:N("global.services")}),(null==b||null==(a=b.services)?void 0:a.isLGP)&&(0,t.jsx)(p.Icon,{name:"agora-line-lgp",className:"fill-white"})]}),r&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-2xl-bold xl:text-3xl-bold ".concat(o?"mb-16":""),children:r}),o&&(0,t.jsx)(s.A,{additionalClasses:aP().classDescription,content:o}),u&&!aL(null!=x?x:"")&&(0,t.jsxs)("form",{className:"xs:my-32 md:my-64",action:x,method:"POST",children:[(0,t.jsx)("input",{type:"hidden",name:"".concat(null==f?void 0:f.code,".cesCode"),value:null==f?void 0:f.code}),(0,t.jsx)("input",{type:"hidden",name:"".concat(null==f?void 0:f.code,".authorityCode"),value:h}),(0,t.jsx)(p.Button,{hasIcon:!0,variant:"primary",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",className:"xs:w-full md:!w-auto xl:!w-auto",type:"submit",darkMode:!0,children:u})]}),u&&aL(null!=x?x:"")&&(0,t.jsx)("div",{className:"xs:my-32 md:my-64",children:(0,t.jsx)(p.Button,{hasIcon:!0,variant:"primary",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",className:"xs:w-full md:!w-auto xl:!w-auto",onClick:()=>{if(x){var e;null==(e=globalThis.window)||e.open(x,"_self")}},darkMode:!0,children:u})}),v&&(0,t.jsxs)("p",{className:"".concat(u?"":"xs:mt-32 md:!mt-64"),children:[N("serviceSheet.serviceUpdate")," ",v]})]})]}),(0,t.jsx)(l_.I,{links:i,title:null!=d?d:N("serviceSheet.serviceTitle"),fullWrapHeight:j,isReady:A.length>0})]})},StatusCardSection:e=>{let{description:l,type:a}=e;return(0,t.jsx)(aR,{children:(0,t.jsx)(p.StatusCard,{"aria-label":"Informa\xe7\xe3o - Description lorem ipsum dolor sit amet.",description:l,variant:a})})},WhatNeed:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;if(c().isEmpty(n))return(0,t.jsx)(t.Fragment,{});let o=(null==n?void 0:n.length)>0?null==n?void 0:n.map(e=>e.description).join(" "):"";return(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{scribbleName:"agora-line-straight",title:s,description:o,customClass:"markdown-title",customClasseScribble:"-mt-[4px]"})})},WhenCanUse:e=>{var l,a,i;let{data:o,id:c}=e,{title:d,accordion:u,table:m,link:x}=null!=o?o:{},{globalState:h}=(0,g.useContext)(z.q),v=null!=(i=null==o||null==(a=o.descriptions)||null==(l=a.map(e=>e.description))?void 0:l.join("\n"))?i:"",[f,b]=(0,g.useState)(v);return(0,g.useEffect)(()=>{var e,l,a;let t=null==h||null==(e=h.viewAnswerQuizz)?void 0:e.viewDescription;if(t){let e=[];for(let a of t)for(let t of null!=(l=null==o?void 0:o.descriptions)?l:[])t.code===a.code&&t.name===a.name&&t.description&&e.push(t.description);b(null!=(a=e.join(" \n"))?a:"")}void 0===t&&b(v)},[null==h?void 0:h.viewAnswerQuizz]),(0,t.jsxs)(r.A,{id:c,children:[d&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(n.A,{title:d,scribbleName:"agora-line-straight"})}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 gap-48",children:[v&&(0,t.jsx)(s.A,{content:f,additionalClasses:eY().howCanUseDescription}),u&&(0,t.jsx)("div",{className:"flex flex-col gap-24 justify-start items-start",children:u.map(e=>{var l,a,s;return(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:null==(l=e.link)?void 0:l.url,appearance:"link",children:null==(a=e.link)?void 0:a.label},null==(s=e.link)?void 0:s.label)})}),m&&(0,t.jsx)(aQ,{header:m.header,body:m.body})]}),x&&(0,t.jsx)("div",{className:"col-span-full",children:x.map(e=>(0,t.jsx)(p.Anchor,{hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:e.url,appearance:"link",children:e.label},"".concat(e.url,"-").concat(e.label)))})]})},Where:e=>{let{data:l,id:a}=e,{title:s,description:n}=l;return c().isEmpty(n)?(0,t.jsx)(t.Fragment,{}):(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)(i,{scribbleName:"agora-line-straight",title:s,description:n,customClass:"markdown-title",customClasseScribble:"-mt-[4px]"})})},WhoCanUse:e=>{let{data:l,id:a,submittedOrders:i}=e,{t:o}=(0,y.Bd)(),{title:c}=l,{globalState:d}=(0,g.useContext)(z.q),[u,m]=(0,g.useState)(null==l?void 0:l.descriptions.map(e=>e.description).join(" \n"));return(0,g.useEffect)(()=>{var e,a,t;
1let s=null==d||null==(e=d.viewAnswerQuizz)?void 0:e.viewWhoRelation;s&&m(null==l||null==(t=l.descriptions)||null==(a=t.filter(e=>{var l;return s.includes(null!=(l=null==e?void 0:e.code)?l:"")}))?void 0:a.map(e=>e.description).join(" \n\n")),void 0===s&&m(null==l?void 0:l.descriptions.map(e=>e.description).join(" \n\n"))},[null==d?void 0:d.viewAnswerQuizz]),u?(0,t.jsxs)(r.A,{id:a,children:[(null==i?void 0:i.isVisible)&&!!(null==i?void 0:i.requestSubmittedNumber)&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:row-start-1 xl:row-end-3 xl:col-start-10 xl:col-end-13 xs:mb-64 xl:mb-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-8 md:pr-32 xl:pb-32",children:[(0,t.jsx)(n.A,{title:o("serviceSheet.requestsSubmitted"),scribbleName:"agora-detail-attention",description:"",customClass:"mt-48 !text-l-medium text-primary-900",customClasseScribble:"-top-48"}),(0,t.jsx)("p",{className:"text-2xl-bold text-primary-600",children:i.requestSubmittedNumber}),i.lastUpdatedAt&&(0,t.jsxs)("p",{className:"text-m-regular text-neutral-700",children:[o("serviceSheet.lastUpdated")," ",i.lastUpdatedAt]})]})}),c&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(n.A,{title:c,scribbleName:"agora-circle-right-l",customClasseScribble:"xs:-mt-[2px] md:mt-[3px] scale-x-[1.2] scale-y-[1.7]"})}),u&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6",children:(0,t.jsx)(s.A,{content:u})})]}):(0,t.jsx)(t.Fragment,{})}},tS={NewsTitle:e=>{let{newsTitle:l}=e,{t:a}=(0,y.Bd)(),s=(0,ed.useRouter)().asPath,n=(0,ec.s)(s,[a("global.home"),a("global.news"),l]);return(0,t.jsxs)(m.A,{customClass:ae().newsTitleWrapper,children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent",items:n}),(0,t.jsxs)("div",{className:"flex flex-col mt-32 xs:col-span-full md:col-span-7 xl:col-span-7 ",children:[(0,t.jsx)("span",{className:"text-l-regular text-primary-900 mb-8",children:a("global.news")}),l&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold text-primary-900",children:l})]})]})},NewsBody:e=>{let{title:l,theme:a,publicationDate:n,description:i,links:r,source:o,newsImage:c,newsRelated:d}=e,{t:x}=(0,y.Bd)(),{width:h}=(0,ey.A)(),g=h<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&h>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));return(0,t.jsxs)(m.A,{applyPy:!1,customClass:"xs:!mt-32 md:!mt-0 xl:!mt-32",children:[a&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6",children:(0,t.jsx)(p.Pill,{size:"large",children:a})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 ".concat(a?"xl:row-start-2":"xl:row-start-1"),children:(0,t.jsxs)("p",{className:"-mt-16",children:[x("news.labelPublicationDate")," ",(0,eM.A)(n,"dd/MM/yyyy")]})}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 ".concat(a?"xl:row-start-3":"xl:row-start-2"),children:[(0,t.jsx)("h2",{className:"-mt-16 text-xl-bold text-primary-900",children:l}),(0,t.jsx)(S.A,{content:i,additionalClasses:l2().customBody}),(0,t.jsx)("div",{className:"flex flex-col items-start",children:(null==r?void 0:r.filter(e=>e.label&&e.url).length)>0&&r.filter(e=>e.label&&e.url).map(e=>{var l;return(0,t.jsx)(p.Anchor,{className:"mt-16",href:e.url,appearance:"link",hasIcon:!0,...(0,eh.N)(e.url,null!=(l=e.label)?l:"",x("serviceSheet.externalLinkAlt")),children:e.label},(0,V.A)())})}),o&&(0,t.jsxs)("div",{className:"flex gap-8 xs:mt-32 md:mt-32 xl:!mt-64 py-8",children:[(0,t.jsxs)("span",{children:[x("news.source"),":"]}),(0,t.jsx)(s.A,{content:o,additionalClasses:l2().newsBody})]})]}),c&&(0,t.jsx)("div",{className:"col-span-full xs:mt-0 md:mt-0 xl:!mt-32",children:(0,t.jsx)(u(),{className:l2().newsImage,src:c.url,alt:c.description,width:0,height:0})}),!g&&d&&(0,t.jsx)(l0,{title:x("news.otherNews.title"),newsRelated:d})]})},MobileNewsRelated:e=>{let{newsRelated:l}=e,{width:a}=(0,ey.A)(),{t:s}=(0,y.Bd)(),n=a<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&a>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));return(0,t.jsx)(t.Fragment,{children:n&&l&&(0,t.jsx)(r.A,{isMainWrapper:!0,children:(0,t.jsx)(l0,{title:s("news.otherNews.title"),newsRelated:l})})})},NewsShare:e=>{var l;let{newsDetailContent:a,socialMediaContent:s}=e,{t:i}=(0,y.Bd)();return(0,t.jsxs)(m.A,{id:"news-share-container",isFirstWrapper:!1,applyPy:!1,customClass:"pt-64 !mt-0",children:[s.title&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:i("news.socialMediaShare.title"),scribbleName:"agora-detail-talk",customClass:"xs:flex xs:items-center xs:whitespace-pre !text-m-regular",customClasseScribble:"order-1 ml-8 hidden xs:block w-[24px] h-[24px]",scribbleTitleClass:"xs:flex xs:items-center"})}),!!(null==s||null==(l=s.socialMediaIcon)?void 0:l.length)&&(0,t.jsx)("div",{className:"col-span-full gap-16 flex flex-row flex-wrap p-y-16",children:s.socialMediaIcon.map(e=>(0,t.jsx)(l7,{newsDetailContent:a,socialMediaIcon:e},"".concat(e.icon,"-").concat((0,V.A)())))})]})}},tT={NewsResultTitle:e=>{var l,a,s,n;let{title:i,searchValue:r}=e,{globalState:o}=(0,g.useContext)(z.q),{t:c}=(0,y.Bd)(),d=(0,ed.useRouter)().asPath,{showLoader:u}=(0,p.useLoaderDialogContext)(),x=null==o||null==(l=o.searchPage)?void 0:l.labels,h=null==o||null==(a=o.searchPage)?void 0:a.emptyState,v=null!=(n=null==o||null==(s=o.searchPage)?void 0:s.totalResults)?n:0,f=(0,ec.s)(d,[c("global.home"),null!=i?i:c("global.news")]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"".concat(l9().newsWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:f}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:mt-32 flex flex-col xs:gap-32 md:gap-64 xl:gap-64 xs:mb-0 xl:mb-64",children:[(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:i})}),(0,t.jsx)("div",{className:"mb-64",children:(0,t.jsx)(ea.A,{translations:{searchBarAriaLabel:(0,eb.BH)(null==x?void 0:x.t04_016,c("newsResult.inputLabel")),searchBarMicro:c("homePage.searchInputSearchBarMicro"),searchBar:c("newsResult.inputSearchPlaceholder")},searchValue:r,labelCustomClass:"label-search-bar-news",category:c("global.news"),onButtonSearchClick:e=>{if(e){var l;u({title:c("searchResult.loader")}),null==(l=globalThis.window)||l.location.replace("".concat("/noticias?search=").concat(e))}},onClearSearch:()=>{var e;u({title:c("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/noticias"))}})})]})]}),(0,t.jsx)(eq.q,{ctaHelp:null==h?void 0:h.ctaHelp,totalResults:v})]})},NewsResultContent:e=>{var l,a,s,n,i;let{data:r,showCategory:o}=e;return(0,t.jsx)(eD.$l,{currentResults:null==r||null==(l=r.hits)?void 0:l.hits,currentTotalResults:null!=(n=null==r||null==(a=r.hits)?void 0:a.total.value)?n:0,totalResults:null!=(i=null==r||null==(s=r.hits)?void 0:s.total.value)?i:0,categories:void 0,orderBy:eD.Mq.NewsResults,showNotFound:!0,show
1FilterDate:!0,showCategory:o,showTopics:!1,showPill:!1})}},tI={GuideTitle:e=>{var l;let{title:a,lastModified:s,links:n}=e,{t:i}=(0,y.Bd)(),r=(0,ed.useRouter)().asPath,o=(0,g.useRef)(null),[c,d]=(0,g.useState)(0),u=(0,ec.s)(r,[i("global.home"),i("global.practicalGuides"),a]);return(0,g.useEffect)(()=>{var e,l;d(null!=(l=null==(e=o.current)?void 0:e.offsetHeight)?l:0)},[null==(l=o.current)?void 0:l.offsetHeight]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:ai().guideTitleWrapper,refWrap:o,children:[u.length>0&&(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:u}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[(0,t.jsx)("span",{className:"text-l-regular",children:i("global.practicalGuides")}),a&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-2xl-bold xl:text-3xl-bold",children:a}),s&&(0,t.jsxs)("p",{className:"xs:mt-32 md:!mt-64",children:[i("serviceSheet.serviceUpdate")," ",(0,eM.A)(s,"dd/MM/yyyy")]})]})]}),(0,t.jsx)(l_.I,{links:n,title:i("serviceSheet.serviceTitle"),fullWrapHeight:c,isReady:u.length>0})]})},GuideContent:q,GuideAggregator:e=>{var l,a,s,i;let{id:o,data:c}=e,{t:d}=(0,y.Bd)();return(0,t.jsxs)(r.A,{id:o,customClass:"xs:!px-0 md:!px-64 xl:!px-0",children:[(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 flex flex-col gap-32",children:(0,t.jsx)(n.A,{title:(null==(l=c.title)?void 0:l.trim())?c.title:d("guides.genericTitle"),scribbleName:"agora-line-zig",customClass:"xs:px-32 md:!px-0 xl:px-0"})}),c.description&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:row-start-2 flex flex-col gap-32",children:(0,t.jsx)(S.A,{content:c.description,additionalClasses:"xs:px-32 md:!px-0 xl:px-0"})}),(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.CardHighlight,{image:{src:null==(i=c.image)||null==(s=i.image)||null==(a=s[0])?void 0:a.url},links:(()=>{var e;return null==(e=c.relatedGuides)?void 0:e.map(e=>({key:e.url,children:e.buttonLinkPlaceholder?e.buttonLinkPlaceholder:e.title,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",href:e.url}))})(),cardPosition:"bottom",cardSize:"s",description:(0,t.jsx)("span",{className:"text-l-bold",children:d("guides.relatedGuidesTitle")})})})]})},GuideRelated:e=>{var l;let{id:a,guideId:s,data:i}=e,{t:o}=(0,y.Bd)(),c=(e,l)=>{if(e<=l)return i[e]};return(0,t.jsx)(r.A,{id:a,isMainWrapper:!0,children:(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full md:col-span-full xl:col-span-full xs:gap-32 md:gap-32 xl:!gap-64",children:[(0,t.jsx)(n.A,{title:o("guides.guideRelated.title"),scribbleName:"agora-line-straight",customClass:"text-2xl-light"}),(0,t.jsx)("div",{className:"flex xs:flex-col md:flex-col xl:flex-row gap-32",children:null==(l=i.length>2?(()=>{let e=i.findIndex(e=>e.id===s),l=i?(null==i?void 0:i.length)-1:0,a=e+1>l?0:e+1;if(-1===e||l<=1)return[];let t=[];for(let e=0;e<2;e++){let e=c(a,l);e&&t.push(e),a=a+1>l?0:a+1}return t})():i)?void 0:l.map(e=>(0,g.createElement)(p.CardSingle,{...(e=>{let l={variant:"white",mainAnchor:{children:o("guides.guideRelated.buttonLabel"),href:e,target:"_blank",hasIcon:!0}};return e?l:{}})(e.url),key:e.id,className:"flex flex-1",title:(0,t.jsx)("span",{className:"text-xl-bold text-primary-900",children:e.title}),description:e.description}))})]})})}},tk={InfoAndHelpServiceTitle:e=>{var l;let{title:a,links:n,description:i,lastUpdated:r}=e,{t:o}=(0,y.Bd)(),c=(0,ed.useRouter)().asPath,d=(0,g.useRef)(null),[u,x]=(0,g.useState)(0),h=(0,ec.s)(c,[o("global.home"),o("global.informationAndHelp"),a]);return(0,g.useEffect)(()=>{var e,l;x(null!=(l=null==(e=d.current)?void 0:e.offsetHeight)?l:0)},[null==(l=d.current)?void 0:l.offsetHeight]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:ly().wrapper,refWrap:d,children:[h.length>0&&(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:h}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[a&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-2xl-bold xl:text-3xl-bold",children:a}),i&&(0,t.jsx)(s.A,{content:i,additionalClasses:ly().description}),r&&(0,t.jsxs)("p",{className:"xs:mt-32 md:!mt-64",children:[o("serviceSheet.serviceUpdate")," ",(0,eM.A)(r,"dd/MM/yyyy")]})]})]}),(0,t.jsx)(l_.I,{links:n,title:o("serviceSheet.serviceTitle"),fullWrapHeight:u,isReady:h.length>0})]})},InfoAndHelpServiceContent:q,InfoAndHelpServiceRelated:e=>{let{id:l,data:a}=e,{t:s}=(0,y.Bd)(),i=()=>null!=a?a:[];return 0===i().length?null:(0,t.jsx)(r.A,{id:l,isMainWrapper:!0,children:(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full md:col-span-full xl:col-span-full xs:gap-32 md:gap-32 xl:!gap-64",children:[(0,t.jsx)(n.A,{title:s("infoAndHelp.related.title"),scribbleName:"agora-line-straight",customClass:"text-2xl-light"}),(0,t.jsx)("div",{className:"flex xs:flex-col md:flex-col xl:flex-row gap-32",children:i().map(e=>(0,g.createElement)(p.CardSingle,{...(e=>{let l={variant:"white",mainAnchor:{children:s("infoAndHelp.related.buttonLabel"),href:e,target:"_blank",hasIcon:!0}};return e?l:{}})(e.url),key:e.id,className:"flex flex-1",title:(0,t.jsx)("span",{className:"text-xl-bold text-primary-900",children:e.title}),description:e.description}))})]})})}},tL={GuideResultTitle:e=>{var l,a,s,n;let{title:i,searchValue:r}=e,{globalState:o}=(0,g.useContext)(z.q),{t:c}=(0,y.Bd)(),d=(0,ed.useRouter)().asPath,{showLoader:u}=(0,p.useLoaderDialogContext)(),x=null==o||null==(l=o.searchPage)?void 0:l.labels,h=null==o||null==(a=o.searchPage)?void 0:a.emptyState,v=null!=(n=null==o||null==(s=o.searchPage)?void 0:s.totalResults)?n:0,f=(0,ec.s)(d,[c("global.home"),null!=i?i:c("global.practicalGuides")]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"".concat(eE().guideWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:f}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:mt-32 flex flex-col xs:gap-32 md:gap-64 xl:gap-64 xs:mb-0 xl:mb-64",children:[(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:i})}),(0,t.jsx)("div",{className:"mb-64",children:(0,t.jsx)(ea.A,{translations:{searchBarAriaLabel:(0,eb.BH)(null==x?void 0:x.t04_014,c("newsResult.inputLabel")),searchBarMicro:c("homePage.searchInputSearchBarMicro"),searchBar:c("newsResult.inputSearchPlaceholder")},searchValue:r,labelCustomClass:"label-search-bar-news",category:c("global.practicalGuides"),onButtonSearchClick:e=>{if(e){var l;u({title:c("searchResult.loader")}),null==(l=globalThis.window)||l.location.replace("".concat("/guias?search=").concat(e))}},onClearSearch:()=>{var e;u({title:c("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/guias"))}})})]})]}),(0,t.jsx)(eq.q,{ctaHelp:null==h?void 0:h.ctaHelp,totalResults:v})]})},GuideResultContent:e=>{var l,a,s,n,i;let{data:r}=e;return(0,t.jsx)(eD.$l,{currentResults:null==r||null==(l=r.hits)?void 0:l.hits,currentTotalResults:null!=(n=null==r||null==(a=r.hits)?void 0:a.total.value)?n:0,totalResults:null!=(i=null==r||null==(s=r.hits)?void 0:s.total.value)?i:0,categories:void 0,showNotFound:!0,show
1FilterDate:!1,showCategory:!1,showPill:!1})}},tB={InformationAndHelpResultTitle:e=>{var l,a,s,n;let{title:i,searchValue:r}=e,{globalState:o}=(0,g.useContext)(z.q),{t:c}=(0,y.Bd)(),d=(0,ed.useRouter)().asPath,{showLoader:u}=(0,p.useLoaderDialogContext)(),x=null==o||null==(l=o.searchPage)?void 0:l.labels,h=null==o||null==(a=o.searchPage)?void 0:a.emptyState,v=null!=(n=null==o||null==(s=o.searchPage)?void 0:s.totalResults)?n:0,f=(0,ec.s)(d,[c("global.home"),null!=i?i:c("global.informationAndHelp")]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"".concat(lT().informationAndHelpWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:f}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:mt-32 flex flex-col xs:gap-32 md:gap-64 xl:gap-64 xs:mb-0 xl:mb-64",children:[(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:i})}),(0,t.jsx)("div",{className:"mb-64",children:(0,t.jsx)(ea.A,{translations:{searchBarAriaLabel:(0,eb.BH)(null==x?void 0:x.t04_022,c("informationAndHelpResult.inputLabel")),searchBarMicro:c("homePage.searchInputSearchBarMicro"),searchBar:c("informationAndHelpResult.inputSearchPlaceholder")},searchValue:r,labelCustomClass:"label-search-bar-information-help",category:c("global.informationAndHelp"),onButtonSearchClick:e=>{if(e){var l;u({title:c("searchResult.loader")}),null==(l=globalThis.window)||l.location.replace("".concat("/informacoes-e-ajuda?search=").concat(e))}},onClearSearch:()=>{var e;u({title:c("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/informacoes-e-ajuda"))}})})]})]}),(0,t.jsx)(eq.q,{ctaHelp:null==h?void 0:h.ctaHelp,totalResults:v})]})},InformationAndHelpResultContent:e=>{var l,a,s,n,i,r,o,c,d;let{data:u}=e;return(0,t.jsx)(eD.$l,{currentResults:null==u||null==(l=u.hits)?void 0:l.hits,currentTotalResults:null!=(c=null==u||null==(s=u.hits)||null==(a=s.total)?void 0:a.value)?c:0,totalResults:null!=(d=null==u||null==(i=u.hits)||null==(n=i.total)?void 0:n.value)?d:0,categories:null==u||null==(o=u.aggregations)||null==(r=o.themesAndSubthemes)?void 0:r.themes.buckets,showNotFound:!0,show
1FilterDate:!1,showCategory:!1,showPill:!1,showTopics:!0})}},tP={LocalCareTitle:e=>{var l,a,s;let{hero:n,labels:i,links:r}=e,{t:o}=(0,y.Bd)(),c=(0,ed.useRouter)().asPath,d=(0,g.useRef)(null),[u,x]=(0,g.useState)(0),h=(0,ec.s)(c,[o("global.home"),o("global.localCare"),null!=(a=null==n?void 0:n.title)?a:""]);return(0,g.useEffect)(()=>{var e,l;x(null!=(l=null==(e=d.current)?void 0:e.offsetHeight)?l:0)},[null==(l=d.current)?void 0:l.offsetHeight]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:lG().localCareTitleWrapper,refWrap:d,children:[h.length>0&&(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:h}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[(null==n?void 0:n.title)&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:n.title}),(null==i?void 0:i.t06_001)&&(0,t.jsx)("p",{className:"mt-16 text-white text-m-regular",children:i.t06_001}),(null==n?void 0:n.updatedAt)&&(0,t.jsxs)("p",{className:"xs:mt-32 md:!mt-64 text-white text-m-regular",children:[null==i?void 0:i.t00_010," ",(0,eM.A)(n.updatedAt,"dd/MM/yyyy")]})]})]}),(0,t.jsx)(l_.I,{links:r,title:null!=(s=null==i?void 0:i.t00_039)?s:o("serviceSheet.serviceTitle"),fullWrapHeight:u,isReady:h.length>0})]})},LocalCareGeneralInformation:e=>{var l,a,n,i,o;let{generalInformation:c,operatingRestrictions:d,labels:u,id:m}=e,{t:x}=(0,y.Bd)(),h=(e,l)=>e?null==e?void 0:e.map(e=>(0,t.jsx)("p",{className:"flex",children:e},"".concat(l,"-").concat(e))):null;return c?(0,t.jsxs)(r.A,{id:m,children:[(0,t.jsx)("div",{className:"col-span-full",children:(null==u?void 0:u.t06_009)&&(0,t.jsx)("h2",{children:(0,t.jsx)(s.A,{additionalClasses:lU().customTitle,content:u.t06_009})})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4 xs:mt-0 md:mt-32 xl:mt-32",children:c.mainAddress&&(0,t.jsxs)(p.CardFrame,{label:null!=(l=null==u?void 0:u.t06_010)?l:x("localCareDetails.generalInformation.address"),mainAnchor:(()=>{var e,l,a,t,s;if(null==c||null==(e=c.mainAddress)?void 0:e.latitude)return{target:"_blank",href:(0,lQ.A)(Number(null==c||null==(l=c.mainAddress)?void 0:l.latitude),Number(null==c||null==(a=c.mainAddress)?void 0:a.longitude),"https://www.google.com/maps/dir/?api=1&destination={latitude},{longitude}"),children:null!=(t=null==u?void 0:u.t00_004)?t:x("searchResult.getDirections"),"aria-label":"".concat(null!=(s=null==u?void 0:u.t00_004)?s:x("searchResult.getDirections")," (").concat(x("serviceSheet.externalLinkAlt"),")"),hasIcon:!0,trailingIcon:"agora-line-external-link",trailingIconHover:"agora-solid-external-link",className:"!justify-start !items-center"}})(),children:[c.mainAddress.address&&(0,t.jsxs)("p",{children:[c.mainAddress.address," "]}),c.mainAddress.postalCode&&(0,t.jsx)("p",{children:c.mainAddress.postalCode}),c.mainAddress.district&&(0,t.jsx)("p",{children:c.mainAddress.district})]})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4 xs:mt-0 md:mt-32 xl:mt-32",children:c.contacts&&(0,t.jsx)(p.CardFrame,{label:null!=(a=null==u?void 0:u.t06_011)?a:x("localCareDetails.generalInformation.contacts"),mainAnchor:{children:null!=(n=null==u?void 0:u.t00_106)?n:"",href:"/contactos",target:"_self",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",trailingIconActive:"agora-line-arrow-right-circle",className:"!justify-start !items-center"},children:h(c.contacts,"contacts")})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-4 xs:mt-0 md:mt-32 xl:mt-32",children:c.schedule&&(0,t.jsx)(p.CardFrame,{label:null!=(i=null==u?void 0:u.t06_012)?i:x("localCareDetails.generalInformation.schedule"),children:h(c.schedule,"schedule")})}),d&&(0,t.jsx)("div",{className:"col-span-full mt-32",children:(0,t.jsx)(p.Accordion,{headingLevel:"h2",headingTitle:(0,t.jsx)(s.A,{content:null!=(o=null==u?void 0:u.t06_007)?o:""}),children:(0,t.jsx)("div",{className:"flex flex-col justify-start",children:(0,t.jsx)(s.A,{content:d.map(e=>e.description).join("\n\n")})})})})]}):null},LocalCareServicesAvailable:e=>{var l;let{labels:a,description:n,id:i,cards:o,servicesAndDivisions:c}=e,{t:d}=(0,y.Bd)(),[u,m]=(0,g.useState)(null),[x,h]=(0,g.useState)(!1),[p,v]=(0,g.useState)(te(a4.division,c)),[f,b]=(0,g.useState)(te(a4.service,c));(0,g.useEffect)(()=>{u&&(b([]),v([]),aK.getDivisions(u.code).then(e=>{e&&v(e.servicesAndDivisions)}).catch(e=>{C.Ay.logError(e)}
1),aK.getServices(u.code).then(e=>{e&&b(e.servicesAndDivisions)}).catch(e=>{C.Ay.logError(e)}))},[u]),(0,g.useEffect)(()=>{u&&((null==p?void 0:p.length)!==0||(null==f?void 0:f.length)!==0)&&requestAnimationFrame(()=>{(0,eC.A)("PointOfCareBanner")})},[p,f,u]),(0,g.useEffect)(()=>{0!==f.length&&(x||a7.A.getSearchResult(a5.nX.ContentByIds,{ids:f.map(e=>e.code),size:f.length}).then(async e=>{if(e.ok){h(!0);let l=await e.json();b(f.map(e=>j(e,l)))}}).catch(e=>{C.Ay.logError("Error fetching search results:",e)}))},[f]);let j=(e,l)=>{var a,t;let s=null==l||null==(t=l.hits)||null==(a=t.hits)?void 0:a.find(l=>l._id===e.code);return{...e,...s&&{description:s._source.description,url:s._source.url}}};return(0,t.jsxs)(r.A,{id:i,children:[(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex flex-col ",children:(null==a?void 0:a.t06_002)&&(0,t.jsx)("h2",{children:(0,t.jsx)(s.A,{additionalClasses:a6().customTitle,content:a.t06_002})})}),n&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex flex-col",children:n&&(0,t.jsx)(s.A,{content:n})}),((null==p?void 0:p.length)>0||(null==f?void 0:f.length)>0)&&(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 mt-32",children:[u&&(0,t.jsx)(a$,{name:u.name,logoUrl:u.logo}),(0,t.jsx)(tx,{entityName:null==u?void 0:u.name,listDivisions:p,listServices:f,labels:a})]}),o&&(0,t.jsx)(a2,{cards:o,labelServices:null!=(l=null==a?void 0:a.t06_013)?l:d("localCareDetails.gridContent.serviceButtonLabel"),onCardClick:e=>{h(!1),m(e)}})]})},LocalCareInfoBanner:e=>{let{dialog:l,id:a}=e,{title:n,body:i,imageUrl:o,button:c}=null!=l?l:{};return l?(0,t.jsx)(r.A,{id:a,children:(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.CardHighlight,{cardPosition:"middle",title:(0,t.jsx)(s.A,{content:n,additionalClasses:aJ().customTitle}),headingLevel:"h2",description:i,image:{src:o},highlightAreaPosition:"interior",links:[{children:null==c?void 0:c.description,href:null==c?void 0:c.url}]})})}):null}},tM={LocalCareResultTitle:e=>{var l,a,s;let{hero:n,searchValue:i}=e,{globalState:r}=(0,g.useContext)(z.q),{t:o}=(0,y.Bd)(),c=(0,ed.useRouter)().asPath,{showLoader:d}=(0,p.useLoaderDialogContext)(),u=null==r||null==(l=r.searchPage)?void 0:l.labels,x=(0,ec.s)(c,[o("global.home"),null!=(a=null==n?void 0:n.listingTitle)?a:o("global.localCare")]);return(0,t.jsxs)(m.A,{customClass:"".concat(lK().titleWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:x}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:mt-32 flex flex-col xs:gap-32 md:gap-64 xl:gap-64 xs:mb-0 xl:mb-64",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:null!=(s=null==n?void 0:n.listingTitle)?s:o("global.localCare")}),(null==n?void 0:n.description)&&(0,t.jsx)("p",{className:"text-white text-m-regular",children:null==n?void 0:n.description})]}),(0,t.jsx)("div",{children:(0,t.jsx)(ea.A,{translations:{searchBarAriaLabel:(0,eb.BH)(null==u?void 0:u.t04_001,o("localCareResults.inputLabel")),searchBarMicro:o("homePage.searchInputSearchBarMicro"),searchBar:o("localCareResults.inputSearchPlaceholder")},searchValue:i,labelCustomClass:"label-search-bar-news",category:o("global.localCare"),onButtonSearchClick:e=>{if(e){var l;d({title:o("searchResult.loader")}),null==(l=globalThis.window)||l.location.replace("".concat("/locais-de-atendimento?search=").concat(e))}},onClearSearch:()=>{var e;d({title:o("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/locais-de-atendimento"))}})}),(null==n?void 0:n.updatedAt)&&(0,t.jsxs)("span",{className:"text-white text-m-regular",children:[null==u?void 0:u.t00_010," ",(0,eM.A)(n.updatedAt,"dd.MM.yyyy")]})]})]})},LocalCareResultContent:e=>{var l,a,s,n;let{data:i}=e;return(0,t.jsx)(lY.A,{currentResults:null==i||null==(l=i.hits)?void 0:l.hits,totalResults:null!=(n=null==i||null==(s=i.hits)||null==(a=s.total)?void 0:a.value)?n:0})}},tF={ServiceResultTitle:e=>{var l,a,s,n;let{title:i,searchValue:r}=e,{globalState:o}=(0,g.useContext)(z.q),{t:c}=(0,y.Bd)(),d=(0,ed.useRouter)().asPath,{showLoader:u}=(0,p.useLoaderDialogContext)(),x=null==o||null==(l=o.searchPage)?void 0:l.labels,h=null==o||null==(a=o.searchPage)?void 0:a.emptyState,v=null!=(n=null==o||null==(s=o.searchPage)?void 0:s.totalResults)?n:0,f=(0,ec.s)(d,[c("global.home"),null!=i?i:c("global.services")]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{customClass:"".concat(ak().serviceWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:f}),(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:mt-32 flex flex-col xs:gap-32 md:gap-64 xl:gap-64 xs:mb-0 xl:mb-64",children:[(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold xl:text-3xl-bold",children:i})}),(0,t.jsx)("div",{className:"mb-64",children:(0,t.jsx)(ea.A,{translations:{searchBarAriaLabel:(0,eb.BH)(null==x?void 0:x.t04_012,c("servicesResult.inputLabel")),searchBarMicro:c("homePage.searchInputSearchBarMicro"),searchBar:c("servicesResult.inputSearchPlaceholder")},searchValue:r,labelCustomClass:"label-search-bar-news",category:c("global.services"),onButtonSearchClick:e=>{if(e){var l;u({title:c("searchResult.loader")}),null==(l=globalThis.window)||l.location.replace("".concat("/servicos?search=").concat(e))}},onClearSearch:()=>{var e;u({title:c("searchResult.loader")}),null==(e=globalThis.window)||e.location.replace("".concat("/servicos"))}})})]})]}),(0,t.jsx)(eq.q,{ctaHelp:null==h?void 0:h.ctaHelp,totalResults:v})]})},ServiceResultContent:e=>{var l,a,s,n,i;let{data:r}=e;return(0,t.jsx)(eD.$l,{currentResults:null==r||null==(l=r.hits)?void 0:l.hits,currentTotalResults:null!=(n=null==r||null==(a=r.hits)?void 0:a.total.value)?n:0,totalResults:null!=(i=null==r||null==(s=r.hits)?void 0:s.total.value)?i:0,categories:void 0,channelFilter:eD.Ms.ToggleFilter,showNotFound:!0,orderBy:eD.Mq.ServiceResults,showFilterDate:!1,showTopics:!0,showCategory:!1,showPill:!1})}},tR={CitizenStoreTitle:e=>{var l,a;let{title:i,subtitle:r,image:o,button:c,inputSearchLabel:d}=e;return(0,t.jsx)("div",{className:"".concat(en().citizenStoreWrapper),style:{backgroundImage:"url(".concat(null==o||null==(l=o.image)?void 0:l.url,")")},children:(0,t.jsx)(m.A,{children:(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex flex-col xs:gap-32 md:gap-32 xl:gap-32 xs:mb-0 z-10 ".concat(en().contentMask),children:(0,t.jsxs)("div",{className:"flex flex-col gap-32",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)(n.A,{title:i,scribbleName:"agora-bold-line",customClass:en().citizenStoreTitle,headingLevel:"h1",isMainTitle:!0}),r&&(0,t.jsx)(s.A,{content:r,additionalClasses:"".concat(en().citizenStoreTitle)})]}),(0,t.jsx)(ea.A,{translations:{searchBar:(0,et.t)("homePage.searchInputSearchBar"),searchBarMicro:(0,et.t)("homePage.searchInputSearchBarMicro"),searchBarAriaLabel:d},category:(0,et.t)("global.services"),channelType:el.j.Web,labelCustomClass:"label-search-bar-news",onButtonSearchClick:e=>{var l;null==(l=globalThis.window)||l.location.assign((0,X.O)(e,el.j.Web))}}),c&&(0,t.jsx)(p.Button,{className:"w-fit",onClick:()=>{window.open(null==c?void 0:c.url,"_self")},darkMode:!0,hasIcon:!0,leadingIcon:"agora-line-video-on",leadingIconHover:"agora-solid-video-on",children:null!=(a=null==c?void 0:c.description)?a:(0,et.t)("citizenStore.page.videoCallButtonText")})]})})})})},CitizenStoreCardSection:e=>{let{title:l,cards:a,footLink:s,buttonSeeMoreLabel:n}=e;return(0,t.jsx)(r.A,{children:(0,t.jsx)(Z,{title:l,cards:a,footLink:s,buttonSeeMoreLabel:n})})},CitizenStoreBigNumber:e=>{var l,a,s;let{bigNumbers:i,totalCards:r,businessCardCount:o,videoCallCount:c}=e,{t:d}=(0,y.Bd)();return(0,t.jsxs)(m.A,{isFirstWrapper:!1,customClass:"".concat(Q().citizenStoreBigNumberWrapper),children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.A,{title:null!=(s=null==(l=i.title)?void 0:l.markdown)?s:"",scribbleName:"agora-detail-movement",customClass:"text-white !text-2xl-semibold"})}),null==(a=i.data)?void 0:a.map((e,l)=>{var a;let s=((e,l)=>{switch(e){case Y.Total:return r.toString();case Y.Business:return o.toString();case Y.VideoCall:return c.toString();default:return l}}
1)(e.automaticValueIdentifier,e.description);return(0,t.jsx)("div",{className:"col-span-4 customCitizenCardFrame",children:(0,t.jsx)(p.CardFrame,{blockedLink:!0,className:Q().customCardFrame,headingLevel:"h3",label:(0,t.jsx)("span",{id:"bigNumber-".concat(l),"aria-labelledby":"bigNumber-".concat(l," bigNumber-").concat(l,"-description"),className:"text-2xl-bold text-white",children:s}),children:(0,t.jsx)("div",{id:"bigNumber-".concat(l,"-description"),className:"text-white",children:d(null!=(a=e.description)?a:"")})})},(0,V.A)())})]})},CitizenStoreServiceOnline:e=>{let{title:l,themesBuckets:a,themesWithIcon:s}=e,{t:i}=(0,y.Bd)();return(0,t.jsxs)(r.A,{customClassGrid:"xs:!gap-y-16 md:!gap-y-32",children:[(0,t.jsx)("div",{className:"col-span-full xs:pb-16 md:pb-0",children:(0,t.jsx)(n.A,{scribbleName:"agora-line-zig",title:l,customClass:"xs:pb-0 md:pb-32 xl:pb-32",customClasseScribble:"h-1/3"})}),(0,t.jsx)("div",{className:"col-span-full grid xs:!grid-cols-1 md:!grid-cols-2 xl:!grid-cols-4 xs:gap-16 md:gap-32",children:(0,t.jsx)("ul",{className:"contents",children:null==a?void 0:a.map(e=>{var l,a;let n=s.find(l=>l.theme.toLowerCase()===e.key.toLowerCase());return(0,t.jsx)("li",{className:ee().cardItem,children:(0,t.jsx)(p.CardGeneral,{isBlockedLink:!0,variant:"white",anchor:{children:(0,t.jsx)("span",{className:"text-m-bold",children:e.key}),target:"_self",href:(0,X.C)(e.key),leadingIcon:"agora-line-arrow-right-circle",leadingIconHover:"agora-solid-arrow-right-circle",hasIcon:!0,"aria-label":"".concat(i("homePage.findServiceCard.areaLabel_other")," ").concat(e.key),appearance:"link"},iconDefault:null!=(l=null==n?void 0:n.agoraIcon)?l:"agora-line-tag",iconHover:null!=(a=null==n?void 0:n.agoraIcon)?a:"agora-line-tag",titleText:"",descriptionText:""})},e.key)})})})]})}},tD={ProjectathonTitle:e=>{var l,a;let{title:n,subtitle:i,description:r,module:o}=e,c=(0,ed.useRouter)(),d=(0,g.useRef)(null),{globalState:x}=(0,g.useContext)(z.q),h=c.asPath,v=(0,ec.s)(h,[(0,et.t)("global.home"),(0,et.t)("SDGProjectathon.title")]);return(0,t.jsxs)(m.A,{customClass:"bg-primary-900 text-white",refWrap:d,children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent customBreadcrumb",darkMode:!0,items:v}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[i&&(0,t.jsx)("span",{className:"text-l-regular",children:i}),o&&(0,t.jsxs)("div",{className:"flex gap-16 items-center",children:[(0,t.jsx)("span",{className:"text-l-regular",children:null==o?void 0:o.name}),(null==x||null==(l=x.services)?void 0:l.isLGP)&&(0,t.jsx)(u(),{src:o.icon.src,alt:null!=(a=o.icon.alt)?a:"",width:o.icon.width,height:o.icon.height})]}),n&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-2xl-bold xl:text-3xl-bold ".concat(r?"mb-16":""),children:n}),r&&(0,t.jsx)(s.A,{additionalClasses:ao().classDescription,content:r})]})]})},ProjectathonListSection:e=>{let{title:l,items:a}=e,s={children:null==a?void 0:a.map(e=>{let l="li-".concat(e.label);return(0,t.jsx)(p.Item,{className:"[&_span]:py-0",children:(0,t.jsxs)(p.LinkWrapper,{className:"min-h-full",children:[(0,t.jsx)("a",{href:e.url,children:e.label}),(0,t.jsx)("p",{children:"\xa0- ".concat(e.code)})]})},l)})};return(0,t.jsx)(r.A,{children:(0,t.jsxs)("div",{className:"col-span-full",children:[(0,t.jsx)(n.A,{title:l,scribbleName:"agora-line-straight"}),(0,t.jsx)(ac,{...s})]})})}},tH={Title:e=>{let{title:l}=e,{t:a}=(0,y.Bd)(),s=(0,ed.useRouter)().asPath,n=(0,ec.s)(s,[a("global.home"),l]);return(0,t.jsxs)(m.A,{customClass:"".concat(aU().usefulLinesWrapper),children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full bg-transparent",items:n}),(0,t.jsx)("div",{className:"flex flex-col gap-32 col-span-full xl:col-span-7 mb-0 mt-0 md:mt-32",children:(0,t.jsx)("h1",{className:"text-primary-900 text-2xl-bold md:text-3xl-bold",children:l})})]})},InputSearchSection:e=>{let{searchInputTitle:l,searchInputSubtitle:a,onSearchChange:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:l&&(0,t.jsx)("h2",{children:(0,t.jsx)(s.A,{additionalClasses:aO().sectionTitle,content:l})})}),a&&(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(s.A,{additionalClasses:aO().sectionSubtitle,content:a})}),(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7",children:(0,t.jsx)(aG,{onChange:n})})]})},Content:e=>{let{helpLines:l=[],resultsLabel:a}=e,[n,i]=(0,g.useState)(1);(0,g.useEffect)(()=>{i(1)},[l]);let{t:r}=(0,y.Bd)(),o=Math.max(1,Math.ceil(l.length/10)),c=(n-1)*10,d=l.slice(c,c+10),u=0===l.length;return(0,t.jsxs)("div",{className:"col-span-full xl:col-span-8 flex flex-col gap-32 mt-32",children:[!u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:aq().resultsText,children:a}),(0,t.jsx)("div",{className:"flex flex-col gap-32 items-start customCardLink w-full",children:d.map((e,l)=>{var a;return(0,t.jsx)(p.CardLinks,{className:"w-full [&>*]:items-start",title:(0,t.jsx)("span",{className:"text-neutral-900 text-xl-bold",children:e.name}),headingLevel:"h3",description:(0,t.jsxs)("div",{className:aq().helpLineContent,children:[(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:aq().label,children:[r("serviceResult.channelLabels.phone"),":"," "]}),(0,t.jsx)(aD.A,{isIcon:!1,href:"tel:".concat(e.phoneNumber.replaceAll(/\s+/g,"")),children:e.phoneNumber})]}),(0,t.jsxs)("div",{className:"flex flex-row flex-wrap items-start gap-y-4",children:[(0,t.jsxs)("span",{className:"".concat(aq().label),children:[r("global.time"),":"]}),null==(a=e.time)?void 0:a.map((l,a)=>(0,t.jsx)("div",{className:0===a?"ml-[5px]":"basis-full",children:(0,t.jsx)(s.A,{content:l})},"".concat(e.name,"-").concat(a)))]}),e.description&&(0,t.jsx)(s.A,{content:e.description}),e.entity&&(0,t.jsxs)("p",{className:aq().entity,children:[(0,t.jsxs)("span",{children:[r("usefulLines.responsibleEntity"),": "]}),e.entity]})]})},"".concat(e.name,"-").concat(e.phoneNumber,"-").concat(l))})})]}),o>1&&(0,t.jsx)(aH.k,{totalPages:o,onChangePage:e=>{i(e+1)},customClass:"mt-16"}),u&&(0,t.jsx)(az.A,{title:r("entityFormSection.allServicesAvailable.noResults.title"),helpLabels:[r("entityFormSection.allServicesAvailable.noResults.helpDescription.helpLabel1"),r("entityFormSection.allServicesAvailable.noResults.helpDescription.helpLabel2")]})]})},Body:e=>{var l;let{statusMessage:a,helpLines:s=[],labels:n}=e,[i,o]=(0,g.useState)(""),{t:c}=(0,y.Bd)(),d=s.filter(e=>{var l;return e.name.toLowerCase().includes(i.toLowerCase())||(null==(l=e.description)?void 0:l.toLowerCase().includes(i.toLowerCase()))}),u=null==n||null==(l=n.t00_081)?void 0:l.replace(c("searchResult.labelPlaceholder"),d.length.toString());return(0,t.jsxs)(r.A,{children:[a&&(0,t.jsx)(D.z,{data:a}),(0,t.jsx)(tH.InputSearchSection,{searchInputTitle:null==n?void 0:n.t24_001,searchInputSubtitle:null==n?void 0:n.t24_002,onSearchChange:o}),s.length>0&&(0,t.jsx)(tH.Content,{helpLines:d,resultsLabel:null!=u?u:""})]})}},tE={Title:e=>{var l,a,s;let{pageTitle:i,hero:r,pageContentOrder:o,labels:c,breadcrumbsArray:d}=e,{description:u,updateDate:x}=null!=r?r:{},{t:h}=(0,y.Bd)(),v=(0,g.useRef)(null),{width:f}=(0,ey.A)(),b=f<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&f>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.A,{customClass:"bg-primary-900 text-white",refWrap:v,children:(0,t.jsxs)("div",{className:"flex flex-col gap-32 md:gap-64 col-span-full xl:col-span-7 ",children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:d}),(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold",children:i}),u&&(0,t.jsx)(n.A,{title:u,scribbleName:"agora-bold-line",customClass:eR().classDescription,isMainT
1itle:!1,headingLevel:"none"})]}),x&&(0,t.jsx)("span",{children:"".concat(null==c||null==(l=c.labelsGenericPage)?void 0:l.t00_010," ").concat((0,eM.A)(x,"dd.MM.yyyy"))})]})}),b&&(0,t.jsx)(eI,{title:null!=(s=null==c||null==(a=c.labelsGenericPage)?void 0:a.t00_039)?s:h("serviceSheet.serviceTitle"),links:(0,eA.P)(o)})]})},Body:e=>{let{pageContentOrder:l,statusMessage:a,indexTitle:s}=e,{t:n}=(0,y.Bd)(),{width:i}=(0,ey.A)(),o=i<Number(p.AgoraTailwindConfig.theme.screens.xl.replaceAll("px",""))&&i>=Number(p.AgoraTailwindConfig.theme.screens.xs.replaceAll("px",""));return(0,t.jsxs)(r.A,{isMainWrapper:!0,children:[!o&&(0,t.jsx)(eI,{title:null!=s?s:n("serviceSheet.serviceTitle"),links:(0,eA.P)(l)}),(0,t.jsx)(D.z,{data:a,customTitleClass:"text-xl-bold text-neutral-900"}),null==l?void 0:l.map(e=>(0,t.jsx)(g.Fragment,{children:e.content},e.href))]})},MainSection:e=>{let{id:l,title:a,body:n}=e;return(0,t.jsxs)("div",{id:l,className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:col-start-1 flex flex-col",children:[(0,t.jsx)("h2",{className:"pb-32",children:(0,t.jsx)(s.A,{additionalClasses:eP().customTitle,content:a})}),n&&(0,t.jsx)(s.A,{additionalClasses:eP().customDescription,content:n})]})},ContentSection:e=>{var l;let{id:a,content:n}=e;return(0,t.jsxs)("div",{id:a,className:"xs:col-span-full md:col-span-full xl:col-span-6 xl:col-start-1 flex flex-col mt-64",children:[(0,t.jsx)("h2",{className:eL().customTitle,children:null==n?void 0:n.sectionTitle}),null==n||null==(l=n.modularContents)?void 0:l.map((e,l)=>(0,t.jsxs)(g.Fragment,{children:[e.body&&(0,t.jsx)(s.A,{additionalClasses:eL().customDescription,content:e.body}),e.placeholder&&e.destinationUrl&&(0,t.jsx)("div",{className:"mt-16",children:(0,t.jsx)(p.Anchor,{appearance:"link",variant:"primary",href:e.destinationUrl,target:"_self",...(0,eh.J)(e.agoraIcon,e.agoraIcon,e.iconLocation),children:e.placeholder})})]},"content-".concat(a,"-").concat(l)))]})},FooterNotes:e=>{let{footerNotes:l}=e;return l&&(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"mt-64",children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-6 flex flex-col",children:[(0,t.jsx)("hr",{className:"h-[1px] bg-neutral-200 border-none mb-[64px]"}),(0,t.jsx)(s.A,{content:l})]})})}},tq={ConsularContactTitle:e=>{var l;let{title:a,subTitle:s,logoText:n,logo:i}=e;return(0,t.jsxs)(r.A,{isMainWrapper:!1,children:[(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-5 xl:col-span-7 flex flex-col gap-16",children:[s&&(0,t.jsx)("span",{className:"text-m-regular text-primary-900",children:s}),a&&(0,t.jsx)("h1",{className:"xs:text-xl-bold text-primary-600",children:a})]}),i&&n&&(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-5 flex flex-col gap-8 items-end",children:[(0,t.jsx)("span",{className:"text-s-regular text-neutral-700",children:n}),(0,t.jsx)("div",{className:"flex items-center gap-12",children:(null==i?void 0:i.url)&&(0,t.jsx)(u(),{src:i.url,alt:null!=(l=i.altText)?l:"",width:150,height:48,className:"h-48 object-cover"})})]})]})},ConsularContactContent:e=>{let{title:l,description:a,levelOne:n,labels:i}=e,[r,o]=(0,g.useState)(),[c,d]=(0,g.useState)(),[u,h]=(0,g.useState)();return((0,g.useEffect)(()=>{r===x.M.Form&&c&&N.getFormBuilder(c).then(e=>{e?(h(e),(null==e?void 0:e.formBuilder)?o(x.M.Form):o(x.M.Error)):(h(void 0),o(x.M.Error))}).catch(e=>{h(void 0),o(x.M.Error),C.Ay.logError("Erro ao enviar o formul\xe1rio",e)})},[r,c]),l||a)?(0,t.jsxs)(m.A,{customClass:"bg-primary-100 gap-64",children:[!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-start-2 xl:col-end-10 flex flex-col gap-24",children:[l&&(0,t.jsx)("h2",{className:"xs:text-l-bold md:text-l-bold xl:text-l-bold text-neutral-900",children:l}),a&&(0,t.jsx)(s.A,{content:a})]}),(0,t.jsx)(v,{workflowFormLevel:n,labels:i,setScreen:o,setFormId:d})]}),r&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(_,{formData:u,screen:r,setScreen:o})})]}):null},ConsularContactLevelForm:v},tz={ContactsTitle:e=>{var l;let{title:a,description:n,image:i}=e,{t:r}=(0,y.Bd)(),o=(0,ed.useRouter)().asPath,c=(0,ec.s)(o,[r("global.home"),null!=a?a:r("global.contacts")]);return(0,t.jsx)("div",{className:"".concat(eo().contactsTitleWrapper),style:{backgroundImage:"url(".concat(null!=(l=null==i?void 0:i.url)?l:"/assets/images/contacts.jpg",")")},children:(0,t.jsx)(m.A,{children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex flex-col xs:gap-32 md:gap-32 xl:gap-32 xs:mb-0 z-10",children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:c}),(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)("h1",{className:"xs:!text-2xl-bold md:!text-3xl-bold",children:null!=a?a:r("global.contacts")}
1),n&&(0,t.jsx)(s.A,{content:n,additionalClasses:"".concat(eo().contactsTitle)})]})]})})})},ContactsDetails:e=>{var l;let{title:a,description:s,usefulFeaturedLines:n,statusMessage:i,buttonLinkUsefulLines:o}=e;return a?(0,t.jsx)(r.A,{children:(0,t.jsx)(ei.A,{data:{typename:A.By.BodyBlockAndUtilityLines,title:a,body:null!=s?s:"",framedBlocks:null!=(l=null==n?void 0:n.map(e=>({title:e.lineName,description:"".concat(e.contacts," \n\n ").concat(e.additionalInformation)})))?l:[],buttonLink:o,titleMessages:null==i?void 0:i.title,messages:null==i?void 0:i.messages},headingLevel:"h2"})}):null},ContactsForm:e=>{let{title:l,description:a,formSteps:n,statusMessage:i}=e;return l?(0,t.jsxs)(r.A,{children:[(0,t.jsx)("h2",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex ",children:(0,t.jsx)(s.A,{additionalClasses:em().contactsFormTitle,content:l})}),(0,t.jsx)("div",{className:"xs:col-span-full xl:col-span-7 flex flex-col gap-32 ",children:a&&(0,t.jsx)(s.A,{content:a})}),(0,t.jsx)(D.z,{data:i,headingLevel:"h3"}),n&&(0,t.jsx)("div",{className:"flex flex-col gap-16 xs:col-span-full xl:col-start-9 xl:col-end-13",children:(0,t.jsx)(p.List,{listStyle:"number",children:n.map(e=>(0,t.jsx)(p.Item,{children:(0,ex.k)(e.step)},"step-".concat(e.step)))})})]}):null},ContactsOtherMatter:e=>{let{data:l}=e;if(!l)return null;let{titleWithStyles:a,description:i,buttonLinkWithIcon:r}=l||{};return(0,t.jsxs)(m.A,{isFirstWrapper:!1,customClass:"my-96 bg-primary-100 [&>div>div]:gap-16 xs:py-64 xs:px-32",children:[(0,t.jsxs)("div",{className:"xs:col-span-full xl:col-span-6 flex flex-col gap-8",children:[(0,t.jsx)(n.A,{title:a,scribbleName:"agora-detail-attention",customClass:"xs:pb-0 md:pb-32 xl:pb-32 mt-32"}),i&&(0,t.jsx)(s.A,{content:i})]}),(null==r?void 0:r.placeholder)&&r.destinationUrl&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(p.Anchor,{appearance:"link",variant:"primary",href:r.destinationUrl,target:"_self",...(0,eh.J)(r.agoraIcon,r.agoraIcon,r.iconLocation),children:r.placeholder})})]})},ContactsSuggestions:e=>{let{data:l}=e;if(!l)return null;let{title:a,description:s,agoraIcon:n,ctas:i}=l||{};return(0,t.jsxs)(r.A,{children:[(0,t.jsxs)("div",{className:"p-32 xs:col-span-full md:col-span-full xl:col-span-6 bg-neutral-100 text-neutral-900",children:[(0,t.jsx)(p.Icon,{className:"fill-primary-900",dimensions:"xxl","aria-hidden":!0,name:n}),(0,t.jsx)("h2",{className:"xs:text-l-bold md:text-xl-bold mt-32",children:a}),s&&(0,t.jsx)("p",{className:"mt-16",children:s})]}),(0,t.jsx)("div",{className:"xs:col-span-full xl:col-span-6 flex flex-col gap-16 h-full contactsCardGeneral",children:i.map(e=>(0,t.jsx)(p.CardGeneral,{titleText:e.title,descriptionText:e.description,variant:"primary-900",isCardHorizontal:!0,isBlockedLink:!0,anchor:{hasIcon:!0,href:e.buttonLink.destinationUrl,children:e.buttonLink.placeholder,target:"_self",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle"}},"btn-".concat(e.title)))})]})},ContactsGrid:e=>{let{items:l,formSteps:a,labels:n}=e,[i,o]=(0,g.useState)();(0,g.useEffect)(()=>{i&&requestAnimationFrame(()=>{(0,eC.A)("TopicTitle")})},[i]);let c=i?null==a?void 0:a[1]:null==a?void 0:a[0];if(!l||0===l.length)return null;let d=e=>null!=e?e:"agora-line-hardware-settings";return(0,t.jsxs)(r.A,{children:[c&&(0,t.jsx)("div",{id:"TopicTitle",className:"col-span-full flex items-center gap-16 xs:pb-16 md:pb-0",children:(0,t.jsxs)("h3",{className:"flex items-center gap-16",children:[(0,t.jsx)(p.Pill,{variant:"primary",size:"large",children:null==c?void 0:c.stepNumber}),(0,t.jsx)(s.A,{additionalClasses:eg().sectionTitle,content:null==c?void 0:c.step})]})}),!i&&(0,t.jsx)("div",{className:"col-span-full grid xs:!grid-cols-1 md:!grid-cols-2 xl:!grid-cols-4 xs:gap-16 md:gap-32",children:(0,t.jsx)("ul",{className:"contents",children:l.map(e=>(0,t.jsx)("li",{className:eg().cardItem,children:(0,t.jsx)("div",{className:"customCardGeneral",children:(0,t.jsx)(p.CardGeneral,{isBlockedLink:!0,anchor:{href:"#TopicTitle",target:"_self",trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",trailingIconActive:"agora-solid-arrow-right-circle",hasIcon:!0,iconOnly:!0,children:"",appearance:"link","aria-label":e.levelTitle,onClickCapture:l=>{l.preventDefault(),o(e)}},isCardHorizontal:!1,titleText:(0,t.jsx)("h4",{className:"text-l-bold text-neutral-900",children:e.levelTitle}),descriptionText:(0,t.jsx)(s.A,{additionalClasses:eg().cardDescription,content:e.levelDescription}),iconDefault:d(e.agoraIcon),iconHover:d(e.agoraIcon),iconActive:d(e.agoraIcon)})})},e.levelTitle))})}),i&&(0,t.jsx)(ej,{selectedTopic:i,setSelectedTopic:o,labels:n,items:l})]})}},tW={ContactsOtherThemesTitle:e=>{let{title:l,description:a}=e,{t:s}=(0,y.Bd)(),i=(0,ed.useRouter)(),r=(0,ec.s)(i.asPath,[s("global.home"),s("global.contacts"),null!=l?l:s("global.contactsOtherThemes")]);return(0,t.jsx)(m.A,{customClass:"bg-primary-100 text-white",children:(0,t.jsxs)("div",{className:"flex flex-col gap-32 md:gap-64 col-span-full xl:col-span-7",children:[(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",items:r}),(0,t.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-3xl-bold text-primary-900",children:null!=l?l:s("global.contactsOtherThemes")}),a&&(0,t.jsx)(n.A,{title:a,scribbleName:"agora-bold-line",customClass:tb().description,isMainT
1itle:!1,headingLevel:"none"})]})]})})},ContactsOtherThemesContent:e=>{var l,a,s,n,i;let{title:o,queryResult:c,levelOne:d,labels:u}=e,{globalState:m,setGlobalState:x}=(0,g.useContext)(z.q),{t:h}=(0,y.Bd)(),v=null!=(n=null==c||null==(a=c.hits)||null==(l=a.total)?void 0:l.value)?n:0,[f,b]=(0,g.useState)(null!=(i=null==m||null==(s=m.searchPageFetchFilters)?void 0:s.value)?i:"");(0,g.useEffect)(()=>{let e=setTimeout(()=>{if(f.length>=3)x(e=>{var l,a,t,s,n;return{...e,searchPageFetchFilters:{...tp(null!=(t=e.resetBaseFetchFilters)?t:{},null!=(s=null==(l=e.searchPageFetchFilters)?void 0:l.category)?s:"",null!=(n=null==u||null==(a=u.t00_093)?void 0:a.value)?n:""),value:f,start:"0"}}});else 0===f.length&&x(e=>{var l,a,t,s,n;return{...e,searchPageFetchFilters:{...tp(null!=(t=e.resetBaseFetchFilters)?t:{},null!=(s=null==(l=e.searchPageFetchFilters)?void 0:l.category)?s:"",null!=(n=null==u||null==(a=u.t00_093)?void 0:a.value)?n:""),start:"0"}}})},Number("1000"));return()=>{clearTimeout(e)}},[f]);let j=(null==u?void 0:u.t00_081)?u.t00_081.replace("#nResultados#",String(v)):"".concat(v," ").concat(h("searchResult.results"));return(0,t.jsx)(r.A,{isMainWrapper:!1,customClass:"xs:mt-64 md:mt-64 xl:mt-128",children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-full flex flex-col gap-32",children:[(0,t.jsx)("h2",{className:"xs:text-xl-bold md:text-2xl-bold xl:text-2xl-bold text-primary-900",children:o}),(0,t.jsx)(tv,{labels:u}),(0,t.jsx)("div",{className:"xs:w-full xl:!w-1/2",children:(0,t.jsx)(p.InputSearch,{id:"auto-complete",label:(0,eb.BH)(null==u?void 0:u.g09_004,h("homePage.searchInputSearchBar")),placeholder:(0,eb.BH)(null==u?void 0:u.g09_005,h("homePage.searchInputSearchBar")),value:f,onChange:e=>{b(e.target.value)}})}),c&&(0,t.jsxs)("div",{children:[(0,t.jsx)("hr",{className:"h-[2px] text-neutral-200 bg-neutral-200 mb-16"}),(0,t.jsx)("span",{className:"text-m-regular text-neutral-900",children:j})]}),(0,t.jsx)(th,{queryResult:c,loadMoreButtonLabel:null==u?void 0:u.t00_088,levelOne:d})]})})}},tO={InPersonServiceFormTitle:e=>{let{title:l,subtitle:a}=e;return(0,t.jsx)(r.A,{isMainWrapper:!1,children:(0,t.jsxs)("div",{className:"flex col-span-full flex-col gap-8",children:[(0,t.jsx)("p",{className:"text-primary-900",children:a}),(0,t.jsx)("h1",{className:"text-xl-bold text-primary-600",children:l})]})})},InPersonServiceFormContent:e=>{var l,a,n,i,r,o,c,d;let{generalInformation:u,organizationCode:h,pointOfCareCode:v,setScreen:f,questions:b}=e,{handleSubmit:j,control:C,setValue:N,watch:w,reset:_,getValues:A,formState:{errors:y}}=(0,e1.mN)({mode:"onChange",reValidateMode:"onChange",resolver:lE,defaultValues:{satisfaction:0,experience:0,service:!1,waitingTime:!1,courtesy:!1}}),{showLoader:S,hideLoader:T}=(0,p.useLoaderDialogContext)(),I=g.createRef(),k=null!=(c=null!=(o=null==(l=y.waitingTime)?void 0:l.message)?o:null==(a=y.courtesy)?void 0:a.message)?c:null==(n=y.service)?void 0:n.message,L=(0,et.t)("feedbackInPersonService.waitingTimeFeedback"),B=(0,et.t)("feedbackInPersonService.courtesyFeedback"),P=(0,et.t)("feedbackInPersonService.serviceFeedback"),{evaluationTitle:M,evaluationDescription:F,organizationLabel:R,organizationTitle:D,pointOfCareLabel:H,pointOfCareTitle:E}=null!=u?u:{},q=w("satisfaction"),z=async e=>{var l;await (null==(l=I.current)?void 0:l.executeAsync());let a={...e,poc:v,entity:h,token:e.token};S({title:(0,et.t)("serviceSheet.modalPendingTitle"),subtitle:(0,et.t)("serviceSheet.modalPendingSubTitle")}),lq.postSubmitForm(a).then(async e=>{if(e.ok){var l;_(),T(),f(x.M.Success),(0,lW.r)(h,v),null==I||null==(l=I.current)||l.reset()}else throw T(),f(x.M.Error),Error("Submit form failed: ".concat(e.status," ").concat(e.statusText))}).catch(()=>{var e;T(),f(x.M.Error),null==I||null==(e=I.current)||e.reset()})};return(0,t.jsx)(m.A,{customClass:"bg-primary-100 gap-64",children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-start-2 xl:col-end-10",children:[(0,t.jsxs)("div",{className:"col-span-full flex flex-col gap-[4px]",children:[(0,t.jsx)("h2",{className:"text-l-semibold text-primary-900",children:M}),(0,t.jsx)("p",{className:"text-m-regular text-neutral-900",children:F})]}),(0,t.jsxs)("div",{className:lD().serviceLocationSection,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{children:R}),(0,t.jsx)("p",{children:D})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{children:H}),(0,t.jsx)("p",{children:E})]})]}),(0,t.jsx)("form",{noValidate:!0,onSubmit:j(z),children:(0,t.jsxs)("div",{className:"flex flex-col gap-16 mt-32",children:[(null==b?void 0:b.question1)&&(0,t.jsx)(lz,{name:"satisfaction",question:null==b?void 0:b.question1,control:C}),(null==b?void 0:b.question1_1)&&0!==q&&5!==q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.A,{additionalClasses:lD().feedbackQuestion,content:null==b||null==(i=b.question1_1)?void 0:i.question}),(0,t.jsxs)(p.CheckboxGroup,{onChange:e=>{let{value:l,checked:a}=e.target;N(l,a,{shouldValidate:!0})},feedbackState:"danger",hasError:!!k,hasFeedback:!!k,feedbackText:(0,t.jsx)("span",{className:"text-s-regular",children:(0,et.t)(null!=k?k:"")}),children:[(0,t.jsx)(p.Checkbox,{label:L,value:"waitingTime",checked:A("waitingTime")},L),(0,t.jsx)(p.Checkbox,{label:P,value:"service",checked:A("service")},P),(0,t.jsx)(p.Checkbox,{label:B,value:"courtesy",checked:A("courtesy")},B)]})]}),(null==b?void 0:b.question2)&&(0,t.jsx)(lz,{name:"experience",question:null==b?void 0:b.question2,control:C}),(0,t.jsx)("div",{children:(0,t.jsx)(ls.A,{size:"invisible",sitekey:"6Leq-9UUAAAAABWXbl_lrLQiZkmG0
1xiOHloQv2gc",onChange:e=>{e&&N("token",e)},ref:I})}),(0,t.jsx)(p.Button,{type:"submit",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-line-arrow-right-circle",className:"mt-16 w-fit",children:null!=(d=null==b||null==(r=b.button)?void 0:r.placeholder)?d:""})]})})]})})}},tG={Title:e=>{let{title:l,subtitle:a}=e;return(0,t.jsx)(r.A,{isMainWrapper:!1,children:(0,t.jsxs)("div",{className:"flex col-span-full flex-col gap-8",children:[(0,t.jsx)("p",{className:"text-primary-900",children:a}),(0,t.jsx)("h1",{className:"text-xl-bold text-primary-600",children:l})]})})},Content:e=>{let{formData:l}=e,[a,s]=(0,g.useState)(x.M.Form);return(0,t.jsx)(m.A,{customClass:"bg-primary-100 gap-64",children:(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(_,{formData:l,screen:a,setScreen:s})})})}},tV={ThematicAreaTitle:e=>{var l;let{title:a,description:n,image:i,links:r,linksTitle:o}=e,{t:c}=(0,y.Bd)(),d=(0,g.useRef)(null),[u,x]=(0,g.useState)(0),h=(0,ed.useRouter)().asPath,v=(0,ec.s)(h,[c("global.home"),a]);return(0,g.useEffect)(()=>{var e,l;x(null!=(l=null==(e=d.current)?void 0:e.offsetHeight)?l:0)},[null==(l=d.current)?void 0:l.offsetHeight]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"".concat(tC().wrapper),style:{backgroundImage:"url(".concat(i,")")},children:(0,t.jsx)(m.A,{refWrap:d,children:(0,t.jsxs)("div",{className:"xs:col-span-full md:col-span-full xl:col-span-7 flex flex-col xs:gap-32 md:gap-32 xl:gap-32 xs:mb-0 ".concat(tC().contentMask),children:[v.length>0&&(0,t.jsx)(p.Breadcrumb,{className:"col-span-full",darkMode:!0,items:v}),(0,t.jsxs)("div",{className:"flex flex-col xs:col-span-full xs:mt-0 md:col-span-full md:mt-32 xl:col-span-7 xl:mt-32 ",children:[a&&(0,t.jsx)("h1",{className:"xs:text-2xl-bold md:text-2xl-bold xl:text-3xl-bold",children:a}),n&&(0,t.jsx)(s.A,{content:n,additionalClasses:tC().description})]})]})})}),(0,t.jsx)("div",{className:tC().cardLayer,children:(0,t.jsx)(l_.I,{links:r,title:o,fullWrapHeight:u,isReady:v.length>0})})]})},ThematicAreaDetails:e=>{let{data:l}=e,{title:a,anchor:s,bodies:i,images:o}=null!=l?l:{};return l?(0,t.jsxs)(r.A,{id:s,children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)("div",{className:"flex flex-col gap-32 xl:w-1/2",children:(0,t.jsx)(n.A,{title:null!=a?a:"",scribbleName:"agora-line-zig",customClass:"xs:px-32 md:!px-0 xl:px-0"})})}),(0,t.jsx)(tN.A,{data:{typename:A.By.BodyAndImagesBlock,title:null!=a?a:"",bodies:null!=i?i:[],images:null!=o?o:[]}})]}):null},ThematicAreaRelated:e=>{let{data:l,labels:a}=e,{t:s}=(0,y.Bd)(),{anchor:i,title:o,cards:c}=null!=l?l:{};if(!l)return null;let d="/pesquisa?category={category}".replace("{category}",s("global.thematicAreas"));return(0,t.jsxs)(r.A,{id:i,children:[(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)("div",{className:"flex flex-col gap-32 xl:w-1/2",children:(0,t.jsx)(n.A,{title:null!=o?o:"",scribbleName:"agora-line-straight"})})}),null==c?void 0:c.map(e=>(0,t.jsx)("div",{className:"xs:col-span-full md:col-span-4 xl:col-span-6 flex flex-col thematicCardGeneral",children:(0,t.jsx)(p.CardGeneral,{descriptionText:e.description,isBlockedLink:!0,variant:"neutral-100",titleText:(0,t.jsx)("h3",{className:"text-xl-bold text-neutral-900",children:e.title}),anchor:{children:a.t41_001,target:"_self",href:e.slug,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",hasIcon:!0,appearance:"link"}})},"card-".concat(e.title))),(0,t.jsx)("div",{className:"col-span-full flex flex-col items-start",children:(0,t.jsx)(p.Anchor,{href:d,target:"_self",hasIcon:!0,trailingIcon:"agora-line-arrow-right-circle",trailingIconHover:"agora-solid-arrow-right-circle",children:a.t00_111})})]})},ThematicAreaModular:tw.A}},81454:e=>{e.exports={cardItem:"citizenStoreServiceOnline_cardItem__s_gWP"}},82e3:e=>{e.exports={informationQuizTitle:"InformationQuiz_informationQuizTitle__SqBmC",informationQuizDescription:"InformationQuiz_informationQuizDescription__jGEwT"}},82462:e=>{e.exports={customCardFrame:"citizenStoreBigNumber_customCardFrame__f6Pc0",citizenStoreBigNumberWrapper:"citizenStoreBigNumber_citizenStoreBigNumberWrapper__fbFIQ"}},82950:e=>{e.exports={subButton:"howCanUse_subButton__Lu9Tn",accordionStyle:"howCanUse_accordionStyle__qJUc0",modalStyle:"howCanUse_modalStyle___HbAp",customButton:"howCanUse_customButton__I6Z49",customBenefit:"howCanUse_customBenefit__lksHv",customSubtitle:"howCanUse_customSubtitle__gBKo_",howCanUseDescription:"howCanUse_howCanUseDescription__GjSzw",serviceChannels:"howCanUse_serviceChannels__4djAC",contactInfo:"howCanUse_contactInfo__Rb3y_"}},90347:e=>{e.exports={customRelatedServicesCardsTitle:"relatedServicesCards_customRelatedServicesCardsTitle__0Naw3",customRelatedServicesCardsCardTitle:"relatedServicesCards_customRelatedServicesCardsCardTitle__MktFy"}},91101:e=>{e.exports={wrapper:"thematicAreaTitle_wrapper__LlXgz",contentMask:"thematicAreaTitle_contentMask__O1Vj9",cardLayer:"thematicAreaTitle_cardLayer__Qmuvr",description:"thematicAreaTitle_description__EJynd"}},91370:e=>{e.exports={usefulLinesInputSearch:"usefulLinesInputSearchSection_usefulLinesInputSearch__EXqxu",sectionTitle:"usefulLinesInputSearchSection_sectionTitle__bGGDP",sectionSubtitle:"usefulLinesInputSearchSection_sectionSubtitle__n9sxz"}},92014:e=>{e.exports={customTitle:"genericPageContent_customTitle__RsJ_E",customDescription:"genericPageContent_customDescription__BGKyw"}},92430:e=>{e.exports={customTitle:"localCareServicesAvailable_customTitle__ccrc5"}},92716:e=>{e.exports={cardItem:"localCareCardGrid_cardItem__wy_6c"}},92822:e=>{e.exports={customRelatedCategoryTitle:"relatedContents_customRelatedCategoryTitle__j6A4z",customRelatedCategoryDescription:"relatedContents_customRelatedCategoryDescription__QCd8D"}},93012:e=>{e.exports={otherInfoLinks:"otherInformation_otherInfoLinks__yqqVm",description:"otherInformation_description__aAwLV"}},93158:e=>{e.exports={newsRelated:"newsRelated_newsRelated__wa99s"}},94382:e=>{e.exports={helpLinesWrapper:"usefulLinesHelpLinesSection_helpLinesWrapper___k3rJ",resultsText:"usefulLinesHelpLinesSection_resultsText__YH6fr",helpLineCard:"usefulLinesHelpLinesSection_helpLineCard__6_BLY",helpLineContent:"usefulLinesHelpLinesSection_helpLineContent__Xisax",helpLineTitle:"usefulLinesHelpLinesSection_helpLineTitle__KYZhR",label:"usefulLinesHelpLinesSection_label__67Duu",ph
1oneLink:"usefulLinesHelpLinesSection_phoneLink__22OWy",costText:"usefulLinesHelpLinesSection_costText__VGFPM",descriptionText:"usefulLinesHelpLinesSection_descriptionText__iXpJi",entity:"usefulLinesHelpLinesSection_entity__WV5vO"}},95098:e=>{e.exports={serviceLocationSection:"inPersonServiceContent_serviceLocationSection__ZWXnt",feedbackQuestion:"inPersonServiceContent_feedbackQuestion__VEgK5"}},95966:e=>{e.exports={citizenStoreWrapper:"citizenStoreTitle_citizenStoreWrapper__D2jxx",citizenStoreTitle:"citizenStoreTitle_citizenStoreTitle__I4LYH"}},97414:e=>{e.exports={customCardGuide:"practicalGuidesHome_customCardGuide__4DT2V",customGuideContent:"practicalGuidesHome_customGuideContent__bJwYE",customGuideTitle:"practicalGuidesHome_customGuideTitle__4BSRU"}}}]);

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.