Reading from NEAR testnet…
Reading from NEAR testnet…
3cYsB2HShkdi1YJX8dvgnXmHzhUEp4J8e8N6uBVSUxjG
beskyd_dev.testnet to v1.social08.testnet
set() with 1 yoctoNEAR
{
"data": {
"beskyd_dev.testnet": {
"widget": {
"nw-audio": {
"": "const updateAudioDetails = props.updateAudioDetails;\nconst audioCardFullWidth = props.audioCardFullWidth;\n\nfunction AudioCard() {\n State.init({ page: 1 });\n const nwSite = \"https://nearweek.com\";\n\n const fetchData = (url) => {\n return fetch(url, {\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n });\n };\n\n const fetchAudio = fetchData(\n `https://nearweek.com/api/show-audio?populate=deep&sort=createdAt:desc&pagination[pageSize]=${\n state.page * 5\n }`\n );\n\n function formatPodcastDate(dateString) {\n const timeAgo = (diffSec) =>\n diffSec < 60000\n ? `${(diffSec / 1000) | 0}s`\n : diffSec < 3600000\n ? `${(diffSec / 60000) | 0}m`\n : diffSec < 86400000\n ? `${(diffSec / 3600000) | 0}h`\n : `${(diffSec / 86400000) | 0}d`;\n const podcastDate = new Date(dateString);\n const diffMillis = Date.now() - podcastDate.getTime();\n return timeAgo(diffMillis);\n }\n\n const audio = [...(fetchAudio?.body.data ?? [])].map((item) => {\n const categories = item.categories.map((category) => category.Name);\n\n return {\n title: item.Title,\n thumbnail: nwSite + item.Thumbnail.formats.thumbnail.url,\n categories: categories.slice(0, 2), // Slice the first two categories\n createdAt: formatPodcastDate(item.createdAt),\n url: nwSite + \"/audio/\" + item.slug,\n frame: item.frame,\n frameSrc: item.frameSrc,\n description: item.Description,\n };\n });\n\n const AudioCard = styled.div`\n position: relative;\n cursor: pointer;\n width: 100%;\n padding: 12px;\n border-radius: 12px;\n background: #fff;\n display:flex;\n border: 1px solid #eceef0;\n overflow: hidden;\n margin-bottom: 10px;\n `;\n\n const AudioThumbnail = styled.img`\n max-width: 70px;\n max-height: 70px;\n border-radius: 10px;\n `;\n\n const AudioTitle = styled.div`\n height: 41px;\n owerflow: hidden;\n text-overflow: elipsis;\n whitespace: nowrap;\n text-decoration: none;\n cursor: pointer;\n &:hover {\n color: black;\n text-decoration: none;\n cursor: pointer;\n }\n `;\n\n const AudioTitleText = styled.h4`\n color: black; `;\n\n const AudioTitleLinkContent = styled.p`\n font-weight: 500;\n font-size: 12px;\n line-height: 14px;\n `;\n\n const AudioCategories = styled.div`\n align: left;\n justify-self: left;\n grid-area: 2 / 1 / 3 / 2;\n `;\n\n const AudioCategoriesContent = styled.p`\n font-weight: 500;\n font-size: 10px;\n line-height: 8.5px;\n color: #9C9C9C;\n margin: 0;\n text-align: center;\n align-items: center;\n margin-top: 2.5px;\n background-color: #F5F5F5;\n border-radius: 4px;\n padding: 6px 20px;\n `;\n\n const AudioDate = styled.p`\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px; /* 70.833% */\n letter-spacing: 0.12px;\n grid-area: 2 / 2 / 3 / 3;\n padding:2px;\n margin:0;\n `;\n const AudioCardDescription = styled.div`\n width: 100%;\n margin-left:15px\n `;\n\n const H2 = styled.h2`\n color: #1C1F41;\n font-size: 24px;\n font-style: normal;\n font-weight: 500;\n line-height: 15px;\n margin-bottom: 15px;\n`;\n\n const AudioButtonLoad = styled.button`\n width: 180px;\n padding: 8px;\n height: 31px;\n background: transparent;\n margin: 20px auto 0px auto;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n `;\n\n const MainSection = styled.div`\n border: 1px solid var(--bs-border-color);\n border-radius: 20px;\n padding: 20px 15px;\n margin-bottom: 24px;\n height: fit-content;\n width: 100%;\n max-width: ${(props) => (props.fullWidth ? \"100%\" : \"341px\")};\n background: white;\n @media screen and (min-width: ${breakpoints.lg}) {\n max-width: 700px;\n }\n`;\n\n return (\n <MainSection fullWidth={audioCardFullWidth} class=\"border border-danger\">\n <H2>{audioCardFullWidth ? \"RELATED AUDIO\" : \"AUDIO\"}</H2>\n {audio.length > 0 ? (\n audio.map((podcast, index) => (\n <div key={index}>\n <AudioCard onClick={() => updateAudioDetails(podcast)}>\n <AudioThumbnail src={podcast.thumbnail} alt={podcast.title} />\n <AudioCardDescription>\n {/* Display the podcast title as a link */}\n <AudioTitle>\n <AudioTitleText>\n <AudioTitleLinkContent>\n {podcast.title}\n </AudioTitleLinkContent>\n </AudioTitleText>\n </AudioTitle>\n {/* Display categories */}\n <div className=\"d-flex align-items-center gap-1 mt-1 justify-content-between\">\n <div className=\"d-flex flex-wrap align-items-center gap-2\">\n {podcast.categories.map((c) => {\n return (\n <AudioCategories key={c}>\n <AudioCategoriesContent>{c}</AudioCategoriesContent>\n </AudioCategories>\n );\n })}\n {/* Display creation date */}\n </div>\n <AudioDate>{podcast.createdAt}</AudioDate>\n </div>\n </AudioCardDescription>\n </AudioCard>\n </div>\n ))\n ) : (\n <div>Loading ...</div>\n )}\n <AudioButtonLoad onClick={() => State.update({ page: state.page + 1 })}>\n Load more\n </AudioButtonLoad>\n </MainSection>\n );\n}\n\nreturn <AudioCard />;\n"
},
"nw-footer": {
"": "const rootUser = \"beskyd_dev.testnet\";\n\nconst breakpoints = {\n md: \"768px\",\n lg: \"1100px\",\n xl: \"1300px\",\n};\n\nconst Footer = styled.div`\n width: 100%\n display: block;\n --bs-bg-opacity: 1;\n background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important;\n --bs-navbar-color: hsla(0,0%,100%,.55);\n\n @media screen and (min-width: ${breakpoints.md}) {\n display: none;\n }\n`;\nconst FooterContent = styled.div`\n display: flex;\n justify-content: center;\n padding: 0.5rem;\n`;\n\nfunction Foot() {\n return (\n <Footer>\n <FooterContent>\n <Widget src={`${rootUser}/widget/nw-navbar-social`} />\n </FooterContent>\n </Footer>\n );\n}\n\nreturn <Foot />;\n"
},
"nw-newsletter-more": {
"": "const rootUser = \"beskyd_dev.testnet\";\nconst breakpoints = { md: \"768px\", lg: \"1100px\", xl: \"1300px\" };\n\nfunction NewsletterCard() {\n const nwSite = \"https://nearweek.com\";\n\n const TopCard = styled.div`\n position: relative;\n width: 100%;\n border-radius: 12px;\n background: #fff;\n overflow: hidden;\n margin-bottom:10px;\n display flex;\n flex-direction: column;\n gap:40px;\n `;\n\n const TopCardTitle = styled.h2`\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n display:grid;\n gap:20px;\n margin-bottom:27px;\n `;\n const SectionTitle = styled.div`\n & p {\n overflow: hidden;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 22px !important;\n font-style: normal;\n & a {\n font-size: 22px !important;\n font-weight: 900 !important;\n }\n font-weight: 900 !important;\n margin-top:26px !important;\n margin-bottom:26px;\n }\n `;\n const TopCardBody = styled.div`\n display: flex;\n align-items: center;\n \n > * {\n min-width: 0;\n }\n `;\n const CardContent = styled.div`\n font-size: 10px;\n font-weight: 400;\n line-height: 13px;\n letter-spacing: -0.02em;\n color: hsla(0, 0%, 0%, 1);\n width: 100%;\n `;\n const CardFooter = styled.div`\n margin-bottom:20px;\n & p{\n color: #1C1F41;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n letter-spacing: 0.15px;\n }\n & a {\n color: #3C71F7;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n letter-spacing: 0.15px;\n text-decoration-line: underline;\n }\n `;\n\n const MainSection = styled.div`\n padding: 30px 20px 20px 20px;\n @media screen and (min-width: ${breakpoints.xl}) {\n grid-area: 1 / 2 / 2 / 3;\n padding: 30px 45px 20px 45px;\n max-width:100%;\n }\n `;\n const MainContainer = styled.div`\n #width:310px;\n display:flex;\n flex-direction:column;\n justify-content: center;\n justify-items: center;\n @media screen and (min-width: ${breakpoints.xl}) {\n width:100%;\n display: grid;\n grid-column-gap: 20px;\n justify-content: end;\n }\n `;\n\n const detailsPage = props.detailsPage;\n const updateDetailsPage = props.updateDetailsPage;\n const sections = detailsPage?.sections;\n console.log(detailsPage);\n const ReturnButton = styled.div`\n cursor: pointer;\n `;\n\n function TopSection() {\n return (\n <MainSection>\n {detailsPage ? (\n <div>\n <TopCardTitle>\n <ReturnButton onClick={() => updateDetailsPage(null)}>\n <Widget src={`${rootUser}/widget/details-return`} />\n </ReturnButton>\n {detailsPage.title}\n </TopCardTitle>\n <TopCard>\n <TopCardBody>\n <CardContent>\n <img\n className=\"rounded\"\n width=\"100%\"\n height=\"100%\"\n src={nwSite + detailsPage.image.formats.medium.url}\n alt={detailsPage.image.alternativeText}\n />\n </CardContent>\n </TopCardBody>\n\n <CardFooter>\n {sections ? (\n sections.map((item) => (\n <div key={item.id}>\n <SectionTitle>\n <Markdown id=\"section-title\" text={item.title} />\n </SectionTitle>\n <Markdown text={item.content} />\n </div>\n ))\n ) : (\n <div />\n )}\n </CardFooter>\n </TopCard>\n </div>\n ) : (\n <div>Loading ...</div>\n )}\n </MainSection>\n );\n }\n const BottomContainer = styled.div`\n tranform:translateY:50px !important;\n`;\n function BottomSection() {\n return (\n <Widget\n props={{\n updateDetailsPage,\n }}\n src={`${rootUser}/widget/details-bottom`}\n />\n );\n }\n\n return (\n <div>\n <Widget src={`${rootUser}/widget/nw-navbar`} />\n <MainContainer>\n <TopSection />\n <BottomContainer>\n <BottomSection />\n </BottomContainer>\n </MainContainer>\n </div>\n );\n}\n\nreturn <NewsletterCard />;\n"
},
"nw-articles": {
"": "const breakpoints = {\n md: \"768px\",\n lg: \"1100px\",\n xl: \"1300px\",\n};\nconst defImgSrc = `https://ipfs.near.social/ipfs/bafkreih5d2mix23e4hqsblgob74chyp3yyoze2ygtdm4cbo7dblt565rwa`;\n\nfunction Articles() {\n const postType = props.postType;\n\n State.init({ page: 1 });\n let mediumPosts = [];\n let yotubeVideo = [];\n\n const Post = (props) => {\n const { key, post } = props;\n return (\n <Card key={key} index={props.index} href={post.url} target=\"_blank\">\n <CardImage src={post.thumbnail} alt=\"\" />\n <CardContent>\n <CardTitle>\n <a href={post.url} target=\"_blank\">\n {post.title}\n </a>\n </CardTitle>\n <CardFooter>\n <Badges>\n {post.categories &&\n post.categories.length > 0 &&\n post.categories\n .slice(0, window.innerWidth < 255 ? 1 : 2)\n .map((category, index) => (\n <Badge index={index}>{category}</Badge>\n ))}\n </Badges>\n <AuthorNDate>\n {post.author && ( // Check if author is available\n <Author>\n <span>@{post.author}</span>\n </Author>\n )}\n <Dot>·</Dot>\n <CardDate>\n {post.createdAt ? dateToDays(post.createdAt) : \"\"}\n </CardDate>\n </AuthorNDate>\n </CardFooter>\n </CardContent>\n </Card>\n );\n };\n\n const fetchMedium = fetch(\"https://nearweek.com/api/medium/news\", {\n //subscribe: true,\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n });\n\n if (fetchMedium && fetchMedium?.body?.items?.length > 0) {\n fetchMedium.body.items.forEach((item) => {\n let resizedImgURL;\n const imgURL = item[\"description\"]\n .toString()\n .match(/<img[^>]+src=\"([^\">]+)\"/)[1];\n if (imgURL) {\n const filename = imgURL.split(\"/\").pop();\n resizedImgURL = `https://cdn-images-1.medium.com/v2/resize:fit:360/${filename}`;\n }\n mediumPosts.push({\n title: item.title,\n url: item.link,\n thumbnail: resizedImgURL ?? defImgSrc,\n createdAt: item.pubDate,\n categories: item.categories,\n author: item.author,\n });\n });\n }\n\n const fetchyoutubeVideo = fetch(\n \"https://nearweek.com/api/youtube/playlists?playlistId=PLmgxQHVg7viqE2Xw9s4wWzmNCZp9_SRf1\",\n {\n //subscribe: true,\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n }\n );\n\n if (fetchyoutubeVideo && fetchyoutubeVideo?.body?.data?.items?.length > 0) {\n fetchyoutubeVideo.body.data.items.forEach((item) => {\n yotubeVideo.push({\n title: item.snippet.title,\n url: `https://www.youtube.com/watch?v=${item.snippet.resourceId.videoId}&list=${item.snippet.playlistId}`,\n thumbnail: item.snippet?.thumbnails?.standard?.url ?? defImgSrc,\n createdAt: item.snippet.publishedAt,\n categories: [item.snippet.channelTitle],\n author: item.snippet.videoOwnerChannelTitle,\n });\n });\n }\n\n function dateToDays(date) {\n const timeAgo = (diffSec) =>\n diffSec < 60000\n ? `${(diffSec / 1000) | 0}s`\n : diffSec < 3600000\n ? `${(diffSec / 60000) | 0}m`\n : diffSec < 86400000\n ? `${(diffSec / 3600000) | 0}h`\n : `${(diffSec / 86400000) | 0}d`;\n\n var d = new Date(date);\n return timeAgo(Date.now() - d.getTime());\n }\n\n const articles = [...mediumPosts];\n\n const AuthorNDate = styled.div`\n display: flex;\n flex-direction: row;\n align-items: baseline;\n gap:4px;\n `;\n const Dot = styled.span`\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px; /* 70.833% */\n letter-spacing: 0.12px;\n `;\n\n const Author = styled.div`\n & span {\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n letter-spacing: 0.12px;\n }\n `;\n\n const NwWidget = styled.div`\n border-radius: 16px;\n background: hsla(0, 0%, 100%, 1);\n margin-bottom: 10px;\n\n @media screen and (min-width: ${breakpoints.xl}) {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 1rem;\n margin-bottom: 1rem;\n }\n\n`;\n\n const TabContentFooter = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: center;\n`;\n const ButtonLink = styled.a`\n width: 180px;\n padding: 8px;\n height: 32px;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n`;\n const Card = styled.a`\n color: #1C1F41;\n text-decoration: none !important;\n display: flex;\n flex-direction: column;\n border-radius: 8px;\n padding:12px;\n margin-bottom:10px;\n border: 1px solid #eceef0;\n @media screen and (max-width: 1300px) {\n max-width:100%;\n }\n`;\n\n const CardImage = styled.img`\n width: 100%;\n height: auto;\n aspect-ratio: 16 / 9;\n border-radius: 8px;\n margin-top: 16px;\n margin-bottom: 16px;\n object-fit: cover;\n`;\n\n const CardContent = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 0;\n`;\n\n const CardTitle = styled.div`\n margin-top: 5px;\n margin-bottom: 16px;\n overflow: hidden;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n text-transform: capitalise;\n a {\n color: inherit;\n }\n`;\n\n const CardFooter = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom:0px;\n`;\n\n const Badges = styled.div`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 6px;\n`;\n\n const Badge = styled.span`\n background: #F5F5F5;\n padding: 6px 20px; \n border-color: hsla(214, 10%, 86%, 1);\n border-radius: 4px;\n color: #9C9C9C;\n text-align: center;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n display: ${(props) => (props.index > 1 ? \"none\" : \"block\")}; \n`;\n\n const CardDate = styled.div`\n display: flex;\n align-items: center;\n gap: 10px;\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n`;\n\n const H2 = styled.h2`\n color: #1C1F41;\n font-size: 24px;\n font-style: normal;\n font-weight: 500;\n line-height: 15px;\n margin-bottom: 15px;\n `;\n\n return (\n <div>\n {postType === \"articles\" && (\n <>\n <H2>ARTICLES</H2>\n <NwWidget>\n <>\n {articles.length > 0 ? (\n articles\n .slice(0, 6)\n .map((article, index) => (\n <Post post={article} index={index} />\n ))\n ) : (\n <div>Loading ...</div>\n )}\n </>\n </NwWidget>\n <div className=\"mt-2 mb-2\">\n <TabContentFooter>\n <ButtonLink href=\"//nearweek.medium.com\" target=\"_blank\">\n Load more\n </ButtonLink>\n </TabContentFooter>\n </div>\n </>\n )}\n {postType === \"videos\" && (\n <>\n <H2 className=\"mt-1\">VIDEOS</H2>\n <NwWidget>\n <>\n {yotubeVideo.length > 0 ? (\n yotubeVideo.map((video, index) => (\n <Post post={video} index={index} />\n ))\n ) : (\n <div>Loading ...</div>\n )}\n </>\n </NwWidget>\n </>\n )}\n </div>\n );\n}\n\nreturn <Articles props />;\n"
},
"nw-newsletter-bage": {
"": "function Bage() {\n const NearweekBage = styled.a`\n width: 100%;\n border-radius: 12px;\n box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.25);\n background: radial-gradient(\n 138.36% 138.31% at 50.76% 118.09%,\n rgba(219, 0, 255, 0.72) 18.45%,\n rgba(70, 126, 235, 0) 100%\n );\n margin:10px 0px;\n background-color: darkblue;\n padding: 36px 20px 20px 30px;\n display:flex;\n flex-direction: column;\n gap: 18px;\n text-decoration: none !important;\n \n\n & p{\n color: #FFF;\n\n font-family: Inter;\n font-size: 13.33px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n width: 200px;\n margin:0;\n }\n `;\n\n return (\n <NearweekBage\n href=\"https://docs.nearweek.com/start/newsletter/newsletter/news-submission-twitter\"\n target=\"_blank\"\n className=\"text-white\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"138\"\n height=\"20\"\n viewBox=\"0 0 138 20\"\n fill=\"none\"\n >\n <g clip-path=\"url(#clip0_190_426)\">\n <path\n d=\"M68.8502 19.1594L66.4551 0.591064H69.8667L71.6365 16.7186H72.1046L74.3973 0.591064H80.332L82.621 16.7186H83.0891L84.8625 0.591064H88.2742L85.8791 19.1594H79.9444L77.6005 2.65545H77.1324L74.7885 19.1594H68.8538H68.8502Z\"\n fill=\"white\"\n />\n <path\n d=\"M90.5195 19.1594V0.591064H102.235V3.77335H93.9568V8.20397H101.504V11.3863H93.9568V15.9771H102.393V19.1594H90.5232H90.5195Z\"\n fill=\"white\"\n />\n <path\n d=\"M105.271 19.1594V0.591064H116.987V3.77335H108.709V8.20397H116.256V11.3863H108.709V15.9771H117.145V19.1594H105.275H105.271Z\"\n fill=\"white\"\n />\n <path\n d=\"M119.699 19.1594V0.591064H123.136V7.96548H123.604L129.513 0.591064H133.912L126.31 9.74294L134.172 19.1594H129.641L123.601 11.6247H123.133V19.1594H119.695H119.699Z\"\n fill=\"white\"\n />\n <path\n d=\"M0 19.1594V0.591064H7.11214L11.2332 16.7708H12.0486V0.591064H15.4858V19.1594H8.48703L4.36967 2.97592H3.43723V19.1594H0Z\"\n fill=\"white\"\n />\n <path\n d=\"M18.9199 19.1594V0.591064H30.6357V3.77335H22.3571V8.20397H29.9044V11.3863H22.3571V15.9771H30.793V19.1594H18.9199Z\"\n fill=\"white\"\n />\n <path\n d=\"M32.1152 19.1594L36.9054 0.591064H43.2935L48.0837 19.1594H44.5441L43.5568 15.0753H36.6458L35.6585 19.1594H32.1189H32.1152ZM37.4502 11.8371H42.745L40.5328 2.7896H39.6625L37.4502 11.8371Z\"\n fill=\"white\"\n />\n <path\n d=\"M50.2266 0.591155H58.7575C60.9112 0.565071 63.2112 1.4184 64.2424 3.46789C64.8896 4.71248 64.9372 6.21792 64.6958 7.58176C64.3448 9.512 62.8127 11.0473 60.9478 11.4721C60.0812 11.6509 59.1926 11.677 58.3479 11.6733L64.6117 19.1595H60.0044L54.077 11.6733H53.6674V19.1558H50.2302V0.591155H50.2266ZM53.6638 8.68103H58.2126C60.7394 8.68103 61.127 7.00045 61.127 6.21047C61.127 4.40692 59.5254 3.68401 58.1724 3.74363H53.6638V8.6773V8.68103Z\"\n fill=\"white\"\n />\n <path\n d=\"M136.319 19.4091C136.114 19.4091 135.924 19.3718 135.745 19.2936C135.566 19.2153 135.409 19.1072 135.273 18.9694C135.138 18.8315 135.032 18.6713 134.955 18.4887C134.878 18.3061 134.842 18.1123 134.842 17.9036C134.842 17.695 134.882 17.5012 134.959 17.3186C135.036 17.136 135.142 16.9758 135.277 16.8379C135.412 16.7 135.569 16.592 135.749 16.5137C135.928 16.4355 136.118 16.3982 136.323 16.3982C136.527 16.3982 136.718 16.4355 136.897 16.5137C137.076 16.592 137.233 16.7 137.369 16.8379C137.504 16.9758 137.61 17.136 137.687 17.3186C137.763 17.5012 137.804 17.695 137.804 17.9036C137.804 18.1123 137.767 18.3061 137.69 18.4887C137.614 18.6713 137.507 18.8315 137.372 18.9694C137.237 19.1072 137.08 19.2153 136.9 19.2936C136.721 19.3718 136.531 19.4091 136.326 19.4091H136.319ZM136.319 19.0774C136.48 19.0774 136.63 19.0476 136.769 18.988C136.908 18.9284 137.032 18.8427 137.138 18.7346C137.244 18.6265 137.325 18.5036 137.387 18.362C137.449 18.2204 137.475 18.0676 137.475 17.9074C137.475 17.7434 137.442 17.5906 137.383 17.449C137.325 17.3074 137.241 17.1807 137.134 17.0727C137.028 16.9646 136.908 16.8826 136.769 16.8193C136.63 16.7596 136.48 16.7298 136.323 16.7298C136.165 16.7298 136.016 16.7596 135.877 16.8193C135.738 16.8789 135.617 16.9646 135.511 17.0727C135.405 17.1807 135.324 17.3037 135.262 17.449C135.204 17.5906 135.171 17.7434 135.171 17.9074C135.171 18.0676 135.2 18.2204 135.259 18.362C135.317 18.5036 135.401 18.6303 135.507 18.7346C135.613 18.8427 135.738 18.9284 135.877 18.988C136.016 19.0476 136.165 19.0812 136.326 19.0812L136.319 19.0774ZM135.5 17.9036C135.5 17.7471 135.537 17.6055 135.613 17.4788C135.686 17.3521 135.789 17.2478 135.913 17.1733C136.038 17.0987 136.18 17.0578 136.33 17.0578C136.462 17.0578 136.586 17.0876 136.696 17.1435C136.809 17.2031 136.9 17.2813 136.974 17.3819C137.047 17.4826 137.094 17.5943 137.113 17.721H136.772C136.754 17.6242 136.703 17.5422 136.619 17.4826C136.535 17.4229 136.436 17.3894 136.33 17.3894C136.235 17.3894 136.151 17.4118 136.074 17.4602C135.997 17.5049 135.935 17.5683 135.891 17.6465C135.847 17.7248 135.822 17.8105 135.822 17.9074C135.822 18.0042 135.844 18.0899 135.891 18.1682C135.939 18.2465 135.997 18.3098 136.074 18.3545C136.151 18.3992 136.235 18.4253 136.33 18.4253C136.44 18.4253 136.531 18.3955 136.604 18.3322C136.677 18.2688 136.725 18.1906 136.747 18.0937H137.087C137.069 18.2204 137.025 18.3322 136.955 18.4328C136.886 18.5334 136.798 18.6116 136.688 18.6713C136.582 18.7309 136.462 18.757 136.326 18.757C136.173 18.757 136.034 18.7197 135.91 18.6414C135.785 18.5669 135.683 18.4626 135.61 18.3359C135.537 18.2092 135.496 18.0639 135.496 17.9111L135.5 17.9036Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_190_426\">\n <rect\n width=\"137.796\"\n height=\"18.818\"\n fill=\"white\"\n transform=\"translate(0 0.591064)\"\n />\n </clipPath>\n </defs>\n </svg>\n <p>\n Share news and earn money.\n <a>Click to get started</a>\n </p>\n </NearweekBage>\n );\n}\nreturn <Bage />;\n"
},
"nw-newswire": {
"": "const accountId = \"near\";\nState.init({ page: 1 });\nlet mediumPosts = [];\n\nconst data = fetch(\n `https://nearweek.com/api/nw-newswire?populate=deep&sort=createdAt:desc&pagination[pageSize]=${\n state.page * 13\n }`,\n {\n //subscribe: true,\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n }\n);\n\nconst Wrapper = styled.div`\n display: grid;\n margin-bottom: 0px;\n gap: 2px;\n`;\n\nconst H2 = styled.h2`\n color: #1C1F41;\n font-size: 24px;\n font-style: normal;\n font-weight: 500;\n line-height: 15px;\n margin-bottom: 15px;\n`;\n\nconst Content = styled.div`\n display: grid;\n margin: 0px 0 15px 0;\n gap: 10px;\n width: 100%;`;\n\nconst Card = styled.a`\n position: relative;\n width: 100%;\n border-radius: 12px;\n background: #fff;\n border: 1px solid #eceef0;\n overflow: hidden;\n padding:12px;\n display:flex !important;\n flex-direction: column;\n gap:10px;\n text-decoration: none !important;\n `;\n\nconst CardHeader = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 28px;\n width: 100%;\n`;\n\nconst CardUser = styled.div`\n& span{\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n}\n`;\n\nconst TwitterBage = styled.div`\n height: 28px;\n width: 28px;\n background-color: #000;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n /* Align the badge to the far right */\n margin-left: auto;\n`;\n\nconst CardContent = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 0;\n flex: 1;\n`;\n\nconst CardTitle = styled.div`\n height:54px;\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n letter-spacing: 0.12px;\n a {\n color: inherit;\n }\n`;\n\nconst CardFooter = styled.div`\n display: flex;\n justify-content: left;\n align-items: center;\n height:20px;\n`;\n\nconst CardDate = styled.div`\n color: rgba(28, 31, 65, 0.45);\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n text-align: left;\n \n`;\n\nconst Badges = styled.div`\n display: flex;\n gap: 6px;\n`;\n\nconst Badge = styled.span`\n background: #F5F5F5;\n padding: 6px 20px;\n border-color: hsla(214, 10%, 86%, 1);\n border-radius: 4px;\n color: #9C9C9C;\n text-align: center;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n display: ${(props) => (props.index > 1 ? \"none\" : \"block\")}; \n`;\n\nconst ButtonLink = styled.a`\n width: 180px;\n padding: 8px;\n height: 31px;\n background: transparent;\n margin: 4px auto 0 auto;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n`;\nconst AuthorNDate = styled.div`\n display: flex;\n flex-direction: row;\n align-items: baseline;\n gap:4px;\n margin-bottom:10px;\n `;\n\nconst Dot = styled.span`\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px; /* 70.833% */\n letter-spacing: 0.12px;\n `;\nconst news = [...(data?.body?.data ?? [])]\n .sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt))\n .slice(0, limit);\nconst nwSite = \"https://nearweek.com\";\n\nfunction dateToDays(date) {\n const timeAgo = (diffSec) =>\n diffSec < 60000\n ? `${(diffSec / 1000) | 0}s`\n : diffSec < 3600000\n ? `${(diffSec / 60000) | 0}min`\n : diffSec < 86400000\n ? `${(diffSec / 3600000) | 0}hr`\n : `${(diffSec / 86400000) | 0}d`;\n\n var d = new Date(date);\n return timeAgo(Date.now() - d.getTime());\n}\n\nfunction extractUsernameFromURL(url) {\n let username = \"\";\n\n const xcomIndex = url.indexOf(\"x.com/\");\n if (xcomIndex !== -1) {\n const afterXcom = url.substring(xcomIndex + 6); // Extract the part after \"x.com/\"\n const nextSlashIndex = afterXcom.indexOf(\"/\");\n if (nextSlashIndex !== -1) {\n username = afterXcom.substring(0, nextSlashIndex);\n } else {\n username = afterXcom;\n }\n }\n\n if (!username) {\n const twitterIndex = url.indexOf(\"twitter.com/\");\n if (twitterIndex !== -1) {\n const afterTwitter = url.substring(twitterIndex + 12); // Extract the part after \"twitter.com/\"\n const nextSlashIndex = afterTwitter.indexOf(\"/\");\n if (nextSlashIndex !== -1) {\n username = afterTwitter.substring(0, nextSlashIndex);\n } else {\n username = afterTwitter;\n }\n }\n }\n\n if (!username) {\n const mediumIndex = url.indexOf(\"medium.com/\");\n if (mediumIndex !== -1) {\n const afterMedium = url.substring(mediumIndex + 11);\n const nextSlashIndex = afterMedium.indexOf(\"/\");\n if (nextSlashIndex !== -1) {\n username = afterMedium.substring(0, nextSlashIndex);\n } else {\n username = afterMedium;\n }\n }\n }\n\n // if near.org usr = NEAR\n if (!username && url.includes(\"near.org\")) {\n username = \"NEAR\";\n }\n\n return username;\n}\n\nfunction NewswireCard() {\n return (\n <div>\n {news && news.length > 0 ? (\n <Wrapper>\n <H2>NEWSWIRE</H2>\n <Content>\n {news.map((item, index) => (\n <Card index={index} href={item.url} target=\"_blank\">\n <div class=\"d-flex flex-grow-1\">\n <CardContent>\n <CardHeader>\n <AuthorNDate>\n {item.url && (\n <CardUser>\n <span>@{extractUsernameFromURL(item.url)} </span>\n </CardUser>\n )}\n <Dot>·</Dot>\n <CardDate>\n {item.createdAt\n ? `${dateToDays(item.createdAt)}`\n : \"\"}\n </CardDate>\n </AuthorNDate>\n <TwitterBage>\n <svg\n width=\"15\"\n height=\"14\"\n viewBox=\"0 0 15 14\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clip-path=\"url(#clip0_37_8004)\">\n <path\n d=\"M0.573242 0.0361328L5.97827 7.2081L0.539062 13.0367H1.76322L6.52544 7.93279L10.3743 13.037H14.5391L8.82957 5.46291L13.8925 0.0361328H12.6684L8.28269 4.73594L4.73889 0.0361328H0.573242ZM2.37358 0.930954H4.28737L12.7379 12.1419H10.8246L2.37358 0.930954Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_37_8004\">\n <rect\n width=\"14\"\n height=\"13\"\n fill=\"white\"\n transform=\"translate(0.539062 0.0361328)\"\n />\n </clipPath>\n </defs>\n </svg>\n </TwitterBage>\n </CardHeader>\n\n <CardTitle>\n <a\n href={item.url}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {item.title}\n </a>\n </CardTitle>\n <CardFooter>\n <Badges>\n {item.categories.length > 0 &&\n item.categories.map((category) => (\n <Badge>{category}</Badge>\n ))}\n </Badges>\n </CardFooter>\n </CardContent>\n </div>\n </Card>\n ))}\n </Content>\n </Wrapper>\n ) : (\n <div>Loading ...</div>\n )}\n <ButtonLink onClick={() => State.update({ page: state.page + 1 })}>\n Load more\n </ButtonLink>\n </div>\n );\n}\nreturn <NewswireCard />;\n"
},
"nearweek.com": {
"": "const rootUser = \"beskyd_dev.testnet\";\nconst nwSite = \"https://nearweek.com\";\n\nconst coverImgSrc =\n \"https://ipfs.near.social/ipfs/bafkreidb4qtfdndct4rzymrm4p6u2k7gcjw5fohh5izs5lhkzdmjrlrknu\";\n\nconst mobCoverImgSrc =\n \"https://ipfs.near.social/ipfs/bafkreihzi6htmib5soiama557tr5bhwblm5gjxnnenvdtvxqzhvsoraztq\";\n\nconst mobTopImgSrc =\n \"https://ipfs.near.social/ipfs/bafkreiesqutrfntbmeazszo4lfy774wrzoekblijbbpjmufzcwdhfj5dtu\";\n\nconst breakpoints = {\n xs: \"0px\",\n sm: \"576px\",\n md: \"768px\",\n lg: \"992px\",\n xl: \"1200px\",\n xxl: \"1400px\",\n};\n// const breakpoints = {\n// sm: \"767px\",\n// md: \"768px\",\n// lg: \"1100px\",\n// xl: \"1300px\",\n// };\n\nif (!state.theme) {\n State.update({\n theme: styled.div`\n background: #FAF9F9;\n color: #1C1F41;\n max-width: 1690px;\n margin: 0 auto;\n`,\n });\n}\nconst Theme = state.theme;\n\nconst TabContentFooter = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: center;\n`;\nconst MainSection = styled.div`\n border: 1px solid var(--bs-border-color);\n border-radius: 20px;\n padding: 20px 15px;\n margin-bottom: 10px;\n height: fit-content;\n width: 341px;\n background: white;\n @media screen and (min-width: ${breakpoints.xl}) {\n max-width: 700px;\n width: ${(props) => (props.fullWidth ? \"100%\" : \"341px\")};\n }\n`;\n\nconst MainSectionArticles = styled.div`\n border: 1px solid var(--bs-border-color);\n border-radius: 20px;\n padding: 20px 15px;\n margin-bottom: 10px;\n height: fit-content;\n background: white;\n width: 341px;\n @media screen and (min-width: ${breakpoints.xl}) {\n max-width: 750px;\n width: ${(props) => (props.fullWidth ? \"100%\" : \"341px\")};\n }\n`;\nconst ContentContainer = styled.div`\n display: grid;\n grid-template-columns: repeat(3, auto);\n gap: 20px;\n justify-content: center;\n justify-items: center;\n margin-top:20px;\n @media screen and (max-width: ${breakpoints.lg}) {\n grid-template-columns: auto auto;\n margin-top:50px;\n }\n @media screen and (max-width: ${breakpoints.md}) {\n grid-template-columns: auto;\n margin-top:50px;\n }\n`;\nconst ButtonLink = styled.a`\n margin-top:14px;\n width: 180px;\n padding: 8px;\n height: 32px;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n`;\nconst AudioBage = styled.div`\nwidth:100%;\nborder-radius: 12px;\nbackground: linear-gradient(91deg, rgba(0, 0, 0, 0.32) 1.15%, rgba(0, 0, 0, 0.02) 18.22%, rgba(0, 0, 0, 0.12) 75.24%, rgba(0, 0, 0, 0.70) 112%, rgba(0, 0, 0, 0.80) 135.99%);\nmargin:10px 0px;\nbackground-color: darkcyan;\npadding: 10px 15px;\ndisplay:flex;\nflex-direction: column;\n& .text-container {\n width: 160px;\n & p {\n color: rgba(255, 255, 255, 0.80);\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 14px;\n margin:0;\n }\n & h3 {\n color: #FFF;\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin-bottom:4xp;\n}}`;\nconst AudioButtonLink = styled.a`\n width: 65%;\n padding: 8px;\n height: 31px;\n margin-bottom: 10x;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }`;\nfunction Articles() {\n return (\n <Widget\n src={`${rootUser}/widget/nw-articles`}\n props={{ postType: \"articles\" }}\n />\n );\n}\nfunction Videos() {\n return (\n <Widget\n src={`${rootUser}/widget/nw-articles`}\n props={{ postType: \"videos\" }}\n />\n );\n}\n/*Newsletter*/\nState.init({ detailsPage: null, audioDetails: null });\nfunction updateDetailsPage(value) {\n State.update({ detailsPage: value });\n}\nfunction updateAudioDetails(value) {\n State.update({ audioDetails: value });\n}\n\nfunction NewsletterCard() {\n return (\n <Widget\n props={{\n updateDetailsPage,\n }}\n src={`${rootUser}/widget/nw-newsletter`}\n />\n );\n}\nif (state.detailsPage) {\n return (\n <Widget\n src={`${rootUser}/widget/nw-newsletter-more`}\n props={{\n detailsPage: state.detailsPage,\n updateDetailsPage,\n }}\n />\n );\n}\nif (state.audioDetails) {\n return (\n <Widget\n src={`${rootUser}/widget/nw-audio-more`}\n props={{\n audioDetails: state.audioDetails,\n updateAudioDetails,\n }}\n />\n );\n}\n/* NEWSWIRE */\nfunction NewswireCard() {\n return <Widget src={`${rootUser}/widget/nw-newswire`} />;\n}\n/* AUDIO */\nfunction AudioCard() {\n return (\n <Widget\n props={{\n updateAudioDetails,\n }}\n src={`${rootUser}/widget/nw-audio`}\n />\n );\n}\n/* final return */\n\nconst FooterDiv = styled.div``;\nconst Footer = styled.div`\n width: 100%\n display: block;\n background: black;\n @media screen and (min-width: ${breakpoints.md}) {\n display: none;\n }\n`;\nconst FooterContent = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nconst PriceContainer = styled.div`\n padding:0;\n margin:0;\n width:100%;\n display:flex;\n flex-direction: row;\n justify-content: center;\n`;\n\nconst TopHeader = styled.div`\n @media screen and (max-width: ${breakpoints.md}) {\n background-image: url(\"${mobTopImgSrc}\"); \n background-repeat: no-repeat;\n background-color: transparent;\n background-size: 100% 100%;\n width: 308px;\n height: 87px;\n margin: 0 auto;\n margin-top: 64px; \n }\n`;\n\nconst TopText = styled.p`\n display: none; \n @media screen and (max-width: ${breakpoints.md}) {\n display: block;\n font-weight: 900;\n font-size: 19px;\n text-align: center;\n margin: 24px;\n font-style: italic; \n }\n`;\nconst Header = styled.div`\n position: relative;\n background-image: url(\"${coverImgSrc}\"); \n background-repeat: no-repeat;\n background-color: transparent;\n background-size: 100% 100%;\n height: auto;\n aspect-ratio: 16 / 9;\n @media screen and (max-width: ${breakpoints.md}) {\n background-image: url(\"${mobCoverImgSrc}\"); \n }\n & div {\n position: relative;\n width: 50%;\n top: 50%;\n }\n`;\n\nconst ipfsURL = \"https://ipfs.near.social/ipfs/\";\n\nconst trusted = [\n {\n title: \"Near Foundation\",\n imgSrc: `${ipfsURL}bafkreiaf3peebsqx4plzcnvwrxm6ji2gojaooiv6japmpovilcs62lwqbu`,\n url: \"https://near.org/\",\n },\n {\n title: \"Messari\",\n imgSrc: `${ipfsURL}bafkreigacp2jluhedmmcxjzhriwgnmtwax6soo7cuorxg4cnmkmtorbqpm`,\n url: \"https://messari.io/\",\n },\n {\n title: \"Coindesk\",\n imgSrc: `${ipfsURL}bafkreifeqltl2iys4k7fuudlr3og23heiprbgq2sulkrolwgqg7dndlrpi`,\n url: \"https://www.coindesk.com/\",\n },\n {\n title: \"Coingecko\",\n imgSrc: `${ipfsURL}bafkreigqloijqzj6psx2u73mmyd4ezaunsrljdfzj3dhsqvrmakaetcasm`,\n url: \"https://www.coingecko.com/\",\n },\n {\n title: \"Coinmarket Cap\",\n imgSrc: `${ipfsURL}bafkreieudnjf3penpnksl5jiiykj3csvwz3xn3y5a373e2meevcb6734n4`,\n url: \"https://coinmarketcap.com/\",\n },\n {\n title: \"Astar Network\",\n imgSrc: `${ipfsURL}bafkreibbsjpocg2tf357szmidq7veqbtivxakk2sbwfqx7rdyb4nspxgfi`,\n url: \"https://astar.network/\",\n },\n {\n title: \"Crypto Banter\",\n imgSrc: `${ipfsURL}bafkreif4z73cybbsksndem4mx5phyua335msn6inqsyyxg3mqvg4b5lsre`,\n url: \"https://www.cryptobanter.com/\",\n },\n {\n title: \"Big Brain Holdings\",\n imgSrc: `${ipfsURL}bafkreideydsvwwzvzfcjfu2f5ltwksgkixw44uigwne6sbqbls25e7sld4`,\n url: \"https://www.bigbrain.holdings/\",\n },\n {\n title: \"Hot Game\",\n imgSrc: `${ipfsURL}bafkreieew4kxfhca7gidkgynpmjpklcssa3uyopj5wcinz4ie7i7s6267q`,\n url: \"https://hot.game/\",\n },\n {\n title: \"Sweat Economy\",\n imgSrc: `${ipfsURL}bafkreigd4azxkk7sk3zllpmnnsomffqf743u6rc4bamosh5c3w6ghoju54`,\n url: \"https://sweateconomy.com/\",\n },\n];\n\nconst Trusted = styled.div`\n margin-top: 50px;\n margin-left: 50px;\n margin-right: 50px;\n @media screen and (max-width: ${breakpoints.md}) {\n margin-top: 15px;\n margin-left: 15px;\n margin-right: 15px;\n }\n`;\nconst TrustedTitle = styled.h2`\n text-transform: uppercase;\n font-weight: 300;\n @media screen and (max-width: ${breakpoints.md}) {\n font-size: 12px;\n }\n`;\n\nconst TrustedList = styled.div`\n display: flex;\n #flex-wrap: wrap;\n @media screen and (min-width: ${breakpoints.xs}) {\n gap:5px;\n justify-content: space-between;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n @media screen and (min-width: ${breakpoints.sm}) {\n gap:10px;\n justify-content: space-between;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n @media screen and (min-width: ${breakpoints.md}) {\n gap: 20px;\n justify-content: center;\n margin-top: 3rem;\n margin-bottom: 3rem;\n }\n @media screen and (min-width: ${breakpoints.lg}) {\n gap: 25px;\n justify-content: center;\n margin-top: 3rem;\n margin-bottom: 3rem;\n }\n`;\n\nconst TrustedLink = styled.a`\n display: flex;\n text-transform: uppercase;\n font-weight: 300;\n fon-size: 10px;\n text-align: center;\n color: #000;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n & img {\n border-radius:50%;\n width: 100%;\n max-width:106px;\n height: auto; \n }\n & span{\n font-size: 9px;\n margin-top: 10px;\n @media screen and (min-width: ${breakpoints.xs}) {\n display: none;\n }\n @media screen and (min-width: ${breakpoints.sm}) {\n display: block;\n font-size: .25vw;\n }\n @media screen and (min-width: ${breakpoints.md}) {\n display: block;\n font-size: .35vw;\n }\n @media screen and (min-width: ${breakpoints.lg}) {\n display: block;\n font-size: .5vw;\n }\n }\n`;\n\nconst RequestServicesButton = styled.a`\n display: block;\n text-align: center;\n width: 409px;\n height: 56px;\n margin: 24px auto;\n background: rgb(66, 0, 255);\n color: rgb(255, 255, 255);\n border-radius: 12px;\n font-size: 24px;\n font-weight: bold;\n padding: 9px 0px;\n font-style: italic; \n &:hover {\n text-decoration: none;\n }\n @media screen and (max-width: ${breakpoints.md}) {\n display: none;\n }\n`;\nconst MobRequestServicesButton = styled.a`\n display: none;\n @media screen and (max-width: ${breakpoints.md}) {\n display: block;\n text-align: center;\n width: 196px;\n height: 39px;\n margin: 0 auto;\n background: rgb(66, 0, 255);\n color: rgb(255, 255, 255);\n border-radius: 12px;\n margin-top: 24px;\n font-size: 14px;\n font-weight: 600;\n margin-bottom: 24px;\n padding: 9px 24px;\n font-style: italic;\n \n &:hover {\n text-decoration: none;\n }\n }\n`;\n\nreturn (\n <Theme>\n {/*main section*/}\n <Widget src={`${rootUser}/widget/nw-navbar`} />\n <TopHeader />\n <TopText>The Official NEAR Newsletter & Community Platform</TopText>\n <MobRequestServicesButton\n href=\"https://4efdmh2cgdi.typeform.com/NWservices\"\n target=\"_blank\"\n >\n REQUEST SERVICES\n </MobRequestServicesButton>\n <Header>\n <div>\n <RequestServicesButton\n href=\"https://4efdmh2cgdi.typeform.com/NWservices\"\n target=\"_blank\"\n >\n REQUEST SERVICES\n </RequestServicesButton>\n </div>\n <div />\n </Header>\n <Trusted>\n <TrustedTitle>Trusted By</TrustedTitle>\n <TrustedList>\n {trusted.map((link, index) => (\n <TrustedLink href={link.url}>\n <img src={link.imgSrc} width=\"122\" height=\"122\" />\n <span>{link.title}</span>\n </TrustedLink>\n ))}\n </TrustedList>\n </Trusted>\n <ContentContainer>\n <div>\n {/*Newsletter div */}\n <MainSection>\n <NewsletterCard />\n </MainSection>\n {/*Audio Div */}\n <div class=\"d-none d-md-block\">\n <AudioCard />\n </div>\n </div>\n {/*Articles div */}\n <div>\n <MainSectionArticles fullWidth changeOrder>\n <Articles />\n </MainSectionArticles>\n <MainSectionArticles fullWidth changeOrder>\n <Videos />\n </MainSectionArticles>\n </div>\n\n {/*Newswire div */}\n {!state.detailsPage && (\n <MainSection>\n <NewswireCard />\n </MainSection>\n )}\n {/*Audio Div */}\n <div class=\"d-block d-md-none\">\n <MainSection>\n <AudioCard />\n </MainSection>\n </div>\n </ContentContainer>\n <Widget src={`${rootUser}/widget/nw-footer`} />\n </Theme>\n);\n"
},
"nw-navbar": {
"": "const rootUser = \"beskyd_dev.testnet\";\nconst breakpoints = {\n md: \"768px\",\n lg: \"1100px\",\n xl: \"1300px\",\n};\nconst HeaderContainer = styled.div`\n padding: 0.5rem;\n --bs-bg-opacity: 1;\n background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important;\n --bs-navbar-color: hsla(0,0%,100%,.55);\n @media screen and (max-width: ${breakpoints.md}) {\n padding-top:19px;\n padding-bottom:19px;\n }\n `;\n\nfunction NavBar() {\n return (\n <HeaderContainer>\n <div class=\"container-fluid\">\n <div class=\"row align-items-center\">\n <div class=\"d-none d-md-block col\" id=\"navbarNav\">\n <Widget src={`${rootUser}/widget/nw-navbar-social`} />\n </div>\n <div class=\"col d-flex justify-content-center\">\n <a class=\"navbar-brand\" href=\"#\">\n <Widget src={`${rootUser}/widget/nw-navbar-logo`} />\n </a>\n </div>\n <div class=\"d-none d-md-flex col justify-content-end\">\n {/*\n <a class=\"nav-item\" href=\"#\">\n <Widget src={`${rootUser}/widget/nw-navbar-bluebtn`} />\n </a>\n */}\n </div>\n </div>\n </div>\n </HeaderContainer>\n );\n}\n\nreturn <NavBar />;\n"
},
"nw-newsletter": {
"": "const rootUser = \"beskyd_dev.testnet\";\n\nfunction NewsletterCard() {\n State.init({ page: 1 });\n\n const data = fetch(`https://nearweek.com/api/mailchimp/campaigns`, {\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n });\n\n const ReadButtonLink = styled.a`\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px;\n height: 29px;\n width: 100%;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 15px;\n text-align: center;\n cursor: pointer;\n color: ${(p) => (p.primary ? \"#006ADC\" : \"#11181C\")} !important;\n background: #fbfcfd;\n white-space: nowrap;\n\n &:hover,\n &:focus {\n background: #ecedee;\n text-decoration: none;\n outline: none;\n }\n `;\n\n const SubscribeButtonLink = styled.a`\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px;\n height: 29px;\n width: 100%;\n border: 1px solid #2A6BD5;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 15px;\n text-align: center;\n cursor: pointer;\n color: #fff !important;\n background: #2A6BD5;\n white-space: nowrap;\n\n &:hover,\n &:focus {\n background-color: #ffff;\n color: #2A6BD5 !important;\n border: 1px solid #2A6BD5;\n text-decoration: none;\n outline: none;\n }\n `;\n\n const Card = styled.a`\n display: block;\n position: relative;\n cursor: pointer;\n width: 100%;\n border-radius: 12px;\n background: #fff;\n border: 1px solid #eceef0;\n overflow: hidden;\n margin-bottom:10px;\n `;\n\n const TopCard = styled.div`\n position: relative;\n width: 100%;\n border-radius: 12px;\n background: #fff;\n border: 1px solid rgba(28, 31, 65, 0.10);\n overflow: hidden;\n margin-bottom:10px;\n `;\n\n const CardTitle = styled.h2`\n cursor: pointer;\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 14px;\n margin-top:10px;\n margin-bottom:0;\n `;\n\n const CordDate = styled.p`\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n\n text-align:left;\n margin-bottom:0;\n margin-top:8px;\n `;\n\n const TopCardTitle = styled.h2`\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n `;\n\n const TopCardTitleContainer = styled.div`\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: space-between;\n margin: 0;\n\n border-bottom: 1px solid rgba(28, 31, 65, 0.10);\n\n & p {\n color: rgba(28, 31, 65, 0.45);\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n\n }\n `;\n\n const TopCardFooterButtons = styled.h2`\n width:100%;\n display:flex;\n gap:14px;\n `;\n\n const CardBody = styled.div`\n padding: 12px 12px 9px 12px;\n display: flex;\n gap: 16px;\n align-items: center;\n\n > * {\n min-width: 0;\n }\n `;\n\n const TopCardBody = styled.div`\n padding: 12px 17px 8px 12px;\n display: flex;\n align-items: center;\n\n > * {\n min-width: 0;\n }\n `;\n\n const CardContent = styled.div`\n font-size: 10px;\n font-weight: 400;\n line-height: 13px;\n letter-spacing: -0.02em;\n color: hsla(0, 0%, 0%, 1);\n width: 100%;\n `;\n\n const CardFooter = styled.div`\n display: grid;\n grid-template-column: auto auto;\n gap: 14px;\n padding: 6px 16px;\n `;\n\n const H2 = styled.h2`\n color: #1C1F41;\n font-size: 24px;\n font-style: normal;\n font-weight: 500;\n line-height: 15px;\n margin-bottom: 15px;\n`;\n\n const ButtonLoadMore = styled.a`\n display: block;\n width: 180px;\n padding: 8px;\n height: 31px;\n background: transparent;\n margin: 20px auto 0 auto;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n `;\n\n function formatDate(dateString) {\n const date = new Date(dateString);\n const day = date.getDate().toString().padStart(2, \"0\");\n const month = (date.getMonth() + 1).toString().padStart(2, \"0\");\n const year = date.getFullYear().toString().slice(-2);\n return `${day}.${month}.${year}`;\n }\n\n function calculateTimeDifference(dateString) {\n const now = new Date();\n const creationDate = new Date(dateString);\n const diffMillis = now - creationDate.getTime();\n const timeUnits = [\"Month\", \"Day\", \"Hour\", \"Minute\", \"Second\"];\n const divisors = [\n 30 * 24 * 60 * 60 * 1000,\n 24 * 60 * 60 * 1000,\n 60 * 60 * 1000,\n 60 * 1000,\n 1000,\n ];\n\n for (let i = 0; i < divisors.length; i++) {\n const unitCount = Math.floor(diffMillis / divisors[i]);\n if (unitCount >= 1) {\n return `${unitCount} ${timeUnits[i]}${unitCount > 1 ? \"s\" : \"\"}`;\n }\n }\n\n return \"Just Now\";\n }\n const campaigns = data?.body?.campaigns ?? [];\n\n return (\n <div>\n <H2>NEWSLETTER</H2>\n {campaigns !== null && campaigns.length > 0 ? (\n campaigns.map((campaign, index) => (\n <div key={campaign.id}>\n {/* Display the top card with unique styling */}\n {index === 0 && (\n <TopCard>\n <TopCardBody>\n <CardContent>\n <img\n class=\"rounded\"\n width=\"100%\"\n height=\"100%\"\n src={campaign.image_src}\n alt=\"\"\n />\n </CardContent>\n </TopCardBody>\n {/* Display \"Read\" and \"Subscribe\" buttons only for the top card */}\n {index === 0 && (\n <CardFooter>\n <TopCardTitleContainer>\n <TopCardTitle>{campaign.subject_line}</TopCardTitle>\n <p>{formatDate(campaign.create_time)}</p>\n </TopCardTitleContainer>\n <TopCardFooterButtons>\n <ReadButtonLink\n href={campaign.archive_url}\n target=\"_blank\"\n >\n Read\n </ReadButtonLink>\n <SubscribeButtonLink\n href=\"https://subscribe.nearweek.com\"\n target=\"_blank\"\n primary\n >\n Subscribe\n </SubscribeButtonLink>\n </TopCardFooterButtons>\n </CardFooter>\n )}\n </TopCard>\n )}\n\n {/* Display bage */}\n {index === 0 && (\n <Widget src={`${rootUser}/widget/nw-newsletter-bage`} />\n )}\n\n {/* Display the other three cards with the same styling */}\n {index > 0 && (\n <Card href={campaign.archive_url} target=\"_blank\">\n <CardBody>\n <CardContent>\n <div class=\"d-flex clearfix\">\n <div class=\"d-flex\">\n <img\n class=\"rounded\"\n width=\"70\"\n height=\"70\"\n src={campaign.image_src}\n alt=\"\"\n />\n <div class=\"d-flex flex-column ms-3 mt-0\">\n {/* Display \"Edition -\" followed by the number */}\n <CardTitle>{campaign.subject_line}</CardTitle>\n {/* Display time elapsed since creation date */}\n <CordDate>{`${calculateTimeDifference(\n campaign.create_time\n )}`}</CordDate>\n </div>\n </div>\n </div>\n </CardContent>\n </CardBody>\n </Card>\n )}\n </div>\n ))\n ) : (\n <div>Loading ...</div>\n )}\n <ButtonLoadMore\n href=\"https://us1.campaign-archive.com/home/?u=ed13caf5cf7d37689d81ef60b&id=86d4e11a12\"\n target=\"_blank\"\n >\n Load more\n </ButtonLoadMore>\n </div>\n );\n}\n\nreturn <NewsletterCard />;\n"
},
"nw-details-bottom": {
"": "const rootUser = \"beskyd_dev.testnet\";\n\nconst breakpoints = {\n md: \"768px\",\n lg: \"1100px\",\n xl: \"1300px\",\n};\n\nconst issues = data.body.data;\n\nconst detailsPage = props.detailsPage;\nconst updateDetailsPage = props.updateDetailsPage;\nconst sections = detailsPage?.sections;\n\nconst Card = styled.div`\n position: relative;\n width: 100%;\n border-radius: 12px;\n background: #fff;\n border: 1px solid #eceef0;\n box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1),\n 0px 1px 2px rgba(16, 24, 40, 0.06);\n overflow: hidden;\n margin-bottom: 10px;\n`;\n\nconst CardTitle = styled.h2`\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 14px;\n cursor: pointer;\n`;\n\nconst CordDate = styled.p`\n color: rgba(28, 31, 65, 0.45);\n text-align: right;\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 8.5px;\n text-align: left;\n margin-top: 8px;\n`;\n\nconst SectionHeader = styled.div`\n width: 100%;\n margin-bottom: 15px;\n @media screen and (min-width: ${breakpoints.md}) {\n margin-top:100px;\n }\n`;\n\nconst H2 = styled.h2`\n color: #1C1F41;\n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 500;\n line-height: 15px;\n margin-bottom: 15px;\n`;\n\nconst CardBody = styled.div`\n padding: 12px;\n display: flex;\n gap: 16px;\n > * {\n min-width: 0;\n }\n`;\nconst TabContentFooter = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin-bottom:20px;\n `;\n\nconst ButtonLink = styled.a`\n margin-top:14px;\n width: 180px;\n padding: 8px;\n height: 32px;\n border: 1px solid #d7dbdf;\n border-radius: 100px;\n font-weight: 600;\n font-size: 12px;\n line-height: 22px;\n letter-spacing: -0.03em;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n color: hsla(204, 22%, 9%, 1);\n &:hover,\n &:focus {\n text-decoration: none;\n outline: none;\n }\n `;\n\nconst CardContent = styled.div`\n font-size: 10px;\n font-weight: 400;\n line-height: 13px;\n letter-spacing: -0.02em;\n color: hsla(0, 0%, 0%, 1);\n width: 100%;\n `;\nfunction BottomSection() {\n const accountId = \"near\";\n articles;\n State.init({ active: 0 });\n const nwSite = \"https://nearweek.com\";\n let posts = [];\n\n const indexedPosts = Social.index(\"post\", \"main\", {\n accountId,\n limit: 20,\n order: \"desc\",\n });\n\n if (indexedPosts?.length > 0) {\n posts = [];\n\n indexedPosts.forEach((post) => {\n const data = Social.get(`${post.accountId}/post/main`, post.blockHeight);\n if (data) {\n const json = JSON.parse(data);\n const content = json.text.split(\"\\n\");\n const title = content[0] || \"\";\n const url = content[1] || content[2] || \"\";\n const lastLine = content.pop() || \"\";\n const hasNewsTag = lastLine.indexOf(\"#news\") > -1;\n const isValid = hasNewsTag && url.indexOf(\"https://\") > -1;\n\n if (isValid) {\n const block = Near.block(post.blockHeight);\n let createdAt = \"\";\n if (block) {\n const timeMs = parseFloat(block.header.timestamp_nanosec) / 1e6;\n createdAt = new Date(timeMs).toISOString();\n }\n posts.push({\n blockHeight: post.blockHeight,\n title,\n url,\n thumbnail: \"https://near.org/favicon.png\",\n createdAt,\n categories: [\"Near ORG\", \"blog\"],\n });\n\n posts.sort((a, b) => b.blockHeight - a.blockHeight);\n }\n }\n });\n }\n\n const data = fetch(\n \"https://nearweek.com/api/editions?populate=deep&sort=createdAt:desc&pagination[pageSize]=8\",\n {\n method: \"GET\",\n headers: {\n Accept: \"*/*\",\n Authorization:\n \"Bearer 15699f0723aa9fe9f655b1a94e450552476c08807f67b525b5a3c8011eecc8aee6d45923443620f17815b897858be058cd7bd89ddf23a28aabaecb178e7ebc55d380293beeb51a8ce87b40e1518ce4708e4d51a06b115f27fa64ab5cbee5a3511cec785d7ae6a155ecd05ac8196aadae3e9b8e9401b8df8d8b69904f7364f925\",\n },\n }\n );\n\n const cssFont = fetch(\"https://fonts.cdnfonts.com/css/hubot-sans\").body;\n\n if (!cssFont) return \"\";\n\n if (!state.theme) {\n State.update({\n theme: styled.div`\n font-family: 'Mona Sans', sans-serif;\n font-style: normal;\n ${cssFont}\n }`,\n });\n }\n const Theme = state.theme;\n\n function formatDate(dateString) {\n const date = new Date(dateString);\n const day = date.getDate().toString().padStart(2, \"0\");\n const month = (date.getMonth() + 1).toString().padStart(2, \"0\");\n const year = date.getFullYear().toString().slice(-2);\n return `${day}.${month}.${year}`;\n }\n function calculateTimeDifference(dateString) {\n const now = new Date();\n const creationDate = new Date(dateString);\n const diffMillis = now - creationDate.getTime();\n const timeUnits = [\"Month\", \"Day\", \"Hour\", \"Minute\", \"Second\"];\n const divisors = [\n 30 * 24 * 60 * 60 * 1000,\n 24 * 60 * 60 * 1000,\n 60 * 60 * 1000,\n 60 * 1000,\n 1000,\n ];\n\n for (let i = 0; i < divisors.length; i++) {\n const unitCount = Math.floor(diffMillis / divisors[i]);\n if (unitCount >= 1) {\n return `${unitCount} ${timeUnits[i]}${unitCount > 1 ? \"s\" : \"\"}`;\n }\n }\n\n return \"Just Now\";\n }\n\n const issues = data.body.data;\n return (\n <div>\n {issues !== null && issues.length > 0 ? (\n issues.map((issue, index) => (\n <div key={index}>\n {index === 0 && (\n <SectionHeader>\n <H2>Previous Newsletters</H2>\n </SectionHeader>\n )}\n {index > 0 && (\n <Card>\n <CardBody>\n <CardContent>\n <div className=\"d-flex clearfix\">\n <div className=\"d-flex\">\n <img\n className=\"rounded\"\n width=\"67\"\n height=\"49\"\n src={nwSite + issue.Thumbnail.url}\n alt={issue.Thumbnail.alternativeText}\n />\n <div className=\"d-flex flex-column ms-3 mt-0\">\n <CardTitle onClick={() => updateDetailsPage(issue)}>\n {\"Edition\"} {issue.Number ? issue.Number : \"\"}\n </CardTitle>\n <CordDate>\n {index > 0\n ? `${calculateTimeDifference(issue.createdAt)}`\n : formatDate(issue.createdAt)}\n </CordDate>\n </div>\n </div>\n </div>\n </CardContent>\n </CardBody>\n </Card>\n )}\n </div>\n ))\n ) : (\n <div>Loading ...</div>\n )}\n <TabContentFooter>\n <ButtonLink href=\"https://nearweek.com/newsletters\" target=\"_blank\">\n Load more\n </ButtonLink>\n </TabContentFooter>\n <Widget src={`${rootUser}/widget/nw-newsletter-badge`} />\n </div>\n );\n}\n\nreturn <BottomSection />;\n"
},
"nw-audio-more": {
"": "const rootUser = \"beskyd_dev.testnet\";\nconst breakpoints = { md: \"768px\", lg: \"1100px\", xl: \"1300px\" };\n\nfunction NewsletterCard() {\n const TopCardTitle = styled.h2`\n overflow: hidden;\n color: #1C1F41;\n text-overflow: ellipsis;\n whitespace: nowrap;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n display:grid;\n gap:20px;\n margin-bottom:27px;\n `;\n\n const MainSection = styled.div`\n padding: 0;\n @media screen and (min-width: ${breakpoints.lg}) {\n padding: 30px 16px 20px 16px;\n width: 100%;\n }\n `;\n const MainContainer = styled.div`\n display:flex;\n flex-direction:column;\n justify-content: center; \n justify-items: center; \n margin-top: 32px;\n @media screen and (min-width: ${breakpoints.lg}) {\n width: 100%;\n display: flex;\n grid-column-gap: 20px;\n flex-direction: row-reverse;\n }\n `;\n\n const audioDetails = props.audioDetails;\n const updateAudioDetails = props.updateAudioDetails;\n\n const ReturnButton = styled.div`\n cursor: pointer;\n `;\n const AudioContainer = styled.div`\n width: 80%;\n @media screen and (max-width: ${breakpoints.lg}) {\n width: 100%;\n }\n `;\n\n const ContentContainer = styled.div`\n `;\n const AudioContent = styled.div`\n display: flex;\n gap: 1.5rem;\n `;\n\n const Title = styled.h2`\n font-size: 1.5rem;\n font-weight: 600;\n margin-left: 4px;\n `;\n\n const C = styled.div`\n \n `;\n\n function TopSection() {\n return (\n <MainSection>\n {audioDetails ? (\n <AudioContainer>\n <TopCardTitle>\n <ReturnButton onClick={() => updateAudioDetails(null)}>\n <Widget src={`${rootUser}/widget/details-return`} />\n </ReturnButton>\n <ContentContainer>\n <AudioContent>\n <img\n src={audioDetails.thumbnail}\n width=\"132\"\n height=\"132\"\n alt=\"\"\n style={{ borderRadius: \"8px\" }}\n />\n <C>\n <Title>{audioDetails.title}</Title>\n <iframe\n style={{ width: \"100%\", fontFamily: \"Inter\" }}\n srcDoc={audioDetails.description}\n />\n </C>\n </AudioContent>\n <div className=\"raw-html-embed\">\n <iframe\n style={{ width: \"100%\" }}\n src={audioDetails.frameSrc}\n />\n </div>\n <Widget\n props={{\n updateAudioDetails,\n audioCardFullWidth: true,\n }}\n src={`${rootUser}/widget/nw-audio`}\n />\n </ContentContainer>\n </TopCardTitle>\n </AudioContainer>\n ) : (\n <div>Loading ...</div>\n )}\n </MainSection>\n );\n }\n const BottomContainer = styled.div`\n display: none;\n transform: translateY(50px);\n @media screen and (min-width: ${breakpoints.lg}) {\n display: block;\n }\n`;\n\n function AudioCard() {\n return (\n <Widget\n props={{\n updateAudioDetails,\n }}\n src={`${rootUser}/widget/nw-audio`}\n />\n );\n }\n\n return (\n <div>\n <Widget src={`${rootUser}/widget/nw-navbar`} />\n <MainContainer>\n <TopSection />\n <BottomContainer>\n <AudioCard />\n </BottomContainer>\n </MainContainer>\n </div>\n );\n}\n\nreturn <NewsletterCard />;\n"
}
}
}
}
}1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"3cYsB2HShkdi1YJX8dvgnXmHzhUEp4J8e8N6uBVSUxjG","sender_account_id":"beskyd_dev.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.