PageSourceSearch

https://www.careerfairy.io/_next/static/chunks/pages/group/[groupI…/content/offline-events-2fa21eac39faa340.js

js careerfairy.io collected 2026-10-01 15:25:53 UTC 53,289 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e77355e5-9cb5-4e80-b0a0-3c58f0bf3e4d",e._sentryDebugIdIdentifier="sentry-dbid-e77355e5-9cb5-4e80-b0a0-3c58f0bf3e4d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8427],{11511:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var o=t(7896),r=t(31461),i=t(2784),s=t(40489),a=t(76224),l=t(43853),c=t(65992),d=t(47645),u=t(6970);function getTableContainerUtilityClass(e){return(0,u.ZP)("MuiTableContainer",e)}(0,d.Z)("MuiTableContainer",["root"]);var p=t(52322);let h=["className","component"],useUtilityClasses=e=>{let{classes:n}=e;return(0,a.Z)({root:["root"]},getTableContainerUtilityClass,n)},f=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,n)=>n.root})({width:"100%",overflowX:"auto"}),x=i.forwardRef(function(e,n){let t=(0,l.Z)({props:e,name:"MuiTableContainer"}),{className:i,component:a="div"}=t,c=(0,r.Z)(t,h),d=(0,o.Z)({},t,{component:a}),u=useUtilityClasses(d);return(0,p.jsx)(f,(0,o.Z)({ref:n,as:a,className:(0,s.Z)(u.root,i),ownerState:d},c))});var g=x},64626:function(e,n,t){"use strict";var o=t(7896),r=t(31461),i=t(2784),s=t(40489),a=t(76224),l=t(23502),c=t(43853),d=t(65992),u=t(16256),p=t(52322);let h=["className","component"],useUtilityClasses=e=>{let{classes:n}=e;return(0,a.Z)({root:["root"]},u.s,n)},f=(0,d.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"table-header-group"}),x={variant:"head"},g="thead",v=i.forwardRef(function(e,n){let t=(0,c.Z)({props:e,name:"MuiTableHead"}),{className:i,component:a=g}=t,d=(0,r.Z)(t,h),u=(0,o.Z)({},t,{component:a}),v=useUtilityClasses(u);return(0,p.jsx)(l.Z.Provider,{value:x,children:(0,p.jsx)(f,(0,o.Z)({as:a,className:(0,s.Z)(v.root,i),ref:n,role:a===g?null:"rowgroup",ownerState:u},d))})});n.Z=v},16256:function(e,n,t){"use strict";t.d(n,{s:function(){return getTableHeadUtilityClass}});var o=t(47645),r=t(6970);function getTableHeadUtilityClass(e){return(0,r.ZP)("MuiTableHead",e)}let i=(0,o.Z)("MuiTableHead",["root"]);n.Z=i},64643:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var o=t(31461),r=t(7896),i=t(76224),s=t(40489),a=t(2784),l=t(90766),c=t(6620
1),d=t(52322),u=(0,c.Z)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),p=t(65992),h=t(43853),f=t(7342),x=t(41073);let g=["active","children","className","direction","hideSortIcon","IconComponent"],useUtilityClasses=e=>{let{classes:n,direction:t,active:o}=e,r={root:["root",o&&"active"],icon:["icon",`iconDirection${(0,f.Z)(t)}`]};return(0,i.Z)(r,x.l,n)},v=(0,p.ZP)(l.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:t}=e;return[n.root,t.active&&n.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${x.Z.icon}`]:{opacity:.5}},[`&.${x.Z.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${x.Z.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),m=(0,p.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,n)=>{let{ownerState:t}=e;return[n.icon,n[`iconDirection${(0,f.Z)(t.direction)}`]]}})(({theme:e,ownerState:n})=>(0,r.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})),b=a.forwardRef(function(e,n){let t=(0,h.Z)({props:e,name:"MuiTableSortLabel"}),{active:i=!1,children:a,className:l,direction:c="asc",hideSortIcon:p=!1,IconComponent:f=u}=t,x=(0,o.Z)(t,g),b=(0,r.Z)({},t,{active:i,direction:c,hideSortIcon:p,IconComponent:f}),C=useUtilityClasses(b);return(0,d.jsxs)(v,(0,r.Z)({className:(0,s.Z)(C.root,l),component:"span",disableRipple:!0,ownerState:b,ref:n},x,{children:[a,p&&!i?null:(0,d.jsx)(m,{as:f,className:(0,s.Z)(C.icon),ownerState:b})]}))});var C=b},41073:function(e,n,t){"use strict";t.d(n,{l:function(){return getTableSortLabelUtilityClass}});var o=t(47645),r=t(6970);function getTableSortLabelUtilityClass(e){return(0,r.ZP)("MuiTableSortLabel",e)}let i=(0,o.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);n.Z=i},23071:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/group/[groupId]/admin/content/offline-events",function(){return t(65232)}])},81406:function(e,n,t){"use strict";var o=t(87963),r=t(2784);n.Z=function(e){var n=e.data,t=e.itemsPerPage,i=(0,o._)((0,r.useState)(1),2),s=i[0],a=i[1],l=Math.ceil(n.length/t),c=Math.min(s,Math.max(1,l)),d=(0,r.useCallback)(function(e){e<1||e>l||a(e)},[l]),u=(0,r.useMemo)(function(){var e=(c-1)*t,o=e+t;return n.slice(e,o)},[c,n,t]);return(0,r.useMemo)(function(){return{currentPageData:u,currentPage:c,totalPages:l,goToPage:d,hasNextPage:c<l,hasPreviousPage:c>1}},[u,c,l,d])}},49302:function(e,n,t){"use strict";t.d(n,{Z:function(){return views_CheckoutConfirmationDialog}});var o=t(87963),r=t(52322),i=t(69089),s=t(87037),a=t(35199),l=t(42921),c=t(79312),d=t(23119),u=t(38677),p=t(24022),h=t(4670),f=t(3255),x=t(14579),g=t(1766),v=t(2784),m=t(18231),b=t(63761),C=(0,h._)((0,p._)({},b.k),{keepPreviousData:!0,suspense:!0,onError:function(e,n){return(0,m.LS)(e,{message:"Error fetching Stripe Session status with options: ".concat(n)})}}),stripe_useStripeSessionStatus=function(e){var n=(0,b.Z)(),t=(0,g._)().group,o=(0,m.F8)(),r=(0,v.useMemo)(function(){return{sessionId:e,groupId:t.id,environment:o}},[t.id,e,o]);return(0,f.ZP)([x.G.fetchStripeSessionStatus,r],n,(0,h._)((0,p._)({},C),{suspense:!1}))},j=t(58784),w=t(96607),y=t(36757),Z=t(5007),icons_AlertCircleIcon=function(e){return(0,r.jsx)(Z.Z,(0,h._)((0,p._)({viewBox:"0 0 76 76"},e),{children:(0,r.jsx)("svg",{width:"176",height:"176",viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("g",{id:"alert-circle",children:[(0,r.jsx)("path",{id:"Vector",d:"M37.9997 69.6667C55.4887 69.6667 69.6663 55.489 69.6663 38C69.6663 20.511 55.4887 6.33333 37.9997 6.33333C20.5107 6.33333 6.33301 20.511 6.33301 38C6.33301 55.489 20.5107 69.6667 37.9997 69.6667Z",stroke:"#FF1616","
1stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{id:"Vector_2",d:"M38 25.3333V38",stroke:"#FF1616","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{id:"Vector_3",d:"M38 50.6667H38.0317",stroke:"#FF1616","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round"})]})})}))},k=t(39095),E=t(5632),S=t(51107),I=(0,t(83776).e)({dialogPaperMobile:{minHeight:"100%",minWidth:"100%",justifyContent:"center",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px"},link:{color:function(e){return e.palette.neutral[600]}},dialogPaperDesktop:{p:"28px",justifyContent:"center"},container:{display:"flex",flexDirection:"column",justifyContent:"end"},containerMobile:{display:"flex",flexDirection:"column",justifyContent:"end",mt:"220px"},dialogContentWrapper:{p:"15px",alignItems:"center"},messageTitle:{maxWidth:"350px",fontWeight:700,textAlign:"center"},messageDescription:{maxWidth:"450px",fontWeight:400,textAlign:"center",color:function(e){return e.palette.neutral[400]}},imageWrapper:{backgroundImage:"url('/Party-popper1.png')",width:"128.229px",height:"132px"},errorImageWrapper:{width:"108px",height:"108px",backgroundColor:function(e){return e.brand.error[50]},borderRadius:"50%",alignContent:"center"},closeButton:{minWidth:"95%",borderRadius:"20px"},alertIcon:{width:"76px",height:"76px",ml:"16px",mt:"6px"},xCloseButton:{position:"absolute",top:{md:"8px",xs:"16px",sm:"16px"},right:{md:"8px",xs:"16px",sm:"16px"},cursor:"pointer"}}),PaymentCompleteComponent=function(e){var n=e.sessionId,t=e.successTitle,a=e.successDescription,l=e.successButtonText,c=(0,E.useRouter)(),d=c.asPath,u=c.replace,p=(0,o._)((0,v.useState)(!0),2),h=p[0],f=p[1],x=(0,j.Z)(),g=stripe_useStripeSessionStatus(n).data,m=new URL(d,(0,w.SV)());m.searchParams.delete("stripe_session_id");var b=m.pathname+m.search,closeDialog=function(){f(!1),u(b)},C=!!g&&"complete"==g.status&&"paid"==g.paymentStatus;return(0,r.jsxs)(i.Z,{sx:x?I.containerMobile:I.container,scroll:"paper",open:h,maxWidth:"md",PaperProps:{sx:x?I.dialogPaperMobile:I.dialogPaperDesktop},TransitionComponent:k.sV,children:[(0,r.jsx)(s.Z,{onClick:closeDialog,sx:I.xCloseButton,children:(0,r.jsx)(S.Z,{size:24})}),(0,r.jsx)(y.Z,{condition:C,fallback:(0,r.jsx)(PaymentFailureComponent,{handleClose:closeDialog}),children:(0,r.jsx)(PaymentSuccessComponent,{handleClose:closeDialog,successTitle:t,successDescription:a,successButtonText:l})})]})},PaymentFailureComponent=function(e){var n=e.handleClose;return(0,r.jsxs)(a.Z,{direction:"column",sx:I.dialogContentWrapper,spacing:2,children:[(0,r.jsxs)(a.Z,{alignItems:"center",spacing:1,children:[(0,r.jsx)(l.Z,{sx:I.errorImageWrapper,children:(0,r.jsx)(icons_AlertCircleIcon,{sx:I.alertIcon})}),(0,r.jsx)(c.Z,{variant:"brandedH3",sx:I.messageTitle,children:"An error occurred"}),(0,r.jsxs)(a.Z,{spacing:3,children:[(0,r.jsxs)(c.Z,{variant:"brandedBody",sx:I.messageDescription,children:["We","'","re sorry, but there seems to be a temporary issue processing your purchase. Don","'","t worry, your payment information is safe."]}),(0,r.jsxs)(c.Z,{variant:"brandedBody",sx:I.messageDescription,children:["If the issue persists, please contact us at"," ",(0,r.jsx)(d.Z,{href:"mailto:[email protected]",sx:I.link,children:"[email protected]"})," ","and we","'","ll be happy to help."]})]})]}),(0,r.jsx)(u.Z,{sx:I.closeButton,color:"error",variant:"contained",onClick:n,children:"Try again later"})]})},PaymentSuccessComponent=function(e){var n=e.handleClose,t=e.successTitle,o=e.successDescription,i=e.successButtonText;return(0,r.jsxs)(a.Z,{direction:"column",sx:I.dialogContentWrapper,spacing:2,children:[(0,r.jsxs)(a.Z,{alignItems:"center",spacing:1,children:[(0,r.jsx)(l.Z,{sx:I.imageWrapper}),(0,r.jsx)(c.Z,{variant:"brandedH3",sx:I.messageTitle,children:t}),(0,r.jsx)(c.Z,{variant:"brandedBody",sx:I.messageDescription,children:o})]}),(0,r.jsx)(u.Z,{sx:I.closeButton,color:"secondary",variant:"contained",onClick:n,children:i})]})},views_CheckoutConfirmationDialog=function(e){var n=e.successTitle,t=e.successDescription,o=e.successButtonText,i=(0,E.useRouter)().query.stripe_session_id;return(0,r.jsx)(y.Z,{condition:!!i,children:(0,r.jsx)(PaymentCompleteComponent,{sessionId:i,successTitle:n,successDescription:t,successButtonText:o})})}},53232:function(e,n,t){"use strict";t.d(n,{o:function(){return XCircleIcon}});var o=t(24022),r=t(4670),i=t(52322),s=t(5007),XCircleIcon=function(e){return(0,i.jsx)(s.Z,(0,r._)((0,o._)({},e),{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_19545_25567)",children:[(0,i.jsx)("path",{d:"M9.99935 18.3333C14.6017 18.3333 18.3327 14.6024 18.3327 9.99999C18.3327 5.39762 14.6017 1.66666 9.99935 1.66666C5.39698 1.66666 1.66602 5.39762 1.66602 9.99999C1.66602 14.6024 5.39698 18.3333 9.99935 18.3333Z",fill:"#8E8E8E",stroke:"#8E8E8E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M12.5 7.5L7.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.5 7.5L12.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_19545_25567",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}))}},20108:function(e,n,t){"use strict";t.d(n,{j:function(){return BrandedSearchField}});var o=t(87963),r=t(52322),i=t(42921),s=t(12115),a=t(80422),l=t(69811),c=t(87037),d=t(82056),u=t(58784),p=t(53232),h=t(2784),f=t(32465),x=t(51107),g=t(27866),v=t(83776),m=t(10173),b=(0,v.e)({searchField:{"& .MuiFilledInput-root":{background:function(e){return"".concat(e.brand.white[100]," !important")}},"& .MuiInputBase-root":{p:"4px 12px",height:"48px",borderRadius:"12px",border:function(e){return"1px solid ".concat(e.palette.neutral[50])},background:function(e){return e.brand.white[100]},"&.Mui-focused":{border:function(e){return"1.2px solid ".concat(e.palette.neutral[100])},background:function(e){return e.brand.white[100]}}},"& .MuiInputBase-input":{ml:"8px",p:"0px","&::placeholder":{color:function(e){return e.palette.neutral[600]},opacity:1,fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},"& .MuiFilledInput-input":{color:function(e){return e.palette.neutral[800]},fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},searchIcon:{color:function(e){return e.palette.neutral[600]},width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},optionIcon:{width:"16px",height:"16px"},clearIcon:{width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{cursor:"pointer"}},dropdownContainer:{position:"relative",width:"100%"},dropdown:{position:"absolute",top:"100%",left:0,right:0,mt:1,maxHeight:"500px",overflow:"auto",borderRadius:"8px",boxShadow:"0px 0px 12px 0px rgba(20, 20, 20, 0.08)",zIndex:function(e){return e.zIndex.appBar-1}},optionItem:{color:function(e){return e.palette.neutral[700]},px:{xs:0,md:1.5},py:1,cursor:"pointer",position:"relative","&:hover":{backgroundColor:function(e){return e.brand.black[100]}},"&.selected":{backgroundColor:function(e){return e.palette.neutral[100]}}},deleteButton:{color:function(e){return e.palette.neutral[200]},width:"24px",height:"24px",padding:"4px","&:hover":{color:function(e){return e.palette.neutral[600]},backgroundColor:function(e){return e.palette.neutral[100]}}}}),Input=function(e){var n=e.value,t=e.onChange,o=e.placeholder,s=e.fullWidth,a=e.onKeyDown,l=e.showStartIcon,c=e.onFocus,d=e.onBlur,u=e.onClear,h=e.autoFocus,x=e["aria-expanded"],g=e["aria-controls"];return(0,r.jsx)(m.Z,{id:"search-field-input",fullWidth:void 0===s||s,placeholder:void 0===o?"Search...":o,sx:b.searchField,autoFocus:void 0!==h&&h,InputProps:{startAdornment:void 0===l||l?(0,r.jsx)(i.Z,{component:f.Z,sx:b.searchIcon}):null,endAdornment:(null==n?void 0:n.length)?(0,r.jsx)(i.Z,{sx:b.clearIcon,component:p.o,onClick:function(){t(""),null==u||u()}}):null},inputProps:{"aria-expanded":x,"aria-controls":g,"aria-autocomplete":"list",role:"combobox",autoComplete:"off"},value:n,onChange:function(e){t(e.target.value)},onKeyDown:a,onFocus:c,onBlur:d})},Dropdown=function(e){var n=e.isOpen,t=e.handleClose,o=e.children,i=(0,h.useRef)(null);return((0,g.Z)(i,function(){n&&t()}),n)?(0,r.jsx)(s.Z,{ref:i,sx:b.dropdown,id:"search-field-dropdown",role:"listbox","aria-labelledby":"search-field-input",children:"function"==typeof o?o({close:t}):o}):null},BrandedSearchField=function(e){var n=e.value,t=e.onChange,s=e.placeholder,a=e.fullWidth,l=e.onKeyDown,c=e.showStartIcon,d=e.onFocus,u=e.onBlur,p=e.onClear,f=e.children,x=e.enableDropdown,g=void 0!==x&&x,v=e.autoFocus,m=(0,o._)((0,h.useState)(!1),2),C=m[0],j=m[1];return(0,r.jsxs)(i.Z,{sx:b.dropdownContainer,children:[(0,r.jsx)(Input,{value:n,onChange:function(e){t(e),g&&j(!0)},placeholder:void 0===s?"Search...":s,fullWidth:void 0===a||a,onKeyDown:function(e){"Escape"===e.key&&C&&(j(!1),e.preventDefault()),"Enter"===e.key&&(j(function(e){return!e}),e.preventDefault()),null==l||l(e)},showStartIcon:void 0===c||c,onFocus:function(){g&&j(!0),null==d||d()},onBlur:function(){null==u||u()},onClear:function(){j(!0),null==p||p()},autoFocus:void 0!==v&&v,"aria-expanded":C,"aria-controls":"search-field-dropdown"}),!!g&&(0,r.jsx)(Dropdown,{isOpen:C,handleClose:function(){j(!1)},children:f})]})};BrandedSearchField.Input=Input,BrandedSearchField.DropdownList=function(e){var n=e.onSelect,t=e.options,o=e.startIcon,s=void 0===o?f.Z:o,p=e.onDelete,h=(0,u.Z)(),handleOptionClick=function(e){n(e)},handleDelete=function(e,n){e.stopPropagation(),null==p||p(n)};return(0,r.jsx)(a.Z,{dense:!0,children:t.map(function(e,n){return(0,r.jsxs)(l.ZP,{sx:b.optionItem,onClick:function(){return handleOptionClick(e)},secondaryAction:p?(0,r.jsx)(c.Z,{sx:b.deleteButton,onClick:function(n){return handleDelete(n,e)},children:(0,r.jsx)(x.Z,{size:16})}):null,children:[(0,r.jsx)(i.Z,{component:s,sx:[b.optionIcon,{mr:h?1.5:1}]}),(0,r.jsx)(d.Z,{primary:e,primaryTypographyProps:{fontSize:"16px",fontWeight:"400"}})]},"".concat(e,"-").concat(n))})})}},68596:function(e,n,t){"use strict";t.d(n,{I7:function(){return P},wd:function(){return SubheaderLink}});var o=t(20606),r=t(24022),i=t(4670),s=t(83286),a=t(87963),l=t(52322),c=t(89025),d=t(42523),u=t(79312),p=t(92096),h=t(7671),f=t(23883),x=t(43894),g=t(38677),v=t(18960),m=t(95341),b=t(42921),C=t(12956),j=t(65992),w=t(74555),y=t(2784),Z=t(95271),k=t(65),E=t(83776),S=t(18831),I=(0,E.e)({card:{width:"100%",display:"flex",flexDirection:"column",boxShadow:"none",border:"1px solid",borderColor:"secondary.50"},dropdownButton:{color:"black",textTransform:"none",paddingRight:function(e){return e.spacing(2)}},cardContent:{paddingX:function(e){return e.spacing(2)},paddingTop:0},cardHeader:{paddingX:function(e){return e.spacing(2)},paddingBottom:function(e){return e.spacing(1)}},tooltip:{marginTop:function(e){return e.spacing(1)},marginRight:function(e){return e.spacing(1)},cursor:"pointer"},subheaderLink:{textDecoration:"none",fontWeight:600},subheaderIcon:{width:"18px",marginLeft:"5px",marginTop:"1px"}}),D=(0,j.ZP)(function(e){var n=e.className,t=(0,s._)(e,["className"]);return(0,l.jsx)(f.Z,(0,i._)((0,r._)({sx:I.tooltip},t),{classes:{popper:n}}))})((0,o._)({},"& .".concat(x.Z.tooltip),{maxWidth:250})),Options=function(e){var n=e.options,t=e.handler,o=(0,a._)((0,y.useState)(n[0]),2),r=o[0],i=o[1],s=(0,w.Z)(),c=s.handleClick,d=s.open,u=s.handleClose,p=s.anchorEl,h=(0,y.useCallback)(function(e){return function(){null==t||t(e),i(e),u()}},[u,t]);return(0,l.jsxs)("div",{children:[(0,l.jsx)(g.Z,{"aria-controls":d?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:c,endIcon:(0,l.jsx)(Z.Z,{width:"16",height:16}),disableRipple:!0,sx:I.dropdownButton,children:r}
1),(0,l.jsx)(v.Z,{anchorEl:p,open:d,onClose:u,anchorOrigin:M,transformOrigin:O,children:n.map(function(e){return(0,l.jsx)(m.Z,{onClick:h(e),children:e},e)})})]})},SubheaderLink=function(e){var n=e.link,t=e.title;return(0,l.jsx)(S.C,{href:n,color:"secondary",sx:I.subheaderLink,children:(0,l.jsxs)(b.Z,{display:"flex",alignItems:"center",mt:1,children:[(0,l.jsx)("span",{children:t}),(0,l.jsx)(k.Z,{style:I.subheaderIcon})]})})},P=(0,j.ZP)(C.Z)(function(e){var n,t=e.theme;return{"& .MuiPagination-ul li:last-child":{display:"block"},"& .MuiPagination-ul li:last-child button::before":(0,o._)({content:"'Next'",marginRight:t.spacing(1)},t.breakpoints.down("sm"),{marginRight:t.spacing(.1),content:"''"}),"& .MuiPagination-ul li:first-of-type":{display:"block"},"& .MuiPagination-ul li:first-of-type button::after":(0,o._)({content:"'Previous'",marginLeft:t.spacing(1)},t.breakpoints.down("sm"),{marginLeft:t.spacing(.1),content:"''"}),"& .MuiPagination-ul li button":(n={fontWeight:500,padding:t.spacing(1,2)},(0,o._)(n,t.breakpoints.down("sm"),{padding:0}),(0,o._)(n,"&.MuiPaginationItem-page",{margin:t.spacing(0,.5),padding:0}),n),"& .MuiPaginationItem-ellipsis":{display:"none"},".MuiPagination-ul":{justifyContent:"end"},flex:"none",marginTop:0}}),M={vertical:"bottom",horizontal:"right"},O={vertical:"top",horizontal:"right"};n.ZP=function(e){var n=e.title,t=e.options,o=e.optionsHandler,i=e.children,s=e.helpTooltip,a=e.subHeader,f=e.sx,x=e.cardContentSx,g=e.customAction,v=e.customHeader,m=e.disableTypography,b=e.dataTestId,C=s?(0,l.jsx)(D,{title:s,arrow:!0,children:(0,l.jsx)(c.Z,{})}):t?(0,l.jsx)(Options,{options:t,handler:o||void 0}):g||void 0,j=(0,y.useMemo)(function(){return(0,r._)({},f,I.card)},[f]),w=void 0!==v?v:(0,l.jsx)(d.Z,{sx:I.cardHeader,title:(0,l.jsx)(u.Z,{variant:"brandedH5","data-testid":"card-title",children:n}),action:C,disableTypography:void 0!==m&&m,subheader:(0,l.jsx)("span",{"data-testid":"card-subheader",children:a})});return(0,l.jsxs)(p.Z,{"data-testid":void 0===b?"card-custom":b,sx:j,children:[w,(0,l.jsx)(h.Z,{sx:(0,E.E)(I.cardContent,x),children:(0,l.jsx)("span",{"data-testid":"card-value",children:i})})]})}},65232:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eO}});var o,r=t(52322),i=t(2929),s=t(35199),a=t(89178),l=t(55783),c=t(58784),d=t(36757),u=t(49302),p=t(1766),h=t(5632),f=t(2784),x=t(18231),g=t(26167),v=t(87037),m=t(42921),b=t(79312),C=t(38677),j=t(11743),w=t(24022),y=t(4670),Z=t(5007),icons_PlusCircleIcon=function(e){return(0,r.jsx)(Z.Z,(0,y._)((0,w._)({viewBox:"0 0 144 100"},e),{children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"144",height:"100",viewBox:"0 0 144 100",fill:"none",children:[(0,r.jsxs)("g",{filter:"url(#filter0_d_22679_11988)",children:[(0,r.jsx)("path",{d:"M71.5707 96.4913C85.2502 96.4913 96.3396 85.4019 96.3396 71.7224C96.3396 58.0429 85.2502 46.9535 71.5707 46.9535C57.8912 46.9535 46.8018 58.0429 46.8018 71.7224C46.8018 85.4019 57.8912 96.4913 71.5707 96.4913Z",fill:"#FEFEFE"}),(0,r.jsx)("path",{d:"M71.5707 96.4913C85.2502 96.4913 96.3396 85.4019 96.3396 71.7224C96.3396 58.0429 85.2502 46.9535 71.5707 46.9535C57.8912 46.9535 46.8018 58.0429 46.8018 71.7224C46.8018 85.4019 57.8912 96.4913 71.5707 96.4913Z",stroke:"#CCF6DA",strokeWidth:"1.10084",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("path",{d:"M61.6641 71.7229H81.4792",stroke:"#00BD40",strokeWidth:"4.40336",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M71.5713 61.8149V81.6301",stroke:"#00BD40",strokeWidth:"4.40336",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("filter",{id:"filter0_d_22679_11988",x:"0.015686",y:"0.167786",width:"143.109",height:"143.109",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,r.jsx)("feOffset",{}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"23.1176"}),(0,r.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,r.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0791667 0 0 0 0 0.0765278 0 0 0 0 0.0765278 0 0 0 0.08 0"}
1),(0,r.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_22679_11988"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_22679_11988",result:"shape"})]})})]})}))},k=t(39095),E=t(96577),S=t.n(E),I=t(39097),D=t.n(I),P=t(51107),M=t(83776),O=(0,M.e)({desktopPaper:{maxWidth:"516px",borderRadius:{xs:"12px 12px 0 0",sm:"12px 12px 0 0",md:"24px"},height:"461px"},mobilePaper:{borderTopLeftRadius:"24px",borderTopRightRadius:"24px",height:"485px"},contentRoot:{p:"12px 12px 24px 12px ",height:"100%",width:"100%"},illustrationContainer:{height:"100%",maxHeight:"177px",borderRadius:"14px",background:"conic-gradient(from 180deg at 50% 50%, #E7E1FF 0deg, #C9BFF9 160.9615409374237deg, #CDB4FF 271.7307758331299deg, #D0C8F5 360deg)",display:"flex",alignItems:"flex-start",justifyContent:"center"},plusCircleIcon:{position:"absolute",ml:23,mt:4},closeButton:{position:"absolute",top:{md:"12px",xs:"32px"},right:"12px",cursor:"pointer",color:function(e){return e.brand.white[50]}}}),OutOfEventsDialog=function(e){var n=e.open,t=e.onClose,o=e.onPromoteEvents,i=e.onContactTeam,a=(0,c.Z)(900);return(0,r.jsx)(j.I,{TransitionComponent:k.sV,open:n,handleClose:t,dialogPaperStyles:a?O.mobilePaper:O.desktopPaper,children:(0,r.jsxs)(s.Z,{spacing:"24px",sx:O.contentRoot,children:[(0,r.jsxs)(s.Z,{minWidth:"100%",alignItems:"center",children:[(0,r.jsx)(v.Z,{sx:O.closeButton,onClick:t,children:(0,r.jsx)(P.Z,{size:24})}),(0,r.jsx)(m.Z,{sx:O.illustrationContainer,minWidth:"100%",children:(0,r.jsx)(S(),{src:"https://firebasestorage.googleapis.com/v0/b/careerfairy-e1fd9.appspot.com/o/illustration-images%2Fcalendar.png?alt=media&token=9ec49476-8a85-4316-b7c9-748a79dd2145",alt:"Calendar",style:{objectFit:"contain",marginLeft:"36px"},priority:!0,height:225,width:221})}),(0,r.jsx)(m.Z,{sx:O.plusCircleIcon,component:icons_PlusCircleIcon,width:144,height:186})]}),(0,r.jsxs)(s.Z,{spacing:2,px:a?"12px":"24px",children:[(0,r.jsxs)(s.Z,{spacing:0,alignItems:"center",children:[(0,r.jsx)(b.Z,{variant:"brandedH5",color:"neutral.800",fontWeight:700,children:"No offline events left"}),(0,r.jsx)(b.Z,{variant:"medium",color:"neutral.700",textAlign:"center",children:"You've used all your offline events, but your opportunities don't have to stop here. Add more and continue reaching the students that matter most."})]}),(0,r.jsxs)(s.Z,{spacing:1.5,children:[(0,r.jsxs)(C.Z,{variant:"contained",color:"secondary",fullWidth:!0,onClick:o,children:[a?"Buy":"Promote"," more offline events"]}),(0,r.jsx)(C.Z,{variant:"outlined",color:"grey",fullWidth:!0,onClick:function(){return null==i?void 0:i()},component:D(),href:"https://library.careerfairy.io/meetings/kandeeban/offline-events",target:"_blank",children:"Contact our team"})]})]})]})})},T=t(90766),_=t(20108),R=t(78046),B=t(99916),F=(0,M.e)({availableEventsCounter:{borderTopLeftRadius:"12px",borderBottomLeftRadius:"12px",backgroundColor:function(e){return e.brand.white[100]},border:function(e){return"1px solid ".concat(e.palette.secondary[50])},px:"12px",width:"100%"},getMoreEventsMobile:{borderTopRightRadius:"12px",borderBottomRightRadius:"12px",p:"12px",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",borderTop:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderRight:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderBottom:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderLeft:"none"},getMoreEventsDesktop:{borderTopRightRadius:"12px",borderBottomRightRadius:"12px",p:"14px 12px",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",borderTop:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderRight:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderBottom:function(e){return"1px solid ".concat(e.palette.neutral[50])},borderLeft:"none"},eventsCounterRoot:{height:"48px",minWidth:"fit-content"},eventsCounterRootMobile:{minWidth:"100%",height:"48px",display:"flex",alignItems:"stretch"},moreEventsNoneAvailable:{backgroundColor:function(e){return e.brand.purple[500]},color:function(e){return e.brand.white[100]}},moreEvents:{backgroundColor:function(e){return e.brand.white[300]},color:function(e){return e.brand.purple[600]}}}),OverviewHeader=function(){var e,n=(0,c.Z)(700),t=(0,p._)(),o=t.group,i=t.groupPresenter,a=(0,B.E)(),l=a.searchTerm,d=a.setSearchTerm,u=a.handleCheckoutDialogOpen;return(0,r.jsxs)(s.Z,{direction:n?"column":"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,r.jsx)(_.j,{value:l,onCh
1ange:d,placeholder:"Search",fullWidth:!0}),(0,r.jsxs)(s.Z,{sx:n?F.eventsCounterRootMobile:F.eventsCounterRoot,direction:"row",children:[(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,sx:F.availableEventsCounter,children:[(0,r.jsx)(m.Z,{component:R.Z,size:16,color:"neutral.700"}),(0,r.jsxs)(b.Z,{variant:"small",color:"neutral.700",sx:{whiteSpace:"nowrap"},children:[null!==(e=null==o?void 0:o.availableOfflineEvents)&&void 0!==e?e:0," ",(null==o?void 0:o.availableOfflineEvents)===1?"event":"events"," ","available"]})]}),(0,r.jsx)(T.Z,{sx:[n?F.getMoreEventsMobile:F.getMoreEventsDesktop,(null==i?void 0:i.availableOfflineEvents)===0?F.moreEventsNoneAvailable:F.moreEvents],onClick:u,children:(0,r.jsx)(b.Z,{variant:"small",sx:{whiteSpace:"nowrap"},children:"Promote more events"})})]})]})},L=t(18249),A=t(11511),W=t(50075),V=t(64626),N=t(70969),H=t(36908),z=t(27104),U=t(81406),K=t(64157),G=t(7647),X=t(68596),$=t(86177),q=t(11761),Y=t(65992),Q=(0,M.e)({root:{"& path":{strokeWidth:1}}}),icons_PointerClickIcon=function(e){return(0,r.jsx)(Z.Z,(0,y._)((0,w._)({viewBox:"0 0 16 16",sx:Q.root},e),{children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M9.33333 2.73334L8 4",stroke:"#6B6B7F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M3.40001 5.33332L1.46667 4.79999",stroke:"#6B6B7F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M3.99994 8L2.73328 9.33333",stroke:"#6B6B7F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M4.80005 1.46667L5.33338 3.40001",stroke:"#6B6B7F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M6.02469 6.46002C5.99883 6.39912 5.99177 6.33189 6.00439 6.26695C6.01701 6.202 6.04875 6.14231 6.09553 6.09553C6.14231 6.04875 6.202 6.01701 6.26695 6.00439C6.33189 5.99177 6.39912 5.99883 6.46002 6.02469L13.7934 9.02469C13.8586 9.05146 13.9137 9.09825 13.9507 9.15833C13.9877 9.2184 14.0046 9.28866 13.9992 9.35899C13.9937 9.42932 13.966 9.4961 13.9202 9.54972C13.8743 9.60333 13.8126 9.64102 13.744 9.65735L10.8447 10.3514C10.725 10.3799 10.6156 10.4411 10.5285 10.5281C10.4414 10.615 10.3801 10.7244 10.3514 10.844L9.65802 13.744C9.64186 13.8129 9.60422 13.8748 9.55053 13.9209C9.49685 13.9669 9.4299 13.9947 9.35939 14.0002C9.28887 14.0057 9.21843 13.9886 9.15826 13.9514C9.09809 13.9142 9.05131 13.8589 9.02469 13.7934L6.02469 6.46002Z",stroke:"#6B6B7F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}))},J=t(26566),ee=t(34882),en=t(49174),et=t(96607),eo=t(95680),er=t(6871),ei=t(64083),es=t(60369),ea=t(70177),el=t(3737),ec=(0,M.e)({iconButton:{p:.75,borderRadius:"83px",color:"neutral.600",backgroundColor:"transparent",width:32,height:32,"&:hover":{backgroundColor:"neutral.50"},"& svg":{width:20,height:20,fontSize:20}},motionContainer:{display:"flex",gap:"12px",alignItems:"center"}}),ed={hidden:{opacity:0,y:5},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:800,damping:30,duration:.1}}},OfflineEventHoverActionIcons=function(e){var n=e.isPublished,t=e.onShareOfflineEvent,o=e.onAnalytics,i=e.onEdit;return(0,r.jsxs)(er.Z,{variants:ed,initial:"hidden",animate:"visible",sx:ec.motionContainer,children:[i?(0,r.jsx)(es.l,{title:"Edit",placement:"top",disableInteractive:!0,children:(0,r.jsx)(v.Z,{"data-testid":"hover-action-edit",sx:ec.iconButton,onClick:(0,x.ht)(i),children:(0,r.jsx)(ea.Z,{})})}):null,n&&t?(0,r.jsx)(es.l,{title:"Share offline event",placement:"top",disableInteractive:!0,children:(0,r.jsx)(v.Z,{"data-testid":"hover-action-share-offline-event",sx:ec.iconButton,onClick:(0,x.ht)(t),children:(0,r.jsx)(ei.h,{})})}):null,n&&o?(0,r.jsx)(es.l,{title:"Analytics",placement:"top",disableInteractive:!0,children:(0,r.jsx)(v.Z,{"data-testid":"hover-action-analytics",sx:ec.iconButton,onClick:(0,x.ht)(o),children:(0,r.jsx)(el.Z,{})})}):null]})},eu=(0,M.e)({container:{display:"flex",gap:1,minWidth:300,flex:1,height:64},thumbnailButton:{width:116,height:64,flexShrink:0,cursor:"pointer"},thumbnailImage:{borderRadius:"4px",objectFit:"cover",backgroundColor:"neutral.200"},contentContainer:{flex:1,minWidth:0,height:64,overflow:"visible",position:"relative"},titleText:(0,y._)((0,w._)({},(0,et.K6)(1)),{width:"fit-content",maxWidth:"100%"}),clickableTitle:{cursor:"pointer","&:hover":{textDecoration:"underline"}}
1,actionsBackground:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"flex-end",backgroundColor:"transparent",overflow:"visible",pointerEvents:"none","& > *":{pointerEvents:"auto"}}}),OfflineEventCardPreview=function(e){var n=e.stat,t=e.onShareOfflineEvent,o=e.onAnalytics,i=e.onEdit,a=n.offlineEvent.published,l=i?(0,x.ht)(i):void 0;return(0,r.jsx)(s.Z,{direction:"row",spacing:4,width:"100%",justifyContent:"space-between",children:(0,r.jsxs)(m.Z,{sx:eu.container,children:[(0,r.jsx)(m.Z,{sx:eu.thumbnailButton,onClick:l,children:(0,r.jsx)(S(),{src:n.offlineEvent.backgroundImageUrl||eo.QF,alt:n.offlineEvent.title||"Offline event thumbnail",width:116,height:64,style:eu.thumbnailImage,quality:70,loading:"lazy",sizes:"116px"})}),(0,r.jsxs)(s.Z,{sx:eu.contentContainer,pt:1,justifyContent:"space-between",children:[(0,r.jsx)(b.Z,{variant:"medium",color:"neutral.800",fontWeight:400,children:(0,r.jsx)(m.Z,{component:"span",sx:[eu.titleText,!!i&&eu.clickableTitle],onClick:l,children:n.offlineEvent.title||"Untitled"})}),(0,r.jsx)(m.Z,{sx:eu.actionsBackground,children:(0,r.jsx)(OfflineEventHoverActionIcons,{isPublished:a,onShareOfflineEvent:t,onAnalytics:o,onEdit:i})})]})]})})},ep=t(20606),eh=t(81166),ef=t(34254),ex=t(92938),eg=(o={},(0,ep._)(o,ex.EM.UPCOMING,{icon:eh.Z,color:function(e){return e.brand.success[700]}}),(0,ep._)(o,ex.EM.DRAFT,{icon:ef.Z,color:function(e){return e.brand.warning[600]}}),(0,ep._)(o,ex.EM.PAST,{icon:function(e){return(0,r.jsx)(Z.Z,(0,y._)((0,w._)({viewBox:"0 0 20 20"},e),{children:(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{"clip-path":"url(#clip0_22937_13273)",children:(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.26178 5.26194H5.83337C6.29361 5.26194 6.66671 5.63504 6.66671 6.09528C6.66671 6.55551 6.29361 6.92861 5.83337 6.92861H2.50004C2.0398 6.92861 1.66671 6.55551 1.66671 6.09528V2.75462C1.66671 2.29438 2.0398 1.92129 2.50004 1.92129C2.96028 1.92129 3.33337 2.29438 3.33337 2.75462V3.80898C5.19761 1.85407 7.32223 1.09528 10 1.09528C15.0627 1.09528 19.1667 5.19933 19.1667 10.2619C19.1667 15.3246 15.0627 19.4286 10 19.4286C5.21813 19.4286 1.29142 15.767 0.870687 11.0947C0.829411 10.6363 1.20647 10.2619 1.66671 10.2619C2.12694 10.2619 2.49518 10.6365 2.54567 11.0939C2.9596 14.8445 6.13912 17.7619 10 17.7619C14.1422 17.7619 17.5 14.4041 17.5 10.2619C17.5 6.11981 14.1422 2.76194 10 2.76194C7.63272 2.76194 5.87059 3.42142 4.26178 5.26194ZM10.8348 9.91156C10.8348 10.0333 10.8919 10.1481 10.989 10.2216L13.3308 11.9932C13.6981 12.271 13.765 12.7965 13.4791 13.1575C13.2099 13.4974 12.7228 13.5693 12.3668 13.3217L9.47604 11.3105C9.28225 11.1757 9.16671 10.9545 9.16671 10.7185V6.09652C9.16671 5.63568 9.54044 5.26217 10.0013 5.26246C10.4617 5.26274 10.8348 5.63608 10.8348 6.09652V9.91156Z",fill:"#7A7A8E",stroke:"#7A7A8E","stroke-width":"0.5"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_22937_13273",children:(0,r.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}))},color:function(e){return e.palette.text.secondary}}),o),OfflineEventStatusBadge=function(e){var n=e.status;if(!eg[n])return null;var t=(0,r.jsx)(m.Z,{component:eg[n].icon,size:20,width:20,height:20,color:eg[n].color});return(0,r.jsx)(es.l,{title:function(){switch(n){case ex.EM.UPCOMING:return"Upcoming";case ex.EM.DRAFT:return"Draft";case ex.EM.PAST:return"Past";default:return"Unknown"}}(),placement:"top",offset:[0,-5],disableInteractive:!0,children:t})},ev=t(87963),em=t(57827),eb=t(70696),eC=t(88715),ej=(0,M.e)({iconButton:{p:.75,color:"neutral.700","&:hover":{backgroundColor:"neutral.100"}}}),OfflineEventActionsMenu=function(e){var n=e.stat,t=e.onEdit,o=e.onDelete,i=(0,ev._)((0,f.useState)(null),2),s=i[0],a=i[1],l=[{label:"Edit event",icon:(0,r.jsx)(ea.Z,{size:16}),handleClick:(0,x.ht)(function(){return t(n)}),color:"neutral.700"},{label:"Delete event",icon:(0,r.jsx)(eb.Z,{size:16}),handleClick:(0,x.ht)(function(){return o(n)}),color:"error.main"}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{size:"small",onClick:function(e){e.stopPropagation(),a(e.currentTarget)},sx:ej.iconButton,children:(0,r.jsx)(eC.Z,{size:16})}),(0,r.jsx)(em.G7,{options:l,open:!!s,anchorEl:s,onClose:(0,x.ht)(function(e){e&&e.stopPropagation(),a(null)}),placement:"bottom"})]})},OfflineEventTableRowActions=function(e){var n=e.stat,t=e.onViewOfflineEvent,o=e.onShareOfflineEvent,i=e.onAnalytics,s=e.onEdit,a=e.onViewRegistration,l=e.onViewDetails,c=e.onDelete;return(0,r.jsx)(m.Z,{sx:{display:"flex",alignItems:"center",gap:.5},children:(0,r.jsx)(OfflineEventActionsMenu,{stat:n,onViewOfflineEvent:t,onShareOfflineEvent:o,onAnalytics:i,onEdit:s,onViewRegistration:a,onViewDetails:l,onDelete:c})})},ew=(0,M.e)({bodyRow:{transition:"all 0.2s ease-in-out",height:80,"& .MuiTableCell-root":{borderBottom:"none",py:1,border:"1px solid",borderColor:function(e){return e.brand.purple[50]},backgroundColor:function(e){return e.brand.white[200]},boxSizing:"border-box",transition:"all 0.2s ease-in-out",height:80,verticalAlign:"top","&:first-of-type":{borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",borderRight:"none"},"&:not(:first-of-type):not(:last-child)":{borderLeft:"none",borderRight:"none"},"&:last-child":{borderTopRightRadius:"8px",borderBottomRightRadius:"8px",borderLeft:"none"}}},bodyRowHovered:{"& .MuiTableCell-root":{borderColor:"secondary.100",backgroundColor:function(e){return e.brand.white[400]}}},bodyCell:{px:1}}),ey=(0,Y.ZP)(m.Z)({display:"flex",alignItems:"center",width:"100%",height:"100%"}),OfflineEventTableRow=function(e){var n,t,o,i,s=e.stat,a=e.statKey,l=e.onMouseEnter,c=e.onMouseLeave,d=e.onViewOfflineEvent,u=e.onShareOfflineEvent,p=e.onAnalytics,h=e.onEdit,g=e.onViewRegistration,v=e.onViewDetails,C=e.onDelete,j=e.onClicksClick,w=e.onViewsClick,y=(0,K.v9)(function(e){return e.offlineEventsTable.hoveredRow===a}),Z=(0,f.useCallback)(function(){l(a)},[l,a]),k=(0,f.useCallback)(function(){c()}
1,[c]),E=(0,ex.yD)(s.offlineEvent),S=s.offlineEvent.startAt?ee.Z.formatEventDate(s.offlineEvent.startAt.toDate()):"No date";return(0,r.jsxs)(N.Z,{sx:[ew.bodyRow,y&&ew.bodyRowHovered],onMouseEnter:Z,onMouseLeave:k,onFocus:Z,onBlur:k,children:[(0,r.jsx)(z.Z,{variant:"head",sx:ew.bodyCell,children:(0,r.jsx)(ey,{children:(0,r.jsx)(OfflineEventCardPreview,{stat:s,status:E,onShareOfflineEvent:function(){return u(s)},onAnalytics:function(){return p(s)},onEdit:function(){return h(s)}})})}),(0,r.jsx)(z.Z,{sx:ew.bodyCell,children:(0,r.jsx)(ey,{children:(0,r.jsxs)(en.D,{title:"Offline event date",direction:"row",alignItems:"center",spacing:1,color:"neutral.600",cursor:"default",children:[(0,r.jsx)(m.Z,{component:R.Z,size:16}),(0,r.jsx)(b.Z,{variant:"small",whiteSpace:"nowrap",children:S})]})})}),(0,r.jsx)(z.Z,{children:(0,r.jsx)(ey,{children:(0,r.jsxs)(en.D,{onClick:(0,x.ht)(function(){return w(s)}),title:"Views",direction:"row",alignItems:"center",spacing:1,color:"neutral.600",width:92,cursor:"pointer",children:[(0,r.jsx)(m.Z,{component:J.Z,size:16}),(0,r.jsx)(b.Z,{variant:"small",children:(null===(n=s.stats)||void 0===n?void 0:n.totalViews)>0?null===(t=s.stats)||void 0===t?void 0:t.totalViews:"-"})]})})}),(0,r.jsx)(z.Z,{children:(0,r.jsx)(ey,{children:(0,r.jsxs)(en.D,{onClick:(0,x.ht)(function(){return j(s)}),title:"Clicks",direction:"row",alignItems:"center",spacing:1,color:"neutral.600",width:92,cursor:"pointer",children:[(0,r.jsx)(m.Z,{component:icons_PointerClickIcon,color:"white"}),(0,r.jsx)(b.Z,{variant:"small",children:(null===(o=s.stats)||void 0===o?void 0:o.totalClicks)>0?null===(i=s.stats)||void 0===i?void 0:i.totalClicks:"-"})]})})}),(0,r.jsx)(z.Z,{sx:ew.bodyCell,children:(0,r.jsxs)(ey,{gap:.5,children:[(0,r.jsx)(m.Z,{p:1,children:(0,r.jsx)(OfflineEventStatusBadge,{status:E})}),(0,r.jsx)(OfflineEventTableRowActions,{stat:s,isHovered:y,onViewOfflineEvent:d,onShareOfflineEvent:u,onAnalytics:p,onEdit:h,onViewRegistration:g,onViewDetails:v,onDelete:C})]})})]},a)},eZ=(0,M.e)({root:{backgroundColor:function(e){return e.brand.white[100]},borderRadius:"16px",border:"1px solid",borderColor:"secondary.50",px:1},tableContainer:{width:"100%",overflowX:"auto","& ::-webkit-scrollbar":{height:"6px",backgroundColor:"transparent"},"& ::-webkit-scrollbar-thumb":{borderRadius:"8px",backgroundColor:function(e){return e.palette.neutral[200]},minHeight:"24px"},"& ::-webkit-scrollbar-thumb:hover":{backgroundColor:function(e){return e.palette.neutral[300]}},scrollbarWidth:"thin",scrollbarColor:function(e){return"".concat(e.palette.neutral[200]," transparent")}},table:{borderCollapse:"separate",borderSpacing:"0px 8px",width:"100%",tableLayout:"fixed","& .MuiTableHead-root":{"& .MuiTableRow-root":{"& .MuiTableCell-root":{paddingBottom:0}}}},paginationContainer:{mt:1,pb:1.5},emptyCell:{p:0,border:"none",px:.5,pb:.5},emptyCard:{bgcolor:function(e){return e.brand.white[200]},border:function(e){return"1px solid ".concat(e.brand.white[400])},borderRadius:2,px:1,textAlign:"center"}}),ek=[{value:ex.EM.UPCOMING,name:"Upcoming"},{value:ex.EM.DRAFT,name:"Draft"},{value:ex.EM.PAST,name:"Past"}],DesktopOfflineEventsView=function(e){var n=e.stats,t=e.isEmptyNoEvents,o=e.isEmptySearchFilter,i=e.onCreateOfflineEvent,a=(0,B.E)(),l=a.handleTableSort,c=a.getSortDirection,d=a.isActiveSort,u=a.statusFilter,h=a.setStatusFilter,x=a.resetFilters,g=a.setOnPaginationReset,v=(0,p._)().groupPresenter,j=null==v?void 0:v.canCreateOfflineEvents();(0,f.useEffect)(function(){return function(){x()}},[x]);var w=(0,U.Z)({data:n,itemsPerPage:6}),y=w.currentPageData,Z=w.currentPage,k=w.totalPages,E=w.goToPage,S=(0,f.useRef)(E);return S.current=E,(0,f.useEffect)(function(){var resetCallback=function(){return S.current(1)};return g(function(){return resetCallback}),function(){return g(void 0)}},[g]),(0,r.jsxs)(m.Z,{sx:eZ.root,children:[(0,r.jsx)(A.Z,{sx:eZ.tableContainer,children:(0,r.jsxs)(W.Z,{sx:eZ.table,children:[(0,r.jsx)(V.Z,{children:(0,r.jsxs)(N.Z,{children:[(0,r.jsx)(q.us,{active:d("title"),direction:c("title"),onSort:function(){return l("title")},children:"Event name"}),(0,r.jsx)(q.us,{active:d("date"),direction:c("date"),onSort:function(){return l("date")},tooltip:"The date when your offline event is scheduled to occur or has already taken place.",width:"220px",children:"Date"}),(0,r.jsx)(q.us,{active:d("views"),direction:c("views"),onSort:function(){return l("views")},tooltip:"The number of views your offline event got.",width:"115px",children:"Views"}),(0,r.jsx)(q.us,{active:d("clicks"),direction:c("clicks"),onSort:function(){return l("clicks")},tooltip:"The number of clicks your offline event got.",width:"115px",children:"Clicks"}),(0,r.jsx)($.w,{selectedStatuses:u,onStatusFilterChange:h,statusOptions:ek,tooltip:"Shows if your offline event is published, still a draft, or has already taken place.",width:"85px"})]})}),(0,r.jsx)(H.Z,{children:o?(0,r.jsx)(N.Z,{children:(0,r.jsx)(z.Z,{colSpan:5,sx:eZ.emptyCell,children:(0,r.jsx)(m.Z,{sx:eZ.emptyCard,py:5,children:(0,r.jsx)(b.Z,{variant:"brandedBody",color:"neutral.700",children:"No offline events found matching your search"})})})}):t?(0,r.jsx)(N.Z,{children:(0,r.jsx)(z.Z,{colSpan:5,sx:eZ.emptyCell,children:(0,r.jsxs)(s.Z,{alignItems:"center",sx:eZ.emptyCard,py:4,children:[(0,r.jsx)(b.Z,{variant:"brandedBody",color:"neutral.800",fontWeight:600,mb:.5,children:"Plan your first offline event"}),(0,r.jsx)(b.Z,{variant:"brandedBody",color:"neutral.700",mb:1.5,children:"This is where all your offline events will appear. Start by creating one or contact our sales department to upgrade your plan."}),(0,r.jsx)(C.Z,{variant:"contained",color:"secondary",disabled:!j,onClick:i,children:"Create offline event"})]})})}):(0,r.jsx)(Rows,{currentPageData:y})})]})}),k>1&&(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-end",sx:eZ.paginationContainer,children:(0,r.jsx)(X.I7,{
1color:"secondary",size:"small",count:k,page:Z,onChange:function(e,n){return E(n)}})})]})},Rows=function(e){var n=e.currentPageData,t=(0,B.E)(),o=t.handleViewOfflineEvent,i=t.handleShareOfflineEvent,s=t.handleAnalytics,a=t.handleEdit,l=t.handleViewRegistration,c=t.handleViewDetails,d=t.handleDelete,u=(0,K.I0)(),p=(0,f.useCallback)(function(e){u((0,G.R_)(e))},[u]),h=(0,f.useCallback)(function(){u((0,G.n_)())},[u]);return(0,r.jsx)(r.Fragment,{children:n.map(function(e){var n=(0,ex.Rb)(e);return(0,r.jsx)(OfflineEventTableRow,{stat:e,statKey:n,onMouseEnter:p,onMouseLeave:h,onViewOfflineEvent:o,onShareOfflineEvent:i,onAnalytics:s,onEdit:a,onViewRegistration:l,onViewDetails:c,onDelete:d,onClicksClick:s,onViewsClick:s},n)})})},eE=t(39789),OfflineEventMobileActionsMenu=function(e){var n,t=e.stat,o=e.open,i=e.onClose,s=(0,B.E)(),a=s.handleShareOfflineEvent,l=s.handleAnalytics,c=s.handleEdit,d=s.handleDelete,u=t?(0,ex.yD)(t.offlineEvent):null,p=null!==(n=null==t?void 0:t.offlineEvent.published)&&void 0!==n&&n,h=(0,f.useRef)([]),x=(0,f.useMemo)(function(){var e=[];return p&&e.push({label:"Share event",icon:(0,r.jsx)(ei.h,{}),handleClick:function(){return a(t)}}),p&&e.push({label:"Analytics",icon:(0,r.jsx)(el.Z,{}),handleClick:function(){return l(t)}}),e.push({label:getEditLabel(u),icon:(0,r.jsx)(ea.Z,{}),handleClick:function(){return c(t)}}),e.push({label:getDeleteLabel(u),icon:(0,r.jsx)(eb.Z,{}),color:"error.main",handleClick:function(){return d(t)}}),o&&(h.current=e),o?e:h.current},[t,u,p,a,l,c,d,o]);return(0,r.jsx)(em.Aj,{disableSwipeToOpen:!0,open:o,options:x,onClose:i})},getEditLabel=function(e){return ex.EM.DRAFT,ex.EM.UPCOMING,ex.EM.PAST,"Edit event"},getDeleteLabel=function(e){return ex.EM.DRAFT,ex.EM.UPCOMING,ex.EM.PAST,"Delete event"},eS=(0,M.e)({eventCard:{height:109,p:1,display:"flex",flexDirection:"column",justifyContent:"space-between",borderRadius:"8px",border:function(e){return"1px solid ".concat(e.brand.white[400])},backgroundColor:function(e){return e.brand.white[100]},textAlign:"left",verticalAlign:"top",alignItems:"flex-start"},image:{borderRadius:"8px",objectFit:"cover",flexShrink:0},statsRow:{color:"neutral.600",width:"100%","& svg":{width:14,height:14}}}),OfflineEventMobileCard=function(e){var n,t,o,i,a=e.stat,l=e.onCardClick,c=(0,ex.yD)(a.offlineEvent),d=a.offlineEvent.startAt?ee.Z.formatEventDate(a.offlineEvent.startAt.toDate()):"No date";return(0,r.jsxs)(T.Z,{sx:eS.eventCard,onClick:l,disableRipple:!0,children:[(0,r.jsxs)(s.Z,{direction:"row",spacing:1,children:[(0,r.jsx)(S(),{src:a.offlineEvent.backgroundImageUrl||eo.QF,alt:a.offlineEvent.title||"Offline event thumbnail",width:96,height:53,style:eS.image}),(0,r.jsxs)(s.Z,{spacing:.5,children:[(0,r.jsx)(b.Z,{variant:"medium",sx:(0,et.K6)(2),color:"neutral.800",children:a.offlineEvent.title||"Untitled"}),(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,color:"neutral.600",children:[(0,r.jsx)(R.Z,{size:14}),(0,r.jsx)(b.Z,{variant:"xsmall",children:d})]})]})]}),(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,sx:eS.statsRow,children:[(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,r.jsx)(J.Z,{size:14}),(0,r.jsx)(b.Z,{variant:"xsmall",children:null!==(o=null===(n=a.stats)||void 0===n?void 0:n.totalViews)&&void 0!==o?o:0})]}),(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,r.jsx)(m.Z,{component:icons_PointerClickIcon,fill:"none",color:"white"}),(0,r.jsx)(b.Z,{variant:"xsmall",children:null!==(i=null===(t=a.stats)||void 0===t?void 0:t.totalClicks)&&void 0!==i?i:0})]}),(0,r.jsx)(OfflineEventStatusBadge,{status:c})]})]})},eI=(0,M.e)({loadMoreTrigger:{height:300},emptyCard:{px:1,backgroundColor:function(e){return e.brand.white[200]},borderRadius:"8px",textAlign:"center",border:function(e){return"1px solid ".concat(e.brand.white[400])}}}),MobileOfflineEventsView=function(e){var n=e.stats,t=e.isEmptyNoEvents,o=e.isEmptySearchFilter,i=e.onCreateOfflineEvent,a=(0,B.E)().resetFilters,l=(0,eE.Z)({data:n,itemsPerPage:10}),c=l.visibleData,d=l.hasMore,u=l.ref,h=(0,p._)().groupPresenter,x=null==h?void 0:h.canCreateOfflineEvents(),g=(0,ev._)((0,f.useState)(null),2),v=g[0],j=g[1];(0,f.useEffect)(function(){return function(){a()}},[a]);var handleCardClick=function(e){j(e)};return(0,r.jsxs)(f.Fragment,{children:[o?(0,r.jsx)(m.Z,{py:5,sx:eI.emptyCard,textAlign:"center",children:(0,r.jsx)(b.Z,{variant:"brandedBody",color:"neutral.700",children:"No offline events found matching your search"})}):t?(0,r.jsxs)(s.Z,{sx:eI.emptyCard,py:4,color:"neutral.700",alignItems:"center",children:[(0,r.jsx)(b.Z,{variant:"brandedBody",mb:1,fontWeight:600,children:"Plan your first offline event"}),(0,r.jsx)(b.Z,{variant:"brandedBody",textAlign:"center",mb:1.5,children:"This is where all your offline events will appear. Start by creating one or contact our sales department to upgrade your plan."}),(0,r.jsx)(C.Z,{variant:"contained",color:"secondary",onClick:i,disabled:!x,children:"Create offline event"})]}):(0,r.jsxs)(s.Z,{spacing:.5,children:[c.map(function(e){return(0,r.jsx)(OfflineEventMobileCard,{stat:e,onCardClick:function(){return handleCardClick(e)}},(0,ex.Rb)(e))}),!!d&&(0,r.jsx)(m.Z,{sx:eI.loadMoreTrigger,ref:u})]}),(0,r.jsx)(OfflineEventMobileActionsMenu,{stat:v,open:!!v,onClose:function(){j(null)}})]})},eD=t(42309),eP=t(25473),OfflineEventsOverviewContent=function(){var e=(0,h.useRouter)().query.groupId,n=(0,c.Z)(700),t=(0,B.E)(),o=t.sortBy,g=t.statusFilter,v=t.
1searchTerm,m=t.checkoutDialogOpen,b=t.handleCheckoutDialogClose,C=t.handleCheckoutDialogOpen,j=t.outOfEventsDialogOpen,w=t.handleOutOfEventsDialogClose,y=t.stripeSessionId,Z=(0,p._)(),k=Z.group,E=Z.groupPresenter,S=!(null==E?void 0:E.canCreateOfflineEvents(!0)),I=(0,a.a)().userData,D=(0,eP.H)().createDraftOfflineEvent,P=(0,x.F8)(),M=(0,l.su)(e,{sortBy:o,searchTerm:v,statusFilter:g}),O=M.data,T=M.isLoading,_=M.error,R=!!(g.length>0||v.trim()),F=0===O.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{condition:!!y,children:(0,r.jsx)(u.Z,{successTitle:"Your offline event credits have been purchased!",successDescription:"You can now create and publish offline events to reach more students and expand your university's presence.",successButtonText:"Start creating events"})}),(0,r.jsx)(OutOfEventsDialog,{open:j,onClose:w,onPromoteEvents:C}),(0,r.jsx)(L.c,{checkoutData:{type:i.V1.OFFLINE_EVENT,customerName:"".concat(I.firstName," ").concat(I.lastName),customerEmail:I.userEmail,groupId:k.groupId,environment:P,priceId:"price_1SKwTWKcrPDGIq6mAhUkKCKZ",successUrl:"/group/".concat(k.id,"/admin/content/offline-events?stripe_session_id={CHECKOUT_SESSION_ID}")},open:m,onClose:b,title:"Plan your next offline events",subtitle:"Select how many offline events you want to publish and reach more students."}),S?(0,r.jsx)(eD.d,{}):(0,r.jsxs)(s.Z,{spacing:1,pt:n?2:3.5,pb:3,children:[(0,r.jsx)(OverviewHeader,{}),!!T&&(0,r.jsx)("p",{children:"Loading stats..."}),!!_&&(0,r.jsxs)("p",{children:["Error loading stats: ",_.message]}),(0,r.jsx)(f.Fragment,{children:n?(0,r.jsx)(MobileOfflineEventsView,{stats:O,isEmptyNoEvents:!R&&F,isEmptySearchFilter:!!(R&&F),onCreateOfflineEvent:D}):(0,r.jsx)(DesktopOfflineEventsView,{stats:O,isEmptyNoEvents:!R&&F,isEmptySearchFilter:!!(R&&F),onCreateOfflineEvent:D})})]})]})},OfflineEventsOverview=function(){return(0,r.jsx)(g.t,{children:(0,r.jsx)(B.x,{children:(0,r.jsx)(OfflineEventsOverviewContent,{})})})},eM=t(53645),OfflineEventsPage=function(){return(0,r.jsx)(OfflineEventsOverview,{})};OfflineEventsPage.getLayout=function(e){return(0,eM.M)({titleComponent:"Content",dashboardHeadTitle:"CareerFairy | My Offline Events",subNavigationFor:"content"})(e)};var eO=OfflineEventsPage},34254:function(e,n,t){"use strict";var o=t(2784),r=t(13980),i=t.n(r);function _extends(){return(_extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}var s=(0,o.forwardRef)(function(e,n){var t=e.color,r=e.size,i=void 0===r?24:r,s=function(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}(e,["color","size"]);return o.createElement("svg",_extends({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),o.createElement("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),o.createElement("polyline",{points:"13 2 13 9 20 9"}))});s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="File",n.Z=s},27866:function(e,n,t){"use strict";var o=t(2784),r=t(36883),i=["mousedown","touchstart"];n.Z=function(e,n,t){void 0===t&&(t=i);var s=(0,o.useRef)(n);(0,o.useEffect)(function(){s.current=n},[n]),(0,o.useEffect)(function(){for(var handler=function(n){var t=e.current;t&&!t.contains(n.target)&&s.current(n)},n=0,o=t;n<o.length;n++){var i=o[n];(0,r.on)(document,i,handler)}return function(){for(var e=0,n=t;e<n.length;e++){var o=n[e];(0,r.S1)(document,o,handler)}}},[t,e])}}},function(e){e.O(0,[8421,2212,5351,1446,5188,960,1139,1251,6523,6573,3486,1236,8325,9650,3396,4381,2956,1465,6612,6659,6262,8255,5507,5947,3645,4598,847,9774,2888,179],function(){return e(e.s=23071)}),_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.