PageSourceSearch

https://pjnhk.go.id/_next/static/chunks/2014-88535213cade5e97.js

js pjnhk.go.id collected 2026-10-02 06:44:11 UTC 73,356 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90ab5530-7d8d-451d-9c7a-005064d26b7a",e._sentryDebugIdIdentifier="sentry-dbid-90ab5530-7d8d-451d-9c7a-005064d26b7a")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2014],{6114:function(e,t,r){r.r(t);var a=r(57437),i=r(66648),l=r(2265);t.default=e=>{let{alt:t,src:r,placeholderImage:s,onClick:n,width:o,height:c,imageError:d,...m}=e,[u,p]=(0,l.useState)(r&&r||"");return(0,a.jsx)(i.default,{...m,alt:t,width:o,height:c,src:u,onError:()=>{if(!d){p("https://placehold.co/".concat(o,"x").concat(c,"/png"));return}p(d)}})}},97884:function(e,t,r){r.d(t,{default:function(){return g}});var a=r(57437),i=r(66648),l=r(87138),s=r(16463),n=r(18087),o=r(2265),c=r(62548),d=r(6114),m=r(70518),u=r(87592),p=r(43153),h=r(93577);function x(e){var t,r;let{audience:l,variant:s="plain"}=e,x=c.C[l],b=(0,n.useTranslations)(x.translationNamespace),{data:g}=(0,h.O0)(l),f=(0,o.useRef)(null),[v,y]=(0,o.useState)(0),[w,j]=(0,o.useState)(new Set),N={judul:b(x.heroCopy.fallbackAlt),photo:x.heroFallback.photo},k=(null!==(r=null==g?void 0:null===(t=g.data)||void 0===t?void 0:t.results)&&void 0!==r?r:[]).filter(e=>!!e.photo).filter(e=>!w.has(e.photo)).slice(0,5),_=k.length>0?k:[N],F=_.length>1,E="executive"===l&&"hero"===s,B="hero"===s?"".concat(E?"[--hero-control-offset:var(--header-h)]":"[--hero-control-offset:0px]"," absolute inset-0 bg-[#e8fcf8] [&_.slick-list]:h-full [&_.slick-slide>div]:h-full [&_.slick-slide]:h-full [&_.slick-slider]:h-full [&_.slick-track]:h-full"):"relative h-[650px] w-full bg-primary/[0.12] [&_.slick-list]:h-full [&_.slick-slide>div]:h-full [&_.slick-slide]:h-full [&_.slick-slider]:h-full [&_.slick-track]:h-full",C="relative w-full ".concat(E?"h-[calc(650px+var(--header-h))]":"h-[650px]"),D="h-full w-full object-cover ".concat("hero"===s?"object-[57%_100%] md:object-center":"object-center"),A=(e,t)=>
1"executive"===l?(0,a.jsx)(i.default,{src:e.photo,alt:e.judul||"Banner Home",width:2e3,height:900,priority:0===t||!F,onError:()=>j(t=>new Set(t).add(e.photo)),className:D}):(0,a.jsx)(d.default,{src:e.photo,alt:e.judul||"Banner Home",width:2e3,height:900,priority:0===t||!F,className:D});if(!F){let e=_[0];return(0,a.jsx)("div",{className:B,children:(0,a.jsx)("div",{className:C,children:A(e,0)})})}return(0,a.jsxs)("div",{className:B,children:[(0,a.jsx)(p.Z,{ref:f,arrows:!1,autoplay:F,autoplaySpeed:7e3,dots:!1,fade:!0,infinite:F,slidesToScroll:1,slidesToShow:1,speed:"hero"===s?600:3e3,beforeChange:(e,t)=>y(t),children:_.map((e,t)=>(0,a.jsx)("div",{className:C,children:A(e,t)},"".concat(e.photo,"-").concat(t)))}),"plain"===s?(0,a.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-10 flex-col items-center justify-center gap-2",children:_.map((e,t)=>(0,a.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.slickGoTo(t)},className:"z-10 h-2.5 w-2.5 cursor-pointer rounded-full ".concat(v===t?"bg-primary":"bg-info"),"aria-label":"Pilih banner ".concat(t+1),"aria-pressed":v===t},"".concat(e.photo,"-dot-").concat(t)))}):null,"hero"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":"Banner sebelumnya",onClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.slickPrev()},className:"absolute left-3 top-[calc(364px+var(--hero-control-offset))] z-[8] grid h-[43px] w-[43px] place-items-center rounded-full bg-white/70 shadow-[0_5px_18px_rgba(17,17,17,0.1)] backdrop-blur-md transition hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] md:left-3 md:top-[calc(260px+var(--hero-control-offset))] md:h-[54px] md:w-[54px] lg:left-3 lg:top-[calc(292px+var(--hero-control-offset))] lg:h-[63px] lg:w-[63px]",children:(0,a.jsx)(m.Z,{className:"h-[23px] w-[23px] text-[var(--home-primary)] lg:h-[29px] lg:w-[29px]","aria-hidden":"true"})}),(0,a.jsx)("button",{type:"button","aria-label":"Banner berikutnya",onClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.slickNext()},className:"absolute right-3 top-[calc(364px+var(--hero-control-offset))] z-[8] grid h-[43px] w-[43px] place-items-center rounded-full bg-white/70 shadow-[0_5px_18px_rgba(17,17,17,0.1)] backdrop-blur-md transition hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] md:right-3 md:top-[calc(260px+var(--hero-control-offset))] md:h-[54px] md:w-[54px] lg:right-3 lg:top-[calc(292px+var(--hero-control-offset))] lg:h-[63px] lg:w-[63px]",children:(0,a.jsx)(u.Z,{className:"h-[23px] w-[23px] text-[var(--home-primary)] lg:h-[29px] lg:w-[29px]","aria-hidden":"true"})}),(0,a.jsx)("div",{className:"absolute left-1/2 top-[calc(430px+var(--hero-control-offset))] z-[8] flex -translate-x-1/2 gap-[9px] lg:gap-[13px]",role:"tablist","aria-label":"Pilih banner",children:_.map((e,t)=>(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":v===t,"aria-label":"Banner ".concat(t+1),onClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.slickGoTo(t)},className:"h-[9px] rounded-full transition lg:h-[11px] ".concat(v===t?"w-[23px] bg-[var(--home-primary)] lg:w-7":"w-[9px] bg-[#c8cbd0] lg:w-[11px]")},"".concat(e.photo,"-hero-dot-").concat(t)))})]}):null]})}r(55291),r(9051);let b="/assets/pjnhk-header-hero/icons";function g(e){let{audience:t}=e,r=c.C[t],d=r.heroCopy,m=(0,n.useTranslations)(r.translationNamespace),u=(0,s.useRouter)(),[p,h]=(0,o.useState)(""),g="executive"===t?"h-[calc(650px+var(--header-h))]":"h-[650px]";return(0,a.jsx)("section",{style:r.palette,className:"relative overflow-hidden bg-white ".concat(g),"aria-label":m(d.ariaLabel),children:(0,a.jsxs)("div",{className:"relative ".concat(g),children:[(0,a.jsx)(x,{audience:t,variant:"hero"}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] hidden md:block",style:{background:r.desktopGradient}}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] md:hidden",style:{background:r.mobileGradient}}),(0,a.jsx)("div",{className:"executive"===t?"absolute inset-0 z-[2] mx-auto flex max-w-[1440px] items-start px-6 pt-[calc(var(--header-h)+24px)] md:pt-[calc(var(--header-h)+32px)] lg:px-[60px]":"absolute inset-0 z-[2] mx-auto flex max-w-[1440px] items-start px-6 pt-12 md:items-center md:pt-0 lg:px-[60px]",children:(0,a.jsxs)("div",{className:"executive"===t?"w-full md:w-[min(660px,62%)] lg:w-[min(650px,50%)] xl:pb-[75px]":"w-full md:w-[min(660px,62%)] lg:mt-[-18px] lg:w-[min(650px,50%)] xl:pb-[75px]",children:[(0,a.jsx)("p",{className:"mb-2.5 text-xs font-extrabold uppercase tracking-[0.12em] lg:mb-3.5 lg:text-sm ".concat("executive"===t?"text-white/85":"text-[#087f72]"),children:m(d.eyebrow)}),(0,a.jsxs)("h1",{className:"executive"===t?"max-w-[95%] text-[34px] font-bold leading-[1.18] tracking-[-0.035em] text-white md:max-w-[760px] md:text-[42px] lg:text-[48px] lg:leading-[1.2] line-clamp-2":"max-w-[95%] text-[34px] font-bold leading-[1.18] tracking-[-0.035em] text-[#111111] md:max-w-[760px] md:text-[42px] lg:text-[48px] lg:leading-[1.2]",children:[m(d.title),d.accentTitle?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-[var(--home-primary)]",children:m(d.accentTitle)})]}):null]}),(0,a.jsx)("p",{className:"mt-4 max-w-[92%] text-[15px] leading-[1.55] md:max-w-[595px] lg:mt-5 lg:text-base lg:leading-[1.5] ".concat("executive"===t?"text-white/90":"text-[#6B7280]"),children:m(d.description)}),(0,a.jsxs)("div",{className:"executive"===t?"absolute inset-x-0 bottom-0 z-[7] flex flex-col gap-4 md:static md:mt-5 md:block xl:absolute xl:inset-x-[60px] xl:bottom-[31px] xl:grid xl:grid-cols-[minmax(320px,1fr)_auto] xl:items-center xl:gap-6":"absolute inset-x-0 bottom-0 z-[7] flex flex-col gap-4 md:static md:block xl:absolute xl:inset-x-[60px] xl:bottom-[31px] xl:grid xl:grid-cols-[minmax(320px,1fr)_auto] xl:items-center xl:gap-6",children:[(0,a.jsxs)("form",{role:"search",onSubmit:function(e){e.preventDefault();let t=p.trim();t&&u.push("".concat(r.routes.search,"?search=").concat(encodeURIComponent(t)))},className:"mx-6 grid h-[51px] grid-cols-[24px_1fr_58px] gap-3 overflow-hidden rounded-xl border border-[#6
1B7280]/30 bg-white/90 pl-4 shadow-[0_8px_22px_rgba(31,41,55,0.07)] backdrop-blur md:mx-0 md:mt-5 md:w-full md:max-w-[565px] lg:mt-6 xl:mt-0 xl:max-w-none",children:[(0,a.jsx)("label",{className:"sr-only",htmlFor:"".concat(t,"-hero-search-input"),children:m(d.searchLabel)}),(0,a.jsx)(i.default,{src:"".concat(b,"/search.svg"),alt:"",width:24,height:24,"aria-hidden":"true",className:"h-5 w-5 self-center",style:{filter:r.palette["--home-icon-filter"]}}),(0,a.jsx)("input",{id:"".concat(t,"-hero-search-input"),type:"search",value:p,onChange:e=>h(e.target.value),placeholder:m(d.searchPlaceholder),autoComplete:"off",className:"min-w-0 self-center bg-transparent text-sm text-[#111111] outline-none placeholder:text-[#757b84] lg:text-base"}),(0,a.jsx)("button",{type:"submit","aria-label":m(d.searchSubmit),className:"executive"===t?"grid place-items-center self-stretch bg-[var(--home-primary)] transition hover:bg-[var(--home-primary-dark)]":"grid place-items-center self-stretch bg-gradient-to-br from-[#0eaa96] to-[#049382] transition hover:from-[#0E9F8D] hover:to-[#087f72]",children:(0,a.jsx)(i.default,{src:"".concat(b,"/search-white.svg"),alt:"",width:31,height:31,"aria-hidden":"true",className:"h-6 w-6"})})]}),(0,a.jsx)("nav",{"aria-label":m(d.quickActionsLabel),className:"executive"===t?"static px-6 pr-0 md:static md:mt-6 md:px-0 lg:px-[60px] lg:mt-10 xl:static xl:mt-0 xl:px-0":"static px-6 pr-0 md:absolute md:inset-x-0 md:bottom-[18px] md:z-[7] lg:bottom-[6px] lg:px-[60px] xl:static xl:px-0",children:(0,a.jsx)("ul",{className:"executive"===t?"grid auto-cols-[120px] grid-flow-col gap-3 overflow-x-auto pb-[18px] pr-6 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid auto-cols-[120px] grid-flow-col gap-3 overflow-x-auto pb-[18px] pr-6 md:auto-cols-[155px] lg:flex lg:gap-6 lg:overflow-visible lg:pb-0 lg:pr-0 xl:grid xl:auto-cols-[120px] xl:grid-flow-col xl:gap-3",children:r.quickActions.map(e=>(0,a.jsx)("li",{className:"min-w-0 lg:w-[120px] ".concat("executive"===t?"snap-start":""),children:(0,a.jsxs)(l.default,{href:e.href,className:"group flex flex-col items-center justify-center gap-2 rounded-[14px] border border-[#cbd1d6]/75 bg-white/95 p-3 shadow-[0_4px_12px_rgba(0,0,0,0.08)] transition hover:-translate-y-1 hover:border-[var(--home-primary)]/40 hover:shadow-[0_10px_24px_rgba(0,0,0,0.12)] lg:min-h-[120px] lg:w-[120px] lg:rounded-xl lg:text-center",children:[(0,a.jsx)("span",{className:"grid h-7 w-7 place-items-center md:h-8 md:w-8",children:(0,a.jsx)(i.default,{src:e.icon.startsWith("/")?e.icon:"".concat(b,"/").concat(e.icon),alt:"",width:52,height:52,"aria-hidden":"true",className:"h-7 w-7 md:h-8 md:w-8",style:{filter:r.palette["--home-icon-filter"]}})}),(0,a.jsxs)("span",{className:"hidden min-w-0 flex-col lg:flex lg:items-center",children:[(0,a.jsx)("strong",{className:"line-clamp-2 text-sm font-bold leading-[1.28] text-[#111111] lg:text-[13px] lg:leading-[1.25]",children:m(e.titleKey)}),(0,a.jsx)("span",{className:"line-clamp-2 text-xs text-[#6B7280] lg:text-[12px] lg:leading-[1.3]",children:m(e.subtitleKey)})]})]})},e.id))})})]})]})})]})})}},49609:function(e,t,r){r.d(t,{KF:function(){return n},MX:function(){return d},O7:function(){return s},Py:function(){return c},aF:function(){return o}});let a="/assets/rs-kemenkes-home",i=e=>"".concat(a,"/images/").concat(e),l=e=>"".concat(a,"/icons/").concat(e);function s(e){if(!m(e))return[];let t=e.data;return m(t)&&Array.isArray(t.results)?t.results.filter(m):[]}function n(e,t){for(let r of t){let t=e[r];if("string"==typeof t&&t.trim()){let e=t.replace(/<[^>]*>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&#39;|&apos;/gi,"'").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/\s+/g," ").trim();if(e&&!["-","null","undefined"].includes(e.toLowerCase()))return e}if("number"==typeof t)return String(t)}}function o(e,t){if(e.length<=t)return e;let r=e.slice(0,t+1),a=r.lastIndexOf(" ");return"".concat(r.slice(0,a>0?a:t).trim(),"...")}function c(e,t){if("string"!=typeof e||!e.trim())return t;let r=e.trim();if(r.startsWith("/"))return r;try{let e=new URL(r);return"http:"===e.protocol||"https:"===e.protocol?r:t}catch(e){return t}}function d(e){if("string"!=typeof e||!e.trim())return!1;try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function m(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}i("new-building.jpg"),l("location.png"),l("phone.png"),l("clock.png"),i("service-adult-surgery.webp"),l("heart-care.png"),i("service-pediatric.webp"),l("pediatric.png"),i("service-cathlab.webp"),l("medical-shield.png"),i("service-arrhythm
1ia.webp"),l("heartbeat.png"),i("service-consultation.webp"),l("syringe.png"),i("service-consultation.webp"),l("stethoscope.png"),i("promo-checkup.webp"),i("service-adult-surgery.webp"),i("service-cathlab.webp"),i("banner-executive.jpeg"),l("crown.png"),l("stethoscope.png"),l("heart-care.png"),l("medical-shield.png"),i("testimonials/testimonial-mother-child.png"),i("testimonials/testimonial-young-man.png"),i("testimonials/testimonial-woman.png"),i("testimonials/testimonial-father-daughter.png"),i("new-building.jpg"),i("service-adult-surgery.webp"),i("service-cathlab.webp"),i("promo-checkup.webp"),i("service-consultation.webp"),i("service-arrhythmia.webp")},83305:function(e,t,r){r.d(t,{default:function(){return y}});var a=r(57437),i=r(2342),l=r(87564),s=r(40969),n=r(94207),o=r(4361),c=r(82244),d=r(71976),m=r(22874),u=r(95137),p=r(18087),h=r(66648),x=r(87138),b=r(2265),g=r(93577),f=r(62548);let v={"bedah-jantung-dewasa":i.Z,"bedah-jantung-anak":l.Z,"intervensi-kardiologi":s.Z,aritmia:n.Z,vaksinasi:o.Z,"check-up-jantung":c.Z};function y(e){var t;let{audience:r="public"}=e,y=(0,p.useTranslations)("HomePage.public_home"),w=f.C[r],j=(0,g.FP)(1,6),N=(0,b.useRef)(null),k=(0,b.useRef)(!1),[_,F]=(0,b.useState)(1),[E,B]=(0,b.useState)(0),[C,D]=(0,b.useState)(new Set),A=null!==(t=j.data)&&void 0!==t?t:[];(0,b.useEffect)(()=>{let e=N.current;if(!e)return;B(0),e.scrollTo({left:0,behavior:"auto"});let t=()=>{let{clientWidth:t,scrollWidth:r}=e;if(t<=0||!Number.isFinite(t)||!Number.isFinite(r))return;let a=Math.ceil(r/t),i=Math.min(A.length,Math.max(1,Number.isFinite(a)?a:1));F(i),B(e=>Math.min(e,i-1))};t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[A.length]);let Z=(0,b.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=N.current;if(!r)return;let a=Math.max(0,Math.min(e,_-1));r.scrollTo({left:a*r.clientWidth,behavior:t?"auto":"smooth"}),B(a)},[_]);return(0,b.useEffect)(()=>{if(_<=1)return;let e=window.setInterval(()=>{if(k.current)return;let e=(E+1)%_;Z(e,0===e)},5e3);return()=>window.clearInterval(e)},[E,_,Z]),(0,a.jsxs)("section",{className:"min-w-0 rounded-2xl border border-[#E5E7EB] bg-white p-4 shadow-[0_4px_12px_rgba(0,0,0,0.08)] sm:p-5 lg:p-6","aria-labelledby":"public-home-services-title",onMouseEnter:()=>{k.current=!0},onMouseLeave:()=>{k.current=!1},onFocus:()=>{k.current=!0},onBlur:()=>{k.current=!1},children:[(0,a.jsxs)("div",{className:"mb-5 flex items-center justify-between gap-4",children:[(0,a.jsx)("h2",{id:"public-home-services-title",className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.025em] sm:text-[32px] lg:text-[40px]",children:y("services.title")}),(0,a.jsxs)(x.default,{href:w.routes.services,className:"inline-flex shrink-0 items-center gap-2 text-sm font-bold text-[var(--home-primary-dark)] hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--home-primary)]",children:[y("common.view_all"),(0,a.jsx)(d.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),j.isLoading?(0,a.jsx)("div",{className:"flex w-full min-w-0 gap-3 overflow-hidden","aria-label":y("common.loading"),children:Array.from({length:6},(e,t)=>(0,a.jsxs)("div",{className:"min-w-[82%] overflow-hidden rounded-xl border border-[#E5E7EB] sm:min-w-[calc((100%-12px)/2)] lg:min-w-[calc((100%-36px)/4)]",children:[(0,a.jsx)("div",{className:"aspect-[4/3] animate-pulse bg-[#E5E7EB]"}),(0,a.jsxs)("div",{className:"space-y-3 p-5 pt-7",children:[(0,a.jsx)("div",{className:"h-5 w-3/4 animate-pulse rounded bg-[#E5E7EB]"}),(0,a.jsx)("div",{className:"h-14 animate-pulse rounded bg-[#F3F4F6]"})]})]},t))}):j.isError?(0,a.jsxs)("div",{className:"rounded-xl border border-[#FECACA] bg-[#FEF2F2] px-5 py-8 text-center",role:"alert",children:[(0,a.jsx)("h3",{className:"font-bold text-[#991B1B]",children:y("services.error_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#7F1D1D]",children:y("services.error_description")}),(0,a.jsx)("button",{type:"button",onClick:()=>j.refetch(),className:"mt-4 rounded-lg bg-[var(--home-primary)] px-4 py-2 text-sm font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:y("common.retry")})]}):0===A.length?(0,a.jsxs)("div",{className:"rounded-xl border border-[#
1E5E7EB] bg-[#F9FAFB] px-5 py-8 text-center",children:[(0,a.jsx)("h3",{className:"font-bold text-[#374151]",children:y("services.empty_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#6B7280]",children:y("services.empty_description")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:N,tabIndex:0,role:"region","aria-label":y("services.list_label"),onKeyDown:function(e){"ArrowLeft"===e.key&&(e.preventDefault(),Z(E-1)),"ArrowRight"===e.key&&(e.preventDefault(),Z(E+1))},onScroll:function(){let e=N.current;e&&0!==e.clientWidth&&B(Math.min(_-1,Math.round(e.scrollLeft/e.clientWidth)))},className:"w-full min-w-0 snap-x snap-mandatory overflow-x-auto rounded-xl outline-none [scrollbar-width:none] focus-visible:ring-2 focus-visible:ring-[var(--home-primary)] focus-visible:ring-offset-4 [&::-webkit-scrollbar]:hidden",children:(0,a.jsx)("div",{className:"flex gap-3",children:A.map(e=>{let t=function(e){if(v[e.slug])return v[e.slug];let t="".concat(e.slug," ").concat(e.title).toLocaleLowerCase();return t.includes("anak")||t.includes("pediatric")?l.Z:t.includes("vaksin")||t.includes("vaccin")?o.Z:t.includes("aritmia")||t.includes("arrhythmia")?n.Z:t.includes("intervensi")||t.includes("intervention")?s.Z:t.includes("check")||t.includes("pemeriksaan")?c.Z:i.Z}(e),r=!e.imageUrl||C.has(e.id);return(0,a.jsxs)(x.default,{href:w.routes.serviceDetail(e.slug),className:"group relative flex min-w-[82%] snap-start flex-col overflow-hidden rounded-xl border border-[var(--home-border)] bg-white transition hover:-translate-y-1 hover:shadow-[0_6px_16px_rgba(0,0,0,0.12)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] sm:min-w-[calc((100%-12px)/2)] lg:min-w-[calc((100%-36px)/4)]",children:[(0,a.jsx)("div",{className:"relative aspect-[4/3] overflow-hidden",children:r?(0,a.jsx)("div",{role:"img","aria-label":y("services.image_alt",{service:e.title}),className:"grid h-full place-items-center bg-[var(--home-primary-soft)] text-[#6B7280]",children:(0,a.jsx)(m.Z,{className:"h-10 w-10","aria-hidden":"true"})}):(0,a.jsx)(h.default,{src:e.imageUrl,alt:y("services.image_alt",{service:e.title}),fill:!0,sizes:"(min-width: 1280px) 200px, (min-width: 1024px) 25vw, (min-width: 640px) 50vw, 82vw",onError:()=>D(t=>new Set(t).add(e.id)),className:"object-cover transition duration-300 group-hover:scale-[1.03]"})}),(0,a.jsx)("span",{className:"absolute left-3 top-[calc(50%-24px)] grid h-12 w-12 place-items-center rounded-full border border-[var(--home-primary-border)] bg-white text-[var(--home-primary)] shadow-[0_3px_10px_rgba(0,0,0,0.08)]",children:(0,a.jsx)(t,{className:"h-8 w-8","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-5 pt-9",children:[(0,a.jsx)("h3",{className:"line-clamp-2 min-h-[43px] text-base font-bold leading-[1.35]",children:e.title}),e.description?(0,a.jsx)("p",{className:"mt-2 line-clamp-3 min-h-[57px] text-xs leading-[1.55] text-[#6B7280]",children:e.description}):null]})]},e.id)})})}),_>1?(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-center gap-3 pb-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>Z(E-1),disabled:0===E,"aria-label":y("services.previous"),className:"grid h-9 w-9 place-items-center rounded-full border border-[var(--home-border)] text-[var(--home-primary-dark)] transition hover:border-[var(--home-primary)] hover:bg-[var(--home-primary-soft)] disabled:cursor-not-allowed disabled:opacity-40",children:(0,a.jsx)(u.Z,{className:"h-4 w-4","aria-hidden":"true"})}),(0,a.jsx)("div",{className:"flex gap-2","aria-label":y("services.pagination"),children:Array.from({length:_},(e,t)=>(0,a.jsx)("button",{type:"button",onClick:()=>Z(t),"aria-label":y("services.go_to_page",{page:t+1}),"aria-current":t===E?"true":void 0,className:"h-2 rounded-full transition ".concat(t===E?"w-5 bg-[var(--home-primary)]":"w-2 bg-[#D1D5DB]")},t))}),(0,a.jsx)("button",{type:"button",onClick:()=>Z(E+1),disabled:E===_-1,"aria-label":y("services.next"),className:"grid h-9 w-9 place-items-center rounded-full border border-[var(--home-border)] text-[var(--home-primary-dark)] transition hover:border-[var(--home-primary)] hover:bg-[var(--home-primary-soft)] disabled:cursor-not-allowed disabled:opacity-40",children:(0,a.jsx)(d.Z,{className:"h-4 w-4","aria-hidden":"true"})})]}):null]})]})}},65252:function(e,t,r){r.d(t,{FeedbackSection:function(){return m}});var a=r(57437),i=r(10724),l=r(71976),s=r(37694),n=r(1859),o=r(18087),c=r(87138),d=r(62548);function m(e){let{audience:t="public"}=e,r=(0,o.useTranslations)("HomePage.public_home"),m=d.C[t],u="".concat(t,"-home");return(0,a.jsxs)("section",{className:"rounded-2xl border border-[var(--home-border)] bg-white p-4 shadow-[0_4px_12px_rgba(0,0,0,0.08)] sm:p-5 lg:p-6","aria-labelledby":"".concat(u,"-feedback-title"),children:[(0,a.jsx)("h2",{id:"".concat(u,"-feedback-title"),className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.025em] sm:text-[32px] lg:text-[40px]",children:r("feedback.title")}),(0,a.jsxs)("div",{className:"mt-5 grid gap-3 sm:grid-cols-3 lg:gap-5",children:[(0,a.jsxs)("article",{className:"flex min-h-[205px] flex-col rounded-xl border border-[var(--home-primary-border)] bg-[linear-gradient(145deg,var(--home-primary-tint),var(--home-primary-soft))] p-4",children:[(0,a.jsx)("span",{className:"mb-3 grid h-14 w-14 place-items-center rounded-xl bg-[var(--home-primary-soft)] text-[var(--home-primary)]",children:(0,a.jsx)(i.Z,{className:"h-8 w-8","aria-hidden":"true"})}),(0,a.jsx)("h3",{className:"text-base font-bold text-[var(--home-primary-dark)]",children:r("feedback.survey.title")}),(0,a.jsx)("p",{className:"mt-2 text-[13px] leading-[1.55] text-[#6B7280]",children:r("feedback.survey.description")}),(0,a.jsxs)("a",{href:"https://spp.pjnhk.go.id/",target:"_blank",rel:"noopener noreferrer",className:"mt-auto flex min-h-10 items-center justify-between rounded-lg bg-[var(--home-primary)] px-3 text-xs font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:[r("feedback.survey.cta"),(0,a.jsx)(l.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),(0,a.jsxs)("article",{className:"flex min-h-[205px] flex-col rounded-xl border border-[var(--home-primary-border)] bg-[linear-gradient(145deg,var(--home-primary-tint),var(--home-primary-soft))] p-4",children:[(0,a.jsx)("span",{className:"mb-3 grid h-14 w-14 place-items-center rounded-xl bg-[var(--home-primary-soft)] text-[var(--home-primary)]",children:(0,a.jsx)(s.Z,{className:"h-8 w-8","aria-hidden":"true"})}),(0,a.jsx)("h3",{className:"text-base font-bold text-[var(--home-primary-dark)]",children:r("feedback.suggestion.title")}),(0,a.jsx)("p",{className:"mt-2 text-[13px] leading-[1.55] text-[#6B7280]",children:r("feedback.suggestion.description")}),(0,a.jsxs)(c.default,{href:m.routes.feedback,className:"mt-auto flex min-h-10 items-center justify-between rounded-lg bg-[var(--home-primary)] px-3 text-xs font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:[r("feedback.suggestion.cta"),(0,a.jsx)(l.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),(0,a.jsxs)("article",{className:"flex min-h-[205px] flex-col rounded-xl border border-[#FECACA] bg-[#FFF3F3] p-4",children:[(0,a.jsx)("span",{className:"mb-3 grid h-14 w-14 place-items-center rounded-xl bg-[#FEE2E2] text-[#EF4444]",children:(0,a.jsx)(n.Z,{className:"h-8 w-8","aria-hidden":"true"})}),(0,a.jsx)("h3",{className:"text-base font-bold text-[#DC2626]",children:r("feedback.report.title")}),(0,a.jsx)("p",{className:"mt-2 text-[13px] leading-[1.55] text-[#6B7280]",children:r("feedback.report.description")}
1),(0,a.jsxs)("a",{href:"https://www.lapor.go.id",target:"_blank",rel:"noopener noreferrer",className:"mt-auto flex min-h-10 items-center justify-between rounded-lg bg-[#EF4444] px-3 text-xs font-bold text-white transition hover:bg-[#DC2626] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#DC2626]",children:[r("feedback.report.cta"),(0,a.jsx)(l.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]})]})]})}},34451:function(e,t,r){r.d(t,{default:function(){return u}});var a=r(57437),i=r(14218),l=r(2342),s=r(18087),n=r(57818),o=r(2265);let c=(0,n.default)(()=>Promise.all([r.e(4868),r.e(3350)]).then(r.bind(r,43350)),{loadableGenerated:{webpack:()=>[43350]}}),d=(0,n.default)(()=>Promise.all([r.e(4868),r.e(1091)]).then(r.bind(r,71091)),{loadableGenerated:{webpack:()=>[71091]}}),m=["imt","heart"];function u(e){let{audience:t="public"}=e,r=(0,s.useTranslations)("HealthCalculatorTabs"),[n,u]=(0,o.useState)("imt"),[p,h]=(0,o.useState)(()=>new Set(["imt"])),x=(0,o.useRef)([]);function b(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h(t=>{if(t.has(e))return t;let r=new Set(t);return r.add(e),r}),u(e),r&&(null===(t=x.current[m.indexOf(e)])||void 0===t||t.focus())}return(0,a.jsxs)("section",{"aria-label":r("label"),children:[(0,a.jsx)("div",{className:"mx-auto flex w-full justify-center px-4 pt-8 sm:px-6 lg:px-8 lg:pt-12",children:(0,a.jsx)("div",{role:"tablist","aria-label":r("label"),className:"inline-flex rounded-full border border-[#E5E7EB] bg-white p-1 shadow-[0_2px_8px_rgba(0,0,0,0.06)]",children:m.map((e,t)=>{let s="imt"===e?i.Z:l.Z,o=n===e;return(0,a.jsxs)("button",{ref:e=>{x.current[t]=e},id:"health-calculator-tab-".concat(e),type:"button",role:"tab","aria-selected":o,"aria-controls":"health-calculator-panel-".concat(e),tabIndex:o?0:-1,onClick:()=>b(e),onKeyDown:e=>{let r;"ArrowRight"===e.key&&(r=(t+1)%m.length),"ArrowLeft"===e.key&&(r=(t-1+m.length)%m.length),"Home"===e.key&&(r=0),"End"===e.key&&(r=m.length-1),void 0!==r&&(e.preventDefault(),b(m[r],!0))},className:"inline-flex min-h-10 items-center justify-center gap-2 rounded-full px-4 text-sm font-semibold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] ".concat(o?"bg-[var(--home-primary)] text-white shadow-sm":"text-[#4B5563] hover:bg-[var(--home-primary-soft)] hover:text-[var(--home-primary-dark)]"),children:[(0,a.jsx)(s,{className:"h-4 w-4","aria-hidden":"true"}),r(e)]},e)})})}),(0,a.jsx)("div",{id:"health-calculator-panel-imt",role:"tabpanel","aria-labelledby":"health-calculator-tab-imt",hidden:"imt"!==n,children:(0,a.jsx)(c,{})}),(0,a.jsx)("div",{id:"health-calculator-panel-heart",role:"tabpanel","aria-labelledby":"health-calculator-tab-heart",hidden:"heart"!==n,children:p.has("heart")?(0,a.jsx)(d,{}):null})]})}},67797:function(e,t,r){r.d(t,{JantungPediaSection:function(){return b}});var a=r(57437),i=r(23397),l=r(2342),s=r(82244),n=r(33907),o=r(71976),c=r(18087),d=r(66648),m=r(87138),u=r(93577),p=r(62548),h=r(49609);let x=[i.Z,l.Z,s.Z,n.Z,i.Z,l.Z];function b(e){let{audience:t="public"}=e,r=(0,c.useTranslations)("HomePage.public_home"),s=p.C[t],n="".concat(t,"-home"),b=(0,u._k)(),g=(0,h.O7)(b.data).map(e=>{let t=(0,h.KF)(e,["judul","title","name"]),r=function(e){if(e)return e.replace(/^https?:\/\/[^/]+/i,"").replace(/^\/?(?:jantungpedia)\//i,"").replace(/^\/+|\/+$/g,"")||void 0}((0,h.KF)(e,["slug","url"]));return t&&r?{title:t,slug:r}:null}).filter(e=>null!==e).slice(0,6);return(0,a.jsx)("section",{className:"rounded-2xl border border-[var(--home-primary-border)] bg-[linear-gradient(135deg,var(--home-primary-tint)_0%,var(--home-primary-soft)_48%,#FFFFFF_100%)] p-4 shadow-[0_4px_12px_rgba(0,0,0,0.08)] sm:p-5 lg:p-6","aria-labelledby":"".concat(n,"-pedia-title"),children:(0,a.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[0.9fr_1.1fr] lg:gap-6",children:[(0,a.jsx)("div",{className:"relative overflow-hidden rounded-2xl bg-[linear-gradient(145deg,var(--home-primary-dark)_0%,var(--home-primary)_55%,var(--home-gradient-end)_100%)] p-5 text-white lg:min-h-[360px] lg:p-7",children:(0,a.jsxs)("div",{className:"relative z-10 flex flex-col",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,a.jsx)(d.default,{src:"/assets/pilar-2.jpeg",alt:r("pedia.pillar_alt"),width:64,height:64,className:"h-12 w-12 object-contain lg:h-14 lg:w-14"}),(0,a.jsx)("span",{className:"inline-flex w-fit items-center rounded-full bg-white/15 px-3 py-1 text-xs font-semibold ring-1 ring-white/25",children:r("pedia.eyebrow")})]}),(0,a.jsx)("h2",{id:"".concat(n,"-pedia-title"),className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.025em] sm:text-[32px] lg:text-[40px]",children:r("pedia.title")}),(0,a.jsx)("p",{className:"mt-3 max-w-[460px] text-sm leading-6 text-white/90 lg:text-base",children:r("pedia.description")}),(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-medium ring-1 ring-white/20",children:[(0,a.jsx)(i.Z,{className:"h-3.5 w-3.5","aria-hidden":"true"}),r("pedia.article_badge")]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-medium ring-1 ring-white/20",children:[(0,a.jsx)(l.Z,{className:"h-3.5 w-3.5","aria-hidden":"true"}),r("pedia.category_badge")]})]}),(0,a.jsxs)(m.default,{href:s.routes.pedia,className:"mt-5 inline-flex min-h-11 w-fit items-center gap-2 rounded-lg bg-white px-5 text-sm font-bold text-[var(--home-primary-dark)] transition hover:-translate-y-0.5 hover:shadow-[0_6px_16px_rgba(0,0,0,0.12)] focu
1s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:[r("pedia.cta"),(0,a.jsx)(o.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-[var(--home-primary-dark)]",children:r("pedia.topic_title")}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[#6B7280]",children:r("pedia.topic_description")})]}),b.isLoading?(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2","aria-label":r("common.loading"),children:Array.from({length:4}).map((e,t)=>(0,a.jsxs)("div",{className:"flex min-h-[86px] animate-pulse items-center gap-3 rounded-xl border border-[var(--home-primary-border)] bg-white/85 p-4",children:[(0,a.jsx)("div",{className:"h-11 w-11 shrink-0 rounded-xl bg-[var(--home-primary-soft-strong)]"}),(0,a.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,a.jsx)("div",{className:"h-4 w-3/4 rounded bg-[#E5E7EB]"}),(0,a.jsx)("div",{className:"h-3 w-1/2 rounded bg-[#F3F4F6]"})]})]},t))}):b.isError?(0,a.jsxs)("div",{className:"flex min-h-[120px] flex-col items-center justify-center rounded-xl border border-[#FECACA] bg-[#FEF2F2] p-6 text-center",role:"alert",children:[(0,a.jsx)("h3",{className:"font-bold text-[#991B1B]",children:r("pedia.error_title")}),(0,a.jsx)("p",{className:"mt-2 max-w-xl text-sm text-[#7F1D1D]",children:r("pedia.error_description")}),(0,a.jsx)("button",{type:"button",onClick:()=>b.refetch(),className:"mt-4 rounded-lg bg-[var(--home-primary)] px-4 py-2 text-sm font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:r("common.retry")})]}):0===g.length?(0,a.jsxs)("div",{className:"flex min-h-[120px] flex-col items-center justify-center rounded-xl border border-[var(--home-primary-border)] bg-white/85 p-6 text-center",children:[(0,a.jsx)("p",{className:"text-sm text-[#6B7280]",children:r("pedia.empty")}),(0,a.jsxs)(m.default,{href:s.routes.pedia,className:"mt-3 inline-flex items-center gap-2 text-sm font-bold text-[var(--home-primary)] hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)]",children:[r("pedia.cta"),(0,a.jsx)(o.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}):(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",role:"list","aria-label":r("pedia.list_label"),children:g.map((e,t)=>{let r=x[t%x.length];return(0,a.jsxs)(m.default,{href:s.routes.pediaDetail(e.slug),role:"listitem",className:"group flex min-h-[86px] items-center gap-3 rounded-xl border border-[var(--home-primary-border)] bg-white/85 p-4 transition hover:-translate-y-0.5 hover:border-[var(--home-primary)] hover:shadow-[0_6px_16px_rgba(0,0,0,0.12)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)]",children:[(0,a.jsx)("span",{className:"grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-[var(--home-primary-soft-strong)] text-[var(--home-primary)]",children:(0,a.jsx)(r,{className:"h-6 w-6","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"line-clamp-2 min-w-0 flex-1 text-sm font-bold leading-[1.35] text-[#111111] group-hover:text-[var(--home-primary-dark)]",children:e.title}),(0,a.jsx)(o.Z,{className:"h-4 w-4 shrink-0 text-[var(--home-primary)] transition group-hover:translate-x-0.5","aria-hidden":"true"})]},e.slug)})})]})]})})}},39966:function(e,t,r){r.d(t,{default:function(){return x}});var a=r(57437),i=r(71976),l=r(22874),s=r(87385),n=r(18087),o=r(66648),c=r(87138),d=r(2265),m=r(93577),u=r(62548),p=r(49609);let h=["news","article","siaran_pers"];function x(e){let{audience:t="public"}=e,r=(0,n.useTranslations)("HomePage.public_home"),x=(0,n.useLocale)(),b=u.C[t],g="".concat(t,"-home"),[f,v]=(0,d.useState)("news"),[y,w]=(0,d.useState)(new Set),j=(0,d.useRef)([]),N=(0,m.jI)("news"===f?3:"siaran_pers"===f?5:4,3),k=(0,p.O7)(N.data).slice(0,3),_=N.isLoading,F=N.isError,E=!_&&!F&&0===k.length,B=k.map(e=>({slug:(0,p.KF)(e,["slug","url"])||"",title:(0,p.KF)(e,["judul","title"])||"",summary:(0,p.aF)((0,p.KF)(e,["ringkasan","deskripsi","summary","de
1scription"])||"",220),category:(0,p.KF)(e,["kategori_nama","category_name","kategori"])||"",date:(0,p.KF)(e,["created_at","published_at","tanggal"])||"",image:(0,p.Py)(e.photo,""),imageAlt:(0,p.KF)(e,["judul","title"])||""}));function C(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(e),r&&(null===(t=j.current[h.indexOf(e)])||void 0===t||t.focus())}return(0,a.jsxs)("section",{className:"rounded-2xl border border-[var(--home-border)] bg-white p-4 shadow-[0_4px_12px_rgba(0,0,0,0.08)] sm:p-5 lg:p-6","aria-labelledby":"".concat(g,"-latest-title"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)("h2",{id:"".concat(g,"-latest-title"),className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.025em] sm:text-[32px] lg:text-[40px]",children:r("latest.title")}),(0,a.jsxs)(c.default,{href:b.routes.articles,className:"inline-flex shrink-0 items-center gap-2 text-sm font-bold text-[var(--home-primary-dark)] hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--home-primary)]",children:[r("common.view_all"),(0,a.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),(0,a.jsx)("div",{role:"tablist","aria-label":r("latest.tablist_label"),className:"mt-5 flex gap-2 overflow-x-auto border-b border-[#E5E7EB] sm:gap-8",children:h.map((e,t)=>(0,a.jsx)("button",{type:"button",ref:e=>{j.current[t]=e},id:"latest-tab-".concat(e),role:"tab","aria-selected":f===e,"aria-controls":"latest-information-panel",tabIndex:f===e?0:-1,onClick:()=>C(e),onKeyDown:e=>{let r;"ArrowRight"===e.key&&(r=(t+1)%h.length),"ArrowLeft"===e.key&&(r=(t-1+h.length)%h.length),"Home"===e.key&&(r=0),"End"===e.key&&(r=h.length-1),void 0!==r&&(e.preventDefault(),C(h[r],!0))},className:"relative shrink-0 px-3 pb-3 text-sm font-semibold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--home-primary)] ".concat(f===e?"text-[var(--home-primary-dark)] after:absolute after:inset-x-0 after:bottom-[-1px] after:h-[3px] after:rounded-t after:bg-[var(--home-primary)]":"text-[#4B5563] hover:text-[var(--home-primary-dark)]"),children:r("latest.tabs.".concat(e))},e))}),(0,a.jsx)("div",{id:"latest-information-panel",role:"tabpanel","aria-labelledby":"latest-tab-".concat(f),tabIndex:0,className:"min-h-[330px] outline-none focus-visible:ring-2 focus-visible:ring-[var(--home-primary)] focus-visible:ring-offset-4",children:_?(0,a.jsx)("div",{className:"grid gap-4 pt-5 lg:grid-cols-3",children:Array.from({length:3},(e,t)=>(0,a.jsxs)("div",{className:"overflow-hidden rounded-xl border border-[#E5E7EB] bg-white","aria-label":r("common.loading"),children:[(0,a.jsx)("div",{className:"aspect-video animate-pulse bg-[#E5E7EB]"}),(0,a.jsxs)("div",{className:"space-y-3 p-4",children:[(0,a.jsx)("div",{className:"h-5 w-3/4 animate-pulse rounded bg-[#E5E7EB]"}),(0,a.jsx)("div",{className:"h-8 animate-pulse rounded bg-[#F3F4F6]"}),(0,a.jsx)("div",{className:"h-4 w-1/2 animate-pulse rounded bg-[#E5E7EB]"})]})]},t))}):F?(0,a.jsxs)("div",{className:"flex min-h-[200px] flex-col items-center justify-center rounded-xl border border-[#FECACA] bg-[#FEF2F2] px-5 py-8 text-center",role:"alert",children:[(0,a.jsx)("h3",{className:"font-bold text-[#991B1B]",children:r("latest.error_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#7F1D1D]",children:r("latest.error_description")}),(0,a.jsx)("button",{type:"button",onClick:()=>N.refetch(),className:"mt-4 rounded-lg bg-[var(--home-primary)] px-4 py-2 text-sm font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:r("common.retry")})]}):E?(0,a.jsx)("div",{className:"flex min-h-[200px] flex-col items-center justify-center rounded-xl border border-[#E5E7EB] bg-[#F9FAFB] px-5 py-8 text-center",children:(0,a.jsx)("h3",{className:"font-bold text-[#374151]",children:r("latest.empty_title")})}):(0,a.jsx)("div",{className:"grid gap-4 pt-5 lg:grid-cols-3",children:B.map((e,t)=>{let n="".concat(f,"-").concat(e.slug,"-").concat(t);return(0,a.jsxs)(c.default,{href:b.routes.articleDetail(e.slug.replace(/^https?:\/\/[^/]+/i,"").replace(/^\/?artikel\//i,"").replace(/^\/+|\/+$/g,"")),className:"group flex min-h-full flex-col overflow-hidden rounded-xl border border-[var(--home-border)] bg-white transition hover:-translate-y-1 hover:shadow-[0_6px_16px_rgba(0,0,0,0.12)] focu
1s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)]",children:[(0,a.jsx)("div",{className:"relative aspect-video overflow-hidden bg-[var(--home-border)]",children:!e.image||y.has(n)?(0,a.jsx)("div",{role:"img","aria-label":r("latest.image_fallback"),className:"grid h-full place-items-center text-[#9CA3AF]",children:(0,a.jsx)(l.Z,{className:"h-10 w-10","aria-hidden":"true"})}):(0,a.jsx)(o.default,{src:e.image,alt:e.imageAlt,fill:!0,sizes:"(min-width: 1024px) 33vw, 100vw",onError:()=>w(e=>new Set(e).add(n)),className:"object-cover transition duration-300 group-hover:scale-[1.03]"})}),(0,a.jsxs)("article",{className:"flex flex-1 flex-col p-4 lg:p-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs",children:[(0,a.jsx)("span",{className:"font-bold uppercase tracking-wide text-[var(--home-primary)]",children:e.category}),(0,a.jsxs)("time",{dateTime:e.date,className:"inline-flex shrink-0 items-center gap-1.5 text-[#6B7280]",children:[(0,a.jsx)(s.Z,{className:"h-4 w-4","aria-hidden":"true"}),function(e,t){let r=new Date(e);return Number.isNaN(r.getTime())?e:new Intl.DateTimeFormat("en"===t?"en-US":"id-ID",{day:"numeric",month:"long",year:"numeric"}).format(r)}(e.date,x)]})]}),(0,a.jsx)("h3",{className:"mt-3 line-clamp-2 min-h-[48px] text-base font-bold leading-6 group-hover:text-[var(--home-primary-dark)] lg:text-lg",children:e.title}),(0,a.jsx)("p",{className:"mt-2 line-clamp-2 text-[13px] leading-5 text-[#6B7280]",children:e.summary}),(0,a.jsxs)("span",{className:"mt-auto inline-flex items-center gap-2 pt-4 text-sm font-bold text-[var(--home-primary-dark)]",children:[r("common.read_more"),(0,a.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]})]},n)})})})]})}},84357:function(e,t,r){r.d(t,{default:function(){return h}});var a=r(57437),i=r(71976),l=r(22874),s=r(87385),n=r(95137),o=r(18087),c=r(66648),d=r(87138),m=r(2265),u=r(93577),p=r(62548);function h(e){var t;let{audience:r="public"}=e,h=(0,o.useTranslations)("HomePage.public_home"),x=(0,o.useFormatter)(),b=p.C[r],g=(0,u.d5)(3,r),f=(0,m.useRef)(null),[v,y]=(0,m.useState)(1),[w,j]=(0,m.useState)(0),[N,k]=(0,m.useState)(new Set),_=null!==(t=g.data)&&void 0!==t?t:[];function F(e){let t=f.current;if(!t)return;let r=Math.max(0,Math.min(e,v-1));t.scrollTo({left:r*t.clientWidth,behavior:"smooth"}),j(r)}return(0,m.useEffect)(()=>{let e=f.current;if(!e)return;j(0),e.scrollTo({left:0,behavior:"auto"});let t=()=>{let{clientWidth:t,scrollWidth:r}=e;if(t<=0||!Number.isFinite(t)||!Number.isFinite(r))return;let a=Math.ceil(r/t),i=Math.min(_.length,Math.max(1,Number.isFinite(a)?a:1));y(i),j(e=>Math.min(e,i-1))};t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[_.length]),(0,a.jsxs)("section",{className:"min-w-0 rounded-2xl border border-[#E5E7EB] bg-white p-4 shadow-[0_4px_12px_rgba(0,0,0,0.08)] sm:p-5 lg:p-6","aria-labelledby":"public-home-promotions-title",children:[(0,a.jsxs)("div",{className:"mb-5 flex items-center justify-between gap-4",children:[(0,a.jsx)("h2",{id:"public-home-promotions-title",className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.025em] sm:text-[32px] lg:text-[40px]",children:h("promotions.title")}),(0,a.jsxs)(d.default,{href:b.routes.promotions,className:"inline-flex shrink-0 items-center gap-2 text-sm font-bold text-[var(--home-primary-dark)] hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--home-primary)]",children:[h("common.view_all"),(0,a.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),g.isLoading?(0,a.jsx)("div",{className:"flex w-full min-w-0 gap-4 overflow-hidden","aria-label":h("common.loading"),children:Array.from({length:3},(e,t)=>(0,a.jsxs)("div",{className:"min-w-[82%] overflow-hidden rounded-xl border border-[#E5E7EB] bg-white sm:min-w-[calc((100%-16px)/2)] lg:min-w-[calc((100%-32px)/3)]",children:[(0,a.jsx)("div",{className:"aspect-square animate-pulse bg-[#E5E7EB]"}),(0,a.jsxs)("div",{className:"space-y-3 p-4",children:[(0,a.jsx)("div",{className:"h-5 w-2/3 animate-pulse rounded bg-[#E5E7EB]"}),(0,a.jsx)("div",{className:"h-12 animate-pulse rounded bg-[#F3F4F6]"}),(0,a.jsx)("div",{className:"h-7 w-1/2 animate-pulse rounded bg-[#E5E7EB]"})]})]},t))}):g.isError?(0,a.jsxs)("div",{className:"rounded-xl border border-[#FECACA] bg-[#FEF2F2] px-5 py-8 text-center",role:"alert",children:[(0,a.jsx)("h3",{className:"font-bold text-[#991B1B]",children:h("promotions.error_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#7F1D1D]",children:h("promotions.error_description")}),(0,a.jsx)("button",{type:"button",onClick:()=>g.refetch(),className:"mt-4 rounded-lg bg-[var(--home-primary)] px-4 py-2 text-sm font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:h("common.retry")})]}):0===_.length?(0,a.jsxs)("div",{className:"rounded-xl border border-[#
1E5E7EB] bg-[#F9FAFB] px-5 py-8 text-center",children:[(0,a.jsx)("h3",{className:"font-bold text-[#374151]",children:h("promotions.empty_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#6B7280]",children:h("promotions.empty_description")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:f,tabIndex:0,role:"region","aria-label":h("promotions.title"),onKeyDown:function(e){"ArrowLeft"===e.key&&(e.preventDefault(),F(w-1)),"ArrowRight"===e.key&&(e.preventDefault(),F(w+1))},onScroll:function(){let e=f.current;e&&0!==e.clientWidth&&j(Math.min(v-1,Math.round(e.scrollLeft/e.clientWidth)))},className:"w-full min-w-0 snap-x snap-mandatory overflow-x-auto scroll-smooth rounded-xl outline-none [scrollbar-width:none] focus-visible:ring-2 focus-visible:ring-[var(--home-primary)] focus-visible:ring-offset-4 [&::-webkit-scrollbar]:hidden",children:(0,a.jsx)("div",{className:"flex gap-4",children:_.map(e=>{let t=!e.imageUrl||N.has(e.id),r=e.publishedAt?x.dateTime(new Date(e.publishedAt),{year:"numeric",month:"short",day:"numeric"}):void 0;return(0,a.jsxs)(d.default,{href:b.routes.promotionDetail(e.id),"aria-label":"".concat(e.title,": ").concat(e.cta),className:"group flex min-w-[82%] snap-start flex-col overflow-hidden rounded-xl border border-[var(--home-border)] bg-white shadow-sm transition hover:-translate-y-1 hover:shadow-[0_6px_16px_rgba(0,0,0,0.12)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] sm:min-w-[calc((100%-16px)/2)] lg:min-w-[calc((100%-32px)/3)]",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-[var(--home-primary-soft)]",children:[t?(0,a.jsx)("div",{role:"img","aria-label":h("promotions.image_alt",{promotion:e.title}),className:"grid h-full place-items-center text-[#6B7280]",children:(0,a.jsx)(l.Z,{className:"h-10 w-10","aria-hidden":"true"})}):(0,a.jsx)(c.default,{src:e.imageUrl,alt:h("promotions.image_alt",{promotion:e.title}),fill:!0,sizes:"(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 82vw",onError:()=>k(t=>new Set(t).add(e.id)),className:"object-cover object-center transition duration-300 group-hover:scale-[1.03]"}),e.badge?(0,a.jsx)("span",{className:"absolute left-4 top-4 roun
1ded-md bg-[var(--home-primary)] px-2.5 py-1 text-[10px] font-extrabold tracking-[0.03em] text-white shadow-[0_4px_12px_rgba(0,0,0,0.16)]",children:e.badge}):null]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-4 lg:p-5",children:[(0,a.jsx)("h3",{className:"line-clamp-2 min-h-[52px] text-xl font-bold leading-[1.28]",children:e.title}),(0,a.jsx)("p",{className:"mt-2 line-clamp-3 min-h-[60px] text-[13px] leading-5 text-[#4B5563]",children:e.description}),(0,a.jsxs)("div",{className:"mt-4 min-h-[85px] border-t border-[#E5E7EB] pt-4",children:[(0,a.jsx)("strong",{className:"block text-[24px] leading-tight text-[var(--home-primary-dark)]",children:h("promotions.highlight")}),(0,a.jsx)("small",{className:"mt-2 line-clamp-2 block min-h-[31px] text-[11px] leading-[15px] text-[#374151]",children:e.period})]}),(0,a.jsx)("small",{className:"mt-4 inline-flex min-h-[17px] items-center gap-2 text-[11px] text-[#4B5563]",children:r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{className:"h-3.5 w-3.5","aria-hidden":"true"}),h("promotions.published_at",{date:r})]}):null}),(0,a.jsxs)("span",{className:"mt-auto inline-flex items-center gap-2 pt-4 text-sm font-bold text-[var(--home-primary-dark)]",children:[e.cta,(0,a.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]})]},e.id)})})}),v>1?(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-center gap-3 pb-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>F(w-1),disabled:0===w,"aria-label":h("promotions.previous"),className:"hidden h-9 w-9 place-items-center rounded-full border border-[var(--home-border)] text-[var(--home-primary-dark)] transition hover:border-[var(--home-primary)] hover:bg-[var(--home-primary-soft)] disabled:cursor-not-allowed disabled:opacity-40 sm:grid",children:(0,a.jsx)(n.Z,{className:"h-4 w-4","aria-hidden":"true"})}),(0,a.jsx)("div",{className:"flex gap-2","aria-label":h("promotions.pagination"),children:Array.from({length:v},(e,t)=>(0,a.jsx)("button",{type:"button",onClick:()=>F(t),"aria-label":h("promotions.go_to_page",{page:t+1}),"aria-current":t===w?"true":void 0,className:"h-2 rounded-full transition ".concat(t===w?"w-5 bg-[var(--home-primary)]":"w-2 bg-[#D1D5DB]")},t))}),(0,a.jsx)("button",{type:"button",onClick:()=>F(w+1),disabled:w===v-1,"aria-label":h("promotions.next"),className:"hidden h-9 w-9 place-items-center rounded-full border border-[var(--home-border)] text-[var(--home-primary-dark)] transition hover:border-[var(--home-primary)] hover:bg-[var(--home-primary-soft)] disabled:cursor-not-allowed disabled:opacity-40 sm:grid",children:(0,a.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"})})]}):null]})]})}},97667:function(e,t,r){r.d(t,{TestimonialSection:function(){return x}});var a=r(57437),i=r(37694),l=r(71145),s=r(10724),n=r(95137),o=r(71976),c=r(18087),d=r(66648),m=r(2265),u=r(43153),p=r(58902),h=r(49609);function x(e){let{audience:t="public"}=e,r=(0,c.useTranslations)("HomePage.public_home"),x="".concat(t,"-home"),b=(0,p.g)("",1,3),g=(0,m.useRef)(null),[f,v]=(0,m.useState)(0),[y,w]=(0,m.useState)(new Set),j=(0,h.O7)(b.data).slice(0,3).map(e=>{var t,r,a,i,l,s;let n=null!==(t=(0,h.KF)(e,["patients","patient_name","name"]))&&void 0!==t?t:"";return{id:String(null!==(r=e.id)&&void 0!==r?r:""),quote:null!==(a=(0,h.KF)(e,["deskripsi","description"]))&&void 0!==a?a:"",name:n,category:null!==(i=(0,h.KF)(e,["category","judul","title"]))&&void 0!==i?i:"",role:null!==(l=(0,h.KF)(e,["patient_as","patient_role"]))&&void 0!==l?l:"",service:null!==(s=(0,h.KF)(e,["category","judul"]))&&void 0!==s?s:"",image:(0,h.Py)(e.photo,""),imageAlt:n,imagePosition:"center",url:(0,h.MX)(e.url)?e.url:void 0}}),N=j.length>1,k=b.isLoading,_=b.isError,F=!k&&!_&&0===j.length;return(0,a.jsxs)("section",{className:"relative isolate -mx-6 min-w-0 overflow-hidden bg-[radial-gradient(circle_at_14%_12%,var(--home-primary-wash),transparent_28%),linear-gradient(180deg,#FFFFFF_0%,#F9FAFB_100%)] px-6 py-16 sm:-mx-6 lg:-mx-[60px] lg:px-[60px] lg:py-20 xl:py-24","aria-labelledby":"".concat(x,"-testimonial-title"),children:[(0,a.jsx)("span",{className:"absolute right-3 top-5 -z-10 h-[52px] w-20 bg-[radial-gradient(circle,var(--home-primary)_2px,transparent_2.5px)] opacity-20 [background-size:16px_16px] sm:right-16 sm:top-11 sm:opacity-30 lg:right-28","aria-hidden":"true"}),(0,a.jsx)("span",{className:"absolute -right-24 -top-24 -z-10 h-[270px] w-[270px] rotate-[38deg] rounded-[50%_50%_48%_52%] border-[11px] border-[var(--home-primary)]/20","aria-hidden":"true"}),(0,a.jsx)("span",{className:"absolute -bottom-32 -left-36 -z-10 h-[250px] w-[340px] rotate-[18deg] rounded-[58%_42%_0_0] bg-[radial-gradient(circle_at_70%_35%,var(--home-gradient-decor),transparent_38%),linear-gradient(145deg,var(--home-primary-decor),var(--home-gradient-faint))]","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"mx-auto w-full max-w-[1440px]",children:[(0,a.jsxs)("header",{className:"mx-auto mb-7 max-w-[940px] text-center sm:mb-9",children:[(0,a.jsxs)("div",{className:"mb-4 inline-flex min-h-[42px] items-center gap-3 rounded-full border border-[var(--home-primary)]/[0.06] bg-[var(--home-primary-soft-strong)] px-4 py-2 text-[11px] font-bold uppercase tracking-[0.14em] text-[var(--home-primary-heading)] sm:min-h-12 sm:px-[22px] sm:text-sm sm:tracking-[0.18em]",children:[(0,a.jsx)("span",{className:"grid h-[30px] w-[30px] place-items-center rounded-lg bg-[var(--home-primary)] text-white",children:(0,a.jsx)(i.Z,{className:"h-[17px] w-[17px]","aria-hidden":"true"})}),r("testimonial.eyebrow")]}),(0,a.jsx)("h2",{id:"".concat(x,"-testimonial-title"),className:"text-[34px] font-bold leading-[1.2] tracking-[-0.025em] text-[var(--home-primary-heading)] sm:text-[40px] lg:text-[48px]",children:r("testimonial.heading")}),(0,a.jsx)("p",{className:"mx-auto mt-3 max-w-[790px] text-sm leading-[1.6] text-[#6B7280] sm:text-base",children:r("testimonial.description")})]}),(0,a.jsx)("div",{className:"relative","aria-roledescription":"carousel","aria-label":r("testimonial.carousel_label"),children:k?(0,a.jsxs)("div",{className:"grid overflow-hidden rounded-2xl border border-[#
1E5E7EB]/90 bg-white shadow-[0_4px_12px_rgba(0,0,0,0.08)] lg:grid-cols-[minmax(0,1.02fr)_minmax(0,1.18fr)]",children:[(0,a.jsx)("div",{className:"aspect-[4/3] animate-pulse bg-[#E5E7EB] lg:aspect-auto lg:h-[540px]"}),(0,a.jsxs)("div",{className:"flex min-h-[360px] flex-col justify-center px-6 py-10 sm:px-10 lg:min-h-[540px] lg:px-16",children:[(0,a.jsx)("div",{className:"mb-7 h-10 w-44 animate-pulse rounded-full bg-[var(--home-primary-soft-strong)]"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"h-5 animate-pulse rounded bg-[#F3F4F6]"}),(0,a.jsx)("div",{className:"h-5 animate-pulse rounded bg-[#F3F4F6]"}),(0,a.jsx)("div",{className:"h-5 w-5/6 animate-pulse rounded bg-[#F3F4F6]"}),(0,a.jsx)("div",{className:"h-5 w-2/3 animate-pulse rounded bg-[#F3F4F6]"})]}),(0,a.jsx)("div",{className:"my-7 h-px bg-[#E5E7EB]"}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"h-[58px] w-[58px] animate-pulse rounded-full bg-[#E5E7EB]"}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"h-5 w-36 animate-pulse rounded bg-[#E5E7EB]"}),(0,a.jsx)("div",{className:"h-4 w-28 animate-pulse rounded bg-[#F3F4F6]"})]})]})]})]}):_?(0,a.jsxs)("div",{className:"flex min-h-[360px] flex-col items-center justify-center rounded-2xl border border-[#FECACA] bg-[#FEF2F2] px-6 py-10 text-center lg:min-h-[540px]",role:"alert",children:[(0,a.jsx)("h3",{className:"font-bold text-[#991B1B]",children:r("testimonial.error_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#7F1D1D]",children:r("testimonial.error_description")}),(0,a.jsx)("button",{type:"button",onClick:()=>b.refetch(),className:"mt-4 rounded-lg bg-[var(--home-primary)] px-4 py-2 text-sm font-bold text-white transition hover:bg-[var(--home-primary-dark)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary-dark)]",children:r("common.retry")})]}):F?(0,a.jsxs)("div",{className:"flex min-h-[360px] flex-col items-center justify-center rounded-2xl border border-[var(--home-border)] bg-[#F9FAFB] px-6 py-10 text-center lg:min-h-[540px]",children:[(0,a.jsx)("h3",{className:"font-bold text-[#374151]",children:r("testimonial.empty_title")}),(0,a.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-[#6B7280]",children:r("testimonial.empty_description")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"min-w-0 overflow-hidden [&_.slick-list]:min-w-0 [&_.slick-slide>div]:h-full [&_.slick-slider]:min-w-0 [&_.slick-track]:flex",children:(0,a.jsx)(u.Z,{ref:g,arrows:!1,dots:!1,infinite:N,accessibility:!0,afterChange:e=>v(e),slidesToScroll:1,slidesToShow:1,speed:500,children:j.map((e,t)=>{let n=!e.image||y.has(e.id);return(0,a.jsx)("div",{className:"h-auto",children:(0,a.jsxs)("article",{className:"grid h-full overflow-hidden rounded-2xl border border-[#E5E7EB]/90 bg-white shadow-[0_4px_12px_rgba(0,0,0,0.08)] lg:grid-cols-[minmax(0,1.02fr)_minmax(0,1.18fr)]","aria-live":"polite",children:[(0,a.jsxs)("figure",{className:"relative aspect-[4/3] overflow-hidden bg-[#DFE8E6] lg:aspect-auto lg:h-[540px] xl:h-[560px]",children:[n?(0,a.jsx)("div",{role:"img","aria-label":r("testimonial.image_fallback"),className:"absolute inset-0 grid place-items-center bg-[var(--home-primary-soft)] text-[var(--home-primary)]",children:(0,a.jsx)(l.Z,{className:"h-14 w-14","aria-hidden":"true"})}):(0,a.jsx)(d.default,{src:e.image,alt:e.imageAlt,fill:!0,priority:0===t,sizes:"(min-width: 1024px) 46vw, calc(100vw - 48px)",onError:()=>w(t=>new Set(t).add(e.id)),className:"object-cover",style:{objectPosition:e.imagePosition}}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-[16%] bg-[linear-gradient(180deg,transparent,rgba(4,61,57,0.08))]"}),e.url?(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r("testimonial.open_story",{name:e.name}),className:"absolute inset-0 rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-white"}):null]}),(0,a.jsxs)("div",{className:"relative flex min-w-0 flex-col justify-center px-6 py-[38px] sm:px-10 sm:py-[52px] lg:min-h-[540px] lg:px-16 lg:py-12 xl:min-h-[560px]",children:[(0,a.jsx)("span",{className:"pointer-events-none absolute left-5 top-5 select-none font-serif text-[80px] font-bold leading-none text-[#C9EEE8] sm:left-7 sm:top-6 sm:text-[104px] lg:left-9 lg:top-7 lg:text-[128px]","aria-hidden":"true",children:"“"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-6 ml-[52px] inline-flex min-h-9 items-center gap-2 rounded-full bg-[var(--home-primary-soft-strong)] px-3 text-xs font-bold text-[var(--home-primary-heading)] sm:ml-[72px] sm:min-h-[42px] sm:px-[18px] sm:text-[15px] lg:mb-7 lg:ml-[92px]",children:[(0,a.jsx)(i.Z,{className:"h-[18px] w-[18px] sm:h-[22px] sm:w-[22px]","aria-hidden":"true"}),e.category]}),(0,a.jsx)("blockquote",{className:"line-clamp-5 text-[17px] leading-[1.6] text-[#1F2937] sm:text-lg lg:text-[22px] lg:leading-[1.65]",children:e.quote}),(0,a.jsx)("div",{className:"my-6 h-px bg-[#E5E7EB] lg:my-7","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"flex items-center gap-[15px]",children:[(0,a.jsx)("div",{className:"relative h-[58px] w-[58px] flex-none overflow-hidden rounded-full border-[3px] border-white bg-[var(--home-primary-soft-strong)] shadow-[0_0_0_1px_var(--home-primary-ring)]",children:n?(0,a.jsx)("div",{role:"img","aria-label":r("testimonial.image_fallback"),
1className:"absolute inset-0 grid place-items-center bg-[var(--home-primary-soft)] text-[var(--home-primary)]",children:(0,a.jsx)(l.Z,{className:"h-7 w-7","aria-hidden":"true"})}):(0,a.jsx)(d.default,{src:e.image,alt:"",fill:!0,sizes:"58px",onError:()=>w(t=>new Set(t).add(e.id)),className:"object-cover",style:{objectPosition:"center 26%"}})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-lg font-bold leading-[1.35] text-[var(--home-primary-heading)]",children:e.name}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-[1.45] text-[#6B7280]",children:e.role})]})]}),(0,a.jsxs)("div",{className:"mt-5 flex items-center gap-2.5 text-sm leading-[1.5] text-[#374151]",children:[(0,a.jsx)("span",{className:"grid h-[38px] w-[38px] flex-none place-items-center rounded-full bg-[var(--home-primary-soft-strong)] text-[var(--home-primary-heading)]",children:(0,a.jsx)(s.Z,{className:"h-[22px] w-[22px]","aria-hidden":"true"})}),(0,a.jsx)("span",{children:e.service})]})]})]})]})},e.id)})})}),N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.slickPrev()},"aria-label":r("testimonial.previous"),className:"absolute left-[-15px] top-[30%] z-10 grid h-[46px] w-[46px] place-items-center rounded-full border border-[#E5E7EB]/85 bg-white/95 text-[var(--home-primary-heading)] shadow-[0_10px_30px_rgba(15,23,42,0.12)] transition hover:scale-105 hover:border-[var(--home-primary)]/25 hover:bg-[var(--home-primary)] hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] sm:top-[36%] lg:left-[-30px] lg:top-1/2 lg:h-[58px] lg:w-[58px] lg:-translate-y-1/2 lg:hover:-translate-y-1/2",children:(0,a.jsx)(n.Z,{className:"h-5 w-5 lg:h-6 lg:w-6","aria-hidden":"true"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.slickNext()},"aria-label":r("testimonial.next"),className:"absolute right-[-15px] top-[30%] z-10 grid h-[46px] w-[46px] place-items-center rounded-full border border-[#E5E7EB]/85 bg-white/95 text-[var(--home-primary-heading)] shadow-[0_10px_30px_rgba(15,23,42,0.12)] transition hover:scale-105 hover:border-[var(--home-primary)]/25 hover:bg-[var(--home-primary)] hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] sm:top-[36%] lg:right-[-30px] lg:top-1/2 lg:h-[58px] lg:w-[58px] lg:-translate-y-1/2 lg:hover:-translate-y-1/2",children:(0,a.jsx)(o.Z,{className:"h-5 w-5 lg:h-6 lg:w-6","aria-hidden":"true"})}),(0,a.jsx)("div",{className:"mt-6 flex items-center justify-center gap-3 lg:mt-[34px]",children:j.map((e,t)=>(0,a.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.slickGoTo(t)},"aria-label":r("testimonial.go_to_slide",{slide:t+1}),"aria-current":f===t?"true":"false",className:"h-[11px] w-[11px] rounded-full bg-[#D1D5DB] transition-all hover:bg-[var(--home-primary)]/70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--home-primary)] aria-[current=true]:w-[30px] aria-[current=true]:bg-[var(--home-primary)]"},e.id))})]}):null]})})]})]})}r(55291),r(9051)},62548:function(e,t,r){r.d(t,{C:function(){return l},K:function(){return i}});let a=(e,t)=>"".concat(e,"/").concat(encodeURIComponent(t)),i=e=>"executive"===e?1:0,l={public:{audience:"public",translationNamespace:"HomePage",heroCopy:{ariaLabel:"banner_hero_aria_label",eyebrow:"banner_hero_eyebrow",title:"banner_hero_title",accentTitle:"banner_hero_subtitle",description:"banner_hero_description",fallbackAlt:"banner_hero_title",searchLabel:"search_placeholder",searchPlaceholder:"search_placeholder",searchSubmit:"search",quickActionsLabel:"quick_actions_label"},routes:{profile:"/direktur/about",search:"/search",appointment:"/dokter/jadwal",medicalCheckup:"/mcp",services:"/layanan",serviceDetail:e=>a("/layanan",e),promotions:"/promo",promotionDetail:e=>a("/promo",e),articles:"/artikel",articleDetail:e=>a("/artikel",e),feedback:"/lapor/masyarakat",pedia:"/jantungpedia",pediaDetail:e=>a("/jantungpedia",e)},quickActions:[{id:"appointment",titleKey:"make_appointment",subtitleKey:"make_appointment_subtitle",href:"/dokter/jadwal",icon:"appointment.svg"},{id:"medical-checkup",titleKey:"medical_checkup",subtitleKey:"medical_checkup_subtitle",href:"/mcp",icon:"medical-checkup.svg"},{id:"executive",titleKey:"executive_services",subtitleKey:"executive_services_subtitle",href:"/eksekutif",icon:"executive-service.svg"},{id:"services",titleKey:"all_services",subtitleKey:"all_services_subtitle",href:"/layanan",icon:"services-grid.svg"},{id:"promotions",titleKey:"promo",subtitleKey:"promo_subtitle",href:"/promo",icon:"promo-tag.svg"}],palette:{"--home-primary":"#0E9F8D","--home-primary-dark":"#087F73","--home-accent":"#0A7A6C","--home-primary-soft":"#E9F8F5","--home-primary-soft-strong":"#DDF4EF","--home-primary-border":"#CCE9E4","--home-primary-tint":"#F7FFFD","--home-primary-heading":"#075D5B","--home-gradient-end":"#6CC4A1","--home-primary-wash":"rgba(14,159,141,0.035)","--home-primary-decor":"rgba(14,159,141,0.20)","--home-gradient-decor":"rgba(108,196,161,0.28)","--home-gradient-faint":"rgba(108,196,161,0.05)","--home-primary-ring":"rgba(14,159,141,0.12)","--home-icon-filter":"none","--home-surface":"#FFFFFF","--home-border":"#E5E7EB","--home-text":"#111111","--home-muted":"#6B7280"},heroFallback:{photo:"/assets/pjnhk-header-hero/images/hero-1.png"},desktopGradient:"linear-gradient(90deg, rgba(232,252,248,0.98) 0%, rgba(244,253,251,0.86) 29%, rgba(255,255,255,0.22) 49%, rgba(255,255,255,0.04) 66%, rgba(255,255,255,0.02) 100%), linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 70%, rgba(255,255,255,0.82) 100%)",mobileGradient:"linear-gradient(180deg, rgba(237,252,249,0.99) 0%, rgba(247,253,252,0.97) 45%, rgba(255,255,255,0.54) 63%, rgba(255,255,255,0.18) 100%), linear-gradient(90deg, rgba(223,250,245,0.55), rgba(255,255,255,0.15))"},executive:{audience:"executive",translationNamespace:"HomePage.executive_home",heroCopy:{ariaLabel:"aria_label",eyebrow:"eyebrow",title:"title",description:"description",fallbackAlt:"fallback_alt",searchLabel:"search_label",searchPlaceholder:"search_placeholder",searchSubmit:"search_submit",quickActionsLabel:"quick_actions_label"},routes:{profile:"/eksekutif/direktur/about",search:"/eksekutif/search",appointment:"/eksekutif/dokter/jadwal",medicalCheckup:"/eksekutif/mcp",services:"/eksekutif/layanan",serviceDetail:e=>a("/eksekutif/layanan",e),promotions:"/eksekutif/promo",promotionDetail:e=>a("/eksekutif/promo",e),articles:"/eksekutif/artikel",articleDetail:e=>a("/eksekutif/artikel",e),feedback:"/eksekutif/lapor/masyarakat",pedia:"/eksekutif/jantungpedia",pediaDetail:e=>a("/eksekutif/jantungpedia",e)},quickActions:[{id:"appointment",titleKey:"quick_actions.appointment.title",subt
1itleKey:"quick_actions.appointment.subtitle",href:"/eksekutif/dokter/jadwal",icon:"appointment.svg"},{id:"medical-checkup",titleKey:"quick_actions.medical_checkup.title",subtitleKey:"quick_actions.medical_checkup.subtitle",href:"/eksekutif/mcp",icon:"medical-checkup.svg"},{id:"services",titleKey:"quick_actions.services.title",subtitleKey:"quick_actions.services.subtitle",href:"/eksekutif/layanan",icon:"services-grid.svg"},{id:"promotions",titleKey:"quick_actions.promotions.title",subtitleKey:"quick_actions.promotions.subtitle",href:"/eksekutif/promo",icon:"promo-tag.svg"},{id:"public-website",titleKey:"quick_actions.public_website.title",subtitleKey:"quick_actions.public_website.subtitle",href:"/",icon:"/assets/icons/family_home.png"}],palette:{"--home-primary":"#B0967E","--home-primary-dark":"#A58A71","--home-accent":"#383838","--home-primary-soft":"#F8F4F1","--home-primary-soft-strong":"#EEE7E1","--home-primary-border":"#DED0C4","--home-primary-tint":"#FCFAF8","--home-primary-heading":"#6F5B4A","--home-gradient-end":"#D6C0AD","--home-primary-wash":"rgba(176,150,126,0.035)","--home-primary-decor":"rgba(176,150,126,0.20)","--home-gradient-decor":"rgba(214,192,173,0.28)","--home-gradient-faint":"rgba(214,192,173,0.05)","--home-primary-ring":"rgba(176,150,126,0.12)","--home-icon-filter":"brightness(0) saturate(100%) invert(66%) sepia(16%) saturate(637%) hue-rotate(346deg) brightness(91%) contrast(83%)","--home-surface":"#FFFFFF","--home-border":"#E5E7EB","--home-text":"#111111","--home-muted":"#6B7280"},heroFallback:{photo:"/assets/rs-kemenkes-home/images/banner-executive.jpeg"},desktopGradient:"linear-gradient(90deg, rgba(56,56,56,0.88) 0%, rgba(176,150,126,0.78) 36%, rgba(176,150,126,0.12) 68%, rgba(176,150,126,0) 100%)",mobileGradient:"linear-gradient(180deg, rgba(56,56,56,0.90) 0%, rgba(176,150,126,0.76) 48%, rgba(176,150,126,0.24) 72%, rgba(176,150,126,0) 100%)"}}},93577:function(e,t,r){r.d(t,{jI:function(){return Z},O0:function(){return C},FP:function(){return S},_k:function(){return K},d5:function(){return A}});var a=r(76351),i=r(18087),l=r(62548),s="banner/jumbotron",n="banner/slider",o="article",c="layanan/unggulan",d="ensiklopedia",m=r(30078);let u={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'},p=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),h=e=>{let t=e.toLocaleLowerCase();if(u[t])return u[t];let r=t.startsWith("#x"),a=t.startsWith("#");if(!r&&!a)return"&".concat(e,";");let i=Number.parseInt(t.slice(r?2:1),r?16:10);return Number.isInteger(i)&&i>=0&&i<=1114111?String.fromCodePoint(i):""},x=e=>{if("string"!=typeof e&&"number"!=typeof e)return"";let t=String(e).replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi," ").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi," ").replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+|#x[\da-f]+);/gi,(e,t)=>h(t)).replace(/\s+/g," ").trim();return["-","null","undefined"].includes(t.toLocaleLowerCase())?"":t},b=(e,t)=>{for(let r of t){let t=x(e[r]);if(t)return t}return""},g=e=>{let t=x(e);if(!t||t.startsWith("//"))return"";if(t.startsWith("/"))return t;try{let e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol?t:""}catch(e){return""}},f=(e,t)=>{let r=x(e);if(!r)return"";try{/^https?:\/\//i.test(r)&&(r=new URL(r).pathname),r=decodeURIComponent(r)}catch(e){return""}return r=r.split(/[?#]/,1)[0].replace(RegExp("^\\/?".concat(t,"\\/"),"i"),"").replace(/^\/+|\/+$/g,""),/^[a-z\d][a-z\d_-]*$/i.test(r)?r:""},v=e=>{let t=x(e);if(!t)return"";let r=new Date(t);return Number.isFinite(r.getTime())?r.toISOString():""},y=(e,t)=>{if(!p(e)||!p(e.data))throw Error("Invalid ".concat(t," response"));let r=e.status;if(!1===r||"string"==typeof r&&/^(error|fail|failed)$/i.test(r.trim())||!Array.isArray(e.data.results))throw Error("Invalid ".concat(t," response"));return e.data.results.filter(p)},w=e=>{let t=y(e,"featured services"),r=new Set,a=[];for(let e of t){let t=f(e.url,"layanan"),i=b(e,["judul","title"]),l=b(e,["id"])||t;if(!(!t||!i||r.has(l))&&(r.add(l),a.push({id:l,title:i,description:b(e,["keterangan"])||b(e,["konten"])||void 0,slug:t,imageUrl:g(e.photo)||void 0}),6===a.length))break}return a},j=(e,t)=>{let r=y(e,"promotions"),a=new Set,i=[];for(let e of r){let r=f(e.id,"promo"),l=b(e,["judul","title"]);if(!(!r||!l||a.has(r))&&(a.add(r),i.push({id:r,title:l,description:b(e,["deskripsi","description"])||void 0,badge:b(e,["banner_type","badge"])||void 0,imageUrl:g(e.photo)||void 0,cta:b(e,["button_title","buttonTitle"])||(t.toLocaleLowerCase().startsWith("en")?"View Details":"Lihat Detail"),publishedAt:v(e.created_at)||void 0,period:b(e,["sub_judul","subtitle"])||void 0}),3===i.length))break}return i},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.Z;return r.get(s,{lang:e,executive:t,limit:9})},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Z;return i.get(n,{limit:e,lang:t,executive:r},{signal:a}).then(e=>j(e,t))},_=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Z;return i.get(c,{page:e,limit:t,full:1,lang:r},{signal:a}).then(w)},F=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.Z;return a.get(o,{limit:t,category:e,lang:r,type:"category"})},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.Z;return t.get(d,{limit:10,lang:e})},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"public";
1return[s,e,(0,l.K)(t)]},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"public",t=(0,i.useLocale)(),r=(0,l.K)(e);return(0,a.useQuery)({queryKey:B(t,e),queryFn:()=>N(t,r)})},D=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"public";return[n,e,t,(0,l.K)(r)]},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"public",r=(0,i.useLocale)(),s=(0,l.K)(t);return(0,a.useQuery)({queryKey:D(e,r,t),queryFn:t=>{let{signal:a}=t;return k(e,r,s,a)}})},Z=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],l=(0,i.useLocale)();return(0,a.useQuery)({queryKey:[o,t,e,l],queryFn:()=>F(e,t,l),enabled:r})},S=(e,t)=>{let r=(0,i.useLocale)();return(0,a.useQuery)({queryKey:[c,e,t,r],queryFn:a=>{let{signal:i}=a;return _(e,t,r,i)}})},K=()=>{let e=(0,i.useLocale)();return(0,a.useQuery)({queryKey:[d,e],queryFn:()=>E(e)})}},58902:function(e,t,r){r.d(t,{g:function(){return n}});var a=r(76351),i="media/testimoni",l=r(30078);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.Z;return a.get("".concat(i).concat(e?"/search":""),{keywords:e,page:t,limit:r})},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;return(0,a.useQuery)({queryKey:[i,e,t,r],queryFn:()=>s(e,t,r)})}}}]);

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.