PageSourceSearch

https://www.luckypunch-comedyclub.de/_next/static/chunks/app/(public)/sale/page-fafbd0ceb6b4ef8d.js

js luckypunch-comedyclub.de collected 2026-10-06 00:18:39 UTC 12,774 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[327],{41106:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,14714,23)),Promise.resolve().then(s.bind(s,55188)),Promise.resolve().then(s.bind(s,76229)),Promise.resolve().then(s.bind(s,30735))},55188:(e,t,s)=>{"use strict";s.d(t,{PurchaseSuccessToast:()=>l});var r=s(64139),a=s(53851),n=s(42262),i=s(65404);let l=()=>{let e=(0,n.useSearchParams)(),t=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{e.get("success")&&!t.current?(e.get("tracking_value")&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"voucher_purchase_complete",transactionId:e.get("tracking_event_id")||"",transactionTotal:e.get("tracking_value")||0,currency:"EUR"})),t.current=!0,i.oR.success("Vielen Dank f\xfcr Ihren Kauf!",{duration:1/0,position:"top-center",closeButton:!0})):e.get("error")&&!t.current&&i.oR.error("Ein Fehler ist aufgetreten",{duration:1/0,position:"top-center",closeButton:!0})},[e]),(0,r.jsx)(i.l$,{richColors:!0})}},76229:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(64139),a=s(53851),n=s(73228),i=s(21776),l=s(93806),o=s(64292);let d=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.fontSize||"24",height:e.fontSize||"25",viewBox:"0 0 24 25",fill:"none",children:[(0,r.jsx)("path",{d:"M19.5 13.1667C19.5 11.7867 20.62 10.6667 22 10.6667V9.66669C22 5.66669 21 4.66669 17 4.66669H7C3 4.66669 2 5.66669 2 9.66669V10.1667C3.38 10.1667 4.5 11.2867 4.5 12.6667C4.5 14.0467 3.38 15.1667 2 15.1667V15.6667C2 19.6667 3 20.6667 7 20.6667H17C21 20.6667 22 19.6667 22 15.6667C20.62 15.6667 19.5 14.5467 19.5 13.1667Z",stroke:e.color||"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10 4.66669L10 20.6667",stroke:e.color||"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"5 5"})]}),c=function(){let[e,t]=(0,a.useState)(),[s,c]=(0,a.useState)(""),[u,x]=(0,a.useState)(!1),[m,f]=(0,a.useState)(""),{mutate:p}=l.F.external.getCouponPaymentSession.useMutation({onSuccess:e=>{e&&e.url&&(window.location.href=e.url)},onError:e=>{console.error(e)}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex items-center justify-center bg-white px-4 py-4 md:px-0 md:py-6",children:(0,r.jsxs)("div",{className:"flex w-full flex-col items-start justify-between rounded-xl bg-black p-4 text-white md:flex-row md:items-end md:p-6 lg:w-[1184px]",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"Angebote & Gutscheine / Geschenkgutschein"}),(0,r.jsx)("h3",{className:"mt-4 text-3xl font-bold md:text-5xl",children:"Geschenkgutschein"})]}),(0,r.jsxs)("div",{className:"mt-4 flex w-full flex-col items-center gap-4 md:mt-0 md:w-max md:flex-row",children:[(0,r.jsx)(i.p,{value:e,onChange:e=>t(+e.target.value),type:"number",className:"h-[48px] py-0 text-black",placeholder:"Geben Sie den Wert ein...",endadornment:(0,r.jsx)("span",{className:"mr-2 text-lg text-gray-400",children:"€"})}),(0,r.jsx)(n.$,{className:"h-[48px] w-full rounded-[14px] bg-[#E82A33] text-base text-white hover:bg-[#E82A33] md:w-max",onClick:()=>{e&&x(!0)},children:"Gutschein kaufen"})]})]})}),(0,r.jsx)(o.lG,{open:u,onOpenChange:x,children:(0,r.jsxs)(o.Cf,{className:"max-w-md",children:[(0,r.jsxs)(o.c7,{className:"sm:text-center",children:[(0,r.jsx)(o.L3,{children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 text-[18px]",children:[(0,r.jsx)(d,{color:"black",fontSize:48}),"Gib deine E-Mail ein"]})}),(0,r.jsx)(o.rr,{className:"text-pretty text-[14px] text-black",children:"Bitte gib die E-Mail-Adresse des Gutscheinempf\xe4ngers ein."})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-4",children:[(0,r.jsx)(i.p,{value:s,onChange:e=>c(e.target.value),type:"email",placeholder:"Email",className:"h-[48px]"}),m&&(0,r.jsx)("p",{className:"text-sm text-red-500",children:m})]}),(0,r.jsxs)(o.Es,{className:"flex gap-3 sm:flex-col sm:space-x-0",children:[(0,r.jsx)(n.$,{className:"w-full bg-red-500",onClick:()=>{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)){f("Bitte geben Sie eine g\xfcltige E-Mail-Adresse ein.");return}f(""),e&&p({amount:e,email:s}),x(!1)},children:"Gutschein kaufen"}),(0,r.jsx)(n.$,{type:"button",className:"w-full",variant:"outline",onClick:()=>x(!1),children:"Abbrechen"})]})]})})]})}},30735:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(64139),a=s(53851),n=s(73228),i=s(21776),l=s(72481),o=s(65404);
1let d=function(){let[e,t]=a.useState(""),[s,d]=a.useState(""),[c,u]=a.useState(!1),x=async t=>{t.preventDefault(),u(!0);try{let t=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),s=await t.json();t.ok?o.oR.success("Subscribed successfully!"):d(s.error||"Something went wrong, please try again.")}catch(e){d("Error: Unable to subscribe.")}u(!1)};return(0,r.jsx)("div",{className:"flex flex-col items-center gap-6 bg-black px-6 py-12 xl:px-32 xl:py-12",children:(0,r.jsxs)(l.default,{children:[(0,r.jsxs)("form",{className:"flex flex-col gap-4 md:gap-6",onSubmit:x,children:[(0,r.jsx)("h2",{className:"font-inter text-center text-4xl font-medium leading-10 text-white",children:"Trag dich f\xfcr den Newsletter ein"}),(0,r.jsx)("h3",{className:"font-inter text-center text-xl font-normal leading-7 text-white",children:"die neuesten Shows und News \xfcber Standup"}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 sm:flex-row",children:[(0,r.jsx)("div",{className:"w-full md:w-[366px]",children:(0,r.jsx)(i.p,{type:"email",className:"h-[48px] w-full rounded-[14px] border-2 border-black px-3 py-5 text-base font-normal leading-6 text-[#808080]",placeholder:"Email",onChange:e=>t(e.target.value)})}),(0,r.jsx)(n.$,{className:"h-[48px] rounded-[14px] bg-[#E82A33] text-base text-white hover:bg-[#E82A33]",type:"submit",disabled:c,children:"Abonnieren"})]})]}),s&&(0,r.jsx)("p",{className:"mt-4 text-sm text-red-500",children:s})]})})}},72481:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(64139),a=s(53851),n=s(87584),i=s(40884),l=s(12032);let o=e=>{let{children:t,full:s,heightFull:o}=e,d=(0,n.s)(),[c,u]=(0,l.Wx)({triggerOnce:!0});return(0,a.useEffect)(()=>{u&&d.start({y:0,opacity:1})},[d,u]),(0,r.jsx)(i.P.div,{ref:c,initial:{y:-100,opacity:0},animate:d,className:"".concat(s&&"w-full lg:w-[1184px]"," ").concat(o&&"h-full"),transition:{type:"spring",stiffness:100,damping:20,duration:3,delay:.2},children:t})}},73228:(e,t,s)=>{"use strict";s.d(t,{$:()=>c,r:()=>d});var r=s(64139),a=s(53851),n=s(31319),i=s(45860),l=s(42491),o=s(92483);let d=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"+o.RQ.button.base,{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:(0,l.cn)("border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",o.RQ.button.variants.outline),secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",red:"bg-red-500 text-white hover:bg-red-600"},size:{default:(0,l.cn)("h-9 px-4 py-2",o.RQ.button.size.default),sm:(0,l.cn)("h-8 rounded-md px-3 text-xs",o.R
1Q.button.size.small),lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:s,variant:a,size:i,asChild:o=!1,...c}=e,u=o?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(d({variant:a,size:i,className:s})),ref:t,...c})});c.displayName="Button"},64292:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>x,Es:()=>f,L3:()=>p,c7:()=>m,lG:()=>o,rr:()=>h,zM:()=>d});var r=s(64139),a=s(53851),n=s(77571),i=s(55e3),l=s(42491);let o=n.bL,d=n.l9,c=n.ZL;n.bm;let u=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});u.displayName=n.hJ.displayName;let x=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(u,{}),(0,r.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...o,children:[a,(0,r.jsxs)(n.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(i.MKb,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=n.UC.displayName;let m=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};m.displayName="DialogHeader";let f=e=>{let{className:t,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};f.displayName="DialogFooter";let p=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});p.displayName=n.hE.displayName;let h=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...a})});h.displayName=n.VY.displayName},21776:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var r=s(64139),a=s(53851),n=s(92483),i=s(42491);let l=a.forwardRef((e,t)=>{let{className:s,type:a,...l}=e;return(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("input",{type:a,className:(0,i.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 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.RQ.input.base,s,l.endadornment&&"pr-12"),ref:t,...l}),l.endadornment&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1",children:l.endadornment})]})});l.displayName="Input"},92483:(e,t,s)=>{"use strict";s.d(t,{RQ:()=>r});let r={textarea:{base:"py-4 focus-visible:ring-1 focus-visible:ring-offset-0"},input:{base:"bg-white dark:bg-black py-7"},switch:{base:"data-[state=unchecked]:bg-primary/20"},alertDialog:{description:"text-inherit",content:"max-w-[380px] sm:max-w-[448px] w-full rounded-lg",overlay:"backdrop-blur-sm bg-black/20",footer:"flex-row justify-end align-center items-center justify-center space-x-2"},button:{base:" disabled:opacity-30",variants:{outline:"inner-border inner-border-primary text-primary border-input-none border-none"},size:{default:"p-6",small:"h-10 text-sm"}},command:{item:"hover:bg-accent"}}},42491:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var r=s(65913),a=s(19714);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,a.QP)((0,r.$)(t))}},93806:(e,t,s)=>{"use strict";let r;s.d(t,{TRPCReactProvider:()=>p,F:()=>f});var a=s(64139),n=s(42580),i=s(7901),l=s(53105),o=s(53851),d=s(70457),c=s(14840),u=s(72327);let x=()=>new c.E({defaultOptions:{queries:{staleTime:3e4},dehydrate:{serializeData:d.Ay.serialize,shouldDehydrateQuery:e=>(0,u.XS)(e)||"pending"===e.state.status},hydrate:{deserializeData:d.Ay.deserialize}}});s(55036);let m=()=>null!=r?r:r=x(),f=(0,l.pY)();function p(e){let t=m(),[s]=(0,o.useState)(()=>f.createClient({links:[(0,i.$H)({enabled:e=>"down"===e.direction&&e.result instanceof Error}),(0,i.kM)({transformer:d.Ay,url:window.location.origin+"/api/trpc",methodOverride:"POST",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e}})]}));return(0,a.jsx)(n.QueryClientProvider,{client:t,children:(0,a.jsx)(f.Provider,{client:s,queryClient:t,children:e.children})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2703,4769,2408,1841,4714,5991,7571,7734,6281,7358],()=>t(41106)),_N_E=e.O()}]);

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.