1import{b6 as y,aU as b,aO as s,a_ as p,b7 as $,aQ as c,aN as o,aZ as k,bn as i,a$ as u,bo as f,bj as g,bl as I,aR as M,bS as N,ca as P,bk as S,bQ as T,bp as A,c5 as D}from"./BEiOnUod.js";import{_ as R}from"./owmBocaw.js";import{u as B}from"./DfbnhsEU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.3.7"}}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.3.7"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(a){for(var r=1;r<arguments.length;r++){var t=arguments[r];if(t!=null)for(var d in t)t.hasOwnProperty(d)&&(a[d]=t[d])}return a})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:showbizz":!0});var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="732ac192-f85f-4775-8ac8-810756720aad",e._sentryDebugIdIdentifier="sentry-dbid-732ac192-f85f-4775-8ac8-810756720aad")}catch{}})();const C={class:"personnage-img"},j=["src","alt"],z={key:1,src:R,alt:""},L={class:"personnage-infos"},Y={class:"personnage-name"},O={key:0,class:"personnage-role"},V={key:1,class:"personnage-date"},F={key:0,class:"tag"},Q={__name:"SeriesPersonnage",props:{tvshow:{type:Object,default:()=>({})}},setup(e){const{$cdnImg:n}=b(),a=t=>t?new Date(t).getFullYear():"",r=t=>t;return(t,d)=>{const l=I;return s(),p(l,{to:r({name:"tvshow-preview",params:{slug:e.tvshow.slug}}),class:"personnage-preview"},{default:$(()=>[c("div",C,[e.tvshow.main_media?(s(),o("img",{key:0,loading:"lazy",src:k(n)(e.tvshow.main_media,140,90),alt:e.tvshow.title},null,8,j)):(s(),o("img",z))]),c("div",L,[c("div",Y,i(e.tvshow.title),1),e.tvshow.membership?(s(),o("div",O,i(e.tvshow.membership.character_name),1)):u("",!0),e.tvshow.start_date?(s(),o("div",V,[f(i(a(e.tvshow.start_date))+" ",1),e.tvshow.end_date&&a(e.tvshow.end_date)!==a(e.tvshow.start_date)?(s(),o(g,{key:0},[f(" - "+i(a(e.tvshow.end_date)),1)],64)):!e.tvshow.end_date&&!e.tvshow.end_date_unknown?(s(),o(g,{key:1},[f(" - Aujourd'hui ")],64)):u("",!0)])):u("",!0)]),e.tvshow.is_ongoing?(s(),o("div",F,"En cours")):u("",!0)]),_:1},8,["to"])}}},U=y(Q,[["__scopeId","data-v-4d156cc2"]]),H={class:"subsection-header flex-container align-justify"},K={class:"subsection-count"},Z={key:0},q=M({__name:"characters",async setup(e){let n,a;const r=T(),{$api:t,$pluralize:d}=b(),l=r.params.slug,{data:v,error:E}=([n,a]=N(()=>D(`person-cast-${l}`,()=>t(`/api/persons/${l}/tvshows/cast`))),n=await n,a(),n);if(E.value)throw P({statusCode:404,message:"Personne non trouvée",fatal:!0});const _=A(()=>v.value?.data||v.value||[]);return B({titleTemplate:h=>h?`${h} - Personnages`:"Personnages",meta:[{name:"robots",content:"noindex"}]}),(h,m)=>{const x=U;return s(),o("div",null,[c("div",H,[m[0]||(m[0]=c("h2",{class:"subsection-title"},"Personnages",-1)),c("div",K,i(k(d)("{n} personnage | {n} personnages",_.value?.length||0)),1)]),_.value?(s(),o("div",Z,[(s(!0),o(g,null,S(_.value,w=>(s(),p(x,{key:w.id,tvshow:w},null,8,["tvshow"]))),128))])):u("",!0)])}}}),X=y(q,[["__scopeId","data-v-d92bc75d"]]);export{X 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.