1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4165],{5002:function(e,n,t){var i=t(47568),o=t(828),r=t(20414),s=t(85893),l=t(67294),a=t(11163),c=t(60253),d=t(36808),u=t.n(d),x=t(72091),p=t(29096),h=t(54889),f=t(49384),v=t(61164),b=t(92674),j=t(40570);n.Z=function(e){var n=e.content,t=(0,a.useRouter)(),d=(0,c.$G)().t,m=(0,x.Ds)().enqueueSnackbar,g=(0,o.Z)((0,v.o)(),1)[0],Z=g.auth,y=g.isIntersectionObserverEnabled,k=(0,b.Z)(),w=l.useRef(null),I=(0,o.Z)(l.useState(),2),C=I[0],D=I[1],N=(0,o.Z)(l.useState(!1),2),W=N[0],S=N[1],T=(0,o.Z)(l.useState(!1),2),R=T[0],M=T[1],E=null===C||void 0===C?void 0:C[0],_=!(!Z||!(null===C||void 0===C?void 0:C.length)),z=l.useCallback((function(e){e.isIntersecting&&(M(!0),S(!0),n.ID?k("/auth/content/".concat(n.ID,"/bookmark"),{method:"GET"}).then((function(e){if(null===e)throw new Error("newBookmarks is null");D(e)})).catch((function(e){(0,f.kg)(e)})).finally((function(){S(!1)})):(0,f.kg)("content.ID is undefined"))}),[n.ID,k]);l.useEffect((function(){if(Z&&y&&!R){var e=w.current;if(e){var n=new IntersectionObserver((function(e){e.forEach(z)}),{root:null,rootMargin:"400px",threshold:0});return n.observe(e),function(){n.unobserve(e)}}}}),[Z,z,R,y]);var U=l.useCallback((0,i.Z)((function(){var e,i,o,s;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:S(!0),r.label=1;case 1:return r.trys.push([1,6,,7]),Z?[3,3]:(u().set("return_to",t.asPath,{expires:1,secure:!0,sameSite:"lax"}),[4,t.push("/signup")]);case 2:return r.sent(),[2];case 3:return Z.Unconfirmed?(u().set("return_to",t.asPath,{expires:1,secure:!0,sameSite:"lax"}),[4,t.push("/auth/unconfirmed")]):[3,5];case 4:return r.sent(),[2];case 5:return[3,7];case 6:return e=r.sent(),(0,f.kg)(e),m(d("failed-to-bookmark"),{variant:"error"}),S(!1),[2];case 7:if(r.trys.push([7,9,,10]),!n.ID)throw new Error("content.ID is undefined");return i=JSON.stringify({content_id:n.ID}),[4,k("/auth/bookmark",{method:"POST",body:i})];case 8:if(null===(o=r.sent()))throw new Error("newBookmark is null");return D([o]),[3,10];case 9:return s=r.sent(),(0,f.kg)(s),m(d("failed-to-bookmark"),{variant:"error"}),S(!1),[2];case 10:return S(!1),[2]}}))})),[Z,n,m,k,t,d]),O=l.useCallback((0,i.Z)((function(){var e;return(0,r.__generator)(this,(function(n){switch(n.label){case 0:S(!0),n.label=1;case 1:if(n.trys.push([1,3,,4]),!(null===E||void 0===E?void 0:E.ID))throw new Error("bookmark.ID is undefined");return[4,k("/auth/bookmark/".concat(E.ID),{method:"DELETE"})];case 2:return n.sent(),D([]),[3,4];case 3:return e=n.sent(),(0,f.kg)(e),m(d("failed-to-delete-bookmark"),{variant:"error"}),S(!1),[2];case 4:return S(!1),[2]}}))})),[null===E||void 0===E?void 0:E.ID,m,k,d]),G=l.useCallback((0,i.Z)((function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return _?[4,O()]:[3,2];case 1:return e.sent(),[3,4];case 2:return[4,U()];case 3:e.sent(),e.label=4;case 4:return[2]}}
1))})),[U,_,O]);return(0,s.jsx)(j.Z,{ref:w,color:_?"primary":"default",disabled:W,size:"small",startIcon:_?(0,s.jsx)(p.Z,{}):(0,s.jsx)(h.Z,{}),onClick:G,children:d(_?"saved":"save")})}},65267:function(e,n,t){var i=t(14924),o=t(26042),r=t(85893),s=t(67294),l=t(32427),a=t(16204),c=(0,l.Z)((function(e){return{root:(0,i.Z)({minWidth:"60px",margin:"4px"},e.breakpoints.down("xs"),{height:"24px"}),label:(0,i.Z)({},e.breakpoints.down("xs"),{padding:"0 8px"}),icon:(0,i.Z)({},e.breakpoints.down("xs"),{width:"18px",height:"18px",margin:"0 -4px 0 4px"})}})),d=s.forwardRef((function(e,n){var t=c();return(0,r.jsx)(a.Z,(0,o.Z)({ref:n,classes:t},e))}));n.Z=d},37648:function(e,n,t){var i=t(828),o=t(85893),r=t(60357),s=t.n(r),l=t(67294),a=t(95477),c=t(61164);n.Z=function(e){var n=e.loading,t=e.completed,r=e.style,d=e.onIntersect,u=(0,i.Z)((0,c.o)(),1)[0].isIntersectionObserverEnabled,x=l.useRef(null);return l.useEffect((function(){if(u){var e=x.current;if(e&&!n&&!t){var i=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&d()}))}),{root:null,rootMargin:"2800px",threshold:0});return i.observe(e),function(){i.unobserve(e)}}}}),[t,u,n,d]),(0,o.jsxs)("div",{ref:x,style:r,className:"jsx-5625bc950d002bc8",children:[!t&&(0,o.jsx)(a.Z,{size:24}),(0,o.jsx)(s(),{id:"5625bc950d002bc8",children:"div.jsx-5625bc950d002bc8{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:24px;overflow-anchor:none}"})]})}},62415:function(e,n,t){var i=t(85893),o=t(67294),r=t(11163),s=t(60253),l=t(65267),a=t(57308),c=o.forwardRef((function(e,n){var t=e.label,o=e.value,s=(0,r.useRouter)().pathname;return(0,i.jsx)(a.Z,{href:o,scroll:!1,replace:!0,children:(0,i.jsx)(l.Z,{ref:n,clickable:!0,color:o===s?"primary":"default",label:t})})}));n.Z=function(){var e=(0,s.$G)().t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{label:e("all"),value:"/auth/notice"}),(0,i.jsx)(c,{label:e("following"),value:"/auth/notice/following"}),(0,i.jsx)(c,{label:e("comment"),value:"/auth/notice/comment"}),(0,i.jsx)(c,{label:e("others"),value:"/auth/notice/others"})]})}},92882:function(e,n,t){var i=t(828),o=t(85893),r=t(67294),s=t(60253),l=t(36808),a=t.n(l),c=t(18463),d=t(51907),u=t(79912),x=t(22318),p=t(40570),h=t(73844);n.Z=function(){var e=(0,s.$G)().t,n=(0,i.Z)(r.useState(!0),2),t=n[0],l=n[1],f=(0,i.Z)(r.useState("denied"),2),v=f[0],b=f[1],j=(0,i.Z)(r.useState(!1),2),m=j[0],g=j[1],Z=r.useMemo((function(){return t&&"android"!==a().get("web_view")&&!a().get("prompt_block")&&"default"===v&&!m}),[t,v,m]);r.useEffect((function(){window.OneSignal.push((function(){window.OneSignal.getNotificationPermission((function(e){b(e)})),window.OneSignal.isPushNotificationsEnabled((function(e){g(e)})),window.OneSignal.on("subscriptionChange",(function(e){window.OneSignal.getNotificationPermission((function(e){b(e)})),g(e)}))}))}),[]);var y=r.useCallback((function(){l(!1);var e=parseInt(a().get("prompt_count")||"",10)||0,n=28;0===e?n=3:1===e&&(n=7),a().set("prompt_count",(e+1).toString(),{expires:365,secure:!0,sameSite:"lax"}),a().set("prompt_block","true",{expires:n,secure:!0,sameSite:"lax"})}),[]),k=r.useCallback((function(){window.OneSignal.showNativePrompt()}),[]);return Z?(0,o.jsx)(h.Z,{children:(0,o.jsxs)(c.Z,{children:[(0,o.jsx)(u.Z,{children:(0,o.jsx)(x.Z,{component:"p",variant:"h6",children:e("enable-push-notifications?")})}),(0,o.jsxs)(d.Z,{children:[(0,o.jsx)(p.Z,{color:"primary",style:{marginLeft:"auto"},onClick:y,children:e("not-now")}),(0,o.jsx)(p.Z,{color:"primary",style:{marginLeft:"8px"},onClick:k,children:e("enable")})]})]})}):null}},10129:function(e,n,t){t.d(n,{Z:function(){return G}});var i=t(85893),o=t(67294),r=t(11163),s=t(67265),l=t(18463),a=t(89738),c=t(79912),d=t(22318),u=t(90391),x=t(73844),p=t(57308),h=function(e){var n,t=e.notice,o=(0,r.useRouter)().locale,h=(0,u.Z)();if("ja"===o)n=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{style:{fontWeight:"bold"},children:"\u30d3\u30b8\u30cd\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u5be9\u67fb\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01"}),(0,i.jsx)(d.Z,{variant:"body2",style:{opacity:.7,marginTop:"4px"},children:"\u30d7\u30ec\u30df\u30a2\u30e0\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6295\u7a3f\u3059\u308b\u305f\u3081\u306b\u3001\u300c\u53ce\u76ca\u300d\u30da\u30fc\u30b8\u3067\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u6708\u984d\u6599\u91d1\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002"})]});else n=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{style:{fontWeight:"bold"},children:"Your business account review is complete!"}),(0,i.jsx)(d.Z,{variant:"body2",style:{opacity:.7,marginTop:"4px"},children:'Set up your monthly subscription fee on "Earnings" page to start posting premium content.'})]});return(0,i.jsx)(x.Z,{children:(0,i.jsx)(l.Z,{style:{backgroundColor:t.IsRead?void 0:"rgba(33,150,243,0.04)"},children:(0,i.jsx)(p.Z,{href:"/auth/earnings",children:(0,i.jsxs)(a.Z,{component:"div",style:{position:"relative"},children:[(0,i.jsx)(s.Z,{src:"/baskadia.png",style:{position:"absolute",top:"16px",left:"16px"}}),(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[n,(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(t.CreatedAt)})]})]})})})})},f=t(60253),v=t(90227),b=function(e){var n,t,s=e.notice,h=(0,r.useRouter)().locale,b=(0,f.$G)().t,j=(0,u.Z)(),m=s.Content,g=s.User,Z=o.useMemo((function(){return(null===m||void 0===m?void 0:m.ID)?"/post/".concat(m.ID.toString(36)):""}),[null===m||void 0===m?void 0:m.ID]),y=o.useMemo((function(){return m&&m.Published?"ja"===h?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===g||void 0===g?void 0:g.Name)||b("guest")}),"\u3055\u3093\u304c",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===(e=s.Collabo)||void 0===e||null===(n=e.Original)||void 0===n?void 0:n.Title)||b("untitled")}),"\u3068\u30b3\u30e9\u30dc\u3057\u307e\u3057\u305f"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===g||void 0===g?void 0:g.Name)||b("guest")})," collaborated with you on ",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===(t=s.Collabo)||void 0===t||null===(o=t.Original)||void 0===o?void 0:o.Title)||b("untitled")})]}):null;var e,n,t,o}),[m,h,null===(n=s.Collabo)||void 0===n||null===(t=n.Original)||void 0===t?void 0:t.Title,b,null===g||void 0===g?void 0:g.Name]);return m&&m.Published?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:s.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:Z,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[y,(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:j(s.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:g,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},j=t(13637),m=function(e){var n=e.notice,t=(0,r.useRouter)().locale,s=(0,f.$G)().t,h=(0,u.Z)(),b=n.Comment,m=n.Content,g=n.User,Z=o.useMemo((function(){return(null===b||void 0===b?void 0:b.ID)?"/auth/comment/".concat(b.ID):""}),[null===b||void 0===b?void 0:b.ID]),y=o.useMemo((function(){if(!m||!b||!g)return null;var e=(null===g||void 0===g?void 0:g.Name)||s("guest"),n=(null===m||void 0===m?void 0:m.Title)||s("untitled");return"ja"===t?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:e}),"\u3055\u3093\u304c",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:n}),"\u306b\u30b3\u30e1\u30f3\u30c8\u3057\u307e\u3057\u305f"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:e})," commented to ",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:n})]})}),[b,m,t,s,g]);return m&&b&&g?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:Z,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[y,(0,i.jsx)(d.Z,{component:"div",variant:"body2",style:{opacity:.7,marginTop:"8px"},children:(0,i.jsx)(j.Z,{children:b.Body})}),(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(n.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:g,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},g=function(e){var n=e.notice,t=(0,r.useRouter)().locale,s=(0,f.$G)().t,h=(0,u.Z)(),b=n.User,j=o.useMemo((function(){return(null===b||void 0===b?void 0:b.ID)?"/user/".concat(b.ID.toString(36)):""}),[null===b||void 0===b?void 0:b.ID]),m=o.useMemo((function(){return b?"ja"===t?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Name)||s("guest")}),"\u3055\u3093\u306b\u30d5\u30a9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Name)||s("guest")})," ","followed you"]}):null}),[t,s,b]);return b?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:j,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[m,(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(n.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:b,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},Z=function(e){var n=e.notice,t=(0,r.useRouter)().locale,s=(0,f.$G)().t,h=(0,u.Z)(),b=n.Content,j=n.User,m=o.useMemo((function(){return(null===b||void 0===b?void 0:b.ID)?"/post/".concat(b.ID.toString(36)):""}),[null===b||void 0===b?void 0:b.ID]),g=o.useMemo((function(){return j?"ja"===t?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===j||void 0===j?void 0:j.Name)||s("guest")}),"\u3055\u3093\u304c",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Title)||s("untitled")}),"\u306b\u300e\u3044\u3044\u306d\u300f\u3057\u307e\u3057\u305f"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===j||void 0===j?void 0:j.Name)||s("guest")})," liked ",(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Title)||s("untitled")})]}):null}),[null===b||void 0===b?void 0:b.Title,t,s,j]);return b&&j?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:m,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[g,(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(n.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:j,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},y=t(26042),k=t(69396),w=t(60357),I=t.n(w),C=t(4662),D=t(868),N=t(16801),W=t(43931),S=t(40570),T=t(5002),R=t(36973),M=t(77327),E=t(62081),_=function(e){var n=e.notice,t=e.onNoticeUpdate,r=(0,f.$G)().t,s=(0,C.Z)(),c=n.Content,u=n.User,h=o.useMemo((function(){return(null===c||void 0===c?void 0:c.ID)?"/post/".concat(c.ID.toString(36)):""}),[null===c||void 0===c?void 0:c.ID]),b=o.useCallback((function(e){t((0,k.Z)((0,y.Z)({},n),{Content:e}))}),[n,t]);return c&&c.Published?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:h,children:(0,i.jsxs)(a.Z,{component:"div",children:[(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e header",children:[(0,i.jsx)(d.Z,{component:"p",noWrap:!0,variant:"caption",style:{opacity:.7,marginBottom:"2px"},children:(null===u||void 0===u?void 0:u.Name)||r("guest")}),(0,i.jsx)(E.Z,{content:c}),(0,i.jsx)(d.Z,{variant:"caption",style:{display:"inline-block",padding:"0 4px",borderRadius:"2px",backgroundColor:s.palette.primary.main,color:"#fff",lineHeight:"16px"},children:r("new")})]}),(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e content",children:[(0,i.jsx)(d.Z,{component:"p",variant:"body1",style:{fontWeight:"bold"},children:(0,i.jsx)(j.Z,{lineHeight:24,children:c.Title||r("untitled")})}),(c.Description||c.Beginning)&&(0,i.jsx)(d.Z,{component:"p",variant:"body2",style:{opacity:.7,marginTop:"8px"},children:(0,i.jsx)(j.Z,{lines:c.Img?2:4,children:c.Description||c.Beginning})}),c.Img&&(0,i.jsx)(M.Z,{content:c,style:{height:"200px",margin:"16px 0 -16px",border:"solid 1px #f5f5f5",borderRadius:"16px"}})]})]})}),(0,i.jsx)(v.Z,{user:u,style:{position:"absolute",top:"16px",left:"16px"}}),(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e actions",children:[(0,i.jsx)(R.Z,{content:c,size:"small",onContentUpdate:b}),(0,i.jsx)(p.Z,{href:h?"".concat(h,"/comment"):"",children:(0,i.jsx)(D.ZP,{title:r("comment")||"-",children:(0,i.jsx)(S.Z,{size:"small",startIcon:(0,i.jsx)(N.Z,{}
1),children:c.CommentCount?"".concat(c.CommentCount.toLocaleString()):"-"})})}),(0,i.jsx)(T.Z,{content:c}),(0,i.jsx)(p.Z,{href:h?"".concat(h,"/share"):"",children:(0,i.jsx)(S.Z,{size:"small",startIcon:(0,i.jsx)(W.Z,{}),children:r("share")})})]})]})}),(0,i.jsx)(I(),{id:"36f68e965cb9ff0e",children:".header.jsx-36f68e965cb9ff0e{min-height:72px;padding:16px 16px 16px 72px}.content.jsx-36f68e965cb9ff0e{padding:0 16px 16px}.actions.jsx-36f68e965cb9ff0e{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 8px 8px 0}"})]}):null},z=function(e){var n=e.notice,t=(0,r.useRouter)().locale,s=(0,f.$G)().t,h=(0,u.Z)(),b=n.Content,m=n.Comment,g=n.Reply,Z=n.User,y=o.useMemo((function(){return(null===m||void 0===m?void 0:m.ID)?"/auth/comment/".concat(m.ID):""}),[null===m||void 0===m?void 0:m.ID]),k=o.useMemo((function(){return b&&m&&g&&Z?"ja"===t?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===Z||void 0===Z?void 0:Z.Name)||s("guest")}),"\u3055\u3093\u304c\u3042\u306a\u305f\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u8fd4\u4fe1\u3057\u307e\u3057\u305f"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===Z||void 0===Z?void 0:Z.Name)||s("guest")})," replied to your comment"]}):null}),[m,b,t,g,s,Z]);return b&&m&&g&&Z?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:y,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[k,(0,i.jsx)(d.Z,{component:"div",variant:"body2",style:{opacity:.7,marginTop:"8px"},children:(0,i.jsx)(j.Z,{children:g.Body})}),(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(n.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:Z,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},U=function(e){var n=e.notice,t=(0,r.useRouter)().locale,s=(0,f.$G)().t,h=(0,u.Z)(),b=n.User,m=o.useMemo((function(){return(null===b||void 0===b?void 0:b.ID)?"/user/".concat(b.ID.toString(36)):""}),[null===b||void 0===b?void 0:b.ID]),g=o.useMemo((function(){return b?"ja"===t?(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Name)||s("guest")}),"\u3055\u3093\u304c\u3042\u306a\u305f\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8cfc\u8aad\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\uff01"]}):(0,i.jsxs)(d.Z,{style:{overflowWrap:"break-word"},children:[(0,i.jsx)("span",{style:{fontWeight:"bold"},children:(null===b||void 0===b?void 0:b.Name)||s("guest")})," ","has subscribed to your content!"]}):null}),[t,s,b]);return b?(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:m,children:(0,i.jsx)(a.Z,{component:"div",children:(0,i.jsxs)(c.Z,{style:{minHeight:"72px",padding:"16px 16px 16px 72px"},children:[g,(null===b||void 0===b?void 0:b.Bio)&&(0,i.jsx)(d.Z,{component:"div",variant:"body2",style:{opacity:.7,marginTop:"8px"},children:(0,i.jsx)(j.Z,{children:b.Bio})}),(0,i.jsx)(d.Z,{component:"div",variant:"caption",style:{marginTop:"8px"},children:h(n.CreatedAt)})]})})}),(0,i.jsx)(v.Z,{user:b,style:{position:"absolute",top:"16px",left:"16px"}})]})}):null},O=function(e){var n=e.notice,t=e.onNoticeUpdate,r=(0,f.$G)().t,s=(0,C.Z)(),c=n.Content,u=n.User,h=o.useMemo((function(){return(null===c||void 0===c?void 0:c.ID)?"/post/".concat(c.ID.toString(36)):""}),[null===c||void 0===c?void 0:c.ID]),b=o.useCallback((function(e){t((0,k.Z)((0,y.Z)({},n),{Content:e}))}),[n,t]);return c&&c.Published?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{children:(0,i.jsxs)(l.Z,{style:{position:"relative",backgroundColor:n.IsRead?void 0:"rgba(33,150,243,0.04)"},children:[(0,i.jsx)(p.Z,{href:h,children:(0,i.jsxs)(a.Z,{component:"div",children:[(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e header",children:[(0,i.jsx)(d.Z,{component:"p",noWrap:!0,variant:"caption",style:{opacity:.7,marginBottom:"2px"},children:(null===u||void 0===u?void 0:u.Name)||r("guest")}),(0,i.jsx)(E.Z,{content:c}),(0,i.jsx)(d.Z,{variant:"caption",style:{display:"inline-block",padding:"0 4px",borderRadius:"2px",backgroundColor:s.palette.secondary.main,color:"#fff",lineHeight:"16px"},children:r("updated")})]}),(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e content",children:[(0,i.jsx)(d.Z,{component:"p",variant:"body1",style:{fontWeight:"bold"},children:(0,i.jsx)(j.Z,{lineHeight:24,children:c.Title||r("untitled")})}),(c.Description||c.Beginning)&&(0,i.jsx)(d.Z,{component:"p",variant:"body2",style:{opacity:.7,marginTop:"8px"},children:(0,i.jsx)(j.Z,{lines:c.Img?2:4,children:c.Description||c.Beginning})}),c.Img&&(0,i.jsx)(M.Z,{content:c,style:{height:"200px",margin:"16px 0 -16px",border:"solid 1px #f5f5f5",borderRadius:"16px"}})]})]})}),(0,i.jsx)(v.Z,{user:u,style:{position:"absolute",top:"16px",left:"16px"}}),(0,i.jsxs)("div",{className:"jsx-36f68e965cb9ff0e actions",children:[(0,i.jsx)(R.Z,{content:c,size:"small",onContentUpdate:b}),(0,i.jsx)(p.Z,{href:h?"".concat(h,"/comment"):"",children:(0,i.jsx)(D.ZP,{title:r("comment")||"-",children:(0,i.jsx)(S.Z,{size:"small",startIcon:(0,i.jsx)(N.Z,{}
1),children:c.CommentCount?"".concat(c.CommentCount.toLocaleString()):"-"})})}),(0,i.jsx)(T.Z,{content:c}),(0,i.jsx)(p.Z,{href:h?"".concat(h,"/share"):"",children:(0,i.jsx)(S.Z,{size:"small",startIcon:(0,i.jsx)(W.Z,{}),children:r("share")})})]})]})}),(0,i.jsx)(I(),{id:"36f68e965cb9ff0e",children:".header.jsx-36f68e965cb9ff0e{min-height:72px;padding:16px 16px 16px 72px}.content.jsx-36f68e965cb9ff0e{padding:0 16px 16px}.actions.jsx-36f68e965cb9ff0e{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 8px 8px 0}"})]}):null},G=function(e){var n=e.notice,t=e.onNoticeUpdate;switch(n.Type){case"charges-enabled":return(0,i.jsx)(h,{notice:n});case"collabo":return(0,i.jsx)(b,{notice:n});case"comment":return(0,i.jsx)(m,{notice:n});case"follow":return(0,i.jsx)(g,{notice:n});case"like":return(0,i.jsx)(Z,{notice:n});case"post":return(0,i.jsx)(_,{notice:n,onNoticeUpdate:t});case"reply":return(0,i.jsx)(z,{notice:n});case"subscribe":return(0,i.jsx)(U,{notice:n});case"update":return(0,i.jsx)(O,{notice:n,onNoticeUpdate:t});default:return null}}},3526:function(e,n,t){var i=t(85893),o=(t(67294),t(22318)),r=t(58365),s=t(73844);n.Z=function(){return(0,i.jsx)(s.Z,{children:(0,i.jsxs)("div",{style:{position:"relative",padding:"16px 16px 16px 72px"},children:[(0,i.jsx)("span",{style:{position:"absolute",top:"16px",left:"16px"},children:(0,i.jsx)(r.Z,{variant:"circle",width:"40px",height:"40px"})}),(0,i.jsx)(o.Z,{variant:"body1",style:{padding:"0 8px"},children:(0,i.jsx)(r.Z,{variant:"text"})}),(0,i.jsx)(o.Z,{variant:"body1",style:{padding:"0 8px"},children:(0,i.jsx)(r.Z,{variant:"text"})}),(0,i.jsx)(o.Z,{variant:"body1",style:{padding:"0 8px"},children:(0,i.jsx)(r.Z,{variant:"text",width:"50%"})})]})})}},90391:function(e,n,t){var i=t(67294),o=t(60253);n.Z=function(){var e=(0,o.$G)().t;return i.useCallback((function(n){if(!n)return"-";var t=(new Date).getTime(),i=new Date(n).getTime(),o=Math.floor((t-i)/1e3),r=Math.floor(o/31536e3);if(r>=1)return e("N-year-ago",{count:r});var s=Math.floor(o/2592e3);if(s>=1)return e("N-month-ago",{count:s});var l=Math.floor(o/86400);if(l>=1)return e("N-day-ago",{count:l});var a=Math.floor(o/3600);if(a>=1)return e("N-hour-ago",{count:a});var c=Math.floor(o/60);return c>=1?e("N-minute-ago",{count:c}):e("just-now")}),[e])}}}]);
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.