1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77894],{37095:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/conference/[eventId]/booth/new",function(){return t(17128)}])},85200:function(e,n,t){"use strict";t.d(n,{DY:function(){return AdminPage},hb:function(){return o},lm:function(){return AdminPageHeading},yG:function(){return AdminPageHeader}});var r=t(85893),i=t(48641),a=t(38655);t(67294);let AdminPage=e=>{let{children:n,...t}=e;return(0,r.jsx)(i.xu,{...t,children:n})},AdminPageHeader=e=>{let{children:n,...t}=e;return(0,r.jsx)(i.Kq,{direction:"row",spacing:"4",alignItems:"flex-start",...t,children:n})},AdminPageHeading=e=>{let{children:n,...t}=e;return(0,r.jsx)(i.X6,{size:"md",...t,children:n})},o=(0,a.Gp)((e,n)=>{let{children:t,...a}=e;return(0,r.jsx)(i.xu,{marginY:"5",...a,ref:n,children:t})})},17128:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var r=t(82729),i=t(85893),a=t(50456),o=t(37887),d=t(50319),l=t(80419),s=t(48641),u=t(47741),c=t(41664),v=t.n(c),p=t(11163),f=t(67294),m=t(87536),h=t(85200),y=t(47503),g=t(96317),x=t(69171),_=t(48076),E=t(6491),j=t(91334),b=t(91768),A=t(809),P=t(21345);function _templateObject(){let e=(0,r._)(["\n query ConferenceBoothCreationPage_CurrentUser {\n currentUser {\n _id\n formDefaults {\n events {\n dialInEnabled\n numParticipants\n }\n }\n }\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n query ConferenceBoothCreationPage_Event($eventId: String!) {\n event(input: { _id: $eventId }) {\n eventV2 {\n _id\n name\n endDate\n }\n }\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n query ConferenceBoothCreationPage_Organization(\n $input: SingleOrganizationInput!\n ) {\n organization(input: $input) {\n result {\n _id\n displayName\n }\n }\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n mutation ConferenceBoothCreationPage_CreateConferenceBooth(\n $input: CreateConferenceBoothInput!\n ) {\n createConferenceBooth(input: $input) {\n result {\n _id\n }\n }\n }\n"]);return _templateObject3=function(){return e},e}let C=(0,a.Ps)(_templateObject()),I=(0,a.Ps)(_templateObject1()),D=(0,a.Ps)(_templateObject2()),O=(0,a.Ps)(_templateObject3());var T=t(93064),N=(0,t(52609).z)(()=>{var e,n,t,r,a,c,T,N,S,R,w,L,U,q;let B=(0,l.pm)(),V=(0,p.useRouter)(),z=V.query.eventId.toString(),F=null!==(q=V.query.organizationId.toString())&&void 0!==q?q:"",M=(0,o.a)(C),k=(0,o.a)(I,{variables:{eventId:z}}),H=(0,o.a)(D,{variables:{input:{id:F}}}),[X]=(0,d.D)(O,{update(e){let n=e.identify({id:z,__typename:"ConferenceEventV2"});e.evict({id:n,fieldName:"conferenceBooths"}),e.gc()}}),G=f.useMemo(()=>{var e,n,t,r,i,a;return{videoStreamType:P.Aq.EXTERNAL,externalPlatformMeetingUrl:null,externalPlatformAdditionalDetails:null,description:"",isLiveVideoStreamDialInEnabled:null===(i=null===(n=M.data)||void 0===n?void 0:null===(e=n.currentUser)||void 0===e?void 0:e.formDefaults.events.dialInEnabled)||void 0===i||i,audienceParticipationCapacity:null!==(a=null===(r=M.data)||void 0===r?void 0:null===(t=r.currentUser)||void 0===t?void 0:t.formDefaults.events.numParticipants)&&void 0!==a?a:A.p,moderators:[],title:"",body:"",callToAction:"",url:"",image:{imageId:""},venueType:y.Fd.ONLINE,externalPlatformName:null,address:{administrativeArea:null,country:null,locality:null,name:null,postalCode:null,streetAddress:null,streetAddressLine2:null},inPersonDescription:null,registerInterestTitle:"",isDefaultAdvertisementEnabled:!1}},[null===(n=M.data)||void 0===n?void 0:null===(e=n.currentUser)||void 0===e?void 0:e.formDefaults.events.dialInEnabled,null===(r=M.data)||void 0===r?void 0:null===(t=r.currentUser)||void 0===t?void 0:t.formDefaults.events.numParticipants]),Y=(0,m.cI)({defaultValues:G});if((null===(c=k.data)||void 0===c?void 0:null===(a=c.event.eventV2)||void 0===a?void 0:a.__typename)==="SimpleEventV2")throw Error("Unexpected event spec");let $=(null===(N=k.data)||void 0===N?void 0:null===(T=N.event.eventV2)||void 0===T?void 0:T._id)||"",K=null===(R=k.data)||void 0===R?void 0:null===(S=R.event.eventV2)||void 0===S?void 0:S.endDate,Q=Y.handleSubmit(async e=>{if(!e.venueType)throw Error("Unexpected Missing Venue Type");try{var n,t;let r=await X({variables:{input:{description:e.description,moderators:e.videoStreamType===P.Aq.EXTERNAL?null:e.moderators.map(e=>({existingUserId:e._id,isHidden:e.isHidden})),conferenceEventId:$,hostOrganizationId:F,venue:{type:e.venueType,inPersonLocation:e.venueType===y.Fd.IN_PERSON||e.venueType===y.Fd.HYBRID?{address:{administrativeArea:e.address.administrativeArea,country:e.address.country,locality:e.address.locality,name:e.address.name,postalCode:e.address.postalCode,streetAddress:e.address.streetAddress,streetAddressLine2:e.address.streetAddressLine2},description:e.inPersonDescription}:void 0,online:e.venueType===y.Fd.ONLINE||e.venueType===y.Fd.HYBRID?{type:(()=>
1{if(!e.videoStreamType)throw Error("Unexpected Missing Video Stream Type");return({[P.Aq.EXTERNAL]:y.a1.EXTERNAL,[P.Aq.PRE_RECORDED_VIDEO]:y.a1.TRADEWING,[P.Aq.AGORA_VIDEO_CALL]:y.a1.TRADEWING})[e.videoStreamType]})(),externalPlatform:e.videoStreamType===P.Aq.EXTERNAL?{additionalDetails:e.externalPlatformAdditionalDetails,url:e.externalPlatformMeetingUrl}:void 0,tradewingPlatform:void 0}:void 0}}}}),i=null===(t=r.data)||void 0===t?void 0:null===(n=t.createConferenceBooth.result)||void 0===n?void 0:n._id;V.push("/admin/conference/".concat(z,"/booth/").concat(i)),B({status:"success",description:"You successfully created a booth"})}catch(e){B({status:"error",description:"An unexpected error occurred"})}}),W=Y.formState.isSubmitting;return Y.watch("videoStreamType"),(0,i.jsx)(g.C,{children:k.loading||H.loading?(0,i.jsx)(x.g,{}):k.error||H.error?(0,i.jsx)(_.S,{}):(null===(w=k.data)||void 0===w?void 0:w.event.eventV2)&&(null===(U=H.data)||void 0===U?void 0:null===(L=U.organization)||void 0===L?void 0:L.result)?(0,i.jsxs)(h.DY,{w:"100%",children:[(0,i.jsx)(h.yG,{px:"6",pt:"4",children:(0,i.jsxs)(s.Kq,{spacing:"4",alignItems:"flex-start",children:[(0,i.jsxs)(s.rU,{as:v(),href:"/admin/conference/".concat(z,"/expo"),display:"flex",alignItems:"center",gap:"2",children:[(0,i.jsx)(E.wyc,{}),(0,i.jsxs)("span",{children:["Back to ",k.data.event.eventV2.name]})]}),(0,i.jsx)(h.lm,{children:"Create Booth"})]})}),(0,i.jsx)(h.hb,{px:"6",children:(0,i.jsx)(m.RV,{...Y,children:(0,i.jsxs)(s.Kq,{spacing:"6",children:[(0,i.jsxs)(s.xu,{display:"grid",gap:"6",children:[(0,i.jsx)(j.v,{isEditing:!0,sponsorName:H.data.organization.result.displayName}),(0,i.jsx)(b.E,{isEditing:!0,entityId:{conferenceBoothId:null,conferenceEventId:z},endDate:K?new Date(K):new Date})]}),(0,i.jsxs)(s.Kq,{direction:"row",justifyContent:"flex-end",children:[(0,i.jsx)(v(),{href:"/admin/conference/".concat(z,"/expo"),children:(0,i.jsx)(u.zx,{variant:"outline",colorScheme:"gray",isDisabled:W,children:"Cancel"})}),(0,i.jsx)(u.zx,{onClick:Q,isLoading:W,children:"Create Booth"})]})]})})})]}):(0,i.jsx)(_.S,{})})},{requiresEvery:[T.lj.ADMIN_ROLE,T.lj.FEATURE_FLAG_CONFERENCES]})},39615:function(e,n,t){"use strict";t.d(n,{E:function(){return getExternalUrl}});let getExternalUrl=e=>e?e.match(/^http?:\/\//i)||e.match(/^https?:\/\//i)?e:"http://"+e:void 0},48521:function(){},73359:function(e,n,t){"use strict";t.d(n,{t:function(){return useLazyQuery}});var r=t(23564),i=t(67294),a=t(14012),o=t(37887),d=t(66252),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function useLazyQuery(e,n){var t=(0,o.A)((0,d.x)(n&&n.client),e),s=(0,i.useRef)(),u=s.current?(0,a.J)(n,s.current):n,c=t.useQuery((0,r.pi)((0,r.pi)({},u),{skip:!s.current})),v=c.observable.options.initialFetchPolicy||t.getDefaultFetchPolicy(),p=Object.assign(c,{called:!!s.current}),f=(0,i.useMemo)(function(){for(var e={},n=0;n<l.length;n++)!function(n){var r=p[n];e[n]=function(){return s.current||(s.current=Object.create(null),t.forceUpdate()),r.apply(this,arguments)}}(l[n]);return e},[]);return Object.assign(p,f),[(0,i.useCallback)(function(e){s.current=e?(0,r.pi)((0,r.pi)({},e),{fetchPolicy:e.fetchPolicy||v}):{fetchPolicy:v};var n=t.asyncUpdate().then(function(e){return Object.assign(e,f)});return n.catch(function(){}),n},[]),p]}}},function(e){e.O(0,[79412,9669,9041,5206,32512,24062,30588,64986,96317,55643,66854,38885,10061,49774,92888,40179],function(){return e(e.s=37095)}),_N_E=e.O()}]); 2//# sourceMappingURL=new-3e074ef4e38617fb.js.map
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.