PageSourceSearch

https://digitalpool.com/static/js/641.d6124b98.chunk.js

js digitalpool.com collected 2026-10-03 22:27:45 UTC 94,612 bytes, 23 lines download raw bytes

1(globalThis.webpackChunkdigitalpool_antd=globalThis.webpackChunkdigitalpool_antd||[]).push([[641],{1733:(e,t,s)=>{"use strict";s.d(t,{A:()=>B});var n=s(9950),a=s(16673),i=s(12853),r=s(87094),o=s(41988),l=s(76455),c=s(41182),d=s(94772),u=s(9898),g=s(77028),m=s(80801),h=s(44414);const{SubMenu:p}=g.A;function f(e){const{theme:t,onSelected:s,user:n}=e,a=n&&n.friend_requests_aggregate&&n.friend_requests_aggregate.aggregate&&n.friend_requests_aggregate.aggregate.count,i=[{label:"Feeds",key:"feeds"},{label:"Friendships",key:"friendships",subMenu:[{label:`Friends (${(n&&n.friends1_aggregate&&n.friends1_aggregate.aggregate&&n.friends1_aggregate.aggregate.count)+(n&&n.friends2_aggregate&&n.friends2_aggregate.aggregate&&n.friends2_aggregate.aggregate.count)})`,key:"friends"},{label:`Requests (${a})`,key:"friend-requests"}]},{label:"About",key:"about",subMenu:[{label:"Biography",key:"biography"},{label:"Photos",key:"photos"}]},{label:"Videos",key:"videos"},{label:"Lessons",key:"lessons"},{label:"Shop",key:"shop",subMenu:[{label:"Items",key:"items"}]},{label:"Sponsors",key:"sponsors"}];return(0,h.jsx)("div",{style:{width:"100%",marginTop:4,marginBottom:6},children:(0,h.jsx)(g.A,{onClick:s,defaultSelectedKeys:["feeds"],defaultOpenKeys:["friendships"],mode:"inline",theme:t,style:{width:"100%",border:"none"},children:i.map(e=>e.subMenu?(0,h.jsx)(p,{title:(0,h.jsxs)("span",{children:[e.icon&&(0,h.jsx)(m.A,{type:e.icon}),(0,h.jsx)("span",{children:e.label})]}),children:e.subMenu.map(e=>(0,h.jsx)(g.A.Item,{children:e.label},e.key))},e.key):(0,h.jsxs)(g.A.Item,{children:[e.icon&&(0,h.jsx)(m.A,{type:e.icon}),(0,h.jsx)("span",{children:e.label})]},e.key))})})}var x=s(37755),y=s(52193),j=s(59727),A=s(48538),_=s(38107),v=s(17535),b=s(50820),w=s(37740),S=s(94826),C=s(79378),k=s(97124),R=s(4159),P=s.n(R);const{Title:T,Text:E}=i.A,I={};const N=(0,a.y)(function(e){const{authState:t,user:s}=e,n=(0,k.Ay)(),[a,i]=x.A.useModal(),[r]=(0,w.n)(v.YN),[o]=(0,w.n)(v.DE),[l]=(0,w.n)(v.T2),[d]=(0,w.n)(v.n7),[u]=(0,w.n)(v.st);function g(e){a.confirm({title:"Are you sure you want to deny this friend request?",content:"This action cannot be undone.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Deny",onOk(){d({variables:{to_user_id:s.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:_.lR,variables:{slug:s.slug}},{query:_.iE,variables:{to_user_id:t&&t.user&&t.user.id}}]}).then(e=>{console.log(e),n.success(`Friend request removed for ${s.first_name} ${s.last_name}`)}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?n.error("You are already friends with this user."):n.error(e&&e.message||JSON.stringify(e)),console.log(e)})},onCancel(){}})}return(0,h.jsxs)(h.Fragment,{children:[i,(0,h.jsxs)(c.A,{children:[(0,h.jsx)(T,{level:3,children:"Friend requests"}),(0,h.jsx)(b.X,{query:_.iE,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{to_user_id:t&&t.user&&t.user.id},onCompleted:e=>{},children:a=>{let{loading:i,error:l,data:c}=a;if(i)return(0,h.jsx)(S.A,{});if(l)return(0,h.jsxs)("div",{style:I.container,children:["Error: ",l.message]});if(c&&!c.friend_requests)return(0,h.jsx)("div",{children:"No friend requests found"});if(c&&0===c.friend_requests.length)return(0,h.jsx)("div",{children:"No friend requests found"});const u=c.friend_requests;return(0,h.jsx)(y.Ay,{className:"hover-list",dataSource:u,renderItem:a=>{const i=a.from_user;return(0,h.jsxs)(y.Ay.Item,{style:{borderRadius:10},children:[(0,h.jsx)(y.Ay.Item.Meta,{avatar:(0,h.jsx)("div",{className:"gradient-border",children:(0,h.jsx)(j.A,{size:50,src:i?i&&i.photoURL||i&&i.avatar:e.authState&&e.authState.user&&e.authState.user.photoURL,children:(0,h.jsx)(C.A,{style:{fontSize:50,lineHeight:"60px",color:"#000"}})})}),onClick:()=>{e.history.push(`/${i.slug}`)},title:i?`${i.first_name} ${i.last_name}`:"",description:P()(i.created_at).fromNow()}),(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,h.jsx)(A.Ay,{type:"primary",size:"large",onClick:()=>{!function(e){const a=[e,s.id].sort((e,t)=>e-t);r({variables:{objects:[{user1_id:a[0],user2_id:a[1]}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[]}).then(a=>{console.log(a),n.success("Friend request approved"),o({variables:{objects:[{name:"Friend Added",action:"ADD_FRIEND",type:"REDIRECT_LINK",title:"Friend Added",de
1scription:`You are now friends with ${s.first_name} ${s.last_name}`,user_id:e,data:{redirect_url:`/${s.slug}`,friend_id:s.id,slug:s.id}}]}}).then(e=>{console.log(e)}).catch(e=>{console.log(e)}),d({variables:{to_user_id:s.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:_.lR,variables:{slug:s.slug}},{query:_.iE,variables:{to_user_id:t&&t.user&&t.user.id}}]}).then(e=>{console.log(e)}).catch(e=>(console.log(e),e))}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?n.error("You are already friends with this user."):n.error(e&&e.message||JSON.stringify(e)),console.log(e)})}(i.id)},children:"Accept"}),(0,h.jsx)(A.Ay,{type:"danger",ghost:!0,size:"large",onClick:()=>{g(i.id)},children:"Deny"})]})]},i.id)}})}})]})]})});var O=s(33642);const{Title:q,Text:z}=i.A,$={};const F=(0,a.y)(function(e){const{authState:t,user:s}=e,n=(0,k.Ay)(),[a,i]=x.A.useModal(),[r]=(0,w.n)(v.T2);function o(e){a.confirm({title:"Are you sure you want to delete this friend?",content:"This action cannot be undone.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Delete",onOk(){!function(e){r({variables:{user_id:e},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:_.lR,variables:{slug:s.slug}},{query:_.m$,variables:{user_id:t&&t.user&&t.user.id}}]}).then(e=>{console.log(e),n.success("Friend request denied")}).catch(e=>(console.log(e),n.info("There was an error",e),e))}(e)},onCancel(){}})}return(0,h.jsxs)(O.A,{children:[i,(0,h.jsxs)(c.A,{children:[(0,h.jsx)(q,{level:3,children:"Friends"}),(0,h.jsx)(b.X,{query:_.m$,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{user_id:t&&t.user&&t.user.id},onCompleted:e=>{console.log(e)},children:t=>{let{loading:n,error:a,data:i}=t;if(n)return(0,h.jsx)(S.A,{});if(a)return(0,h.jsxs)("div",{style:$.container,children:["Error: ",a.message]});if(i&&!i.friends)return(0,h.jsx)("div",{children:"No friends found"});if(i&&0===i.friends.length)return(0,h.jsx)("div",{children:"No friends found"});const r=i.friends;return(0,h.jsx)(y.Ay,{className:"hover-list",dataSource:r,renderItem:(t,n)=>{let a;return t.user1.id!==s.id?a=t.user1:t.user2.id!==s.id&&(a=t.user2),(0,h.jsxs)(y.Ay.Item,{style:{borderRadius:10},children:[(0,h.jsx)(y.Ay.Item.Meta,{avatar:(0,h.jsx)("div",{className:"gradient-border",children:(0,h.jsx)(j.A,{size:50,src:a&&a.avatar,children:(0,h.jsx)(C.A,{style:{fontSize:50,lineHeight:"60px",color:"#000"}})})}),onClick:()=>{e.history.push(`/${a.slug}`)},title:a?`${a.first_name} ${a.last_name}`:"",description:P()(t.created_at).fromNow()}),(0,h.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,h.jsx)(A.Ay,{type:"danger",ghost:!0,size:"large",onClick:()=>{o(a.id)},children:"Remove"})})]},n)}})}})]})]})});var U=s(19248);const{Title:D,Text:L}=i.A;const B=(0,a.y)(function(e){const{user:t}=e,[s,i]=(0,n.useState)({key:"feeds"});return(0,h.jsxs)(n.Fragment,{children:[(0,h.jsxs)(l.mg,{children:[(0,h.jsxs)("title",{children:[t.first_name," ",t.last_name," | DigitalPool"]}),(0,h.jsx)("meta",{name:"description",content:`Pro site admin for ${t.first_name} ${t.last_name}`}),(0,h.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,h.jsx)("meta",{name:"twitter:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,h.jsx)("meta",{name:"twitter:description",content:`Pro site admin for ${t.first_name} ${t.last_name}`}),(0,h.jsx)("meta",{name:"twitter:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,h.jsx)("meta",{property:"og:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,h.jsx)("meta",{property:"og:description",content:`Pro site admin for ${t.first_name} ${t.last_name}`}),(0,h.jsx)("meta",{property:"og:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,h.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/admin`}),(0,h.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,h.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,h.jsx)(u.A,{children:(0,h.jsx)(d.A,{padding:"20px 40px",children:(0,h.jsxs)(r.A,{gutter:24,justify:"center",type:"flex",children:[(0,h.jsx)(o.A,{xs:24,sm:4,children:(0,h.jsx)(c.A,{bodyStyle:{padding:0},children:(0,h.jsx)(f,{onSelected:function(e){i(e)},user:t})})}),(0,h.jsx)(o.A,{xs:24,sm:20,children:s&&"friend-requests"===s.key?(0,h.jsx)(a.qh,{exact:!0,path:U.JC.PROFILE_PRO_ADM
1IN.FRIEND_REQUESTS,render:s=>(0,h.jsx)(N,{user:t,...s,...e})}):"friends"===s.key?(0,h.jsx)(a.qh,{exact:!0,path:U.JC.PROFILE_PRO_ADMIN.FRIENDS,render:s=>(0,h.jsx)(F,{user:t,...s,...e})}):(0,h.jsxs)(c.A,{children:[(0,h.jsx)(D,{level:3,children:s&&s.key}),(0,h.jsx)(L,{children:"Content goes here"})]})})]})})})]})})},5939:(e,t,s)=>{"use strict";s.d(t,{A:()=>w});var n=s(9950),a=s(80801),i=s(77028),r=s(12853),o=s(37740),l=s(17535),c=s(38107),d=s(31598),u=s(24513),g=s(78077),m=s(28689),h=(s(26558),s(97124)),p=s(40197),f=s.n(p),x=s(41397),y=s.n(x),j=s(44414);const{SubMenu:A}=i.A,{Title:_,Text:v}=r.A,b={icon:{marginRight:10},active:{transition:"all 250ms ease"},inactive:{filter:"grayscale(100%)",opacity:.6,transition:"all 250ms ease"},menuItem:{height:50,display:"flex",alignItems:"center",margin:0},menuItemActive:{height:50,display:"flex",alignItems:"center",margin:0,backgroundColor:"#0b1d34",boxShadow:"0px 2px 10px rgba(0,0,0,0.7)"}};function w(e){const{authState:t,user:s}=e,[r,p]=(0,n.useState)(!1),[x]=(0,o.n)(l.vu),[A]=(0,o.n)(l.se),_=(0,h.Ay)(),v=window.location.pathname,w=v.split("/"),S=["feed","activity","videos"],[C,k]=(0,n.useState)();(0,n.useEffect)(()=>{let e=y().includes(S,w[w.length-1])?w[w.length-1]:y().includes(S,w[w.length-2])?w[w.length-2]:y().includes(S,w[w.length-3])?w[w.length-3]:y().includes(S,w[w.length-4])?w[w.length-4]:y().includes(S,w[w.length-5])?w[w.length-5]:y().includes(S,w[w.length-6])?w[w.length-6]:y().includes(S,w[w.length-7])?w[w.length-7]:"feed";k(e)},[v,w]);return(0,j.jsxs)(i.A,{defaultOpenKeys:["feed"],selectedKeys:[C],style:{border:"none"},children:[(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push(`/${s.slug}/feed`)},children:[(0,j.jsx)(m.A,{style:b.icon})," Social feed"]},"feed"),(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push(`/${s.slug}/activity`)},children:[(0,j.jsx)(d.A,{style:b.icon})," Activity & stats"]},"activity"),(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push(`/${s.slug}/videos`)},children:[(0,j.jsx)(g.A,{style:b.icon})," Videos"]},"videos"),s.player&&s.player.id?(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push(`/players/${s.player.name_slug}`)},children:[(0,j.jsx)(a.A,{type:"eye",style:b.icon})," Player profile"]},"account"):(0,j.jsxs)(i.A.Item,{onClick:()=>{(e=>{console.log("add player",e),p(!0);const t=`${e.first_name} ${e.last_name}`,s=f()(t,{replacement:"-",remove:/[*+~.,()'"#!:/@]/g,lower:!0});x({variables:{objects:[{name:t,name_slug:s,...e.aliases&&{aliases:e.aliases},...e.properties&&{properties:e.properties},...e.image_large&&{image_large:e.image_large},...e.image_small&&{image_small:e.image_small},...e.country&&{country:e.country},...e.city&&{city:e.city},...e.region&&{city:e.region},...e.gender&&{gender:e.gender},...e.id&&{user_id:e.id},...e.fargo_id&&{fargo_id:parseInt(e.fargo_id)},...e.fargo_readable_id&&{fargo_readable_id:parseInt(e.fargo_readable_id)},...e.fargo_effective_rating&&{fargo_effective_rating:e.fargo_effective_rating}}]}}).then(s=>{console.log(s);const n=s.data.insert_players.returning[0];e.id?A({variables:{id:e.id,changes:{player_id:n.id}},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:c.lR,variables:{slug:e.slug}}]}).then(e=>{console.log(e),p(!1),_.success("Use record successfully updated")}).catch(e=>{console.log(e),p(!1),_.error("There was an error",JSON.stringify(e.message))}):(console.log(e),p(!1),_.success(`Player record for ${t} successfully added`))}).catch(e=>{console.log(e),p(!1),_.error("There was an error",e)})})(s)},children:[(0,j.jsx)(a.A,{type:"user-add",style:b.icon})," Add player record"]},"account"),t&&t.user&&t.user.id===s.id&&(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push("/settings/profile")},children:[(0,j.jsx)(u.A,{style:b.icon})," Edit profile"]},"profile"),t&&t.user&&"admin"===t.user.role&&(0,j.jsx)(n.Fragment,{children:s.account_disabled&&!0===s.account_disabled?(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push("/settings/profile")},danger:!0,children:[(0,j.jsx)(a.A,{type:"unlock",style:b.icon})," Restore account"]},"password"):(0,j.jsxs)(i.A.Item,{onClick:()=>{e.history.push("/settings/profile")},danger:!0,children:[(0,j.jsx)(a.A,{type:"lock",style:b.icon})," Disable account"]},"password")})]})}},10459:(e,t,s)=>{"use strict";s.d(t,{A:()=>b});var n=s(9950),a=s(93047),i=s(16673),r=s(48538),o=s(41988),l=s(37755),c=s(87094),d=s(12853),u=(s(41182),s(94772),s(9898),s(97028),s(94826)),g=s(12024),m=(s(76455),s(17535)),h=s(38107),p=s(37740),f=s(50820),x=s(45383),y=s(9388),j=s(97124),A=s(44414);const{Title:_,Text:v}=d.A;const b=(0,i.y)(function(e){const{authState:t,match:s,theme:i,user:d}=e,_=(0,j.Ay)(),[v,b]=l.A.useModal(),w=s&&s.params&&s.params.slug&&!0===isNaN(s.params.slug)?s.params.slug:null,S=s&&s.params&&s.params.post&&parseInt(s.params.post),{breakpoint:C,maxWidth:k,minWidth:R}=(0,x.Ay)(y.K),[P]=(0,p.n)(m.ps);console.log(e);const T={headerImg:{height:150,overflow:"hidden",backgroundColor:"dark"===i.name?"#05040b":"#cfe4ff"}};function E(e){v.confirm({title:"Are you sure you want to delete this post?",content:"This action will permanently remove the post and any comments.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Delete",onOk(){!function(e){P({variables:{id:e.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:h.Hs,variables:{user_id:e.user.id}}]}).then(e=>{console.log(e),_.success("Post deleted")}
1).catch(e=>{console.log(e),_.info("There was an error",e)})}(e)},onCancel(){}})}return(0,A.jsxs)(n.Fragment,{children:[b,(0,A.jsx)(c.A,{gutter:24,justify:"center",type:"flex",children:(0,A.jsx)(o.A,{xs:24,sm:23,xl:18,style:{paddingTop:0,paddingBottom:0},children:(0,A.jsxs)(c.A,{gutter:24,justify:"center",children:[(0,A.jsx)(o.A,{xs:24,children:(0,A.jsx)(f.X,{query:h.Pv,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{id:S},onCompleted:async e=>{console.log(e)},children:t=>{let{loading:s,error:a,data:i}=t;if(s)return(0,A.jsx)(u.A,{});if(a)return(0,A.jsxs)("div",{style:T.container,children:["Error: ",a.message]});if(i&&!i.posts)return(0,A.jsx)("div",{children:"No posts found"});if(i&&0===i.posts.length)return(0,A.jsx)("div",{children:"No posts found"});const r=i.posts&&i.posts[0];return(0,A.jsx)(n.Fragment,{children:(0,A.jsx)(g.A,{post:r,user:r.user,onDelete:e=>E(e),...e})})}})}),(0,A.jsx)(o.A,{xs:24,align:"center",children:(0,A.jsx)(a.N_,{to:`/${w}/feed`,children:(0,A.jsx)(r.Ay,{type:"primary",size:"large",children:"View all posts"})})})]})})})]})})},12024:(e,t,s)=>{"use strict";s.d(t,{A:()=>te});var n=s(9950),a=s(12853),i=s(82056),r=s(59727),o=s(22748),l=s(48538),c=s(80801),d=s(94826),u=s(38107),g=s(50820),m=s(76455),h=s(37755),p=s(33642),f=s(31972),x=s(93047),y=s(16673),j=s(4159),A=s.n(j),_=s(61467),v=s(3123),b=s(50677),w=s(13577),S=s(85112),C=s(29714),k=s(79378),R=s(17535),P=s(37740),T=s(98258),E=s(97124),I=s(44414);const{TextArea:N}=v.p;const O=(0,y.y)(function(e){const{authState:t,user:s,post:a,comment:i,parentId:o}=e,l=(0,E.Ay)(),[c,d]=(0,n.useState)([]),[g,m]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),[f,x]=(0,n.useState)(""),[y]=(0,P.n)(R.g3),j=(0,n.useRef)(),A=C.Ik().shape({message:C.Yj().required("Message is a required field")});return(0,I.jsx)("div",{className:"feed-comment",children:(0,I.jsx)(_.l1,{innerRef:j,onSubmit:(e,s)=>{!function(e,s){console.log({values:e,actions:s}),m(!0),l.info("Adding comment..."),y({variables:{objects:[{message:e.message,user_id:t&&t.user&&t.user.id,post_id:a.id,...o&&{parent_id:o}}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.d8,variables:{post_id:a.id}}]}).then(e=>{s.setSubmitting(!1),s.resetForm(),console.log(e),m(!1),l.success("Comment added")}).catch(e=>{m(!1),s.setSubmitting(!1),l.error(e&&e.message||JSON.stringify(e)),console.log(e)})}(e,s)},validationSchema:A,enableReinitialize:!0,initialValues:{message:""},children:t=>{let{values:s,errors:n,touched:a,handleChange:i,handleBlur:o,handleSubmit:l,isSubmitting:c}=t;return(0,I.jsx)(b.l,{onSubmit:l,layout:"vertical",children:(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,I.jsx)("div",{style:{marginRight:15},children:(0,I.jsx)(r.A,{size:30,src:e.authState&&e.authState.user&&(e.authState.user.avatar||e.authState.user.photoURL),children:(0,I.jsx)(k.A,{style:{fontSize:40,lineHeight:"60px",color:"#000"}})})}),(0,I.jsx)(w.e,{name:"message",style:{width:"100%"},children:(0,I.jsx)(v.p,{name:"message",size:"large",placeholder:"Add your comment here...",onChange:e=>{!function(e){const t=e.target.selectionStart,s=e.target;window.requestAnimationFrame(()=>{s.selectionStart=t,s.selectionEnd=t}),x(e.target.value)}(e)},addonAfter:(0,I.jsx)(T.A,{text:f,buttonType:"text",buttonSize:"small",onSetText:e=>{j.current.setValues({message:e}),x(e)}})})}),(0,I.jsx)(S.b,{type:"primary",ghost:!0,size:"large",loading:g,style:{marginLeft:10},children:(0,I.jsx)("i",{className:"icon ion-md-send",style:{fontSize:20}})})]})})}})})});var q=s(76363),z=s(73181),$=s.n(z);function F(e){const{authState:t,user:s,post:a,comment:i}=e,r=(0,E.Ay)(),[d,g]=(0,n.useState)(i.likes_aggregate&&i.likes_aggregate.aggregate&&i.likes_aggregate.aggregate.count||0),[m]=(0,P.n)(R.q1),[h]=(0,P.n)(R.pN),p=(0,q.IT)(u.df,{variables:{user_id:t&&t.user&&t.user.id,post_id:a.id,comment_id:i.id}}),f=p&&p.data&&p.data.post_likes;return(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(o.A,{title:f&&f.length>0?"Unlike":"Like",placement:"bottom",children:(0,I.jsx)(l.Ay,{type:"text",shape:"circle",onClick:()=>{f&&f.length>0?function(e){h({variables:{post_id:a.id,user_id:t&&t.user&&t.user.id,comment_id:e.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.df,variables:{post_id:a.id,user_id:t&&t.user&&t.user.id,comment_id:e.id}},{query:u.CF,variables:{post_id:a.id,comment_id:e.id}}]}).then(e=>{console.log(e),g(d-1),r.success("Comment unliked")}).catch(e=>(console.log(e),r.info("There was an error",e),e))}(i):function(e){m({variables:{objects:[{post_id:a.id,user_id:t&&t.user&&t.user.id,comment_id:e.id}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.df,variables:{post_id:a.id,user_id:t&&t.user&&t.user.id,comment_id:e.id}},{query:u.CF,variables:{post_id:a.id,comment_id:e.id}}]}).then(e=>{console.log(e),g(d+1),r.success("Comment liked")}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?r.error("You already liked this comment."):r.error(e&&e.message||JSON.stringify(e)),console.log(e)})}(i)},children:(0,I.jsx)(c.A,{type:"heart",theme:f&&f.length>0?"filled":"outlined"})})}),(0,I.jsxs)("span",{children:[d," ",$()("Like",d)]})]})}const U=(0,y.y)(function e(t){const{authState:s,user:a,post:i,comment:l}
1=t,c=(0,E.Ay)(),[d,g]=h.A.useModal(),[m,y]=(0,n.useState)(!1),[j,_]=(0,n.useState)(),[v]=(0,P.n)(R.tN),b=l.likes_aggregate&&l.likes_aggregate.aggregate&&l.likes_aggregate.aggregate.count||0,w=(l.children||[]).map((t,n)=>(0,I.jsx)(e,{authState:s,user:a,post:i,comment:t,type:"child"},t.id));function S(e){!function(e){d.confirm({title:"Are you sure you want to delete this comment?",content:"This action wil delete the comment and any sub comments.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Delete",onOk(){!async function(e){c.info("Deleting comment..."),v({variables:{id:e},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.Hs,variables:{user_id:a.id}},{query:u.d8,variables:{post_id:i.id}}]}).then(e=>{console.log(e),c.success("Comment deleted")}).catch(e=>{console.log(e),c.info("There was an error",e)})}(e)},onCancel(){}})}(e)}const C=[(0,I.jsx)("span",{children:s&&s.user&&s.user.id?(0,I.jsx)(F,{...t}):(0,I.jsxs)("span",{style:{paddingLeft:4},children:[b," ",$()("Like",b)]})},"comment-basic-like"),(0,I.jsx)("span",{children:l.children&&s&&s.user&&s.user.id&&(0,I.jsx)("span",{style:{paddingLeft:4},onClick:()=>{y(!0),_(l.id)},children:"Reply"})},"comment-reply"),(0,I.jsx)("span",{children:s&&s.user&&(s.user.id===i.user_id||s.user.id===l.user_id)&&(0,I.jsx)("span",{style:{paddingLeft:4},onClick:()=>{S(l.id)},children:"Delete"})},"comment-delete")];return(0,I.jsxs)(p.A,{children:[g,(0,I.jsxs)(f.A,{actions:C,author:(0,I.jsxs)(x.N_,{to:`/${l.user.slug}`,children:[l.user.first_name," ",l.user.last_name]}),avatar:l.user.avatar?(0,I.jsx)(r.A,{src:l.user.avatar,alt:"User"}):(0,I.jsx)(r.A,{style:{color:"#fff",backgroundColor:"#1890ff"},children:l.user.first_name&&l.user.last_name?`${l.user.first_name.slice(0,1)}${l.user.last_name.slice(0,1)}`:"?"}),content:(0,I.jsx)("p",{children:l.message}),datetime:(0,I.jsx)(o.A,{title:A()(l.created_at).format("lll"),children:(0,I.jsx)("span",{children:A()(l.created_at).fromNow()})}),children:[!0===m&&j===l.id&&s&&s.user&&s.user.id&&(0,I.jsx)(O,{user:a,post:i,comment:l,parentId:l.id,...t}),w]})]})});var D=s(81658);function L(e){const{authState:t,user:s,post:a}=e,i=(0,E.Ay)(),[r,d]=(0,n.useState)(e.likes||0),[g]=(0,P.n)(R.sb),[m]=(0,P.n)(R.Zu),h=(0,q.IT)(u.HB,{variables:{user_id:t&&t.user&&t.user.id,post_id:a.id}}),p=h&&h.data&&h.data.post_likes;return(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(o.A,{title:p&&p.length>0?"Unlike":"Like",placement:"bottom",children:(0,I.jsx)(l.Ay,{type:"text",shape:"circle",onClick:()=>{p&&p.length>0?m({variables:{post_id:a.id,user_id:t&&t.user&&t.user.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.HB,variables:{post_id:a.id,user_id:t&&t.user&&t.user.id}},{query:u.SI,variables:{post_id:a.id}}]}).then(e=>{console.log(e),d(r-1),i.success("Post unliked")}).catch(e=>(console.log(e),i.info("There was an error",e),e)):g({variables:{objects:[{post_id:a.id,user_id:t&&t.user&&t.user.id}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.HB,variables:{post_id:a.id,user_id:t&&t.user&&t.user.id}},{query:u.SI,variables:{post_id:a.id}}]}).then(e=>{console.log(e),d(r+1),i.success("Post liked")}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?i.error("You already liked this post."):i.error(e&&e.message||JSON.stringify(e)),console.log(e)})},children:(0,I.jsx)(c.A,{type:"heart",theme:p&&p.length>0?"filled":"outlined"})})}),(0,I.jsxs)("span",{style:{cursor:"auto"},children:[r," ",$()("Like",r)]})]})}var B=s(33521),M=s(24034),Q=s(34288),H=s(4298),Y=s(14664),X=s(36875),W=s(59215);function J(e){const{shareUrl:t,user:s,post:a,modalVisible:i,onOk:r,onCancel:o}=e,c=(0,E.Ay)(),d=a&&`${a.message}`,u="#digitalpool";return console.log(a),console.log(t),(0,I.jsxs)(n.Fragment,{children:[(0,I.jsxs)(m.mg,{children:[(0,I.jsxs)("title",{children:[s.first_name," ",s.last_name," | DigitalPool"]}),(0,I.jsx)("meta",{name:"description",content:a.message}),(0,I.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,I.jsx)("meta",{name:"twitter:title",content:`${s.first_name} ${s.last_name} | DigitalPool`}),(0,I.jsx)("meta",{name:"twitter:description",content:a.message}),(0,I.jsx)("meta",{name:"twitter:image",content:a.image_url||"https://digitalpool.com/images/fb-image.png"}),(0,I.jsx)("meta",{property:"og:title",content:`${s.first_name} ${s.last_name} | DigitalPool`}),(0,I.jsx)("meta",{property:"og:description",content:a.message}),(0,I.jsx)("meta",{property:"og:image",content:a.image_url||"https://digitalpool.com/images/fb-image.png"}),(0,I.jsx)("meta",{property:"og:url",content:t}),(0,I.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,I.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,I.jsx)("meta",{property:"og:type",content:"website"}),(0,I.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,I.jsx)(h.A,{title:"Share this post",open:i,onOk:r,onCancel:o,centered:!0,transitionName:"",okText:"Copy",bodyStyle:{padding:20},maskTransitionName:"",destroyOnClose:!0,footer:[(0,I.jsx)(l.Ay,{onClick:o,children:"Close"},"back")],children:(0,I.jsxs)("div",{children:[(0,I.jsx)(M.A,{onShareWindowClose:()=>{console.log("close email share")},url:t,quote:d,hashtag:u,className:"email-share-button",children:(0,I.jsx)(Q.A,{size:48,round:!0})}),(0,I.jsx)(H.A,{onShareWindowClose:()=>{console.log("close fb share")},url:t,quote:d,hashtag:u,className:"facebook-share-button",style:{marginLeft:10},children:(0,I.jsx)(Y.A,{size:48,round:!0})}),(0,I.jsx)(X.A,{onShareWindowClose:()=>{console.log("close twitter share")},url:t,quote:d,title:d,hashtag:u,className:"twitter-share-button",style:{marginLeft:10},children:(0,I.jsx)(W.A,{size:48,round:!0})}),(0,I.jsx)(B.A,{value:t,size:"large",addonAfter:(0,I.jsx)(l.Ay,{type:"link",size:"small",onClick:()=>{navigator.clipboard.writeText(t),c.success("URL copied to clipboard.")},children:"COPY"}),style:{marginTop:10}})]})})]})}var K=s(85093);function V(e){const{authState:t,user:s,post:a}
1=e,[i,r]=(0,n.useState)(a.post_shares_aggregate&&a.post_shares_aggregate.aggregate&&a.post_shares_aggregate.aggregate.count||0),d=window.location.href.includes("feed")?`${window.location.href}/${a.id}`:`${window.location.href}/feed/${a.id}`,[u,g]=(0,n.useState)(!1);return(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(o.A,{title:"Share",children:(0,I.jsx)(l.Ay,{type:"text",shape:"circle",size:"large",style:{marginLeft:5},onClick:()=>{g(!0)},children:(0,I.jsx)(c.A,{type:"share-alt",theme:"outlined",style:{fontSize:18}})})}),(0,I.jsx)(K.A,{url:d,children:e=>(0,I.jsxs)("span",{style:{cursor:"auto"},children:[e," ",$()("Share",e)," 0"]})}),(0,I.jsx)(J,{shareUrl:d,user:s,post:a,modalVisible:u,onOk:()=>{g(!1)},onCancel:()=>{g(!1)}})]})}const{Title:G,Text:Z}=a.A,ee={};function te(e){const{authState:t,user:s,post:a,onDelete:h,onEditSelected:p}=e,f=a.post_likes_aggregate&&a.post_likes_aggregate.aggregate&&a.post_likes_aggregate.aggregate.count||0,[x,y]=(a.post_shares_aggregate&&a.post_shares_aggregate.aggregate&&a.post_shares_aggregate.aggregate.count,(0,n.useState)(null)),j=a.post_comments_aggregate&&a.post_comments_aggregate.aggregate&&a.post_comments_aggregate.aggregate.count||0;return(0,I.jsxs)("div",{children:[(0,I.jsxs)(m.mg,{children:[(0,I.jsxs)("title",{children:[s.first_name," ",s.last_name," | DigitalPool"]}),(0,I.jsx)("meta",{name:"description",content:a.message}),(0,I.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,I.jsx)("meta",{name:"twitter:title",content:`${s.first_name} ${s.last_name} | DigitalPool`}),(0,I.jsx)("meta",{name:"twitter:description",content:a.message}),(0,I.jsx)("meta",{name:"twitter:image",content:a.image_url||"https://digitalpool.com/images/fb-image.png"}),(0,I.jsx)("meta",{property:"og:title",content:`${s.first_name} ${s.last_name} | DigitalPool`}),(0,I.jsx)("meta",{property:"og:description",content:a.message}),(0,I.jsx)("meta",{property:"og:image",content:a.image_url||"https://digitalpool.com/images/fb-image.png"}),(0,I.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${s.slug}/feed/${a.id}`}),(0,I.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,I.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,I.jsx)("meta",{property:"og:type",content:"website"}),(0,I.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,I.jsxs)(i.A,{title:(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,I.jsx)("div",{style:{marginRight:10,marginTop:10,marginBottom:10},children:(0,I.jsx)("div",{className:"gradient-border",children:(0,I.jsx)(r.A,{size:45,src:s?s&&s.photoURL||s&&s.avatar:e.authState&&e.authState.user&&e.authState.user.photoURL,children:(0,I.jsx)(k.A,{style:{fontSize:50,lineHeight:"60px",color:"#000"}})})})}),(0,I.jsxs)("div",{children:[(0,I.jsx)(G,{level:4,style:{marginBottom:0,fontSize:18},children:s&&`${s.first_name} ${s.last_name}`}),(0,I.jsx)(Z,{type:"secondary",style:{fontSize:14},children:(0,I.jsx)(o.A,{title:A()().format("YYYY-MM-DD HH:mm:ss"),children:(0,I.jsx)("span",{children:A()(a.created_at).fromNow()})})})]})]}),(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[t&&t.user&&t.user.id===s.id&&(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,I.jsx)(o.A,{title:"Edit post",children:(0,I.jsx)(l.Ay,{type:"secondary",ghost:!0,onClick:()=>{p&&p(a.id)},children:(0,I.jsx)(c.A,{type:"edit"})})}),(0,I.jsx)(o.A,{title:"Delete post",children:(0,I.jsx)(l.Ay,{type:"danger",ghost:!0,onClick:()=>{console.log("delete"),console.log(h),h&&h(a)},children:(0,I.jsx)(c.A,{type:"delete"})})})]}),t&&t.user&&t.user.id&&(0,I.jsx)(V,{post:a,...e})]})]}),bordered:!1,bodyStyle:{padding:0},style:{marginBottom:20},children:[a.image_url&&(0,I.jsx)("div",{style:{width:"100%",textAlign:"center",backgroundColor:"#000000"},children:(0,I.jsx)("img",{src:a.image_url,alt:"Post",style:{height:"auto",maxHeight:600,maxWidth:"100%"}})}),(0,I.jsxs)("div",{style:{padding:20},children:[(0,I.jsx)(D.A,{componentDecorator:(e,t,s)=>(0,I.jsx)("a",{target:"blank",href:e,children:t},s),children:(0,I.jsx)("p",{style:{maxWidth:800,fontSize:22},className:"display-linebreak",children:a.message})}),(0,I.jsxs)("div",{style:{marginBottom:20},children:[(0,I.jsx)("span",{children:t&&t.user&&t.user.id?(0,I.jsx)(L,{likes:f,post:a,...e}):(0,I.jsxs)("span",{children:[f," ",$()("Like",f)]})},"comment-basic-like"),(0,I.jsxs)("span",{style:{marginLeft:30},children:[(0,I.jsx)(c.A,{type:"message",theme:"comment"===x?"filled":"outlined"}),(0,I.jsxs)("span",{style:{paddingLeft:10,cursor:"auto"},children:[j," ",$()("Comment",j)]})]},"comment-basic-comment")]}),e.authState&&e.authState.user&&e.authState.user.id&&(0,I.jsx)(O,{user:s,post:a,...e}),a&&(0,I.jsx)(g.X,{query:u.d8,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{post_id:a.id},onCompleted:e=>{},children:t=>{let{loading:s,error:i,data:r}=t;if(s)return(0,I.jsx)(d.A,{});if(i)return(0,I.jsxs)("div",{style:ee.container,children:["Error: ",i.message]});if(r&&!r.post_comments)return null;if(r&&0===r.post_comments.length)return null;const o=r.post_comments;return(0,I.jsx)(n.Fragment,{children:o&&o.length>0&&o.filter(e=>null===e.parent_id).map(t=>(0,I.jsx)(n.Fragment,{children:(0,I.jsx)(U,{post:a,comment:t,...e})},t.id))})}})]})]})]})}},22117:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var n=s(9950),a=s(16673),i=s(41988),r=s(87094),o=s(41182),l=s(27080),c=s(94112),d=s(5939),u=s(44414);const g=(0,a.y)(function(e){const{user:t}=e;return(0,u.jsx)(n.Fragment,{children:(0,u.jsx)(r.A,{gutter:24,justify:"center",type:"flex",children:(0,u.jsx)(i.A,{xs:24,sm:23,xl:18,style:{paddingTop:0,paddingBottom:0},children:(0,u.jsxs)(r.A,{gutter:24,children:[(0,u.jsxs)(i.A,{xs:24,sm:7,children:[(0,u.jsx)(c.A,{user:t,...e}),(0,u.jsx)("br",{}),(0,u.jsx)(o.A,{bodyStyle:{padding:10},children:(0,u.jsx)(d.A,{...e})})]}),(0,u.jsx)(i.A,{xs:24,sm:17,style:{paddingTop:0,paddingBottom:0},children:(0,u.jsx)(r.A,{justify:"center",children:t&&(0,u.jsx)(l.A,{user:t,...e})})})]})})})})})},22882:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var n=s(9950),a=s(87094),i=s(41988),r=s(76455),o=s(94772),l=s(9898),c=s(41182);const d=s.p+"static/media/clashpool-tape.6946da76311e0377b9b6.png",u=s.p+"static/media/salotto-logo.8b6d12b2462ba3d0cc0f.png";var g=s(44414);function m(e){const{user:t}=e;return(0,g.jsxs)(n.Fragment,{children:[(0,g.jsxs)(r.mg,{children:[(0,g.jsxs)("title",{children:[t.first_name," ",t.last_name," | DigitalPool"]}),(0,g.jsx)("meta",{name:"description",content:`Sponsors of ${t.first_name} ${t.last_name}`}),(0,g.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,g.jsx)("meta",{name:"twitter:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,g.jsx)("meta",{name:"twitter:description",content:`Sponsors of ${t.first_name} ${t.last_name}`}),(0,g.jsx)("meta",{name:"twitter:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,g.jsx)("meta",{property:"og:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,g.jsx)("meta",{property:"og:description",content:`Sponsors of ${t.first_name} ${t.last_name}`}),(0,g.jsx)("meta",{property:"og:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,g.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/sponsors`}),(0,g.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,g.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,g.jsx)("meta",{property:"og:type",content:"website"}),(0,g.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,g.jsx)(l.A,{children:(0,g.jsx)(o.A,{padding:"20px 40px",children:(0,g.jsx)(a.A,{gutter:24,justify:"center",type:"flex",children:(0,g.jsx)(i.A,{xs:24,sm:20,children:(0,g.jsxs)(a.A,{gutter:24,justify:"center",type:"flex",children:[(0,g.jsx)(i.A,{xs:24,sm:12,children:(0,g.jsx)(c.A,{hoverable:!0,onClick:()=>{window.open("https://salotto.app/","_blank")},bodyStyle:{display:"flex",alignItems:"center"},fullHeight:!0,children:(0,g.jsx)("img",{src:u,width:"100%",alt:"Salotto"})})}),(0,g.jsx)(i.A,{xs:24,sm:12,children:(0,g.jsx)(c.A,{hoverable:!0,onClick:()=>{window.open("https://clashpool.com","_blank")},bodyStyle:{display:"flex",alignItems:"center"},fullHeight:!0,children:(0,g.jsx)("img",{src:d,width:"100%",alt:"Clash Pool Tape"})})})]})})})})})]})}},25356:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});var n=s(9950),a=s(16673),i=s(59727),r=s(65401),o=s(2260),l=s(8750),c=s(92527),d=s(54200),u=s(94826),g=s(29246),m=s(60552),h=s(79378),p=s(97124),f=s(44414);const x=(0,a.y)(function(e){const{user:t}
1=e,s=(0,p.Ay)(),[a,x]=(0,n.useState)(!1),[y,j]=(0,n.useState)(!1),A=new FileReader;return(0,n.useEffect)(()=>{y&&e.client.mutate({mutation:m.J1`
2                        mutation update_users($id: Int, $imageUrl: String) {
3                            update_users(where: { id: { _eq: $id } }, _set: { avatar: $imageUrl }) {
4                                affected_rows
5                                returning {
6                                    id
7                                    slug
8                                    avatar
9                                }
10                            }
11                        }
12                    `,variables:{id:e.user.id,imageUrl:y}}).then(async e=>{const t=e.data.update_users.returning[0];console.log(t)}).catch(e=>{console.error(e)})},[y,e.user,e.client]),a?o.A:l.A,(0,f.jsx)(r.A,{name:"avatar",className:"avatar-uploader",customRequest:async e=>{const{onSuccess:t,onError:s,file:n,action:a,onProgress:i}=e,r={S3BucketName:"digitalpool",key:`user-avatars/${n.name}`,contentType:n.type};return window.location.hostname.indexOf("localhost")>-1&&(0,d.f5)(c.Cn,"localhost",5001),(await(0,d.Qg)(c.Cn,"uploadImageS3"))(r).then(e=>{const a=g.A.create({timeout:3e4,withCredentials:!1}),r={onUploadProgress:e=>{i({percent:e.loaded/e.total*100})},headers:{"Content-Type":n.type},withCredentials:!1,transformRequest:[e=>e]};a.interceptors.request.use(e=>(delete e.headers["x-amz-acl"],delete e.headers["x-amz-server-side-encryption"],delete e.headers["X-Amz-Acl"],delete e.headers["X-Amz-Server-Side-Encryption"],e));const o=e.data.signedRequest,l=e.data.url;return a.put(o,n,r).then(e=>{j(l),t(e.body)}).catch(e=>{s(e)})}).catch(e=>(console.log(e),e))},showUploadList:!1,beforeUpload:function(e){const t="image/jpeg"===e.type||"image/png"===e.type;t||s.error("You can only upload JPG/PNG file!");const n=e.size/1024/1024<2;return n||s.error("Image must smaller than 2MB!"),t&&n},onChange:e=>{if(!A.onloadend){const{status:t}=e.file;"uploading"===t&&x(!0),"done"===t?(x(!1),console.log(e.file,e.fileList),s.success(`${e.file.name} file uploaded successfully.`)):"error"===t&&(x(!1),s.error(`${e.file.name} file upload failed.`))}},children:a?(0,f.jsx)(i.A,{size:130,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000"},children:(0,f.jsx)(u.A,{})}):(0,f.jsx)(i.A,{size:150,style:{cursor:"pointer"},src:y||(t?t&&t.photoURL||t&&t.avatar:e.authState&&e.authState.user&&e.authState.user.photoURL),children:(0,f.jsx)(h.A,{style:{fontSize:50,lineHeight:"160px",color:"#000"}})})})})},27080:(e,t,s)=>{"use strict";s.d(t,{A:()=>Q});var n=s(9950),a=s(16673),i=s(12853),r=s(37755),o=s(41988),l=s(48538),c=s(41182),d=s(94826),u=s(38107),g=s(17535),m=s(37740),h=s(50820),p=s(92527),f=s(54200),x=s(65401),y=s(50677),j=s(13577),A=s(3123),_=s(85112),v=s(61467),b=s(80801),w=s(40197),S=s.n(w),C=s(98258),k=s(29246),R=s(97124),P=s(44414);function T(e){const{authState:t,user:s}=e,a=(0,R.Ay)(),[i,r]=(0,n.useState)(!1),[o]=(0,m.n)(g.QA),[d,h]=(0,n.useState)(""),[w,T]=(0,n.use
12State)([]),[E,I]=(0,n.useState)(!1),[N,O]=(0,n.useState)(),[q,z]=(0,n.useState)(),$=new FileReader,F=(0,n.useRef)(),U=async(e,s)=>{console.log(e);S()(e.message,{replacement:"-",remove:/[*+~.,()'"#!:/@]/g,lower:!0});let n;w&&w.length>0&&(r(!0),n=await async function(e){const t=new FormData;let s=[];w.forEach(e=>{console.log(e),s.push(e),t.append("files[]",e)}),a.info("Uploading image..."),console.log(t),console.log(s);const n=s[0],i={S3BucketName:"digitalpool",key:`post-images/${n.name}`,contentType:n.type};window.location.hostname.indexOf("localhost")>-1&&(0,f.f5)(p.Cn,"localhost",5001);try{return(await(0,f.Qg)(p.Cn,"uploadImageS3"))(i).then(t=>{const s={onUploadProgress:e=>{O({percent:e.loaded/e.total*100})},headers:{"Content-Type":n.type},withCredentials:!1,transformRequest:[e=>e]},i=t.data.signedRequest,r=t.data.url;return k.A.put(i,n,s).then(t=>{if(r){let t={...e,image_url:r};return a.success("Image upload successful!"),t}return t.body}).catch(e=>(a.error("Image upload failed"),console.log(e),e))}).catch(e=>(a.error("Image upload failed"),console.log(e),e))}catch(r){return a.error("Image upload failed"),console.log(r),r}}(e)),o({variables:{objects:[{message:e.message,user_id:t&&t.user&&t.user.id,...n&&{image_url:n.image_url}}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.Hs,variables:{user_id:t.user.id}}]}).then(e=>{s.setSubmitting(!1),s.resetForm(),console.log(e),r(!1),O(0);e&&e.data&&e.data.insert_posts&&e.data.insert_posts.returning&&e.data.insert_posts.returning[0];a.success("Post created"),T([])}).catch(e=>{r(!1),O(0),s.setSubmitting(!1),a.error(e&&e.message||JSON.stringify(e)),console.log(e)})};const D=e=>{if(console.log(e),!$.onloadend){const{status:t}=e.file;if(console.log(e.file),"removed"===t)z();else{let t;t=URL.createObjectURL(e.file),console.log(t),z(t)}}},L={onRemove:e=>{const t=w.indexOf(e),s=w.slice();s.splice(t,1),T(s)},beforeUpload:e=>{"image/jpeg"===e.type||"image/png"===e.type||a.error("You can only upload JPG/PNG file!");return e.size/1024/1024<2||a.error("Image must smaller than 2MB!"),T([...w,e]),z(e),!1},fileList:w};return(0,P.jsx)(v.l1,{innerRef:F,enableReinitialize:!0,initialValues:{message:""},onSubmit:(e,t)=>{console.log(e),U(e,t)},children:e=>{let{values:t,errors:s,touched:n,handleChange:a,handleBlur:i,handleSubmit:r,isSubmitting:o}=e;return(0,P.jsx)(y.l,{onSubmit:r,layout:"vertical",style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center"},children:(0,P.jsx)(c.A,{bodyStyle:{paddingLeft:20,paddingRight:20,paddingTop:15,paddingBottom:15},children:(0,P.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,P.jsx)(j.e,{name:"message",style:{width:"100%"},children:(0,P.jsx)(A.p,{name:"message",size:"large",placeholder:"What's on your mind?",onChange:e=>{!function(e){const t=e.target.selectionStart,s=e.target;window.requestAnimationFrame(()=>{s.selectionStart=t,s.selectionEnd=t}),h(e.target.value)}(e)},addonAfter:(0,P.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,P.jsx)(C.A,{text:d,buttonType:"text",buttonSize:"small",onSetText:e=>{F.current.setValues({message:e}),h(e)}}),(0,P.jsx)(x.A,{...L,onChange:D,showUploadList:!1,children:q?(0,P.jsx)(l.Ay,{type:"link",children:(0,P.jsx)("img",{src:q,alt:"Preview",height:30})}):(0,P.jsx)(l.Ay,{type:"link",children:(0,P.jsx)(b.A,{type:"file-image",style:{fontSize:16}})})})]})})}),(0,P.jsx)(_.b,{disabled:!t.message||Object.keys(s).length>0,type:Object.keys(s).length>0?"danger":"primary",size:"large",style:{marginLeft:10},children:"Create post"})]})})})}})}var E=s(12024),I=s(19167),N=s(29714),O=s(2260),q=s(8750),z=s(60552);(0,a.y)(function(e){const{post:t}=e,s=(0,R.Ay)(),[a,i]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),l=new FileReader;return(0,n.useEffect)(()=>{r&&e.client.mutate({mutation:z.J1`
13                        mutation update_posts($id: Int, $imageUrl: String) {
14                            update_posts(where: { id: { _eq: $id } }, _set: { image_url: $imageUrl }) {
15                                affected_rows
16                                returning {
17                                    id
18                                    slug
19                                    image_url
20                                }
21                            }
22                        }
23                    `,variables:{id:e.post.id,imageUrl:r}}).then(async e=>{const t=e.data.update_posts.returning[0];console.log(t)}).catch(e=>{console.error(e)})},[r,e.post,e.client]),a?O.A:q.A,(0,P.jsx)(x.A,{name:"avatar",className:"avatar-uploader",customRequest:async e=>{const{onSuccess:t,onError:s,file:n,action:a,onProgress:i}=e,r={S3BucketName:"digitalpool",key:`post-images/${n.name}`,contentType:n.type};return window.location.hostname.indexOf("localhost")>-1&&(0,f.f5)(p.Cn,"localhost",5001),(await(0,f.Qg)(p.Cn,"uploadImageS3"))(r).then(e=>{const a=k.A.create({timeout:3e4,withCredentials:!1}),r={onUploadProgress:e=>{i({percent:e.loaded/e.total*100})},headers:{"Content-Type":n.type},withCredentials:!1,transformRequest:[e=>e]};a.interceptors.request.use(e=>(delete e.headers["x-amz-acl"],delete e.headers["x-amz-server-side-encryption"],delete e.headers["X-Amz-Acl"],delete e.headers["X-Amz-Server-Side-Encryption"],e));const l=e.data.signedRequest,c=e.data.url;return a.put(l,n,r).then(e=>{o(c),t(e.body)}).catch(e=>{s(e)})}).catch(e=>(console.log(e),e))},showUploadList:!1,beforeUpload:function(e){const t="image/jpeg"===e.type||"image/png"===e.type;t||s.error("You can only upload JPG/PNG file!");const n=e.size/1024/1024<2;return n||s.error("Image must smaller than 2MB!"),t&&n},onChange:e=>{if(!l.onloadend){const{status:t}=e.file;"uploading"===t&&i(!0),"done"===t?(i(!1),console.log(e.file,e.fileList),s.success(`${e.file.name} file uploaded successfully.`)):"error"===t&&(i(!1),s.error(`${e.file.name} file upload failed.`))}},children:a?(0,P.jsx)(d.A,{}):(0,P.jsx)(n.Fragment,{children:r||t&&t.imageUrl?(0,P.jsx)("img",{src:r||t&&t.imageUrl,alt:"Post"}):e.children})})});const{Title:$,Text:F}=i.A;function U(e){const{authState:t,selectedPostId:s,modalVisible:a,onModalOk:i,onModalCancel:o}
23=e,c=(0,R.Ay)(),d=(0,n.useRef)(),[_,w]=(0,n.useState)([]),[S,T]=(0,n.useState)(!1),[E,O]=(0,n.useState)(),[q,z]=(0,n.useState)(),[F,U]=(0,n.useState)(""),D=new FileReader,[L]=(0,m.n)(g.QA),[B]=(0,m.n)(g.Bj),M=N.Ik().shape({message:N.Yj().required("Message is a required field")});async function Q(e,t){let n;if(_&&_.length>0){console.log(e.image_url),console.log(e),T(!0);const s=e.image_url;if(s){const e=s.split("/"),t=e[e.length-1],n=await async function(e){const t={S3BucketName:"digitalpool",key:`post-images/${e}`,action:"delete"};window.location.hostname.indexOf("localhost")>-1&&(0,f.f5)(p.Cn,"localhost",5001);try{return(await(0,f.Qg)(p.Cn,"uploadImageS3"))(t).then(e=>(console.log(e),e)).catch(e=>(console.log(e),e))}catch(s){return console.log(s),s}}(t);console.log("deleted",n)}n=await H(e,t)}B({variables:{id:s,changes:{message:e.message,image_url:n&&n.image_url||e.image_url}},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.Pv,variables:{id:s}}]}).then(e=>{t.setSubmitting(!1),t.resetForm(),console.log(e),T(!1),O(0),c.success("Post updated"),w([]),i()}).catch(e=>{T(!1),O(0),t.setSubmitting(!1),c.error(e&&e.message||JSON.stringify(e)),console.log(e)})}async function H(e,t){const s=new FormData;let n=[];_.forEach(e=>{console.log(e),n.push(e),s.append("files[]",e)}),c.info("Uploading image..."),console.log(s),console.log(n);const a=n[0],i={S3BucketName:"digitalpool",key:`post-images/${a.name}`,contentType:a.type};window.location.hostname.indexOf("localhost")>-1&&(0,f.f5)(p.Cn,"localhost",5001);try{return(await(0,f.Qg)(p.Cn,"uploadImageS3"))(i).then(t=>{const s={onUploadProgress:e=>{O({percent:e.loaded/e.total*100})},headers:{"Content-Type":a.type},withCredentials:!1,transformRequest:[e=>e]},n=t.data.signedRequest,i=t.data.url;return k.A.put(n,a,s).then(t=>{if(i){let t={...e,image_url:i};return c.success("Image upload successful!"),t}return t.body}).catch(e=>(c.error("Image upload failed"),console.log(e),e))}).catch(e=>(c.error("Image upload failed"),console.log(e),e))}catch(r){return c.error("Image upload failed"),console.log(r),r}}const Y=e=>{if(console.log(e),!D.onloadend){const{status:t}=e.file;if(console.log(e.file),"removed"===t)z();else{let t;t=URL.createObjectURL(e.file),console.log(t),z(t)}}};function X(e){const g=s?{...e,message:e.message}:{message:""},m={onRemove:e=>{const t=_.indexOf(e),s=_.slice();s.splice(t,1),w(s)},beforeUpload:e=>{"image/jpeg"===e.type||"image/png"===e.type||c.error("You can only upload JPG/PNG file!");return e.size/1024/1024<2||c.error("Image must smaller than 2MB!"),w([..._,e]),z(e),!1},fileList:_};return(0,P.jsx)("div",{children:(0,P.jsx)(v.l1,{innerRef:d,onSubmit:(e,n)=>{console.log({data:e,actions:n}),s?Q(e,n):async function(e,s){let n;console.log(e),_&&_.length>0&&(T(!0),n=await H(e)),L({variables:{objects:[{message:e.message,user_id:t&&t.user&&t.user.id,...n&&{image_url:n.image_url}}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.Hs,variables:{user_id:t&&t.user&&t.user.id}}]}).then(e=>{s.setSubmitting(!1),s.resetForm(),console.log(e),T(!1),O(0),c.success("Post created"),w([]),i()}).catch(e=>{T(!1),O(0),s.setSubmitting(!1),c.error(e&&e.message||JSON.stringify(e)),console.log(e)})}(e,n)},validationSchema:M,enableReinitialize:!0,initialValues:g,children:t=>{let{errors:c,touched:u,values:g}=t;return(0,P.jsx)(r.A,{title:(0,P.jsx)($,{level:4,style:{marginBottom:0},children:s?"Edit post":"Create new post"}),open:a,onOk:i,onCancel:o,centered:!0,transitionName:"",maskTransitionName:"",bodyStyle:{maxHeight:500,overflowY:"auto",padding:"10px 20px"},destroyOnClose:!0,footer:[(0,P.jsx)(l.Ay,{size:"large",onClick:o,children:"Cancel"},"cancel"),(0,P.jsx)(l.Ay,{size:"large",disabled:Object.keys(c).length>0,type:Object.keys(c).length>0?"danger":"primary",loading:S,onClick:()=>{d.current.handleSubmit()},children:s?S?"Updating...":"Update Post":S?"Creating Post":"Create Post"},"submit")],children:(0,P.jsxs)(y.l,{layout:"vertical",style:{maxWidth:600},children:[(0,P.jsx)(j.e,{name:"message",hasFeedback:!0,children:(0,P.jsx)(A.p.TextArea,{name:"message",placeholder:"What's on your mind?",size:"large",rows:4,onChange:e=>{!function(e){const t=e.target.selectionStart,s=e.target;window.requestAnimationFrame(()=>{s.selectionStart=t,s.selectionEnd=t}),U(e.target.value)}(e)},style:{fontSize:20}})}),!0===S&&(0,P.jsx)(I.A,{percent:parseInt(E),size:"small"}),(0,P.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",marginTop:5,marginBottom:10},children:[(0,P.jsx)(C.A,{text:F,onSetText:e=>{d.current.setValues({message:e}),U(e)}}),(0,P.jsx)("div",{style:{width:10}}),(0,P.jsx)(x.A,{...m,onChange:Y,children:(0,P.jsx)(l.Ay,{ghost:!0,size:"large",children:e&&e.image_url?(0,P.jsx)(n.Fragment,{children:q?(0,P.jsxs)(n.Fragment,{children:[(0,P.jsx)("img",{src:q,alt:"Preview",height:30})," Replace Image"]}):(0,P.jsxs)(n.Fragment,{children:[(0,P.jsx)("img",{src:e.image_url,alt:"Post",height:30})," Replace Image"]})}):(0,P.jsxs)(n.Fragment,{children:[(0,P.jsx)(b.A,{type:"file-image",style:{fontSize:16}})," Add Image"]})})})]})]})})}})})}return(0,P.jsx)(n.Fragment,{children:s?(0,P.jsx)(h.X,{query:u.Pv,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{id:s},onCompleted:async e=>{console.log(e)},children:e=>{let{loading:t,error:s,data:a}=e;if(t)return null;if(s)return(0,P.jsxs)("div",{children:["Error: ",s.message]});const i=a&&a.posts&&a.posts.length>0?a.posts[0]:null;return(0,P.jsx)(n.Fragment,{children:X(i)})}}):(0,P.jsx)(n.Fragment,{children:X()})})}var D=s(74977);const{Text:L,Title:B}=i.A,M={};const Q=(0,a.y)(function(e){const{authState:t,user:s}=e,a=(0,R.Ay)(),[i,x]=r.A.useModal(),[y]=(0,m.n)(g.ps),[j,A]=(0,n.use
23State)(),[_,v]=(0,n.useState)(!1);async function b(e){if(a.info("Deleting post..."),e.image_url){const t=e.image_url.split("/"),s=t[t.length-1],n=await async function(e){const t={S3BucketName:"digitalpool",key:`post-images/${e}`,action:"delete"};window.location.hostname.indexOf("localhost")>-1&&(0,f.f5)(p.Cn,"localhost",5001);try{return(await(0,f.Qg)(p.Cn,"uploadImageS3"))(t).then(e=>(console.log(e),e)).catch(e=>(console.log(e),e))}catch(s){return console.log(s),s}}(s);console.log("deleted",n)}y({variables:{id:e.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:u.Hs,variables:{user_id:s.id}}]}).then(e=>{console.log(e),a.success("Post deleted")}).catch(e=>(console.log(e),a.info("There was an error",e),e))}function w(e){A(e),v(!0)}function S(){v(!0),A(null)}return(0,P.jsxs)(n.Fragment,{children:[x,t&&t.user&&t.user.id===s.id&&(0,P.jsx)(o.A,{xs:24,children:(0,P.jsx)(T,{user:s,onPostAdd:S,...e})}),(0,P.jsxs)(o.A,{xs:24,children:[(0,P.jsx)(h.X,{query:u.Hs,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{user_id:s.id},onCompleted:e=>{},children:t=>{let{loading:a,error:r,data:o}=t;if(a)return(0,P.jsx)(d.A,{});if(r)return(0,P.jsxs)("div",{style:M.container,children:["Error: ",r.message]});if(o&&!o.posts)return(0,P.jsx)(c.A,{title:"Posts",children:(0,P.jsx)(D.A,{showImage:!0,message:"No posts exist yet",...e,children:(0,P.jsx)(l.Ay,{type:"primary",size:"large",onClick:()=>{S()},children:"Create first post"})})});if(o&&0===o.posts.length)return(0,P.jsx)(c.A,{title:"Posts",children:(0,P.jsx)(D.A,{showImage:!0,message:"No posts exist yet",...e,children:(0,P.jsx)(l.Ay,{type:"primary",size:"large",onClick:()=>{S()},children:"Create first post"})})});const u=o.posts;return(0,P.jsx)(n.Fragment,{children:u&&u.map((t,n)=>(0,P.jsx)(E.A,{post:t,user:s,onEditSelected:w,onDelete:e=>{return t=e,void i.confirm({title:"Are you sure you want to delete this post?",content:"This action will permanently remove the post and any comments.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Delete",onOk(){b(t)},onCancel(){}});var t},...e},n))})}}),(0,P.jsx)(U,{selectedPostId:j,onModalOk:function(e){console.log(e),v(!1)},onModalCancel:function(e){A(),v(!1)},modalVisible:_,...e})]})]})})},30341:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var n=s(9950),a=s(41988),i=s(31783),r=s(87094),o=s(76455),l=s(94772),c=s(9898),d=s(44414);function u(e){const{user:t}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(o.mg,{children:[(0,d.jsxs)("title",{children:[t.first_name," ",t.last_name," | DigitalPool"]}),(0,d.jsx)("meta",{name:"description",content:`Pool products for sale from ${t.first_name} ${t.last_name}`}),(0,d.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,d.jsx)("meta",{name:"twitter:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,d.jsx)("meta",{name:"twitter:description",content:`Pool products for sale from ${t.first_name} ${t.last_name}`}),(0,d.jsx)("meta",{name:"twitter:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,d.jsx)("meta",{property:"og:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,d.jsx)("meta",{property:"og:description",content:`Pool products for sale from ${t.first_name} ${t.last_name}`}),(0,d.jsx)("meta",{property:"og:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,d.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/shop`}),(0,d.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,d.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,d.jsx)("meta",{property:"og:type",content:"website"}),(0,d.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,d.jsx)(c.A,{children:(0,d.jsx)(l.A,{padding:"0px",children:(0,d.jsx)(r.A,{gutter:24,justify:"center",type:"flex",children:(0,d.jsx)(a.A,{xs:24,children:(0,d.jsx)(i.Ay,{status:"warning",title:"Store coming soon"})})})})})]})}},45375:(e,t,s)=>{"use strict";function n(e){var t=[];for(var s in e)e.hasOwnProperty(s)&&t.push(encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t.join("&")}s.d(t,{A:()=>r,_:()=>o});var a=s(29246);
23const i={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1,REACT_APP_GRAPHQL_HTTPS_URL:"https://proxy.digitalpool.com/graphql",REACT_APP_GRAPHQL_WSS_URL:"wss://api-prod.digitalpool.com/v1/graphql",REACT_APP_FIREBASE_API_KEY:"AIzaSyAkwJtuG13xbMW96QOfXPvF58Oq7ELtCzA",REACT_APP_FIREBASE_AUTH_DOMAIN:"digital-pool.firebaseapp.com",REACT_APP_FIREBASE_DATABASE_URL:"https://digital-pool.firebaseio.com",REACT_APP_FIREBASE_PROJECT_ID:"digital-pool",REACT_APP_FIREBASE_STORAGE_BUCKET:"digital-pool.appspot.com",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"655904243285",REACT_APP_FIREBASE_APP_ID:"1:655904243285:web:22a3d11bbaff1cda",REACT_APP_VERSION:"0.5.0",REACT_APP_NAME:"digitalpool-antd",REACT_APP_GMAP_KEY:"AIzaSyAkwJtuG13xbMW96QOfXPvF58Oq7ELtCzA",REACT_APP_STREAMING_API_KEY:"438b8109c11c1e2ec125fe60ccb118bab2d9dee7a28d2e7a67294ae5d9a3ee79",REACT_APP_FRIEND_CLAIM_SECRET:"KM5KtcvMZ39yTfR1W2B40XWncPFPYjY4f9mrLFFNHTM=",REACT_APP_ENVIRONMENT:"prod",REACT_APP_USE_HASURA_PROXY:"true",REACT_APP_FIREBASE_FUNCTIONS_URL:"https://us-central1-digital-pool.cloudfunctions.net",REACT_APP_FIREBASE_FUNCTIONS_WS_URL:"https://us-central1-digital-pool.cloudfunctions.net",REACT_APP_PROXY_CACHING_ENABLED:"true",REACT_APP_PROXY_RATE_LIMITING_ENABLED:"true",REACT_APP_PROXY_MONITORING_ENABLED:"true",REACT_APP_PROXY_REGIONAL_ROUTING_ENABLED:"false",REACT_APP_PROXY_CACHE_TTL:"300",REACT_APP_PROXY_QUERIES_PER_MINUTE:"100",REACT_APP_PROXY_MUTATIONS_PER_MINUTE:"50",REACT_APP_PROXY_SUBSCRIPTIONS_PER_MINUTE:"10",REACT_APP_ENABLE_PROXY_IN_DEV:"false",REACT_APP_LEAGUE_GRAPHQL_URL:"https://graph.digitalpool.com/query",REACT_APP_MIXPANEL_ID:"bd28bad325e033118fc0145d76d3c378",REACT_APP_XPOOL_VIDEO_ACCESS_SECRET:"EmrAixE*z2tVWXq_TrDGRnf8tGKdAHxA"}.REACT_APP_YOUTUBE_API_KEY,r=function(e){const t={key:i,...e};return a.A.get(`https://youtube.googleapis.com/youtube/v3/activities?${n(t)}`)},o=function(e){const t={key:i,part:"snippet,contentDetails",...e};return a.A.get(`https://youtube.googleapis.com/youtube/v3/videos?${n(t)}`)}},48607:(e,t,s)=>{var n=s(9950);function a(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=a(n);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');const r=n.forwardRef(function(e,t){let{style:s={},className:a="",autoFill:r=!1,play:o=!0,pauseOnHover:l=!1,pauseOnClick:c=!1,direction:d="left",speed:u=50,delay:g=0,loop:m=0,gradient:h=!1,gradientColor:p="white",gradientWidth:f=200,onFinish:x,onCycleComplete:y,onMount:j,children:A}=e;const[_,v]=n.useState(0),[b,w]=n.useState(0),[S,C]=n.useState(1),[k,R]=n.useState(!1),P=n.useRef(null),T=t||P,E=n.useRef(null),I=n.useCallback(()=>
23{if(E.current&&T.current){const e=T.current.getBoundingClientRect(),t=E.current.getBoundingClientRect();let s=e.width,n=t.width;"up"!==d&&"down"!==d||(s=e.height,n=t.height),C(r&&s&&n&&n<s?Math.ceil(s/n):1),v(s),w(n)}},[r,T,d]);n.useEffect(()=>{if(k&&(I(),E.current&&T.current)){const e=new ResizeObserver(()=>I());return e.observe(T.current),e.observe(E.current),()=>{e&&e.disconnect()}}},[I,T,k]),n.useEffect(()=>{I()},[I,A]),n.useEffect(()=>{R(!0)},[]),n.useEffect(()=>{"function"===typeof j&&j()},[]);const N=n.useMemo(()=>r?b*S/u:b<_?_/u:b/u,[r,_,b,S,u]),O=n.useMemo(()=>Object.assign(Object.assign({},s),{"--pause-on-hover":!o||l?"paused":"running","--pause-on-click":!o||l&&!c||c?"paused":"running","--width":"up"===d||"down"===d?"100vh":"100%","--transform":"up"===d?"rotate(-90deg)":"down"===d?"rotate(90deg)":"none"}),[s,o,l,c,d]),q=n.useMemo(()=>({"--gradient-color":p,"--gradient-width":"number"===typeof f?`${f}px`:f}),[p,f]),z=n.useMemo(()=>({"--play":o?"running":"paused","--direction":"left"===d?"normal":"reverse","--duration":`${N}s`,"--delay":`${g}s`,"--iteration-count":m?`${m}`:"infinite","--min-width":r?"auto":"100%"}),[o,d,N,g,m,r]),$=n.useMemo(()=>({"--transform":"up"===d?"rotate(90deg)":"down"===d?"rotate(-90deg)":"none"}),[d]),F=n.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,t)=>i.default.createElement(n.Fragment,{key:t},n.Children.map(A,e=>i.default.createElement("div",{style:$,className:"rfm-child"},e)))),[$,A]);return k?i.default.createElement("div",{ref:T,style:O,className:"rfm-marquee-container "+a},h&&i.default.createElement("div",{style:q,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:z,onAnimationIteration:y,onAnimationEnd:x},i.default.createElement("div",{className:"rfm-initial-child-container",ref:E},n.Children.map(A,e=>i.default.createElement("div",{style:$,className:"rfm-child"},e))),F(S-1)),i.default.createElement("div",{className:"rfm-marquee",style:z},F(S))):null});t.A=r},56812:(e,t,s)=>{"use strict";s.d(t,{A:()=>E});var n=s(9950),a=s(16673),i=s(41988),r=s(31783),o=s(87094),l=s(12853),c=s(80801),d=s(50677),u=s(3123),g=s(13577),m=s(85112),h=s(97660),p=s(44416),f=s(61467),x=s(76455),y=s(41182),j=s(94772),A=s(9898),_=s(29714),v=s(45383),b=s(9388),w=s(92527),S=s(54200),C=s(97124),k=s(44414);const{Text:R,Title:P}=l.A,{TextArea:T}=u.p;const E=(0,a.y)(function(e){const{authState:t,match:s,theme:a,user:l}
23=e,E=(0,C.Ay)(),[I,N]=(0,n.useState)(!1),[O,q]=(0,n.useState)(!1),[z,$]=(0,n.useState)(null),{breakpoint:F,maxWidth:U,minWidth:D}=(0,v.Ay)(b.K),L=_.Ik().shape({name:_.Yj().required("Name is required"),email:_.Yj().email("Email is invalid").required("Email is required"),message:_.Yj().required("Message is required")});return(0,k.jsxs)(n.Fragment,{children:[(0,k.jsxs)(x.mg,{children:[(0,k.jsxs)("title",{children:[l.first_name," ",l.last_name," | DigitalPool"]}),(0,k.jsx)("meta",{name:"description",content:`Book a lesson with ${l.first_name} ${l.last_name}`}),(0,k.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,k.jsx)("meta",{name:"twitter:title",content:`${l.first_name} ${l.last_name} | DigitalPool`}),(0,k.jsx)("meta",{name:"twitter:description",content:`Book a lesson with ${l.first_name} ${l.last_name}`}),(0,k.jsx)("meta",{name:"twitter:image",content:l.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,k.jsx)("meta",{property:"og:title",content:`${l.first_name} ${l.last_name} | DigitalPool`}),(0,k.jsx)("meta",{property:"og:description",content:`Book a lesson with ${l.first_name} ${l.last_name}`}),(0,k.jsx)("meta",{property:"og:image",content:l.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,k.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${l.slug}/lessons`}),(0,k.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,k.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,k.jsx)("meta",{property:"og:type",content:"website"}),(0,k.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,k.jsx)(A.A,{children:(0,k.jsx)(j.A,{padding:"20px 40px",children:(0,k.jsx)(o.A,{gutter:24,justify:"center",type:"flex",children:(0,k.jsx)(i.A,{xs:24,align:"center",children:!0===O?(0,k.jsx)(r.Ay,{status:"success",title:"Your lesson request has been sent to Karl!"}):(0,k.jsx)(f.l1,{initialValues:{email:"",skill_level:"intermediate"},validationSchema:L,onSubmit:async(e,t)=>{const{name:s,email:n,skill_level:a,needs:i}=e;console.log(e),window.location.hostname.indexOf("localhost")>-1&&(0,S.f5)(w.Cn,"localhost",5001);try{N(!0);const r=(await(0,S.Qg)(w.Cn,"lessonEmailRequest"))({to_email:"[email protected]",to_name:"Karl Boyes",from_name:s,from_email:n,skill_level:a,needs:i,message:e.message});console.log(r),t.setSubmitting(!1),t.resetForm(),N(!1),q(!0),E.success("Lesson request has been sent.")}catch(r){console.log(r),N(!1),t.setSubmitting(!1),q(!1),E.error(`Email send error: ${JSON.stringify(r)}`)}},children:e=>{let{values:t,errors:s,touched:n,handleChange:a,handleBlur:i,handleSubmit:r,isSubmitting:o}=e;return(0,k.jsx)(d.l,{onSubmit:r,layout:"vertical",style:{display:"flex",flex:1,justifyContent:"center",alignItems:"center",maxWidth:800,width:"100%"},children:(0,k.jsx)(y.A,{children:(0,k.jsxs)("div",{style:{textAlign:"left"},children:[(0,k.jsx)(P,{level:4,style:{margin:0},children:"Contact Karl about booking a lesson"}),(0,k.jsx)(g.e,{label:"Name",name:"name",hasFeedback:!0,showValidateSuccess:!0,required:!0,children:(0,k.jsx)(u.p,{addonBefore:(0,k.jsx)(c.A,{type:"user"}),name:"name",size:"large",autoFocus:!0,placeholder:"First and last name"})}),(0,k.jsx)(g.e,{label:"Email",name:"email",hasFeedback:!0,showValidateSuccess:!0,required:!0,children:(0,k.jsx)(u.p,{addonBefore:(0,k.jsx)(c.A,{type:"mail"}),name:"email",size:"large",placeholder:"Email address"})}),(0,k.jsx)(g.e,{label:"Skill level",name:"skill_level",children:(0,k.jsxs)(p.s.Group,{name:"skill_level",children:[(0,k.jsx)(p.s.Button,{value:"beginner",children:"Beginner"}),(0,k.jsx)(p.s.Button,{value:"intermediate",children:"Intermediate"}),(0,k.jsx)(p.s.Button,{value:"advanced",children:"Advanced"})]})}),(0,k.jsx)(g.e,{label:"Need help with",name:"needs",children:(0,k.jsx)(h.S.Group,{name:"needs",options:[{label:"Aiming",value:"Aiming"},{label:"Kicking",value:"Kicking"},{label:"Banking",value:"Banking"},{label:"Position play",value:"Position play"},{label:"Defensive play",value:"Defensive play"},{label:"Mental game",value:"Mental game"},{label:"Stroke improvement",value:"Stroke improvement"},{label:"Drills",value:"Drills"},{label:"Other",value:"Other"}],style:{display:"flex",flexDirection:"column"}})}),(0,k.jsx)(g.e,{label:"Message",name:"message",hasFeedback:!0,showValidateSuccess:!0,required:!0,children:(0,k.jsx)(T,{label:"message",name:"message",rows:4,placeholder:"Comma separated or one for each line"})}),(0,k.jsx)(m.b,{disabled:Object.keys(s).length>0,type:Object.keys(s).length>0?"danger":"primary",size:"large",style:{marginTop:10,width:"100%"},loading:I,children:!0===I?"Sending...":"Send Request"}),(0,k.jsx)("div",{style:{marginTop:10},children:(0,k.jsx)(R,{style:{color:"#f5222d"},children:s.general})})]})})})}})})})})})]})})},66568:(e,t,s)=>{"use strict";s.d(t,{A:()=>w});var n=s(9950),a=s(12853),i=s(87094),r=s(41988),o=s(76455),l=s(45383),c=s(48607),d=s(94772),u=s(9898);s.p;const g=s.p+"static/media/uk-flag.d2a348cf3011b0a188e6.png",m=s.p+"static/media/karl-photo.b5b925824a626e0adfc4.png",h=s.p+"static/media/karl-photos.5cbc08cc51c6ee5a19ae.png",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACu4AAABeBAMAAAA0pW3gAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAASUExURTU2aggIDhAQHxsbNSgoT0JDg6ag3TkAAAAGdFJOUzAEDRgjO3ChEqwAAATTSURBVHja7NbBbcQgEEDRaQE6ADoY+u8twhhtckcrRXpfMhiec8lhtFEkSd8s/AskydyVJHNXkmTuSpK5K0kydyXJ3JUkc1eS9LWitFJKq+Ws77mWtiqtcc45v+gtaq3reNb9B+XUSuGcc37TY+mHzjw+rTfOOecXPXprtfa31vZpre8955zzqx7PZT09Wh963zjnnF/12Nvp4OczzjnnVz3aPq5arwc/n3HOOb/q0f/U+qf9Feec86seXZL0jcxdSTJ3JcnclSSZu5L0v4vRd6Pn3j9rrsvknHN+06OPXc/99q49M9fWB+ec84v+5/du/prHZxudc875TY887Rl96mfjnHN+1WNkjrfM/aw1+xhzZg7OOedXPebyVc51fmzfPZ8k55zzaz7nGJGnOXLRs743zy3nnPNbvoq5pm/uZy6cM9fznH7YqWMjB2IYCILI5TP4RQZA/jGJS5whQ/JQsmZKJxJs2tSZcRzH8R33LMW/Vf57wAezOxfOh+M4jm+5OZ4DefTn/vybTziO4/iam0LyYPmULwvHcRzfce9D35r7wnEcx1c9REREy/HuEhHx7hIR8e4SEdFPisxUSfLqZk53VxzHcXzTFdKw19ud5dIrjuM4vuhV4RMPV1z5OJ1SmTiO4/iiS1G64mnyTcvMwnEcxxe9KtK7GWfni91Vnd2qxnEcx1c9OvOgL/U9Petzq1OdheM4jq96GLIm76fqGa81juM4vuYxL3Efm7WrvSv/Mu8mcRzH8TWP676Rs6bhSF2/I47jOL7ncZa33t5rl/1ip46NI4aBGIoiQEkuAMH2X5MFUrY1Y0c+Xva/ZqglH5Vqrns4juP4Odee69PlVziO4/hR10M/nmMvNxzHcfykj4aIiN4e/10iIv67RET8d4mI6A1pPJ7cz/f4tRvjOI7jR11/HufnMxzHcfygj1XwDblHr8v7jeM4jp/0yLmn3srMGudr58FxHMdPupUlTvlKvsrejTfhOI7j51yjeLtSXBu7u/uKcRzH8XOu7pS+29qtr2SlK47jOH7U5ZXu51H2KY7jOH7GlZWkjrueKumJu7T19pVwHMfxVzy1HluW1qKoVC1ZLXFBMY7jOP5/9xoeYnn7or36qt45Co7jOP6Ce6/qqp/xoXeJlgnHcRzPZ7t1kNsgDARQ1IvOvXKE2fj+V6nHtbAKlZKgLqrqfaJg+8F2xE0vWP+70n1QXNfHXBWOi3PO+V1/rClbi8v8XXbtwTnn/LY/zqN2289xzjl/4pIkSZIkSZKk/13G/FV124tZK10/zjnnb/iZlx/vjWJe62iV317jnHN+z9fhXK3DUctZbzn2q9M855xzfsev37v1RG1jNHf7ubh8J3POOX/FT1j3ouij7AOiXqh1QY9RrSKnR3DOOX/P4+R9nravh3pVp2M/d+vpnqM4PDnnnN/1tWu1iWjFkfVS1dY9Wp1wzjm/4T1OPnfReu7Z3GuZde+
23xDmqVh68HgnPO+VOPfvKY25a9rqgryrI4IofXYh5unyObc875C97jm/chOaTNWbyKPsq9z9M+1mlwzjl/5lVsP2rHUex3sl8q33HOOX/qcZmvWYtWt9dLzjnnd3zXuiTpNzJ3JcnclSSZu5Jk7kqSuStJMnclydyVJJm7kvT3+gTAAnZKiMRCrwAAAABJRU5ErkJggg==",f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACvAAAABuAQMAAADBWFRmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAGUExURQQJDwsYKad5ZioAAAACdFJOU2BgXtzHxwAAAQ9JREFUeNrt0jFOAmEUhdEHJZ0mWFOzCmoqTJzMFtgDCYPRyh6mnYLGfz9YWssWTCajzh5ejOac5vZfbgAAAAAAAAAAAAAAAAAAAADAHzLd2MRdxLmsz2XV2YSNl3IbEZPZzCbs+N5vm84mbByrm7H23CZsLGJdVdXD/combKxLd4iYPi9twsYi5j+1lwebsHGsPybbu8dtZRM2muu+ve5PTzZjo5zaz/Z1N9iMjaHv6755KzZjo6rrvr7sBpux3uu93mu999fe+15sxsZlrNwMNmNjIJG88sqLvPLKi7zyyou88sqLvPIir7zyIq+88iKvvPIir7zIK6+8yCuvvMgrr7zIK6+8yCsv8sr7b3wBVNPl6TF9WN4AAAAASUVORK5CYII=";var x=s(46522),y=s(14898),j=s(70553),A=s(9388),_=s(44414);const{Title:v,Text:b}=a.A;function w(e){const{user:t}=e,{breakpoint:s,maxWidth:a,minWidth:w}=(0,l.Ay)(A.K);return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsxs)(o.mg,{children:[(0,_.jsxs)("title",{children:[t.first_name," ",t.last_name," | DigitalPool"]}),(0,_.jsx)("meta",{name:"description",content:`Learn more about ${t.first_name} ${t.last_name}`}),(0,_.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,_.jsx)("meta",{name:"twitter:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,_.jsx)("meta",{name:"twitter:description",content:`Learn more about ${t.first_name} ${t.last_name}`}),(0,_.jsx)("meta",{name:"twitter:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,_.jsx)("meta",{property:"og:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,_.jsx)("meta",{property:"og:description",content:`Learn more about ${t.first_name} ${t.last_name}`}),(0,_.jsx)("meta",{property:"og:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,_.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/about`}),(0,_.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,_.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,_.jsx)("meta",{property:"og:type",content:"website"}),(0,_.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,_.jsx)(u.A,{children:(0,_.jsx)(d.A,{padding:"0px",children:(0,_.jsx)(i.A,{gutter:24,justify:"center",type:"flex",children:(0,_.jsx)(r.A,{xs:24,style:{paddingTop:0,paddingBottom:0},children:(0,_.jsxs)(i.A,{gutter:0,type:"flex",children:[(0,_.jsx)(r.A,{style:{paddingTop:0,paddingBottom:0},children:(0,_.jsxs)("div",{style:{display:"flex"},children:["mobile"!==s&&(0,_.jsx)("div",{children:(0,_.jsx)("img",{src:g,alt:"UK Flag",height:600})}),(0,_.jsx)("div",{style:{position:"relative",marginLeft:"mobile"!==s?-130:0},children:(0,_.jsx)("img",{src:m,alt:"Karl Boyes",style:"mobile"!==s?{height:600}:{width:"100%"}})})]})}),(0,_.jsx)(r.A,{style:{paddingTop:0,paddingBottom:0},children:(0,_.jsxs)("div",{style:{padding:40,maxWidth:600},children:[(0,_.jsx)(v,{level:3,children:"Biography"}),(0,_.jsx)(b,{children:"Karl Boyes (born 4 November 1982, Bradford, England) is an English professional pool player. Boyes won the 2010 world 8-ball championships. In the final, Boyes had the much better start and led Niels Feijen 4-0 and 11\u20135, before his opponent started a catch-up and levelled at 12-12. Boyes won the final rack, winning 13\u201312."}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),(0,_.jsx)(b,{children:"Boyes has been a part of 4 Mosconi Cup teams, competing for Europe in 2010, 2013, 2014 and 2015. In all of these seasons, Europe would defeat the USA."}),(0,_.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,_.jsx)("a",{href:"https://www.facebook.com/karl.boyes",target:"_blank",rel:"noopener noreferrer",style:{marginRight:10},children:(0,_.jsx)("img",{src:x,alt:"Facebook",height:30})}),(0,_.jsx)("a",{href:"https://www.instagram.com/karl_boyes",target:"_blank",rel:"noopener noreferrer",style:{marginRight:10},children:(0,_.jsx)("img",{src:y,alt:"Instagram",height:30})}),(0,_.jsx)("a",{href:"https://www.youtube.com/channel/UCz6X-sJnuUWZuhnf0aaXioQ",target:"_blank",rel:"noopener noreferrer",style:{marginTop:2},children:(0,_.jsx)("img",{src:j,alt:"YouTube",height:30})})]})]})}),(0,_.jsx)(r.A,{xs:24,style:{paddingTop:0,paddingBottom:0},children:(0,_.jsxs)("div",{style:{marginTop:"mobile"!==s?-70:0},children:[(0,_.jsx)("img",{src:p,alt:"Top gradient",width:"100%"}),(0,_.jsx)(c.A,{speed:60,gradientColor:[0,0,0],children:(0,_.jsx)("img",{src:h,alt:"Photos",height:300})}),(0,_.jsx)("img",{src:f,alt:"Bottom gradient",width:"100%"})]})})]})})})})})]})}},70230:(e,t,s)=>{"use strict";s.d(t,{A:()=>O});var n=s(9950),a=s(12853),i=s(48538),r=s(87094),o=s(41988),l=s(82623),c=s(16673),d=s(76455),u=s(94772),g=s(9898);s.p;var m=s(13967),h=s(81658),p=s(41182),f=s(45375),x=s(35821),y=s(70553),j=s(22748),A=s(80801),_=(s(73181),s(37755)),v=s(33521),b=s(24034),w=s(34288),S=s(4298),C=s(14664),k=s(36875),R=s(59215),P=s(97124),T=s(44414);function E(e){const{shareUrl:t,user:s,video:a,modalVisible:r,onOk:o,onCancel:l}=e,c=(0,P.Ay)(),u=a&&`${a.title}`,g="#digitalpool";return console.log(a),console.log(t),(0,T.jsxs)(n.Fragment,{children:[(0,T.jsxs)(d.mg,{children:[(0,T.jsxs)("title",{children:[a.title," | DigitalPool"]}),(0,T.jsx)("meta",{name:"description",content:a.title}),(0,T.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,T.jsx)("meta",{name:"twitter:title",content:`${a.title} | DigitalPool`}),(0,T.jsx)("meta",{name:"twitter:description",content:a.title}),(0,T.jsx)("meta",{name:"twitter:image",content:a.thumbnail||"https://digitalpool.com/images/fb-image.png"}),(0,T.jsx)("meta",{property:"og:title",content:`${a.title} | DigitalPool`}),(0,T.jsx)("meta",{property:"og:description",content:a.title}),(0,T.jsx)("meta",{property:"og:image",content:a.thumbnail||"https://digitalpool.com/images/fb-image.png"}),(0,T.jsx)("meta",{property:"og:url",content:t}),(0,T.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,T.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,T.jsx)("meta",{property:"og:type",content:"website"}),(0,T.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,T.jsx)(_.A,{title:"Share this video",open:r,onOk:o,onCancel:l,centered:!0,transitionName:"",okText:"Copy",maskTransitionName:"",destroyOnClose:!0,footer:[(0,T.jsx)(i.Ay,{onClick:l,children:"Close"},"back")],children:(0,T.jsxs)("div",{children:[(0,T.jsx)(b.A,{onShareWindowClose:()=>{console.log("close email share")},url:t,quote:u,hashtag:g,className:"email-share-button",children:(0,T.jsx)(w.A,{size:48,round:!0})}),(0,T.jsx)(S.A,{onShareWindowClose:()=>{console.log("close fb share")},url:t,quote:u,hashtag:g,className:"facebook-share-button",style:{marginLeft:10},children:(0,T.jsx)(C.A,{size:48,round:!0})}),(0,T.jsx)(k.A,{onShareWindowClose:()=>{console.log("close twitter share")},url:t,quote:u,title:u,hashtag:g,className:"twitter-share-button",style:{marginLeft:10},children:(0,T.jsx)(R.A,{size:48,round:!0})}),(0,T.jsx)(v.A,{value:t,size:"large",addonAfter:(0,T.jsx)(i.Ay,{type:"link",size:"small",onClick:()=>{navigator.clipboard.writeText(t),c.success("URL copied to clipboard.")},children:"COPY"}),style:{marginTop:10}})]})})]})}function I(e){const{authState:t,user:s,video:a}
23=e,r=window.location.href,[o,l]=(0,n.useState)(!1);return(0,T.jsxs)(n.Fragment,{children:[(0,T.jsx)(j.A,{title:"Share",children:(0,T.jsx)(i.Ay,{type:"text",shape:"circle",size:"large",style:{marginLeft:5},onClick:()=>{l(!0)},children:(0,T.jsx)(A.A,{type:"share-alt",theme:"outlined",style:{fontSize:18}})})}),(0,T.jsx)(E,{shareUrl:r,user:s,video:a,modalVisible:o,onOk:()=>{l(!1)},onCancel:()=>{l(!1)}})]})}const{Text:N}=a.A;const O=(0,c.y)(function(e){const{user:t}=e,s=e.match.params,a=(s.slug,s.id),[c,j]=(0,n.useState)({title:"",description:"",channelId:""});function A(e){}return(0,n.useEffect)(()=>{!async function(e){const t=(await(0,f._)({id:e})).data.items[0];console.log(t),j({title:t.snippet.title,description:t.snippet.description,channelId:t.snippet.channelId,channelTitle:t.snippet.channelTitle,tags:t.snippet.tags,thumbnail:t.snippet.thumbnails.high.url})}(a)},[a]),(0,T.jsxs)(n.Fragment,{children:[(0,T.jsxs)(d.mg,{children:[(0,T.jsxs)("title",{children:[c.title," | DigitalPool"]}),(0,T.jsx)("meta",{name:"description",content:c.title}),(0,T.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,T.jsx)("meta",{name:"twitter:title",content:`${c.title} | DigitalPool`}),(0,T.jsx)("meta",{name:"twitter:description",content:c.title}),(0,T.jsx)("meta",{name:"twitter:image",content:c.thumbnail||"https://digitalpool.com/images/fb-image.png"}),(0,T.jsx)("meta",{property:"og:title",content:`${c.title} | DigitalPool`}),(0,T.jsx)("meta",{property:"og:description",content:c.title}),(0,T.jsx)("meta",{property:"og:image",content:c.thumbnail||"https://digitalpool.com/images/fb-image.png"}),(0,T.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/videos`}),(0,T.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,T.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,T.jsx)("meta",{property:"og:type",content:"website"}),(0,T.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,T.jsx)(g.A,{children:(0,T.jsxs)(u.A,{padding:"0px",children:[(0,T.jsx)("div",{style:{paddingTop:10,paddingBottom:0,paddingLeft:10,paddingRight:10,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:(0,T.jsx)("div",{children:(0,T.jsxs)(i.Ay,{type:"default",shape:"circle",size:"large",ghost:!0,style:{border:"none"},onClick:()=>{e.history.push("/karl-boyes/videos")},children:[(0,T.jsx)(x.A,{style:{color:"#fff",fontSize:18}}),(0,T.jsx)(N,{style:{color:"#fff",textTransform:"uppercase",fontSize:16,fontWeight:500,letterSpacing:1},children:"All Videos"})]})})}),(0,T.jsx)("div",{style:{paddingBottom:40},children:(0,T.jsx)(r.A,{gutter:24,justify:"center",type:"flex",children:(0,T.jsx)(o.A,{xs:24,sm:16,children:(0,T.jsxs)(p.A,{title:(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",whiteSpace:"normal"},children:[(0,T.jsx)("div",{children:c.title}),(0,T.jsx)(I,{video:c,...e})]}),children:[a&&(0,T.jsx)("div",{style:{width:"100%"},children:function(e){return(0,T.jsx)(m.A,{videoId:e,opts:{playerVars:{autoplay:1}},onReady:A,containerClassName:"youtube-container"})}(a)}),(0,T.jsx)("div",{children:c.tags&&c.tags.map((e,t)=>(0,T.jsx)(l.A,{size:"large",children:e},t))}),(0,T.jsxs)("div",{style:{marginTop:20},children:[(0,T.jsx)(h.A,{componentDecorator:(e,t,s)=>(0,T.jsx)("a",{target:"blank",href:e,children:t},s),children:(0,T.jsx)("div",{className:"display-linebreak",style:{fontSize:18},children:c.description})}),(0,T.jsx)("br",{}),(0,T.jsx)(i.Ay,{type:"link",size:"large",children:(0,T.jsxs)("a",{href:`https://www.youtube.com/channel/${c.channelId}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center"},children:[(0,T.jsx)("img",{src:y,alt:"YouTube",height:20}),(0,T.jsxs)(N,{style:{fontSize:20,marginLeft:10},children:[c.channelTitle," YouTube channel"]})]})})]})]})})})})]})})]})})},70553:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAAsCAMAAAAO9CvbAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBUExURUdwTN0AEuUADeQACOMACeMACvgADtEAB+sAC+UACt0ACPkADdMAB/gADfcADtQACPcADeMAC/////739/jl5vbR0vGusvabn++EiOxrcu9SWeg4QOYeKewYIfgADvQADvEADu8ADuwADegADOQADOEACt0ACtkACdYACdIACNEACC2zrAEAAAASdFJOUwAGDR0zR1lZbY6xs8zT5ujy906PJ64AAAGkSURBVHjapdbdattAEAXg
23c86uHcuxo5TeheK0ufBP3/+lWuhNbppieacaWZRgVlK1+ZhhWcRhJFjE4iPYLy1f+nZKQlcJV+btZWbvwpQoQkDXvC4PePV6BZA844u3pWTJ0NOi2u7m2FZRuNLKo/PcL4XO8mH3PI8Pj3Dh3rNz7SoBggJRIAoAq8fnErslAW2/FvH3FkuJEFEmCB5mDjjBAoDl40vGt6enLy8TIiTk8HI+v50xiowgspLTAsNCM/jNsEvj0zkEhDAsNR43DCCFMSk1599vyCIQMcpaTNIy8wgQPk/EfXrzZ2Dyr6k0jBDzkyeZQmRmMhExJShohQzzMDGMDAorImt8MqkQKgAFYSloDYyGORIlhplFQxbDaNQZIvJC8OioC3BX77MOh/2EiJiQRcOEHwbE+lBkvwmQoVACZBeUMfPwT7BEMgCL+lhgv4loaf2pIHxYCS0u6sP8rA92utscj6fv/+90PK0XxJVita5Pbjrn6s0q8t1Vil7dTuiE23P870JlliyZ9eEOSRD9XreHtL/KWdfWFjJ4u+PoT+oviFrXk3Bc5cEAAAAASUVORK5CYII="},87121:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var n=s(9950),a=s(12853),i=s(87094),r=s(41988),o=s(48538),l=s(41182),c=(s(94826),s(94772)),d=s(9898),u=s(76455);s.p;const g=s.p+"static/media/banner.d05309626592379cf348.jpeg";s(19248);var m=s(45375),h=s(4159),p=s.n(h),f=s(44414);const{Text:x,Title:y}=a.A,j="UCz6X-sJnuUWZuhnf0aaXioQ",A=8;function _(e){const{user:t}=e,[s,a]=(0,n.useState)(null),[h,_]=(0,n.useState)(),[v,b]=(0,n.useState)([]),[w,S]=(0,n.useState)(!1),C=e.match.params.slug;async function k(){if(!w){let e=await(0,m.A)({channelId:j,maxResults:A,part:"snippet,contentDetails",...h&&{pageToken:h}}),t=e.data.items,s=e.data.nextPageToken;s?_(s):S(!0),console.log(e),console.log(s);const n=[...v,...t];b(n)}}return(0,n.useEffect)(()=>{k()},[]),(0,f.jsxs)(n.Fragment,{children:[(0,f.jsxs)(u.mg,{children:[(0,f.jsxs)("title",{children:[t.first_name," ",t.last_name," | DigitalPool"]}),(0,f.jsx)("meta",{name:"description",content:`Watch pool videos by ${t.first_name} ${t.last_name}`}),(0,f.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,f.jsx)("meta",{name:"twitter:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,f.jsx)("meta",{name:"twitter:description",content:`Watch pool videos by ${t.first_name} ${t.last_name}`}),(0,f.jsx)("meta",{name:"twitter:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,f.jsx)("meta",{property:"og:title",content:`${t.first_name} ${t.last_name} | DigitalPool`}),(0,f.jsx)("meta",{property:"og:description",content:`Watch pool videos by ${t.first_name} ${t.last_name}`}),(0,f.jsx)("meta",{property:"og:image",content:t.avatar||"https://digitalpool.com/images/fb-image.png"}),(0,f.jsx)("meta",{property:"og:url",content:`https://www.digitalpool.com/${t.slug}/videos`}),(0,f.jsx)("meta",{property:"og:site_name",content:"digitalpool.com"}),(0,f.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,f.jsx)("meta",{property:"og:type",content:"website"}),(0,f.jsx)("meta",{property:"fb:app_id",content:"1697957547011275"})]}),(0,f.jsxs)(d.A,{children:[(0,f.jsx)("img",{src:g,width:"100%",alt:"Banner"}),(0,f.jsx)(c.A,{children:(0,f.jsx)(i.A,{gutter:24,justify:"center",type:"flex",children:(0,f.jsxs)(r.A,{xs:24,style:{paddingTop:0,paddingBottom:0},children:[(0,f.jsx)(i.A,{gutter:16,type:"flex",children:v.map((t,a)=>{const i=t.snippet;return(0,f.jsx)(r.A,{xs:24,sm:12,md:8,lg:8,xl:8,xxl:6,children:(0,f.jsx)(l.A,{hoverable:!0,loading:s,cover:(0,f.jsx)(n.Fragment,{children:i.thumbnails&&i.thumbnails.high.url?(0,f.jsx)("div",{style:{display:"flex",alignItems:"center",overflow:"hidden"},children:(0,f.jsx)("img",{alt:"Logo",src:i.thumbnails.high.url,style:{width:"100%"}})}):(0,f.jsx)("div",{style:{height:300,overflow:"hidden",backgroundRepeat:"no-repeat",backgroundSize:"cover"}})}),onClick:()=>{console.log(i),t&&t.contentDetails&&t.contentDetails.upload&&t.contentDetails.upload.videoId&&e.history.push(`/${C}/videos/${t.contentDetails.upload.videoId}`)},children:(0,f.jsx)(l.W,{title:(0,f.jsx)(y,{level:4,children:i.title}),description:(0,f.jsx)(n.Fragment,{children:(0,f.jsx)(x,{children:p()(i.publishedAt).format("llll")})})})})},a)})}),(0,f.jsx)(i.A,{gutter:24,justify:"center",type:"flex",children:(0,f.jsx)(o.Ay,{type:"primary",size:"large",onClick:()=>{k()},style:{marginTop:10,marginBottom:10},children:"Show More"})})]})})})]})]})}},94112:(e,t,s)=>{"use strict";s.d(t,{A:()=>ee});var n=s(9950),a=s(93047),i=s(16673),r=s(12853),o=s(59727),l=s(87094),c=s(41988),d=s(47293),u=s(41182),g=s(79378),m=s(67596),h=s(37755),p=s(22748),f=s(48538),x=s(80801),y=s(38107),j=s(17535),A=s(37740),_=s(76363),v=s(97124),b=s(13239),w=s(44414);function S(e){const{authState:t,user:s}=e,a=(0,v.Ay)(),[i,r]=h.A.useModal(),[o]=(0,A.n)(j.qb),[l]=(0,A.n)(j.T2),[c]=(0,A.n)(j.Iy),d=(0,_.IT)(y.pU,{variables:{from_user_id:t&&t.user&&t.user.id,to_user_id:s.id}}),u=(0,_.IT)(y.JZ,{variables:{user_id:t&&t.user&&t.user.id,friend_id:s.id}}),g=d&&d.data&&d.data.friend_requests&&d.data.friend_requests[0]&&d.data.friend_requests[0].from_user_id===(t&&t.user&&t.user.id),m=u&&u.data&&u.data.friends&&u.data.friends[0]&&u.data.friends[0].user1_id===(t&&t.user&&t.user.id)||u&&u.data&&u.data.friends&&u.data.friends[0]&&u.data.friends[0].user2_id===(t&&t.user&&t.user.id);function S(e){i.confirm({title:`Are you sure you want to unfriend ${e.first_name}?`,content:"This action cannot be undone.",centered:!0,transitionName:"",maskTransitionName:"",okText:"Unfriend",onOk(){var s;l({variables:{user_id:(s=e).id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:y.LL,variables:{id:s.id}},{query:y.m$,variables:{user_id:t&&t.user&&t.user.id}}]}).then(e=>{console.log(e),a.success(`You unfriended ${s.first_name} ${s.last_name}`)}).catch(e=>(console.log(e),a.info("There was an error",e),e))},onCancel(){}})}return(0,w.jsxs)(n.Fragment,{children:[r,m?(0,w.jsx)(p.A,{title:`Unfriend ${s.first_name}`,placement:"bottom",children:(0,w.jsxs)(f.Ay,{type:"ghost",onClick:()=>{S(s)},style:{marginLeft:6},children:[(0,w.jsx)(b.A,{})," Friends"]})}):g?(0,w.jsx)(p.A,{title:"Friend request sent",placement:"bottom",children:(0,w.jsx)(f.Ay,{type:"ghost",disabled:!0,style:{marginLeft:6},children:(0,w.jsx)(x.A,{type:"user-add"})})}):(0,w.jsx)(p.A,{title:"Add friend",placement:"bottom",children:(0,w.jsx)(f.Ay,{type:"ghost",onClick:()=>{o({variables:{objects:[{from_user_id:t&&t.user&&t.user.id,to_user_id:s.id,is_accepted:!1}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:y.pU,variables:{from_user_id:t&&t.user&&t.user.id,to_user_id:s.id}}]}).then(e=>{console.log(e),a.success(`Friend request sent to ${s.first_name} ${s.last_name}`),c({variables:{objects:[{name:"Friend Request",action:"ACCEPT_FRIEND_REQUEST",type:"REDIRECT_LINK",title:"Friend Request",description:`You received a friend request from ${t.user.displayName}`,user_id:s.id,data:{redirect_url:`/${t&&t.user&&t.user.slug}`,requestor_id:t&&t.user&&t.user.id,slug:t&&t.user&&t.user.id}}]}}).then(e=>{console.log(e)}).catch(e=>{console.log(e)})}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?a.error("You already sent a friend request to this user."):a.error(e&&e.message||JSON.stringify(e)),console.log(e)})},children:(0,w.jsx)(x.A,{type:"user-add"})})})]})}var C=s(8750);function k(e){const{authState:t,user:s}=e,a=(0,v.Ay)(),[i]=(0,A.n)(j.an),[r]=(0,A.n)(j.$t),o=(0,_.IT)(y.s5,{variables:{follower_user_id:t&&t.user&&t.user.id,followed_user_id:s.id}}),l=o&&o.data&&o.data.followers&&o.data.followers[0]&&o.data.followers[0].follower_user_id===(t&&t.user&&t.user.id);return(0,w.jsx)(n.Fragment,{children:l?(0,w.jsx)(p.A,{title:`Unfollow ${s.first_name}`,placement:"bottom",children:(0,w.jsxs)(f.Ay,{type:"primary",ghost:!0,onClick:()=>{r({variables:{follower_user_id:t&&t.user&&t.user.id,followed_user_id:s.id},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:y.lR,variables:{slug:s.slug}},{query:y.s5,variables:{follower_user_id:t&&t.user&&t.user.id,followed_user_id:s.id}},{query:y.Vx,variables:{followed_user_id:s.id}}]}).then(e=>{console.log(e),a.success(`Unfollowed ${s.first_name} ${s.last_name}`)}).catch(e=>(console.log(e),a.info("There was an error",e),e))},children:[(0,w.jsx)(b.A,{})," Following"]})}):(0,w.jsxs)(f.Ay,{type:"primary",ghost:!0,onClick:()=>{i({variables:{objects:[{follower_user_id:t&&t.user&&t.user.id,followed_user_id:s.id}]},notifyOnNetworkStatusChange:!0,awaitRefetchQueries:!0,refetchQueries:[{query:y.lR,variables:{slug:s.slug}},{query:y.s5,variables:{follower_user_id:t&&t.user&&t.user.id,followed_user_id:s.id}},{query:y.Vx,variables:{followed_user_id:s.id}}]}).then(e=>{console.log(e),a.success(`Now following ${s.first_name} ${s.last_name}`)}).catch(e=>{e.message&&e.message.includes("Uniqueness violation")?a.error("You already followed this user."):a.error(e&&e.message||JSON.stringify(e)),console.log(e)})},children:[(0,w.jsx)(C.A,{})," Follow"]})})}var R=s(25356),P=s(45520),T=s(63186),E=s(73181),I=s.n(E),N=s(33521),O=s(10606),q=s(24034),z=s(34288),$=s(4298),F=s(14664),U=s(36875),D=s(59215),L=s(81052),B=s.n(L),M=s(11554),Q=s(93655);const{Text:H,Title:Y}=r.A,{TextArea:X}=N.A,{TabPane:W}=O.A;function J(e){const{post:t,modalVisible:s,onOk:a,onCancel:i}
23=e,r=(0,v.Ay)(),[o,l]=(0,n.useState)("iframe"),c=window.location.href,d=t&&`${t.name} Tournament`,u="#digitalpool";return(0,w.jsx)(n.Fragment,{children:(0,w.jsxs)(h.A,{title:"Share profile",open:s,onOk:a,onCancel:i,centered:!0,transitionName:"",okText:"Copy",bodyStyle:{padding:20},maskTransitionName:"",destroyOnClose:!0,footer:[(0,w.jsx)(f.Ay,{onClick:i,children:"Close"},"back")],children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(q.A,{url:c,quote:d,hashtag:u,className:"email-share-button",children:(0,w.jsx)(z.A,{size:48,round:!0})}),(0,w.jsx)($.A,{url:c,quote:d,hashtag:u,className:"facebook-share-button",style:{marginLeft:10},children:(0,w.jsx)(F.A,{size:48,round:!0})}),(0,w.jsx)(U.A,{url:c,quote:d,hashtag:u,className:"twitter-share-button",style:{marginLeft:10},children:(0,w.jsx)(D.A,{size:48,round:!0})}),(0,w.jsx)(N.A,{value:c,size:"large",addonAfter:(0,w.jsx)(f.Ay,{type:"link",size:"small",onClick:()=>{navigator.clipboard.writeText(c),r.success("URL copied to clipboard.")},children:"COPY"}),style:{marginTop:10}})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(Y,{level:4,style:{marginTop:20},children:"Scan QR Code"}),(0,w.jsx)("div",{className:"qr-code",style:{display:"inline-block"},children:(0,w.jsx)(M.QRCode,{value:c,size:300,logoOpacity:1,ecLevel:"H",logoImage:Q,logoWidth:100,logoHeight:100})}),(0,w.jsx)("div",{style:{marginTop:10},children:(0,w.jsx)(f.Ay,{onClick:()=>{!function(){const e=document.querySelector(".qr-code");r.loading({content:"Generating QR code PNG. This could take a minute...",key:"pdf",duration:0}),B()(e,{dpi:300}).then(e=>{const s=`${t.slug}-qr-code.png`;var n=document.createElement("a");"string"===typeof n.download?(n.href=e.toDataURL("image/png").replace("image/png","image/octet-stream"),n.download=s,document.body.appendChild(n),n.click(),document.body.removeChild(n),r.success({content:`${s} downloaded`,key:"pdf",duration:2})):window.open(s)})}()},children:"Download Image"})})]})]})})}var K=s(85093);function V(e){const{authState:t,user:s,post:a}=e,i=window.location.href,[r,o]=(0,n.useState)(!1);return(0,w.jsxs)(n.Fragment,{children:[(0,w.jsx)(p.A,{title:"Share",children:(0,w.jsx)(f.Ay,{type:"text",shape:"circle",size:"large",style:{marginLeft:5},onClick:()=>{o(!0)},children:(0,w.jsx)(x.A,{type:"share-alt",theme:"outlined",style:{fontSize:18}})})}),(0,w.jsx)(K.A,{url:i,children:e=>(0,w.jsxs)("span",{style:{cursor:"auto"},children:[e," ",I()("Share",e)," 0"]})}),(0,w.jsx)(J,{shareUrl:i,user:s,post:a,modalVisible:r,onOk:()=>{o(!1)},onCancel:()=>{o(!1)}})]})}const{Title:G,Text:Z}=r.A;const ee=(0,i.y)(function(e){const{authState:t,match:s,theme:i,user:r,fargoLoading:h,fargoData:p}=e,f=r&&r.followers_aggregate&&r.followers_aggregate.aggregate&&r.followers_aggregate.aggregate.count,x=r&&r.following_aggregate&&r.following_aggregate.aggregate&&r.following_aggregate.aggregate.count,y=(r&&r.friends1_aggregate&&r.friends1_aggregate.aggregate&&r.friends1_aggregate.aggregate.count)+(r&&r.friends2_aggregate&&r.friends2_aggregate.aggregate&&r.friends2_aggregate.aggregate.count);return(0,w.jsxs)(n.Fragment,{children:[(0,w.jsxs)(u.A,{title:(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,w.jsx)("div",{children:"Profile"}),(0,w.jsx)("div",{style:{marginLeft:10},children:(0,w.jsxs)(Z,{type:"secondary",children:["ID: ",r.id]})})]}),(0,w.jsx)("div",{children:(0,w.jsx)(V,{})})]}),bodyStyle:{padding:10},children:[(0,w.jsx)("div",{style:{padding:10,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)("div",{className:"gradient-border",children:t&&t.user&&t.user.id===r.id?(0,w.jsx)(R.A,{user:r,...e}
23):(0,w.jsx)(o.A,{size:150,src:r?r&&r.photo_url||r&&r.avatar:t&&t.user&&t.user.photoURL,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(g.A,{style:{fontSize:50,color:"#000",position:"relative",top:10}})})})}),(0,w.jsx)("div",{style:{paddingTop:10,paddingLeft:20,paddingRight:20},children:(0,w.jsxs)("div",{style:{marginBottom:20,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[r.country&&(0,w.jsx)(m.A,{country:r.country,left:0}),(0,w.jsxs)(G,{level:4,style:{marginBottom:0},children:[r.first_name," ",r.last_name]}),(0,w.jsx)("div",{style:{marginLeft:8},children:(0,w.jsx)(P.A,{user:r,...e})})]}),(0,w.jsx)("div",{children:r.city&&r.region&&(0,w.jsx)("div",{style:{display:"flex",alignItems:"center"},children:r.city&&r.region&&(0,w.jsxs)("div",{children:[r.city,", ",r.region]})})}),r&&t&&t.user&&t.user.id===r.id&&(0,w.jsx)("div",{children:(0,w.jsx)(Z,{type:"secondary",children:r.email})}),(0,w.jsx)("div",{children:(0,w.jsxs)(a.N_,{to:`/${r.slug}`,children:["@",r.slug]})}),(0,w.jsx)("div",{style:{marginTop:10},children:t&&t.user&&t.user.id===r.id?(0,w.jsx)(n.Fragment,{}):(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,w.jsx)(k,{...e}),(0,w.jsx)(S,{...e})]})})]})}),(0,w.jsx)("div",{style:{marginLeft:20,marginRight:20},children:(0,w.jsxs)(l.A,{gutter:16,type:"flex",justify:"center",style:{alignItems:"center",width:"100%"},children:[(0,w.jsx)(c.A,{span:8,children:(0,w.jsx)(d.A,{title:"Friends",value:y||0})}),(0,w.jsx)(c.A,{span:8,children:(0,w.jsx)(d.A,{title:"Followers",value:f||0})}),(0,w.jsx)(c.A,{span:8,children:(0,w.jsx)(d.A,{title:"Following",value:x||0})})]})})]}),(0,w.jsx)("br",{}),(0,w.jsx)(u.A,{title:(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("img",{src:T,alt:"Fargo Logo",height:20,style:{marginRight:10}}),"FargoRate"]}),(0,w.jsx)("div",{style:{marginLeft:10,letterSpacing:.5},children:(0,w.jsxs)(Z,{type:"secondary",children:["ID: ",r.fargo_id||p&&p.readable_id||r.fargo_readable_id||"-"]})})]}),bodyStyle:{paddingTop:10,paddingBottom:10},children:(0,w.jsx)(l.A,{gutter:16,type:"flex",justify:"center",style:{alignItems:"center",width:"100%"},children:h?(0,w.jsxs)(n.Fragment,{children:[(0,w.jsx)(c.A,{span:12,children:(0,w.jsx)(d.A,{title:"Rating",value:"-",style:{fontSize:10}})}),(0,w.jsx)(c.A,{span:12,children:(0,w.jsx)(d.A,{title:"Robustness",value:"-",style:{fontSize:10}})})]}):(0,w.jsxs)(n.Fragment,{children:[(0,w.jsx)(c.A,{span:12,children:(0,w.jsx)(d.A,{title:"Rating",value:p&&p.effectiveRating||p&&p.rating||"N/A"})}),(0,w.jsx)(c.A,{span:12,children:(0,w.jsx)(d.A,{title:"Robustness",value:p&&p.robustness||0})})]})})})]})})},98258:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var n=s(9950),a=s(65059),i=s(48538),r=s(70410),o=s(77375);function l(e){const t=(0,n.useRef)(null),s=(0,n.useRef)(null);return s.current&&s.current.update(e),(0,n.useEffect)(()=>(s.current=new(0,o.LC)({...e,ref:t}),()=>{s.current=null}),[]),n.createElement("div",{ref:t})}var c=s(44414);function d(e){const{text:t,onSetText:s,buttonType:o,buttonSize:d}=e,[u,g]=(0,n.useState)(!1);return(0,c.jsx)(a.A,{content:(0,c.jsx)("span",{children:(0,c.jsx)(l,{onEmojiSelect:function(e){let n=e.unified.split("-"),a=[];n.forEach(e=>a.push("0x"+e));let i=String.fromCodePoint(...a);s(t+i),g(!1)},theme:"dark",emoji:"point_up",defaultSkin:3,showPreview:!1,sheetSize:32,perLine:8,title:"Pick an emoji",data:r})}),placement:"right",title:"Title",trigger:"click",open:u,onOpenChange:function(e){g(e)},children:(0,c.jsx)(i.Ay,{type:o||"secondary",ghost:!0,size:d||"large",style:{padding:"0px 14px"},children:(0,c.jsx)("span",{role:"img","aria-label":"Smiley face",style:{fontSize:20},children:"\ud83d\ude0e"})})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.