PageSourceSearch

https://embarkvet.com/cdn/shop/t/992/assets/complete-the-look-COnZV58h.js

js embarkvet.com collected 2026-09-24 09:41:03 UTC 2,136 bytes, 1 lines download raw bytes

1import{c as k,r as f,n as u,t as p,e as m,u as g,b as q}from"./index-CaapfkI4.js";import{b as v}from"./a11y-CNHqO0kf.js";import{r as a}from"./evx.es-D_-Lbk8t.js";import{c as w}from"./cart-BrihheDi.js";import{i as _}from"./intersection-watcher-DVwovAmA.js";import{d as C}from"./delay-offset-BjN0AgqN.js";import{g as b}from"./media-queries-CokWIw5y.js";import{s as y}from"./shouldAnimate-B0ZG9BX7.js";import"./storage-CVUx8WVm.js";const i={introductionItems:".section-introduction > *",media:".complete-the-look__image-wrapper .image__img, .complete-the-look__image-wrapper .video",product:".complete-the-look__product",products:".complete-the-look__products"},B={imageLeft:"complete-the-look--image-left"},I=o=>{const t=[];t.push(i.introductionItems),k(o,B.imageLeft)||window.matchMedia(b("below-720")).matches?(t.push(i.media),t.push(i.products),t.push(i.product)):(t.push(i.products),t.push(i.product),t.push(i.media)),C(o,t);const s=_(o);return{destroy(){s.destroy()}}},c={video:"video",quickAddButton:'[data-quick-shop-trigger="quick-add"]',quickViewButton:'[data-quick-shop-trigger="quick-view"]',quickCart:".quick-cart",purchaseConfirmation:".purchase-confirmation-popup"};f("complete-the-look",{videoHandler:null,onLoad(){const o=u(c.video,this.container),t=p(c.quickAddButton,this.container),s=p(c.quickViewButton,this.container),l=u(c.quickCart,document),d=u(c.purchaseConfirmation,document);o&&(this.videoHandler=v(this.container)),this.events=[m(t,"click",e=>{const r=e.currentTarget;if(g(r,"loading"),!d&&!l)return;e.preventDefault(),e.stopPropagation();const{productId:n}=r.dataset;n&&w.addItemById(n,1).then(({res:h})=>{q(r,"loading"),d?a("confirmation-popup:open",null,{product:h.items[0]}):(a("quick-cart:updated"),setTimeout(()=>{a("quick-cart:open")},300))})}),m(s,"click",e=>{e.preventDefault(),e.stopPropagation();const r=e.currentTarget,{productUrl:n}=r.dataset;n&&a("quick-view:open",null,{productUrl:n})})],y(this.container)&&(this.animateCompleteTheLook=I(this.container))},onUnload(){var o;this.videoHandler&&this.videoHandler(),this.events.forEach(t=>t()),(o=this.animateCompleteTheLook)==null||o.destroy()}});

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.