PageSourceSearch

https://www.robertocavalli.com/mobify/bundle/624/Carousel.js

js robertocavalli.com collected 2026-10-02 06:24:00 UTC 7,618 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6816],{85140:(e,n,t)=>{t.r(n),t.d(n,{default:()=>h});var r=t(55984),i=t(8108),o=t(76664),a=t.n(o),l=t(11088),s=t(39515),c=t(2312),u=t(68664),d=t(43847);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,c.c)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=t(65048),v=t(37096);const m=({swiperRef:e,currentConfig:n,classNames:t})=>{const r=(0,i.useCallback)((()=>{e.current.slidePrev()}),[]),o=(0,i.useCallback)((()=>{e.current.slideNext()}),[]),{printTitleOfTheArrows:l=!0,prevBtnIcon:s,nextBtnIcon:c}=null==n?void 0:n.navigationConfig;return i.createElement("div",{className:a()("swiper-navigation",{"one-slide-row":1===n.slidesPerView},t.wrapper)},i.createElement(g.c,{onClick:r,classNames:a()("swiper-navigation__btn","swiper-navigation__btn--prev",t.previousButton)},i.createElement(v.c,{name:s||"arrow-left",title:l&&"prev",width:20,height:20})),i.createElement(g.c,{onClick:o,classNames:a()("swiper-navigation__btn","swiper-navigation__btn--next",t.nextButton)},i.createElement(v.c,{name:c||"arrow-right",title:l&&"next",width:20,height:20})))},b=({swiperRef:e,slidesCount:n,plainNumeration:t})=>{const[r,o]=(0,i.useState)(1);return(0,i.useEffect)((()=>{e.current&&e.current.on("transitionEnd",(e=>{let t=e.realIndex+1;for(;t>n;)t-=n;o(t)}))}),[e]),i.createElement("div",{className:a()("CarouselPaginationNumbers__pagination-numbers--Ytkpd","pagination-numbers")},i.createElement("span",null,`${t?"":0}${r}`.slice(-2)),i.createElement("span",null,`${t?"":0}${n}`.slice(-2)))},w=({classNames:e,children:n,config:t,handlers:o,disableNavigationForOneSlide:c,thresholdInit:p=.2},g)=>{var v;const{controllerConfig:w,liftSliderInstance:h}=(0,s.y)(!0)||{},C=Array.from(n||[]),E=(0,i.useMemo)((()=>((e,n=!1,t=[],r)=>{var i;const o={direction:d.O.HORIZONTAL,slidesPerView:1,spaceBetween:0,breakpoints:{},paginationConfig:null,navigationConfig:null,freeModeConfig:null,freeMode:null,scrollBarConfig:null,thumbs:null,setThumbsSwiper:null,loop:!1,loopedSlides:null,autoplay:!1,zoom:null,grabCursor:!1,effect:"slide",nested:!1,rewind:!1,mousewheel:!1,keyboard:!1,enablePaginationNumbers:!1,plainNumeration:!1,touchReleaseOnEdges:!1,allowTouchMove:!0,initialSlide:0,speed:300,centeredSlides:!1,slidesOffsetAfter:0,slidesOffsetBefore:0,resistanceRatio:1,duplicateSlides:{enabled:!1,slidesNumber:0},autoHeight:!1};let a={};return Object.keys(f(f({},o),e)).map((n=>{a[n]=void 0!==e[n]?e[n]:o[n]})),n&&t.length<2&&(a=f(f({},a),{},{navigationConfig:{enabled:!1}})),null!==(i=a.paginationConfig)&&void 0!==i&&i.enabled&&(a.paginationConfig.el=".pagination-wrapper",a.paginationConfig.bulletClass=r.bullet,a.paginationConfig.bulletActiveClass=r.bulletActive),a.scrollBarConfig&&(a.scrollBarConfig.el=".swiper-scrollbar"),a})(w||t,c,C,e)),[w,t,c,C,e]),O=(0,i.useRef)(null),N=(0,i.useRef)(null),y=(0,i.useRef)(null),[S,_]=(0,i.useState)([]),[B,P]=(0,i.useState)(!1),[k,R]=(0,i.useState)(!1),[A,M]=(0,i.useState)(!1);(0,i.useEffect)((()=>{if(N.current){const e=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting&&N.current&&(O.current&&O.current.initialized||(O.current=new l.c(N.current,(e=>{const n=(e=>{var n,t;const r=[u.Ko];return null!==(n=e.paginationConfig)&&void 0!==n&&n.enabled&&r.push(u.eM),null!==(t=e.navigationConfig)&&void 0!==t&&t.enabled&&r.push(u._2),e.creativeEffectConfig&&r.push(u.cD),e.coverflowEffectConfig&&r.push(u.sB),(e.freeModeConfig||e.freeMode)&&r.push(u.O4),e.mousewheel&&r.push(u.Eh),e.keyboard&&r.push(u.s3),e.scrollBarConfig&&r.push(u.a1),(e.thumbs||e.setThumbsSwiper)&&r.push(u.Hj),e.zoom&&r.push(u.Np),r})(e);return{modules:n,pagination:e.paginationConfig,initialSlide:e.initialSlide,slidesPerView:e.slidesPerView,spaceBetween:e.spaceBetween,breakpoints:e.breakpoints,direction:e.direction,autoplay:e.autoplay,loop:e.loop,loopedSlides:e.loopedSlides,virtual:e.virtual,navigation:e.navigationConfig,scrollbar:e.scrollBarConfig,grabCursor:e.grabCursor,effect:e.effect,creativeEffect:e.creativeEffectConfig,coverflowEffect:e.coverflowEffectConfig,touchReleaseOnEdges:e.touchReleaseOnEdges,nested:e.nested,rewind:e.rewind,mousewheel:e.mousewheel,keyboard:e.keyboard,allowTouchMove:e.allowTouchMove,thumbs:e.thumbs,speed:e.speed,zoom:e.zoom,centeredSlides:e.centeredSlides,slidesOffsetAfter:e.slidesOffsetAfter,slidesOffsetBefore:e.slidesOffsetBefore,resistanceRatio:e.resistanceRatio,freeMode:e.freeModeConfig||e.freeMode,lazyPreloadPrevNext:e.lazyPreloadPrevNext,className:e.customClassName,autoHeight:e.autoHeight}})(E)),T(O.current),j(),null!=E&&E.nested&&O.current.on("touchStart",((e,n)=>null==n?void 0:n.stopPropagation())),O.current.on("slideChange",z),O.current.on("reachEnd",z),O.current.on("reachBeginning",z)),window.addEventListener("resize",n,{passive:!0}),t.unobserve(e.target))}))}),{rootMargin:"0px",threshold:p});e.observe(N.current);const n=()=>{clearTimeout(y.current),y.current=setTimeout((()=>
1{O.current&&O.current.initialized&&O.current.update()}),300)};return()=>{var t,r;null===(t=O.current)||void 0===t||t.detachEvents(),null===(r=O.current)||void 0===r||r.destroy(),O.current&&O.current.el&&e.unobserve(O.current.el),window.removeEventListener("resize",n)}}}),[]);const j=(0,i.useCallback)((()=>{M(!0),"function"==typeof(null==o?void 0:o.onInitHandler)&&o.onInitHandler(O.current)}),[o]),I=(0,i.useMemo)((()=>{const e=[...C];if(E.loop&&E.duplicateSlides.enabled&&C.length<E.duplicateSlides.slidesNumber)for(;e.length<E.duplicateSlides.slidesNumber;)e.push(...C);return e}),[C,E.loop,E.duplicateSlides]),T=(0,i.useCallback)((e=>{e&&(O.current=e,g&&(g.current=e),"function"==typeof E.setThumbsSwiper&&E.setThumbsSwiper(e),"function"==typeof h&&h(e),z(e))}),[]),z=(0,i.useCallback)((e=>{if(!e)return;const n=e.isBeginning,t=e.isEnd;E.loop||(P(n),R(t));let r=[];t?r.push("swiper-end"):n&&r.push("swiper-beginning"),_(r),"function"==typeof(null==o?void 0:o.onChangeHandler)&&o.onChangeHandler(O.current)}),[E.loop,o]);return i.createElement(s.O,{value:{isInCarousel:!0,swiperRef:O}},(null===(v=E.navigationConfig)||void 0===v?void 0:v.enabled)&&i.createElement(m,{swiperRef:O,currentConfig:E,classNames:{wrapper:a()(null==e?void 0:e.navigation,{"swiper-navigation-initialized":A}),previousButton:a()({"swiper-navigation__btn--reach-beginning":B}),nextButton:a()({"swiper-navigation__btn--reach-end":k})}}),i.createElement("div",{className:a()("swiper",{[t.customClassName]:t.customClassName}),ref:N},i.createElement("div",{className:a()("swiper-wrapper",null==e?void 0:e.swiper,...S,{"swiper-wrapper--reach-beginning":B})},null==I?void 0:I.map(((n,t)=>{if(null!=n&&n.elem)return i.createElement("div",(0,r.c)({className:a()(null==e?void 0:e.slide,"swiper-slide"),key:`${n.key}-${t}`},n.dataIds),n.elem)}))),i.createElement("div",{className:a()(null==e?void 0:e.pagination,"pagination-container")},i.createElement("div",{className:"pagination-wrapper"}),O.current&&E.enablePaginationNumbers&&C.length>1&&i.createElement(b,{swiperRef:O,slidesCount:C.length,plainNumeration:E.plainNumeration})),E.scrollBarConfig&&i.createElement("div",{className:"swiper-scrollbar"})))},h=(0,i.forwardRef)(w)}}]);

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.