PageSourceSearch

https://www.halodoc.com/resources/chunk-4TPUUNTS.js

js halodoc.com collected 2026-09-24 08:51:35 UTC 17,074 bytes, 1 lines download raw bytes

1import{a as _e}from"./chunk-TWJLLHDC.js";import{a as de}from"./chunk-545WZBG5.js";import{j as pe}from"./chunk-DOHIWM52.js";import"./chunk-Q2LIZUSJ.js";import"./chunk-OPXCG33S.js";import{Ea as ce,aa as le,ab as w,da as se,u as oe}from"./chunk-ESWOH4IW.js";import{c as re,d as ae}from"./chunk-4IAMFFCU.js";import"./chunk-NWY46YXD.js";import{G as ee,I as te,O as ne,S as ie}from"./chunk-7ISFHUQ3.js";import"./chunk-ZLOVQKZF.js";import"./chunk-UUV44MCL.js";import{_b as X,yb as v}from"./chunk-ULLOCMAI.js";import{b as q,d as J,e as Q}from"./chunk-XJCPN7HX.js";import{$ as G,O as Z,P as z,ba as j,ca as W,fa as Y}from"./chunk-JF7TYXAT.js";import{$a as D,C as E,Ic as A,Kb as P,Md as $,Nc as u,Pc as m,Rb as U,Sb as R,Ud as K,cc as B,e as I,fa as h,fc as H,lc as N,ld as T,nb as F,pd as V,sa as l,tc as O,uc as x,ud as k,vb as c,vc as S,vd as M,wc as d,xc as o,ya as b,yc as s,za as f,zc as g}from"./chunk-A6O2UMHS.js";import"./chunk-DATWAOVS.js";var ge=(()=>{let a=class a{constructor(){this.gtmService=l(se),this.data=$(),this.ARTICLE_IMAGE_CONSTANT=de}getData(e){if(e==="title"){let t=this.data();return t&&decodeURIComponent(t[e])}let n=this.data();return n&&n[e]||""}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=P({type:a,selectors:[["magneto-banner"]],inputs:{data:[1,"data"]},decls:7,vars:12,consts:[[1,"banner-container"],[1,"image-container",3,"loading","webpImage","fallbackImage","alt","defaultBase64Img","defaultImgClass","imgClass"],["dataTestId","data-slug-a",3,"routerLink","innerHTML"]],template:function(n,t){if(n&1&&(o(0,"section",0)(1,"figure"),g(2,"hd-base-image-mapper",1),o(3,"figcaption")(4,"p"),g(5,"a",2),k(6,"safeHtml"),s()()()()),n&2){let p,_,C,L;c(2),d("loading","eager")("webpImage",(p=t.data())==null||p.attributes==null?null:p.attributes.image_url_webp)("fallbackImage",(_=t.data())==null||_.attributes==null?null:_.attributes.image_url)("alt",((C=t.data())==null||C.attributes==null?null:C.attributes.alt_text)||((C=t.data())==null?null:C.title))("defaultBase64Img",t.ARTICLE_IMAGE_CONSTANT.IMAGE.src)("defaultImgClass","default-image-style")("imgClass","main-image-style"),c(3),d("routerLink",T("/",(L=t.data())==null?null:L.slug))("innerHTML",M(6,10,t.getData("title")),F)}},dependencies:[X,Y,W,v,pe],styles:[".banner-container[_ngcontent-%COMP%]{display:flex;height:100%;position:relative}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:100%;height:100%;margin:0}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]     .hd-base-image-mapper{height:100%}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]     .hd-base-image-mapper .default-image-style{object-fit:cover}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]     .hd-base-image-mapper>div{width:inherit;height:inherit}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]     .hd-base-image-mapper .img-wrapper{display:block}.banner-container[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]     .hd-base-image-mapper__img{height:100%}.banner-container[_ngcontent-%COMP%]   figcaption[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(180deg,#0000,#000000bf);padding:2rem}@media(max-width:767px){.banner-container[_ngcontent-%COMP%]   figcaption[_ngcontent-%COMP%]{padding:1rem}}.banner-container[_ngcontent-%COMP%]   figcaption[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;font-size:16px;line-height:1.2em;margin-top:14px;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width:675px){.banner-container[_ngcontent-%COMP%]   figcaption[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:28px!important}}"]});let r=a;return r})();var he=()=>[import("./chunk-6DCBKSLR.js").then(r=>r.LatestArticlesComponent)],ue=()=>[1,2,3,4];function Ce(r,a){if(r&1){let i=A();o(0,"div",12)(1,"hd-base-article-card",13),u("clickArticleLabel",function(n){b(i);let t=m();return f(t.onArticleLabelClick(n))})("clickArticleCard",function(){let n=b(i).$implicit,t=m();return f(t.onArticleCardClick(n))}),s()()}if(r&2){let i=a.$implicit,e=a.$index,n=m();c(),d("dataTestId",T("popular-article-list-",e))("title",i==null?null:i.title)("subtitle",i!=null&&i.reading_time?(i==null?null:i.reading_time)+" menit":"")("cardAlign",n.CardAlignment.HORIZONTAL)("articleLabels",i==null?null:i.categories)("isLoading",n.isPopularArticlesLoading)("fallbackImageSrc",(i==null||i.attributes==null?null:i.attributes.image_url)||(i==null?null:i.image_url))("imageAlt",(i==null||i.attributes==null?null:i.attributes.alt_text)||(i==null?null:i.title)||"")("webpImageSrc",i==null||i.attributes==null?null:i.attributes.image_url_webp)("horizontalCardImageHeight",n.isMobile?"75px":"60px")("horizontalCardImageWidth",n.isMobile?"134px":"108px")}}function be(r,a){if(r&1){let i=A();o(0,"magneto-latest-articles",14),u("articleLabelClick",function(n){b(i);let t=m();return f(t.onArticleLabelClick(n))})("articleCardClick",function(n){b(i);let t=m();return f(t.onArticleCardClick(n))}),s()}if(r&2){let i=m();d("isMobile",i.isMobile)}}function fe(r,a){r&1&&(o(0,"div",18),g(1,"div",19),o(2,"div",20),g(3,"div",21)(4,"div",22),s()())}function ke(r,a){r&1&&(o(0,"div",15),g(1,"div",16),o(2,"div",17),x(3,fe,5,0,"div",18,O),s()()),r&2&&(c(3),S(V(0,ue)))}var y="STATE_KEY_TRENDING_TOPICS",Ge=(()=>{let a=class a{constructor(){this.metaService=l(Z),this.titleService=l(z),this.metaUpdate=l(ce),this.articleService=l(_e),this.translate=l(q),this.dataService=l(oe),this.router=l(j),this.activatedRoute=l(G),this.utilitiesService=l(le),this.transferState=l(D),this._cdrZoneless=l(K),this.ngUnsubscribe$=new I,this.SearchBarType=ee,this.CardAlignment=re,this.popularArticles=Array(6),this.isPopularArticlesLoading=!0,this.searchList=[],this.searchText="",this.timer=null,this.trendingTopics=Array(5),this.isMobile=!1,this.isTrendingTopicsLoading=!0,this.shouldHildaFab=!1}ngOnInit(){this.getPopularArticles(),this.setMetaTags(),this.setLanguage(),this.getTrendingTopics(),this.utilitiesService.deviceMode.pipe(h(this.ngUnsubscribe$)).subscribe(e=>{this.isMobile=e.isMobile,this._cdrZoneless.markForCheck()})}getPopularArticles(){this.articleService.getPopularArticles().pipe(h(this.ngUnsubscribe$)).subscribe(e=>{this.popularArticles=w(e.result,"display_order"),this.isPopularArticlesLoading=!1,this._cdrZoneless.markForCheck()},()=>{this.isPopularArticlesLoading=!1,this._cdrZoneless.markForCheck()})}setMetaTags(){this.metaUpdate.applyMeta("penyakit",""),this.titleService.setTitle("Informasi dan Artikel Seputar Kesehatan - Halodoc"),this.metaService.updateTag({content:"Dapatkan Informasi dan Artikel Seputar Kesehatan terlengkap dan akurat hanya di Halodoc. Cek sekarang yuk!"},"property='og:description'"),this.metaUpdate.updateTag({content:"artikel kesehatan, artikel seputar kesehatan, artikel kesehatan terbaru, informasi medis"},"keywords"),this.metaService.updateTag({content:"Informasi dan Artikel Seputar Kesehatan - Halodoc"},"property='og:title'"),this.canonLink=this.metaUpdate.createCanonicalURL("/artikel")}onArticleLabelClick(e){this.router.navigate(["/kesehatan/",e.slug])}onArticleCardClick(e){this.router.navigate(["/",e.slug])}onSuggestionClick(e){this.router.navigate(["artikel",e.slug])}searchArticles(e){this.timer=null,this.articleService.getSearchArticles(e).pipe(h(this.ngUnsubscribe$)).subscribe(n=>{this.searchList=n.result,this.articleService.trackArticleSearchAmpEvent(e,this.searchList),this._cdrZoneless.markForCheck()},()=>{this.searchList=[],this.articleService.trackArticleSearchAmpEvent(e,this.searchList),this._cdrZoneless.markForCheck()})}onSearchBarValueChange(e){this.searchText=e,this.timer===null&&e.trim().length>2&&(this.utilitiesService.isBrowser()?this.timer=E(1e3).pipe(h(this.ngUnsubscribe$)).subscribe(()=>{this.searchArticles(e.trim()),this._cdrZoneless.markForCheck()}):this.searchArticles(e.trim()))}onSearch(){this.searchText&&this.router.navigate(["/artikel/search/",this.searchText],{relativeTo:this.activatedRoute})}onTrendingTopicCtaClick(){this.router.navigateByUrl("/kesehatan")}onTrendingTopicClick(e){this.router.navigate(["/kesehatan/",e.slug])}setLanguage(){let e=this.dataService.currentUserLang;this.translate.use(e)}getTrendingTopics(){let e=this.transferState.get(y,null);if(e){this.trendingTopics=e,this.isTrendingTopicsLoading=!1,this.transferState.remove(y);return}this.articleService.getTrendingTopics().pipe(h(this.ngUnsubscribe$)).subscribe(n=>{this.trendingTopics=n.result?w(n.result,"display_order"):[],this.isTrendingTopicsLoading=!1,this.utilitiesService.isServer()&&this.transferState.set(y,this.trendingTopics),this._cdrZoneless.markForCheck()})}ngOnDestroy(){this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete()}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=P({type:a,selectors:[["magneto-artikel"]],decls:19,vars:12,consts:[[200],[1,"app-container"],["idSelectorForTextInput","article-search-text","idSelectorForSearchCTA","article-search-cta","inputPlaceholder","Cari artikel berdasarkan judul, kategori, topik",3,"onSearch","onSuggestionClick","onCtaClick","onEnterKeyPressed","type","withCTA","articleSearchList"],[1,"trending-topic__container"],["idSelectorForTitle","trending-topic-title","idSelectorForCTA","trending-topic-cta","ctaText","Lih
1at Semua",3,"ctaClicked","title"],[3,"onClickTopic","isLoading","topics"],[1,"popular-article__container"],["idSelectorForTitle","popular-article-title",3,"title"],[1,"popular-article"],["dataTestId","popular-article-banner",1,"banner"],[3,"data"],[1,"article-list"],[1,"article-list__item"],["cardWidth","100%",3,"clickArticleLabel","clickArticleCard","dataTestId","title","subtitle","cardAlign","articleLabels","isLoading","fallbackImageSrc","imageAlt","webpImageSrc","horizontalCardImageHeight","horizontalCardImageWidth"],[3,"articleLabelClick","articleCardClick","isMobile"],[1,"latest-article__ghost"],[1,"ghost__header"],[1,"ghost__content","flex","flex-col","gap-y-5","mt-5"],[1,"ghost__content__item","flex","gap-x-2"],[1,"ghost__content__item__image"],[1,"ghost__content__item__text","flex-1"],[1,"ghost__content__item__text__title"],[1,"ghost__content__item__text__subtitle","mt-2"]],template:function(n,t){n&1&&(o(0,"article",1)(1,"hd-base-search-bar",2),u("onSearch",function(_){return t.onSearchBarValueChange(_)})("onSuggestionClick",function(_){return t.onSuggestionClick(_)})("onCtaClick",function(){return t.onSearch()})("onEnterKeyPressed",function(){return t.onSearch()}),s(),o(2,"section",3)(3,"hd-base-section-header",4),k(4,"translate"),u("ctaClicked",function(){return t.onTrendingTopicCtaClick()}),s(),o(5,"hd-base-topic-bar",5),u("onClickTopic",function(_){return t.onTrendingTopicClick(_)}),s()(),o(6,"section",6),g(7,"hd-base-section-header",7),k(8,"translate"),o(9,"div",8)(10,"div",9),g(11,"magneto-banner",10),s(),o(12,"div",11),x(13,Ce,2,12,"div",12,O),s()()(),U(15,be,1,1)(16,ke,5,1),B(17,15,he,null,16,null,null,0,R,1),N(),H(),s()),n&2&&(c(),d("type",t.SearchBarType.ARTICLE)("withCTA",!0)("articleSearchList",t.searchList),c(2),d("title",M(4,8,"TRENDING_TOPICS")),c(2),d("isLoading",t.isTrendingTopicsLoading)("topics",t.trendingTopics.slice(0,10)),c(2),d("title",M(8,10,"POPULAR_ARTICLE")),c(4),d("data",t.popularArticles[0]),c(2),S(t.popularArticles))},dependencies:[ne,te,ie,ae,ge,Q,v,J],styles:['@keyframes _ngcontent-%COMP%_ghost-lines{0%{background-position:-100px}40%{background-position:40vw}to{background-position:60vw}}@keyframes _ngcontent-%COMP%_ghost-avatar{0%{background-position:-32px}40%,to{background-position:208px}}@keyframes _ngcontent-%COMP%_artikel-ghost-shimmer-slide{0%{transform:translate(-100%)}to{transform:translate(100%)}}.app-container[_ngcontent-%COMP%]{max-width:1180px;margin:2.5rem auto 0}@media(max-width:1199px){.app-container[_ngcontent-%COMP%]{margin:0 25px}}@media(max-width:767px){.app-container[_ngcontent-%COMP%]{margin:1.25rem .75rem 0}}.popular-article[_ngcontent-%COMP%]{display:grid;grid-gap:1rem;margin-top:1.25rem}@media screen and (max-width:855px){.popular-article[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (min-width:855px){.popular-article[_ngcontent-%COMP%]{grid-template-columns:1fr 380px}}@media(max-width:767px){.popular-article[_ngcontent-%COMP%]{grid-gap:0}}.popular-article[_ngcontent-%COMP%]   .ghost-banner-image[_ngcontent-%COMP%]{width:100%;height:100%;margin-block-end:0px;background:#e4e4e5;display:block;border-radius:4px;text-indent:-9999px;white-space:nowrap;overflow:hidden;background-image:linear-gradient(90deg,#dddddda4,#ecebebf1,#dddddda4 80px);background-size:80vw;animation:_ngcontent-%COMP%_ghost-lines 1s infinite linear}.popular-article__container[_ngcontent-%COMP%]{margin:2.5rem 0}@media(max-width:767px){.popular-article__container[_ngcontent-%COMP%]{margin:2rem 0}}.article-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;background-color:transparent}.article-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#d3d3d3;border-radius:10px}@media screen and (min-width:855px){.article-list[_ngcontent-%COMP%]{max-height:400px;overflow-x:hidden;overflow-y:auto}}.article-list[_ngcontent-%COMP%]   .article-list-container[_ngcontent-%COMP%]:last-child{border-bottom:0}.article-list__item[_ngcontent-%COMP%]{margin-top:1rem}.banner[_ngcontent-%COMP%]{overflow:hidden;border-radius:8px}@media screen and (min-width:675px){.banner[_ngcontent-%COMP%]{max-height:400px;height:400px;overflow:hidden;border-radius:8px}}.trending-topic__container[_ngcontent-%COMP%]{margin:2.5rem 0}@media(max-width:767px){.trending-topic__container[_ngcontent-%COMP%]{margin:2rem 0}}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__header[_ngcontent-%COMP%]{width:100%;height:30px;position:relative;overflow:hidden;background-color:#e4e4e5;border-radius:4px;display:block!important;text-indent:-9999px;white-space:nowrap}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__header[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,transparent 0%,rgba(236,235,235,.9450980392) 50%,transparent 100%);background-repeat:no-repeat;animation:_ngcontent-%COMP%_artikel-ghost-shimmer-slide 1s infinite linear;will-change:transform;pointer-events:none}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:none!important}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__image[_ngcontent-%COMP%]{width:134px;height:75px;position:relative;overflow:hidden;background-color:#e4e4e5;border-radius:4px;display:block!important;text-indent:-9999px;white-space:nowrap}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__image[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,transparent 0%,rgba(236,235,235,.9450980392) 50%,transparent 100%);background-repeat:no-repeat;animation:_ngcontent-%COMP%_artikel-ghost-shimmer-slide 1s infinite linear;will-change:transform;pointer-events:none}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__image[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:none!important}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__title[_ngcontent-%COMP%]{width:100%;height:24px;position:relative;overflow:hidden;background-color:#e4e4e5;border-radius:4px;display:block!important;text-indent:-9999px;white-space:nowrap}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__title[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,transparent 0%,rgba(236,235,235,.9450980392) 50%,transparent 100%);background-repeat:no-repeat;animation:_ngcontent-%COMP%_artikel-ghost-shimmer-slide 1s infinite linear;will-change:transform;pointer-events:none}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:none!important}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__subtitle[_ngcontent-%COMP%]{width:50%;height:16px;position:relative;overflow:hidden;background-color:#e4e4e5;border-radius:4px;display:block!important;text-indent:-9999px;white-space:nowrap}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__subtitle[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,transparent 0%,rgba(236,235,235,.9450980392) 50%,transparent 100%);background-repeat:no-repeat;animation:_ngcontent-%COMP%_artikel-ghost-shimmer-slide 1s infinite linear;will-change:transform;pointer-events:none}.latest-article__ghost[_ngcontent-%COMP%]   .ghost__content__item__text__subtitle[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:none!important}']});let r=a;return r})();export{Ge as ArtikelComponent};

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.