{"version":3,"sources":["webpack:///./Avensia.Common/Features/Shared/SharedComponents/molecules/ImageVideoBackground.tsx","webpack:///./Avensia.Common/Features/Shared/QuickShopProductModal/index.tsx","webpack:///./Avensia.Common/Features/Shared/Blocks/InformationBlock/InformationBlock.tsx"],"names":["AspectImageVideoBackground","props","children","image","paddingTop","videoSources","borderRadius","breakPoint","className","preset","isMobile","gotVideo","length","css","background","url","size","position","autoPlay","loop","muted","playsInline","coverContent","sources","ViewportSizeVideoBackground","fixedVideo","height","compose","hasVideo","Div","width","clipPath","overflow","AutoSizeVideoBackground","BaseSpan","span","fontStyle","fontWeight","textTransform","lineHeight","ProductLabel","alignItems","fontSize","display","ProductCount","letterSpacing","Heading","div","flexDirection","padding","xy","gap","TopContent","justifyContent","TopContentClose","cursor","ProductCardWrap","marginBottom","products","modalIsShown","hideModal","zIndex","Overlay","onClick","marginTop","isCompact","cellSpacing","quickAddToCart","map","product","index","key","itemNumber","listIndex","Background","backgroundAttachment","ButtonWrap","Text","margin","y","LinkedButton","textDecoration","state","currentBreakpoint","backgroundImage","backgroundImageSmallScreen","backgroundVideoSources","textColor","mainIntro","buttons","label","seeProductsButtonText","setModalIsShown","textColorFromColorSystem","monochrome","black","white","fadeColor","IOS","toString","error","FullWidth","attachment","color","D14_M14","D56_M32","text","button","to","title","theme","TransparentWhite","WhiteToTransparent","top","bottom"],"mappings":"yQA6BaA,EAA6B,SAEtCC,G,UAEQC,EAAA,EAAAA,SACNC,EAAA,EAAAA,MACAC,EAAA,EAAAA,WACAC,EAAA,EAAAA,aACAC,EAAA,EAAAA,aACAC,EAAA,EAAAA,WACAC,EAAA,EAAAA,UACAC,EAAA,EAAAA,OAEIC,EAAW,YAAUH,GACrBI,GAAgC,OAApB,EAAY,QAAb,EAACN,SAAY,eAAEO,QAAM,EAAI,GAAK,EAC/C,OACE,kBAAC,IAAgB,CACfJ,UAAWA,EACXK,IAAK,CACHT,WAAYA,IAGd,kBAAC,IAAgB,CACfS,IAAK,CACHC,WAA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N,EAACA,SAAK,eAAEY,IAAK,IAAOsF,UAAW,gCAAgCJ,EAAS,qBAAqBA,EAAS,gBAE/HjF,KAAMkF,EAAM,YAAc,QAC1BI,WAAYJ,EAAM,SAAW,QAC7BjF,SAAU,oBAKhB,kBAAC,IAAQ,CACPT,UAAU,OACVK,IAAG,GAOH,yBAAKL,UAAW,YAAkB,GAAI,EAAG,YAA2B,KAClE,kBAACsC,EAAO,CAACjC,IAAK,CAAE0F,MAAOV,GAA6BnD,SAAU,IAAe8D,SAC1Ed,GAEH,kBAACb,EAAI,CAAChE,IAAK,CAAE0F,MAAOV,GAA4BnD,SAAU,IAAe+D,SACtEjB,GAEH,kBAACZ,EAAU,MACA,QAAR,EAAAlB,SAAQ,eAAE9C,QAAS,GAClB,kBAAC,IAAW,CACV8F,KAAMf,EACN5B,QAAS,WAAM,OAAA6B,GAAgB,MAG3B,QADP,EACAH,SAAO,a,EAAErB,KAAI,SAACuC,EAAQrC,GAAU,OAC/B,kBAACU,EAAY,CACXT,IAAKD,EACLsC,GAAID,EAAO5F,IACX2F,KAAMC,EAAOD,KACbG,MAAOF,EAAOD,KACdI,MACwB,gBAAtBH,EAAO7F,WAA+B,IAAYiG,iBAAmB,IAAYC,4BAQ/F,kBAAC,IAAqB,CAACtG,SAAUA,EAAUiD,aAAcA,EAAcC,UAAW,WAAM,OAAAgC,GAAgB,IAAQlC,SAAUA,S,MApCjH,CACHT,QAAS,CACPgE,IAAQ7G,QACR8G,OAAQ","file":"assets/33.chunk.252bfcc9e5fb35adcd20.js","sourcesContent":["import React from 'react';\r\nimport { AspectRatioInner, AspectRatioOuter, OverlayNotABackdrop } from 'Shared/SharedComponents/atoms/AspectRatio';\r\nimport { styled, StyledProps } from '@glitz/react';\r\nimport { setImageBackground, Preset } from 'Shared/image-background';\r\nimport VideoSourceType from 'Shared/ViewModels/VideoSourceViewModel.type';\r\nimport VideoPlayer from 'Shared/Video/VideoPlayer'\r\nimport { isCompact } from 'Shared/Viewport';\r\n\r\ntype BasePropTypes = {\r\n children?: React.ReactNode;\r\n image?: { url?: string };\r\n videoSources?: VideoSourceType[];\r\n breakPoint: number;\r\n preset?: Preset;\r\n};\r\n\r\ntype ImageVideoBackgroundPropTypes = BasePropTypes & {\r\n borderRadius?: number;\r\n paddingTop: string;\r\n className?: string;\r\n};\r\n\r\ntype ViewportSizeVideoBackgroundPropTypes = BasePropTypes & {\r\n fixedVideo?: boolean;\r\n borderRadius?: number;\r\n height?: string;\r\n gradientBg?: boolean;\r\n};\r\n\r\nexport const AspectImageVideoBackground = (\r\n (\r\n props: ImageVideoBackgroundPropTypes & {},\r\n ) => {\r\n const { children,\r\n image,\r\n paddingTop,\r\n videoSources,\r\n borderRadius,\r\n breakPoint,\r\n className,\r\n preset } = props;\r\n\r\n const isMobile = isCompact(breakPoint);\r\n const gotVideo = (videoSources?.length ?? 0) > 0;\r\n return (\r\n \r\n 0 ? `${borderRadius}px` : '0px'\r\n }}\r\n >\r\n {gotVideo && (\r\n \r\n \r\n \r\n )}\r\n {children}\r\n \r\n \r\n );\r\n }\r\n);\r\n\r\nexport const ViewportSizeVideoBackground = styled(\r\n (\r\n props: ViewportSizeVideoBackgroundPropTypes & StyledProps,\r\n ) => {\r\n const { children,\r\n image,\r\n videoSources,\r\n breakPoint,\r\n fixedVideo = false,\r\n //css,\r\n borderRadius,\r\n preset,\r\n height = '100%',\r\n compose,\r\n } = props;\r\n const hasVideo = (videoSources?.length ?? 0) > 0;\r\n const isMobile = isCompact(breakPoint);\r\n return (\r\n 0 ? `${borderRadius}px` : '0px'\r\n }),\r\n ...(fixedVideo && {\r\n clipPath: 'inset(0 0 0 0)',\r\n overflow: 'hidden',\r\n }),\r\n })}\r\n >\r\n {hasVideo && (\r\n \r\n \r\n \r\n )}\r\n {children}\r\n \r\n );\r\n }\r\n);\r\n\r\ntype AutoSizeVideoBackgroundPropTypes = BasePropTypes & {\r\n borderRadius: number;\r\n gradientBg?: boolean;\r\n};\r\n\r\nexport const AutoSizeVideoBackground = styled(\r\n (\r\n props: AutoSizeVideoBackgroundPropTypes & StyledProps,\r\n ) => {\r\n const { children,\r\n image,\r\n videoSources,\r\n breakPoint,\r\n borderRadius,\r\n preset,\r\n compose,\r\n } = props;\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n });\r\n","import React from 'react';\r\nimport { styled } from '@glitz/react';\r\nimport { translate } from '@polarnopyret/scope/index';\r\nimport ProductListItemViewModel from '../../Product/ProductListing/ProductListItemViewModel.type';\r\nimport { Close16x16 } from '../Icons/Close';\r\nimport ProductCard from '../../Product/ProductCard';\r\nimport ProductCardList from '../../Product/SwipeableList';\r\nimport { StyleOrStyleArray } from '@glitz/type';\r\nimport Modal, { ModalScrollableContent, ModalTopContent } from '../SharedComponents/atoms/Modal';\r\nimport * as style from 'Shared/Style';\r\n\r\ntype RequiredPropType = {\r\n modalIsShown: boolean;\r\n hideModal: () => void;\r\n products: ProductListItemViewModel[];\r\n isMobile: boolean;\r\n};\r\n\r\nconst BaseSpan = styled.span({\r\n fontStyle: 'normal',\r\n fontWeight: 500,\r\n textTransform: 'uppercase',\r\n lineHeight: '100%',\r\n});\r\n\r\nconst ProductLabel = styled(BaseSpan, {\r\n alignItems: 'center',\r\n fontSize: '40px',\r\n display: 'flex',\r\n});\r\n\r\nconst ProductCount = styled(BaseSpan, {\r\n fontSize: '14px',\r\n letterSpacing: '0.01em',\r\n});\r\n\r\nconst Heading = styled.div({\r\n display: 'flex',\r\n flexDirection: 'row',\r\n alignItems: 'space-between',\r\n padding: { xy: 0 },\r\n gap: '8px',\r\n});\r\n\r\nconst TopContent = styled.div({\r\n display: 'flex',\r\n justifyContent: 'space-between',\r\n width: '100%'\r\n})\r\n\r\nconst TopContentClose = styled(Close16x16, {\r\n cursor: 'pointer'\r\n})\r\n\r\nconst ProductCardWrap = styled.div({\r\n marginBottom: '24px'\r\n})\r\n\r\nexport const QuickShopProductsModal = ({\r\n products,\r\n modalIsShown,\r\n hideModal,\r\n isMobile\r\n}: RequiredPropType & { css?: StyleOrStyleArray; }) => {\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {translate('/site/shared/products')}\r\n ({products?.length})\r\n \r\n \r\n \r\n \r\n \r\n {isMobile &&\r\n \r\n }\r\n {!isMobile && <>\r\n {products?.map((product, index) => (\r\n \r\n \r\n \r\n ))}\r\n >}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default QuickShopProductsModal;","/**\r\n * @ComponentFor InformationBlockViewModel\r\n */\r\nimport React, { useState } from 'react';\r\nimport { styled, StyledProps } from '@glitz/react';\r\nimport connect from 'Shared/connect';\r\nimport InformationBlock from './InformationBlockViewModel.type';\r\nimport { LinkButton, SolidButton, ButtonTheme } from 'Shared/TextButtons';\r\nimport { AutoSizeVideoBackground } from 'Shared/SharedComponents/molecules/ImageVideoBackground';\r\nimport ProductListItemViewModel from 'Product/ProductListing/ProductListItemViewModel.type';\r\nimport { H2, Paragraph, ResponsiveSize } from 'Shared/SharedComponents/atoms/Typography';\r\nimport { setImageBackground, Preset } from 'Shared/image-background';\r\nimport { GridWrap } from 'Shared/PageLayout';\r\nimport { createGridClasses, createOffsetGridClassLarge } from 'Shared/grid';\r\nimport { selectDeviceImage } from 'Shared/utils';\r\nimport { isCompact } from 'Shared/Viewport';\r\nimport * as style from 'Shared/Style';\r\nimport { iOSVersion } from '@polarnopyret/scope';\r\nimport QuickShopProductModal from 'Shared/QuickShopProductModal';\r\n\r\ntype ConnectedPropType = {\r\n currentBreakpoint: number;\r\n setDisplayedQuickShopProducts: (products?: ProductListItemViewModel[]) => void;\r\n};\r\n\r\ntype PropType = InformationBlock & ConnectedPropType & StyledProps;\r\n\r\nconst paddingTop = 567;\r\n\r\nconst Background = styled(AutoSizeVideoBackground, {\r\n backgroundAttachment: 'fixed',\r\n})\r\n\r\nconst ButtonWrap = styled.div({\r\n display: 'flex',\r\n gap: '32px 8px',\r\n marginTop: '16px',\r\n ['@media ' + style.mediaMinLarge]: {\r\n marginTop: '24px',\r\n },\r\n})\r\n\r\nconst Heading = styled(H2, {\r\n letterSpacing: '0.01em',\r\n marginBottom: '16px',\r\n ['@media ' + style.mediaMinLarge]: {\r\n marginBottom: '24px',\r\n },\r\n})\r\n\r\nconst Text = styled(Paragraph, {\r\n margin: { y: 0 },\r\n})\r\n\r\nconst LinkedButton = styled(LinkButton, {\r\n textDecoration: 'none',\r\n display: 'inline-block',\r\n})\r\n\r\nfunction InformationBlock(props: PropType) {\r\n const {\r\n backgroundImage,\r\n backgroundImageSmallScreen,\r\n backgroundVideoSources,\r\n textColor,\r\n mainIntro,\r\n buttons,\r\n products,\r\n label,\r\n seeProductsButtonText,\r\n } = props;\r\n\r\n const [modalIsShown, setModalIsShown] = useState(false);\r\n\r\n const textColorFromColorSystem =\r\n textColor === '#000000' ? style.colors.monochrome.black : style.colors.monochrome.white;\r\n const fadeColor =\r\n textColor !== '#000000' ? \"0, 0, 0\" : \"255, 255, 255\";\r\n\r\n const isMobile = isCompact(props.currentBreakpoint);\r\n const hasVideo = (backgroundVideoSources?.length ?? 0) > 0;\r\n const image = selectDeviceImage(backgroundImage, backgroundImageSmallScreen, isMobile);\r\n\r\n let IOS = false;\r\n try {\r\n const iOSver = iOSVersion().toString();\r\n if (iOSver.length > 1) {\r\n IOS = true;\r\n }\r\n } catch (error) {\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {label}\r\n \r\n \r\n {mainIntro}\r\n \r\n \r\n {products?.length > 0 && (\r\n setModalIsShown(true)}\r\n />\r\n )}\r\n {buttons?.map((button, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n setModalIsShown(false)} products={products} />\r\n >\r\n );\r\n}\r\n\r\nexport default connect(\r\n (state) => ({\r\n currentBreakpoint: state.currentBreakpoint,\r\n }),\r\n)(styled(InformationBlock));\r\n"],"sourceRoot":""}