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C,CAAE,MAAAQ,CAAO,IAAGA,EAAM,OAAO,QAAQ,OAAO,CAAC,EAAGkE,EAAMC,EAAU,CAC5D,KAAM,SACN,OAAQ,SACR,OAAQ,MACZ,CAAC,CAAC,EACIC,GAAc,CAAC,CAAE,MAAA/C,EAAO,UAAAgD,EAAY,EAAK,IAAK,OAChD,MAAMC,GAAKjD,GAAA,YAAAA,EAAO,KAAM,GAClBkD,IAAOb,EAAArC,GAAA,YAAAA,EAAO,SAAP,YAAAqC,EAAe,OAAQ,WAC9B,CAACc,EAAYC,CAAa,EAAIhC,WAAS4B,CAAS,EAChDK,EAAsB,IAAI,CAC5B,GAAI,OAAO,QAAU,IAAK,CACtBD,EAAc,EAAI,EAClB,MACZ,CACQA,EAAc,EAAK,CACtB,EACDb,YAAU,KACN,OAAO,iBAAiB,SAAUc,CAAmB,EAC9C,IAAI,OAAO,oBAAoB,SAAUA,CAAmB,GACpE,EAAE,EACL,MAAMC,EAAU5B,cAAY,IAAI,CAC5B,OAAO,SAAS,CACZ,IAAK,EACL,SAAU,QACtB,CAAS,CACJ,EAAE,EAAE,EACL,OAAOyB,EAA2BtD,EAAG,IAAC8C,GAAgB,CAClD,QAASW,EACT,GAAIL,EACJ,cAAe,cACf,SAAwBpD,EAAG,IAACgD,EAAM,CAC9B,UAAW,QAAQK,CAAI,EAC1B,EACJ,GAAI,IACT","names":["Title","generateViewsComponent","TitleDesktop","TitleMobile","generateBreakpointsItem","breakpointsConfig","defaultPerPage","defaultGap","gap","css","a","b","width","value","CSS","liverpoolFilters","$paginationVariant","theme","slidersThemes","createThemes","ThemeId","SplideWrapper","styled","splideCoreCSS","FlexMixin","$splideOptions","breakpoints","prev","breakpoint","Margin","BorderRadius","SliderSlide","children","index","activeIndex","jsx","classNames","Slider","props","className","PrevArrow","NextArrow","paginationClassName","arrowsClassName","onChange","paginationVariant","start","onClick","centered","perMove","arrows","pagination","rest","elementRef","useRef","splideRef","initialActiveIndex","setActiveIndex","useState","getAutoPerMove","splideOptions","useMemo","options","updatePerMoveOption","useCallback","newPerMove","debouncedUpdatePerMoveOption","useDebounceCallback","onActive","slide","createSplide","Splide","__vitePreload","m","data","_a","_b","useEffect","jsxs","Children","child","ScrollToTopBox","AttentionMixin","Icon","FontMixin","ScrollToTop","forceShow","id","icon","showTopBtn","setShowTopBtn","scrollCallbackEvent","goToTop"],"ignoreList":[0,1,2,3,4,5,6,7],"sources":["../../../../../../../node_modules/@babylon/ui-kit-base/components/text/title/index.js","../../../../../../../node_modules/@babylon/ui-kit-structures/components/others/slider/utils.js","../../../../../../../node_modules/@babylon/ui-kit-structures/_css/356edd8dbc0575febaf0deaf20c1d91b.js","../../../../../../../node_modules/@babylon/ui-kit-structures/components/others/slider/themes/styles/liverpool.js","../../../../../../../node_modules/@babylon/ui-kit-structures/components/others/slider/themes/index.js","../../../../../../../node_modules/@babylon/ui-kit-structures/components/others/slider/styled.js","../../../../../../../node_modules/@babylon/ui-kit-structures/components/others/slider/index.js","../../../../../../../node_modules/@babylon/ui-kit-common/components/others/scroll-to-top/index.js"],"sourcesContent":["import { generateViewsComponent } from '@babylon/ui-kit-helpers/views';\nimport TitleDesktop from './views/desktop/index.js';\nimport TitleMobile from './views/mobile/index.js';\n\nconst Title = generateViewsComponent(TitleDesktop, TitleMobile);\n\nexport { Title as default };\n//# sourceMappingURL=index.js.map\n","import { css } from 'styled-components';\n\nconst generateBreakpointsItem = (breakpointsConfig, defaultPerPage = 5, defaultGap = '16px')=>{\n const gap = typeof defaultGap === 'string' ? defaultGap : `${defaultGap}px`;\n return /*#__PURE__*/ css([\n `.splide__slide{& > a{min-width:unset;}width:calc(((100% + `,\n `) / `,\n `) - `,\n `);margin-right:`,\n `;`,\n `}`\n ], gap, defaultPerPage, gap, gap, Object.keys(breakpointsConfig).sort((a, b)=>parseInt(a) < parseInt(b) ? 1 : -1).map((width)=>{\n const value = breakpointsConfig[width];\n return /*#__PURE__*/ css([\n `@media (width < `,\n `px){width:calc(((100% + `,\n `) / `,\n `) - `,\n `);}`\n ], width, gap, value, gap);\n }));\n};\n\nexport { generateBreakpointsItem };\n//# sourceMappingURL=utils.js.map\n","const CSS = `@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}`; export default CSS;","import { css } from 'styled-components';\n\nconst liverpoolFilters = {\n SplideWrapper: ()=>/*#__PURE__*/ css([\n ``,\n ``\n ], ({ $paginationVariant })=>{\n if ($paginationVariant === 'bottom') {\n return /*#__PURE__*/ css([\n `.splide__pagination__page:not(.is-active){opacity:1;&::before{background-color:`,\n ` !important;}}.splide__pagination .splide__pagination__page{&.is-active{&::before{background-color:`,\n `;}}}`\n ], ({ theme })=>theme.colors.grays.light, ({ theme })=>theme.colors.primary.base);\n }\n })\n};\n\nexport { liverpoolFilters as default };\n//# sourceMappingURL=liverpool.js.map\n","import { createThemes } from '@babylon/ui-kit-styles/common/themes';\nimport { ThemeId } from '@babylon/ui-kit-styles/types/theme';\nimport liverpoolFilters from './styles/liverpool.js';\n\nconst slidersThemes = createThemes({\n [ThemeId.partnershipsLiverpool]: liverpoolFilters\n});\n\nexport { slidersThemes as default };\n//# sourceMappingURL=index.js.map\n","import { generateBreakpointsItem } from './utils.js';\nimport { FlexMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { Margin, BorderRadius } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport splideCoreCSS from '../../../_css/356edd8dbc0575febaf0deaf20c1d91b.js';\nimport styled, { css } from 'styled-components';\nimport slidersThemes from './themes/index.js';\n\nconst SplideWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SplideWrapper\"\n})([\n ``,\n ` .splide{position:relative;height:100%;visibility:visible;&:not(.is-initialized),&.is-initialized:not(.is-active){.splide__list{`,\n `}`,\n `}}.splide__arrows{position:absolute;top:50%;left:0;transform:translateY(-50%);width:100%;height:0;display:flex;align-items:center;justify-content:space-between;z-index:1;.splide__arrow{color:`,\n `;font-size:`,\n `;&[disabled]{opacity:0.5;cursor:not-allowed;}i{color:currentColor;font-size:inherit;}}}`,\n ` `,\n ``\n], splideCoreCSS, FlexMixin(), ({ $splideOptions })=>{\n if ($splideOptions.autoWidth) return;\n let breakpoints = {};\n if ($splideOptions.breakpoints) {\n breakpoints = Object.entries($splideOptions.breakpoints).reduce((prev, [breakpoint, value])=>{\n prev[breakpoint] = value.perPage;\n return prev;\n }, {});\n }\n return generateBreakpointsItem(breakpoints, $splideOptions.perPage, $splideOptions.gap);\n}, ({ theme })=>theme.colors.grays.base, ({ theme })=>theme.font.size.larger, ({ $paginationVariant })=>{\n if ($paginationVariant === 'bottom') {\n return /*#__PURE__*/ css([\n `.splide__pagination{gap:0;position:relative;right:0;top:0;`,\n `}.splide__pagination .splide__pagination__page{`,\n ` `,\n ` background:`,\n `;cursor:pointer;height:12px;margin:0 5px;position:relative;transition:transform 0.2s,left 0.2s;width:12px;transition:width 0.3s ease-in;opacity:0.12;&::before{`,\n ` background-color:transparent;content:'';display:block;height:12px;width:100%;}&.is-active{width:32px;transition:width 0.3s ease-in;`,\n ` opacity:1;&::before{background-color:`,\n `;}}}`\n ], Margin({\n top: '12px'\n }), BorderRadius({\n all: '50vh'\n }), FlexMixin({\n align: 'center',\n justify: 'center',\n wrap: true\n }), ({ theme })=>theme.colors.grays.dark, BorderRadius({\n all: '50vh'\n }), BorderRadius({\n all: '8px'\n }), ({ theme })=>theme.colors.primary.light);\n }\n return /*#__PURE__*/ css([\n `.splide__pagination{position:absolute;top:20px;right:20px;z-index:1;display:flex;gap:8px;.splide__pagination__page{display:block;width:12px;height:12px;border-radius:100%;border:1px solid `,\n `;&.is-active{background-color:`,\n `;}}}`\n ], ({ theme })=>theme.colors.white.base, ({ theme })=>theme.colors.white.base);\n}, slidersThemes('SplideWrapper'));\n\nexport { SplideWrapper };\n//# sourceMappingURL=styled.js.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport classNames from 'classnames';\nimport { useRef, useState, useMemo, useCallback, useEffect, Children } from 'react';\nimport { useDebounceCallback } from 'usehooks-ts';\nimport { SplideWrapper } from './styled.js';\n\nconst SliderSlide = ({ children, index, activeIndex })=>/*#__PURE__*/ jsx(\"li\", {\n className: classNames('splide__slide', {\n 'is-active': activeIndex === index\n }),\n \"data-testid\": \"SliderSlide\",\n role: \"tab\",\n children: children\n });\nconst Slider = (props)=>{\n const { children, className, PrevArrow = /*#__PURE__*/ jsx(\"i\", {\n className: \"nico-angle-left\"\n }), NextArrow = /*#__PURE__*/ jsx(\"i\", {\n className: \"nico-angle-right\"\n }), paginationClassName, arrowsClassName, onChange, paginationVariant = 'default', start = 0, onClick, centered = false, perMove = 'auto', arrows = true, pagination = true, ...rest } = props;\n const elementRef = useRef(null);\n const splideRef = useRef();\n const initialActiveIndex = useRef(start);\n const [activeIndex, setActiveIndex] = useState(start);\n const getAutoPerMove = ()=>{\n if (!splideRef.current) return 1;\n return splideRef.current.root.querySelectorAll('.splide__slide.is-visible').length || 1;\n };\n const splideOptions = useMemo(()=>{\n // Default values\n let options = {\n type: 'slide',\n role: 'region',\n rewind: false,\n speed: 400,\n autoWidth: false,\n autoHeight: false,\n start: initialActiveIndex.current,\n perPage: 1,\n cloneStatus: true,\n arrows: arrows,\n pagination: pagination,\n paginationKeyboard: true,\n drag: true,\n snap: false,\n dragMinThreshold: 10,\n flickPower: 600,\n flickMaxPages: 1,\n waitForTransition: false,\n autoplay: false,\n interval: 5000,\n pauseOnHover: true,\n pauseOnFocus: true,\n resetProgress: true,\n lazyLoad: false,\n preloadPages: 1,\n keyboard: false,\n wheel: false,\n releaseWheel: false,\n direction: 'ltr',\n cover: false,\n focusableNodes: 'a, button, textarea, input, select, iframe',\n isNavigation: false,\n trimSpace: true,\n omitEnd: false,\n updateOnMove: false,\n destroy: false,\n mediaQuery: 'max',\n live: true,\n perMove: 1,\n ...rest\n };\n if (centered) {\n options.focus = 'center';\n }\n if (perMove === 'auto') {\n options.perMove = getAutoPerMove();\n } else if (typeof perMove === 'number') {\n options.perMove = perMove;\n }\n return options;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n arrows,\n centered,\n pagination,\n perMove,\n JSON.stringify(rest)\n ]);\n const updatePerMoveOption = useCallback(()=>{\n if (perMove === 'auto') {\n if (splideRef.current) {\n const newPerMove = getAutoPerMove();\n if (splideRef.current.options.perMove !== newPerMove) {\n splideRef.current.options = {\n ...splideRef.current.options,\n perMove: newPerMove\n };\n }\n }\n }\n }, [\n perMove\n ]);\n const debouncedUpdatePerMoveOption = useDebounceCallback(updatePerMoveOption, 100);\n const onActive = useCallback((slide)=>{\n initialActiveIndex.current = slide.index;\n setActiveIndex(slide.index);\n onChange?.(slide.index);\n }, [\n onChange\n ]);\n const createSplide = useCallback(async ()=>{\n const Splide = await import('@splidejs/splide').then((m)=>m.default);\n if (elementRef.current) {\n splideRef.current = new Splide(elementRef.current, splideOptions);\n if (onActive) splideRef.current.on('active', onActive);\n if (onClick) splideRef.current.on('click', onClick);\n }\n if (splideRef.current && paginationClassName) {\n splideRef.current.on('pagination:mounted', (data)=>{\n data.list.classList.add(paginationClassName);\n });\n }\n splideRef.current?.on('inactive', debouncedUpdatePerMoveOption);\n splideRef.current?.on('resized', debouncedUpdatePerMoveOption);\n setTimeout(()=>{\n if (splideRef.current && (splideRef.current?.state.is(Splide.STATES.CREATED) || splideRef.current?.state.is(Splide.STATES.DESTROYED))) {\n splideRef.current.mount();\n }\n });\n }, [\n debouncedUpdatePerMoveOption,\n onActive,\n onClick,\n paginationClassName,\n splideOptions\n ]);\n useEffect(()=>{\n createSplide();\n return ()=>{\n splideRef.current?.destroy();\n };\n }, [\n createSplide\n ]);\n return /*#__PURE__*/ jsx(SplideWrapper, {\n className: className,\n \"data-testid\": \"Slider\",\n $splideOptions: splideOptions,\n $paginationVariant: paginationVariant,\n children: /*#__PURE__*/ jsxs(\"div\", {\n ref: elementRef,\n className: classNames('splide', {\n 'splide--centered': centered\n }),\n children: [\n /*#__PURE__*/ jsxs(\"div\", {\n className: classNames('splide__arrows', 'splide__arrows--ltr', arrowsClassName),\n \"data-testid\": \"SliderArrows\",\n children: [\n /*#__PURE__*/ jsx(\"button\", {\n className: classNames('splide__arrow', 'splide__arrow--prev'),\n type: \"button\",\n role: \"button\",\n \"data-testid\": \"SliderArrowPrev\",\n children: PrevArrow\n }),\n /*#__PURE__*/ jsx(\"button\", {\n className: classNames('splide__arrow', 'splide__arrow--next'),\n type: \"button\",\n role: \"button\",\n \"data-testid\": \"SliderArrowNext\",\n children: NextArrow\n })\n ]\n }),\n /*#__PURE__*/ jsx(\"div\", {\n className: \"splide__track\",\n \"data-testid\": \"SliderTrack\",\n children: /*#__PURE__*/ jsx(\"ul\", {\n className: \"splide__list\",\n \"data-testid\": \"SliderList\",\n role: \"sliderList\",\n \"aria-label\": \"Slider List\",\n children: Children.toArray(Children.map(children, (child, index)=>/*#__PURE__*/ jsx(SliderSlide, {\n index: index,\n activeIndex: activeIndex,\n children: child\n })))\n })\n })\n ]\n })\n });\n};\n\nexport { Slider as default };\n//# sourceMappingURL=index.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { FlexMixin, AttentionMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { useState, useEffect, useCallback } from 'react';\nimport styled, { css } from 'styled-components';\n\nconst ScrollToTopBox = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ScrollToTopBox\"\n})([\n `position:fixed;bottom:100px;right:20px;width:58px;height:58px;border-radius:50%;background-color:`,\n `;color:`,\n `;`,\n ` transition:border-color 0.6s ease,opacity 0.6s ease;border:3px solid `,\n `;cursor:pointer;z-index:`,\n `;`,\n ` `,\n `{`,\n `}`\n], ({ theme })=>theme.colors.white.base, ({ theme })=>theme.colors.primary.lighter, FlexMixin({\n align: 'center',\n justify: 'center'\n}), ({ theme })=>theme.border.color.light, ({ theme })=>theme.zIndex.highest, AttentionMixin(/*#__PURE__*/ css([\n `border:3px solid `,\n `;`\n], ({ theme })=>theme.colors.primary.lighter)), Icon, FontMixin({\n size: 'larger',\n height: 'larger',\n weight: 'bold'\n}));\nconst ScrollToTop = ({ props, forceShow = false })=>{\n const id = props?.id ?? '';\n const icon = props?.config?.icon ?? 'arrow-up';\n const [showTopBtn, setShowTopBtn] = useState(forceShow);\n const scrollCallbackEvent = ()=>{\n if (window.scrollY > 400) {\n setShowTopBtn(true);\n return;\n }\n setShowTopBtn(false);\n };\n useEffect(()=>{\n window.addEventListener('scroll', scrollCallbackEvent);\n return ()=>window.removeEventListener('scroll', scrollCallbackEvent);\n }, []);\n const goToTop = useCallback(()=>{\n window.scrollTo({\n top: 0,\n behavior: 'smooth'\n });\n }, []);\n return showTopBtn ? /*#__PURE__*/ jsx(ScrollToTopBox, {\n onClick: goToTop,\n id: id,\n \"data-testid\": \"ScrollToTop\",\n children: /*#__PURE__*/ jsx(Icon, {\n className: `nico-${icon}`\n })\n }) : null;\n};\n\nexport { ScrollToTop as default };\n//# sourceMappingURL=index.js.map\n"],"file":"cdn-placeholder/babylon/marketing/logitravel-contact/client/chunks/index.BJ2BrhfM.js"}