PageSourceSearch

https://www.partake.gg/_next/static/chunks/pages/spotlight-5a87cdb431d4dd08.js

js partake.gg collected 2026-10-04 08:12:56 UTC 31,786 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6236],{94070:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/spotlight",function(){return a(54855)}])},82416:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var s=a(52322),n=a(75078),i=a(19783),l=a(39097),r=a.n(l),c=a(96505);function o(){return(0,s.jsx)(r(),{legacyBehavior:!0,href:"/teams/new",passHref:!0,children:(0,s.jsx)("a",{children:(0,s.jsx)(i.u,{label:"Create a new team",children:(0,s.jsx)(n.q,{bg:"ui.5",icon:(0,s.jsx)(c.Z,{fill:"ui.40"}),_hover:{bg:"ui.10"}})})})})}},57602:function(e,t,a){"use strict";a.d(t,{z:function(){return i}});var s=a(52322),n=a(11664);let i=e=>{let{children:t,className:a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("max-w-[1440px] min-h-screen w-full overflow-visible mt-8 px-2 lg:px-4",a),children:t})}},36032:function(e,t,a){"use strict";a.d(t,{Fb:function(){return l},Wg:function(){return c},bi:function(){return o},xj:function(){return r}});var s=a(52322),n=a(11664);let i=[{value:"WHITE",label:"White",swatch:"bg-white"},{value:"BLACK",label:"Black",swatch:"bg-black"}],l=e=>"BLACK"===e?"text-black":"text-white",r="font-semibold leading-tight tracking-normal",c="font-medium normal-case leading-normal tracking-normal",o=e=>{let{value:t,onChange:a,label:l="Text colour"}=e;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-ui/40",children:l}),(0,s.jsx)("div",{className:"inline-flex rounded-md bg-black/20 p-1",role:"group","aria-label":l,children:i.map(e=>(0,s.jsxs)("button",{type:"button","aria-pressed":t===e.value,className:(0,n.cn)("inline-flex items-center gap-1.5 rounded px-2 py-1 text-xs font-semibold transition-colors",t===e.value?"bg-ui/15 text-ui":"text-ui/35 hover:bg-ui/[0.07] hover:text-ui/60"),onClick:()=>a(e.value),children:[(0,s.jsx)("span",{className:(0,n.cn)("size-3 rounded-full ring-1 ring-ui/25",e.swatch)}),e.label]},e.value))})]})}},73579:function(e,t,a){"use strict";a.d(t,{K:function(){return n},_:function(){return i}});var s=a(2784);let n=e=>{let t=new Date,a=new Date(e.startsAt),s=new Date(e.endsAt);return t<a?"upcoming":t>s?"past":"now"},i=()=>{let[e,t]=(0,s.useState)(!1),a=(0,s.useCallback)(()=>t(!0),[]),n=(0,s.useCallback)(()=>t(!1),[]);return{interactionProps:(0,s.useMemo)(()=>({onBlurCapture:n,onFocusCapture:a,onMouseEnter:a,onMouseLeave:n}),[a,n]),isImagePlaying:e}}},75918:function(e,t,a){"use strict";a.d(t,{l:function(){return x}});var s=a(52322),n=a(54368),i=a(62650),l=a(21820),r=a(79872),c=a(32437),o=a(97573),d=a(54933),m=a(67732),u=a(11664),h=a(74803),p=a(73579);let x=e=>{var t;let{event:a,disableNavigation:x=!1}=e,{interactionProps:g,isImagePlaying:b}=(0,p._)();if(!a)return(0,s.jsx)("div",{className:"w-full h-full shrink-0 aspect-4/3 overflow-hidden bg-ui/5"});let j=null===(t=a.attachmentIds)||void 0===t?void 0:t[0],v=!!j,f=(0,p.K)(a),N=new Date,y=(0,u.cn)("block w-full cursor-pointer relative group rounded-md h-full shrink-0 aspect-4/3 overflow-hidden bg-center bg-cover items-end"),w=(0,s.jsxs)("div",{className:"h-full w-full",children:[v?(0,s.jsx)("div",{className:"absolute inset-0 aspect-video overflow-hidden rounded-md pointer-events-none group-hover:brightness-110 transition-all mask-b-from-66% mask-b-to-100% motion-reduce:transition-none",children:(0,s.jsx)(h.AR,{alt:"",assetId:j,cdnOptions:{w:512},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",play:b,onError:e=>{e.target.src="/image-unavailable.png"},className:"absolute aspect-video w-full h-full object-cover object-center transition-all -z-20 motion-reduce:transition-none"})}):(0,s.jsx)("div",{className:"absolute inset-0 bg-ui/5 rounded-md flex items-center justify-center",children:(0,s.jsx)(m.G,{icon:d.Td5,className:"size-8 text-ui/60"})}),(0,s.jsxs)("div",{className:"relative z-30 flex w-full h-full justify-between flex-col bg-gradient-to-t from-black/90 via-black/35 to-transparent p-5",children:[(0,s.jsx)("div",{className:"flex flex-col gap-4 w-full items-start",children:"now"!==f&&(0,s.jsxs)(r.V,{className:"z-10 py-1 border-none bg-ui-light/40 backdrop-blur-sm",children:["upcoming"===f&&(0,s.jsx)("p",{className:"paragraph-md text-ui",children:(0,i.Z)(new Date(a.startsAt),"PPp").replace("".concat(N.getFullYear(),", "),"")}),"past"===f&&(0,s.jsx)("p",{className:(0,u.cn)("label-md",v?"text-ui-dark/60":"text-ui/60"),children:(0,l.Z)(new Date(a.endsAt),{addSuffix:!0})})]})}),(0,s.jsx)("div",{className:"flex flex-col gap-3 cursor-pointer items-start rounded-md",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2 items-start text-white transition-all",children:[(0,s.jsx)("span",{className:"label-md line-clamp-1 text-white",children:a.title}),(0,s.jsx)(n.g,{icon:(0,s.jsx)(o.e,{icon:d.opg,className:"size-4"}),children:(0,s.jsxs)("span",{className:"paragraph-md line-clamp-1 text-white/90",children:[a.locationId&&a.locationData.server&&(0,s.jsx)("strong",{className:"mr-2",children:a.locationData.server.name}),a.location]})})]})})]})]});return x?(0,s.jsx)("div",{className:y,...g,children:w}):(0,s.jsx)(c.p,{href:"/events/".concat(a.id),className:y,...g,children:w})}},54368:function(e,t,a){"use strict";a.d(t,{g:function(){return i}});var s=a(52322),n=a(11664);let i=(0,a(2784).forwardRef)(function(e,t){let{icon:a,className:i,children:l}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("flex items-center gap-2",i
1),ref:t,children:[a,l]})})},80990:function(e,t,a){"use strict";a.d(t,{K:function(){return l},O:function(){return i}});var s=a(52322),n=a(17993);let i=e=>{let{children:t,...a}=e;return(0,s.jsx)(n.g,{align:"start",spacing:"5",w:"full",...a,children:t})},l=e=>{let{children:t}=e;return(0,s.jsx)(n.g,{align:"start",spacing:"3",w:"full",children:t})}},30210:function(e,t,a){"use strict";a.d(t,{t:function(){return u}});var s=a(52322),n=a(17993),i=a(77533),l=a(12802);a(2784);var r=a(80990),c=a(58457),o=a(97143),d=a(38914),m=a(67732);let u=e=>{let{title:t="Join the Discord",description:a="Keep up to date with our team and creators using Partake by joining the Partake Discord Community!",buttonLabel:u="Join the Community",linkHeading:h=!1}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(r.O,{children:[(0,s.jsx)(c.J,{icon:(0,s.jsx)(m.G,{icon:o.omb,className:"text-[#5865F2] size-5"}),children:h?(0,s.jsxs)("a",{href:"https://discord.gg/zDUJEGzhPW",className:"inline-flex items-center gap-2 transition-colors hover:text-primary-400",rel:"noreferrer",target:"_blank",children:[t,(0,s.jsx)(m.G,{icon:d.eFW,className:"size-3.5"})]}):t}),(0,s.jsxs)(n.g,{align:"start",spacing:"4",children:[(0,s.jsx)(i.x,{textStyle:"paragraph.md",children:a}),!h&&(0,s.jsx)("a",{href:"https://discord.gg/zDUJEGzhPW",className:(0,l.P_)("primary"),rel:"noreferrer",target:"_blank",children:u})]})]})})}},58457:function(e,t,a){"use strict";a.d(t,{J:function(){return i}});var s=a(52322),n=a(11664);let i=e=>{let{children:t,icon:a,className:i}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("flex gap-2 items-center",i),children:[a,(0,s.jsx)("h3",{className:"label-md",children:t})]})}},22523:function(e,t,a){"use strict";a.d(t,{V:function(){return r}});var s=a(52322),n=a(11664),i=a(2784);let l="gap-1 flex rounded-full items-center transition-all border border-ui/10 px-[0.5rem] hover:bg-ui/5",r=(0,i.forwardRef)(function(e,t){let{onClick:a,className:i,children:r}=e;return(0,s.jsx)("div",{ref:t,className:i?(0,n.cn)(l,i):l,onClick:a,children:r})})},79872:function(e,t,a){"use strict";a.d(t,{V:function(){return s.V}}),a(52322),a(2784),a(1944);var s=a(22523)},97:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});var s=a(52322),n=a(19783),i=a(28535),l=a(89099),r=a(63367),c=a(25588),o=a(23621);function d(e){let{option:t,...a}=e,{getInputProps:l,getCheckboxProps:c}=(0,r.x)(a),d=c(),m=l();return(0,s.jsxs)(i.xu,{as:"label",children:[(0,s.jsx)("input",{...m}),(0,s.jsx)(i.xu,{...d,transition:"0.2s all",cursor:"pointer",borderRadius:"full",opacity:"0.4",_checked:{opacity:1},children:(0,s.jsx)(n.u,{label:t.name,children:(0,s.jsx)(o.w,{boxSize:"10",name:t.name,src:t.src})})})]})}function m(e){let{options:t,onChange:a,value:n,children:i}=e,{getRootProps:r,getRadioProps:o}=(0,c.a)({name:"teamId",value:n.toString(),onChange:a});return(0,s.jsxs)(l.E,{spacing:"3",...r(),children:[t.map(e=>{let t=o({value:e.key});return(0,s.jsx)(d,{option:e,...t},e.key)}),i]})}},6509:function(e,t,a){"use strict";a.d(t,{I:function(){return c}});var s=a(52322),n=a(47355),i=a(11664),l=a(97729),r=a.n(l);let c=e=>{let{title:t="Partake | Final Fantasy XIV Event Finder",description:a="Find any kind of event for Final Fantasy XIV and others on Partake!",canonicalUrl:l,...c}=e;return(0,s.jsx)(n.oM,{title:t,description:a,canonicalUrl:i.FH+(null!=l?l:""),image:"/icon.png",wrapper:r(),...c})}},96505:function(e,t,a){"use strict";var s=a(52322),n=a(21112);t.Z=(0,n.I)({viewBox:"0 0 448 512",path:(0,s.jsx)("path",{d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"})})},54855:function(e,t,a){"use strict";a.r(t);var s=a(52322),n=a(57602),i=a(12802),l=a(82416),r=a(36032),c=a(97),o=a(30210),d=a(75918),m=a(6509),u=a(54318),h=a(11664),p=a(70065),x=a(81540),g=a(24932),b=a(38914),j=a(67732),v=a(8151),f=a(42180),N=a(87686),y=a(70241),w=a(39097),k=a.n(w),C=a(5632),A=a(2784);let S={teamId:"",eventId:"",description:"",title:"",slogan:"",titleTextColor:"WHITE",sloganTextColor:"WHITE",hasAcceptedPartakeDiscretion:!1,hasConfirmedS
1potlightCooldown:!1,hasConfirmedAmbassadorContact:!1,hasAcceptedGuidelines:!1};async function I(e,t){let a=(0,h.O3)(),s=await fetch(a.endpoint,{method:"POST",...a.fetchParams,body:JSON.stringify({query:e,variables:t})}),n=await s.json();if(!s.ok||n.errors){var i,l,r;throw Error(null!==(r=null===(l=n.errors)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.message)&&void 0!==r?r:"Something went wrong.")}return n.data}let T=e=>{let{label:t,hint:a,required:n,children:i}=e;return(0,s.jsxs)("label",{className:"block",children:[(0,s.jsxs)("span",{className:"label-sm mb-2 flex items-baseline justify-between gap-3 text-ui/80",children:[(0,s.jsxs)("span",{children:[t,n&&(0,s.jsx)("span",{className:"ml-1 text-primary-500",children:"*"})]}),a&&(0,s.jsx)("span",{className:"paragraph-xs text-ui/35",children:a})]}),i]})},P="paragraph-sm h-11 w-full rounded-md border border-ui/10 bg-black/20 px-3 text-ui outline-none transition-colors placeholder:text-ui/30 focus:border-primary-500 focus:ring-2 focus:ring-primary-500/15",z=e=>{let{title:t,children:a}=e;return(0,s.jsxs)("section",{className:"rounded-xl bg-ui/[0.045] p-4 sm:p-6",children:[(0,s.jsx)("h2",{className:"heading-xs mb-6 text-ui",children:t}),a]})},E=e=>{let{previewUrl:t,title:a,slogan:n,titleTextColor:i,sloganTextColor:l}=e;return(0,s.jsxs)("div",{className:"relative aspect-[825/300] overflow-hidden rounded-lg bg-gradient-to-br from-[#3b0619] via-[#15030a] to-black",children:[t?(0,s.jsx)("img",{src:t,alt:"Your Banner Spotlight preview",className:"absolute inset-0 h-full w-full object-cover"}):(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-ui/15",children:(0,s.jsx)(j.G,{icon:b.VmB,className:"size-10"})}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 grid grid-cols-3 grid-rows-3 opacity-20",children:Array.from({length:9}).map((e,t)=>(0,s.jsx)("span",{className:"border border-cyan-300/70"},t))}),(0,s.jsxs)("div",{className:"absolute inset-y-0 left-[5%] flex w-[58%] flex-col justify-center",children:[(0,s.jsx)("h3",{className:"line-clamp-2 text-[clamp(0.8rem,3.2vw,1.65rem)] ".concat(r.xj," ").concat((0,r.Fb)(i)),children:a||"Your title will go here"}),(0,s.jsx)("p",{className:"mt-[3%] line-clamp-1 text-[clamp(0.5rem,1.8vw,0.8rem)] ".concat(r.Wg," ").concat((0,r.Fb)(l)),children:n||"Your slogan will go here"})]})]})},B=e=>new Promise((t,a)=>{let s=URL.createObjectURL(e),n=new Image;n.onload=()=>{t({width:n.naturalWidth,height:n.naturalHeight}),URL.revokeObjectURL(s)},n.onerror=()=>{a(Error("We couldn't read that image. Try a PNG, JPG, or WebP file.")),URL.revokeObjectURL(s)},n.src=s}),L=e=>new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(e)),D={SUBMITTED:{label:"Submitted",className:"bg-blue-500/15 text-blue-200"},REVIEWING:{label:"In review",className:"bg-amber-500/15 text-amber-200"},ACCEPTED:{label:"Accepted",className:"bg-green-500/15 text-green-200"},REJECTED:{label:"Not selected",className:"bg-red-500/15 text-red-200"}},G=e=>{let{isOpen:t,onClose:a,applications:n,isLoading:l,error:r}=e;return(0,s.jsx)(g.u_,{isOpen:t,onClose:a,children:(0,s.jsxs)(g.hz,{className:"!bg-background-300 relative max-h-[85vh] w-[min(92vw,760px)] max-w-[760px] overflow-hidden rounded-xl p-0",children:[(0,s.jsxs)("div",{className:"border-b border-ui/10 px-5 py-5 pr-16 sm:px-6",children:[(0,s.jsx)(y.Dx,{asChild:!0,children:(0,s.jsx)("h2",{className:"heading-sm text-ui",children:"My Applications"})}),(0,s.jsx)(y.dk,{asChild:!0,children:(0,s.jsx)("p",{className:"paragraph-sm mt-1 text-ui/45",children:"Track your Banner Spotlight submissions and their current status."})})]}),(0,s.jsx)("button",{type:"button","aria-label":"Close applications",className:(0,i.bG)("absolute right-5 top-5"),onClick:a,children:(0,s.jsx)(j.G,{icon:b.NBC,className:"size-4"})}),(0,s.jsx)("div",{className:"max-h-[calc(85vh-92px)] overflow-y-auto p-4 sm:p-6",children:l?(0,s.jsx)("div",{className:"flex min-h-48 items-center justify-center",children:(0,s.jsx)(x.$,{color:"white"})}):r?(0,s.jsx)("div",{className:"rounded-lg bg-red-500/10 p-5 text-sm text-red-200",children:"We couldn't load your applications. Please close this window and try again."}
1):0===n.length?(0,s.jsxs)("div",{className:"rounded-lg bg-ui/[0.045] px-5 py-10 text-center",children:[(0,s.jsx)("h3",{className:"label-md text-ui",children:"No applications yet"}),(0,s.jsx)("p",{className:"paragraph-sm mt-2 text-ui/45",children:"Your Banner Spotlight applications will appear here after you submit them."})]}):(0,s.jsx)("div",{className:"space-y-3",children:n.map(e=>{let t=D[e.status];return(0,s.jsxs)("article",{className:"rounded-xl bg-ui/[0.045] p-4 sm:p-5",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"label-md truncate text-ui",children:e.title}),(0,s.jsx)("p",{className:"paragraph-sm mt-1 truncate text-ui/45",children:e.event.title})]}),(0,s.jsx)("span",{className:"label-xs shrink-0 rounded-full px-2.5 py-1 ".concat(t.className),children:t.label})]}),(0,s.jsxs)("dl",{className:"paragraph-sm mt-4 grid gap-3 sm:grid-cols-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"overline-md text-ui/30",children:"Applying team"}),(0,s.jsx)("dd",{className:"mt-1 text-ui/65",children:e.team.name})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"overline-md text-ui/30",children:"Event date"}),(0,s.jsx)("dd",{className:"mt-1 text-ui/65",children:L(e.event.startsAt)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"overline-md text-ui/30",children:"Submitted"}),(0,s.jsx)("dd",{className:"mt-1 text-ui/65",children:L(e.createdAt)})]})]}),(0,s.jsxs)(k(),{href:"/events/".concat(e.event.id),className:"label-sm mt-4 inline-flex items-center gap-2 text-primary-400 hover:text-primary-300",children:["View event",(0,s.jsx)(j.G,{icon:b.eFW,className:"size-3"})]})]},e.id)})})})]})})};t.default=()=>{var e,t,a,h,g,y,w,L,D;let F=(0,C.useRouter)(),U=(0,p.p)(),{user:R}=(0,v.useAuth)(),{upload:q}=(0,u.i)(),O=(0,A.useRef)(null),[_,W]=(0,A.useState)(S),[M,J]=(0,A.useState)(null),[H,V]=(0,A.useState)(""),[K,Y]=(0,A.useState)(""),[Z,$]=(0,A.useState)(null),[X,Q]=(0,A.useState)(!1),ee=(0,f.a)({queryKey:["spotlight-application-teams",null==R?void 0:R.id],queryFn:()=>I("\n  query SpotlightApplicationTeams {\n    me {\n      memberOfTeams {\n        id\n        name\n        handle\n        iconUrl\n      }\n    }\n  }\n"),enabled:!!R}),et=Number(_.teamId),ea=(0,f.a)({queryKey:["spotlight-eligible-events",et],queryFn:()=>I("\n  query EligibleSpotlightEvents($teamId: Int!) {\n    eligibleBannerSpotlightEvents(teamId: $teamId) {\n      id\n      title\n      tags\n      attachmentIds\n      ageRating\n      location\n      locationId\n      locationData {\n        server {\n          name\n        }\n        dataCenter {\n          name\n        }\n      }\n      startsAt\n      endsAt\n      teamId\n      gameId\n      game {\n        id\n        name\n      }\n      visibility\n      ownerTeam {\n        id\n        name\n        handle\n        iconUrl\n      }\n    }\n  }\n",{teamId:et}),enabled:!!R&&Number.isInteger(et)&&et>0}),es=null!==(y=null===(e=ea.data)||void 0===e?void 0:e.eligibleBannerSpotlightEvents)&&void 0!==y?y:[],en=null!==(w=es.find(e=>e.id===Number(_.eventId)))&&void 0!==w?w:null,ei=(0,f.a)({queryKey:["my-banner-spotlight-applications",null==R?void 0:R.id],queryFn:()=>I("\n  query MyBannerSpotlightApplications {\n    myBannerSpotlightApplications {\n      id\n      title\n      status\n      createdAt\n      team {\n        id\n        name\n        handle\n        iconUrl\n      }\n      event {\n        id\n        title\n        startsAt\n        endsAt\n        visibility\n        ownerTeam {\n          id\n          name\n          handle\n          iconUrl\n        }\n      }\n    }\n  }\n"),enabled:!!R&&X});(0,A.useEffect)(()=>()=>{H&&URL.revokeObjectURL(H)},[H]),(0,A.useEffect)(()=>{var e,t;let a=null!==(t=null===(e=ee.data)||void 0===e?void 0:e.me.memberOfTeams)&&void 0!==t?t:[];!_.teamId&&a.length>0&&W(e=>({...e,teamId:a[0].id.toString(),eventId:""}))},[_.teamId,null===(t=ee.data)||void 0===t?void 0:t.me.memberOfTeams]);let el=(e,t)=>
1W(a=>({...a,[e]:t})),er=async e=>{var t;let a=null===(t=e.target.files)||void 0===t?void 0:t[0];if(e.target.value="",a){if(Y(""),!["image/png","image/jpeg","image/webp"].includes(a.type)){Y("Use a static PNG, JPG, or WebP image.");return}if(a.size>52428800){Y("Banner images must be smaller than 50 MB.");return}try{let e=await B(a);if(825!==e.width||300!==e.height){Y("This image is ".concat(e.width," \xd7 ").concat(e.height,". Banner images must be exactly 825 \xd7 300."));return}H&&URL.revokeObjectURL(H),J(a),V(URL.createObjectURL(a))}catch(e){Y(e.message)}}},ec=(0,N.D)({mutationFn:async()=>{if(!M)throw Error("Upload your 825 \xd7 300 banner image.");if(!en)throw Error("Choose an eligible event for the selected team.");let e=await q(M);return(await I("\n  mutation SubmitBannerSpotlightApplication($input: BannerSpotlightApplicationInput!) {\n    submitBannerSpotlightApplication(input: $input) {\n      id\n      status\n      createdAt\n    }\n  }\n",{input:{teamId:et,eventId:en.id,description:_.description.trim(),title:_.title.trim(),slogan:_.slogan.trim(),titleTextColor:_.titleTextColor,sloganTextColor:_.sloganTextColor,bannerResourceId:e.id,hasAcceptedPartakeDiscretion:_.hasAcceptedPartakeDiscretion,hasConfirmedS
1potlightCooldown:_.hasConfirmedSpotlightCooldown,hasConfirmedAmbassadorContact:_.hasConfirmedAmbassadorContact,hasAcceptedGuidelines:_.hasAcceptedGuidelines}})).submitBannerSpotlightApplication},onSuccess:e=>{$(e),window.scrollTo({top:0,behavior:"smooth"})},onError:e=>U({title:"Application not submitted",description:e.message,status:"error",duration:6e3,isClosable:!0})});return Z?(0,s.jsxs)(n.z,{children:[(0,s.jsx)(m.I,{title:"Application received | Partake",canonicalUrl:"spotlight"}),(0,s.jsx)("main",{className:"mx-auto flex min-h-[70vh] max-w-2xl items-center px-2 py-12",children:(0,s.jsxs)("div",{className:"w-full rounded-2xl bg-ui/[0.045] p-6 text-center sm:p-10",children:[(0,s.jsx)("span",{className:"mx-auto flex size-14 items-center justify-center rounded-full bg-green-500/15 text-green-300",children:(0,s.jsx)(j.G,{icon:b.LEp,className:"size-6"})}),(0,s.jsx)("p",{className:"overline-md mt-6 text-primary-500",children:"Application received"}),(0,s.jsx)("h1",{className:"heading-md mt-2 text-ui",children:"You're in the review queue"}),(0,s.jsx)("p",{className:"paragraph-md mx-auto mt-4 max-w-lg text-ui/55",children:"The community team reviews applications on Sundays. If we need anything else, a Community Ambassador will follow up through your existing Partake or Discord ticket conversation."}),(0,s.jsxs)("div",{className:"mx-auto mt-6 max-w-md rounded-lg bg-black/20 p-4 text-left",children:[(0,s.jsx)("p",{className:"overline-md text-ui/35",children:"Reference"}),(0,s.jsx)("p",{className:"paragraph-sm mt-1 break-all font-mono text-ui/75",children:Z.id})]}),(0,s.jsxs)("div",{className:"mt-8 flex flex-col justify-center gap-3 sm:flex-row",children:[(0,s.jsx)(i.zx,{variant:"secondary",onClick:()=>F.push("/guidelines#spotlight"),children:"Read the guidelines"}),(0,s.jsx)(i.zx,{variant:"primary",onClick:()=>F.push("/"),children:"Return home"})]})]})})]}):(0,s.jsxs)(n.z,{children:[(0,s.jsx)(m.I,{title:"Banner Spotlight Application | Partake",description:"Apply to feature your event, venue, or creative work in Partake's homepage Banner Spotlight.",canonicalUrl:"spotlight"}),(0,s.jsxs)("main",{className:"w-full pb-20",children:[(0,s.jsx)("header",{className:"border-b border-ui/10",children:(0,s.jsx)("div",{className:"flex min-h-[300px] items-center py-10 lg:py-12",children:(0,s.jsxs)("div",{className:"max-w-3xl",children:[(0,s.jsx)("p",{className:"overline-md text-primary-500",children:"Banner Spotlight"}),(0,s.jsx)("h1",{className:"mt-2 heading-md text-ui",children:"Feature Your Event"}),(0,s.jsx)("p",{className:"paragraph-md mt-3 max-w-2xl text-ui/60",children:"Apply to place an upcoming Partake event on the homepage."}),R&&(0,s.jsx)(i.zx,{className:"mt-5",type:"button",variant:"secondary",onClick:()=>Q(!0),children:"My Applications"})]})})}),(0,s.jsxs)("div",{className:"mx-auto mt-8 grid max-w-6xl gap-6 lg:grid-cols-[minmax(0,1fr)_360px] lg:items-start",children:[(0,s.jsxs)("form",{className:"space-y-5",onSubmit:e=>{if(e.preventDefault(),!R){F.push("/login");return}ec.mutate()},children:[(0,s.jsxs)(z,{title:"Application",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsxs)("span",{className:"label-sm text-ui/80",children:["Team",(0,s.jsx)("span",{className:"ml-1 text-primary-500",children:"*"})]})}),ee.isLoading?(0,s.jsxs)("div",{className:"paragraph-sm flex h-11 items-center gap-3 text-ui/40",children:[(0,s.jsx)(x.$,{size:"sm"})," Loading your teams..."]}):R?(0,s.jsx)(c.Z,{value:_.teamId,onChange:e=>W(t=>({...t,teamId:String(e),eventId:""})),options:(null!==(L=null===(a=ee.data)||void 0===a?void 0:a.me.memberOfTeams)&&void 0!==L?L:[]).map(e=>({key:e.id.toString(),name:e.name,src:e.iconUrl})),children:(0,s.jsx)(l.Z,{})}):(0,s.jsx)("p",{className:"flex h-11 items-center text-sm text-ui/40",children:"Log in to choose a team."})]}),R&&!ee.isLoading&&(null===(h=ee.data)||void 0===h?void 0:h.me.memberOfTeams.length)===0&&(0,s.jsx)("p",{className:"mt-4 rounded-lg bg-yellow-500/10 px-4 py-3 text-sm text-yellow-100",children:"You need to be a member of a Partake team before applying."}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)("span",{className:"label-sm text-ui/80",children:["Choose an event",(0,s.jsx)("span",{className:"ml-1 text-primary-500",children:"*"})]})}),_.teamId?ea.isFetching?(0,s.jsxs)("div",{className:"flex items-center gap-3 rounded-lg bg-black/15 px-4 py-4 text-sm text-ui/40",children:[(0,s.jsx)(x.$,{size:"sm"})," Finding upcoming events..."]}):ea.isError?(0,s.jsx)("p",{className:"rounded-lg bg-red-500/10 px-4 py-4 text-sm text-red-200",children:ea.error.message}):0===es.length?(0,s.jsx)("p",{className:"paragraph-sm rounded-lg bg-black/15 px-4 py-4 text-ui/45",children:"This team has no upcoming events it organises or collaborates on."}):null:(0,s.jsx)("p",{className:"rounded-lg bg-black/15 px-4 py-4 text-sm text-ui/40",children:"Choose a team to see its eligible events."}),es.length>0&&!ea.isFetching&&(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:es.map(e=>{let t=_.eventId===e.id.toString();return(0,s.jsxs)("label",{className:"relative block cursor-pointer rounded-md",children:[(0,s.jsx)("input",{checked:t,className:"sr-only",name:"eventId",onChange:()=>el("eventId",e.id.toString()),required:!0,type:"radio",value:e.id}),(0,s.jsx)(d.l,{event:e,disableNavigation:!0}),(0,s.jsx)("span",{className:"absolute right-3 top-3 z-40 flex size-6 items-center justify-center rounded-full backdrop-blur-sm transition-colors ".concat(t?"bg-primary-500 text-black":"bg-black/55 text-transparent"),children:(0,s.jsx)(j.G,{icon:b.LEp,className:"size-3"})})]},e.id)})})]}),(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)(T,{label:"Why should this be spotlighted?",required:!0,hint:"".concat(_.description.length,"/3000"),
1children:(0,s.jsx)("textarea",{className:"".concat(P," min-h-32 resize-y py-3 leading-6"),maxLength:3e3,onChange:e=>el("description",e.target.value),placeholder:"Tell us about the experience, community, or work behind your application.",required:!0,value:_.description})})})]}),(0,s.jsxs)(z,{title:"Banner",children:[(0,s.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(T,{label:"Title",required:!0,hint:"".concat(_.title.length,"/100"),children:(0,s.jsx)("input",{className:P,maxLength:100,onChange:e=>el("title",e.target.value),placeholder:"A short, memorable title",required:!0,value:_.title})}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(r.bi,{value:_.titleTextColor,onChange:e=>el("titleTextColor",e)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(T,{label:"Slogan",required:!0,hint:"".concat(_.slogan.length,"/180"),children:(0,s.jsx)("input",{className:P,maxLength:180,onChange:e=>el("slogan",e.target.value),placeholder:"One line that adds context",required:!0,value:_.slogan})}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(r.bi,{value:_.sloganTextColor,onChange:e=>el("sloganTextColor",e)})})]})]}),(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsxs)("span",{className:"label-sm mb-2 block text-ui/80",children:["Banner image",(0,s.jsx)("span",{className:"ml-1 text-primary-500",children:"*"})]}),(0,s.jsx)("input",{ref:O,type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",onChange:er}),(0,s.jsxs)("button",{type:"button",onClick:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.click()}
1,className:"flex w-full items-center gap-4 rounded-lg border border-dashed p-4 text-left transition-colors ".concat(K?"border-red-400/50 bg-red-500/5":M?"border-green-400/40 bg-green-500/5":"border-ui/15 bg-black/15 hover:border-primary-500/50 hover:bg-primary-500/5"),children:[(0,s.jsx)("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg bg-ui/10 text-ui/60",children:(0,s.jsx)(j.G,{icon:M?b.LEp:b.cf$,className:"size-4"})}),(0,s.jsxs)("span",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"label-sm block truncate text-ui/75",children:M?M.name:"Choose an 825 \xd7 300 image"}),(0,s.jsx)("span",{className:"paragraph-xs mt-1 block text-ui/35",children:"Static PNG, JPG, or WebP \xb7 up to 50 MB"})]})]}),K&&(0,s.jsx)("p",{className:"mt-2 text-sm text-red-300",children:K})]}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,s.jsx)("h3",{className:"label-sm text-ui/80",children:"Preview"}),(0,s.jsx)("span",{className:"label-xs text-ui/35",children:"825 \xd7 300"})]}),(0,s.jsx)(E,{previewUrl:H,title:_.title,slogan:_.slogan,titleTextColor:_.titleTextColor,sloganTextColor:_.sloganTextColor})]})]}),(0,s.jsxs)(z,{title:"Submit",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-lg bg-black/15 p-4 transition-colors hover:bg-black/20",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5 size-4 shrink-0 accent-primary-500",checked:_.hasAcceptedPartakeDiscretion,onChange:e=>el("hasAcceptedPartakeDiscretion",e.target.checked),required:!0}),(0,s.jsx)("span",{className:"paragraph-sm text-ui/60",children:"I understand Partake may decline this application for any reason."})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-lg bg-black/15 p-4 transition-colors hover:bg-black/20",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5 size-4 shrink-0 accent-primary-500",checked:_.hasConfirmedS
1potlightCooldown,onChange:e=>el("hasConfirmedSpotlightCooldown",e.target.checked),required:!0}),(0,s.jsx)("span",{className:"paragraph-sm text-ui/60",children:"I confirm that my team and any collaborators have not been featured in Banner Spotlight within the past three months."})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-lg bg-black/15 p-4 transition-colors hover:bg-black/20",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5 size-4 shrink-0 accent-primary-500",checked:_.hasAcceptedGuidelines,onChange:e=>el("hasAcceptedGuidelines",e.target.checked),required:!0}),(0,s.jsx)("span",{className:"paragraph-sm text-ui/60",children:"I confirm this submission follows the Banner Spotlight guidelines."})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-lg bg-black/15 p-4 transition-colors hover:bg-black/20",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5 size-4 shrink-0 accent-primary-500",checked:_.hasConfirmedAmbassadorContact,onChange:e=>el("hasConfirmedAmbassadorContact",e.target.checked),required:!0}),(0,s.jsx)("span",{className:"paragraph-sm text-ui/60",children:"I have spoken to a Community Ambassador about my intention to apply, or opened a ticket in the Partake Discord to contact one."})]})]}),!R&&(0,s.jsx)("p",{className:"mt-5 rounded-lg bg-primary-500/10 px-4 py-3 text-sm text-primary-200",children:"You'll need to log in to upload your banner and submit the application."}),(0,s.jsx)("div",{className:"mt-5 flex justify-end",children:(0,s.jsx)(i.zx,{className:"min-w-52",type:"submit",variant:"primary",isLoading:ec.isPending,loadingText:"Submitting...",disabled:!!K||!!R&&!en,children:R?"Submit application":"Log in to apply"})})]})]}),(0,s.jsxs)("aside",{className:"space-y-4 lg:sticky lg:top-20",children:[(0,s.jsxs)("section",{className:"rounded-xl bg-ui/[0.045] p-5",children:[(0,s.jsx)("p",{className:"overline-md text-primary-500",children:"Before you submit"}),(0,s.jsx)("ul",{className:"paragraph-sm mt-4 space-y-3 text-ui/55",children:["Static, safe-for-work imagery only","Minimal logos and no excessive text","Complete, high-quality Partake event page","No Spotlight in the previous three months","Community Ambassador contact established"].map(e=>(0,s.jsxs)("li",{className:"flex gap-2.5",children:[(0,s.jsx)(j.G,{icon:b.LEp,className:"mt-1 size-3 shrink-0 text-primary-500"}),(0,s.jsx)("span",{children:e})]},e))}),(0,s.jsx)("div",{className:"mt-5 flex justify-end",children:(0,s.jsxs)(k(),{href:"/guidelines#spotlight",className:(0,i.P_)("primary"),children:["View Guidelines",(0,s.jsx)(j.G,{icon:b.eFW,className:"size-3.5"})]})})]}),(0,s.jsx)("div",{className:"px-1 py-5",children:(0,s.jsx)(o.t,{title:"Need some help?",description:"Community Ambassadors can help with your application or banner. Open a ticket in the Partake Discord before submitting.",linkHeading:!0})})]})]})]}),(0,s.jsx)(G,{isOpen:X,onClose:()=>Q(!1),applications:null!==(D=null===(g=ei.data)||void 0===g?void 0:g.myBannerSpotlightApplications)&&void 0!==D?D:[],isLoading:ei.isLoading,error:ei.error})]})}}},function(e){e.O(0,[2650,3367,7962,2888,9774,179],function(){return e(e.s=94070)}),_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.