PageSourceSearch

https://highrise.game/_next/static/chunks/pages/user-design-contests/[contest_id]-5e41bba248205205.js

js highrise.game collected 2026-09-24 11:35:34 UTC 65,727 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ad7d784f-e5ab-4064-98a4-aa94d6362472",e._sentryDebugIdIdentifier="sentry-dbid-ad7d784f-e5ab-4064-98a4-aa94d6362472")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7773],{51566:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-design-contests/[contest_id]",function(){return i(4321)}])},64937:function(e,s,i){"use strict";i.d(s,{h:function(){return r}});var t=i(2784),n=i(66582);let r=()=>{let[e,s]=(0,t.useState)();return(0,t.useEffect)(()=>{s(n.tq)},[s]),e}},35681:function(e,s,i){"use strict";i.d(s,{S:function(){return u}});var t=i(52322),n=i(39097),r=i.n(n),o=i(2784),a=i(63955),l=i(38247),c=i(50142),d=i(84191);let h=(0,c.zop)(c.Kx8,{color:"$fishbase02",padding:"$4",backgroundColor:"$fishbase08",borderColor:"$fishbase05",borderRadius:"$base",fontWeight:300,"&:disabled":{color:"$fishbase05",backgroundColor:"$fishbase0925",cursor:"not-allowed"}}),u=e=>{var s;let{open:i,isLoading:n,children:u,onOpenChange:g,onReportSubmission:m}=e,[x,f]=(0,o.useState)(!1),{register:b,setValue:p,resetField:j,handleSubmit:y,watch:w,formState:{errors:C}}=(0,a.cI)(),{t:v}=(0,l.$G)(["udc"]),S=w("reporter_notes");return(0,o.useEffect)(()=>{x?p("reporter_notes",v("stolen_art_non_entry")):j("reporter_notes")},[x]),(0,t.jsxs)(c.VqE,{open:i,onOpenChange:g,children:[!!u&&(0,t.jsx)(c.hgM,{asChild:!0,children:u}),(0,t.jsxs)(c.cZJ,{size:"lg",onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(c.$N8,{children:"Report"}),(0,t.jsx)(c.iKN,{}),(0,t.jsxs)(c.BeV,{css:{color:"$fishbase03",fontSize:"$15",fontWeight:300,marginBottom:"$8",textAlign:"justify",textAlignLast:"center"},children:["All designs must follow the Highrise Code of Conduct and"," ",(0,t.jsx)(r(),{legacyBehavior:!0,href:"https://support.highrise.game/en/articles/8043105-what-are-the-highrise-community-guidelines",passHref:!0,children:(0,t.jsx)(c.rUS,{bold:!0,target:"_blank",rel:"noopener",children:"Community Guidelines"})}),". Offensive or exclusionary content won't be considered - we want to highlight entries that reflect the values of our community."]}),(0,t.jsxs)(c.kCb,{as:"form",direction:"column",css:{rowGap:"$4"},onSubmit:y(e=>{m(e)}),children:[(0,t.jsxs)(c.kCb,{centerY:!0,css:{columnGap:"$2"},children:[(0,t.jsx)(c.XZJ,{checked:x,onCheckedChange:e=>f(!!e)}),(0,t.jsx)(c.xvT,{muted:!0,children:v("stolen_art_non_entry")})]}),(0,t.jsx)(h,{disabled:x,rows:10,maxLength:400,placeholder:"Tap to provide more information...",...b("reporter_notes",{required:{value:!0,message:"Please provide more information."},maxLength:{value:400,message:"Your report cannot be more than 400 characters."}})}),(0,t.jsxs)(c.kCb,{css:{justifyContent:"space-between"},children:[!!C.reporter_notes&&(0,t.jsx)(c.xvT,{size:"15",color:"accentSecondary",children:C.reporter_notes.message}),(0,t.jsx)(d.G,{current:null!==(s=null==S?void 0:S.length)&&void 0!==s?s:0,max:400,css:{marginLeft:"auto",color:(null==S?void 0:S.length)>20?"$tertiaryTangerine":"$fishbase01",textAlign:"end"}})]}),(0,t.jsx)(c.zxk,{type:"submit",loading:n,disabled:n,children:"Report Submission"}),(0,t.jsx)(c.zxk,{type:"button",variant:"gray",onClick:()=>{g(!1)},children:"Cancel"})]})]})]})}},77549:function(e,s,i){"use strict";i.d(s,{W:function(){return o}});var t=i(52322);i(2784);var n=i(62202),r=i(50142);let o=e=>{let{fallbackUrl:s,isSuccess:i}=e;return(i?n.ZP.success:n.ZP.error)((0,t.jsxs)(t.Fragment,{children:[i?"Template has been saved!":"An error occurred."," If the download did not start,"," ",(0,t.jsx)(r.rUS,{download:!0,decorated:!0,href:s,target:"_blank",rel:"noopener",children:"click here"})]}),{duration:6e3})}},4321:function(e,s,i){"use strict";i.r(s),i.d(s,{DesignContestPage:function(){return eQ},__N_SSP:function(){return eX},default:function(){return eK}});var t=i(52322),n=i(5632),r=i(2784),o=i(50142),a=i(39224),l=i(59646),c=i(62202),d=i(34800),h=i(10009),u=i(77549);let g=(e,s)=>(e===a.Uci.FINALIST_VOTING||e===a.Uci.WINNERS_SELECTION)&&s?a.ntl.FINALIST:a.ntl.ALL,m=(e,s)=>{let i=[];switch(e){case a.Uci.WINNERS_ANNOUNCED:i.push(a.ntl.ALL),s&&(i.push(a.ntl.WINNER),i.push(a.ntl.FINALIST));break;case a.Uci.WINNERS_SELECTION:case a.Uci.FINALIST_VOTING:if(s){i=[a.ntl.FINALIST];break}default:i=[a.ntl.ALL,a.ntl.TOP]}return i},x=(e,s,i)=>{let t=[a.iY2.INFO];return e>a.Uci.SUBMISSION&&(t.push(a.iY2.BROWSE),s&&t.push(a.iY2.MY_VOTES)),e>=a.Uci.SUBMISSION&&i&&t.push(a.iY2.MY_SUBMISSIONS),t},f=e=>{let s={width:436,height:436,layout:"fixed",unoptimized:!0,canToggleScaleDown:!1,fallbackSrc:""};return e.map(e=>({src:e,...s}))},b=(0,r.createContext)(void 0),p=()=>{let e=(0,r.useContext)(b);if(void 0===e)throw Error("useUDC must be used within a UDCProvider");return e},j=e=>{var s,i,n,o;let{contest:f,children:p}=e,{user:j}
1=(0,h.aC)(),y=!!(null==j?void 0:j.user_id),w=f.contestId,C=f.currentStage,v=f.finalistMaxVotes>0,S=g(C,v),[I,k]=(0,r.useState)(a.iY2.INFO),[z,N]=(0,r.useState)(S),[$,T]=(0,r.useState)([]),[D,U]=(0,r.useState)([]),[L,E]=(0,r.useState)(!1),{refetch:O,isFetching:A}=(0,a.Eo3)({contest_id:w,type:z},{enabled:!!w,onError:function(){c.ZP.error("Something went wrong while fetching submissions.")},onSuccess:function(e){var s,i,t,n;switch(z){case a.ntl.USER:U(null!==(s=e.submissions)&&void 0!==s?s:[]);break;case a.ntl.ALL:(null===(i=e.submissions)||void 0===i?void 0:i.length)>=21?T(s=>{var i;return s.concat(null!==(i=e.submissions)&&void 0!==i?i:[])}):T(null!==(t=e.submissions)&&void 0!==t?t:[]);break;default:T(null!==(n=e.submissions)&&void 0!==n?n:[])}}}),{isFetching:F}=(0,a.Jpw)({contest_id:w,type:a.ntl.USER},{enabled:!!w&&y,onError:function(){c.ZP.error("Something went wrong while fetching your submissions.")},onSuccess:function(e){var s;U(null!==(s=e.submissions)&&void 0!==s?s:[])}}),{data:R,refetch:_,isFetching:H}=(0,a.qE1)({contest_id:w},{enabled:!!w&&y&&C>=a.Uci.PRELIMINARY_VOTING}),G=null==R?void 0:R.submission_ids,W=null==R?void 0:R.finalist_submission_ids,P=(C===a.Uci.PRELIMINARY_VOTING?G:C===a.Uci.FINALIST_VOTING?W:null)||[],{data:V,isFetching:M}=(0,a.pVK)({contest_id:w,submission_ids:[...W||[],...G||[]]},{enabled:!!w&&(!!(null==W?void 0:W.length)||!!(null==G?void 0:G.length))&&C>a.Uci.SUBMISSION,onError:function(){c.ZP.error("Something went wrong while fetching submissions you voted for.")}}),B=null!==(i=null==V?void 0:V.submissions.filter(e=>null==G?void 0:G.includes(e.submissionId)))&&void 0!==i?i:[],Y=null!==(n=null==V?void 0:V.submissions.filter(e=>null==W?void 0:W.includes(e.submissionId)))&&void 0!==n?n:[],{mutateAsync:q,isLoading:Z}=(0,a.rdB)({onError:function(){c.ZP.error("Something went wrong while voting for this submission.")},onSuccess:function(){_(),c.ZP.success("Vote submitted")}}),{mutateAsync:J,isLoading:X}=(0,a._2m)(),{mutateAsync:Q,isLoading:K}=(0,a.M6b)({onError:function(){c.ZP.error("Something went wrong while reporting the submission.")},onSuccess:function(){c.ZP.success("Report submitted!")}}),ee=(0,r.useMemo)(()=>{var e;return x(C,!!(null==W?void 0:W.length)||!!(null==G?void 0:G.length),!!D.length)},[C,G,W,D]),es=(0,r.useMemo)(()=>m(C,v),[C,v]),ei=async()=>{let e="".concat(l.Vi.cdnAssetsURL,"/contests/UDCDefaultTemplate.webp");await (0,d.NG)({src:f.templateUrl,fallbackSrc:e,filename:"UDC_Template",onSuccess:()=>{(0,u.W)({fallbackUrl:f.templateUrl,isSuccess:!0})},onFallbackSuccess:()=>{(0,u.W)({fallbackUrl:e,isSuccess:!0})},onError:()=>{(0,u.W)({fallbackUrl:e,isSuccess:!1})}})},et=async e=>{if(f.currentStage!==a.Uci.PRELIMINARY_VOTING&&f.currentStage!==a.Uci.FINALIST_VOTING){c.ZP.error("Votes cannot be accepted at this time.");return}await q({contest_id:w,submission_id:e})},en=async e=>{if(C!==a.Uci.SUBMISSION){c.ZP.error("Submissions cannot be deleted at this time.");return}try{await J({contest_id:w,submission_id:e}),er(e),c.ZP.success("Submission deleted!")}catch(e){c.ZP.error("Something went wrong while deleting your submission.")}},er=e=>{U(s=>s.filter(s=>s.submissionId!==e))};return(0,r.useEffect)(()=>{O&&O()},[z,O]),(0,r.useEffect)(()=>{void 0===f.currentStage&&(f.currentStage=0)},[f]),(0,t.jsx)(b.Provider,{value:{contest:f,activePage:I,activeFilter:z,userVoteIds:[...W||[],...G||[]],currentStageVoteIds:P,submissions:$,userVotes:B,userFinalistVotes:Y,userSubmissions:D,remainingVotes:null!==(o=null==R?void 0:R.remaining_votes)&&void 0!==o?o:0,isLoading:A||M||F||H||Z||X||K,isDropdownOpen:L,isUserLoggedIn:y,selectablePages:ee,selectableFilters:es,hasFinalistStage:v,onPageChange:e=>{Object.values(a.iY2).includes(e)&&(e===a.iY2.BROWSE&&I===a.iY2.MY_SUBMISSIONS&&N(S),k(e))},onFilterChange:e=>{e!==z&&e in a.ntl&&(T([]),N(e))},onDropdownOpenChange:E,getSubmissions:O,refetchUserVotes:_,downloadTemplate:ei,voteSubmission:et,deleteSubmission:en,reportSubmission:(e,s)=>{Q({contest_id:w,submission_id:e,reporter_notes:s})},addUserSubmission:e=>{U(s=>[...s,e])},removeUserSubmission:er},children:p})};var y=i(36657),w=i(27779),C=i(64937);let v=(0,o.zop)(o.hU,{position:"fixed",bottom:"$4",right:"$4",boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)","@md":{bottom:"$8",right:"$8",height:56,width:56}}),S=e=>{let{show:s=!1,onJumpToTop:i}=e;return(0,t.jsx)(v,{css:{visibility:s?"visible":"hidden"},onClick:i,children:(0,t.jsx)(y.CC,{})})};var I=i(38421),k=i.n(I);let z={position:"absolute",top:0,right:0,width:120,color:"$fishbase01",padding:"$2 0 $3",textAlign:"center",textTransform:"uppercase",textShadow:"1px 1px 3px rgba(132, 63, 11, 0.25)",fontSize:"10.5px",transform:"translate(29.29%, -100%) rotate(45deg)",transformOrigin:"bottom left",clipPath:"pol
1ygon(\n      0 100%,\n      0 calc(100% - 5px),\n      50% calc(100% - 5px - 120px / 2),\n      100% calc(100% - 5px),\n      100% 100%,\n      calc(100% - 5px) calc(100% - 5px),\n      5px calc(100% - 5px)\n    )",zIndex:"$docked"},N=(0,o.zop)(o.xuv,{borderRadius:"$none",overflowX:"hidden","@md":{borderRadius:"$3xl"}}),$=(0,o.zop)(o.xuv,{position:"relative",maxWidth:436,margin:"0 auto",variants:{variant:{winner:{"&::before":{content:"Winner",...z,background:"linear-gradient(#DF9717 0 0) bottom / 100% 5px no-repeat $tertiaryTangerine"}},runnerup:{"&::before":{content:"Runner-Up",...z,background:"linear-gradient(#CA093A 0 0) bottom / 100% 5px no-repeat $accentSecondary"}}}}});var T=i(39097),D=i.n(T);let U=e=>{let{open:s,onOpenChange:i,onDeleteSubmission:n}=e;return(0,t.jsx)(o.VqE,{open:s,onOpenChange:i,children:(0,t.jsxs)(o.cZJ,{children:[(0,t.jsx)(o.$N8,{children:"Wait a sec!"}),(0,t.jsx)(o.BeV,{css:{color:"$fishbase03",fontWeight:300,marginBottom:"$8"},children:"Once you delete your submission it cannot be recovered! Are you sure you want to continue?"}),(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.zxk,{variant:"accentSecondary",onClick:n,children:"Yes"}),(0,t.jsx)(o.zxk,{variant:"gray",onClick:()=>{i(!1)},children:"Cancel"})]})]})})};var L=i(35681);let E=e=>{let{submissionId:s}=e,[i,n]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),{isLoading:d,isDropdownOpen:h,userSubmissions:u,contest:{currentStage:g},onDropdownOpenChange:m,deleteSubmission:x,reportSubmission:f}=p(),b=u.map(e=>e.submissionId).includes(s);return b&&g!==a.Uci.SUBMISSION?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Ltx,{open:h,onOpenChange:m,children:[(0,t.jsx)(o.WAD,{asChild:!0,children:(0,t.jsx)(o.hU,{css:{padding:0,color:"$fishbase03",borderRadius:"$base",backgroundColor:b||g>=a.Uci.WINNERS_ANNOUNCED?"$fishbase08":"$fishbase07","@md":{padding:"$1"}},children:(0,t.jsx)(o.Drx,{css:{width:20.25,height:20.25},children:(0,t.jsx)(y.YR,{})})})}),(0,t.jsx)(o.NvT,{align:"end",sideOffset:10,css:{width:"auto"},children:b?(0,t.jsx)(o.hP3,{css:{padding:"$3 $4"},onClick:()=>{n(!0)},children:"Delete Submission"}):(0,t.jsx)(o.hP3,{css:{padding:"$3 $4"},onClick:()=>{c(!0)},children:"Report Submission"})})]}),(0,t.jsx)(U,{open:i,onOpenChange:n,onDeleteSubmission:()=>{n(!1),x(s)}}),(0,t.jsx)(L.S,{open:l,isLoading:d,onOpenChange:c,onReportSubmission:e=>{c(!1),f(s,e.reporter_notes)}})]})},O=(0,o.zop)(o.kCb,{justifyContent:"space-between",height:81,padding:"$4",backgroundColor:"$fishbase08",variants:{isExpanded:{false:{position:"absolute",top:0,left:0,right:0,maxWidth:436,margin:"0 auto",backgroundColor:"unset",zIndex:"$dropdown"}}}}),A=(0,o.zop)(o.hU,{borderRadius:"$base","@md":{display:"none"}}),F=e=>{let{submissionId:s,submissionUser:i,isUserLoggedIn:n}=e;return n||i?(0,t.jsxs)(O,{centerY:!0,isExpanded:!!i,children:[!!i&&(0,t.jsx)(o.kCb,{center:!0,css:{columnGap:"$2"},children:(0,t.jsx)(D(),{legacyBehavior:!0,href:"/profile/".concat(i.username),passHref:!0,children:(0,t.jsxs)(o.rUS,{target:"_blank",rel:"noopener",css:{display:"flex",alignItems:"center",columnGap:"$2"},children:[(0,t.jsx)(o.QJH,{isLink:!1,user:i,size:"52"}),(0,t.jsx)(o.Drx,{bold:!0,children:i.username})]})})}),(0,t.jsxs)(o.kCb,{css:{columnGap:"$2",marginLeft:"auto"},children:[n&&(0,t.jsx)(E,{submissionId:s}),(0,t.jsx)(o.GGM,{asChild:!0,children:(0,t.jsx)(A,{css:{backgroundColor:i?"$fishbase08":"$fishbase07"},children:(0,t.jsx)(y.Wc,{})})})]})]}):(0,t.jsx)(O,{centerY:!0,isExpanded:!1,children:(0,t.jsx)(o.GGM,{asChild:!0,children:(0,t.jsx)(A,{css:{backgroundColor:i?"$fishbase08":"$fishbase07",marginLeft:"auto"},children:(0,t.jsx)(y.Wc,{width:"14px",height:"14px"})})})})};var R=i(22788);let _=e=>{let{open:s,onOpenChange:i,onVote:n}=e;return(0,t.jsx)(o.VqE,{open:s,onOpenChange:i,children:(0,t.jsxs)(o.cZJ,{children:[(0,t.jsx)(o.iKN,{}),(0,t.jsx)(o.$N8,{children:"Confirm your vote?"}),(0,t.jsx)(o.BeV,{css:{color:"$fishbase03",fontWeight:300,marginBottom:"$8"},children:"Once you cast your vote you will not be able to take it back."}),(0,t.jsx)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:(0,t.jsx)(o.zxk,{onClick:n,children:"Vote"})})]})})},H=(0,o.zop)(o.kCb,{padding:"$4",rowGap:"$4"}),G=(0,o.zop)(o.zxk,{color:"$fishbase09",columnGap:"$1",fill:"$accentPrimary","&:hover":{fill:"$accentPrimaryHover"}}),W=(0,o.zop)(o.kCb,{columnGap:"$1",fill:"$fishbase03",pointerEvents:"none",userSelect:"none"}),P=(0,o.zop)(o.xvT,{opacity:.3,margin:"$2 0"}),V=(0,o.zop)(o.Drx,{width:16,height:16}),M=e=>{let{totalVotes:s,remainingVotes:i,isUserLoggedIn:n=!1,isVotedByUser:a=!1,onVoteSubmission:l}=e,[c,d]=(0,r.useState)(!1),h=void 0!==s&&void 0!==i&&i>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(H,{direction:"column",children:[!n&&(0,t.jsx)(R.ol,{children:(0,t.jsx)(o.zxk,{fullWidth:!0,children:"Login to vote"})}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.kCb,{css:{justifyContent:"space-between"},children:[(0,t.jsx)(o.xvT,{bold:!0,children:"Time to vote!"}),(0,t.jsxs)(o.xvT,{color:h?"accentPrimary":"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,css:{color:1===i?"$destructive":"inherit"},children:null!=i?i:"-"}),!!s&&" / ".concat(s)," Votes Left"]})]}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Pick the best designs for our future grabs!"}),a?(0,t.jsxs)(o.zxk,{as:W,variant:"gray",children:[(0,t.jsx)(V,{css:{color:"$fishbase03"},children:(0,t.jsx)(y.AU,{})})," ",(0,t.jsx)(o.Drx,{color:"fishbase03",children:"Voted for this entry"})]}):h?(0,t.jsxs)(G,{onClick:()=>d(!0),children:[(0,t.jsx)(V,{children:(0,t.jsx)(y.AU,{})})," ",(0,t.jsx)(o.Drx,{children:"Vote for this entry"})]}):(0,t.jsx)(P,{bold:!0,align:"center",color:"fishbase03",children:"No votes left"})]})]}),(0,t.jsx)(_,{open:c,onOpenChange:d,onVote:()=>{l&&(l(),d(!1))}})]})},B=e=>{let{submission:s}=e,{user:i}=(0,h.aC)(),n=(0,C.h)(),{activePage:r,currentStageVoteIds:l,userSubmissions:c,remainingVotes:d,isUserLoggedIn:u,contest:{currentStage:g,maxVotes:m,finalistMaxVotes:x},voteSubmission:b}=p(),j=s.submissionId,y=c.map(e=>e.submissionId).includes(j),w=g===a.Uci.PRELIMINARY_VOTING||g===a.Uci.FINALIST_VOTING,v=g===a.Uci.PRELIMINARY_VOTING?m:g===a.Uci.FINALIST_VOTING?x:0,S=g>=a.Uci.WINNERS_ANNOUNCED&&(s.isRunnerup||s.isWinner)?s.isWinner?"winner":"runnerup":void 0;return(0,t.jsxs)(N,{children:[(0,t.jsx)(F,{submissionId:j,submissionUser:y?i:g>=a.Uci.WINNERS_ANNOUNCED?s.user:null,isUserLoggedIn:u}),(0,t.jsx)($,{variant:S,children:(0,t.jsx)(o.LiA,{images:f(s.entryUrls).map(e=>({...e,canToggleScaleDown:n})),hasNavigation:!n}
1)}),w&&!y&&r===a.iY2.BROWSE&&(0,t.jsx)(M,{totalVotes:v,remainingVotes:d>=0?d:void 0,isUserLoggedIn:u,isVotedByUser:l.includes(j),onVoteSubmission:()=>{b(s.submissionId)}})]})},Y=(0,o.zop)(o.kCb,{width:160,height:160,borderRadius:"6px",cursor:"pointer",overflow:"hidden"}),q=(0,o.zop)(o.kCb,{justifyContent:"space-between",width:"100%",padding:"$4",margin:"0 auto","@md":{padding:0}}),Z=(0,o.zop)(o.hU,{width:"auto","&:disabled":{visibility:"hidden"},"&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"@md":{width:44,height:44,position:"absolute",top:"50%","&:hover":{backgroundColor:"$fishbase07Hover"},"&:active":{backgroundColor:"$fishbase07Hover"}},variants:{direction:{left:{"&::after":{content:"Previous",marginLeft:"$1"},"@md":{left:"-60px","&::after":{content:"none"}}},right:{"&::before":{content:"Next",marginRight:"$2"},"@md":{right:"-60px","&::before":{content:"none"}}}}},defaultVariants:{direction:"left"}}),J=(0,o.zop)(y.CC,{width:"24px",height:"24px",color:"$fishbase03"}),X=(0,o.zop)(o.rjZ,{gap:"$2",gridTemplateColumns:"160px 160px","@sm":{gridTemplateColumns:"repeat(3, 160px)"}}),Q=e=>{let{submissions:s}=e,[i,n]=(0,r.useState)(!0),[l,c]=(0,r.useState)(void 0),[d,h]=(0,r.useState)([]),{activePage:u,onDropdownOpenChange:g}=p(),m=e=>{if(!l)return;let i=s.indexOf(l);-1!==i&&c(s[i+e])},x=e=>{u===a.iY2.BROWSE&&h(s=>s.concat([e]))};return(0,t.jsxs)(o.VqE,{open:!i&&!!l,onOpenChange:()=>n(e=>!e),children:[(0,t.jsx)(o.hgM,{asChild:!0,children:(0,t.jsx)(X,{children:s.filter(e=>!d.includes(e.submissionId)).map((e,s)=>(0,t.jsx)(Y,{center:!0,onClick:()=>{c(e)},children:(0,t.jsx)(k(),{src:e.entryUrls[0],alt:"Submission ".concat(e.submissionId),width:160,height:160,onError:()=>{x(e.submissionId)}})},"submission.".concat(e.submissionId,".").concat(s)))})}),(0,t.jsx)(o.cZJ,{css:{padding:0,backgroundColor:"$fishbase07",overflow:"unset"},onInteractOutside:()=>{g(!1)},children:(0,t.jsx)(o.kCb,{direction:"column",css:{maxWidth:436,margin:"0 auto"},children:!!l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B,{submission:l}),(0,t.jsxs)(q,{children:[(0,t.jsx)(Z,{direction:"left",disabled:0>=s.indexOf(l),onClick:()=>{m(-1)},children:(0,t.jsx)(J,{direction:"left",css:{marginLeft:"-$1","@md":{marginLeft:"unset"}}})}),(0,t.jsx)(Z,{direction:"right",disabled:s.indexOf(l)>=s.length-1,onClick:()=>{m(1)},children:(0,t.jsx)(J,{direction:"right",css:{marginRight:"-$1","@md":{marginRight:"unset"}}})})]})]})},null==l?void 0:l.submissionId)})]})},K=e=>{let{title:s,submissions:i}=e;return i.length?(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[s&&(0,t.jsx)(o.xvT,{bold:!0,css:{fontSize:"$22"}
1,children:s}),(0,t.jsx)(Q,{submissions:i})]}):null},ee=(0,o.zop)(o.mQc,{display:"flex",position:"relative",flexDirection:"column",background:"none"}),es=(0,o.zop)(o.nUL,{display:"flex",flexDirection:"column",maxWidth:"496px",rowGap:"$4"}),ei=(0,o.zop)(o.W20,{display:"flex",flexDirection:"column",alignItems:"center",padding:"$4","@md":{padding:"$4 0"}}),et=(0,o.zop)(o.kCb,{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",pointerEvents:"none",zIndex:"$popover"}),en=()=>{let{activeFilter:e,selectableFilters:s,onFilterChange:i}=p();return(0,t.jsx)(o.kCb,{centerX:!0,css:{columnGap:"$2"},children:s.map((s,n)=>(0,t.jsx)(o.zxk,{rounded:"xl",variant:e===s?"accentPrimary":"gray",css:{height:30,minHeight:"unset",minWidth:"unset",padding:"6px $3",fontWeight:e===s?500:300},onClick:()=>i(s),children:a.l41[s]},"udc.filter.".concat(n)))})},er=()=>{let e=(0,C.h)(),{activeFilter:s,submissions:i,hasFinalistStage:n,getSubmissions:r,contest:{currentStage:l}}=p(),c=i.filter(e=>e.isWinner),d=i.filter(e=>e.isRunnerup),h=n?i.filter(e=>e.isFinalist&&!e.isRunnerup&&!e.isWinner):[],u=s===a.ntl.ALL,g=l>=a.Uci.WINNERS_ANNOUNCED,m=!u||i.length>=21,x=()=>{if(e)window.scroll({top:0,left:0,behavior:"smooth"});else{var s;null===(s=document.getElementById("scroll-viewport"))||void 0===s||s.scroll({top:0,left:0,behavior:"smooth"})}};return(0,t.jsxs)(es,{value:a.iY2.BROWSE,children:[(0,t.jsx)(en,{}),i.length?g&&(s===a.ntl.ALL||s===a.ntl.WINNER)?(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$6"},children:[!!c.length&&(0,t.jsx)(K,{title:d.length?"Winners":void 0,submissions:c}),!!d.length&&(0,t.jsx)(K,{title:"Runner-Ups",submissions:d}),!!h.length&&(0,t.jsx)(K,{title:"Finalists",submissions:h})]}):(0,t.jsx)(Q,{submissions:i}):(0,t.jsx)(o.pBr,{text:"There are no submissions at this time."}),l<a.Uci.WINNERS_ANNOUNCED&&i.length>=21&&(0,t.jsx)(o.zxk,{variant:"gray",disabled:!m,css:{opacity:m?1:0},onClick:()=>{r(),u||x()},children:u?" Load more submissions":"Refresh submissions"}),(0,t.jsx)(S,{show:i.length>21,onJumpToTop:x})]})},eo=(0,o.zop)(o.kCb,{position:"relative",width:"100%",height:"250px",pointerEvents:"none"}),ea=(0,o.zop)(o.kCb,{position:"absolute",top:"50%",left:"50%",width:"100%",height:"100%",rowGap:"$4",textAlign:"center",transform:"translate(-50%, -50%)"}),el=(0,o.zop)(o.X6q,{fontSize:"2rem",textShadow:"0px 2px 12px rgba(0, 0, 0, 0.5)","@md":{fontSize:"44px"}});var ec=i(23622),ed=i(74437);let eh=e=>{var s;let{currentStageEndsAt:i}=e,n=(0,r.useMemo)(()=>(0,ed.createGetTimeLeft)(i?new Date(i):new Date,!1),[i]),a=(0,ec.F)(n,1e3),[l,c,d]=null!==(s=null==a?void 0:a.map(e=>{var s;return null!==(s=e.value)&&void 0!==s?s:0}))&&void 0!==s?s:[];return i&&null!==a&&(l||c||d)?(0,t.jsxs)(o.xvT,{css:{color:"inherit",fontWeight:"inherit"},children:[(0,t.jsx)(o.Drx,{css:{marginRight:"$1"},children:(0,t.jsx)(y.qS,{width:"12px",height:"12px"})}),!!l&&(0,t.jsx)(o.Drx,{css:{marginRight:"$1"},children:"".concat(l,"h")}),!!c&&(0,t.jsx)(o.Drx,{children:"".concat(c,"m ")}),!l&&!c&&(0,t.jsx)(o.Drx,{children:"".concat(d,"s")}),(0,t.jsx)(o.Drx,{children:" left"})]}):null},eu=(0,o.zop)(o.Drx,{display:"flex",fontSize:"$15",columnGap:"$2"}),eg=(0,o.zop)(o.Drx,{display:"flex",justifyContent:"center",alignItems:"center",width:16,height:16,marginRight:"$1",color:"$fishbase09"}),em=(0,o.zop)(o.Cts,{padding:"$2 $3",backgroundColor:"#FFFFFFEB",color:"$fishbase09","&:empty":{display:"none"}}),ex=e=>{let{badgeVariant:s,badgeText:i,badgeIcon:n,isContestEnded:r,currentStageEndsAt:a}=e;return(0,t.jsxs)(eu,{children:[(0,t.jsxs)(o.Cts,{size:"base",color:s,css:{padding:"$2 $3"},children:[!!n&&(0,t.jsx)(eg,{children:n}),(0,t.jsx)(o.Drx,{children:i})]}),r?(0,t.jsx)(o.Cts,{size:"base",variant:"fishbase03",css:{padding:"$2 $3"},children:"Ended"}):!!a&&(0,t.jsx)(em,{bold:!0,size:"base",children:(0,t.jsx)(eh,{currentStageEndsAt:a})})]})},ef=e=>{let{title:s,bannerUrl:i,badgeText:n,bannerColor:r,badgeVariant:a,badgeIcon:c,isContestEnded:d=!1,currentStageEndsAt:h}=e,u=!!i;return(0,t.jsxs)(eo,{css:{backgroundColor:!u&&(null==r?void 0:r.length)?"rgb(".concat(r.join(", "),")"):"$accentPrimary"},children:[u&&(0,t.jsx)(o.JG3,{alt:"User Design Contest Banner",src:i,fallbackSrc:"".concat(l.Vi.cdnAssetsURL,"/web/assets/images/banners/banner_default_udc.svg"),layout:"fill",objectFit:"cover",priority:!0}),(0,t.jsxs)(ea,{center:!0,direction:"column",children:[(0,t.jsx)(el,{children:s}
1),(0,t.jsx)(ex,{badgeVariant:a,badgeText:n,badgeIcon:c,isContestEnded:d,currentStageEndsAt:h})]})]})},eb=(0,o.zop)(o.kCb,{all:"inherit",display:"none","@md":{display:"flex",justifyContent:"space-evenly",width:"auto",whiteSpace:"nowrap",columnGap:"$8"}}),ep=e=>{let{selectablePages:s}=e;return(0,t.jsx)(eb,{children:s.map((e,s)=>(0,t.jsx)(o.SPt,{value:e,css:{textTransform:"capitalize"},children:e.split("_").join(" ")},"udc.nav.".concat(s)))})},ej=(0,o.F4b)({from:{opacity:0,transform:"translateY(110%)"},to:{opacity:1,transform:"none"}}),ey=(0,o.zop)(o.kCb,{width:"100%","@md":{display:"none"}}),ew=e=>{let{activePage:s,selectablePages:i}=e,[n,a]=(0,r.useState)(!1);return(0,t.jsx)(ey,{centerX:!0,children:(0,t.jsxs)(o.VqE,{open:n,onOpenChange:a,children:[(0,t.jsx)(o.hgM,{asChild:!0,children:(0,t.jsxs)(o.zxk,{fullWidth:!0,rounded:"none",variant:"gray",css:{textTransform:"capitalize",columnGap:"$2"},children:[(0,t.jsx)(o.Drx,{children:s.split("_").join(" ")}),(0,t.jsx)(y.CC,{direction:"down"})]})}),(0,t.jsxs)(o.cZJ,{css:{paddingTop:"$16",paddingLeft:"$8",animation:"".concat(ej," 250ms ease")},children:[(0,t.jsx)(o.iKN,{}),(0,t.jsx)(o.kCb,{direction:"column",css:{rowGap:"$4",textTransform:"capitalize"},children:i.map((e,s)=>(0,t.jsx)(o.SPt,{default:!0,value:e,css:{'&[data-state="active"]':{color:"$accentSecondary"}},onClick:()=>a(!1),children:e.split("_").join(" ")},"udc.nav.".concat(s)))})]})]})})},eC=()=>{let{activePage:e,selectablePages:s}=p();return(0,t.jsxs)(o.drW,{"aria-label":"Navigate through the UDC",css:{height:50,background:"$fishbase07","@md":{height:66}},children:[(0,t.jsx)(ep,{selectablePages:s}),(0,t.jsx)(ew,{activePage:e,selectablePages:s})]})},ev=(0,o.zop)(o.GSI,{display:"flex",flexDirection:"column",rowGap:"$4",listStylePosition:"outside"}),eS=(0,o.zop)(o.QI$,{display:"flex",flexDirection:"column",rowGap:"$4",listStyle:"outside",marginLeft:"$8"}),eI=[{title:"General Questions",subcontent:[{title:"What's the UDC feature?",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"User Design Contest (UDC) is a feature that allows players to submit their own item designs for various art competitions here at Highrise. Winning designs will be turned into real items by the art team."})},{title:"What kind of contests will this be used for?",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"All the contests! Here's a quick refresher on the different types of art and design contests we run."}),(0,t.jsxs)(ev,{css:{marginLeft:"$8"},children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Grab Design Contests: players make a full grab of 12-15 unique items. Grabs are released in major events, and winners will receive the full grab (with their name credited!) alongside a gold prize."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Mini Design Contests: players design items or accessories for a grab or shop collection, and also receive name credit, gold, and the items themselves."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Art Design Contests: make a card, item, or decoration and have your work added directly to the game!"})]}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Remember! All contests have a cooldown period which will preclude a winner's eligibility for that contest type for one contest cycle. For example, if you win a Grab Contest, you won't be able to enter the next Grab Contest, but you can still enter a Mini Design or Art Design Contest."})]})},{title:"Where do I find this feature?",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"The UDC system is accessible on web (highrise.game) while a contest is running. Each time a contest starts, Highrise will make an announcement post with the contest dates and a link to the submission tool."})},{title:"How does the new tool work?",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Inside the web menu, you'll see a set of contest stages running from:"}),(0,t.jsxs)(eS,{css:{marginLeft:0},children:[(0,t.jsx)(o.HCh,{bold:!0,size:"15",color:"fishbase03",children:"✏️ SUBMISSION"}),(0,t.jsx)(o.HCh,{bold:!0,size:"15",color:"fishbase03",children:"\uD83D\uDDA4 VOTING"}),(0,t.jsx)(o.HCh,{bold:!0,size:"15",color:"fishbase03",children:"\uD83D\uDD52 WAITING FOR RESULTS"}),(0,t.jsx)(o.HCh,{bold:!0,size:"15",color:"fishbase03",children:"⭐ FINAL VOTE"}),(0,t.jsx)(o.HCh,{bold:!0,size:"15",color:"fishbase03",children:"\uD83D\uDC51 WINNERS ANNOUNCED"})]}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"SUBMISSION Stage:"})," This is the only period at which you can - you know - submit your entry. The Browse tab will be empty at this stage, so you won't be able to view other user's entries or cast any votes. Tab over to My Submissions to see your entries, and click on the ellipsis icon to pull up the action menu. You won't be able to edit or delete your entry after this phase!"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"VOTING Stage:"})," During this phase, you can start browsing through all contest entries; these are anonymous and randomized for each person. You'll be given a limited number of votes that you can use to boost your favorite designs. Votes cannot be withdrawn once cast, so choose carefully!"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"WAITING FOR RESULTS Stage:"})," Highrise Staff will review and assemble the top-voted entries into a list of finalists. Hang tight - we'll notify you when this 
1stage is over!"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"FINAL VOTE Stage:"})," Cast your ballot for the top entry! Navigate through the Browse feature to pick your favorite entry from among the finalists. You'll only have one vote, and you won't be able to take it back once cast, so choose carefully!"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"WINNERS ANNOUNCED Stage:"})," Check back in to view the contest winners and runner ups! At this point, no other entries will be visible, but you can still view your own designs by tabbing back to My Submissions."]})]})]})},{title:"If entries are anonymous, can I still add my name to my submission?",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Yes! You may watermark your design with your name or logo. Sharing your design on your profile via a newsfeed post is also allowed, so feel free to chat about your entries. However, remember that offering Gold or other incentives to the community to vote on your entry is not allowed, and will get you disqualified."})},{title:"I want to delete my entry! How!?",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"While you're in the UDC web tool, tab over to “My Submissions.” Click on the entry you want to delete and click on the ellipsis icon to pull up the action menu."})},{title:"I accidentally voted for an entry I totally hate. Can I take my vote back?",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Nope! Sorry about that pal, but all votes are final. Choose carefully!"})},{title:"I'm getting a weird error message when I try to submit!",content:(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Make sure your image dimensions is at least 1000x1000! You won't be able to submit your entry if your images are invalid or if they do not follow our community guidelines."})}]},{title:"Grab Design Contest Rules and Guidelines",subcontent:[{title:"Grab Design Contest Rules",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsxs)(ev,{children:[(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",css:{marginBottom:"$4"},children:"All entries must be your original creation."}),(0,t.jsxs)(eS,{children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"You may incorporate art assets from Highrise or other sources to help express your idea, and we accept the use of tracing and other drawing aids. However, any entry you submit must be significantly changed from your reference material in order to make it your own unique design. Entering images directly from other games, avatar creator apps, art sites, Instagram, etc. is not allowed."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Designs depicting copyrighted characters or other IPs will be disqualified."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Unless specifically stated as a collaboration, you may not enter artwork created by other members. Commissioned grab designs will be disqualified."})]})]}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Each design must include at least 1 masculine outfit and 1 feminine outfit."}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsxs)(o.xvT,{bold:!0,size:"15",color:"fishbase03",css:{marginBottom:"$4"},children:[(0,t.jsx)(o.Drx,{bold:!0,children:"All designs must have a minimum of 12 items in total (both genders combined) and a maximum of 15."})," ","More items may be included in the design, but no more than 15 will be made in the final grab."]}),(0,t.jsxs)(eS,{children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"All avatar items must be clearly visible in your entry. Items that are unclear or obscured may be modified or left out of the final grab."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Furni is optional. You may include up to 2 furni items. These will c
1ount toward the 12 item minimum. These should be visible in the main entry image, but do not have to be full size. Having furni in your design does not affect your chances of being selected as a finalist."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Highrise reserves the right to modify, combine, or remove any items in a design. This may be done for technical reasons or to make the item fit better in the style of the app"})]})]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:["You may submit up to ",(0,t.jsx)(o.Drx,{bold:!0,children:"2 unique entries"})," for a design contest. However, only one of your designs may become a finalist for community voting. Collaborative efforts are counted as a single entry, so plan your solo and team submissions accordingly."]}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Final entries must be submitted through the User Design Contest feature, available through a bot in the Welcome Plaza"}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"All designs must follow the Highrise code of conduct and community guidelines. Offensive or exclusionary content won't be considered - we want to highlight entries that reflect the values of our community"}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:["All submissions will be regarded as User-Generated Content as defined in the"," ",(0,t.jsx)(o.rUS,{decorated:!0,href:"https://support.highrise.game/articles/10542745-terms-of-service",css:{color:"$accentSecondary"},children:"Pocket Worlds Terms of Service"}),". By submitting a design,"," ",(0,t.jsx)(o.Drx,{bold:!0,children:"you acknowledge Highrise will own the rights to the finished items, and that your compensation will take the form of free items and/or gold."})]})]}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Use of official Highrise avatar templates is highly encouraged, but not required. You can find the template here:"}),(0,t.jsx)(o.kCb,{css:{borderRadius:"$base",overflow:"hidden"},children:(0,t.jsx)(k(),{alt:"User Design Contest Template",src:"".concat(l.Vi.cdnAssetsURL,"/contests/UDCDefaultTemplate.webp"),width:496,height:496})})]})},{title:"Contest Judging",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"After the contest deadline has passed, Highrise staff will review all contest entries under the contest hashtag and select a number of finalists. Finalist selection is based on a combination of factors. This can include:"}),(0,t.jsxs)(eS,{children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Visual appeal"}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Uniqueness of design"}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Interpretation of theme"}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Feasibility (Can Highrise actually make your items work in-game within our current technical constraints?)"}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:["Community interest",(0,t.jsx)(eS,{css:{listStyleType:"circle"},children:(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"As of March 2021, judging takes into consideration an entry's popularity within the community, including number of likes and comments."})})]})]}),(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",children:"We don't allow consecutive wins in any art design contest. If you have been selected as a winner or runner-up in a Grab Design Contest, you are not eligible to be selected as a finalist in the next Grab Design Contest."}),(0,t.jsxs)(eS,{children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Finalists who enter the following contest under an alternate account will be disqualified."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Collaborations that include a finalist from the previous contest are only eligible for a shoutout spot."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Winners may participate in a MIni Design Contest immediately following a win in a Grab Design Contest. For more information, visit the Mini Design Contest FAQ"})]}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Finalists are announced 1-2 days after the contest deadline. The Highrise community will then have 24 hours to vote for their favorite designs from those finalists."})]})},{title:"What's my prize for winning or being a runner-up?",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsxs)(o.xvT,{size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Winners"})," will receive a gold prize along with the full item set inspired by their design.",(0,t.jsx)(o.Drx,{bold:!0,children:" Runners-up"}
1)," will receive a gold prize and a small number of items (around 4) from their design."]}),(0,t.jsxs)(eS,{css:{marginLeft:"$8"},children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"If you're part of a winning collaboration, discuss with your teammate how you would like your item set divided between you. Grabs made from collaborator designs may be smaller than the 15 item maximum to allow items to be equally distributed. Gold prizes will also be divided equally between collaborators."}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:["Outside of the winners and runners-up, we also select a number of designs as ",(0,t.jsx)(o.Drx,{bold:!0,children:"Honorable Mentions"})," or"," ",(0,t.jsx)(o.Drx,{bold:!0,children:"Shoutouts"}),"for each contest. These players will receive a gold prize."]})]})]})},{title:"I'm a winner/runner up for a grab design contest! What happens now?",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",children:"Congrats! Now your design will be used by our Art Team as inspiration for real in-game items \uD83D\uDE03"}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Once winners and runner-ups have been announced, please email us by going to Profile > Settings > FAQ > Contact Us in top-right corner > Community Requests. Open a new message and include HD images of your full design and any close-ups or detail views, along with any additional notes or instructions for our staff artists."}),(0,t.jsxs)(eS,{css:{marginLeft:"$8"},children:[(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"For winning designs, include a full list of items as well as intended rarities. It helps us a lot when items are clearly labeled. Feel free to include items names as well, but remember: HR has the final say in item selection, name, and rarity"}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"For runner-up designs, include a full list of items listed in order of preference. Typically only 4 items will be made from runner-up designs. Our staff will determine which items will be made, but we try to honor requests and preferences where possible."}),(0,t.jsx)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:"Usually, we send designers 2 sets of their items. If you're a collaborator, we'll send each partner 1 set, along with half the gold prize."})]}),(0,t.jsxs)(o.xvT,{size:"15",color:"fishbase03",children:["We'll usually send you some previews of your items before they go live, along with their expected launch date. Please note that we typically ",(0,t.jsx)(o.Drx,{bold:!0,children:"do not"})," send previews for single item contests (EyeRise, Redesign, etc) due to the volume of participants."]}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Winning designs will be released as grabs that can be spun with gold. Items made from runners-up will be released as event rewards. You'll receive your items and gold prize in-game in the form of gift boxes under the Gifts section of your Inbox. Enjoy!"})]})},{title:"Design Contest Do's and Dont's",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",children:"DO:"}),(0,t.jsxs)(eS,{children:[(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Make your entire grab design cohesive."})," It helps when everything in your design makes sense with the theme and fits together well. There are many ways to achieve this, such as using a particular color palette or specific design elements throughout the design, having a strong central concept/story/aesthetic/mood, etc. If something seems out of place, it might be better to change it or leave it out."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Put equal effort into both feminine and masculine outfits."})," ","Are they both equally interesting and well thought out, or has more effort been put into one over the other? A super elaborate feminine outfit doesn't make up for a very basic masculine one. Push 
1your creativity!"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Present your design clearly and neatly."})," To keep the contest hashtag free of clutter and easy to navigate, please post your entry as a multi-image post. The first image of your post must show your full design with both outfits. Include close ups and detail views in the rest of your post instead of making separate posts. If something is covered up in your design, include a detail view of it by itself so we can see the whole item."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Consider a variety of rarities when designing your items."})," ","Are there any items in your design that are particularly unique, fun, beautiful, etc? Are there items that stand out as obvious Legendaries or Epics, or does everything feel like Rares?"]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Pay attention to how items usually work on the avatar."})," ","There are technical limitations that affect the way items layer and animate in our system. Designs that will not work well with our system will need to be modified or combined, which may affect your item count. Refer to the Current Avatar Item Layering Guide in the FAQ for more info."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Include more than 12 items!"})," 12 is the minimum required, but we often need to combine certain member-designed items because of technical constraints. This could cause your design to have fewer than 12 items in total, which unfortunately disqualifies the entry."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Untag any old versions of your entry."})," We just want to see your most beautiful and polished final design on the contest hashtag page."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Be supportive of everyone participating!"})," Be kind and thoughtful when giving or receiving feedback, and congratulate each others' successes."]})]}),(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",children:"DO NOT:"}),(0,t.jsxs)(eS,{children:[(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Use the UDC to submit posts that are NOT your final entry."})," ","Don't tag your sneak peeks, WIPs, close ups, and other non-final entry posts with the contest hashtag. This clutters up the Browse page and makes it difficult for us to find your actual final entries. If you would like to show close ups and detail shots, please include them as part of your main entry post."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Change or add to your design after entry submission has closed."}),"Any additional artwork submitted afterwards will not be considered."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Encourage other people to repost your design to show support."}),"This makes it harder to find your original post, as well as cluttering up the UDC Browse page."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Host giveaways in exchange for likes/comments/reposts on your entry."})," ","People should be leaving likes and comments because they enjoy your design, not because they might win something from you. Members who host giveaways in exchange for likes and comments on their entries will be disqualified from the contest."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Remake existing items, especially ones that are valuable or high rarity."})," ","Items that are too similar to existing ones may be excluded from the final grab, but will not disqualify an entire design."]}),(0,t.jsxs)(o.HCh,{regular:!0,size:"15",color:"fishbase03",children:[(0,t.jsx)(o.Drx,{bold:!0,children:"Resubmit entries from past contests."})," Think of each contest as an opportunity to practice and improve your design skills. While resubmitted designs are allowed, these designs have a much lower chance of being selected."]})]})]})}]},{title:"“Inspired By” Item Attributions",content:(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Highrise is a talented and creative community. We love to collaborate with players to design items for our world, and we'll always attribute player-inspired items to their designer. There are two ways that we find and feature players' creations."}),(0,t.jsxs)(ev,{children:[(0,t.jsxs)(o.HCh,{css:{listStylePosition:"inside"},children:[(0,t.jsx)(o.Drx,{bold:!0,size:"15",color:"fishbase03",children:"Design Contest Winners"}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"We frequently host official design competitions; you can learn more in the FAQ under “Highrise Competitions and Rules.” When a player wins a design competition and we make their items in the game, we'll make an attribution note on the bottom of the item preview. This note will say “Inspired by” with a link to the designer's username. If an item you designed is missing attribution, reach out to our Concierge team to update it. Please include the contest and event the item is from and whether it was released in a grab, shop collection, or event rewards."})]}),(0,t.jsxs)(o.HCh,{css:{listStylePosition:"inside"},children:[(0,t.jsx)(o.Drx,{bold:!0,size:"15",color:"fishbase03",children:"Other player-inspired items"}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"Sometimes we discover an outstanding player-designed item outside of a competition. It might be a random drawing, or a competition entry didn't make it into a grab. If we decide to add one of these items to the game, we'll reach out to notify the player directly, and they'll receive compensation when the item is released. These items will also get a note of attribution at the bottom of the item preview."})]})]}),(0,t.jsx)(o.xvT,{bold:!0,size:"15",color:"fishbase03",children:"What to do if you think Highrise used a design without crediting the player"}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"An item will only have an attribution note if it was designed or inspired by a player; all other items are designed by artists on our staff. It's not unusual for our art team and our players to find inspiration in similar trends and create similar designs independently by complete coincidence- this phenomenon is sometimes called parallel thinking. Most of the time, our staff isn't aware of players' designs when developing items, and draw inspiration from and reference sources outside of the app such as fashion retailers, photos and illustrations on Pinterest and Instagram, Google image search, and even real life. In this case, a player who designs a similar item isn't entitled to any type of compensation or attribution."}),(0,t.jsx)(o.xvT,{size:"15",color:"fishbase03",children:"If you find an item in the game appears to be directly inspired by a player but doesn't have proper attribution, please contact our Concierge team! Our Concierge team and staff artists will review these reports and determine if attribution is due or if it's an instance of parallel thinking. Our staff respects the creative community of Highrise, and will always give credit where it is due."})]})},{title:"Avatar Layering Guide",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.kCb,{css:{borderRadius:"$base",overflow:"hidden",borderBottomLeftRadius:"$none",borderBottomRightRadius:"$none"},children:(0,t.jsx)(k(),{alt:"Avatar Layering #1",src:"".concat(l.Vi.cdnAssetsURL,"/web/layering_1.png"),width:454,height:1249})}),(0,t.jsx)(o.kCb,{css:{borderRadius:"$base",overflow:"hidden",borderTopLeftRadius:"$none",borderTopRightRadius:"$none"},children:(0,t.jsx)(k(),{alt:"Avatar Layering #2",src:"".concat(l.Vi.cdnAssetsURL,"/web/layering_2.png"),width:584,height:1250})})]})}],ek=(0,o.zop)(o.Drx,{display:"flex",flexShrink:0,width:16,height:16,color:"$fishbase03"}),ez=(0,o.zop)(o.kCb,{color:"$fishbase03",fontSize:"$15",rowGap:"$2",paddingLeft:"$4",variants:{isChildContent:{true:{rowGap:0,paddingLeft:0}}}}),eN=(0,o.zop)(o.Z0O,{opacity:.1,marginBottom:"$2",backgroundColor:"white"}),e$=e=>{let{title:s,children:i,isChildContent:n=!1}=e,[a,l]=(0,r.useState)(!1);return(0,t.jsxs)(o.zF9,{open:a,onOpenChange:l,children:[(0,t.jsx)(o.wy4,{asChild:!0,children:(0,t.jsxs)(o.zxk,{default:!0,css:{display:"flex",justifyContent:"space-between",width:"100%",margin:"$2 0",color:n?"$fishbase03":"$fishbase02"},children:[(0,t.jsx)(o.Drx,{children:s}),(0,t.jsx)(ek,{children:a?(0,t.jsx)(y.JZ,{}):(0,t.jsx)(y.N_,{})})]})}),(0,t.jsx)(o.FwI,{asChild:!0,children:(0,t.jsxs)(ez,{direction:"column",isChildContent:n,children:[n&&(0,t.jsx)(eN,{}),i]})})]})},eT=(0,o.zop)(o.kCb,{rowGap:"$4",padding:"$4",marginTop:"$4",borderRadius:"12px"}),eD=()=>(0,t.jsxs)(eT,{center:!0,direction:"column",children:[(0,t.jsx)(o.xvT,{align:"center",color:"fishbase02",children:"Don't see what you're looking for?"}),(0,t.jsx)(o.zxk,{as:o.rUS,fullWidth:!0,rounded:"xl",href:"mailto:[email protected]",css:{"&:hover":{color:"$fishbase09"}},children:"Contact Support"})]}),eU=(0,o.zop)(o.kCb,{alignSelf:"center",position:"relative",flexDirection:"column",width:"100%",height:"100%",minHeight:"86px",maxWidth:"420px",backgroundColor:"$fishbase07",borderRadius:"$3xl",padding:"$4"}),eL=()=>(0,t.jsxs)(eU,{id:"udc-faq",children:[(0,t.jsxs)(o.kCb,{css:{justifyContent:"space-between"},children:[(0,t.jsx)(o.X6q,{color:"accentPrimary",css:{marginBottom:"$4"},children:"FAQ"}),(0,t.jsx)(o.rUS,{bold:!0,decorated:!0,variant:"accentPrimary",href:"https://support.highrise.game/en/collections/6121965-highrise-compet
1itions-rules",target:"_blank",rel:"noopener",css:{marginBottom:"$4"},children:"Link"})]}),(0,t.jsx)(o.Z0O,{css:{backgroundColor:"#FFFFFF1A",marginBottom:"$2"}}),eI.map((e,s)=>{var i,n;return(0,t.jsx)(e$,{title:e.title,children:(null===(i=e.subcontent)||void 0===i?void 0:i.length)?null===(n=e.subcontent)||void 0===n?void 0:n.map((e,i)=>(0,t.jsx)(e$,{title:e.title,isChildContent:!0,children:e.content},"udc.faq.".concat(s,".").concat(i))):(0,t.jsx)(o.xuv,{css:{marginLeft:"-$4"},children:e.content})},"udc.faq.".concat(s))}),(0,t.jsx)(eD,{})]}),eE=()=>{let{contest:{infoBox1:e,infoBox2:s,contestRules:i}}=p();return(0,t.jsx)(t.Fragment,{children:[e,s,i].map((e,s)=>e&&(0,t.jsxs)(eU,{children:[(0,t.jsx)(o.X6q,{color:"accentPrimary",css:{marginBottom:"$4"},children:e.title}),(0,t.jsx)(o.Z0O,{css:{backgroundColor:"#FFFFFF1A",marginBottom:"$2"}}),(0,t.jsx)(o.xvT,{color:"fishbase03",size:"15",css:{whiteSpace:"pre-wrap"},children:e.content})]},"udc.info.".concat(s)))})},eO=o.vc.theme.colors.fishbase05,eA=o.vc.theme.colors.accentPrimary,eF=o.vc.theme.colors.accentPrimary25,eR=e=>{let{currentStage:s,hasFinalistStage:i=!0}=e;return(0,t.jsx)("svg",{width:"100%",height:"100%",viewBox:"15 10 390 30",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{transform:"translate(".concat(i?0:"45",")"),children:[(0,t.jsx)(o.DY3,{content:"Accepting Submissions",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"16",y:"12",width:"24",height:"24",rx:"8",fill:s>=a.Uci.SUBMISSION?s===a.Uci.SUBMISSION?eA:eF:eO}),(0,t.jsx)("path",{d:"M33.6986 17.4301L34.5561 18.2884C34.8423 18.575 35 18.9563 35 19.3618C35 19.7673 34.8423 20.1486 34.5561 20.435L34.2132 20.7782C33.8226 21.1693 33.1888 21.1693 32.7982 20.7782L31.2099 19.1882C30.8199 18.7978 30.8199 18.1652 31.2099 17.7748L31.5543 17.4301C32.1267 16.8569 33.1255 16.8564 33.6986 17.4301ZM28.7023 20.2961C29.0937 19.9097 29.7237 19.9119 30.1124 20.301L31.7007 21.891C32.0927 22.2834 32.0904 22.9199 31.6957 23.3095L25.7307 29.1975C25.4813 29.4437 25.1716 29.62 24.8326 29.7088L21.7823 30.5081C21.7581 30.5142 21.7333 30.5172 21.7089 30.5172C21.6295 30.5172 21.5519 30.4856 21.495 30.4286C21.4197 30.3532 21.3894 30.2434 21.4149 30.1401L22.2098 27.1001C22.3008 26.7523 22.4838 26.4354 22.7396 26.1828L28.7023 20.2961Z",fill:"#2F2D3D"})]})}),(0,t.jsx)("rect",{x:"48",y:"21.5",width:"51",height:"5",rx:"2.5",fill:s>a.Uci.SUBMISSION?eF:"#F1F3F726"}),(0,t.jsx)(o.DY3,{content:"Voting for Finalists",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"107",y:"12",width:"24",height:"24",rx:"8",fill:s>=a.Uci.PRELIMINARY_VOTING?s===a.Uci.PRELIMINARY_VOTING?eA:eF:eO}),(0,t.jsx)("path",{d:"M121.914 18.8C120.712 18.8 119.651 19.3935 119 20.3006C118.349 19.3935 117.288 18.8 116.086 18.8C114.106 18.8 112.5 20.4053 112.5 22.3864C112.5 22.6669 112.536 22.9388 112.597 23.2008C113.095 26.2947 116.534 29.5587 119 30.4549C121.465 29.5587 124.905 26.2947 125.403 23.2012C125.464 22.9391 125.5 22.6673 125.5 22.3864C125.5 20.4056 123.894 18.8 121.914 18.8Z",fill:"#2F2D3D"})]})}),(0,t.jsx)("rect",{x:"139",y:"21.5",width:"51",height:"5",rx:"2.5",fill:s>a.Uci.PRELIMINARY_VOTING?eF:"#F1F3F726"}),(0,t.jsx)(o.DY3,{content:"Selecting Finalists",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"198",y:"12",width:"24",height:"24",rx:"12",fill:s>=a.Uci.FINALIST_SELECTION?s===a.Uci.FINALIST_SELECTION?eA:eF:eO}),(0,t.jsx)("path",{fillRule:"evenodd",d:"M203 24C203 27.866 206.134 31 210 31C213.866 31 217 27.866 217 24C217 20.134 213.866 17 210 17C206.134 17 203 20.134 203 24ZM210.493 19.8834C210.436 19.386 210.013 19 209.5 19C208.948 19 208.5 19.4477 208.5 20V24.5L208.507 24.6166C208.564 25.114 208.987 25.5 209.5 25.5H213L213.117 25.4933C213.614 25.4355 214 25.0128 214 24.5L213.993 24.3834C213.936 23.886 213.513 23.5 213 23.5H210.5V20L210.493 19.8834Z",fill:"#2F2D3D"})]})}),(0,t.jsx)("rect",{x:"230",y:"21.5",width:"51",height:"5",rx:"2.5",fill:s>a.Uci.FINALIST_SELECTION?eF:"#F1F3F726"}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.DY3,{content:"Voting for Winners",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"289",y:"12",width:"24",height:"24",rx:"8",fill:s>=a.Uci.FINALIST_VOTING?s===a.Uci.FINALIST_VOTING?eA:eF:eO}),(0,t.jsx)("path",{d:"M301 28.0745L298.091 29.5957C297.548 29.8797 296.876 29.672 296.591 29.1319C296.477 28.9168 296.438 28.6704 296.479 28.4309L297.035 25.2089L294.681 22.927C294.242 22.5011 294.233 21.8015 294.661 21.3645C294.832 21.1905 295.055 21.0772 295.297 21.0423L298.549 20.5722L300.004 17.6407C300.275 17.0935 300.941 16.8688 301.492 17.1389C301.711 17.2464 301.888 17.4228 301.996 17.6407L303.451 20.5722L306.703 21.0423C307.31 21.1301 307.731 21.6908 307.643 22.2947C307.608 22.5352 307.494 22.7574 307.319 22.927L304.965 25.2089L305.521 28.4309C305.625 29.0324 305.218 29.6036 304.614 29.7067C304.373 29.7478 304.125 29.7088 303.909 29.5957L301 28.0745Z",fill:"#2F2D3D"})]})}),(0,t.jsx)("rect",{x:"321",y:"21.5",width:"51",height:"5",rx:"2.5",fill:s>=a.Uci.WINNERS_SELECTION?eF:"#F1F3F726"})]}),(0,t.jsxs)("g",{transform:"translate(".concat(i?"0":"-90",")"),children:[(0,t.jsx)(o.DY3,{content:"Winners Announced",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"380",y:"12",width:"24",height:"24",rx:"8",fill:s>=a.Uci.WINNERS_ANNOUNCED?s===a.Uci.WINNERS_ANNOUNCED?eA:eF:eO}),(0,t.jsx)("path",{d:"M397.729 24.9117L398.542 20.6048C398.552 20.5635 397.659 21.0005 397.659 21.0005L396.571 22.1554C396.295 22.4493 395.926 22.6111 395.535 22.6111C395.075 22.6111 394.636 22.3776 394.361 21.9865L392.502 19.3336H391.536L389.641 21.9924C389.365 22.3798 388.928 22.6111 388.469 22.6111C388.081 22.6111 387.702 22.4435 387.429 22.1512L386.348 20.9949C386.348 20.9949 385.374 20.5623 385.384 20.6048L386.285 24.9524C386.382 25.4175 386.792 25.7506 387.267 25.7495L396.748 25.7261C397.228 25.7249 397.64 25.3832 397.729 24.9117ZM396.491 27.1212C397.043 27.1212 397.491 27.5689 397.491 28.1212V28.2121C397.491 28.7644 397.043 29.2121 396.491 29.2121H387.553C387 29.2121 386.553 28.7644 386.553 28.2121V28.1212C386.553 27.5689 387 27.1212 387.553 27.1212H396.491Z",fill:"#2F2D3D"})]})}),(0,t.jsx)("circle",{cx:"385.78",cy:"20.5",r:"1",fill:"#2F2D3D"}),(0,t.jsx)("circle",{cx:"392",cy:"18.5",r:"1",fill:"#2F2D3D"}),(0,t.jsx)("circle",{cx:"398.25",cy:"20.5",r:"1",fill:"#2F2D3D"})]})]})})},e_=()=>{let{hasFinalistStage:e,contest:{currentStage:s,currentStageEndsAt:i}}=p(),n=(0,C.h)(),r=(e?a.RIE:a.Zz0)[s],l=s===a.Uci.SUBMISSION,c=s===a.Uci.PRELIMINARY_VOTING||s===a.Uci.FINALIST_VOTING;return(0,t.jsxs)(eU,{children:[(0,t.jsxs)(o.kCb,{css:{justifyContent:"space-between"},children:[(0,t.jsx)(o.X6q,{color:s>a.Uci.NOT_STARTED?"accentPrimary":"fishbase03",children:r.title}),(0,t.jsx)(o.kCb,{css:{color:"$fishbase03",fontWeight:300},children:(0,t.jsx)(eh,{currentStageEndsAt:i})})]}),(0,t.jsx)(o.Z0O,{variant:"fishbase06",css:{marginTop:"$4"}}),(0,t.jsx)(o.xvT,{color:"fishbase03",size:"15",css:{marginTop:"$2",whiteSpace:"pre-wrap"},children:r.description}),(0,t.jsx)(o.kCb,{css:{alignSelf:"center",width:"100%",padding:0,marginTop:"$6",marginBottom:l||c?"$6":"0"},children:(0,t.jsx)(eR,{currentStage:s,hasFinalistStage:e})}),l&&(0,t.jsx)(o.zxk,{onClick:()=>{var e;let s=document.getElementById("udc-faq");s&&(null===(e=n?window:document.getElementById("scroll-viewport"))||void 0===e||e.scroll({top:(null==s?void 0:s.offsetTop)-700,left:0,behavior:"smooth"}))}
1,rounded:"xl",children:"Upload Design"}),c&&(0,t.jsx)(o.drW,{default:!0,children:(0,t.jsx)(o.SPt,{value:a.iY2.BROWSE,css:{maxWidth:"unset"},children:(0,t.jsx)(o.zxk,{as:o.Drx,fullWidth:!0,rounded:"xl",children:"Go Vote!"})})})]})},eH=()=>{let{contest:{currentStage:e,templateUrl:s},downloadTemplate:i}=p(),n="".concat(l.Vi.cdnAssetsURL,"/contests/UDCDefaultTemplate.webp");return e>a.Uci.SUBMISSION||!s?null:(0,t.jsxs)(eU,{css:{overflow:"hidden"},children:[(0,t.jsx)(o.kCb,{css:{margin:"-$4",marginBottom:"$4"},children:(0,t.jsx)(o.JG3,{alt:"User Design Contest Template",src:s,fallbackSrc:n,width:496,height:496})}),(0,t.jsx)(o.zxk,{onClick:i,children:"Download Template"})]})};var eG=i(2164);let eW=(0,o.zop)(o.kCb,{alignSelf:"center",width:"118px",height:"118px",color:"$accentPrimary"}),eP=(0,o.zop)(o.QI$,{display:"flex",flexDirection:"column",listStyle:"outside",marginLeft:"$8",rowGap:"$3"}),eV=e=>{let{onAcceptRules:s}=e;return(0,t.jsxs)(o.VqE,{children:[(0,t.jsx)(o.hgM,{asChild:!0,children:(0,t.jsx)(o.zxk,{fullWidth:!0,children:"Upload my design"})}),(0,t.jsxs)(o.cZJ,{children:[(0,t.jsx)(o.$N8,{children:"Wait a sec!"}),(0,t.jsx)(o.iKN,{}),(0,t.jsxs)(o.kCb,{direction:"column",children:[(0,t.jsx)(eW,{children:(0,t.jsx)(y.Ii,{})}),(0,t.jsxs)(o.kCb,{direction:"column",css:{margin:"$6 0",rowGap:"$4"},children:[(0,t.jsx)(o.xvT,{muted:!0,size:"15",align:"center",children:"Is your entry totally original and within PG-13 content guidelines? You may be disqualified if your design:"}),(0,t.jsxs)(eP,{children:[(0,t.jsx)(o.HCh,{muted:!0,children:"Contains graphic sexual or violent imagery"}),(0,t.jsx)(o.HCh,{muted:!0,children:"Copied from another artist, or depicts copyrighted material"})]}),(0,t.jsx)(o.xvT,{muted:!0,size:"15",align:"center",children:"Remember, all winning designs are subject to modification by Highrise staff. Check the FAQ for more details!"})]}),(0,t.jsxs)(o.kCb,{direction:"column",css:{rowGap:"$2"},children:[(0,t.jsx)(o.hgM,{asChild:!0,children:(0,t.jsx)(o.zxk,{onClick:s,children:"Got it"})}),(0,t.jsx)(o.hgM,{asChild:!0,children:(0,t.jsx)(o.zxk,{default:!0,size:"base",css:{textAlign:"center"},children:"Cancel"})})]})]})]})]})},eM=["image/jpeg","image/jpg","image/png","image/webp"],eB=()=>{let{isUserLoggedIn:e,userSubmissions:s,contest:{maxSubmissions:i}}=p(),[n,l]=(0,r.useState)(!0),[d,h]=(0,r.useState)(!1),u=s.length<i,{addUserSubmission:g,contest:{contestId:m,currentStage:x}}=p(),{mutateAsync:f,isLoading:b}=(0,a.$8V)({onSuccess:e=>{e.error?y(e.error):(h(!1),c.ZP.success("Design Submitted!"))},onError:()=>{y()}}),j=async e=>{if(e.length){let s=await f({contest_id:m,file_urls:e});s.submission&&g(s.submission)}else y()},y=e=>{c.ZP.error(null!=e?e:"Something went wrong while creating your submission.")};return x!==a.Uci.SUBMISSION?null:(0,t.jsxs)(eU,{id:"upload-submission",children:[(0,t.jsx)(o.X6q,{color:"accentPrimary",children:"\uD83D\uDCE9 Ready to submit your design?"}),(0,t.jsx)(o.xvT,{muted:!0,size:"15",css:{margin:"$2 0 $4"},children:"Upload a picture of your design from your Camera Roll. Your design will be shared with the community to vote on!"}),!u&&(0,t.jsx)(o.xvT,{muted:!0,bold:!0,align:"center",children:"You have reached the maximum number of submissions"}),u&&(e?n?(0,t.jsx)(eV,{onAcceptRules:()=>{l(!1),h(!0)}}):(0,t.jsx)(eG.i,{canPreview:!0,open:d,title:"Upload Submission",uploadKey:"".concat(eG.V.UDC_SUBMISSION,"/").concat(m),maxFiles:5,maxFileSize:1e6,allowedFileTypes:eM,onOpenChange:h,onUploadSuccess:j,onUploadError:y,children:(0,t.jsx)(o.zxk,{fullWidth:!0,children:"Upload my design"})}):(0,t.jsx)(R.ol,{children:(0,t.jsx)(o.zxk,{fullWidth:!0,children:"Login to upload"})})),b&&(0,t.jsx)(o._92,{open:b,isToggleable:!1,children:"Creating submission"})]})},eY=()=>(0,t.jsxs)(es,{value:a.iY2.INFO,css:{maxWidth:"420px"},children:[(0,t.jsx)(e_,{}),(0,t.jsx)(eH,{}),(0,t.jsx)(eE,{}),(0,t.jsx)(eB,{}),(0,t.jsx)(eL,{})]}),eq=()=>{let{userSubmissions:e}=p();return e.length?(0,t.jsx)(es,{value:a.iY2.MY_SUBMISSIONS,children:(0,t.jsx)(Q,{submissions:e},e.length)}):null},eZ=()=>{let{userVotes:e,userFinalistVotes:s}=p();return(0,t.jsxs)(es,{value:a.iY2.MY_VOTES,children:[(0,t.jsx)(K,{title:s.length?"Votes":void 0,submissions:e}),(0,t.jsx)(K,{title:e.length?"Finalist Votes":void 0,submissions:s})]})},eJ=()=>{let{activePage:e,isLoading:s,contest:{title:i,bannerUrl:n,backgroundColor:l,currentStage:c,currentStageEndsAt:d},onPageChange:u}=p(),{udc:g}=(0,h.ye)(),m=a.RIE[c],x=(0,r.useMemo)(()=>{switch(c){case a.Uci.SUBMISSION:return(0,t.jsx)(w.U3,{});case a.Uci.FINALIST_VOTING:return(0,t.jsx)(y.GK,{});case a.Uci.PRELIMINARY_VOTING:return(0,t.jsx)(y.AU,{});case a.Uci.FINALIST_SELECTION:case a.Uci.WINNERS_SELECTION:return(0,t.jsx)(y.jo,{});case a.Uci.WINNERS_ANNOUNCED:return(0,t.jsx)(y.rr,{});default:return null}},[c]);return g&&void 0!==c?(0,t.jsxs)(ee,{value:e,onValueChange:e=>u(e),children:[(0,t.jsxs)(o.kCb,{direction:"column",css:{position:"sticky",top:0,zIndex:"$docked"},children:[(0,t.jsx)(ef,{title:i,bannerUrl:n,badgeText:m.status,bannerColor:l,badgeVariant:m.statusColor,badgeIcon:x,isContestEnded:c===a.Uci.WINNERS_ANNOUNCED,currentStageEndsAt:d}),(0,t.jsx)(eC,{})]}),(0,t.jsxs)(ei,{children:[(0,t.jsx)(eY,{}),(0,t.jsx)(er,{}),(0,t.jsx)(eZ,{}),(0,t.jsx)(eq,{})]}),s&&(0,t.jsx)(et,{center:!0,css:{pointerEvents:"none"},children:(0,t.jsx)(o.SX,{text:"Loading ".concat(i)})})]}):null};var eX=!0;let eQ=()=>{var e;let{contest_id:s}=(0,n.useRouter)().query,{data:i,refetch:c}=(0,a.PfL)({contest_id:s},{enabled:!1}),d=null==i?void 0:i.contest,h=null!==(e=null==d?void 0:d.title)&&void 0!==e?e:"User Design Contest";return(0,r.useEffect)(()=>{s&&c&&c()},[s,c]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Hl,{title:"".concat(h," • Highrise"),description:"".concat(h," Information")}),(0,t.jsx)(o.VYI,{children:!!d&&(0,t.jsx)(j,{contest:d,children:(0,t.jsx)(eJ,{})})})]})};var eK=eQ}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=51566)}),_N_E=e.O()}]);

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.