1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64986],{92481:function(e,n,t){t.d(n,{P:function(){return useBookmarkOnMobileDeviceModal},y:function(){return BookmarkOnMobileDeviceModalProvider}});var i=t(82729),o=t(85893),r=t(50456),l=t(37887),a=t(2821),s=t(48641),u=t(47741),d=t(90195),c=t(11163),v=t(67294),m=t(75538),p=t(62893),h=t(5997);function _templateObject(){let e=(0,i._)(["\n query BookmarkOnMobileDeviceModal_Tenant {\n tenant {\n result {\n _id\n acronym\n absoluteUrl\n }\n }\n }\n"]);return _templateObject=function(){return e},e}let f=(0,r.Ps)(_templateObject()),x=v.createContext(null),useBookmarkOnMobileDeviceModal=()=>{let e=v.useContext(x);if(!e)throw Error("useBookmarkOnMobileDeviceModal() must be inside of <BookmarkOnMobileDeviceModalProvider/>");return e},_BookmarkOnMobileDeviceModal=()=>{var e,n,t,i;let{canAccessCommunityAndGroupFeed:r}=(0,p.T)(),d=(0,l.a)(f),c=null===(n=d.data)||void 0===n?void 0:null===(e=n.tenant.result)||void 0===e?void 0:e.absoluteUrl,v=c?r?"".concat(c,"/community?isBookmarkOnMobileDeviceModalOpen=true"):"".concat(c,"?isBookmarkOnMobileDeviceModalOpen=true"):void 0,{isOpen:x,onClose:g}=useBookmarkOnMobileDeviceModal();return(0,o.jsxs)(a.u_,{isCentered:!0,isOpen:x,onClose:g,children:[(0,o.jsx)(a.ZA,{}),(0,o.jsxs)(a.hz,{children:[(0,o.jsx)(a.ol,{}),(0,o.jsxs)(a.xB,{textAlign:"center",px:"6",pb:"0",py:"16",children:["Add the ",(null===(i=d.data)||void 0===i?void 0:null===(t=i.tenant.result)||void 0===t?void 0:t.acronym)||"association"," ","Community to your Mobile Home Screen"]}),(0,o.jsxs)(a.fe,{p:"6",children:[(0,o.jsx)(s.xv,{textAlign:"center",display:{base:"none",md:"block"},mb:"6",children:"To get started, scan the QR code below and log in."}),(0,o.jsx)(s.xu,{display:{base:"block",md:"none"},children:(0,o.jsx)(m.t,{})}),(0,o.jsx)(s.M5,{display:{base:"none",md:"flex"},children:v&&(0,o.jsx)(h.s,{value:v})})]}),(0,o.jsx)(a.mz,{children:(0,o.jsx)(u.zx,{onClick:g,variant:"outline",colorScheme:"gray",children:"Close"})})]})]})},BookmarkOnMobileDeviceModalProvider=e=>{let n=(0,c.useRouter)(),{onOpen:t,onClose:i,isOpen:r}=(0,d.qY)({defaultIsOpen:!n.pathname.startsWith("/login")&&"true"===n.query.isBookmarkOnMobileDeviceModalOpen});return v.useEffect(()=>{if(r&&"true"===n.query.isBookmarkOnMobileDeviceModalOpen){let{isBookmarkOnMobileDeviceModalOpen:e,...t}=n.query;n.replace({query:t})}},[r,n]),(0,o.jsxs)(x.Provider,{value:{onOpen:t,onClose:i,isOpen:r},children:[e.children,(0,o.jsx)(_BookmarkOnMobileDeviceModal,{})]})}},41079:function(e,n,t){t.d(n,{F:function(){return CodeOfConductModal}});var i=t(82729),o=t(85893),r=t(50456),l=t(50319),a=t(2821),s=t(48641),u=t(49184),d=t(47741),c=t(67294),v=t(16225),m=t(45893),p=t(64570),h=t(86678),f=t(28746);function _templateObject(){let e=(0,i._)(["\n mutation CodeOfConductModal_AcceptCodeOfConduct(\n $input: AcceptCodeOfConductInput!\n ) {\n acceptCodeOfConduct(input: $input) {\n user {\n _id\n acceptedCodeOfConduct\n }\n }\n }\n"]);return _templateObject=function(){return e},e}let x=(0,r.Ps)(_templateObject()),CodeOfConductModal=e=>{var n,t,i,r,g,b,j,O,M,C;let k=(0,m.x)(),{impersonationActive:_}=(0,f.nm)(),[y,S]=c.useState(null!==(n=k.user)&&void 0!==n&&!!n.acceptedCodeOfConduct),[w,D]=(0,l.D)(x),P=!(null===(t=k.tenant)||void 0===t?void 0:t.obnoxiousCodeOfConduct)||!!(null===(i=k.user)||void 0===i?void 0:i.acceptedCodeOfConduct);return(0,o.jsxs)(a.u_,{isOpen:e.isOpen,onClose:e.onClose,scrollBehavior:"inside",closeOnOverlayClick:P,closeOnEsc:_||P,isCentered:!0,size:["full","full","xl"],children:[(0,o.jsx)(a.ZA,{}),(0,o.jsxs)(a.hz,{children:[P&&(0,o.jsx)(a.ol,{color:"black"}),(0,o.jsx)(a.xB,{textAlign:"center",pt:"10",pb:"6",children:(0,o.jsxs)(s.gC,{spacing:"2",children:[(0,o.jsx)(p.d,{symbol:"\uD83D\uDCC3",fontSize:"4xl"}),(0,o.jsxs)(s.X6,{size:"md",children:[!(null===(r=k.user)||void 0===r?void 0:r.acceptedCodeOfConduct)&&(0,o.jsx)(o.Fragment,{children:"Please Read and Accept the "}),"".concat(null===(g=k.tenant)||void 0===g?void 0:g.displayName," Code of Conduct")]}),(0,o.jsx)(s.xv,{color:"gray.600",fontWeight:"normal",children:"Help us cultivate a community we all enjoy!"})]})}),(0,o.jsx)(a.fe,{display:"flex",flexDirection:"column",pb:"6",children:(0,o.jsx)(s.xu,{bg:"gray.100",p:"4",h:"xs",overflow:"auto",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",children:(null===(b=k.tenant)||void 0===b?void 0:b.codeOfConduct)&&(0,o.jsx)(h.M,{children:(0,o.jsx)(v.$,{rawDraftContentState:null===(j=k.tenant)||void 0===j?void 0:j.codeOfConduct})})})}),(0,o.jsx)(a.mz,{pt:"2",pb:"6",children:(null===(O=k.user)||void 0===O?void 0:O.acceptedCodeOfConduct)?(0,o.jsx)(d.zx,{onClick:e.onClose,children:"Okay"}):(0,o.jsxs)(s.kC,{w:"full",justify:"space-between",children:[(0,o.jsx)(u.XZ,{isDisabled:!!(null===(M=k.user)||void 0===M?void 0:M.acceptedCodeOfConduct),isChecked:y,onChange:()=>S(e=>!e),mr:"2",children:"I've read and accepted the code of conduct"}),(0,o.jsx)(d.zx,{isDisabled:!y||!!(null===(C=k.user)||void 0===C?void 0:C.acceptedCodeOfConduct),isLoading:D.loading,onClick:async()=>{y&&(await w({variables:{input:{isPartOfOnboardingFlow:!1}}}),e.onClose())},children:"Accept"})]})})]})]})}},90687:function(e,n,t){t.d(n,{x:function(){return MembershipStatusTag}});var i=t(82729),o=t(85893),r=t(50456),l=t(74373);t(67294);var a=t(47503),s=t(6491);
1function _templateObject(){let e=(0,i._)(["\n fragment MembershipStatusTag_MembershipDataFragment on MembershipData {\n membershipStatus\n __typename\n }\n"]);return _templateObject=function(){return e},e}let MembershipStatusTag=e=>{let{membershipData:n,hasSocialInfo:t=!1,newView:i=!1,...r}=e;return n.membershipStatus===a.UP.NOT_A_MEMBER?(0,o.jsx)(CustomTag,{color:"yellow.500",bg:"yellow.50",hasSocialInfo:t,newView:i,leftIcon:s.tBG,...r,children:"NON-MEMBER"}):n.membershipStatus===a.UP.LAPSED?(0,o.jsx)(CustomTag,{color:"red.500",bg:"red.50",hasSocialInfo:t,leftIcon:s.tBG,...r,children:"EX-MEMBER"}):(0,o.jsx)(CustomTag,{color:"green.500",bg:"green.50",borderRadius:"full",hasSocialInfo:t,leftIcon:s.M3$,...r,children:"ACTIVE MEMBER"})},CustomTag=e=>{let{children:n,hasSocialInfo:t=!1,newView:i=!1,leftIcon:r,...a}=e;return(0,o.jsxs)(l.Vp,{bg:"none",fontWeight:"bold",...a,fontSize:"xs",display:"flex",alignItems:"center",justifyContent:"center",children:[!t&&i&&(0,o.jsx)(l.AD,{as:r}),(0,o.jsx)(l.Sn,{fontSize:"10px",children:n})]})};MembershipStatusTag.membershipDataFragment=(0,r.Ps)(_templateObject())},73556:function(e,n,t){t.d(n,{O:function(){return useContactSupportLink}});var i=t(82729),o=t(50456),r=t(16502);function _templateObject(){let e=(0,i._)(["\n fragment useContactSupportLink_UserFragment on User {\n _id\n firstName\n lastName\n email\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n fragment useContactSupportLink_TenantFragment on Tenant {\n _id\n associationCode\n customContactSupportLinkV2 {\n text\n url\n }\n }\n"]);return _templateObject1=function(){return e},e}let useContactSupportLink=(e,n)=>{let t=(null==n?void 0:n.customContactSupportLinkV2)?{contactSupportLink:n.customContactSupportLinkV2.url,contactSupportText:n.customContactSupportLinkV2.text}:{contactSupportLink:"mailto:[email protected]",contactSupportText:"Contact Support"};return{...t,handleContactSupportClick:()=>{(0,r.EG)({entity_id:null==e?void 0:e._id,entity_type:"user",support_channel:t.contactSupportLink.startsWith("mailto:")?"email":"external_link",support_link_url:t.contactSupportLink,support_link_text:t.contactSupportText,tenant_id:null==n?void 0:n._id,association_code:null==n?void 0:n.associationCode})}}};useContactSupportLink.userFragment=(0,o.Ps)(_templateObject()),useContactSupportLink.tenantFragment=(0,o.Ps)(_templateObject1())},23061:function(e,n,t){t.d(n,{a:function(){return useLogout}});var i=t(82729),o=t(50456),r=t(66252),l=t(37887),a=t(80103),s=t(65885),u=t(49517),d=t(16601),c=t(93710),v=t(74716);function _templateObject(){let e=(0,i._)(["\n query UseLogout_SingleSignOutQuery {\n tenant {\n result {\n _id\n ssoMetadata {\n singleSignOutRedirectURL\n }\n }\n }\n }\n"]);return _templateObject=function(){return e},e}let m=new s.Z,p=(0,o.Ps)(_templateObject()),useLogout=e=>{var n,t,i;let o=(0,v.y_)(),s=(0,r.x)(),h=(0,l.a)(p,{skip:e}),f=null==h?void 0:null===(i=h.data)||void 0===i?void 0:null===(t=i.tenant.result)||void 0===t?void 0:null===(n=t.ssoMetadata)||void 0===n?void 0:n.singleSignOutRedirectURL,doRedirect=()=>{let n=new URLSearchParams(window.location.search).get("redirect");e&&n?window.location.href=n:!e&&f?window.location.href=f:window.location.href="/login"};return async()=>{try{var e;localStorage&&localStorage.removeItem("Meteor.userId"),localStorage&&localStorage.removeItem("Meteor.loginToken"),localStorage&&localStorage.removeItem("Meteor.loginTokenExpires"),m.remove("meteor_login_token",{path:"/"}),m.remove(c.kN,{path:"/"}),m.remove(c.VS,{path:"/"}),null===(e=o.client)||void 0===e||e.disconnectUser(),await d.gQ.logout(),await s.clearStore(),a.v.clearUser()}catch(e){(0,u.H)(e)}finally{doRedirect()}}}},63205:function(e,n,t){t.d(n,{U:function(){return useMemberManagement}});var i=t(45893),o=t(62893);let useMemberManagement=()=>{var e,n,t,r,l,a;let s=(0,i.x)(),u=(0,o.T)(),d=!!(null===(n=s.tenant)||void 0===n?void 0:null===(e=n.featureFlags)||void 0===e?void 0:e.memberManagement),c=!!(null===(r=s.tenant)||void 0===r?void 0:null===(t=r.featureFlags)||void 0===t?void 0:t.memberManagementAdminOnly),v=!!(null===(a=s.tenant)||void 0===a?void 0:null===(l=a.paidModules)||void 0===l?void 0:l.memberManagement),m=v&&d||c&&u.canDoAdminStuffAndAuthenticated;return{isActive:m,loading:s.loading||u.isLoading}}},14670:function(e,n,t){t.d(n,{$:function(){return useRouteMatch},m:function(){return getRouteMatch}});var i=t(11163);let getRouteMatch=(e,n,t)=>{if(null===e)return!1;if(Array.isArray(e))return e.some(e=>getRouteMatch(e,n,t));let i=n.asPath.split("?")[0];
1return(null==t?void 0:t.isExact)?i===e:i===e||i.startsWith("".concat(e,"/"))},useRouteMatch=(e,n)=>{let t=(0,i.useRouter)();return getRouteMatch(e,t,n)}},75031:function(e,n,t){t.d(n,{h:function(){return VideoMeetIcon}});var i=t(85893),o=t(52494);t(67294);let VideoMeetIcon=e=>(0,i.jsxs)(o.JO,{width:"1.2em",height:"1.2em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,i.jsx)("path",{d:"M15 10l4.553-2.276A1 1 0 0 1 21 8.618v6.764a1 1 0 0 1-1.447.894L15 14v-4z"}),(0,i.jsx)("rect",{x:"3",y:"5",width:"12",height:"14",rx:"2",ry:"2"}),(0,i.jsx)("path",{d:"M7 9v6"}),(0,i.jsx)("path",{d:"M11 9v6"})]})},68745:function(e,n,t){t.d(n,{D:function(){return AccountMenu}});var i=t(82729),o=t(85893),r=t(50456),l=t(37887),a=t(48641),s=t(99052),u=t(3812),d=t(47741),c=t(74373),v=t(41664),m=t.n(v),p=t(11163);t(67294);var h=t(90687),f=t(47503),x=t(73556),g=t(23061),b=t(63205),j=t(62893),O=t(6491),M=t(45893),C=t(23253),k=t(28746),_=t(92481);let BookmarkOnMobileDeviceMenuItem=e=>{let{...n}=e;(0,p.useRouter)();let{onOpen:t}=(0,_.P)();return(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.BEV,{boxSize:"4"}),onClick:t,...n,children:"Add to Mobile Device"})};var y=t(90195),S=t(41079);let CodeOfConductMenuItem=()=>{var e;let{isOpen:n,onOpen:t,onClose:i}=(0,y.qY)(),r=(0,M.x)();return!r.loading&&(null===(e=r.tenant)||void 0===e?void 0:e.codeOfConduct)&&r.user?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.KNL,{}),onClick:t,children:"Code of Conduct"}),(0,o.jsx)(S.F,{isOpen:n,onClose:i})]}):null};var w=t(83454);function _templateObject(){let e=(0,i._)(['\n query AccountMenu_Query {\n currentUser {\n _id\n canAccessCommunity\n displayName\n rosterOrganization {\n _id\n currentUserOrganizationPermission {\n canManageOrganizationProfile\n canManageOrganizationMembership\n }\n }\n proxyProfilePictureUrl(\n input: { w: 140, h: 140, fit: "facearea", facepad: 10.0 }\n )\n membershipData {\n ...MembershipStatusTag_MembershipDataFragment\n }\n ...useContactSupportLink_UserFragment\n }\n\n myDraftPostCount\n\n tenant {\n result {\n _id\n ...useContactSupportLink_TenantFragment\n }\n }\n }\n ',"\n ","\n ","\n"]);return _templateObject=function(){return e},e}let D=(0,r.Ps)(_templateObject(),h.x.membershipDataFragment,x.O.userFragment,x.O.tenantFragment),AccountMenu=()=>{var e,n,t,i,r,v,_,y,S,P,A,I,L,z,F,T,U,E,N,B,R,q,$,Q,V,W,H,G;let K=(0,p.useRouter)(),Y=(0,g.a)(),{mobileGrowth:X,sharedCommunityAccess:Z}=(0,C.g)(),J=(0,M.x)(),ee=(0,b.U)(),en=(0,l.a)(D),{impersonationActive:et,stopImpersonation:ei}=(0,k.nm)(),eo=(0,j.T)(),er=null===(n=en.data)||void 0===n?void 0:null===(e=n.currentUser)||void 0===e?void 0:e._id,el=!!er&&eo.canDoAdminStuffAndAuthenticated,ea=K.asPath.startsWith("/admin"),es=null===(t=w.env.NEXT_PUBLIC_SHARED_COMMUNITY_TENANT_ID)||void 0===t?void 0:t.trim(),eu=el&&Z&&(!es||(null===(i=J.tenant)||void 0===i?void 0:i._id)!==es),{contactSupportLink:ed,contactSupportText:ec,handleContactSupportClick:ev}=(0,x.O)(null===(r=en.data)||void 0===r?void 0:r.currentUser,null===(v=en.data)||void 0===v?void 0:v.tenant.result);return(0,o.jsx)(a.xu,{children:(0,o.jsxs)(s.v2,{children:[(0,o.jsx)(s.j2,{cursor:"pointer","aria-label":"account menu",children:(0,o.jsx)(u.qE,{boxSize:"10",ignoreFallback:!0,name:null===(y=en.data)||void 0===y?void 0:null===(_=y.currentUser)||void 0===_?void 0:_.displayName,src:null!==(H=null===(P=en.data)||void 0===P?void 0:null===(S=P.currentUser)||void 0===S?void 0:S.proxyProfilePictureUrl)&&void 0!==H?H:void 0})}),(0,o.jsxs)(s.qy,{children:[(0,o.jsxs)(a.Kq,{direction:"row",p:"2",children:[(0,o.jsx)(u.qE,{name:null===(I=en.data)||void 0===I?void 0:null===(A=I.currentUser)||void 0===A?void 0:A.displayName,src:null!==(G=null===(z=en.data)||void 0===z?void 0:null===(L=z.currentUser)||void 0===L?void 0:L.proxyProfilePictureUrl)&&void 0!==G?G:void 0}),(0,o.jsxs)(a.Kq,{spacing:"0",children:[(0,o.jsx)(a.xv,{textStyle:"xlBodyStrong",flexGrow:"1",noOfLines:1,children:null===(T=en.data)||void 0===T?void 0:null===(F=T.currentUser)||void 0===F?void 0:F.displayName}),ee.isActive&&(null===(N=en.data)||void 0===N?void 0:null===(E=N.currentUser)||void 0===E?void 0:null===(U=E.membershipData)||void 0===U?void 0:U.membershipStatus)===f.UP.MEMBER&&(0,o.jsx)(h.x,{membershipData:en.data.currentUser.membershipData,p:"0"})]})]}),(0,o.jsx)(s.kS,{children:(0,o.jsx)(a.xu,{p:"2",children:(0,o.jsx)(m(),{href:"/me/profile",children:(0,o.jsx)(d.zx,{as:s.sN,variant:"outline",colorScheme:"gray",children:"Edit your Profile"})})})}),((null===(q=en.data)||void 0===q?void 0:null===(R=q.currentUser)||void 0===R?void 0:null===(B=R.rosterOrganization)||void 0===B?void 0:B.currentUserOrganizationPermission.canManageOrganizationProfile)||(null===(V=en.data)||void 0===V?void 0:null===(Q=V.currentUser)||void 0===Q?void 0:null===($=Q.rosterOrganization)||void 0===$?void 0:$.currentUserOrganizationPermission.canManageOrganizationMembership)&&ee.isActive)&&(0,o.jsxs)(s.kS,{title:"MY COMPANY",children:[en.data.currentUser.rosterOrganization.currentUserOrganizationPermission.canManageOrganizationProfile&&(0,o.jsx)(m(),{href:"/my-company/dashboard/overview",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.VpB,{boxSize:"4"}),children:"Company Profile"})}),en.data.currentUser.rosterOrganization.currentUserOrganizationPermission.canManageOrganizationMembership&&ee.
1isActive&&(0,o.jsx)(m(),{href:"/my-company/membership",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.M3$,{boxSize:"4"}),children:"Company Membership"})})]}),(0,o.jsxs)(s.kS,{title:"YOUR ACCOUNT",children:[!!er&&(0,o.jsx)(m(),{href:"/drafts",children:(0,o.jsxs)(s.sN,{icon:(0,o.jsx)(O.me4,{boxSize:"4"}),children:[el?"Scheduled Posts & Drafts":"Drafts",!!(null===(W=en.data)||void 0===W?void 0:W.myDraftPostCount)&&(0,o.jsx)(c.Vp,{ml:"2",px:"4",background:"primary.500",color:"white",borderRadius:"xl",fontWeight:"semibold",children:en.data.myDraftPostCount})]})}),ee.isActive&&(0,o.jsx)(m(),{href:"/me/membership",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.M3$,{boxSize:"4"}),children:"Membership"})}),(0,o.jsx)(m(),{href:"/me/orders",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.b_c,{}),children:"Orders"})}),(0,o.jsx)(m(),{href:"/me/invoices",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.aAW,{}),children:"Invoices"})}),(0,o.jsx)(m(),{href:"/cart/other-items",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.DE2,{}),children:"Other Items"})}),el?ea?(0,o.jsx)(m(),{href:"/community",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.tvw,{boxSize:"4"}),children:"Member Site"})}):(0,o.jsx)(m(),{href:"/admin/membership/people",children:(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.tBG,{boxSize:"4"}),children:"Admin Site"})}):null]}),(0,o.jsx)(a.iz,{my:"2"}),(0,o.jsxs)(s.kS,{title:"LINKS",children:[(0,o.jsx)(s.sN,{as:"a",target:"_blank",rel:"noopener",href:ed,onClick:ev,icon:(0,o.jsx)(O.BHU,{boxSize:"4"}),children:ec}),eu&&(0,o.jsx)(s.sN,{as:"a",target:"_blank",rel:"noopener noreferrer",href:"/admin/shared-community",icon:(0,o.jsx)(O.h0n,{boxSize:"4"}),children:"Shared Community"}),(0,o.jsx)(CodeOfConductMenuItem,{}),X&&(0,o.jsx)(BookmarkOnMobileDeviceMenuItem,{})]}),(0,o.jsx)(a.iz,{my:"2"}),et&&(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.HlR,{boxSize:"4"}),onClick:async()=>{await ei()},children:"Stop Impersonating"}),(0,o.jsx)(s.sN,{icon:(0,o.jsx)(O.HlR,{boxSize:"4"}),onClick:async()=>{await Y()},color:"red.600",children:"Sign out"})]})]})})}},23253:function(e,n,t){t.d(n,{g:function(){return useFeatureFlags}});var i=t(45893);let useFeatureFlags=()=>{var e,n,t,o,r,l,a,s,u,d,c,v,m,p,h,f,x,g,b,j,O,M,C,k,_,y,S,w,D,P,A,I,L,z;let F=(0,i.x)(),T=!!(null===(n=F.tenant)||void 0===n?void 0:null===(e=n.featureFlags)||void 0===e?void 0:e.ads),U=!!(null===(o=F.tenant)||void 0===o?void 0:null===(t=o.featureFlags)||void 0===t?void 0:t.reporting),E=!!(null===(l=F.tenant)||void 0===l?void 0:null===(r=l.featureFlags)||void 0===r?void 0:r.topSessionBanner),N=!!(null===(s=F.tenant)||void 0===s?void 0:null===(a=s.featureFlags)||void 0===a?void 0:a.disableFtue),B=!!(null===(d=F.tenant)||void 0===d?void 0:null===(u=d.featureFlags)||void 0===u?void 0:u.historicalDataImport),R=!!(null===(v=F.tenant)||void 0===v?void 0:null===(c=v.featureFlags)||void 0===c?void 0:c.conferences),q=!!(null===(p=F.tenant)||void 0===p?void 0:null===(m=p.featureFlags)||void 0===m?void 0:m.mobileGrowth),$=!!(null===(f=F.tenant)||void 0===f?void 0:null===(h=f.featureFlags)||void 0===h?void 0:h.cms),Q=!!(null===(g=F.tenant)||void 0===g?void 0:null===(x=g.featureFlags)||void 0===x?void 0:x.setReferrerPolicy),V=!!(null===(j=F.tenant)||void 0===j?void 0:null===(b=j.featureFlags)||void 0===b?void 0:b.invoicing),W=!!(null===(M=F.tenant)||void 0===M?void 0:null===(O=M.featureFlags)||void 0===O?void 0:O.isMembershipV2Enabled),H=!!(null===(k=F.tenant)||void 0===k?void 0:null===(C=k.featureFlags)||void 0===C?void 0:C.isMembershipInstallmentsEnabled),G=!!(null===(y=F.tenant)||void 0===y?void 0:null===(_=y.featureFlags)||void 0===_?void 0:_.showIntegrationLogs),K=!!(null===(w=F.tenant)||void 0===w?void 0:null===(S=w.featureFlags)||void 0===S?void 0:S.showPermissionGroups),Y=!!(null===(P=F.tenant)||void 0===P?void 0:null===(D=P.featureFlags)||void 0===D?void 0:D.webflow),X=!!(null===(I=F.tenant)||void 0===I?void 0:null===(A=I.featureFlags)||void 0===A?void 0:A.sharedCommunityAccess),Z=!!(null===(z=F.tenant)||void 0===z?void 0:null===(L=z.featureFlags)||void 0===L?void 0:L.hideDateAndTimeForCourses);return{ads:T,reporting:U,topSessionBanner:E,disableFtue:N,conferences:R,historicalDataImport:B,mobileGrowth:q,cms:$,setReferrerPolicy:Q,invoicing:V,isMembershipV2Enabled:W,isMembershipInstallmentsEnabled:H,showIntegrationLogs:G,showPermissionGroups:K,webflow:Y,sharedCommunityAccess:X,hideDateAndTimeForCourses:Z}}},88808:function(e,n,t){t.d(n,{EK:function(){return u},I:function(){return l},hf:function(){return s},sR:function(){return r},vd:function(){return a}});var i=t(82729),o=t(50456);
1function _templateObject(){let e=(0,i._)(['\n query MeetingsLiveIndicators_LiveQuickCalls(\n $audienceOnly: Boolean\n $limit: Int\n ) {\n listQuickCalls(\n audienceOnly: $audienceOnly\n heartbeat: "LIVE"\n limit: $limit\n ) {\n results {\n id\n }\n }\n }\n']);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n query MeetingsLiveIndicators_LiveQuickMeets($audienceOnly: Boolean) {\n listLiveQuickMeets(audienceOnly: $audienceOnly) {\n id\n }\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,i._)(["\n query MeetingsLiveIndicators_ActiveScheduleMeets(\n $audienceOnly: Boolean\n $limit: Int\n ) {\n listQuickMeets(audienceOnly: $audienceOnly, isLive: true, limit: $limit) {\n results {\n id\n status\n startAt\n nextSessionStartAt\n durationMinutes\n }\n }\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,i._)(["\n subscription MeetingsLiveIndicators_QuickCallEvents($audienceOnly: Boolean) {\n quickCallEvents(audienceOnly: $audienceOnly) {\n eventType\n quickCall {\n id\n status\n heartbeat\n }\n }\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,i._)(["\n subscription MeetingsLiveIndicators_QuickMeetEvents($audienceOnly: Boolean) {\n quickMeetEvents(audienceOnly: $audienceOnly) {\n eventType\n quickMeet {\n id\n status\n }\n }\n }\n"]);return _templateObject4=function(){return e},e}let r=(0,o.Ps)(_templateObject()),l=(0,o.Ps)(_templateObject1()),a=(0,o.Ps)(_templateObject2()),s=(0,o.Ps)(_templateObject3()),u=(0,o.Ps)(_templateObject4())},90764:function(e,n,t){t.d(n,{s:function(){return useMeetingsLiveIndicators}});var i=t(37887),o=t(75436),r=t(67294),l=t(88808);let isScheduleMeetRemainingToday=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("ACTIVE"!==e.status)return!1;let t=new Date(e.nextSessionStartAt||e.startAt);if(Number.isNaN(t.getTime()))return!1;let i=e.durationMinutes||60,o=new Date(t.getTime()+6e4*i);if(o.getTime()<n.getTime())return!1;let r=new Date(n);r.setHours(0,0,0,0);let l=new Date(n);return l.setHours(23,59,59,999),t.getTime()<=l.getTime()&&o.getTime()>=r.getTime()},useMeetingsLiveIndicators=e=>{var n,t,a,s,u,d,c;let v=null!==(d=null==e?void 0:e.audienceOnly)&&void 0!==d&&d,m=null!==(c=null==e?void 0:e.skip)&&void 0!==c&&c,p=(0,i.a)(l.sR,{variables:{audienceOnly:v,limit:1},skip:m,fetchPolicy:"cache-and-network"}),h=(0,i.a)(l.I,{variables:{audienceOnly:v},skip:m,fetchPolicy:"cache-and-network"}),f=(0,i.a)(l.vd,{variables:{audienceOnly:v,limit:100},skip:m,fetchPolicy:"cache-and-network"});(0,o.m)(l.hf,{variables:{audienceOnly:v},skip:m,onSubscriptionData:()=>{p.refetch()}}),(0,o.m)(l.EK,{variables:{audienceOnly:v},skip:m,onSubscriptionData:()=>{h.refetch(),f.refetch()}});let[x,g]=r.useState(0);r.useEffect(()=>{if(m)return;let e=window.setInterval(()=>{g(e=>e+1)},3e4);return()=>window.clearInterval(e)},[m]);let b=!!(null===(t=p.data)||void 0===t?void 0:null===(n=t.listQuickCalls)||void 0===n?void 0:n.results.length),j=!!(null===(a=h.data)||void 0===a?void 0:a.listLiveQuickMeets.length),O=r.useMemo(()=>{var e,n;let t=(null===(n=f.data)||void 0===n?void 0:null===(e=n.listQuickMeets)||void 0===e?void 0:e.results)||[];return t.some(e=>isScheduleMeetRemainingToday(e))},[null===(u=f.data)||void 0===u?void 0:null===(s=u.listQuickMeets)||void 0===s?void 0:s.results,x]),M=b||j,C=O||j;return{hasLiveQuickCall:b,hasLiveQuickMeet:j,hasRemainingScheduleMeetToday:O,showLiveLabel:M,showQuickCallDot:b,showScheduleMeetDot:C,showMeetingsDot:M||C}}}}]); 2//# sourceMappingURL=64986-95e6feca3005f836.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.