PageSourceSearch

https://revisionskincare.com/cdn/shop/t/620/assets/popup-DSw-JkIa.js

js revisionskincare.com collected 2026-09-25 14:05:28 UTC 3,822 bytes, 1 lines download raw bytes

1import{u as _,a as P,n,t as F,e as a,i as te,r as oe}from"./index-Cn-q3e7r.js";import{g,s as c,r as se}from"./storage-CVUx8WVm.js";import{d as ie,e as A}from"./bodyScrollLock.esm-CT-oBNdc.js";import{s as K}from"./shouldAnimate-DivGpKBN.js";import{d as ne}from"./delay-offset-BYAArl0V.js";import{c as ae}from"./focus-trap.esm-Ck20WpSy.js";import{C as ue}from"./countdown-timer-ChzRKJZw.js";const pe={animationItem:".animation--popup-item"},C={animationRevealed:"animation--popup-revealed"},re=e=>{ne(e,[pe.animationItem]);function s(){K(e)&&_(e,C.animationRevealed)}function i(){K(e)&&P(e,C.animationRevealed)}return{open:s,close:i}},u={wash:".popup__wash",dismissButtons:"[data-dismiss-popup]",tab:".popup__tab",tabButton:".popup__tab-button",tabDismiss:".popup__tab-dismiss",newsletterForm:".newsletter-form",formSuccessMessage:".form-status__message--success",timer:"[data-countdown-timer]"},v={visible:"visible"};function ce(e){const s=ae(e,{allowOutsideClick:!0}),i=re(e),L=n(u.wash,e),U=F(u.dismissButtons,e),V=n(u.formSuccessMessage,e),k=n(u.timer,e),{delayType:$,showOnExitIntent:x,id:l,isSignup:H,popupType:f}=e.dataset,o=n(`${u.tab}[data-id="${l}"`);let{delayValue:D,hourFrequency:B}=e.dataset;D=parseInt(D,10),B=parseInt(B,10);const h=`popup-${l}`,E=`signup-submitted-${l}`,N=`form-success-${l}`,T=`signup-dismissed-${l}`,J=`age-verified-${l}`,d=H==="true",b=f==="age";let y=!1,R=!!g(E),q=!!g(N),Y=!!g(T),j=!!g(J),m=!0,M=null;k&&(M=ue(k)),Q();const p=[];if(window.Shopify.designMode||p.push(a(U,"click",S)),!b&&!window.Shopify.designMode&&(p.push(a(L,"click",S)),p.push(a(e,"keydown",({keyCode:t})=>{t===27&&S()}))),d){const t=n(u.newsletterForm,e);t&&p.push(a(t,"submit",Z))}if(o){const t=n(u.tabButton,o),r=n(u.tabDismiss,o);p.push(a(t,"click",W)),p.push(a(r,"click",X))}d&&V&&!q?(c(N,JSON.stringify(new Date)),w()):(z(),x==="true"&&!te()&&G());function z(){m&&($==="timer"?setTimeout(()=>{y||(w(),c(h,JSON.stringify(new Date)))},D):$==="scroll"&&window.addEventListener("load",()=>{const t=D/100,r=(document.body.scrollHeight-window.innerHeight)*t,I=a(window,"scroll",()=>{window.scrollY>=r&&(y||(w(),c(h,JSON.stringify(new Date))),I())})},{once:!0}))}function G(){if(!m)return;const t=a(document.body,"mouseout",r=>{!r.relatedTarget&&!r.toElement&&(t(),y||(w(),c(h,JSON.stringify(new Date)),y=!0))})}function Q(){if(window.Shopify.designMode){m=!1;return}if(b&&j||d&&R){m=!1;return}if(d&&!R&&Y){m=!1,o&&O();return}if(!d&&!b&&!g(h))return;const t=new Date(g(h));m=(new Date-t)/1e3/60/60>B}function W(){if(w(),f==="flyout"&&!window.Shopify.designMode){const t=n("button, [href], input, select, textarea",e);t&&t.focus({preventScroll:!0})}}function w(){_(e,v.visible),i.open(),(f==="popup"||f==="age")&&(window.Shopify.designMode||s.activate(),document.body.setAttribute("data-fluorescent-overlay-open","true"),ie(e)),y=!0,window.Shopify.designMode&&o?O():o&&P(o,v.visible),window.announceSR&&window.announceSR("Popup opened.")}function S(){P(e,v.visible),d&&(c(T,JSON.stringify(new Date)),o&&O()),b&&c(J,JSON.stringify(new Date)),setTimeout(()=>{i.close(),(f==="popup"||f==="age")&&(s.deactivate(),document.body.setAttribute("data-fluorescent-overlay-open","false"),A(e))},500),window.announceSR&&window.announceSR("Popup closed.")}function O(){_(o,v.visible)}function X(){P(o,v.visible),se(T)}function Z(){c(E,JSON.stringify(new Date))}function ee(){S(),p.forEach(t=>t()),b&&A(e),M&&M.destroy()}return{unload:ee,showPopup:w,hidePopup:S}}oe("popup",{onLoad(){this.popups=F("[data-popup]",this.container).map(e=>({contructor:ce(e),element:e}))},onBlockSelect({target:e}){this.popups.find(i=>i.element===e).contructor.showPopup()},onBlockDeselect({target:e}){this.popups.find(i=>i.element===e).contructor.hidePopup()},onUnload(){this.popups.forEach(e=>{var s;return(s=e.contructor)==null?void 0:s.unload()})}});

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.