1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2353],{71883:function(e,t,n){"use strict";var a=n(52683);n(45272);var l=n(61205);t.default=e=>{let{children:t}=e;return(0,a.jsx)(l.SessionProvider,{children:t})}},59344:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var a=n(52683),l=n(45272),i=n(49647);let o="p9_consent",s="2026-08-22";function r(){if("undefined"==typeof document)return null;let e=document.cookie.match(new RegExp("(?:^|; )".concat(o,"=([^;]*)")));if(!e)return null;try{let t=JSON.parse(decodeURIComponent(e[1]));if(t.version!==s||"boolean"!=typeof t.analytics||"boolean"!=typeof t.marketing)return null;return t}catch(e){return null}}let c=function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)};function d(e,t,n,a){e.analytics||e.marketing?(window.dataLayer&&window.dataLayer.push===Array.prototype.push||(window.dataLayer=[]),function(e){let t={ad_storage:e.marketing?"granted":"denied",ad_user_data:e.marketing?"granted":"denied",ad_personalization:e.marketing?"granted":"denied",analytics_storage:e.analytics?"granted":"denied"};window.__p9ConsentDefaults?c("consent","update",t):(window.__p9ConsentDefaults=!0,c("consent","default",t))}(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"p9_consent_update",p9_analytics:e.analytics,p9_marketing:e.marketing,p9_consent_version:e.version}),function(e){if(!e||document.getElementById("p9-gtm-sdk"))return;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});let t=document.createElement("script");t.id="p9-gtm-sdk",t.async=!0,t.src="https://www.googletagmanager.com/gtm.js?id=".concat(e),document.head.appendChild(t)}(t)):!function(){let e=window.dataLayer=window.dataLayer||[];e.length=0,e.push=()=>0}(),e.analytics?function(e){if(!e||document.getElementById("p9-ga-sdk"))return;let t=document.createElement("script");t.id="p9-ga-sdk",t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),document.head.appendChild(t),c("js",new Date),c("config",e,{anonymize_ip:!0})}(n):function(){if("undefined"==typeof document)return;let e=document.cookie.split("; ").map(e=>e.split("=")[0]).filter(e=>"_ga"===e||e.startsWith("_ga_")||"_gid"===e||"_gcl_au"===e||e.startsWith("_gac_")),t=location.hostname.replace(/^www\./,"");for(let n of e)document.cookie="".concat(n,"=; Max-Age=0; Path=/; Domain=.").concat(t),document.cookie="".concat(n,"=; Max-Age=0; Path=/")}(),e.marketing&&function(e){if(!e||document.getElementById("connectxWebTracking"))return;let t=document.createElement("script");t.id="connectxWebTracking",t.type="text/javascript",t.defer=!0,t.src="https://app.connect-x.tech/connectx/api/webTrackingSdk.min.js"+"?orgId=".concat(encodeURIComponent(e)),document.head.appendChild(t)}(a)}var u=e=>{let{gtmId:t,gaId:n,cxOrgId:c}=e,u=(0,i.useTranslations)("cookieConsent"),p=(0,i.useLocale)(),[h,m]=(0,l.useState)(!1),[x,g]=(0,l.useState)(!1),[f,v]=(0,l.useState)(!1),[b,w]=(0,l.useState)(!1),C=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=r();e?d(e,t,n,c):m(!0);let a=()=>{var e,t;let n=r();v(null!==(e=null==n?void 0:n.analytics)&&void 0!==e&&e),w(null!==(t=null==n?void 0:n.marketing)&&void 0!==t&&t),g(!0),m(!0)};return window.addEventListener("open-cookie-settings",a),()=>window.removeEventListener("open-cookie-settings",a)},[t,n,c]);let j=(0,l.useCallback)((e,a)=>{let l=r(),i=function(e){let t={necessary:!0,...e,version:s,timestamp:new Date().toISOString()},n="https:"===location.protocol?"; Secure":"";return document.cookie="".concat(o,"=").concat(encodeURIComponent(JSON.stringify(t)))+"; Max-Age=".concat(31536e3,"; Path=/; SameSite=Lax").concat(n),t}({analytics:e,marketing:a});d(i,t,n,c);let u=fetch("/api/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,locale:p,path:location.pathname}),keepalive:!0}).catch(()=>{});m(!1),g(!1),l&&(l.analytics&&!e||l.marketing&&!a)&&Promise.race([u,new Promise(e=>setTimeout(e,1500))]).then(()=>location.reload())},[p,t,n,c]),y=(0,l.useCallback)(()=>{g(!1),r()&&m(!1)},[]);(0,l.useEffect)(()=>{var e;if(!x)return;let t=document.body.style.overflow;document.body.style.overflow="hidden",null===(e=C.current)||void 0===e||e.focus();let n=e=>{"Escape"===e.key&&y()};return document.addEventListener("keydown",n),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",n)}},[x,y]);
1let k="rounded px-6 py-2.5 text-sm font-medium min-w-[120px] text-center transition-colors",V="/".concat(p,"/cookie-policy"),N=(0,a.jsx)("a",{href:V,className:"text-medium-green underline",children:u("policyLink")}),H=(e,t,n)=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 font-semibold text-dark-green",children:[(0,a.jsx)("input",{type:"checkbox",checked:t,disabled:!n,onChange:e=>null==n?void 0:n(e.target.checked),className:"mt-1 shrink-0"}),(0,a.jsx)("span",{children:u(e)})]}),(0,a.jsxs)("p",{className:"mt-1 pl-7 leading-relaxed text-dark-gray",children:[u("".concat(e,"Desc"))," ",N]})]},e);return h?x?(0,a.jsx)("div",{className:"fixed inset-0 z-[1000000] flex items-center justify-center bg-black/50 p-4",onClick:y,children:(0,a.jsxs)("div",{ref:C,role:"dialog","aria-modal":"true","aria-labelledby":"p9-consent-prefs-title",tabIndex:-1,onClick:e=>e.stopPropagation(),className:"max-h-[85vh] w-full max-w-[560px] overflow-y-auto rounded-lg bg-white p-6 shadow-2xl outline-none font-Sarabun",children:[(0,a.jsx)("h2",{id:"p9-consent-prefs-title",className:"mb-4 text-lg font-semibold text-dark-green",children:u("prefsTitle")}),(0,a.jsxs)("div",{className:"mb-6 space-y-4 text-sm",children:[H("necessary",!0),H("analytics",f,v),H("marketing",b,w)]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:y,className:"px-2 py-2.5 text-sm text-dark-gray underline",children:u("back")}),(0,a.jsx)("button",{type:"button",onClick:()=>j(f,b),className:"".concat(k," bg-dark-green text-white hover:opacity-90"),children:u("savePrefs")})]})]})}):(0,a.jsx)("div",{role:"dialog","aria-label":u("title"),className:"fixed inset-x-0 bottom-0 z-[1000000] border-t border-light-gray bg-white shadow-[0_-2px_12px_rgba(0,0,0,0.10)]",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[900px] px-6 py-6 font-Sarabun",children:[(0,a.jsxs)("div",{className:"space-y-2 text-sm leading-relaxed text-dark-gray",children:[(0,a.jsx)("p",{children:u("description")}),(0,a.jsx)("p",{children:u.rich("moreInfo",{link:e=>(0,a.jsx)("a",{href:V,className:"text-medium-green underline",children:e})})})]}),(0,a.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-end gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:()=>g(!0),className:"px-2 py-2.5 text-sm text-dark-gray underline",children:u("customize")}),(0,a.jsx)("button",{type:"button",onClick:()=>j(!0,!0),className:"".concat(k," bg-dark-green text-white hover:opacity-90"),children:u("acceptAll")}),(0,a.jsx)("button",{type:"button",onClick:()=>j(!1,!1),className:"".concat(k," border border-dark-green text-dark-green hover:bg-light-gray-bg"),children:u("rejectAll")})]})]})}):null}},22094:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var a=n(52683),l=n(45272),i=n(91923),o=n.n(i),s=n(49647),r=n(2875),c=n(61205),d=n(49676),u=n(29945),p=n(61550),h=n(5846),m=()=>{let e=(0,u.useRouter)(),t=(0,u.usePathname)(),n=n=>{let a=(0,h.P0)(t,n,{alternates:(0,h.N_)()});e.push(a)},l=e=>{n(e.value)},i=[{value:"th",label:"TH - à¹à¸à¸¢"},{value:"en",label:"EN - English"},{value:"ar",label:"AR - Ø§ÙØ¹Ø±Ø¨ÙØ©"},{value:"bn",label:"BN - বাà¦à¦²à¦¾"},{value:"ja",label:"JA - æ¥æ¬èª"},{value:"km",label:"KM - ááááá"},{value:"zh",label:"ZH - 䏿 (ç®ä½)"},{value:"my",label:"MY - áá¼ááºáá¬"}],o=(e,t)=>{let{context:n}=t;return"value"===n?e.label.substring(0,2):e.label};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden lg:block font-Sarabun",children:(0,a.jsx)(p.ZP,{options:i,isSearchable:!1,menuPosition:"fixed",menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:2147483647}),control:e=>({...e,borderColor:"#004E59",borderRadius:"16px",fontSize:"16px",color:"#004E59",minHeight:"30px",fontFamily:"Sarabun"}),option:e=>({...e,color:"#004E59",fontSize:"16px",fontFamily:"Sarabun"}),singleValue:e=>({...e,color:"#004E59"}),dropdownIndicator:e=>({...e,color:"#004E59",paddingRight:"4px",paddingLeft:"4px",paddingBottom:"0px",paddingTop:"0px"}),valueContainer:e=>({...e,color:"#004E59",paddingTop:"0px",paddingLeft:"6px",paddingRight:"6px",direction:"ltr"}),menuList:e=>({...e,maxHeight:"none",overflowY:"visible"}),menu:e=>({...e,width:"max-content",minWidth:"100%",overflow:"visible",position:"absolute",right:0,left:"auto"})},onChange:l,components:{IndicatorSeparator:()=>null},formatOptionLabel:o,value:i.find(e=>e.value===t.substring(1,3))})}),(0,a.jsx)("div",{className:"lg:hidden font-Sarabun",children:(0,a.jsx)(p.ZP,{options:i,isSearchable:!1,menuPosition:"fixed",menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:2147483647}),control:e=>({...e,borderColor:"#004E59",borderRadius:"16px",fontSize:"16px",color:"#004E59",minHeight:"30px"}),option:e=>({...e,color:"#004E59",fontSize:"16px",fontFamily:"Sarabun"}),singleValue:e=>({...e,color:"#004E59"}),dropdownIndicator:e=>({...e,color:"#004E59",paddingRight:"4px",paddingLeft:"4px",paddingBottom:"0px",paddingTop:"0px"}),valueContainer:e=>({...e,color:"#004E59",paddingTop:"0px",paddingLeft:"6px",paddingRight:"0px",direction:"ltr"}),menuList:e=>({...e,maxHeight:"none",overflowY:"visible"}),menu:e=>({...e,width:"max-content",minWidth:"100%",overflow:"visible",position:"absolute",right:0,left:"auto"})},onChange:l,formatOptionLabel:o,components:{IndicatorSeparator:()=>null},value:i.find(e=>e.value===t.substring(1,3))})})]})},x=n(76278);let g="w-[22px] h-[22px] flex-shrink-0",f=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M13.3327 26.6667V18.6667H18.666V26.6667H25.3327V16H29.3327L15.9993 4L2.66602 16H6.66602V26.6667H13.3327Z",fill:"currentColor"})}),v=()=>(0,a.jsxs)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M16 2.66602L8.66667 14.666H23.3333L16 2.66602Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M23.3333 29.3327C26.647 29.3327 29.3333 26.6464 29.3333 23.3327C29.3333 20.019 26.647 17.3327 23.3333 17.3327C20.0196 17.3327 17.3333 20.019 17.3333 23.3327C17.3333 26.6464 20.0196 29.3327 23.3333 29.3327Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M4 17.9993H14.6667V28.666H4V17.9993Z",fill:"currentColor"})]}),b=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9984 2C15.3855 2 14.7787 2.12071 14.2125 2.35523C13.6463 2.58975 13.1319 2.93349 12.6985 3.36683C12.2652 3.80018 11.9215 4.31462 11.6869 4.88081C11.4524 5.447 11.3317 6.05383 11.3317 6.66667C11.3317 7.2795 11.4524 7.88634 11.6869 8.45252C11.9215 9.01871 12.2652 9.53316 12.6985 9.9665C13.1319 10.3998 13.6463 10.7436 14.2125 10.9781C14.7787 11.2126 15.3855 11.3333 15.9984 11.3333C17.236 11.3333 18.423 10.8417 19.2982 9.9665C20.1734 9.09133 20.665 7.90434 20.665 6.66667C20.665 5.42899 20.1734 4.242 19.2982 3.36683C18.423 2.49167 17.236 2 15.9984 2ZM24.909 14.4333C24.3952 13.9195 23.78 13.5183 23.1026 13.2553C22.4253 12.9922 21.7005 12.8731 20.9746 12.9055C20.2487 12.9378 19.5374 13.121 18.8861 13.4432C18.2348 13.7655 17.6578
114.2198 17.1917 14.7773L15.9984 15.9707L14.7237 14.696C14.2622 14.1668 13.6988 13.7359 13.0672 13.429C12.4356 13.1221 11.7486 12.9456 11.0473 12.9099C10.346 12.8742 9.64472 12.9801 8.98521 13.2212C8.3257 13.4624 7.72149 13.8338 7.20862 14.3135C6.69575 14.7931 6.2847 15.3712 5.99999 16.0131C5.71529 16.655 5.56274 17.3476 5.55146 18.0498C5.54017 18.7519 5.67038 19.4491 5.93431 20.0998C6.19825 20.7505 6.5905 21.3415 7.0877 21.8373L7.10103 21.8507L8.61037 23.3587L15.297 30.0467L15.9944 30.7533L23.3864 23.3587L24.8944 21.852L24.897 21.8493L24.9077 21.8387L24.909 21.836C25.8906 20.8543 26.4421 19.5229 26.4421 18.1347C26.4421 16.7464 25.8906 15.415 24.909 14.4333Z",fill:"currentColor"})}),w=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M14.0007 17.3327H10.6673V13.3327H14.0007V9.99935H18.0007V13.3327H21.334V17.3327H18.0007V20.666H14.0007V17.3327ZM16.0007 2.66602L5.33398 6.66602V14.786C5.33398 21.5193 9.88065 27.7993 16.0007 29.3327C22.1207 27.7993 26.6673 21.5193 26.6673 14.786V6.66602L16.0007 2.66602Z",fill:"currentColor"})}),C=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M22.6667 14.6667V4H9.33333V9.33333H4V28H14.6667V22.6667H17.3333V28H28V14.6667H22.6667ZM9.33333 25.3333H6.66667V22.6667H9.33333V25.3333ZM9.33333 20H6.66667V17.3333H9.33333V20ZM9.33333 14.6667H6.66667V12H9.33333V14.6667ZM14.6667 20H12V17.3333H14.6667V20ZM14.6667 14.6667H12V12H14.6667V14.6667ZM14.6667 9.33333H12V6.66667H14.6667V9.33333ZM20 20H17.3333V17.3333H20V20ZM20 14.6667H17.3333V12H20V14.6667ZM20 9.33333H17.3333V6.66667H20V9.33333ZM25.3333 25.3333H22.6667V22.6667H25.3333V25.3333ZM25.3333 20H22.6667V17.3333H25.3333V20Z",fill:"currentColor"})}),j=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M26.666 5.33398H5.33268C3.86602 5.33398 2.67935 6.53398 2.67935 8.00065L2.66602 24.0007C2.66602 25.4673 3.86602 26.6673 5.33268 26.6673H26.666C28.1327 26.6673 29.3327 25.4673 29.3327 24.0007V8.00065C29.3327 6.53398 28.1327 5.33398 26.666 5.33398ZM26.666 10.6673L15.9993 17.334L5.33268 10.6673V8.00065L15.9993 14.6673L26.666 8.00065V10.6673Z",fill:"currentColor"})}),y=()=>(0,a.jsx)("svg",{className:g,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M16.0007 16.0007C18.9473 16.0007 21.334 13.614 21.334 10.6673C21.334 7.72065 18.9473 5.33398 16.0007 5.33398C13.054 5.33398 10.6673 7.72065 10.6673 10.6673C10.6673 13.614 13.054 16.0007 16.0007 16.0007ZM16.0007 18.6673C12.4407 18.6673 5.33398 20.454 5.33398 24.0007V26.6673H26.6673V24.0007C26.6673 20.454 19.5607 18.6673 16.0007 18.6673Z",fill:"currentColor"})});function k(){return(0,a.jsx)("div",{className:"border-t border-[#BDBDBD] my-3"})}function V(e){let{item:t,onNavigate:n,nested:l}=e;if(t.hidden)return null;let i=l?"text-dark-gray":"text-dark-gray transition-colors group-hover/item:text-light-green-title";return(0,a.jsx)("li",{className:l?"py-2 transition-colors hover:bg-light-green ".concat("-ms-12 -me-6 ps-12 pe-6"):"group/item py-2",children:(0,a.jsxs)(r.rU,{href:t.href,locale:t.locale,target:t.target,onClick:()=>{(0,x.sendGTMEvent)({event:"sideMenuClicked",value:t.eventValue}),n()},className:"flex items-center gap-x-3",children:[t.icon&&(0,a.jsx)("span",{className:i,children:t.icon}),(0,a.jsx)("p",{className:"font-Sarabun text-base font-semibold ".concat(i),children:t.label})]})})}function N(e){let{section:t,isOpen:n,onToggle:l,onNavigate:i}=e;return t.hidden?null:(0,a.jsxs)("li",{className:"group/section py-1",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>l(t.key),className:"w-full flex items-center justify-between py-2 text-left","aria-expanded":n,"aria-controls":"section-".concat(t.key),children:[(0,a.jsxs)("span",{className:"flex items-center gap-x-3",children:[t.icon&&(0,a.jsx)("span",{className:"text-dark-gray transition-colors group-hover/section:text-light-green-title",children:t.icon}),(0,a.jsx)("span",{className:"font-Sarabun text-base text-dark-gray group-hover/section:text-light-green-title font-semibold transition-colors",children:t.label})]}),(0,a.jsx)("svg",{className:"w-4 h-4 text-[#4B5563] transition-[transform,color] duration-300 group-hover/section:text-light-green-title ".concat(n?"rotate-180":""),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,a.jsxs)("div",{id:"section-".concat(t.key),className:"group/sub relative overflow-hidden transition-all duration-300 ease-in-out ".concat(n?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:[(0,a.jsx)("span",{"aria-hidden":!0,
1className:"pointer-events-none absolute top-0 bottom-2 start-0 z-10 w-[2px] rounded-full bg-light-green opacity-0 transition-opacity group-hover/sub:opacity-100"}),(0,a.jsx)("ul",{className:"ps-6 pb-2",children:t.children.map(e=>(0,a.jsx)(V,{item:e,onNavigate:i,nested:!0},"".concat(t.key,"-").concat(e.label,"-").concat(e.href)))})]})]})}var H=e=>{var t;let{handleClose:n}=e,i=(0,s.useTranslations)("NavMenu"),{status:u,data:p}=(0,c.useSession)(),h=(0,s.useLocale)(),g="services-group",[H,L]=l.useState(g),_="th"===h?"/appointment":"/appointment?isGuest=true",E="th"===h,M="th"===h||"en"===h,Z=l.useCallback(()=>{n()},[n]),S=l.useCallback(e=>{(0,x.sendGTMEvent)({event:"sideMenuClicked",value:e})},[]),B=l.useCallback(e=>{L(t=>t===e?null:e)},[]),R=[{key:"home",items:[{label:i("home"),href:"/",eventValue:"home",icon:(0,a.jsx)(f,{})}]},{key:"services",sections:[{key:"services-group",label:i("menuGroup.services"),icon:(0,a.jsx)(v,{}),children:[{label:i("doctor"),href:"/doctors",eventValue:"doctor"},{label:i("appointment"),href:_,eventValue:"appointment"},{label:i("package"),href:"/shop",eventValue:"package"},{label:i("department"),href:"/medical-center",eventValue:"medical-center"},{label:i("room"),href:"/rooms",eventValue:"room"},{label:i("medicalRecordRequest"),href:"/info/medical-record-request-th",eventValue:"medical-record-request",target:"_blank",hidden:!E}]}]},{key:"health-info",sections:[{key:"health-info-group",label:i("menuGroup.healthInfo"),icon:(0,a.jsx)(b,{}),children:[{label:i("healthBlog"),href:"/articles",eventValue:"article"},{label:i("testimonial.title"),href:i("testimonial.link"),eventValue:"testimonial",target:"_blank"}]}]},{key:"insurance",sections:[{key:"insurance-group",label:i("menuGroup.insurance"),hidden:E,icon:(0,a.jsx)(w,{}),children:[{label:i("insuranceWeAccept.title"),href:"/info/insurance-we-accept",locale:"en",eventValue:"insurance-we-accept",target:"_blank"},{label:i("insuranceInformationGuides.title"),href:"/info/insurance-information-guides",locale:"en",eventValue:"insurance-information-guides",target:"_blank"}]}]},{key:"about-hospital",sections:[{key:"about-hospital-group",label:i("menuGroup.aboutHospital"),icon:(0,a.jsx)(C,{}),children:[{label:i("aboutUs"),href:"/about",eventValue:"about"},{label:i("news"),href:"/news",eventValue:"news"},{label:i("investorRelation.title"),href:i("investorRelation.link"),eventValue:"investorRelation",target:"_blank",hidden:!M},{label:i("sustainability.title"),href:i("sustainability.link"),eventValue:"sustainability",target:"_blank",hidden:!M}]}]},{key:"bottom-links",items:[{label:i("contactUs"),href:"/contact",eventValue:"contact",icon:(0,a.jsx)(j,{})},{label:i("profile"),href:"/profile",eventValue:"profile",hidden:!E,icon:(0,a.jsx)(y,{})}]}];return l.useEffect(()=>{L(g)},[]),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("div",{className:"w-1/3 md:w-1/2",children:(0,a.jsx)("a",{href:h?"/".concat(h):"/en",children:(0,a.jsx)("img",{src:"/images/logo.png",className:"w-28 lg:w-44 my-2 mx-2",alt:"Praram 9 Hospital"})})}),(0,a.jsxs)("div",{className:"w-2/3 md:w-1/2 flex justify-end items-center",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-end px-1",children:[(0,a.jsxs)("div",{className:E?"px-1":"hidden",children:["authenticated"===u&&(0,a.jsx)("div",{className:"flex bg-light-gray-bg rounded-3xl",children:(0,a.jsx)(d.default,{href:"/profile",onClick:()=>{S("profile"),n()},children:(0,a.jsxs)("div",{className:"flex gap-x-2 py-1.5 md:py-2 px-3 items-center",children:[(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-1",children:(0,a.jsx)("path",{d:"M6.9987 7.83325C4.7737 7.83325 0.332031 8.94992 0.332031 11.1666V13.6666H13.6654V11.1666C13.6654 8.94992 9.2237 7.83325 6.9987 7.83325ZM12.082 12.0833H1.91536V11.1666C1.91536 10.6333 4.5237 9.41658 6.9987 9.41658C9.4737 9.41658 12.082 10.6333 12.082 11.1666V12.0833ZM6.9987 6.99992C8.84036 6.99992 10.332 5.50825 10.332 3.66659C10.332 1.82492 8.84036 0.333252 6.9987 0.333252C5.15703 0.333252 3.66536 1.82492 3.66536 3.66659C3.66536 5.50825 5.15703 6.99992 6.9987 6.99992ZM6.9987 1.91659C7.96536 1.91659 8.7487 2.69992 8.7487 3.66659C8.7487 4.63325 7.96536 5.41659 6.9987 5.41659C6.03203 5.41659 5.2487 4.63325 5.2487 3.66659C5.2487 2.69992 6.03203 1.91659 6.9987 1.91659Z",fill:"black",fillOpacity:"0.54"})}),(0,a.jsx)("p",{className:"font-Sarabun text-xs lg:text-base text-dark-gray truncate w-16 text-left text-lightBlack capitalize",children:null===(t=p.user)||void 0===t?void 0:t.name})]})})}),"unauthenticated"===u&&(0,a.jsx)("div",{onClick:()=>n(),children:(0,a.jsx)(d.default,{href:"/api/auth/signin",onClick:()=>S("signin"),children:(0,a.jsx)("div",{className:"bg-dark-yellow rounded-3xl",children:(0,a.jsx)("p",{className:"font-Sarabun text-base text-white px-3 py-1",children:i("register")})})})})]}),(0,a.jsx)("div",{className:"px-1",children:(0,a.jsx)(m,{})})]}),(0,a.jsx)("div",{className:"px-1 flex items-center",children:(0,a.jsx)("button",{type:"button",onClick:n,children:(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M28.2077 9.84788L26.1514 7.79163L17.9993 15.9437L9.84727 7.79163L7.79102 9.84788L15.9431 18L7.79102 26.152L9.84727 28.2083L17.9993 20.0562L26.1514 28.2083L28.2077 26.152L20.0556 18L28.2077 9.84788Z",fill:"#004E59"})})})})})]})]}),(0,a.jsx)("div",{className:"bg-dark-green py-1 lg:rounded-full lg:mx-6 lg:mt-4",children:(0,a.jsxs)("div",{className:"w-full grid grid-cols-2 gap-y-4 py-2 lg:flex px-4 lg:px-6 lg:justify-between",children:[(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsxs)(r.rU,{href:"/doctors",className:o()["hamburger-top-menu"]+" flex items-center",onClick:()=>{S("doctor"),Z()},children:[(0,a.jsxs)("svg",{width:"22",height:"24",viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M3.33268 17.7767C3.62602 16.8167 7.74602 15.11 11.3327 15.11C11.3327 14.1767 11.506 13.2833 11.7993 12.4567C8.15935 12.3233 0.666016 14.1367 0.666016 17.7767V20.4433H13.386C12.6927 19.67 12.146 18.7767 11.7993 17.7767H3.33268Z",fill:"#E5E5E5"}),(0,a.jsx)("path",{d:"M11.3333 11.11C14.28 11.11 16.6667 8.72336 16.6667 5.77669C16.6667 2.83003 14.28 0.443359 11.3333 0.443359C8.38667 0.443359 6 2.83003 6 5.77669C6 8.72336 8.38667 11.11 11.3333 11.11ZM11.3333 3.11003C12.8 3.11003 14 4.29669 14 5.77669C14 7.24336 12.8 8.44336 11.3333 8.44336C9.86667 8.44336 8.66667 7.24336 8.66667 5.77669C8.66667 4.29669 9.86667 3.11003 11.3333 3.11003Z",fill:"#E5E5E5"}),(0,a.jsx)("g",{opacity:"0.3",children:(0,a.jsx)("path",{opacity:"0.3",d:"M11.7987 17.7767C11.7987 17.7767 11.332 16.7233 11.332 15.11C7.74536 15.11 3.6387 16.8167 3.33203 17.7767H11.7987Z",fill:"#E5E5E5"})}),(0,a.jsx)("path",{d:"M23.9067 17.8034C24.3867 17.0167 24.6667 16.0967 24.6667 15.11C24.6667 12.1634 22.28 9.7767 19.3333 9.7767C16.3867 9.7767 14 12.1634 14 15.11C14 18.0567 16.3867 20.4434 19.3333 20.4434C20.32 20.4434 21.24 20.15 22.0267 19.6834C23.2667 20.9234 24.1867 21.8434 25.4533 23.11L27.3333 21.23C25.3333 19.23 26.28 20.1634 23.9067 17.8034ZM19.3333 17.7767C17.8667 17.7767 16.6667 16.5767 16.6667 15.11C16.6667 13.6434 17.8667 12.4434 19.3333 12.4434C20.8 12.4434 22 13.6434 22 15.11C22 16.5767 20.8 17.7767 19.3333 17.7767Z",fill:"#E5E5E5"}),(0,a.jsx)("g",{opacity:"0.3",children:(0,a.jsx)("path",{opacity:"0.3",d:"M11.3327 8.44335C12.8054 8.44335 13.9993 7.24944 13.9993 5.77668C13.9993 4.30392
112.8054 3.11002 11.3327 3.11002C9.85992 3.11002 8.66602 4.30392 8.66602 5.77668C8.66602 7.24944 9.85992 8.44335 11.3327 8.44335Z",fill:"#E5E5E5"})})]}),(0,a.jsx)("span",{className:"pl-2 font-Sarabun text-base font-semibold",children:i("doctor")})]})}),(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsxs)(r.rU,{href:_,className:o()["hamburger-top-menu"]+" flex items-center",onClick:()=>{S("appointment"),Z()},children:[(0,a.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 25 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M21.6673 3.00004H20.334V0.333374H17.6673V3.00004H7.00065V0.333374H4.33398V3.00004H3.00065C1.52065 3.00004 0.347318 4.20004 0.347318 5.66671L0.333984 24.3334C0.333984 25.8 1.52065 27 3.00065 27H21.6673C23.134 27 24.334 25.8 24.334 24.3334V5.66671C24.334 4.20004 23.134 3.00004 21.6673 3.00004ZM21.6673 24.3334H3.00065V11H21.6673V24.3334ZM21.6673 8.33337H3.00065V5.66671H21.6673V8.33337ZM19.0007 15H12.334V21.6667H19.0007V15Z",fill:"#E5E5E5"})}),(0,a.jsx)("span",{className:"pl-2 font-Sarabun text-base font-semibold",children:i("appointment")})]})}),(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsxs)(r.rU,{href:"/medical-center",className:o()["hamburger-top-menu"]+" flex justify-center items-center",onClick:()=>{S("medical-center"),Z()},children:[(0,a.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M24 4H8V6.66667H24V4Z",fill:"#E5E5E5"}),(0,a.jsx)("path",{d:"M22.6667 8H9.33333C7.86666 8 6.66666 9.2 6.66666 10.6667V25.3333C6.66666 26.8 7.86666 28 9.33333 28H22.6667C24.1333 28 25.3333 26.8 25.3333 25.3333V10.6667C25.3333 9.2 24.1333 8 22.6667 8ZM21.3333 20H18V23.3333H14V20H10.6667V16H14V12.6667H18V16H21.3333V20Z",fill:"#E5E5E5"})]}),(0,a.jsx)("span",{className:"pl-2 font-Sarabun text-base font-semibold",children:i("department")})]})}),(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsxs)(r.rU,{href:"/shop",className:o()["hamburger-top-menu"]+" flex items-center",onClick:()=>{S("package"),Z()},children:[(0,a.jsx)("svg",{width:"22",height:"24",viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M18.9997 5.77669H16.333C16.333 2.83003 13.9463 0.443359 10.9997 0.443359C8.05301 0.443359 5.66634 2.83003 5.66634 5.77669H2.99967C1.53301 5.77669 0.333008 6.97669 0.333008 8.44336V24.4434C0.333008 25.91 1.53301 27.11 2.99967 27.11H18.9997C20.4663 27.11 21.6663 25.91 21.6663 24.4434V8.44336C21.6663 6.97669 20.4663 5.77669 18.9997 5.77669ZM8.33301 11.11C8.33301 11.8434 7.73301 12.4434 6.99967 12.4434C6.26634 12.4434 5.66634 11.8434 5.66634 11.11V8.44336H8.33301V11.11ZM10.9997 3.11003C12.4663 3.11003 13.6663 4.31003 13.6663 5.77669H8.33301C8.33301 4.31003 9.53301 3.11003 10.9997 3.11003ZM16.333 11.11C16.333 11.8434 15.733 12.4434 14.9997 12.4434C14.2663 12.4434 13.6663 11.8434 13.6663 11.11V8.44336H16.333V11.11Z",fill:"#E5E5E5"})}),(0,a.jsx)("span",{className:"pl-2 font-Sarabun text-base font-semibold",children:i("package")})]})})]})}),(0,a.jsx)("div",{className:"px-6 py-4",children:R.filter(e=>e.items?e.items.some(e=>!e.hidden):!!e.sections&&e.sections.some(e=>!e.hidden)).map((e,t)=>(0,a.jsxs)("div",{children:[0!==t&&(0,a.jsx)(k,{}),e.items&&(0,a.jsx)("ul",{children:e.items.map(e=>(0,a.jsx)(V,{item:e,onNavigate:Z},"".concat(e.label,"-").concat(e.href)))}),e.sections&&(0,a.jsx)("ul",{children:e.sections.map(e=>(0,a.jsx)(N,{section:e,isOpen:H===e.key,onToggle:B,onNavigate:Z},e.key))})]},e.key))})]})}},20950:function(e,t,n){"use strict";var a=n(52683);n(45272);var l=n(29945),i=n(61550),o=n(5846);t.Z=()=>{let e=(0,l.useRouter)(),t=(0,l.usePathname)(),n=n=>{let a=(0,o.P0)(t,n,{alternates:(0,o.N_)()});e.push(a)},s=[{value:"th",label:"TH - à¹à¸à¸¢"},{value:"en",label:"EN - English"},{value:"ar",label:"AR - Ø§ÙØ¹Ø±Ø¨ÙØ©"},{value:"bn",label:"BN - বাà¦à¦²à¦¾"},{value:"ja",label:"JA - æ¥æ¬èª"},{value:"km",label:"KM - ááááá"},{value:"zh",label:"ZH - 䏿 (ç®ä½)"},{value:"my",label:"MY - áá¼ááºáá¬"}];return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"font-Sarabun",children:(0,a.jsx)(i.ZP,{options:s,isSearchable:!1,styles:{control:e=>({...e,borderColor:"#45C2B1",borderRadius:"16px",fontSize:"16px",color:"#45C2B1",minHeight:"40px",minWidth:"68px",fontFamily:"Sarabun"}),option:e=>({...e,color:"#45C2B1",fontSize:"15px"}),singleValue:e=>({...e,color:"#45C2B1"}),dropdownIndicator:e=>({...e,color:"#45C2B1",paddingRight:"4px",paddingLeft:"4px",paddingBottom:"0px",paddingTop:"0px"}),valueContainer:e=>({...e,color:"#45C2B1",paddingTop:"0px",paddingLeft:"6px",paddingRight:"6px",direction:"ltr"}),menuList:e=>({...e,maxHeight:"none",overflowY:"visible"}),menu:e=>({...e,width:"max-content",minWidth:"100%",overflow:"visible"})},onChange:e=>{console.log(e.value),n(e.value)},formatOptionLabel:(e,t)=>
1{let{context:n}=t;return"value"===n?e.label.substring(0,2):e.label},components:{IndicatorSeparator:()=>null},value:s.find(e=>e.value===t.substring(1,3))})})})}},2875:function(e,t,n){"use strict";n.d(t,{jD:function(){return r},rU:function(){return o},tv:function(){return c}});var a=n(25689),l=n(56480);let i=(0,a.R)({locales:["th","en","zh","km","ar","ja","bn","my"],defaultLocale:"th",localeDetection:!1}),{Link:o,redirect:s,usePathname:r,useRouter:c}=(0,l.os)(i)},5846:function(e,t,n){"use strict";n.d(t,{N_:function(){return c},P0:function(){return d}});let a=["doctors","about","rooms"],l=["articles","news","medical-center","shop"],i=["th","en","ar","bn","ja","km","zh","my"],o=["terms-and-conditions"],s=["privacy-policy"],r=["info"];function c(){if("undefined"==typeof document)return{};let e={};return document.querySelectorAll('link[rel="alternate"][hreflang]').forEach(t=>{let n=t.getAttribute("hreflang");n&&t.href&&(e[n]=t.href)}),e}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i.includes(t))throw Error("Unsupported language: ".concat(t));let[c,d=""]=e.split("#"),[h,m=""]=c.split("?");if(!h||"/"===h)return p("/".concat(t),m,d);let x=h.split("/").filter(Boolean);if(1===x.length)return p("/".concat(t),m,d);let g=x[1];if(2===x.length){if("appointment"!==g||"th"==t)return p("/".concat(t,"/").concat(g),m,d);{let e=m?m+"&isGuest=true":"isGuest=true";return p("/".concat(t,"/").concat(g),e,d)}}if("about"===g&&3===x.length&&o.includes(x[2]))return p("/".concat(t,"/about/").concat(x[2]),m,d);if("about"===g&&4===x.length&&s.includes(x[2])){let e=u(x[3],t);return p("/".concat(t,"/about/").concat(x[2],"/").concat(e),m,d)}if(r.includes(g)&&3===x.length){var f;let e=null===(f=n.alternates)||void 0===f?void 0:f[t];return e?p(function(e){let t=e.indexOf("://"),[n]=(-1===t?e:e.slice(t+3).replace(/^[^/]*/,"")).split(/[?#]/);return n?n.startsWith("/")?n:"/".concat(n):"/"}(e),m,d):p("/".concat(t),m,d)}let v=x[2];if(a.includes(g)&&3===x.length){let e=u(v,t);return p("/".concat(t,"/").concat(g,"/").concat(e),m,d)}return l.includes(g)?p("/".concat(t,"/").concat(g),m,d):p("/".concat(t,"/").concat(x.slice(1).join("/")),m,d)}function u(e,t){let n=e.replace(/-(th|en|ja|zh|ar|bn|km|my)$/i,"");return"en"===t?n:"".concat(n,"-").concat(t)}function p(e,t,n){return e+(t?"?".concat(t):"")+(n?"#".concat(n):"")}},35819:function(){},91923:function(e){e.exports={"nav-container":"navbar_nav-container__F_NJX",logo:"navbar_logo__pLKSs","select-lang-switch":"navbar_select-lang-switch__o7BcQ","select-lang-switch-nav":"navbar_select-lang-switch-nav__254oM",showMenuNav:"navbar_showMenuNav__Ad9jH",hideMenuNav:"navbar_hideMenuNav__A4FQc","hamburger-top-menu":"navbar_hamburger-top-menu__N1z4j","search-bar":"navbar_search-bar__td_Hw","search-button":"navbar_search-button__436rR"}},4981:function(e){e.exports={DBOzoneFont:"Home_DBOzoneFont__uNAss",SarabunFont:"Home_SarabunFont__UVQVs"}}}]);
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.