1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3970],{1510:(e,t,n)=>{n.d(t,{I:()=>r});var i=n(12482),l=n(24186),a=n(19117);let r=e=>{let{enabled:t}=e,n=(0,a.lr)();return(0,i.I)({queryKey:["IP_LOCATION"],queryFn:()=>n(l.vL.ipLocation()),enabled:t})}},5100:(e,t,n)=>{n.d(t,{A:()=>l,k:()=>i});let i=(e,t)=>{let n=e=>e*Math.PI/180,i=n(e.lat),l=n(t.lat),a=n(t.lat-e.lat),r=n(t.lon-e.lon),o=Math.sin(a/2),s=Math.sin(r/2),d=o*o+Math.cos(i)*Math.cos(l)*s*s;return 2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))*6371.0088},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;return i(e,t)<=n}},9247:(e,t,n)=>{n.d(t,{V:()=>a,f:()=>r});var i=n(12482),l=n(19117);let a="GET_DROP",r=(e,t)=>{let n=(0,l.MI)({needsAuthentication:!t}),r=new URLSearchParams;return t&&r.append("token",t.toString()),(0,i.I)({queryKey:[a,{drop_id:e.drop_id},t],queryFn:()=>n("/brand/v2/".concat(t?"shareable/":"","get_drop?").concat(r),{method:"POST",body:JSON.stringify(e)}),enabled:!!e.drop_id})}},10706:(e,t,n)=>{n.d(t,{A:()=>d,_:()=>s});var i=n(6029),l=n(75828),a=n.n(l),r=n(82558),o=n(49956),s=function(e){return e.Secondary="secondary",e.Tertiary="tertiary",e.IconOnly="icon-only",e}({});let d=e=>{let{type:t,iconType:n,text:l,className:s,disabled:d,onClick:c}=e;return(0,i.jsxs)("div",{className:a()("flex flex-row items-center space-x-1 transition",{"fill-black/[25%] text-black/40 dark:fill-white/[25%] dark:text-white/40":d,"cursor-pointer fill-black text-black dark:fill-white dark:text-white":!d,"hover:fill-black/80 hover:text-black/80 active:fill-black/60 active:text-black/60 dark:hover:fill-white/80 dark:hover:text-white/80 dark:active:fill-white/60 dark:active:text-white/60":"icon-only"===t&&!d,"h-[40px] rounded-[10px] border border-black/[8%] px-3 dark:border-white/[8%]":"secondary"===t,"hover:border-black/[24%] active:border-black/40 dark:hover:border-white/[24%] dark:active:border-white/40":"secondary"===t&&!d,"h-[36px] w-[36px] shrink-0 justify-center rounded-xl border border-transparent bg-black/[4%] dark:bg-white/[8%]":"tertiary"===t},s),onClick:c,children:[n&&(0,i.jsx)(r.I,{type:n,size:"tertiary"===t?16:20,className:"fill-inherit"}),l&&(0,i.jsx)(o.E,{typography:"icon-only"===t?o.o.Callout:o.o.Footnote,bold:!0,className:"whitespace-nowrap text-inherit",children:l})]})}},22711:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6029),l=n(49956),a=n(10706);let r=e=>{let{title:t,description:n,buttonText:r,buttonOnClick:o}=e;return(0,i.jsxs)("div",{className:"drop-compact-row flex w-full flex-row items-center justify-between space-x-3 rounded-2xl border border-black/[8%] p-3 dark:border-white/[12%]",children:[(0,i.jsxs)("div",{className:"space-y-0.5",children:[(0,i.jsx)(l.E,{typography:l.o.Footnote,bold:!0,className:"text-black dark:text-white",children:t}),(0,i.jsx)(l.E,{typography:l.o.Caption1,className:"text-black/60 dark:text-white/60",children:n})]}),(0,i.jsx)(a.A,{type:a._.Secondary,onClick:o,text:r})]})}},24186:(e,t,n)=>{n.d(t,{vL:()=>l});let i={legacy:"https://api.cobrand.com",drops:"https://api-v2.cobrand.com/drops"};i.legacy,i.drops;let l={ipLocation:()=>"/app/v2/ip_location",subscribe:()=>"/app/v2/subscribe_to_drop_v2",requestOtp:()=>"/app/v2/drop_otp_v2",appleMusicAuth:e=>"/app/v2/drops/".concat(e,"/get_apple_music_auth_token_v3"),saveAppleMusicToken:e=>"/app/v2/drop/signups/".concat(e,"/save_apple_music_user_token"),beginContentUpload:()=>"/drops/v0/content_submission/begin_upload",completeContentUpload:()=>"/drops/v0/content_submission/complete_upload",getUnsubscribe:e=>"/app/v2/drop_unsubscribe?token=".concat(encodeURIComponent(e)),unsubscribe:()=>"/app/v2/drop_unsubscribe",resubscribe:()=>"/app/v2/drop_resubscribe",getSignup:e=>"/app/v2/drop_signup/".concat(e),optInSignup:e=>"/app/v2/drop_signup/".concat(e,"/opt_in"),optOutSignup:e=>"/app/v2/drop_signup/".concat(e,"/opt_out"),spotifyAuthLink:e=>"/spotify/signups/".concat(e,"/auth_link"),dropFeed:(e,t)=>"/drop/feed/".concat(e,"?tab=").concat(encodeURIComponent(t)),feedMedia:()=>"/drop/feed/get_media",feedWatch:()=>"/drop/feed/watch",createEvent:()=>"/event/create",getRSVP:()=>"/rsvp/get",acceptRSVP:()=>"/rsvp/accept",declineRSVP:()=>"/rsvp/decline"}},24436:(e,t,n)=>{n.d(t,{A:()=>
1o});var i=n(6029),l=n(75828),a=n.n(l),r=n(50717);let o=e=>{let{customImageUrl:t,className:n}=e;return(0,i.jsxs)("div",{className:a()("@3xl:w-[300px] relative m-auto aspect-square h-auto max-h-[300px] min-h-[200px] w-[200px] min-w-[200px] max-w-[300px]",n),children:[(0,i.jsx)("div",{className:"absolute top-0 h-full max-h-[300px] min-h-[200px] w-full min-w-[200px] max-w-[300px] rounded-[22px] bg-black/[8%] dark:bg-white/[8%]"}),(0,i.jsx)(r.A,{imageUrl:t,className:"absolute right-2 top-2 aspect-square !h-[calc(100%-16px)] !w-[calc(100%-16px)] !border-none",imageClassName:"!object-cover"})]})}},25051:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(6029),l=n(75828),a=n.n(l),r=n(8461),o=n(81783),s=n(82558),d=n(49956);let c=e=>{let{isScrolledToEnd:t,label:n="Scroll Down",className:l}=e;return(0,i.jsx)(r.N,{children:(0,i.jsx)(o.P.div,{className:a()("pointer-events-none sticky bottom-4 z-10 flex w-full justify-center",l),initial:{opacity:0},animate:{opacity:100*!t},exit:{opacity:0},children:(0,i.jsxs)("div",{className:"flex flex-row items-center space-x-0.5 rounded-[100px] bg-black/[32%] px-[10px] py-1 backdrop-blur-[12px] dark:bg-white/[32%]",children:[(0,i.jsx)(d.E,{typography:d.o.Caption1,bold:!0,className:"text-white",children:n}),(0,i.jsx)(s.I,{type:s.A.Arrow,className:"rotate-90 fill-white",size:12})]})})})}},26130:(e,t,n)=>{n.d(t,{$e:()=>u,FT:()=>r,V3:()=>d,W5:()=>s,uK:()=>c});var i=n(6029),l=n(55729);let a=(0,l.createContext)(null),r=e=>{let{runtime:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})},o=()=>{let e=(0,l.useContext)(a);if(!e)throw Error("Drop design hooks must be used inside the Cobrand Drop host.");return e},s=()=>o().page,d=()=>o().signup,c=()=>d().form.fields,u=e=>{let t=c();return(0,l.useMemo)(()=>t.find(t=>t.definition.key===e||t.definition.kind===e),[t,e])}},27282:(e,t,n)=>{n.d(t,{m:()=>r});var i=n(6029);let l={amazon:{viewBox:"0 0 24 24",body:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.76027 17.6248C1.46144 17.2721 1.80586 17.1129 2.0085 17.2419L2.89729 17.7956C6.18854 19.8167 11.1097 22.3152 18.6422 18.6319C18.991 18.4823 19.2348 18.7321 18.8896 19.185L18.8093 19.2803C18.2275 19.9246 15.5043 22.26 11.0936 22.26C6.42666 22.26 2.85126 18.984 1.76027 17.6248ZM18.9034 17.0563C19.6112 16.9669 20.7359 17.0221 20.9572 17.3183C21.1254 17.5438 20.9516 18.5574 20.6666 19.284C20.3796 20.0066 19.9519 20.5173 19.7156 20.7145C19.4761 20.9117 19.2998 20.8354 19.4274 20.5392L19.5014 20.3618C19.7243 19.8066 20.2462 18.3584 19.9957 18.0211C19.7717 17.7203 18.8792 17.7653 18.2701 17.8227L17.3738 17.915C17.2828 17.9193 17.2467 17.9055 17.223 17.8554C17.1305 17.5882 18.1945 17.143 18.9034 17.0563Z"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6649 1.73999C12.9507 1.73999 14.6304 2.09129 15.6449 3.09168C16.9307 4.3249 16.808 5.9705 16.808 7.76122V11.9917C16.808 13.2632 17.3209 13.8206 17.8039 14.5079C17.9749 14.7523 18.0121 15.0463 17.7965 15.2295L17.3269 15.6383C16.8052 16.0974 16.167 16.6709 15.7713 17.0317L15.7638 17.0241C15.5892 17.1844 15.3365 17.1959 15.1396 17.089C14.2626 16.3406 14.1065 15.9932 13.6234 15.2792C12.1742 16.7988 11.1485 17.2531 9.26817 17.2531C7.04593 17.2531 5.3142 15.8442 5.3142 13.0226C5.3142 10.8196 6.47741 9.31902 8.13097 8.58599C9.56544 7.93683 11.5684 7.8223 13.0995 7.64291L13.1015 6.84744C13.1004 6.31711 13.066 5.75883 12.7799 5.32528C12.4565 4.82509 11.8397 4.6189 11.2971 4.6189C10.3493 4.6189 9.49693 5.08899 9.21715 6.06106L9.17151 6.24921C9.12686 6.49363 8.95226 6.73419 8.71445 6.74562L6.1503 6.46313C5.93481 6.41339 5.697 6.234 5.75645 5.89413C6.3473 2.70223 9.15287 1.73999 11.6649 1.73999ZM13.0994 9.81921C11.1892 9.81921 9.17142 10.2392 9.17142 12.553C9.17142 13.7251 9.76227 14.5193 10.7768 14.5193C11.52 14.5193 12.1852 14.0497 12.6051 13.286C13.0308 12.5176 13.0908 11.7874 13.0985 10.9681L13.0994 9.81921Z"})]})},apple:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M20.7364 16.9729C20.413 17.72 20.0302 18.4077 19.5867 19.04C18.9822 19.9019 18.4872 20.4985 18.1057 20.8298C17.5144 21.3737 16.8808 21.6522 16.2024 21.668C15.7153 21.668 15.1279 21.5294 14.4442 21.2483C13.7582 20.9684 13.1278 20.8298 12.5514 20.8298C11.9468 20.8298 11.2985 20.9684 10.605 21.2483C9.9104 21.5294 9.35087 21.6759 8.92307 21.6905C8.27246 21.7182 7.62397 21.4317 6.97666 20.8298C6.56352 20.4695 6.04676 19.8518 5.4277 18.9766C4.7635 18.0421 4.21743 16.9584 3.78963 15.7229C3.33148 14.3885 3.10181 13.0962 3.10181 11.8452C3.10181 10.4121 3.41147 9.17608 4.03171 8.14031C4.51917 7.30834 5.16767 6.65206 5.97931 6.17028C6.79095 5.68849 7.66792 5.44298 8.61235 5.42727C9.12911 5.42727 9.80678 5.58712 10.6489 5.9
10127C11.4887 6.21648 12.0279 6.37632 12.2643 6.37632C12.441 6.37632 13.04 6.18942 14.0554 5.81679C15.0157 5.47123 15.8262 5.32815 16.4901 5.38451C18.2892 5.5297 19.6408 6.23891 20.5397 7.51663C18.9307 8.49155 18.1348 9.85705 18.1506 11.6088C18.1651 12.9732 18.6601 14.1086 19.6329 15.0102C20.0738 15.4286 20.5661 15.752 21.1139 15.9816C20.9951 16.3261 20.8697 16.6561 20.7364 16.9729ZM16.6102 0.73615C16.6102 1.80559 16.2195 2.80412 15.4407 3.72836C14.5009 4.82709 13.3642 5.46199 12.1315 5.3618C12.1158 5.2335 12.1067 5.09847 12.1067 4.95658C12.1067 3.92992 12.5536 2.83118 13.3473 1.93282C13.7435 1.47797 14.2475 1.09976 14.8586 0.798055C15.4685 0.500854 16.0453 0.336495 16.5878 0.30835C16.6036 0.451317 16.6102 0.594294 16.6102 0.736136V0.73615Z"})})},audiomack:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.30418 11.4761C1.30418 11.4761 1.80063 11.3998 2.00522 11.5979C2.21055 11.7953 2.07562 12.2049 1.8043 12.2112C1.53224 12.2182 1.28145 12.2644 1.10252 12.0894C1.05633 12.0414 1.0242 11.9827 1.00933 11.9191C0.994467 11.8555 0.997403 11.7893 1.01784 11.7271C1.03828 11.665 1.07551 11.609 1.12577 11.565C1.17603 11.5209 1.23757 11.4902 1.30418 11.4761ZM6.54441 14.2177C6.18876 13.7584 6.06043 12.1895 5.89617 12.0964C5.7275 11.999 5.11299 12.9652 3.89276 12.8616C3.38165 12.8182 2.86246 12.5115 2.55667 12.3001C2.58527 11.9437 2.58967 11.1113 3.35011 11.3816C3.8121 11.5461 4.60334 11.9976 5.29778 11.1869C6.06556 10.2901 6.48941 10.5505 6.74314 10.7459C6.9976 10.9405 6.8282 11.9542 7.20659 11.6707C7.58571 11.3879 9.1154 9.62781 9.1154 9.62781C9.1154 9.62781 10.2997 8.52305 10.4808 9.68382C10.6619 10.846 11.4341 12.1321 11.6395 12.0957C11.844 12.0593 14.2258 7.58071 14.5676 7.29227C14.9085 7.00313 16.0569 7.04094 16.0026 7.78234C15.9484 8.52375 15.8311 13.1304 15.8311 13.1304C15.8311 13.1304 15.6961 14.4284 15.9154 13.7346C16.007 13.4469 16.1046 13.1871 16.2263 12.8847C16.8144 11.1435 17.8161 8.1702 18.3148 6.63768L18.6052 5.71355C18.6345 5.60153 18.6646 5.51262 18.6946 5.43351C18.7364 5.30329 18.7643 5.21718 18.7731 5.19547C18.7951 5.13736 18.8582 5.09396 18.9462 5.06175C19.0341 5.01065 19.1287 5.00785 19.2358 5.00575C19.5569 4.98583 19.8792 5.01778 20.1891 5.10026C20.2937 5.10431 20.3948 5.13713 20.4802 5.19477L20.4942 5.20317L20.5008 5.20737C20.5341 5.23043 20.5644 5.25723 20.591 5.28719L20.5946 5.29139C20.6115 5.31155 20.6271 5.33258 20.6416 5.3544C20.8205 5.59663 20.9305 6.04399 20.8205 6.83721C20.5455 8.81709 20.3328 12.8903 20.3328 12.8903C20.3328 12.8903 20.2903 13.0849 20.7318 12.2273C20.7472 12.1972 20.767 12.1713 20.7853 12.144C20.8169 12.1242 20.8451 12.0999 20.8689 12.0719C21.1409 11.7708 21.8735 11.5951 22.3824 11.5986C22.5966 11.6224 22.7762 11.6721 22.8833 11.7351C23.0835 12.0172 22.9654 13.059 22.9654 13.059C22.5423 13.0954 21.7364 13.3054 21.4511 13.3446C21.1651 13.3831 20.731 15.0991 20.1282 14.9241C19.5247 14.7483 18.1806 13.9684 18.1806 13.8613C18.1806 13.7682 18.2862 12.6277 18.314 12.3337L18.3192 12.2763L18.3199 12.2644C18.3397 12.0334 18.3221 11.9318 18.2062 12.1629C18.1072 12.3617 17.6739 13.6345 17.1913 15.0207C17.14 15.1418 16.2278 17.6958 16.1075 18.0073C15.9645 18.3686 15.845 18.6451 15.7621 18.7879C15.6353 18.9461 15.4651 19.0456 15.2275 18.979C14.635 18.8131 13.8848 18.0556 13.8775 17.868C13.8628 16.808 13.9332 11.1085 13.6553 11.5839C13.3701 12.0705 11.1525 15.4505 11.1525 15.4505C11.1159 15.4561 11.088 15.4547 11.0557 15.4575C10.8988 15.4421 10.6553 15.3945 10.5879 15.2559L10.5761 15.2314L10.5637 15.1971C10.5344 15.1047 10.5212 15.0032 10.4948 14.9206C10.3612 14.5167 10.2196 14.1152 10.0702 13.7164C9.81497 12.9463 9.55245 12.1587 9.50918 12.0719C9.42412 11.9017 9.30092 11.9738 9.19019 12.0719C8.69521 12.4604 7.64438 14.1736 6.69474 14.2674C6.64707 14.2723 6.59648 14.252 6.54441 14.2177Z"})})},bandcamp:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M15.9967 18.743H1L8.00324 5.81549H23L15.9967 18.743Z"})})},bandsintown:{viewBox:"0 0 500 500",body:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("rect",{x:"173.91",y:"152.17",width:"65.22",height:"86.96"}),(0,i.jsx)("rect",{x:"260.87",y:"152.17",width:"65.22",height:"86.96"}),(0,i.jsx)("rect",{x:"347.83",y:"86.96",width:"65.22",height:"152.17"}),(0,i.jsx)("polygon",{points:"173.91 260.87 173.91 326.09 347.83 326.09 347.83 347.83 152.17 347.83 152.17 86.96 86.96 86.96 86.96 413.04 413.04 413.04 413.04 260.87 173.91 260.87"})]})},beatport:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M20.9537 16.4005C20.9537 19.7744 18.2521 22.5 14.8182 22.5C11.3962 22.5 8.7187 19.8345 8.7187 16.4005C8.7187 14.7796 9.33104 13.3508 10.3156 12.2702L6.17324 16.4005L4 14.2393L8.67067 9.62864C9.30703 8.99228 9.63121 8.17581 9.63121 7.2753V1.5H12.693V7.2753C12.693 9.05231 12.0566 10.5532 10.8319 11.7779L10.6998 11.9099C11.7804 10.9254 13.2573 10.325 14.8302 10.325C18.3002 10.3371 20.9537 13.0746 20.9537 16.4005ZM18.1801 16.4005C18.1801 14.5875 16.66
172 13.1226 14.8182 13.1226C12.9691 13.1226 11.4923 14.6595 11.4923 16.4005C11.4923 18.1415 12.9691 19.7144 14.8182 19.7144C16.6792 19.7144 18.1801 18.1535 18.1801 16.4005Z"})})},community:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M21.7209 12.752C21.8565 11.03 21.5303 9.30294 20.7759 7.749C19.5273 8.93539 18.0513 9.85658 16.4369 10.457C16.5667 12.0503 16.4948 13.6537 16.2229 15.229C18.1874 14.7342 20.0488 13.8956 21.7209 12.752ZM14.6339 15.55C14.9533 14.023 15.065 12.4599 14.9659 10.903C14.0139 11.13 13.0209 11.25 11.9999 11.25C10.9789 11.25 9.98594 11.13 9.03394 10.903C8.93719 12.4599 9.04884 14.0227 9.36594 15.55C11.1117 15.8176 12.8881 15.8176 14.6339 15.55ZM9.77194 17.119C11.2521 17.2941 12.7478 17.2941 14.2279 17.119C13.7192 18.7566 12.9682 20.3088 11.9999 21.724C11.0316 20.3088 10.2806 18.7566 9.77194 17.119ZM7.77694 15.23C7.50358 13.6542 7.43167 12.05 7.56294 10.456C5.94823 9.85572 4.47186 8.93453 3.22294 7.748C2.46876 9.30233 2.14289 11.0297 2.27894 12.752C3.95108 13.8956 5.81247 14.7352 7.77694 15.23ZM21.3559 14.752C20.851 16.4629 19.8871 18.0029 18.5688 19.2047C17.2505 20.4065 15.6282 21.2242 13.8779 21.569C14.7545 20.0953 15.4234 18.5076 15.8659 16.851C17.7954 16.4466 19.6485 15.7384 21.3559 14.753V14.752ZM2.64394 14.752C4.32594 15.723 6.17394 16.44 8.13394 16.851C8.57645 18.5076 9.24542 20.0953 10.1219 21.569C8.37183 21.2242 6.74959 20.4067 5.43129 19.2051C4.11298 18.0035 3.14899 16.4638 2.64394 14.753V14.752ZM13.8779 2.43C16.3557 2.91701 18.548 4.34583 19.9939 6.416C18.9266 7.49438 17.6525 8.34608 16.2479 8.92C15.8695 6.62782 15.0657 4.42664 13.8779 2.43ZM11.9999 2.276C13.4594 4.4081 14.4182 6.84236 14.8049 9.397C13.9079 9.627 12.9679 9.75 11.9999 9.75C11.0319 9.75 10.0919 9.628 9.19494 9.397C9.58163 6.84235 10.5405 4.40808 11.9999 2.276ZM10.1219 2.43C8.93417 4.42663 8.13035 6.62781 7.75194 8.92C6.3474 8.3461 5.07325 7.4944 4.00594 6.416C5.45198 4.34613 7.64433 2.91666 10.1219 2.43Z"})})},deezer:{viewBox:"0 0 16 16",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5161 3.36625C12.6395 2.65124 12.8205 2.20163 13.021 2.20077H13.0214C13.3953 2.20206 13.6984 3.76132 13.6984 5.68647C13.6984 7.6116 13.3949 9.17216 13.0206 9.17216C12.8671 9.17216 12.7255 8.90719 12.6115 8.46316C12.4313 10.0886 12.0574 11.206 11.6246 11.206C11.2897 11.206 10.9892 10.5348 10.7874 9.47619C10.6496 11.4894 10.3029 12.9177 9.8976 12.9177C9.64326 12.9177 9.41137 12.3517 9.2397 11.4301C9.03326 13.3325 8.55636 14.6654 8.00017 14.6654C7.444 14.6654 6.96627 13.3329 6.76066 11.4301C6.59024 12.3517 6.35838 12.9177 6.10274 12.9177C5.69749 12.9177 5.35157 11.4894 5.21296 9.47619C5.01118 10.5348 4.71148 11.206 4.37573 11.206C3.94334 11.206 3.56903 10.089 3.38887 8.46316C3.27569 8.90849 3.13325 9.17216 2.97979 9.17216C2.60548 9.17216 2.30196 7.6116 2.30196 5.68647C2.30196 3.76132 2.60548 2.20077 2.97979 2.20077C3.18073 2.20077 3.36047 2.65167 3.4851 3.36625C3.68476 2.13335 4.00906 1.33203 4.37573 1.33203C4.81109 1.33203 5.18837 2.4653 5.36685 4.11088C5.54149 2.9132 5.80643 2.14967 6.10318 2.14967C6.51902 2.14967 6.87258 3.65139 7.00358 5.74617C7.24986 4.67214 7.60636 3.99837 8.00103 3.99837C8.3957 3.99837 8.7522 4.67258 8.99806 5.74617C9.12948 3.65139 9.48259 2.14967 9.89846 2.14967C10.1948 2.14967 10.4593 2.9132 10.6348 4.11088C10.8128 2.4653 11.1901 1.33203 11.6255 1.33203C11.9909 1.33203 12.3164 2.13378 12.5161 3.36625ZM1.33337 5.34364C1.33337 4.48305 1.50548 3.78522 1.71786 3.78522C1.93024 3.78522 2.10235 4.48305 2.10235 5.34364C2.10235 6.2042 1.93024 6.90204 1.71786 6.90204C1.50548 6.90204 1.33337 6.2042 1.33337 5.34364ZM13.8977 5.34364C13.8977 4.48305 14.0698 3.78522 14.2822 3.78522C14.4946 3.78522 14.6667 4.48305 14.6667 5.34364C14.6667 6.2042 14.4946 6.90204 14.2822 6.90204C14.0698 6.90204 13.8977 6.2042 13.8977 5.34364Z"})})},discord:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M14.97 4C14.7637 4.36622 14.5785 4.74507 14.4102 5.13233C12.8106 4.8924 11.1815 4.8924 9.57774 5.13233C9.41357 4.74507 9.22414 4.36622 9.01789 4C7.51513 4.25678 6.05024 4.70718 4.66114 5.3428C1.90818 9.42173 1.16311 13.3954 1.53354 17.3144C3.14574 18.5057 4.95159 19.4149 6.87529 19.9958C7.30886 19.4149 7.69192 18.7961 8.02026 18.1521C7.39726 17.9206 6.79531 17.6301 6.21863 17.2934C6.37016 17.1839 6.51749 17.0703 6.66061 16.9608C10.0408 18.552 13.9555 18.552 17.3399 16.9608C17.483 17.0787 17.6304 17.1923 17.7819 17.2934C17.2052 17.6343 16.6033 17.9206 15.9761 18.1563C16.3044 18.8003 16.6874 19.4191 17.12
11 20C19.0447 19.4191 20.8505 18.5141 22.4628 17.3228C22.9005 12.7766 21.7135 8.83662 19.3267 5.34702C17.9419 4.7114 16.477 4.26098 14.9742 4.00842L14.97 4ZM8.49171 14.9024C7.45199 14.9024 6.58906 13.9595 6.58906 12.7935C6.58906 11.6275 7.41831 10.6804 8.48751 10.6804C9.55671 10.6804 10.407 11.6317 10.3902 12.7935C10.3733 13.9553 9.55249 14.9024 8.49171 14.9024ZM15.5046 14.9024C14.4607 14.9024 13.6062 13.9595 13.6062 12.7935C13.6062 11.6275 14.4354 10.6804 15.5046 10.6804C16.5738 10.6804 17.4199 11.6317 17.403 12.7935C17.3862 13.9553 16.5654 14.9024 15.5046 14.9024Z"})})},facebook:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M16.1125 15.259H13.2721V22.5C18.4711 21.8697 22.5 17.4267 22.5 12.0386C22.5 6.21829 17.799 1.5 12 1.5C6.20102 1.5 1.5 6.21829 1.5 12.0386C1.5 16.981 4.89003 21.128 9.46343 22.2669V15.259H7.29825V12.0386H9.46343V10.6509C9.46343 10.4267 9.46975 10.2101 9.48245 10.0009C9.67299 6.86261 11.3001 5.40132 14.5894 5.40132C14.6726 5.40132 14.7633 5.40335 14.8593 5.40719C15.531 5.43404 16.4612 5.54862 16.872 5.66317V8.5825C16.6242 8.55632 16.1939 8.54325 15.6592 8.54325C15.6591 8.54325 15.6592 8.54325 15.6592 8.54325C13.9375 8.54325 13.2721 9.19778 13.2721 10.8996V12.0386H16.7018L16.1125 15.259Z"})})},instagram:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6391 2.3999H13.3582L14.7195 2.41223C15.1731 2.42104 15.4937 2.43488 15.9569 2.45601C16.9788 2.50262 17.6767 2.66493 18.2873 2.90228C18.9187 3.14759 19.4541 3.47586 19.9878 4.00958C20.5215 4.54334 20.8498 5.07874 21.0952 5.71006C21.3061 6.25287 21.4578 6.86461 21.5216 7.71154L21.5414 8.04049C21.5803 8.89382 21.5945 9.26309 21.5981 10.8714L21.5946 13.9563C21.5884 14.8228 21.575 15.2083 21.5488 15.7923L21.5414 15.9571C21.4948 16.9789 21.3325 17.6768 21.0952 18.2875C20.8498 18.9188 20.5215 19.4542 19.9878 19.988C19.4541 20.5217 18.9187 20.85 18.2873 21.0953C17.7445 21.3063 17.1328 21.4579 16.2859 21.5218L15.5998 21.5574C14.8156 21.5909 14.2801 21.5993 11.9987 21.5993L9.87041 21.5934C9.04806 21.586 8.68035 21.5707 8.04036 21.5415C7.01849 21.4949 6.3206 21.3326 5.70993 21.0953C5.07861 20.85 4.54322 20.5217 4.00946 19.988C3.47574 19.4542 3.14746 18.9188 2.90215 18.2875C2.69118 17.7447 2.53949 17.1329 2.47566 16.286L2.45589 15.9571C2.4189 15.1464 2.40427 14.7726 2.39978 13.3584L2.40236 10.0925C2.40891 9.10924 2.42419 8.73535 2.45589 8.04049C2.5025 7.01862 2.66481 6.32073 2.90215 5.71006C3.14746 5.07874 3.47574 4.54334 4.00946 4.00958C4.54322 3.47586 5.07861 3.14759 5.70993 2.90228C6.25274 2.6913 6.86448 2.53962 7.71141 2.47578L8.04036 2.45601C8.85102 2.41903 9.22481 2.40439 10.6391 2.3999ZM13.882 4.13207H10.1153C9.16343 4.13826 8.80297 4.15285 8.1192 4.18405C7.18316 4.22673 6.67482 4.38313 6.33653 4.51461C5.8884 4.68877 5.56859 4.89681 5.23265 5.23278C4.89668 5.56871 4.68864 5.88853 4.51448 6.33666L4.44113 6.53959C4.34225 6.83679 4.24352 7.24871 4.19828 7.87446L4.15231 8.89233C4.13516 9.42594 4.1293 10.0188 4.12816 11.4033L4.13194 13.8821C4.13813 14.834 4.15272 15.1944 4.18392 15.8782C4.2266 16.8143 4.383 17.3226 4.51448 17.6609C4.68864 18.109 4.89672 18.4288 5.23265 18.7648C5.56859 19.1007 5.8884 19.3088 6.33653 19.483L6.53946 19.5563C6.83666 19.6552 7.24858 19.7539 7.87433 19.7992L8.94168 19.8467C9.42727 19.8615 9.97959 19.8674 11.1374 19.869L13.683 19.8666C14.7084 19.8616 15.0933 19.8488 15.727 19.8204L15.8781 19.8135C16.8141 19.7708 17.3225 19.6144 17.6607 19.483C18.1089 19.3088 18.4287 19.1007 18.7646 18.7648C19.1006 18.4288 19.3086 18.109 19.4828 17.6609L19.5561 17.458C19.655 17.1608 19.7537 16.7488 19.799 16.1231L19.8465 15.0557C19.8614 14.57 19.8672 14.0177 19.8688 12.86L19.8665 10.3145C19.8614 9.28919 19.8486 8.90425 19.8202 8.27043L19.8134 8.11934C19.7707 7.18329 19.6143 6.67495 19.4828 6.33666C19.3086 5.88853 19.1006 5.56871 18.7646 5.23278C18.4287 4.89681 18.1089 4.68877 17.6607 4.51461L17.4578 4.44125C17.1606 4.34238 16.7487 4.24365 16.1229 4.1984L15.1051 4.15244C14.7767 4.14188 14.4259 4.1356 13.882 4.13207ZM11.9987 7.06878C14.7214 7.06878 16.9286 9.276 16.9286 11.9988C16.9286 14.7216 14.7214 16.9288 11.9987 16.9288C9.27586 16.9288 7.06864 14.7216 7.06864 11.9988C7.06864 9.276 9.27586 7.06878 11.9987 7.06878ZM11.9987 8.7986C10.2312 8.798
16 8.79846 10.2314 8.79846 11.9988C8.79846 13.7662 10.2312 15.199 11.9987 15.199C13.7661 15.199 15.1988 13.7662 15.1988 11.9988C15.1988 10.2314 13.7661 8.7986 11.9987 8.7986ZM17.1234 5.72191C17.7597 5.72191 18.2755 6.23772 18.2755 6.874C18.2755 7.51027 17.7597 8.02605 17.1234 8.02605C16.4872 8.02605 15.9714 7.51027 15.9714 6.874C15.9714 6.23772 16.4872 5.72191 17.1234 5.72191Z"})})},pandora:{viewBox:"0 0 20 20",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M2.7002 1V19H7.52869C7.74451 19 7.9515 18.9143 8.1041 18.7617C8.25671 18.6091 8.34244 18.4021 8.34244 18.1863V14.7288H9.55145C15.4614 14.7288 17.8787 11.3972 17.8787 7.50175C17.8779 2.69275 14.2239 1 10.7852 1H2.7002Z"})})})},shazam:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M9.25222 17.9584C7.58126 17.9584 5.93682 17.4014 4.63718 16.314C3.07231 14.9613 2.144 13.1312 2.01139 11.142C1.90529 9.20576 2.54185 7.34914 3.86801 5.89037C5.35331 4.27245 7.9791 1.72623 8.11172 1.62013C8.82785 0.930531 9.96835 0.957054 10.6579 1.67318C11.3476 2.38931 11.321 3.5298 10.6049 4.21941C10.5784 4.24593 7.92606 6.76563 6.54685 8.30398C5.88377 9.0201 5.5655 9.94842 5.61854 10.9033C5.67159 11.9111 6.17553 12.866 6.99775 13.5821C8.0852 14.5369 10.2336 14.7226 11.5863 13.529C12.382 12.8129 13.3633 11.752 13.3633 11.752C14.0264 11.0093 15.1669 10.9828 15.9095 11.6459C16.6522 12.309 16.6787 13.4495 16.0156 14.1921C15.9626 14.2452 14.9282 15.3857 13.9733 16.2079C12.7002 17.3749 10.9762 17.9584 9.25222 17.9584ZM20.1267 17.8258C18.6414 19.4437 15.9891 21.9899 15.883 22.096C15.5382 22.4143 15.0873 22.6 14.6364 22.6C14.159 22.6 13.6816 22.4143 13.3368 22.043C12.6472 21.3269 12.6737 20.1864 13.3898 19.4968C13.4164 19.4702 16.0687 16.9505 17.4479 15.4122C18.111 14.6961 18.4292 13.7678 18.3762 12.8129C18.3232 11.805 17.8192 10.8502 16.997 10.1341C15.9095 9.20576 13.7612 8.99358 12.4085 10.1871C11.6128 10.9033 10.6314 11.9642 10.6314 11.9642C9.96834 12.7068 8.82785 12.7333 8.0852 12.0703C7.34255 11.4072 7.31602 10.2667 7.9791 9.52405C8.03215 9.471 9.06655 8.3305 10.0214 7.50828C12.5676 5.22729 16.7848 5.17424 19.3576 7.40219C20.9224 8.75487 21.8507 10.585 21.9833 12.5742C22.116 14.5369 21.4529 16.3935 20.1267 17.8258Z"})})},snapchat:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M22.9264 16.3693C22.7877 16.0251 22.5096 15.7258 22.1545 15.5761C22.0922 15.5462 22.0306 15.5163 21.9843 15.4864C21.8919 15.4415 21.7833 15.3965 21.6755 15.3367C20.7181 14.8728 19.8993 14.1844 19.2661 13.3464C19.1114 13.1218 18.9727 12.8824 18.8487 12.6429C18.8025 12.5532 18.8025 12.4484 18.8333 12.3586C18.8641 12.2987 18.9111 12.2539 18.9727 12.2239C19.1422 12.1042 19.3278 11.9995 19.451 11.9097C19.6675 11.775 19.8531 11.6553 19.9609 11.5804C20.3314 11.341 20.6403 11.0267 20.8721 10.6526C21.1348 10.1737 21.1656 9.605 20.9653 9.09621C20.6718 8.37784 19.9455 7.89895 19.1422 7.92892C18.9727 7.92892 18.7871 7.94387 18.6176 7.98872L18.4782 8.01869C18.4936 7.5099 18.4782 7.00104 18.432 6.5072C18.3704 5.22017 17.8451 3.97806 16.9493 3.03523C16.5164 2.57136 16.0073 2.16729 15.4357 1.85299C13.2884 0.71567 10.678 0.71567 8.53136 1.85299C7.95985 2.16729 7.44996 2.55634 7.01783 3.03523C6.15285 3.99301 5.62756 5.22017 5.56593 6.5072C5.51901 7.01599 5.50359 7.52485 5.51901 8.01869L5.38033 7.98872C5.21013 7.94387 5.02523 7.92892 4.85504 7.92892C4.0517 7.89895 3.3261 8.36289 3.03264 9.09621C2.83163 9.605 2.86244 10.1737 3.12509 10.6526C3.3415 11.0267 3.65038 11.356 4.03629 11.5804C4.14485 11.6553 4.32975 11.76 4.54617 11.9097C4.66944 11.9845 4.83963 12.0892 5.00983 12.209C5.07146 12.2539 5.11769 12.2987 5.16391 12.3586C5.21013 12.4484 5.19473 12.5532 5.1485 12.6429C5.04064 12.8824 4.90126 13.1218 4.74718 13.3313C4.11403 14.1694 3.31069 14.8279 2.38408 15.2918C1.85879 15.5761 1.30269 15.7407 1.07086 16.3543C0.900665 16.8632 1.04004 17.4318 1.45678 17.791C1.62696 17.9556 1.81257 18.0903 2.01288 18.21C2.44572 18.4345 2.90867 18.6141 3.38773 18.7488C3.48019 18.7787 3.58874 18.8086 3.66578 18.8685C3.82057 19.0032 3.80447 19.2127 4.02088 19.512C4.12944 19.6617 4.26812 19.8113 4.4229 19.9161C4.88586 20.1705 5.41114 20.2902 5.93643 20.2603C6.50795 20.2603 7.06405 20.3351 7.60475 20.4997C7.89821 20.6195 8.19167 20.7541 8.45362 20.9337C10.5856 22.3554 13.3969 22.3554 15.5282 20.9337C15.7908 20.7691 16.0689 20.6195 16.3624 20.4997C16.9031 20.3351 17.4746 20.2603 18.03 20.2603C18.5553 20.2902 19.0806 20.1705 19.5442 19.9161C19.7291 19.7814 19.8993 19.6168 20.0072 19.4222C20.1619 19.1678 20.1619 18.9882 20.3006 18.8685C20.3784 18.8236 20.4708 18.7787 20.5633 18.7488C21.0577 18.629 21.5214 18.4495 21.9535 18.21C22.1699 18.0903 22.3703 17.9406 22.5404 17.776C22.9733 17.4019 23.0966 16.8632 22.9264 16.3693ZM21.382 17.1625C20.44 17.6713 19.8223 17.6114 19.3278 17.9107C18.9111 18.1652 19.1576 18.7189 18.8641 18.9284C18.4936 19.1678 17.3968 18.9134 15.9912 19.3624C14.8327 19.7365 14.0917 20.799 11.9913 20.799C9.8901 20.799 9.17992 19.7365 7.99066 19.3624C6.58499 18.9134 5.48818 19.1828 5.11769 18.9284C4.82422 18.7338 5.05605 18.1652 4.65403
117.9107C4.17566 17.6114 3.54251 17.6563 2.5998 17.1625C1.99747 16.8482 2.33715 16.6387 2.53816 16.5489C5.95184 14.9476 6.49254 12.4783 6.52336 12.2987C6.6004 12.0743 6.52336 11.8198 6.33775 11.6702C6.09051 11.4607 5.00983 10.8172 4.70095 10.6077C4.20649 10.2785 3.99006 9.93425 4.14485 9.53019C4.2527 9.27575 4.53076 9.11116 4.82422 9.14107C4.91668 9.14107 5.00983 9.15602 5.10227 9.17103C5.64298 9.29071 6.16826 9.54514 6.47713 9.61996C6.50795 9.63491 6.55417 9.63491 6.58499 9.63491C6.75519 9.63491 6.80141 9.56009 6.80141 9.38054C6.72436 8.46761 6.72436 7.5398 6.77059 6.62694C6.80141 5.59434 7.23355 4.59164 7.95985 3.82842C10.1682 1.67338 13.7674 1.65843 15.9912 3.79845L16.0227 3.82842C16.7483 4.59164 17.1657 5.57932 17.2119 6.62694C17.2736 7.5398 17.2582 8.46761 17.1811 9.38054C17.1657 9.5751 17.2273 9.63491 17.3968 9.63491C17.4431 9.63491 17.4746 9.63491 17.5054 9.61996C17.8143 9.54514 18.3395 9.29071 18.8795 9.17103C18.9727 9.15602 19.0651 9.14107 19.1422 9.14107C19.4356 9.11116 19.6983 9.27575 19.8223 9.53019C19.9763 9.94921 19.7599 10.2785 19.2661 10.6077C18.9727 10.8022 17.8913 11.4607 17.6441 11.6702C17.4592 11.8198 17.3814 12.0593 17.4592 12.2987C17.49 12.4783 18.03 14.9476 21.4436 16.5489C21.6447 16.6537 21.9843 16.8482 21.382 17.1625Z"})})},soundcloud:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0679 13.9439C22.9754 15.5971 21.5957 16.8829 19.9403 16.86H12.4226C12.0782 16.8565 11.8003 16.5772 11.7985 16.2333V8.13862C11.7878 7.85441 11.9525 7.59266 12.2138 7.47951C12.2138 7.47951 12.9053 7 14.3617 7C15.2516 6.9991 16.1249 7.23886 16.8895 7.69457C18.0955 8.40396 18.949 9.58657 19.2431 10.9542C19.5026 10.881 19.7711 10.8446 20.0404 10.8455C20.8576 10.8406 21.6411 11.1674 22.2122 11.752C22.7833 12.3361 23.0922 13.1272 23.0684 13.9439H23.0679ZM10.8602 8.65045C11.0869 11.396 11.2517 13.8999 10.8602 16.6365C10.8467 16.7599 10.7421 16.8538 10.6177 16.8538C10.4929 16.8538 10.3887 16.7599 10.3748 16.6365C10.0098 13.9233 10.1687 11.3722 10.3748 8.65045C10.3645 8.55751 10.4085 8.46637 10.488 8.41698C10.567 8.36759 10.6675 8.36759 10.7475 8.41698C10.8265 8.46637 10.8705 8.55751 10.8602 8.65045ZM9.33901 16.6391C9.32016 16.7644 9.2124 16.8565 9.08624 16.8565C8.95963 16.8565 8.85187 16.7644 8.83301 16.6391C8.56093 14.2982 8.56093 11.9334 8.83301 9.59241C8.84693 9.46221 8.95693 9.36343 9.08759 9.36343C9.21824 9.36343 9.32779 9.46221 9.34216 9.59241C9.64432 11.9316 9.64297 14.3 9.33901 16.6391ZM7.81473 9.354C8.06167 11.8696 8.17391 14.1235 7.81203 16.6333C7.81203 16.768 7.70248 16.8776 7.56779 16.8776C7.43309 16.8776 7.32354 16.768 7.32354 16.6333C6.97334 14.1558 7.09097 11.8373 7.32354 9.354C7.33701 9.22829 7.44297 9.134 7.56914 9.134C7.6953 9.134 7.80126 9.22829 7.81473 9.354ZM6.2882 16.6423C6.27383 16.7689 6.16697 16.865 6.03901 16.865C5.9115 16.865 5.8042 16.7689 5.79073 16.6423C5.50967 14.458 5.50967 12.2468 5.79073 10.0629C5.79073 9.92331 5.90387 9.81017 6.0435 9.81017C6.18314 9.81017 6.29673 9.92331 6.29673 10.0629C6.5953 12.2459 6.59216 14.4598 6.28775 16.6423H6.2882ZM4.76346 11.708C5.14913 13.4141 4.97538 14.9209 4.74909 16.6598C4.73069 16.7756 4.63056 16.8609 4.51338 16.8609C4.39665 16.8609 4.29653 16.7756 4.27812 16.6598C4.07204 14.9447 3.90142 13.4025 4.2633 11.7076C4.2633 11.5697 4.37554 11.4575 4.51338 11.4575C4.65167 11.4575 4.76346 11.5697 4.76346 11.708ZM3.24232 11.4489C3.59567 13.1968 3.48073 14.6767 3.23334 16.4304C3.20416 16.6894 2.76011 16.6921 2.73632 16.4304C2.51273 14.7031 2.40677 13.1789 2.72734 11.4489C2.74171 11.3174 2.85305 11.2177 2.98505 11.2177C3.1175 11.2177 3.2284 11.3174 3.24232 11.4489ZM1.70681 12.2962C2.07722 13.4554 1.95061 14.3974 1.69199 15.5858C1.67852 15.708 1.57526 15.8005 1.45224 15.8005C1.32922 15.8005 1.22595 15.708 1.21203 15.5858C0.988442 14.4207 0.897749 13.4586 1.19183 12.2962C1.2053 12.1646 1.31665 12.0649 1.4491 12.0649C1.58154 12.0649 1.69244 12.1646 1.70636 12.2962H1.70681Z"})})},spotify:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M11.9995 2.43213C6.71386 2.43213 2.42883 6.71702 2.42883 12.0026C2.42883 17.2884 6.71386 21.5729 11.9995 21.5729C17.2856 21.5729 21.5702 17.2884 21.5702 12.0026C21.5702 6.71736 17.2856 2.43259 11.9993 2.43259L11.9995 2.43213ZM16.3885 16.2355C16.2171 16.5166 15.8491 16.6058 15.5679 16.4332C13.3208 15.0606 10.492 14.7498 7.1606 15.5109C6.83957 15.5841 6.51957 15.3829 6.44643 15.0618C6.37294 14.7406 6.57329 14.4206 6.89512 14.3475C10.5408 13.5142 13.668 13.8732 16.1908 15.4149C16.4719 15.5875 16.5611 15.9543 16.3885 16.2355ZM17.5599 13.6292C17.3439 13.9806 16.8845 14.0915 16.5336 13.8755C13.9611 12.2939 10.0396 11.836 6.99672 12.7596C6.60209 12.8788 6.18529 12.6564 6.06552 12.2625C5.94666 11.8679 6.16917 11.4519 6.56312 11.3319C10.0389 10.2772 14.3599 10.7881 17.3142 12.6035C17.6651 12.8195 17.7759 13.2788 17.5599 13.6292ZM17.6605 10.9156C14.5759 9.08352 9.48677 8.91507 6.54174 9.80889C6.06883 9.95232 5.56872 9.68535 5.4254 9.21244C5.28209 8.7393 5.54883 8.23953 6.02209 8.09576C9.40277 7.06948 15.0228 7.26776 18.5741 9.37598C19.0004 9.62844 19.1398 10.1778 18.8872 10.6026C18.6358 11.028 18.0849 11.1682 17.6609 10.9156H17.6605Z"})})},telegram:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.94364 10.792C8.58077 8.336 12.3397 6.71685 14.2206 5.93456C19.5907 3.70095 20.7065 3.31295 21.4338 3.30014C2
11.5938 3.29732 21.9514 3.33696 22.1831 3.52495C22.3787 3.68369 22.4326 3.89812 22.4583 4.04862C22.4841 4.19913 22.5162 4.54197 22.4907 4.80986C22.1997 7.8675 20.9405 15.2876 20.2999 18.7122C20.0288 20.1613 19.4951 20.6471 18.9784 20.6947C17.8554 20.798 17.0027 19.9526 15.9151 19.2396C14.2132 18.124 13.2517 17.4295 11.5997 16.3409C9.69056 15.0828 10.9282 14.3913 12.0162 13.2612C12.301 12.9655 17.2486 8.46517 17.3444 8.05692C17.3564 8.00586 17.3675 7.81554 17.2544 7.71504C17.1414 7.61455 16.9745 7.64891 16.8541 7.67624C16.6834 7.71498 13.9646 9.51203 8.69761 13.0674C7.92588 13.5973 7.22687 13.8555 6.60058 13.842C5.91015 13.827 4.58204 13.4516 3.59473 13.1306C2.38374 12.737 1.42128 12.5289 1.50509 11.8604C1.54874 11.5121 2.02826 11.156 2.94364 10.792Z"})})},tidal:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M12.0113 5L8.3409 8.67045L4.67045 5L1 8.67045L4.67045 12.3409L8.3409 8.67045L12.0113 12.3409L8.3409 16.0113L12.0113 19.6818L15.6818 16.0113L12.0113 12.3409L15.6818 8.67045L12.0113 5ZM15.7065 8.66976L19.3516 5.02131L23 8.66976L19.3516 12.3182L15.7065 8.66976Z"})})},tiktok:{viewBox:"0 0 24 24",body:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M16.1007 9.52982C17.286 10.3801 18.738 10.8804 20.3063 10.8804V7.85185C20.0095 7.85191 19.7134 7.82085 19.4231 7.75911V10.143C17.8549 10.143 16.4031 9.64273 15.2175 8.79249V14.9729C15.2175 18.0647 12.72 20.5709 9.63938 20.5709C8.48993 20.5709 7.42156 20.2222 6.53407 19.6241C7.547 20.6635 8.9596 21.3083 10.5224 21.3083C13.6032 21.3083 16.1008 18.802 16.1008 15.7101L16.1007 9.52982ZM17.1902 6.47435C16.5844 5.81021 16.1867 4.95193 16.1007 4.00307V3.61353H15.2637C15.4744 4.81953 16.193 5.84987 17.1902 6.47435ZM8.48256 17.2515C8.14412 16.8062 7.96123 16.2614 7.96205 15.7013C7.96205 14.2872 9.10438 13.1407 10.5137 13.1407C10.7764 13.1406 11.0374 13.181 11.2877 13.2607V10.1644C10.9952 10.1242 10.7 10.1071 10.4049 10.1134V12.5234C10.1544 12.4437 9.89321 12.4032 9.63049 12.4034C8.22117 12.4034 7.0789 13.5498 7.0789 14.9641C7.0789 15.9641 7.64988 16.8298 8.48256 17.2515Z"}),(0,i.jsx)("path",{d:"M15.2175 8.79249C16.4031 9.64273 17.8549 10.143 19.4231 10.143V7.75911C18.5477 7.572 17.7728 7.11287 17.1902 6.47435C16.193 5.84987 15.4744 4.81953 15.2637 3.61353H13.0652V15.71C13.0602 17.1202 11.9198 18.2621 10.5135 18.2621C9.68482 18.2621 8.94883 17.8656 8.48256 17.2515C7.64988 16.8298 7.0789 15.9641 7.0789 14.9641C7.0789 13.5498 8.22117 12.4034 9.63049 12.4034C9.90052 12.4034 10.1608 12.4456 10.4049 12.5234V10.1134C7.37841 10.1761 4.94421 12.6579 4.94421 15.7101C4.94421 17.2337 5.55032 18.6149 6.53407 19.6241C7.42156 20.2222 8.48993 20.5709 9.63938 20.5709C12.72 20.5709 15.2175 18.0647 15.2175 14.9729V8.79249Z"})]})},traxsource:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1481 11.0739C22.2067 10.6742 22.2289 10.2829 22.2371 9.68527C22.3005 5.07556 18.2956 1.53082 13.83 1.50539C12.7371 1.4982 12.1903 1.4982 11.0972 1.50539C6.63002 1.53082 2.63791 5.03174 2.69049 9.68527C2.69681 10.2707 2.71621 10.6829 2.77152 11.0851C2.19816 11.9231 1.9035 13.0391 2.02835 14.2283L2.06513 14.5816C2.31079 16.9203 4.0823 18.6517 6.02117 18.4478L6.12389 18.4371C7.44746 20.9193 9.78974 22.4895 12.462 22.4996V22.5H12.4682C12.6853 22.5 12.861 22.3243 12.861 22.1067V20.7082C12.861 20.4917 12.6853 20.3163 12.4691 20.3153V20.3126C9.75325 20.3126 7.30538 16.9917 7.30538 13.6501C7.30538 10.3474 9.75325 6.9709 12.458 6.9709V6.97132H12.4636C12.6807 6.97132 12.8565 6.79562 12.8565 6.57797V5.1968C12.8565 4.98173 12.6833 4.80689 12.4691 4.80388V4.80029C9.55413 4.8082 7.03198 6.67179 5.79418 9.5508L5.09354 9.62464C5.05705 9.62838 5.02243 9.63729 4.98637 9.6426C4.82475 6.14987 8.04265 3.6293 11.4907 3.61019C12.3724 3.60473 12.8131 3.60473 13.6948 3.61019C17.1388 3.6293 20.107 6.15734 19.996 9.65165C19.9421 9.64289 19.8891 9.63039 19.8342 9.62464L18.7119 9.50641V9.50756C18.7083 9.50684 18.7047 9.50583 18.7013 9.50497C18.4576 9.4794 18.2388 9.65582 18.2134 9.89947L17.3792 17.8417C17.3536 18.0851 17.5299 18.3036 17.7737 18.328
16C17.7777 18.3292 17.7808 18.3282 17.7849 18.3286V18.3302L18.9066 18.4478C20.8453 18.6517 22.6164 16.9203 22.8619 14.5816L22.8993 14.2283C23.025 13.0335 22.7264 11.9131 22.1481 11.0739Z"})})},tumblr:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M17.9166 22.6877H14.3463C11.1316 22.6877 8.73574 21.0335 8.73574 17.0771V10.7389H5.81348V7.3066C9.0282 6.47367 10.3735 3.70583 10.5279 1.31H13.8667V6.75209H17.7622V10.7412H13.8667V16.2606C13.8667 17.9147 14.7019 18.4856 16.0309 18.4856H17.9166V22.69V22.6877Z"})})},twitter_x:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M13.8228 10.5353L20.9492 2.42993H19.2611L13.0706 9.46629L8.12988 2.42993H2.42999L9.90289 13.0712L2.42999 21.5699H4.11814L10.6513 14.1376L15.8701 21.5699H21.57M4.72743 3.67554H7.3209L19.2598 20.3855H16.6657"})})},whatsapp:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{d:"M1.38 22.613L2.87207 17.1622C1.95136 15.5666 1.46757 13.7579 1.46845 11.9032C1.4711 6.10477 6.18965 1.38623 11.9872 1.38623C14.8007 1.38711 17.4416 2.48295 19.4281 4.47119C21.4137 6.45944 22.5069 9.10217 22.506 11.913C22.5033 17.7123 17.7848 22.4308 11.9872 22.4308C10.2272 22.4299 8.49275 21.9886 6.95646 21.1502L1.38 22.613ZM7.21472 19.2459C8.69706 20.126 10.1122 20.6531 11.9837 20.654C16.8022 20.654 20.7274 16.7323 20.73 11.9112C20.7318 7.08032 16.8252 3.16397 11.9908 3.16221C7.16873 3.16221 3.2462 7.08386 3.24443 11.9041C3.24354 13.872 3.8202 15.3455 4.78868 16.8871L3.90511 20.1136L7.21472 19.2459ZM17.286 14.4133C17.2205 14.3036 17.0454 14.2382 16.7818 14.1064C16.5191 13.9746 15.227 13.3387 14.9855 13.2511C14.7449 13.1636 14.5698 13.1193 14.3938 13.3829C14.2187 13.6456 13.7145 14.2382 13.5615 14.4133C13.4085 14.5884 13.2546 14.6105 12.992 14.4787C12.7293 14.347 11.882 14.0701 10.8781 13.1742C10.0971 12.4772 9.56913 11.6167 9.41612 11.3531C9.26311 11.0904 9.4002 10.948 9.5311 10.8171C9.64962 10.6995 9.79378 10.5102 9.92556 10.3563C10.0591 10.2042 10.1025 10.0945 10.1909 9.91852C10.2785 9.7434 10.2351 9.5895 10.1688 9.45772C10.1025 9.32682 9.57709 8.03287 9.35863 7.50662C9.14459 6.99453 8.9279 7.06351 8.76693 7.05555L8.2628 7.04671C8.08768 7.04671 7.80288 7.11216 7.56231 7.37573C7.32174 7.63929 6.64248 8.27433 6.64248 9.56828C6.64248 10.8622 7.58442 12.112 7.71532 12.2871C7.84711 12.4622 9.56824 15.1173 12.2048 16.2556C12.8319 16.5262 13.3219 16.6881 13.7031 16.8093C14.3328 17.0092 14.9059 16.9809 15.3587 16.9136C15.8638 16.8385 16.9136 16.2777 17.1329 15.6639C17.3523 15.0492 17.3523 14.523 17.286 14.4133Z"})})},youtube:{viewBox:"0 0 24 24",body:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5777 5.61498C21.9095 5.9489 22.1478 6.36409 22.2687 6.81902C22.7158 8.49814 22.7158 11.9998 22.7158 11.9998C22.7158 11.9998 22.7158 15.5014 22.2687 17.1805C22.1478 17.6354 21.9095 18.0506 21.5777 18.3845C21.2459 18.7184 20.8323 18.9594 20.3781 19.0832C18.7063 19.5327 12.0238 19.5327 12.0238 19.5327C12.0238 19.5327 5.34129 19.5327 3.66945 19.0832C3.2153 18.9594 2.80163 18.7184 2.46985 18.3845C2.13807 18.0506 1.8998 17.6354 1.77891 17.1805C1.33179 15.5014 1.33179 11.9998 1.33179 11.9998C1.33179 11.9998 1.33179 8.49814 1.77891 6.81902C1.8998 6.36409 2.13807 5.9489 2.46985 5.61498C2.80163 5.28107 3.2153 5.04015 3.66945 4.91634C5.34129 4.4668 12.0238 4.4668 12.0238 4.4668C12.0238 4.4668 18.7063 4.4668 20.3781 4.91634C20.8323 5.04015 21.2459 5.28107 21.5777 5.61498ZM15.4258 11.9998L9.8368 8.82019V15.1795L15.4258 11.9998Z"})})}},a={amazon:"amazon",amazon_music:"amazon",apple:"apple",apple_music:"apple",audiomack:"audiomack",bandcamp:"bandcamp",bands_in_town:"bandsintown",bandsintown:"bandsintown",beatport:"beatport",deezer:"deezer",discord:"discord",facebook:"facebook",instagram:"instagram",pandora:"pandora",shazam:"shazam",snapchat:"snapchat",sound_cloud:"soundcloud",soundcloud:"soundcloud",spotify:"spotify",telegram:"telegram",tidal:"tidal",tik_tok:"tiktok",tiktok:"tiktok",traxsource:"traxsource",tumblr:"tumblr",twitter:"twitter_x",twitter_x:"twitter_x",web:"community",website:"community",whatsapp:"whatsapp",x:"twitter_x",youtube:"youtube",youtube_music:"youtube"},r=e=>{let{platform:t,size:n=20,className:r,style:o,title:s}=e,d=t.trim().toLowerCase().replace(/[\s-]+/g,"_"),c=a[d],u=c?l[c]:void 0,p=d.split("_").filter(
1Boolean).map(e=>e.charAt(0)).join("").slice(0,2).toUpperCase();return(0,i.jsx)("span",{className:r,"data-cobrand-primitive":"platform-icon","data-platform":d,role:s?"img":void 0,"aria-label":s,"aria-hidden":!s||void 0,style:{alignItems:"center",color:"inherit",display:"inline-flex",flex:"0 0 auto",height:n,justifyContent:"center",width:n,...o},children:u?(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:u.viewBox,width:n,height:n,style:{display:"block",fill:"currentColor"},children:u.body}):(0,i.jsx)("span",{"aria-hidden":"true",style:{fontSize:Math.max(8,Math.round(.45*n)),fontWeight:700},children:p||"â¢"})})}},29955:(e,t,n)=>{n.d(t,{L4:()=>a});var i=n(55729);let l=[{label:"days",value:0},{label:"hours",value:0},{label:"mins",value:0},{label:"secs",value:0}],a=e=>{let t=void 0===e?NaN:Date.parse(e),n=!Number.isNaN(t),[a,r]=(0,i.useState)(l),[o,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e;if(!n){r(l),s(!1);return}let i=()=>{r((e=>{let t=Math.max(e-Date.now(),0);return[{label:"days",value:
1Math.floor(t/864e5)},{label:"hours",value:Math.floor(t%864e5/36e5)},{label:"mins",value:Math.floor(t%36e5/6e4)},{label:"secs",value:Math.floor(t%6e4/1e3)}]})(t)),t<=Date.now()&&(s(!0),window.clearInterval(e))};return s(!1),i(),t>Date.now()&&(e=window.setInterval(i,1e3)),()=>window.clearInterval(e)},[n,t]),n?{parts:a,isOver:o}:null}},32957:(e,t,n)=>{n.d(t,{A:()=>d});var i=n(6029),l=n(59295),a=n(55729),r=n(29733),o=n(49956);let s={days:0,hours:0,minutes:0,seconds:0},d=e=>{let{targetDate:t,label:n,onComplete:d}=e,{t:c}=(0,r.Bd)(),u=(0,a.useRef)(!1),[p,m]=(0,a.useState)(s);return(0,a.useEffect)(()=>{u.current=!1;let e=()=>{let e=(e=>{let t=(0,l.A)(),n=(0,l.A)(e),i=l.A.duration(n.diff(t));return{days:Math.max(Math.floor(i.asDays()),0),hours:Math.max(i.hours(),0),minutes:Math.max(i.minutes(),0),seconds:Math.max(i.seconds(),0)}})(t);m(e),u.current||0!==e.days||0!==e.hours||0!==e.minutes||0!==e.seconds||(u.current=!0,null==d||d())};e();let n=setInterval(e,1e3);return()=>clearInterval(n)},[t,d]),(0,i.jsxs)("div",{className:"w-full space-y-2 rounded-xl bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[8%] dark:to-white/[4%]",children:[n?(0,i.jsx)(o.E,{typography:o.o.Caption1,className:"block text-center text-black/60 dark:text-white/60",children:n}):null,(0,i.jsxs)("div",{className:"flex w-full flex-row items-center",children:[(0,i.jsxs)("div",{className:"flex-1 text-center",children:[(0,i.jsx)(o.E,{typography:o.o.Title2,bold:!0,className:"text-black dark:text-white",children:p.days}),(0,i.jsx)(o.E,{typography:o.o.Caption2,className:"capitalize text-black/60 dark:text-white/60",children:c("countdownTimer.days")})]}),(0,i.jsx)("div",{className:"mx-2 h-[24px] w-[1px] bg-black/[12%] dark:bg-white/[12%]"}),(0,i.jsxs)("div",{className:"flex-1 text-center",children:[(0,i.jsx)(o.E,{typography:o.o.Title2,bold:!0,className:"text-black dark:text-white",children:p.hours}),(0,i.jsx)(o.E,{typography:o.o.Caption2,className:"capitalize text-black/60 dark:text-white/60",children:c("countdownTimer.hrs")})]}),(0,i.jsx)("div",{className:"mx-2 h-[24px] w-[1px] bg-black/[12%] dark:bg-white/[12%]"}),(0,i.jsxs)("div",{className:"flex-1 text-center",children:[(0,i.jsx)(o.E,{typography:o.o.Title2,bold:!0,className:"text-black dark:text-white",children:p.minutes}),(0,i.jsx)(o.E,{typography:o.o.Caption2,className:"capitalize text-black/60 dark:text-white/60",children:c("countdownTimer.mins")})]}),(0,i.jsx)("div",{className:"mx-2 h-[24px] w-[1px] bg-black/[12%] dark:bg-white/[12%]"}),(0,i.jsxs)("div",{className:"flex-1 text-center",children:[(0,i.jsx)(o.E,{typography:o.o.Title2,bold:!0,className:"text-black dark:text-white",children:p.seconds}),(0,i.jsx)(o.E,{typography:o.o.Caption2,className:"capitalize text-black/60 dark:text-white/60",children:c("countdownTimer.secs")})]})]})]})}},33596:(e,t,n)=>{n.d(t,{k:()=>i});let i="YYYY-MM-DD"},35983:(e,t,n)=>{n.d(t,{H:()=>d});var i=n(6029),l=n(75828),a=n.n(l),r=n(55729),o=n(56760);function s(e){let{parentRef:t,children:n}=e,[i,l]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{l(!0)},[]),i&&t.current)?(0,o.createPortal)(n,t.current):null}function d(e){let{portalParentRef:t,isOpen:n,className:l,disableOutsideClickClose:o,onClose:d,children:c,backgroundClassName:u}=e,p=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=t.current;return e&&(n?e.style.overflow="hidden":e.style.overflow="auto"),()=>{e&&(e.style.overflow="auto")}},[n,t]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),null==d||d())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[d]),(0,i.jsx)(s,{parentRef:t,children:(0,i.jsx)("div",{ref:p,className:a()("@md:flex absolute top-0 z-50 h-full w-full items-center justify-center overflow-y-auto bg-white/90 p-6 filter backdrop-blur dark:bg-black/90",{visible:n,invisible:!n},u),onClick:e=>{e.target!==p.current||o||null==d||d(e)},children:n?(0,i.jsx)("div",{className:a()("relative m-auto max-w-[500px] overflow-hidden rounded-2xl shadow-lg",l),onClick:e=>e.stopPropagation(),children:c}):null})})}},48898:(e,t,n)=>{let i;n.d(t,{Ay:()=>n5});var l=n(6029),a=n(26130),r=n(84350);let o=e=>{let{className:t,containerRef:n,withoutBackground:i,style:r,children:o}=e,{theme:s}=(0,a.W5)(),d=i?void 0:{backgroundColor:s.backgroundColor,backgroundImage:s.backgroundImageUrl?"url(".concat(JSON.stringify(s.backgroundImageUrl),")"):void 0},c=[s.isDark?"dark":void 0,t].filter(Boolean).join(" ");return(0,l.jsx)("div",{ref:n,className:c||void 0,"data-cobrand-primitive":"theme","data-drop-theme":s.isDark?"dark":"light",style:{...(e=>{let t={};for(let[n,i]of(e.primaryForeground&&(t["--Fill-Text-Neutral-Overlay"]=e.primaryForeground),e.backgroundColor&&(t["--drop-background-color"]=e.backgroundColor),Object.entries(e.primaryPalette)))t["--primary-color-".concat(n)]=i;return t})(s),...d,...r},children:o})};var s=n(55729);let d=()=>{let{lifecycle:e}=(0,a.W5)();return(0,l.jsx)("div",{"data-cobrand-element":"ended",children:(0,l.jsx)("p",{children:e.endMessage||"This drop has ended."})})},c=Object.assign(e=>{let{children:t,className:n}=e,{lifecycle:i}=(0,a.W5)();return"function"==typeof t?(0,l.jsx)("div",{className:n,"data-cobrand-primitive":"lifecycle","data-phase":i.phase,children:t(i)}):(0,l.jsx)("div",{className:n,"data-cobrand-primitive":"lifecycle","data-phase":i.phase,children:i.isEnded?(0,l.jsx)(d,{}):(0,l.jsx)(s.Fragment,{children:t})})},{Ended:d});var u=n(75828),p=n.n(u),m=n(82203),h=n.n(m),f=n(29733);let g=e=>{let{host:t,children:n}=e;return(0,l.jsx)(a.FT,{runtime:t,children:n})};var b=n(73509),x=n(18509),v=n(55881),k=n(31877),y=n(10276);let C=["de","en","es","fr","hi","it","ja","ko","pt"],_=async e=>{switch(e){case"de":return(await Promise.resolve().then(n.t.bind(n,3232,19))).default;case"es":return(await Promise.resolve().then(n.t.bind(n,61041,19))).default;case"fr":return(await Promise.resolve().then(n.t.bind(n,629,19))).default;case"hi":return(await Promise.resolve().then(n.t.bind(n,59880,19))).default;case"it":return(await Promise.resolve().then(n.t.bind(n,69478,19))).default;case"ja":return(await Promise.resolve().then(n.t.bind(n,2926,19))).default;case"ko":return(await Promise.resolve().then(n.t.bind(n,18971,19))).default;case"pt":return(await Promise.resolve().then(n.t.bind(n,18581,19))).default;case"en":return y}},w=()=>{let e=k.Ay.createInstance();return e.use(f.r9).init({resources:{en:{translation:y}},initImmediate:!1,supportedLngs:C,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}),e};var j=n(1510),S=n(11551),N=n(5100),A=n(84203),P=n(24186),T=n(72905);let M=e=>{if("undefined"==typeof document)return;let t=document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"=")));return t?t.substring(e.length+1):void 0},F=e=>{let t={fbc:(e=>e?"fb.1.".concat(new Date().getTime(),".").concat(e):M("_fbc"))(e.fbclid),fbp:M("_fbp"),ttclid:e.ttclid||M("ttclid"),ttp:M("_ttp")};if(Object.values(t).some(Boolean))return t},L=e=>{let{dropId:t,eventType:n,eventId:i,linkUrl:l}=e;try{var a,r;let e=new URLSearchParams(window.location.search),o={drop_id:t,event_type:n,event_id:i,link_url:l,tracking_params:F({fbclid:null!=(a=e.get("fbclid"))?a:void 0,ttclid:null!=(r=e.get("ttclid"))?r:void 0})};(0,T.In)("".concat(A.x6).concat(P.vL.createEvent()),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0}
1).catch(()=>null)}catch(e){}};var I=function(e){return e.PageView="CobrandPageView",e.LinkClick="CobrandLinkClick",e.SignupButtonClick="CobrandSignupButtonClick",e.SignupComplete="CobrandSignupComplete",e}({});let E=e=>{try{if(window.parent===window)return;window.parent.postMessage(e,"*")}catch(e){}};var D=function(e){return e.Listening="LISTENING",e.LinkInBio="LINK_IN_BIO",e.LinkCollection="LINK_COLLECTION",e.Presave="PRESAVE",e.Block="BLOCK",e}({});let V=e=>{try{var t,n;let i=e.dropProfileOrDrop,l=crypto.randomUUID(),a={click_type:e.clickType,drop_id:(null==i?void 0:i.id)||"",drop_title:(null==i?void 0:i.title)||"",drop_profile_title:(null==i||null==(t=i.drop_profile)?void 0:t.title)||"",destination_url:e.destinationUrl,..."LISTENING"===e.clickType&&{platform:e.platform},...("LINK_IN_BIO"===e.clickType||"BLOCK"===e.clickType)&&{item_type:e.itemType,item_title:e.itemTitle},..."LINK_COLLECTION"===e.clickType&&{link_title:e.linkTitle,link_type:e.linkType},..."PRESAVE"===e.clickType&&{platform:e.platform}};"function"==typeof window.fbq&&(window.fbq("trackCustom","CobrandDrop_Click",a),window.fbq("track","ViewContent",a,{eventID:l})),"function"==typeof(null==(n=window.ttq)?void 0:n.track)&&(window.ttq.track("CobrandDrop_Click",a),window.ttq.track("ViewContent",a,{event_id:l})),i&&L({dropId:i.id,eventType:x.uW.LinkClick,eventId:l,linkUrl:e.destinationUrl}),E({event:I.LinkClick})}catch(e){}};var B=n(84921);let O="019e389d-e788-77cf-a37f-805ec483106e",R="019e7233-e05f-75c7-a436-11a295ebb2a5",U={"019e096c-f980-7119-b166-f027934c0916":"Thanks for joining the artist presale for Dom Dolla, New York! You will receive access instructions via SMS & e-mail to purchase tickets ahead of the presale going live on Fri, May 15 at 10am local","019ea6e2-e835-7464-a0fc-fbc34ff3b585":"You've joined the artist presale for Dom Dolla, Chicago! You will be notified via SMS & e-mail with instructions before presale tickets go on sale on Tues June 16 at 10am local","019ecc2a-d1aa-74cb-948d-2fecb4d2841e":"You've joined the artist presale for Dom Dolla, BAY AREA! You will be notified via SMS & e-mail with instructions before presale tickets go on sale on Tues June 23 at 10am local","019f5bb9-a890-72de-925f-66e5794ff24e":"Thank you for signing up! You've joined the artist presale for Dom Dolla, Nashville! You will be notified with instructions before presale tickets go on sale on Tues July 21 at 10am CDT",[O]:"Thank you for signing up. You will be notified when all remaining tickets go on sale mon Mon 1st June at 12pm AEST",[R]:"Thank you for signing up. You will be notified when all remaining tickets go on sale mon Mon 1st June at 12pm AEST"},z=new Set(Object.keys(U)),W=new Set([O,R]);var q=function(e){return e.Default="default",e.Hidden="hidden",e.FredAgainCashApp="fred_again_cash_app",e}({});let H={descriptions:["sign up for a Cash App Card to receive 20% cashback on tickets and merch.","please ensure you read and follow all instructions sent to your email on how to redeem this cashback"],actionLabel:"Cash App Card",destinationUrl:"https://cash.app/card"},Z=e=>({message:e?U[e]:void 0,compact:!!(e&&z.has(e)),forceConfirmation:!!(e&&W.has(e)),shareVariant:"00edc443-3978-4e77-9eab-6b68c767e659"===e?"hidden":"acd2371b-be78-4a2b-b3fb-d1b3ac4496c0"===e?"fred_again_cash_app":"default"}),G={"afe1596c-09de-4126-b63f-cdd840ab04c4":{"1ab6c62c-4202-4266-aab7-99a936e2f335":"https://storage.googleapis.com/cobrand-public/fred-drop/singapore.jpg","f5b130c9-b249-4ab1-bfc5-17c6460a46c6":"https://storage.googleapis.com/cobrand-public/fred-drop/seoul.jpg","924a1165-94f0-40e2-8b4d-0baccc69194b":"https://storage.googleapis.com/cobrand-public/fred-drop/bankkok.jpg"},"5eda7d9e-ff06-4e44-a6c0-8730089ffea7":{"cf7c231b-9326-4271-8924-0a0e37e99356":"https://storage.googleapis.com/cobrand-public/cstussy-amsterdamweekender/shelter.jpg","83e919e3-8a98-4fc8-b5c7-e1a7fed21f1a":"https://storage.googleapis.com/cobrand-public/cstussy-amsterdamweekender/lofi.jpg","608902d5-ea28-46cb-859a-b45e879a9d8b":"https://storage.googleapis.com/cobrand-public/cstussy-amsterdamweekender/bret.jpg"}},Y=new Set(["b0e611ba-d9c1-4b43-bf2f-03b7e0b94636"]),K=[{listeningPlatform:S.iK.TIKTOK,presavePlatform:x.NZ.TIKTOK,destinationUrl:"https://www.tiktok.com/music/Addicted-To-Bass-Dom-D
1olla-Relapse-7610531945710225409"},{listeningPlatform:S.iK.INSTAGRAM,presavePlatform:x.NZ.INSTAGRAM,destinationUrl:"https://www.instagram.com/reels/audio/3863505720620575"}],J=e=>"019cac7c-fc7e-73d5-b93e-4820dcdac77e"===e?K:[];var Q=function(e){return e.Spotify="SPOTIFY",e.AppleMusic="APPLE_MUSIC",e}({}),$=function(e){return e.Editing="editing",e.RequestingOtp="requesting_otp",e.AwaitingOtp="awaiting_otp",e.Submitting="submitting",e.Complete="complete",e}({}),X=n(60907);let ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y.dropContest[e.replace("dropContest.","")];return Object.entries(t).reduce((e,t)=>{let[n,i]=t;return e.replaceAll("{{".concat(n,"}}"),i)},n)},et=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=[];return(e.minimum_age&&n.push("**".concat(t("dropContest.minimumAge",{age:String(e.minimum_age)}),"**")),e.eligible_country_codes.length>0&&n.push(t("dropContest.from",{countries:"**".concat(((e,t)=>{let n=e.map(e=>(null===X.ax||void 0===X.ax?void 0:X.ax.get(e))||e);if(n.length<=1){var i;return null!=(i=n[0])?i:""}return"".concat(n.slice(0,-1).join(", ")).concat(t).concat(n[n.length-1])})(e.eligible_country_codes,t("dropContest.or")),"**")})),0===n.length)?"":t("dropContest.mustBe",{requirements:n.join(t("dropContest.and"))})};var en=function(e){return e.Signup="signup",e.LinkCollection="link_collection",e.Presave="presave",e.Listening="listening",e.LinkInBio="link_in_bio",e.FanFeed="fan_feed",e}({});let ei=(e,t)=>e.filter(e=>e.position===t&&!e.hidden&&e.items.some(e=>!e.hidden)),el=e=>[...e.filter(e=>e.block_type===S.VK.Text),...e.filter(e=>e.block_type!==S.VK.Text)];var ea=n(59295),er=n(93251),eo=n(12482),es=n(19117);let ed="DROP_FEED",ec=e=>{let{drop_id:t,tab:n,enabled:i=!0}=e,l=(0,es.lr)({includeHost:!1});return(0,eo.I)({queryKey:[ed,{drop_id:t,tab:n}],queryFn:()=>l("".concat(A.x6).concat(P.vL.dropFeed(t,n))),enabled:i&&!!t})};var eu=n(74104);let ep="image/jpeg,image/png,image/webp,image/heif,video/mp4,video/quicktime,video/mpeg,video/wmv,video/x-flv,video/webm,video/3gpp";var em=n(16932),eh=n(36002);let ef=()=>{let e=(0,es.lr)();return(0,em.n)({mutationFn:t=>e(P.vL.beginContentUpload(),{method:"POST",body:JSON.stringify(t)})})},eg=()=>{let e=(0,es.lr)();return(0,em.n)({mutationFn:t=>e(P.vL.completeContentUpload(),{method:"POST",body:JSON.stringify(t)})})},eb=e=>{let{turnstileRef:t}=e,n=(0,s.useRef)([]),i=(0,s.useRef)(null),l=(0,s.useCallback)(()=>{var e;i.current=null,null==(e=t.current)||e.reset()},[]),a=(0,s.useCallback)(e=>{let t=n.current.shift();t?(t(e),n.current.length>0&&l()):i.current=e},[l]),r=(0,s.useCallback)(function(){let{forceNew:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e&&i.current){let e=i.current;return i.current=null,Promise.resolve(e)}return new Promise(e=>{n.current.push(e),1===n.current.length&&l()})},[l]);return{requestNewTurnstileToken:l,resolveTurnstileTokenPromise:a,consumeTurnstileToken:(0,s.useCallback)(()=>r(),[r]),refreshTurnstileToken:(0,s.useCallback)(()=>r({forceNew:!0}),[r])}};var ex=n(22802),ev=function(e){return e.Loading="LOADING",e.Failed="FAILED",e.Success="SUCCESS",e}({}),ek=function(e){return e.Feed="feed",e.Info="info",e}({}),ey=function(e){return e.Trending="trending",e.Recent="recent",e}({});let eC=["01a03d89-2415-7731-b458-5439bf434f3e","01a04dbd-64f3-71bb-9b01-5890da8440f5"];var e_=n(78075),ew=n(90510);let ej=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)};var eS=n(20195),eN=n.n(eS);let eA=["#dc2626","#d97706","#ca8a04","#a16207","#16a34a","#059669","#047857","#0d9488","#0891b2","#0284c7","#2563eb","#7c3aed","#8b5cf6","#a21caf","#db2777","#e11d48"],eP=async e=>{let t=new Image;t.src=e,t.crossOrigin="Anonymous",await t.decode();let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;n.width=64,n.height=64,i.drawImage(t,0,0,64,64);let l=i.getImageData(0,0,64,64).data,a=0,r=0,o=0;for(let e=0;e<l.length;e+=4)a+=l[e],r+=l[e+1],o+=l[e+2];return{r:Math.floor(a/4096),g:Math.floor(r/4096),b:Math.floor(o/4096)}},eT=function(e){let{r:t,g:n,b:i}=e,{threshold:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{threshold:100};return .2126*t+.7152*n+.0722*i<l},eM=e=>{let t=e.replace(/^#/,"");
13===t.length&&(t=t.split("").map(e=>e+e).join(""));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n}},eF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eA,n=1/0,i={r:0,g:0,b:0};for(let l of t){let t=eM(l),a=Math.sqrt(Math.pow(e.r-t.r,2)+Math.pow(e.g-t.g,2)+Math.pow(e.b-t.b,2));a<n&&(n=a,i=t)}return i},eL="cb_cookie_consent",eI=(e,t)=>{var n,i,l,a;if(!e)return[];let r=[...null!=(i=e.conversions_pixels)?i:[],...null!=(l=null==(n=e.drop_profile)?void 0:n.conversions_pixels)?l:[]].filter(e=>e.platform===t).map(e=>e.pixel_id);return t===x.w7.Meta&&r.push(...null!=(a=e.campaign_builder_facebook_pixels)?a:[]),Array.from(new Set(r))};var eE=function(e){return e.Block="block",e.LinkInBio="link_in_bio",e}({}),eD=function(e){return e.Signup="signup",e.Navigate="navigate",e}({}),eV=function(e){return e.Signup="signup",e.Navigate="navigate",e}({});let eB=e=>null!=e.event_latitude&&null!=e.event_longitude?{lat:e.event_latitude,lon:e.event_longitude}:null,eO=(e,t)=>{let n=t.drop_link_collection_link_id||t.drop_link_collection_link_id_to_open;return null==e?void 0:e.collectionLinks.find(e=>e.id===n)},eR=(e,t)=>(null==e?void 0:e.drop_type)===x.YV.Multi&&(t.drop_signup_spotify_user_id||t.drop_link_collection_link_id_to_open)?"link_collection":(null==e?void 0:e.drop_type)===x.YV.LinkInBio&&t.drop_signup_spotify_user_id?"link_in_bio":(null==e?void 0:e.drop_type)===x.YV.Track&&(t.drop_signup_spotify_user_id||t.drop_signup_apple_music_authentication_id)?"presave":(null==e?void 0:e.drop_type)===x.YV.Listening&&t.drop_signup_spotify_user_id?"listening":t.drop_signup_spotify_user_id?"general":void 0,eU={browser:{getUserAgent:()=>window.navigator.userAgent,getReferrer:()=>"undefined"==typeof document?"":document.referrer,getCurrentUrl:()=>window.location.href,replaceCurrentUrl:e=>window.history.replaceState(null,"",e),randomUUID:()=>globalThis.crypto.randomUUID(),openExternal:e=>((e,t)=>{let n=null;try{n=e.open("about:blank","_blank")}catch(e){}if(!n)return void e.location.assign(t);try{n.opener=null,n.location.replace(t)}catch(i){n.close(),e.location.assign(t)}})(window,e),copyText:e=>window.navigator.clipboard.writeText(e),setCookie:e=>{if("undefined"==typeof document)throw Error("Cookies can only be written in a browser");document.cookie=e},isEmbedded:()=>{let e=window;return e.top!==e.self}}
1},ez={otp:v.dI,signup:v.YZ,upload:v.dI},eW=(0,s.createContext)(null),eq=(0,s.createContext)(null),eH=e=>window.location.assign(e),eZ=e=>{var t,n,i;let{drop:a,searchParams:r,isPreview:o=!1,formOnly:d=!1,showPostSignUp:c=!1,previewState:u,turnstileSiteKeys:p=ez,enableTracking:m=!1,navigate:h=eH,publicUrl:g,services:b=eU,children:v}=e,k=null!=g?g:"".concat(x.QE).concat(null!=(n=null==a||null==(t=a.drop_profile)?void 0:t.slug)?n:"","/").concat(null!=(i=null==a?void 0:a.slug)?i:""),[y,w]=(0,s.useState)({}),M=(0,s.useMemo)(()=>({...r,...y}),[y,r]),F=(0,s.useCallback)(e=>{w(t=>({...t,...e}))},[]),O=(e=>{var t,n;let{drop:i,searchParams:l,isPreview:a,formOnly:r,showPostSignUp:o,enableTracking:d,publicUrl:c,browserServices:u}=e,{t:p}=(0,f.Bd)(),m=(0,s.useMemo)(()=>i?((e,t)=>{var n,i,l,a,r,o,s;let d=null!=(l=e.blocks)?l:[];return{locale:e.translation_language,primaryCapability:(e=>{switch(e){case x.YV.Multi:return"link_collection";case x.YV.Track:return"presave";case x.YV.Listening:return"listening";case x.YV.LinkInBio:return"link_in_bio";case x.YV.FanContentFeed:return"fan_feed";default:return"signup"}})(e.drop_type),formLayout:e.form_layout,hero:{title:e.title,description:e.description,imageUrl:e.custom_image_url,backgroundImageUrl:e.custom_background_image_url,artistTitle:e.custom_artist_title||(null==(n=e.drop_profile)?void 0:n.title),artistImageUrl:e.custom_artist_image_url||(null==(i=e.drop_profile)?void 0:i.custom_image_url),hideImage:e.hide_custom_image,hideArtistImage:!!e.hide_artist_image},countdownAt:e.go_live_timestamp,lifecycle:{endAt:e.end_at,endMessage:e.end_message},theme:{variant:e.color_theme,backgroundColor:e.background_color_hex,primaryColor:e.custom_primary_button_color_hex},signup:{title:e.custom_universal_signup_title,description:e.custom_universal_signup_description,buttonText:e.custom_primary_button_text},branding:{showCobrandLogo:!1!==e.allow_cobrand_logo&&"4f4e6251-2a94-4dbc-9bd8-f01badb2778d"!==e.enterprise_customer_id},blocks:{aboveForm:ei(d,S.s6.AboveForm),belowForm:ei(d,S.s6.BelowForm),linkInBio:ei(d,S.s6.LinkInBio),postSignup:ei(d,S.s6.PostSignup),hasBlocks:d.length>0,hasVisibleBlocks:d.some(e=>!e.hidden&&e.items.some(e=>!e.hidden))},listeningLinks:(e=>{var t;let n=null!=(t=e.listening_links)?t:[];return[...n,...J(e.id).map((e,t)=>({platform:e.listeningPlatform,destination_url:e.destinationUrl,order:n.length+t}))]})(e),presaveLinks:(e=>{var t;let n=null!=(t=e.presave_links)?t:[];return[...n,...J(e.id).map((e,t)=>({id:null,platform:e.presavePlatform,destination_url:e.destinationUrl,order:n.length+t,is_hidden:!1}))]})(e),collectionLinks:null!=(a=e.link_collection)?a:[],socialLinks:(e=>{let t=e.drop_profile;return!t||e.hide_drop_profile_social_urls?[]:[["spotify",t.spotify_url],["apple_music",t.apple_music_url],["youtube",t.youtube_url],["soundcloud",t.soundcloud_url],["instagram",t.instagram_url],["tiktok",t.tiktok_url],["twitter",t.twitter_url],["amazon_music",t.amazon_music_url],["pandora",t.pandora_url],["website",t.website_url],["bandsintown",t.bandsintown_url],["discord",t.discord_url],["tumblr",t.tumblr_url],["telegram",t.telegram_url]].flatMap(e=>{let[t,n]=e;return n?[{platform:t,url:n}]:[]})})(e),contest:e.contest?{summary:et(e.contest,t),details:e.contest.details,startsAt:e.contest.starts_at,endsAt:e.contest.ends_at}:null,rsvp:e.drop_type===x.YV.RSVP&&e.rsvp_config?{eventAt:e.rsvp_config.event_at,timezone:e.rsvp_config.event_timezone,location:null!=(r=e.rsvp_config.location)?r:"",minimumAge:null!=(o=e.rsvp_config.minimum_age)?o:null,maxGuests:null!=(s=e.rsvp_config.max_guests)?s:0}:null}})(i,(e,t)=>p(e,t)):void 0,[i,p]),[h,g]=(0,s.useState)(eR(i,l)),[b,v]=(0,s.useState)(eO(m,l)),[k,y]=(0,s.useState)(()=>l.drop_signup_apple_music_authentication_id?Q.AppleMusic:l.drop_signup_spotify_user_id?Q.Spotify:void 0),w=(0,s.useRef)();(0,s.useEffect)(()=>{if(!i||w.current===i.id)return;w.current=i.id;let e=eR(i,l);e&&g(e);let t=eO(m,l);t&&v(t)},[m,i,l]);
1let[M,F]=(0,s.useState)(),O=(e=>{var t,n,i,l,a,r,o,d,c;let{drop:u,enabled:p,isPreview:m,shareUrl:h,browserServices:g}=e,b=(0,er.jE)(),[x,v]=(0,s.useState)("feed"),[k,y]=(0,s.useState)("trending"),[C,_]=(0,s.useState)(null),[w,j]=(0,s.useState)(null),[S,N]=(0,s.useState)(!1),[M,F]=(0,s.useState)(!1),[L,I]=(0,s.useState)(!1),[E,D]=(0,s.useState)(0),V=(e=>{let{dropId:t,dropProfileId:n}=e,{t:i}=(0,f.Bd)(),l=(0,s.useRef)(),{requestNewTurnstileToken:a,resolveTurnstileTokenPromise:r,consumeTurnstileToken:o,refreshTurnstileToken:d}=eb({turnstileRef:l}),[c,u]=(0,s.useState)([]),p=(0,s.useCallback)((e,t)=>{u(n=>n.map(n=>n.id===e?{...n,...t}:n))},[]),m=ef(),h=eg(),g=(0,s.useCallback)(async(e,i)=>{try{let l=await o(),a=await m.mutateAsync({drop_id:t,drop_profile_id:n,filename:e.name,ct__:l}),r=d();if(!a)return void p(i,{status:"FAILED"});await (0,ex.GR)(e,a.asset.upload_url,e=>p(i,{progress:e}),{requestHeaders:[{name:"X-Goog-Content-Length-Range",value:"0,".concat(0x40000000)}]});let s=await r;await h.mutateAsync({drop_profile_id:n,drop_id:t,drop_signup_fan_asset_id:a.drop_signup_fan_asset_id,ct__:s}),p(i,{status:"SUCCESS",fanAssetId:a.drop_signup_fan_asset_id,progress:void 0})}catch(e){p(i,{status:"FAILED"})}},[m,h,o,t,n,d,p]),b=(0,s.useCallback)(async e=>{let t=5-c.length;if(t<=0)return;let n=e.slice(0,t),l=n.map(e=>{let t=e.size<=0x40000000;return{id:(0,eh.A)(),file:e,filename:e.name,previewUrl:URL.createObjectURL(e),isVideo:e.type.startsWith("video"),status:t?"LOADING":"FAILED",error:t?void 0:i("dropSignupForm.submitContent.fileLimit",{fileSize:(0,B.sn)(0x40000000,0)})}});u(e=>[...e,...l]);for(let e=0;e<n.length;e++)"LOADING"===l[e].status&&await g(n[e],l[e].id)},[c.length,i,g]),x=(0,s.useCallback)(e=>{let t=c.find(t=>t.id===e);t&&(p(e,{status:"LOADING",error:void 0,progress:void 0}),g(t.file,e))},[c,p,g]),v=(0,s.useCallback)(e=>{u(t=>{let n=t.find(t=>t.id===e);return n&&URL.revokeObjectURL(n.previewUrl),t.filter(t=>t.id!==e)})},[]),k=(0,s.useCallback)(()=>{u(e=>(e.forEach(e=>URL.revokeObjectURL(e.previewUrl)),[]))},[]),y=c.some(e=>"LOADING"===e.status),C=c.filter(e=>"SUCCESS"===e.status&&e.fanAssetId).map(e=>e.fanAssetId),_=5-c.length;return{turnstileRef:l,requestNewTurnstileToken:a,resolveTurnstileTokenPromise:r,items:c,addFiles:b,removeItem:v,retryItem:x,reset:k,isUploading:y,successfulFanAssetIds:C,remainingSlots:_}})({dropId:null!=(l=null==u?void 0:u.id)?l:"",dropProfileId:null!=(a=null==u||null==(t=u.drop_profile)?void 0:t.id)?a:""}),{data:O,isLoading:R}=ec({drop_id:null!=(r=null==u?void 0:u.id)?r:"",tab:eu.S8.LATEST,enabled:p}),{data:U}=ec({drop_id:null!=(o=null==u?void 0:u.id)?o:"",tab:eu.S8.TRENDING,enabled:p&&!eC.includes(null!=(d=null==u?void 0:u.id)?d:"")}),z=(0,s.useMemo)(()=>{var e;return null!=(e=null==O?void 0:O.items)?e:[]},[null==O?void 0:O.items]),W=(0,s.useMemo)(()=>{var e;return null!=(e=null==U?void 0:U.items)?e:[]},[null==U?void 0:U.items]),q=(0,s.useMemo)(()=>"trending"===k&&W.length>0?W:z,[k,z,W]),H=(e=>{var t;let{drop:n,items:i,activeIndex:l,isOpen:a,shareUrl:r,browserServices:o}=e,d=(()=>{let e=(0,es.lr)({includeHost:!1});return(0,em.n)({mutationFn:t=>e("".concat(A.x6).concat(P.vL.feedMedia()),{method:"POST",body:JSON.stringify(t)})})})(),c=(0,s.useRef)(new Set),u=(0,s.useRef)(),[p,m]=(0,s.useState)({}),[h,f]=(0,s.useState)({}),[g,b]=(0,s.useState)(!1),x=(0,s.useCallback)(e=>{var t;let i=null==n||null==(t=n.drop_profile)?void 0:t.id;!e||!(null==n?void 0:n.id)||!i||p[e.id]||c.current.has(e.id)||(c.current.add(e.id),d.mutateAsync({drop_profile_id:i,drop_id:n.id,drop_signup_fan_asset_id:e.id}).then(t=>{if(null==t?void 0:t.download_url)return void m(n=>({...n,[e.id]:t.download_url}));f(t=>({...t,[e.id]:!0}))}).catch(()=>{f(t=>({...t,[e.id]:!0}))}).finally(()=>{c.current.delete(e.id)}))},[null==n||null==(t=n.drop_profile)?void 0:t.id,null==n?void 0:n.id,d,p]),v=(0,s.useCallback)(e=>{f(t=>{let n={...t};return delete n[e.id],n}),x(e)},[x]);return(0,s.useEffect)(()=>{a&&[l-1,l,l+1].forEach(e=>{e>=0&&e<i.length&&x(i[e])})},[l,x,a,i]),(0,s.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),{mediaUrls:p,erroredIds:h,retry:v,linkCopied:g,copyShareUrl:(0,s.useCallback)(()=>{o.copyText(r).then(()=>{b(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>b(!1),2e3)}
1).catch(()=>void 0)},[o,r])}})({drop:u,items:q,activeIndex:E,isOpen:null!==C,shareUrl:h,browserServices:g}),Z=(e=>{var t;let{drop:n,isPreview:i}=e,l=(0,s.useRef)(null);l.current=(null==n?void 0:n.id)&&(null==(t=n.drop_profile)?void 0:t.id)&&!i?{dropId:n.id,dropProfileId:n.drop_profile.id}:null;let a=(0,s.useRef)(new Map),r=(0,s.useRef)(new Map);return(0,s.useCallback)(e=>{let t=a.current.get(e);return t||(t=t=>{var n;if(null==(n=r.current.get(e))||n(),r.current.delete(e),!t||!l.current)return;let{dropId:i,dropProfileId:a}=l.current;r.current.set(e,((e,t)=>{let n,i=null,l=0,a=()=>{if(null!==i){let e=Date.now();l+=e-i,i=e}},r=()=>{a();let e=Math.min(l,3e4);e<250||(l=Math.min(l-e,3e4),t(e))},o=()=>{null===i&&(i=Date.now()),void 0===n&&(n=setInterval(r,1e4))},s=()=>{a(),i=null,clearInterval(n),n=void 0,r()},d=()=>{"hidden"===document.visibilityState&&r()};return e.addEventListener("playing",o),e.addEventListener("pause",s),e.addEventListener("ended",s),e.addEventListener("waiting",s),e.addEventListener("emptied",s),document.addEventListener("visibilitychange",d),window.addEventListener("pagehide",r),!e.paused&&e.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA&&o(),()=>{s(),e.removeEventListener("playing",o),e.removeEventListener("pause",s),e.removeEventListener("ended",s),e.removeEventListener("waiting",s),e.removeEventListener("emptied",s),document.removeEventListener("visibilitychange",d),window.removeEventListener("pagehide",r)}})(t,t=>{var n;return n={drop_profile_id:a,drop_id:i,drop_signup_fan_asset_id:e,watched_ms:t},void(0,T.In)("".concat(A.x6).concat(P.vL.feedWatch()),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0}).catch(()=>null)}))},a.current.set(e,t)),t},[])})({drop:u,isPreview:m}),G=(0,s.useCallback)(e=>{D(e),_(e)},[]),Y=(0,s.useCallback)(()=>_(null),[]),K=(0,s.useCallback)(()=>{j(E),_(null),I(!0)},[E]),J=(0,s.useCallback)(()=>{I(!1),j(e=>(null!==e&&_(e),null))},[]),Q=(0,s.useCallback)(e=>{if(m)return;let t=e.slice(0,5);0!==t.length&&(_(null),F(!1),N(!0),V.addFiles(t))},[m,V]),$=(0,s.useCallback)(()=>{N(!1),F(!1),V.reset(),b.invalidateQueries({queryKey:[ed]})},[b,V]),X=V.successfulFanAssetIds.length,ee=V.items.some(e=>e.status===ev.Failed),et=M?"complete":V.isUploading?"uploading":0===X&&ee?"failed":"ready";return{enabled:p,activePageTab:x,setActivePageTab:v,activeSort:k,setActiveSort:y,items:z,trendingItems:W,displayedItems:q,isLoading:R,upload:{isOpen:S,isSignupComplete:M,phase:et,successCount:X,hasFailure:ee,canSelectFiles:!m,acceptedFileTypes:ep,maxFiles:5,session:V,selectFiles:Q,close:$,markSignupComplete:()=>F(!0),remove:e=>{V.items.length<=1?$():V.removeItem(e)}},signup:{isOpen:L,openFromPlayer:K,close:J},player:{isOpen:null!==C,selectedIndex:C,title:null!=(c=null==u?void 0:u.title)?c:"",subtitle:(null==u?void 0:u.custom_artist_title)||(null==u||null==(n=u.drop_profile)?void 0:n.title),spotifyUrl:null==u||null==(i=u.drop_profile)?void 0:i.spotify_url,shareUrl:h,activeIndex:E,media:H,trackMedia:Z,open:G,close:Y,setActiveIndex:D,openSpotify:()=>{var e;(null==u||null==(e=u.drop_profile)?void 0:e.spotify_url)&&g.openExternal(u.drop_profile.spotify_url)}}}})({drop:i,enabled:(null==m?void 0:m.primaryCapability)===en.FanFeed&&!r,isPreview:a,shareUrl:c,browserServices:u}),R=(e=>{var t,n;let[i,l]=(0,s.useState)(),a=(e=>{let t=e?Date.parse(e):NaN;return Number.isNaN(t)?void 0:t})(null==e?void 0:e.endAt);(0,s.useEffect)(()=>{let e=Date.now();if(void 0===i&&l(e),void 0===a||a<=e)return;let t=window.setTimeout(()=>l(Date.now()),Math.min(a-e+50,2147e6));return()=>window.clearTimeout(t)},[a,i]);let r=void 0!==a&&void 0!==i&&i>=a?"ended":"live";return{phase:r,isLive:"live"===r,isEnded:"ended"===r,endAt:null!=(t=null==e?void 0:e.endAt)?t:void 0,endMessage:null!=(n=null==e?void 0:e.endMessage)?n:void 0}})(null==m?void 0:m.lifecycle),U=(e=>{let t=null==e?void 0:e.theme.variant,n=(null==e?void 0:e.hero.backgroundImageUrl)||(null==e?void 0:e.hero.imageUrl),i=(null==e?void 0:e.theme.primaryColor)||void 0,[l,a]=(0,s.use
1State)(!0),[r,o]=(0,s.useState)(),[d,c]=(0,s.useState)();(0,s.useEffect)(()=>{let l=!1;return(a(!t||t===x.uN.Dark),o(void 0),c(void 0),n)?(eP(n).then(t=>{if(t&&!l&&((null==e?void 0:e.hero.backgroundImageUrl)&&a(eT(t)),!i)){let{r:e,g:n,b:i}=eF(t);o("rgb(".concat(e,", ").concat(n,", ").concat(i,")")),c(eT({r:e,g:n,b:i},{threshold:180})?"#ffffff":"#000000")}}).catch(()=>void 0),()=>{l=!0}):()=>{l=!0}},[n,null==e?void 0:e.hero.backgroundImageUrl,i,t]);let u=i||r,p=(0,s.useMemo)(()=>(e=>{if(!e)return{};try{var t;let n=eN()({color:e,name:"primary",shade:600,shades:[50,100,200,300,400,500,600,700,800,900,950]});return null!=(t=null==n?void 0:n.primary)?t:{}}catch(e){return{}}})(u),[u]),m=i?eT(eM(i),{threshold:180})?"#ffffff":"#000000":d;return{variant:t,isDark:!t||t===x.uN.Dark||l,backgroundColor:(null==e?void 0:e.theme.backgroundColor)||void 0,backgroundImageUrl:n,primaryColor:u,primaryPalette:p,primaryForeground:m}})(m),z=(e=>{let{i18n:t}=(0,f.Bd)(),n=(e=>{let t=null==e?void 0:e.toLowerCase().split("-")[0];return C.includes(t)?t:"en"})(e);return(0,s.useEffect)(()=>{let e=!0;return(async()=>{if(!t.hasResourceBundle(n,"translation")){let e=await _(n);t.addResourceBundle(n,"translation",e,!0,!0)}e&&t.resolvedLanguage!==n&&await t.changeLanguage(n)})(),()=>{e=!1}},[t,n]),(0,s.useEffect)(()=>{var e;let t=null==(e=globalThis.document)?void 0:e.documentElement;if(!t)return;let i=t.lang;return t.lang=n,()=>{t.lang===n&&(t.lang=i)}},[n]),n})(null==m?void 0:m.locale),W=(e=>{var t;let{drop:n,definition:i}=e,l=(0,es.lr)({includeHost:!1}),a=(0,s.useMemo)(()=>{var e,t,n;return[...null!=(e=null==i?void 0:i.blocks.aboveForm)?e:[],...null!=(t=null==i?void 0:i.blocks.belowForm)?t:[],...null!=(n=null==i?void 0:i.blocks.linkInBio)?n:[]].flatMap(e=>e.items.filter(e=>!e.hidden&&e.item_type===S.VK.Shopify))},[i]),r=(0,e_.E)({queries:a.map(e=>({queryKey:[ew.a,{myshopifyDomain:e.shop_url,productHandle:e.product_handle}],queryFn:()=>l("https://".concat(e.shop_url,"/products/").concat(e.product_handle,".json"),{method:"GET"}),enabled:!!(e.shop_url&&e.product_handle)}))}),o=(0,s.useMemo)(()=>new Map(a.map((e,t)=>{var i,l,a,o,s,d;let c=(e=>{var t,n,i,l;let a=null==e||null==(t=e.variants[0])?void 0:t.price,r=null==e||null==(n=e.variants[0])?void 0:n.price_currency;return{imageSrc:(null==e||null==(i=e.image)?void 0:i.src)||(null==e||null==(l=e.images[0])?void 0:l.src),title:null==e?void 0:e.title,description:a?"".concat(r?"".concat(r," "):"").concat(ej(Number(a),r)):void 0}})(null==(l=r[t])||null==(i=l.data)?void 0:i.product),u=null!=(s=e.short_url)?s:(e=>{let{shopDomain:t,productHandle:n,utmMedium:i="drops",utmSource:l="cobrand",utmCampaign:a,utmContent:r}=e,o="https://".concat(t,"/products/").concat(n),s=new URL(o);return(s.searchParams.append("utm_source",l),i)?(s.searchParams.append("utm_medium",i),r&&s.searchParams.append("utm_content",r),a&&s.searchParams.append("utm_campaign",a),s.toString()):o})({shopDomain:e.shop_url,productHandle:e.product_handle,utmSource:"cobrand",utmMedium:"drop",utmContent:null==n?void 0:n.id,utmCampaign:((e,t)=>[e?"cbdp_".concat(e):void 0,t?"cbd_".concat(t):void 0].filter(Boolean).join("__")||void 0)(null==n||null==(a=n.drop_profile)?void 0:a.slug,null==n?void 0:n.slug)});return[e,{...c,destinationUrl:u,isLoading:null!=(d=null==(o=r[t])?void 0:o.isLoading)&&d}]})),[null==n||null==(t=n.drop_profile)?void 0:t.slug,null==n?void 0:n.id,null==n?void 0:n.slug,a,r]);return{productsByItem:o,get:e=>o.get(e)}})({drop:i,definition:m}),q=(e=>{let{drop:t,searchParams:n,enabled:i,browserServices:l}=e,a=(()=>{let[e,t]=(0,s.useState)(!1),[n,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=(()=>{try{return"accepted"===localStorage.getItem(eL)}catch(e){return!1}})();t(e),i(!e)},[]),{acceptedCookies:e,showCookieBanner:n,acceptCookies:()=>{t(!0),i(!1);try{localStorage.setItem(eL,"accepted")}catch(e){}},dismissCookieBanner:()=>i(!1)}})(),{metaPixelIds:r,tiktokPixelIds:o,googlePixelIds:d}=(0,s.useMemo)(()=>({metaPixelIds:eI(t,x.w7.Meta),tiktokPixelIds:eI(t,x.w7.TikTok),googlePixelIds:eI(t,x.w7.Google)}
1),[t]),c=!!(r.length||o.length||d.length),[u]=(0,s.useState)(()=>l.randomUUID());(0,s.useEffect)(()=>{i&&E({event:I.PageView})},[i]);let p=null==t?void 0:t.id;return(0,s.useEffect)(()=>{i&&p&&L({dropId:p,eventType:x.uW.PageView,eventId:u})},[p,i,u]),(0,s.useEffect)(()=>{if(!i||!a.acceptedCookies||!n.fbclid)return;let e=Date.now(),t="fb.1.".concat(e,".").concat(n.fbclid);l.setCookie("_fbc=".concat(t,"; path=/; max-age=").concat(86400))},[l,a.acceptedCookies,null==t?void 0:t.id,i,n.fbclid]),{enabled:i,pixels:{meta:r,tiktok:o,google:d,shouldRender:i&&a.acceptedCookies,pageViewEventId:u},consent:{shouldShowBanner:i&&c&&a.showCookieBanner,accept:a.acceptCookies,dismiss:a.dismissCookieBanner}}})({drop:i,searchParams:l,enabled:d,browserServices:u}),H=(0,s.useMemo)(()=>{var e;return null!=(e=null==m?void 0:m.collectionLinks)?e:[]},[null==m?void 0:m.collectionLinks]),Z=H.some(e=>null!=e.event_latitude&&null!=e.event_longitude),{data:K}=(0,j.I)({enabled:Z}),$=(0,s.useMemo)(()=>(null==K?void 0:K.latitude)!=null&&null!=K.longitude?{lat:K.latitude,lon:K.longitude}:null,[null==K?void 0:K.latitude,null==K?void 0:K.longitude]),X=(0,B.Ss)(),ee=l.drop_link_collection_link_ids_to_show,el=(0,s.useMemo)(()=>{let e=e=>{let t=eB(e);return!!$&&!!t&&(0,N.A)($,t)};return H.filter(e=>!e.is_hidden&&(!ee||ee.includes(e.id))).sort((t,n)=>{var i,l;let a=eB(t),r=eB(n),o=e(t),s=e(n);if($&&a&&r&&o&&s){let e=(0,N.k)($,a)-(0,N.k)($,r);if(0!==e)return e}if(o!==s)return o?-1:1;let d=t.event_timezone===X;return d!==(n.event_timezone===X)?d?-1:1:(null!=(i=t.order)?i:1/0)-(null!=(l=n.order)?l:1/0)}).map(e=>({link:e,action:(e=>(e=>!!(e.is_call_to_action_disabled||e.link_and_event_type===x.u5.PRE_SALE||e.link_and_event_type===x.u5.DYNAMIC_PRE_SALE&&(0,ea.A)().isBefore((0,ea.A)(e.activate_at))))(e)?{kind:"signup"}:{kind:"navigate",destinationUrl:e.destination_url||void 0})(e),isNearby:(e=>{let t=eB(e);return $&&t?(0,N.A)($,t):!!(e.event_timezone&&e.event_timezone===X)})(e)}))},[H,X,ee,$]),eo=(0,s.useMemo)(()=>{var e;return(null!=(e=null==m?void 0:m.presaveLinks)?e:[]).filter(e=>!e.is_hidden).map(e=>e.platform===x.NZ.SPOTIFY?{link:e,action:{kind:"signup",platform:Q.Spotify},isCompleteFromCallback:!!(l.drop_signup_spotify_user_id||o)}:e.platform===x.NZ.APPLE_MUSIC?{link:e,action:{kind:"signup",platform:Q.AppleMusic},isCompleteFromCallback:!!(l.drop_signup_apple_music_authentication_id||o)}:{link:e,action:{kind:"navigate",destinationUrl:e.destination_url||void 0},isCompleteFromCallback:!1})},[null==m?void 0:m.presaveLinks,l.drop_signup_apple_music_authentication_id,l.drop_signup_spotify_user_id,o]),ek=(e,t,n)=>{let l="title"in e?e.title||"":"event_title"in e?String(e.event_title):"";V({clickType:"link_in_bio"===t?D.LinkInBio:D.Block,dropProfileOrDrop:i,itemType:e.item_type,itemTitle:l,destinationUrl:n})};return{definition:m,lifecycle:R,theme:U,locale:z,tracking:q,fanFeed:O,signup:{isOpen:!!h,source:h,selectedCollectionLink:b,modalImageUrl:((e,t)=>{var n;return null!=(n=((e,t)=>{var n;return e&&t?null==(n=G[e])?void 0:n[t]:void 0})(null==e?void 0:e.id,t))?n:null==e?void 0:e.custom_image_url})(i,null==b?void 0:b.id),shouldShowModalHeader:!o&&!l.drop_signup_spotify_user_id&&!l.drop_signup_apple_music_authentication_id,openGeneral:()=>g("general"),openListening:()=>g("listening"),openCollection:e=>{v(e),g("link_collection")},openLinkInBio:()=>g("link_in_bio"),close:()=>{g(void 0),v(void 0),F(void 0)}},listening:{links:null!=(n=null==m?void 0:m.listeningLinks)?n:[],trackClick:e=>{V({clickType:D.Listening,dropProfileOrDrop:i,platform:e.platform,destinationUrl:e.destination_url})}},presave:{links:eo,selectedPlatform:k,activate:e=>{V({clickType:D.Presave,dropProfileOrDrop:i,platform:e.link.platform,destinationUrl:e.link.destination_url||void 0}),"signup"===e.action.kind&&(y(e.action.platform),g("presave"))}},collection:{links:el,activate:e=>{V({clickType:D.LinkCollection,dropProfileOrDrop:i,linkTitle:e.link.title,linkType:e.link.link_and_event_type,destinationUrl:e.link.destination_url}),"signup"===e.action.kind&&(v(e.link),g("link_collection"))},shouldShowGeneralSignup:!(e=>!!(e&&Y.has(e)))(null==i||null==(t=i.drop_profile)?void 0:t.id)&&(!ee||ee.includes(x.b8))},blocks:{selectedItem:M,activate:(e,t)=>
1{var n;let i=e.item_type===S.VK.Link?e.destination_url:e.item_type===S.VK.Shopify?null==(n=W.get(e))?void 0:n.destinationUrl:e.item_type===S.VK.Ticket?e.ticket_purchase_link:void 0;if(ek(e,t,i),e.item_type===S.VK.Link){i&&u.openExternal(i);return}if(e.item_type===S.VK.PreSave){let t=e.platform;F(e),y(t===x.NZ.SPOTIFY?Q.Spotify:Q.AppleMusic),g("block_presave");return}e.item_type!==S.VK.Shopify&&e.item_type!==S.VK.Ticket&&F(e)},track:ek,closeItem:()=>F(void 0),getSongLinks:e=>((e,t)=>[...t.links,...J(e).map((e,n)=>({id:null,platform:e.listeningPlatform,destination_url:e.destinationUrl,order:t.links.length+n}))])(null==i?void 0:i.id,e),shopify:W},branding:{showCobrandLogo:!!((null==m?void 0:m.branding.showCobrandLogo)&&!r)}}})({drop:a,searchParams:M,isPreview:o,formOnly:d,showPostSignUp:c,enableTracking:m,publicUrl:k,browserServices:b.browser}),R=(0,s.useMemo)(()=>({drop:a,searchParams:M,updateSearchParams:F,isPreview:o,showPostSignUp:c,previewState:u,turnstileSiteKeys:p,publicUrl:k,navigate:h,services:b}),[a,o,M,h,k,b,c,p,u,F]);return(0,l.jsx)(eW.Provider,{value:R,children:(0,l.jsx)(eq.Provider,{value:O,children:v})})},eG=e=>{let[t]=(0,s.useState)(w);return(0,l.jsx)(f.xC,{i18n:t,children:(0,l.jsx)(eZ,{...e})})},eY=()=>{let e=(0,s.useContext)(eW);if(!e)throw Error("useDropRuntimeConfig must be used inside DropRuntimeProvider");return e},eK=()=>{let e=(0,s.useContext)(eq);if(!e)throw Error("useDropPage must be used inside DropRuntimeProvider");return e},eJ=()=>{let e=eY(),t=eK();return(0,s.useMemo)(()=>({...e,page:t}),[e,t])};var eQ=n(59653);let e$=e=>{let{onAccept:t,onReject:n}=e,{t:i}=(0,f.Bd)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{children:'\n .cobrand-cookie-consent,\n .cobrand-cookie-consent * {\n box-sizing: border-box;\n }\n\n .cobrand-cookie-consent {\n position: fixed;\n left: 50%;\n bottom: 42px;\n z-index: 2147483646;\n width: calc(100% - 32px);\n max-width: 639px;\n margin: 0;\n padding: 16px;\n transform: translateX(-50%);\n border: 0;\n border-radius: 12px;\n background: #ffffff;\n box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);\n color: #0f172a;\n color-scheme: light;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system,\n BlinkMacSystemFont, "Segoe UI", sans-serif;\n font-size: 14px;\n font-style: normal;\n text-align: left;\n }\n\n .cobrand-cookie-consent__title {\n display: block;\n margin: 0;\n color: #0f172a;\n font-size: 14px;\n font-weight: 700;\n letter-spacing: -0.01em;\n line-height: 20px;\n }\n\n .cobrand-cookie-consent__header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 24px;\n }\n\n .cobrand-cookie-consent__description {\n margin: 4px 0 0;\n color: #475569;\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n .cobrand-cookie-consent__close {\n flex: 0 0 auto;\n width: 24px;\n height: 24px;\n margin: -4px -4px 0 0;\n padding: 0;\n appearance: none;\n border: 0;\n background: transparent;\n color: #64748b;\n cursor: pointer;\n font: inherit;\n font-size: 22px;\n font-weight: 400;\n line-height: 24px;\n }\n\n .cobrand-cookie-consent__link {\n color: #334155;\n font: inherit;\n font-weight: 600;\n text-decoration: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 2px;\n }\n\n .cobrand-cookie-consent__actions {\n display: flex;\n gap: 8px;\n margin: 16px 0 0;\n }\n\n .cobrand-cookie-consent__button {\n min-height: 32px;\n margin: 0;\n padding: 0 16px;\n appearance: none;\n border: 1px solid transparent;\n border-radius: 8px;\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n font-weight: 600;\n line-height: 20px;\n text-align: center;\n text-transform: none;\n transition: background-color 120ms ease, border-color 120ms ease,\n box-shadow 120ms ease;\n }\n\n .cobrand-cookie-consent__button:focus-visible,\n .cobrand-cookie-consent__link:focus-visible,\n .cobrand-cookie-consent__close:focus-visible {\n outline: 3px solid var(--primary-color-300, #93c5fd);\n outline-offset: 2px;\n }\n\n .cobrand-cookie-consent__button--accept {\n flex: 1 1 auto;\n border-color: var(--primary-color-600, #2563eb);\n background: var(--primary-color-600, #2563eb);\n color: var(--Fill-Text-Neutral-Overlay, #ffffff);\n }\n\n .cobrand-cookie-consent__button--accept:hover {\n border-color: var(--primary-color-700, #1d4ed8);\n background: var(--primary-color-700, #1d4ed8);\n }\n\n .cobrand-cookie-consent__button--reject {\n flex: 0 0 auto;\n border-color: #cbd5e1;\n background: #ffffff;\n color: #334155;\n }\n\n .cobrand-cookie-consent__button--reject:hover {\n border-color: #94a3b8;\n background: #f8fafc;\n }\n\n @media (max-width: 480px) {\n .cobrand-cookie-consent {\n bottom: 0;\n width: 100%;\n max-width: none;\n padding: 16px 16px max(16px, env(safe-area-inset-bottom));\n border-right: 0;\n border-bottom: 0;\n border-left: 0;\n border-radius: 16px 16px 0 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .cobrand-cookie-consent__button {\n transition: none;\n }\n }\n'}),(0,l.jsxs)("aside",{"aria-label":i("cookieConsent.ariaLabel"),className:"cobrand-cookie-consent","data-cobrand-runtime":"cookie-consent",children:[(0,l.jsxs)("div",{className:"cobrand-cookie-consent__header",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("strong",{className:"cobrand-cookie-consent__title",children:i("cookieConsent.title")}),(0,l.jsxs)("p",{className:"cobrand-cookie-consent__description",children:[i("cookieConsent.description")," ",i("cookieConsent.readMore")," ",(0,l.jsx)("a",{className:"cobrand-cookie-consent__link",href:eQ.WO,rel:"noopener noreferrer",target:"_blank",children:i("cookieConsent.privacyPolicy")}),"."]})]}),(0,l.jsx)("button",{"aria-label":i("common.close"),className:"cobrand-cookie-consent__close",type:"button",onClick:n,children:"\xd7"})]}),(0,l.jsxs)("div",{className:"cobrand-cookie-consent__actions",children:[(0,l.jsx)("button",{className:"cobrand-cookie-consent__button cobrand-cookie-consent__button--accept",type:"button",onClick:t,children:i("cookieConsent.acceptAll")}),(0,l.jsx)("button",{className:"cobrand-cookie-consent__button cobrand-cookie-consent__button--reject",type:"button",onClick:n,children:i("cookieConsent.rejectAll")})]})]})]})},eX=(e,t)=>{if(document.getElementById(e))return;let n=document.createElement("script");n.id=e,n.async=!0,n.src=t,document.head.appendChild(n)},e1=()=>{let e=eK().tracking,t=e.pixels.google,n=e.pixels.meta,i=e.pixels.tiktok,a=e.pixels.pageViewEventId;return((0,s.useEffect)(()=>{e.pixels.shouldRender&&(n.length&&((e,t)=>{var n;let i=window;if(!i.fbq){let e=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e.callMethod?e.callMethod(...n):e.queue.push(n)};e.queue=[],e.loaded=!0,e.version="2.0",i.fbq=e,i._fbq=e}eX("cobrand-meta-pixel","https://connect.facebook.net/en_US/fbevents.js");let l=null!=(n=i.__cobrandMetaPixelIds)?n:i.__cobrandMetaPixelIds=new Set;for(let t of new Set([...e,"517850227647198"]))l.has(t)||(i.fbq("init",t),l.add(t));i.fbq("track","PageView",{},{eventID:t})})(n,a),i.length&&((e,t)=>{var n,i,l;let a=window,r=null!=(i=a.ttq)?i:[];a.ttq=r;let o=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];for(let e of o)"function"!=typeof r[e]&&(r[e]=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.push([e,...n])});r.load||(r.load=e=>{var t,n,i;let l="https://analytics.tiktok.com/i18n/pixel/events.js";r._i=null!=(t=r._i)?t:{},r._i[e]=[],r._i[e]._u=l,r._t=null!=(n=r._t)?n:{},r._t[e]=Date.now(),r._o=null!=(i=r._o)?i:{},r._o[e]={},eX("cobrand-tiktok-pixel-".concat(e),"".concat(l,"?sdkid=").concat(encodeURIComponent(e),"&lib=ttq"))}),r.instance||(r.instance=e=>{var t,n;let i=null!=(n=null==(t=r._i)?void 0:t[e])?n:[];for(let e of o)"function"!=typeof i[e]&&(i[e]=function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];return i.push([e,...n])});return i});let s=null!=(l=a.__cobrandTikTokPixelIds)?l:a.__cobrandTikTokPixelIds=new Set;for(let t of new Set([...e,"CPCDTG3C77U3JEJ9R4HG"]))s.has(t)||(r.load(t),s.add(t));null==(n=r.page)||n.call(r,{event_id:t})})(i,a),t.length&&(e=>{var t,n,i;let l=window;l.dataLayer=null!=(t=l.dataLayer)?t:[],l.gtag=null!=(n=l.gtag)?n:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return null==(e=l.dataLayer)?void 0:e.push(n)};let a=null!=(i=l.__cobrandGooglePixelIds)?i:l.__cobrandGooglePixelIds=new Set,[r]=e;for(let t of(r&&eX("cobrand-google-pixel","https://www.googletagmanager.com/gtag/js?i
1d=".concat(encodeURIComponent(r))),l.gtag("js",new Date),e))a.has(t)||(l.gtag("config",t),l.gtag("event","conversion",{send_to:"".concat(t,"/IZDECJjW1c4ZEOzb9-sD"),value:1,currency:"GBP",aw_remarketing_only:!0}),a.add(t))})(t))},[t,n,a,i,e.pixels.shouldRender]),e.consent.shouldShowBanner)?(0,l.jsx)(e$,{onAccept:e.consent.accept,onReject:e.consent.dismiss}):null};var e0=n(31078);let e2=e0.z.union([e0.z.string(),e0.z.number().finite(),e0.z.boolean(),e0.z.null()]),e6=e0.z.lazy(()=>e0.z.union([e2,e0.z.array(e6),e0.z.record(e6)])),e9=e0.z.record(e6);var e4=n(12364),e5=n.n(e4),e8=n(45063),e3=n(89388);let e7=[".mp4",".mov",".webm",".m4v",".avi",".mkv"],te=e=>e===S.Si.Center?"center":e===S.Si.Right?"right":"left",tt=(e,t)=>(null==e?void 0:e.download_url)||t||void 0,tn=e=>{var t,n;switch(e.item_type){case S.VK.Song:return{id:e.id,kind:r.W5.Song,title:e.title||void 0,description:e.description||void 0,imageUrl:e.external_asset_url||void 0,links:(null!=(t=e.links)?t:[]).map(e=>({platform:e.platform.toLowerCase()}))};case S.VK.Media:let i=(e=>{var t;return null==e||null==(t=e.match(/(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/\s]{11})/))?void 0:t[1]})(e.external_asset_url);return{id:e.id,kind:r.W5.Media,title:e.title||void 0,description:e.description||void 0,assetUrl:tt(e.asset,e.external_asset_url),imageUrl:i?"https://img.youtube.com/vi/".concat(i,"/hqdefault.jpg"):null==(n=e.asset)?void 0:n.download_url,youtubeVideoId:i,isVideo:((e,t)=>{let n=((null==e?void 0:e.filename)||t||"").toLowerCase();return e7.some(e=>n.endsWith(e))})(e.asset,e.external_asset_url)};case S.VK.Link:if(!e.destination_url)return null;return{id:e.id,kind:r.W5.Link,title:e.title||void 0,description:e.description||void 0,imageUrl:tt(e.asset,e.external_asset_url)};case S.VK.Shopify:if(!e.product_handle||!e.shop_url)return null;return{id:e.id,kind:r.W5.Product,productHandle:e.product_handle};case S.VK.Ticket:return{id:e.id,kind:r.W5.Event,eventTitle:e.event_title,eventDescription:e.event_description||void 0,eventAt:e.event_date||void 0,timezone:e.event_timezone||void 0,hasTicketDestination:!!e.ticket_purchase_link,isSoldOut:!!e.is_sold_out,imageUrl:e.show_asset?tt(e.asset,null):void 0};case S.VK.PreSave:if(!e.platform)return null;return{id:e.id,kind:r.W5.Presave,title:e.title||void 0,description:e.description||void 0,platform:String(e.platform).toUpperCase().includes("APPLE")?r.NS.AppleMusic:r.NS.Spotify,imageUrl:tt(e.asset,e.external_asset_url)};case S.VK.Text:return{id:e.id,kind:r.W5.Text,title:e.title||void 0,titleAlignment:te(e.title_alignment),body:e.body||void 0,bodyAlignment:te(e.body_alignment)};case S.VK.CountdownTicker:return{id:e.id,kind:r.W5.CountdownTicker,goLiveAt:e.go_live_at};default:return null}};var ti=function(e){return e.Upcoming="upcoming",e.Open="open",e.Ended="ended",e}({});let tl=e=>{let t=e?(0,ea.A)(e):null;return(null==t?void 0:t.isValid())?t.valueOf():void 0},ta=e=>{let[t,n]=(0,s.useState)(),i=tl(null==e?void 0:e.startsAt),l=tl(null==e?void 0:e.endsAt),a=null!=t?t:0,r=[i,l].find(e=>void 0!==e&&e>a);return((0,s.useEffect)(()=>{let e=(0,ea.A)().valueOf();if(void 0===t&&n(e),void 0===r||r<=e)return;let i=window.setTimeout(()=>n((0,ea.A)().valueOf()),Math.min(r-e+50,2147e6));return()=>window.clearTimeout(i)},[r,t]),void 0!==i&&a<i)?"upcoming":void 0!==l&&a>=l?"ended":"open"},tr="rsvp";var to=function(e){return e.Loading="loading",e.Blocked="blocked",e.Invited="invited",e.Attending="attending",e.Declined="declined",e}({});let ts=(0,s.createContext)(null),td=e=>{let{token:t,previewRSVP:n,isPreview:i,children:a}=e,r=(e=>{var t;let{token:n="",previewRSVP:i=null,isPreview:l=!1}=e,{t:a}=(0,f.Bd)(),r=!!(n||i),o=(e=>{let t=(0,es.lr)({includeHost:!1});return(0,eo.I)({queryKey:[tr,e],queryFn:async()=>{if(!e)throw Error("RSVP token is required");let n=await t("".concat(A.x6).concat(P.vL.getRSVP()),{method:"POST",body:JSON.stringify({token:e})});if(!n)throw Error("RSVP not found");return n},enabled:!!e,retry:!1})})(i||!r?void 0:n),d=(()=>{let e=(0,es.lr)({includeHost:!1}),t=(0,er.jE)();return(0,em.n)({mutationFn:async t=>{let n=await e("".concat(A.x6).concat(P.vL.acceptRSVP()),{method:"POST",body:JSON.stringify(t)});if(!n)throw Error("Unable to accept RSVP");return n},onSuccess:e=>{t.setQueryData([tr,e.token],e)}})})(),c=(()=>{let e=(0,es.lr)({includeHost:!1}),t=(0,er.jE)();return(0,em.n)({mutationFn:async t=>{let n=await e("".concat(A.x6).concat(P.vL.declineRSVP()),{method:"POST",body:JSON.stringify(t)});if(!n)throw Error("Unable to decline RSVP");return n},onSuccess:e=>{t.setQueryData([tr,e.token],e)}})}
1)(),[u,p]=(0,s.useState)(0),[m,h]=(0,s.useState)(!1),[g,b]=(0,s.useState)(!1),[v,k]=(0,s.useState)(!1),y=(0,s.useRef)(()=>{});y.current=()=>{d.reset(),c.reset()},(0,s.useEffect)(()=>{p(0),h(!1),b(!1),k(!1),y.current()},[n]);let C=null!=i?i:o.data,_=!i&&r&&o.isLoading,{refetch:w}=o,j=!i&&(null==C?void 0:C.status)===x.PE.Invited&&C.expires_at?(0,ea.A)(C.expires_at).valueOf():void 0;(0,s.useEffect)(()=>{let e;if(void 0===j||g||j<=Date.now())return;let t=()=>{let n=j-Date.now();e=window.setTimeout(()=>{if(j>Date.now())return void t();b(!0),w()},Math.min(n,2147e6))};return t(),()=>window.clearTimeout(e)},[j,g,w]);let S=C?((e,t)=>{if(e.status===x.PE.Invited&&(t||(e=>e.status===x.PE.Invited&&null!=e.expires_at&&(0,ea.A)(e.expires_at).isSameOrBefore((0,ea.A)()))(e)))return"dropRSVP.expired";switch(e.status){case x.PE.Expired:return"dropRSVP.expired";case x.PE.Ineligible:return"dropRSVP.ineligible";case x.PE.Pending:return"dropRSVP.notInvitedYet";default:return null}})(C,g):null,N=_?"loading":!C||o.isError||S?"blocked":C.status===x.PE.Attending?"attending":C.status===x.PE.Declined?"declined":"invited",M=null!=(t=null==C?void 0:C.max_guests)?t:0,F=Math.min(u,M),L=!!(null==C?void 0:C.minimum_age),I=d.isPending||c.isPending,E=!I&&!l&&!i,D="invited"===N&&E&&(!L||m),V=("invited"===N||"attending"===N)&&!l&&!i,B=V&&!I,O=v&&V;(0,s.useEffect)(()=>{V||k(!1)},[V]);let R=d.error||c.error,U=R?(0,T.SU)(R)||a("common.somethingWentWrong"):"",z=(0,s.useCallback)(async()=>{if(C&&D)try{await d.mutateAsync({token:n,guest_count:F,attested_age:L?C.minimum_age:null})}catch(e){}},[d,D,L,C,F,n]),W=(0,s.useCallback)(async()=>{B&&k(!0)},[B]),q=(0,s.useCallback)(async()=>{if(B)try{await c.mutateAsync({token:n})}catch(e){}finally{k(!1)}},[B,c,n]),H=(0,s.useCallback)(()=>{c.isPending||k(!1)},[c.isPending]),Z=(0,s.useMemo)(()=>{var e,t;let n=null!=(e=null==C?void 0:C.guest_count)?e:0,i="attending"===N?0===n?a("dropRSVP.youAreAttending"):1===n?a("dropRSVP.youAndGuestAreAttending"):a("dropRSVP.youAndGuestsAreAttending",{guests:n}):"declined"===N?a("dropRSVP.youDeclined"):void 0;return{headline:i,description:i?a("dropRSVP.returnAnytime"):void 0,attend:a("dropRSVP.attending"),declineInvite:a("dropRSVP.declineInvite"),declineEvent:a("dropRSVP.declineEvent"),cannotMakeIt:a("dropRSVP.cannotMakeIt"),additionalGuests:a("dropSignupForm.signupMethod.additionalGuests"),confirmAge:a("dropRSVP.confirmAge",{age:null!=(t=null==C?void 0:C.minimum_age)?t:0}),respondByLabel:a("dropRSVP.timeLeft"),countdown:{days:a("countdownTimer.days"),hours:a("countdownTimer.hrs"),minutes:a("countdownTimer.mins"),seconds:a("countdownTimer.secs")},loading:a("dropRSVP.loading"),working:a("dropSignupForm.submitting"),legal:a("dropRSVP.helperText").replace(/<terms>(.*?)<\/terms>/g,"[$1](".concat(eQ.er,")")).replace(/<privacy>(.*?)<\/privacy>/g,"[$1](".concat(eQ.WO,")")),confirmDeclineTitle:a("dropRSVP.confirmDeclineTitle"),confirmDeclineMessage:a("dropRSVP.confirmDeclineMessage"),confirmDeclineAction:a("dropRSVP.confirmDeclineAction"),confirmDeclineCancel:a("dropRSVP.confirmDeclineCancel")}},[N,null==C?void 0:C.guest_count,null==C?void 0:C.minimum_age,a]);return{isActive:r,phase:N,blockedMessage:"blocked"===N?a(null!=S?S:"dropRSVP.unavailable"):void 0,event:C?{eventAt:C.event_at,timezone:C.event_timezone,location:C.location,minimumAge:C.minimum_age,maxGuests:C.max_guests}:void 0,respondBy:"invited"===N&&(null==C?void 0:C.expires_at)?C.expires_at:void 0,guests:{max:M,selected:F,select:p},age:{isRequired:L,isAttested:m,setAttested:h},canAccept:D,canDecline:B,isBusy:I,isAccepting:d.isPending,isDeclining:c.isPending,accept:z,decline:W,declineConfirmation:{isOpen:O,confirm:q,cancel:H},errorMessage:U,isPreview:l||!!i,copy:Z}})({token:t,previewRSVP:n,isPreview:i});return(0,l.jsx)(ts.Provider,{value:r,children:a})},tc=()=>{let e=(0,s.useContext)(ts);if(!e)throw Error("useDropRsvpInvitation must be used inside DropRsvpInvitationProvider");return e},tu=()=>window.MusicKit?Promise.resolve():i||(i=new Promise((e,t)=>{let n=document.createElement("script");n.id="cobrand-music-kit",n.src="https://js-cdn.music.apple.com/musickit/v3/musickit.js",n.async=!0,n.onload=()=>e(),n.onerror=()=>{i=void 0,t(Error("Apple Music could not be loaded"))},document.head.appendChild(n)}));var tp=n(57051);let tm=(e,t)=>
1t.cb_marketing_opt_in_key?{...e,key:t.cb_marketing_opt_in_key}:e;var th=n(58294);let tf={"You must provide an email address or phone number.":"dropErrors.contactRequired","code is required.":"dropErrors.codeRequired","Invalid code. Please try again.":"dropErrors.invalidCode","Failed to verify code. Please try again.":"dropErrors.verifyCodeFailed","Failed to send OTP code. Please try again.":"dropErrors.sendCodeFailed","Something went wrong. Please try again.":"common.somethingWentWrong","You must provide a valid phone number.":"dropErrors.validPhoneRequired","Custom fields are not enabled for this drop.":"dropErrors.customFieldsDisabled","Duplicate custom field submission provided.":"dropErrors.duplicateCustomField","Invalid custom field for this drop.":"dropErrors.invalidCustomField","Please re-upload your fan assets and try again.":"dropErrors.reuploadFanAssets"},tg=(e,t)=>{let n=(0,T.SU)(e),i=n?tf[n]:void 0;return t(null!=i?i:"common.somethingWentWrong")};var tb=function(e){return e.Email="email",e.Phone="phone",e.WhatsApp="whatsapp",e.FirstName="first_name",e.LastName="last_name",e.Birthdate="birthdate",e.Gender="gender",e.Location="location",e.Language="language",e.PresavePlatform="presave_platform",e.SocialUsername="social_username",e.ContentSubmission="content_submission",e.Custom="custom",e}({});let tx=[x.Jm.Email,x.Jm.Phone,x.Jm.WhatsApp];var tv=n(33596),tk=n(78315),ty=n(9137);let tC=function(){var e,t,n,i,l;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{email:a.email_address||"",phoneNumber:a.phone_number||"",whatsAppNumber:a.whatsapp_number||"",username:a.tiktok_username||a.instagram_username||"",firstName:a.first_name||"",lastName:a.last_name||"",birthdate:a.birthdate?(0,ea.A)(a.birthdate).format(tv.k):"",gender:a.gender,language:a.language,locationDetails:{city:null!=(e=a.city)?e:null,state:null!=(t=a.state)?t:null,country_code:null!=(n=a.country_code)?n:null,latitude:null!=(i=a.latitude)?i:null,longitude:null!=(l=a.longitude)?l:null,timezone:null},customFieldEntries:[]}},t_={state:$.Editing,errorMessage:""},tw=(e,t)=>{switch(t.type){case"request_otp":return{state:$.RequestingOtp,errorMessage:""};case"otp_ready":return{state:$.AwaitingOtp,errorMessage:""};case"submit":return{state:$.Submitting,errorMessage:""};case"settled":return{state:$.Editing,errorMessage:e.errorMessage};case"failed":return{state:t.returnTo,errorMessage:t.errorMessage};case"close_otp":return t_}},tj=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=eY();return(e=>{let{searchParams:t,updateSearchParams:n,isPreview:i,dropProfileOrDrop:l,publicUrl:a,showPostSignUp:r,previewState:o,dropLinkCollectionLinkId:d,presavePlatform:c,externalFanAssetIds:u,additionalSubmitDisabled:p,onSignupComplete:m,browserServices:h}=e,{t:g}=(0,f.Bd)(),[b,k]=(0,s.useState)(""),[y,C]=(0,s.useState)(0),[_,w]=(0,s.useState)(!1),[j,S]=(0,s.useState)(()=>t.drop_signup_apple_music_authentication_id?Q.AppleMusic:t.drop_signup_spotify_user_id?Q.Spotify:null!=c?c:Q.Spotify),[N,T]=(0,s.useState)(!1),[M,L]=(0,s.useReducer)(tw,t_);(0,s.useEffect)(()=>{!c||t.drop_signup_apple_music_authentication_id||t.drop_signup_spotify_user_id||S(c)},[c,t.drop_signup_apple_music_authentication_id,t.drop_signup_spotify_user_id]);let D=(0,s.useRef)(),{requestNewTurnstileToken:V,resolveTurnstileTokenPromise:O,consumeTurnstileToken:R}=eb({turnstileRef:D}),U=(0,s.useRef)(),{resolveTurnstileTokenPromise:z,consumeTurnstileToken:W}=eb({turnstileRef:U}),q=(e=>{var t;let{dropProfileOrDrop:n,allowDraftCustomFields:i=!1}=e,{t:l}=(0,f.Bd)(),[a,r]=(0,s.useState)(x.Jm.Phone),[o,d]=(0,s.useState)(()=>tC());(0,s.useEffect)(()=>{d(tC((()=>{try{var e;return JSON.parse(null!=(e=localStorage.getItem(ty.UZ.DropUserData))?e:"{}")}catch(e){return{}}})()))},[]);let[c,u]=(0,s.useState)(),[p,m]=(0,s.useState)(!1),[h,g]=(0,s.useState)(!1),b=(0,s.useCallback)((e,t)=>{d(n=>({...n,[e]:t}))},[]),v=(0,s.useCallback)((e,t)=>((e,t,n)=>{let i=t.id||n,l=e.find(e=>e.drop_custom_field_id===i);if(l)switch(t.field_type){case x.hc.MULTIPLE_CHOICE:return l.drop_custom_field_option_ids;case x.hc.STRING:return l.value_string;case x.hc.INTEGER:return l.value_integer;case x.hc.DATE:return l.value_date}})(o.customFieldEntries,e,i?t:void 0),[i,o.customFieldEntries]),k=(0,s.useCallback)((e,t,n)=>{d(l=>{let a=((e,t,n,i)=>{let l=t.id||i;if(!l)return e;let a=e.filter(e=>e.drop_custom_field_id!==l);if(void 0===n||""===n||Array.isArray(n)&&0===n.length)return a;let r={drop_custom_field_id:l};switch(t.field_type){case x.hc.MULTIPLE_CHOICE:r.drop_custom_field_option_ids=Array.isArray(n)?n:[String(n)];break;case x.hc.STRING:r.value_string=String(n);break;case x.hc.INTEGER:r.value_integer=n;break;case x.hc.DATE:r.value_date=String(n)}return[...a,r]})(l.customFieldEntries,e,t,i?n:void 0);return a===l.customFieldEntries?l:{...l,customFieldEntries:a}})},[i]),{email:y,phoneNumber:C,whatsAppNumber:_,birthdate:w,locationDetail
1s:j,customFieldEntries:S,firstName:N,lastName:A}=o,P=(0,s.useMemo)(()=>((e,t,n)=>{var i,l,a,r;let o=!!((null==e?void 0:e.require_both_sms_and_email)&&e.allow_email&&e.allow_sms&&e.allow_whatsapp),s=!!(t===x.Jm.Email&&(null==e?void 0:e.allow_email)||(null==e?void 0:e.require_both_sms_and_email)&&e.allow_email),d=!!(t===x.Jm.Phone&&(null==e?void 0:e.allow_sms)||!o&&(null==e?void 0:e.require_both_sms_and_email)&&e.allow_sms),c=!!(t===x.Jm.WhatsApp&&(null==e?void 0:e.allow_whatsapp)||!o&&(null==e?void 0:e.require_both_sms_and_email)&&e.allow_whatsapp),u=null!=(l=null==e?void 0:e.contact_method_order)?l:tx,p=e?u.filter(t=>t===x.Jm.Email?e.allow_email&&!o:t===x.Jm.Phone?e.allow_sms:t===x.Jm.WhatsApp&&e.allow_whatsapp):[x.Jm.Email],m=[];for(let e of u)e===x.Jm.Email&&s&&m.push({key:"email",kind:"email",required:!0}),e===x.Jm.Phone&&d&&m.push({key:"phone",kind:"phone",required:!0}),e===x.Jm.WhatsApp&&c&&m.push({key:"whatsapp",kind:"whatsapp",required:!0});(null==e?void 0:e.allow_forever_save)&&m.push({key:"presave_platform",kind:"presave_platform",required:!0});let h=[...null!=(a=null==e?void 0:e.custom_fields)?a:[]].sort((e,t)=>{var n,i;return(null!=(n=e.sort_order)?n:0)-(null!=(i=t.sort_order)?i:0)}),f=()=>{for(let[e,t]of h.entries()){let n=t.drop_profile_custom_field_id?"".concat(t.drop_profile_custom_field_id,":").concat(e):String(e);m.push({key:t.id?"custom:".concat(t.id):"custom:draft:".concat(n),kind:"custom",required:t.required,customField:t})}},g=!1,b=!1,v=(null==e?void 0:e.drop_type)===x.YV.RSVP,k=(0,th.s3)(null==e?void 0:e.contest)||(null==e||null==(i=e.rsvp_config)?void 0:i.minimum_age)!=null,y=(0,th.eG)(null==e?void 0:e.contest),C=null!=(r=null==e?void 0:e.additional_field_order)?r:[];for(let t of[...C,...x.q1.filter(e=>!C.includes(e))])switch(t){case x.fg.Name:((null==e?void 0:e.allow_name)||v)&&m.push({key:"first_name",kind:"first_name",required:v},{key:"last_name",kind:"last_name",required:v});break;case x.fg.Birthdate:((null==e?void 0:e.allow_birthdate)||k)&&m.push({key:"birthdate",kind:"birthdate",required:k});break;case x.fg.Gender:(null==e?void 0:e.allow_gender)&&m.push({key:"gender",kind:"gender",required:!1});break;case x.fg.Location:((null==e?void 0:e.allow_location)||y)&&m.push({key:"location",kind:"location",required:y});break;case x.fg.Instagram:case x.fg.Tiktok:((null==e?void 0:e.allow_instagram)||(null==e?void 0:e.allow_tiktok))&&!g&&(m.push({key:"social_username",kind:"social_username",required:!1}),g=!0);break;case x.fg.ContentSubmission:((null==e?void 0:e.allow_content_submission)||(null==e?void 0:e.drop_type)===x.YV.FanContentFeed)&&m.push({key:"content_submission",kind:"content_submission",required:!1});break;case x.fg.Language:(null==e?void 0:e.allow_language)&&(m.push({key:"language",kind:"language",required:!1}),b=!0);break;case x.fg.CustomQuestions:f()}return(null==e?void 0:e.allow_language)&&!b&&m.push({key:"language",kind:"language",required:!1}),{fields:m,availableSignupMethods:p,contactMethodOrder:u,forceEmailPlusMessagingChoice:o,showEmailInput:s,showTextInput:d,showWhatsAppInput:c,consent:((e,t)=>{var n,i,l,a,r,o,s;let d=null!=(a=null!=(l=null==e||null==(n=e.drop_profile)?void 0:n.title)?l:null==e?void 0:e.title)?a:"",c=null==e?void 0:e.contest,u=!!((null==e?void 0:e.require_checkbox_opt_in)||(null==e?void 0:e.cb_marketing_opt_in_key)||c),p=c?{visible:!0,required:!0,text:(0,tp.xy)(c.prize_terms,c.prize_terms_url),url:c.prize_terms_url}:void 0,m=(null==e?void 0:e.slug)===eQ.Bg?"It is optional to check this box. ":void 0;return(null==e?void 0:e.slug)===eQ.Bg?{mode:"registration_example",primary:{visible:!0,required:!1,recordedText:(0,tp.F4)(e),displayText:"".concat(m,"By checking this box and submitting my phone number, I consent to receive recurring automated marketing messages from ").concat(d," of ").concat(null!=(o=null==(r=e.drop_profile)?void 0:r.business_name)?o:"",". Msg & Data rates may apply. Msg frequency varies. Reply STOP to cancel, HELP for help. SMS will be sent via co:brand. See co:brand's [Terms of Service](https://music.cobrand.com/terms-of-service/) and [Privacy Policy](https://music.cobrand.com/privacy-policy/).")},dropProfileTitle:d,checkboxConsent:!0,optionalPrefix:m,introText:"Phone number is used to create your account. Marketing text messages are optional and require separate consent.",disclosures:[]}:(null==e?void 0:e.enterprise_customer_id)==="4f4e6251-2a94-4dbc-9bd8-f01badb2778d"?{mode:"warner",primary:{visible:!0,required:!(null==e?void 0:e.cb_marketing_opt_in_key)&&!c,recordedText:(0,tp.dL)(d),displayText:"".concat(null!=m?m:"").concat((0,tp.dL)(d))},secondary:{visible:!0,required:!1,text:"".concat(null!=m?m:"").concat(tp.yk)},prizeTerms:p,dropProfileTitle:d,checkboxConsent:!0,optionalPrefix:m,disclosures:["Unsubscribe at any time. For more information about how we use your information please read our [Privacy Policy](https://privacy.wmg.com/wmi/privacy).","SMS will be sent by co:brand. Msg & Data rates may apply. Msg frequency varies. Reply STOP to cancel, HELP for help. See co:brand's [Terms of Service](https://music.cobrand.com/terms-of-service/) and [Privacy Policy](https://music.cobrand.com/privacy-policy/)","By signing up, you agree to the website [Terms of Use](https://music.cobrand.com/terms-of-service/)"]}:{mode:"default",primary:{visible:u,required:!!((null==e?void 0:e.require_checkbox_opt_in)&&!e.cb_marketing_opt_in_key&&!c),recordedText:(0,tp.OW)(d,u,t),displayText:(0,tp.OC)(d,u,t)},secondary:(null==e?void 0:e.require_secondary_checkbox_opt_in)?{visible:!0,required:!1,text:null!=(s=e.secondary_checkbox_opt_in_text)?s:""}:void 0,prizeTerms:p,dropProfileTitle:d,checkboxConsent:u,additionalLegal:null==e||null==(i=e.additional_legal)?void 0:i.replace("{{drop_profile_title}}",d),disclosures:[]}})(e,n)}})(n,a,(e,t)=>l(e,t)),[n,a,l]),{availableSignupMethods:T,forceEmailPlusMessagingChoice:M,showEmailInput:F,showTextInput:L,showWhatsAppInput:I}=P,E=T.length>1&&(!(null==n?void 0:n.require_both_sms_and_email)||M),D=(0,s.useCallback)(()=>{var e,t;let l=F&&(!y||!(0,e3.Bj)(y).isValid),a=L&&(!C||!(0,e3.U1)(C).isValid),r=I&&(!_||!(0,e3.U1)(_).isValid),o=(0,th.s3)(null==n?void 0:n.contest)||(null==n||null==(e=n.rsvp_config)?void 0:e.minimum_age)!=null,s=o&&!w||((null==n?void 0:n.allow_birthdate)||o)&&
1!!w&&!(0,e3.sD)(tv.k)(w).isValid,d=(null==n?void 0:n.drop_type)===x.YV.RSVP&&(!N.trim()||!A.trim()),c=P.consent.primary.visible&&P.consent.primary.required&&!p,u=!!((null==(t=P.consent.prizeTerms)?void 0:t.required)&&!h),m=null==n?void 0:n.contest,f=(0,th.s3)(m)&&(!w||!(0,th.Fh)(m,w)),g=(0,th.eG)(m)&&(!(null==j?void 0:j.country_code)||!(0,th.oy)(m,j.country_code)),b=P.fields.filter(e=>e.required&&e.customField),v=b.flatMap(e=>{let t,n;if(!e.required||!e.customField)return[];let l=(t=e.customField,n=i?e.key:void 0,t.id||n);return l?[l]:[]}),k=b.length!==v.length||v.length>0&&!v.every(e=>S.some(t=>t.drop_custom_field_id===e));return l||a||r||s||d||f||g||c||u||k},[i,w,N,A,S,P,null==n?void 0:n.drop_type,null==n?void 0:n.allow_birthdate,null==n?void 0:n.contest,null==n||null==(t=n.rsvp_config)?void 0:t.minimum_age,y,p,h,j,C,F,L,I,_]),V=(0,s.useMemo)(()=>(e=>{let t=(()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=(0,tk.zt)(e);return null==t?void 0:t.id})();return(null==e?void 0:e.input_sms_country_code_default)?e.input_sms_country_code_default:t?t.toLowerCase():"us"})(n),[n]);return(0,s.useMemo)(()=>({formData:o,definition:P,setFormData:d,setFieldValue:b,getCustomFieldValue:v,setCustomFieldValue:k,dropSignupFanAssetIds:c,setDropSignupFanAssetIds:u,selectedSignupMethod:a,setSelectedSignupMethod:r,isOptInCheckboxChecked:p,setIsOptInCheckboxChecked:m,isPrizeTermsCheckboxChecked:h,setIsPrizeTermsCheckboxChecked:g,availableSignupMethods:T,showEmailInput:F,showTextInput:L,showWhatsAppInput:I,showSignupMethodOptionsPicker:E,forceEmailPlusMessagingChoice:M,defaultPhoneCountryCode:V,isRSVPButtonDisabled:D}),[T,V,P,c,M,o,v,p,h,D,a,k,b,F,E,L,I])})({dropProfileOrDrop:l,allowDraftCustomFields:i}),H=(e=>{var t;let{drop:n,isPreview:i,setFanAssetIds:l}=e,{t:a}=(0,f.Bd)(),r=(0,s.useRef)(),{requestNewTurnstileToken:o,resolveTurnstileTokenPromise:d,consumeTurnstileToken:c,refreshTurnstileToken:u}=eb({turnstileRef:r}),p=ef(),m=eg(),[h,g]=(0,s.useState)(new Map),b=(0,s.useMemo)(()=>Array.from(h.values()),[h]),v=Math.max(0,5-b.filter(e=>{let{status:t}=e;return"success"===t||"loading"===t}).length),k=!!((null==n?void 0:n.drop_profile)&&(n.allow_content_submission||n.drop_type===x.YV.FanContentFeed)),y=(0,s.useCallback)((e,t)=>{g(n=>{let i=new Map(n);return i.set(e,{id:e,...t}),i})},[]),C=(0,s.useCallback)(async(e,t)=>{var l;let a=null==n||null==(l=n.drop_profile)?void 0:l.id;if((null==n?void 0:n.id)&&a&&!i)try{let i=await c(),l=await p.mutateAsync({drop_id:n.id,drop_profile_id:a,filename:e.name,ct__:i});if(!l)return void y(t,{filename:e.name,status:"failed"});let r=u();return y(t,{filename:e.name,status:"loading"}),await (0,ex.GR)(e,l.asset.upload_url,n=>y(t,{filename:e.name,status:"loading",uploadProgress:n}),{requestHeaders:[{name:"X-Goog-Content-Length-Range",value:"0,".concat(0x40000000)}]}),await m.mutateAsync({drop_profile_id:a,drop_id:n.id,drop_signup_fan_asset_id:l.drop_signup_fan_asset_id,ct__:await r}),y(t,{filename:e.name,fanAssetId:l.drop_signup_fan_asset_id,status:"success"}),l.drop_signup_fan_asset_id}catch(n){y(t,{filename:e.name,status:"failed"});return}},[p,m,c,null==n||null==(t=n.drop_profile)?void 0:t.id,null==n?void 0:n.id,i,u,y]),_=(0,s.useCallback)(async e=>{if(k&&!i&&!(v<=0))for(let t of e.slice(0,v)){let e=(0,eh.A)();if(t.size>0x40000000){y(e,{filename:t.name,status:"failed",error:a("dropSignupForm.submitContent.fileLimit",{fileSize:(0,B.sn)(0x40000000,0)})});continue}y(e,{filename:t.name,status:"loading"});let n=await C(t,e);n&&l(e=>[...null!=e?e:[],n])}},[k,i,v,y,l,a,C]);return{enabled:k,entries:b,remainingSlots:v,maxFiles:5,maxFileSizeBytes:0x40000000,acceptedFileTypes:ep,isPreview:!!i,addFiles:_,remove:(0,s.useCallback)(e=>{let t=h.get(e);t&&"loading"!==t.status&&(g(t=>{let n=new Map(t);return n.delete(e),n}),t.fanAssetId&&l(e=>null==e?void 0:e.filter(e=>e!==t.fanAssetId)))},[h,l]),turnstile:{ref:r,resolve:d,requestNew:o}}})({drop:l,isPreview:i,setFanAssetIds:q.setDropSignupFanAssetIds}),{formData:Z,dropSignupFanAssetIds:G,selectedSignupMethod:Y,setSelectedSignupMethod:K,isOptInCheckboxChecked:J,isPrizeTermsCheckboxChecked:X,availableSignupMethods:ee,showEmailInput:et,showTextInput:en,showWhatsAppInput:ei,isRSVPButtonDisabled:el,setFormData:er}=q,{mutateAsync:eo,isPending:ed}=(()=>{let e=(0,es.lr)();return(0,em.n)({mutationFn:t=>{let{body:n,cobrandToken:i,turnstileToken:l}=t;return e(P.vL.subscribe(),{method:"POST",body:JSON.stringify(n),headers:{[v.rK]:i,[v.C3]:l}})}})})(),{mutateAsync:ec,isPending:eu}=(()=>{let e=(0,es.lr)();return(0,em.n)({mutationFn:t=>{let{body:n,turnstileToken:i}=t;return e(P.vL.requestOtp(),{method:"POST",body:JSON.stringify(n),headers:{[v.sl]:i||""}})}})})(),ev=(0,s.useRef)(),{isLoading:ek}=((e,t)=>{let{enabled:n}
1=t,[i,l]=(0,s.useState)(!1),a=(0,es.lr)({includeHost:!1});return(0,s.useEffect)(()=>{n&&(l(!0),a("".concat(A.x6).concat(P.vL.spotifyAuthLink(null!=e?e:""))).then(e=>{if(e){let t=window.top!==window.self?window.top:window;/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1?t.location.href=e.ios_url:/Android/.test(navigator.userAgent)&&(t.location.href=e.android_url),setTimeout(()=>{t.location.href=e.redirect_url},2e3)}}))},[e,n,a]),{isLoading:i}})(b,{enabled:!!(!i&&b&&(null==l?void 0:l.allow_forever_save)&&j===Q.Spotify)}),{auth:ey,save:eC}=((e,t)=>{let[n,i]=(0,s.useState)(),[l,a]=(0,s.useState)(!1),r=(0,s.useRef)(),o=(0,es.lr)(),d=e.drop_id,c=t.enabled;(0,s.useEffect)(()=>{c&&tu().catch(()=>void 0)},[c]),(0,s.useEffect)(()=>{if(!d||!c)return;let e=!0;return(async()=>{try{let t=await o(P.vL.appleMusicAuth(d),{method:"POST",body:JSON.stringify({drop_id:d})});e&&(null==t?void 0:t.drop_id)===d&&i(t)}catch(t){e&&i(void 0)}})(),()=>{e=!1}},[d,c,o]);let u=n&&n.drop_id===d?n.apple_music_developer_token:void 0;(0,s.useEffect)(()=>{if(!c||!u){r.current=void 0,a(!1);return}let e=!0;return a(!1),(async()=>{await tu(),await window.MusicKit.configure({developerToken:u,app:{name:"Cobrand",icon:"https://storage.googleapis.com/loudly-public/cobrand-app-icon.png"}}),e&&(r.current=u,a(!0))})().catch(()=>{e&&(r.current=void 0,a(!1))}),()=>{e=!1}},[u,c]);let p=(0,es.lr)(),m=(0,s.useCallback)(e=>p(P.vL.saveAppleMusicToken(e.drop_signup_id),{method:"POST",body:JSON.stringify(e)}),[p]),h=(0,s.useCallback)(()=>{Object.keys(localStorage).forEach(e=>{e.startsWith("music.")&&(e.endsWith(".media-user-token")||e.endsWith(".itua")||e.endsWith(".itre"))&&localStorage.removeItem(e)})},[]);return{auth:(0,s.useCallback)(()=>{try{if(h(),!u||r.current!==u||!window.MusicKit)throw Error("Apple Music is still loading. Please try again.");let e=window.MusicKit.getInstance().authorize();return Promise.resolve(e).then(e=>null!=e?e:null)}catch(e){return Promise.reject(e)}},[h,u]),save:(0,s.useCallback)(e=>e.drop_signup_id&&e.apple_music_user_token&&u?m({drop_signup_id:e.drop_signup_id,apple_music_user_token:e.apple_music_user_token,apple_music_developer_token:u}):Promise.resolve(null),[u,m]),isReady:l}})({drop_id:null==l?void 0:l.id},{enabled:!!(!i&&(null==l?void 0:l.allow_forever_save)&&j===Q.AppleMusic)});(0,s.useEffect)(()=>{let e=ee[0];if(!e)return;let t=null==l?void 0:l.id;if(t&&ev.current!==t){ev.current=t,K(e);return}K(t=>ee.includes(t)?t:e)},[ee,null==l?void 0:l.id,K]);let e_=(0,s.useMemo)(()=>{var e;let t=null!=(e=null==l?void 0:l.additional_field_order)?e:x.q1,n=[];for(let e of t)e===x.fg.Instagram&&(null==l?void 0:l.allow_instagram)&&n.push(e8.O.Instagram),e===x.fg.Tiktok&&(null==l?void 0:l.allow_tiktok)&&n.push(e8.O.TikTok);return n},[l]),ew=e_[y],ej=(0,s.useCallback)(e=>{let t=null!=d?d:"";n({drop_signup_apple_music_authentication_id:e,drop_link_collection_link_id:t});let i=new URL(h.getCurrentUrl());i.searchParams.set("drop_signup_apple_music_authentication_id",e),i.searchParams.set("drop_link_collection_link_id",t),h.replaceCurrentUrl(i.toString())},[h,d,n]),eS=(0,s.useCallback)(async(e,n)=>{if(!l)return;let a=(e=>{var t,n,i;let{drop:l,formData:a,searchParams:r,showEmailInput:o,showTextInput:s,showWhatsAppInput:d,platform:c,dropLinkCollectionLinkId:u,otpCode:p,fanAssetIds:m,isOptInCheckboxChecked:h,isSecondaryCheckboxOptInChecked:f,isPrizeTermsCheckboxChecked:g,userAgent:b,referrer:v}=e,k=F({fbclid:r.fbclid,ttclid:r.ttclid}),y=a.username.replace("@","").trim(),C=l.allow_name||(null==l?void 0:l.drop_type)===x.YV.RSVP,_=l.allow_birthdate||(0,th.s3)(l.contest)||(null==(t=l.rsvp_config)?void 0:t.minimum_age)!=null,w=l.allow_location||(0,th.eG)(l.contest),j={drop_profile_id:l.drop_profile?l.drop_profile.id:l.id,drop_id:l.drop_profile?l.id:void 0,drop_link_collection_link_id:u,user_agent:b,referrer:v,utm_source:r.utm_source,utm_medium:r.utm_medium,utm_campaign:r.utm_campaign,utm_term:r.utm_term,utm_content:r.utm_content,fbc:null==k?void 0:k.fbc,tracking_params:k,first_name:C&&a.firstName.trim()?a.firstName.trim():void 0,last_name:C&&a.lastName.trim()?a.lastName.trim():void 0,birthdate:_&&a.birthdate?(0,ea.A)(a.birthdate).format(B.SZ):void 0,gender:l.allow_gender&&null!=(n=a.gender)?n:void 0,language:l.allow_language&&null!=(i=a.language)?i:void 0};
1a.customFieldEntries&&(j.custom_field_entries=a.customFieldEntries),o&&(j.email_address=a.email),s&&(j.phone_number=a.phoneNumber),d&&(j.whatsapp_number=a.whatsAppNumber),c===e8.O.TikTok?j.tiktok_username=y:c===e8.O.Instagram&&(j.instagram_username=y),w&&a.locationDetails&&(j.city=a.locationDetails.city||void 0,j.state=a.locationDetails.state||void 0,j.country_code=a.locationDetails.country_code||void 0,j.latitude=a.locationDetails.latitude||void 0,j.longitude=a.locationDetails.longitude||void 0),p&&(j.otp_code=p),m&&m.length>0&&(j.drop_signup_fan_asset_id__in=m);let S=(e=>{var t,n,i;let{dropProfileOrDrop:l,isOptInCheckboxChecked:a,isSecondaryCheckboxOptInChecked:r,isPrizeTermsCheckboxChecked:o}=e,s=((e,t)=>{let n=e.contest;return n&&t?[{consent_text:(0,tp.xy)(n.prize_terms,n.prize_terms_url)}]:[]})(l,o);if(l.slug===eQ.Bg)return a?[...s,tm({consent_text:(0,tp.F4)(l)},l)]:s;let d=null!=(i=null!=(n=null==(t=l.drop_profile)?void 0:t.title)?n:l.title)?i:"";return"4f4e6251-2a94-4dbc-9bd8-f01badb2778d"===l.enterprise_customer_id?[...s,...(e=>{let{dropProfileOrDrop:t,isOptInCheckboxChecked:n,isSecondaryCheckboxOptInChecked:i}=e,l=[];if(n){var a;l.push(tm({consent_text:(0,tp.dL)(null==(a=t.drop_profile)?void 0:a.title)},t))}return i&&l.push({consent_text:tp.yk}),l})({dropProfileOrDrop:l,isOptInCheckboxChecked:a,isSecondaryCheckboxOptInChecked:r})]:[...s,...(e=>{let{dropProfileOrDrop:t,dropProfileTitle:n,isOptInCheckboxChecked:i}=e,l=!!t.cb_marketing_opt_in_key,a=!!t.contest;if((l||a)&&!i)return[];let r=(0,tp.OW)(n,t.require_checkbox_opt_in||l||a);if(t.additional_legal){let e=t.additional_legal.replace("{{drop_profile_title}}",n);return[tm({consent_text:"".concat(r,"\n").concat(e)},t)]}return[tm({consent_text:r},t)]})({dropProfileOrDrop:l,dropProfileTitle:d,isOptInCheckboxChecked:a})]})({dropProfileOrDrop:l,isOptInCheckboxChecked:h,isSecondaryCheckboxOptInChecked:f,isPrizeTermsCheckboxChecked:g});return S.length>0&&(j.opt_in_metadata=S),j})({drop:l,formData:Z,searchParams:t,showEmailInput:et,showTextInput:en,showWhatsAppInput:ei,platform:ew,dropLinkCollectionLinkId:d,otpCode:e,fanAssetIds:null!=u?u:G,isOptInCheckboxChecked:J,isSecondaryCheckboxOptInChecked:_,isPrizeTermsCheckboxChecked:X,userAgent:h.getUserAgent(),referrer:h.getReferrer()});if(l.require_otp&&!a.otp_code){let e=await R();await ec({body:a,turnstileToken:e});return}if(i||!n)return;var r=a;let o={first_name:r.first_name,last_name:r.last_name,birthdate:r.birthdate,gender:r.gender,language:r.language,email_address:r.email_address,phone_number:r.phone_number,whatsapp_number:r.whatsapp_number,tiktok_username:r.tiktok_username,instagram_username:r.instagram_username,city:r.city,state:r.state,country_code:r.country_code,latitude:r.latitude,longitude:r.longitude};localStorage.setItem(ty.UZ.DropUserData,JSON.stringify(o));let s=eo({body:a,cobrandToken:n.cobrandToken,turnstileToken:n.turnstileTokenForSignup}),[c,p]=n.appleMusicAuthPromise?await Promise.all([s,n.appleMusicAuthPromise]):[await s,void 0];if(!c)return;if(k(c.id),(e=>{try{var t;let n={content_name:"Cobrand Drop Signup"};"function"==typeof window.fbq&&window.fbq("track","CompleteRegistration",n,e?{eventID:e}:void 0),"function"==typeof(null==(t=window.ttq)?void 0:t.track)&&window.ttq.track("CompleteRegistration",n,e?{event_id:e}:void 0)}catch(e){}})(c.id),E({event:I.SignupComplete}),null==m||m(),null==p?void 0:p.errorMessage)throw Error(p.errorMessage);if(!(null==p?void 0:p.token))return;let f=await eC({drop_signup_id:c.id,apple_music_user_token:p.token});(null==f?void 0:f.apple_music_authentication_id)&&ej(f.apple_music_authentication_id)},[h,ej,R,d,l,G,u,Z,J,i,X,_,m,ec,eC,t,ew,et,en,ei,eo]),eN=(0,s.useCallback)(async e=>{let t;if(i||!l||p||!e&&el())return;E({event:I.SignupButtonClick});let n=!!((null==l?void 0:l.require_otp)&&!e);!n&&(null==l?void 0:l.allow_forever_save)&&j===Q.AppleMusic&&(T(!0),t=ey().then(e=>({token:e})).catch(e=>({token:null,errorMessage:tg(e,e=>g(e))}))),L({type:n?"request_otp":"submit"});try{if(n){await eS(),L({type:"otp_ready"});return}let i=await W();await eS(e,{cobrandToken:h.randomUUID(),turnstileTokenForSignup:i,appleMusicAuthPromise:t}),L({type:"settled"})}catch(t){L({type:"failed",errorMessage:tg(t,e=>g(e)),returnTo:e?$.AwaitingOtp:$.Editing})}finally{var a,r;T(!1),null==(a=D.current)||a.reset(),null==(r=U.current)||r.reset()}},[p,ey,h,W,l,i,el,j,eS,g]),eA=(""!==t.drop_link_collection_link_id||d)&&(void 0===t.drop_link_collection_link_id||d!==t.drop_link_collection_link_id)&&((null==l?void 0:l.allow_forever_save)||!b)&&!r?M.state:$.Complete,eP=(e=>{switch(e){case"requesting_otp":return $.RequestingOtp;case"awaiting_otp":return $.AwaitingOtp;case"submitting":return $.Submitting;case"complete":return $.Complete;case"editing":case"error":return $.Editing;default:return}})(o),eT=i&&eP?eP:eA,eM=i&&("requesting_otp"===o||"submitting"===o)||M.state===$.RequestingOtp||M.state===$.Submitting||ed||ek||N||eu,eF=!i&&M.state===$.RequestingOtp,eL=!i&&M.state===$.Submitting,eI=(0,s.useCallback)(e=>{er(t=>({...t,birthdate:e}))}
1,[er]),eE=ei?x.Jm.WhatsApp:en?x.Jm.Phone:x.Jm.Email,eD=ei?(0,B.gV)(Z.whatsAppNumber):en?(0,B.gV)(Z.phoneNumber):Z.email,eV=(0,s.useCallback)(()=>L({type:"close_otp"}),[]),eB=(0,s.useCallback)(()=>{var e;return null==(e=U.current)?void 0:e.reset()},[]),eO=(0,s.useCallback)(()=>el()||!!p,[p,el]),eR=(0,s.useMemo)(()=>({...q,isSecondaryCheckboxOptInChecked:_,setIsSecondaryCheckboxOptInChecked:w,onChangeBirthdate:eI}),[q,_,eI]),eU=(0,s.useMemo)(()=>({state:eT,submit:eN,closeOtp:eV,isBusy:eM,canSubmit:!el()&&!p,isVerifying:M.state===$.RequestingOtp||M.state===$.Submitting,isSubscribePending:ed,isSubmitDisabled:eO,errorMessage:i&&"error"===o?g("common.somethingWentWrong"):M.errorMessage,otpContactMethod:eE,otpContactInfo:eD,shareUrl:a}),[p,eV,eM,i,el,eO,eD,eE,o,a,eN,g,ed,M.errorMessage,M.state,eT]),ez=(0,s.useMemo)(()=>({otp:{shouldRender:eF,ref:D,resolve:O,requestNew:V},signup:{shouldRender:eL,ref:U,resolve:z,reset:eB}}),[eF,eL,V,eB,O,z]),eW=(0,s.useMemo)(()=>({availablePlatforms:e_,selectedPlatformIndex:y,setSelectedPlatformIndex:C}),[e_,y]),eq=(0,s.useMemo)(()=>({selectedPlatform:j,setSelectedPlatform:S,dropSignupSpotifyUserId:t.drop_signup_spotify_user_id,dropSignupAppleMusicAuthenticationId:t.drop_signup_apple_music_authentication_id}),[t.drop_signup_apple_music_authentication_id,t.drop_signup_spotify_user_id,j]);return(0,s.useMemo)(()=>({form:eR,workflow:eU,turnstile:ez,social:eW,presave:eq,contentSubmission:H}),[H,eR,eq,eW,ez,eU])})({...e,dropProfileOrDrop:t.drop,searchParams:t.searchParams,updateSearchParams:t.updateSearchParams,isPreview:t.isPreview,previewState:t.previewState,publicUrl:t.publicUrl,browserServices:t.services.browser})},tS=(0,s.createContext)(null),tN=(0,s.createContext)(null),tA=(0,s.createContext)(null),tP=(0,s.createContext)(null),tT=(0,s.createContext)(null),tM=(0,s.createContext)(null),tF=(e,t)=>{let n=(0,s.useContext)(e);if(!n)throw Error("".concat(t," must be used inside DropSignupProvider"));return n},tL=e=>{let{children:t,...n}=e,i=tj(n);return(0,l.jsx)(tS.Provider,{value:i.form,children:(0,l.jsx)(tN.Provider,{value:i.workflow,children:(0,l.jsx)(tA.Provider,{value:i.turnstile,children:(0,l.jsx)(tP.Provider,{value:i.social,children:(0,l.jsx)(tT.Provider,{value:i.presave,children:(0,l.jsx)(tM.Provider,{value:i.contentSubmission,children:t})})})})})})},tI=()=>tF(tS,"useDropSignupForm"),tE=()=>tF(tN,"useDropSignupWorkflow"),tD=()=>tF(tT,"useDropSignupPresave"),tV=()=>{let e=tI(),t=tE(),n=tF(tA,"useDropSignupTurnstile"),i=tF(tP,"useDropSignupSocial"),l=tD(),a=tF(tM,"useDropSignupContentSubmission");return(0,s.useMemo)(()=>({form:e,workflow:t,turnstile:n,social:i,presave:l,contentSubmission:a}),[a,e,l,i,n,t])};var tB=n(57584);let tO=e0.z.nativeEnum(r.vi),tR=e0.z.nativeEnum(r.hu),tU=e0.z.nativeEnum(r.Io),tz=e0.z.nativeEnum(r._V),tW=e0.z.nativeEnum(r.a0),tq=e0.z.nativeEnum(r.t_),tH=e0.z.nativeEnum(r.LB),tZ=e0.z.nativeEnum(r.B3),tG=e0.z.nativeEnum(r.pR),tY=e0.z.nativeEnum(r.FL),tK=e0.z.nativeEnum(r.xQ),tJ=e0.z.nativeEnum(r.p5),tQ=e0.z.nativeEnum(r.iM),t$=e0.z.nativeEnum(r.NS),tX=e0.z.nativeEnum(r.uH),t1=e0.z.nativeEnum(r.C4),t0=e0.z.nativeEnum(r.HU),t2=e0.z.nativeEnum(r.Jh),t6=e0.z.nativeEnum(x.Jm),t9=e0.z.nativeEnum(ek),t4=e0.z.nativeEnum(ey),t5=e0.z.nativeEnum(Q),t8=e0.z.nativeEnum(e8.O),t3=e0.z.string(),t7=e0.z.union([e0.z.string(),e0.z.number(),e0.z.array(e0.z.string()),e0.z.undefined()]),ne=e0.z.nativeEnum(x.Zc).optional(),nt=e0.z.nativeEnum(x.cM).optional(),nn=e0.z.object({city:e0.z.string().nullable(),state:e0.z.string().nullable(),country_code:e0.z.string().nullable(),latitude:e0.z.number().nullable(),longitude:e0.z.number().nullable(),timezone:e0.z.string().nullable()}).optional(),ni={[tb.Email]:r.aC.Email,[tb.Phone]:r.aC.Phone,[tb.WhatsApp]:r.aC.WhatsApp,[tb.FirstName]:r.aC.FirstName,[tb.LastName]:r.aC.LastName,[tb.Birthdate]:r.aC.Birthdate,[tb.Gender]:r.aC.Gender,[tb.Location]:r.aC.Location,[tb.Language]:r.aC.Language,[tb.PresavePlatform]:r.aC.PresavePlatform,[tb.SocialUsername]:r.aC.SocialUsername,[tb.ContentSubmission]:r.aC.ContentSubmission,[tb.Custom]:r.aC.Custom},nl=e=>tO.parse(e),na=e=>({id:e.id,category:tR.parse(e.category),thumbnailUrl:e.thumbnail_url,playCount:e.play_count,createdAt:e.created_at}),nr="1 (702) 123-4567",no=Array.from(X.h.entries()).flatMap(e=>{let[t,n]=e,i=X.C6.get(n);return i?[{code:n.toLowerCase(),label:t,dialCode:i}]:[]}).sort((e,t)=>
1e.label.localeCompare(t.label)),ns={[x.hc.MULTIPLE_CHOICE]:r.by.MultipleChoice,[x.hc.STRING]:r.by.Text,[x.hc.INTEGER]:r.by.Number,[x.hc.DATE]:r.by.Date},nd=(e,t)=>({date:e("dropRSVP.date"),time:e("dropRSVP.time"),location:e("dropRSVP.location"),ageRestriction:e("dropRSVP.ageRestriction"),age:t?e("dropRSVP.minimumAge",{age:t}):e("dropRSVP.allAges")}),nc=e=>{let{siteKeys:t}=e,{turnstile:n,contentSubmission:i}=tV(),a=eK(),{isPreview:r}=eJ(),o=a.fanFeed.upload;return(0,l.jsxs)("div",{"data-cobrand-runtime":"turnstile",style:{bottom:0,position:"fixed",right:0,zIndex:0x7fffffff},children:[n.otp.shouldRender?(0,l.jsx)(b.Xs,{ref:n.otp.ref,siteKey:t.otp,onSuccess:n.otp.resolve,onTimeout:n.otp.requestNew,onExpire:n.otp.requestNew,options:{retryInterval:5e3}}):null,n.signup.shouldRender?(0,l.jsx)(b.Xs,{ref:n.signup.ref,siteKey:t.signup,onSuccess:n.signup.resolve,onTimeout:n.signup.reset,onExpire:n.signup.reset,options:{retryInterval:5e3}}):null,!i.enabled||o.isOpen||r?null:(0,l.jsx)(b.Xs,{ref:i.turnstile.ref,siteKey:t.upload,onSuccess:i.turnstile.resolve,onTimeout:i.turnstile.requestNew,onExpire:i.turnstile.requestNew,options:{retryInterval:5e3}}),o.isOpen&&!r?(0,l.jsx)(b.Xs,{ref:o.session.turnstileRef,siteKey:t.upload,onSuccess:o.session.resolveTurnstileTokenPromise,onTimeout:o.session.requestNewTurnstileToken,onExpire:o.session.requestNewTurnstileToken,options:{retryInterval:5e3}}):null]})},nu=e=>{var t;let{children:n,turnstileSiteKeys:i}=e,a=eK(),r=eJ();return(0,l.jsxs)(tL,{showPostSignUp:r.showPostSignUp,dropLinkCollectionLinkId:null==(t=a.signup.selectedCollectionLink)?void 0:t.id,presavePlatform:a.presave.selectedPlatform,externalFanAssetIds:a.fanFeed.upload.isOpen?a.fanFeed.upload.session.successfulFanAssetIds:void 0,additionalSubmitDisabled:a.lifecycle.isEnded||a.fanFeed.upload.isOpen&&(a.fanFeed.upload.session.isUploading||a.fanFeed.upload.hasFailure||0===a.fanFeed.upload.session.successfulFanAssetIds.length),onSignupComplete:a.fanFeed.upload.isOpen?a.fanFeed.upload.markSignupComplete:void 0,children:[(0,l.jsx)(nc,{siteKeys:null!=i?i:r.turnstileSiteKeys}),n]})},np=e=>{let{previewRSVP:t,children:n}=e,{drop:i,searchParams:a,isPreview:r}=eY(),o=(null==i?void 0:i.drop_type)===x.YV.RSVP;return(0,l.jsx)(td,{token:o?a.token:void 0,previewRSVP:o?t:null,isPreview:r,children:n})},nm=e=>{let{drop:t,searchParams:n,isPreview:i=!1,formOnly:a=!1,showPostSignUp:r=!1,previewState:o,enableTracking:s=!0,publicUrl:d,turnstileSiteKeys:c,previewRSVP:u,children:p}=e;return(0,l.jsxs)(eG,{drop:t,searchParams:n,isPreview:i,formOnly:a,showPostSignUp:r,previewState:o,enableTracking:s&&!i,publicUrl:d,turnstileSiteKeys:c,children:[(0,l.jsx)(e1,{}),(0,l.jsx)(nu,{turnstileSiteKeys:c,children:(0,l.jsx)(np,{previewRSVP:u,children:p})})]})},nh=e=>{let{bridge:t,children:n}=e,i=(()=>{var e,t;let n=eJ(),i=n.services.browser,l=n.page,a=tV(),o=(()=>{let{drop:e,isPreview:t,navigate:n,services:i}=eY(),l=tI(),a=tE(),r=tD(),{t:o}=(0,f.Bd)(),[d,c]=(0,s.useState)(!1),u=(0,s.useRef)(),p=!!((null==e?void 0:e.cb_marketing_opt_in_key)&&!l.isOptInCheckboxChecked),m=(0,s.useMemo)(()=>(e=>{let{drop:t,selectedSignupMethod:n,isOptedOutOfMarketing:i,translate:l}=e;if(i)return l("dropPostSignup.submitted");let a=Z(null==t?void 0:t.id).message;if(a)return a;switch(null==t?void 0:t.confirmation_message_contact_preference){case x.aM.SMS_OR_WHATSAPP_AND_EMAIL:if(n===x.Jm.Email)return l("dropPostSignup.checkEmail");if(n===x.Jm.WhatsApp)return l("dropPostSignup.checkWhatsApp");return l("dropPostSignup.checkText");case x.aM.ONLY_EMAIL:return l("dropPostSignup.checkEmail");case x.aM.ONLY_SMS_OR_WHATSAPP:if(n===x.Jm.WhatsApp||t.require_both_sms_and_email&&!t.allow_sms)return l("dropPostSignup.checkWhatsApp");return l("dropPostSignup.checkText");default:return l("dropPostSignup.submitted")}})({drop:e,selectedSignupMethod:l.selectedSignupMethod,isOptedOutOfMarketing:p,translate:e=>o(e)}),[e,l.selectedSignupMethod,p,o]);(0,s.useEffect)(()=>{let l=null==e?void 0:e.post_signup_redirect_url;!t&&l&&a.state===$.Complete&&(i.browser.isEmbedded()?i.browser.openExternal(l):n(l))},[null==e?void 0:e.post_signup_redirect_url,t,n,i,a.state]),(0,s.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]);let h=(0,s.useCallback)(async()=>{await i.browser.copyText(a.shareUrl),c(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(!1),1e3)},[i,a.shareUrl]),g=Z(null==e?void 0:e.id),b=g.shareVariant,v=b===q.FredAgainCashApp?{...H,open:()=>i.browser.openExternal(H.destinationUrl)}:void 0,k=!!((null==e?void 0:e.confirmation_message_contact_preference)!==x.aM.DO_NOT_SEND||p||g.forceConfirmation),y=t&&(null==e?void 0:e.allow_forever_save)||r.dropSignupSpotifyUserId?"spotify":r.dropSignupAppleMusicAuthenticationId?"apple_music":void 0;return{confirmationMessage:m,shouldShowConfirmation:k,useCompactConfirmation:g.compact,share:{url:a.shareUrl,variant:b,copied:d,copy:h},promotion:v,presaveService:y}})(),d=tc(),{t:c,i18n:u}=(0,f.Bd)(),p=ta(null!=(t=null==(e=l.definition)?void 0:e.contest)?t:null),[m,h]=(0,s.use
1State)();(0,s.useEffect)(()=>{h((0,B.Ss)())},[]);let[g,b]=(0,s.useState)([]),[v,k]=(0,s.useState)(!1),y=(0,s.useRef)(null),C=(0,s.useRef)(e5()(async e=>{var t;null==(t=y.current)||t.abort();let n=new AbortController;y.current=n;try{let t=await (0,tB.X)(e,n.signal);b(t),k(!1)}catch(e){e instanceof DOMException&&"AbortError"===e.name||(b([]),k(!1))}},500)).current;(0,s.useEffect)(()=>()=>{var e;C.cancel(),null==(e=y.current)||e.abort()},[C]);let _=(0,s.useCallback)(e=>{var t;let n=e.trim();if(null==(t=y.current)||t.abort(),n.length<3){C.cancel(),b([]),k(!1);return}k(!0),C(n)},[C]),w=a.form.definition.fields.map(e=>{var t,i,l,r;let o=(()=>{switch(e.kind){case tb.Custom:return e.customField?a.form.getCustomFieldValue(e.customField,e.key):void 0;case tb.PresavePlatform:return t$.parse(a.presave.selectedPlatform);case tb.Email:return a.form.formData.email;case tb.Phone:return a.form.formData.phoneNumber;case tb.WhatsApp:return a.form.formData.whatsAppNumber;case tb.FirstName:return a.form.formData.firstName;case tb.LastName:return a.form.formData.lastName;case tb.Birthdate:return a.form.formData.birthdate;case tb.Gender:return a.form.formData.gender;case tb.Location:return a.form.formData.locationDetails?(e=>e9.parse(JSON.parse(JSON.stringify(null!=e?e:{}))))(a.form.formData.locationDetails):void 0;case tb.Language:return a.form.formData.language;case tb.SocialUsername:return a.form.formData.username;case tb.ContentSubmission:return}})(),s=(e=>{switch(e.kind){case tb.Email:return{label:c("dropSignupForm.signupMethod.emailAddress"),placeholder:c("dropSignupForm.signupMethod.emailAddressPlaceholder")};case tb.Phone:return{label:c("dropSignupForm.signupMethod.phoneNumber"),placeholder:nr};case tb.WhatsApp:return{label:c("dropSignupForm.signupMethod.whatsappNumber"),placeholder:nr};case tb.FirstName:return{label:c("dropSignupForm.signupMethod.firstName"),placeholder:c("dropSignupForm.signupMethod.firstNamePlaceholder")};case tb.LastName:return{label:c("dropSignupForm.signupMethod.lastName"),placeholder:c("dropSignupForm.signupMethod.lastNamePlaceholder")};case tb.Birthdate:return{label:c("dropSignupForm.signupMethod.birthdate"),placeholder:tv.k};case tb.Gender:return{label:c("dropSignupForm.signupMethod.gender")};case tb.Location:return{label:c("dropSignupForm.signupMethod.city")};case tb.Language:return{label:c("dropSignupForm.signupMethod.language")};case tb.PresavePlatform:return{label:c("dropSignupForm.signupMethod.streamingPlatform")};case tb.SocialUsername:return{label:"Social username",placeholder:"@username"};case tb.ContentSubmission:return{label:"Upload content"};case tb.Custom:var t;return{label:(null==(t=e.customField)?void 0:t.label)||"Question"}}})(e);return{definition:{key:e.key,kind:ni[e.kind],required:e.required,label:s.label,placeholder:s.placeholder,format:e.kind===tb.Birthdate?tv.k:void 0,options:(e=>{var t,n;let{kind:i}=e;return i===tb.Gender?[{value:x.Zc.Male,label:c("dropSignupForm.gender.male")},{value:x.Zc.Female,label:c("dropSignupForm.gender.female")},{value:x.Zc.Unspecified,label:c("dropSignupForm.gender.unspecified")}]:i===tb.Language?Object.values(x.cM).map(e=>({value:e,label:x.ix[e]})):i===tb.Custom&&(null==(t=e.customField)?void 0:t.field_type)===x.hc.MULTIPLE_CHOICE?(null!=(n=e.customField.multiple_choice_options)?n:[]).filter(e=>!1!==e.enabled).map((e,t)=>{var n;return{value:e.id||e.drop_profile_custom_field_option_id||String(null!=(n=e.sort_order)?n:t),label:e.label}}):void 0})(e),customField:e.customField?{type:ns[e.customField.field_type],maxSelections:null!=(r=null!=(l=null==(t=e.customField.drop_profile_custom_field)?void 0:t.max_selections_default)?l:e.customField.max_selections)?r:1}:void 0},value:o,error:((e,t,n)=>{if(void 0!==t&&""!==t){if(e===tb.Email)return(0,e3.Bj)(String(t)).message;if(e===tb.Phone||e===tb.WhatsApp)return(0,e3.U1)(String(t)).message;if(e===tb.Birthdate){let e=String(t);return e.length<tv.k.length?void 0:(0,ea.A)(e,tv.k,!0).isValid()?(0,th.Fh)(n,e)?(0,e3.sD)(tv.k)(e).isValid?void 0:"Enter a date of birth between ".concat(e3.Ng," and ").concat(e3.Nj," years ago."):"You must be ".concat(null==n?void 0:n.minimum_age," or older to enter."):"Enter a date as ".concat(tv.k,".")}if(e===tb.Location){let e=null==t?void 0:t.country_code;return(0,th.oy)(n,e)?void 0:"This contest isn't open in the country you selected."}}})(e.kind,o,null==(i=n.drop)?void 0:i.contest),setValue:t=>{switch(e.kind){case tb.Custom:e.customField&&a.form.setCustomFieldValue(e.customField,t7.parse(t),e.key);return;case tb.PresavePlatform:a.presave.setSelectedPlatform(t5.parse(t));return;case tb.Birthdate:a.form.onChangeBirthdate(t3.parse(t));return;case tb.Email:a.form.setFieldValue("email",t3.parse(t));return;case tb.Phone:a.form.setFieldValue("phoneNumber",t3.parse(t));return;case tb.WhatsApp:a.form.setFieldValue("whatsAppNumber",t3.parse(t));return;case tb.FirstName:a.form.setFieldValue("firstName",t3.parse(t));return;case tb.LastName:a.form.setFieldValue("lastName",t3.parse(t));return;case tb.Gender:a.form.setFieldValue("gender",ne.parse(t));return;
1case tb.Location:a.form.setFieldValue("locationDetails",nn.parse(t));return;case tb.Language:a.form.setFieldValue("language",nt.parse(t));return;case tb.SocialUsername:a.form.setFieldValue("username",t3.parse(t));return;case tb.ContentSubmission:return}}}}),j=l.definition,N=!!(null==j?void 0:j.contest)&&p!==ti.Open;return(0,s.useMemo)(()=>{var e,t,s,h,f,k,y,C,A,P,T,M,F,L,I,E,D,V,O,R,U,z;let W=null==(e=l.signup.selectedCollectionLink)?void 0:e.id,q=W&&null!=(P=null==j?void 0:j.collectionLinks.find(e=>e.id===W))?P:l.signup.selectedCollectionLink,H=((e,t)=>{if(t){let n=e.filter(e=>e.drop_link_collection_link_id===t);if(n.length>0)return el(n)}return el(e.filter(e=>!e.drop_link_collection_link_id))})(null!=(T=null==j?void 0:j.blocks.postSignup)?T:[],null==q?void 0:q.id),Z=null==(F=null!=(M=null==q?void 0:q.show_post_signup_share)?M:null==(t=n.drop)?void 0:t.show_post_signup_share)||F,G=e=>{let t=new Map((null!=e?e:[]).flatMap(e=>e.items).map(e=>[e.id,e]));return(e=>(null!=e?e:[]).filter(e=>!e.hidden).map(e=>{var t;return{id:e.id,position:(e=>{switch(e){case S.s6.AboveForm:return r.W6.AboveForm;case S.s6.LinkInBio:return r.W6.LinkInBio;case S.s6.PostSignup:return r.W6.PostSignup;default:return r.W6.BelowForm}})(e.position),title:e.title||void 0,titleAlignment:te(e.title_alignment),items:(null!=(t=e.items)?t:[]).filter(e=>!e.hidden).map(tn).filter(e=>null!==e)}}).filter(e=>e.items.length>0))(e).map(e=>({...e,items:e.items.map(e=>{let n=t.get(e.id);return e.kind!==r.W5.Song||(null==n?void 0:n.item_type)!==S.VK.Song?e:{...e,links:l.blocks.getSongLinks(n).map(e=>({platform:String(e.platform).toLowerCase()}))}})}))};return{page:{isPreview:n.isPreview,definition:{primaryCapability:tU.parse(null!=(L=null==j?void 0:j.primaryCapability)?L:r.Io.Signup),countdownAt:null!=(I=null==j?void 0:j.countdownAt)?I:void 0,formLayout:tz.parse(null!=(E=null==j?void 0:j.formLayout)?E:r._V.Expanded),hero:{...null!=(D=null==j?void 0:j.hero)?D:{title:"",description:"",imageUrl:"",hideImage:!1,hideArtistImage:!1},...d.isActive?{title:(null==(h=n.drop)||null==(s=h.rsvp_config)?void 0:s.title)||(null==j?void 0:j.hero.title)||"",description:null!=(V=null==(k=n.drop)||null==(f=k.rsvp_config)?void 0:f.description)?V:""}:{}},signup:null!=(O=null==j?void 0:j.signup)?O:{},socialLinks:(null!=(R=null==j?void 0:j.socialLinks)?R:[]).map(e=>({platform:String(e.platform)})),listeningLinks:l.listening.links.map(e=>{var t;return{platform:String(null!=(t=e.platform)?t:"")}}),presaveLinks:l.presave.links.map(e=>{var t;return{platform:String(null!=(t=e.link.platform)?t:""),action:tW.parse(e.action.kind),isComplete:e.isCompleteFromCallback}}),collectionLinks:l.collection.links.map(e=>{var t,n,i;return{title:e.link.title,subtitle:null!=(t=e.link.subtitle_one)?t:void 0,eventAt:null!=(i=null!=(n=e.link.event_date)?n:e.link.event_at)?i:void 0,isSoldOut:!!e.link.is_call_to_action_disabled,isNearby:e.isNearby,action:tW.parse(e.action.kind),buttonText:e.action.kind===eD.Signup?e.link.custom_signup_button_text||"Sign Up":e.link.call_to_action,hasDestination:e.action.kind===eD.Signup||!!e.action.destinationUrl}}),blocks:{aboveForm:G(null==j?void 0:j.blocks.aboveForm),belowForm:G(null==j?void 0:j.blocks.belowForm),linkInBio:G(null==j?void 0:j.blocks.linkInBio),postSignup:G(H)},contest:(null==j?void 0:j.contest)?{...j.contest,phase:tH.parse(p),copy:((e,t,n,i)=>{let l=e=>"**".concat((0,B.C_)(e,null!=n?n:"UTC",i),"**");return{details:e("dropContest.details"),startsIn:e("dropContest.startsIn"),timeLeftToEnter:e("dropContest.timeLeftToEnter"),ended:e("dropContest.ended"),window:n?t.endsAt?e("dropContest.openBetween",{opens:l(t.startsAt),closes:l(t.endsAt)}):e("dropContest.opens",{opens:l(t.startsAt)}):"",countdown:{days:e("countdownTimer.days"),hours:e("countdownTimer.hrs"),minutes:e("countdownTimer.mins"),seconds:e("countdownTimer.secs")}}})(c,j.contest,m,u.resolvedLanguage||"en")}:null,rsvp:(null==j?void 0:j.rsvp)?{...j.rsvp,copy:nd(c,j.rsvp.minimumAge)}:null},theme:{isDark:l.theme.isDark,backgroundColor:l.theme.backgroundColor,backgroundImageUrl:l.theme.backgroundImageUrl,primaryColor:l.theme.primaryColor,primaryForeground:l.theme.primaryForeground,primaryPalette:l.theme.primaryPalette},lifecycle:{...l.lifecycle,phase:tq.parse(l.lifecycle.phase)},branding:{showCobrandLogo:l.branding.showCobrandLogo},signup:{isOpen:l.signup.isOpen,source:tZ.optional().parse(l.signup.source),shouldShowGeneralPrompt:(null==j?void 0:j.formLayout)!==x.Ss.HIDDEN&&((null==j?void 0:j.primaryCapability)===en.Listening||(null==j?void 0:j.primaryCapability)===en.LinkInBio||(null==j?void 0:j.primaryCapability)===en.LinkCollection&&l.collection.shouldShowGeneralSignup),shouldShowModalHeader:l.signup.shouldShowModalHeader,modalTitle:(null==(y=l.signup.selectedCollectionLink)?void 0:y.title)||(null==j?void 0:j.signup.title)||void 0,modalDe
1scription:(null==(C=l.signup.selectedCollectionLink)?void 0:C.subtitle_one)||(null==j?void 0:j.signup.description)||void 0,modalImageUrl:l.signup.modalImageUrl,submitButtonText:(null==(A=l.signup.selectedCollectionLink)?void 0:A.custom_signup_button_text)||(null==j?void 0:j.signup.buttonText)||void 0,open:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.B3.General;switch(e){case r.B3.Listening:l.signup.openListening();return;case r.B3.LinkCollection:l.signup.openCollection();return;case r.B3.LinkInBio:l.signup.openLinkInBio();return;default:l.signup.openGeneral()}},close:l.signup.close},social:{activate:e=>{let t=null==j?void 0:j.socialLinks[e];(null==t?void 0:t.url)&&i.openExternal(t.url)}},listening:{activate:e=>{let t=l.listening.links[e];t&&(l.listening.trackClick(t),i.openExternal(t.destination_url))}},presave:{activate:e=>{let t=l.presave.links[e];t&&(l.presave.activate(t),t.action.kind===eV.Navigate&&t.action.destinationUrl&&i.openExternal(t.action.destinationUrl))}},collection:{activate:e=>{let t=l.collection.links[e];t&&(l.collection.activate(t),t.action.kind===eD.Navigate&&t.action.destinationUrl&&i.openExternal(t.action.destinationUrl))}},blocks:{activate:e=>{let t,n=[[r.W6.AboveForm,null==j?void 0:j.blocks.aboveForm],[r.W6.BelowForm,null==j?void 0:j.blocks.belowForm],[r.W6.LinkInBio,null==j?void 0:j.blocks.linkInBio],[r.W6.PostSignup,null==j?void 0:j.blocks.postSignup]],a=r.W6.BelowForm;for(let[i,l]of n){let n=null==l?void 0:l.flatMap(e=>e.items).find(t=>t.id===e);if(n){a=i,t=n;break}}if(t){var o;l.blocks.activate(t,a===r.W6.LinkInBio?eE.LinkInBio:eE.Block);let e=t.item_type===S.VK.Shopify?null==(o=l.blocks.shopify.get(t))?void 0:o.destinationUrl:t.item_type===S.VK.Ticket?t.ticket_purchase_link:void 0;e&&i.openExternal(e)}},selectedItem:l.blocks.selectedItem&&null!=(U=tn(l.blocks.selectedItem))?U:void 0,shopifyByItemId:Object.fromEntries([...l.blocks.shopify.productsByItem].map(e=>{let[t,n]=e;return[t.id,{imageSrc:n.imageSrc,title:n.title,description:n.description,canActivate:!!n.destinationUrl,isLoading:n.isLoading}]})),activateSongLink:(e,t)=>{let n=[[r.W6.AboveForm,null==j?void 0:j.blocks.aboveForm],[r.W6.BelowForm,null==j?void 0:j.blocks.belowForm],[r.W6.LinkInBio,null==j?void 0:j.blocks.linkInBio],[r.W6.PostSignup,null==j?void 0:j.blocks.postSignup]].map(t=>{let[n,i]=t;return{position:n,item:null==i?void 0:i.flatMap(e=>e.items).find(t=>t.id===e)}}).find(e=>{var t;return(null==(t=e.item)?void 0:t.item_type)===S.VK.Song});if(!(null==n?void 0:n.item))return;let a=n.item,o=l.blocks.getSongLinks(a)[t];(null==o?void 0:o.destination_url)&&(l.blocks.track(a,n.position===r.W6.LinkInBio?eE.LinkInBio:eE.Block,o.destination_url),i.openExternal(o.destination_url))},openSelectedMedia:()=>{let e=l.blocks.selectedItem;if(!e)return;let t="external_asset_url"in e?e.external_asset_url:void 0;t&&(l.blocks.track(e,eE.Block,t),i.openExternal(t))},close:l.blocks.closeItem},fanFeed:{enabled:l.fanFeed.enabled,activePageTab:tG.parse(l.fanFeed.activePageTab),setActivePageTab:e=>l.fanFeed.setActivePageTab(t9.parse(e)),activeSort:tY.parse(l.fanFeed.activeSort),setActiveSort:e=>l.fanFeed.setActiveSort(t4.parse(e)),items:l.fanFeed.items.map(na),trendingItems:l.fanFeed.trendingItems.map(na),displayedItems:l.fanFeed.displayedItems.map(na),isLoading:l.fanFeed.isLoading,upload:{isOpen:l.fanFeed.upload.isOpen,isSignupComplete:l.fanFeed.upload.isSignupComplete,phase:tK.parse(l.fanFeed.upload.phase),entries:l.fanFeed.upload.session.items.map(e=>({id:e.id,filename:e.filename,previewUrl:e.previewUrl,isVideo:e.isVideo,status:e0.z.enum(["loading","failed","success"]).parse(e.status.toLowerCase()),error:e.error,progress:e.progress})),successCount:l.fanFeed.upload.successCount,hasFailure:l.fanFeed.upload.hasFailure,isUploading:l.fanFeed.upload.session.isUploading,canSelectFiles:l.fanFeed.upload.canSelectFiles,acceptedFileTypes:l.fanFeed.upload.acceptedFileTypes,maxFiles:l.fanFeed.upload.maxFiles,remainingSlots:l.fanFeed.upload.session.remainingSlots,selectFiles:l.fanFeed.upload.selectFiles,remove:l.fanFeed.upload.remove,retry:l.fanFeed.upload.session.retryItem,close:l.fanFeed.upload.close},signup:l.fanFeed.signup,player:{isOpen:l.fanFeed.player.isOpen,selectedIndex:l.fanFeed.player.selectedIndex,activeIndex:l.fanFeed.player.activeIndex,setActiveIndex:l.fanFeed.player.setActiveIndex,open:l.fanFeed.player.open,close:l.fanFeed.player.close,title:l.fanFeed.player.title,subtitle:l.fanFeed.player.subtitle,canOpenSpotify:!!l.fanFeed.player.spotifyUrl,mediaUrls:l.fanFeed.player.media.mediaUrls,erroredIds:l.fanFeed.player.media.erroredIds,retryMedia:e=>{let t=l.fanFeed.displayedItems.find(t=>
1t.id===e.id);t&&l.fanFeed.player.media.retry(t)},trackMedia:e=>l.fanFeed.player.trackMedia(e.id),linkCopied:l.fanFeed.player.media.linkCopied,copyShareUrl:l.fanFeed.player.media.copyShareUrl,openSpotify:l.fanFeed.player.openSpotify}},rsvpInvitation:d.isActive?{phase:t2.parse(d.phase),blockedMessage:d.blockedMessage,event:d.event?{...d.event,copy:nd(c,d.event.minimumAge)}:void 0,respondBy:d.respondBy,guests:d.guests,age:d.age,canAccept:d.canAccept,canDecline:d.canDecline,isBusy:d.isBusy,isAccepting:d.isAccepting,isDeclining:d.isDeclining,accept:d.accept,decline:d.decline,declineConfirmation:d.declineConfirmation,errorMessage:d.errorMessage,isPreview:d.isPreview,copy:d.copy}:null},signup:{form:{fields:w,consent:{...a.form.definition.consent,mode:tJ.parse(a.form.definition.consent.mode),primary:{visible:a.form.definition.consent.primary.visible,required:a.form.definition.consent.primary.required,displayText:null!=(z=a.form.definition.consent.primary.displayText)?z:a.form.definition.consent.primary.recordedText}},selectedContactMethod:nl(a.form.selectedSignupMethod),availableContactMethods:a.form.availableSignupMethods.map(nl),contactMethodOrder:a.form.definition.contactMethodOrder.map(nl),forceEmailPlusMessagingChoice:a.form.forceEmailPlusMessagingChoice,showContactMethodSelector:a.form.showSignupMethodOptionsPicker,setSelectedContactMethod:e=>a.form.setSelectedSignupMethod(t6.parse(e)),phone:{countries:no,defaultCountryCode:a.form.defaultPhoneCountryCode.toLowerCase()},primaryConsentChecked:a.form.isOptInCheckboxChecked,setPrimaryConsentChecked:a.form.setIsOptInCheckboxChecked,secondaryConsentChecked:a.form.isSecondaryCheckboxOptInChecked,prizeTermsConsentChecked:a.form.isPrizeTermsCheckboxChecked,setPrizeTermsConsentChecked:a.form.setIsPrizeTermsCheckboxChecked,setSecondaryConsentChecked:a.form.setIsSecondaryCheckboxOptInChecked},workflow:{state:tQ.parse(a.workflow.state),submit:N?async()=>void 0:a.workflow.submit,closeOtp:a.workflow.closeOtp,isBusy:a.workflow.isBusy,canSubmit:a.workflow.canSubmit&&!N,errorMessage:a.workflow.errorMessage,otpContactMethod:nl(a.workflow.otpContactMethod),otpContactInfo:a.workflow.otpContactInfo,shareUrl:a.workflow.shareUrl},presave:{selectedPlatform:t$.parse(a.presave.selectedPlatform),setSelectedPlatform:e=>a.presave.setSelectedPlatform(t5.parse(e)),isPlatformLocked:!!l.presave.selectedPlatform},socialUsername:{availablePlatforms:a.social.availablePlatforms.map(e=>tX.parse(e)),selectedPlatform:tX.optional().parse(a.social.availablePlatforms[a.social.selectedPlatformIndex]),setSelectedPlatform:e=>{let t=a.social.availablePlatforms.indexOf(t8.parse(e));t>=0&&a.social.setSelectedPlatformIndex(t)}},location:{suggestions:g.map((e,t)=>({id:String(t),title:e.title,description:e.description,label:e.description?"".concat(e.title,", ").concat(e.description):e.title})),isSearching:v,search:_,select:e=>{let t=g[Number(e)];t&&(a.form.setFieldValue("locationDetails",nn.parse(t.details)),b([]))},clear:()=>{a.form.setFieldValue("locationDetails",void 0),b([])},displayValue:(()=>{let e=a.form.formData.locationDetails;return e?[e.city,e.state,e.country_code].filter(Boolean).join(", "):""})()},contentSubmission:{enabled:a.contentSubmission.enabled,shouldShowPicker:!l.fanFeed.upload.isOpen,entries:a.contentSubmission.entries,remainingSlots:a.contentSubmission.remainingSlots,maxFiles:a.contentSubmission.maxFiles,maxFileSizeBytes:a.contentSubmission.maxFileSizeBytes,acceptedFileTypes:a.contentSubmission.acceptedFileTypes,addFiles:a.contentSubmission.addFiles,remove:a.contentSubmission.remove},rsvp:void 0,completion:{confirmationMessage:o.confirmationMessage,shouldShowConfirmation:o.shouldShowConfirmation,useCompactConfirmation:o.useCompactConfirmation,share:{...o.share,variant:Z?t1.parse(o.share.variant):r.C4.Hidden},promotion:o.promotion?{descriptions:o.promotion.descriptions,actionLabel:o.promotion.actionLabel,open:o.promotion.open}:void 0,presaveService:t0.optional().parse(o.presaveService)}}}},[i,o,p,m,j,N,w,n.drop,n.isPreview,u,d,v,g,l,_,a,c])})();return(0,l.jsx)(t,{host:i,children:n})},nf=e=>{let{children:t,bridge:n=g,...i}=e;return(0,l.jsx)(nm,{...i,children:(0,l.jsx)(nh,{bridge:n,children:t})})};var ng=n(50717),nb=n(82558),nx=n(98431),nv=n(25051),nk=n(49956),ny=n(63752),nC=n(24436),n_=n(10706),nw=n(35983),nj=n(85692);let nS=e=>{let{portalParentRef:t,dropBlockItem:n,onClose:i}=e,{t:o}=(0,f.Bd)(),s=(0,a.W5)();if(n.kind===r.W5.Media){let e=n.assetUrl;return e?(0,l.jsxs)(nw.H,{portalParentRef:t,isOpen:!0,className:"flex h-full flex-col justify-center space-y-4",children:[(0,l.jsx)(ny.e,{className:"justify-end",children:(0,l.jsx)(n_.A,{type:n_._.IconOnly,iconType:nb.A.Close,onClick:i,text:o("common.close")})}),(0,l.jsx)("div",{className:"flex h-[70%] w-full justify-center",children:n.isVideo||n.youtubeVideoId?n.youtubeVideoId?(0,l.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(n.youtubeVideoId),title:o("common.youtubeVideoPlayer"),className:"aspect-video h-auto w-full",allowFullScreen:!0}):(0,l.jsx)("video",{src:e,className:"h-full w-auto object-contain",controls:!0}):(0,l.jsx)("img",{src:n.imageUrl||e,alt:"",className:"h-full w-auto object-contain"})}),(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"text-black dark:text-white",children:n.title}),(0,l.jsx)(nk.E,{typography:nk.o.Caption2,className:"text-black/60 dark:text-white/60",children:n.description})]})]}):null}return n.kind===r.W5.Song?(0,l.jsx)(nw.H,{portalParentRef:t,isOpen:!0,className:"w-full max-w-[345px]",children:(0,l.jsxs)("div",{className:"relative w-full rounded-2xl border border-black/[8
1%] bg-black/[8%] p-6 dark:border-white/[8%] dark:bg-white/[8%]",children:[(0,l.jsx)(n_.A,{type:n_._.IconOnly,iconType:nb.A.Close,onClick:i,className:"absolute right-6 top-6"}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-center space-y-5",children:[(0,l.jsx)(nC.A,{customImageUrl:n.imageUrl,className:"!max-w-[200px]"}),(0,l.jsxs)("div",{className:"space-y-1 text-center",children:[(0,l.jsx)(nk.E,{typography:nk.o.Subheadline,className:"text-black dark:text-white",bold:!0,children:n.title}),(0,l.jsx)(nk.E,{typography:nk.o.Subheadline,className:"text-black/60 dark:text-white/60",children:n.description})]}),(0,l.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"}),(0,l.jsx)("div",{className:"w-full space-y-2",children:n.links.map((e,t)=>(0,l.jsx)(nj.A,{link:{platform:e.platform},onClick:()=>s.blocks.activateSongLink(n.id,t)},"".concat(e.platform,"-").concat(t)))})]})]})}):null};var nN=n(92017),nA=n(22711),nP=n(54997);let nT=e=>{var t,n,i,o;let{dropSignupFormProps:s,portalParentRef:d}=e,{t:c}=(0,f.Bd)(),u=(0,a.W5)();return(0,l.jsxs)(l.Fragment,{children:[u.signup.isOpen&&u.signup.source===r.B3.General?(0,l.jsx)(nP.A,{isOpen:!0,onClose:u.signup.close,title:null==(t=u.definition)?void 0:t.hero.title,description:null==(n=u.definition)?void 0:n.hero.description,dropSignupFormProps:{...s,inModalStyling:!0},portalParentRef:d}):null,(0,l.jsx)(nA.A,{title:(null==(i=u.definition)?void 0:i.signup.title)||c("dropLinkCollection.citySignupTitle"),description:(null==(o=u.definition)?void 0:o.signup.description)||c("dropLinkCollection.citySignupDescription"),buttonText:s.buttonText||c("dropLinkCollection.signUpButton"),buttonOnClick:()=>u.signup.open()})]})};var nM=n(32957);let nF=e=>e.split("**").map((e,t)=>t%2==1?(0,l.jsx)(nk.E,{typography:nk.o.Footnote,bold:!0,className:"!inline text-black dark:text-white",children:e},t):(0,l.jsx)(s.Fragment,{children:e},t)),nL=e=>{let{summary:t,details:n,startsAt:i,endsAt:a}=e,{t:r,i18n:o}=(0,f.Bd)(),[d,c]=(0,s.useState)();(0,s.useEffect)(()=>{c((0,B.Ss)())},[]);let u=e=>(0,B.C_)(e,null!=d?d:"UTC",o.resolvedLanguage||"en"),p=a?r("dropContest.openBetween",{opens:"**".concat(u(i)),closes:"".concat(u(a),"**")}):r("dropContest.opens",{opens:"**".concat(u(i),"**")});return(0,l.jsxs)("div",{className:"space-y-2 rounded-xl bg-black/[6%] p-4 text-center dark:bg-white/[6%]",children:[(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"text-black/60 dark:text-white/60",children:r("dropContest.details")}),(0,l.jsxs)(nk.E,{typography:nk.o.Footnote,className:"text-black/80 dark:text-white/80",children:[t?nF(t):null,t&&d?" ":null,d?nF(p):null]}),n.trim()?(0,l.jsx)(nk.E,{typography:nk.o.Footnote,className:"whitespace-break-spaces text-black/80 dark:text-white/80",children:n}):null]})},nI=e=>{let{contest:t,children:n}=e,{t:i}=(0,f.Bd)(),a=ta(t);if(!t)return(0,l.jsx)(l.Fragment,{children:n});let r=a===ti.Upcoming?t.startsAt:t.endsAt;return(0,l.jsxs)("div",{className:"w-full space-y-5 rounded-[20px] bg-black/[8%] p-5 dark:bg-white/[8%]",children:[a===ti.Ended?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(nk.E,{typography:nk.o.Title2,bold:!0,className:"block text-center text-black dark:text-white",children:i("dropContest.ended")}),(0,l.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"})]}):null,(0,l.jsxs)("div",{className:"space-y-3",children:[r?(0,l.jsx)(nM.A,{label:i(a===ti.Upcoming?"dropContest.startsIn":"dropContest.timeLeftToEnter"),targetDate:r}):null,(0,l.jsx)(nL,{summary:t.summary,details:t.details,startsAt:t.startsAt,endsAt:t.endsAt})]}),a===ti.Open?n:null]})},nE=e=>{let{message:t}=e;return(0,l.jsxs)("div",{className:"w-full space-y-6",children:[(0,l.jsx)("div",{className:p()("flex w-full flex-col justify-center rounded-2xl bg-black/[4%] p-6 text-center dark:bg-white/[8%]"),children:(0,l.jsx)(nk.E,{typography:nk.o.Title2,bold:!0,className:"break-all text-black dark:text-white",children:t||"--"})}),(0,l.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"})]})},nD=()=>(0,l.jsxs)("div",{className:"flex w-full animate-pulse flex-col items-center space-y-7",children:[(0,l.jsxs)("div",{className:"relative mb-9 h-[192px] w-[192px]",children:[(0,l.jsx)("div",{className:"absolute top-0 h-[192px] min-h-[192px] w-[192px] min-w-[192px] rounded-3xl bg-white/[8%]"}),(0,l.jsx)("div",{className:"absolute right-2 top-2 h-[176px] min-h-[176px] w-[176px] min-w-[176px] rounded-[20px] bg-white/[8%]"}),(0,l.jsx)("div",{className:"absolute right-4 top-4 h-[160px] w-[160px] rounded-2xl bg-white/[24%]"})]}),(0,l.jsx)("div",{className:"mb-[18px] h-[16px] w-[100px] rounded-2xl bg-white/[24%]"}),(0,l.jsx)("div",{className:"mb-4 h-[28px] w-[208px] rounded-2xl bg-white/[24%]"}),(0,l.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,l.jsx)("div",{className:"h-[16px] w-[300px] rounded-2xl bg-white/[24%]"}),(0,l.jsx)("div",{className:"h-[16px] w-[200px] rounded-2xl bg-white/[24%]"})]})]});var nV=n(83409),nB=n(87994),nO=n(61320);let nR=e=>{let{label:t,value:n,className:i}=e;return(0,l.jsxs)("div",{className:p()("space-y-1 rounded-[10px] bg-black/[4%] p-3 text-center dark:bg-white/[8%]",i),children:[(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"block text-black/60 dark:text-white/60",children:t}),(0,l.jsx)(nk.E,{typography:nk.o.Footnote,className:"block break-words text-black dark:text-white",children:n})]})},nU=e=>{var t,n;let{eventAt:i,eventTimezone:a,eventLocation:r,minimumAge:o,guestCount:s=0}=e,{t:d}=(0,f.Bd)(),c=i?(0,ea.A)(i).tz(a):null;return(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)(nR,{label:d("dropRSVP.date"),value:null!=(t=null==c?void 0:c.format("MMM. Do, YYYY"))?t:"â"}),(0,l.jsx)(nR,{label:d("dropRSVP.time"),value:null!=(n=null==c?void 0:c.format("h:mm A z"))?n:"â"}),r?(0,l.jsx)(nR,{label:d("dropRSVP.location"),value:r}):null,(0,l.jsx)(nR,{label:d("dropRSVP.ageRestriction"),value:o?d("dropRSVP.minimumAge",{age:o}):d("dropRSVP.allAges"),className:r?void 0:"col-span-2"}),s>0?(0,l.jsx)(nR,{label:d("dropRSVP.additionalGuests"),value:d("dropRSVP.guestCount",{guests:s}),className:"col-span-2"}):null]})},nz=e=>{let{maxGuests:t,value:n,onChange:i,disabled:a=!1}=e;return(0,l.jsx)("div",{className:"flex flex-row gap-2 [&>*]:flex-1",children:Array.from({length:t+1},(e,t)=>t).map(e=>(0,l.jsx)("button",{type:"button","aria-pressed":n===e,disabled:a,className:p()("flex h-[40px] cursor-pointer items-center justify-center rounded-[10px] transition disabled:cursor-not-allowed disabled:opacity-50",{"bg-black/[4%] hover:bg-black/[8
1%] active:bg-black/[12%] dark:bg-white/[8%] dark:hover:bg-white/[12%] dark:active:bg-white/[24%]":n!==e,"bg-black/[12%] dark:bg-white/[24%]":n===e}),onClick:()=>i(e),children:(0,l.jsx)(nk.E,{typography:nk.o.Body,bold:!0,className:p()({"text-black/50 dark:text-white/50":n!==e,"text-black dark:text-white":n===e}),children:e})},"drop-guest-count__".concat(e)))})},nW=e=>{let{portalParentRef:t,title:n,message:i,confirmText:a,cancelText:r,isDeclining:o,onConfirm:s,onCancel:d}=e;return(0,l.jsx)(nw.H,{portalParentRef:t,isOpen:!0,onClose:d,className:"w-full",children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center space-y-5 rounded-[20px] border border-black/[8%] bg-black/[4%] p-6 text-center dark:border-white/[8%] dark:bg-white/[8%]",children:[(0,l.jsx)("div",{className:"absolute right-4 top-4",children:(0,l.jsx)(n_.A,{type:n_._.IconOnly,onClick:d,iconType:nb.A.Close,disabled:o})}),(0,l.jsxs)("div",{className:"space-y-1 px-6",children:[(0,l.jsx)(nk.E,{typography:nk.o.Subheadline,bold:!0,className:"block text-black dark:text-white",children:n}),(0,l.jsx)(nk.E,{typography:nk.o.Subheadline,className:"block text-black/60 dark:text-white/60",children:i})]}),(0,l.jsx)("div",{className:"h-[1px] w-full bg-black/[12%] dark:bg-white/[12%]"}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-center space-y-3",children:[(0,l.jsx)(nV.$n,{type:nV.VQ.Primary,size:nV.Mp.Large,text:a,className:"w-full !text-white disabled:opacity-50",loading:o,onClick:()=>void s()}),(0,l.jsx)(nV.$n,{type:nV.VQ.Quaternary,size:nV.Mp.Large,text:r,className:"w-full !border-black/[12%] !bg-transparent !text-black enabled:hover:!bg-black/[4%] enabled:active:!bg-black/[8%] disabled:opacity-50 dark:!border-white/[12%] dark:!text-white dark:enabled:hover:!bg-white/[4%] dark:enabled:active:!bg-white/[8%]",disabled:o,onClick:d})]})]})})},nq=()=>(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"block text-center text-black/40 dark:text-white/40",children:(0,l.jsx)(f.x6,{i18nKey:"dropRSVP.helperText",components:{terms:(0,l.jsx)("a",{href:eQ.er,className:"underline",target:"_blank",rel:"noopener noreferrer"}),privacy:(0,l.jsx)("a",{href:eQ.WO,className:"underline",target:"_blank",rel:"noopener noreferrer"})}})});var nH=function(e){return e.Success="success",e.Warning="warning",e}({});let nZ=e=>{let{tone:t,title:n,description:i}=e,a="success"===t;return(0,l.jsxs)("div",{className:"flex flex-col items-center space-y-5",children:[(0,l.jsx)("div",{className:p()("rounded-full p-4",{"bg-emerald-600/[12%]":a,"bg-amber-500/[12%]":!a}),children:(0,l.jsx)(nb.I,{type:a?nb.A.Approve:nb.A.Close,size:32,className:p()({"fill-emerald-600":a,"fill-amber-500":!a})})}),(0,l.jsxs)("div",{className:"space-y-2 text-center",children:[(0,l.jsx)(nk.E,{typography:nk.o.Title2,bold:!0,className:"block text-black dark:text-white",children:n}),(0,l.jsx)(nk.E,{typography:nk.o.Callout,className:"block text-black/60 dark:text-white/60",children:i})]})]})},nG="w-full space-y-5 rounded-[20px] bg-black/[4%] p-5 dark:bg-white/[8%]",nY="h-px w-full bg-black/[12%] dark:bg-white/[12%]",nK=e=>{var t,n,i,a,r;let{portalParentRef:o}=e,{t:s}=(0,f.Bd)(),d=tc();if(d.phase===to.Loading)return(0,l.jsx)("div",{className:p()(nG,"h-[320px] animate-pulse")});if(d.phase===to.Blocked||!d.event)return(0,l.jsx)("div",{className:nG,children:(0,l.jsx)(nk.E,{typography:nk.o.Callout,className:"block text-center text-black/60 dark:text-white/60",children:null!=(t=d.blockedMessage)?t:s("dropRSVP.unavailable")})});let c=(0,l.jsx)(nU,{eventAt:d.event.eventAt,eventTimezone:d.event.timezone,eventLocation:d.event.location,minimumAge:d.event.minimumAge}),u=(e,t)=>(0,l.jsx)(nV.$n,{type:nV.VQ.Quaternary,size:t,text:e,className:p()("!border-black/[12%] !bg-transparent !text-black enabled:hover:!bg-black/[4%] enabled:active:!bg-black/[8%] disabled:opacity-50 dark:!border-white/[12%] dark:!text-white dark:enabled:hover:!bg-white/[4%] dark:enabled:active:!bg-white/[8%]",{"w-full":t===nV.Mp.Large}),disabled:!d.canDecline,loading:d.isDeclining,onClick:()=>void d.decline()}),m=d.declineConfirmation.isOpen?(0,l.jsx)(nW,{portalParentRef:o,title:d.copy.confirmDeclineTitle,message:d.copy.confirmDeclineMessage,confirmText:d.copy.confirmDeclineAction,cancelText:d.copy.confirmDeclineCancel,isDeclining:d.isDeclining,onConfirm:d.declineConfirmation.confirm,onCancel:d.declineConfirmation.cancel}):null,h=d.errorMessage?(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"text-error-tertiary block text-center",children:d.errorMessage}):null;return d.phase===to.Attending?(0,l.jsxs)("div",{className:nG,children:[m,(0,l.jsx)(n
1Z,{tone:nH.Success,title:null!=(n=d.copy.headline)?n:"",description:null!=(i=d.copy.description)?i:""}),(0,l.jsx)("div",{className:nY}),c,(0,l.jsx)("div",{className:nY}),(0,l.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"block text-center text-black/60 dark:text-white/60",children:d.copy.cannotMakeIt}),u(d.copy.declineEvent,nV.Mp.Small),h]})]}):d.phase===to.Declined?(0,l.jsxs)("div",{className:nG,children:[(0,l.jsx)(nZ,{tone:nH.Warning,title:null!=(a=d.copy.headline)?a:"",description:null!=(r=d.copy.description)?r:""}),(0,l.jsx)("div",{className:nY}),c]}):(0,l.jsxs)("div",{className:nG,children:[m,(0,l.jsxs)("div",{className:"space-y-2",children:[c,d.respondBy?(0,l.jsx)(nM.A,{label:d.copy.respondByLabel,targetDate:d.respondBy}):null]}),d.guests.max>0&&(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)(nO.A,{label:d.copy.additionalGuests}),(0,l.jsx)(nz,{maxGuests:d.guests.max,value:d.guests.selected,onChange:d.guests.select,disabled:d.isBusy})]}),d.age.isRequired?(0,l.jsx)("div",{className:"flex items-center gap-3 rounded-xl border border-black/[16%] p-3 dark:border-white/[16%]",children:(0,l.jsx)(nB.S,{checked:d.age.isAttested,onChange:d.age.setAttested,size:24,disabled:d.isBusy,className:"gap-3",label:(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"font-normal text-black dark:text-white",children:d.copy.confirmAge})})}):null,(0,l.jsx)("div",{className:nY}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(nV.$n,{type:nV.VQ.Primary,size:nV.Mp.Large,text:d.copy.attend,className:"w-full disabled:!bg-black/[24%] disabled:!text-white/[72%] dark:disabled:!bg-white/[24%]",disabled:!d.canAccept,loading:d.isAccepting,onClick:()=>void d.accept()}),u(d.copy.declineInvite,nV.Mp.Large),h]}),(0,l.jsx)(nq,{})]})},nJ=e=>{let{rsvpConfig:t,children:n}=e;return t?(0,l.jsxs)("div",{className:"w-full space-y-5 rounded-xl bg-black/[8%] p-4 dark:bg-white/[8%]",children:[(0,l.jsx)(nU,{eventAt:t.event_at,eventTimezone:t.event_timezone,eventLocation:t.location,minimumAge:t.minimum_age}),n]}):(0,l.jsx)(l.Fragment,{children:n})};var nQ=n(60078);let n$=(0,s.lazy)(()=>n.e(2825).then(n.bind(n,62825))),nX=(0,s.lazy)(()=>n.e(2005).then(n.bind(n,42005))),n1=(0,s.lazy)(()=>n.e(2799).then(n.bind(n,42799))),n0=(0,s.lazy)(()=>n.e(149).then(n.bind(n,90149))),n2=(0,s.lazy)(()=>n.e(9451).then(n.bind(n,69451))),n6=(0,s.lazy)(()=>n.e(5623).then(n.bind(n,65623))),n9={spotify:{iconType:nb.A.Spotify,title:"Spotify"},apple_music:{iconType:nb.A.Apple,title:"Apple Music"},youtube:{iconType:nb.A.Youtube,title:"YouTube"},soundcloud:{iconType:nb.A.Soundcloud,title:"Soundcloud"},instagram:{iconType:nb.A.Instagram,title:"Instagram"},tiktok:{iconType:nb.A.TikTok,title:"TikTok"},twitter:{iconType:nb.A.TwitterX,title:"Twitter"},amazon_music:{iconType:nb.A.Amazon,title:"Amazon Music"},pandora:{iconType:nb.A.Pandora,title:"Pandora"},website:{iconType:nb.A.Community,title:""},bandsintown:{iconType:nb.A.Bandsintown,title:"Bandsintown"},discord:{iconType:nb.A.Discord,title:"Discord"},tumblr:{iconType:nb.A.Tumblr,title:"Tumblr"},telegram:{iconType:nb.A.Telegram,title:"Telegram"}},n4=e=>{var t,n,i,d;let{dropProfileOrDrop:u,isLoading:m,searchParams:g,isPreview:b,showPostSignUp:v,formOnly:k,onScroll:y,parentInvitationViewRef:C,previewRSVP:_}=e,{t:w}=(0,f.Bd)(),j=(0,a.W5)(),S=(0,a.V3)(),N=j.definition,A=!!(N.primaryCapability===r.Io.FanFeed&&!k),P=!!(N.blocks.aboveForm.length||N.blocks.belowForm.length),T=(0,s.useRef)(null),M=null!=C?C:T,[F,L]=(0,s.useState)(!1),I=(0,s.useRef)(null),E=(0,s.useRef)(null),D=(0,s.useCallback)(e=>{if(e.current){let{scrollTop:t,scrollHeight:n,clientHeight:i}=e.current;L(n<=i||t+i+200>=n),m||null==y||y(e.current)}},[m,y]),V=(0,s.useCallback)(()=>{null===E.current&&(E.current=requestAnimationFrame(()=>{E.current=null,D(I)}))},[D]);(0,s.useEffect)(()=>()=>{null!==E.current&&cancelAnimationFrame(E.current)},[]),(0,s.useEffect)(()=>{D(I)},[D]);let B=N.hero.imageUrl,O=N.hero.backgroundImageUrl,R=(0,s.useMemo)(()=>
1{if(!m){if(O)return"url(".concat(encodeURI(O),")");if(B)return"url(".concat(encodeURI(B),")")}},[B,m,O]),U=(0,s.useMemo)(()=>{if(!m)return"url(https://storage.googleapis.com/loudly-public/grain-overlay.png)"},[m]),z=N.socialLinks.map((e,t)=>{var n;let i=null!=(n=n9[e.platform])?n:{iconType:nb.A.Community,title:e.platform};return{index:t,...i,platformTitle:i.title}}),W=j.theme.isDark,q=N.hero.hideImage||k,H=!j.branding.showCobrandLogo,Z=(null==u?void 0:u.drop_type)===x.YV.RSVP,G=Z?g.token:void 0,Y=!!(G||Z&&_),K=Y&&(null==u||null==(t=u.rsvp_config)?void 0:t.title)||N.hero.title,J=Y?null!=(d=null==u||null==(n=u.rsvp_config)?void 0:n.description)?d:"":N.hero.description,Q=(0,s.useMemo)(()=>({showPostSignUp:v,buttonText:j.signup.submitButtonText||N.signup.buttonText||void 0,portalParentRef:M}),[M,j.signup.submitButtonText,N.signup.buttonText,v]);return(0,l.jsxs)(o,{withoutBackground:!0,className:p()("@container relative flex h-full w-full flex-col items-center overflow-hidden",{"bg-white":!W,"bg-black":W,"scrollbar-hidden":b,"!bg-transparent":k}),containerRef:T,children:[(null==(i=j.blocks.selectedItem)?void 0:i.kind)!==r.W5.Presave&&j.blocks.selectedItem?(0,l.jsx)(nS,{portalParentRef:M,dropBlockItem:j.blocks.selectedItem,onClose:j.blocks.close}):null,j.signup.isOpen&&j.signup.source===r.B3.BlockPresave?(0,l.jsx)(nP.A,{isOpen:!0,onClose:j.signup.close,title:S.presave.selectedPlatform===r.NS.Spotify?w("dropPresave.modalTitle.spotify"):w("dropPresave.modalTitle.appleMusic"),description:N.hero.description||w("dropPresave.modalDescription"),dropSignupFormProps:{...Q,inModalStyling:!0},portalParentRef:M}):null,(0,l.jsxs)("div",{className:p()("relative w-full overflow-auto pt-8",{"@3xl:pt-[60px] pt-8":!O,"pt-[200px]":O&&!k,"scrollbar-hidden":b}),ref:I,onScroll:V,children:[!k&&(0,l.jsxs)("div",{className:"absolute top-0 h-[400px] w-full overflow-hidden",children:[(0,l.jsxs)("div",{className:p()("absolute inset-0 h-full w-full transform-gpu",{"backdrop-blur-[80px]":!O}),children:[(0,l.jsx)("div",{className:p()("absolute inset-0 h-full w-full"),style:{backgroundImage:"linear-gradient(to bottom, ".concat(j.theme.backgroundColor||"transparent",", ").concat(W?"#000000":"#ffffff",")")}}),(0,l.jsx)("div",{className:"absolute inset-0 h-full w-full opacity-[50%]",style:{backgroundPosition:"center",backgroundRepeat:"repeat",background:"linear-gradient(to bottom, transparent 80%, ".concat(W?"#000000":"#ffffff","), ").concat(U)}})]}),(0,l.jsx)("div",{className:"inset-0 h-full w-full bg-white",style:{backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:R}})]}),m?(0,l.jsx)(nD,{}):u||m?(0,l.jsxs)("div",{className:"@3xl:flex-row @3xl:space-x-6 @3xl:items-start @3xl:justify-center relative z-10 flex w-full flex-col items-center justify-start px-6",children:[!k&&(0,l.jsxs)("div",{className:"@3xl:space-y-5 space-y-6 pb-6",children:[!q&&(0,l.jsx)(nC.A,{customImageUrl:N.hero.imageUrl}),(0,l.jsxs)("div",{className:"@3xl:space-y-5 space-y-4",children:[N.hero.artistTitle&&(0,l.jsxs)("div",{className:"@3xl:justify-start flex flex-row items-center justify-center space-x-2",children:[!N.hero.hideArtistImage&&(0,l.jsx)(ng.A,{imageUrl:N.hero.artistImageUrl,className:"!h-[28px] !w-[28px] !rounded-full !border-0"}),(0,l.jsx)(nk.E,{className:"@3xl:text-left text-center text-black dark:text-white",typography:nk.o.Subheadline,bold:!0,children:N.hero.artistTitle})]}),z.length>0&&(0,l.jsx)("div",{className:"@3xl:justify-start @3xl:flex-col @3xl:gap-2 flex max-w-full flex-row flex-wrap justify-center gap-4",children:z.map((e,t)=>(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("button",{type:"button","aria-label":e.platformTitle,className:"group flex flex-row items-center space-x-3",onClick:()=>j.social.activate(e.index),children:[(0,l.jsx)(nb.I,{type:e.iconType,className:"@3xl:w-5 @3xl:fill-black/40 dark:@3xl:fill-white/40 @3xl:h-5 h-6 w-6 fill-black dark:fill-white"}),(0,l.jsx)(nk.E,{typography:nk.o.Footnote,className:"@3xl:block hidden max-w-[240px] truncate text-black/60 group-hover:underline dark:text-white/60",children:e.platformTitle}),(0,l.jsx)(nb.I,{type:nb.A.Open,size:16,className:"@3xl:block hidden fill-black/40 opacity-0 transition group-hover:opacity-100 dark:fill-white/40"})]}),t!==z.length-1&&(0,l.jsx)("div",{className:"@3xl:block hidden h-[1px] w-full bg-gradient-to-r from-black/[12%] to-black/0 dark:from-white/[12%] dark:to-white/0"})]},"".concat(e.iconType,"-").concat(e.index)))})]})]}),(0,l.jsxs)("div",{className:p()("@3xl:max-w-[628px] relative w-full min-w-[300px] max-w-[450px] space-y-8"),children:[!k&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"@3xl:text-left space-y-3 text-center",children:[(0,l.jsx)(nk.E,{className:"@3xl:!text-[42px] @3xl:!leading-[49px] @3xl:!-tracking-[1.5px] text-black dark:text-white",typography:nk.o.Title1,bold:!0,children:K}),J&&(0,l.jsx)(nk.E,{className:"@3xl:!text-[17px] @3xl:!leading-[22px] @3xl:!-tracking-[0.41px] whitespace-break-spaces text-black/80 dark:text-white/80",typography:nk.o.Subheadline,children:J})]})}),!k&&!A&&(0,l.jsx)(nN.A,{position:r.W6.AboveForm,showBottomDivider:!1}),(0,l.jsx)(c,{children:e=>e.isEnded?(0,l.jsx)(nE,{message:e.endMessage}):(0,l.jsx)(l.Fragment,{children:A?(0,l.jsx)(s.Suspense,{fallback:null,children:(0,l.jsxs)("div",{className:"space-y-8",children:[P&&(0,l.jsx)(nX,{activeTab:j.fanFeed.activePageTab,feedLabel:w("dropFanFeed.feedTab"),infoLabel:w("dropFanFeed.artistInfoTab"),onTabChange:j.fanFeed.setActivePageTab}),P&&j.fanFeed.activePageTab===r.pR.Info?(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsx)(nN.A,{position:r.W6.AboveForm,showBottomDivider:!1}),(0,l.jsx)(nT,{dropSignupFormProps:Q,portalParentRef:M}),(0,l.jsx)(nN.A,{position:r.W6.BelowForm})]}):(0,l.jsx)("div",{children:(0,l.jsx)(n$,{dropSignupFormProps:Q})})]})}):(0,l.jsxs)(l.Fragment,{children:[Y&&u?(0,l.jsx)(nK,{portalParentRef:M},null!=G?G:"preview"):N.primaryCapability===r.Io.Signup&&(0,l.jsx)(nI,{contest:N.contest,children:(0,l.jsxs)(nJ,{rsvpConfig:Z?null==u?void 0:u.rsvp_config:null,children:[N.formLayout===r._V.Expanded&&(0,l.jsx)(nQ.A,{...Q,inModalStyling:!!N.contest||Z,className:p()({"p-4":!N.contest&&!Z})}),N.formLayout===r._V.Compact&&(0,l.jsx)(nT,{dropSignupFormProps:Q,portalParentRef:M})]})}),N.primaryCapability===r.Io.LinkCollection&&(0,l.jsx)(s.Suspense,{fallback:null,children:(0,l.jsx)(n1,{dropSignupFormProps:Q,portalParentRef:M})}),N.primaryCapability===r.Io.Presave&&(0,l.jsx)(s.Suspense,{fallback:null,children:(0,l.jsx)(n6,{dropSignupFormProps:Q,portalParentRef:M})}),N.primaryCapability===r.Io.Listening&&(0,l.jsx)(s.Suspense,{fallback:null,children:(0,l.jsx)(n2,{dropSignupFormProps:Q,portalParentRef:M})}),N.primaryCapability===r.Io.LinkInBio&&(0,l.jsx)(s.Suspense,{fallback:null,children:(0,l.jsx)(n0,{dropSignupFormProps:Q,portalParentRef:M})}),N.primaryCapability===r.Io.FanFeed&&(0,l.jsx)(nQ.A,{...Q,className:"p-4"})]})})}),!k&&!A&&(0,l.jsx)(nN.A,{position:r.W6.BelowForm}),H?null:(0,l.jsxs)(h(),{href:"https://cobrand.com",className:"flex flex-col items-center justify-center space-y-2 opacity-40",children:[(0,l.jsx)(nx.V,{className:"fill-black dark:fill-white",width:"85px",height:"16px"}),(0,l.jsx)(nk.E,{typography:nk.o.Caption1,className:"text-black underline dark:text-white",children:w("dropInvitationView.growYourFanbase")})]}),(0,l.jsx)(nv.A,{isScrolledToEnd:F,label:w("common.scrollDown")})]})]}):(0,l.jsxs)("div",{className:"flex h-[680px] w-full flex-col items-center justify-center space-y-2",children:[(0,l.jsx)(nk.E,{bold:!0,typography:nk.o.Title3,className:"text-slate-600",children:w("dropInvitationView.notFoundTitle")}),(0,l.jsx)(nk.E,{className:"text-slate-600",typography:nk.o.Body,children:w("dropInvitationView.notFoundDescription")})]})]})]})},n5=e=>(0,l.jsx)(nf,{drop:e.dropProfileOrDrop,searchParams:e.searchParams,isPreview:e.isPreview,formOnly:e.formOnly,showPostSignUp:e.showPostSignUp,previewRSVP:e.previewRSVP,children:(0,l.jsx)(n4,{...e})})},50717:(e,t,n)=>{n.d(t,{A:()=>
1o});var i=n(6029),l=n(82558),a=n(75828),r=n.n(a);let o=e=>{let{imageUrl:t,className:n,imageClassName:a}=e;return(0,i.jsx)("div",{className:r()("flex h-[66px] w-[66px] items-center justify-center overflow-hidden rounded-2xl border border-slate-300 bg-slate-200",n),children:t?(0,i.jsx)("img",{className:r()("h-full w-full object-cover",a),src:t,alt:""}):(0,i.jsx)(l.I,{type:l.A.Ai,size:24,className:"fill-slate-400"})})}},54997:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(6029),l=n(26130),a=n(82558),r=n(49956),o=n(24436),s=n(10706),d=n(35983),c=n(60078);let u=e=>{let{isOpen:t,onClose:n,title:u,description:p,dropSignupFormProps:m,portalParentRef:h}=e,f=(0,l.W5)();return(0,i.jsx)(d.H,{portalParentRef:h,isOpen:t,className:"w-full rounded-[20px] bg-black/[4%] dark:bg-white/[8%]",children:(0,i.jsxs)("div",{className:"relative overflow-auto p-6","data-cobrand-element":"signup-modal",children:[(0,i.jsx)("div",{className:"absolute right-4 top-4",children:(0,i.jsx)(s.A,{type:s._.IconOnly,onClick:n,iconType:a.A.Close})}),(0,i.jsxs)("div",{className:"space-y-5",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-5",children:[(0,i.jsx)(o.A,{customImageUrl:f.signup.modalImageUrl}),f.signup.shouldShowModalHeader&&(0,i.jsxs)("div",{className:"space-y-0.5 text-center",children:[(0,i.jsx)(r.E,{typography:r.o.Subheadline,className:"text-black dark:text-white",bold:!0,children:u}),(0,i.jsx)(r.E,{typography:r.o.Subheadline,className:"text-black/60 dark:text-white/60",children:p})]})]}),(0,i.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"}),(0,i.jsx)(c.A,{...m})]})]})})}},55025:(e,t,n)=>{n.d(t,{Y:()=>z});var i=n(6029),l=n(55729),a=n(26130),r=n(84350),o=n(29955);let s=e=>{let{text:t}=e;return(0,i.jsx)(l.Fragment,{children:t.split("**").map((e,t)=>t%2==1?(0,i.jsx)("strong",{children:e},t):e)})},d={days:e=>e.countdown.days,hours:e=>e.countdown.hours,mins:e=>e.countdown.minutes,secs:e=>e.countdown.seconds},c=e=>{if(e.phase===r.LB.Upcoming)return e.startsAt;if(e.phase===r.LB.Open){var t;return null!=(t=e.endsAt)?t:void 0}},u=e=>{let{contest:t,className:n}=e,{phase:l,copy:a}=t,u=(0,o.L4)(c(t));return(0,i.jsxs)("div",{className:n,"data-cobrand-element":"contest-details","data-phase":l,children:[l===r.LB.Ended?(0,i.jsx)("h2",{"data-cobrand-element":"contest-ended",children:a.ended}):null,u?(0,i.jsxs)("div",{"data-cobrand-element":"contest-countdown",children:[(0,i.jsx)("p",{children:l===r.LB.Upcoming?a.startsIn:a.timeLeftToEnter}),(0,i.jsx)("time",{"data-cobrand-element":"countdown-ticker",dateTime:c(t),children:u.parts.map(e=>(0,i.jsxs)("span",{"data-cobrand-element":"countdown-part","data-unit":e.label,children:[(0,i.jsx)("strong",{children:e.value}),(0,i.jsx)("small",{children:d[e.label](a)})]},e.label))})]}):null,(0,i.jsxs)("div",{"data-cobrand-element":"contest-eligibility",children:[(0,i.jsx)("p",{"data-cobrand-element":"contest-heading",children:a.details}),(0,i.jsxs)("p",{children:[t.summary?(0,i.jsx)(s,{text:t.summary}):null,t.summary&&a.window?" ":null,a.window?(0,i.jsx)(s,{text:a.window}):null]}),t.details.trim()?(0,i.jsx)("p",{"data-cobrand-element":"contest-copy",children:t.details}):null]})]})},p=e=>{let{className:t}=e,n=(0,a.W5)().definition.contest;return n?(0,i.jsx)(u,{contest:n,className:t}):null},m=Object.assign(e=>{let{className:t,children:n}=e,r=(0,a.W5)().definition.contest;return r?void 0!==n?(0,i.jsx)(l.Fragment,{children:"function"==typeof n?n(r):n}):(0,i.jsx)("section",{className:t,"data-cobrand-primitive":"contest","data-phase":r.phase,children:(0,i.jsx)(p,{})}):null},{Details:p});var h=n(27282);let f=e=>{let{rsvp:t,className:n}=e,{date:l,time:a}=(e=>{let t=new Date(e.eventAt);if(Number.isNaN(t.getTime()))return{date:"",time:""};try{return{date:new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeZone:e.timezone}).format(t),time:new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit",timeZone:e.timezone,timeZoneName:"short"}).format(t)}}catch(e){return{date:new Intl.DateTimeFormat(void 0,{dateStyle:"medium"}).format(t),time:new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(t)}}})(t);return(0,i.jsxs)("dl",{className:n,"data-cobrand-element":"rsvp-detail
1s",children:[l?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-detail",children:[(0,i.jsx)("dt",{children:t.copy.date}),(0,i.jsx)("dd",{children:l})]}):null,a?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-detail",children:[(0,i.jsx)("dt",{children:t.copy.time}),(0,i.jsx)("dd",{children:a})]}):null,t.location?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-detail",children:[(0,i.jsx)("dt",{children:t.copy.location}),(0,i.jsx)("dd",{children:t.location})]}):null,(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-detail",children:[(0,i.jsx)("dt",{children:t.copy.ageRestriction}),(0,i.jsx)("dd",{children:t.copy.age})]})]})},g=e=>{let{className:t}=e,n=(0,a.W5)().definition.rsvp;return n?(0,i.jsx)(f,{rsvp:n,className:t}):null},b=/\[([^\]]+)]\((https?:\/\/[^)\s]+)\)/gi,x=e=>{let t,{text:n}=e,a=[],r=0;for(b.lastIndex=0;null!==(t=b.exec(n));)t.index>r&&a.push(n.slice(r,t.index)),a.push((0,i.jsx)("a",{href:t[2],target:"_blank",rel:"noopener noreferrer",children:t[1]},"".concat(t.index,"-").concat(t[2]))),r=t.index+t[0].length;return r<n.length&&a.push(n.slice(r)),(0,i.jsx)(l.Fragment,{children:a})},v={days:e=>e.countdown.days,hours:e=>e.countdown.hours,mins:e=>e.countdown.minutes,secs:e=>e.countdown.seconds},k=e=>{let{invitation:t,countdown:n,className:a}=e,{phase:o,copy:s}=t,d=t.errorMessage?(0,i.jsx)("p",{"data-cobrand-element":"form-error",role:"alert",children:t.errorMessage}):null,c=e=>(0,i.jsx)("button",{type:"button","data-cobrand-element":"rsvp-decline",disabled:!t.canDecline,"aria-busy":t.isDeclining,onClick:()=>void t.decline(),children:e});return(0,i.jsxs)("section",{className:a,"data-cobrand-primitive":"rsvp-invitation","data-phase":o,"aria-busy":t.isBusy,children:[o===r.Jh.Loading?(0,i.jsx)("p",{"data-cobrand-element":"rsvp-loading",children:s.loading}):null,o===r.Jh.Blocked?(0,i.jsx)("p",{"data-cobrand-element":"rsvp-blocked",children:t.blockedMessage}):null,s.headline?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-status",children:[(0,i.jsx)("h2",{children:s.headline}),s.description?(0,i.jsx)("p",{children:s.description}):null]}):null,t.event&&o!==r.Jh.Blocked?(0,i.jsx)(f,{rsvp:t.event}):null,o===r.Jh.Invited?(0,i.jsxs)(l.Fragment,{children:[t.respondBy&&n?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-respond-by",children:[(0,i.jsx)("p",{children:s.respondByLabel}),(0,i.jsx)("time",{"data-cobrand-element":"countdown-ticker",dateTime:t.respondBy,children:n.parts.map(e=>(0,i.jsxs)("span",{"data-cobrand-element":"countdown-part","data-unit":e.label,children:[(0,i.jsx)("strong",{children:e.value}),(0,i.jsx)("small",{children:v[e.label](s)})]},e.label))})]}):null,t.guests.max>0?(0,i.jsxs)("fieldset",{"data-cobrand-element":"rsvp-guests",children:[(0,i.jsx)("legend",{children:s.additionalGuests}),(0,i.jsx)("div",{"data-cobrand-element":"option-group",children:Array.from({length:t.guests.max+1},(e,t)=>t).map(e=>(0,i.jsx)("button",{type:"button","data-cobrand-element":"option-button","aria-pressed":t.guests.selected===e,disabled:t.isBusy,onClick:()=>t.guests.select(e),children:e},e))})]}):null,t.age.isRequired?(0,i.jsxs)("label",{"data-cobrand-element":"rsvp-age",children:[(0,i.jsx)("input",{type:"checkbox",checked:t.age.isAttested,disabled:t.isBusy,onChange:e=>t.age.setAttested(e.target.checked)}),(0,i.jsx)("span",{children:s.confirmAge})]}):null,(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-actions",children:[(0,i.jsx)("button",{type:"button","data-cobrand-element":"rsvp-accept",disabled:!t.canAccept,"aria-busy":t.isAccepting,onClick:()=>void t.accept(),children:t.isAccepting?s.working:s.attend}),c(s.declineInvite)]}),d,(0,i.jsx)("p",{"data-cobrand-element":"rsvp-legal",children:(0,i.jsx)(x,{text:s.legal})})]}):null,o===r.Jh.Attending?(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-actions",children:[(0,i.jsx)("p",{children:s.cannotMakeIt}),c(s.declineEvent),d]}):null]})},y=e=>{let{invitation:t}=e,{declineConfirmation:n,copy:a}=t,{isOpen:r}=n,o=(0,l.useRef)(null);return((0,l.useEffect)(()=>{let e=o.current;r&&e&&!e.open&&("function"==typeof e.showModal?e.showModal():e.setAttribute("open",""))},[r]),r)?(0,i.jsxs)("dialog",{ref:o,"data-cobrand-element":"rsvp-decline-confirm","aria-labelledby":"
1cobrand-rsvp-decline-confirm-title",onCancel:e=>{e.preventDefault(),n.cancel()},children:[(0,i.jsx)("h2",{id:"cobrand-rsvp-decline-confirm-title",children:a.confirmDeclineTitle}),(0,i.jsx)("p",{children:a.confirmDeclineMessage}),(0,i.jsxs)("div",{"data-cobrand-element":"rsvp-decline-confirm-actions",children:[(0,i.jsx)("button",{type:"button","data-cobrand-element":"rsvp-decline-cancel",disabled:t.isDeclining,onClick:n.cancel,children:a.confirmDeclineCancel}),(0,i.jsx)("button",{type:"button","data-cobrand-element":"rsvp-decline-confirm-action",disabled:t.isDeclining,"aria-busy":t.isDeclining,onClick:()=>void n.confirm(),children:a.confirmDeclineAction})]})]}):null},C=Object.assign(e=>{let{className:t,children:n}=e,r=(0,a.W5)().definition.rsvp;return r?void 0!==n?(0,i.jsx)(l.Fragment,{children:"function"==typeof n?n(r):n}):(0,i.jsx)("section",{className:t,"data-cobrand-primitive":"rsvp",children:(0,i.jsx)(g,{})}):null},{Details:g,Invitation:e=>{let{className:t,children:n,showDeclineConfirmation:r=!0}=e,s=(0,a.W5)().rsvpInvitation,d=(0,o.L4)(null==s?void 0:s.respondBy);return s?(0,i.jsxs)(l.Fragment,{children:[void 0!==n?"function"==typeof n?n(s):n:(0,i.jsx)(k,{invitation:s,countdown:d,className:t}),r?(0,i.jsx)(y,{invitation:s}):null]}):null}}),_={[r.vi.Email]:"Email",[r.vi.Phone]:"Text",[r.vi.WhatsApp]:"WhatsApp"},w={[r.NS.Spotify]:"Spotify",[r.NS.AppleMusic]:"Apple Music"},j={[r.uH.Instagram]:"Instagram",[r.uH.TikTok]:"TikTok"},S=/\[([^\]]+)]\((https?:\/\/[^)\s]+)\)/gi,N=e=>{let t,{text:n}=e,a=[],r=0;for(S.lastIndex=0;null!==(t=S.exec(n));)t.index>r&&a.push(n.slice(r,t.index)),a.push((0,i.jsx)("a",{href:t[2],target:"_blank",rel:"noopener noreferrer",children:t[1]},"".concat(t.index,"-").concat(t[2]))),r=t.index+t[0].length;return r<n.length&&a.push(n.slice(r)),(0,i.jsx)(l.Fragment,{children:a})},A=e=>{let{definition:t,label:n}=e;return(0,i.jsxs)(i.Fragment,{children:[null!=n?n:t.label,t.required?(0,i.jsx)("span",{"data-cobrand-element":"field-required",children:" (Required)"}):null]})},P=e=>{let{field:t}=e;return t.error?(0,i.jsx)("small",{id:"".concat(t.definition.key,"-error"),"data-cobrand-element":"field-error",role:"alert",children:t.error}):null},T=e=>{var t,n;let{field:l}=e,a="string"==typeof l.value||"number"==typeof l.value?String(l.value):"";return(0,i.jsxs)("label",{"data-cobrand-element":"field","data-field-kind":l.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:l.definition})}),(0,i.jsx)("input",{name:l.definition.key,type:(e=>e===r.aC.Email?"email":e===r.aC.Phone||e===r.aC.WhatsApp?"tel":"text")(l.definition.kind),inputMode:l.definition.kind===r.aC.Phone||l.definition.kind===r.aC.WhatsApp?"tel":void 0,autoComplete:(e=>e===r.aC.Email?"email":e===r.aC.Phone||e===r.aC.WhatsApp?"tel":e===r.aC.FirstName?"given-name":e===r.aC.LastName?"family-name":e===r.aC.Birthdate?"bday":void 0)(l.definition.kind),placeholder:null!=(n=null!=(t=l.definition.placeholder)?t:l.definition.format)?n:void 0,required:l.definition.required,value:a,"aria-invalid":!!l.error,"aria-describedby":l.error?"".concat(l.definition.key,"-error"):void 0,onChange:e=>l.setValue(e.target.value)}),(0,i.jsx)(P,{field:l})]})},M=e=>{var t,n,r,o;let{field:s}=e,d=(0,a.V3)(),c=d.form.phone.countries,u=(e=>"string"==typeof e||"number"==typeof e?String(e):"")(s.value).replace(/\D/g,"").slice(0,15),p=[...c].sort((e,t)=>t.dialCode.replace(/\D/g,"").length-e.dialCode.replace(/\D/g,"").length).find(e=>u.startsWith(e.dialCode.replace(/\D/g,""))),[m,h]=(0,l.useState)(()=>{var e,t,n,i;return null!=(i=null!=(n=null!=(t=null==p?void 0:p.code)?t:d.form.phone.defaultCountryCode)?n:null==(e=c[0])?void 0:e.code)?i:""});(0,l.useEffect)(()=>{p&&h(p.code)},[p]);let f=null!=(n=null!=(t=c.find(e=>e.code===m))?t:p)?n:c[0],g=null!=(r=null==f?void 0:f.dialCode.replace(/\D/g,""))?r:"",b=u.startsWith(g)?u.slice(g.length):u,x="".concat(s.definition.key,"-label");return(0,i.jsxs)("div",{"data-cobrand-element":"field","data-field-kind":s.definition.kind,children:[(0,i.jsx)("span",{id:x,"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:s.definition})}),(0,i.jsxs)("span",{"data-cobrand-element":"phone-input",children:[(0,i.jsx)("select",{"aria-label":"".concat(s.definition.label," country code"),value:null!=(o=null==f?void 0:f.code)?o:"",onCh
1ange:e=>{let t=c.find(t=>t.code===e.target.value);t&&(h(t.code),s.setValue("".concat(t.dialCode.replace(/\D/g,"")).concat(b)))},children:c.map(e=>(0,i.jsxs)("option",{value:e.code,title:e.label,children:[(e=>/^[A-Za-z]{2}$/.test(e)?String.fromCodePoint(...[...e.toUpperCase()].map(e=>127462+e.charCodeAt(0)-65)):"")(e.code)," ",e.dialCode]},e.code))}),(0,i.jsx)("input",{name:s.definition.key,type:"tel",inputMode:"tel",autoComplete:"tel-national","aria-labelledby":x,placeholder:s.definition.placeholder,required:s.definition.required,value:b,"aria-invalid":!!s.error,"aria-describedby":s.error?"".concat(s.definition.key,"-error"):void 0,onChange:e=>{let t=e.target.value,n=t.replace(/\D/g,"").slice(0,15);s.setValue(t.trim().startsWith("+")?n:"".concat(g).concat(n).slice(0,15))}})]}),(0,i.jsx)(P,{field:s})]})},F=e=>{var t;let{field:n}=e;return(0,i.jsxs)("label",{"data-cobrand-element":"field","data-field-kind":n.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:n.definition})}),(0,i.jsxs)("select",{name:n.definition.key,required:n.definition.required,value:"string"==typeof n.value?n.value:"",onChange:e=>n.setValue(e.target.value||void 0),children:[(0,i.jsx)("option",{value:"",children:"Select"}),(null!=(t=n.definition.options)?t:[]).map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,i.jsx)(P,{field:n})]})},L=e=>{let{field:t}=e,n=(0,a.V3)();return n.presave.isPlatformLocked?null:(0,i.jsxs)("fieldset",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("div",{"data-cobrand-element":"option-group",children:Object.values(r.NS).map(e=>(0,i.jsxs)("label",{"data-cobrand-element":"option",children:[(0,i.jsx)("input",{type:"radio",name:t.definition.key,required:t.definition.required,checked:n.presave.selectedPlatform===e,onChange:()=>n.presave.setSelectedPlatform(e)}),(0,i.jsx)("span",{children:w[e]})]},e))}),(0,i.jsx)(P,{field:t})]})},I=e=>{let{field:t}=e,n=(0,a.V3)(),l=n.socialUsername.availablePlatforms,r=n.socialUsername.selectedPlatform;return(0,i.jsxs)("div",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:t.definition,label:r?"".concat(j[r]," Username"):void 0})}),l.length>1?(0,i.jsx)("div",{"data-cobrand-element":"option-group","aria-label":"Social platform",children:l.map(e=>(0,i.jsx)("button",{type:"button","data-cobrand-element":"option-button","data-platform":e,"aria-pressed":r===e,"aria-label":j[e],onClick:()=>n.socialUsername.setSelectedPlatform(e),children:(0,i.jsx)(h.m,{platform:e,size:18})},e))}):null,(0,i.jsx)("input",{name:t.definition.key,type:"text",autoComplete:"off",placeholder:t.definition.placeholder,required:t.definition.required,value:"string"==typeof t.value?t.value:"",onChange:e=>t.setValue(e.target.value)}),(0,i.jsx)(P,{field:t})]})},E=e=>{let{field:t}=e,n=(0,a.V3)(),[r,o]=(0,l.useState)(""),s=n.location.suggestions;return(0,l.useEffect)(()=>{o(n.location.displayValue)},[n.location.displayValue]),(0,i.jsxs)("div",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("label",{htmlFor:t.definition.key,"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("input",{id:t.definition.key,name:t.definition.key,type:"search",autoComplete:"off",required:t.definition.required,value:r,"aria-expanded":s.length>0,"aria-controls":"".concat(t.definition.key,"-suggestions"),"aria-busy":n.location.isSearching,onChange:e=>{let i=e.target.value;o(i),i.trim()?n.location.search(i):(n.location.clear(),t.setValue(void 0))}}),n.location.isSearching?(0,i.jsx)("small",{"data-cobrand-element":"field-status",children:"Searchingâ¦"}):null,s.length>0?(0,i.jsx)("ul",{id:"".concat(t.definition.key,"-suggestions"),"data-cobrand-element":"suggestions",children:s.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)("button",{type:"button",onClick:()=>{o(e.label),n.location.select(e.id)},children:e.label})},e.id))}):null,(0,i.jsx)(P,{field:t})]})},D=e=>{let{field:t}=e,n=(0,a.V3)().contentSubmission;return n.enabled&&n.shouldShowPicker?(0,i.jsxs)("div",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsxs)("label",{children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:t.definition.label}),(0,i.jsx)("input",{type:"file",multiple:!0,accept:n.acceptedFileTypes,disabled:n.remainingSlots<=0,onChange:e=>{var t;let i=Array.from(null!=(t=e.target.files)?t:[]);e.target.value="",n.addFiles(i)}})]}),(0,i.jsxs)("small",{"data-cobrand-element":"field-status",children:[n.remainingSlots," of ",n.maxFiles," uploads remaining"]}),n.entries.length>
10?(0,i.jsx)("ul",{"data-cobrand-element":"upload-list",children:n.entries.map(e=>(0,i.jsxs)("li",{"data-upload-status":e.status,children:[(0,i.jsx)("span",{children:e.filename}),(0,i.jsx)("span",{children:e.status}),void 0!==e.uploadProgress?(0,i.jsx)("progress",{value:e.uploadProgress,max:100}):null,e.error?(0,i.jsx)("span",{role:"alert",children:e.error}):null,(0,i.jsx)("button",{type:"button",onClick:()=>n.remove(e.id),children:"Remove"})]},e.id))}):null]}):null},V=e=>{let{field:t}=e,n=t.definition.customField,l=Array.isArray(t.value)?t.value.filter(e=>"string"==typeof e):[];if((null==n?void 0:n.type)===r.by.MultipleChoice){var a,o;let e=null!=(a=t.definition.options)?a:[],r=null!=(o=n.maxSelections)?o:1;return(0,i.jsxs)("fieldset",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("legend",{children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("div",{"data-cobrand-element":"option-group",children:e.map(e=>{let n=e.value,a=l.includes(n);return(0,i.jsxs)("label",{"data-cobrand-element":"option",children:[(0,i.jsx)("input",{type:"checkbox",checked:a,disabled:!a&&l.length>=r,onChange:()=>{t.setValue(a?l.filter(e=>e!==n):1===r?[n]:[...l,n])}}),(0,i.jsx)("span",{children:e.label})]},n)})}),(0,i.jsx)(P,{field:t})]})}return(null==n?void 0:n.type)===r.by.Number?(0,i.jsxs)("label",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("input",{type:"number",required:t.definition.required,value:"number"==typeof t.value?t.value:"",onChange:e=>t.setValue(""===e.target.value?void 0:e.target.valueAsNumber)}),(0,i.jsx)(P,{field:t})]}):(null==n?void 0:n.type)===r.by.Date?(0,i.jsxs)("label",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("input",{type:"date",required:t.definition.required,value:"string"==typeof t.value?t.value:"",onChange:e=>t.setValue(e.target.value||void 0)}),(0,i.jsx)(P,{field:t})]}):(0,i.jsxs)("label",{"data-cobrand-element":"field","data-field-kind":t.definition.kind,children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:(0,i.jsx)(A,{definition:t.definition})}),(0,i.jsx)("textarea",{required:t.definition.required,value:"string"==typeof t.value?t.value:"",onChange:e=>t.setValue(e.target.value)}),(0,i.jsx)(P,{field:t})]})},B=e=>{var t;let{field:n}=e;return n.definition.kind===r.aC.Phone||n.definition.kind===r.aC.WhatsApp?(0,i.jsx)(M,{field:n}):n.definition.kind===r.aC.PresavePlatform?(0,i.jsx)(L,{field:n}):n.definition.kind===r.aC.SocialUsername?(0,i.jsx)(I,{field:n}):n.definition.kind===r.aC.Location?(0,i.jsx)(E,{field:n}):n.definition.kind===r.aC.ContentSubmission?(0,i.jsx)(D,{field:n}):n.definition.kind===r.aC.Custom?(0,i.jsx)(V,{field:n}):(null==(t=n.definition.options)?void 0:t.length)?(0,i.jsx)(F,{field:n}):(0,i.jsx)(T,{field:n})},O=e=>{let{className:t}=e,n=(0,a.V3)(),[r,o]=(0,l.useState)("");return(0,i.jsxs)("section",{className:t,"data-cobrand-primitive":"signup","data-workflow-state":n.workflow.state,"aria-labelledby":"cobrand-otp-title",children:[(0,i.jsx)("h2",{id:"cobrand-otp-title",children:"Check your messages"}),(0,i.jsxs)("p",{children:["Enter the code sent to ",n.workflow.otpContactInfo,"."]}),(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n.workflow.submit(r)},children:[(0,i.jsxs)("label",{"data-cobrand-element":"field",children:[(0,i.jsx)("span",{"data-cobrand-element":"field-label",children:"Verification code"}),(0,i.jsx)("input",{name:"otp",type:"text",inputMode:"numeric",autoComplete:"one-time-code",required:!0,maxLength:6,value:r,onChange:e=>o(e.target.value.replace(/\D/g,"").slice(0,6))})]}),n.workflow.errorMessage?(0,i.jsx)("p",{"data-cobrand-element":"form-error",role:"alert",children:n.workflow.errorMessage}):null,(0,i.jsxs)("div",{"data-cobrand-element":"form-actions",children:[(0,i.jsx)("button",{type:"submit",disabled:r.length<6||n.workflow.isBusy,children:n.workflow.isBusy?"Verifyingâ¦":"Verify"}),(0,i.jsx)("button",{type:"button",onClick:n.workflow.closeOtp,children:"Back"})]})]})]})},R=e=>{let{className:t}=e,n=(0,a.V3)().completion;return(0,i.jsxs)("section",{className:t,"data-cobrand-primitive":"signup","data-workflow-state":r.iM.Complete,"data-compact":n.useCompactConfirmation||void 0,"aria-live":"polite",children:[n.shouldShowConfirmation&&n.c
1onfirmationMessage?(0,i.jsx)("h2",{children:n.confirmationMessage}):null,n.presaveService?(0,i.jsxs)("p",{"data-cobrand-element":"presave-status",children:["Connected to ",n.presaveService,"."]}):null,n.promotion?(0,i.jsxs)("div",{"data-cobrand-element":"promotion",children:[n.promotion.descriptions.map(e=>(0,i.jsx)("p",{children:e},e)),(0,i.jsx)("button",{type:"button",onClick:n.promotion.open,children:n.promotion.actionLabel})]}):null,n.share.variant===r.C4.Default?(0,i.jsx)("button",{type:"button",onClick:()=>void n.share.copy(),children:n.share.copied?"Copied":"Copy share link"}):null]})},U=e=>{let{children:t,className:n}=e,l=(0,a.V3)();return(0,i.jsx)("form",{className:n,"data-cobrand-primitive":"signup","data-workflow-state":l.workflow.state,"aria-busy":l.workflow.isBusy,onSubmit:e=>{e.preventDefault(),l.workflow.submit()},children:t})},z=Object.assign(e=>{var t,n,o;let{className:s,buttonText:d,children:c}=e,u=(0,a.W5)(),p=(0,a.V3)();if(void 0!==c)return(0,i.jsx)(l.Fragment,{children:"function"==typeof c?c(p):c});if(p.workflow.state===r.iM.Complete)return(0,i.jsx)(R,{className:s});let h=u.definition.contest;if(h&&h.phase!==r.LB.Open)return(0,i.jsx)("section",{className:s,"data-cobrand-primitive":"signup","data-workflow-state":p.workflow.state,"data-contest-phase":h.phase,children:(0,i.jsx)(m.Details,{})});if(p.workflow.state===r.iM.AwaitingOtp)return(0,i.jsx)(O,{className:s});let f=p.form.consent;return(0,i.jsxs)(U,{className:s,children:[(0,i.jsx)(m.Details,{}),(0,i.jsx)(C.Details,{}),p.form.showContactMethodSelector?(0,i.jsxs)("fieldset",{"data-cobrand-element":"contact-methods",children:[(0,i.jsx)("legend",{children:"Sign up with"}),(0,i.jsx)("div",{"data-cobrand-element":"option-group",children:p.form.availableContactMethods.map(e=>(0,i.jsx)("button",{type:"button","data-cobrand-element":"option-button","aria-pressed":p.form.selectedContactMethod===e,onClick:()=>p.form.setSelectedContactMethod(e),children:_[e]},e))})]}):null,(0,i.jsx)("div",{"data-cobrand-element":"fields",children:p.form.fields.map(e=>(0,i.jsx)(B,{field:e},"".concat(e.definition.key,":").concat(p.form.phone.defaultCountryCode)))}),(0,i.jsxs)("div",{"data-cobrand-element":"consent",children:[f.introText?(0,i.jsx)("p",{children:(0,i.jsx)(N,{text:f.introText})}):null,(null==(t=f.prizeTerms)?void 0:t.visible)?(0,i.jsxs)("label",{"data-cobrand-element":"consent-option",children:[(0,i.jsx)("input",{type:"checkbox",required:f.prizeTerms.required,checked:p.form.prizeTermsConsentChecked,onChange:e=>p.form.setPrizeTermsConsentChecked(e.target.checked)}),(0,i.jsx)("span",{children:(0,i.jsx)(N,{text:f.prizeTerms.text})})]}):null,f.primary.displayText&&f.primary.visible?(0,i.jsxs)("label",{"data-cobrand-element":"consent-option",children:[(0,i.jsx)("input",{type:"checkbox",required:f.primary.required,checked:p.form.primaryConsentChecked,onChange:e=>p.form.setPrimaryConsentChecked(e.target.checked)}),(0,i.jsx)("span",{children:(0,i.jsx)(N,{text:f.primary.displayText})})]}):null,(null==(n=f.secondary)?void 0:n.visible)?(0,i.jsxs)("label",{"data-cobrand-element":"consent-option",children:[(0,i.jsx)("input",{type:"checkbox",required:f.secondary.required,checked:p.form.secondaryConsentChecked,onChange:e=>p.form.setSecondaryConsentChecked(e.target.checked)}),(0,i.jsx)("span",{children:(0,i.jsx)(N,{text:f.secondary.text})})]}):null]}),(0,i.jsx)("hr",{"data-cobrand-element":"divider"}),p.workflow.errorMessage?(0,i.jsx)("p",{"data-cobrand-element":"form-error",role:"alert",children:p.workflow.errorMessage}):null,(0,i.jsx)("button",{"data-cobrand-element":"submit",type:"submit",disabled:!p.workflow.canSubmit||p.workflow.isBusy,children:p.workflow.isBusy?"Workingâ¦":null!=(o=null!=d?d:u.definition.signup.buttonText)?o:"Sign Up"}),(0,i.jsxs)("div",{"data-cobrand-element":"legal",children:[f.primary.displayText&&!f.primary.visible?(0,i.jsx)("p",{"data-cobrand-element":"legal-copy",children:(0,i.jsx)(N,{text:f.primary.displayText})}):null,f.additionalLegal?(0,i.jsx)("p",{"data-cobrand-element":"legal-copy",children:(0,i.jsx)(N,{text:f.additionalLegal})}):null,f.disclosures.map(e=>(0,i.jsx)("p",{"data-cobrand-element":"legal-copy",children:(0,i.jsx)(N,{text:e})},e))]})]})},{Form:U,Fields:e=>{let{children:t,only:n,except:r}=e,o=(0,a.uK)().filter(e=>{let{key:t,kind:i}=e.definition;return!(n&&!n.includes(t)&&!n.includes(i)||r&&(r.includes(t)||r.includes(i)))});return(0,i.jsx)(l.Fragment,{children:o.map(e=>(0,i.jsx)(l.Fragment,{children:t(e)},e.definition.key))})},Field:e=>{let{name:t,children:n}=e,r=(0,a.$e)(t);return r?(0,i.jsx)(l.Fragment,{children:n(r)}):null},ContactMethods:e=>{let{children:t}=e,{form:n}=(0,a.V3)();return n.showContactMethodSelector?(0,i.jsx)(l.Fragment,{children:t({methods:n.availableContactMethods,selected:n.selectedContactMethod,select:n.setSelectedContactMethod})}):null},Consent:e=>{let{children:t}=e,{form:n}=(0,a.V3)();return(0,i.jsx)(l.Fragment,{children:t({definition:n.consent,primaryChecked:n.primaryConsentChecked,setPrimaryChecked:n.setPrimaryConsentChecked,secondaryChecked:n.secondaryConsentChecked,setSecondaryChecked:n.setSecondaryConsentChecked,prizeTermsChecked:n.prizeTermsConsentChecked,setPrizeTermsChecked:n.setPrizeTermsConsentChecked})})},Submit:e=>{let{children:t}=e,{workflow:n}=(0,a.V3)();return(0,i.jsx)(l.Fragment,{children:t({submit:()=>void n.submit(),canSubmit:n.canSubmit,isBusy:n.isBusy,errorMessage:n.errorMessage})})},Otp:e=>{let{className:t}=e;return(0,i.jsx)(O,{className:t})},Complete:e=>{let{className:t}=e;return(0,i.jsx)(R,{className:t})}})},55881:(e,t,n)=>{n.d(t,{C3:()=>s,K7:()=>i,YZ:()=>a,dI:()=>l,rK:()=>o,sl:()=>r});let i="0x4AAAAAAAgFv4Ft4uTjeLhH",l="0x4AAAAAACFek0hgsZ_zjUxH",a="0x4AAAAAACFsAZxNlW2S4_M6",r="X-CB-Seed",o="X-CB-Session",s="X-CB-Proof"},57051:(e,t,n)=>{n.d(t,{Db:()=>m,F4:()=>c,Kv:()=>u,OC:()=>o,OW:()=>r,dL:()=>s,xy:()=>h,yk:()=>d});var i=n(10276),l=n(59653);let a=(e,t,n)=>{let l=t?i.legalInformation.smsConsentCheckbox:i.legalInformation.smsConsent;return n?n(t?"legalInformation.smsConsentCheckbox":"legalInformation.smsConsent",{drop_profile_title:e}):l.replaceAll("{{drop_profile_title}}",e)},r=(e,t,n)=>a(e,t,n).replace(/<terms>(.*?)<\/terms>/g,"$1 (".concat(l.er,")")).replace(/<privacy>(.*?)<\/privacy>
1/g,"$1 (".concat(l.WO,")")),o=(e,t,n)=>a(e,t,n).replace(/<terms>(.*?)<\/terms>/g,"[$1](".concat(l.er,")")).replace(/<privacy>(.*?)<\/privacy>/g,"[$1](".concat(l.WO,")")),s=e=>"I want Warner Music Group companies to send me marketing messages about ".concat(e," based on my interests and activity."),d="I want Warner Music Group companies to send me marketing messages about Music, Artists, and Merch based on my interests and activity. Unsubscribe at any time. For more information about how we use your information please read our Privacy Policy (https://privacy.wmg.com/wmi/cobrand/terms-of-use).",c=e=>{var t,n,i,a,r;let o=null!=(a=null!=(i=null==(t=e.drop_profile)?void 0:t.title)?i:e.title)?a:"",s=null!=(r=null==(n=e.drop_profile)?void 0:n.business_name)?r:"";return"It is optional to check this box. By checking this box and submitting my phone number, I consent to receive recurring automated marketing messages from ".concat(o," of ").concat(s,". Msg & Data rates may apply. Msg frequency varies. Reply STOP to cancel, HELP for help. SMS will be sent via co:brand. See co:brand's Terms of Service (").concat(l.er,") and Privacy Policy (").concat(l.WO,").")},u="{{link}}",p="Prize Terms & Conditions",m="I have read and agree to the ".concat(u,"."),h=(e,t)=>{let n=e.trim()||m,i=t?"[".concat(p,"](").concat(t,")"):p;return n.includes(u)?n.replaceAll(u,i):t?"".concat(n," ").concat(i):n}},58294:(e,t,n)=>{n.d(t,{Fh:()=>a,eG:()=>s,oy:()=>r,s3:()=>o});var i=n(59295),l=n(33596);let a=(e,t)=>{if(!(null==e?void 0:e.minimum_age))return!0;let n=(0,i.A)(null!=t?t:"",l.k,!0);return!n.isValid()||(0,i.A)().diff(n,"years")>=e.minimum_age},r=(e,t)=>null==e||!e.eligible_country_codes.length||!t||e.eligible_country_codes.includes(t.toUpperCase()),o=e=>!!(null==e?void 0:e.minimum_age),s=e=>{var t;return!!(null==e||null==(t=e.eligible_country_codes)?void 0:t.length)}},59653:(e,t,n)=>{n.d(t,{Bg:()=>o,E$:()=>r,UR:()=>a,WO:()=>l,er:()=>i});let i="https://music.cobrand.com/terms-of-service/",l="https://music.cobrand.com/privacy-policy/",a="https://music.cobrand.com/content-upload-terms/",r="https://calendly.com/d/cr9j-27r-82p/cobrand-demo",o="registration-example"},60078:(e,t,n)=>{n.d(t,{A:()=>ep});var i=n(6029),l=n(84350),a=n(26130),r=n(55025),o=n(75828),s=n.n(o),d=n(55729),c=n(29733),u=n(89388),p=n(83409),m=n(87994),h=n(82558),f=n(28894);let g=e=>{let t,{text:n}=e;if(!n)return null;let l=/\[([^\]]+)\]\(([^)]+)\)/g,a=[],r=0;for(;null!==(t=l.exec(n));){t.index>r&&a.push(n.slice(r,t.index));let[,e,l]=t;a.push((0,i.jsx)("a",{href:l,className:"underline",target:"_blank",rel:"noopener noreferrer",children:e},t.index)),r=t.index+t[0].length}return r<n.length&&a.push(n.slice(r)),a.length>0?(0,i.jsx)(d.Fragment,{children:a}):n};var b=n(16989),x=n(60133),v=n(49956),k=n(25984),y=n(25176),C=n(85693),_=n(61320);let w="touch-manipulation dark:!fill-white !fill-black !text-[16px] !h-[40px] transition !border-black/[8%] dark:!border-white/[8%] !bg-black/[4%] dark:!bg-white/[8%] placeholder:!text-black/60 dark:placeholder:!text-white/60 focus-within:!border-black focus-within:hover:!border-black dark:focus-within:hover:!border-white hover:!border-black/[24%] dark:hover:!border-white/[24%] dark:focus-within:!border-white",j=e=>{let{className:t,...n}=e;return(0,i.jsx)(C.p,{className:s()(w,t),InputLabelComponent:_.A,inputClassName:"placeholder:!text-black/60 dark:placeholder:!text-white/60",...n})},S="!border-black/[8%] !bg-white dark:!border-white/[8%] dark:!bg-black",N="!font-normal hover:!bg-black/[8%] dark:hover:!bg-white/[8%] !text-black/[72%] dark:!text-white/[72%] hover:!text-black dark:hover:!text-white ",A=e=>{let{items:t,className:n,triggerClassName:l,selectedIndex:a,...r}=e,{t:o}=(0,c.Bd)();return(0,i.jsx)(k.m,{items:t.map(e=>({...e,titleClassName:s()(e.titleClassName,"!text-[15px]")})),renderCustomTrigger:e=>{let{isOpen:t,onClick:n,selectedItem:r}=e;return(0,i.jsx)(y.u,{isOpen:t,hasSelection:!!r,title:(null==r?void 0:r.title)||"-- ".concat(o("common.select")," --"),iconType:null==r?void 0:r.iconType,onClick:n,className:s()(w,"rounded-[10px] !fill-black dark:!fill-white",{"!text-black/60 dark:!text-white/60":-1===a,"!text-black dark:!text-white":void 0!==a&&a>-1}
1,l),titleClassName:"!text-[16px]"})},triggerClassName:"w-full",className:s()(n,S),dropdownItemClassName:N,selectedIndex:a,...r})},P=e=>{let{definition:t,checkboxConsent:n,hideDefaultConsentMessage:l=!1,hideAdditionalLegal:a=!1}=e;return(0,i.jsxs)("div",{className:s()("space-y-2",{"text-center":!n,"text-left":n}),children:[l?null:(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:t.primary.displayText})}),t.additionalLegal&&!a&&(0,i.jsx)(v.E,{className:"whitespace-break-spaces text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:t.additionalLegal})})]})},T=e=>{let{iconType:t,isSelected:n,onClick:l}=e;return(0,i.jsx)("div",{className:s()("flex h-[40px] cursor-pointer items-center justify-center rounded-[10px] transition",{"bg-black/[4%] fill-black/50 hover:bg-black/[8%] active:bg-black/[12%] dark:bg-white/[8%] dark:fill-white/50 dark:hover:bg-white/[12%] dark:active:bg-white/[24%]":!n,"bg-black/[12%] fill-black dark:bg-white/[24%] dark:fill-white":n}),onClick:l,children:(0,i.jsx)(h.I,{type:t,size:24,className:"fill-inherit"})})},M=e=>{let{length:t=6,onChange:n}=e,[l,a]=(0,d.useState)(""),[r,o]=(0,d.useState)(!1),s=(0,d.useRef)(null),c=()=>{requestAnimationFrame(()=>{var e;return null==(e=s.current)?void 0:e.focus()})};return(0,d.useEffect)(()=>{n&&n(l)},[l,t,n]),(0,d.useEffect)(()=>{let e=()=>{var t;null==(t=s.current)||t.focus(),window.removeEventListener("touchstart",e)};window.addEventListener("touchstart",e);let t=setTimeout(()=>{var e;return null==(e=s.current)?void 0:e.focus()},100);return()=>{clearTimeout(t),window.removeEventListener("touchstart",e)}},[]),(0,i.jsxs)("div",{className:"relative",onClick:c,onTouchStart:c,children:[(0,i.jsx)("div",{className:"absolute inset-0 z-20",children:(0,i.jsx)("input",{ref:s,type:"text",inputMode:"numeric",autoComplete:"one-time-code",className:"h-full w-full bg-transparent text-transparent caret-transparent",style:{WebkitAppearance:"none",outline:"none"},value:l,onChange:e=>{let i=e.target.value.replace(/\D/g,"").slice(0,t);a(i),n&&n(i)},onPaste:e=>{e.preventDefault();let i=e.clipboardData.getData("Text").replace(/\D/g,"").slice(0,t);a(i),null==n||n(i)},onFocus:()=>o(!0),onBlur:()=>o(!1),autoFocus:!0})}),(0,i.jsx)("div",{className:"pointer-events-none flex flex-row space-x-1",children:Array.from({length:t}).map((e,n)=>{let a=n===l.length;return(0,i.jsxs)("div",{className:"pointer-events-none flex h-[44px] w-[40px] cursor-text items-center justify-center border-b border-black bg-black/[4%] text-center focus:outline-none dark:border-white dark:bg-white/[8%]",children:[(0,i.jsx)(v.E,{typography:v.o.Title2,className:"text-black dark:text-white",children:l[n]||""}),a&&l.length<t&&r&&(0,i.jsx)("span",{className:"animate-blink absolute h-7 w-px bg-black dark:bg-white"})]},n)})})]})};var F=n(10706),L=n(35983);let I=e=>{var t;let{onClose:n,onClickVerify:a,verifyIsLoading:r,dropContactMethodType:o,contactInfo:s,errorMessage:u,portalParentRef:m}=e,{t:f}=(0,c.Bd)(),[g,b]=(0,d.useState)(""),x=(0,d.useMemo)(()=>{switch(o){case l.vi.Email:return f("dropSignupForm.signupMethod.emailAddress");case l.vi.Phone:return f("dropSignupForm.signupMethod.phoneNumber");case l.vi.WhatsApp:return f("dropSignupForm.signupMethod.whatsappNumber")}},[o,f]);return(0,i.jsx)(L.H,{portalParentRef:m,isOpen:!0,children:(0,i.jsxs)("div",{className:"relative flex flex-col items-center space-y-5 rounded-[20px] border border-black/[8%] bg-black/[4%] p-6 text-center dark:border-white/[8%] dark:bg-white/[8%]",children:[(0,i.jsx)("div",{className:"absolute right-4 top-4",children:(0,i.jsx)(F.A,{type:F._.IconOnly,onClick:n,iconType:h.A.Close})}),(0,i.jsx)("div",{className:"flex h-[80px] w-[80px] shrink-0 items-center justify-center rounded-[28px] bg-black/[3%] shadow-[inset_0_0_10px_3px_#00000014] dark:bg-white/[3%] dark:shadow-[inset_0_0_10px_3px_#FFFFFF33]",children:(0,i.jsx)(h.I,{type:o===l.vi.Email?h.A.Mail:o===l.vi.Phone?h.A.Mobile:h.A.WhatsApp,size:32,className:"fill-black dark:fill-white"})}),(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)(v.E,{typography:v.o.Subheadline,bold:!0,className:"text-black dark:text-white",children:f("dropOtpModal.title")}),(0,i.jsx)(v.E,{typography:v.o.Subheadline,className:"text-black/60 dark:text-white/60",children:f("dropOtpModal.description",{signupMethod:null!=(t=null==x?void 0:x.toLowerCase())?t:"",contactInfo:s||"<contact_info>"})})]}),(0,i.jsx)(M,{onChange:b}),(0,i.jsx)("div",{className:"h-[1px] w-full bg-black/[12%] dark:bg-white/[12%]"}),(0,i.jsxs)("div",{className:"flex w-full flex-col items-center space-y-3",children:[(0,i.jsx)(p.$n,{type:p.VQ.Primary,size:p.Mp.Large,onClick:()=>a(g),text:f("common.verify"),className:"w-full",loading:r,disabled:g.length<6}),u&&(0,i.jsx)(v.E,{className:"text-error-tertiary",typography:v.o.C
1aption1,children:u})]})]})})};var E=n(92017);let D=e=>{let{descriptions:t,actionLabel:n,onAction:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"border-b border-black/[12%] dark:border-white/[12%]"}),(0,i.jsx)("div",{className:"flex flex-col items-center space-y-0.5",children:(0,i.jsx)("div",{className:"w-full",children:t.map(e=>(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"text-black/60 dark:text-white/60",children:e},e))})}),(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(p.$n,{type:p.VQ.Primary,size:p.Mp.Small,text:n,onClick:l})})]})},V=e=>{let{inModalStyling:t,className:n}=e,{t:r}=(0,c.Bd)(),o=(0,a.W5)(),d=(0,a.V3)().completion,u=o.definition.blocks.postSignup,m=d.share.variant===l.C4.Hidden,f=d.shouldShowConfirmation&&0===u.length,g=f||!m;return(0,i.jsxs)("div",{className:"space-y-6",children:[d.presaveService===l.HU.Spotify?(0,i.jsxs)("div",{className:"flex flex-row items-center space-x-3 rounded-xl bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",children:[(0,i.jsx)("img",{src:"https://storage.googleapis.com/loudly-public/Spotify_Icon_CMYK_Green.png",alt:"",className:"h-9 w-9 rounded-[10px]"}),(0,i.jsxs)("div",{className:"flex flex-col space-y-0.5 text-left",children:[(0,i.jsx)(v.E,{typography:v.o.Footnote,bold:!0,className:"text-neutral-secondary",children:"Spotify"}),(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"text-success-tertiary",children:r("dropPostSignup.preSaved")})]})]}):d.presaveService===l.HU.AppleMusic?(0,i.jsxs)("div",{className:"flex flex-row items-center space-x-3 rounded-xl bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",children:[(0,i.jsx)(h.I,{type:h.A.Apple,className:"fill-black dark:fill-white",size:28}),(0,i.jsxs)("div",{className:"flex flex-col space-y-0.5 text-left",children:[(0,i.jsx)(v.E,{typography:v.o.Footnote,bold:!0,className:"text-neutral-secondary",children:"Apple Music"}),(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"text-success-tertiary",children:r("dropPostSignup.preSaved")})]})]}):null,u.length>0||g?(0,i.jsxs)("div",{className:s()("flex w-full flex-col space-y-6 rounded-2xl",{"bg-black/[4%] p-6 dark:bg-white/[8%]":!t},n),children:[u.length>0?(0,i.jsx)(E.A,{position:l.W6.PostSignup,showBottomDivider:!1,confirmationTitleTypography:d.useCompactConfirmation?v.o.Body:v.o.Title1}):null,g?(0,i.jsxs)(i.Fragment,{children:[u.length>0?(0,i.jsx)("div",{className:"border-b border-black/[12%] dark:border-white/[12%]"}):null,(0,i.jsxs)("div",{className:"flex flex-col space-y-6 text-center",children:[f?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.E,{typography:d.useCompactConfirmation?v.o.Body:v.o.Title1,bold:!0,className:"text-black dark:text-white",children:d.confirmationMessage}),m?null:(0,i.jsx)("div",{className:"border-b border-black/[12%] dark:border-white/[12%]"})]}):null,m?null:d.share.variant===l.C4.FredAgainCashApp?d.promotion?(0,i.jsx)(D,{descriptions:d.promotion.descriptions,actionLabel:d.promotion.actionLabel,onAction:d.promotion.open}):null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col items-center space-y-0.5",children:[(0,i.jsx)(v.E,{typography:v.o.Callout,className:"text-black dark:text-white",children:r("dropPostSignup.shareDrop")}),(0,i.jsx)("div",{className:"w-full truncate",children:(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"truncate text-black/60 dark:text-white/60",children:d.share.url})})]}),(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(p.$n,{type:p.VQ.Primary,size:p.Mp.Small,text:r(d.share.copied?"dropPostSignup.copiedLink":"dropPostSignup.copyLink"),onClick:d.share.copy})})]})]})]}):null]}):null]})},B=e=>{var t,n,l,a;let{definition:r,isOptInCheckboxChecked:o,setIsOptInCheckboxChecked:d=()=>{},isSecondaryCheckboxOptInChecked:c,setIsSecondaryCheckboxOptInChecked:u=()=>{},buttonText:h,errorMessage:f,onSubscribe:b,isRSVPButtonDisabled:x,subscribeButtonIsLoading:k,subscribeButtonLoadingText:y}=e;return(0,i.jsxs)("div",{className:"w-full space-y-5",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"flex items-start gap-2",children:[(0,i.jsx)(m.S,{checked:o,onChange:e=>d(e)}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.C
1aption2,children:(0,i.jsx)(g,{text:r.primary.displayText})})]}),(0,i.jsxs)("div",{className:"flex items-start gap-2",children:[(0,i.jsx)(m.S,{checked:c,onChange:e=>u(e)}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:null==(t=r.secondary)?void 0:t.text})})]}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:null!=(n=r.disclosures[0])?n:""})}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:null!=(l=r.disclosures[1])?l:""})})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,i.jsx)(p.$n,{type:p.VQ.Primary,text:h,className:s()("w-full disabled:!bg-black/[24%] disabled:!text-white/[72%] dark:disabled:!bg-white/[24%]",{"shadow-raised shadow-primary-800":!x()}),size:p.Mp.Large,loading:k,loadingText:y,disabled:x(),onClick:()=>b()}),f&&(0,i.jsx)(v.E,{className:"text-error-tertiary",typography:v.o.Caption1,children:f}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:null!=(a=r.disclosures[2])?a:""})})]})]})};var O=n(59295),R=n(42042),U=n(83456),z=n(92711),W=n(74686);let q=e=>{let{className:t,...n}=e;return(0,i.jsx)(W.Y,{className:s()(w,t),InputLabelComponent:_.A,inputClassName:"placeholder:!text-black/60 dark:placeholder:!text-white/60",...n})},H=e=>{var t,n,l;let{definition:a,value:r,onChangeCustomField:o}=e,d=null!=(l=null==(t=a.customField)?void 0:t.maxSelections)?l:1,c=Array.isArray(r)?r:[];return(0,i.jsx)("div",{className:"space-y-2",children:null==(n=a.options)?void 0:n.map(e=>{let t=e.value,n=c.includes(t);return(0,i.jsxs)("div",{className:s()("flex min-h-10 flex-row items-start justify-between space-x-3 rounded-[10px] px-3 py-[10px] transition hover:bg-black/[8%] active:bg-black/[12%] dark:hover:bg-white/[12%] dark:active:bg-white/[24%]",{"bg-black/[4%] dark:bg-white/[8%]":!n,"bg-black/[12%] dark:bg-white/[24%]":n}),onClick:()=>(e=>{let t;if(c.includes(e))t=c.filter(t=>t!==e);else if(1===d)t=[e];else{if(!(c.length<d))return;t=[...c,e]}o(t)})(t),children:[(0,i.jsx)(v.E,{typography:v.o.Subheadline,bold:n,className:"flex-grow break-all text-black dark:text-white",children:e.label}),(0,i.jsx)(m.S,{checked:n,onChange:()=>{},className:"fill-black dark:fill-white"})]},t)})})},Z=e=>{let{value:t,onChangeCustomField:n}=e,{t:l}=(0,c.Bd)();return(0,i.jsx)(z.f,{placeholder:l("common.answerWithText"),value:"string"==typeof t?t:"",onChange:e=>n(e.target.value),className:s()(w,"min-h-[80px] w-full text-black dark:text-white")})},G=e=>{let{value:t,onChangeCustomField:n}=e,{t:l}=(0,c.Bd)();return(0,i.jsx)(q,{placeholder:l("common.answerWithNumber"),value:"number"==typeof t?t:void 0,onChange:n,className:"w-full"})},Y=e=>{var t;let{value:n,onChangeCustomField:l,portalParentRef:a}=e,{i18n:r,t:o}=(0,c.Bd)(),[u,m]=(0,d.useState)(!1),f="string"==typeof n?(0,O.A)(n):void 0,g=(null==f?void 0:f.isValid())?f:void 0,[b,x]=(0,d.useState)(null!=(t=null==g?void 0:g.clone().startOf("M"))?t:(0,O.A)().startOf("M"));return(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(L.H,{portalParentRef:a,isOpen:u,className:"rounded-[20px] shadow-none",children:(0,i.jsx)(U.A,{selectedDate:g,setSelectedDate:e=>{let t="function"==typeof e?e(g):e;l(null==t?void 0:t.format(R.a7))},currentMonth:b,setCurrentMonth:x,onDateChange:e=>l(e.format(R.a7)),additionalReactNodes:(0,i.jsx)(p.$n,{type:p.VQ.Primary,size:p.Mp.Small,onClick:()=>m(!1),text:o("common.done"),className:"w-full"}),theme:U.e.Drop,locale:r.resolvedLanguage||"en",labels:{previousMonth:o("common.previousMonth"),nextMonth:o("common.nextMonth"),selectDate:o("common.selectDate")}})}),(0,i.jsx)(y.u,{isOpen:u,hasSelection:!0,title:g?g.format(R._5):o("common.selectDate"),iconType:h.A.Calendar,onClick:()=>m(e=>!e),className:s()(w,"rounded-[10px] !fill-black !text-black dark:!fill-white dark:!text-white"),titleClassName:"!text-[15px]"})]})},K=e=>{var t,n,a,r;let{definition:o,value:s,onChangeCustomField:d,portalParentRef:u}=e,{t:p}=(0,c.Bd)();return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:o.label||"<".concat(p("common.customQuestion"),">
1"),required:o.required,className:"break-words"}),(null==(t=o.customField)?void 0:t.type)===l.by.MultipleChoice&&(0,i.jsx)(H,{definition:o,value:s,onChangeCustomField:d}),(null==(n=o.customField)?void 0:n.type)===l.by.Text&&(0,i.jsx)(Z,{definition:o,value:s,onChangeCustomField:d}),(null==(a=o.customField)?void 0:a.type)===l.by.Number&&(0,i.jsx)(G,{definition:o,value:s,onChangeCustomField:d}),(null==(r=o.customField)?void 0:r.type)===l.by.Date&&(0,i.jsx)(Y,{definition:o,value:s,onChangeCustomField:d,portalParentRef:u})]})},J=e=>{let{error:t}=e;return t?(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"text-error-tertiary",children:t}):null};var Q=n(51139),$=n(64237),X=n(99998),ee=n(91401),et=n(95412);let en=e=>{let{iconType:t=h.A.Upload,title:n,description:l,onClick:a}=e,{t:r}=(0,c.Bd)(),o=n||r("dropSignupForm.submitContent.uploadFiles");return(0,i.jsxs)("div",{className:s()("flex h-full w-full flex-col items-center justify-center space-y-2 rounded-2xl border-2 border-dashed border-black/[40%] p-5 transition dark:border-white/[50%]",{"curs
1or-pointer hover:border-black/[60%] dark:hover:border-white/[70%]":a}),onClick:a,children:[t&&(0,i.jsx)(h.I,{type:t,size:20,className:"fill-black dark:fill-white"}),(0,i.jsxs)("div",{className:"flex max-w-[250px] flex-col items-center space-y-1",children:[o&&(0,i.jsx)(v.E,{typography:v.o.Footnote,bold:!0,className:"text-center text-black dark:text-white",children:o}),l&&(0,i.jsx)(v.E,{typography:v.o.Caption1,className:"text-center text-slate-400",children:l})]})]})};var ei=n(59653);let el=e=>{let{artistName:t}=e;return(0,i.jsx)(v.E,{className:"text-center text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(c.x6,{i18nKey:"dropSignupForm.submitContent.uploadConsent",values:{drop_profile_title:t},components:{terms:(0,i.jsx)("a",{href:ei.UR,className:"underline",target:"_blank",rel:"noopener noreferrer"})}})})},ea=()=>{let{t:e}=(0,c.Bd)(),t=(0,a.V3)(),n=(0,a.W5)(),l=t.contentSubmission,r=(0,R.bn)(l.maxFileSizeBytes,0);return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:e("dropSignupForm.submitContent.submitYourContent")}),l.remainingSlots>0?(0,i.jsx)($.l,{setFiles:l.addFiles,accept:l.acceptedFileTypes,multiple:l.remainingSlots>1,isDisabled:n.isPreview,children:(0,i.jsx)(en,{title:e("dropSignupForm.submitContent.uploadFiles"),description:e("dropSignupForm.submitContent.fileLimit",{fileSize:r}),onClick:()=>{}})}):(0,i.jsx)(v.E,{typography:v.o.Footnote,className:"text-yellow-600",children:e("dropSignupForm.submitContent.maximumSubmissions")}),l.entries.length>0&&(0,i.jsx)("div",{className:"space-y-1",children:l.entries.map(t=>(0,i.jsxs)("div",{className:"flex flex-row items-center space-x-2 rounded-lg bg-black/[4%] p-2 dark:bg-white/[8%]",children:["loading"===t.status&&(0,i.jsx)(X.I,{size:16,className:"fill-black dark:fill-white"}),"failed"===t.status&&(0,i.jsx)(et.m,{title:e("common.uploadFailed"),description:t.error,children:(0,i.jsx)(h.I,{type:h.A.Warning,size:16,className:"fill-black/[50%] dark:fill-white/[50%]"})}),"success"===t.status&&(0,i.jsx)(h.I,{type:(0,Q.Zj)(t.filename)?h.A.Image:h.A.Video,size:16,className:"fill-black/[50%] dark:fill-white/[50%]"}),(0,i.jsx)(v.E,{typography:v.o.Footnote,className:"flex-grow text-black/[60%] dark:text-white/[60%]",children:t.filename}),"loading"!==t.status&&(0,i.jsx)(F.A,{type:F._.IconOnly,onClick:()=>l.remove(t.id),iconType:h.A.Trash}),"loading"===t.status&&void 0!==t.uploadProgress&&(0,i.jsx)("div",{className:"w-[60px]",children:(0,i.jsx)(ee.A,{progress:t.uploadProgress})})]},t.id))}),t.form.consent.dropProfileTitle?(0,i.jsx)(el,{artistName:t.form.consent.dropProfileTitle}):null]})})};var er=n(33596);let eo={[l.vi.Email]:h.A.Mail,[l.vi.Phone]:h.A.Mobile,[l.vi.WhatsApp]:h.A.WhatsApp},es={[l.uH.Instagram]:h.A.Instagram,[l.uH.TikTok]:h.A.TikTok},ed={[l.uH.Instagram]:"Instagram",[l.uH.TikTok]:"TikTok"},ec=e=>"string"==typeof(null==e?void 0:e.value)||"number"==typeof(null==e?void 0:e.value)?String(e.value):"",eu=e=>{var t,n,r,o,k;let{buttonText:y,className:C,inModalStyling:M,portalParentRef:F,showUploadConsent:L=!1}=e,{t:E}=(0,c.Bd)(),D=y||E("common.signUp"),O=(0,a.V3)(),{form:R,workflow:U,socialUsername:z,presave:W,contentSubmission:q}=O,H=e=>R.fields.find(t=>t.definition.kind===e),Z=H(l.aC.Email),G=H(l.aC.Phone),Y=H(l.aC.WhatsApp),Q=H(l.aC.SocialUsername),$=H(l.aC.FirstName),X=H(l.aC.LastName),ee=H(l.aC.Birthdate),et=H(l.aC.Gender),en=H(l.aC.Location),ei=H(l.aC.Language),eu=R.selectedContactMethod,ep=!!Z,em=!!G,eh=!!Y,ef=R.showContactMethodSelector,eg=R.forceEmailPlusMessagingChoice,eb=R.phone.defaultCountryCode,ex=(()=>{switch(eu){case l.vi.Email:return E("dropSignupForm.signupMethod.emailAddress");case l.vi.Phone:return E("dropSignupForm.signupMethod.phoneNumber");case l.vi.WhatsApp:return E("dropSignupForm.signupMethod.whatsappNumber")}})(),ev=z.availablePlatforms.map(e=>({iconType:es[e],value:e})),ek=R.availableContactMethods.map(e=>({iconType:eo[e],value:e})),ey=ev.findIndex(e=>e.value===z.selectedPlatform),eC=W.selectedPlatform,e_=W.setSelectedPlatform,ew=U.errorMessage,ej=()=>
1!U.canSubmit,eS=U.submit,eN=R.consent,eA=eN.primary.visible;if(U.state===l.iM.AwaitingOtp)return(0,i.jsx)(I,{onClose:U.closeOtp,onClickVerify:U.submit,verifyIsLoading:U.isBusy,dropContactMethodType:U.otpContactMethod,contactInfo:U.otpContactInfo,errorMessage:U.errorMessage,portalParentRef:F});if(U.state===l.iM.Complete)return(0,i.jsx)(V,{inModalStyling:M,className:C});let eP=(null!=(o=null==et?void 0:et.definition.options)?o:[]).map(e=>({title:e.label,value:e.value})),eT=(null!=(k=null==ei?void 0:ei.definition.options)?k:[]).map(e=>({title:e.label,value:e.value})),eM=U.isBusy,eF=eM?(0,i.jsx)(x.A,{titles:[E("dropSignupForm.verifyingDetails"),E("dropSignupForm.makingSureYouAreHuman"),E("dropSignupForm.submitting")],lineHeightPx:22,intervalMs:3e3,stopOnLast:!0}):void 0,eL=R.contactMethodOrder,eI=eL.find(e=>e===l.vi.Phone||e===l.vi.WhatsApp);return(0,i.jsx)("div",{className:s()("w-full rounded-xl",{"bg-black/[8%] dark:bg-white/[8%]":!M},C),children:(0,i.jsxs)("div",{className:"w-full space-y-5",children:[(0,i.jsxs)("div",{className:"w-full space-y-4",children:[ef&&!eg&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{label:ex,required:!0}),(0,i.jsx)("div",{className:"flex flex-row space-x-3 [&>*]:flex-1",children:ek.map(e=>(0,i.jsx)(T,{iconType:e.iconType,isSelected:eu===e.value,onClick:()=>R.setSelectedContactMethod(e.value)},"drop-signup-method__".concat(e.value)))})]}),eL.map(e=>(0,i.jsxs)(d.Fragment,{children:[e===l.vi.Email&&ep&&(0,i.jsx)(j,{name:"email",className:"w-full",placeholder:E("dropSignupForm.signupMethod.emailAddressPlaceholder"),value:ec(Z),onChange:e=>null==Z?void 0:Z.setValue(e.target.value),validators:[u.Bj],label:!ef||eg?E("dropSignupForm.signupMethod.emailAddress"):void 0,required:!0}),e===eI&&ef&&eg&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{label:ex,required:!0}),(0,i.jsx)("div",{className:"flex flex-row space-x-3 [&>*]:flex-1",children:ek.map(e=>(0,i.jsx)(T,{iconType:e.iconType,isSelected:eu===e.value,onClick:()=>R.setSelectedContactMethod(e.value)},"drop-signup-method__".concat(e.value)))})]}),e===(eg?eI:l.vi.Phone)&&em&&(0,i.jsxs)("div",{className:"space-y-2",children:[!ef&&(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.phoneNumber"),required:!0}),(0,i.jsx)(b.A,{value:ec(G),onChange:e=>null==G?void 0:G.setValue(e),required:!0,country:eb,dropdownHideScrollbar:!0,label:"",inputClassName:w,prefixClassName:"flex items-center justify-center !fill-black dark:!fill-white",className:s()(S,"[&>*:first-child]:!border-black/[20%] dark:[&>*:first-child]:!border-white/[20%]"),dropdownItemClassName:N,titleClassName:"!text-[15px]",innerInputClassName:"placeholder:!text-black/60 dark:placeholder:!text-white/60"})]}),e===(eg?eI:l.vi.WhatsApp)&&eh&&(0,i.jsxs)("div",{className:"space-y-2",children:[!ef&&(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.whatsappNumber"),required:!0}),(0,i.jsx)(b.A,{value:ec(Y),onChange:e=>null==Y?void 0:Y.setValue(e),required:!0,country:eb,dropdownHideScrollbar:!0,label:"",inputClassName:w,prefixClassName:"flex items-center justify-center !fill-black dark:!fill-white",className:s()(S,"[&>*:first-child]:!border-black/[20%] dark:[&>*:first-child]:!border-white/[20%]"),dropdownItemClassName:N,titleClassName:"!text-[15px]",innerInputClassName:"placeholder:!text-black/60 dark:placeholder:!text-white/60"})]})]},e))]}),R.fields.filter(e=>e.definition.kind!==l.aC.Email&&e.definition.kind!==l.aC.Phone&&e.definition.kind!==l.aC.WhatsApp).map(e=>(0,i.jsx)(d.Fragment,{children:(e=>{switch(e.definition.kind){case l.aC.FirstName:return(0,i.jsxs)("div",{className:"w-full space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.firstAndLastName")}),(0,i.jsxs)("div",{className:"flex w-full flex-row gap-2 [&>*]:w-[calc(50%-4px)]",children:[(0,i.jsx)(j,{className:"w-full",placeholder:E("dropSignupForm.signupMethod.firstNamePlaceholder"),value:ec($),onChange:e=>null==$?void 0:$.setValue(e.target.value),validators:[(0,u.jD)(100)]}),(0,i.jsx)(j,{className:"w-full",placeholder:E("dropSignupForm.signupMethod.lastNamePlaceholder"),value:ec(X),onChange:e=>null==X?void 0:X.setValue(e.target.value),validators:[(0,u.jD)(100)]})]})]});case l.aC.LastName:return null;case l.aC.Birthdate:return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:"".concat(E("dropSignupForm.signupMethod.birthdate")," (").concat(er.k,")"),required:null==ee?void 0:ee.definition.required}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(j,{type:"date",autoComplete:"bday",value:ec(ee),onChange:e=>null==ee?void 0:ee.setValue(e.target.value),className:"w-full"}),(0,i.jsx)(J,{error:null==ee?void 0:ee.error})]})]});case l.aC.Gender:return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.gender")}),(0,i.jsx)(A,{items:eP,selectedIndex:eP.findIndex(e=>e.value===(null==et?void 0:et.value)),onItemIndexChange:e=>{var t;null==et||et.setValue(null==(t=eP[e])?void 0:t.value)},matchTriggerWidth:!0,triggerClassName:"w-full"})]});case l.aC.Location:return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.city"),required:null==en?void 0:en.definition.required}),(0,i.jsx)(f.A,{onSelectPlace:()=>O.location.clear(),InputComponent:j,initialInputValue:O.location.displayValue,providedSuggestions:O.location.suggestions.map(e=>
1({title:e.title,description:e.description,value:e.id})),onSearch:O.location.search,onSelectSuggestion:e=>O.location.select(String(e.value)),popoutClassName:S,dropdownItemClassName:N}),(0,i.jsx)(J,{error:null==en?void 0:en.error})]});case l.aC.Language:return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.language")}),(0,i.jsx)(A,{items:eT,selectedIndex:eT.findIndex(e=>e.value===(null==ei?void 0:ei.value)),onItemIndexChange:e=>{var t;null==ei||ei.setValue(null==(t=eT[e])?void 0:t.value)},matchTriggerWidth:!0,triggerClassName:"w-full"})]});case l.aC.PresavePlatform:return W.isPlatformLocked?null:(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.streamingPlatform")}),(0,i.jsxs)("div",{className:"flex w-full flex-row space-x-3 [&>*]:flex-1",children:[(0,i.jsx)(T,{iconType:h.A.Spotify,isSelected:eC===l.NS.Spotify,onClick:()=>e_(l.NS.Spotify)}),(0,i.jsx)(T,{iconType:h.A.Apple,isSelected:eC===l.NS.AppleMusic,onClick:()=>e_(l.NS.AppleMusic)})]})]});case l.aC.SocialUsername:var t,n;return ev.length>0?(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(_.A,{label:E("dropSignupForm.signupMethod.platformUsername",{platform:ed[null!=(n=null==(t=ev[ey])?void 0:t.value)?n:l.uH.Instagram]})}),ev.length>1&&(0,i.jsx)("div",{className:"flex flex-row space-x-3 [&>*]:flex-1",children:ev.map((e,t)=>(0,i.jsx)(T,{iconType:e.iconType,isSelected:t===ey,onClick:()=>z.setSelectedPlatform(e.value)},"drop-platform__".concat(e.value)))}),(0,i.jsx)(j,{className:"w-full",placeholder:E("dropSignupForm.signupMethod.usernamePlaceholder"),value:ec(Q),onChange:e=>null==Q?void 0:Q.setValue(e.target.value)})]}):null;case l.aC.ContentSubmission:return q.shouldShowPicker&&q.enabled?(0,i.jsx)(ea,{}):null;case l.aC.Custom:return e.definition.customField?(0,i.jsx)(K,{definition:e.definition,value:e.value,onChangeCustomField:e.setValue,portalParentRef:F}):null;default:return null}})(e)},e.definition.key)),(0,i.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"}),(0,i.jsxs)("div",{className:"space-y-5",children:[(null==(t=eN.prizeTerms)?void 0:t.visible)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)(m.S,{checked:R.prizeTermsConsentChecked,onChange:R.setPrizeTermsConsentChecked}),(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)(v.E,{className:"block text-black dark:text-white",typography:v.o.Footnote,bold:!0,children:E("dropContest.prizeTerms")}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:eN.prizeTerms.text})})]})]}),(0,i.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"})]}):null,eN.mode===l.p5.RegistrationExample?(0,i.jsxs)("div",{className:"w-full space-y-5",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(v.E,{typography:v.o.Caption2,className:"whitespace-break-spaces text-black/40 dark:text-white/40",children:eN.introText}),(0,i.jsxs)("div",{className:"flex items-start gap-2",children:[(0,i.jsx)(m.S,{checked:R.primaryConsentChecked,onChange:R.setPrimaryConsentChecked}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.Caption2,children:(0,i.jsx)(g,{text:eN.primary.displayText})})]})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,i.jsx)(p.$n,{type:p.VQ.Primary,text:D,className:s()("w-full disabled:!bg-black/[24%] disabled:!text-white/[72%] dark:disabled:!bg-white/[24%]",{"shadow-raised shadow-primary-800":!ej()}),size:p.Mp.Large,loading:eM,loadingText:eF,disabled:ej(),onClick:()=>eS()}),ew&&(0,i.jsx)(v.E,{className:"text-error-tertiary",typography:v.o.Caption1,children:ew})]})]}):eN.mode===l.p5.Warner?(0,i.jsx)(B,{definition:eN,isOptInCheckboxChecked:R.primaryConsentChecked,setIsOptInCheckboxChecked:R.setPrimaryConsentChecked,isSecondaryCheckboxOptInChecked:R.secondaryConsentChecked,setIsSecondaryCheckboxOptInChecked:R.setSecondaryConsentChecked,buttonText:D,onSubscribe:eS,isRSVPButtonDisabled:ej,subscribeButtonIsLoading:eM,subscribeButtonLoadingText:eF}):(0,i.jsxs)("div",{className:"w-full space-y-5",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[eA?(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)(m.S,{checked:R.primaryConsentChecked,onChange:R.setPrimaryConsentChecked}),(0,i.jsxs)("div",{className:"space-y-1",children:[(null==(n=eN.prizeTerms)?void 0:n.visible)?(0,i.jsx)(v.E,{className:"block text-black dark:text-white",typography:v.o.Footnote,bold:!0,children:E("dropContest.optionalMarketingOptIn")}):null,(0,i.jsx)(P,{definition:eN,checkboxConsent:eA})]})]}):null,(null==(r=eN.secondary)?void 0:r.visible)?(0,i.jsxs)("div",{className:"flex items-start gap-2",children:[(0,i.jsx)(m.S,{checked:R.secondaryConsentChecked,onChange:R.setSecondaryConsentChecked}),(0,i.jsx)(v.E,{className:"text-black/40 dark:text-white/40",typography:v.o.C
1aption2,children:(0,i.jsx)(g,{text:eN.secondary.text})})]}):null]}),(0,i.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,i.jsx)(p.$n,{type:p.VQ.Primary,text:D,className:s()("w-full disabled:!bg-black/[24%] disabled:!text-white/[72%] dark:disabled:!bg-white/[24%]",{"shadow-raised shadow-primary-800":!ej()}),size:p.Mp.Large,loading:eM,loadingText:eF,disabled:ej(),onClick:()=>eS()}),ew&&(0,i.jsx)(v.E,{className:"text-error-tertiary",typography:v.o.Caption1,children:ew})]}),eA?null:(0,i.jsx)(P,{definition:eN,checkboxConsent:eA}),L&&eN.dropProfileTitle?(0,i.jsx)(el,{artistName:eN.dropProfileTitle}):null]})]})]})})},ep=e=>(0,i.jsx)(r.Y,{children:(0,i.jsx)(eu,{...e})})},60133:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6029),l=n(8461),a=n(81783),r=n(55729);let o=e=>{let{titles:t,lineHeightPx:n,intervalMs:o=2e3,stopOnLast:s=!1}=e,[d,c]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=null,n=()=>{null===e&&(e=setInterval(()=>{c(e=>s&&e===t.length-1?(i(),e):(e+1)%t.length)},o))},i=()=>{null!==e&&(clearInterval(e),e=null)},l=()=>{"visible"===document.visibilityState?n():i()};return"visible"===document.visibilityState&&n(),document.addEventListener("visibilitychange",l),()=>{i(),document.removeEventListener("visibilitychange",l)}},[]),(0,i.jsx)("span",{className:"relative inline-grid overflow-hidden align-bottom",style:{height:n,perspective:240},children:(0,i.jsx)(l.N,{initial:!1,children:(0,i.jsx)(a.P.span,{initial:{y:n,rotateX:-70,opacity:0},animate:{y:0,rotateX:0,opacity:1},exit:{y:-n,rotateX:70,opacity:0},transition:{duration:.45,ease:[.22,1,.36,1]},className:"col-start-1 row-start-1 whitespace-nowrap",style:{transformOrigin:"center center",backfaceVisibility:"hidden"},children:t[d]},d)})})}},61320:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6029),l=n(75828),a=n.n(l),r=n(29733),o=n(49956);let s=e=>{let{label:t,required:n,className:l}=e,{t:s}=(0,r.Bd)();return(0,i.jsxs)(o.E,{typography:o.o.Subheadline,bold:!0,className:a()("text-black dark:text-white",l),children:[t,n&&(0,i.jsx)("span",{className:"font-normal text-black/60 dark:text-white/60",children:" (".concat(s("common.required"),")")})]})}},63570:(e,t,n)=>{n.d(t,{AY:()=>y,jq:()=>C,Ay:()=>w});var i=n(6029),l=n(84350),a=n(75828),r=n.n(a),o=n(29733),s=n(8542),d=n(32957),c=n(82558),u=n(49956),p=n(10706),m=n(59295),h=n(84921),f=n(83409);let g=e=>{let{dropBlockItem:t,size:n,className:l,compact:a,onClick:d}=e,{i18n:g,t:b}=(0,o.Bd)(),x=t.eventAt?(0,m.A)(t.eventAt):void 0,v=x?(0,h.N8)(x.toDate(),g.resolvedLanguage||"en"):void 0,k=n===C.Small,_=!!t.imageUrl;return(0,i.jsxs)("div",{className:r()("my-2 flex snap-start flex-row items-center border-transparent bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",y,l,{"cursor-pointer":!t.isSoldOut,"space-x-3":!a,"space-x-4":a}),onClick:t.isSoldOut?void 0:d,children:[!_&&x?(0,i.jsxs)("div",{className:r()("flex aspect-square w-[72px] min-w-[72px] shrink-0 flex-col items-center justify-center rounded-xl bg-white/[72%] dark:bg-black/[72%]",{"h-[110px] !min-w-[110px]":!k}),children:[(0,i.jsx)(u.E,{typography:k?u.o.Caption2:u.o.Footnote,className:"text-black/60 dark:text-white/60",children:v}),(0,i.jsx)(u.E,{typography:k?u.o.Title1:u.o.LargeTitle,className:"text-black dark:text-white",children:x.format("DD")}),(0,i.jsx)(u.E,{typography:k?u.o.Caption2:u.o.Footnote,className:"text-black/60 dark:text-white/60",children:x.format("YYYY")})]}):null,_?(0,i.jsx)(s.e,{src:t.imageUrl,size:k?72:110,backupIconType:c.A.MediaImage,className:"!border-none"}):null,(0,i.jsxs)("div",{className:"min-w-0 flex-grow space-y-1",children:[(0,i.jsx)(u.E,{typography:k?u.o.Footnote:u.o.Callout,className:r()("!line-clamp-2 text-black dark:text-white",{"opacity-60":t.isSoldOut,"font-semibold":!k}),children:t.eventTitle}),t.isSoldOut?(0,i.jsx)(u.E,{typography:u.o.Caption1,className:"text-yellow-600 dark:text-yellow-500",children:b("common.soldOut")}):(0,i.jsx)(u.E,{typography:u.o.Caption1,className:"text-black/60 dark:text-white/60",children:t.eventDescription})]}),a?(0,i.jsx)(p.A,{type:p._.Tertiary,onClick:()=>{},iconType:c.A.Calendar,disabled:!t.hasTicketDestination}):t.isSoldOut?null:(0,i.jsx)(f.$n,{type:f.VQ.Primary,size:f.Mp.Small,onClick:()=>{},text:b("common.tickets"),disabled:!t.hasTicketDestination,className:"shrink-0"})]})};var b=n(26130);let x=e=>{let{dropBlockItem:t,size:n,className:a,compact:o,onClick:d}=e,m=(0,b.W5)(),h=t.imageUrl||m.definition.hero.imageUrl;return(0,i.jsxs)("div",{className:r()("flex cursor-pointer snap-start flex-row items-center border-transparent bg-gradient-to-b from-black/[8
1%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",y,a,{"space-x-3":!o,"space-x-4":o}),onClick:d,children:[h?(0,i.jsx)(s.e,{src:h,size:n===C.Small?72:110,backupIconType:c.A.MediaImage,className:"!border-none"}):null,(0,i.jsxs)("div",{className:"flex-grow space-y-1",children:[(0,i.jsx)(u.E,{typography:n===C.Small?u.o.Footnote:u.o.Callout,bold:n===C.Large,className:"text-black dark:text-white",children:t.title}),(0,i.jsx)(u.E,{typography:u.o.Caption1,className:"text-black/60 dark:text-white/60",children:t.description})]}),o?(0,i.jsx)(p.A,{type:p._.Tertiary,onClick:()=>{},iconType:t.platform===l.NS.Spotify?c.A.Spotify:c.A.Apple}):null]})},v=e=>{let{dropBlockItem:t,size:n,className:l,compact:a,onClick:d}=e,{t:m}=(0,o.Bd)(),h=(0,b.W5)().blocks.shopifyByItemId[t.id],{imageSrc:g,title:x,description:v}=null!=h?h:{};return(0,i.jsxs)("div",{className:r()("my-2 flex cursor-pointer snap-start flex-row items-center justify-between border-transparent bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",y,l,{"space-x-3":!a,"space-x-4":a}),onClick:d,children:[(0,i.jsx)(s.e,{src:g,size:n===C.Small?72:110,backupIconType:c.A.MediaImage,className:"!border-none"}),(0,i.jsxs)("div",{className:"flex-grow space-y-1",children:[(0,i.jsx)(u.E,{typography:n===C.Small?u.o.Footnote:u.o.Callout,bold:n===C.Large,className:"text-black dark:text-white",children:x}),(0,i.jsx)(u.E,{typography:u.o.Caption1,className:"text-black/60 dark:text-white/60",children:v})]}),a?(0,i.jsx)(p.A,{type:p._.Tertiary,onClick:()=>{},iconType:c.A.Shopify}):(0,i.jsx)(f.$n,{type:f.VQ.Primary,size:f.Mp.Small,onClick:()=>{},text:m("common.buy")})]})},k=e=>{let{dropBlockItem:t,size:n,className:l,alignment:a,titleTypography:o}=e;return(0,i.jsxs)("div",{className:r()("flex w-full flex-col space-y-1",(e=>{switch(e){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}})(a),l),children:[t.title?(0,i.jsx)(u.E,{typography:null!=o?o:n===C.Small?u.o.Subheadline:u.o.Body,bold:!0,className:"whitespace-pre-line text-black dark:text-white",children:t.title}):null,t.body?(0,i.jsx)(u.E,{typography:u.o.Callout,className:"whitespace-pre-line text-black/60 dark:text-white/60",children:t.body}):null]})},y="bg-origin-border transition rounded-2xl border text-left hover:border-black/[24%] active:border-black/40 dark:hover:border-white/[24%] dark:active:border-white/40";var C=function(e){return e.Small="small",e.Large="large",e}({});let _={[l.W5.Song]:c.A.Play,[l.W5.Media]:c.A.MediaImage,[l.W5.Link]:c.A.Link,[l.W5.Product]:c.A.Shopify,[l.W5.Event]:c.A.Calendar,[l.W5.Presave]:c.A.Music,[l.W5.Text]:c.A.Text,[l.W5.CountdownTicker]:c.A.Calendar},w=e=>{let{dropBlockItem:t,size:n,className:a,onClick:m,compact:h,alignment:f,hideExpand:b,titleTypography:C}=e,{t:w}=(0,o.Bd)();if(t.kind===l.W5.Product)return(0,i.jsx)(v,{dropBlockItem:t,size:n,className:a,compact:h,onClick:m});if(t.kind===l.W5.Presave)return(0,i.jsx)(x,{dropBlockItem:t,size:n,className:a,compact:h,onClick:m});if(t.kind===l.W5.Event)return(0,i.jsx)(g,{dropBlockItem:t,size:n,className:a,compact:h,onClick:m});if(t.kind===l.W5.CountdownTicker)return(0,i.jsx)("div",{className:r()("flex w-full items-center justify-center",a),onClick:m,children:(0,i.jsx)(d.A,{targetDate:t.goLiveAt})});if(t.kind===l.W5.Media){let e=t.assetUrl;return e?t.youtubeVideoId?(0,i.jsx)("div",{className:r()("overflow-hidden border-black/[8%] dark:border-white/[8%]",{"h-[169px]":"small"===n,"aspect-[16/9] w-full":"large"===n},y,a),onClick:m,children:(0,i.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(t.youtubeVideoId,"?si=gtmpuL4nvSm3ZJYX"),title:w("common.youtubeVideoPlayer"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}):t.isVideo?(0,i.jsxs)("div",{className:r()("group relative cursor-pointer overflow-hidden border-black/[8%] dark:border-white/[8%]",{"h-[169px]":"small"===n,"w-full":"large"===n},y,a),onClick:m,children:[b?null:(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden items-center justify-center opacity-0 transition group-hover:opacity-100 [@media(hover:hover)]:flex",children:(0,i.jsx)("div",{className:"flex h-[56px] w-[56px] items-center justify-center rounded-[20px] bg-black/70",children:(0,i.jsx)(c.I,{type:c.A.Expand,size:24,className:"fill-white"})})}),(0,i.jsx)("video",{src:"".concat(e,"#t=0.1"),preload:"metadata",playsInl
1ine:!0,muted:!0,className:r()({"h-full w-auto object-contain":"small"===n,"h-auto w-full object-contain":"large"===n})})]}):(0,i.jsxs)("div",{className:r()("group relative cursor-pointer overflow-hidden border-black/[8%] dark:border-white/[8%]",{"h-[169px]":"small"===n,"w-full":"large"===n},y,a),onClick:m,children:[!b&&(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden items-center justify-center opacity-0 transition group-hover:opacity-100 [@media(hover:hover)]:flex",children:(0,i.jsx)("div",{className:"flex h-[56px] w-[56px] items-center justify-center rounded-[20px] bg-black/70",children:(0,i.jsx)(c.I,{type:c.A.Expand,size:24,className:"fill-white"})})}),(0,i.jsx)("img",{src:t.imageUrl||e,alt:"",className:r()("object-contain",{"h-full w-auto":"small"===n,"h-auto w-full":"large"===n})})]}):null}if(t.kind===l.W5.Text)return(0,i.jsx)(k,{dropBlockItem:t,size:n,className:a,alignment:f,titleTypography:C});let j=t.imageUrl;return(0,i.jsxs)("div",{className:r()("flex cursor-pointer snap-start flex-row items-center border-transparent bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",y,a,{"space-x-3":!h,"space-x-4":h}),onClick:m,children:[j?(0,i.jsx)(s.e,{src:j,size:"small"===n?72:110,backupIconType:c.A.MediaImage,className:"!border-none"}):null,(0,i.jsxs)("div",{className:"min-w-0 flex-grow space-y-1",children:[(0,i.jsx)(u.E,{typography:"small"===n?u.o.Footnote:u.o.Callout,bold:"large"===n,className:"truncate text-black dark:text-white",children:t.title}),(0,i.jsx)(u.E,{typography:u.o.Caption1,className:"truncate text-black/60 dark:text-white/60",children:t.description})]}),h?(0,i.jsx)(p.A,{type:p._.Tertiary,onClick:()=>{},iconType:_[t.kind]}):null]})}},74104:(e,t,n)=>{n.d(t,{FR:()=>l,S8:()=>a,YC:()=>i});var i=function(e){return e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.AUDIO="AUDIO",e}({}),l=function(e){return e.CONTENT_SUBMISSION="CONTENT_SUBMISSION",e.FAN_CONTENT_FEED="FAN_CONTENT_FEED",e}({}),a=function(e){return e.TRENDING="TRENDING",e.LATEST="LATEST",e}({})},84350:(e,t,n)=>{n.d(t,{B3:()=>k,C4:()=>b,FL:()=>h,HU:()=>x,Io:()=>i,Jh:()=>C,LB:()=>y,NS:()=>u,W5:()=>w,W6:()=>_,_V:()=>l,a0:()=>v,aC:()=>o,by:()=>s,hu:()=>g,iM:()=>r,p5:()=>d,pR:()=>m,t_:()=>a,uH:()=>p,vi:()=>c,xQ:()=>f});var i=function(e){return e.Signup="signup",e.LinkCollection="link_collection",e.Presave="presave",e.Listening="listening",e.LinkInBio="link_in_bio",e.FanFeed="fan_feed",e}({}),l=function(e){return e.Expanded="EXPANDED",e.Compact="COMPACT",e.Hidden="HIDDEN",e}({}),a=function(e){return e.Live="live",e.Ended="ended",e}({}),r=function(e){return e.Editing="editing",e.RequestingOtp="requesting_otp",e.AwaitingOtp="awaiting_otp",e.Submitting="submitting",e.Complete="complete",e}({}),o=function(e){return e.Email="email",e.Phone="phone",e.WhatsApp="whatsapp",e.FirstName="first_name",e.LastName="last_name",e.Birthdate="birthdate",e.Gender="gender",e.Location="location",e.Language="language",e.PresavePlatform="presave_platform",e.SocialUsername="social_username",e.ContentSubmission="content_submission",e.Custom="custom",e}({}),s=function(e){return e.MultipleChoice="multiple_choice",e.Text="text",e.Number="number",e.Date="date",e}({}),d=function(e){return e.Default="default",e.Warner="warner",e.RegistrationExample="registration_example",e}({}),c=function(e){return e.Email="EMAIL",e.Phone="PHONE",e.WhatsApp="WHATSAPP",e}({}),u=function(e){return e.Spotify="SPOTIFY",e.AppleMusic="APPLE_MUSIC",e}({}),p=function(e){return e.Instagram="INSTAGRAM",e.TikTok="TIKTOK",e}({}),m=function(e){return e.Feed="feed",e.Info="info",e}({}),h=function(e){return e.Trending="trending",e.Recent="recent",e}({}),f=function(e){return e.Uploading="uploading",e.Failed="failed",e.Ready="ready",e.Complete="complete",e}({}),g=function(e){return e.Image="IMAGE",e.Video="VIDEO",e.Audio="AUDIO",e}({}),b=function(e){return e.Default="default",e.Hidden="hidden",e.FredAgainCashApp="fred_again_cash_app",e}({}),x=function(e){return e.Spotify="spotify",e.AppleMusic="apple_music",e}({}),v=function(e){return e.Signup="signup",e.Navigate="navigate",e}({}),k=function(e){return e.General="general",e.Listening="listening",e.LinkCollection="link_collection",e.Presave="presave",e.LinkInBio="link_in_bio",e.BlockPresave="block_presave",e}({}),y=function(e){return e.Upcoming="upcoming",e.Open="open",e.Ended="ended",e}({}),C=function(e){return e.Loading="loading",e.Blocked="blocked",e.Invited="invited",e.Attending="attending",e.Declined="declined",e}({}),_=function(e){return e.AboveForm="above_form",e.BelowForm="below_form",e.LinkInBio="link_in_bio",e.PostSignup="post_signup",e}({}),w=function(e){return e.Song="song",e.Media="media",e.Link="link",e.Product="product",e.Event="event",e.Presave="presave",e.Text="text",e.CountdownTicker="countdown_ticker",e}({})},84921:(e,t,n)=>{n.d(t,{C_:()=>o,N8:()=>s,SZ:()=>a,Ss:()=>r,gV:()=>u,sn:()=>d});var i=n(59295),l=n(242);let a="YYYY-MM-DD",r=()=>
1i.A.tz.guess()||"UTC",o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return new Intl.DateTimeFormat(n,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:t}).format(new Date(e))},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=new Intl.DateTimeFormat(t,{month:"short"}).format(e);return"en"===t.toLowerCase().split("-")[0]?"".concat(n,"."):n},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 B";let n=Math.floor(Math.log(e)/Math.log(1024)),i=(e/Math.pow(1024,n)).toFixed(t<0?0:t);return"".concat(i," ").concat(["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n])},c=(e,t)=>{if(!t)return e;let n=t.format;if(t.isAreaCode&&t.areaCodeLength&&n){let e=n.split(" ");e[1]=e[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),n=e.join(" ")}if(!e)return"+";if(e.length<2||!n)return"+".concat(e);let i=[...n].reduce((e,t)=>{if(!e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};let[n,...i]=e.remainingText;return{formattedText:e.formattedText+n,remainingText:i}},{formattedText:"",remainingText:e.split("")}),l=i.formattedText+i.remainingText.join("");return l.includes("(")&&!l.includes(")")&&(l+=")"),l},u=e=>{let t=e?e.replace(/\D/g,""):"",{onlyCountries:n}=new l.A(!1,!1,"",[],[],[],[],null,null,null,{},"+","... ... ... ... ..",!1),i=n.reduce((e,n)=>t.startsWith(n.dialCode)&&(n.dialCode.length>e.dialCode.length||n.dialCode.length===e.dialCode.length&&n.priority<e.priority)?n:e,{dialCode:"",priority:10001});if(i.name)return c(t,i)||e;let a=n.find(e=>"US"===e.iso2);return!t.trim()&&c(t,a)||e}},85692:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(6029),l=n(75828),a=n.n(l),r=n(82203),o=n.n(r),s=n(29733),d=n(11551),c=n(99432),u=n(82558),p=n(49956),m=n(63570),h=n(44162);let f=e=>{let{link:t,onClick:n}=e,{t:l}=(0,s.Bd)(),r=a()("flex w-full flex-row items-center justify-between space-x-3 rounded-2xl border-transparent bg-gradient-to-b from-black/[8%] to-black/[4%] p-3 dark:from-white/[16%] dark:to-white/[4%]",m.AY),f=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-row items-center space-x-3",children:[(0,i.jsx)(h.A,{type:(0,c.YG)(t.platform),size:40}),(0,i.jsxs)("div",{className:"space-y-0.5",children:[(0,i.jsx)(p.E,{typography:p.o.Caption1,className:"text-black/60 dark:text-white/60",children:l(t.platform===d.iK.TIKTOK||t.platform===d.iK.INSTAGRAM?"dropPresave.useSoundOn":"dropBlockSongLinkRow.streamOn")}),(0,i.jsx)(p.E,{typography:p.o.Subheadline,className:"text-black dark:text-white",bold:!0,children:(0,c.EL)(t.platform)})]})]}),(0,i.jsx)("div",{className:"flex h-[36px] w-[36px] min-w-[36px] items-center justify-center rounded-xl bg-black/[8%] dark:bg-white/[8%]",children:(0,i.jsx)(u.I,{type:u.A.Play,size:20,className:"fill-black dark:fill-white"})})]});return t.url?(0,i.jsx)(o(),{href:t.url,target:"_blank",onClick:n,className:r,children:f}):(0,i.jsx)("button",{type:"button",onClick:n,className:r,children:f})}},87191:(e,t,n)=>{n.d(t,{w:()=>h});var i=n(6029),l=n(55729),a=n(26130),r=n(84350),o=n(27282),s=n(29955);let d={[r.W6.AboveForm]:"aboveForm",[r.W6.BelowForm]:"belowForm",[r.W6.LinkInBio]:"linkInBio",[r.W6.PostSignup]:"postSignup"},c=(e,t)=>{let n=t.kind===r.W5.Product?e.blocks.shopifyByItemId[t.id]:void 0;return{activate:()=>e.blocks.activate(t.id),activateSongLink:n=>e.blocks.activateSongLink(t.id,n),isDisabled:t.kind===r.W5.Product&&(!n||n.isLoading||!n.canActivate)||t.kind===r.W5.Event&&(t.isSoldOut||!t.hasTicketDestination)}},u=e=>{let{item:t}=e,n=(0,s.L4)(t.goLiveAt);return n?(0,i.jsx)("time",{"data-cobrand-element":"countdown-ticker","data-item-id":t.id,dateTime:t.goLiveAt,children:n.parts.map(e=>(0,i.jsxs)("span",{"data-cobrand-element":"countdown-part","data-unit":e.label,children:[(0,i.jsx)("strong",{children:e.value}),(0,i.jsx)("small",{children:e.label})]},e.label))}):null},p=e=>{var t,n,l,s,d;let{item:p}=e,m=(0,a.W5)(),h=c(m,p);switch(p.kind){case r.W5.Song:return(0,i.jsxs)("figure",{"data-cobrand-element":"song","data-item-id":p.id,children:[p.imageUrl?(0,i.jsx)("img",{src:p.imageUrl,alt:""}):null,p.title?(0,i.jsx)("figcaption",{children:p.title}):null,p.description?(0,i.jsx)("p",{children:p.description}):null,p.links.length?(0,i.jsx)("ul",{"data-cobrand-element":"song-links",children:p.links.map((e,t)=>(0,i.jsx)("li",{children:(0,i.jsxs)("button",{type:"button",onClick:()=>h.activateSongLink(t),"data-cobrand-element":"song-link",children:[(0,i.jsx)(o.m,{platform:e.platform}
1),e.platform.replace(/_/g," ")]})},"".concat(e.platform,":").concat(t)))}):null]});case r.W5.Media:if(!p.assetUrl)return null;return p.youtubeVideoId?(0,i.jsx)("iframe",{"data-cobrand-element":"media","data-item-id":p.id,src:"https://www.youtube.com/embed/".concat(p.youtubeVideoId),title:null!=(t=p.title)?t:"YouTube video",allowFullScreen:!0}):p.isVideo?(0,i.jsx)("video",{"data-cobrand-element":"media","data-item-id":p.id,src:p.assetUrl,controls:!0,playsInline:!0}):(0,i.jsx)("img",{"data-cobrand-element":"media","data-item-id":p.id,src:p.assetUrl,alt:null!=(n=p.title)?n:""});case r.W5.Link:return(0,i.jsxs)("button",{type:"button","data-cobrand-element":"link","data-item-id":p.id,onClick:h.activate,children:[p.imageUrl?(0,i.jsx)("img",{src:p.imageUrl,alt:""}):null,(0,i.jsx)("span",{children:null!=(l=p.title)?l:"Open link"}),p.description?(0,i.jsx)("small",{children:p.description}):null]});case r.W5.Product:{let e=m.blocks.shopifyByItemId[p.id];return(0,i.jsxs)("button",{type:"button","data-cobrand-element":"product","data-item-id":p.id,"data-loading":(null==e?void 0:e.isLoading)?"true":void 0,disabled:h.isDisabled,onClick:h.activate,children:[(null==e?void 0:e.imageSrc)?(0,i.jsx)("img",{src:e.imageSrc,alt:""}):null,(0,i.jsx)("span",{children:null!=(s=null==e?void 0:e.title)?s:p.productHandle}),(null==e?void 0:e.description)?(0,i.jsx)("small",{children:e.description}):null]})}case r.W5.Event:return(0,i.jsxs)("article",{"data-cobrand-element":"event","data-item-id":p.id,"data-sold-out":p.isSoldOut?"true":void 0,children:[p.imageUrl?(0,i.jsx)("img",{src:p.imageUrl,alt:""}):null,(0,i.jsx)("h3",{children:p.eventTitle}),p.eventDescription?(0,i.jsx)("p",{children:p.eventDescription}):null,p.eventAt?(0,i.jsx)("time",{dateTime:p.eventAt,children:p.eventAt}):null,p.isSoldOut?(0,i.jsx)("span",{"data-cobrand-element":"sold-out",children:"Sold out"}):p.hasTicketDestination?(0,i.jsx)("button",{type:"button",onClick:h.activate,children:"Tickets"}):null]});case r.W5.Presave:return(0,i.jsxs)("button",{type:"button","data-cobrand-element":"presave","data-item-id":p.id,"data-platform":p.platform,onClick:h.activate,children:[(0,i.jsx)(o.m,{platform:p.platform}),(0,i.jsx)("span",{children:null!=(d=p.title)?d:"Pre-save"})]});case r.W5.Text:return(0,i.jsxs)("div",{"data-cobrand-element":"text","data-item-id":p.id,children:[p.title?(0,i.jsx)("h3",{style:{textAlign:p.titleAlignment},children:p.title}):null,p.body?(0,i.jsx)("p",{style:{textAlign:p.bodyAlignment},children:p.body}):null]});case r.W5.CountdownTicker:return(0,i.jsx)(u,{item:p});default:return null}},m=e=>{let{block:t,children:n}=e,r=(0,a.W5)();return t.items.map((e,t)=>n?(0,i.jsx)(l.Fragment,{children:n(e,c(r,e))},e.id||t):(0,i.jsx)(p,{item:e},e.id||t))},h=Object.assign(e=>{let{position:t=r.W6.BelowForm,className:n,children:o}=e,s=(e=>{var t;return null!=(t=(0,a.W5)().definition.blocks[d[e]])?t:[]})(t);return s.length?(0,i.jsx)("div",{className:n,"data-cobrand-primitive":"blocks","data-position":t,children:s.map((e,t)=>(0,i.jsx)(l.Fragment,{children:o?o(e,t,s):(0,i.jsxs)("section",{"data-cobrand-element":"block","data-block-id":e.id,children:[e.title?(0,i.jsx)("h2",{style:{textAlign:e.titleAlignment},children:e.title}):null,(0,i.jsx)(m,{block:e})]})},e.id||t))}):null},{Items:m,Item:p})},90510:(e,t,n)=>{n.d(t,{a:()=>a,h:()=>r});var i=n(12482),l=n(19117);let a="SHOPIFY_GET_PRODUCT_BY_PRODUCT_HANDLE",r=e=>{let t=(0,l.MI)({needsAuthentication:!1,includeHost:!1});return(0,i.I)({queryKey:[a,e],queryFn:()=>t("https://".concat(e.myshopifyDomain,"/products/").concat(e.productHandle,".json"),{method:"GET"}),enabled:!!(e.myshopifyDomain&&e.productHandle)})}},92017:(e,t,n)=>{n.d(t,{A:()=>b});var i=n(6029),l=n(87191),a=n(75828),r=n.n(a),o=n(26130),s=n(84350),d=n(55729),c=n(78834),u=n(63752),p=n(82558),m=n(49956),h=n(10706),f=n(63570);let g=e=>{var t,n;let{block:l,titleTypography:a}=e,g=(0,o.W5)(),b=(0,d.useRef)(null),{scrollToSnapPoint:x,checkScrollPosition:v,isScrolledToStart:k,isScrolledToEnd:y}=(0,c.L)({scrollRef:b,slideWidth:300}),{filteredItems:C,gridStyles:_,columnClasses:w,showCarousel:j}=(0,d.useMemo)(()=>{var e,t;let n=l.items,i={},a="",r=(null==(e=l.items[0])?void 0:e.kind)===s.W5.Media?1:3,o=n.length>r;return o&&(i={gridTemplateRows:"repeat(2, auto)",gridTemplateColumns:"repeat(".concat(Math.ceil(n.length/2),", auto)")},a=(null==(t=l.items[0])?void 0:t.kind)===s.W5.Media?"min-w-max":"min-w-[300px] max-w-[300px]"),{filteredItems:n,gridStyles:i,columnClasses:a,showCarousel:o}},[l]);return(0,i.jsxs)("div",{className:"w-full space-y-6",children:[l.title?(0,i.jsxs)("div",{className:"flex flex-row items-center justify-between space-x-5",children:[(0,i.jsx)("div",{className:"flex-1",style:{textAlign:l.titleAlignment},children:(0,i.jsx)(m.E,{typography:m.o.Title2,bold:!0,className:"text-black dark:text-white",children:l.title})}),j&&(0,i.jsxs)(u.e,{children:[(0,i.jsx)(h.A,{type:h._.IconOnly,className:"-rotate-180",iconType:p.A.ArrowRight,onClick:()=>x("prev"),disabled:k}),(0,i.jsx)(h.A,{type:h._.IconOnly,iconType:p.A.ArrowRight,onClick:()=>x("next"),disabled:y})]})]}):null,(0,i.jsxs)("div",{className:"relative w-full",children:[(0,i.jsx)("div",{ref:b,className:r()("w-full gap-2",{"flex flex-col":!j,"scrollbar-hidden snap-x snap-mandatory snap-always overflow-x-auto":j,"grid grid-flow-col":j&&(null==(t=l.items[0])?void 0:t.kind)!==s.W5.Media,"flex flex-row":j&&(null==(n=l.items[0])?void 0:n.kind)===s.W5.Media,"carousel-mask":j,"carousel-mask-fade-left":j&&!k,"carousel-mask-fade-right":j&&!y}),style:_,onScroll:v,children:C.map(e=>(0,i.jsx)(f.Ay,{dropBlockItem:e,size:C.length>1?f.jq.Small:f.jq.Large,className:w,onClick:()=>
1g.blocks.activate(e.id),compact:!1,alignment:l.titleAlignment,titleTypography:a,hideExpand:j},e.id))}),j&&!l.title&&(0,i.jsxs)(i.Fragment,{children:[!k&&(0,i.jsx)("div",{onClick:()=>x("prev"),className:"absolute left-2 top-1/2 z-10 flex h-8 w-8 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-black/50 transition hover:bg-black/70",children:(0,i.jsx)(p.I,{type:p.A.ArrowRight,size:16,className:"-rotate-180 fill-white"})}),!y&&(0,i.jsx)("div",{onClick:()=>x("next"),className:"absolute right-2 top-1/2 z-10 flex h-8 w-8 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-black/50 transition hover:bg-black/70",children:(0,i.jsx)(p.I,{type:p.A.ArrowRight,size:16,className:"fill-white"})})]})]})]})},b=e=>{let{position:t,showBottomDivider:n=!0,className:a,confirmationTitleTypography:o}=e;return(0,i.jsx)(l.w,{position:t,className:r()("space-y-6",a),children:(e,t,l)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{block:e,titleTypography:0!==t||e.title?void 0:o}),n&&t===l.length-1?(0,i.jsx)("div",{className:"w-full border-b border-black/[12%] dark:border-white/[12%]"}):null]})})}}}]);
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.