(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[581],{87697:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(85893),i=t(7547),o=t(48519),a=t.n(o),c=function(e){var n=e.children,t=e.className,o=new i.Z(a().container);return o.addIf(t,t),(0,r.jsx)("div",{className:o.toString(),children:n})}},4166:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r=t(85893),i=t(96156),o=t(11163),a=t(64593),c=t(95058),s=t.n(c),l=t(31566),u=t(72509),d=t(67294),p=t(41664),f=(t(89583),t(33545)),h=(t(21900),t(74771)),g=t(1654),v=t(25675),m={src:"/_next/static/image/public/images/logo/Logo-JTS-Final-min.2b0d7eb5fca8fbf1939fe06557d5a062.png",height:189,width:416,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR4nAGEAHv/AfBONgMB/v/9AAMCAg6xyf7WrXMACBoRQ/j490YEA/eEAfF0aAn/3dNs/wD/BAL/Afn6CALpw0IbgwH8/CH++/mPAe81AGQAAQD6/wEA8AEAABn/+AD5nEgrVg8BCEn9/fdtAfjMykAFKCrmAP39//zu7A8GICLu5t3PGfDp3zQqOlKltqw+6p7kOf0AAAAASUVORK5CYII="};function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=function(e){var n=e.isCustom,t=void 0!==n&&n,i=e.customWidth,o=void 0===i?60:i,a=e.customHeight,c=void 0===a?60:a,s=(0,g.Z)("(max-width: 1023px)"),l=(0,g.Z)("(min-width: 1024px)"),u=(0,g.Z)("(min-width: 1440px)"),d=s?110:200,p=s?50:90;t?(d=o,p=c):(l&&(d=150,p=68),u&&(d=200,p=90));var f={width:d,height:p,src:m,alt:"JTS-Brand",loading:"eager"};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.default,x({},f))})},j={src:"/_next/static/image/public/images/nav/mobile/hamburger.146cf8f7b13a57980b21ed80a18a15e9.png",height:40,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAMElEQVR42mMAgX8sEMiAA/wT/dfzrxcIe/6JQgSk/637twEI1/2TxhDA1IIJMKwFAFSfKn1z6rFAAAAAAElFTkSuQmCC"},A={src:"/_next/static/image/public/images/nav/mobile/close-black.5be591c460147e9eca2bea2e626f4778.png",height:40,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAVElEQVR42mMAAVUmIGRUYWaAAFVGBjgLLAvECaomqmIqeWAhFaCAionqCdXTKp4MQB5YGVD2tMoTVX2ICmYglafiqWKg0g5SgWYonKECtFYVJMsAABtoC9E+L6iRAAAAAElFTkSuQmCC"};function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n=e.type,t={width:40,height:40,src:"open"===(void 0===n?"open":n)?j:A,alt:"jts-hambuger",placeholder:"blur",loading:"eager"};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.default,_({},t))})},O={src:"/_next/static/image/public/images/nav/mobile/triangle.1cb00ddbb81fe749f46b15645361fe28.png",height:6,width:12,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAQAAAAZxLZ7AAAALklEQVR42hWJQQ4AMAjC8OGLO+/PQ6lNLAG5PeEH3LJ8E7hJkgyHNV8UhfwCrgUGNS+917uqRQAAAABJRU5ErkJggg=="},k={src:"/_next/static/image/public/images/nav/mobile/triangle-black.73bcce20fd69898a419eb81d6d7de94c.png",height:6,width:12,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAQAAAAZxLZ7AAAANElEQVR42iWJsQ0AIAzDwi2YMxHM/ExLaTNEsi0WPpzLjXeWJHYoG4azVWPy60zoLdXhFD06zRMXpNlicAAAAABJRU5ErkJggg=="};function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=function(e){var n=e.type,t={width:12,height:5,src:"black"===(void 0===n?null:n)?k:O,alt:"jts-triangle"};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.default,N({},t))})},I=t(56565),E=t.n(I),T=t(51436),M=t(17625),L=(t(53921),"hidden"),D=function(e){var n=e.isPreview,t=(e.navStaticColor,e.isHomePage,e.isFullColor),i=(0,o.useRouter)(),a=(0,d.useRef)(),c=(0,d.useState)(L),s=c[0],u=c[1],v=(0,l.ZP)(),m=v.locale,y=v.menuPrimary,x=m.toUpperCase(),j=(0,g.Z)("(max-width: 1023px)"),A=(0,d.useState)(0),w=A[0],_=(A[1],(0,d.useState)(!0)),O=_[0],k=(_[1],(0,d.useState)(!1)),S=k[0],N=k[1],I=(0,d.useState)(!1),D=I[0],Z=I[1],U=(0,d.useState)(!1),B=U[0],F=U[1],W=(0,f.ZP)({maxResults:5}),R=(W.query,W.results,W.search,W.clearSearch),z=(W.state,f.LE,function(){var e=window.pageYOffset;Z(e>=99),N(e>99)});function H(){document.body.removeEventListener("click",Y,!0)}function Y(e){e.composedPath().includes(a.current)||(u(L),R())}function $(e){var n=document.activeElement;"ArrowDown"===e.key&&(e.preventDefault(),"INPUT"===n.nodeName&&"P"!==n.nextSibling.children[0].nodeName?n.nextSibling.children[0].firstChild.firstChild.focus():n.parentElement.nextSibling?n.parentElement.nextSibling.firstChild.focus():n.parentElement.parentElement.firstChild.firstChild.focus()),"ArrowUp"===e.key&&(e.preventDefault(),"A"===n.nodeName&&n.parentElement.previousSibling?n.parentElement.previousSibling.firstChild.focus():n.parentElement.parentElement.lastChild.firstChild.focus())}(0,d.useEffect)((function(){return window.addEventListener("scroll",z),function(){return window.removeEventListener("scroll",z)}}),[w,O,z]),(0,d.useEffect)((function(){if(s!==L)return document.body.addEventListener("click",Y,!0),document.body.addEventListener("keydown",$),Array.from(a.current.elements).find((function(e){return"search"===e.type})).focus(),function(){document.body.removeEventListener("keydown",$),H()};H()}),[s]);var q=(0,d.useCallback)((function(e){27===e.keyCode&&(R(),u(L))}),[]),Q=function(e){i.lang!==e&&i.push(i.pathname,i.asPath,{locale:e})};(0,d.useEffect)((function(){return document.addEventListener("keydown",q,!1),function(){document.removeEventListener("keydown",q,!1)}}),[]);return j?(0,r.jsxs)("nav",{className:"".concat(E().navMobile," ").concat(D?E().navMobileScroll:""," ").concat(t?E().colorFull:""),children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",width:"110px"},children:(0,r.jsx)("a",{href:"TH"===x?"/th":"/",children:(0,r.jsx)(b,{customWidth:110,customHeight:50})})}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{style:{width:40,height:40},onClick:function(){return F(!B)},children:(0,r.jsx)(P,{})})}),(0,r.jsxs)("div",{className:"".concat(E().navMobileMenuWrap," ").concat(B?E().navMobileToggle:E().navMobileClose),children:[(0,r.jsx)("div",{className:E().hambugerClose,children:(0,r.jsx)("span",{onClick:function(){return F(!B)},children:(0,r.jsx)(P,{type:"close"})})}),(0,r.jsx)("ul",{className:E().menuList,children:null===y||void 0===y?void 0:y.map((function(e){var n=e.id,t=e.path,i=e.label,o=e.title,a=e.target,c=e.children,s=e.type,l=e.url;return(0,r.jsxs)("li",{className:E().menuItem,children:[!t.includes("http")&&!a&&("custom"===s?(0,r.jsxs)("a",{href:l,title:o,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c||c.length,null)]}):(0,r.jsx)(p.default,{href:t,children:(0,r.jsxs)("a",{title:o,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c||c.length,null)]})})),t.includes("http")&&(0,r.jsxs)("a",{href:t,title:o,target:a,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c||c.length,null)]}),(null===c||void 0===c?void 0:c.length)>0&&(0,r.jsx)("div",{id:"".concat(n),className:E().iconWrap,onClick:function(){return function(e){var n=document.getElementById("list-child-".concat(e));"block"===n.style.display?n.style.display="none":n.style.display="block"}(n)},children:(0,r.jsx)(M.G,{className:E().icon,icon:T.eW2,size:"sm"})}),(null===c||void 0===c?void 0:c.length)>0&&(0,r.jsx)("ul",{className:"".concat(E().menuItemChildWrap),id:"list-child-".concat(n),children:c.map((function(e){var n=e.id,t=e.path,i=e.label,o=e.title,a=e.target,c=e.type,s=e.url;return(0,r.jsxs)("li",{className:E().menuItemChild,children:[!t.includes("http")&&!a&&("custom"===c?(0,r.jsx)("a",{href:s,title:o,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:i}):(0,r.jsx)(p.default,{href:t,children:(0,r.jsx)("a",{title:o,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:i})})),t.includes("http")&&("custom"===c?(0,r.jsx)("a",{href:s,title:o,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:i}):(0,r.jsx)("a",{href:t,title:o,target:a,onClick:function(){return setTimeout((function(){return F(!B)}),300)},children:i}))]},n)}))})]},n)}))}),!n&&(0,r.jsxs)("div",{className:E().navLang,children:[(0,r.jsx)("span",{className:"".concat(E().navLangText," ").concat("TH"===x?E().navLangTextBold:""),onClick:function(){return Q("th")},children:"TH"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("span",{style:{marginLeft:"5px"},className:"".concat(E().navLangText," ").concat("EN"===x?E().navLangTextBold:""),onClick:function(){return Q("en")},children:"EN"})]})]})]}):(0,r.jsx)("nav",{className:"".concat(E().nav," ").concat(S?E().navScroll:""," ").concat(t?E().colorFull:""),children:(0,r.jsxs)(h.Z,{className:E().navSection,children:[(0,r.jsx)("div",{className:E().navBrandWrap,children:(0,r.jsx)("a",{href:"TH"===x?"/th":"/",children:(0,r.jsx)(b,{})})}),(0,r.jsxs)("div",{className:"".concat(E().navListMenuWrap," ").concat(S?E().navListMenuWrapScroll:""),children:[(0,r.jsx)("div",{children:!n&&(0,r.jsxs)("div",{className:E().navLang,children:[(0,r.jsx)("span",{className:"".concat(E().navLangText," ").concat("TH"===x?E().navLangTextBold:""),onClick:function(){return Q("th")},children:"TH"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("span",{style:{marginLeft:"5px"},className:"".concat(E().navLangText," ").concat("EN"===x?E().navLangTextBold:""),onClick:function(){return Q("en")},children:"EN"})]})}),(0,r.jsxs)("div",{className:"".concat(E().navMenuWrap," ").concat(S?E().navMenuWrapScroll:""),children:[(0,r.jsx)("ul",{className:E().navMenu,children:null===y||void 0===y?void 0:y.map((function(e){var n=e.id,t=e.path,i=e.label,o=e.title,a=e.target,c=e.children,s=e.type,l=e.url;return(0,r.jsxs)("li",{children:[!t.includes("http")&&!a&&("custom"===s?(0,r.jsxs)("a",{href:l,title:o,children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c?void 0:c.length)>0?(0,r.jsx)(C,{}):null]}):(0,r.jsx)(p.default,{href:t,children:(0,r.jsxs)("a",{title:o,children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c?void 0:c.length)>0?(0,r.jsx)(C,{}):null]})})),t.includes("http")&&("custom"===s?(0,r.jsxs)("a",{href:l,title:o,children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c?void 0:c.length)>0?(0,r.jsx)(C,{}):null]}):(0,r.jsxs)("a",{href:t,title:o,target:a,children:[(0,r.jsx)("span",{children:i})," ",(null===c||void 0===c?void 0:c.length)>0?(0,r.jsx)(C,{}):null]})),(null===c||void 0===c?void 0:c.length)>0&&(0,r.jsx)("ul",{className:E().navSubMenu,children:c.map((function(e){var n=e.id,t=e.path,i=e.label,o=e.title,a=e.target,c=e.type,s=e.url;return(0,r.jsxs)("li",{children:[!t.includes("http")&&!a&&("custom"===c?(0,r.jsx)("a",{href:s,title:o,children:i}):(0,r.jsx)(p.default,{href:t,children:(0,r.jsx)("a",{title:o,children:i})})),t.includes("http")&&("custom"===c?(0,r.jsx)("a",{href:s,title:o,children:i}):(0,r.jsx)("a",{href:t,title:o,target:a,children:i}))]},n)}))})]},n)}))}),false]})]})]})})},Z=t(62909),U=t.n(Z),B=function(e){var n=e.children;return(0,r.jsx)("main",{className:U().main,children:n})},F=t(87697),W=t(51417),R=t(84753),z=t(41399),H=t.n(z),Y={th:{address:{desktop:"\u0e40\u0e25\u0e02\u0e17\u0e35\u0e48 200 \u0e2b\u0e21\u0e39\u0e48 4 \u0e0a\u0e31\u0e49\u0e19 9 \u0e08\u0e31\u0e2a\u0e21\u0e34\u0e19 \u0e2d\u0e34\u0e19\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e0a\u0e31\u0e48\u0e19\u0e41\u0e19\u0e25 \u0e17\u0e32\u0e27\u0e40\u0e27\u0e2d\u0e23\u0e4c\n\u0e16\u0e19\u0e19\u0e41\u0e08\u0e49\u0e07\u0e27\u0e31\u0e12\u0e19\u0e30 \u0e15\u0e33\u0e1a\u0e25\u0e1b\u0e32\u0e01\u0e40\u0e01\u0e23\u0e47\u0e14 \u0e2d\u0e33\u0e40\u0e20\u0e2d\u0e1b\u0e32\u0e01\u0e40\u0e01\u0e23\u0e47\u0e14 \u0e08\u0e31\u0e07\u0e2b\u0e27\u0e31\u0e14\u0e19\u0e19\u0e17\u0e1a\u0e38\u0e23\u0e35 11120",mobile:"\u0e40\u0e25\u0e02\u0e17\u0e35\u0e48 200 \u0e2b\u0e21\u0e39\u0e48 4 \u0e0a\u0e31\u0e49\u0e19 9 \u0e08\u0e31\u0e2a\u0e21\u0e34\u0e19 \u0e2d\u0e34\u0e19\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e0a\u0e31\u0e48\u0e19\u0e41\u0e19\u0e25 \u0e17\u0e32\u0e27\u0e40\u0e27\u0e2d\u0e23\u0e4c\n\u0e16\u0e19\u0e19\u0e41\u0e08\u0e49\u0e07\u0e27\u0e31\u0e12\u0e19\u0e30 \u0e15\u0e33\u0e1a\u0e25\u0e1b\u0e32\u0e01\u0e40\u0e01\u0e23\u0e47\u0e14 \u0e2d\u0e33\u0e40\u0e20\u0e2d\u0e1b\u0e32\u0e01\u0e40\u0e01\u0e23\u0e47\u0e14\n\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e31\u0e14\u0e19\u0e19\u0e17\u0e1a\u0e38\u0e23\u0e35 11120"},cookiePolicy:"\u0e19\u0e42\u0e22\u0e1a\u0e32\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e38\u0e49\u0e01\u0e01\u0e35\u0e49",privacyPolicy:"\u0e04\u0e33\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e15\u0e31\u0e27"},en:{address:{desktop:"200 Moo 4, 9th Floor, Jasmine International Tower\nChaengwatana Road, Tambon Pakkret, Amphoe Pakkret, Nonthaburi 11120",mobile:"200 Moo 4, 9th Floor, Jasmine International Tower\nChaengwatana Road, Tambon Pakkret, Amphoe Pakkret\nNonthaburi 11120"},cookiePolicy:"Cookies Policy",privacyPolicy:"Privacy Notice"}},$=function(){var e,n=(0,g.Z)("(max-width: 768px)"),t=(0,l.ZP)(),i=t.locale,o=t.showUi,a=i.toLowerCase(),c=(0,l.ZP)(),s=c.siteData,u=c.menuFooter,d=(null===s||void 0===s?void 0:s.title)||"",f=Array.isArray(u)&&u.length>0,v="undefined"!==typeof(null===o||void 0===o?void 0:o.status)||!Number((null===o||void 0===o||null===(e=o.find((function(e){return"FOOTER_SOCIAL_LINK"===e.slug})))||void 0===e?void 0:e.is_show)||!0);return(0,r.jsxs)("footer",{className:H().footer,children:[f&&(0,r.jsx)(h.Z,{className:H().footerMenu,children:(0,r.jsxs)(F.Z,{className:H().footerMenuWrap,children:[(0,r.jsxs)("div",{className:H().footerMenuAddress,children:[(0,r.jsx)("h1",{children:(0,r.jsx)(b,{customWidth:120,customHeight:55,isCustom:!0})}),(0,r.jsx)(R.Z,{children:n?Y[a].address.mobile:Y[a].address.desktop})]}),(0,r.jsxs)("ul",{className:H().footerMenuColumns,children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("p",{className:H().footerMenuTitle,children:(0,r.jsx)("strong",{children:"Menu"})}),u&&(0,r.jsx)("ul",{className:H().footerMenuItems,children:null===u||void 0===u?void 0:u.map((function(e){var n=e.id,t=e.path,i=e.label,o=e.title,a=e.target;return(0,r.jsxs)("li",{children:[!t.includes("http")&&!a&&(0,r.jsx)(p.default,{href:t,children:(0,r.jsx)("a",{title:o,children:i})}),t.includes("http")&&(0,r.jsx)("a",{href:t,title:o,target:a,children:i})]},n)}))})]}),!v&&(0,r.jsxs)("li",{children:[(0,r.jsx)("p",{className:H().footerMenuTitle,children:(0,r.jsx)("strong",{children:"Follow Us"})}),(0,r.jsxs)("ul",{className:"".concat(H().footerMenuItems," ").concat(H().footerMenuItemSocial),children:[(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:"#",target:"_blank",children:[(0,r.jsx)("span",{className:H().socialIcon,children:(0,r.jsx)(M.G,{icon:W.AYu,size:"lg"})})," ",(0,r.jsx)("span",{className:H().title,children:"Facebook"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:"#",target:"_blank",children:[(0,r.jsx)("span",{className:H().socialIcon,children:(0,r.jsx)(M.G,{icon:W.mdU,size:"lg"})})," ",(0,r.jsx)("span",{className:H().title,children:"Twitter"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:"#",target:"_blank",children:[(0,r.jsx)("span",{className:H().socialIcon,children:(0,r.jsx)(M.G,{icon:W.Zzi,size:"lg"})})," ",(0,r.jsx)("span",{className:H().title,children:"Instagram"})]})})]})]})]})]})}),(0,r.jsx)(h.Z,{className:H().footerLegal,children:(0,r.jsxs)(F.Z,{className:H().footerLegelWrapper,children:[(0,r.jsxs)("p",{className:H().copyRight,children:["\xa9 ",(new Date).getFullYear(),". ",d,". All rights reserved."]}),(0,r.jsxs)("ul",{className:H().infomation,children:[(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{href:"/cookies-policy",children:(0,r.jsx)("a",{title:Y[a].textCookiePolicy,children:Y[a].cookiePolicy})})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{href:"/privacy-policy",children:(0,r.jsx)("a",{title:Y[a].textPrivacyPolicy,children:Y[a].privacyPolicy})})})]})]})})]})},q=t(37421),Q=t.n(q),G=t(47041),V=t(30381),J=t.n(V),K={th:{textBtn:"\u0e22\u0e2d\u0e21\u0e23\u0e31\u0e1a",textPolicy1:"\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e04\u0e38\u0e01\u0e01\u0e35\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e41\u0e25\u0e30\u0e1b\u0e23\u0e30\u0e2a\u0e1a\u0e01\u0e32\u0e23\u0e13\u0e4c\u0e17\u0e35\u0e48\u0e14\u0e35\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e28\u0e36\u0e01\u0e29\u0e32\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e38\u0e01\u0e01\u0e35\u0e49\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48",textPolicy2:"\u0e19\u0e42\u0e22\u0e1a\u0e32\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e38\u0e01\u0e01\u0e35\u0e49",textPolicy3:"\u0e41\u0e25\u0e30",textPolicy4:"\u0e04\u0e33\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e15\u0e31\u0e27",textPolicy5:"\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32"},en:{textBtn:"Accept",textPolicy1:"Our website uses cookies to enhance our website's performance and experience. You can find out more about our use of cookies in our",textPolicy2:"Cookie Policy",textPolicy3:"and",textPolicy4:"Privacy Notice"}},X=function(){var e=(0,l.ZP)().locale.toLowerCase(),n=(0,d.useState)((0,G.checkCookies)("accept_pdpa")),t=n[0],i=n[1];return(0,r.jsx)(r.Fragment,{children:!t&&(0,r.jsxs)("div",{className:Q().layoutPdpa,children:[(0,r.jsxs)("p",{children:[K[e].textPolicy1,(0,r.jsxs)("span",{children:[' "',(0,r.jsx)(p.default,{href:"/cookies-policy",children:(0,r.jsx)("a",{children:K[e].textPolicy2})}),'" ',K[e].textPolicy3," "]}),(0,r.jsxs)("span",{children:['"',(0,r.jsx)(p.default,{href:"/privacy-policy",children:(0,r.jsx)("a",{children:K[e].textPolicy4})}),'"',"th"===e?" ".concat(K[e].textPolicy5):"."]})]}),(0,r.jsx)("div",{className:Q().btnAccept,children:(0,r.jsx)("button",{onClick:function(){if(!(0,G.checkCookies)("accept_pdpa")){var e=J()().add(1,"years").diff(J()().startOf("day"),"seconds");(0,G.setCookies)("accept_pdpa",!0,{maxAge:e}),i(!0)}},children:K[e].textBtn})})]})})};function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te=function(e){var n=e.children,t=e.isPreview,i=void 0!==t&&t,c=e.isHomePage,p=void 0!==c&&c,f=e.isFullColor,h=void 0!==f&&f,g=e.isSplash,v=void 0!==g&&g,m=(0,o.useRouter)().asPath,y=(0,l.ZP)(),x=y.homepage,b=y.metadata,j=void 0===b?{}:b,A=(0,d.useState)(!!(0,G.checkCookies)("accept_pdpa")&&(0,G.getCookie)("accept_pdpa")),w=A[0],_=(A[1],(0,d.useState)(!0)),P=_[0],O=_[1];null!==j&&void 0!==j&&j.og||(j.og={}),j.og.url="".concat(x).concat(m);var k=ne({defaultTitle:j.title,titleTemplate:"%s"},(0,u.iB)(j,{setTitle:!1,link:[{rel:"alternate",type:"application/rss+xml",href:"/feed.xml"},{rel:"apple-touch-icon",sizes:"180x180",href:"/jts-ico.ico"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/jts-ico.ico"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/jts-ico.ico"},{rel:"manifest",href:"/site.webmanifest"}]}));(0,d.useEffect)((function(){document.addEventListener("contextmenu",(function(e){e.preventDefault()}))}),[]),(0,d.useEffect)((function(){O(!1)}),[w]);var S=function(e){return e.preventDefault(),!1},N=function(e){return e.preventDefault(),!1};return v?(0,r.jsxs)("div",{onCopy:S,onCut:N,children:[(0,r.jsx)(a.q,ne({},k)),(0,r.jsx)("div",{children:n})]}):(0,r.jsxs)("div",{className:s().layoutContainer,onCopy:S,onCut:N,children:[(0,r.jsx)(a.q,ne({},k)),(0,r.jsx)(D,{isHomePage:p,isFullColor:h,isPreview:i}),(0,r.jsx)(B,{children:n}),!w&&!P&&(0,r.jsx)(X,{}),(0,r.jsx)($,{})]})}},74771:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var r=t(96156),i=t(85893),o=t(17375),a=t(7547),c=t(91290),s=t.n(c);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d=function(e){var n=e.children,t=e.className,r=(0,o.Z)(e,["children","className"]),c=new a.Z(s().section);return c.addIf(t,t),(0,i.jsx)("section",u(u({className:c.toString()},r),{},{children:n}))}},84753:function(e,n,t){"use strict";var r=t(85893),i=t(7547),o=t(17353),a=t.n(o);n.Z=function(e){var n=e.children,t=e.className,o=new i.Z(a().textParagraph);return o.addIf(t,t),(0,r.jsx)("p",{className:o.toString(),children:n})}},53921:function(e,n,t){"use strict";t.d(n,{d2:function(){return d},_:function(){return p},iY:function(){return f},U3:function(){return h},C0:function(){return g},Cz:function(){return v},Lm:function(){return m},ps:function(){return y},HK:function(){return x}});var r=t(87757),i=t.n(r),o=t(92137),a=t(49704),c=t.n(a),s=t(95538),l=t(7113),u=t.n(l);var d=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o,a,s,l,u=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:4,r=c().sign({iss:"get_history"},"mOfyUot73uVa",{expiresIn:"7d"}),o="/api/jtsHistoryLegacy?token=".concat(r,"&total=").concat(t),e.next=5,fetch(o);case 5:return a=e.sent,e.next=8,a.json();case 8:return s=e.sent,l=(null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.datas)||[],e.abrupt("return",l);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"/api/financial",n={},e.prev=2,e.next=5,fetch("/api/financial");case 5:return r=e.sent,e.next=8,r.json();case 8:o=e.sent,n=(null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.price)||{},e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),console.log("[files][getStockPrice] Failed to query data: ".concat(e.t0.message));case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o,a,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="btc:price","/api/getBtcPrice",t=u().get(n)){e.next=20;break}return o=36e5,e.next=7,fetch("/api/getBtcPrice");case 7:return a=e.sent,e.next=10,a.json();case 10:if(c=e.sent,s=(null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.data)||{},0!==Object.keys(s).length){e.next=16;break}return e.abrupt("return",s);case 16:return u().put(n,s,o),e.abrupt("return",s);case 18:e.next=21;break;case 20:return e.abrupt("return",t);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,o.Z)(i().mark((function e(n,t){var r,o,a,c,s,l,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="/api/getDownloadV3PageByYear?locale=".concat(n,"&year=").concat(t),e.next=3,fetch(c);case 3:return s=e.sent,e.next=6,s.json();case 6:return l=e.sent,u=(null===l||void 0===l||null===(r=l.data)||void 0===r||null===(o=r.datas)||void 0===o||null===(a=o.item)||void 0===a?void 0:a.data)||{},e.abrupt("return",u);case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),g=function(){var e=(0,o.Z)(i().mark((function e(n,t){var r,o,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=c().sign({iss:"get_menus"},"mOfyUot73uVa",{expiresIn:"7d"}),e.next=3,fetch("/api/getMenuBylocation?lang=".concat(n,"&location=").concat(t,"&token=").concat(o));case 3:return a=e.sent,e.next=6,a.json();case 6:return s=e.sent,e.abrupt("return",(null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.datas)||[]);case 8:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),v=function(){var e=(0,o.Z)(i().mark((function e(n,t){var r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c().sign({iss:t},"mOfyUot73uVa",{expiresIn:"7d"}),e.next=3,fetch("/api/sendEmail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,token:r})});case 3:return o=e.sent,e.next=6,o.json();case 6:return a=e.sent,e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),m=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://jts.co.th",t="".concat("https://jts.co.th","/api/jtsLatestPopup"),e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.json();case 7:return o=e.sent,a=(null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.data)||null,e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o,a,l,u,d,p,f,h,g=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.length>0&&void 0!==g[0]?g[0]:null,r=g.length>1&&void 0!==g[1]&&g[1],o=null===t?(new Date).getFullYear():t,a=r?"":"https://jts.co.th",l=c().sign({iss:"get_quarterly_report"},"mOfyUot73uVa",{expiresIn:"7d"}),u=(0,s.Wz)({token:l,year:o}),d="".concat(a,"/api/jtsQuarterlyReport").concat(u),e.next=9,fetch(d);case 9:return p=e.sent,e.next=12,p.json();case 12:return f=e.sent,h=(null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.data)||[],e.abrupt("return",h);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=(0,o.Z)(i().mark((function e(){var n,t,r,o,a,l,u,d,p,f,h,g=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.length>0&&void 0!==g[0]?g[0]:null,r=g.length>1&&void 0!==g[1]&&g[1],o=null===t?(new Date).getFullYear():t,a=r?"":"https://jts.co.th",l=c().sign({iss:"get_grossary_quarterly_report"},"mOfyUot73uVa",{expiresIn:"7d"}),u=(0,s.Wz)({token:l,year:o}),d="".concat(a,"/api/jtsQuarterlyReportGrossary").concat(u),e.next=9,fetch(d);case 9:return p=e.sent,e.next=12,p.json();case 12:return f=e.sent,h=(null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.data)||[],e.abrupt("return",h);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},1654:function(e,n,t){"use strict";var r=t(67294);n.Z=function(e){var n=(0,r.useState)(null),t=n[0],i=n[1],o=(0,r.useState)(null),a=o[0],c=o[1];return(0,r.useEffect)((function(){var n=window.matchMedia(e);n&&(i(n),c(null===n||void 0===n?void 0:n.matches))}),[e]),(0,r.useEffect)((function(){var e=function(e){return c(e.matches)};return null===t||void 0===t||t.addListener(e),function(){return null===t||void 0===t?void 0:t.removeListener(e)}}),[t]),a}},41524:function(e,n,t){"use strict";t.d(n,{W:function(){return s}});var r,i=t(1599),o=t(28210),a=t(94991),c=t(95538);function s(){return r||(r=new i.f({link:new o.u({uri:(0,c.bq)("https://bo.jts.co.th/graphql")}),cache:new a.h,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}})),r}},97944:function(e,n,t){"use strict";t.d(n,{p6:function(){return c}});var r=t(41695),i=t(48137),o=(t(31566),t(30381)),a=t.n(o);t(9041),r.Z,i.Z;function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date",r=a()(e),i=r.format("DD"),o=r.locale(n).format("MMMM"),c="th"===n?Number(r.format("YYYY"))+543:r.format("YYYY"),s=r.format("HH:mm:ss");return"date"===t?"".concat(i," ").concat(o," ").concat(c):"".concat(i," ").concat(o," ").concat(c," ").concat(s)}},21900:function(e,n,t){"use strict";t.d(n,{xL:function(){return S},NY:function(){return N},F3:function(){return k},$4:function(){return I}});var r=t(87757),i=t.n(r),o=t(80018),a=t(96156),c=t(92137),s=t(41524),l=t(69797),u=(t(97944),t(32465)),d=t(67521);function p(){var e=(0,u.Z)(["\nquery PostsYearsByCategoryId($categoryId: Int!) {\n posts(\n where: {categoryId: $categoryId, orderby: {field: DATE, order: ASC}}\n ) {\n edges {\n node {\n date\n }\n }\n }\n}"]);return p=function(){return e},e}function f(){var e=(0,u.Z)(["\n query PostById {\n post(id: $postId, idType: DATABASE_ID) {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n sourceUrl\n srcSet\n sizes\n id\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n"]);return f=function(){return e},e}function h(){var e=(0,u.Z)(["\n query PostPerPage {\n allSettings {\n readingSettingsPostsPerPage\n }\n }\n"]);return h=function(){return e},e}function g(){var e=(0,u.Z)(["\n query PostSEOBySlug($slug: ID!, $lang: LanguageCodeEnum!) {\n post(id: $slug, idType: SLUG) {\n translation(language: $lang) {\n id\n seo {\n canonical\n metaDesc\n metaRobotsNofollow\n metaRobotsNoindex\n opengraphAuthor\n opengraphDescription\n opengraphModifiedTime\n opengraphPublishedTime\n opengraphPublisher\n opengraphTitle\n opengraphType\n readingTime\n title\n twitterDescription\n twitterTitle\n twitterImage {\n altText\n sourceUrl\n mediaDetails {\n width\n height\n }\n }\n opengraphImage {\n altText\n sourceUrl\n mediaDetails {\n height\n width\n }\n }\n }\n }\n }\n }\n"]);return g=function(){return e},e}function v(){var e=(0,u.Z)(["\n query PostByAuthorSlug($slug: String!) {\n posts(where: { authorName: $slug }) {\n edges {\n node {\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n id\n sizes\n sourceUrl\n srcSet\n }\n }\n id\n modified\n postId\n slug\n title\n isSticky\n }\n }\n }\n }\n"]);return v=function(){return e},e}function m(){var e=(0,u.Z)(["\n query PostsByCategoryId($categoryId: Int!, $year: Int!, $kw: String!) {\n posts(where: {categoryId: $categoryId, dateQuery: {year: $year}, search: $kw, orderby: {field: DATE, order: DESC}, status: PUBLISH}) {\n edges {\n node {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n id\n sizes\n sourceUrl\n srcSet\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n }\n }\n"]);return m=function(){return e},e}function y(){var e=(0,u.Z)(["\n query PostsByCategoryId($categoryId: Int!, $kw: String!) {\n posts(where: {categoryId: $categoryId, search: $kw, orderby: {field: DATE, order: DESC}, status: PUBLISH}) {\n edges {\n node {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n id\n sizes\n sourceUrl\n srcSet\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n }\n }\n"]);return y=function(){return e},e}function x(){var e=(0,u.Z)(["\n query PostsByCategoryId($categoryId: Int!, $year: Int!) {\n posts(where: {categoryId: $categoryId, orderby: {field: DATE, order: DESC}, dateQuery: {year: $year}, status: PUBLISH}) {\n edges {\n node {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n id\n sizes\n sourceUrl\n srcSet\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n }\n }\n"]);return x=function(){return e},e}function b(){var e=(0,u.Z)(["\n query PostsByCategoryId($categoryId: Int!) {\n posts(where: { categoryId: $categoryId, orderby: {field: DATE, order: DESC}, status: PUBLISH}) {\n edges {\n node {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n id\n sizes\n sourceUrl\n srcSet\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n }\n }\n"]);return b=function(){return e},e}function j(){var e=(0,u.Z)(["\n query PostBySlug($slug: ID!, $lang: LanguageCodeEnum!) {\n post(id: $slug, idType: SLUG) {\n translation(language: $lang) {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n sourceUrl\n srcSet\n sizes\n id\n }\n }\n modified\n postId\n title\n slug\n isSticky\n status\n }\n }\n }\n"]);return j=function(){return e},e}function A(){var e=(0,u.Z)(["\n query AllPosts($lang: LanguageCodeFilterEnum!) {\n posts(first: 10000, where: { language: $lang }) {\n edges {\n node {\n author {\n node {\n avatar {\n height\n url\n width\n }\n id\n name\n slug\n }\n }\n id\n categories {\n edges {\n node {\n categoryId\n id\n name\n slug\n }\n }\n }\n content\n date\n excerpt\n featuredImage {\n node {\n altText\n caption\n sourceUrl\n srcSet\n sizes\n id\n }\n }\n modified\n postId\n title\n slug\n isSticky\n }\n }\n }\n }\n"]);return A=function(){return e},e}(0,d.Ps)(A()),(0,d.Ps)(j()),(0,d.Ps)(b()),(0,d.Ps)(x()),(0,d.Ps)(y()),(0,d.Ps)(m()),(0,d.Ps)(v()),(0,d.Ps)(g());var w=(0,d.Ps)(h()),_=((0,d.Ps)(f()),(0,d.Ps)(p()),t(53921),t(30381),t(44908),t(7113),t(34155));function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e){return"/posts/".concat(e)}function S(e,n){return"/".concat(e,"/").concat(n)}function N(e,n){return C.apply(this,arguments)}function C(){return(C=(0,c.Z)(i().mark((function e(n,t){var r,o,a,c,s,l,u=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:1,e.next=3,D(n,t);case 3:return o=e.sent,("undefined"===typeof(a=Number(r))||isNaN(a)||a>o)&&(a=1),n.length<t&&(a=1),c=t*(a-1),s=T(n),l=Array.isArray(s)&&s.map(E),e.abrupt("return",{postsPerPage:t,posts:l.slice(c,c+t),rawPosts:l,pagination:{offset:c,postsPerPage:t,currentPage:a,pagesCount:o}});case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){if("string"!==typeof e)throw new Error("Failed to sanitize excerpt: invalid type ".concat(typeof e));var n=e;return n=(n=(n=(n=n.replace(/\s?\[…\]/,"…")).replace("....",".")).replace(".…",".")).replace(/\w*<a class="more-link".*<\/a>/,"")}function E(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=O({},n);return t.author&&(t.author=O({},t.author.node)),null!==(e=t.author)&&void 0!==e&&e.avatar&&(t.author.avatar=(0,l.BA)(t.author.avatar)),t.categories&&(t.categories=t.categories.edges.map((function(e){return O({},e.node)}))),t.featuredImage&&(t.featuredImage=t.featuredImage.node),t}function T(e){return(0,o.Z)(e).sort((function(e){return e.isSticky?-1:1}))}function M(){return L.apply(this,arguments)}function L(){return(L=(0,c.Z)(i().mark((function e(){var n,t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_.env.POSTS_PER_PAGE){e.next=3;break}return console.warn('You are using the deprecated POST_PER_PAGE variable. Use your WordPress instance instead to set this value ("Settings" > "Reading" > "Blog pages show at most").'),e.abrupt("return",Number(_.env.POSTS_PER_PAGE));case 3:return e.prev=3,n=(0,s.W)(),e.next=7,n.query({query:w});case 7:return t=e.sent,r=t.data,e.abrupt("return",Number(r.allSettings.readingSettingsPostsPerPage));case 12:throw e.prev=12,e.t0=e.catch(3),console.log("Failed to query post per page data: ".concat(e.t0.message)),e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,12]])})))).apply(this,arguments)}function D(e,n){return Z.apply(this,arguments)}function Z(){return(Z=(0,c.Z)(i().mark((function e(n,t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t||void 0===t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,M();case 6:e.t0=e.sent;case 7:return r=e.t0,e.abrupt("return",Math.ceil(n.length/r));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},72509:function(e,n,t){"use strict";t.d(n,{z0:function(){return o},iB:function(){return a}});t(87757);var r=t(80018),i=(t(41524),t(95538));t(54060),t(7113);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.router,i=void 0===r?{}:r,o=t.homepage,a=void 0===o?"":o,c=i.asPath,s="".concat(a).concat(c),l=new URL(s).pathname,u=n.canonical||"".concat(a).concat(l),d={canonical:u,og:{url:s},twitter:{}},p=["description","language","title"];if(p.forEach((function(t){var r="undefined"!==typeof n[t]?n[t]:e[t];"undefined"!==typeof r&&(d[t]=r)})),n.og){var f=["description","imageUrl","imageHeight","imageSecureUrl","imageWidth","title","type"];f.forEach((function(t){var r,i,o=null===(r=n.og)||void 0===r?void 0:r[t],a=n[t],c=null===(i=e.og)||void 0===i?void 0:i[t],s=e[t],l=o||a||c||s;"undefined"!==typeof l&&(d.og[t]=l)}))}if(n.twitter){var h=["cardType","description","imageUrl","title","username"];h.forEach((function(e){var t,r=null===(t=n.twitter)||void 0===t?void 0:t[e],i=d.og[e],o=r||i;"undefined"!==typeof o&&(d.twitter[e]=o)}))}if("article"===d.og.type&&n.article){d.article={};var g=["author","modifiedTime","publishedTime","publisher"];g.forEach((function(e){var t=n.article[e];"undefined"!==typeof t&&(d.article[e]=t)}))}return d}function a(){var e,n,t,o,a,c,s,l,u,d,p,f,h,g,v,m,y,x,b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=j.link,w=void 0===A?[]:A,_=j.meta,P=void 0===_?[]:_,O=j.setTitle,k=void 0===O||O,S=(0,i.zm)(b.description),N={htmlAttributes:{lang:b.language}};return k&&(N.title=b.title),N.link=[].concat((0,r.Z)(w),[{rel:"canonical",href:b.canonical}]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.href;return!!n})),N.meta=[].concat((0,r.Z)(P),[{name:"description",content:S},{property:"og:title",content:(null===(e=b.og)||void 0===e?void 0:e.title)||b.title},{property:"og:description",content:(null===(n=b.og)||void 0===n?void 0:n.description)||S},{property:"og:url",content:null===(t=b.og)||void 0===t?void 0:t.url},{property:"og:image",content:null===(o=b.og)||void 0===o?void 0:o.imageUrl},{property:"og:image:secure_url",content:null===(a=b.og)||void 0===a?void 0:a.imageSecureUrl},{property:"og:image:width",content:null===(c=b.og)||void 0===c?void 0:c.imageWidth},{property:"og:image:height",content:null===(s=b.og)||void 0===s?void 0:s.imageHeight},{property:"og:type",content:(null===(l=b.og)||void 0===l?void 0:l.type)||"website"},{property:"og:site_name",content:b.siteTitle},{property:"twitter:title",content:(null===(u=b.twitter)||void 0===u?void 0:u.title)||(null===(d=b.og)||void 0===d?void 0:d.title)||b.title},{property:"twitter:description",content:(null===(p=b.twitter)||void 0===p?void 0:p.description)||(null===(f=b.og)||void 0===f?void 0:f.description)||S},{property:"twitter:image",content:(null===(h=b.twitter)||void 0===h?void 0:h.imageUrl)||(null===(g=b.og)||void 0===g?void 0:g.imageUrl)},{property:"twitter:site",content:(null===(v=b.twitter)||void 0===v?void 0:v.username)&&"@".concat(b.twitter.username)},{property:"twitter:card",content:null===(m=b.twitter)||void 0===m?void 0:m.cardType},{property:"article:modified_time",content:null===(y=b.article)||void 0===y?void 0:y.modifiedTime},{property:"article:published_time",content:null===(x=b.article)||void 0===x?void 0:x.publishedTime}]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.content;return!!n})),N}},69797:function(e,n,t){"use strict";t.d(n,{BA:function(){return u}});t(87757);var r=t(96156),i=(t(41524),t(44931),t(32465)),o=t(67521);function a(){var e=(0,i.Z)(["\n {\n users(first: 10000) {\n edges {\n node {\n id\n seo {\n metaDesc\n metaRobotsNofollow\n metaRobotsNoindex\n title\n social {\n youTube\n wikipedia\n twitter\n soundCloud\n pinterest\n mySpace\n linkedIn\n instagram\n facebook\n }\n }\n }\n }\n }\n }\n"]);return a=function(){return e},e}function c(){var e=(0,i.Z)(["\n {\n users(first: 10000) {\n edges {\n node {\n avatar {\n height\n width\n url\n }\n description\n id\n name\n roles {\n nodes {\n name\n }\n }\n slug\n }\n }\n }\n }\n"]);return c=function(){return e},e}(0,o.Ps)(c()),(0,o.Ps)(a());function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e){var n;return l(l({},e),{},{url:null===(n=e.url)||void 0===n?void 0:n.replace("http://","https://")})}},7547:function(e,n,t){"use strict";var r=t(80018),i=t(6610),o=t(5991),a=function(){function e(n){(0,i.Z)(this,e),this.base=n,Array.isArray(n)||(this.base=[this.base])}return(0,o.Z)(e,[{key:"add",value:function(e){return Array.isArray(e)||(e=[e]),this.base=[].concat((0,r.Z)(this.base),(0,r.Z)(e)),this}},{key:"addIf",value:function(e,n){return n&&this.add(e),this}},{key:"toString",value:function(){return this.base.join(" ")}}]),e}();n.Z=a},37421:function(e){e.exports={layoutPdpa:"AcceptPdpa_layoutPdpa__3j42J",btnAccept:"AcceptPdpa_btnAccept__1HnM5"}},48519:function(e){e.exports={container:"Container_container__2Q7rh"}},41399:function(e){e.exports={footer:"Footer_footer__1_KSh",footerMenu:"Footer_footerMenu__2_8Bv",footerMenuWrap:"Footer_footerMenuWrap__2yQPS",footerMenuAddress:"Footer_footerMenuAddress__1ezTt",footerMenuColumns:"Footer_footerMenuColumns__1oC_Q",footerMenuTitle:"Footer_footerMenuTitle__14FCG",footerMenuItems:"Footer_footerMenuItems__FNlEe",footerMenuItemSocial:"Footer_footerMenuItemSocial__1Mw5J",footerLegal:"Footer_footerLegal__axCdg",footerLegelWrapper:"Footer_footerLegelWrapper__1LuDU",copyRight:"Footer_copyRight__3EcNy",infomation:"Footer_infomation__2yZP9"}},95058:function(e){e.exports={layoutContainer:"Layout_layoutContainer__NdDb2"}},62909:function(e){e.exports={main:"Main_main__1C8Mz"}},56565:function(e){e.exports={nav:"Nav_nav__1oHdH",navScroll:"Nav_navScroll__1xPSf",colorFull:"Nav_colorFull__3Q86a",navMobile:"Nav_navMobile__Iiwt6",navMobileScroll:"Nav_navMobileScroll__2udei",navMobileMenuWrap:"Nav_navMobileMenuWrap__2MHhb",navMobileToggle:"Nav_navMobileToggle__3lYyD",navMobileClose:"Nav_navMobileClose__8z_Ig",menuList:"Nav_menuList__3-er9",menuItem:"Nav_menuItem__2tdsc",iconWrap:"Nav_iconWrap__wF3vD",icon:"Nav_icon__YOd2d",menuItemChildWrap:"Nav_menuItemChildWrap__2hED8",menuItemChild:"Nav_menuItemChild__3p_LA",navLang:"Nav_navLang__2cOAN",navLangText:"Nav_navLangText__HgFq5",navLangTextBold:"Nav_navLangTextBold__1V3P7",hambugerClose:"Nav_hambugerClose__ZAkar",navBrandWrap:"Nav_navBrandWrap__2sLdz",navListMenuWrap:"Nav_navListMenuWrap__kJzjN",navListMenuWrapScroll:"Nav_navListMenuWrapScroll__2YtfA",navSection:"Nav_navSection__25c_X",navName:"Nav_navName__3deOp",navMenuWrap:"Nav_navMenuWrap__i_Ls4",navMenuWrapScroll:"Nav_navMenuWrapScroll__2CTj4",navMenu:"Nav_navMenu__3vsKe",navSubMenu:"Nav_navSubMenu__3fJB7",navSearch:"Nav_navSearch__2H6QX",navSearchResults:"Nav_navSearchResults__2xwjJ"}},91290:function(e){e.exports={section:"Section_section__2bvo_"}},17353:function(e){e.exports={textParagraph:"TextParagraph_textParagraph__lF7bZ"}},80950:function(){},46601:function(){},89214:function(){},8623:function(){},7748:function(){},85568:function(){},56619:function(){},77108:function(){},52361:function(){},94616:function(){}}]);