(self.webpackChunk=self.webpackChunk||[]).push([[9985],{95003:(e,t,n)=>{"use strict";n.d(t,{AR:()=>f,FS:()=>d,J1:()=>l,Zn:()=>h,gp:()=>c,ps:()=>p,xt:()=>u});n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var i=n(74692);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={indexTypeLabel:"Index Type"},c={indexTypes:[]},u={indexType:""},d={data:function(){return r(r({},l),{},{currencyLabel:"Currency",componentLabel:"Component",aumLabel:"AUM",inceptionLabel:"Inception date"})}},h={data:function(){return r(r(r({defaultIndexType:"",defaultCurrency:"",defaultComponent:"",defaultInceptionDate:"",defaultAum:"",fullTextSearch:""},u),{},{currency:"",component:"",inception:"",aum:"",fullTextSearch:"",indexes:[]},c),{},{currencies:[],componentTypes:[{value:"1:50",text:"1-50"},{value:"51:200",text:"51-200"},{value:"201:500",text:"201-500"},{value:"501:1000",text:"501-1000"},{value:"1000:",text:"> 1000"}],aumTypes:[{value:"0:100",text:"< 100"},{value:"100:500",text:"100-500"},{value:"500:1000",text:"500-1000"},{value:"1000",text:"> 1000"}],hasLoadMore:!1,indexFamily:"all",isWatchEnabled:!1,isLoading:!1,offset:0,limit:50,totalIndexesCount:0,currentPage:1})}},p={methods:{resetComponentData:function(){this.fullTextSearch="",this.indexType="",this.currency="",this.component="",this.inception="",this.aum="",this.indexes=[],this.$refs.datePicker.clearDatePicker(),this.getIndexes()},getIndexFilters:function(e,t){i.getJSON("/api/index-filters",t,(function(t){e.indexTypes=t.indexTypes.map((function(e){return{text:e.name,value:e.identifier}})),e.currencies=t.currencies.map((function(e){return{text:e.iso,value:e.id}}))}))},getIndexes:function(){var e,t,n,s,a,r,o,l,c,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,d=this;d.currentPage=u,d.isLoading=!0,d.offset=(u-1)*d.limit;var h={search:null!==(e=d.fullTextSearch)&&void 0!==e?e:"",indexFamilyPath:null!==(t=d.indexFamily)&&void 0!==t?t:"",indexType:null!==(n=d.indexType)&&void 0!==n?n:"",aum:null!==(s=d.aum)&&void 0!==s?s:"",esg:null!==(a=d.esg)&&void 0!==a?a:"",hasProduct:null!==(r=d.hasProduct)&&void 0!==r?r:"",currency:null!==(o=d.currency)&&void 0!==o?o:"",component:null!==(l=d.component)&&void 0!==l?l:"",inception:null!==(c=d.inception)&&void 0!==c?c:"",offset:d.offset,limit:d.limit};i.getJSON("/api/indexes",{params:h},(function(e){d.isLoading=!1,d.indexes=[],d.indexes=e.result,d.totalIndexesCount=Math.ceil(e.totalCount/d.limit),d.hasLoadMore=e.loadMore}))}}},f={watch:{indexType:function(){this.onChangeFilter()},currency:function(){this.onChangeFilter()},component:function(){this.onChangeFilter()},aum:function(){this.onChangeFilter()},inception:function(e){this.onChangeFilter()}}}},30992:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(26698),n(86640),n(56613);function i(){var e="search-active";document.querySelectorAll("body").forEach((function(t){var n=function(n){t.classList.contains(e)||t.classList.add(e)},i=function(n){t.classList.contains(e)&&(n.stopPropagation(),t.classList.remove(e))};t.querySelectorAll(".filter-opener").forEach((function(e){e.addEventListener("click",n)})),t.querySelectorAll(".close-search").forEach((function(e){e.addEventListener("click",i)}))}))}},23042:(e,t,n)=>{var i=n(74692);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}n(57644),n(74516),n(75826),n(51783),n(55146),n(84443),n(53979),n(86640),n(64777),n(92536),n(15782),function(e){"use strict";function t(e,t){this.$holder=e,this.options=t,this.init()}t.prototype={init:function(){this.$tabLinks=this.$holder.find(this.options.tabLinks),this.setStartActiveIndex(),this.setActiveTab(),this.options.autoHeight&&(this.$tabHolder=e(this.$tabLinks.eq(0).attr(this.options.attrib)).parent()),this.makeCallback("onInit",this)},setStartActiveIndex:function(){var e,t=this.getClassTarget(this.$tabLinks),n=t.filter("."+this.options.activeClass),i=this.$tabLinks.filter("["+this.options.attrib+'="'+location.hash+'"]');this.options.checkHash&&i.length&&(n=i),e=t.index(n),this.activeTabIndex=this.prevTabIndex=-1===e?this.options.defaultTab?0:null:e},setActiveTab:function(){var t=this;this.$tabLinks.each((function(n,i){var s=e(i),a=t.getClassTarget(s),r=e(s.attr(t.options.attrib));n!==t.activeTabIndex?(a.removeClass(t.options.activeClass),r.addClass(t.options.tabHiddenClass).removeClass(t.options.activeClass)):(a.addClass(t.options.activeClass),r.removeClass(t.options.tabHiddenClass).addClass(t.options.activeClass)),t.attachTabLink(s,n)}))},attachTabLink:function(e,t){var n=this;e.on(this.options.event+".tabset",(function(e){e.preventDefault(),n.activeTabIndex===n.prevTabIndex&&n.activeTabIndex!==t&&(n.activeTabIndex=t,n.switchTabs()),n.options.checkHash&&(location.hash=i(this).attr("href").split("#")[1])}))},resizeHolder:function(e){var t=this;e?(this.$tabHolder.height(e),setTimeout((function(){t.$tabHolder.addClass("transition")}),10)):t.$tabHolder.removeClass("transition").height("")},switchTabs:function(){var e=this,t=this.$tabLinks.eq(this.prevTabIndex),n=this.$tabLinks.eq(this.activeTabIndex),i=this.getTab(t),s=this.getTab(n);i.removeClass(this.options.activeClass),e.haveTabHolder()&&this.resizeHolder(i.outerHeight()),setTimeout((function(){e.getClassTarget(t).removeClass(e.options.activeClass),i.addClass(e.options.tabHiddenClass),s.removeClass(e.options.tabHiddenClass).addClass(e.options.activeClass),e.getClassTarget(n).addClass(e.options.activeClass),e.haveTabHolder()?(e.resizeHolder(s.outerHeight()),setTimeout((function(){e.resizeHolder(),e.prevTabIndex=e.activeTabIndex,e.makeCallback("onChange",e)}),e.options.animSpeed)):e.prevTabIndex=e.activeTabIndex}),this.options.autoHeight?this.options.animSpeed:1)},getClassTarget:function(e){return this.options.addToParent?e.parent():e},getActiveTab:function(){return this.getTab(this.$tabLinks.eq(this.activeTabIndex))},getTab:function(t){return e(t.attr(this.options.attrib))},haveTabHolder:function(){return this.$tabHolder&&this.$tabHolder.length},destroy:function(){var t=this;this.$tabLinks.off(".tabset").each((function(){var n=e(this);t.getClassTarget(n).removeClass(t.options.activeClass),e(n.attr(t.options.attrib)).removeClass(t.options.activeClass+" "+t.options.tabHiddenClass)})),this.$holder.removeData("Tabset")},makeCallback:function(e){if("function"==typeof this.options[e]){var t=Array.prototype.slice.call(arguments);t.shift(),this.options[e].apply(this,t)}}},e.fn.tabset=function(n){var a=Array.prototype.slice.call(arguments),r=a[0],o=e.extend({activeClass:"active",addToParent:!1,autoHeight:!1,checkHash:!1,defaultTab:!0,animSpeed:500,tabLinks:"a",attrib:"href",event:"click",tabHiddenClass:"js-tab-hidden"},n);return o.autoHeight=o.autoHeight,this.each((function(){var e=i(this),l=e.data("Tabset");"object"===s(n)||void 0===n?e.data("Tabset",new t(e,o)):"string"==typeof r&&l&&"function"==typeof l[r]&&(a.shift(),l[r].apply(l,a))}))}}(i,i(window))},35358:(e,t,n)=>{var i={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":74858,"./fo.js":74858,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function s(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=a,e.exports=s,s.id=35358},2133:(e,t,n)=>{"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},s=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),s.forEach((function(t){i(e,t,n[t])}))}return e}n.d(t,{k_:()=>l});var a=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}},html:{type:String,default:null}},mounted:function(){var e=this.$el,t=e.parentNode;e.__isFragment=!0,e.__isMounted=!1;var n=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));e.__head=n,e.__tail=i;var s=document.createDocumentFragment();if(s.appendChild(n),Array.from(e.childNodes).forEach((function(t){var n=!t.hasOwnProperty("__isFragmentChild__");s.appendChild(t),n&&(a(t,"parentNode",e),a(t,"__isFragmentChild__",!0))})),s.appendChild(i),this.html){var r=document.createElement("template");r.innerHTML=this.html,Array.from(r.content.childNodes).forEach((function(e){s.appendChild(e)}))}var o=e.nextSibling;t.insertBefore(s,e,!0),t.removeChild(e),a(e,"parentNode",t),a(e,"nextSibling",o),o&&a(o,"previousSibling",e),e.__isMounted=!0},render:function(e){var t=this,n=this.$slots.default;return n&&n.length&&n.forEach((function(e){return e.data=s({},e.data,{attrs:s({fragment:t.name},(e.data||{}).attrs)})})),e("div",{attrs:{fragment:this.name}},n)}};var l={install:function(e){var t=window.Node.prototype.removeChild;window.Node.prototype.removeChild=function(e){if(!this.__isFragment){if(e.__isFragment&&e.__isMounted){for(;e.__head.nextSibling!==e.__tail;)t.call(this,e.__head.nextSibling);t.call(this,e.__head),t.call(this,e.__tail);var n=e.__head.previousSibling,i=e.__tail.nextSibling;return n&&a(n,"nextSibling",i),i&&a(i,"previousSibling",n),r(e,"parentNode"),e}var s=e.previousSibling,o=e.nextSibling,l=t.call(this,e);return s&&a(s,"nextSibling",o),o&&a(o,"previousSibling",s),l}if(this.parentNode){var c=this.parentNode.removeChild(e);return r(e,"parentNode"),c}};var n=window.Node.prototype.insertBefore;window.Node.prototype.insertBefore=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t&&t.__isFragment&&t.__isMounted?t.__head:t;if(this.__isFragment){var r=!e.hasOwnProperty("__isFragmentChild__"),o=!i||r;r&&a(e,"__isFragmentChild__",!0);var l=this.parentNode?this.parentNode.insertBefore(e,t):n.call(this,e,s);return o&&a(e,"parentNode",this),l}if(e.__isFragment&&e.__isMounted){if(e===t)return void console.error("something must be wrong");a(e,"parentNode",this),e.previousSibling&&a(e.previousSibling,"nextSibling",e.nextSibling),e.nextSibling&&a(e.nextSibling,"previousSibling",e.previousSibling),a(e,"nextSibling",t),a(e,"previousSibling",t.previousSibling),t.previousSibling&&a(t.previousSibling,"nextSibling",e),a(t,"previousSibling",e);for(var c=document.createDocumentFragment(),u=e.__head;u!==e.__tail;)c.appendChild(u),u=u.nextSibling;return c.appendChild(e.__tail),n.call(this,c,s),e}return n.call(this,e,s)};var i=window.Node.prototype.appendChild;window.Node.prototype.appendChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.__isFragment)return i.call(this,e);if(this.parentNode){var n=!e.hasOwnProperty("__isFragmentChild__"),s=!t||n;n&&a(e,"__isFragmentChild__",!0);var r=this.parentNode.insertBefore(e,this.__tail,t);return s&&a(e,"parentNode",this),r}},e.component("Fragment",o)}}},54937:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var i=function(){var e=this,t=e._self._c;return t("fragment",[t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"indexType",attrs:{labelText:e.indexTypeLabel,dropdownOptions:e.indexTypes,isSearchable:!1,selected:e.defaultIndexType},on:{changeFilterValue:function(t){e.indexType=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"currency",attrs:{labelText:e.currencyLabel,dropdownOptions:e.currencies,isSearchable:!1,selected:e.defaultCurrency},on:{changeFilterValue:function(t){e.currency=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"component",attrs:{labelText:e.componentLabel,dropdownOptions:e.componentTypes,isSearchable:!1,selected:e.defaultComponent},on:{changeFilterValue:function(t){e.component=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("DatePickerComponent",{ref:"datePicker",attrs:{labelText:e.inceptionLabel,defaultDate:e.defaultInceptionDate},on:{changeFilterValue:function(t){e.inception=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"aum",attrs:{labelText:e.aumLabel,dropdownOptions:e.aumTypes,isSearchable:!1,selected:e.defaultAum},on:{changeFilterValue:function(t){e.aum=t}}})],1)])};i._withStripped=!0;n(76031);var s=n(85471),a=(n(74692),n(2133)),r=n(6804),o=n.n(r),l=n(76776),c=function(){var e=this,t=e._self._c;return t("label",{staticClass:"custom-element"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedDate,expression:"selectedDate"}],staticClass:"datepicker-field",attrs:{type:"text",name:"datefilter"},domProps:{value:e.selectedDate},on:{input:function(t){t.target.composing||(e.selectedDate=t.target.value)}}}),e._v(" "),t("span",{staticClass:"label-item label-item-datepicker"},[e._v(e._s(e.labelText))])])};c._withStripped=!0;n(43335);var u=n(74692);s.Ay.use(n(55624));const d={name:"datePicker",props:["labelText","defaultDate"],data:function(){return{selectedDate:""}},watch:{defaultDate:function(e){this.setDefaultDate(e)}},methods:{enableDatePicker:function(){var e=this,t=this.$el.querySelector("input"),n=this.$el.querySelector("span");u(t).daterangepicker({singleDatePicker:!0,autoUpdateInput:!1,locale:{cancelLabel:"Clear"}}),u(t).on("apply.daterangepicker",(function(i,s){u(n).addClass("label-item-selected"),u(t).addClass("selected-border");var a=s.startDate.format("MM/DD/YYYY");u(this).val(a),e.selectedDate=a,e.onChangeOption()})),u(t).on("cancel.daterangepicker",(function(t,n){e.clearDatePicker()}))},clearDatePicker:function(){var e=this,t=this.$el.querySelector("input"),n=this.$el.querySelector("span");u(n).removeClass("label-item-selected"),u(t).removeClass("selected-border"),u(t).val(""),e.setDate(moment().format("MM/DD/YYYY")),e.selectedDate="",e.onChangeOption()},setDate:function(e){var t=this.$el.querySelector("input"),n=u(t).data("daterangepicker");n.setStartDate(e),n.setEndDate(e)},setDefaultDate:function(e){var t=this,n=this.$el.querySelector("input"),i=this.$el.querySelector("span");null!==e&&""!==e&&(t.setDate(e),u(i).addClass("label-item-selected"),u(n).addClass("selected-border"),t.selectedDate=e),t.onChangeOption()},onChangeOption:function(){this.$emit("changeFilterValue",this.selectedDate)}},mounted:function(){this.enableDatePicker()}};var h=n(14486);const p=(0,h.A)(d,c,[],!1,null,null,null).exports;var f=n(95003);s.Ay.component("v-select",o()),s.Ay.use(a.k_);const m={components:{VueSelectFilterComponent:l.A,DatePickerComponent:p},name:"IndexFilterComponent",props:{searchKey:{type:String,required:!1},defaultParams:{type:Object,required:!1}},mixins:[f.FS,f.Zn,f.AR,f.ps],data:function(){return{}},watch:{searchKey:function(e){this.fullTextSearch=e,this.onChangeFilter()},isLoading:function(e){this.$emit("updateLoadingStatus",e)},indexes:function(e){this.emitParams(),this.$emit("updateResult",{result:e,hasLoadMore:this.hasLoadMore,totalIndexesCount:this.totalIndexesCount,currentPage:this.currentPage})},defaultParams:function(e){this.setDefaultParams(e)}},methods:{setDefaultParams:function(e){var t,n,i,s,a,r;e&&(this.fullTextSearch=null!==(t=e.fullTextSearch)&&void 0!==t?t:"",this.defaultIndexType=this.indexType=null!==(n=e.indexType)&&void 0!==n?n:"",this.defaultCurrency=this.currency=null!==(i=e.currency)&&void 0!==i?i:"",this.defaultComponent=this.component=null!==(s=e.component)&&void 0!==s?s:"",this.defaultInceptionDate=this.inception=null!==(a=e.inception)&&void 0!==a?a:"",this.defaultAum=this.aum=null!==(r=e.aum)&&void 0!==r?r:"")},onChangeFilter:function(){this.offset=0,this.limit=50,this.isWatchEnabled&&this.getIndexes()},emitParams:function(){var e,t,n,i,s,a;this.$emit("setParams",{query:null!==(e=this.fullTextSearch)&&void 0!==e?e:"",indexType:null!==(t=this.indexType)&&void 0!==t?t:"",currency:null!==(n=this.currency)&&void 0!==n?n:"",component:null!==(i=this.component)&&void 0!==i?i:"",inception:null!==(s=this.inception)&&void 0!==s?s:"",aum:null!==(a=this.aum)&&void 0!==a?a:""})},loadMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.getIndexes(e)},reset:function(){var e=this;this.isWatchEnabled=!1,this.offset=0,this.limit=50,this.resetComponentData(),this.$refs.indexType.reset(),this.$refs.currency.reset(),this.$refs.component.reset(),this.$refs.aum.reset(),setTimeout((function(){e.isWatchEnabled=!0}),500)}},mounted:function(){var e=this;e.getIndexFilters(e,{indexFamily:e.indexFamily}),this.setDefaultParams(this.defaultParams),setTimeout((function(){e.getIndexes(),e.isWatchEnabled=!0}),500)}};const v=(0,h.A)(m,i,[],!1,null,null,null).exports},2350:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=function(){var e=this,t=e._self._c;return t("fragment",[t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"indexType",attrs:{labelText:e.indexTypeLabel,dropdownOptions:e.indexTypes,isSearchable:!1,selected:e.defaultIndexType},on:{changeFilterValue:function(t){e.indexType=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"insightType",attrs:{labelText:e.insightLabel,dropdownOptions:e.insightTypes,isSearchable:!1,selected:e.defaultInsightType},on:{changeFilterValue:function(t){e.insightType=t}}})],1),e._v(" "),t("div",{staticClass:"filter-item"},[t("VueSelectFilterComponent",{ref:"newsDateType",attrs:{labelText:e.newsDateLabel,dropdownOptions:e.newsDateTypes,isSearchable:!1,selected:e.defaultNewsDateType},on:{changeFilterValue:function(t){e.newsDateType=t}}})],1)])};i._withStripped=!0;n(76031),n(74692);var s=n(85471),a=n(6804),r=n.n(a),o=n(2133),l=n(76776),c=(n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953),n(95003)),u=n(74692);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={data:function(){return p(p({},c.J1),{},{indexTypeLabel:"Index Type",insightLabel:"Type",newsDateLabel:"Date"})}},v={data:function(){return p(p(p({defaultIndexType:"",defaultInsightType:"",defaultNewsDateType:""},c.xt),c.gp),{},{insightType:"",insightTypes:[{value:"commentary",text:"Commentary"},{value:"research",text:"Research"},{value:"news",text:"News"}],newsDateTypes:[],newsDateType:"",insightList:[],hasLoadMore:!1,sortOrder:"DESC",indexFamily:"all",isWatchEnabled:!1,isLoading:!1,offset:0,limit:30,totalInsightsCount:0,currentPage:1})}},b={methods:{getInsightFilters:function(){var e=this;u.getJSON("/api/news-filters",{indexFamily:e.indexFamily},(function(t){e.indexTypes=t.indexTypes.map((function(e){return{text:e.name,value:e.identifier}})),e.newsDateTypes=t.dateFilterOptionsForNews.map((function(e){return{text:e.label,value:e.value}}))}))},resetComponentData:function(){this.fullTextSearch="",this.indexType="",this.insightType="",this.newsDateType="",this.insightList=[],this.getInsightList()},getInsightList:function(){var e,t,n,i,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=this;this.currentPage=a,r.isLoading=!0,r.offset=(a-1)*r.limit;var o={offset:r.offset,limit:r.limit,search:null!==(e=r.fullTextSearch)&&void 0!==e?e:"",indexType:null!==(t=r.indexType)&&void 0!==t?t:"",insightType:null!==(n=r.insightType)&&void 0!==n?n:"",newsDateType:null!==(i=r.newsDateType)&&void 0!==i?i:"",sortOrder:null!==(s=r.sortOrder)&&void 0!==s?s:""};u.getJSON("/api/insight-list",{params:o},(function(e){r.isLoading=!1,r.insightList=[],r.insightList=e.result,r.totalInsightsCount=Math.ceil(e.totalCount/r.limit),r.hasLoadMore=e.loadMore}))}}};s.Ay.component("v-select",r()),s.Ay.use(o.k_);const y={components:{VueSelectFilterComponent:l.A},name:"InsightFilterComponent",props:{searchKey:{type:String,require:!1},defaultParams:{type:Object,require:!1}},mixins:[m,v,{watch:{indexType:function(){this.onChangeFilter()},insightType:function(){this.onChangeFilter()},newsDateType:function(){this.onChangeFilter()}}},b],data:function(){return{}},watch:{searchKey:function(e){this.fullTextSearch=e,this.onChangeFilter()},isLoading:function(e){this.$emit("updateLoadingStatus",e)},insightList:function(e){this.emitParams(),this.$emit("updateResult",{result:e,hasLoadMore:this.hasLoadMore,totalInsightsCount:this.totalInsightsCount,currentPage:this.currentPage})},defaultParams:function(e){this.setDefaultParams(e)}},methods:{setDefaultParams:function(e){var t,n,i,s;e&&(this.fullTextSearch=null!==(t=e.fullTextSearch)&&void 0!==t?t:"",this.defaultIndexType=this.indexType=null!==(n=e.indexType)&&void 0!==n?n:"",this.defaultInsightType=this.insightType=null!==(i=e.insightType)&&void 0!==i?i:"",this.defaultNewsDateType=this.newsDateType=null!==(s=e.newsDateType)&&void 0!==s?s:"")},onChangeFilter:function(){this.offset=0,this.limit=30,this.isWatchEnabled&&this.getInsightList()},emitParams:function(){var e,t,n,i;this.$emit("setParams",{query:null!==(e=this.fullTextSearch)&&void 0!==e?e:"",indexType:null!==(t=this.indexType)&&void 0!==t?t:"",insightType:null!==(n=this.insightType)&&void 0!==n?n:"",newsDateType:null!==(i=this.newsDateType)&&void 0!==i?i:""})},loadMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.getInsightList(e)},reset:function(){var e=this;this.isWatchEnabled=!1,this.offset=0,this.limit=30,this.resetComponentData(),this.$refs.indexType.reset(),this.$refs.insightType.reset(),this.$refs.newsDateType.reset(),setTimeout((function(){e.isWatchEnabled=!0}),500)}},mounted:function(){var e=this;this.getInsightFilters(),this.setDefaultParams(this.defaultParams),setTimeout((function(){e.getInsightList(),e.isWatchEnabled=!0}),500)}};const g=(0,n(14486).A)(y,i,[],!1,null,null,null).exports},53274:(e,t,n)=>{"use strict";var i=n(10142).forEach,s=n(17871)("forEach");e.exports=s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},26698:(e,t,n)=>{"use strict";var i=n(83291),s=n(53274);i({target:"Array",proto:!0,forced:[].forEach!==s},{forEach:s})},56613:(e,t,n)=>{"use strict";var i=n(38135),s=n(42399),a=n(91701),r=n(53274),o=n(97362),l=function(e){if(e&&e.forEach!==r)try{o(e,"forEach",r)}catch(t){e.forEach=r}};for(var c in s)s[c]&&l(i[c]&&i[c].prototype);l(a)}}]);