1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[18],{PKwP:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("q1tI"),i=n.n(o),r=n("vOnD"),a=n("CEM3"),c=i.a.createElement,s=Object(r.d)(["0%{transform:scale(1);}50%{transform:scale(1.3);}100%{transform:scale(1);}"]),l=function(e){return e.checked&&Object(r.b)([""," 0.3s ease-in-out"],s)},d=r.c.div.withConfig({displayName:"Checkbox__Container",componentId:"sc-2iuzwb-0"})(["width:20px;height:20px;border-radius:4px;margin-right:8px;display:flex;justify-content:center;align-items:center;background-color:",";transition:all 150ms;animation:",";cursor:pointer;:hover{transform:scale(1.1);}"],(function(e){return e.isChecked?a.a.primary400:a.a.gray5}),l),u=function(e){var t=e.isChecked,n=e.style;return c(d,{isChecked:t,style:n,onClick:function(){return e.onClick(!t)}},c("img",{src:"/res/icons/checked.png",alt:"checkbox",style:{width:16,height:16}}))}},QY22:function(e,t,n){var o,i,r;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,i=[n("17x9"),n("q1tI")],void 0===(r="function"===typeof(o=function(t,n){"use strict";var o,i;function r(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=y();return function(){var n,o=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t=c(t),n=a(n);var x={x:"clientWidth",y:"clientHeight"},_={x:"clientTop",y:"clientLeft"},k={x:"innerWidth",y:"innerHeight"},S={x:"offsetWidth",y:"offsetHeight"},N={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},I={x:"scrollWidth",y:"scrollHeight"},j={x:"scrollLeft",y:"scrollTop"},z={x:"width",y:"height"},P=function(){},E=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",P,{get passive
1(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},T="ReactList failed to reach a stable state.",M=40,R=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},B=function(e){for(var t=e.props.axis,n=e.getEl(),o=O[t];n=n.parentElement;)switch(window.getComputedStyle(n)[o]){case"auto":case"scroll":case"overlay":return n}return window},L=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[k[t]]:n[x[t]]},D=function(e,t){var n=e.length,o=e.minSize,i=e.type,r=t.from,a=t.size,c=t.itemsPerRow,s=(a=Math.max(a,o))%c;return s&&(a+=c-s),a>n&&(a=n),(s=(r="simple"!==i&&r?Math.max(Math.min(r,n-a),0):0)%c)&&(r-=s,a+=s),r===t.from&&a==t.size?t:C(C({},t),{},{from:r,size:a})};e.exports=(i=o=function(e){p(o,e);var t=f(o);function o(e){var n;return l(this,o),(n=t.call(this,e)).state=D(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return u(o,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=D(e,t);return n===t?null:n}}]),u(o,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>M)return this.unstable=!0,console.error(T);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(R(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,E),this.scrollParent.removeEventListener("mousewheel",P,E)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[_[t]]||0,o=N[t];do{n+=e[o]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=j[t],o=e===window?document.body[n]||document.documentElement[n]:e[n],i=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),r=Math.max(0,Math.min(o,i)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+r-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[j[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,o=t.documentElement,i=I[this.props.axis];return e===window?Math.max(n[i],o[i]):e[i]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),o=t+this.props.scrollParentViewportSizeGetter(this)+e;
1return this.hasDeterminateSize()&&(o=Math.min(o,this.getSpaceBefore(this.props.length))),{start:n,end:o}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,o=this.state,i=o.itemSize,r=o.itemsPerRow;if(n&&i&&r)return{itemSize:i,itemsPerRow:r};var a=this.items.children;if(!a.length)return{};var c=a[0],s=c[S[t]],l=Math.abs(s-i);if((isNaN(l)||l>=1)&&(i=s),!i)return{};for(var d=N[t],u=c[d],p=a[r=1];p&&p[d]===u;p=a[r])++r;return{itemSize:i,itemsPerRow:r}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=P),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",P)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,E),this.scrollParent.addEventListener("mousewheel",P,E))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,o=0;if(n.length){var i=this.props.axis,r=n[0],a=n[n.length-1];o=this.getOffset(a)+a[S[i]]-this.getOffset(r)}if(o>t)return e();var c=this.props,s=c.pageSize,l=c.length,d=Math.min(this.state.size+s,l);this.maybeSetState({size:d},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,o=t.end,i=this.props,r=i.length,a=i.pageSize,c=0,s=0,l=0,d=r-1;s<d;){var u=this.getSizeOfItem(s);if(null==u||c+u>n)break;c+=u,++s}for(var p=r-s;l<p&&c<o;){var m=this.getSizeOfItem(s+l);if(null==m){l=Math.min(l+a,p);break}c+=m,++l}this.maybeSetState(D(this.props,{from:s,itemsPerRow:1,size:l}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,o=t.itemsPerRow;if(!n||!o)return e();var i=this.getStartAndEnd(),r=i.start,a=i.end,c=D(this.props,{from:Math.floor(r/n)*o,size:(Math.ceil((a-r)/n)+1)*o,itemsPerRow:o}),s=c.from,l=c.size;return this.maybeSetState({itemsPerRow:o,from:s,itemSize:n,size:l},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,o=n.itemSize,i=n.itemsPerRow;if(o)return t[e]=Math.floor(e/i)*o;for(var r=e;r>0&&null==t[--r];);for(var a=t[r]||0,c=r;c<e;++c){t[c]=a;var s=this.getSizeOfItem(c);if(null==s)break;a+=s}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,o=S[this.props.axis],i=0,r=n.length;i<r;++i)e[t+i]=n[i][o]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,o=this.props,i=o.axis,r=o.itemSizeGetter,a=o.itemSizeEstimator,c=o.type,s=this.state,l=s.from,d=s.itemSize,u=s.size;if(d)return d;if(r)return r(e);if(e in t)return t[e];if("simple"===c&&e>=l&&e<l+u&&n){var p=n.children[e-l];if(p)return p[S[i]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),o=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),i=Math.min(o,n),r=Math.max(o,n);return t<=i?this.setScroll(i):t>r?this.setScroll(r):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,o=n.from,i=n.size,r=this.getStartAndEnd(0),a=r.start,c=r.end,s={},l=o;l<o+i;++l){var d=this.getSpaceBefore(l,s),u=d+this.getSizeOfItem(l);null==e&&u>a&&(e=l),null!=e&&d<c&&(t=l)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,o=t.itemsRenderer,i=this.state,r=i.from,a=i.size,c=[],s=0;s<a;++s)c.push(n(r+s,s));return o(c,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,o=t.axis,i=t.length,r=t.type,a=t.useTranslate3d,
1c=this.state,s=c.from,l=c.itemsPerRow,d=this.renderItems();if("simple"===r)return d;var u={position:"relative"},p={},m=Math.ceil(i/l)*l,f=this.getSpaceBefore(m,p);f&&(u[z[o]]=f,"x"===o&&(u.overflowX="hidden"));var h=this.getSpaceBefore(s,p),g="x"===o?h:0,y="y"===o?h:0,b=a?"translate3d(".concat(g,"px, ").concat(y,"px, 0)"):"translate(".concat(g,"px, ").concat(y,"px)"),v={msTransform:b,WebkitTransform:b,transform:b};return n.default.createElement("div",{style:u,ref:function(t){return e.el=t}},n.default.createElement("div",{style:v},d))}}]),o}(n.Component),w(o,"displayName","ReactList"),w(o,"propTypes",{axis:t.default.oneOf(["x","y"]),initialIndex:t.default.number,itemRenderer:t.default.func,itemSizeEstimator:t.default.func,itemSizeGetter:t.default.func,itemsRenderer:t.default.func,length:t.default.number,minSize:t.default.number,pageSize:t.default.number,scrollParentGetter:t.default.func,scrollParentViewportSizeGetter:t.default.func,threshold:t.default.number,type:t.default.oneOf(["simple","variable","uniform"]),useStaticSize:t.default.bool,useTranslate3d:t.default.bool}),w(o,"defaultProps",{axis:"y",itemRenderer:function(e,t){return n.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return n.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:B,scrollParentViewportSizeGetter:L,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1}),i)})?o.apply(t,i):o)||(e.exports=r)},UnvN:function(e,t,n){"use strict";n.d(t,"c",(function(){return jt})),n.d(t,"a",(function(){return zt})),n.d(t,"b",(function(){return Pt}));var o=n("KQm4"),i=n("q1tI"),r=n.n(i),a=n("hzYj"),c=n("CEM3"),s=n("V4kj"),l=n("U+ra"),d=n("vOnD"),u=n("+arg"),p=n("gev1"),m=n("phLH"),f=n("kmSd"),h=n("TyAF"),g=n("9Koi"),y=n("wd/R"),b=n.n(y),v=n("X7io"),C=n("C5xU"),w=n("DpfB"),x=r.a.createElement,_=d.c.div.withConfig({displayName:"Note__NoteContainer",componentId:"f9bbp1-0"})(["margin-bottom:12px;"]),k=d.c.div.withConfig({displayName:"Note__Container",componentId:"f9bbp1-1"})(["white-space:pre-line;max-height:","px;overflow:hidden;&.more{max-height:none;}"],105),S=Object(d.c)(f.a).withConfig({displayName:"Note__SeeMoreSpan",componentId:"f9bbp1-2"})(["color:",";:hover{cursor:pointer;}"],c.a.gray3),N=function(e){var t=e.children,n=Object(g.a)().t,o=Object(i.useState)(!1),r=o[0],c=o[1],s=Object(i.useState)(!1),l=s[0],d=s[1],u=Object(i.useRef)(),p=Object(w.c)(u),m=Object(i.useRef)(!1);return Object(i.useEffect)((function(){var e,t=null===(e=u.current)||void 0===e?void 0:e.offsetHeight;p&&!m.current&&t>0&&(d(t>105),m.current=!0)}),[p]),t?x(_,null,x(k,{className:r?"more":null},x(f.a,{ref:u},t)),l&&x(S,{onClick:function(){a.a.event({category:"note",action:"click see more/less",label:r?"less":"more"}),c(!r)}},n(r?"see-less":"see-more"))):null},O=n("8RDt"),I=n("OraA"),j=n("nOHt"),z=n("Tayq"),P=n("d3yt"),E=n("CsWo"),T=n("sBL/"),M=n.n(T),R=n("zseg"),B=n("2GhG"),L=n("mTg0"),D=n("+I56"),F=r.a.createElement,A=d.c.img.withConfig({displayName:"LikeUserModal__Avatar",componentId:"y2l31-0"})(["width:24px;height:24px;border-radius:24px;"]),U=d.c.div.withConfig({displayName:"LikeUserModal__Container",componentId:"y2l31-1"})(["position:absolute;min-width:120px;max-height:240px;overflow-y:scroll;background-color:#fff;box-shadow:0 0 4px ",";z-index:1;border-radius:8px;bottom:calc(100%);left:50%;transform:translate(-50%,0);padding:0 12px;:hover{cursor:initial;}"],c.a.gray5),G=d.c.div.withConfig({displayName:"LikeUserModal__UserContainer",componentId:"y2l31-2"})(["display:flex;flex-direction:row;align-items:center;margin:12px 0;:hover{cursor:pointer;text-decoration:underline;}"]),H=d.c.span.withConfig({displayName:"LikeUserModal__Username",componentId:"y2l31-3"})(["font-size:14px;margin-left:8px;white-space:nowrap;"]),V=d.c.div.withConfig({displayName:"LikeUserModal__SpinnerContainer",componentId:"y2l31-4"})(["display:flex;height:40px;align-items:center;justify-content:center;"]),W=function(e){var t=Object(i.useState)(!0),n=t[0],o=t[1],a=Object(i.useState)([]),c=a[0],s=a[1];return Object(i.useEffect)((function(){o(!0),D.a.getNoteLikes(e.scribbleId).then((function(e){s(e)})).finally((function(){return o(!1)}))}),[]),F(U,{onClick:function(e){return e.stopPropagation()}},n?F(V,null,F(P.i,{size:16})):F(r.a.Fragment,null,c.map((function(e){return F(L.a,{href:"/space/users/".concat(e.id)},F(G,null,F(A,{src:e.avatar||z.b}),F(H,null,e.username||z.s)))}
1))))},K=r.a.createElement,q=d.c.div.withConfig({displayName:"SpaceCardBottom__DisplayLineContainer",componentId:"sc-4hwehd-0"})(["display:flex;justify-content:space-evenly;padding:13px;align-items:center;"]),Y=d.c.div.withConfig({displayName:"SpaceCardBottom__IconTextContainer",componentId:"sc-4hwehd-1"})(["display:flex;align-items:center;position:relative;&:first-child{margin-right:16px;}:hover{cursor:pointer;}&.liked{.dvn-icon{background-color:",";}.dvn-icon-text{color:",";}}"],c.a.primary400,c.a.primary400),J=Object(d.c)(Y).withConfig({displayName:"SpaceCardBottom__HoverIconTextContainer",componentId:"sc-4hwehd-2"})([":hover .dvn-icon{background-color:",";}:hover .dvn-icon-text{color:",";}"],(function(e){return e.color}),(function(e){return e.color})),Q=d.c.div.attrs((function(){return{className:"dvn-icon"}})).withConfig({displayName:"SpaceCardBottom__Icon",componentId:"sc-4hwehd-3"})(["width:20px;height:20px;background-color:",";margin-right:6px;"],c.a.gray3),X=Object(d.c)(Q).withConfig({displayName:"SpaceCardBottom__HeartIcon",componentId:"sc-4hwehd-4"})(["mask:url('/res/icons/like.svg') no-repeat center;"]),Z=Object(d.c)(Q).withConfig({displayName:"SpaceCardBottom__HeartFilledIcon",componentId:"sc-4hwehd-5"})(["mask:url('/res/icons/like-filled.svg') no-repeat center;"]),$=Object(d.c)(Q).withConfig({displayName:"SpaceCardBottom__CommentIcon",componentId:"sc-4hwehd-6"})(["mask:url('/res/icons/comment.svg') no-repeat center;"]),ee=d.c.div.withConfig({displayName:"SpaceCardBottom__MoreIconContainer",componentId:"sc-4hwehd-7"})(["align-self:center;border-radius:30px;min-height:28px;min-width:28px;margin-right:44px;display:flex;visibility:",";align-items:center;justify-content:center;margin-left:8px;position:relative;:hover{cursor:pointer;background-color:",";}"],(function(e){return e.isShow?"visible":"hidden"}),c.a.gray7),te=Object(d.c)(Q).withConfig({displayName:"SpaceCardBottom__MoreIcon",componentId:"sc-4hwehd-8"})(["mask:url('/res/icons/three-dots.svg') no-repeat center;margin:0;"]),ne=Object(d.c)(Q).withConfig({displayName:"SpaceCardBottom__SendIcon",componentId:"sc-4hwehd-9"})(["width:16px;height:16px;mask:url('/res/icons/send.svg') no-repeat center;margin:0 12px 0 6px;"]),oe=d.c.span.attrs((function(){return{className:"dvn-icon-text"}})).withConfig({displayName:"SpaceCardBottom__IconText",componentId:"sc-4hwehd-10"})(["color:",";"],c.a.gray3),ie=Object(h.a)((function(e){var t,n=e.data,o=e.toggleComments,r=Object(g.a)().t,a=Object(i.useState)(!1),s=a[0],l=a[1],d=n.user_reaction>0;return K(q,null,K(J,{className:d?"liked":"",color:c.a.primary500,onClick:function(){return E.a.setLike(n,d?0:1)},onMouseEnter:function(){return l(n.reaction_count>0&&!0)},onMouseLeave:function(){return l(!1)}},K(d?Z:X,null),K(oe,null,n.reaction_count||r("like")),s&&K(W,{scribbleId:n.scribble_id})),K(J,{color:c.a.primary400,onClick:o},K($,null),K(oe,null,(null===(t=n.comments)||void 0===t?void 0:t.length)||r("comments"))))})),re=Object(d.c)(v.a).withConfig({displayName:"SpaceCardBottom__CommentBox",componentId:"sc-4hwehd-11"})(["position:relative;margin-left:12px;border-radius:18px;padding:10px 16px;"]),ae=Object(d.c)(re).withConfig({displayName:"SpaceCardBottom__NewCommentBox",componentId:"sc-4hwehd-12"})(["background-color:",";flex:1;padding-right:0;align-items:center;"],c.a.gray7),ce=Object(d.c)(re).withConfig({displayName:"SpaceCardBottom__NormalCommentBox",componentId:"sc-4hwehd-13"})(["flex-direction:column;padding:4px 0;"]),se=Object(d.c)(P.m).withConfig({displayName:"SpaceCardBottom__TransparentTextArea",componentId:"sc-4hwehd-14"})(["width:100%;&.bp3-input{background-color:transparent;border:none;padding:0;line-height:16px;border-radius:0;}&.bp3-input:focus,&.bp3-input:active{border:none;box-shadow:none;}::placeholder{color:",";}"],c.a.gray3),le=d.c.img.withConfig({displayName:"SpaceCardBottom__Avatar",componentId:"sc-4hwehd-15"})(["width:36px;height:36px;border-radius:36px;"]),de=d.c.div.withConfig({displayName:"SpaceCardBottom__NewCommentContainer",componentId:"sc-4hwehd-16"})(["display:flex;"]),ue=Object(h.a)((function(e){var t=e.text,n=e.setText,o=e.onComment,r=e.onCancel,a=e.focus,s=Object(g.a)().t,l=Object(i.useRef)(null);Object(i.useEffect)((function(){l.current&&a&&l.current.textareaRef.focus()}
1),[a]);var d=M()((function(){0!==t.trim().length&&setTimeout((function(){o(t)}))}),100);return K(de,null,K(le,{src:B.a.profile.avatar||z.b}),K(ae,null,K(se,{ref:l,placeholder:s("comment-placeholder"),growVertically:!0,style:{height:16},value:t,onChange:function(e){n(e.target.value)},onKeyDown:function(e){return"Enter"!==e.key||e.shiftKey?"Escape"===e.key?(e.preventDefault(),void(r&&r())):void 0:(e.preventDefault(),void d())}}),K(J,{color:c.a.primary400,onClick:d},K(ne,null))))})),pe=d.c.div.withConfig({displayName:"SpaceCardBottom__CommentItemContainer",componentId:"sc-4hwehd-17"})(["display:inline-flex;margin-top:12px;justify-content:space-between;"]),me=d.c.div.withConfig({displayName:"SpaceCardBottom__CommentItemUpperLine",componentId:"sc-4hwehd-18"})(["display:flex;margin-bottom:8px;"]),fe=d.c.span.withConfig({displayName:"SpaceCardBottom__CommentUsername",componentId:"sc-4hwehd-19"})(["font-family:Apple SD Gothic Neo,Poppins,sans-serif;font-weight:500;color:",";margin-right:8px;font-size:14px;line-height:18px;:hover{cursor:pointer;text-decoration:underline;}"],c.a.gray2),he=d.c.span.withConfig({displayName:"SpaceCardBottom__CommentDate",componentId:"sc-4hwehd-20"})(["color:",";font-size:12px;line-height:18px;"],c.a.gray3),ge=Object(d.c)(R.b).withConfig({displayName:"SpaceCardBottom__Item",componentId:"sc-4hwehd-21"})(["padding:8px 16px;"]),ye=function(e){var t=Object(g.a)().t;return K(R.a,null,K(ge,{onClick:e.onEdit},t("comment-edit")),K(ge,{onClick:e.onDelete},t("comment-delete")))},be=d.c.div.withConfig({displayName:"SpaceCardBottom__CommentText",componentId:"sc-4hwehd-22"})(["word-break:break-word;white-space:pre-line;"]),ve=d.c.div.withConfig({displayName:"SpaceCardBottom__EditComment",componentId:"sc-4hwehd-23"})(["margin-top:12px;"]),Ce=function(e){var t=e.data,n=e.note,o=Object(g.a)().t,r=Object(i.useState)(!1),a=r[0],c=r[1],s=Object(i.useState)(!1),l=s[0],d=s[1],u=Object(i.useState)(!1),p=u[0],m=u[1],f=Object(i.useRef)();Object(w.b)(f,(function(){return d(!1)}));var h=Object(i.useState)(""),y=h[0],v=h[1];return p?K(ve,null,K(ue,{text:y,setText:v,onComment:function(e){v(""),m(!1),E.a.editComment(n,t.id,e).then((function(t){t||(v(e),m(!0))}))},onCancel:function(){return m(!1)}}),K("div",{style:{height:8}})):K("div",null,K(pe,{onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},K(le,{src:t.avatar||z.b}),K(ce,null,K(me,null,K(L.a,{href:"/space/users/".concat(t.user_id)},K(fe,null,t.username||z.s)),K(he,null,b()(t.created_at).format("MMMM Do"))),K(be,null,t.content)),K(ee,{ref:f,isShow:t.user_id===B.a.userId&&(a||l),onClick:function(){return d(!l)}},K(te,null),l&&K(ye,{onEdit:function(){v(t.content),m(!0)},onDelete:function(){confirm(o("comment-delete-confirm"))&&E.a.deleteComment(n,t.id)}}))))},we=d.c.div.withConfig({displayName:"SpaceCardBottom__CommentsAreaContainer",componentId:"sc-4hwehd-24"})(["padding:1px 4px 0 4px;"]),xe=Object(h.a)((function(e){var t=e.data,n=e.showComments,o=e.toggleComments,r=e.focusComment,a=t.comments,c=Object(i.useState)(""),s=c[0],l=c[1];return K(we,null,K(ue,{text:s,setText:l,onComment:function(e){l(""),E.a.addComment(t,e).then((function(t){t||l(e)})),n||o()},focus:r}),n&&(null===a||void 0===a?void 0:a.length)>0&&K("div",{style:{marginTop:12}},a.map((function(e){return K(Ce,{key:e.id,data:e,note:t})}))))})),_e=function(e){var t=e.data,n=Object(i.useState)(!0),o=n[0],r=n[1],a=Object(i.useState)(!1),c=a[0],s=a[1],l=function(){s(!c),r(!o)};return B.a.hasToken?K("div",null,K(ie,{data:t,toggleComments:l}),K(xe,{data:t,showComments:o,toggleComments:l,focusComment:c})):null},ke=n("EMC6"),Se=r.a.createElement,Ne=d.c.div.withConfig({displayName:"NoteCardMore__Container",componentId:"sc-1685zju-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;user-select:none;width:24px;height:24px;:hover{cursor:pointer;}:hover,&.opened{color:",";& > div.dvn-svg-icon{background-color:",";}}.bp3-spinner .bp3-spinner-head{stroke:",";}.bp3-spinner .bp3-spinner-track{stroke:",";}"],c.a.primary500,c.a.primary500,c.a.gray7,c.a.gray3),Oe=Object(d.c)(f.a).withConfig({displayName:"NoteCardMore__Text",componentId:"sc-1685zju-1"})(["color:",";margin-left:6px;"],c.a.gray1),Ie=Object(d.c)(R.a).withConfig({displayName:"NoteCardMore__ItemContainer",componentId:"sc-1685zju-2"})(["width:148px;left:unset;bottom:unset;right:-4px;top:28px;transform:unset;"]),je=Object(d.c)(R.b).withConfig({displayName:"NoteCardMore__Item",componentId:"sc-1685zju-3"})(["padding:10px;height:36px;"]),ze=Object(d.c)(C.a).withConfig({displayName:"NoteCardMore__ItemIcon",componentId:"sc-1685zju-4"})(["width:18px;height:18px;"]),Pe=function(e){var t=e.onLink,n=e.onClipboard,o=e.onEdit,a=e.onDelete,s=e.isOwnerNotes,l=Object(i.useRef)(),d=Object(i.useState)(!1),u=d[0],p=d[1];Object(w.b)(l,(function(){return p(!1)}));var m=Object(g.a)().t;return Se(Ne,{ref:l,onClick:function(e){e.stopPropagation(),p(!u)},className:u?"opened":""},Se(ze,{name:"more-btn",style:{backgroundColor:c.a.primary200}}),u&&Se(Ie,null,Se(je,{onClick:t,style:{paddingTop:12}},Se(ze,{name:"link",style:{backgroundColor:c.a.gray1}}),Se(Oe,null,m("item-copy-link"))),Se(je,{onClick:n},Se(ze,{name:"clipboard",style:{backgroundColor:c.a.gray1}}),Se(Oe,null,m("item-copy-link-with-note"))),s&&Se(r.a.Fragment,null,Se(je,{onClick:o},Se(ze,{name:"edit-note",style:{backgroundColor:c.a.gray1}}),Se(Oe,null,m("item-edit"))),Se(je,{onClick:a,style:{paddingBottom:12}},Se(ze,{name:"delete",style:{backgroundColor:c.a.red400}}),Se(Oe,{style:{color:c.a.red400}}
1,m("item-delete"))))))},Ee=n("wEEd"),Te=n("PKwP"),Me=n("gl4J"),Re=r.a.createElement,Be=d.c.div.withConfig({displayName:"NoteCard__BaseCardContainer",componentId:"sc-178k9g8-0"})(["background:#fff;border-radius:8px;width:600px;margin-bottom:20px;transition:box-shadow 0.2s ease-out;:hover{box-shadow:0 4px 8px rgba(34,38,42,0.1);}"]),Le=Object(d.c)(Be).withConfig({displayName:"NoteCard__HomeCardContainer",componentId:"sc-178k9g8-1"})(["display:flex;flex-direction:column;position:relative;padding:14px 12px 12px 12px;box-shadow:",";"],(function(e){return e.isChecked?"0 4px 8px rgba(34, 38, 42, 0.1)":""})),De=d.c.div.withConfig({displayName:"NoteCard__HomeCardTop",componentId:"sc-178k9g8-2"})(["display:flex;justify-content:space-between;height:32px;"]),Fe=d.c.div.withConfig({displayName:"NoteCard__HomeCardTopLeft",componentId:"sc-178k9g8-3"})(["display:flex;align-items:center;margin-bottom:12px;"]),Ae=d.c.div.withConfig({displayName:"NoteCard__UserContent",componentId:"sc-178k9g8-4"})(["flex:1;padding:0 4px 0 8px;border-radius:8px;"]),Ue=Object(d.c)(f.b).withConfig({displayName:"NoteCard__TimePrivate",componentId:"sc-178k9g8-5"})(["color:",";"],c.a.gray3),Ge=Object(d.c)(f.b).withConfig({displayName:"NoteCard__TimePublic",componentId:"sc-178k9g8-6"})(["color:",";:hover{cursor:pointer;text-decoration:underline;}"],c.a.gray3),He=Object(d.c)(f.b).withConfig({displayName:"NoteCard__PrivacySetting",componentId:"sc-178k9g8-7"})(["color:",";"],c.a.gray3),Ve=d.c.div.withConfig({displayName:"NoteCard__Separator",componentId:"sc-178k9g8-8"})(["width:2px;height:2px;border-radius:1px;margin:0 6px;background-color:",";"],c.a.gray3),We=Object(d.c)(le).withConfig({displayName:"NoteCard__ResizedAvatar",componentId:"sc-178k9g8-9"})(["width:36px;height:36px;"]),Ke=d.c.div.withConfig({displayName:"NoteCard__RightContainer",componentId:"sc-178k9g8-10"})(["display:flex;flex-direction:column;justify-content:center;padding-left:12px;"]),qe=d.c.span.withConfig({displayName:"NoteCard__BottomUsernameContainer",componentId:"sc-178k9g8-11"})(["line-height:18px;font-size:12px;color:",";"],c.a.gray3),Ye=d.c.span.withConfig({displayName:"NoteCard__BottomHover",componentId:"sc-178k9g8-12"})([":hover{cursor:pointer;text-decoration:underline;}"]),Je=Object(d.c)(Ye).withConfig({displayName:"NoteCard__BottomUsername",componentId:"sc-178k9g8-13"})(["margin-left:4px;"]),Qe=d.c.span.withConfig({displayName:"NoteCard__VerticalSeparator",componentId:"sc-178k9g8-14"})(["white-space:pre;"]),Xe=d.c.div.withConfig({displayName:"NoteCard__TagNameContainer",componentId:"sc-178k9g8-15"})(["display:flex;flex-direction:row;align-items:center;"]),Ze=d.c.span.withConfig({displayName:"NoteCard__TagName",componentId:"sc-178k9g8-16"})(["font-family:Poppins,sans-serif;font-weight:500;font-size:16px;color:",";:hover{cursor:pointer;text-decoration:underline;}"],c.a.gray2),$e=d.c.span.withConfig({displayName:"NoteCard__Comma",componentId:"sc-178k9g8-17"})(["margin-right:6px;"]),et=Object(d.c)(I.a).withConfig({displayName:"NoteCard__SpaceItemTag",componentId:"sc-178k9g8-18"})([":hover{cursor:pointer;}"]),tt=Object(d.c)(Ae).withConfig({displayName:"NoteCard__UserSpaceContent",componentId:"sc-178k9g8-19"})(["margin-top:0;.owner-note &{border-top:none;}"]),nt=d.c.div.withConfig({displayName:"NoteCard__UsernameContainer",componentId:"sc-178k9g8-20"})(["font-family:Apple SD Gothic Neo,Poppins,sans-serif;font-weight:700;font-size:14px;color:",";letter-spacing:0.0025em;line-height:21px;:hover{cursor:pointer;text-decoration:underline;}"],c.a.gray1),ot=Object(d.c)(C.a).withConfig({displayName:"NoteCard__ResizedSvgIcon",componentId:"sc-178k9g8-21"})(["width:16px;height:16px;margin:0 4px 0 2px;"]),it=Object(d.c)(v.a).withConfig({displayName:"NoteCard__ProfileContent",componentId:"sc-178k9g8-22"})(["margin-bottom:12px;align-items:center;justify-content:space-between;"]),rt=Object(d.c)(v.a).withConfig({displayName:"NoteCard__TagContainer",componentId:"sc-178k9g8-23"})(["flex-wrap:wrap;"]),at=function(e,t){a.a.event({category:"item",action:"click button",label:"copy link"}),navigator.clipboard.writeText("https://linkit.space/space/notes/".concat(e.scribble_id)),p.a.show({message:t,icon:Re(u.a,null),timeout:2e3})},ct=function(e,t){a.a.event({category:"item",action:"click button",label:"copy link
1with note"}),navigator.clipboard.writeText("https://linkit.space/space/notes/".concat(e.scribble_id,"\n").concat(e.note)),p.a.show({message:t,icon:Re(u.a,null),timeout:2e3})},st=function(e){a.a.event({category:"item",action:"click button",label:"edit"}),Object(m.b)(e),s.a.editItemDialog=!0},lt=function(e){a.a.event({category:"item",action:"click button",label:"delete"}),Me.a.scribbleIds=[e.scribble_id],s.a.deleteItemAlert=!0},dt=Object(h.a)((function(e){var t=e.data,n=Object(g.a)().t,o=Object(i.useRef)(b()(t.created_at)),a=Object(i.useState)(!1),s=a[0],d=a[1],u=Object(Ee.useTransition)(s||l.a.hasSelected,{from:{x:-10,opacity:0},enter:{x:0,opacity:1}}),p=l.a.selected.has(t.scribble_id);return Re(Le,{onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)},isChecked:p},Re(Ae,null,Re(De,null,Re(Fe,null,u((function(e,n){return n&&Re(Ee.animated.div,{style:e},Re(Te.a,{isChecked:p,onClick:function(e){e?l.a.select(t.scribble_id):l.a.unselect(t.scribble_id)}}))})),Re(Ue,{title:o.current.format("LLLL")},o.current.format("MMMM Do")),Re(Ve,null),0===t.is_private?Re(r.a.Fragment,null,Re(ot,{name:"globe",style:{backgroundColor:c.a.primary400}}),Re(He,{style:{color:c.a.primary400}},n("item-privacy-setting-public"))):Re(r.a.Fragment,null,Re(ot,{name:"person"}),Re(He,null,n("item-privacy-setting-private")))),Re(Pe,{onLink:function(){return at(t,n("item-copy-link-msg"))},onClipboard:function(){return ct(t,n("item-copy-link-with-note-msg"))},onEdit:function(){return st(t)},onDelete:function(){return lt(t)},isOwnerNotes:!0})),Re(N,null,t.note),Re(rt,{style:{marginBottom:t.tags.length>0?12:0}},t.tags.map((function(e,n){return Re(I.a,{className:O.b.sidebarSelectedTag===e?"selected":"",onClick:function(){return O.b.selectTag(e)},key:"".concat(t.scribble_id,"-").concat(n)},e)})))),Re(ke.a,{ogImage:t.og_image,title:t.title,link:t.link,favImage:t.fav_image,scribble_id:t.scribble_id}))})),ut=Object(h.a)((function(e){var t,n=e.data,o=e.options,a=Object(j.useRouter)(),c=Object(g.a)().t,s=Object(i.useRef)(!o.isFeed||0===n.following_tags.length),l=Object(i.useRef)(b()(n.created_at));return Re(Le,{className:o.isOwnerNotes?"owner-note":""},Re(tt,null,!o.isOwnerNotes&&Re(it,null,Re(v.a,null,Re(We,{src:s.current?n.avatar||z.b:z.a}),Re(Ke,null,s.current?Re(r.a.Fragment,null,Re(L.a,{href:"/space/users/".concat(n.user_id)},Re(nt,null,"".concat(n.username||z.s))),Re(L.a,{href:"/space/notes/".concat(n.scribble_id)},Re(Ge,{title:l.current.format("LLLL")},b()(n.created_at).fromNow()))):Re(r.a.Fragment,null,Re(Xe,null,null===(t=n.following_tags)||void 0===t?void 0:t.map((function(e,t){return Re(r.a.Fragment,null,Re(Ze,{onClick:function(){O.b.goToTagDetailPage(a,e)}},e),t!==n.following_tags.length-1&&Re($e,null,","))}))),Re(qe,null,"by",Re(L.a,{href:"/space/users/".concat(n.user_id)},Re(Je,null,n.username||z.s)),Re(Qe,null," | "),Re(L.a,{href:"/space/notes/".concat(n.scribble_id)},Re(Ye,null,b()(n.created_at).fromNow())))))),Re(Pe,{onLink:function(){return at(n,c("item-copy-link-msg"))},onClipboard:function(){return ct(n,c("item-copy-link-with-note-msg"))},onEdit:function(){return st(n)},onDelete:function(){return lt(n)},isOwnerNotes:B.a.userId===n.user_id})),Re(N,null,n.note),Re(rt,{style:{marginBottom:n.tags.length>0?12:0}},n.tags.map((function(e,t){return Re(et,{key:"".concat(n.scribble_id,"-").concat(t),onClick:function(){return O.b.goToTagDetailPage(a,e)}},e)})))),Re(ke.a,{ogImage:n.og_image,title:n.title,link:n.link,favImage:n.fav_image,scribble_id:n.scribble_id}),Re(_e,{data:n}))})),pt=n("CD7w"),mt=r.a.createElement,ft=d.c.div.withConfig({displayName:"SkeletonCard__CardContainer",componentId:"vy22uz-0"})(["background:#fff;border-radius:8px;width:600px;margin-bottom:20px;transition:box-shadow 0.2s ease-out;:hover{box-shadow:0 4px 8px rgba(34,38,42,0.1);}display:flex;flex-direction:column;position:relative;padding:14px 12px 12px 12px;"]),ht=d.c.div.withConfig({displayName:"SkeletonCard__CardContent",componentId:"vy22uz-1"})(["flex:1;padding:8px;border-radius:8px;margin-top:12px;display:flex;background-color:",";"],c.a.gray8),gt=d.c.div.withConfig({displayName:"SkeletonCard__UserContent",componentId:"vy22uz-2"})(["flex:1;padding:0 4px 0 8px;border-radius:8px;"]),yt=Object(d.c)(le).withConfig({displayName:"SkeletonCard__ResizedAvatar",componentId:"vy22uz-3"})(["width:36px;height:36px;"]),bt=d.c.div.withConfig({displayName:"SkeletonCard__ImageP",componentId:"vy22uz-4"})(["width:72px;height:72px;"]),vt=d.c.div.withConfig({displayName:"SkeletonCard__DomainP",componentId:"vy22uz-5"}
1)(["height:16px;margin-bottom:6px;width:120px;"]),Ct=d.c.div.withConfig({displayName:"SkeletonCard__NoteP",componentId:"vy22uz-6"})(["height:16px;margin-bottom:6px;width:400px;"]),wt=d.c.div.withConfig({displayName:"SkeletonCard__TagP",componentId:"vy22uz-7"})(["height:16px;width:60px;"]),xt=d.c.div.withConfig({displayName:"SkeletonCard__RightContainer",componentId:"vy22uz-8"})(["display:flex;flex-direction:column;justify-content:center;padding-top:4px;padding-left:8px;"]),_t=Object(d.c)(v.a).withConfig({displayName:"SkeletonCard__ProfileContent",componentId:"vy22uz-9"})(["margin-bottom:12px;"]),kt=function(){return mt(ft,null,mt(_t,null,mt(yt,{src:z.b}),mt(xt,null,mt(vt,{className:"bp3-skeleton"}),mt(wt,{className:"bp3-skeleton"}))),mt(gt,null,mt(Ct,{className:"bp3-skeleton"}),mt(wt,{className:"bp3-skeleton"})),mt(ht,null,mt(bt,{className:"bp3-skeleton"})))},St=n("QY22"),Nt=n.n(St),Ot=n("n+Aq"),It=r.a.createElement,jt=function(){return It(r.a.Fragment,null,Object(o.a)(Array(5)).map((function(e,t){return It(kt,{key:t})})))},zt=d.c.div.withConfig({displayName:"NoteList__Container",componentId:"sc-7f1ipw-0"})(["margin-top:20px;"]),Pt=Object(h.a)((function(e){var t=e.data,n=e.emptyList,o=e.isPublic,r=e.options,a=void 0===r?{}:r,c=e.header,s=Object(i.useRef)(),l=Object(Ot.b)(t.length);if(Object(i.useEffect)((function(){var e;l>0&&t.length>0&&(null===(e=s.current)||void 0===e||e.updateFrameAndClearCache())}),[t.length]),pt.a.isLoading)return It(zt,null,It(jt,null));if(0===t.length)return n;var d=o?ut:dt;return It(zt,null,c,It(Nt.a,{ref:s,itemRenderer:function(e,n){return It(d,{key:t[e].scribble_id,data:t[e],options:a})},length:t.length}))}))}}]);
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.