PageSourceSearch

https://ogor.ro/js/ogorCompare.694a6765.js

js ogor.ro collected 2026-10-02 12:39:57 UTC 22,922 bytes, 2 lines download raw bytes

1"use strict";(globalThis["webpackChunkogor"]=globalThis["webpackChunkogor"]||[]).push([[587],{800:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"compare-split"},[t("div",{staticClass:"compare-side-tools discrete-scroll"},[t("div",{staticClass:"page-header"},[t("sidebar-opener")],1),t("router-link",{staticClass:"go-back body-uppercase",attrs:{to:e.backLink}},[t("span",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")]),t("span",{directives:[{name:"translate",rawName:"v-translate"}]},[e._v("Back")])]),t("div",{staticClass:"change-season side-padding"},[t("div",{directives:[{name:"translate",rawName:"v-translate"}]},[e._v("Compare observations")]),t("season-picker",{attrs:{"all-seasons":!0}})],1),t("div",{staticClass:"date-picker"},[t("div",{staticClass:"available-dates multiple discrete-scroll"},e._l(e.groupedDates,(function(s){return t("div",{key:s.month,staticClass:"month"},[t("div",{staticClass:"month-name"},[e._v(e._s(s.month))]),t("div",{staticClass:"date-group"},e._l(s.objects,(function(s){return t("div",{key:s.key,staticClass:"date-number",class:{selected:s.selected},on:{click:function(t){return e.toggleDate(s)}}},[e._v(" "+e._s(s.sensing_date.toLocaleDateString(e.$language.current,{day:"numeric"}))+" ")])})),0)])})),0)])],1),e.dataReady?t("div",{staticClass:"compare-side"},[e.sortedParcels.length>0?t("table",{key:"horizontal-compare",staticClass:"horizontal-compare",attrs:{id:"compare-parcels-table"}},[t("thead",[t("tr",e._l(e.sortedParcels,(function(s){return t("th",{key:s.id,staticClass:"rounded-top"},[t("div",{staticClass:"parcel-details"},[t("router-link",{attrs:{to:s.routeTo}},[t("div",[t("div",{staticClass:"parcel-name large"},[e._v(e._s(s.name))]),t("div",{staticClass:"small muted"},[e._v(e._s(e.formatFloat(s.hectares,1))+" ha")])])]),t("div",{staticClass:"gray-button icon roundest remove-from-selected",on:{click:function(t){return e.removeFromSelected(s)}}},[t("span",{staticClass:"material-icons"},[e._v("close")])])],1),t("div",{staticClass:"parcel-crops"},[t("div",{staticClass:"side-thing"}),t("div",{staticClass:"crop-list small"},[t("div",[e._v(e._s(s.parcelCrop))])])])])})),0)]),t("tbody",[e._l(e.shownRasters,(function({row:s,key:a}){return t("tr",{key:a,attrs:{id:`row-${a}`}},e._l(s,(function(s){return t("td",{key:s.uniqueKey},[t("router-link",{key:s.uniqueKey,staticClass:"observation-thumbnail",attrs:{to:s.routeTo,draggable:"false"}},[t("div",[t("observation",{attrs:{parcel:s,"show-crop":!1,"show-name":!1,"show-area":!1,"show-no-data":!0,"zoom-level":14,light:"","scale-to-zoom-level":e.getParcelVariableZoomLevel(s,14),"show-magnification":!0}})],1)])],1)})),0)})),e.sortedParcels.length>0&&e.shownRasters.length<=0?t("tr",{key:"no-observation-selected"},[t("td",{staticClass:"false-cell",attrs:{colspan:"10"}},[t("div",{directives:[{name:"translate",rawName:"v-translate"}],staticClass:"no-observation-selected large"},[e._v("Please choose some observation dates to compare.")])])]):e._e()],2)]):e._e(),0===e.sortedParcels.length?t("router-link",{directives:[{name:"translate",rawName:"v-translate"}],staticClass:"no-parcels-selected large",attrs:{to:e.backLink}},[e._v(" No parcels selected. Please go back and selected parcels to compare. ")]):e._e()],1):e._e()])},r=[],i=(s(3725),s(5019),s(1339),s(9838),s(9229),s(5889)),o=s(9288),l=s(9364),n=s(9442),c=s(5289),d=s(4820),u=function(e,t,s,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,s,o):r(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o},h=function(e,t,s,a){function r(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,i){function o(e){try{n(a.next(e))}catch(t){i(t)}}function l(e){try{n(a["throw"](e))}catch(t){i(t)}}function n(e){e.done?s(e.value):r(e.value).then(o,l)}n((a=a.apply(e,t||[])).next())}))};const p=(0,n.cn)(["rasterKind","selectedDate","currentFarm","currentFarmId","currentSeasonId","selectedRasters","availableDates"]);let m=class extends((0,c.vE)(c.Y5,p)){constructor(){super(...arguments),Object.defineProperty(this,"dataReady",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"selectedDates",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"oldSelectedDates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"rasterDates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"groupedDates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"selectedParcels",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"shownRasters",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parcelHistory",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"getParcelVariableZoomLevel",{enumerable:!0,configurable:!0,writable:!0,value:n.FK})}get backLink(){return(0,n.oV)(this.$route.query.backToMap,!1)?{name:"map-date-selected",params:{farmId:this.currentFarmId,seasonId:this.currentSeasonId,date:(0,n.Yq)(this.selectedDate)}}:{name:"grid-date-selected",params:{farmId:this.currentFarmId,date:(0,n.Yq)(this.selectedDate)}}}get sortedParcels(){return Object.values(this.selectedParcels).sort(((e,t)=>e.locality===t.locality?e.id>t.id?1:-1:e.locality>t.locality?1:-1))}lnaguageChanged(){this.updateParcelCrops()}selectedRastersChanged(){this.updateSelectedParcels(),this.updateParcelCrops(),this.loadRasters().then((()=>{this.groupDates(),this.guessNewSeasonDates(),this.updateShownRasters(),this.initTooltips(),this.updateCurrentRoute(),this.loadParcelHistory()}))}currentSeasonIdChnaged(e){this.oldSelectedDates=this.rasterDates.filter((e=>e.selected)),this.selectedDates=new Set,this.$store.commit("setSelectedRasters",this.sortedParcels.filter((t=>this.parcelHistory[t.id]&&this.parcelHistory[t.id][e])).map((t=>this.parcelHistory[t.id][e]))),this.$nextTick((()=>{const e=this.$el.querySelector(".horizontal-compare");e&&e.scrollIntoView({block:"start",behavior:"smooth"})}))}created(){this.selectedDates=new Set([(0,n.Yq)(this.selectedDate)]),this.$store.commit("setRastersSelectable",!1),this.$store.commit("clearAllSelectedParcels"),this.syncParcelsAndRoute
1().then((()=>{this.updateSelectedParcels(),this.updateParcelCrops(),this.loadRasters().then((()=>{this.groupDates(),this.updateShownRasters(),this.dataReady=!0,this.initTooltips(),this.scrollDatePickerToSelected("smooth"),this.loadParcelHistory()}))}))}removeFromSelected(e){this.$store.commit("removeSelectedRaster",e)}updateSelectedParcels(){const e={};Object.values(this.selectedRasters).forEach((t=>{if(this.selectedParcels[t.id])return void(e[t.id]=this.selectedParcels[t.id]);const s=Object.assign(Object.assign({},t),{parcelCrop:null,rasters:{},rastersLoaded:!1,routeTo:{name:"parcel-history",params:{farmId:this.currentFarmId,seasonId:this.currentSeasonId,parcelId:t.id}}});t.rasters&&Array.isArray(t.rasters)&&t.rasters.forEach((e=>s.rasters[e.sensing_date]=e)),e[t.id]=s})),this.selectedParcels=e}updateParcelCrops(){Object.values(this.sortedParcels).forEach((e=>{e.parcelCrop=this.getParcelCropName(e)}))}loadRasters(){return h(this,void 0,void 0,(function*(){yield Promise.all(this.sortedParcels.filter((e=>!e.rastersLoaded)).map((e=>this.$store.dispatch("getRastersForParcel",{farmId:this.currentFarmId,seasonId:this.currentSeasonId,parcelId:e.id}).then((t=>{t.forEach((t=>{e.rasters[t.sensing_date]=t})),e.rastersLoaded=!0})))));const e=new Set([(0,n.Yq)(this.selectedDate)]);Object.values(this.selectedParcels).forEach((t=>{Object.keys(t.rasters).forEach((t=>e.add(t)))})),this.rasterDates=Array.from(e).map((e=>({key:e,sensing_date:(0,n._U)(e),selected:this.selectedDates.has(e)})))}))}groupDates(){this.groupedDates=(0,n.vf)(this.rasterDates,"sensing_date",this.$language.current)}guessNewSeasonDates(){!this.oldSelectedDates||this.oldSelectedDates.length<=0||(this.rasterDates.forEach((e=>{this.oldSelectedDates.some((t=>t.sensing_date.getMonth()===e.sensing_date.getMonth()&&t.sensing_date.getDate()===e.sensing_date.getDate()))&&(e.selected=!0,this.selectedDates.add(e.key))})),this.oldSelectedDates=[])}updateShownRasters(){const e=[];Array.from(this.selectedDates).forEach((t=>{const s=[],a=(0,n._U)(t);this.sortedParcels.forEach((e=>{const r=e.rasters[t];s.push({id:e.id,locality:e.locality,reference:e.reference,svg_url:e.svg_url,bbox:e.bbox,rasters:r?[r]:[],sensing_date:a,uniqueKey:e.id+"-"+t,routeTo:{name:"map-observation-details",params:{seasonId:this.currentFarmId,farmId:this.currentFarmId,parcelId:e.id,date:t}}})})),e.push({row:s,key:t,date:a})})),this.shownRasters=e.sort(((e,t)=>t.date-e.date))}loadParcelHistory(){return h(this,void 0,void 0,(function*(){yield Promise.all(this.sortedParcels.filter((e=>!this.parcelHistory[e.id])).map((e=>this.$store.dispatch("getParcelHistory",e).then((t=>{Object.values(t).forEach((e=>this.parcelHistory[e.id]=t)),this.parcelHistory[e.id]=t})))))}))}toggleDate(e){e.selected?(e.selected=!1,this.selectedDates.delete(e.key)):(e.selected=!0,this.selectedDates.add(e.key)),this.updateShownRasters(),this.initTooltips(),this.scrollRowIntoView(e.key,"smooth"),this.updateCurrentRoute()}syncParcelsAndRoute(){return h(this,void 0,void 0,(function*(){if(this.$route.query.date&&(this.selectedDates=new Set(Array.isArray(this.$route.query.date)?this.$route.query.date:[this.$route.query.date])),this.$route.query.parcel){const e=Array.isArray(this.$route.query.parcel)?this.$route.query.parcel:[this.$route.query.parcel],t=e.filter((e=>!!this.selectedRasters[e])).map((e=>this.selectedRasters[e]));yield Promise.all(e.filter((e=>!this.selectedRasters[e])).map((e=>this.$store.dispatch("getParcelDetails",e).then((e=>t.push(e)))))),this.$store.commit("setSelectedRasters",t)}this.$route.query.date||this.$route.query.parcel||this.updateCurrentRoute()}))}updateCurrentRoute(){this.$router.replace({name:this.$route.name,params:Object.assign({},this.$route.params),query:{rasterKind:this.rasterKind,parcel:Object.values(this.selectedRasters).map((e=>e.id)),date:Array.from(this.selectedDates),backToMap:""+(0,n.oV)(this.$route.query.backToMap,!1)}})}scrollRowIntoView(e,t="auto"){this.$nextTick((()=>{const s=this.$el.querySelector(`#row-${e}`);s&&s.scrollIntoView({behavior:t,block:"center"})}))}scrollDatePickerToSelected(e="auto"){this.$nextTick((()=>{const t=this.$el.querySelector(".date-number.selected");t&&t.scrollIntoView({behavior:e,block:"center"})}))}};
1u([(0,d.ox)("$language.current")],m.prototype,"lnaguageChanged",null),u([(0,d.ox)("selectedRasters")],m.prototype,"selectedRastersChanged",null),u([(0,d.ox)("currentSeasonId")],m.prototype,"currentSeasonIdChnaged",null),m=u([(0,c.uA)({name:"CompareParcels",components:{Observation:l.A,SidebarOpener:o.A,SeasonPicker:i.A},head:{title(){if(this.currentFarm)return{inner:`${this.$gettext("Compare parcels")} | ${this.getFarmName(this.currentFarm)}`}}}})],m);const b=m,g=b;var v=s(1656),y=(0,v.A)(g,a,r,!1,null,"341ff936",null);const f=y.exports},1018:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"compare-split"},[t("div",{staticClass:"compare-side-tools discrete-scroll"},[e.userHasAccessToFarm?t("div",{staticClass:"page-header"},[t("sidebar-opener")],1):e._e(),e.userHasAccessToFarm?t("router-link",{staticClass:"go-back body-uppercase",attrs:{to:e.backLink}},[t("span",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")]),t("span",{directives:[{name:"translate",rawName:"v-translate"}]},[e._v("Back")])]):e._e(),t("div",{staticClass:"change-season side-padding"},[t("div",{directives:[{name:"translate",rawName:"v-translate"}]},[e._v("Compare observations")]),e.userHasAccessToFarm?t("season-picker"):e._e()],1),t("div",{staticClass:"about-field side-padding"},[t("div",{directives:[{name:"translate",rawName:"v-translate"}],staticClass:"paragraph-bold"},[e._v("Parcel")]),t("router-link",{staticClass:"large parcel-title",attrs:{to:e.backLink}},[t("span",[e._v(" "+e._s(e.selectedParcel.name)+" ")])]),t("div",{staticClass:"small muted"},[e._v(e._s(e.formatFloat(e.selectedParcel.hectares,1))+" ha")]),t("div",{staticClass:"parcel-crops"},[t("div",{staticClass:"side-thing"}),t("div",{staticClass:"crop-list small"},[t("div",[e._v(e._s(e.parcelCrop))])])])],1),t("div",{staticClass:"date-picker"},[e.rasterList.length>0?t("div",{key:"available-dates",staticClass:"available-dates multiple discrete-scroll"},e._l(e.groupedRasters,(function(s){return t("div",{key:s.month},[t("div",{staticClass:"month-name"},[e._v(e._s(s.month))]),t("div",{staticClass:"date-group"},e._l(s.objects,(function(s){return t("div",{key:s.id,staticClass:"date-number",class:{selected:!!e.selectedRasters[s.uniqueKey]},on:{click:function(t){return e.toggleRaster(s)}}},[e._v(" "+e._s(s.sensing_date.toLocaleDateString(e.$language.current,{day:"numeric"}))+" ")])})),0)])})),0):e._e(),e.rasterList.length<=0?t("div",{directives:[{name:"translate",rawName:"v-translate"}],key:"no-observation-available",staticClass:"side-padding no-observation-available paragraph"},[e._v(" No observations for this season yet. ")]):e._e()])],1),t("div",{staticClass:"compare-side"},[e.selectedRastersCount>0?t("div",{key:"compare-grid",staticClass:"compare-grid"},e._l(e.sortedRasters,(function(s){return t("router-link",{key:s.uniqueKey,staticClass:"observation-thumbnail",attrs:{id:`raster-${s.uniqueKey}`,to:s.routeTo,draggable:"false"}},[t("div",[t("observation",{attrs:{parcel:s,"show-crop":!1,"show-name":!1,"show-area":!1,"can-be-removed":!0,"scale-to-zoom-level":e.getParcelVariableZoomLevel(s),"show-magnification":!1,"select-mode":"raster",light:""}})],1)])})),1):e._e(),e.selectedRastersCount<=0?t("div",{directives:[{name:"translate",rawName:"v-translate"}],key:"no-observation-selected",staticClass:"no-observation-selected large"},[e._v(" Please choose some observation dates to compare. ")]):e._e()])])},r=[],i=(s(1339),s(3725),s(9838),s(9229),s(9442)),o=s(9288),l=s(9364),n=s(5889),c=s(5289),d=s(4820),u=function(e,t,s,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,s,o):r(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o},h=function(e,t,s,a){function r(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,i){function o(e){try{n(a.next(e))}catch(t){i(t)}}function l(e){try{n(a["throw"](e))}catch(t){i(t)}}function n(e){e.done?s(e.value):r(e.value).then(o,l)}n((a=a.apply(e,t||[])).next())}))};const p=(0,i.cn)(["userHasAccessToFarm","allCrops","seasons","rasterKind","selectedRasters","selectedRastersCount","currentFarm","currentFarmId","currentSeason","currentSeasonId","selectedParcel","selectedParcelId","selectedParcelHistory"]);let m=class extends((0,c.vE)(c.Y5,p)){constructor(){super(...arguments),Object.defineProperty(this,"oldSelectedDates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"rastersByDate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rasterList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"groupedRasters",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parcelBBoxSize",{enumerable:!0,configurable:!0,writable:!0,value:i.O1}),Object.defineProperty(this,"getParcelVariableZoomLevel",{enumerable:!0,configurable:!0,writable:!0,value:i.FK})}get sortedRasters(){return Object.values(this.selectedRasters).sort(((e,t)=>(0,i.AC)(t.sensing_date,e.sensing_date)))}get backLink(){return{name:"parcel-history",params:{farmId:this.currentFarmId,seasonId:this.currentSeasonId,parcelId:this.selectedParcelId}}}get parcelCrop(){return this.getParcelCropName(this.selectedParcel)}languageChanged(){this.groupRasters()}selectedRastersChanged(){this.updateCurrentRoute()}selectedParcelIdChanged(){this.oldSelectedDates=Object.values(this.selectedRasters).map((e=>e.sensing_date)),this.$store.commit("clearSelected"),this.loadRasters().then((()=>
1{this.guessNewSeasonDates(),this.syncRastersAndRoute(),this.groupRasters(),this.scrollDatePickerToSelected("smooth"),this.initTooltips()}))}created(){this.$store.commit("setRastersSelectable",!1),this.$store.commit("clearAllSelectedParcels"),this.loadRasters().then((()=>{this.syncRastersAndRoute(),this.groupRasters(),this.scrollDatePickerToSelected("smooth"),this.initTooltips()}))}scrollDatePickerToSelected(e="auto"){this.$nextTick((()=>{const t=this.$el.querySelector(".date-number.selected");t&&t.scrollIntoView({behavior:e,block:"center"})}))}scrollObservationIntoView(e,t="auto"){this.$nextTick((()=>{const s=this.$el.querySelector(`#raster-${e}`);s&&s.scrollIntoView({behavior:t,block:"center"})}))}syncRastersAndRoute(){if(this.$route.query.date){const e=Array.isArray(this.$route.query.date)?this.$route.query.date:[this.$route.query.date];e.forEach((e=>{this.rastersByDate[e]&&this.addSelectedRaster(this.rastersByDate[e])}))}this.updateCurrentRoute()}updateCurrentRoute(){this.$router.replace({name:this.$route.name,params:Object.assign({},this.$route.params),query:{rasterKind:this.rasterKind,date:Object.values(this.selectedRasters).map((e=>(0,i.Yq)(e.sensing_date)))}})}toggleRaster(e){this.selectedRasters[e.uniqueKey]?(console.log("remove",e.uniqueKey),this.$store.commit("removeSelectedRaster",{uniqueKey:e.uniqueKey})):(this.addSelectedRaster(e),this.scrollObservationIntoView(e.uniqueKey,"smooth")),this.initTooltips(),this.updateCurrentRoute()}addSelectedRaster(e){this.$store.commit("addSelectedRaster",Object.assign(Object.assign({},this.selectedParcel),{uniqueKey:e.uniqueKey,rasters:[Object.assign({},e)],sensing_date:e.sensing_date,routeTo:{name:"map-observation-details",params:{farmId:this.currentFarmId,parcelId:this.selectedParcelId,seasonId:this.currentSeasonId,date:(0,i.Yq)(e.sensing_date)}}}))}loadRasters(){return h(this,void 0,void 0,(function*(){this.rastersByDate={},this.rasterList=(yield this.$store.dispatch("getRastersForCurrentParcel")).map((e=>{const t=this.selectedParcelId+"-"+e.id,s=Object.assign(Object.assign({},e),{uniqueKey:t,sensing_date:(0,i._U)(e.sensing_date)});return this.rastersByDate[e.sensing_date]=s,s})).sort(((e,t)=>(0,i.AC)(t.sensing_date,e.sensing_date)))}))}groupRasters(){this.groupedRasters=(0,i.vf)(this.rasterList,"sensing_date",this.$language.current)}guessNewSeasonDates(){!this.oldSelectedDates||this.oldSelectedDates.length<=0||this.rasterList.forEach((e=>{this.oldSelectedDates.some((t=>t.getMonth()===e.sensing_date.getMonth()&&t.getDate()===e.sensing_date.getDate()))&&this.addSelectedRaster(e)}))}};u([(0,d.ox)("$language.current")],m.prototype,"languageChanged",null),u([(0,d.ox)("selectedRasters")],m.prototype,"selectedRastersChanged",null),u([(0,d.ox)("selectedParcelId")],m.prototype,"selectedParcelIdChanged",null),m=u([(0,c.uA)({name:"CompareObservations",components:{SeasonPicker:n.A,Observation:l.A,SidebarOpener:o.A},head:{title(){if(this.currentFarm)return{inner:`${this.$gettext("Compare observations")} | ${this.getFarmName(this.currentFarm)}`}}}})],m);const b=m,g=b;var v=s(1656),y=(0,v.A)(g,a,r,!1,null,"55210834",null);const f=y.exports},5889:(e,t,s)=>{s.d(t,{A:()=>g});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.currentSeason?t("multi-select",{staticClass:"season-select",attrs:{value:e.currentSeason,options:e.availableSeasons,clearable:!1,searchable:!1,disabled:e.disabled,label:e.getSeasonLabel,theme:"minimal"},on:{input:e.changeSeason}}):e._e()},r=[],i=(s(1339),s(9442)),o=s(5208),l=s(5289),n=function(e,t,s,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,s,o):r(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o};const c=(0,i.g_)({allSeasons:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}}),d=(0,i.cn)(["currentSeason","seasons","selectedParcelHistory"]);let u=class extends((0,l.vE)(l.Y5,c,d)){get availableSeasons(){const e=this.allSeasons?Object.values(this.seasons):Object.keys(this.selectedParcelHistory).map((e=>this.seasons[e]));return e.sort(((e,t)=>(0,i.AC)(t.start_date,e.start_date)))}getSeasonLabel(e){return`${this.$gettext("Season")} ${e.interval}`}changeSeason(e){const t=this.selectedParcelHistory[e.id];if((0,i.i5)(this.$route.params,"seasonId")){const s={name:this.$route.name,params:Object.assign({},this.$route.params),query:Object.assign({},this.$route.query)};s.params.seasonId=e.id,t&&(0,i.i5)(this.$route.params,"parcelId")&&(s.params.parcelId=t.id),this.$router.push(s)}else this.$store.dispatch("setDateFromSeason",e),t&&this.$store.dispatch("setCurrentParcel",t.id)}};u=n([(0,l.uA)({name:"SeasonPicker",components:{MultiSelect:o.A}})],u);const h=u,p=h;var m=s(1656),b=(0,m.A)(p,a,r,!1,null,"43eb66dd",null);const g=b.exports},9288:(e,t,s)=>{s.d(t,{A:()=>g});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"sidebarHolder",staticClass:"sidebar-holder"},[t("div",{staticClass:"sidebar-opener",class:{"bordered-sidebar":!e.compact},on:{click:e.showSidebar}},[t("i",{staticClass:"material-icons hamburger-icon",attrs:{title:e.appVersion}},[e._v(" menu ")]),!e.compact&&e.displayName?t("div",{staticClass:"current-farm",attrs:{title:e.appVersion}}
1,[e._v(" "+e._s(e.displayName)+" ")]):e._e()])])},r=[],i=(s(3725),s(2598),s(8119)),o=s(5289),l=s(9442),n=function(e,t,s,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,s,o):r(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o};const c=(0,l.g_)({compact:{type:Boolean,default:!1,required:!1}}),d=(0,l.cn)(["currentFarm","user","farmsWithSeasons"]);let u=class extends((0,o.vE)(o.Y5,c,d)){constructor(){super(...arguments),Object.defineProperty(this,"appVersion",{enumerable:!0,configurable:!0,writable:!0,value:i.KJ.VUE_APP_VERSION})}get displayName(){const e=this.$route.matched.find((e=>e.meta.displayName));return e?e.meta.displayName(this):this.getFarmName(this.currentFarm)}showSidebar(){this.$store.commit("setShowAppSidebar",!0)}};u=n([(0,o.uA)({name:"SidebarOpener"})],u);const h=u,p=h;var m=s(1656),b=(0,m.A)(p,a,r,!1,null,"33b387b8",null);const g=b.exports}}]);
2//# sourceMappingURL=ogorCompare.694a6765.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.