@fox-dls/carousels 1.0.4 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ "use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var n=require("react"),e=t(n),i=require("styled-components"),a=t(i),r=require("swiper"),o=t(r),p=require("swiper/react"),l=t(require("@mui/core/ButtonUnstyled")),s=require("@fox-dls/layout");function m(){return(m=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function c(t,n){if(null==t)return{};var e,i,a={},r=Object.keys(t);for(i=0;i<r.length;i++)n.indexOf(e=r[i])>=0||(a[e]=t[e]);return a}function d(t,n){return n||(n=t.slice(0)),t.raw=n,t}var x,u,g=a(p.Swiper).withConfig({displayName:"styles__CarouselSwiper",componentId:"sc-1sue7gh-1"})(["margin:0px !important;.swiper-wrapper{.swiper-slide{scroll-snap-align:start !important;width:auto !important;}}"]),f=a.div.withConfig({displayName:"styles__CarouselPillContainer",componentId:"sc-1sue7gh-2"})(["display:inline-block !important;padding-right:8px !important;padding-top:4px !important;padding-bottom:4px !important;"]),w=a(l).withConfig({displayName:"styles__CarouselPill",componentId:"sc-1sue7gh-3"})(["-webkit-box-pack:center !important;-webkit-box-align:center !important;appearance:none !important;display:inline-flex !important;border-radius:50% !important;border:1px solid rgb(221,221,221) !important;outline:none !important;margin:0px !important;padding:0px !important;color:rgb(34,34,34) !important;cursor:pointer !important;touch-action:manipulation !important;position:relative !important;background:transparent !important;transition:-ms-transform 0.25s ease 0s,-webkit-transform 0.25s ease 0s,transform 0.25s ease 0s !important;align-items:center !important;justify-content:center !important;width:36px !important;height:36px !important;::before{content:'' !important;display:block !important;position:absolute !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;width:36px !important;height:36px !important;border-radius:50% !important;border:1px solid rgb(221,221,221) !important;}"]),h=["children","navigation","title","controls","arrows"];o.use([r.Navigation]);var b=a.div.withConfig({displayName:"styles__CarouselContainer",componentId:"sc-dwepxh-0"})(["position:relative !important;z-index:0 !important;"]),v=a.div.withConfig({displayName:"styles__CarouselNavbar",componentId:"sc-dwepxh-1"})(["-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;-webkit-box-align:center !important;-ms-flex-align:center !important;color:#222222 !important;display:-webkit-box !important;display:-moz-box !important;display:-ms-flexbox !important;display:-webkit-flex !important;display:flex !important;-webkit-align-items:center !important;align-items:center !important;-webkit-justify-content:space-between !important;justify-content:space-between !important;margin-bottom:16px !important;"]),y=a.div.withConfig({displayName:"styles__NavbarTitleContainer",componentId:"sc-dwepxh-2"})(["margin-right:24px !important;width:auto !important;"]),E=a.div.withConfig({displayName:"styles__NavbarControlsContainer",componentId:"sc-dwepxh-4"})(["display:flex !important;align-items:center !important;margin-left:auto !important;"]),k=a.a.withConfig({displayName:"styles__NavbarControlsQuick",componentId:"sc-dwepxh-5"})(["@media (max-width:744px){display:none !important;}font-size:inherit !important;font-family:inherit !important;font-style:inherit !important;font-variant:inherit !important;line-height:inherit !important;color:#222222 !important;text-decoration:underline !important;border-radius:4px !important;font-weight:600 !important;outline:none !important;"]),C=a.span.withConfig({displayName:"styles__NavbarControlsSpace",componentId:"sc-dwepxh-6"})(["display:inline-block !important;height:32px !important;width:1px !important;margin-right:16px !important;padding:0px !important;border:none !important;"]),_=a.div.withConfig({displayName:"styles__ArrowsContainer",componentId:"sc-dwepxh-7"})(["-webkit-box-align:center !important;color:rgb(34,34,34) !important;display:flex !important;align-items:center !important;margin-left:auto !important;"]),N=a.div.withConfig({displayName:"styles__ArrowsFlex",componentId:"sc-dwepxh-8"})(["display:-webkit-box !important;display:-moz-box !important;display:-ms-flexbox !important;display:-webkit-flex !important;display:flex !important;"]),S=a(l).withConfig({displayName:"styles__ArrowsButton",componentId:"sc-dwepxh-9"})(["-webkit-box-pack:center !important;-webkit-box-align:center !important;appearance:none !important;display:inline-flex !important;border-radius:50% !important;border:none !important;outline:none !important;margin:0px !important;padding:0px !important;color:rgb(34,34,34) !important;cursor:pointer !important;touch-action:manipulation !important;position:relative !important;background:transparent !important;transition:-ms-transform 0.25s ease 0s,-webkit-transform 0.25s ease 0s,transform 0.25s ease 0s !important;align-items:center !important;justify-content:center !important;width:32px !important;height:32px !important;:focus{box-shadow:none !important;}::before{content:'' !important;display:block !important;position:absolute !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;width:32px !important;height:32px !important;border-radius:50% !important;background:rgb(255,255,255) !important;border:1px solid rgb(221,221,221) !important;}:disabled{opacity:0.5 !important;cursor:not-allowed !important;color:rgb(221,221,221) !important;transform:scale(1) !important;}:hover:not([disabled]){color:rgb(0,0,0) !important;transform:scale(1.04) !important;}"]),j=a.span.withConfig({displayName:"styles__ArrowsDivider",componentId:"sc-dwepxh-10"})(["margin-left:8px !important;"]),I=a.span.withConfig({displayName:"styles__ArrowsIconClip",componentId:"sc-dwepxh-11"})(["border:0px !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(100%) !important;clip-path:inset(100%) !important;height:1px !important;overflow:hidden !important;padding:0px !important;position:absolute !important;white-space:nowrap !important;width:1px !important;"]),B=a.svg.withConfig({displayName:"styles__ArrowsSvg",componentId:"sc-dwepxh-12"})(["display:block;fill:none;height:12px;width:12px;stroke:currentcolor;stroke-width:4;overflow:visible;"]),P=a(p.Swiper).withConfig({displayName:"styles__CarouselSwiper",componentId:"sc-1ja5jv1-0"})([""]),z=["children","navigation","title","controls","onShowMore"];o.use([r.Navigation]);var O=a(p.Swiper).withConfig({displayName:"styles__CarouselSwiper",componentId:"sc-y1spms-0"})([".swiper-wrapper{box-sizing:inherit !important;@media (min-width:744px){scroll-padding:40px !important;}@media (min-width:1128px){--scroll-padding:max(80px,calc((100vw - 1600px) / 2)) !important;scroll-padding:var(--scroll-padding) !important;}scroll-snap-type:x mandatory !important;overflow-x:auto !important;display:flex !important;scroll-padding:24px !important;.swiper-slide{@media (min-width:744px){min-width:476px !important;max-width:588px !important;flex:1 0 calc((100% - 80px) * 0.75) !important;}@media (min-width:1128px){flex:1 0 calc(50% - 88px) !important;}margin-left:16px !important;flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;}.swiper-slide:first-of-type{@media (min-width:744px){padding-left:40px !important;min-width:calc(516px) !important;max-width:calc(628px) !important;flex:1 0 calc((100% - 80px) * 0.75 + 40px) !important;}@media (min-width:1128px){max-width:calc(588px + max(80px,(100vw - 1600px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-left:max(80px,(100vw - 1600px) / 2) !important;}@media (min-width:2080px){max-width:calc(588px + max(80px,(100vw - 1930px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-left:max(80px,(100vw - 1930px) / 2) !important;}flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;margin-left:0px !important;padding-left:24px !important;}.swiper-slide:last-of-type{@media (min-width:744px){padding-right:40px !important;min-width:calc(516px) !important;max-width:calc(628px) !important;flex:1 0 calc((100% - 80px) * 0.75 + 40px) !important;}@media (min-width:1128px){max-width:calc(588px + max(80px,(100vw - 1600px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-right:max(80px,(100vw - 1600px) / 2) !important;}@media (min-width:2080px){max-width:calc(588px + max(80px,(100vw - 1930px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-right:max(80px,(100vw - 1930px) / 2) !important;}margin-left:16px !important;flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;padding-right:24px !important;}}"]),M=["children","navigation","title","controls","quickLink","onShowMore"];o.use([r.Navigation]);var R=a(p.Swiper).withConfig({displayName:"styles__CarouselSwiper",componentId:"sc-jtjv4e-1"})(["height:100%;.swiper-pagination{.swiper-pagination-bullet-active{background-color:#fff;}.swiper-pagination-bullet-active-next{background-color:#ffffff;}.swiper-pagination-bullet{background-color:#ffffff;}}"]),q=a(l).withConfig({displayName:"styles__CarouselPill",componentId:"sc-jtjv4e-2"})([":hover{border-color:rgba(0,0,0,0.08) !important;background-color:#ffffff !important;color:#000000 !important;box-shadow:0px 0px 0px 1px transparent,0px 0px 0px 4px transparent,0px 6px 16px rgb(0 0 0 / 12%) !important;-webkit-transform:scale(1.04) !important;-ms-transform:scale(1.04) !important;transform:scale(1.04) !important;}-webkit-box-pack:center !important;-ms-flex-pack:center !important;-webkit-box-align:center !important;-ms-flex-align:center !important;-webkit-appearance:none !important;-moz-appearance:none !important;appearance:none !important;display:-webkit-inline-box !important;display:-moz-inline-box !important;display:-ms-inline-flexbox !important;display:-webkit-inline-flex !important;display:inline-flex !important;border-radius:50% !important;border:0px !important;outline:none !important;margin:0px !important;padding:0px !important;color:#222222 !important;background-color:rgba(255,255,255,0.9) !important;cursor:pointer !important;-ms-touch-action:manipulation !important;touch-action:manipulation !important;-webkit-align-items:center !important;align-items:center !important;-webkit-justify-content:center !important;justify-content:center !important;border-style:solid !important;border-width:1px !important;background-clip:padding-box !important;border-color:rgba(0,0,0,0.08) !important;box-shadow:0px 0px 0px 1px transparent,0px 0px 0px 4px transparent,0px 2px 4px rgb(0 0 0 / 18%) !important;-webkit-transition:-webkit-transform 0.25s ease,transform 0.25s ease !important;-moz-transition:transform 0.25s ease !important;transition:-ms-transform 0.25s ease,-webkit-transform 0.25s ease,transform 0.25s ease !important;width:32px !important;height:32px !important;"]),A=a.svg.withConfig({displayName:"styles__CarouselPillSvg",componentId:"sc-jtjv4e-3"})(["height:10px;width:10px;display:block;fill:currentcolor;"]),F=["children","navigation","title","controls"];o.use([r.Navigation,r.Pagination]),exports.CardCarousel=function(t){var i=t.children,a=t.navigation,r=t.title,o=t.controls,l=t.onShowMore,s=c(t,z),m=n.useRef(null),d=n.useRef(null);return e.createElement(b,null,a&&e.createElement(v,null,r&&e.createElement(y,null,r),o&&e.createElement(E,null,l&&e.createElement(k,{onClick:l},"Show More"),e.createElement(C,null),e.createElement(_,{"aria-hidden":"false"},e.createElement(N,null,e.createElement(S,{ref:m,"aria-label":"Previous",type:"button"},e.createElement("span",{css:"\n position: relative;\n "},e.createElement(I,null),e.createElement(B,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false"},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"}))))),e.createElement(j,null),e.createElement(S,{"aria-label":"Next",type:"button",ref:d},e.createElement("span",{css:"\n position: relative;\n "},e.createElement(I,null),e.createElement(B,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false"},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"}))))))))),e.createElement(P,Object.assign({},s,{onInit:function(t){t.params.navigation.prevEl=m.current,t.params.navigation.nextEl=d.current,t.navigation.init(),t.navigation.update()}}),e.Children.map(i,(function(t){return e.createElement(p.SwiperSlide,null,t)}))))},exports.FreeCarousel=function(t){var i=t.children,a=t.navigation,r=t.title,o=t.controls,l=t.onShowMore,m=c(t,M),d=n.useRef(null),x=n.useRef(null);return e.createElement(b,null,e.createElement("div",{css:"\n @media (max-width: 744px) {\n display: none !important;\n }\n "},e.createElement(s.Container,null,a&&e.createElement(v,null,r&&e.createElement(y,null,r),o&&e.createElement(E,null,l&&e.createElement(k,{onClick:l},"Show More"),e.createElement(C,null),e.createElement(_,{"aria-hidden":"false"},e.createElement(N,null,e.createElement(S,{ref:d,"aria-label":"Previous",type:"button"},e.createElement("span",{css:"\n position: relative;\n "},e.createElement(I,null),e.createElement(B,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false"},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"}))))),e.createElement(j,null),e.createElement(S,{"aria-label":"Next",type:"button",ref:x},e.createElement("span",{css:"\n position: relative;\n "},e.createElement(I,null),e.createElement(B,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false"},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"}))))))))))),e.createElement(O,Object.assign({},m,{cssMode:!0,onInit:function(t){t.params.navigation.prevEl=d.current,t.params.navigation.nextEl=x.current,t.navigation.init(),t.navigation.update()}}),e.Children.map(i,(function(t){return e.createElement(p.SwiperSlide,null,t)}))))},exports.PaginationCarousel=function(t){var i=t.children,a=c(t,F),r=n.useRef(null),o=n.useRef(null);return e.createElement(e.Fragment,null,e.createElement("div",{css:"\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n left: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n "},e.createElement(q,{ref:r},e.createElement("span",{css:"\n position: relative !important;\n "},e.createElement(A,{viewBox:"0 0 16 16",role:"presentation","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"m10.8 16c-.4 0-.7-.1-.9-.4l-6.8-6.7c-.5-.5-.5-1.3 0-1.8l6.8-6.7c.5-.5 1.2-.5 1.7 0s .5 1.2 0 1.7l-5.8 5.9 5.8 5.9c.5.5.5 1.2 0 1.7-.2.3-.5.4-.8.4"}))))),e.createElement("div",{css:"\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n right: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n "},e.createElement(q,{ref:o},e.createElement("span",{css:"\n position: relative !important;\n "},e.createElement(A,{viewBox:"0 0 16 16",role:"presentation","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"m5.3 16c .3 0 .6-.1.8-.4l6.8-6.7c.5-.5.5-1.3 0-1.8l-6.8-6.7c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l5.8 5.9-5.8 5.9c-.5.5-.5 1.2 0 1.7.2.3.5.4.9.4"}))))),e.createElement(R,Object.assign({},a,{pagination:{dynamicBullets:!0},onInit:function(t){t.params.navigation.prevEl=r.current,t.params.navigation.nextEl=o.current,t.navigation.init(),t.navigation.update()}}),e.Children.map(i,(function(t){return e.cloneElement(e.createElement(p.SwiperSlide,null,t),m({},a))}))))},exports.PillsCarousel=function(t){var a=t.children,r=t.arrows,o=c(t,h),l=n.useRef(null),s=n.useRef(null),m=n.useState({progress:0,isBeginning:!0,isEnd:!1}),b=m[0],v=m[1],y=n.useState(null),E=y[0],k=y[1];return e.createElement("div",{css:"\n display: flex !important;\n position: relative !important;\n min-width: 0px !important;\n "},e.createElement("div",{css:"\n position: absolute !important;\n left: 0px !important;\n z-index: 3 !important;\n width: 65px !important;\n background: linear-gradient(\n to right,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n "+(b.isBeginning&&i.css(x||(x=d(["\n display: none !important;\n visibility: hidden !important;\n "]))))+"\n "},r&&e.createElement(f,null,e.createElement(w,{left:1,ref:l,"aria-label":"Previous",type:"button",onClick:function(){return E.slidePrev()}},e.createElement("span",{css:"\n position: relative !important;\n "},e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false",css:"\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n "},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"}))))))),e.createElement(g,Object.assign({},o,{cssMode:!1,slidesPerView:"auto",onInit:function(t){k(t),t.params.navigation.prevEl=l.current,t.params.navigation.nextEl=s.current,t.navigation.init(),t.navigation.update(),v({progress:t.progress,isBeginning:t.isBeginning,isEnd:t.isEnd})},onSlideChange:function(t){v({progress:t.progress,isBeginning:t.isBeginning,isEnd:t.isEnd})}}),e.Children.map(a,(function(t){return e.createElement(p.SwiperSlide,null,e.createElement("div",{css:"\n display: inline-block !important;\n white-space: nowrap !important;\n padding-right: 8px !important;\n padding-top: 4px !important;\n padding-bottom: 4px !important;\n "},t))}))),e.createElement("div",{css:"\n -webkit-box-pack: end !important;\n position: absolute !important;\n right: 0px !important;\n z-index: 3 !important;\n width: 75px !important;\n display: flex !important;\n justify-content: flex-end !important;\n background: linear-gradient(\n to left,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n "+(b.isEnd&&i.css(u||(u=d(["\n display: none !important;\n visibility: hidden !important;\n "]))))+"\n "},r&&e.createElement(f,null,e.createElement(w,{right:1,"aria-label":"Next",type:"button",ref:s,onClick:function(){return E.slideNext()}},e.createElement("span",{css:"\n position: relative !important;\n "},e.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",focusable:"false",css:"\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n "},e.createElement("g",{fill:"none"},e.createElement("path",{d:"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"}))))))))};
2
+ //# sourceMappingURL=carousels.cjs.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousels.cjs.production.min.js","sources":["../src/lib/pills/styles/index.tsx","../src/lib/pills/index.tsx","../src/lib/styles/index.tsx","../src/lib/card/styles/index.tsx","../src/lib/card/index.tsx","../src/lib/free/styles/index.tsx","../src/lib/free/index.tsx","../src/lib/pagination/styles/index.tsx","../src/lib/pagination/index.tsx"],"sourcesContent":["import ButtonUnstyled from '@mui/core/ButtonUnstyled';\nimport styled from 'styled-components';\n// eslint-disable-next-line import/extensions\nimport { Swiper } from 'swiper/react';\n\nexport const CarouselContainer = styled.div``;\n\nexport const CarouselSwiper = styled(Swiper)`\n margin: 0px !important;\n .swiper-wrapper {\n .swiper-slide {\n scroll-snap-align: start !important;\n width: auto !important;\n }\n }\n`;\n\nexport const CarouselPillContainer = styled.div`\n display: inline-block !important;\n padding-right: 8px !important;\n padding-top: 4px !important;\n padding-bottom: 4px !important;\n`;\n\nexport const CarouselPill = styled(ButtonUnstyled)<any>`\n -webkit-box-pack: center !important;\n -webkit-box-align: center !important;\n appearance: none !important;\n display: inline-flex !important;\n border-radius: 50% !important;\n border: 1px solid rgb(221, 221, 221) !important;\n outline: none !important;\n margin: 0px !important;\n padding: 0px !important;\n color: rgb(34, 34, 34) !important;\n cursor: pointer !important;\n touch-action: manipulation !important;\n position: relative !important;\n background: transparent !important;\n transition: -ms-transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s,\n transform 0.25s ease 0s !important;\n align-items: center !important;\n justify-content: center !important;\n width: 36px !important;\n height: 36px !important;\n ::before {\n content: '' !important;\n display: block !important;\n position: absolute !important;\n top: 50% !important;\n left: 50% !important;\n transform: translate(-50%, -50%) !important;\n width: 36px !important;\n height: 36px !important;\n border-radius: 50% !important;\n border: 1px solid rgb(221, 221, 221) !important;\n }\n`;\n","/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable unused-imports/no-unused-vars */\nimport React, { useRef, useState } from 'react';\n\nimport { css } from 'styled-components';\nimport SwiperCore, { Navigation } from 'swiper';\n// eslint-disable-next-line import/extensions\nimport { SwiperSlide } from 'swiper/react';\n\nimport { CarouselSwiper, CarouselPillContainer, CarouselPill } from './styles';\n\nSwiperCore.use([Navigation]);\n\nexport const PillsCarousel: React.FC<any> = ({\n children,\n navigation,\n title,\n controls,\n arrows,\n ...props\n}) => {\n const prevRef = useRef<any>(null);\n const nextRef = useRef<any>(null);\n const [swiperSlides, setSwiperSlides] = useState<any>({\n progress: 0,\n isBeginning: true,\n isEnd: false\n });\n const [swiper, setSwiper] = useState<any>(null);\n return (\n <div\n css={`\n display: flex !important;\n position: relative !important;\n min-width: 0px !important;\n `}\n >\n <div\n css={`\n position: absolute !important;\n left: 0px !important;\n z-index: 3 !important;\n width: 65px !important;\n background: linear-gradient(\n to right,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n ${swiperSlides.isBeginning &&\n css`\n display: none !important;\n visibility: hidden !important;\n `}\n `}\n >\n {arrows && (\n <CarouselPillContainer>\n <CarouselPill\n left={+true}\n ref={prevRef}\n aria-label=\"Previous\"\n type=\"button\"\n onClick={() => swiper.slidePrev()}\n >\n <span\n css={`\n position: relative !important;\n `}\n >\n <svg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n css={`\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n `}\n >\n <g fill=\"none\">\n <path d=\"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932\" />\n </g>\n </svg>\n </span>\n </CarouselPill>\n </CarouselPillContainer>\n )}\n </div>\n\n <CarouselSwiper\n {...props}\n cssMode={false}\n slidesPerView=\"auto\"\n onInit={(swiper: any) => {\n setSwiper(swiper);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.prevEl = prevRef.current;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.nextEl = nextRef.current;\n swiper.navigation.init();\n swiper.navigation.update();\n setSwiperSlides({\n progress: swiper.progress,\n isBeginning: swiper.isBeginning,\n isEnd: swiper.isEnd\n });\n // console.log(\"Swiper\", swiper);\n }}\n onSlideChange={swiper => {\n // console.log(\"Swiper Change\", swiper);\n\n setSwiperSlides({\n progress: swiper.progress,\n isBeginning: swiper.isBeginning,\n isEnd: swiper.isEnd\n });\n }}\n >\n {React.Children.map(children, child => (\n <SwiperSlide>\n <div\n css={`\n display: inline-block !important;\n white-space: nowrap !important;\n padding-right: 8px !important;\n padding-top: 4px !important;\n padding-bottom: 4px !important;\n `}\n >\n {child}\n </div>\n </SwiperSlide>\n ))}\n </CarouselSwiper>\n\n <div\n css={`\n -webkit-box-pack: end !important;\n position: absolute !important;\n right: 0px !important;\n z-index: 3 !important;\n width: 75px !important;\n display: flex !important;\n justify-content: flex-end !important;\n background: linear-gradient(\n to left,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n ${swiperSlides.isEnd &&\n css`\n display: none !important;\n visibility: hidden !important;\n `}\n `}\n >\n {arrows && (\n <CarouselPillContainer>\n <CarouselPill\n right={+true}\n aria-label=\"Next\"\n type=\"button\"\n ref={nextRef}\n onClick={() => swiper.slideNext()}\n >\n <span\n css={`\n position: relative !important;\n `}\n >\n <svg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n css={`\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n `}\n >\n <g fill=\"none\">\n <path d=\"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932\" />\n </g>\n </svg>\n </span>\n </CarouselPill>\n </CarouselPillContainer>\n )}\n </div>\n </div>\n );\n};\n","import ButtonUnstyled from '@mui/core/ButtonUnstyled';\nimport styled from 'styled-components';\n\nexport const CarouselContainer = styled.div`\n position: relative !important;\n z-index: 0 !important;\n`;\n\nexport const CarouselNavbar = styled.div`\n -webkit-box-pack: justify !important;\n -ms-flex-pack: justify !important;\n -webkit-box-align: center !important;\n -ms-flex-align: center !important;\n color: #222222 !important;\n display: -webkit-box !important;\n display: -moz-box !important;\n display: -ms-flexbox !important;\n display: -webkit-flex !important;\n display: flex !important;\n -webkit-align-items: center !important;\n align-items: center !important;\n -webkit-justify-content: space-between !important;\n justify-content: space-between !important;\n margin-bottom: 16px !important;\n`;\n\nexport const NavbarTitleContainer = styled.div`\n margin-right: 24px !important;\n width: auto !important;\n`;\n\nexport const NavbarTitle = styled.div`\n @media (min-width: 744px) {\n font-size: 32px !important;\n line-height: 36px !important;\n font-weight: 800 !important;\n text-align: left !important;\n color: #222222 !important;\n margin-bottom: 15px !important;\n }\n font-size: 22px !important;\n line-height: 26px !important;\n font-weight: 600 !important;\n margin-bottom: 10px !important;\n`;\n\nexport const NavbarControlsContainer = styled.div`\n display: flex !important;\n align-items: center !important;\n margin-left: auto !important;\n`;\n\nexport const NavbarControlsQuick = styled.a`\n @media (max-width: 744px) {\n display: none !important;\n }\n font-size: inherit !important;\n font-family: inherit !important;\n font-style: inherit !important;\n font-variant: inherit !important;\n line-height: inherit !important;\n color: #222222 !important;\n text-decoration: underline !important;\n border-radius: 4px !important;\n font-weight: 600 !important;\n outline: none !important;\n`;\n\nexport const NavbarControlsSpace = styled.span`\n display: inline-block !important;\n height: 32px !important;\n width: 1px !important;\n margin-right: 16px !important;\n padding: 0px !important;\n border: none !important;\n`;\n\nexport const ArrowsContainer = styled.div`\n -webkit-box-align: center !important;\n color: rgb(34, 34, 34) !important;\n display: flex !important;\n align-items: center !important;\n margin-left: auto !important;\n`;\n\nexport const ArrowsFlex = styled.div`\n display: -webkit-box !important;\n display: -moz-box !important;\n display: -ms-flexbox !important;\n display: -webkit-flex !important;\n display: flex !important;\n`;\n\nexport const ArrowsButton = styled(ButtonUnstyled)<any>`\n -webkit-box-pack: center !important;\n -webkit-box-align: center !important;\n appearance: none !important;\n display: inline-flex !important;\n border-radius: 50% !important;\n border: none !important;\n outline: none !important;\n margin: 0px !important;\n padding: 0px !important;\n color: rgb(34, 34, 34) !important;\n cursor: pointer !important;\n touch-action: manipulation !important;\n position: relative !important;\n background: transparent !important;\n transition: -ms-transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s,\n transform 0.25s ease 0s !important;\n align-items: center !important;\n justify-content: center !important;\n width: 32px !important;\n height: 32px !important;\n :focus {\n box-shadow: none !important;\n }\n ::before {\n content: '' !important;\n display: block !important;\n position: absolute !important;\n top: 50% !important;\n left: 50% !important;\n transform: translate(-50%, -50%) !important;\n width: 32px !important;\n height: 32px !important;\n border-radius: 50% !important;\n background: rgb(255, 255, 255) !important;\n border: 1px solid rgb(221, 221, 221) !important;\n }\n :disabled {\n opacity: 0.5 !important;\n cursor: not-allowed !important;\n color: rgb(221, 221, 221) !important;\n transform: scale(1) !important;\n }\n :hover:not([disabled]) {\n color: rgb(0, 0, 0) !important;\n transform: scale(1.04) !important;\n }\n`;\n\nexport const ArrowsDivider = styled.span`\n margin-left: 8px !important;\n`;\n\nexport const ArrowsIconClip = styled.span`\n border: 0px !important;\n clip: rect(0 0 0 0) !important;\n -webkit-clip-path: inset(100%) !important;\n clip-path: inset(100%) !important;\n height: 1px !important;\n overflow: hidden !important;\n padding: 0px !important;\n position: absolute !important;\n white-space: nowrap !important;\n width: 1px !important;\n`;\n\nexport const ArrowsSvg = styled.svg`\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 4;\n overflow: visible;\n`;\n","import styled from 'styled-components';\n// eslint-disable-next-line import/extensions\nimport { Swiper } from 'swiper/react';\n\nexport const CarouselSwiper = styled(Swiper)``;\n","import React, { useRef } from 'react';\n\nimport SwiperCore, { Navigation } from 'swiper';\n// eslint-disable-next-line import/extensions\nimport { SwiperSlide } from 'swiper/react';\n\nimport {\n CarouselContainer,\n CarouselNavbar,\n NavbarTitleContainer,\n NavbarControlsContainer,\n NavbarControlsQuick,\n NavbarControlsSpace,\n ArrowsContainer,\n ArrowsFlex,\n ArrowsDivider,\n ArrowsButton,\n ArrowsIconClip,\n ArrowsSvg\n} from '../styles';\nimport { CarouselSwiper } from './styles';\n\nSwiperCore.use([Navigation]);\n\nexport const CardCarousel: React.FC<any> = ({\n children,\n navigation,\n title,\n controls,\n onShowMore,\n ...props\n}) => {\n const prevRef = useRef<HTMLDivElement>(null);\n const nextRef = useRef<HTMLDivElement>(null);\n return (\n <CarouselContainer>\n {navigation && (\n <CarouselNavbar>\n {title && <NavbarTitleContainer>{title}</NavbarTitleContainer>}\n {controls && (\n <NavbarControlsContainer>\n {onShowMore && (\n <NavbarControlsQuick onClick={onShowMore}>\n Show More\n </NavbarControlsQuick>\n )}\n <NavbarControlsSpace />\n <ArrowsContainer aria-hidden=\"false\">\n <ArrowsFlex>\n <ArrowsButton\n ref={prevRef}\n aria-label=\"Previous\"\n type=\"button\"\n >\n <span\n css={`\n position: relative;\n `}\n >\n <ArrowsIconClip />\n <ArrowsSvg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g fill=\"none\">\n <path d=\"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932\" />\n </g>\n </ArrowsSvg>\n </span>\n </ArrowsButton>\n <ArrowsDivider />\n <ArrowsButton aria-label=\"Next\" type=\"button\" ref={nextRef}>\n <span\n css={`\n position: relative;\n `}\n >\n <ArrowsIconClip />\n <ArrowsSvg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g fill=\"none\">\n <path d=\"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932\" />\n </g>\n </ArrowsSvg>\n </span>\n </ArrowsButton>\n </ArrowsFlex>\n </ArrowsContainer>\n </NavbarControlsContainer>\n )}\n </CarouselNavbar>\n )}\n <CarouselSwiper\n {...props}\n onInit={swiper => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.prevEl = prevRef.current;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.nextEl = nextRef.current;\n swiper.navigation.init();\n swiper.navigation.update();\n // console.log(\"Swiper\", swiper);\n }}\n >\n {React.Children.map(children, child => (\n <SwiperSlide>{child}</SwiperSlide>\n ))}\n </CarouselSwiper>\n </CarouselContainer>\n );\n};\n","import styled from 'styled-components';\n// eslint-disable-next-line import/extensions\nimport { Swiper } from 'swiper/react';\n\nexport const CarouselSwiper = styled(Swiper)`\n .swiper-wrapper {\n box-sizing: inherit !important;\n @media (min-width: 744px) {\n scroll-padding: 40px !important;\n }\n @media (min-width: 1128px) {\n --scroll-padding: max(80px, calc((100vw - 1600px) / 2)) !important;\n scroll-padding: var(--scroll-padding) !important;\n }\n scroll-snap-type: x mandatory !important;\n overflow-x: auto !important;\n display: flex !important;\n scroll-padding: 24px !important;\n .swiper-slide {\n @media (min-width: 744px) {\n min-width: 476px !important;\n max-width: 588px !important;\n flex: 1 0 calc((100% - 80px) * 0.75) !important;\n }\n @media (min-width: 1128px) {\n flex: 1 0 calc(50% - 88px) !important;\n }\n margin-left: 16px !important;\n flex: 1 0 calc(100% - 84px) !important;\n scroll-snap-align: start !important;\n scroll-snap-stop: always !important;\n }\n .swiper-slide:first-of-type {\n @media (min-width: 744px) {\n padding-left: 40px !important;\n min-width: calc(516px) !important;\n max-width: calc(628px) !important;\n flex: 1 0 calc((100% - 80px) * 0.75 + 40px) !important;\n }\n @media (min-width: 1128px) {\n max-width: calc(588px + max(80px, (100vw - 1600px) / 2)) !important;\n flex: 1 0 calc(50% - 8px) !important;\n padding-left: max(80px, (100vw - 1600px) / 2) !important;\n }\n @media (min-width: 2080px) {\n max-width: calc(588px + max(80px, (100vw - 1930px) / 2)) !important;\n flex: 1 0 calc(50% - 8px) !important;\n padding-left: max(80px, (100vw - 1930px) / 2) !important;\n }\n flex: 1 0 calc(100% - 84px) !important;\n scroll-snap-align: start !important;\n scroll-snap-stop: always !important;\n margin-left: 0px !important;\n padding-left: 24px !important;\n }\n .swiper-slide:last-of-type {\n @media (min-width: 744px) {\n padding-right: 40px !important;\n min-width: calc(516px) !important;\n max-width: calc(628px) !important;\n flex: 1 0 calc((100% - 80px) * 0.75 + 40px) !important;\n }\n @media (min-width: 1128px) {\n max-width: calc(588px + max(80px, (100vw - 1600px) / 2)) !important;\n flex: 1 0 calc(50% - 8px) !important;\n padding-right: max(80px, (100vw - 1600px) / 2) !important;\n }\n @media (min-width: 2080px) {\n max-width: calc(588px + max(80px, (100vw - 1930px) / 2)) !important;\n flex: 1 0 calc(50% - 8px) !important;\n padding-right: max(80px, (100vw - 1930px) / 2) !important;\n }\n margin-left: 16px !important;\n flex: 1 0 calc(100% - 84px) !important;\n scroll-snap-align: start !important;\n scroll-snap-stop: always !important;\n padding-right: 24px !important;\n }\n }\n`;\n","/* eslint-disable unused-imports/no-unused-vars */\nimport React, { useRef } from 'react';\n\nimport { Container } from '@fox-dls/layout';\nimport SwiperCore, { Navigation } from 'swiper';\n// eslint-disable-next-line import/extensions\nimport { SwiperSlide } from 'swiper/react';\n\nimport {\n CarouselContainer,\n CarouselNavbar,\n NavbarTitleContainer,\n NavbarControlsContainer,\n NavbarControlsQuick,\n NavbarControlsSpace,\n ArrowsContainer,\n ArrowsFlex,\n ArrowsDivider,\n ArrowsButton,\n ArrowsIconClip,\n ArrowsSvg\n} from '../styles';\nimport { CarouselSwiper } from './styles';\n\nSwiperCore.use([Navigation]);\n\nexport const FreeCarousel: React.FC<any> = ({\n children,\n navigation,\n title,\n controls,\n quickLink,\n onShowMore,\n ...props\n}) => {\n const prevRef = useRef<HTMLDivElement>(null);\n const nextRef = useRef<HTMLDivElement>(null);\n return (\n <CarouselContainer>\n <div\n css={`\n @media (max-width: 744px) {\n display: none !important;\n }\n `}\n >\n <Container>\n {navigation && (\n <CarouselNavbar>\n {title && <NavbarTitleContainer>{title}</NavbarTitleContainer>}\n {controls && (\n <NavbarControlsContainer>\n {onShowMore && (\n <NavbarControlsQuick onClick={onShowMore}>\n Show More\n </NavbarControlsQuick>\n )}\n <NavbarControlsSpace />\n <ArrowsContainer aria-hidden=\"false\">\n <ArrowsFlex>\n <ArrowsButton\n ref={prevRef}\n aria-label=\"Previous\"\n type=\"button\"\n >\n <span\n css={`\n position: relative;\n `}\n >\n <ArrowsIconClip />\n <ArrowsSvg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g fill=\"none\">\n <path d=\"m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932\" />\n </g>\n </ArrowsSvg>\n </span>\n </ArrowsButton>\n <ArrowsDivider />\n <ArrowsButton\n aria-label=\"Next\"\n type=\"button\"\n ref={nextRef}\n >\n <span\n css={`\n position: relative;\n `}\n >\n <ArrowsIconClip />\n <ArrowsSvg\n viewBox=\"0 0 32 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n role=\"presentation\"\n focusable=\"false\"\n >\n <g fill=\"none\">\n <path d=\"m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932\" />\n </g>\n </ArrowsSvg>\n </span>\n </ArrowsButton>\n </ArrowsFlex>\n </ArrowsContainer>\n </NavbarControlsContainer>\n )}\n </CarouselNavbar>\n )}\n </Container>\n </div>\n <CarouselSwiper\n {...props}\n cssMode\n onInit={swiper => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.prevEl = prevRef.current;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.nextEl = nextRef.current;\n swiper.navigation.init();\n swiper.navigation.update();\n // console.log(\"Swiper\", swiper);\n }}\n >\n {React.Children.map(children, child => (\n <SwiperSlide>{child}</SwiperSlide>\n ))}\n </CarouselSwiper>\n </CarouselContainer>\n );\n};\n","import ButtonUnstyled from '@mui/core/ButtonUnstyled';\nimport styled from 'styled-components';\n// eslint-disable-next-line import/extensions\nimport { Swiper } from 'swiper/react';\n\nexport const CarouselContainer = styled.div``;\n\nexport const CarouselSwiper = styled(Swiper)`\n height: 100%;\n .swiper-pagination {\n .swiper-pagination-bullet-active {\n background-color: #fff;\n }\n .swiper-pagination-bullet-active-next {\n background-color: #ffffff;\n }\n .swiper-pagination-bullet {\n background-color: #ffffff;\n }\n }\n`;\n\nexport const CarouselPill = styled(ButtonUnstyled)`\n :hover {\n border-color: rgba(0, 0, 0, 0.08) !important;\n background-color: #ffffff !important;\n color: #000000 !important;\n box-shadow: 0px 0px 0px 1px transparent, 0px 0px 0px 4px transparent,\n 0px 6px 16px rgb(0 0 0 / 12%) !important;\n -webkit-transform: scale(1.04) !important;\n -ms-transform: scale(1.04) !important;\n transform: scale(1.04) !important;\n }\n\n -webkit-box-pack: center !important;\n -ms-flex-pack: center !important;\n -webkit-box-align: center !important;\n -ms-flex-align: center !important;\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n display: -webkit-inline-box !important;\n display: -moz-inline-box !important;\n display: -ms-inline-flexbox !important;\n display: -webkit-inline-flex !important;\n display: inline-flex !important;\n border-radius: 50% !important;\n border: 0px !important;\n outline: none !important;\n margin: 0px !important;\n padding: 0px !important;\n color: #222222 !important;\n background-color: rgba(255, 255, 255, 0.9) !important;\n cursor: pointer !important;\n -ms-touch-action: manipulation !important;\n touch-action: manipulation !important;\n -webkit-align-items: center !important;\n align-items: center !important;\n -webkit-justify-content: center !important;\n justify-content: center !important;\n border-style: solid !important;\n border-width: 1px !important;\n background-clip: padding-box !important;\n border-color: rgba(0, 0, 0, 0.08) !important;\n box-shadow: 0px 0px 0px 1px transparent, 0px 0px 0px 4px transparent,\n 0px 2px 4px rgb(0 0 0 / 18%) !important;\n -webkit-transition: -webkit-transform 0.25s ease, transform 0.25s ease !important;\n -moz-transition: transform 0.25s ease !important;\n transition: -ms-transform 0.25s ease, -webkit-transform 0.25s ease,\n transform 0.25s ease !important;\n width: 32px !important;\n height: 32px !important;\n`;\n\nexport const CarouselPillSvg = styled.svg`\n height: 10px;\n width: 10px;\n display: block;\n fill: currentcolor;\n`;\n","/* eslint-disable unused-imports/no-unused-vars */\nimport React, { useRef } from 'react';\n\nimport SwiperCore, { Navigation, Pagination } from 'swiper';\n// eslint-disable-next-line import/extensions\nimport { SwiperSlide } from 'swiper/react';\n\nimport { CarouselSwiper, CarouselPillSvg, CarouselPill } from './styles';\n\nSwiperCore.use([Navigation, Pagination]);\n\nexport const PaginationCarousel: React.FC<any> = ({\n children,\n navigation,\n title,\n controls,\n ...props\n}) => {\n const prevRef = useRef<HTMLDivElement>(null);\n const nextRef = useRef<HTMLDivElement>(null);\n return (\n <>\n <div\n css={`\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n left: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n `}\n >\n <CarouselPill ref={prevRef}>\n <span\n css={`\n position: relative !important;\n `}\n >\n <CarouselPillSvg\n viewBox=\"0 0 16 16\"\n role=\"presentation\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"m10.8 16c-.4 0-.7-.1-.9-.4l-6.8-6.7c-.5-.5-.5-1.3 0-1.8l6.8-6.7c.5-.5 1.2-.5 1.7 0s .5 1.2 0 1.7l-5.8 5.9 5.8 5.9c.5.5.5 1.2 0 1.7-.2.3-.5.4-.8.4\" />\n </CarouselPillSvg>\n </span>\n </CarouselPill>\n </div>\n <div\n css={`\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n right: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n `}\n >\n <CarouselPill ref={nextRef}>\n <span\n css={`\n position: relative !important;\n `}\n >\n <CarouselPillSvg\n viewBox=\"0 0 16 16\"\n role=\"presentation\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"m5.3 16c .3 0 .6-.1.8-.4l6.8-6.7c.5-.5.5-1.3 0-1.8l-6.8-6.7c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l5.8 5.9-5.8 5.9c-.5.5-.5 1.2 0 1.7.2.3.5.4.9.4\" />\n </CarouselPillSvg>\n </span>\n </CarouselPill>\n </div>\n <CarouselSwiper\n {...props}\n pagination={{\n dynamicBullets: true\n }}\n onInit={swiper => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.prevEl = prevRef.current;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line no-param-reassign\n swiper.params.navigation.nextEl = nextRef.current;\n swiper.navigation.init();\n swiper.navigation.update();\n // console.log(\"Swiper\", swiper);\n }}\n >\n {React.Children.map(children, child =>\n React.cloneElement(<SwiperSlide>{child}</SwiperSlide>, {\n ...props\n })\n )}\n </CarouselSwiper>\n </>\n );\n};\n"],"names":["CarouselSwiper","styled","Swiper","CarouselPillContainer","div","CarouselPill","ButtonUnstyled","use","Navigation","CarouselContainer","CarouselNavbar","NavbarTitleContainer","NavbarControlsContainer","NavbarControlsQuick","a","NavbarControlsSpace","span","ArrowsContainer","ArrowsFlex","ArrowsButton","ArrowsDivider","ArrowsIconClip","ArrowsSvg","svg","SwiperCore__default","CarouselPillSvg","Pagination","children","navigation","title","controls","onShowMore","props","prevRef","useRef","nextRef","React","onClick","ref","type","css","viewBox","xmlns","role","focusable","fill","d","onInit","swiper","params","prevEl","current","nextEl","init","update","Children","map","child","SwiperSlide","quickLink","Container","cssMode","pagination","dynamicBullets","cloneElement","arrows","useState","progress","isBeginning","isEnd","swiperSlides","setSwiperSlides","setSwiper","left","slidePrev","slidesPerView","onSlideChange","right","slideNext"],"mappings":"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"}
@@ -0,0 +1,434 @@
1
+ import React, { useRef, useState } from 'react';
2
+ import styled, { css } from 'styled-components';
3
+ import SwiperCore, { Navigation, Pagination } from 'swiper';
4
+ import { Swiper, SwiperSlide } from 'swiper/react';
5
+ import ButtonUnstyled from '@mui/core/ButtonUnstyled';
6
+ import { Container } from '@fox-dls/layout';
7
+
8
+ function _extends() {
9
+ _extends = Object.assign || function (target) {
10
+ for (var i = 1; i < arguments.length; i++) {
11
+ var source = arguments[i];
12
+
13
+ for (var key in source) {
14
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
15
+ target[key] = source[key];
16
+ }
17
+ }
18
+ }
19
+
20
+ return target;
21
+ };
22
+
23
+ return _extends.apply(this, arguments);
24
+ }
25
+
26
+ function _objectWithoutPropertiesLoose(source, excluded) {
27
+ if (source == null) return {};
28
+ var target = {};
29
+ var sourceKeys = Object.keys(source);
30
+ var key, i;
31
+
32
+ for (i = 0; i < sourceKeys.length; i++) {
33
+ key = sourceKeys[i];
34
+ if (excluded.indexOf(key) >= 0) continue;
35
+ target[key] = source[key];
36
+ }
37
+
38
+ return target;
39
+ }
40
+
41
+ function _taggedTemplateLiteralLoose(strings, raw) {
42
+ if (!raw) {
43
+ raw = strings.slice(0);
44
+ }
45
+
46
+ strings.raw = raw;
47
+ return strings;
48
+ }
49
+
50
+ var CarouselSwiper = /*#__PURE__*/styled(Swiper).withConfig({
51
+ displayName: "styles__CarouselSwiper",
52
+ componentId: "sc-1sue7gh-1"
53
+ })(["margin:0px !important;.swiper-wrapper{.swiper-slide{scroll-snap-align:start !important;width:auto !important;}}"]);
54
+ var CarouselPillContainer = /*#__PURE__*/styled.div.withConfig({
55
+ displayName: "styles__CarouselPillContainer",
56
+ componentId: "sc-1sue7gh-2"
57
+ })(["display:inline-block !important;padding-right:8px !important;padding-top:4px !important;padding-bottom:4px !important;"]);
58
+ var CarouselPill = /*#__PURE__*/styled(ButtonUnstyled).withConfig({
59
+ displayName: "styles__CarouselPill",
60
+ componentId: "sc-1sue7gh-3"
61
+ })(["-webkit-box-pack:center !important;-webkit-box-align:center !important;appearance:none !important;display:inline-flex !important;border-radius:50% !important;border:1px solid rgb(221,221,221) !important;outline:none !important;margin:0px !important;padding:0px !important;color:rgb(34,34,34) !important;cursor:pointer !important;touch-action:manipulation !important;position:relative !important;background:transparent !important;transition:-ms-transform 0.25s ease 0s,-webkit-transform 0.25s ease 0s,transform 0.25s ease 0s !important;align-items:center !important;justify-content:center !important;width:36px !important;height:36px !important;::before{content:'' !important;display:block !important;position:absolute !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;width:36px !important;height:36px !important;border-radius:50% !important;border:1px solid rgb(221,221,221) !important;}"]);
62
+
63
+ var _templateObject, _templateObject2;
64
+
65
+ var _excluded = ["children", "navigation", "title", "controls", "arrows"];
66
+ SwiperCore.use([Navigation]);
67
+ var PillsCarousel = function PillsCarousel(_ref) {
68
+ var children = _ref.children,
69
+ arrows = _ref.arrows,
70
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
71
+
72
+ var prevRef = useRef(null);
73
+ var nextRef = useRef(null);
74
+
75
+ var _useState = useState({
76
+ progress: 0,
77
+ isBeginning: true,
78
+ isEnd: false
79
+ }),
80
+ swiperSlides = _useState[0],
81
+ setSwiperSlides = _useState[1];
82
+
83
+ var _useState2 = useState(null),
84
+ swiper = _useState2[0],
85
+ setSwiper = _useState2[1];
86
+
87
+ return /*#__PURE__*/React.createElement("div", {
88
+ css: "\n display: flex !important;\n position: relative !important;\n min-width: 0px !important;\n "
89
+ }, /*#__PURE__*/React.createElement("div", {
90
+ css: "\n position: absolute !important;\n left: 0px !important;\n z-index: 3 !important;\n width: 65px !important;\n background: linear-gradient(\n to right,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n " + (swiperSlides.isBeginning && css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: none !important;\n visibility: hidden !important;\n "])))) + "\n "
91
+ }, arrows && /*#__PURE__*/React.createElement(CarouselPillContainer, null, /*#__PURE__*/React.createElement(CarouselPill, {
92
+ left: +true,
93
+ ref: prevRef,
94
+ "aria-label": "Previous",
95
+ type: "button",
96
+ onClick: function onClick() {
97
+ return swiper.slidePrev();
98
+ }
99
+ }, /*#__PURE__*/React.createElement("span", {
100
+ css: "\n position: relative !important;\n "
101
+ }, /*#__PURE__*/React.createElement("svg", {
102
+ viewBox: "0 0 32 32",
103
+ xmlns: "http://www.w3.org/2000/svg",
104
+ "aria-hidden": "true",
105
+ role: "presentation",
106
+ focusable: "false",
107
+ css: "\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n "
108
+ }, /*#__PURE__*/React.createElement("g", {
109
+ fill: "none"
110
+ }, /*#__PURE__*/React.createElement("path", {
111
+ d: "m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"
112
+ }))))))), /*#__PURE__*/React.createElement(CarouselSwiper, Object.assign({}, props, {
113
+ cssMode: false,
114
+ slidesPerView: "auto",
115
+ onInit: function onInit(swiper) {
116
+ setSwiper(swiper); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
117
+ // @ts-ignore
118
+ // eslint-disable-next-line no-param-reassign
119
+
120
+ swiper.params.navigation.prevEl = prevRef.current; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
121
+ // @ts-ignore
122
+ // eslint-disable-next-line no-param-reassign
123
+
124
+ swiper.params.navigation.nextEl = nextRef.current;
125
+ swiper.navigation.init();
126
+ swiper.navigation.update();
127
+ setSwiperSlides({
128
+ progress: swiper.progress,
129
+ isBeginning: swiper.isBeginning,
130
+ isEnd: swiper.isEnd
131
+ }); // console.log("Swiper", swiper);
132
+ },
133
+ onSlideChange: function onSlideChange(swiper) {
134
+ // console.log("Swiper Change", swiper);
135
+ setSwiperSlides({
136
+ progress: swiper.progress,
137
+ isBeginning: swiper.isBeginning,
138
+ isEnd: swiper.isEnd
139
+ });
140
+ }
141
+ }), React.Children.map(children, function (child) {
142
+ return /*#__PURE__*/React.createElement(SwiperSlide, null, /*#__PURE__*/React.createElement("div", {
143
+ css: "\n display: inline-block !important;\n white-space: nowrap !important;\n padding-right: 8px !important;\n padding-top: 4px !important;\n padding-bottom: 4px !important;\n "
144
+ }, child));
145
+ })), /*#__PURE__*/React.createElement("div", {
146
+ css: "\n -webkit-box-pack: end !important;\n position: absolute !important;\n right: 0px !important;\n z-index: 3 !important;\n width: 75px !important;\n display: flex !important;\n justify-content: flex-end !important;\n background: linear-gradient(\n to left,\n rgb(255, 255, 255) 56.77%,\n rgba(255, 255, 255, 0) 94.47%\n ) !important;\n " + (swiperSlides.isEnd && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n display: none !important;\n visibility: hidden !important;\n "])))) + "\n "
147
+ }, arrows && /*#__PURE__*/React.createElement(CarouselPillContainer, null, /*#__PURE__*/React.createElement(CarouselPill, {
148
+ right: +true,
149
+ "aria-label": "Next",
150
+ type: "button",
151
+ ref: nextRef,
152
+ onClick: function onClick() {
153
+ return swiper.slideNext();
154
+ }
155
+ }, /*#__PURE__*/React.createElement("span", {
156
+ css: "\n position: relative !important;\n "
157
+ }, /*#__PURE__*/React.createElement("svg", {
158
+ viewBox: "0 0 32 32",
159
+ xmlns: "http://www.w3.org/2000/svg",
160
+ "aria-hidden": "true",
161
+ role: "presentation",
162
+ focusable: "false",
163
+ css: "\n display: block;\n fill: none;\n height: 12px;\n width: 12px;\n stroke: currentcolor;\n stroke-width: 5.33333;\n overflow: visible;\n "
164
+ }, /*#__PURE__*/React.createElement("g", {
165
+ fill: "none"
166
+ }, /*#__PURE__*/React.createElement("path", {
167
+ d: "m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"
168
+ }))))))));
169
+ };
170
+
171
+ var CarouselContainer = /*#__PURE__*/styled.div.withConfig({
172
+ displayName: "styles__CarouselContainer",
173
+ componentId: "sc-dwepxh-0"
174
+ })(["position:relative !important;z-index:0 !important;"]);
175
+ var CarouselNavbar = /*#__PURE__*/styled.div.withConfig({
176
+ displayName: "styles__CarouselNavbar",
177
+ componentId: "sc-dwepxh-1"
178
+ })(["-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;-webkit-box-align:center !important;-ms-flex-align:center !important;color:#222222 !important;display:-webkit-box !important;display:-moz-box !important;display:-ms-flexbox !important;display:-webkit-flex !important;display:flex !important;-webkit-align-items:center !important;align-items:center !important;-webkit-justify-content:space-between !important;justify-content:space-between !important;margin-bottom:16px !important;"]);
179
+ var NavbarTitleContainer = /*#__PURE__*/styled.div.withConfig({
180
+ displayName: "styles__NavbarTitleContainer",
181
+ componentId: "sc-dwepxh-2"
182
+ })(["margin-right:24px !important;width:auto !important;"]);
183
+ var NavbarControlsContainer = /*#__PURE__*/styled.div.withConfig({
184
+ displayName: "styles__NavbarControlsContainer",
185
+ componentId: "sc-dwepxh-4"
186
+ })(["display:flex !important;align-items:center !important;margin-left:auto !important;"]);
187
+ var NavbarControlsQuick = /*#__PURE__*/styled.a.withConfig({
188
+ displayName: "styles__NavbarControlsQuick",
189
+ componentId: "sc-dwepxh-5"
190
+ })(["@media (max-width:744px){display:none !important;}font-size:inherit !important;font-family:inherit !important;font-style:inherit !important;font-variant:inherit !important;line-height:inherit !important;color:#222222 !important;text-decoration:underline !important;border-radius:4px !important;font-weight:600 !important;outline:none !important;"]);
191
+ var NavbarControlsSpace = /*#__PURE__*/styled.span.withConfig({
192
+ displayName: "styles__NavbarControlsSpace",
193
+ componentId: "sc-dwepxh-6"
194
+ })(["display:inline-block !important;height:32px !important;width:1px !important;margin-right:16px !important;padding:0px !important;border:none !important;"]);
195
+ var ArrowsContainer = /*#__PURE__*/styled.div.withConfig({
196
+ displayName: "styles__ArrowsContainer",
197
+ componentId: "sc-dwepxh-7"
198
+ })(["-webkit-box-align:center !important;color:rgb(34,34,34) !important;display:flex !important;align-items:center !important;margin-left:auto !important;"]);
199
+ var ArrowsFlex = /*#__PURE__*/styled.div.withConfig({
200
+ displayName: "styles__ArrowsFlex",
201
+ componentId: "sc-dwepxh-8"
202
+ })(["display:-webkit-box !important;display:-moz-box !important;display:-ms-flexbox !important;display:-webkit-flex !important;display:flex !important;"]);
203
+ var ArrowsButton = /*#__PURE__*/styled(ButtonUnstyled).withConfig({
204
+ displayName: "styles__ArrowsButton",
205
+ componentId: "sc-dwepxh-9"
206
+ })(["-webkit-box-pack:center !important;-webkit-box-align:center !important;appearance:none !important;display:inline-flex !important;border-radius:50% !important;border:none !important;outline:none !important;margin:0px !important;padding:0px !important;color:rgb(34,34,34) !important;cursor:pointer !important;touch-action:manipulation !important;position:relative !important;background:transparent !important;transition:-ms-transform 0.25s ease 0s,-webkit-transform 0.25s ease 0s,transform 0.25s ease 0s !important;align-items:center !important;justify-content:center !important;width:32px !important;height:32px !important;:focus{box-shadow:none !important;}::before{content:'' !important;display:block !important;position:absolute !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;width:32px !important;height:32px !important;border-radius:50% !important;background:rgb(255,255,255) !important;border:1px solid rgb(221,221,221) !important;}:disabled{opacity:0.5 !important;cursor:not-allowed !important;color:rgb(221,221,221) !important;transform:scale(1) !important;}:hover:not([disabled]){color:rgb(0,0,0) !important;transform:scale(1.04) !important;}"]);
207
+ var ArrowsDivider = /*#__PURE__*/styled.span.withConfig({
208
+ displayName: "styles__ArrowsDivider",
209
+ componentId: "sc-dwepxh-10"
210
+ })(["margin-left:8px !important;"]);
211
+ var ArrowsIconClip = /*#__PURE__*/styled.span.withConfig({
212
+ displayName: "styles__ArrowsIconClip",
213
+ componentId: "sc-dwepxh-11"
214
+ })(["border:0px !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(100%) !important;clip-path:inset(100%) !important;height:1px !important;overflow:hidden !important;padding:0px !important;position:absolute !important;white-space:nowrap !important;width:1px !important;"]);
215
+ var ArrowsSvg = /*#__PURE__*/styled.svg.withConfig({
216
+ displayName: "styles__ArrowsSvg",
217
+ componentId: "sc-dwepxh-12"
218
+ })(["display:block;fill:none;height:12px;width:12px;stroke:currentcolor;stroke-width:4;overflow:visible;"]);
219
+
220
+ var CarouselSwiper$1 = /*#__PURE__*/styled(Swiper).withConfig({
221
+ displayName: "styles__CarouselSwiper",
222
+ componentId: "sc-1ja5jv1-0"
223
+ })([""]);
224
+
225
+ var _excluded$1 = ["children", "navigation", "title", "controls", "onShowMore"];
226
+ SwiperCore.use([Navigation]);
227
+ var CardCarousel = function CardCarousel(_ref) {
228
+ var children = _ref.children,
229
+ navigation = _ref.navigation,
230
+ title = _ref.title,
231
+ controls = _ref.controls,
232
+ onShowMore = _ref.onShowMore,
233
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
234
+
235
+ var prevRef = useRef(null);
236
+ var nextRef = useRef(null);
237
+ return /*#__PURE__*/React.createElement(CarouselContainer, null, navigation && /*#__PURE__*/React.createElement(CarouselNavbar, null, title && /*#__PURE__*/React.createElement(NavbarTitleContainer, null, title), controls && /*#__PURE__*/React.createElement(NavbarControlsContainer, null, onShowMore && /*#__PURE__*/React.createElement(NavbarControlsQuick, {
238
+ onClick: onShowMore
239
+ }, "Show More"), /*#__PURE__*/React.createElement(NavbarControlsSpace, null), /*#__PURE__*/React.createElement(ArrowsContainer, {
240
+ "aria-hidden": "false"
241
+ }, /*#__PURE__*/React.createElement(ArrowsFlex, null, /*#__PURE__*/React.createElement(ArrowsButton, {
242
+ ref: prevRef,
243
+ "aria-label": "Previous",
244
+ type: "button"
245
+ }, /*#__PURE__*/React.createElement("span", {
246
+ css: "\n position: relative;\n "
247
+ }, /*#__PURE__*/React.createElement(ArrowsIconClip, null), /*#__PURE__*/React.createElement(ArrowsSvg, {
248
+ viewBox: "0 0 32 32",
249
+ xmlns: "http://www.w3.org/2000/svg",
250
+ "aria-hidden": "true",
251
+ role: "presentation",
252
+ focusable: "false"
253
+ }, /*#__PURE__*/React.createElement("g", {
254
+ fill: "none"
255
+ }, /*#__PURE__*/React.createElement("path", {
256
+ d: "m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"
257
+ }))))), /*#__PURE__*/React.createElement(ArrowsDivider, null), /*#__PURE__*/React.createElement(ArrowsButton, {
258
+ "aria-label": "Next",
259
+ type: "button",
260
+ ref: nextRef
261
+ }, /*#__PURE__*/React.createElement("span", {
262
+ css: "\n position: relative;\n "
263
+ }, /*#__PURE__*/React.createElement(ArrowsIconClip, null), /*#__PURE__*/React.createElement(ArrowsSvg, {
264
+ viewBox: "0 0 32 32",
265
+ xmlns: "http://www.w3.org/2000/svg",
266
+ "aria-hidden": "true",
267
+ role: "presentation",
268
+ focusable: "false"
269
+ }, /*#__PURE__*/React.createElement("g", {
270
+ fill: "none"
271
+ }, /*#__PURE__*/React.createElement("path", {
272
+ d: "m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"
273
+ }))))))))), /*#__PURE__*/React.createElement(CarouselSwiper$1, Object.assign({}, props, {
274
+ onInit: function onInit(swiper) {
275
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
276
+ // @ts-ignore
277
+ // eslint-disable-next-line no-param-reassign
278
+ swiper.params.navigation.prevEl = prevRef.current; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
279
+ // @ts-ignore
280
+ // eslint-disable-next-line no-param-reassign
281
+
282
+ swiper.params.navigation.nextEl = nextRef.current;
283
+ swiper.navigation.init();
284
+ swiper.navigation.update(); // console.log("Swiper", swiper);
285
+ }
286
+ }), React.Children.map(children, function (child) {
287
+ return /*#__PURE__*/React.createElement(SwiperSlide, null, child);
288
+ })));
289
+ };
290
+
291
+ var CarouselSwiper$2 = /*#__PURE__*/styled(Swiper).withConfig({
292
+ displayName: "styles__CarouselSwiper",
293
+ componentId: "sc-y1spms-0"
294
+ })([".swiper-wrapper{box-sizing:inherit !important;@media (min-width:744px){scroll-padding:40px !important;}@media (min-width:1128px){--scroll-padding:max(80px,calc((100vw - 1600px) / 2)) !important;scroll-padding:var(--scroll-padding) !important;}scroll-snap-type:x mandatory !important;overflow-x:auto !important;display:flex !important;scroll-padding:24px !important;.swiper-slide{@media (min-width:744px){min-width:476px !important;max-width:588px !important;flex:1 0 calc((100% - 80px) * 0.75) !important;}@media (min-width:1128px){flex:1 0 calc(50% - 88px) !important;}margin-left:16px !important;flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;}.swiper-slide:first-of-type{@media (min-width:744px){padding-left:40px !important;min-width:calc(516px) !important;max-width:calc(628px) !important;flex:1 0 calc((100% - 80px) * 0.75 + 40px) !important;}@media (min-width:1128px){max-width:calc(588px + max(80px,(100vw - 1600px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-left:max(80px,(100vw - 1600px) / 2) !important;}@media (min-width:2080px){max-width:calc(588px + max(80px,(100vw - 1930px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-left:max(80px,(100vw - 1930px) / 2) !important;}flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;margin-left:0px !important;padding-left:24px !important;}.swiper-slide:last-of-type{@media (min-width:744px){padding-right:40px !important;min-width:calc(516px) !important;max-width:calc(628px) !important;flex:1 0 calc((100% - 80px) * 0.75 + 40px) !important;}@media (min-width:1128px){max-width:calc(588px + max(80px,(100vw - 1600px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-right:max(80px,(100vw - 1600px) / 2) !important;}@media (min-width:2080px){max-width:calc(588px + max(80px,(100vw - 1930px) / 2)) !important;flex:1 0 calc(50% - 8px) !important;padding-right:max(80px,(100vw - 1930px) / 2) !important;}margin-left:16px !important;flex:1 0 calc(100% - 84px) !important;scroll-snap-align:start !important;scroll-snap-stop:always !important;padding-right:24px !important;}}"]);
295
+
296
+ var _excluded$2 = ["children", "navigation", "title", "controls", "quickLink", "onShowMore"];
297
+ SwiperCore.use([Navigation]);
298
+ var FreeCarousel = function FreeCarousel(_ref) {
299
+ var children = _ref.children,
300
+ navigation = _ref.navigation,
301
+ title = _ref.title,
302
+ controls = _ref.controls,
303
+ onShowMore = _ref.onShowMore,
304
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
305
+
306
+ var prevRef = useRef(null);
307
+ var nextRef = useRef(null);
308
+ return /*#__PURE__*/React.createElement(CarouselContainer, null, /*#__PURE__*/React.createElement("div", {
309
+ css: "\n @media (max-width: 744px) {\n display: none !important;\n }\n "
310
+ }, /*#__PURE__*/React.createElement(Container, null, navigation && /*#__PURE__*/React.createElement(CarouselNavbar, null, title && /*#__PURE__*/React.createElement(NavbarTitleContainer, null, title), controls && /*#__PURE__*/React.createElement(NavbarControlsContainer, null, onShowMore && /*#__PURE__*/React.createElement(NavbarControlsQuick, {
311
+ onClick: onShowMore
312
+ }, "Show More"), /*#__PURE__*/React.createElement(NavbarControlsSpace, null), /*#__PURE__*/React.createElement(ArrowsContainer, {
313
+ "aria-hidden": "false"
314
+ }, /*#__PURE__*/React.createElement(ArrowsFlex, null, /*#__PURE__*/React.createElement(ArrowsButton, {
315
+ ref: prevRef,
316
+ "aria-label": "Previous",
317
+ type: "button"
318
+ }, /*#__PURE__*/React.createElement("span", {
319
+ css: "\n position: relative;\n "
320
+ }, /*#__PURE__*/React.createElement(ArrowsIconClip, null), /*#__PURE__*/React.createElement(ArrowsSvg, {
321
+ viewBox: "0 0 32 32",
322
+ xmlns: "http://www.w3.org/2000/svg",
323
+ "aria-hidden": "true",
324
+ role: "presentation",
325
+ focusable: "false"
326
+ }, /*#__PURE__*/React.createElement("g", {
327
+ fill: "none"
328
+ }, /*#__PURE__*/React.createElement("path", {
329
+ d: "m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932"
330
+ }))))), /*#__PURE__*/React.createElement(ArrowsDivider, null), /*#__PURE__*/React.createElement(ArrowsButton, {
331
+ "aria-label": "Next",
332
+ type: "button",
333
+ ref: nextRef
334
+ }, /*#__PURE__*/React.createElement("span", {
335
+ css: "\n position: relative;\n "
336
+ }, /*#__PURE__*/React.createElement(ArrowsIconClip, null), /*#__PURE__*/React.createElement(ArrowsSvg, {
337
+ viewBox: "0 0 32 32",
338
+ xmlns: "http://www.w3.org/2000/svg",
339
+ "aria-hidden": "true",
340
+ role: "presentation",
341
+ focusable: "false"
342
+ }, /*#__PURE__*/React.createElement("g", {
343
+ fill: "none"
344
+ }, /*#__PURE__*/React.createElement("path", {
345
+ d: "m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932"
346
+ }))))))))))), /*#__PURE__*/React.createElement(CarouselSwiper$2, Object.assign({}, props, {
347
+ cssMode: true,
348
+ onInit: function onInit(swiper) {
349
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
350
+ // @ts-ignore
351
+ // eslint-disable-next-line no-param-reassign
352
+ swiper.params.navigation.prevEl = prevRef.current; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
353
+ // @ts-ignore
354
+ // eslint-disable-next-line no-param-reassign
355
+
356
+ swiper.params.navigation.nextEl = nextRef.current;
357
+ swiper.navigation.init();
358
+ swiper.navigation.update(); // console.log("Swiper", swiper);
359
+ }
360
+ }), React.Children.map(children, function (child) {
361
+ return /*#__PURE__*/React.createElement(SwiperSlide, null, child);
362
+ })));
363
+ };
364
+
365
+ var CarouselSwiper$3 = /*#__PURE__*/styled(Swiper).withConfig({
366
+ displayName: "styles__CarouselSwiper",
367
+ componentId: "sc-jtjv4e-1"
368
+ })(["height:100%;.swiper-pagination{.swiper-pagination-bullet-active{background-color:#fff;}.swiper-pagination-bullet-active-next{background-color:#ffffff;}.swiper-pagination-bullet{background-color:#ffffff;}}"]);
369
+ var CarouselPill$1 = /*#__PURE__*/styled(ButtonUnstyled).withConfig({
370
+ displayName: "styles__CarouselPill",
371
+ componentId: "sc-jtjv4e-2"
372
+ })([":hover{border-color:rgba(0,0,0,0.08) !important;background-color:#ffffff !important;color:#000000 !important;box-shadow:0px 0px 0px 1px transparent,0px 0px 0px 4px transparent,0px 6px 16px rgb(0 0 0 / 12%) !important;-webkit-transform:scale(1.04) !important;-ms-transform:scale(1.04) !important;transform:scale(1.04) !important;}-webkit-box-pack:center !important;-ms-flex-pack:center !important;-webkit-box-align:center !important;-ms-flex-align:center !important;-webkit-appearance:none !important;-moz-appearance:none !important;appearance:none !important;display:-webkit-inline-box !important;display:-moz-inline-box !important;display:-ms-inline-flexbox !important;display:-webkit-inline-flex !important;display:inline-flex !important;border-radius:50% !important;border:0px !important;outline:none !important;margin:0px !important;padding:0px !important;color:#222222 !important;background-color:rgba(255,255,255,0.9) !important;cursor:pointer !important;-ms-touch-action:manipulation !important;touch-action:manipulation !important;-webkit-align-items:center !important;align-items:center !important;-webkit-justify-content:center !important;justify-content:center !important;border-style:solid !important;border-width:1px !important;background-clip:padding-box !important;border-color:rgba(0,0,0,0.08) !important;box-shadow:0px 0px 0px 1px transparent,0px 0px 0px 4px transparent,0px 2px 4px rgb(0 0 0 / 18%) !important;-webkit-transition:-webkit-transform 0.25s ease,transform 0.25s ease !important;-moz-transition:transform 0.25s ease !important;transition:-ms-transform 0.25s ease,-webkit-transform 0.25s ease,transform 0.25s ease !important;width:32px !important;height:32px !important;"]);
373
+ var CarouselPillSvg = /*#__PURE__*/styled.svg.withConfig({
374
+ displayName: "styles__CarouselPillSvg",
375
+ componentId: "sc-jtjv4e-3"
376
+ })(["height:10px;width:10px;display:block;fill:currentcolor;"]);
377
+
378
+ var _excluded$3 = ["children", "navigation", "title", "controls"];
379
+ SwiperCore.use([Navigation, Pagination]);
380
+ var PaginationCarousel = function PaginationCarousel(_ref) {
381
+ var children = _ref.children,
382
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
383
+
384
+ var prevRef = useRef(null);
385
+ var nextRef = useRef(null);
386
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
387
+ css: "\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n left: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n "
388
+ }, /*#__PURE__*/React.createElement(CarouselPill$1, {
389
+ ref: prevRef
390
+ }, /*#__PURE__*/React.createElement("span", {
391
+ css: "\n position: relative !important;\n "
392
+ }, /*#__PURE__*/React.createElement(CarouselPillSvg, {
393
+ viewBox: "0 0 16 16",
394
+ role: "presentation",
395
+ "aria-hidden": "true",
396
+ focusable: "false"
397
+ }, /*#__PURE__*/React.createElement("path", {
398
+ d: "m10.8 16c-.4 0-.7-.1-.9-.4l-6.8-6.7c-.5-.5-.5-1.3 0-1.8l6.8-6.7c.5-.5 1.2-.5 1.7 0s .5 1.2 0 1.7l-5.8 5.9 5.8 5.9c.5.5.5 1.2 0 1.7-.2.3-.5.4-.8.4"
399
+ }))))), /*#__PURE__*/React.createElement("div", {
400
+ css: "\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n position: absolute !important;\n top: 50% !important;\n pointer-events: auto !important;\n transform: translateY(-50%) !important;\n right: 8px !important;\n animation-duration: 0.3s !important;\n animation-name: fadein !important;\n z-index: 180 !important;\n opacity: 0 !important;\n :hover {\n opacity: 1 !important;\n }\n "
401
+ }, /*#__PURE__*/React.createElement(CarouselPill$1, {
402
+ ref: nextRef
403
+ }, /*#__PURE__*/React.createElement("span", {
404
+ css: "\n position: relative !important;\n "
405
+ }, /*#__PURE__*/React.createElement(CarouselPillSvg, {
406
+ viewBox: "0 0 16 16",
407
+ role: "presentation",
408
+ "aria-hidden": "true",
409
+ focusable: "false"
410
+ }, /*#__PURE__*/React.createElement("path", {
411
+ d: "m5.3 16c .3 0 .6-.1.8-.4l6.8-6.7c.5-.5.5-1.3 0-1.8l-6.8-6.7c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l5.8 5.9-5.8 5.9c-.5.5-.5 1.2 0 1.7.2.3.5.4.9.4"
412
+ }))))), /*#__PURE__*/React.createElement(CarouselSwiper$3, Object.assign({}, props, {
413
+ pagination: {
414
+ dynamicBullets: true
415
+ },
416
+ onInit: function onInit(swiper) {
417
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
418
+ // @ts-ignore
419
+ // eslint-disable-next-line no-param-reassign
420
+ swiper.params.navigation.prevEl = prevRef.current; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
421
+ // @ts-ignore
422
+ // eslint-disable-next-line no-param-reassign
423
+
424
+ swiper.params.navigation.nextEl = nextRef.current;
425
+ swiper.navigation.init();
426
+ swiper.navigation.update(); // console.log("Swiper", swiper);
427
+ }
428
+ }), React.Children.map(children, function (child) {
429
+ return /*#__PURE__*/React.cloneElement( /*#__PURE__*/React.createElement(SwiperSlide, null, child), _extends({}, props));
430
+ })));
431
+ };
432
+
433
+ export { CardCarousel, FreeCarousel, PaginationCarousel, PillsCarousel };
434
+ //# sourceMappingURL=carousels.esm.js.map