"use strict";var f=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var R=Object.getPrototypeOf;var b=Object.prototype.hasOwnProperty;var p=(s,t)=>a(s,"name",{value:t,configurable:true});var v=(s,t)=>{for(var e in t)a(s,e,{get:t[e],enumerable:true})};var c=(s,t,e,o)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let r of g(t))if(!b.call(s,r)&&r!==e)a(s,r,{get:()=>t[r],enumerable:!(o=m(t,r))||o.enumerable})}return s};var x=(s,t,e)=>(e=s!=null?f(R(s)):{},c(t||!s||!s.__esModule?a(e,"default",{value:s,enumerable:true}):e,s));var D=s=>c(a({},"__esModule",{value:true}),s);var h=(s,t,e,o)=>{var r=o>1?void 0:o?m(t,e):t;for(var i=s.length-1,n;i>=0;i--)if(n=s[i])r=(o?n(t,e,r):n(r))||r;if(o&&r)a(t,e,r);return r};var F={};v(F,{CommunityRecipesStore:()=>u});module.exports=D(F);var y=require("mobx");var l=x(require("../utils/FeatureStore"));const d=require("../../preload-safe-debug")("Ferdium:feature:communityRecipes:store");class u extends l.default{stores;actions;start(t,e){d("start");this.stores=t;this.actions=e}stop(){d("stop");super.stop()}get communityRecipes(){if(!this.stores)return[];return this.stores.recipePreviews.dev.map(t=>{t.isDevRecipe=!!t.author.some(e=>e.email===this.stores.user.data.email);return t})}}p(u,"CommunityRecipesStore");h([y.computed],u.prototype,"communityRecipes",1);
