module.exports=[33354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},5050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20611),g=a.r(1722),h=a.r(38783)},95488,a=>{"use strict";var b=a.i(87924),c=a.i(74215);a.s(["Modal",0,function({isOpen:a,onClose:d,title:e,children:f,size:g}){return a?(0,b.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm p-4",children:(0,b.jsxs)("div",{className:`bg-card rounded-2xl w-full ${"lg"===g?"max-w-4xl":"max-w-lg"} shadow-2xl flex flex-col max-h-[90vh] border border-border`,children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-slate-200",children:[(0,b.jsx)("h2",{className:"text-xl font-heading font-bold text-card-foreground",children:e}),(0,b.jsx)("button",{onClick:d,className:"p-2 text-foreground/50 hover:text-foreground hover:bg-foreground/10 rounded-lg transition-colors",children:(0,b.jsx)(c.X,{className:"h-5 w-5"})})]}),(0,b.jsx)("div",{className:"p-6 overflow-y-auto",children:f})]})}):null}])},3512,a=>{"use strict";let b=(0,a.i(64831).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",0,b],3512)},22470,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(95488),e=a.i(57227),f=a.i(2691),g=a.i(78454),h=a.i(51934),i=a.i(74215),j=a.i(3512);a.s(["MediaPicker",0,function({name:a,defaultValue:k="",label:l}){let[m,n]=(0,c.useState)(!1),[o,p]=(0,c.useState)(k||""),[q,r]=(0,c.useState)([]),[s,t]=(0,c.useState)([]),[u,v]=(0,c.useState)(!1);async function w(){n(!0),v(!0);try{let[a,b]=await Promise.all([(0,f.getMedia)(null),(0,g.getFolders)(null)]);r(a),t(b)}catch(a){console.error("Failed to load media",a)}finally{v(!1)}}return(0,c.useEffect)(()=>{p(k||"")},[k]),(0,b.jsxs)("div",{className:"space-y-2",children:[l&&(0,b.jsx)("label",{className:"block text-sm font-semibold mb-1",children:l}),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[o?(0,b.jsxs)("div",{className:"relative h-24 w-24 rounded-xl border border-slate-200 overflow-hidden bg-slate-100 group",children:[o.endsWith(".pdf")?(0,b.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-slate-50 text-red-500 font-bold text-[10px]",children:"PDF"}):(0,b.jsx)("img",{src:o,alt:"Selected",className:"w-full h-full object-cover"}),(0,b.jsx)("button",{type:"button",onClick:()=>p(""),className:"absolute top-1 right-1 p-1 bg-white/80 hover:bg-white text-red-500 rounded-full shadow-sm opacity-0 group-hover:opacity-100 transition-opacity",children:(0,b.jsx)(i.X,{className:"h-3 w-3"})})]}):(0,b.jsxs)("button",{type:"button",onClick:w,className:"h-24 w-24 rounded-xl border-2 border-dashed border-slate-200 flex flex-col items-center justify-center text-slate-400 hover:border-primary hover:text-primary transition-all bg-slate-50",children:[(0,b.jsx)(j.Plus,{className:"h-6 w-6 mb-1"}),(0,b.jsx)("span",{className:"text-[10px] font-medium uppercase",children:"Select"})]}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("input",{type:"text",name:a,value:o,onChange:a=>p(a.target.value),placeholder:"Or enter URL manually...",className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-foreground placeholder:text-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary/50 text-sm"}),(0,b.jsxs)("button",{type:"button",onClick:w,className:"mt-2 text-xs font-semibold text-primary hover:underline flex items-center gap-1",children:[(0,b.jsx)(h.ImageIcon,{className:"h-3 w-3"}),"Open Media Library"]})]})]}),(0,b.jsx)(d.Modal,{isOpen:m,onClose:()=>n(!1),title:"Media Library",size:"lg",children:(0,b.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-1",children:(0,b.jsx)(e.MediaGallery,{initialMedia:q,initialFolders:s,onSelect:function(a){p(a.url),n(!1)},selectable:!0})})})]})}])},64365,a=>{"use strict";let b=(0,a.i(64831).default)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash",0,b],64365)},20168,a=>{"use strict";let b=(0,a.i(64831).default)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);a.s(["Edit",0,b],20168)},50188,a=>{"use strict";a.s(["formatCurrency",0,function(a){return new Intl.NumberFormat("da-DK",{style:"currency",currency:"DKK"}).format(a)},"formatDate",0,function(a){return new Date(a).toLocaleDateString("en-DK",{year:"numeric",month:"long",day:"numeric"})}])}];

//# sourceMappingURL=_0w9x6qr._.js.map