PageSourceSearch

https://www.liplab.com/cdn/shop/t/289/assets/header.min.js?v=69535849841660044771789502369

js liplab.com collected 2026-09-25 18:42:11 UTC 17,902 bytes, 1 lines download raw bytes

1(()=>{function g(e,t){if(t=t||{},e)return!1!==u.call(e,l)&&C(t,e);throw new Error("No node provided")}function E(e,t){if(t=t||{},e)return!1!==u.call(e,a)&&S(t,e);throw new Error("No node provided")}var e=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],l=e.join(","),t="undefined"==typeof Element,u=t?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!t&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},L=function(e,t,n){var a=Array.prototype.slice.apply(e.querySelectorAll(l));return t&&u.call(e,l)&&a.unshift(e),a.filter(n)},k=function e(t,n,a){for(var o=[],r=Array.from(t);r.length;){var i,c,s=r.shift();"SLOT"===s.tagName?(i=e((i=s.assignedElements()).length?i:s.children,!0,a),a.flatten?o.push.apply(o,i):o.push({scope:s,candidates:i})):(u.call(s,l)&&a.filter(s)&&(n||!t.includes(s))&&o.push(s),i=s.shadowRoot||"function"==typeof a.getShadowRoot&&a.getShadowRoot(s),c=!a.shadowRootFilter||a.shadowRootFilter(s),i&&c?(c=e((!0===i?s:i).children,!0,a),a.flatten?o.push.apply(o,c):o.push({scope:s,candidates:c})):r.unshift.apply(r,s.children))}return o},d=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},n=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},o=function(e){return"INPUT"===e.tagName},s=function(e){e=e.getBoundingClientRect();return 0===e.width&&0===e.height},S=function(i,e){return!(e.disabled||o(t=e)&&"hidden"===t.type||(e=>{var t=i.displayCheck,n=i.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return 1;var a=u.call(e,"details>summary:first-of-type")?e.parentElement:e;if(u.call(a,"details:not([open]) *"))return 1;if(a=(null==(a=c(e).host)?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e),t&&"full"!==t){if("non-zero-area"===t)return s(e)}else{if("function"==typeof n){for(t=e;e;){var o=e.parentElement,r=c(e);if(o&&!o.shadowRoot&&!0===n(o))return s(e);e=e.assignedSlot||(o||r===e.ownerDocument?o:r.host)}e=t}if(a)return!e.getClientRects().length}})(e)||"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})||(e=>{if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var a=t.children.item(n);if("LEGEND"===a.tagName)return u.call(t,"fieldset[disabled] *")||!a.contains(e)}return 1}t=t.parentElement}})(e));var t},C=function(e,t){return!(o(a=n=t)&&"radio"===a.type&&!(e=>{if(!e.name)return 1;function t(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')}var n=e.form||c(e);if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)a=t(window.CSS.escape(e.name));else try{a=t(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),0}var a=((e,t)=>{for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]})(a,e.form);return!a||a===e})(n)||d(t)<0||!S(e,t));var n,a},T=function(e){e=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(e)||0<=e)},_=function i(e){var c=[],s=[];return e.forEach(function(e,t){var n=!!e.scope,a=n?e.scope:e,o=d(a,n),r=n?i(e.candidates):a;0===o?n?c.push.apply(c,r):c.push(a):s.push({documentOrder:t,tabIndex:o,item:e,isScope:n,content:r})}),s.sort(n).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(c)},a=e.concat("iframe").join(",");function r(t,e){var n,a=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)),a}function O(a){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(o),!0).forEach(function(e){var t,n;t=a,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))})}return a}function A(e){return setTimeout(e,0)}function N(e,n){var a=-1;return e.every(function(e,t){return!n(e)||(a=t,!1)}),a}function I(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,n):e}function D(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}i=[];var i,F={activateTrap:function(e){0<i.length&&(t=i[i.length-1])!==e&&t.pause();var t=i.indexOf(e);-1!==t&&i.splice(t,1),i.push(e)},deactivateTrap:function(e){e=i.indexOf(e);-1!==e&&i.splice(e,1),0<i.length&&i[i.length-1].unpause()}};class y{constructor({el:e}){this.el=e,this.panel=e.querySelector("[data-panel]"),this.closeButton=e.querySelector("[data-panel-close]"),this.close=this.close.bind(this),this.escToClose=this.escToClose.bind(this);let t=new CustomEvent("onPanelClose");var n,c,i,s,l,r,u,d,a,p,m,f,o,b,h,v,y,w;this.trap=(e=this.panel,i=(null==(n={onActivate:()=>{this.el.classList.add("panel--open"),document.body.classList.add("panel-is-open"),this.bindEvents()},onDeactivate:()=>{this.el.classList.remove("panel--open"),document.body.classList.remove("panel-is-open"),this.unbindEvents(),this.el.dispatchEvent(t)},clickOutsideDeactivates:!0})?void 0:n.document)||document,s=O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},r=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},u=function(n){return l.containerGroups.findIndex(function(e){var t=e.container,e=e.tabbableNodes;return t.contains(n)||e.find(function(e){return e===n})})},d=function(e){var t=s[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(1<n?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];t=t.apply(void 0,a)}if(!(t=!0===t?void 0:t)){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var r=t;if("string"!=typeof t||(r=i.querySelector(t)))return r;throw new Error("`".concat(e,"` as selector refers to no known node"))},a=function(){var e,t=d("initialFocus");if(!1===t)return!1;if(t=void 0===t?0<=u(i.activeElement)?i.activeElement:(e=l.tabbableGroups[0])&&e.firstTabbableNode||d("fallbackFocus"):t)return t;throw new Error("Your focus-trap needs to have at least one focusable element")},p=function(){if(l.containerGroups=l.containers.map(function(e){var t,n,a=((e,t)=>(e=(t=t||{}).getShadowRoot?k([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:T}):L(e,t.includeContainer,C.bind(null,t)),_(e)))(e,s.tabbableOptions),o=(t=e,(n=s.tabbableOptions||{}).getShadowRoot?k([t],n.includeContainer,{filter:S.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):L(t,n.includeContainer,S.bind(null,n)));return{container:e,tabbableNodes:a,focusableNodes:o,firstTabbableNode:0<a.length?a[0]:null,lastTabbableNode:0<a.length?a[a.length-1]:null,nextTabbableNode:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=o.findIndex(function(e){return e===t});if(!(n<0))return e?o.slice(n+1).find(function(e){return g(e,s.tabbableOptions)}):o.slice(0,n).reverse().find(function(e){return g(e,s.tabbableOptions)})}}}),l.tabbableGroups=l.containerGroups.filter(function(e){return 0<e.tabbableNodes.length}),l.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},m=function e(t){var n;!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),l.mostRecentlyFocusedNode=t,(n=t).tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select&&t.select()):e(a()))},f=function(e){var t=d("setReturnFocus",e);return t||!1!==t&&e},o=function(e){var t=D(e);0<=u(t)||(I(s.clickOutsideDeactivates,e)?c.deactivate({returnFocus:s.returnFocusOnDeactivate&&!E(t,s.tabbableOptions)}):I(s.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=D(e),n=0<=u(t);n||t instanceof Document?n&&(l.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),m(l.mostRecentlyFocusedNode||a()))},h=function(e){var t,n,a,o,r,i;"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||!1===I(s.escapeDeactivates,e)?"Tab"!==e.key&&9!==e.keyCode||(r=D(t=e),p(),i=null,0<l.tabbableGroups.length?(o=0<=(n=u(r))?l.containerGroups[n]:void 0,n<0?i=t.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode:t.shiftKey?0<=(a=(a=N(l.tabbableGroups,function(e){e=e.firstTabbableNode;return r===e}
1))<0&&(o.container===r||E(r,s.tabbableOptions)&&!g(r,s.tabbableOptions)&&!o.nextTabbableNode(r,!1))?n:a)&&(a=0===a?l.tabbableGroups.length-1:a-1,i=l.tabbableGroups[a].lastTabbableNode):0<=(a=(a=N(l.tabbableGroups,function(e){e=e.lastTabbableNode;return r===e}))<0&&(o.container===r||E(r,s.tabbableOptions)&&!g(r,s.tabbableOptions)&&!o.nextTabbableNode(r))?n:a)&&(o=a===l.tabbableGroups.length-1?0:a+1,i=l.tabbableGroups[o].firstTabbableNode)):i=d("fallbackFocus"),i&&(t.preventDefault(),m(i))):(e.preventDefault(),c.deactivate())},v=function(e){var t=D(e);0<=u(t)||I(s.clickOutsideDeactivates,e)||I(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y=function(){if(l.active)return F.activateTrap(c),l.delayInitialFocusTimer=s.delayInitialFocus?A(function(){m(a())}):m(a()),i.addEventListener("focusin",b,!0),i.addEventListener("mousedown",o,{capture:!0,passive:!1}),i.addEventListener("touchstart",o,{capture:!0,passive:!1}),i.addEventListener("click",v,{capture:!0,passive:!1}),i.addEventListener("keydown",h,{capture:!0,passive:!1}),c},w=function(){if(l.active)return i.removeEventListener("focusin",b,!0),i.removeEventListener("mousedown",o,!0),i.removeEventListener("touchstart",o,!0),i.removeEventListener("click",v,!0),i.removeEventListener("keydown",h,!0),c},(c={get active(){return l.active},get paused(){return l.paused},activate:function(e){var t,n,a;return l.active||(t=r(e,"onActivate"),n=r(e,"onPostActivate"),(a=r(e,"checkCanFocusTrap"))||p(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=i.activeElement,t&&t(),e=function(){a&&p(),y(),n&&n()},a?a(l.containers.concat()).then(e,e):e()),this},deactivate:function(e){var t,n,a,o;return l.active&&(e=O({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e),clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,w(),l.active=!1,l.paused=!1,F.deactivateTrap(c),t=r(e,"onDeactivate"),n=r(e,"onPostDeactivate"),a=r(e,"checkCanReturnFocus"),o=r(e,"returnFocus","returnFocusOnDeactivate"),t&&t(),e=function(){A(function(){o&&m(f(l.nodeFocusedBeforeActivation)),n&&n()})},o&&a?a(f(l.nodeFocusedBeforeActivation)).then(e,e):e()),this},pause:function(){return!l.paused&&l.active&&(l.paused=!0,w()),this},unpause:function(){return l.paused&&l.active&&(l.paused=!1,p(),y()),this}
1,updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return l.containers=e.map(function(e){return"string"==typeof e?i.querySelector(e):e}),l.active&&p(),this}}).updateContainerElements(e),c)}bindEvents(){this.closeButton.addEventListener("click",this.close),window.addEventListener("keydown",this.escToClose)}unbindEvents(){this.closeButton.removeEventListener("click",this.close),window.removeEventListener("keydown",this.escToClose)}open(){this.trap.activate()}close(){this.trap.deactivate()}escToClose(e){"Escape"===e.key&&this.close()}}function w(e,t){"string"==typeof e&&(e=e.replace(".",""));let n="";var a=/\{\{\s*(\w+)\s*\}\}/,t=t||"${{amount}}";function o(e,t=2,n=",",a="."){return isNaN(e)||null==e?0:(t=(e=(e/100).toFixed(t)).split("."))[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n)+(t[1]?a+t[1]:"")}switch(t.match(a)[1]){case"amount":n=o(e,2);break;case"amount_no_decimals":n=o(e,0);break;case"amount_with_comma_separator":n=o(e,2,".",",");break;case"amount_no_decimals_with_comma_separator":n=o(e,0,".",",")}return t.replace(a,n)}class p extends HTMLElement{constructor(){super(),document.addEventListener("DOMContentLoaded",()=>{"false"==this.getAttribute("announcement-bar-enabled")&&document.querySelector("body").classList.add("announcement-bar-disabled");let e=document.getElementById("action-hamburger"),t=document.getElementById("action-hamburger-close"),n=document.getElementById("rwd-menu"),a=n.querySelectorAll("a"),o=this.querySelectorAll(".header-menu a"),r=document.querySelector(".header-dropdown"),i=document.getElementById("header"),c=null,s=()=>{null!==c&&(clearTimeout(c),c=null)},l=()=>{let n=window.location.href;this.querySelectorAll(".header-menu li").forEach(e=>{e.classList.remove("active");var t=e.querySelector("a");t&&t.href===n&&e.classList.add("active")})},u=()=>{s(),l(),r.classList.remove("header-dropdown--active"),r.querySelector(".header-dropdown__megamenu--active")?.classList.remove("header-dropdown__megamenu--active"),r.style.top=""},d=n.querySelectorAll("[data-dropdown-item-back]"),p=n.querySelectorAll("[data-dropdown-item-opener]");a.forEach(e=>{e.setAttribute("tabindex","-1");let t=e.textContent.replace(/[\n\r]+|[\s]{2,}/g," ").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(" ").trim();e.addEventListener("click",()=>{window.LIPLAB.Tracking.track("menu_click",{menu_click_name:t})})}),d.forEach(e=>{e.addEventListener("click",()=>{n.querySelector(".rwd-menu--sublist").classList.remove("rwd-menu--sublist--active"),setTimeout(()=>{n.querySelector(".header-dropdown__menus_mobile--active").classList.remove("header-dropdown__menus_mobile--active")},1e3)})}),p.forEach(t=>{t.addEventListener("click",()=>{var e=t.getAttribute("data-dropdown-item-opener");n.querySelector(".rwd-menu--sublist").classList.add("rwd-menu--sublist--active"),n.querySelector(`.header-dropdown__menus_mobile[data-dropdown-item-opened="${e}"]`).classList.add("header-dropdown__menus_mobile--active")})}),o.forEach(n=>{let e=n.textContent.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(" ").trim();n.addEventListener("click",()=>{window.LIPLAB.Tracking.track("menu_click",{menu_click_name:e})}),n.addEventListener("mouseover",()=>{var e,t=n.textContent.toLowerCase().trim(),t=this.querySelector(`.header-dropdown__megamenu[data-dropdown-item="${t}"]`);t?(s(),r.querySelector(".header-dropdown__megamenu--active")?.classList.remove("header-dropdown__megamenu--active"),this.querySelectorAll(".header-menu li").forEach(e=>{e.classList.remove("active")}),n.closest("li")?.classList.add("active"),e=i.offsetHeight,r.style.top=e+"px",r.classList.add("header-dropdown--active"),t.classList.add("header-dropdown__megamenu--active")):(s(),c=window.setTimeout(()=>{c=null,u()},80))})}),i.addEventListener("mouseleave",e=>{e.relatedTarget&&i.contains(e.relatedTarget)||u()}),i.addEventListener("mouseenter",()=>{s()}),r.addEventListener("mouseenter",()=>{s()}),a.forEach(e=>{e.addEventListener("keydown",e=>{9===e.keyCode&&e.target===a[a.length-1]&&setTimeout(()=>{a[0].focus()},100)})}),e.addEventListener("click",()=>{e.classList.add("toggle"),n.classList.add("rwd-menu-drop"),n.setAttribute("aria-expanded","true"),a[0].focus(),t.setAttribute("tabindex","0"),a.forEach(e
1=>{e.setAttribute("tabindex","0")})}),t.addEventListener("click",()=>{n.classList.remove("rwd-menu-drop"),e.classList.remove("toggle"),n.setAttribute("aria-expanded","false"),t.setAttribute("tabindex","-1"),a.forEach(e=>{e.setAttribute("tabindex","-1")}),setTimeout(()=>e.focus(),100)}),t.addEventListener("keydown",e=>{13!==e.keyCode&&27!==e.keyCode||(console.log("click"),t.click())}),document.getElementById("MainContent"),i.offsetHeight,document.body,this.miniCart=document.querySelector("[data-mini-cart-panel]"),this.openMiniCart=new CustomEvent("openMiniCart"),this.minicartPanel=new y({el:document.querySelector("[data-mini-cart-panel]")}),this.querySelector("[data-header-cart-toggle]").addEventListener("click",()=>{this.miniCart.dispatchEvent(this.openMiniCart),this.minicartPanel.open(),window.LIPLAB.Tracking.track("header_click",{header_click_name:"Cart"}),setTimeout(()=>{var e;e=JSON.parse(JSON.stringify({credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json;"}})),fetch("/cart.js",e).then(function(e){if(e.ok)return e.json();throw e}).then(e=>{var t=e.items.map(e=>({currency:Shopify.currency.active,item_brand:"Lip Lab",item_category:"Lip Stick",item_id:e.id,item_name:e.title,price:parseFloat(w(e.price).replace("$","")),quantity:parseInt(e.quantity)}));dataLayer.push({ecommerce:null}),window.LIPLAB.Tracking.track("view_cart",{ecommerce:{currency:Shopify.currency.active,value:parseFloat(w(e.total_price).replace("$","")),items:t}})})},1e3)}),window.top.location.href==new URL(window.top.location.href).origin+"/#open-cart"&&(this.miniCart.dispatchEvent(this.openMiniCart),this.minicartPanel.open(),window.location.hash="");var m=this.querySelector(".header-logo a"),f=this.querySelector(".action-location a"),b=this.querySelector(".action-account a"),h=this.querySelector(".action-account--login"),v=(e,t)=>{e.addEventListener("click",()=>{window.LIPLAB.Tracking.track("header_click",{header_click_name:t})})};v(m,"Logo"),v(f,"Stores"),v(b,"Account"),v(h,"Account")})}}customElements.get("site-header")||customElements.define("site-header",p)})();

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.