PageSourceSearch

https://www.urtegaarden.dk/js/dist/727.js?id=e5f09245a5414fda

js urtegaarden.dk collected 2026-10-02 13:22:27 UTC 2,677 bytes, 2 lines download raw bytes

1"use strict";(globalThis["webpackChunkwebsite_js"]=globalThis["webpackChunkwebsite_js"]||[]).push([[727],{20727(t,e,s){s.r(e),s.d(e,{default:()=>D});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"recipe-portions",class:{"is-dark":t.isDark}},[e("button",{attrs:{"uk-icon":"minus-circle"},on:{click:t.decrement}}),e("input",{directives:[{name:"model",rawName:"v-model.number",value:t.portions,expression:"portions",modifiers:{number:!0}}],staticClass:"uk-input",attrs:{type:"text"},domProps:{value:t.portions},on:{keypress:function(e){return t.isNumber(e)},input:function(e){e.target.composing||(t.portions=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),e("button",{attrs:{"uk-icon":"plus-circle"},on:{click:t.increment}})])},o=[],r=s(15215),i=s(78236),c=s(71886);let a=class extends c.lD{get portions(){return i.A.PORTIONS}set portions(t){t<=0&&(t=1),i.A.SET_PORTIONS(t)}increment(){this.portions+=1}decrement(){this.portions-=1}isNumber(t){const e=["0","1","2","3","4","5","6","7","8","9"],s=t.key;e.includes(s)||t.preventDefault()}};(0,r.Cg)([(0,c.kv)({default:!1})],a.prototype,"isDark",void 0),a=(0,r.Cg)([(0,c.uA)({name:"RecipePortions"})],a);const l=a,d=l;var p=s(81656),u=(0,p.A)(d,n,o,!1,null,null,null);const D=u.exports},50820(t,e,s){s.d(e,{A:()=>o});var n=s(94335);class o{constructor(t={}){this.profileId=window.CbxApiContextKey,t.profileId&&(this.profileId=t.profileId),this.endpoint=`/contextapi/${this.profileId}/v1/recipe`}async calculate(t){try{const e=await n.A.post(`${this.endpoint}/calculate`,t);return e.data}catch(e){console.log(e)}}async getAdded(){try{const t=await n.A.post(`${this.endpoint}/added`);return t.data}catch(t){console.log(t)}}async removeAdded(t){try{const e=await n.A.post(`${this.endpoint}/remove/${t}`);return e.data}catch(e){console.log(e)}}}},78236(t,e,s){s.d(e,{A:()=>a});var n=s(15215),o=s(18039),r=s(32800),i=s(50820);let c=class extends o.hw{constructor(){super(...arguments),this.service=new i.A,this.portions=1,this.added=[]}get PORTIONS(){return this.portions}get ADDED(){return this.added}SET_PORTIONS(t){this.portions=t}async GET_ADDED(){return await this.service.getAdded()}async REMOVE_ADDED(t){return await this.service.removeAdded(t)}SET_ADDED(t){this.added=t}};(0,n.Cg)([o.sM],c.prototype,"SET_PORTIONS",null),(0,n.Cg)([(0,o.rc)({commit:"SET_ADDED"})],c.prototype,"GET_ADDED",null),(0,n.Cg)([(0,o.rc)({commit:"SET_ADDED"})],c.prototype,"REMOVE_ADDED",null),(0,n.Cg)([o.sM],c.prototype,"SET_ADDED",null),c=(0,n.Cg)([(0,o.nV)({store:r.A,dynamic:!0,name:"recipe",namespaced:!0})],c);const a=(0,o.f_)(c)}}]);
2//# sourceMappingURL=727.js.map?id=e5f09245a5414fda

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.