import{e as g,E as y,o as a,c as n,a as s,b as l,t as c,F as p,r as v,m as k,d as r,h as b,_ as x}from"./DpdQcRr7.js";const C={class:"quest-image"},I=["src","alt"],N={key:1,class:"no-image"},V={class:"quest-title"},B={class:"quest-description"},A={class:"quest-meta"},D={class:"meta-item"},E={class:"difficulty-stars"},F={class:"meta-item"},S={key:0,class:"quest-steps-info"},w={class:"steps-label"},z={class:"quest-action"},L={class:"action-button is-primary"},M=g({__name:"QuestItem",props:{quest:{}},emits:["click"],setup(t,{emit:u}){const m=t,h=u,q=d=>{const e=Math.min(d,5),i=Array(e).fill({char:"★",filled:!0}),o=Array(5-e).fill({char:"☆",filled:!1});return[...i,...o]},_=()=>{h("click",m.quest.id)};return(d,e)=>{const i=y("Icon");return a(),n("div",{class:"box quest-card",onClick:_},[s("div",C,[t.quest.image?(a(),n("img",{key:0,src:t.quest.image,alt:t.quest.title,class:"quest-thumbnail"},null,8,I)):(a(),n("div",N,[l(i,{icon:"mdi:image-off",width:48,height:48}),e[0]||(e[0]=s("span",null,"No Image",-1))]))]),s("h3",V,c(t.quest.title),1),s("p",B,c(t.quest.description),1),s("div",A,[s("div",D,[s("span",E,[(a(!0),n(p,null,v(q(t.quest.level),(o,f)=>(a(),n("span",{key:f,class:k(o.filled?"star-filled":"star-empty")},c(o.char),3))),128))])]),s("div",F,[l(i,{icon:"mdi:clock-outline",class:"has-text-info mr-1"}),s("span",null,c(t.quest.required_hour)+"時間",1)])]),t.quest.quest_steps&&t.quest.quest_steps.length>0?(a(),n("div",S,[s("p",w,[l(i,{icon:"mdi:format-list-numbered",class:"mr-1"}),r(" ステップ数: "+c(t.quest.quest_steps.length),1)])])):b("",!0),s("div",z,[s("div",L,[l(i,{icon:"mdi:play",class:"mr-1"}),e[1]||(e[1]=r(" クエスト開始 ",-1))])])])}}}),T=x(M,[["__scopeId","data-v-930b2961"]]);export{T as _};
