1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,839828,e=>{"use strict";var t=e.i(468531),r=e.i(903953),n=e.i(509736),a=e.i(296131),o=e.i(908924),i=e.i(895085),s=e.i(452864),l=e.i(531883);let d="email",u="first_name",c="last_name";function m(e){let t=e.email.trim().toLowerCase(),r=e.firstName?.trim(),n=e.lastName?.trim();return{[d]:t,creator_apply_started:!0,...r?{[u]:r}:{},...n?{[c]:n}:{}}}var f=e.i(817858),p=e.i(790224);let h={firstName:"",lastName:"",email:"",location:"",howDidYouHear:"",mainChannel:"",tiktokHandle:"",instagramHandle:"",youtubeHandle:"",otherHandle:"",additionalInfo:"",addressStreet:"",addressStreet2:"",addressCity:"",addressState:"",addressPostalCode:"",addressCountry:"",agreementConfirmed:!1},b=["firstName","lastName","email","location","howDidYouHear","mainChannel","socialHandles","agreementConfirmed","turnstile"],g={firstName:"First name",lastName:"Last name",email:"Email address",location:"Where are you located?",howDidYouHear:"How did you hear about UP?",mainChannel:"Main channel",socialHandles:"Social media handle",agreementConfirmed:"Creator Terms of Service",turnstile:"Security check"},x={socialHandles:"tiktokHandle",turnstile:"creator-apply-captcha"};function y(e,t){if(!e)return t;let r={...t},n=!1;for(let[a,o]of Object.entries(t)){let t=e.elements.namedItem(a);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){if(t instanceof HTMLInputElement&&"checkbox"===t.type){t.checked!==o&&(r[a]=t.checked,n=!0);continue}"string"==typeof o&&t.value!==o&&(r[a]=t.value,n=!0)}}return n?r:t}let v=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?"":"Please enter a valid email address":"Email address is required",N=e=>!!(e.tiktokHandle.trim()||e.instagramHandle.trim()||e.youtubeHandle.trim()||e.otherHandle.trim());function j(e,t){let r={};e.firstName.trim()||(r.firstName="First name is required"),e.lastName.trim()||(r.lastName="Last name is required");let n=v(e.email);return n&&(r.email=n),e.location.trim()||(r.location="Location is required"),e.howDidYouHear.trim()||(r.howDidYouHear="Please tell us how you heard about UP"),e.mainChannel||(r.mainChannel="Please select your main channel"),N(e)||(r.socialHandles="At least one social media handle is required"),e.agreementConfirmed||(r.agreementConfirmed="You must agree to the Creator Terms of Service"),t||(r.turnstile="Please complete the captcha before submitting."),r}e.s(["buildValidationErrors",0,j,"default",0,function(){let e=(0,a.useRouter)(),k=(0,a.useSearchParams)(),w=(0,s.usePostHogEvent)(),C=function(){let e=(0,s.usePostHogIdentify)(),t=(0,s.usePostHogSetPersonProperties)(),{isAuthenticated:n,hasHydrated:a}=(0,l.useAuthSession)(),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(!a)return;let i=function(e){let t;if(!((t=e.email.trim())&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)))return null;let r=m(e);return[r[d],r[u]??"",r[c]??""].join("|")}(r);if(!i||o.current===i)return;let s=m(r),l=s[d];n?t(s):e(l,s),o.current=i},[a,e,n,t])}(),[S,H]=(0,r.useState)(!1),[A,E]=(0,r.useState)("idle"),[D,I]=(0,r.useState)(""),[P,F]=(0,r.useState)({}),[T,L]=(0,r.useState)(null),[O,M]=(0,r.useState)(null),R=(0,r.useRef)(null),z=(0,r.useRef)(null),q=(0,r.useRef)(null),B=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{null!==B.current&&(clearTimeout(B.current),B.current=null)},[]);let[Y,$]=(0,r.useState)(h),[U,V]=(0,r.useState)(!1),_=(0,r.useRef)({formData:Y,validationErrors:P,turnstileToken:O});_.current={formData:Y,validationErrors:P,turnstileToken:O},(0,r.useEffect)(()=>{let e=k.get("dub_id");e&&(L(e),p.logger.debug("[Apply Form] Captured Dub click ID",{dubIdParam:e}))},[k]);let W=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(W.current)return;let e={},t=k.get("firstName"),r=k.get("lastName"),n=k.get("email"),a=k.get("tiktok"),o=k.get("instagram"),i=k.get("youtube");t&&(e.firstName=t),r&&(e.lastName=r),n&&(e.email=n),a&&(e.tiktokHandle=a),o&&(e.instagramHandle=o),i&&(e.youtubeHandle=i),Object.keys(e).length>0&&(W.current=!0,$(t=>({...t,...e})),p.logger.debug("[Apply Form] Applied query param prefill",{keys:Object.keys(e)}))},[k]);let J=(0,r.useCallback)(()=>{let{formData:e,validationErrors:t,turnstileToken:r}=_.current,n=y(q.current,e);if(n===e)return e;_.current={..._.current,formData:n},$(n);let a=Object.keys(t);if(a.length>0){let e=j(n,r),t=Object.fromEntries(a.filter(t=>e[t]).map(t=>[t,e[t]]));Object.keys(t).length!==a.length&&(_.current={..._.current,validationErrors:t},F(t),0===Object.keys(t).length&&(E("idle"),I("")))}return p.logger.debug("[Apply Form] Synced field values from the DOM"),n},[]);(0,r.useEffect)(()=>{let e=[0,250,1e3].map(e=>window.setTimeout(()=>J(),e)),t=()=>J();return window.addEventListener("pageshow",t),()=>
1{e.forEach(e=>window.clearTimeout(e)),window.removeEventListener("pageshow",t)}},[J]);let K=e=>{let t=x[e]??e,r=document.getElementById(t);r&&(r.scrollIntoView({behavior:"smooth",block:"center"}),(r instanceof HTMLInputElement||r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement)&&r.focus({preventScroll:!0}))},G=e=>P[e]?"border-red-500 ring-1 ring-red-500 focus:border-red-500 focus:ring-red-500":"border-border",Q=b.filter(e=>P[e]),X=[Y.firstName.trim(),Y.lastName.trim(),Y.email.trim(),Y.location.trim(),Y.howDidYouHear.trim(),Y.mainChannel,N(Y),Y.agreementConfirmed,!!O],Z=X.filter(Boolean).length,ee=X.length,et=Math.round(Z/ee*100),er=Z>=ee-2,en=e=>{let{name:t,value:r,type:n}=e.target,a="checked"in e.target?e.target.checked:void 0,o="checkbox"===n?a:r;$(e=>({...e,[t]:o})),F(e=>{let r={...e};if("email"===t&&"string"==typeof o){let e=v(o);e?r.email=e:delete r.email}else delete r[t];return("tiktokHandle"===t||"instagramHandle"===t||"youtubeHandle"===t||"otherHandle"===t)&&delete r.socialHandles,r})},ea=()=>{let e=J();C({email:e.email,firstName:e.firstName,lastName:e.lastName})},eo=async t=>{let r,n;if(t.preventDefault(),S)return;E("idle"),I("");let a=J(),o=(r=j(a,O),n=b.filter(e=>r[e]),_.current={..._.current,validationErrors:r},F(r),n.length>0&&(I("Please fix the errors below before submitting."),E("error")),n);if(o.length>0)return void requestAnimationFrame(()=>K(o[0]));H(!0);try{let{addressStreet:t,addressStreet2:r,addressCity:n,addressState:o,addressPostalCode:i,addressCountry:s,...l}=a,d=U?{...t&&{street:t},...r&&{street2:r},...n&&{city:n},...o&&{state:o},...i&&{postalCode:i},...s&&{country:s}}:void 0,u=(0,f.buildAttribution)(new URLSearchParams(k.toString())),c=await fetch("/api/creator-apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,...d&&Object.keys(d).length>0&&{address:d},...(0,f.hasAttribution)(u)&&{attribution:u},dubId:T||void 0,turnstileToken:O})}),m=await c.json();if(!c.ok){m.errors?I(m.errors.join(", ")):I(m.error||"Submission failed"),E("error"),R.current?.reset(),M(null);return}E("success"),p.logger.info("[Apply Form] Application submitted successfully",{result:m}),w("creator_application_submitted",{tos_version:"2.3",main_channel:a.mainChannel,location:a.location,how_did_you_hear:a.howDidYouHear,has_tiktok:!!a.tiktokHandle,has_instagram:!!a.instagramHandle,has_youtube:!!a.youtubeHandle,has_other:!!a.otherHandle}),B.current=setTimeout(()=>{B.current=null,e.push("/creators/apply/success")},500)}catch(e){p.logger.error("[Apply Form] Network error",{error:e}),I("Network error. Please check your connection and try again."),E("error"),R.current?.reset(),M(null)}finally{H(!1)}},ei=S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Submitting..."]}):"Submit your application";return(0,t.jsxs)("div",{className:"bg-background/90 backdrop-blur-sm rounded-2xl p-8 shadow-xl border border-border",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Creator Application Form"}),(0,t.jsxs)("p",{className:"mb-4 text-sm text-muted-foreground",children:["Most people finish in about 2 minutes. You're"," ",et,"% done with the required fields."]}),(0,t.jsx)("div",{className:"mb-6 h-2 overflow-hidden rounded-full bg-muted",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":et,"aria-label":"Application progress",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-up-brand transition-all duration-300 ease-out",style:{width:`${et}%`}})}),"success"===A&&(0,t.jsx)("div",{className:"mb-6 p-4 bg-green-100 border border-green-400 text-green-700 rounded-xl dark:bg-green-900/20 dark:border-green-700 dark:text-green-300",children:"ð Application submitted successfully! We'll review your application and get back to you soon."}),"error"===A&&(0,t.jsxs)("div",{ref:z,className:"mb-6 p-4 bg-red-100 border border-red-400 text-red-700 rounded-xl dark:bg-red-900/20 dark:border-red-700 dark:text-red-300",role:"alert","aria-live":"polite",children:[(0,t.jsxs)("p",{children:["â ",D]}),Q.length>0&&(0,t.jsx)("ul",{className:"mt-2 space-y-1 text-sm",children:Q.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",onClick:()=>K(e),className:"text-left underline underline-offset-2 hover:no-underline",children:g[e]??e})},e))})]}),(0,t.jsxs)("form",{id:"creator-apply-form",ref:q,onSubmit:eo,onAnimationStart:e=>{"onAutoFillStart"===e.animationName&&J()},onBlurCapture:()=>J(),noValidate:!0,className:"space-y-6 pb-28 sm:pb-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"firstName",className:"block text-sm font-semibold mb-2",children:["First Name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"firstName",name:"firstName",value:Y.firstName,onChange:en,onBlur:ea,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("firstName")}`,placeholder:"e.g. John",autoComplete:"given-name","aria-invalid":!!P.firstName,"aria-describedby":P.firstName?"f
1irstName-error":void 0}),P.firstName&&(0,t.jsx)("p",{id:"firstName-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.firstName})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"lastName",className:"block text-sm font-semibold mb-2",children:["Last Name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"lastName",name:"lastName",value:Y.lastName,onChange:en,onBlur:ea,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("lastName")}`,placeholder:"e.g. Doe",autoComplete:"family-name","aria-invalid":!!P.lastName,"aria-describedby":P.lastName?"lastName-error":void 0}),P.lastName&&(0,t.jsx)("p",{id:"lastName-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.lastName})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"email",className:"block text-sm font-semibold mb-2",children:["Email Address ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"email",id:"email",name:"email",value:Y.email,onChange:en,onBlur:ea,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("email")}`,placeholder:"e.g. [email protected]",autoComplete:"email",inputMode:"email","aria-invalid":!!P.email,"aria-describedby":P.email?"email-error":void 0}),P.email&&(0,t.jsx)("p",{id:"email-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.email})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"location",className:"block text-sm font-semibold mb-2",children:["Where are you located? ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"location",name:"location",value:Y.location,onChange:en,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("location")}`,placeholder:"Los Angeles, CA",autoComplete:"off","aria-invalid":!!P.location,"aria-describedby":P.location?"location-error":void 0}),P.location&&(0,t.jsx)("p",{id:"location-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.location})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"howDidYouHear",className:"block text-sm font-semibold mb-2",children:["How did you hear about UP? ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"howDidYouHear",name:"howDidYouHear",value:Y.howDidYouHear,onChange:en,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("howDidYouHear")}`,placeholder:"I heard about UP from...",autoComplete:"off","aria-invalid":!!P.howDidYouHear,"aria-describedby":P.howDidYouHear?"howDidYouHear-error":void 0}),P.howDidYouHear&&(0,t.jsx)("p",{id:"howDidYouHear-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.howDidYouHear})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"mainCh
1annel",className:"block text-sm font-semibold mb-2",children:["What's your main channel? ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("select",{id:"mainChannel",name:"mainChannel",value:Y.mainChannel,onChange:en,className:`w-full px-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("mainChannel")}`,"aria-invalid":!!P.mainChannel,"aria-describedby":P.mainChannel?"mainChannel-error":void 0,children:[(0,t.jsx)("option",{value:"",children:"Select one..."}),(0,t.jsx)("option",{value:"tiktok",children:"TikTok"}),(0,t.jsx)("option",{value:"instagram",children:"Instagram"}),(0,t.jsx)("option",{value:"youtube",children:"YouTube"})]}),P.mainChannel&&(0,t.jsx)("p",{id:"mainChannel-error",className:"mt-1 text-sm text-red-600 dark:text-red-400",children:P.mainChannel})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm font-semibold mb-2",children:["What's your handle on Social Media?"," ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-muted-foreground",children:"@"}),(0,t.jsx)("input",{type:"text",id:"tiktokHandle",name:"tiktokHandle",value:Y.tiktokHandle,onChange:en,className:`w-full pl-8 pr-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("socialHandles")}`,placeholder:"TikTok",autoComplete:"off","aria-invalid":!!P.socialHandles,"aria-describedby":P.socialHandles?"socialHandles-error":void 0})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-muted-foreground",children:"@"}),(0,t.jsx)("input",{type:"text",id:"instagramHandle",name:"instagramHandle",value:Y.instagramHandle,onChange:en,className:`w-full pl-8 pr-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("socialHandles")}`,placeholder:"Instagram",autoComplete:"off","aria-invalid":!!P.socialHandles,"aria-describedby":P.socialHandles?"socialHandles-error":void 0})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-muted-foreground",children:"@"}),(0,t.jsx)("input",{type:"text",id:"youtubeHandle",name:"youtubeHandle",value:Y.youtubeHandle,onChange:en,className:`w-full pl-8 pr-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("socialHandles")}`,placeholder:"Youtube",autoComplete:"off","aria-invalid":!!P.socialHandles,"aria-describedby":P.socialHandles?"socialHandles-error":void 0})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-muted-foreground",children:"@"}),(0,t.jsx)("input",{type:"text",id:"otherHandle",name:"otherHandle",value:Y.otherHandle,onChange:en,className:`w-full pl-8 pr-4 py-3 border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background ${G("socialHandles")}`,placeholder:"Other",autoComplete:"off","aria-invalid":!!P.socialHandles,"aria-describedby":P.socialHandles?"socialHandles-error":void 0})]})]}),P.socialHandles&&(0,t.jsx)("p",{id:"socialHandles-error",className:"mt-2 text-sm text-red-600 dark:text-red-400",role:"alert",children:P.socialHandles})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"additionalInfo",className:"block text-sm font-semibold mb-2",children:"Any additional information/thoughts?"}),(0,t.jsx)("textarea",{id:"additionalInfo",name:"additionalInfo",value:Y.additionalInfo,onChange:en,rows:3,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"Type your answer here..."})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-muted/30 p-4",children:[(0,t.jsxs)("label",{htmlFor:"includeShippingAddress",className:"flex cursor-pointer items-start gap-3",children:[(0,t.jsx)("input",{type:"checkbox",id:"includeShippingAddress",checked:U,onChange:e=>
1V(e.target.checked),className:"mt-1 h-4 w-4 rounded border-border text-primary focus:ring-primary","aria-describedby":"includeShippingAddress-help"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:"Add a shipping address for UP merch"}),(0,t.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground",children:"Optional"})]}),(0,t.jsx)("p",{id:"includeShippingAddress-help",className:"mt-1 text-sm text-muted-foreground",children:"Skip this for now if you prefer. Approved creators can share a shipping address later - checking this just lets us send merch to your door if you're approved."})]})]}),U&&(0,t.jsxs)("div",{className:"mt-4 space-y-4 border-t border-border pt-4 duration-200 animate-in fade-in-0 slide-in-from-top-2","aria-live":"polite",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"addressStreet",className:"block text-sm font-semibold mb-2",children:"Street Address"}),(0,t.jsx)("input",{type:"text",id:"addressStreet",name:"addressStreet",value:Y.addressStreet,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"123 Main St",autoComplete:"address-line1"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"addressStreet2",className:"block text-sm font-semibold mb-2",children:["Apt / Suite"," ",(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:"(optional)"})]}),(0,t.jsx)("input",{type:"text",id:"addressStreet2",name:"addressStreet2",value:Y.addressStreet2,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"Apt 4B",autoComplete:"address-line2"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"addressCity",className:"block text-sm font-semibold mb-2",children:"City"}),(0,t.jsx)("input",{type:"text",id:"addressCity",name:"addressCity",value:Y.addressCity,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"Los Angeles",autoComplete:"address-level2"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"addressState",className:"block text-sm font-semibold mb-2",children:"State / Region"}),(0,t.jsx)("input",{type:"text",id:"addressState",name:"addressState",value:Y.addressState,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"CA",autoComplete:"address-level1"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"addressPostalCode",className:"block text-sm font-semibold mb-2",children:"ZIP / Postal Code"}),(0,t.jsx)("input",{type:"text",id:"addressPostalCode",name:"addressPostalCode",value:Y.addressPostalCode,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"90001",autoComplete:"postal-code"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"addressCountry",className:"block text-sm font-semibold mb-2",children:"Country"}),(0,t.jsx)("input",{type:"text",id:"addressCountry",name:"addressCountry",value:Y.addressCountry,onChange:en,className:"w-full px-4 py-3 border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary bg-background",placeholder:"United States",autoComplete:"country-name"})]})]})]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:`flex items-start space-x-3 ${P.agreementConfirmed?"rounded-xl border border-red-500 bg-red-50 p-3 dark:bg-red-950/20":""}`,children:[(0,t.jsx)("input",{type:"checkbox",id:"agreementConfirmed",name:"agreementConfirmed",checked:!0===Y.agreementConfirmed,onChange:e=>{$(t=>({...t,agreementConfirmed:e.target.checked})),F(e=>{let t={...e};return delete t.agreementConfirmed,t})},className:`mt-1 h-4 w-4 text-primary focus:ring-primary rounded border ${P.agreementConfirmed?"border-red-500 ring-1 ring-red-500":"border-border"}`,"aria-invalid":!!P.agreementConfirmed,"aria-describedby":P.agreementConfirmed?"agreementConfirmed-error":void 0}),(0,t.jsxs)("label",{htmlFor:"agreementConfirmed",className:"text-sm leading-relaxed",children:[(0,t.jsx)("span",{className:"text-red-500",children:"*"})," I confirm I'm 16 or older and agree to UP's"," ",(0,t.jsx)(n.default,{href:"/terms/creator",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline hover:text-primary/80",children:"Creator Terms of Service"}),". Applying doesn't guarantee approval - we review every application."]})]}),P.agreementConfirmed&&(0,t.jsx)("p",{id:"agreementConfirmed-error",className:"text-sm text-red-600 dark:text-red-400",role:"alert",children:P.agreementConfirmed})]}),(0,t.jsxs)("div",{id:"creator-apply-captcha",className:P.turnstile?"rounded-xl border border-red-500 p-3":void 0,children:[(0,t.jsx)(o.FormTurnstile,{ref:R,onVerify:e=>{M(e),F(e=>{if(!e.turnstile)return e;let{turnstile:t,...r}=e;return r})},onError:()=>M(null),onExpire:()=>M(null)}),P.turnstile&&(0,t.jsx)("p",{id:"turnstile-error",className:"mt-2 text-sm text-red-600 dark:text-red-400",role:"alert",children:P.turnstile})]}),(0,t.jsxs)("div",{className:"hidden sm:sticky sm:bottom-0 sm:z-20 sm:-mx-8 sm:mt-2 sm:block sm:border-t sm:border-border sm:bg-background/95 sm:px-8 sm:py-4 sm:backdrop-blur supports-[backdrop-filter]:sm:bg-background/80",children:[er&&!S&&"success"!==A&&(0,t.jsx)("p",{className:"mb-3 text-center text-sm font-medium text-foreground",children:"Almost done - submit when you're ready."}),(0,t.jsx)("div",{"aria-live":"polite",children:"error"===A&&D&&(0,t.jsx)("p",{className:"mb-3 text-sm text-red-600 dark:text-red-400 text-center",role:"alert",children:D})}),(0,t.jsx)(i.PrimaryButton,{type:"submit",size:"xl",variant:"solid",radius:"xl",weight:"semibold",fullWidth:!0,disabled:S,className:"flex items-center justify-center",children:ei})]})]}),(0,t.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-30 border-t border-border bg-background/95 p-4 backdrop-blur supports-[backdrop-filter]:bg-background/80 sm:hidden",children:[er&&!S&&"success"!==A&&(0,t.jsx)("p",{className:"mb-2 text-center text-sm font-medium text-foreground",children:"Almost done - tap below to submit."}),"error"===A&&D&&(0,t.jsx)("p",{className:"mb-2 text-center text-sm text-red-600 dark:text-red-400",role:"alert",children:D}),(0,t.jsx)(i.PrimaryButton,{type:"submit",form:"creator-apply-form",size:"xl",variant:"solid",radius:"xl",weight:"semibold",fullWidth:!0,disabled:S,className:"flex items-center justify-center shadow-lg",children:ei})]})]})},"readFormValuesFromDom",0,y],839828)},511495,e=>{"use strict";var t=e.i(468531),r=e.i(903953),n=e.i(603948);function a(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],i=t[r];return"function"==typeof n?`${n}`==`${i}`:a(n)&&a(i)?o(n,i):n===i})}function i(e){return e.concat().sort((e,t)=>
1e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function d(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function m(e){return Math.sign(e)}function f(e){return g(e).map(Number)}function p(e){return e[h(e)]}function h(e){return Math.max(0,e.length-1)}function b(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function g(e){return Object.keys(e)}function x(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function y(){let e=[],t={add:function(r,n,a,o={passive:!0}){let i;return"addEventListener"in r?(r.addEventListener(n,a,o),i=()=>r.removeEventListener(n,a,o)):(r.addListener(a),i=()=>r.removeListener(a)),e.push(i),t},clear:function(){e=e.filter(e=>e())}};return t}function v(e=0,t=0){let r=c(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function N(e){let t=e;function r(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function j(e,t){let r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,a=null,o=!1;return{clear:function(){!o&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let i=Math.round(100*e.direction(t))/100;i!==a&&(n.transform=r(i),a=i)},toggleActive:function(e){o=!e}}}let k={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function w(e,t,r){let n,a,o,i,C,S,H,A,E=e.ownerDocument,D=E.defaultView,I=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(g(r).forEach(n=>{let a=t[n],o=r[n],i=u(a)&&u(o);t[n]=i?e(a,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},a=g(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,a)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(D),P=(A=[],{init:function(e,t){return(A=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){A=A.filter(e=>e.destroy())}}),F=y(),T=(a={},o={init:function(e){n=e},emit:function(e){return(a[e]||[]).forEach(t=>t(n,e)),o},off:function(e,t){return a[e]=(a[e]||[]).filter(e=>e!==t),o},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),o},clear:function(){a={}}}),{mergeOptions:L,optionsAtMedia:O,optionsMediaQueries:M}=I,{on:R,off:z,emit:q}=T,B=!1,Y=L(k,w.globalOptions),$=L(Y),U=[];function V(t,r){B||($=O(Y=L(Y,t)),U=r||U,function(){let{container:t,slides:r}=$;S=(l(t)?e.querySelector(t):t)||e.children[0];let n=l(r)?S.querySelectorAll(r):r;H=[].slice.call(n||S.children)}(),i=function t(r){let n=function(e,t,r,n,a,o,i){var u,k;let w,C,S,H,A,E,D,I,P,F,T,L,O,M,{align:R,axis:z,direction:q,startIndex:B,loop:Y,duration:$,dragFree:U,dragThreshold:V,inViewThreshold:_,slidesToScroll:W,skipSnaps:J,containScroll:K,watchResize:G,watchSlides:Q,watchDrag:X,watchFocus:Z}=o,ee={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:a}=e;return{top:t,right:r+n,bottom:t+a,left:r,width:n,height:a}}},et=ee.measure(t),er=r.map(ee.measure),en=(C="rtl"===q,H=(S="y"===z)||!C?1:-1,A=S?"top":C?"right":"left",E=S?"bottom":C?"left":"right",{scroll:S?"y":"x",cross:S?"x":"y",startEdge:A,endEdge:E,measureSize:function(e){let{height:t,width:r}=e;return S?t:r},direction:function(e){return e*H}}),ea=en.measureSize(et),eo={measure:function(e){return e/100*ea}},ei=(u=R,k=ea,w={start:function(){return 0},center:function(e){return(k-e)/2},end:function(e){return k-e}},{measure:function(e,t){return l(u)?w[u](e):u(k,e,t)}}),es=!Y&&!!K,{slideSizes:el,slideSizesWithGaps:ed,startGap:eu,endGap:ec}=function(e,t,r,n,a,o){let{measureSize:i,startEdge:s,endEdge:l}=e,d=r[0]&&a,u=function(){if(!d)return 0;let e=r[0];return c(t[s]-e[s])}(),m=d?parseFloat(o.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,f=r.map(i),b=r.map((e,t,r)=>{let n=t===h(r);return t?n?f[t]+m:r[t+1][s]-e[s]:f[t]+u}).map(c);return{slideSizes:f,slideSizesWithGaps:b,startGap:u,endGap:m}}(en,et,er,r,Y||!!K,a),em=function(e,t,r,n,a,o,i,l){let{startEdge:d,endEdge:u,direction:m}=e,b=s(r);return{groupSlides:function(e){return b?f(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?f(e).reduce((r,s,f)=>{let b=p(r)||0,g=s===h(e),x=a[d]-o[b][d],y=a[d]-o[s][u],v=n||0!==b?0:m(i),N=c(y-(!n&&g?m(l):0)-(x+v));return f&&N>t+2&&r.push(s),g&&r.push(e.length),r},[]).map((t,r,n)=>{let a=Math.max(n[r-1]||0);return e.slice(a,t)}):[]}}}(en,ea,W,Y,et,er,eu,ec),{snaps:ef,snapsAligned:ep}=function(e,t,r,n,a){let{startEdge:o,endEdge:i}=e,{groupSlides:s}=a,l=s(n).map(e=>p(e)[i]-e[0][o]).map(c).map(t.measure),d=n.map(e=>r[o]-e[o]).map(e=>-c(e)),u=s(d).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:d,snapsAligned:u}}
1(en,ei,et,er,em),eh=-p(ef)+p(ed),{snapsContained:eb,scrollContainLimit:eg}=function(e,t,r,n){let a,o,i=v(-t+e,0),s=r.map((e,t)=>{let{min:n,max:a}=i,o=i.constrain(e),s=t===h(r);return t?s||function(e,t){return 1>=c(e-t)}(n,o)?n:function(e,t){return 1>=c(e-t)}(a,o)?a:o:a}).map(e=>parseFloat(e.toFixed(3))),l=(a=s[0],o=p(s),v(s.lastIndexOf(a),s.indexOf(o)+1));return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===n)return s;let{min:r,max:a}=l;return s.slice(r,a)}(),scrollContainLimit:l}}(ea,eh,ep,K),ex=es?eb:ep,{limit:ey}=(D=ex[0],{limit:v(Y?D-eh:p(ex),D)}),ev=function e(t,r,n){let{constrain:a}=v(0,t),o=t+1,i=s(r);function s(e){return n?c((o+e)%o):a(e)}function l(){return e(t,i,n)}let d={get:function(){return i},set:function(e){return i=s(e),d},add:function(e){return l().set(i+e)},clone:l};return d}(h(ex),B,Y),eN=ev.clone(),ej=f(r),ek=function(e,t,r,n){let a=y(),o=1e3/60,i=null,s=0,l=0;function d(e){if(!l)return;i||(i=e,r(),r());let a=e-i;for(i=e,s+=a;s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(d))}function u(){t.cancelAnimationFrame(l),i=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",()=>{e.hidden&&(i=null,s=0)})},destroy:function(){u(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(d))},stop:u,update:r,render:n}}(n,a,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(eM),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:a,scrollLooper:o,slideLooper:i,dragHandler:s,animation:l,eventHandler:d,scrollBounds:u,options:{loop:c}},m)=>{let f=e.settled(),p=!u.shouldConstrain(),h=c?f:f&&p,b=h&&!s.pointerDown();b&&l.stop();let g=r.get()*m+a.get()*(1-m);n.set(g),c&&(o.loop(e.direction()),i.loop()),t.to(n.get()),b&&d.emit("settle"),h||d.emit("scroll")})(eM,e)),ew=ex[ev.get()],eC=N(ew),eS=N(ew),eH=N(ew),eA=N(ew),eE=function(e,t,r,n,a){let o=0,i=0,s=a,l=.68,d=e.get(),u=0;function f(e){return s=e,h}function p(e){return l=e,h}let h={direction:function(){return i},duration:function(){return s},velocity:function(){return o},seek:function(){let t=n.get()-e.get(),a=0;return s?(r.set(e),o+=t/s,o*=l,d+=o,e.add(o),a=d-u):(o=0,r.set(n),e.set(n),a=t),i=m(a),u=d,h},settled:function(){return .001>c(n.get()-t.get())},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return f(a)},useFriction:p,useDuration:f};return h}(eC,eH,eS,eA,$),eD=function(e,t,r,n,a){let{reachedAny:o,removeOffset:i,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function d(t,n){let a=[t,t+r,t-r];if(!e)return t;if(!n)return l(a);let o=a.filter(e=>m(e)===n);return o.length?l(o):p(a)-r}return{byDistance:function(r,n){let l=a.get()+r,{index:u,distance:m}=function(r){let n=e?i(r):s(r),{index:a}=t.map((e,t)=>({diff:d(e-n,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:a,distance:n}}(l),f=!e&&o(l);if(!n||f)return{index:u,distance:r};let p=r+d(t[u]-m,0);return{index:u,distance:p}},byIndex:function(e,r){let n=d(t[e]-a.get(),r);return{index:e,distance:n}},shortcut:d}}(Y,ex,eh,ey,eA),eI=function(e,t,r,n,a,o,i){function s(a){let s=a.distance,l=a.index!==t.get();
1o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(a.index),i.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(a.byIndex(n.get(),r))}}}(ek,ev,eN,eE,eD,eA,i),eP=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(ey),eF=y(),eT=(P={},F=null,T=null,L=!1,{init:function(){I=new IntersectionObserver(e=>{L||(e.forEach(e=>{P[r.indexOf(e.target)]=e}),F=null,T=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:_}),r.forEach(e=>I.observe(e))},destroy:function(){I&&I.disconnect(),L=!0},get:function(e=!0){if(e&&F)return F;if(!e&&T)return T;let t=g(P).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:a}=P[n];return(e&&a||!e&&!a)&&t.push(n),t},[]);return e&&(F=t),e||(T=t),t}}),{slideRegistry:eL}=function(e,t,r,n,a,o){let i,{groupSlides:s}=a,{min:l,max:d}=n;return{slideRegistry:(i=s(o),1===r.length?[o]:e&&"keepSnaps"!==t?i.slice(l,d).map((e,t,r)=>{let n=t===h(r);return t?n?b(h(o)-p(r)[0]+1,p(r)[0]):e:b(p(r[0])+1)}):i)}}(es,K,ex,eg,em,ej),eO=function(e,t,r,n,a,o,i,l){let u={passive:!0,capture:!0},c=0;function m(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(f){l&&(o.add(document,"keydown",m,!1),t.forEach((t,m)=>{o.add(t,"focus",t=>{(d(l)||l(f,t))&&function(t){if(new Date().getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;let o=r.findIndex(e=>e.includes(t));s(o)&&(a.useDuration(0),n.index(o,0),i.emit("slideFocus"))}(m)},u)}))}}}(e,r,eL,eI,eE,eF,i,Z),eM={ownerDocument:n,ownerWindow:a,eventHandler:i,containerRect:et,slideRects:er,animation:ek,axis:en,dragHandler:function(e,t,r,n,a,o,i,s,l,u,f,p,h,b,g,N,j,k){let{cross:w,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],H={passive:!1},A=y(),E=y(),D=v(50,225).constrain(b.measure(20)),I={mouse:300,touch:400},P={mouse:500,touch:600},F=g?43:25,T=!1,L=0,O=0,M=!1,R=!1,z=!1,q=!1;function B(e){if(!x(e,n)&&e.touches.length>=2)return Y(e);let t=o.readPoint(e),r=o.readPoint(e,w),i=c(t-L),l=c(r-O);if(!R&&!q&&(!e.cancelable||!(R=i>l)))return Y(e);let d=o.pointerMove(e);i>N&&(z=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(C(d)),e.preventDefault()}function Y(e){var t;let r,n,a=f.byDistance(0,!1).index!==p.get(),i=o.pointerUp(e)*(g?P:I)[q?"mouse":"touch"],s=(t=C(i),r=p.add(-1*m(t)),n=f.byDistance(t,!g).distance,g||c(t)<D?n:j&&a?.5*n:f.byIndex(r.get(),0).distance),d=function(e,t){var r,n;if(0===e||0===t||c(e)<=c(t))return 0;let a=(r=c(e),n=c(t),c(r-n));return c(a/e)}(i,s);R=!1,M=!1,E.clear(),u.useDuration(F-10*d).useFriction(.68+d/50),l.distance(s,!g),q=!1,h.emit("pointerUp")}function $(e){z&&(e.stopPropagation(),e.preventDefault(),z=!1)}return{init:function(e){k&&A.add(t,"dragstart",e=>e.preventDefault(),H).add(t,"touchmove",()=>void 0,H).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",Y).add(t,"contextmenu",Y).add(t,"click",$,!0);function s(s){(d(k)||k(e,s))&&function(e){let s,l=x(e,n);if((q=l,z=g&&l&&!e.buttons&&T,T=c(a.get()-i.get())>=2,!l||0===e.button)&&(s=e.target.nodeName||"",!S.includes(s))){let n;M=!0,o.pointerDown(e),u.useFriction(0).useDuration(0),a.set(i),n=q?r:t,E.add(n,"touchmove",B,H).add(n,"touchend",Y).add(n,"mousemove",B,H).add(n,"mouseup",Y),L=o.readPoint(e),O=o.readPoint(e,w),h.emit("pointerDown")}}(s)}},destroy:function(){A.clear(),E.clear()},pointerDown:function(){return M}}}(en,e,n,a,eA,function(e,t){let r,n;function a(e){return e.timeStamp}function o(r,n){let a=n||e.scroll,o=`client${"x"===a?"X":"Y"}`;return(x(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){let t=o(e)-o(n),i=a(e)-a(r)>170;return n=e,i&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=o(n)-o(r),i=a(e)-a(r),s=a(e)-a(n)>170,l=t/i;return i&&!s&&c(l)>.1?l:0},readPoint:o}}(en,a),eC,ek,eI,eE,eD,ev,i,eo,U,V,J,X),eventStore:eF,percentOfView:eo,index:ev,indexPrevious:eN,limit:ey,location:eC,offsetLocation:eH,previousLocation:eS,options:o,resizeHandler:function(e,t,r,n,a,o,i){let s,l,u=[e].concat(n),m=[],f=!1;function p(e){return a.measureSize(i.measure(e))}return{init:function(a){o&&(l=p(e),m=n.map(p),s=new ResizeObserver(r=>{(d(o)||o(a,r))&&function(r){for(let o of r){if(f)return;let r=o.target===e,i=n.indexOf(o.target),s=r?l:m[i];if(c(p(r?e:n[i])-s)>=.5){a.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>
1{u.forEach(e=>s.observe(e))}))},destroy:function(){f=!0,s&&s.disconnect()}}}(t,i,a,r,en,G,ee),scrollBody:eE,scrollBounds:function(e,t,r,n,a){let o=a.measure(10),i=a.measure(50),s=v(.1,.99),l=!1;function d(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:d,constrain:function(a){if(!d())return;let l=e.reachedMin(t.get())?"min":"max",u=c(e[l]-t.get()),m=r.get()-t.get(),f=s.constrain(u/i);r.subtract(m*f),!a&&c(m)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ey,eH,eA,eE,eo),scrollLooper:function(e,t,r,n){let{reachedMin:a,reachedMax:o}=v(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(r.get()):-1===t&&a(r.get())))return;let i=-1*t*e;n.forEach(e=>e.add(i))}}}(eh,ey,eH,[eC,eH,eS,eA]),scrollProgress:eP,scrollSnapList:ex.map(eP.get),scrollSnaps:ex,scrollTarget:eD,scrollTo:eI,slideLooper:function(e,t,r,n,a,o,i,s,l){let d=f(a),u=f(a).reverse(),c=h(p(u,i[0]),r,!1).concat(h(p(d,t-i[0]-1),-r,!0));function m(e,t){return e.reduce((e,t)=>e-a[t],t)}function p(e,t){return e.reduce((e,r)=>m(e,t)>0?e.concat([r]):e,[])}function h(a,i,d){let u=o.map((e,r)=>({start:e-n[r]+.5+i,end:e+t-.5+i}));return a.map(t=>{let n=d?0:-r,a=d?r:0,o=u[t][d?"end":"start"];return{index:t,loopPoint:o,slideLocation:N(-1),translate:j(e,l[t]),target:()=>s.get()>o?n:a}})}return{canLoop:function(){return c.every(({index:e})=>.1>=m(d.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,a=t();a!==n.get()&&(r.to(a),n.set(a))})},loopPoints:c}}(en,ea,eh,el,ed,ef,ex,eH,r),slideFocus:eO,slidesHandler:(M=!1,{init:function(e){Q&&(O=new MutationObserver(t=>{!M&&(d(Q)||Q(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),i.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){O&&O.disconnect(),M=!0}}),slidesInView:eT,slideIndexes:ej,slideRegistry:eL,slidesToScroll:em,target:eA,translate:j(en,t)};return eM}(e,S,H,E,D,r,T);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}($),M([Y,...U.map(({options:e})=>e)]).forEach(e=>F.add(e,"change",_)),$.active&&(i.translate.to(i.location.get()),i.animation.init(),i.slidesInView.init(),i.slideFocus.init(G),i.eventHandler.init(G),i.resizeHandler.init(G),i.slidesHandler.init(G),i.options.loop&&i.slideLooper.loop(),S.offsetParent&&H.length&&i.dragHandler.init(G),C=P.init(G,U)))}function _(e,t){let r=K();W(),V(L({startIndex:r},e),t),T.emit("reInit")}function W(){i.dragHandler.destroy(),i.eventStore.clear(),i.translate.clear(),i.slideLooper.clear(),i.resizeHandler.destroy(),i.slidesHandler.destroy(),i.slidesInView.destroy(),i.animation.destroy(),P.destroy(),F.clear()}function J(e,t,r){$.active&&!B&&(i.scrollBody.useBaseFriction().useDuration(!0===t?0:$.duration),i.scrollTo.index(e,r||0))}function K(){return i.index.get()}let G={canScrollNext:function(){return i.index.add(1).get()!==K()},canScrollPrev:function(){return i.index.add(-1).get()!==K()},containerNode:function(){return S},internalEngine:function(){return i},destroy:function(){B||(B=!0,F.clear(),W(),T.emit("destroy"),T.clear())},off:z,on:R,emit:q,plugins:function(){return C},previousScrollSnap:function(){return i.indexPrevious.get()},reInit:_,rootNode:function(){return e},scrollNext:function(e){J(i.index.add(1).get(),e,-1)},scrollPrev:function(e){J(i.index.add(-1).get(),e,1)},scrollProgress:function(){return i.scrollProgress.get(i.offsetLocation.get())},scrollSnapList:function(){return i.scrollSnapList},scrollTo:J,selectedScrollSnap:K,slideNodes:function(){return H},slidesInView:function(){return i.slidesInView.get()},slidesNotInView:function(){return i.slidesInView.get(!1)}};return V(t,r),setTimeout(()=>T.emit("init"),0),G}function C(e={},t=[]){let n=(0,r.useRef)(e),a=(0,r.useRef)(t),[s,l]=(0,r.useState)(),[d,u]=(0,r.useState)(),c=(0,r.useCallback)(()=>{s&&s.reInit(n.current,a.current)},[s]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,c())},[e,c]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=i(e),n=i(t);return r.every((e,t)=>o(e,n[t]))}(a.current,t)&&(a.current=t,c())},[t,c]),(0,r.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&d){w.globalOptions=C.globalOptions;let e=w(d,n.current,a.current);return l(e),()=>e.destroy()}l(void 0)},[d,l]),[u,s]}w.globalOptions=void 0,C.globalOptions=void 0;var S=e.i(692104),H=e.i(251136),A=e.i(647163),E=e.i(167881);let D=r.createContext(null);function I(){let e=r.useContext(D);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let P=r.forwardRef(({orientation:e="horizontal",opts:n,setApi:a,plugins:o,className:i,children:s,...l},d)=>{let[u,c]=C({...n,axis:"horizontal"===e?"x":"y"},o),[m,f]=r.useState(!1),[p,h]=r.useState(!1),b=r.useCallback(e=>{e&&(f(e.canScrollPrev()),h(e.canScrollNext()))},[]),g=r.useCallback(()=>{c?.scrollPrev()},[c]),x=r.useCallback(()=>{c?.scrollNext()},[c]),y=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),x())},[g,x]);return r.useEffect(()=>{c&&a&&a(c)},[c,a]),r.useEffect(()=>{if(c)return b(c),c.on("reInit",b),c.on("select",b),()=>{c?.off("select",b)}},[c,b]),(0,t.jsx)(D.Provider,{value:{carouselRef:u,api:c,opts:n,orientation:e||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:x,canScrollPrev:m,canScrollNext:p},children:(0,t.jsx)("div",{ref:d,onKeyDownCapture:y,className:(0,A.cn)("relative",i),role:"region","aria-roledescription":"carousel",...l,children:s})})});P.displayName="Carousel";let F=r.forwardRef(({className:e,...r},n)=>{let{carouselRef:a,orientation:o}=I();return(0,t.jsx)("div",{ref:a,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:n,className:(0,A.cn)("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",e),...r})})});F.displayName="CarouselContent";let T=r.forwardRef(({className:e,...r},n)=>{let{orientation:a}=I();return(0,t.jsx)("div",{ref:n,role:"group","aria-roledescription":"slide",className:(0,A.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===a?"pl-4":"pt-4",e),...r})});T.displayName="CarouselItem",r.forwardRef(({className:e,variant:r="outline",size:n="icon",...a},o)=>{let{orientation:i,scrollPrev:s,canScrollPrev:l}=I();return(0,t.jsxs)(E.Button,{ref:o,variant:r,size:n,className:(0,A.cn)("absolute h-8 w-8 rounded-full","horizontal"===i?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,t.jsx)(S.ArrowLeft,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}).displayName="CarouselPrevious",r.forwardRef(({className:e,variant:r="outline",size:n="icon",...a},o)=>{let{orientation:i,scrollNext:s,canScrollNext:l}=I();return(0,t.jsxs)(E.Button,{ref:o,variant:r,size:n,className:(0,A.cn)("absolute h-8 w-8 rounded-full","horizontal"===i?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,t.jsx)(H.ArrowRight,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}).displayName="CarouselNext";let L=[{quote:"UP is the place to be. Social media should add to your life not take away from it.",name:"Chandler Hallow"},{quote:"This could change the world",name:"Luisa Guzman"},{quote:"I actually decided to hop off socials last month because of just how much I have been struggling mentally. I am SOO inline with what yall are doing!! AMAZING and so so needed.",name:"Blakely Huff"},{quote:"Have been waiting for this. Happy to be apart of a new yet nostalgic social media movement.",name:"Nikki Elkjer"},{quote:"Love the idea of a positive social media environment!",name:"Darren Hansen"},{quote:"I hate that when I share quality content I am partnering with an app that is designed to be addictive. SO I am SUPER interested in this.",name:"Hally Brooke"},{quote:"Would love to help spread more light, positivity, and joy! Very excited for this community â¨",name:"Emily DeLay"}],O=["from-purple-400 to-pink-400","from-sky-400 to-cyan-400","from-amber-400 to-orange-400","from-emerald-400 to-teal-400","from-fuchsia-400 to-rose-400","from-indigo-400 to-violet-400"];function M({testimonial:e,gradient:r}){return(0,t.jsxs)("figure",{className:"flex h-full flex-col rounded-2xl border border-border bg-card p-8 shadow-sm",children:[(0,t.jsx)(n.Quote,{className:"h-8 w-8 shrink-0 text-primary/40","aria-hidden":"true"}),(0,t.jsx)("blockquote",{className:"mt-4 text-lg leading-relaxed text-foreground sm:text-xl",children:e.quote}),(0,t.jsxs)("figcaption",{className:"mt-6 flex items-center gap-3 pt-2",children:[(0,t.jsx)("div",{className:(0,A.cn)("flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-gradient-to-br text-sm font-bold text-white",r),"aria-hidden":"true",children:e.name.split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join("")}),(0,t.jsx)("span",{className:"font-semibold text-foreground",children:e.name})]})]})}e.s(["default",0,function({className:e}){let[n,a]=(0,r.useState)(),[o,i]=(0,r.useState)(0),[s,l]=(0,r.useState)(!1);(0,r.useEffect)(()=>
1{if(!n)return;let e=()=>i(n.selectedScrollSnap());return e(),n.on("select",e),n.on("reInit",e),()=>{n.off("select",e),n.off("reInit",e)}},[n]),(0,r.useEffect)(()=>{if(!n||s||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=window.setInterval(()=>{n.scrollNext()},6500);return()=>window.clearInterval(e)},[n,s]);let d=(0,r.useCallback)(e=>n?.scrollTo(e),[n]);return(0,t.jsxs)("div",{className:(0,A.cn)("space-y-5",e),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocusCapture:()=>l(!0),onBlurCapture:()=>l(!1),children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground",children:"Creators are excited about UP"}),(0,t.jsx)(P,{setApi:a,opts:{loop:!0,align:"start"},className:"w-full",children:(0,t.jsx)(F,{children:L.map((e,r)=>(0,t.jsx)(T,{className:"h-full",children:(0,t.jsx)(M,{testimonial:e,gradient:O[r%O.length]})},e.name))})}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",role:"tablist","aria-label":"Choose a testimonial",children:L.map((e,r)=>{let n=r===o;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":n,"aria-label":`Show testimonial from ${e.name}`,onClick:()=>d(r),className:(0,A.cn)("h-2 rounded-full transition-all duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",n?"w-6 bg-primary":"w-2 bg-muted-foreground/30 hover:bg-muted-foreground/50")},e.name)})})]})}],511495)}]);
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.