{"version":3,"file":"index.JvSOiGzT.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-wrappers/helpers/transports/card-product/mobile/index.js","../../../../../../../node_modules/@babylon/ui-kit-wrappers/helpers/transports/carousel-product/mobile/index.js"],"sourcesContent":["const productCardTransportConverterMobile = (item, config)=>{\n const { link = {\n href: ''\n }, title = '', textInfo, descriptions = [], isBlackfriday = false, departureContent = {}, returnContent = {}, imgSrc, image, price = {} } = item;\n const priceFrom = typeof item.price === 'number' ? !!item.priceLabel : typeof item.price === 'object' && !!item.price.from;\n const literalPrice = typeof item.price === 'object' ? item.price?.from : item.priceLabel;\n const renderedImage = {\n src: imgSrc ?? image?.src ?? '',\n alt: item.imgAlt ?? image?.alt ?? '',\n alternative: item.imgAlternative ?? image?.alternative ?? ''\n };\n return {\n config: {\n ...config,\n isBlackfriday,\n typeCard: config?.typeCard,\n literals: {\n ...config?.literals,\n fromCaption: literalPrice ?? ''\n }\n },\n link,\n image: renderedImage,\n title,\n subtitle: item.subtitle,\n textInfo,\n descriptions,\n price: {\n value: typeof price === 'number' ? Math.floor(price) : Math.floor(price?.value ?? 0),\n caption: true,\n from: priceFrom\n },\n departureContent,\n returnContent\n };\n};\n\nexport { productCardTransportConverterMobile };\n//# sourceMappingURL=index.js.map\n","import { productCardTransportConverterMobile } from '../../card-product/mobile/index.js';\n\nconst carouselProductTransportsConverterMobile = (carousel)=>{\n const { items = [], link, title = '', isFirstComponent } = carousel;\n return {\n props: {\n config: {\n ...carousel.config,\n literals: {\n ...carousel.config?.literals,\n viewMore: link?.content ?? ''\n }\n },\n title: {\n title: title ?? ''\n },\n items: items?.map((item)=>productCardTransportConverterMobile(item, carousel.config)),\n link,\n isFirstComponent\n }\n };\n};\nconst tabProductTransportConverterMobile = (tab)=>({\n config: {\n literals: {\n viewMore: tab.data?.link?.content ?? ''\n }\n },\n name: tab.name ?? '',\n title: tab.title ?? '',\n params: tab.arguments ?? [],\n items: tab.data?.items?.map((item)=>productCardTransportConverterMobile(item, tab.data?.config)),\n link: tab.data?.link\n });\n\nexport { carouselProductTransportsConverterMobile, tabProductTransportConverterMobile };\n//# sourceMappingURL=index.js.map\n"],"names":["productCardTransportConverterMobile","item","config","_a","link","title","textInfo","descriptions","isBlackfriday","departureContent","returnContent","imgSrc","image","price","priceFrom","literalPrice","renderedImage","carouselProductTransportsConverterMobile","carousel","items","isFirstComponent","tabProductTransportConverterMobile","tab","_b","_c","_d","_e"],"mappings":"AAAA,MAAMA,EAAsC,CAACC,EAAMC,IAAS,CAA5D,IAAAC,EACI,KAAM,CAAE,KAAAC,EAAO,CACX,KAAM,EACd,EAAO,MAAAC,EAAQ,GAAI,SAAAC,EAAU,aAAAC,EAAe,CAAE,EAAE,cAAAC,EAAgB,GAAO,iBAAAC,EAAmB,CAAA,EAAI,cAAAC,EAAgB,CAAA,EAAI,OAAAC,EAAQ,MAAAC,EAAO,MAAAC,EAAQ,CAAE,CAAA,EAAKZ,EACtIa,EAAY,OAAOb,EAAK,OAAU,SAAW,CAAC,CAACA,EAAK,WAAa,OAAOA,EAAK,OAAU,UAAY,CAAC,CAACA,EAAK,MAAM,KAChHc,EAAe,OAAOd,EAAK,OAAU,UAAWE,EAAAF,EAAK,QAAL,YAAAE,EAAY,KAAOF,EAAK,WACxEe,EAAgB,CAClB,IAAKL,IAAUC,GAAA,YAAAA,EAAO,MAAO,GAC7B,IAAKX,EAAK,SAAUW,GAAA,YAAAA,EAAO,MAAO,GAClC,YAAaX,EAAK,iBAAkBW,GAAA,YAAAA,EAAO,cAAe,EAC7D,EACD,MAAO,CACH,OAAQ,CACJ,GAAGV,EACH,cAAAM,EACA,SAAUN,GAAA,YAAAA,EAAQ,SAClB,SAAU,CACN,GAAGA,GAAA,YAAAA,EAAQ,SACX,YAAaa,GAAgB,EAC7C,CACS,EACD,KAAAX,EACA,MAAOY,EACP,MAAAX,EACA,SAAUJ,EAAK,SACf,SAAAK,EACA,aAAAC,EACA,MAAO,CACH,MAAmC,KAAK,MAAjC,OAAOM,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