PageSourceSearch

https://www.qrca.org/_next/static/chunks/36926-6a4ef3da88944736.js

js qrca.org collected 2026-10-04 00:21:43 UTC 9,148 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36926],{2551:function(e,n,t){t.d(n,{Q:function(){return ConfirmDialog}});var i=t(85893),r=t(6491),l=t(2821),o=t(48641),a=t(3038),s=t(47741),c=t(67294);let ConfirmDialog=e=>{let{body:n,confirmButtonText:t,cancelButtonText:v,isOpen:d,onClose:p,onConfirm:u,shouldHideCancelButton:m,title:x,heading:f,shouldCloseOnConfirmation:h=!0,confirmButtonColorScheme:E,alternativeButtonText:j,onClickAlternativeOption:g,alertText:_}=e,[b,C]=c.useState(!1),y=c.useRef(null),onClickConfirm=async()=>{if(null===u){p();return}C(!0);try{await u(),h&&p()}finally{C(!1)}};return(0,i.jsxs)(l.aR,{leastDestructiveRef:y,isOpen:d,onClose:p,size:"xl",isCentered:!0,children:[(0,i.jsx)(l.dh,{}),(0,i.jsxs)(l._T,{children:[(0,i.jsx)(l.fY,{border:"1px solid",borderColor:"strokePrimary.500",children:x}),(0,i.jsx)(l.lq,{}),(0,i.jsxs)(l.iP,{minH:"50px",children:[f&&(0,i.jsx)(o.xv,{fontWeight:"semibold",fontSize:"20px",mb:"2",mt:"2",children:f}),(0,i.jsx)(o.xv,{size:"sm",fontWeight:"medium",children:n}),(null!=_?_:"").length>0&&(0,i.jsxs)(a.bZ,{status:"error",borderRadius:"md",mt:4,border:"0",children:[(0,i.jsx)(r.szr,{boxSize:5,color:"red.500",mr:0,mt:"2px"}),(0,i.jsx)(a.Cd,{mr:2}),(0,i.jsx)(a.X,{color:"red.500",fontWeight:"medium",children:_})]})]}),(0,i.jsx)(l.xo,{children:(0,i.jsxs)(o.Ug,{spacing:"4",children:[m?null:(0,i.jsx)(s.zx,{ref:y,type:"button",variant:"outline",colorScheme:"primary",borderColor:"primary.500",onClick:p,isDisabled:b,children:null!=v?v:"Cancel"}),j&&(0,i.jsx)(s.zx,{ref:y,variant:"outline",colorScheme:"primary",borderColor:"primary.500",onClick:g,isDisabled:b,children:j}),(0,i.jsx)(s.zx,{onClick:onClickConfirm,type:"button",isLoading:b,colorScheme:E,children:t})]})})]})]})}},69150:function(e,n,t){t.r(n),t.d(n,{ConfirmDialog:function(){return i.Q}});var i=t(2551)},15710:function(e,n,t){t.d(n,{P:function(){return EventListItem}});var i=t(82729),r=t(85893),l=t(50456),o=t(48641),a=t(23887),s=t(27484),c=t.n(s),v=t(41664),d=t.n(v),p=t(11163),u=t(67294),m=t(82436),x=t(38189),f=t(72099),h=t(90290),E=t(62893),j=t(52670),g=t(20464),_=t(50319),b=t(90195),C=t(47741),y=t(69150),k=t(49517),S=t(24222);function _templateObject(){let e=(0,i._)(["\n  mutation PinEventButton_UpdateSimpleEvent($input: UpdateSimpleEventInput!) {\n    updateSimpleEvent(input: $input) {\n      result {\n        _id\n        pinned\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n  mutation PinEventButton_UpdateConferenceEvent(\n    $input: UpdateConferenceEventInput!\n  ) {\n    updateConferenceEvent(input: $input) {\n      result {\n        _id\n        pinned\n      }\n    }\n  }\n"]);return _templateObject1=function(){return e},e}let L=(0,l.Ps)(_templateObject()),w=(0,l.Ps)(_templateObject1()),PinEventButton=e=>{let{event:n}=e,t=(0,b.qY)(),i=!!n.pinned,[l]=(0,_.D)(L),[o]=(0,_.D)(w),onConfirm=async()=>{try{"SimpleEventV2"===n.__typename&&await l({variables:{input:{_id:n._id,data:{pinned:!i}}}}),"ConferenceEventV2"===n.__typename&&await o({variables:{input:{eventId:n._id,data:{pinned:!i}}}})}catch(e){(0,k.H)(e)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C.hU,{"aria-label":i?"Pinned event":"Pin event",icon:(0,r.jsx)(S.qQ,{boxSize:"6",fill:i?"currentColor":"none",color:i?"primary.500":"gray.500"}),size:"md",variant:"ghost",minW:"10",h:"10",p:"2",position:"relative",zIndex:"1",flexShrink:0,onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOpen()}}),(0,r.jsx)(y.ConfirmDialog,{isOpen:t.isOpen,onClose:t.onClose,title:i?"Unpin this Event":"Pin this Event",body:i?"This will unpin the event from the top of the Upcoming event list.":"This will pin the event to the top of the Upcoming event list.",confirmButtonText:i?"Unpin Event":"Pin Event",onConfirm:onConfirm})]})};function EventListItem_templateObject(){let e=(0,i._)(['\n  fragment EventListItem_EventFragment on EventV2 {\n    _id\n    endDate\n    bannerImage {\n      _id\n      imageProxy(input: { ar: "8:3", w: 1600, fit: "fill", fill: "blur" })\n    }\n    ... on SimpleEventV2 {\n      pinned\n      isXproConferenceEvent\n      xproEventId\n      xproEventBanner\n    }\n    ... on ConferenceEventV2 {\n      pinned\n    }\n    name\n    ...GetAppropriateEventLink_EventFragment\n    ...EventStuff_EventFragment\n    ...EventScheduleInfo_EventFragment\n  }\n  ',"\n  ","\n  ","\n"]);
1return EventListItem_templateObject=function(){return e},e}let EventListItem=e=>{var n;let t=(0,p.useRouter)(),i=(0,E.T)(),l=c()().isAfter(e.event.endDate),s=(0,h.l)(e.event),v=i.canDoAdminStuffAndAuthenticated&&"/events"===t.pathname&&"upcoming"===t.query.filter&&"true"!==t.query.includeCurrentUserInvolvedEventsOnly,[_,b]=u.useState(null),[C,y]=u.useState(null);u.useEffect(()=>{if("SimpleEventV2"===e.event.__typename){if(e.event.isXproConferenceEvent&&e.event.xproEventId){let n="".concat("https://event.xpro.ai/e","/").concat(e.event.xproEventId);b(n),y(e.event.xproEventBanner||null)}else b(null),y(null)}},[e.event]);let k=(null===(n=e.event.bannerImage)||void 0===n?void 0:n.imageProxy)||C||void 0,S=(0,r.jsx)(g.Y,{borderTopRadius:"xl",title:e.event.name});return(0,r.jsx)(o.fG,{children:(0,r.jsxs)(j.Z,{shadow:e.shadow,children:[(0,r.jsx)(f.x,{src:k,alt:"".concat(e.event.name," banner"),w:"full",size:"3xl",maxH:"70vh",enableZoom:!0,children:(0,r.jsx)(a.Ee,{borderTopRadius:"xl",w:"full",src:k,alt:"".concat(e.event.name," banner"),fallback:S})}),(0,r.jsxs)(o.Kq,{p:"4",spacing:"4",children:[(0,r.jsxs)(o.Kq,{spacing:"1",children:[(0,r.jsxs)(o.Ug,{spacing:"2",align:"center",children:[(0,r.jsx)(o.AB,{as:d(),href:_?"":s,flex:v?"1":void 0,onClick:n=>{var t;null===(t=e.trackClickEvent)||void 0===t||t.call(e),_&&(n.preventDefault(),window.open(_,"_blank"))},children:(0,r.jsx)(o.xv,{textStyle:"xlBodyStrong",children:e.event.name})}),v&&(0,r.jsx)(PinEventButton,{event:e.event})]}),(0,r.jsx)(m.w,{event:e.event,showAddToCalendar:!l})]}),(0,r.jsx)(x.n,{event:e.event,allowSpecialTooltip:!1,allowConferenceJoin:!0})]})]})})};EventListItem.eventFragment=(0,l.Ps)(EventListItem_templateObject(),h.l.eventFragment,x.n.eventFragment,m.w.eventFragment)},95742:function(e,n,t){t.d(n,{F:function(){return EventListPlaceholder}});var i=t(85893),r=t(48641),l=t(36158);t(67294);var o=t(52670);let EventListPlaceholder=e=>{let{length:n=5}=e;return(0,i.jsx)(r.Kq,{spacing:"4",children:[...Array(n)].map((e,n)=>(0,i.jsx)(o.Z,{children:(0,i.jsxs)(r.xu,{p:"4",children:[(0,i.jsx)(l.Od,{height:"168px"}),(0,i.jsx)(l.N2,{mt:"4",noOfLines:3})]})},n))})}},90290:function(e,n,t){t.d(n,{l:function(){return getAppropriateEventLink}});var i=t(82729),r=t(50456);function _templateObject(){let e=(0,i._)(["\n  fragment GetAppropriateEventLink_EventFragment on EventV2 {\n    _id\n    ... on SimpleEventV2 {\n      _id\n    }\n    ... on ConferenceEventV2 {\n      _id\n    }\n  }\n"]);return _templateObject=function(){return e},e}let getAppropriateEventLink=e=>e?"ConferenceEventV2"===e.__typename?"/events/conferences/".concat(e._id):"/events/".concat(e._id):"/";getAppropriateEventLink.eventFragment=(0,r.Ps)(_templateObject())},36926:function(e,n,t){t.d(n,{q:function(){return EventList},F:function(){return EventListEmpty}});var i=t(82729),r=t(85893),l=t(1644),o=t(50456),a=t(48641),s=t(47741),c=t(27484),v=t.n(c),d=t(67294),p=t(15710),u=t(95742);let ListDividerWithText=e=>(0,r.jsxs)(a.kC,{alignItems:"center",children:[(0,r.jsx)(a.iz,{borderColor:"gray.300"}),(0,r.jsx)(a.xu,{px:"4",children:(0,r.jsx)(a.xv,{textStyle:"detail",color:"gray.600",children:e.children})}),(0,r.jsx)(a.iz,{borderColor:"gray.300"})]});var m=t(52670),x=t(6491);let EventListEmpty=e=>{let{title:n,description:t}=e;return(0,r.jsx)(m.Z,{p:"4",children:(0,r.jsxs)(a.M5,{h:96,as:a.gC,spacing:"1",children:[(0,r.jsx)(x.Que,{boxSize:5,color:"gray.500",mb:"2"}),(0,r.jsx)(a.xv,{fontWeight:"semibold",color:"gray.700",children:n}),t&&(0,r.jsx)(a.xv,{color:"gray.600",children:t})]})})};function _templateObject(){let e=(0,i._)(["\n  fragment EventList_EventFragment on EventV2 {\n    _id\n    startDate\n    ...EventListItem_EventFragment\n  }\n  ","\n"]);return _templateObject=function(){return e},e}let EventList=e=>{var n,t;return e.networkStatus!==l.I.loading&&(e.networkStatus!==l.I.setVariables||(null===(n=e.events)||void 0===n?void 0:n.length))?(null===(t=e.events)||void 0===t?void 0:t.length)?(0,r.jsxs)(a.Kq,{spacing:"4",children:[e.events.map((n,t,i)=>{var l;let o=n.startDate,a=null===(l=i[t-1])||void 0===l?void 0:l.startDate,
1s=0!==t&&i.length>1&&!!o&&!!a&&new Date(o).getMonth()!==new Date(a).getMonth();return(0,r.jsxs)(d.Fragment,{children:[s&&(0,r.jsx)(ListDividerWithText,{children:v()(o).format("MMMM")}),(0,r.jsx)(p.P,{event:n,trackClickEvent:()=>e.trackClickEvent&&e.trackClickEvent(n._id)})]},n._id)}),e.hasMore&&(0,r.jsx)(s.zx,{variant:"link",colorScheme:"black",onClick:e.fetchMore,isLoading:e.networkStatus===l.I.fetchMore,children:"View More"})]}):e.empty||(0,r.jsx)(EventListEmpty,{title:"There are no events here"}):(0,r.jsx)(u.F,{})};EventList.eventFragment=(0,o.Ps)(_templateObject(),p.P.eventFragment)}}]);
2//# sourceMappingURL=36926-6a4ef3da88944736.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.