PageSourceSearch

https://www.avivremagazine.fr/_next/static/chunks/22m65q_tzn_ef.js

js avivremagazine.fr collected 2026-10-02 11:56:31 UTC 39,171 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,541413,e=>{"use strict";var t=e.i(843476),a=e.i(72790),r=e.i(522016),i=e.i(997495),s=e.i(817259),l=e.i(324119),n=e.i(127112),o=e.i(680108),c=e.i(780662);let d=({imageSrc:e,title:a,href:i})=>{let{cdnImageUrl:s}=(0,n.f)();return(0,t.jsxs)(r.default,{className:"group flex flex-col",href:i,children:[(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("img",{alt:"",className:"aspect-[1.56] w-full object-cover transition-transform duration-300 group-hover:scale-105",src:s((0,l.s)(e),384),loading:"lazy",decoding:"async"})}),(0,t.jsx)("p",{className:"mt-3 text-sm font-light leading-relaxed text-black transition-colors group-hover:text-[var(--avivre-secondary)] dark:text-white dark:group-hover:text-[var(--avivre-primary)]",children:a})]})};function m(){return(0,t.jsxs)("div",{className:"flex flex-col animate-pulse",children:[(0,t.jsx)("div",{className:"aspect-[1.56] w-full bg-zinc-300 dark:bg-zinc-600"}),(0,t.jsx)("div",{className:"mt-3 h-4 w-3/4 rounded bg-zinc-300 dark:bg-zinc-600"})]})}function u({initialArticles:e,targetSiteUrl:r,targetBrandCode:g,targetBrandLogo:x,targetBrandName:p}={}){let{cdnUrl:h,cdnImageUrl:v}=(0,n.f)(),f=g??"EXE",b=o.q[f],j=x??b.logo.header,N=p??b.displayName,w=!!e,{data:y,isLoading:z}=s.api.articles.getHomeArticles.useQuery({limit:4,source:"both",codeMagazine:f},{staleTime:3e5,enabled:!w}),{data:k}=s.api.site.getPrimaryDomain.useQuery({siteId:o.u[f]},{staleTime:36e5,enabled:!r}),I=r??k??b.siteBaseUrl,A=e??(Array.isArray(y)?y.flatMap(e=>"object"!=typeof e||null===e||"string"!=typeof e.title||"string"!=typeof e.slug?[]:[{title:e.title,slug:e.slug,..."string"==typeof e.mainImage?{mainImage:e.mainImage}:{},..."string"==typeof e.rubrique?{rubrique:e.rubrique}:{}}]):[]),S=A?.filter(e=>e.mainImage).slice(0,4).map(e=>({imageSrc:e.mainImage,title:e.title,href:`${I}${(0,c.f)(e.slug,e.rubrique)}`}));return(w?null!=S&&0!==S.length:z||S&&0!==S.length)?(0,t.jsx)("section",{className:"mt-8 bg-zinc-200 py-8 dark:bg-zinc-800",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 mb-8",children:[(0,t.jsx)("h2",{className:"text-center text-xl font-medium text-black dark:text-white",children:"À lire aussi sur"}),(0,t.jsx)("img",{alt:N,className:"h-8 w-auto object-contain",src:v(j,l.E.thumb),loading:"lazy",decoding:"async"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4",children:!w&&z?Array.from({length:4},(e,a)=>(0,t.jsx)(m,{},a)):S?.map(e=>(0,t.jsx)(d,{...e},e.href))}),(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(a.f,{asChild:!0,className:(0,i.c)("bg-[var(--avivre-primary-hover)] px-8 py-2.5 text-sm font-medium text-[var(--avivre-primary-hover-foreground)]","transition-colors hover:bg-[var(--avivre-primary-hover)] hover:text-[var(--avivre-primary-hover-foreground)]","dark:bg-[var(--avivre-secondary)] dark:text-[var(--avivre-secondary-foreground)] dark:hover:bg-[var(--avivre-secondary-hover)] dark:hover:text-[var(--avivre-secondary-hover-foreground)]"),children:(0,t.jsx)("a",{href:`${I}/articles`,children:"Voir plus d'articles"})})})]})}):null}e.s(["ALireAussi",0,u,"default",0,u],541413)},755465,e=>{"use strict";var t=e.i(843476),a=e.i(72790),r=e.i(635613),i=e.i(788699),s=e.i(643531),l=e.i(37727),n=e.i(522016),o=e.i(271645),c=e.i(997495),d=e.i(324119),m=e.i(94697),u=e.i(481965),g=e.i(477196),x=e.i(663041),p=e.i(817259),h=e.i(580943);function v({value:e,editable:a,onSave:n,className:d,placeholder:m}){let[u,g]=(0,o.useState)(!1),[x,p]=(0,o.useState)(e),[h,f]=(0,o.useState)(!1),b=()=>{p(e),g(!1)},j=async()=>{if(x===e)return void g(!1);f(!0);try{await n(x),g(!1)}catch{p(e)}finally{f(!1)}};return u?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(r.e,{value:x,onChange:e=>p(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),b()),"Enter"===e.key&&(e.preventDefault(),j())},disabled:h,className:"h-auto bg-white/90 text-gray-900 text-sm py-1 px-2 min-w-[60px] w-auto",style:{width:`${Math.max(x.length,4)}ch`},autoFocus:!0}),(0,t.jsx)("button",{onClick:j,disabled:h,className:"p-0.5 rounded bg-white/80 hover:bg-white",children:(0,t.jsx)(s.f,{className:"h-3.5 w-3.5 text-green-600"})}),(0,t.jsx)("button",{onClick:b,disabled:h,className:"p-0.5 rounded bg-white/80 hover:bg-white",children:(0,t.jsx)(l.X,{className:"h-3.5 w-3.5 text-red-600"})})]}
1):(0,t.jsxs)("span",{className:(0,c.c)(d,a&&"cursor-pointer hover:bg-black/10 rounded px-1 -mx-1 transition-colors group inline-flex items-center gap-1"),onClick:()=>{a&&(p(e),g(!0))},children:[e||m,a&&(0,t.jsx)(i.f,{className:"h-3 w-3 opacity-0 group-hover:opacity-60 transition-opacity text-current flex-shrink-0"})]})}e.s(["CTASignupClient",0,function({initialContent:e}){let r=(0,m.f)("cms:write"),{isEditMode:i}=(0,u.S)(),s=(0,x.f)(),l=r&&i,[f,b]=(0,o.useState)({});(0,o.useEffect)(()=>{let e=e=>{let t=e.detail,a=t?.headerSettings?.ctaSignup;a&&"object"==typeof a&&!Array.isArray(a)&&b(a)};return document.addEventListener("avivre:customizer-update",e),()=>document.removeEventListener("avivre:customizer-update",e)},[]);let j=p.api.useUtils(),{data:N}=p.api.settings.getSettings.useQuery(void 0,{staleTime:3e5,enabled:l}),w=p.api.settings.updateSettings.useMutation({onSuccess:()=>{j.settings.getSettings.invalidate()}}),y=e=>N?.[e],z={...h.b,...e??{},...void 0!==y(h.s.subtitle)&&{subtitle:y(h.s.subtitle)},...void 0!==y(h.s.price)&&{price:y(h.s.price)},...void 0!==y(h.s.pricePeriod)&&{pricePeriod:y(h.s.pricePeriod)},...void 0!==y(h.s.buttonText)&&{buttonText:y(h.s.buttonText)},...void 0!==y(h.s.buttonLink)&&{buttonLink:y(h.s.buttonLink)},...void 0!==y(h.s.disclaimer)&&{disclaimer:y(h.s.disclaimer)},...void 0!==y(h.s.magazineImageUrl)&&{magazineImageUrl:y(h.s.magazineImageUrl)},...void 0!==y(h.s.magazineImageAlt)&&{magazineImageAlt:y(h.s.magazineImageAlt)},...void 0!==y(h.s.websiteImageUrl)&&{websiteImageUrl:y(h.s.websiteImageUrl)},...void 0!==y(h.s.websiteImageAlt)&&{websiteImageAlt:y(h.s.websiteImageAlt)},...void 0!==y(h.s.logoUrl)&&{logoUrl:y(h.s.logoUrl)},...void 0!==y(h.s.logoAlt)&&{logoAlt:y(h.s.logoAlt)},...f},k=(0,o.useCallback)(async(e,t)=>{let a=h.s[e];await w.mutateAsync({[a]:t})},[w]),I=(0,o.useCallback)(async e=>{let t={};for(let[a,r]of Object.entries(e)){if("string"!=typeof r)continue;let e=h.s[a];e&&(t[e]=r)}Object.keys(t).length>0&&await w.mutateAsync(t)},[w]),A=s&&!l?"Mon espace":z.buttonText,S=s&&!l?"/votre-espace/mon-abonnement":z.buttonLink,C=s&&!l?"Vous êtes déjà abonné":z.disclaimer;return(0,t.jsx)("section",{className:(0,c.c)("relative mt-8 overflow-hidden bg-[var(--avivre-primary-hover)] text-[var(--avivre-primary-hover-foreground)]",l&&"ring-2 ring-[var(--avivre-primary)]/40 ring-inset"),children:(0,t.jsx)("div",{className:"mx-auto max-w-7xl px-4 py-12 md:px-8 lg:px-12",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-3",children:[(0,t.jsx)("div",{className:"relative flex items-center justify-center lg:justify-end",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(g.InlineEditableLogo,{src:z.magazineImageUrl,alt:z.magazineImageAlt,cdnWidth:d.E.card,imgClassName:"relative z-10 h-auto w-[280px] drop-shadow-2xl transition-transform duration-500 hover:scale-105 md:w-[320px] lg:w-[360px]",canEdit:r,isEditMode:i,onSave:async(e,t)=>{let a={magazineImageUrl:e};void 0!==t&&(a.magazineImageAlt=t),await I(a)},placeholder:"Image magazine"}),(0,t.jsx)("div",{className:"absolute -bottom-4 left-1/2 h-8 w-4/5 -translate-x-1/2 rounded-full bg-black/20 blur-xl"})]})}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)(g.InlineEditableLogo,{src:z.logoUrl,alt:z.logoAlt,className:"mb-6",imgClassName:"h-auto w-[220px] md:w-[260px]",canEdit:r,isEditMode:i,onSave:async(e,t)=>{let a={logoUrl:e};void 0!==t&&(a.logoAlt=t),await I(a)},placeholder:"Logo"}),(0,t.jsxs)("div",{className:"mb-6 space-y-1",children:[(0,t.jsx)(v,{value:z.subtitle,editable:l,onSave:e=>k("subtitle",e),className:"font-josefin text-lg text-zinc-800 md:text-xl"}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-0.5",children:[(0,t.jsx)(v,{value:z.price,editable:l,onSave:e=>k("price",e),className:"font-josefin font-bold text-3xl text-current md:text-4xl"}),(0,t.jsx)(v,{value:z.pricePeriod,editable:l,onSave:e=>k("pricePeriod",e),className:"font-josefin text-xl font-medium text-current md:text-2xl"})]})]}),l?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsx)(v,{value:z.buttonText,editable:!0,onSave:e=>k("buttonText",e),className:"inline-block bg-[var(--avivre-cta)] px-10 py-3 font-josefin font-semibold text-lg text-[var(--avivre-cta-foreground)] uppercase tracking-wide"}),(0,t.jsx)(v,{value:z.buttonLink,editable:!0,onSave:e=>k("buttonLink",e),className:"text-xs text-current opacity-70 font-mono",placeholder:"/boutique"})]}):(0,t.jsx)(a.f,{asChild:!0,className:"group relative overflow-hidden bg-[var(--avivre-cta)] px-10 py-6 font-josefin font-semibold text-lg text-[var(--avivre-cta-foreground)] uppercase tracking-wide transition-all duration-300 hover:bg-[var(--avivre-cta-hover)] hover:shadow-lg md:px-14 md:text-xl",children:(0,t.jsxs)(n.default,{href:S,children:[(0,t.jsx)("span",{className:"relative z-10",children:A}),(0,t.jsx)("span",{className:"absolute inset-0 -translate-x-full bg-white/20 transition-transform duration-500 group-hover:translate-x-full"})]})}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(v,{value:C,editable:l,onSave:e=>k("disclaimer",e),className:"font-josefin text-sm text-zinc-700 md:text-base"})})]}),(0,t.jsx)("div",{className:"relative flex items-center justify-center lg:justify-start",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(g.InlineEditableLogo,{src:z.websiteImageUrl,alt:z.websiteImageAlt,cdnWidth:d.E.card,imgClassName:"relative z-10 h-auto w-[340px] drop-shadow-2xl transition-transform duration-500 hover:scale-105 md:w-[400px] lg:w-[480px]",canEdit:r,isEditMode:i,onSave:async(e,t)=>{let a={websiteImageUrl:e};void 0!==t&&(a.websiteImageAlt=t),await I(a)},placeholder:"Image site web"}),(0,t.jsx)("div",{className:"absolute -bottom-4 left-1/2 h-8 w-4/5 -translate-x-1/2 roun
1ded-full bg-black/20 blur-xl"})]})})]})})})}])},580943,e=>{"use strict";e.s(["b",0,{subtitle:"À partir de",price:"10,90€",pricePeriod:"/parution",buttonText:"Je m'abonne",buttonLink:"/boutique",disclaimer:"Sans engagement · Annulez à tout moment",magazineImageUrl:"/images/avivre/Mockup-revue-2025-ok.webp",magazineImageAlt:"Magazine À Vivre - Revue 2025",websiteImageUrl:"/images/avivre/Mockup-site-ok2.webp",websiteImageAlt:"Site web À Vivre",logoUrl:"/images/avivre/logo-avivre-blanc.svg",logoAlt:"À Vivre"},"s",0,{subtitle:"site.cta.signup.subtitle",price:"site.cta.signup.price",pricePeriod:"site.cta.signup.pricePeriod",buttonText:"site.cta.signup.buttonText",buttonLink:"site.cta.signup.buttonLink",disclaimer:"site.cta.signup.disclaimer",magazineImageUrl:"site.cta.signup.magazineImageUrl",magazineImageAlt:"site.cta.signup.magazineImageAlt",websiteImageUrl:"site.cta.signup.websiteImageUrl",websiteImageAlt:"site.cta.signup.websiteImageAlt",logoUrl:"site.cta.signup.logoUrl",logoAlt:"site.cta.signup.logoAlt"}])},477196,e=>{"use strict";var t=e.i(843476),a=e.i(473708),r=e.i(770703),i=e.i(997495),s=e.i(127112),l=e.i(456174);let n=(0,r.default)(()=>e.A(50274).then(e=>({default:e.InlineEditableLogoEditor})),{loadableGenerated:{modules:[370284]},ssr:!1,loading:()=>null});e.s(["InlineEditableLogo",0,function(e){let{src:r,alt:o="",href:c,className:d,imgClassName:m,canEdit:u,isEditMode:g,placeholder:x="Image",cdnWidth:p}=e,{cdn:h,cdnImageUrl:v}=(0,s.f)(),f=p?v(r,p):(0,l.t)(r,h);if(!u||!g){let e=r?(0,t.jsx)("img",{src:f||r,alt:o||x,className:m,loading:"lazy"}):(0,t.jsx)("div",{className:(0,i.c)("flex items-center justify-center bg-muted",m),children:(0,t.jsx)(a.f,{className:"h-8 w-8 text-muted-foreground"})});return(0,t.jsx)("div",{className:d,children:c&&r?(0,t.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:e}):e})}return(0,t.jsx)(n,{...e})}])},270449,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(503116),i=e.i(209019),s=e.i(812478);e.s(["ConcoursDaysLeft",0,function({endDate:e}){let[l,n]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let t=new Date(e);(0,s.f)(t)||n((0,i.f)(t,new Date))},[e]),null===l||l<0||l>14)?null:(0,t.jsxs)("div",{className:"flex items-center gap-1 mt-3 text-sm bg-white/20 px-3 py-1 rounded-full",children:[(0,t.jsx)(r.f,{className:"h-3 w-3"}),(0,t.jsxs)("span",{children:["Plus que ",l," jour",l>1?"s":""]})]})}])},250708,e=>{"use strict";var t=e.i(843476),a=e.i(288399),r=e.i(72790),i=e.i(522016),s=e.i(803604),l=e.i(332517),n=e.i(817259),o=e.i(810980),c=e.i(286536),d=e.i(150965),m=e.i(271645),u=e.i(171056),g=e.i(375308),x=e.i(363712),p=e.i(788699),h=e.i(643531),v=e.i(531278),f=e.i(16715),b=e.i(239616),j=e.i(846696),N=e.i(324119);function w({tenantId:e,siteId:a,currentEditionId:s,onSelect:l}){let[c,d]=(0,m.useState)(!1),[y,z]=(0,m.useState)(s||null),k=n.api.useUtils(),{data:I,isLoading:A}=n.api.publicMagazine.getPublishedEditions.useQuery({tenantId:e,siteId:a,limit:50},{enabled:c}),S=n.api.siteSettings.updateMagazineSettings.useMutation({onSuccess:()=>{j.toast.success("Magazine mis en avant mis à jour"),k.publicMagazine.getFeaturedMagazine.invalidate(),d(!1)},onError:e=>{j.toast.error(`Erreur: ${e.message}`)}}),C=e=>{let t=e?.id||null;z(t),S.mutate({featuredMagazineId:t}),l?.(e)},E=I?.editions||[];return(0,t.jsxs)(u.V,{open:c,onOpenChange:d,children:[(0,t.jsx)(u.J,{asChild:!0,children:(0,t.jsx)(r.f,{size:"sm",variant:"outline",className:"bg-white/10 border-white/20 hover:bg-white/20 hover:border-white/40 text-white backdrop-blur-sm",title:"Choisir le magazine à afficher",children:(0,t.jsx)(p.f,{className:"h-3 w-3"})})}),(0,t.jsxs)(u.T,{className:"w-80 p-0",align:"end",children:[(0,t.jsxs)("div",{className:"p-3 border-b",children:[(0,t.jsx)("h4",{className:"font-semibold text-sm",children:"Magazine mis en avant"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Sélectionnez le magazine à afficher sur le site"})]}),(0,t.jsx)(g.f,{className:"h-[300px]",children:(0,t.jsxs)("div",{className:"p-2 space-y-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>C(null),disabled:S.isPending,className:`w-full flex items-center gap-3 p-2 rounded-md transition-colors text-left ${null===y?"bg-primary/10 border border-primary/30":"hover:bg-muted"}`,children:[(0,t.jsx)("div",{className:"flex h-10 w-8 items-center justify-center rounded bg-muted",children:(0,t.jsx)(f.f,{className:"h-4 w-4 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:"Mode automatique"}),null===y&&(0,t.jsx)(h.f,{className:"h-3 w-3 text-primary"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Dernier magazine publié"})]})]}),A?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(v.f,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):0===E.length?(0,t.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,t.jsx)(o.f,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),(0,t.jsx)("p",{className:"text-sm",children:"Aucun magazine publié"})]}):E.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>C(e),disabled:S.isPending,className:`w-full flex items-center gap-3 p-2 rounded-md transition-colors text-left ${y===e.id?"bg-primary/10 border border-primary/30":"hover:bg-muted"}`,children:[(0,t.jsx)("div",{className:"relative h-12 w-9 flex-shrink-0 overflow-hidden rounded bg-muted",children:e.coverImageUrl?(0,t.jsx)("img",{src:(0,N.s)(e.coverImageUrl),alt:e.title,className:"h-full w-full object-cover"}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,t.jsx)(o.f,{className:"h-4 w-4 text-muted-foreground"})})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(x.f,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:["N°",e.issueNumber,e.publication?.name&&` ${e.publication.name}`]}),y===e.id&&(0,t.jsx)(h.f,{className:"h-3 w-3 text-primary"})]}),(0,t.jsx)("p",{className:"text-sm font-medium truncate mt-0.5",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:new Date(e.publicationDate).toLocaleDateString("fr-FR",{month:"short",year:"numeric"})})]})]},e.id))]})}),(0,t.jsx)("div",{className:"p-2 border-t bg-muted/30",children:(0,t.jsx)(i.default,{href:"/manage/settings/content/magazine",className:"block",children:(0,t.jsxs)(r.f,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[(0,t.jsx)(b.f,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"text-xs",children:"Paramètres complets"})]})})}),S.isPending&&(0,t.jsx)("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center rounded-md",children:(0,t.jsx)(v.f,{className:"h-5 w-5 animate-spin"})})]})]})}var y=e.i(481965);let z=({issueNumber:e,publicationName:a,issueDate:r,title:i,description:s})=>(0,t.jsxs)("div",{className:"flex h-full flex-col justify-center py-2",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 mb-2",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 bg-current/20 px-3 py-1 text-xs font-medium backdrop-blur-sm",children:[(0,t.jsx)(o.f,{className:"h-3 w-3"}),"N°",e,a&&` • ${a}`]})}),(0,t.jsx)("h3",{className:"text-xl font-bold leading-tight mb-1 line-clamp-2",children:i}),(0,t.jsx)("p",{className:"text-sm opacity-80 mb-3 capitalize",children:r}),(0,t.jsx)("p",{className:"line-clamp-3 text-sm leading-relaxed opacity-90",children:s})]});e.s(["default",0,function({tenantId:e,siteId:m,initialMagazine:u}){let{hasRole:g}=(0,l.f)(),{isEditMode:x}=(0,y.S)(),{data:p,isLoading:h,error:v}=n.api.publicMagazine.getFeaturedMagazine.useQuery({tenantId:e,siteId:m},{enabled:!!e&&!!m,initialData:u?{...u,publicationDate:u.publicationDate.toISOString(),volumeNumber:u.volumeNumber??null,coverImageUrl:u.coverImageUrl??null,description:u.description??null,excerpt:u.excerpt??null}:void 0}),f=p?{id:p.id,slug:p.slug,number:p.issueNumber.toString(),publicationName:p.publication?.name||null,title:p.title,imageUrl:p.coverImageUrl||"/images/placeholder.svg?height=306&width=204",description:p.description||p.excerpt||"Découvrez le dernier numéro d'À Vivre Magazine",issueDate:new Date(p.publicationDate).toLocaleDateString("fr-FR",{month:"long",year:"numeric",timeZone:"UTC"})}:null;if(h&&!f)return(0,t.jsxs)("div",{className:"relative overflow-hidden bg-gradient-to-br from-[var(--avivre-primary)] to-[var(--avivre-primary-hover)] p-5 text-[var(--avivre-primary-foreground)] shadow-lg",children:[(0,t.jsxs)("div",{className:"flex gap-5",children:[(0,t.jsx)("div",{className:"relative flex-shrink-0",children:(0,t.jsx)("div",{className:"h-[200px] w-[140px] bg-current/20 animate-pulse shadow-xl"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-center space-y-3",children:[(0,t.jsx)("div",{className:"h-6 w-24 bg-current/20 animate-pulse"}),(0,t.jsx)("div",{className:"h-6 w-3/4 bg-current/20 animate-pulse"}),(0,t.jsx)("div",{className:"h-4 w-1/3 bg-current/20 animate-pulse"}),(0,t.jsxs)("div",{className:"space-y-2 mt-2",children:[(0,t.jsx)("div",{className:"h-4 w-full bg-current/20 animate-pulse"}),(0,t.jsx)("div",{className:"h-4 w-2/3 bg-current/20 animate-pulse"})]})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,t.jsx)("div",{className:"h-10 flex-1 bg-current/20 animate-pulse"}),(0,t.jsx)("div",{className:"h-10 flex-1 bg-current/20 animate-pulse"})]})]});if(v&&!f)return(0,t.jsx)("div",{className:"relative overflow-hidden bg-gradient-to-br from-[var(--avivre-primary)] to-[var(--avivre-primary-hover)] p-6 text-[var(--avivre-primary-foreground)] shadow-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 py-8",children:[(0,t.jsx)(o.f,{className:"h-12 w-12 opacity-50"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-lg font-medium mb-1",children:"Erreur de chargement"}),(0,t.jsx)("p",{className:"text-sm opacity-70",children:"Impossible de charger les informations du magazine"})]}),(0,t.jsx)(r.f,{variant:"outline",onClick:()=>window.location.reload(),className:"bg-white/10 border-white/30 hover:bg-current/20 text-white",children:"Réessayer"})]})});if(!f)return null;let b=function(e){let t=(0,a.B)(e);if(!t)return"";let r=e=>(e||"").replace(/\s+/g," ").trim(),i=[...t.matchAll(/<li[^>]*>([\s\S]*?)<\/li>/gi)].map(e=>r(e[1].replace(/<[^>]+>
1/g," "))).filter(Boolean);if(i.length>0){let e=i.slice(0,6).map(e=>e.length>70?`${e.slice(0,70).trimEnd()}…`:e);return i.length>6&&e.push("…"),e.join(" • ")}let s=r(t.replace(/<[^>]+>/g," "));return s?s.length>220?`${s.slice(0,220).trimEnd()}…`:s:""}(f.description||"Découvrez le dernier numéro d'À Vivre Magazine"),j=f.issueDate||"Date à venir",k=g("admin")||g("superadmin"),I=f.slug||f.id;return(0,t.jsxs)("div",{className:"relative overflow-hidden bg-gradient-to-br from-[var(--avivre-primary)] to-[var(--avivre-primary-hover)] text-[var(--avivre-primary-foreground)] shadow-lg",children:[k&&x&&(0,t.jsx)("div",{className:"absolute top-3 right-3 z-20",children:(0,t.jsx)(w,{tenantId:e,siteId:m,currentEditionId:p?.id})}),(0,t.jsxs)("div",{className:"relative p-5",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-current/20"}),(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider opacity-70",children:"Magazine"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-current/20"})]}),(0,t.jsxs)("div",{className:"flex gap-5",children:[(0,t.jsxs)(i.default,{href:`/revues/${I}`,className:"relative flex-shrink-0 group",prefetch:!1,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/20 transform rotate-2 scale-[0.98]"}),(0,t.jsxs)("div",{className:"relative overflow-hidden shadow-xl transition-transform duration-300 group-hover:scale-[1.02] group-hover:-rotate-1",children:[(0,t.jsx)(s.LazyImage,{alt:`Couverture ${f.title}`,className:"h-[200px] w-[140px] object-cover",src:(0,N.s)(f.imageUrl),cdnWidth:N.E.small,cdnSizes:"150px"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-tr from-transparent via-white/0 to-white/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]})]}),(0,t.jsx)(z,{description:b,issueDate:j,issueNumber:f.number||"N/A",publicationName:f.publicationName,title:f.title||"Magazine"})]}),(0,t.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,t.jsx)(i.default,{className:"flex-1",href:`/revues/${I}/lire`,prefetch:!1,children:(0,t.jsxs)(r.f,{className:"h-10 w-full gap-2 border-current/30 bg-current/10 text-sm text-current backdrop-blur-sm hover:bg-current/20 hover:border-current/50 transition-all duration-200",variant:"outline",children:[(0,t.jsx)(c.f,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:"Lire un extrait"})]})}),(0,t.jsx)(i.default,{className:"flex-1",href:`/revues/${I}`,prefetch:!1,children:(0,t.jsxs)(r.f,{className:"h-10 w-full gap-2 bg-white text-sm text-[var(--avivre-secondary)] font-medium hover:bg-white/90 transition-all duration-200 shadow-md",children:[(0,t.jsx)(d.f,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:"Acheter"})]})})]})]})]})}],250708)},51348,e=>{"use strict";var t=e.i(843476),a=e.i(997495),r=e.i(817259),i=e.i(271645),s=e.i(846696),l=e.i(72790);e.s(["default",0,function({title:e="Osez la newsletter !",description:n="Un tour d'horizon des actualités de votre magazine A Vivre. <span className='font-medium'>Osez l'architecture !</span>",ctaText:o="Oui, je veux la recevoir"}){let[c,d]=(0,i.useState)(""),[m,u]=(0,i.useState)(""),[g,x]=(0,i.useState)(""),[p,h]=(0,i.useState)(""),[v,f]=(0,i.useState)(!1),[b,j]=(0,i.useState)(!1),N=r.api.newsletterAutomation.initiateDoubleOptIn.useMutation(),w=async e=>{if(e.preventDefault(),!c.trim())return void s.toast.error("Veuillez saisir votre adresse email");if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(c.trim()))return void s.toast.error("Veuillez saisir une adresse email valide");f(!0);try{let e=await N.mutateAsync({email:c.trim(),firstName:m.trim()||void 0,lastName:g.trim()||void 0,honeypot:p||void 0});s.toast.success(e.message),d(""),u(""),x("")}catch(e){console.error("Newsletter subscription error:",e),s.toast.error(e?.message||"Une erreur est survenue lors de l'inscription")}finally{f(!1)}};return(0,t.jsxs)("form",{onSubmit:w,className:"flex flex-col justify-center text-white dark:text-white",children:[(0,t.jsxs)("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:1,height:1,overflow:"hidden"},children:[(0,t.jsx)("label",{htmlFor:"nl-website",children:"Site web"}),(0,t.jsx)("input",{autoComplete:"off",id:"nl-website",name:"website",onCh
1ange:e=>h(e.target.value),tabIndex:-1,type:"text",value:p})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center bg-zinc-800 dark:bg-zinc-900",children:[(0,t.jsx)("h2",{className:"w-full items-center justify-center self-start bg-zinc-500 dark:bg-zinc-700 py-3 text-center text-xl",children:e}),(0,t.jsxs)("article",{className:"flex flex-col items-center p-5",children:[(0,t.jsx)("p",{className:"text-center text-base leading-6 mb-4",dangerouslySetInnerHTML:{__html:n}}),(0,t.jsxs)("div",{className:"w-11/12 max-w-full space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-white/90 dark:text-zinc-100",htmlFor:"email",children:["Adresse email ",(0,t.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,t.jsx)("input",{"aria-label":"Adresse email",className:(0,a.c)("h-[48px] w-full border-2 border-white/20 bg-white dark:bg-zinc-700 dark:border-zinc-600","px-4 text-base text-zinc-800 dark:text-zinc-100 placeholder:text-sm placeholder:text-zinc-400 dark:placeholder:text-zinc-500","transition-all duration-200","focus:border-[var(--avivre-primary)] dark:focus:border-[var(--avivre-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--avivre-primary)]/20 dark:focus:ring-[var(--avivre-primary)]/30","hover:border-white/30 dark:hover:border-zinc-500","disabled:cursor-not-allowed disabled:opacity-50"),id:"email",placeholder:"[email protected]",type:"email",value:c,onChange:e=>{let t=e.target.value;d(t),t.trim()&&j(!0)},onFocus:()=>{j(!0)},disabled:v,required:!0})]}),(0,t.jsxs)("div",{className:(0,a.c)("space-y-6 transition-all duration-300 ease-in-out overflow-hidden",b?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-white/90 dark:text-zinc-100",htmlFor:"firstName",children:["Prénom ",(0,t.jsx)("span",{className:"text-white/60 dark:text-zinc-400",children:"(optionnel)"})]}),(0,t.jsx)("input",{"aria-label":"Prénom",className:(0,a.c)("h-[48px] w-full border-2 border-white/20 bg-white dark:bg-zinc-700 dark:border-zinc-600","px-4 text-base text-zinc-800 dark:text-zinc-100 placeholder:text-sm placeholder:text-zinc-400 dark:placeholder:text-zinc-500","transition-all duration-200","focus:border-[var(--avivre-primary)] dark:focus:border-[var(--avivre-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--avivre-primary)]/20 dark:focus:ring-[var(--avivre-primary)]/30","hover:border-white/30 dark:hover:border-zinc-500","disabled:cursor-not-allowed disabled:opacity-50"),id:"firstName",placeholder:"Votre prénom",type:"text",value:m,onChange:e=>u(e.target.value),disabled:v})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-white/90 dark:text-zinc-100",htmlFor:"lastName",children:["Nom ",(0,t.jsx)("span",{className:"text-white/60 dark:text-zinc-400",children:"(optionnel)"})]}),(0,t.jsx)("input",{"aria-label":"Nom",className:(0,a.c)("h-[48px] w-full border-2 border-white/20 bg-white dark:bg-zinc-700 dark:border-zinc-600","px-4 text-base text-zinc-800 dark:text-zinc-100 placeholder:text-sm placeholder:text-zinc-400 dark:placeholder:text-zinc-500","transition-all duration-200","focus:border-[var(--avivre-primary)] dark:focus:border-[var(--avivre-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--avivre-primary)]/20 dark:focus:ring-[var(--avivre-primary)]/30","hover:border-white/30 dark:hover:border-zinc-500","disabled:cursor-not-allowed disabled:opacity-50"),id:"lastName",placeholder:"Votre nom",type:"text",value:g,onChange:e=>x(e.target.value),disabled:v})]})]})]}),(0,t.jsx)("div",{className:"w-11/12 max-w-full",children:(0,t.jsx)(l.f,{className:"mt-6 w-full max-w-xs bg-zinc-600 hover:bg-zinc-400 dark:bg-zinc-700 dark:hover:bg-zinc-500 text-white",variant:"outline",type:"submit",disabled:v,children:v?"Traitement...":o})})]})]})]})}])},774042,e=>{"use strict";var t=e.i(843476),a=e.i(72790),r=e.i(522016),i=e.i(997495),s=e.i(803604),l=e.i(324119);let n=({src:e,alt:a,size:r="md"})=>(0,t.jsx)(s.LazyImage,{alt:a,className:(0,i.c)("shrink-0 rounded-full bg-zinc-200 object-cover ring-2 ring-white shadow-sm","sm"===r?"w-12 h-12":"w-16 h-16"),src:e}),o={instagram:{primary:"#E1306C",gradient:"bg-gradient-to-tr from-[#FCAF45] via-[#E1306C] to-[#833AB4]",header:"#E1306C",headerLight:"#F5D0DC",button:"bg-gradient-to-r from-[#833AB4] via-[#E1306C] to-[#FCAF45]"},pinterest:{primary:"#E60023",gradient:"bg-[#E60023]",header:"#E60023",headerLight:"#FECDD3",button:"bg-[#E60023] hover:bg-[#C4001D]"}},c=({profile:e,posts:c,buttonText:d,buttonColor:m,platform:u,icon:g})=>{let x=o[u],p=c.slice(0,6);if(0===p.length)return null;let h=[...p];for(;h.length<6;)h.push({id:`placeholder-${h.length}`,imageUrl:"/images/placeholder.svg",caption:""});let v=e.profileUrl||("instagram"===u?`https://instagram.com/${e.username}`:`https://pinterest.com/${e.username}`);return(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden bg-white dark:bg-zinc-800",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-3 px-4",style:{backgroundColor:x.header},children:[(0,t.jsx)(g,{className:"h-5 w-5 text-white"}),(0,t.jsx)("h2",{className:"text-lg font-medium text-white tracking-wide",children:"instagram"===u?"Instagram":"Pinterest"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 bg-gray-50 dark:bg-zinc-700 border-b border-gray-100 dark:border-zinc-600",children:[e.profileImageUrl?(0,t.jsx)(n,{alt:`${e.username} profile`,src:e.profileImageUrl,size:"sm"}):(0,t.jsx)("div",{className:(0,i.c)("w-12 h-12 shrink-0 rounded-full flex items-center justify-center","instagram"===u?"bg-pink-100 dark:bg-pink-900/30":"bg-red-100 dark:bg-red-900/30"),children:(0,t.jsx)(g,{className:(0,i.c)("h-6 w-6","instagram"===u?"text-[#E1306C]":"text-[#E60023]")})}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)(r.default,{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-semibold text-gray-900 dark:text-white hover:underline truncate",children:"instagram"===u?`@${e.username}`:e.username}),e.followerCount&&(0,t.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[(0,t.jsx)("span",{className:"font-medium",children:e.followerCount})," abonnés"]}
1)]})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-0.5 p-0.5 bg-gray-100 dark:bg-zinc-700",children:h.slice(0,6).map((e,a)=>(0,t.jsxs)(r.default,{href:e.permalink||v,target:"_blank",rel:"noopener noreferrer",className:"aspect-square overflow-hidden relative group",children:[(0,t.jsx)(s.LazyImage,{alt:e.caption||`${u} post ${a+1}`,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-110",src:(0,l.s)(e.imageUrl),cdnWidth:l.E.small}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-all duration-200 flex items-center justify-center opacity-0 group-hover:opacity-100",children:(0,t.jsx)(g,{className:"h-6 w-6 text-white drop-shadow-lg"})})]},e.id))}),(0,t.jsx)("div",{className:"p-3 bg-white dark:bg-zinc-800",children:(0,t.jsx)(r.default,{href:v,target:"_blank",rel:"noopener noreferrer",className:"block",children:(0,t.jsxs)(a.f,{className:(0,i.c)("w-full items-center justify-center gap-2 py-2.5 text-center font-medium text-white text-sm",x.button,"transition-all duration-200 hover:opacity-90 hover:shadow-md"),children:[(0,t.jsx)(g,{className:"h-4 w-4"}),d]})})})]})},d=({className:e})=>
1(0,t.jsx)("svg",{className:e,fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),m=({className:e})=>
1(0,t.jsx)("svg",{className:e,fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.174-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.749.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.402.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.357-.629-2.747-1.378 0 0-.599 2.282-.744 2.84-.282 1.084-1.064 2.456-1.549 3.235C9.584 23.815 10.77 24.001 12.017 24.001c6.624 0 11.99-5.367 11.99-11.987C24.007 5.367 18.641.001.012.017z"})});e.s(["InstagramIcon",0,d,"InstagramWidget",0,({profile:e,posts:a})=>e.username||0!==a.length?(0,t.jsx)(c,{profile:e,posts:a,buttonText:"Suivre sur Instagram",buttonColor:o.instagram.button,platform:"instagram",icon:d}):null,"PinterestIcon",0,m,"PinterestWidget",0,({profile:e,pins:a})=>e.username||0!==a.length?(0,t.jsx)(c,{profile:e,posts:a,buttonText:"Suivre sur Pinterest",buttonColor:o.pinterest.button,platform:"pinterest",icon:m}):null,"SocialWidget",0,c,"default",0,c])},780662,e=>{"use strict";let t="actus";e.s(["f",0,function(e,a){return`/articles/${encodeURIComponent("string"!=typeof a?t:a.trim().toLowerCase()||t)}/${encodeURIComponent(e)}`}])},663041,e=>{"use strict";var t=e.i(271645),a=e.i(817259),r=e.i(570932);e.s(["f",0,function(){let e=(0,r.U)(),{data:i}=a.api.magazineSubscriptions.getMySubscriptions.useQuery(void 0,{enabled:!!e.data?.user,retry:!1,refetchOnWindowFocus:!1,staleTime:3e5});return(0,t.useMemo)(()=>(i??[]).some(e=>"ACTIVE"===e.status),[i])}])},803604,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(997495),i=e.i(127112),s=e.i(456174);let l=[200,400,640,800,1200,1600];e.s(["LazyImage",0,function({src:e,alt:n,fallbackSrc:o=r._,className:c,cdnWidth:d,cdnSizes:m,...u}){let{cdnImageUrl:g,cdn:x}=(0,i.f)(),p="string"==typeof e&&d?g(e,d):(0,s.t)("string"==typeof e?e:void 0,x)||e,[h,v]=(0,a.useState)(p),[f,b]=(0,a.useState)(!1),j=(0,a.useRef)(null);(0,a.useEffect)(()=>{v(p),b(!1)},[p]),(0,a.useEffect)(()=>{let e=j.current;e&&e.complete&&0===e.naturalWidth&&!f&&(v(o),b(!0))},[f,o]);let N=e=>{if(!m||!d||!/[?&]w=\d+/.test(e))return;let t=l.filter(e=>e<=2*d);if(!(t.length<2))return t.map(t=>`${e.replace(/([?&])w=\d+/,`$1w=${t}`)} ${t}w`).join(", ")},w="string"==typeof h?N(h):void 0,y=(0,t.jsx)("img",{ref:j,alt:n,className:c,loading:"lazy",onError:()=>{f||(v(o),b(!0))},src:h,srcSet:w,sizes:w?m:void 0,...u}),z="string"==typeof h&&/\/api\/s3\/images\//.test(h)&&/[?&]fmt=webp/.test(h)?h.replace(/([?&])fmt=webp/,"$1fmt=avif"):null;if(!z)return y;let k=N(z)??z;return(0,t.jsxs)("picture",{style:{display:"contents"},children:[(0,t.jsx)("source",{srcSet:k,sizes:w?m:void 0,type:"image/avif"}),y]})}])},332517,e=>{"use strict";var t=e.i(570932);let a=["files:read:self","products:read","bookableProjects:read"];e.s(["f",0,function(){let e=(0,t.U)();return{hasPermission:t=>!!e?.data?.user||a.includes(t),hasRole:(t,a)=>(function(e,t,a){if("guest"===t)return!0;if(!e?.data?.user)return!1;let r=e.data.user,i=t.toLowerCase();if(r.role&&"string"==typeof r.role&&r.role.split(";").map(e=>e.trim().toLowerCase()).includes(i)||r.roles&&Array.isArray(r.roles)&&r.roles.some(e=>e.name?.toLowerCase()===i))return!0;if(!a){let e=(r.role||"").toLowerCase();if(e.includes("superadmin")||e.includes("admin"))return!0}return!1})(e,t,a)}}])},288399,e=>{"use strict";Object.prototype.hasOwnProperty;var t={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",Agrave:"À",agrave:"à",Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",Aring:"Å",aring:"å",Ccedil:"Ç",ccedil:"ç",Egrave:"È",egrave:"è",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Euml:"Ë",euml:"ë",Igrave:"Ì",igrave:"ì",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",Iuml:"Ï",iuml:"ï",Ntilde:"Ñ",ntilde:"ñ",Ograve:"Ò",ograve:"ò",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",Ugrave:"Ù",ugrave:"ù",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Uuml:"Ü",uuml:"ü",Yuml:"Ÿ",yuml:"ÿ",OElig:"Œ",oelig:"œ",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",mdash:"—",ndash:"–",hellip:"…",bull:"•",middot:"·",trade:"™",copy:"©",reg:"®",euro:"€",pound:"£",yen:"¥",deg:"°",times:"×",divide:"÷",plusmn:"±",frac12:"½",frac14:"¼",frac34:"¾",sup2:"²",sup3:"³"};function a(e){return e?e.replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>{let a=Number.parseInt(t,16);return Number.isNaN(a)?e:String.fromCodePoint(a)}).replace(/&#(\d+);/g,(e,t)=>{let a=Number.parseInt(t,10);return Number.isNaN(a)?e:String.fromCodePoint(a)}).replace(/&([a-zA-Z][a-zA-Z0-9]*);/g,(e,a)=>t[a]??e):""}e.s(["B",0,a,"c",0,function(e,t={}){if(!e)return"";let{maxLength:r,brSeparator:i=" "}=t,s=a(e).replace(/<br\s*\/?>/gi,i).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();return r&&s.length>r?`${s.slice(0,r).trimEnd()}…`:s}])}]);

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.