PageSourceSearch

https://ogor.ro/js/532.f8df59b5.js

js ogor.ro collected 2026-10-02 12:40:18 UTC 3,050 bytes, 2 lines download raw bytes

1"use strict";(globalThis["webpackChunkogor"]=globalThis["webpackChunkogor"]||[]).push([[532],{532:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("form",{attrs:{method:"patch"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t.error?e("p",{staticClass:"todo-warning mb-1"},[t._v(t._s(t.error))]):t._e(),e("p",{directives:[{name:"translate",rawName:"v-translate"}],staticClass:"mb-1"},[t._v("The cost of the work is used to calculate the estimated profit for a specific crop. The cost can be adjusted at any time.")]),e("div",{staticClass:"cost-input mb-1"},[e("label",{directives:[{name:"translate",rawName:"v-translate"}],attrs:{for:"sale_price"}},[t._v("Sale price")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.sale_price,expression:"sale_price"}],attrs:{id:"sale_price",name:"sale_price",type:"number",step:"0.01"},domProps:{value:t.sale_price},on:{input:function(e){e.target.composing||(t.sale_price=e.target.value)}}}),e("span",[t._v("lei/t")])]),e("div",{staticClass:"cost-input mb-2"},[e("label",{directives:[{name:"translate",rawName:"v-translate"}],attrs:{for:"target_yield"}},[t._v("Target yield")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.target_yield,expression:"target_yield"}],attrs:{id:"target_yield",name:"target_yield",type:"number",step:"0.01"},domProps:{value:t.target_yield},on:{input:function(e){e.target.composing||(t.target_yield=e.target.value)}}}),e("span",[t._v("t/ha")])]),e("hr",{staticClass:"dashed"}),e("div",{staticClass:"cost-input mb-2"},[e("label",{directives:[{name:"translate",rawName:"v-translate"}]},[t._v("Income")]),e("output",{staticClass:"tnum",attrs:{for:"sale_price target_yield"}},[t._v(t._s(t.income.toFixed(2)))]),e("span",[t._v("lei")])]),e("output"),e("button",{directives:[{name:"translate",rawName:"v-translate"}],staticClass:"brand-green-button full-width"},[t._v("Submit")])])},s=[],i=a(8517),n=a(5289),l=a(2543),o=function(t,e,a,r){function s(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function n(t){try{o(r.next(t))}catch(e){i(e)}}function l(t){try{o(r["throw"](t))}catch(e){i(e)}}function o(t){t.done?a(t.value):s(t.value).then(n,l)}o((r=r.apply(t,e||[])).next())}))};const c=n.lD.extend({props:{plan:{type:Object,required:!0}},data(){return{error:null,sale_price:this.plan.sale_price,target_yield:this.plan.target_yield}},computed:{income(){return(0,l.round)(this.sale_price*this.target_yield*this.plan.total_area,2)}},methods:{onSubmit(t){return o(this,void 0,void 0,(function*(){const e=new FormData(t.target);try{const{farm:t,season:a,id:r}=this.$props.plan,{target_yield:s,sale_price:n}=yield(0,i.Yt)(t,a,r,e);this.$props.plan.target_yield=s,this.$props.plan.sale_price=n,this.$dialog.close()}catch(a){console.log(a),this.error=this.$gettext("You gotta use numbers.")}}))}}}),p=c;var u=a(1656),d=(0,u.A)(p,r,s,!1,null,null,null);const m=d.exports}}]);
2//# sourceMappingURL=532.f8df59b5.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.