PageSourceSearch

https://www.glamour.com/verso/static/130.10d681e165cdf0adbf96.js

js glamour.com collected 2026-09-24 07:26:20 UTC 5,054 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[130],{68898(e,o,t){t.d(o,{A:()=>D});var l=t(5556),a=t.n(l),n=t(96540),i=t(20312),r=t.n(i),s=t(32485),c=t.n(s),d=t(78659),h=t.n(d),g=t(24713),m=t.n(g),u=t(42426),b=t.n(u),p=t(6442),E=t(65780),f=t(82185),w=t(20104),x=t(76399),y=t(53499),C=t(14307),S=t(60663),v=t(63118),I=t(89417),L=t(78934),k=t(88258),A=t(76997),N=t(49235);const T=(0,S.Y)(()=>window.sessionStorage);let _;const B=({children:e,galleryId:o,hasDisabledCloseOnClickForLightbox:t=!1,hasPhotoBookmark:l=!0,hasSlideShow:a,hasWideGallerySlideImageColumn:i=!1,id:s,onExpand:d,moreToExploreConfig:g,shouldHoldImageSpace:u=!1,showEnlargeIcon:S=!1,showHorizontalLightboxExplore:B=!1,slides:D,slideShowVariation:G,theme:H="standard",variationName:O="Default"})=>{const P="GalleryEmbed"===O,R="listicle"===G,W=P&&B,M=()=>{(0,C.kg)({type:"close",subject:"lightbox_gallery_slide"},null,{skipDuplicateEvent:!1})},[$,z]=(0,n.useState)(-1),[q,V]=(0,n.useState)(""),[j,F]=(0,n.useState)(!0),{formatMessage:Z}=(0,p.A)(),K=e=>a&&z(h()($+e,0,D.length-1)),U=$>-1,Y=e=>{var o;"swipeClose"!==e&&("IMG"===(o=e.target).tagName||"SPAN"===o.tagName)||z(void 0),F(!0),M()},J={transform:`translate(${"listicle"===G?"0":-100*$/D.length}%)`};(0,n.useEffect)(()=>{window.Kendra.TRACK_COMPONENT.broadcast(y.G.RENDER,{name:"LightBox",variation:O})}),(0,n.useEffect)(()=>{U&&!R&&setTimeout(()=>{(e=>{const o=e?.querySelectorAll("a");o?.forEach(e=>{e.setAttribute("tabindex","-1")})})(_)},50)},[U,R]);const Q=(e,o)=>t?{}:o.reduce((o,t)=>({...o,[t]:o=>Y(e||o)}),{}),X=n.createElement(k.bB,{ButtonIcon:x.A,isGalleryEmbedVariation:P,showHorizontalLightboxExplore:B,isIconButton:!0,dataAttrs:{"data-action":"close"},label:Z(E.A.closeButtonIconLabel),onClickHandler:Y,role:"button",ariaLabel:Z(E.A.closeButtonIconLabel)});return n.createElement(N.A,{palette:H},n.createElement(k.Zv,null,n.createElement(f.A.Provider,{value:{expandHandler:e=>{const o=m()(D,{id:e});z(o),V(e),d?.()},isInSlides:e=>b()(D,{id:e}),showEnlargeIcon:S}},e),n.createElement(r(),{className:c()("lightbox "+(G?`${G}-variation`:"")),overlayClassName:{base:c()("lightbox__overlay"),afterOpen:"lightbox__overlay--open",beforeClose:"lightbox__overlay--closing"},bodyOpenClassName:"body__lightbox--open",isOpen:U,onAfterOpen:()=>{if(F(!1),P&&q){const e=`lightbox-gallery-${q}`,o=document.getElementById(e);o&&o.scrollIntoView()}},onRequestClose:()=>{z(void 0),F(!0),M()},contentRef:e=>{e&&(_=e)},closeTimeoutMS:200,contentLabel:Z(E.A.contentLabel)},!W&&X,P&&n.createElement(k.Zk,{$hasWideGallerySlideImageColumn:i,isListicleLayout:R,showHorizontalLightboxExplore:B,tabIndex:R?"0":"-1",onClickCapture:e=>{if(!B)return;const o=e.nativeEvent??e,t=(0,L.DP)(o);if(!t)return;const l=(0,L.r2)(t);l&&((0,L.yk)(o),T.setItem(v.f5,window.location.href),window.location.assign((0,I.P)(l)))},"data-testid":"gallery-embed-container"},W&&X,n.createElement(A.A,{controlsIcon:B?"ChevronRight":"Arrow",galleryId:o,gallerySlideVariation:"ItemLeft",hasPhotoBookmark:l,id:s,indexToStartOn:$,isListicleLayout:R,isInLightbox:!0,moreToExploreConfig:g,showHorizontalLightboxExplore:B,shouldHoldImageSpace:u,showGalleryEmbedCaption:!1,showZoomedImage:!0,slides:D,isModal:!0,isModalClosed:j})),!P&&n.createElement(k.Uq,{...Q("swipeClose",["onSwipeDown","onSwipeUp"]),onSwipeRight:()=>K(-1),onSwipeLeft:()=>K(1),shouldPreventDefaultEvent:!0},n.createElement(k.v$,{className:G?`${G}-variation-slide-wrapper`:"",style:J,...Q("",["onMouseDown","onTouchEnd"])},D.map(e=>n.createElement(w.A,{altText:e.image?.altText||"an image in a lightbox",...e,className:G?`${G}-variation-slide`:"",key:e.id})))),n.createElement(k.dG,null))))};B.propTypes={children:a().node.isRequired,galleryId:a().string,hasDisabledCloseOnClickForLightbox:a().bool,hasPhotoBookmark:a().bool,hasSlideShow:a().bool,hasWideGallerySlideImageColumn:a().bool,id:a().string,moreToExploreConfig:a().object,onExpand:a().func,shouldHoldImageSpace:a().bool,showEnlargeIcon:a().bool,slides:a().array.isRequired,slideShowVariation:a().string,showHorizontalLightboxExplore:a().bool,theme:a().string,variationName:a().oneOf(["GalleryEmbed","Default"])};const D=({Component:e,...o})=>t=>n.createElement(B,{...o},n.createElement(e,{...t}))},23273(e,o,t){t.d(o,{fh:()=>n});const l=e=>null!=e&&String(e)?String(e).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ø/g,"o").replace(/['']/g,"").replace(/[’‘]/g," ").replace(/[&+=/]/g," ").replace(/\s+/g," ").trim():"",a=e=>e.split(/\s+/).filter(e=>e.length>0),n=(e,o)=>{if(!o||!e.label)return!0;const t=l(o.trim()),n=l(e.label);if(!t)return!0;const i=n.split(/[.,;
1:!?\-_\s&+=/'']+/).filter(Boolean),r=a(t);if(n.startsWith(t))return!0;if(i.some(e=>e.startsWith(t)))return!0;if(r.length>1)for(let e=0;e<=i.length-r.length;e++){const o=i.slice(e,e+r.length);if(r.every((e,t)=>o[t]&&o[t].startsWith(e)))return!0}if(1===r.length&&i.length>1){const[e]=r;if(((e,o)=>o.map(e=>e.charAt(0)).join("").startsWith(e))(e,i))return!0;if(((e,o)=>o.join("").startsWith(e))(e,i))return!0}return!1}}}]);

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.