/*! Version: dev-undefined (undefined) */(function(){var e={9070:function(e,t){"use strict";t.a=void 0;var a=function(){function e(e,t){this.currentLang=e,this.translations=t,this.phrases=[]}return e.prototype.t=function(e){return this.phrases.includes(e)||this.phrases.push(e),"undefined"!==typeof this.translations[this.currentLang]&&"undefined"!==typeof this.translations[this.currentLang][e]?this.translations[this.currentLang][e]:e},e}();t.a=a},3803:function(e,t,a){"use strict";var i=a(2551),n=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"none"},style:"display: block;",attrs:{id:"engine-calculator-app"}},[t("div",{staticClass:"print-hide"},[t("form",{attrs:{id:e.formId}},[t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th"),t("th",[e._v(e._s(e.i18n.t("Aktualny silnik")))]),t("th",[e._v(e._s(e.i18n.t("Efektywny silnik")))])])]),t("tbody",[t("tr",[t("td",[e._v(e._s(e.i18n.t("Moc wyjściowa silnika (kW)")))]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.sourceEngine.outputPower,expression:"inputData.sourceEngine.outputPower"}],staticClass:"form-control",attrs:{id:e.scopedId("se-output-power-")},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.sourceEngine,"outputPower",t.target.multiple?a:a[0])},function(t){e.inputData.efficientEngine.outputPower=e.inputData.sourceEngine.outputPower}]}},e._l(e.powers,(function(a,i){return t("option",{key:i,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.efficientEngine.outputPower,expression:"inputData.efficientEngine.outputPower"}],staticClass:"form-control",attrs:{id:e.scopedId("ee-output-power-"),disabled:""},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.efficientEngine,"outputPower",t.target.multiple?a:a[0])}}},e._l(e.powers,(function(a,i){return t("option",{key:i,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Bieguny silnika")))]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.sourceEngine.poles,expression:"inputData.sourceEngine.poles"}],staticClass:"form-control",attrs:{id:e.scopedId("se-poles-")},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.sourceEngine,"poles",t.target.multiple?a:a[0])},function(t){e.inputData.efficientEngine.poles=e.inputData.sourceEngine.poles}]}},e._l(e.poles,(function(a,i){return t("option",{key:i,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.efficientEngine.poles,expression:"inputData.efficientEngine.poles"}],staticClass:"form-control",attrs:{id:e.scopedId("ee-poles-"),disabled:""},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.efficientEngine,"poles",t.target.multiple?a:a[0])}}},e._l(e.poles,(function(a,i){return t("option",{key:i,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Klasa wydajności")))]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.sourceEngine.yieldClass,expression:"inputData.sourceEngine.yieldClass"}],staticClass:"form-control",attrs:{id:e.scopedId("se-yield-class-")},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.sourceEngine,"yieldClass",t.target.multiple?a:a[0])}}},[e._l(e.yieldClasses,(function(a,i){return["IE4"!==a.value?t("option",{key:i,attrs:{disabled:a.value>=e.inputData.efficientEngine.yieldClass},domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")]):e._e()]}))],2)]),t("td",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.inputData.efficientEngine.yieldClass,expression:"inputData.efficientEngine.yieldClass"}],staticClass:"form-control",attrs:{id:e.scopedId("ee-yield-class-")},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.inputData.efficientEngine,"yieldClass",t.target.multiple?a:a[0])}}},[e._l(e.yieldClasses,(function(a,i){return["IE1"!==a.value?t("option",{key:i,attrs:{disabled:a.value<=e.inputData.sourceEngine.yieldClass},domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")]):e._e()]}))],2)])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Ile dni w roku pracuje (d)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputData.days,expression:"inputData.days"}],staticClass:"form-control",attrs:{id:e.scopedId("days-"),type:"number",min:"1",max:"365",step:"1"},domProps:{value:e.inputData.days},on:{change:e.numberInputChange,input:function(t){t.target.composing||e.$set(e.inputData,"days",t.target.value)}}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Ile godzin dziennie pracuje (h)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputData.hours,expression:"inputData.hours"}],staticClass:"form-control",attrs:{id:e.scopedId("hours-"),type:"number",min:"1",max:"24",step:"1"},domProps:{value:e.inputData.hours},on:{change:e.numberInputChange,input:function(t){t.target.composing||e.$set(e.inputData,"hours",t.target.value)}}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Cena jednostkowa energii elektrycznej (PLN/kWh)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputData.electricUnitPrice,expression:"inputData.electricUnitPrice"}],staticClass:"form-control",attrs:{id:e.scopedId("electric-unit-price-"),type:"number",min:"0.01",step:"0.01"},domProps:{value:e.inputData.electricUnitPrice},on:{change:e.numberInputChange,input:function(t){t.target.composing||e.$set(e.inputData,"electricUnitPrice",t.target.value)}}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Liczba silników (szt.)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputData.numberOfEngines,expression:"inputData.numberOfEngines"}],staticClass:"form-control",attrs:{id:e.scopedId("number-of-engines-"),type:"number",min:"1",step:"1"},domProps:{value:e.inputData.numberOfEngines},on:{change:e.numberInputChange,input:function(t){t.target.composing||e.$set(e.inputData,"numberOfEngines",t.target.value)}}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Sprawność silnika (%)")))]),t("td",[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.engineEfficiency(e.inputData.sourceEngine)}})]),t("td",[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.engineEfficiency(e.inputData.efficientEngine)}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Moc zużywana w ciągu 1 godziny (kWh)")))]),t("td",[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.sourceEngine.oneHourPowerConsumption.toFixed(2)}})]),t("td",[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.efficientEngine.oneHourPowerConsumption.toFixed(2)}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Oszczędności w ciągu 1 godziny (kWh)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.powerSaving.toFixed(2)}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Całkowity roczny czas pracy (h)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.totalWorkingTime}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Roczne całkowite oszczędności (kWh)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.totalPowerSaving.toFixed(2)}})])]),t("tr",[t("td",[e._v(e._s(e.i18n.t("Roczne całkowite oszczędności (PLN)")))]),t("td",{attrs:{colspan:"2"}},[t("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:e.calculation.totalCostSaving.toFixed(2)}})])])])]),t("button",{staticClass:"my-3 btn btn-custom-red w-100",attrs:{type:"default"},on:{click:e.addToList}},[e._v(e._s(e.i18n.t("Dodaj do listy"))+" ")])])]),e.listOfEngines.length>0?t("div",{staticClass:"engines-list"},[t("table",{staticClass:"w-100"},[t("thead",[t("tr",[t("th",{staticClass:"brr",attrs:{colspan:"4"}},[e._v(e._s(e.i18n.t("Aktualny silnik")))]),t("th",{staticClass:"brr",attrs:{colspan:"4"}},[e._v(e._s(e.i18n.t("Efektywny silnik")))]),t("th",{attrs:{rowspan:"2"}},[e._v(e._s(e.i18n.t("Cena jednostkowa energii elektrycznej (PLN/kWh)")))]),t("th",{attrs:{rowspan:"2"}},[e._v(e._s(e.i18n.t("Całkowity roczny czas pracy (h)")))]),t("th",{staticClass:"brr",attrs:{rowspan:"2"}},[e._v(e._s(e.i18n.t("Liczba silników")))]),t("th",{attrs:{rowspan:"2"}},[e._v(e._s(e.i18n.t("Roczne całkowite oszczędności (kWh)")))]),t("th",{attrs:{rowspan:"2"}},[e._v(e._s(e.i18n.t("Roczne całkowite oszczędności (PLN)")))]),t("th",{staticClass:"print-hide",attrs:{rowspan:"2"}})]),t("tr",[t("th",[e._v(e._s(e.i18n.t("Moc wyjściowa silnika (kW)")))]),t("th",[e._v(e._s(e.i18n.t("Bieguny silnika")))]),t("th",[e._v(e._s(e.i18n.t("Klasa wydajności")))]),t("th",{staticClass:"brr"},[e._v(e._s(e.i18n.t("Sprawność silnika (%)")))]),t("th",[e._v(e._s(e.i18n.t("Moc wyjściowa silnika (kW)")))]),t("th",[e._v(e._s(e.i18n.t("Bieguny silnika")))]),t("th",[e._v(e._s(e.i18n.t("Klasa wydajności")))]),t("th",{staticClass:"brr"},[e._v(e._s(e.i18n.t("Sprawność silnika (%)")))])])]),t("tbody",e._l(e.listOfEngines,(function(a,i){return t("tr",{key:i},[t("td",[e._v(e._s(e.getLabel("powers",a.inputData.sourceEngine.outputPower)))]),t("td",[e._v(e._s(e.getLabel("poles",a.inputData.sourceEngine.poles)))]),t("td",[e._v(e._s(e.getLabel("yieldClasses",a.inputData.sourceEngine.yieldClass)))]),t("td",{staticClass:"brr"},[e._v(e._s(e.engineEfficiency(a.inputData.sourceEngine)))]),t("td",[e._v(e._s(e.getLabel("powers",a.inputData.efficientEngine.outputPower)))]),t("td",[e._v(e._s(e.getLabel("poles",a.inputData.efficientEngine.poles)))]),t("td",[e._v(e._s(e.getLabel("yieldClasses",a.inputData.efficientEngine.yieldClass)))]),t("td",{staticClass:"brr"},[e._v(e._s(e.engineEfficiency(a.inputData.efficientEngine)))]),t("td",[e._v(e._s(a.inputData.electricUnitPrice))]),t("td",[e._v(e._s(a.calculation.totalWorkingTime))]),t("td",{staticClass:"brr"},[e._v(e._s(a.inputData.numberOfEngines))]),t("td",[e._v(e._s(a.calculation.totalPowerSaving.toFixed(2)))]),t("td",[e._v(e._s(a.calculation.totalCostSaving.toFixed(2)))]),t("td",{staticClass:"print-hide"},[t("button",{staticClass:"btn remove-from-list-btn",attrs:{title:"Remove from the list"},on:{click:function(t){return e.removeFromList(i)}}},[e._v("X ")])])])})),0),t("tfoot",[t("tr",[t("td",{attrs:{colspan:"11"}}),t("td",[e._v(e._s(e.listSum("totalPowerSaving").toFixed(2)))]),t("td",[e._v(e._s(e.listSum("totalCostSaving").toFixed(2)))])])])]),e.chartShow?t("GChart",{attrs:{type:"ComboChart",data:e.chart.data,options:e.chart.options}}):e._e()],1):e._e(),e.listOfEngines.length>0?t("div",{staticClass:"row print-hide my-3"},[t("div",{staticClass:"col col-6"},[t("button",{staticClass:"btn btn-custom-red w-100",attrs:{type:"default"},on:{click:e.print}},[e._v(e._s(e.i18n.t("PDF")))])]),t("div",{staticClass:"col col-6"},[t("b-modal",{attrs:{id:"form-modal",size:"xl",title:e.i18n.t("Formularz"),"hide-footer":""},on:{shown:e.lms}},[t("form",{attrs:{id:"fl2"}},[t("b-form-group",{attrs:{label:e.i18n.t("Imię i nazwisko"),"label-for":"name-input"}},[t("b-form-input",{attrs:{id:"name-input",type:"text"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),t("b-form-group",{attrs:{label:e.i18n.t("Email"),"label-for":"email-input"}},[t("b-form-input",{attrs:{id:"email-input",type:"email"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1),t("b-form-group",{attrs:{label:e.i18n.t("Numer telefonu"),"label-for":"phone-input"}},[t("b-form-input",{attrs:{id:"phone-input",type:"text"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("b-form-checkbox",{attrs:{id:"agreement-input",value:"Podając swoje dane zgadzam się z Polityką prywatności url https://eldrives.com/privacy-policy/"},model:{value:e.form.agreement,callback:function(t){e.$set(e.form,"agreement",t)},expression:"form.agreement"}},[t("p",{domProps:{innerHTML:e._s(e.translationsPhrasesHelper.agreement())}})]),t("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-xl",modifiers:{"modal-xl":!0}}],staticClass:"btn btn-custom-red w-100 my-3",attrs:{type:"default"}},[e._v(e._s(e.i18n.t("Wyślij"))+" ")])],1),t("p",{staticStyle:{"font-size":"10px"},domProps:{innerHTML:e._s(e.translationsPhrasesHelper.recaptchaInfo())}})]),t("button",{directives:[{name:"b-modal",rawName:"v-b-modal.form-modal",modifiers:{"form-modal":!0}}],staticClass:"btn btn-custom-red w-100",attrs:{type:"default"}},[e._v(e._s(e.i18n.t("Proszę o ofertę"))+" ")])],1)]):e._e()])},p=[],o=(a(2963),a(5817)),r=a.n(o),l=JSON.parse('[{"value":"2p","label":"2"},{"value":"4p","label":"4"},{"value":"6p","label":"6"},{"value":"8p","label":"8"}]'),s=JSON.parse('[{"value":"p12","label":"0,12","numberValue":0.12},{"value":"p18","label":"0,18","numberValue":0.18},{"value":"p20","label":"0,2","numberValue":0.2},{"value":"p25","label":"0,25","numberValue":0.25},{"value":"p37","label":"0,37","numberValue":0.37},{"value":"p40","label":"0,4","numberValue":0.4},{"value":"p55","label":"0,55","numberValue":0.55},{"value":"p75","label":"0,75","numberValue":0.77},{"value":"p110","label":"1,1","numberValue":1.1},{"value":"p150","label":"1,5","numberValue":1.5},{"value":"p220","label":"2,2","numberValue":2.2},{"value":"p300","label":"3","numberValue":3},{"value":"p400","label":"4","numberValue":4},{"value":"p550","label":"5,5","numberValue":5.5},{"value":"p750","label":"7,5","numberValue":7.5},{"value":"p1100","label":"11","numberValue":11},{"value":"p1500","label":"15","numberValue":15},{"value":"p1850","label":"18,5","numberValue":18.5},{"value":"p2200","label":"22","numberValue":22},{"value":"p3000","label":"30","numberValue":30},{"value":"p3700","label":"37","numberValue":37},{"value":"p4500","label":"45","numberValue":45},{"value":"p5500","label":"55","numberValue":55},{"value":"p7500","label":"75","numberValue":75},{"value":"p9000","label":"90","numberValue":90},{"value":"p11000","label":"110","numberValue":110},{"value":"p13200","label":"132","numberValue":132},{"value":"p16000","label":"160","numberValue":160},{"value":"p20000","label":"200","numberValue":200},{"value":"p25000","label":"250","numberValue":250},{"value":"p31500","label":"315","numberValue":315},{"value":"p35500","label":"355","numberValue":355},{"value":"p40000","label":"400","numberValue":400},{"value":"p45000","label":"450","numberValue":450}]'),u=a(9598),_=a(5823),E=a(9070),c=a(6293),I=JSON.parse('{"Czas":"Time","efektywny silnik":"efficient motor","aktualny silnik":"current motor","różnica":"difference","sty":"jan","lut":"feb","mar":"mar","kwi":"apr","maj":"may","cze":"jun","lip":"jul","sie":"aug","wrz":"sep","paź":"oct","lis":"nov","gru":"dec","Twoja oszczędność":"Your savings","Wartość ( PLN )":"Value (EUR)","Czas (miesiąc)":"Time (month)","Aktualny silnik":"Current motor","Efektywny silnik":"Efficient motor","Moc wyjściowa silnika (kW)":"Output power (kW)","Bieguny silnika":"Number of poles","Klasa wydajności":"Efficiency class","Ile dni w roku pracuje (d)":"Operating days per year (d)","Ile godzin dziennie pracuje (h)":"Operating hours per day (h)","Cena jednostkowa energii elektrycznej (PLN/kWh)":"Electricity price (EUR/kWh)","Liczba silników (szt.)":"Number of motors (pcs.)","Sprawność silnika (%)":"Motor efficiency (%)","Moc zużywana w ciągu 1 godziny (kWh)":"Power consumption per hour (kWh)","Oszczędności w ciągu 1 godziny (kWh)":"Savings per hour (kWh)","Całkowity roczny czas pracy (h)":"Total annual operating time (h)","Roczne całkowite oszczędności (kWh)":"Total annual savings (kWh)","Roczne całkowite oszczędności (PLN)":"Total annual savings (EUR)","Dodaj do listy":"Add to the list","Liczba silników":"Number of motors","PDF":"PDF","Formularz":"Form","Imię i nazwisko":"Firstname & lastname","Email":"Email address","Numer telefonu":"Phone number","Podając swoje dane zgadzam się z Polityką prywatności":"I agree to the Privacy Policy.","Wyślij":"Send","Ta strona korzysta z zabezpieczenia reCAPTCHA Google\\n Prywatność i\\n Warunki":"This page uses Google\'s reCAPTCHA security Privacy and Conditions","Proszę o ofertę":"Please prepare a quotation","Pole jest wymagane":"Field is required","Wprowadź proszę poprawny adres email":"Please enter a valid email address","Wprowadź proszę same cyfry":"Please enter numbers only"}'),d=null;let m=window.translationsConfig?.lang,f={en:I};void 0!==m&&null!==m||(m="pl"),d=new E.a(m,f);var g={name:"App",components:{GChart:u.PQ},data(){return{i18n:null,translationsPhrasesHelper:{recaptchaInfo(){return d.t('Ta strona korzysta z zabezpieczenia reCAPTCHA Google\n Prywatność i\n Warunki')},agreement(){return d.t('Podając swoje dane zgadzam się z Polityką prywatności')}},chart:{data:[[d.t("Czas"),d.t("efektywny silnik"),d.t("aktualny silnik"),d.t("różnica")],[d.t("sty"),0,0,0],[d.t("lut"),0,0,0],[d.t("mar"),0,0,0],[d.t("kwi"),0,0,0],[d.t("maj"),0,0,0],[d.t("cze"),0,0,0],[d.t("lip"),0,0,0],[d.t("sie"),0,0,0],[d.t("wrz"),0,0,0],[d.t("paź"),0,0,0],[d.t("lis"),0,0,0],[d.t("gru"),0,0,0]],options:{title:d.t("Twoja oszczędność"),vAxis:{title:d.t("Wartość ( PLN )")},hAxis:{title:d.t("Czas (miesiąc)")},seriesType:"bars",series:{0:{color:"#1ED200"},1:{color:"#BFBFBF"},2:{color:"#F5242A",type:"line"}},height:600,fontName:"Questrial"}},yieldClasses:[{value:"IE1",label:"IE1",order:1},{value:"IE2",label:"IE2",order:2},{value:"IE3",label:"IE3",order:3},{value:"IE4",label:"IE4",order:4}],poles:l,powers:s,efficiency:r(),inputData:{sourceEngine:{outputPower:null,poles:null,yieldClass:null},efficientEngine:{outputPower:null,poles:null,yieldClass:null},days:null,hours:null,electricUnitPrice:null,numberOfEngines:null},calculation:{sourceEngine:{oneHourPowerConsumption:0},efficientEngine:{oneHourPowerConsumption:0},powerSaving:0,totalWorkingTime:0,totalPowerSaving:0,totalCostSaving:0},listOfEngines:[],lmsTools:null,lmsLmsFormSetting:{options:{captcha:"6LdmxOEhAAAAAKDJCsmF3a7dUve3w2hP7NfDXzVO",lmsUrl:"https://lms.pit-lab.pl/lms/lead/receive",lmsForm:"643587db9a094",formSubmitCallback:e=>{if("SUCCESS"===e){this.$bvModal.hide("form-modal");let e=this.getSettingsProperty("lms-success-toast-options");null===e&&(e={title:"SUCCESS",toaster:"b-toaster-top-center",solid:!0,appendToast:!0,variant:"success"});let t=this.getSettingsProperty("lms-success-message");null===t&&(t="Pomyślnie przesłano do LMS"),this.$bvToast.toast(t,e)}else{let e=this.getSettingsProperty("lms-failure-toast-options");null===e&&(e={title:"FAILURE",toaster:"b-toaster-top-center",solid:!0,appendToast:!0,variant:"danger"});let t=this.getSettingsProperty("lms-failure-message");null===t&&(t="Wystapił błąd"),this.$bvToast.toast(t,e)}},lms:{}}},form:{},validator:null}},created(){this.calculate(),this.lmsTools=new _.LmsTools,this.i18n=d,"undefined"!==typeof testData&&(this.inputData=testData)},mounted(){this.validator=new c.ZP("#"+this.formId,{validateBeforeSubmitting:!0}),this.validator.setCurrentLocale("pl");let e=this.i18n.t("Pole jest wymagane");this.validator.addField("#"+this.scopedId("se-output-power-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("ee-output-power-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("se-poles-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("ee-poles-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("se-yield-class-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("ee-yield-class-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("days-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("hours-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("electric-unit-price-"),[{rule:"required",errorMessage:e}]),this.validator.addField("#"+this.scopedId("number-of-engines-"),[{rule:"required",errorMessage:e}])},computed:{chartShow:function(){return this.listOfEngines.length>0},isAddToListButtonActive(){return null!==this.inputData.sourceEngine.outputPower&&null!==this.inputData.sourceEngine.poles&&null!==this.inputData.sourceEngine.yieldClass&&null!==this.inputData.efficientEngine.outputPower&&null!==this.inputData.efficientEngine.poles&&null!==this.inputData.efficientEngine.yieldClass&&null!==this.inputData.days&&null!==this.inputData.hours&&null!==this.inputData.electricUnitPrice},formId(){return this.scopedId("calc-form-")}},methods:{getSettingsProperty(e){return"undefined"!==typeof window.calcSettings[e]?window.calcSettings[e]:null},scopedId(e){return e+this._uid},csvToArray(e,t="\t"){let a=e.split("\r\n").map((function(e){return e.split(t)}));return a},engineEfficiency(e){if(null===e.outputPower)return"";let t=e.yieldClass+"_"+e.poles;for(let a of r())if(a["power"]===e.outputPower)return"undefined"===typeof a[t]?"":a[t];return""},calculate(){this.calculation.sourceEngine.efficiency=this.engineEfficiency(this.inputData.sourceEngine),this.calculation.efficientEngine.efficiency=this.engineEfficiency(this.inputData.efficientEngine),this.calculation.sourceEngine.oneHourPowerConsumption=this.calculateOneHourPowerConsumption(this.inputData.sourceEngine),this.calculation.efficientEngine.oneHourPowerConsumption=this.calculateOneHourPowerConsumption(this.inputData.efficientEngine),this.calculation.powerSaving=this.calculation.sourceEngine.oneHourPowerConsumption-this.calculation.efficientEngine.oneHourPowerConsumption,this.calculation.costSaving=this.calculation.powerSaving*this.inputData.electricUnitPrice,this.calculation.totalWorkingTime=this.inputData.days*this.inputData.hours*this.inputData.numberOfEngines,this.calculation.sourceEngine.totalPowerConsumption=this.calculation.sourceEngine.oneHourPowerConsumption*this.calculation.totalWorkingTime,this.calculation.sourceEngine.totalCost=this.calculation.sourceEngine.totalPowerConsumption*this.inputData.electricUnitPrice,this.calculation.efficientEngine.totalPowerConsumption=this.calculation.efficientEngine.oneHourPowerConsumption*this.calculation.totalWorkingTime,this.calculation.efficientEngine.totalCost=this.calculation.efficientEngine.totalPowerConsumption*this.inputData.electricUnitPrice,this.calculation.totalPowerSaving=this.calculation.totalWorkingTime*this.calculation.powerSaving,this.calculation.totalCostSaving=this.calculation.totalWorkingTime*this.calculation.costSaving},calculateOneHourPowerConsumption(e){if(null===e.outputPower)return 0;let t=this.getPowerValue(e.outputPower),a=this.engineEfficiency(e);return a.length<1?0:t/parseFloat(a)*100},getPowerValue(e){for(let t of this.powers)if(t.value===e)return t.numberValue;return""},getLabel(e,t){if("undefined"===typeof this[e])return t;for(let a of this[e])if(a.value===t)return a.label;return t},async addToList(){let e=await this.validator.revalidate();e&&this.listOfEngines.push({inputData:JSON.parse(JSON.stringify(this.inputData)),calculation:JSON.parse(JSON.stringify(this.calculation))})},removeFromList(e){this.listOfEngines.splice(e,1)},generateChartData(){let e={new:this.listSum("efficientEngine","totalCost")/12,old:this.listSum("sourceEngine","totalCost")/12};for(let t=1;t<=12;t++)this.$set(this.chart.data,t,[this.chart.data[t][0],e.new*t,e.old*t,(e.old-e.new)*t])},listSum(e,t=!1){let a=0;for(let i of this.listOfEngines)a+=!1!==t?i.calculation[e][t]:i.calculation[e];return a},print(){window.print()},lms(){let e=this.lmsTools.initForm("#fl2",this.lmsLmsFormSetting.options);e.validator.addField("#email-input",[{rule:"required",errorMessage:this.i18n.t("Pole jest wymagane")},{rule:"email",errorMessage:this.i18n.t("Wprowadź proszę poprawny adres email")}]),e.validator.addField("#name-input",[{rule:"required",errorMessage:this.i18n.t("Pole jest wymagane")}]),e.validator.addField("#phone-input",[{rule:"customRegexp",value:/^\d+$/gi,errorMessage:this.i18n.t("Wprowadź proszę same cyfry")}]),e.validator.addField("#agreement-input",[{rule:"required",errorMessage:this.i18n.t("Pole jest wymagane")}]),document.addEventListener("fl2-on-submit",(e=>{console.log(e),e.detail.data["enginesList"]=this.listOfEngines,e.detail.data["totalPowerSaving"]=this.listSum("totalPowerSaving").toFixed(2),e.detail.data["totalCostSaving"]=this.listSum("totalCostSaving").toFixed(2)}))},numberInputChange(e){""!==e.target.min&&parseFloat(e.target.value)parseFloat(e.target.max)&&(e.target.value=e.target.max)}},watch:{inputData:{deep:!0,handler(){this.calculate()}},listOfEngines:{deep:!0,handler(){this.generateChartData()}}}},v=g,h=a(2177),w=(0,h.Z)(v,n,p,!1,null,null,null),b=w.exports,y=(a(7024),a(6498)),C=a(3329),P=a(6495),k=a(7169),z=a(1359);i["default"].use(y.Rt),i["default"].use(C.g),i["default"].use(P.E),i["default"].use(k.m$),i["default"].use(z.k),new i["default"](b).$mount("#app")},5817:function(e){e.exports=[{power:"p12",IE1_2p:45,IE1_4p:62,IE1_6p:38.3,IE1_8p:31,IE2_2p:53.6,IE2_4p:59.1,IE2_6p:50.6,IE2_8p:39.8,IE3_2p:60.8,IE3_4p:64.8,IE3_6p:57.7,IE3_8p:50.7,IE4_2p:66.5,IE4_4p:69.8,IE4_6p:64.9,IE4_8p:62.3},{power:"p18",IE1_2p:52.8,IE1_4p:57,IE1_6p:45.5,IE1_8p:38,IE2_2p:60.4,IE2_4p:64.7,IE2_6p:56.6,IE2_8p:45.9,IE3_2p:65.9,IE3_4p:69.9,IE3_6p:63.9,IE3_8p:58.7,IE4_2p:70.8,IE4_4p:74.7,IE4_6p:70.1,IE4_8p:67.2},{power:"p20",IE1_2p:54.6,IE1_4p:58.5,IE1_6p:47.6,IE1_8p:39.7,IE2_2p:61.9,IE2_4p:65.9,IE2_6p:58.2,IE2_8p:47.4,IE3_2p:67.2,IE3_4p:71.1,IE3_6p:65.4,IE3_8p:60.6,IE4_2p:71.9,IE4_4p:75.8,IE4_6p:71.4,IE4_8p:68.4},{power:"p25",IE1_2p:58.2,IE1_4p:61.5,IE1_6p:52.1,IE1_8p:43.4,IE2_2p:64.8,IE2_4p:68.5,IE2_6p:61.6,IE2_8p:50.6,IE3_2p:69.7,IE3_4p:73.5,IE3_6p:68.6,IE3_8p:64.1,IE4_2p:74.3,IE4_4p:77.9,IE4_6p:74.1,IE4_8p:70.8},{power:"p37",IE1_2p:63.9,IE1_4p:66,IE1_6p:59.7,IE1_8p:49.7,IE2_2p:69.5,IE2_4p:72.7,IE2_6p:67.6,IE2_8p:56.1,IE3_2p:73.8,IE3_4p:77.3,IE3_6p:73.5,IE3_8p:69.3,IE4_2p:78.1,IE4_4p:81.1,IE4_6p:78,IE4_8p:74.3},{power:"p40",IE1_2p:64.9,IE1_4p:66.8,IE1_6p:61.1,IE1_8p:50.9,IE2_2p:70.4,IE2_4p:73.5,IE2_6p:68.8,IE2_8p:57.2,IE3_2p:74.6,IE3_4p:78,IE3_6p:74.4,IE3_8p:70.1,IE4_2p:78.9,IE4_4p:81.7,IE4_6p:78.7,IE4_8p:74.9},{power:"p55",IE1_2p:69,IE1_4p:70,IE1_6p:65.8,IE1_8p:56.1,IE2_2p:74.1,IE2_4p:77.1,IE2_6p:73.1,IE2_8p:61.7,IE3_2p:77.8,IE3_4p:80.8,IE3_6p:77.2,IE3_8p:73,IE4_2p:81.5,IE4_4p:83.9,IE4_6p:80.9,IE4_8p:77},{power:"p75",IE1_2p:72.1,IE1_4p:72.1,IE1_6p:70,IE1_8p:61.2,IE2_2p:77.4,IE2_4p:79.6,IE2_6p:75.9,IE2_8p:66.2,IE3_2p:80.7,IE3_4p:82.5,IE3_6p:78.9,IE3_8p:75,IE4_2p:83.5,IE4_4p:85.7,IE4_6p:82.7,IE4_8p:78.4},{power:"p110",IE1_2p:75,IE1_4p:75,IE1_6p:72.9,IE1_8p:66.5,IE2_2p:79.6,IE2_4p:81.4,IE2_6p:78.1,IE2_8p:70.8,IE3_2p:82.7,IE3_4p:84.1,IE3_6p:81,IE3_8p:77.7,IE4_2p:85.2,IE4_4p:87.2,IE4_6p:84.5,IE4_8p:80.8},{power:"p150",IE1_2p:77.2,IE1_4p:77.2,IE1_6p:75.2,IE1_8p:70.2,IE2_2p:81.3,IE2_4p:82.8,IE2_6p:79.8,IE2_8p:74.1,IE3_2p:84.2,IE3_4p:85.3,IE3_6p:82.5,IE3_8p:79.7,IE4_2p:86.5,IE4_4p:88.2,IE4_6p:85.9,IE4_8p:82.6},{power:"p220",IE1_2p:79.7,IE1_4p:79.7,IE1_6p:77.7,IE1_8p:74.2,IE2_2p:83.2,IE2_4p:84.3,IE2_6p:81.8,IE2_8p:77.6,IE3_2p:85.9,IE3_4p:86.7,IE3_6p:84.3,IE3_8p:81.9,IE4_2p:88,IE4_4p:89.5,IE4_6p:87.4,IE4_8p:84.5},{power:"p300",IE1_2p:81.5,IE1_4p:81.5,IE1_6p:79.7,IE1_8p:77,IE2_2p:84.6,IE2_4p:85.5,IE2_6p:83.3,IE2_8p:80,IE3_2p:87.1,IE3_4p:87.7,IE3_6p:85.6,IE3_8p:83.5,IE4_2p:89.1,IE4_4p:90.4,IE4_6p:88.6,IE4_8p:85.9},{power:"p400",IE1_2p:83.1,IE1_4p:83.1,IE1_6p:81.4,IE1_8p:79.2,IE2_2p:85.8,IE2_4p:86.6,IE2_6p:84.6,IE2_8p:81.9,IE3_2p:88.1,IE3_4p:88.6,IE3_6p:86.8,IE3_8p:84.8,IE4_2p:90,IE4_4p:91.1,IE4_6p:89.5,IE4_8p:87.1},{power:"p550",IE1_2p:84.7,IE1_4p:84.7,IE1_6p:93.1,IE1_8p:81.4,IE2_2p:87,IE2_4p:87.7,IE2_6p:86,IE2_8p:83.8,IE3_2p:89.2,IE3_4p:89.6,IE3_6p:88,IE3_8p:86.2,IE4_2p:90.9,IE4_4p:91.9,IE4_6p:90.5,IE4_8p:88.3},{power:"p750",IE1_2p:86,IE1_4p:86,IE1_6p:84.7,IE1_8p:83.1,IE2_2p:88.1,IE2_4p:88.7,IE2_6p:87.2,IE2_8p:85.3,IE3_2p:90.1,IE3_4p:90.4,IE3_6p:89.1,IE3_8p:87.3,IE4_2p:91.7,IE4_4p:92.6,IE4_6p:91.3,IE4_8p:89.3},{power:"p1100",IE1_2p:87.6,IE1_4p:87.6,IE1_6p:86.4,IE1_8p:85,IE2_2p:89.4,IE2_4p:89.8,IE2_6p:88.7,IE2_8p:86.9,IE3_2p:91.2,IE3_4p:91.4,IE3_6p:90.3,IE3_8p:88.6,IE4_2p:92.6,IE4_4p:93.3,IE4_6p:92.3,IE4_8p:90.4},{power:"p1500",IE1_2p:88.7,IE1_4p:88.7,IE1_6p:87.7,IE1_8p:86.2,IE2_2p:90.3,IE2_4p:90.6,IE2_6p:89.7,IE2_8p:88,IE3_2p:91.9,IE3_4p:92.1,IE3_6p:91.2,IE3_8p:89.6,IE4_2p:93.3,IE4_4p:93.9,IE4_6p:92.9,IE4_8p:91.2},{power:"p1850",IE1_2p:89.3,IE1_4p:89.3,IE1_6p:88.6,IE1_8p:86.9,IE2_2p:90.9,IE2_4p:91.2,IE2_6p:90.4,IE2_8p:88.6,IE3_2p:92.4,IE3_4p:92.6,IE3_6p:91.7,IE3_8p:90.1,IE4_2p:93.7,IE4_4p:94.2,IE4_6p:93.4,IE4_8p:91.7},{power:"p2200",IE1_2p:89.9,IE1_4p:89.9,IE1_6p:89.2,IE1_8p:87.4,IE2_2p:91.3,IE2_4p:91.6,IE2_6p:90.9,IE2_8p:89.1,IE3_2p:92.7,IE3_4p:93,IE3_6p:92.2,IE3_8p:90.6,IE4_2p:94,IE4_4p:94.5,IE4_6p:93.7,IE4_8p:92.1},{power:"p3000",IE1_2p:90.7,IE1_4p:90.7,IE1_6p:90.2,IE1_8p:88.3,IE2_2p:92,IE2_4p:92.3,IE2_6p:91.7,IE2_8p:89.8,IE3_2p:93.3,IE3_4p:93.6,IE3_6p:92.9,IE3_8p:91.3,IE4_2p:94.5,IE4_4p:94.9,IE4_6p:94.2,IE4_8p:92.7},{power:"p3700",IE1_2p:91.2,IE1_4p:91.2,IE1_6p:90.8,IE1_8p:88.8,IE2_2p:92.5,IE2_4p:92.7,IE2_6p:92.2,IE2_8p:90.3,IE3_2p:93.7,IE3_4p:93.9,IE3_6p:93.3,IE3_8p:91.8,IE4_2p:94.8,IE4_4p:95.2,IE4_6p:94.5,IE4_8p:93.1},{power:"p4500",IE1_2p:91.7,IE1_4p:91.7,IE1_6p:91.4,IE1_8p:89.2,IE2_2p:92.9,IE2_4p:93.1,IE2_6p:92.7,IE2_8p:90.7,IE3_2p:94,IE3_4p:94.2,IE3_6p:93.7,IE3_8p:92.2,IE4_2p:95,IE4_4p:95.4,IE4_6p:94.8,IE4_8p:93.4},{power:"p5500",IE1_2p:92.1,IE1_4p:92.1,IE1_6p:91.9,IE1_8p:89.7,IE2_2p:93.2,IE2_4p:93.5,IE2_6p:93.1,IE2_8p:91,IE3_2p:94.3,IE3_4p:94.6,IE3_6p:94.1,IE3_8p:92.5,IE4_2p:95.3,IE4_4p:95.7,IE4_6p:95.1,IE4_8p:93.7},{power:"p7500",IE1_2p:92.7,IE1_4p:92.7,IE1_6p:92.6,IE1_8p:90.3,IE2_2p:93.8,IE2_4p:94,IE2_6p:93.7,IE2_8p:91.6,IE3_2p:94.7,IE3_4p:95,IE3_6p:94.6,IE3_8p:93.1,IE4_2p:95.6,IE4_4p:96,IE4_6p:95.4,IE4_8p:94.2},{power:"p9000",IE1_2p:93,IE1_4p:93,IE1_6p:92.9,IE1_8p:90.7,IE2_2p:94.1,IE2_4p:94.2,IE2_6p:94,IE2_8p:91.9,IE3_2p:95,IE3_4p:95.2,IE3_6p:94.9,IE3_8p:93.4,IE4_2p:95.8,IE4_4p:96.1,IE4_6p:95.6,IE4_8p:94.4},{power:"p11000",IE1_2p:93.3,IE1_4p:93.3,IE1_6p:93.3,IE1_8p:91.1,IE2_2p:94.3,IE2_4p:94.5,IE2_6p:94.3,IE2_8p:92.3,IE3_2p:95.2,IE3_4p:95.4,IE3_6p:95.1,IE3_8p:93.7,IE4_2p:96,IE4_4p:96.3,IE4_6p:95.8,IE4_8p:94.7},{power:"p13200",IE1_2p:93.5,IE1_4p:93.5,IE1_6p:93.5,IE1_8p:91.5,IE2_2p:94.6,IE2_4p:94.7,IE2_6p:94.6,IE2_8p:92.6,IE3_2p:95.4,IE3_4p:95.6,IE3_6p:95.4,IE3_8p:94,IE4_2p:96.2,IE4_4p:96.4,IE4_6p:96,IE4_8p:94.9},{power:"p16000",IE1_2p:93.8,IE1_4p:93.8,IE1_6p:93.8,IE1_8p:91.9,IE2_2p:94.8,IE2_4p:94.9,IE2_6p:94.8,IE2_8p:93,IE3_2p:95.6,IE3_4p:95.8,IE3_6p:95.6,IE3_8p:94.3,IE4_2p:96.3,IE4_4p:96.6,IE4_6p:96.2,IE4_8p:95.1},{power:"p20000",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.3,IE4_8p:95.4},{power:"p25000",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.5,IE4_8p:95.4},{power:"p31500",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.6,IE4_8p:95.4},{power:"p35500",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.6,IE4_8p:95.4},{power:"p40000",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.6,IE4_8p:95.4},{power:"p45000",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.6,IE4_8p:95.4},{power:"p50000-100000",IE1_2p:94,IE1_4p:94,IE1_6p:94,IE1_8p:92.5,IE2_2p:95,IE2_4p:95.1,IE2_6p:95,IE2_8p:93.5,IE3_2p:95.8,IE3_4p:96,IE3_6p:95.8,IE3_8p:94.6,IE4_2p:96.5,IE4_4p:96.7,IE4_6p:96.6,IE4_8p:95.4}]}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var p=t[i]={exports:{}};return e[i].call(p.exports,p,p.exports,a),p.exports}a.m=e,function(){var e=[];a.O=function(t,i,n,p){if(!i){var o=1/0;for(u=0;u=p)&&Object.keys(a.O).every((function(e){return a.O[e](i[l])}))?i.splice(l--,1):(r=!1,p0&&e[u-1][2]>p;u--)e[u]=e[u-1];e[u]=[i,n,p]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};a.O.j=function(t){return 0===e[t]};var t=function(t,i){var n,p,o=i[0],r=i[1],l=i[2],s=0;if(o.some((function(t){return 0!==e[t]}))){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(l)var u=l(a)}for(t&&t(i);s