(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[67],{"24XE":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Weight)throw new Error("Brak Weight");if("number"!==typeof t.EvData.Weight)throw new Error("Weight nie jest liczb\u0105");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if("string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");super(t)}}e.a=n},"2mrI":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.DstID)throw new Error("Brak DstID");if("string"!==typeof t.EvData.DstID)throw new Error("DstID nie jest stringiem");if(!t.EvData.SrcID&&!t.EvData.SrdID)throw new Error("Brak SrcID");if(t.EvData.SrcID&&"string"!==typeof t.EvData.SrcID)throw new Error("SrcID nie jest stringiem");if(t.EvData.SrdID&&"string"!==typeof t.EvData.SrdID)throw new Error("SrdID nie jest stringiem");super(t)}}e.a=n},"40mZ":function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},"4IUw":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(t.EvData.GrpID&&"string"!==typeof t.EvData.GrpID)throw new Error("GrpID nie jest stringiem");if(t.EvData.DstID&&"string"!==typeof t.EvData.DstID)throw new Error("DstID nie jest stringiem");if(!t.EvData.PiWeight)throw new Error("Brak PiWeight");if(!t.EvData.PiCnt)throw new Error("Brak PiCnt");if(t.EvData.PiCnt&&"number"!==typeof t.EvData.PiCnt)throw new Error("PiCnt nie jest liczb\u0105");super(t)}}e.a=n},"4czH":function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},"4pKL":function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{setInterface(t,e){this.Interfaces||(this.Interfaces=[]),this.Interfaces[t]=e}}e.a=n},"6qmP":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Medicine)throw new Error("Brak Medicine");if(t.EvData.Medicine&&"string"!==typeof t.EvData.Medicine)throw new Error("Medicine nie jest stringiem");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if(t.EvData.Reasn&&"string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");if(!t.EvData.OperID)throw new Error("Brak OperID");if(t.EvData.OperID&&"string"!==typeof t.EvData.OperID)throw new Error("OperID nie jest stringiem");if(!t.EvData.PiCnt)throw new Error("Brak Piglets");if(t.EvData.PiCnt&&"number"!==typeof t.EvData.PiCnt)throw new Error("PiCnt nie jest liczb\u0105");if(!t.EvData.TreatmentType)throw new Error("Brak TreatmentType");if(t.EvData.TreatmentType&&"number"!==typeof t.EvData.TreatmentType)throw new Error("TreatmentType nie jest liczb\u0105");if(!t.EvData.PiWeight)throw new Error("Brak Weight");if(t.EvData.PiWeight&&"number"!==typeof t.EvData.PiWeight)throw new Error("PiWeight nie jest liczb\u0105");super(t)}}e.a=n},"782r":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Nipples)throw new Error("Brak Nipples");if(t.EvData.Nipples&&"number"!==typeof t.EvData.Nipples)throw new Error("Nipples nie jest liczb\u0105");super(t)}}e.a=n},"8mSY":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.OperID)throw new Error("Brak OperId");if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Cycles)throw new Error("Brak Cycles");if(t.EvData.Cycles&&"number"!==typeof t.EvData.Cycles)throw new Error("Cycles nie jest liczb\u0105");if(!t.EvData.LastSeparation)throw new Error("Brak lastSeparation");if(t.EvData.LastSeparation&&"number"!==typeof t.EvData.LastSeparation)throw new Error("lastSeparation nie jest liczb\u0105");super(t)}}e.a=n},"Am/I":function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Treatment)throw new Error("Brak Treatment");if(t.EvData.Treatment&&!Array.isArray(t.EvData.Treatment))throw new Error("Treatment nie jest tablic\u0105");super(t)}removeDate(t,e){let r=this.EvData.Treatment[e];r.Dates=r.Dates.filter(e=>e!==t),0===r.Dates.length&&this.EvData.Treatment.splice(e,1),0===this.EvData.Treatment.length&&this.deleteEvent(),this.setDtaModTime()}}e.a=n},C07J:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},HaN6:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(void 0===t.EvData.Pregnant)throw new Error("Brak Pregnant");super(t)}}e.a=n},Jgti:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.PlcmntID)throw new Error("Brak PlcmntID");if(t.EvData.PlcmntID&&"string"!==typeof t.EvData.PlcmntID)throw new Error("PlcmntID nie jest stringiem");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if(t.EvData.Reasn&&"string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");super(t)}}e.a=n},KJb9:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(void 0===t.EvData.DeadCnt)throw new Error("Brak DeadCnt");if(void 0===t.EvData.HealthyCnt)throw new Error("Brak HealthyCnt");if(void 0===t.EvData.MummyCnt)throw new Error("Brak MummyCnt");if(void 0===t.EvData.Weight)throw new Error("Brak Weight");if("number"!==typeof t.EvData.Weight)throw new Error("Weight musi by\u0107 liczb\u0105");super(t)}}e.a=n},KRta:function(t,e,r){"use strict";var i=r("mwIZ"),n=r.n(i),a=r("Ogml");class s extends a.a{getMatsSize(){return n()(this,"Settings.MatsSize",8)}setMatSize(t=0){this.Settings||(this.Settings={}),this.Settings.MatsSize=t}}e.a=s},KVyQ:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Piglets)throw new Error("Brak Piglets");if(!t.EvData.PlcmntID)throw new Error("Brak PlcmntID");if(t.EvData.PlcmntID&&"string"!==typeof t.EvData.PlcmntID)throw new Error("PlcmntID nie jest stringiem");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if(t.EvData.Reasn&&"string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");if(!t.EvData.Weight)throw new Error("Brak Weight");super(t)}}e.a=n},LxSa:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},Q8Uc:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.PlcmntID)throw new Error("Brak PlcmntID");if(t.EvData.PlcmntID&&"string"!==typeof t.EvData.PlcmntID)throw new Error("PlcmntID nie jest stringiem");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if(t.EvData.Reasn&&"string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");if(!t.EvData.Weight)throw new Error("Brak Weight");if(t.EvData.Weight&&"number"!==typeof t.EvData.Weight)throw new Error("Weight nie jest liczb\u0105");if(!t.EvData.AnmCnt)throw new Error("Brak AnmCnt");if(t.EvData.AnmCnt&&"number"!==typeof t.EvData.AnmCnt)throw new Error("AnmCnt nie jest liczb\u0105");super(t)}}e.a=n},QX5u:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},QZ3y:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.PiCnt)throw new Error("Brak PiCnt");super(t)}}e.a=n},"R7+t":function(t,e,r){"use strict";var i=r("mwIZ"),n=r.n(i),a=r("Ogml");class s extends a.a{setTemperatureSensor(t=!1){this.Settings||(this.Settings={}),this.Settings.Temperature||(this.Settings.Temperature={}),this.Settings.Temperature.Sensor=!!t}setTemperatureIndividual(t=!0){this.Settings||(this.Settings={}),this.Settings.Temperature||(this.Settings.Temperature={}),this.Settings.Temperature.Individual=!!t}setWater(t=!1){this.Settings||(this.Settings={}),this.Settings.Water||(this.Settings.Water={}),this.Settings.Water.Enabled=!!t,!t&&this.Settings.Water.FlowMeter&&(this.Settings.Water.FlowMeter=!1)}setFlowMeter(t=!1){this.Settings||(this.Settings={}),this.Settings.Water||(this.Settings.Water={}),this.Settings.Water.FlowMeter=!!this.Settings.Water.Enabled&&!!t}hasTemperatureSensor(){return!!n()(this,"Settings.Temperature.Sensor",!1)}hasWater(){return!!n()(this,"Settings.Water.Enabled",!1)}hasFlowMeter(){return!!n()(this,"Settings.Water.FlowMeter",!1)}isIndividualTemperature(){return!!n()(this,"Settings.Temperature.Individual",!1)}}e.a=s},Svle:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},TQJ8:function(t,e,r){"use strict";var i=r("Ogml"),n=r("IBmF");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class o extends i.a{getSelectName(t=null,e=!0,r=!1){let i=super.getSelectName(t,!1,r);if(e&&null!==t)try{let e=this.Siloses[t].Alias;e&&(i+=" A: ".concat(e))}catch(n){console.error(n)}return i}_saveTareOrScale(t,e,r){let i=t[e];this.Settings.Configuration[e]||(this.Settings.Configuration[e]=new Array(8).fill(null)),this.Settings.Configuration[e][i.number-1]=function(t){for(var e=1;et.StartTime-e.StartTime),this.setDtaModTime()}endInsertion(t,e){for(let r of this.Settings.Insertions)if(r.StartTime===t){r.EndTime=e;break}this.setDtaModTime()}endStartedInsertion(t){for(let e of this.Settings.Insertions)if(!e.EndTime){e.EndTime=t;break}}hasUnfinishedInsertion(){return!!this.Settings.Insertions.find(t=>!t.EndTime)}getSelectName(t=null,e=!0,r=!1){let i=this.getLocation(t);return Object(s.i)()?"".concat(this.Name).concat(e&&this.Alias?" A: ".concat(this.Alias):""," (").concat(i.map(t=>{if(r){return o.a.getAnimalLocationsByPlcmntID(t.FarmID||t.BgID||t.SID||t.CID||t.BID).map(t=>t.name).filter(t=>t).join(", ")}return t?t.CName||t.BName||t.SName||t.FarmName||t.BoxesName:void 0}).filter(t=>t).join(", "),") S/N: ").concat(this.DevID):"".concat(this.Name,"}").concat(e&&this.Alias?" A: ".concat(this.Alias):""," (").concat(i.map(t=>{if(r){return o.a.getAnimalLocationsByPlcmntID(t.FarmID||t.BgID||t.SID||t.CID||t.BID).map(t=>t.name).filter(t=>t).join(", ")}return t?t.CName||t.BName||t.SName||t.FarmName||t.BoxesName:void 0}).filter(t=>t).join(", "),")")}}e.a=c},ZBwZ:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.BoarID)throw new Error("Brak BoarID");if("string"!==typeof t.EvData.BoarID)throw new Error("BoarID nie jest stringiem");super(t)}}e.a=n},ZXZZ:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},cuih:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Buyer)throw new Error("Brak Buyer");if(t.EvData.Buyer&&"string"!==typeof t.EvData.Buyer)throw new Error("Buyer nie jest stringiem");if(!t.EvData.Weight)throw new Error("Brak Weight");if(t.EvData.Weight&&"number"!==typeof t.EvData.Weight)throw new Error("Weight nie jest liczb\u0105");if(!t.EvData.PlcmntID)throw new Error("Brak PlcmntID");if(t.EvData.PlcmntID&&"string"!==typeof t.EvData.PlcmntID)throw new Error("PlcmntID nie jest stringiem");if(!t.EvData.AnmCnt)throw new Error("Brak AnmCnt");if(t.EvData.AnmCnt&&"number"!==typeof t.EvData.AnmCnt)throw new Error("AnmCnt nie jest liczb\u0105");if(!t.EvData.Hcw)throw new Error("Brak HCW");if(t.EvData.Hcw&&"number"!==typeof t.EvData.Hcw)throw new Error("Hcw nie jest liczb\u0105");super(t)}}e.a=n},dQyM:function(t,e,r){"use strict";var i=r("Ogml"),n=r("IBmF");class a extends i.a{makeDispenserActive(t){this.Dispensers[t].Connected=!0,this.setDtaModTime()}makeDispenserInactive(t){this.Dispensers[t].Connected=!1,this.setDtaModTime()}getSelectName(t=null,e=!0,r=!1){let i=super.getSelectName(t,!1,r);if(e&&null!==t){let e=this.Dispensers[t].Alias;e&&(i+=" A: ".concat(e))}return i}setConfiguration(t,e=!0){if(this.Settings||(this.Settings={}),this.Settings.Configuration||(this.Settings.Configuration={}),t[n.f.SET_PARAM_OUTS]){this.Settings.Configuration[n.f.SET_PARAM_OUTS]||(this.Settings.Configuration[n.f.SET_PARAM_OUTS]=[]);for(let r in t[n.f.SET_PARAM_OUTS]){let i=t[n.f.SET_PARAM_OUTS][r];this.Settings.Configuration[n.f.SET_PARAM_OUTS][i.number-1]={params:i,isSet:e,SetTime:(new Date).getTime()}}delete t[n.f.SET_PARAM_OUTS]}super.setConfiguration(t,e)}}e.a=a},dz5w:function(t,e,r){"use strict";var i=r("Ogml"),n=r("IBmF"),a=r("BvFm");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class c extends i.a{_saveAsArray(t,e,r,i=15,n=!1){let a=t[e],c=n?a.nr:a.number;this.Settings.Configuration[e]||(this.Settings.Configuration[e]=new Array(i).fill(null)),this.Settings.Configuration[e][c-1]=function(t){for(var e=1;et.StartTime),this.Settings.Insertions.push({StartTime:t,Weight:e,Amount:r}),this.setDtaModTime()}endInsertion(t,e=a.a.utc().startOf("day").toDate().getTime()){let r=this.Settings.Insertions.find(e=>e.StartTime===t&&!e.Stop);r&&(r.EndTime=e,this.setDtaModTime())}endLastInsertion(t){for(let e of this.Settings.Insertions)if(!e.EndTime){e.EndTime=t;break}}setMarker(t=1,{fluidAmount:e=0,fluidColor:r="#FFFFFF"}={}){this.Settings||(this.Settings={}),this.Settings.Marker||(this.Settings.Marker=[]),this.Settings.Marker[t-1]={Color:r,Amount:e},this.setDtaModTime()}endExpedition(t=(new Date).getTime()){if(this.Settings||(this.Settings={}),this.Settings.Expeditions||(this.Settings.Expeditions=[]),this.Settings.Expeditions.length>0){let e=this.Settings.Expeditions[this.Settings.Expeditions.length-1];e.EndDate||(e.EndDate=t)}}addExpedition(t,e,r,i,n,a){this.Settings||(this.Settings={}),this.Settings.Expeditions||(this.Settings.Expeditions=[]),this.endExpedition(),this.Settings.Expeditions.push({StartDate:t,AnimalAmount:e,MinWeight:r,MaxWeight:i,ExpeditionWorktype:n,IsNewExpedition:a}),this.Settings.Expeditions.sort((t,e)=>t.StartDate-e.StartDate),this.setDtaModTime()}getLastExpedition(){try{return this.Settings.Expeditions[this.Settings.Expeditions.length-1]}catch(t){return null}}getExpeditionList(){try{let t=[],e=null;for(let r of this.Settings.Expeditions)console.log(e),e&&(r.IsNewExpedition?(e.endDate||(e.endDate=a()(r.StartDate).subtract(1,"minute").toDate().getTime()),t.push(e),e=null):r.EndDate?e.endDate=r.EndDate:e.endDate=null),e||(e={startDate:r.StartDate,endDate:r.EndDate||null});return t.push(e),t.filter(t=>!!t)}catch(t){return[]}}}e.a=s},n2uv:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},pLLp:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},qFW1:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},tIcX:function(t,e,r){"use strict";var i=r("Ogml");class n extends i.a{}e.a=n},uvHp:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");super(t)}}e.a=n},x4fL:function(t,e,r){"use strict";var i=r("+t3Z");class n extends i.a{constructor(t){if(!t.EvData)throw new Error("Brak EvData");if(!t.EvData.Medicine)throw new Error("Brak Medicine");if(t.EvData.Medicine&&"string"!==typeof t.EvData.Medicine)throw new Error("Medicine nie jest stringiem");if(!t.EvData.Reasn)throw new Error("Brak Reasn");if(t.EvData.Reasn&&"string"!==typeof t.EvData.Reasn)throw new Error("Reasn nie jest stringiem");if(!t.EvData.Weight)throw new Error("Brak Weight");if(t.EvData.Weight&&"number"!==typeof t.EvData.Weight)throw new Error("Weight nie jest liczb\u0105");super(t)}}e.a=n}}]); //# sourceMappingURL=main~a0cfa8e3.6f5310e7.chunk.js.map