PageSourceSearch

https://www.ulta.com/ux/assets/js/ulta-modules-AnchorLinks-AnchorLinks-js.8247b3d7.chunk.js

js ulta.com collected 2026-09-24 07:44:13 UTC 3,327 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7175],{21233:(e,n,t)=>{t.d(n,{K:()=>o,U:()=>c});var r=t(55462),s=t(22593),i=t(31569),a=t(21233);const o=e=>{const{positionElementRef:n}=e||{},{displayOverlay:t}=(0,s.e)(),{headerOffset:o}=(0,i.Yu)(),c=(0,r.useRef)(0),[l,m]=(0,r.useState)(!1);return(0,r.useEffect)(a.U({displayOverlay:t,positionTop:c,positionElementRef:n,shouldOffsetElement:l},{setShouldOffsetElement:m}),[t,c,n,l,m]),[l,o]},c=(e,n)=>()=>{const{displayOverlay:t,positionTop:r={},positionElementRef:s={},shouldOffsetElement:i}=e||{},{setShouldOffsetElement:a}=n||{};if(!a||t)return;const o=()=>{const e=window.scrollY>r.current;e&&!i?a(!0):!e&&i&&a(!1)},c=()=>{const{top:e=0}=s.current?.getBoundingClientRect?.()||{};r.current=Math.floor(window.scrollY+e)};return c(),window.addEventListener("scroll",o),window.addEventListener("resize",c),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",c)}}},83782:(e,n,t)=>{t.r(n),t.d(n,{AnchorLinks:()=>y,checkForImages:()=>v,checkImagesAndSticky:()=>A,default:()=>L,propTypes:()=>_});var r=t(55462),s=t(44545),i=t(19115),a=t(19747),o=t(83058);var c=t(17045),l=t(15638),m=t(86710),u=t(21367);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(null,arguments)}const d=function(e){const{image:n,action:t,icon:s}=e;return t?r.createElement("div",{className:"AnchorLink"},r.createElement(l.Ay,{action:t},n&&r.createElement("div",{className:"AnchorLink__image"},r.createElement(u.Ay,f({aspectRatio:"1:1"},(0,o.iU)({...n})))),t?.label&&r.createElement("div",{className:"AnchorLink__label"},r.createElement(m.Ay,{textStyle:"body-2",htmlTag:"span",textAlign:"center"},t.label),s&&r.createElement(c.A,{size:"s",name:s,"aria-hidden":!0,className:"AnchorLink__icon"})))):null},p={image:i.object,action:i.object.isRequired,icon:i.string};d.propTypes=p;const h=d;var E=t(21233);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},g.apply(null,arguments)}const y=function(e){const{icon:n,isSticky:t,anchors:i}=e,c=(0,r.useRef)(null),l=(0,r.useRef)(),[m,u]=(0,E.K)({positionElementRef:l}),f=v({anchors:i});if(!i)return null;const d=m&&t?{transform:`translateY(${u}px)`}:void 0;return r.createElement(r.Fragment,null,r.createElement("div",{className:"AnchorLinks_positionElementRef",ref:l}),r.createElement("div",g({className:s("AnchorLinks",{"AnchorLinks--noImage":!f,"AnchorLinks--sticky":t}),ref:c},(0,o.iU)({style:d})),r.createElement(a.Ay,null,r.createElement("div",{className:"AnchorLinks__itemsWrapper"},r.createElement("div",{className:"AnchorLinks__items"},i?.map((e,s)=>r.createElement(h,{image:A({hasImages:f,isSticky:t,image:e.image}),action:e.action,key:s,icon:n})))))))},v=e=>{const{anchors:n}=e||{};for(let t=0;t<n?.length;t++)if(!n[t].image?.imageUrl)return!1;return!0},A=e=>{const{hasImages:n,isSticky:t,image:r}=e||{};return n&&!t?r:null},_={anchors:i.array.isRequired,icon:i.string,isSticky:i.bool};y.propTypes=_;const L=y}}]);
2//# sourceMappingURL=ulta-modules-AnchorLinks-AnchorLinks-js.8247b3d7.chunk.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.