(function(e){function t(t){for(var n,i,s=t[0],c=t[1],u=t[2],d=0,p=[];d{child} al primario {parent}","merge_confirmation":"Sostituisci {source} con {target}","move_selection":"Scegli un primario {type} dove spostare {source}.","merge_selection":"Sostituisci tutte le voci di {source} con il {type} selezionato.","Root":"Radice","Ignore_Shopping":"Ignora lista della spesa","delete_confirmation":"Sei sicuro di voler eliminare {source}?","Description":"Descrizione","Icon":"Icona","Unit":"Unità","No_ID":"ID non trovato, non è possibile eliminare.","Recipe_Book":"Libro di Ricette","create_title":"Nuovo {type}","edit_title":"Modifica {type}","Name":"Nome","Recipe":"Ricetta","delete_title":"Elimina {type}","Unrated":"Senza valutazione","New_Unit":"Nuova unità di misura","move_title":"Sposta {type}","Food":"Alimento","Delete_Food":"Elimina alimento","Edit_Food":"Modifica alimento","Move_Food":"Sposta alimento","New_Food":"Nuovo alimento","Hide_Food":"Nascondi alimento","merge_title":"Unisci {type}","Key_Shift":"Maiusc","del_confirmation_tree":"Sei sicuro di voler eliminare {source} e tutti gli elementi dipendenti?","Disable_Amount":"Disabilita Quantità","Key_Ctrl":"Ctrl","No_Results":"Nessun risultato","Create_New_Shopping Category":"Crea nuova categoria di spesa","Create_New_Keyword":"Aggiungi nuova parola chiave","and_up":"& Su","step_time_minutes":"Tempo dello step in minuti","confirm_delete":"Sei sicuro di voler eliminare questo {object}?","Show_as_header":"Mostra come intestazione","Hide_as_header":"Nascondi come intestazione","Copy_template_reference":"Copia riferimento template","Save_and_View":"Salva & Mostra","Text":"Testo","Edit_Recipe":"Modifica Ricetta","Move_Up":"Sposta Sopra","Move_Down":"Sposta Sotto","Step_Name":"Nome dello Step","Step_Type":"Tipo di Step","Enable_Amount":"Abilita Quantità","Add_Step":"Aggiungi Step","Note":"Nota","Create_New_Food":"Aggiungi nuovo alimento","Make_Header":"Crea Intestazione","Make_Ingredient":"Crea Ingrediente","Create_New_Unit":"Aggiungi nuova unità","Instructions":"Istruzioni","Time":"Tempo","Shopping_Category":"Categoria di spesa","Meal_Plan_Days":"Piani alimentari futuri","tree_root":"Radice dell\'albero","Automation":"Automazione","Parameter":"Parametro","Type":"Tipo","Automate":"Automatizza","create_rule":"e crea automazione","Empty":"Vuoto","Food_Alias":"Alias Alimento","Unit_Alias":"Alias Unità","Keyword_Alias":"Alias Parola Chiave","Table_of_Contents":"Indice dei contenuti","warning_feature_beta":"Questa funzione è attualmente in BETA (non è completa). Potrebbero verificarsi delle anomalie e modifiche che in futuro potrebbero bloccare la funzionalità stessa o rimuove i dati correlati a essa.","Shopping_list":"Lista della spesa","Title":"Titolo","Create_New_Meal_Type":"Aggiungi nuovo tipo di pasto","Week":"Settimana","Month":"Mese","Year":"Anno","Planner":"Planner","Planner_Settings":"Impostazioni planner","Period":"Periodo","Plan_Period_To_Show":"Mostra settimane, mesi o anni","Plan_Show_How_Many_Periods":"Periodo da mostrare","Starting_Day":"Giorno di inizio della settimana","Meal_Types":"Tipi di pasto","Clone":"Duplica","Drag_Here_To_Delete":"Sposta qui per eliminare","Meal_Type_Required":"Il tipo di pasto è richiesto","Periods":"Periodi","Meal_Type":"Tipo di pasto","Title_or_Recipe_Required":"Sono richiesti titolo o ricetta"}')},"118a":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("tr",{on:{click:function(t){return e.$emit("checked-state-changed",e.ingredient)}}},[e.ingredient.is_header?[r("td",{attrs:{colspan:"5"}},[r("b",[e._v(e._s(e.ingredient.note))])])]:[e.detailed?r("td",{staticClass:"d-print-non"},[e.ingredient.checked?r("i",{staticClass:"far fa-check-circle text-success"}):e._e(),e.ingredient.checked?e._e():r("i",{staticClass:"far fa-check-circle text-primary"})]):e._e(),r("td",[0!==e.ingredient.amount?r("span",{domProps:{innerHTML:e._s(e.calculateAmount(e.ingredient.amount))}}):e._e()]),r("td",[null===e.ingredient.unit||e.ingredient.no_amount?e._e():r("span",[e._v(e._s(e.ingredient.unit.name))])]),r("td",[null!==e.ingredient.food?[null!==e.ingredient.food.recipe?r("a",{attrs:{href:e.resolveDjangoUrl("view_recipe",e.ingredient.food.recipe),target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.ingredient.food.name))]):e._e(),null===e.ingredient.food.recipe?r("span",[e._v(e._s(e.ingredient.food.name))]):e._e()]:e._e()],2),e.detailed?r("td",[e.ingredient.note?r("div",[r("span",{directives:[{name:"b-popover",rawName:"v-b-popover.hover",value:e.ingredient.note,expression:"ingredient.note",modifiers:{hover:!0}}],staticClass:"d-print-none touchable"},[r("i",{staticClass:"far fa-comment"})]),r("div",{staticClass:"d-none d-print-block"},[r("i",{staticClass:"far fa-comment-alt d-print-none"}),e._v(" "+e._s(e.ingredient.note)+" ")])]):e._e()]):e._e()]],2)},i=[],o=(r("a9e3"),r("fa7d")),a={name:"Ingredient",props:{ingredient:Object,ingredient_factor:{type:Number,default:1},detailed:{type:Boolean,default:!0}},mixins:[o["ResolveUrlMixin"]],data:function(){return{checked:!1}},methods:{calculateAmount:function(e){return Object(o["calculateAmount"])(e,this.ingredient_factor)}}},s=a,c=(r("f349"),r("2877")),u=Object(c["a"])(s,n,i,!1,null,"5fa7e004",null);t["a"]=u.exports},"1a35":function(e,t,r){},"1e9f":function(e,t,r){},2165:function(e){e.exports=JSON.parse('{"err_fetching_resource":"","err_creating_resource":"","err_updating_resource":"","err_deleting_resource":"","success_fetching_resource":"","success_creating_resource":"","success_updating_resource":"","success_deleting_resource":"","import_running":"","all_fields_optional":"","convert_internal":"","show_only_internal":"","Log_Recipe_Cooking":"","External_Recipe_Image":"","Add_to_Shopping":"","Add_to_Plan":"","Step_start_time":"","Sort_by_new":"","Recipes_per_page":"","Manage_Books":"","Meal_Plan":"","Select_Book":"","Recipe_Image":"","Import_finished":"","View_Recipes":"","Log_Cooking":"","New_Recipe":"","Url_Import":"","Reset_Search":"","Recently_Viewed":"","Load_More":"","Keywords":"","Books":"","Proteins":"","Fats":"","Carbohydrates":"","Calories":"","Nutrition":"","Date":"","Share":"","Export":"","Copy":"","Rating":"","Close":"","Link":"","Add":"","New":"","Success":"","Failure":"","Ingredients":"","Supermarket":"","Categories":"","Category":"","Selected":"","min":"","Servings":"","Waiting":"","Preparation":"","External":"","Size":"","Files":"","File":"","Edit":"","Cancel":"","Delete":"","Open":"","Ok":"","Save":"","Step":"","Search":"","Import":"","Print":"","Settings":"","or":"","and":"","Information":"","Download":"","Create":""}')},"2b2d":function(e,t,r){"use strict";r.r(t),r.d(t,"AutomationTypeEnum",(function(){return n})),r.d(t,"RecipeStepsTypeEnum",(function(){return i})),r.d(t,"StepTypeEnum",(function(){return o})),r.d(t,"StorageMethodEnum",(function(){return a})),r.d(t,"UserPreferenceThemeEnum",(function(){return s})),r.d(t,"UserPreferenceNavColorEnum",(function(){return c})),r.d(t,"UserPreferenceDefaultPageEnum",(function(){return u})),r.d(t,"UserPreferenceSearchStyleEnum",(function(){return d})),r.d(t,"ApiApiAxiosParamCreator",(function(){return S})),r.d(t,"ApiApiFp",(function(){return k})),r.d(t,"ApiApiFactory",(function(){return w})),r.d(t,"ApiApi",(function(){return P}));r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d"),r("ac1f"),r("5319");var n,i,o,a,s,c,u,d,p=r("9ab4"),l=r("bc3a"),h=r.n(l),f=(r("841c"),r("25f0"),r("b0c0"),"undefined"!==typeof window?localStorage.getItem("BASE_PATH")||"":location.protocol+"//"+location.host),b=function(){function e(e,t,r){void 0===t&&(t=f),void 0===r&&(r=h.a),this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}return e}(),m=function(e){function t(t,r){var n=e.call(this,r)||this;return n.field=t,n.name="RequiredError",n}return Object(p["c"])(t,e),t}(Error),g="https://example.com",v=function(e,t,r){if(null===r||void 0===r)throw new m(t,"Required parameter "+t+" was null or undefined when calling "+e+".")},j=function(e){for(var t=[],r=1;r1?r("recipe-card",{key:e.display_recipes[0].recipe,attrs:{recipe:e.display_recipes[0].recipe_content}}):e._e()],1)],1),r("div",{staticClass:"col-md-5"},[r("transition",{attrs:{name:"flip",mode:"out-in"}},[1===e.current_page?r("cookbook-toc",{attrs:{recipes:e.recipes},on:{switchRecipe:function(t){return e.switchRecipe(t)}}}):e._e()],1),r("transition",{attrs:{name:"flip",mode:"out-in"}},[e.current_page>1&&2===e.display_recipes.length?r("recipe-card",{key:e.display_recipes[1].recipe,attrs:{recipe:e.display_recipes[1].recipe_content}}):e._e()],1)],1),r("div",{staticClass:"col-md-1",staticStyle:{cursor:"pointer"},on:{click:e.swipeLeft}})])])},u=[],d=(r("fb6a"),r("159b"),r("6b0a")),p=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{directives:[{name:"hover",rawName:"v-hover"}],attrs:{"no-body":""}},[r("b-card-header",{staticClass:"p-4"},[r("h5",[e._v(e._s(e.book_copy.icon)+" "+e._s(e.book_copy.name)+" "),r("span",{staticClass:"float-right text-primary",on:{click:e.editOrSave}},[r("i",{staticClass:"fa",class:{"fa-pen":!e.editing,"fa-save":e.editing},attrs:{"aria-hidden":"true"}})])]),e._l(e.book_copy.shared,(function(t){return r("b-badge",{key:t.id,staticClass:"font-weight-normal mr-1",attrs:{variant:"primary",pill:""}},[e._v(e._s(t.username))])}))],2),r("b-card-body",{staticClass:"p-4"},[e.editing?r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"inputName1"}},[e._v(e._s(e.$t("Name")))]),r("input",{directives:[{name:"model",rawName:"v-model",value:e.book_copy.name,expression:"book_copy.name"}],staticClass:"form-control",attrs:{id:"inputName1",placeholder:"Name"},domProps:{value:e.book_copy.name},on:{input:function(t){t.target.composing||e.$set(e.book_copy,"name",t.target.value)}}})]):e._e(),e.editing?r("div",{staticClass:"form-group"},[r("emoji-input",{attrs:{field:"icon",label:e.$t("Icon"),value:e.book_copy.icon}})],1):e._e(),e.editing?r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"inputDesc1"}},[e._v(e._s(e.$t("Description")))]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.book_copy.description,expression:"book_copy.description"}],staticClass:"form-control",attrs:{id:"inputDesc1",rows:"3"},domProps:{value:e.book_copy.description},on:{input:function(t){t.target.composing||e.$set(e.book_copy,"description",t.target.value)}}})]):e._e(),e.editing?r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"inputDesc1"}},[e._v(e._s(e.$t("Share")))]),r("generic-multiselect",{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{parent_variable:"book.shared",initial_selection:e.book.shared,label:"username",model:e.Models.USER_NAME,placeholder:e.$t("Share"),limit:50},on:{change:function(t){e.book_copy.shared=t.val}}})],1):e._e(),e.editing?r("button",{staticClass:"btn btn-danger",on:{click:e.deleteBook}},[e._v(e._s(e.$t("Delete")))]):e._e(),e.editing?r("button",{staticClass:"btn btn-primary float-right",on:{click:e.editOrSave}},[e._v(e._s(e.$t("Save")))]):e._e(),e.editing?e._e():r("b-card-text",{staticStyle:{"text-overflow":"ellipsis"}},[e._v(" "+e._s(e.book_copy.description)+" ")])],1)],1)},l=[],h=r("fa7d"),f=r("b05e"),b=r("7432"),m={name:"CookbookEditCard",components:{EmojiInput:f["a"],GenericMultiselect:b["a"]},mixins:[h["ApiMixin"]],props:{book:Object},data:function(){return{editing:!1,book_copy:{},users:[]}},mounted:function(){this.book_copy=this.book,this.$root.$on("change",this.updateEmoji)},directives:{hover:{inserted:function(e){e.addEventListener("mouseenter",(function(){e.classList.add("shadow")})),e.addEventListener("mouseleave",(function(){e.classList.remove("shadow")}))}}},methods:{editOrSave:function(){this.editing?(this.editing=!1,this.saveData(),this.$emit("editing",!1)):(this.editing=!0,this.$emit("editing",!0))},updateEmoji:function(e,t){"icon"===e&&(this.book_copy.icon=t)},saveData:function(){var e=new s["ApiApiFactory"];e.updateRecipeBook(this.book_copy.id,this.book_copy).then((function(e){h["StandardToasts"].makeStandardToast(h["StandardToasts"].SUCCESS_UPDATE)})).catch((function(e){h["StandardToasts"].makeStandardToast(h["StandardToasts"].FAIL_UPDATE)}))},refreshData:function(){var e=this,t=new s["ApiApiFactory"];t.listUsers().then((function(t){e.users=t.data}))},deleteBook:function(){var e=this;if(confirm(this.$t("delete_confirmation",{source:this.book.name}))){var t=new s["ApiApiFactory"];t.destroyRecipeBook(this.book.id).then((function(t){e.$emit("refresh"),h["StandardToasts"].makeStandardToast(h["StandardToasts"].SUCCESS_DELETE)})).catch((function(e){h["StandardToasts"].makeStandardToast(h["StandardToasts"].FAIL_DELETE)}))}}}},g=m,v=r("2877"),j=Object(v["a"])(g,p,l,!1,null,"02662cc6",null),O=j.exports,y=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{directives:[{name:"hover",rawName:"v-hover"}],attrs:{"no-body":""}},[r("b-card-header",{staticClass:"p-4"},[r("h5",[e._v(e._s(e.$t("Table_of_Contents")))])]),r("b-card-body",{staticClass:"p-4"},[r("ol",{staticClass:"mb-1",staticStyle:{"max-height":"60vh","overflow-y":"auto","-webkit-overflow-scrolling":"touch"}},e._l(e.recipes,(function(t,n){return r("li",{key:n,on:{click:function(t){return e.$emit("switchRecipe",n)}}},[r("a",{attrs:{href:"#"}},[e._v(e._s(t.recipe_content.name)+" "),r("recipe-rating",{attrs:{recipe:t}})],1)])})),0),0===e.recipes.length?r("b-card-text",[e._v(" "+e._s(e.$t("Empty"))+" ")]):e._e()],1)],1)},_=[],S=r("ca5b"),k={name:"CookbookToc",components:{RecipeRating:S["a"]},props:{recipes:Array},directives:{hover:{inserted:function(e){e.addEventListener("mouseenter",(function(){e.classList.add("shadow")})),e.addEventListener("mouseleave",(function(){e.classList.remove("shadow")}))}}}},w=k,P=Object(v["a"])(w,y,_,!1,null,"42ec751f",null),C=P.exports,R=r("0086"),U=r.n(R);n["default"].use(U.a);var E={name:"CookbookSlider.vue",components:{CookbookToc:C,CookbookEditCard:O,RecipeCard:d["default"]},props:{recipes:Array,book:Object},computed:{page_count_pagination:function(){return this.recipes.length+2},page_count:function(){return Math.ceil(this.page_count_pagination/this.per_page_count)}},data:function(){return{display_recipes:[],current_page:1,per_page_count:2,bounce_left:!1,bounce_right:!1,cookbook_editing:!1}},methods:{pageChange:function(e){this.current_page=e,this.display_recipes=this.recipes.slice(2*(this.current_page-1-1),2*(this.current_page-1)),this.loadRecipeDetails(e)},loadRecipeDetails:function(e){var t=this;this.display_recipes.forEach((function(e,r){var n=new s["ApiApiFactory"];n.retrieveRecipe(e.recipe).then((function(n){var i=Object.assign({},e);i.recipe_content=n.data,t.$set(t.display_recipes,r,i)}))}))},swipeLeft:function(){var e=this;this.cookbook_editing||(this.current_page1?this.pageChange(this.current_page-1):(this.bounce_right=!0,setTimeout((function(){return e.bounce_right=!1}),500)))},switchRecipe:function(e){this.pageChange(Math.ceil((e+1)/this.per_page_count)+1)}},directives:{hover:{inserted:function(e){e.addEventListener("mouseenter",(function(){e.classList.add("shadow")})),e.addEventListener("mouseleave",(function(){e.classList.remove("shadow")}))}}}},L=E,T=(r("d492"),Object(v["a"])(L,c,u,!1,null,"6612a531",null)),I=T.exports,A=r("d76c");n["default"].use(a["a"]);var x={name:"CookbookView",mixins:[],components:{LoadingSpinner:A["a"],CookbookSlider:I},data:function(){return{cookbooks:[],book_background:window.IMAGE_BOOK,recipes:[],current_book:void 0,loading:!1,search:""}},computed:{filteredBooks:function(){var e=this;return this.cookbooks.filter((function(t){return t.name.toLowerCase().includes(e.search.toLowerCase())}))}},mounted:function(){this.refreshData(),this.$i18n.locale=window.CUSTOM_LOCALE},methods:{refreshData:function(){var e=this,t=new s["ApiApiFactory"];t.listRecipeBooks().then((function(t){e.cookbooks=t.data}))},openBook:function(e){var t=this;if(e===this.current_book)return this.current_book=void 0,void(this.recipes=[]);this.loading=!0;var r=new s["ApiApiFactory"];this.current_book=e,r.listRecipeBookEntrys({query:{book:e}}).then((function(e){t.recipes=e.data,t.loading=!1}))},createNew:function(){var e=this,t=new s["ApiApiFactory"];t.createRecipeBook({name:"New Book",description:"",icon:"",shared:[]}).then((function(t){t.data;e.refreshData(),h["StandardToasts"].makeStandardToast(h["StandardToasts"].SUCCESS_CREATE)})).catch((function(e){h["StandardToasts"].makeStandardToast(h["StandardToasts"].FAIL_CREATE)}))}},directives:{hover:{inserted:function(e){e.addEventListener("mouseenter",(function(){e.classList.add("shadow")})),e.addEventListener("mouseleave",(function(){e.classList.remove("shadow")}))}}}},M=x,F=(r("e649"),Object(v["a"])(M,i,o,!1,null,null,null)),N=F.exports,B=r("9225");n["default"].config.productionTip=!1,new n["default"]({i18n:B["a"],render:function(e){return e(N)}}).$mount("#app")},"6b0a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{directives:[{name:"hover",rawName:"v-hover"}],attrs:{"no-body":""}},[r("a",{attrs:{href:e.clickUrl()}},[r("b-card-img-lazy",{staticStyle:{height:"15vh","object-fit":"cover"},attrs:{src:e.recipe_image,alt:e.$t("Recipe_Image"),top:""}}),r("div",{staticClass:"card-img-overlay h-100 d-flex flex-column justify-content-right float-right text-right pt-2 pr-1"},[r("a",[null!==e.recipe?r("recipe-context-menu",{staticClass:"float-right",attrs:{recipe:e.recipe}}):e._e()],1)]),0!==e.recipe.waiting_time?r("div",{staticClass:"card-img-overlay w-50 d-flex flex-column justify-content-left float-left text-left pt-2"},[r("b-badge",{staticClass:"mt-1 font-weight-normal",attrs:{pill:"",variant:"light"}},[r("i",{staticClass:"fa fa-clock"}),e._v(" "+e._s(e.recipe.working_time)+" "+e._s(e.$t("min"))+" ")]),r("b-badge",{staticClass:"mt-1 font-weight-normal",attrs:{pill:"",variant:"secondary"}},[r("i",{staticClass:"fa fa-pause"}),e._v(" "+e._s(e.recipe.waiting_time)+" "+e._s(e.$t("min"))+" ")])],1):e._e()],1),r("b-card-body",{staticClass:"p-4"},[r("h6",[r("a",{attrs:{href:e.clickUrl()}},[null!==e.recipe?[e._v(e._s(e.recipe.name))]:[e._v(e._s(e.meal_plan.title))]],2)]),r("b-card-text",{staticStyle:{"text-overflow":"ellipsis"}},[null!==e.recipe?[r("recipe-rating",{attrs:{recipe:e.recipe}}),null!==e.recipe.description?[e.recipe.description.length>e.text_length?r("span",[e._v(" "+e._s(e.recipe.description.substr(0,e.text_length)+"…")+" ")]):e._e(),e.recipe.description.length<=e.text_length?r("span",[e._v(" "+e._s(e.recipe.description)+" ")]):e._e()]:e._e(),r("p",{staticClass:"mt-1"},[r("last-cooked",{attrs:{recipe:e.recipe}}),r("keywords",{staticStyle:{"margin-top":"4px"},attrs:{recipe:e.recipe}})],1),r("transition",{attrs:{name:"fade",mode:"in-out"}},[e.detailed?r("div",{staticClass:"row mt-3"},[r("div",{staticClass:"col-md-12"},[r("h6",{staticClass:"card-title"},[r("i",{staticClass:"fas fa-pepper-hot"}),e._v(" "+e._s(e.$t("Ingredients")))]),r("table",{staticClass:"table table-sm text-wrap"},[e._l(e.recipe.steps,(function(t){return[e._l(t.ingredients,(function(e){return[r("Ingredient",{key:e.id,attrs:{detailed:!1,ingredient:e,ingredient_factor:1}})]}))]}))],2)])]):e._e()]),e.recipe.internal?e._e():r("b-badge",{attrs:{pill:"",variant:"info"}},[e._v(e._s(e.$t("External")))])]:[e._v(e._s(e.meal_plan.note))]],2)],1),void 0!==e.footer_text?r("b-card-footer",[r("i",{class:e.footer_icon}),e._v(" "+e._s(e.footer_text)+" ")]):e._e()],1)},i=[],o=r("fc0d"),a=r("81d5"),s=r("fa7d"),c=r("ca5b"),u=r("c1df"),d=r.n(u),p=r("a026"),l=r("830a"),h=r("118a");p["default"].prototype.moment=d.a;var f={name:"RecipeCard",mixins:[s["ResolveUrlMixin"]],components:{LastCooked:l["a"],RecipeRating:c["a"],Keywords:a["a"],RecipeContextMenu:o["a"],Ingredient:h["a"]},props:{recipe:Object,meal_plan:Object,footer_text:String,footer_icon:String},computed:{detailed:function(){return void 0!==this.recipe.steps},text_length:function(){return this.detailed?200:120},recipe_image:function(){return null==this.recipe||null===this.recipe.image?window.IMAGE_PLACEHOLDER:this.recipe.image}},methods:{clickUrl:function(){return null!==this.recipe?Object(s["resolveDjangoUrl"])("view_recipe",this.recipe.id):Object(s["resolveDjangoUrl"])("view_plan_entry",this.meal_plan.id)}},directives:{hover:{inserted:function(e){e.addEventListener("mouseenter",(function(){e.classList.add("shadow")})),e.addEventListener("mouseleave",(function(){e.classList.remove("shadow")}))}}}},b=f,m=(r("4a89"),r("2877")),g=Object(m["a"])(b,n,i,!1,null,"187e931d",null);t["default"]=g.exports},"6ce2":function(e){e.exports=JSON.parse('{"Import":"Importieren","import_running":"Import läuft, bitte warten!","Import_finished":"Import fertig","View_Recipes":"Rezepte Ansehen","Information":"Information","all_fields_optional":"Alle Felder sind optional und können leer gelassen werden.","convert_internal":"Zu internem Rezept wandeln","Log_Recipe_Cooking":"Kochen protokollieren","External_Recipe_Image":"Externes Rezept Bild","Add_to_Book":"Zu Buch hinzufügen","Add_to_Shopping":"Zu Einkaufsliste hinzufügen","Add_to_Plan":"Zu Plan hinzufügen","Step_start_time":"Schritt Startzeit","Select_Book":"Buch wählen","Recipe_Image":"Rezept Bild","Log_Cooking":"Kochen protokollieren","Proteins":"Proteine","Fats":"Fette","Carbohydrates":"Kohlenhydrate","Calories":"Kalorien","Nutrition":"Nährwerte","Keywords":"Stichwörter","Books":"Bücher","show_only_internal":"Nur interne Rezepte anzeigen","Ingredients":"Zutaten","min":"Min","Servings":"Portionen","Waiting":"Wartezeit","Preparation":"Vorbereitung","Edit":"Bearbeiten","Open":"Öffnen","Save":"Speichern","Step":"Schritt","Search":"Suchen","Print":"Drucken","New_Recipe":"Neues Rezept","Url_Import":"URL Import","Reset_Search":"Suche zurücksetzen","or":"oder","and":"und","Recently_Viewed":"Kürzlich angesehen","External":"Extern","Settings":"Einstellungen","Meal_Plan":"Speiseplan","Date":"Datum","Share":"Teilen","Export":"Exportieren","Rating":"Bewertung","Close":"Schließen","Add":"Hinzufügen","Copy":"Kopieren","New":"Neu","Categories":"Kategorien","Category":"Kategorie","Selected":"Ausgewählt","Supermarket":"Supermarkt","Files":"Dateien","Size":"Größe","success_fetching_resource":"Ressource erfolgreich abgerufen!","Download":"Herunterladen","Success":"Erfolgreich","err_fetching_resource":"Ein Fehler trat während dem Abrufen einer Ressource auf!","err_creating_resource":"Ein Fehler trat während dem Erstellen einer Ressource auf!","err_updating_resource":"Ein Fehler trat während dem Aktualisieren einer Ressource auf!","success_creating_resource":"Ressource erfolgreich erstellt!","success_updating_resource":"Ressource erfolgreich aktualisiert!","File":"Datei","Delete":"Löschen","err_deleting_resource":"Ein Fehler trat während dem Löschen einer Ressource auf!","Cancel":"Abbrechen","success_deleting_resource":"Ressource erfolgreich gelöscht!","Load_More":"Mehr laden","Ok":"Öffnen","Link":"Verknüpfung","Key_Ctrl":"Strg","move_title":"Verschieben {type}","Food":"Essen","Recipe_Book":"Kochbuch","delete_title":"Löschen {type}","create_title":"Neu {type}","edit_title":"Bearbeiten {type}","Name":"Name","Empty":"Leer","Key_Shift":"Umschalttaste","Text":"Text","Icon":"Icon","Automation":"Automatisierung","Ignore_Shopping":"Einkauf Ignorieren","Parameter":"Parameter","Sort_by_new":"Sortieren nach neu","Shopping_Category":"Einkauf Kategorie","Edit_Food":"Essen bearbeiten","Move_Food":"Essen verschieben","New_Food":"Neues Essen","Hide_Food":"Essen verbergen","Food_Alias":"Essen Alias","Unit_Alias":"Einheit Alias","Keyword_Alias":"Schlagwort Alias","Delete_Food":"Essen löschen","No_ID":"Nr. nicht gefunden, Objekt kann nicht gelöscht werden","create_rule":"und erstelle Automatisierung","Table_of_Contents":"Inhaltsverzeichnis","merge_title":"Zusammenführen {type}","del_confirmation_tree":"Sicher das {source} und alle untergeordneten Objekte gelöscht werden soll?","warning_feature_beta":"Diese Funktion ist aktuell in einer BETA (Test) Phase. Fehler sind zu erwarten und Änderungen in der Zukunft können die Funktionsweise möglicherweise Verändern oder Daten die mit dieser Funktion zusammen hängen entfernen.","Edit_Keyword":"Schlagwort bearbeiten","Move_Keyword":"Schlagwort verschieben","Merge_Keyword":"Schlagwort zusammenführen","Hide_Keywords":"Schlagwort verstecken","Meal_Plan_Days":"Zukünftige Pläne","Description":"Beschreibung","Create_New_Shopping Category":"Erstelle neue Einkaufs Kategorie","Automate":"Automatisieren","Type":"Typ","and_up":"& Hoch","Unrated":"Unbewertet","Shopping_list":"Einkaufsliste","step_time_minutes":"Schritt Zeit in Minuten","Save_and_View":"Speichern & Ansehen","Edit_Recipe":"Rezept bearbeiten","Hide_Recipes":"Rezepte verstecken","Move_Up":"Hoch","confirm_delete":"Soll dieses {object} wirklich gelöscht werden?","Show_as_header":"Als Überschrift","Hide_as_header":"Keine Überschrift","Copy_template_reference":"Template Referenz kopieren","Step_Type":"Schritt Typ","Make_Ingredient":"In Zutat wandeln","Make_Header":"In Überschrift wandeln","Enable_Amount":"Menge aktivieren","Disable_Amount":"Menge deaktivieren","Add_Step":"Schritt hinzufügen","Note":"Notiz","Failure":"Fehler","Move_Down":"Runter","Step_Name":"Schritt Name","Create":"Erstellen","Advanced Search Settings":"Erweiterte Sucheinstellungen","View":"Ansicht","Recipes":"Rezepte","Move":"Verschieben","Merge":"Zusammenführen","Parent":"Eltern","move_confirmation":"Verschiebe {child} zu Elternelement {parent}","merge_confirmation":"Ersetze {source} mit {target}","move_selection":"Wähle Elternelement {type} um {source} zu verschieben.","Root":"Ursprung","Recipe":"Rezept","tree_root":"Ursprung des Baums","Unit":"Einheit","No_Results":"Keine Ergebnisse","New_Unit":"Neue Einheit","Create_New_Food":"Neues Essen","Create_New_Keyword":"Neues Schlagwort","Create_New_Unit":"Neue Einheit","Instructions":"Anleitung","Time":"Zeit","New_Keyword":"Neues Schlagwort","Delete_Keyword":"Schlagwort löschen","show_split_screen":"Geteilte Ansicht","Recipes_per_page":"Rezepte pro Seite","Manage_Books":"Bücher Verwalten","delete_confirmation":"Soll {source} wirklich gelöscht werden?","merge_selection":"Ersetze alle vorkommen von {source} mit dem ausgewählten {type}."}')},7432:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("multiselect",{attrs:{options:e.objects,"close-on-select":!0,"clear-on-select":!0,"hide-selected":e.multiple,"preserve-search":!0,placeholder:e.lookupPlaceholder,label:e.label,"track-by":"id",multiple:e.multiple,taggable:e.allow_create,"tag-placeholder":e.create_placeholder,loading:e.loading},on:{"search-change":e.search,input:e.selectionChanged,tag:e.addNew},model:{value:e.selected_objects,callback:function(t){e.selected_objects=t},expression:"selected_objects"}})},i=[],o=(r("a9e3"),r("ac1f"),r("841c"),r("b0c0"),r("99af"),r("159b"),r("8e5f")),a=r.n(o),s=r("fa7d"),c={name:"GenericMultiselect",components:{Multiselect:a.a},mixins:[s["ApiMixin"]],data:function(){return{loading:!1,objects:[],selected_objects:[]}},props:{placeholder:{type:String,default:void 0},model:{type:Object,default:function(){return{}}},label:{type:String,default:"name"},parent_variable:{type:String,default:void 0},limit:{type:Number,default:10},sticky_options:{type:Array,default:function(){return[]}},initial_selection:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!0},allow_create:{type:Boolean,default:!1},create_placeholder:{type:String,default:"You Forgot to Add a Tag Placeholder"}},watch:{initial_selection:function(e,t){this.selected_objects=e}},mounted:function(){this.search(""),this.selected_objects=this.initial_selection},computed:{lookupPlaceholder:function(){return this.placeholder||this.model.name||this.$t("Search")}},methods:{search:function(e){var t=this,r={page:1,pageSize:10,query:e};this.genericAPI(this.model,this.Actions.LIST,r).then((function(e){var r,n;t.objects=t.sticky_options.concat(null!==(r=null===(n=e.data)||void 0===n?void 0:n.results)&&void 0!==r?r:e.data),0===t.selected_objects.length&&0===t.initial_selection.length&&t.objects.length>0&&t.objects.forEach((function(e){"default"in e&&e.default&&(t.multiple?t.selected_objects=[e]:t.selected_objects=e,t.selectionChanged())}))}))},selectionChanged:function(){this.$emit("change",{var:this.parent_variable,val:this.selected_objects})},addNew:function(e){var t=this;this.$emit("new",e),setTimeout((function(){t.search("")}),750)}}},u=c,d=r("2877"),p=Object(d["a"])(u,n,i,!1,null,"340ae6b2",null);t["a"]=p.exports},"7c15":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r("bc3a"),i=r.n(n),o=r("fa7d");function a(e){var t=Object(o["resolveDjangoUrl"])("api:recipe-detail",e);return void 0!==window.SHARE_UID&&(t+="?share="+window.SHARE_UID),i.a.get(t).then((function(e){return e.data})).catch((function(e){c(e,"There was an error loading a resource!","danger")}))}function s(e){return i.a.post(Object(o["resolveDjangoUrl"])("api:cooklog-list"),e).then((function(e){Object(o["makeToast"])("Saved","Cook Log entry saved!","success")})).catch((function(e){c(e,"There was an error creating a resource!","danger")}))}function c(e,t){if("response"in e){console.log(e.response);var r="statusText"in e.response?e.response.statusText:Object(o["djangoGettext"])("Error");t+="\n\n"+JSON.stringify(e.response.data),Object(o["makeToast"])(r,t,"danger")}else Object(o["makeToast"])("Error",t,"danger"),console.log(e)}i.a.defaults.xsrfCookieName="csrftoken",i.a.defaults.xsrfHeaderName="X-CSRFTOKEN"},8:function(e,t,r){e.exports=r("6805")},"81d5":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.recipe.keywords.length>0?r("div",e._l(e.recipe.keywords,(function(t){return r("span",{key:t.id,staticClass:"pl-1"},[r("b-badge",{staticClass:"font-weight-normal",attrs:{pill:"",variant:"light"}},[e._v(e._s(t.label))])],1)})),0):e._e()},i=[],o={name:"Keywords",props:{recipe:Object}},a=o,s=r("2877"),c=Object(s["a"])(a,n,i,!1,null,null,null);t["a"]=c.exports},"830a":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{staticClass:"pl-1"},[null!==e.recipe.last_cooked?r("b-badge",{staticClass:"font-weight-normal",attrs:{pill:"",variant:"primary"}},[r("i",{staticClass:"fas fa-utensils"}),e._v(" "+e._s(e.formatDate(e.recipe.last_cooked)))]):e._e()],1)},i=[],o=r("c1df"),a=r.n(o),s={name:"LastCooked",props:{recipe:Object},methods:{formatDate:function(e){return a.a.locale(window.navigator.language),a()(e).format("L")}}},c=s,u=r("2877"),d=Object(u["a"])(c,n,i,!1,null,"293dcaf2",null);t["a"]=d.exports},8502:function(e,t,r){},"89b2":function(e){e.exports=JSON.parse('{"warning_feature_beta":"Ta funkcja jest obecnie w wersji BETA (testowej). Podczas korzystania z tej funkcji należy spodziewać się błędów i ewentualnych zmian w przyszłości (prawdopodobna utrata danych powiązanych z tą funkcją).","err_fetching_resource":"Wystąpił błąd podczas pobierania zasobu!","err_creating_resource":"Wystąpił błąd podczas tworzenia zasobu!","err_updating_resource":"Wystąpił błąd podczas aktualizowania zasobu!","err_deleting_resource":"Wystąpił błąd podczas usuwania zasobu!","success_fetching_resource":"Pomyślnie pobrano zasób!","success_creating_resource":"Pomyślnie utworzono zasób!","success_updating_resource":"Pomyślnie zaktualizowano zasób!","success_deleting_resource":"Pomyślnie usunięto zasób!","step_time_minutes":"Poszczególne kroki w minutach","confirm_delete":"Czy na pewno chcesz usunąć {object}?","import_running":"Trwa importowanie, proszę czekać!","all_fields_optional":"Wszystkie pola są opcjonalne i można je pozostawić puste.","convert_internal":"Konwertuj do lokalnego przepisu","show_only_internal":"Pokaż tylko lokalne przepisy","show_split_screen":"Widok podzielony","Log_Recipe_Cooking":"Zaloguj gotowanie przepisu","External_Recipe_Image":"Zewnętrzny obraz dla przepisu","Add_to_Shopping":"Dodaj do zakupów","Add_to_Plan":"Dodaj do planu","Step_start_time":"Czas rozpoczęcia kroku","Sort_by_new":"Sortuj według nowych","Recipes_per_page":"Przepisy na stronę","Show_as_header":"Pokaż jako nagłówek","Hide_as_header":"Ukryj jako nagłówek","Copy_template_reference":"Skopiuj odniesienie do przykładowego szablonu","Save_and_View":"Zapisz i wyświetl","Manage_Books":"Zarządzaj książkami","Meal_Plan":"Plan posiłków","Select_Book":"Wybierz książkę","Recipe_Image":"Obrazek dla przepisu","Import_finished":"Import zakończony","View_Recipes":"Przeglądaj przepisy","Log_Cooking":"Zanotuj ugotowanie","New_Recipe":"Nowy przepis","Url_Import":"Importowanie URL","Reset_Search":"Resetuj wyszukiwanie","Recently_Viewed":"Ostatnio oglądane","Load_More":"Załaduj więcej","New_Keyword":"Nowe słowo kluczowe","Delete_Keyword":"Usuń słowo kluczowe","Edit_Keyword":"Edytuj słowo kluczowe","Edit_Recipe":"Edytuj przepis","Move_Keyword":"Przenieś słowo kluczowe","Merge_Keyword":"Scal słowa kluczowe","Hide_Keywords":"Ukryj słowo kluczowe","Hide_Recipes":"Ukryj przepisy","Move_Up":"Przesunąć w górę","Move_Down":"Przesunąć w dół","Step_Name":"Nazwa kroku","Step_Type":"Typ kroku","Make_Header":"Utwórz nagłówek","Make_Ingredient":"Utwórz składnik","Enable_Amount":"Włącz ilość","Disable_Amount":"Wyłącz ilość","Add_Step":"Dodaj krok","Keywords":"Słowa kluczowe","Books":"Książki","Proteins":"Białka","Fats":"Tłuszcze","Carbohydrates":"Węglowodany","Calories":"Kalorie","Nutrition":"Odżywianie","Date":"Data","Share":"Udostępnij","Automation":"Automatyzacja","Parameter":"Parametr","Export":"Eksport","Copy":"Kopiuj","Rating":"Ocena","Close":"Zamknij","Cancel":"Anuluj","Link":"Link","Add":"Dodaj","New":"Nowy","Note":"Notatka","Success":"Powodzenie","Failure":"Niepowodzenie","Ingredients":"Składniki","Supermarket":"Supermarket","Categories":"Kategorie","Category":"Kategorie","Selected":"Wybrane","min":"min","Servings":"Porcje","Waiting":"Oczekiwanie","Preparation":"Przygotowanie","External":"Zewnętrzny","Size":"Rozmiar","Files":"Pliki","File":"Plik","Edit":"Edytuj","Delete":"Usuń","Open":"Otwórz","Ok":"Ok","Save":"Zapisz","Step":"Krok","Search":"Szukaj","Import":"Importuj","Print":"Drukuj","Settings":"Ustawienia","or":"lub","and":"i","Information":"Informacja","Download":"Pobieranie","Create":"Stwórz","Advanced Search Settings":"Ustawienia zaawansowanego wyszukiwania","View":"Pogląd","Recipes":"Przepisy","Move":"Przenieś","Merge":"Scal","Parent":"Nadrzędny","delete_confirmation":"Czy na pewno chcesz usunąć {source}?","move_confirmation":"Przenieś {child} do nadrzędnego {parent}","merge_confirmation":"Zamień {source} z {target}","create_rule":"i stwórz automatyzację","move_selection":"Wskaż nadrzędny {type} aby przenieść do niego {source}.","merge_selection":"Zastąp wszystkie wystąpienia {source} wybranym {type}.","Root":"Główny","Ignore_Shopping":"Ignoruj zakupy","Shopping_Category":"Kategoria zakupów","Edit_Food":"Edytuj żywność","Move_Food":"Przenieś żywność","New_Food":"Nowa żywność","Hide_Food":"Ukryj żywność","Food_Alias":"Alias żywności","Unit_Alias":"Alias jednostek","Keyword_Alias":"Alias słowa kluczowego","Delete_Food":"Usuń żywność","No_ID":"ID nie znaleziono, nie można usunąć.","Meal_Plan_Days":"Przyszłe plany posiłków","merge_title":"Scal {type}","move_title":"Przenieś {type}","Food":"Żywność","Recipe_Book":"Książka z przepisami","del_confirmation_tree":"Czy na pewno chcesz usunąć {source} i wszystkie jego elementy podrzędne?","delete_title":"Usuń {type}","create_title":"Nowy {type}","edit_title":"Edytuj {type}","Name":"Nazwa","Type":"Typ","Description":"Opis","Recipe":"Przepis","tree_root":"Poziom główny drzewa","Icon":"Ikona","Unit":"Jednostka","No_Results":"Brak wyników","New_Unit":"Nowa jednostka","Create_New_Shopping Category":"Stwórz nową kategorię zakupów","Create_New_Food":"Dodaj nową żywność","Create_New_Keyword":"Dodaj nowe słowo kluczowe","Create_New_Unit":"Dodaj nowa jednostkę","and_up":"& Góra","Instructions":"Instrukcje","Unrated":"Nieoceniony","Automate":"Automatyzacja","Key_Ctrl":"Ctrl","Key_Shift":"Shift","Time":"Czas","Text":"Tekst","Shopping_list":"Lista zakupów"}')},9225:function(e,t,r){"use strict";r("159b"),r("d3b7"),r("ddb0"),r("ac1f"),r("466d");var n=r("a026"),i=r("a925");function o(){var e=r("49f8"),t={};return e.keys().forEach((function(r){var n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){var i=n[1];t[i]=e(r)}})),t}n["default"].use(i["a"]),t["a"]=new i["a"]({locale:Object({NODE_ENV:"production",BASE_URL:""}).VUE_APP_I18N_LOCALE||"en",fallbackLocale:Object({NODE_ENV:"production",BASE_URL:""}).VUE_APP_I18N_FALLBACK_LOCALE||"en",messages:o()})},a625:function(e){e.exports=JSON.parse('{"import_running":"Er wordt geïmporteerd, even geduld!","all_fields_optional":"Alle velden zijn optioneel en kunnen leeg gelaten worden.","convert_internal":"Zet om naar intern recept","Log_Recipe_Cooking":"Log Bereiding","External_Recipe_Image":"Externe Afbeelding Recept","Add_to_Book":"Voeg toe aan Boek","Add_to_Shopping":"Voeg toe aan Boodschappenlijst","Add_to_Plan":"Voeg toe aan Plan","Step_start_time":"Starttijd stap","Select_Book":"Selecteer Boek","Recipe_Image":"Afbeelding Recept","Import_finished":"Importeren gereed","View_Recipes":"Bekijk Recepten","Log_Cooking":"Log Bereiding","Proteins":"Eiwitten","Fats":"Vetten","Carbohydrates":"Koolhydraten","Calories":"Calorieën","Nutrition":"Voedingswaarde","Date":"Datum","Share":"Deel","Export":"Exporteren","Rating":"Beoordeling","Close":"Sluiten","Add":"Voeg toe","Ingredients":"Ingrediënten","min":"min","Servings":"Porties","Waiting":"Wachten","Preparation":"Bereiding","Edit":"Bewerken","Open":"Open","Save":"Opslaan","Step":"Stap","Search":"Zoeken","Import":"Importeer","Print":"Afdrukken","Information":"Informatie","Keywords":"Etiketten","Books":"Boeken","show_only_internal":"Toon alleen interne recepten","New_Recipe":"Nieuw Recept","Url_Import":"Importeer URL","Reset_Search":"Zoeken resetten","or":"of","and":"en","Recently_Viewed":"Recent bekeken","External":"Externe","Settings":"Instellingen","Meal_Plan":"Maaltijdplan","New":"Nieuw","Supermarket":"Supermarkt","Categories":"Categorieën","Category":"Categorie","Selected":"Geselecteerd","Copy":"Kopie","Link":"Link","Sort_by_new":"Sorteer op nieuw","Recipes_per_page":"Recepten per pagina","Files":"Bestanden","Size":"Grootte","File":"Bestand","err_fetching_resource":"Bij het ophalen van een hulpbron is een foutmelding opgetreden!","err_creating_resource":"Bij het maken van een hulpbron is een foutmelding opgetreden!","err_updating_resource":"Bij het updaten van een hulpbron is een foutmelding opgetreden!","success_fetching_resource":"Hulpbron is succesvol opgehaald!","success_creating_resource":"Hulpbron succesvol aangemaakt!","success_updating_resource":"Hulpbron succesvol geüpdatet!","Success":"Succes","Download":"Download","err_deleting_resource":"Bij het verwijderen van een hulpbron is een foutmelding opgetreden!","success_deleting_resource":"Hulpbron succesvol verwijderd!","Cancel":"Annuleer","Delete":"Verwijder","Ok":"Open","Load_More":"Laad meer","Manage_Books":"Beheer Boeken","Create":"Maak","Failure":"Storing","View":"Bekijk","Recipes":"Recepten","Move":"Verplaats","Parent":"Ouder","move_confirmation":"Verplaats {child} naar ouder {parent}","merge_confirmation":"Vervang {source} with {target}","move_selection":"Selecteer een ouder {type} om {source} naar te verplaatsen.","merge_selection":"Vervang alle voorvallen van {source} door het type {type}.","Root":"Bron","show_split_screen":"Gesplitste weergave","New_Keyword":"Nieuw Etiket","Delete_Keyword":"Verwijder Etiket","Edit_Keyword":"Bewerk Etiket","Move_Keyword":"Verplaats Etiket","Hide_Keywords":"Verberg Etiket","Hide_Recipes":"Verberg Recepten","Advanced Search Settings":"Geavanceerde zoekinstellingen","Merge":"Samenvoegen","delete_confimation":"Weet je zeker dat je {kw} en zijn kinderen wil verwijderen?","Merge_Keyword":"Voeg Etiket samen","step_time_minutes":"Stap duur in minuten","confirm_delete":"Weet je zeker dat je dit {object} wil verwijderen?","Show_as_header":"Toon als koptekst","Hide_as_header":"Verberg als koptekst","Copy_template_reference":"Kopieer sjabloon verwijzing","Save_and_View":"Sla op & Bekijk","Edit_Recipe":"Bewerk Recept","Move_Up":"Verplaats omhoog","Move_Down":"Verplaats omlaag","Step_Name":"Stap Naam","Step_Type":"Stap Type","Make_Header":"Maak_Koptekst","Make_Ingredient":"Maak_Ingrediënt","Enable_Amount":"Schakel Hoeveelheid in","Disable_Amount":"Schakel Hoeveelheid uit","Add_Step":"Voeg Stap toe","Note":"Notitie","delete_confirmation":"Weet je zeker dat je {source} wil verwijderen?","Ignore_Shopping":"Negeer Boodschappen","Shopping_Category":"Boodschappen Categorie","Edit_Food":"Bewerk Eten","Move_Food":"Verplaats Eten","New_Food":"Nieuw Eten","Hide_Food":"Verberg Eten","Delete_Food":"Verwijder Eten","No_ID":"ID niet gevonden, verwijderen niet mogelijk.","Meal_Plan_Days":"Toekomstige maaltijdplannen","merge_title":"Voeg {type} samen","move_title":"Verplaats {type}","Food":"Eten","Key_Ctrl":"Ctrl","Parameter":"Parameter","Automation":"Automatisering","create_rule":"en creëer automatisering","Food_Alias":"Eten Alias","Unit_Alias":"Eenheid Alias","Keyword_Alias":"Etiket Alias","Recipe_Book":"Kookboek","New_Unit":"Nieuwe Eenheid","Create_New_Shopping Category":"Maak nieuwe Boodschappen Categorie","delete_title":"Verwijder {type}","create_title":"Nieuw {type}","edit_title":"Bewerk {type}","Name":"Naam","Type":"Type","Description":"Beschrijving","Recipe":"Recept","tree_root":"Hoogste niveau","Icon":"Icoon","Unit":"Eenheid","No_Results":"Geen resultaten","Create_New_Keyword":"Voeg nieuw Etiket toe","Create_New_Unit":"Voeg nieuwe Eenheid toe","Instructions":"Instructies","Automate":"Automatiseer","Key_Shift":"Shift","Text":"Tekst","and_up":"& Omhoog","Unrated":"Niet beoordeeld","Shopping_list":"Boodschappenlijst","del_confirmation_tree":"Weet je zeker dat je {source} en al zijn kinderen wil verwijderen?","Create_New_Food":"Voeg nieuw Eten toe","Time":"Tijd","warning_feature_beta":"Deze functie zit op dit moment in de BETA (test) fase. Verwacht hier bugs en toekomstige wijzigingen die tot het verlies van data gaan leiden bij het gebruik."}')},b05e:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("b-form-group",{staticClass:"mb-3",attrs:{label:e.label}},[r("twemoji-textarea",{ref:"_edit_"+e.id,attrs:{initialContent:e.value,emojiData:e.emojiDataAll,emojiGroups:e.emojiGroups,triggerType:"hover",recentEmojisFeat:"true",recentEmojisStorage:"local"},on:{contentChanged:e.setIcon}})],1)],1)},i=[],o=r("ad23"),a=r("34ef"),s=r("0d08"),c={name:"EmojiInput",components:{TwemojiTextarea:o["a"]},props:{field:{type:String,default:"You Forgot To Set Field Name"},label:{type:String,default:""},value:{type:String,default:""}},data:function(){return{new_value:void 0,id:null}},computed:{emojiDataAll:function(){return a},emojiGroups:function(){return s}},watch:{new_value:function(){var e;this.$root.$emit("change",this.field,null!==(e=this.new_value)&&void 0!==e?e:null)}},mounted:function(){this.id=this._uid},methods:{prepareEmoji:function(){this.$refs["_edit_"+this.id].addText(this.this_item.icon||""),this.$refs["_edit_"+this.id].blur(),document.getElementById("btn-emoji-default").disabled=!0},setIcon:function(e){this.new_value=e}}},u=c,d=r("2877"),p=Object(d["a"])(u,n,i,!1,null,null,null);t["a"]=p.exports},ca5b:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.recipe.rating>0?r("span",{staticClass:"d-inline"},[e._l(Math.floor(e.recipe.rating),(function(e){return r("i",{key:e,staticClass:"fas fa-star fa-xs text-primary"})})),e.recipe.rating%1>0?r("i",{staticClass:"fas fa-star-half-alt fa-xs text-primary"}):e._e(),e._l(5-Math.ceil(e.recipe.rating),(function(e){return r("i",{key:e+10,staticClass:"far fa-star fa-xs text-secondary"})}))],2):e._e()])},i=[],o={name:"RecipeRating",props:{recipe:Object}},a=o,s=r("2877"),c=Object(s["a"])(a,n,i,!1,null,"7151a4e2",null);t["a"]=c.exports},d46a:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("b-modal",{staticClass:"modal",attrs:{id:"id_modal_add_book_"+e.modal_id,title:e.$t("Manage_Books"),"ok-title":e.$t("Add"),"cancel-title":e.$t("Close")},on:{ok:function(t){return e.addToBook()},shown:e.loadBookEntries}},[r("ul",{staticClass:"list-group"},e._l(this.recipe_book_list,(function(t){return r("li",{key:t.id,staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e._v(" "+e._s(t.book_content.name)+" "),r("span",{staticClass:"btn btn-sm btn-danger",on:{click:function(r){return e.removeFromBook(t)}}},[r("i",{staticClass:"fa fa-trash-alt"})])])})),0),r("multiselect",{staticStyle:{"margin-top":"1vh"},attrs:{options:e.books_filtered,taggable:!0,"tag-placeholder":e.$t("Create"),placeholder:e.$t("Select_Book"),label:"name","track-by":"id",id:"id_books",multiple:!1,loading:e.books_loading},on:{tag:e.createBook,"search-change":e.loadBooks},model:{value:e.selected_book,callback:function(t){e.selected_book=t},expression:"selected_book"}})],1)],1)},i=[],o=(r("a9e3"),r("159b"),r("4de4"),r("8e5f")),a=r.n(o),s=r("c1df"),c=r.n(s),u=r("a026"),d=r("5f5b"),p=r("2b2d"),l=r("fa7d");u["default"].prototype.moment=c.a,u["default"].use(d["a"]);var h={name:"AddRecipeToBook",components:{Multiselect:a.a},props:{recipe:Object,modal_id:Number},data:function(){return{books:[],books_loading:!1,recipe_book_list:[],selected_book:null}},computed:{books_filtered:function(){var e=this,t=[];return this.books.forEach((function(r){0===e.recipe_book_list.filter((function(e){return e.book===r.id})).length&&t.push(r)})),t}},mounted:function(){},methods:{loadBooks:function(e){var t=this;this.books_loading=!0;var r=new p["ApiApiFactory"];r.listRecipeBooks({query:{query:e}}).then((function(e){t.books=e.data.filter((function(e){return-1===t.recipe_book_list.indexOf(e)})),t.books_loading=!1}))},createBook:function(e){var t=this,r=new p["ApiApiFactory"];r.createRecipeBook({name:e}).then((function(e){t.books.push(e.data),t.selected_book=e.data,l["StandardToasts"].makeStandardToast(l["StandardToasts"].SUCCESS_CREATE)}))},addToBook:function(){var e=this,t=new p["ApiApiFactory"];t.createRecipeBookEntry({book:this.selected_book.id,recipe:this.recipe.id}).then((function(t){e.recipe_book_list.push(t.data),l["StandardToasts"].makeStandardToast(l["StandardToasts"].SUCCESS_CREATE)}))},removeFromBook:function(e){var t=this,r=new p["ApiApiFactory"];r.destroyRecipeBookEntry(e.id).then((function(r){t.recipe_book_list=t.recipe_book_list.filter((function(t){return t.id!==e.id})),l["StandardToasts"].makeStandardToast(l["StandardToasts"].SUCCESS_DELETE)}))},loadBookEntries:function(){var e=this,t=new p["ApiApiFactory"];t.listRecipeBookEntrys({query:{recipe:this.recipe.id}}).then((function(t){e.recipe_book_list=t.data,e.loadBooks("")}))}}},f=h,b=(r("60bc"),r("2877")),m=Object(b["a"])(f,n,i,!1,null,null,null);t["a"]=m.exports},d492:function(e,t,r){"use strict";r("1e9f")},d76c:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"row"},[r("div",{staticClass:"col",staticStyle:{"text-align":"center"}},[r("img",{staticClass:"spinner-tandoor",style:{height:e.size+"vh"},attrs:{alt:"loading spinner",src:""}})])])},i=[],o=(r("a9e3"),{name:"LoadingSpinner",props:{recipe:Object,size:{type:Number,default:30}}}),a=o,s=r("2877"),c=Object(s["a"])(a,n,i,!1,null,null,null);t["a"]=c.exports},dc43:function(e){e.exports=JSON.parse('{"err_fetching_resource":"","err_creating_resource":"","err_updating_resource":"","err_deleting_resource":"","success_fetching_resource":"","success_creating_resource":"","success_updating_resource":"","success_deleting_resource":"","import_running":"","all_fields_optional":"","convert_internal":"","show_only_internal":"","Log_Recipe_Cooking":"","External_Recipe_Image":"外部菜谱图像","Add_to_Shopping":"添加到购物","Add_to_Plan":"添加到计划","Step_start_time":"","Sort_by_new":"","Recipes_per_page":"","Manage_Books":"管理书籍","Meal_Plan":"","Select_Book":"","Recipe_Image":"菜谱图像","Import_finished":"导入完成","View_Recipes":"","Log_Cooking":"","New_Recipe":"新菜谱","Url_Import":"导入网址","Reset_Search":"重置搜索","Recently_Viewed":"最近浏览","Load_More":"加载更多","Keywords":"关键字","Books":"书籍","Proteins":"蛋白质","Fats":"脂肪","Carbohydrates":"碳水化合物","Calories":"卡路里","Nutrition":"营养","Date":"日期","Share":"分享","Export":"导出","Copy":"拷贝","Rating":"评分","Close":"关闭","Link":"链接","Add":"添加","New":"新","Success":"成功","Failure":"失败","Ingredients":"材料","Supermarket":"超级市场","Categories":"分类","Category":"分类","Selected":"选定","min":"","Servings":"份量","Waiting":"等待","Preparation":"准备","External":"外部","Size":"大小","Files":"文件","File":"文件","Edit":"编辑","Cancel":"取消","Delete":"删除","Open":"打开","Ok":"打开","Save":"储存","Step":"步骤","Search":"搜索","Import":"导入","Print":"打印","Settings":"设置","or":"或","and":"与","Information":"更多资讯","Download":"下载","Create":"创立"}')},dfc6:function(e){e.exports=JSON.parse('{"err_fetching_resource":"","err_creating_resource":"","err_updating_resource":"","err_deleting_resource":"","success_fetching_resource":"","success_creating_resource":"","success_updating_resource":"","success_deleting_resource":"","import_running":"","all_fields_optional":"","convert_internal":"","show_only_internal":"","Log_Recipe_Cooking":"","External_Recipe_Image":"","Add_to_Book":"","Add_to_Shopping":"","Add_to_Plan":"","Step_start_time":"","Meal_Plan":"","Select_Book":"","Recipe_Image":"","Import_finished":"","View_Recipes":"","Log_Cooking":"","New_Recipe":"","Url_Import":"","Reset_Search":"","Recently_Viewed":"","Load_More":"","Keywords":"","Books":"","Proteins":"","Fats":"","Carbohydrates":"","Calories":"","Nutrition":"","Date":"","Share":"","Export":"","Copy":"","Rating":"","Close":"","Link":"","Add":"","New":"","Success":"","Ingredients":"","Supermarket":"","Categories":"","Category":"","Selected":"","min":"","Servings":"","Waiting":"","Preparation":"","External":"","Size":"","Files":"","File":"","Edit":"","Cancel":"","Delete":"","Open":"","Ok":"","Save":"","Step":"","Search":"","Import":"","Print":"","Settings":"","or":"","and":"","Information":"","Download":""}')},e649:function(e,t,r){"use strict";r("3d0c")},edd4:function(e){e.exports=JSON.parse('{"warning_feature_beta":"This feature is currently in a BETA (testing) state. Please expect bugs and possibly breaking changes in the future (possibly loosing feature related data) when using this feature.","err_fetching_resource":"There was an error fetching a resource!","err_creating_resource":"There was an error creating a resource!","err_updating_resource":"There was an error updating a resource!","err_deleting_resource":"There was an error deleting a resource!","success_fetching_resource":"Successfully fetched a resource!","success_creating_resource":"Successfully created a resource!","success_updating_resource":"Successfully updated a resource!","success_deleting_resource":"Successfully deleted a resource!","step_time_minutes":"Step time in minutes","confirm_delete":"Are you sure you want to delete this {object}?","import_running":"Import running, please wait!","all_fields_optional":"All fields are optional and can be left empty.","convert_internal":"Convert to internal recipe","show_only_internal":"Show only internal recipes","show_split_screen":"Split View","Log_Recipe_Cooking":"Log Recipe Cooking","External_Recipe_Image":"External Recipe Image","Add_to_Shopping":"Add to Shopping","Add_to_Plan":"Add to Plan","Step_start_time":"Step start time","Sort_by_new":"Sort by new","Table_of_Contents":"Table of Contents","Recipes_per_page":"Recipes per Page","Show_as_header":"Show as header","Hide_as_header":"Hide as header","Copy_template_reference":"Copy template reference","Save_and_View":"Save & View","Manage_Books":"Manage Books","Meal_Plan":"Meal Plan","Select_Book":"Select Book","Recipe_Image":"Recipe Image","Import_finished":"Import finished","View_Recipes":"View Recipes","Log_Cooking":"Log Cooking","New_Recipe":"New Recipe","Url_Import":"Url Import","Reset_Search":"Reset Search","Recently_Viewed":"Recently Viewed","Load_More":"Load More","New_Keyword":"New Keyword","Delete_Keyword":"Delete Keyword","Edit_Keyword":"Edit Keyword","Edit_Recipe":"Edit Recipe","Move_Keyword":"Move Keyword","Merge_Keyword":"Merge Keyword","Hide_Keywords":"Hide Keyword","Hide_Recipes":"Hide Recipes","Move_Up":"Move up","Move_Down":"Move down","Step_Name":"Step Name","Step_Type":"Step Type","Make_header":"Make_Header","Make_Ingredient":"Make_Ingredient","Enable_Amount":"Enable Amount","Disable_Amount":"Disable Amount","Add_Step":"Add Step","Keywords":"Keywords","Books":"Books","Proteins":"Proteins","Fats":"Fats","Carbohydrates":"Carbohydrates","Calories":"Calories","Nutrition":"Nutrition","Date":"Date","Share":"Share","Automation":"Automation","Parameter":"Parameter","Export":"Export","Copy":"Copy","Rating":"Rating","Close":"Close","Cancel":"Cancel","Link":"Link","Add":"Add","New":"New","Note":"Note","Success":"Success","Failure":"Failure","Ingredients":"Ingredients","Supermarket":"Supermarket","Categories":"Categories","Category":"Category","Selected":"Selected","min":"min","Servings":"Servings","Waiting":"Waiting","Preparation":"Preparation","External":"External","Size":"Size","Files":"Files","File":"File","Edit":"Edit","Delete":"Delete","Open":"Open","Ok":"Open","Save":"Save","Step":"Step","Search":"Search","Import":"Import","Print":"Print","Settings":"Settings","or":"or","and":"and","Information":"Information","Download":"Download","Create":"Create","Advanced Search Settings":"Advanced Search Settings","View":"View","Recipes":"Recipes","Move":"Move","Merge":"Merge","Parent":"Parent","delete_confirmation":"Are you sure that you want to delete {source}?","move_confirmation":"Move {child} to parent {parent}","merge_confirmation":"Replace {source} with {target}","create_rule":"and create automation","move_selection":"Select a parent {type} to move {source} to.","merge_selection":"Replace all occurrences of {source} with the selected {type}.","Root":"Root","Ignore_Shopping":"Ignore Shopping","Shopping_Category":"Shopping Category","Edit_Food":"Edit Food","Move_Food":"Move Food","New_Food":"New Food","Hide_Food":"Hide Food","Food_Alias":"Food Alias","Unit_Alias":"Unit Alias","Keyword_Alias":"Keyword Alias","Delete_Food":"Delete Food","No_ID":"ID not found, cannot delete.","Meal_Plan_Days":"Future meal plans","merge_title":"Merge {type}","move_title":"Move {type}","Food":"Food","Recipe_Book":"Recipe Book","del_confirmation_tree":"Are you sure that you want to delete {source} and all of it\'s children?","delete_title":"Delete {type}","create_title":"New {type}","edit_title":"Edit {type}","Name":"Name","Type":"Type","Description":"Description","Recipe":"Recipe","tree_root":"Root of Tree","Icon":"Icon","Unit":"Unit","No_Results":"No Results","New_Unit":"New Unit","Create_New_Shopping Category":"Create New Shopping Category","Create_New_Food":"Add New Food","Create_New_Keyword":"Add New Keyword","Create_New_Unit":"Add New Unit","Create_New_Meal_Type":"Add New Meal Type","and_up":"& Up","Instructions":"Instructions","Unrated":"Unrated","Automate":"Automate","Empty":"Empty","Key_Ctrl":"Ctrl","Key_Shift":"Shift","Time":"Time","Text":"Text","Shopping_list":"Shopping List","Create_Meal_Plan_Entry":"Create meal plan entry","Edit_Meal_Plan_Entry":"Edit meal plan entry","Title":"Title","Week":"Week","Month":"Month","Year":"Year","Planner":"Planner","Planner_Settings":"Planner settings","Period":"Period","Plan_Period_To_Show":"Show weeks, months or years","Periods":"Periods","Plan_Show_How_Many_Periods":"How many periods to show","Starting_Day":"Starting day of the week","Meal_Types":"Meal types","Meal_Type":"Meal type","Clone":"Clone","Drag_Here_To_Delete":"Drag here to delete","Meal_Type_Required":"Meal type is required","Title_or_Recipe_Required":"Title or recipe selection required"}')},f347:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-modal",{attrs:{id:e.modal_id,size:"lg",title:e.modal_title,"hide-footer":"","aria-label":""}},[r("div",{staticClass:"row"},[r("div",{staticClass:"col col-md-12"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-6 col-lg-9"},[r("b-input-group",[r("b-form-input",{attrs:{id:"TitleInput",placeholder:e.entryEditing.title_placeholder},on:{change:function(t){e.missing_recipe=!1}},model:{value:e.entryEditing.title,callback:function(t){e.$set(e.entryEditing,"title",t)},expression:"entryEditing.title"}}),r("b-input-group-append",{staticClass:"d-none d-lg-block"},[r("b-button",{attrs:{variant:"primary"},on:{click:function(t){e.entryEditing.title=""}}},[r("i",{staticClass:"fa fa-eraser"})])],1)],1),e.missing_recipe?r("span",{staticClass:"text-danger"},[e._v(e._s(e.$t("Title_or_Recipe_Required")))]):e._e(),e.missing_recipe?e._e():r("small",{staticClass:"form-text text-muted",attrs:{tabindex:"-1"}},[e._v(e._s(e.$t("Title")))])],1),r("div",{staticClass:"col-6 col-lg-3"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.entryEditing.date,expression:"entryEditing.date"}],staticClass:"form-control",attrs:{type:"date",id:"DateInput"},domProps:{value:e.entryEditing.date},on:{input:function(t){t.target.composing||e.$set(e.entryEditing,"date",t.target.value)}}}),r("small",{staticClass:"form-text text-muted",attrs:{tabindex:"-1"}},[e._v(e._s(e.$t("Date")))])])]),r("div",{staticClass:"row mt-3"},[r("div",{staticClass:"col-12 col-lg-6 col-xl-6"},[r("b-form-group",[r("generic-multiselect",{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{initial_selection:e.entryEditing_initial_recipe,label:"name",model:e.Models.RECIPE,placeholder:e.$t("Recipe"),limit:10,multiple:!1},on:{change:e.selectRecipe}}),r("small",{staticClass:"form-text text-muted",attrs:{tabindex:"-1"}},[e._v(e._s(e.$t("Recipe")))])],1),r("b-form-group",{staticClass:"mt-3"},[r("generic-multiselect",{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{required:"",label:"name",model:e.Models.MEAL_TYPE,placeholder:e.$t("Meal_Type"),limit:10,multiple:!1,initial_selection:e.entryEditing_initial_meal_type,allow_create:!0,create_placeholder:e.$t("Create_New_Meal_Type")},on:{change:e.selectMealType,new:e.createMealType}}),e.missing_meal_type?r("span",{staticClass:"text-danger"},[e._v(e._s(e.$t("Meal_Type_Required")))]):e._e(),e.missing_meal_type?e._e():r("small",{staticClass:"form-text text-muted",attrs:{tabindex:"-1"}},[e._v(e._s(e.$t("Meal_Type")))])],1),r("b-form-group",{staticClass:"mt-3",attrs:{"label-for":"NoteInput",description:e.$t("Note")}},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.entryEditing.note,expression:"entryEditing.note"}],staticClass:"form-control",attrs:{id:"NoteInput",placeholder:e.$t("Note")},domProps:{value:e.entryEditing.note},on:{input:function(t){t.target.composing||e.$set(e.entryEditing,"note",t.target.value)}}})]),r("b-input-group",[r("b-form-input",{attrs:{id:"ServingsInput",placeholder:e.$t("Servings")},model:{value:e.entryEditing.servings,callback:function(t){e.$set(e.entryEditing,"servings",t)},expression:"entryEditing.servings"}})],1),r("small",{staticClass:"form-text text-muted",attrs:{tabindex:"-1"}},[e._v(e._s(e.$t("Servings")))])],1),r("div",{staticClass:"col-lg-6 d-none d-lg-block d-xl-block"},[null!=e.entryEditing.recipe?r("recipe-card",{attrs:{recipe:e.entryEditing.recipe}}):e._e()],1)]),r("div",{staticClass:"row mt-3 mb-3"},[r("div",{staticClass:"col-12"},[e.allow_delete?r("b-button",{attrs:{variant:"danger"},on:{click:e.deleteEntry}},[e._v(e._s(e.$t("Delete"))+" ")]):e._e(),r("b-button",{staticClass:"float-right",attrs:{variant:"primary"},on:{click:e.editEntry}},[e._v(e._s(e.$t("Save")))])],1)])])])])},i=[],o=(r("d3b7"),r("3ca3"),r("ddb0"),r("b0c0"),r("a026")),a=r("5f5b"),s=r("7432"),c=r("fa7d"),u=r("2b2d"),d=u.ApiApiFactory,p=r("fa7d"),l=p.StandardToasts;o["default"].use(a["a"]);var h={name:"MealPlanEditModal",props:{entry:Object,entryEditing_initial_recipe:Array,entryEditing_initial_meal_type:Array,modal_title:String,modal_id:{type:String,default:"edit-modal"},allow_delete:{type:Boolean,default:!0}},mixins:[c["ApiMixin"]],components:{GenericMultiselect:s["a"],RecipeCard:function(){return r.e("chunk-22ef2d6a").then(r.bind(null,"6b0a"))}},data:function(){return{entryEditing:{},missing_recipe:!1,missing_meal_type:!1}},watch:{entry:{handler:function(){this.entryEditing=Object.assign({},this.entry)},deep:!0}},methods:{editEntry:function(){this.missing_meal_type=!1,this.missing_recipe=!1;var e=!1;null==this.entryEditing.meal_type&&(this.missing_meal_type=!0,e=!0),null==this.entryEditing.recipe&&""===this.entryEditing.title&&(this.missing_recipe=!0,e=!0),e||(this.$bvModal.hide("edit-modal"),this.$emit("save-entry",this.entryEditing))},deleteEntry:function(){this.$bvModal.hide("edit-modal"),this.$emit("delete-entry",this.entryEditing)},selectMealType:function(e){this.missing_meal_type=!1,null!=e.val?this.entryEditing.meal_type=e.val:this.entryEditing.meal_type=null},createMealType:function(e){var t=this;if(""!=e){var r=new d;r.createMealType({name:e}).then((function(e){t.$emit("reload-meal-types")})).catch((function(e){l.makeStandardToast(l.FAIL_UPDATE)}))}},selectRecipe:function(e){this.missing_recipe=!1,null!=e.val?(this.entryEditing.recipe=e.val,this.entryEditing.title_placeholder=this.entryEditing.recipe.name,this.entryEditing.servings=this.entryEditing.recipe.servings):(this.entryEditing.recipe=null,this.entryEditing.title_placeholder="",this.entryEditing.servings=1)}}},f=h,b=r("2877"),m=Object(b["a"])(f,n,i,!1,null,"d7c9f446",null);t["a"]=m.exports},f349:function(e,t,r){"use strict";r("8502")},f693:function(e){e.exports=JSON.parse('{"err_fetching_resource":"Il y a eu une erreur pour récupérer une ressource !","err_creating_resource":"Il y a eu une erreur pour créer une ressource !","err_updating_resource":"Il y a eu une erreur pour mettre à jour une ressource !","err_deleting_resource":"Il y a eu une erreur pour supprimer une ressource !","success_fetching_resource":"Ressource correctement récupérée !","success_creating_resource":"Ressource correctement créée !","success_updating_resource":"Ressource correctement mise à jour !","success_deleting_resource":"Ressource correctement supprimée !","import_running":"Importation en cours, veuillez patienter !","all_fields_optional":"Tous les champs sont optionnels et peuvent être laissés vides.","convert_internal":"Convertir en recette interne","show_only_internal":"Montrer uniquement les recettes internes","Log_Recipe_Cooking":"Marquer la recette comme cuisinée","External_Recipe_Image":"Image externe de recette","Add_to_Shopping":"Ajouter à la liste de courses","Add_to_Plan":"Ajouter au menu","Step_start_time":"Heure de départ de l\'étape","Sort_by_new":"Trier par nouveautés","Recipes_per_page":"Nombre de recettes par page","Manage_Books":"Gérer les favoris","Meal_Plan":"Menu de la semaine","Select_Book":"Sélectionnez livre","Recipe_Image":"Image de la recette","Import_finished":"Importation finie","View_Recipes":"Voir les recettes","Log_Cooking":"Marquer comme cuisiné","New_Recipe":"Nouvelle recette","Url_Import":"Importation de l\'url","Reset_Search":"Réinitialiser la recherche","Recently_Viewed":"Vu récemment","Load_More":"Charger plus","Keywords":"Mots-clés","Books":"Livres","Proteins":"Protéines","Fats":"Matières grasses","Carbohydrates":"Glucides","Calories":"Calories","Nutrition":"Informations nutritionnelles","Date":"Date","Share":"Partager","Export":"Exporter","Copy":"Copier","Rating":"Note","Close":"Fermer","Link":"Lien","Add":"Ajouter","New":"Nouveau","Success":"Réussite","Failure":"Échec","Ingredients":"Ingrédients","Supermarket":"Supermarché","Categories":"Catégories","Category":"Catégorie","Selected":"Sélectionné","min":"min","Servings":"Portions","Waiting":"Attente","Preparation":"Préparation","External":"Externe","Size":"Taille","Files":"Fichiers","File":"Fichier","Edit":"Modifier","Cancel":"Annuler","Delete":"Supprimer","Open":"Ouvrir","Ok":"Ouvrir","Save":"Sauvegarder","Step":"Étape","Search":"Rechercher","Import":"Importer","Print":"Imprimer","Settings":"Paramètres","or":"ou","and":"et","Information":"Information","Download":"Télécharger","Create":"Créer","show_split_screen":"Voir la vue séparée","New_Keyword":"Nouveau mot-clé","Delete_Keyword":"Supprimer mot-clé","Move_Keyword":"Déplacer mot-clé","Merge_Keyword":"Fusionner mots-clés","Hide_Recipes":"Cacher recettes","Advanced Search Settings":"Paramètres de recherche avancée","View":"Voir","Recipes":"Recettes","Move":"Déplacer","Merge":"Fusionner","Parent":"Parent","move_confirmation":"Déplacer {child} vers le parent {parent}","merge_confirmation":"Remplacer {source} par {target}","Root":"Racine","delete_confirmation":"Êtes-vous sûr de vouloir supprimer {source} ?","Shopping_Category":"Catégorie de courses","Ignore_Shopping":"Ignorer les courses","Edit_Food":"Modifier aliment","Move_Food":"Déplacer aliment","New_Food":"Nouvel aliment","Hide_Food":"Cacher l\'aliment","Delete_Food":"Supprimer l\'aliment","No_ID":"ID introuvable, il n\'a pas pu être supprimé.","Meal_Plan_Days":"Futurs menus","merge_title":"Fusionner {type}","Food":"Aliment","Recipe_Book":"Livre de recettes","delete_title":"Supprimer {type}","create_title":"Nouveau {type}","edit_title":"Modifier {type}","Name":"Nom","Description":"Description","Recipe":"Recette","tree_root":"Racine de l\'arbre","Edit_Keyword":"Modifier mot-clé","Hide_Keywords":"Cacher mots-clés","move_selection":"Sélectionner un parent {type} pour y déplacer {source}.","merge_selection":"Remplace toutes les occurrences de {source} par {type}.","move_title":"Déplacer {type}","del_confirmation_tree":"Êtes-vous sûr de vouloir supprimer {source} et tous ses enfants ?"}')},fa7d:function(e,t,r){"use strict";r.r(t),r.d(t,"ToastMixin",(function(){return j})),r.d(t,"makeToast",(function(){return O})),r.d(t,"StandardToasts",(function(){return y})),r.d(t,"GettextMixin",(function(){return _})),r.d(t,"djangoGettext",(function(){return S})),r.d(t,"ResolveUrlMixin",(function(){return k})),r.d(t,"resolveDjangoUrl",(function(){return w})),r.d(t,"getUserPreference",(function(){return P})),r.d(t,"calculateAmount",(function(){return C})),r.d(t,"roundDecimals",(function(){return R})),r.d(t,"ApiMixin",(function(){return U})),r.d(t,"getConfig",(function(){return I})),r.d(t,"getForm",(function(){return A})),r.d(t,"CardMixin",(function(){return M}));var n=r("b85c"),i=r("5530"),o=r("3835"),a=r("2909"),s=r("53ca"),c=r("d4ec"),u=r("bee2"),d=r("ade3"),p=(r("99af"),r("4fad"),r("159b"),r("caad"),r("2532"),r("b0c0"),r("b64b"),r("4de4"),r("7db0"),r("d81d"),r("d3b7"),r("3ca3"),r("ddb0"),r("59e4")),l=r("9225");function h(e,t,r){var n=Math.floor(e),i=1,o=n+1,a=1;if(e!==n)while(i<=t&&a<=t){var s=(n+o)/(i+a);if(e===s){i+a<=t?(i+=a,n+=o,a=t+1):i>a?a=t+1:i=t+1;break}et&&(i=a,n=o),!r)return[0,n,i];var c=Math.floor(n/i);return[c,n-c*i,i]}var f=r("2b2d"),b=r("bc3a"),m=r.n(b),g=r("6369"),v=r("a026"),j={methods:{makeToast:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return O(e,t,r)}}};function O(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new p["a"];n.$bvToast.toast(t,{title:e,variant:r,toaster:"b-toaster-bottom-right",solid:!0})}var y=function(){function e(){Object(c["a"])(this,e)}return Object(u["a"])(e,null,[{key:"makeStandardToast",value:function(t){switch(t){case e.SUCCESS_CREATE:O(l["a"].tc("Success"),l["a"].tc("success_creating_resource"),"success");break;case e.SUCCESS_FETCH:O(l["a"].tc("Success"),l["a"].tc("success_fetching_resource"),"success");break;case e.SUCCESS_UPDATE:O(l["a"].tc("Success"),l["a"].tc("success_updating_resource"),"success");break;case e.SUCCESS_DELETE:O(l["a"].tc("Success"),l["a"].tc("success_deleting_resource"),"success");break;case e.FAIL_CREATE:O(l["a"].tc("Failure"),l["a"].tc("err_creating_resource"),"danger");break;case e.FAIL_FETCH:O(l["a"].tc("Failure"),l["a"].tc("err_fetching_resource"),"danger");break;case e.FAIL_UPDATE:O(l["a"].tc("Failure"),l["a"].tc("err_updating_resource"),"danger");break;case e.FAIL_DELETE:O(l["a"].tc("Failure"),l["a"].tc("err_deleting_resource"),"danger");break}}}]),e}();Object(d["a"])(y,"SUCCESS_CREATE","SUCCESS_CREATE"),Object(d["a"])(y,"SUCCESS_FETCH","SUCCESS_FETCH"),Object(d["a"])(y,"SUCCESS_UPDATE","SUCCESS_UPDATE"),Object(d["a"])(y,"SUCCESS_DELETE","SUCCESS_DELETE"),Object(d["a"])(y,"FAIL_CREATE","FAIL_CREATE"),Object(d["a"])(y,"FAIL_FETCH","FAIL_FETCH"),Object(d["a"])(y,"FAIL_UPDATE","FAIL_UPDATE"),Object(d["a"])(y,"FAIL_DELETE","FAIL_DELETE");var _={methods:{_:function(e){return S(e)}}};function S(e){return window.gettext(e)}var k={methods:{resolveDjangoUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t)}}};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==t)return window.Urls[e]();if("object"!=Object(s["a"])(t))return window.Urls[e](t);if("object"==Object(s["a"])(t)){if(1===t.length)return window.Urls[e](t);if(2===t.length)return window.Urls[e](t[0],t[1]);if(3===t.length)return window.Urls[e](t[0],t[1],t[2])}}function P(e){if(void 0!==window.USER_PREF)return window.USER_PREF[e]}function C(e,t){if(P("use_fractions")){var r="",n=h(e*t,10,!0);return n[0]>0&&(r+=n[0]),n[1]>0&&(r+=" ".concat(n[1],"").concat(n[2],"")),r}return R(e*t)}function R(e){var t=P("user_fractions")?P("user_fractions"):2;return+(Math.round(e+"e+".concat(t))+"e-".concat(t))}m.a.defaults.xsrfCookieName="csrftoken",m.a.defaults.xsrfHeaderName="X-CSRFTOKEN";var U={data:function(){return{Models:g["b"],Actions:g["a"]}},methods:{genericAPI:function(e,t,r){var n,i=I(e,t);if(null!==i&&void 0!==i&&null!==(n=i.config)&&void 0!==n&&n.function)return F[i.config.function](t,r,i);var o=i.function,s=L(r,i),c=new f["ApiApiFactory"];return c[o].apply(c,Object(a["a"])(s))},genericGetAPI:function(e,t){return m.a.get(this.resolveDjangoUrl(e),{params:t,emulateJSON:!0})}}};function E(e,t,r){if(e)for(var n=0,i=Object.entries(e);n