"use strict";exports.id=54875,exports.ids=[1613,3946,5418,6847,11289,13518,15851,18292,18752,19721,23994,25423,26327,29228,30197,33670,35899,38232,42102,46375,47804,48708,51609,52578,54875,58280,60613,62085,64483,68756,71089,73990,74959,81565,82994,83037,84466,86864,91137,93470,95911,96371,97340],exports.modules={33670:(a,b,c)=>{c.d(b,{T:()=>g});var d=c(48249),e=c(67484),f=c(14113);let g=({label:a,error:b,helperText:c,className:g,id:h,variant:i="default",...j})=>{let k=(0,e.useId)(),l=h||k,m="marketing"===i;return(0,d.jsxs)("div",{className:"w-full",children:[a&&(0,d.jsx)("label",{htmlFor:l,className:m?"mb-1.5 block text-sm font-medium text-slate-800":"mb-1 block text-sm font-medium text-[var(--foreground)]",children:a}),(0,d.jsx)("textarea",{id:l,className:(0,f.xW)("w-full resize-y transition-colors focus:outline-none",m?"rounded-lg border border-slate-200 bg-white px-3 py-2.5 text-sm text-slate-900 shadow-none placeholder:text-slate-400 focus:border-secondary-800 focus:ring-2 focus:ring-secondary-900/15":"rounded-none border px-4 py-2 focus:ring-2 focus:ring-[var(--primary-500)] focus:border-transparent",!m&&(b?"border-[var(--error)] focus:ring-red-500":"border-[var(--border)]"),m&&b?"border-red-400 focus:border-red-500 focus:ring-red-500/20":"",m?"":"bg-[var(--input)] text-[var(--foreground)]",g),...j}),b&&(0,d.jsx)("p",{className:"mt-1 text-sm text-[var(--error)]",children:b}),c&&!b&&(0,d.jsx)("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:c})]})}},60276:(a,b,c)=>{c.r(b),c.d(b,{default:()=>o});var d=c(48249),e=c(67484),f=c(19099),g=c(89531),h=c(60932),i=c(84466),j=c(61783),k=c(20524),l=c(10756),m=c(40433),n=c(91115);function o(){let a=(0,f.useRouter)(),[b,c]=(0,e.useState)(!1),o=async b=>{try{c(!0),await (0,l.lh)(b),(0,n.Te)("Event created successfully"),a.push(`${m.bw.ADMIN}/events`)}catch(a){throw(0,n.Qg)(a instanceof Error?a.message:"Failed to create event"),a}finally{c(!1)}};return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:(0,d.jsx)(h.u,{href:`${m.bw.ADMIN}/events`,children:(0,d.jsxs)(k.$,{variant:"outline",size:"sm",className:"w-fit",children:[(0,d.jsx)(g.AqJ,{className:"mr-2 h-4 w-4"}),"Back to events"]})})}),(0,d.jsx)(i.wc,{title:"Create event",description:"Set up a workshop, webinar, or session. It will be listed on your public Events page—not the homepage carousel."}),(0,d.jsx)(j.B,{onSubmit:o,onCancel:()=>a.push(`${m.bw.ADMIN}/events`),isLoading:b})]})}},84466:(a,b,c)=>{c.d(b,{so:()=>f,u9:()=>e,wc:()=>g});var d=c(48249);let e="w-full min-w-0 px-3 sm:w-auto sm:px-4";function f({children:a,columns:b=2,className:c=""}){return(0,d.jsx)("div",{className:`grid w-full gap-2 ${1===b?"grid-cols-1":3===b?"grid-cols-2 sm:grid-cols-3":"grid-cols-2"} sm:flex sm:w-auto sm:flex-wrap sm:justify-end sm:shrink-0 ${c}`,children:a})}function g({title:a,description:b,className:c="",children:e}){return(0,d.jsxs)("div",{className:`mb-6 flex flex-col gap-4 sm:mb-8 sm:flex-row sm:items-start sm:justify-between ${c}`,children:[(0,d.jsxs)("div",{className:"min-w-0",children:["string"==typeof a?(0,d.jsx)("h1",{className:"text-2xl font-bold text-[var(--foreground)] sm:text-3xl",children:a}):a,null!=b&&""!==b&&("string"==typeof b?(0,d.jsx)("p",{className:"mt-1 text-sm text-[var(--muted-foreground)] sm:mt-2 sm:text-base",children:b}):b)]}),e]})}}};