PageSourceSearch

https://www.rededorsaoluiz.com.br/chunk-EEG4SHEI.js

js rededorsaoluiz.com.br collected 2026-10-01 11:48:01 UTC 42,560 bytes, 5 lines download raw bytes

1import{a as Q}from"./chunk-4GNRZMB6.js";import{a as at,b as st}from"./chunk-F4EOFEK3.js";import{a as ot}from"./chunk-5OZAK6PW.js";import"./chunk-X4QZWDQB.js";import{j as nt,l as it}from"./chunk-SRWPQU7H.js";import"./chunk-S5OCG3DC.js";import"./chunk-2E3SZTII.js";import"./chunk-GLUCT7HC.js";import"./chunk-2G5OCZGV.js";import"./chunk-6UHH6AFZ.js";import"./chunk-LZOOOLYZ.js";import"./chunk-3DQSDYGY.js";import"./chunk-BGWQQC5A.js";import"./chunk-HY4TTPGO.js";import"./chunk-TH2GZ2VX.js";import{b as He}from"./chunk-WKCF2CWW.js";import"./chunk-FNLLHE7P.js";import"./chunk-IA5766VX.js";import"./chunk-XYS5O65U.js";import"./chunk-FR44NA7Q.js";import{e as $e}from"./chunk-W57ZAXHJ.js";import"./chunk-AQ3PUG46.js";import"./chunk-N7F7IHZR.js";import"./chunk-P4PNI5VC.js";import{f as et,q as tt}from"./chunk-7XA2USVS.js";import{a as qe,c as Ye}from"./chunk-U6H6AAMC.js";import{a as D}from"./chunk-R6BZ2IZI.js";import{a as Be,c as J,j as Ke,p as Je}from"./chunk-RDVQB42A.js";import"./chunk-GS6KNVDI.js";import{a as re,b as F}from"./chunk-X26QOURQ.js";import"./chunk-BWR5DE7I.js";import"./chunk-SPUOAS2Q.js";import"./chunk-QOE6XG7W.js";import"./chunk-GWI7RSJM.js";import"./chunk-KZXKBYFJ.js";import{c as Xe}from"./chunk-27EIJLSU.js";import{c as Qe}from"./chunk-Q7VS2Y4E.js";import"./chunk-UDO2L6K4.js";import"./chunk-4LEH3HAY.js";import"./chunk-R4ZDE4UX.js";import{a as Ve,b as Ze}from"./chunk-C4ZJV4CF.js";import{a as Ne}from"./chunk-AIHBMFKD.js";import"./chunk-2TU7UOGH.js";import{a as W,b as We}from"./chunk-D2VYGAU6.js";import{a as K}from"./chunk-SQPTOK3J.js";import{b as ze}from"./chunk-OWRUS23L.js";import{a as Ge}from"./chunk-RX6MP2TT.js";import{A as De,B as ke,D as je,ca as Ae,da as se,p as Re,u as Te}from"./chunk-AHT52CI5.js";import"./chunk-B5EUXSDW.js";import"./chunk-WT5T7W2W.js";import{k as q}from"./chunk-DXRONHRX.js";import{b as Fe}from"./chunk-SQBEQ7PF.js";import{b as v}from"./chunk-UKM23MQP.js";import{Ab as L,Bb as I,D as $,Da as s,Eb as w,Ja as x,K as ge,Ka as fe,L as G,Ma as Ce,N as T,Na as _e,Oa as d,Pa as c,Pb as Pe,Q as f,Qa as l,Qb as Se,R as z,Sb as V,Ua as ie,W as te,Wa as oe,X as ne,Xa as p,Xb as U,cc as we,d as M,dc as ye,ec as H,g as me,gb as S,ha as N,hb as h,ib as ve,j,k as A,ka as he,kb as be,la as y,pa as g,pb as Me,qa as a,qc as Le,rb as Oe,rc as Ie,sc as Ue,t as B,tb as xe,uc as E,vc as Ee,xc as ae,za as m}from"./chunk-RYQV473N.js";import"./chunk-5UTZN4TA.js";var X=class{};var P=(()=>{class t{constructor(e,n,i,o){this.estadosService=e,this.router=n,this.serverResponse=i,this.platformId=o,this.isServiceReady=new M(!1),this.unidadesLoaded=new M(!1),this.unidadesList=new M([]),this.estadosList=new M([]),this.bandeirasList=new M([]),this.unidadesFiltered=[],this.unidadesResult=[],this.basePath="unidades",this._filter=new X,this.filter=new M(this._filter),this.listStatus=new M({}),this.pageSeo=new M({title:"",rawTitle:"",description:""}),this.bandeirasLabel={hospital:"Hospitais Rede D\u2019Or",star:"Hospitais Star",oncologia:"Oncologia D\u2019Or"},this.estados=[]}setFilterFromParams(e){this.setBandeiraFilter(e.bandeira).setLocalFilter(e.local).applyFilters().updateListStatus(),this.unidadesLoaded.next(!0)}setBandeiraFilter(e=null){return e?Object.prototype.hasOwnProperty.call(this.bandeirasLabel,e)?this._filter.bandeira=e:(this._filter.bandeira=null,this.removeInvalidFilterFromUrl()):this._filter.bandeira=null,this}setLocalFilter(e){return e?(this.estados?this.estados.includes(e.toUpperCase()):"")?this._filter.localidade={slugCidadeEstado:e,uf:e.toUpperCase()}:(this._filter.localidade=null,this.removeInvalidFilterFromUrl()):this._filter.localidade=null,this}setSearchFilter(e){return this._filter.search=D(e.trim().toLowerCase())||null,this}removeInvalidFilterFromUrl(){H(this.platformId)&&this.serverResponse.setRedirect({url:this.getRouteFromFilter().join("/").replace(/\/\//g,"/")}),this.router.navigate(this.getRouteFromFilter())}applyFilters(){return this.filter.next(this._filter),this.bandeiraTitle=this.bandeirasLabel[this._filter.bandeira],this.unidadesFiltered=ot([...this.unidadesSite],"nome"),this.applyLocalidadeFilter().applyBandeiraFilter().updatePageSeo(),this._filter.search?this.applySearchOnResult():(this.unidadesResult=[...this.unidadesFiltered],this.unidadesList.next(this.unidadesResult)),this}applyLocalidadeFilter(){if(this._filter.localidade){let e=this._filter.localidade.slugCidadeEstado;this.unidadesFiltered=this.unidadesFiltered.filter(n=>n.uf?n.uf.toUpperCase()===e.toUpperCase():"")}return this}applyBandeiraFilter(){return this._filter.bandeira&&(this.unidadesFiltered=this.unidadesFiltered.filter(e=>e.categoria?e.categoria.toUpperCase()===this._filter.bandeira.toUpperCase():"")),this}applySearchOnResult(){let e=this._filter.search;if(!e)this.unidadesResult=[...this.unidadesFiltered];else{let n=this.filterByTerm(this.unidadesFiltered,e);this.unidadesResult=[...n]}this.unidadesList.next(this.unidadesResult),this.updateListStatus()}filterByTerm(e,n){let i=D(n).toLowerCase();return e.filter(o=>{let u=D(o.nome).toLowerCase();if(u.startsWith(i))return!0;let C=u.split(" ");return C.length>1&&D(C[1]).toLowerCase().startsWith(i)?!0:u.includes(i)})}updatePageSeo(){let e="",n="",i="",o=this._filter.bandeira,u=this._filter.localidade,C=o==="hospital"||o==="star"?"os":"as";if(!o&&!u){let _="Hospitais e Cl\xEDnicas Oncol\xF3gicas - Rede D\u2019Or";e=_,n=_,i=`Acesse e veja em nosso site todos os Hospitais e Cl\xEDnicas
2        Oncol\xF3gicas. Confira qual o Hospital ou Cl\xEDnica mais pr\xF3ximo de voc\xEA.`}else if(u&&!o){let _=u.uf,b=`Hospitais e Cl\xEDnicas Oncol\xF3gicas em ${_} - Rede D\u2019Or`,ee=this.estadosService.getEstadoExtensoOuUF(_);e=b,n=b,i=`Acesse e veja em nosso site todos os Hospitais e Cl\xEDnicas Oncol\xF3gicas
3        no ${ee}. Confira qual o Hospital ou Cl\xEDnica mais pr\xF3ximo de voc\xEA.`}else if(!u&&o){let _=o==="star"?" Rede D\u2019Or":"",b=`Lista de ${this.bandeiraTitle}${_}`;e=b,n=b,i=`Confira tod${C} ${C} ${this.bandeiraTitle} dispon\xEDveis na Rede D\u2019Or.
4        Veja todas as op\xE7\xF5es de ${this.bandeiraTitle} dispon\xEDveis pelo Brasil. Acesse e confira.`}else if(u&&o){let _=u.uf,b=`${this.bandeiraTitle} em ${_}`;e=`${b} - Encontre ${C} ${this.bandeiraTitle} mais pr\xF3xim${C}`,n=b,i=`Confira ${C} ${this.bandeiraTitle} mais pr\xF3xim${C}
5        de voc\xEA no ${_}. Acesse nosso site e veja as op\xE7\xF5es dispon\xEDveis.`}this.pageSeo.next({title:e,rawTitle:n,description:i})}updateListStatus(){let e=this.unidadesResult.length,n=e>1?"s":"",i=e?`<b>${e}</b> resultado${n} encontrado${n}`:"<b>Nenhum resultado encontrado</b>";this._filter.localidade&&!this._filter.bandeira&&(i+=" para <b>unidades</b>"),this._filter.bandeira&&(i+=` para <b>${this.bandeiraTitle}</b>`),this._filter.localidade&&(i+=` em <b>${this._filter.localidade.uf}</b>`),i+=".";let o=!e;return this.listStatus.next({status:i,nenhumResultado:o}),this}getRouteFromFilter(){let e=["/",this.basePath];return this._filter.bandeira&&e.push(this._filter.bandeira),this._filter.localidade&&e.push("em",this._filter.localidade.slugCidadeEstado),e}static{this.\u0275fac=function(n){return new(n||t)(T(Q),T(E),T(je),T(N))}}static{this.\u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ht(t,r){if(t&1&&l(0,"app-wp-sidebar",1),t&2){let e=p();s("sidebarContent",e.wpSidebarContent)}}var de=(()=>{class t{constructor(){this.wpSidebarContent=[]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-sidebar"]],inputs:{wpSidebarContent:"wpSidebarContent"},decls:1,vars:1,consts:[[3,"sidebarContent",4,"ngIf"],[3,"sidebarContent"]],template:function(n,i){n&1&&m(0,ht,1,1,"app-wp-sidebar",0),n&2&&s("ngIf",i.wpSidebarContent)},dependencies:[V,nt]})}}return t})();function _t(t,r){if(t&1&&l(0,"rdsl-select",0)(1,"rdsl-select",1)(2,"rdsl-search",2),t&2){let e=p();s("options",e.estados)("fControl",e.estadosControl)("disableValidation",!0),g(),s("options",e.bandeiras)("fControl",e.bandeirasControl)("disableValidation",!0),g(),s("searchControl",e.searchControl)}}function vt(t,r){t&1&&l(0,"rdsl-inline-loader")}var ce=(()=>{class t{constructor(e,n,i){this.router=e,this.unidadesListService=n,this.geolocService=i,this.estadosControl=new q(""),this.bandeirasControl=new q(""),this.searchControl=new q(""),this.usedGeoloc=!1}ngOnInit(){this.readySubscription=A([this.geolocService.isChecked,this.unidadesListService.isServiceReady]).pipe(B(([e,n])=>e&&n)).subscribe(()=>{this.searchControl.setValue(""),this.init()})}init(){this.filterSubscription=this.unidadesListService.filter.subscribe(e=>Promise.resolve(null).then(()=>this.setFilter(e))),this.unidadesListService.estadosList.subscribe(e=>{this.estados=e.map(n=>({value:n.toLowerCase(),label:n}))}),this.configGeolocation(),this.unidadesListService.bandeirasList.subscribe(e=>{let n=e.map(o=>({value:o,label:this.unidadesListService.bandeirasLabel[o]})),i=Object.keys(this.unidadesListService.bandeirasLabel).map(o=>n.find(u=>u.value===o)).filter(o=>o!==void 0);this.bandeiras=i})}setFilter(e){this.removeControlEvents(),this.filter=e,this.updateControls(),this.applyControlEvents()}applyControlEvents(){this.estadosControlSubscription=this.estadosControl.valueChanges.subscribe(e=>this.changeEstado(e)),this.bandeirasControlSubscription=this.bandeirasControl.valueChanges.subscribe(e=>this.changeBandeira(e)),this.searchControlSubscription=this.searchControl.valueChanges.subscribe(e=>this.changeSearch(e))}updateControls(){return this.updateLocalizacaoControls(),this.updateBandeiraControls(),this}updateLocalizacaoControls(){let e=this.filter.localidade?.slugCidadeEstado;e?this.estadosControl.setValue(e):this.estadosControl.setValue("")}updateBandeiraControls(){let e=this.filter.bandeira;e?this.bandeirasControl.setValue(e):this.bandeirasControl.setValue("")}changeBandeira(e){this.unidadesListService.setBandeiraFilter(e),this.router.navigate(this.unidadesListService.getRouteFromFilter())}changeEstado(e){this.unidadesListService.setLocalFilter(e),this.router.navigate(this.unidadesListService.getRouteFromFilter())}changeSearch(e){this.unidadesListService.setSearchFilter(e).applySearchOnResult()}configGeolocation(){(this.geolocService.permission===re.GRANTED||this.geolocService.permission===re.PROMPT)&&this.geolocService.switchStatus.value&&this.router.routerState.snapshot.url==="/unidades"&&!this.usedGeoloc&&this.estados.some(e=>e.label===this.geolocService.address.value.state.shortCode)&&(this.usedGeoloc=!0,this.router.navigate(["/","unidades","em",this.geolocService.address.value.state.shortCode.toLowerCase()]))}
5removeControlEvents(){this.estadosControlSubscription?.unsubscribe(),this.bandeirasControlSubscription?.unsubscribe(),this.searchControlSubscription?.unsubscribe()}ngOnDestroy(){this.searchControl.setValue(""),this.filterSubscription?.unsubscribe(),this.readySubscription?.unsubscribe(),this.removeControlEvents()}static{this.\u0275fac=function(n){return new(n||t)(a(E),a(P),a(F))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-filters"]],decls:3,vars:3,consts:[["label","UF",3,"options","fControl","disableValidation"],["label","TIPO DE UNIDADE",3,"options","fControl","disableValidation"],["label","NOME DA UNIDADE",3,"searchControl"]],template:function(n,i){n&1&&(m(0,_t,3,7),L(1,"async"),m(2,vt,1,0)),n&2&&x(0,I(1,1,i.geolocService.isChecked)===!0?0:2)},dependencies:[J,Be,qe,U],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column}[_nghost-%COMP%]   rdsl-select[_ngcontent-%COMP%], [_nghost-%COMP%]   rdsl-search[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 718px){[_nghost-%COMP%]{flex-direction:row;gap:20px}[_nghost-%COMP%]   rdsl-select[_ngcontent-%COMP%]:nth-child(1){flex:0 0 100px}[_nghost-%COMP%]   rdsl-select[_ngcontent-%COMP%]:nth-child(2){flex:0 0 250px}}"]})}}return t})();function Ot(t,r){t&1&&(d(0,"div",5),l(1,"app-unidades-filters"),c())}function xt(t,r){t&1&&l(0,"router-outlet")}function Pt(t,r){if(t&1&&l(0,"app-unidades-sidebar",6),t&2){let e=p(3);s("wpSidebarContent",e.unidadesData==null||e.unidadesData.wp==null?null:e.unidadesData.wp.sidebar)}}function St(t,r){if(t&1&&m(0,Pt,1,1,"app-unidades-sidebar",6),t&2){let e=p(2);x(0,!(e.unidadesData==null||e.unidadesData.wp==null)&&e.unidadesData.wp.sidebar?0:-1)}}function wt(t,r){if(t&1&&(l(0,"rdsl-template-content-sidebar",4),m(1,Ot,2,0,"ng-template",null,0,w)(3,xt,1,0,"ng-template",null,1,w)(5,St,1,1,"ng-template",null,2,w)),t&2){let e=S(2),n=S(4),i=S(6),o=p();s("pageTitle",o.pageTitle)("pageSubtitle",o.pageSubtitle)("headerImageUrl",o.headerImageUrl)("headerActions",e)("pageContent",n)("sidebarContent",i)}}function yt(t,r){t&1&&l(0,"rdsl-inline-loader")}var le=(()=>{class t{constructor(e,n,i,o,u,C,_,b,ee,pt,ut){this.backendService=e,this.breadcrumbsService=n,this.gtm=i,this.location=o,this.log=u,this.seo=C,this.transferStateService=_,this.unidadesService=b,this.unidadesListService=ee,this.errorHandler=pt,this.platformId=ut,this.isLoading=!0,this.showContent$=this.errorHandler.error$.pipe(j(mt=>mt===null),$(!0)),this.theme=Ae.REDE,this.unidadesPageTSKey="UNIDADES_PAGE_DATA"}ngOnInit(){this.mainSubscription=A([this.unidadesService.unidadeAtiva$]).subscribe(([e])=>{e&&this.handleInitialData()})}handleInitialData(){this.fetchInitialData().subscribe({next:e=>{e.wp?(this.unidadesData=e,H(this.platformId)&&this.transferStateService.setKey(this.unidadesPageTSKey,e),this.handleData(),this.init()):this.errorHandler.setError(se.NOT_FOUND,"404")},error:e=>{this.isLoading=!1;let n=JSON.stringify(e,Fe());this.log.logMsg(n,"ERROR - UnidadesMainComponent"),this.gtm.setErrorEvent("CRITICAL","UNIDADES",n),this.errorHandler.setError(se.SERVER_RESPONSE,"500")},complete:()=>{this.isLoading=!1}})}fetchInitialData(){let e=this.backendService.getUnidadesList();if(ye(this.platformId)){let n=this.transferStateService.getKey(this.unidadesPageTSKey);n&&(this.transferStateService.remove(this.unidadesPageTSKey),e=me(n))}return e}handleData(){this.pageSubtitle=this.unidadesData.wp?.subtitulo??"Confira abaixo a lista de Unidades Rede D\u2019Or S\xE3o Luiz",this.headerImageUrl=this.unidadesData.wp?.headerImage??`${v.assets_img}bg_busca_unidade.webp`,this.unidadesListService.estados=this.unidadesData.estados,this.unidadesListService.estadosList.next(this.unidadesData.estados),this.unidadesListService.bandeirasList.next(this.unidadesData.bandeiras),this.unidadesListService.unidadesSite=this.unidadesData.unidades}init(){this.seoSubscription=this.unidadesListService.pageSeo.subscribe(e=>{e.title&&(this.setSeo(e),this.setBreadcrumbs())}),this.unidadesListService.isServiceReady.next(!0),this.log.logLoad("UnidadesMainComponent")}setBreadcrumbs(){let e=[{label:"Unidades",helper:"Voc\xEA est\xE1 aqui"}];this.breadcrumbsService.showBreadcrumbs(),this.breadcrumbsService.setBreadcrumbs(e)}setSeo(e){let n={title:{text:e.title},description:e.description};this.seo.setFullSeo(n),this.pageTitle=e.rawTitle}ngOnDestroy(){this.breadcrumbsService.clearAndHideBreadcrumbs(),this.seoSubscription?.unsubscribe(),this.mainSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(a(De),a(He),a(K),a(Pe),a(Te),a(ke),a(Ge),a(ze),a(P),a(Ne),a(N))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-main"]],decls:4,vars:3,consts:[["headerActions",""],["pageContent",""],["sidebarContent",""],["pageTitle","Unidades","component","UnidadesMainComponent","returnLabel","P\xE1gina Inicial"],[3,"pageTitle","pageSubtitle","headerImageUrl","headerActions","pageContent","sidebarContent"],[1,"header-actions"],[3,"wpSidebarContent"]],template:function(n,i){n&1&&(m(0,wt,7,6),L(1,"async"),m(2,yt,1,0),l(3,"app-error-handler",3)),n&2&&x(0,i.unidadesData!=null&&i.unidadesData.wp&&I(1,1,i.showContent$)?0:i.isLoading?2:-1)},dependencies:[Ue,at,J,Ve,de,ce,U],styles:["rdsl-inline-loader[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:40px}"]})}}return t})();var ct=(()=>{class t{constructor(e,n,i){this.route=e,this.algoliaSearchApiService=n,this.estadosService=i,this.urlExame=v.url_agendamento_exame,this.urlAgendamento=v.url_agendamento,this.routeSubscription=null,this.algoliaSubscription=null}ngOnInit(){this.routeSubscription=this.route.events.pipe(B(e=>e instanceof Le),j(e=>e.url),$(this.route.url)).subscribe(e=>{let n=e.split("/em/")[1]?.toUpperCase(),i=this.estadosService.getEstadoExtensoOuUF(n);n&&i&&(this.algoliaSubscription=this.getIDAlgolia(i).subscribe(o=>{if(o.hits.length){let u=o.hits[0].idLocation;this.urlAgendamento=this.updateUrl(this.urlAgendamento,u),this.urlExame=this.updateUrl(this.urlExame,u)}else this.urlAgendamento=v.url_agendamento,this.urlExame=v.url_agendamento_exame}))})}updateUrl(e,n){let i=new URL(e);return i.searchParams.set("local",n),i.toString()}getIDAlgolia(e){return this.algoliaSearchApiService.search(e,v.algoliaIndex.locais_unificado,{filters:"NOT type: Bairro AND NOT type: Cidade AND NOT type: Hospital",hitsPerPage:1})}ngOnDestroy(){this.routeSubscription?.unsubscribe(),this.algoliaSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(a(E),a($e),a(Q))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-list-generic-card"]],standalone:!0,features:[Me],decls:8,vars:2,consts:[[1,"generic-card"],[1,"ctas"],["rdsitelink","","target","_blank",1,"rdsl-button",3,"href"],["rdsitelink","","target","_blank",1,"rdsl-button-outline",3,"href"]],template:function(n,i){n&1&&(d(0,"div",0)(1,"h3"),h(2,"Cuidado m\xE9dico de excel\xEAncia e exames com precis\xE3o e seguran\xE7a"),c(),d(3,"div",1)(4,"a",2),h(5,"Marque uma consulta"),c(),d(6,"a",3),h(7,"Marque seus exames"),c()()()),n&2&&(g(4),s("href",i.urlAgendamento,y),g(2),s("href",i.urlExame,y))},styles:[".generic-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:16px;width:100%;height:auto;background-color:#f6f6f6;padding:16px;border-radius:4px}.generic-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:150%;letter-spacing:.25px;color:#262626;padding:0}.generic-card[_ngcontent-%COMP%]   .ctas[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%;gap:8px}.generic-card[_ngcontent-%COMP%]   .ctas[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:100%;font-size:14px;font-weight:500;line-height:135%;letter-spacing:.56px;text-transform:none;padding:8px;height:auto}.generic-card[_ngcontent-%COMP%]   .ctas[_ngcontent-%COMP%]   a.rdsl-button-outline[_ngcontent-%COMP%]{background-color:#fff}@media screen and (min-width: 718px){.generic-card[_ngcontent-%COMP%]{flex-direction:row;padding:16px 8px;margin-bottom:20px}.generic-card[_ngcontent-%COMP%]   .ctas[_ngcontent-%COMP%]{justify-content:flex-end;flex-direction:row;width:auto}.generic-card[_ngcontent-%COMP%]   .ctas[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:180px}}"]})}}return t})();function Ut(t,r){if(t&1&&l(0,"rdsl-card-unidade-novo",3),t&2){let e=p(),n=S(2),i=S(4);s("cardImage",e.cardImage)("cardTitle",e.cardTitle)("cardRoute",e.cardRoute)("addressContent",n)("actionContent",e.hasExame||e.hasConsulta?i:null)("hasGeolocation",e.hasGeolocation)("useOncoFallbackImage",e.useOncoFallbackImage)}}function Et(t,r){t&1&&(d(0,"p"),h(1,"Unidade mais pr\xF3xima a voc\xEA"),c())}function Ft(t,r){if(t&1&&(d(0,"div",4)(1,"div",5),l(2,"rdsl-icon",6),c(),d(3,"div",7)(4,"h4"),h(5,"Endere\xE7o da unidade"),c(),d(6,"address"),h(7),c(),d(8,"span"),h(9),c(),m(10,Et,2,0,"p",8),c()()),t&2){let e=p();g(7),ve(e.unidade.endereco),g(2),be("",e.unidade.cidade,"/",e.unidade.uf,""),g(),s("ngIf",e.hasGeolocation)}}function Rt(t,r){if(t&1){let e=ie();d(0,"a",11),oe("click",function(){te(e);let i=p(2);return ne(i.setGtmEvent("Marque um exame"))}),h(1," Marque um exame "),c()}if(t&2){let e=p(2);s("href",e.urlExame,y)}}function Tt(t,r){if(t&1){let e=ie();d(0,"a",12),oe("click",function(){te(e);let i=p(2);return ne(i.setGtmEvent("Marque uma consulta"))}),h(1," Marque uma consulta "),c()}if(t&2){let e=p(2);s("href",e.urlConsulta,y)}}function Dt(t,r){if(t&1&&m(0,Rt,2,1,"a",9)(1,Tt,2,1,"a",10),t&2){let e=p();s("ngIf",e.hasExame),g(),s("ngIf",e.hasConsulta)}}var pe=(()=>{class t{get unidade(){return this._unidade}set unidade(e){this._unidade=e,this.setUnidadesDetail(e)}constructor(e,n){this.geolocService=e,this.gtm=n,this.useOncoFallbackImage=!1,this.hasConsulta=!1,this.hasExame=!1,this.hasGeolocation=!1}setUnidadesDetail(e){this.cardImage=e.logo||null,this.cardTitle=e.nome||null,this.cardRoute=e.site||null;let n=e.idMotion,i=e.idMotionConsulta,o=e.idMotionExame,u=e.agendamentoConsulta,C=e.agendamentoExame;this.urlConsulta=this.getUrlConsulta(v.url_agendamento,u,n,i),this.hasConsulta=!!this.urlConsulta,this.urlExame=this.getUrlexame(v.url_agendamento_exame,C,n,o),this.hasExame=!!this.urlExame}getUrlConsulta(e,n,i,o){return o?`${e}?unidadem=${o}`:n==="S"&&i?`${e}?unidadem=${i}`:""}getUrlexame(e,n,i,o){return o?`${e}?unidadem=${o}`:n==="S"&&i?`${e}?unidadem=${i}`:""}sethasGeolocation(){this.hasGeolocation=this.geolocService.geolocation.value&&this.geolocService.switchStatus.value}setGtmEvent(e){this.gtm.setDimensionWithObject({event:"select_unit",unit_name:this._unidade.nome,option_select:e,region:this._unidade.uf})}static{this.\u0275fac=function(n){return new(n||t)(a(F),a(K))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-list-item"]],inputs:{unidade:"unidade",useOncoFallbackImage:"useOncoFallbackImage"},decls:5,vars:1,consts:[["address",""],["actions",""],[3,"cardImage","cardTitle","cardRoute","addressContent","actionContent","hasGeolocation","useOncoFallbackImage",4,"ngIf"],[3,"cardImage","cardTitle","cardRoute","addressContent","actionContent","hasGeolocation","useOncoFallbackImage"],[1,"rdsl-card-unidade-novo-content-endereco-details"],[1,"rdsl-card-unidade-novo-content-endereco-details-distancia"],["name","icon-agm-unidade",1,"icon-24"],[1,"rdsl-card-unidade-novo-content-endereco-details-info"],[4,"ngIf"],["rdsitelink","","class","rdsl-button-outline","target","_blank",3,"href","click",4,"ngIf"],["rdsitelink","","class","rdsl-button","target","_blank",3,"href","click",4,"ngIf"],["rdsitelink","","target","_blank",1,"rdsl-button-outline",3,"click","href"],["rdsitelink","","target","_blank",1,"rdsl-button",3,"click","href"]],template:function(n,i){n&1&&m(0,Ut,1,7,"rdsl-card-unidade-novo",2)(1,Ft,11,4,"ng-template",null,0,w)(3,Dt,2,2,"ng-template",null,1,w),n&2&&s("ngIf",i.unidade)},dependencies:[V,W,et,Re],styles:['.rdsl-card-unidade-novo[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(2,auto);grid-template-areas:"content" "action";width:100%;height:auto;box-shadow:0 4px 4px #00000040;border:1px solid #F2F2F2;border-radius:8px;overflow:hidden;margin-bottom:30px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content.has-action[_ngcontent-%COMP%]{grid-template-rows:repeat(4,auto) 3px}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content.has-action[_ngcontent-%COMP%]{grid-template-rows:repeat(3,auto) 3px}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content.has-action[_ngcontent-%COMP%]:after{grid-area:borda;content:"";background:linear-gradient(to right,#df8d2c,#906c4e00),#fff}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]{grid-area:content;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,auto) 0;grid-template-areas:"imagem" "info" "convenio" "endereco" "borda";justify-content:center;width:100%;height:auto}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]{grid-template-columns:2fr 5fr;grid-template-rows:repeat(3,auto) 0;grid-template-areas:"imagem info" "imagem convenio" "imagem endereco" "borda borda";justify-content:start}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]{grid-area:imagem;display:flex;justify-content:center;align-items:center;width:100%;height:auto;padding:16px 50px}@media screen and (min-width: 321px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]{padding:16px 75px}}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]{padding:0 32px}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;background-color:#fff;width:100%;overflow:hidden}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   rdsl-image[_ngcontent-%COMP%]{margin:auto;width:100%}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:auto}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#004186;stroke-width:3px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $accent !important}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]   a[class=rdsl-card-unidade-novo-content-info][_ngcontent-%COMP%]{grid-area:info;display:grid;justify-items:center;align-items:center;grid-template-columns:1fr;grid-template-rows:repeat(3,auto);grid-template-areas:"setor" "unidade";width:100%;height:auto;padding:0 16px 16px}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]   a[class=rdsl-card-unidade-novo-content-info][_ngcontent-%COMP%]{justify-items:flex-start;padding:16px 16px 16px 0}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]   a[class=rdsl-card-unidade-novo-content-info][_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{grid-area:setor;color:#004186;font-weight:500;font-size:18px;line-height:28px;padding:0;display:block;display:-webkit-box;max-width:100%;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content[_ngcontent-%COMP%]   a[class=rdsl-card-unidade-novo-content-info][_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{grid-area:unidade;color:#828282;font-weight:400;font-size:14px;line-height:125%}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]{padding:8px;margin:0 16px 8px}.rdsl-c
5ard-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#000;font-size:12px;font-weight:700;line-height:15px;letter-spacing:0px;text-align:left;padding:0}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;text-shadow:0 0 1.5px #B7B7B7,0 0 1.5px #B7B7B7,0 0 1.5px #B7B7B7,0 0 1.5px #B7B7B7;letter-spacing:2px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-top:10px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item[_ngcontent-%COMP%]{flex:1 1 50%;display:flex;align-items:center;color:#4a4a4a;font-size:12px;font-weight:400;line-height:15px;text-align:left;margin:0 0 8px}@media screen and (min-width: 718px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item[_ngcontent-%COMP%]{flex:unset;margin:0 10px 0 0}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#5fd290;stroke-width:10px;margin-right:4px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]   cura-icon[_ngcontent-%COMP%]{--color: #5FD290 !important}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item.not-available[_ngcontent-%COMP%]{color:#bdbdbd}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item.not-available[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#bdbdbd}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura-container-item.not-available[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $gray !important}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{display:none}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;gap:8px;font-weight:500;font-size:14px;line-height:16px;color:#004186}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#004186}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $accent !important}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura.total[_ngcontent-%COMP%]{border-left:4px solid #5FD290}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura.partial[_ngcontent-%COMP%]{border-left:4px solid #FFCF3C}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-cobertura.none[_ngcontent-%COMP%]{border-left:4px solid #EB5757}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:16px 16px 24px 4px;border-top:1px solid #E0E0E0}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco[_ngcontent-%COMP%]{padding:16px 0 24px;margin-right:16px}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details[_ngcontent-%COMP%]{display:grid;justify-items:center;align-items:center;grid-template-columns:auto 1fr;grid-template-rows:auto;grid-template-areas:"distancia info"}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-distancia[_ngcontent-%COMP%]{grid-area:distancia;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 16px;width:100%;height:auto}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-distancia[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#828282;stroke-width:8px}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-distancia[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $medium-gray !important}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-distancia[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#4f4f4f;font-weight:700;font-size:12px;line-height:14px;padding:0;white-space:nowrap}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-info[_ngcontent-%COMP%]{grid-area:info;display:flex;flex-direction:column;gap:4px;width:100%;height:auto}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-info[_ngcontent-%COMP%]   h4[_ng
5content-%COMP%]{color:#004186;font-weight:700;font-size:14px;line-height:18px;padding:0}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-info[_ngcontent-%COMP%]   address[_ngcontent-%COMP%]{color:#4f4f4f;font-style:normal;font-weight:400;font-size:14px;line-height:125%}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#828282;font-weight:600;font-size:12px;line-height:125%;text-transform:uppercase}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-content-endereco-details-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#8aa15c;font-weight:700;font-size:10px;line-height:14px;text-transform:uppercase;padding:0}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-action[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-action[_ngcontent-%COMP%]{flex-direction:row;justify-content:flex-end}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-action[_ngcontent-%COMP%]   a[class*=rdsl-button][_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 981px){.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-action[_ngcontent-%COMP%]   a[class*=rdsl-button][_ngcontent-%COMP%]{width:204px}}.rdsl-card-unidade-novo[_ngcontent-%COMP%]   .rdsl-card-unidade-novo-action[_ngcontent-%COMP%]   a[class*=-transparent][_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:16px;text-transform:none;height:32px}.card-content[_ngcontent-%COMP%]{display:flex;margin-top:-21px}@media screen and (max-width: 718px){.card-content[_ngcontent-%COMP%]{margin-top:0}}.card-content[_ngcontent-%COMP%]   a.rdsl-button-secondary[_ngcontent-%COMP%]{min-width:160px;min-height:56px;border-radius:4px;margin-left:18px;color:#fff;text-align:center;padding:0 8px;font-weight:700}']})}}return t})();var jt=(t,r)=>({"rdsl-alert":t,"rdsl-alert-warning":r}),ue=(()=>{class t{constructor(e){this.unidadesListService=e,this.nenhumResultado=!1}ngOnInit(){this.statusSubscription=this.unidadesListService.listStatus.subscribe(e=>{this.status=e?.status,this.nenhumResultado=e?.nenhumResultado})}ngOnDestroy(){this.statusSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(a(P))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-list-status"]],decls:2,vars:5,consts:[[3,"ngClass"],[3,"innerHTML"]],template:function(n,i){n&1&&(d(0,"div",0),l(1,"span",1),c()),n&2&&(s("ngClass",xe(2,jt,!i.nenhumResultado,i.nenhumResultado)),g(),s("innerHTML",i.status,he))},dependencies:[Se],styles:['@charset "UTF-8";[_nghost-%COMP%]   div[class*=rdsl-alert][_ngcontent-%COMP%]{width:100%;color:#4f4f4f;font-size:.875rem;background-color:#e4f5fd;border-radius:4px;padding:12px 16px;margin-bottom:30px}[_nghost-%COMP%]   div[class*=rdsl-alert][_ngcontent-%COMP%]     strong{color:var(--custom-accent, #004186)}[_nghost-%COMP%]   div[class*=rdsl-alert][_ngcontent-%COMP%]     a{text-decoration:underline}[_nghost-%COMP%]   div[class*=rdsl-alert][_ngcontent-%COMP%]     a:hover{text-decoration:none}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-icon][_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-icon][_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{margin-right:8px;flex-shrink:0}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-icon][_ngcontent-%COMP%]   .alert-content[_ngcontent-%COMP%]     p{color:inherit;line-height:1.2}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-icon][_ngcontent-%COMP%]   .alert-content[_ngcontent-%COMP%]     p:not(:last-child){padding-bottom:4px}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-center][_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-right][_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-secondary][_ngcontent-%COMP%]{background-color:#f9e8d5}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-secondary][_ngcontent-%COMP%]     strong, [_nghost-%COMP%]   div[class*=rdsl-alert][class*=-secondary][_ngcontent-%COMP%]     a{color:#5d390e}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-warning][_ngcontent-%COMP%]{background-color:#fff4d6}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-warning][_ngcontent-%COMP%]     strong, [_nghost-%COMP%]   div[class*=rdsl-alert][class*=-warning][_ngcontent-%COMP%]     a{color:#5a4400}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-success][_ngcontent-%COMP%]{background-color:#e2e8d6}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-success][_ngcontent-%COMP%]     strong, [_nghost-%COMP%]   div[class*=rdsl-alert][class*=-success][_ngcontent-%COMP%]     a{color:#45512e}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-danger][_ngcontent-%COMP%]{background-color:#f0ced4}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-danger][_ngcontent-%COMP%]     strong, [_nghost-%COMP%]   div[class*=rdsl-alert][class*=-danger][_ngcontent-%COMP%]     a{color:#4e1820}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-info][_ngcontent-%COMP%]{background-color:#f2f2f2}[_nghost-%COMP%]   div[class*=rdsl-alert][class*=-info][_ngcontent-%COMP%]     strong, [_nghost-%COMP%]   div[class*=rdsl-alert][class*=-info][_ngcontent-%COMP%]     a{color:var(--custom-accent, #004186)}.rdsl-alert[_ngcontent-%COMP%], .rdsl-alert-warning[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:49px;margin-bottom:0!important}@media screen and (max-width: 718px){.rdsl-alert[_ngcontent-%COMP%], .rdsl-alert-warning[_ngcontent-%COMP%]{align-items:flex-start}}.rdsl-alert[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%], .rdsl-alert-warning[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{stroke:#df8d2c;margin-right:15px!important}@media screen and (max-width: 718px){.rdsl-alert[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%], .rdsl-alert-warning[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{width:64px}}.rdsl-alert[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon, .rdsl-alert-warning[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $secondary !important}']})}}return t})();var Bt=()=>["/","unidades"];function $t(t,r){if(t&1&&l(0,"app-unidades-list-item",0),t&2){let e=r.$implicit,n=p(3);s("unidade",e)("useOncoFallbackImage",n.isOncoUnit(e))}}function Gt(t,r){if(t&1&&Ce(0,$t,1,2,"app-unidades-list-item",0,fe),t&2){let e=p(2);_e(e.listUnidade)}}function zt(t,r){t&1&&(d(0,"div",1),l(1,"rdsl-icon",2),d(2,"h2"),h(3,"Ainda n\xE3o temos unidades cadastradas para sua busca."),c(),d(4,"p"),h(5,"Experimente buscar por "),d(6,"a",3),h(7,"todas as unidades"),c(),h(8,"."),c()()),t&2&&(g(6),s("routerLink",Oe(1,Bt)))}function Nt(t,r){if(t&1&&(l(0,"app-unidades-list-generic-card")(1,"app-unidades-list-status"),m(2,Gt,2,0)(3,zt,9,2)),t&2){let e=p();g(2),x(2,e.listUnidade.length?2:3)}}var R=(()=>{class t{constructor(e,n,i){this.route=e,this.unidadesListService=n,this.geolocService=i,this.isLoading=!0}ngOnInit(){this.serviceReadySubscription=this.unidadesListService.isServiceReady.subscribe(e=>{e&&this.init()}),this.unidadesLoadedSubscription=this.unidadesListService.unidadesLoaded.subscribe(e=>{e&&(this.isLoading=!1)})}init(){this.listUnidadesSubscription=this.unidadesListService.unidadesList.subscribe(e=>this.listUnidade=e),this.filterSubscription=this.unidadesListService.filter.subscribe(e=>this.filter=e),this.routeSubscription=this.route.params.subscribe(e=>{this.unidadesListService.setFilterFromParams(e)})}isOncoUnit(e){return e?.categoria?.toLowerCase().includes("oncologia")||!1}ngOnDestroy(){this.listUnidadesSubscription?.unsubscribe(),this.filterSubscription?.unsubscribe(),this.routeSubscription?.unsubscribe(),this.serviceReadySubscription?.unsubscribe(),this.unidadesLoadedSubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(a(Ie),a(P),a(F))}}static{this.\u0275cmp=f({type:t,selectors:[["app-unidades-list"]],decls:2,vars:3,consts:[[3,"unidade","useOncoFallbackImage"],[1,"rdsl-no-results"],["name","icon-alerta-tri"],["title","Buscar por todas unidades",3,"routerLink"]],template:function(n,i){n&1&&(m(0,Nt,4,1),L(1,"async")),n&2&&x(0,!i.isLoading&&I(1,1,i.geolocService.isChecked)===!0?0:-1)},dependencies:[Ee,W,ct,pe,ue,U],styles:['.rdsl-no-results[_ngcontent-%COMP%]{display:grid;grid-template-columns:[colStart] auto [colEnd];grid-template-rows:[rowStart] auto [rowEnd];column-gap:10px;justify-items:start;align-items:center;grid-template-areas:"icon text" "icon fallback";width:fit-content;margin:auto}.rdsl-no-results[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{grid-area:icon;width:auto;stroke:#df8d2c}.rdsl-no-results[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]     cura-icon{--color: $secondary !important}.rdsl-no-results[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{grid-area:text;align-self:flex-end;font-weight:300;line-height:28px;padding-bottom:2px}.rdsl-no-results[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{grid-area:fallback;align-self:flex-start;font-weight:500}.rdsl-no-results[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .rdsl-no-results[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-weight:300;font-size:.85em}@media screen and (min-width: 718px){.rdsl-no-results[_ngcontent-%COMP%]   rdsl-icon[_ngcontent-%COMP%]{width:128px}}app-unidades-list-status[_ngcontent-%COMP%]{display:block;margin:20px 0}@media only screen and (min-width: 981px){app-unidades-list-status[_ngcontent-%COMP%]{margin:0 0 20px}}']})}}return t})();var Vt=[{path:"",component:le,children:[{path:"",component:R},{path:"em/:local",component:R},{path:"em",redirectTo:""},{path:":bandeira",component:R},{path:":bandeira/em/:local",component:R},{path:":bandeira/em",redirectTo:":bandeira"},{path:":bandeira/:local",redirectTo:":bandeira"}]}],lt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[ae.forChild(Vt),ae]})}}return t})();var ei=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[we,lt,st,We,Ke,it,Je,Ye,tt,Xe,Qe,Ze]})}}return t})();export{ei as UnidadesModule};

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.