PageSourceSearch

https://www.capri-sun.com/_resources/themes/capri-sun/dist/blockTabbedCarousel.97f66811b5ff0e48dd41.js

js capri-sun.com collected 2026-10-02 16:17:15 UTC 7,389 bytes, 2 lines download raw bytes

1/*! For license information please see blockTabbedCarousel.97f66811b5ff0e48dd41.js.LICENSE.txt */
2(self.webpackChunkcapri_sun=self.webpackChunkcapri_sun||[]).push([[3790],{7571:(e,t,r)=>{r.d(t,{I:()=>m});var o,n,l,i,s,c,a,u,f=function(){return"undefined"!=typeof window},p=function(){return o||f()&&(o=window.gsap)&&o.registerPlugin&&o},d=function(e){return"string"==typeof e},y=function(e){return"function"==typeof e},v=function(e,t){var r="x"===t?"Width":"Height",o="scroll"+r,n="client"+r;return e===l||e===i||e===s?Math.max(i[o],s[o])-(l["inner"+r]||i[n]||s[n]):e[o]-e["offset"+r]},g=function(e,t){var r="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=i[r]?i:s),function(){return e[r]}},b=function(e,t){if(!(e=c(e)[0])||!e.getBoundingClientRect)return{x:0,y:0};var r=e.getBoundingClientRect(),o=!t||t===l||t===s,n=o?{top:i.clientTop-(l.pageYOffset||i.scrollTop||s.scrollTop||0),left:i.clientLeft-(l.pageXOffset||i.scrollLeft||s.scrollLeft||0)}:t.getBoundingClientRect(),a={x:r.left-n.left,y:r.top-n.top};return!o&&t&&(a.x+=g(t,"x")(),a.y+=g(t,"y")()),a},h=function(e,t,r,o,n){return isNaN(e)||"object"==typeof e?d(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+o-n:"max"===e?v(t,r)-n:Math.min(v(t,r),b(e,t)[r]-n):parseFloat(e)-n},x=function(){o=p(),f()&&o&&"undefined"!=typeof document&&document.body&&(l=window,s=document.body,i=document.documentElement,c=o.utils.toArray,o.config({autoKillThreshold:7}),a=o.config(),n=1)},m={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(e){o=e,x()},init:function(e,t,r,i,s){n||x();var c=this,f=o.getProperty(e,"scrollSnapType");c.isWin=e===l,c.target=e,c.tween=r,t=function(e,t,r,o){if(y(e)&&(e=e(t,r,o)),"object"!=typeof e)return d(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var n,l={};for(n in e)l[n]="onAutoKill"!==n&&y(e[n])?e[n](t,r,o):e[n];return l}(t,i,e,s),c.vars=t,c.autoKill=!!("autoKill"in t?t:a).autoKill,c.getX=g(e,"x"),c.getY=g(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),u||(u=o.core.globals().ScrollTrigger),"smooth"===o.getProperty(e,"scrollBehavior")&&o.set(e,{scrollBehavior:"auto"}),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(c.add(c,"x",c.x,h(t.x,e,"x",c.x,t.offsetX||0),i,s),c._props.push("scrollTo_x")):c.skipX=1,null!=t.y?(c.add(c,"y",c.y,h(t.y,e,"y",c.y,t.offsetY||0),i,s),c._props.push("scrollTo_y")):c.skipY=1},render:function(e,t){for(var r,o,n,i,s,c=t._pt,f=t.target,p=t.tween,d=t.autoKill,y=t.xPrev,g=t.yPrev,b=t.isWin,h=t.snap,x=t.snapInline;c;)c.r(e,c.d),c=c._next;r=b||!t.skipX?t.getX():y,n=(o=b||!t.skipY?t.getY():g)-g,i=r-y,s=a.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),d&&(!t.skipX&&(i>s||i<-s)&&r<v(f,"x")&&(t.skipX=1),!t.skipY&&(n>s||n<-s)&&o<v(f,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(p.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(p,t.vars.onAutoKillParams||[]))),b?l.scrollTo(t.skipX?r:t.x,t.skipY?o:t.y):(t.skipY||(f.scrollTop=t.y),t.skipX||(f.scrollLeft=t.x)),!h||1!==e&&0!==e||(o=f.scrollTop,r=f.scrollLeft,x?f.style.scrollSnapType=x:f.style.removeProperty("scroll-snap-type"),f.scrollTop=o+1,f.scrollLeft=r+1,f.scrollTop=o,f.scrollLeft=r),t.xPrev=t.x,t.yPrev=t.y,u&&u.update()},kill:function(e){var t="scrollTo"===e,r=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}};m.max=v,m.getOffset=b,m.buildGetter=g,m.config=function(e){for(var t in a||x()||(a=o.config()),e)a[t]=e[t]},p()&&o.registerPlugin(m)},2379:(e,t,r)=>{var o=r(4705),n=r(5458),l=(r(8992),r(3949),r(4520),r(1236)),i=r(4889),s=r(4058),c=r(2119),a=r(270),u=r(8574);const f=function(e,t,r){var o="-active",l=(0,n.A)(e.querySelectorAll(".js-tab-list-button"));l.forEach((function(n){n.addEventListener("click",(function(n){e.querySelector(".js-tab-list-button.-active").classList.remove(o);var l=n.currentTarget,i=l.dataset.index,s=Number(i)-1;l.classList.add(o),r?t.slideToLoop(s):t.slideTo(s)}))})),t.on("slideChangeTransitionStart",(function(){var r=t.previousRealIndex,n=t.realIndex,l=e.querySelector('.js-tab-list-button[data-index="'.concat(Number(r)+1,'"]')),i=e.querySelector('.js-tab-list-button[data-index="'.concat(Number(n)+1,'"]'));l.classList.remove(o),i.classList.add(o),(0,s.A)(e,i)})),(0,a.A)(e,l),(0,u.A)(e,l),(0,c.A)(e)};var p=r(3982);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(r),!0).forEach((function(t){(0,o.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v;v=!0,(0,n.A)(document.querySelectorAll(".js-tabbed-carousel-block")).forEach((function(e){var t=e.querySelector(".js-tab-carousel"),r=e.querySelector(".js-tab-list"),o=e.querySelector(".js-carousel-next"),n=e.querySelector(".js-carousel-prev"),s=new l.A(t,y(y({},p.A),{},{modules:[i.Vx,i.dK],loop:v,autoHeight:!0,loopPreventsSliding:!1,slidesPerView:1,spaceBetween:40,navigation:{nextEl:o,prevEl:n}}));r&&f(r,s,v)}))},2119:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(5880),n=r(7571);o.Ay.registerPlugin(n.I);const l=function(e){var t=e.previousElementSibling,r=e.nextElementSibling,n="ar_AE"===document.querySelector("html.js-html-tag").dataset.locale;e.scrollTo(0,0),t.dataset.visible="false",e.addEventListener("scroll",(function(e){var o=e.currentTarget,n=o.scrollWidth,l=o.clientWidth,i=o.scrollLeft,s=n-l;i===s?r.dataset.visible="false":0===i?t.dataset.visible="false":i>0&&i<s&&(t.dataset.visible="true",r.dataset.visible="true")})),t.addEventListener("click",(function(){n?e.scrollBy({left:80,behavior:"smooth"}):0!==e.scrollLeft&&o.Ay.to(e,{scrollTo:{x:e.scrollLeft-80}})})),r.addEventListener("click",(function(){if(n)e.scrollBy({left:-80,behavior:"smooth"});else{var t=e.scrollWidth-e.clientWidth;e.scrollLeft!==t&&o.Ay.to(e,{scrollTo:{x:e.scrollLeft+80}})}}))}},270:(e,t,r)=>{r.d(t,{A:()=>o});r(8992),r(3949);const o=function(e,t){var r=0;t.forEach((function(e){return r+=e.parentElement.clientWidth}));var o=r>e.clientWidth+20?"left":"center";e.setAttribute("data-tab-position",o);var n=e.previousElementSibling,l=e.nextElementSibling;n.setAttribute("data-visible","left"===o?"true":"false"),l.setAttribute("data-visible","left"===o?"true":"false")}},8574:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(7160),n=r(270);const l=function(e,t){window.addEventListener("resize",(0,o.A)((function(){(0,n.A)(e,t)}),250))}},3982:(e,t,r)=>{r.d(t,{A:()=>o});const o={speed:1200,watchOverflow:!0}},7160:(e,t,r)=>{r.d(t,{A:()=>o});const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var o=arguments.length,n=new Array(o),l=0;l<o;l++)n[l]=arguments[l];window.clearTimeout(r),r=window.setTimeout((function(){e.apply(null,n)}),t)}}},4058:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(5880),n=r(7571);o.Ay.registerPlugin(n.I);const l=function(e,t){var r=t.clientWidth;o.Ay.to(e,{duration:.8,scrollTo:{x:t,offsetX:e.clientWidth/2-r/2},ease:"power1.inOut"})}}}]);

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.