PageSourceSearch

https://www.harpersbazaar.fr/front/site/scripts/3537.fa0ccf33c8859b59745b.js

js harpersbazaar.fr collected 2026-10-02 05:43:10 UTC 22,003 bytes, 2 lines download raw bytes

1(self.webpackChunkone_website=self.webpackChunkone_website||[]).push([[3537],{319(){},335(e,t,s){"use strict";(new(s(4714).A)).init()},338(){},415(e,t,s){"use strict";s(706),s(319),s(4688),s(5668),s(8250),s(9490),s(5498),s(5256),s(3193),s(5808),s(335)},619(e,t,s){"use strict";(new(s(4614).A)).init()},706(){},867(e,t,s){"use strict";s.d(t,{A:()=>n});var i=s(5896);function n({name:e,attributes:t={},srOnlyText:s="",useDefaultAttributes:n=!0}){const r={"aria-hidden":(!0).toString(),focusable:(!1).toString()};delete t.className,delete t.class;const a=n?Object.assign({},r,t||{}):t,o=(0,i.Y)("svg",{className:`icon icon-${e}`,...a,children:(0,i.Y)("use",{href:`#${e}`})});return s?(0,i.FD)(i.FK,{children:[(0,i.Y)("span",{className:"sr-only",children:s}),o]}):o}},875(){},1273(e,t,s){"use strict";s.d(t,{A:()=>r});var i=s(5896),n=s(867);s(7810),s(7097);class r{element;carousel;prevButton;nextButton;scrollBy;hasOverflow;isBrowserUpdatingFrame;constructor(e){this.element=e,this.carousel=e?.querySelector("[data-carouselLinks-target]"),this.prevButton,this.nextButton,this.scrollBy=200,this.isBrowserUpdatingFrame=!1,this.hasOverflow=Boolean(this.carousel&&this.carousel.scrollWidth>this.carousel.clientWidth),this.toggleScroller=this.toggleScroller.bind(this),this.initScroller=this.initScroller.bind(this),this.scrollToLeft=this.scrollToLeft.bind(this),this.scrollToRight=this.scrollToRight.bind(this),this.onScroll=this.onScroll.bind(this)}init(){this.hasOverflow&&(this.createNavigationButtons(),this.initScroller(),this.addEvents(),this.setCarouselAttributes())}addEvents(){this.carousel?.addEventListener("scroll",this.onScroll,{passive:!0}),this.prevButton?.addEventListener("click",this.scrollToLeft),this.nextButton?.addEventListener("click",this.scrollToRight)}onScroll(){this.isBrowserUpdatingFrame||(requestAnimationFrame(this.toggleScroller),this.isBrowserUpdatingFrame=!0)}scrollToLeft(){this.carousel?.scrollBy({left:-1*this.scrollBy,behavior:"smooth"})}scrollToRight(){this.carousel?.scrollBy({left:this.scrollBy,behavior:"smooth"})}initScroller(){this.element&&(this.element.classList.toggle("canScrollRight",!this.isScrollEnd),this.element.classList.toggle("canScrollLeft",!this.isScrollStart))}toggleScroller(){this.element?.classList.toggle("canScrollRight",!this.isScrollEnd),this.element?.classList.toggle("canScrollLeft",!this.isScrollStart),this.isBrowserUpdatingFrame=!1}setCarouselAttributes(){this.element?.setAttribute("data-carousel",""),this.carousel?.setAttribute("aria-live","polite"),this.carousel?.setAttribute("role","tablist")}get isScrollStart(){return 0===this.carousel?.scrollLeft}get isScrollEnd(){if(this.carousel){const{scrollLeft:e,clientWidth:t,scrollWidth:s}=this.carousel;return Math.ceil(e+t+2)>=s}return!1}createNavigationButtons(){const e=this.createButton({type:"prev",title:"Slide précédente",svg:(0,n.A)({name:"chevronLeft"})}),t=this.createButton({type:"next",title:"Slide suivante",svg:(0,n.A)({name:"chevronRight"})});this.element?.insertAdjacentElement("afterbegin",t),this.element?.insertAdjacentElement("afterbegin",e),this.prevButton=this.element?.querySelector(".carouselLinks-nav.prev"),this.nextButton=this.element?.querySelector(".carouselLinks-nav.next")}createButton({type:e,title:t,svg:s}){const n=(0,i.Y)("button",{type:"button",title:t,className:`carouselLinks-navButton ${e}`}),r=(0,i.Y)("div",{className:`carouselLinks-nav ${e}`,children:n});return n.appendChild(s),r}}},1500(){},1599(){},1698(e,t,s){"use strict";s(1500);(new(s(9049).A)).init()},1819(e,t,s){"use strict";s(8524),s(8295),s(7097),s(9891),s(2581)},2203(e,t,s){"use strict";s.d(t,{A:()=>i});class i{async getProfile(){return new Promise((e,t)=>{window.pmcstarter(async s=>{try{const t=await s.getProfile();e(t)}catch(e){console.warn("PmcBridge::getProfile error",e),t(e)}})})}async updateProfile({datas:e}){return new Promise((t,s)=>{window.pmcstarter(async i=>{try{const s=await i.getApiModule(),n=await s.updateProfile(e);t(n)}catch(e){console.warn("PmcBridge::updateProfile error",e),s(e)}})})}async isGranted(){return new Promise((e,t)=>{window.pmcstarter(async s=>{try{const t=(await s.getRoles()||[]).some(e=>["ADMIN","ALIVE"].includes(e));e(t)}catch(e){console.warn("PmcBridge::isGranted error",e),t(e)}})})}async getConfig(){return new Promise(e=>{window.pmcstarter(t=>e(t.config))})}async getPmcDomain(){return new Promise(e=>{window.pmcstarter(async t=>e(t.config.pmcUris.brandConnect))})}}},2211(e,t,s){"use strict";s.d(t,{A:()=>i});class i{parentContainer;firstFocusableElement;focusableElements;focusableContent;lastFocusableElement;firstActiveElementToFocus;lastFocusableElementOriginalValue;constructor({parentContainer:e,firstFocusableElement:t,lastFocusableElement:s,firstActiveElementToFocus:i=!1}){this.parentContainer=e,this.firstFocusableElement=t,this.focusableElements='button:not([disabled]), [href]:not(use), input, select, textarea, [tabindex]:not
1([tabindex="-1"])',this.focusableContent=[...this.parentContainer.querySelectorAll(this.focusableElements)],this.lastFocusableElement=s,this.firstActiveElementToFocus=i,this.updateFocusableContent=this.updateFocusableContent.bind(this)}init(){this.addEvents(),this.firstActiveElementToFocus instanceof HTMLElement?this.firstActiveElementToFocus.focus():this.firstFocusableElement.focus()}addEvents(){document.addEventListener("keydown",this.updateFocusableContent)}updateFocusableContent(e){this.focusableContent=[...this.parentContainer.querySelectorAll(this.focusableElements)];const t=this.focusableContent[this.focusableContent.length-1];this.lastFocusableElementOriginalValue=this.lastFocusableElement,!this.focusableContent.includes(this.lastFocusableElement)&&t instanceof HTMLElement&&(this.lastFocusableElement=t),this.setFocus(e)}setFocus(e){"Tab"!==e.key&&9!==e.keyCode||this.isTabPressed(e),this.lastFocusableElementOriginalValue&&(this.lastFocusableElement=this.lastFocusableElementOriginalValue)}isTabPressed(e){e.shiftKey?this.focusBackward(e):this.focusForward(e)}focusBackward(e){document.activeElement===this.firstFocusableElement&&(e.preventDefault(),this.lastFocusableElement.focus())}focusForward(e){document.activeElement===this.lastFocusableElement&&(e.preventDefault(),this.firstFocusableElement.focus())}destroy(){document.removeEventListener("keydown",this.setFocus)}}},2381(){},2581(e,t,s){"use strict";s(3193),s(7097),s(3387),s(9229),s(8767)},2733(e,t,s){"use strict";s.d(t,{A:()=>i});class i{brandConfigElement;commonConfigElement;constructor(){this.brandConfigElement=document.getElementById("brandConfig"),this.commonConfigElement=document.getElementById("commonConfig")}get common(){if(this.commonConfigElement)try{const e=this.commonConfigElement.textContent;return e&&""!==e.trim()?JSON.parse(e):null}catch(e){return console.error("Error parsing #commonConfig textContent:",e),null}return null}get brand(){if(this.brandConfigElement)try{const e=this.brandConfigElement.textContent;return e&&""!==e.trim()?JSON.parse(e):null}catch(e){return console.error("Error parsing #brandConfig textContent:",e),null}return null}}},3114(e,t,s){"use strict";s.d(t,{A:()=>n});var i=s(4342);class n{menuUser;pmcBridge;isUserConnected;menuUserTrigger;avatarUrl;constructor(){this.menuUser=document.querySelector(".menuUser"),this.pmcBridge=new i.A,this.isUserConnected=!1,this.menuUserTrigger=this.menuUser?.querySelector(".menuUser-trigger.user"),this.avatarUrl="",this.setMenuUserConnected=this.setMenuUserConnected.bind(this),this.showMenuTrigger=this.showMenuTrigger.bind(this),this.showUserAvatar=this.showUserAvatar.bind(this),this.toggleMenu=this.toggleMenu.bind(this)}
1async init(){const[e,t]=await Promise.all([this.pmcBridge.isConnected(),this.pmcBridge.getAvatar()]);this.isUserConnected=e,this.avatarUrl=t,this.showMenuTrigger(),this.isUserConnected&&this.setMenuUserConnected(),this.addEvents()}addEvents(){this.menuUserTrigger?.addEventListener("click",this.toggleMenu)}setMenuUserConnected(){this.menuUser?.classList.add("isConnected"),this.updateAccountLinks(),this.avatarUrl&&this.showUserAvatar(this.avatarUrl)}showMenuTrigger(){this.menuUser?.classList.add("authStatusLoaded")}toggleMenu(){this.menuUser?.classList.toggle("opened")}async updateAccountLinks(){const e=this.menuUser?.querySelectorAll("[data-pmc-link]")??[],t=await this.pmcBridge.getPmcDomain(),s=await this.pmcBridge.getAllSubscriptions();s.includes("paid-web-content")&&this.menuUser?.classList.add("isUserSubscribedWeb"),s.includes("paid-web-magazine")&&this.menuUser?.classList.add("isUserSubscribedMagazine");for(const s of e){const e=s.getAttribute("data-pmc-link");s.setAttribute("href",`${t}/${e}`)}}showUserAvatar(e){const t=this.menuUserTrigger?.querySelector(".menuUser-triggerLabel");if(t&&e){const s=document.createElement("img");s.setAttribute("src",e),s.setAttribute("class","menuUser-triggerAvatar"),s.setAttribute("aria-hidden","true"),s.setAttribute("alt","avatar"),t.parentNode?.insertBefore(s,t),this.menuUser?.classList.add("hasAvatar")}}}},3163(e,t,s){"use strict";s(619)},3193(){},3387(){},4342(e,t,s){"use strict";s.d(t,{A:()=>r});var i=s(7793),n=s(2203);class r extends n.A{async getProfileId(){return new Promise(e=>{window.pmcstarter(async t=>{const s=await t.getProfileId();e(s)})})}async isConnected(){return new Promise(e=>{window.pmcstarter(async t=>{const s=await t.isConnected();e(s)})})}async getConfigEnv(){return new Promise(e=>{window.pmcstarter(t=>{e(t.config.env)})})}async hasPassPrisma(){const e=await this.getConfigEnv(),t="prod"===e?"":`${e}-`;return!!(0,i.A)(`${t}pmc-premium`)}async getAllSubscriptions(){return new Promise(e=>{window.pmcstarter(async t=>{const s=await t.getProfile();if(s){const t=s?.paymentSubscriptions?.rights;e(t)}else e([])})})}async hasSubscription(){return new Promise(e=>{window.pmcstarter(async t=>{const s=await t.getProfile();if(s){const t=s?.paymentSubscriptions?.rights?.filter(e=>"paid-web-content"===e||"paid-web-magazine"===e);e(!!t?.length)}else e(!1)})})}async getAvatar(){return new Promise((e,t)=>{window.pmcstarter(async s=>{try{const t="##DEFAULT_AVATAR##",i=await s.getAvatar(t);e(i!==t&&i)}catch(e){console.warn("PMCBridge::getAvatar error",e),t(e)}})})}}},4488(e,t,s){"use strict";function i({target:e,selectorString:t,nodeName:s}){return(Array.isArray(s)?s:[s]).some(s=>e.nodeName.toLowerCase()===s&&e.matches(t))}s.d(t,{A:()=>i})},4614(e,t,s){"use strict";s.d(t,{A:()=>n});var i=s(1273);class n{headerNavbar;constructor(){this.headerNavbar=document.querySelector(".headerNavbar-scrollWrapper")}init(){if(this.headerNavbar){new i.A(this.headerNavbar).init()}}}},4648(e,t,s){"use strict";s.d(t,{A:()=>a});let i=!1;const n=[],r=()=>{for(const e of n)e();i=!1},a=e=>{n.push(e),window.addEventListener("scroll",o,{passive:!0})},o=()=>{i||(requestAnimationFrame(r),i=!0)}},4688(){},4714(e,t,s){"use strict";s.d(t,{A:()=>a});var i=s(6377),n=s(2211),r=s(4488);class a{navigationPanel;panelTriggers;triggerToFocusAfterClosing;id;hash;constructor(){this.navigationPanel=document.querySelector(".navigationPanel"),this.id=this.navigationPanel?.getAttribute("id")??"menu",this.hash=`#${this.id}`,this.panelTriggers=document.querySelectorAll(`[aria-labelledby="${this.id}"]`),this.triggerToFocusAfterClosing=null,this.togglePanel=this.togglePanel.bind(this),this.onEscapePress=this.onEscapePress.bind(this),this.onPanelClick=this.onPanelClick.bind(this),this.onTriggerClick=this.onTriggerClick.bind(this),this.toggleDropdown=this.toggleDropdown.bind(this)}init(){this.navigationPanel&&(window.location.hash===this.hash&&this.openPanel(),this.addEvent(),this.initFocusTrap())}addEvent(){for(const e of this.panelTriggers)e.addEventListener("click",this.onTriggerClick);this.navigationPanel?.addEventListener("click",this.onPanelClick),window.addEventListener("keydown",this.onEscapePress)}onEscapePress(e){this.isOpen&&"Escape"===e.key&&this.closePanel()}onPanelClick(e){if(e.target instanceof HTMLButtonElement){(0,r.A)({target:e.target,selectorStr
1ing:".navigationPanel-navigationItemDropdownButton",nodeName:["button"]})&&this.toggleDropdown(e.target)}e.target===this.navigationPanel&&this.closePanel()}toggleDropdown(e){const t=e.closest(".navigationPanel-navigationItem");t?.classList.toggle("isOpen");const s=t?.classList.contains("isOpen");e.setAttribute("aria-label",s?"Fermer le sous-menu":"Ouvrir le sous-menu")}onTriggerClick(e){this.isOpen||i.A.sendEvent(this.TrackingMenuBurgerOpen),e.currentTarget instanceof HTMLButtonElement&&(this.triggerToFocusAfterClosing=e.currentTarget),this.togglePanel()}togglePanel(){this.isOpen?this.closePanel():this.openPanel()}closePanel(){this.navigationPanel&&(history.replaceState(null,"",window.location.pathname),this.updateUi(),this.triggerToFocusAfterClosing&&(this.triggerToFocusAfterClosing.focus(),this.triggerToFocusAfterClosing=null))}openPanel(){this.navigationPanel&&(window.location.hash=this.hash,this.updateUi())}updateUi(){if(this.navigationPanel){for(const e of this.panelTriggers)e.classList.toggle("isActive",this.isOpen),e.setAttribute("aria-label",this.isOpen?"Fermer le menu de navigation":"Ouvrir le menu de navigation");this.navigationPanel.classList.toggle("isOpen",this.isOpen),document.body.classList.toggle("isScrollLocked",this.isOpen)}}initFocusTrap(){if(!this.navigationPanel)return;const e=Array.from(this.navigationPanel.querySelectorAll("a, button")),t=e.at(0),s=e.at(-1);if(t&&s){new n.A({parentContainer:this.navigationPanel,firstFocusableElement:t,lastFocusableElement:s}).init()}}get TrackingMenuBurgerOpen(){return{event:"navigation_click",navigation_type:"menu-burger",navigation_name:"menu-burger-open"}}get isOpen(){return window.location.hash===this.hash}}},4890(){},5054(e,t,s){"use strict";(new(s(5765).A)).init()},5080(e,t,s){"use strict";s(5896),s(867)},5168(e,t,s){"use strict";s(1698)},5256(){},5498(){},5668(){},5765(e,t,s){"use strict";s.d(t,{A:()=>n});var i=s(4648);class n{header;rootElement;lastScrollTop;scrollThreeshold;constructor(){this.header=document.querySelector(".header"),this.rootElement=document.documentElement,this.lastScrollTop=0,this.scrollThreeshold=100,this.toggleHeaderUI=this.toggleHeaderUI.bind(this)}init(){this.header&&this.addEvents()}addEvents(){(0,i.A)(this.toggleHeaderUI)}toggleHeaderUI(){if(!this.header)return;const{scrollY:e}=window,t=Math.abs(e-this.lastScrollTop)>=this.scrollThreeshold;this.header.classList.toggle("isSticky",e>this.scrollThreeshold),t&&(this.header.classList.toggle("isSticky-active",this.lastScrollTop>e),this.rootElement.classList.toggle("headerIsStickyActive",this.lastScrollTop>e),this.lastScrollTop=e),this.rootElement.classList.toggle("headerIsSticky",e>this.scrollThreeshold)}}},5808(e,t,s){"use strict";s(5080),s(7240)},6044(){},6377(e,t,s){"use strict";s.d(t,{A:()=>i});class i{entries;observer;constructor(e){this.entries=e,this.handleElementIntersecting=this.handleElementIntersecting.bind(this),this.observer=new IntersectionObserver(this.handleElementIntersecting),this.addEvents=this.addEvents.bind(this),this.handleElementClick=this.handleElementClick.bind(this),this.observeElement=this.observeElement.bind(this),this.handleElementIntersecting=this.handleElementIntersecting.bind(this)}init(){Array.isArray(this.entries)?this.entries.forEach(this.addEvents):console.error("[TrackElements] Entries should be an array")}addEvents(e){if("object"==typeof e.click&&e.element?.addEventListener("click",this.handleElementClick.bind(this,e)),"object"==typeof e.display){let t=this.observer;e.intersectionObserverOptions&&(t=new IntersectionObserver(this.handleElementIntersecting,e.intersectionObserverOptions)),this.observeElement(e,t)}}handleElementClick(e,t){const s=e.element,n=s.getAttribute("href")??"",r=n.startsWith("#"),a="_blank"===s.getAttribute("target"),o=n&&!a&&!r;"object"==typeof e.click&&(o&&(t.preventDefault(),e.click.eventCallback=()=>window.location.assign(n)),i.sendEvent(e.click))}observeElement(e,t){e.element&&(e.element._trackingEvent=e.display,t.observe(e.element))}handleElementIntersecting(e,t){e.forEach(e=>{e.isIntersecting&&(i.sendEvent(e.target._trackingEvent),t.unobserve(e.target))})}static sendEvent(e){window.dataLayer.push(e)}}},6523(){},7097(){},7240(){},7793(e,t,s){"use strict";function i(e){const t=document.cookie.split(";"),s=t.map(e=>e.split("=")[1].trim())[t.map(e=>e.split("=")[0].trim()).indexOf(e)];return void 0===s?null:s}s.d(t,{A:()=>i})},7810(){},8076(){},8250(){},8295(e,t,s){"use strict";(new(s(9314).A)).init()}
1,8304(e,t,s){"use strict";s(706),s(319),s(4688),s(5668),s(8250),s(9490),s(5498),s(5256)},8524(e,t,s){"use strict";s(5080)},8546(e,t,s){"use strict";s.d(t,{A:()=>n});var i=s(2203);s(338),s(2381),s(1599),s(4890),s(6044),s(875),s(6523),s(8076),s(9461);class n{defaultSignUpService;brandLegalLink;customRoutes;isOpenGranted;routes;container;appElement;closeButton;pmcBridge;isLoaded;constructor({defaultSignUpService:e,brandLegalLink:t,customRoutes:s=[],isOpenGranted:n=()=>!0}){this.defaultSignUpService=e,this.brandLegalLink=t,this.customRoutes=s,this.isOpenGranted=n,this.routes=["/compte","/connexion","/lien-connexion","/inscription","/reinitialisation","/finalisation",...this.customRoutes.map(e=>e.path)],this.container=document.querySelector(".userLoginTunnel"),this.appElement=document.querySelector(".userLoginTunnel-app"),this.closeButton=this.container.querySelector(".userLoginTunnel-close"),this.isLoaded=!1,this.pmcBridge=new i.A,this.onHashChange=this.onHashChange.bind(this),this.onUserPressEscape=this.onUserPressEscape.bind(this)}init(){this.addEvents(),this.checkOpening()&&this.openPanel()}checkOpening(){const e=window.location.hash.substring(1);return this.routes.includes(e)&&this.isOpenGranted(e)}addEvents(){window.addEventListener("hashchange",this.onHashChange),document.addEventListener("insitePanel",e=>{const t=e.detail;this.appElement.dataset.dynamicProps=JSON.stringify(t),window.location.hash=t.route})}onHashChange(e){const t=e?.oldURL?e.oldURL.split("#")[1]:"",s=window.location.hash.substring(1);this.checkOpening()&&!this.appElement.hasChildNodes()?this.openPanel():!this.routes.includes(s)&&this.routes.includes(t)&&this.closePanel()}onUserPressEscape(e){"Escape"===e.key&&this.container.classList.contains("show")&&this.closeButton.dispatchEvent(new window.Event("click",{bubbles:!0}))}async openPanel(){if(document.querySelector("html").classList.add("userLoginTunnel-active"),this.container.classList.add("show"),window.addEventListener("keydown",this.onUserPressEscape),!this.isLoaded&&!this.appElement.hasChildNodes()){this.isLoaded=!0;const{default:e}=await Promise.all([s.e(8674),s.e(3677)]).then(s.bind(s,825));new e({defaultSignUpService:this.defaultSignUpService,brandLegalLink:this.brandLegalLink,customRoutes:this.customRoutes}).init()}}closePanel(){document.querySelector("html").classList.remove("userLoginTunnel-active"),this.container.classList.remove("show"),window.removeEventListener("keydown",this.onUserPressEscape),delete this.container.dataset.ult}}},8746(){},8767(e,t,s){"use strict";(new(s(3114).A)).init()},9049(e,t,s){"use strict";s.d(t,{A:()=>a});var i=s(8546),n=s(2733),r=s(4342);class a{store;pmcBridge;isUserConnected;insitePanel;pmcAuthentification;legalLinks;trigram;defaultSignUpService;constructor(){this.store=new n.A,this.pmcBridge=new r.A,this.isUserConnected=!1,this.insitePanel=document.getElementById("insitePanel"),this.pmcAuthentification=document.getElementById("pmc-authentification"),this.insitePanel&&this.store&&this.store.brand&&(this.legalLinks=this.insitePanel.getAttribute("data-legal-links"),this.trigram=this.store.brand.metadata.trigram.toUpperCase(),this.defaultSignUpService=`${this.trigram}_COMPTE-PMC_HEADER_SITE-${this.trigram}_SE-CONNECTER`)}
1async init(){this.isUserConnected=await this.pmcBridge.isConnected(),this.addEvents(),this.initRouter()}addEvents(){this.isUserConnected||this.pmcAuthentification?.addEventListener("click",this.actionOpenPanel)}initRouter(){if(this.defaultSignUpService&&this.legalLinks){new i.A({defaultSignUpService:this.defaultSignUpService,brandLegalLink:this.legalLinks}).init()}}actionOpenPanel(){document.dispatchEvent(new window.CustomEvent("insitePanel",{detail:{route:"/compte",options:{title:"Créez gratuitement votre compte ou connectez-vous",queryVars:{redirectTo:window.location.href}}}}))}}},9120(e,t,s){"use strict";s(5054),s(1819),s(3163),s(415)},9229(){},9314(e,t,s){"use strict";s.d(t,{A:()=>r});var i=s(2733),n=s(4342);class r{headerTopbar;magazineCoverConfig;magazineCardLink;subscribeCta;PMCBrige;isUserSubscribed;store;constructor(){this.store=new i.A,this.magazineCoverConfig=this.store.brand?.magazine.cover,this.headerTopbar=document.querySelector(".headerTopbar"),this.magazineCardLink=this.headerTopbar?.querySelector(".headerTopbar-cardLink"),this.subscribeCta=this.headerTopbar?.querySelector(".headerTopbar-linksPrimarySubscribeCta"),this.PMCBrige=new n.A,this.isUserSubscribed=!1,this.updateMagazineCard=this.updateMagazineCard.bind(this),this.removeSubscribeCta=this.removeSubscribeCta.bind(this)}
1async init(){this.magazineCoverConfig&&this.injectCoverImage(this.magazineCoverConfig),this.isUserSubscribed=await this.PMCBrige.hasSubscription(),this.isUserSubscribed&&(this.updateMagazineCard(),this.removeSubscribeCta())}injectCoverImage(e){const t=this.headerTopbar?.querySelector(".headerTopbar-cardLinkImage");if(!t)return;const s="operation=fit&width=54&height=70&quality=100&crop-from=center&format=avif",i=e.includes("?")?"&":"?",n=document.createElement("img");n.sizes="54px",n.src=`${e}${i}${s}`,n.srcset=`${e}${i}${s} 54w, ${e}${i}operation=fit&width=108&height=140&quality=100&crop-from=center&format=avif 108w`,n.className="apply-ratio headerTopbar-coverImage",n.alt="",n.loading="lazy",t.appendChild(n)}updateMagazineCard(){const e=this.magazineCardLink?.getAttribute("data-subscribed-href");e&&this.magazineCardLink&&this.magazineCardLink.setAttribute("href",e)}removeSubscribeCta(){this.subscribeCta?.remove()}}},9461(){},9490(){},9891(e,t,s){"use strict";s(8746)}}]);
2//# sourceMappingURL=3537.fa0ccf33c8859b59745b.js.map

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.