PageSourceSearch

https://www.covergirl.com.au/_next/static/chunks/f0c7e9efe95c3682.js

js covergirl.com.au collected 2026-09-26 20:56:55 UTC 25,933 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85715,e=>{"use strict";var t=e.i(91398),r=e.i(78392),a=e.i(71195),n=e.i(34828),i=e.i(16781);e.i(97676);var l=e.i(64369);e.s(["ProductHeaderShade",0,({shade:e,currentShade:o,name:s,onClickCb:u,onMouseEnterLeaveCb:d})=>{let c=e.name===o.name,m=(0,n.useAnalyticsContext)();return(0,t.jsx)("button",{"aria-label":e.name||"",role:"radio","aria-checked":c,onMouseEnter:()=>d(e.name||""),onMouseLeave:()=>d(o.name||""),onClick:()=>{let t,r,a;u(e),(0,i.productShadeClickTracking)(e,s);let n=(t=m?.product,r=m?.page.currency??"",a=(t?.name||s||"").toLowerCase(),{swatch_name:(e.name||"").toLowerCase(),selection_mode:"swatch radiobutton",ecommerce:{currency:r,value:"",items:[{item_id:e?.ean||e?.upc||e?.sku||"",item_sku:e?.ean||e?.upc||e?.sku||"",item_variant:e?.ean||e?.upc||e?.sku||"",item_name:a,price:"",item_category:(t?.category||"").toLowerCase(),item_category2:(t?.category2||"").toLowerCase(),list_position:"",item_image:t?.image||"",item_description:(t?.description||"").toLowerCase(),item_product_url:t?.productUrl||"",item_rating:t?.rating||"",item_variant_type:(t?.variant?.type||"").toLowerCase(),quantity:1,item_variant_colour:(e.name||"").toLowerCase(),item_variant_packsize:t?.variant?.packsize||"",item_brand:(t?.brand||"covergirl").toLowerCase(),retailer_link:"",retailer_name:"",retailer_currency:"",retailer_price:""}]},event_detail:a});(0,l.trackSwatchSelect)(n)},className:(0,r.twJoin)("mr-6 inline-block cursor-pointer overflow-hidden rounded-full border-2 border-black bg-transparent p-1 focus:outline-2 focus:outline-black",c?"border-opacity-100":"border-transparent hover:border-gray-400"),children:(0,t.jsx)("div",{className:"relative h-7 w-7 overflow-hidden rounded-full","data-testid":"swatch-shade",children:e.colorsConnection?.edges?.map((n,i)=>(0,t.jsx)(a.CsImage,{...n?.node,alt:e.name||"",width:50,height:50,className:(0,r.twJoin)("absolute block",0===i?"w-full h-full top-0 left-0":1===i?"w-1/2 h-full top-0 right-0":2===i?"w-1/2 h/-1/2 bottom-0 right-0":"w-1/2 h-1/2 bottom-0 left-0"),"data-testid":"swatch-shade-image"},i))})},e.name)}])},57719,e=>{"use strict";var t=e.i(91398),r=e.i(85715);e.s(["ProductHeaderShades",0,({shadesConnection:e,group_name:a,currentShade:n,name:i,onClickCb:l,onMouseEnterLeaveCb:o})=>(0,t.jsxs)("div",{children:[a&&(0,t.jsx)("div",{className:"my-4 text-xl tracking-widest",children:a}),(0,t.jsx)("div",{role:"radiogroup","aria-label":a||"Shade selector",className:"flex flex-wrap items-center",children:e?.edges?.map(e=>
1e?.node).filter(Boolean).map((e,a)=>(0,t.jsx)(r.ProductHeaderShade,{currentShade:n,name:i,shade:e,onClickCb:l,onMouseEnterLeaveCb:o},a))})]})])},42004,e=>{"use strict";var t=e.i(91398),r=e.i(31031),a=e.i(25292),n=e.i(418);e.s(["BvRating",0,({slug:e,minimalist:i=!1,hideRatingCount:l=!1})=>(0,t.jsx)(a.default,{children:(0,t.jsx)("div",{className:(0,r.twMerge)(n.default.ratingSummary,i&&n.default.inlineRating,l&&n.default.hideRatingCount),"data-bv-show":i?"inline_rating":"rating_summary","data-bv-product-id":e})})])},61592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=e.r(31640)._(e.r(91788)).default.createContext(null)},52414,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return m}});let a=e.r(31640)._(e.r(91788)),n=e.r(61592),i=[],l=[],o=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function d(t){return function(t,r){let s=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},r),d=null;function c(){if(!d){let e=new u(t,s);d={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return d.promise()}if("u"<typeof window&&i.push(c),!o&&"u">typeof window){let t=s.webpack&&"function"==typeof e.t.resolveWeak?s.webpack():s.modules;t&&l.push(e=>{for(let r of t)if(e.includes(r))return c()})}function m(e,t){let r;c(),(r=a.default.useContext(n.LoadableContext))&&Array.isArray(s.modules)&&s.modules.forEach(e=>{r(e)});let i=a.default.useSyncExternalStore(d.subscribe,d.getCurrentValue,d.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:d.retry}),[]),a.default.useMemo(()=>{var t;return i.loading||i.error?a.default.createElement(s.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:d.retry}):i.loaded?a.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return m.preload=()=>c(),m.displayName="LoadableComponent",a.default.forwardRef(m)}(s,t)}function c(e,t){let r=[];for(;e.length;){let a=e.pop();r.push(a(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(i).then(e,t)}),d.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(o=!0,t());c(l,e).then(r,r)}),"u">typeof window&&(window.__NEXT_PRELOADREADY=d.preloadReady);let m=d},25167,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return c},noSSR:function(){return d}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(31640),l=e.r(91398);e.r(91788);let o=i._(e.r(52414)),s="u"<typeof window;function u(e){return{default:e?.default||e}}function d(e,t){if(delete t.webpack,delete t.modules,!s)return e(t);let r=t.loading;return()=>(0,l.jsx)(r,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function c(e,t){let r=o.default,a={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let n=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated}
1,delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?r({...a,loader:()=>null!=n?n().then(u):Promise.resolve(u(()=>null))}):(delete a.webpack,delete a.modules,d(r,a))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68489,(e,t,r)=>{t.exports=e.r(25167)},25292,e=>{"use strict";var t=e.i(91398),r=e.i(68489);let a=({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),n=(0,r.default)(()=>Promise.resolve(a),{ssr:!1});e.s(["default",0,n])},418,e=>{e.v({hideRatingCount:"bazaar-voice-module__aEwYoW__hideRatingCount",inlineRating:"bazaar-voice-module__aEwYoW__inlineRating",ratingSummary:"bazaar-voice-module__aEwYoW__ratingSummary"})},78435,e=>{"use strict";var t=e.i(91398);e.s(["MikMakDrawer",0,({productVariantId:e,className:r="",config:a,buttonLabel:n,onClick:i})=>a?.appId&&a?.drawerWtbId?(0,t.jsx)("button",{className:r,"data-mm-wtbid":a.drawerWtbId,"data-mm-ids":e,"data-testid":"mikmak-drawer-trigger",onClick:i,children:n}):null])},21425,e=>{"use strict";e.s(["getBreadcrumbsString",0,(e,t)=>[(e=>{if(!e)return"";try{return new Intl.Locale(e).maximize().region?.toUpperCase()||""}catch(e){return""}})(t),...e?.map(e=>e.url?.toLowerCase().replace(/\s+/g,"-").replace(/^\/|\/$/g,"").split("/").pop()||"").filter(Boolean)||[]].join(":")],21425)},2430,e=>{"use strict";var t=e.i(2267);e.s(["A11y",()=>t.default])},95786,e=>{e.v({thumbSlider:"product-header-gallery-module__Qq9juq__thumbSlider",thumbSliderStatic:"product-header-gallery-module__Qq9juq__thumbSliderStatic"})},6577,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))});e.s(["ChevronLeftIcon",0,r],6577)},62847,e=>{"use strict";var t=e.i(91398),r=e.i(6577),a=e.i(42332),n=e.i(91788);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}e.i(50461);var l=function(e){var t=e.src,r=e.sources,a=e.width,l=e.height,o=e.hasSpacer,s=e.imgAttributes,u=e.isZoomed,d=e.fadeDuration,c=a&&l&&o;return n.default.createElement("div",{style:{paddingTop:c?l/a*100+"%":null}},r&&r.length>0?n.default.createElement("picture",null,r.map(function(e,t){return n.default.createElement(n.Fragment,{key:t},e.srcSet&&n.default.createElement("source",e))}),n.default.createElement("img",i({},s,{className:"iiz__img "+(s.className||"")+" "+(u?"iiz__img--hidden":"")+" "+(c?"iiz__img--abs":""),style:{transition:"opacity 0ms linear "+(u?d:0)+"ms, visibility 0ms linear "+(u?d:0)+"ms"},src:t,width:a,height:l}))):n.default.createElement("img",i({},s,{className:"iiz__img "+(s.className||"")+" "+(u?"iiz__img--hidden":"")+" "+(c?"iiz__img--abs":""),style:{transition:"opacity 0ms linear "+(u?d:0)+"ms, visibility 0ms linear "+(u?d:0)+"ms"},src:t,width:a,height:l})))};l.propTypes={};var o=function(e){var t=e.src,r=e.fadeDuration,a=e.top,i=e.left,l=e.isZoomed,o=e.onLoad,s=e.onDragStart,u=e.onDragEnd,d=e.onClose,c=e.onFadeOut;return n.default.createElement(n.Fragment,null,n.default.createElement("img",{className:"iiz__zoom-img "+(l?"iiz__zoom-img--visible":""),style:{top:a,left:i,transition:"opacity "+r+"ms linear, visibility "+r+"ms linear"},src:t,onLoad:o,onTouchStart:s,onTouchEnd:u,onMouseDown:s,onMouseUp:u,onTransitionEnd:c,draggable:"false",alt:""}),d&&n.default.createElement("button",{className:"iiz__btn iiz__close "+(l?"iiz__close--visible":""),style:{transition:"opacity "+r+"ms linear, visibility "+r+"ms linear"},onClick:d,"aria-label":"Zoom Out"}))};o.propTypes={};var s=e.i(30943),u=e.i(91567),d=function(e){var t=e.children,r=(0,n.use
1State)(function(){var e=document.createElement("div");return e.classList.add("iiz__zoom-portal"),e})[0];return(0,n.useEffect)(function(){return document.body.appendChild(r),function(){return document.body.removeChild(r)}},[r]),(0,s.createPortal)(t,r)};d.propTypes={children:u.default.element};var c=void 0,m=function(e){var t=e.moveType,r=void 0===t?"pan":t,a=e.zoomType,i=void 0===a?"click":a,s=e.src,u=e.sources,m=e.width,h=e.height,f=e.hasSpacer,g=e.imgAttributes,p=e.zoomSrc,b=e.zoomScale,w=void 0===b?1:b,y=e.zoomPreload,v=e.fadeDuration,x=void 0===v?150:v,_=e.fullscreenOnMobile,k=e.mobileBreakpoint,C=void 0===k?640:k,j=e.hideCloseButton,S=e.hideHint,E=e.className,N=e.afterZoomIn,A=e.afterZoomOut,L=(0,n.useRef)(null),P=(0,n.useRef)(null),T=(0,n.useRef)({}),M=(0,n.useState)(y),R=M[0],z=M[1],D=(0,n.useState)(!1),O=D[0],I=D[1],Y=(0,n.useState)(!1),B=Y[0],X=Y[1],$=(0,n.useState)(!1),H=$[0],V=$[1],q=(0,n.useState)(!1),F=q[0],G=q[1],U=(0,n.useState)(!1),W=U[0],Z=U[1],K=(0,n.useState)(!1),J=K[0],Q=K[1],ee=(0,n.useState)(r),et=ee[0],er=ee[1],ea=(0,n.useState)(0),en=ea[0],ei=ea[1],el=(0,n.useState)(0),eo=el[0],es=el[1],eu=function(e){B?O?j&&ef(e):W||ey():(O&&z(!0),P.current?(ed({target:P.current}),ew(e.pageX,e.pageY)):T.current.onLoadCallback=ew.bind(c,e.pageX,e.pageY))},ed=function(e){var t=ej(e.target,w);P.current=e.target,P.current.setAttribute("width",t.width),P.current.setAttribute("height",t.height),T.current.scaledDimensions=t,T.current.bounds=ex(L.current,!1),T.current.ratios=ek(T.current.bounds,t),T.current.onLoadCallback&&(T.current.onLoadCallback(),T.current.onLoadCallback=null)},ec=function(e){var t=e.pageX-T.current.offsets.x,r=e.pageY-T.current.offsets.y;t=Math.max(Math.min(t,T.current.bounds.width),0),r=Math.max(Math.min(r,T.current.bounds.height),0),ei(-(t*T.current.ratios.x)),es(-(r*T.current.ratios.y))},em=(0,n.useCallback)(function(e){e.stopPropagation();var t="number"==typeof e.pageX?e.pageX:e.changedTouches[0].pageX,r="number"==typeof e.pageY?e.pageY:e.changedTouches[0].pageY,a=t-T.current.offsets.x,n=r-T.current.offsets.y;a=Math.max(Math.min(a,0),-((T.current.scaledDimensions.width-T.current.bounds.width)*1)),n=Math.max(Math.min(n,0),-((T.current.scaledDimensions.height-T.current.bounds.height)*1)),ei(a),es(n)},[]),eh=function(e){if(G(!1),!O){var t=Math.abs(e.pageX-T.current.eventPosition.x),r=Math.abs(e.pageY-T.current.eventPosition.y);Z(t>5||r>5)}},ef=function(e){!O&&e.target.classList.contains("iiz__close")||(B&&!H&&x?Q(!0):eg({},!0)),ey()},eg=function(e,t){(t||"opacity"===e.propertyName&&L.current.contains(e.target))&&((y&&O||!y)&&(P.current=null,T.current=ev(),z(!1)),I(!1),V(!1),er(r),Q(!1))},ep=function(e,t){T.current.offsets=e_(window.pageXOffset,window.pageYOffset,-T.current.bounds.left,-T.current.bounds.top),ec({pageX:e,pageY:t})},eb=function(e,t){var r=-((e-(window.pageXOffset+T.current.bounds.left))*T.current.ratios.x),a=-((t-(window.pageYOffset+T.current.bounds.top))*T.current.ratios.y);r+=H?(window.innerWidth-T.current.bounds.width)/2:0,a+=H?(window.innerHeight-T.current.bounds.height)/2:0,T.current.bounds=ex(L.current,H),T.current.offsets=e_(0,0,0,0),em({changedTouches:[{pageX:r,pageY:a}],preventDefault:function(){},stopPropagation:function(){}})},ew=function(e,t){X(!0),"drag"===et?eb(e,t):ep(e,t),N&&N()},ey=function(){X(!1),A&&A()},ev=function(){return{onLoadCallback:null,bounds:{},offsets:{},ratios:{},eventPosition:{},scaledDimensions:{}}},ex=function(e,t){return t?{width:window.innerWidth,height:window.innerHeight,left:0,top:0}:e.getBoundingClientRect()},e_=function(e,t,r,a){return{x:e-r,y:t-a}},ek=function(e,t){return{x:(t.width-e.width)/e.width,y:(t.height-e.height)/e.height}},eC=function(e,t){return e&&window.matchMedia&&window.matchMedia("(max-width: "+t+"px)").matches},ej=function(e,t){return{width:e.naturalWidth*t,height:e.naturalHeight*t}},eS={src:p||s,fadeDuration:H?0:x,top:eo,left:en,isZoomed:B,onLoad:ed,onDragStart:"drag"===et?function(e){var t="number"==typeof e.pageX?e.pageX:e.changedTouches[0].pageX,r="number"==typeof e.pageY?e.pageY:e.changedTouches[0].pageY;T.current.offsets=e_(t,r,P.current.offsetLeft,P.current.offsetTop),G(!0),O||(T.current.eventPosition={x:e.pageX,y:e.pageY})}:null,onDragEnd:"drag"===et?eh:null,onClose:j||"drag"!==et?null:ef,onFadeOut:J?eg:null};return(0,n.useEffect)(function(){T.current=ev()},[]),(0,n.useEffect)(function(){eC(_,C)&&z(!1)},[_,C]),(0,n.useEffect)(function(){if(P.current){var e=O?"touchmove":"mousemove";F?P.current.addEventListener(e,em,{passive:!0}):P.current.removeEventListener(e,em)}},[F,O,em]),n.default.createElement("figure",{className:"iiz "+("drag"===et?"iiz--drag":"")+" "+(E||""),style:{width:m},ref:L,onTouchStart:B?null:function(){I(!0),V(eC(_,C)),er("drag")},onClick:eu,onMouseEnter:O?null:function(e){z(!0),Q(!1),"hover"!==i||B||eu(e)},onMouseMove:"drag"!==et&&B?ec:null,onMouseLeave:O?null:function(e){"drag"===et&&B?eh(e):ef(e)}},n.default.createElement(l,{src:s,sources:u,width:m,height:h,hasSpacer:f,imgAttributes:void 0===g?{}:g,fadeDuration:x,isZoomed:B}),R&&n.default.createElement(n.Fragment,null,H?n.default.createElement(d,null,n.default.createElement(o,eS)):n.default.createElement(o,eS)),!S&&!B&&n.default.createElement("span",{className:"iiz__btn iiz__hint"}))};m.propTypes={};var h=e.i(24297);e.i(81804);var f=e.i(47749),g=e.i(3783),p=e.i(2430),b=e.i(71195),w=e.i(15213),y=e.i(59523),v=e.i(95786);e.s(["ProductHeaderGallery",0,({name:e,images:i})=>{let l=(0,n.useRef)(null),o=(0,n.useRef)(null),{v:s}=(0,w.useResourcesContext)(),u=(0,n.useRef)(null),[d,c]=(0,n.use
1State)(null),[x,_]=(0,n.useState)(0),k=i?.filter(Boolean)||[],C=k.length<5?[...k,...k]:k;(0,n.useEffect)(()=>{let e=()=>{u.current&&c(u.current.getBoundingClientRect().height)};if(u.current){let t=new ResizeObserver(([e])=>{c(e.contentRect.height)});t.observe(u.current);let r=()=>{e()};return u.current.querySelectorAll("img").forEach(e=>{e.addEventListener("load",r),e.complete&&r()}),()=>{t.disconnect(),u.current?.querySelectorAll("img").forEach(e=>{e.removeEventListener("load",r)})}}{let t=setTimeout(e,100);return()=>clearTimeout(t)}},[C]);let j=e=>e?.imageConnection?.edges?.[0]?.node?.src||"",S=e=>e?.alt??"",E=e=>({src:`${j(e)}?width=1000&quality=75`,zoomSrc:`${j(e)}?width=1100`,zoomType:"hover",width:1e3,height:1e3,imgAttributes:{alt:S(e)},hideHint:!0,sources:[{srcSet:`${j(e)}?width=500&quality=75`,media:"(max-width: 767px)"},{srcSet:`${j(e)}?width=800&quality=75`,media:"(max-width: 1024px)"}]});if(!C.length)return null;let N=`product-header-gallery-${e?.replace(/\s+/g,"-").toLowerCase()}`;return(0,t.jsxs)("div",{className:"md:relative",children:[C.length>1?(0,t.jsxs)("div",{role:"region","aria-labelledby":N,"aria-roledescription":"carousel",onKeyDown:e=>{if("ArrowLeft"===e.key||"ArrowRight"===e.key){let t=l.current?.swiper;if(!t)return;let r=0===t.realIndex,a=t.realIndex===k.length-1,n="ArrowLeft"===e.key,i="ArrowRight"===e.key;r&&n||a&&i||e.stopPropagation()}},children:[(0,t.jsxs)("h2",{id:N,className:"sr-only",children:[e," Gallery"]}),(0,t.jsx)(h.Swiper,{style:d?{height:d}:void 0,className:"text-center",modules:[f.Navigation,g.Pagination,p.A11y],a11y:{enabled:!0,slideRole:"group",containerRoleDescriptionMessage:"Product Gallery",scrollOnFocus:!1},slidesPerView:1,slidesPerGroup:1,loop:!1,direction:"horizontal",grabCursor:!1,allowTouchMove:!1,speed:500,onSlideChange:e=>{let t=e.activeIndex%k.length;_(t),(0,y.carouselTracking)("Product Header Gallery",e.previousIndex,e.activeIndex),o.current?.swiper?.realIndex%k.length!==t&&o.current?.swiper?.slideTo(t)},onAfterInit:e=>{e.slides.forEach((e,t)=>{let r=t%k.length;if(t>=k.length)e.setAttribute("aria-hidden","true"),e.removeAttribute("aria-label"),e.setAttribute("role","presentation"),e.setAttribute("tabindex","-1");else{let t=`${r+1} / ${k.length}`;e.setAttribute("aria-label",t)}})},breakpoints:{768:{direction:"vertical"}},ref:l,children:C.map((e,r)=>(0,t.jsx)(h.SwiperSlide,{className:"border-1 border-transparent","aria-hidden":r>=k.length||void 0,tabIndex:r>=k.length?-1:0,children:(0,t.jsx)("div",{ref:0===r?u:null,children:(0,t.jsx)(m,{...E(e),className:v.default.zoomImage,imgAttributes:{...E(e).imgAttributes,tabIndex:r>=k.length?-1:void 0,"aria-hidden":r>=k.length||void 0,role:r>=k.length?"presentation":void 0}})})},r))},e)]}):(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(m,{...E(C[0]),className:`h-auto w-full ${v.default.zoomImage}`})}),C.length>1&&(0,t.jsxs)("div",{className:"flex md:absolute z-10 md:right-0 md:top-1/2 md:w-1/5 md:-translate-y-1/2 md:translate-x-1/2 md:flex-col lg:w-24 xl:!w-[7vw] xl:max-w-34 max-h-87.5 md:max-h-98 xl:max-h-105.5 2xl:max-h-120.5 3xl:max-h-132.5",onKeyDown:e=>{if("ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key){let t=o.current?.swiper;if(!t)return;let r=0===t.realIndex,a=t.realIndex===k.length-1,n="ArrowLeft"===e.key,i="ArrowUp"===e.key,l="ArrowRight"===e.key,s="ArrowDown"===e.key;r&&(n||i)||a&&(l||s)||e.stopPropagation()}},children:[(0,t.jsxs)("button",{onClick:()=>o.current?.swiper?.slidePrev(),className:"flex items-center justify-center focus:outline-none focus-visible:ring-1 focus-visible:ring-near-black",type:"button","aria-label":"Previous thumbnails",children:[(0,t.jsx)("span",{className:"sr-only",children:s("navigation.prevButton")}),(0,t.jsx)(r.ChevronLeftIcon,{className:"-mx-2 h-auto w-12 md:mx-0 md:w-7 md:rotate-90"})]}),(0,t.jsx)(h.Swiper,{className:`overflow-hidden ${v.default.thumbSlider} w-full`,modules:[f.Navigation,g.Pagination],slidesPerView:3,slidesPerGroup:1,loop:!0,direction:"horizontal",grabCursor:!1,allowTouchMove:!0,centeredSlides:!0,speed:500,breakpoints:{768:{direction:"vertical",allowTouchMove:!1}},ref:o,onSlideChange:e=>{let t=e.realIndex%k.length;_(t),l.current?.swiper?.activeIndex!==t&&l.current?.swiper?.slideTo(t)},onAfterInit:e=>
1{e.slides.forEach((e,t)=>{k.length,t>=k.length&&(e.setAttribute("aria-hidden","true"),e.removeAttribute("aria-label"),e.setAttribute("role","presentation"),e.setAttribute("tabindex","-1"))})},children:C.map((e,r)=>(0,t.jsx)(h.SwiperSlide,{className:"w-full border-1 border-transparent",style:{pointerEvents:r>=k.length?"none":"auto"},"aria-hidden":r>=k.length||void 0,children:(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"button",className:"w-full focus:outline-none focus-visible:ring-1 focus-visible:ring-near-black",onClick:()=>{let e=r%k.length;l.current?.swiper?.slideTo(e),o.current?.swiper?.slideToLoop(r)},onKeyDown:e=>{if("ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key){let t=o.current?.swiper;if(!t)return;let a=r%k.length,n=a===k.length-1,i="ArrowLeft"===e.key,l="ArrowUp"===e.key,s="ArrowRight"===e.key,u="ArrowDown"===e.key;0===a&&(i||l)||n&&(s||u)||(e.preventDefault(),i||l?t.slidePrev():(s||u)&&t.slideNext())}},tabIndex:r>=k.length?-1:0,"aria-hidden":r>=k.length,"aria-current":r%k.length===x?"true":"false","aria-label":`View image ${r%k.length+1} of ${k.length}`,children:(0,t.jsx)(b.CsImage,{className:"mx-0 cursor-pointer border-2 border-stone-300 md:my-1 lg:my-2 xl:my-3 w-full",src:j(e),width:100,height:100,alt:S(e)})})})},j(e)))},e),(0,t.jsxs)("button",{onClick:()=>o.current?.swiper?.slideNext(),className:"flex items-center justify-center focus:outline-none focus-visible:ring-1 focus-visible:ring-near-black",type:"button","aria-label":"Next thumbnails",children:[(0,t.jsx)("span",{className:"sr-only",children:s("navigation.nextButton")}),(0,t.jsx)(a.ChevronRightIcon,{className:"-ml-2 h-auto w-12 md:ml-0 md:w-7 md:rotate-90"})]})]})]})}],62847)},68928,e=>{"use strict";var t=e.i(91398),r=e.i(91788),a=e.i(3828),n=e.i(78392),i=e.i(78435),l=e.i(62847),o=e.i(57719),s=e.i(42004),u=e.i(71195),d=e.i(81860),c=e.i(30647),m=e.i(38131),h=e.i(36936),f=e.i(15213),g=e.i(85683),p=e.i(21425),b=e.i(58367);e.s(["ProductHeader",0,({title:e,url:w,description:y,shade_groups:v,vtoConfiguration:x,external_shop:_,additional_button:k,mikMakConfig:C})=>{let[j,S]=(0,r.useState)((0,b.findPrimaryShade)(v)),[E,N]=(0,r.useState)(j?.name||""),[A,L]=(0,r.useState)(!1),P=(0,d.isVto)(x,w||"");(0,r.useEffect)(()=>{let e=(0,b.findPrimaryShade)(v);S(e),N(e?.name||"")},[v]);let T=j?.ean||(j?.upc?j?.upc:""),{locale:M}=(0,a.useRouter)(),{v:R}=(0,f.useResourcesContext)(),z=(0,p.getBreadcrumbsString)([],M);return(0,t.jsxs)("section",{className:"md:flex",children:[(0,t.jsxs)("div",{className:"relative flex-col px-0 md:flex md:w-1/2 md:justify-center",children:[P&&x?.try_on_imageConnection?.edges?.[0]?.node&&(0,t.jsx)(u.CsImage,{...x.try_on_imageConnection?.edges?.[0]?.node,alt:"Virtual Try On icon",className:"absolute left-4 top-4 z-10  w-32 sm:left-12 sm:top-14 md:left-10 md:top-14 lg:left-10 lg:top-10  lg:w-40",width:640,height:574,onClick:()=>{L(!0)}}),j?.images?.length&&(0,t.jsx)(l.ProductHeaderGallery,{...j})]}),(0,t.jsxs)("div",{className:"px-4 py-6 md:flex md:w-1/2 md:flex-col md:justify-center md:bg-cg-lightest md:pl-20 md:pr-7 md:pt-10 lg:pl-24 ",children:[(0,t.jsx)("h1",{className:"mb-4 text-heading tracking-wider",children:e}),(0,t.jsx)(s.BvRating,{slug:w||""}),(0,t.jsx)("p",{className:"mb-8 whitespace-pre-wrap pr-12",dangerouslySetInnerHTML:{__html:y||""}}),(0,t.jsx)("h2",{className:"mb-8 text-2xl",children:E}),j&&v?.filter(Boolean).map(t=>(0,r.createElement)(o.ProductHeaderShades,{...t,currentShade:j,name:e||"",onClickCb:S,onMouseEnterLeaveCb:N,key:`shade-group-${t?.group_name}`})),(0,t.jsxs)("div",{className:(0,n.twJoin)("lg:flex-row","my-10 flex w-full flex-col items-center gap-6"),children:[_?.link&&(0,t.jsx)("a",{target:"_blank",href:`${_.link}?cid=${M}_covergirl_referral_${w}`,className:"h-full border border-black px-10 py-4 text-sm font-bold uppercase tracking-wider hover:bg-black hover:text-white","data-testid":"shop-online-button-buying",children:_.button_label}),j&&!_?.link&&C?.isEnabled&&(0,t.jsx)(i.MikMakDrawer,{productVariantId:T,config:C||null,className:"h-full w-fit p-4 text-sm font-bold border border-black tracking-wider up
1percase hover:bg-black hover:text-white",buttonLabel:R("products.buyingOptions"),onClick:()=>{(0,g.trackingNavigationEvent)({eventAction:"buy now click",contentName:"buy now",contentType:"cta button",pageName:z||window.location.pathname})}}),P&&(0,t.jsx)("div",{className:"flex-1 max-w-[250px]",children:(0,t.jsx)(h.VtoButton,{onClick:()=>L(!0),children:c.VtoType.shadeFinder===P?x?.shade_finder_button_label:x?.makeup_finder_button_label})}),k?.href&&(0,t.jsx)("a",{target:"_blank",href:k?.href,className:"h-full inline-flex items-center justify-center text-center border border-black px-5 py-4 text-sm font-bold uppercase tracking-wider hover:bg-black hover:text-white max-w-[250px]",children:k?.title}),P&&A&&(0,t.jsx)(m.Vto,{...x,closeCallback:L,vtoType:P,selectedProductSlug:w,mikMakConfig:C||null})]})]})]})}])}]);

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.