1/*! For license information please see 6394.79e1e897.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[6394],{6394(e,a,s){s.r(a),s.d(a,{default:()=>S});var t=s(89379),r=s(65043),n=s(79722),d=s(56328),l=s(27033),i=s(22024),c=s(99996),o=s(22633),m=s(35087),h=s(71360),u=s(88693),p=s(9855),x=s(91140),v=s(13390),f=s(92264),b=s(59938),g=s(51654),y=s(13416),A=s(84370),j=s(77996),N=s(95792),w=s(70579);const k="".concat("","/api"),_=()=>{const e=localStorage.getItem("token")||localStorage.getItem("access_token");return e?{Authorization:"Bearer ".concat(e)}:{}},M={enabled:!0,phrases:[],cta_text:"Gutschein sichern",cta_url:"/shop/gutscheine",theme:"burgundy-gold",speed_seconds:38,dismiss_days:7,starts_at:"",ends_at:""},S=()=>{const[e,a]=(0,r.useState)(M),[s,S]=(0,r.useState)(!0),[C,q]=(0,r.useState)(!1),[R,V]=(0,r.useState)(null),[z,B]=(0,r.useState)(0);(0,r.useEffect)(()=>{(async()=>{S(!0);try{const[e,s]=await Promise.allSettled([n.A.get("".concat(k,"/voucher-marquee/admin"),{headers:_()}),n.A.get("".concat(k,"/voucher-marquee/admin/stats?days=30"),{headers:_()})]);"fulfilled"===e.status&&a((0,t.A)((0,t.A)({},M),e.value.data)),"fulfilled"===s.status&&V(s.value.data)}catch(r){var e,s;d.oR.error("Laden fehlgeschlagen: "+((null===(e=r.response)||void 0===e||null===(s=e.data)||void 0===s?void 0:s.detail)||r.message))}finally{S(!1)}})()},[]);const L=(s,r)=>{const n=[...e.phrases],d=s+r;d<0||d>=n.length||([n[s],n[d]]=[n[d],n[s]],a((0,t.A)((0,t.A)({},e),{},{phrases:n})))};return s?(0,w.jsxs)("div",{className:"p-8 flex items-center justify-center text-muted-foreground","data-testid":"vm-admin-loading",children:[(0,w.jsx)(i.A,{className:"h-5 w-5 mr-2 animate-spin"})," Banner-Einstellungen werden geladen\u2026"]}):(0,w.jsxs)("div",{className:"p-6 space-y-6 max-w-5xl mx-auto","data-testid":"vm-admin-root",children:[(0,w.jsx)(N.w,{activeTab:"voucher-marquee"}),(0,w.jsxs)("header",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,w.jsxs)("div",{children:[(0,w.jsxs)("h1",{className:"text-3xl font-bold flex items-center gap-2",children:[(0,w.jsx)(m.A,{className:"h-6 w-6 text-amber-500"}),"Voucher-Banner"]}),(0,w.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Steuere die Lauf-Anzeige f\xfcr Erlebnis-Gutscheine ganz oben auf der Startseite. Phrasen rotieren als Endlos-Schleife. \xc4nderungen sind nach dem Speichern sofort live."})]}),(0,w.jsx)(v.$,{onClick:async()=>{q(!0);try{const a=(0,t.A)((0,t.A)({},e),{},{speed_seconds:Number(e.speed_seconds)||38,dismiss_days:Number(e.dismiss_days)||7,starts_at:e.starts_at||null,ends_at:e.ends_at||null});await n.A.put("".concat(k,"/voucher-marquee/admin"),a,{headers:_()}),d.oR.success("Banner gespeichert. Frontend nutzt die neuen Werte sofort.");try{localStorage.removeItem("du_voucher_marquee_dismissed_at")}catch(r){}B(e=>e+1)}catch(l){var a,s;d.oR.error("Speichern fehlgeschlagen: "+((null===(a=l.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.detail)||l.message))}finally{q(!1)}},disabled:C,className:"bg-amber-500 hover:bg-amber-600 text-black font-semibold","data-testid":"vm-admin-save-btn",children:C?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(i.A,{className:"h-4 w-4 mr-2 animate-spin"})," Speichert\u2026"]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.A,{className:"h-4 w-4 mr-2"})," Speichern & live schalten"]})})]}),(0,w.jsxs)(x.Zp,{className:"border border-amber-500/20","data-testid":"vm-admin-preview-card",children:[(0,w.jsx)(x.aR,{className:"pb-2",children:(0,w.jsx)(x.ZB,{className:"text-sm font-medium text-muted-foreground",children:"Live-Vorschau (so sehen Besucher das Banner sofort nach dem Speichern)"})}),(0,w.jsxs)(x.Wu,{children:[(0,w.jsx)("div",{className:"relative bg-black/20 rounded-md overflow-hidden",children:(0,w.jsx)("div",{style:{position:"relative",height:36},children:(0,w.jsx)(j.A,{},z)})}),(0,w.jsx)("p",{className:"text-[11px] text-muted-foreground mt-2",children:'Vorschau aktualisiert sich nach \u201eSpeichern". Pause durch Mouse-Hover.'})]})]}),(0,w.jsxs)(x.Zp,{className:"border border-white/10","data-testid":"vm-admin-stats-card",children:[(0,w.jsx)(x.aR,{className:"pb-2",children:(0,w.jsxs)(x.ZB,{className:"text-base flex items-center gap-2",children:[(0,w.jsx)(l.A,{className:"h-4 w-4 text-sky-400"})," Performance der letzten 30 Tage"]})}),(0,w.jsx)(x.Wu,{children:(0,w.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-5 ga
2p-3",children:[{k:"views",l:"Views",testid:"vm-stats-views"},{k:"clicks",l:"CTA-Klicks",testid:"vm-stats-clicks"},{k:"dismisses",l:"Schlie\xdfungen",testid:"vm-stats-dismisses"},{k:"ctr_pct",l:"CTR",suffix:"%",testid:"vm-stats-ctr"},{k:"dismiss_rate_pct",l:"Schlie\xdf-Rate",suffix:"%",testid:"vm-stats-dismiss-rate"}].map(e=>{var a;return(0,w.jsxs)("div",{className:"rounded-md bg-white/5 px-3 py-2.5","data-testid":e.testid,children:[(0,w.jsx)("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",children:e.l}),(0,w.jsxs)("div",{className:"font-mono text-xl font-semibold mt-0.5",children:[R?null!==(a=R[e.k])&&void 0!==a?a:0:"\u2014",e.suffix||""]})]},e.k)})})})]}),(0,w.jsxs)(x.Zp,{className:"border border-white/10","data-testid":"vm-admin-settings-card",children:[(0,w.jsxs)(x.aR,{className:"pb-3 flex flex-row items-center justify-between",children:[(0,w.jsx)(x.ZB,{className:"text-base",children:"Einstellungen"}),(0,w.jsxs)("div",{className:"flex items-center gap-2",children:[(0,w.jsx)(b.J,{htmlFor:"vm-enabled",className:"text-xs text-muted-foreground",children:"Banner aktiv"}),(0,w.jsx)(g.d,{id:"vm-enabled",checked:e.enabled,onCheckedChange:s=>a((0,t.A)((0,t.A)({},e),{},{enabled:s})),"data-testid":"vm-admin-enabled-switch"})]})]}),(0,w.jsxs)(x.Wu,{className:"space-y-5",children:[(0,w.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-cta-text",children:"CTA-Text"}),(0,w.jsx)(f.p,{id:"vm-cta-text",value:e.cta_text,onChange:s=>a((0,t.A)((0,t.A)({},e),{},{cta_text:s.target.value})),placeholder:"Gutschein sichern","data-testid":"vm-admin-cta-text"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-cta-url",children:"Ziel-URL"}),(0,w.jsx)(f.p,{id:"vm-cta-url",value:e.cta_url,onChange:s=>a((0,t.A)((0,t.A)({},e),{},{cta_url:s.target.value})),placeholder:"/shop/gutscheine","data-testid":"vm-admin-cta-url"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-theme",children:"Farbschema"}),(0,w.jsxs)(A.l6,{value:e.theme,onValueChange:s=>a((0,t.A)((0,t.A)({},e),{},{theme:s})),children:[(0,w.jsx)(A.bq,{id:"vm-theme","data-testid":"vm-admin-theme",children:(0,w.jsx)(A.yv,{})}),(0,w.jsxs)(A.gC,{children:[(0,w.jsx)(A.eb,{value:"burgundy-gold",children:"Burgundy + Gold (Standard)"}),(0,w.jsx)(A.eb,{value:"dark-amber",children:"Dark + Amber"}),(0,w.jsx)(A.eb,{value:"seasonal-red",children:"Saisonal Rot (Weihnachten)"})]})]})]}),(0,w.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-speed",children:"Tempo (Sek/Runde)"}),(0,w.jsx)(f.p,{id:"vm-speed",type:"number",min:15,max:120,value:e.speed_seconds,onChange:s=>a((0,t.A)((0,t.A)({},e),{},{speed_seconds:s.target.value})),"data-testid":"vm-admin-speed"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-dismiss-days",children:'Pause nach \u201eX" (Tage)'}),(0,w.jsx)(f.p,{id:"vm-dismiss-days",type:"number",min:0,max:30,value:e.dismiss_days,onChange:s=>a((0,t.A)((0,t.A)({},e),{},{dismiss_days:s.target.value})),"data-testid":"vm-admin-dismiss-days"})]})]})]}),(0,w.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-start",children:"Aktiv ab (optional)"}),(0,w.jsx)(f.p,{id:"vm-start",type:"date",value:e.starts_at||"",onChange:s=>a((0,t.A)((0,t.A)({},e),{},{starts_at:s.target.value})),"data-testid":"vm-admin-starts"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(b.J,{htmlFor:"vm-end",children:"Aktiv bis (optional)"}),(0,w.jsx)(f.p,{id:"vm-end",type:"date",value:e.ends_at||"",onChange:s=>a((0,t.A)((0,t.A)({},e),{},{ends_at:s.target.value})),"data-testid":"vm-admin-ends"})]})]}),(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,w.jsxs)(b.J,{children:["Phrasen (",e.phrases.length,"/12)"]}),(0,w.jsxs)(v.$,{size:"sm",variant:"outline",onClick:()=>a((0,t.A)((0,t.A)({},e),{},{phrases:[...e.phrases,""]})),disabled:e.phrases.length>=12,"data-testid":"vm-admin-add-phrase",children:[(0,w.jsx)(h.A,{className:"h-3 w-3 mr-1"})," Phrase"]})]}),(0,w.jsx)("ul",{className:"space-y-2",children:e.phrases.map((s,r)=>(0,w.jsxs)("li",{className:"flex items-center gap-2 bg-white/5 rounded-md p-2","data-testid":"vm-admin-phrase-row-".concat(r),children:[(0,w.jsx)("span",{className:"text-xs text-muted-foreground font-mono w-6 text-center",children:r+1}),(0,w.jsx)(y.T,{value:s,onChange:s=>((s,r)=>{const n=[...e.phrases];n[s]=r,a((0,t.A)((0,t.A)({},e),{},{phrases:n}))})(r,s.target.value),rows:1,className:"resize-none flex-1 min-h-[36px]",placeholder:"Verschenken Sie ein unvergessliches Erlebnis\u2026","data-testid":"vm-admin-phrase-input-".concat(r)}),(0,w.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,w.jsx)("button",{type:"button",onClick:()=>L(r,-1),disabled:0===r,className:"p-1 rounded hover:bg-white/10 disabled:opacity-30","aria-label":"Nach oben",children:(0,w.jsx)(o.A,{className:"h-3 w-3"})}),(0,w.jsx)("button",{type:"button",onClick:()=>L(r,1),disabled:r===e.phrases.length-1,className:"p-1 rounded hover:bg-white/10 disabled:opacity-30","aria-label":"Nach unten",children:(0,w.jsx)(c.A,{className:"h-3 w-3"})})]}),(0,w.jsx)("button",{type:"button",onClick:()=>(s=>a((0,t.A)((0,t.A)({},e),{},{phrases:e.phrases.filter((e,a)=>a!==s)})))(r),className:"p-2 rounded hover:bg-red-500/15 text-red-400","aria-label":"L\xf6schen","data-testid":"vm-admin-remove-phrase-".concat(r),children:(0,w.jsx)(p.A,{className:"h-3.5 w-3.5"})})]},r))}),0===e.phrases.length&&(0,w.jsx)("p",{className:"text-xs text-muted-foreground italic mt-2",children:"Noch keine Phrase. Beim Speichern werden Standard-Texte verwendet."})]})]})]})]})}},9333(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},9855(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
2],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},13416(e,a,s){s.d(a,{T:()=>c});var t=s(89379),r=s(53986),n=s(65043),d=s(1089),l=s(70579);const i=["className"],c=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,i);return(0,l.jsx)("textarea",(0,t.A)({className:(0,d.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:a},n))});c.displayName="Textarea"},19829(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},22633(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},23658(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},23946(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},28006(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},35087(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},39292(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},41680(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},55731(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},57856(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},59938(e,a,s){s.d(a,{J:()=>h});var t=s(89379),r=s(53986),n=s(65043),d=s(65131),l=s(10917),i=s(1089),c=s(70579);const o=["className"],m=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),h=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,o);return(0,c.jsx)(d.b,(0,t.A)({ref:a,className:(0,i.cn)(m(),s)},n))});h.displayName=d.b.displayName},63944(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},65131(e,a,s){s.d(a,{b:()=>m});var t=s(89379),r=s(65043),n=s(53986),d=(s(97950),s(16851)),l=s(70579);const i=["asChild"];var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{const s=(0,d.TL)("Primitive.".concat(a)),c=r.forwardRef((e,r)=>{const{asChild:d}=e,c=(0,n.A)(e,i),o=d?s:a;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,(0,t.A)((0,t.A)({},c),{},{ref:r}))});return c.displayName="Primitive.".concat(a),(0,t.A)((0,t.A)({},e),{},{[a]:c})},{});var o=r.forwardRef((e,a)=>(0,l.jsx)(c.label,(0,t.A)((0,t.A)({},e),{},{ref:a,onMouseDown:a=>{var s;a.target.closest("button, input, select, textarea")||(null===(s=e.onMouseDown)||void 0===s||s.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}})));o.displayName="Label";var m=o},70764(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},71360(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},72105(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},77996(e,a,s){s.d(a,{A:()=>u});var t=s(89379),r=s(65043),n=s(79722),d=s(23946),l=s(40614),i=s(70579);
2const c="".concat("","/api"),o="du_voucher_marquee_dismissed_at",m={enabled:!0,phrases:["Buchen Sie Deutschlands beliebtestes Erlebnis-Geschenk","Erlebnisgutschein f\xfcr Dinner-Shows in \xfcber 40 St\xe4dten","Verschenken Sie Genuss, Spannung und Live-Unterhaltung","Flexibel einl\xf6sbar f\xfcr alle Termine und Show-Formate","Krimi-Dinner, ABBA, Schlager, Musical \u2014 Sie w\xe4hlen"],cta_text:"Gutschein sichern",cta_url:"/shop/gutscheine",speed_seconds:38,dismiss_days:7,theme:"burgundy-gold"},h=e=>{try{n.A.post("".concat(c,"/pixel-events"),{event_type:e,page_path:"undefined"!==typeof window?window.location.pathname:"/"}).catch(()=>{})}catch(a){}},u=()=>{const[e,a]=(0,r.useState)(null),[s,u]=(0,r.useState)(!1),p=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=!0;return n.A.get("".concat(c,"/voucher-marquee/public")).then(s=>{var r;e&&(!1===(null===(r=s.data)||void 0===r?void 0:r.enabled)?a((0,t.A)((0,t.A)({},m),{},{enabled:!1})):a((0,t.A)((0,t.A)({},m),s.data)))}).catch(()=>{e&&a(m)}),()=>{e=!1}},[]),(0,r.useEffect)(()=>{if(e)if(!1!==e.enabled)try{const a=parseInt(localStorage.getItem(o)||"0",10),s=24*Math.max(0,e.dismiss_days||7)*60*60*1e3;(!a||Date.now()-a>s)&&u(!0)}catch(a){u(!0)}else u(!1)},[e]),(0,r.useEffect)(()=>{if(s)return document.body.classList.add("has-voucher-marquee"),p.current||(p.current=!0,h("VoucherMarqueeView")),()=>document.body.classList.remove("has-voucher-marquee");document.body.classList.remove("has-voucher-marquee")},[s]);const x=()=>h("VoucherMarqueeClick");if(!s||!e)return null;const{phrases:v,cta_text:f,cta_url:b,speed_seconds:g}=e;if(!v||0===v.length)return null;const y=e=>v.map((a,s)=>(0,i.jsxs)("span",{className:"vm-item",children:[(0,i.jsx)("span",{className:"vm-text","data-testid":"voucher-marquee-phrase-".concat(e,"-").concat(s),children:a}),(0,i.jsx)("a",{href:b,onClick:x,className:"vm-cta","data-testid":"voucher-marquee-cta-".concat(e,"-").concat(s),children:f}),(0,i.jsx)("a",{href:b,onClick:x,className:"vm-icon","aria-label":"Erlebnisgutschein bestellen",children:(0,i.jsx)(d.A,{size:18,"aria-hidden":"true"})})]},"".concat(e,"-").concat(s)));return(0,i.jsxs)("div",{role:"region","aria-label":"Erlebnisgutschein-Banner",className:"vm-root","data-testid":"voucher-marquee",children:[(0,i.jsx)("div",{className:"vm-viewport",children:(0,i.jsxs)("div",{className:"vm-track",style:{animationDuration:"".concat(g,"s")},children:[y("a"),y("b")]})}),(0,i.jsx)("button",{type:"button",className:"vm-close",onClick:()=>{try{localStorage.setItem(o,String(Date.now()))}catch(e){}h("VoucherMarqueeDismiss"),u(!1)},"aria-label":"Banner schlie\xdfen","data-testid":"voucher-marquee-close",children:(0,i.jsx)(l.A,{size:16,"aria-hidden":"true"})})]})}},84370(e,a,s){s.d(a,{bq:()=>A,eb:()=>k,gC:()=>w,l6:()=>g,yv:()=>y});var t=s(89379),r=s(53986),n=s(65043),d=s(22095),l=s(36210),i=s(92382),c=s(15711),o=s(1089),m=s(70579);const h=["className","children"],u=["className"],p=["className"],x=["className","children","position"],v=["className"],f=["className","children"],b=["className"],g=d.bL,y=(d.YJ,d.WT),A=n.forwardRef((e,a)=>{let{className:s,children:n}=e,l=(0,r.A)(e,h);return(0,m.jsxs)(d.l9,(0,t.A)((0,t.A)({ref:a,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s)},l),{},{children:[n,(0,m.jsx)(d.In,{asChild:!0,children:(0,m.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]}))});A.displayName=d.l9.displayName;const j=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,u);return(0,m.jsx)(d.PP,(0,t.A)((0,t.A)({ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s)},n),{},{children:(0,m.jsx)(c.A,{className:"h-4 w-4"})}))});j.displayName=d.PP.displayName;const N=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,p);return(0,m.jsx)(d.wn,(0,t.A)((0,t.A)({ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s)},n),{},{children:(0,m.jsx)(i.A,{className:"h-4 w-4"})}))});N.displayName=d.wn.displayName;const w=n.forwardRef((e,a)=>{let{className:s,children:n,position:l="popper"}=e,i=(0,r.A)(e,x);return(0,m.jsx)(d.ZL,{children:(0,m.jsxs)(d.UC,(0,t.A)((0,t.A)({ref:a,className:(0,o.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l},i),{},{children:[(0,m.jsx)(j,{}),(0,m.jsx)(d.LM,{className:(0,o.cn)("p-1","popper"===l&&"min-h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,m.jsx)(N,{})]}))})});w.displayName=d.UC.displayName;n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,v);return(0,m.jsx)(d.JU,(0,t.A)({ref:a,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",s)},n))}).displayName=d.JU.displayName;const k=n.forwardRef((e,a)=>{let{className:s,children:n}=e,i=(0,r.A)(e,f);return(0,m.jsxs)(d.q7,(0,t.A)((0,t.A)({ref:a,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s)},i),{},{children:[(0,m.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,m.jsx)(d.VF,{children:(0,m.jsx)(l.A,{className:"h-4 w-4"})})}),(0,m.jsx)(d.p4,{children:n})]}))});k.displayName=d.q7.displayName;n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,b);return(0,m.jsx)(d.wv,(0,t.A)({ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s)},n))}).displayName=d.wv.displayName},86725(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]])},87095(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("shopping-bag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]])},88693(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},91140(e,a,s){s.d(a,{BT:()=>f,Wu:()=>b,ZB:()=>v,Zp:()=>p,aR:()=>x});var t=s(89379),r=s(53986),n=s(65043),d=s(1089),l=s(70579);const i=["className"],c=["className"],o=["className"],m=["className"],h=["className"],u=["className"],p=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,i);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("rounded-xl border bg-card text-card-foreground shadow",s)},n))});p.displayName="Card";const x=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,c);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("flex flex-col space-y-1.5 p-6",s)},n))});x.displayName="CardHeader";const v=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,o);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("font-semibold leading-none tracking-tight",s)},n))});v.displayName="CardTitle";const f=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,m);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("text-sm text-muted-foreground",s)},n))});f.displayName="CardDescription";const b=n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,h);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("p-6 pt-0",s)},n))});b.displayName="CardContent";n.forwardRef((e,a)=>{let{className:s}=e,n=(0,r.A)(e,u);return(0,l.jsx)("div",(0,t.A)({ref:a,className:(0,d.cn)("flex items-center p-6 pt-0",s)},n))}).displayName="CardFooter"},92264(e,a,s){s.d(a,{p:()=>c});var t=s(89379),r=s(53986),n=s(65043),d=s(1089),l=s(70579);const i=["className","type"],c=n.forwardRef((e,a)=>{let{className:s,type:n}=e,c=(0,r.A)(e,i);return(0,l.jsx)("input",(0,t.A)({type:n,className:(0,d.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:a},c))});c.displayName="Input"},95792(e,a,s){s.d(a,{w:()=>j});var t=s(45685),r=s(13390),n=s(23658),d=s(72105),l=s(70764),i=s(35087),c=s(41680),o=s(55731),m=s(57856),h=s(28006),u=s(6608),p=s(19829),x=s(86725),v=s(39292),f=s(87095),b=s(63944),g=s(9333),y=s(70579);const A=[{id:"hero",label:"Hero",icon:n.A,to:"/manage/website"},{id:"landing-cards",label:"Landing-Karten",icon:b.A,to:"/manage/website?tab=landing-cards"},{id:"voucher-marquee",label:"Banner",icon:u.A,to:"/manage/voucher-marquee"},{id:"shows",label:"Shows",icon:p.A,to:"/manage/website?tab=shows"},{id:"video",label:"Video",icon:g.A,to:"/manage/website?tab=video"},{id:"shop-defaults",label:"Shop-Defaults",icon:f.A,to:"/manage/website?tab=shop-defaults"},{id:"shop-embeds",label:"Shop-Integration",icon:d.A,to:"/manage/website?tab=shop-embeds"},{id:"events",label:"Veranstaltungen",icon:x.A,to:"/events"},{id:"venues",label:"Spielorte",icon:h.A,to:"/manage/venues"},{id:"about",label:"\xdcber uns",icon:m.A,to:"/manage/about"}
2,{id:"sections",label:"Sektionen",icon:i.A,to:"/manage/sections"},{id:"exclusive",label:"Exclusivbuchung",icon:b.A,to:"/manage/exclusive-page"},{id:"pages",label:"Seiten",icon:c.A,to:"/manage/website?tab=pages"},{id:"seo",label:"SEO",icon:v.A,to:"/manage/seo"},{id:"reviews",label:"Bewertungen",icon:b.A,to:"/manage/reviews"}],j=e=>{let{activeTab:a}=e;return(0,y.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("h1",{className:"text-3xl font-bold flex items-center gap-3",children:[(0,y.jsx)(o.A,{className:"h-8 w-8 text-amber-500"}),"Website verwalten"]}),(0,y.jsx)("p",{className:"text-muted-foreground mt-1",children:"Inhalte der \xf6ffentlichen Website bearbeiten"})]}),(0,y.jsx)(r.$,{variant:"outline",asChild:!0,children:(0,y.jsxs)("a",{href:"/",target:"_blank",rel:"noreferrer",children:[(0,y.jsx)(l.A,{className:"h-4 w-4 mr-2"}),"Website \xf6ffnen"]})})]}),(0,y.jsx)("div",{className:"flex flex-wrap gap-2 p-1 bg-muted/50 rounded-lg",children:A.map(e=>{const s=e.icon,n=a===e.id;return(0,y.jsx)(r.$,{variant:n?"default":"ghost",className:n?"bg-amber-500 hover:bg-amber-600 text-black":"",asChild:!0,children:(0,y.jsxs)(t.N_,{to:e.to,children:[(0,y.jsx)(s,{className:"h-4 w-4 mr-2"}),e.label]})},e.id)})})]})}},99996(e,a,s){s.d(a,{A:()=>t});const t=(0,s(77784).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])}}]); 3//# sourceMappingURL=6394.79e1e897.chunk.js.map
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.