PageSourceSearch

https://www.readyplanettraveltech.com/_next/static/chunks/35636-64936335259b5d3b.js

js readyplanettraveltech.com collected 2026-10-01 15:39:31 UTC 97,175 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35636],{53518:function(e,t,l){"use strict";var i,a,r,n=l(30247);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)({}).hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),i||(i=n.createElement("rect",{width:40,height:40,fill:"#fff",rx:20})),n.createElement("mask",{id:"arrow-button_svg__a",width:24,height:24,x:8,y:8,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},a||(a=n.createElement("path",{fill:"#D9D9D9",d:"M8 8h24v24H8z"}))),r||(r=n.createElement("g",{mask:"url(#arrow-button_svg__a)"},n.createElement("path",{fill:"#54301A",d:"M24.175 21H12v-2h12.175l-5.6-5.6L20 12l8 8-8 8-1.425-1.4z"}))))}},35636:function(e,t,l){Promise.resolve().then(l.t.bind(l,6539,23)),Promise.resolve().then(l.t.bind(l,46099,23)),Promise.resolve().then(l.bind(l,48794)),Promise.resolve().then(l.bind(l,68485)),Promise.resolve().then(l.t.bind(l,80287,23)),Promise.resolve().then(l.bind(l,99717)),Promise.resolve().then(l.bind(l,40149)),Promise.resolve().then(l.bind(l,58960)),Promise.resolve().then(l.bind(l,5903)),Promise.resolve().then(l.bind(l,8850)),Promise.resolve().then(l.bind(l,30071)),Promise.resolve().then(l.bind(l,1598)),Promise.resolve().then(l.bind(l,65299)),Promise.resolve().then(l.bind(l,2185)),Promise.resolve().then(l.bind(l,35412)),Promise.resolve().then(l.bind(l,24339)),Promise.resolve().then(l.bind(l,77086)),Promise.resolve().then(l.bind(l,51771)),Promise.resolve().then(l.bind(l,1861)),Promise.resolve().then(l.bind(l,26642)),Promise.resolve().then(l.bind(l,466)),Promise.resolve().then(l.bind(l,24768)),Promise.resolve().then(l.bind(l,99457)),Promise.resolve().then(l.bind(l,764)),Promise.resolve().then(l.bind(l,60655)),Promise.resolve().then(l.bind(l,95619)),Promise.resolve().then(l.t.bind(l,65918,23)),Promise.resolve().then(l.bind(l,40057)),Promise.resolve().then(l.bind(l,20693)),Promise.resolve().then(l.bind(l,64980)),Promise.resolve().then(l.t.bind(l,14517,23)),Promise.resolve().then(l.bind(l,78631)),Promise.resolve().then(l.bind(l,72589)),Promise.resolve().then(l.bind(l,22011)),Promise.resolve().then(l.bind(l,95438)),Promise.resolve().then(l.bind(l,36308)),Promise.resolve().then(l.bind(l,10570)),Promise.resolve().then(l.bind(l,97628)),Promise.resolve().then(l.bind(l,84858)),Promise.resolve().then(l.bind(l,90538)),Promise.resolve().then(l.bind(l,40155)),Promise.resolve().then(l.bind(l,28886)),Promise.resolve().then(l.bind(l,15641)),Promise.resolve().then(l.bind(l,12196)),Promise.resolve().then(l.bind(l,40337)),Promise.resolve().then(l.bind(l,16337)),Promise.resolve().then(l.bind(l,35311)),Promise.resolve().then(l.bind(l,10243)),Promise.resolve().then(l.bind(l,6258)),Promise.resolve().then(l.bind(l,2825)),Promise.resolve().then(l.bind(l,74727)),Promise.resolve().then(l.bind(l,88359)),Promise.resolve().then(l.bind(l,6399)),Promise.resolve().then(l.bind(l,19739))},99717:function(e,t,l){"use strict";var i=l(24718),a=l(46757);l(71310);var r=l(11913);let n=(0,a.default)(()=>Promise.resolve().then(l.bind(l,40149)),{loadableGenerated:{webpack:()=>[40149]},ssr:!1});t.default=e=>{let{adsBannerComponent:t,priorityImage:l,loc:a,mobile:s,preview:o,colorStyle:c}=e,{hasMouseMoved:d}=(0,r.G)();return d?(0,i.jsx)(n,{adsBannerComponent:t,priorityImage:l,loc:a,mobile:s,preview:o,colorStyle:c}
1):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("section",{className:"min-h-[300px]",children:t.items.map((e,t)=>(0,i.jsx)("img",{alt:e.attributes.imageAlt||"ads banner"},t))})})}},40149:function(e,t,l){"use strict";l.r(t),l.d(t,{AdsSectionCarousel:function(){return d}});var i=l(24718),a=l(71310),r=l(37391),n=l(31302),s=l(83990);l(4487),l(85352),l(70763),l(64374);var o=l(37014),c=l(62625);let d=e=>{let{adsBannerComponent:t,priorityImage:l,loc:d,mobile:u,preview:m,colorStyle:f}=e,h=t.autoSlide||void 0,x=t.slideDelay||4e3;(0,a.useRef)(null);let b=(0,a.useRef)(null),p=(0,a.useRef)(null),[v,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{b.current&&p.current&&v&&(v.params.navigation.prevEl=b.current,v.params.navigation.nextEl=p.current,v.navigation.init(),v.navigation.update())},[v]);let y=h&&!m?{delay:x,disableOnInteraction:!1,pauseOnMouseEnter:!0}:void 0,j=[s.W_,s.tl,...h&&!m?[s.pt]:[]];return(0,i.jsxs)("div",{className:"relative w-full h-full web-banner-component",dir:"ltr",children:[(0,i.jsx)(n.tq,{modules:j,effect:"slide",allowTouchMove:!0,slidesPerView:"auto",loop:!0,autoplay:y,speed:500,navigation:{prevEl:b.current,nextEl:p.current},pagination:{clickable:!0},style:{"--swiper-pagination-bullet-color":(null==f?void 0:f.buttonBgNormal)||"#009eca"},className:"w-full h-full",onSwiper:g,children:t.items.map((e,a)=>{var s,o,c,u,m;return(null===(s=e.attributes)||void 0===s?void 0:s.desktopImageUrl)&&(0,i.jsxs)(n.o5,{children:[(0,i.jsx)("a",{className:"hidden sm:block",href:e.attributes.linkUrl,target:"SELF"==e.linkTarget?"_self":"_blank","aria-label":"banner",children:(0,i.jsx)("div",{style:{paddingTop:"".concat(null!==(u=null===(o=t.paddingTop)||void 0===o?void 0:o[d.toLowerCase()].desktop)&&void 0!==u?u:"undefined","%")},children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,r.S)(e.attributes.desktopImageUrl||""),".avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,r.S)(e.attributes.desktopImageUrl||""),".webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.attributes.desktopImageUrl||"",width:"1180",height:"489",className:"w-full hidden sm:block ".concat(t.paddingTop?"absolute top-0":""),fetchPriority:l&&0===a?"high":"auto",loading:l&&0===a?"eager":"lazy",alt:e.attributes.imageAlt||"ads-banner-".concat(a)})]})})}),(0,i.jsx)("a",{className:"block sm:hidden",href:e.attributes.linkUrl,target:"_self","aria-label":"banner",children:(0,i.jsx)("div",{style:{paddingTop:"".concat(null!==(m=null===(c=t.paddingTop)||void 0===c?void 0:c[d.toLowerCase()].mobile)&&void 0!==m?m:"undefined","%")},children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,r.S)(e.attributes.mobileImageUrl||""),".avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,r.S)(e.attributes.mobileImageUrl||""),".webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.attributes.mobileImageUrl||"",width:"370",height:"153",className:"w-full block sm:hidden ".concat(t.paddingTop?"absolute top-0":""),fetchPriority:l&&0===a?"high":"auto",loading:l&&0===a?"eager":"lazy",alt:e.attributes.imageAlt||"ads-banner-".concat(a)})]})})})]},e.id)})}),(0,i.jsx)("button",{"aria-label":"Previous Slide",ref:b,className:"hidden sm:block custom-prev absolute left-4 lg:left-6 top-1/2 -translate-y-1/2 z-10 p-2 lg:p-3 opacity-60 rounded-full text-white dynamic-bg dynamic-color",style:{"--dynamic-bg":(null==f?void 0:f.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==f?void 0:f.buttonBgHover)||"#254b7c","--dynamic-color":(null==f?void 0:f.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==f?void 0:f.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==f?void 0:f.buttonTextNormal)||"#ffffff"},children:(0,i.jsx)(o.default,{className:"h-3 w-3 lg:h-5 lg:w-5"})}),(0,i.jsx)("button",{"aria-label":"Next Slide",ref:p,className:"hidden sm:block custom-next absolute right-4 lg:right-6 top-1/2 -translate-y-1/2 z-10 p-2 lg:p-3 opacity-60 rounded-full text-white dynamic-bg dynamic-color",style:{"--dynamic-bg":(null==f?void 0:f.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==f?void 0:f.buttonBgHover)||"#254b7c","--dynamic-color":(null==f?void 0:f.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==f?void 0:f.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==f?void 0:f.buttonTextNormal)||"#ffffff"},children:(0,i.jsx)(c.default,{className:"h-3 w-3 lg:h-5 lg:w-5"})})]})};t.default=d},58960:function(e,t,l){"use strict";l.r(t),l.d(t,{ArticleCard:function(){return u}});var i=l(24718),a=l(35801),r=l(37391),n=l(29472),s=l(71310),o=l(11624),c=l(61653),d=l(90406);let u=e=>{var t,l;
1let{article:u,pathPrefix:m="/blogs/editorial",display:f,priorityImage:h,loc:x,date:b}=e,{t:p}=(0,o.$)(x),v=(0,s.useContext)(n.Z);return(0,i.jsxs)("div",{id:(0,d.E)("article-card","article-card-".concat(u.id)),className:"w-fit p-0 flex flex-col items-center h-full rounded-lg overflow-hidden",children:[(0,i.jsx)("a",{href:"".concat(m,"/").concat(u.handle),id:(0,d.E)("article-card-picture-link","article-card-picture-link-".concat(u.id)),children:(0,i.jsxs)("picture",{id:(0,d.E)("article-card-picture","article-card-picture-".concat(u.id)),children:[(0,i.jsx)("source",{srcSet:""!=u.imageUrl?"".concat((0,r.S)(u.imageUrl),".avif"):"https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg",type:"image/avif"}),(0,i.jsx)("source",{srcSet:""!=u.imageUrl?"".concat((0,r.S)(u.imageUrl),".webp"):"https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg",type:"image/webp"}),(0,i.jsx)("img",{id:(0,d.E)("article-card-img","article-card-img-".concat(u.id)),src:u.imageUrl,alt:u.imageAlt||(null===(t=u.attributes)||void 0===t?void 0:t.title),width:388,height:200,className:(0,a.cn)("object-cover aspect-[19/10] rounded-lg"),loading:h?"eager":"lazy",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src="https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg"}})]})}),(0,i.jsxs)("div",{id:(0,d.E)("article-card-content","article-card-content-".concat(u.id)),className:"flex flex-col items-start w-full max-w-[388px] h-40 gap-4 mt-4",style:{backgroundColor:(null==v?void 0:v.contentBg)||"#ffffff"},children:[(0,i.jsx)("p",{id:(0,d.E)("article-card-date-title","article-card-date-title-".concat(u.id)),className:"text-lg font-light text-wrap text-ellipsis line-clamp-1",style:{color:(null==v?void 0:v.tableText)||"#747474"},children:b}),(0,i.jsx)("h3",{id:(0,d.E)("article-card-title","article-card-title-".concat(u.id)),className:"text-[18px] font-semibold text-wrap text-ellipsis line-clamp-2",children:null===(l=u.attributes)||void 0===l?void 0:l.title}),(0,i.jsx)(c.default,{id:(0,d.E)("article-card-link","article-card-link-".concat(u.id)),href:"".concat(m,"/").concat(u.handle),className:"text-[18px] font-normal dynamic-color break-word overflow-hidden",style:{"--dynamic-color":(null==v?void 0:v.link)||"#006ef2","--dynamic-hover-color":(null==v?void 0:v.linkHover)||"#254b7c","--dynamic-focus-color":(null==v?void 0:v.linkHover)||"#254b7c",maxHeight:"calc(2 * 2.8rem)"},children:p("article.read_more")})]})]})}},5903:function(e,t,l){"use strict";var i=l(24718);l(71310);var a=l(46757),r=l(83125),n=l(6691),s=l(11913),o=l(12911),c=l(70326);let d=(0,a.default)(()=>l.e(16144).then(l.bind(l,16144)),{loadableGenerated:{webpack:()=>[16144]},ssr:!1,loading:()=>(0,i.jsx)(u,{})}),u=()=>{var e;let t=(0,r.usePathname)(),l=null!==(e=n.Mj.find(e=>t.startsWith("/".concat(e))))&&void 0!==e?e:"th";return(0,i.jsxs)("div",{className:"flex flex-row justify-center items-center gap-4 my-6 text-c4 text-x w-full",children:[(0,i.jsx)("div",{className:"text-grayc3",children:(0,i.jsx)(o.default,{className:"w-7 h-7"})}),(0,i.jsxs)("p",{className:"text-lg font-normal",children:["en"===l?"Page":"หน้าที่"," 1 ","en"===l?"from":"จาก"," 1"]}),(0,i.jsx)("div",{className:"text-grayc3",children:(0,i.jsx)(c.default,{className:"w-7 h-7"})})]})};t.default=e=>{let{currentPage:t,totalPage:l}=e,{hasMouseMoved:a}=(0,s.G)();return a?(0,i.jsx)(d,{currentPage:t,totalPage:l}):(0,i.jsx)(u,{})}},8850:function(e,t,l){"use strict";let i;l.r(t),l.d(t,{BusinessVideoComponent:function(){return x},default:function(){return b}});var a=l(24718),r=l(7572);l(4092);var n=l(35801),s=l(27328),o=l(2316),c=l(71310),d=e=>{let{vid:t,active:l,isMove:r,priorityImage:d,isMobile:u}=e,[m,f]=(0,c.useState)(!0);(0,c.useEffect)(()=>{if(!window.YT){var e;let l=document.createElement("script");l.src="https://www.youtube.com/iframe_api",l.id="youtube-iframe-api-".concat(t.videoId);let i=document.getElementsByTagName("script")[0];null===(e=i.parentNode)||void 0===e||e.insertBefore(l,i)}return()=>{var e;null===(e=document.getElementById("youtube-iframe-api-".concat(t.videoId)))||void 0===e||e.remove()}},[t.videoId]),(0,c.useEffect)(()=>
1{if(l!==t.id){var e,a;i=void 0,f(!0),null===(e=document.getElementById("yt-".concat(t.id)))||void 0===e||e.remove();let l=document.createElement("div");l.id="yt-".concat(t.id),null===(a=document.getElementById("yt-wrapper-".concat(t.id)))||void 0===a||a.append(l)}},[l,t.id]),(0,c.useEffect)(()=>{0!==r&&l===t.id&&i&&(f(!0),i.stopVideo())},[l,r,t.id]);let h=()=>{m&&!i?i=new window.YT.Player("yt-".concat(t.id),{videoId:t.videoId,width:"100%",height:"100%",events:{onReady:e=>{e.target.playVideo()},onStateChange:e=>{if(0===e.data){var l,a;f(!0),null===(l=document.getElementById("yt-".concat(t.id)))||void 0===l||l.remove();let e=document.createElement("div");e.id="yt-".concat(t.id),null===(a=document.getElementById("yt-wrapper-".concat(t.id)))||void 0===a||a.append(e)}else 1===e.data?f(!1):2===e.data?setTimeout(()=>{(null==i?void 0:i.getPlayerState())===2&&f(!0)},500):5===e.data&&f(!0)}}}):i.playVideo()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{id:"yt-wrapper-"+t.id,className:"w-full h-full",children:(0,a.jsx)("div",{id:"yt-"+t.id})}),(0,a.jsx)("div",{className:(0,n.cn)("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 py-3 cursor-pointer w-full h-full",m?"":"hidden"),children:(0,a.jsx)(o.default,{onClick:()=>h(),src:"https://img.youtube.com/vi/"+t.videoId+(u?"/mqdefault.jpg":"/sddefault.jpg"),alt:t.videoId,fill:!0,style:{objectFit:"contain",width:"100%",height:"100%",backgroundColor:"#000000"},unoptimized:!0,className:"shadow-lg",priority:!!d||void 0,loading:d?void 0:"lazy"})}),(0,a.jsx)("div",{className:(0,n.cn)("w-[50px] h-[30px] sm:w-[70px] sm:h-[50px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 cursor-pointer z-10",m?"":"hidden"),children:(0,a.jsx)(o.default,{onClick:()=>h(),src:s.CW+"youtube_play.svg",alt:t.videoId,fill:!0,unoptimized:!0,priority:!!d||void 0,loading:d?void 0:"lazy"})})]})},u=l(87597),m=l(70526),f=l(11913),h=l(29472);let x=e=>{var t;let{list:l,priorityImage:i,priorityContent:n}=e,s=(0,c.useContext)(h.Z),[o,x]=(0,u.Z)({loop:!0,skipSnaps:!1,align:"center"}),[b,p]=(0,c.useState)(""),[v,g]=(0,c.useState)([]),[y,j]=(0,c.useState)(0),w=null!==(t=(0,m.Z)())&&void 0!==t?t:void 0,N=(0,c.useCallback)(()=>{x&&(j(x.selectedScrollSnap()),p(v[x.selectedScrollSnap()].id))},[x]);(0,c.useEffect)(()=>{x&&(x.on("select",N),x.reInit())},[x,N]),(0,c.useEffect)(()=>{if(l.length>0){let e=[],t=[...l.map((t,i)=>(e.push({id:"videoId".concat(i,"duplicated"),videoId:t}),1===l.length&&(e.push({id:"videoId".concat(i,"duplicated2"),videoId:t}),e.push({id:"videoId".concat(i,"duplicated3"),videoId:t})),{id:"videoId".concat(i),videoId:t})),...e];g(t),p(t[0].id)}},[l]);let{hasMouseMoved:k}=(0,f.G)();return n||k?(0,a.jsx)("div",{style:{backgroundColor:(null==s?void 0:s.contentBg)||"#ffffff"},children:(0,a.jsx)(r.Z,{className:"py-8 relative min-h-[350px] md:min-h-[580px]",disabledPadding:!0,sectionWidth:"FLUID",contentWidth:"FLUID",children:(0,a.jsx)("div",{className:"embla",ref:o,children:(0,a.jsx)("div",{className:"embla__container w-auto whitespace-nowrap mt-7 px-0 mx-0 items-center",children:v.map((e,t)=>(0,a.jsxs)("div",{className:"relative min-w-[84%] md:min-w-[45%] basis-2/6 w-40 mx-2 my-6 bg-slate-400 text-center transition-opacity duration-300 ".concat(t===y?"opacity-100 h-[210px] md:h-[445px]":"opacity-50 h-[185px] md:h-[410px]"),children:[" ",(0,a.jsx)("div",{className:"h-full w-full",children:(0,a.jsx)(d,{vid:{id:e.id,videoId:e.videoId},active:b,isMove:y,priorityImage:0===t&&i,isMobile:w})})]},t))})})})}):(0,a.jsx)(a.Fragment,{children:v.map((e,t)=>(0,a.jsx)(a.Fragment,{children:e.videoId}))})};var b=x},30071:function(e,t,l){"use strict";var i=l(24718),a=l(46757),r=l(71310),n=l(83125),s=l(27328),o=l(6691),c=l(11913),d=l(29472);let u=(0,a.default)(()=>Promise.all([l.e(90297),l.e(53283),l.e(94379),l.e(6539),l.e(67560),l.e(80892),l.e(59389),l.e(18855),l.e(31081),l.e(54076)]).then(l.bind(l,54076)),{loadableGenerated:{webpack:()=>[54076]},ssr:!1,loading:()=>(0,i.jsx)(m,{})}),m=()=>{var e;let t=(0,n.usePathname)(),l=null!==(e=o.Mj.find(e=>t.startsWith("/".concat(e))))&&void 0!==e?e:"th",a=f({loc:l}),c=new Date().getDate(),u=new Date().getMonth(),m="th"===l?["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"][u]:["January","February","March","April","May","June","July","August","September","October","November","December"][u],h=new Date().getFullYear();"th"===l&&(h+=543);let x=(0,r.useContext)(d.Z);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)("img",{src:s.CW+"vector_right.svg",alt:"vector_right",width:11,height:0,style:{width:"100%",height:"auto"},className:"cursor-pointer rotate-180"})}),(0,i.jsxs)("span",{className:"text-2xl font-bold whitespace-nowrap",style:{color:(null==x?void 0:x.headingMain)||"#006ef2"}
1,children:[m," ",h]}),(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)("img",{src:s.CW+"vector_right.svg",alt:"vector_right",width:11,height:0,style:{width:"100%",height:"auto"},className:"cursor-pointer"})})]}),(0,i.jsx)("div",{className:"mx-auto bg-gray-100 rounded-lg border",children:(0,i.jsxs)("table",{className:"table-auto",children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:("th"===l?["จ.","อ.","พ.","พฤ.","ศ.","ส.","อา."]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]).map(e=>(0,i.jsx)("th",{className:"border-r-[1px] w-[191px] h-14 pl-4 text-left bg-white rounded-t-lg font-light",style:{color:"#757575"},children:e},e))})}),(0,i.jsx)("tbody",{children:a.map((e,t)=>(0,i.jsx)("tr",{children:e.map((e,l)=>(0,i.jsx)("td",{className:"h-[87.5px] sm:h-[157px] pl-4 pt-4 border align-text-top font-normal text-xl \n                                    ",style:{color:"#757575",backgroundColor:c==e?"#f3f4f6 !important":e?"#FFFFFF":"#f3f4f6"},children:null!==e?e:""},"".concat(t,"-").concat(l)))},t))})]})})]})};t.default=e=>{let{hasMouseMoved:t}=(0,c.G)(),{loc:l,res:a}=e;return t?(0,i.jsx)(u,{loc:l,calendarComponent:a}):(0,i.jsx)(m,{})};let f=e=>{let{loc:t="en"}=e,l=new Date,i=l.getMonth(),a=l.getFullYear(),r=new Date(a,i,1),n=new Date(a,i+1,0),s=r.getDay(),o=n.getDate();"th"===t&&(s=0===s?6:s-1);let c=[],d=Array(7).fill(null);for(let e=1;e<=o;e++){let t=(s+e-1)%7;d[t]=e,(6===t||e===o)&&(c.push(d),d=Array(7).fill(null))}return c}},1598:function(e,t,l){"use strict";l.d(t,{default:function(){return u}});var i=l(24718),a=l(71310),r=l(87597),n=l(11913),s=l(37014),o=l(62625),c=l(37391),d=e=>{let{src:t,showImage:l}=e,{hasMouseMoved:a}=(0,n.G)();return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)("iframe",{title:"YouTube Video",className:"".concat(l?"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full h-full items-center shadow-lg":"w-full h-full items-center shadow-lg"),src:t,loading:"lazy",allowFullScreen:!0}):null})};l(50412),l(86117);var u=e=>{let{colorStyle:t,trip:l,priorityImage:u,priorityContent:m}=e,{hasMouseMoved:f}=(0,n.G)(),[h,x]=(0,a.useState)(null),[b,p]=(0,r.Z)({loop:!1,dragFree:!0}),[v,g]=(0,r.Z)({loop:!1,dragFree:!0}),y=()=>{window.innerWidth<768?null==p||p.scrollNext():null==g||g.scrollNext()},j=()=>{window.innerWidth<768?null==p||p.scrollPrev():null==g||g.scrollPrev()},w=e=>{x(e)},N=()=>{x(null)};function k(e,t){if(e.length>0&&t>0)return Array.from({length:Math.ceil(e.length/t)},(l,i)=>e.slice(i*t,i*t+t))}return(l.title||l.des||l.src||l.image&&l.image.length>0)&&(0,i.jsxs)("div",{className:"flex flex-col gap-8 sm:gap-16 relative w-full items-center py-[40px] px-[30px] sm:px-[120px]",children:[""==l.src&&0==l.image.length&&(l.title||l.des)&&(0,i.jsxs)("div",{className:"flex flex-col gap-4 items-center text-center",children:[l.title&&(0,i.jsx)("h2",{className:"font-medium text-3xl text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingMain)||"#254b7c"},children:l.title}),l.des&&(0,i.jsx)("p",{className:"font-light text-base text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingSub)||"#2c568a"},children:l.des})]}),l.src&&(l.title||l.des)&&(0,i.jsxs)("div",{className:"flex flex-col gap-4 items-center text-center",children:[l.title&&(0,i.jsx)("h2",{className:"font-medium text-3xl text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingMain)||"#254b7c"},children:l.title}),l.des&&(0,i.jsx)("p",{className:"font-light text-base text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingSub)||"#2c568a"},children:l.des})]}),(l.src||l.image&&l.image.length>0)&&(0,i.jsx)("div",{className:"flex flex-col sm:flex-row gap-10 w-full",children:l.src?(0,i.jsxs)("div",{className:"flex md:flex-row flex-col gap-10 w-full ",children:[(0,i.jsx)("div",{className:"relative ".concat(l.image&&l.image.length>0?"md:w-1/2 w-full sm:flex-1":"w-full flex items-center justify-center","  h-full"),children:f?(0,i.jsx)("div",{className:"".concat(l.image&&l.image.length>0?"":"aspect-video w-full max-w-[1440px]"),children:(0,i.jsx)(d,{src:l.src,showImage:l.image&&l.image.length>0})}):(0,i.jsx)("div",{className:"aspect-video bg-gray-300",style:{animation:"fade 1.5s ease-in-out infinite"}})}),l.image&&l.image.length>0&&(0,i.jsx)("div",{className:"overflow-hidden md:w-1/2 w-full",children:(0,i.jsxs)("div",{className:"overflow-hidden",ref:v,children:[(0,i.jsx)("div",{className:"flex gap-4",children:(k(l.image,6)||[]).map((e,t)=>(0,i.jsx)("div",{className:"flex-none w-full h-auto grid grid-cols-3 grid-rows-2 gap-4 shrink-0 justify-items-center",children:e.map((e,t)=>(0,i.jsx)("div",{className:"w-full aspect-[1/1] relative overflow-hidden",children:f?(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.imageUrl,alt:e.imageAlt,className:"w-full h-full cursor-pointer object-cover",width:250,height:250,style:{width:"100%",height:"100%",aspectRatio:1},loading:u?void 0:"lazy",onClick:()=>w(e.imageUrl)})]},e.id):(0,i.jsx)("div",{className:"w-[250px] h-[250px] bg-gray-300",style:{animation:"fade 1.5s ease-in-out infinite"}})},t))},t))}),h&&(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 pt-28",onClick:N,children:(0,i.jsx)("div",{className:"relative overflow-auto",onClick:e=>e.stopPropagation(),children:(0,i.jsx)("img",{src:"".concat(h),alt:"Large view",width:512,height:512,className:"h-auto max-h-[70vh] xl:w-[30vw] md:w-[50vw] w-[60vw] object-contain",loading:"lazy",onClick:e=>e.stopPropagation()})})}),l.image.length>6&&(0,i.jsx)("div",{className:"w-full flex justify-between items-center mt-8",children:(0,i.jsxs)("div",{className:"flex w-full justify-end",children:[(0,i.jsx)("button",{"aria-label":"Previous",onClick:j,className:"embla__button embla__button--prev inline-flex items-center justify-center  whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none  disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden  relative transform left-0 top-0 translate-y-0 mx-1 dynamic-bg dynamic-color dynamic-border",style:{"--dynamic-bg":(null==t?void 0:t.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==t?void 0:t.buttonBgHover)||"#254b7c","--dynamic-border":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==t?void 0:t.buttonTextHover)||"#ffffff"},children:(0,i.jsx)(s.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{"aria-label":"Next",onClick:y,className:"embla__button embla__button--next inline-flex items-center justify-center  whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none  disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full -right-12 max-md:hidden  relative transform left-0 top-0 translate-y-0 mx-1 dynamic-bg dynamic-color dynamic-border",style:{"--dynamic-bg":(null==t?void 0:t.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==t?void 0:t.buttonBgHover)||"#254b7c","--dynamic-border":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==t?void 0:t.buttonTextHover)||"#ffffff"},children:(0,i.jsx)(o.default,{className:"h-5 w-5"})})]})})]})})]}):l.image&&l.image.length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-8 sm:gap-16 relative w-full items-center",children:[(l.title||l.des)&&l.image.length>12&&(0,i.jsxs)("div",{className:"flex flex-row justify-center w-full",children:[l.image.length>12&&(0,i.jsx)("div",{className:"w-1/5"}
1),(l.title||l.des)&&(0,i.jsxs)("div",{className:"flex flex-col w-full md:w-3/5 gap-4 items-center text-center",children:[l.title&&(0,i.jsx)("h2",{className:"font-medium text-3xl text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingMain)||"#254b7c"},children:l.title}),l.des&&(0,i.jsx)("p",{className:"font-light text-base text-wrap whitespace-pre-line",style:{color:(null==t?void 0:t.headingSub)||"#2c568a"},children:l.des})]}),l.image.length>12&&(0,i.jsx)("div",{className:"w-1/5 flex justify-between items-start mt-2 mr-2",children:(0,i.jsxs)("div",{className:"flex w-full justify-end",children:[(0,i.jsx)("button",{"aria-label":"Previous",onClick:j,className:"embla__button embla__button--prev inline-flex items-center justify-center  whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none  disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden  relative transform left-0 top-0 translate-y-0 mx-1 dynamic-bg dynamic-color dynamic-border",style:{"--dynamic-bg":(null==t?void 0:t.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==t?void 0:t.buttonBgHover)||"#254b7c","--dynamic-border":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==t?void 0:t.buttonTextHover)||"#ffffff"},children:(0,i.jsx)(s.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{"aria-label":"Next",onClick:y,className:"embla__button embla__button--next inline-flex items-center justify-center  whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none  disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full -right-12 max-md:hidden  relative transform left-0 top-0 translate-y-0 mx-1 dynamic-bg dynamic-color dynamic-border",style:{"--dynamic-bg":(null==t?void 0:t.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==t?void 0:t.buttonBgHover)||"#254b7c","--dynamic-border":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==t?void 0:t.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==t?void 0:t.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==t?void 0:t.buttonTextHover)||"#ffffff"},children:(0,i.jsx)(o.default,{className:"h-5 w-5"})})]})})]}),(0,i.jsx)("div",{className:"hidden md:flex overflow-hidden",children:(0,i.jsxs)("div",{className:"overflow-hidden",ref:v,children:[(0,i.jsx)("div",{className:"flex xl:gap-12 md:gap-8 gap-6",children:(k(l.image,12)||[]).map((e,t)=>(0,i.jsx)("div",{className:"flex-none w-full h-auto grid grid-cols-4 ".concat(l.image.length<=12?"":"grid-rows-3"," xl:gap-12 md:gap-8 gap-6 justify-items-center"),children:e.map((e,t)=>(0,i.jsx)("div",{className:"w-full aspect-[1/1] relative overflow-hidden",children:f?(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.imageUrl,alt:e.imageAlt,className:"w-full h-full cursor-pointer object-cover",width:250,height:250,style:{width:"100%",height:"100%",aspectRatio:1},loading:u?void 0:"lazy",onClick:()=>w(e.imageUrl)})]},e.id):(0,i.jsx)("div",{className:"w-[250px] h-[250px] bg-gray-300",style:{animation:"fade 1.5s ease-in-out infinite"}})},t))},t))}),h&&(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 pt-28",onClick:N,children:(0,i.jsx)("div",{className:"relative overflow-auto",onClick:e=>e.stopPropagation(),children:(0,i.jsx)("img",{src:"".concat(h),alt:"Large view",width:512,height:512,className:"h-auto max-h-[70vh] xl:w-[30vw] md:w-[50vw] w-[60vw] object-contain",loading:"lazy",onClick:e=>e.stopPropagation()})})})]})}),(0,i.jsx)("div",{className:"flex md:hidden overflow-hidden",children:(0,i.jsxs)("div",{className:"overflow-hidden",ref:b,children:[(0,i.jsx)("div",{className:"flex gap-4",children:l.image&&l.image.length>0&&(k(l.image,4)||[]).map((e,t)=>(0,i.jsx)("div",{className:"flex-none w-full h-auto grid grid-cols-2 grid-rows-2 gap-4 justify-items-center",children:e.map((e,t)=>(0,i.jsx)("div",{className:"w-full aspect-[1/1] relative overflow-hidden",children:f?(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(e.imageUrl),"_resize.webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.imageUrl,alt:e.imageAlt,className:"w-full h-full cursor-pointer object-cover",width:250,height:250,style:{width:"100%",height:"100%",aspectRatio:1},loading:u?void 0:"lazy",onClick:()=>w(e.imageUrl)})]},e.id):(0,i.jsx)("div",{className:"w-[250px] h-[250px] bg-gray-300",style:{animation:"fade 1.5s ease-in-out infinite"}})},t))},t))}),h&&(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 pt-28",onClick:N,children:(0,i.jsx)("div",{className:"relative overflow-auto",onClick:e=>e.stopPropagation(),children:(0,i.jsx)("img",{src:"".concat(h),alt:"Large view",width:512,height:512,className:"h-auto max-h-[70vh] xl:w-[30vw] md:w-[50vw] w-[60vw] object-contain",loading:"lazy",onClick:e=>e.stopPropagation()})})})]})})]})})})]})}},65299:function(e,t,l){"use strict";var i=l(24718),a=l(37391),r=l(11913);t.default=e=>{let{imageBannerUrl:t,imageAlt:l,width:n,height:s,priorityImage:o}=e,{hasMouseMoved:c}=(0,r.G)();return c?(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,a.S)(t||""),".avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,a.S)(t||""),".webp"),type:"image/webp"}),(0,i.jsx)("img",{src:t,alt:l,loading:o?"eager":"lazy",fetchPriority:o?"high":"auto",style:{objectFit:"cover"},width:n,height:s,className:"w-full h-auto"})]}):(0,i.jsx)("div",{className:"w-full h-[300px] sm:h-[600px] bg-gray-300"})}},2185:function(e,t,l){"use strict";var i=l(24718),a=l(11913);t.default=e=>{let{children:t,gallery:l}=e,{hasMouseMoved:r}=(0,a.G)();return r?t:(0,i.jsxs)("section",{children:[(0,i.jsx)("img",{alt:"gallery desktop"}),(0,i.jsx)("img",{alt:"gallery mobile"}),l.title,l.des]})}},35412:function(e,t,l){"use strict";var i=l(24718),a=l(71310),r=l(46757),n=l(83125),s=l(6691),o=l(11913),c=l(29472);let d=(0,r.default)(()=>Promise.all([l.e(17691),l.e(22196),l.e(34217),l.e(20292),l.e(6539),l.e(4480),l.e(18855),l.e(90118),l.e(92136)]).then(l.bind(l,48509)),{loadableGenerated:{webpack:()=>[48509]},ssr:!1,loading:()=>(0,i.jsx)(u,{})}),u=()=>{var e,t,l;let r=(0,n.usePathname)(),o=null!==(e=s.Mj.find(e=>r.startsWith("/".concat(e))))&&void 0!==e?e:"th",d=(0,a.useContext)(c.Z);return(0,i.jsx)("span",{className:"font-medium text-sm text-wrap whitespace-pre-line underline cursor-pointer dynamic-color",style:{"--dynamic-color":null!==(t=d.link)&&void 0!==t?t:"#009eca","--dynamic-color-hover":null!==(l=d.linkHover)&&void 0!==l?l:"#254b7c"},children:"en"===o?"read more":"อ่านต่อ"})};t.default=e=>{let{model:t}=e,{hasMouseMoved:l}=(0,o.G)();return(0,i.jsx)(i.Fragment,{children:l?(0,i.jsx)(d,{model:t},t.id):u()})}},24339:function(e,t,l){"use strict";var i=l(24718),a=l(71310),r=l(11913);t.default=e=>{let{children:t,hallOfFame:l}=e,{hasMouseMoved:n}=(0,r.G)();return n?t:(0,i.jsxs)("section",{children:[(0,i.jsx)("img",{alt:"hall of fame desktop"}),(0,i.jsx)("img",{alt:"hall of fame mobile"}),l.title,(0,i.jsx)("br",{}),l.des1,(0,i.jsx)("br",{}),l.des2,(0,i.jsx)("br",{}),l.models.map((e,t)=>(0,i.jsxs)(a.Fragment,{children:[e.title,(0,i.jsx)("br",{}),e.previewDes,(0,i.jsx)("br",{}),e.name,(0,i.jsx)("br",{}),(0,i.jsx)("img",{alt:e.imagePreviewAlt}),(0,i.jsx)("br",{})]},t))]})}}
1,77086:function(e,t,l){"use strict";l.r(t);var i=l(24718),a=l(46757),r=l(71310),n=l(88072),s=l(83125);let o=(0,a.default)(()=>Promise.all([l.e(83942),l.e(63573),l.e(56868),l.e(60082),l.e(87753),l.e(85194),l.e(52365),l.e(74339),l.e(6360),l.e(99214)]).then(l.bind(l,99214)),{loadableGenerated:{webpack:()=>[99214]},ssr:!1});t.default=e=>{let{displayType:t,radiusStyle:l,appKey:a}=e,[c,d]=(0,r.useState)(!1),u=(0,n.p)(),m=null!=t?t:"cart",f=(0,s.useRouter)();return(0,r.useEffect)(()=>{"cart"===m&&f.push("/checkout")},[m,f]),(0,r.useEffect)(()=>{u&&d(!0)},[u]),(0,r.useEffect)(()=>{let e=setTimeout(()=>d(!0),1e3);return()=>clearTimeout(e)},[]),"cart"!==m&&c?(0,i.jsx)(o,{displayType:m,radiusStyle:l,appKey:a}):null}},466:function(e,t,l){"use strict";var i=l(24718);l(71310);var a=l(87597);t.default=e=>{let{collections:t}=e,[l,r]=(0,a.Z)({loop:!1,dragFree:!0});return(0,i.jsx)("div",{className:"embla",ref:l,children:(0,i.jsx)("div",{className:"embla__container",children:t.map((e,t)=>{let l=e.imageUrl?e.imageUrl.substring(0,e.imageUrl.lastIndexOf(".")):"";return(0,i.jsx)("div",{className:"lg:basis-1/7 md:basis-1/6 sm:basis-1/5  basis-1/4",children:(0,i.jsx)("a",{href:"/collections/".concat(e.handle),children:(0,i.jsxs)("div",{className:"flex flex-col justify-start items-center flex-shrink-0 gap-2 lg:w-24 xl:w-32 w-20 first:ml-auto last:mr-auto",children:[e.imageUrl&&(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat(l,".avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat(l,".webp"),type:"image/webp"}),(0,i.jsx)("img",{src:e.imageUrl,alt:e.imageAlt,width:60,height:60,loading:"lazy"})]}),(0,i.jsx)("div",{className:"flex flex-col",children:e.attributes.shortTitle&&(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)("p",{className:"font-light text-c4 line-clamp-2",children:e.attributes.shortTitle})})})]})})},e.handle)})})})}},24768:function(e,t,l){"use strict";l.r(t);var i=l(24718),a=l(71310),r=l(79927),n=l(70526),s=l(88072);let o=(0,l(46757).default)(()=>l.e(66813).then(l.bind(l,93574)),{loadableGenerated:{webpack:()=>[93574]},ssr:!1,loading:()=>(0,i.jsx)(c,{})}),c=()=>{let[e,t]=(0,a.useState)(20),l=(0,n.Z)();return(0,a.useEffect)(()=>{l&&t(15)},[l]),(0,i.jsx)("button",{className:"inline-flex items-center justify-center whitespace-nowrap text-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-[16px] font-normal rounded-full bg-grayc4 text-c4 hover:text-c2 h-5 w-5 md:h-10 md:w-10",children:(0,i.jsx)(r.default,{className:"",size:e})})};t.default=e=>{let{productHandle:t,className:l,favClassName:r,unFavClassName:n,favIconColor:d,refresh:u,hearthsize:m=20,hideFlag:f=!0}=e,[h,x]=(0,a.useState)(!1),b=(0,s.Z)();return(0,a.useEffect)(()=>{b&&!h&&x(!0)},[b,h]),h?(0,i.jsx)(o,{productHandle:t,favClassName:r,unFavClassName:n,favIconColor:d,refresh:u,className:l,hearthsize:m,hideFlag:f}):(0,i.jsx)(c,{})}},98064:function(e,t,l){"use strict";l.r(t);var i=l(24718),a=l(48672);l(71310),t.default=e=>{let{score:t}=e;return(0,i.jsx)("div",{className:"flex",children:[0,1,2,3,4].map(e=>(0,i.jsx)(a.default,{className:"w-6 h-6",fillOpacity:1,fill:t>e?"#FFBC35":"#FFBC3555",stroke:"0"},e))})}},764:function(e,t,l){"use strict";var i=l(24718),a=l(46757);l(71310);var r=l(11913);let n=(0,a.default)(()=>Promise.resolve().then(l.bind(l,99457)),{loadableGenerated:{webpack:()=>[99457]},ssr:!1}),s=e=>{let{field:t,text:l,defaultLanguage:a}=e;switch(t.type){case"header":case"paragraph":return(0,i.jsx)("div",{className:"header"===t.type?"text-3xl font-semibold text-center":"",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.label}})});case"privacy":return(0,i.jsx)("div",{className:"text-sm text-gray-500",dangerouslySetInnerHTML:{__html:t.label}});case"checkbox":let r=Array.isArray(t.options)?t.options:JSON.parse(t.options||"[]");return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),r.map(e=>(0,i.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,i.jsx)("input",{type:"checkbox",id:e.key,name:t.key,value:e.key,className:"form-check-input"}),(0,i.jsx)("label",{htmlFor:e.key,className:"text-sm\n                                ",children:e.label})]},e.key))]});case"radio":let n=Array.isArray(t.options)?t.options:JSON.parse(t.options||"[]");return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),n.map(e=>(0,i.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,i.jsx)("input",{type:"radio",id:e.key,name:t.key,value:e.key,className:"form-check-input"}),(0,i.jsx)("label",{htmlFor:e.key,className:"text-sm\n                                ",children:e.label})]},e.key))]});case"select":return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("select",{id:t.key,name:t.key,className:"form-control w-full p-2 border rounded bg-white"})]});case"textarea":return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("textarea",{id:t.key,name:t.key,className:"form-control w-full p-2 border rounded min-h-[10rem]"})]});case"date":return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("div",{className:"w-full border rounded border-gray-300",children:(0,i.jsx)("input",{type:"text",placeholder:"th"===a?"วว/ดด/ปปปป":"DD/MM/YYYY",className:"w-full p-2 border-none"})})]});case"upload":return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("div",{className:"w-full border rounded border-gray-300",style:{border:"2px dashed #ccc",borderRadius:"8px",padding:"16px",textAlign:"center",backgroundColor:"#fafafa",cursor:"pointer"},children:(0,i.jsx)("div",{className:"w-full rounded",children:(0,i.jsx)("div",{style:{margin:0,fontWeight:400,fontSize:"1rem",lineHeight:1.5,letterSpacing:"0.00938em",color:"rgba(0, 0, 0, 0.6)"},children:"".concat(l.drag_drop_files," (").concat(l.max_file,": ").concat(t.limitFile||"Unlimited",")")})})})]});case"consent":let s=Array.isArray(t.options)?t.options:JSON.parse(t.options||"[]");return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{className:"block mb-2 text-base ".concat("radio"!==t.consentType?"text-center":""),children:[t.label," ",t.required&&"radio"===t.consentType&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),"radio"===t.consentType&&(0,i.jsx)("div",{children:s.map(e=>(0,i.jsxs)("div",{className:"flex items-center mb-2 space-x-2",children:[(0,i.jsx)("input",{type:"radio",id:e.key,name:t.key,value:e.key,className:"form-radio"}),(0,i.jsx)("label",{htmlFor:"".concat(e.key),className:"text-sm\n                                        ",children:e.label})]},e.key))})]});case"submit":return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)("button",{disabled:!0,className:"w-[50%] h-16 bg-blue-500 text-white font-bold py-2 px-4 roun
1ded hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 text-xl\n                        ",children:(0,i.jsx)("span",{className:"flex justify-center",children:t.label})})})});case"number":return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("input",{type:"number",id:t.key,name:t.key,className:"form-control w-full h-[40px] border p-2 rounded pl-2"})]})});default:return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t.key,className:"block mb-1 text-base font-normal",children:[t.label," ",t.required&&(0,i.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,i.jsx)("input",{type:t.type,id:t.key,name:t.key,className:"form-control w-full h-[40px] border p-2 rounded pl-2"})]})}};t.default=e=>{let{dynamicForm:t,recaptcha:l,text:a,score:o,googleReCaptchaKey:c,isPageSpeed:d,defaultLanguage:u,radiusStyle:m}=e,{hasMouseMoved:f}=(0,r.G)();return f?(0,i.jsx)(n,{dynamicForm:t,recaptcha:l,text:a,score:o,defaultLanguage:u,radiusStyle:m}):(0,i.jsx)(i.Fragment,{children:t.fields.map(e=>(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)("div",{className:"py-3 w-[600px]",children:(0,i.jsx)(s,{field:e,text:a,defaultLanguage:u})})},e.id))})}},60655:function(e,t,l){"use strict";l.r(t);var i=l(24718),a=l(46757),r=l(71310),n=l(29472);let s=(0,a.default)(()=>l.e(19793).then(l.bind(l,19793)),{loadableGenerated:{webpack:()=>[19793]},ssr:!1});t.default=e=>{var t;let{faqs:l,loc:a,pathName:o}=e,[c,d]=(0,r.useState)(l.menuList[0]),u=(0,r.useContext)(n.Z);return(0,i.jsxs)("div",{className:"flex flex-col sm:flex-row gap-10 min-h-96 px-4",children:[(0,i.jsx)("div",{className:"flex flex-col sm:w-80 hide-padding2",children:null===(t=l.menuList)||void 0===t?void 0:t.map((e,t)=>(0,i.jsx)("div",{onClick:()=>d(e),className:"text-base text-wrap text-start \n                    whitespace-pre-line border-b py-6 sm:p-6 cursor-pointer hover:opacity-80\n                    ".concat(c.id===e.id?"font-bold":"font-light"," dynamic-color"),style:{"--dynamic-color":(null==u?void 0:u.headingSub)||"#2c568a","--dynamic-hover-color":(null==u?void 0:u.headingSub)||"#2c568a","--dynamic-focus-color":(null==u?void 0:u.headingSub)||"#2c568a"},children:e.attributes.displayName},e.id))}),(0,i.jsx)("div",{className:"hidden sm:flex border"}),(0,i.jsx)("div",{className:"flex flex-col w-full grow hide-padding dynamic-color",children:c?c.faqItems.map(e=>(0,i.jsx)(s,{item:e,open:!1},e.id)):null})]})}},95619:function(e,t,l){"use strict";var i=l(24718),a=l(46757),r=l(11913);let n=(0,a.default)(()=>Promise.resolve().then(l.bind(l,60655)),{loadableGenerated:{webpack:()=>[60655]},ssr:!1});t.default=e=>{var t;let{res:l,loc:a,pathName:s}=e,{hasMouseMoved:o}=(0,r.G)();return o?(0,i.jsx)(n,{faqs:l,loc:a,pathName:s}):(0,i.jsxs)(i.Fragment,{children:[null===(t=l.menuList)||void 0===t?void 0:t.map((e,t)=>(0,i.jsxs)(i.Fragment,{children:[e.attributes.displayName,e.faqItems.map(e=>(0,i.jsxs)(i.Fragment,{children:[e.attributes.displayName,e.attributes.description]}))]})),";"]})}},40057:function(e,t,l){"use strict";l.d(t,{default:function(){return f}});var i=l(24718),a=l(71310),r=l(4354),n=l(35801),s=l(37014),o=l(62625);let c=e=>{let[t,l]=(0,a.useState)(!0),[i,r]=(0,a.useState)(!0),n=(0,a.useCallback)(()=>{e&&e.scrollPrev()},[e]),s=(0,a.useCallback)(()=>{e&&e.scrollNext()},[e]),o=(0,a.useCallback)(e=>{l(!e.canScrollPrev()),r(!e.canScrollNext())},[]);return(0,a.useEffect)(()=>{e&&(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),{prevBtnDisabled:t,nextBtnDisabled:i,onPrevButtonClick:n,onNextButtonClick:s}},d=e=>{let{children:t,...l}=e;return(0,i.jsxs)("button",{"aria-label":"Previous",className:(0,n.cn)((0,r.d)({variant:"outline",size:"icon",className:"embla__button embla__button--prev h-8 w-8 rounded-full border-[1.5px]"})),type:"button",...l,children:[(0,i.jsx)(s.default,{className:"h-4 w-4"}),t]})},u=e=>{let{children:t,...l}=e;return(0,i.jsxs)("button",{"aria-label":"Next",className:(0,n.cn)((0,r.d)({variant:"outline",size:"icon",className:"embla__button embla__button--next h-8 w-8 rounded-full border-[1.5px]"})),type:"button",...l,children:[(0,i.jsx)(o.default,{className:"h-4 w-4"}),t]})};var m=l(87597),f=e=>{let{options:t,children:l,disabledPrevNextButtons:a}=e,[r,n]=(0,m.Z)(t),{prevBtnDisabled:s,nextBtnDisabled:o,onPrevButtonClick:f,onNextButtonClick:h}=c(n);return(0,i.jsxs)("section",{className:"m-auto",children:[(0,i.jsx)("div",{className:"overflow-hidden px-4 sm:px-8",ref:r,children:(0,i.jsx)("div",{className:"flex gap-4",children:l})}),a?null:(0,i.jsx)("div",{className:"w-full flex justify-between items-center mt-8",children:(0,i.jsxs)("div",{className:"flex w-full justify-end max-md:justify-center mr-36 max-md:mr-0 gap-3",children:[(0,i.jsx)(d,{onClick:f,disabled:s}),(0,i.jsx)(u,{onClick:h,disabled:o})]})})]})}},20693:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return u}});var i=l(24718),a=l(71310),r=l(87597),n=l(37014),s=l(62625),o=l(29472),c=l(37391),d=e=>{let{item:t}=e,l={OPEN_LINK_URL:"OPEN_LINK_URL",OPEN_POPUP_REFERRAL:"OPEN_POPUP_REFERRAL"},r=(0,a.useContext)(o.Z),n=()=>(0,i.jsxs)("div",{className:"flex flex-col justify-start items-center flex-shrink-0 gap-2 first:ml-auto last:mr-auto",style:{color:(null==r?void 0:r.text)||"#3d3d3d"},children:[t.image&&(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(t.image),"_resize.avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat((0,c.S)(t.image),"_resize.webp"),type:"image/webp"}),(0,i.jsx)("img",{src:t.image,alt:t.imageAlt,width:60,height:60,loading:"lazy"})]}),(0,i.jsxs)("div",{className:"flex flex-col",children:[t.title&&(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)("h5",{className:"line-clamp-2",children:t.title})}),t.desc&&(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)("p",{className:"font-light line-clamp-2",children:t.desc})})]})]});return t.actionFunc===l.OPEN_LINK_URL||t.actionFunc===l.OPEN_POPUP_REFERRAL?(0,i.jsx)("a",{href:t.href,target:"_self",children:n()}):(0,i.jsx)("div",{children:n()})},u=e=>{let{shortcutItems:t,priorityImage:l,session:a,loc:o}=e,[c,u]=(0,r.Z)({loop:!1,dragFree:!0});return(0,i.jsxs)("div",{className:"embla",children:[(0,i.jsx)("div",{className:"embla",ref:c,children:(0,i.jsxs)("div",{className:"embla__container",children:[t.map((e,t)=>(0,i.jsx)("div",{className:"pl-4",children:(0,i.jsx)(d,{item:e},t)},t)),(0,i.jsx)("div",{className:"lg:px-10 md:px-5 px-2"})]})}),(0,i.jsxs)("div",{className:"w-full flex justify-between items-center mt-10 lg:px-20 md:px-10 px-2 ",children:[(0,i.jsx)("div",{className:"w-1/3",children:" "}),(0,i.jsxs)("div",{className:"flex w-1/3 justify-end ",children:[(0,i.jsx)("button",{className:"embla__button embla__button--prev inline-flex items-center justify-center whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-[16px] font-normal border border-input bg-transparent hover:border-c2 hover:text-c2 active:bg-c2 active:text-c2-foreground h-8 w-8 rounded-full max-md:hidden relative transform left-0 top-0 translate-y-0 mx-1",onClick:()=>{u&&u.scrollPrev()},children:(0,i.jsx)(n.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{className:"embla__button embla__button--next inline-flex items-center justify-center whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-[16px] font-normal border border-input bg-transparent hover:border-c2 hover:text-c2 active:bg-c2 active:text-c2-foreground h-8 w-8 rounded-full -right-12 max-md:hidden relative transform left-0 top-0 translate-y-0 mx-1",onClick:()=>{u&&u.scrollNext()},children:(0,i.jsx)(s.default,{className:"h-5 w-5"})})]})]})]})}},64980:function(e,t,l){"use strict";var i=l(24718),a=l(46757),r=l(11913);let n=(0,a.default)(()=>Promise.resolve().then(l.bind(l,20693)),{loadableGenerated:{webpack:()=>[20693]},ssr:!1});t.default=e=>{let{children:t,shortcutItems:l,priorityImage:a,session:s,loc:o,isOverflow:c}=e,{hasMouseMoved:d}=(0,r.G)();return(0,i.jsx)(i.Fragment,{children:d?(0,i.jsx)(i.Fragment,{children:c?(0,i.jsx)(n,{shortcutItems:l,priorityImage:a,session:s,loc:o}):t}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("section",{className:"min-h-[300px]",children:l.map((e,t)=>{e.title,e.desc})})})})}},7572:function(e,t,l){"use strict";var i=l(24718),a=l(35801),r=l(90406);t.Z=e=>{let{className:t,style:l,children:n,disabledPadding:s,sectionWidth:o="CONTAINER",contentWidth:c="CONTAINER",noPadding:d=!1}=e;return(0,i.jsx)("div",{id:(0,r.E)("max-width-wrapper-base","base-".concat(o,"-").concat(c)),className:(0,a.cn)(d?"w-full px-4 lg:px-0":"w-full px-4 sm:px-10","CONTAINER"===o?"mx-auto max-w-screen-2xl":"",t,null!=s&&s?"sm:px-0 px-0":""),style:l,children:(0,i.jsx)("div",{id:(0,r.E)("max-width-wrapper-content","content-".concat(o,"-").concat(c)),className:(0,a.cn)("CONTAINER"===c?"mx-auto max-w-screen-2xl":""),children:n})})}},78631:function(e,t,l){"use strict";l.r(t);var i=l(24718),a=l(46757),r=l(71310),n=l(88072);let s=(0,a.default)(()=>Promise.all([l.e(83942),l.e(63573),l.e(56868),l.e(61682),l.e(60082),l.e(87753),l.e(85194),l.e(50867),l.e(74339),l.e(6360),l.e(75716)]).then(l.bind(l,75716)),{loadableGenerated:{webpack:()=>[75716]},ssr:!1});t.default=e=>{let{displayType:t,radiusStyle:l,appKey:a}=e,[o,c]=(0,r.useState)(!1),d=(0,n.p)();return(0,r.useEffect)(()=>{d&&c(!0)},[d]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{c(!0)},1e3);return()=>{clearTimeout(e)}},[]),o?(0,i.jsx)(s,{radiusStyle:l,appKey:a}):null}},66105:function(e,t,l){"use strict";var i=l(24718),a=l(71310),r=l(37014),n=l(62625),s=l(87597),o=l(51771);l(73429);var c=l(1596);t.Z=e=>{let{productList:t,level:l,shopCurrency:d,type:u}=e,[m,f]=(0,s.Z)({loop:!1,dragFree:!0}),[h,x]=(0,a.useState)(!0),[b,p]=(0,a.useState)(!0),v=(0,a.useCallback)(()=>{f&&(x(!f.canScrollPrev()),p(!f.canScrollNext()))},[f]);(0,a.useEffect)(()=>{f&&(v(),f.on("select",v),f.on("reInit",v))},[f,v]);let g=()=>{f&&f.scrollNext()},y=()=>{f&&f.scrollPrev()}
1,j=(0,c.l)(),w=j.productColumns,N=j.arrowPosition;return(0,i.jsxs)("div",{id:"product-highlight-component-carousel-container",className:"w-full relative",children:[(0,i.jsx)("div",{id:"product-highlight-component-carousel-embla",className:"embla",ref:m,children:(0,i.jsx)("div",{id:"product-highlight-component-carousel-embla-container",className:"embla__container",style:{display:"flex",gap:"16px"},children:t.map((e,t)=>e&&e.productVariant&&e.productVariant.length>0&&(0,i.jsx)("div",{id:"product-highlight-component-carousel-item-".concat(e.id),className:"".concat(6==w?"product-highlight-6":"product-highlight"," flex flex-col gap-5 flex-shrink-0"),children:(0,i.jsx)(o.default,{product:e,href:"/products/".concat(e.handle),level:l,priorityImage:t<2,shopCurrency:d,cardType:"TYPE_1"==u?o.E.GRADIENT:"TYPE_2"==u?o.E.SOLID:o.E.DEFAULT},e.id)},e.id))})}),"SIDE"==N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{id:"product-highlight-component-carousel-button-prev","aria-label":"Previous",className:" embla__button embla__button--prev inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border absolute left-0 top-1/2 -translate-y-1/2 -translate-x-1/2 shadow",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:y,disabled:h,children:(0,i.jsx)(r.default,{id:"product-highlight-component-carousel-button-prev-icon",className:"h-5 w-5"})}),(0,i.jsx)("button",{id:"product-highlight-component-carousel-button-next","aria-label":"Next",className:" embla__button embla__button--next inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border absolute right-0 top-1/2 -translate-y-1/2 translate-x-1/2 shadow",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:g,disabled:b,children:(0,i.jsx)(n.default,{id:"product-highlight-component-carousel-button-next-icon",className:"h-5 w-5"})})]}):(0,i.jsxs)("div",{id:"product-highlight-carousel-prev-next",className:"w-full flex justify-end mt-[20px]",children:[(0,i.jsx)("button",{id:"product-highlight-component-carousel-button-prev","aria-label":"Previous",className:" embla__button embla__button--prev inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border relative transform left-0 top-0 translate-y-0 mx-1",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:y,disabled:h,children:(0,i.jsx)(r.default,{id:"product-highlight-component-carousel-button-prev-icon",className:"h-5 w-5"})}),(0,i.jsx)("button",{id:"product-highlight-component-carousel-button-next","aria-label":"Next",className:" embla__button embla__button--next inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border absolute relative transform left-0 top-0 translate-y-0 mx-1",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:g,disabled:b,children:(0,i.jsx)(n.default,{id:"product-highlight-component-carou
1sel-button-next-icon",className:"h-5 w-5"})})]})]})}},72589:function(e,t,l){"use strict";var i=l(24718),a=l(66105),r=l(80227),n=l(53518);t.default=e=>{let{data:t,productList:l,level:s,shopCurrency:o}=e,c=(0,r.WZ)();return(t.attributes&&(t.attributes.title||t.attributes.description||t.attributes.buttonDisplayName)||l.length>0)&&(0,i.jsx)("div",{id:"product-highlight-component-type1-container-".concat(t.id),className:"w-full py-[40px] px-[30px] sm:px-[120px]",children:(0,i.jsxs)("div",{id:"product-highlight-component-type1-content",className:"w-full flex flex-col justify-center items-center gap-10",children:[t.attributes&&(t.attributes.title||t.attributes.description||t.attributes.buttonDisplayName)&&(0,i.jsxs)("div",{id:"product-highlight-component-type1-info",className:"w-full flex flex-col lg:flex-row justify-center lg:justify-between items-center gap-4",children:[(t.attributes.title||t.attributes.description)&&(0,i.jsxs)("div",{id:"product-highlight-component-type1-title-container",className:"w-full flex flex-col gap-2 items-center lg:items-start text-center lg:text-left",children:[t.attributes.title&&(0,i.jsx)("h2",{id:"product-highlight-component-type1-title",className:"lg:text-[2.5rem] text-[2rem] font-medium",style:{color:"#54301A"},children:t.attributes.title}),t.attributes.description&&(0,i.jsx)("p",{id:"product-highlight-component-type1-description",className:"text-base font-normal",style:{color:"#54301A"},children:t.attributes.description})]}),t.attributes.buttonDisplayName&&(0,i.jsx)("a",{id:"product-highlight-component-type1-button-link",href:t.attributes.buttonLinkUrl||"","aria-label":"button",children:(0,i.jsx)("button",{id:"product-highlight-component-type1-button","aria-label":"Link Button",className:"min-w-[221px] min-h-[60px] w-fit h-fit py-[8px] pl-[40px] pr-[8px] font-medium border-solid border-2 dynamic-bg dynamic-color dynamic-border",style:{"--dynamic-bg":"#FFC20E","--dynamic-hover-bg":"#FFF200","--dynamic-color":"#54301A","--dynamic-hover-color":"#54301A","--dynamic-focus-color":"#54301A","--dynamic-hover-focus-color":"#54301A","--dynamic-border":"#FFFFFF","--dynamic-hover-border":"#FFFFFF",borderRadius:(0,r.OZ)(c)},children:(0,i.jsxs)("div",{id:"product-highlight-component-type1-button-content",className:"flex flex-row gap-2 items-center justify-between",children:[t.attributes.buttonDisplayName,(0,i.jsx)(n.Z,{id:"product-highlight-component-type1-button-arrow"})]})})})]}),l.length>0&&(0,i.jsx)(a.Z,{productList:l,level:s,shopCurrency:o,type:"TYPE_1"})]})})}},22011:function(e,t,l){"use strict";var i=l(24718),a=l(66105),r=l(80227),n=l(53518);t.default=e=>{let{data:t,productList:l,level:s,shopCurrency:o}=e,c=(0,r.WZ)();return(t.attributes&&(t.attributes.title||t.attributes.description||t.attributes.buttonDisplayName)||l.length>0)&&(0,i.jsx)("div",{id:"product-highlight-component-type2-container-".concat(t.id),className:"w-full py-[40px] px-[30px] sm:px-[120px]",style:{background:"linear-gradient(180deg, #FFC20E 0%, #FFFFFF 100%)"},children:(0,i.jsxs)("div",{id:"product-highlight-component-type2-content",className:"w-full flex flex-col justify-center items-center gap-10",children:[t.attributes&&(t.attributes.title||t.attributes.description)&&(0,i.jsxs)("div",{id:"product-highlight-component-type2-title-container",className:"w-full flex flex-col items-center text-center",children:[t.attributes.title&&(0,i.jsx)("h2",{id:"product-highlight-component-type2-title",className:"lg:text-[4rem] text-[3rem] font-medium",style:{color:"#54301A"},children:t.attributes.title}),t.attributes.description&&(0,i.jsx)("p",{id:"product-highlight-component-type2-description",className:"text-base font-normal",style:{color:"#54301A"},children:t.attributes.description})]}),l.length>0&&(0,i.jsx)(a.Z,{productList:l,level:s,shopCurrency:o,type:"TYPE_2"}),t.attributes&&t.attributes.buttonDisplayName&&(0,i.jsx)("div",{id:"product-highlight-component-type2-button-container",className:"w-full flex justify-center items-center",children:(0,i.jsx)("a",{id:"product-highlight-component-type2-button-link",href:t.attributes.buttonLinkUrl||"","aria-label":"button",children:(0,i.jsx)("button",{id:"product-highlight-component-type2-button",className:"min-w-[221px] min-h-[60
1px] w-fit h-fit py-[8px] pl-[40px] pr-[8px] font-medium border-solid border-2 dynamic-bg dynamic-color dynamic-border","aria-label":"Link Button",style:{"--dynamic-bg":"#FFC20E","--dynamic-hover-bg":"#FFF200","--dynamic-color":"#54301A","--dynamic-hover-color":"#54301A","--dynamic-focus-color":"#54301A","--dynamic-hover-focus-color":"#54301A","--dynamic-border":"#FFFFFF","--dynamic-hover-border":"#FFFFFF",borderRadius:(0,r.OZ)(c)},children:(0,i.jsxs)("div",{id:"product-highlight-component-type2-button-content",className:"flex flex-row gap-2 items-center justify-between",children:[t.attributes.buttonDisplayName,(0,i.jsx)(n.Z,{id:"product-highlight-component-type2-button-arrow"})]})})})})]})})}},97628:function(e,t,l){"use strict";l.d(t,{default:function(){return k}});var i=l(24718),a=l(71310),r=l(35801),n=l(37014),s=l(62625),o=l(6128),c=l(87597),d=l(70526),u=l(29472),m=l(85038);let f=e=>{let{index:t,url:l,onClick:n,selected:s,imagesAlt:o}=e,c=(0,a.useRef)(null),d=(0,a.useContext)(u.Z);return(0,a.useEffect)(()=>{s&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[s]),(0,i.jsx)("div",{ref:c,style:{borderColor:(null==d?void 0:d.buttonBgNormal)||"#009eca"}
1,className:(0,r.cn)("bg-grayc4 rounded-xl p-2 h-full aspect-square",s&&"border-2 border-c2"),children:(0,i.jsx)(m.Z,{src:l,alt:o?o[t]:"product image ".concat(t+1),width:80,height:80,className:"w-full h-full object-contain hover:cursor-pointer",loading:"lazy",preferResize:!0,onClick:n})})};var h=e=>{let{children:t,imagesUrl:l,currentImageUrl:r,setSelectedImage:u,imagesAlt:m,imageAlt:h}=e,x=l.findIndex(e=>e===r),[b,p]=(0,a.useState)(x<0?0:x),[v,g]=(0,c.Z)({loop:!1}),y=(0,d.Z)(),j=(0,a.useCallback)(()=>{g&&p(g.selectedScrollSnap())},[g]);(0,a.useEffect)(()=>{g&&g.on("select",j)},[g,j]),(0,a.useEffect)(()=>{let e=l.findIndex(e=>e===r),t=e>=0?e:0;p(t),g&&g.scrollTo(t)},[r,l,g]);let w=e=>{p(e),g&&g.scrollTo(e)};return l&&0!==l.length?(0,i.jsxs)("div",{className:"flex gap-5 w-full",children:[!y&&(0,i.jsx)("div",{className:"w-24 xl:flex hidden max-h-[570px] h-full flex-shrink-0 overflow-y-auto scrollbar-hide",children:(0,i.jsx)("div",{className:"flex flex-col gap-4",children:l.map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(f,{index:t,url:e,onClick:()=>w(t),selected:t===b,imagesAlt:m})},t))})}),(0,i.jsxs)("div",{className:"flex flex-col w-full",children:[(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)("div",{className:"embla",ref:v,children:[(0,i.jsx)("div",{className:"embla__container",children:l.map((e,t)=>(0,i.jsx)("div",{className:"embla__slide bg-grayc4 md:rounded-xl rounded-none aspect-square",children:(0,i.jsx)(o.Z,{className:"w-full h-full object-contain",imageUrl:e,priority:0===t,imageAlt:m?m[t]:h,setSelectedImage:u})},t))}),(0,i.jsxs)("div",{className:"absolute bottom-5 right-5 flex gap-4",children:[(0,i.jsx)("button",{"aria-label":"Previous",className:"embla__button embla__button--prev flex items-center justify-center rounded-full w-8 h-8 text-c4 bg-white disabled:text-grayc3",onClick:()=>{if(g&&b>0){let e=b-1;g.scrollTo(e),p(e)}},disabled:0===b,children:(0,i.jsx)(n.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{"aria-label":"Next",className:"embla__button embla__button--next flex items-center justify-center rounded-full w-8 h-8 text-c4 bg-white disabled:text-grayc3",onClick:()=>{if(g&&b<l.length-1){let e=b+1;g.scrollTo(e),p(e)}},disabled:b===l.length-1,children:(0,i.jsx)(s.default,{className:"h-5 w-5"})})]})]})}),t]})]}):(0,i.jsx)("div",{children:"No Image"})},x=l(83125),b=l(27328),p=l(11913),v=l(46757),g=l(98064),y=l(71294),j=l(90406);let w=(0,v.default)(()=>Promise.all([l.e(93108),l.e(62889)]).then(l.bind(l,93862)),{loadableGenerated:{webpack:()=>[93862]},ssr:!1});var N=e=>{var t,l,r,n,s;let{product:o,promotionVariantProduct:c,startVariantId:d,onSelectedVariantIndex:m,level:f,text:h,loc:x,productContactForm:b,priorityContent:v,enableCompareButton:N=!1,radiusStyle:k}=e,{hasMouseMoved:C}=(0,p.G)(),P=(0,a.useContext)(u.Z);return C||v?(0,i.jsx)(w,{product:o,promotionVariantProduct:c,startVariantId:d,onSelectedVariantIndex:m,level:f,text:h,loc:x,productContactForm:b,enableCompareButton:N,radiusStyle:k}):(0,i.jsx)("section",{children:(0,i.jsxs)("div",{className:"flex flex-col gap-5",id:(0,j.E)("product-header-detail-loader","product-header-detail-loader"),children:[(0,i.jsxs)("div",{className:"flex flex-col gap-5",id:(0,j.E)("product-header-detail-loader-title","product-header-detail-loader-title"),children:[(0,i.jsx)("h1",{className:"text-2xl font-normal",style:{color:(null==P?void 0:P.headingMain)||"#254b7c"},id:(0,j.E)("product-header-detail-loader-title-text","product-header-detail-loader-title-text"),children:null!==(r=null===(t=o.attributes)||void 0===t?void 0:t.displayName)&&void 0!==r?r:""}),(0,i.jsx)("div",{id:(0,j.E)("product-header-detail-loader-title-description","product-header-detail-loader-title-description"),className:"font-light text-sm",style:{color:(null==P?void 0:P.text)||"#3d3d3d"},dangerouslySetInnerHTML:{__html:null!==(n=null===(l=o.attributes)||void 0===l?void 0:l.description)&&void 0!==n?n:""}})]}),(0,i.jsxs)("div",{className:"flex justify-between items-center",id:(0,j.E)("product-header-detail-loader-rating","product-header-detail-loader-rating"),children:[(0,i.jsx)(g.default,{score:null!==(s=o.averageRating)&&void 0!==s?s:0}),(0,i.jsx)("div",{className:"flex gap-5 h-10",children:(0,i.jsx)("div",{className:"inline-flex items-center justify-center whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-[16px] font-normal rounded-full bg-grayc4 text-c4 hover:text-c2 h-10 w-10 cursor-pointer",children:(0,i.jsx)(y.default,{size:20})})})]})]})})},k=e=>{let{allVariantProduct:t,promotionVariantProduct:l,level:r,text:n,loc:s,productC
1ontactForm:o,priorityContent:c,enableCompareButton:d=!1,radiusStyle:m}=e,f=t.productVariant.filter(e=>!e.enableInFrontEnd&&e.featuredImageUrl!==t.featuredImageUrl).map(e=>e.featuredImageUrl),[v,g]=(0,a.useState)(null),y={...t,productVariant:t.productVariant.filter(e=>e.enableInFrontEnd),imagesUrl:t.imagesUrl.filter(e=>!f.includes(e))},w=new Intl.NumberFormat("th",{minimumFractionDigits:0,maximumFractionDigits:2}),k=(0,x.useSearchParams)().get("variant"),C=k?y.productVariant.findIndex(e=>e.id===k):0,[P,_]=(0,a.useState)(y.featuredImageUrl),[S,E]=(0,a.useState)(y.imagesAlt.length>0?y.imagesAlt[C]:"product-".concat(y.id)),[F,T]=(0,a.useState)(y.productVariant.length>0?y.productVariant[C].weight:0);w.format(null!=F?F:0);let I=()=>{g(null)},{hasMouseMoved:B}=(0,p.G)();return(0,a.useContext)(u.Z),(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",id:(0,j.E)("product-header-info","product-header-info"),children:[(0,i.jsx)(h,{imagesUrl:y.imagesUrl,imagesAlt:y.imagesAlt,imageAlt:S,currentImageUrl:P,setSelectedImage:g}),(0,i.jsx)("div",{className:"w-full px-4 md:px-0",id:(0,j.E)("product-header-detail","product-header-detail"),children:(0,i.jsx)(N,{product:y,promotionVariantProduct:l,startVariantId:k,onSelectedVariantIndex:e=>{_(y.productVariant[e].featuredImageUrl),T(y.productVariant[e].weight),E(y.imagesAlt[e]||"product-".concat(y.id))},level:r,text:n,loc:s,productContactForm:o,priorityContent:c,enableCompareButton:d,radiusStyle:m})}),B&&(0,i.jsx)(i.Fragment,{children:v&&(0,i.jsx)("div",{id:(0,j.E)("product-header-info-modal","product-header-info-modal"),className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50",style:{zIndex:9999},onClick:I,children:(0,i.jsxs)("div",{className:"relative bg-white p-4 rounded-lg",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"absolute top-2 right-2 text-xl font-bold",onClick:I,children:(0,i.jsx)("img",{src:b.CW+"icon_close.png",alt:"icon_close",width:24,height:24,style:{width:"100%",height:"100%"},className:"cursor-pointer"})}),(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:"".concat(v,"_resize.avif"),type:"image/avif",media:"(max-width: 1023px)"}),(0,i.jsx)("source",{srcSet:"".concat(v,"_resize.webp"),type:"image/webp",media:"(max-width: 1023px)"}),(0,i.jsx)("source",{srcSet:"".concat(v,".avif"),type:"image/avif"}),(0,i.jsx)("source",{srcSet:"".concat(v,".webp"),type:"image/webp"}),(0,i.jsx)("img",{src:"".concat(v,".webp"),alt:"Large view",width:512,height:512,className:"h-full w-full object-contain",loading:"lazy",onClick:e=>e.stopPropagation()})]})]})})})]})}},6128:function(e,t,l){"use strict";var i=l(24718);l(71310);var a=l(85038);t.Z=e=>{let{imageUrl:t,className:l,priority:r,setSelectedImage:n,imageAlt:s}=e,o=e=>{n&&n(e)},c=t.substring(0,t.lastIndexOf("."));return(0,i.jsx)(a.Z,{src:t,alt:s||"Product image",width:480,height:480,className:l,loading:r?"eager":"lazy",onClick:()=>o(c)})}},84858:function(e,t,l){"use strict";l.d(t,{default:function(){return u}});var i=l(24718),a=l(46757),r=l(6128),n=l(29472),s=l(71310),o=e=>{let{children:t,imageUrl:l,weightshow:a,text:o,imagePriority:c,imageAlt:d}=e;return(0,s.useContext)(n.Z),(0,i.jsxs)("div",{className:"flexflex-col justify-center  p-0",children:[(0,i.jsx)("div",{className:" relative  rounded-xl bg-grayc4 2xl:min-w-[30rem] xl:min-w-[25rem] md:min-w-[20rem]",children:(0,i.jsx)(r.Z,{imageUrl:null!=l?l:"",className:"object-contain",priority:c,imageAlt:d})}),t]})},c=l(91883);let d=(0,a.default)(()=>Promise.all([l.e(10428),l.e(94379),l.e(34217),l.e(20292),l.e(46099),l.e(6539),l.e(34118),l.e(72420),l.e(40553),l.e(53483),l.e(93108),l.e(79727)]).then(l.bind(l,95654)),{loadableGenerated:{webpack:()=>[95654]},ssr:!1});var u=e=>{let{product:t,text:l,imagePriority:a,loc:r,shopCurrency:n,enableCompareButton:u=!1,radiusStyle:m}=e,[f,h]=(0,s.useState)(t.productVariant.length>0?t.productVariant[0].featuredImageUrl:t.featuredImageUrl),x=t.imagesUrl.findIndex(e=>e===f),b=t.imagesAlt[x]||"product-".concat(t.id),[p,v]=(0,s.useState)(t.productVariant.length>
10?t.productVariant[0].weight:0),[g,y]=(0,s.useState)(!1);return(0,i.jsxs)("div",{className:"md:flex justify-start md:items-start p-2 gap-5 rounded-2xl my-2",children:[(0,i.jsx)(o,{imageUrl:f,weightshow:(0,c.w)(null!=p?p:0),text:l,imagePriority:a,imageAlt:b}),(0,i.jsx)("div",{className:"mt-5 md:mt-0"}),(0,i.jsx)("div",{className:g?"w-full sm: min-h-500":"w-full min-h-500",children:(0,i.jsx)(d,{product:t,onSelectedVariantIndex:e=>{h(t.productVariant[e].featuredImageUrl),v(t.productVariant[e].weight)},onLoad:()=>y(!0),text:l,loc:r,shopCurrency:n,enableCompareButton:u,radiusStyle:m})})]})}},90538:function(e,t,l){"use strict";var i=l(24718);l(71310);var a=l(11913),r=l(84858);t.default=e=>{var t,l;let{product:n,text:s,imagePriority:o,loc:c,shopCurrency:d,enableCompareButton:u=!1,radiusStyle:m}=e,{hasMouseMoved:f}=(0,a.G)();return f||o?(0,i.jsx)("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm w-full md:rounded-3xl",children:(0,i.jsx)(r.default,{product:n,text:s,imagePriority:o,loc:c,shopCurrency:d,enableCompareButton:u,radiu
1sStyle:m})}):(0,i.jsxs)(i.Fragment,{children:[null===(t=n.attributes)||void 0===t?void 0:t.displayName,null===(l=n.attributes)||void 0===l?void 0:l.description]})}},40155:function(e,t,l){"use strict";var i=l(24718),a=l(71310),r=l(87597),n=l(37014),s=l(62625),o=l(80227),c=l(1596),d=l(29472),u=l(51771);l(91446),t.default=e=>{var t;let{product:l,level:m,shopCurrency:f}=e,[h,x]=(0,r.Z)({loop:!1,dragFree:!0}),[b,p]=(0,a.useState)(!0),[v,g]=(0,a.useState)(!0),y=(0,a.useCallback)(()=>{x&&(p(!x.canScrollPrev()),g(!x.canScrollNext()))},[x]);(0,a.useEffect)(()=>{x&&(y(),x.on("select",y),x.on("reInit",y))},[x,y]);let j=()=>{x&&x.scrollNext()},w=()=>{x&&x.scrollPrev()},N=(0,c.l)();(0,o.WZ)();let k=(0,a.useContext)(d.Z),C=null!==(t=null==N?void 0:N.productCardType)&&void 0!==t?t:"TYPE_1",P=N.productColumns;return(0,i.jsxs)("div",{id:"product-related-carousel-container",className:"w-full relative",children:[(0,i.jsx)("div",{id:"product-related-carousel-embla",className:"embla",ref:h,children:(0,i.jsx)("div",{id:"product-related-carousel-embla-container",className:"embla__container",style:{display:"flex",gap:"16px"},children:l.map((e,t)=>e&&e.productVariant&&e.productVariant.length>0&&(0,i.jsx)("div",{id:"product-related-carousel-item-".concat(e.id),className:"".concat(6===P?"product-related-6":"product-related"," flex flex-col gap-5 flex-shrink-0"),children:(0,i.jsx)(u.default,{product:e,href:"/products/".concat(e.handle),level:m,priorityImage:t<2,shopCurrency:f,cardType:"TYPE_1"==C?u.E.DEFAULT:"TYPE_2"==C?u.E.GRADIENT:"TYPE_3"==C?u.E.BUTTON_BESIDE_PRICE:"TYPE_5"==C?u.E.BORDER_GRADIENT_SHORT_DESC:u.E.DEFAULT},e.id)},e.id))})}),l.length>P&&("SIDE"==N.arrowPosition?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{"aria-label":"Previous",className:" embla__button embla__button--prev inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border absolute left-0 top-1/2 -translate-y-1/2 -translate-x-1/2 shadow",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:w,disabled:b,children:(0,i.jsx)(n.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{"aria-label":"Next",className:" embla__button embla__button--next inline-flex items-center justify-center whitespace-nowrap  ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2  focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50  text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden dynamic-bg dynamic-color  dynamic-border absolute right-0 top-1/2 -translate-y-1/2 translate-x-1/2 shadow",style:{"--dynamic-bg":"#ffffff","--dynamic-hover-bg":"#ffffff","--dynamic-border":"#B3B3B3","--dynamic-hover-border":"#FFC20E","--dynamic-color":"#5B595A","--dynamic-hover-color":"#5B595A","--dynamic-focus-color":"#5B595A","--dynamic-hover-focus-color":"#5B595A"},onClick:j,disabled:v,children:(0,i.jsx)(s.default,{className:"h-5 w-5"})})]}):(0,i.jsxs)("div",{id:"product-related-carousel-prev-next",className:"w-full flex justify-end mt-[20px]",children:[(0,i.jsx)("button",{"aria-label":"Previous",className:"\n                            embla__button embla__button--prev inline-flex items-center justify-center \n                            whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none \n                            focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none \n                            disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden \n                            dynamic-bg dynamic-color dynamic-border relative transform left-0 top-0 translate-y-0 mx-1",style:{"--dynamic-bg":(null==k?void 0:k.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==k?void 0:k.buttonBgHover)||"#254b7c","--dynamic-border":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==k?void 0:k.buttonTextHover)||"#ffffff","--dynamic-color":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==k?void 0:k.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==k?void 0:k.buttonTextHover)||"#ffffff"},onClick:w,disabled:b,children:(0,i.jsx)(n.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{"aria-label":"Next",className:"\n                            embla__button embla__button--next inline-flex items-center justify-center \n                            whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none \n                            focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none \n                            disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full -right-12 max-md:hidden \n                            dynamic-bg dynamic-color dynamic-border relative transform left-0 top-0 translate-y-0 mx-1",style:{"--dynamic-bg":(null==k?void 0:k.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==k?void 0:k.buttonBgHover)||"#254b7c","--dynamic-border":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==k?void 0:k.buttonTextHover)||"#ffffff","--dynamic-color":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==k?void 0:k.buttonTextHover)||"#ffffff","--dynamic-focus-color":(null==k?void 0:k.buttonTextNormal)||"#ffffff","--dynamic-hover-focus-color":(null==k?void 0:k.buttonTextHover)||"#ffffff"},onClick:j,disabled:v,children:(0,i.jsx)(s.default,{className:"h-5 w-5"})})]}))]})}},28886:function(e,t,l){"use strict";var i=l(24718),a=l(46757);l(71310);var r=l(11913);let n=(0,a.default)(()=>Promise.all([l.e(83942),l.e(24038),l.e(56868),l.e(87753),l.e(40172),l.e(93108),l.e(1160)]).then(l.bind(l,1160)),{loadableGenerated:{webpack:()=>[1160]},ssr:!1});t.default=function(e){let{product:t,productTabNavigator:l,loc:a,text:s,level:o,shopCurrency:c,enableCompareButton:d,productSpecification:u,priorityContent:m,radiusStyle:f}=e,{hasMouseMoved:h}=(0,r.G)();return h||m?(0,i.jsx)(n,{product:t,productTabNavigator:l,loc:a,text:s,level:o,shopCurrency:c,enableCompareButton:d,productSpecification:u,radiu
1sStyle:f}):(0,i.jsx)("section",{children:(0,i.jsx)("div",{className:"flex flex-col gap-5",children:(0,i.jsx)("div",{className:"flex flex-col gap-5",children:l&&l.tabNavigationSections&&l.tabNavigationSections.length>0&&l.tabNavigationSections.map((e,t)=>(0,i.jsxs)("div",{className:"text-sm font-light",children:[(0,i.jsx)("h2",{className:"text-lg font-semibold",children:e.title}),(0,i.jsx)("p",{children:e.description}),e.tabNavigationComponentValue&&e.tabNavigationComponentValue.map((e,t)=>(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("p",{children:e.description}),"PRODUCT_LIST"===e.valueType&&e.tabNavigatorProductList&&e.tabNavigatorProductList.length>0&&e.tabNavigatorProductList.map((e,t)=>(0,i.jsx)("div",{className:"mt-1",children:(0,i.jsx)("p",{children:e.displayName})},t)),"SPECIFICATION"===e.valueType&&u&&u.length>0&&u.map((e,t)=>{var l,a,r,n,s,o;return(0,i.jsx)("div",{className:"mt-1",children:(0,i.jsxs)("p",{children:[(null===(a=e.attributes)||void 0===a?void 0:null===(l=a[0])||void 0===l?void 0:l.displayName)||"",": ",(null===(o=e.specificationValues)||void 0===o?void 0:null===(s=o[0])||void 0===s?void 0:null===(n=s.attributes)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.value)||""]})},t)})]},t))]},t))})})})}},12196:function(e,t,l){"use strict";l.d(t,{default:function(){return p}});var i=l(24718),a=l(71310),r=l(87597),n=l(37014),s=l(62625),o=l(11913),c=l(35547),d=l(29472),u=l(83125),m=l(35801),f=l(11624),h=l(37391),x=l(90406),b=e=>{var t,l;let{articleItem:r,priorityImage:n,formattedDate:s,loc:o}=e,{t:c}=(0,f.$)(o),b=(0,a.useContext)(d.Z),p=(0,u.usePathname)(),v=p.includes("/business")?"/business/blogs/editorial":"/blogs/editorial";return console.log("pathname in article card default: ",p),(0,i.jsxs)("div",{id:"article-carousel-embla-slide-".concat(r.id),className:"related-article w-full p-0 flex flex-col items-start h-full rounded-lg overflow-hidden",children:[(0,i.jsx)("a",{id:(0,x.E)("article-card-picture-link","article-card-picture-link-".concat(r.id)),href:"".concat(v,"/").concat(r.handle),className:"w-full h-auto",children:(0,i.jsxs)("picture",{id:(0,x.E)("article-card-picture","article-card-picture-".concat(r.id)),className:"block w-full h-auto",children:[(0,i.jsx)("source",{srcSet:""!=r.imageUrl?"".concat((0,h.S)(r.imageUrl),".avif"):"https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg",type:"image/avif"}),(0,i.jsx)("source",{srcSet:""!=r.imageUrl?"".concat((0,h.S)(r.imageUrl),".webp"):"https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg",type:"image/webp"}),(0,i.jsx)("img",{id:(0,x.E)("article-card-img","article-card-img-".concat(r.id)),src:r.imageUrl,alt:r.imageAlt||(null===(t=r.attributes)||void 0===t?void 0:t.title),width:388,height:200,className:(0,m.cn)("object-cover aspect-[19/10] rounded-lg w-full h-auto"),loading:n?"eager":"lazy",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src="https://dummyimage.com/388x200/e9e9e9/e9e9e9.jpg"}})]})}),(0,i.jsxs)("div",{id:(0,x.E)("article-card-content","article-card-content-".concat(r.id)),className:"flex flex-col items-start w-full h-auto gap-3 mt-4",style:{backgroundColor:(null==b?void 0:b.contentBg)||"#ffffff"},children:[(0,i.jsx)("p",{id:(0,x.E)("article-card-date-title","article-card-date-title-".concat(r.id)),className:"text-[16px] font-normal text-wrap text-ellipsis line-clamp-1",style:{color:(null==b?void 0:b.tableText)||"#747474"},children:s}),(0,i.jsx)("h2",{id:(0,x.E)("article-card-title","article-card-title-".concat(r.id)),className:"text-[18px] font-semibold text-wrap text-ellipsis line-clamp-2",children:null===(l=r.attributes)||void 0===l?void 0:l.title}),(0,i.jsx)("a",{id:(0,x.E)("article-card-link","article-card-link-".concat(r.id)),href:"".concat(v,"/").concat(r.handle),className:"text-[18px] font-semibold dynamic-color break-word overflow-hidden",style:{"--dynamic-color":(null==b?void 0:b.link)||"#006ef2","--dynamic-hover-color":(null==b?void 0:b.linkHover)||"#254b7c","--dynamic-focus-color":(null==b?void 0:b.linkHover)||"#254b7c",maxHeight:"calc(2 * 2.8rem)"},children:c("article.read_more")})]})]},r.id)};l(61655);var p=e=>{let{articles:t,priorityImage:l,loc:u}=e,m=(0,c.o)(),f=(null==m?void 0:m.articleCarouselColumns)||4,h=(null==m?void 0:m.arrowPosition)||"BOTTOM",x=(0,a.useContext)(d.Z),{hasMouseMoved:p}=(0,o.G)(),[v,g]=(0,r.Z)({loop:!1,dragFree:!0}),[y,j]=(0,a.useState)(!0),[w,N]=(0,a.useState)(!0),[k,C]=(0,a.useState)(!1),P=(0,a.useCallback)(()=>
1{if(!g)return;let e=g.canScrollPrev(),t=g.canScrollNext();j(!e),N(!t),C(e||t)},[g]);return(0,a.useEffect)(()=>{g&&(P(),g.on("select",P),g.on("reInit",P))},[g,P]),(0,i.jsxs)("div",{id:"article-carousel-container",className:"w-full relative",children:[(0,i.jsx)("div",{id:"article-carousel-embla",className:"embla",ref:v,children:(0,i.jsx)("div",{id:"article-carousel-embla-container",className:"embla__container","data-items-per-view":f,style:{display:"flex",gap:"16px","--items-per-view":f},children:t.map((e,t)=>{let a="";return p&&(a=new Date(e.publishedAt).toLocaleString("TH"==u?"th-TH":"en-GB",{year:"numeric",month:"long",day:"numeric"})),(0,i.jsx)(b,{articleItem:e,priorityImage:l,formattedDate:a,loc:u},t)})})}),k&&(0,i.jsxs)("div",{id:"article-carousel-prev-next",className:"w-full flex justify-end mt-[20px]",children:[(0,i.jsx)("button",{id:"article-carousel-prev-button","aria-label":"Previous",className:"\n                            embla__button embla__button--prev inline-flex items-center justify-center \n                            whitespace-nowrap ring-offset-background transition-colors focus:outline-none disabled:pointer-events-none \n                            disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full max-md:hidden \n                            dynamic-bg dynamic-color dynamic-border ".concat("SIDE"==h?"absolute left-0 top-1/2 -translate-y-[170%] -translate-x-1/2 shadow":"relative transform left-0 top-0 translate-y-0 mx-1"),style:{"--dynamic-bg":(null==x?void 0:x.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==x?void 0:x.buttonBgHover)||"#254b7c","--dynamic-border":(null==x?void 0:x.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==x?void 0:x.buttonTextHover)||"#ffffff","--dynamic-color":(null==x?void 0:x.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==x?void 0:x.buttonTextHover)||"#ffffff"},onClick:()=>{g&&g.scrollPrev()},disabled:y,children:(0,i.jsx)(n.default,{className:"h-5 w-5"})}),(0,i.jsx)("button",{id:"article-carousel-next-button","aria-label":"Next",className:"\n                            embla__button embla__button--next inline-flex items-center justify-center \n                            whitespace-nowrap ring-offset-background transition-colors focus:outline-none disabled:pointer-events-none \n                            disabled:opacity-50 text-base font-normal border bg-transparent h-10 w-10 rounded-full -right-12 max-md:hidden \n                            dynamic-bg dynamic-color dynamic-border ".concat("SIDE"==h?"absolute right-0 top-1/2 -translate-y-[170%] translate-x-1/2 shadow":"relative transform left-0 top-0 translate-y-0 mx-1"),style:{"--dynamic-bg":(null==x?void 0:x.buttonBgNormal)||"#009eca","--dynamic-hover-bg":(null==x?void 0:x.buttonBgHover)||"#254b7c","--dynamic-border":(null==x?void 0:x.buttonTextNormal)||"#ffffff","--dynamic-hover-border":(null==x?void 0:x.buttonTextHover)||"#ffffff","--dynamic-color":(null==x?void 0:x.buttonTextNormal)||"#ffffff","--dynamic-hover-color":(null==x?void 0:x.buttonTextHover)||"#ffffff"},onClick:()=>{g&&g.scrollNext()},disabled:w,children:(0,i.jsx)(s.default,{className:"h-5 w-5"})})]})]})}},40337:function(e,t,l){"use strict";var i=l(24718),a=l(2825),r=l(58960),n=l(11913),s=l(29472),o=l(71310);t.default=e=>{var t,l,c,d;let{children:u,articles:m,priorityImage:f,loc:h,text:x,radiusStyle:b}=e,{hasMouseMoved:p}=(0,n.G)(),v=(0,o.useContext)(s.Z);return(0,i.jsx)(i.Fragment,{children:p?(0,i.jsxs)(a.Carousel,{opts:{align:"start",dragFree:!0},className:"w-full ",children:[(0,i.jsx)(a.CarouselContent,{className:"w-full pl-4 ".concat(m.length<4&&"justify-center"),children:m.map((e,t)=>{let l=new Date(e.publishedAt).toLocaleString("TH"==h?"th-TH":"en-GB",{year:"numeric",month:"long",day:"numeric"});return(0,i.jsx)(a.CarouselItem,{className:"xl:basis-1/4 md:basis-1/3 xs:basis-1/2",children:(0,i.jsx)(r.ArticleCard,{article:e,display:"CARD",date:l})},t)})}),(0,i.jsxs)("div",{className:"w-full flex justify-between items-center mt-10 lg:px-20 md:px-10 px-2 ",children:[(0,i.jsx)("div",{className:"w-1/3",children:" "}),(0,i.jsx)("div",{className:"w-1/3 flex justify-center",children:(0,i.jsx)("a",{href:"/blogs/editorial",children:(0,i.jsx)("button",{className:"min-w-52 min-h-[48px] px-5 dynamic-bg dynamic-color text-center content-center",style:{"--dynamic-bg":v.buttonBgNormal||"#009eca","--dynamic-hover-bg":v.buttonBgHover||"#254b7c","--dynamic-color":v.buttonTextNormal||"#ffffff","--dynamic-hover-color":v.buttonTextHover||"#ffffff","--dynamic-focus-color":v.buttonTextHover||"#ffffff",borderTopLeftRadius:null!==(t=null==b?void 0:b.buttonRadiusTopLeft)&&void 0!==t?t:"6px",borderTopRightRadius:null!==(l=null==b?void 0:b.buttonRadiusTopRight)&&void 0!==l?l:"6px",borderBottomLeftRadius:null!==(c=null==b?void 0:b.buttonRadiusBottomLeft)&&void 0!==c?c:"6px",borderBottomRightRadius:null!==(d=null==b?void 0:b.buttonRadiusBottomRight)&&void 0!==d?d:"6px"},children:x.article_all})})}),(0,i.jsx)("div",{className:"flex w-1/3 justify-end ",children:m.length>4&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.CarouselPrevious,{className:"max-md:hidden relative transform  left-0 top-0 translate-y-0 mx-1 "}),(0,i.jsx)(a.CarouselNext,{className:"max-md:hidden relative transform   left-0 top-0 translate-y-0  mx-1 "})]})})]})]}):u})}},35311:function(e,t,l){"use strict";var i=l(24718),a=l(11913),r=l(71310);t.default=e=>{let{children:t,promotionData:l,variants:n}=e,{hasMouseMoved:s}=(0,a.G)();return s?t:(0,i.jsx)("section",{children:l.map((e,t)=>e.productVariant.filter(e=>n.includes(e.id)).map((e,t)=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("img",{alt:e.id})," ",(0,i.jsx)("br",{}),e.msProductHandle," ",(0,i.jsx)("br",{}),"price ",e.priceFull,"฿"]},t)))})}},10243:function(e,t,l){"use strict";var i=l(24718),a=l(71310),r=l(79927),n=l(70526),s=l(88072);let o=(0,l(46757).default)(()=>Promise.all([l.e(72420),l.e(74224)]).then(l.bind(l,93574)),{loadableGenerated:{webpack:()=>[93574]},ssr:!1,loading:()=>(0,i.jsx)(c,{})}),c=()=>{let[e,t]=(0,a.useState)(20),l=(0,n.Z)();return(0,a.useEffect)(()=>{l&&t(15)},[l]),(0,i.jsx)("button",{className:"inline-flex items-center justify-center whitespace-nowrap ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-[16px] font-normal rounded-full hover:text-c2 w-7 h-7 absolute top-2 right-2 bg-white text-c4 p-1.5",children:(0,i.jsx)(r.default,{className:"",size:e})})};t.default=e=>{let{productHandle:t,className:l,favClassName:r,unFavClassName:n,favIconColor:d,refresh:u,hearthsize:m=20,hideFlag:f=!0}=e,[h,x]=(0,a.useState)(!1),b=(0,s.Z)();return(0,a.useEffect)(()=>{b&&!h&&x(!0)},[b,h]),h?(0,i.jsx)(o,{productHandle:t,favClassName:r,unFavClassName:n,favIconColor:d,refresh:u,className:l,hearthsize:m,hideFlag:f}):(0,i.jsx)(c,{})}},6258:function(e,t,l){"use strict";var i=l(24718),a=l(11913);t.default=e=>{let{children:t,adsMediaData:l}=e,{hasMouseMoved:r}=(0,a.G)();return r?t:(0,i.jsx)("section",{children:l.map((e,t)=>(0,i.jsx)("img",{alt:e.dataId},t))})}},74727:function(e,t,l){"use strict";var i=l(24718),a=l(92595),r=l(71310),n=l(88072);let s=(0,l(46757).default)(()=>Promise.all([l.e(72107),l.e(68781)]).then(l.bind(l,60860)).then(e=>e.CustomTooltip),{loadableGenerated:{webpack:()=>[60860]},ssr:!1,loading:()=>(0,i.jsx)(a.default,{className:"fill-c2 text-white cursor-pointer",size:16})});t.default=e=>{let{text:t}=e,[l,o]=(0,r.useState)(!1),c=(0,n.Z)();return(0,r.useEffect)(()=>{c&&!l&&o(!0)},[c,l]),l?(0,i.jsx)(s,{text:t}):(0,i.jsx)(a.default,{className:"fill-c2 text-white cursor-pointer",size:16})}},2825:function(e,t,l){"use strict";l.r(t),l.d(t,{Carousel:function(){return m},CarouselContent:function(){return f},CarouselItem:function(){return h},CarouselNext:function(){return b},CarouselPrevious:function(){return x}});var i=l(24718),a=l(71310),r=l(87597),n=l(37014),s=l(62625),o=l(35801),c=l(4354);let d=a.createContext(null);function u(){let e=a.useContext(d);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=a.forwardRef((e,t)=>
1{let{orientation:l="horizontal",opts:n,setApi:s,plugins:c,className:u,children:m,...f}=e,[h,x]=(0,r.Z)({...n,axis:"horizontal"===l?"x":"y"},c),[b,p]=a.useState(!1),[v,g]=a.useState(!1),y=a.useCallback(e=>{e&&(p(e.canScrollPrev()),g(e.canScrollNext()))},[]),j=a.useCallback(()=>{null==x||x.scrollPrev()},[x]),w=a.useCallback(()=>{null==x||x.scrollNext()},[x]),N=a.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),j()):"ArrowRight"===e.key&&(e.preventDefault(),w())},[j,w]);return a.useEffect(()=>{x&&s&&s(x)},[x,s]),a.useEffect(()=>{if(x)return y(x),x.on("reInit",y),x.on("select",y),()=>{null==x||x.off("select",y)}},[x,y]),(0,i.jsx)(d.Provider,{value:{carouselRef:h,api:x,opts:n,orientation:l||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:w,canScrollPrev:b,canScrollNext:v},children:(0,i.jsx)("div",{ref:t,onKeyDownCapture:N,className:(0,o.cn)("relative",u),role:"region","aria-roledescription":"carousel",...f,children:m})})});m.displayName="Carousel";let f=a.forwardRef((e,t)=>{let{className:l,...a}=e,{carouselRef:r,orientation:n}=u();return(0,i.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,i.jsx)("div",{ref:t,className:(0,o.cn)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",l),...a})})});f.displayName="CarouselContent";let h=a.forwardRef((e,t)=>{let{className:l,...a}=e,{orientation:r}=u();return(0,i.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",l),...a})});h.displayName="CarouselItem";let x=a.forwardRef((e,t)=>{let{className:l,variant:a="outline",size:r="icon",...s}=e,{orientation:d,scrollPrev:m,canScrollPrev:f}=u();return(0,i.jsxs)(c.z,{ref:t,variant:a,size:r,className:(0,o.cn)("absolute  h-8 w-8 rounded-full","horizontal"===d?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",l),disabled:!f,onClick:m,...s,children:[(0,i.jsx)(n.default,{className:"h-5 w-5"}),(0,i.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});x.displayName="CarouselPrevious";let b=a.forwardRef((e,t)=>{let{className:l,variant:a="outline",size:r="icon",...n}=e,{orientation:d,scrollNext:m,canScrollNext:f}=u();return(0,i.jsxs)(c.z,{ref:t,variant:a,size:r,className:(0,o.cn)("absolute h-8 w-8 rounded-full","horizontal"===d?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",l),disabled:!f,onClick:m,...n,children:[(0,i.jsx)(s.default,{className:"h-5 w-5"}),(0,i.jsx)("span",{className:"sr-only",children:"Next slide"})]})});b.displayName="CarouselNext"},70526:function(e,t,l){"use strict";var i=l(71310);t.Z=()=>{let[e,t]=(0,i.useState)(null);return(0,i.useEffect)(()=>{{let e=()=>{t(window.innerWidth<=768)};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}},[]),e}},88072:function(e,t,l){"use strict";l.d(t,{p:function(){return a}});var i=l(71310);let a=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=()=>{t(!0)};return window.addEventListener("mousemove",e),window.addEventListener("touchmove",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e),window.removeEventListener("scroll",e)}},[]),e};t.Z=a},35547:function(e,t,l){"use strict";l.d(t,{ArticleLayoutProvider:function(){return n},o:function(){return s}});var i=l(24718),a=l(71310);let r=(0,a.createContext)({}),n=e=>{let{children:t,articleLayoutStyle:l}=e,[n,s]=(0,a.useState)({articlePageColumns:3,articlePageRows:3,articleCarouselColumns:4,arrowPosition:"BOTTOM"});return(0,a.useEffect)(()=>{l&&s(e=>{var t,i,a,r;return{articlePageColumns:null!==(t=l.articlePageColumns)&&void 0!==t?t:e.articlePageColumns,articlePageRows:null!==(i=l.articlePageRows)&&void 0!==i?i:e.articlePageRows,articleCarouselColumns:null!==(a=l.articleCarouselColumns)&&void 0!==a?a:e.articleCarouselColumns,arrowPosition:null!==(r=l.arrowPosition)&&void 0!==r?r:e.arrowPosition}})},[l]),(0,i.jsx)(r.Provider,{value:n,children:t})},s=()=>(0,a.useContext)(r)},19739:function(e,t,l){"use strict";l.d(t,{default:function(){return r}});var i=l(71310),a=l(83125);function r(e){let{inlineScripts:t=[],externalScripts:l=[]}=e,r=(0,a.usePathname)();return(0,i.useEffect)(()=>{t.forEach((e,t)=>{try{Function(e)()}catch(e){console.error("⚠️ Inline script error:",e)}}),l.forEach((e,t)=>{let l="editor-external-".concat(r,"-").concat(t),i=document.querySelector('script[data-editor-runner="'.concat(l,'"]'));i&&i.remove();let a=document.createElement("script");a.src=e,a.async=!0,a.dataset.editorRunner=l,document.body.appendChild(a)})},[r]),null}},6399:function(e,t,l){"use strict";var i=l(24718),a=l(88072),r=l(71310);let n=()=>(0,i.jsx)("div",{className:"bg-gray-100 h-full w-full rounded-3xl"});t.default=e=>{let{videoId:t,options:l}=e,[s,o]=(0,r.useState)(!1),c=(0,a.p)();return(0,r.useEffect)(()=>{c&&o(!0)},[c]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{o(!0)},5e3);return()=>clearTimeout(e)},[]),s?(0,i.jsx)("iframe",{src:t,title:null==l?void 0:l.alt,className:null==l?void 0:l.className,...(null==l?void 0:l.allowFullScreen)&&{allowFullScreen:null==l?void 0:l.allowFullScreen}}):n()}},27328:function(e,t,l){"use strict";l.d(t,{CW:function(){return i}});let i="/assets/icons/"},80287:function(){},64374:function(){},4092:function(){},86117:function(){},65918:function(){},14517:function(){},73429:function(){},91446:function(){}
1,61655:function(){}}]);
2//# sourceMappingURL=35636-64936335259b5d3b.js.map

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.