PageSourceSearch

https://atlanta.tickets.beatthebomb.com/_nuxt/IJv9WLiT.js

js beatthebomb.com collected 2026-09-26 03:27:39 UTC 21,446 bytes, 1 lines download raw bytes

1import{_ as Ee,a as Be,b as Oe}from"./CCHJd4eH.js";import{_ as Ae}from"./Ct70UkVf.js";import{_ as Ie,a as Ne,b as Le,c as Fe}from"./Dj10djpJ.js";import{_ as Me}from"./C-f4-Qy5.js";import{_ as Re}from"./CiF7Basw.js";import{_ as je}from"./jS9aBCZe.js";import{_ as Ge,a as Je,b as He,c as Ke,d as Xe}from"./dxtsC-PC.js";import{_ as qe,a as Qe,b as We,c as Ye,d as Ze,e as et,f as tt,g as lt}from"./DpDpeJfo.js";import{e as st,x as b,f as D,l as ot,m as at,c,a as l,g as z,b as o,B as I,Z as nt,h as s,E as N,F as w,r as L,w as n,d as r,t as p,v as it,o as d,p as V,n as ae,K as H}from"#entry";import{u as rt}from"./DgmzirMX.js";import{u as dt}from"./BRJC_-Hn.js";import{P as ne}from"./w-DR3gVW.js";import{L as ie}from"./NcoBN1k7.js";import{P as ut}from"./Cd3unXvf.js";import{T as ct}from"./DkiXgwtS.js";import{X as pt}from"./uEik5qPj.js";import{U as mt}from"./zq15NDRP.js";import"./CacwcQhS.js";import"./zNhCWlda.js";import"./6e2DFz5k.js";import"./DsXan2nO.js";import"./DZCbKU22.js";import"./vSSdCmu6.js";import"./DjkoA8ho.js";import"./eBjFu-IB.js";import"./DttKcmEo.js";import"./DQwCFQKB.js";import"./9gGBeuqq.js";import"./CyPiDsNh.js";const _t={class:"space-y-6"},ft={class:"flex items-center justify-between"},bt={class:"flex items-center gap-3"},gt=["value"],xt={key:0,class:"rounded-md border border-[#18B9ff]/30 bg-[#18B9ff]/10 px-4 py-2 text-sm text-[#a0d8ff]"},yt={class:"font-semibold text-white capitalize"},vt={key:1,class:"overflow-x-auto"},zt={class:"w-full text-sm"},wt={class:"border-b border-zinc-800 text-zinc-400 text-xs uppercase tracking-wider"},ht={key:0,class:"px-4 py-3 text-left font-medium"},kt={class:"px-4 py-3 text-zinc-400"},Vt={class:"px-4 py-3 font-mono text-xs text-cyan-400"},Ct={class:"px-4 py-3"},$t={class:"font-medium text-white"},St={key:0,class:"text-xs text-zinc-500 mt-0.5"},Dt={class:"px-4 py-3 text-zinc-300 capitalize"},Ut={class:"px-4 py-3 text-zinc-300"},Pt={class:"px-4 py-3"},Tt={key:1,class:"text-zinc-500 text-xs"},Et={key:0,class:"px-4 py-3"},Bt={class:"px-4 py-3"},Ot=["disabled","onClick"],At={class:"px-4 py-3"},It={class:"flex items-center gap-1"},Nt={key:0,class:"text-xs text-zinc-400 mt-1"},Lt={class:"text-cyan-400 capitalize"},Ft={class:"space-y-4 mt-2"},Mt={class:"grid grid-cols-2 gap-4"},Rt={class:"space-y-1.5"},jt={key:0,class:"text-xs text-zinc-500"},Gt={class:"space-y-1.5"},Jt={class:"grid grid-cols-2 gap-4"},Ht={class:"space-y-1.5"},Kt={class:"space-y-1.5"},Xt={class:"space-y-1.5"},qt={class:"space-y-1.5"},Qt={class:"space-y-1.5"},Wt={class:"space-y-1.5"},Yt={key:0,class:"flex items-start gap-3 mb-2"},Zt=["src"],el={class:"flex gap-2"},tl={class:"flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium bg-zinc-800 border border-zinc-700 text-zinc-300 hover:bg-zinc-700 cursor-pointer transition-colors"},ll=["disabled"],sl={key:1,class:"text-red-400 text-xs mt-1"},ol={class:"grid grid-cols-2 gap-4"},al={class:"space-y-1.5"},nl={class:"space-y-1.5"},il={class:"space-y-1.5"},rl={class:"border border-zinc-700 p-4 space-y-3"},dl={class:"flex items-center justify-between"},ul={class:"flex items-center gap-2 cursor-pointer"},cl={class:"grid grid-cols-2 gap-4"},pl={class:"space-y-1.5"},ml={class:"space-y-1.5"},_l={class:"space-y-1.5"},fl={class:"space-y-1.5"},bl={class:"grid grid-cols-2 gap-4"},gl={class:"space-y-1.5"},xl={class:"space-y-1.5"},yl={class:"flex items-center gap-6"},vl={class:"flex items-center gap-2 cursor-pointer"},zl={class:"flex items-center gap-2 cursor-pointer"},wl={class:"flex justify-end gap-3 pt-4 border-t border-zinc-700 mt-4"},K="__global__",Zl=st({__name:"products",async setup(hl){let U,X;const re=["brooklyn","atlanta","dc","denver","philadelphia","charlotte","houston","staging"],_=b(K),x=D(()=>_.value===K),de=D(()=>x.value?{}:{location:_.value}),{data:F,refresh:P}=([U,X]=ot(()=>rt("/api/admin/cms/products",{query:de},"$tLpToU5KXx")),U=await U,X(),U),{toast:h}=dt();at(_,()=>{P()});const q=D(()=>(F.value||[]).filter(i=>!i.location_id)),Q=D(()=>{const i={};if(x.value)return i;for(const e of F.value||[])e.location_id===_.value&&(i[e.slug]=e);return i}),M=D(()=>{if(x.value)return F.value||[];const i=q.value.map(u=>Q.value[u.slug]??u),e=new Set(q.value.map(u=>u.slug));for(const[u,g]of Object.entries(Q.value))e.has(u)||i.push(g);return i});function W(i){return!x.value&&i.location_id===_.value}function Y(i){return x.value||W(i)}const k=b(!1),y=b(null),$=b(!1),S=b(!1),T=b(null),E=b(null);async function ue(i){E.value=i.id;try{await $fetch(`/api/admin/cms/products/${i.id}`,{method:"PUT",body:{...i,enabled:!i.enabled}}),P(),h({title:i.enabled?"Disabled":"Enabled",description:`${i.display_name} ${i.enabled?"disabled":"enabled"}.`})}catch(e){h({title:"Error",description:e.data?.message||"Failed to toggle product",variant:"destructive"})}finally{E.value=null}}const C=b("[]"),B=b(!1),O=b("");async function ce(i){const e=i.target,u=e.files?.[0];if(u){B.value=!0,O.value="";try{const g=new FormData;g.append("image",u);const v=await $fetch("/api/admin/cms/upload-image",{method:"POST",body:g});a.value.image_url=v.url,h({title:"Uploaded",description:"Image uploaded successfully."})}catch(g){const v=g.data?.message||g.message||"Failed to upload image";O.value=v,h({title:"Upload failed",description:v,variant:"destructive"})}finally{B.value=!1,e.value=""}}}const Z=()=>({slug:"",display_name:"",subtitle:"",short_description:"",price_label:"",image_url:"",roller_product_type:"",roller_parent_product_id:"",card_back_title:"",card_back_duration:"",card_back_description:"",has_card_flip:!1,category:"",min_players:2,max_players:12,has_tiers:!0,enabled:!0,display_order:0,cta_text:"",location_id:null}
1),a=b(Z()),pe=["mission","bundle","arcade","add-on","other"],me=["","session","addon","merchandise","video"],A=b(!1);function ee(i){let e=i.card_back_includes;if(typeof e=="string")try{e=JSON.parse(e)}catch{e=[]}C.value=JSON.stringify(e??[],null,2)}function _e(){y.value=null,A.value=!1,a.value=Z(),a.value.display_order=M.value?.length??0,a.value.location_id=x.value?null:_.value,C.value="[]",k.value=!0}function fe(i){y.value=i,A.value=!1,a.value={...i,enabled:!!i.enabled,has_tiers:!!i.has_tiers,has_card_flip:!!i.has_card_flip,location_id:i.location_id??null},ee(i),k.value=!0}function be(i){y.value=null,A.value=!0,a.value={...i,enabled:!!i.enabled,has_tiers:!!i.has_tiers,has_card_flip:!!i.has_card_flip,location_id:_.value},ee(i),k.value=!0}function ge(i){T.value=i,S.value=!0}async function xe(){let i=[];try{const e=C.value?.trim();if(e&&e!==""){const u=JSON.parse(e);Array.isArray(u)&&(i=u)}}catch{i=[]}$.value=!0;try{const{id:e,...u}=a.value,g={...u,card_back_includes:i},v=y.value?`/api/admin/cms/products/${y.value.id}`:"/api/admin/cms/products",R=y.value?"PUT":"POST";await $fetch(v,{method:R,body:g}),k.value=!1,P(),h({title:"Saved",description:y.value?"Product updated.":"Product created."})}catch(e){const u=e.data?.message||e.message||"Failed to save product";h({title:"Error",description:u,variant:"destructive"}),console.error("Save error:",e)}finally{$.value=!1}}async function ye(){if(T.value!==null)try{await $fetch(`/api/admin/cms/products/${T.value}`,{method:"DELETE"}),P(),h({title:"Deleted",description:"Product deleted."})}catch(i){h({title:"Error",description:i.data?.message||"Failed to delete product",variant:"destructive"})}finally{S.value=!1,T.value=null}}return(i,e)=>{const u=Ee,g=it("EmptyState"),v=Ae,R=Oe,ve=Be,ze=Fe,we=Le,m=Me,f=Re,j=je,te=He,le=Je,G=Xe,se=Ke,oe=Ge,he=Ne,ke=Ie,Ve=Ye,Ce=Ze,$e=We,Se=tt,De=lt,Ue=et,Pe=Qe,Te=qe;return d(),c("div",_t,[l("div",ft,[e[26]||(e[26]=l("div",null,[l("h1",{class:"text-3xl font-bold text-white"},"Product Catalog"),l("p",{class:"text-zinc-400 mt-1"},"Manage CMS products — missions, bundles, arcade entries")],-1)),l("div",bt,[I(l("select",{"onUpdate:modelValue":e[0]||(e[0]=t=>N(_)?_.value=t:null),class:"bg-[#222] border border-[#444] text-white rounded-md px-3 py-2 text-sm focus:outline-none focus:border-[#18B9ff] capitalize min-w-[160px]"},[l("option",{value:K},"Global (default)"),(d(),c(w,null,L(re,t=>l("option",{key:t,value:t,class:"capitalize"},p(t.charAt(0).toUpperCase()+t.slice(1)),9,gt)),64))],512),[[nt,s(_)]]),o(u,{onClick:_e},{default:n(()=>[o(s(ne),{class:"mr-2 h-4 w-4"}),e[25]||(e[25]=r(" Add Product ",-1))]),_:1})])]),s(x)?z("",!0):(d(),c("div",xt,[e[27]||(e[27]=r(" Editing card-copy overrides for ",-1)),l("span",yt,p(s(_)),1),e[28]||(e[28]=r(". Global products with no override are shown as ",-1)),e[29]||(e[29]=l("span",{class:"font-semibold"},"Inheriting",-1)),e[30]||(e[30]=r(" — use the override button to create a location-specific version (prefilled from global). Editing or deleting an override only affects this location. ",-1))])),o(ve,{class:"bg-zinc-900 border-zinc-800 overflow-hidden"},{default:n(()=>[o(R,{class:"p-0"},{default:n(()=>[s(M)?.length?(d(),c("div",vt,[l("table",zt,[l("thead",null,[l("tr",wt,[e[31]||(e[31]=l("th",{class:"px-4 py-3 text-left font-medium"},"Order",-1)),e[32]||(e[32]=l("th",{class:"px-4 py-3 text-left font-medium"},"Slug",-1)),e[33]||(e[33]=l("th",{class:"px-4 py-3 text-left font-medium"},"Name",-1)),e[34]||(e[34]=l("th",{class:"px-4 py-3 text-left font-medium"},"Category",-1)),e[35]||(e[35]=l("th",{class:"px-4 py-3 text-left font-medium"},"Players",-1)),e[36]||(e[36]=l("th",{class:"px-4 py-3 text-left font-medium"},"Tiers",-1)),s(x)?z("",!0):(d(),c("th",ht,"Source")),e[37]||(e[37]=l("th",{class:"px-4 py-3 text-left font-medium"},"Status",-1)),e[38]||(e[38]=l("th",{class:"px-4 py-3 text-left font-medium w-28"},"Actions",-1))])]),l("tbody",null,[(d(!0),c(w,null,L(s(M),t=>(d(),c("tr",{key:`${t.slug}-${t.id}`,class:"border-b border-zinc-800 last:border-0 hover:bg-zinc-800/50 transition-colors"},[l("td",kt,p(t.display_order),1),l("td",Vt,p(t.slug),1),l("td",Ct,[l("div",$t,p(t.display_name),1),t.subtitle?(d(),c("div",St,p(t.subtitle),
11)):z("",!0)]),l("td",Dt,p(t.category||"-"),1),l("td",Ut,p(t.min_players)+"–"+p(t.max_players),1),l("td",Pt,[t.has_tiers?(d(),V(v,{key:0,variant:"outline",class:"border-cyan-600 text-cyan-400 text-xs"},{default:n(()=>[...e[39]||(e[39]=[r("Yes",-1)])]),_:1})):(d(),c("span",Tt,"No"))]),s(x)?z("",!0):(d(),c("td",Et,[W(t)?(d(),V(v,{key:0,class:"bg-green-500/15 text-green-400 border-green-500/30 border text-[11px]"},{default:n(()=>[...e[40]||(e[40]=[r(" Override ",-1)])]),_:1})):(d(),V(v,{key:1,class:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30 border text-[11px]"},{default:n(()=>[...e[41]||(e[41]=[r(" Inheriting ",-1)])]),_:1}))])),l("td",Bt,[Y(t)?(d(),c("button",{key:0,class:ae(["inline-flex items-center gap-1.5 px-2 py-1 rounded text-xs font-medium border cursor-pointer transition-colors",t.enabled?"border-green-600 text-green-400 hover:bg-green-950/30":"border-red-600 text-red-400 hover:bg-red-950/30"]),disabled:s(E)===t.id,onClick:J=>ue(t)},[s(E)===t.id?(d(),V(s(ie),{key:0,class:"h-3 w-3 animate-spin"})):z("",!0),r(" "+p(t.enabled?"Enabled":"Disabled"),1)],10,Ot)):(d(),c("span",{key:1,class:ae(["inline-flex items-center gap-1.5 px-2 py-1 rounded text-xs font-medium border opacity-60",t.enabled?"border-green-700 text-green-500":"border-red-700 text-red-500"])},p(t.enabled?"Enabled":"Disabled"),3))]),l("td",At,[l("div",It,[Y(t)?(d(),c(w,{key:1},[o(u,{variant:"ghost",size:"icon",onClick:J=>fe(t),"aria-label":"Edit product"},{default:n(()=>[o(s(ut),{class:"h-4 w-4"})]),_:1},8,["onClick"]),o(u,{variant:"ghost",size:"icon",onClick:J=>ge(t.id),class:"text-red-400 hover:text-red-300 hover:bg-red-950/30","aria-label":"Delete product"},{default:n(()=>[o(s(ct),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64)):(d(),V(u,{key:0,variant:"outline",size:"sm",class:"border-cyan-700 text-cyan-400 hover:bg-cyan-950/30 h-8",onClick:J=>be(t)},{default:n(()=>[o(s(ne),{class:"mr-1 h-3.5 w-3.5"}),e[42]||(e[42]=r(" Override ",-1))]),_:1},8,["onClick"]))])])]))),128))])])])):(d(),V(g,{key:0,title:"No products yet",description:"Add your first product to the catalog.",class:"py-16"}))]),_:1})]),_:1}),o(ke,{open:s(k),"onUpdate:open":e[23]||(e[23]=t=>N(k)?k.value=t:null)},{default:n(()=>[o(he,{class:"bg-zinc-900 border-zinc-800 text-white max-w-2xl max-h-[90vh] overflow-y-auto"},{default:n(()=>[o(we,null,{default:n(()=>[o(ze,null,{default:n(()=>[s(A)?(d(),c(w,{key:0},[r("Create "+p(s(_))+" override",1)],64)):s(y)?(d(),c(w,{key:1},[r("Edit Product")],64)):(d(),c(w,{key:2},[r("Add Product")],64))]),_:1}),s(x)?z("",!0):(d(),c("p",Nt,[s(a).location_id?(d(),c(w,{key:0},[e[43]||(e[43]=r(" Saving as a ",-1)),l("span",Lt,p(s(a).location_id),1),e[44]||(e[44]=r("-specific row. Other locations are unaffected. ",-1))],64)):(d(),c(w,{key:1},[e[45]||(e[45]=r(" Saving as a ",-1)),e[46]||(e[46]=l("span",{class:"text-yellow-400"},"Global",-1)),e[47]||(e[47]=r(" row. ",-1))],64))]))]),_:1}),l("div",Ft,[l("div",Mt,[l("div",Rt,[o(m,null,{default:n(()=>[...e[48]||(e[48]=[r("Slug ",-1),l("span",{class:"text-red-400"},"*",-1)])]),_:1}),o(f,{modelValue:s(a).slug,"onUpdate:modelValue":e[1]||(e[1]=t=>s(a).slug=t),placeholder:"e.g. paint-bomb",disabled:!!s(y),class:"bg-zinc-800 border-zinc-700 text-white font-mono"},null,8,["modelValue","disabled"]),s(y)?z("",!0):(d(),c("p",jt,"Lowercase, hyphens only. Cannot be changed."))]),l("div",Gt,[o(m,null,{default:n(()=>[...e[49]||(e[49]=[r("Display Order",-1)])]),_:1}),o(f,{modelValue:s(a).display_order,"onUpdate:modelValue":e[2]||(e[2]=t=>s(a).display_order=t),modelModifiers:{number:!0},type:"number",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])])]),l("div",Jt,[l("div",Ht,[o(m,null,{default:n(()=>[...e[50]||(e[50]=[r("Display Name ",-1),l("span",{class:"text-red-400"},"*",-1)])]),_:1}),o(f,{modelValue:s(a).display_name,"onUpdate:modelValue":e[3]||(e[3]=t=>s(a).display_name=t),placeholder:"e.g. Paint Bomb",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",Kt,[o(m,null,{default:n(()=>[...e[51]||(e[51]=[r("Subtitle",-1)])]),_:1}),o(f,{modelValue:s(a).subtitle,"onUpdate:modelValue":e[4]||(e[4]=t=>s(a).subtitle=t),placeholder:"Short tagline",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])])]),l("div",Xt,[o(m,null,{default:n(()=>[...e[52]||(e[52]=[r("Short Description",-1)])]),_:1}),o(j,{modelValue:s(a).short_description,"onUpdate:modelValue":e[5]||(e[5]=t=>s(a).short_description=t),rows:2,class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",qt,[o(m,null,{default:n(()=>[...e[53]||(e[53]=[r("Price Label",-1)])]),_:1}),o(f,{modelValue:s(a).price_label,"onUpdate:modelValue":e[6]||(e[6]=t=>s(a).price_label=t),placeholder:"e.g. From $29/person",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",Qt,[o(m,null,{default:n(()=>[...e[54]||(e[54]=[r("CTA Text ",-1),l("span",{class:"text-zinc-500 text-xs"},"(optional — overrides default button text)",-1)])]),_:1}
1),o(f,{modelValue:s(a).cta_text,"onUpdate:modelValue":e[7]||(e[7]=t=>s(a).cta_text=t),placeholder:"e.g. BOOK NOW",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",Wt,[o(m,null,{default:n(()=>[...e[55]||(e[55]=[r("Image",-1)])]),_:1}),s(a).image_url?(d(),c("div",Yt,[l("img",{src:s(a).image_url,alt:"Product image",class:"w-24 h-24 object-cover rounded border border-zinc-700"},null,8,Zt),o(u,{type:"button",variant:"ghost",size:"icon",class:"text-red-400 hover:text-red-300",onClick:e[8]||(e[8]=t=>s(a).image_url="")},{default:n(()=>[o(s(pt),{class:"h-4 w-4"})]),_:1})])):z("",!0),l("div",el,[l("label",tl,[o(s(mt),{class:"h-4 w-4"}),r(" "+p(s(B)?"Uploading...":"Upload")+" ",1),l("input",{type:"file",accept:"image/*",class:"hidden",onChange:ce,disabled:s(B)},null,40,ll)]),o(f,{modelValue:s(a).image_url,"onUpdate:modelValue":e[9]||(e[9]=t=>s(a).image_url=t),type:"text",placeholder:"or paste URL...",class:"bg-zinc-800 border-zinc-700 text-white flex-1"},null,8,["modelValue"])]),s(O)?(d(),c("p",sl,p(s(O)),1)):z("",!0)]),l("div",ol,[l("div",al,[o(m,null,{default:n(()=>[...e[56]||(e[56]=[r("Category",-1)])]),_:1}),o(oe,{modelValue:s(a).category,"onUpdate:modelValue":e[10]||(e[10]=t=>s(a).category=t)},{default:n(()=>[o(le,{class:"bg-zinc-800 border-zinc-700 text-white"},{default:n(()=>[o(te,{placeholder:"Select category"})]),_:1}),o(se,{class:"bg-zinc-800 border-zinc-700"},{default:n(()=>[o(G,{value:"",class:"text-white"},{default:n(()=>[...e[57]||(e[57]=[r("None",-1)])]),_:1}),(d(),c(w,null,L(pe,t=>o(G,{key:t,value:t,class:"text-white capitalize"},{default:n(()=>[r(p(t),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["modelValue"])]),l("div",nl,[o(m,null,{default:n(()=>[...e[58]||(e[58]=[r("Roller Product Type",-1)])]),_:1}),o(oe,{modelValue:s(a).roller_product_type,"onUpdate:modelValue":e[11]||(e[11]=t=>s(a).roller_product_type=t)},{default:n(()=>[o(le,{class:"bg-zinc-800 border-zinc-700 text-white"},{default:n(()=>[o(te,{placeholder:"Select type"})]),_:1}),o(se,{class:"bg-zinc-800 border-zinc-700"},{default:n(()=>[(d(),c(w,null,L(me,t=>o(G,{key:t,value:t,class:"text-white capitalize"},{default:n(()=>[r(p(t||"None"),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["modelValue"])])]),l("div",il,[o(m,null,{default:n(()=>[...e[59]||(e[59]=[r("Roller Parent Product ID",-1)])]),_:1}),o(f,{modelValue:s(a).roller_parent_product_id,"onUpdate:modelValue":e[12]||(e[12]=t=>s(a).roller_parent_product_id=t),placeholder:"Roller product ID",class:"bg-zinc-800 border-zinc-700 text-white font-mono"},null,8,["modelValue"])]),l("div",rl,[l("div",dl,[e[61]||(e[61]=l("p",{class:"text-sm font-medium text-zinc-300"},"Card Back (Flip)",-1)),l("label",ul,[I(l("input",{type:"checkbox","onUpdate:modelValue":e[13]||(e[13]=t=>s(a).has_card_flip=t),class:"h-4 w-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500"},null,512),[[H,s(a).has_card_flip]]),e[60]||(e[60]=l("span",{class:"text-sm text-zinc-300"},"Enable card flip",-1))])]),l("div",cl,[l("div",pl,[o(m,null,{default:n(()=>[...e[62]||(e[62]=[r("Card Back Title",-1)])]),_:1}),o(f,{modelValue:s(a).card_back_title,"onUpdate:modelValue":e[14]||(e[14]=t=>s(a).card_back_title=t),class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",ml,[o(m,null,{default:n(()=>[...e[63]||(e[63]=[r("Card Back Duration",-1)])]),_:1}),o(f,{modelValue:s(a).card_back_duration,"onUpdate:modelValue":e[15]||(e[15]=t=>s(a).card_back_duration=t),placeholder:"e.g. 75 min",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])])]),l("div",_l,[o(m,null,{default:n(()=>[...e[64]||(e[64]=[r("Card Back Description",-1)])]),_:1}),o(j,{modelValue:s(a).card_back_description,"onUpdate:modelValue":e[16]||(e[16]=t=>s(a).card_back_description=t),rows:2,class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",fl,[o(m,null,{default:n(()=>[...e[65]||(e[65]=[r("Card Back Includes ",-1),l("span",{class:"text-zinc-500 text-xs"},"(JSON array)",-1)])]),_:1}),o(j,{modelValue:s(C),"onUpdate:modelValue":e[17]||(e[17]=t=>N(C)?C.value=t:null),rows:4,placeholder:'["Item 1", "Item 2"]',class:"bg-zinc-800 border-zinc-700 text-white font-mono text-xs"},null,8,["modelValue"])])]),l("div",bl,[l("div",gl,[o(m,null,{default:n(()=>[...e[66]||(e[66]=[r("Min Players",-1)])]),_:1}),o(f,{modelValue:s(a).min_players,"onUpdate:modelValue":e[18]||(e[18]=t=>s(a).min_players=t),modelModifiers:{number:!0},type:"number",min:"1",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),l("div",xl,[o(m,null,{default:n(()=>[...e[67]||(e[67]=[r("Max Players",-1)])]),_:1}),o(f,{modelValue:s(a).max_players,"onUpdate:modelValue":e[19]||(e[19]=t=>s(a).max_players=t),modelModifiers:{number:!0},type:"number",min:"1",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])])]),l("div",yl,[l("label",vl,[I(l("input",{type:"checkbox","onUpdate:modelValue":e[20]||(e[20]=t=>
1s(a).has_tiers=t),class:"h-4 w-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500"},null,512),[[H,s(a).has_tiers]]),e[68]||(e[68]=l("span",{class:"text-sm text-zinc-300"},"Has Tiers",-1))]),l("label",zl,[I(l("input",{type:"checkbox","onUpdate:modelValue":e[21]||(e[21]=t=>s(a).enabled=t),class:"h-4 w-4 rounded border-zinc-600 bg-zinc-800 text-green-500 focus:ring-green-500"},null,512),[[H,s(a).enabled]]),e[69]||(e[69]=l("span",{class:"text-sm text-zinc-300"},"Enabled",-1))])]),l("div",wl,[o(u,{type:"button",variant:"outline",class:"border-zinc-700 text-zinc-300 hover:bg-zinc-800",onClick:e[22]||(e[22]=t=>k.value=!1)},{default:n(()=>[...e[70]||(e[70]=[r(" Cancel ",-1)])]),_:1}),o(u,{type:"button",disabled:s($),onClick:xe},{default:n(()=>[s($)?(d(),V(s(ie),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):z("",!0),r(" "+p(s($)?"Saving...":"Save Product"),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["open"]),o(Te,{open:s(S),"onUpdate:open":e[24]||(e[24]=t=>N(S)?S.value=t:null)},{default:n(()=>[o(Pe,{class:"bg-zinc-900 border-zinc-800 text-white"},{default:n(()=>[o($e,null,{default:n(()=>[o(Ve,null,{default:n(()=>[...e[71]||(e[71]=[r("Delete product?",-1)])]),_:1}),o(Ce,{class:"text-zinc-400"},{default:n(()=>[...e[72]||(e[72]=[r(" This will permanently remove the product from the catalog. This action cannot be undone. ",-1)])]),_:1})]),_:1}),o(Ue,null,{default:n(()=>[o(Se,{class:"bg-zinc-800 border-zinc-700 text-white hover:bg-zinc-700"},{default:n(()=>[...e[73]||(e[73]=[r("Cancel",-1)])]),_:1}),o(De,{class:"bg-red-600 hover:bg-red-700 text-white",onClick:ye},{default:n(()=>[...e[74]||(e[74]=[r("Delete",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}}});export{Zl 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.