PageSourceSearch

https://myfans.jp/_next/static/chunks/7895-fad3d1be8a5570c7.js

js myfans.jp collected 2026-09-26 00:05:22 UTC 54,016 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];if(null!=t)for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:myfans-web":!0});var s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5888ca79-cab7-4a2b-a9d4-0604374b80ef",e._sentryDebugIdIdentifier="sentry-dbid-5888ca79-cab7-4a2b-a9d4-0604374b80ef")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7895],{30276:(e,s,t)=>{t.d(s,{A:()=>U});var l=t(15383),a=t(99185),i=t(86449),r=t(51689),n=t(80747),d=t(68862),c=t(4964),x=t(99573),o=t(52496),p=t(99677),h=t.n(p),m=t(99689),g=t(23245),j=t(14343),f=t(72705),u=t(36929),v=t.n(u),b=t(90324),N=t(8397),y=t(11212),w=t(17222),_=t(39155),k=t(69598),E=t(7354),S=t(84611),C=t(11215);let F={all:["account_gacha_video"],detail:e=>[...F.all,"detail",e]};var A=t(98597),B=t(17506),$=t(79281),I=t(35918),z=t(75192),P=t(35528);function O({selectedGenreInputIndex:e,onClose:s,selectedGenreKeys:t,selectableGenres:i,setSelectedGenres:n}){let{t:c}=(0,P.Bd)();return(0,l.jsxs)(B.lGe,{open:null!==e,onClose:s,fullScreen:!0,noPadding:!0,fullHeight:!0,children:[(0,l.jsxs)("div",{className:"flex h-[48px] w-full items-center justify-between border-b-[0.5px] px-3 py-5",children:[(0,l.jsx)("div",{className:"flex flex-1 items-center justify-start",children:(0,l.jsx)(B.K0,{onClick:s,children:(0,l.jsx)("div",{className:"flex size-6 items-center",children:(0,l.jsx)(d.gc,{icon:r.Jyw,className:"text-lg text-black"})})})}),(0,l.jsx)("div",{className:"flex-[3] self-center truncate text-center text-base font-bold",children:c("ジャンル選択")}),(0,l.jsx)("div",{className:"flex flex-1 items-center justify-end"})]}),(0,l.jsx)("div",{className:"overflow-auto px-4 py-5",children:0===i.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-8 py-40",children:[(0,l.jsx)(d.gc,{icon:a.JAe,className:"text-primary",fontSize:64}),(0,l.jsx)("div",{className:"text-[14px]/5 font-semibold text-primary",children:c("該当するジャンルがありません")})]}):(0,l.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2",children:i.map(a=>{let i=t.includes(a.key);return(0,l.jsx)(B.$nd,{variant:i?"contained":"outlined",size:"small",className:"!text-[14px]/5",sx:{height:36},disabled:i,onClick:()=>(l=>{if(null===e)return;let a=[...t];e<a.length?a[e]=l:a.push(l),n(a),s()})(a.key),children:c(`ジャンルタグ_${a.key}`)},a.key)})})})]})}var M=t(13269),T=t(38327),J=t(83788),R=t(24374),D=t(73454),L=t(34111);let K={S:"rankTitleS",A:"rankTitleA",B:"rankTitleB",C:"rankTitleC"},W={S:"タイトル例:超大当たり!未公開動画",A:"タイトル例:大当たり!秘密動画",B:"タイトル例:当たり!撮り下ろし動画",C:"タイトル例:とっておき動画"},q=["S","A","B","C"],G={"& .MuiOutlinedInput-root":{borderRadius:"8px",padding:"12px 16px 12px 12px","& fieldset":{borderColor:"rgba(0,0,0,0.2)"},"&:hover fieldset":{borderColor:"rgba(0,0,0,0.3)"}},"& .MuiOutlinedInput-input":{padding:0,fontSize:"15px",lineHeight:1.4,"&::placeholder":{color:"#ADACAC",opacity:1}}};function U({initialValues:e,gachaId:s,initialRankPosts:t,initialSRankPosts:p,initialThumbnailUrl:u,initialSRankSettings:H,initialGachaPostIdMap:V={},initialLastOnePostId:Y,initialLastOnePost:Q,initialLastOneSecreted:Z=!1,initialGenres:ee=[],firstPublished:es=!1,editStatus:et="not_editable"}){let{t:el}=(0,P.Bd)(),ea=(0,m.useRouter)(),{enqueueSnackbar:ei}=(0,g.dh)(),{currentCurrencySign:er,numberWithExchangeRate:en}=(0,w.Rf)(),ed=(0,_.Mdd)(),ec=(0,k.FV)(),ex=(0,k.Ii)(),eo=(0,k.yL)(),ep=(0,k.xP)(),{completeFunnel:eh}=(0,R.o)(),em=!!s,eg=em&&es,ej=el("公開済みガチャのシークレット設定は変更できません"),[ef,eu]=(0,j.use
1State)(0),[ev,eb]=(0,j.useState)(!1),[eN,ey]=(0,j.useState)(!1),[ew,e_]=(0,j.useState)(!1),[ek,eE]=(0,j.useState)(null),[eS,eC]=(0,j.useState)(u??null),{data:eF,refetch:eA}=(0,k.QL)(s??""),{current:eB,applying:e$,rejected_reason:eI}=eF||{},ez="editable"===et,eP="not_editable"===et,eO=em&&!!ek&&!e$&&ez,eM=e=>{eE(e),eC(URL.createObjectURL(e))};(0,j.useEffect)(()=>()=>{eS&&URL.revokeObjectURL(eS)},[eS]);let eT=async()=>{if(s&&ek){e_(!0);try{e$&&await (0,b.V8)(s);let e=new FormData;e.append("thumbnail_image",ek),await (0,b.Dj)(s,e),eE(null),eC(null),await eA(),ey(!0)}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el("サムネイルの申請に失敗しました"),{variant:"error"})}finally{e_(!1)}}},eJ=async()=>{if(s)try{await (0,b.V8)(s),ei(el("サムネイル画像の申請をキャンセルしました"),{variant:"success"}),await eA()}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el("サムネイルの申請キャンセルに失敗しました"),{variant:"error"})}},[eR,eD]=(0,j.useState)(!1),[eL,eK]=(0,j.useState)(null),{progress:eW,uploadFileHandler:eq,resetProgress:eG}=(0,A.v)({getUploadUrl:b.rI,completeUpload:b.rK}),eU=void 0!==eW,{data:eX,refetch:eH}=(e=>{let{data:s,...t}=(0,E.I)({queryKey:F.detail(e),queryFn:()=>S.lzy(e),...C._$,refetchInterval:e=>{let s=e=>e?.status==="processing";return!!(s(e?.current)||s(e?.applying))&&5e3},refetchOnMount:!0,enabled:!!e});return{data:s,flat:s,...t}})(s),{current:eV,applying:eY,rejected_reason:eQ}=eX||{},eZ=!es,e0=em&&!!eL?.video_url&&!eY&&eZ,e1=async e=>{if(e.size>y.$M)return void ei(el("{{max}} を超えるファイルはアップロードできません。",{max:y.dH}),{variant:"error"});let s=await (0,L.Gk)(e);if(!s)return void ei(el("動画を読み込めませんでした。別の動画でお試しください。"),{variant:"error"});if(s.videoDuration<y.cd)return void ei(el("動画の長さが{{min}}秒に満たないためサンプル動画は設定できません。",{min:y.cd}),{variant:"error"});if(s.videoDuration>y.cO)return void ei(el("サンプル動画は{{minutes}}分以下の動画を選択してください",{minutes:y.cO/60}),{variant:"error"});try{let t=await eq(e);eK({video_url:t,width:Math.round(s.videoWidth),height:Math.round(s.videoHeight),duration:s.videoDuration})}catch{ei(el("動画のアップロードに失敗しました。"),{variant:"error"})}finally{eG()}},e5=async()=>{if(s&&eL?.video_url){eD(!0);try{await (0,b.p7)(s,{raw_video_url:eL.video_url,width:eL.width,height:eL.height}),eK(null),await eH(),ey(!0)}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el("サンプル動画の申請に失敗しました"),{variant:"error"})}finally{eD(!1)}}},e2=async()=>{if(s)try{await (0,b.lt)(s),ei(el("サンプル動画の申請をキャンセルしました"),{variant:"success"}),await eH()}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el("サンプル動画の申請キャンセルに失敗しました"),{variant:"error"})}}
1,[e4,e8]=(0,j.useState)(t??{S:[],A:[],B:[],C:[]}),[e3,e6]=(0,j.useState)(H??{}),[e7,e9]=(0,j.useState)(Y??null),[se,ss]=(0,j.useState)(Z),{flat:st}=(0,k.dU)({}),sl=(0,j.useMemo)(()=>{let e=new Map;return p?.forEach(s=>e.set(s.id,s)),Q&&e.set(Q.id,Q),st?.forEach(s=>e.set(s.id,s)),e},[p,Q,st]),{data:sa=[]}=(0,k.p5)(s??""),[si,sr]=(0,j.useState)([]),sn=(0,j.useRef)(!1);(0,j.useEffect)(()=>{!sn.current&&sa.length>0&&(sr(sa),sn.current=!0)},[sa]);let sd=async(e,s)=>{let t=e4[e],l=s.some(e=>!t.includes(e)),a=t.some(e=>!s.includes(e));if(e8(t=>({...t,[e]:s})),l||a){let t={...e4,[e]:s},i=q.flatMap(e=>t[e]);await sA(i,e7??void 0,l,a)}"S"===e&&e6(e=>{let t={...e};return s.forEach(e=>{t[e]||(t[e]={isSecretEnabled:!1})}),Object.keys(t).forEach(e=>{s.includes(e)||delete t[e]}),t})},sc=async(e,s)=>{let t=e3[e];if(e6(t=>({...t,[e]:s})),em&&s.gachaPostId)try{await ep.mutateAsync({gachaPostId:s.gachaPostId,data:{secreted:s.isSecretEnabled}})}catch{e6(s=>({...s,[e]:t})),ei(el("シークレット設定の更新に失敗しました"),{variant:"error"})}},sx=q.flatMap(e=>e4[e]),so=async e=>{let s=e[0]??null;if(e9(s),s||ss(!1),s!==e7){let e=q.flatMap(e=>e4[e]);await sA(e,s??void 0,!!s,!!e7)}},sp=async e=>{if(ss(e),em&&s)try{await (0,b.t$)(s,{last_one_secreted:e})}catch{ss(se),ei(el("シークレット設定の更新に失敗しました"),{variant:"error"})}},sh=e7?sl.get(e7)??null:null,sm=e4.S.map(e=>sl.get(e)).filter(e=>!!e),sg={title:"",description:"",price:void 0,autoPublish:!1,publishStartAt:void 0,publishEndAt:void 0,genres:ee,purchaseTarget:"everyone",rankTitleS:"",rankTitleA:"",rankTitleB:"",rankTitleC:"",...e},{control:sj,handleSubmit:sf,getValues:su,watch:sv,setValue:sb}=(0,f.mN)({defaultValues:sg,mode:"onChange"}),sN=sv("title"),sy=sv("description"),sw=sv("price"),s_=sv("autoPublish"),sk=sv("genres"),[sE,sS]=(0,j.useState)(!1),[sC,sF]=(0,j.useState)(!1),sA=async(e,s,t,l)=>{try{let a=await (0,b.uV)({post_ids:e,last_one_post_id:s});sr(a),l&&(e=>{let s=e.map(e=>e.key),t=su("genres"),l=t.filter(e=>!s.includes(e));if(0===l.length)return;let a=t.filter(e=>s.includes(e));if(sb("genres",a),0===a.length){let e=l.map(e=>`${el(`ジャンルタグ_${e}`)}`);ei(el("{{names}}が解除されました。ジャンルを1件以上設定してください",{names:e.join("、")}),{variant:"warning"})}})(a),t&&(e=>{let s=su("genres");if(s.length>=3)return;let t=e.filter(e=>!s.includes(e.key)).map(e=>e.key).slice(0,3-s.length);t.length>0&&sb("genres",[...s,...t])})(a)}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el("ジャンル候補の取得に失敗しました"),{variant:"error"})}},[sB,s$]=(0,j.useState)(null),sI=q.reduce((e,s)=>e+e4[s].length,0),sz=(sw||0)*sI,sP=e4.B.length>0&&0===e4.A.length||e4.C.length>0&&0===e4.B.length,sO=[{key:"title",label:el("ガチャのタイトルを入力する"),done:!!sN?.trim()},{key:"description",label:el("説明文を入力する"),done:!!sy?.trim()},{key:"thumbnail",label:el("サムネイル画像を設定する"),done:em?!!eB||!!e$&&"rejected"!==e$.status:!!eS},{key:"posts",label:el("投稿を3〜30件、S賞またはA賞から順に設定する"),done:sI>=3&&sI<=30&&(e4.S.length>0||e4.A.length>0)&&!sP},{key:"genres",label:el("ジャンルを1〜3つ設定する"),done:sk.length>=1&&sk.length<=3},{key:"price",label:(0,l.jsx)(P.x6,{i18nKey:"価格を{{min}}〜{{max}}で設定する",components:{min:(0,l.jsx)(N.S,{amount:100,size:"xs",bold:!0,className:"text-[#171717]"}),max:(0,l.jsx)(N.S,{amount:2e4,size:"xs",bold:!0,className:"text-[#171717]"})}}),done:!!sw&&sw>=(en(100)??100)&&sw<=(en(2e4)??2e4)}],sM=sO.filter(e=>!e.done),sT=(sO.length-sM.length)/sO.length*100,sJ=(0,j.useRef)({}),sR=e=>s=>{s&&(sJ.current[e]=s)},sD=(0,j.useRef)(null),[sL,sK]=(0,j.useState)(null);(0,j.useEffect)(()=>
1{if(!sL||0!==ef)return;let e=sJ.current[sL];if(e){let s=48+(sD.current?.offsetHeight??0)+8;window.scrollTo({top:e.getBoundingClientRect().top+window.scrollY-s,behavior:"smooth"})}sK(null)},[sL,ef]);let sW=async e=>{try{let l={S:"s",A:"a",B:"b",C:"c"},a=[];if(q.forEach(e=>{e4[e].forEach(s=>{let t=V[s];a.push({post_id:s,rank:l[e],secreted:"S"===e&&(e3[s]?.isSecretEnabled??!1),...t?{gacha_post_id:t}:{}})})}),eP&&s){if(0===e.genres.length)return void ei(el("ジャンルが設定されていません"),{variant:"error"});try{await eo.mutateAsync({gachaId:s,genreKeys:e.genres}),ei(el("ジャンルを更新しました"),{variant:"success"}),ea.replace(T.y.account.gachas.$url())}catch(s){let e=s instanceof o.pe&&s.response?.data?.error?s.response.data.error:el("ジャンルの更新に失敗しました");ei(e,{variant:"error"})}return}if(em){let l=t?q.flatMap(e=>t[e]):[],i=q.flatMap(e=>e4[e]);l.filter(e=>!i.includes(e)).forEach(e=>{let s=V[e];s&&a.push({post_id:e,rank:"s",secreted:!1,gacha_post_id:s,delete_flag:!0})}),await ex.mutateAsync({id:s,data:{title:e.title,description:e.description??"",price:e.price??0,auto_publish:e.autoPublish,publish_start_at:e.publishStartAt?.toISOString(),publish_end_at:e.publishEndAt?.toISOString(),gacha_posts:a,last_one_post_id:e7??null,last_one_secreted:!!e7&&se,genre_keys:e.genres,purchase_target:e.purchaseTarget,rank_s_title:(e.rankTitleS??"").trim(),rank_a_title:(e.rankTitleA??"").trim(),rank_b_title:(e.rankTitleB??"").trim(),rank_c_title:(e.rankTitleC??"").trim()}}),ei(el("ガチャを更新しました"),{variant:"success"})}else{let s=new FormData;s.append("title",e.title),s.append("description",e.description??""),s.append("price",String(e.price??0)),s.append("auto_publish",String(e.autoPublish)),s.append("purchase_target",e.purchaseTarget),e.publishStartAt&&s.append("publish_start_at",e.publishStartAt.toISOString()),e.publishEndAt&&s.append("publish_end_at",e.publishEndAt.toISOString()),ek&&s.append("thumbnail",ek),eL?.video_url&&(s.append("video",eL.video_url),eL.width&&s.append("video_width",String(eL.width)),eL.height&&s.append("video_height",String(eL.height))),a.forEach(e=>{s.append("gacha_posts[][post_id]",e.post_id),s.append("gacha_posts[][rank]",e.rank),s.append("gacha_posts[][secreted]",String(e.secreted))}),e7&&s.append("last_one_post_id",e7),s.append("last_one_secreted",e7?String(se):String(!1)),s.append("rank_s_title",(e.rankTitleS??"").trim()),s.append("rank_a_title",(e.rankTitleA??"").trim()),s.append("rank_b_title",(e.rankTitleB??"").trim()),s.append("rank_c_title",(e.rankTitleC??"").trim()),e.genres.forEach(e=>s.append("genre_keys[]",e)),await ec.mutateAsync(s),ei(el("ガチャを作成しました"),{variant:"success"}),eh("gacha_create")}ea.replace(T.y.account.gachas.$url())}catch(e){ei(e instanceof o.pe&&e.response?.data?.error?e.response.data.error:el(em?"ガチャの更新に失敗しました":"ガチャの作成に失敗しました"),{variant:"error"})}};return(0,l.jsxs)("form",{className:"flex flex-col gap-5 px-4 pt-6",onSubmit:sf(sW),children:[sM.length>0&&(0,l.jsx)("div",{ref:sD,className:"sticky top-[48px] z-[2] -mx-4 -mt-6 bg-[#F5F5F5] p-3",children:(0,l.jsxs)("div",{className:"rounded-[12px] bg-white",children:[(0,l.jsx)(B.vJ3,{className:"w-full",onClick:()=>sS(e=>!e),children:(0,l.jsxs)("div",{className:"flex flex-col gap-1 p-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("div",{className:"text-[14px]/5 font-semibold",children:el("公開まであと{{count}}項目",{count:sM.length})}),(0,l.jsx)(d.gc,{icon:r.Jt$,className:`text-[16px] text-[#171717] ${sE?"rotate-180":""}`})]}),(0,l.jsxs)("div",{className:"relative h-1 w-full",children:[(0,l.jsx)("div",{className:"absolute left-0 top-1/2 h-[2px] w-full -translate-y-1/2 rounded-full bg-[#A3A3A3]/[0.38]"}),(0,l.jsx)("div",{className:"absolute left-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",style:{width:`${sT}%`,minWidth:"5px"}})]})]})}),sE&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 px-3 pb-3",children:[sM.map(e=>(0,l.jsx)(B.vJ3,{className:"w-full",onClick:()=>{var s;"thumbnail"===(s=e.key)&&em?eu(1):(0!==ef&&eu(0),sK(s))},children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(d.gc,{icon:i.QRE,className:"shrink-0 text-base text-primary"}),(0,l.jsx)("div",{className:"text-[12px]/4 text-[#171717] font-semibold",children:e.label})]}),(0,l.jsx)(d.gc,{icon:i.XkK,className:"shrink-0 text-[16px] text-[#8B8B8B]"})]})},e.key)),(0,l.jsx)("div",{className:"text-[10px]/4 font-light text-[#8B8B8B]",children:el("作成するとサムネイル・サãƒ
1³ãƒ—ル動画が審査に進みます。審査が完了すると公開できます。")})]})]})}),0===sM.length&&(0,l.jsx)("div",{className:"sticky top-[48px] z-[2] -mx-4 -mt-6 mb-1 bg-[#F5F5F5] p-3",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1 rounded-[12px] bg-white p-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,l.jsx)(d.gc,{icon:r.QRE,className:"text-[16px] text-[#10B981]"}),(0,l.jsx)("span",{className:"text-sm font-semibold text-black",children:el("公開に必要な項目が揃いました!")})]}),(0,l.jsx)("div",{className:"h-1 w-full rounded-full bg-[#10B981]"})]})}),eP&&(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#DBEAFE] px-3 py-4",children:[(0,l.jsx)(d.gc,{icon:r.mEO,className:"shrink-0 text-sm text-[#0587FF]"}),(0,l.jsx)("p",{className:"text-xs font-light leading-[1.4] text-[#0587FF]",children:el("このガチャにジャンルの設定が可能になりました。")})]}),em&&(0,l.jsxs)(z.A,{value:ef,onChange:(e,s)=>eu(s),centered:!0,sx:{"& .MuiTab-root":{fontSize:"14px","&.Mui-selected":{fontSize:"20px"}}},children:[(0,l.jsx)(I.A,{label:el("基本情報")}),(0,l.jsx)(I.A,{label:el("サムネイル")}),(0,l.jsx)(I.A,{label:el("サンプル動画")})]}),eP&&(0,l.jsx)("div",{className:"text-center text-primary text-[12px]/4 font-semibold -mt-3",children:el("※この投稿は公開済みのため編集できません。")}),0===ef&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{ref:sR("title"),className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex gap-1 text-base font-semibold leading-6",children:[(0,l.jsx)("div",{className:"text-primary",children:"*"}),(0,l.jsx)("div",{className:"text-black",children:el("タイトル")})]}),(0,l.jsx)(f.xI,{name:"title",control:sj,rules:{required:el("タイトルを入力してください。")},render:({field:e,fieldState:{error:s}})=>(0,l.jsx)(B.pde,{...e,placeholder:el("テキスト"),fullWidth:!0,disabled:eP,error:!!s,helperText:s?.message,ref:null})})]}),(0,l.jsxs)("div",{ref:sR("description"),className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"flex gap-1 text-base font-semibold leading-6",children:(0,l.jsx)("div",{className:"text-black",children:el("説明文")})}),(0,l.jsx)(f.xI,{name:"description",control:sj,render:({field:e,fieldState:{error:s}})=>(0,l.jsx)(B.pde,{...e,placeholder:el("テキスト"),fullWidth:!0,disabled:eP,multiline:!0,minRows:3,error:!!s,helperText:s?.message,ref:null})})]}),!em&&(0,l.jsxs)("div",{ref:sR("thumbnail"),className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("サムネを設定する")}),(0,l.jsxs)("div",{className:"flex gap-2.5 rounded bg-[#F5F5F5] p-2",children:[(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(h(),{src:"/images/gacha/gacha_thumbnail.svg",alt:"",width:93,height:77,unoptimized:!0})}),(0,l.jsx)("div",{className:"flex-1 text-[10px] font-light leading-[14px] text-black",children:el("ガチャ一覧ページのTOPに表示されるサムネイルです。推奨サイズは1280\xd7720ピクセルです。")})]}),(0,l.jsx)(B._OO,{accept:"image/jpeg,image/png",name:"thumbnail",setAcceptedFile:eM,children:eS?(0,l.jsx)("div",{className:"cursor-pointer rounded-[4px] bg-[#eee] p-2",children:(0,l.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:[(0,l.jsx)(h(),{src:eS,alt:"",fill:!0,className:"object-cover"}),(0,l.jsx)("div",{className:"absolute bottom-1 right-1 flex size-5 items-center justify-center rounded-full border-2 border-white bg-[#989898]",children:(0,l.jsx)(d.gc,{icon:r.rwq,className:"text-[10px] text-white"})})]})}):(0,l.jsxs)("div",{className:"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-[6px] border border-solid border-primary px-4 py-[36.5px]",children:[(0,l.jsx)(d.gc,{icon:r.rwq,className:"text-[56px] text-primary"}),(0,l.jsx)("div",{className:"text-sm font-semibold leading-5 text-primary",children:el("画像をアップロードする")}),(0,l.jsxs)("div",{className:"text-left text-[10px] font-light leading-[14px] text-[#858585]",children:[(0,l.jsx)("div",{children:el("※設定/更新すると審査対象となり、利用規約違反があった場合は、")}),(0,l.jsx)("div",{children:el("予告なくアカウントが凍結される可能性があります。")})]})]})})]}),!em&&(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("サンプル動画を設定する")}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(B._OO,{accept:"video/mp4,video/quicktime",name:"sample_video",setAcceptedFile:e1,children:eU?(0,l.jsx)("div",{className:"rounded bg-[#EEEEEE] p-2",children:(0,l.jsxs)("div",{className:"relative flex aspect-video items-center justify-center overflow-hidden border-2 border-white",children:[(0,l.jsx)(c.A,{variant:"determinate",value:eW}),(0,l.jsx)("div",{className:"absolute text-xs text-black",children:`${eW}%`})]})}):eL?(0,l.jsxs)("div",{className:"cursor-pointer rounded bg-[#EEEEEE] p-2 flex flex-col gap-2",children:[!!eL.duration&&eL.duration>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between py-2 px-1 text-base",children:[(0,l.jsx)("div",{className:"text-[14px]/5",children:`${el("動画の長さ")}
1 ${(0,J.Xd)(eL.duration,{two_digit:!0})}`}),(0,l.jsxs)(B.vJ3,{className:"flex items-center gap-1 text-[#FF5757]",onClick:e=>{e.stopPropagation(),eK(null)},children:[(0,l.jsx)(d.gc,{className:"text-[12px]",icon:a.sjs}),(0,l.jsx)("div",{className:"text-[12px]/4",children:el("動画を削除")})]})]}),(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden border-2 border-white",children:(0,l.jsx)(v(),{controls:!0,width:"100%",height:"100%",url:eL.video_url,config:D.P})})]}):(0,l.jsxs)("div",{className:"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-[6px] border border-solid border-primary px-4 py-[36.5px]",children:[(0,l.jsx)(d.gc,{icon:r.XYj,className:"text-[56px] text-primary"}),(0,l.jsx)("div",{className:"text-sm font-semibold leading-5 text-primary",children:el("動画をアップロードする")}),(0,l.jsxs)("div",{className:"text-left text-[10px] font-light leading-[14px] text-[#858585]",children:[(0,l.jsx)("div",{children:el("※設定/更新すると審査対象となり、利用規約違反があった場合は、")}),(0,l.jsx)("div",{children:el("予告なくアカウントが凍結される可能性があります。")})]})]})}),(0,l.jsx)("div",{className:"text-[10px]/[14px] font-light text-[#858585]",children:`・${el("ファイル容量{{max_video_size}}まで、最長{{max_video_duration}}分の動画がアップロード可能です",{max_video_size:y.dH,max_video_duration:y.cO/60})}`})]})]}),(0,l.jsx)("div",{className:"mt-1 border-t-[0.5px] border-solid border-[#CCC]"}),(0,l.jsxs)("div",{ref:sR("posts"),className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("各賞ランクに含める投稿")}),(0,l.jsxs)("div",{className:"rounded-[8px] bg-[#DBEAFE] p-3 flex flex-col gap-3",children:[(0,l.jsx)(B.vJ3,{className:"w-full",onClick:()=>sF(e=>!e),children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(d.gc,{icon:i.mEO,className:"shrink-0 text-[14px] text-[#3B82F6]"}),(0,l.jsx)("div",{className:"text-[12px]/4 font-semibold text-[#3B82F6]",children:el("賞ランク設定に関するルール")})]}),(0,l.jsx)(d.gc,{icon:r.Jt$,className:`shrink-0 text-[14px] text-[#171717] ${sC?"rotate-180":""}`})]})}),sC&&(0,l.jsx)("div",{className:"rounded-[8px] bg-white p-3",children:(0,l.jsxs)("div",{className:"text-xs font-light leading-4 text-black",children:[(0,l.jsx)("div",{children:el("・各賞に含める投稿に上限はありません。")}),(0,l.jsx)("div",{children:el("・S賞、A賞のいずれかに1投稿の設定が必要です。")}),(0,l.jsx)("div",{children:el("・S賞(1件)、A賞(0件)、B賞(1件)のように、間の賞ランクの設定を0件にすることは出来ません。")})]})})]})]}),sI>0&&(sI<3||sI>30)&&(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#FEE2E2] px-4 py-2",children:[(0,l.jsx)(d.gc,{icon:r.lEd,className:"shrink-0 text-[16px] text-[#EF4444]"}),(0,l.jsx)("div",{className:"text-[12px]/4 font-light text-[#EF4444]",children:el("賞は合計で3件以上30件以下で設定してください")})]}),q.map(e=>{let t;return(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"text-[16px]/6 font-semibold",children:el("{{label}}賞",{label:e})}),(0,l.jsx)(f.xI,{name:K[e],control:sj,rules:{validate:e=>(0,M.O7)((e??"").trim())<=y.Jy||el("{{max}}文字以内で入力してください。",{max:y.Jy})},render:({field:s,fieldState:{error:t}})=>(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(B.pde,{...s,value:s.value??"",placeholder:eP?void 0:el(W[e]),fullWidth:!0,disabled:eP,error:!!t,helperText:t?.message,ref:null}),(0,l.jsx)("div",{className:"text-right text-[12px]/4 font-light text-[#858585]",children:`${(0,M.O7)((s.value??"").trim())} / ${y.Jy}`})]})})]}),(0,l.jsx)(B.uv4,{rank:e,selectedPostIds:e4[e],disabledPostIds:(t=q.filter(s=>s!==e).flatMap(e=>e4[e]),e7?[...t,e7]:t),onSelectionChange:s=>sd(e,s),hideSelectButton:eP,exceptGachaId:s,..."S"===e&&{secretPostIds:Object.entries(e3).filter(([,e])=>e.isSecretEnabled).map(([e])=>e)}}),"A"===e&&e4.B.length>0&&0===e4.A.length&&(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#FEE2E2] px-4 py-2",children:[(0,l.jsx)(d.gc,{icon:r.lEd,className:"shrink-0 text-[16px] text-[#EF4444]"}),(0,l.jsx)("div",{className:"text-[12px]/4 font-light text-[#EF4444]",children:el("B賞を設定した場合、A賞の選択が必要です")})]}),"B"===e&&e4.C.length>0&&0===e4.B.length&&(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#FEE2E2] px-4 py-2",children:[(0,l.jsx)(d.gc,{icon:r.lEd,className:"shrink-0 text-[16px] text-[#EF4444]"}),(0,l.jsx)("div",{className:"text-[12px]/4 font-light text-[#EF4444]",children:el("C賞を設定した場合、
1B賞の選択が必要です")})]})]},e)}),(0,l.jsx)("div",{className:"mt-1 border-t-[0.5px] border-solid border-[#CCC]"}),sm.length>0&&(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("S賞の詳細設定")}),(0,l.jsxs)("div",{className:"flex gap-2.5 rounded bg-[#F5F5F5] p-2",children:[(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(h(),{src:"/images/gacha/sprise_detail_setting.svg",alt:"",width:62,height:66,unoptimized:!0})}),(0,l.jsx)("div",{className:"flex-1 text-[10px] font-light leading-[14px] text-black",children:el("シークレット設定を有効にすると、「サムネ」と「タイトル」をシークレットにすることができます。(S賞の中身が当てた人にしか分からないため、ガチャ購入ユーザーのワクワク感が上がります。)")})]})]}),sm.length>0&&sm.map(e=>(0,l.jsx)(B.mZ,{post:e,isSecretEnabled:e3[e.id]?.isSecretEnabled??!1,onSecretEnabledChange:s=>sc(e.id,{...e3[e.id],isSecretEnabled:s}),disabled:eg,disabledReason:ej},e.id)),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("ラストワン賞の設定")}),(0,l.jsxs)("div",{className:"flex items-center gap-[10px] rounded bg-[#F5F5F5] p-2",children:[(0,l.jsxs)("div",{className:"flex aspect-[265/88] w-[132.5px] flex-shrink-0 items-center gap-[6px] bg-[url('/images/gacha/last-one-bg.webp')] bg-cover bg-center px-[1px] py-[1px]",children:[(0,l.jsx)(h(),{src:"/images/gacha/last-one.webp",alt:"last one prize",width:41,height:41,unoptimized:!0}),(0,l.jsx)("div",{className:"flex items-center gap-4 pr-[5px]",children:(0,l.jsxs)("div",{className:"flex items-center gap-[1.5px]",children:[(0,l.jsx)(B.Qlf,{size:9,color:"#FF3700"}),(0,l.jsx)("div",{className:"text-[6px]/[1] font-semibold",children:el("{{label}}賞",{label:el("ラストワン")})})]})})]}),(0,l.jsx)("div",{className:"text-[10px] font-light leading-[14px] text-[#858585]",children:el("ガチャの最後の1回を引いたユーザーに、特別な特典を付与できます。")})]}),(0,l.jsx)(B.uv4,{label:el("ラストワン賞に含める投稿"),selectedPostIds:e7?[e7]:[],disabledPostIds:sx,singleSelect:!0,hideSelectButton:eP,onSelectionChange:so,exceptGachaId:s})]}),(0,l.jsx)("div",{className:"my-1 border-t-[0.5px] border-solid border-[#CCC]"}),sh&&(0,l.jsx)(B.mZ,{post:sh,isSecretEnabled:se,onSecretEnabledChange:sp,disabled:eg,disabledReason:ej}),(0,l.jsxs)("div",{ref:sR("genres"),className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,l.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,l.jsxs)("div",{className:"flex gap-1 text-base font-semibold leading-6",children:[(0,l.jsx)("div",{className:"text-primary",children:"*"}),(0,l.jsx)("div",{className:"text-black",children:el("ジャンル")})]}),(0,l.jsx)("div",{className:"text-black text-[11px] font-light",children:el("(必ず1つは指定してください)")})]}),(0,l.jsx)("div",{className:"text-black text-[11px] font-light",children:el("このガチャに含まれる投稿に設定されているジャンルから最大3つまで設定可能です。")})]}),Array.from({length:3}).map((e,s)=>{let t=sk?.[s];return t?(0,l.jsx)(B.vJ3,{onClick:()=>s$(s),children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-lg border p-3 hover:border-black/30",children:[(0,l.jsx)("div",{className:"w-full truncate text-left text-base",children:el(`ジャンルタグ_${t}`)}),(0,l.jsx)(d.gc,{icon:r.bnw,fontSize:16,className:"text-[#ADACAC]",onClick:e=>{let t;e.stopPropagation(),(t=[...sk]).splice(s,1),sb("genres",t)}})]})},t):(0,l.jsx)(B.vJ3,{onClick:()=>s$(s),children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-lg border p-3 hover:border-black/30",children:[(0,l.jsx)("div",{className:"text-base text-placeholder",children:`${el("ジャンル")}${s+1}`}),(0,l.jsx)(d.gc,{icon:i.XkK,className:"text-[12px]"})]})},s)}),(0,l.jsx)(O,{selectedGenreInputIndex:sB,onClose:()=>s$(null),selectedGenreKeys:sk||[],selectableGenres:si,setSelectedGenres:e=>sb("genres",e)})]}),(0,l.jsx)("div",{className:"my-1 border-t-[0.5px] border-solid border-[#CCC]"}),(0,l.jsxs)("div",{className:"flex flex-col gap-5 pb-10",children:[(0,l.jsx)("div",{className:"text-[20px]/7 font-semibold",children:el("公開設定")}),(0,l.jsxs)("div",{className:`flex flex-col gap-3 ${em?"border-b border-[#
1E0E0E0] pb-6":""}`,children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("公開期間")}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)(f.xI,{name:"publishStartAt",control:sj,render:({field:e})=>(0,l.jsx)(B.lrV,{disabledMinutes:!0,disabled:eP,onChange:e.onChange,placeholder:el("開始日を選択"),value:e.value,slots:{openPickerIcon:()=>(0,l.jsx)(d.gc,{icon:i.okg,className:"text-xl text-[#858585]"})},sx:G})}),(0,l.jsx)(f.xI,{name:"publishEndAt",control:sj,rules:{validate:e=>{let{publishStartAt:s}=su();return!s||!e||e>s||el("終了日時は開始日時より後にしてください。")}},render:({field:e,fieldState:{error:s}})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B.lrV,{disablePast:!0,disabledMinutes:!0,disabled:eP,onChange:e.onChange,placeholder:el("終了日を選択"),value:e.value,slots:{openPickerIcon:()=>(0,l.jsx)(d.gc,{icon:i.okg,className:"text-xl text-[#858585]"})},sx:G}),s&&(0,l.jsx)("div",{className:"text-xs text-red-500",children:s.message})]})})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("公開方法")}),(0,l.jsx)(f.xI,{name:"autoPublish",control:sj,render:({field:{onChange:e,value:s}})=>(0,l.jsxs)("div",{className:`flex flex-col gap-3 ${eP?"pointer-events-none opacity-50":""}`,children:[(0,l.jsx)(B.vJ3,{onClick:()=>e(!1),children:(0,l.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(B.ZYi,{checked:!1===s||void 0===s}),(0,l.jsx)("div",{className:"text-sm font-light leading-5 text-black",children:el("手動公開")})]}),(0,l.jsx)("div",{className:"text-[10px] font-light leading-[14px] text-[#8B8B8B]",children:el("(公開条件を満たした後「公開する」ボタンを押下したタイミングで公開)")})]})}),(0,l.jsx)(B.vJ3,{onClick:()=>e(!0),children:(0,l.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(B.ZYi,{checked:!0===s}),(0,l.jsx)("div",{className:"text-sm font-light leading-5 text-black",children:el("自動公開")})]}),(0,l.jsx)("div",{className:"text-[10px] font-light leading-[14px] text-[#8B8B8B]",children:el("(公開条件をすべて満たした時点で、自動で公開)")})]})})]})})]}),(0,l.jsxs)("div",{ref:sR("price"),className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"flex gap-1 text-base font-semibold leading-6",children:(0,l.jsx)("div",{className:"text-black",children:el("1回あたりの価格")})}),(0,l.jsx)(f.xI,{name:"price",control:sj,rules:{pattern:{value:ed?/^\d+(\.\d{0,2})?$/:/^[0-9]*$/,message:el("半角数字で入力してください。")},min:{value:en(100)??100,message:"販売価格は、{{price}}以上に設定してください。"}},render:({field:e,fieldState:{error:s}})=>(0,l.jsx)(B.pde,{...e,type:"number",fullWidth:!0,disabled:eP,error:!!s,helperText:s?.type==="min"?(0,l.jsx)(P.x6,{i18nKey:"販売価格は、{{price}}以上に設定してください。",components:{price:(0,l.jsx)(N.S,{amount:100,size:"sm",color:"error"})}}):s?.message,ref:null,value:e.value||"",placeholder:"0",onChange:s=>{let t=s.target.value;if(""===t)return void e.onChange(0);let l=Number(t);e.onChange(Number.isNaN(l)?0:l)},inputProps:{className:"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"},sx:{"& input::placeholder":{color:"#000 !important",opacity:"1 !important"}},onFocus:s=>{0===e.value&&s.target.select()},InputProps:{startAdornment:(0,l.jsx)("span",{className:"mr-1 text-base text-black",children:er})}})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg bg-[#F5F5F5] p-2",children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("div",{className:"text-xs font-semibold leading-4 text-black",children:el("全回購入時の合計金額")}),(0,l.jsx)("div",{className:"text-[10px] font-light leading-[14px] text-[#858585]",children:el("設定した価格・投稿数に応じて、自動計算します。")})]}),(0,l.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,l.jsxs)("div",{className:"flex gap-6 items-center text-xs font-light text-[#858585]",children:[(0,l.jsx)("span",{children:(0,l.jsx)(P.x6,{i18nKey:"価格:{{currencySign}}{{price}}/回",components:{price:(0,l.jsx)(N.S,{amount:sw||0,size:"sm",className:"text-[#858585]"})}})}),(0,l.jsx)("span",{children:el("投稿数:{{count}}",{count:sI})})]}),(0,l.jsx)(N.S,{amount:sz,size:"md",bold:!0})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("購入可能ユーザーの設定")}),(0,l.jsx)(f.xI,{name:"purchaseTarget",control:sj,render:({field:e})=>(0,l.jsxs)(B.l6P,{...e,displayEmpty:!0,fullWidth:!0,disabled:eP,ref:null,sx:{"& .MuiSelect-icon":{right:"12px"}},IconComponent:e=>(0,l.jsx)("div",{className:"text-[12px] text-black",children:(0,l.jsx)(d.gc,{icon:r.Jt$,...e})}),children:[(0,l.jsx)(x.A,{value:"everyone",children:el("すべてのユーザー")}),(0,l.jsx)(x.A,{value:"only_plan_subscribers",children:el("プラン加入者限定")})]})})]})]})]}),(!em||0===ef)&&(0,l.jsxs)("div",{className:"sticky bottom-[53px] z-[1] -mb-[11px] -mt-3 flex flex-col gap-2 bg-white pb-4 pt-2",children:[s_&&(0,l.jsx)("p",{className:"text-[10px]/[16px] font-light text-primary text-center",children:el("※条件を満たしている場合には自動で公開されます")}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("button",{type:"button",onClick:()=>eb(!0),className:"shrink-0 rounded-full border border-primary bg-white px-4 py-2 text-base font-semibold leading-6 text-primary",children:el("キャンセル")}),(0,l.jsx)("button",{type:"submit",disabled:!sN||ec.isLoading||ex.isLoading||eo.isLoading,className:"flex-1 rounded-full px-4 py-2 text-base font-semibold leading-6 enabled:bg-primary enabled:text-white disabled:bg-[#EBEBEB] disabled:text-[#ADACAC]",children:ec.isLoading||ex.isLoading||eo.isLoading?(0,l.jsx)(c.A,{size:14,color:"inherit"}):el(em?"更新する":"作成する")})]})]}),1===ef&&(0,l.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"text-base font-semibold leading-6 text-black",children:el("サムネを設定する")}),(0,l.jsxs)("div",{className:"flex gap-2.5 rounded bg-[#F5F5F5] p-2",children:[(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(h(),{src:"/images/gacha/gacha_thumbnail.svg",alt:"",width:93,height:77,unoptimized:!0})}),(0,l.jsx)("div",{className:"flex-1 text-[10px] font-light leading-[14px] text-black",children:el("ガチャ一覧ページのTOPに表示されるサムネイルです。推奨サイズは1280\xd7720ピクセルです。")})]})]}),!eB&&!e$&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B._OO,{accept:"image/jpeg,image/png",name:"thumbnail",setAcceptedFile:eM,children:eS?(0,l.jsx)("div",{className:"cursor-pointer rounded-[4px] bg-[#eee] p-2",children:(0,l.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:[(0,l.jsx)(h(),{src:eS,alt:"",fill:!0,className:"object-cover"}),(0,l.jsx)("div",{className:"absolute bottom-1 right-1 flex size-5 items-center justify-center rounded-full border-2 border-white bg-[#989898]",children:(0,l.jsx)(d.gc,{icon:r.rwq,className:"text-[10px] text-white"})})]})}):(0,l.jsxs)("div",{className:"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-[6px] border border-solid border-primary px-4 py-[36.5px]",children:[(0,l.jsx)(d.gc,{icon:r.rwq,className:"text-[56px] text-primary"}),(0,l.jsx)("div",{className:"text-sm font-semibold leading-5 text-primary",children:el("画像をアップロードする")}),(0,l.jsxs)("div",{className:"text-left text-[10px] font-light leading-[14px] text-[#858585]",children:[(0,l.jsx)("div",{children:el("※設定/更新すると審査対象となり、利用規約違反があった場合は、")}),(0,l.jsx)("div",{children:el("予告なくアカウントが凍結される可能性があります。")})]})]})}),ez&&(0,l.jsx)("button",{type:"button",disabled:!eO||ew,onClick:eT,className:"w-full rounded-full py-3 text-lg font-semibold enabled:bg-primary enabled:text-white disabled:bg-[#ebebeb] disabled:text-[#adacac]",children:ew?(0,l.jsx)(c.A,{size:14,color:"inherit"}):el("申請する")})]}),eB&&!e$&&(0,l.jsxs)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:(0,l.jsx)(h(),{src:eB.image_url??"",alt:"",fill:!0,className:"object-cover"})}),(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsxs)("span",{className:"text-[#15aa86]",children:[(0,l.jsx)(d.gc,{icon:i.e68,className:"mr-1"}),(0,l.jsx)("span",{children:el("承認済み")})]})})]}),eB&&e$&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:(0,l.jsx)(h(),{src:eB.image_url??"",alt:"",fill:!0,className:"object-cover"})}),(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsxs)("span",{className:"text-[#15aa86]",children:[(0,l.jsx)(d.gc,{icon:i.e68,className:"mr-1"}),(0,l.jsx)("span",{children:el("承認済み")})]})})]}),(0,l.jsxs)("div",{className:"flex gap-8 p-5",children:[(0,l.jsx)(d.gc,{className:"text-5xl text-[#858585]",icon:n.B0C}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-xs font-semibold",children:el("画像の変更申請中です")}),(0,l.jsx)("p",{className:"mt-1 text-[11px] text-[#989898]",children:el("変更の申請が承認されるまでは、承認済みの画像が有効となります")})]})]}),(0,l.jsxs)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:(0,l.jsx)(h(),{src:e$.image_url??"",alt:"",fill:!0,className:"object-cover"})}),(0,l.jsxs)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:["under_review"===e$.status&&(0,l.jsx)("span",{className:"text-[#858585]",children:el("審査中")}),"rejected"===e$.status&&(0,l.jsxs)("span",{className:"text-[#ff5757]",children:[(0,l.jsx)(d.gc,{icon:i.Jyw,className:"mr-1"}),(0,l.jsx)("span",{children:el("申請却下")})]})]})]}),(0,l.jsx)("div",{className:"text-[10px]/[14px] font-light text-[#858585]",children:`・${el("設定すると審査対象となり、利用規約違反があった場合は、予告なくアカウントが凍結される可能性があります。")}`}),"rejected"===e$.status&&(0,l.jsxs)("div",{children:[eI&&(0,l.jsx)(X,{rejectedReason:eI}),(0,l.jsx)("div",{className:"mt-[14px] text-center",children:(0,l.jsx)(B.$nd,{size:"small",variant:"outlined",onClick:eJ,sx:{height:"36px"},children:(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("div",{className:"text-xs font-semibold",children:el("申請却下を確認")})})})})]})]}),!eB&&e$&&(0,l.jsxs)(l.Fragment,{children:["under_review"===e$.status?(0,l.jsxs)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:(0,l.jsx)(h(),{src:e$.image_url??"",alt:"",fill:!0,className:"object-cover"})}),(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsx)("span",{className:"text-[#858585]",children:el("審査中")})})]}):ez?(0,l.jsx)(B._OO,{accept:"image/jpeg,image/png",name:"thumbnail",setAcceptedFile:eM,children:(0,l.jsxs)("div",{className:"cursor-pointer rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:[(0,l.jsx)(h(),{src:eS??e$.image_url??"",alt:"",fill:!0,className:"object-cover"}),(0,l.jsx)("div",{className:"absolute bottom-1 right-1 flex size-5 items-center justify-center rounded-full border-2 border-white bg-[#989898]",children:(0,l.jsx)(d.gc,{icon:r.rwq,className:"text-[10px] text-white"})})]}),!ek&&"rejected"===e$.status&&(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsxs)("span",{className:"text-[#ff5757]",children:[(0,l.jsx)(d.gc,{icon:i.Jyw,className:"mr-1"}),(0,l.jsx)("span",{children:el("申請却下")})]})})]})}):(0,l.jsxs)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-[4px] border-2 border-white",children:(0,l.jsx)(h(),{src:e$.image_url??"",alt:"",fill:!0,className:"object-cover"})}),"rejected"===e$.status&&(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsxs)("span",{className:"text-[#ff5757]",children:[(0,l.jsx)(d.gc,{icon:i.Jyw,className:"mr-1"}),(0,l.jsx)("span",{children:el("申請却下")})]})})]}),"rejected"===e$.status?(0,l.jsxs)("div",{children:[eI&&(0,l.jsx)(X,{rejectedReason:eI}),(0,l.jsx)("div",{className:"mt-[14px] text-center",children:(0,l.jsx)(B.$nd,{size:"small",variant:"outlined",onClick:eJ,sx:{height:"36px"},children:(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("div",{className:"text-xs font-semibold",children:el("申請却下を確認")})})})})]}):null]})]}),2===ef&&(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[!eV&&!eY&&eZ&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B._OO,{accept:"video/mp4,video/quicktime",name:"sample_video",setAcceptedFile:e1,children:eU?(0,l.jsx)("div",{className:"rounded-[4px] bg-[#eee] p-2",children:(0,l.jsxs)("div",{className:"relative flex aspect-video items-center justify-center overflow-hidden border-2 border-white",children:[(0,l.jsx)(c.A,{variant:"determinate",value:eW}),(0,l.jsx)("div",{className:"absolute text-xs text-black",children:`${eW}%`})]})}):eL?(0,l.jsxs)("div",{className:"cursor-pointer rounded bg-[#EEEEEE] p-2 flex flex-col gap-2",children:[!!eL.duration&&eL.duration>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between py-2 px-1 text-base",children:[(0,l.jsx)("div",{className:"text-[14px]/5",children:`${el("動画の長さ")}
1 ${(0,J.Xd)(eL.duration,{two_digit:!0})}`}),(0,l.jsxs)(B.vJ3,{className:"flex items-center gap-1 text-[#FF5757]",onClick:e=>{e.stopPropagation(),eK(null)},children:[(0,l.jsx)(d.gc,{className:"text-[12px]",icon:a.sjs}),(0,l.jsx)("div",{className:"text-[12px]/4",children:el("動画を削除")})]})]}),(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden border-2 border-white",children:(0,l.jsx)(v(),{controls:!0,width:"100%",height:"100%",url:eL.video_url,config:D.P})})]}):(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("div",{className:"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-[6px] border border-solid border-primary px-4 py-[36.5px]",children:[(0,l.jsx)(d.gc,{icon:r.XYj,className:"text-[56px] text-primary"}),(0,l.jsx)("div",{className:"text-sm font-semibold leading-5 text-primary",children:el("動画をアップロードする")}),(0,l.jsxs)("div",{className:"text-left text-[10px] font-light leading-[14px] text-[#858585]",children:[(0,l.jsx)("div",{children:el("※設定/更新すると審査対象となり、利用規約違反があった場合は、")}),(0,l.jsx)("div",{children:el("予告なくアカウントが凍結される可能性があります。")})]})]}),(0,l.jsx)("div",{className:"text-[10px]/[14px] font-light text-[#858585]",children:`・${el("ファイル容量{{max_video_size}}まで、最長{{max_video_duration}}分の動画がアップロード可能です",{max_video_size:y.dH,max_video_duration:y.cO/60})}`})]})}),(0,l.jsx)(B.$nd,{fullWidth:!0,variant:"contained",color:"primary",size:"large",className:"!py-3 !text-lg font-semibold",loading:eR,disabled:!e0,onClick:e5,children:el("申請する")})]}),eV&&!eY&&(0,l.jsxs)("div",{className:"rounded bg-[#eee] p-2",children:[!!eV.duration_ms&&eV.duration_ms>0&&(0,l.jsx)("div",{className:"px-1 py-2 text-[14px]/5",children:`${el("動画の長さ")} ${(0,J.Xd)(eV.duration_ms/1e3,{two_digit:!0})}`}),(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden border-2 border-white",children:(0,l.jsx)(v(),{controls:!0,width:"100%",height:"100%",url:eV.video_url??"",config:D.P})}),(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:(0,l.jsxs)("span",{className:"text-[#15aa86]",children:[(0,l.jsx)(d.gc,{icon:i.e68,className:"mr-1"}),(0,l.jsx)("span",{children:el("承認済み")})]})})]}),eY&&(0,l.jsxs)(l.Fragment,{children:["processing"===eY.status&&(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#DBEAFE] px-4 py-2",children:[(0,l.jsx)(d.gc,{icon:r.mEO,className:"shrink-0 text-[14px] text-[#3B82F6]"}),(0,l.jsx)("p",{className:"text-[12px]/4 font-light text-[#3B82F6]",children:el("変換処理中です。しばらくお待ちください。")})]}),"conversion_failed"===eY.status&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-[#FEE2E2] px-4 py-2",children:[(0,l.jsx)(d.gc,{icon:r.lEd,className:"shrink-0 text-[14px] text-[#EF4444]"}),(0,l.jsx)("p",{className:"text-[12px]/4 font-light text-[#EF4444]",children:el("変換に失敗しました。")})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(B.$nd,{size:"small",variant:"outlined",onClick:e2,sx:{height:"36px"},children:(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("div",{className:"text-xs font-semibold",children:el("申請を取り下げる")})})})})]}),"processing"!==eY.status&&"conversion_failed"!==eY.status&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"rounded bg-[#eee] p-2",children:[!!eY.duration_ms&&eY.duration_ms>0&&(0,l.jsx)("div",{className:"px-1 py-2 text-[14px]/5",children:`${el("動画の長さ")} ${(0,J.Xd)(eY.duration_ms/1e3,{two_digit:!0})}`}),(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden border-2 border-white",children:(0,l.jsx)(v(),{controls:!0,width:"100%",height:"100%",url:eY.video_url??"",config:D.P})}),(0,l.jsx)("div",{className:"mt-2 flex items-center justify-center border-2 border-white bg-white p-2 text-[13px]",children:"under_review"===eY.status?(0,l.jsx)("span",{className:"text-[#858585]",children:el("審査中")}):(0,l.jsxs)("span",{className:"text-[#ff5757]",children:[(0,l.jsx)(d.gc,{icon:i.Jyw,className:"mr-1"}),(0,l.jsx)("span",{children:el("申請却下")})]})})]}),"under_review"===eY.status&&(0,l.jsx)("div",{className:"text-[10px]/[14px] font-light text-[#858585]",children:`・${el("設定すると審査対象となり、利用規約違反があった場合は、予告なくアカウントが凍結される可能性があります。")}`}),"rejected"===eY.status&&eQ&&(!!eQ.description||(eQ.uncensored_reasons?.length??0)>0)&&(0,l.jsxs)("div",{className:"bg-[#ff5757]/[0.12] p-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-3 text-[#ff5757]",children:[(0,l.jsx)(d.gc,{className:"text-[28px]",icon:r.
1nEM}),(0,l.jsxs)("div",{className:"text-xs font-semibold",children:[(0,l.jsx)("div",{children:el("認証が完了できませんでした")}),(0,l.jsx)("div",{children:el("否認理由を確認し、再申請してください")})]})]}),(0,l.jsx)("div",{className:"mt-4 rounded-md bg-white px-5 py-5",children:(0,l.jsxs)("div",{className:"flex flex-col gap-7 text-center text-xs font-light leading-[140%]",children:[(eQ.uncensored_reasons?.length??0)>0&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)("div",{className:"text-[#858585]",children:el("否認理由")}),(0,l.jsx)("div",{className:"flex flex-col gap-3",children:eQ.uncensored_reasons?.map(e=>(0,l.jsx)("div",{className:"text-black",children:e.title},e.title))})]}),eQ.description&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)("div",{className:"text-[#858585]",children:el("否認詳細")}),(0,l.jsx)("div",{className:"text-black",children:eQ.description})]})]})})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(B.$nd,{size:"small",variant:"outlined",onClick:e2,sx:{height:"36px"},children:(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("div",{className:"text-xs font-semibold",children:el("申請を取り下げる")})})})})]})]})]}),(0,l.jsx)($.A,{open:ev,onClose:()=>eb(!1),title:el("ガチャ入力内容が破棄されます"),PaperProps:{sx:{borderRadius:"16px",maxWidth:340}},actions:[(0,l.jsx)("button",{type:"button",onClick:()=>eb(!1),className:"h-[45px] w-[280px] self-center rounded-full bg-primary text-base font-semibold leading-[1.4] text-white",children:em?el("編集に戻る"):el("作成に戻る")},"back"),(0,l.jsx)("button",{type:"button",onClick:()=>ea.push(T.y.account.gachas.$url()),className:"self-center bg-transparent text-sm font-semibold leading-[1.4] text-primary",children:el("キャンセルする")},"cancel")],children:(0,l.jsx)("div",{className:"whitespace-pre-line text-center text-[13px] font-light leading-[1.8] text-[#858585]",children:el("キャンセルすると入力内容が\n破棄されます")})}),(0,l.jsx)($.A,{fullWidth:!0,maxWidth:"xs",open:eN,onClose:()=>ey(!1),title:el("申請が完了しました"),actions:[(0,l.jsx)(B.$nd,{onClick:()=>ey(!1),size:"large",variant:"outlined",children:el("閉じる")},"close")],children:(0,l.jsx)("div",{className:"text-sm text-black/[0.48]",children:el("審査完了までしばらくお待ち下さい")})})]})}function X({rejectedReason:e}){let{t:s}=(0,P.Bd)();return e.description||(e.uncensored_reasons?.length??0)>0?(0,l.jsxs)("div",{className:"bg-[#ff5757]/[0.12] p-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-3 text-[#ff5757]",children:[(0,l.jsx)(d.gc,{className:"text-[28px]",icon:r.nEM}),(0,l.jsxs)("p",{className:"text-xs font-semibold",children:[(0,l.jsx)("div",{children:s("サムネ審査が否認されました")}),(0,l.jsx)("div",{children:s("否認理由を確認し、再申請してください")})]})]}),(0,l.jsx)("div",{className:"mt-4 rounded-md bg-white px-5 py-5",children:(0,l.jsxs)("div",{className:"flex flex-col gap-7 text-center text-xs font-light leading-[140%]",children:[(e.uncensored_reasons?.length??0)>0&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)("div",{className:"text-[#858585]",children:s("否認理由")}),(0,l.jsx)("div",{className:"flex flex-col gap-3",children:e.uncensored_reasons?.map(e=>(0,l.jsx)("div",{className:"text-black",children:e.title},e.title))})]}),e.description&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)("div",{className:"text-[#858585]",children:s("否認詳細")}),(0,l.jsx)("div",{className:"text-black",children:e.description})]})]})})]}):null}}}]);

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.