1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7687],{85021:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/[id]",function(){return t(9674)}])},67638:function(e,n,t){"use strict";t.d(n,{l:function(){return H}});var r=t(85893),o=t(67294),a=t(46073),i=t(1067),s=t(34051),u=t.n(s),c=t(21964),l=t(61994),d=t(48175),p=t(84164),f=t(24487),m=t(11163),h=t(6388),v=t(50319),g=t(96486),b=t(246),y=t.n(b),w=t(45697),j=t(65733),_=t(51872),x=t(57649),C=function(e){var n=e.user,t=e.currentValue,o=e.handleSelect;return(0,r.jsx)(x.o,{Element:"label",htmlFor:"user-".concat(n.id,"-selector"),children:(0,r.jsx)(_.H,{user:n,showClub:!1,showHandicap:!1,children:(0,r.jsx)(j.g,{id:"user-".concat(n.id,"-selector"),input:{checked:t,onChange:function(){return o(n)}}})})})};C.propTypes={user:w.PropTypes.object,handleSelect:w.PropTypes.func.isRequired,currentValue:w.PropTypes.bool};var P=t(18211),S=t.n(P),k=function(e){var n;return(0,r.jsx)("div",{className:S().wrapper,children:(0,r.jsx)(y(),{useWindow:!1,hasMore:e.hasMore,loadMore:e.loadMore,children:(null===(n=e.users)||void 0===n?void 0:n.length)?e.users.map((function(n){var t;return(0,r.jsx)(C,{user:n,handleSelect:e.handleSelect,currentValue:void 0!==(null===(t=e.selectedUsers)||void 0===t?void 0:t.find((function(e){return e.id===n.id})))},n.id)})):(0,r.jsx)("p",{className:S().emptyNotice,children:"Didn't find any contact..."})})})},A=t(63357);function O(){var e,n,t=(e=["\n fragment targetUserRelationship on User {\n id\n fullname\n \n official\n verifiedAmbassador\n \n avatar {\n id\n uris {\n large\n }\n }\n }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return O=function(){return t},t}var R=(0,A.Ps)(O());function M(){var e,n,t=(e=["\n query currentUserConnections($after: String, $term: String) {\n account {\n id\n user {\n id\n relationships(first: 20, after: $after, term: $term) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n user {\n ...targetUserRelationship\n }\n }\n }\n }\n }\n }\n }\n\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return M=function(){return t},t}var N=(0,A.Ps)(M(),R);function F(){var e,n,t=(e=["\n mutation shareInChat($content: String, $recipients: [Polymorphic!]!, $richLinks: [String!]) {\n message {\n sendToMany(content: $content, targets: $recipients, richLinks: $richLinks) {\n id\n }\n }\n }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return F=function(){return t},t}var T=(0,A.Ps)(F()),I=t(88679),E=t.n(I);function D(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function z(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}function B(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){z(a,r,o,i,s,"next",e)}function s(e){z(a,r,o,i,s,"throw",e)}i(void 0)}))}}function L(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){L(e,n,t[n])}))}return e}function q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}
1(e,n)||U(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,n){if(e){if("string"===typeof e)return D(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?D(e,n):void 0}}var Z=function(e){var n,t,a=(0,m.useRouter)(),s=(0,f.xJ)().currentUser,b=(0,o.useState)([]),y=b[0],w=b[1],j=(0,o.useState)(""),_=j[0],x=j[1],C=(0,o.useState)(""),P=C[0],S=C[1],A=(0,o.useState)(""),O=A[0],R=A[1],M=(0,o.useState)(!1),F=M[0],I=M[1],D=(0,o.useState)(!1),z=D[0],L=D[1],U=(0,o.useRef)(null),Z=(0,h.aM)(N,{skip:!s||null==s.id,variables:{term:e.term}}),$=q((0,v.D)(T),2),H=$[0],V=$[1].error,Q=Z.loading,Y=Z.data,J=Z.refetch,X=Z.fetchMore,K=Z.variables;if(Q)return null;var ee=(null===Y||void 0===Y||null===(n=Y.account)||void 0===n?void 0:n.user.relationships.edges.map((function(e){return e.node.user})))||[],ne=null===Y||void 0===Y||null===(t=Y.account)||void 0===t?void 0:t.user.relationships.pageInfo,te=function(e){var n=(0,g.debounce)((function(n,t){J({term:e}).then(n).catch(t)}),400);return new Promise(n)},re=function(){var n=B(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,H({variables:{recipients:y.map((function(e){return{type:"User",id:e.id}})),content:_,richLinks:["".concat("https://www.allsquaregolf.com").concat(e.linkUrl||a.asPath)]}});case 3:if(null==V){n.next=6;break}return e.close(),n.abrupt("return");case 6:n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(0),console.warn("Unable to share content"),e.close(),n.abrupt("return");case 13:R(y.map((function(e){return e.fullname})).join(", ")),w([]),x(""),S(""),L(!1),e.close(),U.current.show(),setTimeout(U.current.hide,2e3);case 21:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(){return n.apply(this,arguments)}}(),oe=function(){var e=B(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.currentTarget.value,S(t),I(!0),e.next=5,te(t);case 5:I(!1);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.w,{handleRef:e.handleRef,title:"Share",className:E().modal,children:(0,r.jsxs)("div",{className:E().contentWrapper,children:[(0,r.jsxs)("div",{className:E().contactSection,children:[(0,r.jsxs)("div",{className:E().searchWrapper,children:[(0,r.jsx)(l.n,{placeholder:"Search for a contact...",className:E().searchInput,input:{value:P,onChange:oe}}),F&&(0,r.jsx)("div",{className:E().loaderWrapper,children:(0,r.jsx)(p.s,{className:E().loader,size:7})})]}),(0,r.jsx)(k,{users:ee,handleSelect:function(e){w((function(n){var t=n.findIndex((function(n){return n.id===e.id}));if(t<0)return G(n).concat([e]);var r=G(n);return r.splice(t,1),r}))},selectedUsers:y,hasMore:null===ne||void 0===ne?void 0:ne.hasNextPage,loadMore:function(){var e;(null===(e=Y.account)||void 0===e?void 0:e.user.relationships.pageInfo.hasNextPage)&&X({query:N,variables:W({},K,{after:Y.account.user.relationships.pageInfo.endCursor}),updateQuery:function(e,n){var t=n.fetchMoreResult;return{account:W({},e.account,{user:W({},e.account.user,{relationships:W({},e.account.user.relationships,{edges:G(e.account.user.relationships.edges).concat(G(t.account.user.relationships.edges)),pageInfo:t.account.user.relationships.pageInfo})})})}}})}})]}),(0,r.jsxs)("div",{className:E().messageSection,children:[(0,r.jsx)(l.n,{className:E().messageInput,placeholder:"Write a message...",input:{value:_,onCh
1ange:function(e){var n=e.currentTarget.value;return x(n)}}}),(0,r.jsx)(i.z,{type:"button",size:"medium",className:E().submitButton,onClick:function(){L(!0),re()},disabled:!y.length||z,children:"Send"})]})]})}),(0,r.jsx)(d.r,{modalRef:function(e){U.current=e},onHide:e.onHide,action:"Success",message:"Successfully shared with ".concat(O,".")})]})},$=t(62124),H=function(e){var n=(0,o.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[e.icon?(0,r.jsx)($.B,{className:e.className,icon:e.icon,onClick:function(){return n.current.show()},variant:e.variant,loginRequired:!0}):(0,r.jsx)(i.z,{className:e.className,onClick:function(){var e;return null===(e=n.current)||void 0===e?void 0:e.show()},variant:e.variant,size:"medium",loginRequired:!0,children:(0,r.jsx)("span",{children:a.Z.current.shareButton.shareAction})}),(0,r.jsx)(Z,{handleRef:function(t){e.handleRef&&e.handleRef(t),n.current=t},onHide:e.onHide,close:function(){return n.current.hide()},linkUrl:e.linkUrl})]})}},20548:function(e,n,t){"use strict";t.d(n,{$:function(){return d}});var r=t(85893),o=(t(67294),t(59301)),a=t.n(o);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=12.4,c=function(e,n){var t=142.4/(n-1),r=u-t;return Math.max(e*t+r,u)},l=function(e,n){var t=(56.8-90.4)/(n-1);return e*t+(90.4-t)},d=function(e){var n,t,o=e.gradient,u=void 0!==o&&o,d=s(e,["gradient"]),p=(n=d.value,(t=d.total)?Math.min(1,n/t):0),f=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){i(e,n,t[n])}))}return e}({width:"".concat(100*p,"%")},u?{background:"hsl(".concat(c(d.value,d.total),", ").concat(l(d.value,d.total),"%, 50%)")}:{});return(0,r.jsxs)("div",{className:a().coloredBar,children:[(0,r.jsx)("div",{className:a().track}),(0,r.jsx)("div",{className:a().fill,style:f})]})}},91789:function(e,n,t){"use strict";t.d(n,{S:function(){return p}});var r=t(67294),o=t(45697),a=t.n(o);function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
1function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,n){return!n||"object"!==l(n)&&"function"!==typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function c(e,n){return c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},c(e,n)}var l=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function d(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=s(e);if(n){var o=s(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return u(this,t)}}var p=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(a,e);var n,t,r,o=d(a);function a(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e)).state={hasError:!1},n}return n=a,(t=[{key:"componentDidCatch",value:function(e){this.setState({hasError:!0}),console.error(e)}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}])&&i(n.prototype,t),r&&i(n,r),a}(r.Component);p.propTypes={children:a().any}},21192:function(e,n,t){"use strict";t.d(n,{c:function(){return c}});var r=t(85893),o=(t(67294),t(94184)),a=t.n(o),i=t(94769),s=t.n(i);function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=function(e){var n;return(0,r.jsx)("div",{className:a()(e.className,(n={},u(n,s().withSubheader,e.withSubheader),u(n,s().headerAwareContainer,!e.fullscreen),u(n,s().headerAwareFullscreenContainer,e.fullscreen),n)),children:e.children})}},7743:function(e,n,t){"use strict";t.d(n,{s:function(){return p}});var r=t(85893),o=(t(67294),t(94184)),a=t.n(o),i=t(41664),s=t(34165),u=t(73031),c=t(66839),l=t(58334),d=t.n(l),p=function(e){var n,t=e.followable,o=e.className,l=e.subname,p=e.withFollowButton,f=void 0===p||p;return(0,r.jsxs)("div",{className:a()(d().followableRow,o),children:[(0,r.jsx)(s.$,{src:null===(n=t.logo)||void 0===n?void 0:n.uris.large,sizes:{sm:"44px",md:"44px",lg:"44px"},alt:"".concat(t.name," Logo"),className:d().picture,isSquare:!0}),(0,r.jsxs)("div",{className:d().content,children:[(0,r.jsx)(i.default,{href:(0,c.showEntity)(t),children:(0,r.jsx)("a",{className:d().nameAnchor,children:t.name})}),l&&(0,r.jsx)("p",{className:d().subname,children:l})]}),f&&(0,r.jsx)(u.Z,{following:t.currentUserIsFollowing,target:{id:t.id,type:t.__typename},size:"short"})]})}},79090:function(e,n,t){"use strict";t.d(n,{U:function(){return h}});var r=t(85893),o=t(67294),a=t(97926),i=t(34051),s=t.n(i),u=t(72078),c=t(70040),l=t
1(77314),d=t(30650),p=t.n(d);function f(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}var m=function(e){var n;if(!e.mediaId)return null;var t=(0,o.useState)(e.medias.findIndex((function(n){return n.id===e.mediaId}))),a=t[0],i=t[1],d=function(){return i(a-1)},m=function(){var n,t=(n=s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!("function"===typeof e.loadMore&&e.mediasCount>e.medias.length&&e.medias.length-a<5)){n.next=3;break}return n.next=3,e.loadMore();case 3:i(a+1);case 4:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){f(a,r,o,i,s,"next",e)}function s(e){f(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();if(!e.medias[a])return null;var h,v=e.medias[a],g=e.social||v,b=g.comments,y=g.commentsCount,w=g.likes,j=g.likesCount,_=g.fragment,x=void 0===_?e.social&&e.social.fragment?e.social.fragment:{name:"AsPostPictureFragment",gql:c.q}:_,C=g.target,P=void 0===C?e.social&&e.social.target?e.social.target:{id:v.id,type:v.__typename}:C,S=a<("function"===typeof e.loadMore?e.mediasCount:e.medias.length)-1,k=a>0;return(null===(n=e.medias)||void 0===n?void 0:n.length)>1?(0,r.jsx)(l.ZP,{className:p().picturesModalSwipeableViews,index:a,onChangeIndex:function(){return i},children:null===(h=e.medias)||void 0===h?void 0:h.map((function(n,t){var o;return(0,r.jsx)(u.s,{author:e.author,media:n,likes:w,likesCount:j,comments:b,commentsCount:y,fragment:x,target:P,reportableTarget:e.reportableTarget,content:n.content||e.content,legend:"".concat(t+1,"/").concat(e.mediasCount),prev:k&&d,next:S&&m,onCompleted:e.onCompleted,focusComment:e.focusComment},"".concat(null===(o=n.uris)||void 0===o?void 0:o.large,"-").concat(n.id))}))}):(0,r.jsx)(u.s,{author:e.author,media:v,likes:w,likesCount:j,comments:b,commentsCount:y,fragment:x,target:P,reportableTarget:e.reportableTarget,content:v.content||e.content,legend:"".concat(a+1,"/").concat(e.mediasCount),prev:k&&d,next:S&&m,onCompleted:e.onCompleted,focusComment:e.focusComment})},h=function(e){return(0,r.jsx)(a.n,{handleRef:e.handleRef,size:"borderless",children:(0,r.jsx)(m,{author:e.author,reportableTarget:e.reportableTarget,content:e.content,medias:e.medias,social:e.social,mediasCount:e.mediasCount,mediaId:e.mediaId,loadMore:e.loadMore,onCompleted:e.onCompleted,focusComment:e.focusComment})})}},61332:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(34051),o=t.n(r),a=t(85893),i=t(67294),s=t(21964),u=t(48175),c=t(1691);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}function p(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){d(a,r,o,i,s,"next",e)}function s(e){d(a,r,o,i,s,"throw",e)}i(void 0)}))}}function f(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,n){return!n||"object"!==b(n)&&"function"!==typeof n?l(e):n}function g(e,n){return g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},g(e,n)}var b=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function y(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=h(e);if(n){var o=h(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return v(this,t)}}var w="Your review has successfully been published.",j=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&g(e,n)}(d,e);var n,t,r,i=y(d);function d(){var e;f(this,d),(e=i.apply(this,arguments)).node=null,e.successNode=null;var n=l(e);return e.handleSuccess=p(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.node.hide(),n.successNode.show(),setTimeout(n.successNode.hide,1500);case 3:case"end":return e.stop()}}),e)}))),e.handleRef=function(n){e.node=n,e.props.handleRef&&e.props.handleRef(n)}
1,e.handleSuccessRef=function(n){e.successNode=n},e}return n=d,(t=[{key:"render",value:function(){var e=this.props,n=e.review,t=e.club;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.w,{handleRef:this.handleRef,title:"Review",icon:{name:"Star"},size:"medium",children:(0,a.jsx)(c.Z,{initialValues:n,club:t,onSuccess:this.handleSuccess})}),(0,a.jsx)(u.r,{modalRef:this.handleSuccessRef,action:"Published",message:w})]})}}])&&m(n.prototype,t),r&&m(n,r),d}(i.Component)},27287:function(e,n,t){"use strict";t.d(n,{e:function(){return i}});var r=t(85893),o=t(67294),a=t(10831),i=function(e){var n=(0,o.useState)(e.input.value||void 0),t=n[0],i=n[1];return(0,r.jsx)(a.S,{className:e.className,starProps:e.starProps,value:Number.parseInt(t,10),onMouseEnter:i,onMouseLeave:function(){return i(e.input.value)},onChange:e.input.onChange})}},98249:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var r=t(63357),o=t(58109),a=t(94026);function i(){var e,n,t=(e=["\n fragment AsPostAlbumFragment on Album {\n id\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n title\n type\n\n picturesCount\n pictures {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n width\n height\n uris {\n large\n }\n\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n }\n }\n }\n }\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var s=(0,r.Ps)(i(),o.f,a._)},54506:function(e,n,t){"use strict";t.d(n,{e:function(){return u}});var r=t(63357),o=t(58109),a=t(94026),i=t(50859);function s(){var e,n,t=(e=["\n fragment AsPostAttendingFragment on Attending {\n id\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n event {\n ...AsPostEventFragment\n }\n }\n ","\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return s=function(){return t},t}var u=(0,r.Ps)(s(),o.f,a._,i.t)},3301:function(e,n,t){"use strict";t.d(n,{G:function(){return s}});var r=t(63357),o=t(58109),a=t(94026);function i(){var e,n,t=(e=['\n fragment AsPostCheckinFragment on Checkin {\n id\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n\n content: message\n message\n\n friendsCount\n friends {\n edges {\n node {\n id\n fullname\n slug\n avatar {\n id\n uris {\n large\n }\n }\n }\n }\n }\n\n multimediasCount\n multimedias(filter: { media_type: { in: ["Picture", "InternalVideo", "GamePlayer"] }}) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n media {\n ... on Picture {\n id\n width\n height\n updatedAt\n uris {\n large\n }\n }\n\n ... on InternalVideo {\n id\n videoWidth\n videoHeight\n uris {\n mp4\n thumb\n }\n }\n\n ... on GamePlayer {\n id\n gameId\n grossScore\n netScore\n user {\n id\n slug\n }\n }\n }\n }\n }\n }\n\n club {\n id\n name\n slug\n country {\n id\n slug\n }\n area {\n id\n slug\n }\n\n cover {\n id\n uris {\n large\n }\n width\n height\n }\n\n logo {\n id\n uris {\n large\n }\n }\n }\n }\n ',"\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var s=(0,r.Ps)(i(),o.f,a._)},50859:function(e,n,t){"use strict";t.d(n,{t:function(){return s}});var r=t(63357),o=t(58109),a=t(94026);function i(){var e,n,t=(e=["\n fragment AsPostEventFragment on Event {\n id\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n\n slug\n title\n content\n\n cover {\n id\n width\n height\n uris {\n large\n }\n }\n\n club {\n id\n slug\n name\n logo {\n id\n uris {\n large\n }\n }\n country {\n id\n slug\n }\n area {\n id\n slug\n }\n }\n }\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var s=(0,r.Ps)(i(),o.f,a._)},70040:function(e,n,t){"use strict";t.d(n,{q:function(){return s}});var r=t(63357),o=t(58109),a=t(94026);function i(){var e,n,t=(e=["\n fragment AsPostPictureFragment on Picture {\n id\n width\n height\n uris {\n large\n }\n \n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n }\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var s=(0,r.Ps)(i(),o.f,a._)},32780:function(e,n,t){"use strict";t.d(n,{h:function(){return s}});var r=t(63357),o=t(58109),a=t(94026);function i(){var e,n,t=(e=["\n fragment AsPostReviewFragment on Review {\n id\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n\n cons\n pros\n content\n score\n reviewedType\n payload {\n ... on GearProductReviewPayload {\n scoreFeel\n scoreDesign\n scoreAccuracy\n scoreDistance\n scoreForgiveness\n }\n }\n reviewed {\n __typename\n ... on Club {\n id\n slug\n name\n\n country {\n id\n slug\n }\n area {\n id\n slug\n }\n\n logo {\n id\n uris {\n large\n }\n }\n\n cover {\n id\n width\n height\n uris {\n large\n }\n }\n }\n ... on GearProduct {\n id\n name\n subtype\n productSubCategory\n slug\n brand {\n id\n name\n slug\n picture {\n id\n uris {\n medium\n large\n }\n }\n }\n picture {\n id\n uris {\n medium\n large\n }\n }\n }\n ... on ShaftProduct {\n id\n name\n subtype\n slug\n brand {\n id\n name\n slug\n picture {\n id\n uris {\n large\n }\n }\n }\n picture {\n id\n uris {\n large\n }\n }\n }\n ... on GripProduct {\n id\n name\n subtype\n slug\n brand {\n id\n name\n slug\n picture {\n id\n uris {\n large\n }\n }\n }\n picture {\n id\n uris {\n large\n }\n }\n }\n ... on ClothesProduct {\n id\n name\n subtype\n slug\n brand {\n id\n name\n slug\n picture {\n id\n uris {\n large\n }\n }\n }\n picture {\n id\n uris {\n large\n }\n }\n }\n ... on TrainingAidProduct {\n id\n name\n subtype\n slug\n brand {\n id\n name\n slug\n picture {\n id\n uris {\n large\n }\n }\n }\n picture {\n id\n uris {\n large\n }\n }\n }\n }\n }\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var s=(0,r.Ps)(i(),o.f,a._)},94592:function(e,n,t){"use strict";t.d(n,{G:function(){return l}});var r=t(63357),o=t(58109),a=t(94026),i=t(58850);function s(){var e,n,t=(e=["\n fragment AsPostMediaFragment on MediaAttachment {\n id\n media {\n ...on RichLink {\n ...AsRichLinkFragment\n }\n\n ... on Picture {\n id\n width\n height\n updatedAt\n uris {\n large\n }\n\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }
1\n\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n }\n\n ... on InternalVideo {\n id\n updatedAt\n videoWidth\n videoHeight\n uris {\n mp4\n thumb\n }\n\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n }\n\n ... on GamePlayer {\n id\n gameId\n grossScore\n netScore\n user {\n id\n slug\n }\n }\n }\n }\n ","\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return s=function(){return t},t}var u=(0,r.Ps)(s(),o.f,a._,i.a);function c(){var e,n,t=(e=['\n fragment AsPostStatusFragment on Status {\n id\n content\n\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n\n externalVideo {\n url\n }\n\n multimediasCount\n multimedias(after: "", filter: { media_type: { in: ["Picture", "InternalVideo", "GamePlayer", "RichLink"] }}) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ...AsPostMediaFragment\n }\n }\n }\n }\n ',"\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return c=function(){return t},t}var l=(0,r.Ps)(c(),o.f,a._,u)},8869:function(e,n,t){"use strict";t.d(n,{v:function(){return u}});var r=t(63357),o=t(58109),a=t(94026),i=t(30293);function s(){var e,n,t=(e=["\n fragment AsPostUserProductFragment on UserProduct {\n id\n\n commentsCount\n comments(first: 3, orderBy: { ordering: DESC, fieldName: created_at }) {\n ...AsCommentsFragment\n }\n likesCount\n likes(first: 3) {\n ...AsLikesFragment\n }\n\n product {\n id\n name\n slug\n brand {\n id\n name\n slug\n }\n subtype\n picture {\n ...AsPictureFragment\n }\n }\n }\n\n ","\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return s=function(){return t},t}var u=(0,r.Ps)(s(),i.D,o.f,a._)},60465:function(e,n,t){"use strict";t.d(n,{Z:function(){return dt}});var r=t(85893),o=t(67294),a=t(91789),i=t(79090),s=t(97926),u=t(41664),c=t(66839),l=t(24487),d=t(91218),p=t(27957),f=t(2154),m=t.n(f),h=function(e){return(0,r.jsx)(p.g,{className:m().content,content:e.content})},v=t(45697),g=t.n(v),b=t(94184),y=t.n(b),w=t(34165),j=t(29934),_=t(35334),x=t(5152),C=t(56426),P=t(62428),S=t(94558),k=t(22705),A=t.n(k),O=(0,x.default)((function(){return t.e(4762).then(t.bind(t,24762))}),{loadableGenerated:{webpack:function(){return[24762]}},ssr:!1}),R=function(e){var n=(0,o.useMemo)((function(){return["".concat((0,j.WU)(e.timestamp,C.xH)," at ").concat((0,j.WU)(e.timestamp,C.eX)),(0,P.timeago)(e.timestamp),(0,_.A)(e.timestamp)]}),[e.timestamp]),t=n[0],a=n[1],i=n[2];return(0,r.jsxs)("span",{className:y()(A().postTimestamp,e.className),"data-tip":i?null:t,"data-place":"top","data-type":"dark","data-effect":"solid","data-delay-show":"500",children:[(0,r.jsx)(O,{}),e.withClockIcon&&(0,r.jsx)(S.v,{className:A().clockIcon,name:"Clock",width:"16px",height:"16px",fill:"#666"}),i?t:a]})},M=t(42043),N=t(54984),F=t(24877),T=t(58038),I=t(50319),E=t(63357);function D(){var e,n,t=(e=["\n mutation delete($id: Int!) {\n post {\n delete(id: $id)\n }\n }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return D=function(){return t},t}var z=(0,E.Ps)(D());function B(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function L(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}
1(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return B(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var W=function(e){var n=L((0,I.D)(z),1)[0];return(0,r.jsx)(T.g,{title:F.Z.current.post.deleteModal.title,confirmText:F.Z.current.post.deleteModal.confirmButton,onConfirm:function(){"function"===typeof n&&n({variables:{id:e.postId}}),"function"===typeof e.updateList&&e.updateList()},message:F.Z.current.post.deleteModal.description,handleRef:e.handleRef})},q=t(8102),G=t(93609),U=t(65194),Z=t(71267),$=t.n(Z),H=function(e){var n=o.useRef(null);return o.useMemo((function(){var n=o.Children.toArray(e.children).filter((function(e){return o.isValidElement(e)}));return!!o.Children.count(n)}),[e.children])?(0,r.jsx)("div",{className:$().wrapper,children:(0,r.jsxs)(G.D,{onBlur:function(){return n.current.close()},children:[(0,r.jsx)("button",{className:$().toggle,onClick:function(){return n.current.toggle()},children:(0,r.jsx)(S.v,{name:"Down-open-big",width:"16px",height:"16px",fill:"#666"})}),(0,r.jsx)(U.s,{ref:n,className:$().dropdown,options:{dropdownPosition:"top"},children:e.children})]})}):null},V=t(51473),Q=t(59569),Y=t.n(Q);function J(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var X={post:g().object.isRequired,children:g().node,onEdit:g().func,isDeletable:g().bool,noContent:g().bool,renderActions:g().func},K=function(e){var n=e.post,t=e.children,a=e.onEdit,i=e.isDeletable,s=e.renderActions,d=e.noContent,p=(0,o.useContext)(l.Ec),f=p.isCurrentUser,m=p.currentUser,h=(0,o.useContext)(V.M).refetch,v=o.useRef(),g=(0,o.useMemo)((function(){switch(n.author.type){case"User":return f(n.author);case"Page":return(null===m||void 0===m?void 0:m.administratedPages.edges.filter((function(e){return e.node.id===n.author.id})).length)>0;case"Club":return(null===m||void 0===m?void 0:m.administratedClubs.edges.filter((function(e){return e.node.id===n.author.id})).length)>0;default:return!1}}),[n.author,f,null===m||void 0===m?void 0:m.administratedPages,null===m||void 0===m?void 0:m.administratedClubs]),b=(0,o.useMemo)((function(){return!!m&&(!!m.isAdmin||g)}),[m,g]),j=(0,o.useMemo)((function(){return q.Z.author(n.author).isReportable&&void 0!==n.postable&&!g}),[n.author,g,n.postable]);return(0,r.jsxs)("div",{className:y()(Y().wrapper,J({},Y().wrapper_noContent,d)),children:[(0,r.jsxs)("div",{className:Y().titleRow,children:[(0,r.jsx)(u.default,{href:(0,c.showEntity)(n.author),children:(0,r.jsx)("a",{className:Y().authorAvatarAnchor,children:(0,r.jsx)(w.$,{src:n.author.picture.large,sizes:{sm:"44px",md:"44px",lg:"44px"},alt:"".concat(n.author.name," Profile Picture"),className:y()(Y().authorAvatar,J({},Y().authorAvatar_rounded,"User"===n.author.type)),isSquare:!0})})}),(0,r.jsxs)("div",{className:Y().titleText,children:[(0,r.jsx)(u.default,{href:(0,c.showEntity)(n.author),children:(0,r.jsxs)("a",{className:Y().authorName,children:[n.author.name," "]})})," ",(0,r.jsx)(M.Gn,{official:n.author.official,ambassador:n.author.verifiedAmbassador})," ",t]})]}),"function"===typeof s?s(n,b,a,i):(0,r.jsxs)("div",{className:Y().timestampAndDropdownWrapper,children:[(0,r.jsx)(R,{timestamp:n.publishDate}),(0,r.jsxs)(H,{children:[j&&(0,r.jsx)(N.g,{type:n.__typename,id:n.id,className:Y().reportButton}),b&&a&&(0,r.jsx)("button",{onClick:a,children:"Edit"}),b&&i&&(0,r.jsx)("button",{onClick:function(){return v.current.show()},children:"Delete"})]}),i&&(0,r.jsx)(W,{postId:n.id,handleRef:function(e){v.current=e},updateList:h})]})]})};K.defaultProps={isDeletable:!0},K.propTypes=X;var ee=t(67638),ne=t(1067),te=t(97832),re=t(65320),oe=t(59539),ae=t(81785),ie=t.n(ae),se=function(e){var n=(0,o.useRef)(null),t=(0,o.useMemo)((function(){return{id:e.post.postable.id,type:e.post.postable.__typename}}),[e.post.postable]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:ie().actionRow,children:[(0,r.jsx)(re.q,{className:ie().actionButton,likes:e.post.postable.likes,target:t,fragment:e.fragment}),(0,r.jsx)(ne.z,{className:ie().actionButton,variant:"black-flat",loginRequired:!0,onClick:function(){q.Z.responsive.isMobile()?"function"===typeof e.onTouchComments&&e.onTouchComments():n.current.focus()},children:(0,r.jsx)(S.v,{name:"Comment",height:"18px",width:"18px"})}),(0,r.jsx)(ee.l,{className:ie().actionButton,variant:"black-flat",linkUrl:q.Z.routes.post(e.post.id),icon:{name:"Send",height:"18px",width:"18px",className:ie().shareIcon}}),(0,r.jsx)(R,{withClockIcon:!1,timestamp:e.post.publishDate,className:ie().timestamp})]}),e.post.postable.likesCount>0&&(0,r.jsx)(te.o,{likes:e.post.postable.likes,likesCount:e.post.postable.likesCount,target:t}),(0,r.jsx)(oe.Z,{handleRef:function(e){n.current=e},fragment:e.fragment,target:t,comments:e.post.postable.comments,commentsCount:e.post.postable.commentsCount})]})},ue=t(61332),ce=t(94592),le=t(98249),de=t(50859),pe=t(3301),fe=t(32780),me=t
1(8869),he=t(70040),ve=t(54506),ge={Status:{name:"AsPostStatusFragment",gql:ce.G},Album:{name:"AsPostAlbumFragment",gql:le.Z},Event:{name:"AsPostEventFragment",gql:de.t},Checkin:{name:"AsPostCheckinFragment",gql:pe.G},Review:{name:"AsPostReviewFragment",gql:fe.h},UserProduct:{name:"AsPostUserProductFragment",gql:me.v},Picture:{name:"AsPostPictureFragment",gql:he.q},Attending:{name:"AsPostAttendingFragment",gql:ve.e}},be=t(1443),ye=t.n(be),we=function(e){var n=(0,o.useRef)(null),t=(0,o.useContext)(l.Ec).isCurrentUser,a=t(e.post.author)&&function(){return n.current.show()};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,onEdit:a,children:["reviewed ",(0,r.jsx)(u.default,{href:(0,c.showClub)(e.review.reviewed),children:(0,r.jsxs)("a",{children:[" ",e.review.reviewed.name]})})]}),(0,r.jsx)(d.S,{value:e.review.score,className:ye().rating}),e.review.content&&(0,r.jsx)(h,{content:e.review.content}),(0,r.jsx)(se,{post:e.post,fragment:ge.Review,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}}),t(e.post.author)&&(0,r.jsx)(ue.Z,{handleRef:function(e){n.current=e},club:e.review.reviewed,review:e.review})]})},je=t(68925),_e=t(95164),xe=t(21964),Ce=t(64814),Pe=t(23108),Se=t(93962),ke=t(46980),Ae=t.n(ke),Oe="Review",Re=function(e){var n,t=(0,o.useRef)(null),a=(0,o.useRef)(null),i=(0,o.useContext)(l.Ec).isCurrentUser,s=e.review.reviewed,d="GearProductReviewPayload"===(null===(n=e.review.payload)||void 0===n?void 0:n.__typename)?{scoreFeel:e.review.payload.scoreFeel,scoreAccuracy:e.review.payload.scoreAccuracy,scoreDistance:e.review.payload.scoreDistance,scoreForgiveness:e.review.payload.scoreForgiveness,scoreDesign:e.review.payload.scoreDesign,pros:e.review.pros,cons:e.review.cons}:null;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(K,{post:e.post,onEdit:function(){i(e.post.author)||("GearProduct"===e.post.postType?a.current.show():t.current.show())},children:["reviewed the","string"===typeof s.brand.name&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(u.default,{href:(0,c.showBrand)(s.brand.slug),children:(0,r.jsx)("a",{children:s.brand.name})})]}),"string"===typeof s.name&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(u.default,{href:(0,c.showEquipment)(s),children:(0,r.jsx)("a",{children:s.name})})]})," ",(0,je.rC)(s).toLowerCase()]}),(0,r.jsx)("div",{className:Ae().scoreBoxWrapper,children:(0,r.jsx)(Se.i,{score:e.review.score})}),d&&(0,r.jsx)("div",{className:Ae().statsWrapper,children:(0,r.jsx)(Pe.Z,{payload:d})}),(0,r.jsx)(_e.N,{review:e.review,containerClassName:Ae().textWrapper}),(0,r.jsx)(u.default,{href:(0,c.showEquipment)(s),children:(0,r.jsxs)("a",{className:Ae().productAnchor,children:[(0,r.jsxs)("div",{className:Ae().brandModelWrapper,children:[(0,r.jsx)(w.$,{src:s.brand.picture.uris.large,sizes:{sm:"150px",md:"320px",lg:"250px"},alt:"".concat(s.brand.name," Text Logo"),className:Ae().brandLogo}),(0,r.jsxs)("div",{className:Ae().productName,children:["".concat((0,je.rC)(s)," "),"string"===typeof s.name&&e.review.reviewed.name]})]}),(0,r.jsx)("div",{className:Ae().productPictureWrapper,children:(0,r.jsx)(w.$,{src:s.picture.uris.large,sizes:{sm:"150px",md:"150px",lg:"180px"},alt:"".concat(s.brand.name," ").concat(e.review.reviewed.name," Picture"),className:Ae().productPicture,isSquare:!0})})]})}),(0,r.jsx)(se,{post:e.post,fragment:ge.Review,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}}),i(e.post.author)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ue.Z,{handleRef:function(e){t.current=e},club:e.review.reviewed,review:e.review}),(0,r.jsx)(xe.w,{handleRef:function(e){a.current=e},size:"medium",title:Oe,children:(0,r.jsx)(Ce.p,{review:d,productId:s.id,onSubmitSuccess:function(){return a.current.hide()},refetchQueries:e.post.refetch})})]})]})};function Me(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){Me(e,n,t[n])}))}return e}var Fe=function(e){var n;switch(null===(n=e.post.postable)||void 0===n?void 0:n.reviewedType){case"Club":return(0,r.jsx)(we,Ne({},e));case"GearProduct":case"ShaftProduct":case"ClothesProduct":case"GripProduct":case"TrainingAidProduct":return(0,r.jsx)(Re,Ne({},e));default:return null}},Te=t(34051),Ie=t.n(Te),Ee=t(87146);function De(){var e,n,t=(e=["\n mutation editStatus($id: Int!, $content: String!) {\n status {\n update(id: $id, content: $content) {\n ...AsPostStatusFragment\n }\n }\n }\n\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return De=function(){return t},t}var ze=(0,E.Ps)(De(),ce.G),Be=t(51453),Le=t(86471),We=t(11044),qe=t(78872),Ge=t.n(qe),Ue=function(e){var n=(0,o.useState)(e.content||""),t=n[0],a=n[1];return(0,r.jsxs)("form",{className:Ge().form,children:[(0,r.jsx)(Le.W,{className:Ge().label,children:"Status content"}),(0,r.jsx)(We.b,{placeholder:F.Z.current.compose.placeholder,content:t,onChange:a}),(0,r.jsx)("div",{className:Ge().submitWrapper,children:(0,r.jsx)(ne.z,{disabled:e.submitting,size:"medium",onClick:function(){return e.onSubmit({content:t})},children:Be.Z.current.editButton})})]})};function Ze(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function $e(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}function He(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}
1(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return Ze(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ze(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ve=function(e){var n=(0,o.useState)(null),t=n[0],a=n[1],i=(0,o.useState)(!1),s=i[0],u=i[1],c=He((0,I.D)(ze,{update:e.onUpdate,onCompleted:e.onCompleted,onError:function(e){return a(e.message)}}),1)[0];return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(Ee._,{children:t}),(0,r.jsx)(Ue,{submitting:s,onSubmit:function(){var n,t=(n=Ie().mark((function n(t){return Ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u(!0),n.next=3,c({variables:{id:e.status.id,content:t.content}});case 3:u(!1);case 4:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){$e(a,r,o,i,s,"next",e)}function s(e){$e(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),content:e.status.content})]})},Qe=function(e){return(0,r.jsx)(xe.w,{handleRef:e.handleRef,title:"Edit status",icon:{name:"Newsfeed"},size:"medium",children:(0,r.jsx)(Ve,{status:e.status,onUpdate:e.onUpdate,onCompleted:e.onCompleted})})},Ye=function(e){var n=e.videoId,t=e.width,o=void 0===t?"640":t,a=e.height,i=void 0===a?"352":a,s=e.className,u=e.autoplay,c=void 0!==u&&u;return(0,r.jsx)("iframe",{width:o,height:i,className:s,allowFullScreen:!0,title:"Youtube video",src:"https://www.youtube.com/embed/".concat(n,"/?autoplay=").concat(c),frameBorder:"0"})},Je=t(87966),Xe=t(91367),Ke=t(41654),en=t.n(Ke),nn=function(e){var n=(0,o.useContext)(V.M),t=e.media;return(0,r.jsx)(Xe.z,{src:t.uris.mp4,seekTime:n.seekTime,thumb:t.uris.thumb,sourceDimensions:{width:t.videoWidth,height:t.videoHeight},onPlayedClick:function(t){e.onClick(),n.setSeekTime(t)},hideTimeControl:2e3,ControlChild:function(e){var n=e.data;return(null===n||void 0===n?void 0:n.paused)?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",{className:en().controlText,children:"click to expand"})},muted:!1,autoPause:!0,viewportAutoPlay:!0})},tn=t(70300),rn=t.n(tn),on={media:g().object.isRequired,mediasCount:g().number.isRequired,onClick:g().func.isRequired,hasMore:g().bool.isRequired},an=["Picture","InternalVideo"],sn=function(e){var n,t,o=e.media,a=e.mediasCount,i=e.onClick,s=e.hasMore,u={sm:"100vw",md:"750px",lg:"750px"},c="Preview of post";return s||"Picture"!==o.__typename?s||"InternalVideo"!==o.__typename?s?(0,r.jsxs)("div",{className:rn().pictureWrapper,onClick:i,children:[(0,r.jsx)(w.$,{src:(null===(n=o.uris)||void 0===n?void 0:n.thumb)||(null===(t=o.uris)||void 0===t?void 0:t.large),sizes:u,alt:c}),(0,r.jsxs)("div",{className:rn().remainingCount,children:["+",a-4]})]}):null:(0,r.jsx)(nn,{media:o,onClick:i}):(0,r.jsx)(w.$,{src:o.uris.large,sizes:u,alt:c,onClick:i})};sn.propTypes=on;var un=sn,cn=t(89758),ln=t(49631),dn=t.n(ln);function pn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function fn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return pn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pn(e,n)}
1(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hn=function(e){if(1===e.medias.length){var n=mn(e.medias,1)[0];return(0,r.jsx)(Je.S,{className:dn().ratioLimiter,maxRatio:cn.E,sourceDimensions:{width:n.width||n.videoWidth,height:n.height||n.videoHeight},children:(0,r.jsx)(un,{media:n,mediasCount:e.mediasCount,onClick:function(){return e.onClickMedia&&e.onClickMedia(n.id)}},n.id)})}var t;return(0,r.jsx)("div",{className:y()(dn().grid,(t={},fn(t,dn().grid_1,1===e.mediasCount),fn(t,dn().grid_2,2===e.mediasCount),fn(t,dn().grid_3,3===e.mediasCount),t)),style:{height:"".concat(window.innerWidth<=640?400:600,"px")},children:e.medias.slice(0,4).map((function(n,t){return(0,r.jsx)(un,{media:n,mediasCount:e.mediasCount,hasMore:3===t&&e.mediasCount>4,onClick:function(){return e.onClickMedia&&e.onClickMedia(n.id)}},n.id)}))})},vn=t(98613),gn=t(46847),bn=t.n(gn);function yn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function wn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function jn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){wn(e,n,t[n])}))}return e}function _n(e){return function(e){if(Array.isArray(e))return yn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return yn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yn(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xn=function(e){var n=(0,o.useRef)(null),t=(0,o.useMemo)((function(){return{link:e.status.externalVideo&&e.status.externalVideo.url?q.Z.youtube(e.status.externalVideo.url).youtubeLink:q.Z.youtube(e.status.content).youtubeLink,id:e.status.externalVideo&&e.status.externalVideo.url?q.Z.youtube(e.status.externalVideo.url).youtubeId:q.Z.youtube(e.status.content).youtubeId}}),[e.status.content,e.status.externalVideo]),a=(0,o.useMemo)((function(){return e.status.multimedias.edges.reduce((function(e,n){var t=n.node.media;return an.includes(t.__typename)?jn({},e,{photoVideoMedias:_n(e.photoVideoMedias).concat([t])}):"RichLink"===t.__typename?jn({},e,{richLinkMedias:_n(e.richLinkMedias).concat([t])}):e}),{richLinkMedias:[],photoVideoMedias:[]})}),[e.status.multimedias.edges]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{post:e.post,onEdit:function(){return n.current.show()},renderActions:e.renderActions}),e.status.content&&(0,r.jsx)(h,{content:e.status.content}),a.photoVideoMedias.length<=0&&a.richLinkMedias.length>0?(0,r.jsx)(vn.Z,{variant:"big",links:a.richLinkMedias}):null,a.photoVideoMedias.length>0?(0,r.jsx)(hn,{medias:a.photoVideoMedias,onClickMedia:function(n){var t,r;return null===(t=e.postModalRef)||void 0===t||null===(r=t.current)||void 0===r?void 0:r.openMediaId(n)},mediasCount:a.photoVideoMedias.length}):null,0===e.status.multimedias.edges.length&&t.link&&(0,r.jsx)(Ye,{className:bn().youtubeMedia,width:"750",height:"400",videoId:t.id}),(0,r.jsx)(se,{post:e.post,fragment:ge.Status,onTouchComments:function(){var n,t;return null===(n=e.postModalRef)||void 0===n||null===(t=n.current)||void 0===t?void 0:t.openComment()}}),(0,r.jsx)(Qe,{status:e.status,handleRef:function(e){n.current=e},onCompleted:function(){return n.current.hide()}})]})},Cn=t(86446),Pn=t.n(Cn);function Sn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function kn(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}
1function On(e){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},On(e)}function Rn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){An(e,n,t[n])}))}return e}function Mn(e,n){return!n||"object"!==Fn(n)&&"function"!==typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Nn(e,n){return Nn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Nn(e,n)}var Fn=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function Tn(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=On(e);if(n){var o=On(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Mn(this,t)}}var In=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Nn(e,n)}(u,e);var n,t,o,a=Tn(u);function u(){var e;return Sn(this,u),(e=a.apply(this,arguments)).state={openedMediaId:0},e.focusComment=!1,e.openMediaId=function(n){e.setState({openedMediaId:n},(function(){var n;return null===(n=e.modalRef)||void 0===n?void 0:n.show()}))},e.open=function(){var n;(null===(n=e.props.post.multimedias)||void 0===n?void 0:n.length)>0?e.setState({openedMediaId:e.props.post.multimedias[0].id},(function(){var n;return null===(n=e.modalRef)||void 0===n?void 0:n.show()})):e.modalRef&&e.modalRef.show()},e.openComment=function(){e.focusComment=!0,e.open()},e.close=function(){var n;(null===(n=e.modalRef)||void 0===n?void 0:n.hide)&&e.modalRef.hide()},e.handleRef=function(n){e.modalRef=n},e}return n=u,(t=[{key:"componentDidUpdate",value:function(){this.focusComment=!1}},{key:"render",value:function(){var e,n,t,o,a,u,c,l,d;if(!this.props.post)return null;var p,f,m,h,v,g,b={likes:null===(e=this.props.post.postable)||void 0===e?void 0:e.likes,likesCount:null===(n=this.props.post.postable)||void 0===n?void 0:n.likesCount,comments:null===(t=this.props.post.postable)||void 0===t?void 0:t.comments,commentsCount:null===(o=this.props.post.postable)||void 0===o?void 0:o.commentsCount,fragment:ge[null===(a=this.props.post.postable)||void 0===a?void 0:a.__typename],target:{id:null===(u=this.props.post.postable)||void 0===u?void 0:u.id,type:null===(c=this.props.post.postable)||void 0===c?void 0:c.__typename}},y=null===(l=this.props.post.multimedias)||void 0===l?void 0:l.filter((function(e){return"RichLink"!==e.__typename}));return(null===(d=this.props.post.multimedias)||void 0===d?void 0:d.length)>0?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.U,{author:this.props.post.author,content:this.props.post.postable.content,mediaId:this.state.openedMediaId,medias:y,mediasCount:y.length,reportableTarget:{id:this.props.post.id,type:this.props.post.__typename},handleRef:this.handleRef,onCompleted:this.props.onUpdate,social:b,loadMore:(null===(p=this.props.post.postable)||void 0===p||null===(f=p.album)||void 0===f||null===(m=f.pictures)||void 0===m?void 0:m.fetchMore)&&(null===(h=this.props.post.postable)||void 0===h||null===(v=h.album)||void 0===v||null===(g=v.pictures)||void 0===g?void 0:g.fetchMore),focusComment:this.focusComment})}):!this.props.post.multimedias||this.props.post.multimedias.length<=0?(0,r.jsxs)(s.n,{handleRef:this.handleRef,size:"borderless",className:Pn().modal,children:["Review"===this.props.post.postableType&&(0,r.jsx)(Fe,Rn({},this.props,{review:this.props.post.postable})),"Status"===this.props.post.postableType&&(0,r.jsx)(xn,Rn({},this.props,{status:this.props.post.postable}))]}):null}}])&&kn(n.prototype,t),o&&kn(n,o),u}(o.Component),En=In,Dn=t(89735),zn=function(e){return 0===e.album.pictures.edges.length?null:(0,r.jsx)(r.Fragment,{children:e.album.picturesCount>=1&&(0,r.jsx)(hn,{medias:e.album.pictures.edges.map((function(e){return e.no
1de})),mediasCount:e.album.picturesCount,onClickMedia:e.onClickMedia})})};function Bn(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}var Ln=function(e){var n,t=(0,o.useContext)(l.Ec).isCurrentUser,a=(0,o.useRef)(null);return e.album?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,onEdit:function(){return a.current.show()},children:["created a new album"," ",(0,r.jsx)(u.default,{href:(0,c.showUserAlbum)(e.post.author.slug,e.album.id),children:(0,r.jsx)("a",{variant:"secondary-flat",size:"medium",children:e.album.title})})]}),(0,r.jsx)(zn,{album:e.album,onClickMedia:function(n){var t;return null===(t=e.postModalRef.current)||void 0===t?void 0:t.openMediaId(n)}}),(0,r.jsx)(se,{post:e.post,fragment:ge.Album,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}}),t(e.post.author)&&"postable"in e.post&&(0,r.jsx)(Dn.T,{target:{id:e.post.postable.id},modalRef:function(e){a.current=e},onCompleted:(n=Ie().mark((function e(){return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.current.hide());case 1:case"end":return e.stop()}}),e)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){Bn(a,r,o,i,s,"next",e)}function s(e){Bn(a,r,o,i,s,"throw",e)}i(void 0)}))})})]}):null},Wn=t(49163),qn=t(96283),Gn=t.n(qn),Un={gamePlayer:g().object.isRequired},Zn=function(e){if(!e.gamePlayer)return null;var n=(0,c.showGame)(e.gamePlayer.gameId);return(0,r.jsxs)("div",{className:Gn().wrapper,children:[(0,r.jsxs)("div",{className:Gn().item,children:[(0,r.jsx)("p",{className:Gn().value,children:e.gamePlayer.netScore}),(0,r.jsx)("p",{className:Gn().label,children:"Net"})]}),(0,r.jsxs)("div",{className:Gn().item,children:[(0,r.jsx)("p",{className:Gn().value,children:e.gamePlayer.grossScore}),(0,r.jsx)("p",{className:Gn().label,children:"Gross"})]}),(0,r.jsx)("div",{className:Gn().item,children:(0,r.jsx)(Wn.w,{href:n,variant:"primary-ghost",className:"user-games-player-scores-header-button",children:"View Game"})})]})};Zn.propTypes=Un;var $n=Zn,Hn=function(e){var n=e.checkin.friends.edges.map((function(n,t){var a=n.node;return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(u.default,{href:(0,c.showUser)(a.slug),children:(0,r.jsx)("a",{children:a.fullname})}),t<e.checkin.friends.edges.length-1?", ":" "]},a.id)}));return 0===n.length?null:(0,r.jsxs)(r.Fragment,{children:["with ",n]})},Vn=function(e){var n,t,o,a,i,s,l=null===(n=e.checkin)||void 0===n||null===(t=n.multimedias)||void 0===t?void 0:t.edges,d=l.filter((function(e){var n=e.node;return an.includes(n.media.__typename)}))||[];d.length>=1?(a=d.map((function(e){return e.node.media})),i=e.checkin.multimediasCount):e.checkin&&(null===(o=e.checkin)||void 0===o?void 0:o.club)&&(a=[e.checkin.club.cover],i=1);for(var p=0;p<l.length;p+=1)if("GamePlayer"===l[p].node.media.__typename){s=l[p].node.media;break}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,children:["checked in ",(0,r.jsx)(Hn,{checkin:e.checkin})," at"," ",(0,r.jsx)(u.default,{href:(0,c.showClub)(e.checkin.club),children:(0,r.jsxs)("a",{children:[" ",e.checkin.club.name]})})]}),s&&(0,r.jsx)($n,{gamePlayer:s}),(0,r.jsx)(h,{content:e.checkin.message}),(0,r.jsx)(hn,{medias:a,mediasCount:i,onClickMedia:function(n){var t;return null===(t=e.postModalRef.current)||void 0===t?void 0:t.openMediaId(n)}}),(0,r.jsx)(se,{post:e.post,fragment:ge.Checkin,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}})]})},Qn=function(e){var n=(0,o.useMemo)((function(){return e.attending?ge.Attending:ge.Event}),[e.attending]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,children:[e.attending?"is going to":"created a new event"," ",(0,r.jsx)(u.default,{href:(0,c.showEvent)(e.event.slug),children:(0,r.jsxs)("a",{children:[" ",e.event.title]})})," at"," ",(0,r.jsx)(u.default,{href:(0,c.showClub)(e.event.club),children:(0,r.jsxs)("a",{children:[" ",e.event.club.name]})})]}),e.event.content&&(0,r.jsx)(h,{content:e.event.content}),(0,r.jsx)(cn.O,{onClick:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.open()}
1,src:e.event.cover.uris.large,alt:"Cover picture for ".concat(e.event.title," golf event"),width:e.event.cover.width,height:e.event.cover.height}),(0,r.jsx)(se,{post:e.post,fragment:n,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}})]})},Yn=t(7743),Jn=o.forwardRef((function(e,n){return(0,r.jsx)(xe.w,{handleRef:n,size:"medium",title:"".concat(e.post.author.name," is following ").concat(e.post.followings.length," new ").concat(e.type),children:e.post.followings.map((function(e){return(0,r.jsx)(Yn.s,{followable:e},e.id)}))})})),Xn=function(e){var n=(0,o.useRef)(null);if(!("followings"in e.post))return null;var t=e.post.followings.length-1,a="Club"===e.post.followings[0].__typename?"clubs":"pages";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,noContent:!0,children:["is following ",(0,r.jsx)(u.default,{href:(0,c.showEntity)(e.post.followings[0]),children:(0,r.jsxs)("a",{children:[" ",e.post.followings[0].name," "]})}),t>0&&(0,r.jsxs)(r.Fragment,{children:["and"," ",(0,r.jsxs)("span",{onClick:function(){return n.current.show()},children:[t," other ",a]})]})]}),t>0&&(0,r.jsx)(Jn,{ref:n,post:e.post,type:a})]})},Kn=t(49898),et=function(e){var n="action"in e.post&&"UpdateUserCover"===e.post.action?"cover":"profile";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,children:["updated ",(0,Kn.h)(e.post.author.gender)," ",n," picture"]}),(0,r.jsx)(cn.O,{src:e.picture.uris.large,alt:"".concat(n," of ").concat(e.post.author.name),width:e.picture.width,height:e.picture.height,onClick:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.open()}}),(0,r.jsx)(se,{post:e.post,fragment:ge.Picture,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}})]})},nt=t(79611),tt=o.forwardRef((function(e,n){return(0,r.jsx)(xe.w,{handleRef:n,size:"medium",title:"".concat(e.post.author.name," has ").concat(e.post.targets.length," new connections"),children:e.post.targets.map((function(e){return(0,r.jsx)(nt.E,{user:e},e.id)}))})})),rt=function(e){var n=(0,o.useRef)(null),t=(0,o.useMemo)((function(){return e.post.targets.length-1}),[e.post.targets.length]),a=(0,o.useMemo)((function(){return"".concat(q.Z.pluralize(t,"other golfer").default())}),[t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,isDeletable:!1,noContent:!0,children:["is connected to ",(0,r.jsx)(u.default,{href:(0,c.showUser)(e.post.targets[0].slug),children:(0,r.jsx)("a",{children:e.post.targets[0].fullname})})," ",t>0&&(0,r.jsxs)(r.Fragment,{children:["and ",(0,r.jsx)("span",{onClick:function(){return n.current.show()},children:a})]})]}),t>0&&(0,r.jsx)(tt,{ref:n,post:e.post})]})},ot=t(13373),at=t.n(ot),it=function(e){var n=(0,je.oc)(e.postable.product.subtype),t=e.postable.product.brand.name,o=e.postable.product.name;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K,{post:e.post,children:["added the"," ",(0,r.jsx)(u.default,{href:(0,c.showEquipment)(e.postable.product),children:(0,r.jsxs)("a",{children:[t," ",o]})})," ",n," to ",(0,Kn.h)(e.post.author.gender)," golf bag"]}),(0,r.jsx)(cn.O,{className:at().picture,src:e.postable.product.picture.uris.large,width:e.postable.product.picture.width,height:e.postable.product.picture.height,alt:"Preview of golf product ".concat(n," from ").concat(e.postable.product.brand.name),onClick:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.open()}}),(0,r.jsx)(se,{post:e.post,fragment:ge.UserProduct,onTouchComments:function(){var n;return null===(n=e.postModalRef.current)||void 0===n?void 0:n.openComment()}})]})},st=t(77872),ut=t.n(st);function ct(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function lt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){ct(e,n,t[n])}))}return e}var dt=function(e){var n=(0,o.createRef)(),t=(0,o.useMemo)((function(){return"postable"in e.post?e.post.postable:null}),[e.post]);return(0,r.jsx)(a.S,{children:(0,r.jsx)(V.$,{refetch:e.refetch,children:(0,r.jsxs)("div",{className:y()(ut().wrapper,e.className),children:["Album"===e.post.postableType&&(0,r.jsx)(Ln,lt({},e,{album:t,postModalRef:n})),"Attending"===e.post.postableType&&(0,r.jsx)(Qn,lt({},e,{event:t.event,attending:!0,postModalRef:n})),"Checkin"===e.post.postableType&&(0,r.jsx)(Vn,lt({},e,{checkin:t,postModalRef:n})),"Event"===e.post.postableType&&(0,r.jsx)(Qn,lt({},e,{event:t,postModalRef:n})),"Picture"===e.post.postableType&&(0,r.jsx)(et,lt({},e,{picture:t,postModalRef:n})),"Review"===e.post.postableType&&(0,r.jsx)(Fe,lt({},e,{review:t,postModalRef:n})),"Status"===e.post.postableType&&(0,r.jsx)(xn,lt({},e,{status:t,postModalRef:n})),"UserProduct"===e.post.postableType&&(0,r.jsx)(it,lt({},e,{postable:t,postModalRef:n})),"Following"===e.post.postableType&&(0,r.jsx)(Xn,lt({},e)),"Relationship"===e.post.postableType&&(0,r.jsx)(rt,{post:e.post}),(0,r.jsx)(En,{ref:n,post:q.Z.post.normalizePostData(e.post)})]})})})}},87146:function(e,n,t){"use strict";t.d(n,{_:function(){return i}});var r=t(85893),o=(t(67294),t(17296)),a=t.n(o),i=function(e){return(0,r.jsx)("div",{className:a().alert,children:e.children})}},11044:function(e,n,t){"use strict";t.d(n,{b:function(){return c}});
1var r=t(85893),o=t(67294),a=t(24877),i=t(96688),s=t(7861),u=t.n(s),c=function(e){var n=(0,o.useRef)(null);return(0,o.useEffect)((function(){e.autofocus&&n.current&&n.current.focus()}),[e.autofocus]),(0,r.jsx)(i.O,{className:u().textareaField,placeholder:e.placeholder||a.Z.current.compose.placeholder,input:{value:e.content,onChange:e.onChange},handleRef:function(e){n.current=e}})}},95164:function(e,n,t){"use strict";t.d(n,{N:function(){return a}});var r=t(85893),o=(t(67294),t(27162)),a=function(e){return(0,r.jsxs)("div",{className:e.containerClassName||"equipment-review-card-content",children:["string"===typeof e.review.pros&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"equipment-review-card-content-label",children:[(0,r.jsx)("span",{className:"equipment-review-card-sign",children:"+"}),o.Z.current.prosLabel]}),(0,r.jsx)("p",{className:"equipment-review-card-p",children:e.review.pros})]}),"string"===typeof e.review.cons&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"equipment-review-card-content-label",children:[(0,r.jsx)("span",{className:"equipment-review-card-sign",children:"-"}),o.Z.current.consLabel]}),(0,r.jsx)("p",{className:"equipment-review-card-p",children:e.review.cons})]})]})}},23108:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(85893),o=(t(67294),t(20548)),a=t(77100),i=function(e){return(0,r.jsx)("div",{className:"equipment-review-card-stats",children:a.Z.map((function(n){var t;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"equipment-review-card-label",children:[(0,r.jsx)("span",{children:n.name}),(0,r.jsx)("span",{children:null===(t=e.payload[n.dbColumn])||void 0===t?void 0:t.toFixed(1)})]}),(0,r.jsx)(o.$,{value:e.payload[n.dbColumn],total:5,gradient:!0})]},n.dbColumn)}))})}},64814:function(e,n,t){"use strict";t.d(n,{p:function(){return P}});var r=t(34051),o=t.n(r),a=t(85893),i=(t(67294),t(50319)),s=t(27162),u=t(90674),c=t(69263),l=t(86471),d=t(10275),p=t(27287),f=t(1067),m=t(77100);function h(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}var v={labels:{pros:s.Z.current.prosLabel,cons:s.Z.current.consLabel},placeholders:{pros:s.Z.current.reviewForm.prosPlaceholder,cons:s.Z.current.reviewForm.consPlaceholder},submit:s.Z.current.reviewForm.submitButton},g=(0,c.Z)({form:"REDUX_FORM/create-product-review",validate:function(e){var n={};return m.Z.forEach((function(t){e[t.dbColumn]||(n._error=s.Z.current.reviewForm.fieldRequiredError(t.name))})),n}})((function(e){var n=function(){var n,t=(n=o().mark((function n(t){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.onSubmit(t);case 2:e.reset();case 3:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){h(a,r,o,i,s,"next",e)}function s(e){h(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,a.jsxs)("form",{className:"equipment-create-form",onSubmit:e.handleSubmit(n),children:[(0,a.jsx)("div",{className:"equipment-create-stars",children:m.Z.map((function(e){return(0,a.jsxs)("div",{className:"equipment-create-stars-item-container",children:[(0,a.jsx)(l.W,{children:e.name}),(0,a.jsx)(u.Z,{name:e.dbColumn,component:p.e,starProps:{size:"medium"}})]},e.dbColumn)}))}),(0,a.jsx)(l.W,{spaced:!0,children:v.labels.pros}),(0,a.jsx)(u.Z,{name:"pros",component:d.H,placeholder:v.placeholders.pros}),(0,a.jsx)(l.W,{spaced:!0,children:v.labels.cons}),(0,a.jsx)(u.Z,{name:"cons",component:d.H,placeholder:v.placeholders.cons}),(0,a.jsx)(f.z,{type:"submit",disabled:e.invalid||e.submitting,className:"equipment-create-submit",variant:"primary",size:"large",children:v.submit})]})}));function b(){var e,n,t=(e=["\n mutation createProductReview(\n $productId: Int!\n $pros: String\n $cons: String\n $scoreFeel: Int!\n $scoreAccuracy: Int!\n $scoreDistance: Int!\n $scoreForgiveness: Int!\n $scoreDesign: Int!\n ) {\n products {\n gear {\n upsertReview(\n id: $productId\n pros: $pros\n cons: $cons\n score_feel: $scoreFeel\n score_accuracy: $scoreAccuracy\n score_distance: $scoreDistance\n score_forgiveness: $scoreForgiveness\n score_design: $scoreDesign\n ) {\n id\n }\n }\n }\n }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return b=function(){return t},t}var y=(0,t(63357).Ps)(b());function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function j(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void t(c)}s.done?n(u):Promise.resolve(u).then(r,o)}function _(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){_(e,n,t[n])}))}return e}function C(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}
1(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P=function(e){var n,t=C((0,i.D)(y),1)[0],r=function(){var n,r=(n=o().mark((function n(r){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t({variables:x({},r,{productId:e.productId}),awaitRefetchQueries:!0,refetchQueries:e.refetchQueries});case 3:e.onSubmitSuccess(),n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),console.warn(n.t0);case 9:case"end":return n.stop()}}),n,null,[[0,6]])})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){j(a,r,o,i,s,"next",e)}function s(e){j(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return r.apply(this,arguments)}}();return(0,a.jsx)(g,{initialValues:(n=e.review,n?{scoreFeel:n.payload.scoreFeel,scoreAccuracy:n.payload.scoreAccuracy,scoreDistance:n.payload.scoreDistance,scoreForgiveness:n.payload.scoreForgiveness,scoreDesign:n.payload.scoreDesign,pros:n.pros,cons:n.cons}:{scoreFeel:0,scoreAccuracy:0,scoreDistance:0,scoreForgiveness:0,scoreDesign:0}),onSubmit:r})}},77100:function(e,n,t){"use strict";var r=t(27162);n.Z=[{name:r.Z.current.reviewLabels.feel,dbColumn:"scoreFeel"},{name:r.Z.current.reviewLabels.accuracy,dbColumn:"scoreAccuracy"},{name:r.Z.current.reviewLabels.distance,dbColumn:"scoreDistance"},{name:r.Z.current.reviewLabels.forgiveness,dbColumn:"scoreForgiveness"},{name:r.Z.current.reviewLabels.design,dbColumn:"scoreDesign"}]},68925:function(e,n,t){"use strict";function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.d(n,{bQ:function(){return s},$w:function(){return u},UM:function(){return c},OH:function(){return l},Ry:function(){return d},ms:function(){return p},Lz:function(){return f},rd:function(){return m},au:function(){return h},zn:function(){return v},oc:function(){return b},lH:function(){return y},T$:function(){return j},vK:function(){return _},Vk:function(){return x},QD:function(){return C},F8:function(){return P},LK:function(){return S},Ih:function(){return k},Sp:function(){return A},bT:function(){return O},Ds:function(){return R},Lq:function(){return M},VM:function(){return N},fi:function(){return F},PW:function(){return T},rC:function(){return I}});var i,s="GearProduct",u="ClothesProduct",c="ShaftProduct",l="GripProduct",d="TrainingAidProduct",p=["ClothesProduct","GearProduct","GripProduct","ShaftProduct","TrainingAidProduct"],f=p.map((function(e){return"".concat(e,"sIndex")})),m=f.map((function(e){return{value:e,label:e}})),h=[{label:"Junior",value:"Junior"},{label:"Undersize",value:"Undersize"},{label:"Standard",value:"Standard"},{label:"Midsize",value:"Midsize"},{label:"Oversize",value:"Oversize"}],v={Driver:1,FairwayWood:2,Hybrid:3,Irons:4,Wedge:5,Putter:6,Ball:7},g=o({Driver:"driver",FairwayWood:"fairway wood",Hybrid:"hybrid",Irons:"iron",Wedge:"wedge",Putter:"putter",Ball:"golf ball"},c,"shaft"),b=function(e){return g[e]||e},y=function(e){var n=e.term,t=e.filter;return{name:"name"===t?n:void 0,brand:"brand"===t?n:void 0}},w=(o(i={Driver:"Drivers",FairwayWood:"Fairway Woods",Hybrid:"Hybrids",Irons:"Irons",Wedge:"Wedges",Putter:"Putters",Ball:"Golf Balls"},u,"Clothes"),o(i,c,"Shafts"),o(i,l,"Grips"),o(i,"Swing","Swings"),o(i,"Gloves","Gloves"),o(i,"GolfBag","Golf bags"),o(i,"Belt","Belts"),o(i,"TravelGear","Travel gears"),o(i,"Sunglasses","Sunglasses"),o(i,"Cap","Caps & Hats"),o(i,"Accessory","Accessories"),o(i,"Jacket","Jackets"),o(i,"Windbreaker","Wind breakers"),o(i,"Hoodie","Hoodies & Pullovers"),o(i,"MidLayer","MidLayers"),o(i,"Shirt","Shirts"),o(i,"Polo","Polos"),o(i,"TShirt","T-Shirts"),o(i,"LongSleevesTop","Long Sleeves Tops"),o(i,"Trousers","Trousers"),o(i,"Shorts","Shorts"),o(i,"Skirt","Skirts"),o(i,"Dress","Dresses"),o(i,"Socks","Socks"),o(i,"Outerwear","Outerwears"),o(i,"Underwear","Underwear"),o(i,"Shoes","Shoes"),i),j=function(e){return w[e]},_=[{label:w.Driver,value:"Driver",query:"driverProduct"},{label:w.FairwayWood,value:"FairwayWood",query:"fairwayProduct"},{label:w.Hybrid,value:"Hybrid",query:"hybridProduct"},{label:w.Irons,value:"Irons",query:"ironsProduct"},{label:w.Wedge,value:"Wedge",query:"wedgeProduct"},{label:w.Putter,value:"Putter",query:"putterProduct"},{label:w.Ball,value:"Ball",query:"ballProduct"}],x=function(e){switch(e){case"GearProduct":case"ClothesProduct":case"ShaftProduct":case"GripProduct":return!0;default:return!1}},C=["Shoes","GolfBag","TravelGear","Gloves","Cap","Jacket","Windbreaker","Outerwear","Hoodie","MidLayer","Shirt","LongSleevesTop","Polo","TShirt","Trousers","Shorts","Dress","Skirt","Socks","Belt","Underwear","Sunglasses","Accessory"],P=["Driver","FairwayWood","Hybrid","Irons","Wedge","Putter","Ball"],S=["Swing","Putter"],k=["Driver","FairwayWood","Hybrid","Irons","Wedge","Putter"],A=["Swing","Putter"],O=new Set(a(P).concat(a(C),a(k),a(S),a(A))),R=C.map((function(e){return{value:e,label:e}})),M=P.map((function(e){return{value:e,label:e}})),N=S.map((function(e){return{value:e,label:e}})),F=k.map((function(e){return{value:e,label:e}})),T=A.map((function(e){return{value:e,label:e}})),I=function(e){return"string"===typeof e.productSubCategory?e.productSubCategory:"string"===typeof e.subType?e.subType:null}},49898:function(e,n,t){"use strict";t.d(n,{h:function(){return o}});var r=t(3512),o=function(e){switch(e){case r.G9H.Male:return"his";case r.G9H.Female:return"her";
1case r.G9H.Unspecified:default:return"their"}}},27162:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(39858),o=t(54912).Z.createResources(new Map([[r.R0,{meta:{title:"Equipment | All Square Golf",description:"Find everything you need for your golf equipment and gear needs. Explore the latest golf equipments from the best brands."},reviewForm:{prosPlaceholder:"Describe what makes this club so special to you",consPlaceholder:"Describe what could be better",submitButton:"Publish your review",fieldRequiredError:function(e){return"Error: ".concat(e," is required.")},modalTitle:"Review"},playedByNotice:"Played by",prosLabel:"Pros",consLabel:"Cons",reviewCard:{noClubLabel:"No club",editButton:"Edit your review",writeButton:"Write a review",onlineNotice:"Your review is now online"},resetFiltersButton:"Reset filters",applyFiltersButton:"Apply Filters",filtersLabel:"Filters",suggestionsSectionTitle:"You might also like",recentlyViewedSectionTitle:"Recently viewed",brandsFilterLabel:"Brands",typesFilterLabel:"Types",playedByLabel:"played by",sizesLabel:"Sizes",colorsLabel:"Colors",specsLabel:"Specs",toggleBagButton:{inYourBag:"In your bag",addToBag:"Add to bag"},reviewLabels:{feel:"Feel",accuracy:"Accuracy",distance:"Distance",forgiveness:"Forgiveness",design:"Design"}}]]))},24877:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(39858),o=t(54912).Z.createResources(new Map([[r.R0,{noPostsNotice:"No activity yet",noScheduledPostsNotice:"No Scheduled posts yet",tabs:{timeline:"Timeline",scheduledPosts:function(e){return"Scheduled Posts (".concat(e,")")}},compose:{placeholder:"Write something...",addMediaButton:"Media",addExtraMediaButton:"Add picture(s)",createAlbumButton:"Album",pushButton:{placeholder:"Push",noneState:"None",followersState:"Followers",allState:"All"},submitButton:{postNowAction:"Post",scheduleAction:"Schedule",submittingState:"Posting"}},post:{deleteModal:{title:"Delete Post",description:"This post will be deleted and you will no longer be able to find it",confirmButton:"Delete"}}}]]))},9674:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return O}});var r=t(85893),o=(t(67294),t(11163)),a=t(20168),i=t(4803),s=t(84164),u=t(21192),c=t(60465),l=t(1067),d=t(50459),p=t(6388),f=t(8102),m=t(63357),h=t(33430),v=t(98249),g=t(54506),b=t(3301),y=t(50859),w=t(70040),j=t(32780),_=t(94592),x=t(8869);function C(){var e,n,t=(e=["\n fragment AsPostFragment on Post {\n id\n publishDate\n postableType\n\n author {\n ...AsAuthorFragment\n }\n\n postable {\n ... on Album {\n ...AsPostAlbumFragment\n }\n\n ... on Attending {\n ...AsPostAttendingFragment\n }\n\n ... on Checkin {\n ...AsPostCheckinFragment\n }\n\n ... on Event {\n ...AsPostEventFragment\n }\n\n ... on Picture {\n ...AsPostPictureFragment\n }\n\n ... on Review {\n ...AsPostReviewFragment\n }\n\n ... on Status {\n ...AsPostStatusFragment\n }\n\n ... on UserProduct {\n ...AsPostUserProductFragment\n }\n }\n }\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return C=function(){return t},t}var P=(0,m.Ps)(C(),h.H,v.Z,g.e,b.G,y.t,w.q,j.h,_.G,x.v);function S(){var e,n,t=(e=["\n query getSinglePost($id: Int!) {\n post(id: $id) {\n ...AsPostFragment\n }\n }\n ","\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return S=function(){return t},t}var k=(0,m.Ps)(S(),P);function A(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var O=function(){var e=(0,o.useRouter)(),n=(0,p.aM)(k,{variables:{id:e.query.id}}),t=n.data,m=n.loading,h=(null===t||void 0===t?void 0:t.post)&&function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){A(e,n,t[n])}))}return e}({},t.post,{author:f.Z.author(t.post.author).normalize});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.$,{}),(0,r.jsx)(d.u,{title:"".concat(null===h||void 0===h?void 0:h.author.name,"'").concat("s"===(null===h||void 0===h?void 0:h.author.name.slice(-1))?"":"s"," post | All Square Golf")}),(0,r.jsx)(u.c,{className:"nf-container post-card-holder",children:(0,r.jsxs)("div",{className:"nf-container-main stretch-bottom",children:[m&&(0,r.jsx)(s.s,{}),(0,r.jsx)(l.z,{className:"post-back-button",variant:"black-flat",icon:{name:"Large-arrow-left",width:"18px",height:"13px",fill:"#aaa"},onClick:e.back,children:"Back"}),!!h&&(0,r.jsx)(c.Z,{post:h})]})}),(0,r.jsx)(i.x,{})]})}},59301:function(e){e.exports={coloredBar:"styles_coloredBar__reafn",track:"styles_track__kzeLj",fill:"styles_fill__INddH","as-animate-gradient":"styles_as-animate-gradient__aVH6n"}},94769:function(e){e.exports={headerAwareFullscreenContainer:"styles_headerAwareFullscreenContainer__rGv_8",headerAwareContainer:"styles_headerAwareContainer__vo65j",withSubheader:"styles_withSubheader__iYKtg","as-animate-gradient":"styles_as-animate-gradient__JfEWk"}},58334:function(e){e.exports={followableRow:"styles_followableRow__QxW1Y",picture:"styles_picture__6Cv8B",content:"styles_content__7h1Ml",nameAnchor:"styles_nameAnchor__OTKZa",subname:"styles_subname__QcrM4","as-animate-gradient":"styles_as-animate-gradient__raCVi"}},41654:function(e){e.exports={controlText:"video-feed_controlText__FV8te","as-animate-gradient":"video-feed_as-animate-gradient__FZiCM"}},30650:function(e){e.exports={picturesModalSwipeableViews:"styles_picturesModalSwipeableViews__6O7cZ","as-animate-gradient":"styles_as-animate-gradient___HcSG"}},18211:function(e){e.exports={wrapper:"relations-list_wrapper__i8cMJ",emptyNotice:"relations-list_emptyNotice__IcWMr","as-animate-gradient":"relations-list_as-animate-gradient__3jJh8"}},88679:function(e){e.exports={modal:"shareModal_modal__7R6h7",contentWrapper:"shareModal_contentWrapper__p9roN",contactSection:"shareModal_contactSection__SJbKZ",messageSection:"shareModal_messageSection__IcXjA",messageInput:"shareModal_messageInput__Q_5H4",submitButton:"shareModal_submitButton__fQghQ",searchWra
1pper:"shareModal_searchWrapper__bkCnh",searchInput:"shareModal_searchInput__p4DPw",loaderWrapper:"shareModal_loaderWrapper__TdpVM",loader:"shareModal_loader__cEZGH","as-animate-gradient":"shareModal_as-animate-gradient__jbrzF"}},59569:function(e){e.exports={wrapper:"postCardHeader_wrapper__u3O0r",wrapper_noContent:"postCardHeader_wrapper_noContent__abSan",authorName:"postCardHeader_authorName__6UG51",authorAvatarAnchor:"postCardHeader_authorAvatarAnchor__I9Coh",authorAvatar:"postCardHeader_authorAvatar__Vc6gB",authorAvatar_rounded:"postCardHeader_authorAvatar_rounded__RWDTP",titleRow:"postCardHeader_titleRow__Oknpy",titleText:"postCardHeader_titleText__aRpVP",timestampAndDropdownWrapper:"postCardHeader_timestampAndDropdownWrapper__N4nk6",reportButton:"postCardHeader_reportButton__G4LLZ","as-animate-gradient":"postCardHeader_as-animate-gradient__z6bbk"}},71267:function(e){e.exports={wrapper:"postDropdown_wrapper__643R3",toggle:"postDropdown_toggle__du7Ga",dropdown:"postDropdown_dropdown__q1uXg","as-animate-gradient":"postDropdown_as-animate-gradient__hKod7"}},49631:function(e){e.exports={ratioLimiter:"postCardMosaic_ratioLimiter__BUXY9",grid:"postCardMosaic_grid__sahVb",grid_1:"postCardMosaic_grid_1__AkQCB",grid_2:"postCardMosaic_grid_2__vAeD8",grid_3:"postCardMosaic_grid_3__Duztv","as-animate-gradient":"postCardMosaic_as-animate-gradient__5_ozP"}},70300:function(e){e.exports={pictureWrapper:"preview_pictureWrapper__S36SM",remainingCount:"preview_remainingCount__qEsvw","as-animate-gradient":"preview_as-animate-gradient__iy_gp"}},96283:function(e){e.exports={wrapper:"postMediaGame_wrapper__FSjLC",item:"postMediaGame_item__42iX3",value:"postMediaGame_value__osKMd",label:"postMediaGame_label__4zCEE","as-animate-gradient":"postMediaGame_as-animate-gradient__O_UcP"}},2154:function(e){e.exports={content:"postCardText_content__ekKQ4","as-animate-gradient":"postCardText_as-animate-gradient__9D1oG"}},81785:function(e){e.exports={actionRow:"postCardSocialFooter_actionRow__ANRUz",timestamp:"postCardSocialFooter_timestamp__o9YVY",actionButton:"postCardSocialFooter_actionButton__QkXNq",shareIcon:"postCardSocialFooter_shareIcon__VTc7A","as-animate-gradient":"postCardSocialFooter_as-animate-gradient__q2L5h"}},22705:function(e){e.exports={postTimestamp:"timer_postTimestamp__iP4Ca",clockIcon:"timer_clockIcon__uZLjs","as-animate-gradient":"timer_as-animate-gradient__wNnyQ"}},77872:function(e){e.exports={wrapper:"postCard_wrapper__hew9Y","as-animate-gradient":"postCard_as-animate-gradient__fYb1d"}},1443:function(e){e.exports={rating:"postCardClubReview_rating__CRUDt","as-animate-gradient":"postCardClubReview_as-animate-gradient__pnDjG"}},46980:function(e){e.exports={scoreBoxWrapper:"postCardGearReview_scoreBoxWrapper__tfxeR",statsWrapper:"postCardGearReview_statsWrapper__YoEB_",textWrapper:"postCardGearReview_textWrapper__eMgnM",productAnchor:"postCardGearReview_productAnchor__z5v84",brandModelWrapper:"postCardGearReview_brandModelWrapper__Q8RWQ",productName:"postCardGearReview_productName__cg4qy",brandLogo:"postCardGearReview_brandLogo__X5cNF",productPictureWrapper:"postCardGearReview_productPictureWrapper__MVWu9",productPicture:"postCardGearReview_productPicture___1gUl","as-animate-gradient":"postCardGearReview_as-animate-gradient__DXkBt"}},46847:function(e){e.exports={youtubeMedia:"postCardStatus_youtubeMedia__hxhow","as-animate-gradient":"postCardStatus_as-animate-gradient__MQ4dp"}},13373:function(e){e.exports={picture:"postCardProduct_picture___geik","as-animate-gradient":"postCardProduct_as-animate-gradient__HN_e7"}},17296:function(e){e.exports={alert:"postFormError_alert__n3LcF","as-animate-gradient":"postFormError_as-animate-gradient__bM_gV"}},7861:function(e){e.exports={textareaField:"content-field_textareaField__vVWIv","as-animate-gradient":"content-field_as-animate-gradient__wn9LY"}},78872:function(e){e.exports={form:"postEditForm_form__79im8",label:"postEditForm_label__gOMo1",submitWrapper:"postEditForm_submitWrapper__ToWpE","as-animate-gradient":"postEditForm_as-animate-gradient__lq6eG"}},86446:function(e){e.exports={modal:"postModal_modal__JABk4","as-animate-gradient":"postModal_as-animate-gradient__H6toP"}},35334:function(e,n,t){"use strict";t.d(n,{A:function(){return o}});var r=t(32841);function o(e){return+(0,r.Q)(e)>Date.now()}}},function(e){e.O(0,[3662,1810,1458,9325,3145,1367,9735,9176,7090,2078,9774,2888,179],(function(){return n=85021,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.