Files
dockerStuff/config/tandoor/staticfiles/vue3/assets/ShoppingSettings-BX-lg7k4.js
2025-11-16 21:46:46 +00:00

2 lines
3.8 KiB
JavaScript

import{d as g,h,w as o,ac as V,i as S,g as a,t as u,B as b,l as e,ag as $,z as p,j as r,af as d,U as i,S as m,f,L as l}from"./main-BhFWIRV_.js";const y={class:"text-h6"},_=g({__name:"ShoppingSettings",setup(v){return(n,t)=>(f(),h(V,null,{default:o(()=>[S("p",y,u(n.$t("Shopping_list")),1),a(b,{class:"mb-3"}),a($,{hint:n.$t("shopping_share_desc"),label:n.$t("shopping_share"),model:"User","allow-create":!1,modelValue:e(l)().userSettings.shoppingShare,"onUpdate:modelValue":t[0]||(t[0]=s=>e(l)().userSettings.shoppingShare=s),"item-label":"displayName",mode:"tags"},null,8,["hint","label","modelValue"]),a(d,{class:"mt-2",label:n.$t("shopping_auto_sync"),hint:n.$t("shopping_auto_sync_desc"),"persistent-hint":"",controlVariant:"split",modelValue:e(l)().userSettings.shoppingAutoSync,"onUpdate:modelValue":t[2]||(t[2]=s=>e(l)().userSettings.shoppingAutoSync=s),step:Number(e(l)().serverSettings.shoppingMinAutosyncInterval),min:e(l)().userSettings.shoppingAutoSync==0?0:Number(e(l)().serverSettings.shoppingMinAutosyncInterval)},{append:o(()=>[a(p,{onClick:t[1]||(t[1]=s=>e(l)().userSettings.shoppingAutoSync=0)},{default:o(()=>[r(u(n.$t("Disable")),1)]),_:1})]),_:1},8,["label","hint","modelValue","step","min"]),a(i,{label:n.$t("mealplan_autoadd_shopping"),hint:n.$t("mealplan_autoadd_shopping_desc"),"persistent-hint":"",modelValue:e(l)().userSettings.mealplanAutoaddShopping,"onUpdate:modelValue":t[3]||(t[3]=s=>e(l)().userSettings.mealplanAutoaddShopping=s)},null,8,["label","hint","modelValue"]),a(i,{label:n.$t("mealplan_autoexclude_onhand"),hint:n.$t("mealplan_autoexclude_onhand_desc"),"persistent-hint":"",modelValue:e(l)().userSettings.mealplanAutoexcludeOnhand,"onUpdate:modelValue":t[4]||(t[4]=s=>e(l)().userSettings.mealplanAutoexcludeOnhand=s)},null,8,["label","hint","modelValue"]),a(i,{label:n.$t("mealplan_autoinclude_related"),hint:n.$t("mealplan_autoinclude_related_desc"),"persistent-hint":"",modelValue:e(l)().userSettings.mealplanAutoincludeRelated,"onUpdate:modelValue":t[5]||(t[5]=s=>e(l)().userSettings.mealplanAutoincludeRelated=s)},null,8,["label","hint","modelValue"]),a(i,{label:n.$t("shopping_add_onhand"),hint:n.$t("shopping_add_onhand_desc"),"persistent-hint":"",modelValue:e(l)().userSettings.shoppingAddOnhand,"onUpdate:modelValue":t[6]||(t[6]=s=>e(l)().userSettings.shoppingAddOnhand=s)},null,8,["label","hint","modelValue"]),a(i,{label:n.$t("filter_to_supermarket"),hint:n.$t("filter_to_supermarket_desc"),"persistent-hint":"",modelValue:e(l)().userSettings.filterToSupermarket,"onUpdate:modelValue":t[7]||(t[7]=s=>e(l)().userSettings.filterToSupermarket=s)},null,8,["label","hint","modelValue"]),a(d,{class:"mt-2",label:n.$t("default_delay"),hint:n.$t("default_delay_desc"),"persistent-hint":"",controlVariant:"split",modelValue:e(l)().userSettings.defaultDelay,"onUpdate:modelValue":t[8]||(t[8]=s=>e(l)().userSettings.defaultDelay=s),min:1},null,8,["label","hint","modelValue"]),a(d,{class:"mt-2",label:n.$t("shopping_recent_days"),hint:n.$t("shopping_recent_days_desc"),"persistent-hint":"",controlVariant:"split",modelValue:e(l)().userSettings.shoppingRecentDays,"onUpdate:modelValue":t[9]||(t[9]=s=>e(l)().userSettings.shoppingRecentDays=s),min:0},null,8,["label","hint","modelValue"]),a(m,{label:n.$t("csv_delim_label"),hint:n.$t("csv_delim_help"),"persistent-hint":"",modelValue:e(l)().userSettings.csvDelim,"onUpdate:modelValue":t[10]||(t[10]=s=>e(l)().userSettings.csvDelim=s)},null,8,["label","hint","modelValue"]),a(m,{label:n.$t("csv_prefix_label"),hint:n.$t("csv_prefix_help"),"persistent-hint":"",modelValue:e(l)().userSettings.csvPrefix,"onUpdate:modelValue":t[11]||(t[11]=s=>e(l)().userSettings.csvPrefix=s)},null,8,["label","hint","modelValue"]),a(p,{class:"mt-3",color:"success",onClick:t[12]||(t[12]=s=>e(l)().updateUserSettings()),"prepend-icon":"$save"},{default:o(()=>[r(u(n.$t("Save")),1)]),_:1})]),_:1}))}});export{_ as default};