{"version":3,"file":"index.DW6srL4L.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","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 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"],"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,CAAA,CAAI,EAAGZ,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,EAClE,EACI,MAAO,CACH,OAAQ,CACJ,GAAGV,EACH,cAAAM,EACA,SAAUN,GAAA,YAAAA,EAAQ,SAClB,SAAU,CACN,GAAGA,GAAA,YAAAA,EAAQ,SACX,YAAaa,GAAgB,EAChC,CACJ,EACD,KAAAX,EACA,MAAOY,EACP,MAAAX,EACA,SAAUJ,EAAK,SACf,SAAAK,EACA,aAAAC,EACA,MAAO,CACH,MAAmC,KAAK,MAAjC,OAAOM,GAAU,SAAsBA,GAAoBA,GAAA,YAAAA,EAAO,QAAS,CAA/B,EACnD,QAAS,GACT,KA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