1import{c as Me,r as c,j as a,ao as qe,e as fe,s as b,ap as p,b as Be,a as Oe,u as He,_ as V,U as We,aq as Ye,B as re,ah as Ke,ad as y,X as O,ar as Ge,a6 as Je,a7 as Ze,a8 as Xe,a9 as Qe,as as ea,aa,at as H,O as ta,N as na,a3 as he}from"./index-FHybYNNE.js";import{T as ra}from"./textarea-C7sfNooT.js";import{S as le}from"./switch-5zNBRtuL.js";import{V as la}from"./VideoUploader-CnGEccqk.js";import{A as sa,S as ia}from"./AgencyCreatorManagement-CHw9ZOkH.js";import{U as oa}from"./upload-348XQFip.js";import"./table-DnzFUOqF.js";import"./building-2-Cfyel8Pe.js";import"./plus-38Bhd6u5.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ca=Me("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var ga="AspectRatio",xe=c.forwardRef((r,e)=>{const{ratio:o=1/1,style:W,...S}=r;return a.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/o}%`},"data-radix-aspect-ratio-wrapper":"",children:a.jsx(qe.div,{...S,ref:e,style:{...W,position:"absolute",top:0,right:0,bottom:0,left:0}})})});xe.displayName=ga;var da=xe;const pe=da,ua=()=>{const{user:r}=fe(),[e,o]=c.useState(!1),[W,S]=c.useState(null),w=c.useCallback(async()=>{if(r)try{o(!0);const{data:d,error:C}=await b.from("creator_applications").select("*").eq("user_id",r.id).eq("status","approved").maybeSingle();if(C){p({title:"Sync Error",description:"Failed to fetch creator profile data",variant:"destructive"});return}if(!d)return;localStorage.setItem("creatorId",d.id),localStorage.setItem("creatorName",d.influencer_name),localStorage.setItem("creatorProfileLastUpdated",new Date().toISOString()),S(new Date)}catch{p({title:"Sync Failed",description:"There was a problem synchronizing your profile data",variant:"destructive"})}finally{o(!1)}},[r,p]);c.useEffect(()=>{r&&w()},[r,w]);const v=c.useRef(null),N=c.useRef(null),z=c.useRef(0),f=c.useRef(!0),P=5,Y=1e3,K=3e4,j=c.useCallback(()=>{if(r!=null&&r.id)try{const d=b.getChannels(),C=`profile-sync-changes-${r.id}`;d.filter(h=>h.topic&&h.topic.includes(C)).forEach(h=>{try{b.removeChannel(h)}catch{}})}catch{}},[r==null?void 0:r.id]),m=c.useCallback(()=>{if(!(r!=null&&r.id)||!f.current||v.current)return;j();const d=new Date().getTime(),C=`profile-sync-changes-${r.id}-${d}`;try{const k=b.channel(C,{config:{broadcast:{ack:!0},presence:{key:""}}}).on("postgres_changes",{event:"*",schema:"public",table:"creator_applications",filter:`user_id=eq.${r.id}`},h=>{f.current&&w()});setTimeout(()=>{if(f.current)try{v.current||k.subscribe(h=>{f.current&&(h==="SUBSCRIBED"?(z.current=0,v.current=k):(h==="CHANNEL_ERROR"||h==="TIMED_OUT"||h==="CLOSED")&&(v.current===k&&(v.current=null),A()))})}catch{f.current&&A()}},100)}catch{f.current&&A()}},[r==null?void 0:r.id,w,j]),A=c.useCallback(()=>{if(!f.current||z.current>=P)return;N.current&&clearTimeout(N.current);const d=Math.min(Y*Math.pow(2,z.current),K);N.current=setTimeout(()=>{f.current&&(z.current++,m())},d)},[m]);return c.useEffect(()=>{f.current=!0,z.current=0;const d=[];if(r){w();const C=setTimeout(()=>{f.current&&m()},500);return d.push(C),()=>{f.current=!1,d.forEach(h=>clearTimeout(h)),N.current&&(clearTimeout(N.current),N.current=null),(()=>{if(v.current)try{b.removeChannel(v.current)}catch{}finally{v.current=null}})(),setTimeout(()=>{j()},100)}}},[r,w,m,j]),{syncProfiles:w,isSyncing:e,lastSyncTime:W}},Na=()=>{const{t:r,i18n:e}=Be(["creator","common"]),{user:o,checkCreatorStatus:W,isAgency:S}=fe(),w=Oe(),{syncProfiles:v}=ua(),{toast:N}=He(),[z,f]=c.useState(!1),[P,Y]=c.useState(!1),[K,j]=c.useState(!1),[m,A]=c.useState(null),[d,C]=c.useState(null),[k,h]=c.useState(null),[G,se]=c.useState(""),[ie,je]=c.useState(null),[ee,ae]=c.useState(!1),[U,_]=c.useState(null),[T,E]=c.useState("idle"),[ye,oe]=c.useState(!1),ce=V.useMemo(()=>new Set(["login","signup","logout","signout","verify","verify-email","forgot-password","reset-password","about","faq","help","contact","home","index","terms-of-service","privacy-policy","creator-account-deletion","creators","creator","find-influencers","creator-dashboard","creator-requests","creator-profile","creator-revenue","creator-reviews","profile","favorites","my-videos","join","admin","diagnostic","dashboard","settings","search","request-video","payment","payment-success","checkout","api","assets","images","static","public","www"]),[]),D=V.useCallback(t=>{const l=(t||"").trim();return l?l.length<3||l.length>30?e.language==="ko"?"í¸ë¤ì 3â30ìì¬ì¼ í©ëë¤.":e.language==="ja"?"ãã³ãã«ã¯3ã30æåã«ãã¦ãã ããã":e.language==="zh"?"ç¨æ·åå¿ é¡»ä¸º 3â30 个å符ã":"Handle must be 3â30 characters.":/^[a-z0-9][a-z0-9_-]*[a-z0-9]$/.test(l)?ce.has(l.toLowerCase())?e.language==="ko"?"ì´ í¸ë¤ì ì¬ì©í ì ììµëë¤. ë¤ë¥¸ ì´ë¦ì ì íí´ ì£¼ì¸ì.":e.language==="ja"?"ãã®ãã³ãã«ã¯ä½¿ç¨ã§ãã¾ãããå¥ã®ååã鏿ãã¦ãã ããã":e.language==="zh"?"æ¤ç¨æ·åä¸å¯ç¨ï¼è¯·éæ©å ¶ä»åç§°ã":"This handle is reserved. Please choose a different one.":null:e.language==="ko"?"ìì문ì·ì«ì·_·- ë§ ì¬ì©í ì ìê³ , ì²ìê³¼ ëì ìì«ìì¬ì¼ í©ëë¤.":e.language==="ja"?"å°æåè±æ°åã»_ã»- ã®ã¿ä½¿ç¨å¯è½ã§ãæåã¨æå¾ã¯è±æ°åã§ã
6ãå¿
è¦ãããã¾ãã":e.language==="zh"?"åªè½ä½¿ç¨å°ååæ¯ãæ°åã_ å -ï¼ä¸å¿
é¡»ä»¥åæ¯ææ°åå¼å¤´åç»å°¾ã":'Only lowercase letters, numbers, "_" and "-" are allowed; must start and end with a letter/number.':null},[e.language,ce]),J=V.useCallback(()=>e.language==="ko"?"ì´ë¯¸ ì¬ì© ì¤ì¸ í¸ë¤ì
ëë¤.":e.language==="ja"?"ãã®ãã³ãã«ã¯æ¢ã«ä½¿ç¨ããã¦ãã¾ãã":e.language==="zh"?"æ¤ç¨æ·å已被å ç¨ã":"This handle is already taken.",[e.language]),[n,M]=c.useState({influencer_name:"",handle:"",bio:"",price:0,turnaround_time:3,standard_delivery_days:7,is_active:!0,country:"United States",languages:["English"],specialties:[],platforms:[],work_with_agency:!1,agency_name:"",profile_image_url:null,intro_video_url:null,thumbnail_url:null,expressDelivery:!1,longerVideos:!1,is_visible_in_search:!1}),[L,te]=c.useState({terms:!0,content:!1}),be=t=>({English:"ìì´",Spanish:"ì¤íì¸ì´",French:"íëì¤ì´",German:"ë
ì¼ì´",Portuguese:"í¬ë¥´í¬ê°ì´",Japanese:"ì¼ë³¸ì´",Chinese:"ì¤êµì´",Korean:"íêµì´",Indonesian:"ì¸ëë¤ììì´",Thai:"íêµì´",Vietnamese:"ë² í¸ë¨ì´",Other:"기í"})[t]||t,ve=t=>({English:"è±èª",Spanish:"ã¹ãã¤ã³èª",French:"ãã©ã³ã¹èª",German:"ãã¤ãèª",Japanese:"æ¥æ¬èª",Chinese:"ä¸å½èª",Korean:"éå½èª",Indonesian:"ã¤ã³ããã·ã¢èª",Thai:"ã¿ã¤èª",Vietnamese:"ãããã èª",Portuguese:"ãã«ãã¬ã«èª",Other:"ãã®ä»"})[t]||t,ke=t=>({English:"è±è¯",Spanish:"西ççè¯",French:"æ³è¯",German:"å¾·è¯",Jap
6anese:"æ¥è¯",Chinese:"䏿",Korean:"é©è¯",Indonesian:"å°å°¼è¯",Thai:"æ³°è¯",Vietnamese:"è¶åè¯",Portuguese:"è¡èçè¯",Other:"å
¶ä»"})[t]||t,_e=t=>t==="Bilibili"?"åå©åå©":t,we=t=>({Twitch:"Twitchï¼ãã¤ããï¼",YouTube:"YouTubeï¼ã¦ã¼ãã¥ã¼ãï¼",TikTok:"TikTokï¼ãã£ãã¯ããã¯ï¼",Bilibili:"bilibiliï¼ããªããªï¼",SOOP:"SOOP",CHZZK:"CHZZK",TwitCasting:"TwitCastingï¼ãã¤ãã£ã¹ï¼",IRIAM:"IRIAM (ã¤ãªã¢ã )",REALITY:"REALITY"})[t]||t,Ne=t=>e.language==="ja"?{Australia:"ãªã¼ã¹ãã©ãªã¢",Brazil:"ãã©ã¸ã«","Latin America":"ã©ãã³ã¢ã¡ãªã«",Canada:"ã«ãã",China:"ä¸å½",France:"ãã©ã³ã¹",Germany:"ãã¤ã",India:"ã¤ã³ã",Indonesia:"ã¤ã³ããã·ã¢",Italy:"ã¤ã¿ãªã¢",Japan:"æ¥æ¬",Mexico:"ã¡ãã·ã³",Netherlands:"ãªã©ã³ã","New Zealand":"ãã¥ã¼ã¸ã¼ã©ã³ã",Philippines:"ãã£ãªãã³",Russia:"ãã·ã¢",Singapore:"ã·ã³ã¬ãã¼ã«","South Korea":"éå½",Spain:"ã¹ãã¤ã³",Sweden:"ã¹ã¦ã§ã¼ãã³",Thailand:"ã¿ã¤","United Kingdom":"ã¤ã®ãªã¹","United States":"ã¢ã¡ãªã«åè¡å½",Vietnam:"ãããã "}[t]||t:e.language==="ko"?{Australia:"í¸ì£¼",Brazil:"ë¸ë¼ì§","Latin America":"ë¼í´ ìë©ë¦¬ì¹´",Canada:"ìºëë¤",China:"ì¤êµ",France:"íëì¤",Germany:"ë
ì¼",India:"ì¸ë",Indonesia:"ì¸ëë¤ìì",Italy:"ì´í리ì",Japan:"ì¼ë³¸",Mexico:"ë©ìì½",Netherlands:"ë¤ëëë","New Zealand":"ë´ì§ëë",Philippines:"í리í",Russia:"ë¬ìì",Singapore:"ì±ê°í¬ë¥´","South Korea":"ëí민êµ",Spain:"ì¤íì¸",Sweden:"ì¤ì¨ë´",Thailand:"íêµ","United Kingdom":"ìêµ","United States":"미êµ",Vietnam:"ë² í¸ë¨"}[t]||t:e.language==="zh"&&{Australia:"澳大å©äº",Brazil:"巴西","Latin America":"æä¸ç¾æ´²",Canada:"å æ¿å¤§",China:"ä¸å½",France:"æ³å½",Germany:"å¾·å½",India:"å°åº¦",Indonesia:"å°åº¦å°¼è¥¿äº",Italy:"æå¤§å©",Japan:"æ¥æ¬",Mexico:"墨西å¥",Netherlands:"è·å
°","New Zealand":"æ°è¥¿å
°",Philippines:"è²å¾å®¾",Russia:"ä¿ç½æ¯",Singapore:"æ°å å¡","South Korea":"é©å½",Spain:"西çç",Sweden:"çå
¸",Thailand:"æ³°å½","United Kingdom":"è±å½","United States":"ç¾å½",Vietnam:"è¶å"}[t]||t,[u,Ce]=c.useState({mediaUploaded:!1,basicInfoComplete:!1,locationComplete:!1,specialtiesComplete:!1,platformsComplete:!1,pricingComplete:!1,agreementsComplete:!1}),Se=()=>{const t=!!(m||n.profile_image_url),l=!!(d||n.intro_video_url),s=t&&l,i=!!n.influencer_name&&n.influencer_name.trim().length>0&&!!n.bio&&n.bio.trim().length>0,x=!!n.country&&n.languages&&n.languages.length>0,F=n.specialties&&n.specialties.length>0,X=n.platforms&&n.platforms.length>0,Q=S?!0:n.price>0&&n.turnaround_time>0,g=L.terms&&L.content;Ce({mediaUploaded:s,basicInfoComplete:i,locationComplete:x,specialtiesComplete:F,platformsComplete:X,pricingComplete:Q,agreementsComplete:g})};c.useEffect(()=>{Se()},[n,L,m,d]),c.useEffect(()=>{const t=(n.handle||"").trim().toLowerCase();if(!t){E("idle"),_(null);return}const l=D(t);if(l){E("idle"),_(l);return}if(!(o!=null&&o.id))return;E("checking"),_(null);let s=!1;const i=setTimeout(async()=>{try{const{data:x,error:F}=await b.from("creator_applications").select("id").eq("handle",t).neq("user_id",o.id).maybeSingle();if(s)return;if(F){E("idle");return}x?(E("taken"),_(J())):(E("available"),_(null))}catch{if(s)return;E("idle")}},400);return()=>{s=!0,clearTimeout(i)}},[n.handle,o==null?void 0:o.id,D,J]),c.useEffect(()=>{const t=async()=>{if(o){f(!0);try{const{data:l,error:s}=await b.from("creator_applications").select("*").eq("user_id",o.id).eq("status","approved").maybeSingle();if(s)throw s;if(!l){p({title:"Error",description:"Creator profile not found",variant:"destructive"}),w("/");return}const i=l;M({influencer_name:i.influencer_name||"",handle:i.handle||"",bio:i.bio||"",price:i.price||0,turnaround_time:i.turnaround_time||3,standard_delivery_days:i.standard_delivery_days||7,is_active:i.is_active??!0,country:i.country||"United States",languages:i.languages||["English"],specialties:i.specialties||[],platforms:i.platforms||[],work_with_agency:i.has_agency||!1,agency_name:typeof i.content_rights=="string"?i.content_rights:"",profile_image_url:i.profile_image_url||null,intro_video_url:i.intro_video_url||null,thumbnail_url:i.thumbnail_url||null,expressDelivery:i.express_delivery||!1,longerVideos:i.longer_video||!1,is_visible_in_search:i.is_visible_in_search||!1}),te({terms:i.agreed_to_terms??!0,content:i.agreed_to_terms2??!1});const x=i.weekly_request_limit;se((x==null?void 0:x.toString())||""),localStorage.setItem("creatorName",i.influencer_name),localStorage.setItem("creatorId",i.id),localStorage.setItem("creatorProfileLastUpdated",new Date().toISOString())}catch{p({title:"Error",description:"Failed to load profile data",variant:"destructive"})}finally{f(!1)}}};return n.influencer_name||t(),()=>{m&&URL.revokeObjectURL(m),d&&URL.revokeObjectURL(d)}},[o,w]),c.useEffect(()=>{const t=l=>{K&&(l.preventDefault(),l.returnValue="")};return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)},[K]);const Z=V.useCallback(t=>{const{name:l,value:s}=t.target;M(i=>({...i,[l]:s})),j(!0)},[]),R=V.useCallback((t,l)=>{M(s=>({...s,[t]:l})),j(!0)},[]),ze=(t,l)=>{R(t,l)},Ie=async()=>
6{if(o!=null&&o.id)try{ae(!0);const t=G.trim()===""?null:parseInt(G);if(t!==null&&(isNaN(t)||t<0)){N({variant:"destructive",title:e.language==="ko"?"ì í¨íì§ ìì ê°":e.language==="ja"?"ç¡å¹ãªå¤":e.language==="zh"?"æ æå¼":"Invalid value",description:e.language==="ko"?"0 ì´ìì ì«ì를 ì
ë ¥íê±°ë ë¹ìëì¸ì.":e.language==="ja"?"0以ä¸ã®æ°åãå
¥åãããã空ç½ã®ã¾ã¾ã«ãã¦ãã ããã":e.language==="zh"?"请è¾å
¥0ææ´å¤§çæ°åï¼æç空ã":"Please enter a number 0 or greater, or leave empty."}),ae(!1);return}const{error:l}=await b.from("creator_applications").update({weekly_request_limit:t}).eq("user_id",o.id);if(l)throw l;N({title:e.language==="ko"?"ì¤ì ì
ë°ì´í¸ ìë£":e.language==="ja"?"è¨å®ãæ´æ°ããã¾ãã":e.language==="zh"?"è®¾ç½®å·²æ´æ°":"Settings updated",description:t===null?e.language==="ko"?"ì£¼ê° ìì² ì íì´ ë¬´ì íì¼ë¡ ì¤ì ëììµëë¤.":e.language==="ja"?"é±éãªã¯ã¨ã¹ãå¶éãç¡å¶éã«è¨å®ããã¾ããã":e.language==="zh"?"æ¯å¨è¯·æ±éå¶å·²è®¾ä¸ºæ éå¶ã":"Weekly request limit set to unlimited.":e.language==="ko"?`ì£¼ê° ìì² ì íì´ ${t}ê°ë¡ ì¤ì ëììµëë¤.`:e.language==="ja"?`é±éãªã¯ã¨ã¹ãå¶éã${t}ä»¶ã«è¨å®ããã¾ããã`:e.language==="zh"?`æ¯å¨è¯·æ±éå¶å·²è®¾ä¸º${t}个ã`:`Weekly request limit set to ${t}.`})}catch(t){console.error("Error updating weekly limit:",t),N({variant:"destructive",title:e.language==="ko"?"ì
ë°ì´í¸ ì¤í¨":e.language==="ja"?"æ´æ°å¤±æ":e.language==="zh"?"æ´æ°å¤±è´¥":"Update failed",description:e.language==="ko"?"ì¤ì ì ì
ë°ì´í¸íë ì¤ ì¤ë¥ê° ë°ìíìµëë¤.":e.language==="ja"?"è¨å®ã®æ´æ°ä¸ã«ã¨ã©ã¼ãçºçãã¾ããã":e.language==="zh"?"æ´æ°è®¾ç½®æ¶åºéã":"An error occurred while updating settings."})}finally{ae(!1)}},Pe=V.useCallback(async t=>{var i,x,F,X,Q;if(t.preventDefault(),!o)return;const l=(n.handle||"").trim().toLowerCase(),s=D(l);if(s){_(s),p({variant:"destructive",title:e.language==="ko"?"í¸ë¤ íì ì¤ë¥":e.language==="ja"?"ãã³ãã«å½¢å¼ã¨ã©ã¼":e.language==="zh"?"ç¨æ·åæ ¼å¼é误":"Invalid handle",description:s});try{(i=document.getElementById("handle"))==null||i.focus()}catch{}return}if(l&&T==="taken"){const g=J();_(g),p({variant:"destructive",title:e.language==="ko"?"í¸ë¤ ì¤ë³µ":e.language==="ja"?"ãã³ãã«éè¤":e.language==="zh"?"ç¨æ·åéå¤":"Handle taken",description:g});try{(x=document.getElementById("handle"))==null||x.focus()}catch{}return}f(!0);try{let g=n.profile_image_url;if(m)try{const I=await fetch(m);if(!I.ok)throw new Error(`Failed to fetch blob: ${I.status} ${I.statusText}`);const de=await I.blob(),Ve=`${o.id}-${Date.now()}.png`,ue=`${o.id}/${Ve}`,{data:pa,error:me}=await b.storage.from("creator-profiles").upload(ue,de,{cacheControl:"3600",upsert:!0,contentType:"image/png"});if(me)throw me;const{data:De}=b.storage.from("creator-profiles").getPublicUrl(ue);g=De.publicUrl}catch{try{URL.revokeObjectURL(m)}catch{}g=n.profile_image_url}const q=d||n.intro_video_url,{data:B,error:ne}=await b.from("creator_applications").select("is_visible_in_search, profile_completed_at").eq("user_id",o.id).eq("status","approved").single(),$=B&&!B.is_visible_in_search&&!B.profile_completed_at,Fe={influencer_name:n.influencer_name,handle:l.length>0?l:null,bio:n.bio,price:n.price,turnaround_time:n.turnaround_time,standard_delivery_days:n.standard_delivery_days,is_active:n.is_active,country:n.country,languages:n.languages,platforms:n.platforms,specialties:n.specialties,has_agency:n.work_with_agency,content_rights:n.work_with_agency,updated_at:new Date().toISOString(),profile_image_url:g,intro_video_url:q,thumbnail_url:k||n.thumbnail_url,express_delivery:n.expressDelivery,longer_video:n.longerVideos,agreed_to_terms:L.terms,agreed_to_terms2:L.content,is_visible_in_search:!0,...$?{profile_completed_at:new Date().toISOString()}:{}},{error:ge,data:ma}=await b.from("creator_applications").update(Fe).eq("user_id",o.id).eq("status","approved");if(ge)throw ge;if(m)try{URL.revokeObjectURL(m)}catch{}A(null),C(null),h(null),j(!1),M(I=>({...I,profile_image_url:g,intro_video_url:q,thumbnail_url:k||I.thumbnail_url,is_visible_in_search:!0})),p({title:"Profile updated",description:"Your profile settings have been saved successfully."}),localStorage.setItem("creatorName",n.influencer_name),localStorage.setItem("creatorProfileLastUpdated",new Date().toISOString()),await v(),setTimeout(()=>window.dispatchEvent(new Event("storage")),100)}catch(g){const q=(g==null?void 0:g.code)||((F=g==null?void 0:g.details)==null?void 0:F.code),B=q==="23505"&&typeof(g==null?void 0:g.message)=="str
6ing"&&/handle/i.test(g.message),ne=q==="23514"&&typeof(g==null?void 0:g.message)=="string"&&/handle/i.test(g.message);if(B){const $=e.language==="ko"?"ì´ë¯¸ ì¬ì© ì¤ì¸ í¸ë¤ì
ëë¤. ë¤ë¥¸ í¸ë¤ì ì íí´ ì£¼ì¸ì.":e.language==="ja"?"ãã®ãã³ãã«ã¯æ¢ã«ä½¿ç¨ããã¦ãã¾ããå¥ã®ãã³ãã«ã鏿ãã¦ãã ããã":e.language==="zh"?"æ¤ç¨æ·å已被å ç¨ï¼è¯·éæ©å
¶ä»ã":"This handle is already taken. Please choose another one.";_($),p({variant:"destructive",title:e.language==="ko"?"í¸ë¤ ì¤ë³µ":e.language==="ja"?"ãã³ãã«éè¤":e.language==="zh"?"ç¨æ·åéå¤":"Handle taken",description:$});try{(X=document.getElementById("handle"))==null||X.focus()}catch{}}else if(ne){const $=e.language==="ko"?"í¸ë¤ íìì´ ì¬ë°ë¥´ì§ ììµëë¤.":e.language==="ja"?"ãã³ãã«ã®å½¢å¼ãæ£ããããã¾ããã":e.language==="zh"?"ç¨æ·åæ ¼å¼ä¸æ£ç¡®ã":"Handle format is invalid.";_($),p({variant:"destructive",title:e.language==="ko"?"í¸ë¤ íì ì¤ë¥":e.language==="ja"?"ãã³ãã«å½¢å¼ã¨ã©ã¼":e.language==="zh"?"ç¨æ·åæ ¼å¼é误":"Invalid handle",description:$});try{(Q=document.getElementById("handle"))==null||Q.focus()}catch{}}else p({variant:"destructive",title:"Update failed",description:"There was a problem updating your profile. Please try again."})}finally{f(!1)}},[o,n,m,d,k,L,v,D,T,J,e.language]),Te=t=>{te(l=>({...l,terms:t})),j(!0),t&&o&&he("Creator agreed to Term 1",o.email,o.id,"terms_agreement_1",{agreed_to_terms:!0})},Le=t=>{te(l=>({...l,content:t})),j(!0),t&&o&&he("Creator agreed to Term 2",o.email,o.id,"terms_agreement_2",{agreed_to_terms2:!0})},Re=async t=>{var i;const l=(i=t.target.files)==null?void 0:i[0];if(!l)return;const s=5*1024*1024;if(l.size>s){p({title:"Error",description:"Image size should be less than 5MB",variant:"destructive"});return}if(!l.type.startsWith("image/")){p({title:"Error",description:"Please upload an image file",variant:"destructive"});return}Y(!0);try{m&&URL.revokeObjectURL(m);const x=URL.createObjectURL(l);A(x),j(!0)}catch{p({title:"Error",description:"Failed to process image",variant:"destructive"})}finally{Y(!1)}},Ue=async(t,l,s)=>{C(t),s&&h(s),j(!0),p({title:"Video uploaded",description:"Your intro video has been uploaded. Don't forget to save changes!",variant:"default"})},Ee=["English","Spanish","French","German","Portuguese","Japanese","Chinese","Korean","Indonesian","Thai","Vietnamese"],$e=["Singing","Dancing","Talking","Advice","Celebration","Roleplay","Cosplay","Voice Acting","ASMR","Memes","Reaction","UWU"],Ae=["Twitch","YouTube","TikTok","Bilibili","SOOP","CHZZK","TwitCasting","IRIAM","REALITY"];return a.jsxs("div",{className:"p-4 md:p-8 bg-gray-50 min-h-screen",children:[a.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-gray-800 mb-4 md:mb-6",children:e.language==="ja"?"ãããã£ã¼ã«è¨å®":e.language==="ko"?"íë¡í ì¤ì ":e.language==="zh"?"ä¸ªäººèµæè®¾ç½®":"Profile Settings"}),z?a.jsx("div",{className:"flex justify-center items-center h-40",children:a.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-vlinky-purple"})}):a.jsxs(a.Fragment,{children:[S&&a.jsx(sa,{}),a.jsxs("form",{onSubmit:Pe,className:"space-y-5 md:space-y-8",children:[a.jsxs("div",{className:"bg-white rounded-2xl shadow-sm ring-1 ring-gray-200/70 p-5 md:p-6 mb-4",children:[a.jsx("div",{className:"mb-5",children:a.jsx("h2",{className:"text-lg font-semibold tracking-tight text-gray-900",children:["ko","ja"].includes(e.language)?r("creatorProfile.media.title"):e.language==="zh"?"åªä½":"Media"})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 lg:gap-5",children:[a.jsxs("div",{className:"rounded-xl border border-gray-200 bg-gray-50/40 p-4 flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3 gap-3",children:[a.jsx("h3",{className:"text-[13px] font-semibold tracking-tight text-gray-900",children:e.language==="ja"?"ãããã£ã¼ã«ç»å":e.language==="ko"?"íë¡í ì´ë¯¸ì§":e.language==="zh"?"ä¸ªäººèµæç
§ç":"Profile Image"}),a.jsx("span",{className:"text-[10px] font-medium text-gray-400 uppercase tracking-[0.08em] whitespace-nowrap",children:"PNG · JPG · â¤5MB"})]}),a.jsxs("button",{type:"button",disabled:P,onClick:()=>{var t;return(t=document.getElementById("profile-image-upload"))==null?void 0:t.click()},"aria-label":e.language==="ja"?"ç»åãã¢ãããã¼ã":e.language==="ko"?"ì´ë¯¸ì§ ì
ë¡ë":e.language==="zh"?"ä¸ä¼ ç
§ç":"Upload image",className:"group relative w-full mx-auto rounded-lg overflow-hidden ring-1 ring-gray-200 bg-gradient-to-br from-gray-50 to-gray-100 shadow-sm transition-all duration-200 hover:ring-gray-300 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-500 disabled:opacity-70 disabled:cursor-progress",style:ie?{aspectRatio:`${ie}`}:{aspectRatio:"4 / 5"},children:[m||n.profile_image_url?a.jsx("img",{src:m||n.profile_image_url,alt:"Profile",className:"w-full h-full object-cover",onLoad:t=>{const l=t.target;
6l.naturalWidth&&l.naturalHeight&&je(l.naturalWidth/l.naturalHeight)}}):a.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center text-gray-400 gap-2",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-white shadow-sm ring-1 ring-gray-200 flex items-center justify-center",children:a.jsx(We,{className:"h-7 w-7 text-gray-400",strokeWidth:1.75})}),a.jsx("p",{className:"text-xs text-gray-500 font-medium",children:e.language==="ja"?"ç»åã追å ":e.language==="ko"?"ì´ë¯¸ì§ë¥¼ ì¶ê°íì¸ì":e.language==="zh"?"æ·»å ç
§ç":"Add a photo"})]}),!P&&a.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 flex items-center justify-center bg-black/0 group-hover:bg-black/45 transition-colors duration-200",children:a.jsxs("span",{className:"opacity-0 group-hover:opacity-100 translate-y-1 group-hover:translate-y-0 transition-all duration-200 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/95 text-gray-900 text-xs font-semibold shadow",children:[a.jsx(Ye,{className:"h-3.5 w-3.5"}),m||n.profile_image_url?e.language==="ja"?"ç»åã夿´":e.language==="ko"?"ì´ë¯¸ì§ ë³ê²½":e.language==="zh"?"æ´æ¢ç
§ç":"Replace photo":e.language==="ja"?"ç»åã鏿":e.language==="ko"?"ì´ë¯¸ì§ ì í":e.language==="zh"?"éæ©ç
§ç":"Choose photo"]})}),P&&a.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-white/80 backdrop-blur-sm",children:a.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-medium text-gray-700",children:[a.jsxs("svg",{className:"w-4 h-4 animate-spin text-purple-600",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[a.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),a.jsx("path",{d:"M22 12a10 10 0 0 1-10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),e.language==="ja"?"ã¢ãããã¼ãä¸...":e.language==="ko"?"ì
ë¡ë ì¤...":e.language==="zh"?"ä¸ä¼ ä¸...":"Uploading..."]})})]}),a.jsx("div",{className:"flex items-center justify-end gap-3 mt-4",children:a.jsxs(re,{type:"button",variant:"outline",size:"sm",className:"flex items-center gap-1.5 flex-shrink-0",disabled:P,onClick:()=>{var t;return(t=document.getElementById("profile-image-upload"))==null?void 0:t.click()},children:[a.jsx(oa,{className:"h-3.5 w-3.5"}),P?e.language==="ja"?"ã¢ãããã¼ãä¸...":e.language==="ko"?"ì
ë¡ë ì¤...":e.language==="zh"?"ä¸ä¼ ä¸...":"Uploading...":e.language==="ja"?"æ°ããç»åãã¢ãããã¼ã":e.language==="ko"?"ì ì´ë¯¸ì§ ì
ë¡ë":e.language==="zh"?"ä¸ä¼ æ°ç
§ç":"Upload New Image"]})}),a.jsx("input",{type:"file",id:"profile-image-upload",className:"hidden",accept:"image/*",onChange:Re,disabled:P})]}),a.jsxs("div",{className:"rounded-xl border border-gray-200 bg-gray-50/40 p-4 flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3 gap-3",children:[a.jsx("h3",{className:"text-[13px] font-semibold tracking-tight text-gray-900",children:e.language==="ja"?"ç´¹ä»åç»":e.language==="ko"?"ìê° ëìì":e.language==="zh"?"èªæç®ä»è§é¢":"Intro Video"}),a.jsx("span",{className:"text-[10px] font-medium text-gray-400 uppercase tracking-[0.08em] whitespace-nowrap",children:"MP4 · â¤1GB"})]}),a.jsx("div",{className:"rounded-lg overflow-hidden ring-1 ring-gray-200 bg-gradient-to-br from-gray-50 to-gray-100 shadow-sm",children:d||n.intro_video_url?a.jsx(pe,{ratio:16/9,className:"bg-black/5",children:a.jsx("video",{src:d||n.intro_video_url,controls:!0,playsInline:!0,"webkit-playsinline":"true",className:"w-full h-full object-contain",poster:k||n.thumbnail_url||void 0,preload:"metadata"})}):a.jsx(pe,{ratio:16/9,children:a.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center text-gray-400 gap-2",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-white shadow-sm ring-1 ring-gray-200 flex items-center justify-center",children:a.jsx(Ke,{className:"h-7 w-7 text-gray-400",strokeWidth:1.75})}),a.jsx("p",{className:"text-xs text-gray-500 font-medium",children:e.language==="ja"?"ç´¹ä»åç»ã追å ":e.language==="ko"?"ìê° ëìì ì¶ê°":e.language==="zh"?"æ·»å ä»ç»è§é¢":"Add an intro video"})]})})}),a.jsx("div",{className:"mt-3",children:a.jsx(la,{inline:!0,onUploadSuccess:(t,l,s)=>Ue(t,l,s),creatorName:n.influencer_name,isIntroVideo:!0})})]})]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.title"):e.language==="zh"?"åºæ¬ä¿¡æ¯":"Basic Information"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",children:[a.jsxs("div",{children:[a.jsx(y,{htmlFor:"influencer_name",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.characterName"):e.language==="zh"?"èæè§è²åç§°":"Virtual Character Name"}),a.jsx(O,{id:"influencer_name",name:"influencer_name",value:n.influencer_name,onChange:Z,className:"mt-1",autoComplete:"name",required:!0})]}),a.jsxs("div",{children:[a.jsx(y,{htmlFor:"email",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.email"):e.language==="zh"?"é®ç®±":"Email"}),a.jsx(O,{id:"email",name:"email",value:(o==null?void 0:o.email)||"",readOnly:!0,className:"mt-1 bg-gray-100",autoComplete:"email"})]})]}),a.jsxs("div",{className:"mt-4",children:[a.jsx(y,{htmlFor:"handle",className:"block mb-1",children:e.language==="ko"?"í¸ë¤ (íë¡í URL)":e.language==="ja"?"ãã³ãã«(ãããã£ã¼ã«URL)":e.language==="zh"?"ç¨æ·å(ä¸ªäººèµæ URL)":"Handle (Profile URL)"}),a.jsxs("div",{className:`mt-1 flex items-stretch rounded-md bg-white ring-1 overflow-hidden transition-shadow ${U?"ring-red-400 focus-within:ring-2 focus-within:ring-red-500":T==="available"?"ring-green-400 focus-within:ring-2 focus-within:ring-green-500":"ring-gray-200 focus-within:ring-2 focus-within:ring-purple-500"}`,children:[a.jsx("span",{className:"inline-flex items-center px-3 bg-gray-50 text-gray-500 text-sm border-r border-gray-200 select-none",children:"vlooplay.com/"}),a.jsx("input",{id:"handle",name:"handle",type:"text",value:n.handle,onChange:t=>{const s=t.target.value.toLowerCase().replace(/[^a-z0-9_-]/g,"").slice(0,30);M(i=>({...i,handle:s})),j(!0),U&&_(null)},onBlur:()=>{const t=D(n.handle);t&&_(t)},placeholder:"your-handle",className:"flex-1 min-w-0 px-3 py-2 text-sm outline-none bg-transparent",autoComplete:"off",spellCheck:!1,maxLength:30}),n.handle&&a.jsxs("span",{className:"inline-flex items-center justify-center w-10 border-l border-gray-100 bg-gray-50",children:[T==="checking"&&a.jsxs("svg",{className:"w-4 h-4 text-gray-400 animate-spin",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[a.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),a.jsx("path",{d:"M22 12a10 10 0 0 1-10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),T==="available"&&!U&&a.jsx("svg",{className:"w-4 h-4 text-green-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("polyline",{points:"20 6 9 17 4 12"})}),(T==="taken"||U)&&a.jsxs("svg",{className:"w-4 h-4 text-red-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[a.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})]}),n.handle&&!U&&T!=="taken"&&a.jsx("button",{type:"button",onClick:async()=>{var l;const t=`https://vlooplay.com/${n.handle}`;try{if((l=navigator.clipboard)!=null&&l.writeText)await navigator.clipboard.writeText(t);else{const s=document.createElement("textarea");s.value=t,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s)}oe(!0),window.setTimeout(()=>
6oe(!1),1500),p({title:e.language==="ko"?"주ìê° ë³µì¬ëììµëë¤":e.language==="ja"?"URLãã³ãã¼ãã¾ãã":e.language==="zh"?"å·²å¤å¶é¾æ¥":"Profile URL copied",description:t})}catch(s){console.error("Failed to copy handle URL:",s),p({variant:"destructive",title:e.language==="ko"?"ë³µì¬ ì¤í¨":e.language==="ja"?"ã³ãã¼ã«å¤±æãã¾ãã":e.language==="zh"?"å¤å¶å¤±è´¥":"Copy failed",description:e.language==="ko"?"주ì를 ì§ì ì íí´ ë³µì¬í´ 주ì¸ì.":e.language==="ja"?"URLãæåã§é¸æãã¦ã³ãã¼ãã¦ãã ããã":e.language==="zh"?"请æå¨éæ©å¹¶å¤å¶é¾æ¥ã":"Please copy the URL manually."})}},"aria-label":e.language==="ko"?"íë¡í 주ì ë³µì¬":e.language==="ja"?"ãããã£ã¼ã«URLãã³ãã¼":e.language==="zh"?"å¤å¶ä¸ªäººèµæé¾æ¥":"Copy profile URL",title:e.language==="ko"?"íë¡í 주ì ë³µì¬":e.language==="ja"?"ãããã£ã¼ã«URLãã³ãã¼":e.language==="zh"?"å¤å¶ä¸ªäººèµæé¾æ¥":"Copy profile URL",className:"inline-flex items-center justify-center w-10 border-l border-gray-100 bg-gray-50 hover:bg-gray-100 active:bg-gray-200 transition-colors text-gray-500 hover:text-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-500",children:ye?a.jsx(Ge,{className:"w-4 h-4 text-green-600","aria-hidden":"true"}):a.jsx(ca,{className:"w-4 h-4","aria-hidden":"true"})})]}),U?a.jsx("p",{className:"text-xs text-red-500 mt-1",children:U}):T==="available"?a.jsx("p",{className:"text-xs text-green-600 mt-1",children:e.language==="ko"?"ì¬ì© ê°ë¥í í¸ë¤ì
ëë¤.":e.language==="ja"?"ãã®ãã³ãã«ã¯ä½¿ç¨ã§ãã¾ãã":e.language==="zh"?"æ¤ç¨æ·åå¯ç¨ã":"Handle is available."}):a.jsx("p",{className:"text-xs text-gray-500 mt-1",children:e.language==="ko"?"3â30ì, ìì문ì·ì«ì·_·- ë§ ì¬ì© ê°ë¥í©ëë¤.":e.language==="ja"?"3ã30æåãå°æåè±æ°åã»_ã»- ã®ã¿ä½¿ç¨å¯è½ã§ãã":e.language==="zh"?"3-30个å符ï¼ä»
å
许å°ååæ¯ãæ°åã_ å -ã":'3â30 characters. Lowercase letters, numbers, "_" and "-" only.'})]}),a.jsxs("div",{className:"mt-4",children:[a.jsx(y,{htmlFor:"bio",className:"block mb-2",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.bio"):e.language==="zh"?"个人ç®ä»":"Bio"}),a.jsx(ra,{id:"bio",name:"bio",value:n.bio||"",onChange:Z,placeholder:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.bioPlaceholder"):e.language==="zh"?"åç²ä¸ä»ç»ä¸ä¸æ¨èªå·±...":"Tell fans about yourself...",className:"mt-1 min-h-[150px]","aria-describedby":"bio-description",autoComplete:"off"}),a.jsx("p",{id:"bio-description",className:"text-xs text-gray-500 mt-1",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.basicInfo.bioDescription"):e.language==="zh"?"å享å
³äºæ¨èªå·±ãæ¨çå
容以忍è§é¢çç¬ç¹ä¹å¤ã":"Share information about yourself, your content, and what makes your videos unique."})]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.location.title"):e.language==="zh"?"å°ç¹åè¯è¨":"Location & Language"}),a.jsxs("div",{className:"mb-4",children:[a.jsx(y,{htmlFor:"country",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.location.country"):e.language==="zh"?"æ¨çå½å®¶":"Your Country"}),a.jsxs(Je,{name:"country",value:n.country,onValueChange:t=>ze("country",t),autoComplete:"country-name",children:[a.jsx(Ze,{id:"country",className:"mt-1",children:a.jsx(Xe,{placeholder:e.language==="ko"?r("creatorProfile.location.selectCountry"):"Select country"})}),a.jsx(Qe,{children:ea.map(t=>a.jsx(aa,{value:t.name,children:Ne(t.name)},t.code))})]})]}),a.jsxs("div",{children:[a.jsx("div",{id:"languages-label",className:"block mb-2 text-sm font-medium",children:e.language==="ja"||e.language==="ko"?r("creatorProfile.location.languages"):e.language==="zh"?"æ¨ä¼è¯´æå¯ä»¥å½å¶çè¯è¨":"Languages You Speak or Can Record In"}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",role:"group","aria-labelledby":"languages-label",children:Ee.map(t=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(H,{id:`language-${t}`,name:"languages[]",value:t,checked:n.languages.includes(t),onCheckedChange:l=>{l?R("languages",[...n.languages,t]):R("languages",n.languages.filter(s=>s!==t))}}),a.jsx(y,{htmlFor:`language-${t}`,className:"text-sm",children:e.language==="ja"?ve(t):e.language==="ko"?be(t):e.language==="zh"?ke(t):t})]},t))})]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{id:"specialties-label",className:"text-lg font-semibold mb-4",children:e.language==="ja"?"ã¸ã£ã³ã«":e.language==="ko"?r("creatorProfile.specialties.title"):e.language==="zh"?"å
容ä¸ä¸é¢
6å":"Content Specialties"}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",role:"group","aria-labelledby":"specialties-label",children:$e.map(t=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(H,{id:`specialty-${t}`,name:"specialties[]",value:t,checked:n.specialties.includes(t),onCheckedChange:l=>R("specialties",l?[...n.specialties,t]:n.specialties.filter(s=>s!==t))}),a.jsx(y,{htmlFor:`specialty-${t}`,className:"text-sm",children:r(`specialties.${t}`,{defaultValue:t,ns:"common"})})]},t))})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h3",{className:"text-lg font-semibold mb-4",children:e.language==="ko"?r("creatorProfile.platforms.title"):e.language==="ja"?"ãã©ãããã©ã¼ã ":e.language==="zh"?"æµåªä½å¹³å°":"Streaming Platforms"}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",children:Ae.map(t=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(H,{id:`platform-${t}`,checked:n.platforms.includes(t),onCheckedChange:l=>R("platforms",l?[...n.platforms,t]:n.platforms.filter(s=>s!==t))}),a.jsx(y,{htmlFor:`platform-${t}`,className:"text-sm font-medium cursor-pointer",children:e.language==="ko"?r(`creatorProfile.platforms.${t.toLowerCase()}`):e.language==="ja"?we(t):e.language==="zh"?_e(t):t})]},t))})]}),!S&&a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"?"æéè¨å®":e.language==="ko"?r("creatorProfile.pricing.title"):e.language==="zh"?"å®ä»·":"Pricing"}),a.jsx("p",{className:"text-xs text-gray-500 mb-6",children:e.language==="ja"?"åºæ¬æéã¨é
ä¿¡ãªãã·ã§ã³ãè¨å®ãã¦ãã ããã":e.language==="ko"?r("creatorProfile.pricing.description"):e.language==="zh"?"设置æ¨çåºç¡ä»·æ ¼å交ä»é项ã":"Set your base price and delivery options."}),a.jsxs("div",{className:"space-y-4 md:space-y-6",children:[a.jsxs("div",{children:[a.jsx(y,{htmlFor:"price",children:e.language==="ja"?"åºæ¬æé (ç±³ãã«) - 20ç§ä»¥ä¸ã®åç»":e.language==="ko"?"기본 ê°ê²© (ë¬ë¬) - 20ì´ ì´ì ìì":e.language==="zh"?"åºç¡ä»·æ ¼ (ç¾å
) - 20ç§ä»¥ä¸è§é¢":"Base Price (USD) - 20 seconds or more video"}),a.jsxs("div",{className:"mt-1 relative",children:[a.jsx(ta,{className:"absolute left-3 top-2.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),a.jsx(O,{id:"price",name:"price",type:"number",min:"0",step:"0.01",value:n.price,onChange:Z,className:"pl-10",autoComplete:"transaction-amount",required:!0})]})]}),a.jsxs("div",{children:[a.jsx(y,{htmlFor:"standard_delivery_days",children:e.language==="ja"?"æ¨æºåç»é
ä¿¡æé (æ¥)":e.language==="ko"?r("creatorProfile.pricing.deliveryTime"):e.language==="zh"?"æ åè§é¢äº¤ä»æ¶é´ (天)":"Standard Video Delivery Time (days)"}),a.jsxs("div",{className:"mt-1 relative",children:[a.jsx(na,{className:"absolute left-3 top-2.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),a.jsx(O,{id:"standard_delivery_days",name:"standard_delivery_days",type:"number",min:"7",max:"30",value:n.standard_delivery_days,onChange:Z,className:"pl-10",required:!0})]}),a.jsx("p",{className:"text-xs text-gray-500 mt-1",children:e.language==="ko"?"7ì¼ìì 30ì¼ ì¬ì´ë¡ ì¤ì ê°ë¥í©ëë¤. ìë¡ì´ ìì²ë¶í° ì ì©ë©ëë¤.":e.language==="ja"?"7æ¥ãã30æ¥ã®éã§è¨å®ã§ãã¾ããæ°ãããªã¯ã¨ã¹ãããé©ç¨ããã¾ãã":e.language==="zh"?"å¯è®¾ç½®ä¸º7å°30天ãå°åºç¨äºæ°è¯·æ±ã":"Set between 7-30 days. Will apply to new requests."})]}),a.jsxs("div",{className:"space-y-4 pt-4 border-t border-gray-200",children:[a.jsx("h3",{className:"font-medium text-gray-900",children:e.language==="ja"?"追å ãªãã·ã§ã³":e.language==="ko"?"ì¶ê° ìµì
":e.language==="zh"?"éå é项":"Additional Options"}),a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-2 sm:space-y-0 sm:space-x-2 p-3 md:p-4 bg-purple-50 rounded-lg border border-purple-100",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("h4",{className:"font-medium text-purple-900",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?"ìµì¤íë ì¤":e.language==="ja"?"ã¹ãã¼ã対å¿
6":"å¿«é交ä»":"Express Delivery"}),a.jsx("p",{className:"text-sm text-purple-600",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?"2ì¼ ë´ ìì ë°°ì¡ ì ê°ê²© 50% ì¶ê°":e.language==="ja"?"2æ¥ä»¥å
ã®åç»é
ä¿¡ã§ä¾¡æ ¼50%追å ":"æä¾2天交ä»ï¼å ä»·50%":"Offer 2-day delivery for +50% price"}),n.expressDelivery&&a.jsx("p",{className:"text-sm font-medium text-purple-900",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?`ì¶ê° ììµ: +$${(n.price*.5).toFixed(2)}`:e.language==="ja"?`è¿½å æé: +$${(n.price*.5).toFixed(2)}`:`éå ä»·æ ¼: +$${(n.price*.5).toFixed(2)}`:`Additional Price: +$${(n.price*.5).toFixed(2)}`})]}),a.jsx(le,{checked:n.expressDelivery,onCheckedChange:t=>R("expressDelivery",t)})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-2 sm:space-y-0 sm:space-x-2 p-3 md:p-4 bg-blue-100 rounded-lg border border-blue-200",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("h4",{className:"font-medium text-blue-700",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?"롱í¼":e.language==="ja"?"ãã³ã°ã¡ãã»ã¼ã¸":"é¿è§é¢":"Longer Videos"}),a.jsx("p",{className:"text-sm text-blue-600",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?"ìµì 2ë¶ ì´ì 긴 ìì ì ê³µ ì ê°ê²© 50% ì¶ê°":e.language==="ja"?"æä½2å以ä¸ã®ãã³ã°ã¡ãã»ã¼ã¸ã§ä¾¡æ ¼50%追å ":"æä¾æç2åé以ä¸çè§é¢ï¼å ä»·50%":"Offer extended videos minimum 2 minutes or more for +50% price"}),n.longerVideos&&a.jsx("p",{className:"text-sm font-medium text-blue-800",children:["ko","ja","zh"].includes(e.language)?e.language==="ko"?`ì¶ê° ììµ: +$${(n.price*.5).toFixed(2)}`:e.language==="ja"?`è¿½å æé: +$${(n.price*.5).toFixed(2)}`:`éå ä»·æ ¼: +$${(n.price*.5).toFixed(2)}`:`Additional Price: +$${(n.price*.5).toFixed(2)}`})]}),a.jsx(le,{checked:n.longerVideos,onCheckedChange:t=>R("longerVideos",t),className:"data-[state=checked]:bg-blue-500"})]})]})]})]}),!S&&a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"?"é±éãããªãªã¯ã¨ã¹ãå¶é":e.language==="ko"?"ì£¼ê° ë¹ëì¤ ìì² ì í":e.language==="zh"?"æ¯å¨è§é¢è¯·æ±éå¶":"Weekly Video Request Limit"}),a.jsx("p",{className:"text-xs text-gray-500 mb-4",children:e.language==="ja"?"æ¯é±åãåãããããªãªã¯ã¨ã¹ãæ°ãè¨å®ãã¦ãã ããã空ç½ã®å ´åã¯ç¡å¶éã§ãã":e.language==="ko"?"매주 ë°ì ì ìë ë¹ëì¤ ìì² ì를 ì¤ì íì¸ì. ë¹ìëë©´ 무ì íì
ëë¤.":e.language==="zh"?"设置æ¯å¨å¯æ¥åçè§é¢è¯·æ±æ°éãç空å为æ éå¶ã":"Set how many video requests you can accept per week. Leave empty for unlimited."}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[a.jsx("div",{className:"flex-1",children:a.jsx(O,{type:"number",value:G,onChange:t=>se(t.target.value),placeholder:e.language==="ja"?"ä¾ï¼10ï¼ç©ºç½ã§ç¡å¶éï¼":e.language==="ko"?"ì: 10 (ë¹ìëë©´ 무ì í)":e.language==="zh"?"ä¾å¦ï¼10ï¼ç空为æ éï¼":"e.g., 10 (empty for unlimited)",className:"text-sm",min:"0",disabled:ee})}),a.jsx(re,{onClick:Ie,disabled:ee,className:"w-full sm:w-auto px-6",children:ee?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white"}),e.language==="ja"?"ä¿åä¸...":e.language==="ko"?"ì ì¥ ì¤...":e.language==="zh"?"ä¿åä¸...":"Saving..."]}):e.language==="ja"?"ä¿å":e.language==="ko"?"ì ì¥":e.language==="zh"?"ä¿å":"Save"})]}),a.jsx("p",{className:"text-xs text-gray-500 mt-3",children:e.language==="ja"?"ð¡ ãã³ãï¼æææ¥00:00 UTCãã1é±éãå§ã¾ãã¾ãã":e.language==="ko"?"ð¡ í: ììì¼ 00:00 UTCë¶í° í ì£¼ê° ììë©ëë¤.":e.language==="zh"?"ð¡ æç¤ºï¼æ¯å¨ä»å¨ä¸00:00 UTCå¼å§ã":"ð¡ Tip: Each week starts on Monday 00:00 UTC."})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"?"åç»ãªã¯ã¨ã¹ãç¶æ
":e.language==="ko"?r("creatorProfile.status.title"):e.language==="zh"?"è§é¢è¯·æ±ç¶æ":"Video Request Status"}),a.jsx("p",{className:"text-xs text-gray-500 mb-4",children:e.language==="ja"?"ãã¡ã³ããã®åç»ãªã¯ã¨ã¹ããåãä»ãããã©ãããè¨å®ãã¦ãã ããã":e.language==="ko"?r("creatorProfile.status.description"):e.language==="zh"?"æ§å¶æ¨æ¯å¦å¸ææ¥æ¶æ¥èªç²ä¸çè§é¢è¯·æ±ã":"Control whether you want to re
6ceive video requests from fans."}),a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-2 sm:space-y-0 sm:space-x-2 p-3 md:p-4 bg-gray-50 rounded-lg border border-gray-200",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("h4",{className:"font-medium text-gray-900",children:e.language==="ja"?"åç»ãªã¯ã¨ã¹ããåãä»ãã":e.language==="ko"?r("creatorProfile.status.acceptRequests"):e.language==="zh"?"æ¥åè§é¢è¯·æ±":"Accept Video Requests"}),a.jsx("p",{className:"text-sm text-gray-600",children:n.is_active?e.language==="ja"?"ç¾å¨ãã¡ã³ããã®åç»ãªã¯ã¨ã¹ããåãä»ãã¦ãã¾ãã":e.language==="ko"?r("creatorProfile.status.accepting"):e.language==="zh"?"æ¨ç®åæ£å¨æ¥åæ¥èªç²ä¸çè§é¢è¯·æ±ã":"You are currently accepting video requests from fans.":e.language==="ja"?"ç¾å¨ãã¡ã³ããã®åç»ãªã¯ã¨ã¹ããåãä»ãã¦ãã¾ããã":e.language==="ko"?r("creatorProfile.status.notAccepting"):e.language==="zh"?"æ¨ç®å䏿¥åæ¥èªç²ä¸çè§é¢è¯·æ±ã":"You are currently not accepting video requests from fans."})]}),a.jsx(le,{checked:n.is_active,onCheckedChange:t=>R("is_active",t),className:"data-[state=checked]:bg-vlinky-purple"})]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"?"å¿
é åæäºé
":e.language==="ko"?r("creatorProfile.agreements.title"):e.language==="zh"?"å¿
éåè®®":"Required Agreements"}),a.jsxs("div",{className:"flex items-start space-x-2 mb-4",children:[a.jsx(H,{id:"terms-agreement",checked:L.terms,onCheckedChange:Te}),a.jsx(y,{htmlFor:"terms-agreement",className:"text-xs md:text-sm",children:e.language==="ko"?a.jsxs(a.Fragment,{children:["본 ìë¹ì¤ì ",a.jsx("a",{href:"https://vlooplay.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"ìë¹ì¤ ì´ì©ì½ê´"}),"ê³¼ ",a.jsx("a",{href:"https://vlooplay.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"ê°ì¸ì ë³´ ì²ë¦¬ë°©ì¹¨"}),"ì ì¶©ë¶í ìì§íììµëë¤."]}):e.language==="ja"?a.jsxs(a.Fragment,{children:["ãµã¼ãã¹ã®",a.jsx("a",{href:"https://vlooplay.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"å©ç¨è¦ç´"}),"ã¨",a.jsx("a",{href:"https://vlooplay.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"ãã©ã¤ãã·ã¼ããªã·ã¼"}),"ãèªã¿çè§£ãã¾ããã"]}):e.language==="zh"?a.jsxs(a.Fragment,{children:["æå·²å
åäºè§£æ¬æå¡ç",a.jsx("a",{href:"https://vlooplay.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"æå¡æ¡æ¬¾"}),"å",a.jsx("a",{href:"https://vlooplay.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"éç§æ¿ç"}),"ã"]}):a.jsxs(a.Fragment,{children:["I have read and understood the Service's ",a.jsx("a",{href:"https://vlooplay.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"Terms of Service"})," and ",a.jsx("a",{href:"https://vlooplay.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"text-vlinky-purple hover:underline",children:"Privacy Policy"}),"."]})})]}),a.jsxs("div",{className:"flex items-start space-x-2",children:[a.jsx(H,{id:"content-agreement",checked:L.content,onCheckedChange:Le}),a.jsx(y,{htmlFor:"content-agreement",className:"text-xs md:text-sm",children:e.language==="ko"?a.jsx(a.Fragment,{children:"íë«í¼ì ê³µì íë ì½í
ì¸ ì ëí´ ì ì¤í ìí ê²ì íì¸í©ëë¤."}):e.language==="ja"?a.jsx(a.Fragment,{children:"ãã®ãã©ãããã©ã¼ã ã§å
±æããã³ã³ãã³ãã«é
æ
®ãã¦åãæ±ããã¨ã確èªãã¾ãã"}):e.language==="zh"?a.jsx(a.Fragment,{children:"æç¡®è®¤å¨æ¬å¹³å°å享å
å
6®¹æ¶ä¼ä¿æè°¨æ
ã"}):a.jsx(a.Fragment,{children:"I acknowledge that I am mindful of the content I share on the platform."})})]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow p-4 md:p-6 mb-4",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:e.language==="ja"?"ãããã£ã¼ã«å®æåº¦":e.language==="ko"?r("creatorProfile.completion.title"):e.language==="zh"?"ä¸ªäººèµæå®æç¶æ":"Profile Completion Status"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.mediaUploaded?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.media"):e.language==="ja"?"ã¡ãã£ã¢ã¢ãããã¼ã":"åªä½ä¸ä¼ ":"Media Uploads"," ",u.mediaUploaded?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.mediaMissing"):e.language==="ja"?"- ãããã£ã¼ã«ç»åã¾ãã¯ç´¹ä»åç»ãæªç»é²":"- 缺å°ä¸ªäººå¤´åæä»ç»è§é¢":"- Missing profile image or intro video"]})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.basicInfoComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.basicInfo"):e.language==="ja"?"åºæ¬æ
å ±":"åºæ¬ä¿¡æ¯":"Basic Information"," ",u.basicInfoComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.basicInfoMissing"):e.language==="ja"?"- ååã¾ãã¯èªå·±ç´¹ä»ãæªå
¥å":"- 缺å°å§åæç®ä»":"- Missing name or bio"]})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.locationComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.location"):e.language==="ja"?"ä½ç½®ã¨è¨èª":"å°ç¹åè¯è¨":"Location & Language"," ",u.locationComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.locationMissing"):e.language==="ja"?"- å½ã¾ãã¯è¨èªãæªé¸æ":"- 缺å°å½å®¶æè¯è¨":"- Missing country or languages"]})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.specialtiesComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.specialties"):e.language==="ja"?"ã¸ã£ã³ã«":"å
容ä¸ä¸é¢å":"Content Specialties"," ",u.specialtiesComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.specialtiesMissing"):e.language==="ja"?"- å°ãªãã¨ã1ã¤ã®å°éåéã鏿ãã¦ãã ãã":"- éè¦éæ©è³å°ä¸ä¸ªä¸ä¸é¢å":"- Select at least one specialty"]})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.platformsComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.platforms"):e.language==="ja"?"ãã©ãããã©ã¼ã ":"ç´æå¹³å°":"Streaming Platforms"," ",u.platformsComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.platformsMissing"):e.language==="ja"?"- å°ãªãã¨ã1ã¤ã®ãã©ãããã©ã¼ã ã鏿ãã¦ãã ãã":"- éè¦éæ©è³å°ä¸ä¸ªå¹³å°":"- Select at least one platform"]})]}),!S&&a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt-0.5 ${u.pricingComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.pricing"):e.language==="ja"?"ä¾¡æ ¼è¨å®":"å®ä»·":"Pricing"," ",u.pricingComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.pricingMissing"):e.language==="ja"?"- æå¹ãªä¾¡æ ¼ã¨é
éæéãè¨å®ãã¦ãã ãã":"- éè¦è®¾ç½®ææçä»·æ ¼åäº¤ä»æ¶é´":"- Set valid price and delivery time"]})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:`w-4 h-4 rounded-full mr-2 mt
6-0.5 ${u.agreementsComplete?"bg-green-500":"bg-red-500"}`}),a.jsxs("p",{className:"text-xs md:text-sm",children:[["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.agreements"):e.language==="ja"?"å¿
è¦ãªåæäºé
":"å¿
éåè®®":"Required Agreements"," ",u.agreementsComplete?"â":["ko","ja","zh"].includes(e.language)?e.language==="ko"?r("creatorProfile.completion.agreementsMissing"):e.language==="ja"?"- ãã¹ã¦ã®å¿
è¦ãªåæäºé
ãåãå
¥ãã¦ãã ãã":"- éè¦æ¥åææå¿
éåè®®":"- Accept all required agreements"]})]})]})]}),a.jsx("div",{className:"flex justify-center md:justify-end mt-6 md:mt-8",children:a.jsxs(re,{type:"submit",disabled:z||!u.mediaUploaded||!u.basicInfoComplete||!u.locationComplete||!u.specialtiesComplete||!u.platformsComplete||!u.pricingComplete||!u.agreementsComplete,className:"bg-vlinky-purple hover:bg-purple-600 w-full md:w-auto px-4 md:px-14 py-2.5 md:py-6 md:text-base md:min-w-[260px] text-white font-semibold rounded-lg shadow-sm md:shadow hover:shadow-md transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:[a.jsx(ia,{className:"h-4 w-4 md:h-5 md:w-5 mr-2"}),z?e.language==="ko"?r("general.saving",{ns:"common"}):e.language==="ja"||e.language==="zh"?"ä¿åä¸...":"Saving...":e.language==="ko"?r("general.saveChanges",{ns:"common"}):e.language==="ja"?"夿´ãä¿å":e.language==="zh"?"ä¿åæ´æ¹":"Save Changes"]})})]})]})]})};export{Na as default};
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.