PageSourceSearch

https://www.ulta.com/ux/assets/js/ulta-modules-Interrupters-Interrupters-js.efca3ff4.chunk.js

js ulta.com collected 2026-09-24 07:43:28 UTC 10,081 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[327],{60963:(e,t,o)=>{o.r(t)},58500:(e,t,o)=>{t.aM=void 0,o(60963);var n=p(o(20999)),i=p(o(19115)),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=t?n:o){if(i.has(e))return i.get(e);i.set(e,r)}for(const o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(a.get||a.set)?i(r,o,a):r[o]=e[o]);return r}(e,t)}(o(55462)),r=o(76948),l=o(19940),c=p(o(3822)),s=p(o(73742)),u=o(93806);function p(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d.apply(null,arguments)}function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,i,a,r,l=[],c=!0,s=!1;try{if(a=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(n=a.call(o)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=o.return&&(r=o.return(),Object(r)!==r))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}const m=e=>{const t=e.actionGroups,o=e.backgroundColor,i=void 0===o?h.backgroundColor:o,p=e.bodyCopy,f=e.cardAccessibilityLabel,m=e.couponDetails,v=e.externalAction,C=e.externalCouponAction,A=e.externalMedia,O=e.headline,T=e.headlineTag,L=void 0===T?h.headlineTag:T,j=e.image,E=e.theme,_=void 0===E?h.theme:E,w=e.variant,x=void 0===w?h.variant:w,P=e.isLoading,S=void 0===P?h.isLoading:P,k=e.loaderHeightSm,I=e.loaderHeightMd,M=e.loaderHeightLg,D=e.loaderHeightXl,N=y((0,a.useState)(null===m||void 0===m?void 0:m.couponLabel),2),G=N[0],H=N[1],U=y((0,a.useState)("copy"),2),R=U[0],z=U[1],K=y((0,a.useState)("Copy to Clipboard"),2),B=K[0],W=K[1],X=(0,n.default)("pal-c-Interrupters",{["pal-c-Interrupters--".concat(x)]:x}),F="coupon"!==x,V="imageOnly"!==x,Y="doubleWide"===x,Z="coupon"===x;(0,a.useEffect)(()=>{const e=(0,u.couponUtil)(H,z,W,m);return()=>clearTimeout(e)},[G]);const $=F?{image:j,externalMedia:A}:void 0,q=V?{title:{text:O,textStyle:"title-lg",tagName:L},titleSupport:p}:void 0,J=a.default.createElement("span",{title:B,"aria-live":"assertive",role:"status"},C&&(0,l.renderObject)(C),!C&&a.default.createElement(c.default,{variant:"secondary",size:"tiny",iconName:R,iconPosition:"before",label:G,onClick:()=>{H(null===m||void 0===m?void 0:m.couponAppliedLabel),z("check"),W("Copy to Clipboard Successful")}})),Q=Z?{externalAction:v,actionGroups:{actions:[{coupon:!0,externalAction1:J}]}}:V?{externalAction:v,actionGroups:t}:void 0,ee=(0,r.conditionalAttributes)({backgroundColor:"imageOnly"!==x&&i?i:void 0,padding:Z||"imageOnly"===x||"imageCopy"===x?void 0:"sm",contentAlign:Y?"middle":void 0,imgAlign:Y?void 0:"top"}),te=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(o),!0).forEach(function(t){g(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},(0,r.conditionalAttributes)(S?{"--pal-loaderghost-card-height-xl":D,"--pal-loaderghost-card-height-lg":M,"--pal-loaderghost-card-height-md":I,"--pal-loaderghost-card-height-sm":k}:null));return a.default.createElement("div",{"aria-label":f,className:X,style:te,role:"region"},a.default.createElement(s.default,d({imgGap:"md",contentGap:"md",theme:_,isLoading:S,loaderVariant:"textRectangle"},ee,$,q,Q)))};t.aM=m;const v={actionGroups:i.default.object,backgroundColor:i.default.string,bodyCopy:i.default.string,couponDetails:i.default.object,externalAction:i.default.object,externalCouponAction:i.default.object,externalMedia:i.default.object,headline:i.default.string,headlineTag:i.default.oneOf(["h1","h2","h3","h4","h5","h6","span","p"]),theme:i.default.string,variant:i.default.oneOf(["smallImage","imageCopy","imageOnly","coupon","doubleWide"]),image:i.default.object,isLoading:i.default.bool,loaderHeightSm:i.default.string,loaderHeightMd:i.default.string,loaderHeightLg:i.default.string,loaderHeightXl:i.default.string},h={variant:"smallImage",backgroundColor:"background-default",headlineTag:"h2",theme:"default",isLoading:!1};m.propTypes=v},93806:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.couponUtil=void 0;t.couponUtil=(e,t,o,n)=>{if(!n)return;return setTimeout(()=>{e(null===n||void 0===n?void 0:n.couponLabel),t("copy"),o("Copy to Clipboard")},5e3)}},43952:(e,t,o)=>{o.d(t,{G:()=>r});var n=o(55462),i=o(32595),a=o(22219);const r=e=>{const{actionGroup:t,actionGroups:o,alignment:r,derivedAriaLabel:l,isKnockoutLink:c}=e,s=t?.action1?.label||t?.action2?.label,u=o?.actions[0]?.label;return n.createElement(n.Fragment,null,s&&!u&&n.createElement(i.Ay,{action1:t?.action1,action2:t?.action2,derivedAriaLabel:l,isKnockoutLink:c,style:t?.style,type:t?.type}),u&&n.createElement(a.Ay,{actions:o?.actions,alignment:r,derivedAriaLabel:l,isKnockoutLink:c,style:o?.style,types:o?.types,variant:o?.variant}))}},31568:(e,t,o)=>{o.d(t,{Ay:()=>y});var n=o(55462),i=o(19115),a=o(53507),r=o(86710),l=o(38537),c=o(60571),s=o(68759),u=o(73373);const p={size:"tiny",variant:"tertiary"},d=function(e){const{couponCode:t,couponCodeLabel:o,copyIcon:i,copyToClipAction:d,copyClipAccessibilityLabel:g,copiedClipAccessibilityLabel:y,copiedToClipLabel:f,withCodeLabel:m=!0,withCopyIcon:v=!0,buttonProps:h=p}
1=e,[C,A]=(0,n.useState)(!1),O=window.navigator?.clipboard,T=(0,l.a)(),[L]=(0,c.Z)(),j=(0,n.useMemo)(()=>b({couponCode:t,copyToClipAction:d}),[t,d]);return n.createElement("div",{className:"CopyToClipboard"},m&&o&&t&&n.createElement("span",{className:"CopyToClipboard__codeLabel"},n.createElement(r.Ay,{htmlTag:"span",textStyle:"body-1"},o),n.createElement(r.Ay,{htmlTag:"span",textStyle:"body-1"},t)),d?.label&&O&&T&&n.createElement("span",{className:"CopyToClipboard__copyToClipAction",title:C?y:g,"aria-live":"polite",role:"status"},C?n.createElement(a.Ay,{iconImage:"Check",iconSize:"s",label:f,size:h.size,variant:h.variant}):n.createElement(a.Ay,{action:j,iconImage:v?"copy":void 0,iconSize:"s",label:d.label,onClick:()=>{(async(e,t)=>{const{couponCode:o,copyToClipAction:n}=e||{},{setIsCopied:i,timeout:a}=t||{};if(!o||!n||!i||!a)return null;n?.clientActionType!==s.D2.COPYTEXT_CLICK&&await(0,u.eM)(o),i(!0),a(()=>i(!1),5e3)})({couponCode:t,copyToClipAction:d},{setIsCopied:A,timeout:L})},size:h.size,variant:h.variant})))},b=e=>{const{couponCode:t,copyToClipAction:o}=e;let n=o;return!o?.copyText&&t&&(n={...n,copyText:t}),n},g={buttonProps:i.shape({size:i.string,variant:i.string}),copiedToClipLabel:i.string,copyToClipAction:i.object,copyClipAccessibilityLabel:i.string,copiedClipAccessibilityLabel:i.string,couponCodeLabel:i.string,couponCode:i.string,copyIcon:i.string,withCodeLabel:i.bool,withCopyIcon:i.bool};d.propTypes=g;const y=d},41374:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var n=o(55462),i=o(19115),a=o(58500),r=o(97187),l=o(21365),c=o(83058),s=o(43952),u=o(14792),p=o(31568);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d.apply(null,arguments)}const b=(e,t)=>()=>{const{breakpoint:o,props:i}=e||{},{getUltaAssetHtml:a,getExternalAction:r}=t||{};if(!o||!i)return{};const{image:l,mobileImage:s,tabletImage:u,actionGroups:b,couponDetails:g,couponAction:y,...f}=i,m=o?.isSmallDevice(),v=o&&("LG"===o.CURRENT_BREAKPOINT||"XL"===o.CURRENT_BREAKPOINT),h=o&&"MD"===o.CURRENT_BREAKPOINT,C=l||s||u,A=b&&b.actions[0]?.label,O=y?.label&&"coupon"===i?.variant;let T=null,L=null,j=null;if(C&&(T=a({image:l,mobileImage:s,tabletImage:u,isMobile:m,isDesktop:v,isTablet:h})),A&&!O&&(L=r({actionGroups:b})),O){const e=g?.couponCode;y.copyText=e;const t={couponCode:e,copiedToClipLabel:g?.couponAppliedLabel,copyToClipAction:y};j=n.createElement(p.Ay,d({},(0,c.iU)({...t}),{buttonProps:{variant:"secondary",size:"tiny"}}))}return{...f,externalMedia:T,externalAction:L,externalCouponAction:j}},g=(i.object,i.string,i.string,i.string,i.object,i.object,i.string,i.string,i.string,i.string,e=>{const{breakpoint:t}=(0,l.bT)(),o=(0,n.useRef)(null),i=(0,n.useMemo)(b({props:e,breakpoint:t},{getUltaAssetHtml:u.C,getExternalAction:s.G}),[e,t]);return(0,r.H)({...e,componentRef:o}),n.createElement("div",{className:"Interrupters",ref:o},n.createElement(a.aM,(0,c.iU)({...i})))})}}]);
2//# sourceMappingURL=ulta-modules-Interrupters-Interrupters-js.efca3ff4.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.