<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6733],{37711:function(e,t,n){"use strict";var i=n(85893),o=n(74959),r=n(67294),a=n(41664),s=n.n(a),l=n(77070),d=n(51655),c=n(34155),u=n(11227)("GMTM:Atom:Avatar");t.Z=function(e){var t,n=e.maxHeight,a=void 0===n?null:n,v=e.uri,m=void 0===v?null:v,f=e.loading,h=e.firstName,g=void 0===h?null:h,x=e.lastName,p=void 0===x?null:x,j=e.size,b=void 0===j?50:j,N=e.className,y=void 0===N?"":N,w=e.userId,_=void 0===w?null:w,Z=e.verified,k=void 0!==Z&amp;&amp;Z,S=e.verifiedPos,C=void 0===S?"top":S,z=e.onClick,M=e.children,O=e.imgStyle,T=void 0===O?"object-cover object-center":O,I=(e.imageSize,e.unverified),R=void 0!==I&amp;&amp;I,E=(0,r.useState)(),A=E[0],P=(E[1],!m||A?g&amp;&amp;p?null:"user.jpg":m),L=(0,r.useState)(!1),F=(L[0],L[1]);(0,r.useLayoutEffect)((function(){u(localStorage.getItem("supportsWebP")),F(localStorage.getItem("supportsWebP"))}),[]);var H="production"===(null===c||void 0===c||null===(t=c.env)||void 0===t?void 0:"production")?"https://cdn.gmtm.com/optimized/avatars/".concat(b,"/webp/").concat(A?"user.jpg":P):"https://cdn.gmtm.com/avatars/".concat(P||"user.jpg");return f?(0,i.jsx)("div",{className:y,children:(0,i.jsx)(d.ZP,{className:y,width:b,height:b})}):(0,i.jsx)(i.Fragment,{children:_?(0,i.jsx)(s(),{href:"/athletes/".concat(_),children:(0,i.jsx)("a",{children:(0,i.jsxs)("div",{onClick:z,style:{width:b,height:b,maxHeight:a},className:"relative hover:opacity-66 rounded text-center font-semibold flex object-contain ".concat(y),children:[!m&amp;&amp;(m||g&amp;&amp;p||A)?null:(0,i.jsx)(l.Z,{src:H,fallbackSrc:"https://cdn.gmtm.com/avatars/".concat(P),width:b,height:b&gt;a&amp;&amp;a&gt;0?a:b,className:"".concat(y," ").concat(T)}),!m&amp;&amp;g&amp;&amp;p?(0,i.jsx)("div",{className:"m-auto rounded-full bg-g-gray w-full h-full text-sm flex justify-center items-center",children:(0,i.jsxs)("div",{children:[null===g||void 0===g?void 0:g.slice(0,1).toLocaleUpperCase("en-US"),null===p||void 0===p?void 0:p.slice(0,1).toLocaleUpperCase("en-US")]})}):null,k?(0,i.jsx)(o.Z,{style:{width:b/5,height:b/5},className:"rounded-full absolute z-10 ".concat("top"===C?"top-0":""," ").concat("bottom"===C?"bottom-0":""," right-0 -mr-4 -mt-4 bg-g-500")}):null,M]})})}):(0,i.jsxs)("div",{onClick:z,style:{width:b,height:b},className:"relative white rounded text-center font-semibold flex flex-col ".concat(y),children:[!m&amp;&amp;(m||g&amp;&amp;p||A)?null:(0,i.jsx)(l.Z,{src:H,fallbackSrc:"https://cdn.gmtm.com/avatars/".concat(P),width:b,height:b&gt;a&amp;&amp;a&gt;0?a:b,className:"".concat(T," ").concat(y)}),!m&amp;&amp;g&amp;&amp;p?(0,i.jsxs)("div",{className:"m-auto align-text-bottom pb-1",children:[null===g||void 0===g?void 0:g.slice(0,1).toLocaleUpperCase("en-US"),null===p||void 0===p?void 0:p.slice(0,1).toLocaleUpperCase("en-US")]}):null,k?(0,i.jsx)(o.Z,{style:{width:b/5,height:b/5},className:"rounded-full absolute z-10 ".concat("top"===C?"top-0":""," ").concat("bottom"===C?"bottom-0":""," right-0 -mr-4 -mt-4 bg-g-500")}):null,R?(0,i.jsx)(o.Z,{style:{width:b/5,height:b/5},className:"rounded-full absolute z-10 ".concat("top"===C?"top-0":""," ").concat("bottom"===C?"bottom-0":""," right-0 -mr-4 -mt-4 bg-gray-300")}):null,M]})})}},77070:function(e,t,n){"use strict";var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(96076),l=function(e){var t,n,l=e.src,d=e.fallbackSrc,c=void 0===d?s.Q7:d,u=e.priority,v=void 0===u?"medium":u,m=e.lazy,f=void 0!==m&amp;&amp;m,h=e.alt,g=void 0===h?"":h,x=e.width,p=void 0===x?50:x,j=e.maxHeight,b=void 0===j?null:j,N=e.height,y=void 0===N?50:N,w=(e.sizes,e.srcset,e.className),_=(e.children,(0,o.Z)(e,["src","fallbackSrc","priority","lazy","alt","width","maxHeight","height","sizes","srcset","className","children"]));(0,a.useEffect)((function(){(null===document||void 0===document?void 0:document.lazyLoadInstance)&amp;&amp;document.lazyLoadInstance.update()}),[]);var Z=(0,a.useState)("cached"),k=Z[0],S=Z[1],C=(0,a.useState)(l),z=C[0],M=C[1],O=(0,a.useRef)();return(0,a.useEffect)((function(){M(l)}),[l]),(0,a.useEffect)((function(){var e=O.current;"errored"!==k&amp;&amp;"loaded"!==k&amp;&amp;e&amp;&amp;e.complete&amp;&amp;(0===e.naturalWidth?(M(c),S("errored")):S("loaded"))}),[null===O||void 0===O||null===(t=O.current)||void 0===t?void 0:t.complete,null===O||void 0===O||null===(n=O.current)||void 0===n?void 0:n.naturalWidth,k]),(0,r.jsx)("img",{ref:O,alt:"loading"===k?"":g,onError:function(){S("errored"),M(c)},fetchpriority:v,onAbort:function(){return S("aborted")},onEmptied:function(){return S("emptied")},onSuspend:function(){return S("suspended")},onStalled:function(){return S("stalled")},onLoadedMetadata:function(){return S("loaded-meta")},onLoadStart:function(){return S("loading")},onLoadedData:function(){return S("loaded")},onLoad:function(){return S("loaded")},loading:f?"lazy":"eager",width:p,height:y,style:(0,i.Z)({width:p,height:y,maxHeight:b},null===_||void 0===_?void 0:_.style),src:z,className:"".concat(w||""," ").concat("loading"===k?"animate-pulse bg-g-lightGray":""," ").concat("errored"===k?"bg-g-lightGray":""," h-full w-auto")})};t.Z=a.memo(l)},81119:function(e,t,n){"use strict";var i=n(26042),o=n(69396),r=n(85893),a=n(67294),s=n(70131),l=n(87620);n(11227)("GMTM:ComponentsV2:LazyLoad");t.Z=function(e){var t,n=e.children,d=e.height,c=void 0===d?"auto":d,u=e.offset,v=void 0===u?100:u,m=e.style,f=e.once,h=void 0===f||f,g=e.scrollContainer,x=e.initialInView,p=void 0!==x&amp;&amp;x,j=e.className,b=void 0===j?"":j,N=e.animateIn,y=void 0!==N&amp;&amp;N,w=(0,a.useState)(),_=w[0],Z=w[1],k=(0,a.useState)(c),S=k[0],C=k[1];(0,l.F_)((function(){var e,t;if(null===g||void 0===g||null===(e=g.current)||void 0===e?void 0:e.container)Z(null===g||void 0===g||null===(t=g.current)||void 0===t?void 0:t.container);else if(null===g||void 0===g?void 0:g.current)Z(null===g||void 0===g?void 0:g.current);else{if("string"!==typeof g)return;if("undefined"!==typeof document){var n=document.querySelector(g);Z(n)}}}),[g]);var z=(0,s.YD)({threshold:0,trackVisibility:!1,delay:300,triggerOnce:h,root:_,rootMargin:v+"px",initialInView:p}),M=z.ref,O=z.inView,T="".concat(O?"translate-y-0 opacity-100":"translate-y-10 opacity-0"," transform duration-100 ").concat(b),I=(0,a.useRef)(n);return(0,a.useEffect)((function(){var e,t;((null===I||void 0===I||null===(e=I.current)||void 0===e?void 0:e.clientHeight)&gt;S||"auto"===S)&amp;&amp;O&amp;&amp;C(null===I||void 0===I||null===(t=I.current)||void 0===t?void 0:t.clientHeight)}),[null===I||void 0===I||null===(t=I.current)||void 0===t?void 0:t.clientHeight,O,S]),(0,r.jsx)("div",{children:(0,r.jsx)("div",{id:"gmtm-lazyload-wrapper",ref:M,style:(0,o.Z)((0,i.Z)({width:"100%"},m),{contentVisibility:O?"visible":"auto",minHeight:O?"auto":S,height:O?"auto":S}),className:y?T:b,children:(0,r.jsx)("div",{ref:I,children:O?n:(0,r.jsx)("div",{className:"w-full h-full bg-g-lightGray animate-pulse"})})})})}},70503:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var i=n(26042),o=n(29815),r=n(85893),a=n(67294),s=n(86658),l=(n(8100),n(62030)),d=n(19027),c=n(74368),u=n(70131),v=n(41488),m=n(37711),f=n(10440),h=n(90144),g=n(828),x=n(76392),p=function(e){var t=e.src,n=void 0===t?"":t,i=e.disabled,o=void 0!==i&amp;&amp;i,s=e.trigger,l=void 0===s?(0,r.jsx)(x.hg,{disabled:o,children:"Upload"}):s,d=e.children,c=(0,g.Z)(a.useState(!1),2),u=c[0],v=c[1];return(0,r.jsxs)(x.Vq,{open:u,onOpenChange:v,children:[null!==d&amp;&amp;void 0!==d?d:l,(0,r.jsxs)(x.cZ,{className:"sm:max-w-[600px]",children:[(0,r.jsx)(x.fK,{children:(0,r.jsx)(x.$N,{children:"Image"})}),(0,r.jsx)("div",{children:(0,r.jsx)(h.Z,{src:n,width:"100%",height:"auto",className:"max-w-[600px] rounded"})})]})]})},j=(n(11227)("GMTM:ComponentsV2:Message"),function(e){var t,n,i,o,s,g,j,b,N=e.timestamp,y=void 0===N?new Date:N,w=e.firstName,_=void 0===w?"":w,Z=e.lastName,k=void 0===Z?"":Z,S=e.session,C=void 0===S?null:S,z=e.avatarUri,M=void 0===z?null:z,O=e.userId,T=void 0===O?null:O,I=e.endsSeries,R=void 0!==I&amp;&amp;I,E=e.startsSeries,A=void 0!==E&amp;&amp;E,P=e.content,L=void 0===P?null:P,F=e.isSender,H=void 0===F||F,D=e.messageId,W=void 0===D?null:D,U=e.status,G=void 0===U?0:U,V=(0,u.YD)({triggerOnce:!0,threshold:.75}),B=V.ref,q=V.inView,J=(0,a.useContext)(f.GR),Y=(J.currentImage,J.setCurrentImage,J.imageArray,J.setImageArray,J.showImageModal,J.setShowImageModal,(0,a.useMemo)((function(){var e,t,n,i;return null==(null===L||void 0===L?void 0:L.html)?"null"!==(null===(t=null===(e=L.message)||void 0===e?void 0:e.toLowerCase())||void 0===t?void 0:t.trim())?(0,c.HL)(null===L||void 0===L?void 0:L.message):null:"null"!==(null===(i=null===(n=L.html)||void 0===n?void 0:n.toLowerCase())||void 0===i?void 0:i.trim())?(0,c.HL)(null===L||void 0===L?void 0:L.html):null}),[])),$=(0,a.useCallback)((function(e,t){return function(e,t,n){var i,o,a,s,l,d,c;if("a"===(null===e||void 0===e||null===(i=e.tagName)||void 0===i?void 0:i.toLowerCase())&amp;&amp;!(null===(a=null===e||void 0===e||null===(o=e.className)||void 0===o?void 0:o.toLowerCase())||void 0===a?void 0:a.includes("hashtag"))&amp;&amp;(null===e||void 0===e||null===(s=e.attributes)||void 0===s||null===(l=s.href)||void 0===l?void 0:l.nodeValue))return(0,r.jsx)("a",{className:"hover:underline ".concat(n?"text-primary hover:text-primary/80":"text-indigo-700 hover:text-indigo-500"," cursor-pointer"),href:"".concat(null===e||void 0===e||null===(d=e.attributes)||void 0===d||null===(c=d.href)||void 0===c?void 0:c.nodeValue),target:"_blank",rel:"noreferrer",children:t})}(e,t,H)}),[H]);return(0,a.useEffect)((function(){q&amp;&amp;v.v6.post("/messages/".concat(W,"/read"),{sessionId:null===C||void 0===C?void 0:C._id})}),[q,W,null===C||void 0===C?void 0:C._id]),1333285==T?(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"flex ".concat(H?"ml-auto":""),children:[!H&amp;&amp;R?(0,r.jsx)("div",{className:"mt-2 ml-1 ",style:{width:34,height:34},children:(0,r.jsx)(m.Z,{className:"rounded-full",verified:!0,verifiedPos:"bottom",userId:T,firstName:"GMTM",imageSize:75,lastName:"SUPPORT",size:34,uri:"6732d453ddfc2b2ca543c773ed326d19"})}):(0,r.jsx)("div",{className:"ml-1",style:{width:34,minWidth:34}}),(0,r.jsx)("div",{ref:B,style:{marginTop:1,marginBottom:1,maxWidth:"75%",borderBottomLeftRadius:!H&amp;&amp;!R||!H&amp;&amp;A?"1px":"18px",borderBottomRightRadius:H&amp;&amp;!R||(H&amp;&amp;A?"1px":"18px"),borderTopLeftRadius:H||A?"18px":"1px",borderTopRightRadius:H&amp;&amp;!A?"1px":"18px"},className:"".concat(H?"text-white bg-g-black/90 mr-1 ml-auto":"bg-foreground/10 ml-3"," p-3 mb-1 text-sm whitespace-normal"),children:null===L||void 0===L?void 0:L.message})]}),R?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{style:{fontSize:10},className:"py-2 text-foreground/40 ".concat(H?"ml-auto pr-2":"ml-2"),children:(0,r.jsxs)("div",{className:"capitalize",children:[H&amp;&amp;0===G?"Sending":null,H&amp;&amp;1===G?"Sent \xb7 ".concat((0,l.Z)(y,{addSuffix:!0})):null,H&amp;&amp;2===G?"Read \xb7 ".concat((0,l.Z)(y,{addSuffix:!0})):null,H||0!==G?null:"Sending",H||1!==G?null:"GMTM \xb7 ".concat((0,l.Z)(y,{addSuffix:!0})),H||2!==G?null:"GMTM \xb7 ".concat((0,l.Z)(y,{addSuffix:!0}))]})})}):null]}):(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"flex",children:[!H&amp;&amp;R?(0,r.jsx)("div",{className:"mt-2 ml-1 ",style:{width:34,height:34},children:(0,r.jsx)(m.Z,{className:"rounded-full",userId:T,firstName:_,imageSize:75,lastName:k,size:34,uri:M})}):(0,r.jsx)("div",{className:"ml-1",style:{width:34,minWidth:34}}),(0,r.jsxs)("div",{className:"flex flex-col flex-grow",children:[(null===L||void 0===L||null===(t=L.clips)||void 0===t?void 0:t.length)&gt;0&amp;&amp;(0,r.jsx)("video",{preload:"metadata",loading:"lazy",controls:!0,width:"75%",height:"auto",className:"".concat(H?"ml-auto mr-1":"mr-auto ml-3"," my-2 rounded-lg"),src:null===L||void 0===L||null===(n=L.clips)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.url,poster:null===L||void 0===L||null===(o=L.clips)||void 0===o||null===(s=o[0])||void 0===s?void 0:s.thumbnail_uri}),(null===L||void 0===L||null===(g=L.images)||void 0===g?void 0:g.length)&gt;1&amp;&amp;(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2  py-2 w-3/4 ".concat(H?"ml-auto mr-1":"mr-auto ml-3"),children:null===L||void 0===L||null===(j=L.images)||void 0===j?void 0:j.map((function(e,t){return(0,r.jsx)(p,{src:e,children:(0,r.jsx)(x.hg,{children:(0,r.jsx)(h.Z,{width:"100%",height:100,loading:"lazy",className:"rounded-lg object-cover object-center border bg-white",src:e,alt:"image"},e)})})}))}),1===(null===L||void 0===L||null===(b=L.images)||void 0===b?void 0:b.length)&amp;&amp;(0,r.jsx)(p,{src:null===L||void 0===L?void 0:L.images[0],children:(0,r.jsx)(x.hg,{children:(0,r.jsx)(h.Z,{width:"75%",height:200,loading:"lazy",className:"my-2 rounded-lg border bg-white object-cover object-center ".concat(H?"ml-auto mr-1":"mr-auto ml-3 "),src:null===L||void 0===L?void 0:L.images[0],alt:"image"})})}),(null===L||void 0===L?void 0:L.message)?(0,r.jsx)("div",{ref:B,style:{marginTop:1,marginBottom:1,maxWidth:"75%",borderBottomLeftRadius:!H&amp;&amp;!R||!H&amp;&amp;A?"1px":"18px",borderBottomRightRadius:H&amp;&amp;!R||(H&amp;&amp;A?"1px":"18px"),borderTopLeftRadius:H||A?"18px":"1px",borderTopRightRadius:H&amp;&amp;!A?"1px":"18px"},className:"".concat(H?"text-white bg-g-black/90 mr-1 ml-auto":"bg-foreground/10 ml-3 mr-auto"," p-3 mb-1 text-sm whitespace-normal"),children:(0,r.jsx)(d.Lu,{allowAttributes:!0,content:Y,transform:$})}):null]})]}),R?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{style:{fontSize:10},className:"py-2 text-foreground/40 ".concat(H?"ml-auto pr-2":"ml-2"),children:(0,r.jsxs)("div",{className:"capitalize",children:[H&amp;&amp;0===G?"Sending":null,H&amp;&amp;1===G?"Sent \xb7 ".concat((0,l.Z)(y,{addSuffix:!0})):null,H&amp;&amp;2===G?"Read \xb7 ".concat((0,l.Z)(y,{addSuffix:!0})):null,H||0!==G?null:"Sending",H||1!==G?null:"".concat(_," \xb7 ").concat((0,l.Z)(y,{addSuffix:!0})),H||2!==G?null:"".concat(_," \xb7 ").concat((0,l.Z)(y,{addSuffix:!0}))]})})}):null]})}),b=n(51655),N=n(69413),y=n(17847),w=n(34713),_=(n(11227)("GMTM:ComponentsV2:ChatWindow"),function(e){var t=e.className,n=e.width,l=void 0===n?375:n,d=e.height,c=void 0===d?"100%":d,u=e.style,v=e.conversation,m=void 0===v?null:v,f=(0,w.k)().session,h=(0,a.useState)(!0),g=(h[0],h[1],(0,o.Z)(m?null===m||void 0===m?void 0:m.messages:[])),x=null===m||void 0===m?void 0:m.members,p=null===g||void 0===g?void 0:g[0],_=null===g||void 0===g?void 0:g[(null===g||void 0===g?void 0:g.length)-1],Z=(_&amp;&amp;(0,N.Z)({start:new Date(null===_||void 0===_?void 0:_.created_on),end:new Date}).hours,(0,a.useRef)());return(0,a.useEffect)((function(){Z.current.scrollToBottom()}),[null===g||void 0===g?void 0:g.length]),(0,r.jsx)("div",{style:(0,i.Z)({width:l,height:c},u),className:"relative flex flex-col ".concat(t),children:(0,r.jsx)(s.ZP,{className:"relative",ref:Z,universal:!0,style:{width:"100%",height:"100%"},children:(0,r.jsxs)("div",{className:"flex-grow",children:[(null===g||void 0===g?void 0:g.length)&lt;=0?(0,r.jsx)("div",{className:"text-foreground/50 w-full text-center flex flex-col justify-center items-center py-48",children:"Start the conversation..."}):null,(0,r.jsx)("div",{className:"text-foreground/40 w-full text-center text-sm py-2 pb-8",children:p?(0,y.Z)(new Date(null===p||void 0===p?void 0:p.created_on),"PPp"):null}),g?null===g||void 0===g?void 0:g.map((function(e,t){var n,i,o=null===x||void 0===x?void 0:x.find((function(t){return(null===t||void 0===t?void 0:t.user_id)===(null===e||void 0===e?void 0:e.owner_id)})),a=0===t||(null===e||void 0===e?void 0:e.owner_id)!==(null===g||void 0===g||null===(n=g[t-1])||void 0===n?void 0:n.owner_id),s=t===(null===g||void 0===g?void 0:g.length)-1||(null===e||void 0===e?void 0:e.owner_id)!==(null===g||void 0===g||null===(i=g[t+1])||void 0===i?void 0:i.owner_id);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(j,{timestamp:new Date(null===e||void 0===e?void 0:e.created_on),session:f,isSender:(null===o||void 0===o?void 0:o.user_id)===(null===f||void 0===f?void 0:f.user_id),firstName:null===o||void 0===o?void 0:o.first_name,lastName:null===o||void 0===o?void 0:o.last_name,avatarUri:null===o||void 0===o?void 0:o.avatar_uri,startsSeries:a,endsSeries:s,content:null===e||void 0===e?void 0:e.payload,messageId:null===e||void 0===e?void 0:e.message_id,userId:null===e||void 0===e?void 0:e.owner_id,status:null===e||void 0===e?void 0:e.status},"message-".concat(null===e||void 0===e?void 0:e.message_id))})})):null,m?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"w-1/2 mr-auto",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"pt-5 pr-2",children:(0,r.jsx)(b.ZP,{circle:!0,width:25,height:25,className:""})}),(0,r.jsx)("div",{className:"w-2/3",children:(0,r.jsx)(b.ZP,{className:"py-4"})})]}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"w-10 mr-1",children:(0,r.jsx)(b.ZP,{height:10})}),(0,r.jsx)("div",{className:"w-10 mr-1",children:(0,r.jsx)(b.ZP,{height:10})})]})]}),(0,r.jsxs)("div",{className:"w-1/2 ml-auto",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("div",{className:"w-2/3 ml-auto",children:[(0,r.jsx)(b.ZP,{className:"py-4"}),(0,r.jsx)("div",{className:"w-2/3 ml-auto",children:(0,r.jsx)(b.ZP,{className:"py-4 mt-1"})})]})}),(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("div",{className:"w-10 mr-1 ml-auto",children:(0,r.jsx)(b.ZP,{height:10})})})]}),(0,r.jsxs)("div",{className:"w-1/2 mr-auto",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"pt-5 pr-2",children:(0,r.jsx)(b.ZP,{circle:!0,width:25,height:25,className:""})}),(0,r.jsx)("div",{className:"w-2/3",children:(0,r.jsx)(b.ZP,{className:"py-4"})})]}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"w-10 mr-1",children:(0,r.jsx)(b.ZP,{height:10})}),(0,r.jsx)("div",{className:"w-10 mr-1",children:(0,r.jsx)(b.ZP,{height:10})})]})]}),(0,r.jsxs)("div",{className:"w-1/2 ml-auto",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("div",{className:"w-2/3 ml-auto",children:(0,r.jsx)(b.ZP,{className:"py-4"})})}),(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("div",{className:"w-10 mr-1 ml-auto",children:(0,r.jsx)(b.ZP,{height:10})})})]})]}),(0,r.jsx)("div",{className:"flex-grow"})]})})})})},67510:function(e,t,n){"use strict";n.r(t);var i=n(26042),o=n(69396),r=n(85893),a=n(67294),s=n(36164),l=n(39560),d=n(5506);n(2568),n(11227)("GMTM:Component:ModelV2");t.default=function(e){var t=e._key,n=void 0===t?"modal":t,c=e.children,u=e.full,v=void 0!==u&amp;&amp;u,m=e.maxW,f=void 0===m?"max-w-lg":m,h=e.w,g=void 0===h?null:h,x=e.h,p=void 0===x?null:x,j=e.top,b=void 0===j?25:j,N=e.sheetColor,y=void 0===N?"white":N,w=e.onBlur,_=void 0===w?function(){return null}:w,Z=e.style,k=e.className,S=void 0===k?"":k,C=e.show,z=void 0!==C&amp;&amp;C,M=e.withScrolling,O=void 0===M||M,T=e.showX,I=void 0===T||T,R=e.screenFull,E=void 0===R||R,A=e.id,P=void 0===A?"modal":A,L=(0,l.z)(),F=(L.innerWidth,L.innerHeight),H=(0,a.useRef)(),D=(0,a.useRef)(),W=((0,a.useRef)(),n);return(0,r.jsxs)("div",{ref:D,style:(0,o.Z)((0,i.Z)({},Z),{zIndex:999999999}),className:"fixed top-0 left-0 ".concat(1==E?"w-screen":"w-full"," h-screen bg-black bg-opacity-50 ").concat(z?"opacity-100 visible":"opacity-0 invisible"," duration-200 ").concat(S),id:P,children:[(0,r.jsx)("div",{onClick:_,className:"w-full h-full"}),(0,r.jsx)("div",{id:W,ref:H,className:"absolute ".concat(f||""," mx-auto transform ").concat(z?"translate-y-0 visible":"translate-y-32 invisible"," duration-200 rounded-lg shadow-lg"),style:{zIndex:9999,width:g||"100%",backgroundColor:y,top:b,left:0,right:0,minHeight:v?F-2*b:"auto",height:p||"auto"},children:z?O?(0,r.jsxs)(s.default,{autoHeight:!0,autoHide:!0,universal:!0,autoHeightMax:p&amp;&amp;!v?p:F-2*b,style:{width:"100%",postition:"static"},children:[I?(0,r.jsx)("div",{onClick:_,id:"close-modal",className:"absolute right-0 top-0 z-10 p-2 mr-4 mt-4 rounded-full text-black hover:bg-g-lightGray cursor-pointer duration-200",children:(0,r.jsx)(d.Z,{className:"w-4 h-4 text-g-textGray"})}):null,c]}):(0,r.jsxs)(r.Fragment,{children:[I?(0,r.jsx)("div",{onClick:_,id:"close-modal",className:"absolute right-0 top-0 z-10 p-2 mr-4 mt-4 rounded-full text-black hover:bg-g-lightGray cursor-pointer duration-200",children:(0,r.jsx)(d.Z,{className:"w-4 h-4 text-g-textGray"})}):null,c]}):null})]})}},62017:function(e,t,n){"use strict";var i=n(85893),o=n(4298),r=n.n(o);n(67294);t.Z=function(e){e.id;return(0,i.jsx)(r(),{dangerouslySetInnerHTML:{__html:" window['_fs_debug'] = false;\n    window['_fs_host'] = 'fullstory.com';\n    window['_fs_script'] = 'edge.fullstory.com/s/fs.js';\n    window['_fs_org'] = 'M9G0K';\n    window['_fs_namespace'] = 'FS';\n    (function(m,n,e,t,l,o,g,y){\n        if (e in m) {if(m.console &amp;&amp; m.console.log) { m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}\n        g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];\n        o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;\n        y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);\n        g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};\n        g.anonymize=function(){g.identify(!!0)};\n        g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};\n        g.log = function(a,b){g(\"log\",[a,b])};\n        g.consent=function(a){g(\"consent\",!arguments.length||a)};\n        g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};\n        g.clearUserCookie=function(){};\n        g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];\n        if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};\n        g._v=\"1.2.0\";\n    })(window,document,window['_fs_namespace'],'script','user');\n    "}})}},64757:function(e,t,n){"use strict";n.d(t,{z:function(){return b}});var i=n(828),o=n(85893),r=n(90332),a=n(34958),s=n(67294),l=n(56022),d=n(47250),c=n(54601),u=n(47258),v=n(86719),m=n(34713),f=n(25675),h=n.n(f),g=n(16070),x=n(9309),p=n(35972),j="https://cdn.gmtm.com",b=function(e){var t,n,f,b,N,y=e.disabled,w=void 0!==y&amp;&amp;y,_=e.dark,Z=void 0===_||_,k=(e.withProBadge,e.isMulti,e.className),S=e.onChange,C=e.updating,z=void 0!==C&amp;&amp;C,M=e.value,O=(0,i.Z)(s.useState(!1),2),T=O[0],I=O[1],R=(0,i.Z)(s.useState(""),2),E=R[0],A=R[1],P=(0,m.k)().session,L=(0,v.Z)(null===P||void 0===P?void 0:P._id),F=L.permissions,H=L.loading;(0,s.useEffect)((function(){}),[F]);var D=null===F||void 0===F?void 0:F.permissions,W=null===D||void 0===D||null===(t=D.userOrgPermissions)||void 0===t?void 0:t.filter((function(e){return null===e||void 0===e?void 0:e.organization_id})),U=null===(f=null===D||void 0===D||null===(n=D.userOrgPermissions)||void 0===n?void 0:n.filter((function(e){return null===e||void 0===e?void 0:e.organization_id})))||void 0===f?void 0:f.map((function(e){var t;return{label:null===e||void 0===e?void 0:e.name,value:null===e||void 0===e?void 0:e.organization_id,img:"".concat(j,"/").concat(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.avatar_uri)}}));E&amp;&amp;(U=null===U||void 0===U?void 0:U.filter((function(e){return null===e||void 0===e?void 0:e.label.toLowerCase().includes(E.toLowerCase())})));var G=s.useRef(null),V=null===W||void 0===W?void 0:W.find((function(e){return(null===e||void 0===e?void 0:e.organization_id)==M}));if(z)return(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(x.O,{className:"w-6 h-6 rounded-full ".concat(Z?"dark":"")}),(0,o.jsx)(x.O,{className:"w-[150px] h-6 rounded ".concat(Z?"dark":"")})]});return(0,o.jsx)("div",{ref:G,children:(0,o.jsxs)(d.J2,{open:T,onOpenChange:I,children:[(0,o.jsx)(d.xo,{className:"".concat(Z?"dark":""),asChild:!0,children:(0,o.jsxs)(l.z,{disabled:w||H,variant:"ghost",role:"combobox","aria-expanded":T,className:(0,c.cn)("max-w-[684px] hover:bg-transparent space-x-2 items-center min-w-[100px] px-0 truncate ".concat(Z?"dark":""),k),children:[(null===V||void 0===V||null===(b=V.payload)||void 0===b?void 0:b.avatar_uri)?(0,o.jsx)(h(),{width:20,height:20,src:"".concat(j,"/").concat(null===V||void 0===V||null===(N=V.payload)||void 0===N?void 0:N.avatar_uri),className:"rounded-full"}):null,(0,o.jsx)("div",{className:"".concat(M?"text-foreground font-black":"text-muted-foreground"),children:M?null===V||void 0===V?void 0:V.name:"Select Organization..."}),H||3!=(null===V||void 0===V?void 0:V.self_serve_tier_id)?null:(0,o.jsx)(p.C,{className:"text-g-black font-semibold shadow",children:"Pro"}),(0,o.jsx)("div",{className:"flex-grow"}),H?(0,o.jsx)(r.Z,{size:16,className:"ml-auto shrink-0 opacity-50 animate-spin"}):(0,o.jsx)(a.Z,{className:"".concat(Z?"text-muted-foreground":""," ml-2 h-4 w-4 shrink-0 opacity-50")})]})}),(0,o.jsx)(d.yk,{container:G.current,className:"w-[300px] p-0 ".concat(Z?"dark":""," border-accent"),children:(0,o.jsxs)(u.Ct,{value:M,onChange:function(e){S(e),I(!1),A("")},children:[(0,o.jsx)(u.j,{value:E,onChange:function(e){return A(e.target.value)}}),(0,o.jsx)(u.Yj,{height:300,overscanCount:5,itemCount:null===U||void 0===U?void 0:U.length,itemSize:40,width:"100%",children:function(e){var t=e.index,n=e.style,i=U[t],r=(null===i||void 0===i?void 0:i.value)===M;return(0,o.jsxs)(u.c8,{value:null===i||void 0===i?void 0:i.value,selected:r,style:n,onSelect:function(){I(!1),S(r?null:null===i||void 0===i?void 0:i.value)},children:[(0,o.jsx)(g.k,{first_name:null===i||void 0===i?void 0:i.label,last_name:"",src:null===i||void 0===i?void 0:i.img,className:"rounded-full w-5 h-5"}),(0,o.jsx)("span",{className:"",children:null===i||void 0===i?void 0:i.label})]},null===i||void 0===i?void 0:i.value)}})]})})]})})}},16070:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var i=n(85893),o=n(64910),r=n(54601),a=function(e){var t=e.uri,n=e.src,a=e.first_name,s=e.last_name,l=e.name,d=e.imageSize,c=void 0===d?"100":d,u=e.format,v=void 0===u?"webp":u,m=e.className,f=void 0===m?"":m,h=e.online,g=void 0!==h&amp;&amp;h;if(l&amp;&amp;!a&amp;&amp;!s){var x=l.split(" ");a=x[0],s=x.slice(1).join(" ")}var p=n||(t?t.startsWith("http")||t.startsWith("https")?t:"".concat("https://cdn.gmtm.com/optimized/avatars","/").concat(c,"/").concat(v,"/").concat(t):"https://cdn.gmtm.com/optimized/avatars/400/webp/user.webp");return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)(o.qE,{className:(0,r.cn)("relative",f),children:[(0,i.jsx)(o.F$,{className:"object-top object-cover",src:p,alt:"".concat(a||""," ").concat(s||"")}),(0,i.jsx)(o.Q5,{className:(0,r.cn)("relative",f),children:function(){var e=(null===a||void 0===a?void 0:a.charAt(0))||"",t=(null===s||void 0===s?void 0:s.charAt(0))||"";return"".concat(e).concat(t).toUpperCase()}()})]}),g&amp;&amp;(0,i.jsx)("div",{className:"absolute -bottom-1 -right-1 w-4 h-4 rounded-full border-2 border-white bg-green-400 z-20"})]})}},50078:function(e,t,n){"use strict";n.d(t,{Z:function(){return ft}});var i=n(85893),o=n(5152),r=n.n(o),a=n(9008),s=n.n(a),l=n(67294),d=n(10440),c=n(93973),u=n(63519),v=n(67510),m=n(34713),f=n(39560),h=n(62017),g=n(4298),x=n.n(g),p=function(e){var t=e.userName,n=void 0===t?null:t,o=e.email,r=void 0===o?null:o,a=e.createdAt,s=void 0===a?null:a;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x(),{src:"https://widget.intercom.io/widget/whcve8jn"}),(0,i.jsx)(x(),{dangerouslySetInnerHTML:{__html:"window.intercomSettings = {\n        app_id: \"whcve8jn\",\n        horizontal_padding: 30,\n        vertical_padding: 30,\n        alignment: 'left',\n        ".concat(n?'name: "'.concat(n,'",'):"","\n        ").concat(r?'email: "'.concat(r,'",'):"","\n        ").concat(s?'created_at: "'.concat(s,'",'):"","\n      };")}}),(0,i.jsx)(x(),{dangerouslySetInnerHTML:{__html:"(function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/whcve8jn';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();"}})]})},j=n(47568),b=n(26042),N=n(99534),y=n(29815),w=n(97582),_=n(51436),Z=n(67814),k=(n(51183),n(69743),n(68163),n(13342)),S=n(41664),C=n.n(S),z=n(11163),M=n(62286),O=n(69065),T=n(5506),I=(n(11227)("GMTM:ComponentsV2:HamburgerSlider"),function(e){var t=e.active,n=void 0!==t&amp;&amp;t,o=e.onClick,r=void 0===o?function(){return null}:o,a=e.className,s=void 0===a?"w-5":a,l=e.size,d=void 0===l?35:l;return(0,i.jsxs)("div",{style:{width:d,height:d},onClick:r,className:"relative ".concat(s," "),children:[(0,i.jsx)(O.Z,{className:"".concat(n?"opacity-0 -translate-x-3":"opacity-100"," transform duration-150 top-0 left-0")}),(0,i.jsx)(T.Z,{className:"".concat(n?"opacity-100":"opacity-0 scale-95"," transform duration-150 absolute top-0 left-0 z-10")})]})}),R=n(86658),E=n(20079),A=n(8100),P=n(90370),L=n(92204),F=n(74368),H=n(37711),D=n(77070),W=n(81119),U=n(59299),G=n(64757),V=n(86719),B=(n(26689),n(47250)),q=n(10408),J=n(45632),Y=n(20372),$=n(90332),Q=n(64998),K=n(63715),X=n(85829),ee=n(31240),te=n(56022),ne=n(90144),ie=n(70257),oe=n(65884),re=function(e){var t,n,o,r=e.dark,a=void 0===r||r,s=(e.className,e.disabled,(0,l.useState)("")),d=s[0],c=s[1],u=(0,l.useState)(!1),v=u[0],f=u[1],h=(0,Y.Z)(d,500),g=(0,m.k)().session,x=(0,q.Z)({sessionId:null===g||void 0===g?void 0:g._id,searchText:h,size:25,published_only:!0}),p=x.data,j=x.loading,b=(x.fetching,x.isAtEnd,null!==(t=null===p||void 0===p?void 0:p[0])&amp;&amp;void 0!==t?t:[]),N=Array.isArray(b)?b.map((function(e){return{label:null===e||void 0===e?void 0:e.name,meta:e,value:null===e||void 0===e?void 0:e.event_id,type:"virtual"}})):[],w=(0,J.E)("/search/gmtm-orgs?page=1&amp;size=25",{query:{match:{name:h}},sort:[{verified:{order:"desc"}}]}).data,_=null!==(n=null===w||void 0===w?void 0:w.results)&amp;&amp;void 0!==n?n:[],Z=null===_||void 0===_?void 0:_.map((function(e){var t;return{label:null===e||void 0===e||null===(t=e._source)||void 0===t?void 0:t.name,meta:null===e||void 0===e?void 0:e._source,value:parseInt(null===e||void 0===e?void 0:e._id),type:"organization"}})),k=(0,J.E)("/search/gmtm-articles?page=1&amp;size=25",{query:{match:{title:h}}}).data,S=null!==(o=null===k||void 0===k?void 0:k.results)&amp;&amp;void 0!==o?o:[],M=null===S||void 0===S?void 0:S.map((function(e){var t;return{label:null===e||void 0===e||null===(t=e._source)||void 0===t?void 0:t.title,meta:null===e||void 0===e?void 0:e._source,value:parseInt(null===e||void 0===e?void 0:e._id),type:"article"}})),O=j||!w||!k,T=(0,y.Z)(Z).concat((0,y.Z)(N),[,],(0,y.Z)(M)),I=(0,l.useRef)(null),R=(0,z.useRouter)();return(0,i.jsx)("div",{className:" ".concat(a?"dark":""),ref:I,children:(0,i.jsxs)(B.J2,{open:v,onOpenChange:f,children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(ie.Mj,{value:d,onClick:function(e){v||f(!0)},placeholder:"Search GMTM....",className:"".concat(a?"dark":""," mt-2 w-full dark:text-slate-100"),onChange:function(e){c(e.target.value)},onKeyPress:function(e){"Enter"===e.key&amp;&amp;(null===R||void 0===R||R.push("/search/results?q=".concat(encodeURIComponent(d))))}}),(0,i.jsx)(B.xo,{className:"-z-10 absolute w-full h-full top-0 left-0 ".concat(a?"dark":"")})]}),(0,i.jsx)(B.yk,{container:I.current,className:"w-screen max-w-md p-4 pt-2 mt-4",onOpenAutoFocus:function(e){e.preventDefault()},children:(0,i.jsx)("div",{className:"mt-2",children:O?(0,i.jsxs)("div",{className:"flex gap-2 justify-center text-muted-foreground items-center h-[222px]",children:[(0,i.jsx)($.Z,{size:16,className:"animate-spin "}),(0,i.jsx)("div",{className:"text-sm",children:"Searching the platform..."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex justify-between items-center pb-2 -mt-1",children:[(0,i.jsx)("h3",{className:"text-foreground/75",children:"Search Results"}),h?(0,i.jsx)(C(),{href:"/search/results?q=".concat(encodeURIComponent(d)),children:(0,i.jsx)("a",{children:(0,i.jsxs)(te.z,{disabled:!h||O,variant:"link",children:["See All ",(0,i.jsx)(Q.Z,{className:"w-4"})]})})}):null]}),(0,i.jsxs)(oe.x,{style:{maxHeight:222},className:"".concat(a?"dark":""," h-full overflow-y-auto"),children:[d?null===T||void 0===T?void 0:T.map((function(e){var t,n,o,r,a,s,l,d,c,u;return"article"===(null===e||void 0===e?void 0:e.type)?(0,i.jsx)(C(),{href:"/articles/".concat(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.slug),children:(0,i.jsx)("a",{children:(0,i.jsxs)("div",{className:"text-sm p-2 rounded hover:bg-foreground/10 cursor-pointer flex items-top gap-2",onClick:function(){f(!1)},children:[(0,i.jsx)("div",{className:"w-[24px]",children:(0,i.jsx)("div",{className:"w-[24px] h-[24px] flex items-center justify-center rounded dark:border-foreground/50",children:(0,i.jsx)(K.Z,{className:"text-muted-foreground w-[24px] h-[24px] "})})}),(0,i.jsx)("div",{className:"font-medium font-mono",children:null===e||void 0===e?void 0:e.label})]},null===e||void 0===e||null===(n=e.meta)||void 0===n?void 0:n.slug)})}):"virtual"===(null===e||void 0===e?void 0:e.type)?(0,i.jsx)(C(),{href:"/virtuals/".concat(null===e||void 0===e?void 0:e.value,"/").concat((0,F.Ej)(null===e||void 0===e?void 0:e.label)),children:(0,i.jsx)("a",{children:(0,i.jsxs)("div",{className:"text-sm p-2 rounded hover:bg-foreground/10 cursor-pointer flex items-top gap-2",onClick:function(){f(!1)},children:[(0,i.jsx)("div",{className:"w-[24px]",children:(null===e||void 0===e||null===(o=e.meta)||void 0===o||null===(r=o.payload)||void 0===r?void 0:r.cover)?(0,i.jsx)("div",{className:"w-[24px] h-[24px] flex items-center justify-center dark:border-foreground/50",children:(0,i.jsx)(X.Z,{className:"text-muted-foreground w-[24px] h-[24px] "})}):(0,i.jsx)(ne.Z,{src:"https://cdn.gmtm.com".concat(null===e||void 0===e||null===(a=e.meta)||void 0===a||null===(s=a.payload)||void 0===s?void 0:s.cover),width:24,height:24,className:"rounded object-cover object-center"})}),(0,i.jsx)("div",{className:"font-medium font-mono",children:e.label})]},null===e||void 0===e?void 0:e.value)})}):"organization"===(null===e||void 0===e?void 0:e.type)?(0,i.jsx)(C(),{href:"/organizations/".concat(null===e||void 0===e?void 0:e.value,"/").concat((0,F.Ej)(null===e||void 0===e?void 0:e.label)),children:(0,i.jsx)("a",{children:(0,i.jsxs)("div",{className:"text-sm p-2 rounded hover:bg-foreground/10 cursor-pointer flex items-center gap-2",onClick:function(){f(!1)},children:[(0,i.jsx)("div",{className:"w-[24px]",children:(null===e||void 0===e||null===(l=e.meta)||void 0===l||null===(d=l.branding)||void 0===d?void 0:d.avatar_uri)?(0,i.jsx)(ne.Z,{src:"https://cdn.gmtm.com/".concat(null===e||void 0===e||null===(c=e.meta)||void 0===c||null===(u=c.branding)||void 0===u?void 0:u.avatar_uri),width:24,height:24,className:"rounded object-cover object-center bg-white/75"}):(0,i.jsx)("div",{className:"w-[24px] h-[24px] flex items-center justify-center dark:border-foreground/50",children:(0,i.jsx)(ee.Z,{className:"text-muted-foreground w-[24px] h-[24px] "})})}),(0,i.jsx)("div",{className:"font-medium font-mono",children:e.label})]},null===e||void 0===e?void 0:e.value)})}):void 0})):null,d?null:(0,i.jsx)("div",{className:"flex gap-2 justify-center text-muted-foreground items-center h-[222px]",children:(0,i.jsx)("div",{className:"text-sm",children:"Start Typing to See Suggestions..."})}),0===(null===T||void 0===T?void 0:T.length)&amp;&amp;location?(0,i.jsx)("div",{className:"flex gap-2 justify-center text-muted-foreground items-center h-[222px]",children:(0,i.jsx)("div",{className:"text-sm",children:"No results..."})}):null]})]})})})]})})},ae=r()((function(){return Promise.all([n.e(733),n.e(3631),n.e(2679),n.e(2642),n.e(3310),n.e(4273),n.e(9915)]).then(n.bind(n,94273))}),{loadableGenerated:{webpack:function(){return[94273]}}}),se=r()((function(){return n.e(6764).then(n.bind(n,16764))}),{loadableGenerated:{webpack:function(){return[16764]}}}),le=(n(11227)("GMTM:HeaderV2"),function(e){var t,n=e.stickyHeader,o=void 0!==n&amp;&amp;n,r=e.useFrontOfficeLogo,a=void 0!==r&amp;&amp;r,s=e.dark,d=void 0!==s&amp;&amp;s,c=(e.tailwindHoverColor,e.style),u=void 0===c?null:c,v=(e.iOmniSearchValue,e.showSignInModal,e.showSignUpModal,e.className,e.preFilledSignUp),f=e.showBottomLine,h=void 0===f||f,g=(e.onOmniClear,e.tour,e.isMobile,(0,N.Z)(e,["stickyHeader","useFrontOfficeLogo","dark","tailwindHoverColor","style","iOmniSearchValue","showSignInModal","showSignUpModal","className","preFilledSignUp","showBottomLine","onOmniClear","tour","isMobile"])),x=(0,z.useRouter)(),p=(0,M.parseCookies)().mobileMode,S=(null===x||void 0===x?void 0:x.query)||"",O=(0,l.useState)(),T=O[0],B=O[1],q=(0,l.useState)(!1),J=q[0],Y=q[1],$=(0,l.useState)(!1),Q=$[0],K=$[1],X=(0,l.useState)(!1),ee=(X[0],X[1]),te=(0,l.useState)(!1),ne=te[0],ie=te[1],oe=(0,l.useState)(""),le=oe[0],de=oe[1],ce=(0,l.useState)(),ue=(ce[0],ce[1],(0,l.useState)(!1)),ve=ue[0],me=ue[1],fe=(0,m.k)(),he=fe.session,ge=fe.activeOrgId,xe=fe.mutateActiveOrgId,pe=((0,V.Z)(null===he||void 0===he?void 0:he._id).permissions,null===he||void 0===he?void 0:he._id);(0,l.useEffect)((function(){0===(null===g||void 0===g?void 0:g.toggleDrawer)?ie(!1):ie(!0)}),[null===g||void 0===g?void 0:g.toggleDrawer]);var je=(0,l.useRef)(null);(0,l.useEffect)((function(){return x.events.on("routeChangeStart",(function(e,t){var n;return t.shallow?null:null===je||void 0===je||null===(n=je.current)||void 0===n?void 0:n.continuousStart()})),x.events.on("routeChangeComplete",(function(e,t){var n;return t.shallow||null===je||void 0===je||null===(n=je.current)||void 0===n||n.complete(),ie(!1),null})),function(){x.events.off("routeChangeComplete",(function(){return null})),x.events.off("routeChangeStart",(function(){return null}))}}),[x.events,je]);var be=function(){ee(!1),Y(!J),!J||"true"!=S.signin&amp;&amp;"true"!=S.signup||x.push("/")};(0,l.useEffect)((function(){"true"==S.signin?(ie(!1),ee(!1),Y(!J),!J||"true"!=S.signin&amp;&amp;"true"!=S.signup||x.push("/"),K(!1)):"true"==S.signup&amp;&amp;(ie(!1),ee(!1),Y(!J),!J||"true"!=S.signin&amp;&amp;"true"!=S.signup||x.push("/"),K(!0))}),[S.signin,S.signup,x]);var Ne=function(){return ie(!ne)},ye=(0,l.useState)([]),we=ye[0],_e=ye[1],Ze=(0,A.ZP)([pe,"getNotifications"],(null===he||void 0===he?void 0:he._id)&amp;&amp;(null===he||void 0===he?void 0:he.type)&gt;0?P.THo:null,{refreshInterval:1e4}),ke=Ze.data;Ze.isValidating,Ze.error;(0,l.useEffect)((function(){var e=function(){var e=(0,j.Z)((function(){var e,t;return(0,w.__generator)(this,(function(n){switch(n.label){case 0:return 1!=(null===he||void 0===he?void 0:he.type)?[3,2]:[4,(0,P.eRL)(null===he||void 0===he?void 0:he._id)];case 1:t=n.sent(),me(null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.isAuthor),n.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}();e()}),[he]);var Se=ke;(0,l.useEffect)((function(){var e;_e(null!==(e=null===Se||void 0===Se?void 0:Se.data)&amp;&amp;void 0!==e?e:[])}),[Se]);var Ce=function(){var e=(0,j.Z)((function(){var e;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,P.R8T)(pe)];case 1:return t.sent(),[4,(0,P.THo)(pe)];case 2:return e=t.sent(),_e((null===e||void 0===e?void 0:e.data)||[]),[2]}}))}));return function(){return e.apply(this,arguments)}}(),ze=(0,l.useRef)(),Me=(0,l.useRef)(),Oe=null===(t=(0,y.Z)(we))||void 0===t?void 0:t.map((function(e,t){var n;return(0,i.jsx)(W.Z,{animateIn:!0,scrollContainer:Me,offset:100,height:75,children:(0,i.jsxs)("div",{children:[e.url?(0,i.jsx)("div",{className:"relative",onClick:function(){(0,P.iNS)(pe,null===e||void 0===e?void 0:e.notification_id)},children:(0,i.jsx)(C(),{href:null===e||void 0===e?void 0:e.url,children:(0,i.jsx)("a",{children:(0,i.jsxs)("div",{className:" p-4 hover:bg-gmtm-offWhite rounded flex items-center relative",children:[e.img?(0,i.jsx)("div",{style:{width:38,height:38},children:(0,i.jsx)(D.Z,{width:38,height:38,alt:"",src:(null===(n=e.img)||void 0===n?void 0:n.includes("cdn.gmtm.com"))?(0,U.toOptimizedSrc)(null===e||void 0===e?void 0:e.img,50):null===e||void 0===e?void 0:e.img,fallbackSrc:null===e||void 0===e?void 0:e.img,className:"rounded-full object-center object-cover"})}):(0,i.jsx)("div",{className:"bg-accent text-muted-foreground rounded-full w-[38px] h-[38px] flex items-center justify-center",children:(0,i.jsx)(Z.G,{icon:_.qmU,style:{width:24,height:24}})}),(0,i.jsxs)("div",{className:"w-4/5 pl-3",children:[(0,i.jsx)("div",{className:"font-bold text-sm text-black",children:e.title}),(0,i.jsx)("div",{className:"truncate font-light text-gmtm-gray text-sm",children:e.details})]})]})})})}):(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)("div",{className:" p-4 hover:bg-gmtm-offWhite rounded flex items-center relative",children:[e.img?(0,i.jsx)("div",{style:{width:38,height:38},children:(0,i.jsx)(D.Z,{width:38,height:38,alt:"notification thumbnail",src:e.img,className:"rounded-full object-center object-cover"})}):(0,i.jsx)("div",{className:"bg-accent text-muted-foreground rounded-full w-[38px] h-[38px] flex items-center justify-center",children:(0,i.jsx)(Z.G,{icon:_.qmU,style:{width:24,height:24}})}),(0,i.jsxs)("div",{className:"w-4/5 pl-3",children:[(0,i.jsx)("div",{className:"font-bold text-sm text-black",children:e.title}),(0,i.jsx)("div",{className:"truncate font-light text-gmtm-gray text-sm",children:e.details})]})]},"notification-".concat(null===e||void 0===e?void 0:e.notification_id)||0)}),t==(null===we||void 0===we?void 0:we.length)-1&amp;&amp;(0,i.jsx)("p",{className:"text-gray-600 text-center p-4 font-medium text-sm",children:"Reached the End of Your Notifications"})]})},"notification-".concat(null===e||void 0===e?void 0:e.notification_id)||0)})),Te=(0,l.useRef)();if((0,L.Z)(Te,(function(){return de("")})),p)return(0,i.jsx)("div",{});var Ie=null===x||void 0===x?void 0:x.pathname,Re=null===Ie||void 0===Ie?void 0:Ie.includes("/front-office");return(0,i.jsxs)("div",{style:(0,b.Z)({},u),className:"WelcomeToNav w-full ".concat(d?"bg-gmtm-black":"bg-white"," ").concat(o?"sticky top-0 z-20":"relative"),children:[(0,i.jsx)(E.Z,{ref:je,height:2,color:"#d3f132"}),(0,i.jsxs)("div",{className:"flex items-center tablet:hidden h-full px-2 MobileNavTour",children:[(0,i.jsx)("div",{className:"w-1/3 h-full flex",children:(0,i.jsx)("div",{className:"absolute z-50 top-0 left-0 mt-4 ml-2 HamburgerTour",children:(0,i.jsx)(I,{className:"outline-none focus:outline-none",size:30,active:ne,onClick:Ne})})}),(0,i.jsx)("div",{className:"w-1/3 h-full flex",children:(0,i.jsx)("div",{style:{height:20},className:"my-auto mx-auto",children:(0,i.jsx)(C(),{className:"cursor-pointer",href:"/",children:(0,i.jsx)("img",{fetchpriority:"high",width:100,height:20,alt:"Gmtm Logo",src:d?"https://cdn.gmtm.com/optimized/assets/160/webp/gmtm_word.png":"https://cdn.gmtm.com/optimized/assets/160/webp/gmtm_black_word_500.png"})})})}),(0,i.jsx)("div",{className:"w-1/3 flex",children:he&amp;&amp;(null===he||void 0===he?void 0:he.anonymous)?(0,i.jsx)("div",{onClick:function(){Y(!0),K(!0)},className:"my-auto font-semibold ml-auto p-2 cursor-pointer ".concat(d?"hover:bg-gmtm-gray text-white":"hover:bg-gray-100"," rounded text-sm mr-3"),children:"SIGN UP"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{onClick:function(){de("notifications"===le?"":"notifications"),we.find((function(e){return!e.viewed}))&amp;&amp;Ce()},className:"p-4 pr-5 hover:bg-gray-100 cursor-pointer relative ml-auto",children:(0,i.jsxs)("div",{className:"font-sans font-semibold",children:[(0,i.jsxs)("div",{className:"relative text-center",children:[(0,i.jsx)(Z.G,{width:0,className:" z-30 fa-md",icon:_.qmU}),we.find((function(e){return!e.viewed}))?(0,i.jsxs)("div",{className:"absolute top-0 z-10 ml-4",children:[(0,i.jsx)("i",{style:{width:"0.675rem",height:"0.675rem"},className:"bg-red-500 absolute z-10 text-sm rounded-full"}),(0,i.jsx)("span",{style:{width:"0.675rem",height:"0.675rem"},className:"animate-ping absolute top-0 left-0 z-10 rounded-full bg-red-400 opacity-75"})]}):null]}),(0,i.jsxs)("div",{ref:Te,style:{zIndex:999},hidden:"notifications"!==le,className:"absolute overflow-auto top-0 right-0 py-1 mt-10 pr-1 -mr-10",children:[(0,i.jsx)("div",{style:{width:12},className:"-mb-1 ml-auto mr-16",children:(0,i.jsx)(se,{size:12,color:"white"})}),(0,i.jsx)("div",{className:"bg-white shadow-lg border border-gray-200 rounded cursor-pointer",children:(0,i.jsx)(R.$B,{autoHeight:!0,autoHide:!0,ref:ze,universal:!0,autoHeightMax:350,style:{width:325},children:(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(null===Oe||void 0===Oe?void 0:Oe.length)&gt;0&amp;&amp;Oe,0==(null===Oe||void 0===Oe?void 0:Oe.length)&amp;&amp;(0,i.jsx)("p",{className:"text-gray-600 text-center p-4 font-medium text-sm",children:"No New Notifications Yet"})]})})})]})]})}),(0,i.jsxs)("div",{className:"my-auto mr-2",children:[(0,i.jsx)(H.Z,{onClick:function(){Ne(),B("account")},className:"rounded-full cursor-pointer",size:45,loading:!he,imageSize:100,uri:null===he||void 0===he?void 0:he.avatar_uri})," "]})]})})]}),(0,i.jsxs)("div",{className:"SideNavTour transform w-3/4 h-screen fixed z-50 bg-white shadow-lg top-0 left-0\n      ".concat(ne?"opacity-100":"opacity-0 -translate-x-full"," duration-300 ease-in-out"),children:[(0,i.jsx)("div",{style:{height:20},className:"mb-8 mt-5 mx-auto",children:(0,i.jsx)(C(),{className:"cursor-pointer",href:"/",children:(0,i.jsx)("a",{children:(0,i.jsx)("img",{fetchpriority:"high",width:100,height:20,alt:"Gmtm Logo",src:"https://cdn.gmtm.com/optimized/assets/160/webp/gmtm_black_word_500.png"})})})}),(0,i.jsxs)(R.$B,{autoHide:!0,universal:!0,style:{width:"100%",height:"calc(100vh - 140px)"},children:[(0,i.jsxs)("div",{className:"px-4 mt-5",children:[(null===he||void 0===he?void 0:he.type)&gt;=1&amp;&amp;(0,i.jsx)(C(),{id:"activities",href:"/my-events",children:(0,i.jsx)("div",{className:"py-1 mt-2 font-bold font-sans relative cursor-pointer",children:(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)("span",{children:"MY ACTIVITIES"})})})}),(null===he||void 0===he?void 0:he.type)&lt;1&amp;&amp;(0,i.jsx)(C(),{id:"activities",href:"/virtuals",children:(0,i.jsx)("div",{className:"py-1 mt-2 font-bold font-sans relative cursor-pointer",children:(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)("span",{children:"ACTIVITIES"})})})}),(null===he||void 0===he?void 0:he.type)&gt;0?(0,i.jsxs)("div",{onClick:function(){return B((function(e){return"account"===e?null:"account"}))},className:"py-1 mt-2 font-bold font-sans relative cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("span",{children:"ACCOUNT"}),(0,i.jsx)(k.Z,{className:"w-5 h-5 my-auto ml-auto transform ".concat("account"===T?"rotate-180":""," duration-200")})]}),(0,i.jsxs)("div",{className:"".concat("account"===T?"visible h-full opacity-100":"h-0 invisible opacity-0"," mt-2 duration-75"),children:[(0,i.jsx)(C(),{href:"/athletes/".concat(null===he||void 0===he?void 0:he.user_id,"/").concat((0,F.Ej)("".concat(null===he||void 0===he?void 0:he.first_name," ").concat(null===he||void 0===he?void 0:he.last_name))),children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-3 pb-2 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"My Profile"})})})}),(0,i.jsx)(C(),{href:"".concat((null===he||void 0===he?void 0:he.type)&gt;0?"/home":"/sign-in"),children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{id:"home-button",className:"p-3 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"My Home"})})})}),(0,i.jsx)(C(),{href:"/analytics",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-3 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"My Stats"})})})}),(null===he||void 0===he?void 0:he.type)&gt;=3&amp;&amp;!Re?(0,i.jsx)("div",{children:(0,i.jsx)(C(),{href:"/front-office",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-3 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"View as Coach"})})})})}):null,(null===he||void 0===he?void 0:he.type)&gt;=3&amp;&amp;Re?(0,i.jsx)(C(),{href:"/home",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"View as Athlete"})})})}):null,(null===he||void 0===he?void 0:he.type)&gt;=8?(0,i.jsx)("div",{children:(0,i.jsx)(C(),{href:"/back-office",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-3 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"Back Office"})})})})}):null,(0,i.jsx)(C(),{id:"account-settings",href:"/settings",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-4 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"Account Settings"})})})}),(0,i.jsx)(C(),{id:"sign-out",href:"/sign-out",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-4 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"Sign Out"})})})})]})]}):null,(0,i.jsx)(C(),{id:"download-app",href:"https://get.gmtm.com",children:(0,i.jsx)("div",{className:"py-1 mt-2 font-bold font-sans relative cursor-pointer",children:(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)("span",{children:"Download Our App"})})})})]}),(null===he||void 0===he?void 0:he.anonymous)||!he?(0,i.jsxs)("div",{className:"flex flex-wrap w-full mt-5 text-sm",children:[(0,i.jsx)("div",{className:"w-full border border-b border-gmtm-lighterGray"}),(0,i.jsx)("div",{className:"w-1/2 relative font-sans font-semibold px-4 my-auto py-4 underline text-g-textGray cursor-pointer text-center",onClick:function(){ie(!1),be(),K(!1)},children:"Sign in"}),(0,i.jsx)("div",{className:"w-1/2 relative font-sans font-semibold px-4 underline my-auto text-g-textGray py-4 cursor-pointer text-center",onClick:function(){ie(!1),be(),K(!0)},children:"Sign up"})]}):null]})]}),(0,i.jsx)("div",{onClick:Ne,className:"".concat(ne?"opacity-100":"invisible opacity-0","\n      w-screen h-screen bg-black bg-opacity-50 fixed z-30 top-0 left-0 duration-100")}),(0,i.jsxs)("div",{className:"tablet:flex items-center mx-auto h-full hidden py-4 px-6  ".concat(d||!h?"":"border-b border-gmtm-lighterGray"),children:[(0,i.jsxs)("div",{className:"flex",children:[a?(0,i.jsxs)("div",{className:"mr-3 flex",children:[(0,i.jsx)(D.Z,{priority:"high",className:"my-auto",width:80,height:18,src:"https://cdn.gmtm.com/assets/gmtm_black_icon.png"}),(0,i.jsx)("div",{className:"font-sans font-black my-auto ml-1",children:"Front Office"})]}):(0,i.jsxs)("div",{className:"mr-3 flex items-center gap-4",children:[(0,i.jsx)("div",{children:(0,i.jsx)(C(),{className:"cursor-pointer",href:"/",children:(0,i.jsx)("a",{children:(0,i.jsx)("img",{fetchpriority:"high",width:80,height:18,alt:"Gmtm Logo",src:d?"https://cdn.gmtm.com/assets/gmtm_word.png":"https://cdn.gmtm.com/assets/gmtm_black_word_500.png"})})})}),(null===he||void 0===he?void 0:he.type)&gt;=3?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"text-muted-foreground dark opacity-50 font-black text-xl",children:"/"}),(0,i.jsx)(G.z,{dark:d,value:ge,onChange:function(e){xe(e),(0,M.setCookie)(null,"activeOrgId",e,{maxAge:2592e3,path:"/"})},withProBadge:!0})]}):null]}),d?null:(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)("div",{onMouseLeave:function(){return de("")},onMouseEnter:function(){return de("articles")},className:"relative font-sans rounded px-2 xl:px-4 py-2 cursor-pointer Activities ".concat("hover:bg-gmtm-offWhite"),id:"articles-dropdown-button",children:[(0,i.jsx)("div",{className:"text-foreground/90 text-sm font-medium",children:(0,i.jsx)(C(),{href:"/articles",children:"Articles"})}),(0,i.jsx)("div",{hidden:"articles"!==le,style:{width:250,marginRight:-85},className:"absolute z-50 top-0 right-0 pt-10 py-1",children:(0,i.jsxs)("div",{className:"bg-white shadow-lg rounded border cursor-pointer pt-3",children:[(0,i.jsx)(C(),{href:"/articles/category/athlete-spotlight",children:(0,i.jsx)("a",{id:"athlete-spotlight",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Athlete Spotlight"})})})}),(0,i.jsx)(C(),{href:"/articles/category/brand-building",children:(0,i.jsx)("a",{id:"brand-building",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Brand Building / NIL"})})})}),(0,i.jsx)(C(),{href:"/articles/category/coaching",children:(0,i.jsx)("a",{id:"coaching",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Coaching"})})})}),(0,i.jsx)(C(),{href:"/articles/category/eligibility",children:(0,i.jsx)("a",{id:"eligibility",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Eligibility"})})})}),(0,i.jsx)(C(),{href:"/articles/category/gmtm-updates",children:(0,i.jsx)("a",{id:"gmtm-updates",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"GMTM Updates"})})})}),(0,i.jsx)(C(),{href:"/articles/category/health-and-fitness",children:(0,i.jsx)("a",{id:"health-fitness",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Health &amp; Fitness"})})})}),(0,i.jsx)(C(),{href:"/articles/category/after-sports",children:(0,i.jsx)("a",{id:"life-after-sports",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Life After Sports"})})})}),(0,i.jsx)(C(),{href:"/articles/category/parent-advice",children:(0,i.jsx)("a",{id:"parent-advice",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Parent Advice"})})})}),(0,i.jsx)(C(),{href:"/articles/category/recruiting",children:(0,i.jsx)("a",{id:"recruiting",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Recruiting"})})})}),(0,i.jsx)(C(),{href:"/articles/category/team-spotlight",children:(0,i.jsx)("a",{id:"team-spotlight",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Team Spotlight"})})})}),(0,i.jsx)("hr",{className:"mt-3"}),(0,i.jsx)(C(),{href:"/articles",children:(0,i.jsx)("a",{id:"all-articles",children:(0,i.jsx)("div",{className:"p-2 px-4 pb-3 pt-3 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold z-60",children:(0,i.jsx)("div",{className:"",children:"All Articles"})})})})]})})]}),(0,i.jsx)(C(),{href:"/sparq",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"font-sans font-medium px-2 xl:px-4 py-2 cursor-pointer",children:(0,i.jsx)("div",{className:"text-sm text-foreground/90",children:(0,i.jsx)("span",{children:"SPARQ"})})})})})]})]}),(0,i.jsx)("div",{className:"w-full max-w-md ml-8 -mt-2",children:d?null:(0,i.jsx)(re,{dark:d})}),(0,i.jsx)("div",{className:"flex-1"}),he&amp;&amp;(null===he||void 0===he?void 0:he.type)&gt;0?(0,i.jsxs)("div",{className:"flex ml-auto items-center space-x-2",children:[(0,i.jsx)("div",{onMouseLeave:function(){return de("")},onMouseEnter:function(){we.find((function(e){return!e.viewed}))&amp;&amp;Ce(),de("notifications")},className:"rounded-full p-2 w-10 h-10 flex items-center justify-center  ".concat(d?"dark hover:bg-g-offWhite/25":"hover:bg-g-black/25"," rounded cursor-pointer relative BellIcon"),children:(0,i.jsxs)("div",{className:"font-sans font-semibold",children:[(0,i.jsxs)("div",{className:"relative text-center w-5",children:[(0,i.jsx)(Z.G,{width:20,className:"z-30 fa-md ".concat(d?"text-white":"text-black"),icon:_.qmU}),we.find((function(e){return!e.viewed}))?(0,i.jsxs)("div",{className:"absolute top-0 z-10 ml-4",children:[(0,i.jsx)("i",{style:{width:"0.675rem",height:"0.675rem"},className:"bg-red-500 absolute z-10 text-sm rounded-full"}),(0,i.jsx)("span",{style:{width:"0.675rem",height:"0.675rem"},className:"animate-ping absolute top-0 left-0 z-10 rounded-full bg-red-400 opacity-75"})]}):null]}),(0,i.jsx)("div",{hidden:"notifications"!==le,className:"absolute z-50 overflow-auto top-0 right-0 py-1 pt-5 mt-6 pr-1 -mr-10",children:(0,i.jsxs)("div",{className:"bg-white shadow-lg border border-gray-200 rounded cursor-pointer",children:[(0,i.jsx)("div",{className:"font-black text-lg pt-3 mb-2 pl-4 text-g-black",children:"Notifications"}),(0,i.jsx)("hr",{}),(0,i.jsx)(R.$B,{ref:ze,autoHeight:!0,autoHide:!0,universal:!0,autoHeightMax:350,style:{width:325},children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(null===Oe||void 0===Oe?void 0:Oe.length)&gt;0&amp;&amp;Oe,0==(null===Oe||void 0===Oe?void 0:Oe.length)&amp;&amp;(0,i.jsx)("p",{className:"text-gray-600 text-center p-4 font-medium text-sm",children:"No New Notifications Yet"})]})})]})})]})}),(0,i.jsx)("div",{onMouseLeave:function(){return de("")},onMouseEnter:function(){return de("account")},className:"relative mr-4 hover:bg-gmtm-offWhite rounded-full ".concat(d?"dark":""," ProfileSettings"),children:(0,i.jsxs)("div",{className:" font-sans font-semibold cursor-pointer",children:[(0,i.jsx)(H.Z,{uri:null===he||void 0===he?void 0:he.avatar_uri,loading:!he,className:"rounded-full p-0",size:38,imageSize:100}),(0,i.jsx)("div",{hidden:"account"!==le,style:{width:250},className:"absolute z-50 top-0 right-0 mt-6 pt-5 -mr-3",children:(0,i.jsxs)("div",{className:"bg-white shadow-lg rounded border cursor-pointer",children:[(0,i.jsx)(C(),{href:"/athletes/".concat(null===he||void 0===he?void 0:he.user_id,"/").concat((0,F.Ej)("".concat(null===he||void 0===he?void 0:he.first_name," ").concat(null===he||void 0===he?void 0:he.last_name))),children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"hover:bg-gmtm-offWhite rounded py-4",children:(0,i.jsx)("div",{className:"font-semibold text-sm text-black",children:(0,i.jsxs)("div",{style:{marginTop:0,marginLeft:12,maxWidth:200},className:"truncate flex",children:[(0,i.jsx)("div",{children:(0,i.jsx)(H.Z,{uri:null===he||void 0===he?void 0:he.avatar_uri,loading:!he,className:"rounded-lg",size:40,imageSize:100})}),(0,i.jsxs)("div",{className:"pl-3",children:[(0,i.jsxs)("span",{className:" text-base font-black capitalize truncate",children:[(null===he||void 0===he?void 0:he.first_name)||"N"," ",(null===he||void 0===he?void 0:he.last_name)||"/ A"]}),(0,i.jsx)("div",{className:"text-gmtm-gray text-sm underline font-light",children:"Edit My Profile"})]})]})})})})}),(0,i.jsx)("hr",{}),(null===he||void 0===he?void 0:he.type)&gt;=3?(0,i.jsx)(C(),{href:"/front-office/organization",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"My Organization"})})})}):null,(null===he||void 0===he?void 0:he.type)&gt;=3?(0,i.jsx)(C(),{href:"/front-office/search/saved",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"My Saved Searches"})})})}):null,(null===he||void 0===he?void 0:he.type)&lt;2&amp;&amp;!Re?(0,i.jsx)(C(),{href:"/subscribe",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"font-bold",children:"Upgrade to Coach Account"})})})}):null,(null===he||void 0===he?void 0:he.type)&gt;=3&amp;&amp;!Re?(0,i.jsx)(C(),{href:"/front-office",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"View as Coach"})})})}):null,(null===he||void 0===he?void 0:he.type)&gt;=3&amp;&amp;Re?(0,i.jsx)(C(),{href:"/home",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"View as Athlete"})})})}):null,(null===he||void 0===he?void 0:he.type)&lt;3&amp;&amp;1==ve&amp;&amp;(0,i.jsx)("div",{children:(0,i.jsx)(C(),{href:"/front-office/staff-writers",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-3 px-4 hover:bg-gmtm-offWhite rounded",children:(0,i.jsx)("div",{className:"font-light text-sm text-black",children:"Front Office"})})})})}),(null===he||void 0===he?void 0:he.type)&gt;=8?(0,i.jsx)(C(),{href:"/back-office",children:(0,i.jsx)("a",{children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Back Office"})})})}):null,(0,i.jsx)(C(),{href:"/settings",children:(0,i.jsx)("a",{id:"account-settings",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Account Settings"})})})}),(0,i.jsx)(C(),{href:"/sign-out",children:(0,i.jsx)("a",{id:"sign-out",children:(0,i.jsx)("div",{className:"p-2 px-4 hover:bg-gmtm-offWhite rounded font-light text-gmtm-gray text-sm hover:text-black hover:font-semibold",children:(0,i.jsx)("div",{className:"",children:"Sign Out"})})})})]})})]})})]}):(null===he||void 0===he?void 0:he.anonymous)||!he?(0,i.jsxs)("div",{className:"flex ml-auto font-semibold text-sm",children:[(0,i.jsx)("div",{id:"sign-in-button",onClick:function(){K(!1),Y(!0)},className:"p-4 ".concat(d?"hover:bg-gmtm-gray text-white":"hover:bg-gray-100"," cursor-pointer"),children:"Sign In"}),(0,i.jsxs)("div",{id:"sign-up-button",onClick:function(){K(!0),Y(!0)},className:"p-4 ".concat(d?"hover:bg-gmtm-gray text-white":"hover:bg-g-500 hover:text-black bg-black text-white"," cursor-pointer"),children:[" ","Sign Up"]})]}):null]}),he&amp;&amp;(null===he||void 0===he?void 0:he.anonymous)?(0,i.jsx)(ae,{showModal:J,startOnSignUp:Q,preFilledSignUp:v,onBlurModal:Y}):null]})}),de=l.memo(le),ce=n(69396),ue=n(67626),ve=n(45139),me=n(41352),fe=n(54601),he=ue.zt,ge=l.forwardRef((function(e,t){var n=e.className,o=(0,N.Z)(e,["className"]);return(0,i.jsx)(ue.l_,(0,b.Z)({ref:t,className:(0,fe.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n)},o))}));ge.displayName=ue.l_.displayName;var xe=(0,ve.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),pe=l.forwardRef((function(e,t){var n=e.className,o=e.variant,r=(0,N.Z)(e,["className","variant"]);return(0,i.jsx)(ue.fC,(0,b.Z)({ref:t,className:(0,fe.cn)(xe({variant:o}),n)},r))}));pe.displayName=ue.fC.displayName,l.forwardRef((function(e,t){var n=e.className,o=(0,N.Z)(e,["className"]);return(0,i.jsx)(ue.aU,(0,b.Z)({ref:t,className:(0,fe.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n)},o))})).displayName=ue.aU.displayName;var je=l.forwardRef((function(e,t){var n=e.className,o=(0,N.Z)(e,["className"]);return(0,i.jsx)(ue.x8,(0,ce.Z)((0,b.Z)({ref:t,className:(0,fe.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":""},o),{children:(0,i.jsx)(me.Z,{className:"h-4 w-4"})}))}));je.displayName=ue.x8.displayName;var be=l.forwardRef((function(e,t){var n=e.className,o=(0,N.Z)(e,["className"]);return(0,i.jsx)(ue.Dx,(0,b.Z)({ref:t,className:(0,fe.cn)("text-sm font-semibold",n)},o))}));be.displayName=ue.Dx.displayName;var Ne=l.forwardRef((function(e,t){var n=e.className,o=(0,N.Z)(e,["className"]);return(0,i.jsx)(ue.dk,(0,b.Z)({ref:t,className:(0,fe.cn)("text-sm opacity-90",n)},o))}));Ne.displayName=ue.dk.displayName;var ye=n(72438);function we(){var e=(0,ye.pm)().toasts;return(0,i.jsxs)(he,{children:[e.map((function(e){var t=e.id,n=e.title,o=e.description,r=e.action,a=(0,N.Z)(e,["id","title","description","action"]);return(0,i.jsxs)(pe,(0,ce.Z)((0,b.Z)({},a),{children:[(0,i.jsxs)("div",{className:"grid gap-1",children:[n&amp;&amp;(0,i.jsx)(be,{children:n}),o&amp;&amp;(0,i.jsx)(Ne,{children:o})]}),r,(0,i.jsx)(je,{})]}),t)})),(0,i.jsx)(ge,{})]})}var _e=n(79693),Ze=n(49712),ke=n(16070),Se=n(77705),Ce=n(84979),ze=n(40098),Me=n(82171),Oe=n(17847),Te=n(35972),Ie=n(30845),Re=n(70503),Ee=n(62469),Ae=n(13671),Pe=n(7314),Le=n(75283),Fe=n(52305),He=(n(8215),r()((function(){return Promise.all([n.e(2937),n.e(939),n.e(1167)]).then(n.t.bind(n,71167,23))}),{loadableGenerated:{webpack:function(){return[71167]}},ssr:!1})),De=function(e){var t=e.content,n=e.setContent;return(0,i.jsx)("div",{children:(0,i.jsx)(He,{value:t,onChange:function(e){n(e)},modules:{toolbar:[["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["clean"]]},formats:["bold","italic","underline","strike","list","bullet"],className:"w-full h-[70%] mt-10 bg-white",placeholder:"Aa"})})},We=n(49050),Ue=n(63048),Ge=n(66313),Ve=n(71482),Be=n(9309);function qe(e,t){if(!e)return"&lt;p&gt;".concat(t,"&lt;/p&gt;");var n=e.lastIndexOf("&lt;/"),i=e.slice(n);return e.slice(0,n)+t+i}var Je=function(e){var t,n,o,r,a,s,d,c,u,v,f,h,g=e.conversation,x=void 0===g?null:g,p=e.conversationID,N=void 0===p?null:p,_=e.onClose,Z=e.onSend,k=e.onArchive,S=(0,m.k)().session,C=(0,l.useState)({text:"",html:"",clips:[],images:[]}),z=C[0],M=C[1];(0,l.useEffect)((function(){M({text:"",html:"",clips:[],images:[]})}),[null===x||void 0===x?void 0:x.conversation_id]);var O=(null===x||void 0===x||null===(t=x.members)||void 0===t?void 0:t.length)&gt;0?null===x||void 0===x||null===(n=x.members)||void 0===n?void 0:n.filter((function(e){return(null===e||void 0===e?void 0:e.user_id)!==(null===S||void 0===S?void 0:S.user_id)})):[],T=null===O||void 0===O?void 0:O.map((function(e){return null===e||void 0===e?void 0:e.first_name})).join(", "),I=null;if((null===x||void 0===x||null===(o=x.members)||void 0===o?void 0:o.length)&gt;2)I=T;else if(null===x||void 0===x?void 0:x.network_name)I=null===x||void 0===x?void 0:x.network_name;else{var R,E;I=(null===O||void 0===O||null===(R=O[0])||void 0===R?void 0:R.first_name)+" "+(null===O||void 0===O||null===(E=O[0])||void 0===E?void 0:E.last_name)}null===x||void 0===x||null===(r=x.members)||void 0===r||r.length;var A=(0,l.useRef)(),P=function(){var e=(0,j.Z)((function(e){var t,n;return(0,w.__generator)(this,(function(i){switch(i.label){case 0:t=e.target.files,n=0,i.label=1;case 1:return n&lt;t.length?[4,F(t[n])]:[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),L=(0,Ve.Z)("messages/media/images",(function(e){var t="https://cdn.gmtm.com/".concat(e);M((function(e){return(0,ce.Z)((0,b.Z)({},e),{images:(0,y.Z)(e.images).concat([t])})}))}),(function(e){})),F=(L.fileRef,L.uploadToS3),H=(L.uploadProgress,(0,l.useState)(!1)),D=H[0],W=H[1];return(0,i.jsx)("div",{style:{height:N?"auto":0},className:"fixed duration-100 bottom-0 right-[400px] z-50 w-[400px]",children:(0,i.jsxs)(Ze.Zb,{className:"rounded-b-none relative flex flex-col",children:[(0,i.jsxs)("div",{className:"flex items-center p-2 border-b bg-white rounded-t-lg border-card-background",children:[(null===x||void 0===x||null===(a=x.members)||void 0===a?void 0:a.length)&gt;2?(0,i.jsx)("div",{className:"bg-g-black/75 text-white font-black rounded-full w-[40px] h-[40px] flex items-center justify-center",children:null===x||void 0===x||null===(s=x.members)||void 0===s?void 0:s.length}):(0,i.jsx)(ke.k,{uri:null===O||void 0===O||null===(d=O[0])||void 0===d?void 0:d.avatar_uri,first_name:null===O||void 0===O||null===(c=O[0])||void 0===c?void 0:c.first_name,last_name:null===O||void 0===O||null===(u=O[0])||void 0===u?void 0:u.last_name}),(0,i.jsx)("div",{className:"max-w-[175px] w-full pl-2",children:x?(0,i.jsx)("div",{className:"font-semibold truncate",children:I}):(0,i.jsx)(Be.O,{width:100,height:10})}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsxs)(Ge.h_,{open:D,onOpenChange:W,children:[(0,i.jsx)(Ge.$F,{children:(0,i.jsx)(te.z,{variant:"ghost",className:"p-1 px-3 text-foreground/75",children:(0,i.jsx)(Ee.nWS,{size:16})})}),(0,i.jsx)(Ge.AW,{children:(0,i.jsxs)(te.z,{disabled:!x,onClick:function(){k(null===x||void 0===x?void 0:x.conversation_id),W(!1)},className:"w-full",variant:"ghost",children:[(0,i.jsx)(Ae.Z,{size:16,className:"mr-2"}),"Archive Chat"]})})]}),(0,i.jsx)(te.z,{onClick:function(){_()},variant:"ghost",className:"p-1 px-3 text-foreground/75",children:(0,i.jsx)(me.Z,{size:16})})]}),(0,i.jsx)(Re.Z,{width:"100%",height:N?450:0,className:'"bg-white px-1 duration-150',conversation:x}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{className:" ".concat((null===z||void 0===z||null===(v=z.images)||void 0===v?void 0:v.length)&gt;0?" p-4":"h-0"," z-10 absolute -top-10 left-0  flex gap-2"),children:null===z||void 0===z||null===(f=z.images)||void 0===f?void 0:f.map((function(e){return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(ne.Z,{src:e,className:"w-12 h-12 rounded object-contain object-center bg-white shadow p-2"}),(0,i.jsx)(te.z,{variant:"secondary",onClick:function(){M((function(t){var n;return(0,ce.Z)((0,b.Z)({},t),{images:null===t||void 0===t||null===(n=t.images)||void 0===n?void 0:n.filter((function(t){return t!==e}))})}))},className:"absolute -top-2 -right-2 rounded-full p-0 px-1 h-5 ",children:(0,i.jsx)(Pe.Z,{size:12})})]},e)}))}),(0,i.jsx)(De,{content:(null===z||void 0===z?void 0:z.html)||(null===z||void 0===z?void 0:z.text),setContent:function(e){M((function(t){return(0,ce.Z)((0,b.Z)({},t),{html:e,text:(n=e,n.replace(/&lt;[^&gt;]*&gt;?/gm,""))});var n}))}}),(0,i.jsx)("div",{className:"absolute top-11 right-20",children:(0,i.jsxs)(te.z,{variant:"ghost",style:{marginTop:2},className:"p-2 h-8 relative",onClick:function(){A.current.click()},children:[(0,i.jsx)("input",{ref:A,accept:"image/*",onChange:P,type:"file",className:" w-5 h-full -z-10 invisible absolute top-0 left-0"}),(0,i.jsx)(Le.Z,{className:"w-5"})]})}),(0,i.jsx)("div",{className:"absolute top-11 right-28",children:(0,i.jsxs)(B.J2,{children:[(0,i.jsx)(B.xo,{children:(0,i.jsx)(te.z,{variant:"ghost",style:{marginTop:2},className:"p-2 h-8 ",children:(0,i.jsx)(We.Z,{className:"w-5"})})}),(0,i.jsx)(B.yk,{className:"shadow-none border-none p-0",children:(0,i.jsx)(Ue.ZP,{emojiStyle:"twitter",disableAutoFocus:!0,lazyLoadEmojis:!0,onEmojiClick:function(e){M((function(t){return(0,ce.Z)((0,b.Z)({},t),{html:qe(t.html,e.emoji),text:t.text+e.emoji})}))}})})]})}),(0,i.jsx)(te.z,{disabled:!(null===z||void 0===z?void 0:z.text)&amp;&amp;!(null===z||void 0===z||null===(h=z.images)||void 0===h?void 0:h.length)&gt;0,onClick:(0,j.Z)((function(){return(0,w.__generator)(this,(function(e){return Z({text:z.text,html:z.html,clips:z.clips,images:z.images}),M({text:"",html:"",clips:[],images:[]}),[2]}))})),style:{marginTop:2},className:"absolute right-2 top-11 p-2 py-1 h-8",children:(0,i.jsx)(Fe.Z,{size:16})})]})]})})},Ye=n(828),$e=n(76392),Qe=n(23217),Ke=n(34958),Xe=n(47258),et=n(67024),tt=n(96486),nt=function(e){var t,n,o,r=e.disabled,a=void 0!==r&amp;&amp;r,s=e.placeholder,d=void 0===s?"Search Connections...":s,c=e.isMulti,u=void 0!==c&amp;&amp;c,v=e.className,f=e.onChange,h=e.value,g=(0,m.k)(),x=g.session;g.activeOrgId;(null===h||void 0===h?void 0:h.length)&lt;=0&amp;&amp;(h=void 0);var p=(0,Ye.Z)(l.useState(!1),2),j=p[0],b=p[1],N=(0,Ye.Z)(l.useState(""),2),w=N[0],_=N[1],Z=(0,Ye.Z)(l.useState({pageIndex:0,pageSize:100}),2),k=Z[0],S=k.pageIndex,C=k.pageSize,z=(Z[1],l.useMemo((function(){return{pageIndex:S,pageSize:C}}),[S,C]),(0,Y.Z)(w,400),(0,et.v)((function(e,t){if(t&amp;&amp;!t.length)return null;var n="/connections/approved/queries?page=".concat(e+1,"&amp;size=").concat(C);return["".concat(fe.CT).concat(n),"POST",{sessionId:null===x||void 0===x?void 0:x._id}]}))),M=z.data,O=(z.size,z.setSize,z.isLoading),T=z.isEmpty,I=z.isLoadingMore,R=(z.mutate,(0,Ye.Z)(l.useState(),2)),E=R[0],A=R[1],P=(0,Ye.Z)(l.useState([]),2),L=P[0],F=P[1],H=(0,tt.flatten)(M),D=w?null===(t=null===H||void 0===H?void 0:H.filter((function(e){return"".concat(null===e||void 0===e?void 0:e.first_name," ").concat(null===e||void 0===e?void 0:e.last_name).toLowerCase().includes(w.toLowerCase())})))||void 0===t?void 0:t.map((function(e){return{value:parseInt(null===e||void 0===e?void 0:e.user_id),label:(null===e||void 0===e?void 0:e.first_name)+" "+(null===e||void 0===e?void 0:e.last_name),meta:e}})):null===H||void 0===H?void 0:H.map((function(e){return{value:parseInt(null===e||void 0===e?void 0:e.user_id),label:(null===e||void 0===e?void 0:e.first_name)+" "+(null===e||void 0===e?void 0:e.last_name),meta:e}})),W=l.useRef(null);return l.useEffect((function(){u&amp;&amp;F((null===D||void 0===D?void 0:D.filter((function(e){return null===h||void 0===h?void 0:h.includes(null===e||void 0===e?void 0:e.value)})))||[])}),[h,u]),(0,i.jsx)("div",{ref:W,children:(0,i.jsxs)(B.J2,{open:j,onOpenChange:b,children:[(0,i.jsx)(B.xo,{asChild:!0,children:(0,i.jsxs)(te.z,{disabled:O||a,variant:"outline",role:"combobox","aria-expanded":j,className:(0,fe.cn)("w-[200px] justify-between truncate",v),children:[E?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ke.k,{className:"w-6 h-6",uri:null===E||void 0===E?void 0:E.meta.avatar_uri,first_name:null===E||void 0===E||null===(n=E.meta)||void 0===n?void 0:n.first_name,last_name:null===E||void 0===E||null===(o=E.meta)||void 0===o?void 0:o.last_name}),(0,i.jsx)("span",{className:"px-4 w-[250px] truncate capitalize text-left",children:null===E||void 0===E?void 0:E.label})]}):(null===L||void 0===L?void 0:L.length)&gt;0?(0,i.jsxs)(oe.x,{className:"w-11/12 whitespace-nowrap",children:[(0,i.jsx)("div",{className:"flex gap-1 w-full",children:null===L||void 0===L?void 0:L.map((function(e){var t,n,o;return(0,i.jsxs)(Te.C,{variant:"secondary",className:"capitalize",children:[null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.first_name," ",null===e||void 0===e||null===(n=e.meta)||void 0===n||null===(o=n.last_name)||void 0===o?void 0:o[0],"."]})}))}),(0,i.jsx)(oe.B,{orientation:"horizontal"})]}):(0,i.jsx)("span",{className:"text-muted-foreground",children:d}),O?(0,i.jsx)($.Z,{size:16,className:"ml-auto shrink-0 opacity-50 animate-spin"}):(0,i.jsx)(Ke.Z,{className:"ml-auto h-4 w-4 shrink-0 opacity-50"})]})}),(0,i.jsx)(B.yk,{container:W.current,className:"w-[350px] p-0",children:(0,i.jsxs)(Xe.Ct,{value:h,onChange:function(e){if(u){if(null===h||void 0===h?void 0:h.includes(e))return f(null===h||void 0===h?void 0:h.filter((function(t){return t!==e}))),void F(null===L||void 0===L?void 0:L.filter((function(t){return(null===t||void 0===t?void 0:t.value)!==e})));f((0,y.Z)(h||[]).concat([e])),F((0,y.Z)(L).concat([null===D||void 0===D?void 0:D.find((function(t){return(null===t||void 0===t?void 0:t.value)==e}))]))}else b(!1),_(""),f(e),A(null===D||void 0===D?void 0:D.find((function(t){return(null===t||void 0===t?void 0:t.value)==e})))},children:[(0,i.jsx)(Xe.j,{disabled:O||a,value:w,onChange:function(e){return _(e.target.value)}}),O||I||T?(0,i.jsx)("div",{className:"p-4 flex items-center justify-center h-[200px]",children:(0,i.jsx)("div",{className:"items-center flex gap-2",children:(0,i.jsx)("div",{className:"text-muted-foreground text-sm",children:"No Athlete Content..."})})}):(0,i.jsx)(Xe.w_,{children:null===D||void 0===D?void 0:D.map((function(e){var t,n,o,r,a=u?null===h||void 0===h?void 0:h.includes(null===e||void 0===e?void 0:e.value):h===(null===e||void 0===e?void 0:e.value);return(0,i.jsxs)(Xe.c8,{value:null===e||void 0===e?void 0:e.value,selected:a,className:" h-12",children:[(0,i.jsx)(ke.k,{className:"w-8 h-8",uri:null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.avatar_uri,first_name:null===e||void 0===e||null===(n=e.meta)||void 0===n?void 0:n.first_name,last_name:null===e||void 0===e||null===(o=e.meta)||void 0===o?void 0:o.last_name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"px-4 truncate capitalize",children:null===e||void 0===e?void 0:e.label}),(0,i.jsx)("div",{className:"px-4 truncate capitalize text-muted-foreground text-xs",children:null===e||void 0===e||null===(r=e.meta)||void 0===r?void 0:r.location})]})]},null===e||void 0===e?void 0:e.value)}))}),O||I?(0,i.jsx)("div",{className:"p-4 flex items-center justify-center h-[200px]",children:(0,i.jsxs)("div",{className:"items-center flex gap-2",children:[(0,i.jsx)($.Z,{size:20,className:"animate-spin text-muted-foreground"}),(0,i.jsx)("div",{className:"text-muted-foreground text-sm",children:"Loading Athletes..."})]})}):null]})})]})})},it=n(12854),ot=n(41488),rt=function(e){var t=e.disabled,n=void 0!==t&amp;&amp;t,o=e.onFinally,r=void 0===o?function(){}:o,a=e.trigger,s=void 0===a?(0,i.jsx)($e.My,{disabled:n,children:"Send Message"}):a,d=e.children,c=((0,ye.pm)().toast,(0,m.k)().session),u=(0,Ye.Z)(l.useState(!1),2),v=u[0],f=u[1],h=(0,Ye.Z)(l.useState(!1),2),g=h[0],x=h[1],p=(0,Ye.Z)(l.useState([]),2),b=p[0],N=p[1];return(0,i.jsxs)($e.Vq,{onClick:function(e){e.stopPropagation()},open:g,onOpenChange:x,children:[null!==d&amp;&amp;void 0!==d?d:s,(0,i.jsxs)($e.cZ,{onClick:function(e){e.stopPropagation()},className:"sm:max-w-[425px]",children:[(0,i.jsxs)($e.fK,{children:[(0,i.jsx)($e.$N,{children:"New Message"}),(0,i.jsx)(it.Be,{className:"text-muted-foreground text-sm",children:"Add people to start a new conversation."})]}),(0,i.jsx)(nt,{className:"w-full max-w-[375px]",isMulti:!0,placeholder:"To...",value:b,onChange:N}),(0,i.jsxs)(te.z,{disabled:(null===b||void 0===b?void 0:b.length)&lt;=0,className:"text-sm h-4",onClick:function(){N([])},variant:"link",children:[(0,i.jsx)(me.Z,{size:12,className:"mr-1"}),"Clear Members"]}),(0,i.jsx)($e.cN,{className:"mt-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,i.jsx)(te.z,{onClick:function(){x(!1),N([]),f(!1)},variant:"outline",children:"Cancel"}),(0,i.jsx)(te.z,{onClick:(0,j.Z)((function(){var e;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:return x(!1),f(!0),[4,ot.v6.post("/conversations",{sessionId:null===c||void 0===c?void 0:c._id,members:b})];case 1:return e=t.sent(),f(!1),r(e),[2]}}))})),disabled:(null===b||void 0===b?void 0:b.length)&lt;=0,className:"ml-2",children:v?(0,i.jsx)(Qe.Z,{size:16,className:"animate-spin"}):"Start Chat"})]})})]})]})},at=l.memo((function(e){var t,n,o,r,a,s,l,d,c,u,v,m,f,h,g,x,p=e.index,j=e.style,b=e.data,N=b.conversations,y=b.session,w=(b.activeOrgID,b.onSelect),_=N[p],Z=p===N.length-1,k=_.conversation_id,S=(null===_||void 0===_||null===(t=_.members)||void 0===t?void 0:t.length)&gt;0?null===_||void 0===_||null===(n=_.members)||void 0===n?void 0:n.filter((function(e){return(null===e||void 0===e?void 0:e.user_id)!==(null===y||void 0===y?void 0:y.user_id)})):[],C=null===S||void 0===S?void 0:S.map((function(e){return null===e||void 0===e?void 0:e.first_name})).join(", ");return(0,i.jsxs)("div",{onClick:function(){return w(_)},className:"realtive flex items-center gap-2 cursor-pointer hover:bg-accent p-2 py-3 ".concat(Z?"":"border-b border-card-background"),style:j,children:[(null===_||void 0===_||null===(o=_.members)||void 0===o?void 0:o.length)&gt;2?(0,i.jsx)("div",{className:"bg-g-black/75 text-white font-black rounded-full w-[40px] h-[40px] flex items-center justify-center",children:null===_||void 0===_||null===(r=_.members)||void 0===r?void 0:r.length}):(0,i.jsx)(ke.k,{uri:null===S||void 0===S||null===(a=S[0])||void 0===a?void 0:a.avatar_uri,first_name:null===S||void 0===S||null===(s=S[0])||void 0===s?void 0:s.first_name,last_name:null===S||void 0===S||null===(l=S[0])||void 0===l?void 0:l.last_name}),(0,i.jsxs)("div",{className:"w-3/5",children:[(0,i.jsx)("div",{className:"font-semibold text-sm truncate",children:(null===_||void 0===_?void 0:_.network_name)||C}),(0,i.jsxs)("div",{className:"truncate text-sm text-foreground/75",children:[(0,i.jsx)("span",{className:"font-semibold",children:null===(c=null===_||void 0===_||null===(d=_.members)||void 0===d?void 0:d.find((function(e){var t;return(null===e||void 0===e?void 0:e.user_id)===(null===_||void 0===_||null===(t=_.last_message)||void 0===t?void 0:t.owner_id)})))||void 0===c?void 0:c.first_name})," ",null!==(x=null===_||void 0===_||null===(u=_.last_message)||void 0===u||null===(v=u.payload)||void 0===v||null===(m=v.message)||void 0===m?void 0:m.text)&amp;&amp;void 0!==x?x:null===_||void 0===_||null===(f=_.last_message)||void 0===f||null===(h=f.payload)||void 0===h?void 0:h.message,(null===_||void 0===_?void 0:_.last_message)?"":"No messages"]})]}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)("div",{className:"text-sm text-foreground/50 pb-5",children:(0,Oe.Z)(new Date((null===_||void 0===_||null===(g=_.last_message)||void 0===g?void 0:g.created_on)||(null===_||void 0===_?void 0:_.created_on)),"MMM d")}),(null===_||void 0===_?void 0:_.num_unread_messages)?(0,i.jsx)("div",{className:"absolute z-10 top-0 mt-8 right-0 mr-2 flex items-center justify-center h-2 w-2 rounded-full bg-red-400 ml-1",children:(0,i.jsx)("div",{className:"h-2 w-2 rounded-full bg-red-500 animate-ping"})}):null]},"convo-".concat(k))}),Me.wy),st=(0,Ie.Z)((function(e,t,n,i){return{conversations:e,session:t,activeOrgID:n,onSelect:i}})),lt=function(){var e=(0,m.k)(),t=e.session,n=e.activeOrgId,o=(0,l.useState)(!1),r=o[0],a=o[1],s=(0,ze.y)(t,0),d=(s.makeNewConversation,s.handleDeleteConversation),c=(s.messageText,s.pinnedConversations,s.newConversationMembers,s.setNewConversationMembers,s.setPinnedConversations,s.activeConversation),u=(s.setMessageText,s.searchText),v=s.setSearchText,h=s.setActiveConversation,g=(s.pinConversation,s.unpinConversation,s.members,s.numConversationsWithUnreadMessages),x=void 0===g?2:g,p=(s.membersSansOwner,s.conversation),j=s.conversations,b=s.pushMessage,N=(s.pushMessageObject,(null===j||void 0===j?void 0:j.length)&gt;0?null===j||void 0===j?void 0:j.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.members)||void 0===t?void 0:t.length)&gt;=2})):[]),y=.75*(0,f.z)().innerHeight-48,w=st(N,t,n,(function(e){h(null===e||void 0===e?void 0:e.conversation_id)}));return(0,i.jsxs)("div",{className:"fixed bottom-0 right-0 z-50 w-[325px]",children:[(0,i.jsxs)(Ze.Zb,{className:"rounded-b-none",children:[(0,i.jsxs)("div",{onClick:function(){a(!r)},className:"flex items-center hover:bg-accent rounded-t-lg p-2 cursor-pointer border-b border-card-background",children:[(0,i.jsx)(ke.k,{online:!0,uri:null===t||void 0===t?void 0:t.avatar_uri,first_name:null===t||void 0===t?void 0:t.first_name,last_name:null===t||void 0===t?void 0:t.last_name}),(0,i.jsx)("div",{className:"font-semibold pl-2 select-none",children:"Messaging"}),x&gt;0&amp;&amp;(0,i.jsx)(Te.C,{className:"ml-2 font-bold bg-red-400 text-white",children:x}),(0,i.jsx)("div",{className:"flex-grow"}),(0,i.jsx)(rt,{onFinally:function(e){e&amp;&amp;h(e)},children:(0,i.jsx)($e.hg,{asChild:!0,children:(0,i.jsx)(te.z,{onClick:function(e){e.stopPropagation()},variant:"ghost",className:"p-2 px-3 hover:bg-foreground/25",children:(0,i.jsx)(Se.Z,{size:16})})})}),(0,i.jsx)(Ce.Z,{className:"mx-1 transform duration-100 ".concat(r?"rotate-180":""),size:16,onClick:function(){return a(!r)}})]}),(0,i.jsxs)("div",{style:{height:r?"75vh":"0px"},className:"flex flex-col gap-2 duration-100",children:[(0,i.jsx)("div",{className:"p-2 pb-0",children:(0,i.jsx)(ie.Mj,{value:u,onChange:function(e){v(e.target.value)},placeholder:"Search conversations..."})}),(0,i.jsx)(Me.t7,{overscanCount:5,height:r?y:0,itemCount:null===N||void 0===N?void 0:N.length,itemSize:56,width:"100%",itemData:w,className:"flex flex-col gap-2",children:at})]})]}),(0,i.jsx)(Je,{onClose:function(){return h(null)},onArchive:function(){d(),h(null)},onSend:function(e){b(e)},conversation:p,conversationID:c})]})},dt=function(){return null},ct=(r()((function(){return Promise.all([n.e(2642),n.e(7244)]).then(n.bind(n,27244))}),{loadableGenerated:{webpack:function(){return[27244]}}}),r()((function(){return Promise.all([n.e(7112),n.e(6871)]).then(n.bind(n,93745))}),{loadableGenerated:{webpack:function(){return[93745]}}})),ut=(r()((function(){return n.e(8724).then(n.bind(n,18724))}),{loadableGenerated:{webpack:function(){return[18724]}}}),r()((function(){return n.e(812).then(n.bind(n,60812))}),{loadableGenerated:{webpack:function(){return[60812]}}})),vt=r()((function(){return n.e(4394).then(n.bind(n,54394))}),{loadableGenerated:{webpack:function(){return[54394]}}}),mt=function(e){var t=e.stickyHeader,n=void 0!==t&amp;&amp;t,o=e.useFrontOfficeLogo,r=void 0!==o&amp;&amp;o,a=e.withGPT,g=void 0!==a&amp;&amp;a,j=e.showheaderBottomLine,b=void 0===j||j,N=(e.head,e.description),y=void 0===N?null:N,w=e.darkHeader,_=void 0!==w&amp;&amp;w,Z=e.preFilledSignUp,k=void 0===Z?null:Z,S=e.onOmniClear,C=void 0===S?dt:S,z=e.noFooter,M=void 0!==z&amp;&amp;z,O=e.intercom,T=void 0===O||O,I=e.title,R=void 0===I?"":I,E=e.bg,A=void 0===E?"bg-white":E,P=e.miniFooter,L=void 0!==P&amp;&amp;P,F=(e.style,e.className),H=void 0===F?"":F,D=e.children,W=e.iOmniSearchValue,U=void 0===W?"":W,G=e.ignoreMaxW,V=void 0!==G&amp;&amp;G,B=e.useLeftCol,q=void 0!==B&amp;&amp;B,J=e.useRightCol,Y=void 0!==J&amp;&amp;J,$=(e.isMobile,e.feature),Q=void 0===$?null:$,K=e.inMessagingCenter,X=void 0!==K&amp;&amp;K,ee=(e.swarmify,(0,m.k)()),te=ee.signOut,ne=ee.session,ie=(0,f.z)().innerWidth,oe=(0,l.useState)(0),re=oe[0],ae=oe[1];R=R.toString();var se=(0,l.useState)(Q),le=(se[0],se[1]);(0,l.useCallback)((function(e){return ae(e)}),[ae]);(0,l.useEffect)((function(){le(null);var e=setTimeout(le(Q),500);return function(){return clearTimeout(e)}}),[Q]);var ce=(0,l.useContext)(d.GR),ue=ce.currentImage,ve=ce.setCurrentImage,me=ce.imageArray,fe=(ce.setImageArray,ce.showImageModal),he=ce.setShowImageModal;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(_e.pn,{children:[(0,i.jsxs)("div",{className:"flex flex-col min-h-screen ".concat(A," ").concat(H),children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,i.jsx)("meta",{name:"apple-itunes-app",content:"app-id=1466064949"}),y?(0,i.jsx)("meta",{name:"description",content:y}):null,R?(0,i.jsxs)("title",{children:[" ",R," ",(null===R||void 0===R?void 0:R.includes("GMTM"))?null:"| GMTM"]}):null]}),T?(0,i.jsx)(p,{email:null===ne||void 0===ne?void 0:ne.email}):null,(0,i.jsx)(h.Z,{}),g?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x(),{src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"}),(0,i.jsx)(x(),{type:"text/javascript",dangerouslySetInnerHTML:{__html:"window.googletag = window.googletag || {cmd: []};"}})]}):null,(0,i.jsx)(de,{dark:_,useFrontOfficeLogo:r,stickyHeader:n,showBottomLine:b,onOmniClear:C,signout:te,type:null===ne||void 0===ne?void 0:ne.type,iOmniSearchValue:U,toggleDrawer:re,preFilledSignUp:k,isMobile:""}),q||q?(0,i.jsxs)("div",{className:"flex items-start ".concat(V?"":"max-w-8xl"," w-full mx-auto"),children:[q?(0,i.jsx)(ut,{session:ne}):null,D,Y?(0,i.jsx)(vt,{session:ne}):null]}):D,(0,i.jsx)("div",{className:"flex-grow"}),(null===ne||void 0===ne?void 0:ne.type)&gt;0&amp;&amp;ie&gt;500&amp;&amp;!X?(0,i.jsx)(lt,{}):null,M?null:(0,i.jsx)(ct,{mini:L})]}),(0,i.jsx)(v.default,{screenFull:!1,show:1==fe,onBlur:function(){return he(!1)},children:(0,i.jsxs)("div",{className:"w-full h-80 flex flex-row my-auto",children:[(0,i.jsx)("div",{className:"flex flex-col grow h-full w-1/5",children:(0,i.jsx)("div",{className:"flex text-md h-full m-auto items-center",children:ue&gt;0&amp;&amp;(0,i.jsx)(c.Z,{onClick:function(){return ve(ue-1)},className:"p-1 hover:bg-g-gray hover:bg-opacity-50 rounded-full cursor-pointer select-none w-8 h-8"})})}),(0,i.jsx)("div",{className:"flex flex-col h-full w-3/5",children:(0,i.jsx)("div",{className:"w-full h-full rounded flex justify-center overflow-hidden",children:(0,i.jsx)("img",{className:"object-contain m-auto h-full w-auto select-none",src:null===me||void 0===me?void 0:me[ue]})})}),(0,i.jsx)("div",{className:"flex flex-col h-full w-1/5",children:(0,i.jsx)("div",{className:"flex text-md h-full m-auto items-center",children:ue&lt;me.length-1&amp;&amp;(0,i.jsx)(u.Z,{className:"p-1 hover:bg-g-gray hover:bg-opacity-50 rounded-full cursor-pointer select-none w-8 h-8",onClick:function(){return ve(ue+1)}})})})]})}),(0,i.jsx)(we,{})]})})},ft=l.memo(mt)},64910:function(e,t,n){"use strict";n.d(t,{F$:function(){return c},Q5:function(){return u},qE:function(){return d}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(10952),l=n(54601),d=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)(s.fC,(0,i.Z)({ref:t,className:(0,l.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},a))}));d.displayName=s.fC.displayName;var c=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)(s.Ee,(0,i.Z)({ref:t,className:(0,l.cn)("aspect-square h-full w-full",n)},a))}));c.displayName=s.Ee.displayName;var u=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)(s.NY,(0,i.Z)({ref:t,className:(0,l.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",n)},a))}));u.displayName=s.NY.displayName},35972:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var i=n(26042),o=n(99534),r=n(85893),a=(n(67294),n(45139)),s=n(54601),l=(0,a.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){var t=e.className,n=e.variant,a=(0,o.Z)(e,["className","variant"]);return(0,r.jsx)("div",(0,i.Z)({className:(0,s.cn)(l({variant:n}),t)},a))}},56022:function(e,t,n){"use strict";n.d(t,{d:function(){return c},z:function(){return u}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(88426),l=n(45139),d=n(54601),c=(0,l.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary/75 border border-primary text-primary-foreground hover:bg-primary/33 hover:text-primary-foreground",black:"bg-black text-white hover:bg-black/75 border border-black",destructive:"bg-destructive/20 border border-destructive text-destructive hover:bg-destructive/90 hover:text-destructive-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-foreground underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),u=a.forwardRef((function(e,t){var n=e.className,a=e.variant,l=e.size,u=e.asChild,v=void 0!==u&amp;&amp;u,m=(0,o.Z)(e,["className","variant","size","asChild"]),f=v?s.g7:"button";return(0,r.jsx)(f,(0,i.Z)({className:(0,d.cn)(c({variant:a,size:l,className:n})),ref:t},m))}));u.displayName="Button"},49712:function(e,t,n){"use strict";n.d(t,{Ol:function(){return d},SZ:function(){return u},Zb:function(){return l},aY:function(){return v},eW:function(){return m},ll:function(){return c}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(54601),l=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("div",(0,i.Z)({ref:t,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",n)},a))}));l.displayName="Card";var d=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("div",(0,i.Z)({ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",n)},a))}));d.displayName="CardHeader";var c=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("h3",(0,i.Z)({ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",n)},a))}));c.displayName="CardTitle";var u=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("p",(0,i.Z)({ref:t,className:(0,s.cn)("text-sm text-muted-foreground",n)},a))}));u.displayName="CardDescription";var v=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("div",(0,i.Z)({ref:t,className:(0,s.cn)("p-6 pt-0",n)},a))}));v.displayName="CardContent";var m=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsx)("div",(0,i.Z)({ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",n)},a))}));m.displayName="CardFooter"},89650:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(26042),o=n(69396),r=n(99534),a=n(85893),s=n(67294),l=n(46069),d=n(13742),c=n(54601),u=s.forwardRef((function(e,t){var n=e.className,s=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.fC,(0,o.Z)((0,i.Z)({ref:t,className:(0,c.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-muted-foreground ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},s),{children:(0,a.jsx)(l.z$,{className:(0,c.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(d.Z,{className:"h-4 w-4"})})}))}));u.displayName=l.fC.displayName},47258:function(e,t,n){"use strict";n.d(t,{C$:function(){return p},Ct:function(){return _},TQ:function(){return x},Yj:function(){return w},c8:function(){return N},j:function(){return b},tb:function(){return j},uB:function(){return g},w_:function(){return y}});var i=n(26042),o=n(69396),r=n(85893),a=n(54601),s=n(87736),l=n(87764),d=n(13742),c=n(51771),u=n(65884),v=n(67294),m=n(47250),f=n(82171),h=n(89650),g=v.forwardRef((function(e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(m.yk,(0,o.Z)((0,i.Z)({},e),{children:null===e||void 0===e?void 0:e.children}))})})),x=v.forwardRef((function(e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(m.J2,(0,o.Z)((0,i.Z)({},e),{children:null===e||void 0===e?void 0:e.children}))})})),p=v.forwardRef((function(e){return(0,r.jsx)(m.xo,(0,o.Z)((0,i.Z)({asChild:!0},e),{children:null===e||void 0===e?void 0:e.children}))})),j=v.forwardRef((function(e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.h.Label,(0,o.Z)((0,i.Z)({},e),{className:(0,a.cn)("text-muted-foreground py-2 pl-2 font-semibold text-xs w-full",null===e||void 0===e?void 0:e.className),children:null===e||void 0===e?void 0:e.children}))})})),b=v.forwardRef((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.Z,{className:"w-4 h-4 absolute top-3 left-2 text-muted-foreground"}),(0,r.jsx)(s.h.Input,(0,i.Z)({placeholder:"Search...",className:(0,a.cn)("flex w-full h-10  rounded-md bg-background px-3 py-0 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none  disabled:cursor-not-allowed disabled:opacity-50","pl-8",e.className)},e))]}),(0,r.jsx)(c.Z,{})]})})),N=v.forwardRef((function(e){return(0,r.jsx)(s.h.Option,(0,o.Z)((0,i.Z)({},e),{children:(0,r.jsxs)("div",{variant:"ghost",className:(0,a.cn)("".concat((null===e||void 0===e?void 0:e.selected)&amp;&amp;!(null===e||void 0===e?void 0:e.isMulti)?"font-bold":""," w-full rounded-none truncate px-2 h-8 text-left flex items-center text-sm gap-2 hover:bg-accent hover:text-foreground cursor-pointer"),e.className),children:[(null===e||void 0===e?void 0:e.isMulti)?(0,r.jsx)(h.X,{checked:null===e||void 0===e?void 0:e.selected}):(0,r.jsx)(d.Z,{size:16,className:(null===e||void 0===e?void 0:e.selected)?"opacity-100":"opacity-0"}),null===e||void 0===e?void 0:e.children]})}))})),y=v.forwardRef((function(e){return(0,r.jsx)(u.x,{useFlexViewPort:!0,style:{maxHeight:"250px"},className:(0,a.cn)("w-full h-[100%] overflow-y-auto",null===e||void 0===e?void 0:e.className),children:(0,r.jsx)(s.h.Options,(0,o.Z)((0,i.Z)({static:!0},e),{children:null===e||void 0===e?void 0:e.children}))})})),w=v.forwardRef((function(e){return(0,r.jsx)(s.h.Options,{static:!0,children:(0,r.jsx)(f.t7,(0,o.Z)((0,i.Z)({},e),{children:null===e||void 0===e?void 0:e.children}))})})),_=s.h},76392:function(e,t,n){"use strict";n.d(t,{$N:function(){return j},Be:function(){return b},My:function(){return N},Vq:function(){return v},cN:function(){return p},cZ:function(){return g},fK:function(){return x},hg:function(){return m}});var i=n(26042),o=n(69396),r=n(99534),a=n(85893),s=n(67294),l=n(12854),d=n(41352),c=n(54601),u=n(56022),v=l.fC,m=l.xz,f=l.h_,h=(l.x8,s.forwardRef((function(e,t){var n=e.className,o=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.aV,(0,i.Z)({ref:t,className:(0,c.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},o))})));h.displayName=l.aV.displayName;var g=s.forwardRef((function(e,t){var n=e.className,s=e.children,u=(0,r.Z)(e,["className","children"]);return(0,a.jsxs)(f,{children:[(0,a.jsx)(h,{}),(0,a.jsxs)(l.VY,(0,o.Z)((0,i.Z)({ref:t,className:(0,c.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},u),{children:[s,(0,a.jsxs)(l.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(d.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}));g.displayName=l.VY.displayName;var x=function(e){var t=e.className,n=(0,r.Z)(e,["className"]);return(0,a.jsx)("div",(0,i.Z)({className:(0,c.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};x.displayName="DialogHeader";var p=function(e){var t=e.className,n=(0,r.Z)(e,["className"]);return(0,a.jsx)("div",(0,i.Z)({className:(0,c.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};p.displayName="DialogFooter";var j=s.forwardRef((function(e,t){var n=e.className,o=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.Dx,(0,i.Z)({ref:t,className:(0,c.cn)("text-lg font-semibold leading-none tracking-tight",n)},o))}));j.displayName=l.Dx.displayName;var b=s.forwardRef((function(e,t){var n=e.className,o=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.dk,(0,i.Z)({ref:t,className:(0,c.cn)("text-sm text-muted-foreground",n)},o))}));b.displayName=l.dk.displayName;var N=function(e){var t=e.children,n=e.className,i=e.disabled;return(0,a.jsx)(m,{disabled:i,asChild:!0,children:(0,a.jsx)(u.z,{disabled:i,className:(0,c.cn)("text-muted-foreground pl-0",n),variant:"link",children:t})})}},66313:function(e,t,n){"use strict";n.d(t,{$F:function(){return x},AW:function(){return p},Ju:function(){return b},VD:function(){return N},Xi:function(){return j},aw:function(){return w},fY:function(){return _},h_:function(){return g},mJ:function(){return y}});var i=n(26042),o=n(69396),r=n(99534),a=n(85893),s=n(67294),l=n(93133),d=n(64998),c=n(13742),u=n(50316),v=n(54601),m=n(62469),f=n(56022),h=n(76392),g=l.fC,x=l.xz;l.ZA,l.Uv,l.Tr,l.Ee;s.forwardRef((function(e,t){var n=e.className,s=e.inset,c=e.children,u=(0,r.Z)(e,["className","inset","children"]);return(0,a.jsxs)(l.fF,(0,o.Z)((0,i.Z)({ref:t,className:(0,v.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&amp;&amp;"pl-8",n)},u),{children:[c,(0,a.jsx)(d.Z,{className:"ml-auto h-4 w-4"})]}))})).displayName=l.fF.displayName,s.forwardRef((function(e,t){var n=e.className,o=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.tu,(0,i.Z)({ref:t,className:(0,v.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))})).displayName=l.tu.displayName;var p=s.forwardRef((function(e,t){var n=e.className,o=e.sideOffset,s=void 0===o?4:o,d=(0,r.Z)(e,["className","sideOffset"]);return(0,a.jsx)(l.Uv,{children:(0,a.jsx)(l.VY,(0,i.Z)({ref:t,sideOffset:s,className:(0,v.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},d))})}));p.displayName=l.VY.displayName;var j=s.forwardRef((function(e,t){var n=e.className,o=e.inset,s=(0,r.Z)(e,["className","inset"]);return(0,a.jsx)(l.ck,(0,i.Z)({ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&amp;&amp;"pl-8",n)},s))}));j.displayName=l.ck.displayName,s.forwardRef((function(e,t){var n=e.className,s=e.children,d=e.checked,u=(0,r.Z)(e,["className","children","checked"]);return(0,a.jsxs)(l.oC,(0,o.Z)((0,i.Z)({ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:d},u),{children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(l.wU,{children:(0,a.jsx)(c.Z,{className:"h-4 w-4"})})}),s]}))})).displayName=l.oC.displayName,s.forwardRef((function(e,t){var n=e.className,s=e.children,d=(0,r.Z)(e,["className","children"]);return(0,a.jsxs)(l.Rk,(0,o.Z)((0,i.Z)({ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},d),{children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(l.wU,{children:(0,a.jsx)(u.Z,{className:"h-2 w-2 fill-current"})})}),s]}))})).displayName=l.Rk.displayName;var b=s.forwardRef((function(e,t){var n=e.className,o=e.inset,s=(0,r.Z)(e,["className","inset"]);return(0,a.jsx)(l.__,(0,i.Z)({ref:t,className:(0,v.cn)("px-2 py-1.5 text-sm font-semibold",o&amp;&amp;"pl-8",n)},s))}));b.displayName=l.__.displayName;var N=s.forwardRef((function(e,t){var n=e.className,o=(0,r.Z)(e,["className"]);return(0,a.jsx)(l.Z0,(0,i.Z)({ref:t,className:(0,v.cn)("-mx-1 my-1 h-px bg-muted",n)},o))}));N.displayName=l.Z0.displayName;var y=function(e){var t=e.className,n=(0,r.Z)(e,["className"]);return(0,a.jsx)(x,{asChild:!0,children:(0,a.jsxs)(f.z,(0,o.Z)((0,i.Z)({variant:"ghost",className:(0,v.cn)("h-8 w-8 p-0",t)},n),{children:[(0,a.jsx)("span",{className:"sr-only",children:"Actions"}),(0,a.jsx)(m.nWS,{className:"h-4 w-4"})]}))})},w=function(e){var t=e.className,n=e.searchTutorialIndex,s=e.updateSearchTutorial,l=(e.onClick,e.ping,(0,r.Z)(e,["className","searchTutorialIndex","updateSearchTutorial","onClick","ping"]));return(0,a.jsx)(x,{asChild:!0,children:(0,a.jsxs)(f.z,(0,o.Z)((0,i.Z)({variant:"ghost",className:(0,v.cn)("h-8 w-8 p-0 relative",t),onPointerDown:function(e){6===n&amp;&amp;s&amp;&amp;s(7)}},l),{children:[(0,a.jsx)("span",{className:"sr-only",children:"Actions"}),(0,a.jsx)(m.AjK,{className:"h-4 w-4"}),6===n&amp;&amp;(0,a.jsxs)("span",{className:"absolute -right-1 -top-1 flex h-3 w-3",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-500 opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-red-500"})]})]}))})},_=function(e){var t=e.children,n=e.className,i=e.disabled;return(0,a.jsx)(h.hg,{asChild:!0,children:(0,a.jsx)(f.z,{disabled:i,variant:"ghost",className:(0,v.cn)("text-sm w-full text-left cursor-default justify-start font-normal px-2 py-2 h-7 rounded",n),children:t})})}},90144:function(e,t,n){"use strict";var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=function(e){var t,n,s=e.src,l=e.fallbackSrc,d=void 0===l?"https://cdn.gmtm.com/assets/gmtm-thumb-light.png":l,c=e.priority,u=void 0===c?"medium":c,v=e.lazy,m=void 0!==v&amp;&amp;v,f=e.alt,h=void 0===f?"":f,g=e.width,x=void 0===g?50:g,p=e.maxHeight,j=void 0===p?null:p,b=e.height,N=void 0===b?50:b,y=(e.sizes,e.srcset,e.className),w=(e.children,(0,o.Z)(e,["src","fallbackSrc","priority","lazy","alt","width","maxHeight","height","sizes","srcset","className","children"]));(0,a.useEffect)((function(){(null===document||void 0===document?void 0:document.lazyLoadInstance)&amp;&amp;document.lazyLoadInstance.update()}),[]);var _=(0,a.useState)("cached"),Z=_[0],k=_[1],S=(0,a.useState)(s),C=S[0],z=S[1],M=(0,a.useRef)();return(0,a.useEffect)((function(){z(s)}),[s]),(0,a.useEffect)((function(){var e=M.current;"errored"!==Z&amp;&amp;"loaded"!==Z&amp;&amp;e&amp;&amp;e.complete&amp;&amp;(0===e.naturalWidth?(z(d),k("errored")):k("loaded"))}),[null===M||void 0===M||null===(t=M.current)||void 0===t?void 0:t.complete,null===M||void 0===M||null===(n=M.current)||void 0===n?void 0:n.naturalWidth,Z]),(0,r.jsx)("img",{ref:M,alt:"loading"===Z?"":h,onError:function(){k("errored"),z(d)},fetchPriority:u,onAbort:function(){return k("aborted")},onEmptied:function(){return k("emptied")},onSuspend:function(){return k("suspended")},onStalled:function(){return k("stalled")},onLoadedMetadata:function(){return k("loaded-meta")},onLoadStart:function(){return k("loading")},onLoadedData:function(){return k("loaded")},onLoad:function(){return k("loaded")},loading:m?"lazy":"eager",width:x,height:N,style:(0,i.Z)({width:x,height:N,maxHeight:j},null===w||void 0===w?void 0:w.style),src:C,className:"".concat(y||""," ").concat("loading"===Z?"animate-pulse bg-g-lightGray":""," ").concat("errored"===Z?"bg-g-lightGray":""," h-full w-auto")})};t.Z=a.memo(s)},70257:function(e,t,n){"use strict";n.d(t,{II:function(){return d},Mj:function(){return c}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(54601),l=n(87764),d=(n(83780),a.forwardRef((function(e,t){var n=e.className,a=e.type,l=(0,o.Z)(e,["className","type"]);return(0,r.jsx)("input",(0,i.Z)({type:a,className:(0,s.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:t,onClick:function(e){"file"===a&amp;&amp;(e.target.value=null)}},l))})));d.displayName="Input";var c=a.forwardRef((function(e,t){var n=e.className,a=(0,o.Z)(e,["className"]);return(0,r.jsxs)("div",{className:"relative w-full max-w-md ",children:[(0,r.jsx)("div",{className:"absolute left-3 top-0 h-full flex items-center justify-center ",children:(0,r.jsx)(l.Z,{className:"h-4 w-4 text-muted-foreground"})}),(0,r.jsx)(d,(0,i.Z)({ref:t,type:"search",onKeyPress:function(e){"Enter"===e.key&amp;&amp;(null===a||void 0===a||a.onEnter(e.target.value))},value:null===a||void 0===a?void 0:a.value,onChange:null===a||void 0===a?void 0:a.onChange,variant:"search",className:(0,s.cn)("pl-8",n),placeholder:null===a||void 0===a?void 0:a.placeholder},a))]})}))},47250:function(e,t,n){"use strict";n.d(t,{J2:function(){return d},xo:function(){return c},yk:function(){return u}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(86419),l=n(54601),d=s.fC,c=s.xz,u=a.forwardRef((function(e,t){var n=e.className,a=e.container,d=e.align,c=void 0===d?"center":d,u=e.sideOffset,v=void 0===u?4:u,m=(0,o.Z)(e,["className","container","align","sideOffset"]);return(0,r.jsx)(s.h_,{container:a,children:(0,r.jsx)(s.VY,(0,i.Z)({ref:t,align:c,sideOffset:v,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},m))})}));u.displayName=s.VY.displayName},65884:function(e,t,n){"use strict";n.d(t,{B:function(){return u},x:function(){return c}});var i=n(26042),o=n(69396),r=n(99534),a=n(85893),s=n(67294),l=n(25443),d=n(54601),c=(n(96486),s.forwardRef((function(e,t){var n=e.className,s=(e.onScroll,e.children),c=e.viewPortAsChild,v=void 0!==c&amp;&amp;c,m=e.useFlexViewPort,f=void 0!==m&amp;&amp;m,h=(0,r.Z)(e,["className","onScroll","children","viewPortAsChild","useFlexViewPort"]);return(0,a.jsxs)(l.fC,(0,o.Z)((0,i.Z)({className:(0,d.cn)("relative overflow-hidden",n)},h),{children:[(0,a.jsx)(l.l_,{id:f?"scroll-area-viewport":null,ref:t,asChild:v,className:"h-full w-full flex flex-col rounded-[inherit]",style:{display:"flex"},children:s}),(0,a.jsx)(u,{}),(0,a.jsx)(l.Ns,{})]}))})));c.displayName=l.fC.displayName;var u=s.forwardRef((function(e,t){var n=e.className,s=e.orientation,c=void 0===s?"vertical":s,u=(0,r.Z)(e,["className","orientation"]);return(0,a.jsx)(l.gb,(0,o.Z)((0,i.Z)({ref:t,orientation:c,className:(0,d.cn)("flex touch-none select-none transition-colors","vertical"===c&amp;&amp;"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===c&amp;&amp;"h-2.5 flex-col border-t border-t-transparent p-[1px]",n)},u),{children:(0,a.jsx)(l.q4,{className:"relative flex-1 rounded-full bg-border"})}))}));u.displayName=l.gb.displayName},51771:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(12780),l=n(54601),d=a.forwardRef((function(e,t){var n=e.className,a=e.orientation,d=void 0===a?"horizontal":a,c=e.decorative,u=void 0===c||c,v=(0,o.Z)(e,["className","orientation","decorative"]);return(0,r.jsx)(s.f,(0,i.Z)({ref:t,decorative:u,orientation:d,className:(0,l.cn)("shrink-0 bg-border","horizontal"===d?"h-[1px] w-full":"h-full w-[1px]",n)},v))}));d.displayName=s.f.displayName},9309:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var i=n(26042),o=n(99534),r=n(85893),a=n(54601);function s(e){var t=e.className,n=(0,o.Z)(e,["className"]);return(0,r.jsx)("div",(0,i.Z)({className:(0,a.cn)("animate-pulse rounded-md bg-muted",t)},n))}},79693:function(e,t,n){"use strict";n.d(t,{_v:function(){return v},aJ:function(){return u},pn:function(){return d},u:function(){return c}});var i=n(26042),o=n(99534),r=n(85893),a=n(67294),s=n(66908),l=n(54601),d=s.zt,c=s.fC,u=s.xz,v=a.forwardRef((function(e,t){var n=e.className,a=e.sideOffset,d=void 0===a?4:a,c=(0,o.Z)(e,["className","sideOffset"]);return(0,r.jsx)(s.VY,(0,i.Z)({ref:t,sideOffset:d,className:(0,l.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},c))}));v.displayName=s.VY.displayName},72438:function(e,t,n){"use strict";n.d(t,{pm:function(){return g}});var i=n(40872),o=n(26042),r=n(69396),a=n(828),s=n(29815),l=n(67294),d=0;var c=new Map,u=function(e){if(!c.has(e)){var t=setTimeout((function(){c.delete(e),f({type:"REMOVE_TOAST",toastId:e})}),1e6);c.set(e,t)}},v=[],m={toasts:[]};function f(e){m=function(e,t){switch(t.type){case"ADD_TOAST":return(0,r.Z)((0,o.Z)({},e),{toasts:[t.toast].concat((0,s.Z)(e.toasts)).slice(0,1)});case"UPDATE_TOAST":return(0,r.Z)((0,o.Z)({},e),{toasts:e.toasts.map((function(e){return e.id===t.toast.id?(0,o.Z)({},e,t.toast):e}))});case"DISMISS_TOAST":var n=t.toastId;return n?u(n):e.toasts.forEach((function(e){u(e.id)})),(0,r.Z)((0,o.Z)({},e),{toasts:e.toasts.map((function(e){return e.id===n||void 0===n?(0,r.Z)((0,o.Z)({},e),{open:!1}):e}))});case"REMOVE_TOAST":return void 0===t.toastId?(0,r.Z)((0,o.Z)({},e),{toasts:[]}):(0,r.Z)((0,o.Z)({},e),{toasts:e.toasts.filter((function(e){return e.id!==t.toastId}))})}}(m,e),v.forEach((function(e){e(m)}))}function h(e){var t=(0,i.Z)({},e),n=(d=(d+1)%Number.MAX_SAFE_INTEGER).toString(),a=function(){return f({type:"DISMISS_TOAST",toastId:n})};return f({type:"ADD_TOAST",toast:(0,r.Z)((0,o.Z)({},t),{id:n,open:!0,onOpenChange:function(e){e||a()}})}),{id:n,dismiss:a,update:function(e){return f({type:"UPDATE_TOAST",toast:(0,r.Z)((0,o.Z)({},e),{id:n})})}}}function g(){var e=(0,a.Z)(l.useState(m),2),t=e[0],n=e[1];return l.useEffect((function(){return v.push(n),function(){var e=v.indexOf(n);e&gt;-1&amp;&amp;v.splice(e,1)}}),[t]),(0,r.Z)((0,o.Z)({},t),{toast:h,dismiss:function(e){return f({type:"DISMISS_TOAST",toastId:e})}})}},59299:function(e,t,n){"use strict";n.r(t),n.d(t,{FASTIFY_SCHEMA_TYPES:function(){return U},GmtmClient:function(){return R},ORGANIZATION_TYPES:function(){return K},arrayToCSV:function(){return D},arrayToSQLString:function(){return Y},asyncPrettyPrintResponse:function(){return T},asyncPrint:function(){return C},asyncPrintResponse:function(){return z},asyncPrintResponseData:function(){return M},asyncPrintResponseStatus:function(){return O},daysToMs:function(){return L},enquote:function(){return q},errHandler:function(){return k},flattenObjToArray:function(){return b},getRedisKey:function(){return w},hrsToMs:function(){return P},jsonToQS:function(){return H},logAnalytics:function(){return N},logThen:function(){return _},logThenAwait:function(){return Z},minsToMs:function(){return A},objToFastifySchema:function(){return W},objToJSONSchema:function(){return G},objToSQLWhereCondtions:function(){return p},objectToSQLVariablesString:function(){return $},reject:function(){return x},resolve:function(){return I},secsToMs:function(){return E},serverErrHandler:function(){return S},shortenError:function(){return g},shortenResponse:function(){return h},toDotQueries:function(){return y},toOptimizedSrc:function(){return B},toOptimizedUrl:function(){return V},toSQLDate:function(){return Q},toUpperCase:function(){return J}});var i=n(47568),o=n(14924),r=n(26042),a=n(69396),s=n(29815),l=n(94552),d=n(97582),c=n(9669),u=n(11227),v=n(11227)("GMTM:Utils"),m=u("Utils:error"),f=u("Utils:warn"),h=function(e){var t,n,i,o,r,a;return{results:null===e||void 0===e||null===(t=e.body)||void 0===t||null===(n=t.hits)||void 0===n?void 0:n.hits,searchTime:null===e||void 0===e||null===(i=e.body)||void 0===i?void 0:i.took,count:null===e||void 0===e||null===(o=e.body)||void 0===o||null===(r=o.hits)||void 0===r||null===(a=r.total)||void 0===a?void 0:a.value,status:null===e||void 0===e?void 0:e.statusCode}},g=function(e){return{name:null===e||void 0===e?void 0:e.name,body:e.meta?e.meta.body:null,status:e.meta?e.meta.statusCode:502}},x=function(e){return Promise.reject(e)},p=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};if("object"===typeof e)return e==={}?(f("empty object, will return no where condition"),""):"where ".concat(Object.keys(e).reduce((function(t,n){return t+"".concat(n.toLowerCase(),"=").concat(j(e[n])," and ")}),"").slice(0,-5));m("wrong type, this function only supports objects")},j=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:null;if(e){if("string"===typeof e)return'"'.concat(e,'"');if("object"===typeof e){var t=JSON.stringify(e),n=t.replace(/\'/g,'"');return'"'.concat(n,'"')}return e}m("missing value")},b=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};if(!e)throw new Error("Object is either null or empty",e);var t=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"";return e.concat(" ".concat(t)).trim().split(" ").join(".")},n=function(e){var i,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"",r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:[],a=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:"",s=a;return a+=" ".concat(o),Object.keys(e).forEach((function(o){return"object"!==typeof e[o]||Array.isArray(e[o])?(i=r).push.apply(i,["".concat(t(a,o)),Array.isArray(e[o])?JSON.stringify(e[o]):e[o]]):n(e[o],o,r,a)})),a=s,r},i=n(e);return i},N=function(){var e=(0,i.Z)((function(e){var t;return(0,d.__generator)(this,(function(n){return(t=(null===localStorage||void 0===localStorage?void 0:localStorage.getItem("analyticsEvents"))?JSON.parse(null===localStorage||void 0===localStorage?void 0:localStorage.getItem("analyticsEvents")):[]).push(e),localStorage.setItem("analyticsEvents",JSON.stringify(t)),[2]}))}));return function(t){return e.apply(this,arguments)}}(),y=function(e){var t=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"";return e.concat(" ".concat(t)).trim().split(" ").join(".")};return function e(n){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"",r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:[],a=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:"",s=a;return a+=" ".concat(i),Object.keys(n).forEach((function(i){return"object"!==typeof n[i]||Array.isArray(n[i])?r.push((0,o.Z)({},"".concat(t(a,i)),n[i])):e(n[i],i,r,a)})),a=s,r}(e)},w=function(e,t){return"".concat(e,":").concat(t)},_=function(e,t){return function(n){return e("[INFO] executing ".concat(t.name," with %O"),n),t.apply(void 0,(0,s.Z)(n))}},Z=function(e,t){return function(){var n=(0,i.Z)((function(n){return(0,d.__generator)(this,(function(i){switch(i.label){case 0:return e("[INFO] executing ".concat(t.name," with %O"),n),[4,t.apply(void 0,(0,s.Z)(n))];case 1:return[2,i.sent()]}}))}));return function(e){return n.apply(this,arguments)}}()},k=function(e){return function(t,n){return n&amp;&amp;e(n),e("%O",t),t}},S=function(e){return function(t,n,i){return e("Error: %O\nRequest: %O\nReply: %O",t,n,i),i.status(500).send({code:500,message:"Oh noo, somethings gone wrong, but don't worry the GMTM team is on it."})}},C=function(e){return function(t){return e("%O",t)}},z=function(e){return function(t){return e("Response: %O",t.response)}},M=function(e){return function(t){return e("Data: %O",t.response.data)}},O=function(e){return function(t){return e("Status: %s",t.response.httpReponse?t.response.httpReponse.statusCode:"No Response")}},T=function(e){return function(t){return e("Response: %O",(0,r.Z)((0,a.Z)((0,r.Z)({},t.response.data),{status:t.response.httpReponse?t.response.httpReponse.statusCode:"No Response"}),t.response.error))}},I=function(e){return Promise.resolve(e)},R=function(e){return{get:function(){var t=(0,i.Z)((function(t,n,i,o){return(0,d.__generator)(this,(function(a){switch(a.label){case 0:return e("[INFO] Performing -- GET: %s \nHeaders: %O\nBody: %O",t,n,i),[4,c.request((0,r.Z)({method:"get",url:t,headers:n,data:i},o))];case 1:return[2,a.sent()]}}))}));return function(e,n,i,o){return t.apply(this,arguments)}}(),getQuery:function(){var t=(0,i.Z)((function(t,n){var i,o,a=arguments;return(0,d.__generator)(this,(function(s){switch(s.label){case 0:return i=a.length&gt;2&amp;&amp;void 0!==a[2]?a[2]:"",o=a.length&gt;3?a[3]:void 0,e("[INFO] Performing -- GET: %s \nHeaders: %O",t+"?"+i,n),[4,c.request((0,r.Z)({method:"get",url:t+"?"+i,qs:i,headers:n},o))];case 1:return[2,s.sent()]}}))}));return function(e,n){return t.apply(this,arguments)}}(),post:function(){var t=(0,i.Z)((function(t,n,i,o){return(0,d.__generator)(this,(function(a){switch(a.label){case 0:return e("[INFO] Performing -- POST: %s \nHeaders: %O\nBody: %O",t,n,i),[4,c.request((0,r.Z)({method:"post",url:t,headers:n,data:i},o))];case 1:return[2,a.sent()]}}))}));return function(e,n,i,o){return t.apply(this,arguments)}}(),postQuery:function(){var t=(0,i.Z)((function(t,n){var i,o,a=arguments;return(0,d.__generator)(this,(function(s){switch(s.label){case 0:return i=a.length&gt;2&amp;&amp;void 0!==a[2]?a[2]:"",o=a.length&gt;3?a[3]:void 0,e("[INFO] Performing -- POST: %s \nHeaders: %O",t+"?"+i,n),[4,c.request((0,r.Z)({method:"post",url:t+"?"+i,qs:i,headers:n},o))];case 1:return[2,s.sent()]}}))}));return function(e,n){return t.apply(this,arguments)}}()}},E=function(e){return 1e3*e},A=function(e){return E(60*e)},P=function(e){return A(60*e)},L=function(e){return P(24*e)},F=function(e,t,n){return e+="".concat(t,n%2===0?"=":"&amp;")},H=function(e){return b(e).reduce(F,"?").slice(0,-1)},D=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];return e.toString().trim()},W=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"response",n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"200",i=(new RegExp(/\*$/,"g"),new RegExp(/\-$/,"g"),function(e){return Object.keys(e).reduce((function(t,n){return Array.isArray(e[n])?(0,a.Z)((0,r.Z)({},t),(0,o.Z)({},n,{type:"array",items:{type:(0,l.Z)(e[n][0])}})):"object"===typeof e[n]?(0,a.Z)((0,r.Z)({},t),(0,o.Z)({},n,{type:"object",properties:i(e[n])})):(0,a.Z)((0,r.Z)({},t),(0,o.Z)({},n,{type:(0,l.Z)(e[n])}))}),{})}),s=i(e);switch(t){case"response":if(!n)throw new Error("Missing Status for response type schema!");return{response:(0,o.Z)({},n,{type:"object",properties:s})};case"body":return{body:{type:"object",properties:s}};default:throw new Error('Unsupported schema type "'.concat(t,'"'))}},U={RESPONSE:"response",BODY:"body"},G=function(e){var t=function(e){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]&amp;&amp;arguments[2],o=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:"string";v("%O",n);var a={},s=[{type:o}];for(prop in n=(0,r.Z)({},n,i?{type:"array",items:s}:{type:"object",properties:a}),e)a[prop]="object"===typeof e[prop]?t(e,n,Array.isArray(e[prop]),Array.isArray(e[prop]?(0,l.Z)(e[prop][0]):void 0)):(0,l.Z)(e[prop]);return n};return t(e)},V=function(e,t,n){return"/"==e[0]&amp;&amp;(e=e.substring(1)),"".concat(e.replace("/"+e.split("/")[e.split("/").length-1],"").replace(/\//g,"+"),"/").concat(n,"/").concat(t,"/").concat(e.split("/")[e.split("/").length-1])},B=function(e){var t,n,i,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:300,r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"png";if(!(null===e||void 0===e?void 0:e.includes("cdn.gmtm.com")))return e;if(null===e||void 0===e?void 0:e.includes("cdn.gmtm.com/optimized"))return e;var a=null===(i=null===(n=null===(t=null===e||void 0===e?void 0:e.replace("cdn.gmtm.com",""))||void 0===t?void 0:t.replace("cdn.gmtm.com/optimized",""))||void 0===n?void 0:n.replace("http://",""))||void 0===i?void 0:i.replace("https://",""),s="https://cdn.gmtm.com/optimized/".concat(V(a,r,o));return s},q=function(e){return'"'.concat(e,'"')},J=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"";return e.toUpperCase()},Y=function(e){return e.map((function(e){return"string"===typeof e?q(e):e})).toString()},$=function(e){return Object.keys(e).reduce((function(t,n){return t+"".concat(n," = ").concat("string"===typeof e[n]?q(e[n]):e[n],", ")}),"").slice(0,-2)},Q=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:new Date,t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),o=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return"".concat(t,"-").concat(n+1,"-").concat(i," ").concat(o,"-").concat(r,"-").concat(a)},K=[{label:"Other",value:0},{label:"College",value:1},{label:"Highschool",value:2},{label:"Club/Recreation",value:3},{label:"Junior Highschool",value:4},{label:"Junior College",value:5},{label:"Semi-Pro",value:6},{label:"Professional",value:7}]},86719:function(e,t,n){"use strict";n(67294);var i=n(41488),o=n(8100),r=n(11227)("GMTM:UsePermissionsHook"),a="/permissions/queries";t.Z=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"";r("Fetching permissions... Guantanamo Bay");var t=function(){return e?[a,e]:null},n=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"/",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null;return i.v6.post(e,{sessionId:t})},s=(0,o.ZP)(t,n),l=s.data,d=s.error,c=!l&amp;&amp;!d;return{permissions:l,error:d,loading:c}}},10408:function(e,t,n){"use strict";var i=n(47568),o=n(97582),r=n(67294),a=n(41488),s=n(44593),l=n(43411),d=n(11227)("GMTM:UseVirtualsHook");t.Z=function(e){var t=e.sessionId,n=void 0===t?"":t,c=e.fallbackData,u=void 0===c?null:c,v=e.size,m=void 0===v?15:v,f=e.scrollThreshold,h=void 0===f?.7:f,g=e.searchText,x=void 0===g?"":g,p=e.eventType,j=void 0===p?null:p,b=e.published_only,N=void 0===b?null:b,y=e.newVirtuals,w=void 0!==y&amp;&amp;y,_=e.trending,Z=void 0!==_&amp;&amp;_,k=e.expiring,S=void 0!==k&amp;&amp;k,C=e.sportId,z=void 0===C?null:C,M=e.networkId,O=void 0===M?null:M,T=e.organizationId,I=void 0===T?null:T,R=(0,r.useState)(!1),E=R[0],A=R[1],P=(0,r.useState)(!1),L=P[0],F=P[1],H=(0,s.ZP)((function(e,t){if((null===t||void 0===t?void 0:t.length)&lt;m)return F(!0),null;var i=(0,a.UK)({searchText:x,event_type:j,published_only:N,new_virtuals:w,trending:Z,expiring:S,sport_id:z,organization_id:I,network_id:O,page:e+1,size:m});return["".concat("/virtuals/queries/combo").concat(i),n]}),(function(e,t){return a.v6.post(e,{sessionId:t})}),{fallbackData:u}),D=H.data,W=H.error,U=H.mutate,G=H.size,V=H.setSize,B=function(){return V(G+1)},q=!D&amp;&amp;!W,J=(0,l.Z)().scrollValues;return(0,r.useEffect)((function(){function e(){return(e=(0,i.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return!((null===J||void 0===J?void 0:J.top)&gt;h)||q||E||L?[3,2]:(d({scrollValues:J}),A(!0),[4,B()]);case 1:e.sent(),A(!1),e.label=2;case 2:return[2]}}))}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[null===J||void 0===J?void 0:J.top]),{data:D,error:W,mutate:U,loading:q,currentPage:G,fetching:E,isAtEnd:L}}},92204:function(e,t,n){"use strict";var i=n(67294);n(11227)("GMTM:Hook:UseBlur");t.Z=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:function(){return null};(0,i.useEffect)((function(){if(e.length&gt;0){return document.addEventListener("mouseup",(function(n){(null===e||void 0===e?void 0:e.reduce((function(e,t){var i;return(null===t||void 0===t?void 0:t.current)&amp;&amp;(null===t||void 0===t||null===(i=t.current)||void 0===i?void 0:i.contains(null===n||void 0===n?void 0:n.target))||e}),!1))||t(n)})),function(){document.removeEventListener("mouseup",t)}}return document.addEventListener("mouseup",(function(n){var i;return(null===e||void 0===e?void 0:e.current)&amp;&amp;!(null===e||void 0===e||null===(i=e.current)||void 0===i?void 0:i.contains(null===n||void 0===n?void 0:n.target))?t(n):null})),function(){document.removeEventListener("mouseup",t)}}),[e])}},40098:function(e,t,n){"use strict";n.d(t,{y:function(){return v}});var i=n(47568),o=n(26042),r=n(29815),a=n(97582),s=n(66611),l=n(67294),d=n(8100),c=n(41488),u=(n(11227)("GMTM:Hooks:useMessages"),function(e){var t=(0,l.useState)(),n=t[0],i=t[1],o=(0,l.useState)(!1),r=o[0],a=o[1];return(0,l.useEffect)((function(){n&amp;&amp;(r?n.play():n.pause())}),[r,n]),(0,l.useEffect)((function(){i(new Audio(e))}),[e]),(0,l.useEffect)((function(){if(n)return n.addEventListener("ended",(function(){return a(!1)})),function(){n.removeEventListener("ended",(function(){return a(!1)}))}}),[n]),{playing:r,toggle:function(){return a(!r)},play:function(){n&amp;&amp;n.play()},pause:function(){n&amp;&amp;n.pause()}}}),v=function(e){var t,n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null,v=(0,l.useState)(null),m=v[0],f=v[1],h=(0,l.useState)(""),g=h[0],x=h[1],p=(0,l.useState)(!1),j=p[0],b=p[1],N=(0,l.useState)([]),y=N[0],w=N[1],_=u("https://cdn.gmtm.com/assets/audio/gmtm_bell_double.mp3"),Z=(0,d.ZP)([null===e||void 0===e?void 0:e._id,"/conversations/by/member/queries"],(function(e,t){return c.v6.post(t,{sessionId:e})}),{refreshInterval:5e3,refreshWhenHidden:!0}),k=Z.data,S=Z.mutate,C=(0,d.ZP)([null===e||void 0===e?void 0:e._id,m,"fetch-conversation"],(function(e,t){return 0!==t&amp;&amp;null!==t?c.v6.post("/conversations/".concat(t,"/queries"),{sessionId:e}):null}),{refreshInterval:5e3,revalidateOnMount:!0,revalidateIfStale:!0,revalidateOnFocus:!0}),z=C.data,M=C.mutate,O=(C.error,function(e){w((function(t){return localStorage.setItem("messenger:pinned_conversations",JSON.stringify([e].concat((0,r.Z)(t)))),[e].concat((0,r.Z)(t))}))}),T=function(e){w((function(t){var n=null===t||void 0===t?void 0:t.filter((function(t){return t!==e}));return localStorage.setItem("messenger:pinned_conversations",JSON.stringify(n)),n}))};(0,l.useEffect)((function(){var e=localStorage.getItem("messenger:pinned_conversations"),t=e?JSON.parse(e):[];w(t)}),[]),(0,l.useEffect)((function(){}),[k]),(0,l.useEffect)((function(){}),[z]),(0,l.useEffect)((function(){}),[m]),(0,l.useEffect)((function(){null!==n&amp;&amp;f(n)}),[n]),(0,l.useEffect)((function(){var e;!k||j||m||0===n||null===n||(f(null===k||void 0===k||null===(e=k[0])||void 0===e?void 0:e.conversation_id),b(!0))}),[k,j]);var I=(0,l.useState)(),R=I[0],E=I[1],A=function(){var t=(0,i.Z)((function(t,n){var i,o,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return i=n||(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t;return null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id}))).concat([null===e||void 0===e?void 0:e.user_id]),o=(null===t||void 0===t?void 0:t.text)?{message_id:-1,conversation_id:-2,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:null===t||void 0===t?void 0:t.text,html:null===t||void 0===t?void 0:t.html,images:null===t||void 0===t?void 0:t.images},created_on:new Date,visibility:0}:{message_id:-1,conversation_id:-2,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:t},created_on:new Date,visibility:0},s={conversation_id:-2,members:(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t,n,i,o;return{user_id:null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id,avatar_uri:null===e||void 0===e||null===(n=e.value)||void 0===n?void 0:n.avatar_uri,first_name:null===e||void 0===e||null===(i=e.value)||void 0===i?void 0:i.first_name,last_name:null===e||void 0===e||null===(o=e.value)||void 0===o?void 0:o.last_name}}))).concat([{user_id:null===e||void 0===e?void 0:e.user_id,avatar_uri:null===e||void 0===e?void 0:e.avatar_uri,first_name:null===e||void 0===e?void 0:e.first_name,last_name:null===e||void 0===e?void 0:e.last_name}]),updated_on:new Date,created_on:new Date,last_message:o,messages:[o]},f(-2),S((function(e){return[s].concat((0,r.Z)(e))}),!1),[4,c.v6.post("/conversations",{sessionId:null===e||void 0===e?void 0:e._id,members:i})];case 1:return[2,a.sent()]}}))}));return function(e,n){return t.apply(this,arguments)}}(),P=function(){var t=(0,i.Z)((function(t){var n,i,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t;return null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id}))).concat([null===e||void 0===e?void 0:e.user_id]),i={message_id:-1,conversation_id:-2,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:t.text,html:t.html,images:t.images},created_on:new Date,visibility:0},o={conversation_id:-2,members:(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t,n,i,o;return{user_id:null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id,avatar_uri:null===e||void 0===e||null===(n=e.value)||void 0===n?void 0:n.avatar_uri,first_name:null===e||void 0===e||null===(i=e.value)||void 0===i?void 0:i.first_name,last_name:null===e||void 0===e||null===(o=e.value)||void 0===o?void 0:o.last_name}}))).concat([{user_id:null===e||void 0===e?void 0:e.user_id,avatar_uri:null===e||void 0===e?void 0:e.avatar_uri,first_name:null===e||void 0===e?void 0:e.first_name,last_name:null===e||void 0===e?void 0:e.last_name}]),updated_on:new Date,created_on:new Date,last_message:i,messages:[i]},f(-2),S((function(e){return[o].concat((0,r.Z)(e))}),!1),[4,c.v6.post("/conversations",{sessionId:null===e||void 0===e?void 0:e._id,members:n})];case 1:return[2,a.sent()]}}))}));return function(e){return t.apply(this,arguments)}}(),L=function(){var t=(0,i.Z)((function(t){var n,i,s,l,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return B((null===t||void 0===t?void 0:t.text.length)&gt;0?t.text:t),E([]),m&gt;0?(s=m,[3,3]):[3,1];case 1:return[4,A(t)];case 2:s=a.sent(),a.label=3;case 3:return i=s,l=(null===t||void 0===t?void 0:t.text)||(null===t||void 0===t||null===(n=t.images)||void 0===n?void 0:n.length)&gt;0?{message_id:-1,conversation_id:i,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:null===t||void 0===t?void 0:t.text,html:null===t||void 0===t?void 0:t.html,images:null===t||void 0===t?void 0:t.images},created_on:new Date,visibility:0}:{message_id:-1,conversation_id:i,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:t},created_on:new Date,visibility:0},d=m&gt;0?{conversation_id:i,messages:(0,r.Z)(H).concat([l])}:{conversation_id:i,members:(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t,n,i,o;return{user_id:null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id,avatar_uri:null===e||void 0===e||null===(n=e.value)||void 0===n?void 0:n.avatar_uri,first_name:null===e||void 0===e||null===(i=e.value)||void 0===i?void 0:i.first_name,last_name:null===e||void 0===e||null===(o=e.value)||void 0===o?void 0:o.last_name}}))).concat([{user_id:null===e||void 0===e?void 0:e.user_id,avatar_uri:null===e||void 0===e?void 0:e.avatar_uri,first_name:null===e||void 0===e?void 0:e.first_name,last_name:null===e||void 0===e?void 0:e.last_name}]),updated_on:new Date,created_on:new Date,last_message:l,messages:[l]},M((function(e){return(0,o.Z)({},e,d)}),!1),m&lt;0&amp;&amp;S((function(e){return[(0,o.Z)({},null===e||void 0===e?void 0:e[0],d)].concat((0,r.Z)(null===e||void 0===e?void 0:e.slice(1)))}),!1),f(i),[4,c.v6.post("/messages",{sessionId:null===e||void 0===e?void 0:e._id,conversation_id:i,payload:l.payload})];case 4:return a.sent(),M(),S(),[2]}}))}));return function(e){return t.apply(this,arguments)}}(),F=function(){var t=(0,i.Z)((function(t){var n,i,s,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return B(""),E([]),m&gt;0?(i=m,[3,3]):[3,1];case 1:return[4,P(t)];case 2:i=a.sent(),a.label=3;case 3:return s={message_id:-1,conversation_id:n=i,owner_id:null===e||void 0===e?void 0:e.user_id,status:0,type:0,payload:{message:t.text,html:t.html,images:t.images},created_on:new Date,visibility:0},l=m&gt;0?{conversation_id:n,messages:(0,r.Z)(H).concat([s])}:{conversation_id:n,members:(0,r.Z)(null===R||void 0===R?void 0:R.map((function(e){var t,n,i,o;return{user_id:null===e||void 0===e||null===(t=e.value)||void 0===t?void 0:t.user_id,avatar_uri:null===e||void 0===e||null===(n=e.value)||void 0===n?void 0:n.avatar_uri,first_name:null===e||void 0===e||null===(i=e.value)||void 0===i?void 0:i.first_name,last_name:null===e||void 0===e||null===(o=e.value)||void 0===o?void 0:o.last_name}}))).concat([{user_id:null===e||void 0===e?void 0:e.user_id,avatar_uri:null===e||void 0===e?void 0:e.avatar_uri,first_name:null===e||void 0===e?void 0:e.first_name,last_name:null===e||void 0===e?void 0:e.last_name}]),updated_on:new Date,created_on:new Date,last_message:s,messages:[s]},M((function(e){return(0,o.Z)({},e,l)}),!1),m&lt;0&amp;&amp;S((function(e){return[(0,o.Z)({},null===e||void 0===e?void 0:e[0],l)].concat((0,r.Z)(null===e||void 0===e?void 0:e.slice(1)))}),!1),f(n),[4,c.v6.post("/messages",{sessionId:null===e||void 0===e?void 0:e._id,conversation_id:n,payload:{message:t.text,html:t.html,images:t.images}})];case 4:return a.sent(),M(),S(),[2]}}))}));return function(e){return t.apply(this,arguments)}}(),H=z?null===z||void 0===z?void 0:z.messages:[],D=z?null===z||void 0===z?void 0:z.members:[],W=z?null===z||void 0===z?void 0:z.active_members:[],U=null===D||void 0===D?void 0:D.filter((function(t){return(null===t||void 0===t?void 0:t.user_id)!==(null===e||void 0===e?void 0:e.user_id)})),G=(0,l.useState)(""),V=G[0],B=G[1],q=new s.Z(k,["members.first_name","members.last_name","last_message.payload.message"],{sort:!0}),J=function(){f(-1)},Y=function(){var t,n;c.v6.post("/conversations/".concat(m,"/members/remove"),{sessionId:null===e||void 0===e?void 0:e._id,memberId:null===e||void 0===e?void 0:e.user_id}),S(null===k||void 0===k?void 0:k.filter((function(e){return(null===e||void 0===e?void 0:e.conversation_id)!==m})),!1),B(""),f(null===(t=null===k||void 0===k?void 0:k.filter((function(e){return(null===e||void 0===e?void 0:e.conversation_id)!==m})))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.conversation_id),E([])},$=null===q||void 0===q?void 0:q.search(g),Q=g?$:k;(0,l.useEffect)((function(){var e=sessionStorage.getItem("messenger_notification_index")?parseInt(sessionStorage.getItem("messenger_notification_index")):0,t=(null===k||void 0===k?void 0:k.length)&gt;0?null===k||void 0===k?void 0:k.reduce((function(e,t){return e+(null===t||void 0===t?void 0:t.num_unread_messages)}),0):0;t&gt;e&amp;&amp;(_.play(),sessionStorage.setItem("messenger_notification_index",t))}),[k]);var K=(null===k||void 0===k?void 0:k.length)&gt;0?null===(t=null===k||void 0===k?void 0:k.filter((function(e){return(null===e||void 0===e?void 0:e.num_unread_messages)&gt;0})))||void 0===t?void 0:t.length:0;return{pinnedConversations:y,setPinnedConversations:w,activeConversation:m,setActiveConversation:f,makeNewConversation:J,handleDeleteConversation:Y,messageText:V,setMessageText:B,searchText:g,setSearchText:x,newConversationMembers:R,setNewConversationMembers:E,activeMembers:W,members:D,membersSansOwner:U,conversation:z,conversations:Q,numConversationsWithUnreadMessages:K,pinConversation:O,unpinConversation:T,pushMessage:L,pushMessageObject:F}}},71482:function(e,t,n){"use strict";var i=n(47568),o=n(97582),r=n(34766),a=n.n(r),s=n(98891),l=n.n(s),d=n(67294),c=n(25934),u=n(11227)("GMTM:Hooks:useUpload"),v=new(l().CognitoIdentityCredentials)({IdentityPoolId:"us-east-1:2fdbfc2f-1fa5-40f9-9e7b-e684c7a525bc"});s.config.update({credentials:v,region:"us-east-1",maxRetries:3});var m=new(a())(s.config),f=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"";return e+"/"+(0,c.Z)()};t.Z=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2?arguments[2]:void 0,r=(0,d.useState)([]),a=(r[0],r[1],(0,d.useRef)()),s=(0,d.useState)(),l=s[0],c=s[1],v=function(){var r=(0,i.Z)((function(){var r,s,l,d,v,h=arguments;return(0,o.__generator)(this,(function(g){r=h.length&gt;0&amp;&amp;void 0!==h[0]?h[0]:null,u({uploadable:r});try{s=r||(null===a||void 0===a?void 0:a.current),l=f(e),d={Bucket:"gmtm",Body:s,Key:l,ACL:"bucket-owner-full-control",ContentType:null===s||void 0===s?void 0:s.type,ContentEncoding:"utf-8",CacheControl:"immutable,max-age=31536000,public"},u({S3params:d}),v=m.upload(d,function(){var e=(0,i.Z)((function(e,i){return(0,o.__generator)(this,(function(i){return e?(c(null),n(e)):(c(null),a.current=null,t(l)),[2]}))}));return function(t,n){return e.apply(this,arguments)}}()),v.on("httpUploadProgress",(function(e){return c(Math.round(e.loaded/e.total*100))}))}catch(x){n(x),c(null)}return[2]}))}));return function(){return r.apply(this,arguments)}}();return{fileRef:a,uploadToS3:v,uploadProgress:l}}},43411:function(e,t,n){"use strict";var i=n(67294),o=n(40632);n(11227)("GMTM:useScrollValuesHook");t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r=(0,i.useContext)(o.Z);return{scrollValues:r}}},34713:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var i=n(11163),o=n(67294),r=n(39137),a=n(11227)("GMTM:Hooks:useSession"),s=function(){var e=(0,i.useRouter)(),t=(0,o.useCallback)((function(){return e.push("/sign-out")}),[e]),n=(0,o.useContext)(r.Z),s=n.session,l=n.mutateSession,d=n.activeOrgId,c=n.mutateActiveOrgId,u=n.location,v=n.setLocation,m=n.isLoading;return a("useSession:",{hasSession:!!s,activeOrgId:d,location:!!u,isLoading:m}),{loading:m,signOut:t,session:s,sessionId:null===s||void 0===s?void 0:s._id,mutateSession:l,activeOrgId:d,mutateActiveOrgId:c,setLocation:v,location:u}}},39560:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var i=n(67294),o=function(){var e=(0,i.useState)({innerWidth:0,innerHeight:0}),t=e[0],n=e[1];return(0,i.useEffect)((function(){var e=function(){n({innerWidth:window.innerWidth,innerHeight:window.innerHeight})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),t}},45632:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(47568),o=n(97582),r=n(8100),a=n(54601),s=function(){var e=(0,i.Z)((function(e,t,n){var i,r;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch(e,{method:t,headers:{"Content-Type":"application/json","x-source":"gmtm.com"},body:n?null===JSON||void 0===JSON?void 0:JSON.stringify(n):null})];case 1:return[4,o.sent().json()];case 2:if((null===(i=o.sent())||void 0===i?void 0:i.statusCode)&gt;=400)throw new Error(null===i||void 0===i?void 0:i.message);return[2,i];case 3:return[2,{message:null===(r=o.sent())||void 0===r?void 0:r.message,code:400}];case 4:return[2]}}))}));return function(t,n,i){return e.apply(this,arguments)}}();function l(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"POST",i=arguments.length&gt;3?arguments[3]:void 0;if(null===e||void 0===e?void 0:e.includes(a.CT))throw new Error("useAPI uses a relative uri no need to supply ".concat(a.CT," - JS"));if(e&amp;&amp;!(null===e||void 0===e?void 0:e.startsWith("/")))throw new Error("useAPI routes must start with a / - JS");var o=e?"".concat(a.CT).concat(e):"";return(0,r.ZP)(o?[o,n,t]:null,s,i)}},20372:function(e,t,n){"use strict";var i=n(67294);t.Z=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:400,n=(0,i.useState)(e),o=n[0],r=n[1];return(0,i.useEffect)((function(){var n=setTimeout((function(){r(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}},67024:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var i=n(47568),o=n(97582),r=n(44593),a=function(){var e=(0,i.Z)((function(e){var t,n,i,r,a=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:t=a.length&gt;1&amp;&amp;void 0!==a[1]?a[1]:"POST",n=a.length&gt;2?a[2]:void 0,o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(e,{method:t,headers:{"Content-Type":"application/json","x-source":"gmtm.com"},body:n?null===JSON||void 0===JSON?void 0:JSON.stringify(n):null})];case 2:return[4,o.sent().json()];case 3:if((null===(i=o.sent())||void 0===i?void 0:i.statusCode)&gt;=40)throw new Error(null===i||void 0===i?void 0:i.message);return[2,i];case 4:return[2,{message:null===(r=o.sent())||void 0===r?void 0:r.message,code:400}];case 5:return[2]}}))}));return function(t){return e.apply(this,arguments)}}();function s(e,t){var n,i;if(!e)throw new Error("useInfiniteAPI requires a function to generate the paginated urls");var o=(0,r.ZP)(e,a,t),s=o.data,l=o.mutate,d=o.size,c=o.setSize,u=o.isValidating,v=(o.error,!s||d&gt;0&amp;&amp;s&amp;&amp;"undefined"===typeof s[d-1]),m=0===(null===s||void 0===s||null===(n=s[0])||void 0===n?void 0:n.length);return{data:s,mutate:l,size:d,setSize:c,isLoadingMore:v,isEmpty:m,isReachingEnd:m||s&amp;&amp;(null===(i=s[s.length-1])||void 0===i?void 0:i.length)&lt;d,isValidating:u}}},54601:function(e,t,n){"use strict";n.d(t,{CT:function(){return f},Cq:function(){return d},JJ:function(){return p},SL:function(){return l},__:function(){return c},bl:function(){return g},cn:function(){return v},kJ:function(){return u},p6:function(){return j}});var i=n(47568),o=n(26042),r=n(97582),a=n(90512),s=n(98388),l=function(e){switch(e=null===e||void 0===e?void 0:e.toLowerCase()){case"kneeling power ball toss (6 lb ball)":return"Power Ball Toss";case"1600 meter run":return"1600m";case"ncaa eligibility number":return"NCAA #";case"225 pound bench press":return"225 Bench";case"maximal block touch":return"Max Block Touch";case"qb takeover precision challenge":return"QB Takeover";case"40 yard sprint":case"40 yard dash":return"40 yd.";case"passing percentage":return"Pass %";case"blake bortles bucket toss":return"Bortles Bucket Toss";case"defense average":return"D. Avg.";case"defense forced fumbles":return"Forced Fumbles";case"defense fumbles recovered":return"Fumbles Rec.";case"passing touchdowns":return"Passing TDs";case"passing interceptions":return"Passing INTs";case"3-cone drill submission":return"3-Cone";case"hand size":return"Hand";case"arm length":return"Arm";case"vertical":return"Vert.";case"pancake blocks":return"Pancakes";case"tackles for loss":return"TFL";case"defense sack":return"D. Sack";case"defense interceptions":return"D. INT.";case"rivals.com stars":return"rivals \u2605";case"20 yard shuttle":return"20 yd. shuttle";case"athlete height":return"Height";case"athlete weight":return"Weight";case"1 rep max squat":return"1RM Squat";case"1-hand reach":return"Reach";default:return e}},d=function(e){switch(e){case"Football (American)":return"Football";case"Olympic Bobsled / Skeleton":return"Bobsled";default:return e}},c=function(e){switch(e){case"3RM back squat":return"3RM B. Sqt.";case"vertical jump":return"Vert.";case"height":return"Ht.";case"weight":return"Wt.";default:return e}},u=function(e){switch(e=null===e||void 0===e?void 0:e.toLowerCase()){case"null":return"";case"mm:ss.00":case"time (mm:ss.00)":return"mm:ss";case"height":case"inches":return"in";case"feet":case"feet and inches":return"ft";case"pounds":return"lbs";case"repetitions":return"reps";case"seconds":return"sec";case"minutes":return"min";case"miles":return"mi";case"yards":return"yd";case"kilometers":return"km";case"kilograms":return"kg";case"grams":return"g";case"centimeters":return"cm";case"millimeters":return"mm";case"meters":return"m";case"ounces":return"oz";case"degrees":return"\xb0";case"stars":return"\u2605";case"per minute":return"/min";default:return e}};function v(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];return(0,s.m6)((0,a.W)(t))}var m=function(){var e,t,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};return null===(t=null===(e=null===Object||void 0===Object?void 0:Object.keys(n))||void 0===e?void 0:e.filter((function(e){return null===n||void 0===n?void 0:n[e]})))||void 0===t?void 0:t.reduce((function(e,t,i){return"".concat(e).concat(0===i?"?".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t])):"&amp;".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t])))}),"")},f="https://api.gmtm.com/v2",h=function(){var e=(0,i.Z)((function(e){return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e.json()];case 1:return[2,t.sent()];case 2:return t.sent(),[2,{message:"Response was not valid JSON and so could not decode",code:500}];case 3:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),g={baseUrl:f,get:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"/",t=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:null;return fetch("".concat(f).concat(e).concat(m(t)),(0,o.Z)({headers:(0,o.Z)({"x-source":"gmtm.com"},null===n||void 0===n?void 0:n.headers)},n)).then(h)},post:(0,i.Z)((function(){var e,t,n,i,a=arguments;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return e=a.length&gt;0&amp;&amp;void 0!==a[0]?a[0]:"/",t=a.length&gt;1?a[1]:void 0,n=a.length&gt;2?a[2]:void 0,[4,fetch("".concat(f).concat(e),(0,o.Z)({method:"POST",body:JSON.stringify(t),headers:(0,o.Z)({"x-source":"gmtm.com","Content-Type":"application/json"},null===n||void 0===n?void 0:n.headers)},n))];case 1:return(i=r.sent()).ok?[4,i.json()]:[3,3];case 2:return[2,r.sent()];case 3:return[4,i.json()];case 4:return[2,r.sent()];case 5:return[2]}}))})),put:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"/",t=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2?arguments[2]:void 0;return fetch("".concat(f).concat(e),(0,o.Z)({method:"PUT",body:JSON.stringify(t),headers:(0,o.Z)({"x-source":"gmtm.com","Content-Type":"application/json"},null===n||void 0===n?void 0:n.headers)},n)).then(h)},patch:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"/",t=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2?arguments[2]:void 0;return fetch("".concat(f).concat(e),(0,o.Z)({method:"PATCH",body:JSON.stringify(t),headers:(0,o.Z)({"x-source":"gmtm.com","Content-Type":"application/json"},null===n||void 0===n?void 0:n.headers)},n)).then(h)},delete:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"/",t=arguments.length&gt;1?arguments[1]:void 0;return fetch("".concat(f).concat(e),(0,o.Z)({method:"DELETE"},t))}},x=function(e,t,n){return"/"==(null===e||void 0===e?void 0:e[0])&amp;&amp;(e=e.substring(1)),"".concat(e.replace("/"+e.split("/")[e.split("/").length-1],"").replace(/\//g,"+"),"/").concat(n,"/").concat(t,"/").concat(e.split("/")[e.split("/").length-1])},p=function(e){var t,n,i,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:300,r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"png";if(!(null===e||void 0===e?void 0:e.includes("cdn.gmtm.com")))return e;if(null===e||void 0===e?void 0:e.includes("cdn.gmtm.com/optimized"))return e;var a=null===(i=null===(n=null===(t=null===e||void 0===e?void 0:e.replace("cdn.gmtm.com",""))||void 0===t?void 0:t.replace("cdn.gmtm.com/optimized",""))||void 0===n?void 0:n.replace("http://",""))||void 0===i?void 0:i.replace("https://",""),s="https://cdn.gmtm.com/optimized/".concat(x(a,r,o));return s},j=function(e){var t=new Date(e),n=""+((null===t||void 0===t?void 0:t.getMonth())+1),i=""+(null===t||void 0===t?void 0:t.getDate()),o=null===t||void 0===t?void 0:t.getFullYear();return n.length&lt;2&amp;&amp;(n="0"+n),i.length&lt;2&amp;&amp;(i="0"+i),[n,i,o].join("/")}},96076:function(e,t,n){"use strict";n.d(t,{Gh:function(){return u},Mn:function(){return h},NJ:function(){return c},Q7:function(){return p},Ui:function(){return x},a3:function(){return g},gG:function(){return m},ig:function(){return f},zc:function(){return v}});var i=n(85893),o=n(91090),r=n(55458),a=n(81516),s=n(98944),l=n(18302),d=n(78757),c={private:0,gmtm_coaches_only:1,public:2,select_networks:3,network_coaches_only:4,campaign_coaches_only:5,private_network_only:7},u={ADMIN:1,MANAGER:2,VIEWER:3,COACH:4,PLAYER:5,AUTHOR:6,CONTRIBUTOR:7,OWNER:9},v=[{label:"Admin",value:1},{label:"Manager",value:2},{label:"Coach",value:4},{label:"Viewer",value:3}],m=[{label:"Recreational",value:0},{label:"Club",value:1},{label:"Junior Varsity",value:2},{label:"Varsity",value:3},{label:"Junior College",value:4},{label:"College",value:5},{label:"Professional League",value:6}],f=["private","gmtm_coaches_only","public","select_networks","network_coaches_only","campaign_coaches_only"],h=["private","GMTM coaches only","public","campaign coaches only"],g=[c.private,c.gmtm_coaches_only,c.public,c.select_networks,c.network_coaches_only,c.campaign_coaches_only],x=(c.select_networks,c.network_coaches_only,c.private,c.gmtm_coaches_only,c.public,{private:(0,i.jsx)(a.Z,{}),gmtm_coaches_only:(0,i.jsx)(s.Z,{}),public:(0,i.jsx)(o.Z,{}),select_networks:(0,i.jsx)(l.Z,{}),network_coaches_only:(0,i.jsx)(d.Z,{}),campaign_coaches_only:(0,i.jsx)(r.Z,{}),private_network_only:(0,i.jsx)(a.Z,{})}),p="/img/gmtm-thumb.svg"},74368:function(e,t,n){"use strict";n.d(t,{Ej:function(){return u},HL:function(){return m},Ix:function(){return c},Jb:function(){return v},Jn:function(){return d},uA:function(){return l}});var i=n(54601),o=(n(11227)("GMTM:Utils"),new RegExp(/(\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*)/g)),r=new RegExp(/^(([^&lt;&gt;()\[\]\\.,;:\s@"]+(\.[^&lt;&gt;()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/g),a=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&amp;=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&amp;=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&amp;;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/g),s=n(76826),l=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:200;if(!e)return"";var n=e.substring(0,t).split(" ");return n.pop(),"".concat(n.join(" ").trim(),"...")},d=function(e){var t=Math.floor((new Date-e)/1e3),n=t/31536e3;return t=Math.abs(t),n&gt;1?1==(n=Math.floor(n))?n+" year":n+" years":(n=t/2592e3)&gt;1?1==(n=Math.floor(n))?n+" month":n+" months":(n=t/86400)&gt;1?1==(n=Math.floor(n))?n+" day":n+" days":(n=t/3600)&gt;1?1==(n=Math.floor(n))?n+" hour":n+" hours":(n=t/60)&lt;0?"0 seconds":n&gt;1?1==(n=Math.floor(n))?n+" minute":n+" minutes":1==(n=Math.floor(n))?n+" second":n+" seconds"},c=function(e,t,n,o){var r,a,s="".concat(null===n||void 0===n?void 0:n.toFixed(2)," ").concat(t?(0,i.kJ)(t):"");if("time (hh:mm:ss)"===t){n=null===n||void 0===n?void 0:n.toString();var l=parseInt(null===n||void 0===n?void 0:n.slice(0,2)),d=parseInt(null===n||void 0===n?void 0:n.slice(2,4)),c=parseFloat(null===n||void 0===n?void 0:n.slice(4));return"".concat(l,":").concat(d,":").concat(c&lt;10?"0":"").concat(c)}if(o){if(("cm"==t||"centimeters"==t||"Centimeters (cm)"==t)&amp;&amp;o){var u,v;if(-1!==(null===(u=null===e||void 0===e?void 0:e.toLowerCase())||void 0===u?void 0:u.indexOf("height"))){var m=.393701*n,f=Math.floor(m/12),h=Math.floor(m%12);return"".concat(f,"'").concat(h,'"')}return"".concat(null===(v=.393701*n)||void 0===v?void 0:v.toFixed(2)," in")}var g,x;if(("meters"==t||"m"==t)&amp;&amp;o)return"".concat(null===(g=3.28084*n)||void 0===g?void 0:g.toFixed(2)," feet");if(("kg"==t||"Kilograms"==t)&amp;&amp;o)return"".concat(null===(x=2.20462*n)||void 0===x?void 0:x.toFixed(2)," lbs")}else{var p,j,b,N;if(("in"==t||"inches"==t)&amp;&amp;!o)return"".concat(null===(p=2.54*n)||void 0===p?void 0:p.toFixed(2)," cm");if(("feet"==t||"ft"==t)&amp;&amp;!o)return"".concat(null===(j=.3048*n)||void 0===j?void 0:j.toFixed(2)," meters");if("yards"==t&amp;&amp;!o)return"".concat(null===(b=.9144*n)||void 0===b?void 0:b.toFixed(2)," meters");if(("lbs"==t||"pounds"==t)&amp;&amp;!o)return"".concat(null===(N=.453592*n)||void 0===N?void 0:N.toFixed(2)," kg")}if(-1!==(null===(r=null===e||void 0===e?void 0:e.toLowerCase())||void 0===r?void 0:r.indexOf("height"))&amp;&amp;o){var y=Math.floor(n/12),w=n%12;return"".concat(y,"'").concat(w?w.toFixed(0):w,'"')}return-1!==(null===(a=null===e||void 0===e?void 0:e.toLowerCase())||void 0===a?void 0:a.indexOf("weight"))&amp;&amp;o?"".concat(n," lbs."):s},u=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",t="";try{var n=null===e||void 0===e?void 0:e.replace(/&lt;[^&gt;]*&gt;/gi,"");try{t=decodeURIComponent(n)}catch(f){t=n}var i=null===t||void 0===t?void 0:t.replace(/\%/gi,""),o=null===i||void 0===i?void 0:i.replace(/(&amp;.+;)/gi,""),r=o.toLowerCase(),a=null===r||void 0===r?void 0:r.replace(/\./gi,"-"),l=null===a||void 0===a?void 0:a.replace(/[\u2013\u2014 ]/gi,"-"),d=s.remove(l),c=null===d||void 0===d?void 0:d.replace(/\xd7/gi,"X"),u=null===c||void 0===c?void 0:c.replace(/[^\w\d\-\_]/gi,""),v=null===u||void 0===u?void 0:u.replace(/(-{2,})/gi,"-"),m=null===v||void 0===v?void 0:v.replace(/^(-)|(-)$/,"");return m}catch(h){return e}},v=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"feed";return(null===e||void 0===e?void 0:e.user_id)&amp;&amp;(null===e||void 0===e?void 0:e.first_name)&amp;&amp;(null===e||void 0===e?void 0:e.last_name)?"/athletes/".concat(null===e||void 0===e?void 0:e.user_id,"/").concat(u("".concat(null===e||void 0===e?void 0:e.first_name," ").concat(null===e||void 0===e?void 0:e.last_name)),"/").concat(t):""},m=function(e){if(!e)return e;var t=e.toString().replace(a,(function(e){var t=r.test(e)?"mailto:".concat(e):e,n="www."===e.substring(0,4)?"https://".concat(e):t;return'&lt;a href="'.concat(n,'" class="text-foreground/50" target="_blank" rel="noreferrer"&gt;').concat(e,"&lt;/a&gt;")})).replace(o,(function(e){return'&lt;a href="tel:'.concat(e,'"&gt;').concat(e,"&lt;/a&gt;")}));return"".concat(t)}},28022:function(){}}]);</pre></body></html>