1import{V as v}from"./C1omvcmS.js";import{u as A}from"./DCWHEqtW.js";import{M as F}from"./DIpSCz-v.js";import{U as P}from"./DJwvPUyS.js";import{I as E}from"#entry";import{A as G,r as W,c as h,a9 as Y,ab as u,ag as f,aa as g,ah as b,u as _,aj as o,H as M,ae as J,ac as K,as as V,am as Q,ai as w,i as X}from"./Cqga2mdz.js";import"./CZw8qzHT.js";import"./NBAthv48.js";import"./35TM4mrt.js";import"./CdasQrlT.js";import"./DwH2E4Yy.js";import"./Bh4YzkF1.js";const Z={key:0,class:"space-y-4 text-left"},tt={class:"overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700"},et={class:"min-w-full divide-y divide-gray-200 text-sm dark:divide-gray-700"},at={class:"divide-y divide-gray-200 bg-white dark:divide-gray-700 dark:bg-gray-800"},nt=["onClick"],rt={class:"px-3 py-2 font-medium text-gray-900 dark:text-gray-100"},st={class:"flex items-center gap-1"},ot=["aria-label"],it=["innerHTML"],lt={key:0},ct=["innerHTML"],dt=G({__name:"ModalVillageInfo",props:{isOpen:{type:Boolean}},emits:["close"],setup(C,{emit:L}){const I=C,$=L,{village:c,charachips:O}=A(),p=W({}),y=h({get:()=>I.isOpen,set:t=>{t||$("close")}}),S=h(()=>c.value?c.value.status.code===v.PROLOGUE||c.value.status.code===v.CANCEL:!1),T=h(()=>{if(!c.value)return[];const t=[],e=c.value,a=O.value;let n=e.creator_player.nickname;if(e.creator_player.twitter_user_name&&(n=`@${e.creator_player.twitter_user_name}`),t.push({name:"æã®ä½æè ",value:n,description:"æã®ä½æè ã§ãã"}),S.value){const s=e.setting.capacity;t.push({name:"æä½äººæ°",value:`${s.min}人`,description:`éå§äºå®æ¥ææç¹ã§ãã®äººæ°ãéã¾ãã¨é²è¡ä¸ã«é·ç§»ãã¾ãï¼éã¾ããªããã°å»æã¨ãªãã¾ãï¼ã 2ããã¼ãå«ã人æ°ã§ãã`}),t.push({name:"æå¤§äººæ°",value:`${s.max}人`,description:`ãã®äººæ°ã¾ã§åå ãããã¨ãã§ãã¾ãã 3ããã¼ãå«ã人æ°ã§ãã`})}else t.push({name:"人æ°",value:`${e.participant.count}人`});const r=e.setting.time;if(e.status.code===v.PROLOGUE&&t.push({name:"éå§æ¥æ",value:B(r.start_datetime)}),t.push({name:"æ´æ°éé",value:D(r.day_change_interval_seconds),description:"å®éã«ãã®æéãçµéããã¨æã®1æ¥ãé²è¡ãã¾ãã"}),t.push({name:"çºè¨å¯è½æé",value:q(r.silent_hours_day1,r.silent_hours_day2,r.sayable_end),description:`é²è¡ä¸ã«é常çºè¨ãå¯è½ãªæéã§ãã 424æéã®å ´åã¯ãã¤ã§ãçºè¨ã§ãã¾ãã 5é常çºè¨ä»¥å¤ï¼ç¬ãè¨ãæ»è ã®å»ãã人ç¼ã®åãçï¼ã¯ãã¤ã§ãçºè¨ã§ãã¾ãã`}),a&&a.length>0){t.push({name:"ãã£ã©ããã",value:a.map(m=>m.name).join("ã")});const s=e.setting.charachip.dummy_chara_id,d=e.participant.member_list.find(m=>m.chara.id===s);d&&t.push({name:"ããã¼ãã£ã©",value:d.name,description:`æåã«äººç¼ã«è¥²æããããã£ã©ã§ãã 61æ¥ç®ã®äººç¼ã®è¥²æã¯ãã®ãã£ã©ã«åºå®ããã¾ãã`})}const i=e.setting.organizations.organization;if(S.value){const s=Object.entries(i).map(([d,m])=>`${d}人: ${m}`).join(` 7`);t.push({name:"ç·¨æ",value:s,description:"人æ°ã«å¿ããé å½¹ã§ããå½¹è·è©³ç´°ã¯ä»æ§ãã¼ã¸ãåç §ãã ããã"})}else{const s=e.participant.count,d=i[s.toString()]||"";t.push({name:"ç·¨æ",value:d,description:"ãã®æã®é å½¹ã§ããå½¹è·è©³ç´°ã¯ä»æ§ãã¼ã¸ãåç §ãã ããã"})}H(t,e.setting.rules),t.push({name:"å ¥æãã¹ã¯ã¼ã",value:e.setting.password.join_password_required?"ãã":"ãªã",description:"ããããã®å ´åãåå ããéã«ãã¹ã¯ã¼ãå ¥åãå¿ è¦ã«ãªãã¾ãã"});const l=e.setting.tags.list.find(s=>s.startsWith("R"))||"å ¨å¹´é½¢";return t.push({name:"å¹´é½¢å¶é",value:l,description:"ãå ¨å¹´é½¢ã以å¤ã®å ´åãæç»é¢ãéããéãè¦åã表示ããã¾ãã"}),t.push({name:"ç§è©±",value:e.setting.rules.available_secret_say?"ãã":"ãªã",description:"ããããã®å ´åãèªåã¨ãã®äººã«ããè¦ãããªãç§è©±ãã§ãã¾ãã"}),t.push({name:"ã¢ã¯ã·ã§ã³",value:e.setting.rules.available_action?"ãã":"ãªã",description:"ããããã®å ´åãã¢ã¯ã·ã§ã³çºè¨ãå¯è½ã§ãã"}),t}),H=(t,e)=>{t.push({name:"æç¥¨",value:e.open_vote?"è¨åæç¥¨":"ç¡è¨åæç¥¨",description:`ãè¨åæç¥¨ãã®å ´åãå¦åã®æç¥¨çµæã«ã¤ãã¦ã誰ãèª°ã«æç¥¨ãããããããã¾ãã 8ãç¡è¨åæç¥¨ãã®å ´åã誰ã«ä½ç¥¨å ¥ã£ããã®ã¿ããããã¾ãã`}),t.push({name:"å½¹è·å¸æ",value:e.available_skill_request?"æå¹":"ç¡å¹",description:`ãæå¹ãã®å ´åãå²ãå½ã¦ãããå½¹è·ã®å¸æãåºããã¨ãã§ãã¾ãï¼èªå以å¤ã®å¸æã¯è¦ããã¾ããï¼ã 9ä»ã«èª°ã叿ãã¦ããªãã£ãå ´åã¯ãã®å½¹è·ãå²ãå½ã¦ããã¾ãã`}),t.push({name:"è¦å¦",value:e.available_spectate?"å¯è½":"ä¸å¯",description:`ãå¯è½ãã®å ´åãè¦å¦è ã¨ãã¦å
9å ã§ãã¾ãã 10è¦å¦è ã¯æ»äº¡ãã人ã¨ã®ã¿ä¼è©±ãããã¨ãã§ãã¾ãï¼ãããã¼ã°ã¨ã¨ããã¼ã°ã§ã¯å ¨å¡ã¨ä¼è©±ã§ãã¾ãï¼ã`}),t.push({name:"å¢ä¸å½¹è·å ¬é",value:e.open_skill_in_grave?"å ¬é":"éå ¬é",description:"ãå ¬éãã®å ´åãæ»äº¡ãã人ã¨è¦å¦è ã¯å ¨å¡ã®å½¹è·ãç¥ããã¨ãã§ãã¾ãã"}),t.push({name:"å¢ä¸ä¼è©±å ¬é",value:e.visible_grave_message?"å ¬é":"éå ¬é",description:"ãå ¬éãã®å ´åãçåãã¦ããåå è ãæ»è ã®å»ãã¨è¦å¦è ã®çºè¨ãè¦ãããããã«ãªãã¾ãã"}),t.push({name:"çªç¶æ»",value:e.available_suddenly_death?"ãã":"ãªã",description:"ããããã®å ´åãæ¥ä»æ´æ°ã®ã¿ã¤ãã³ã°ã§ã忥ã«ä¸åº¦ãé常çºè¨ãããªãã£ãçåè ãçªç¶æ»ãã¾ãã"}),t.push({name:"æç叿",value:e.available_commit?"ãã":"ãªã",description:`ããããã®å ´åãçåè å ¨å¡ãæçã叿ããã¨ãæ¥ä»ãæ´æ°ããã¾ãã 11æçã«ããä½ã£ãæéã¯ç¿æ¥ã«ç¹°ãè¶ããã¾ãã`}),t.push({name:"é£ç¶è·è¡",value:e.available_guard_same_target?"å¯è½":"ä¸å¯",description:`ãå¯è½ãã®å ´åãåã人ã2æ¥é£ç¶ã§è·è¡ãããã¨ãã§ãã¾ãã 12ãä¸å¯ãã®å ´åãåã人ã2æ¥é£ç¶ã§è·è¡ãããã¨ãã§ãã¾ããã`});const a=e.message_restrict.restrict_list.map(n=>`${n.type.name}: 1çºè¨ãã¨ã«${n.length}æå${n.line}è¡ã¾ã§ã1æ¥ã«${n.count}åã¾ã§`).join(` 13`);a&&t.push({name:"çºè¨å¶é",value:a,description:`çºè¨æåæ°ãçºè¨åæ°ã®å¶éã§ãã 14è¨è¼ããªãçºè¨ç¨®å¥ã¯1çºè¨ãã¨ã«200æå20è¡ã§ã1æ¥ã®åæ°ã¯ç¡å¶éã¨ãªãã¾ãã`}),t.push({name:"ããã¼å½¹æ¬ ã",value:e.available_dummy_skill?"ãã":"ãªã",description:`ããããã®å ´åãããã¼ãã£ã©ã«æäººä»¥å¤ã®å½¹è·ãå²ãå½ã¦ãããå¯è½æ§ãããã¾ãã 15ããªããã®å ´åãå¿ ãæäººãå²ãå½ã¦ããã¾ãã`})},j=t=>{p.value={...p.value,[t]:!p.value[t]}},k=t=>t?R(t).replace(/\n/g,"<br />"):"",R=t=>{const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,a=>e[a]||a)},B=t=>{const e=new Date(t),a=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),l=String(e.getMinutes()).padStart(2,"0");return`${a}/${n}/${r} ${i}:${l}`},D=t=>{let e="";const a=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60;return a!==0&&(e+=`${a}æé`),n!==0&&(e+=`${n}å`),r!==0&&(e+=`${r}ç§`),e||"0ç§"},N=t=>typeof t=="string"?parseInt(t.substring(0,2),10):t.hour??0,U=t=>typeof t=="string"?parseInt(t.substring(3,5),10):t.minute??0,x=(t,e)=>{if(t===0)return"24æé";const a=N(e),n=U(e),r=(a+t)%24,i=r>a||a===0,l=`${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`,s=`${String(a).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return`${l} - ${i?"ç¿":""}${s}ï¼${24-t}æéï¼`},q=(t,e,a)=>{const n=t??0,r=e??0;if(n===0&&r===0)return"24æé";const i=x(n,a),l=x(r,a);return`1æ¥ç®: ${i} / 2æ¥ç®ä»¥é: ${l}`},z=()=>{$("close")};return(t,e)=>(u(),Y(F,{modelValue:_(y),"onUpdate:modelValue":e[0]||(e[0]=a=>X(y)?y.value=a:null),title:"æã®è¨å®"},{footer:f(()=>[w(P,{color:"secondary",variant:"outline",onClick:z},{default:f(()=>[...e[2]||(e[2]=[V(" éãã ",-1)])]),_:1})]),default:f(()=>[_(c)?(u(),g("div",Z,[o("div",tt,[o("table",et,[e[1]||(e[1]=o("thead",{class:"bg-gray-50 dark:bg-gray-900"},[o("tr",null,[o("th",{class:"px-3 py-2 text-left font-semibold text-gray-700 dark:text-gray-300"}," è¨å® "),o("th",{class:"px-3 py-2 text-left font-semibold text-gray-700 dark:text-gray-300"})])],-1)),o("tbody",at,[(u(!0),g(M,null,J(_(T),(a,n)=>(u(),g(M,{key:n},[o("tr",{class:K(["transition-colors",a.description?"cursor-pointer":""]),onClick:r=>a.description&&j(n)},[o("td",rt,[o("div",st,[V(Q(a.name)+" ",1),a.description?(u(),g("button",{key:0,type:"button",class:"text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300","aria-label":`${a.name}ã®èª¬æã${_(p)[n]?"éãã":"éã"}`},[w(E,{name:"heroicons:question-mark-circle",class:"h-4 w-4"})],8,ot)):b("",!0)])]),o("td",{class:"px-3 py-2 whitespace-pre-wrap text-gray-700 dark:text-gray-300",innerHTML:k(a.value)},null,8,it)],10,nt),a.description&&_(p)[n]?(u(),g("tr",lt,[o("td",{colspan:"2",class:"bg-gray-50 px-3 py-2 text-gray-600 dark:bg-gray-900 dark:text-gray-400",innerHTML:k(a.description)},null,8,ct)])):b("",!0)],64))),128))])])])])):b("",!0)]),_:1},8,["modelValue"]))}}),kt=Object.assign(dt,{__name:"PagesVillageSidebarModalVillageInfo"});export{kt 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.