1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1550],{98569:(e,t,l)=>{l.d(t,{default:()=>v});var i=l(64139),n=l(40492),s=l(87114),r=l(98734),a=l(40884),o=l(87557),d=l(61436),c=l(42262),u=l(53851),x=l(73228),p=l(72481),h=l(6761),m=l(26456),f=l(6971);let v=e=>{var t,l;let{eventComponent:v,landingSection:g,isCity:j,ticketPrice:w,workshopItem:b,external_url:C,workshopDays:N,isLineupCard:k,value:y,affiliate:_,isLocation:E,userId:L,userName:P,time:A,title:H,isSoloShow:R,isShowCard:S,eventId:M,discount:I,isSmall:T,isBig:V,isAssetLocally:Z,eventItem:U,tickets:B,image:z,date:D,city:F,isSoldOut:O,isFeatured:Y,ticket_type:K,ticket_details:W,description:X,location:J,isWorkshop:Q}=e,[$,q]=(0,u.useState)(!1),G=null==B?void 0:B.filter(e=>!0===e.active&&null!==e.price),ee=null==G?void 0:G.sort((e,t)=>e.price-t.price),et=(0,c.useRouter)(),el=null;if(D){let e=JSON.parse(D);el=(0,n.GP)(e[0],"dd.MM.yyyy HH:mm",{locale:s.de}).split(" ")}let ei=ee&&(null==ee?void 0:ee.length)>0?(null===(l=ee[0])||void 0===l?void 0:null===(t=l.price)||void 0===t?void 0:t.toFixed(2))+"â¬":w?Number(w).toFixed(2)+"â¬":null,en=E?null==H?void 0:H.split(" ").join("+"):j?null==y?void 0:y.split(" ").join("+"):"",es=z&&!Z?"".concat(h._.NEXT_PUBLIC_SUPABASE_URL,"/storage/v1/object/public/").concat(z):z&&Z?z:"/assets/images/eventBg.jpeg",er=e=>{let{link:t}=e;return(0,i.jsxs)(p.default,{heightFull:!0,children:[" ",(0,i.jsxs)("div",{className:"relative flex h-[165px] flex-1 cursor-pointer snap-start flex-col gap-2 overflow-hidden rounded-[12px] transition-all duration-300 ease-in-out ".concat(U&&!Y&&"rounded-b-none"," text-white ").concat(Y?"h-full w-[280px] lg:w-[389px]":"h-[165px] sm:h-[165px] md:max-w-[full] ".concat(V?"w-[165px] lg:h-[284px] lg:w-[284px]":T?"h-[150px] lg:h-[150px] lg:w-[189px]":"w-[165px] sm:max-h-[165px] lg:h-[224px] lg:max-h-[224px] lg:w-[224px]"," ").concat(A&&"sm:max-h-[224px] lg:h-[224px]")," border-gray-500] border-1"),children:[(0,i.jsx)(o.default,{fill:!0,quality:Y?60:30,priority:!!g||!!Y,loading:g||Y?"eager":"lazy",alt:"Standup Republic - event",className:"absolute flex h-full w-full object-cover ".concat(""),src:es}),(0,i.jsx)(r.N,{children:(!U||Y)&&(0,i.jsx)(a.P.div,{className:"absolute flex h-full w-full ".concat(Y?"bg-gradient-to-t from-black/90 via-black/70 to-transparent":"bg-[#0404044b]"," z-10"),initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,i.jsx)("div",{className:"mt-auto flex flex-col gap-4 p-4 ".concat(Y?"w-full":""),children:(0,i.jsxs)("div",{className:"flex flex-col gap-1 ".concat(Y?"relative":""),children:[(0,i.jsx)("div",{className:"".concat(V?"text-sm font-bold lg:text-xl":Y?"text-sm font-bold lg:text-xl":""," ").concat(k?"text-sm lg:text-xl":""," text-2xl"),children:H}),Y&&F&&(0,i.jsx)("div",{className:"text-xs font-bold text-[#7828C8] lg:text-base",children:F}),D&&el&&(0,i.jsxs)("div",{className:"text-[12px] font-normal text-white sm:text-sm",children:[el[0]," @ ",el[1]]}),ee&&(null==ee?void 0:ee.length)>0?(0,i.jsx)("div",{className:"text-sm font-bold text-white",children:ei}):null,(0,i.jsx)("div",{children:A}),Y&&(0,i.jsx)(x.$,{className:"absolute bottom-0 right-0 bg-white px-3 py-2 lg:px-4",variant:"outline",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:"Tickets"})]})})})}),(I||O)&&(0,i.jsx)("div",{className:"absolute flex h-full w-full bg-[#0404044b]",children:(0,i.jsxs)("div",{className:"flex w-full justify-between pr-4 pt-4",children:[(0,i.jsx)("div",{className:"text-white"}),(0,i.jsx)("div",{className:"text-white",children:O?(0,i.jsx)("div",{className:"flex w-full items-center justify-center rounded-full bg-[#F54180] px-4 py-2 text-sm",children:"Ausverkauft"}):I?(0,i.jsxs)("div",{className:"flex h-[48px] w-[48px] items-center justify-center rounded-full bg-[#F54180] p-4 text-base",children:[I,"%"]}):(0,i.jsx)(i.Fragment,{})})]})})]}),U&&(0,i.jsxs)(a.P.div,{className:"flex w-[165px] flex-col justify-between rounded-md rounded-t-none bg-white p-3 shadow-md transition-all duration-300 ".concat(T?"max-h-[120px] min-h-[120px] lg:w-[189px]":"max-h-[140px] min-h-[140px] lg:w-[224px]"," ").concat(Y?"opacity-0":""," ").concat(b&&"max-h-[200px] lg:max-h-[200px]"),initial:!1,animate:{height:Y?0:"auto",opacity:Y?0:1,marginTop:Y?0:void 0},transition:{duration:.3},children:[H&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"text-xs font-bold lg:text-base ".concat(T?"line-clamp-1":""," "),children:(null==H?void 0:H.length)>34?(null==H?void 0:H.slice(0,34))+"..":H})}),F&&(0,i.jsx)("div",{className:"text-xs font-bold text-[#E82A33] lg:text-base",children:F}),D&&el&&(0,i.jsxs)("div",{className:"text-[12px] font-normal sm:text-sm",children:[(0,m.Vt)(el[0])," ",el[0]]}),b&&(0,i.jsx)("div",{className:"text-xs font-normal md:text-sm",children:null==N?void 0:N.map(e=>(0,i.jsx)("div",{children:e},e))}),R&&L?(0,i.jsx)(x.$,{onClick:e=>{e.preventDefault(),e.stopPropagation(),et.push("/comedians/".concat(L,"?name=").concat(null==H?void 0:H.split(" ").join("")))},className:"mt-2 h-[34px] rounded-md bg-black text-xs",color:"secondary",size:"sm",children:"Alle events"}):(0,i.jsxs)("div",{className:"flex w-full items-center justify-between text-sm font-extrabold",children:[ee&&ei?"Ab ".concat(ei):w?"Ab ".concat(ei):(0,i.jsx)("span",{}),(0,i.jsx)(x.$,{onClick:e=>{e.preventDefault(),e.stopPropagation(),t?window.open(t,"_blank"):q(!0)},className:"h-7 px-2 py-1 text-[12px] lg:px-4 lg:text-[12px]",variant:"default",children:"Tickets"})]})]})]})};if(Q){let e="".concat(b?C:""," ").concat(E?'/events?filter=%7B"location"%3A"'.concat(en,'"%7D'):"").concat(E?"":Z?"/sale":L&&P?"/comedians/".concat(L,"?name=").concat(null==P?void 0:P.split(" ").join("")):M&&_?"/events/".concat(M,"?affiliate=").concat(_):M?"https://standup-republic.de/events/".concat(M):j?'/events?filter=%7B"city"%3A"'.concat(en,'"%7D'):"/events");return(0,i.jsx)(d.default,{href:e,className:"".concat(v&&"rounded-md"," text-black"),children:(0,i.jsx)(er,{link:e})})}return(0,i.jsxs)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),"stripe"===K?q(!0):C?window.open(C,"_blank"):q(!0)},className:"".concat(v&&"rounded-md"," text-black"),children:[(0,i.jsx)(er,{link:C||void 0}),$&&(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:e=>{e.stopPropagation(),q(!1)},children:(0,i.jsx)("div",{className:"w-full rounded-xl bg-white shadow-lg md:max-w-[650px]",onClick:e=>e.stopPropagation(),children:(0,i.jsx)(f.A,{closePurchaseModal:()=>q(!1),location:J||F||"",eventDay:el?el[0]:"",showTitle:H||"",formattedEventTime:el?el[1]:"",listView:!0,description:X,ticket_details:null!=W?W:null,event_id:M,ticket_type:K,recurring_for:null,discount:I,paypal:!0})})})]})}},6971:(e,t,l)=>{l.d(t,{A:()=>V});var i=l(64139),n=l(92011),s=l(53851),r=l(73228),a=l(42491);let o=s.forwardRef((e,t)=>
1{let{className:l,...n}=e;return(0,i.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,i.jsx)("table",{ref:t,className:(0,a.cn)("w-full caption-bottom text-sm",l),...n})})});o.displayName="Table";let d=s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("thead",{ref:t,className:(0,a.cn)("[&_tr]:border-b",l),...n})});d.displayName="TableHeader";let c=s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("tbody",{ref:t,className:(0,a.cn)("[&_tr:last-child]:border-0",l),...n})});c.displayName="TableBody",s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("tfoot",{ref:t,className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",l),...n})}).displayName="TableFooter";let u=s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("tr",{ref:t,className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",l),...n})});u.displayName="TableRow",s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("th",{ref:t,className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...n})}).displayName="TableHead";let x=s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("td",{ref:t,className:(0,a.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...n})});x.displayName="TableCell",s.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)("caption",{ref:t,className:(0,a.cn)("mt-4 text-sm text-muted-foreground",l),...n})}).displayName="TableCaption";var p=l(93806),h=l(72481),m=l(64292),f=l(40884);let v=e=>{let{imgUrl:t,billing:l}=e;return(0,i.jsx)(m.lG,{children:(0,i.jsx)(m.zM,{className:"flex h-full w-full items-center justify-center",children:(0,i.jsxs)("div",{className:"relative flex h-full w-full cursor-pointer items-center justify-center gap-6 overflow-hidden rounded-[12px] border border-black ".concat(l?"md:!min-h-full":"md:min-h-[300px]"," xl:min-w-[568px]"),children:[(0,i.jsx)(f.P.img,{initial:{scale:1.2},whileInView:{scale:1},viewport:{amount:.1},transition:{type:"smooth",duration:2},className:"absolute h-full w-full object-cover",src:t,alt:"Standup Republic - title - location - date"}),(0,i.jsx)("div",{className:"z-30 flex h-full w-full items-center justify-center p-6",children:(0,i.jsx)("div",{className:"relative rounded-full",children:(0,i.jsx)("div",{className:"relative h-full w-full",children:(0,i.jsx)("div",{className:"relative flex h-36 w-36 items-center justify-center"})})})})]})})})};var g=l(65404),j=l(6761),w=l(87557),b=l(42262);let C=e=>(0,i.jsx)("svg",{width:"30",height:"12",viewBox:"0 0 30 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M5.34013 1.5471C4.9976 1.95243 4.44955 2.27212 3.9015 2.22645C3.833 1.6784 4.10131 1.0961 4.4153 0.736441C4.75783 0.319696 5.35726 0.0228354 5.84251 0C5.8996 0.570885 5.67696 1.13035 5.34013 1.5471ZM5.8368 2.33492C5.04327 2.28925 4.36392 2.78592 3.98714 2.78592C3.60464 2.78592 3.02805 2.35775 2.40008 2.36917C1.58371 2.38059 0.824435 2.84301 0.407689 3.57945C-0.448639 5.05233 0.185044 7.23311 1.01283 8.43197C1.41815 9.02569 1.90341 9.6765 2.5428 9.65366C3.14794 9.63083 3.38771 9.25975 4.11844 9.25975C4.85488 9.2597
15 5.06611 9.65366 5.7055 9.64225C6.36773 9.63083 6.78447 9.04852 7.1898 8.45481C7.65222 7.78116 7.84061 7.12464 7.85203 7.09039C7.84061 7.07897 6.57325 6.59372 6.56183 5.13226C6.55041 3.91056 7.56088 3.32826 7.60655 3.29401C7.03566 2.4491 6.14508 2.35775 5.8368 2.33492ZM10.421 0.679353V9.57945H11.8026V6.53663H13.715C15.4619 6.53663 16.6893 5.33777 16.6893 3.60228C16.6893 1.86679 15.4848 0.679353 13.7607 0.679353H10.421ZM11.8026 1.84396H13.3953C14.5942 1.84396 15.2792 2.48335 15.2792 3.60799C15.2792 4.73264 14.5942 5.37774 13.3896 5.37774H11.8026V1.84396ZM19.2126 9.64795C20.0804 9.64795 20.8853 9.20837 21.2507 8.51189H21.2792V9.57945H22.558V5.14938C22.558 3.86489 21.5304 3.03711 19.9491 3.03711C18.4819 3.03711 17.3972 3.87631 17.3573 5.0295H18.6018C18.7045 4.48145 19.2126 4.12179 19.9091 4.12179C20.754 4.12179 21.2279 4.5157 21.2279 5.24072V5.73168L19.5038 5.83444C17.8996 5.93149 17.0319 6.58801 17.0319 7.72978C17.0319 8.88297 17.9281 9.64795 19.2126 9.64795ZM19.5837 8.59182C18.8473 8.59182 18.3791 8.23787 18.3791 7.69553C18.3791 7.13606 18.8301 6.81066 19.6922 6.75928L21.2279 6.66223V7.16461C21.2279 7.9981 20.52 8.59182 19.5837 8.59182ZM24.265 12C25.6123 12 26.2459 11.4862 26.7997 9.92769L29.226 3.12274H27.8216L26.1946 8.38059H26.166L24.539 3.12274H23.0947L25.4353 9.60228L25.3097 9.99619C25.0985 10.6641 24.7559 10.921 24.1451 10.921C24.0366 10.921 23.8254 10.9096 23.7398 10.8982V11.9657C23.8197 11.9886 24.1622 12 24.265 12Z",fill:"black"})}),N=e=>(0,i.jsxs)("svg",{width:"31",height:"12",viewBox:"0 0 31 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M21.6315 3.24576C22.4617 3.24576 23.1032 3.47218 23.5937 3.92502C24.0843 4.37785 24.3107 4.98164 24.3107 5.73636V9.35905H23.2541V8.52885H23.2164C22.7635 9.20811 22.122 9.54774 21.3673 9.54774C20.7258 9.54774 20.1597 9.35905 19.7069 8.98169C19.2918 8.60433 19.0276 8.07602 19.0276 7.50997C19.0276 6.90619 19.2541 6.41562 19.7069 6.03825C20.1597 5.66089 20.8013 5.50994 21.556 5.50994C22.2352 5.50994 22.7635 5.62315 23.1786 5.88731V5.62315C23.1786 5.27095 23.0472 4.91874 22.7842 4.68926L22.7258 4.64201C22.4239 4.37785 22.0466 4.22691 21.6315 4.22691C20.9899 4.22691 20.4994 4.49106 20.1597 5.01937L19.1786 4.41559C19.7824 3.62312 20.5748 3.24576 21.6315 3.24576ZM16.3106 0.679688C16.9878 0.679688 17.6313 0.915307 18.1457 1.35476L18.2352 1.43442C18.7635 1.88725 19.0276 2.56651 19.0276 3.2835C19.0276 4.00049 18.7635 4.64201 18.2352 5.13258C17.7069 5.62315 17.0654 5.88731 16.3106 5.88731L14.4993 5.84957V9.35905H13.3672V0.679688H16.3106ZM21.7824 6.41562C21.3296 6.41562 20.9522 6.52883 20.6503 6.75524C20.3484 6.94393 20.1975 7.20808 20.1975 7.54771C20.1975 7.8496 20.3484 8.11375 20.5748 8.2647C20.839 8.45338 21.1409 8.56659 21.4428 8.56659C21.8654 8.56659 22.2881 8.40223 22.6187 8.10418L22.6881 8.03828C23.0654 7.69865 23.2541 7.28355 23.2541 6.83072C22.9145 6.56656 22.4239 6.41562 21.7824 6.41562ZM16.3861 1.73631H14.4993V4.75522H16.3861C16.8012 4.75522 17.2163 4.60427 17.4805 4.30238C18.0842 3.73633 18.0842 2.79292 17.5182 2.22688L17.4805 2.18914C17.1786 1.88725 16.8012 1.69857 16.3861 1.73631ZM30.424 3.43444L26.6881 12.0006H25.556L26.9523 9.01943L24.4994 3.47218H25.707L27.4806 7.73639H27.5183L29.2542 3.47218H30.424V3.43444Z",fill:"#5F6368"}),(0,i.jsx)("path",{d:"M10.0093 5.09701C10.0093 4.75738 9.97158 4.41775 9.93384 4.07812H5.2168V6.00268H7.89608C7.78287 6.60646 7.44324 7.17251 6.91493 7.51214V8.75744H8.5376C9.48101 7.8895 10.0093 6.60646 10.0093 5.09701Z",fill:"#4285F4"}),(0,i.jsx)("path",{d:"M5.21656 9.95967C6.57507 9.95967 7.70717 9.50683 8.53737 8.7521L6.9147 7.5068C6.46187 7.80869 5.89582 7.99738 5.21656 7.99738C3.93353 7.99738 2.80144 7.12944 2.42407 5.92188H0.763672V7.20491C1.63161 8.90305 3.32975 9.95967 5.21656 9.95967Z",fill:"#34A853"}),(0,i.jsx)("path",{d:"M2.42373 5.92634C2.19731 5.32256 2.19731 4.64331 2.42373 4.00179V2.71875H0.763329C0.0463382 4.115 0.0463382 5.7754 0.763329 7.20938L2.42373 5.92634Z",fill:"#FBBC04"}),(0,i.jsx)("path",{d:"M5.21691 1.96432C5.93391 1.96432 6.61316 2.22848 7.14147 2.71905L8.57545 1.28507C7.66978 0.454867 6.46221 -0.0357061 5.25465 0.00203027C3.36783 0.00203027 1.63196 1.05865 0.801758 2.75679L2.46216 4.03982C2.80179 2.83226 3.93388 1.96432 5.21691 1.96432Z",fill:"#EA4335"})]}),k=e=>(0,i.jsx)("svg",{width:"53",height:"12",viewBox:"0 0 53 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.76299 0.00058927H7.22892C7.18765 2.65966 5.63702 4.96379 3.41778 6.09463L7.33387 11.7901H10.5177L6.95771 6.6176C8.71646 4.87948 9.72172 2.53407 9.76417 0L9.76299 0.00058927ZM0.423828 11.7901H3.04162V0.00058927H0.423828V11.7901ZM46.3473 4.46146C45.6769 3.97976 44.8397 3.70678 43.9388 3.70678C41.6353 3.70678 39.7922 5.56989 39.7922 7.85339C39.7948 8.95233 40.2325 10.0055 41.0096 10.7826C41.7867 11.5596 42.8399 11.9974 43.9388 12C44.8391 12 45.6563 11.707 46.3473 11.2453V11.7895H48.3991V3.91667H46.3473V4.46146ZM44.1275 9.96826C42.8917 9.96826 41.9076 9.02609 41.9076 7.85339C41.9076 6.68069 42.9129 5.73852 44.1275 5.73852C45.3627 5.73852 46.3473 6.68069 46.3473 7.85339C46.3685 9.02668 45.3627 9.96826 44.1275 9.96826ZM50.8913 9.00486C50.0747 9.00486 49.4055 9.67523 49.4055 10.4918C49.4055 11.3084 50.0753 11.9788 50.8913 11.9788C51.7073
111.9788 52.3782 11.3084 52.3782 10.4918C52.3792 10.2963 52.3414 10.1025 52.267 9.92168C52.1926 9.74085 52.0831 9.57656 51.9448 9.4383C51.8065 9.30003 51.6423 9.19054 51.4614 9.11615C51.2806 9.04175 51.0868 9.00393 50.8913 9.00486ZM35.599 3.70678C34.6568 3.70678 33.7565 3.9998 33.1699 4.79576V3.91608H30.8032V11.7901H33.1699V7.47605C33.1699 6.28212 33.9658 5.69548 34.9504 5.69548C35.9763 5.69548 36.5836 6.32398 36.5836 7.45482V11.7689H38.9496V6.76323C38.9496 4.96202 37.4839 3.7056 35.599 3.7056V3.70678ZM21.5059 4.46146C20.8356 3.97976 19.9977 3.70678 19.0974 3.70678C16.7939 3.70678 14.9508 5.56989 14.9508 7.85339C14.9535 8.95233 15.3912 10.0055 16.1683 10.7826C16.9453 11.5596 17.9985 11.9974 19.0974 12C19.9977 12 20.8143 11.707 21.5059 11.2453V11.7895H23.5577V3.91667H21.5059V4.46146ZM19.3067 9.96826C18.071 9.96826 17.0869 9.02609 17.0869 7.85339C17.0869 6.68069 18.0922 5.73852 19.3067 5.73852C20.5419 5.73852 21.5266 6.68069 21.5266 7.85339C21.5266 9.02609 20.5213 9.96826 19.3067 9.96826ZM27.3842 4.98443V3.93672H25.0175V11.8107H27.3842V7.68653C27.3842 6.49261 28.7249 5.96964 29.6671 6.2208H29.6877V3.93672C28.7249 3.91549 27.8447 4.33469 27.3842 4.98384V4.98443ZM11.4805 11.7901H13.9933V0.00058927H11.4805V11.7901Z",fill:"#E9778D"})}),y=e=>(0,i.jsx)("svg",{width:"33",height:"12",viewBox:"0 0 33 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.6367 11.9999H0.378906L2.39433 0H32.6566L30.6367 11.9999ZM10.0282 6.99351C9.51227 6.99351 9.15064 6.65834 9.15064 6.13353C9.15064 5.5514 9.60047 5.00895 10.2488 5.00895C10.7647 5.00895 11.1264 5.36176 11.1264 5.88657C11.1308 6.46429 10.6765 6.99351 10.0282 6.99351ZM10.3325 4.00345C8.97423 4.00345 7.94667 4.99572 7.94667 6.18204C7.94667 7.25811 8.79342 7.99901 9.94887 7.99901C11.3072 7.99901 12.3347 6.97587 12.3347 5.78954C12.3303 4.71789 11.488 4.00345 10.3325 4.00345ZM17.3358 6.13353C17.3358 6.65834 17.6974 6.99351 18.2134 6.99351C18.8617 6.99351 19.3115 6.46429 19.3115 5.88657C19.3115 5.361
176 18.9499 5.00895 18.4339 5.00895C17.7856 5.00895 17.3358 5.5514 17.3358 6.13353ZM16.1274 6.18204C16.1274 4.99572 17.155 4.00345 18.5133 4.00345C19.6688 4.00345 20.5155 4.71789 20.5155 5.78954C20.5155 6.97587 19.488 7.99901 18.1296 7.99901C16.9742 7.99901 16.1274 7.25811 16.1274 6.18204ZM22.5795 5.89559H22.403L22.5354 5.09295H22.6941C23.069 5.09295 23.2718 5.20762 23.2718 5.45017C23.2718 5.75006 22.9852 5.89559 22.5795 5.89559ZM24.5111 5.26495C24.5111 4.5461 23.9466 4.08304 22.9279 4.08304H21.4857L20.8551 7.91984H22.0679L22.2663 6.71147H22.3237L22.9675 7.91984H24.3567L23.4659 6.57916C24.1186 6.35425 24.5111 5.86472 24.5111 5.26495ZM5.99297 5.19859C5.99297 5.32207 6.09882 5.38381 6.55747 5.61314C7.14401 5.91303 7.51446 6.22174 7.52328 6.78623C7.52328 7.47421 6.94556 8.00783 5.87831 8.00783C5.19474 8.00783 4.7405 7.7741 4.42297 7.54918L4.59938 6.48193C4.90367 6.76418 5.41525 7.04202 5.86067 7.04202C6.11646 7.04202 6.3105 6.95382 6.3105 6.79946C6.3105 6.65393 6.19143 6.58337 5.73278 6.34522C5.21679 6.08502 4.7846 5.78513 4.7846 5.21623C4.7846 4.55471 5.37556 4.00345 6.41193 4.00345C6.93233 4.00345 7.49682 4.17985 8.10983 4.52384C7.8805 4.78404 7.7041 5.07951 7.59826 5.41027C7.16606 5.00013 6.72064 4.96926 6.42957 4.96926C6.17379 4.96926 5.99297 5.04423 5.99297 5.19859ZM15.5233 5.76777H14.1032L14.2134 5.09743H15.7349C15.9334 4.6917 16.2377 4.34771 16.617 4.08751H14.1252C13.574 4.08751 13.1021 4.46237 13.0183 4.96954L12.5332 7.92432H13.746L13.9444 6.71595H15.3865L15.4924 6.05884C15.4968 5.96181 15.5056 5.86479 15.5233 5.76777ZM25.102 5.09295C25.0623 4.67399 24.8595 4.33 24.5375 4.08304H28.6213L28.4537 5.09295H27.3291L26.8617 7.91543H25.6489L26.1164 5.09295H25.102Z",fill:"#2E3235"})}),_=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"12",viewBox:"0 0 20 12",fill:"none",children:[(0,i.jsx)("path",{d:"M12.4741 1.28125H7.22363V10.7143H12.4741V1.28125Z",fill:"#FF5A00"}),(0,i.jsx)("path",{d:"M7.57323 5.99803C7.57323 4.08154 8.4742 2.38055 9.85672 1.28153C8.83925 0.481541 7.55574 -0.00195312 6.15574 -0.00195312C2.83924 -0.00195312 0.155762 2.68153 0.155762 5.99803C0.155762 9.31454 2.83924 11.998 6.15574 11.998C7.55574 11.998 8.83925 11.5145 9.85672 10.7145C8.47226 9.63103 7.57323 7.91453 7.57323 5.99803Z",fill:"#EB001B"}),(0,i.jsx)("path",{d:"M19.5579 5.99803C19.5579 9.31454 16.8744 11.998 13.5579 11.998C12.1579 11.998 10.8744 11.5145 9.85693 10.7145C11.2569 9.61358 12.1404 7.91453 12.1404 5.99803C12.1404 4.08154 11.2395 2.38055 9.85693 1.28153C10.8725 0.481541 12.156 -0.00195312 13.5559 -0.00195312C16.8744 -0.00195312 19.5579 2.69902 19.5579 5.99803Z",fill:"#F79E1B"})]}),E=e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"12",viewBox:"0 0 38 12",fill:"none",children:(0,i.jsx)("path",{d:"M24.6742 -0.00195312C22.0452 -0.00195312 19.6958 1.36107 19.6958 3.87936C19.6958 6.76741 23.8625 6.96685 23.8625 8.41772C23.8625 9.02861 23.1626 9.57546 21.9672 9.57546C20.2707 9.57546 19.0028 8.81138 19.0028 8.81138L18.4602 11.3526C18.4602 11.3526 19.9209 11.998 21.8601 11.998C24.7345 11.998 26.9962 10.5681 26.9962 8.00671C26.9962 4.95504 22.8122 4.76149 22.8122 3.41486C22.8122 2.93627 23.3867 2.41193 24.5787 2.41193C25.9236 2.41193 27.0208 2.96765 27.0208 2.96765L27.5518 0.513236C27.5518 0.513236 26.3579 -0.00195312 24.6742 -0.00195312ZM0.621522 0.183286L0.557861 0.553764C0.557861 0.553764 1.66388 0.756235 2.66002 1.16017C3.94266 1.62327 4.03399 1.89293 4.25005 2.73032L6.60393 11.807H9.75933L14.6205 0.183286H11.4723L8.34877 8.08631L7.07416 1.38734C6.95723 0.620674 6.36514 0.183286 5.64041 0.183286H0.621522ZM15.8864 0.183286L13.4168 11.807H16.4188L18.8798 0.183286H15.8864ZM32.6299 0.183286C31.906 0.183286 31.5225 0.570997 31.241 1.24841L26.8428 11.807H29.991L30.6001 10.0473H34.4355L34.8059 11.807H37.5837L35.1604 0.183286H32.6299ZM33.0394 3.32365L33.9726 7.68546H31.4725L33.0394 3.32365Z",fill:"#1434CB"})}),L=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:[(0,i.jsx)("path",{d:"M1.15576 4.25H11.1558",stroke:"#070707",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3.15576 8.25H4.15576",stroke:"#070707",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M5.40576 8.25H7.40576",stroke:"#070707",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3.37576 1.75H8.93076C10.7108 1.75 11.1558 2.19 11.1558 3.945V8.05C11.1558 9.805 10.7108 10.245 8.93576 10.245H3.37576C1.60076 10.25 1.15576 9.81 1.15576 8.055V3.945C1.15576 2.19 1.60076 1.75 3.37576 1.75Z",stroke:"#070707",strokeLinecap:"round",strokeLinejoin:"round"})]});var P=l(21776);let A=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,i.jsx)("path",{d:"M12.0009 13.9041C13.724 13.9041 15.1209 12.5072 15.1209 10.7841C15.1209 9.06093 13.724 7.66406 12.0009 7.66406C10.2777 7.66406 8.88086 9.06093 8.88086 10.7841C8.88086 12.5072 10.2777 13.9041 12.0009 13.9041Z",stroke:"#7828C8",strokeWidth:"1.5"}),(0,i.jsx)("path",{d:"M3.61971 8.96461C5.58971 0.304612 18.4197 0.314612 20.3797 8.97461C21.5297 14.0546 18.3697 18.3546 15.5997 21.0146C13.5897 22.9546 10.4097 22.9546 8.38971 21.0146C5.62971 18.3546 2.46971 14.0446 3.61971 8.96461Z",stroke:"#7828C8",strokeWidth:"1.5"})]}),H=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,i.jsx)("path",{d:"M8 2.47461V5.47461",stroke:"#7828C8",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M16 2.47461V5.47461",stroke:"#7828C8",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3.5 9.56445H20.5",stroke:"#7828C8",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M21 8.97461V17.4746C21 20.4746 19.5 22.4746 16 22.4746H8C4.5 22.4746 3 20.4746 3 17.4746V8.97461C3 5.97461 4.5 3.97461 8 3.97461H16C19.5 3.97461 21 5.97461 21 8.97461Z",stroke:"#7828C8",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.6937 14.1738H15.7027",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.6937 17.1738H15.7027",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M11.9945 14.1738H12.0035",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M11.9945 17.1738H12.0035",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.29529 14.1738H8.30427",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.29529 17.1738H8.30427",stroke:"#7828C8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var R=l(42886),S=l(18039),M=l(53966).hp;let I=e=>M.from(e,"binary").toString("base64"),T={clientId:"AUACkNHO3JgA5Bx2Hd54HdcpPoeATAHVrn8QZHadQrZcPLeYpFe-vPxiAb6Qv9MmcPYQwrhrHKEMg0nk",currency:"EUR"}
1,V=function(e){let{event_id:t,description:l,eventDay:a,ticket_details:m,ticket_type:f,showTitle:M,formattedEventTime:V,affiliateUser:Z,location:U,recurring_for:B,listView:z,event_image:D,discount:F,paypal:O,floor_plan_image:Y,disabled:K,closePurchaseModal:W}=e,[X,J]=s.useState(!1),Q=(0,b.useRouter)(),[$,q]=s.useState(null),[G,ee]=s.useState(null),et=s.useRef(null),[el,ei]=s.useState([]),[en,es]=s.useState(""),[er,ea]=s.useState(null),eo=(0,s.useMemo)(()=>"".concat(t,"_").concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9)),[t]),ed=e=>{var t;return!e||!1===e.active||e.sold_out?0:null===e.capacity||void 0===e.capacity?null:Math.max(e.capacity-(null!==(t=e.sold)&&void 0!==t?t:0),0)},ec=e=>{var t;let l=ed(e);return null!==l&&em(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:0)>=l},eu=()=>el.some(e=>{let t=ed(null==m?void 0:m.find(t=>t.id===e.ticket_id));return null!==t&&e.quantity>t}),ex=(e,t)=>{let l=Math.trunc(100*parseFloat(e)),i=Math.trunc(l-.93*l),n=Math.trunc(.0297*l),s=l-i-n,r=Math.trunc(s/t);return n=Math.max(n,l-((s=r*t)+i)),{totalPrice:((s+n+i)/100).toFixed(2),calculatedTaxAmount:(i/100).toFixed(2),calculatedItemAmount:(s/100).toFixed(2),applicationFee:(n/100).toFixed(2),calculatedItemAmountPerUnit:(r/100).toFixed(2)}},ep=async(e,l)=>{let i=null;try{let e=await fetch("/api/paypal/generate-token",{method:"POST"});i=await e.json(),ee(i)}catch(e){console.error("Token generation failed:",e)}try{var n,s;if(0===el.length)throw g.oR.error("Bitte w\xe4hle zuerst Tickets aus"),Error("No tickets selected");if(eu())throw g.oR.error("Einige Tickets sind bereits ausverkauft"),Error("Selected tickets are unavailable");let e=(0,S.A)(),r=m?null==m?void 0:null===(n=m.filter(e=>0!==em(e.id)))||void 0===n?void 0:n.map(t=>{var l,n;let{fullPrice:s,discountedPrice:r}=ek({price:t.price,id:t.id}),a=em(t.id),o=(0,S.A)();parseFloat(eN({price:t.price,id:t.id}));let{totalPrice:d,calculatedTaxAmount:c,calculatedItemAmount:u,applicationFee:x,calculatedItemAmountPerUnit:p}=ex(r,a);return{reference_id:"".concat(o.toString()),amount:{currency_code:"EUR",value:d,breakdown:{tax_total:{currency_code:"EUR",value:c},item_total:{currency_code:"EUR",value:u},handling:{currency_code:"EUR",value:x}}},items:[{name:null!==(l=null==t?void 0:t.ticket_category)&&void 0!==l?l:"Normal",quantity:a.toString(),unit_amount:{currency_code:"EUR",value:p},category:"DIGITAL_GOODS"}],custom_id:"t_".concat(I(JSON.stringify({t:t.id,u:e,r:o,h:null!==(n=null==i?void 0:i.hash)&&void 0!==n?n:null}))),description:"Ticket - "+t.ticket_category}}):[],a=null==el?void 0:el.map(e=>{var t;let l=null==m?void 0:m.find(t=>t.id===e.ticket_id);return{category:null!==(t=null==l?void 0:l.ticket_category)&&void 0!==t?t:"",quantity:e.quantity}}),o=I(JSON.stringify({lineItems:a,uniquePaymentId:e,eventId:t}));q(e);try{await ej.mutateAsync({event_id:null!=t?t:0,line_items:el})}catch(e){throw g.oR.error("Einige Tickets sind bereits ausverkauft"),Error("PayPal order validation failed")}et.current={purchaseId:o,successTokenRaw:null!==(s=null==i?void 0:i.raw)&&void 0!==s?s:null,trackingValue:ef()};let d="".concat(window.location.origin).concat(window.location.pathname);return l.order.create({intent:"CAPTURE",purchase_units:[...r],payment_source:{paypal:{experience_context:{brand_name:"Lucky Punch",locale:"de-DE",user_action:"PAY_NOW",landing_page:"LOGIN",shipping_preference:"NO_SHIPPING",return_url:d,cancel_url:d}}}})}catch(e){throw console.error(e),e}},eh=(e,t)=>{ei(l=>{let i=l.find(t=>t.ticket_id===e);if(!i)return t>0?[...l,{ticket_id:e,quantity:1}]:l;let n=Math.max(0,i.quantity+t);return 0===n?l.filter(t=>t.ticket_id!==e):l.map(t=>t.ticket_id===e?{...t,quantity:n}:t)})},em=e=>{var t;return(null===(t=el.find(t=>t.ticket_id===e))||void 0===t?void 0:t.quantity)||0},ef=()=>el.reduce((e,t)=>{let l=null==m?void 0:m.find(e=>e.id===t.ticket_id);return e+((null==l?void 0:l.price)||0)*t.quantity},0),{refetch:ev,error:eg}=p.F.external.getEventPaymentSession.useQuery({event_id:t||0,recurring_for:B,line_items:el,promoCode:null!=er?er:""},{enabled:el.length>0}),ej=p.F.external.validatePayPalOrder.useMutation(),{refetch:ew}=p.F.external.getIsValidCoupon.useQuery({code:en},{enabled:!1}),eb=async()=>{var e;if(0===el.length){g.oR.error("Bitte w\xe4hle zuerst Tickets aus");return}J(!0);let t=await ev();(null===(e=t.data)||void 0===e?void 0:e.url)?window.location.href=t.data.url:t.error&&g.oR.error("Stripe-Zahlungen werden derzeit gewartet, bitte nutzen Sie PayPal oder versuchen Sie es sp\xe4ter erneut"),J(!1)},eC=async()=>
1{if(!en.trim()){g.oR.error("Bitte geben Sie einen Promo-Code ein");return}let{data:e}=await ew();if(!e){g.oR.error("Ung\xfcltiger Promo-Code"),ea(null);return}ea(en),g.oR.success("Promo-Code erfolgreich angewendet")},eN=e=>{let{price:t,id:l}=e;return t?F?(t-F/100*t).toFixed(2):Number(t).toFixed(2):"0.00"},ek=e=>{let{price:t,id:l}=e,i=em(l);if(!t)return{discountedPrice:"0",fullPrice:null};if(!F)return{discountedPrice:Number(t*i).toFixed(2),fullPrice:null};{let e=t*i,l=F/100*e,n=e-l;return{discountedPrice:e.toFixed(2),fullPrice:e>0?n.toFixed(2):null}}},ey=async(e,l)=>{let i=et.current;if(!i){g.oR.error("PayPal-Bestellung konnte nicht vorbereitet werden");return}let n=l.order;if(!n){g.oR.error("PayPal-Zahlung konnte nicht abgeschlossen werden");return}try{var s,r,a,o,d,c,u,x;let e=(r=await n.capture(),null!==(x=null===(u=r.purchase_units)||void 0===u?void 0:null===(c=u[0])||void 0===c?void 0:null===(d=c.payments)||void 0===d?void 0:null===(o=d.captures)||void 0===o?void 0:null===(a=o[0])||void 0===a?void 0:a.status)&&void 0!==x?x:r.status);if("COMPLETED"!==e){g.oR.error("PayPal-Zahlung wird noch verarbeitet");return}g.oR.success("Zahlung erfolgreich!"),Q.push("".concat(j._.NEXT_PUBLIC_ORIGIN,"/events/").concat(t,"/success?success=true&tracking_value=").concat(i.trackingValue,"&tracking_event_id=").concat(t,"&tracking_transaction_id=").concat(eo,"&purchase_id=").concat(i.purchaseId,"&token=").concat(null!==(s=i.successTokenRaw)&&void 0!==s?s:""))}catch(e){if(function(e){if("object"!=typeof e||null===e||!("details"in e))return!1;let t=e.details;if(!Array.isArray(t)||0===t.length)return!1;let l=t[0];return"object"==typeof l&&null!==l&&"issue"in l&&"string"==typeof l.issue&&"INSTRUMENT_DECLINED"===l.issue}(e))return l.restart();console.error(e),g.oR.error("Fehler beim Bezahlvorgang")}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.ag,{options:T,children:z?(0,i.jsxs)("div",{className:"flex min-h-[300px] flex-1 flex-col gap-4 overflow-hidden rounded-[10px] border border-black p-6 text-black",children:[(0,i.jsx)("h3",{className:"text-xl font-bold text-black",children:"Tickets ausw\xe4hlen"}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("div",{className:"text-lg font-semibold",children:M}),(0,i.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-8",children:[(0,i.jsxs)("div",{className:"flex items-center gap-1 text-sm",children:[(0,i.jsx)(A,{})," ",(0,i.jsx)("span",{children:U})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1 text-sm",children:[(0,i.jsx)(H,{})," ",(0,i.jsx)("span",{children:a})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1 text-sm",children:[(0,i.jsx)(R.O4,{})," ",(0,i.jsxs)("span",{children:[" ",V]})]})]})]}),(0,i.jsxs)(o,{className:"table w-full",children:[(0,i.jsx)(d,{className:"font-poppins w-[100%] bg-[#EAEAEA] text-[#808080]",children:(0,i.jsxs)(u,{className:"!border-b-0 px-2 py-2",children:[(0,i.jsx)(x,{className:"rounded-l-[8px] px-2 py-2",children:"Ticket Type"}),(0,i.jsx)(x,{className:"px-2 py-3",children:"Kosten"}),(0,i.jsx)(x,{className:"rounded-r-[8px] px-2 py-2",children:"Zahl"})]})}),(0,i.jsx)(c,{children:null==m?void 0:m.map(e=>(0,i.jsxs)(u,{children:[(0,i.jsx)(x,{className:"px-2.5 py-5",children:e.ticket_category||"Normal"}),(0,i.jsx)(x,{className:"flex items-center justify-start px-2.5 py-5",translate:"no",children:(null==e?void 0:e.sold_out)?"Ausverkauft":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"".concat(F&&null!==ek({price:e.price,id:e.id}).fullPrice?"mr-2 text-sm text-[#808080] line-through":""," "),children:[ek({price:e.price,id:e.id}).discountedPrice," ","â¬"]}),null!==ek({price:e.price,id:e.id}).fullPrice?(0,i.jsxs)("span",{children:[ek({price:e.price,id:e.id}).fullPrice," ","â¬"]}):null]})}),(0,i.jsx)(x,{className:"notranslate px-2.5 py-5",translate:"no",children:(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(r.$,{disabled:0===em(e.id),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,-1),children:"-"}),em(e.id),(0,i.jsx)(r.$,{disabled:ec(e),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,1),children:"+"})]})})]},e.id))})]}),"external"===f&&m&&m.length>0?(0,i.jsx)("div",{className:"flex w-full flex-col gap-4",children:m.filter(e=>!!e.external_url).map(e=>(0,i.jsx)(r.$,{onClick:()=>{window.open(e.external_url,"_blank")},className:"w-full bg-[#45D483] text-white hover:bg-[#3BC473]",disabled:e.sold_out,children:e.sold_out?"Ausverkauft":"Tickets kaufen - ".concat(e.ticket_category||"Normal")},e.id))}):(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4 sm:flex-row",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-2/4",children:[(0,i.jsx)("div",{className:"flex w-full flex-col gap-2",children:(0,i.jsxs)("div",{className:"relative flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"relative flex items-center",children:[(0,i.jsx)(P.p,{placeholder:"Promo-Code",value:en,onChange:e=>es(e.target.value),className:"w-full rounded-xl border-black pr-24 text-sm focus-visible:ring-0"}),(0,i.jsx)(r.$,{variant:"secondary",onClick:eC,className:"absolute right-1 rounded-sm bg-black px-4 py-6 text-sm font-medium text-white transition-colors hover:bg-gray-800",children:er===en?"Angewendet":"Anwenden"})]}),er&&(0,i.jsxs)("span",{className:"text-sm text-green-600",children:['Promo-Code "',er,'" wird beim Checkout angewendet']})]})}),(0,i.jsx)(r.$,{disabled:0===ef(),onClick:eb,variant:"secondary",className:"w-full bg-black text-white",children:"Zum Checkout"}),(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsx)("p",{className:"w-full text-start !text-[15px] text-gray-600",children:"Akzeptierte Zahlungsmethoden"}),(0,i.jsxs)("div",{className:"flex w-full justify-between gap-2 px-4",children:[(0,i.jsx)(C,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(y,{}),(0,i.jsx)(L,{}),(0,i.jsx)(E,{}),(0,i.jsx)(_,{})]})]})]}),O&&!er&&(0,i.jsx)("div",{className:"w-full md:mt-[67px] md:w-2/4",children:(0,i.jsx)(n.JV,{disabled:0===ef(),style:{height:45},fundingSource:n.if.PAYPAL,createOrder:ep,onApprove:ey,onError:e=>{console.error(e),g.oR.error("Fehler beim Bezahlvorgang")}})})]})]}):(0,i.jsxs)(h.default,{full:!0,children:[(0,i.jsxs)("div",{className:"font-blackgrid w-full max-w-[1184px] grid-cols-1 flex-col gap-6 sm:grid-cols-2 lg:flex-row",children:[(0,i.jsx)("div",{className:"flex h-[382px] justify-center lg:h-[580px]",children:(0,i.jsx)(v,{imgUrl:"".concat(D?"".concat(j._.NEXT_PUBLIC_SUPABASE_URL,"/storage/v1/object/public/").concat(D):"".concat(j._.NEXT_PUBLIC_SUPABASE_URL,"/storage/v1/object/public/assets/eventsBackgroun
1d/defaultEventBg.png"))})}),"stripe"!==f||K?(0,i.jsxs)("div",{className:"flex h-full min-h-[300px] flex-1 flex-col gap-6 overflow-hidden overflow-y-scroll rounded-[10px] border border-black p-6",children:[(0,i.jsx)("p",{className:"font-semibold"}),(0,i.jsx)("div",{className:"max-h-[300px] whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:K?"Dieses Event ist bereits abgelaufen.":null!=l?l:"Keine Beschreibung"}}),"external"===f&&m&&m.length>0&&(0,i.jsx)("div",{className:"mt-4",children:m.filter(e=>!!e.external_url).map(e=>(0,i.jsx)(r.$,{onClick:()=>{null==W||W(),window.open(e.external_url,"_blank")},className:"w-full bg-[#45D483] text-white hover:bg-[#3BC473]",disabled:e.sold_out,children:e.sold_out?"Ausverkauft":"Tickets kaufen - ".concat(e.ticket_category||"Normal")},e.id))})]}):(0,i.jsxs)("div",{className:"flex min-h-[300px] flex-1 flex-col gap-6 overflow-hidden rounded-[10px] border border-black p-6",children:[(0,i.jsx)("h3",{children:"Tickets"}),(0,i.jsxs)(o,{className:"hidden w-full sm:table",children:[(0,i.jsx)(d,{className:"font-poppins w-[100%] bg-[#EAEAEA] text-[#808080]",children:(0,i.jsxs)(u,{className:"!border-b-0 px-2 py-2",children:[(0,i.jsx)(x,{className:"rounded-l-[8px] px-2 py-2",children:"Ticket Type"}),(0,i.jsx)(x,{className:"px-2 py-3",children:"Kosten"}),(0,i.jsx)(x,{className:"rounded-r-[8px] px-2 py-2",children:"Zahl"})]})}),(0,i.jsx)(c,{children:null==m?void 0:m.map(e=>(0,i.jsxs)(u,{children:[(0,i.jsx)(x,{className:"px-2.5 py-5",children:e.ticket_category||"Normal"}),(0,i.jsx)(x,{className:"flex items-center justify-start px-2.5 py-5",translate:"no",children:(null==e?void 0:e.sold_out)?"Ausverkauft":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"".concat(F&&null!==ek({price:e.price,id:e.id}).fullPrice?"mr-2 text-sm text-[#808080] line-through":""," "),children:[ek({price:e.price,id:e.id}).discountedPrice," ","â¬"]}),null!==ek({price:e.price,id:e.id}).fullPrice?(0,i.jsxs)("span",{children:[ek({price:e.price,id:e.id}).fullPrice," ","â¬"]}):null]})}),(0,i.jsx)(x,{className:"notranslate px-2.5 py-5",translate:"no",children:(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(r.$,{disabled:0===em(e.id),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,-1),children:"-"}),em(e.id),(0,i.jsx)(r.$,{disabled:ec(e),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,1),children:"+"})]})})]},e.id))})]}),(0,i.jsx)("div",{className:"flex flex-col gap-6 sm:hidden",children:null==m?void 0:m.map(e=>(0,i.jsxs)("div",{className:"flex w-full gap-6",children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,i.jsx)("h5",{className:"text-xs font-normal leading-4",children:e.ticket_category||"Normal"}),(0,i.jsx)("h4",{className:"flex flex-col text-lg font-medium leading-7",children:(null==e?void 0:e.sold_out)?"Ausverkauft":(0,i.jsxs)(i.Fragment,{children:[null!==ek({price:e.price,id:e.id}).fullPrice&&(0,i.jsxs)("span",{className:"text-sm text-[#808080] line-through",children:[ek({price:e.price,id:e.id}).fullPrice," ","â¬"]}),(0,i.jsxs)("span",{children:[ek({price:e.price,id:e.id}).discountedPrice," ","â¬"]})]})})]}),(0,i.jsxs)("div",{className:"flex w-[150.54px] flex-col gap-3",children:[(0,i.jsx)("h5",{className:"text-xs font-normal leading-4",children:"Zahl"}),(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[(0,i.jsx)(r.$,{disabled:0===em(e.id),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,-1),children:"-"}),em(e.id),(0,i.jsx)(r.$,{disabled:ec(e),className:"h-[20px] w-[20px] rounded-[4px] bg-black p-1",onClick:()=>eh(e.id,1),children:"+"})]})]})]},e.id))}),(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4 sm:flex-row",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-2/4",children:[(0,i.jsx)("div",{className:"flex w-full flex-col gap-2",children:(0,i.jsxs)("div",{className:"relative flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"relative flex items-center",children:[(0,i.jsx)(P.p,{placeholder:"Promo-Code",value:en,onChange:e=>es(e.target.value),className:"w-full rounded-xl border-black pr-24 text-sm focus-visible:ring-0"}),(0,i.jsx)(r.$,{variant:"secondary",onClick:eC,className:"absolute right-1 rounded-sm bg-black px-4 py-6 text-sm font-medium text-white transition-colors hover:bg-gray-800",children:er===en?"Angewendet":"Anwenden"})]}),er&&(0,i.jsxs)("span",{className:"text-sm text-green-600",children:['Promo-Code "',er,'" wird beim Checkout angewendet']})]})}),O&&!er&&(0,i.jsx)("div",{className:"mt-2 w-full sm:hidden",children:(0,i.jsx)(n.JV,{disabled:0===ef(),style:{height:40},fundingSource:n.if.PAYPAL,createOrder:ep,onApprove:ey,onError:e=>{console.error(e),g.oR.error("Fehler beim Bezahlvorgang")}})}),(0,i.jsx)(r.$,{disabled:0===ef(),onClick:eb,variant:"secondary",className:"w-full bg-black text-white",children:"Zum Checkout"}),(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsx)("p",{className:"w-full text-start !text-[15px] text-gray-600",children:"Akzeptierte Zahlungsmethoden"}),(0,i.jsxs)("div",{className:"flex w-full justify-between gap-2 px-4",children:[(0,i.jsx)(C,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(y,{})]})]})]}),O&&!er&&(0,i.jsx)("div",{className:"mt-[67px] hidden w-2/4 sm:block",children:(0,i.jsx)(n.JV,{disabled:0===ef(),style:{height:45},fundingSource:n.if.PAYPAL,createOrder:ep,onApprove:ey,onError:e=>{console.error(e),g.oR.error("Fehler beim Bezahlvorgang")}})})]})]})]}),"stripe"===f?(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsxs)("div",{className:"mt-4 flex h-max flex-1 flex-col gap-6 overflow-hidden rounded-[10px] border border-black p-6",children:[(0,i.jsx)("p",{className:"font-semibold"}),(0,i.jsx)("div",{className:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:null!=l?l:"Keine Beschreibung"}})]}),Y&&(0,i.jsxs)("div",{className:"mt-4 flex h-max flex-1 flex-col gap-6 overflow-hidden rounded-[10px] border border-black p-6",children:[(0,i.jsx)("p",{className:"font-semibold",children:"Saalplan"}),(0,i.jsx)(w.default,{src:"".concat(j._.NEXT_PUBLIC_SUPABASE_URL,"/storage/v1/object/public/").concat(Y),width:1080,height:1080,className:"h-full w-full rounded-sm",alt:"Floor Plan"})]})]}):Y&&(0,i.jsxs)("div",{className:"mt-4 flex h-max flex-1 flex-col gap-6 overflow-hidden rounded-[10px] border border-black p-6",children:[(0,i.jsx)("p",{className:"font-semibold",children:"Saalplan"}),(0,i.jsx)(w.default,{src:"".concat(j._.NEXT_PUBLIC_SUPABASE_URL,"/storage/v1/object/public/").concat(Y),width:1080,height:1080,className:"h-full max-h-[540px] w-full max-w-[540px] self-center rounded-sm",alt:"Floor Plan"})]})]})})})}},72481:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var i=l(64139),n=l(53851),s=l(87584),r=l(40884),a=l(12032);let o=e=>{let{children:t,full:l,heightFull:o}=e,d=(0,s.s)(),[c,u]=(0,a.Wx)({triggerOnce:!0});return(0,n.useEffect)(()=>{u&&d.start({y:0,opacity:1})},[d,u]),(0,i.jsx)(r.P.div,{ref:c,initial:{y:-100,opacity:0}
1,animate:d,className:"".concat(l&&"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,l)=>{l.d(t,{$:()=>c,r:()=>d});var i=l(64139),n=l(53851),s=l(31319),r=l(45860),a=l(42491),o=l(92483);let d=(0,r.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,a.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,a.cn)("h-9 px-4 py-2",o.RQ.button.size.default),sm:(0,a.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=n.forwardRef((e,t)=>{let{className:l,variant:n,size:r,asChild:o=!1,...c}=e,u=o?s.DX:"button";return(0,i.jsx)(u,{className:(0,a.cn)(d({variant:n,size:r,className:l})),ref:t,...c})});c.displayName="Button"},64292:(e,t,l)=>{l.d(t,{Cf:()=>x,Es:()=>h,L3:()=>m,c7:()=>p,lG:()=>o,rr:()=>f,zM:()=>d});var i=l(64139),n=l(53851),s=l(77571),r=l(55e3),a=l(42491);let o=s.bL,d=s.l9,c=s.ZL;s.bm;let u=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)(s.hJ,{ref:t,className:(0,a.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",l),...n})});u.displayName=s.hJ.displayName;let x=n.forwardRef((e,t)=>{let{className:l,children:n,...o}=e;return(0,i.jsxs)(c,{children:[(0,i.jsx)(u,{}),(0,i.jsxs)(s.UC,{ref:t,className:(0,a.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",l),...o,children:[n,(0,i.jsxs)(s.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,i.jsx)(r.MKb,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=s.UC.displayName;let p=e=>{let{className:t,...l}=e;return(0,i.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...l})};p.displayName="DialogHeader";let h=e=>{let{className:t,...l}=e;return(0,i.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...l})};h.displayName="DialogFooter";let m=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)(s.hE,{ref:t,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",l),...n})});m.displayName=s.hE.displayName;let f=n.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,i.jsx)(s.VY,{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",l),...n})});f.displayName=s.VY.displayName},21776:(e,t,l)=>{l.d(t,{p:()=>a});var i=l(64139),n=l(53851),s=l(92483),r=l(42491);let a=n.forwardRef((e,t)=>{let{className:l,type:n,...a}=e;return(0,i.jsxs)("div",{className:"relative w-full",children:[(0,i.jsx)("input",{type:n,className:(0,r.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",s.RQ.input.base,l,a.endadornment&&"pr-12"),ref:t,...a}),a.endadornment&&(0,i.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1",children:a.endadornment})]})});a.displayName="Input"},42886:(e,t,l)=>{l.d(t,{O4:()=>n,US:()=>s});var i=l(64139);let n=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,i.jsx)("path",{d:"M22 12.4746C22 17.9946 17.52 22.4746 12 22.4746C6.48 22.4746 2 17.9946 2 12.4746C2 6.95461 6.48 2.47461 12 2.47461C17.52 2.47461 22 6.95461 22 12.4746Z",stroke:"#7828C8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.7109 15.6544L12.6109 13.8044C12.0709 13.4844 11.6309 12.7144 11.6309 12.0844V7.98438",stroke:"#7828C8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,i.jsx)("path",{d:"M6 18L18 6.00007",stroke:"#070707",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M18 18L6 6.00012",stroke:"#070707",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},78134:(e,t,l)=>{l.d(t,{N:()=>i});function i(e){let t=Reflect.get(window,"fbq");"function"==typeof t&&t("track","Purchase",{value:Number(e.value),currency:e.currency,content_type:"product",content_ids:[e.event_id],...e.content_name&&{content_name:e.content_name}})}},92483:(e,t,l)=>{l.d(t,{RQ:()=>i});let i={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,l)=>{l.d(t,{cn:()=>s});var i=l(65913),n=l(19714);function s(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,n.QP)((0,i.$)(t))}},86049:(e,t,l)=>{function i(e){var t,l;return(null==e?void 0:e.includes(","))?[null==e?void 0:null===(t=e.split(",")[0])||void 0===t?void 0:t.trim().substring(1).replace(/"/g,""),null===(l=e.split(",")[1])||void 0===l?void 0:l.trim().slice(0,-1).replace(/"/g,"")]:[]}l.d(t,{ne:()=>i}),l(85672),l(92483),new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"})},26456:(e,t,l)=>{l.d(t,{dh:()=>o,u3:()=>c,Te:()=>n,Vt:()=>d}),l(6761),l(86049);let i=e=>{var t;return!!e&&!0===e.active&&!0!==e.sold_out&&(null===e.capacity||void 0===e.capacity||(null!==(t=e.sold)&&void 0!==t?t:0)<e.capacity)},n=e=>{var t,l;return(null==e?void 0:e.is_sold_out)!==void 0?e.is_sold_out:!!(null!==(t=null==e?void 0:e.ticket_details)&&void 0!==t?t:[]).some(e=>!0===e.active)&&!(null!==(l=null==e?void 0:e.ticket_details)&&void 0!==l?l:[]).some(e=>i(e))};var s=l(38896),r=l(40492),a=l(87114);let o=e=>{var t,l,i,n,s,r,a,o,d,c,u,x,p,h,m,f,v,g,j,w,b,C,N,k,y,_,E,L,P,A,H,R,S,M,I,T,V;let Z=e.ticket_details.map(e=>{var t,l,i,n,s,r;return{id:null!==(t=e.id)&&void 0!==t?t:0,active:!0===e.active,capacity:null!==(l=e.capacity)&&void 0!==l?l:null,external_url:null!==(i=e.external_url)&&void 0!==i?i:null,price:null!==(n=e.price)&&void 0!==n?n:null,
1sold:e.sold,sold_out:null!==(s=e.sold_out)&&void 0!==s?s:null,ticket_category:null!==(r=e.ticket_category)&&void 0!==r?r:null}}),U=Z[0],B="string"==typeof e.duration?e.duration:"";return{shows:{id:null!==(v=null===(t=e.shows)||void 0===t?void 0:t.id)&&void 0!==v?v:0,title:null!==(g=null===(l=e.shows)||void 0===l?void 0:l.title)&&void 0!==g?g:"",description:null!==(j=null===(i=e.shows)||void 0===i?void 0:i.description)&&void 0!==j?j:null,image:null!==(w=null===(n=e.shows)||void 0===n?void 0:n.image)&&void 0!==w?w:null,workshop_show:null===(s=e.shows)||void 0===s?void 0:s.workshop_show},locations:{title:null!==(b=null===(r=e.locations)||void 0===r?void 0:r.title)&&void 0!==b?b:void 0,location_city:null!==(C=null===(a=e.locations)||void 0===a?void 0:a.location_city)&&void 0!==C?C:"",location_street:null!==(N=null===(o=e.locations)||void 0===o?void 0:o.location_street)&&void 0!==N?N:"",image:null!==(k=null===(d=e.locations)||void 0===d?void 0:d.image)&&void 0!==k?k:null,region_id:(null===(c=e.locations)||void 0===c?void 0:c.region_id)&&"object"==typeof e.locations.region_id?{id:"id"in e.locations.region_id&&null!==(y=e.locations.region_id.id)&&void 0!==y?y:null,title:"title"in e.locations.region_id&&null!==(_=e.locations.region_id.title)&&void 0!==_?_:void 0}:null},id:null!==(E=e.id)&&void 0!==E?E:0,title:null!==(L=null===(u=e.shows)||void 0===u?void 0:u.title)&&void 0!==L?L:"No title",date:B,ticket_type:null!==(P=e.ticket_type)&&void 0!==P?P:null,duration:B,discount_percentage:null!==(A=e.discount_percentage)&&void 0!==A?A:null,ticket_details:Z,show_id:null!==(H=null===(x=e.shows)||void 0===x?void 0:x.id)&&void 0!==H?H:0,city:null!==(R=null===(p=e.locations)||void 0===p?void 0:p.location_city)&&void 0!==R?R:"",description:null!==(S=null===(h=e.shows)||void 0===h?void 0:h.description)&&void 0!==S?S:"",location:null!==(M=null===(m=e.locations)||void 0===m?void 0:m.location_street)&&void 0!==M?M:"",external_url:null!==(I=null==U?void 0:U.external_url)&&void 0!==I?I:null,price:null!==(T=null==U?void 0:U.price)&&void 0!==T?T:null,imageUrl:(null===(f=e.shows)||void 0===f?void 0:f.image)||null,eventId:e.id,is_sold_out:null!==(V=e.is_sold_out)&&void 0!==V&&V}},d=e=>{let t=(0,s.qg)(e,"dd.MM.yyyy",new Date);if(t)return(0,r.GP)(t,"EEEE",{locale:a.de})},c=e=>{if(e)return e.includes("http")?e:"https://".concat(e)}},93806:(e,t,l)=>{let i;l.d(t,{TRPCReactProvider:()=>m,F:()=>h});var n=l(64139),s=l(42580),r=l(7901),a=l(53105),o=l(53851),d=l(70457),c=l(14840),u=l(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}}});l(55036);let p=()=>null!=i?i:i=x(),h=(0,a.pY)();function m(e){let t=p(),[l]=(0,o.useState)(()=>h.createClient({links:[(0,r.$H)({enabled:e=>"down"===e.direction&&e.result instanceof Error}),(0,r.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,n.jsx)(s.QueryClientProvider,{client:t,children:(0,n.jsx)(h.Provider,{client:l,queryClient:t,children:e.children})})}},6761:(e,t,l)=>{l.d(t,{_:()=>r});var i=l(65810),n=l(54804),s=l(55036);let r=(0,i.w)({server:{NODE_ENV:n.z.enum(["development","test","production"]),SUPABASE_SERVICE_ROLE_KEY:n.z.string(),SR_USER_ID:n.z.string(),RESEND_API_KEY:n.z.string(),UPSTASH_REDIS_REST_URL:n.z.string().optional(),UPSTASH_REDIS_REST_TOKEN:n.z.string().optional(),AHASEND_API_KEY:n.z.string().optional()},client:{NEXT_PUBLIC_OUTSCRAPER_API_KEY:n.z.string(),NEXT_PUBLIC_ORIGIN:n.z.string(),NEXT_PUBLIC_SUPABASE_ANON_KEY:n.z.string(),NEXT_PUBLIC_SUPABASE_URL:n.z.string()},runtimeEnv:{NODE_ENV:"production",SUPABASE_SERVICE_ROLE_KEY:s.env.SUPABASE_SERVICE_ROLE_KEY,SR_USER_ID:s.env.SR_USER_ID,RESEND_API_KEY:s.env.RESEND_API_KEY,UPSTASH_REDIS_REST_URL:s.env.UPSTASH_REDIS_REST_URL,UPSTASH_REDIS_REST_TOKEN:s.env.UPSTASH_REDIS_REST_TOKEN,AHASEND_API_KEY:s.env.AHASEND_API_KEY,NEXT_PUBLIC_OUTSCRAPER_API_KEY:"ZTAxNmU5MjIyMTUzNGJlNDhlNWNmOTFmMTBiNDhjYzZ8YWYwYTU5NDExNQ",NEXT_PUBLIC_ORIGIN:"https://luckypunch-comedyclub.de",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InlkZGlwZmljZGVnYWVnZHRzaWtmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjE2MzA0ODYsImV4cCI6MjAzNzIwNjQ4Nn0.uyLpaAd7BE8Jl0x0tkxULsWcayAS5deBrTRVXdAkirA",NEXT_PUBLIC_SUPABASE_URL:"https://yddipficdegaegdtsikf.supabase.co"},skipValidation:!!s.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0})}}]);
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.