PageSourceSearch

https://circle21.events/_next/static/chunks/pages/myevent/general/media-419cf1e96200d9c6.js

js circle21.events collected 2026-09-24 12:18:34 UTC 33,581 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1041],{54114:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/myevent/general/media",function(){return a(80778)}])},80395:function(e,t,a){"use strict";a.d(t,{Z:function(){return UIFormCardDivider}});var l=a(11527),n=a(79061),r=a.n(n);function UIFormCardDivider(){return(0,l.jsx)("div",{className:r().formCard__divider})}},11675:function(e,t,a){"use strict";a.d(t,{Z:function(){return UIFormCardHeader}});var l=a(11527),n=a(79061),r=a.n(n);function UIFormCardHeader(e){let{title:t,description:a,showMandatoryForPublish:n,children:i}=e;return(0,l.jsx)("div",{className:r().formCard__formGroup__info,children:(0,l.jsxs)("div",{className:r().formCard__formGroup__info__container,children:[(0,l.jsxs)("div",{className:"flex-1",children:[t&&(0,l.jsx)("p",{className:r().formCard__formGroup__info__title,children:t}),a,n&&(0,l.jsx)("div",{style:{marginTop:"5px"},children:(0,l.jsxs)("span",{className:r().formCard__formGroup__info__mandatory,children:["(",(0,l.jsx)("span",{style:{marginLeft:0,color:"var(--color-brand-orange)"},children:" * "}),"Mandatory before publishing)"]})})]}),i]})})}},78153:function(e,t,a){"use strict";a.d(t,{Z:function(){return UIFormCard}});var l=a(11527),n=a(96600),r=a(80395),i=a(79061),o=a.n(i);a(50959);var s=a(82187),d=a.n(s),c=a(11675);function UIFormCard(e){let{title:t,description:a,children:i,id:s,showMandatoryForPublish:_=!1}=e,u=(0,n.useRouter)(),m=u.asPath.split("#")[1],h=s&&m===s;h&&s&&setTimeout(()=>{let e=document.getElementById(s);e&&e.scrollIntoView({behavior:"smooth",block:"end"})},100);let g=t||a||_;return(0,l.jsx)("div",{className:d()(o().formCard,{[o().animate]:h}),id:s,children:(0,l.jsxs)("div",{className:o().formCard__formGroup,children:[g?(0,l.jsx)(c.Z,{title:t,description:a,showMandatoryForPublish:_}):null,i&&(0,l.jsxs)(l.Fragment,{children:[g&&(0,l.jsx)(r.Z,{}),(0,l.jsx)("div",{className:o().formCard__footer,children:i})]})]})})}UIFormCard.displayName="UIFormCard"},56978:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsx)("g",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",clipPath:"url(#clip0_5072_4936)",children:(0,l.jsx)("path",{d:"M6.422 6.32L3.61 10.633M11.59 6.32l2.814 4.314M7.393 14.143h3.232M9 7.392c2.057 0 3.214-1.157 3.214-3.214S11.057.964 9 .964 5.786 2.12 5.786 4.178 6.943 7.392 9 7.392zM4.179 17.035c2.057 0 3.214-1.157 3.214-3.214s-1.157-3.215-3.214-3.215c-2.058 0-3.215 1.158-3.215 3.215s1.157 3.214 3.215 3.214zM13.822 17.035c2.057 0 3.214-1.157 3.214-3.214s-1.157-3.215-3.215-3.215c-2.057 0-3.214 1.158-3.214 3.215s1.157 3.214 3.215 3.214z"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5072_4936",children:(0,l.jsx)("path",{fill:a,d:"M0 0H18V18H0z"})})})]})}},80539:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsxs)("g",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",clipPath:"url(#clip0_5072_4915)",children:[(0,l.jsx)("path",{d:"M4.546 10.92V9.634A1.286 1.286 0 015.832 8.35h1.286a1.286 1.286 0 011.285 1.285v1.286a1.286 1.286 0 01-1.285 1.286H5.832a1.286 1.286 0 01-1.286-1.286z"}),(0,l.jsx)("path",{d:"M1.54 13.532c.207 1.851 1.712 3.32 3.572 3.41 1.286.061 2.598.093 4.024.093 1.426 0 2.739-.032 4.025-.093 1.86-.09 3.364-1.56 3.571-3.41.14-1.247.255-2.524.255-3.825 0-1.303-.116-2.58-.255-3.826-.207-1.852-1.711-3.32-3.571-3.41a83.108 83.108 0 00-4.025-.094c-1.426 0-2.738.032-4.024.094-1.86.09-3.365 1.56-3.572 3.41-.14 1.247-.254 2.523-.254 3.826 0 1.301.115 2.579.254 3.825zM5.468.964v3.214M12.536.964v3.214"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5072_4915",children:(0,l.jsx)("path",{fill:a,d:"M0 0H18V18H0z"})})})]})}},53608:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsx)("g",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",clipPath:"url(#clip0_5072_4947)",children:(0,l.jsx)("path",{d:"M13.148 11.414v3M14.648 12.915h-3M6.557 10.546a9.211 9.211 0 00-5.123 1.545c-1.636 1.09-.531 3.192 1.434 3.192h3.69M8.938 13.007c0-2.507 1.052-3.583 1.403-3.942h5.613c.351.36 1.403 1.434 1.403 3.942 0 2.868-2.764 3.926-4.167 4.284-1.403-.358-4.252-1.415-4.252-4.284zM7.149 7.65c2.139 0 3.342-1.203 3.342-3.343 0-2.14-1.203-3.343-3.342-3.343-2.14 0-3.343 1.203-3.343 3.343 0 2.14 1.203 3.343 3.343 3.343z"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5072_4947",children:(0,l.jsx)("path",{fill:a,d:"M0 0H18V18H0z"})})})]})}},98809:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsx)("path",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",d:"M13.107 1.203H4.913c-1.17 0-2.205.788-2.39 1.944-.603 3.797-.403 8.396.09 12.545.122 1.004 1.311 1.449 2.077.788l1.614-1.389 1.238 1.35a1.927 1.927 0 002.85-.009l1.214-1.34 1.67 1.423c.764.652 1.94.216 2.066-.78.521-4.103.77-8.924.11-12.673-.197-1.117-1.21-1.859-2.345-1.859z"}),(0,l.jsx)("path",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",d:"M10.758 6.234s-.661-.738-1.734-.645c-1.07.092-1.587.75-1.587 1.411 0 1.926 3.32.592 3.32 2.567 0 1.018-2.203 1.737-3.516.54m1.916-5.813V5.58m0 5.14v1.288"})]})}},62626:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsx)("path",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",d:"M6.454 7.467a1.26 1.26 0 100-2.52 1.26 1.26 0 000 2.52v0zM11.597 12.636a1.26 1.26 0 100-2.52 1.26 1.26 0 000 2.52z"}),(0,l.jsx)("path",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",d:"M17.036 5.184V6.68a2.571 2.571 0 000 4.723v1.496c0 1.42-1.02 2.37-2.572 2.572-4.267.553-6.653.556-10.928 0-1.508-.197-2.572-1.152-2.572-2.572v-1.496a2.572 2.572 0 000-4.723V5.184c0-1.42 1.074-2.318 2.572-2.571 4.223-.718 6.643-.61 10.928 0 1.417.2 2.572 1.15 2.572 2.571zM6.05 11.727c2.604-2.142 3.905-3.43 5.9-5.898"})]})}},47158:function(e,t,a){"use strict";var l=a(11527);a(50959),t.Z=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsxs)("g",{stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.286",clipPath:"url(#clip0_5072_4512)",children:[(0,l.jsx)("path",{d:"M15.182 9.934c0 .065.022.129.061.18l.858 1.08a1.234 1.234 0 01.105 1.389l-.504.869a1.234 1.234 0 01-1.253.604l-1.367-.205a.296.296 0 00-.186.034l-1.62.935a.293.293 0 00-.124.144l-.504 1.286a1.234 1.234 0 01-1.148.785H8.495a1.234 1.234 0 01-1.148-.784l-.504-1.286a.293.293 0 00-.124-.145L5.1 13.885a.296.296 0 00-.186-.036l-1.367.209a1.234 1.234 0 01-1.255-.605l-.501-.87a1.235 1.235 0 01.
1103-1.389l.861-1.08a.287.287 0 00.065-.18v-1.87a.29.29 0 00-.065-.18l-.861-1.08a1.234 1.234 0 01-.103-1.388l.501-.869a1.234 1.234 0 011.255-.604l1.363.206c.064.009.13-.003.187-.035l1.622-.939a.294.294 0 00.124-.145l.506-1.28A1.234 1.234 0 018.5.963h1.008a1.234 1.234 0 011.148.784l.504 1.282a.289.289 0 00.123.15l1.62.934a.296.296 0 00.187.036l1.365-.208a1.234 1.234 0 011.255.604l.503.87a1.234 1.234 0 01-.105 1.389l-.861 1.08a.287.287 0 00-.063.18v1.87h-.001z"}),(0,l.jsx)("path",{d:"M9 11.566c1.642 0 2.566-.924 2.566-2.566S10.642 6.434 9 6.434 6.434 7.358 6.434 9 7.358 11.566 9 11.566z"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5072_4512",children:(0,l.jsx)("path",{fill:a,d:"M0 0H18V18H0z"})})})]})}},19803:function(e,t,a){"use strict";a.d(t,{q:function(){return UISelectImage}});var l=a(11527),n=a(29),r=a.n(n),i=a(82187),o=a.n(i),s=a(50959),d=a(52251),c=a(43704),_=a.n(c),u=a(27244),m=a(6989),h=a(55419),g=a(56851),p=a(74217),y=a(74552);function UISelectImage(e){let t=(0,y.N)(),[a,n]=s.useState(),{buttonText:i,resolution:c,hideResolutionLabel:f=!1,hideMaxSizeLabel:v=!1,src:x,onChange:M,maxWidth:j,theme:H="light",shape:Z="square",error:w,maxSize:b=2097152}=e,{getInputProps:A,getRootProps:R}=(0,d.uI)({accept:{"images/jpeg":[".jpg",".jpeg"],"image/png":[".png"]},maxFiles:1,onDropAccepted:e=>{n(void 0),M(e[0])},onDropRejected:e=>{var t;let a=e[0];if(!a)return;let l=null==a?void 0:null===(t=a.errors)||void 0===t?void 0:t.map(e=>e.code);if(l.includes("file-too-large")){n("File is too large. Maximum file size is ".concat(b/1024/1024," MB."));return}if(l.includes("file-invalid-type")){n("Invalid file type. Only JPG and PNG are allowed.");return}n("File cannot be uploaded.")}}),onClose=async e=>{await t({title:"Remove Asset",content:"Are you sure you want to remove this asset?"})&&(e.stopPropagation(),M(null))},E=(0,s.useMemo)(()=>{if(!c)return null;let e=(0,g.Z)(c[0],c[1]);return[c[0]/e,c[1]/e]},[c]),C=(0,s.useMemo)(()=>x instanceof File?URL.createObjectURL(x):x,[x]),L={maxWidth:j,aspectRatio:E?"".concat(E[0]," / ").concat(E[1]):" 1440 / 600"},V=s.useMemo(()=>({[r()["button--circle"]]:"circle"===Z,[r()["button--square"]]:"square"===Z}),[Z]);return(0,l.jsxs)("div",{className:o()(r().container,{[r()["container--dark"]]:"dark"===H,[r()["container--light"]]:"light"===H}),children:[(0,l.jsxs)("div",{style:L,className:r().button,children:[e.loading&&(0,l.jsx)("div",{className:r().loaderOverlay,children:(0,l.jsx)("div",{className:r().spinner})}),!C&&(0,l.jsxs)("div",{...R(),className:o()(r().button__wrapper,V),children:[(0,l.jsx)(m.Dmm,{width:18,height:18}),(0,l.jsxs)("div",{className:r().button__text,children:[i||"Add Image",c&&(0,l.jsx)("div",{className:r().button__desc,children:"".concat(c[0],"px x ").concat(c[1],"px")})," "]})]}),C&&(0,l.jsx)("div",{...R(),className:o()(r().image__wrapper,V),children:(0,l.jsx)("img",{src:C,alt:"image to upload",className:r().image,style:L})}),C&&(0,l.jsx)(h.Z,{className:r().image__close,theme:"light",onClick:onClose,children:(0,l.jsx)(_(),{src:u.Z,alt:"Close icon"})})]}),(0,l.jsx)(p.Z,{message:w||a}),c&&!f&&(0,l.jsxs)("div",{className:r().resolution,children:["JPG, PNG. ",!v&&"File size max ".concat((e=>{let t=e/1024/1024;return Number.isInteger(t)?t.toString():t.toFixed(2)})(b),"mb.")," Best Resolution ",c[0],"px x ",c[1],"px"]}),(0,l.jsx)("input",{...A()})]})}},56851:function(e,t,a){"use strict";a.d(t,{Z:function(){return function gcd(e,t){return 0==t?e:gcd(t,e%t)}}})},65985:function(e,t,a){"use strict";a.d(t,{Z:function(){return LayoutContentHeader}});var l=a(11527),n=a(6043),r=a.n(n),i=a(11917),o=a.n(i),s=a(82187),d=a.n(s),c=a(92989),_=a(75821);function LayoutContentHeader(e){let{loading:t,children:a,actions:n,title:i,info:s,bar:u,keepTitle:m=!1,className:h}=e;return(0,l.jsxs)("div",{className:d()(o().header,{[o().noActions]:null===n,[h]:!!h}),children:[(0,l.jsx)("div",{className:o().header__loader,children:t&&(0,l.jsx)(r(),{className:o().header__loader__element,color:"#f89521"})}),u?(0,l.jsx)("div",{className:o().header__bar,children:u}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:m?o().header__title_visible:o().header__title,children:[i,s&&(0,l.jsx)(c.Z,{title:(0,l.jsx)("span",{className:"whitespace-pre-wrap text-xs",children:s}),placement:"right",children:(0,l.jsx)("span",{className:o().header__info,children:(0,l.jsx)(_.k,{size:14})})})]}),(0,l.jsx)("div",{className:d()(o().header__content,{[o().fullWidth]:!!h&&!m}),children:a}),null!==n&&(0,l.jsx)("div",{className:o().header__actions,children:n})]})]})}},82938:function(e,t,a){"use strict";a.d(t,{Z:function(){return usePermission}});var l=a(11527),n=a(74552);function usePermission(){let e=(0,n.N)();return{handleNoAccess:(t,a)=>{t.preventDefault(),e({title:"Access Restricted",cancelText:!1,content:(0,l.jsxs)(l.Fragment,{children:["You don’t have permission to view this page with your current role: ",(0,l.jsx)("b",{className:"capitalize",children:a})]}),modalStyle:{backdropFilter:"blur(4px)"},confirmText:"Ok"})}}}},71532:function(e,t,a){"use strict";a.d(t,{Z:function(){return LayoutEventGeneral}});var l=a(11527),n=a(96600),r=a(50959),i=a(85335),o=a(76983),s=a(39533),d=a.n(s),c=a(80539),Media=function(e){let{size:t=18,fill:a="currentColor",...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 18 18",...n,children:[(0,l.jsxs)("g",{stroke:a,strokeLinejoin:"round",strokeWidth:"1.286",clipPath:"url(#clip0_5072_4923)",children:[(0,l.jsx)("path",{strokeLinecap:"round",d:"M13.52 5.832a40.94 40.94 0 00-.161-1.877 3.35 3.35 0 00-2.95-2.957C9.342.879 8.25.78 7.136.78 6.02.78 4.928.88 3.86.998a3.35 3.35 0 00-2.95 2.957C.799 5.015.708 6.102.708 7.209c0 1.108.093 2.196.206 3.255a3.35 3.35 0 002.948 2.957c.92.103 1.858.19 2.813.211"}),(0,l.jsx)("path",{strokeLinecap:"round",d:"M.852 9.91L4.21 7.82c.934-.578 2.132-.503 2.952.228.314.28.663.597 1.025.939"}),(0,l.jsx)("path",{d:"M10.345 10.584a1.193 1.193 0 00-.522.84 11.743 11.743 0 000 3.052 1.193 1.193 0 00.522.842c.888.599 1.815 1.189 2.77 1.526.22.077.456.077.673 0 .955-.337 1.882-.927 2.77-1.526a1.193 1.193 0 00.523-.842 11.741 11.741 0 000-3.052 1.194 1.194 0 00-.522-.84c-.889-.6-1.816-1.19-2.771-1.527a1.012 1.012 0 00-.672 0c-.956.337-1.883.926-2.771 1.527z"}),(0,l.jsx)("path",{strokeLinecap:"round",d:"M13.451 12.308a.692.692 0 00-.437.141c-.255.212-.27.696-.06.943a.653.653 0 00.497.202M13.451 12.308a.694.694 0 01.439.141c.253.212.27.696.059.943a.652.652 0 01-.498.202M9.503 6.411c.925 0 1.445-.519 1.445-1.443 0-.926-.52-1.446-1.445-1.446s-1.444.52-1.444 1.446c0 .924.52 1.443 1.444 1.443z"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5072_4923",children:(0,l.jsx)("path",{fill:a,d:"M0 0H18V18H0z"})})})]})},_=a(56978),u=a(98809),m=a(62626),h=a(53608),g=a(88027),p=a(59342),y=a(47158),f=a(18302),v=a(42560),x=a(82938);function LayoutEventGeneral(e){let{children:t}=e,{query:a}=(0,n.useRouter)(),s=a.competitionId,M=(0,i.usePathname)(),{data:j}=(0,f.e)({competitionId:s}),H=null==j?void 0:j.role,Z=(0,p.HP)(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.is_admin}),{handleNoAccess:w}=(0,x.Z)(),b=(0,r.useMemo)(()=>{let e={href:"/myevent/general/pricing?competitionId=".concat(s),text:"Pricing",icon:(0,l.jsx)(u.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/pricing"))},t={href:"/myevent/general/pricing?competitionId=".concat(s),text:"Pricing",onClick:e=>w(e,g.u.admin),icon:(0,l.jsx)(u.Z,{}),active:!1,disabled:!0},a=[{id:"main",links:[{href:"/myevent/general/info?competitionId=".concat(s),text:"Event Details",icon:(0,l.jsx)(c.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/info"))},{href:"/myevent/general/divisions?competitionId=".concat(s),text:"Divisions",icon:(0,l.jsx)(_.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/divisions"))},{href:"/myevent/general/media?competitionId=".concat(s),text:"Media",icon:(0,l.jsx)(Media,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/media"))},{href:"/myevent/general/waiverAndForm?competitionId=".concat(s),text:"Waiver & Form",icon:(0,l.jsx)(v.a,{size:20}),active:!!(null==M?void 0:M.startsWith("/myevent/general/waiverAndForm"))},{href:"/myevent/general/promo?competitionId=".concat(s),text:"Promo Codes",icon:(0,l.jsx)(m.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/promo"))},{href:"/myevent/general/organization?competitionId=".concat(s),text:"Organization",icon:(0,l.jsx)(h.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/organization"))},{href:"/myevent/general/settings?competitionId=".concat(s),text:"Settings",icon:(0,l.jsx)(y.Z,{}),active:!!(null==M?void 0:M.startsWith("/myevent/general/settings"))}]}];return(Z||H===g.u.organiser)&&a[0].links.splice(2,0,e),H!==g.u.admin||Z||a[0].links.splice(2,0,t),a},[M,s,H,Z]);return(0,l.jsxs)("div",{className:d().pageWrapper,children:[(0,l.jsx)(o.Z,{groups:b,title:"General"}),(0,l.jsx)("div",{className:d().content,children:t})]})}},80778:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return EventBalance}});var l=a(11527),n=a(50959),r=a(9710),i=a(78153),o=a(82047),s=a(19803),d=a(35062);function AddCover(e){var t;let{id:a,media:r}=null==e?void 0:e.competition,{mutateAsync:c,isLoading:_}=(0,o.o)({competitionId:a}),u=null==r?void 0:r.filter(e=>"cover"===e.collection_name),[m,h]=n.useState(null===(t=u[u.length-1])||void 0===t?void 0:t.original_url),{generateCoverThumbnail:g}=(0,d.K)(),p=n.useCallback(async e=>{if(!e){await c({cover:null}),h("");return}let t=await g(e),a=new File([t],e.name,{type:e.type}),l=new FormData;l.append("cover",a),await c({cover:a}),h(a?URL.createObjectURL(a):"")},[c]);return(0,l.jsx)(i.Z,{title:"Add Cover Photo",id:"cover",description:"",showMandatoryForPublish:!0,children:(0,l.jsx)(s.q,{buttonText:"Add Cover",src:m,onChange:p,resolution:[1440,600],hideMaxSizeLabel:!0,theme:"dark",loading:_})})}var c=a(93834);function AddLogo(e){var t;let{id:a,media:r}=null==e?void 0:e.competition,{mutateAsync:d,isLoading:_}=(0,o.o)({competitionId:a}),u=null==r?void 0:r.filter(e=>"logo"===e.collection_name),[m,h]=n.useState(null===(t=u[u.length-1])||void 0===t?void 0:t.original_url),{generateThumbnail:g}=(0,c.O)(),p=n.useCallback(async e=>{if(!e){await d({logo:null}),h("");return}let t=await g(e),a=new File([t],e.name,{type:e.type}),l=new FormData;l.append("logo",a),await d({logo:a}),h(a?URL.createObjectURL(a):"")},[d]);return(0,l.jsx)(i.Z,{title:"Add Event Logo",id:"logo",description:"",showMandatoryForPublish:!0,children:(0,l.jsx)(s.q,{buttonText:"Add Logo",src:m,onChange:p,resolution:[400,400],hideMaxSizeLabel:!0,theme:"dark",shape:"circle",maxWidth:150,loading:_})})}function AddRegistrationImg(e){var t;let{id:a,media:r}=null==e?void 0:e.competition,{mutateAsync:d,isLoading:c}=(0,o.o)({competitionId:a}),_=null==r?void 0:r.filter(e=>"registration"===e.collection_name),[u,m]=n.useState(null===(t=_[_.length-1])||void 0===t?void 0:t.original_url),h=n.useCallback(async e=>{try{let t=new FormData;t.append("registration",e),await d({registration:e}),m(e?URL.createObjectURL(e):"")}catch(e){console.error("Error uploading file:",e)}},[d]);return(0,l.jsx)(i.Z,{title:"Customise Your Confirmation Emails with an Image",id:"registration",description:"Upload your own image to make the registration confirmation email more engaging, branded, and memorable for your participants.",children:(0,l.jsx)(s.q,{buttonText:"Upload image here",src:u,onChange:h,hideResolutionLabel:!0,theme:"dark",loading:c})})}function MediaTabPanel(e){let{item:t}=e;return null==t||t.onsite,t?(0,l.jsxs)(r.F,{children:[(0,l.jsx)(AddLogo,{competition:t}),(0,l.jsx)(AddCover,{competition:t}),(0,l.jsx)(AddRegistrationImg,{competition:t})]}):null}var _=a(96600),u=a(89546),m=a(18302),h=a(71532),g=a(65985),p=a(88027);function EventBalance(){let{query:e}=(0,_.useRouter)(),t=e.competitionId,{data:a}=(0,m.e)({competitionId:t});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.Z,{title:"Media",actions:null}),(0,l.jsx)(MediaTabPanel,{competitionId:t,item:a})]})}EventBalance.getLayout=e=>(0,l.jsx)(u.Z,{SubLayout:h.Z,restrictedTo:[p.u.admin,p.u.organiser],redirectTo:"/myevent/scoring/leaderboard",children:e})},79061:function(e){e.exports={formCard:"style_formCard__I7J_y",animate:"style_animate__4ZVp4",shadowHighlight:"style_shadowHighlight__IEKbS",formCard__divider:"style_formCard__divider__1Qdz
16",formCard__formGroup:"style_formCard__formGroup__IbkuT",formCard__formGroup__info:"style_formCard__formGroup__info__wwHWl",formCard__formGroup__info__title:"style_formCard__formGroup__info__title__fCEy9",formCard__formGroup__info__mandatory:"style_formCard__formGroup__info__mandatory__k74_n",formCard__formGroup__info__container:"style_formCard__formGroup__info__container__dMosG",formCard__formGroup__formField:"style_formCard__formGroup__formField__GF4Zm"}},29:function(e){e.exports={displaySmallRegular:"style_displaySmallRegular__w_Di6",displaySmallBold:"style_displaySmallBold__qMyy_",displayXSmallBold:"style_displayXSmallBold__sxbRG",displayXSmallRegular:"style_displayXSmallRegular__NvNRZ",displayMediumRegular:"style_displayMediumRegular__YL4gQ",bodyLargeRegular:"style_bodyLargeRegular__FUA_D",bodyLargeBold:"style_bodyLargeBold__UGF9f",bodyMediumRegular:"style_bodyMediumRegular__Z45nR",bodyMediumBold:"style_bodyMediumBold__5IJKG",bodySmallRegular:"style_bodySmallRegular__TzyBs",container:"style_container__kEqHq",resolution:"style_resolution__RYtU1",button__text:"style_button__text__ZeEaB",bodySmallBold:"style_bodySmallBold__rqwEm",bodyXSmallBold:"style_bodyXSmallBold__A6hzJ",bodyXSmallRegular:"style_bodyXSmallRegular__gVY4d",actionLargeBold:"style_actionLargeBold__o2uSk",actionLargeMedium:"style_actionLargeMedium__W74d_",actionMediumMedium:"style_actionMediumMedium__t4cu0",actionMediumBold:"style_actionMediumBold__7kZTA",actionMediumRegular:"style_actionMediumRegular__mSjOs",actionSmallRegular:"style_actionSmallRegular___wMzp",headerH1:"style_headerH1__O1lK4",headerRegular:"style_headerRegular__w1jhO",actionXSmallRegular:"style_actionXSmallRegular__FR_aa",actionSmallMedium:"style_actionSmallMedium__bTrni",headingH1Bold:"style_headingH1Bold__tppsn",headingH1Regular:"style_headingH1Regular__VPSxW",headingH2Bold:"style_headingH2Bold__1w9jk",headingH3Bold:"style_headingH3Bold__DyEv7",headingH3Regular:"style_headingH3Regular__F7flZ",captionRegular:"style_captionRegular__BQ4wh",button:"style_button__UuBtJ",button__wrapper:"style_button__wrapper__EmrEp","button--circle":"style_button--circle__XWERR","button--square":"style_button--square___4Lta",image:"style_image__eKk6t",image__wrapper:"style_image__wrapper__8fr3c",image__close:"style_image__close__GRdnL","container--dark":"style_container--dark__sS9Gq","container--light":"style_container--light__txnNP",loaderOverlay:"style_loaderOverlay__ZYpY_",spinner:"style_spinner__Smzct",spin:"style_spin__sMrLl"}},11917:function(e){e.exports={displaySmallRegular:"style_displaySmallRegular__fjPKZ",displaySmallBold:"style_displaySmallBold__628Ny",displayXSmallBold:"style_displayXSmallBold__eJZk2",displayXSmallRegular:"style_displayXSmallRegular__Z9CSl",displayMediumRegular:"style_displayMediumRegular__gyct0",bodyLargeRegular:"style_bodyLargeRegular__B6yaY",bodyLargeBold:"style_bodyLargeBold__vJujx",bodyMediumRegular:"style_bodyMediumRegular__iLabx",bodyMediumBold:"style_bodyMediumBold__QHlh4",bodySmallRegular:"style_bodySmallRegular__XRoPX",bodySmallBold:"style_bodySmallBold__hSPCW",header__title:"style_header__title__f2ORe",header__title_visible:"style_header__title_visible__8g_UM",bodyXSmallBold:"style_bodyXSmallBold__A3suw",bodyXSmallRegular:"style_bodyXSmallRegular__A_MB9",actionLargeBold:"style_actionLargeBold__tfUaV",actionLargeMedium:"style_actionLargeMedium__TIecf",actionMediumMedium:"style_actionMediumMedium__Rwrdd",actionMediumBold:"style_actionMediumBold__my8Z1",actionMediumRegular:"style_actionMediumRegular___dyAH",actionSmallRegular:"style_actionSmallRegular__e8w0j",headerH1:"style_headerH1__z4e6J",headerRegular:"style_headerRegular__xpYs_",actionXSmallRegular:"style_actionXSmallRegular__T9X5n",actionSmallMedium:"style_actionSmallMedium__Zak4r",headingH1Bold:"style_headingH1Bold__GQLqG",headingH1Regular:"style_headingH1Regular__3Mfys",headingH2Bold:"style_headingH2Bold__DjJHE",headingH3Bold:"style_headingH3Bold___3E6f",headingH3Regular:"style_headingH3Regular__7NHyD",captionRegular:"style_captionRegular__3d9IV",header:"style_header__2CUoB",noActions:"style_noActions__7FQLL",header__content:"style_header__content__JoaLh",header__loader:"style_header__loader__2HtvV",header__loader__element:"style_header__loader__element__zadW5",header__info:"style_header__info__W_IA8",header__actions:"style_header__actions__1P1cY",header__bar:"style_header__bar__XFbo1",fullWidth:"style_fullWidth__O7oKd"}},84228:function(e,t,a){"use strict";a.d(t,{X:function(){return o},Y:function(){return i}});var l=a(50959),n=a(18329);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),l.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),i=l.forwardRef((e,t)=>
1l.createElement(n.Z,{ref:t,...e,weights:r}));i.displayName="ArrowLeftIcon";let o=i},35752:function(e,t,a){"use strict";a.d(t,{D:function(){return i}});var l=a(50959),n=a(18329),r=a(26);let i=l.forwardRef((e,t)=>l.createElement(n.Z,{ref:t,...e,weights:r.Z}));i.displayName="BellIcon"},42560:function(e,t,a){"use strict";a.d(t,{a:function(){return o}});var l=a(50959),n=a(18329);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),l.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
1Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
1Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),i=l.forwardRef((e,t)=>l.createElement(n.Z,{ref:t,...e,weights:r}));i.displayName="FileTextIcon";let o=i},67109:function(e,t,a){"use strict";a.d(t,{j:function(){return i}});var l=a(50959),n=a(18329);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),i=l.forwardRef((e,t)=>l.createElement(n.Z,{ref:t,...e,weights:r}));i.displayName="UploadSimpleIcon"},26:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(50959);let n=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),l.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13
1-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]])}},function(e){e.O(0,[8217,9714,7458,6750,708,5372,338,6446,9774,2888,179],function(){return e(e.s=54114)}),_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.