PageSourceSearch

https://www.oscainc.org/_next/static/chunks/pages/admin/events/xproConferences-a721989e9ae30cc7.js

js oscainc.org collected 2026-10-04 13:27:42 UTC 13,753 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45071,57026],{57026:function(e,t,n){"use strict";n.d(t,{Ph:function(){return s}});var r=n(67294),i=n(83234),a=n(38655),o=n(54520),cx=(...e)=>e.filter(Boolean).join(" "),dataAttr=e=>e?"":void 0,l=(0,a.Gp)(function(e,t){let{children:n,placeholder:i,className:o,...l}=e;return r.createElement(a.m$.select,{...l,ref:t,className:cx("chakra-select",o)},i&&r.createElement("option",{value:""},i),n)});l.displayName="SelectField";var s=(0,a.Gp)((e,t)=>{var n;let s=(0,a.jC)("Select",e),{rootProps:c,placeholder:u,icon:d,color:p,height:h,h:m,minH:f,minHeight:x,iconColor:b,iconSize:g,...v}=(0,o.Lr)(e),[j,_]=function(e,t){let n={},r={};for(let[i,a]of Object.entries(e))t.includes(i)?n[i]=a:r[i]=a;return[n,r]}(v,o.oE),y=(0,i.Yp)(_),C={paddingEnd:"2rem",...s.field,_focus:{zIndex:"unset",...null==(n=s.field)?void 0:n._focus}};return r.createElement(a.m$.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:p},...j,...c},r.createElement(l,{ref:t,height:m??h,minH:f??x,placeholder:u,...y,__css:C},e.children),r.createElement(SelectIcon,{"data-disabled":dataAttr(y.disabled),...(b||p)&&{color:b||p},__css:s.icon,...g&&{fontSize:g}},d))});s.displayName="Select";var DefaultIcon=e=>r.createElement("svg",{viewBox:"0 0 24 24",...e},r.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),c=(0,a.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),SelectIcon=e=>{let{children:t=r.createElement(DefaultIcon,null),...n}=e,i=(0,r.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return r.createElement(c,{...n,className:"chakra-select__icon-wrapper"},(0,r.isValidElement)(t)?i:null)};SelectIcon.displayName="SelectIcon"},36158:function(e,t,n){"use strict";n.d(t,{Od:function(){return h},s7:function(){return SkeletonCircle},N2:function(){return SkeletonText}});var r=n(67294),i=n(51469),a=n(38655),o=n(70917),l=n(54520),cx=(...e)=>e.filter(Boolean).join(" "),s=(0,a.m$)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),useIsFirstRender=()=>{let e=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{e.current=!1},[]),e.current},c=(0,o.F4)({from:{opacity:0}
1,to:{opacity:1}}),u="var(--skeleton-start-color)",d="var(--skeleton-end-color)",p=(0,o.F4)({from:{borderColor:u,background:u},to:{borderColor:d,background:d}}),h=(0,a.Gp)((e,t)=>{let n=(0,a.mq)("Skeleton",e),i=useIsFirstRender(),{startColor:o,endColor:u,isLoaded:d,fadeDuration:h,speed:m,className:f,...x}=(0,l.Lr)(e),b=function(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}(d),g=cx("chakra-skeleton",f);if(d){let e=i||b?"none":`${c} ${h}s`;return r.createElement(a.m$.div,{ref:t,className:g,__css:{animation:e},...x})}return r.createElement(s,{ref:t,className:g,...x,__css:{...n,animation:`${m}s linear infinite alternate ${p}`}})});h.defaultProps={fadeDuration:.4,speed:.8},h.displayName="Skeleton";var SkeletonText=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:o="0.5rem",className:l,startColor:s,endColor:c,isLoaded:u,fadeDuration:d,speed:p,children:m,...f}=e,x=(0,i.Sx)("number"==typeof t?[t]:t)||3,b=Array(x).fill(1).map((e,t)=>t+1),getWidth=e=>x>1&&e===b.length?"80%":"100%",g=cx("chakra-skeleton__group",l);return r.createElement(a.m$.div,{className:g,...f},b.map((e,t)=>{if(u&&t>0)return null;let i=u?null:{mb:e===b.length?"0":n,width:getWidth(e),height:o};return r.createElement(h,{key:b.length.toString()+e,startColor:s,endColor:c,isLoaded:u,fadeDuration:d,speed:p,...i},0===t?m:void 0)}))};SkeletonText.displayName="SkeletonText";var SkeletonCircle=({size:e="2rem",...t})=>r.createElement(h,{borderRadius:"full",boxSize:e,...t});SkeletonCircle.displayName="SkeletonCircle"},36696:function(e,t,n){"use strict";n.d(t,{$R:function(){return m},Rn:function(){return d},Td:function(){return b},Th:function(){return f},Tr:function(){return x},hr:function(){return p},iA:function(){return c},p3:function(){return h},xJ:function(){return u}});var r=n(67294),i=n(38655),a=n(54520),o=n(28387),cx=(...e)=>e.filter(Boolean).join(" "),[l,s]=(0,o.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),c=(0,i.Gp)((e,t)=>{let n=(0,i.jC)("Table",e),{className:o,...s}=(0,a.Lr)(e);return r.createElement(l,{value:n},r.createElement(i.m$.table,{ref:t,__css:n.table,className:cx("chakra-table",o),...s}))});c.displayName="Table";var u=(0,i.Gp)((e,t)=>{let{overflow:n,overflowX:a,className:o,...l}=e;return r.createElement(i.m$.div,{ref:t,className:cx("chakra-table__container",o),...l,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??a??"auto",overflowY:"hidden",maxWidth:"100%"}})}),d=(0,i.Gp)((e,t)=>{let{placement:n="bottom",...a}=e,o=s();return r.createElement(i.m$.caption,{...a,ref:t,__css:{...o.caption,captionSide:n}})});d.displayName="TableCaption";var p=(0,i.Gp)((e,t)=>{let n=s();return r.createElement(i.m$.thead,{...e,ref:t,__css:n.thead})}),h=(0,i.Gp)((e,t)=>{let n=s();return r.createElement(i.m$.tbody,{...e,ref:t,__css:n.tbody})}),m=(0,i.Gp)((e,t)=>{let n=s();return r.createElement(i.m$.tfoot,{...e,ref:t,__css:n.tfoot})}),f=(0,i.Gp)(({isNumeric:e,...t},n)=>{let a=s();return r.createElement(i.m$.th,{...t,ref:n,__css:a.th,"data-is-numeric":e})}),x=(0,i.Gp)((e,t)=>{let n=s();return r.createElement(i.m$.tr,{...e,ref:t,__css:n.tr})}),b=(0,i.Gp)(({isNumeric:e,...t},n)=>{let a=s();return r.createElement(i.m$.td,{...t,ref:n,__css:a.td,"data-is-numeric":e})})},93052:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/events/xproConferences",function(){return n(78636)}])},14056:function(e,t,n){"use strict";n.d(t,{t:function(){return Pagination}});var r=n(85893),i=n(48641),a=n(47741);n(67294);var o=n(6491);let Pagination=e=>{let{currentPage:t,numberOfPages:n,onChange:l}=e,s=Math.ceil(2.5),c=Math.min(t-s>0?t-s:0,n-5>0?n-5:0),u=c+5;return n<2?null:(0,r.jsx)(i.M5,{mt:"6",children:(0,r.jsxs)(a.hE,{colorScheme:"gray",children:[(0,r.jsx)(a.hU,{isDisabled:1===t,icon:(0,r.jsx)(o.wyc,{}),"aria-label":"Next Page",onClick:()=>l(t-1),variant:"outline"}),Array.from({length:n},(e,t)=>t+1).slice(c,u).map(e=>(0,r.jsx)(a.zx,{variant:t===e?"solid":"ghost",onClick:()=>l(e),children:e},e)),(0,r.jsx)(a.hU,{isDisabled:t===n,icon:(0,r.jsx)(o.XCv,{}),"aria-label":"Previous Page",onClick:()=>l(t+1),variant:"outline"})]})})}},76722:function(e,t,n){"use strict";n.d(t,{t:function(){return r.t}});var r=n(14056)},49764:function(e,t,n){"use strict";n.d(t,{j:function(){return SkeletonTableBody}});var r=n(85893),i=n(36696),a=n(36158),o=n(48641);let SkeletonTableBody=e=>{let{columnCount:t,rows:n=5,columnWidths:l=[],useFullWidth:s=!1}
1=e;return(0,r.jsx)(i.p3,{children:[...Array(n)].map((e,n)=>(0,r.jsx)(i.Tr,{children:[...Array(t)].map((e,t)=>(0,r.jsx)(i.Td,{children:s?(0,r.jsx)(a.Od,{height:"4",borderRadius:"4px"}):(0,r.jsx)(o.xu,{bg:"gray.200",height:"4",width:l[t]||"80px",borderRadius:"4px"})},t))},n))})}},69693:function(e,t,n){"use strict";n.d(t,{g:function(){return useXproActivationStatus}});var r=n(37887),i=n(26704);let useXproActivationStatus=()=>{let{data:e,loading:t,error:n,refetch:a}=(0,r.a)(i.eD,{fetchPolicy:"cache-and-network"});return{xproDetails:null==e?void 0:e.xproActivationStatus,xproLoading:t,error:n,refetchXproStatus:a}}},19598:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(38655);let i=(0,r.m$)("div",{baseStyle:{borderRadius:"8px",backgroundColor:"white",shadow:"base"}})},52670:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.Z}});var r=n(19598)},78636:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var r=n(85893),i=n(67294),a=n(85200),o=n(96317),l=n(1644),s=n(38655),c=n(48641),u=n(20979),d=n(36696),p=n(97026),h=n(47741),m=n(57026),f=n(11163),x=n(76722),b=n(47503),g=n(49764),v=n(69693),j=n(16502),_=n(52670),y=n(6491),C=n(51992),S=n(82729),k=n(50456),E=n(37887);function _templateObject(){let e=(0,S._)(["\n  query XproConferenceList($input: GetXproConferenceInput!) {\n    xproConferenceList(input: $input) {\n      data {\n        _id\n        name\n        startDate\n        endDate\n        timezone\n        venue\n        xproEventId\n        type\n      }\n      page\n      limit\n      total\n      search\n    }\n  }\n"]);return _templateObject=function(){return e},e}let w=(0,k.Ps)(_templateObject()),useXproConferenceList=e=>{let{data:t,loading:n,error:r,refetch:i,networkStatus:a}=(0,E.a)(w,{variables:e,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0});return{xproConferenceList:null==t?void 0:t.xproConferenceList,loading:n,networkStatus:a,error:r,refetchXproConferenceList:i}},T=[10,25,50],FilterTabButton=e=>{let{isChecked:t,onClick:n,children:i}=e;return(0,r.jsx)(s.m$.button,{display:"inline-block",fontSize:"md",fontWeight:t?"semibold":"normal",borderBottom:"2px",borderColor:t?"primary.500":"transparent",p:"4",color:t?"gray.800":"gray.600",onClick:n,children:i})},toApiFilter=e=>"past"===e?b.Mb.PAST:b.Mb.UPCOMING,XproConferencesList=()=>{let e=(0,f.useRouter)(),{xproDetails:t,refetchXproStatus:n}=(0,v.g)(),[a,o]=i.useState(1),[s,b]=i.useState(10),[S,k]=i.useState(""),[E,w]=i.useState(""),N=(0,C.c)(S,500),I="past"===e.query.filter?"past":"upcoming";i.useEffect(()=>{e.isReady&&!e.query.filter&&e.replace({pathname:e.pathname,query:{...e.query,filter:"upcoming"}})},[e,e.isReady,e.query.filter]);let $=i.useMemo(()=>({input:{limit:s,offset:(a-1)*s,search:E,filter:toApiFilter(I)}}),[I,s,a,E]),{xproConferenceList:P,loading:A,networkStatus:L}=useXproConferenceList($);i.useEffect(()=>{w(N),o(1)},[N]),i.useEffect(()=>{o(1)},[s,I]);let q=(null==P?void 0:P.total)||0,D=Math.ceil(q/s);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(c.Kq,{spacing:"4",children:[(0,r.jsx)(_.Z,{as:c.Kq,spacing:"0",children:(0,r.jsx)(c.xu,{px:"4",children:(0,r.jsxs)(c.Kq,{direction:"row",alignItems:"center",children:[(0,r.jsxs)(c.xu,{display:"flex",flexWrap:"wrap",children:[(0,r.jsx)(FilterTabButton,{isChecked:"upcoming"===I,onClick:()=>e.replace({pathname:e.pathname,query:{...e.query,filter:"upcoming",offset:0}}),children:"Upcoming"}),(0,r.jsx)(FilterTabButton,{isChecked:"past"===I,onClick:()=>e.replace({pathname:e.pathname,query:{...e.query,filter:"past",offset:0}}),children:"Past"})]}),(0,r.jsx)(c.LZ,{}),(0,r.jsx)(c.xu,{p:"4",children:(0,r.jsxs)(u.BZ,{width:{lg:"320px",sm:"250px"},children:[(0,r.jsx)(u.Z8,{pointerEvents:"none",children:(0,r.jsx)(y.W1M,{color:"gray.400"})}),(0,r.jsx)(u.II,{placeholder:"Search by Item Name",value:S,onChange:e=>k(e.target.value),bg:"white",borderColor:"gray.300",_focus:{borderColor:"blue.500",boxShadow:"0 0 0 1px #3182ce"}})]})})]})})}),(0,r.jsx)(_.Z,{overflow:"hidden",children:(0,r.jsxs)(d.iA,{children:[(0,r.jsx)(d.hr,{children:(0,r.jsxs)(d.Tr,{children:[(0,r.jsx)(d.Th,{children:"Name"}),(0,r.jsx)(d.Th,{children:"Date"}),(0,r.jsx)(d.Th,{children:"Venue"}),"upcoming"===I?(0,r.jsx)(d.Th,{width:"80px",children:"Action"}):null]})}),A&&L!==l.I.refetch?(0,r.jsx)(g.j,{columnCount:"upcoming"===I?4:3,useFullWidth:!0,rows:10}):(0,r.jsxs)(d.p3,{children:[null==P?void 0:P.data.map(n=>(0,r.jsxs)(d.Tr,{cursor:"pointer",onClick:()=>{(0,j.bq)({xpro_dashboard_source:"conference-list",event_id:n._id,xpro_event_id:n.xproEventId}),window.open("".concat("http://app.xpro.ai/login","/tradewing?token=").concat(null==t?void 0:t.token,"&eventId=").concat(n.xproEventId),"_blank")},children:[(0,r.jsx)(d.Td,{fontWeight:500,children:n.name}
1),(0,r.jsxs)(d.Td,{children:[new Date(n.startDate).toLocaleString()," -"," ",new Date(n.endDate).toLocaleString(),(0,r.jsx)("br",{}),(0,r.jsx)("small",{children:n.timezone})]}),(0,r.jsx)(d.Td,{children:n.venue}),"upcoming"===I?(0,r.jsx)(d.Td,{children:(0,r.jsx)(p.u,{label:"Edit event",placement:"top",hasArrow:!0,children:(0,r.jsx)(h.hU,{"aria-label":"Edit ".concat(n.name),size:"sm",variant:"ghost",icon:(0,r.jsx)(y.dY8,{}),onClick:t=>{t.stopPropagation(),(0,j.Wm)({event_id:n._id,xpro_event_id:n.xproEventId}),e.push("/admin/events/xpro/".concat(n._id,"/edit"))}})})}):null]},n._id)),(null==P?void 0:P.data.length)===0&&(0,r.jsx)(d.Tr,{children:(0,r.jsx)(d.Td,{colSpan:"upcoming"===I?4:3,textAlign:"center",py:10,children:"No record found."})})]})]})}),(0,r.jsxs)(c.kC,{justify:Math.ceil(q/s)>1?"space-between":"center",align:"center",gap:4,flexWrap:"wrap",children:[q>s?(0,r.jsxs)(c.xu,{display:"flex",alignItems:"center",mt:6,children:[(0,r.jsx)(c.xu,{as:"span",fontSize:"sm",mr:2,children:"Showing"}),(0,r.jsx)(m.Ph,{size:"sm",width:"70px",value:s,onChange:e=>b(Number(e.target.value)),mr:2,children:T.map(e=>(0,r.jsx)("option",{value:e,children:e},e))}),(0,r.jsxs)(c.xu,{as:"span",fontSize:"sm",children:["of ",null!=q?q:0," entries"]})]}):(0,r.jsxs)(c.xu,{as:"span",fontSize:"sm",mt:2,children:["Showing total ",null!=q?q:0," entries"]}),D>1&&(0,r.jsx)(x.t,{currentPage:a,numberOfPages:Math.ceil(q/s),onChange:e=>o(e)})]})]})})};var N=n(93064),I=(0,n(52609).z)(()=>(0,r.jsx)(o.C,{children:(0,r.jsxs)(a.DY,{maxWidth:"full",mx:"auto",children:[(0,r.jsx)(a.yG,{justifyContent:"space-between",children:(0,r.jsx)(a.lm,{size:"md",children:"XPro Conferences"})}),(0,r.jsx)(a.hb,{children:(0,r.jsx)(XproConferencesList,{})})]})}),{requiresEvery:[N.lj.ADMIN_ROLE]})}},function(e){e.O(0,[64986,96317,51394,49774,92888,40179],function(){return e(e.s=93052)}),_N_E=e.O()}]);
2//# sourceMappingURL=xproConferences-a721989e9ae30cc7.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.