1import{aq as T,bE as se,as as w,aN as W,aZ as J,b2 as le,b1 as O,av as c,aw as r,aC as t,aD as k,aR as a,bF as oe,b4 as V,ax as q,b5 as F,aS as g,bG as re,bH as ne,aY as ie,be as ue,at as ce,au as de,ar as pe,bI as me,b0 as G,aP as fe,aA as h,aW as ye,aX as be,bJ as ge,by as D,az as E,aB as S,b6 as xe,bb as H,ay as N,bx as _e,bh as ve,aH as he,bK as we,bp as ke}from"#entry";import{_ as qe}from"./DbZrRwit.js";import{g as Ve}from"./CGaanL1N.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="d5ec2668-486c-4569-a9e7-d0bff8f63b7f",e._sentryDebugIdIdentifier="sentry-dbid-d5ec2668-486c-4569-a9e7-d0bff8f63b7f")})()}catch{}const $e=["for"],ze={class:"relative inline-flex items-center"},Ae=["id","name","checked","disabled","required","aria-checked","aria-label","aria-labelledby","aria-describedby","autofocus"],Se={class:"sr-only"},Fe=T({__name:"VFormToggleSwitch",props:{modelValue:{type:Boolean},id:{},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{},ariaDescribedby:{},autofocus:{type:Boolean,default:!1},querySync:{type:Boolean,default:!1},queryKey:{default:"personal"},queryOnValue:{default:"true"},resetPage:{type:Boolean,default:!0}},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:f}){const l=e,y=f,$=se(),b=w(()=>l.id??`toggle-${$}`),d=w({get:()=>l.modelValue,set:n=>{y("update:modelValue",n),y("change",n),l.querySync&&C(n)}});function P(n){n.key==="Enter"&&(n.preventDefault(),d.value=!d.value)}const x=W(),z=J();le(()=>{if(!l.querySync||!l.queryKey)return;const n=x.query[l.queryKey],o=typeof n=="string"?n===l.queryOnValue:!1;o!==l.modelValue&&(y("update:modelValue",o),y("change",o))}),O(()=>x.query,n=>{if(!l.querySync||!l.queryKey)return;const o=n[l.queryKey],p=typeof o=="string"?o===l.queryOnValue:!1;p!==l.modelValue&&(y("update:modelValue",p),y("change",p))});async function C(n){if(!l.queryKey)return;const o={};for(const[p,v]of Object.entries(x.query))p===l.queryKey||p==="page"||(typeof v=="string"?o[p]=v:Array.isArray(v)&&(o[p]=v.filter(_=>_!=null)));n&&(o[l.queryKey]=l.queryOnValue),await z.replace({query:o})}return(n,o)=>(r(),c("label",{class:k(["inline-flex select-none items-center gap-8px py-6px",e.disabled?"cursor-not-allowed opacity-60":"cursor-pointer"]),for:t(b)},[a("span",ze,[a("input",{id:t(b),name:e.name,type:"checkbox",class:"peer sr-only",checked:t(d),disabled:e.disabled,required:e.required,"aria-checked":t(d)?"true":"false",role:"switch","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabel?void 0:e.ariaLabelledby,"aria-describedby":e.ariaDescribedby,autofocus:e.autofocus,onChange:o[0]||(o[0]=p=>d.value=p.target.checked),onFocus:o[1]||(o[1]=p=>y("focus")),onBlur:o[2]||(o[2]=p=>y("blur")),onKeyup:P},null,40,Ae),a("span",{class:k(["relative flex h-32px w-59px items-center rounded-full transition-colors peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-ultra-violet-950 motion-safe:duration-500",[t(d)?"bg-yellow-950":"bg-dark-matter-300"]]),"aria-hidden":"true"},[a("span",{class:k(["typo-label-button-s absolute left-8px top-1/2 -translate-y-1/2 !leading-0 text-dark-matter-950 transition-opacity motion-safe:duration-200",t(d)?"opacity-100":"opacity-0"]),"aria-hidden":"true"},"ON",2),a("span",{class:k(["typo-label-button-s absolute right-8px top-1/2 -translate-y-1/2 !leading-0 text-white-pure transition-opacity motion-safe:duration-200",t(d)?"opacity-0":"opacity-100"]),"aria-hidden":"true"},"OFF",2)],2),a("span",{class:k(["absolute left-4px top-4px box-border size-24px rounded-full border-2 shadow transition-transform peer-checked:translate-x-27px motion-safe:duration-200",t(d)?"bg-yellow-50 border-dark-matter-950":"border-dark-matter-600 bg-white-pure"]),"aria-hidden":"true"},null,2)]),oe(n.$slots,"label"),a("span",Se,V(t(d)?"Activé":"Désactivé"),1)],10,$e))}}),Ie={class:"grid grid-cols-1 gap-y-16px bg-white-pure"},Le={class:"typo-h3 order-3 mt-0"},Pe={class:"order-2"},Ce={class:"typo-relance-simple mt-8px uppercase text-dark-matter-600"},Be={class:"typo-relance-simple mt-8px uppercase text-dark-matter-600"},De={class:"order-1"},Ee=T({__name:"VEditionPreview",props:{edition:{}},setup(e){return(f,l)=>{const y=re;return r(),c("article",Ie,[a("h2",Le,V(e.edition.title),1),a("div",Pe,[a("p",Ce,V(e.edition.issuedAt),1),a("p",Be,[e.edition.format==="special_issue"?(r(),c(q,{key:0},[F(" n° spécial ")],64)):e.edition.format==="special_edition"?(r(),c(q,{key:1},[F(" Hors-série n°"+V(e.edition.issue),1)],64)):(r(),c(q,{key:2},[F(" n°"+V(e.edition.issue),1)],64))])]),a("div",De,[g(y,{media:("normalizeMedia"in f?f.normalizeMedia:t(ne))(e.edition.coverImage),"aspect-ratio":.812182741,alt:"","show-caption":!1,"is-figure":!1,decorative:!0,"variant-family":"innergridLG",class:"w-full"},null,8,["media"])])])}}}),Ne=ie(Ee,[["__scopeId","data-v-75f15818"]]),Oe=ue("/images/le-magazine/cover-magazine.jpg"),Te={class:"pb-40px"},Ke={class:"relative bg-dark-matter-950 pb-32px pt-[140px] text-white-pure xl:pb-[120px] xl:pt-[270px]"},Me={class:"col-span-full col-start-1 mt-24px flex flex-col items-center justify-center gap-y-16px xl:flex-row"},Re={class:"col-span-full col-start-1 border-b border-b-dark-matter-950 py-24px xl:col-span-12 xl:col-start-2 2xl
1:col-start-3"},Ue={class:"flex flex-col items-center gap-y-24px justify-self-center bg-white-pure xl:ml-auto xl:w-fit xl:flex-row xl:justify-self-end"},je={class:"flex w-full flex-col gap-y-16px xl:w-auto xl:flex-row xl:gap-x-16px","aria-describedby":"filters-help"},Qe={class:"col-span-full col-start-1 grid grid-cols-subgrid xl:col-span-12 xl:col-start-2 2xl:col-start-3"},Ge={key:0,class:"col-span-full col-start-1 mt-40px border-t border-dark-matter-100 pt-32px xl:col-span-12 xl:col-start-2 2xl:col-start-3"},He={key:1,class:"col-span-full col-start-1 grid grid-cols-subgrid xl:col-span-12 xl:col-start-2 2xl:col-start-3"},We={key:1,class:"typo-h2 col-span-full col-start-1 mt-40px text-ultra-violet-950 xl:col-span-12 xl:col-start-2 2xl:col-start-3",role:"status","aria-live":"polite"},L=12,Ze=T({__name:"le-magazine",async setup(e){let f,l;const{seoMeta:y}=ce({type:"page",title:"Le magazine",titleTemplate:"%s | Ciel & Espace",descriptionRaw:"Ciel & espace est un magazine bimestriel francophone consacré aux sciences de lâUnivers et édité par lâAssociation Française dâAstronomie",slug:"le-magazine"});de(y.value);const $=pe(),b=W(),d=J(),{userHasSubscription:P}=me(),x=w(()=>{const u=ge(b.query.page);return Number.isNaN(u)?1:u}),z=w({get:()=>x.value,set:async u=>{await d.replace({query:D(b.query,u)})}}),C=$.setup?.ads||[],n=w(()=>C.length>0),o=["issue","special_issue","special_edition"],p=[{type:"format",title:"Type de publication",items:[{title:"Ãdition",slug:"issue"},{title:"Ãdition spéciale",slug:"special_issue"},{title:"Hors-série",slug:"special_edition"}]}],v=w(()=>{const u=typeof b.query.format=="string"?b.query.format:"";return o.includes(u)?u:null}),_=G(b.query.personal===""||b.query.personal==="true"),{data:K,error:M}=([f,l]=fe(()=>be(()=>`editorial-editions|format:${v.value}|personal:${_.value}|page:${x.value}|ipp:${L}`,()=>Ve({page:x.value,itemsPerPage:L,format:v.value??void 0,personal:_.value?!0:void 0,imageFormats:["innergrid_lg"]}),{watch:[v,_,x],server:!0,lazy:!1})),f=await f,l(),f);if(M.value)throw M.value;const A=w(()=>K.value?.["hydra:member"]??[]),R=w(()=>Number(K.value?.["hydra:totalItems"]??0)||0),B=G(6),X=async u=>{if(!u||u.type!=="format")return;const s=o.includes(u.slug)?u.slug:"issue",I={...b.query,format:s};await d.replace({query:D(I,1)})};return O(_,async u=>{const s={...b.query};u?s.personal="true":delete s.personal,await d.replace({query:D(s,1)})}),O(x,async()=>{await ke(),window.scrollTo({top:0,behavior:"smooth"})}),(u,s)=>{const I=xe,U=ye,Y=Fe,Z=_e,j=Ne,Q=ve,ee=qe,te=he,ae=we;return r(),c("div",Te,[a("div",Ke,[s[5]||(s[5]=a("div",{class:"absolute inset-0"},[a("img",{src:Oe,width:"1400",height:"200",class:"absolute inset-0 z-0 size-full object-cover",alt:"Couverture du magazine Ciel & Espace",loading:"eager",fetchpriority:"high",decoding:"async"}),a("div",{class:"absolute inset-0 z-1 bg-fade-black text-white-pure"})],-1)),g(U,{class:"relative z-2 text-white-pure"},{default:h(()=>[s[3]||(s[3]=a("h1",{class:"col-span-full col-start-1 text-center font-korolev-bold text-40 leading-110% text-inherit xl:col-span-12 xl:col-start-2 xl:text-56 2xl:col-start-3"}," Le magazine ",-1)),s[4]||(s[4]=a("div",{class:"col-span-full col-start-1 mt-16px text-center font-korolev-medium text-18 leading-24 xl:col-span-8 xl:col-start-4 2xl:col-start-5"}," Ciel & espace est un magazine bimestriel francophone consacré aux sciences de lâUnivers et édité par lâAssociation Française dâAstronomie ",-1)),a("div",Me,[t(P)?S("",!0):(r(),E(I,{key:0,variant:"yellowDark",to:{name:"abonnement"}},{default:h(()=>[F(" sâabonner "+V(t($).setup?.config.subscriptionPricing),1)]),_:1})),g(I,{variant:"primary",class:"ml-16px",to:{name:"qui-sommes-nous"}},{default:h(()=>[...s[2]||(s[2]=[F(" Qui sommes-nous ? ",-1)])]),_:1})])]),_:1})]),g(U,null,{default:h(()=>[a("div",Re,[a("div",Ue,[a("fieldset",je,[s[7]||(s[7]=a("legend",{class:"sr-only"}," Filtres de recherche ",-1)),s[8]||(s[8]=a("p",{id:"filters-help",class:"sr-only"}," Utilisez les menus pour filtrer vos numéros et le type de publication. ",-1)),t($).setup?.user?(r(),E(Y,{key:0,modelValue:t(_),"onUpdate:modelValue":s[0]||(s[0]=i=>H(_)?_.value=i:null),name:"personal","query-sync":!0,"query-key":"personal","query-on-value":"true","reset-page":!0},{label:h(()=>[...s[6]||(s[6]=[a("p",{class:"typo-caption"}," Afficher seulement mes numéros ",-1)])]),_:1},8,["modelValue"])):S("",!0),(r(),c(q,null,N(p,i=>g(Z,{key:i.type,filter:i,onFilterChanged:X},null,8,["filter"])),64))])])]),t(A)&&t(A).length>0?(r(),c(q,{key:0},[a("ul",Qe,[(r(!0),c(q,null,N(t(A).slice(0,t(B)),(i,m)=>(r(),c("li",{key:i["@id"]??i.slug??`first-${m}`,class:k(["col-span-4 col-start-1 mt-40px border-t border-dark-matter-100 md:col-span-2 xl:col-span-4",`md:col-start-${m%2===0?1:3}`,`xl:col-start-${m%3*4+1}`,{"border-t-0":m===0},m===0?"pt-0":"pt-32px",m>
1=3?"xl:pt-32px":"xl:pt-0",{"md:pt-0":m===1},{"md:border-t-0":m<2},{"xl:border-t-0":m<3}])},[g(Q,{to:{name:"edition-slug",params:{slug:i.slug}}},{default:h(()=>[g(j,{edition:i},null,8,["edition"])]),_:2},1032,["to"])],2))),128))]),t(n)?(r(),c("div",Ge,[g(te,null,{default:h(()=>[g(ee,{"no-background":""})]),_:1})])):S("",!0),t(A).length>t(B)?(r(),c("ul",He,[(r(!0),c(q,null,N(t(A).slice(t(B)),(i,m)=>(r(),c("li",{key:i["@id"]??i.slug??`after-${m}`,class:k(["col-span-4 col-start-1 mt-40px border-t border-dark-matter-100 md:col-span-2 xl:col-span-4",`md:col-start-${m%2===0?1:3}`,`xl:col-start-${m%3*4+1}`,"pt-32px"])},[g(Q,{to:{name:"edition-slug",params:{slug:i.slug}}},{default:h(()=>[g(j,{edition:i},null,8,["edition"])]),_:2},1032,["to"])],2))),128))])):S("",!0)],64)):(r(),c("p",We," Aucun résultat. ")),t(R)>L?(r(),E(ae,{key:2,modelValue:t(z),"onUpdate:modelValue":s[1]||(s[1]=i=>H(z)?z.value=i:null),class:"col-span-full col-start-1 mt-48px xl:mt-64px","total-items":t(R),"items-per-page":L,"aria-label":"Pagination des éditions"},null,8,["modelValue","total-items"])):S("",!0)]),_:1})])}}});export{Ze 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.