1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7311],{24431:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(85893),a=n(11882),r=n(43867),i=n(67294),o=n(61526),c=function(e){return i.createElement("svg",(0,r.pi)({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v13.5a.5.5 0 0 1-.777.416L8 13.101l-5.223 2.815A.5.5 0 0 1 2 15.5V2zm2-1a1 1 0 0 0-1 1v12.566l4.723-2.482a.5.5 0 0 1 .554 0L13 14.566V2a1 1 0 0 0-1-1H4z"}))},u=function(e){var t=e.className,n=e.selected,s=e.size,a=e.appearance,u=e.testId,l=(0,r._T)(e,["className","selected","size","appearance","testId"]);return i.createElement(o.Z,(0,r.pi)({className:t,testId:u,iconComponent:c,selected:n,appearance:a,size:s},l))};u.defaultProps={};var l=n(75785);function d(e){var t=e.loading,n=e.onClick,r=e.saved;return(0,s.jsx)(l.Button,{loading:t,onClick:n,spacing:"none",appearance:"transparent",className:"d-flex flex-row align-items-center pt-1",children:r?(0,s.jsx)(l.Tooltip,{content:"Saved",children:(0,s.jsx)(a.Z,{size:"sm"})}):(0,s.jsx)(l.Tooltip,{content:"Save",children:(0,s.jsx)(u,{size:"sm"})})})}},84111:function(e,t,n){"use strict";var s=n(17340),a=n(52234),r=n(65353),i=n(85893),o=n(94184),c=n.n(o),u=n(11163),l=n(67294),d=n(1852),f=n(96423),p=n(26011),h=n(38521),m=n(16228),v=n(417),x=n(27579),g=n(96202),I=n(61510),j=n(69753),w=n(4159),C=n(24364),N=n(85725),Z=n(71368),z=n(86416),_=n(62247),T=n(75785),k=n(73753),y=n(24431),S=n(25449),b=n(61833),P=(0,p.O)("Dropdown");t.Z=function(e){var t=e.item,n=e.className,o=e.index,p=e.url,E=e.handleDelete,A=e.setSaveId,M=e.setPost,B=(0,u.useRouter)(),L=(0,x.Z)().loggedIn,D=(0,v.I)().userId,V=(0,f.Z)({defaultSaveId:null}),R=V.saveId,J=V.setSaveId,X=V.loading,$=V.onSavePostChange,H=(0,m.ZP)(),O=H.openReportModal,Q=H.openShareModal,U=D===(null===t||void 0===t?void 0:t.UserId),F=(0,l.useMemo)((function(){var e=t.Mode===g.GJX;return{dateCreated:(0,h.eZ)(t.DateCreated),hasIcon:t.Type===g.PA6||t.Boosted,isDraft:e,showSave:L&&!e&&!!A,showMint:M&&t.Nft!==g.uXV&&t.Mode===g.lcA}}),[t,L,M,A]),q=F.dateCreated,G=F.hasIcon,K=F.isDraft,W=F.showSave,Y=F.showMint,ee=(0,l.useMemo)((function(){return(0,a.Z)(U&&!K?[{children:"Analytics",onClick:function(){return B.push((0,h.CZ)(t.Id))},iconBefore:(0,i.jsx)(I.Z,{size:"xs"})}]:[]).concat([{children:"Report",onClick:function(){return O({contentId:t.Id,contentType:g._$Q})},iconBefore:(0,i.jsx)(w.Z,{size:"xs"})}],(0,a.Z)(U&&t.Nft!==g.uXV?[{children:"Edit",onClick:function(){return B.push("".concat(g.mXO,"/").concat(t.Id))},iconBefore:(0,i.jsx)(C.Z,{size:"xs"})}]:[]),(0,a.Z)(U&&E&&t.Nft!==g.uXV?[{children:"Delete",onClick:function(){return E(t.Id,o)},iconBefore:(0,i.jsx)(_.Z,{size:"xs"})}]:[]))}),[t,E]),te=(0,l.useState)((0,h.RQ)(t.Id,t.Title)),ne=te[0],se=te[1],ae=(0,d.useMediaQuery)({query:"(min-width: ".concat(T.SCREEN_MD_ONE,")")});function re(){return(re=(0,s.Z)((function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,$(t.Id)];case 1:return e.sent(),[2]}}))}))).apply(this,arguments)}return(0,l.useEffect)((function(){p&&se("".concat(p,"/").concat(t.Id))}),[p,t]),(0,l.useEffect)((function(){J(null===t||void 0===t?void 0:t.SaveId)}),[]),(0,l.useEffect)((function(){A&&A(o,R)}),[R]),(0,S.dB)({adCampaignId:t.BoostId}),(0,i.jsx)(T.Row,{className:c()("d-flex flex-row justify-content-center",n),testId:"article-card",children:(0,i.jsx)(S.NN,{adCampaignId:t.BoostId,isInternalLink:!0,children:(0,i.jsx)(T.ArticleCard,{layout:"horizontal",rounded:!0,avatar:(0,i.jsx)("div",{style:{maxWidth:ae?240:160},children:(0,i.jsx)(k.Z,{src:t.Profile,name:t.AuthorName,href:(0,h._I)(t.UserId,t.AuthorName),target:"_self",size:"xs",status:t.UserStatus})}),icon:G?(0,i.jsx)(T.Space,{size:"sm",align:"center",children:function(){var e=[];return t.Type===g.PA6&&e.push((0,i.jsx)(T.Tooltip,{content:"Premium",children:(0,i.jsx)("div",{className:"d-flex flex-row align-items-center",children:(0,i.jsx)(j.Z,{size:"xs"})})},0)),t.Boosted&&e.push((0,i.jsx)(T.Tooltip,{content:"Boosted",children:(0,i.jsx)("div",{className:"d-flex flex-row align-items-center",children:(0,i.jsx)(N.Z,{size:"xs",color:T.TEAL_700})})},1)),e}()}):null,wallet:(0,h.aF)(t.UserId),title:t.Title,points:t.Points,dateCreated:(0,h.xE)(q),readingTime:t.ReadingTime,tags:function(e){if(e)return!ae&&e.length>=1?[{text:e[0]}]:e.map((function(e){return{text:e}}))}(t.Tags),href:ne,cover:t.Image,extraActions:(0,i.jsxs)(T.Space,{align:"center",size:"md",children:[t.Nft===g.uXV?(0,i.jsx)(b.Z,{isListed:t.IsListed,size:"xs"}):null,(0,i.jsx)(T.Button,{appearance:"transparent",spacing:"none",onClick:function(){Q({contentType:g.JHE,post:t})},children:(0,i.jsx)(Z.Z,{size:"sm"})}),Y?(0,i.jsx)(T.Button,{appearance:"outline-dark",darkAppearance:"outline-light",spacing:"sm",onClick:function(){M&&M(t)},children:"Mint"}):null,W?(0,i.jsx)(y.Z,{loading:X,onClick:function(){return re.apply(this,arguments)},saved:!!R}):null,(0,i.jsx)(P,{toggle:(0,i.jsx)(z.Z,{size:"sm"}),items:ee,drop:"down",placement:"end"})]})})})})}},61833:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(85893),a=n(1852),r=n(75785),i=n(9029),o=n(45220),c=n.n(o);function u(e){var t=e.href,n=e.isListed,o=e.size,u=void 0===o?"sm":o,l=(0,a.useMediaQuery)({query:"(min-width: ".concat(i.wWP,")")});return(0,s.jsxs)(r.Space,{className:c().NftTag,children:[(0,s.jsx)("div",{className:"d-flex flex-row justify-content-center",children:(0,s.jsx)(r.Tag,{color:n?"#479eef":"",rounded:!0,size:u,spacing:l?"md":"sm",testId:"nft-tag",href:t,children:"NFT"})}),n&&(0,s.jsx)("div",{className:"d-flex flex-row justify-content-center",children:(0,s.jsx)(r.Text,{className:c().NftTag_listed,href:t,small:!l,children:"Listed"})})]})}},96423:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(17340),a=n(54499),r=n(52234),i=n(65353),o=n(67294),c=n(40782),u=n(38521),l=n(22591),d=n(81343);function f(e){var t=e.defaultSaveId,n=void 0===t?null:t,f=(0,o.useState)(n),p=f[0],h=f[1],m=(0,o.useState)(!1),v=m[0],x=m[1],g=(0,o.useState)([]),I=g[0],j=g[1],w=(0,o.useState)(),C=w[0],N=w[1],Z=(0,o.useState)(!0),z=Z[0],_=Z[1],T=function(){var e=(0,s.Z)((function(e){var t,n;return(0,i.__generator)(this,(function(s){switch(s.label){case 0:x(!0),s.label=1;case 1:return s.trys.push([1,6,,7]),p?[4,(0,d.Pk)(l.lPc,p)]:[3,3];case 2:return n=s.sent(),[3,5];case 3:return[4,(0,d.c_)(l.lPc,{PostId:e})];case 4:n=s.sent(),t=n.data,s.label=5;case 5:return 200===(null===n||void 0===n?void 0:n.status)?h(p?null:null===t||void 0===t?void 0:t.Id):p?c.Am.error("Cannot unsave post."):c.Am.error("Cannot save post."),[3,7];case 6:return s.sent(),p?c.Am.error("Cannot unsave post."):c.Am.error("Cannot save post."),[3,7];case 7:return x(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,s.Z)((function(){var e,t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:_(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,d.Vz)(l.lPc,(0,a.Z)({},C||{}))];case 2:return e=n.sent(),t=e.data,(0,u.bv)(e.status)&&(j((0,r.Z)(I).concat((0,r.Z)(t.Posts))),N(t.LastKey)),[3,4];case 3:return n.sent(),[3,4];case 4:return _(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return{saveId:p,loading:v,setSaveId:h,onSavePostChange:T,posts:I,setPosts:j,postsLastKey:C,loadingPosts:z,getReadingList:k}}},26011:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var s=n(5152),a=n.n(s);function r(e){return a()((function(){return Promise.resolve().then(n.bind(n,75785)).then((function(t){return t[e]}))}),{loadableGenerated:{webpack:function(){return[75785]}},ssr:!1})}},42382:function(e,t,n){"use strict";n.d(t,{Fg:function(){return s.Z}});n(67294);var s=n(65840);n(25617)},65840:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(47041),a=n(67294),r=n(25617),i=n(5523),o=n(95087);function c(){var e=(0,r.I0)(),t=(0,r.v9)((function(e){return e.theme.theme})),n=t===o.$J,c=(0,a.useCallback)((function(t){e((0,i.Dc)(t)),document&&(document.cookie="theme=".concat(t))}),[t]),u=(0,a.useCallback)((function(){c(n?o.f8:o.$J)}),[n]);return(0,a.useEffect)((function(){var e=document.body;t===o.$J?e.setAttribute("data-bs-theme",o.$J):e.setAttribute("data-bs-theme","")}),[t]),{currentTheme:t,setTheme:c,isDarkMode:n,toggleDarkMode:u,syncThemeCookie
1:function(){var e=(0,s.getCookie)(o.bw);t!==e&&(0,s.setCookie)(o.bw,t)}}}},61510:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(43867),a=n(67294),r=n(61526),i=function(e){return a.createElement("svg",(0,s.pi)({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),a.createElement("path",{d:"M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2z"}))},o=function(e){var t=e.className,n=e.selected,o=e.size,c=e.appearance,u=e.testId,l=(0,s._T)(e,["className","selected","size","appearance","testId"]);return a.createElement(r.Z,(0,s.pi)({className:t,testId:u,iconComponent:i,selected:n,appearance:c,size:o},l))};o.defaultProps={}},45220:function(e){e.exports={NftTag:"style_NftTag__e4_xb",NftTag_listed:"style_NftTag_listed__N1t60"}}}]);
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.