{"version":3,"sources":["webpack:///./src/components/mixins/global-search-history.js","webpack:///./node_modules/lodash/reverse.js","webpack:///./src/components/miniapp/search/FundList.vue?8802","webpack:///./src/components/miniapp/search/FundList.vue?c835","webpack:///src/components/miniapp/search/FundList.vue","webpack:///./src/components/miniapp/search/FundList.vue?e93a","webpack:///./src/components/miniapp/search/FundList.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","fund","index","key","attrs","searchTab","short_code","on","$event","clickItemStock","id","name_th","viewAll","clickItemAll","_e","infiniteHandler","staticRenderFns","props","type","String","default","searchText","defaultSize","Number","watch","mixins","$emit","$router","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,4G,4CCRX,IAAIkB,EAAaC,M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I2B,mBAAmB3B,EAAI0B,MAAM,GAAG1B,EAAI0B,MAC3hCE,EAAkB,G,gDCiCtB,GACEC,MAAO,CACLpB,MAAO,CACLqB,KAAMC,OACNC,QAAS,IAEX3B,MAAO,CACLyB,KAAMvC,MACNyC,QAAS,WACP,MAAO,KAGXf,UAAW,CACTa,KAAMC,OACNC,QAAS,MAEXC,WAAY,CACVH,KAAMC,OACNC,QAAS,MAEXE,YAAa,CACXJ,KAAMK,OACNH,QAAS,GAEXR,QAAS,CACPM,KAAMC,OACNC,QAAS,KAGbI,MAAO,CACLZ,QADJ,WAEsB,OAAhBtC,KAAKsC,UAAmB,KAA9B,yBAGErD,KAlCF,WAmCI,MAAO,CACLyC,KAAM1B,KAAKgD,cAGfG,OAAQ,CAAC,EAAX,MACEhE,QAAS,CACPoD,aADJ,WAEMvC,KAAK0B,KAAO,EACZ1B,KAAKoD,MAAM,iBAAkB,UAE/BjB,eALJ,SAKA,GACMnC,KAAKZ,6BAA6BY,KAAK+C,YACvC/C,KAAKqD,QAAQxD,KAAK,CAAxB,0CAEI,gBATJ,oEASA,GATA,iFAUA,8BACA,aACA,uBACA,aACA,MAEA,aAhBA,2GC1EgX,I,wBCQ5WyD,EAAY,eACd,EACAzC,EACA6B,GACA,EACA,KACA,WACA,MAIa,aAAAY,E","file":"js/chunk-70c999aa.062a6a9d.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!./FundList.vue?vue&type=style&index=0&id=86c9fa50&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!./FundList.vue?vue&type=style&index=0&id=86c9fa50&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(fund,index){return _c('li',{key:index},[_c('a',{attrs:{\"data-action\":\"open_fund\",\"data-listname\":'search_'+_vm.searchTab,\"data-fundname\":fund.short_code,\"href\":\"javascript:;\"},on:{\"click\":function($event){return _vm.clickItemStock(fund.id)}}},[_c('h4',[_vm._v(_vm._s(fund.short_code))]),_c('p',[_vm._v(_vm._s(fund.name_th))])])])}),(_vm.viewAll == 'all')?_c('a',{staticClass:\"view-funds view-more\",attrs:{\"data-action\":\"open_search_fund\",\"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 0\">\n {{topic}}\n \n \n \n {{ fund.short_code }}\n {{ fund.name_th }}\n \n \n \n ดูทั้งหมด\n \n \n \n \n \n\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!./FundList.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!./FundList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FundList.vue?vue&type=template&id=86c9fa50&scoped=true&\"\nimport script from \"./FundList.vue?vue&type=script&lang=js&\"\nexport * from \"./FundList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FundList.vue?vue&type=style&index=0&id=86c9fa50&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 \"86c9fa50\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
{{ fund.name_th }}