PageSourceSearch

https://fridaysmealprep.com/build/assets/Edit-x1TgZeC5.js

js fridaysmealprep.com collected 2026-10-08 10:00:12 UTC 3,110 bytes, 1 lines download raw bytes

1import{r as u,z as l,o as n,c as m,w as p,a as s,d as g,F as v,f as y,n as k,i as j,t as O,b as _,g as x}from"./app-Dnf-fLiT.js";import{_ as E}from"./AppLayout-CIOWnT_F.js";import{_ as T}from"./BackButton-DA8ltAv0.js";import w from"./ProductForm-CtY8QFWM.js";import A from"./ProductVariantForm-RBO4ocgy.js";import"./transition-CmoQZIVR.js";import"./multiselect-CTNzmuOv.js";import"./FDALabel-Cs-TxNx-.js";const C={class:"hidden sm:block"},D={class:"border-b border-gray-200"},F={class:"-mb-px flex space-x-8","aria-label":"Tabs"},B=["onClick","disabled","aria-current"],S={__name:"Edit",props:{is_editing:Boolean,product:Object,products:Object,collections:Object,product_highlights:Object,filter_categories:Object,meal_tags:Object,ingredient_restrictions:Object,programs:Object,nutrition_facts:Array,themes:Array,featured_ingredients:Object,deleted_featured_ingredients:Array,admin_menus:Object},setup(o){const e=o,i=u("DEFAULT"),f=new Array(new Object({name:"Default",key:"DEFAULT",current:!0})),c=u(f.concat(e.themes.map(t=>new Object({name:t.name,key:t.key,current:t.key==i.value})))),h=l(()=>e.themes.find(t=>t.key===i.value)),d=l(()=>{var t;return((t=e.product.product_theme_variants)==null?void 0:t.find(a=>a.theme.key==i.value))||{}}),b=t=>{var a;i.value=t,c.value.forEach(r=>r.current=r.key==i.value),d.value=((a=e.product.product_theme_variants)==null?void 0:a.find(r=>r.theme.key==i.value))||{}};return(t,a)=>(n(),m(E,{title:e.is_editing?e.product.name+" — Edit Product":"Create Product",crumbs:[{title:"Products",link:t.route("admin.products.index")},{title:e.is_editing?"Edit Product":"Create Product"}]},{rightHeader:p(()=>[_(T,{href:t.route("admin.products.index")},null,8,["href"])]),default:p(()=>[s("div",null,[s("div",C,[s("div",D,[s("nav",F,[(n(!0),g(v,null,y(c.value,r=>(n(),g("a",{key:r.name,href:"#",onClick:j(L=>b(r.key),["prevent"]),disabled:!e.is_editing,class:k([r.current?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 px-1 py-4 text-sm font-medium"]),"aria-current":r.current?"page":void 0},O(r.name),11,B))),128))])])])]),_(w,{disabled:i.value!="DEFAULT","is-editing":e.is_editing,product:e.product,"filter-categories":e.filter_categories,"product-highlights":e.product_highlights,collections:e.collections,"ingredient-restrictions":e.ingredient_restrictions,products:e.products,"meal-tags":e.meal_tags,"featured-ingredients":e.featured_ingredients,"deleted-featured-ingredients":e.deleted_featured_ingredients??[],"admin-menus":e.admin_menus??[]},null,8,["disabled","is-editing","product","filter-categories","product-highlights","collections","ingredient-restrictions","products","meal-tags","featured-ingredients","deleted-featured-ingredients","admin-menus"]),i.value!="DEFAULT"?(n(),m(A,{key:0,product:e.product,theme:h.value,programs:o.programs,"product-variant":d.value,"nutrition-facts":e.nutrition_facts,"is-editing":d.value},null,8,["product","theme","programs","product-variant","nutrition-facts","is-editing"])):x("",!0)]),_:1},8,["title","crumbs"]))}};export{S as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.