PageSourceSearch

https://www.vlooplay.com/assets/ProfileSettings-BiNgRaKu.js

js vlooplay.com collected 2026-10-04 08:11:50 UTC 54,341 bytes, 6 lines download raw bytes

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.