PageSourceSearch

https://www.wishyork.com/_next/static/chunks/4931-bd9d171eb3444d77.js

js wishyork.com collected 2026-09-24 14:59:28 UTC 17,759 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="02207b06-dcc6-4f8d-90a0-f095b9fc65f2",e._sentryDebugIdIdentifier="sentry-dbid-02207b06-dcc6-4f8d-90a0-f095b9fc65f2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4931],{10489:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var l=r(12115),n=r(88142),a=r(95155),s=l.forwardRef((e,t)=>(0,a.jsx)(n.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var i=s},12515:(e,t,r)=>{"use strict";function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}r.d(t,{_:()=>l})},22319:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l=r(20063),n=r(9639);let a="locale",s=!1;function i(){let e,t=(0,l.useParams)();try{e=(0,n.useLocale)()}catch(r){if("string"!=typeof(null==t?void 0:t[a]))throw r;s||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),s=!0),e=t[a]}return e}},28713:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var l=r(12515),n=r(12115),a=r(50192);function s(e){let{locale:t,...r}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return n.createElement(a.IntlProvider,(0,l._)({locale:t},r))}},30926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return l.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let l=r(41209),n=r(85153),a=r(77197)},31120:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var l=r(95155),n=r(12115),a=r(64269);let s=n.forwardRef((e,t)=>{let{className:r,error:n,success:s,...i}=e;return(0,l.jsx)("textarea",{className:(0,a.cn)("flex min-h-[100px] w-full font-body","bg-cloud text-midnight","px-4 py-3","text-[16px] leading-relaxed","resize-none","border border-mist-dark rounded-md","placeholder:text-dusk-light","transition-all duration-200 ease-smooth","focus-visible:outline-none","focus-visible:border-[1.5px] focus-visible:border-sky","focus-visible:shadow-[0_0_0_3px_rgba(126,200,227,0.20)]","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-mist",n&&["border-[1.5px] border-danger","focus-visible:border-danger","focus-visible:shadow-[0_0_0_3px_rgba(229,62,62,0.12)]"],s&&["border-[1.5px] border-forest","focus-visible:border-forest","focus-visible:shadow-[0_0_0_3px_rgba(77,175,125,0.12)]"],r),ref:t,...i})});s.displayName="Textarea"},58558:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var l=r(12515),n=r(20063),a=r(12115),s=r(22319);function i(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function o(e,t){let r;return"string"==typeof e?r=d(t,e):(r={...e},e.pathname&&(r.pathname=d(t,e.pathname))),r}function d(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}r(95704);var u=r(93691);let c=(0,a.forwardRef)(function(e,t){let{href:r,locale:d,localeCookie:c,localePrefixMode:p,prefix:m,...f}=e,b=(0,n.usePathname)(),x=(0,s.A)(),h=d!==x,[v,y]=(0,a.useState)(()=>i(r)&&("never"!==p||h)?o(r,m):r);return(0,a.useEffect)(()=>{b&&y(function(e,t){var r,l;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!i(e))return e;let d=(r=s,(l=a)===r||l.startsWith("".concat(r,"/")));return(t!==n||d)&&null!=s?o(e,s):e}(r,d,x,b,m))},[x,r,d,b,m]),a.createElement(u.default,(0,l._)({ref:t,href:v,locale:d,localeCookie:c},f))});c.displayName="ClientLink"},60693:(e,t,r)=>{"use strict";r.d(t,{RsvpPageClient:()=>m});var l=r(95155),n=r(12115),a=r(95604),s=r(30926);let i=(0,s.createServerReference)("40016b0d9b533f263c4602546b93b2755fedae1b78",s.callServer,void 0,s.findSourceMapURL,"submitPublicRsvpAction");var o=r(65142),d=r(76444),u=r(31120),c=r(52619),p=r.n(c);function m(e){var t,r,s,c,m,f;let{event:b,token:x,guestToken:h,initialGuest:v}=e,y=(0,a.useTranslations)("Events"),g=(0,a.useLocale)(),[N,j]=(0,n.useTransition)(),[w,E]=(0,n.use
1State)(null!=(r=null==v?void 0:v.name)?r:""),[k,_]=(0,n.useState)(null!=(s=null==v?void 0:v.email)?s:""),[B,C]=(0,n.useState)("ATTENDING"),[S,P]=(0,n.useState)(null!=(c=null==v?void 0:v.plusOnes)?c:0),[F,A]=(0,n.useState)(null!=(m=null==v?void 0:v.plusOneNames)?m:[]),[D,R]=(0,n.useState)(null!=(f=null==v?void 0:v.note)?f:""),[T,I]=(0,n.useState)(null),[O,M]=(0,n.useState)(!1),L=(0,n.useMemo)(()=>{if(!b.date)return null;let e=new Date(b.date);return Number.isNaN(e.getTime())?null:new Intl.DateTimeFormat(g,{dateStyle:"long"}).format(e)},[b.date,g]),G=(0,n.useMemo)(()=>"ATTENDING"===B?y("rsvpAttending"):"MAYBE"===B?y("rsvpMaybe"):y("rsvpDeclined"),[B,y]);return O?(0,l.jsx)("div",{className:"mx-auto flex min-h-[calc(100dvh-160px)] w-full max-w-2xl items-center px-4 py-10 sm:px-6",children:(0,l.jsxs)("div",{className:"w-full rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800 bg-white dark:bg-neutral-900 p-8 shadow-[0_2px_8px_rgba(26,43,60,0.08)] sm:p-10",children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold text-[#171717] dark:text-neutral-100",children:b.name}),(0,l.jsx)("p",{className:"mt-4 text-base text-[#404040]",children:y("rsvpSuccess")}),(0,l.jsx)("p",{className:"mt-2 text-sm font-medium text-primary",children:G}),(0,l.jsx)("div",{className:"mt-10 border-t border-[#F0F0F0] pt-6 text-center",children:(0,l.jsx)(p(),{href:"/",className:"text-xs font-medium text-[#A3A3A3] transition-colors hover:text-primary",children:y("rsvpPoweredBy")})})]})}):(0,l.jsx)("div",{className:"mx-auto w-full max-w-2xl px-4 py-10 sm:px-6",children:(0,l.jsxs)("div",{className:"rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800 bg-white dark:bg-neutral-900 p-6 shadow-[0_2px_8px_rgba(26,43,60,0.08)] sm:p-8",children:[(0,l.jsx)("h1",{className:"text-3xl font-semibold tracking-tight text-[#171717] dark:text-neutral-100",children:y("rsvpTitle")}),(0,l.jsx)("p",{className:"mt-2 text-sm text-[#626262]",children:y("rsvpSubtitle")}),(0,l.jsxs)("div",{className:"mt-6 rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800 bg-[#FCFCFC] p-4",children:[(0,l.jsx)("p",{className:"text-lg font-semibold text-[#171717] dark:text-neutral-100",children:b.name}),L?(0,l.jsx)("p",{className:"mt-1 text-sm text-[#606060]",children:L}):null,b.location?(0,l.jsx)("p",{className:"mt-1 text-sm text-[#606060]",children:b.location}):null,b.description?(0,l.jsx)("p",{className:"mt-2 text-sm text-[#444444]",children:b.description}):null]}),(null==v||null==(t=v.dietaryInfo)?void 0:t.trim())?(0,l.jsxs)("div",{className:"mt-4 rounded-[16px] border border-neutral-200 dark:border-neutral-800 bg-neutral-50 dark:bg-neutral-800/50 px-4 py-3 text-sm text-neutral-600 dar
1k:text-neutral-300",children:[(0,l.jsx)("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"Dietary note from organizer:"})," ",(0,l.jsx)("span",{children:v.dietaryInfo.trim()})]}):null,(0,l.jsxs)("div",{className:"mt-6 space-y-5",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(d.J,{htmlFor:"public-rsvp-name",className:"text-sm font-medium text-[#171717] dark:text-neutral-100",children:y("rsvpName")}),(0,l.jsx)(o.p,{id:"public-rsvp-name",value:w,onChange:e=>E(e.target.value),className:"h-12 rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800",required:!0})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(d.J,{htmlFor:"public-rsvp-email",className:"text-sm font-medium text-[#171717] dark:text-neutral-100",children:y("rsvpEmail")}),(0,l.jsx)(o.p,{id:"public-rsvp-email",type:"email",value:k,onChange:e=>_(e.target.value),className:"h-12 rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("p",{className:"text-sm font-medium text-[#171717] dark:text-neutral-100",suppressHydrationWarning:!0,children:y("rsvpStatusLabel")}),(0,l.jsxs)("div",{className:"grid gap-2 sm:grid-cols-3",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>C("ATTENDING"),className:"rounded-full border px-4 py-2 text-sm font-medium transition ".concat("ATTENDING"===B?"border-primary bg-primary text-white":"border-[#
1EBEBEB] dark:border-neutral-800 text-[#3F3F3F]"),children:[y("rsvpAttending")," ✓"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>C("MAYBE"),className:"rounded-full border px-4 py-2 text-sm font-medium transition ".concat("MAYBE"===B?"border-primary bg-primary text-white":"border-[#EBEBEB] dark:border-neutral-800 text-[#3F3F3F]"),children:[y("rsvpMaybe")," ?"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>C("DECLINED"),className:"rounded-full border px-4 py-2 text-sm font-medium transition ".concat("DECLINED"===B?"border-primary bg-primary text-white":"border-[#EBEBEB] dark:border-neutral-800 text-[#3F3F3F]"),children:[y("rsvpDeclined")," ✗"]})]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(d.J,{htmlFor:"public-rsvp-plusones",className:"text-sm font-medium text-[#171717] dark:text-neutral-100",children:y("rsvpPlusOnes")}),(0,l.jsx)(o.p,{id:"public-rsvp-plusones",type:"number",min:0,max:10,value:S,onChange:e=>{let t=Number(e.target.value);Number.isNaN(t)||P(Math.max(0,Math.min(10,t)))},className:"h-12 rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800"}),0===S&&(0,l.jsx)("p",{className:"text-xs text-[#8A8A80] dark:text-neutral-400",children:y("rsvpGuestNameHelper")})]}),S>0&&(0,l.jsx)("div",{className:"space-y-3 pl-2 sm:pl-3 border-l-2 border-neutral-100 dark:border-neutral-800",children:Array.from({length:S}).map((e,t)=>{var r;return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(d.J,{htmlFor:"public-rsvp-plusone-".concat(t),className:"text-xs font-medium text-[#171717] dark:text-neutral-200",children:y("rsvpGuestName",{number:t+2})}),(0,l.jsx)(o.p,{id:"public-rsvp-plusone-".concat(t),value:null!=(r=F[t])?r:"",placeholder:y("rsvpGuestNamePlaceholder"),onChange:e=>{let r=e.target.value;A(e=>{let l=[...e];return l[t]=r,l})},className:"h-10 rounded-[16px] border border-[#EBEBEB] dark:border-neutral-800 text-sm"})]},t)})}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(d.J,{htmlFor:"public-rsvp-note",className:"text-sm font-medium text-[#171717] dark:text-neutral-100",children:y("rsvpNote")}),(0,l.jsx)(u.T,{id:"public-rsvp-note",value:D,onChange:e=>R(e.target.value),className:"min-h-[120px] rounded-[20px] border border-[#EBEBEB] dark:border-neutral-800"})]})]}),T?(0,l.jsx)("p",{className:"mt-4 text-sm text-[#C10000]",children:T}):null,(0,l.jsx)("button",{type:"button",onClick:()=>{I(null),j(async()=>{let e=S>0?F.slice(0,S).map(e=>e.trim()).filter(e=>e.length>0):void 0,t=await i({token:x,guestToken:h,name:w.trim(),email:k.trim()||void 0,status:B,plusOnes:S,plusOneNames:e,note:D.trim()||void 0});if(!t.success){var r;I(null!=(r=t.error)?r:null);return}M(!0)})},disabled:!w.trim()||N,className:"mt-6 inline-flex h-12 w-full items-center justify-center rounded-full bg-primary px-6 text-sm font-semibold text-white transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",children:y("rsvpSubmit")})]})})}},64269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var l=r(2821),n=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,l.$)(t))}},65142:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var l=r(95155),n=r(12115),a=r(64269);let s=n.forwardRef((e,t)=>{let{className:r,type:n,error:s,success:i,...o}=e;return(0,l.jsx)("input",{type:n,className:(0,a.cn)("flex h-11 w-full font-body","bg-cloud text-midnight","px-4 py-2.5","text-[16px] leading-normal","border border-mist-dark rounded-md","placeholder:text-dusk-light","transition-all duration-200 ease-smooth","focus-visible:outline-none","focus-visible:border-[1.5px] focus-visible:border-sky","focus-visible:shadow-[0_0_0_3px_rgba(126,200,227,0.20)]","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-mist",s&&["border-[1.5px] border-danger","focus-visible:border-danger","focus-visible:shadow-[0_0_0_3px_rgba(229,62,62,0.12)]"],i&&["border-[1.5px] border-forest","focus-visible:border-forest","focus-visible:shadow-[0_0_0_3px_rgba(77,175,125,0.12)]"],"file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-midnight",r),ref:t,...o})});s.displayName="Input"},74931:(e,t,r)=>{Promise.resolve().then(r.bind(r,93691)),Promise.resolve().then(r.bind(r,58558)),Promise.resolve().then(r.bind(r,28713)),Promise.resolve().then(r.bind(r,60693))},76444:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var l=r(95155),n=r(12115),a=r(10489),s=r(83101),i=r(64269);let o=(0,s.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>
1{let{className:r,...n}=e;return(0,l.jsx)(a.b,{ref:t,className:(0,i.cn)(o(),r),...n})});d.displayName=a.b.displayName},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var l=r(2821);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=l.$,s=(e,t)=>r=>{var l;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],l=null==i?void 0:i[e];if(null===t)return null;let a=n(t)||n(l);return s[e][a]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,l]=t;return void 0===l||(e[r]=l),e},{});return a(e,o,null==t||null==(l=t.compoundVariants)?void 0:l.reduce((e,t)=>{let{class:r,className:l,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...d}[t]):({...i,...d})[t]===r})?[...e,r,l]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},88142:(e,t,r)=>{"use strict";r.d(t,{sG:()=>c,hO:()=>p});var l=r(12115),n=r(47650),a=r(94446),s=r(95155),i=l.forwardRef((e,t)=>{let{children:r,...n}=e,a=l.Children.toArray(r),i=a.find(u);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,s.jsx)(o,{...n,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,s.jsx)(o,{...n,ref:t,children:r})});i.displayName="Slot";var o=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(l.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r),s=function(e,t){let r={...t};for(let l in t){let n=e[l],a=t[l];/^on[A-Z]/.test(l)?n&&a?r[l]=(...e)=>{a(...e),n(...e)}:n&&(r[l]=n):"style"===l?r[l]={...n,...a}:"className"===l&&(r[l]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==l.Fragment&&(s.ref=t?(0,a.t)(t,e):e),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});o.displayName="SlotClone";var d=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function u(e){return l.isValidElement(e)&&e.type===d}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=l.forwardRef((e,r)=>{let{asChild:l,...n}=e,a=l?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...n,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function p(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},93691:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var l=r(12515),n=r(52619),a=r.n(n),s=r(20063),i=r(12115),o=r(22319),d=(0,i.forwardRef)(function(e,t){let{defaultLocale:r,href:n,locale:d,localeCookie:u,onClick:c,prefetch:p,unprefixed:m,...f}=e,b=(0,o.A)(),x=null!=d&&d!==b,h=d||b,v=function(){let[e,t]=(0,i.useState)();return(0,i.useEffect)(()=>{t(window.location.host)},[]),e}(),y=v&&m&&(m.domains[v]===h||!Object.keys(m.domains).includes(v)&&b===r&&!d)?m.pathname:n,g=(0,s.usePathname)();return x&&(p&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),p=!1),i.createElement(a(),(0,l._)({ref:t,href:y,hrefLang:x?d:void 0,onClick:function(e){(function(e,t,r,l){if(!e||l===r||null==l||!t)return;let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:a,...s}=e;s.path||(s.path=""!==n?n:"/");let i="".concat(a,"=").concat(l,";");for(let[e,t]of Object.entries(s))i+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(i+="="+t),i+=";";document.cookie=i})(u,g,b,d),c&&c(e)},prefetch:p},f))})},94446:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,t:()=>a});var l=r(12115);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,l=e.map(e=>{let l=n(e,t);return r||"function"!=typeof l||(r=!0),l});if(r)return()=>{for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof r?r():n(e[t],null)}}}}function s(...e){return l.useCallback(a(...e),e)}}}]);

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.