1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[143],{816:function(b,Y,u){var B=u(1631),m=u.n(B);m().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",m().defaults.headers.common["X-CSRF-TOKEN"]=$('meta[name="csrf-token"]').attr("content");var Da=u(7975),Pa=u.n(Da);class La{static init(){AOS.init({duration:0,delay:0,once:!0})}}var Ia=La;$(document).ready(function(){Pa().init(),Ia.init()});var o=u(7034),Oa=u(5778),Z=u.n(Oa),Aa={bind(e,a,t){e.style.visibility="hidden"},inserted(e,a,t){let i=a.value||200;setTimeout(()=>{e.style.visibility="visible"},i)}},Fa={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)})}},w=u(7116),Ea=Object.defineProperty,Ra=(e,a,t)=>a in e?Ea(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,Ma=(e,a,t)=>(Ra(e,typeof a!="symbol"?a+"":a,t),t),G;function L(e,a){var t=O();return L=function(i,s){i=i-300;var r=t[i];return r},L(e,a)}var I=L;(function(e,a){for(var t=L,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())}})(O,367220);class U{}G=I(309)+I(301),Ma(U,G,I(311)+I(313)+"9A9-ED6E994CC068");function O(){var e=["181500AmixyY","3688592KVfJfJ","648330qYnCsG","18bfRADD","3780707KQcfdk","LIGHT_GALL","59192YMOnWF","6EEC4446-C","12053899irffpV","8AF-489E-8","28AAgBhS","2GSaMXv","ERY","6pLHNtW","2864870yzauZN"];return O=function(){return e},O()}var A=U,F=u(620),E=u(6488),R=u(8244),M=u(5021),qa={bind(e,a,t){let i=$(e).find("a").length>1,s=$(e).find("[data-external-thumb-image]").length?"data-external-thumb-image":"";(0,w.Z)(e,{plugins:[E.Z,F.Z,R.Z,M.Z],counter:i,exThumbImage:s,selector:"a",licenseKey:A.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0}})}},ja=u(6358),Wa={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,w.Z)(e,{plugins:[ja.Z],autoplayFirstVideo:!1,counter:!1,download:!1,selector:"this",licenseKey:A.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0}})}},Ba={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)})}},za={bind(e,a,t){$(e).find(".dropdown-menu").click(function(i){i.stopPropagation()})}},Va={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()})}},Na={inserted(e,a,t){let i=new Rellax(e,{center:!0});$(e).on("load loadstart",()=>{i.refresh()})}},Q=u(5254),Ya={inserted(e,a,t){var i,s,r,d,l,n,h,v,V,j,W,H;let Ta=(i=$(e).data("type"))!=null?i:"scroll",N=(s=$(e).data("speed"))!=null?s:.5,P=(r=$(e).data("container-class"))!=null?r:"jarallax-container",co=(d=$(e).data("img-src"))!=null?d:null,ho=(l=$(e).data("img-element"))!=null?l:".jarallax-img",po=(n=$(e).data("img-size"))!=null?n:"cover",_o=(h=$(e).data("img-position"))!=null?h:"50% 50%",uo=(v=$(e).data("img-repeat"))!=null?v:"no-repeat",vo=(V=$(e).data("keep-img"))!=null?V:!1,mo=(j=$(e).data("element-in-viewport"))!=null?j:null,fo=(W=$(e).data("z-index"))!=null?W:-100,go=(H=$(e).data("disable-parallax"))!=null?H:"-";(0,Q.ij)(),(0,Q.a0)($(e),{type:Ta,speed:N,containerClass:P,imgSrc:co,imgElement:ho,imgSize:po,imgPosition:_o,imgRepeat:uo,keepImg:vo,elementInViewport:mo,zIndex:fo,disableParallax:go})}},Za={bind(e,a,t){let i=r=>{$(r.currentTarget).next().addClass("show").trigger("dropdown.show"),$(r.currentTarget).parent(".menu__nav-item").siblings().find(".menu__dropdown-menu, .menu").removeClass("show"),$(r.currentTarget).parent(".menu__nav-item").siblings().find(".menu__nav-link").removeClass("active"),$(r.currentTarget).addClass("active")},s=r=>{$(r.currentTarget).next().removeClass("show"),$(r.currentTarget).removeClass("active"),window.innerWidth>1200&&$(r.currentTarget).hasClass("menu__nav-link--lv1")&&($(".header").removeClass("header--on-open"),$("html").removeClass("header-enabled"))};$(e).find(".menu__nav-link").on("click",r=>{r.stopPropagation()}),$(e).find(".menu__nav-link--has-child").on("click",r=>{r.stopPropagation(),$(r.currentTarget).next().hasClass("show")?(s(r),$(window).scrollTop()===0&&$(r.currentTarget).trigger("dropdown.hide"),$(".menu__nav-link--lv2").removeClass("active")):(i(r),$("html").addClass("header-enabled"),$(".header").addClass("header--on-open"),setTimeout(()=>{window.innerWidth>1200&&$(".menu__lv2").find(".menu__nav-item--lv2").eq(0).find(".menu__nav-link--lv2").addClass("active").addClass("show")},300))}),$(e).find(".menu__nav-link--lv2").on("click",r=>{r.stopPropagation(),$(r.currentTarget).next().hasClass("show")?s(r):i(r)})}};o.default.directive("visible-delay",Aa),o.default.directive("submit-once",Fa),o.default.directive("lightbox",qa),o.default.directive("lightvideo",Wa),o.default.directive("scroll-filter",Ba),o.default.directive("dropdown-clickable",za),o.default.directive("select",Va),o.default.directive("clipboard",Ha),o.default.directive("rellax",Na),o.default.directive("parallax",Ya),o.default.directive("dropdown-toggle",Za);var Ga=u(6805),p=u.n(Ga),Ua=(e,a)=>p()(e).format(a),Qa=(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""}},Xa=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,d){return"<mark>"+s+"</mark>"})}return e},Ka=function(e,a=250){return _.truncate(e,{length:a})||""};o.default.filter("numeralFormat",Ua),o.default.filter("dateFormat",Qa),o.default.filter("highlight",Xa),o.default.filter("truncate",Ka);var X=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"})])},Ja=[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"})])])}];X._withStripped=!0;var K=u(3432),ei={props:{theme:{type:String}},data(){return{swiper:null}},mounted(){let e=$(this.$el).find(".swiper")[0];this.swiper=new K.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}})}},ti=ei,c=u(9812),J=(0,c.Z)(ti,X,Ja,!1,null,null,null);if(!1)var $o;J.options.__file="app/resources/vue/components/IntroDialog.vue";var ai=J.exports,ee=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"flipbook__body"},[t("div",{staticClass:"PDFFlip",attrs:{id:"PDFF",source:e.src}}),e._v(" "),e._m(0)])},ii=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"flipbook__copyright"},[t("a",{attrs:{href:"http://www.optiwise.io",target:"_blank"}},[t("img",{attrs:{src:"/assets/images/flipbook-logo.png"}})])])}];ee._withStripped=!0;var si={props:["src"]},ri=si,te=(0,c.Z)(ri,ee,ii,!1,null,null,null);if(!1)var xo;te.options.__file="app/resources/vue/components/Flipbook.vue";var ni=te.exports,ae=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)},li=[];ae._withStripped=!0;var oi={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){if($(window).width()>
11=1640){let a=150;$("html,body").animate({scrollTop:e.offset().top-a},500)}else if(1640>$(window).width()&&$(window).width()>=1200){let a=140;$("html,body").animate({scrollTop:e.offset().top-a},500)}else{let a=115;$("html,body").animate({scrollTop:e.offset().top-a},500)}}}},di=oi,ie=(0,c.Z)(di,ae,li,!1,null,null,null);if(!1)var So;ie.options.__file="app/resources/vue/components/accordion/Accordion.vue";var ci=ie.exports,se=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)])])},hi=[];se._withStripped=!0;var pi={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}},_i=pi,re=(0,c.Z)(_i,se,hi,!1,null,null,null);if(!1)var ko;re.options.__file="app/resources/vue/components/accordion/AccordionItem.vue";var ui=re.exports,ne=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()}}},[t("img",{staticClass:"back-to-top__icon",attrs:{src:"/assets/images/icon/back-to-top.svg",alt:""}}),e._v(" "),t("span",{staticClass:"back-to-top__text"},[e._v(e._s(e.trans))])])},vi=[];ne._withStripped=!0;var mi={props:["trans"],data(){return{isShow:!1}},mounted(){let a=document.body.scrollHeight/2.75,t=()=>{this.isShow=$(window).scrollTop()>a};t(),$(window).on("scroll",i=>{t()})},methods:{scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}}},fi=mi,le=(0,c.Z)(fi,ne,vi,!1,null,null,null);if(!1)var To;le.options.__file="app/resources/vue/components/BackToTop.vue";var gi=le.exports,oe=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)])},yi=[];oe._withStripped=!0;var bi={props:{theme:{type:String,required:!0}},data(){return{swiper:Object}},mounted(){let e={primary:this.primaryConfig(),gallery:this.galleryConfig(),"gallery-news":this.galleryNewsConfig(),"gallery-sd":this.gallerySdConfig(),"gallery-card":this.galleryCardConfig(),"gallery-organic":this.galleryOrganicConfig(),"our-pride":this.ourPrideConfig(),"upcoming-events":this.UpcomingEventsConfig(),"ir-events":this.IREventsConfig(),"set-announcements":this.SetAnnouncementsConfig(),"set-announcements-no-events":this.SetAnnouncementsNoEventConfig(),"latest-presentation":this.LatestPresentationConfig(),"news-activities":this.newsActivitiesConfig(),"press-release":this.PressReleaseConfig(),"social-activities":this.SocialActivitiesConfig(),"sustainability-our-pride":this.sustainabilityOurPride(),"mixed-pagination-and-fraction":this.mixedPaginationAndFractionConfig()};this.swiper=new K.Z(this.$el,e[this.theme])},methods:{galleryConfig(){return{speed:5e3,slidesPerView:"auto",loop:!0,spaceBetween:4,autoplay:{delay: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},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 d=$(r).find("img").attr("src");return{src:d,thumb:d}}).toArray(),i=(0,w.Z)(e[0],{plugins:[E.Z,F.Z,R.Z,M.Z],licenseKey:A.LIGHT_GALLERY,speed:500,zoomFromOrigin:!1,mobileSettings:{showCloseIcon:!0},dynamic:!0,dynamicEl:t});e.on("lgBeforeClose",()=>{this.swiper.slideTo(i.index,0)}),a.on("click",s=>{var r;let d=(r=$(s.currentTarget).data("swiper-slide-index"))!=null?r:$(s.currentTarget).index();i.openGallery(d)})}}}},primaryConfig(){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],clickable:!0}}},sustainabilityOurPride(){return{speed:1e3,slidesPerView:1,spaceBetween:32,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}}},galleryNewsConfig(){return{speed:2e3,slidesPerView:"auto",spaceBetween:16,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},on:{}}},gallerySdConfig(){return{speed:2e3,slidesPerView:1,spaceBetween:0,effect:"fade",autoplay:{delay:5e3},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},on:{}}},galleryCardConfig(){return{speed:2e3,slidesPerView:1,spaceBetween:0,effect:"fade",autoplay:{delay:5e3},loop:!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},on:{}}},galleryOrganicConfig(){return{speed:1e3,slidesPerView:1,spaceBetween:0,effect:"fade",autoplay:{delay:5e3},loop:!0,pagination:{el:".slider--gallery-organic .slider__pagination",clickable:!0},on:{}}},ourPrideConfig(){return{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:{0:{slidesPerView:1},992:{slidesPerView:2}}}},UpcomingEventsConfig(){return{speed:1e3,slidesPerView:1,autoplay:{delay:5e3},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}}},LatestPresentationConfig(){return{speed:1e3,slidesPerView:1,loop:!1,spaceBetween:0,effect:"fade",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}}},newsActivitiesConfig(){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:{0:{sliderPerView:1},768:{slidesPerView:1.5},992:{slidesPerView:2.5},1900:{slidesPerView:2.3}}}},PressReleaseConfig(){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:{0:{sliderPerView:1},768:{slidesPerView:1.5},992:{slidesPerView:2.5},1900:{slidesPerView:2.3}}}},SocialActivitiesConfig(){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:{0:{sliderPerView:1},768:{slidesPerView:1},992:{slidesPerView:1.7},1200:{slidesPerView:2.5},1900:{slidesPerView:2.3}}}},IREventsConfig(){return{speed:1e3,slidesPerView: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},on:{init:e=>{e.slides.length===1?($(this.$el).parent().find(".slider__navigation").hide(),$(this.$el).addClass("h-100")):($(this.$el).parent().find(".slider__navigation").show(),$(this.$el).removeClass("h-100"))}}}},SetAnnouncementsConfig(){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:{0:{slidesPerView:1,slidesPerGroup:1},768:{slidesPerView:2,slidesPerGroup:2}},on:{init:e=>{e.slides.length===1?$(this.$el).parent().find(".slider__navigation").hide():$(this.$el).parent().find(".slider__navigation").show()}}}},SetAnnouncementsNoEventConfig(){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:{0:{slidesPerView:1},992:{slidesPerView:2},1400:{slidesPerView:3}},on:{init:e=>{e.slides.length===1?$(this.$el).parent().find(".slider__navigation").addClass("d-none"):$(this.$el).parent().find(".slider__navigation").removeClass("d-none")}}}},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=p()(e).format("00"),i=p()(a).format("00");$(this.$el).parent().find(".slider__fraction-current").text(t),$(this.$el).parent().find(".slider__fraction-total").text(i)}}},wi=bi,de=(0,c.Z)(wi,oe,yi,!1,null,null,null);if(!1)var Do;de.options.__file="app/resources/vue/components/Slider.vue";
11var Ci=de.exports,ce=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[e._t("default")],2)},$i=[];ce._withStripped=!0;var xi={mounted(){$(this.$el).justifiedGallery({captions:!1,lastRow:"hide",rowHeight:180,margins:5}).on("jg.complete",()=>{(0,w.Z)(this.$el,{plugins:[E.Z,F.Z,R.Z,M.Z],licenseKey:A.LIGHT_GALLERY,speed:500,mobileSettings:{showCloseIcon:!0}})})}},Si=xi,he=(0,c.Z)(Si,ce,$i,!1,null,null,null);if(!1)var Po;he.options.__file="app/resources/vue/components/JustifiedGallery.vue";var ki=he.exports,pe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"inline-gallery"},[e._t("default")],2)},Ti=[];pe._withStripped=!0;var Di={data(){return{items:[]}},mounted(){(0,w.Z)(this.$el,{plugins:[E.Z,F.Z,R.Z,M.Z],container:this.$el,dynamic:!0,hash:!1,closable:!1,showMaximizeIcon:!0,appendSubHtmlTo:".lg-item",slideDelay:400,dynamicEl:this.items}).openGallery()}},Pi=Di,_e=(0,c.Z)(Pi,pe,Ti,!1,null,null,null);if(!1)var Lo;_e.options.__file="app/resources/vue/components/inline-gallery/InlineGallery.vue";var Li=_e.exports,ue=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div")},Ii=[];ue._withStripped=!0;var Oi={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()}},Ai=Oi,ve=(0,c.Z)(Ai,ue,Ii,!1,null,null,null);if(!1)var Io;ve.options.__file="app/resources/vue/components/inline-gallery/InlineGalleryItem.vue";var Fi=ve.exports,me=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"},[e._t("header"),e._v(" "),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()],2),e._v(" "),t("div",{staticClass:"tab__tab-content tab-content",attrs:{id:e.id}},[e._t("default")],2)])},Ei=[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"})])}];me._withStripped=!0;var fe=u(66),Ri={components:{"v-nodes-renderer":fe.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)}
11,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)},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}}},Mi=Ri,ge=(0,c.Z)(Mi,me,Ei,!1,null,null,null);if(!1)var Oo;ge.options.__file="app/resources/vue/components/tab/Tab.vue";var qi=ge.exports,ye=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)])},ji=[];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.selected;this.$parent.items.push({id:e,title:a,selected:t})}},Bi=Wi,be=(0,c.Z)(Bi,ye,ji,!1,null,null,null);if(!1)var Ao;be.options.__file="app/resources/vue/components/tab/TabItem.vue";var zi=be.exports,we=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)},Vi=[];we._withStripped=!0;var Hi={components:{"v-nodes-renderer":fe.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()}
11,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")})})}}},Ni=Hi,Ce=(0,c.Z)(Ni,we,Vi,!1,null,null,null);if(!1)var Fo;Ce.options.__file="app/resources/vue/components/tab-accordion/TabAccordion.vue";var Yi=Ce.exports,$e=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div")},Zi=[];$e._withStripped=!0;var Gi={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()}},Ui=Gi,xe=(0,c.Z)(Ui,$e,Zi,!1,null,null,null);if(!1)var Eo;xe.options.__file="app/resources/vue/components/tab-accordion/TabAccordionItem.vue";var Qi=xe.exports,Se=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"})])}];Se._withStripped=!0;var Ki={props:{expand:{type:String}},mounted(){this.currentTitle(),this.onChanged(),this.initExpand(),this.onWindowResize()},methods:{currentTitle(){this.$nextTick().then(()=>{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)}
11)},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()})}}},Ji=Ki,ke=(0,c.Z)(Ji,Se,Xi,!1,null,null,null);if(!1)var Ro;ke.options.__file="app/resources/vue/components/NavDropdown.vue";var es=ke.exports,Te=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)])])])},ts=[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"})])}];Te._withStripped=!0;var as={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()})}}},is=as,De=(0,c.Z)(is,Te,ts,!1,null,null,null);if(!1)var Mo;De.options.__file="app/resources/vue/components/NavSlider.vue";var ss=De.exports,Pe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"google-map"},[e._t("default")],2)},rs=[];Pe._withStripped=!0;var Le=u(7492),ns={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 Le.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")})}}},ls=ns,Ie=(0,c.Z)(ls,Pe,rs,!1,null,null,null);if(!1)var qo;Ie.options.__file="app/resources/vue/components/map/GoogleMap.vue";var os=Ie.exports,Oe=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)])])},ds=[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"})])}];Oe._withStripped=!0;var cs=u(1373),hs={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 Le.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 cs.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))}}},ps=hs,Ae=(0,c.Z)(ps,Oe,ds,!1,null,null,null);if(!1)var jo;Ae.options.__file="app/resources/vue/components/map/InteractiveMap.vue";var _s=Ae.exports,Fe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",[e._v(e._s(e.counterNumber))])},us=[];Fe._withStripped=!0;var vs={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.duration=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=p()(e.value).format(this.format)}})}}},ms=vs,Ee=(0,c.Z)(ms,Fe,us,!1,null,null,null);if(!1)var Wo;
25Ee.options.__file="app/resources/vue/components/animated/CounterNumber.vue";var fs=Ee.exports,Re=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}})},gs=[];Re._withStripped=!0;var ys=u(1054),bs=u.n(ys),ws={components:{IOdometer:bs()},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}}},Cs=ws,Me=(0,c.Z)(Cs,Re,gs,!1,null,null,null);if(!1)var Bo;Me.options.__file="app/resources/vue/components/animated/RollingNumber.vue";var $s=Me.exports,qe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"text-slider"},[e._t("default")],2)},xs=[];qe._withStripped=!0;var Ss={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)}},ks=Ss,je=(0,c.Z)(ks,qe,xs,!1,null,null,null);if(!1)var zo;je.options.__file="app/resources/vue/components/animated/TextSlider.vue";var Ts=je.exports,We=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:""}})])},Ds=[];We._withStripped=!0;var Ps={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()})}}},Ls=Ps,Be=(0,c.Z)(Ls,We,Ds,!1,null,null,null);if(!1)var Vo;Be.options.__file="app/resources/vue/components/animated/Svgo.vue";var Is=Be.exports,ze=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"rive"},[t("canvas",{ref:"riveCanvas",staticClass:"rive__canvas"})])},Os=[];ze._withStripped=!0;var Ve=u(4959),As=Object.defineProperty,He=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Ne=(e,a,t)=>a in e?As(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,Ye=(e,a)=>{for(var t in a||(a={}))Fs.call(a,t)&&Ne(e,t,a[t]);if(He)for(var t of He(a))Es.call(a,t)&&Ne(e,t,a[t]);return e},Rs={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 Ve.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 Ve.Rive(Ye(Ye({},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)}}},Ms=Rs,Ze=(0,c.Z)(Ms,ze,Os,!1,null,null,null);if(!1)var Ho;
25Ze.options.__file="app/resources/vue/components/animated/Rive.vue";var qs=Ze.exports,Ge=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("lottie-player",{ref:this.id,attrs:{id:this.id}})},js=[];Ge._withStripped=!0;var Ws=u(7324),Bs={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,Ws.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]}]}}}},zs=Bs,Ue=(0,c.Z)(zs,Ge,js,!1,null,null,null);if(!1)var No;Ue.options.__file="app/resources/vue/components/animated/LottieInteractive.vue";var Vs=Ue.exports,Qe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"stacked-card"},[e._t("default")],2)},Hs=[];Qe._withStripped=!0;var Ns={data(){return{timeline:null,height:0,pinHeight:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),window.addEventListener("orientationchange",this.handleOrientationChange),this.$nextTick().then(()=>{this.getData(),this.init()})},methods:{init(){ScrollTrigger.matchMedia({"(min-width: 1400px)":()=>(this.largeDesktopAnimation(),()=>{this.timeline.kill()}),"(min-width: 922px) and (max-width: 1399px)":()=>(this.desktopAnimation(),()=>{this.timeline.kill()})})},getData(){let a=gsap.utils.toArray(".stacked-card__item").length;var t=0;$(".stacked-card__item").each(function(){var s=$(this).height();s>t&&(t=s)});let i=$(".stacked-card__header").height();this.height=-(t+24),this.pinHeight=t*a+i+38,window.innerWidth>=922&&gsap.set($(".stacked-card__item").find(".card"),{height:`${t}`})},largeDesktopAnimation(){this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el).find(".stacked-card__section-body")[0],pin:this.$el,pinSpacing:!1,start:"-3% top",end:"55% top",scrub:1,ease:"none",markers:!1}}).to(".stacked-card__item",{marginBottom:`${this.height}`,stagger:.5},"<")},desktopAnimation(){this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el).find(".stacked-card__deck")[0],pin:this.$el,pinSpacing:!1,start:"-48px top",end:"55% top",scrub:.75,ease:"none",markers:!1,onUpdate:e=>{document.querySelector(".pin-spacer").style.height=`${this.pinHeight}px`}}}).to(".stacked-card__header",{opacity:0}).to(".stacked-card__item",{marginBottom:`${this.height}`,stagger:.5},"<")},handleOrientationChange(){location.reload()}},beforeDestroy(){window.removeEventListener("orientationchange",this.handleOrientationChange)}},Ys=Ns,Xe=(0,c.Z)(Ys,Qe,Hs,!1,null,null,null);if(!1)var Yo;Xe.options.__file="app/resources/vue/components/animated/StackedCard.vue";var Zs=Xe.exports,Ke=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"pin-video"},[e._t("default")],2)},Gs=[];Ke._withStripped=!0;var Us={mounted(){this.init()},methods:{init(){ScrollTrigger.matchMedia({"(min-width: 993px)":()=>{this.scaleDownVideoDesktop()},"(max-width: 992px)":()=>{this.scaleDownVideoTablet()}})},scaleDownVideoDesktop(){let e=window.innerWidth*.57,a=window.innerHeight*.68,t=a/2;gsap.timeline({scrollTrigger:{trigger:".pin-video",start:"top top",end:"center top",pin:!0,scrub:2,markers:!1}}).to(".pin-video__wrapper",{width:`${e}`,height:`${a}`,borderRadius:`${t}`},0)},scaleDownVideoTablet(){let e=window.innerWidth*.94,a=window.innerHeight*.87,t=a/2;gsap.timeline({scrollTrigger:{trigger:".pin-video",start:"top top",end:"center top",pin:!0,scrub:2,markers:!1}}).to(".pin-video__wrapper",{width:`${e}`,height:`${a}`,borderRadius:`${t}`},0)}}},Qs=Us,Je=(0,c.Z)(Qs,Ke,Gs,!1,null,null,null);if(!1)var Zo;Je.options.__file="app/resources/vue/components/animated/PinVideo.vue";var Xs=Je.exports,et=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"deck-animation"},[e._t("default")],2)},Ks=[];et._withStripped=!0;var Js={mounted(){this.initAnimation()},methods:{initAnimation(){ScrollTrigger.matchMedia({"(min-width: 768px)":()=>{gsap.set($(this.$el).find(".card"),{zIndex:(e,a,t)=>t.length-e}),gsap.set($(this.$el).find(".card:not(:first-child)"),{opacity:0,xPercent:-100}),ScrollTrigger.batch($(this.$el).find(".card:not(:first-child)"),{interval:.1,onEnter:e=>gsap.to(e,{opacity:1,xPercent:0,duration:.375,stagger:.25}),start:"-50% center",end:"bottom center",markers:!1})},"(max-width: 767px)":()=>{gsap.set($(this.$el).find(".card"),{zIndex:(e,a,t)=>t.length-e}),gsap.set($(this.$el).find(".card:not(:first-child)"),{opacity:0,xPercent:-100}),ScrollTrigger.batch($(this.$el).find(".card:not(:first-child)"),{interval:.1,onEnter:e=>gsap.to(e,{opacity:1,xPercent:0,duration:.5,stagger:.25}),start:"-70% center",end:"bottom center",markers:!1})}})}}},er=Js,tt=(0,c.Z)(er,et,Ks,!1,null,null,null);if(!1)var Go;
25tt.options.__file="app/resources/vue/components/animated/DeckAnimation.vue";var tr=tt.exports,at=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"business-and-brands__item-wrapper"},[e._t("default")],2)},ar=[];at._withStripped=!0;var ir={data(){return{timeline:null,radiusSide:0}},mounted(){this.init(),window.addEventListener("orientationchange",this.handleOrientationChange)},methods:{init(){ScrollTrigger.matchMedia({"(min-width: 1200px)":()=>{this.itemPosition(),this.animationDesktop()}})},itemPosition(){let e=gsap.utils.toArray(".business-and-brands__item"),a=e.length,t=700/3;window.innerWidth>1440?this.radiusSide=window.innerWidth/3:this.radiusSide=window.innerWidth/2.5;let i=$(".business-and-brands__item"),s=0,r=0;i.each(function(){let d=this.offsetHeight,l=this.offsetWidth;d>s&&(s=d),l>r&&(r=l)}),e.forEach((d,l)=>{let n=0,h=0;if(l===0&&a%2===0)n=0,h=-t-25;else if(l===0&&a%2!==0)n=0,h=-t;else if(a/2===l&&a%2!==0)n=0,h=t;else if(a/2===l&&a%2===0)n=0,h=t+100;else if(l>0&&l<a/2){let v=l/(a-1)*Math.PI-Math.PI/4;h=Math.sin(v)*this.radiusSide-s/(a-l),l===1?(n=Math.cos(v)*this.radiusSide-r/1.5,h=Math.sin(v)*this.radiusSide-s/(a-l)-25):l%2!==0&&a%2!==0?n=Math.cos(v)*this.radiusSide-r/1.25:l%2!==0&&a%2===0?(n=Math.cos(1/(a-1)*Math.PI-Math.PI/4)*this.radiusSide-r/1.5,h=Math.sin(v)*this.radiusSide-s/(a-l)+50):n=Math.cos(v)*this.radiusSide-r/(a-l)-20}else{let v=(a-l)/(a-1)*Math.PI-Math.PI/4;h=Math.sin(v)*this.radiusSide-s/l,a-l===1?(n=-(Math.cos(v)*this.radiusSide-r/1.5),h=Math.sin(v)*this.radiusSide-s/l-25):l%2===0&&a%2!==0?n=-(Math.cos(v)*this.radiusSide-r/1.25):l%2!==0&&a%2===0?(n=-(Math.cos(1/(a-1)*Math.PI-Math.PI/4)*this.radiusSide-r/1.5),h=Math.sin(v)*this.radiusSide-s/(a-l)+100):n=-(Math.cos(v)*this.radiusSide-r/l)}gsap.set(d,{opacity:0}),gsap.timeline({scrollTrigger:{trigger:".business-and-brands__item-wrapper",start:"center center",end:"center center",scrub:3,markers:!1}}).to(d,{opacity:1,x:n,y:h,duration:2,ease:CustomEase.create("custom","M0,0 C0,0 0.656,1.201 0.764,1.174 0.842,1.153 1,1 1,1 "),stagger:.5},0)})},animationDesktop(){gsap.set(".business-and-brands__body",{opacity:0,y:100}),gsap.timeline({scrollTrigger:{trigger:".business-and-brands__item-wrapper",start:"center center",end:"center center",scrub:2,markers:!1}}).to(".business-and-brands__body",{opacity:1,y:0},0)},handleOrientationChange(){location.reload()}},beforeDestroy(){window.removeEventListener("orientationchange",this.handleOrientationChange)}},sr=ir,it=(0,c.Z)(sr,at,ar,!1,null,null,null);if(!1)var Uo;it.options.__file="app/resources/vue/components/animated/BusinessPerformance.vue";var rr=it.exports,st=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"calculator"},[t("div",{staticClass:"calculator-form"},[t("div",{staticClass:"row mb-7"},[t("div",{staticClass:"col-lg-4 col-xl-5 mb-5 mb-lg-0"},[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")}
25,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:"col-lg-8 col-xl-7"},[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"},[t("span",{staticClass:"font-weight-normal"},[e._v(e._s(e.trans.volume))]),e._v(" "),t("span",[e._v("("+e._s(e.trans.shares)+")")])]),e._v(" "),t("div",{staticClass:"calculator-results__text font-weight-bold"},[e._v(` 26 `+e._s(e._f("numeralFormat")(e.volume,"0,0.00"))+` 27 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item"},[t("div",{staticClass:"calculator-results__title"},[t("span",{staticClass:"font-weight-normal"},[e._v(e._s(e.trans["investment.value"]))]),e._v(" "),t("span",{staticClass:"font-weight-normal"},[e._v("("+e._s(e.trans.baht)+")")])]),e._v(" "),t("div",{staticClass:"calculator-results__text font-weight-bold"},[e._v(` 28 `+e._s(e._f("numeralFormat")(e.startValue,"0,0.00"))+` 29 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item"},[t("div",{staticClass:"calculator-results__title"},[t("span",{staticClass:"font-weight-normal"},[e._v(e._s(e.trans["present.value"]))]),e._v(" "),t("span",{staticClass:"font-weight-normal"},[e._v("("+e._s(e.trans.baht)+")")])]),e._v(" "),t("div",{staticClass:"calculator-results__text font-weight-bold"},[e._v(` 30 `+e._s(e._f("numeralFormat")(e.presentValue,"0,0.00"))+` 31 `)])]),e._v(" "),t("div",{staticClass:"calculator-results__item calculator-results__item--return"},[t("div",{staticClass:"calculator-results__title"},[t("span",{staticClass:"font-weight-normal"},[e._v(e._s(e.trans["percent.return"]))])]),e._v(" "),t("div",{staticClass:"calculator-results__text font-weight-bold"},[e._v(` 32 `+e._s(e._f("numeralFormat")(e.capitalGainPercent,"0,0.00"))+"% ("+e._s(e._f("numeralFormat")(e.capitalGainValue,"0,0.00"))+" "+e._s(e.trans.baht)+`) 33 `)])])])])])]),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)])},nr=[];st._withStripped=!0;var lr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{l(t.next(n))}catch(h){s(h)}},d=n=>{try{l(t.throw(n))}catch(h){s(h)}},l=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,d);l((t=t.apply(e,a)).next())}),or={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}
33,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 lr(this,null,function*(){let e=yield m().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"}}},dr=or,rt=(0,c.Z)(dr,st,nr,!1,null,null,null);if(!1)var Qo;rt.options.__file="app/resources/vue/components/widgets/calculator/Calculator.vue";var cr=rt.exports,nt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"calculator-chart__echarts"})},hr=[];nt._withStripped=!0;var pr={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:"#506E4F",maskColor:"rgba(255, 255, 255, 0.5)"},series:{priceAreaColor:"#F4E7D5",priceColor:"#506E4F"},xAxis:{splitLineColor:["#E6E2D9"]},yAxis:{splitLineColor:["#E6E2D9"]}}}},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,borderRadius:10,formatter:e=>this.getTooltip(e)},grid:[{left:"2%",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)=>p()(e).format("0,000a")}},series:[{data:this.quotes,type:"line",showSymbol:!1,itemStyle:{color:this.styleConfig.series.priceColor},lineStyle:{width:1},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` 34 <div class="echarts-tooltip"> 35 <div class="echarts-tooltip__header">${this.trans["company.symbol"]}: ${this.trans.thb}</div> 36 <div class="echarts-tooltip__volume">${this.trans.value}: ${p()(t).format("0,0.00")}</div> 37 <div class="echarts-tooltip__last-updated">${i}</div> 38 </div> 39 `},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()})}}},_r=pr,lt=(0,c.Z)(_r,nt,hr,!1,null,null,null);if(!1)var Xo;lt.options.__file="app/resources/vue/components/widgets/calculator/CalculatorChart.vue";var ur=lt.exports,ot=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 40 `)]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="3M"},on:{click:function(i){return e.focusOnThreeMonth()}}},[e._v(`3M 41 `)]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="YTD"},on:{click:function(i){return e.focusOnYTD()}}},[e._v(`YTD 42 `)]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="1Y"},on:{click:function(i){return e.focusOnOneYear()}}},[e._v(`1Y 43 `)]),e._v(" "),t("button",{staticClass:"date-range__button",class:{active:e.filterType==="2Y"},on:{click:function(i){return e.focusOnTwoYear()}}},[e._v(`2Y 44 `)])])]),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()}}
44,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)},vr=[];ot._withStripped=!0;var mr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{l(t.next(n))}catch(h){s(h)}},d=n=>{try{l(t.throw(n))}catch(h){s(h)}},l=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,d);l((t=t.apply(e,a)).next())}),fr={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:"#506E4F",maskColor:"rgba(255, 255, 255, 0.5)"},series:{volumeColor:"#194424",priceAreaColor:"#F4E7D5",priceColor:"#506E4F"},dataZoom:{lineColor:"#C49D70",areaBgColor:"#ffffff",fillerBgColor:"rgba(255, 255, 255, 0.15)",borderColor:"rgba(255,255,255,0)",handleStyle:{color:"#ffffff",moveHandleColor:"#C49D70",borderColor:"#C49D70"},selectedDataBackground:{lineColor:"#C49D70",areaBgColor:"hsla(49, 63%, 95%, 0.2)"}},xAxis:{splitLineColor:["#E6E2D9"]},yAxis:{splitLineColor:["#E6E2D9"]},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 mr(this,null,function*(){let e=yield m().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,borderRadius:10,extraCssText:"box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);",formatter:e=>this.getTooltip(e)},axisPointer:{link:{xAxisIndex:"all"},label:{formatter:e=>this.formatDisplayDate(e,this.locale)}},grid:[{left:"3%",right:"3%",height:"50%"},{left:"3%",right:"3%",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
44d:{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)=>p()(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:"10%",height:"50%"},{left:"10%",right:"10%",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` 45 <div class="echarts-tooltip"> 46 <div class="echarts-tooltip__header">${this.trans["company.symbol"]}: ${this.trans.thb}</div> 47 <div class="echarts-tooltip__last-done">${p()(t).format("0,0.00")}</div> 48 <div class="echarts-tooltip__volume">${this.trans["volume.shares"]}: ${p()(i).format("0,0.00")}</div> 49 <div class="echarts-tooltip__last-updated">${s}</div> 50 </div> 51 `},getCandlestickTooltip(e){let[a,t,i,s,r,d]=e[0].data,l=e[0].name,n=this.formatDisplayDate(l,this.locale);return` 52 <div class="echarts-tooltip"> 53 <div class="echarts-tooltip__header">${this.trans["company.symbol"]}: ${this.trans.thb}</div> 54 <div>${this.trans["price.open"]}: ${p()(i).format("0,0.00")}</div> 55 <div>${this.trans["price.close"]}: ${p()(t).format("0,0.00")}</div> 56 <div>${this.trans["price.low"]}: ${p()(s).format("0,0.00")}</div> 57 <div>${this.trans["price.high"]}: ${p()(r).format("0,0.00")}</div> 58 <div class="echarts-tooltip__volume">${this.trans["volume.shares"]}: ${p()(d).format("0,0.00")}</div> 59 <div class="echarts-tooltip__last-updated">${n}</div> 60 </div> 61 `},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},lineStyle:{width:1},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)]),d=i.coord([s,i.value(2)]),l=i.coord([s,i.value(3)]),n=i.coord([s,i.value(4)]),h=i.size([1,0])[0]*.35,v=t.dataIndex,[V,j,W,H,Ta]=e[v],N=j>W,P=i.style({stroke:N?this.styleConfig.isPriceUpColor:this.styleConfig.isPriceDownColor});return{type:"group",children:[{type:"line",shape:{x1:l[0],y1:l[1],x2:n[0],y2:n[1]},style:P},{type:"line",shape:{x1:r[0],y1:r[1],x2:r[0]-h,y2:r[1]},style:P},{type:"line",shape:{x1:d[0],y1:d[1],x2:d[0]+h,y2:d[1]},style:P}]}}},{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"}}},gr=fr,dt=(0,c.Z)(gr,ot,vr,!1,null,null,null);if(!1)var Ko;dt.options.__file="app/resources/vue/components/widgets/stock/StockChart.vue";var yr=dt.exports,ct=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__aside"},[t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__item-wrapper"},[t("div",{staticClass:"share-price__symbol"},[e._v(e._s(e.trans["set.symbol"])+": "+e._s(e.trans["company.symbol"]))]),e._v(" "),t("div",{staticClass:"share-price__value-wrapper"},[t("div",{staticClass:"share-price__value"},[e._v(e._s(e._f("numeralFormat")(e.last,"0,0.00")))]),e._v(" "),t("div",{staticClass:"share-price__unit"},[e._v(e._s(e.trans.thb))])])])]),e._v(" "),t("div",{staticClass:"share-price__item"},[t("div",{staticClass:"share-price__title"},[e._v(e._s(e.trans.change)+" "),t("span",{staticClass:"d-inline-block"},[e._v("("+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__line"}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.quote,expression:"quote"}],staticClass:"share-price__updated"},[e._v(` 62 `+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))+` 63 `)])]),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"))+` - 64 `+e._s(e._f("numeralFormat")(e.high,"0,0.00"))+` 65 `)])]),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"))+` - 66 `+e._s(e._f("numeralFormat")(e.high52weeks,"0,0.00"))+` 67 `)])])])])},br=[];ct._withStripped=!0;var wr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{l(t.next(n))}catch(h){s(h)}},d=n=>{try{l(t.throw(n))}catch(h){s(h)}},l=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,d);l((t=t.apply(e,a)).next())}),Cr={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 wr(this,null,function*(){let e=yield m().get("/api/stock/realtime-quote");this.quote=e.data.data})},isChangeGreaterThanZero(){return this.change>0}}},$r=Cr,ht=(0,c.Z)($r,ct,br,!1,null,null,null);if(!1)var Jo;ht.options.__file="app/resources/vue/components/widgets/stock/StockQuote.vue";var xr=ht.exports,pt=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("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(` 68 `+e._s(e.trans["select.year"])+` 69 `),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]}
69,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,d=s.target,l=!!d.checked;if(Array.isArray(r)){var n=i[0],h=e._i(r,n);d.checked?h<0&&(e.years=r.concat([n])):h>-1&&(e.years=r.slice(0,h).concat(r.slice(h+1)))}else e.years=l}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:i[0]}},[e._v(e._s(i[1]))])])}),0)])]),e._v(" "),t("hr",{staticClass:"resource-center__divider"}),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(` 70 `+e._s(e.trans["type.of.document"])+` 71 `)]),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(` 72 `+e._s(e.trans["type.of.document"])+` 73 `)]),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},on:{change:function(i){var s=e.categories,r=i.target,d=!!r.checked;if(Array.isArray(s)){var l="annual-report",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),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:"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,d=!!r.checked;if(Array.isArray(s)){var l="financial-statement",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),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,d=!!r.checked;if(Array.isArray(s)){var l="mdna",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),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:"fact-sheet",value:"fact-sheet"},domProps:{checked:Array.isArray(e.categories)?e._i(e.categories,"fact-sheet")>-1:e.categories}
73,on:{change:function(i){var s=e.categories,r=i.target,d=!!r.checked;if(Array.isArray(s)){var l="fact-sheet",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),e._v(" "),t("label",{staticClass:"resource-center__custom-control-label custom-control-label",attrs:{for:"fact-sheet"}},[e._v(e._s(e.trans["fact.sheet"]))])])]),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,d=!!r.checked;if(Array.isArray(s)){var l="presentation",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),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},on:{change:function(i){var s=e.categories,r=i.target,d=!!r.checked;if(Array.isArray(s)){var l="webcast",n=e._i(s,l);r.checked?n<0&&(e.categories=s.concat([l])):n>-1&&(e.categories=s.slice(0,n).concat(s.slice(n+1)))}else e.categories=d}}}),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(` 74 `+e._s(e.trans["select.all"])+` 75 `)])]),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(` 76 `+e._s(e.trans["clear.filter"])+` 77 `)])])])])]),e._v(" "),t("div",{staticClass:"resource-center__submit"},[t("div",{staticClass:"form-group"},[t("button",{staticClass:"btn btn--primary-white",attrs:{type:"submit"}},[t("span",{staticClass:"btn__icon btn__icon--arrow-right"}),e._v(" "),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)])])])])},Sr=[];pt._withStripped=!0;var kr={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()}}},Tr=kr,_t=(0,c.Z)(Tr,pt,Sr,!1,null,null,null);if(!1)var ed;_t.options.__file="app/resources/vue/components/widgets/resource-center/ResourceCenter.vue";var Dr=_t.exports,ut=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 btn",class:{disable:!this.isLoaded()},attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","data-display":"static","aria-expanded":"false"}},[t("i",{staticClass:"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 w-100 mx-auto 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)])])])])])])])])])])},Pr=[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"})])])}];ut._withStripped=!0;var vt=u(8762),Lr=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{l(t.next(n))}catch(h){s(h)}},d=n=>{try{l(t.throw(n))}catch(h){s(h)}},l=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,d);l((t=t.apply(e,a)).next())}),Ir={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",()=>
77{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 Lr(this,null,function*(){try{let[e,a,t]=yield Promise.all([m().get("/api/advanced-search/menus?locale=en"),m().get("/api/advanced-search/menus?locale=th"),m().get("/api/advanced-search/search-indexes")]),i=[...e.data.data,...a.data.data,...t.data.data],s=this.getUniqueItems(i);this.fuse=new vt.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(){let e=this.getScrollbarWidth();$(this.$el).on("shown.bs.dropdown",a=>{$("html").addClass("header-enabled"),$(".header").addClass("header--on-open"),$(".menu__nav-link").removeClass("active"),$(".menu__dropdown-menu").removeClass("show"),$(".menu-wrapper").removeClass("show"),$("html").hasClass("header-enabled")?($(".header").css({"padding-right":e+"px"}),$("body").css({"padding-right":e+"px"})):($("body").removeAttr("style"),$("header").removeAttr("style"))}),$(this.$el).on("hidden.bs.dropdown",a=>{$("html").removeClass("header-enabled"),$("body").removeAttr("style"),$("header").removeAttr("style"),$(".header").removeClass("header--on-open")})},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}}},Or=Ir,mt=(0,c.Z)(Or,ut,Pr,!1,null,null,null);if(!1)var td;mt.options.__file="app/resources/vue/components/widgets/SearchDialog.vue";var Ar=mt.exports,ft=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(` 78 `+e._s(e.trans.all)+` 79 `)]),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(` 80 `+e._s(e.trans["site.search"])+` 81 `)]),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(` 82 `+e._s(e.trans.newsroom)+` 83 `)]),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(` 84 `+e._s(e.trans["company.disclosure"])+` 85 `)]),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(` 86 `+e._s(e.trans["resource.center"])+` 87 `)])]),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
87Visible(),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)])])])])},Fr=[];ft._withStripped=!0;var gt=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"])+` 88 `)])]):e._e()},Er=[];gt._withStripped=!0;var Rr={props:["trans","items","isVisible","keyword"]},Mr=Rr,yt=(0,c.Z)(Mr,gt,Er,!1,null,null,null);if(!1)var ad;yt.options.__file="app/resources/vue/components/widgets/advanced-search/panels/SiteSearchPanel.vue";var qr=yt.exports,bt=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"])+` 89 `)])]):e._e()},jr=[];bt._withStripped=!0;var Wr={props:["trans","items","isVisible","keyword"]},Br=Wr,wt=(0,c.Z)(Br,bt,jr,!1,null,null,null);if(!1)var id;wt.options.__file="app/resources/vue/components/widgets/advanced-search/panels/NewsroomPanel.vue";var zr=wt.exports,Ct=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"])+` 90 `)])]):e._e()},Vr=[];Ct._withStripped=!0;var Hr={props:["trans","items","isVisible","keyword"]},Nr=Hr,$t=(0,c.Z)(Nr,Ct,Vr,!1,null,null,null);if(!1)var sd;$t.options.__file="app/resources/vue/components/widgets/advanced-search/panels/DisclosurePanel.vue";
90var Yr=$t.exports,xt=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.isMultiFilesFinancialStatement(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)+` 91 `)])])])]],2)}),0):t("div",{staticClass:"advanced-search__no-result"},[e._v(e._s(e.trans["advanced.search.no.result"])+` 92 `)])]):e._e()},Zr=[];xt._withStripped=!0;var Gr={props:["trans","items","isVisible","keyword"],methods:{isMultiFilesFinancialStatement(e){return e.category==="Financial Statement"&&e.auditor_report_url&&e.financial_statement_url&&e.note_url}}},Ur=Gr,St=(0,c.Z)(Ur,xt,Zr,!1,null,null,null);if(!1)var rd;St.options.__file="app/resources/vue/components/widgets/advanced-search/panels/ResourceCenterPanel.vue";var Qr=St.exports,q=(e,a,t)=>new Promise((i,s)=>{var r=n=>{try{l(t.next(n))}catch(h){s(h)}},d=n=>{try{l(t.throw(n))}catch(h){s(h)}},l=n=>n.done?i(n.value):Promise.resolve(n.value).then(r,d);l((t=t.apply(e,a)).next())}),Xr={components:{"site-search-panel":qr,"newsroom-panel":zr,"disclosure-panel":Yr,"resource-center-panel":Qr},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"}}}
92,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(d=>i(d)+"="+i(t[d])).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;m().interceptors.request.use(function(a){return e.incrementRequestCounter(),a},function(a){return e.decrementRequestCounter(),Promise.reject(a)}),m().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);return 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 vt.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 q(this,null,function*(){let a=yield m().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 q(this,null,function*(){let a=yield m().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 q(this,null,function*(){let[a,t]=yield Promise.all([m().get(`/api/advanced-search/disclosures?locale=en&keyword=${e}`),m().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 q(this,null,function*(){let[a,t]=yield Promise.all([m().get(`/api/advanced-search/resource-center?locale=en&keyword=${e}`),m().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)})}}},Kr=Xr,kt=(0,c.Z)(Kr,ft,Fr,!1,null,null,null);if(!1)var nd;kt.options.__file="app/resources/vue/components/widgets/advanced-search/AdvancedSearch.vue";var Jr=kt.exports,Tt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",{staticClass:"header"},[e._t("default")],2)},en=[];Tt._withStripped=!0;var tn=u(1891),an=u.n(tn),sn={mounted(){this.init(),this.onShow(),this.onHidden(),this.disposeAllOpenedMenu(),this.menuHoverAnimation()},methods:{init(){var e={offset:0,tolerance:{up:10,down:10},classes:{pinned:"header--pinned",unpinned:"header--unpinned",top:"header--top",notTop:"header--not-top",frozen:"header--frozen"}};new(an())($(this.$el)[0],e).init()},disposeAllOpenedMenu(){$(document).on("click",e=>{$(e.target).closest(".menu--main .menu__nav--lv1").length===0&&$(e.target).closest(".header__navbar").length===0&&($(".header").removeClass("header--on-open").removeAttr("style"),$("html").removeClass("header-enabled"),$("body").removeAttr("style"),$(".menu-wrapper").removeClass("show"),$(this.$el).find(".show").removeClass("show"),$(this.$el).find(".active").removeClass("active"),$(".navbar-toggler").attr("aria-expanded","fal
92se"),$(".menu-wrapper__menu").removeClass("menu-wrapper__menu--lv-2"),$(".menu__nav-link").removeClass("active"))})},onShow(){let e=this.getScrollbarWidth();$(window).width()>=1200&&$(this.$el).find(".menu__nav-link--has-child").on("click",()=>{$(".header").hasClass("header--on-open")?($(".header").css({"padding-right":e+"px"}),$("body").css({"padding-right":e+"px"}),$(".dropdown-menu").removeClass("show")):($("body").removeAttr("style"),$("header").removeAttr("style"))}),$(this.$el).find(".header__navbar-toggler").on("click",()=>{$(this.$el).addClass("header--on-open"),$("html").addClass("header-enabled")})},onHidden(){$(this.$el).find(".navbar-collapse").on("hidden.bs.collapse",function(){$("html").removeClass("header-enabled"),$("html").find(".header").removeClass("header--on-open")})},getScrollbarWidth(e,a){let t=document.createElement("div");t.className="measured-scrollbar",document.body.appendChild(t);let i=window.innerWidth-t.clientWidth;return document.body.removeChild(t),i},menuHoverAnimation(){let e=Array.prototype.slice.call(document.querySelectorAll(".menu__nav-item--lv1 .menu__nav-link--lv1")),a=Array.prototype.slice.call(document.querySelectorAll(".line path"));gsap.set(a,{drawSVG:"0",autoAlpha:1});let t=e.map((i,s)=>{let r=!1,d=gsap.to(a[s],{drawSVG:"100%",duration:1,opacity:1,ease:"power1.inOut",stagger:.2,paused:!0});return i.addEventListener("mouseenter",function(){r||d.timeScale(2).play()}),i.addEventListener("mouseleave",function(){r||d.timeScale(3).reverse()}),i.addEventListener("click",function(){t.forEach(l=>{l.toggle(i)})}),$(document).on("click",l=>{r=!1,d.timeScale(3).reverse()}),$(".header__btn-search").on("click",function(){r=!1,d.timeScale(3).reverse()}),{toggle:l=>{d.reversed(!1).pause(),r||l!==i?(r=!1,d.timeScale(3).reverse()):(r=!0,d.timeScale(2).play())}}})}}},rn=sn,Dt=(0,c.Z)(rn,Tt,en,!1,null,null,null);if(!1)var ld;Dt.options.__file="app/resources/vue/components/header/HeaderMain.vue";var nn=Dt.exports,Pt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("svg",{staticClass:"line",attrs:{width:"318",height:"11",viewBox:"0 0 318 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1.5 10C38.2111 7.31579 98.0998 1.00015 191.434 1C247.9 0.999907 298.611 4.86834 316.5 6.21045","stroke-width":"2","stroke-linecap":"round","vector-effect":"non-scaling-stroke"}})])},ln=[];Pt._withStripped=!0;var on={mounted(){this.init()},methods:{init(){}}},dn=on,Lt=(0,c.Z)(dn,Pt,ln,!1,null,null,null);if(!1)var od;Lt.options.__file="app/resources/vue/components/header/MenuSVG.vue";var cn=Lt.exports,It=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e._m(0)},hn=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart"},[t("div",{staticClass:"echarts"})])}];It._withStripped=!0;var dd=u(3053),pn=Object.defineProperty,_n=Object.defineProperties,un=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,At=(e,a,t)=>a in e?pn(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,C=(e,a)=>{for(var t in a||(a={}))vn.call(a,t)&&At(e,t,a[t]);if(Ot)for(var t of Ot(a))mn.call(a,t)&&At(e,t,a[t]);return e},x=(e,a)=>_n(e,un(a)),fn={props:{source:{required:!0},theme:{type:String,default:"light"}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,maxDataset:window.chart[this.source].max,minDataset:window.chart[this.source].min,unit:window.chart[this.source].unit,formatter:window.chart[this.source].format,colors:window.chart[this.source].colors,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0}},mounted(){this.initObserver(),this.onWindowResize(),this.onTabChanged(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},initObserver(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.initChart()},{threshold:.5}).observe($(this.$el)[0])},initChart(){this.createChart(),this.resize()},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0),{renderer:"svg"}),this.chart.setOption(this.chartOptions(e))},chartOptions(e){let a=this;return{baseOption:{animation:e,legend:{show:!1},grid:this.gridOptions(),xAxis:[{type:"category",gridIndex:0,axisTick:{show:!0,alignWithLabel:!0}
92,axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:x(C({},this.fontOptions()),{padding:5,rotate:0,interval:0,margin:10}),data:this.data.yearly.period},{type:"category",gridIndex:1,axisTick:{show:!0,alignWithLabel:!0},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:x(C({},this.fontOptions()),{padding:5,rotate:0,interval:0,margin:10}),data:this.data.quarterly.period}],yAxis:[{gridIndex:0,type:"value",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},max:t=>this.maxDataset,min:t=>this.minDataset},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},max:t=>this.maxDataset,min:t=>this.minDataset}],tooltip:x(C({show:!0,trigger:"axis",confine:!0,borderWidth:0,borderRadius:5,axisPointer:{type:"shadow",z:-10,shadowStyle:{color:"#FAF7E9"}},padding:16,extraCssText:"min-width: 200px; z-index: 10;"},this.tooltipStyle()),{formatter:t=>{let i=t[0].name,[s,r]=[t[0].seriesName,t[0].value];return` 93 <div class="echarts-tooltip"> 94 <div class="echarts-tooltip__main"> 95 <div class="echarts-tooltip__title"> ${i} </div> 96 </div> 97 <div class="echarts-tooltip__item"> 98 <div class="echarts-tooltip__wrapper"> 99 <div class="echarts-tooltip__title mb-0 mr-3"> ${s} </div> 100 <div class="echarts-tooltip__value"> ${p()(r).format(this.formatter)} ${this.unit} </div> 101 </div> 102 </div> 103 </div> 104 `}}),series:[{name:this.legendData[0],type:"bar",barWidth:50,xAxisIndex:0,yAxisIndex:0,emphasis:{itemStyle:{color:"inherit"}},label:x(C({show:!0},this.labelFontOptions()),{position:"top",formatter:t=>p()(t.value).format(this.formatter)}),data:this.defaultYearlyDatasetOptions()},{name:this.legendData[0],type:"bar",barWidth:50,xAxisIndex:1,yAxisIndex:1,label:
104x(C({show:!0},this.labelFontOptions()),{position:"top",formatter:t=>p()(t.value).format(this.formatter)}),emphasis:{itemStyle:{color:"inherit"}},data:this.defaultQuarterlyDatasetOptions(),markLine:this.markLineOptions()}]},media:[{query:{maxWidth:350},option:{series:[{barWidth:30},{barWidth:30}]}}]}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onWindowResize(){$(window).on("resize",()=>{this.resize()})},onTabChanged(){$('a[data-toggle="tab"]').on("shown.bs.tab",e=>{this.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:"90%"},{name:"End Point",x:`${s}%`,y:"7%"}]]}}},fontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:"14px",color:a}},labelFontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",color:a,fontSize:$(window).width()<450?"12px":"14px",fontWeight:700}},tooltipStyle(){let e=$("html").attr("lang");return{textStyle:{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:$(window).width()<450?"10px":"14px",color:"#194424"},backgroundColor:"#FFF"}},lineOptions(){return this.theme==="dark"?{color:"#FFF"}:{color:"#D1CAA8"}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"5%",bottom:"10%"},{containLabel:!1,left:"100%",right:0,top:"5%",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:"7%",bottom:"10%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"10%"}]},defaultYearlyDatasetOptions(){let e=this.data.yearly.dataset;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.colors[1]:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}}:{value:t,itemStyle:{color:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultQuarterlyDatasetOptions(){let e=this.data.quarterly.dataset;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.colors[1]:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}}:{value:t,itemStyle:{color:this.colors[1],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})}}},gn=fn,Ft=(0,c.Z)(gn,It,hn,!1,null,null,null);if(!1)var cd;Ft.options.__file="app/resources/vue/components/chart/BarChart.vue";var yn=Ft.exports,Et=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--pie chart--major-shareholder"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend",class:e.enableLegend?"":"d-none"},[t("div",{staticClass:"chart__legend-item-wrapper"},e._l(this.data,function(i,s){return t("div",{staticClass:"chart__legend-item"},[t("div",{staticClass:"chart__legend-badge-wrapper"},[t("span",{staticClass:"chart__legend-badge chart__legend-badge--left",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-badge chart__legend-badge--right"})]),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(e._f("numeralFormat")(i.value,e.formatter))+e._s(e.unit))]),e._v(" "),t("div",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i.name)}})])])}),0)])])},bn=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];Et._withStripped=!0;var wn=Object.defineProperty,Cn=Object.defineProperties,$n=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable,Mt=(e,a,t)=>a in e?wn(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,qt=(e,a)=>{for(var t in a||(a={}))xn.call(a,t)&&Mt(e,t,a[t]);if(Rt)for(var t of Rt(a))Sn.call(a,t)&&Mt(e,t,a[t]);return e},kn=(e,a)=>Cn(e,$n(a)),Tn={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,formatter:window.chart[this.source].formatter,enableLegend:window.chart[this.source].enableLegend}},mounted(){this.init(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},init(){new IntersectionObserver(a=>{a[0].isIntersecting&&(this.createChart(),setTimeout(()=>{this.onResize()},1e3))},{threshold:.5,rootMargin:"100px 0px"}).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,t=$("html").attr("lang");return{baseOption:{animation:e,color:this.colors,grid:{containLabel:!1,top:0,left:0,right:0,bottom:0},tooltip:{position:"top",confine:!0,borderWidth:1,padding:16,borderRadius:0,backgroundColor:"rgba(255, 255, 255, 1)",extraCssText:"min-width: 180px; z-index: 15;",textStyle:qt({color:"rgba(0, 0, 0, 1)"},this.fontOptions()),formatter:i=>{let s;return i.data.displayValue!==void 0?s=i.data.displayValue:s=i.value,` 105 <div class="echarts-tooltip"> 106 <div class="echarts-tooltip__main"> 107 <div class="echarts-tooltip__badge">${i.marker}</div> 108 <div class="echarts-tooltip__wrapper"> 109 <div class="echarts-tooltip__value">${p()(s).format(this.formatter)}%</div> 110 <div class="echarts-tooltip__title">${i.name}</div> 111 </div> 112 </div> 113 </div> 114 `}}
114,series:[{type:"pie",radius:["50%","80%"],center:["center","center"],avoidLabelOverlap:!1,startAngle:0,minAngle:15,label:kn(qt({show:!1,confine:!0},this.labelFontOptions()),{formatter:i=>i.data.displayValue!==void 0?p()(i.data.displayValue).format(this.formatter)+"%":p()(i.value).format(this.formatter)+"%"}),labelLine:{show:!1},emphasis:{itemStyle:{color:"inherit"}},data:this.data}]},media:[]}},fontOptions(){return{fontFamily:"'Rethink Sans', 'Noto Sans Thai', sans-serif",color:"#194424",fontWeight:400,fontSize:"16px"}},labelFontOptions(){return{fontFamily:"'Rethink Sans', 'Noto Sans Thai', sans-serif",color:"#194424",fontSize:"16px",fontWeight:400}},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)},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{color:this.colors[e]}}}},Dn=Tn,jt=(0,c.Z)(Dn,Et,bn,!1,null,null,null);if(!1)var hd;jt.options.__file="app/resources/vue/components/chart/MajorShareholder.vue";var Pn=jt.exports,Wt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--financial-position"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend"},e._l(this.legendData,function(i,s){return t("div",{staticClass:"chart__legend-item"},[t("span",{staticClass:"chart__legend-badge",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i)}})])}),0)])},Ln=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];Wt._withStripped=!0;var In=Object.defineProperty,On=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,zt=(e,a,t)=>a in e?In(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,S=(e,a)=>{for(var t in a||(a={}))Fn.call(a,t)&&zt(e,t,a[t]);if(Bt)for(var t of Bt(a))En.call(a,t)&&zt(e,t,a[t]);return e},z=(e,a)=>On(e,An(a)),Rn={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,maxDataset:window.chart[this.source].max,minDataset:window.chart[this.source].min,datasetUnit:window.chart[this.source].unit,formatter:window.chart[this.source].format,colors:window.chart[this.source].colors,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0,yearlyPeriod:window.chart[this.source].source.yearly.period,quarterlyPeriod:window.chart[this.source].source.quarterly.period,yearlyAssets:window.chart[this.source].source.yearly.assets,quarterlyAssets:window.chart[this.source].source.quarterly.assets,yearlyLiabilities:window.chart[this.source].source.yearly.liabilities,quarterlyLiabilities:window.chart[this.source].source.quarterly.liabilities,yearlyEquity:window.chart[this.source].source.yearly.equity,quarterlyEquity:window.chart[this.source].source.quarterly.equity}},mounted(){this.initObserver(),this.onWindowResize(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},initObserver(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.initChart()},{threshold:.5}).observe($(this.$el)[0])},initChart(){this.createChart(),this.resize()},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0),{renderer:"svg"}),this.chart.setOption(this.chartOptions(e))},chartOptions(e){return{baseOption:{animation:e,colorBy:"series",color:this.colors,legend:{show:!1,selectedMode:!1},grid:this.gridOptions(),xAxis:[{gridIndex:0,type:"category",show:!0,axisTick:{show:!0,alignWithLabel:!0},splitLine:{show:!1}
114,axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:S({interval:0,padding:[5,0]},this.fontOptions()),data:this.yearlyPeriod},{gridIndex:1,type:"category",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},data:this.yearlyPeriod},{gridIndex:2,type:"category",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},data:this.yearlyPeriod},{gridIndex:3,type:"category",show:!0,axisTick:{show:!0,alignWithLabel:!0},splitLine:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:S({interval:0,padding:[5,0]},this.fontOptions()),data:this.quarterlyPeriod},{gridIndex:4,type:"category",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},data:this.quarterlyPeriod},{gridIndex:5,type:"category",show:!1,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},data:this.quarterlyPeriod}],yAxis:[{gridIndex:0,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.maxDataset,min:a=>this.minDataset},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},{gridIndex:2,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},{gridIndex:3,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.maxDataset,min:a=>this.minDataset},{gridIndex:4,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},{gridIndex:5,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],tooltip:z(S({show:!0,trigger:"axis",confine:!0,padding:10,axisPointer:{type:"shadow",z:1,shadowStyle:{color:"#FAF7E9"}},extraCssText:"min-width: 150px; max-width: 300; z-index: 15;"},this.tooltipStyle()),{formatter:a=>{let t=a[0].name,i=a.map(s=>{let r=s.marker,d=s.seriesName,l=this.datasetUnit,n=s.value;return s.value!==void 0&&s.value!==0?` 115 <div class="echarts-tooltip__item"> 116 <div class="echarts-tooltip__wrapper"> 117 <div class="echarts-tooltip__badge">${r}</div> 118 <div class="echarts-tooltip__title">${d}</div> 119 </div> 120 <div class="echarts-tooltip__value">${p()(n).format(this.formatter)} <span class="font-weight-normal">${l}</span></div> 121 </div> 122 `:""}).join("");return` 123 <div class="echarts-tooltip"> 124 <div class="echarts-tooltip__main"> 125 <div class="echarts-tooltip__headline">${t}</div> 126 </div> 127 ${i} 128 </div> 129 `}}),series:[{name:this.legendData[0],type:"bar",xAxisIndex:0,yAxisIndex:0,barWidth:35,itemStyle:{borderRadius:[50,50,0,0]},emphasis:{itemStyle:{color:"inherit"}},label:z(S({show:!0},this.labelFontOptions()),{position:["0","-20"],formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultYearlyAssetsOptions()},{name:this.legendData[1],type:"bar",stack:"yearly",xAxisIndex:0,yAxisIndex:0,barWidth:35,emphasis:{itemStyle:{color:"inherit"}},label:{show:!1},data:this.defaultYearlyLiabilitiesOptions()},{name:this.legendData[2],type:"bar",stack:"yearly",xAxisIndex:0,yAxisIndex:0,barWidth:35,itemStyle:{borderRadius:[50,50,0,0]},emphasis:{itemStyle:{color:"inherit"}},label:{show:!1},data:this.defaultYearlyEquityOptions()},{name:this.legendData[0],type:"bar",xAxisIndex:3,yAxisIndex:3,barWidth:35,itemStyle:{borderRadius:[50,50,0,0]},emphasis:{itemStyle:{color:"inherit"}},label:z(S({show:!0},this.labelFontOptions()),{position:["0","-20"],formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultQuarterlyAssetsOptions(),markLine:this.markLineOptions()},{name:this.legendData[1],type:"bar",stack:"quarterly",xAxisIndex:3,yAxisIndex:3,barWidth:35,emphasis:{itemStyle:{color:"inherit"}},label:{show:!1},data:this.defaultQuarterlyLiabilitiesOptions()},{name:this.legendData[2],type:"bar",stack:"quarterly",xAxisIndex:3,yAxisIndex:3,barWidth:35,itemStyle:{borderRadius:[50,50,0,0]},emphasis:{itemStyle:{color:"inherit"}},label:{show:!1},data:this.defaultQuarterlyEquityOptions()}]},media:[{query:{minWidth:900},option:{series:[{barWidth:50},{barWidth:50},{barWidth:50},{barWidth:50},{barWidth:50},{barWidth:50}]}},{query:{minWidth:600,maxWidth:800},option:{series:[{barWidth:40},{barWidth:40},{barWidth:40},{barWidth:40},{barWidth:40},{barWidth:40}]}},{query:{maxWidth:350},option:{series:[{barWidth:25},{barWidth:25},{barWidth:25},{barWidth:25},{barWidth:25},{barWidth:25}]}}]}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onWindowResize(){$(window).on("resize",()=>{this.resize()})},fontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:"12px",color:a}},labelFontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",color:a,fontSize:$(window).width()<450?"12px":"14px",fontWeight:700}},tooltipStyle(){let e=$("html").attr("lang");return{textStyle:{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:$(window).width()<450?"10px":"14px",color:"#194424"},backgroundColor:"#FFF"}},lineOptions(){return this.theme==="dark"?{color:"#FFF"}:{color:"#D1CAA8"}},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:"#8B8B8B"},data:[[{name:"Start Point",x:`${s}%`,y:"80%"},{name:"End Point",x:`${s}%`,y:"5%"}]]}}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"}];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:"7%",bottom:"20%"},{containLabel:!1,right:`${s}%`,left:0,top:"7%",bottom:"20%"},{containLabel:!1,right:`${s}%`,left:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"}]},defaultYearlyAssetsOptions(){return this.yearlyAssets},defaultQuarterlyAssetsOptions(){return this.quarterlyAssets},defaultYearlyLiabilitiesOptions(){return this.yearlyLiabilities},defaultQuarterlyLiabilitiesOptions(){return this.quarterlyLiabilities},defaultYearlyEquityOptions(){return this.yearlyEquity},defaultQuarterlyEquityOptions(){return this.quarterlyEquity},legendLabelColor(e){return{"background-color":this.colors[e]}}}}
129,Mn=Rn,Vt=(0,c.Z)(Mn,Wt,Ln,!1,null,null,null);if(!1)var pd;Vt.options.__file="app/resources/vue/components/chart/FinancialPosition.vue";var qn=Vt.exports,Ht=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"hero-banner"},[e._t("default")],2)},jn=[];Ht._withStripped=!0;var Wn={props:{theme:{type:String}},data(){return{timeline:null,videoWrapperLeft:0,videoWrapperTop:0,widthImage:0,HeightImage:0,scrollPosition:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),requestAnimationFrame(()=>{this.init()})},methods:{init(){this.setData(),this.animate(),this.onResize()},setData(){this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.videoWrapperLeft=$(".hero-banner__space")[0].getBoundingClientRect().left,this.videoWrapperTop=$(".hero-banner__space")[0].getBoundingClientRect().top+this.scrollPosition,this.widthImage=$(".hero-banner__img").width(),this.HeightImage=$(".hero-banner__img").height()},animate(){window.innerWidth>=768?gsap.set(".hero-banner__space",{width:0}):gsap.set(".hero-banner__space",{width:0,height:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".hero-banner",start:"bottom bottom",end:"bottom top",pin:!0,anticipatePin:1,scrub:2,markers:!1,onUpdate:e=>{document.querySelector(".pin-spacer").style.backgroundColor="#FFFEF5"}}}).to(".hero-banner__backdrop",{width:`${this.widthImage}`,height:`${this.HeightImage}`,borderRadius:200,left:`${this.videoWrapperLeft}`,top:`${this.videoWrapperTop}`},0).to(".hero-banner__video",{width:`${this.widthImage}`,height:`${this.HeightImage}`,borderRadius:200,left:`${this.videoWrapperLeft}`,top:`${this.videoWrapperTop}`},0).to(".hero-banner__space",{height:`${this.HeightImage}`,width:`${this.widthImage}`},0).to(".hero-banner__text",{color:"#194424"},0).to(".hero-banner__btn",{opacity:1,y:0},0),window.innerWidth>=768&&this.timeline.to(".hero-banner__space",{marginLeft:19,marginRight:19},0)},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&(window.scrollTo({top:0}),(a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".hero-banner__video").attr("style",""),$(".hero-banner__backdrop").attr("style",""),this.setData(),this.videoWrapperLeft=$(".hero-banner__space")[0].getBoundingClientRect().left-this.widthImage/2,this.animate()},100)),e=t})}}},Bn=Wn,Nt=(0,c.Z)(Bn,Ht,jn,!1,null,null,null);if(!1)var _d;Nt.options.__file="app/resources/vue/components/HeroBanner.vue";var zn=Nt.exports,Yt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"banner-vision-mission"},[e._t("default")],2)},Vn=[];Yt._withStripped=!0;var Hn={props:{theme:{type:String}},data(){return{swiper:null,timeline:null,videoWrapperLeft:0,videoWrapperTop:0,imageWidth:0,imageHeight:0,textHeight:0,scrollPosition:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),requestAnimationFrame(()=>{this.init()})},methods:{init(){this.setData(),this.animate(),this.onResize()},setData(){this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.videoWrapperLeft=$(".banner-vision-mission__space")[0].getBoundingClientRect().left,this.videoWrapperTop=$(".banner-vision-mission__space")[0].getBoundingClientRect().top+this.scrollPosition,this.textSpaceLeft=$(".banner-vision-mission__space-text")[0].getBoundingClientRect().left,this.textSpaceTop=$(".banner-vision-mission__space-text")[0].getBoundingClientRect().top+this.scrollPosition,this.imageWidth=$(".banner-vision-mission__space").width(),this.imageHeight=$(".banner-vision-mission__space").height(),this.textHeight=$(".banner-vision-mission__space-text").height(),this.fontSize=$(".banner-vision-mission__text").css("font-size")},animate(){let e=$(window).height()/2-$(".banner-vision-mission__title").height()/2;gsap.set(".banner-vision-mission__title",{top:`${e}`}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".banner-vision-mission",start:"top top",end:"center top",pin:!0,pinSpacing:!1,scrub:2,markers:!1}}).to(".banner-vision-mission__video",{width:`${this.imageWidth}`,height:`${this.imageHeight}`,borderRadius:200,left:`${this.videoWrapperLeft}`,top:`${this.videoWrapperTop}`},0).to(".banner-vision-mission__title",{color:"#194424",left:`${this.textSpace
129Left}`,top:`${this.textSpaceTop}`,fontSize:`${this.fontSize}`,height:`${this.textHeight}`,duration:.2},0)},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&(window.scrollTo({top:0}),(a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".banner-vision-mission__video").attr("style",""),$(".banner-vision-mission__title").attr("style",""),this.setData(),this.animate()},100)),e=t})}}},Nn=Hn,Zt=(0,c.Z)(Nn,Yt,Vn,!1,null,null,null);if(!1)var ud;Zt.options.__file="app/resources/vue/components/banner/VisionAndMission.vue";var Yn=Zt.exports,Gt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"banner-ir-home"},[e._t("default")],2)},Zn=[];Gt._withStripped=!0;var Gn={props:{theme:{type:String}},data(){return{timeline:null,scrollPosition:0,titlePositionLeft:0,titlePositionTop:0,titleStockPositionLeft:0,titleStockPositionTop:0,fontSizeBefore:0,fontSizeAfter:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),requestAnimationFrame(()=>{this.init()})},methods:{init(){this.setData(),this.animate(),this.onResize()},setData(){this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.titlePositionLeft=$(".banner-ir-home__space")[0].getBoundingClientRect().left,this.titlePositionTop=$(".banner-ir-home__space")[0].getBoundingClientRect().top+this.scrollPosition,this.titleStockPositionLeft=$(".banner-ir-home__space")[1].getBoundingClientRect().left,this.titleStockPositionTop=$(".banner-ir-home__space")[1].getBoundingClientRect().top+this.scrollPosition,this.fontSizeBefore=$(".banner-ir-home__title").css("font-size"),this.fontSizeAfter=$(".banner-ir-home__body").find(".banner-ir-home__title").css("font-size")},animate(){gsap.set(".banner-ir-home__item",{left:`${this.titlePositionLeft}`,top:`${this.titlePositionTop}`,fontSize:`${this.fontSizeBefore}`,color:"#FFFFFF"}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".banner-ir-home__body-banner",start:"10% top",end:"80% top",scrub:2,markers:!1}}).to(".banner-ir-home__item",{left:`${this.titleStockPositionLeft}`,top:`${this.titleStockPositionTop}`,fontSize:`${this.fontSizeAfter}`,color:"#194424"},0)},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&(window.scrollTo({top:0}),(a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".banner-ir-home__item").attr("style",""),this.setData(),this.animate()},100)),e=t})}}},Un=Gn,Ut=(0,c.Z)(Un,Gt,Zn,!1,null,null,null);if(!1)var vd;Ut.options.__file="app/resources/vue/components/banner/IRHome.vue";var Qn=Ut.exports,Qt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"banner-careers"},[e._t("default")],2)},Xn=[];Qt._withStripped=!0;var Kn={props:{theme:{type:String}},data(){return{timeline:null,videoWrapperLeft:0,videoWrapperTop:0,spaceWidth:0,spaceHeight:0,contentHeight:0,scrollPosition:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),requestAnimationFrame(()=>{this.init()})},methods:{init(){this.setData(),this.animate(),this.onResize()},setData(){this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.videoWrapperLeft=$(".banner-careers__space")[0].getBoundingClientRect().left,this.videoWrapperTop=$(".banner-careers__space")[0].getBoundingClientRect().top+this.scrollPosition,this.spaceTop=(window.innerHeight-$(".banner-careers__text").height())/2,this.contentHeight=$(".banner-careers__container").height()+100,window.innerWidth>=768?(this.spaceWidth=170,this.spaceHeight=91):(this.spaceWidth=120,this.spaceHeight=64)},animate(){gsap.set(".banner-careers",{height:`${this.contentHeight}`}),gsap.set(".banner-careers__container",{paddingTop:`${this.spaceTop}`}),gsap.set(".banner-careers__body-content",{y:`${this.spaceTop}`,opacity:0}),922>window.innerWidth?gsap.set(".banner-careers__space",{width:20}):gsap.set(".banner-careers__space",{width:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el).find(".banner-careers")[0],start:"top top",end:"bottom top",pin:this.$el,scrub:2,markers:!1}}).to(".banner-careers__bg-img",{width:`${this.spaceWidth}`,height:`${this.spaceHeight}`,borderRadius:200,left:`${this.videoWrapperLeft}`,top:`${this.videoWrapperTop+this.spaceTop}`},0).to(".banner-careers__container",{paddingTop:0},.5).to(".banner-careers__body-content",{opacity:1,y:0},.5).to(".banner-careers__bg-img",{top:`${this.videoWrapperTop}`},.5).to(".banner-careers__space",{width:`${this.spaceWidth}`,height:`${this.spaceHeight}`},0).to(".banner-careers__text",{color:"#194424"},0),window.innerWidth>=768&&this.timeline.to(".banner-careers__space",{marginLeft:19,marginRight:19},0)},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&(window.scrollTo({top:0}
129),(a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".banner-careers__bg-img").attr("style",""),$(".banner-careers").attr("style",""),$(".banner-careers__container").attr("style",""),this.setData(),this.videoWrapperLeft=$(".banner-careers__space")[0].getBoundingClientRect().left-this.spaceWidth/2,this.animate()},100)),e=t})}}},Jn=Kn,Xt=(0,c.Z)(Jn,Qt,Xn,!1,null,null,null);if(!1)var md;Xt.options.__file="app/resources/vue/components/banner/Careers.vue";var el=Xt.exports,Kt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"banner-sustainability"},[e._t("default")],2)},tl=[];Kt._withStripped=!0;var al={props:{theme:{type:String}},data(){return{timeline:null,imageWrapperLeft:0,imageWrapperTop:0,imageWidth:0,imageHeight:0,titleLeft:0,titleTop:0,titleHeight:0,titleWidth:0,fontSizeBefore:0,fontSizeAfter:0,scrollPosition:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),this.init(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{var e;(e=this.timeline.scrollTrigger)==null||e.kill()})},init(){this.setData(),this.animate(),this.onResize()},setData(){this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.imageWrapperLeft=$(".banner-sustainability__img-wrapper")[0].getBoundingClientRect().left,this.imageWrapperTop=$(".banner-sustainability__img-wrapper")[0].getBoundingClientRect().top+this.scrollPosition,this.imageWidth=$(".banner-sustainability__img-wrapper").width(),this.imageHeight=$(".banner-sustainability__img-wrapper").height(),this.titleLeft=$(".banner-sustainability__title")[0].getBoundingClientRect().left,this.titleTop=$(".banner-sustainability__title")[0].getBoundingClientRect().top+this.scrollPosition,this.fontSizeBefore=$(".banner-sustainability__headline").css("font-size"),this.fontSizeAfter=$(".banner-sustainability__title").css("font-size"),this.titleHeight=$(".banner-sustainability__title").height(),this.titleWidth=$(".banner-sustainability__title").width()+5},animate(){gsap.set(".banner-sustainability__body",{y:"100vh"}),gsap.set($(".banner-sustainability__headline")[0],{fontSize:`${this.fontSizeBefore}`,color:"#FFFFFF"}),gsap.set($(".banner-sustainability__headline")[1],{fontSize:`${this.fontSizeBefore}`,color:"#FFFFFF"}),gsap.set($(".banner-sustainability__title")[0],{opacity:0}),gsap.set(".banner-sustainability__header",{height:"100vh"}),576>window.innerWidth&&gsap.set(".banner-sustainability__header",{width:"100%"}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".banner-sustainability",start:"top top",end:"50% top",pin:!0,scrub:2,markers:!1}}).to(".banner-sustainability__body",{y:0},0).to(".banner-sustainability__img",{width:`${this.imageWidth}`,height:`${this.imageHeight}`,borderRadius:200,left:`${this.imageWrapperLeft}`,top:`${this.imageWrapperTop}`},0).to(".banner-sustainability__header",{left:`${this.titleLeft}`,top:`${this.titleTop}`,height:`${this.titleHeight}`,durations:.2},0).to(".banner-sustainability__title",{fontSize:`${this.fontSizeAfter}`,color:"#194424"},0).to($(".banner-sustainability__headline")[0],{fontSize:`${this.fontSizeAfter}`,color:"#194424",durations:.2},0).to($(".banner-sustainability__headline")[1],{opacity:0,durations:.2},0),576>window.innerWidth&&(this.timeline.to($(".banner-sustainability__headline")[1],{opacity:0,height:0},0),this.timeline.to(".banner-sustainability__header",{width:`${this.titleWidth}`},0)),window.innerWidth>=1560?(this.timeline.to(".banner-sustainability__item--top",{width:"55%"},0),this.timeline.to(".banner-sustainability__item--middle",{width:"65%"},0)):1560>window.innerWidth&&window.innerWidth>=1440?(this.timeline.to(".banner-sustainability__item--top",{width:"80%"},0),this.timeline.to(".banner-sustainability__item--middle",{width:"100%"},0)):1440>window.innerWidth&&window.innerWidth>=993?(this.timeline.to(".banner-sustainability__item--top",{width:"80%"},0),this.timeline.to(".banner-sustainability__item--middle",{width:"100%"},0)):(this.timeline.to(".banner-sustainability__item--top",{width:"100%"},0),this.timeline.to(".banner-sustainability__item--middle",{width:"100%"},0))},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&(window.scrollTo({top:0}
129),(a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".banner-sustainability__img").attr("style",""),$(".banner-sustainability__header").attr("style",""),$(".banner-sustainability__headline").attr("style",""),$(".banner-sustainability__body").attr("style",""),this.setData(),this.animate()},100)),e=t})}}},il=al,Jt=(0,c.Z)(il,Kt,tl,!1,null,null,null);if(!1)var fd;Jt.options.__file="app/resources/vue/components/banner/Sustainability.vue";var sl=Jt.exports,ea=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"banner-business-and-brands"},[e._t("default")],2)},rl=[];ea._withStripped=!0;var nl={props:{theme:{type:String}},data(){return{timeline:null,videoWrapperLeft:0,videoWrapperTop:0,heightTitle:0,widthImage:0,HeightImage:0,pinHeight:0,scrollPosition:0}},mounted(){ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),requestAnimationFrame(()=>{this.init()})},methods:{init(){this.setData(),this.animate(),this.onResize()},setData(){this.videoWrapperLeft=$(".banner-business-and-brands__space")[0].getBoundingClientRect().left,this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.heightTitle=$(".banner-business-and-brands__title").height(),this.widthImage=$(".banner-business-and-brands__space").width(),this.HeightImage=$(".banner-business-and-brands__space").height(),this.pinHeight=$(window).height()+($(".banner-business-and-brands__body-img").height()+$(".banner-business-and-brands__container-detail").height()),this.videoWrapperTop=$(".banner-business-and-brands__space")[0].getBoundingClientRect().top+this.scrollPosition},animate(){gsap.set(".banner-business-and-brands__body",{height:`${this.heightTitle}`}),gsap.set(".banner-business-and-brands__body-img",{y:100,opacity:0}),gsap.set(".banner-business-and-brands__container-detail",{y:100,opacity:0}),gsap.set($(".banner-business-and-brands___item")[0],{y:100}),gsap.set($(".banner-business-and-brands___item")[4],{y:100}),gsap.set(".banner-business-and-brands__title",{color:"#FFFFFF"}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".banner-business-and-brands",start:"top top",end:"40% top",pin:!0,scrub:2,markers:!1,onUpdate:e=>{document.querySelector(".pin-spacer").style.backgroundColor="#FFFEF5"}}}).to(".banner-business-and-brands__bg-img",{width:`${this.widthImage}`,height:`${this.HeightImage}`,borderRadius:200,left:`${this.videoWrapperLeft}`,top:`${this.videoWrapperTop}`},0).to(".banner-business-and-brands__body",{height:"auto"},0).to(".banner-business-and-brands__body-img",{y:0,opacity:1},0).to(".banner-business-and-brands__container-detail",{y:0,opacity:1},0).to($(".banner-business-and-brands___item")[0],{y:0},0).to($(".banner-business-and-brands___item")[4],{y:0},0).to(".banner-business-and-brands__title",{color:"#194424"},0)},onResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{var a;let t=window.innerWidth;t!==e&&((a=this.timeline.scrollTrigger)==null||a.kill(),clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(()=>{$(".banner-business-and-brands__body").attr("style",""),$(".banner-business-and-brands__body-img").attr("style",""),$(".banner-business-and-brands__bg-img").attr("style",""),$(".banner-business-and-brands__container-detail").attr("style",""),this.setData(),this.animate()},100)),e=t})}}},ll=nl,ta=(0,c.Z)(ll,ea,rl,!1,null,null,null);if(!1)var gd;ta.options.__file="app/resources/vue/components/banner/BusinessAndBrands.vue";var ol=ta.exports,aa=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"financial"},[e._t("default")],2)},dl=[];aa._withStripped=!0;var cl={data(){return{timeline:null,scrollTriggerConfig:null}},mounted(){this.scrollTriggerAnimation()},methods:{scrollTriggerAnimation(){ScrollTrigger.matchMedia({"(min-width: 1024px)":()=>{this.cardDesktopAnimation(),this.financialHeader()}})},financialHeader(){gsap.set(".ir-home-financial__header",{opacity:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".ir-home-financial__header",start:"-20% center",end:"-20% center",markers:!1,toggleActions:"play play play reverse",ease:Power4.easeInOut}}),this.timeline.to(".ir-home-financial__header",{opacity:1,duration:.5})},cardDesktopAnimation(){gsap.set(".card--info-financial:nth-child(1)",{translateX:"100%",opacity:0}
129),gsap.set(".card--info-financial:nth-child(2)",{translateX:"0",translateY:10,opacity:0,zIndex:2}),gsap.set(".card--info-financial:nth-child(3)",{translateX:"-100%",opacity:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:".card-deck",start:"start center",end:"center center",markers:!1,toggleActions:"play play play reverse",yoyo:!0,ease:Power4.easeInOut}}),this.timeline.to(".card--info-financial:nth-child(1)",{translateX:"0%",opacity:1,duration:1.2},0).to(".card--info-financial:nth-child(2)",{translateY:"0%",opacity:1,duration:1},0).to(".card--info-financial:nth-child(3)",{translateX:"0%",opacity:1,duration:1.2},0)}}},hl=cl,ia=(0,c.Z)(hl,aa,dl,!1,null,null,null);if(!1)var yd;ia.options.__file="app/resources/vue/components/animated/Financial.vue";var pl=ia.exports,sa=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"stacked-card"},[e._t("default")],2)},_l=[];sa._withStripped=!0;var ul={data(){return{timeline:null,height:0}},mounted(){window.addEventListener("orientationchange",this.handleOrientationChange),ScrollTrigger.config({autoRefreshEvents:"visibilitychange,DOMContentLoaded,load"}),this.$nextTick().then(()=>{this.getData(),this.init()})},methods:{init(){ScrollTrigger.matchMedia({"(min-width: 1400px)":()=>(this.largeDesktopAnimation(),this.setItem(),()=>{this.timeline.kill()}),"(min-width: 992px) and (max-width: 1399px)":()=>(this.desktopAnimation(),this.setItem(),()=>{this.timeline.kill()})})},getData(){this.height=-(gsap.getProperty(".stacked-card__item","height")+24)},setItem(){let e=0;$(".stacked-card__item").each(function(){let a=$(".stacked-card__item").height();a>e&&(e=a)}),gsap.set($(".stacked-card__item").find(".card"),{height:`${e}`})},largeDesktopAnimation(){let e=$(".stacked-card__item").height();gsap.set(".stacked-card",{height:`${e}`*3-`${e}`/2}),this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el).find(".stacked-card__section-body")[0],pin:this.$el,pinSpacing:!1,start:"-128 top",end:"28% top",scrub:1,ease:"none",markers:!1}}).to(".stacked-card__item",{marginBottom:`${this.height}`,stagger:.5},"<")},desktopAnimation(){let e=$(".stacked-card__item").height();gsap.set(".stacked-card",{height:`${e}`*3-`${e}`/2}),this.timeline=gsap.timeline({scrollTrigger:{trigger:$(this.$el).find(".stacked-card__deck")[0],pin:this.$el,pinSpacing:!1,start:"-32 top",end:"35% top",scrub:.75,ease:"none",markers:!1}}).to(".stacked-card__header",{opacity:0}).to(".stacked-card__item",{marginBottom:`${this.height}`,stagger:.5},"<")},handleOrientationChange(){location.reload()}},beforeDestroy(){window.removeEventListener("orientationchange",this.handleOrientationChange)}},vl=ul,ra=(0,c.Z)(vl,sa,_l,!1,null,null,null);if(!1)var bd;ra.options.__file="app/resources/vue/components/animated/StackedCardBrandValues.vue";var ml=ra.exports,na=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"milestone"},[t("div",{staticClass:"milestone__item-wrapper"},[e._t("item")],2),e._v(" "),t("div",{staticClass:"milestone__btn"},[e._t("button")],2)])},fl=[];na._withStripped=!0;var gl={props:["trans"],data(){return{timeline:null,items:null}},mounted(){this.init(),this.onClick(),this.milestoneActive(),this.iconLeafActive()},methods:{init(){$(this.$el).find(".milestone__item-wrapper .milestone__item").addClass("active"),$(this.$el).find(".milestone__item-wrapper .milestone__item").length>5&&($(this.$el).find(".milestone__item-wrapper .milestone__item:gt(4)").hide(),$(this.$el).find(".milestone__item-wrapper .milestone__item:gt(4)").removeClass("active"),$(this.$el).find(".btn--hide").css({display:"none"}),this.items=gsap.utils.toArray(".milestone__item.active"))},onClick(){$(this.$el).find(".btn--show").on("click",e=>{$(this.$el).find(".milestone__item-wrapper .milestone__item:gt(4)").show(),$(this.$el).find(".btn--show").css({display:"none"}),$(this.$el).find(".btn--hide").css({display:"inline-flex"}),$(this.$el).find(".milestone__item-wrapper .milestone__item").addClass("active"),$("html, body").animate({scrollTop:$(this.$el).find(".milestone__item-wrapper > .milestone__item:nth-child(6)").offset().top,behavior:"smooth"},1e3),this.items=gsap.utils.toArray(".milestone__item.active"),this.milestoneActive(),this.iconLeafActive(),scrollTrigger.refresh()}),$(this.$el).find(".btn--hide").on("click",e=>{$(this.$el).find(".milestone__item-wrapper .milestone__item:gt(4)").hide(),$(this.$el).find(".btn--hide").css({display:"none"}),$(this.$el).find(".btn--show").css({display:"inline-flex"}),$(this.$el).find(".milestone__item-wrapper .milestone__item:gt(4)").removeClass("active"),$("html, body").animate({scrollTop:$(this.$el).find(".milestone__item-wrapper").offset().top,behavior:"smooth"},1e3),this.items=gsap.utils.toArray(".milestone__item.active"),this.milestoneActive(),this.iconLeafActive(),scrollTrigger.refresh()})}
129,milestoneActive(){this.items.forEach((a,t)=>{gsap.set($(a).find(".milestone__line-active"),{height:0}),gsap.timeline({scrollTrigger:{trigger:a,start:"top center",end:"bottom+=30px center",scrub:!0,markers:!1}}).to($(a).find(".milestone__line-active"),{height:"100%"},0)})},iconLeafActive(){this.items.forEach((a,t)=>{gsap.timeline({scrollTrigger:{trigger:a,start:"10 center",end:"10 center",scrub:2,markers:!1}}).to($(a).find(".milestone__icon-left"),{rotate:-35,x:-7},0).to($(a).find(".milestone__icon-right"),{rotate:35,x:7},0)})}}},yl=gl,la=(0,c.Z)(yl,na,fl,!1,null,null,null);if(!1)var wd;la.options.__file="app/resources/vue/components/Milestone.vue";var bl=la.exports,oa=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"fade-up"},[e._t("default")],2)},wl=[];oa._withStripped=!0;var Cl={props:{theme:{type:String}},data(){return{swiper:null,timeline:null}},mounted(){this.init()},methods:{init(){gsap.set(".fade-up",{y:"100px",opacity:0}),this.timeline=gsap.timeline({scrollTrigger:{trigger:this.$el,start:"top 70%",end:"top 70%",markers:!1,toggleActions:"play play play reverse"}}).to(".fade-up",{y:0,opacity:1,duration:1.25})}}},$l=Cl,da=(0,c.Z)($l,oa,wl,!1,null,null,null);if(!1)var Cd;da.options.__file="app/resources/vue/components/animated/FadeUp.vue";var xl=da.exports,ca=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--bar-line"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend"},e._l(this.legendData,function(i,s){return t("div",{staticClass:"chart__legend-item",on:{click:function(r){return e.legendToggleSelect(i,s)}}},[t("span",{staticClass:"chart__legend-badge",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i)}})])}),0)])},Sl=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];ca._withStripped=!0;var kl=Object.defineProperty,Tl=Object.defineProperties,Dl=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,pa=(e,a,t)=>a in e?kl(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,f=(e,a)=>{for(var t in a||(a={}))Pl.call(a,t)&&pa(e,t,a[t]);if(ha)for(var t of ha(a))Ll.call(a,t)&&pa(e,t,a[t]);return e},k=(e,a)=>Tl(e,Dl(a)),Il={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,datasetMax:window.chart[this.source].max,datasetMin:window.chart[this.source].min,marginMax:window.chart[this.source].marginMax,marginMin:window.chart[this.source].marginMin,datasetUnit:window.chart[this.source].unit,marginUnit:window.chart[this.source].marginUnit,colors:window.chart[this.source].colors,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0,formatter:window.chart[this.source].format,marginFormatter:window.chart[this.source].marginFormat,yearlyPeriod:window.chart[this.source].source.yearly.period,quarterlyPeriod:window.chart[this.source].source.quarterly.period,yearlyDataset:window.chart[this.source].source.yearly.dataset,quarterlyDataset:window.chart[this.source].source.quarterly.dataset,yearlyMargin:window.chart[this.source].source.yearly.margin,quarterlyMargin:window.chart[this.source].source.quarterly.margin}},mounted(){this.initObserver(),this.onWindowResize(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},initObserver(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.initChart()},{threshold:.5}).observe($(this.$el)[0])},initChart(){this.createChart(),this.resize()},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0),{renderer:"svg"}),this.chart.setOption(this.chartOptions(e))},chartOptions(e){return{baseOption:{animation:e,legend:{show:!1,selectedMode:!1},grid:this.gridOptions(),xAxis:[{gridIndex:0,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:f({interval:0,padding:[5,0]},this.fontOptions()),data:this.yearlyPeriod},{gridIndex:1,type:"category",show:!1,axisTick:{show:!1}
129,axisLine:{show:!1},data:this.yearlyPeriod},{gridIndex:2,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:f({interval:0,padding:[5,0]},this.fontOptions()),data:this.quarterlyPeriod},{gridIndex:3,type:"category",show:!1,axisTick:{show:!1},axisLine:{show:!1},data:this.quarterlyPeriod}],yAxis:[{gridIndex:0,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin},{gridIndex:2,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:3,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin}],tooltip:k(f({show:!0,trigger:"axis",confine:!0,borderWidth:0,borderRadius:5,axisPointer:{type:"shadow",z:-10,shadowStyle:{color:"#FAF7E9"}},padding:16,extraCssText:"min-width: 200px; z-index: 10;"},this.tooltipStyle()),{formatter:a=>{let t=a[0].name,i=a.map(s=>{let r=s.marker,d=s.seriesName,l,n,h;
129return d===this.legendData[0]&&(l=s.value,n=this.formatter,h=this.datasetUnit),d===this.legendData[1]&&(l=s.value,n=this.formatter,h=this.marginUnit),` 130 <div class="echarts-tooltip__item"> 131 <div class="echarts-tooltip__badge">${r}</div> 132 <div class="echarts-tooltip__wrapper"> 133 <div class="echarts-tooltip__title font-weight-bold mb-0 mr-3">${d}</div> 134 <div class="echarts-tooltip__value"><span>${p()(l).format(n)}</span> 135 <span>${h}</span> 136 </div> 137 </div> 138 </div> 139 `}).join("");return` 140 <div class="echarts-tooltip"> 141 <div class="echarts-tooltip__main"> 142 <div class="echarts-tooltip__headline"> ${t} </div> 143 </div> 144 ${i} 145 </div> 146 `}}),series:[{name:this.legendData[0],type:"bar",xAxisIndex:0,yAxisIndex:0,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:k(f({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultYearlyDatasetOptions()},{name:this.legendData[0],type:"bar",xAxisIndex:2,yAxisIndex:2,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:k(f({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultQuarterlyDatasetOptions(),markLine:this.markLineOptions()},{name:this.legendData[1],type:"line",xAxisIndex:1,yAxisIndex:1,symbolSize:10,distance:10,emphasis:{focus:"none"},label:k(f({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultYearlyMarginOptions()},{name:this.legendData[1],type:"line",xAxisIndex:3,yAxisIndex:3,symbolSize:10,distance:10,emphasis:{focus:"none"},label:k(f({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultQuarterlyMarginOptions(),markLine:this.markLineOptions()}]},media:[{query:{maxWidth:425},option:{xAxis:[{axisLabel:{fontSize:"12px"}},{},{axisLabel:{fontSize:"12px"}},{}]}},{query:{maxWidth:350},option:{series:[{barWidth:30},{barWidth:30}]}}]}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onWindowResize(){$(window).on("resize",()=>{this.resize()})},fontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:"14px",color:a}},labelFontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",color:a,fontSize:$(window).width()<450?"12px":"14px",fontWeight:700}},tooltipStyle(){let e=$("html").attr("lang");return{textStyle:{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:$(window).width()<450?"10px":"14px",color:"#194424"},backgroundColor:"#FFF"}},lineOptions(){return this.theme==="dark"?{color:"#FFF"}:{color:"#D1CAA8"}},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:"#8B8B8B"},data:[[{name:"Start Point",x:`${s}%`,y:"80%"},{name:"End Point",x:`${s}%`,y:"5%"}]]}}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"}];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:"7%",bottom:"20%"},{containLabel:!1,right:`${s}%`,left:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"}]}
146,defaultYearlyDatasetOptions(){let e=this.yearlyDataset;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.colors[1]:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultQuarterlyDatasetOptions(){return this.quarterlyDataset.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultYearlyMarginOptions(){return this.yearlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2]}}:{value:t,itemStyle:{color:this.colors[1]}})},defaultQuarterlyMarginOptions(){return this.quarterlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[3]}}:{value:t,itemStyle:{color:this.colors[3]}})},legendLabelColor(e){return{"background-color":this.colors[e]}}}},Ol=Il,_a=(0,c.Z)(Ol,ca,Sl,!1,null,null,null);if(!1)var $d;_a.options.__file="app/resources/vue/components/chart/NetProfit.vue";var Al=_a.exports,ua=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--bar-line"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend"},e._l(this.legendData,function(i,s){return t("div",{staticClass:"chart__legend-item",on:{click:function(r){return e.legendToggleSelect(i,s)}}},[t("span",{staticClass:"chart__legend-badge",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i)}})])}),0)])},Fl=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];ua._withStripped=!0;var El=Object.defineProperty,Rl=Object.defineProperties,Ml=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,ql=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,ma=(e,a,t)=>a in e?El(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,g=(e,a)=>{for(var t in a||(a={}))ql.call(a,t)&&ma(e,t,a[t]);if(va)for(var t of va(a))jl.call(a,t)&&ma(e,t,a[t]);return e},T=(e,a)=>Rl(e,Ml(a)),Wl={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,datasetMax:window.chart[this.source].max,datasetMin:window.chart[this.source].min,marginMax:window.chart[this.source].marginMax,marginMin:window.chart[this.source].marginMin,datasetUnit:window.chart[this.source].unit,marginUnit:window.chart[this.source].marginUnit,colors:window.chart[this.source].colors,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0,formatter:window.chart[this.source].format,marginFormatter:window.chart[this.source].marginFormat,yearlyPeriod:window.chart[this.source].source.yearly.period,quarterlyPeriod:window.chart[this.source].source.quarterly.period,yearlyDataset:window.chart[this.source].source.yearly.dataset,quarterlyDataset:window.chart[this.source].source.quarterly.dataset,yearlyMargin:window.chart[this.source].source.yearly.margin,quarterlyMargin:window.chart[this.source].source.quarterly.margin}},mounted(){this.initObserver(),this.onWindowResize(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},initObserver(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.initChart()},{threshold:.5}).observe($(this.$el)[0])},initChart(){this.createChart(),this.resize()},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0),{renderer:"svg"}),this.chart.setOption(this.chartOptions(e))},chartOptions(e){return{baseOption:{animation:e,legend:{show:!1,selectedMode:!1},grid:this.gridOptions(),xAxis:[{gridIndex:0,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:g({interval:0,padding:[5,0]},this.fontOptions()),data:this.yearlyPeriod},{gridIndex:1,type:"category",show:!1,axisTick:{show:!1}
146,axisLine:{show:!1},data:this.yearlyPeriod},{gridIndex:2,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:g({interval:0,padding:[5,0]},this.fontOptions()),data:this.quarterlyPeriod},{gridIndex:3,type:"category",show:!1,axisTick:{show:!1},axisLine:{show:!1},data:this.quarterlyPeriod}],yAxis:[{gridIndex:0,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin},{gridIndex:2,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:3,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin}],tooltip:T(g({show:!0,trigger:"axis",confine:!0,borderWidth:0,borderRadius:5,axisPointer:{type:"shadow",z:-10,shadowStyle:{color:"#FAF7E9"}},padding:16,extraCssText:"min-width: 200px; z-index: 10;"},this.tooltipStyle()),{formatter:a=>{let t=a[0].name,i=a.map(s=>{let r=s.marker,d=s.seriesName,l,n,h;
146return d===this.legendData[0]&&(l=s.value,n=this.formatter,h=this.datasetUnit),d===this.legendData[1]&&(l=s.value,n=this.formatter,h=this.marginUnit),` 147 <div class="echarts-tooltip__item"> 148 <div class="echarts-tooltip__badge">${r}</div> 149 <div class="echarts-tooltip__wrapper"> 150 <div class="echarts-tooltip__title font-weight-bold mb-0 mr-3">${d}</div> 151 <div class="echarts-tooltip__value"><span>${p()(l).format(n)}</span> 152 <span>${h}</span> 153 </div> 154 </div> 155 </div> 156 `}).join("");return` 157 <div class="echarts-tooltip"> 158 <div class="echarts-tooltip__main"> 159 <div class="echarts-tooltip__headline"> ${t} </div> 160 </div> 161 ${i} 162 </div> 163 `}}),series:[{name:this.legendData[0],type:"bar",xAxisIndex:0,yAxisIndex:0,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:T(g({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultYearlyDatasetOptions()},{name:this.legendData[0],type:"bar",xAxisIndex:2,yAxisIndex:2,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:T(g({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultQuarterlyDatasetOptions(),markLine:this.markLineOptions()},{name:this.legendData[1],type:"line",xAxisIndex:1,yAxisIndex:1,symbolSize:10,distance:10,emphasis:{focus:"none"},label:T(g({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultYearlyMarginOptions()},{name:this.legendData[1],type:"line",xAxisIndex:3,yAxisIndex:3,symbolSize:10,distance:10,emphasis:{focus:"none"},label:T(g({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultQuarterlyMarginOptions(),markLine:this.markLineOptions()}]},media:[{query:{maxWidth:425},option:{xAxis:[{axisLabel:{fontSize:"12px"}},{},{axisLabel:{fontSize:"12px"}},{}]}},{query:{maxWidth:350},option:{series:[{barWidth:30},{barWidth:30}]}}]}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onWindowResize(){$(window).on("resize",()=>{this.resize()})},fontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:"14px",color:a}},labelFontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",color:a,fontSize:$(window).width()<450?"12px":"14px",fontWeight:700}},tooltipStyle(){let e=$("html").attr("lang");return{textStyle:{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:$(window).width()<450?"10px":"14px",color:"#194424"},backgroundColor:"#FFF"}},lineOptions(){return this.theme==="dark"?{color:"#FFF"}:{color:"#D1CAA8"}},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:"#8B8B8B"},data:[[{name:"Start Point",x:`${s}%`,y:"80%"},{name:"End Point",x:`${s}%`,y:"5%"}]]}}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"}];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:"7%",bottom:"20%"},{containLabel:!1,right:`${s}%`,left:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"}]}
163,defaultYearlyDatasetOptions(){let e=this.yearlyDataset;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.colors[1]:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultQuarterlyDatasetOptions(){return this.quarterlyDataset.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultYearlyMarginOptions(){return this.yearlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2]}}:{value:t,itemStyle:{color:this.colors[1]}})},defaultQuarterlyMarginOptions(){return this.quarterlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[3]}}:{value:t,itemStyle:{color:this.colors[3]}})},legendLabelColor(e){return{"background-color":this.colors[e]}}}},Bl=Wl,fa=(0,c.Z)(Bl,ua,Fl,!1,null,null,null);if(!1)var xd;fa.options.__file="app/resources/vue/components/chart/EBITDA.vue";var zl=fa.exports,ga=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--bar-line"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend"},e._l(this.legendData,function(i,s){return t("div",{staticClass:"chart__legend-item",on:{click:function(r){return e.legendToggleSelect(i,s)}}},[t("span",{staticClass:"chart__legend-badge",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i)}})])}),0)])},Vl=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];ga._withStripped=!0;var Hl=Object.defineProperty,Nl=Object.defineProperties,Yl=Object.getOwnPropertyDescriptors,ya=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable,ba=(e,a,t)=>a in e?Hl(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,y=(e,a)=>{for(var t in a||(a={}))Zl.call(a,t)&&ba(e,t,a[t]);if(ya)for(var t of ya(a))Gl.call(a,t)&&ba(e,t,a[t]);return e},D=(e,a)=>Nl(e,Yl(a)),Ul={props:{source:{required:!0}},data(){var e;return{chart:Object,data:window.chart[this.source].source,legendData:window.chart[this.source].legend,datasetMax:window.chart[this.source].max,datasetMin:window.chart[this.source].min,marginMax:window.chart[this.source].marginMax,marginMin:window.chart[this.source].marginMin,datasetUnit:window.chart[this.source].unit,marginUnit:window.chart[this.source].marginUnit,colors:window.chart[this.source].colors,qoq:(e=window.chart[this.source].QoQ)!=null?e:!0,formatter:window.chart[this.source].format,marginFormatter:window.chart[this.source].marginFormat,yearlyPeriod:window.chart[this.source].source.yearly.period,quarterlyPeriod:window.chart[this.source].source.quarterly.period,yearlyDataset:window.chart[this.source].source.yearly.dataset,quarterlyDataset:window.chart[this.source].source.quarterly.dataset,yearlyMargin:window.chart[this.source].source.yearly.margin,quarterlyMargin:window.chart[this.source].source.quarterly.margin}},mounted(){this.initObserver(),this.onWindowResize(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},initObserver(){new IntersectionObserver(a=>{a[0].isIntersecting&&this.initChart()},{threshold:.5}).observe($(this.$el)[0])},initChart(){this.createChart(),this.resize()},createChart(e=!0){this.chart=echarts.init($(this.$el).find(".echarts").get(0),{renderer:"svg"}),this.chart.setOption(this.chartOptions(e))},chartOptions(e){return{baseOption:{animation:e,legend:{show:!1,selectedMode:!1},grid:this.gridOptions(),xAxis:[{gridIndex:0,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:y({interval:0,padding:[5,0]},this.fontOptions()),data:this.yearlyPeriod},{gridIndex:1,type:"category",show:!1,axisTick:{show:!1}
163,axisLine:{show:!1},data:this.yearlyPeriod},{gridIndex:2,type:"category",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:this.lineOptions()},axisLabel:y({interval:0,padding:[5,0]},this.fontOptions()),data:this.quarterlyPeriod},{gridIndex:3,type:"category",show:!1,axisTick:{show:!1},axisLine:{show:!1},data:this.quarterlyPeriod}],yAxis:[{gridIndex:0,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:1,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin},{gridIndex:2,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.datasetMax,min:a=>this.datasetMin},{gridIndex:3,type:"value",show:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},max:a=>this.marginMax,min:a=>this.marginMin}],tooltip:D(y({show:!0,trigger:"axis",confine:!0,borderWidth:0,borderRadius:5,axisPointer:{type:"shadow",z:-10,shadowStyle:{color:"#FAF7E9"}},padding:16,extraCssText:"min-width: 200px; z-index: 10;"},this.tooltipStyle()),{formatter:a=>{let t=a[0].name,i=a.map(s=>{let r=s.marker,d=s.seriesName,l,n,h;
163return d===this.legendData[0]&&(l=s.value,n=this.formatter,h=this.datasetUnit),d===this.legendData[1]&&(l=s.value,n=this.formatter,h=this.marginUnit),` 164 <div class="echarts-tooltip__item"> 165 <div class="echarts-tooltip__badge">${r}</div> 166 <div class="echarts-tooltip__wrapper"> 167 <div class="echarts-tooltip__title font-weight-bold mb-0 mr-3">${d}</div> 168 <div class="echarts-tooltip__value"><span>${p()(l).format(n)}</span> 169 <span>${h}</span> 170 </div> 171 </div> 172 </div> 173 `}).join("");return` 174 <div class="echarts-tooltip"> 175 <div class="echarts-tooltip__main"> 176 <div class="echarts-tooltip__headline"> ${t} </div> 177 </div> 178 ${i} 179 </div> 180 `}}),series:[{name:this.legendData[0],type:"bar",xAxisIndex:0,yAxisIndex:0,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:D(y({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultYearlyDatasetOptions()},{name:this.legendData[0],type:"bar",xAxisIndex:2,yAxisIndex:2,barWidth:50,emphasis:{itemStyle:{color:"inherit"}},label:D(y({show:!0,distance:10},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.formatter)}),data:this.defaultQuarterlyDatasetOptions(),markLine:this.markLineOptions()},{name:this.legendData[1],type:"line",xAxisIndex:1,yAxisIndex:1,symbolSize:10,distance:10,emphasis:{focus:"none"},label:D(y({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultYearlyMarginOptions()},{name:this.legendData[1],type:"line",xAxisIndex:3,yAxisIndex:3,symbolSize:10,distance:10,emphasis:{focus:"none"},label:D(y({show:!0},this.labelFontOptions()),{position:"top",formatter:a=>p()(a.value).format(this.marginFormatter)+this.marginUnit}),lineStyle:{width:1},itemStyle:{color:this.colors[2]},data:this.defaultQuarterlyMarginOptions(),markLine:this.markLineOptions()}]},media:[{query:{maxWidth:425},option:{xAxis:[{axisLabel:{fontSize:"12px"}},{},{axisLabel:{fontSize:"12px"}},{}]}},{query:{maxWidth:350},option:{series:[{barWidth:30},{barWidth:30}]}}]}},resize(){let e=$(this.$el).find(".echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()},onWindowResize(){$(window).on("resize",()=>{this.resize()})},fontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:"14px",color:a}},labelFontOptions(){let e=$("html").attr("lang"),a="#194424";return this.theme==="dark"&&(a="#FFF"),{fontFamily:"Rethink Sans, sans-serif",color:a,fontSize:$(window).width()<450?"12px":"14px",fontWeight:700}},tooltipStyle(){let e=$("html").attr("lang");return{textStyle:{fontFamily:"Rethink Sans, sans-serif",fontWeight:400,fontSize:$(window).width()<450?"10px":"14px",color:"#194424"},backgroundColor:"#FFF"}},lineOptions(){return this.theme==="dark"?{color:"#FFF"}:{color:"#D1CAA8"}},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:"#8B8B8B"},data:[[{name:"Start Point",x:`${s}%`,y:"80%"},{name:"End Point",x:`${s}%`,y:"5%"}]]}}},gridOptions(){if(this.qoq===!1)return[{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,right:0,left:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"},{containLabel:!1,left:"100%",right:0,top:"5%",bottom:"20%"}];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:"7%",bottom:"20%"},{containLabel:!1,right:`${s}%`,left:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"},{containLabel:!1,left:`${r}%`,right:0,top:"7%",bottom:"20%"}]}
180,defaultYearlyDatasetOptions(){let e=this.yearlyDataset;return e.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:i==e.length-1?this.colors[1]:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[0],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultQuarterlyDatasetOptions(){return this.quarterlyDataset.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]},symbolOffset:t>0?[0,"-45%"]:[0,"45%"]}:{value:t,symbolOffset:t>0?[0,"-90%"]:[0,"90%"],itemStyle:{color:this.colors[2],borderRadius:t>0?[50,50,0,0]:[0,0,50,50]}})},defaultYearlyMarginOptions(){return this.yearlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[2]}}:{value:t,itemStyle:{color:this.colors[1]}})},defaultQuarterlyMarginOptions(){return this.quarterlyMargin.map((t,i)=>this.qoq===!1?{value:t,itemStyle:{color:this.colors[3]}}:{value:t,itemStyle:{color:this.colors[3]}})},legendLabelColor(e){return{"background-color":this.colors[e]}}}},Ql=Ul,wa=(0,c.Z)(Ql,ga,Vl,!1,null,null,null);if(!1)var Sd;wa.options.__file="app/resources/vue/components/chart/GrossProfit.vue";var Xl=wa.exports,Ca=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart chart--pie chart--sales-breakdown"},[e._m(0),e._v(" "),t("div",{staticClass:"chart__legend",class:e.enableLegend?"":"d-none"},[t("div",{staticClass:"chart__legend-item-wrapper"},e._l(this.data,function(i,s){return t("div",{staticClass:"chart__legend-item"},[t("div",{staticClass:"chart__legend-badge-wrapper"},[t("span",{staticClass:"chart__legend-badge chart__legend-badge--left",style:e.legendLabelColor(s)}),e._v(" "),t("span",{staticClass:"chart__legend-badge chart__legend-badge--right"})]),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(e._f("numeralFormat")(i.value,e.formatter))+e._s(e.unit))]),e._v(" "),t("div",{staticClass:"chart__legend-title",domProps:{innerHTML:e._s(i.name)}})])])}),0)])])},Kl=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"chart__wrapper"},[t("div",{staticClass:"echarts"})])}];Ca._withStripped=!0;var Jl=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,ao=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,xa=(e,a,t)=>a in e?Jl(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,Sa=(e,a)=>{for(var t in a||(a={}))ao.call(a,t)&&xa(e,t,a[t]);if($a)for(var t of $a(a))io.call(a,t)&&xa(e,t,a[t]);return e},so=(e,a)=>eo(e,to(a)),ro={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,formatter:window.chart[this.source].formatter,enableLegend:window.chart[this.source].enableLegend}},mounted(){this.init(),this.addPrintEventListener()},methods:{addPrintEventListener(){window.addEventListener("beforeprint",()=>{this.createChart(!1)})},init(){new IntersectionObserver(a=>{a[0].isIntersecting&&(this.createChart(),setTimeout(()=>{this.onResize()},1e3))},{threshold:.5,rootMargin:"100px 0px"}).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,t=$("html").attr("lang");return{baseOption:{animation:e,color:this.colors,grid:{containLabel:!1,top:0,left:0,right:0,bottom:0},tooltip:{position:"top",confine:!0,borderWidth:1,padding:16,borderRadius:0,backgroundColor:"rgba(255, 255, 255, 1)",extraCssText:"min-width: 180px; z-index: 15;",textStyle:Sa({color:"rgba(0, 0, 0, 1)"},this.fontOptions()),formatter:i=>{let s;return i.data.displayValue!==void 0?s=i.data.displayValue:s=i.value,` 181 <div class="echarts-tooltip"> 182 <div class="echarts-tooltip__main"> 183 <div class="echarts-tooltip__badge">${i.marker}</div> 184 <div class="echarts-tooltip__wrapper"> 185 <div class="echarts-tooltip__value">${p()(s).format(this.formatter)}%</div> 186 <div class="echarts-tooltip__title">${i.name}</div> 187 </div> 188 </div> 189 </div> 190 `}}
190,series:[{type:"pie",radius:["50%","80%"],center:["center","center"],avoidLabelOverlap:!1,startAngle:0,minAngle:15,label:so(Sa({show:!0,confine:!0},this.labelFontOptions()),{formatter:i=>i.data.displayValue!==void 0?p()(i.data.displayValue).format(this.formatter)+"%":p()(i.value).format(this.formatter)+"%"}),labelLine:{show:!0,length:30,length2:20,lineStyle:{color:"#A26C2E",width:2}},emphasis:{itemStyle:{color:"inherit"}},data:this.data}]},media:[{query:{maxWidth:420},option:{series:[{radius:["45%","70%"],label:{show:!0,fontSize:"14px"},labelLine:{show:!0,length:10,length2:5}}]}}]}},fontOptions(){return{fontFamily:"'Rethink Sans', 'Noto Sans Thai', sans-serif",color:"#194424",fontWeight:400,fontSize:"16px"}},labelFontOptions(){return{fontFamily:"'Rethink Sans', 'Noto Sans Thai', sans-serif",color:"#194424",fontSize:"16px",fontWeight:400}},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)},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{color:this.colors[e]}}}},no=ro,ka=(0,c.Z)(no,Ca,Kl,!1,null,null,null);if(!1)var kd;ka.options.__file="app/resources/vue/components/chart/SalesBreakdown.vue";var lo=ka.exports;o.default.component("intro-dialog",ai),o.default.component("flipbook",ni),o.default.component("accordion",ci),o.default.component("accordion-item",ui),o.default.component("back-to-top",gi),o.default.component("slider",Ci),o.default.component("tab",qi),o.default.component("tab-item",zi),o.default.component("tab-accordion",Yi),o.default.component("tab-accordion-item",Qi),o.default.component("nav-dropdown",es),o.default.component("nav-slider",ss),o.default.component("google-map",os),o.default.component("interactive-map",_s),o.default.component("counter-number",fs),o.default.component("rolling-number",$s),o.default.component("justified-gallery",ki),o.default.component("inline-gallery",Li),o.default.component("inline-gallery-item",Fi),o.default.component("text-slider",Ts),o.default.component("svgo",Is),o.default.component("rive",qs),o.default.component("lottie-interactive",Vs),o.default.component("stacked-card",Zs),o.default.component("stacked-card-brand-values",ml),o.default.component("pin-video",Xs),o.default.component("deck-animation",tr),o.default.component("financial",pl),o.default.component("business-performance",rr),o.default.component("fade-up",xl),o.default.component("calculator",cr),o.default.component("calculator-chart",ur),o.default.component("stock-quote",xr),o.default.component("stock-chart",yr),o.default.component("resource-center",Dr),o.default.component("search-dialog",Ar),o.default.component("advanced-search",Jr),o.default.component("header-main",nn),o.default.component("menu-svg",cn),o.default.component("bar-chart",yn),o.default.component("major-shareholder",Pn),o.default.component("financial-position",qn),o.default.component("net-profit",Al),o.default.component("ebitda",zl),o.default.component("gross-profit",Xl),o.default.component("sales-breakdown",lo),o.default.component("hero-banner",zn),o.default.component("banner-vision-mission",Yn),o.default.component("banner-ir-home",Qn),o.default.component("banner-careers",el),o.default.component("banner-sustainability",sl),o.default.component("banner-business-and-brands",ol),o.default.component("milestone",bl),o.default.use(Z());let oo=new(Z())({});window.VueBus=new o.default,new o.default({vuetify:oo,el:"#vue-app"})}},function(b){var Y=function(B){return b(b.s=B)};b.O(0,[577],function(){return Y(816)});var u=b.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.