1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="50252a9a-3c08-4dcb-924a-a6cbc2168436",e._sentryDebugIdIdentifier="sentry-dbid-50252a9a-3c08-4dcb-924a-a6cbc2168436")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3128],{45016:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/[eventSlug]/webview/[viewId]",function(){return t(55563)}])},92369:function(e,n,t){"use strict";t.d(n,{N:function(){return u}});var r=t(52322),i=t(55835),o=t(11817);function l(e){let{children:n,...t}=e,{event:l}=(0,i.v)();return(0,r.jsx)(o.Z,{...t,event:l,children:n})}function a(e,n){return(0,r.jsx)(l,{...n,children:e})}function u(e){function n(n){return(0,r.jsx)(e,{...n})}return n.getInitialProps=e.getInitialProps,n.getLayout=e.getLayout?(n,t)=>{var r;return null===(r=e.getLayout)||void 0===r?void 0:r.call(e,a(n,t),t)}:a,n}},55563:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return C}});var r,i,o=t(52322),l=t(5632),a=t(2784),u=t(82778),c=t(62764),s=t(14134),d=t(2696),f=t(67862),v=t(81548),w=t(37884);function b(){let e=(0,f._)(["\n query WebviewEventPersonProfileQuery($id: ID!, $eventId: ID!) {\n eventPerson: Core_eventPersonDetail
1s(id: $id, eventId: $eventId) {\n id\n firstName\n lastName\n email\n }\n }\n"]);return b=function(){return e},e}let p=(0,v.Ps)(b());function m(){let e=(0,f._)(["\n query EventWebviewQuery($eventId: ID!) {\n views: Core_views(eventId: $eventId) {\n ... on Core_EventViewInterface {\n id\n name\n }\n ... on Core_EventRedirectUrlView {\n redirectUrl\n }\n }\n }\n"]);return m=function(){return e},e}(r=i||(i={})).TWINE="Twine",r.CAPTELLO="Captello";let g=(0,v.Ps)(m());var y=function(e){let{viewId:n,onBack:t=()=>{},fullScreen:r}=e,i=(0,s.zX)(),{webview:l,loading:f,error:v}=function(e){let{viewId:n}=e,t=(0,s.zX)(),{data:r,loading:i,error:o}=(0,w.aM)(g,{variables:{eventId:t.id}}),{getThirdPartyInfo:l,eventPerson:c}=function(){var e;let n=(0,u.h)(),t=(0,s.zX)(),[r,{data:i,loading:o}]=(0,w.td)(p,{onError:n,variables:{id:t.eventPerson?t.eventPerson.id:"",eventId:t.id}});return{getThirdPartyInfo:r,loading:o,eventPerson:null!==(e=null==i?void 0:i.eventPerson)&&void 0!==e?e:void 0}}(),d=null==r?void 0:r.views.find(e=>e.id===n&&"Core_EventRedirectUrlView"===e.__typename),f=d&&"Core_EventRedirectUrlView"===d.__typename?d.redirectUrl:"",v=f?f.includes(".twine.nyc")?"Twine":f.startsWith("https://play.captello.com/")?"Captello":null:null;(0,a.useEffect)(()=>{!c&&v&&l()},[c,v]);let b=(0,a.useMemo)(()=>{if(!v||!c)return f;switch(v){case"Twine":return"".concat(f,"&firstname=").concat(c.firstName,"&lastname=").concat(c.lastName,"&email=").concat(c.email,"&autofill=true");case"Captello":return"".concat(f,"?&u=").concat(c.id,"&firstname=").concat(c.firstName,"&lastname=").concat(c.lastName,"&email=").concat(c.email);default:return f}},[d,c]);return d?{webview:{...d,redirectUrl:b},loading:i,error:o}:{loading:i,error:o}}({viewId:n}),b=(0,c.M)(),m=(0,a.useCallback)(()=>{b({eventId:i.id,eventViewId:n})},[b,n,i.id]);return!l&&v?(0,o.jsx)(u.Z,{error:v}):l&&"Core_EventRedirectUrlView"===l.__typename?(0,o.jsx)(d.Z,{name:l.name,redirectUrl:l.redirectUrl,loading:f,onBack:t,trackView:m,fullScreen:r}):null},_=t(308),h=t(77245);function I(e){let{fullScreen:n=!1}=e,t=(0,l.useRouter)(),{getPreviousRoute:r}=(0,h.s)(),i=t.query.eventSlug,a=t.query.viewId;return(0,o.jsx)(y,{viewId:a,onBack:()=>{var e;t.replace(null!==(e=r())&&void 0!==e?e:(0,_.LE)({eventSlug:i}))},fullScreen:n})}var x=t(38869),E=t(92369);function P(e){let{fullScreen:n}=e;return(0,o.jsx)(I,{fullScreen:n})}P.getInitialProps=async()=>({hideMobileNav:!0,fullScreen:!0,hideBurgerMenu:!0});var C=(0,E.N)((0,x.g)(P))},2696:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(52322),i=t(2784),o=t(44366),l=t(90217),a=t(12866),u=t(32636),c=t(23147);let s=["camera *","microphone *","fullscreen *","geolocation *"],d=new Map([["app.storibox.com",["clipboard-write *"]]]),f=a.ZP.iframe.withConfig({displayName:"view__IFrame",componentId:"sc-26c0849-0"})(["width:100%;height:100%;display:block;box-sizing:border-box;@media screen and (min-width:","px){border:1px solid ",";border-radius:",";}"],e=>{let{theme:n}=e;return n.breakPoints.sm},e=>{let{theme:n}=e;return n.colors.outline.base},e=>{let{theme:n,fullScreen:t}=e;return t?0:n.radius.lg});var v=function(e){let{redirectUrl:n,name:t,loading:a,onBack:v,trackView:w=()=>{},fullScreen:b=!1}=e,{leftIsHidden:p}=(0,o.nx)({firstSideHidden:"RIGHT"});return(0,i.useEffect)(()=>{w()},[w]),(0,r.jsxs)(r.Fragment,{children:[p&&(0,r.jsx)(c.ZP,{onBack:v,centerComponent:a?(0,r.jsx)(u.Z,{size:20}):(0,r.jsx)(c.XJ,{title:t||""})}),(0,r.jsx)(l.Z,{defaultOffset:138,minHeight:"400px",children:(0,r.jsx)(f,{src:n,fullScreen:b,sandbox:"allow-forms allow-scripts allow-same-origin allow-popups allow-top-navigation-by-user-activation allow-downloads",allow:function(e){try{var n;let{hostname:t}=new URL(e),r=null!==(n=d.get(t))&&void 0!==n?n:[];return[...s,...r].join("; ")}catch(e){return s.join("; ")}}(n),title:null!=t?t:void 0})})]})}},90217:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(52322),i=t(2784),o=t(54073),l=t.n(o),a=t(88980);function u(e){let{children:n,defaultOffset:t=0,marginBottom:o=0,minHeight:u}=e,[c,s]=(0,i.useState)(t),d=(0,i.useRef)(null),{width:f,height:v}=(0,a.Z)(),w=(0,i.useCallback)(l()(()=>{d.current&&s(d.current.getBoundingClientRect().top)},100),[]);return(0,i.useLayoutEffect)(()=>
1{if(w(),"undefined"==typeof MutationObserver)return;let e=new MutationObserver(function(){w()});return document.body&&e.observe(document.body,{childList:!0,subtree:!0}),()=>null==e?void 0:e.disconnect()},[]),(0,i.useEffect)(()=>w(),[f,v]),(0,r.jsx)("div",{ref:d,style:{height:"calc(var(--windowHeight, 100vh) - ".concat(c+o,"px)"),minHeight:u||"0px"},children:n})}}},function(e){e.O(0,[6618,8892,8869,2888,9774,179],function(){return e(e.s=45016)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.