1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[143],{2518:function(t,e,a){a(4056),a(6679);var n=a(805),i=a.n(n);function r(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",i().defaults.headers.common["X-CSRF-TOKEN"]=$('meta[name="csrf-token"]').attr("content");var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,a,n;return e=t,n=[{key:"init",value:function(){if(0!==document.getElementsByClassName("bodymovin").length)for(var t=function(t){i[t].addEventListener("DOMLoaded",(function(){i[t].goToAndStop(i[t].totalFrames-1,!0)})),""!==a&&$(a).length?($(n[t]).parents(a).on("mouseenter",(function(){i[t].goToAndPlay(1,!0),i[t].addEventListener("enterFrame",(function(){$(n[t]).addClass("animating")}))})),$(n[t]).parents(a).on("mouseleave",(function(){i[t].goToAndStop(i[t].totalFrames-1,!0),$(n[t]).removeClass("animating")}))):(n[t].addEventListener("mouseenter",(function(){i[t].goToAndPlay(1,!0),i[t].addEventListener("enterFrame",(function(){$(n[t]).addClass("animating")}))})),n[t].addEventListener("mouseleave",(function(){i[t].goToAndStop(i[t].totalFrames-1,!0),$(n[t]).removeClass("animating")})))},e=["008-setup","analytics","antenna","cloud","cloud-computing","coding","connection","cyber-security","ethernet","film","graphic-design","idea","lan","laptop","network","padlock","server","setup","tranfer","video-camera","wifi","wifi2","world-wide-internet-signal"],a=".card",n=[],i=[],r=0,o=0;o<e.length;o++)null!==document.getElementById(e[o])&&(n[r]=document.getElementById(e[o]),i[r]=bodymovin.loadAnimation({container:n[r],renderer:"svg",loop:!0,autoplay:!1,path:"/storage/icons/"+e[o]+".json"}),t(r),r++)}}],(a=null)&&r(e.prototype,a),n&&r(e,n),t}();$(document).ready((function(){o.init()}));var s=a(6153),c=a(7526),l=a.n(c),u={bind:function(t,e,a){t.style.visibility="hidden"},inserted:function(t,e,a){var n=e.value||200;setTimeout((function(){t.style.visibility="visible"}),n)}},d={bind:function(t,e,a){$(t).click((function(t){var e=this;if($(this).attr("is-submitting"))return!1;$(this).attr("is-submitting",!0),setTimeout((function(){$(e).removeAttr("is-submitting")}),1e3)}))}},h={bind:function(t,e,a){$(t).datepicker({dateFormat:"dd/mm/yy",changeMonth:!0,changeYear:!0,yearRange:"1980:2024"})}},m={bind:function(t,e,a){$(t).lightcase({maxWidth:1100,maxHeight:618,video:{width:1100,height:618},iframe:{width:1100,height:618}})}};s.default.directive("visible-delay",u),s.default.directive("submit-once",d),s.default.directive("datepicker",h),s.default.directive("lightcase",m);var f=a(8566),p=a.n(f),v=function(t,e){return p()(t).format(e)},g=function(t,e,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en";try{var i=moment(t,e).locale(n);return"th"===n&&(i=i.add(543,"year")),i.format(a)}catch(t){return""}},y=function(t,e){if(e&&e.length>0&&""!==e.trim()){var a=e.split(" ").join("|"),n=new RegExp(a,"ig");return t.toString().replace(n,(function(t,e,a){return"<mark>"+t+"</mark>"}))}return t},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return _.truncate(t,{length:e})||""};s.default.filter("numeralFormat",v),s.default.filter("dateFormat",g),s.default.filter("highlight",y),s.default.filter("truncate",b);var w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"intro-dialog"},[a("div",{staticClass:"slider intro-dialog__slider"},[a("div",{staticClass:"swiper intro-dialog__swiper"},[a("div",{staticClass:"swiper-wrapper intro-dialog__swiper-wrapper"},[t._t("default")],2)])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"intro-dialog__pagination"})])};w._withStripped=!0;var C=a(5603),x={props:{theme:{type:String}},data:function(){return{swiper:null}},mounted:function(){var t=$(this.$el).find(".swiper")[0];this.swiper=new C.Z(t,{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}})}},D=a(2502),k=(0,D.Z)(x,w,[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"intro-dialog__navigation"},[a("div",{staticClass:"intro-dialog__btn intro-dialog__btn--prev"},[a("i",{staticClass:"fal fa-chevron-left"})]),t._v(" "),a("div",{staticClass:"intro-dialog__btn intro-dialog__btn--next"},[a("i",{staticClass:"fal fa-chevron-right"})])])}],!1,null,null,null);k.options.__file="app/resources/vue/components/IntroDialog.vue";var S=k.exports,A=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default")],2)};A._withStripped=!0;var O={mounted:function(){this.dropDownMainMenuObserver(),this.mainMenuMobile(),this.sticky()},methods:{dropDownMainMenuObserver:function(){var t=this,e=$(this.$el).find(".main-menu .dropdown");e.on("show.bs.dropdown",(function(){$(t.$el).addClass("header--is-dropdown-open")})),e.on("hide.bs.dropdown",(function(){$(t.$el).removeClass("header--is-dropdown-open")}))},mainMenuMobile:function(){var t=this;$(this.$el).find('.main-menu [data-toggle="dropdown"]').on("click",(function(t){window.innerWidth<1200&&(t.stopImmediatePropagation(),$(this).dropdown("dispose"),$(this).parent().addClass("show"),$(this).next().addClass("show"))})),$(this.$el).find(".main-menu__header").click((function(t){$(this).closest(".dropdown").removeClass("show"),$(this).closest(".dropdown-menu").removeClass("show")})),$(window).resize((function(){$(t.$el).find('.main-menu [data-toggle="dropdown"]').dropdown("hide")}))},sticky:function(){var t=this;$(window).scroll((function(e){$(e.currentTarget).scrollTop()>100?$(t.$el).addClass("header--sticky"):$(t.$el).removeClass("header--sticky")}))}}},q=(0,D.Z)(O,A,[],!1,null,null,null);q.options.__file="app/resources/vue/components/MainHeader.vue";var T=q.exports,P=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"owl-carousel"},[t._t("default")],2)};P._withStripped=!0;var Y={props:{theme:{type:String,default:"primary"}},data:function(){return{carousel:null}},mounted:function(){var t=this.getConfig();this.carousel=$(this.$el).owlCarousel(t)},methods:{getConfig:function(){return"hero-banner"===this.theme?this.heroBanner():"project"===this.theme?this.project():"gallery"===this.theme?this.gallery():this.primaryConfig()},gallery:function(){return{items:1,loop:!1,rewind:!0,autoplay:!0,autoplayTimeout:3300,mouseDrag:!0,touchDrag:!0,nav:!0,dots:!0,navContainer:"#gallery-nav",dotsContainer:"#gallery-dots",navText:["<i class='fal fa-angle-left'></i>","<i class='fal fa-angle-right'></i>"],onInitialized:function(t){var e=t.item.count,a=t.item.index+1;$("#gallery-counter").find(".item").html(a),$("#gallery-counter").find(".items").html(e)},onTranslated:function(t){var e=t.item.count,a=t.item.index+1;$("#gallery-counter").find(".item").html(a),$("#gallery-counter").find(".items").html(e)}}},project:function(){return{items:1,loop:!1,rewind:!0,autoplay:!0,autoplayTimeout:3300,mouseDrag:!0,touchDrag:!0,nav:!0,dots:!0,navContainer:"#project-gallery-nav",dotsContainer:"#project-gallery-dots",navText:["<i class='fal fa-angle-left'></i>","<i class='fal fa-angle-right'></i>"],onInitialized:function(t){var e=t.item.count,a=t.item.index+1;$("#project-gallery-counter").find(".item").html(a),$("#project-gallery-counter").find(".items").html(e)},onTranslated:function(t){var e=t.item.count,a=t.item.index+1;$("#project-gallery-counter").find(".item").html(a),$("#project-gallery-counter").find(".items").html(e)}}},heroBanner:function(){var t=this;return{items:1,loop:!1,rewind:!0,animateIn:"fadeIn",animateOut:"fadeOut",autoplay:!0,mouseDrag:!1,touchDrag:!1,nav:!1,dots:!1,onChanged:function(t){var e=t.item.index;$("#carousel-custom-dots .owl-dot").eq(e).addClass("active").siblings().removeClass("active")},onInitialized:function(e){$("#carousel-custom-dots .owl-dot").on("mouseenter",(function(e){var a=$(e.currentTarget).index();t.carousel.trigger("to.owl.carousel",[a])}
1))}}},primaryConfig:function(){return{}}}},E=(0,D.Z)(Y,P,[],!1,null,null,null);E.options.__file="app/resources/vue/components/OwlCarousel.vue";var M=E.exports,I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"swiper swiper-container"},[a("div",{staticClass:"swiper-wrapper"},[t._t("default")],2),t._v(" "),t.pagination?a("div",{staticClass:"swiper-pagination"}):t._e(),t._v(" "),t.fraction?a("div",{staticClass:"swiper__fraction"},[a("span",{staticClass:"swiper__fraction-current"},[t._v(t._s(t.activeIndex))]),t._v(" "),a("span",{staticClass:"swiper__fraction-divider"},[t._v("/")]),t._v(" "),a("span",{staticClass:"swiper__fraction-total"},[t._v(t._s(t.total))])]):t._e(),t._v(" "),t.navigation?a("div",{staticClass:"swiper__buttons"},[t._m(0),t._v(" "),t._m(1)]):t._e()])};I._withStripped=!0;var F=a(8081),V=a.n(F),j={props:{theme:{type:String,default:"primary"},pagination:{type:Boolean,default:!1},navigation:{type:Boolean,default:!1},fraction:{type:Boolean,default:!1}},data:function(){return{swiper:null,activeIndex:1,total:1}},mounted:function(){var t=this.getConfig();this.swiper=new(V())($(this.$el)[0],t),this.updateActiveSlideNumber(),this.updateTotalSlideNumber(),this.onTabChanged()},methods:{getConfig:function(){return"home-upcoming-event"===this.theme?this.homeUpcomingEventConfig():"home-our-pride"===this.theme?this.homeOurPrideConfig():"home-latest-news"===this.theme?this.homeLatestNewsConfig():"upcoming-event"===this.theme?this.upcomingEventConfig():"milestone-year"===this.theme?this.milestoneYearConfig():"milestone-content"===this.theme?this.milestoneContentConfig():this.primaryConfig()},upcomingEventConfig:function(){return{slidesPerView:1,spaceBetween:15,speed:1e3,watchOverflow:!0,pagination:{el:".swiper--upcoming-event .swiper-pagination",type:"progressbar"},navigation:{nextEl:".swiper--upcoming-event .swiper__button--next",prevEl:".swiper--upcoming-event .swiper__button--prev"}}},homeUpcomingEventConfig:function(){return{slidesPerView:1,speed:1e3,effect:"fade",watchOverflow:!0,navigation:{nextEl:".swiper--home-upcoming-event .swiper__button--next",prevEl:".swiper--home-upcoming-event .swiper__button--prev"}}},homeOurPrideConfig:function(){return{slidesPerView:1,speed:1e3,effect:"fade",allowTouchMove:!1,autoplay:{delay:3e3},pagination:{el:".swiper--home-our-pride .swiper-pagination",clickable:!0}}},homeLatestNewsConfig:function(){return{spaceBetween:30,speed:1e3,pagination:{el:".swiper--home-latest-news .swiper-pagination",clickable:!0},breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}}}},milestoneYearConfig:function(){var t=this;return{speed:1e3,slidesPerView:5,centeredSlides:!0,spaceBetween:0,slideToClickedSlide:!0,navigation:{nextEl:".swiper--milestone-year .swiper__button--next",prevEl:".swiper--milestone-year .swiper__button--prev"},on:{slideChange:function(e){var a=e.realIndex;t.$root.$refs.milestoneContent.swiper.slideTo(a,800)}},breakpoints:{320:{slidesPerView:3},768:{slidesPerView:5}}}},milestoneContentConfig:function(){var t=this;return{speed:800,spaceBetween:0,effect:"fade",autoHeight:!0,fadeEffect:{crossFade:!0},on:{slideChange:function(e){var a=e.realIndex;t.$root.$refs.milestoneYear.swiper.slideTo(a,1e3)}}}},primaryConfig:function(){return{slidesPerView:1,speed:1e3,autoplay:{delay:3e3},pagination:{el:".swiper--primary .swiper-pagination",clickable:!0}}},updateActiveSlideNumber:function(){var t=this;this.swiper.on("slideChange",(function(){t.activeIndex=t.swiper.realIndex+1}))},updateTotalSlideNumber:function(){this.total=this.swiper.slides.length},onTabChanged:function(){var t=this;$('a[data-toggle="tab"]').on("shown.bs.tab",(function(e){t.update()}))},update:function(){this.swiper.update(),this.updateTotalSlideNumber()}}},L=(0,D.Z)(j,I,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"swiper__button swiper__button--prev",attrs:{type:"button"}},[e("i",{staticClass:"fal fa-chevron-left"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"swiper__button swiper__button--next",attrs:{type:"button"}},[e("i",{staticClass:"fal fa-chevron-right"})])}],!1,null,null,null);L.options.__file="app/resources/vue/components/Swiper.vue";var z=L.exports,B=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"accordion accordion--primary",attrs:{id:t.name}},[t._t("default")],2)};B._withStripped=!0;var Z={props:{name:{type:String,required:!0},scrollToActive:{type:Boolean,default:!0},alwaysShowDesktop:{type:Boolean,default:!1}},mounted:function(){this.scrollToActiveElement(),this.onAlwaysShowDesktop()},methods:{scrollToActiveElement:function(){var t=this;this.scrollToActive&&$(this.$el).on("shown.bs.collapse",(function(){var e=$
1(t.$el).find(".show").prev();$("html,body").animate({scrollTop:$(e).offset().top-125},500)}))},onAlwaysShowDesktop:function(){var t=this;this.alwaysShowDesktop&&window.innerWidth>991&&this.$nextTick((function(){$(t.$el).find(".collapse").collapse("show")}))}}},H=(0,D.Z)(Z,B,[],!1,null,null,null);H.options.__file="app/resources/vue/components/accordion/Accordion.vue";var W=H.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"accordion__item"},[a("div",{staticClass:"accordion__title",attrs:{"data-toggle":"collapse","data-target":"#"+t.name,"aria-expanded":t.show}},[t._t("title"),t._v(" "),a("span",{staticClass:"accordion__icon"})],2),t._v(" "),a("div",{staticClass:"collapse",class:{show:t.show},attrs:{id:t.name,"data-parent":"#"+t.parentName}},[a("div",{staticClass:"accordion__content"},[t._t("content")],2)])])};N._withStripped=!0;var R={props:{name:{type:String,required:!0},show:{type:Boolean,default:!1}},data:function(){return{parentName:""}},mounted:function(){this.parentName=this.$parent.$props.name}},U=(0,D.Z)(R,N,[],!1,null,null,null);U.options.__file="app/resources/vue/components/accordion/AccordionItem.vue";var G=U.exports,X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"resource-center"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-4"},[a("div",{staticClass:"resource-center__filter"},[a("form",{ref:"form",staticClass:"form form--primary",attrs:{action:t.action}},[a("div",{staticClass:"filter filter--resource-center mb-3"},[a("label",{staticClass:"filter__label"},[t._v(t._s(t.trans["select.year"])+":")]),t._v(" "),a("div",{staticClass:"filter__select-wrapper"},[t._m(0),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.year,expression:"year"}],staticClass:"form-control filter__select year",attrs:{id:"filter__select",name:"year",onchange:"this.form.submit()"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.year=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:""}},[t._v(t._s(t.trans.latest))]),t._v(" "),t._l(t.localizedYears,(function(e){return a("option",{domProps:{selected:t.year===e[0],value:e[0]}},[t._v("\n "+t._s(e[1])+"\n ")])}))],2)])]),t._v(" "),a("div",{staticClass:"resource-center__btn-type",attrs:{role:"button","data-toggle":"collapse","data-target":"#collapseCategory","aria-expanded":"false","aria-controls":"collapseCategory"}},[a("span",{staticClass:"resource-center__btn-type-title"},[t._v(t._s(t.trans["type.of.document"]))]),t._v(" "),t._m(1)]),t._v(" "),a("div",{staticClass:"resource-center__type-collapse collapse",attrs:{id:"collapseCategory"}},[a("p",{staticClass:"d-none d-lg-block text-black font-weight-bold"},[t._v(t._s(t.trans["type.of.document"]))]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"annual-report",value:"annual-report"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"annual-report")>-1:t.categories}
1,on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="annual-report",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"annual-report"}},[t._v(t._s(t.trans["form.561.one.report"]))])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"sustainability-report",value:"sustainability-report"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"sustainability-report")>-1:t.categories},on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="sustainability-report",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"sustainability-report"}},[t._v(t._s(t.trans["sustainability.report"]))])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"financial-statement",value:"financial-statement"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"financial-statement")>-1:t.categories}
1,on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="financial-statement",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"financial-statement"}},[t._v(t._s(t.trans["financial.statement"]))])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"mdna",value:"mdna"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"mdna")>-1:t.categories},on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="mdna",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"mdna"}},[t._v(t._s(t.trans["management.discussion.and.analysis"]))])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"presentation",value:"presentation"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"presentation")>-1:t.categories}
1,on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="presentation",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"presentation"}},[t._v(t._s(t.trans.presentation))])])]),t._v(" "),a("div",{staticClass:"form-group mb-3"},[a("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.categories,expression:"categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"categories[]",id:"webcast",value:"webcast"},domProps:{checked:Array.isArray(t.categories)?t._i(t.categories,"webcast")>-1:t.categories},on:{change:function(e){var a=t.categories,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r="webcast",o=t._i(a,r);n.checked?o<0&&(t.categories=a.concat([r])):o>-1&&(t.categories=a.slice(0,o).concat(a.slice(o+1)))}else t.categories=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"webcast"}},[t._v(t._s(t.trans.webcast))])])]),t._v(" "),a("div",{staticClass:"mb-4"},[a("a",{staticClass:"resource-center__btn",on:{click:function(e){return e.preventDefault(),t.selectAll.apply(null,arguments)}}},[t._v("\n "+t._s(t.trans["select.all"])+"\n ")]),t._v(" "),a("a",{staticClass:"resource-center__btn",on:{click:function(e){return e.preventDefault(),t.reset()}}},[t._v("\n "+t._s(t.trans["clear.filter"])+"\n ")])])]),t._v(" "),a("div",{staticClass:"text-center"},[a("button",{staticClass:"btn btn--primary text-uppercase",attrs:{type:"submit"}},[t._v("\n "+t._s(t.trans.search)+"\n ")])])])])]),t._v(" "),a("div",{staticClass:"col-lg-8"},[a("div",{staticClass:"resource-center__body"},[t._t("default")],2)])])])};function K(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Q(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Q(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}X._withStripped=!0;var J={props:["data","action","trans"],data:function(){return{categories:this.data.categories||[],year:this.data.year||""}},mounted:function(){},computed:{localizedYears:function(){return Object.entries(this.data.localizedYears).sort().reverse()}},watch:{},methods:{selectAll:function(){var t;(t=this.categories).push.apply(t,K(this.data.defaultCategories))},reset:function(){this.categories=[]}}},tt=(0,D.Z)(J,X,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"filter__icon"},[e("i",{staticClass:"far fa-chevron-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"resource-center__btn-type-icon"},[e("i",{staticClass:"fal fa-plus"})])}],!1,null,null,null);tt.options.__file="app/resources/vue/components/ResourceCenter.vue";var et=tt.exports,at=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)};function nt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,i,r=[],o=!0,s=!1;try{for(a=a.call(t);!(o=(n=a.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return it(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return it(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}at._withStripped=!0;var rt={props:["source","theme"],data:function(){return{chart:Object,custom:window.chart[this.source].custom}},mounted:function(){this.init()},methods:{init:function(){this.chart=echarts.init($(this.$el).find(".echarts__chart").get(0)),this.chart.setOption(this.option()),this.resize()},option:function(){var t=this;return{baseOption:{color:this.getCustomColors(),dataset:window.chart[this.source].dataset,xAxis:[{type:"category",axisTick:!1,axisLine:{lineStyle:{color:"#dcdcdc"}},axisLabel:{margin:15,color:"#38393A"}}],yAxis:[{type:"value",show:!1}],legend:{show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},extraCssText:"z-index: 999;",formatter:function(e){return t.getCustomTooltipFormatter(e)}},series:[{type:"bar",itemStyle:{borderRadius:[5,5,0,0],color:function(e){return t.getCustomColors()[e.dataIndex]}},label:{show:!0,position:"top",formatter:function(e){return t.getCustomBarLabelFormatter(e)}},markLine:{silent:!0,symbol:!1,label:{show:!1},animation:!1,lineStyle:{color:"#dcdcdc",width:1,type:"dashed"},data:this.getCustomMarkLineData()}}]},media:[{query:{minWidth:452},option:{grid:{containLabel:!1,top:30,left:0,bottom:30,right:0},xAxis:[{axisLabel:{fontSize:16,rotate:0}}],series:[{barWidth:45}]}},{query:{maxWidth:451},option:{grid:{containLabel:!1,top:30,left:0,bottom:60,right:0},xAxis:[{axisLabel:{fontSize:11,rotate:-70}}],series:[{barWidth:30}]}}]}},getCustomBarLabelFormatter:function(t){var e=this.custom.decimal,a=nt(Object.entries(t.data),2),n=(a[0],a[1][1].toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e}));return"".concat(n)},getCustomTooltipFormatter:function(t){var e=this.custom.decimal,a=nt(Object.entries(t[0].data),2),n=a[0],i=a[1],r=n[1],o=i[1].toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e}),s=this.custom.unit;return"<strong>".concat(r,":</strong> ").concat(o," ").concat(s)},getCustomColors:function(){return this.custom.colors},getCustomMarkLineData:function(){return this.custom.markLineData},resize:function(){var t=this;
1$(window).on("resize",(function(){var e=$(t.$el).find(".echarts__chart").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()}))}}},ot=(0,D.Z)(rt,at,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"echarts echarts--revenue"},[e("div",{staticClass:"echarts__area"},[e("div",{staticClass:"echarts__chart"})])])}],!1,null,null,null);ot.options.__file="app/resources/vue/components/chart/RevenueChart.vue";var st=ot.exports,ct=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)};function lt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function ut(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(a),!0).forEach((function(e){dt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):lt(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function dt(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}ct._withStripped=!0;var ht={props:["source"],data:function(){return{chart:Object,custom:window.chart[this.source].custom}},mounted:function(){var t=this;setTimeout((function(){t.init()}),500)},methods:{init:function(){this.chart=echarts.init($(this.$el).find(".echarts__chart").get(0)),this.chart.setOption(this.option()),this.resize()},option:function(){var t=this;return{baseOption:{grid:{containLabel:!1,top:0,left:0,bottom:0,right:0},dataset:window.chart[this.source].dataset,color:this.getCustomColors(),legend:{show:!0,top:"auto",right:"auto",bottom:0,itemWidth:10,icon:"circle",textStyle:ut({fontSize:14},this.fontOptions())},tooltip:{extraCssText:"z-index: 999;",formatter:function(e){return t.getCustomTooltipFormatter(e)}},series:[{name:"",type:"pie",selected:!1,top:-35,height:350,avoidLabelOverlap:!0,minAngle:28,label:{show:!0,confine:!0,fontSize:10,position:"inside",textStyle:ut({fontWeight:"bold"},this.fontOptions()),formatter:function(e){return t.getCustomLabelFormatter(e)}},labelLine:{show:!1}}]},media:[]}},getCustomColors:function(){return this.custom.colors},getCustomLabelFormatter:function(t){var e=this.custom.decimal,a=this.custom.unit,n=t.value[1].toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e});return"".concat(n).concat(a)},getCustomTooltipFormatter:function(t){var e=this.custom.decimal,a=t.value[0],n=t.value[1].toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e}),i=this.custom.unit;return"<strong>".concat(a,"</strong> ").concat(n).concat(i)},fontOptions:function(){return{fontFamily:"Open Sans"}},resize:function(){var t=this;
1$(window).on("resize",(function(){var e=$(t.$el).find(".echarts__chart").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()}))}}},mt=(0,D.Z)(ht,ct,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"echarts echarts--shareholder"},[e("div",{staticClass:"echarts__area"},[e("div",{staticClass:"echarts__chart"})])])}],!1,null,null,null);mt.options.__file="app/resources/vue/components/chart/ShareholderChart.vue";var ft=mt.exports,pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"calculator"},[a("div",{staticClass:"calculator-form"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-xl-3 mb-3"},[a("form",[a("div",{staticClass:"form-group"},[a("label",{staticClass:"calculator-form__label label"},[t._v(t._s(t.trans["investment.date"]))]),t._v(" "),a("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,i=e.attrs;return[a("v-text-field",t._g(t._b({attrs:{value:t.displayInvestmentDate,readonly:"",placeholder:"DD/MM/YYYY","prepend-inner-icon":"fas fa-calendar-alt"}},"v-text-field",i,!1),n))]}}]),model:{value:t.isInvestmentDatePickerVisible,callback:function(e){t.isInvestmentDatePickerVisible=e},expression:"isInvestmentDatePickerVisible"}},[t._v(" "),a("v-date-picker",{attrs:{color:"picker-bg-color",min:t.minDate,max:t.maxDate,"allowed-dates":t.isDateAllowed},on:{input:function(e){return t.closeInvestmentDatePicker()}},model:{value:t.investmentDate,callback:function(e){t.investmentDate=e},expression:"investmentDate"}})],1)],1),t._v(" "),a("label",{staticClass:"calculator-form__label label",attrs:{for:"investmentValue"}},[t._v(t._s(t.trans["investment.by"]))]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"custom-control custom-radio custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investmentType,expression:"investmentType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"typeShares",name:"type",value:"shares",checked:""},domProps:{checked:t._q(t.investmentType,"shares")},on:{change:function(e){t.investmentType="shares"}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"typeShares"}},[t._v(t._s(t.trans.shares))])]),t._v(" "),a("div",{staticClass:"custom-control custom-radio custom-control-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investmentType,expression:"investmentType"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"typeAmount",name:"type"},domProps:{checked:t._q(t.investmentType,null)},on:{change:function(e){t.investmentType=null}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"typeAmount"}},[t._v(t._s(t.trans["investment.amount"]))])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investmentValue,expression:"investmentValue"}],staticClass:"calculator-form__form-control form-control",attrs:{type:"text",id:"investmentValue"},domProps:{value:t.investmentValue},on:{input:function(e){e.target.composing||(t.investmentValue=e.target.value)}}})])])]),t._v(" "),a("div",{staticClass:"col-md-8 col-xl-9"},[a("div",{staticClass:"calculator-results"},[a("div",{staticClass:"calculator-results__heading"},[a("strong",[t._v(t._s(t.trans["estimated.investment.return"]))])]),t._v(" "),a("div",{staticClass:"calculator-results__item"},[a("div",{staticClass:"calculator-results__title"},[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.trans.volume))]),t._v(" "),a("span",[t._v("("+t._s(t.trans.shares)+")")])]),t._v(" "),a("div",{staticClass:"calculator-results__text"},[t._v("\n "+t._s(t._f("numeralFormat")(t.volume,"0,0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"calculator-results__item"},[a("div",{staticClass:"calculator-results__title"},[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.trans["investment.value"]))]),t._v(" "),a("span",{staticClass:"font-weight-normal"},[t._v("("+t._s(t.trans.baht)+")")])]),t._v(" "),a("div",{staticClass:"calculator-results__text"},[t._v("\n "+t._s(t._f("numeralFormat")(t.startValue,"0,0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"calculator-results__item"},[a("div",{staticClass:"calculator-results__title"},[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.trans["present.value"]))]),t._v(" "),a("span",{staticClass:"font-weight-normal"},[t._v("("+t._s(t.trans.baht)+")")])]),t._v(" "),a("div",{staticClass:"calculator-results__text"},[t._v("\n "+t._s(t._f("numeralFormat")(t.presentValue,"0,0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"calculator-results__item calculator-results__item--return"},[a("div",{staticClass:"calculator-results__title"},[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.trans["percent.return"]))])]),t._v(" "),a("div",{staticClass:"calculator-results__text"},[t._v("\n "+t._s(t._f("numeralFormat")(t.capitalGainPercent,"0,0.00"))+"% ("+t._s(t._f("numeralFormat")(t.capitalGainValue,"0,0.00"))+" "+t._s(t.trans.baht)+")\n ")])])])])])]),t._v(" "),a("div",{staticClass:"calculator-chart"},[a("calculator-chart",{attrs:{quotes:t.quotesWithInvestmentValue(),trans:t.trans}}),t._v(" "),a("p",{staticClass:"calculator-chart__remark small"},[t._v("\n "+t._s(t.trans["stock.chart.remark"])+"\n ")])],1)])};function vt(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,i)}pt._withStripped=!0;var _t={props:["trans"],data:function(){return{isInvestmentDatePickerVisible:!1,investmentType:"shares",investmentDate:null,investmentValue:1e3,quotes:null}},mounted:function(){this.init()},computed:{dateFormat:function(){return"YYYY-MM-DD"},yesterdayDate:function(){return this.quotes?_.last(this.quotes).date:null},lastDoneOnYesterdayDate:function(){return this.lastDoneByDate(this.yesterdayDate)},lastDoneOnStartDate:function(){return this.lastDoneByDate(this.investmentDate)},volume:function(){return"shares"===this.investmentType?this.investmentValue:this.investmentValue/this.lastDoneOnStartDate},presentValue:function(){return this.volume*this.lastDoneOnYesterdayDate},startValue:function(){return this.volume*this.lastDoneOnStartDate},capitalGainValue:function(){return this.presentValue-this.startValue},capitalGainPercent:function(){return this.capitalGainValue/this.startValue*100},minDate:function(){if(this.quotes){var t=_.first(this.quotes).date;return moment(t,this.dateFormat).format("YYYY-MM-DD")}return null},maxDate:function(){var t=this.yesterdayDate;return moment(t,this.dateFormat).format("YYYY-MM-DD")},availableDates:function(){return _.map(this.quotes,(function(t){return t.date}))},displayInvestmentDate:function(){return this.quotes?moment(this.investmentDate).format("DD/MM/YYYY"):null}},methods:{init:function(){var t,e=this;return(t=regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i().get("/api/stock/historical-quotes");case 2:a=t.sent,e.quotes=a.data.data.reverse(),e.investmentDate=e.defaultInvestmentDate();case 5:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(n,i){var r=t.apply(e,a);function o(t){vt(r,n,i,o,s,"next",t)}function s(t){vt(r,n,i,o,s,"throw",t)}o(void 0)}))})()},closeInvestmentDatePicker:function(){this.isInvestmentDatePickerVisible=!1},defaultInvestmentDate:function(){return _.first(this.quotes).date},quotesWithInvestmentValue:function(){var t=this;return _.filter(this.quotes,(function(e){return moment(e.date,"YYYY-MM-DD").isSameOrAfter(moment(t.investmentDate,"YYYY-MM-DD"))})).map((function(e){return[e.date,e.close*t.volume]}))},lastDoneByDate:function(t){var e=_.find(this.quotes,(function(e){return t===e.date}));return e?e.close:0},isDateAllowed:function(t){return this.availableDates.includes(t)}}}
1,gt=_t,yt=(0,D.Z)(gt,pt,[],!1,null,null,null);yt.options.__file="app/resources/vue/components/widgets/calculator/Calculator.vue";var bt=yt.exports,wt=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"calculator-chart__echarts"})};function Ct(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,i,r=[],o=!0,s=!1;try{for(a=a.call(t);!(o=(n=a.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return xt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}wt._withStripped=!0;var Dt={props:{quotes:Array,trans:Object},data:function(){return{chart:Object}},mounted:function(){this.createChart(),this.showLoadingIndicator(),this.resizeChart()},watch:{quotes:function(t,e){t!==e&&this.refreshChartOptions()}},methods:{dates:function(){return _.map(this.quotes,(function(t){return t[0]}))},lineColor:function(){return"#1B5EA8"},refreshChartOptions:function(){this.chart.setOption(this.chartOptions())},formatDisplayDate:function(t){return moment(t).format("DD/MM/YYYY")},createChart:function(){this.chart=echarts.init($(this.$el).get(0))},chartOptions:function(){var t=this;return{baseOption:{tooltip:{trigger:"axis",borderWidth:0,padding:0,formatter:function(e,a,n){var i=Ct(e[0].data,2),r=i[0],o=i[1],s=t.formatDisplayDate(r);return'\n <div class="echarts-tooltip">\n <div class="echarts-tooltip__header"> '.concat(t.trans.symbol," : ").concat(t.trans.currency,'</div>\n <div class="echarts-tooltip__volume">').concat(t.trans.value," : ").concat(p()(o).format("0,0.00"),' </div>\n <div class="echarts-tooltip__last-updated">').concat(s,"</div>\n </div>\n ")}},grid:[{left:"2%",right:"3%"}],xAxis:{data:this.dates(),scale:!1,splitLine:{show:!0,lineStyle:{color:["#eaeaea"]}},minInterval:10,axisPointer:{z:100},axisLabel:{formatter:function(e){return t.formatDisplayDate(e)}}},yAxis:{scale:!0,splitLine:{show:!0,lineStyle:{color:["#eaeaea"]}},position:"right",axisLabel:{formatter:function(t,e){return p()(t).format("0,000a")}}},series:[{data:this.quotes,type:"line",showSymbol:!1,itemStyle:{color:this.lineColor()}}]},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}}}]}}]}},showLoadingIndicator:function(){var t=this,e=this.loadingConfig();this.chart.showLoading(e),setTimeout((function(){t.chart.hideLoading()}),1e3)},loadingConfig:function(){return{color:"#000",maskColor:"rgba(255, 255, 255, 0.5)"}},resizeChart:function(){var t=this;
1$(window).on("resize",(function(){var e=$(t.$el).attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()}))}}},kt=(0,D.Z)(Dt,wt,[],!1,null,null,null);kt.options.__file="app/resources/vue/components/widgets/calculator/CalculatorChart.vue";var St=kt.exports,$t=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stock-chart"},[a("div",{staticClass:"stock-chart__filter"},[a("div",{staticClass:"stock-chart__date-range date-range"},[a("div",{staticClass:"date-range__title"},[t._v(t._s(t.trans["focus.on"])+" :")]),t._v(" "),a("div",{staticClass:"date-range__option"},[a("button",{staticClass:"date-range__button",class:{active:"1M"===t.filterType},on:{click:function(e){return t.focusOnOneMonth()}}},[t._v("1M")]),t._v(" "),a("button",{staticClass:"date-range__button",class:{active:"3M"===t.filterType},on:{click:function(e){return t.focusOnThreeMonth()}}},[t._v("3M")]),t._v(" "),a("button",{staticClass:"date-range__button",class:{active:"YTD"===t.filterType},on:{click:function(e){return t.focusOnYTD()}}},[t._v("YTD")]),t._v(" "),a("button",{staticClass:"date-range__button",class:{active:"1Y"===t.filterType},on:{click:function(e){return t.focusOnOneYear()}}},[t._v("1Y")]),t._v(" "),a("button",{staticClass:"date-range__button",class:{active:"2Y"===t.filterType},on:{click:function(e){return t.focusOnTwoYear()}}},[t._v("2Y")])])]),t._v(" "),a("div",{staticClass:"stock-chart__calendar-picker calendar-picker"},[a("div",{staticClass:"calendar-picker__form-group form-group"},[a("div",{staticClass:"calendar-picker__title"},[t._v("\n "+t._s(t.trans["period.from"])+" :\n ")]),t._v(" "),a("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"250px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,i=e.attrs;return[a("v-text-field",t._g(t._b({attrs:{value:t.displayStartDate,readonly:"","append-icon":"fas fa-caret-down",placeholder:"DD/MM/YYYY"}},"v-text-field",i,!1),n))]}}]),model:{value:t.isStartDatePickerVisible,callback:function(e){t.isStartDatePickerVisible=e},expression:"isStartDatePickerVisible"}},[t._v(" "),a("v-date-picker",{attrs:{color:"picker-bg-color",min:t.minDate,max:t.maxDate,"allowed-dates":t.isDateAllowed},on:{input:function(e){return t.closeStartDatePicker()}},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1)],1),t._v(" "),a("div",{staticClass:"calendar-picker__form-group form-group"},[a("div",{staticClass:"calendar-picker__title"},[t._v(" "+t._s(t.trans.to))]),t._v(" "),a("v-menu",{attrs:{"content-class":"v-application","close-on-content-click":!1,"nudge-right":0,transition:"scale-transition","min-width":"250px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,i=e.attrs;return[a("v-text-field",t._g(t._b({attrs:{value:t.displayEndDate,readonly:"","append-icon":"fas fa-caret-down",placeholder:"DD/MM/YYYY"}},"v-text-field",i,!1),n))]}}]),model:{value:t.isEndDatePickerVisible,callback:function(e){t.isEndDatePickerVisible=e},expression:"isEndDatePickerVisible"}},[t._v(" "),a("v-date-picker",{attrs:{color:"picker-bg-color",min:t.minDate,max:t.maxDate,"allowed-dates":t.isDateAllowed},on:{input:function(e){return t.closeEndDatePicker()}},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1)],1)])]),t._v(" "),a("div",{staticClass:"stock-chart__echarts"}),t._v(" "),a("div",{staticClass:"stock-chart__remark"},[t._v("\n "+t._s(t.trans["stock.chart.remark"])+"\n ")])])};function At(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Ot(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?At(Object(a),!0).forEach((function(e){qt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):At(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function qt(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,i,r=[],o=!0,s=!1;try{for(a=a.call(t);!(o=(n=a.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Pt(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function Yt(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,i)}$t._withStripped=!0;var Et={props:{trans:Object},data:function(){return{isStartDatePickerVisible:!1,isEndDatePickerVisible:!1,quotes:null,chart:null,startDate:null,endDate:null,filterType:"2Y"}},watch:{startDate:function(t,e){t!==e&&this.chart.dispatchAction({type:"dataZoom",startValue:t,endValue:this.endDate})},endDate:function(t,e){t!==e&&this.chart.dispatchAction({type:"dataZoom",startValue:this.startDate,endValue:t})}},computed:{dateFormat:function(){return"YYYY-MM-DD"},seriesVolumeColor:function(){return"#747474"},seriesPriceColor:function(){return"#1B5EA8"},dataZoomLineColor:function(){return"#1B5EA8"},dataZoomAreaBgColor:function(){return"#FFF"},dataZoomFillerBgColor:function(){return"rgba(255, 255, 255, 0.15)"},chartDataSeries:function(){return this.quotes.map((function(t){return[t.date,t.close,t.volume]}))},dates:function(){return this.quotes.map((function(t){return t.date}))},volume:function(){return this.quotes.map((function(t){return t.volume}))},minDate:function(){return this.quotes?_.first(this.quotes).date:null},maxDate:function(){return this.quotes?_.last(this.quotes).date:null},availableDates:function(){return _.map(this.quotes,(function(t){return t.date}))},displayStartDate:function(){return this.quotes?this.formatDisplayDate(this.startDate):null},displayEndDate:function(){return this.quotes?this.formatDisplayDate(this.endDate):null}},mounted:function(){this.init()},methods:{init:function(){var t,e=this;return(t=regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i().get("/api/stock/historical-quotes");case 2:a=t.sent,e.quotes=a.data.data.reverse(),e.startDate=e.minDate,e.endDate=e.maxDate,e.createChart(),e.showLoadingIndicator(),e.resizeChart();case 9:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(n,i){var r=t.apply(e,a);function o(t){Yt(r,n,i,o,s,"next",t)}function s(t){Yt(r,n,i,o,s,"throw",t)}o(void 0)}))})()},closeStartDatePicker:function(){this.isStartDatePickerVisible=!1},closeEndDatePicker:function(){this.isEndDatePickerVisible=!1},setCustomFilterType:function(){this.filterType=""},formatDisplayDate:function(t){return moment(t).format("DD/MM/YYYY")},createChart:function(){var t=this;this.chart=echarts.init($(this.$el).find(".stock-chart__echarts").get(0)),this.chart.setOption(this.chartOptions()),this.chart.on("datazoom",(function(e){var a=t.chart.getModel().option.xAxis[0];null!=a.rangeStart&&(t.startDate=a.data[a.rangeStart]),null!=a.rangeEnd&&(t.endDate=a.data[a.rangeEnd])}))},showLoadingIndicator:function(){var t=this,e=this.loadingConfig();this.chart.showLoading(e),setTimeout((function(){t.chart.hideLoading()}),800)},setStartDateToMaxDate:function(){this.endDate=this.maxDate},focusOnOneMonth:function(){this.setStartDateToMaxDate();var t=moment(this.endDate,this.dateFormat).subtract("1","month").format(this.dateFormat);this.startDate=this.findValidStartDate(t),this.filterType="1M"},focusOnThreeMonth:function(){this.setStartDateToMaxDate();var t=moment(this.endDate,this.dateFormat).subtract("3","month").format(this.dateFormat);this.startDate=this.findValidStartDate(t),this.filterType="3M"},focusOnYTD:function(){this.setStartDateToMaxDate();var t=moment(this.endDate,this.dateFormat).startOf("year").format(this.dateFormat);this.startDate=this.findValidStartDate(t),this.filterType="YTD"},focusOnOneYear:function(){this.setStartDateToMaxDate();var t=moment(this.endDate,this.dateFormat).subtract("1","year").format(this.dateFormat);this.startDate=this.findValidStartDate(t),this.filterType="1Y"},focusOnTwoYear:function(){this.setStartDateToMaxDate();var t=moment(this.endDate,this.dateFormat).subtract("2","year").format(this.dateFormat);this.startDate=this.findValidStartDate(t),this.filterType="2Y"},findValidStartDate:function(t){var e=_.find(this.quotes,{date:t});if(e)return e.date;var a=moment(t,this.dateFormat).add(1,"days").format(this.dateFormat);return this.findValidStartDate(a)},chartOptions:function(){var t=this;return{baseOption:{animation:!0,tooltip:{trigger:"axis",borderWidth:0,padding:0,formatter:function(e,a,n){var i=Tt(e[0].data,3),r=i[0],o=i[1],s=i[2],c=t.formatDisplayDate(r);return'\n <div class="echarts-tooltip">\n <div class="echarts-tooltip__header"> '.concat(t.trans.symbol,' : THB</div>\n <div class="echarts-tooltip__last-done">').concat(p()(o).format("0,0.00"),'</div>\n <div class="echarts-tooltip__volume">').concat(t.trans.volume," : ").concat(p()(s).format("0,0"),' </div>\n <div class="echarts-tooltip__last-updated small">').concat(c,"</div>\n </div>\n ")}},axisPointer:{link:{xAxisIndex:"all"},label:{formatter:function(e){return t.formatDisplayDate(e)}}},grid:[{left:"5%",right:"5%",height:"50%"},{left:"5%",right:"5%",top:"65%",height:"20%"}],dataZoom:[{type:"inside",xAxisIndex:[0,1],startValue:this.startDate,endValue:this.endDate},Ot(Ot({height:"60px",bottom:0,fillerColor:this.dataZoomFillerBgColor,dataBackgroun
1d:{lineStyle:{color:this.dataZoomLineColor,width:1},areaStyle:{color:this.dataZoomAreaBgColor}},borderColor:"rgba(255,255,255,0)",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:Ot({},this.dataZoomBackgroundConfig())},this.handleConfig()),{},{emphasis:Ot({},this.handleConfig()),labelFormatter:function(e,a){return t.formatDisplayDate(a)}})],xAxis:[{data:this.dates,splitLine:{show:!0,lineStyle:{color:["#eaeaea"]}},boundaryGap:!0,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:["#eaeaea"]}},axisLabel:{formatter:function(e){return t.formatDisplayDate(e)}}}],yAxis:[{scale:!0,splitLine:{show:!0,lineStyle:{color:["#eaeaea"]}},position:"right"},{scale:!0,gridIndex:1,splitLine:{show:!0,lineStyle:{color:["#eaeaea"]}},position:"right",axisLine:{show:!0},axisLabel:{formatter:function(t,e){return p()(t).format("0,000a")}}}],series:[{data:this.chartDataSeries,name:"Stock Chart",type:"line",showSymbol:!1,itemStyle:{color:this.seriesPriceColor}},{data:this.volume,name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:this.seriesVolumeColor},tooltip:{show:!1}}]},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}}}]}}]}},dataZoomBackgroundConfig:function(){return{lineStyle:{color:"#1B5EA8"},areaStyle:{color:"rgba(0,100,255, 0.5)"}}},handleConfig:function(){return{moveHandleStyle:{color:"#1B5EA8"},handleStyle:{color:"#fff",borderColor:"#1B5EA8"}}},loadingConfig:function(){return{color:"#1B5EA8",maskColor:"rgba(255, 255, 255, 0.5)"}},resizeChart:function(){var t=this;
1$(window).on("resize",(function(){var e=$(t.$el).find(".stock-chart__echarts").attr("_echarts_instance_");window.echarts.getInstanceById(e).resize()}))},isDateAllowed:function(t){return this.availableDates.includes(t)}}},Mt=Et,It=(0,D.Z)(Mt,$t,[],!1,null,null,null);It.options.__file="app/resources/vue/components/widgets/stock/StockChart.vue";var Ft=It.exports,Vt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stock-quote"},[a("div",{staticClass:"row no-gutters"},[a("div",{staticClass:"col-lg-3"},[a("div",{staticClass:"stock-quote__header"},[a("div",{staticClass:"stock-quote__text text-white"},[t._v(t._s(t.trans.market))]),t._v(" "),a("div",{staticClass:"stock-quote__symbol"},[t._v(t._s(t.trans.symbol))]),t._v(" "),a("div",{staticClass:"stock-quote__date"},[t._v(t._s(t.trans["last.updated"])),a("br"),t._v(t._s(t._f("dateFormat")(t.date,"DD-MM-YYYY HH:mm","D MMMM yyyy HH:mm",t.locale)))])])]),t._v(" "),a("div",{staticClass:"col-lg-9"},[a("div",{staticClass:"stock-quote__body"},[a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["last.price"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.last,"0,0.00"))+" "+t._s(t.trans.currency))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["volume.shares"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.volume,"0,0.00")))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["price.open"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.open,"0,0.00")))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["days.range"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.low,"0,0.00"))+" - "+t._s(t._f("numeralFormat")(t.high,"0,0.00")))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans.change)+" ("+t._s(t.trans["percent.change"])+")")]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.change,"0,0.00"))+" ("+t._s(t._f("numeralFormat")(t.percentChange,"0,0.00"))+")")])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["value.baht"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.value,"0,0.00")))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans.prior))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.prior,"0,0.00")))])]),t._v(" "),a("div",{staticClass:"stock-quote__item"},[a("div",{staticClass:"stock-quote__text"},[t._v(t._s(t.trans["52weeks.range"]))]),t._v(" "),a("div",{staticClass:"stock-quote__value"},[t._v(t._s(t._f("numeralFormat")(t.low52Weeks,"0,0.00"))+" - "+t._s(t._f("numeralFormat")(t.high52weeks,"0,0.00")))])])])])])])};function jt(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,i)}Vt._withStripped=!0;var Lt={props:["locale","trans"],data:function(){return{quote:null}},mounted:function(){this.init()},computed:{last:function(){return this.quote?this.quote.last:null},change:function(){return this.quote?this.quote.change:null},percentChange:function(){return this.quote?this.quote.percent_change:null},volume:function(){return this.quote?this.quote.total_volume:null},value:function(){return this.quote?this.quote.total_value:null},open:function(){return this.quote?this.quote.open:null},prior:function(){return this.quote?this.quote.prior:null},low:function(){return this.quote?this.quote.low:null},high:function(){return this.quote?this.quote.high:null},low52Weeks:function(){return this.quote?this.quote.low_52weeks:null},high52weeks:function(){return this.quote?this.quote.high_52weeks:null},date:function(){return this.quote?moment(this.quote.date,"YYYY-MM-DD HH:mm").format("DD-MM-YYYY HH:mm"):null}},methods:{init:function(){var t,e=this;return(t=regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i().get("/api/stock/realtime-quote");case 2:a=t.sent,e.quote=a.data.data;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(n,i){var r=t.apply(e,a);function o(t){jt(r,n,i,o,s,"next",t)}function s(t){jt(r,n,i,o,s,"throw",t)}o(void 0)}))})()}}},zt=Lt,Bt=(0,D.Z)(zt,Vt,[],!1,null,null,null);Bt.options.__file="app/resources/vue/components/widgets/stock/StockQuote.vue";var Zt=Bt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dropdown dropdown--search-dialog"},[a("button",{staticClass:"dropdown-toggle",class:{disable:!this.isLoaded()},attrs:{type:"button",id:"dropdownSearchDialog","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fal fa-search"})]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":"dropdownSearchDialog"}},[a("div",{staticClass:"search-dialog"},[a("div",{staticClass:"container"},[a("div",{staticClass:"row w-100 mx-auto"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"search-dialog__body"},[a("div",{staticClass:"row justify-content-center"},[t._m(0),t._v(" "),a("div",{staticClass:"col-lg-9 col-xl-8"},[a("div",{staticClass:"search-dialog__title"},[t._v(t._s(t.trans["site.search"]))]),t._v(" "),a("div",{staticClass:"search-dialog__form"},[a("div",{staticClass:"input-group"},[t._m(1),t._v(" "),a("input",{staticClass:"form-control typeahead search-dialog__form-control",attrs:{type:"text",placeholder:t.trans["search.dialog.hint"]}}),t._v(" "),t._m(2)])])])])])])])])])])])};Ht._withStripped=!0;var Wt=a(4823);function Nt(t){return function(t){if(Array.isArray(t))return Gt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ut(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,i,r=[],o=!0,s=!1;try{for(a=a.call(t);!(o=(n=a.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}(t,e)||Ut(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(t,e){if(t){if("string"==typeof t)return Gt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Gt(t,e):void 0}}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function Xt(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,i)}var Kt={props:["trans","locale"],data:function(){return{fuse:null,perfectScrollbar:null,isShowTextHelper:!1,typeahead:null}},mounted:function(){this.init()},methods:{init:function(){this.initTypeahead(),this.onDropdown(),this.dropdownClickable(),this.initData(),this.keydown(),this.focus(),this.close(),this.showTextHelperObserver()},initTypeahead:function(){var t=this;this.typeahead=$(this.$el).find(".typeahead"),this.typeahead.typeahead({highlight:!0,hint:!0},{name:"results",limit:100,source:function(e,a){t.search(e,a)},templates:{suggestion:function(t){return"<div><span>".concat(t.item.title,"</span></div>")},empty:function(){return'<p class="tt-suggestion__no-results">'.concat(t.trans["no.result.found"],"</p>")}}}),this.typeahead.bind("typeahead:select",(function(e,a){t.typeahead.typeahead("val",a.item.title),window.location=a.item.url})),this.typeahead.bind("typeahead:cursorchange",(function(e,a){t.typeahead.val(a.item.title)})),this.typeahead.bind("typeahead:open",(function(){null===t.perfectScrollbar&&(t.perfectScrollbar=new PerfectScrollbar($(t.$el).find(".tt-menu")[0],{swipeEasing:!0}))})),this.typeahead.bind("typeahead:render",(function(){t.perfectScrollbar.update()}))},showTextHelperObserver:function(){var t=this;$(this.$el).find(".typeahead").keyup((function(e){""===$(e.currentTarget).val()&&(t.isShowTextHelper=!1)})),this.typeahead.bind("typeahead:render",(function(){t.isShowTextHelper=!0})),this.typeahead.bind("typeahead:close",(function(){t.isShowTextHelper=!1})),this.typeahead.bind("typeahead:open",(function(e){""!==$(e.currentTarget).val()?t.isShowTextHelper=!0:t.isShowTextHelper=!1}))},isLoaded:function(){return null!==this.fuse},search:function(t,e){return e(this.fuse.search(t))},initData:function(){var t,e=this;return(t=regeneratorRuntime.mark((function t(){var a,n,r,o,s,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([i().get("/api/advanced-search/menus?locale=en"),i().get("/api/advanced-search/menus?locale=th"),i().get("/api/advanced-search/search-indexes")]);case 3:a=t.sent,n=Rt(a,3),r=n[0],o=n[1],s=n[2],c=[].concat(Nt(r.data.data),Nt(o.data.data),Nt(s.data.data)),l=e.getUniqueItems(c),e.fuse=new Wt.Z(l,{keys:["title"],threshold:.4,distance:300,ignoreLocation:!0,findAllMatches:!0}),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})),function(){var e=this,a=arguments;return new Promise((function(n,i){var r=t.apply(e,a);function o(t){Xt(r,n,i,o,s,"next",t)}function s(t){Xt(r,n,i,o,s,"throw",t)}o(void 0)}))})()},getUniqueItems:function(t){return Nt(new Set(t.map((function(t){return t.title})))).map((function(e){return{title:e,url:t.find((function(t){return t.title===e})).url}}))},keydown:function(){var t=this;$(document).on("keydown",(function(e){e.ctrlKey&&74===e.keyCode&&(e.preventDefault(),$(t.$el).find(".dropdown-toggle").dropdown("show")),27===e.keyCode&&(e.preventDefault(),$(t.$el).find(".dropdown-toggle").dropdown("hide"))}))},onDropdown:function(){var t=this;$(this.$el).on("show.bs.dropdown",(function(e){var a=t.getScrollbarWidth();$(t.$el).find(".dropdown-menu").css({"padding-right":a+"px",width:"calc(100% + "+a+"px)"}),$(".header").css({"padding-right":a+"px"}),$(".header").addClass("header--is-dropdown-open"),$("body").css({"padding-right":a+"px"}),$("html").addClass("overflow-hidden")})),$(this.$el).on("hidden.bs.dropdown",(function(e){$(t.$el).find(".dropdown-menu").removeAttr("style"),$(".header").removeAttr("style"),$("body").removeAttr("style"),$("dropdown-menu").removeAttr("style"),$("html").removeClass("overflow-hidden"),$(".header").removeClass("header--is-dropdown-open")}))},dropdownClickable:function(){$(this.$el).find(".dropdown-menu").click((function(t){t.stopPropagation()}))},focus:function(){var t=this;$(this.$el).on("shown.bs.dropdown",(function(e){setTimeout((function(e){$(t.$el).find(".typeahead").focus()}),300)}))},close:function(){var t=this;$(this.$el).find(".search-dialog__close").on("click",(function(e){$(t.$el).find(".dropdown-toggle").dropdown("hide")}))},getScrollbarWidth:function(){var t=document.createElement("div");t.className="measured-scrollbar",document.body.appendChild(t);var e=window.innerWidth-t.clientWidth;return document.body.removeChild(t),e}}},Qt=Kt,Jt=(0,D.Z)(Qt,Ht,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-lg-9 col-xl-8 text-right"},[e("button",{staticClass:"search-dialog__close",attrs:{type:"button"}},[e("i",{staticClass:"fal fa-times"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"far fa-search"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group__copyright"},[t._v("\n Enhanced by "),a("a",{attrs:{href:"https://www.optiwise.io",target:"_blank"}},[a("img",{staticClass:"input-group__copyright-image",attrs:{src:"/assets/images/advanced-search/optiwise-logo.svg",alt:"Optiwise"}})])])}],!1,null,null,null);Jt.options.__file="app/resources/vue/components/SearchDialog.vue";var te=Jt.exports;s.default.component("main-header",T),s.default.component("intro-dialog",S),s.default.component("owl-carousel",M),s.default.component("swiper",z),s.default.component("accordion",W),s.default.component("accordion-item",G),s.default.component("resource-center",et),s.default.component("revenue-chart",st),s.default.component("shareholder
1-chart",ft),s.default.component("calculator",bt),s.default.component("calculator-chart",St),s.default.component("stock-quote",Zt),s.default.component("stock-chart",Ft),s.default.component("search-dialog",te),s.default.use(l());var ee=new(l())({});window.VueBus=new s.default,new s.default({vuetify:ee,el:"#vue-app"})}},function(t){t.O(0,[577],(function(){return e=2518,t(t.s=e);var e}));t.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.