PageSourceSearch

https://www.drharveys.com/cdn/shop/t/54/assets/drhv-chunk-index-D-ECCl63.js

js drharveys.com collected 2026-09-25 14:43:35 UTC 5,404 bytes, 23 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d2=m.f||(m.f=["./drhv-chunk-swiper-T-3DK_-V.js","./drhv-chunk-utils-1n-BeTDB.js","./drhv-chunk-index-DWtzpvwD.js"]))=>i.map(i2=>d2[i2]);var y=a=>{throw TypeError(a)},p=(a,t,e)=>t.has(a)||y("Cannot "+e),_=(a,t,e)=>(p(a,t,"read from private field"),e?e.call(a):t.get(a)),h=(a,t,e)=>t.has(a)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,e),g=(a,t,e,s)=>(p(a,t,"write to private field"),s?s.call(a,e):t.set(a,e),e),o=(a,t,e)=>(p(a,t,"access private method"),e);import{_ as $}from"./drhv-index-BH2AeDYs.js";const w="drharveys",V=[240,360,480,640],E=(a,t)=>{const e=Math.round(t*5/4);return`https://res.cloudinary.com/${w}/image/upload/c_fill,w_${t},h_${e},q_auto,f_auto/${a}`},T=(a,t=480)=>`https://res.cloudinary.com/${w}/video/upload/q_auto,w_${t},vc_auto/${a}.mp4`,x=(a,t=480)=>{const e=Math.round(t*5/4);return`https://res.cloudinary.com/${w}/video/upload/so_0,c_fill,w_${t},h_${e},q_auto,f_auto/${a}.jpg`},M=a=>V.map(t=>`${E(a,t)} ${t}w`).join(", "),N=(a,t)=>a?a.length>t?a.slice(0,t)+"...":a:"";var d,r,S,k,b,L,P,v,q,f;class D extends HTMLElement{constructor(){super(...arguments),h(this,r),h(this,d,null)}async connectedCallback(){const e=this.dataset.apiUrl;if(e)try{const s=await o(this,r,S).call(this,e);if(!s.length)return o(this,r,f).call(this);o(this,r,k).call(this,s),await o(this,r,q).call(this)}catch(s){console.error("[InstagramCarousel]",s),o(this,r,f).call(this)}}disconnectedCallback(){var e;(e=_(this,d))==null||e.destroy(!0,!0),g(this,d,null)}}d=new WeakMap,r=new WeakSet,S=async function(e){const s=await fetch(e);if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.json()},k=function(e){const s=this.querySelector(".drh--instagram-carousel__skeleton");s?.remove();const i=document.createElement("div");i.className="swiper drh--instagram-carousel__slider";const n=document.createElement("div");n.className="swiper-wrapper";for(const l of e){const c=document.createElement("div");c.className="swiper-slide",c.innerHTML=l.media_type==="VIDEO"?o(this,r,L).call(this,l):o(this,r,b).call(this,l),n.appendChild(c)}i.appendChild(n),this.appendChild(i),o(this,r,P).call(this)},b=function(e){const s=e.cloudinary_public_id,i=N(e.caption,100);return`<div class="drh--instagram-carousel__slide-link">
2      <img
3        src="${E(s,480)}"
4        srcset="${M(s)}"
5        sizes="(max-width: 767px) 50vw, (max-width: 1023px) 33vw, 25vw"
6        alt="${i}"
7        loading="lazy"
8        class="drh--instagram-carousel__image">
9    </div>`},L=function(e){const s=e.cloudinary_public_id;return`<div class="drh--instagram-carousel__slide-link drh--instagram-carousel__slide-link--video">
10      <video
11        src="${T(s)}"
12        poster="${x(s)}"
13        autoplay muted loop playsinline
14        class="drh--instagram-carousel__video">
15      </video>
16      <div class="drh--instagram-carousel__play-overlay" aria-hidden="true">
17        <span class="fas fa-play"></span>
18      </div>
19      <button class="drh--instagram-carousel__unmute" aria-label="Unmute">
20        <span class="fas fa-volume-xmark"></span>
21      </button>
22    </div>`},P=function(){for(const e of this.querySelectorAll(".drh--instagram-carousel__slide-link--video")){const s=e.querySelector(".drh--instagram-carousel__video"),i=e.querySelector(".drh--instagram-carousel__play-overlay"),n=e.querySelector(".drh--instagram-carousel__unmute");s&&(s.addEventListener("play",()=>i?.classList.remove("is-visible")),s.addEventListener("pause",()=>i?.classList.add("is-visible")),s.paused&&i?.classList.add("is-visible"),e.addEventListener("click",()=>{s.paused?s.play():s.pause()}),n?.addEventListener("click",l=>{l.stopPropagation();const c=s.muted;c&&o(this,r,v).call(this),s.muted=!c;const u=n.querySelector("span");u&&(u.className=s.muted?"fas fa-volume-xmark":"fas fa-volume-high")}))}},v=function(){var e;for(const s of this.querySelectorAll(".drh--instagram-carousel__video")){s.muted=!0;const i=(e=s.closest(".drh--instagram-carousel__slide-link--video"))==null?void 0:e.querySelector(".drh--instagram-carousel__unmute span");i&&(i.className="fas fa-volume-xmark")}},q=async function(){const e=this.querySelector(".drh--instagram-carousel__slider");if(!e)return;const{default:s}=await $(async()=>{const{default:m}
22=await import("./drhv-chunk-swiper-T-3DK_-V.js");return{default:m}},__vite__mapDeps([0,1]),import.meta.url),{Navigation:i,Pagination:n}=await $(async()=>{const{Navigation:m,Pagination:I}=await import("./drhv-chunk-index-DWtzpvwD.js");return{Navigation:m,Pagination:I}},__vite__mapDeps([2,1]),import.meta.url),l=this.dataset.sectionId,c=parseInt(this.dataset.slidesPerView||"4",10),u=this.closest(".drh--instagram-carousel"),C={modules:[i,n],slidesPerView:1.4,spaceBetween:12,loop:!0,watchOverflow:!0,pagination:{el:`#section-igc-${l} .drh--instagram-carousel__pagination`,type:"bullets",clickable:!0},navigation:{prevEl:`#section-igc-${l} .drh--instagram-carousel__nav--prev`,nextEl:`#section-igc-${l} .drh--instagram-carousel__nav--next`},breakpoints:{768:{slidesPerView:3,spaceBetween:16},1024:{slidesPerView:c,spaceBetween:16}}};g(this,d,new s(e,C)),_(this,d).on("slideChange",()=>o(this,r,v).call(this)),u?.classList.add("is-ready")},f=function(){const e=this.closest(".drh--instagram-carousel");e&&(e.style.display="none")};export{D as default};
23//# sourceMappingURL=/cdn/shop/t/54/assets/drhv-chunk-index-D-ECCl63.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.