(function(e){function r(r){for(var n,i,s=r[0],c=r[1],l=r[2],d=0,_=[];d1){var o=n[1];r[o]=e(t)}})),r}n["default"].use(o["a"]),r["a"]=new o["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:a()})},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 om {child} naar te verplaatsen.","merge_selection":"Vervang alle voorvallen van {source} door het type {type}.","Root":"Bron","show_split_screen":"Toon gesplitste weergave","New_Keyword":"Nieuw Etiket","Delete_Keyword":"Verwijder Etiket","Edit_Keyword":"Bewerk Etiket","Move_Keyword":"Verplaats Etiket","Hide_Keywords":"Verberg Etiketten","Hide_Recipes":"Verberg Recepten","Advanced Search Settings":"Geavanceerde zoekinstellingen","Merge":"Voeg samen","delete_confimation":"Weet je zeker dat je {kw} en zijn kinderen wil verwijderen?","Merge_Keyword":"Voeg Etiket samen"}')},da67:function(e,r,t){"use strict";t.r(r);t("e260"),t("e6cf"),t("cca6"),t("a79d");var n=t("a026"),o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{attrs:{id:"app"}},[t("label",[e._v(" "+e._s(e.$t("Search"))+" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.filter,expression:"filter"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.filter},on:{input:function(r){r.target.composing||(e.filter=r.target.value)}}})]),t("div",{staticClass:"row"},e._l(e.filtered_recipes,(function(r){return t("div",{key:r.id,staticClass:"col-md-3"},[t("b-card",{attrs:{title:r.name,tag:"article"}},[t("b-card-text",[t("span",{staticClass:"text-muted"},[e._v(e._s(e.formatDateTime(r.updated_at)))]),e._v(" "+e._s(r.description)+" ")]),t("b-button",{attrs:{href:e.resolveDjangoUrl("view_recipe",r.id),variant:"primary"}},[e._v(e._s(e.$t("Open")))])],1)],1)})),0)])},a=[],i=(t("159b"),t("caad"),t("2532"),t("b0c0"),t("4de4"),t("d3b7"),t("ddb0"),t("ac1f"),t("466d"),t("5f5b")),s=(t("2dd8"),t("fa7d")),c=t("c1df"),l=t.n(c);n["default"].use(i["a"]),n["default"].prototype.moment=l.a;var u={name:"OfflineView",mixins:[s["b"]],computed:{filtered_recipes:function(){var e=this,r={};return this.recipes.forEach((function(t){t.name.toLowerCase().includes(e.filter.toLowerCase())&&(t.id in r?t.updated_at>r[t.id].updated_at&&(r[t.id]=t):r[t.id]=t)})),r}},data:function(){return{recipes:[],filter:""}},mounted:function(){this.loadRecipe()},methods:{formatDateTime:function(e){return l.a.locale(window.navigator.language),l()(e).format("LLL")},loadRecipe:function(){var e=this;caches.open("api-recipe").then((function(r){r.keys().then((function(r){r.forEach((function(r){caches.match(r).then((function(r){r.json().then((function(r){e.recipes.push(r)}))}))}))}))}))}}},d=u,_=t("2877"),p=Object(_["a"])(d,o,a,!1,null,null,null),g=p.exports,f=t("9225");n["default"].config.productionTip=!1,new n["default"]({i18n:f["a"],render:function(e){return e(g)}}).$mount("#app")},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":""}')},edd4:function(e){e.exports=JSON.parse('{"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!","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":"Show 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","Recipes_per_page":"Recipes per Page","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","Move_Keyword":"Move Keyword","Merge_Keyword":"Merge Keyword","Hide_Keywords":"Hide Keywords","Hide_Recipes":"Hide Recipes","Keywords":"Keywords","Books":"Books","Proteins":"Proteins","Fats":"Fats","Carbohydrates":"Carbohydrates","Calories":"Calories","Nutrition":"Nutrition","Date":"Date","Share":"Share","Export":"Export","Copy":"Copy","Rating":"Rating","Close":"Close","Cancel":"Cancel","Link":"Link","Add":"Add","New":"New","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_confimation":"Are you sure that you want to delete {kw} and all of it\'s children?","move_confirmation":"Move {child} to parent {parent}","merge_confirmation":"Replace {source} with {target}","move_selection":"Select a parent to move {child} to.","merge_selection":"Replace all occurences of {source} with the selected {type}.","Root":"Root"}')},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"}')},fa7d:function(e,r,t){"use strict";t.d(r,"d",(function(){return u})),t.d(r,"g",(function(){return d})),t.d(r,"c",(function(){return _})),t.d(r,"a",(function(){return p})),t.d(r,"f",(function(){return g})),t.d(r,"b",(function(){return f})),t.d(r,"h",(function(){return m})),t.d(r,"e",(function(){return S}));var n=t("53ca"),o=t("d4ec"),a=t("bee2"),i=t("ade3"),s=(t("99af"),t("59e4")),c=t("9225");function l(e,r,t){var n=Math.floor(e),o=1,a=n+1,i=1;if(e!==n)while(o<=r&&i<=r){var s=(n+a)/(o+i);if(e===s){o+i<=r?(o+=i,n+=a,i=r+1):o>i?i=r+1:o=r+1;break}er&&(o=i,n=a),!t)return[0,n,o];var c=Math.floor(n/o);return[c,n-c*o,o]}var u={methods:{makeToast:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return d(e,r,t)}}};function d(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new s["a"];n.$bvToast.toast(r,{title:e,variant:t,toaster:"b-toaster-top-center",solid:!0})}var _=function(){function e(){Object(o["a"])(this,e)}return Object(a["a"])(e,null,[{key:"makeStandardToast",value:function(r){switch(r){case e.SUCCESS_CREATE:d(c["a"].tc("Success"),c["a"].tc("success_creating_resource"),"success");break;case e.SUCCESS_FETCH:d(c["a"].tc("Success"),c["a"].tc("success_fetching_resource"),"success");break;case e.SUCCESS_UPDATE:d(c["a"].tc("Success"),c["a"].tc("success_updating_resource"),"success");break;case e.SUCCESS_DELETE:d(c["a"].tc("Success"),c["a"].tc("success_deleting_resource"),"success");break;case e.FAIL_CREATE:d(c["a"].tc("Failure"),c["a"].tc("success_creating_resource"),"danger");break;case e.FAIL_FETCH:d(c["a"].tc("Failure"),c["a"].tc("err_fetching_resource"),"danger");break;case e.FAIL_UPDATE:d(c["a"].tc("Failure"),c["a"].tc("err_updating_resource"),"danger");break;case e.FAIL_DELETE:d(c["a"].tc("Failure"),c["a"].tc("err_deleting_resource"),"danger");break}}}]),e}();Object(i["a"])(_,"SUCCESS_CREATE","SUCCESS_CREATE"),Object(i["a"])(_,"SUCCESS_FETCH","SUCCESS_FETCH"),Object(i["a"])(_,"SUCCESS_UPDATE","SUCCESS_UPDATE"),Object(i["a"])(_,"SUCCESS_DELETE","SUCCESS_DELETE"),Object(i["a"])(_,"FAIL_CREATE","FAIL_CREATE"),Object(i["a"])(_,"FAIL_FETCH","FAIL_FETCH"),Object(i["a"])(_,"FAIL_UPDATE","FAIL_UPDATE"),Object(i["a"])(_,"FAIL_DELETE","FAIL_DELETE");var p={methods:{_:function(e){return g(e)}}};function g(e){return window.gettext(e)}var f={methods:{resolveDjangoUrl:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return m(e,r)}}};function m(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==r)return window.Urls[e]();if("object"!=Object(n["a"])(r))return window.Urls[e](r);if("object"==Object(n["a"])(r)){if(1===r.length)return window.Urls[e](r);if(2===r.length)return window.Urls[e](r[0],r[1]);if(3===r.length)return window.Urls[e](r[0],r[1],r[2])}}function h(e){return window.USER_PREF[e]}function S(e,r){if(h("use_fractions")){var t="",n=l(e*r,10,!0);return n[0]>0&&(t+=n[0]),n[1]>0&&(t+=" ".concat(n[1],"").concat(n[2],"")),t}return b(e*r)}function b(e){var r=h("user_fractions")?h("user_fractions"):2;return+(Math.round(e+"e+".concat(r))+"e-".concat(r))}}});