1(function(e){function t(t){for(var n,i,r=t[0],c=t[1],l=t[2],_=0,p=[];_<r.length;_++)i=r[_],Object.prototype.hasOwnProperty.call(s,i)&&s[i]&&p.push(s[i][0]),s[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);u&&u(t);while(p.length)p.shift()();return o.push.apply(o,l||[]),a()}function a(){for(var e,t=0;t<o.length;t++){for(var a=o[t],n=!0,r=1;r<a.length;r++){var c=a[r];0!==s[c]&&(n=!1)}n&&(o.splice(t--,1),e=i(i.s=a[0]))}return e}var n={},s={app:0},o=[];function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=n,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],c=r.push.bind(r);r.push=t,r=r.slice();for(var l=0;l<r.length;l++)t(r[l]);var u=c;o.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";a("85ec")},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mx_s_and_p_app"}},[0!==e.companies_data.length?n("SearchBar",{on:{search:e.setSearchRequest}}):e._e(),0!==e.companies_data.length?n("ListOfCompanies",{attrs:{companies:e.data_to_display,columns:e.columns}}):e._e(),e.loading?n("img",{staticClass:"mx-loading-image",attrs:{src:a("cf1c"),alt:""}}):e._e()],1)},o=[],i=(a("4160"),a("c975"),a("b0c0"),a("159b"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"list"},[a("table",{staticClass:"table"},[a("thead",[a("tr",[e.display_column("Symbol")?a("th",{attrs:{scope:"col"}},[e._v("Symbol")]):e._e(),e.display_column("Name")?a("th",{attrs:{scope:"col"}},[e._v("Name")]):e._e(),e.display_column("Price")?a("th",{attrs:{scope:"col"}},[e._v("Price")]):e._e(),e.display_column("Sector")?a("th",{attrs:{scope:"col"}},[e._v("Sector")]):e._e(),e.display_column("52 Week High")?a("th",{attrs:{scope:"col"}},[e._v("52 Week High")]):e._e(),e.display_column("52 Week Low")?a("th",{attrs:{scope:"col"}},[e._v("52 Week Low")]):e._e(),e.display_column("Dividend Yield")?a("th",{attrs:{scope:"col"}},[e._v("Dividend Yield")]):e._e(),e.display_column("EBITDA")?a("th",{attrs:{scope:"col"}},[e._v("EBITDA")]):e._e(),e.display_column("Earnings/Share")?a("th",{attrs:{scope:"col"}},[e._v("Earnings/Share")]):e._e(),e.display_column("Market Cap")?a("th",{attrs:{scope:"col"}},[e._v("Market Cap")]):e._e(),e.display_column("Price/Book")?a("th",{attrs:{scope:"col"}},[e._v("Price/Book")]):e._e(),e.display_column("Price/Earnings")?a("th",{attrs:{scope:"col"}},[e._v("Price/Earnings")]):e._e(),e.display_column("Price/Sales")?a("th",{attrs:{scope:"col"}},[e._v("Price/Sales")]):e._e(),e.display_column("SEC Filings")?a("th",{attrs:{scope:"col"}},[e._v("SEC Filings")]):e._e()])]),a("tbody",e._l(e.companies,(function(t){return a("tr",{key:t.Symbol},[e.display_column("Symbol")?a("td",[e._v(e._s(t.Symbol))]):e._e(),e.display_column("Name")?a("td",[e._v(e._s(t.Name))]):e._e(),e.display_column("Price")?a("td",[e._v(e._s(t.Price))]):e._e(),e.display_column("Sector")?a("td",[e._v(e._s(t.Sector))]):e._e(),e.display_column("52 Week High")?a("td",[e._v(e._s(t["52 Week High"]))]):e._e(),e.display_column("52 Week Low")?a("td",[e._v(e._s(t["52 Week Low"]))]):e._e(),e.display_column("Dividend Yield")?a("td",[e._v(e._s(t["Dividend Yield"]))]):e._e(
1),e.display_column("EBITDA")?a("td",[e._v(e._s(t.EBITDA))]):e._e(),e.display_column("Earnings/Share")?a("td",[e._v(e._s(t["Earnings/Share"]))]):e._e(),e.display_column("Market Cap")?a("td",[e._v(e._s(t["Market Cap"]))]):e._e(),e.display_column("Price/Book")?a("td",[e._v(e._s(t["Price/Book"]))]):e._e(),e.display_column("Price/Earnings")?a("td",[e._v(e._s(t["Price/Earnings"]))]):e._e(),e.display_column("Price/Sales")?a("td",[e._v(e._s(t["Price/Sales"]))]):e._e(),e.display_column("SEC Filings")?a("td",[a("a",{attrs:{href:t["SEC Filings"]}},[e._v("More info...")])]):e._e()])})),0)])])}),r=[],c=(a("caad"),a("2532"),{name:"ListOfCompanies",props:{companies:Array,columns:Array},methods:{display_column:function(e){return!!this.columns.includes(e)}}}),l=c,u=a("2877"),_=Object(u["a"])(l,i,r,!1,null,"40bb23e4",null),p=_.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"search-bar"},[a("form",[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"search_bar"}},[e._v("Search By Company Name")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.search_bar,expression:"search_bar"}],staticClass:"form-control",attrs:{type:"text",id:"search_bar"},domProps:{value:e.search_bar},on:{input:function(t){t.target.composing||(e.search_bar=t.target.value)}}})])])])},m=[],h={name:"SearchBar",data:function(){return{search_bar:null,set_timeout:null}},watch:{search_bar:function(){var e=this;clearTimeout(this.set_timeout),this.set_timeout=setTimeout((function(){e.$emit("search",e.search_bar)}),1e3)}}},f=h,v=Object(u["a"])(f,d,m,!1,null,"79ed4081",null),y=v.exports,g=a("bc3a"),b={name:"App",components:{ListOfCompanies:p,SearchBar:y},data:function(){return{store_path:"https://pkgstore.datahub.io/core/s-and-p-500-companies-financials/3/datapackage.json",store_name:"constituents-financials_json",sNp500Data:null,sNp500Path:null,companies_data:[],store_type:"constituents-financials_json",data_to_display:[],loading:!0,columns:[]}},methods:{columnsList:function(){"undefined"===typeof mxsapc_option_columns?this.columns=["Symbol","Name","Price","Sector","52 Week High","52 Week Low","Dividend Yield","EBITDA","Earnings/Share","Market Cap","Price/Book","Price/Earnings","Price/Sales","SEC Filings"]:this.columns=mxsapc_option_columns},setSearchRequest:function(e){var t=this;this.data_to_display=[],this.loading=!0,this.companies_data.forEach((function(a){var n=e.toLowerCase(),s=a.Name.toLowerCase();-1!==s.indexOf(n)&&t.data_to_display.push(a)})),setTimeout((function(){t.loading=!1}),500)},getDada:function(){var e=this;g.get(e.store_path).then((function(t){e.sNp500Data=t.data.resources}))}},watch:{companies_data:function(){this.companies_data&&(this.data_to_display=this.companies_data)},sNp500Data:function(){var e=this;this.sNp500Data&&this.sNp500Data.forEach((function(t){t.name===e.store_type&&(e.sNp500Path=t.path)}))},sNp500Path:function(){var e=this;this.sNp500Path&&g.get(e.sNp500Path).then((function(t){e.companies_data=t.data,e.loading=!1}))}},mounted:function(){this.getDada(),this.columnsList()}},S=b,P=(a("034f"),Object(u["a"])(S,s,o,!1,null,null,null)),k=P.exports;n["a"].config.productionTip=!1,new n["a"]({render:function(e){return e(k)}}).$mount("#mx_s_and_p_app")},"85ec":function(e,t,a){},cf1c:function(e,t,a){e.exports=mxsapc_data_obj_front.plugin_url + "includes/frontend/assets/img/loading.2abbc077.gif"}}); 2//# sourceMappingURL=app.ddaa44e9.js.map
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.