1import{g as E}from"./DPiJMyXm.js";import{a as I,c as k,u as g}from"./DTDMDQtn.js";import{a as N,y as p,e as v,f,V as A,J as P,n as t,w as o,C as r,g as h,h as C,E as w,t as l,i as S,k as T,m as W,K as V,_ as $}from"./DvZ2m6ok.js";import{V as B}from"./uWNB0wcE.js";import"./O0GmKXjU.js";import"./DtBP_0sx.js";const j={class:"thumbnail-wrapper"},G={class:"font-weight-bold"},J={class:"font-weight-bold"},K={class:"text-h title maintitle"},L={style:{display:"flex","flex-direction":"row","justify-content":"space-between","align-items":"center"}},O={class:"logo-wrapper"},R={class:"text-grey-darken-1",style:{"font-size":"0.6rem","margin-top":"4px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","margin-left":"auto"}},U={key:0},q=N({__name:"PremiumSeriesGridCard",props:{series:{type:Object,default:()=>({})},showPurchaseInfo:{type:Boolean,default:!1}},setup(n){const s=n,u=I(),x=p(()=>{var e,a;if(s.series.paid_content===1&&s.series.price_plan){const i=s.series.order;if(i){if(i.viewing_status==="not_publishing")return"éå
¬é";if(i.viewing_status==="viewing_expired")return"æéåã";{const m=i.viewing_expired_at;if(!m)return"";const b=g(m),z=u.add(24,"hour").isAfter(b);return u.isBefore(b)?z?"æééè¿":"":"æéåã"}}const c=(a=(e=s.series)==null?void 0:e.price_plan)==null?void 0:a.purchase_ended_at;if(!c)return"";const d=g(c);return u.isBefore(d)?u.add(24,"hour").isAfter(d)?"çµäºéè¿":"":"販売çµäº"}return""}),y=p(()=>{var e;if(s.series.order)return"è³¼å
¥æ¸";if(s.series.price_plan){const a=(e=s.series.price_plan)==null?void 0:e.amount;return a!=null?`Â¥${a}`:""}return""}),_=p(()=>{const e=s.series.order;return e!=null&&e.viewing_expired_at?g(e.viewing_expired_at):null}),D=p(()=>{var i;const e=(i=s.series)==null?void 0:i.order,a=e==null?void 0:e.viewing_status;return a==="not_publishing"||a==="viewing_expired"});return(e,a)=>(f(),v(A,{class:P(["bg-white mx-2 relative-card",{disabled:t(D)}]),to:`/premium/series/${s.series.id}`},{default:o(()=>[r("div",j,[h(C,{src:t(E)(n.series.image_path),cover:""},{default:o(()=>[t(x)?(f(),v(B,{key:0,label:"",variant:"elevated",size:"x-small",color:"orange-darken-1",class:"chip-top-left"},{default:o(()=>[r("span",G,l(t(x)),1)]),_:1})):w("",!0),t(y)?(f(),v(B,{key:1,label:"",variant:"elevated",size:"x-small",class:"chip-top-right"},{default:o(()=>[r("span",J,l(t(y)),1)]),_:1})):w("",!0)]),_:1},8,["src"])]),h(S,{class:"pl-2"},{default:o(()=>[r("span",K,l(n.series.name),1)]),_:1}),h(T,{class:"pl-2 pb-2",style:{display:"flex","flex-direction":"column"}},{default:o(()=>{var i,c,d;return[r("div",L,[r("div",O,[h(C,{src:n.series.company.logo_path,contain:"",class:"logo-img"},null,8,["src"])]),r("div",R,l(n.series.note),1)]),s.showPurchaseInfo?(f(),W("div",U,[r("div",{class:"text-grey-darken-1 line-placeholder info-line",style:V({visibility:t(_)?"visible":"hidden"})},l(t(_)?"æ¬¡åæ´æ°æ¥ï¼"+t(k)((i=t(_))==null?void 0:i.toDate()):"ã"),5),r("div",{class:"text-grey-darken-1 line-placeholder info-line",style:V({visibility:(c=n.series.order)!=null&&c.purchased_at?"visible":"hidden"})},l((d=n.series.order)!=null&&d.purchased_at?`${t(k)(n.series.order.purchased_at)}è³¼å
¥`:"ã"),5)])):w("",!0)]}),_:1})]),_:1},8,["class","to"]))}}),Z=$(q,[["__scopeId","data-v-f6b81cdf"]]);export{Z 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.