PageSourceSearch

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

js beatthebomb.com collected 2026-09-26 03:28:04 UTC 8,590 bytes, 1 lines download raw bytes

1import{_ as ee,a as te,b as oe}from"./CCHJd4eH.js";import{_ as ne}from"./Ct70UkVf.js";import{_ as se,a as ae,b as le,c as ie}from"./Dj10djpJ.js";import{_ as re}from"./C-f4-Qy5.js";import{_ as de}from"./CiF7Basw.js";import{_ as ce}from"./jS9aBCZe.js";import{_ as me}from"./0Hf_kr57.js";import{_ as pe}from"./RLLgkEzh.js";import{_ as ue,a as _e,b as fe,c as be,d as xe,e as ge,f as ve,g as ye}from"./DpDpeJfo.js";import{e as he,l as we,x as u,c as w,a as t,b as o,w as s,E as C,h as a,v as ze,o as _,d as i,p as S,F as $e,r as De,t as d,n as ke,A as Ce,g as Se}from"#entry";import{u as Ve}from"./DgmzirMX.js";import{u as Ae}from"./BRJC_-Hn.js";import{P as Ee}from"./w-DR3gVW.js";import{P as Te}from"./Cd3unXvf.js";import{T as Ue}from"./DkiXgwtS.js";import"./CacwcQhS.js";import"./zNhCWlda.js";import"./6e2DFz5k.js";import"./DsXan2nO.js";import"./DZCbKU22.js";import"./vSSdCmu6.js";import"./DjkoA8ho.js";import"./DQwCFQKB.js";import"./CK9SMNR6.js";import"./DttKcmEo.js";import"./9gGBeuqq.js";import"./CyPiDsNh.js";const Be={class:"space-y-6"},Fe={class:"flex items-center justify-between"},Ne={key:1,class:"w-full text-sm"},Pe={class:"px-4 py-3 text-zinc-300"},He={class:"px-4 py-3 font-mono text-xs text-zinc-400"},Ie={class:"px-4 py-3 font-medium text-white"},Le={class:"px-4 py-3 max-w-xs truncate text-zinc-300"},Me={class:"px-4 py-3 text-zinc-400 text-xs"},je={class:"px-4 py-3"},Oe={class:"px-4 py-3"},qe={class:"flex items-center gap-1"},Re={class:"grid grid-cols-2 gap-4"},Ge={class:"space-y-1.5"},Qe={class:"space-y-1.5"},Je={class:"space-y-1.5"},Ke={class:"space-y-1.5"},We={class:"space-y-1.5"},Xe={class:"flex items-center gap-3"},Ye={class:"flex justify-end gap-3 pt-2"},Ct=he({__name:"confirmation-steps",async setup(Ze){let g,$;const{data:z,refresh:D}=([g,$]=we(()=>Ve("/api/admin/cms/confirmation-steps","$UQHoORMdps")),g=await g,$(),g),{toast:v}=Ae(),c=u(!1),m=u(null),f=u(!1),b=u(!1),y=u(null),k=()=>({step_order:0,icon:"",heading:"",body:"",location_id:"",enabled:!0}),l=u(k());function V(){m.value=null,l.value=k(),l.value.step_order=z.value?.length??0,c.value=!0}function A(r){m.value=r,l.value={...r,location_id:r.location_id||""},c.value=!0}function E(r){y.value=r,b.value=!0}async function T(){f.value=!0;try{const r={...l.value,location_id:l.value.location_id||null};m.value?await $fetch(`/api/admin/cms/confirmation-steps/${m.value.id}`,{method:"PUT",body:r}):await $fetch("/api/admin/cms/confirmation-steps",{method:"POST",body:r}),c.value=!1,D(),v({title:"Saved",description:m.value?"Step updated.":"Step created."})}catch(r){v({title:"Error",description:r.data?.message||"Failed to save step",variant:"destructive"})}finally{f.value=!1}}async function U(){if(y.value!==null)try{await $fetch(`/api/admin/cms/confirmation-steps/${y.value}`,{method:"DELETE"}),D(),v({title:"Deleted",description:"Confirmation step deleted."})}catch(r){v({title:"Error",description:r.data?.message||"Failed to delete step",variant:"destructive"})}finally{b.value=!1,y.value=null}}return(r,e)=>{const x=ee,B=ze("EmptyState"),F=ne,N=oe,P=te,H=ie,I=le,p=re,h=de,L=ce,M=me,j=pe,O=ae,q=se,R=be,G=xe,Q=fe,J=ve,K=ye,W=ge,X=_e,Y=ue;return _(),w("div",Be,[t("div",Fe,[e[10]||(e[10]=t("div",null,[t("h1",{class:"text-3xl font-bold text-white"},"Confirmation Steps"),t("p",{class:"text-zinc-400 mt-1"},"Manage the steps shown on the booking confirmation page")],-1)),o(x,{onClick:V},{default:s(()=>[o(a(Ee),{class:"mr-2 h-4 w-4"}),e[9]||(e[9]=i(" Add Step ",-1))]),_:1})]),o(P,{class:"bg-zinc-900 border-zinc-800 overflow-hidden"},{default:s(()=>[o(N,{class:"p-0"},{default:s(()=>[a(z)?.length?(_(),w("table",Ne,[e[11]||(e[11]=t("thead",null,[t("tr",{class:"border-b border-zinc-800 text-zinc-400 text-xs uppercase tracking-wider"},[t("th",{class:"px-4 py-3 text-left font-medium"},"Order"),t("th",{class:"px-4 py-3 text-left font-medium"},"Icon"),t("th",{class:"px-4 py-3 text-left font-medium"},"Heading"),t("th",{class:"px-4 py-3 text-left font-medium"},"Body"),t("th",{class:"px-4 py-3 text-left font-medium"},"Location"),t("th",{class:"px-4 py-3 text-left font-medium"},"Status"),t("th",{class:"px-4 py-3 text-left font-medium w-28"},"Actions")])],-1)),t("tbody",null,[(_(!0),w($e,null,De(a(z),n=>(_(),w("tr",{key:n.id,class:"border-b border-zinc-800 last:border-0 hover:bg-zinc-800/50 transition-colors"},[t("td",Pe,d(n.step_order),1),t("td",He,d(n.icon||"-"),1),t("td",Ie,d(n.heading),
11),t("td",Le,d(n.body),1),t("td",Me,d(n.location_id||"Global"),1),t("td",je,[o(F,{variant:"outline",class:ke(n.enabled?"border-green-600 text-green-400":"border-red-600 text-red-400")},{default:s(()=>[i(d(n.enabled?"Enabled":"Disabled"),1)]),_:2},1032,["class"])]),t("td",Oe,[t("div",qe,[o(x,{variant:"ghost",size:"icon",onClick:Z=>A(n),"aria-label":"Edit step"},{default:s(()=>[o(a(Te),{class:"h-4 w-4"})]),_:1},8,["onClick"]),o(x,{variant:"ghost",size:"icon",onClick:Z=>E(n.id),class:"text-red-400 hover:text-red-300 hover:bg-red-950/30","aria-label":"Delete step"},{default:s(()=>[o(a(Ue),{class:"h-4 w-4"})]),_:1},8,["onClick"])])])]))),128))])])):(_(),S(B,{key:0,title:"No confirmation steps",description:"Add your first confirmation step to get started.",class:"py-16"}))]),_:1})]),_:1}),o(q,{open:a(c),"onUpdate:open":e[7]||(e[7]=n=>C(c)?c.value=n:null)},{default:s(()=>[o(O,{class:"bg-zinc-900 border-zinc-800 text-white max-w-lg"},{default:s(()=>[o(I,null,{default:s(()=>[o(H,null,{default:s(()=>[i(d(a(m)?"Edit Step":"Add Step"),1)]),_:1})]),_:1}),t("form",{onSubmit:Ce(T,["prevent"]),class:"space-y-4 mt-2"},[t("div",Re,[t("div",Ge,[o(p,null,{default:s(()=>[...e[12]||(e[12]=[i("Step Order ",-1),t("span",{class:"text-red-400"},"*",-1)])]),_:1}),o(h,{modelValue:a(l).step_order,"onUpdate:modelValue":e[0]||(e[0]=n=>a(l).step_order=n),modelModifiers:{number:!0},type:"number",min:"0",required:"",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),t("div",Qe,[o(p,null,{default:s(()=>[...e[13]||(e[13]=[i("Icon ",-1),t("span",{class:"text-zinc-500 text-xs"},"(emoji or name)",-1)])]),_:1}),o(h,{modelValue:a(l).icon,"onUpdate:modelValue":e[1]||(e[1]=n=>a(l).icon=n),placeholder:"e.g. 🎉 or calendar",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])])]),t("div",Je,[o(p,null,{default:s(()=>[...e[14]||(e[14]=[i("Heading ",-1),t("span",{class:"text-red-400"},"*",-1)])]),_:1}),o(h,{modelValue:a(l).heading,"onUpdate:modelValue":e[2]||(e[2]=n=>a(l).heading=n),required:"",placeholder:"e.g. Check your email",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),t("div",Ke,[o(p,null,{default:s(()=>[...e[15]||(e[15]=[i("Body ",-1),t("span",{class:"text-red-400"},"*",-1)])]),_:1}),o(L,{modelValue:a(l).body,"onUpdate:modelValue":e[3]||(e[3]=n=>a(l).body=n),required:"",rows:3,placeholder:"Describe what the customer should do or know...",class:"bg-zinc-800 border-zinc-700 text-white"},null,8,["modelValue"])]),t("div",We,[o(p,null,{default:s(()=>[...e[16]||(e[16]=[i("Location ID ",-1),t("span",{class:"text-zinc-500 text-xs"},"(leave blank for global)",-1)])]),_:1}),o(h,{modelValue:a(l).location_id,"onUpdate:modelValue":e[4]||(e[4]=n=>a(l).location_id=n),placeholder:"e.g. brooklyn",class:"bg-zinc-800 border-zinc-700 text-white font-mono"},null,8,["modelValue"])]),t("div",Xe,[o(M,{checked:a(l).enabled,"onUpdate:checked":e[5]||(e[5]=n=>a(l).enabled=n),id:"step-enabled"},null,8,["checked"]),o(p,{for:"step-enabled",class:"cursor-pointer"},{default:s(()=>[...e[17]||(e[17]=[i("Enabled",-1)])]),_:1})]),t("div",Ye,[o(x,{type:"button",variant:"outline",class:"border-zinc-700 text-zinc-300 hover:bg-zinc-800",onClick:e[6]||(e[6]=n=>c.value=!1)},{default:s(()=>[...e[18]||(e[18]=[i(" Cancel ",-1)])]),_:1}),o(x,{type:"submit",disabled:a(f)},{default:s(()=>[a(f)?(_(),S(j,{key:0,class:"mr-2 h-4 w-4"})):Se("",!0),i(" "+d(a(f)?"Saving...":"Save"),1)]),_:1},8,["disabled"])])],32)]),_:1})]),_:1},8,["open"]),o(Y,{open:a(b),"onUpdate:open":e[8]||(e[8]=n=>C(b)?b.value=n:null)},{default:s(()=>[o(X,{class:"bg-zinc-900 border-zinc-800 text-white"},{default:s(()=>[o(Q,null,{default:s(()=>[o(R,null,{default:s(()=>[...e[19]||(e[19]=[i("Delete confirmation step?",-1)])]),_:1}),o(G,{class:"text-zinc-400"},{default:s(()=>[...e[20]||(e[20]=[i(" This action cannot be undone. ",-1)])]),_:1})]),_:1}),o(W,null,{default:s(()=>[o(J,{class:"bg-zinc-800 border-zinc-700 text-white hover:bg-zinc-700"},{default:s(()=>[...e[21]||(e[21]=[i("Cancel",-1)])]),_:1}),o(K,{class:"bg-red-600 hover:bg-red-700 text-white",onClick:U},{default:s(()=>[...e[22]||(e[22]=[i("Delete",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}}});
1export{Ct 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.