1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[143],{8391:function(g,V,u){var F=u(1631),v=u.n(F);v().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",v().defaults.headers.common["X-CSRF-TOKEN"]=$('meta[name="csrf-token"]').attr("content");var Qt=u(7975),Kt=u.n(Qt);class Xt{static init(){AOS.init({duration:0,delay:0,once:!0,disable:"mobile"})}}var Jt=Xt;class ea{static setWidthAsCSSVariable(){let a=()=>{let i=window.innerWidth-document.documentElement.clientWidth;$("html").css("--scrollbar-width",`${i}px`)};a();let t=$(".modal");t.on("show.bs.modal",i=>{a()}),t.on("shown.bs.modal",i=>{let s=()=>{let r=$(i.currentTarget).find(".modal-dialog").outerHeight(!0);$("html").css("--modal-dialog-height",`${r}px`)};s(),window.addEventListener("resize",s)}),t.on("hidden.bs.modal",()=>{a(),$("html").css("--modal-dialog-height","")}),window.addEventListener("resize",a)}}var ta=ea;$(document).ready(function(){Kt().init(),Jt.init(),ta.setWidthAsCSSVariable()});var l=u(7034),aa=u(5778),H=u.n(aa),ia={bind(e,a,t){e.style.visibility="hidden"},inserted(e,a,t){let i=a.value||200;setTimeout(()=>{e.style.visibility="visible"},i)}},sa={bind(e,a,t){$(e).click(function(i){if($(this).attr("is-submitting"))return!1;$(this).attr("is-submitting",!0),setTimeout(()=>{$(this).removeAttr("is-submitting")},1e3)})}},y=u(7116),ra=Object.defineProperty,na=(e,a,t)=>a in e?ra(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,oa=(e,a,t)=>(na(e,typeof a!="symbol"?a+"":a,t),t),Y;function k(e,a){var t=S();return k=function(i,s){i=i-300;var r=t[i];return r},k(e,a)}var x=k;(function(e,a){for(var t=k,i=e();[];)try{var s=parseInt(t(300))/1*(parseInt(t(310))/2)+-parseInt(t(304))/3*(parseInt(t(314))/4)+parseInt(t(306))/5+parseInt(t(302))/6*(parseInt(t(308))/7)+-parseInt(t(305))/8+parseInt(t(307))/9*(-parseInt(t(303))/10)+parseInt(t(312))/11;if(s===a)break;i.push(i.shift())}catch(r){i.push(i.shift())}})(S,367220);class z{}Y=x(309)+x(301),oa(z,Y,x(311)+x(313)+"9A9-ED6E994CC068");function S(){var e=["181500AmixyY","3688592KVfJfJ","648330qYnCsG","18bfRADD","3780707KQcfdk","LIGHT_GALL","59192YMOnWF","6EEC4446-C","12053899irffpV","8AF-489E-8","28AAgBhS","2GSaMXv","ERY","6pLHNtW","2864870yzauZN"];return S=function(){return e},S()}var T=z,D=u(620),I=u(6488),A=u(8244),P=u(5021),la={bind(e,a,t){let i=$(e).find("a").length>1,s=$(e).find("[data-external-thumb-image]").length?"data-external-thumb-image":"";(0,y.Z)(e,{plugins:[I.Z,D.Z,A.Z,P.Z],counter:i,exThumbImage:s,selector:"a",licenseKey:T.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0}})}},ca=u(6358),da={bind(e,a,t){let i=e.href;if(i!==void 0&&i!==""&&i.includes(".mp4")){let s=`{ 2 "source": [{ 3 "src": "${i}", 4 "type": "video/mp4" 5 }], 6 "attributes": { 7 "preload": "metadata", 8 "controls": true, 9 "playsinline": "playsinline" 10 } 11 }`;$(e).attr("data-video",s),$(e).removeAttr("href")}(0,y.Z)(e,{plugins:[ca.Z],autoplayFirstVideo:!1,counter:!1,download:!1,selector:"this",licenseKey:T.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0}})}},ua={bind(e,a,t){window.addEventListener("load",function(){let i=new URLSearchParams(document.location.search.substring(1));(i.has("category_id")||i.has("year")||i.has("keyword")||i.has("type_id"))&&$("html, body").animate({scrollTop:$(e).offset().top-100},1500)})}},_a={bind(e,a,t){$(e).find(".dropdown-menu").click(function(i){i.stopPropagation()})}},pa={inserted(e,a,t){$(e).select2({minimumResultsForSearch:1/0})}},ha={bind(e,a,t){$(e).popover({placement:"top",content:"copied!"}),new ClipboardJS(e,{text:s=>{let r=s.getAttribute("data-clipboard-text");return decodeURIComponent(r)}}).on("success",function(s){$(e).popover("show"),setTimeout(()=>{$(e).popover("hide")},500),s.clearSelection()})}},va={inserted(e,a,t){let i=new Rellax(e,{center:!0});$(e).on("load loadstart",()=>{i.refresh()})}},Z=u(5254),ma={inserted(e,a,t){var i,s,r,o,c,n,p,L,N,O,M,q;let Ut=(i=$(e).data("type"))!=null?i:"scroll",B=(s=$(e).data("speed"))!=null?s:.5,w=(r=$(e).data("c
11ontainer-class"))!=null?r:"jarallax-container",Ln=(o=$(e).data("img-src"))!=null?o:null,On=(c=$(e).data("img-element"))!=null?c:".jarallax-img",Mn=(n=$(e).data("img-size"))!=null?n:"cover",Fn=(p=$(e).data("img-position"))!=null?p:"50% 50%",jn=(L=$(e).data("img-repeat"))!=null?L:"no-repeat",Rn=(N=$(e).data("keep-img"))!=null?N:!1,Nn=(O=$(e).data("element-in-viewport"))!=null?O:null,qn=(M=$(e).data("z-index"))!=null?M:-100,Bn=(q=$(e).data("disable-parallax"))!=null?q:"-";(0,Z.ij)(),(0,Z.a0)($(e),{type:Ut,speed:B,containerClass:w,imgSrc:Ln,imgElement:On,imgSize:Mn,imgPosition:Fn,imgRepeat:jn,keepImg:Rn,elementInViewport:Nn,zIndex:qn,disableParallax:Bn})}},fa={bind(e,a,t){let i=()=>{$(e).find(".show").removeClass("show"),$("html").removeClass("header-enabled"),$("html").find(".header__main").collapse("hide").trigger("hidden.bs.collapse")},s=o=>{$(o.currentTarget).parent(".menu__item").siblings().find(".menu__link").removeClass("show"),$(o.currentTarget).addClass("show"),$(o.currentTarget).next().addClass("show").trigger("dropdown.show"),$(o.currentTarget).parent(".menu__item").siblings().find(".menu__dropdown-menu, .menu").removeClass("show")},r=o=>{$(o.currentTarget).removeClass("show"),$(o.currentTarget).next().removeClass("show")};$(e).find(".menu__link--lv2:not(.menu__link--children)").on("click",o=>{o.stopPropagation(),$(o.currentTarget).next().hasClass("show")?r(o):s(o)}),$(e).on("dropdown.hide",()=>{$(window).width()>1200&&($(".header").removeAttr("style"),$("body").removeAttr("style"))}),$(document).on("click",o=>{$(".menu--main").is(o.currentTarget)||i()}),$(e).find(".menu__nav--lv2 .menu__item--lv2").eq(0).addClass("show"),$(e).find(".menu__nav--lv2 .menu__item--lv2").eq(0).find(".dropdown-menu").addClass("show")}},ga={bind(e){function a(){if($(window).width()>900){let s=$(e).find(".card--benefit-header, .card--features-header"),r=$(e).find(".card--key-benefit"),o=0;if(s.length>0&&r.length>0){let c=0;c=Math.max(c,s.outerHeight(!0)),r.each(function(){c=Math.max(c,$(this).outerHeight(!0))}),c=c-o,s.css("height",c+"px"),r.each(function(){$(this).css("height",c+"px")})}}else $(e).find(".card--benefit-header, .card--features-header").css("height",""),$(e).find(".card--key-benefit").css("height","")}$(document).ready(a);function t(s,r){let o;return function(...c){clearTimeout(o),o=setTimeout(()=>s.apply(this,c),r)}}let i=t(a,100);$(window).resize(i),$(window).on("orientationchange",i)}};l.default.directive("visible-delay",ia),l.default.directive("submit-once",sa),l.default.directive("lightbox",la),l.default.directive("lightvideo",da),l.default.directive("scroll-filter",ua),l.default.directive("dropdown-clickable",_a),l.default.directive("select",pa),l.default.directive("clipboard",ha),l.default.directive("rellax",va),l.default.directive("parallax",ma),l.default.directive("dropdown-toggle",fa),l.default.directive("card-height-align",ga);var ya=u(6805),h=u.n(ya),ba=(e,a)=>h()(e).format(a),Ca=(e,a,t,i="en")=>{try{let s=moment(e,a).locale(i);return i==="th"&&(s=s.add(543,"year")),s.format(t)}catch(s){return""}},wa=function(e,a){if(a&&a.length>0&&a.trim()!==""){let i=a.split(" ").join("|");var t=new RegExp(i,"ig");return e.toString().replace(t,function(s,r,o){return"<mark>"+s+"</mark>"})}return e},$a=function(e,a=250){return _.truncate(e,{length:a})||""};l.default.filter("numeralFormat",ba),l.default.filter("dateFormat",Ca),l.default.filter("highlight",wa),l.default.filter("truncate",$a);var W=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e._m(0)},ka=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("p",{staticClass:"m-1"},[e._v("Hello, I'm "),t("strong",[e._v("Atlas Frontier")]),e._v(", nice too meet you! ")])}];W._withStripped=!0;var d=u(9812),xa={},G=(0,d.Z)(xa,W,ka,!1,null,null,null);if(!1)var Zn;G.options.__file="app/resources/vue/components/Sample.vue";var Sa=G.exports,U=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"accordion",attrs:{id:e.id}},[e._t("default")],2)},Ta=[];U._withStripped=!0;var Da={props:{id:{type:String,required:!0},scrollToActive:{type:Boolean,default:!0},alwaysOpen:{type:Boolean,default:!1}},mounted(){this.scrollToActiveItem()},methods:{scrollToActiveItem(){$(this.$el).on("shown.bs.collapse",()=>{if(this.scrollToActive&&!this.alwaysOpen){let e=$(this.$el).find(".show").prev();this.animateScrollTop(e)}})},animateScrollTop(e){let a=$("html").find(".header").height()+60;$("html,body").animate({scrollTop:e.offset().top-a},500)}}},Ia=Da,Q=(0,d.Z)(Ia,U,Ta,!1,null,null,null);if(!1)var Wn;
11Q.options.__file="app/resources/vue/components/accordion/Accordion.vue";var Aa=Q.exports,K=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"accordion__item"},[t("div",{staticClass:"accordion__header",attrs:{"data-toggle":"collapse","data-target":"#"+e.id,"aria-expanded":e.selected}},[t("h5",{staticClass:"accordion__title"},[e._t("title")],2),e._v(" "),t("span",{staticClass:"accordion__icon"})]),e._v(" "),t("div",{staticClass:"collapse",class:{show:e.selected},attrs:{id:e.id,"data-parent":e.alwaysOpen?"":"#"+e.parentId}},[t("div",{staticClass:"accordion__content"},[e._t("default")],2)])])},Pa=[];K._withStripped=!0;var Ea={props:{id:{type:String,required:!0},selected:{type:Boolean,default:!1}},data(){return{parentId:"",alwaysOpen:!1}},mounted(){this.alwaysOpen=this.$parent.$props.alwaysOpen,this.parentId=this.$parent.$props.id}},La=Ea,X=(0,d.Z)(La,K,Pa,!1,null,null,null);if(!1)var Gn;X.options.__file="app/resources/vue/components/accordion/AccordionItem.vue";var Oa=X.exports,J=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"intro-dialog"},[t("div",{staticClass:"slider intro-dialog__slider"},[t("div",{staticClass:"swiper intro-dialog__swiper"},[t("div",{staticClass:"swiper-wrapper intro-dialog__swiper-wrapper"},[e._t("default")],2)])]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"intro-dialog__pagination"})])},Ma=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"intro-dialog__navigation"},[t("div",{staticClass:"intro-dialog__btn intro-dialog__btn--prev"},[t("i",{staticClass:"fa-regular fa-chevron-left"})]),e._v(" "),t("div",{staticClass:"intro-dialog__btn intro-dialog__btn--next"},[t("i",{staticClass:"fa-regular fa-chevron-right"})])])}];J._withStripped=!0;var j=u(3432),Fa={props:{theme:{type:String}},data(){return{swiper:null}},mounted(){let e=$(this.$el).find(".swiper")[0];this.swiper=new j.Z(e,{slidesPerView:1,autoHeight:!0,autoplay:{delay:5e3,pauseOnMouseEnter:!0},observer:!0,observeParents:!0,observeSlideChildren:!0,navigation:{nextEl:".intro-dialog .intro-dialog__btn--next",prevEl:".intro-dialog .intro-dialog__btn--prev"},pagination:{el:".intro-dialog .intro-dialog__pagination",clickable:!0}})}},ja=Fa,ee=(0,d.Z)(ja,J,Ma,!1,null,null,null);if(!1)var Un;ee.options.__file="app/resources/vue/components/IntroDialog.vue";var Ra=ee.exports,te=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("button",{staticClass:"back-to-top",class:{show:e.isShow},on:{click:function(i){return e.scrollToTop()}}},[e._m(0)])},Na=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",{staticClass:"back-to-top__icon"},[t("i",{staticClass:"fa-regular fa-arrow-up"})])}];te._withStripped=!0;var qa={props:["trans"],data(){return{isShow:!1}},methods:{scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}}},Ba=qa,ae=(0,d.Z)(Ba,te,Na,!1,null,null,null);if(!1)var Qn;ae.options.__file="app/resources/vue/components/BackToTop.vue";var Va=ae.exports,ie=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"swiper slider__swiper"},[t("div",{staticClass:"swiper-wrapper slider__swiper-wrapper"},[e._t("default")],2)])},Ha=[];ie._withStripped=!0;var Ya={props:{theme:{type:String,required:!0}},data(){return{swiper:Object}},mounted(){let e={primary:this.primaryConfig(),gallery:this.galleryConfig(),upcoming:this.upcomingConfig(),milestone:this.milestoneConfig(),"our-people":this.ourPeopleConfig(),features:this.featuresConfig(),quote:this.quoteConfig(),sustainability:this.sustainabilityConfig(),materiality:this.materialityConfig(),highlight:this.highlightConfig(),"latest-news":this.latestNewsConfig(),"highlight-content":this.highlightContentConfig(),"mixed-pagination-and-fraction":this.mixedPaginationAndFractionConfig(),customer:this.customerConfig(),"customer-image":this.customerImageConfig()};this.swiper=new j.Z(this.$el,e[this.theme])},methods:{galleryConfig(){return{speed:1e3,slidesPerView:"auto",loop:!1,spaceBetween:30,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{pagination:{type:"fraction"}},768:{pagination:{type:"fraction"}},1024:{pagination:{clickable:!0}}},on:{init:()=>{let e=$(this.$el).find(".swiper-wrapper"),a=$(this.$el).find(".swiper-slide"),t=a.not(".swiper-slide-duplicate").map((s,r)=>{let o=$(r).find("img").attr("src");return{src:o,thumb:o}}).toArray(),i=(0,y.Z)(e[0],{plugins:[I.Z,D.Z,A.Z,P.Z],licenseKey:T.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0},dynamic:!0,dynamicEl:t});e.on("lgBeforeClose",()=>{this.swiper.slideTo(i.index,0)}
11),a.on("click",s=>{var r;let o=(r=$(s.currentTarget).data("swiper-slide-index"))!=null?r:$(s.currentTarget).index();i.openGallery(o)})}}}},primaryConfig(){return{speed:1e3,slidesPerView:1,loop:!0,spaceBetween:0,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0}}},quoteConfig(){return{speed:1e3,spaceBetween:30,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2,slidesPerGroup:1},1024:{slidesPerView:3},1440:{slidesPerView:3,slidesPerGroup:3}}}},latestNewsConfig(){return{speed:1e3,loop:!1,spaceBetween:30,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{slidesPerView:1,pagination:{type:"fraction"}},768:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3},1440:{slidesPerView:3,slidesPerGroup:3}}}},materialityConfig(){return window.innerWidth<720?{allowTouchMove:!1}:{speed:1e3,slidesPerView:1,loop:!1,spaceBetween:64,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0}}},ourPeopleConfig(){return{speed:1e3,slidesPerView:3,loop:!1,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3,spaceBetween:8},1440:{slidesPerView:3,spaceBetween:10}}}},upcomingConfig(){return{speed:1e3,slidesPerView:1,loop:!1,spaceBetween:0,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0}}},milestoneConfig(){return{speed:1e3,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{0:{spaceBetween:0,allowTouchMove:!1},768:{slidesPerView:1.2,spaceBetween:96},1024:{slidesPerView:1.65,spaceBetween:40},1440:{slidesPerView:1.5,spaceBetween:64},1900:{slidesPerView:1.5,spaceBetween:96}}}},featuresConfig(){return{speed:1e3,spaceBetween:30,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{slidesPerView:1,pagination:{type:"fraction"}},768:{slidesPerView:2.25,slidesPerGroup:1,pagination:{type:"fraction"}},1024:{slidesPerView:2.5,slidesPerGroup:2},1440:{slidesPerView:3,slidesPerGroup:3},1900:{slidesPerView:4,slidesPerGroup:4}}}},sustainabilityConfig(){return{speed:1e3,spaceBetween:30,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],clickable:!0},breakpoints:{320:{slidesPerView:1,slidesPerGroup:1,pagination:{type:"fraction"}},768:{slidesPerView:2.25},1024:{slidesPerView:3.5,slidesPerGroup:2},1440:{slidesPerView:4,slidesPerGroup:2}}}},highlightConfig(){return{allowTouchMove:!1,speed:1e3,slidesPerView:1,spaceBetween:0,loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".slider--highlight-content .slider__btn--next",prevEl:".slider--highlight-content .slider__btn--prev"},pagination:{el:".slider--highlight-content .slider__pagination",clickable:!0}}},highlightContentConfig(){return{allowTouchMove:!1,speed:1e3,slidesPerView:1,spaceBetween:0,effect:"fade",loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".slider--highlight-content .slider__btn--next",prevEl:".slider--highlight-content .slider__btn--prev"},pagination:{el:".slider--highlight-content .slider__pagination",clickable:!0}}},customerConfig(){return{speed:1e3,slidesPerView:1,spaceBetween:30,allowTouchMove:!1,loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".slider--customer .slider__btn--next",prevEl:".slider--customer .slider__btn--prev"},pagination:{el:".slider--customer .slider__pagination",clickable:!0}}},customerImageConfig(){return{allowTouchMove:!1,speed:1e3,slidesPerView:1,spaceBetween:0,effect:"fade",loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".slider--customer .slider__btn--next",prevEl:".slider--customer .slider__btn--prev"},pagination:{el:".slider--customer .slider__pagination",clickable:!0}}},mixedPaginationAndFractionConfig(){return{speed:1e3,slidesPerView:1,spaceBetween:0,navigation:{nextEl:$(this.$el).parent().find(".slider__btn--next")[0],prevEl:$(this.$el).parent().find(".slider__btn--prev")[0]},pagination:{el:$(this.$el).parent().find(".slider__pagination")[0],type:"progressbar"},on:{init:()=>{this.$nextTick().then(()=>{this.updateFraction()})},resize:()=>{this.updateFraction()},slideChange:()=>{this.updateFraction()}}}},updateFraction(){let e=this.swiper.snapIndex+1,a=this.swiper.snapGrid.length,t=h()(e).format("00"),i=h()(a).format("00");$(this.$el).parent().find(".slider__fraction-current").text(t),$(this.$el).parent().find(".slider__fraction-total").text(i)}}},za=Ya,se=(0,d.Z)(za,ie,Ha,!1,null,null,null);if(!1)var Kn;se.options.__file="app/resources/vue/components/Slider.vue";var Za=se.exports,re=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"hero-banner"},[t("div",{staticClass:"slider hero-banner__slider"},[t("div",{staticClass:"swiper hero-banner__swiper"},[t("div",{staticClass:"swiper-wrapper hero-banner__swiper-wrapper"},[e._t("default")],2)])]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"hero-banner__pagination"})])},Wa=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"hero-banner__navigation"},[t("button",{staticClass:"hero-banner__btn hero-banner__btn--prev swiper-button-prev"},[t("span",{staticClass:"hero-banner__btn-icon"})]),e._v(" "),t("button",{staticClass:"hero-banner__btn hero-banner__btn--next swiper-button-next"},[t("span",{staticClass:"hero-banner__btn-icon"})])])}];re._withStripped=!0;var Ga={props:{theme:{type:String}},data(){return{swiper:null}},mounted(){let e=$(this.$el).find(".swiper")[0];this.swiper=new j.Z(e,{slidesPerView:1,navigation:{nextEl:".hero-banner .hero-banner__btn--next",prevEl:".hero-banner .hero-banner__btn--prev"},pagination:{el:".hero-banner .hero-banner__pagination",clickable:!0}})}},Ua=Ga,ne=(0,d.Z)(Ua,re,Wa,!1,null,null,null);if(!1)var Xn;ne.options.__file="app/resources/vue/components/HeroBanner.vue";var Qa=ne.exports,oe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[e._t("default")],2)},Ka=[];oe._withStripped=!0;var Xa={mounted(){$(this.$el).justifiedGallery({captions:!1,lastRow:"hide",rowHeight:180,margins:5}).on("jg.complete",()=>{(0,y.Z)(this.$el,{plugins:[I.Z,D.Z,A.Z,P.Z],licenseKey:T.LIGHT_GALLERY,speed:500,mobileSettings:{showCloseIcon:!0}})})}},Ja=Xa,le=(0,d.Z)(Ja,oe,Ka,!1,null,null,null);if(!1)var Jn;le.options.__file="app/resources/vue/components/JustifiedGallery.vue";var ei=le.exports,ce=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"inline-gallery"},[e._t("default")],2)},ti=[];ce._withStripped=!0;var ai={data(){return{items:[]}}
11,mounted(){(0,y.Z)(this.$el,{plugins:[I.Z,D.Z,A.Z,P.Z],container:this.$el,dynamic:!0,hash:!1,closable:!1,showMaximizeIcon:!0,appendSubHtmlTo:".lg-item",slideDelay:400,dynamicEl:this.items}).openGallery()}},ii=ai,de=(0,d.Z)(ii,ce,ti,!1,null,null,null);if(!1)var eo;de.options.__file="app/resources/vue/components/inline-gallery/InlineGallery.vue";var si=de.exports,ue=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div")},ri=[];ue._withStripped=!0;var ni={props:{src:{type:String,required:!0},title:{type:String}},mounted(){let e=this.src,a=this.src,t=this.title;this.$parent.items.push({src:e,thumb:a,subHtml:t}),$(this.$el).remove()}},oi=ni,_e=(0,d.Z)(oi,ue,ri,!1,null,null,null);if(!1)var to;_e.options.__file="app/resources/vue/components/inline-gallery/InlineGalleryItem.vue";var li=_e.exports,pe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"tab"},[e.sidebar?t("div",{staticClass:"tab__sidebar"},e._l(e.items,function(i){return t("div",{staticClass:"tab__sidebar-item"},[t("a",{staticClass:"tab__sidebar-link",class:{active:i.selected},attrs:{href:"javascript:;"},on:{click:function(s){return e.onClick(i)}}},[t("v-nodes-renderer",{attrs:{nodes:i.title}})],1)])}),0):e._e(),e._v(" "),t("div",{staticClass:"dropdown tab__dropdown"},[t("button",{staticClass:"tab__dropdown-toggle",attrs:{"data-display":"static",type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"tab__dropdown-toggle-title"},[t("v-nodes-renderer",{attrs:{nodes:e.currentTabTitle}})],1),e._v(" "),t("span",{staticClass:"tab__dropdown-toggle-icon"})]),e._v(" "),t("div",{staticClass:"dropdown-menu tab__dropdown-menu"},[t("ul",{staticClass:"tab__nav nav",attrs:{id:e.id,role:"tablist"}},e._l(e.items,function(i){return t("li",{key:"tab-"+i.id,staticClass:"tab__nav-item nav-item"},[t("a",{staticClass:"tab__nav-link nav-link",class:{active:i.selected},attrs:{href:"#"+i.id,role:"tab","data-toggle":"tab"},on:{click:function(s){return e.onClick(i)}}},[t("span",{staticClass:"tab__nav-title"},[t("v-nodes-renderer",{attrs:{nodes:i.title}})],1)])])}),0)]),e._v(" "),e.slider?t("div",{staticClass:"tab__navigation"},[t("button",{staticClass:"tab__btn tab__btn--prev",class:{disabled:e.isSliderOnEndedLeft},on:{click:function(i){return e.prev()}}},[e._m(0)]),e._v(" "),t("button",{staticClass:"tab__btn tab__btn--next",class:{disabled:e.isSliderOnEndedRight},on:{click:function(i){return e.next()}}},[e._m(1)])]):e._e()]),e._v(" "),t("div",{staticClass:"tab__tab-content tab-content",attrs:{id:e.id}},[e._t("default")],2)])},ci=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",{staticClass:"tab__btn-icon"},[t("i",{staticClass:"fa-regular fa-chevron-left"})])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",{staticClass:"tab__btn-icon"},[t("i",{staticClass:"fa-regular fa-chevron-right"})])}];pe._withStripped=!0;var R=u(66),di={components:{"v-nodes-renderer":R.Z},props:{id:{type:String,required:!0},expand:{type:String},fixHeight:{type:Boolean,default:!1},history:{type:Boolean,default:!1},sidebar:{type:Boolean,default:!1},slider:{type:Boolean,default:!1},scrollToActive:{type:Boolean,default:!1}},data(){return{items:[],isSliderOnEndedLeft:!1,isSliderOnEndedRight:!1,offset:24}},mounted(){this.init()},methods:{init(){this.initExpand(),this.initSidebar(),this.initFixHeight(),this.initSlider(),this.activeByTabId(),this.onChanged(),this.onWindowResize()},onChanged(){this.$nextTick().then(()=>{$(this.$el).find('> .tab__dropdown [data-toggle="tab"]').on("show.bs.tab",e=>{let a=$(e.currentTarget).parent().index();this.updatedSelectedTabItem(a),this.refreshSidebar(),this.initScrollToActive()})})},updatedSelectedTabItem(e){this.items=this.items.map((a,t)=>(a.selected=t===e,a))},onClick(e){this.changeHistory(e.id),this.selectedSidebarTabItem(e.id)},getBreakpoint(e){return{sm:576,md:768,lg:992,xl:1200,xxl:1640}[e]},isExpanded(e){return window.innerWidth>=this.getBreakpoint(e)},initExpand(){if(!this.expand)return!1;this.isExpanded(this.expand)?$(this.$el).removeClass("collapsed"):$(this.$el).addClass("collapsed")},initFixHeight(){if(!this.fixHeight)return!1;this.$nextTick().then(()=>{let e=[];$(this.$el).find(".tab__tab-pane").each((t,i)=>{$(i).css({position:"absolute",display:"block"});let s=$(i).outerHeight(!0);e.push(s),$(i).css({position:"",display:""})});let a=Math.max(...e);this.expand?this.isExpanded(this.expand)?$(this.$el).css("height",a):$(this.$el).css("height",""):$(this.$el).css("height",a)})},changeHistory(e){if(!this.history)return!1;let a=`tab_id=${e}`,t=`${window.location.protocol}//${window.location.host}${window.location.pathname}?${a}`;window.history.pushState({path:t},"",t),window.addEventListener("popstate",i=>{let s=this.getParamsTabId();$(this.$el).find(`> .tab__dropdown [href='#${s}']`).tab("show")})},activeByTabId(){this.$nextTick().then(()=>{let e=this.getParamsTabId();if(e){let a=$(this.$el).find(`> .tab__dropdown [href='#${e}']`);if(a.length){let t=a.parent().index();this.updatedSelectedTabItem(t),a.tab("show"),this.scrollToActiveTabItem()}}})},scrollToActiveTabItem(e=0){$("html,body").animate({scrollTop:$(this.$el).offset().top-e},500)},initScrollToActive(){this.scrollToActive&&this.scrollToActiveTabItem()},getParamsTabId(){let e=window.location.search;return new URLSearchParams(e).get("tab_id")},selectedSidebarTabItem(e){if(!this.sidebar)return!1;$(this.$el).find(`> .tab__dropdown [href='#${e}']`).tab("show"),this.scrollToActiveTabItem()},initSidebar(){if(!this.sidebar)return!1;ScrollTrigger.create({trigger:this.$el,start:"top top",end:()=>`+=${$(this.$el).outerHeight(!0)}px bottom`,toggleClass:"is-fixed",markers:!1})},refreshSidebar(){if(!this.sidebar)return!1;setTimeout(()=>{ScrollTrigger.refresh()},500)}
11,initSlider(){if(!this.slider)return!1;this.$nextTick().then(()=>{this.updateSliderScrollPositionStatus(),this.onSliderScroll(),this.scrollSliderToActiveItem()})},onSliderScroll(){$(this.$el).find(".tab__dropdown-menu").on("scroll",()=>{this.updateSliderScrollPositionStatus()})},updateSliderScrollPositionStatus(){let e=$(this.$el).find(".tab__dropdown-menu"),a=e[0].scrollWidth,t=e.scrollLeft(),i=e[0].clientWidth;this.isSliderOnEndedLeft=t===0,this.isSliderOnEndedRight=t+i===a},prev(){$(this.$el).find(".tab__dropdown-menu").animate({scrollLeft:"-=200px"},200)},next(){$(this.$el).find(".tab__dropdown-menu").animate({scrollLeft:"+=200px"},200)},scrollSliderToActiveItem(){let e=$(this.$el).find(".nav-slider__nav-link.active");if(e.length>0){let a=e.parent(),t=$(this.$el).find(".tab__dropdown-menu"),i=a.position().left;t.animate({scrollLeft:i-this.offset},200)}},onWindowResize(){$(window).on("resize",()=>{this.initExpand(),this.initFixHeight(),this.updateSliderScrollPositionStatus()})}},computed:{currentTabTitle(){var e;return(e=this.items.find(a=>a.selected))==null?void 0:e.title}}},ui=di,he=(0,d.Z)(ui,pe,ci,!1,null,null,null);if(!1)var ao;he.options.__file="app/resources/vue/components/tab/Tab.vue";var _i=he.exports,ve=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"tab__tab-pane tab-pane fade",class:{"show active":e.selected},attrs:{id:e.id,role:"tabpanel"}},[t("div",{staticClass:"tab__tab-pane-body"},[e._t("default")],2)])},pi=[];ve._withStripped=!0;var hi={props:{id:{type:String,required:!0},selected:{type:Boolean,default:!1}},mounted(){let e=this.id,a=this.$slots.title,t=this.selected;this.$parent.items.push({id:e,title:a,selected:t})}},vi=hi,me=(0,d.Z)(vi,ve,pi,!1,null,null,null);if(!1)var io;me.options.__file="app/resources/vue/components/tab/TabItem.vue";var mi=me.exports,fe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"tab-accordion"},[t("div",{staticClass:"tab-accordion__tab"},[t("tab",{class:e.tabCustomClass,attrs:{id:"tab-"+e.id,"fix-height":e.fixHeight,sidebar:e.sidebar}},e._l(e.items,function(i){return t("tab-item",{key:"tab-item-"+i.id,attrs:{id:"tab-item-"+i.id,selected:i.selected},scopedSlots:e._u([{key:"title",fn:function(){return[t("v-nodes-renderer",{attrs:{nodes:i.title}})]},proxy:!0}],null,!0)},[e._v(" "),t("v-nodes-renderer",{attrs:{nodes:i.body}})],1)}),1)],1),e._v(" "),t("div",{staticClass:"tab-accordion__accordion"},[t("accordion",{class:e.accordionCustomClass,attrs:{id:"accordion-"+e.id,"scroll-to-active":e.scrollToActive}},e._l(e.items,function(i){return t("accordion-item",{key:"accordion-item-"+i.id,attrs:{id:"accordion-item-"+i.id,selected:i.selected},scopedSlots:e._u([{key:"title",fn:function(){return[t("v-nodes-renderer",{attrs:{nodes:i.title}})]},proxy:!0}],null,!0)},[e._v(" "),t("v-nodes-renderer",{attrs:{nodes:i.body}})],1)}),1)],1),e._v(" "),e._t("default")],2)},fi=[];fe._withStripped=!0;var gi={components:{"v-nodes-renderer":R.Z},props:{id:{type:String,required:!0},expand:{type:String,required:!0},tabCustomClass:{type:String},accordionCustomClass:{type:String},fixHeight:{type:Boolean,default:!1},sidebar:{type:Boolean,default:!1}},data(){return{items:[],scrollToActive:!1}},mounted(){this.initExpand(),this.onWindowResize(),this.sync()},methods:{getBreakpoint(e){return{sm:576,md:768,lg:992,xl:1200,xxl:1640}[e]},isExpanded(e){return window.innerWidth>=this.getBreakpoint(e)},initExpand(){this.isExpanded(this.expand)?($(this.$el).removeClass("collapsed"),this.scrollToActive=!1):($(this.$el).addClass("collapsed"),this.scrollToActive=!0)},onWindowResize(){$(window).on("resize",()=>{this.initExpand()})},sync(){this.$nextTick().then(()=>{$(this.$el).find('[data-toggle="tab"]').click(e=>{let a=$(e.currentTarget).parent().index();$(this.$el).find(".accordion__item").eq(a).find(".collapse").collapse("show")}),$(this.$el).find('[data-toggle="collapse"]').click(e=>{let a=$(e.currentTarget).parent().index();$(this.$el).find(".tab__nav-item").eq(a).find(".tab__nav-link").tab("show")})})}}},yi=gi,ge=(0,d.Z)(yi,fe,fi,!1,null,null,null);if(!1)var so;ge.options.__file="app/resources/vue/components/tab-accordion/TabAccordion.vue";var bi=ge.exports,ye=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div")},Ci=[];ye._withStripped=!0;var wi={props:{id:{type:String,required:!0},selected:{type:Boolean,default:!1}},mounted(){let e=this.id,a=this.$slots.title,t=this.$slots.default,i=this.selected;this.$parent.items.push({id:e,title:a,body:t,selected:i}),$(this.$el).remove()}},$i=wi,be=(0,d.Z)($i,ye,Ci,!1,null,null,null);if(!1)var ro;be.options.__file="app/resources/vue/components/tab-accordion/TabAccordionItem.vue";var ki=be.exports,Ce=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"nav-dropdown"},[e._m(0),e._v(" "),t("div",{staticClass:"dropdown-menu nav-dropdown__dropdown-menu"},[t("ul",{staticClass:"nav-dropdown__nav nav"},[e._t("default")],2)])])},xi=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("button",{staticClass:"nav-dropdown__dropdown-toggle",attrs:{"data-display":"static",type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"nav-dropdown__dropdown-toggle-title"}),e._v(" "),t("span",{staticClass:"nav-dropdown__dropdown-toggle-icon"})])}];Ce._withStripped=!0;var Si={props:{expand:{type:String}},mounted(){this.currentTitle(),this.onChanged(),this.initExpand(),this.onWindowResize()},methods:{currentTitle(){this.$nextTick().then(()=>
11{let e=$(this.$el).find(".nav-dropdown__nav-link.active .nav-dropdown__nav-title").html();$(this.$el).find(".nav-dropdown__dropdown-toggle-title").html(e)})},onChanged(){this.$nextTick().then(()=>{$(this.$el).find(".nav-dropdown__nav-link").click(e=>{let a=$(e.currentTarget).html();$(this.$el).find(".nav-dropdown__dropdown-toggle-title").html(a)})})},getBreakpoint(e){return{sm:576,md:768,lg:992,xl:1200,xxl:1640}[e]},isExpanded(e){return window.innerWidth>=this.getBreakpoint(e)},initExpand(){if(!this.expand)return!1;this.isExpanded(this.expand)?$(this.$el).removeClass("collapsed"):$(this.$el).addClass("collapsed")},onWindowResize(){$(window).on("resize",()=>{this.initExpand()})}}},Ti=Si,we=(0,d.Z)(Ti,Ce,xi,!1,null,null,null);if(!1)var no;we.options.__file="app/resources/vue/components/NavDropdown.vue";var Di=we.exports,$e=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"nav-slider"},[t("div",{staticClass:"nav-slider__nav-wrapper"},[t("ul",{staticClass:"nav-slider__nav nav"},[e._t("default")],2)]),e._v(" "),t("div",{staticClass:"nav-slider__navigation"},[t("button",{staticClass:"nav-slider__btn nav-slider__btn--prev",class:{disabled:e.isOnEndedLeft},on:{click:function(i){return e.prev()}}},[e._m(0)]),e._v(" "),t("button",{staticClass:"nav-slider__btn nav-slider__btn--next",class:{disabled:e.isOnEndedRight},on:{click:function(i){return e.next()}}},[e._m(1)])])])},Ii=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",{staticClass:"nav-slider__btn-icon"},[t("i",{staticClass:"fa-regular fa-chevron-left"})])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",{staticClass:"nav-slider__btn-icon"},[t("i",{staticClass:"fa-regular fa-chevron-right"})])}];$e._withStripped=!0;var Ai={data(){return{isOnEndedLeft:!1,isOnEndedRight:!1,offset:24}},mounted(){this.init()},methods:{init(){this.updateScrollPositionStatus(),this.onScroll(),this.scrollToActiveItem(),this.onWindowResize()},onScroll(){$(this.$el).find(".nav-slider__nav-wrapper").on("scroll",()=>{this.updateScrollPositionStatus()})},updateScrollPositionStatus(){let e=$(this.$el).find(".nav-slider__nav-wrapper"),a=e[0].scrollWidth,t=e.scrollLeft(),i=e[0].clientWidth;this.isOnEndedLeft=t===0,this.isOnEndedRight=t+i===a},prev(){$(this.$el).find(".nav-slider__nav-wrapper").animate({scrollLeft:"-=200px"},200)},next(){$(this.$el).find(".nav-slider__nav-wrapper").animate({scrollLeft:"+=200px"},200)},scrollToActiveItem(){let e=$(this.$el).find(".nav-slider__nav-link.active");if(e.length>0){let a=e.parent(),t=$(this.$el).find(".nav-slider__nav-wrapper"),i=a.position().left;t.animate({scrollLeft:i-this.offset},200)}},onWindowResize(){$(window).on("resize",()=>{this.updateScrollPositionStatus()})}}},Pi=Ai,ke=(0,d.Z)(Pi,$e,Ii,!1,null,null,null);if(!1)var oo;ke.options.__file="app/resources/vue/components/NavSlider.vue";var Ei=ke.exports,xe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"google-map"},[e._t("default")],2)},Li=[];xe._withStripped=!0;var Se=u(7492),Oi={props:{latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},zoom:{type:Number,default:16},url:{type:String}},data(){return{google:null}},mounted(){new Se.aN({apiKey:"AIzaSyDZJveQIYcN4HisSySQhxzc3-zvPO9P9R4",language:this.getLanguage()}).load().then(()=>{this.init()}).catch(a=>{console.log(a)})},methods:{getLanguage(){return $("html").attr("lang")==="th"?"th":"en"},init(){let e=$(this.$el).html(),a={lat:this.latitude,lng:this.longitude},t=new google.maps.Map($(this.$el)[0],{center:a,zoom:this.zoom,styles:[{featureType:"administrative",elementType:"all",stylers:[{saturation:"-100"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",elementType:"all",stylers:[{saturation:-100},{lightness:"50"},{visibility:"simplified"}]},{featureType:"road",elementType:"all",stylers:[{saturation:"-100"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"all",stylers:[{lightness:"30"}]},{featureType:"road.local",elementType:"all",stylers:[{lightness:"40"}]},{featureType:"transit",elementType:"all",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]},{featureType:"water",elementType:"labels",stylers:[{lightness:-25},{saturation:-100}]}]}),i=new window.google.maps.Marker({position:a,map:t,icon:"/assets/images/icon/map-marker.svg"});if(e!==void 0&&e!==""){let s=new google.maps.InfoWindow({maxWidth:300});s.setContent(e),s.open(t,i),i.addListener("click",()=>{s.setContent(e),s.open(t,i)})}else i.addListener("click",()=>{if(this.url!=null&&this.url!=""){window.open(this.url,"_blank");return}let s=`https://www.google.com/maps/dir//${this.latitude},${this.longitude}/@${this.latitude},${this.longitude},16z?hl=en-US`;window.open(s,"_blank")})}}},Mi=Oi,Te=(0,d.Z)(Mi,xe,Li,!1,null,null,null);if(!1)var lo;Te.options.__file="app/resources/vue/components/map/GoogleMap.vue";var Fi=Te.exports,De=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"interactive-map"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-lg-3"},[t("div",{staticClass:"interactive-map__body"},[t("nav-dropdown",{staticClass:"nav-dropdown--interactive-map mb-3 mb-lg-0",attrs:{expand:"lg"}},e._l(e.locations,function(i,s){return t("li",{key:i.title,staticClass:"nav-dropdown__nav
11-item nav-item"},[t("a",{staticClass:"nav-dropdown__nav-link nav-link",class:{active:e.getActiveClass(i)},attrs:{href:"javascript:;"},on:{click:function(r){return e.selectLocation(s)}}},[t("span",{staticClass:"nav-dropdown__nav-title"},[e._v(` 12 `+e._s(i.title)+` 13 `)])])])}),0)],1)]),e._v(" "),e._m(0)])])},ji=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"col-lg-9"},[t("div",{staticClass:"interactive-map__map"})])}];De._withStripped=!0;var Ri=u(1373),Ni={props:{data:{required:!0},latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},zoom:{type:Number,default:5},cluster:{type:Boolean,default:!1},default:{type:Boolean,default:!1}},data(){return{map:null,markers:[],location:null,locations:window.interactiveMap[this.data]}},created(){this.setDefaultLocation()},mounted(){new Se.aN({apiKey:"AIzaSyDZJveQIYcN4HisSySQhxzc3-zvPO9P9R4",language:this.getLanguage()}).load().then(()=>{this.init()}).catch(a=>{console.log(a)})},methods:{getLanguage(){return $("html").attr("lang")==="th"?"th":"en"},init(){this.map=new google.maps.Map($(this.$el).find(".interactive-map__map")[0],{center:{lat:parseInt(this.latitude),lng:parseInt(this.longitude)},zoom:this.zoom}),this.createMarkers()},getActiveClass(e){return this.location!=null?e.title===this.location.title:!1},setDefaultLocation(){this.default&&(this.location=this.locations[0])},createMarkers(){for(let a in this.locations){let t=this.locations[a],i=new google.maps.Marker({position:new google.maps.LatLng(t.latitude,t.longitude),map:this.map,icon:{url:"/assets/images/icon/map-marker.svg",scaledSize:new window.google.maps.Size(30,30)}});this.markers.push(i);var e=new google.maps.InfoWindow({maxWidth:300});google.maps.event.addListener(i,"click",()=>{e.setContent(this.createInfoWindow(t)),e.open(this.map,i),this.map.panTo(new google.maps.LatLng(t.latitude,t.longitude)),this.location=t})}this.createMarkerCluster(),this.setDefaultMarker()},createMarkerCluster(){if(this.cluster){let e=this.markers,a=this.map;const t={render:({count:i,position:s})=>new google.maps.Marker({label:{text:String(i),color:"black",fontSize:"14px"},position:s,icon:"/assets/images/icon/map-marker.svg",zIndex:Number(google.maps.Marker.MAX_ZINDEX)+i})};new Ri.XL({markers:e,map:a})}},createInfoWindow(e){return` 14 <div class="card card--google-map"> 15 <div class="card__body"> 16 <h6 class="card__title">${e.title}</h6> 17 ${e.excerpt} 18 <div class="card__btn-group btn-group"> 19 <a href="${e.url}" target="_blank" class="card__btn btn btn--primary"> 20 <span class="btn__title">Get Direction</span> 21 </a> 22 </div> 23 </div> 24 </div> 25 `},selectLocation(e){google.maps.event.trigger(this.markers[e],"click")},setDefaultMarker(){this.default&&(google.maps.event.trigger(this.markers[0],"click"),this.map.setZoom(16))}}},qi=Ni,Ie=(0,d.Z)(qi,De,ji,!1,null,null,null);if(!1)var co;Ie.options.__file="app/resources/vue/components/map/InteractiveMap.vue";var Bi=Ie.exports,Ae=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",{staticClass:"header"},[e._t("default")],2)},Vi=[];Ae._withStripped=!0;var Hi=u(1891),Yi=u.n(Hi),zi={mounted(){this.initHeadroomJs(),this.navbarCollapseHandler(),this.menuDropDownHandler(),this.handleNestedDropdowns(),this.backToTop()},methods:{initHeadroomJs(){let e=$(this.$el)[0],a={offset:0,tolerance:0,classes:{initial:"header",notTop:"header--not-top",bottom:"header--bottom",pinned:"header--pinned",unpinned:"header--unpinned"},onPin:function(){$("header").addClass("header--white"),$("html").find(".card-sticky, .resource-center__category, .leadership-detail__sticky, .section__sticky-item, .customer__img-sticky, .customer-nav__wrapper").addClass("on-pin")},onUnpin:function(){$("html").find(".card-sticky, .resource-center__category, .leadership-detail__sticky, .section__sticky-item, .customer__img-sticky, .customer-nav__wrapper").removeClass("on-pin")},onTop:function(){$("header").removeClass("header--white")}};new(Yi())(e,a).init()}
25,navbarCollapseHandler(){$(this.$el).find(".header__main").on("shown.bs.collapse",e=>{$("html").addClass("header-enabled"),$("header").addClass("header--on-open")}),$(this.$el).find(".header__main").on("hidden.bs.collapse",e=>{$("html").removeClass("header-enabled"),$("header").removeClass("header--on-open")})},menuDropDownHandler(){$(this.$el).find(".menu--main .dropdown-menu").click(e=>{e.stopImmediatePropagation()}),$(window).innerWidth()>=1200&&($(this.$el).find(".menu--main .menu__item--lv1.dropdown").on("shown.bs.dropdown",e=>{$("html").addClass("header-enabled"),$("header").addClass("header--on-open")}),$(this.$el).find(".menu--main .menu__item--lv1.dropdown").on("hidden.bs.dropdown",e=>{$("html").removeClass("header-enabled"),$("header").removeClass("header--on-open")}))},handleNestedDropdowns(){$(this.$el).find(".menu__link--lv2.dropdown-toggle").on("click",e=>{$(this.$el).find(".menu__item--lv2 .dropdown-menu").dropdown("hide"),$(e.currentTarget).next(".dropdown-menu").dropdown("show")}),$(window).innerWidth()>=1200&&$(this.$el).find(".menu__item--our-services .menu__link--lv1").on("click",e=>{$(this.$el).find(".menu__item--lv2 .dropdown-menu").dropdown("hide"),$(this.$el).find(".menu__nav--lv2 .menu__item--lv2").eq(0).find(".dropdown-menu").dropdown("show")})},backToTop(){$(window).width()<1200&&$(this.$el).find(".menu--main .menu__link").on("click",e=>{let a=$(e.currentTarget).parents(".dropdown").position().top;$(this.$el).find(".header__main").scrollTop(a)})}}},Zi=zi,Pe=(0,d.Z)(Zi,Ae,Vi,!1,null,null,null);if(!1)var uo;Pe.options.__file="app/resources/vue/components/header/HeaderLayout.vue";var Wi=Pe.exports,Gi=u(3305),Ee=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"image-zoom-out"},[e._t("default")],2)},Ui=[];Ee._withStripped=!0;var Qi={mounted(){let e=$(this.$el).find(".mission__bg"),a=$(this.$el).find(".mission__body-wrapper");gsap.set(e,{scale:.5}),gsap.set(a,{opacity:0,y:70}),gsap.timeline({scrollTrigger:{trigger:this.$el,start:"-30% center",end:"bottom center",markers:!1}}).to(e,{scale:1,duration:1.5,ease:"power1.inOut"},"<").to(a,{opacity:1,duration:1,y:0,ease:"power1.inOut"})}},Ki=Qi,Le=(0,d.Z)(Ki,Ee,Ui,!1,null,null,null);if(!1)var _o;Le.options.__file="app/resources/vue/components/animated/Mission.vue";var Xi=Le.exports,Oe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"section customer"},[t("div",{staticClass:"section__body section__body--space-y-0"},[t("div",{staticClass:"customer-nav__wrapper"},[t("ul",{staticClass:"customer-nav__lists nav"},e._l(e.items,function(i){return t("li",{key:"item-"+i.id,staticClass:"customer-nav__nav-item nav-item",class:{active:i.selected}},[t("a",{staticClass:"customer-nav__nav-link nav-link",attrs:{href:"#item-"+i.id},on:{click:function(s){return e.select(i)}}},[t("v-nodes-renderer",{attrs:{nodes:i.title}})],1)])}),0)]),e._v(" "),t("div",{staticClass:"customer__content-wrapper"},e._l(e.items,function(i){return t("div",{key:"item-content-"+i.id,attrs:{id:"item-"+i.id}},[t("v-nodes-renderer",{attrs:{nodes:i.body}})],1)}),0)]),e._v(" "),e._t("default")],2)},Ji=[];Oe._withStripped=!0;var po=u(3053),es={components:{"v-nodes-renderer":R.Z},data(){return{items:[],isClicking:!1,isScrolling:!0}},mounted(){this.customerSticky(),this.createNavigationObserver(),window.addEventListener("scroll",this.handleScroll)},methods:{handleScroll(){this.isScrolling=!0,clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1},100)},select(e){this.isClicking=!0,this.observer&&this.observer.disconnect(),this.$nextTick().then(()=>{let a=`#item-${e.id}`;const t=150,i=$(a).offset().top-t;$("html, body").animate({scrollTop:i},400,()=>{this.createNavigationObserver(),this.isClicking=!1}),$(this.$el).find(".customer-nav__nav-item").removeClass("active");let s=$(this.$el).find(`.customer-nav__nav-link[href='#item-${e.id}']`);s.length&&s.parent().addClass("active")})},createNavigationObserver(){this.$nextTick().then(()=>{const e=new IntersectionObserver(a=>{a.forEach(t=>{if(t.isIntersecting&&!this.isClicking){let i=t.target.id,s=$(this.$el).find(`.customer-nav__nav-link[href='#${i}']`).parent();s.siblings().removeClass("active"),s.addClass("active")}})},{threshold:$(window).width()<1339?.2:.3});this.observer=e,document.querySelectorAll(".customer__content-wrapper > div").forEach(a=>{e.observe(a)})})},customerSticky(){let e=$(this.$el).find(".customer-nav__wrapper"),a=$(this.$el).closest(".section.customer"),t=gsap.matchMedia();t.add("(min-width: 1200px)",()=>{gsap.timeline({scrollTrigger:{trigger:e,start:"top center",end:"top center",markers:!1,ease:"power4.inOut",scrub:.01}}).set(e,{opacity:0}
25).to(e,{opacity:1})}),t.add("(min-width: 320px) and (max-width: 1199px)",()=>{gsap.timeline({scrollTrigger:{trigger:a,start:"top top",end:"bottom bottom",markers:!1,toggleActions:"play none none reverse",onLeave:()=>{gsap.set(e,{opacity:0})},onEnterBack:()=>{gsap.set(e,{opacity:1})}}}).set(e,{opacity:0}).to(e,{opacity:1,duration:0})})}}},ts=es,Me=(0,d.Z)(ts,Oe,Ji,!1,null,null,null);if(!1)var ho;Me.options.__file="app/resources/vue/components/customer-expericence/CustomerTab.vue";var as=Me.exports,Fe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div")},is=[];Fe._withStripped=!0;var ss={props:{id:{type:String,required:!0},selected:{type:Boolean,default:!1}},mounted(){let e=`${this.id}`,a=this.$slots.title,t=this.$slots.default,i=this.selected;this.$parent.items.push({id:e,title:a,body:t,selected:i}),$(this.$el).remove()}},rs=ss,je=(0,d.Z)(rs,Fe,is,!1,null,null,null);if(!1)var vo;je.options.__file="app/resources/vue/components/customer-expericence/CustomerItem.vue";var ns=je.exports,Re=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"business-value-wrapper"},[t("div",{staticClass:"business-value"},[t("div",{staticClass:"business-value__year-items"},[e._t("years")],2),e._v(" "),t("div",{staticClass:"business-value__body"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[e._t("content")],2)])])]),e._v(" "),e._m(0)])])},os=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"business-value__progress-wrapper"},[t("div",{staticClass:"business-value__progress"})])}];Re._withStripped=!0;var ls={mounted(){this.initProgressAnimation(),this.initYearBadgeAnimation()},methods:{initProgressAnimation(){ScrollTrigger.create({trigger:".business-value__progress-wrapper",scrub:!0,start:"top 50%",end:"bottom 50%",markers:!1,onUpdate:e=>{gsap.to($(".business-value__progress"),{height:`${e.progress*100}%`})}})},initYearBadgeAnimation(){ScrollTrigger.batch($(this.$el).find(".business-value__bullet"),{scrub:!0,start:"top 50%",end:"bottom 50%",onEnter:e=>{$(this.$el).find(".business-value__item").removeClass("active"),$(e).addClass("active")},onLeaveBack:e=>{$(this.$el).find(".business-value__item:not(:first-child)").removeClass("active"),$(e).removeClass("active")}})}}},cs=ls,Ne=(0,d.Z)(cs,Re,os,!1,null,null,null);if(!1)var mo;Ne.options.__file="app/resources/vue/components/BusinessValue.vue";var ds=Ne.exports,qe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"financial-info"},[t("div",{staticClass:"financial-info__wrapper"},[t("button",{staticClass:"financial-info__button d-none d-md-block"},[t("span",{staticClass:"financial-info__button-title"},[e._v(e._s(e.buttonTitle))]),e._v(" "),t("span",{class:["financial-info__button-icon",e.buttonIcon]})]),e._v(" "),t("div",{staticClass:"financial-info__body-wrapper"},[e._t("content"),e._v(" "),t("button",{staticClass:"financial-info__button d-block d-md-none"},[t("span",{staticClass:"financial-info__button-title"},[e._v(e._s(e.buttonTitle))]),e._v(" "),t("span",{class:["financial-info__button-icon",e.buttonIcon]})]),e._v(" "),t("div",{staticClass:"financial-info__chart"},[e._t("chart")],2),e._v(" "),t("div",{staticClass:"financial-info__table"},[e._t("default")],2)],2)])])},us=[];qe._withStripped=!0;var _s={props:{buttontable:{type:String},buttonchart:{type:String}},data(){return{isTableActive:!1}},mounted(){let e=$(this.$el).find(".financial-info__button"),a=$(this.$el).find(".financial-info__table"),t=$(this.$el).find(".financial-info__chart");e.on("click",()=>{this.isTableActive=!this.isTableActive,a.toggleClass("active"),this.isTableActive?t.addClass("fade"):t.removeClass("fade")})},computed:{buttonTitle(){return this.isTableActive?this.buttonchart:this.buttontable},buttonIcon(){return this.isTableActive?"icon-chart":"icon-table"}}},ps=_s,Be=(0,d.Z)(ps,qe,us,!1,null,null,null);if(!1)var fo;Be.options.__file="app/resources/vue/components/FinancialInfo.vue";var hs=Be.exports,Ve=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"project-map"},[e._t("default")],2)},vs=[];Ve._withStripped=!0;var ms={props:["projects","trans"],mounted(){this.init(),this.initDebugTool()},methods:{init(){$(this.$el).mapplic({source:this.getSource(),customcss:".mapplic-filtered svg [id^=landmark] > * {opacity: 1 !important; }",sidebar:!0,sidebartoggle:!0,alphabetic:!0,height:this.getMapHeight(),developer:this.isDebugMode(),minimap:!1,highlight:!1,marker:"hidden",fillcolor:!1,fullscreen:!0,thumbholder:!1,search:!1,maxscale:5})},initDebugTool(){$(document).on("mousemove",".mapplic-layer",function(e){var a=$(".mapplic-map"),t=(e.pageX-a.offset().left)/a.width(),i=(e.pageY-a.offset().top)/a.height();$(".mapplic-coordinates-x").text(parseFloat(t).toFixed(4)),$(".mapplic-coordinates-y").text(parseFloat(i).toFixed(4))})},isDebugMode(){return new URLSearchParams(window.location.search).get("debug")!==null},getMapHeight(){let e=window.innerWidth;return e<=576?300:e<=768?500:e<=1440?600:700},getSource(){return{mapwidth:"1038",mapheight:"513",defaultstyle:"light",styles:[],levels:[{id:"ground-floor",title:"Ground Floor",map:"/storage/projects/map/world.svg",minimap:"",show:"true",locations:this.getLocations()}]}},getLocations(){return this.projects.map(e=>({id:e.slug,title:e.title,pin:"mapplic-pin",x:e.coordinate_x,y:e.coordinate_y,description:this.getDescription(e),zoom:"3"}))},getDescription(e){return e.body!==null&&e.body!==""?` 26 <div class="mapplic-tooltip__excerpt">${e.excerpt}</div> 27 <a href="javascript:;" data-toggle="modal" data-target="#project-${e.slug}" class="btn btn--document">
28 <span class="btn__title">${this.trans["explore.more"]}</span> 29 <img src="/storage/icon/button/read-more.svg" alt="" class="btn__icon"> 30 </a> 31 `:` 32 <div class="mapplic-tooltip__excerpt">${e.excerpt}</div> 33 `}}},fs=ms,He=(0,d.Z)(fs,Ve,vs,!1,null,null,null);if(!1)var go;He.options.__file="app/resources/vue/components/map/ProjectMap.vue";var gs=He.exports,Ye=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",[e._v(e._s(e.counterNumber))])},ys=[];Ye._withStripped=!0;var bs={props:{startNumber:{type:Number,default:0},number:{type:Number,required:!0},format:{type:String,default:"0,0"},duration:{type:Number,default:1}},data(){return{isAnimated:!1,counterNumber:0}},mounted(){this.init(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.isAnimated=!0,this.animate()})},init(){new IntersectionObserver(a=>{a[0].isIntersecting&&!this.isAnimated&&(this.isAnimated=!0,this.animate())},{threshold:.5}).observe($(this.$el)[0])},animate(){let e={value:this.startNumber};gsap.to(e,this.duration,{value:this.number,onUpdate:()=>{this.counterNumber=h()(e.value).format(this.format)}})}}},Cs=bs,ze=(0,d.Z)(Cs,Ye,ys,!1,null,null,null);if(!1)var yo;ze.options.__file="app/resources/vue/components/animated/CounterNumber.vue";var ws=ze.exports,Ze=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("IOdometer",{attrs:{value:e.value,format:e.format,duration:e.duration*1e3}})},$s=[];Ze._withStripped=!0;var ks=u(1054),xs=u.n(ks),Ss={components:{IOdometer:xs()},props:{startNumber:{type:Number,default:0},number:{type:Number,required:!0},format:{type:String,default:"(,ddd)"},duration:{type:Number,default:3}},data(){return{value:this.startNumber}},mounted(){this.init()},methods:{init(){new IntersectionObserver(a=>{a[0].isIntersecting&&!this.isAnimated&&(this.isAnimated=!0,this.animate())},{threshold:.5}).observe($(this.$el)[0])},animate(){this.value=this.number}}},Ts=Ss,We=(0,d.Z)(Ts,Ze,$s,!1,null,null,null);if(!1)var bo;We.options.__file="app/resources/vue/components/animated/RollingNumber.vue";var Ds=We.exports,Ge=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"text-slider"},[e._t("default")],2)},Is=[];Ge._withStripped=!0;var As={mounted(){let e=$(this.$el).find(".text-slider__left"),a=$(this.$el).find(".text-slider__right");gsap.set(e,{xPercent:-100},0),gsap.set(a,{xPercent:100},0),gsap.timeline({scrollTrigger:{trigger:this.$el,start:()=>"-200% center",end:()=>"bottom center",markers:!1,scrub:1}}).to(e,{xPercent:0},0).to(a,{xPercent:0},0)}},Ps=As,Ue=(0,d.Z)(Ps,Ge,Is,!1,null,null,null);if(!1)var Co;Ue.options.__file="app/resources/vue/components/animated/TextSlider.vue";var Es=Ue.exports,Qe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("object",{attrs:{data:e.data}},[t("img",{attrs:{src:e.data,alt:""}})])},Ls=[];Qe._withStripped=!0;var Os={props:["data"],data(){return{isAnimated:!1}},mounted(){this.init()},methods:{init(){let e=$(this.$el).attr("class");$(this.$el).find("img").addClass(e),this.$el.addEventListener("load",()=>{new IntersectionObserver(t=>{t[0].isIntersecting&&!this.isAnimated&&(this.isAnimated=!0,this.animate())},{threshold:.35}).observe($(this.$el)[0])})},animate(){this.$el.contentDocument.getElementsByTagName("svg")[0].svgatorPlayer.ready(a=>{a.play()})}}},Ms=Os,Ke=(0,d.Z)(Ms,Qe,Ls,!1,null,null,null);if(!1)var wo;Ke.options.__file="app/resources/vue/components/animated/Svgo.vue";var Fs=Ke.exports,Xe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"rive"},[t("canvas",{ref:"riveCanvas",staticClass:"rive__canvas"})])},js=[];Xe._withStripped=!0;var Je=u(1242),Rs=Object.defineProperty,et=Object.getOwnPropertySymbols,Ns=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,tt=(e,a,t)=>a in e?Rs(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,at=(e,a)=>{for(var t in a||(a={}))Ns.call(a,t)&&tt(e,t,a[t]);if(et)for(var t of et(a))qs.call(a,t)&&tt(e,t,a[t]);return e},Bs={data(){return{rive:null,isAnimated:!1}},props:{src:String,fit:String,theme:String,alignment:String,autoplay:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},loop:{type:Boolean,default:!0},playWhenVisible:{type:Boolean,default:!0}},mounted(){let e={"play-on-hover":this.playOnHoverConfig()};this.init(e[this.theme]),this.onResize()},methods:{iniFluid(){this.fluid&&($(this.$el).addClass("rive--fluid"),$(this.$el).css({"padding-top":this.rive.artboard.bounds.maxY/this.rive.artboard.bounds.maxX*100+"%"}))},playOnHoverConfig(){return{onLoad:()=>{this.$el.addEventListener("mouseenter",e=>this.rive.play()),this.$el.addEventListener("mouseleave",e=>this.rive.reset()),this.$el.addEventListener("touchstart",e=>this.rive.play()),this.$el.addEventListener("touchend",e=>this.rive.reset())}}},defaultConfig(){return{canvas:this.$refs.riveCanvas,src:this.src,layout:new Je.Layout({fit:this.fit,alignment:this.alignment}),autoplay:this.autoplay,onLoad:()=>{this.setResolution(),this.setPlayWhenVisible()},onLoop:()=>{this.loop||this.rive.pause()}}},setPlayWhenVisible(){this.playWhenVisible&&new IntersectionObserver(a=>{a[0].isIntersecting&&!this.isAnimated&&(this.isAnimated=!0,this.rive.play())},{threshold:.2}).observe(this.$el)},init(e){this.rive=new Je.Rive(at(at({},this.defaultConfig()),e))},setResolution(){this.iniFluid();let e=this.$el.getBoundingClientRect(),a=e.width.toFixed(),t=e.height.toFixed();$(this.$el).find(".rive__canvas").attr({width:a,height:t}),this.rive.resizeDrawingSurfaceToCanvas()},onResize(){new ResizeObserver(a=>{for(let t of a)this.setResolution()}).observe(this.$el)}}},Vs=Bs,it=(0,d.Z)(Vs,Xe,js,!1,null,null,null);if(!1)var $o;
33it.options.__file="app/resources/vue/components/animated/Rive.vue";var Hs=it.exports,st=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("lottie-player",{ref:this.id,attrs:{id:this.id}})},Ys=[];st._withStripped=!0;var zs=u(7324),Zs={props:{theme:{type:String},id:{type:String}},mounted(){let e={"play-when-visible":this.playWhenVisibleConfig(),"play-on-scrolling":this.playOnScrollingConfig()};this.$refs[this.id].addEventListener("load",()=>{(0,zs.Ue)(e[this.theme])})},methods:{playWhenVisibleConfig(){return{player:`#${this.id}`,mode:"scroll",actions:[{type:"playOnce",visibility:[.1,1]}]}},playOnScrollingConfig(){return{player:`#${this.id}`,mode:"scroll",actions:[{visibility:[0,1],type:"seek",frames:[0,60]}]}}}},Ws=Zs,rt=(0,d.Z)(Ws,st,Ys,!1,null,null,null);if(!1)var ko;rt.options.__file="app/resources/vue/components/animated/LottieInteractive.vue";var Gs=rt.exports,nt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"modal-body__img-wrapper-sticky"},[e._t("default")],2)},Us=[];nt._withStripped=!0;var Qs={mounted(){ScrollTrigger.matchMedia({"(min-width: 1000px)":()=>{gsap.timeline({scrollTrigger:{trigger:"section",start:"-=100% center",end:"bottom top",markers:!1,pin:".modal-body__img-wrapper-sticky",pinSpacing:!1}})}})}},Ks=Qs,ot=(0,d.Z)(Ks,nt,Us,!1,null,null,null);if(!1)var xo;ot.options.__file="app/resources/vue/components/animated/MapElementSticky.vue";var Xs=ot.exports,lt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"calculator"},[t("div",{staticClass:"calculator-wrapper"},[t("div",{staticClass:"calculator-form"},[t("form",[t("div",{staticClass:"form-group"},[t("label",{staticClass:"calculator-form__label label"},[e._v(e._s(e.trans["investment.date"]))]),e._v(" "),t("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(i){var s=i.on,r=i.attrs;return[t("v-text-field",e._g(e._b({attrs:{value:e.displayInvestmentDate,readonly:"",placeholder:"DD/MM/YYYY","prepend-inner-icon":"fas fa-calendar-alt"}},"v-text-field",r,!1),s))]}}]),model:{value:e.isInvestmentDatePickerVisible,callback:function(i){e.isInvestmentDatePickerVisible=i},expression:"isInvestmentDatePickerVisible"}},[e._v(" "),t("v-date-picker",{attrs:{color:"picker-bg-color",min:e.minDate,max:e.maxDate,locale:e.getDatePickerLocale(),"allowed-dates":e.isDateAllowed},on:{input:function(i){return e.closeInvestmentDatePicker()}},model:{value:e.investmentDate,callback:function(i){e.investmentDate=i},expression:"investmentDate"}})],1)],1),e._v(" "),t("label",{staticClass:"calculator-form__label label",attrs:{for:"investmentValue"}},[e._v(e._s(e.trans["investment.by"]))]),e._v(" "),t("div",{staticClass:"form-group"},[t("div",{staticClass:"custom-control custom-radio custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.investmentType,expression:"investmentType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"typeShares",name:"type",value:"shares",checked:""},domProps:{checked:e._q(e.investmentType,"shares")},on:{change:function(i){e.investmentType="shares"}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"typeShares"}},[e._v(e._s(e.trans.shares))])]),e._v(" "),t("div",{staticClass:"custom-control custom-radio custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.investmentType,expression:"investmentType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"typeAmount",name:"type"},domProps:{checked:e._q(e.investmentType,null)},on:{change:function(i){e.investmentType=null}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"typeAmount"}},[e._v(e._s(e.trans["investment.amount"]))])])]),e._v(" "),t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.investmentValue,expression:"investmentValue"}],staticClass:"calculator-form__form-control form-control",attrs:{type:"text",id:"investmentValue"},domProps:{value:e.investmentValue},on:{input:function(i){i.target.composing||(e.investmentValue=i.target.value)}}})])])]),e._v(" "),t("div",{staticClass:"calculator-results"},[t("h5",{staticClass:"calculator-results__heading"},[t("strong",[e._v(e._s(e.trans["estimated.investment.return"]))])]),e._v(" "),t("div",{staticClass:"calculator-results__item"},[t("div",{staticClass:"calculator-results__title"},[e._v(` 34 `+e._s(e.trans.volume)+` 35 (`+e._s(e.trans.shares)+`) 36 `)]),e._v(" "),t("div",{staticClass:"calculator-results__text"},[e._v(` 37 `+e._s(e._f("numeralFormat")(e.volume,"0,0.00"))+` 38 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item"},[t("div",{staticClass:"calculator-results__title"},[e._v(e._s(e.trans["investment.value"])+" ("+e._s(e.trans.baht)+`) 39 `)]),e._v(" "),t("div",{staticClass:"calculator-results__text"},[e._v(` 40 `+e._s(e._f("numeralFormat")(e.startValue,"0,0.00"))+` 41 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item"},[t("div",{staticClass:"calculator-results__title"},[e._v(e._s(e.trans["present.value"])+" ("+e._s(e.trans.baht)+")")]),e._v(" "),t("div",{staticClass:"calculator-results__text"},[e._v(` 42 `+e._s(e._f("numeralFormat")(e.presentValue,"0,0.00"))+` 43 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item calculator-results__item--return"},[t("div",{staticClass:"calculator-results__title"},[e._v(` 44 `+e._s(e.trans["percent.return"])+` 45 `)]),e._v(" "),t("div",{staticClass:"calculator-results__text"},[e._v(` 46 `+e._s(e._f("numeralFormat")(e.capitalGainPercent,"0,0.00"))+`% 47 (`+e._s(e._f("numeralFormat")(e.capitalGainValue,"0,0.00"))+" "+e._s(e.trans.baht)+`) 48 `)])])])]),e._v(" "),t("div",{staticClass:"calculator-chart"},[t("calculator-chart",{attrs:{quotes:e.quotesWithInvestmentValue(),trans:e.trans,locale:e.locale}}),e._v(" "),e._t("remark")],2)])},Js=[];lt._withStripped=!0;var er=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{c(t.next(n))}
48catch(p){s(p)}},o=n=>{try{c(t.throw(n))}catch(p){s(p)}},c=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,o);c((t=t.apply(e,a)).next())}),tr={props:["trans","locale"],data(){return{isInvestmentDatePickerVisible:!1,investmentType:"shares",investmentDate:null,investmentValue:1e3,quotes:null}},mounted(){this.init()},computed:{dateFormat(){return"YYYY-MM-DD"},yesterdayDate(){return this.quotes?_.last(this.quotes).date:null},lastDoneOnYesterdayDate(){return this.lastDoneByDate(this.yesterdayDate)},lastDoneOnStartDate(){return this.lastDoneByDate(this.investmentDate)},volume(){return this.investmentType==="shares"?this.investmentValue:this.investmentValue/this.lastDoneOnStartDate},presentValue(){return this.volume*this.lastDoneOnYesterdayDate},startValue(){return this.volume*this.lastDoneOnStartDate},capitalGainValue(){return this.presentValue-this.startValue},capitalGainPercent(){return this.capitalGainValue/this.startValue*100},minDate(){if(this.quotes){let e=_.first(this.quotes).date;return moment(e,this.dateFormat).format("YYYY-MM-DD")}return null},maxDate(){let e=this.yesterdayDate;return moment(e,this.dateFormat).format("YYYY-MM-DD")},availableDates(){return _.map(this.quotes,e=>e.date)},displayInvestmentDate(){return this.quotes?this.formatDisplayDate(this.investmentDate,this.locale):null}},methods:{init(){return er(this,null,function*(){let e=yield v().get("/api/stock/historical-quotes");this.quotes=e.data.data.reverse(),this.investmentDate=this.defaultInvestmentDate()})},closeInvestmentDatePicker(){this.isInvestmentDatePickerVisible=!1},defaultInvestmentDate(){return _.first(this.quotes).date},quotesWithInvestmentValue(){return _.filter(this.quotes,e=>moment(e.date,"YYYY-MM-DD").isSameOrAfter(moment(this.investmentDate,"YYYY-MM-DD"))).map(e=>[e.date,e.close*this.volume])},formatDisplayDate(e,a){return this.$options.filters.dateFormat(e,"YYYY-MM-DD","DD/MM/YYYY",a)},lastDoneByDate(e){let a=_.find(this.quotes,t=>e===t.date);return a?a.close:0},isDateAllowed(e){return this.availableDates.includes(e)},getDatePickerLocale(){return this.locale==="th"?"th-th":"en-gb"}}},ar=tr,ct=(0,d.Z)(ar,lt,Js,!1,null,null,null);if(!1)var So;ct.options.__file="app/resources/vue/components/widgets/calculator/Calculator.vue";var ir=ct.exports,dt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"calculator-chart__echarts"})},sr=[];dt._withStripped=!0;var rr={props:["quotes","trans","locale"],data(){return{chart:Object}},mounted(){this.createChart(),this.showLoadingIndicator(),this.resizeChart()},watch:{quotes(e,a){e!==a&&this.refreshChartOptions()}},computed:{styleConfig(){return{loading:{color:"hsla(15, 88%, 54%, 1)",maskColor:"rgba(255, 255, 255, 1)"},series:{priceAreaColor:"hsla(14, 91%, 93%, 0.6)",priceColor:"hsla(15, 88%, 54%, 1)"},xAxis:{splitLineColor:["#eaeaea"]},yAxis:{splitLineColor:["#eaeaea"]}}}},methods:{dates(){return _.map(this.quotes,e=>e[0])},refreshChartOptions(){this.chart.setOption(this.chartOptions())},formatDisplayDate(e,a){return this.$options.filters.dateFormat(e,"YYYY-MM-DD","DD/MM/YYYY",a)},createChart(){this.chart=echarts.init($(this.$el).get(0))},chartOptions(){return{baseOption:{tooltip:{trigger:"axis",borderWidth:0,padding:0,confine:!0,formatter:e=>this.getTooltip(e)},grid:[{left:"4%",right:"3%"}],xAxis:{data:this.dates(),scale:!1,splitLine:{show:!0,lineStyle:{color:this.styleConfig.xAxis.splitLineColor}},minInterval:10,axisPointer:{z:100},axisLabel:{formatter:e=>this.formatDisplayDate(e,this.locale)}},yAxis:{scale:!0,splitLine:{show:!0,lineStyle:{color:this.styleConfig.yAxis.splitLineColor}},position:"right",axisLabel:{formatter:(e,a)=>h()(e).format("0,000a")}},series:[{data:this.quotes,type:"line",showSymbol:!1,itemStyle:{color:this.styleConfig.series.priceColor},areaStyle:{color:this.styleConfig.series.priceAreaColor},emphasis:{itemStyle:{color:"inherit"},areaStyle:{color:"inherit"}}}]},media:[{query:{maxWidth:1024},option:{grid:[{left:"6%",right:"8%"}]}},{query:{maxWidth:568},option:{grid:[{left:"6%",right:"8%"}],xAxis:[{axisLabel:{textStyle:{fontSize:8}}}],yAxis:[{axisLabel:{textStyle:{fontSize:8}}}]}}]}},getTooltip(e){let[a,t]=e[0].data,i=this.formatDisplayDate(a,this.locale);return` 49 <div class="echarts-tooltip"> 50 <div class="echarts-tooltip__header">${this.trans.symbol}: ${this.trans.thb}</div> 51 <div class="echarts-tooltip__volume">${this.trans.value}: ${h()(t).format("0,0.00")}</div> 52 <div class="echarts-tooltip__last-updated">${i}</div> 53 </div> 54 `},showLoadingIndicator(){let e={color:this.styleConfig.loading.color,maskColor:this.styleConfig.loading.maskColor};this.chart.showLoading(e),setTimeout(()=>{this.chart.hideLoading()},1e3)},resizeChart(){$(window).on("resize",()=>{let e=$(this.$el).attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()})}}},nr=rr,ut=(0,d.Z)(nr,dt,sr,!1,null,null,null);if(!1)var To;ut.options.__file="app/resources/vue/components/widgets/calculator/CalculatorChart.vue";var or=ut.exports,_t=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"stock-chart"},[t("div",{staticClass:"stock-chart__filter"},[t("div",{staticClass:"stock-chart__type"},[t("div",{staticClass:"stock-chart__type-title"},[e._v(e._s(e.trans["stock.chart.type"])+": ")]),e._v(" "),t("div",{staticClass:"stock-chart__type-option"},[t("div",{staticClass:"custom-control custom-radio stock-chart__type-radio"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.chartType,expression:"chartType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"chartTypeLine"},domProps:{value:e.defaultChartType.LINE,checked:e._q(e.chartType,e.defaultChartType.LINE)},on:{change:function(i){e.chartType=e.defaultChartType.LINE}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"chartTypeLine"}},[e._v(e._s(e.trans["stock.chart.type.line"]))])]),e._v(" "),t("div",{staticClass:"custom-control custom-radio stock-chart__type-radio"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.chartType,expression:"chartType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"chartTypeCandlestick"},domProps:{value:e.defaultChartType.CANDLESTICK,checked:e._q(e.chartType,e.defaultChartType.CANDLESTICK)},on:{change:function(i){e.chartType=e.defaultChartType.CANDLESTICK}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"chartTypeCandlestick"}},[e._v(e._s(e.trans["stock.chart.type.candlestick"]))])]),e._v(" "),t("div",{staticClass:"custom-control custom-radio stock-chart__type-radio"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.chartType,expression:"chartType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"chartTypeOhlc"},domProps:{value:e.defaultChartType.OHLC,checked:e._q(e.chartType,e.defaultChartType.OHLC)},on:{change:function(i){e.chartType=e.defaultChartType.OHLC}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"chartTypeOhlc"}},[e._v(e._s(e.trans["stock.chart.type.ohlc"]))])])])]),e._v(" "),t("div",{staticClass:"stock-chart__date-range date-range"},[t("div",{staticClass:"date-range__title"},[e._v(e._s(e.trans["focus.on"])+": ")]),e._v(" "),t("div",{staticClass:"date-range__option"},[t("button",{staticClass:"date-range__button",class:{active:e.filterType==="1M"},on:{click:function(i){return e.focusOnOneMonth()}}},[e._v("1M")]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="3M"},on:{click:function(i){return e.focusOnThreeMonth()}}},[e._v("3M")]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="YTD"},on:{click:function(i){return e.focusOnYTD()}}},[e._v("YTD")]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="1Y"},on:{click:function(i){return e.focusOnOneYear()}}},[e._v("1Y")]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="2Y"},on:{click:function(i){return e.focusOnTwoYear()}}},[e._v("2Y")])])]),e._v(" "),t("div",{staticClass:"stock-chart__calendar-picker calendar-picker"},[t("div",{staticClass:"calendar-picker__form-group form-group"},[t("div",{staticClass:"calendar-picker__title"},[e._v(e._s(e.trans["period.from"])+": ")]),e._v(" "),t("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"250px"},scopedSlots:e._u([{key:"activator",fn:function(i){var s=i.on,r=i.attrs;return[t("v-text-field",e._g(e._b({attrs:{value:e.displayStartDate,readonly:"","append-icon":"fas fa-caret-down",placeholder:"DD/MM/YYYY"}},"v-text-field",r,!1),s))]}}]),model:{value:e.isStartDatePickerVisible,callback:function(i){e.isStartDatePickerVisible=i},expression:"isStartDatePickerVisible"}},[e._v(" "),t("v-date-picker",{attrs:{color:"picker-bg-color",min:e.minDate,max:e.maxDate,locale:e.getDatePickerLocale(),"allowed-dates":e.isDateAllowed},on:{input:function(i){return e.closeStartDatePicker()}},model:{value:e.startDate,callback:function(i){e.startDate=i},expression:"startDate"}})],1)],1),e._v(" "),t("div",{staticClass:"calendar-picker__form-group form-group"},[t("div",{staticClass:"calendar-picker__title"},[e._v(" "+e._s(e.trans.to))]),e._v(" "),t("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"250px"},scopedSlots:e._u([{key:"activator",fn:function(i){var s=i.on,r=i.attrs;return[t("v-text-field",e._g(e._b({attrs:{value:e.displayEndDate,readonly:"","append-icon":"fas fa-caret-down",placeholder:"DD/MM/YYYY"}},"v-text-field",r,!1),s))]}}]),model:{value:e.isEndDatePickerVisible,callback:function(i){e.isEndDatePickerVisible=i},expression:"isEndDatePickerVisible"}},[e._v(" "),t("v-date-picker",{attrs:{color:"picker-bg-color",min:e.minDate,max:e.maxDate,locale:e.getDatePickerLocale(),"allowed-dates":e.isDateAllowed},on:{input:function(i){return e.closeEndDatePicker()}}
54,model:{value:e.endDate,callback:function(i){e.endDate=i},expression:"endDate"}})],1)],1)])]),e._v(" "),t("div",{staticClass:"stock-chart__echarts"}),e._v(" "),e._t("remark")],2)},lr=[];_t._withStripped=!0;var cr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{c(t.next(n))}catch(p){s(p)}},o=n=>{try{c(t.throw(n))}catch(p){s(p)}},c=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,o);c((t=t.apply(e,a)).next())}),dr={props:["locale","trans"],data(){return{isStartDatePickerVisible:!1,isEndDatePickerVisible:!1,quotes:null,chart:null,startDate:null,endDate:null,filterType:"2Y",chartType:"line"}},watch:{startDate(e,a){e!==a&&this.chart.dispatchAction({type:"dataZoom",startValue:e,endValue:this.endDate})},endDate(e,a){e!==a&&this.chart.dispatchAction({type:"dataZoom",startValue:this.startDate,endValue:e})},chartType(e,a){e!==a&&this.rebuildChart()}},computed:{styleConfig(){return{loading:{color:"hsla(15, 88%, 54%, 1)",maskColor:"rgba(255, 255, 255, 0.5)"},series:{volumeColor:"hsla(15, 88%, 54%, 1)",priceAreaColor:"hsla(14, 91%, 95%, 1)",priceColor:"hsla(15, 88%, 54%, 1)"},dataZoom:{lineColor:"hsla(15, 88%, 54%, 1)",areaBgColor:"hsla(15, 88%, 54%, .5)",fillerBgColor:"rgba(255, 255, 255, 0.15)",borderColor:"rgba(255,255,255,0)",handleStyle:{color:"#ffffff",moveHandleColor:"hsla(14, 91%, 95%, 1)",borderColor:"hsla(15, 88%, 54%, 1)"},selectedDataBackground:{lineColor:"hsla(15, 88%, 54%, 1)",areaBgColor:"hsla(14, 91%, 95%, .2)"}},xAxis:{splitLineColor:["#eaeaea"]},yAxis:{splitLineColor:["#eaeaea"]},isPriceUpColor:"#3AA437",isPriceDownColor:"#ec0000"}},dateFormat(){return"YYYY-MM-DD"},defaultChartType(){return{LINE:"line",CANDLESTICK:"candlestick",OHLC:"ohlc"}},dates(){return this.quotes.map(e=>e.date)},volume(){return this.quotes.map(e=>e.volume)},minDate(){return this.quotes?_.first(this.quotes).date:null},maxDate(){return this.quotes?_.last(this.quotes).date:null},availableDates(){return _.map(this.quotes,e=>e.date)},displayStartDate(){return this.quotes?this.formatDisplayDate(this.startDate,this.locale):null},displayEndDate(){return this.quotes?this.formatDisplayDate(this.endDate,this.locale):null}},mounted(){this.init()},methods:{init(){return cr(this,null,function*(){let e=yield v().get("/api/stock/historical-quotes");this.quotes=e.data.data.reverse(),this.startDate=this.minDate,this.endDate=this.maxDate,this.createChart(),this.showLoadingIndicator(),this.resizeChart()})},closeStartDatePicker(){this.isStartDatePickerVisible=!1},closeEndDatePicker(){this.isEndDatePickerVisible=!1},setCustomFilterType(){this.filterType=""},formatDisplayDate(e,a){return this.$options.filters.dateFormat(e,"YYYY-MM-DD","DD/MM/YYYY",a)},createChart(){this.chart=echarts.init($(this.$el).find(".stock-chart__echarts").get(0)),this.chart.setOption(this.chartOptions()),this.chart.on("datazoom",e=>{let a=this.chart.getModel().option.xAxis[0];a.rangeStart!=null&&(this.startDate=a.data[a.rangeStart]),a.rangeEnd!=null&&(this.endDate=a.data[a.rangeEnd])})},showLoadingIndicator(){let e={color:this.styleConfig.loading.color,maskColor:this.styleConfig.loading.maskColor};this.chart.showLoading(e),setTimeout(()=>{this.chart.hideLoading()},800)},setStartDateToMaxDate(){this.endDate=this.maxDate},focusOnOneMonth(){this.setStartDateToMaxDate();let e=moment(this.endDate,this.dateFormat).subtract("1","month").format(this.dateFormat);this.startDate=this.findValidStartDate(e),this.filterType="1M"},focusOnThreeMonth(){this.setStartDateToMaxDate();let e=moment(this.endDate,this.dateFormat).subtract("3","month").format(this.dateFormat);this.startDate=this.findValidStartDate(e),this.filterType="3M"},focusOnYTD(){this.setStartDateToMaxDate();let e=moment(this.endDate,this.dateFormat).startOf("year").format(this.dateFormat);this.startDate=this.findValidStartDate(e),this.filterType="YTD"},focusOnOneYear(){this.setStartDateToMaxDate();let e=moment(this.endDate,this.dateFormat).subtract("1","year").format(this.dateFormat);this.startDate=this.findValidStartDate(e),this.filterType="1Y"},focusOnTwoYear(){this.setStartDateToMaxDate();let e=moment(this.endDate,this.dateFormat).subtract("2","year").format(this.dateFormat);this.startDate=this.findValidStartDate(e),this.filterType="2Y"},findValidStartDate(e){let a=_.find(this.quotes,{date:e});if(a)return a.date;let t=moment(e,this.dateFormat).add(1,"days").format(this.dateFormat);return this.findValidStartDate(t)},chartOptions(){return{baseOption:{animation:!0,tooltip:{trigger:"axis",borderWidth:0,confine:!0,padding:0,formatter:e=>this.getTooltip(e),extraCssText:"border-radius: 24px;"},axisPointer:{link:{xAxisIndex:"all"},label:{formatter:e=>this.formatDisplayDate(e,this.locale)}},grid:[{left:"4%",right:"5%",height:"50%"},{left:"4%",right:"5%",top:"65%",height:"20%"}],dataZoom:[{type:"inside",xAxisIndex:[0,1],startValue:this.startDate,endValue:this.endDate},{height:"60px",bottom:0,fillerColor:this.styleConfig.dataZoom.fillerBgColor,dataBackgroun
54d:{lineStyle:{color:this.styleConfig.dataZoom.lineColor,width:1},areaStyle:{color:this.styleConfig.dataZoom.areaBgColor}},borderColor:this.styleConfig.dataZoom.borderColor,xAxisIndex:[0,1],handleIcon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",handleSize:"50%",selectedDataBackground:{lineStyle:{color:this.styleConfig.dataZoom.selectedDataBackground.lineColor},areaStyle:{color:this.styleConfig.dataZoom.selectedDataBackground.areaBgColor}},moveHandleStyle:{color:this.styleConfig.dataZoom.handleStyle.moveHandleColor},handleStyle:{color:this.styleConfig.dataZoom.handleStyle.color,borderColor:this.styleConfig.dataZoom.handleStyle.borderColor},emphasis:{moveHandleStyle:{color:this.styleConfig.dataZoom.handleStyle.moveHandleColor},handleStyle:{color:this.styleConfig.dataZoom.handleStyle.color,borderColor:this.styleConfig.dataZoom.handleStyle.borderColor}},labelFormatter:(e,a)=>this.formatDisplayDate(a,this.locale)}],xAxis:[{data:this.dates,boundaryGap:!0,splitLine:{show:!0,lineStyle:{color:this.styleConfig.xAxis.splitLineColor}},axisLine:{onZero:!1},axisTick:{show:!1},axisLabel:{show:!1},axisPointer:{z:100}},{data:this.dates,padding:[0,"100px",0,0],gridIndex:1,boundaryGap:!0,splitLine:{show:!0,lineStyle:{color:this.styleConfig.xAxis.splitLineColor}},axisLabel:{formatter:e=>this.formatDisplayDate(e,this.locale)}}],yAxis:[{scale:!0,splitLine:{show:!0,lineStyle:{color:this.styleConfig.yAxis.splitLineColor}},position:"right"},{scale:!0,gridIndex:1,splitLine:{show:!0,lineStyle:{color:this.styleConfig.yAxis.splitLineColor}},position:"right",axisLine:{show:!0},axisLabel:{formatter:(e,a)=>h()(e).format("0,000a")}}],series:this.getChartSeries()},media:[{query:{maxWidth:1024},option:{grid:[{left:"7%",right:"7%",height:"45%"},{left:"7%",right:"7%",top:"62%",height:"18%"}]}},{query:{maxWidth:568},option:{grid:[{left:"10%",right:"12%",height:"50%"},{left:"10%",right:"12%",top:"68%",height:"14%"}],xAxis:[{},{axisLabel:{textStyle:{fontSize:8}}}],yAxis:[{axisLabel:{textStyle:{fontSize:8}}},{axisLabel:{textStyle:{fontSize:8}}}]}}]}},getTooltip(e){let a=this.chartType;return a===this.defaultChartType.CANDLESTICK?this.getCandlestickTooltip(e):a===this.defaultChartType.OHLC?this.getOHLCTooltip(e):this.getLineTooltip(e)},getLineTooltip(e){let[a,t,i]=e[0].data,s=this.formatDisplayDate(a,this.locale);return` 55 <div class="echarts-tooltip"> 56 <div class="echarts-tooltip__header">${this.trans.symbol}: ${this.trans.thb}</div> 57 <div class="echarts-tooltip__last-done">${h()(t).format("0,0.00")}</div> 58 <div class="echarts-tooltip__volume">${this.trans["volume.shares"]}: ${h()(i).format("0,0.00")}</div> 59 <div class="echarts-tooltip__last-updated">${s}</div> 60 </div> 61 `},getCandlestickTooltip(e){let[a,t,i,s,r,o]=e[0].data,c=e[0].name,n=this.formatDisplayDate(c,this.locale);return` 62 <div class="echarts-tooltip"> 63 <div class="echarts-tooltip__header">${this.trans.symbol}: ${this.trans.thb}</div> 64 <div>${this.trans["price.open"]}: ${h()(i).format("0,0.00")}</div> 65 <div>${this.trans["price.close"]}: ${h()(t).format("0,0.00")}</div> 66 <div>${this.trans["price.low"]}: ${h()(s).format("0,0.00")}</div> 67 <div>${this.trans["price.high"]}: ${h()(r).format("0,0.00")}</div> 68 <div class="echarts-tooltip__volume">${this.trans["volume.shares"]}: ${h()(o).format("0,0.00")}</div> 69 <div class="echarts-tooltip__last-updated">${n}</div> 70 </div> 71 `},getOHLCTooltip(e){return this.getCandlestickTooltip(e)},getChartSeries(){let e=this.chartType;return e===this.defaultChartType.CANDLESTICK?this.getCandlestickChartSeries():e===this.defaultChartType.OHLC?this.getOHLCChartSeries():this.getLineChartSeries()},getLineChartSeries(){let e=this.quotes.map(a=>[a.date,a.close,a.volume]);return[{name:"Stock Chart",data:e,type:"line",showSymbol:!1,itemStyle:{color:this.styleConfig.series.priceColor},areaStyle:{color:this.styleConfig.series.priceAreaColor},emphasis:{itemStyle:{color:"inherit"},areaStyle:{color:"inherit"}}},{data:this.volume,name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:this.styleConfig.series.volumeColor},tooltip:{show:!1}}]},getCandlestickChartSeries(){let e=this.quotes.map(a=>[a.close,a.open,a.low,a.high,a.volume]);return[{name:"Stock Chart",data:e,type:"candlestick",itemStyle:{color:this.styleConfig.isPriceDownColor,color0:this.styleConfig.isPriceUpColor,borderColor:this.styleConfig.isPriceDownColor,borderColor0:this.styleConfig.isPriceUpColor}},{data:this.volume,name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:this.styleConfig.series.volumeColor},tooltip:{show:!1}}]},getOHLCChartSeries(){let e=this.quotes.map((t,i)=>[i,t.close,t.open,t.low,t.high,t.volume]);return[{name:"Stock Chart",data:e,type:"custom",renderItem:(t,i)=>{let s=i.value(0),r=i.coord([s,i.value(1)]),o=i.coord([s,i.value(2)]),c=i.coord([s,i.value(3)]),n=i.coord([s,i.value(4)]),p=i.size([1,0])[0]*.35,L=t.dataIndex,[N,O,M,q,Ut]=e[L],B=O>M,w=i.style({stroke:B?this.styleConfig.isPriceUpColor:this.styleConfig.isPriceDownColor});return{type:"group",children:[{type:"line",shape:{x1:c[0],y1:c[1],x2:n[0],y2:n[1]},style:w},{type:"line",shape:{x1:r[0],y1:r[1],x2:r[0]-p,y2:r[1]},style:w},{type:"line",shape:{x1:o[0],y1:o[1],x2:o[0]+p,y2:o[1]},style:w}]}}},{data:this.volume,name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:this.styleConfig.series.volumeColor},tooltip:{show:!1}}]},resizeChart(){$(window).on("resize",()=>{let e=$(this.$el).find(".stock-chart__echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()})},rebuildChart(){let e=$(this.$el).find(".stock-chart__echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).dispose(),this.createChart()},isDateAllowed(e){return this.availableDates.includes(e)},getDatePickerLocale(){return this.locale==="th"?"th-th":"en-gb"}}},ur=dr,pt=(0,d.Z)(ur,_t,lr,!1,null,null,null);if(!1)var Do;pt.options.__file="app/resources/vue/components/widgets/stock/StockChart.vue";var _r=pt.exports,ht=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"share-price share-price--full"},[t("div",{staticClass:"share-price__wrapper"},[t("div",{staticClass:"share-price__aside"},[t("div",{staticClass:"share-price__item-wrapper share-price__item-wrapper--header"},[t("div",{staticClass:"share-price__symbol"},[e._v(e._s(e.trans["set.symbol"])+": "),t("span",{staticClass:"share-price__company"},[e._v(e._s(e.trans.symbol))])])]),e._v(" "),t("div",{staticClass:"share-price__body"},[t("div",{staticClass:"share-price__last-done"},[e._v(e._s(e._f("numeralFormat")(e.last,"0,0.00"))+" "),t("span",{staticClass:"share-price__currency"},[e._v(e._s(e.trans.thb))])]),e._v(" "),t("div",{staticClass:"share-price__change-wrapper"},[t("div",{staticClass:"share-price__change-value"},[e._v(e._s(e.trans.change)+" ("+e._s(e.trans["percent.change"])+"):")]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(e._s(e.displayChange)+" ("+e._s(e.displayPercentChange)+")")])])])]),e._v(" "),t("div",{staticClass:"share-price__main"},[t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans["volume.shares"]))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(" "+e._s(e._f("numeralFormat")(e.volume,"0,0.00")))])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans["value.baht"]))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(" "+e._s(e._f("numeralFormat")(e.value,"0,0.00")))])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans.prior))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(e._s(e._f("numeralFormat")(e.prior,"0,0.00")))])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans["price.open"]))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(e._s(e._f("numeralFormat")(e.open,"0,0.00")))])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans["days.range"]))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(e._s(e._f("numeralFormat")(e.low,"0,0.00"))+" - "+e._s(e._f("numeralFormat")(e.high,"0,0.00")))])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans["52weeks.range"]))]),e._v(" "),t("div",{staticClass:"share-price__value"},[e._v(e._s(e._f("numeralFormat")(e.low52Weeks,"0,0.00"))+" - "+e._s(e._f("numeralFormat")(e.high52weeks,"0,0.00"))+` 72 `)])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.quote,expression:"quote"}],staticClass:"share-price__updated pt-4"},[e._v(` 73 `+e._s(e.trans["last.updated"])+": "+e._s(e._f("dateFormat")(e.date,"DD-MM-YYYY HH:mm","D MMMM yyyy HH:mm",e.locale))+` 74 `)])])])},pr=[];ht._withStripped=!0;var hr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{c(t.next(n))}
74catch(p){s(p)}},o=n=>{try{c(t.throw(n))}catch(p){s(p)}},c=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,o);c((t=t.apply(e,a)).next())}),vr={props:["locale","trans"],data(){return{quote:null}},mounted(){this.init()},computed:{last(){return this.quote?this.quote.last:null},change(){return this.quote?this.quote.change:null},percentChange(){return this.quote?this.quote.percent_change:null},volume(){return this.quote?this.quote.total_volume:null},value(){return this.quote?this.quote.total_value:null},open(){return this.quote?this.quote.open:null},prior(){return this.quote?this.quote.prior:null},low(){return this.quote?this.quote.low:null},high(){return this.quote?this.quote.high:null},low52Weeks(){return this.quote?this.quote.low_52weeks:null},high52weeks(){return this.quote?this.quote.high_52weeks:null},displayChange(){let e=this.$options.filters.numeralFormat(this.change,"0,0.00");return this.isChangeGreaterThanZero()?`+${e}`:e},displayPercentChange(){let e=this.$options.filters.numeralFormat(this.percentChange,"0,0.00");return this.isChangeGreaterThanZero()?`+${e}%`:`${e}%`},date(){return this.quote?moment(this.quote.date,"YYYY-MM-DD HH:mm").format("DD-MM-YYYY HH:mm"):null}},methods:{init(){return hr(this,null,function*(){let e=yield v().get("/api/stock/realtime-quote");this.quote=e.data.data})},isChangeGreaterThanZero(){return this.change>0}}},mr=vr,vt=(0,d.Z)(mr,ht,pr,!1,null,null,null);if(!1)var Io;vt.options.__file="app/resources/vue/components/widgets/stock/StockQuote.vue";var fr=vt.exports,mt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"resource-center"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row justify-content-between"},[t("div",{staticClass:"col-lg-4 col-xxl-3 resource-center__category-col"},[t("div",{staticClass:"resource-center__category"},[t("form",{ref:"form",staticClass:"form form--resource-center",attrs:{action:e.action}},[t("div",{staticClass:"resource-center__body"},[t("label",{staticClass:"form__label"},[e._v(e._s(e.trans.year)+" :")]),e._v(" "),t("div",{directives:[{name:"dropdown-clickable",rawName:"v-dropdown-clickable"}],staticClass:"dropdown dropdown--resource-center"},[t("button",{staticClass:"dropdown-toggle",attrs:{"data-display":"static",type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[e._v(` 75 `+e._s(e.trans["select.year"])+` 76 `),t("span",{staticClass:"dropdown__toggle-icon"})]),e._v(" "),t("div",{staticClass:"dropdown-menu"},e._l(e.localizedYears,function(i){return t("div",{staticClass:"custom-control custom-checkbox"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.years,expression:"years"}],staticClass:"custom-control-input",attrs:{name:"years[]",type:"checkbox",id:i[0]},domProps:{value:i[0],checked:Array.isArray(e.years)?e._i(e.years,i[0])>-1:e.years},on:{change:function(s){var r=e.years,o=s.target,c=!!o.checked;if(Array.isArray(r)){var n=i[0],p=e._i(r,n);o.checked?p<0&&(e.years=r.concat([n])):p>-1&&(e.years=r.slice(0,p).concat(r.slice(p+1)))}else e.years=c}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:i[0]}},[e._v(e._s(i[1]))])])}),0)])]),e._v(" "),t("div",{staticClass:"resource-center__header",attrs:{role:"button","data-toggle":"collapse","data-target":"#collapseCategory","aria-expanded":"false","aria-controls":"collapseCategory"}},[t("p",{staticClass:"resource-center__headline"},[e._v(` 77 `+e._s(e.trans["type.of.document"])+` 78 `)]),e._v(" "),t("span",{staticClass:"resource-center__header-icon"})]),e._v(" "),t("div",{staticClass:"resource-center__collapse collapse",attrs:{id:"collapseCategory"}},[t("div",{staticClass:"resource-center__wrapper"},[t("p",{staticClass:"resource-center__headline"},[e._v(` 79 `+e._s(e.trans["type.of.document"])+` 80 `)]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"annual-report",value:"annual-report"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"annual-report")>-1:e.categories}
80,on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="annual-report",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"annual-report"}},[e._v(e._s(e.trans["annual.report.form561.one.report"]))])])]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"form-56-1",value:"form-56-1"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"form-56-1")>-1:e.categories},on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="form-56-1",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"form-56-1"}},[e._v(e._s(e.trans["form.56-1"]))])])]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"financial-statement",value:"financial-statement"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"financial-statement")>-1:e.categories},on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="financial-statement",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"financial-statement"}},[e._v(e._s(e.trans["financial.statement"]))])])]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"mdna",value:"mdna"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"mdna")>-1:e.categories},on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="mdna",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"mdna"}},[e._v(e._s(e.trans["management.discussion.and.analysis"]))])])]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"presentation",value:"presentation"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"presentation")>-1:e.categories},on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="presentation",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"presentation"}},[e._v(e._s(e.trans.presentation))])])]),e._v(" "),t("div",{staticClass:"resource-center__form-group form-group"},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.categories,expression:"categories"}],staticClass:"resource-center__custom-control-input custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"webcast",value:"webcast"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"webcast")>-1:e.categories}
80,on:{change:function(i){var s=e.categories,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c="webcast",n=e._i(s,c);r.checked?n<0&&(e.categories=s.concat([c])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=o}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"webcast"}},[e._v(e._s(e.trans.webcast))])])])]),e._v(" "),t("div",{staticClass:"form-group"},[t("div",{staticClass:"resource-center__btn-group btn-group"},[t("a",{staticClass:"resource-center__btn btn",on:{click:function(i){return i.preventDefault(),e.selectAll.apply(null,arguments)}}},[t("span",{staticClass:"resource-center__btn-title btn__title"},[e._v(` 81 `+e._s(e.trans["select.all"])+` 82 `)])]),e._v(" "),t("a",{staticClass:"resource-center__btn btn",on:{click:function(i){return i.preventDefault(),e.reset()}}},[t("span",{staticClass:"resource-center__btn-title btn__title"},[e._v(` 83 `+e._s(e.trans["clear.filter"])+` 84 `)])])])])]),e._v(" "),t("div",{staticClass:"resource-center__submit"},[t("div",{staticClass:"form-group"},[t("button",{staticClass:"btn btn--secondary",attrs:{type:"submit"}},[t("span",{staticClass:"btn__title"},[e._v(e._s(e.trans.search))])])])])])])]),e._v(" "),t("div",{staticClass:"col-lg-8 col-xxl-9 resource-center__body-col"},[t("div",{staticClass:"resource-center__body"},[e._t("default")],2)])])])])},gr=[];mt._withStripped=!0;var yr={props:["data","action","trans"],data(){return{categories:this.data.categories||[],years:this.data.years||[]}},mounted(){},computed:{localizedYears(){return Object.entries(this.data.localizedYears).sort().reverse()}},methods:{isSelectedYear(e){for(let a of this.years)if(parseInt(a)===parseInt(e))return!0;return!1},selectAll(){this.categories.push(...this.data.defaultCategories)},reset(){this.categories=[]},submit(){this.$refs.form.submit()}}},br=yr,ft=(0,d.Z)(br,mt,gr,!1,null,null,null);if(!1)var Ao;ft.options.__file="app/resources/vue/components/widgets/resource-center/ResourceCenter.vue";var Cr=ft.exports,gt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"dropdown dropdown--search-dialog"},[t("button",{staticClass:"dropdown-toggle header__btn-search",class:{disable:!this.isLoaded()},attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","data-display":"static","aria-expanded":"false"}},[t("i",{staticClass:"header__search btn btn__icon btn__icon--search"})]),e._v(" "),t("div",{staticClass:"dropdown-menu"},[t("div",{staticClass:"search-dialog"},[t("div",{staticClass:"search-dialog__body"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row justify-content-center"},[t("div",{staticClass:"col-lg-9 col-xl-8"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col"},[t("div",{staticClass:"search-dialog__title "},[e._v(e._s(e.trans["site.search"]))])]),e._v(" "),e._m(0)]),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"search-dialog__form"},[t("div",{staticClass:"input-group"},[e._m(1),e._v(" "),t("input",{staticClass:"form-control typeahead search-dialog__form-control",attrs:{type:"text",placeholder:e.trans["search.dialog.hint"]}}),e._v(" "),e._t("copyright")],2)])])])])])])])])])])},wr=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"col-auto"},[t("button",{staticClass:"search-dialog__close",attrs:{type:"button"}},[t("i",{staticClass:"fa-light fa-xmark"})])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"input-group-prepend"},[t("span",{staticClass:"input-group-text"},[t("i",{staticClass:"fa-solid fa-magnifying-glass"})])])}];gt._withStripped=!0;var yt=u(8762),$r=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{c(t.next(n))}catch(p){s(p)}},o=n=>{try{c(t.throw(n))}catch(p){s(p)}},c=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,o);c((t=t.apply(e,a)).next())}),kr={props:["trans","locale"],data(){return{fuse:null,perfectScrollbar:null,isShowTextHelper:!1,typeahead:null}},mounted(){this.init()},methods:{init(){this.initTypeahead(),this.onDropdown(),this.dropdownClickable(),this.initData(),this.keydown(),this.focus(),this.close(),this.showTextHelperObserver()},initTypeahead(){this.typeahead=$(this.$el).find(".typeahead"),this.typeahead.typeahead({highlight:!0,hint:!0},{name:"results",limit:100,source:(e,a)=>{this.search(e,a)},templates:{suggestion:e=>`<div><span>${e.item.title}</span></div>`,empty:()=>`<p class="tt-suggestion__no-results">${this.trans["no.result.found"]}</p>`}}),this.typeahead.bind("typeahead:select",(e,a)=>{this.typeahead.typeahead("val",a.item.title),window.location=a.item.url}),this.typeahead.bind("typeahead:cursorchange",(e,a)=>{this.typeahead.val(a.item.title)}),this.typeahead.bind("typeahead:open",()=>{this.perfectScrollbar===null&&(this.perfectScrollbar=new PerfectScrollbar($(this.$el).find(".tt-menu")[0],{swipeEasing:!0}))}),this.typeahead.bind("typeahead:render",()=>
84{this.perfectScrollbar.update()})},showTextHelperObserver(){$(this.$el).find(".typeahead").keyup(e=>{$(e.currentTarget).val()===""&&(this.isShowTextHelper=!1)}),this.typeahead.bind("typeahead:render",()=>{this.isShowTextHelper=!0}),this.typeahead.bind("typeahead:close",()=>{this.isShowTextHelper=!1}),this.typeahead.bind("typeahead:open",e=>{$(e.currentTarget).val()!==""?this.isShowTextHelper=!0:this.isShowTextHelper=!1})},isLoaded(){return this.fuse!==null},search(e,a){return a(this.fuse.search(e))},initData(){return $r(this,null,function*(){try{let[e,a,t]=yield Promise.all([v().get("/api/advanced-search/menus?locale=en"),v().get("/api/advanced-search/menus?locale=th"),v().get("/api/advanced-search/search-indexes")]),i=[...e.data.data,...a.data.data,...t.data.data],s=this.getUniqueItems(i);this.fuse=new yt.Z(s,{keys:["title"],threshold:.4,distance:300,ignoreLocation:!0,findAllMatches:!0})}catch(e){console.log(e)}})},getUniqueItems(e){return[...new Set(e.map(t=>t.title))].map(t=>({title:t,url:e.find(i=>i.title===t).url}))},keydown(){let e=74,a=27;$(document).on("keydown",t=>{t.ctrlKey&&t.keyCode===e&&(t.preventDefault(),$(this.$el).find(".dropdown-toggle").dropdown("show")),t.keyCode===a&&(t.preventDefault(),$(this.$el).find(".dropdown-toggle").dropdown("hide"))})},onDropdown(){$(this.$el).on("shown.bs.dropdown",e=>{$(".header__main").collapse("hide"),setTimeout(a=>{$("html").addClass("header-enabled"),$("header").addClass("header--on-open"),$("html").css({overflow:""})},1)}),$(this.$el).on("hidden.bs.dropdown",e=>{$("html").removeClass("header-enabled"),$("header").removeClass("header--on-open"),$("html").css({overflow:""})})},dropdownClickable(){$(this.$el).find(".dropdown-menu").click(e=>{e.stopPropagation()})},focus(){$(this.$el).on("shown.bs.dropdown",e=>{setTimeout(a=>{$(this.$el).find(".typeahead").focus()},300)})},close(){$(this.$el).find(".search-dialog__close").on("click",e=>{$(this.$el).find(".dropdown-toggle").dropdown("hide")})},getScrollbarWidth(){let e=document.createElement("div");e.className="measured-scrollbar",document.body.appendChild(e);let a=window.innerWidth-e.clientWidth;return document.body.removeChild(e),a}}},xr=kr,bt=(0,d.Z)(xr,gt,wr,!1,null,null,null);if(!1)var Po;bt.options.__file="app/resources/vue/components/widgets/SearchDialog.vue";var Sr=bt.exports,Ct=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"advanced-search"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"advanced-search__header"},[t("div",{staticClass:"advanced-search__type"},[t("button",{staticClass:"advanced-search__type-btn",class:{active:e.isAll()},on:{click:function(i){e.setType(e.defaultType.ALL),e.search()}}},[e._v(` 85 `+e._s(e.trans.all)+` 86 `)]),e._v(" "),t("button",{staticClass:"advanced-search__type-btn",class:{active:e.isSiteSearch()},on:{click:function(i){e.setType(e.defaultType.SITE_SEARCH),e.search()}}},[e._v(` 87 `+e._s(e.trans["site.search"])+` 88 `)]),e._v(" "),t("button",{staticClass:"advanced-search__type-btn",class:{active:e.isNewsroom()},on:{click:function(i){e.setType(e.defaultType.NEWSROOM),e.search()}}},[e._v(` 89 `+e._s(e.trans.newsroom)+` 90 `)]),e._v(" "),t("button",{staticClass:"advanced-search__type-btn",class:{active:e.isDisclosure()},on:{click:function(i){e.setType(e.defaultType.DISCLOSURE),e.search()}}},[e._v(` 91 `+e._s(e.trans["company.disclosure"])+` 92 `)]),e._v(" "),t("button",{staticClass:"advanced-search__type-btn",class:{active:e.isResourceCenter()},on:{click:function(i){e.setType(e.defaultType.RESOURCE_CENTER),e.search()}}},[e._v(` 93 `+e._s(e.trans["resource.center"])+` 94 `)])]),e._v(" "),t("div",{staticClass:"advanced-search__form"},[t("form",{attrs:{action:""},on:{submit:function(i){i.preventDefault()}}},[t("div",{staticClass:"input-group input-group--advanced-search"},[t("div",{staticClass:"input-group-prepend"},[t("span",{staticClass:"input-group-text"},[e.isLoading()?t("i",{staticClass:"advanced-search__loading fad fa-spinner-third"}):t("i",{staticClass:"far fa-search"})])]),e._v(" "),t("input",{ref:"keyword",staticClass:"form-control",attrs:{type:"text",placeholder:e.trans["advanced.search.hint"]},domProps:{value:e.keyword},on:{input:function(i){return e.keyword=i.target.value},keyup:function(i){return e.search()}}}),e._v(" "),e._t("copyright")],2)])]),e._v(" "),e._t("quick-link")],2),e._v(" "),t("div",{staticClass:"advanced-search__result"},[t("site-search-panel",{attrs:{"is-visible":e.isSiteSearchPanelVisible(),items:e.siteSearchItems,trans:e.trans,keyword:e.keyword}}),e._v(" "),t("newsroom-panel",{attrs:{"is-visible":e.isNewsroomPanel
94Visible(),items:e.newsroomItems,trans:e.trans,keyword:e.keyword}}),e._v(" "),t("disclosure-panel",{attrs:{"is-visible":e.isDisclosureVisible(),items:e.disclosureItems,trans:e.trans,keyword:e.keyword}}),e._v(" "),t("resource-center-panel",{attrs:{"is-visible":e.isResourceCenterVisible(),items:e.resourceCenterItems,trans:e.trans,keyword:e.keyword}})],1)])])])])},Tr=[];Ct._withStripped=!0;var wt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.isVisible?t("section",{staticClass:"advanced-search__section",attrs:{id:"siteSearch"}},[t("h2",{staticClass:"advanced-search__heading"},[e._v(e._s(e.trans["site.search"]))]),e._v(" "),e.items.length?t("ul",{staticClass:"advanced-search__list"},e._l(e.items,function(i){return t("li",{staticClass:"advanced-search__list-item"},[t("a",{staticClass:"advanced-search__list-link",attrs:{href:i.item.url}},[t("h3",{staticClass:"advanced-search__list-title",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__list-subtitle",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.description),e.keyword)}})])])}),0):t("div",{staticClass:"advanced-search__no-result"},[e._v(e._s(e.trans["advanced.search.no.result"])+` 95 `)])]):e._e()},Dr=[];wt._withStripped=!0;var Ir={props:["trans","items","isVisible","keyword"]},Ar=Ir,$t=(0,d.Z)(Ar,wt,Dr,!1,null,null,null);if(!1)var Eo;$t.options.__file="app/resources/vue/components/widgets/advanced-search/panels/SiteSearchPanel.vue";var Pr=$t.exports,kt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.isVisible?t("section",{staticClass:"advanced-search__section",attrs:{id:"newsroom"}},[t("h2",{staticClass:"advanced-search__heading"},[e._v(e._s(e.trans.newsroom))]),e._v(" "),e.items.length?t("div",{staticClass:"row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xxl-4"},e._l(e.items,function(i){return t("div",{staticClass:"col"},[t("a",{staticClass:"advanced-search__card",attrs:{href:i.item.url}},[t("figure",{staticClass:"advanced-search__card-figure"},[t("img",{staticClass:"advanced-search__card-image",class:{"advanced-search__card-image--opengraph":i.item.image.includes("default/opengraph")},attrs:{src:i.item.image}})]),e._v(" "),t("h3",{staticClass:"advanced-search__card-title",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__card-subtitle",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.description),e.keyword)}})])])}),0):t("div",{staticClass:"advanced-search__no-result"},[e._v(e._s(e.trans["advanced.search.no.result"])+` 96 `)])]):e._e()},Er=[];kt._withStripped=!0;var Lr={props:["trans","items","isVisible","keyword"]},Or=Lr,xt=(0,d.Z)(Or,kt,Er,!1,null,null,null);if(!1)var Lo;xt.options.__file="app/resources/vue/components/widgets/advanced-search/panels/NewsroomPanel.vue";var Mr=xt.exports,St=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.isVisible?t("section",{staticClass:"advanced-search__section",attrs:{id:"companyDisclosure"}},[t("h2",{staticClass:"advanced-search__heading"},[e._v(e._s(e.trans["company.disclosure"]))]),e._v(" "),e.items.length?t("ul",{staticClass:"advanced-search__list"},e._l(e.items,function(i){return t("li",{staticClass:"advanced-search__list-item"},[t("a",{staticClass:"advanced-search__list-link",attrs:{href:i.item.url,target:i.item.external_url_target}},[t("h3",{staticClass:"advanced-search__list-title",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__list-body"},[t("div",{staticClass:"advanced-search__list-text"},[e._v(e._s(i.item.date))]),e._v(" "),t("div",{staticClass:"advanced-search__list-subtitle",domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.body),e.keyword)}})])])])}),0):t("div",{staticClass:"advanced-search__no-result"},[e._v(e._s(e.trans["advanced.search.no.result"])+` 97 `)])]):e._e()},Fr=[];St._withStripped=!0;var jr={props:["trans","items","isVisible","keyword"]},Rr=jr,Tt=(0,d.Z)(Rr,St,Fr,!1,null,null,null);if(!1)var Oo;Tt.options.__file="app/resources/vue/components/widgets/advanced-search/panels/DisclosurePanel.vue";var Nr=Tt.exports,Dt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.isVisible?t("section",{staticClass:"advanced-search__section mb-0",attrs:{id:"resourceCenter"}},[t("h2",{staticClass:"advanced-search__heading"},[e._v(e._s(e.trans["resource.center"]))]),e._v(" "),e.items.length?t("ul",{staticClass:"advanced-search__list"},e._l(e.items,function(i){return t("li",{staticClass:"advanced-search__list-item"},[i.item.category==="Financial Statement"?[e.isMultiFilesFinancial
97Statement(i.item)?[t("h3",{staticClass:"advanced-search__list-title"},[t("span",{domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.category))]),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.publication_period)+"/"+e._s(i.item.publication_year))])]),e._v(" "),t("ul",{staticClass:"advanced-search__list-financial"},[t("li",{staticClass:"advanced-search__list-financial-item"},[i.item.auditor_report_url?t("a",{staticClass:"advanced-search__list-financial-link",attrs:{href:i.item.auditor_report_url,target:"_blank"}},[e._v(e._s(e.trans["report.of.the.auditor"]))]):e._e()]),e._v(" "),t("li",{staticClass:"advanced-search__list-financial-item"},[i.item.financial_statement_url?t("a",{staticClass:"advanced-search__list-financial-link",attrs:{href:i.item.financial_statement_url,target:"_blank"}},[e._v(e._s(e.trans["financial.statement"]))]):e._e()]),e._v(" "),t("li",{staticClass:"advanced-search__list-financial-item"},[i.item.note_url?t("a",{staticClass:"advanced-search__list-financial-link",attrs:{href:i.item.note_url,target:"_blank"}},[e._v(e._s(e.trans["note.to.financial.statement"]))]):e._e()])])]:[t("a",{staticClass:"advanced-search__list-link",attrs:{href:i.item.url,target:"_blank"}},[t("h3",{staticClass:"advanced-search__list-title"},[t("span",{domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.category))]),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.publication_period)+"/"+e._s(i.item.publication_year))])])])]]:[t("a",{staticClass:"advanced-search__list-link",attrs:{href:i.item.url,target:"_blank"}},[t("h3",{staticClass:"advanced-search__list-title"},[t("span",{domProps:{innerHTML:e._f("highlight")(e._f("truncate")(i.item.title),e.keyword)}}),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.category))]),e._v(" "),t("div",{staticClass:"advanced-search__badge"},[e._v(e._s(i.item.publication_period)+"/"+e._s(i.item.publication_year)+` 98 `)])])])]],2)}),0):t("div",{staticClass:"advanced-search__no-result"},[e._v(e._s(e.trans["advanced.search.no.result"])+` 99 `)])]):e._e()},qr=[];Dt._withStripped=!0;var Br={props:["trans","items","isVisible","keyword"],methods:{isMultiFilesFinancialStatement(e){return e.category==="Financial Statement"&&e.auditor_report_url&&e.financial_statement_url&&e.note_url}}},Vr=Br,It=(0,d.Z)(Vr,Dt,qr,!1,null,null,null);if(!1)var Mo;It.options.__file="app/resources/vue/components/widgets/advanced-search/panels/ResourceCenterPanel.vue";var Hr=It.exports,E=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{c(t.next(n))}catch(p){s(p)}},o=n=>{try{c(t.throw(n))}catch(p){s(p)}},c=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,o);c((t=t.apply(e,a)).next())}),Yr={components:{"site-search-panel":Pr,"newsroom-panel":Mr,"disclosure-panel":Nr,"resource-center-panel":Hr},props:["trans","locale"],data(){return{keyword:null,type:null,requestCounter:0,siteSearchItems:null,newsroomItems:null,disclosureItems:null,resourceCenterItems:null}},mounted(){this.initType(),this.initKeyword(),this.initAxios(),this.requestFocus(),this.search()},computed:{defaultFuseConfig(){return{ignoreLocation:!0,findAllMatches:!0}},defaultKeyword(){return this.locale==="en"?"a":"\u0E01"},defaultType(){return{ALL:"all",SITE_SEARCH:"site-search",NEWSROOM:"newsroom",DISCLOSURE:"disclosure",RESOURCE_CENTER:"resource-center"}}},watch:{keyword:function(e,a){this.updateAddressBar(this.type,e)},type:function(e,a){this.updateAddressBar(e,this.keyword)}},methods:{updateAddressBar(e,a){if(history.pushState){let t={};this.type&&(t.type=e),this.keyword&&(t.keyword=a);let i=encodeURIComponent,s=Object.keys(t).map(o=>i(o)+"="+i(t[o])).join("&"),r=`${window.location.protocol}//${window.location.host}${window.location.pathname}?${s}`;window.history.pushState({path:r},"",r)}},resolveKeyword(e=null){return e==null?this.defaultKeyword:e===""?this.defaultKeyword:e.trim()},requestFocus(){this.$refs.keyword.focus()},initKeyword(){this.keyword=this.getQueryString("keyword")},initType(){this.type=this.getQueryString("type")||this.defaultType.ALL},initAxios(){let e=this;v().interceptors.request.use(function(a){return e.incrementRequestCounter(),a},function(a){return e.decrementRequestCounter(),Promise.reject(a)}),v().interceptors.response.use(function(a){return e.decrementRequestCounter(),a},function(a){return e.decrementRequestCounter(),Promise.reject(a)})},getQueryString(e,a=window.location.href){e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=t.exec(a);
99return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},setType(e){this.type=e},isAll(){return this.type===this.defaultType.ALL},isSiteSearch(){return this.type===this.defaultType.SITE_SEARCH},isNewsroom(){return this.type===this.defaultType.NEWSROOM},isDisclosure(){return this.type===this.defaultType.DISCLOSURE},isResourceCenter(){return this.type===this.defaultType.RESOURCE_CENTER},maxSiteSearchItems(){return this.isAll()?18:30},maxNewsroomItems(){return this.isAll()?12:32},maxDisclosureItems(){return this.isAll()?18:30},maxResourceCenterItems(){return this.isAll()?18:30},createFuse(e,a){return new yt.Z(e,a)},truncate(e,a=250){return _.truncate(e,{length:a})||""},incrementRequestCounter(){this.requestCounter++},decrementRequestCounter(){this.requestCounter--},isLoading(){return this.requestCounter>0},isSiteSearchPanelVisible(){return this.siteSearchItems?this.isAll()||this.isSiteSearch():!1},isNewsroomPanelVisible(){return this.newsroomItems?this.isAll()||this.isNewsroom():!1},isDisclosureVisible(){return this.disclosureItems?this.isAll()||this.isDisclosure():!1},isResourceCenterVisible(){return this.resourceCenterItems?this.isAll()||this.isResourceCenter():!1},search:_.debounce(function(){let e=this.resolveKeyword(this.keyword);(this.isAll()||this.isSiteSearch())&&this.searchSite(e),(this.isAll()||this.isNewsroom())&&this.searchNewsroom(e),(this.isAll()||this.isDisclosure())&&this.searchDisclosure(e),(this.isAll()||this.isResourceCenter())&&this.searchResourceCenter(e)},500),searchSite(e){return E(this,null,function*(){let a=yield v().get(`/api/advanced-search/search-indexes?keyword=${e}`),t=_.uniqBy(a.data.data,"title"),i=this.createFuse(t,Object.assign(this.defaultFuseConfig,{keys:["title","description"]})),s=this.maxSiteSearchItems();this.siteSearchItems=i.search(e).slice(0,s)})},searchNewsroom(e){return E(this,null,function*(){let a=yield v().get(`/api/advanced-search/search-indexes?keyword=${e}`),t=_(a.data.data).filter(r=>r.type==="article"&&r.url.indexOf("/newsroom/")!==-1).uniqBy("title").value(),i=this.createFuse(t,Object.assign(this.defaultFuseConfig,{keys:["title","description"]})),s=this.maxNewsroomItems();this.newsroomItems=i.search(e).slice(0,s)})},searchDisclosure(e){return E(this,null,function*(){let[a,t]=yield Promise.all([v().get(`/api/advanced-search/disclosures?locale=en&keyword=${e}`),v().get(`/api/advanced-search/disclosures?locale=th&keyword=${e}`)]),i=_.uniqBy([...a.data.data,...t.data.data],"title"),s=this.createFuse(i,Object.assign(this.defaultFuseConfig,{keys:["title","body"]})),r=this.maxDisclosureItems();this.disclosureItems=s.search(e).slice(0,r)})},searchResourceCenter(e){return E(this,null,function*(){let[a,t]=yield Promise.all([v().get(`/api/advanced-search/resource-center?locale=en&keyword=${e}`),v().get(`/api/advanced-search/resource-center?locale=th&keyword=${e}`)]),i=_.uniqBy([...a.data.data,...t.data.data],"title"),s=this.createFuse(i,Object.assign(this.defaultFuseConfig,{keys:["title","publication_period","publication_year","category"]})),r=this.maxResourceCenterItems();this.resourceCenterItems=s.search(e).slice(0,r)})}}},zr=Yr,At=(0,d.Z)(zr,Ct,Tr,!1,null,null,null);if(!1)var Fo;At.options.__file="app/resources/vue/components/widgets/advanced-search/AdvancedSearch.vue";var Zr=At.exports,Pt=function(){var e=this,a=e.$createElement,t=e._self._c||a;
99return e.isNecessaryCookiesAccepted?e._e():t("div",{staticClass:"cookie-dialog"},[t("div",{staticClass:"cookie-dialog-banner"},[e._m(0),e._v(" "),t("div",{staticClass:"cookie-dialog-banner__body"},[t("div",{staticClass:"cookie-dialog-banner__text",domProps:{innerHTML:e._s(e.trans["cookie.consent.message"])}}),e._v(" "),t("div",{staticClass:"cookie-dialog-banner__btn-group"},[t("button",{staticClass:"cookie-dialog__btn cookie-dialog__btn--accept",attrs:{type:"button"},on:{click:function(i){return e.acceptAllUnnecessaryCookies()}}},[e._v(` 100 `+e._s(e.trans["cookie.consent.accept"])+` 101 `)]),e._v(" "),t("button",{staticClass:"cookie-dialog__btn cookie-dialog__btn--change",attrs:{type:"button","data-toggle":"modal","data-target":"#cookieDialogPreferences"}},[e._v(` 102 `+e._s(e.trans["cookie.consent.change.preferences"])+` 103 `)])])])]),e._v(" "),t("div",{staticClass:"cookie-dialog-preferences"},[t("div",{staticClass:"modal fade",attrs:{id:"cookieDialogPreferences","data-backdrop":"static","data-keyboard":"false",tabindex:"-1","aria-labelledby":"cookieDialogPreferences","aria-hidden":"true"}},[t("div",{staticClass:"modal-dialog modal-dialog-centered"},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-header"},[t("div",{staticClass:"modal-title"},[e._v(e._s(e.trans["cookie.consent.privacy.preferences"]))]),e._v(" "),e._m(1)]),e._v(" "),t("div",{staticClass:"modal-body",attrs:{id:"cookieDialogPreferencesItems"}},[t("div",{staticClass:"cookie-dialog-preferences__item"},[t("div",{staticClass:"cookie-dialog-preferences__item-header"},[t("a",{staticClass:"cookie-dialog-preferences__item-title",attrs:{"data-toggle":"collapse",href:"#cookieConsentNecessary",role:"button","aria-expanded":"true"}},[t("span",{staticClass:"cookie-dialog-preferences__item-icon"}),e._v(` 104 `+e._s(e.trans["cookie.consent.necessary"])+` 105 `)]),e._v(" "),e._m(2)]),e._v(" "),t("div",{staticClass:"collapse show",attrs:{id:"cookieConsentNecessary","data-parent":"#cookieDialogPreferencesItems"}},[t("div",{staticClass:"cookie-dialog-preferences__item-body",domProps:{innerHTML:e._s(e.trans["cookie.consent.necessary.message"])}})])]),e._v(" "),e.hasAnalyticsScriptsInBlacklistConfig()?t("div",{staticClass:"cookie-dialog-preferences__item"},[t("div",{staticClass:"cookie-dialog-preferences__item-header"},[t("a",{staticClass:"cookie-dialog-preferences__item-title",attrs:{"data-toggle":"collapse",href:"#cookieConsentAnalytics",role:"button","aria-expanded":"false"}},[t("span",{staticClass:"cookie-dialog-preferences__item-icon"}),e._v(` 106 `+e._s(e.trans["cookie.consent.analytics"])+` 107 `)]),e._v(" "),t("div",{staticClass:"cookie-dialog-preferences__item-switch"},[t("div",{staticClass:"custom-control custom-switch"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isAnalyticsCookiesAccepted,expression:"isAnalyticsCookiesAccepted"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"acceptAnalyticsCookies"},domProps:{checked:Array.isArray(e.isAnalyticsCookiesAccepted)?e._i(e.isAnalyticsCookiesAccepted,null)>-1:e.isAnalyticsCookiesAccepted},on:{change:function(i){var s=e.isAnalyticsCookiesAccepted,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c=null,n=e._i(s,c);r.checked?n<0&&(e.isAnalyticsCookiesAccepted=s.concat([c])):n>-1&&(e.isAnalyticsCookiesAccepted=s.slice(0,n).concat(s.slice(n+1)))}else e.isAnalyticsCookiesAccepted=o}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"acceptAnalyticsCookies"}})])])]),e._v(" "),t("div",{staticClass:"collapse",attrs:{id:"cookieConsentAnalytics","data-
107parent":"#cookieDialogPreferencesItems"}},[t("div",{staticClass:"cookie-dialog-preferences__item-body",domProps:{innerHTML:e._s(e.trans["cookie.consent.analytics.message"])}})])]):e._e(),e._v(" "),e.hasMarketingScriptsInBlacklistConfig()?t("div",{staticClass:"cookie-dialog-preferences__item"},[t("div",{staticClass:"cookie-dialog-preferences__item-header"},[t("a",{staticClass:"cookie-dialog-preferences__item-title",attrs:{"data-toggle":"collapse",href:"#cookieConsentMarketing",role:"button","aria-expanded":"false"}},[t("span",{staticClass:"cookie-dialog-preferences__item-icon"}),e._v(` 108 `+e._s(e.trans["cookie.consent.marketing"])+` 109 `)]),e._v(" "),t("div",{staticClass:"cookie-dialog-preferences__item-switch"},[t("div",{staticClass:"custom-control custom-switch"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isMarketingCookiesAccepted,expression:"isMarketingCookiesAccepted"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"acceptMarketingCookies"},domProps:{checked:Array.isArray(e.isMarketingCookiesAccepted)?e._i(e.isMarketingCookiesAccepted,null)>-1:e.isMarketingCookiesAccepted},on:{change:function(i){var s=e.isMarketingCookiesAccepted,r=i.target,o=!!r.checked;if(Array.isArray(s)){var c=null,n=e._i(s,c);r.checked?n<0&&(e.isMarketingCookiesAccepted=s.concat([c])):n>-1&&(e.isMarketingCookiesAccepted=s.slice(0,n).concat(s.slice(n+1)))}else e.isMarketingCookiesAccepted=o}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"acceptMarketingCookies"}})])])]),e._v(" "),t("div",{staticClass:"collapse",attrs:{id:"cookieConsentMarketing","data-parent":"#cookieDialogPreferencesItems"}},[t("div",{staticClass:"cookie-dialog-preferences__item-body",domProps:{innerHTML:e._s(e.trans["cookie.consent.marketing.message"])}})])]):e._e()]),e._v(" "),t("div",{staticClass:"modal-footer"},[t("div",{staticClass:"cookie-dialog-preferences__btn-group"},[t("button",{staticClass:"cookie-dialog__btn cookie-dialog__btn--accept",attrs:{type:"button"}
109,on:{click:function(i){return e.acceptAllUnnecessaryCookies()}}},[e._v(` 110 `+e._s(e.trans["cookie.consent.accept"])+` 111 `)]),e._v(" "),t("button",{staticClass:"cookie-dialog__btn cookie-dialog__btn--my-choices",attrs:{type:"button"},on:{click:function(i){return e.confirmMyChoices()}}},[e._v(` 112 `+e._s(e.trans["cookie.consent.confirm"])+` 113 `)])]),e._v(" "),e._t("copyright")],2)])])])])])},Wr=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"cookie-dialog-banner__icon"},[t("i",{staticClass:"fa-solid fa-cookie-bite"})])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"modal-button"},[t("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("i",{staticClass:"far fa-times"})])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"cookie-dialog-preferences__item-switch"},[t("span",{staticClass:"cookie-dialog-preferences__item-switch-lock"}),e._v(" "),t("div",{staticClass:"custom-control custom-switch"},[t("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",checked:"",disabled:""}}),e._v(" "),t("label",{staticClass:"custom-control-label"})])])}];Pt._withStripped=!0;
113var Gr={props:["trans"],data(){return{isNecessaryCookiesAccepted:!1,isAnalyticsCookiesAccepted:!1,isMarketingCookiesAccepted:!1}},mounted(){this.isNecessaryCookiesAccepted=CookieConsent.isNecessaryCookiesAccepted(),this.isAnalyticsCookiesAccepted=CookieConsent.isAnalyticsCookiesAccepted(),this.isMarketingCookiesAccepted=CookieConsent.isMarketingCookiesAccepted()},methods:{hasAnalyticsScriptsInBlacklistConfig(){return CookieConsent.hasAnalyticsScriptsInBlacklistConfig()},hasMarketingScriptsInBlacklistConfig(){return CookieConsent.hasMarketingScriptsInBlacklistConfig()},closeCookieDialogPreferences(){$(this.$el).find("#cookieDialogPreferences").modal("hide")},acceptNecessaryCookies(){this.isNecessaryCookiesAccepted=!0},acceptAllUnnecessaryCookies(){this.acceptNecessaryCookies(),this.isAnalyticsCookiesAccepted=!0,this.isMarketingCookiesAccepted=!0,this.saveCookiePreferences()},confirmMyChoices(){this.acceptNecessaryCookies(),this.saveCookiePreferences()},saveCookiePreferences(){this.isAnalyticsCookiesAccepted&&CookieConsent.unblockAnalyticsScripts(),this.isMarketingCookiesAccepted&&CookieConsent.unblockMarketingScripts(),CookieConsent.setCookie({isNecessaryCookie
113sAccepted:this.isNecessaryCookiesAccepted,isAnalyticsCookiesAccepted:this.isAnalyticsCookiesAccepted,isMarketingCookiesAccepted:this.isMarketingCookiesAccepted}),this.closeCookieDialogPreferences()}}},Ur=Gr,Et=(0,d.Z)(Ur,Pt,Wr,!1,null,null,null);if(!1)var jo;Et.options.__file="app/resources/vue/components/widgets/CookieDialog.vue";var Qr=Et.exports,Lt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--major-shareholders"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend",class:e.enableLegend?"":"d-none"},[e._t("default"),e._v(" "),t("div",{staticClass:"chart__aside-legend"},e._l(this.data,function(i,s){return t("div",{staticClass:"chart__legend-item"},[t("span",{staticClass:"chart__legend-badge",style:e.legendLabelColor(s)}),e._v(" "),t("div",{staticClass:"chart-legend__detail",on:{mouseout:function(r){return e.mouseOutOnLegendItem(i.name)},mouseover:function(r){return e.mouseOverOnLegendItem(i.name)}}},[t("div",{staticClass:"chart__legend-value"},[e._v(e._s(i.value)+"%")]),e._v(" "),t("div",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i.name)}})])])}),0)],2)])},Kr=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];Lt._withStripped=!0;var Xr=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,Mt=(e,a,t)=>a in e?Xr(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,tn=(e,a)=>{for(var t in a||(a={}))Jr.call(a,t)&&Mt(e,t,a[t]);if(Ot)for(var t of Ot(a))en.call(a,t)&&Mt(e,t,a[t]);return e},an={props:{source:{required:!0}},data(){return{chart:Object,data:window.chart[this.source].source,colors:window.chart[this.source].colors,unit:window.chart[this.source].unit,valueMillion:window.chart[this.source].valueMillion,formatter:window.chart[this.source].formatter,enableLegend:window.chart[this.source].enableLegend}},mounted(){this.init()},methods:{init(){new IntersectionObserver(a=>{a[0].isIntersecting&&(this.createChart(),setTimeout(()=>{this.onResize()},1e3))},{threshold:.5,rootMargin:"100px 0px"}).observe($(this.$el)[0])},createChart(){this.chart=echarts.init($(this.$el).find(".echarts").get(0)),this.chart.setOption(this.chartOptions())},chartOptions(){let e=this,a=$("html").attr("lang");return{baseOption:{color:this.colors,grid:{containLabel:!1,top:0,left:0,right:0,bottom:0},tooltip:{position:"top",confine:!0,borderWidth:0,padding:0,backgroundColor:"rgba(255, 255, 255, 1)",extraCssText:"min-width: 250px; z-index: 15; margin-top: 4px;",textStyle:tn({color:"rgba(0, 0, 0, 1)"},this.fontOptions()),formatter:t=>{let i,s=t.data.valueMillion;return t.data.displayValue!==void 0?i=t.data.displayValue:i=t.value,` 114 <div class="echarts-tooltip"> 115 <div class="echarts-tooltip__main"> 116 <div class="echarts-tooltip__badge">${t.marker}</div> 117 <div class="echarts-tooltip__wrapper"> 118 <div class="echarts-tooltip__value">${h()(i).format(this.formatter)}%</div> 119 <div class="echarts-tooltip__title">${t.name}</div></div> 120 </div> 121 </div> 122 `}},series:[{type:"pie",radius:"90%",avoidLabelOverlap:!1,startAngle:0,minAngle:15,label:{show:!1},data:this.data}]},media:[{query:{maxWidth:278},option:{series:[{radius:"90%"}]}},{query:{maxWidth:310,height:230},option:{series:[{radius:"95%"}]}},{query:{maxWidth:345,height:350},option:{series:[{radius:"75%"}]}},{query:{maxWidth:327,maxHeight:300},option:{series:[{radius:"80%",label:{show:!1},labelLine:{show:!1},emphasis:{label:{show:!1}}}]}}]}},fontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai' ,sans-serif",color:"#000",fontWeight:500,fontSize:"19px"}},labelFontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai' ,sans-serif",color:"#000",fontSize:"19px",fontWeight:500}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onResize(){new ResizeObserver(a=>{for(let t of a)this.resize()}).observe(this.$el)},mouseOutOnLegendItem(e){this.removeHighlightFromGraphicItem(e),this.hideTooltip(e)},mouseOverOnLegendItem(e){this.addHighlightToGraphicItem(e),this.showTooltip(e)}
122,showTooltip(e){this.chart.dispatchAction({type:"showTip",seriesIndex:0,name:e})},hideTooltip(e){this.chart.dispatchAction({type:"hideTip",seriesIndex:0,name:e})},addHighlightToGraphicItem(e){this.chart.dispatchAction({type:"highlight",name:e})},removeHighlightFromGraphicItem(e){this.chart.dispatchAction({type:"downplay",name:e})},legendLabelColor(e){return{"background-color":this.colors[e]}}}},sn=an,Ft=(0,d.Z)(sn,Lt,Kr,!1,null,null,null);if(!1)var Ro;Ft.options.__file="app/resources/vue/components/charts/MajorShareholder.vue";var rn=Ft.exports,jt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e._m(0)},nn=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--dividend"},[t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])])}];jt._withStripped=!0;var on=Object.defineProperty,ln=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Nt=(e,a,t)=>a in e?on(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,m=(e,a)=>{for(var t in a||(a={}))dn.call(a,t)&&Nt(e,t,a[t]);if(Rt)for(var t of Rt(a))un.call(a,t)&&Nt(e,t,a[t]);return e},b=(e,a)=>ln(e,cn(a)),_n={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,chartColors:window.chart[this.source].chartColors,barColors:window.chart[this.source].barColors,lineColor:window.chart[this.source].lineColor,totalDividendMax:window.chart[this.source].totalDividendMax,totalDividendMin:window.chart[this.source].totalDividendMin,totalDividendUnit:window.chart[this.source].totalDividendUnit,totalDividendFormat:window.chart[this.source].totalDividendFormat,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0}},mounted(){this.init(),this.onWindowResize()},methods:{init(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.createChart()},{threshold:.5}).observe($(this.$el)[0])},createChart(){this.chart=echarts.init($(this.$el).find(".echarts").get(0)),this.chart.setOption(this.chartOptions())},chartOptions(){let e=this;return{baseOption:{colorBy:"series",color:this.barColors,legend:{show:!1},grid:this.gridOptions(),xAxis:[{type:"category",gridIndex:0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:m({},this.lineOptions())},axisLabel:b(m({},this.fontOptions()),{hideOverlap:!1}),data:this.data.yearly.period},{type:"category",gridIndex:1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:m({},this.lineOptions())},axisLabel:b(m({},this.fontOptions()),{hideOverlap:!1}),data:this.data.quarterly.period}],yAxis:[{gridIndex:0,type:"value",show:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#DEDEDE",type:"solid",width:.5}},axisLine:{show:!1},max:a=>this.totalDividendMax,min:a=>this.totalDividendMin},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},max:a=>this.totalDividendMax,min:a=>this.totalDividendMin}],tooltip:b(m({show:!0,trigger:"axis",confine:!0,extraCssText:"min-width: 140px; max-width: 200; z-index: 15;",axisPointer:{type:"shadow",shadowStyle:{color:"transparent"},z:1},padding:10},this.tooltipStyle()),{formatter:a=>{let t=a[0].name,[i,s]=[a[0].seriesName,a[0].value];return` 123 <div class="echarts-tooltip"> 124 <div class="echarts-tooltip__headline">${t}</div> 125<!-- <div class="echarts-tooltip__title">${i}</div>--> 126 <div class="echarts-tooltip__value">${h()(s).format(this.totalDividendFormat)}</div> 127 <div class="echarts-tooltip__unit">${this.totalDividendUnit}</div> 128 </div> 129 `}}),series:[{name:this.legendData[0],type:"bar",barWidth:40,xAxisIndex:0,yAxisIndex:0,label:b(m({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>h()(a.value).format(this.totalDividendFormat)}),emphasis:{itemStyle:{color:"inherit"}},data:this.defaultYearlyTotalDividendOptions()},{name:this.legendData[0],type:"bar",barWidth:40,xAxisIndex:1,yAxisIndex:1,label:b(m({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>h()(a.value).format(this.totalDividendFormat)}),emphasis:{itemStyle:{color:"inherit"}},markLine:this.markLineOptions(),data:this.defaultQuarterlyTotalDividendOptions()}]},media:[{query:{minWidth:300,maxWidth:320},option:{series:[{barWidth:30},{barWidth:30}]}},{query:{maxWidth:290},option:{series:[{barWidth:30},{barWidth:30}]}}]}},onWindowResize(){$(window).on("resize",()=>{this.chart.resize()})},markLineOptions(){if(this.qoq===!0){let e=this.data.quarterly.period.length,a=this.data.yearly.period.length,t=e+a,i=e/t*100,s=100-i;return{silent:!0,symbol:!1,label:{show:!1},animation:!1,lineStyle:{color:"#A8A8B7"},data:[[{name:"Start Point",x:`${s}%`,y:"10%"},{name:"End Point",x:`${s}%`,y:"90%"}]]}}},fontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai'",color:"#231F20",fontSize:this.getLabelFontSize(),fontWeight:400}},labelFontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai'",color:"#231F20",fontSize:this.getLabelFontSize(),fontWeight:700}},getLabelFontSize(){return"14px"},tooltipStyle(){return{textStyle:{fontFamily:"'Barlow', 'Noto Sans Thai'",color:"#231F20"},backgroundColor:"#FFF"}},lineOptions(){return{color:"#C2C2C2"}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"8%",bottom:"10%"},{containLabel:!1,left:"100%",right:0,top:"8%",bottom:"10%"}];let e=this.data.yearly.period.length+this.data.quarterly.period.length,a=this.data.yearly.period.length,t=this.data.quarterly.period.length,i=100/e,s=i*t,r=i*a;return[{containLabel:!1,right:`${s}%`,left:0,top:"8%",bottom:"10%"},{containLabel:!1,left:`${r}%`,right:0,top:"8%",bottom:"10%"}]},defaultYearlyTotalDividendOptions(){let e=this.data.yearly.totalDividend;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.chartColors[1]:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]}})},defaultQuarterlyTotalDividendOptions(){return this.data.quarterly.totalDividend.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.chartColors[1],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]}})}}},pn=_n,qt=(0,d.Z)(pn,jt,nn,!1,null,null,null);if(!1)var No;qt.options.__file="app/resources/vue/components/charts/DividendPolicy.vue";var hn=qt.exports,Bt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e._m(0)},vn=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--financial"},[t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])])}];Bt._withStripped=!0;var mn=Object.defineProperty,fn=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,Ht=(e,a,t)=>a in e?mn(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,f=(e,a)=>{for(var t in a||(a={}))yn.call(a,t)&&Ht(e,t,a[t]);if(Vt)for(var t of Vt(a))bn.call(a,t)&&Ht(e,t,a[t]);return e},C=(e,a)=>fn(e,gn(a)),Cn={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,chartColors:window.chart[this.source].chartColors,barColors:window.chart[this.source].barColors,lineColor:window.chart[this.source].lineColor,totalFinancialMax:window.chart[this.source].totalFinancialMax,totalFinancialMin:window.chart[this.source].totalFinancialMin,totalFinancialUnit:window.chart[this.source].totalFinancialUnit,totalFinancialFormat:window.chart[this.source].totalFinancialFormat,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0}},mounted(){this.init(),this.onWindowResize(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},init(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.createChart()},{threshold:.5}).observe($(this.$el)[0])},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0)),this.chart.setOption(this.chartOptions(e))},chartOptions(e){let a=this;return{baseOption:{animation:e,colorBy:"series",color:this.barColors,legend:{show:!1},grid:this.gridOptions(),xAxis:[{type:"category",gridIndex:0,axisTick:{show:!1}
129,axisLine:{show:!0,lineStyle:f({},this.lineOptions())},axisLabel:C(f({},this.fontOptions()),{hideOverlap:!1}),data:this.data.yearly.period},{type:"category",gridIndex:1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:f({},this.lineOptions())},axisLabel:C(f({},this.fontOptions()),{hideOverlap:!1}),data:this.data.quarterly.period}],yAxis:[{gridIndex:0,type:"value",show:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#DEDEDE",type:"solid",width:.5}},axisLine:{show:!1},max:t=>this.totalFinancialMax,min:t=>this.totalFinancialMin},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},max:t=>this.totalFinancialMax,min:t=>this.totalFinancialMin}],tooltip:C(f({show:!0,trigger:"axis",confine:!0,extraCssText:"min-width: 120px; max-width: 200; z-index: 15;",axisPointer:{type:"shadow",shadowStyle:{color:"transparent"},z:1},padding:10},this.tooltipStyle()),{formatter:t=>{let i=t[0].name,[s,r]=[t[0].seriesName,t[0].value];return` 130 <div class="echarts-tooltip"> 131 <div class="echarts-tooltip__headline">${i}</div> 132<!-- <div class="echarts-tooltip__title">${s}</div>--> 133 <div class="echarts-tooltip__value">${h()(r).format(this.totalFinancialFormat)}</div> 134 <div class="echarts-tooltip__unit">${this.totalFinancialUnit}</div> 135 </div> 136 `}}),series:[{name:this.legendData[0],type:"bar",barWidth:40,xAxisIndex:0,yAxisIndex:0,label:C(f({show:!0},this.labelFontOptions()),{position:"top",formatter:t=>h()(t.value).format(this.totalFinancialFormat)}),emphasis:{itemStyle:{color:"inherit"}},data:this.defaultYearlyTotalFinancialOptions()},{name:this.legendData[0],type:"bar",barWidth:40,xAxisIndex:1,yAxisIndex:1,label:C(f({show:!0},this.labelFontOptions()),{position:"top",formatter:t=>h()(t.value).format(this.totalFinancialFormat)}),emphasis:{itemStyle:{color:"inherit"}},markLine:this.markLineOptions(),data:this.defaultQuarterlyTotalFinancialOptions()}]},media:[{query:{minWidth:200,maxWidth:345},option:{series:[{barWidth:32},{barWidth:32}]}}]}},onWindowResize(){$(window).on("resize",()=>{this.chart.resize()})},markLineOptions(){if(this.qoq===!0){let e=this.data.quarterly.period.length,a=this.data.yearly.period.length,t=e+a,i=e/t*100,s=100-i;return{silent:!0,symbol:!1,label:{show:!1},animation:!1,lineStyle:{color:"#DEDEDE"},data:[[{name:"Start Point",x:`${s}%`,y:"10%"},{name:"End Point",x:`${s}%`,y:"90%"}]]}}},fontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai'",color:"#231F20",fontSize:this.getLabelFontSize(),fontWeight:400}},labelFontOptions(){return{fontFamily:"'Barlow', 'Noto Sans Thai', sans-serif",color:"#231F20",fontSize:this.getLabelFontSize(),fontWeight:700}},getLabelFontSize(){let e;return $(window).width()<=420?e="11px":e="14px",e},tooltipStyle(){return{textStyle:{fontFamily:"'Barlow', 'Noto Sans Thai', sans-serif",color:"#231F20"},backgroundColor:"#FFF"}},lineOptions(){return{color:"#231F20"}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"8%",bottom:"10%"},{containLabel:!1,left:"100%",right:0,top:"8%",bottom:"10%"}];let e=this.data.yearly.period.length+this.data.quarterly.period.length,a=this.data.yearly.period.length,t=this.data.quarterly.period.length,i=100/e,s=i*t,r=i*a;return[{containLabel:!1,right:`${s}%`,left:0,top:"8%",bottom:"10%"},{containLabel:!1,left:`${r}%`,right:0,top:"8%",bottom:"10%"}]},defaultYearlyTotalFinancialOptions(){let e=this.data.yearly.totalFinancial;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.chartColors[1]:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]}})},defaultQuarterlyTotalFinancialOptions(){return this.data.quarterly.totalFinancial.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.chartColors[0],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.chartColors[1],borderRadius:t>0?[0,0,0,0]:[0,0,0,0]}})}}},wn=Cn,Yt=(0,d.Z)(wn,Bt,vn,!1,null,null,null);if(!1)var qo;Yt.options.__file="app/resources/vue/components/charts/BarChart.vue";var $n=Yt.exports,zt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"contact-popup"},[e._t("default")],2)},kn=[];zt._withStripped=!0;var xn={mounted(){this.init()},methods:{init(){let e=document.querySelector("main");ScrollTrigger.create({trigger:e,start:"top top+=10",end:"bottom bottom+=64",toggleClass:{targets:".contact-popup",className:"show"},markers:!1});const a=document.querySelector(".contact-popup__btn"),t=document.querySelector(".contact-popup__wrapper"),i=document.querySelector(".contact-popup__close");a&&t&&a.addEventListener("click",()=>{t.classList.add("show")}),i&&t&&i.addEventListener("click",()=>{t.classList.remove("show")})}}},Sn=xn,Zt=(0,d.Z)(Sn,zt,kn,!1,null,null,null);if(!1)var Bo;Zt.options.__file="app/resources/vue/components/button/ContactPopup.vue";var Tn=Zt.exports,Wt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"media-value"},[e._t("default")],2)},Dn=[];Wt._withStripped=!0;var In={data(){return{timeline:null,scrollTriggerConfig:null}},mounted(){this.scrollTriggerAnimation(),window.addEventListener("resize",e=>{ScrollTrigger.matchMediaRefresh(),this.scrollTriggerAnimation()})},methods:{scrollTriggerAnimation(){ScrollTrigger.matchMedia({"(min-width: 720px)":()=>{gsap.set(".card--icon:nth-child(1)",{translateX:"100%",opacity:0}
136),gsap.set(".card--icon:nth-child(2)",{translateX:"50%",opacity:0}),gsap.set(".card--icon:nth-child(3)",{translateX:"-50%",opacity:0}),gsap.set(".card--icon:nth-child(4)",{translateX:"-100%",opacity:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el)[0],start:"-200% 40%",end:"30% 40%",markers:!1,yoyo:!0,ease:Power2.easeInOut,once:!0}}),this.timeline.to(".card--icon:nth-child(1)",{translateX:"0%",opacity:1},"=0.5").to(".card--icon:nth-child(2)",{translateX:"0%",opacity:1},"-=0.5").to(".card--icon:nth-child(3)",{translateX:"0%",opacity:1},"-=0.5").to(".card--icon:nth-child(4)",{translateX:"0%",opacity:1},"-=0.5")}})}}},An=In,Gt=(0,d.Z)(An,Wt,Dn,!1,null,null,null);if(!1)var Vo;Gt.options.__file="app/resources/vue/components/animated/MediaValue.vue";var Pn=Gt.exports;l.default.component("sample",Sa),l.default.component("accordion",Aa),l.default.component("accordion-item",Oa),l.default.component("intro-dialog",Ra),l.default.component("back-to-top",Va),l.default.component("slider",Za),l.default.component("hero-banner",Qa),l.default.component("tab",_i),l.default.component("tab-item",mi),l.default.component("tab-accordion",bi),l.default.component("tab-accordion-item",ki),l.default.component("nav-dropdown",Di),l.default.component("nav-slider",Ei),l.default.component("google-map",Fi),l.default.component("interactive-map",Bi),l.default.component("header-layout",Wi),l.default.component("contact-popup",Tn),l.default.component("inline-svg",Gi.ZP),l.default.component("mission",Xi),l.default.component("business-value",ds),l.default.component("customer-tab-item",ns),l.default.component("customer-tab",as),l.default.component("financial-info",hs),l.default.component("bar-chart",$n),l.default.component("dividend",hn),l.default.component("major-shareholder",rn),l.default.component("counter-number",ws),l.default.component("rolling-number",Ds),l.default.component("justified-gallery",ei),l.default.component("inline-gallery",si),l.default.component("inline-gallery-item",li),l.default.component("text-slider",Es),l.default.component("svgo",Fs),l.default.component("rive",Hs),l.default.component("lottie-interactive",Gs),l.default.component("map-element-sticky",Xs),l.default.component("media-value",Pn),l.default.component("calculator",ir),l.default.component("calculator-chart",or),l.default.component("stock-quote",fr),l.default.component("stock-chart",_r),l.default.component("resource-center",Cr),l.default.component("search-dialog",Sr),l.default.component("advanced-search",Zr),l.default.component("cookie-dialog",Qr),l.default.component("project-map",gs),l.default.use(H());let En=new(H())({});window.VueBus=new l.default,new l.default({vuetify:En,el:"#vue-app"})}},function(g){var V=function(F){return g(g.s=F)};g.O(0,[577],function(){return V(8391)});var u=g.O()}]);
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.