1import{_ as H}from"./B3PWPH_B.js";import{aR as O,aU as P,b5 as G,bS as Q,ca as U,aV as Y,aN as o,aQ as i,bt as F,c7 as K,bj as _,bk as v,a$ as S,bn as b,aZ as u,bQ as W,bp as h,c5 as X,cc as Z,aO as s,bo as E,a_ as k,b7 as M,bl as J,b6 as ee}from"./Dk61C-B4.js";import{_ as se}from"./E62va4p7.js";import{u as te}from"./D3DXCneh.js";import{u as oe}from"./DfghWYGM.js";import"./CrPzhkw6.js";import"./Cv2lpPyS.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"3.3.8"}}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"3.3.8"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(c){for(var p=1;p<arguments.length;p++){var m=arguments[p];if(m!=null)for(var f in m)m.hasOwnProperty(f)&&(c[f]=m[f])}return c})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:showbizz":!0});var l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="51d279b7-f0e2-4427-9201-fa7e3ca732a5",t._sentryDebugIdIdentifier="sentry-dbid-51d279b7-f0e2-4427-9201-fa7e3ca732a5")}catch{}})();const ne={class:"page-root l-two-column"},ae={class:"l-main-column"},ie={class:"subsection-header flex-container align-justify align-middle"},re=["value"],le={class:"subsection-count"},ue={class:"flex-container align-justify"},de={class:"subsection-title"},ce={class:"subsection-count"},me={key:0,class:"role-row role--primary"},_e={key:1,class:"role-row role--company"},be=["src","alt"],pe={key:1,class:"company-name"},fe={class:"l-aside-column"},ye={class:"aside-ad text-center"},ve={class:"ad-zone"},he={key:0,class:"adslot banneronly"},ge={key:1,class:"adslot boxonly"},we=O({__name:"distribution",props:{tvshow:{type:Object,default:()=>({})}},async setup(t){let l,c;const{isMobile:p,isTablet:m,isDesktop:f}=te(),g=t,y=W(),T=Z(),{$api:A,$pluralize:w,$apiImg:D,$removeTrailingSlash:N}=P(),x=y.params.slug,d=G(y.query.saison?Number(y.query.saison):null),{data:I,error:R}=([l,c]=Q(()=>X(()=>`tvshow-members-${x}-${d.value??"all"}`,()=>A(`/api/tvshows/${x}/members`,{params:{number:d.value||null}}),"$HGXAG_smTk")),l=await l,c(),l);if(R.value)throw U({statusCode:404,message:"Ãmission non trouvée",fatal:!0});const $=h(()=>I.value?.roles||[]),q=a=>a.some(n=>n.main_media),B=h(()=>$.value.reduce((a,n)=>a+(n.members?.length||0),0)),V=h(()=>g.tvshow?.seasons?.filter(a=>a.nb_members>0)||[]);return Y(d,a=>{T.push({name:y.name,query:{...y.query,saison:a?String(a):void 0}})}),oe({title:h(()=>{const a=g.tvshow?.title||"",n=g.tvshow?.is_tv_series?"Distribution et équipe":"Ãquipe";return`${a} - ${n}`}),meta:[{name:"robots",content:"noindex"}]}),(a,n)=>{const z=H,C=J,j=se;return s(),o("div",ne,[i("div",ae,[i("div",ie,[n[2]||(n[2]=i("label",{for:"seasons",class:"visuallyhidden"},"Saisons:",-1)),t.tvshow.seasons&&t.tvshow.seasons.length?F((s(),o("select",{key:0,id:"seasons","onUpdate:modelValue":n[0]||(n[0]=e=>d.value=e)},[n[1]||(n[1]=i("option",{value:null},"Tout",-1)),(s(!0),o(_,null,v(V.value,e=>(s(),o("option",{key:e.id,value:e.number},b(e.broadcast_label),9,re))),128))],512)),[[K,d.value]]):S("",!0),i("div",le,b(u(w)("{n} membre | {n} membres",B.value)),1)]),(s(!0),o(_,null,v($.value,e=>(s(),o("div",{key:e.section_name,class:"role-group"},[i("div",ue,[i("h2",de,b(e.section_name||e.name),1),i("div",ce,[e.type==="person"?(s(),o(_,{key:0},[E(b(u(w)("{n} personne | {n} personnes",e.members.length)),1)],64)):(s(),o(_,{key:1},[E(b(u(w)("{n} compagnie | {n} compagnies",e.members.length)),1)],64))])]),(s(),k(j,{key:`${e.section_name}-${d.value}`,"max-height":400,total:e.members.length},{default:M(()=>[e.type==="person"?(s(),o("div",me,[(s(!0),o(_,null,v(e.members,(r,L)=>(s(),k(z,{key:`${e.section_name}-${r.id}-${L}`,person:r,"show-timeline":!d.value,layout:q(e.members)?"horizontal-with-image":"text-only"},null,8,["person","show-timeline","layout"]))),128))])):(s(),o("div",_e,[(s(!0),o(_,null,v(e.members,r=>(s(),k(C,{key:r.id,to:u(N)({name:"company-preview",params:{slug:r.slug}})},{default:M(()=>[r.logo&&r.logo.filename?(s(),o("img",{key:0,src:u(D)(r.logo),alt:r.name},null,8,be)):(s(),o("div",pe,b(r.name),1))]),_:2},1032,["to"]))),128))]))]),_:2},1032,["total"]))]))),128))]),i("div",fe,[i("div",ye,[i("div",ve,[u(p)||u(m)?(s(),o("div",he)):u(f)?(s(),o("div",ge)):S("",!0)])])])])}}}),Ae=ee(we,[["__scopeId","data-v-1b9982e3"]]);export{Ae 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.