{"version":3,"sources":["webpack:///./src/components/mixins/global-search-history.js","webpack:///./node_modules/lodash/reverse.js","webpack:///./src/components/miniapp/search/IndiceList.vue?c4aa","webpack:///./src/components/miniapp/search/IndiceList.vue?bc88","webpack:///src/components/miniapp/search/IndiceList.vue","webpack:///./src/components/miniapp/search/IndiceList.vue?662b","webpack:///./src/components/miniapp/search/IndiceList.vue"],"names":["data","mixins_global_search_historyList","methods","mixins_global_search_history","keyword","localForage","storageData","currentFundIndex","indexOf","splice","length","startElem","push","mixins_global_search_getHistory","historyList","this","_reverse","mixins_global_search_clearHistory","confirmDelete","arrayProto","Array","prototype","nativeReverse","reverse","array","call","module","exports","render","_vm","_h","$createElement","_c","_self","items","staticClass","_v","_s","topic","_l","slice","page","indice","index","key","attrs","searchTab","IndexSymbol","on","$event","clickItemIndice","SectorNameTh","viewAll","clickItemAll","_e","infiniteHandler","staticRenderFns","props","type","String","default","searchText","defaultSize","Number","watch","mixins","$emit","$router","name","query","component"],"mappings":"6KAGe,QACbA,KADa,WAEX,MAAO,CACLC,iCAAkC,KAGtCC,QAAS,CACDC,6BADC,oEAC4BC,GAD5B,2GAEmBC,aAAoB,yBAFvC,gDAEmE,GAFnE,cAEDC,EAFC,KAGDC,EAAmBD,EAAYE,QAAQJ,IACjB,IAAtBG,GACFD,EAAYG,OAAOF,EAAkB,GAGnCD,EAAYI,OAAS,IACnBC,EAAYL,EAAYI,OAAS,GAAK,EAAIJ,EAAYI,OAAS,EAAI,EACvEJ,EAAcA,EAAYG,OAAOE,EAAW,IAG9CL,EAAYM,KAAKR,GAbZ,UAcCC,aAAoB,wBAAyBC,GAd9C,qGAgBDO,gCAhBC,6KAiBmBR,aAAoB,yBAjBvC,OAiBDS,EAjBC,OAkBDA,GAAeA,EAAYJ,OAAS,IACtCK,KAAKd,iCAAmCe,IAASF,IAnB9C,wGAsBDG,kCAtBC,oEAsBiCC,GAtBjC,iFAuBDA,IACFb,gBAAuB,yBACvBU,KAAKd,iCAAmC,MAzBrC,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EAAG,mBAAmB,CAACa,MAAM,CAAC,QAAU,YAAYG,GAAG,CAAC,SAAWnB,EAAI0B,mBAAmB1B,EAAIyB,MAAM,GAAGzB,EAAIyB,MAC1nCE,EAAkB,G,gDCmCtB,GACEC,MAAO,CACLnB,MAAO,CACLoB,KAAMC,OACNC,QAAS,IAEXd,UAAW,CACTY,KAAMC,OACNC,QAAS,MAEX1B,MAAO,CACLwB,KAAMtC,MACNwC,QAAS,WACP,MAAO,KAGXC,WAAY,CACVH,KAAMC,OACNC,QAAS,MAEXE,YAAa,CACXJ,KAAMK,OACNH,QAAS,GAEXR,QAAS,CACPM,KAAMC,OACNC,QAAS,KAGbI,MAAO,CACLZ,QADJ,WAEsB,OAAhBrC,KAAKqC,UAAmB,KAA9B,yBAGEpD,KAlCF,WAmCI,MAAO,CACLyC,KAAM1B,KAAK+C,cAGfG,OAAQ,CAAC,EAAX,MACE/D,QAAS,CACPmD,aADJ,WAEMtC,KAAK0B,KAAO,EACZ1B,KAAKmD,MAAM,iBAAkB,YAE/BhB,gBALJ,SAKA,GACMnC,KAAKZ,6BAA6BY,KAAK8C,YACvC9C,KAAKoD,QAAQvD,KAAK,CAChBwD,KAAM,wBACNC,MAAO,CAAf,WAGI,gBAZJ,oEAYA,GAZA,iFAaA,8BACA,aACA,uBACA,aACA,MAEA,aAnBA,2GC5EkX,I,wBCQ9WC,EAAY,eACd,EACA1C,EACA4B,GACA,EACA,KACA,WACA,MAIa,aAAAc,E","file":"js/chunk-185236a1.6e0613b8.js","sourcesContent":["import _reverse from \"lodash/reverse\";\nimport * as localForage from \"localforage\";\n\nexport default {\n data() {\n return {\n mixins_global_search_historyList: []\n }\n },\n methods: {\n async mixins_global_search_history(keyword) {\n let storageData = await localForage.getItem('global-search-history') || []\n let currentFundIndex = storageData.indexOf(keyword)\n if (currentFundIndex !== -1) {\n storageData.splice(currentFundIndex, 1)\n }\n\n if (storageData.length > 4) {\n let startElem = storageData.length - 4 >= 0 ? storageData.length - 4 : 0;\n storageData = storageData.splice(startElem, 4)\n }\n\n storageData.push(keyword)\n await localForage.setItem('global-search-history', storageData)\n },\n async mixins_global_search_getHistory() {\n let historyList = await localForage.getItem('global-search-history')\n if (historyList && historyList.length > 0) {\n this.mixins_global_search_historyList = _reverse(historyList)\n }\n },\n async mixins_global_search_clearHistory(confirmDelete) {\n if (confirmDelete) {\n localForage.removeItem('global-search-history')\n this.mixins_global_search_historyList = null\n }\n }\n }\n\n}\n","/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeReverse = arrayProto.reverse;\n\n/**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\nfunction reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n}\n\nmodule.exports = reverse;\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndiceList.vue?vue&type=style&index=0&id=7ef88b94&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndiceList.vue?vue&type=style&index=0&id=7ef88b94&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.items && _vm.items.length > 0)?_c('div',{staticClass:\"result-list\"},[_c('h3',[_vm._v(_vm._s(_vm.topic))]),_c('ul',{staticClass:\"list-item\"},[_vm._l((_vm.items.slice(0, _vm.page)),function(indice,index){return _c('li',{key:index},[_c('a',{attrs:{\"data-action\":\"open_index\",\"data-assettype\":\"indices\",\"data-listname\":'search_'+_vm.searchTab,\"data-stockname\":indice.IndexSymbol,\"data-assetname\":indice.IndexSymbol,\"href\":\"javascript:;\"},on:{\"click\":function($event){return _vm.clickItemIndice(indice.IndexSymbol)}}},[_c('h4',[_vm._v(_vm._s(indice.IndexSymbol))]),_c('p',[_vm._v(_vm._s(indice.SectorNameTh))])])])}),(_vm.viewAll == 'all')?_c('a',{staticClass:\"view-indice view-more\",attrs:{\"data-action\":\"open_search_index\",\"data-eventcategory\":\"search_flow\",\"href\":\"javascript:;\"},on:{\"click\":function($event){return _vm.clickItemAll()}}},[_vm._v(\" ดูทั้งหมด \"),_c('i',{staticClass:\"fas fa-chevron-right\"})]):_vm._e()],2),(_vm.viewAll != 'all')?_c('infinite-loading',{attrs:{\"spinner\":\"waveDots\"},on:{\"infinite\":_vm.infiniteHandler}}):_vm._e()],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndiceList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndiceList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./IndiceList.vue?vue&type=template&id=7ef88b94&scoped=true&\"\nimport script from \"./IndiceList.vue?vue&type=script&lang=js&\"\nexport * from \"./IndiceList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./IndiceList.vue?vue&type=style&index=0&id=7ef88b94&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ef88b94\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}