{"version":3,"file":"ChallengeEntryModal.HFSb7NNQ.mjs","names":["useRef","useState","useMemo","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/4MnuD0pvYC99PDpHZto4/0RzYQDuPzFBYENvNcgCj/ChallengeEntryModal.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";const WORKER_BASE=\"https://api.monococollective.com\";const MAX_FILE_BYTES=5*1024*1024;const ACCEPTED_FILE_TYPES=new Set([\"image/jpeg\",\"image/png\"]);const emptyArtist={firstName:\"\",lastName:\"\",email:\"\",instagram:\"\",ownershipConfirmed:false,consent:false,newsletterOptIn:true};const emptySlot={title:\"\",location:\"\",statement:\"\",file:null,error:\"\"};function getParam(key){if(typeof window===\"undefined\")return\"\";return new URLSearchParams(window.location.search).get(key)||\"\";}function getInitialSlug(fallbackSlug){return getParam(\"call\")||getParam(\"challenge\")||fallbackSlug;}function looksLikeSubmitTrigger(target){if(!(target instanceof HTMLElement))return false;const element=target.closest(\"a,button,[role='button'],[data-framer-name]\");if(!(element instanceof HTMLElement))return false;const href=element instanceof HTMLAnchorElement?element.getAttribute(\"href\")||\"\":\"\";return href.includes(\"#submit\")||href.includes(\"fillout\");}function createSlots(categories){return Object.fromEntries(categories.map(category=>[category.slug,{...emptySlot}]));}function validateFile(file){if(!ACCEPTED_FILE_TYPES.has(file.type))return\"Choose a JPG or PNG image.\";if(file.size>MAX_FILE_BYTES)return\"Choose an image smaller than 5 MB.\";return\"\";}function inputState(value,hasError,disabled){if(disabled)return\"disabled\";if(hasError)return\"error\";return value?\"filled\":\"default\";}function Field({id,label,value,placeholder,type=\"text\",required=false,error=\"\",disabled=false,onChange}){const state=inputState(value,Boolean(error),disabled);return /*#__PURE__*/_jsxs(\"label\",{className:\"mc-field\",htmlFor:id,\"data-state\":state,children:[/*#__PURE__*/_jsxs(\"span\",{className:\"mc-field__label\",children:[required?\"* \":\"\",label]}),/*#__PURE__*/_jsx(\"input\",{id:id,className:\"mc-field__control\",type:type,value:value,placeholder:placeholder,required:required,disabled:disabled,\"aria-invalid\":Boolean(error),\"aria-describedby\":error?`${id}-error`:undefined,onChange:event=>onChange(event.target.value)}),error&&/*#__PURE__*/_jsx(\"span\",{id:`${id}-error`,className:\"mc-field__helper\",children:error})]});}function Button({children,type=\"button\",styleType=\"primary\",disabled=false,loading=false,onClick}){return /*#__PURE__*/_jsxs(\"button\",{className:\"mc-button\",\"data-style\":styleType,\"data-loading\":loading||undefined,type:type,disabled:disabled||loading,onClick:onClick,children:[loading&&/*#__PURE__*/_jsx(\"span\",{className:\"mc-button__spinner\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"span\",{children:children})]});}function Stepper({step,complete=false}){return /*#__PURE__*/_jsxs(\"div\",{className:\"mc-step-block\",\"aria-label\":`Step ${step} of 3`,children:[/*#__PURE__*/_jsx(\"div\",{className:\"mc-stepper\",children:[1,2,3].map(number=>{const state=complete||number<step?\"complete\":number===step?\"current\":\"inactive\";return /*#__PURE__*/_jsx(\"span\",{className:\"mc-step\",\"data-state\":state,children:number},number);})}),/*#__PURE__*/_jsx(\"strong\",{children:complete?\"Complete\":step===1?\"Artist Info\":step===2?\"Upload images\":\"Confirm\"})]});}function Checkbox({checked,label,disabled=false,onChange}){return /*#__PURE__*/_jsxs(\"label\",{className:\"mc-checkbox\",\"data-checked\":checked,\"data-disabled\":disabled||undefined,children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",checked:checked,disabled:disabled,onChange:event=>onChange(event.target.checked)}),/*#__PURE__*/_jsx(\"span\",{className:\"mc-checkbox__control\",\"aria-hidden\":\"true\",children:checked?\"✓\":\"\"}),/*#__PURE__*/_jsx(\"span\",{children:label})]});}function FormMessage({status,children}){return /*#__PURE__*/_jsxs(\"div\",{className:\"mc-message\",\"data-status\":status,role:status===\"error\"?\"alert\":\"status\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"mc-message__indicator\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"span\",{children:children})]});}function ChallengeStyleMount(){useEffect(()=>{const id=\"monoco-challenge-entry-modal-styles\";let style=document.getElementById(id);if(!style){style=document.createElement(\"style\");style.id=id;style.textContent=challengeStyles;document.head.appendChild(style);}},[]);return null;}function ChallengeHeader({call}){return /*#__PURE__*/_jsxs(\"header\",{className:\"mc-header\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mc-eyebrow\",children:\"Submit Your Image\"}),/*#__PURE__*/_jsx(\"h1\",{id:\"mc-title\",children:call?.title||\"Monthly Challenge\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-intro\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Submit one image per category.\"}),call?.brief&&/*#__PURE__*/_jsx(\"p\",{children:call.brief})]})]});}function ChallengeEntryModal({workerURL=WORKER_BASE,fallbackSlug=\"\",showButton=true,buttonLabel=\"Submit Your Image\"}){const fileInputRef=useRef(null);const modalRef=useRef(null);const filePreviewsRef=useRef({});const[open,setOpen]=useState(false);const[briefOpen,setBriefOpen]=useState(false);const[requestedCategory,setRequestedCategory]=useState(\"\");const[step,setStep]=useState(1);const[call,setCall]=useState(null);const[artist,setArtist]=useState(emptyArtist);const[slots,setSlots]=useState({});const[filePreviews,setFilePreviews]=useState({});const[activeCategory,setActiveCategory]=useState(\"\");const[status,setStatus]=useState(\"idle\");const[message,setMessage]=useState(\"\");const[showArtistErrors,setShowArtistErrors]=useState(false);const[dragActive,setDragActive]=useState(false);const[accountState,setAccountState]=useState(\"checking\");const[accountNeedsName,setAccountNeedsName]=useState(false);const[guestProceed,setGuestProceed]=useState(false);const categories=call?.categories||[];const activeCategoryData=categories.find(category=>category.slug===activeCategory);const activeSlot=slots[activeCategory]||emptySlot;const filledSlots=categories.map(category=>({category,slot:slots[category.slug]})).filter(({slot})=>slot?.file);const emailIsValid=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(artist.email.trim());const canContinueStep1=Boolean(artist.firstName.trim()&&artist.lastName.trim()&&emailIsValid);const canContinueStep2=Boolean(filledSlots.length&&filledSlots.every(({slot})=>slot.title.trim()&&!slot.error));const canSubmit=useMemo(()=>Boolean(call?.slug&&canContinueStep1&&canContinueStep2&&artist.ownershipConfirmed&&artist.consent&&status!==\"submitting\"),[call?.slug,canContinueStep1,canContinueStep2,artist.ownershipConfirmed,artist.consent,status]);const resetSubmissionForm=useCallback(()=>{Object.values(filePreviewsRef.current).forEach(url=>URL.revokeObjectURL(url));filePreviewsRef.current={};setFilePreviews({});setArtist({...emptyArtist});setSlots(createSlots(call?.categories||[]));setActiveCategory(call?.categories?.[0]?.slug||\"\");setRequestedCategory(\"\");setStep(1);setStatus(\"idle\");setMessage(\"\");setShowArtistErrors(false);setDragActive(false);setAccountState(\"checking\");setAccountNeedsName(false);setGuestProceed(false);if(fileInputRef.current)fileInputRef.current.value=\"\";},[call]);useEffect(()=>{const openModal=()=>setOpen(true);const clickHandler=event=>{if(event.target instanceof Node&&modalRef.current?.contains(event.target))return;if(!looksLikeSubmitTrigger(event.target))return;event.preventDefault();event.stopPropagation();openModal();};const eventHandler=event=>{const categorySlug=event.detail?.categorySlug||\"\";setRequestedCategory(categorySlug);if(categorySlug&&call?.categories?.some(category=>category.slug===categorySlug)){setActiveCategory(categorySlug);}openModal();};const briefHandler=()=>setBriefOpen(true);const hashHandler=()=>{if(window.location.hash===\"#submit\"){openModal();history.replaceState(null,\"\",window.location.pathname+window.location.search);}};document.addEventListener(\"click\",clickHandler,true);window.addEventListener(\"monoco:open-entry-modal\",eventHandler);window.addEventListener(\"monoco:open-brief-modal\",briefHandler);window.addEventListener(\"hashchange\",hashHandler);hashHandler();return()=>{document.removeEventListener(\"click\",clickHandler,true);window.removeEventListener(\"monoco:open-entry-modal\",eventHandler);window.removeEventListener(\"monoco:open-brief-modal\",briefHandler);window.removeEventListener(\"hashchange\",hashHandler);};},[call]);useEffect(()=>{if(!open&&!briefOpen)return;const previousOverflow=document.body.style.overflow;document.body.style.overflow=\"hidden\";const keyHandler=event=>{if(event.key===\"Escape\"&&status!==\"submitting\"){if(briefOpen)setBriefOpen(false);else setOpen(false);}};window.addEventListener(\"keydown\",keyHandler);return()=>{document.body.style.overflow=previousOverflow;window.removeEventListener(\"keydown\",keyHandler);};},[open,briefOpen,status]);useEffect(()=>{if(!open&&!briefOpen||call)return;const slug=getInitialSlug(fallbackSlug);const endpoint=slug?`${workerURL}/api/public/calls/${slug}`:`${workerURL}/api/public/calls/active`;fetch(endpoint).then(async response=>{const json=await response.json().catch(()=>({}));if(!response.ok)throw new Error(json?.error||\"Unable to load the active challenge.\");return json;}).then(json=>{const nextCall=json?.data;if(!nextCall?.slug)throw new Error(\"No active challenge is available.\");setCall(nextCall);setSlots(createSlots(nextCall.categories||[]));const selectedCategory=nextCall.categories?.some(category=>category.slug===requestedCategory)?requestedCategory:nextCall.categories?.[0]?.slug||\"\";setActiveCategory(selectedCategory);setStatus(\"idle\");setMessage(\"\");}).catch(error=>{setMessage(error instanceof Error?error.message:\"Unable to load the active challenge.\");setStatus(\"error\");});},[open,briefOpen,call,fallbackSlug,workerURL,requestedCategory]);useEffect(()=>{if(!open)return;let alive=true;setAccountState(\"checking\");const loadAccount=async()=>{try{const sessionResponse=await fetch(`${workerURL}/api/auth/session`,{credentials:\"include\"});const sessionJson=await sessionResponse.json().catch(()=>({}));if(!sessionResponse.ok)throw new Error(\"Unable to verify your monoCO session.\");if(!alive)return;const session=sessionJson?.data;if(!session?.authenticated||!session?.user?.email){setAccountState(\"guest\");return;}setAccountState(\"authenticated\");setAccountNeedsName(true);setArtist(current=>({...current,email:session.user.email}));const profileResponse=await fetch(`${workerURL}/api/account/bootstrap`,{method:\"POST\",credentials:\"include\"});const profileJson=await profileResponse.json().catch(()=>({}));if(!profileResponse.ok||!profileJson?.data?.artist)return;if(!alive)return;const data=profileJson.data;const profile=data.artist;setAccountNeedsName(!profile.first_name||!profile.last_name);setArtist(current=>({...current,firstName:profile.first_name||current.firstName,lastName:profile.last_name||current.lastName,email:profile.email||current.email,instagram:profile.instagram_handle||current.instagram,newsletterOptIn:data.preferences?.updates_opt_in??current.newsletterOptIn}));}catch{if(alive)setAccountState(\"unavailable\");}};loadAccount();return()=>{alive=false;};},[open,workerURL]);useEffect(()=>{if(open||status!==\"success\")return;resetSubmissionForm();},[open,status,resetSubmissionForm]);useEffect(()=>()=>{Object.values(filePreviewsRef.current).forEach(url=>URL.revokeObjectURL(url));},[]);const clearSubmitError=()=>{if(status===\"error\"&&call){setStatus(\"idle\");setMessage(\"\");}};const updateArtist=(key,value)=>{setArtist(current=>({...current,[key]:value}));clearSubmitError();};const updateSlot=(categorySlug,patch)=>{setSlots(current=>({...current,[categorySlug]:{...current[categorySlug]||emptySlot,...patch}}));clearSubmitError();};const setSlotFile=(categorySlug,file)=>{if(!categorySlug)return;const error=file?validateFile(file):\"\";updateSlot(categorySlug,{file:error?null:file,error});setFilePreviews(current=>{if(current[categorySlug])URL.revokeObjectURL(current[categorySlug]);const next={...current};if(file&&!error)next[categorySlug]=URL.createObjectURL(file);else delete next[categorySlug];filePreviewsRef.current=next;return next;});if(fileInputRef.current)fileInputRef.current.value=\"\";};const acceptDroppedFile=event=>{event.preventDefault();setDragActive(false);setSlotFile(activeCategory,event.dataTransfer.files?.[0]||null);};const handleDropzoneKey=event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();fileInputRef.current?.click();}};const handleSubmit=async event=>{event.preventDefault();if(!canSubmit||!call)return;setStatus(\"submitting\");setMessage(\"\");const formData=new FormData;formData.set(\"firstName\",artist.firstName.trim());formData.set(\"lastName\",artist.lastName.trim());formData.set(\"email\",artist.email.trim());formData.set(\"instagram\",artist.instagram.trim());formData.set(\"ownershipConfirmed\",String(artist.ownershipConfirmed));formData.set(\"consent\",String(artist.consent));formData.set(\"newsletterOptIn\",String(artist.newsletterOptIn));formData.set(\"slots\",JSON.stringify(filledSlots.map(({category,slot})=>({category:category.slug,title:slot.title.trim(),location:slot.location.trim(),statement:slot.statement.trim()}))));filledSlots.forEach(({category,slot})=>{if(slot.file)formData.set(`image:${category.slug}`,slot.file);});try{if(accountState===\"authenticated\"&&accountNeedsName){const profileResponse=await fetch(`${workerURL}/api/account/profile`,{method:\"PATCH\",credentials:\"include\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({first_name:artist.firstName.trim(),last_name:artist.lastName.trim(),display_name:`${artist.firstName.trim()} ${artist.lastName.trim()}`.trim()})});const profileJson=await profileResponse.json().catch(()=>({}));if(!profileResponse.ok)throw new Error(profileJson?.error||\"Unable to update your account profile.\");setAccountNeedsName(false);}const response=await fetch(`${workerURL}/api/public/calls/${call.slug}/entries`,{method:\"POST\",body:formData,credentials:\"include\"});const json=await response.json().catch(()=>({}));if(!response.ok){const errors=Array.isArray(json?.errors)?json.errors.join(\" \"):json?.error;throw new Error(errors||\"Unable to submit your entry.\");}setStatus(\"success\");setMessage(\"Your entry was received.\");}catch(error){setStatus(\"error\");setMessage(error instanceof Error?error.message:\"Unable to submit your entry.\");}};const closeModal=()=>{if(status===\"submitting\")return;resetSubmissionForm();setOpen(false);};const goToImages=()=>{setShowArtistErrors(true);if(canContinueStep1)setStep(2);};const createAccount=()=>{const redirect=typeof window===\"undefined\"?\"https://www.monococollective.com/monthly-challenge\":window.location.href;window.location.assign(`https://account.monococollective.com/sign-up?redirect=${encodeURIComponent(redirect)}`);};const summary=filledSlots.length===1?`One image in ${filledSlots[0].category.label}. Artist and image details can still be edited before submission.`:`Review your ${filledSlots.length} images. Artist and image details can still be edited before submission.`;return /*#__PURE__*/_jsxs(\"div\",{className:\"mc-root\",style:rootTokens,children:[/*#__PURE__*/_jsx(ChallengeStyleMount,{}),showButton&&/*#__PURE__*/_jsx(Button,{onClick:()=>setOpen(true),children:buttonLabel}),briefOpen&&typeof document!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{className:\"mc-overlay\",style:rootTokens,role:\"presentation\",onMouseDown:event=>{if(event.target===event.currentTarget)setBriefOpen(false);},children:/*#__PURE__*/_jsxs(\"article\",{className:\"mc-modal\",role:\"dialog\",\"aria-modal\":\"true\",\"aria-labelledby\":\"mc-brief-title\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"mc-close\",type:\"button\",onClick:()=>setBriefOpen(false),\"aria-label\":\"Close full brief\",children:\"\\xd7\"}),/*#__PURE__*/_jsxs(\"header\",{className:\"mc-header\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mc-eyebrow\",children:\"The Challenge\"}),/*#__PURE__*/_jsx(\"h1\",{id:\"mc-brief-title\",children:call?.title||\"Monthly Challenge\"})]}),!call&&status===\"idle\"&&/*#__PURE__*/_jsx(FormMessage,{status:\"info\",children:\"Loading the full brief…\"}),!call&&status===\"error\"&&/*#__PURE__*/_jsx(FormMessage,{status:\"error\",children:message}),call&&/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsx(\"div\",{style:{color:\"var(--text-light)\",font:\"300 16px/26px Inter,sans-serif\",whiteSpace:\"pre-wrap\"},children:call.brief||\"The full brief will be available soon.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-actions mc-actions--start\",children:[/*#__PURE__*/_jsx(Button,{styleType:\"ghost\",onClick:()=>setBriefOpen(false),children:\"Close\"}),/*#__PURE__*/_jsx(Button,{onClick:()=>{setBriefOpen(false);setOpen(true);},children:\"Submit Your Image\"})]})]})]})}),document.body),open&&typeof document!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{className:\"mc-overlay\",style:rootTokens,role:\"presentation\",onMouseDown:event=>{if(event.target===event.currentTarget)closeModal();},children:/*#__PURE__*/_jsxs(\"div\",{ref:modalRef,className:\"mc-modal\",role:\"dialog\",\"aria-modal\":\"true\",\"aria-labelledby\":\"mc-title\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"mc-close\",type:\"button\",onClick:closeModal,disabled:status===\"submitting\",\"aria-label\":\"Close submission form\",children:\"\\xd7\"}),/*#__PURE__*/_jsx(ChallengeHeader,{call:call}),!call&&status===\"idle\"&&/*#__PURE__*/_jsx(FormMessage,{status:\"info\",children:\"Loading the active challenge…\"}),!call&&status===\"error\"&&/*#__PURE__*/_jsx(FormMessage,{status:\"error\",children:message}),status===\"success\"?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Stepper,{step:3,complete:true}),/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsx(FormMessage,{status:\"success\",children:\"Entry submitted successfully.\"}),/*#__PURE__*/_jsxs(\"p\",{className:\"mc-summary\",children:[\"A confirmation has been sent to \",artist.email,\". Your entry will appear after review.\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"mc-actions mc-actions--start\",children:/*#__PURE__*/_jsx(Button,{onClick:closeModal,children:\"Done\"})})]})]}):call?accountState===\"checking\"?/*#__PURE__*/_jsx(\"section\",{className:\"mc-form-section\",children:/*#__PURE__*/_jsx(FormMessage,{status:\"info\",children:\"Checking your monoCO account…\"})}):accountState===\"unavailable\"?/*#__PURE__*/_jsx(\"section\",{className:\"mc-form-section\",children:/*#__PURE__*/_jsx(FormMessage,{status:\"error\",children:\"We could not verify your monoCO session. Refresh the page and try again.\"})}):accountState===\"guest\"&&!guestProceed?/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsx(Stepper,{step:1}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-intro\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"How would you like to submit?\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Create an account to keep your submissions together and reuse your photographer details, or continue without an account.\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-actions mc-actions--start\",children:[/*#__PURE__*/_jsx(Button,{onClick:createAccount,children:\"Create a monoCO account\"}),/*#__PURE__*/_jsx(Button,{styleType:\"secondary\",onClick:()=>setGuestProceed(true),children:\"Continue as guest\"})]})]}):/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,noValidate:true,children:[/*#__PURE__*/_jsx(Stepper,{step:step}),step===1&&/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mc-artist-grid\",children:[/*#__PURE__*/_jsx(Field,{id:\"mc-first-name\",label:\"First name\",value:artist.firstName,placeholder:\"First name\",required:true,disabled:status===\"submitting\",error:showArtistErrors&&!artist.firstName.trim()?\"Enter your first name.\":\"\",onChange:value=>updateArtist(\"firstName\",value)}),/*#__PURE__*/_jsx(Field,{id:\"mc-last-name\",label:\"Last name\",value:artist.lastName,placeholder:\"Last name\",required:true,disabled:status===\"submitting\",error:showArtistErrors&&!artist.lastName.trim()?\"Enter your last name.\":\"\",onChange:value=>updateArtist(\"lastName\",value)}),/*#__PURE__*/_jsx(Field,{id:\"mc-email\",label:\"Email\",value:artist.email,placeholder:\"name@example.com\",type:\"email\",required:true,disabled:status===\"submitting\",error:showArtistErrors&&!emailIsValid?\"Enter a valid email address.\":\"\",onChange:value=>updateArtist(\"email\",value)}),/*#__PURE__*/_jsx(Field,{id:\"mc-instagram\",label:\"Instagram (optional)\",value:artist.instagram,placeholder:\"@handle\",disabled:status===\"submitting\",onChange:value=>updateArtist(\"instagram\",value)})]}),/*#__PURE__*/_jsx(\"div\",{className:\"mc-actions\",children:/*#__PURE__*/_jsx(Button,{disabled:!canContinueStep1,onClick:goToImages,children:\"Continue\"})})]}),step===2&&/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mc-tabs-block\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"mc-small-label\",children:\"Categories\"}),/*#__PURE__*/_jsx(\"div\",{className:\"mc-tabs\",role:\"tablist\",\"aria-label\":\"Image categories\",children:categories.map(category=>{const added=Boolean(slots[category.slug]?.file);return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",role:\"tab\",\"aria-selected\":category.slug===activeCategory,className:\"mc-tab\",\"data-active\":category.slug===activeCategory||undefined,onClick:()=>setActiveCategory(category.slug),children:[category.label,added&&/*#__PURE__*/_jsx(\"span\",{children:\" / Added\"})]},category.id);})})]}),activeCategoryData?.description&&/*#__PURE__*/_jsx(\"p\",{className:\"mc-category-description\",children:activeCategoryData.description}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-upload-wrap\",children:[/*#__PURE__*/_jsx(\"input\",{ref:fileInputRef,className:\"mc-visually-hidden\",type:\"file\",accept:\"image/jpeg,image/png\",onChange:event=>setSlotFile(activeCategory,event.target.files?.[0]||null)}),!activeSlot.file?/*#__PURE__*/_jsxs(\"div\",{className:\"mc-upload\",\"data-state\":activeSlot.error?\"error\":dragActive?\"focus\":\"empty\",role:\"button\",tabIndex:0,\"aria-label\":`Upload an image for ${activeCategoryData?.label||\"this category\"}`,onClick:()=>fileInputRef.current?.click(),onKeyDown:handleDropzoneKey,onDragEnter:event=>{event.preventDefault();setDragActive(true);},onDragOver:event=>event.preventDefault(),onDragLeave:()=>setDragActive(false),onDrop:acceptDroppedFile,children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Drag and drop, or click to browse\"}),/*#__PURE__*/_jsx(\"span\",{children:\"JPG or PNG accepted • 1 image • 5 MB maximum\"})]}):/*#__PURE__*/_jsxs(\"div\",{className:\"mc-upload-item\",children:[filePreviews[activeCategory]&&/*#__PURE__*/_jsx(\"img\",{src:filePreviews[activeCategory],alt:\"Selected submission preview\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-upload-item__details\",children:[/*#__PURE__*/_jsx(\"strong\",{children:activeSlot.file.name}),/*#__PURE__*/_jsx(\"span\",{children:\"One monochrome image per category. Max file size is 5 MB.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-upload-item__actions\",children:[/*#__PURE__*/_jsx(Button,{styleType:\"ghost\",onClick:()=>fileInputRef.current?.click(),children:\"Change\"}),/*#__PURE__*/_jsx(Button,{styleType:\"ghost\",onClick:()=>setSlotFile(activeCategory,null),children:\"Remove\"})]})]})]}),activeSlot.error&&/*#__PURE__*/_jsx(\"p\",{className:\"mc-upload-error\",role:\"alert\",children:activeSlot.error})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-image-fields\",children:[/*#__PURE__*/_jsx(Field,{id:`mc-title-${activeCategory}`,label:\"Image title\",value:activeSlot.title,placeholder:\"Untitled\",required:true,disabled:status===\"submitting\",onChange:value=>updateSlot(activeCategory,{title:value})}),/*#__PURE__*/_jsx(Field,{id:`mc-location-${activeCategory}`,label:\"Location (optional)\",value:activeSlot.location,placeholder:\"City, country\",disabled:status===\"submitting\",onChange:value=>updateSlot(activeCategory,{location:value})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-actions mc-actions--split\",children:[/*#__PURE__*/_jsx(Button,{styleType:\"secondary\",onClick:()=>setStep(1),children:\"Back\"}),/*#__PURE__*/_jsx(Button,{disabled:!canContinueStep2,onClick:()=>setStep(3),children:\"Continue\"})]})]}),step===3&&/*#__PURE__*/_jsxs(\"section\",{className:\"mc-form-section\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{id:\"mc-title\",className:\"mc-review-title\",children:\"Review your entry\"}),/*#__PURE__*/_jsx(\"p\",{className:\"mc-summary\",children:summary})]}),/*#__PURE__*/_jsx(FormMessage,{status:status===\"error\"?\"error\":\"info\",children:status===\"submitting\"?\"Submitting your images securely…\":status===\"error\"?message:`${filledSlots.length} image${filledSlots.length===1?\"\":\"s\"} submitted across ${filledSlots.length} categor${filledSlots.length===1?\"y\":\"ies\"}.`}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-confirmations\",children:[/*#__PURE__*/_jsx(Checkbox,{checked:artist.ownershipConfirmed,disabled:status===\"submitting\",label:\"I confirm that I created and own the submitted work.\",onChange:value=>updateArtist(\"ownershipConfirmed\",value)}),/*#__PURE__*/_jsx(Checkbox,{checked:artist.consent,disabled:status===\"submitting\",label:\"I agree to the Monthly Challenge submission terms.\",onChange:value=>updateArtist(\"consent\",value)}),/*#__PURE__*/_jsx(Checkbox,{checked:artist.newsletterOptIn,disabled:status===\"submitting\",label:\"Send me updates on future monoCO challenges and features.\",onChange:value=>updateArtist(\"newsletterOptIn\",value)})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mc-actions mc-actions--split\",children:[/*#__PURE__*/_jsx(Button,{styleType:\"secondary\",disabled:status===\"submitting\",onClick:()=>setStep(2),children:\"Back\"}),/*#__PURE__*/_jsx(Button,{type:\"submit\",disabled:!canSubmit,loading:status===\"submitting\",children:\"Submit entry\"})]})]})]}):null]})}),document.body)]});}const rootTokens={\"--background-primary\":\"#000000\",\"--background-secondary\":\"#3b3b3b\",\"--text-light\":\"#f5f5f5\",\"--text-dark\":\"#3b3b3b\",\"--text-muted\":\"#ababab\",\"--text-brand\":\"#f2b72e\",\"--border-input\":\"#3b3b3b\",\"--status-info\":\"#527a9e\",\"--status-error\":\"#c65353\",\"--status-success\":\"#4f8a5b\",\"--interactive-primary-default\":\"#f2b72e\",\"--interactive-primary-hover\":\"#dfa51f\",\"--interactive-primary-active\":\"#c58d0f\",\"--interactive-secondary-default\":\"#3b3b3b\",\"--interactive-secondary-hover\":\"#1a1a1a\",\"--interactive-secondary-active\":\"#000000\",\"--interactive-disabled-opacity\":\"0.4\",\"--interactive-button-border-default\":\"transparent\",\"--interactive-button-border-focus\":\"#f2b72e\",\"--interactive-button-primary-text-default\":\"#3b3b3b\",\"--interactive-button-primary-text-hover\":\"#3b3b3b\",\"--interactive-button-primary-text-active\":\"#3b3b3b\",\"--interactive-button-primary-text-focus\":\"#3b3b3b\",\"--interactive-button-primary-text-disabled\":\"#3b3b3b\",\"--interactive-button-primary-background-focus\":\"#f2b72e\",\"--interactive-button-primary-background-disabled\":\"#f2b72e\",\"--interactive-button-secondary-text-default\":\"#f5f5f5\",\"--interactive-button-secondary-text-hover\":\"#f5f5f5\",\"--interactive-button-secondary-text-active\":\"#f5f5f5\",\"--interactive-button-secondary-text-focus\":\"#f5f5f5\",\"--interactive-button-secondary-text-disabled\":\"#f5f5f5\",\"--interactive-button-secondary-background-focus\":\"#3b3b3b\",\"--interactive-button-secondary-background-disabled\":\"#3b3b3b\",\"--interactive-ghost-text-default\":\"#ababab\",\"--interactive-ghost-text-hover\":\"#f2b72e\",\"--interactive-ghost-text-active\":\"#f2b72e\",\"--interactive-ghost-text-disabled\":\"#ababab\",\"--interactive-ghost-background-default\":\"transparent\",\"--interactive-ghost-background-hover\":\"#f2b72e1a\",\"--interactive-ghost-background-active\":\"#f2b72e33\",\"--interactive-button-ghost-border-default\":\"#3b3b3b\",\"--interactive-button-ghost-border-active\":\"#f2b72e\",\"--interactive-input-label-default\":\"#f5f5f5\",\"--interactive-input-label-filled\":\"#f5f5f5\",\"--interactive-input-label-error\":\"#c65353\",\"--interactive-input-text-default\":\"#ababab\",\"--interactive-input-text-filled\":\"#f5f5f5\",\"--interactive-input-text-error\":\"#ababab\",\"--interactive-input-background-default\":\"#000000\",\"--interactive-input-background-filled\":\"#000000\",\"--interactive-input-background-error\":\"#000000\",\"--interactive-input-border-default\":\"#3b3b3b\",\"--interactive-input-border-hover\":\"#3b3b3b\",\"--interactive-input-border-focus\":\"#f2b72e\",\"--interactive-input-border-filled\":\"#3b3b3b\",\"--interactive-input-border-error\":\"#c65353\",\"--interactive-input-helper-default\":\"#ababab\",\"--interactive-input-helper-error\":\"#c65353\",\"--interactive-input-opacity-disabled\":\"0.4\",\"--interactive-stepper-text-current\":\"#3b3b3b\",\"--interactive-stepper-background-current\":\"#f2b72e\",\"--interactive-stepper-text-inactive\":\"#f5f5f5\",\"--interactive-stepper-background-inactive\":\"transparent\",\"--interactive-stepper-text-complete\":\"#f2b72e\",\"--interactive-stepper-background-complete\":\"#f2b72e1a\",\"--interactive-stepper-border-complete\":\"#f2b72e\",\"--interactive-tab-text-default\":\"#ababab\",\"--interactive-tab-text-hover\":\"#f2b72e\",\"--interactive-tab-text-active\":\"#f2b72e\",\"--interactive-tab-background-default\":\"transparent\",\"--interactive-tab-background-hover\":\"#f2b72e1a\",\"--interactive-tab-background-active\":\"#f2b72e33\",\"--interactive-tab-border-default\":\"#3b3b3b\",\"--interactive-tab-border-hover\":\"#3b3b3b\",\"--interactive-tab-border-active\":\"#f2b72e\",\"--interactive-upload-title-empty\":\"#f5f5f5\",\"--interactive-upload-requirements-empty\":\"#ababab\",\"--interactive-upload-background-empty\":\"#000000\",\"--interactive-upload-border-empty\":\"#3b3b3b\",\"--interactive-upload-background-focus\":\"#000000\",\"--interactive-upload-border-focus\":\"#f2b72e\",\"--interactive-upload-title-error\":\"#c65353\",\"--interactive-upload-requirements-error\":\"#c65353\",\"--interactive-upload-background-error\":\"#000000\",\"--interactive-upload-border-error\":\"#c65353\",\"--interactive-upload-item-background-added\":\"#000000\",\"--interactive-upload-item-border-added\":\"#3b3b3b\",\"--interactive-upload-item-filename-added\":\"#f5f5f5\",\"--interactive-upload-item-helper-added\":\"#ababab\",\"--interactive-checkbox-unchecked-background-default\":\"transparent\",\"--interactive-checkbox-unchecked-border-default\":\"#3b3b3b\",\"--interactive-checkbox-checked-background-default\":\"#f2b72e\",\"--interactive-checkbox-checked-border-default\":\"#3b3b3b\",\"--interactive-checkbox-label-default\":\"#f5f5f5\",\"--interactive-checkbox-indicator-default\":\"#3b3b3b\",\"--interactive-checkbox-unchecked-border-focus\":\"#f2b72e\",\"--interactive-checkbox-checked-border-focus\":\"#f2b72e\",\"--interactive-checkbox-opacity-disabled\":\"0.4\"};const challengeStyles=`\n.mc-root, .mc-root * { box-sizing: border-box; }\n.mc-root { font-family: Inter, sans-serif; font-weight: 300; color: var(--text-light); }\n.mc-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.82); }\n.mc-modal { position: relative; width: min(812px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 40px; background: var(--background-primary); border: 1px solid var(--border-input); }\n.mc-close { position: absolute; top: 12px; right: 16px; z-index: 2; width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-muted); font: 300 26px/32px Inter,sans-serif; cursor: pointer; }\n.mc-close:hover, .mc-close:focus-visible { color: var(--text-light); outline: 1px solid var(--interactive-button-border-focus); }\n.mc-header { display: flex; flex-direction: column; margin: 0 0 24px; }\n.mc-eyebrow { margin: 0; color: var(--text-brand); font: 300 16px/24px Inter,sans-serif; letter-spacing: 0; text-transform: uppercase; }\n.mc-header h1 { margin: 0; color: var(--text-light); font-family: \"Bebas Neue\",sans-serif; font-size: 56px; font-weight: 400; line-height: 67.2px; letter-spacing: 0; text-transform: lowercase; }\n.mc-intro { display: flex; flex-direction: column; gap: 16px; color: var(--text-light); font: 300 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-intro strong { font-weight: 700; }\n.mc-intro strong, .mc-intro p { margin: 0; }\n.mc-intro p { white-space: pre-line; }\n.mc-step-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 24px; }\n.mc-step-block strong { color: var(--text-brand); font: 700 16px/24px Inter,sans-serif; letter-spacing: 0; text-transform: uppercase; }\n.mc-stepper { display: flex; gap: 8px; height: 28px; }\n.mc-step { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--border-input); border-radius: 50%; background: var(--interactive-stepper-background-inactive); color: var(--interactive-stepper-text-inactive); font: 500 12px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-step[data-state=\"current\"] { border-color: var(--interactive-button-border-default); background: var(--interactive-stepper-background-current); color: var(--interactive-stepper-text-current); }\n.mc-step[data-state=\"complete\"] { border-color: var(--interactive-stepper-border-complete); background: var(--interactive-stepper-background-complete); color: var(--interactive-stepper-text-complete); }\n.mc-form-section { display: flex; flex-direction: column; gap: 24px; }\n.mc-artist-grid { display: grid; grid-template-columns: 200px 200px minmax(220px,1fr); gap: 10px 16px; }\n.mc-artist-grid > :last-child { grid-column: 1 / 2; width: 250px; }\n.mc-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--interactive-input-label-default); }\n.mc-field__label, .mc-field__helper { font: 300 14px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-field__control { width: 100%; height: 48px; padding: 8px 16px; border: 1px solid var(--interactive-input-border-default); border-radius: 0; outline: none; background: var(--interactive-input-background-default); color: var(--interactive-input-text-default); font: 300 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-field__control::placeholder { color: var(--interactive-input-text-default); opacity: 1; }\n.mc-field__control:-webkit-autofill,\n.mc-field__control:-webkit-autofill:hover,\n.mc-field__control:-webkit-autofill:focus,\n.mc-field__control:-webkit-autofill:active {\n  -webkit-box-shadow: 0 0 0 1000px var(--interactive-input-background-default) inset !important;\n  box-shadow: 0 0 0 1000px var(--interactive-input-background-default) inset !important;\n  -webkit-text-fill-color: var(--interactive-input-text-default) !important;\n  caret-color: var(--interactive-input-text-default) !important;\n}\n.mc-field__control:hover { border-color: var(--interactive-input-border-hover); }\n.mc-field__control:focus { border-color: var(--interactive-input-border-focus); }\n.mc-field[data-state=\"filled\"] .mc-field__control { border-color: var(--interactive-input-border-filled); background: var(--interactive-input-background-filled); color: var(--interactive-input-text-filled); }\n.mc-field[data-state=\"error\"] .mc-field__label, .mc-field[data-state=\"error\"] .mc-field__helper { color: var(--interactive-input-label-error); }\n.mc-field[data-state=\"error\"] .mc-field__control { border-color: var(--interactive-input-border-error); background: var(--interactive-input-background-error); color: var(--interactive-input-text-error); }\n.mc-field[data-state=\"disabled\"] { opacity: var(--interactive-input-opacity-disabled); }\n.mc-field__helper { color: var(--interactive-input-helper-default); }\n.mc-actions { display: flex; justify-content: flex-end; gap: 16px; }\n.mc-actions--split { justify-content: space-between; }\n.mc-actions--start { justify-content: flex-start; }\n.mc-button { display: inline-flex; min-width: max-content; height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 8px 24px; border: 1px solid var(--interactive-button-border-default); border-radius: 0; background: var(--interactive-primary-default); color: var(--interactive-button-primary-text-default); font: 700 16px/24px Inter,sans-serif; letter-spacing: 0; cursor: pointer; }\n.mc-button:hover:not(:disabled) { background: var(--interactive-primary-hover); color: var(--interactive-button-primary-text-hover); }\n.mc-button:active:not(:disabled) { background: var(--interactive-primary-active); color: var(--interactive-button-primary-text-active); }\n.mc-button:focus-visible { border-color: var(--interactive-button-border-focus); background: var(--interactive-button-primary-background-focus); color: var(--interactive-button-primary-text-focus); outline: 1px solid var(--interactive-button-border-focus); outline-offset: 2px; }\n.mc-button:disabled { background: var(--interactive-button-primary-background-disabled); color: var(--interactive-button-primary-text-disabled); opacity: var(--interactive-disabled-opacity); cursor: not-allowed; }\n.mc-button[data-style=\"secondary\"] { background: var(--interactive-secondary-default); color: var(--interactive-button-secondary-text-default); }\n.mc-button[data-style=\"secondary\"]:hover:not(:disabled) { background: var(--interactive-secondary-hover); color: var(--interactive-button-secondary-text-hover); }\n.mc-button[data-style=\"secondary\"]:active:not(:disabled) { background: var(--interactive-secondary-active); color: var(--interactive-button-secondary-text-active); }\n.mc-button[data-style=\"secondary\"]:focus-visible { background: var(--interactive-button-secondary-background-focus); color: var(--interactive-button-secondary-text-focus); }\n.mc-button[data-style=\"secondary\"]:disabled { background: var(--interactive-button-secondary-background-disabled); color: var(--interactive-button-secondary-text-disabled); }\n.mc-button[data-style=\"ghost\"] { border-color: var(--interactive-button-ghost-border-default); background: var(--interactive-ghost-background-default); color: var(--interactive-ghost-text-default); }\n.mc-button[data-style=\"ghost\"]:hover:not(:disabled) { background: var(--interactive-ghost-background-hover); color: var(--interactive-ghost-text-hover); }\n.mc-button[data-style=\"ghost\"]:active:not(:disabled) { border-color: var(--interactive-button-ghost-border-active); background: var(--interactive-ghost-background-active); color: var(--interactive-ghost-text-active); }\n.mc-button__spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mc-spin .8s linear infinite; }\n@keyframes mc-spin { to { transform: rotate(360deg); } }\n.mc-tabs-block { display: flex; flex-direction: column; gap: 4px; }\n.mc-small-label { color: var(--text-muted); font: 300 14px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-tabs { display: flex; flex-wrap: wrap; }\n.mc-tab { height: 40px; padding: 8px 16px; border: 1px solid var(--interactive-tab-border-default); border-right-width: 0; background: var(--interactive-tab-background-default); color: var(--interactive-tab-text-default); font: 500 14px/normal Inter,sans-serif; letter-spacing: 0; cursor: pointer; }\n.mc-tab:last-child { border-right-width: 1px; }\n.mc-tab:hover { border-color: var(--interactive-tab-border-hover); background: var(--interactive-tab-background-hover); color: var(--interactive-tab-text-hover); }\n.mc-tab:focus-visible { border-color: var(--interactive-button-border-focus); outline: none; }\n.mc-tab[data-active] { border-color: var(--interactive-tab-border-active); background: var(--interactive-tab-background-active); color: var(--interactive-tab-text-active); }\n.mc-tab span { color: inherit; font: 400 12px/normal Inter,sans-serif; }\n.mc-category-description { margin: 0; color: var(--text-light); font: 300 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload-wrap { display: flex; flex-direction: column; gap: 8px; }\n.mc-upload { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; border: 1px dashed var(--interactive-upload-border-empty); background: var(--interactive-upload-background-empty); text-align: center; cursor: pointer; }\n.mc-upload strong { color: var(--interactive-upload-title-empty); font: 700 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload span { color: var(--interactive-upload-requirements-empty); font: 300 12px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload[data-state=\"focus\"], .mc-upload:focus-visible { border-color: var(--interactive-upload-border-focus); background: var(--interactive-upload-background-focus); outline: none; }\n.mc-upload[data-state=\"error\"] { border-color: var(--interactive-upload-border-error); background: var(--interactive-upload-background-error); }\n.mc-upload[data-state=\"error\"] strong { color: var(--interactive-upload-title-error); }\n.mc-upload[data-state=\"error\"] span, .mc-upload-error { color: var(--interactive-upload-requirements-error); }\n.mc-upload-error { margin: 0; font: 300 14px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload-item { display: flex; min-height: 126px; align-items: stretch; gap: 16px; padding: 8px; border: 1px solid var(--interactive-upload-item-border-added); background: var(--interactive-upload-item-background-added); }\n.mc-upload-item img { width: 110px; min-height: 108px; object-fit: cover; border: 1px solid var(--interactive-upload-item-border-added); }\n.mc-upload-item__details { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }\n.mc-upload-item__details strong { max-width: 100%; overflow-wrap: anywhere; color: var(--interactive-upload-item-filename-added); font: 700 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload-item__details > span { color: var(--interactive-upload-item-helper-added); font: 300 12px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-upload-item__actions { display: flex; gap: 8px; margin-top: 4px; }\n.mc-image-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }\n.mc-review-title { margin: 0 0 16px; color: var(--text-light); font: 700 16px/24px Inter,sans-serif; letter-spacing: 0; }\n.mc-summary { margin: 0; color: var(--text-muted); font: 300 14px/18px Inter,sans-serif; letter-spacing: 0; }\n.mc-message { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 16px; border: 1px solid var(--status-info); background: var(--background-secondary); color: var(--text-light); font: 400 14px/20px Inter,sans-serif; letter-spacing: 0; }\n.mc-message__indicator { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--status-info); }\n.mc-message[data-status=\"error\"] { border-color: var(--status-error); }\n.mc-message[data-status=\"error\"] .mc-message__indicator { background: var(--status-error); }\n.mc-message[data-status=\"success\"] { border-color: var(--status-success); }\n.mc-message[data-status=\"success\"] .mc-message__indicator { background: var(--status-success); }\n.mc-confirmations { display: flex; flex-direction: column; gap: 12px; }\n.mc-checkbox { position: relative; display: flex; align-items: flex-start; gap: 8px; color: var(--interactive-checkbox-label-default); font: 300 16px/normal Inter,sans-serif; letter-spacing: 0; cursor: pointer; }\n.mc-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }\n.mc-checkbox__control { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; border: 1px solid var(--interactive-checkbox-unchecked-border-default); background: var(--interactive-checkbox-unchecked-background-default); color: var(--interactive-checkbox-indicator-default); font: 700 14px/normal Inter,sans-serif; }\n.mc-checkbox[data-checked=\"true\"] .mc-checkbox__control { border-color: var(--interactive-checkbox-checked-border-default); background: var(--interactive-checkbox-checked-background-default); }\n.mc-checkbox input:focus-visible + .mc-checkbox__control { border-color: var(--interactive-checkbox-unchecked-border-focus); outline: 1px solid var(--interactive-checkbox-unchecked-border-focus); outline-offset: 2px; }\n.mc-checkbox[data-checked=\"true\"] input:focus-visible + .mc-checkbox__control { border-color: var(--interactive-checkbox-checked-border-focus); }\n.mc-checkbox[data-disabled] { opacity: var(--interactive-checkbox-opacity-disabled); cursor: not-allowed; }\n.mc-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }\n@media (max-width: 760px) {\n  .mc-overlay { align-items: stretch; padding: 0; }\n  .mc-modal { width: 100%; max-height: 100vh; padding: 40px 24px 32px; border: 0; }\n  .mc-header h1 { font-size: 48px; }\n  .mc-artist-grid, .mc-image-fields { grid-template-columns: 1fr; }\n  .mc-artist-grid > :last-child { grid-column: auto; width: auto; }\n  .mc-tabs { flex-direction: column; }\n  .mc-tab { width: 100%; border-right-width: 1px; border-bottom-width: 0; text-align: left; }\n  .mc-tab:last-child { border-bottom-width: 1px; }\n  .mc-upload-item { flex-direction: column; }\n  .mc-upload-item img { width: 100%; height: 180px; }\n}\n@media (prefers-reduced-motion: reduce) { .mc-button__spinner { animation: none; } }\n`;ChallengeEntryModal.defaultProps={workerURL:WORKER_BASE,fallbackSlug:\"\",showButton:true,buttonLabel:\"Submit Your Image\"};addPropertyControls(ChallengeEntryModal,{workerURL:{type:ControlType.String,title:\"Worker URL\",defaultValue:WORKER_BASE},fallbackSlug:{type:ControlType.String,title:\"Fallback Slug\",defaultValue:\"\"},showButton:{type:ControlType.Boolean,title:\"Show Button\",defaultValue:true},buttonLabel:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Submit Your Image\"}});export default ChallengeEntryModal;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChallengeEntryModal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ChallengeEntryModal.map"],"mappings":"6OAAkkB,SAAS,EAAS,EAAI,CAAyC,OAA9B,IAAS,OAAkB,GAAU,IAAI,gBAAgB,EAAO,SAAS,MAAM,CAAC,CAAC,IAAI,CAAG,GAAG,EAAG,CAAC,SAAS,GAAe,EAAa,CAAC,OAAO,EAAS,MAAM,GAAG,EAAS,WAAW,GAAG,CAAa,CAAC,SAAS,GAAuB,EAAO,CAAC,GAAG,EAAE,aAAkB,aAAa,MAAO,GAAM,IAAM,EAAQ,EAAO,QAAQ,6CAA6C,EAAE,GAAG,EAAE,aAAmB,aAAa,MAAO,GAAM,IAAM,EAAK,aAAmB,mBAAkB,EAAQ,aAAa,MAAM,GAAM,GAAG,OAAO,EAAK,SAAS,SAAS,GAAG,EAAK,SAAS,SAAS,CAAE,CAAC,SAAS,GAAY,EAAW,CAAC,OAAO,OAAO,YAAY,EAAW,IAAI,GAAU,CAAC,EAAS,KAAK,CAAC,GAAG,CAAS,CAAC,CAAC,CAAC,CAAE,CAAC,SAAS,GAAa,EAAK,CAAkJ,OAA7I,EAAoB,IAAI,EAAK,IAAI,EAAwC,EAAK,KAAK,EAAqB,qCAA2C,GAA1G,4BAA6G,CAAC,SAAS,EAAW,EAAM,EAAS,EAAS,CAAwD,OAApD,EAAe,WAAc,EAAe,QAAe,EAAM,SAAS,SAAU,CAAC,SAAS,EAAM,CAAC,K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