1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[16],{"+I56":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("o0o1"),a=n.n(r),i=n("HaE+"),o=n("1OyB"),c=n("vuIU"),s=n("Ji7U"),u=n("md7G"),l=n("foSv"),p=n("YDKa"),f=n("v2Bi"),d=n("2GhG");function h(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var b=new(function(e){Object(s.a)(n,e);var t=h(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"search",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/search?q=".concat(t));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.data);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"searchNote",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/search/note?q=".concat(t));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.data.notes);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTagIsFollow",value:function(){var e=Object(i.a)(a.a.mark((function e(t,n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.put("/tags/".concat(t,"/is-follow"),{is_follow:n?1:0});case 2:if(204===(r=e.sent).status){e.next=5;break}throw new p.a(r);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"setUserIsFollow",value:function(){var e=Object(i.a)(a.a.mark((function e(t,n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.put("/users/".concat(t,"/is-follow"),{is_follow:n?1:0});case 2:if(204===(r=e.sent).status){e.next=5;break}throw new p.a(r);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getSpaceTagInfo",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/tags/".concat(t));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.data);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSpaceUserInfo",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n,r,i=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],e.next=3,this.get(n?"/ssr/users/".concat(t):"/space/users/".concat(t));case 3:if(200===(r=e.sent).status){e.next=6;break}throw new p.a(r);case 6:return e.abrupt("return",r.data);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getUserFeed",value:function(){var e=Object(i.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/feed");case 2:if(200===(t=e.sent).status){e.next=5;break}throw new p.a(t);case 5:return e.abrupt("return",t.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getTrendingTags",value:function(){var e=Object(i.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/trending-tags");case 2:if(200===(t=e.sent).status){e.next=5;break}throw new p.a(t);case 5:return e.abrupt("return",t.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRecommendations",value:function(){var e=Object(i.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/suggestions");case 2:if(200===(t=e.sent).status){e.next=5;break}throw new p.a(t);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getUserFollowing",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/users/".concat(t,"/following-tags-users"));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.data);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getUserFollower",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/users/".concat(t,"/follower"));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTagFollower",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/tags/".concat(t,"/follower"));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLikedNotes",value:function(){var e=Object(i.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/users/".concat(d.a.userId,"/liked-notes"));case 2:if(200===(t=e.sent).status){e.next=5;break}throw new p.a(t);case 5:return e.abrupt("return",t.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getNoteLikes",value:function(){var e=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/scribbles/".concat(t,"/liked-users"));case 2:if(200===(n=e.sent).status){e.next=5;break}throw new p.a(n);case 5:return e.abrupt("return",n.arr);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLeaderBoard",value:function(){var e=Object(i.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/space/leaderboard");case 2:if(200===(t=e.sent).status){e.next=5;break}throw new p.a(t);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(f.a))},"+arg":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("q1tI"),a=n.n(r),i=n("vOnD"),o=n("CEM3"),c=a.a.createElement,s=i.c.div.withConfig({displayName:"InfoIconRibbon__Container",componentId:"sal4q-0"}
1)(["height:52px;width:48px;background-color:",";display:flex;align-items:center;justify-content:center;border-radius:6px 0 0 6px;"],o.a.primary600),u=function(){return c(s,null,c("img",{src:"/res/icons/info.svg",alt:"info-icon"}))}},"0Np0":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("q1tI"),a=n.n(r),i=n("CEM3"),o=n("vOnD"),c=n("V4kj"),s=n("nwAq"),u=n("TyAF"),l=n("Tayq"),p=n("CD7w"),f=n("kCR9"),d=n("/ES9"),h=a.a.createElement,b=o.c.div.withConfig({displayName:"MiddleContainer__TopContainer",componentId:"sc-69m4sm-0"})(["display:flex;flex-direction:row;overflow-y:hidden;"]),g=o.c.div.withConfig({displayName:"MiddleContainer__ContentWrapper",componentId:"sc-69m4sm-1"})(["display:flex;flex-direction:column;align-items:center;min-width:","px;min-height:calc(100vh - ","px);overflow-y:scroll;padding:0 20px 100px 20px;"],l.d+40,l.o),m=o.c.div.withConfig({displayName:"MiddleContainer__Handler",componentId:"sc-69m4sm-2"})(["display:flex;flex-direction:column;align-items:center;cursor:ew-resize;flex:0 0 auto;width:",";&::before{content:'';position:absolute;top:50%;display:block;border-radius:2px;height:40px;background-color:",";margin:0 auto;width:",";}&::after{content:'';display:block;width:",";height:100%;background-color:",";margin:0 auto;}"],(function(e){return e.open?"10px":"0"}),i.a.gray2,(function(e){return e.open?"5px":"0"}),(function(e){return e.open?"1px":"0"}),i.a.gray5),y=Object(u.a)((function(e){var t=e.children,n=Object(r.useRef)(null),i=Object(r.useRef)(null);return Object(r.useEffect)((function(){c.a.showPreview&&(i.current.addEventListener("mousedown",(function(e){e.preventDefault(),c.a.dragToggle=!0})),document.addEventListener("mousemove",(function(e){if(c.a.dragToggle){var t=n.current;t&&(t.style.width="".concat(e.clientX,"px"))}})),document.addEventListener("mouseup",(function(){c.a.dragToggle=!1})))}),[c.a.showPreview]),Object(r.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.scrollTo(0,0)}),[p.a.currentHomeTab,f.a.searchTags.join(),d.a.processed]),h(b,null,h(g,{ref:n,style:{width:c.a.showPreview?void 0:"100%"}},t),c.a.showPreview&&h(a.a.Fragment,null,h(m,{ref:i,open:c.a.showPreview}),h(s.b,null)))}))},"2qu3":function(e,t,n){"use strict";var r=n("oI91"),a=n("/GRZ"),i=n("i2R6");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.__esModule=!0,t.default=void 0;var l,p=(l=n("q1tI"))&&l.__esModule?l:{default:l},f=n("8L3h"),d=n("jwwS");var h=[],b=[],g=!1;function m(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function y(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=m(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function v(e,t){return p.default.createElement(function(e){return e&&e.__esMo
1dule?e.default:e}(e),t)}function w(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:v,webpack:null,modules:null},t),r=null;function a(){if(!r){var t=new O(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!g&&"function"===typeof n.webpack){var i=n.webpack();b.push((function(e){var t,n=s(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(o){n.e(o)}finally{n.f()}}))}var o=function(e,t){a();var i=p.default.useContext(d.LoadableContext),o=(0,f.useSubscription)(r);return p.default.useImperativeHandle(t,(function(){return{retry:r.retry}}),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((function(e){i(e)})),p.default.useMemo((function(){return o.loading||o.error?p.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?n.render(o.loaded,e):null}),[e,o])};return o.preload=function(){return a()},o.displayName="LoadableComponent",p.default.forwardRef(o)}var O=function(){function e(t,n){a(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=c(c({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function x(e){return w(m,e)}function k(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return k(e,t)}))}x.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return w(y,e)},x.preloadAll=function(){return new Promise((function(e,t){k(h).then(e,t)}))},x.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return g=!0,t()};k(b,e).then(n,n)}))},window.__NEXT_PRELOADREADY=x.preloadReady;var j=x;t.default=j},DVid:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("vOnD"),a=n("d3yt"),i=Object(r.c)(a.b).withConfig({displayName:"Modal",componentId:"sc-1twg7uv-0"})(["background-color:#fff;padding:48px;box-shadow:0 5px 15px rgba(34,38,42,0.2);border-radius:12px;position:relative;"])},"Ic+1":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n("vOnD"),a=r.c.div.withConfig({displayName:"PageHeaderContainer",componentId:"sc-105xcbz-0"})(["display:flex;height:100vh;flex-direction:column;"]),i=r.c.div.withConfig({displayName:"PageHeaderContainer__PageHeaderRemainder",componentId:"sc-105xcbz-1"})(["flex:1;display:flex;flex-direction:column;overflow-y:hidden;"])},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a3WO");var a=n("BsWD");function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(a.a)(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.")}()}},"N/KW":function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r,a,i,o=n("o0o1"),c=n.n(o),s=n("HaE+"),u=n("a3ss"),l=n("1OyB"),p=n("vuIU"),f=n("rePB"),d=n("Y65e"),h=(n("+JCI"),n("2vnA")),b=n("6Hn5"),g=n("vEhQ"),m=n("+I56"),y=n("2GhG"),v=n("YGJC"),w=n("/ES9"),O={keys:["tags","title","note","link"],threshold:.2,ignoreLocation:!0}
1,x=(r=function(){function e(t){Object(l.a)(this,e),Object(f.a)(this,"type",void 0),Object(u.a)(this,"id",a,this),Object(u.a)(this,"info",i,this),this.type=t}return Object(p.a)(e,[{key:"update",value:function(){var e=Object(s.a)(c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.id){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,(t={},Object(f.a)(t,g.b.TAG,m.a.getSpaceTagInfo.bind(m.a)),Object(f.a)(t,g.b.USER,m.a.getSpaceUserInfo.bind(m.a)),t)[this.type](this.id);case 5:this.info=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),Object(b.a)(e.t0);case 11:case"end":return e.stop()}}),e,this,[[2,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"_setFollow",value:function(e){this.info.is_follow=e?1:0,this.info.follower_count+=e?1:-1}},{key:"setFollow",value:function(){var e=Object(s.a)(c.a.mark((function e(t){var n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.type!==g.b.USER||this.id!==y.a.userId){e.next=3;break}return alert("Sorry, you can't follow yourself! \ud83d\ude05"),e.abrupt("return");case 3:return e.prev=3,this._setFollow(t),e.next=7,(n={},Object(f.a)(n,g.b.TAG,m.a.setTagIsFollow.bind(m.a)),Object(f.a)(n,g.b.USER,m.a.setUserIsFollow.bind(m.a)),n)[this.type](this.id,t);case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),Object(b.a)(e.t0),this._setFollow(!t);case 13:case"end":return e.stop()}}),e,this,[[3,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"publicNotesFused",get:function(){var e;return new v.a((null===(e=this.info)||void 0===e?void 0:e.scribbles)||[],O)}},{key:"filteredPublicNotes",get:function(){return this.publicNotesFused.search(w.a.processed).map((function(e){return e.item}))}}]),e}(),a=Object(d.a)(r.prototype,"id",[h.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=Object(d.a)(r.prototype,"info",[h.n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(d.a)(r.prototype,"publicNotesFused",[h.g],Object.getOwnPropertyDescriptor(r.prototype,"publicNotesFused"),r.prototype),Object(d.a)(r.prototype,"filteredPublicNotes",[h.g],Object.getOwnPropertyDescriptor(r.prototype,"filteredPublicNotes"),r.prototype),Object(d.a)(r.prototype,"update",[h.f],Object.getOwnPropertyDescriptor(r.prototype,"update"),r.prototype),Object(d.a)(r.prototype,"setFollow",[h.f],Object.getOwnPropertyDescriptor(r.prototype,"setFollow"),r.prototype),r)},OraA:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("CEM3"),a=n("vOnD"),i=n("X7io"),o=Object(a.c)(i.a).withConfig({displayName:"Tag",componentId:"v9zcxm-0"})(["color:",";border-radius:6px;border:0.5px solid ",";padding:4px 8px;font-size:12px;margin:0 4px 4px 0;user-select:none;align-items:center;:hover{cursor:pointer;}&.selected{background-color:",";}"],r.a.gray2,r.a.gray4,r.a.gray7)},a6RD:function(e,t,n){"use strict";var r=n("oI91");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.__esModule=!0,t.noSSR=s,t.default=function(e,t){var n=o.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=i(i({},r),e));if(r=i(i({},r),t),"object"===typeof e&&!(e instanceof Promise)&&(e.render&&(r.render=function(t,n){return e.render(n,t)}),e.modules)){n=o.default.Map;var a={},c=e.modules();Object.keys(c).forEach((function(e){var t=c[e];"function"!==typeof t.then?a[e]=t:a[e]=function(){return t.then((function(e){return e.default||e}))}})),r.loader=a}r.loadableGenerated&&delete(r=i(i({},r),r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,s(n,r);delete r.ssr}return n(r)};c(n("q1tI"));var o=c(n("2qu3"));
1function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}},dhfL:function(e,t,n){"use strict";n.d(t,"a",(function(){return gt}));var r=n("V4kj"),a=n("Tayq"),i=n("q1tI"),o=n.n(i),c=n("2GhG"),s=n("vOnD"),u=n("o0o1"),l=n.n(u),p=n("HaE+"),f=n("TyAF"),d=n("d3yt"),h=n("X7io"),b=n("1OyB"),g=n("vuIU"),m=n("Ji7U"),y=n("md7G"),v=n("foSv"),w=n("YDKa");function O(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=Object(v.a)(e);if(t){var a=Object(v.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(y.a)(this,n)}}var x=new(function(e){Object(m.a)(n,e);var t=O(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"sendFeedback",value:function(){var e=Object(p.a)(l.a.mark((function e(t,n){var r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/feedbacks",{feedback:t,score:n});case 2:if(201===(r=e.sent).status){e.next=5;break}throw new w.a(r);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendInvite",value:function(){var e=Object(p.a)(l.a.mark((function e(t){var n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/users/send-invite-mail",{email:t});case 2:if(201===(n=e.sent).status){e.next=5;break}throw new w.a(n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(n("v2Bi").a)),k=n("DVid"),j=n("Fbvm"),_=n("CEM3"),C=o.a.createElement,I=s.c.div.withConfig({displayName:"SatisfactionFace__Circle",componentId:"sc-92jrua-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:50px;height:50px;border-radius:50px;margin-right:20px;background-color:#e9ecef;transition:background-color 0.2s ease,box-shadow 0.2s ease;:hover{background-color:",";box-shadow:0 4px 6px rgba(255,211,61,0.25),0 4px 6px 1px rgba(255,211,61,0.25);}"],_.a.yellow),T=s.c.div.withConfig({displayName:"SatisfactionFace__Face",componentId:"sc-92jrua-1"})(["display:inline-block;width:44px;height:44px;background-color:",";transition:background-color 0.2s ease;:hover{background-color:",";cursor:pointer;}"],_.a.gray3,_.a.gray2),S=[Object(s.c)(T).withConfig({displayName:"SatisfactionFace__Faces",componentId:"sc-92jrua-2"})(["mask:url('/res/images/satisfaction",".svg') no-repeat center;"],1),Object(s.c)(T).withConfig({displayName:"SatisfactionFace__Faces",componentId:"sc-92jrua-3"})(["mask:url('/res/images/satisfaction",".svg') no-repeat center;"],2),Object(s.c)(T).withConfig({displayName:"SatisfactionFace__Faces",componentId:"sc-92jrua-4"})(["mask:url('/res/images/satisfaction",".svg') no-repeat center;"],3),Object(s.c)(T).withConfig({displayName:"SatisfactionFace__Faces",componentId:"sc-92jrua-5"})(["mask:url('/res/images/satisfaction",".svg') no-repeat center;"],4),Object(s.c)(T).withConfig({displayName:"SatisfactionFace__Faces",componentId:"sc-92jrua-6"})(["mask:url('/res/images/satisfaction",".svg') no-repeat center;"],5)],M=function(e){return C(I,{onClick:e.onClick,style:{backgroundColor:e.active?_.a.yellow:""}},o.a.createElement(S[e.value-1],{style:{backgroundColor:e.active?_.a.gray2:""}}))},P=s.c.div.withConfig({displayName:"HeaderText",componentId:"s6ckst-0"})(["font-family:Nexa-Bold,sans-serif;font-weight:bold;font-size:32px;line-height:32px;color:",";text-align:center;"],_.a.gray1),E=s.c.div.withConfig({displayName:"ContentText",componentId:"l19tk6-0"})(["text-align:center;font-size:16px;white-space:pre;line-height:20px;color:",";"],_.a.gray3),N=n("6Hn5"),D=n("9Koi"),F=o.a.createElement,R=Object(f.a)((function(){var e=Object(D.a)().t,t=Object(i.useState)(5),n=t[0],a=t[1],o=Object(i.useState)(""),c=o[0],s=o[1],u=Object(i.useState)(!1),f=u[0],b=u[1],g=Object(i.useState)(!1),m=g[0],y=g[1],v=Object(i.useRef)(null),w=function(){a(5),s(""),y(!1),r.a.feedbackDialog=!1};return F(k.a,{isOpen:r.a.feedbackDialog,onClose:w},F(j.a,{onClick:w}),F(P,{style:{marginTop:32}},e("feedback-header")),F(E,{style:{marginTop:12,marginBottom:32,lineHeight:1.4}},e("feedback-content")),F(h.a,{style:{justifyContent:"center"}},[1,2,3,4,5].map((function(e){return F(M,{key:e,value:e,active:n===e,onClick:function(){return a(e)}})}))),F("div",{style:{marginTop:24}}),F(d.m,{inputRef:v,className:m?"error":"",style:{height:224,fontSize:16,lineHeight:"24px",backgroundColor:_.a.gray8,padding:16},value:c,onChange:function(e){var t=e.target.value;s(t),m&&t.length>0&&y(!1)}}
1),F("div",{style:{textAlign:"right",marginTop:24,display:"flex",flexDirection:"column"}},F(d.a,{style:{fontWeight:500,padding:16},loading:f,onClick:Object(p.a)(l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.trim().length<1)){e.next=4;break}return m?(y(!1),setTimeout((function(){y(!0)}))):y(!0),null===(t=v.current)||void 0===t||t.focus(),e.abrupt("return");case 4:return e.prev=4,b(!0),e.next=8,x.sendFeedback(c,n);case 8:w(),r.a.feedbackCompleteModal=!0,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),Object(N.a)(e.t0);case 15:return e.prev=15,b(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[4,12,15,18]])})))},e("feedback-send"))))})),B=o.a.createElement,z=Object(f.a)((function(){var e=Object(D.a)().t;return B(k.a,{isOpen:r.a.feedbackCompleteModal,onOpened:function(){setTimeout((function(){r.a.feedbackCompleteModal=!1}),2e3)}},B(P,null,e("feedback-done-header")),B(E,{style:{marginTop:12}},e("feedback-done-content")))})),L=n("5QfL"),A=n("kmSd"),U=n("kCR9"),H=n("8RDt"),q=n("vEhQ"),G=n("rePB"),V={};!function e(t,n,r,a){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function o(){}function c(e){var r=n.exports.Promise,a=void 0!==r?r:t.Promise;return"function"===typeof a?new a(e):(e(o,o),null)}var s=function(){var e,t,n=Math.floor(1e3/60),r={},a=0;return"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return r[t]=requestAnimationFrame((function i(o){a===o||a+n-1<o?(a=o,delete r[t],e()):r[t]=requestAnimationFrame(i)})),t},t=function(e){r[e]&&cancelAnimationFrame(r[e])}):(e=function(e){return setTimeout(e,n)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),u=function(){var t,n,a={};return function(){if(t)return t;if(!r&&i){var o=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([o])))}catch(s){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",s),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(r,i,o){if(n)return t(r,null),n;var s=Math.random().toString(36).slice(2);return n=c((function(i){function c(t){t.data.callback===s&&(delete a[s],e.removeEventListener("message",c),n=null,o(),i())}e.addEventListener("message",c),t(r,s),a[s]=c.bind(null,{data:{callback:s}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),a)a[t](),delete a[t]}}(t)}return t}}(),l={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function p(e,t,n){return function(e,t){return t?t(e):e}(e&&(null!==(r=e[t])&&void 0!==r)?e[t]:l[t],n);var r}function f(e){return e<0?0:Math.floor(e)}function d(e){return parseInt(e,16)}function h(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:d(t.substring(0,2)),g:d(t.substring(2,4)),b:d(t.substring(4,6))}}function b(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function g(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function m(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:Math.random()*Math.PI,color:h(e.color),shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,random:Math.random()+5,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar}}function y(e,t,n,i,o){var u,l,p=t.slice(),f=e.getContext("2d"),d=c((function(t){function c(){u=l=null,f.clearRect(0,0,i.width,i.height),o(),t()}u=s.frame((function t(){!r||i.width===a.width&&i.height===a.height||(i.width=e.width=a.width,i.height=e.height=a.height),i.width||i.height||(n(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),(p=p.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=.1,t.velocity
1*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+5,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,a=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,a,i,o,c,s){e.save(),e.translate(t,n),e.rotate(i),e.scale(r,a),e.arc(0,0,1,o,c,s),e.restore()}(e,t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(a)),e.lineTo(Math.floor(i),Math.floor(o)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)}))).length?u=s.frame(t):c()})),l=c}));return{addFettis:function(e){return p=p.concat(e),d},canvas:e,promise:d,reset:function(){u&&s.cancel(u),l&&l()}}}function v(e,n){var r,a=!e,o=!!p(n||{},"resize"),s=p(n,"disableForReducedMotion",Boolean),l=i&&!!p(n||{},"useWorker")?u():null,d=a?b:g,h=!(!e||!l)&&!!e.__confetti_initialized,v="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function w(t,n,a){for(var i,o,c=p(t,"particleCount",f),s=p(t,"angle",Number),u=p(t,"spread",Number),l=p(t,"startVelocity",Number),h=p(t,"decay",Number),b=p(t,"gravity",Number),g=p(t,"colors"),v=p(t,"ticks",Number),w=p(t,"shapes"),O=p(t,"scalar"),x=function(e){var t=p(e,"origin",Object);return t.x=p(t,"x",Number),t.y=p(t,"y",Number),t}(t),k=c,j=[],_=e.width*x.x,C=e.height*x.y;k--;)j.push(m({x:_,y:C,angle:s,spread:u,startVelocity:l,color:g[k%g.length],shape:w[(i=0,o=w.length,Math.floor(Math.random()*(o-i))+i)],ticks:v,decay:h,gravity:b,scalar:O}));return r?r.addFettis(j):(r=y(e,j,d,n,a)).promise}function O(n){var i=s||p(n,"disableForReducedMotion",Boolean),u=p(n,"zIndex",Number);if(i&&v)return c((function(e){e()}));a&&r?e=r.canvas:a&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(u),document.body.appendChild(e)),o&&!h&&d(e);var f={width:e.width,height:e.height};function b(){if(l){var t={getBoundingClientRect:function(){if(!a)return e.getBoundingClientRect()}};return d(t),void l.postMessage({resize:{width:t.width,height:t.height}})}f.width=f.height=null}function g(){r=null,o&&t.removeEventListener("resize",b),a&&e&&(document.body.removeChild(e),e=null,h=!1)}return l&&!h&&l.init(e),h=!0,l&&(e.__confetti_initialized=!0),o&&t.addEventListener("resize",b,!1),l?l.fire(n,f,g):w(n,f,g)}return O.reset=function(){l&&l.reset(),r&&r.reset()},O}n.exports=v(null,{useWorker:!0,resize:!0}),n.exports.create=v}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),V,!1);var W=V.exports;V.exports.create;function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Object(G.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J,X,Q,Z,$,ee,te,ne=function(){var e={origin:{y:.7}};function t(t,n){W(Y(Y(Y({},e),n),{},{particleCount:Math.floor(200*t)}))}t(.25,{spread:26,startVelocity:55}),t(.2,{spread:60}),t(.35,{spread:100,decay:.91,scalar:.8}),t(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),t(.1,{spread:120,startVelocity:45})},re=o.a.createElement,ae=Object(s.c)(d.b).withConfig({displayName:"TutorialModal__Modal",componentId:"sc-6rb4v4-0"})(["width:832px;height:520px;border-radius:0;background-color:#252434;position:relative;"]),ie=s.c.img.withConfig({displayName:"TutorialModal__Button",componentId:"sc-6rb4v4-1"})(["width:","px;height:","px;position:absolute;top:50%;transform:translateY(-50%);:hover{cursor:pointer;}"],54,54),oe=Object(s.c)(A.d).withConfig({displayName:"TutorialModal__Text",componentId:"sc-6rb4v4-2"})(["z-index:1;font-size:26px;font-weight:500;color:#fff;width:100%;text-align:center;position:absolute;top:64px;"]),ce=s.c.video.withConfig({displayName:"TutorialModal__Video",componentId:"sc-6rb4v4-3"})(["position:absolute;width:100%;height:100%;z-index:0;"]),se=s.c.a.withConfig({displayName:"TutorialModal__CustomA",componentId:"sc-6rb4v4-4"})(["&,&:hover{font-weight:bold;color:#fff;text-decoration:underline #fff;}"]),ue=Object(f.a)((function(){var e=Object(i.useState)(1),t=e[0],n=e[1];return re(ae,{isOpen:r.a.tutorialModal,onOpening:function(){return n(1)},onClose:function(){3===t&&localStorage.setItem(Object(L.b)(c.a.userId),"true"),r.a.tutorialModal=!1;var e=U.a._scribbles.length;Promise.all([U.a.updateScribbles(),H.b.update(q.f.SCRIBBLE)]).then((function(){var t=U.a._scribbles.length;t>e&&t>0&&(setTimeout((function(){return ne()})),setTimeout((function(){r.a.tutorialCompleteModal=!0})))}))}},re(ie,{src:"/res/icons/left-arrow-button.svg",style:{left:-94,display:1===t?"none":"block"},onClick:function(){return n(t-1)}}),re(ie,{src:"/res/icons/right-arrow-button.svg",style:{right:-94,display:3===t?"none":"block"},onClick:function(){return n(t+1)}}),[re(le,null),re(pe,null),re(fe,null)][t-1])}
1)),le=function(){var e=Object(D.a)().i18n;return re(o.a.Fragment,null,re(oe,null,Object(N.d)(e)?re(o.a.Fragment,null,re(se,{href:a.e[a.u],target:"_blank",rel:"noreferrer"},"\uc774\uacf3"),"\uc744 \ud074\ub9ad\ud574\uc11c \ud655\uc7a5 \ud504\ub85c\uadf8\ub7a8\uc744 \uc124\uce58\ud574\uc8fc\uc138\uc694!"):re(o.a.Fragment,null,"Click"," ",re(se,{href:a.e[a.u],target:"_blank",rel:"noreferrer"},"here")," ","to install the extension!")),re(ce,{loop:!0,autoPlay:!0,muted:!0},re("source",{src:"/res/videos/tutorial/tutorial1.mp4",type:"video/mp4"})))},pe=function(){var e=Object(D.a)().t;return re(o.a.Fragment,null,re(oe,null,e("tutorial2-text")),re(ce,{loop:!0,autoPlay:!0,muted:!0},re("source",{src:"/res/videos/tutorial/tutorial2.mp4",type:"video/mp4"})))},fe=function(){var e=Object(D.a)().t;return re(o.a.Fragment,null,re(oe,null,e("tutorial3-text")),re(ce,{loop:!0,autoPlay:!0,muted:!0},re("source",{src:"/res/videos/tutorial/tutorial3.mp4",type:"video/mp4"})))},de=o.a.createElement,he=Object(f.a)((function(){var e=Object(D.a)().t;return de(k.a,{isOpen:r.a.setUsernameCompleteModal,onOpened:function(){setTimeout((function(){r.a.setUsernameCompleteModal=!1}),3e3)}},de(P,null,e("username-setting-done-title")),de(E,{style:{marginTop:12}},e("username-setting-done-content")))})),be=n("OOfM"),ge=n("wk8K"),me=n("gev1"),ye=n("+arg"),ve=o.a.createElement,we=s.c.div.withConfig({displayName:"Invite__StyledContainer",componentId:"kd32ew-0"})(["display:flex;justify-content:space-between;height:48px;background-color:",";padding:14px 16px;border-radius:6px;align-items:center;"],_.a.gray8),Oe=s.c.div.withConfig({displayName:"Invite__SubTitle",componentId:"kd32ew-1"})(["margin-left:16px;margin-bottom:4px;font-family:'Nexa Bold',sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:32px;color:",";"],_.a.gray1),xe=Object(s.c)(be.a).withConfig({displayName:"Invite__StyledButton",componentId:"kd32ew-2"})([":after{width:100%;height:1px;}",""],(function(e){return e.cpDone&&Object(s.b)([":hover:after,:after{width:0;}"])})),ke=Object(f.a)((function(){var e=Object(D.a)().t,t=Object(i.useState)(""),n=t[0],a=t[1],o=Object(i.useState)(!1),c=o[0],s=o[1],u=Object(i.useState)(!1),f=u[0],h=u[1],b=Object(i.useState)(!1),g=b[0],m=b[1],y=Object(i.useState)(!1),v=y[0],w=y[1],O=Object(i.useRef)(null),C=function(){w(!1),a(""),r.a.inviteDialog=!1},I=function(){var e=Object(p.a)(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.trim()){e.next=3;break}return e.abrupt("return");case 3:return s(!0),e.next=6,x.sendInvite(n);case 6:C(),setTimeout((function(){return ne()})),setTimeout((function(){r.a.inviteCompleteModal=!0})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),alert(e.t0);case 14:return e.prev=14,s(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(){return e.apply(this,arguments)}}();return ve(k.a,{isOpen:r.a.inviteDialog,onClose:C},ve(j.a,{onClick:C}),ve(P,{style:{marginTop:32}},e("invite-header")),ve(E,{style:{whiteSpace:"inherit",marginTop:12,marginBottom:32}},e("invite-content")),ve(Oe,null,e("invite-via-link")),ve(we,null,ve(ge.b,{value:"https://linkit.space/?ref=invk",readOnly:!0,style:{fontSize:16,width:200,cursor:"default",margin:0,color:_.a.gray3}}),ve(xe,{cpDone:v,style:{color:_.a.primary400},onClick:function(){var t,n;t="https://linkit.space/?ref=invk",n=e("invite-via-link-copied-msg"),navigator.clipboard.writeText(t),me.a.show({message:n,icon:ve(ye.a,null),timeout:2e3}),w(!0)},disabled:v},e(v?"invite-via-link-copied":"invite-via-link-copy"))),ve(Oe,{style:{marginTop:32}},e("invite-via-email")),ve(we,{onMouseEnter:function(){return h(!0)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onMouseLeave:function(){return h(!1)},style:Object.assign(f?{boxShadow:"0 0 0 2px rgba(89, 0, 237, 0.1)"}:{border:"1px solid transparent"},g?{border:"1px solid #794dee",boxShadow:"0 0 0 3px rgba(89, 0, 237, 0.1)"}:{border:"1px solid transparent"})},ve(ge.b,{placeholder:e("invite-via-email-placeholder"),value:n,onChange:function(e){a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&I()},ref:O,style:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:16,lineHeight:"20px",color:"#4A5056"}})),ve("div",{style:{marginTop:16,display:"flex",flexDirection:"column"}},ve(d.a,{loading:c,onClick:I,style:{fontWeight:500,padding:16}},e("invite-via-email-send"))))})),je=o.a.createElement,_e=Object(f.a)((function(){var e=Object(D.a)().t;return je(k.a,{isOpen:r.a.inviteCompleteModal,onOpened:function(){setTimeout((function(){r.a.inv
1iteCompleteModal=!1}),3e3)}},je(P,null,e("invite-done-header")),je(E,{style:{marginTop:12}},e("invite-done-content")))})),Ce=n("phLH"),Ie=o.a.createElement,Te=Object(f.a)((function(){var e=Object(D.a)().t,t=Object(i.useState)(""),n=t[0],a=t[1],o=Object(i.useState)(!1),s=o[0],u=o[1],f=Object(i.useState)(null),h=f[0],b=f[1],g=Object(i.useRef)(null);Object(i.useEffect)((function(){var e;null===(e=g.current)||void 0===e||e.focus()}),[]);var m=function(){a(""),b(null),r.a.setUsernameDialog=!1},y=function(){var t=Object(p.a)(l.a.mark((function t(){var a;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n.trim().length){t.next=2;break}return t.abrupt("return");case 2:if(/^(?!.*\.\.)(?!.*\.$)[^\W][\w.]{0,29}$/.test(n)){t.next=6;break}return b(e("username-setting-invalid")),null===(a=g.current)||void 0===a||a.focus(),t.abrupt("return");case 6:return b(null),t.prev=7,u(!0),t.next=11,c.a.saveUsername(n);case 11:m(),setTimeout((function(){return ne()})),setTimeout((function(){r.a.setUsernameCompleteModal=!0})),Ce.d.info.username=n,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(7),409===(null===t.t0||void 0===t.t0?void 0:t.t0.status)?b(e("username-setting-taken")):b(t.t0.message);case 20:return t.prev=20,u(!1),t.finish(20);case 23:case"end":return t.stop()}}),t,null,[[7,17,20,23]])})));return function(){return t.apply(this,arguments)}}();return Ie(k.a,{isOpen:r.a.setUsernameDialog,onClose:m,onOpened:function(){a(c.a.profile.username||"")}},Ie(j.a,{onClick:m}),Ie(P,{style:{marginTop:32}},e("username-setting-title")),Ie("div",{style:{marginTop:32,marginBottom:8,marginLeft:16,fontFamily:"Nexa Bold"}},e("username-setting-content")),Ie(ge.a,{style:{width:"100%",border:"none",backgroundColor:_.a.gray8,borderRadius:6,height:48},onKeyDown:function(e){"Enter"===e.key&&y()}},Ie("div",{style:{width:16,height:16,marginLeft:16,marginRight:8,marginBottom:4,fontFamily:"Roboto",fontWeight:"bold",color:"#aaa"}},"@"),Ie(ge.b,{ref:g,value:n,spellCheck:!1,onChange:function(e){var t=e.target.value;t.includes(" ")||a(t)},maxLength:30,style:{fontFamily:"Roboto"}}),h&&Ie("div",{style:{color:_.a.red300,marginRight:8}},h)),Ie("div",{style:{marginTop:24,display:"flex",flexDirection:"column"}},Ie(d.a,{loading:s,onClick:y,style:{padding:16,fontWeight:500}},e("username-setting-button"))))})),Se=n("nOHt"),Me=o.a.createElement,Pe=Object(f.a)((function(){var e=Object(D.a)().t;return Me(k.a,{isOpen:r.a.tutorialCompleteModal,onOpened:function(){setTimeout((function(){r.a.tutorialCompleteModal=!1}),1e4)},onClose:function(){r.a.tutorialCompleteModal=!1}},Me(P,null,e("help-done-title")),Me(E,{style:{marginTop:24,lineHeight:1.5}},e("help-done-content")))})),Ee=n("/ES9"),Ne=Object(s.c)(A.i).withConfig({displayName:"ModalCommon__ModalStepTitle",componentId:"fkb0k3-0"})(["color:",";margin-bottom:8px;"],_.a.gray2),De=s.c.button.withConfig({displayName:"ModalCommon__ModalButton",componentId:"fkb0k3-1"})(["border-radius:24px;padding:12px 32px;background-color:",";border:none;color:#fff;position:absolute;bottom:","px;left:50%;transform:translateX(-50%);cursor:pointer;:hover{background-color:",";}"],_.a.primary500,32,_.a.primary600),Fe=Object(s.c)(A.h).withConfig({displayName:"ModalCommon__ModalTitle",componentId:"fkb0k3-2"})(["margin-top:8px;margin-bottom:40px;text-align:center;"]),Re=Object(s.c)(A.e).withConfig({displayName:"ModalCommon__ModalSubtitle",componentId:"fkb0k3-3"})(["text-align:center;color:",";white-space:pre-line;"],_.a.gray3),Be=Object(s.c)(k.a).withConfig({displayName:"ModalCommon__HelpModal",componentId:"fkb0k3-4"})(["width:500px;height:620px;padding:","px 54px;"],32),ze=o.a.createElement,Le=s.c.div.withConfig({displayName:"ShortcutModal__Container",componentId:"sc-4lb340-0"})(["display:flex;"]),Ae=s.c.div.withConfig({displayName:"ShortcutModal__Wrapper",componentId:"sc-4lb340-1"})(["display:flex;flex-direction:column;"]),Ue=s.c.div.withConfig({displayName:"ShortcutModal__ImageWrapper",componentId:"sc-4lb340-2"})(["flex:1;display:flex;align-items:center;justify-content:flex-end;img{width:140px;}"]),He=Object(s.c)(A.e).withConfig({displayName:"ShortcutModal__Description",componentId:"sc-4lb340-3"})(["white-space:pre;"]),qe=Object(f.a)((function(){var e=Object(D.a)().t,t=function(){r.a.shortcutModal=!1};return ze(Be,{isOpen:r.a.shortcutModal,onClose:t,style:{height:"unset",paddingBottom:120}},ze(Fe,null,e("shortcut-title")),ze(Le,{style:{marginBottom:32}}
1,ze(Ae,null,ze(Ne,null,e("shortcut-open-note")),ze(He,null,e("shortcut-open-note-content"))),ze(Ue,null,ze("img",{src:"/res/images/shortcut1-".concat(a.k?"mac":"windows",".svg")}))),ze(Le,null,ze(Ae,null,ze(Ne,null,e("shortcut-goto-home")),ze(He,null,e("shortcut-goto-home-content"))),ze(Ue,null,ze("img",{src:"/res/images/shortcut2-".concat(a.k?"mac":"windows",".svg")}))),ze(De,{onClick:t},ze(A.c,null,e("shortcut-done-button"))))})),Ge=n("8Kt/"),Ve=n.n(Ge),We=n("a3ss"),Ke=n("Y65e"),Ye=(n("+JCI"),n("xySv")),Je=n("9RHx"),Xe=n("2vnA"),Qe=n("OraA"),Ze=s.c.input.withConfig({displayName:"TextInput",componentId:"v1w1ap-0"})(["border:1px solid ",";border-radius:6px;padding:8px 10px;font-size:16px;line-height:24px;&:focus{border:1px solid ",";box-shadow:0 0 0 3px rgba(89,0,237,0.1);}"],_.a.gray5,_.a.primary400),$e=n("jQuX"),et=n("iyAk"),tt=o.a.createElement,nt=(J=function(){function e(){Object(b.a)(this,e),Object(We.a)(this,"channel",X,this),Object(We.a)(this,"interests",Q,this),Object(We.a)(this,"expectation",Z,this),Object(We.a)(this,"step",$,this),Object(We.a)(this,"errorOnChannel",ee,this),Object(We.a)(this,"errorOnInterests",te,this)}return Object(g.a)(e,[{key:"goToNextStep",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e<=this.step||(this.step+=1)}},{key:"submit",value:function(){return 0===this.interests.length?(this.errorOnInterests=!0,!1):($e.a.setSignupSurvey(c.a.userId,this.expectation||null,this.channel||null,this.interests.join()),!0)}}]),e}(),X=Object(Ke.a)(J.prototype,"channel",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Q=Object(Ke.a)(J.prototype,"interests",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Z=Object(Ke.a)(J.prototype,"expectation",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),$=Object(Ke.a)(J.prototype,"step",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ee=Object(Ke.a)(J.prototype,"errorOnChannel",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),te=Object(Ke.a)(J.prototype,"errorOnInterests",[Xe.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J),rt=Object(s.c)(A.e).withConfig({displayName:"SignupSurveyModal__Text",componentId:"dyjrog-0"})(["white-space:nowrap;"]),at=function(e){var t=e.text,n=e.selected,r=e.onClick;return tt(Qe.a,{className:n?"selected":"",style:{marginBottom:8,marginTop:0},onClick:r},tt(rt,null,t))},it=Object(s.c)(k.a).withConfig({displayName:"SignupSurveyModal__StyledModal",componentId:"dyjrog-1"})(["transition:height 0.5s ease-out;"]),ot=s.c.div.withConfig({displayName:"SignupSurveyModal__StyledBox",componentId:"dyjrog-2"})(["transition:opacity 0.5s ease-out;transition-delay:0.2s;"]),ct=Object(f.a)((function(){var e=Object(i.useRef)(new nt),t=Object(D.a)(),n=t.t,a=t.i18n,c=Object(N.d)(a),s=function(){return tt("div",{style:{marginRight:12,marginLeft:12}},tt(d.g,{position:Ye.a.BOTTOM,minimal:!0,fill:!0,content:tt(d.e,{large:!0,style:{width:c?182:240,height:210}},n("signup-channels",{returnObjects:!0}).map((function(t){return tt(d.e.Item,{key:t,text:t,onClick:function(){e.current.channel=t,e.current.goToNextStep(2)},style:{color:_.a.gray3}})})))},tt(d.d,{rightElement:tt(Je.a,null,tt(d.c,{style:{position:"absolute",top:15,right:15,color:_.a.primary200},icon:"caret-down"})),style:{height:44,width:c?182:240,boxSizing:"border-box",borderRadius:6},placeholder:n("signup-channel-select"),type:"text",value:e.current.channel,onChange:function(t){e.current.channel=t.target.value,e.current.goToNextStep(2)},large:!0})))};return tt(it,{isOpen:r.a.signupSurveyModal,canOutsideClickClose:!1,style:{height:[0,290,c?440:480,c?600:640][e.current.step]}},tt(Fe,{style:{marginBottom:16}},n("signup-survey-title")),tt(Re,null,n("signup-survey-subtitle")),tt(h.a,{style:{alignItems:"center",marginTop:28,marginBottom:36}},c?tt(o.a.Fragment,null,tt(rt,null,"\uc800\ub294 \ub9c1\ud06c\uc787\uc744"),s(),tt(rt,null,"\uc54c\uac8c \ub418\uc5c8\uc5b4\uc694!")):tt(o.a.Fragment,null,tt(rt,null,"I foun
1d linkit via"),s())),tt(ot,{style:{opacity:e.current.step>1?1:0,marginBottom:28}},tt("div",{style:{marginBottom:16}},tt(rt,null,n("signup-interest-title")),e.current.errorOnInterests&&tt(rt,{style:{color:_.a.red300,marginLeft:2}},"*")),tt(h.a,{style:{flexWrap:"wrap"}},n("signup-interests",{returnObjects:!0}).map((function(t){var n=e.current.interests.findIndex((function(e){return e===t})),r=n>=0;return tt(at,{key:t,text:t,selected:r,onClick:function(){r?e.current.interests.splice(n,1):e.current.interests.push(t),e.current.goToNextStep(3)}})})))),tt(ot,{style:{opacity:e.current.step>2?1:0}},tt("div",null,tt("div",{style:{marginBottom:12}},tt(rt,null,n("signup-expectation-title"))),tt(Ze,{style:{width:"100%"},value:e.current.expectation,onChange:function(t){e.current.expectation=t.target.value}})),tt(De,{onClick:function(){e.current.submit()&&(r.a.signupSurveyModal=!1,Object(et.a)()&&setTimeout((function(){r.a.tutorialModal=!0}),500))}},n("signup-survey-done"))))})),st=n("pDkn"),ut=n("a6RD"),lt=n.n(ut),pt=n("Vd+O"),ft=o.a.createElement,dt=lt()((function(){return Promise.all([n.e(14),n.e(12),n.e(20),n.e(37)]).then(n.bind(null,"GnJ4"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["GnJ4"]},modules:["./PageHeaderBar"]}}),ht=s.c.img.withConfig({displayName:"PageHeader__PointArrowImage",componentId:"sc-1f3qb3f-0"})(["@keyframes action{0%{transform:translateY(0);}100%{transform:translateY(10%);}}position:fixed;top:8px;right:24px;z-index:100;animation:action 0.5s infinite alternate;"]),bt=Object(f.a)((function(){return r.a.pointingArrow?ft(ht,{src:"/res/images/arrow-up-pointer.svg"}):null})),gt=function(){var e=Object(i.useState)(""),t=e[0],n=e[1],s=Object(Se.useRouter)(),u=Object(D.a)().t;return Object(i.useEffect)((function(){c.a.hasToken&&c.a.initProfile().catch((function(e){e instanceof w.b&&(c.a.logout(),s.replace("/login"))})),a.h&&n(window.location.pathname)}),[]),Object(i.useEffect)((function(){window.location.href.includes("?q=")||Ee.a.set(""),r.a.clearPreview()}),[t]),ft(o.a.Fragment,null,ft(Ve.a,null,ft("title",null,u("default-title"))),ft("div",{style:{height:a.o}},c.a.hasToken?ft(dt,{pathname:t}):ft(st.a,null)),ft(R,null),ft(z,null),ft(ue,null),ft(Pe,null),ft(qe,null),ft(ke,null),ft(_e,null),ft(Te,null),ft(he,null),ft(ct,null),ft(bt,null),ft(pt.a,null))}},ehos:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a,i=!1,o=0;function c(){a&&clearTimeout(a)}function s(){c(),i=!0}function u(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var p=this,f=Date.now()-o;function d(){o=Date.now(),n.apply(p,u)}function h(){a=void 0}i||(r&&!a&&d(),c(),void 0===r&&f>e?d():!0!==t&&(a=setTimeout(r?h:d,void 0===r?e-f:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),u.cancel=s,u}function n(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)}e.debounce=n,e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},gev1:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n("d3yt"),a=n("xySv"),i=n("Tayq"),o=n("+arg"),c=n("q1tI"),s=n.n(c).a.createElement,u=i.h?r.n.create({position:a.a.BOTTOM_RIGHT}):{show:function(){}},l=function(e){u.show({message:e,icon:s(o.a,null),timeout:2e3})}},iyAk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("kCR9"),a=n("5QfL"),i=n("2GhG"),o=function(){return 0===r.a.scribbles.length&&null===localStorage.getItem(Object(a.b)(i.a.userId))}},jwwS:function(e,t,n){"use strict";var r;t.__esModule=!0,t.LoadableContext=void 0;var a=((r=n("q1tI"))&&r.__esModule?r:{default:r}).default.createContext(null);t.LoadableContext=a},nwAq:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n("vOnD"),a=n("q1tI"),i=n.n(a),o=n("TyAF"),c=n("V4kj"),s=n("CEM3"),u=n("X7io"),l=n("d3yt"),p=i.a.createElement,f=r.c.div.withConfig({displayName:"PreviewContainer__Wrapper",componentId:"sc-1k1by91-0"})(["display:flex;flex-direction:column;min-width:400px;overflow-y:scroll;flex:1;transition:0.5s ease-in-out all;"]),d=r.c.iframe.withConfig({displayName:"PreviewContainer__Preview",componentId:"sc-1k1by91-1"})(["width:100%;flex:1;overflow-y:scroll;border:none;"]),h=r.c.div.withConfig({displayName:"PreviewContainer__MenuBar",componentId:"sc-1k1by91-2"})(["width:100%;display:flex;align-items:center;justify-content:flex-end;padding:10px 16px;background-color:",";height:40px;"],s.a.gray8),b=r.c.div.withConfig({displayName:"PreviewContainer__OpenLink",componentId:"sc-1k1by91-3"})(["cursor:pointer;mask:url('/res/icons/open-link.svg') no-repeat center;background-color:#000;width:20px;height:20px;"]),g=r.c.div.withConfig({displayName:"PreviewContainer__Close",componentId:"sc-1k1by91-4"})(["cursor:pointer;mask:url('/res/icons/close-preview.svg') no-repeat center;background-color:#000;width:20px;margin-left:12px;height:20px;"]),m=Object(o.a)((function(){var e=Object(a.useState)(!0),t=e[0],n=e[1];return Object(a.useEffect)((function(){c.a.preview&&(n(!0),c.a.getPreview().finally((function(){n(!1)})))}),[c.a.preview.link]),t?p(f,{style:{justifyContent:"center"}},p(l.i,{size:48})):p(f,null,p(h,null,p(u.a,null,p(b,{onClick:function(){window.open(c.a.preview.link)}}),p(g,{onClick:function(){c.a.clearPreview()}}))),p(d,{srcDoc:c.a.srcDoc,src:c.a.src,title:"preview",sandbox:c.a.sandboxOption,style:{pointerEvents:c.a.dragToggle?"none":"auto"}}))}))},phLH:function(e,t,n){"use strict";n.d(t,"a",(function(){return H})),n.d(t,"b",(function(){return q})),n.d(t,"d",(function(){return G})),n.d(t,"c",(function(){return V}));var r,a,i,o,c,s,u,l=n("KQm4"),p=n("o0o1"),f=n.n(p),d=n("HaE+"),h=n("a3ss"),b=n("1OyB"),g=n("vuIU"),m=n("rePB"),y=n("Y65e"),v=(n("+JCI"),n("NTr2")),w=n.n(v),O=n("2vnA"),x=n("ehos"),k=n("u2SK"),j=n("vEhQ"),_=n("kCR9"),C=n("8RDt");!function(e){e.SCRIBBLE="scribble",e.BOOK="book"}(u||(u={}));var I,T,S,M,P,E,N,D,F,R,B,z=(r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.SCRIBBLE;Object(b.a)(this,e),Object(h.a)(this,"tags",a,this),Object(h.a)(this,"currentTagInput",i,this),Object(h.a)(this,"activeTag",o,this),Object(h.a)(this,"currentTagBlock",c,this),Object(h.a)(this,"tagInputFocus",s,this),Object(m.a)(this,"tagInputRef",null),Object(m.a)(this,"loseInputFocusTimeout",null),Object(m.a)(this,"type",void 0),this.type=t}return Object(g.a)(e,[{key:"sortInputFirst",value:function(e,t){for(var n=[],r=[],a=0;a<t.length;a+=1)0===t[a].toLowerCase().indexOf(e.toLowerCase())?n.push(t[a]):r.push(t[a]);
1return n.sort(),r.sort(),n.concat(r)}},{key:"addActiveTag",value:function(){var e=this;if(!this.tags.includes(this.activeTag)&&this.activeTag){var t=this.activeTag.trim().toLowerCase();if(0!==t.length){var n=this.tags.findIndex((function(e){return e===t}));n>=0&&this.tags.splice(n,1),setTimeout((function(){e.currentTagInput="",e.tags.push(t),e.activeTag=null}))}}}},{key:"removeTag",value:function(e){var t=Object(l.a)(this.tags);t.splice(e,1),this.tags=t}},{key:"tagNames",get:function(){return this.type===u.SCRIBBLE?C.b.tagNames:C.b.bookTagNames}},{key:"filteredTags",get:function(){var e=this;if(!this.currentTagInput.length)return this.tagNames.filter((function(t){return e.tags.indexOf(t)<0}));var t=this.tagNames.filter((function(t){return t.toLowerCase().indexOf(e.currentTagInput.toLowerCase())>=0&&e.tags.indexOf(t)<0&&t!==e.currentTagInput})),n=this.sortInputFirst(this.currentTagInput,t);return[this.currentTagInput].concat(n)}}]),e}(),a=Object(y.a)(r.prototype,"tags",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=Object(y.a)(r.prototype,"currentTagInput",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),o=Object(y.a)(r.prototype,"activeTag",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=Object(y.a)(r.prototype,"currentTagBlock",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=Object(y.a)(r.prototype,"tagInputFocus",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(y.a)(r.prototype,"tagNames",[O.g],Object.getOwnPropertyDescriptor(r.prototype,"tagNames"),r.prototype),Object(y.a)(r.prototype,"filteredTags",[O.g],Object.getOwnPropertyDescriptor(r.prototype,"filteredTags"),r.prototype),Object(y.a)(r.prototype,"addActiveTag",[O.f],Object.getOwnPropertyDescriptor(r.prototype,"addActiveTag"),r.prototype),Object(y.a)(r.prototype,"removeTag",[O.f],Object.getOwnPropertyDescriptor(r.prototype,"removeTag"),r.prototype),r),L=n("DjlD"),A=(I=function(){function e(){var t=this;Object(b.a)(this,e),Object(h.a)(this,"link",T,this),Object(h.a)(this,"title",S,this),Object(h.a)(this,"note",M,this),Object(h.a)(this,"loading",P,this),Object(h.a)(this,"present_id",E,this),Object(m.a)(this,"tagInputStore",new z),Object(h.a)(this,"og_image",N,this),Object(h.a)(this,"created_at",D,this),Object(h.a)(this,"fav_image",F,this),Object(h.a)(this,"scribble_id",R,this),Object(h.a)(this,"is_private",B,this),Object(m.a)(this,"isCheckingIsPresent",!0),Object(m.a)(this,"saveTemp",Object(x.debounce)(500,(function(){t.isCheckingIsPresent||(localStorage.setItem("TMP_LINK",t.link),localStorage.setItem("TMP_NOTE",t.note),localStorage.setItem("TMP_TAGS",JSON.stringify(t.tagInputStore.tags)))}))),this.finish=Object(L.a)(this.finish.bind(this),500)}return Object(g.a)(e,[{key:"updatePrivacySetting",value:function(e){this.is_private=e===j.d.PRIVATE?1:0}},{key:"privacySetting",get:function(){return 1===this.is_private?j.d.PRIVATE:j.d.PUBLIC}},{key:"tags",get:function(){return this.tagInputStore.tags}},{key:"isPresent",get:function(){return null!==this.present_id}},{key:"isValid",get:function(){return this.link.length>0&&this.title.length>0}}]),Object(g.a)(e,[{key:"toScribbleBase",value:function(){return{link:this.link,title:this.title,note:this.note,tags:this.tags,og_image:this.og_image,is_private:this.is_private}}},{key:"finish",value:function(){var e=Object(d.a)(f.a.mark((function e(){var t,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isValid){e.next=2;break}return e.abrupt("return",!1);case 2:if(t=!1,e.prev=3,this.loading=!0,n=this.toScribbleBase(),this.isPresent){e.next=11;break}return e.next=9,_.a.addScribble(n);case 9:e.next=13;break;case 11:return e.next=13,_.a.editScribble(this.present_id,n);case 13:t=!0,this.clearTemp(),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(3),t=!1,w.a.notify(e.t0),alert(e.t0);case 22:return e.prev=22,this.loading=!1,e.finish(22);case 25:return e.abrupt("return",t);case 26:case"end":return e.stop()}}),e,this,[[3,17,22,25]])})));return function(){return e.apply(this,arguments)}}()},{key:"checkIsPresent",value:function(){var e=Object(d.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isCheckingIsPresent=!0,e.next=4,k.a.isPresent(this.link);case 4:t=e.sent,this.present_id=t.scribble_id,this.note=t.note,this.tagInputStore.tags=t.tags,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),this.restoreTemp(this.link);case 13:return e.prev=13,this.isCheckingIsPresent=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[0,10,13,16]])})));return function(){return e.apply(this,arguments)}}()},{key:"restoreTemp",value:function(e){e===localStorage.getItem("TMP_LINK")&&(this.note=localStorage.getItem("TMP_NOTE"),this.tagInputStore.tags=JSON.parse(localStorage.getItem("TMP_TAGS")))}},{key:"clearTemp",value:function(){localStorage.removeItem("TMP_LINK"),localStorage.removeItem("TMP_NOTE"),localStorage.removeItem("TMP_TAGS")}}],[{key:"fromScribble",value:function(t){var n=new e;n.present_id=t.scribble_id;return["title","link","note","og_image","created_at","is_private","fav_image","scribble_id"].forEach((function(e){n[e]=t[e]})),n.tagInputStore.tags=Object(l.a)(t.tags),n}}]),e}(),T=Object(y.a)(I.prototype,"link",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),S=Object(y.a)(I.prototype,"title",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M=Object(y.a)(I.prototype,"note",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),P=Object(y.a)(I.prototype,"loading",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=Object(y.a)(I.prototype,"present_id",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=Object(y.a)(I.prototype,"og_image",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),D=Object(y.a)(I.prototype,"created_at",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),F=Object(y.a)(I.prototype,"fav_image",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),R=Object(y.a)(I.prototype,"scribble_id",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),B=Object(y.a)(I.prototype,"is_private",[O.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Object(y.a)(I.prototype,"privacySetting",[O.g],Object.getOwnPropertyDescriptor(I.prototype,"privacySetting"),I.prototype),Object(y.a)(I.prototype,"updatePrivacySetting",[O.f],Object.getOwnPropertyDescriptor(I.prototype,"updatePrivacySetting"),I.prototype),Object(y.a)(I.prototype,"tags",[O.g],Object.getOwnPropertyDescriptor(I.prototype,"tags"),I.prototype),Object(y.a)(I.prototype,"isPresent",[O.g],Object.getOwnPropertyDescriptor(I.prototype,"isPresent"),I.prototype),Object(y.a)(I.prototype,"isValid",[O.g],Object.getOwnPropertyDescriptor(I.prototype,"isValid"),I.prototype),Object(y.a)(I.prototype,"checkIsPresent",[O.f],Object.getOwnPropertyDescriptor(I.prototype,"checkIsPresent"),I.prototype),Object(y.a)(I.prototype,"restoreTemp",[O.f],Object.getOwnPropertyDescriptor(I.prototype,"restoreTemp"),I.prototype),I),U=n("N/KW"),H=new A,q=function(e){H=A.fromScribble(e)},G=new U.a(j.b.USER),V=function(e){G=e}},wk8K:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}
1));var r=n("vOnD"),a=n("CEM3"),i=r.c.div.withConfig({displayName:"StyledInput__StyledContainer",componentId:"sc-1448vsz-0"})(["display:flex;width:600px;height:40px;border:1px solid ",";border-radius:12px;align-items:center;background-color:",";"],a.a.gray5,a.a.gray7),o=r.c.input.withConfig({displayName:"StyledInput",componentId:"sc-1448vsz-1"})(["flex:1;border:none;font-size:16px;line-height:24px;margin-right:16px;padding:0;background-color:transparent;outline:none;::placeholder{color:",";}"],a.a.gray3)}}]);
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.