{"version":3,"sources":["webpack:///./src/components/Application/SchoolSpending.vue?6466","webpack:///./src/components/Application/SchoolSpending.vue","webpack:///./src/components/Application/SchoolSpending.vue?1ff3","webpack:///./src/components/Application/SchoolSpending.vue?9a13","webpack:///./src/components/Application/SchoolSpending.vue?9a45","webpack:///./src/assets/js/line-chart.ts","webpack:///./node_modules/core-js/modules/es.iterator.find.js","webpack:///./node_modules/core-js/modules/esnext.iterator.find.js"],"names":["render","_vm","this","_c","_self","_setupProxy","schoolSpending","school","staticClass","_v","_e","directives","name","rawName","modifiers","on","$event","showInfo","_s","studentExpenditure","isNaN","numberWithCommas","_m","_l","schoolLevelSpending","dataTile","id","key","type","amount","percent","centralOfficeSpending","schoolSpendingCompare","attrs","schoolSpendingChangeOvertime","yearI","yearII","yearIII","amountI","amountII","amountIII","givenTitle","givenDescription","PieDataNaNCount","class","pielabelObj","item","index","style","pieChartColors","calcCharIndex","PieDataObj","setSpendingSideBarDetails","length","sidebarWidth","scopedSlots","_u","fn","hide","domProps","schoolNameAverage","schoolAbout","value","Number","expression","schoolNameAveragePercentage","schoolSystemAverage","schoolSystemAveragePercentage","stateAverage","stateAveragePercentage","staticRenderFns","SchoolSpending","Vue","constructor","totalSchoolAmount","totalSchoolSystemAmount","totalStateAmount","showItemDetail","dataList","LinelabelObj","LineDataObj","PieChartColors","selectedHeaderText","mounted","generatepiechart","generatelinechart","schoolSpendingByTypeBarChartData","forEach","element","error","console","log","showModal","data","find","t","spendingTypeName","undefined","String","siteExpenditureState","siteExpenditureFederal","siteExpenditureTotal","siteExpenditureTotalPercent","schoolSpendingOverTime","schoolResult","schoolSystem","stateResult","year","centralExpenditureState","centralExpenditureFederal","centralExpenditureTotal","centralExpenditureTotalPercent","Pielabels","PieData","push","spendingInstruction","spendingPupilInstructionalSupport","spendingAdministration","spendingTransportation","otherSupport","drawPieChart","Linelabels","LineDatas","label","backgroundColor","borderColor","pointStyle","pointRadius","pointHoverRadius","drawLineChart","result","mobileView","tabletView","fromCharCode","x","toString","replace","__decorate","Component","components","InfoModal","computed","mapState","metaInfo","title","component","pielabel","givenData","hasDataSet","chartDiv","document","getElementById","labels","checkDataType","useLineStyle","usePointStyle","datasets","config","options","responsive","plugins","legend","display","scales","yAxes","ticks","callback","values","xAxes","position","datalabels","align","borderRadius","font","size","formatter","context","dataIndex","myChart","Chart","$","iterate","aCallable","anObject","getIteratorDirect","target","proto","real","predicate","record","counter","stop","IS_RECORD","INTERRUPTED"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAAwB,MAAtBF,EAAIK,gBAAwC,MAAdL,EAAIM,OAAgBJ,EAAG,MAAM,CAACA,EAAG,KAAK,CAACK,YAAY,8BAA8B,CAACP,EAAIQ,GAAG,oCAAoCR,EAAIS,KAA4B,MAAtBT,EAAIK,gBAAwC,MAAdL,EAAIM,OAAgBJ,EAAG,MAAM,CAAC,CAACA,EAAG,KAAK,CAACK,YAAY,gBAAgB,CAACP,EAAIQ,GAAG,mEAAmEN,EAAG,IAAI,CAACQ,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,iCAAiCC,UAAU,CAAC,uBAAsB,KAAQN,YAAY,6EAA6EO,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,SAAS,kCAAkCd,EAAG,MAAM,CAACK,YAAY,kBAAkB,CAACL,EAAG,MAAM,CAACK,YAAY,oCAAoC,CAACP,EAAIQ,GAAG,IAAIR,EAAIiB,GAA6B,IAA1BjB,EAAIkB,mBAA2B,OAASC,OAAOnB,EAAIkB,oBAAsBlB,EAAIkB,mBAAqB,IAAMlB,EAAIoB,iBAAiBpB,EAAIkB,qBAAqB,UAAUhB,EAAG,KAAK,CAACK,YAAY,wBAAwB,CAACL,EAAG,KAAK,CAACK,YAAY,gBAAgB,CAACP,EAAIQ,GAAG,2CAA2CN,EAAG,I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H,KAENI,EAAS,CACbjI,KAAM,OACNiE,OACAiE,QAAS,CACPC,YAAY,EACZC,QAAS,CACPC,OAAQ,CACNC,SAAS,EACTV,OAAQ,CACNE,cAAc,EACdC,eAAe,IAGnBQ,OAAQ,CACNC,MAAO,CACL,CACEC,MAAO,CACLC,SAAU,SAAUxG,EAAYf,EAAYwH,GAC1C,MAAO,IAAMzG,MAKrB0G,MAAO,CACL,CACEC,SAAU,SAIhBC,WAAY,CACVR,SAAS,EACTS,MAAO,SACPC,aAAc,EACdC,KAAM,CACJC,KAAM,IAERC,UAAW,SAAUjH,EAAYkH,GAC/B,OAAIlH,EAAQ,EACHoC,OAAOmC,aAAa2C,EAAQC,UAAY,EAAI,IACzC,QAOtB,GAAI5B,EAAU,CACZ,MAAM6B,EAAU,IAAIC,OAClB9B,EACAQ,GAGF,OADAnE,QAAQC,IAAI,iBAAkBuF,EAAQxJ,IAC/BwJ,K,kCClFX,IAAIE,EAAI,EAAQ,QACZC,EAAU,EAAQ,QAClBC,EAAY,EAAQ,QACpBC,EAAW,EAAQ,QACnBC,EAAoB,EAAQ,QAIhCJ,EAAE,CAAEK,OAAQ,WAAYC,OAAO,EAAMC,MAAM,GAAQ,CACjD7F,KAAM,SAAc8F,GAClBL,EAASrL,MACToL,EAAUM,GACV,IAAIC,EAASL,EAAkBtL,MAC3B4L,EAAU,EACd,OAAOT,EAAQQ,GAAQ,SAAU/H,EAAOiI,GACtC,GAAIH,EAAU9H,EAAOgI,KAAY,OAAOC,EAAKjI,KAC5C,CAAEkI,WAAW,EAAMC,aAAa,IAAQ/D,W,kCCf/C,EAAQ","file":"js/schoolSpending.1e57febe.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SchoolSpending.vue?vue&type=style&index=0&id=d2c30bd6&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[(_vm.schoolSpending == null || _vm.school == null)?_c('div',[_c('h5',{staticClass:\"text-dark font-weight-bold\"},[_vm._v(\"There is no data to display.\")])]):_vm._e(),(_vm.schoolSpending != null && _vm.school != null)?_c('div',[[_c('h2',{staticClass:\"pb-4 d-block\"},[_vm._v(\" How much funding does this school spend annually per student? \"),_c('i',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.sidebar-Information\",modifiers:{\"sidebar-Information\":true}}],staticClass:\"fa fa-info btn btn-sm bg-doe-light-violet doe-darkest-blue p-info-btn mb-1\",on:{\"click\":function($event){return _vm.showInfo('AnnualSpendingPerStudent')}}})]),_c('div',{staticClass:\"row no-gutters\"},[_c('div',{staticClass:\"col h3 notranslate doe-dark-blue\"},[_vm._v(\" \"+_vm._s(_vm.studentExpenditure == \"\" ? \"None\" : isNaN(+_vm.studentExpenditure) ? _vm.studentExpenditure : \"$\" + _vm.numberWithCommas(_vm.studentExpenditure))+\" \")])])],_c('hr',{staticClass:\"major doe-secondary\"}),[_c('h2',{staticClass:\"pb-6 d-block\"},[_vm._v(\" Where does this school get its money? \"),_c('i',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.sidebar-Information\",modifiers:{\"sidebar-Information\":true}}],staticClass:\"fa fa-info btn btn-sm bg-doe-light-violet doe-darkest-blue p-info-btn mb-1\",on:{\"click\":function($event){return _vm.showInfo('FundingSources')}}})]),_c('h5',{staticClass:\"school-level-spending\"},[_vm._v(\"School Level Spending\")]),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table spending-table-style\"},[_vm._m(0),_vm._l((_vm.schoolLevelSpending),function(dataTile,id){return _c('tr',{key:id,staticClass:\"align-items-center alternative_cls\"},[_c('td',{staticClass:\"spending-content-font text-left align-middle font-weight-bold\"},[_vm._v(\" \"+_vm._s(dataTile.type)+\" \")]),_c('td',{staticClass:\"align-middle text-right\"},[(id !== 2)?_c('div',{staticClass:\"notranslate\"},[_vm._v(\" \"+_vm._s(dataTile.amount == \"\" ? \"None\" : isNaN(+dataTile.amount) ? dataTile.amount : \"$\" + _vm.numberWithCommas(dataTile.amount))+\" \")]):_vm._e(),(id === 2)?_c('div',{staticClass:\"font-weight-bold notranslate\"},[_vm._v(\" \"+_vm._s(dataTile.amount == \"\" ? \"None\" : isNaN(+dataTile.amount) ? dataTile.amount : \"$\" + _vm.numberWithCommas(dataTile.amount))+\" \")]):_vm._e()]),_c('td',{staticClass:\"align-middle text-right\"},[(id === 2)?_c('div',{staticClass:\"text-right font-weight-bold\"},[_vm._v(\" \"+_vm._s(dataTile.percent == \"\" ? \"None\" : isNaN(+dataTile.percent) ? dataTile.percent : dataTile.percent + \"%\")+\" \")]):_vm._e()])])})],2)]),_c('hr',{staticClass:\"major doe-secondary\"}),_c('h5',{staticClass:\"school-level-spending\"},[_vm._v(\" School Share of Central Office Spending \")]),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table spending-table-style\"},[_vm._m(1),_vm._l((_vm.centralOfficeSpending),function(dataTile,id){return _c('tr',{key:id,staticClass:\"align-items-center\"},[_c('td',{staticClass:\"spending-content-font text-left align-middle font-weight-bold\"},[_vm._v(\" \"+_vm._s(dataTile.type)+\" \")]),_c('td',{staticClass:\"align-middle text-right\"},[(id === 0 || id === 1)?_c('div',{staticClass:\"notranslate\"},[_vm._v(\" \"+_vm._s(dataTile.amount == \"\" ? \"None\" : isNaN(+dataTile.amount) ? dataTile.amount : \"$\" + _vm.numberWithCommas(dataTile.amount))+\" \")]):_vm._e(),(id === 2 || id === 3)?_c('div',{staticClass:\"font-weight-bold notranslate\"},[_vm._v(\" \"+_vm._s(dataTile.amount == \"\" ? \"None\" : isNaN(+dataTile.amount) ? dataTile.amount : \"$\" + _vm.numberWithCommas(dataTile.amount))+\" \")]):_vm._e()]),_c('td',{staticClass:\"align-middle pl-0 text-right\"},[(id === 2 || id === 3)?_c('div',{staticClass:\"text-right font-weight-bold\"},[_vm._v(\" \"+_vm._s(dataTile.percent == \"\" ? \"None\" : isNaN(+dataTile.percent) ? dataTile.percent : dataTile.percent + \"%\")+\" \")]):_vm._e()])])})],2)]),_c('hr',{staticClass:\"major doe-secondary\"})],[_c('h2',{staticClass:\"pb-4 d-block\"},[_vm._v(\" How does this school's spending compare to other schools? \"),_c('i',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.sidebar-Information\",modifiers:{\"sidebar-Information\":true}}],staticClass:\"fa fa-info btn btn-sm bg-doe-light-violet doe-darkest-blue p-info-btn mb-1\",on:{\"click\":function($event){return _vm.showInfo('SpendingComparison')}}})]),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table\"},[_vm._m(2),_vm._l((_vm.schoolSpendingCompare),function(dataTile,id){return [(dataTile.amount != '')?_c('tr',{key:id},[_c('td',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(dataTile.type))]),_c('td',{staticClass:\"text-right notranslate\"},[_vm._v(\" \"+_vm._s(isNaN(+dataTile.amount) ? dataTile.amount : \"$\" + _vm.numberWithCommas(dataTile.amount))+\" \")])]):_vm._e()]})],2)])],_c('hr',{staticClass:\"major bg-doe-secondary\"}),[_c('h2',{staticClass:\"pb-4 d-block\"},[_vm._v(\" How has the school's spending changed over time? \"),_c('i',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.sidebar-Information\",modifiers:{\"sidebar-Information\":true}}],staticClass:\"fa fa-info btn btn-sm bg-doe-light-violet doe-darkest-blue p-info-btn mb-1\",on:{\"click\":function($event){return _vm.showInfo('SpendingOverTime')}}})]),_c('canvas',{attrs:{\"id\":\"lineChart\"}}),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table\"},[_c('tr',[_c('th'),_c('th',{staticClass:\"text-right\"},[_vm._v(\" \"+_vm._s(_vm.schoolSpendingChangeOvertime[0].yearI)+\" \")]),_c('th',{staticClass:\"text-right\"},[_vm._v(\" \"+_vm._s(_vm.schoolSpendingChangeOvertime[0].yearII)+\" \")]),_c('th',{staticClass:\"text-right\"},[_vm._v(\" \"+_vm._s(_vm.schoolSpendingChangeOvertime[0].yearIII)+\" \")])]),_vm._l((_vm.schoolSpendingChangeOvertime),function(dataTile,id){return [(dataTile.type != '' && !(dataTile.amountI == '' && dataTile.amountII == '' && dataTile.amountIII == ''))?_c('tr',{key:id},[_c('td',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(dataTile.type))]),_c('td',[(dataTile.amountI)?_c('div',{staticClass:\"notranslate text-right\"},[_vm._v(\" \"+_vm._s(isNaN(+dataTile.amountI) ? dataTile.amountI : \"$\" + _vm.numberWithCommas(dataTile.amountI))+\" \")]):_vm._e()]),_c('td',[(dataTile.amountII)?_c('div',{staticClass:\"notranslate text-right\"},[_vm._v(\" \"+_vm._s(isNaN(+dataTile.amountII) ? dataTile.amountII : \"$\" + _vm.numberWithCommas(dataTile.amountII))+\" \")]):_vm._e()]),_c('td',[(dataTile.amountIII)?_c('div',{staticClass:\"notranslate text-right\"},[_vm._v(\" \"+_vm._s(isNaN(+dataTile.amountIII) ? dataTile.amountIII : \"$\" + _vm.numberWithCommas(dataTile.amountIII))+\" \")]):_vm._e()])]):_vm._e()]})],2)])],[_c('hr',{staticClass:\"major bg-doe-secondary\"}),_c('h2',{staticClass:\"d-block\"},[_vm._v(\" How did this school spend its money? \"),_c('i',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.sidebar-Information\",modifiers:{\"sidebar-Information\":true}}],staticClass:\"fa fa-info btn btn-sm bg-doe-light-violet doe-darkest-blue p-info-btn mb-1\",on:{\"click\":function($event){return _vm.showInfo('SpendingCategories')}}})]),_c('h5',{staticClass:\"pb-2\"},[_vm._v(\"Per Student Spending by Type\")]),_c('InfoModal',{attrs:{\"givenTitle\":_vm.givenTitle,\"givenDescription\":_vm.givenDescription}}),_c('div',{staticClass:\"row\"},[(_vm.PieDataNaNCount != 5)?_c('div',{staticClass:\"col-md-4 p-0\"},[_c('canvas',{attrs:{\"id\":\"pieChart\"}})]):_vm._e(),(_vm.PieDataNaNCount != 5)?_c('div',{staticClass:\"d-none d-md-block col-md-1\"}):_vm._e(),_c('div',{staticClass:\"p-0\",class:_vm.PieDataNaNCount == 5 ? 'col-12' : 'col-md-7'},[_c('div',{staticClass:\"row\"}),_vm._l((_vm.pielabelObj),function(item,index){return _c('div',{key:index,staticClass:\"row\"},[(_vm.PieDataNaNCount != 5)?_c('div',{staticClass:\"col-1 p-0 notranslate align-self-center grey-box piechart-legend\",style:(`background-color:` + _vm.pieChartColors[index])},[_vm._v(\" \"+_vm._s(_vm.calcCharIndex(index))+\" \")]):_vm._e(),_c('div',{staticClass:\"col-2 p-0 notranslate text-center align-self-center\"},[_vm._v(\" \"+_vm._s(_vm.PieDataObj[index] == \"\" || isNaN(+_vm.PieDataObj[index]) ? _vm.PieDataObj[index] : \"$\" + _vm.PieDataObj[index])+\" \")]),_c('div',{staticClass:\"col-6 p-0 align-self-center\"},[_vm._v(\" \"+_vm._s(item)+\" \")]),_c('div',{staticClass:\"col-3 p-0 d-flex justify-content-end align-self-center\"},[_c('base-view-details',{attrs:{\"sidebar-datapoint\":\"sidebar-SchoolSpending\"},on:{\"set-sidebar\":function($event){return _vm.setSpendingSideBarDetails(item)}}})],1),(index < _vm.pielabelObj.length - 1)?_c('hr',{staticClass:\"minor my-2\"}):_vm._e()])})],2)])],_c('b-sidebar',{attrs:{\"id\":\"sidebar-Information\",\"title\":\"\",\"right\":\"\",\"shadow\":\"\",\"width\":_vm.sidebarWidth,\"no-header\":true},scopedSlots:_vm._u([{key:\"footer\",fn:function({ hide }){return [_c('div',{staticClass:\"bg-doe-light-violet d-flex justify-content-end\"},[_c('button',{staticClass:\"btn btn-sm bg-doe-dark-blue-darker text-white mt-4 mb-4 mr-2\",on:{\"click\":hide}},[_c('span',{staticClass:\"fas fa-times fa-fw\"}),_vm._v(\" Close \")])])]}}],null,false,242256103)},[_c('div',{staticClass:\"text-light px-3 py-2 bg-doe-light-violet\"},[_c('h5',[_vm._v(_vm._s(_vm.givenTitle))])]),_c('div',{staticClass:\"px-3 py-2\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.givenDescription)}})])]),_c('b-sidebar',{attrs:{\"id\":\"sidebar-SchoolSpending\",\"right\":\"\",\"shadow\":\"\",\"width\":_vm.sidebarWidth,\"no-header\":true},scopedSlots:_vm._u([{key:\"footer\",fn:function({ hide }){return [_c('div',{staticClass:\"bg-doe-light-violet d-flex justify-content-end\"},[_c('button',{staticClass:\"btn btn-sm bg-doe-dark-blue-darker text-white mt-4 mb-4 mr-2\",on:{\"click\":hide}},[_c('span',{staticClass:\"fas fa-times fa-fw\"}),_vm._v(\" Close \")])])]}}],null,false,242256103)},[_c('div',{staticClass:\"text-light px-3 py-2 bg-doe-light-violet\"},[_c('h5',[_vm._v(_vm._s(_vm.givenTitle))])]),_c('div',{staticClass:\"px-3 py-2 font-weight-bold\"},[_c('p',[_vm._v(\"How did this school perform compared to the school system and state?\")])]),_c('div',[_c('b-col',{staticClass:\"p-0\"},[(_vm.schoolNameAverage !== '')?[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(_vm.school.schoolAbout.name))]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!isNaN(Number(_vm.schoolNameAverage))),expression:\"!isNaN(Number(schoolNameAverage))\"}],staticClass:\"col-4 text-right\"},[_vm._v(\" \"+_vm._s(\"$\" + _vm.schoolNameAverage)+\" \")])]),_c('div',{staticClass:\"row increasebarchartsize\"},[(isNaN(Number(_vm.schoolNameAveragePercentage)))?_c('span',{staticClass:\"pl-3\"},[_c('i',[_vm._v(_vm._s(_vm.schoolNameAveragePercentage))])]):_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar schoolbarchartcolor\",style:('width:' + _vm.schoolNameAveragePercentage + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":_vm.schoolNameAveragePercentage}}),_c('div',{staticClass:\"progress-bar progressbarLineemptybg\",style:('width:' + (100 - Number(_vm.schoolNameAveragePercentage)) + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":100 - Number(_vm.schoolNameAveragePercentage)}})])])])]:_vm._e(),(_vm.schoolSystemAverage !== '')?[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-8\"},[_vm._v(\"School System Average\")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!isNaN(Number(_vm.schoolSystemAverage))),expression:\"!isNaN(Number(schoolSystemAverage))\"}],staticClass:\"col-4 text-right\"},[_vm._v(\" \"+_vm._s(\"$\" + _vm.schoolSystemAverage)+\" \")])]),_c('div',{staticClass:\"row increasebarchartsize\"},[(isNaN(Number(_vm.schoolSystemAveragePercentage)))?_c('span',{staticClass:\"pl-3\"},[_c('i',[_vm._v(_vm._s(_vm.schoolSystemAveragePercentage))])]):_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar schoolsystembarchartcolor\",style:('width:' + _vm.schoolSystemAveragePercentage + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":_vm.schoolSystemAveragePercentage}}),_c('div',{staticClass:\"progress-bar progressbarLineemptybg\",style:('width:' + (100 - Number(_vm.schoolSystemAveragePercentage)) + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":100 - Number(_vm.schoolSystemAveragePercentage)}})])])])]:_vm._e(),(_vm.stateAverage !== '')?[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-8\"},[_vm._v(\"State Average\")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!isNaN(Number(_vm.stateAverage))),expression:\"!isNaN(Number(stateAverage))\"}],staticClass:\"col-4 text-right\"},[_vm._v(\" \"+_vm._s(\"$\" + _vm.stateAverage)+\" \")])]),_c('div',{staticClass:\"row increasebarchartsize\"},[(isNaN(Number(_vm.stateAveragePercentage)))?_c('span',{staticClass:\"pl-3\"},[_c('i',[_vm._v(_vm._s(_vm.stateAveragePercentage))])]):_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar statebarchartcolor\",style:('width:' + _vm.stateAveragePercentage + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":_vm.stateAveragePercentage}}),_c('div',{staticClass:\"progress-bar progressbarLineemptybg\",style:('width:' + (100 - Number(_vm.stateAveragePercentage)) + '%'),attrs:{\"role\":\"progressbar\",\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"aria-valuenow\":100 - Number(_vm.stateAveragePercentage)}})])])])]:_vm._e()],2)],1)])],2):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('tr',[_c('th',{staticClass:\"font-weight-normal\"},[_vm._v(\"Funding Type\")]),_c('th',{staticClass:\"font-weight-normal text-right\"},[_vm._v(\"Dollar Amount\")]),_c('th',{staticClass:\"font-weight-normal text-right\"},[_vm._v(\"% of Total\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('tr',[_c('th',{staticClass:\"font-weight-normal\"},[_vm._v(\"Funding Type\")]),_c('th',{staticClass:\"font-weight-normal text-right\"},[_vm._v(\"Dollar Amount\")]),_c('th',{staticClass:\"font-weight-normal text-right\"},[_vm._v(\"% of Total\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('tr',[_c('th'),_c('th',{staticClass:\"font-weight-normal text-right\"},[_vm._v(\"Per student spending\")])])\n}]\n\nexport { render, staticRenderFns }","\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { mapState } from \"vuex\";\r\nimport { K12School } from \"@/models/interface\";\r\nimport InfoModal from \"@/components/InfoModal.vue\";\r\nimport { drawPieChart, PieChartColors } from \"@/assets/js/pie-chart\";\r\nimport { drawLineChart } from \"@/assets/js/line-chart\";\r\n@Component({\r\n components: {\r\n InfoModal,\r\n },\r\n computed: { ...mapState(\"app\", [\"school\", \"mobileView\", \"tabletView\"]) },\r\n metaInfo: {\r\n title: \"Spending Page\",\r\n },\r\n})\r\nexport default class SchoolSpending extends Vue {\r\n givenTitle = \"\";\r\n\r\n schoolNameAverage = \"\";\r\n schoolNameAveragePercentage = \"\";\r\n totalSchoolAmount = 0;\r\n \r\n schoolSystemAverage = \"\";\r\n schoolSystemAveragePercentage = \"\";\r\n totalSchoolSystemAmount = 0;\r\n\r\n stateAverage = \"\";\r\n stateAveragePercentage = \"\";\r\n totalStateAmount = 0;\r\n \r\n givenDescription = \"\";\r\n mobileView!: boolean;\r\n tabletView!: boolean;\r\n\r\n school!: K12School;\r\n showItemDetail = false;\r\n dataList = [];\r\n public pielabelObj: string[] = [];\r\n public PieDataObj: (number | string)[] = [];\r\n PieDataNaNCount = 0;\r\n public LinelabelObj: string[] = [];\r\n public LineDataObj: number[] = [];\r\n pieChartColors = PieChartColors;\r\n selectedHeaderText = \"\";\r\n\r\n\r\n mounted() {\r\n try {\r\n this.generatepiechart();\r\n this.generatelinechart();\r\n this.schoolSpending.schoolSpendingByTypeBarChartData.forEach(\r\n (element) => {\r\n this.totalSchoolAmount = this.totalSchoolAmount + (isNaN(Number(element.schoolNameAverage)) ? 0: Number(element.schoolNameAverage));\r\n this.totalSchoolSystemAmount = this.totalSchoolSystemAmount + (isNaN(Number(element.schoolSystemAverage)) ? 0: Number(element.schoolSystemAverage));\r\n this.totalStateAmount = this.totalStateAmount + (isNaN(Number(element.stateAverage)) ? 0: Number(element.stateAverage));\r\n }\r\n );\r\n // eslint-disable-next-line no-empty\r\n } catch (error) {}\r\n }\r\n\r\n get schoolSpending() {\r\n console.log(this.school.schoolSpending);\r\n return this.school && this.school.schoolSpending;\r\n }\r\n get studentExpenditure() {\r\n return (\r\n this.school &&\r\n this.school.schoolSpending &&\r\n this.school.schoolSpending.studentExpenditure\r\n );\r\n }\r\n\r\n showInfo(showModal: string) {\r\n switch (showModal) {\r\n case \"AnnualSpendingPerStudent\":\r\n (this.givenTitle = \"Annual Spending Per Student\"),\r\n (this.givenDescription =\r\n \"The average amount of money spent on each student enrolled at a school. It reflects the amount of money a school receives, as well as the needs of its student population. Visit the “Breakdown by Student Groups” section for more information on the characteristics of students enrolled in this school.\");\r\n break;\r\n case \"FundingSources\":\r\n (this.givenTitle = \"Funding Sources\"),\r\n (this.givenDescription =\r\n \"
A school budget comprises money from various sources, including money from the local school system, the state and the federal government.
\" +\r\n \"
School Level Spending
\" +\r\n \"
School level spending are dollars spent specifically to benefit students at the school. These include items such as staff salaries and benefits, supplies, furniture, and utilities.
\" +\r\n \"
School Share of Central Office Spending
\" +\r\n \"
School system-level expenses are dollars spent for the benefit of all students in a school system. These include items such as transportation, central office operations, technology operations, maintenance, and property insurance.
\" +\r\n \"
State/Local Funds
\" +\r\n \"
This refers to dollars spent from state and local funding sources, which includes taxes, state school finance formula funds, and other state grants.
\" +\r\n \"
Federal Funds
\" +\r\n \"
This refers to dollars spent from federal funding sources, such as Title programs, special education programs, Medicaid or rehabilitation programs, and other federal grants.
\");\r\n break;\r\n case \"SpendingComparison\":\r\n (this.givenTitle = \"Spending Comparison\"),\r\n (this.givenDescription =\r\n \"This shows how a school’s per student spending compares to the per student spending of the school system and state.\");\r\n break;\r\n case \"SpendingOverTime\":\r\n (this.givenTitle = \"Spending Over Time\"),\r\n (this.givenDescription =\r\n \"This shows how per student spending has changed over time at the school, school system, and state levels.\");\r\n break;\r\n case \"SpendingCategories\":\r\n (this.givenTitle = \"Spending Categories\"),\r\n (this.givenDescription =\r\n \"
This shows the breakdown of per student spending by certain spending categories.
\" +\r\n \"
Instruction
\" +\r\n \"
Activities directly related to the interaction between teachers and students, including salaries, employee benefits, purchased professional and technical services, instructional materials and supplies, and instructional equipment.
\" +\r\n \"
Student and Instructional Support
\" +\r\n \"
Pupil support activities designed to assess and improve the well-being of students and to supplement the teaching process, as well as instructional staff activities associated with assisting the instructional staff with content and the process of providing learning experiences for students.
\" +\r\n \"
School Administration
\" +\r\n \"
Activities concerned with the overall administrative responsibility for a school.
\" +\r\n \"
Transportation
\" +\r\n \"
Activities concerned with conveying students to and from school, as provided by state and federal laws.
\" +\r\n \"
Other Support
\" +\r\n \"
All activities not elsewhere identified that are required to establish, operate, support, and administer a school or school system.
\");\r\n break;\r\n default:\r\n (this.givenTitle = \"\"), (this.givenDescription = \"\");\r\n break;\r\n }\r\n\r\n //this.$bvModal.show(\"informationModal\");\r\n }\r\n\r\n setSpendingSideBarDetails(showModal: string) {\r\n this.givenTitle = showModal;\r\n const data = this.schoolSpending.schoolSpendingByTypeBarChartData.find((t) => t.spendingTypeName == showModal);\r\n\r\n this.schoolNameAverage = isNaN(Number(data?.schoolNameAverage)) ? \"\": (data?.schoolNameAverage != undefined ? data?.schoolNameAverage : \"\");\r\n this.schoolNameAveragePercentage = isNaN(Number(data?.schoolNameAverage)/this.totalSchoolAmount) ? \"\": String(100 * Number(data?.schoolNameAverage)/this.totalSchoolAmount);\r\n\r\n this.schoolSystemAverage = isNaN(Number(data?.schoolSystemAverage)) ? \"\": (data?.schoolSystemAverage != undefined ? data?.schoolSystemAverage : \"\");\r\n this.schoolSystemAveragePercentage = isNaN(Number(data?.schoolSystemAverage)/this.totalSchoolSystemAmount) ? \"\": String(100 * Number(data?.schoolSystemAverage)/this.totalSchoolSystemAmount);\r\n\r\n this.stateAverage = isNaN(Number(data?.stateAverage)) ? \"\": (data?.stateAverage != undefined ? data?.stateAverage : \"\");\r\n this.stateAveragePercentage = isNaN(Number(data?.stateAverage)/this.totalStateAmount) ? \"\": String(100 * Number(data?.stateAverage)/this.totalStateAmount);\r\n }\r\n\r\n get schoolLevelSpending() {\r\n if (!this.schoolSpending) return [];\r\n return [\r\n {\r\n id: 1,\r\n type: \"State/Local\",\r\n amount: this.schoolSpending.siteExpenditureState,\r\n percent: \"\"\r\n },\r\n {\r\n id: 2,\r\n type: \"Federal\",\r\n amount: this.schoolSpending.siteExpenditureFederal,\r\n percent: \"\"\r\n },\r\n {\r\n id: 3,\r\n type: \"Total\",\r\n amount: this.schoolSpending.siteExpenditureTotal,\r\n percent: this.schoolSpending.siteExpenditureTotalPercent\r\n },\r\n ];\r\n }\r\n\r\n get schoolSpendingCompare() {\r\n if (!this.schoolSpending) return [];\r\n return [\r\n {\r\n id: 1,\r\n type: \"School\",\r\n amount: this.schoolSpending.schoolSpendingOverTime[0].schoolResult,\r\n },\r\n {\r\n id: 2,\r\n type: \"School System\",\r\n amount: this.schoolSpending.schoolSpendingOverTime[0].schoolSystem,\r\n },\r\n {\r\n id: 3,\r\n type: \"State\",\r\n amount: this.schoolSpending.schoolSpendingOverTime[0].stateResult,\r\n },\r\n ];\r\n }\r\n\r\n get schoolSpendingChangeOvertime() {\r\n if (!this.schoolSpending) return [];\r\n return [\r\n {\r\n id: 1,\r\n type: \"\",\r\n yearI: this.schoolSpending.schoolSpendingOverTime[2].year,\r\n yearII: this.schoolSpending.schoolSpendingOverTime[1].year,\r\n yearIII: this.schoolSpending.schoolSpendingOverTime[0].year,\r\n },\r\n {\r\n id: 2,\r\n type: \"School\",\r\n amountI: this.schoolSpending.schoolSpendingOverTime[2].schoolResult,\r\n amountII: this.schoolSpending.schoolSpendingOverTime[1].schoolResult,\r\n amountIII: this.schoolSpending.schoolSpendingOverTime[0].schoolResult,\r\n },\r\n {\r\n id: 3,\r\n type: \"School System\",\r\n amountI: this.schoolSpending.schoolSpendingOverTime[2].schoolSystem,\r\n amountII: this.schoolSpending.schoolSpendingOverTime[1].schoolSystem,\r\n amountIII: this.schoolSpending.schoolSpendingOverTime[0].schoolSystem,\r\n },\r\n {\r\n id: 4,\r\n type: \"State\",\r\n amountI: this.schoolSpending.schoolSpendingOverTime[2].stateResult,\r\n amountII: this.schoolSpending.schoolSpendingOverTime[1].stateResult,\r\n amountIII: this.schoolSpending.schoolSpendingOverTime[0].stateResult,\r\n },\r\n ];\r\n }\r\n\r\n get centralOfficeSpending() {\r\n if (!this.schoolSpending) return [];\r\n return [\r\n {\r\n id: 1,\r\n type: \"State/Local\",\r\n amount: this.schoolSpending.centralExpenditureState,\r\n percent: \"\"\r\n },\r\n {\r\n id: 2,\r\n type: \"Federal\",\r\n amount: this.schoolSpending.centralExpenditureFederal,\r\n percent: \"\"\r\n },\r\n {\r\n id: 3,\r\n type: \"Total\",\r\n amount: this.schoolSpending.centralExpenditureTotal,\r\n percent: this.schoolSpending.centralExpenditureTotalPercent\r\n },\r\n {\r\n id: 4,\r\n type: \"Per Student Spending\",\r\n amount: this.school.schoolSpending.studentExpenditure,\r\n percent: \"100%\"\r\n },\r\n ];\r\n }\r\n\r\n generatepiechart() {\r\n this.PieDataNaNCount = 0;\r\n const Pielabels = [] as any;\r\n const PieData = [] as any;\r\n\r\n Pielabels.push(\"Instruction\");\r\n if (\r\n this.schoolSpending.spendingInstruction == \"\" ||\r\n isNaN(+this.schoolSpending.spendingInstruction)\r\n ) {\r\n this.PieDataNaNCount++;\r\n if (this.schoolSpending.spendingInstruction == \"\") {\r\n this.PieDataObj.push(\"N/A\");\r\n } else {\r\n this.PieDataObj.push(this.schoolSpending.spendingInstruction);\r\n }\r\n } else {\r\n PieData.push(Number(this.schoolSpending.spendingInstruction));\r\n this.PieDataObj.push(Number(this.schoolSpending.spendingInstruction));\r\n }\r\n Pielabels.push(\"Student and Instructional Support\");\r\n if (\r\n this.schoolSpending.spendingPupilInstructionalSupport == \"\" ||\r\n isNaN(+this.schoolSpending.spendingPupilInstructionalSupport)\r\n ) {\r\n this.PieDataNaNCount++;\r\n if (this.schoolSpending.spendingPupilInstructionalSupport == \"\") {\r\n this.PieDataObj.push(\"N/A\");\r\n } else {\r\n this.PieDataObj.push(\r\n this.schoolSpending.spendingPupilInstructionalSupport\r\n );\r\n }\r\n } else {\r\n PieData.push(\r\n Number(this.schoolSpending.spendingPupilInstructionalSupport)\r\n );\r\n this.PieDataObj.push(\r\n Number(this.schoolSpending.spendingPupilInstructionalSupport)\r\n );\r\n }\r\n Pielabels.push(\"School Administration\");\r\n if (\r\n this.schoolSpending.spendingAdministration == \"\" ||\r\n isNaN(+this.schoolSpending.spendingAdministration)\r\n ) {\r\n this.PieDataNaNCount++;\r\n if (this.schoolSpending.spendingAdministration == \"\") {\r\n this.PieDataObj.push(\"N/A\");\r\n } else {\r\n this.PieDataObj.push(this.schoolSpending.spendingAdministration);\r\n }\r\n } else {\r\n PieData.push(Number(this.schoolSpending.spendingAdministration));\r\n this.PieDataObj.push(Number(this.schoolSpending.spendingAdministration));\r\n }\r\n Pielabels.push(\"Transportation\");\r\n if (\r\n this.schoolSpending.spendingTransportation == \"\" ||\r\n isNaN(+this.schoolSpending.spendingTransportation)\r\n ) {\r\n this.PieDataNaNCount++;\r\n if (this.schoolSpending.spendingTransportation == \"\") {\r\n this.PieDataObj.push(\"N/A\");\r\n } else {\r\n this.PieDataObj.push(this.schoolSpending.spendingTransportation);\r\n }\r\n } else {\r\n PieData.push(Number(this.schoolSpending.spendingTransportation));\r\n this.PieDataObj.push(Number(this.schoolSpending.spendingTransportation));\r\n }\r\n Pielabels.push(\"Other Support\");\r\n if (\r\n this.schoolSpending.otherSupport == \"\" ||\r\n isNaN(+this.schoolSpending.otherSupport)\r\n ) {\r\n this.PieDataNaNCount++;\r\n if (this.schoolSpending.otherSupport == \"\") {\r\n this.PieDataObj.push(\"N/A\");\r\n } else {\r\n this.PieDataObj.push(this.schoolSpending.otherSupport);\r\n }\r\n } else {\r\n PieData.push(Number(this.schoolSpending.otherSupport));\r\n this.PieDataObj.push(Number(this.schoolSpending.otherSupport));\r\n }\r\n this.pielabelObj = Pielabels;\r\n if (this.PieDataNaNCount != 5) {\r\n drawPieChart(\"pieChart\", Pielabels, PieData);\r\n }\r\n }\r\n\r\n generatelinechart() {\r\n const Linelabels: any = [];\r\n const LineDatas: any = [];\r\n const finalArr: any[] = [];\r\n Linelabels.push(this.schoolSpendingChangeOvertime[0].yearI);\r\n Linelabels.push(this.schoolSpendingChangeOvertime[0].yearII);\r\n Linelabels.push(this.schoolSpendingChangeOvertime[0].yearIII);\r\n if (\r\n !(\r\n this.schoolSpendingChangeOvertime[1].amountI == \"\" &&\r\n this.schoolSpendingChangeOvertime[1].amountII == \"\" &&\r\n this.schoolSpendingChangeOvertime[1].amountIII == \"\"\r\n )\r\n ) {\r\n LineDatas.push({\r\n label: \"School\",\r\n backgroundColor: \"#385463\",\r\n borderColor: \"#493698\",\r\n data: [\r\n this.schoolSpendingChangeOvertime[1].amountI,\r\n this.schoolSpendingChangeOvertime[1].amountII,\r\n this.schoolSpendingChangeOvertime[1].amountIII,\r\n ],\r\n pointStyle: \"triangle\",\r\n pointRadius: 7,\r\n pointHoverRadius: 10,\r\n });\r\n }\r\n\r\n if (\r\n !(\r\n this.schoolSpendingChangeOvertime[2].amountI == \"\" &&\r\n this.schoolSpendingChangeOvertime[2].amountII == \"\" &&\r\n this.schoolSpendingChangeOvertime[2].amountIII == \"\"\r\n )\r\n ) {\r\n LineDatas.push({\r\n label: \"School System\",\r\n backgroundColor: \"#20B6A6\",\r\n borderColor: \"#20B6A6\",\r\n data: [\r\n this.schoolSpendingChangeOvertime[2].amountI,\r\n this.schoolSpendingChangeOvertime[2].amountII,\r\n this.schoolSpendingChangeOvertime[2].amountIII,\r\n ],\r\n pointStyle: \"circle\",\r\n pointRadius: 7,\r\n pointHoverRadius: 10,\r\n });\r\n }\r\n if (\r\n !(\r\n this.schoolSpendingChangeOvertime[3].amountI == \"\" &&\r\n this.schoolSpendingChangeOvertime[3].amountII == \"\" &&\r\n this.schoolSpendingChangeOvertime[3].amountIII == \"\"\r\n )\r\n ) {\r\n LineDatas.push({\r\n label: \"State\",\r\n backgroundColor: \"#808080\",\r\n borderColor: \"#808080\",\r\n data: [\r\n this.schoolSpendingChangeOvertime[3].amountI,\r\n this.schoolSpendingChangeOvertime[3].amountII,\r\n this.schoolSpendingChangeOvertime[3].amountIII,\r\n ],\r\n pointStyle: \"rect\",\r\n pointRadius: 7,\r\n pointHoverRadius: 10,\r\n });\r\n }\r\n drawLineChart(\"lineChart\", Linelabels, LineDatas, true);\r\n }\r\n\r\n get sidebarWidth(): string {\r\n let result = \"\";\r\n if (this.mobileView) {\r\n result = \"100%\";\r\n } else if (this.tabletView) result = \"40%\";\r\n return result;\r\n }\r\n\r\n calcCharIndex(index: any) {\r\n return String.fromCharCode(index + 1 + 64);\r\n }\r\n numberWithCommas(x: string): string {\r\n return x.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SchoolSpending.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SchoolSpending.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SchoolSpending.vue?vue&type=template&id=d2c30bd6&scoped=true\"\nimport script from \"./SchoolSpending.vue?vue&type=script&lang=ts\"\nexport * from \"./SchoolSpending.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SchoolSpending.vue?vue&type=style&index=0&id=d2c30bd6&prod&scoped=true&lang=css\"\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 \"d2c30bd6\",\n null\n \n)\n\nexport default component.exports","import Chart, { ChartConfiguration, ChartItem } from \"chart.js/auto\";\r\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\r\n\r\nexport const drawLineChart = (\r\n id: string,\r\n pielabel: string[] | number[],\r\n givenData: number[] | string[],\r\n hasDataSet: boolean\r\n) => {\r\n const chartDiv = document.getElementById(id);\r\n const labels = pielabel;\r\n function checkDataType() {\r\n if (hasDataSet) {\r\n return givenData;\r\n } else {\r\n return [\r\n {\r\n label: \"\",\r\n backgroundColor: \"#385463\",\r\n borderColor: \"#493698\",\r\n data: givenData,\r\n useLineStyle: true,\r\n usePointStyle: true,\r\n },\r\n ];\r\n }\r\n }\r\n const data = {\r\n labels: labels,\r\n datasets: checkDataType(),\r\n };\r\n const config = {\r\n type: \"line\",\r\n data,\r\n options: {\r\n responsive: true,\r\n plugins: {\r\n legend: {\r\n display: true,\r\n labels: {\r\n useLineStyle: true,\r\n usePointStyle: true,\r\n },\r\n },\r\n scales: {\r\n yAxes: [\r\n {\r\n ticks: {\r\n callback: function (value: any, index: any, values: any) {\r\n return \"$\" + value;\r\n },\r\n },\r\n },\r\n ],\r\n xAxes: [\r\n {\r\n position: \"top\",\r\n },\r\n ],\r\n },\r\n datalabels: {\r\n display: true,\r\n align: \"center\",\r\n borderRadius: 3,\r\n font: {\r\n size: 18,\r\n },\r\n formatter: function (value: any, context: any) {\r\n if (value > 0)\r\n return String.fromCharCode(context.dataIndex + 1 + 64);\r\n else return \"\";\r\n },\r\n },\r\n },\r\n },\r\n };\r\n\r\n if (chartDiv) {\r\n const myChart = new Chart(\r\n chartDiv as ChartItem,\r\n config as ChartConfiguration\r\n );\r\n console.log(\"line chart id \", myChart.id);\r\n return myChart;\r\n }\r\n};\r\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.find` method\n// https://tc39.es/ecma262/#sec-iterator.prototype.find\n$({ target: 'Iterator', proto: true, real: true }, {\n find: function find(predicate) {\n anObject(this);\n aCallable(predicate);\n var record = getIteratorDirect(this);\n var counter = 0;\n return iterate(record, function (value, stop) {\n if (predicate(value, counter++)) return stop(value);\n }, { IS_RECORD: true, INTERRUPTED: true }).result;\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nrequire('../modules/es.iterator.find');\n"],"sourceRoot":""}