1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53454,(e,i,t)=>{var r=Math.floor,a=Math.random;i.exports=function(e,i){return e+r(a()*(i-e+1))}},61705,(e,i,t)=>{var r=e.r(53454);i.exports=function(e,i){var t=-1,a=e.length,s=a-1;for(i=void 0===i?a:i;++t<i;){var l=r(t,s),n=e[l];e[l]=e[t],e[t]=n}return e.length=i,e}},99656,(e,i,t)=>{var r=e.r(10754),a=e.r(61705);i.exports=function(e){return a(r(e))}},65696,(e,i,t)=>{var r=e.r(70234);i.exports=function(e,i){return r(i,function(i){return e[i]})}},4807,(e,i,t)=>{var r=e.r(99656),a=e.r(28535),s=e.r(72797);i.exports=function(e){return(s(e)?r:a)(e)}},58389,(e,i,t)=>{var r=e.r(65696),a=e.r(37165);i.exports=function(e){return null==e?[]:r(e,a(e))}},28535,(e,i,t)=>{var r=e.r(61705),a=e.r(58389);i.exports=function(e){return r(a(e))}},45363,e=>{"use strict";var i=e.i(1234),t=e.i(60442),r=e.i(95416),a=e.i(30888),s=e.i(96315);e.s(["AuthorList",0,function({creators:e,headingLevel:l}){return e.length?(0,i.jsx)("div",{children:(0,i.jsx)(a.TileGrid,{cols:[2,3,4,6],css:{rowGap:s.default.spacing.large},children:e.map(e=>(0,i.jsx)(r.default,{children:(0,i.jsx)(t.AuthorTile,{author:{...e,_postsMeta:null!=e.postsCount?{count:e.postsCount}:void 0,image:e.image?.xlarge?{xlarge:e.image.xlarge}:void 0,name:e.name??void 0,slug:e.slug??void 0},headingLevel:l})},e.id||e.slug||""))})}):null}])},48201,e=>{"use strict";var i=e.i(1234);function t(e){return(0,i.jsxs)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",...e,children:[(0,i.jsx)("path",{d:"M8 15A7 7 0 108 1a7 7 0 000 14z",fill:"none",stroke:"#fff"}),(0,i.jsx)("path",{d:"M8 4v4h4",fill:"none",stroke:"#fff"})]})}var r=e.i(96315);e.s(["TimeRemaining",0,function({submissionDeadline:e,status:a,...s}){let l,n,o=Number(new Date(e))-Date.now(),d=Math.floor(o/864e5),c=Math.floor(o/36e5),u=Math.ceil(o/6e4);return d>1?(l="days",n=d):c>1?(l="hours",n=c):(l="minutes",n=u),(0,i.jsxs)("div",{css:{alignItems:"center",color:"#fff",display:"flex"},...s,children:[(0,i.jsx)(t,{css:{marginRight:r.default.spacing.small}}),"showWinners"===a?"Finished":o<0?"Closed":`${n} ${l} left`]})}],48201)},12556,e=>{"use strict";var i=e.i(1234);function t(e){return(0,i.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 35 20",...e,children:[(0,i.jsx)("rect",{width:"100%",height:"100%",rx:"4",fill:"#FA2562"}),(0,i.jsx)("path",{d:"M13.5714 14L16.2269 6H14.4118L12.6078 11.6246H12.5854L10.8039 6H9L11.5882 14H13.5714Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M22.0299 6H23.6426V9.19368H26.8204V10.8063H23.6426V14H22.0299V10.8063H18.8521V9.19368H22.0299V6Z",fill:"#fff"})]})}e.s(["VocalPlusBadge",0,function({...e}){return(0,i.jsx)("div",{"aria-label":"Vocal+",css:{display:"inline-block",height:20,width:35,marginRight:"0.5625rem"},...e,children:(0,i.jsx)(t,{})})}],12556)},92605,95424,e=>{"use strict";var i=e.i(1234);e.s(["IconCreator",0,function(e){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",...e,children:[(0,i.jsx)("path",{d:"M12.168.001C5.419-.09-.09 5.42 0 12.167.091 18.64 5.361 23.91 11.833 24c6.75.092 12.258-5.417 12.166-12.165C23.91 5.36 18.64.09 12.168 0zM19.46 18.88a.23.23 0 01-.354-.018 7.17 7.17 0 00-1.866-1.707c-1.47-.943-3.33-1.462-5.24-1.462-1.91 0-3.772.52-5.24 1.462a7.168 7.168 0 00-1.867 1.706.232.232 0 01-.354.019 10.113 10.113 0 01-2.693-6.706C1.753 6.56 6.36 1.861 11.976 1.847 17.592 1.833 22.154 6.393 22.154 12c.002 2.55-.96 5.008-2.693 6.88z"}),(0,i.jsx)("path",{d:"M12 5.537c-1.07 0-2.039.426-2.727 1.201-.688.775-1.031 1.846-.954 2.996.158 2.265 1.81 4.11 3.681 4.11 1.873 0 3.52-1.845 3.682-4.11.08-1.138-.261-2.2-.96-2.989A3.584 3.584 0 0012 5.537z"})]})}],92605),e.s(["IconStories",0,function(e){return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",...e,children:[(0,i.jsx)("path",{d:"M17.24 5.247c0-.471.379-.853.845-.853h3.803c.56 0 1.098.225 1.494.625.396.4.619.941.619 1.506V20.59c0 .905-.356 1.772-.99 2.411a3.366 3.366 0 01-2.39.999c-.897 0-1.757-.36-2.39-.999a3.425 3.425 0 01-.99-2.41V5.246zm1.69.852V20.59c0 .453.178.886.495 1.206a1.683 1.683 0 002.39 0c.318-.32.496-.753.496-1.206V6.525a.428.428 0 00-.124-.3.42.42 0 00-.299-.126H18.93z"}),(0,i.jsx)("path",{d:"M2.145 0h14.611a2.154 2.154 0 011.515.629c.402.4.629.944.63 1.511V20.563h-1.718V2.146a.432.432 0 00-.431-.43H2.149a.434.434 0 00-.43.43v18.854a1.29 1.29 0 001.29 1.287h17.61V24H3.005a3.017 3.017 0 01-2.121-.88A3.003 3.003 0 010 21.002V2.14C.002 1.573.228 1.03.63.63A2.154 2.154 0 012.145 0z"}),(0,i.jsx)("path",{d:"M10.335 5.24c0-.467.389-.846.869-.846h3.477c.48 0 .869.379.869.845 0 .467-.39.846-.87.846h-3.476a.857.857 0 01-.87-.846zm0 3.38c0-.467.389-.845.869-.845h3.477c.48 0 .869.378.869.845 0 .466-.39.845-.87.845h-3.476a.857.857 0 01-.87-.845zM3.38 12
1c0-.467.389-.845.87-.845h10.43c.48 0 .869.378.869.845 0 .467-.39.845-.87.845H4.25A.857.857 0 013.38 12zm0 3.38c0-.466.389-.845.87-.845h10.43c.48 0 .869.379.869.845 0 .467-.39.845-.87.845H4.25a.857.857 0 01-.87-.845zm0 3.38c0-.466.389-.845.87-.845h10.43c.48 0 .869.379.869.846 0 .466-.39.845-.87.845H4.25a.857.857 0 01-.87-.845z"}),(0,i.jsx)("path",{d:"M7.606 9.465h-3.38a.845.845 0 01-.845-.845V5.24a.845.845 0 01.845-.846h3.38a.845.845 0 01.845.845v3.38a.845.845 0 01-.845.846z"})]})}],95424)},25706,e=>{"use strict";var i=e.i(1234),t=e.i(36082),r=e.i(15376),a=e.i(27441),s=e.i(14577),l=e.i(4807),n=e.i(99161),o=e.i(92605),d=e.i(95424),c=e.i(47535),u=e.i(43165),g=e.i(62814),h=e.i(96315),m=e.i(88771);function x({allSites:e=[],showDetails:t,headingLevel:r}){return(0,i.jsx)(p,{showDetails:t,children:e.map(e=>(0,i.jsx)(f,{headingLevel:r,showDetails:t,site:e},e.id))})}function p({children:e,showDetails:t}){return(0,i.jsx)("ul",{css:{display:"grid",gridGap:h.default.spacing.default,gridTemplateColumns:t?void 0:"repeat(2, 1fr)","@media (min-width: 374px)":{gridTemplateColumns:t?"repeat(2, 1fr)":void 0},"@media (min-width: 600px)":{gridTemplateColumns:t?void 0:"repeat(4, 1fr)"},"@media (min-width: 700px)":{gridTemplateColumns:t?void 0:"repeat(5, 1fr)"},"@media (min-width: 860px)":{gridTemplateColumns:t?"repeat(3, 1fr)":"repeat(6, 1fr)"},"@media (min-width: 1140px)":{gridTemplateColumns:t?"repeat(4, 1fr)":"repeat(6, 1fr)"}},children:e})}function f({headingLevel:e="h3",showDetails:t,site:l,...n}){let c=t?l.heroImage?.detailed||"":l.heroImage?.default||"";return(0,i.jsx)("li",{css:{display:"flex"},...n,children:(0,i.jsxs)(m.SiteLink,{css:{display:"flex",flexGrow:1,flexDirection:"column",[h.default.breakpoint.tabletPortraitMin]:{minWidth:"unset",margin:"unset"},":hover, :focus":{img:{opacity:.9}}},href:{pathname:"/[siteSlug]",query:{siteSlug:l.slug}},children:[(0,i.jsxs)(a.Box,{aspectRatio:t?"2:1":"5:4",css:{borderBottomLeftRadius:t?0:h.default.borderRadius.large,borderBottomRightRadius:t?0:h.default.borderRadius.large,borderTopLeftRadius:h.default.borderRadius.large,borderTopRightRadius:h.default.borderRadius.large,overflow:"hidden"},children:[(0,i.jsx)(r.LazyImage,{alt:"",height:"100%",placeholder:l.heroImage?.placeholder??void 0,src:c,width:"100%"}),(0,i.jsx)(a.Box,{backgroundColor:"dark",opacity:"0.25"}),(0,i.jsx)(s.Flex,{alignItems:"center",justifyContent:"center",children:(0,i.jsx)("img",{alt:"",css:{maxWidth:166.5,width:"90.4891%"},src:l.heroLogo?.publicUrl??void 0})})]}),(0,i.jsx)(g.A11yText,{as:e,children:l.name}),t?(0,i.jsxs)("div",{css:{display:"flex",flexDirection:"column",border:`1px solid ${h.default.color.gray15}`,borderTop:"none",borderBottomRightRadius:h.default.borderRadius.large,borderBottomLeftRadius:h.default.borderRadius.large,padding:8,flexGrow:1,[h.default.breakpoint.tabletPortraitMin]:{padding:h.default.spacing.default}},children:[(0,i.jsx)("div",{css:{flexGrow:1},children:(0,i.jsx)(g.SubtleText,{as:"p",size:"small",truncate:2,children:l.tagline||""})}),(0,i.jsxs)("div",{css:{display:"flex",flexWrap:"wrap",marginTop:h.default.spacing.default},children:[(0,i.jsxs)(g.SubtleText,{as:"p",css:{marginRight:h.default.spacing.small,svg:{width:16,height:16,marginRight:h.default.spacing.xsmall,verticalAlign:"text-bottom",fill:h.default.color.gray15}},lineHeight:1.5,size:"xsmall",children:[(0,i.jsx)(d.IconStories,{}),(l.storiesCount||0).toLocaleString()," Stories"]}),(0,i.jsxs)(g.SubtleText,{as:"p",css:{svg:{width:16,height:16,marginRight:h.default.spacing.xsmall,verticalAlign:"text-bottom",fill:h.default.color.gray15}},lineHeight:1.5,size:"xsmall",children:[(0,i.jsx)(o.IconCreator,{}),(l.creatorsCount||0).toLocaleString()," Creators"]})]})]}):null]})})}function b(e){return e.id&&e.name&&e.slug?{creatorsCount:e.creatorsCount??void 0,heroImage:e.heroImage?{default:e.heroImage.default||"",detailed:e.heroImage.detailed||void 0,placeholder:e.heroImage.placeholder??void 0}:void 0,heroLogo:e.heroLogo?.publicUrl?{publicUrl:e.heroLogo.publicUrl}:void 0,id:e.id,interests:(e.interests||[]).filter(e=>!!e?.id).map(e=>({id:e.id})),name:e.name,slug:e.slug,storiesCount:e.storiesCount??void 0,tagline:e.tagline??void 0}:null}let j=(0,e.i(79556).graphql)(` 2 query allSites($isFeatured: Boolean) { 3 sites( 4 where: { 5 isFeatured: { equals: $isFeatured } 6 isLive: { equals: true } 7 NOT: [{ slug: { equals: "vocal" } }] 8 } 9 orderBy: [{ name: asc }] 10 ) { 11 id 12 name 13 slug 14 tagline 15 primaryColor 16 storiesCount 17 creatorsCount 18 heroImage { 19 id: publicUrl 20 default: publicUrlTransformed( 21 transformation: { 22 crop: "fill" 23 fetch_format: "jpg" 24 flags: "progressive" 25 height: "120" 26 quality: "auto" 27 width: "175" 28 } 29 ) 30 detailed: publicUrlTransformed( 31 transformation: { 32 crop: "fill" 33 fetch_format: "jpg" 34 flags: "progressive" 35 height: "150" 36 quality: "auto" 37 width: "300" 38 } 39 ) 40 placeholder: publicUrlTransformed( 41 transformation: { 42 crop: "fill" 43 effect: "blur:260" 44 fetch_format: "jpg" 45 flags: "progressive" 46 height: "15" 47 quality: "80" 48 width: "30" 49 } 50 ) 51 } 52 heroLogo { 53 id: publicUrl 54 publicUrl: publicUrlTransformed(
55 transformation: { flags: "progressive", quality: "auto", width: "334" } 56 ) 57 } 58 interests { 59 id 60 } 61 } 62 } 63`);e.s(["CommunityCard",0,f,"CommunityList",0,function({first:e,interestId:r,headingLevel:a,isRandom:s=!1,showDetails:o,showFeatured:d}){let{data:g,error:h,loading:m}=(0,t.useQuery)(j,{variables:{isFeatured:d}}),p=(0,n.useMemo)(()=>{if(!g?.sites)return[];let i=g.sites.filter(e=>!!e).map(b).filter(e=>!!e);return r&&(i=i.filter(({interests:e})=>(e||[]).some(e=>e.id===r))),s&&(i=(0,l.default)(i)),e&&(i=i.slice(0,e)),i},[g?.sites,e,r,s]);return h?(0,i.jsx)(c.ErrorMessage,{message:"Error loading communities"}):m?(0,i.jsx)(u.Loading,{}):(0,i.jsx)(x,{allSites:p,headingLevel:a,showDetails:o})},"CommunityListUI",0,x])},88626,e=>{"use strict";var i=e.i(1234),t=e.i(9318),r=e.i(29418),a=e.i(62814),s=e.i(96315);e.s(["PageTitle",0,function({content:e,dark:l,headingLevel:n,link:o,title:d,...c}){return(0,i.jsxs)("div",{css:{alignItems:"center",display:"flex",justifyContent:"space-between",backgroundColor:l?s.default.color.black:void 0,paddingTop:s.default.spacing.xxlarge,marginBottom:s.default.spacing.xlarge,[s.default.breakpoint.tabletPortraitMax]:{marginBottom:s.default.spacing.default,paddingTop:s.default.spacing.large}},...c,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(a.H1,{as:n,color:l?"white":"black",css:{fontSize:s.default.font.size.xxlarge,[s.default.breakpoint.tabletPortraitMax]:{fontSize:s.default.font.size.xlarge}},weight:"bold",children:d}),e?(0,i.jsx)(a.Paragraph,{color:l?"gray40":"text",css:{marginTop:s.default.spacing.default,maxWidth:"54ch"},children:e}):null]}),o?(0,i.jsx)(t.Button,{"aria-label":`Explore all ${d}`,as:r.NextLink,css:{flexShrink:0},href:o,marginLeft:"large",variant:"outline",children:"Explore All"}):null]})}])},75486,e=>{"use strict";var i=e.i(1234),t=e.i(9989);function r(e){return(0,i.jsx)("svg",{viewBox:"0 0 19 38",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M19 0L0 19l19 19z"})})}function a(e){return(0,i.jsx)("svg",{viewBox:"0 0 19 38",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M0 0l19 19L0 38z"})})}e.i(60172);var s=e.i(39004),l=e.i(99060),n=e.i(41513),o=e.i(62814),d=e.i(96315),c=e.i(69816),u=e.i(88771);let g=12,h="page",m=(0,t.withRouter)(({pageKey:e=h,pageSize:t=g,router:c,scroll:u,totalCount:x})=>{let p=(0,s.usePrimaryColor)(),j=m.getCurrentPage(c,e),y=Math.max(Math.ceil(x/t),1),C=j+1,w=j-1,T=v(j,1,y,4);return(0,i.jsxs)(l.Container,{"aria-labelledby":"paginationLabel",css:{minWidth:0,width:"100%"},gutter:void 0,margin:"both",role:"navigation",size:"large",children:[(0,i.jsxs)(o.A11yText,{id:"paginationLabel",children:["Pagination: ",y," pages"]}),(0,i.jsxs)(n.FlexGroup,{css:{marginTop:"2.6875rem"},justify:"center",children:[w>=1?(0,i.jsxs)(b,{pageKey:e,pageNum:w,scroll:u,children:[(0,i.jsx)(r,{css:{fill:d.default.color.gray60,height:15,paddingRight:"0.5625rem",[d.default.breakpoint.mobileMax]:{display:"none"}}}),"Prev"]}):null,T[0]>1?(0,i.jsx)(f,{"aria-label":"First",label:"â¦",pageKey:e,pageNum:1,scroll:u}):null,T.map(t=>(0,i.jsx)(f,{isCurrent:t===j,label:t,pageKey:e,pageNum:t,scroll:u},t)),T[3]<y?(0,i.jsx)(f,{"aria-label":"Last",label:"â¦",pageKey:e,pageNum:y,scroll:u}):null,C<=y?(0,i.jsxs)(b,{color:p,isNext:!0,pageKey:e,pageNum:C,scroll:u,children:["Next",(0,i.jsx)(a,{css:{fill:"white",height:15,paddingLeft:"0.5625rem",[d.default.breakpoint.mobileMax]:{display:"none"}}})]}):null]})]})});m.getCurrentPage=(e,i=h)=>Math.max(function(e){let i=Array.isArray(e)?e[0]:e;if(!i)return 0;let t=Number.parseInt(i,10);return Number.isNaN(t)?0:t}(e.query[i]),1);let x={alignItems:"center",border:"none",borderRadius:d.default.borderRadius.default,display:"flex",fontSize:d.default.font.size.default,justifyContent:"center",padding:"0.5625rem 1.0625rem",transition:"all 0.1s ease-in-out",textAlign:"center"};function p(e,i,t){let r={};for(let[i,t]of Object.entries(e.query))"string"==typeof t?r[i]=t:Array.isArray(t)&&t[0]&&(r[i]=t[0]);return r[i]=String(t),r}let f=(0,t.withRouter)(({router:e,pageKey:t,pageNum:r,label:a,isCurrent:s,scroll:l,"aria-label":n})=>(0,i.jsx)(u.SiteLink,{"aria-current":s?"page":void 0,"aria-label":n,css:{...x,backgroundColor:d.default.color.gray05,color:s?d.default.color.primary:d.default.color.gray50,padding:"0.5625rem 0.75rem",":hover, :focus":{backgroundColor:d.default.color.gray10}},href:{pathname:e.route,query:p(e,t,r)},scroll:l,children:a})),b=(0,t.withRouter)(({router:e,pageKey:t,pageNum:r,color:a,children:s,isNext:l,scroll:n})=>{let o=l?(0,c.lighten)(a||d.default.color.primary,10):d.default.color.gray20;return(0,i.jsx)(u.SiteLink,{css:{...x,backgroundColor:l?d.default.color.primary:d.default.color.gray10,color:l?d.default.color.white:d.default.color.gray60,padding:"0.5625rem 1.0625rem",":hover, :focus":{backgroundColor:o}},href:{pathname:e.route,query:p(e,t,r)},scroll:n,children:s})}),j=(e,i,t)=>Math.min(t,Math.max(e,i)),v=(e,i,t,r)=>{let a=j(e,i,t),s=a;for(;s>a-Math.floor(r/2)&&s>i;)s--;let l=[s],n=s+1;for(;l.length<r&&n<=t;)l.push(n++);let o=l[0]-1;for(;l.length<r&&o>=i;)l.unshift(o--);return l};e.s(["Pagination",0,m],75486)},41513,e=>{"use strict";var i=e.i(1234),t=e.i(99161);e.s(["FlexGroup",0,function({align:e="stretch",as:r="div",children:a,growIndexes:s=[],isInline:l=!1,isVertical:n=!1,justify:o="flex-start",spacing:d=8,stretch:c=!1,wrap:u=!1,...g}
63){let h=d/2,m=t.Children.toArray(a).filter(Boolean);return(0,i.jsx)(r,{css:{alignItems:e,display:l?"inline-flex":"flex",flexDirection:n?"column":"row",flexWrap:u?"wrap":"nowrap",justifyContent:o,marginBottom:n?-h:void 0,marginLeft:n?void 0:-h,marginRight:n?void 0:-h,marginTop:n?-h:void 0,maxWidth:l?`calc(100% + ${2*h}px)`:void 0},...g,children:m.map((e,r)=>(0,i.jsx)("div",{css:{flex:c||s.includes(r)?1:void 0,marginLeft:n?void 0:h,marginRight:n?void 0:h,marginTop:n?h:void 0,marginBottom:n?h:void 0,minWidth:0},children:e},t.default.isValidElement(e)?e.key??e.props.id??r:r))})}])},30888,e=>{"use strict";var i=e.i(1234),t=e.i(96315);let r=e=>`repeat(${e}, minmax(0, 1fr))`;e.s(["Tile",0,function({alignCenter:e=!1,as:r="li",hasPadding:a=!1,...s}){return(0,i.jsx)(r,{css:{alignItems:e?"center":"flex-start",backgroundColor:"white",border:"1px solid #DDD",borderRadius:t.default.borderRadius.default,display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",minWidth:0,overflow:"hidden",padding:a?t.default.spacing.large:0,position:"relative",textAlign:e?"center":"left"},...s})},"TileGrid",0,function({cols:e=[1,2,3],gutter:a=t.default.grid.gutter,rowGap:s,...l}){return(0,i.jsx)("ul",{css:{display:"grid",gridGap:a,rowGap:s,...(e=>{let[i=1,a,s,l]=e;return{gridTemplateColumns:r(i),[t.default.breakpoint.tabletPortraitMin]:{...a?{gridTemplateColumns:r(a)}:{}},[t.default.breakpoint.tabletLandscapeMin]:{...s?{gridTemplateColumns:r(s)}:{}},[t.default.breakpoint.desktopMin]:{...l?{gridTemplateColumns:r(l)}:{}}}})(e)},...l})}])},18581,e=>{"use strict";var i=e.i(1234);function t(e){return(0,i.jsxs)("svg",{viewBox:"0 0 16 16",...e,children:[(0,i.jsx)("path",{d:"M8 13.5v-3M6 13.5h4a2 2 0 012 2H4a2 2 0 012-2zM12 1.5h3v3c0 .796-.316 1.559-.879 2.121A2.996 2.996 0 0112 7.5M4 1.5H1v3c0 .796.316 1.559.879 2.121A2.996 2.996 0 004 7.5",fill:"none",stroke:"#fff"}),(0,i.jsx)("path",{d:"M4 .5h8v6a3.995 3.995 0 01-1.172 2.828 3.995 3.995 0 01-5.656 0A3.995 3.995 0 014 6.5v-6z",fill:"none",stroke:"#fff"})]})}var r=e.i(62814),a=e.i(96315);function s(){return(0,i.jsx)("li",{css:{alignItems:"center",backgroundColor:a.default.color.gray90,borderColor:a.default.color.gray80,borderStyle:"dashed",borderRadius:8,borderWidth:"2px",display:"flex",justifyContent:"center",paddingBottom:a.default.spacing.xxlarge,paddingLeft:a.default.spacing.default,paddingRight:a.default.spacing.default,paddingTop:a.default.spacing.xxlarge},children:(0,i.jsxs)("div",{css:{color:a.default.color.gray40,textAlign:"center"},children:[(0,i.jsx)(t,{css:{marginBottom:a.default.spacing.small,path:{stroke:"currentColor"}},width:"32"}),(0,i.jsxs)(r.Paragraph,{lineHeight:1.25,size:"small",weight:"medium",children:["More challenges",(0,i.jsx)("br",{}),"coming soon!"]})]})})}var l=e.i(12556),n=e.i(48201);function o({children:e,...t}){return(0,i.jsx)("span",{css:{backgroundColor:a.default.color.white,borderRadius:a.default.borderRadius.default,color:a.default.color.gray90,fontSize:a.default.font.size.xsmall,lineHeight:1,padding:"4px 8px"},...t,children:e})}var d=e.i(93028),c=e.i(15376),u=e.i(88771);function g({challenge:e,headingLevel:s}){let{grandPrize:h,image:m,isVocalPlusOnly:x,name:p,slug:f,sponsor:b,status:j,submissionDeadline:v,summary:y}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)(u.SiteLink,{css:{borderRadius:8,display:"block",overflow:"hidden",position:"relative",":hover, :focus":{img:{opacity:.9},h2:{textDecoration:"underline"}}},href:{pathname:"/challenges/[challengeSlug]",query:{challengeSlug:f}},children:[m?.publicUrl?(0,i.jsx)(d.ImageWrapper,{css:{borderBottomLeftRadius:10,borderBottomRightRadius:10,overflow:"hidden"},children:(0,i.jsx)(c.LazyImage,{alt:"",height:442,src:m.publicUrl})}):null,(0,i.jsx)("div",{css:{color:a.default.color.white,height:"100%",position:"absolute",top:0,width:"100%"},children:(0,i.jsxs)("div",{css:{display:"flex",flexDirection:"column",fontSize:a.default.font.size.small,height:"100%",justifyContent:"flex-end"},children:[(0,i.jsxs)("div",{css:{backgroundImage:"linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0))",paddingBottom:a.default.spacing.large,paddingLeft:a.default.spacing.default,paddingRight:a.default.spacing.default,paddingTop:a.default.spacing.large},children:[(0,i.jsx)(r.H3,{as:s,size:"xlarge",weight:"bold",children:p}),(0,i.jsxs)("div",{css:{display:"flex",left:0,padding:a.default.spacing.default,position:"absolute",right:0,top:0},children:[x?(0,i.jsx)(l.VocalPlusBadge,{css:{marginRight:a.default.spacing.small}}):null,b?.name&&b?.sponsorText?(0,i.jsxs)(o,{css:{marginLeft:"auto"},children:[b.sponsorText,": ",b.name]}):null]}),y?(0,i.jsx)(r.Paragraph,{css:{marginTop:a.default.spacing.small},children:y}):null]}),(0,i.jsxs)("div",{css:{backgroundColor:"#222",padding:a.default.spacing.default,"& svg":{opacity:.5}},children:[h?(0,i.jsxs)("div",{css:{alignItems:"center",display:"flex",marginBottom:a.default.spacing.small},children:[(0,i.jsx)(t,{css:{marginRight:a.default.spacing.small},width:"16"}),h," Grand Prize"]}):null,j&&v?(0,i.jsx)(n.TimeRemaining,{status:j,submissionDeadline:v}):null]})]})})]})})}var h=e.i(30888);e.s(["ChallengeList",0,function({challenges:e=[],headingLevel:t,showComingSoonTile:r}){let l=e.length<3,n=e.length<2;return(0,i.jsx)("section",{children:(0,i.jsxs)(h.TileGrid,{cols:n?[1,2,2]:[1,1,2,3],css:{rowGap:a.default.spacing.xlarge},children:[e.map(e=>(0,i.jsx)(g,{challenge:e,headingLevel:t},e.id)),r&&l?(0,i.jsx)(s,{}):null]})})}],18581)},77174,e=>{"use strict";var i=e.i(1234),t=e.i(27441),r=e.i(14577),a=e.i(29418),s=e.i(60563),l=e.i(70936);e.i(13945);var n=e.i(64135),o=e.i(99161);let d=(0,o.createContext)(void 0),c=(0,o.createContext)(void 0);e.s(["Tab",0,function({children:e,value:r,...a}){let s=(0,o.useContext)(d),l=r===s?.activeValue;return(0,i.jsx)(c.Provider,{value:{isSelected:l},children:(0,i.jsx)(t.Box,{as:"li",id:r,...a,children:e})})},"TabLink",0,function({children:e,href:t,...r}){let s=(0,o.useContext)(c),d=s?.isSelected??!1,u=(0,n.useTheme)();return(0,i.jsx)(l.TextLink,{"aria-current":d?"page":void 0,as:a.NextLink,borderBottomColor:d?"inherit":"divider",borderBottomStyle:"solid",borderBottomWidth:"small",color:d?"base":"mute",css:{textDecoration:"none"},fontWeight:d?"medium":"regular",href:t,marginRight:"xlarge",paddingY:"medium",position:"relative",radius:"none",top:u.borderWidth.small,typography:"medium",...r,children:e})},"TabList",0,function({children:e,...a}){return(0,i.jsx)(t.Box,{as:"nav",...a,children:(0,i.jsx)(r.Flex,{as:"ul",borderBottomColor:"divider",borderBottomStyle:"solid",borderBottomWidth:"small",children:e})})},"TabPanel",0,function({children:e,value:t,...r}){let a=(0,o.useContext)(d);return t!==a?.activeValue?null:(0,i.jsx)(s.Stack,{"aria-labelledby":t,...r,children:e})},"Tabs",0,function({activeValue:e,children:t}){return(0,i.jsx)(d.Provider,{value:{activeValue:e},children:t})}])},87674,e=>{"use strict";var i=e.i(1234),t=e.i(49739),r=e.i(53830),a=e.i(95416),s=e.i(30888);e.i(13945);var l=e.i(64135);e.s(["PostList",0,function({cols:e=[1,2,2,4],headingLevel:n,posts:o=[],showMedia:d,showTopStoryBadge:c}){let u=(0,l.useTheme)(),g=o.filter(e=>"string"==typeof e.id).map(e=>e.id);
63return(0,i.jsx)(t.BookmarkedPostsProvider,{postIds:g,children:(0,i.jsx)(s.TileGrid,{cols:e,css:{rowGap:u.spacing.xxlarge},children:o.map(e=>(0,i.jsx)(a.default,{children:(0,i.jsx)(r.PostCard,{as:"li",headingLevel:n,post:e,showMedia:d,showTopStoryBadge:c})},e.slug))})})}])},56552,e=>{"use strict";e.s(["normalizeQueryParam",0,function(e){return(Array.isArray(e)?e[0]:e)??void 0}])},7275,e=>{"use strict";var i=e.i(1234),t=e.i(27441),r=e.i(47923),a=e.i(14577),s=e.i(49496),l=e.i(8339);function n(e){return(0,i.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M20 15.328a2.999 2.999 0 0 0 2-2.828v-7a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v12a4 4 0 0 0 4 4h15a1 1 0 1 0 0-2h-1v-4.172ZM4.293 4.793A1 1 0 0 1 5 4.5h14a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H6a4 4 0 0 0-2 .536V5.5a1 1 0 0 1 .293-.707ZM18 15.5H6a2 2 0 1 0 0 4h12v-4Z",clipRule:"evenodd"})})}var o=e.i(96130);function d(e){return(0,i.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M11.638 2.011a4.952 4.952 0 0 0-3.109 1.397 4.962 4.962 0 0 0-1.458 2.735 6.53 6.53 0 0 0-.043 1.394 5.113 5.113 0 0 0 1.079 2.604c.076.097.249.285.383.418a5.02 5.02 0 0 0 2.774 1.39c.176.029.376.039.737.039s.56-.01.737-.038a5.031 5.031 0 0 0 2.773-1.391 5 5 0 0 0 1.45-2.923c.043-.325.044-.916.002-1.247a5.006 5.006 0 0 0-2.223-3.573 5.192 5.192 0 0 0-1.537-.67 5.404 5.404 0 0 0-1.565-.135Zm-.033 2.016c-.698.123-1.212.371-1.659.8-.41.394-.662.81-.823 1.354-.09.307-.123.603-.107.96.034.773.331 1.438.888 1.991a2.987 2.987 0 0 0 3.893.26 2.992 2.992 0 0 0-.734-5.192c-.344-.13-.56-.168-.996-.176a6.224 6.224 0 0 0-.462.003Zm-.066 9.977c-2.242.095-4.39.959-6.127 2.464-.266.23-.844.818-1.059 1.076-.53.635-.981 1.33-1.338 2.057-.18.368-.412.934-.463 1.131a1 1 0 0 0 .793 1.254c.09.017 2.654.024 8.665.024 9.32 0 8.702.008 8.951-.125.166-.089.351-.285.436-.462a.71.71 0 0 0 .082-.353c.011-.25-.004-.314-.187-.776a10.252 10.252 0 0 0-1.634-2.739c-.22-.264-.795-.85-1.068-1.087a9.976 9.976 0 0 0-7.051-2.464Zm-.275 2.024a8.126 8.126 0 0 0-4.268 1.728c-.311.247-.982.917-1.23 1.229-.19.238-.52.713-.639.919l-.06.104h13.865l-.025-.05c-.07-.135-.5-.76-.67-.973-.25-.313-.922-.983-1.231-1.23a8.094 8.094 0 0 0-4.301-1.728 13.02 13.02 0 0 0-1.441.001Z",clipRule:"evenodd"})})}var c=e.i(77174),u=e.i(60563),g=e.i(82290);e.i(13945);var h=e.i(64135),m=e.i(24547),x=e.i(50662),p=e.i(36082),f=e.i(9989),b=e.i(99161),j=e.i(17096),v=e.i(9318),y=e.i(96512),C=e.i(71874);function w({children:e,...r}){return(0,i.jsx)(t.Box,{backgroundColor:"white",borderColor:"divider",borderStyle:"solid",borderWidth:"small",padding:"large",radius:"medium",display:"flex",flexDirection:"column",...r,children:e})}function T({isDismissable:e,isNew:t,onDismiss:r,step:s}){return(0,i.jsxs)(a.Flex,{alignItems:"flex-start",justifyContent:"space-between",marginBottom:"small",children:[(0,i.jsxs)(a.Flex,{alignItems:"center",gap:"medium",children:[s&&s.total>1&&(0,i.jsxs)(g.Text,{color:"mute",typography:"xxsmall",children:["Step ",s.current," of ",s.total]}),t&&(0,i.jsx)(C.Pill,{backgroundColor:"accent",children:"New"})]}),(0,i.jsx)(y.IconButton,{css:{color:"#000",...!(e&&r)?{visibility:"hidden"}:void 0},label:"Dismiss",onClick:r,size:"small",variant:"subtle",children:(0,i.jsx)(j.RiCloseFill,{})})]})}function S({children:e,title:t}){return(0,i.jsxs)(u.Stack,{gap:"xsmall",marginBottom:"large",children:[(0,i.jsx)(s.Heading,{level:"5",children:t}),(0,i.jsx)(g.Text,{color:"mute",typography:"small",children:e})]})}function k({cta:e,secondaryCta:t}){let r=t&&"href"in t;return(0,i.jsxs)(a.Flex,{gap:"small",marginTop:"auto",children:[(0,i.jsx)(v.Button,{onClick:e.onClick,size:"small",variant:"outline",disabled:e.isDisabled,children:e.label}),t&&(r?(0,i.jsx)(v.Button,{as:"a",href:t.href,target:"_blank",rel:"noopener noreferrer",size:"small",variant:"subtle",children:t.label}):(0,i.jsx)(v.Button,{onClick:t.onClick,size:"small",variant:"subtle",disabled:t.isDisabled,children:t.label}))]})}var R=e.i(14884),L=e.i(11095);function B({children:e,avatar:r,iconLeft:s,iconRight:l,isSelected:n=!1,onClick:o,size:d="medium"}
63){let{color:c,radius:u,sizing:m,spacing:x}=(0,h.useTheme)(),p="small"===d?{height:m.small,paddingY:x.none}:{height:m.medium,avatarSize:m.small,paddingY:x.xsmall};return(0,i.jsxs)(a.Flex,{alignItems:"center",as:o?"button":"span",backgroundColor:n?"black":"dim",borderColor:n?"transparent":"dimmest",borderStyle:"solid",borderWidth:"small",display:"inline-flex",paddingX:"medium",css:{height:p.height,paddingTop:p.paddingY,paddingBottom:p.paddingY,...r&&"medium"===d?{paddingLeft:p.paddingY}:{},color:c.text.base,gap:x.small,borderRadius:u.full,cursor:o?"pointer":"default",whiteSpace:"nowrap",transition:"background-color 150ms, border-color 150ms, color 150ms","&:hover":o?{borderColor:n?"transparent":"currentColor"}:{}},onClick:o,...o?{"aria-pressed":n}:{},children:[r&&"medium"===d&&(0,i.jsx)(t.Box,{width:p.avatarSize,height:p.avatarSize,overflow:"hidden",flexShrink:0,css:{borderRadius:u.full},children:r}),s&&(0,i.jsx)(a.Flex,{flexShrink:0,children:s}),(0,i.jsx)(g.Text,{color:"base",fontWeight:"medium",typography:"xsmall",children:e}),l&&(0,i.jsx)(a.Flex,{flexShrink:0,marginLeft:`calc(${x.xsmall} - ${x.small})`,children:l})]})}var P=e.i(76486),A=e.i(42823),M=e.i(79556),_=e.i(29231),z=e.i(40059),I=e.i(42668);e.i(89724);var E=e.i(64355);function N({children:e,header:r,ariaLabel:s="Slider",gap:l=16,itemCount:n}){let{minBreak:o}=(0,E.useMediaQuery)(),d=(0,b.useRef)(null),[c,g]=(0,b.useState)(!1),[h,m]=(0,b.useState)(!1),p=(0,b.useEffectEvent)(()=>{let e=d.current;e&&(g(e.scrollLeft>0),m(e.scrollLeft+e.clientWidth<e.scrollWidth-1))});(0,b.useEffect)(()=>{let e=d.current;if(!e)return;p();let i=new ResizeObserver(()=>p());return i.observe(e),e.addEventListener("scroll",p,{passive:!0}),()=>{e.removeEventListener("scroll",p),i.disconnect()}},[n]);let f=e=>{let i=d.current;if(!i)return;let t=i.querySelector("[data-slider-item]"),r=t?t.offsetWidth+l:i.clientWidth;i.scrollBy({left:"left"===e?-r:r,behavior:"smooth"})};return(0,i.jsxs)(u.Stack,{children:[(0,i.jsxs)(a.Flex,{alignItems:"center",gap:"large",css:{marginBottom:(0,x.rem)(20)},children:[r,(0,i.jsxs)(a.Flex,{alignItems:"center",gap:"xsmall",css:{marginLeft:"auto",display:"none",...(c||h)&&{[o("medium")]:{display:"flex"}}},children:[(0,i.jsx)(y.IconButton,{label:"Previous task",size:"medium",variant:c?"bold":"outline",onClick:()=>f("left"),disabled:!c,"aria-disabled":!c,shape:"square",children:(0,i.jsx)(j.RiArrowLeftSLine,{})}),(0,i.jsx)(y.IconButton,{label:"Next task",size:"medium",variant:h?"bold":"outline",onClick:()=>f("right"),disabled:!h,"aria-disabled":!h,shape:"square",children:(0,i.jsx)(j.RiArrowRightSLine,{})})]})]}),(0,i.jsx)(t.Box,{role:"region","aria-label":s,ref:d,css:{display:"flex",overflowX:"auto",scrollSnapType:"x mandatory",WebkitOverflowScrolling:"touch",gap:(0,x.rem)(l),scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},children:e})]})}function H({children:e,minWidth:r}){let{mq:a}=(0,E.useMediaQuery)(),s=Array.isArray(r)?r.map(e=>null==e?null:`0 0 ${(0,x.rem)(e)}`):null==r?null:`0 0 ${(0,x.rem)(r)}`;return(0,i.jsx)(t.Box,{"data-slider-item":!0,display:"flex",css:a({flex:s,scrollSnapAlign:"start"}),children:e})}let D=(0,e.i(28272).keyframes)({"0%, 100%":{opacity:.4},"50%":{opacity:1}});function F(){return(0,i.jsxs)(t.Box,{backgroundColor:"white",borderColor:"divider",borderStyle:"solid",borderWidth:"small",padding:"large",radius:"medium",css:{animation:`${D} 1.5s ease-in-out infinite`},flexGrow:1,children:[(0,i.jsxs)(a.Flex,{justifyContent:"space-between",marginBottom:"small",children:[(0,i.jsx)(t.Box,{css:{width:(0,x.rem)(40),height:(0,x.rem)(20),borderRadius:(0,x.rem)(10),backgroundColor:"#e5e5e5"}}),(0,i.jsx)(t.Box,{css:{width:(0,x.rem)(28),height:(0,x.rem)(28),borderRadius:(0,x.rem)(6),backgroundColor:"#e5e5e5"}})]}),(0,i.jsx)(t.Box,{css:{width:"70%",height:(0,x.rem)(18),borderRadius:(0,x.rem)(4),backgroundColor:"#e5e5e5",marginBottom:(0,x.rem)(8)}}),(0,i.jsx)(t.Box,{css:{width:"100%",height:(0,x.rem)(14),borderRadius:(0,x.rem)(4),backgroundColor:"#e5e5e5",marginBottom:(0,x.rem)(6)}}),(0,i.jsx)(t.Box,{css:{width:"85%",height:(0,x.rem)(14),borderRadius:(0,x.rem)(4),backgroundColor:"#e5e5e5",marginBottom:(0,x.rem)(24)}}),(0,i.jsx)(t.Box,{css:{width:(0,x.rem)(120),height:(0,x.rem)(32),borderRadius:(0,x.rem)(6),backgroundColor:"#e5e5e5"}})]})}var O=e.i(97414);let V=(0,M.graphql)(` 64 mutation ConnectedActionCenterResendEmail($userId: ID!) { 65 token: createVerifyEmailToken(data: { user: { connect: { id: $userId } } }) { 66 id 67 } 68 } 69`);function W(){let{tasks:e,loading:r,dismissTask:a,interactTask:l}=(0,R.useActionCenter)(),n=(0,f.useRouter)(),[o]=(0,P.useMutation)(V),[d]=(0,A.useLazyQuery)(O.GENERATE_STRIPE_CONNECT_URL_QUERY),{user:c}=(0,_.useAuth)(),[u,g]=(0,b.useState)(!1),[h,m]=(0,b.useState)(!1);if(r&&0===e.length)return(0,i.jsx)(t.Box,{backgroundColor:"dim",paddingY:"xlarge",borderBottomWidth:"small",borderBottomColor:"dimmest",borderBottomStyle:"solid",children:(0,i.jsx)(L.PageContainer,{children:(0,i.jsx)(N,{header:(0,i.jsx)(s.Heading,{level:"4",children:"To do"}),ariaLabel:"Loading tasks",itemCount:3,children:Array.from({length:3},(e,t)=>(0,i.jsx)(H,{minWidth:[280,null,null,334],children:(0,i.jsx)(F,{})},t))})})});if(0===e.length)return null;let x=async()=>{try{c?.id&&await o({variables:{userId:c.id}}),I.toast.success("Verification email sent. Please check your inbox.")}catch{I.toast.error("Unable to send email. Please try again.")}},p=async()=>
69{if(!u){g(!0);try{let{data:e}=await d({variables:{accountType:"standard",redirectUrl:"/settings"}}),i=e?.generateStripeConnectUrl?.url;if(!i)throw Error();window.location.assign(i),h&&m(!1)}catch{I.toast.error("Unable to open Stripe. Please try again.")}finally{g(!1)}}},j=async e=>{await a(e)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.Box,{backgroundColor:"dim",paddingY:"xlarge",borderBottomWidth:"small",borderBottomColor:"dimmest",borderBottomStyle:"solid",children:(0,i.jsx)(L.PageContainer,{children:(0,i.jsx)(N,{header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Heading,{level:"4",children:"To do"}),(0,i.jsx)(B,{size:"small",children:`${e.length} ${1===e.length?"task":"tasks"} remaining`})]}),ariaLabel:"Outstanding tasks",itemCount:e.length,children:e.map(e=>{let t=e.secondaryCtaLabel&&null!=e.secondaryCtaUrl?{label:e.secondaryCtaLabel,href:e.secondaryCtaUrl}:void 0,r=("OPEN_STRIPE_ONBOARDING"===e.ctaAction.type||"OPEN_MODAL"===e.ctaAction.type)&&u;return(0,i.jsx)(H,{minWidth:[280,null,null,334],children:(0,i.jsxs)(w,{css:{flex:1},children:[(0,i.jsx)(T,{isNew:e.isNew,isDismissable:e.isDismissible,onDismiss:()=>j(e.id)}),(0,i.jsx)(S,{title:e.title,children:e.description}),(0,i.jsx)(k,{cta:{label:e.ctaLabel,onClick:()=>(e=>{l(e.id);let{ctaAction:i}=e;switch(i.type){case"RESEND_VERIFICATION_EMAIL":x();break;case"OPEN_STRIPE_ONBOARDING":p();break;case"NAVIGATE":i.url&&n.push(i.url);break;case"OPEN_MODAL":"stripe_requirements"===i.modalId&&m(!0)}})(e),isDisabled:r},secondaryCta:t})]})},e.id)})})})}),h&&(0,i.jsx)(z.StripeRequirementsModal,{userSlug:c?.slug,isSubmitting:u,onConfirm:p,onDefer:()=>{m(!1),n.push("/")},onDismiss:()=>m(!1)})]})}var G=e.i(56552),U=e.i(33950),q=e.i(32841);function $(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{d:"M5.372 12.545l8.922-11.217a.707.707 0 011.107.88L5.97 14.066a.708.708 0 01-1.069.044L.708 9.643a.708.708 0 011.031-.968l3.633 3.87z"})})}var Q=e.i(62814),Y=e.i(96315),Z=e.i(88771);let K=["Easy-to-use story creation tools","Earn money from reads, tips and challenges","We moderate every story for safety","No annoying ads"];function X(e){let{onOpenJoin:r}=(0,q.useAuthModal)();return(0,i.jsxs)(t.Box,{backgroundColor:"black",css:{color:Y.default.color.white,padding:Y.default.spacing.xxlarge,[Y.default.breakpoint.tabletLandscapeMax]:{padding:Y.default.spacing.large},[Y.default.breakpoint.mobileMax]:{padding:Y.default.spacing.medium}},radius:"medium",...e,children:[(0,i.jsx)(Q.H2,{css:{fontSize:40,fontWeight:700,lineHeight:1.333,marginBottom:Y.default.spacing.default,[Y.default.breakpoint.tabletLandscapeMax]:{fontSize:36,lineHeight:1.111}},children:"Share your stories and support creators."}),(0,i.jsx)(Q.Paragraph,{children:"Vocal is an all-in-one platform where you can share your stories, build an audience, and earn money."}),(0,i.jsx)(Q.Paragraph,{css:{marginBottom:Y.default.spacing.large,marginTop:Y.default.spacing.large,[Y.default.breakpoint.tabletLandscapeMax]:{marginBottom:Y.default.spacing.default,marginTop:Y.default.spacing.default}},children:(0,i.jsx)(v.Button,{onClick:()=>r(),variant:"outline",children:"Become a Creator"})}),(0,i.jsx)(Q.H3,{css:{fontSize:24,fontWeight:700,lineHeight:1.333,[Y.default.breakpoint.tabletLandscapeMax]:{fontSize:20,lineHeight:1.6}},children:"Why creators choose Vocal:"}),(0,i.jsxs)("div",{css:{fontSize:Y.default.font.size.small},children:[(0,i.jsx)("ul",{css:{marginBottom:Y.default.spacing.default,marginTop:Y.default.spacing.default},children:K.map(e=>(0,i.jsxs)("li",{css:{alignItems:"flex-start",display:"flex",marginBottom:Y.default.spacing.small},children:[(0,i.jsx)($,{css:{fill:Y.default.color.white,flexShrink:0,height:16,marginRight:10,width:16}}),e]},e))}),(0,i.jsx)(Q.Paragraph,{size:"small",children:(0,i.jsx)(Z.SiteLink,{appearance:"white",css:{textDecoration:"underline","&:hover, &:focus":{textDecoration:"none"}},href:{pathname:"/resources/tag/[tagSlug]",query:{tagSlug:"creator-101"}},children:"Learn more about how Vocal works"})})]})]})}var J=e.i(45363),ee=e.i(60442),ei=e.i(18581),et=e.i(25706),er=e.i(88626),ea=e.i(75486),es=e.i(52881),el=e.i(95416),en=e.i(30888),eo=e.i(53830),ed=e.i(87674),ec=e.i(90822),eu=e.i(53574),eg=e.i(75211);function eh({children:e,css:r,ref:a,...s}){let l={marginLeft:"auto",marginRight:"auto",maxWidth:(0,x.rem)(1280),minWidth:0,paddingLeft:(0,x.rem)(17),paddingRight:(0,x.rem)(17),width:"100%"};return(0,i.jsx)(t.Box,{css:[l,r],ref:a,...s,children:e})}function em(){let{isLoading:e,user:t}=(0,_.useAuth)(),r=t?.id;return!r||e?null:(0,i.jsx)(ep,{userId:r})}function ex(){let{user:e}=(0,_.useAuth)();return e?.id?(0,i.jsx)(W,{}):null}function ep({userId:e}){let t=(0,h.useTheme)(),r=(0,f.useRouter)(),a=(0,G.normalizeQueryParam)(r.query.tab)||ef[0].id;return(0,i.jsxs)(u.Stack,{css:{marginBottom:t.spacing.large,marginTop:t.spacing.xxlarge,[`@media (min-width: ${t.breakpoint.medium})`]:{marginTop:t.spacing.xxxxlarge}},children:[(0,i.jsx)(er.PageTitle,{content:"View all your saved and subscribed content and creators.",css:{paddingTop:0},headingLevel:"h2",title:"Home"}),(0,i.jsx)(c.Tabs,{activeValue:a,children:(0,i.jsxs)(u.Stack,{gap:"xlarge",children:[(0,i.jsx)(c.TabList,{children:ef.map(({id:e,label:t,href:r})=>(0,i.jsx)(c.Tab,{value:e,children:(0,i.jsx)(c.TabLink,{href:r,children:t})},e))}),ef.map(({id:t,component:r})=>(0,i.jsx)(c.TabPanel,{value:t,children:(0,i.jsx)(el.default,{children:(0,i.jsx)(r,{userId:e})})},t))]})})]})}let ef=[{id:"story-feed",label:"Story Feed",href:"/?tab=story-feed",component:function({userId:e}){let t=(0,f.useRouter)(),r=ea.Pagination.getCurrentPage(t),{data:a,loading:s,error:l}=(0,p.useQuery)(O.GET_SUBSCRIBED_POSTS_QUERY,{context:{headers:{"Cache-Control":"max-age=0"}},fetchPolicy:"cache-and-network",variables:{pageSize:8,skip:(r-1)*8,userId:e}});if(l)throw l;if(s)return(0,i.jsx)(ey,{});let o=(a?.getSubscribedPosts||[]).map(({post:e,isVocalPlusMember:i})=>{let t=(0,eo.parsePostCardPost)({...(0,eg.readFragment)(eu.POST_CARD_POST_CONTENT_FRAGMENT,e),...(0,eg.readFragment)(eu.POST_CARD_POST_AUTHOR_FRAGMENT,e),...(0,eg.readFragment)(eu.POST_CARD_POST_VOCAL_SITE_FRAGMENT,e)});return t.author?{...t,author:{...t.author,isVocalPlusMember:i}}:t}),d=a?.countSubscribedPosts?.count||0;return 0===o.length?(0,i.jsx)(eb,{description:"Explore top stories and creators weâre loving below",icon:n,title:"Stories from creators you subscribe to will show here"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ed.PostList,{posts:o}),d>8?(0,i.jsx)(ea.Pagination,{pageSize:8,totalCount:d}):null]})}},{id:"saved-feed",label:"Saved",href:"/?tab=saved-feed",component:function({userId:e}){let t=(0,f.useRouter)(),r=ea.Pagination.getCurrentPage(t),{data:a,loading:s,error:l,refetch:n}=(0,p.useQuery)(O.GET_SAVED_POSTS_QUERY,{context:{headers:{"Cache-Control":"max-age=0"}},fetchPolicy:"cache-and-network",variables:{pageSize:8,skip:(r-1)*8,userId:e}}),d=(0,b.useMemo)(()=>(a?.user?.bookmarkedPosts||[]).map(e=>e.post).filter(e=>!!e).map(e=>(0,eo.parsePostCardPost)({...(0,eg.readFragment)(eu.POST_CARD_POST_CONTENT_FRAGMENT,e),...(0,eg.readFragment)(eu.POST_CARD_POST_AUTHOR_FRAGMENT,e),...(0,eg.readFragment)(eu.POST_CARD_POST_VOCAL_SITE_FRAGMENT,e)})),[a]),c=(0,b.useMemo)(()=>
69a?.user?.bookmarkedPostsCount||0,[a]);if((0,b.useEffect)(()=>{if(s)return;let e=Math.ceil(c/8),i=r===e;0===d.length&&e>1&&(i?t.replace({query:{...t.query,page:r-1}}):n())},[c,r,s,d.length,n,t]),l)throw l;return s?(0,i.jsx)(ey,{}):0===d.length?(0,i.jsx)(eb,{description:"Click the save icon on any story to save for later",icon:o.IconBookmarkLine,title:"Saved stories will show here"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ed.PostList,{posts:d}),c>8?(0,i.jsx)(ea.Pagination,{pageSize:8,totalCount:c}):null]})}},{id:"subscribed-creators-feed",label:"Subscribed Creators",href:"/?tab=subscribed-creators-feed",component:function({userId:e}){let t=(0,f.useRouter)(),r=ea.Pagination.getCurrentPage(t),{data:a,loading:s,error:l}=(0,p.useQuery)(O.GET_SUBSCRIBED_CREATORS_QUERY,{context:{headers:{"Cache-Control":"max-age=0"}},fetchPolicy:"cache-and-network",variables:{pageSize:12,skip:(r-1)*12,userId:e}}),n=(0,h.useTheme)();if(l)throw l;if(s)return(0,i.jsx)(ey,{});let o=(a?.getSubscribedCreators||[]).filter(Boolean).map(e=>{let i=e.user.image?(0,eg.readFragment)(ec.AVATAR_IMAGE_X_LARGE_FRAGMENT,e.user.image):null;return{...e,user:{id:e.user.id,isTrustedCreator:e.user.isTrustedCreator,isVocalPlusMember:e.isPaidSubscription,lastPublishedAt:e.user.lastPublishedAt,name:e.user.name,slug:e.user.slug,image:i?{...i,src:i.xlarge}:null}}}),c=a?.countSubscribedCreators?.count||0;return 0===o.length?(0,i.jsx)(eb,{description:"Subscribe to your favorite creators to keep up with their stories",icon:d,title:"Subscribed creators will show here"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(en.TileGrid,{cols:[2,3,4,6],css:{rowGap:n.spacing.xxlarge},children:o.map(e=>(0,i.jsx)(el.default,{children:(0,i.jsx)(ee.AuthorTile,{author:e.user,headingLevel:"h3",isPaidSubscription:e.isPaidSubscription,lastPublishedAt:e.user.lastPublishedAt||void 0})},e.user.slug))}),c>12?(0,i.jsx)(ea.Pagination,{pageSize:12,totalCount:c}):null]})}}];function eb({icon:e,title:t,description:r}){return(0,i.jsx)(u.Stack,{css:{alignItems:"center",flexDirection:"column",justifyContent:"center",minHeight:(0,x.rem)(192)},children:(0,i.jsxs)(u.Stack,{css:{justifyItems:"center"},gap:"xlarge",children:[(0,i.jsx)(a.Flex,{alignItems:"center",backgroundColor:"mute",height:"xlarge",justifyContent:"center",radius:"full",width:"xlarge",children:(0,i.jsx)(l.Icon,{size:"small",children:(0,i.jsx)(e,{})})}),(0,i.jsxs)(u.Stack,{gap:"xsmall",textAlign:"center",children:[(0,i.jsx)(s.Heading,{as:"h2",typography:"level4",children:t}),(0,i.jsx)(g.Text,{color:"mute",typography:"medium",children:r})]})]})})}function ej({posts:e}){let{isLoading:t,userId:r}=(0,_.useAuth)(),a=e.map(e=>({...e,id:e.id||"",slug:e.slug||""})),s=!r&&!t,l=a.slice(0,s?1:2),n=a.slice(s?1:2,s?9:10);return t?(0,i.jsx)(ev,{}):s?(0,i.jsx)(eC,{largePosts:l,posts:n}):(0,i.jsx)(ew,{allPosts:a})}function ev(){return(0,i.jsxs)(u.Stack,{children:[(0,i.jsx)(eT,{}),(0,i.jsx)(ey,{})]})}function ey(){let e=(0,h.useTheme)();return(0,i.jsx)(u.Stack,{css:{alignItems:"center",justifyContent:"center",minHeight:(0,x.rem)(192)},children:(0,i.jsx)(r.Dots,{css:{color:e.color.text.mute},size:(0,m.em)(12)})})}function eC({largePosts:e,posts:t}){let r=(0,h.useTheme)();return(0,i.jsxs)(u.Stack,{children:[(0,i.jsxs)("div",{css:{display:"grid",gridGap:r.spacing.xlarge,gridTemplateColumns:"1fr",marginBottom:r.spacing.xxlarge,rowGap:r.spacing.xxlarge,[`@media (min-width: ${r.breakpoint.medium})`]:{gridTemplateColumns:"1fr 1fr",marginTop:r.spacing.xxxxlarge}},children:[(0,i.jsx)(X,{css:{borderRadius:0,marginLeft:`calc(-${r.spacing.xlarge} - 1px)`,marginRight:`calc(-${r.spacing.xlarge} - 1px)`,order:0,[`@media (min-width: ${r.breakpoint.medium})`]:{borderRadius:r.radius.medium,marginLeft:0,marginRight:0,order:1}}}),(0,i.jsxs)("div",{children:[(0,i.jsx)(eT,{css:{paddingTop:"0px !important"}}),(0,i.jsx)(ed.PostList,{cols:[1,1,1],posts:e,showTopStoryBadge:!1})]})]}),(0,i.jsx)(ed.PostList,{posts:t,showTopStoryBadge:!1})]})}function ew({allPosts:e}){let t=(0,h.useTheme)();return(0,i.jsxs)(u.Stack,{css:{marginTop:t.spacing.xxlarge,[`@media (min-width: ${t.breakpoint.medium})`]:{marginTop:t.spacing.xxxxlarge}},children:[(0,i.jsx)(es.SectionHeader,{content:"Find new, handpicked stories youâll love, updated daily.",heading:"Top Stories",link:"/top-stories"}),(0,i.jsx)("div",{css:{marginBottom:t.spacing.xxlarge},children:(0,i.jsx)(ed.PostList,{posts:e.slice(0,8),showTopStoryBadge:!1})})]})}function eT(e){return(0,i.jsx)(er.PageTitle,{content:"Find new, handpicked stories youâll love, updated daily.",headingLevel:"h2",link:"/top-stories",t
69itle:"Top Stories",...e})}e.s(["__N_SSP",0,!0,"default",0,function({resourcesPosts:e,topStoriesPosts:r,challenges:a,homeCreators:s}){let l=(0,h.useTheme)();return(0,i.jsx)(U.default,{hasWhiteBackground:!0,children:(0,i.jsxs)(u.Stack,{as:"main",children:[(0,i.jsx)(el.default,{children:(0,i.jsx)(ex,{})}),(0,i.jsxs)(u.Stack,{css:{gap:l.spacing.xxlarge,[`@media (min-width: ${l.breakpoint.medium})`]:{gap:l.spacing.xxxxlarge}},children:[(0,i.jsxs)(eh,{children:[(0,i.jsx)(g.Text,{as:"h1",visuallyHidden:!0,children:"Vocal"}),(0,i.jsxs)(t.Box,{children:[(0,i.jsx)(el.default,{children:(0,i.jsx)(em,{})}),(0,i.jsx)(el.default,{children:(0,i.jsx)(ej,{posts:r})})]})]}),(0,i.jsx)(u.Stack,{backgroundColor:"dark",css:{backgroundColor:l.color.palette.neutral.p1000,color:l.color.palette.neutral.p0},width:"100%",children:(0,i.jsxs)(eh,{paddingBottom:"xxxxlarge",paddingTop:"xxxxlarge",children:[(0,i.jsx)(es.SectionHeader,{content:"Enter themed storytelling contests to put your creativity to the test.",heading:"Challenges",link:"/challenges"}),(0,i.jsx)(ei.ChallengeList,{challenges:a})]})}),(0,i.jsxs)(eh,{children:[(0,i.jsx)(es.SectionHeader,{content:"Meet the people in your communities creating extraordinary things.",heading:"Creators Weâre Loving"}),(0,i.jsx)(J.AuthorList,{creators:s,headingLevel:"h3"})]}),(0,i.jsxs)(eh,{children:[(0,i.jsx)(es.SectionHeader,{content:"Discover tips, guides, updates, and spotlights from our team.",heading:"Resources",link:"/resources"}),(0,i.jsx)(ed.PostList,{cols:[1,1,2,3],headingLevel:"h3",posts:e})]}),(0,i.jsxs)(eh,{children:[(0,i.jsx)(es.SectionHeader,{content:"Join communities powered by creators who share your passions.",heading:"Explore Communities",link:"/communities"}
69),(0,i.jsx)(et.CommunityList,{first:8,isRandom:!0,showDetails:!0})]})]})]})})}],7275)},23455,(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",()=>e.r(7275)]),i.hot&&i.hot.dispose(function(){window.__NEXT_P.push(["/"])})}]);
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.