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AQ,CAAC,CAACA,EAAK,MAAQ,CAAC0C,GAA2B/R,EAAG,IAAC2R,GAAgB,CACrE,KAAMtC,EACN,UAAS1J,EAAAjE,GAAA,YAAAA,EAAQ,WAAR,YAAAiE,EAAkB,WAAY0J,EAAK,MAC5C,QAASuC,CACjC,CAAqB,GACDtG,EAAAgE,GAAA,YAAAA,EAAQ,UAAR,YAAAhE,EAAiB,IAAK6F,GAAuBnR,MAAIoR,GAAQ,CACjD,eAAgBD,CAC5C,EAA2BrJ,EAAOqJ,CAAM,CAAC,EACxB,CACjB,CAAa,CACJ,CACT,CAAK,CACL","names":["generateRatingArray","full","half","empty","rating","maximum","fullSymbolQuantityToFill","hasFractionalPart","canAddHalfSymbol","hasHalfSymbol","emptySymbolsQuantityToFill","fullSymbols","halfSymbol","emptySymbols","calculateStars","star","halfStar","value","Stars","styled","color","theme","size","height","ICONS","MAX_UPSIDE","MAX_ICON_FOOTER","REPLACE_DESTINATION","ImageResize","getIcon","name","key","getIconTransport","product","ratingTemplate","show","icon","stars","jsx","Children","Icon","getReviewContent","positiveNumberOrUndefined","num","normalizePrice","price","SearcherModalProductType","getSearcher","endpoint","params","BaseUrl","url","parseFilters","response","getFlightHotelSearcher","getTrainHotelSearcher","getFerryHotelSearcher","getActivitiesSearcher","getProduct","props","useSearcherModal","endpointParams","searcher","literals","config","setConfig","useState","useContext","contextBabylon","flightHotelData","setFlightHotelData","trainHotelData","setTrainHotelData","ferryHotelData","setFerryHotelData","fliData","setFliData","ferData","setFerData","activitiesData","setActivitiesData","loading","setLoading","callLock","useRef","getApiService","useCallback","productType","searcherPromise","getData","service","setState","prevState","useEffect","SearcherModalWrapper","SearcherWrapper","SearcherItemArrayInput","Border","ArrayInputWrapper","ArrayInputRowContent","SearcherFliItem","ArrayInputRow","CalendarLabel","RemoveIcon","AddButton","SearcherSkeletonWrapper","Skeleton","SearcherMiddle","SearcherItem","SearcherFerryHotelDesktop","lazy","__vitePreload","SearcherFerDesktop","n","SearcherFliDesktop","SearcherFlightHotelDesktop","SearcherTrainHotelDesktop","SearcherActivitiesDesktop","SearcherModalDesktop","renderSearcher","Searcher","searcherId","data","renderSearcherSkeleton","_merge","cloneDeep","Suspense","SearcherModalType","SearcherId","_a","SearcherModal","generateViewsComponent","Travel","FlexMixin","CardTravel","CityInfo","FontMixin","TransportInfo","Divider","city","className","jsxs","CityInfo$1","CardTransport","outbound","arrival","travelInfo","travel","Image","Price","$size","Currency","PriceWithCurrency","currency","locale","minimumFractionDigits","priceParts","formatPriceToParts","priceLenghtWithoutCurrency","types","priceFormatted","type","index","currencyClassName","genKey","React","logitravelPriceModalStyles","css","partnershipsPriceModalStyles","smyPriceModalStyles","veciPriceModalStyles","priceModalThemes","createThemes","InfoPrice","PriceAmounts","PriceTop","PriceCurrent","PricePaxValue","PriceModal","Language","priceProps","formatPriceWithCurrency","ModalWrapper","Modal","Body","Info","$isActivities","InfoImage","Padding","InfoHead","AccordionWrapper","AccordionContainer","AccordionHeader","AccordionItem","AccordionHotelTitle","AccordionContent","InnerMarkdownHTML","Footer","CardProductModal","title","subtitle","zone","image","expandedInfoTitle","expandedInfo","offerNote","ratingIco","isVisible","toggleVisibility","smallImage","modalTitleLiteral","modalTitle","hotelName","hasAccordion","e","imageModalAttributes","info","hasTransport","content","Accordion","_b","_c","_d","description","BenefitsCardWrapper","BenefitsCardTitle","Content","BenefitsCardMobile","items","item","Fragment","variantStylesIconBadgeMobile","variant","modifier","IconBadgeMobile","rgba","$variant","HeaderBadges","discount","iconName","deal","isBlackfriday","showOffer","hasBadge","classNames","partnershipsPortaventuraPricesMobileStyles","pricesMobileThemes","PricesWrapperMobile","PriceTopMobile","PriceCurrentMobile","PricePaxValueMobile","PriceCaptionMobile","PriceTopDealMobile","BorderRadius","PriceCurrentDealMobile","OnlyIcon","Prices","isDeal","partnershipsPortaventuraProductCardMobileStyles","productCardMobileThemes","ProductCardBox","ProductCardLink","ProductCardImageContainer","ProductCardHeader","ProductCardContent","ProductCardTitle","Subtitle","Detail","Descriptions","Upside","Promotion","Tripadvisor","Reviews","Transport","ProductCardFooter","ProductCardDescription","ProductCardIconProps","Title","Margin","ProductCardMobile","textInfo","detail","descriptions","link","ldjson","upside","promotion","tripadvisor","reviews","transport","icons","company","defaultImage","showSubtitleFirst","soldOut","hasModal","showDescriptionFirst","isFirstComponent","reviewContent","jsonLd","transports","useBoolean","imagePropertiesMobile","imagePropertiesMobileCompany","subtitleItem","useMemo","onClickCard","event","id","searcherProps","SearcherActivitiesMobile","nullsToUndefined","trans","script","JsonLd","SkeletonItem","SkeletonImages","SkeletonContent","CardSkeletonMobile","getTitle","ButtonBox","ButtonViewMore","hasIcon","CarouselProductWrapper","CarouselProductMobile","isLoading","benefits","skeleton","_","BenefitsCard","generalConfig"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"sources":["../../../../../../../node_modules/@babylon/ui-kit-helpers/esm/rating.mjs","../../../../../../../node_modules/@babylon/ui-kit-helpers/esm/calculate-stars.mjs","../../../../../../../node_modules/@babylon/ui-kit-styles/esm/common/mixins/stars.styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/utils/constants.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/utils/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/types.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/views/desktop/service.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/views/desktop/hooks/useSearcherModal.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/views/desktop/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/views/desktop/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/others/searcher-modal/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/card-transport/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/card-transport/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-base/esm/components/text/price-with-currency/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-base/esm/components/text/price-with-currency/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/themes/styles/logitravel.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/themes/styles/partnerships.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/themes/styles/smy.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/themes/styles/veci.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/themes/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/price-modal/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/desktop/card-product-modal/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/benefits-card/views/mobile/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/benefits-card/views/mobile/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/header-badges/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/header-badges/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/prices/themes/styles/portaventura.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/prices/themes/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/prices/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/prices/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/themes/styles/portaventura.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/themes/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/card-skeleton/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-cards/esm/components/cards/product-card/views/mobile/card-skeleton/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-product/views/utils.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-product/views/mobile/button-view-more/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-product/views/mobile/button-view-more/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-product/views/mobile/styled.mjs","../../../../../../../node_modules/@babylon/ui-kit-common/esm/components/carousels/carousel-product/views/mobile/index.mjs"],"sourcesContent":["/**\n * Generates an array of symbols representing a rating \"system\", given a specific rating value and maximum (default is 5).\n * The array can contain full, half, and empty custom symbols, as required to represent the rating.\n *\n * @param symbol - The symbols to use for full, half, and empty ratings.\n * @param full - The symbol used for full ratings.\n * @param half - The symbol used for half ratings.\n * @param empty - The symbol used for empty ratings.\n * @param rating - The rating value.\n * @param maximum - The maximum number of symbols in the rating \"system\" (default is 5).\n * @returns An array of symbols representing the rating, including full, half, and empty symbols.\n *\n * @remarks This function is used to generate the rating array,\n * if you don't want to have a maximum number of stars, use Math.round(rating) as the maximum.\n * like the following code (same code as in src/helpers/calculate-stars.ts):\n * ```js\n * const starts = generateRatingArray({\n * symbol: {\n * full: star,\n * half: halfStar,\n * empty: '',\n * },\n * rating: value,\n * maximum: Math.round(value),\n * });\n * ```\n */ const generateRatingArray = ({ symbol: { full, half, empty }, rating, maximum = 5 })=>{\n // Calculate the number of full symbols to display, ensuring it doesn't exceed the maximum value.\n const fullSymbolQuantityToFill = Math.min(Math.floor(rating), maximum);\n // Check if the rating has a fractional part.\n const hasFractionalPart = rating % 1 !== 0;\n // Check if it's possible to add a half symbol without exceeding the maximum value.\n const canAddHalfSymbol = fullSymbolQuantityToFill < maximum;\n // Determine if a half symbol should be added.\n const hasHalfSymbol = hasFractionalPart && canAddHalfSymbol;\n // Calculate the number of empty symbols needed to complete the maximum required number of symbols.\n const emptySymbolsQuantityToFill = maximum - fullSymbolQuantityToFill - (hasHalfSymbol ? 1 : 0);\n // Create an array of full symbols\n const fullSymbols = Array(fullSymbolQuantityToFill).fill(full);\n // Create an array containing a half symbol, if applicable\n const halfSymbol = hasHalfSymbol ? [\n half\n ] : [];\n // Create an array of empty symbols\n const emptySymbols = Array(emptySymbolsQuantityToFill).fill(empty);\n // Combine and return the full, half, and empty symbols arrays\n return [\n ...fullSymbols,\n ...halfSymbol,\n ...emptySymbols\n ];\n};\n\nexport { generateRatingArray };\n","import { generateRatingArray } from './rating.mjs';\n\nconst calculateStars = ({ star, halfStar, value })=>{\n // Call the generateRatingArray function with the provided star and halfStar symbols, and the rating value.\n // Set the maximum number of symbols equal to the rounded rating value to avoid the default maximum=5\n const starts = generateRatingArray({\n symbol: {\n full: star,\n half: halfStar,\n empty: ''\n },\n rating: value,\n maximum: Math.round(value)\n });\n return starts;\n};\n\nexport { calculateStars, calculateStars as default };\n","import styled from 'styled-components';\n\nconst Stars = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"Stars\",\n componentId: \"sc-4a9c0dc4-0\"\n})([\n \"color:\",\n \";font-size:\",\n \";line-height:\",\n \";\"\n], ({ color, theme })=>color ?? theme.colors.rating.base, ({ size, theme })=>size ?? theme.font.size.small, ({ height, theme })=>height ?? theme.font.height.small);\n\nexport { Stars };\n","var ICONS;\n(function(ICONS) {\n ICONS[\"ICO_TTOO\"] = \"suitcase\";\n ICONS[\"ICO_FLIGHT_HOTEL\"] = \"plane-hotel\";\n ICONS[\"ICO_FERRY_HOTEL\"] = \"ferry-hotel\";\n ICONS[\"ICO_TRAIN_HOTEL\"] = \"train-hotel\";\n ICONS[\"ICO_BUS_HOTEL\"] = \"bus-hotel\";\n ICONS[\"ICO_LEI\"] = \"hot-air-balloon\";\n ICONS[\"ICO_SKI\"] = \"snow\";\n ICONS[\"ICO_DIS\"] = \"disney\";\n ICONS[\"ICO_GV_CIR\"] = \"earth-arrow\";\n ICONS[\"ICO_GV_COMB\"] = \"map-markers\";\n ICONS[\"ICO_GV_RUT\"] = \"car-routes\";\n ICONS[\"ICO_GV_TER\"] = \"marker-compass\";\n ICONS[\"ICO_FLIGHT\"] = \"flight\";\n ICONS[\"ICO_BUS\"] = \"bus\";\n ICONS[\"ICO_PLANE\"] = \"plane\";\n ICONS[\"ICO_TRAIN\"] = \"train\";\n ICONS[\"ICO_FERRY\"] = \"ferry\";\n ICONS[\"ICO_HOTEL\"] = \"hotel\";\n ICONS[\"ICO_STAR\"] = \"star-filled\";\n ICONS[\"ICO_KEY\"] = \"key\";\n ICONS[\"ICO_SAFE\"] = \"check-shield\";\n ICONS[\"ICO_REVIEW\"] = \"thumbs-up-filled\";\n ICONS[\"ICO_MAGNIFIER\"] = \"magnifier\";\n})(ICONS || (ICONS = {}));\nconst MAX_UPSIDE = 2;\nconst MAX_ICON_FOOTER = 3;\nconst REPLACE_DESTINATION = '#destination#';\nconst ImageResize = {\n HEADER: {\n resize: {\n width: 400,\n height: 205\n },\n alternative: '/comun/images/not-available.png',\n isLazy: true\n },\n COMPANY: {\n resize: {\n width: 100,\n height: 60\n },\n alternative: '/comun/images/not-available.png'\n },\n MOBILE: {\n resize: {\n width: 240,\n height: 240,\n quality: 90\n },\n alternative: '/comun/images/not-available.png',\n isLazy: true\n },\n MOBILE_COMPANY: {\n resize: {\n width: 100,\n height: 30\n },\n alternative: '/comun/images/not-available.png',\n isLazy: true\n },\n COMPANY_MODAL: {\n resize: {\n width: 80,\n height: 30,\n suboperation: null\n },\n alternative: '/comun/images/not-available.png'\n },\n COMPANY_NEWCARD: {\n resize: {\n width: 20,\n height: 20,\n suboperation: null\n }\n },\n MODAL: {\n resize: {\n width: 425,\n height: 210\n },\n alternative: '/comun/images/not-available.png',\n isLazy: true\n },\n MODAL_LARGE: {\n resize: {\n width: 500,\n height: 700\n },\n alternative: '/comun/images/not-available.png',\n isLazy: true\n },\n TRANSPORT: {\n resize: {\n width: 30,\n height: 30\n },\n alternative: '/comun/images/not-avaiable.png'\n }\n};\n\nexport { ICONS, ImageResize, MAX_ICON_FOOTER, MAX_UPSIDE, REPLACE_DESTINATION };\n","import { jsx } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport calculateStars from '@babylon/ui-kit-helpers/calculate-stars';\nimport { Stars } from '@babylon/ui-kit-styles/common/mixins/stars.styled';\nimport { Children } from 'react';\nimport { ICONS } from './constants.mjs';\n\nconst getIcon = (name)=>{\n const key = name.toUpperCase();\n const icon = {\n TTOO: ICONS.ICO_TTOO,\n FLIGHTHOTEL: ICONS.ICO_FLIGHT_HOTEL,\n FERRYHOTEL: ICONS.ICO_FERRY_HOTEL,\n TRAINHOTEL: ICONS.ICO_TRAIN_HOTEL,\n BUSHOTEL: ICONS.ICO_BUS_HOTEL,\n LEI: ICONS.ICO_LEI,\n SKI: ICONS.ICO_SKI,\n DISNEY: ICONS.ICO_DIS,\n GVCOMB: ICONS.ICO_GV_COMB,\n GVCIR: ICONS.ICO_GV_CIR,\n GVRUT: ICONS.ICO_GV_RUT,\n FLIGHT: ICONS.ICO_FLIGHT,\n TRAIN: ICONS.ICO_TRAIN,\n FERRY: ICONS.ICO_FERRY,\n BUS: ICONS.ICO_BUS,\n HOTEL: ICONS.ICO_HOTEL,\n STAR: ICONS.ICO_STAR,\n KEY: ICONS.ICO_KEY,\n SAFE: ICONS.ICO_SAFE,\n REVIEW: ICONS.ICO_REVIEW,\n MAGNIFIER: ICONS.ICO_MAGNIFIER\n }[key];\n return icon ?? ICONS.ICO_STAR;\n};\nconst getIconTransport = (product)=>{\n const key = product.toUpperCase();\n const icon = {\n FLIGHTHOTEL: ICONS.ICO_PLANE,\n FERRYHOTEL: ICONS.ICO_FERRY,\n TRAINHOTEL: ICONS.ICO_TRAIN,\n BUSHOTEL: ICONS.ICO_BUS\n }[key];\n return icon ?? ICONS.ICO_PLANE;\n};\nconst ratingTemplate = (show, icon, value)=>{\n if (!show || !value || isNaN(value)) return;\n const stars = calculateStars({\n star: `nico-${getIcon(icon)}`,\n halfStar: 'nico-star-half-filled',\n value\n });\n return /*#__PURE__*/ jsx(Stars, {\n children: Children.toArray(stars.map((icon)=>/*#__PURE__*/ jsx(Icon, {\n \"data-testid\": \"StarsIcon\",\n className: icon\n })))\n });\n};\nconst getReviewContent = (value)=>{\n if (value <= 6) return 'good';\n if (value <= 8) return 'veryGood';\n return 'excelent';\n};\nconst positiveNumberOrUndefined = (num)=>{\n if (num && num > 0) return num;\n return undefined;\n};\nconst normalizePrice = (price)=>({\n ...price,\n discount: positiveNumberOrUndefined(price?.discount),\n market_value: positiveNumberOrUndefined(price?.market_value),\n paxValue: positiveNumberOrUndefined(price?.paxValue),\n value: positiveNumberOrUndefined(price?.value)\n });\n\nexport { getIcon, getIconTransport, getReviewContent, normalizePrice, ratingTemplate };\n","var SearcherModalProductType;\n(function(SearcherModalProductType) {\n SearcherModalProductType[\"ROUNDTRIP\"] = \"ROUNDTRIP\";\n SearcherModalProductType[\"ONEWAY\"] = \"ONEWAY\";\n SearcherModalProductType[\"FLIGHTHOTEL\"] = \"FLIGHTHOTEL\";\n SearcherModalProductType[\"TRAINHOTEL\"] = \"TRAINHOTEL\";\n SearcherModalProductType[\"FERRYHOTEL\"] = \"FERRYHOTEL\";\n SearcherModalProductType[\"FERRY\"] = \"FERRY\";\n SearcherModalProductType[\"ACTIVITIES\"] = \"ACTIVITIES\";\n SearcherModalProductType[\"SEARCHER_TRAIN_HOTEL\"] = \"SEARCHER_TRAIN_HOTEL\";\n SearcherModalProductType[\"SEARCHER_FERRY_HOTEL\"] = \"SEARCHER_FERRY_HOTEL\";\n SearcherModalProductType[\"SEARCHER_FLIGHT_HOTEL\"] = \"SEARCHER_FLIGHT_HOTEL\";\n SearcherModalProductType[\"SEARCHER_ACTIVITIES\"] = \"SEARCHER_ACTIVITIES\";\n})(SearcherModalProductType || (SearcherModalProductType = {}));\n\nexport { SearcherModalProductType };\n","import { parseFilters } from '@babylon/ui-kit-helpers/url';\n\nconst getSearcher = ()=>async (endpoint, params, BaseUrl = '')=>{\n if (!endpoint || !BaseUrl || !params) return undefined;\n let url = `${endpoint}?${parseFilters(params)}`;\n if (!endpoint.startsWith('http')) url = `${BaseUrl}${url}`;\n const response = await fetch(url);\n if (!response.ok || response.status !== 200 && response.status !== 204) throw new Error(response.statusText);\n return response.json();\n };\nconst getFlightHotelSearcher = getSearcher();\nconst getTrainHotelSearcher = getSearcher();\nconst getFerryHotelSearcher = getSearcher();\nconst getActivitiesSearcher = getSearcher();\n\nexport { getActivitiesSearcher, getFerryHotelSearcher, getFlightHotelSearcher, getTrainHotelSearcher };\n","import contextBabylon from '@babylon/ui-kit-context';\nimport { useState, useContext, useRef, useCallback, useEffect } from 'react';\nimport { SearcherModalProductType } from '../../../types.mjs';\nimport { getFlightHotelSearcher, getTrainHotelSearcher, getFerryHotelSearcher, getActivitiesSearcher } from '../service.mjs';\n\nconst getProduct = (props)=>{\n if (props.product) return props.product.toUpperCase();\n if (!props.searcher) return SearcherModalProductType.FERRYHOTEL;\n if ('product' in props.searcher) {\n if (typeof props.searcher.product === 'string') return props.searcher.product.toUpperCase();\n }\n};\nconst useSearcherModal = (props)=>{\n const { endpoint = '', endpointParams = {}, searcher = {}, literals } = props;\n const [config, setConfig] = useState({\n onModal: true,\n hideDestination: true\n });\n const product = getProduct(props);\n const { BaseUrl } = useContext(contextBabylon);\n const [flightHotelData, setFlightHotelData] = useState();\n const [trainHotelData, setTrainHotelData] = useState();\n const [ferryHotelData, setFerryHotelData] = useState();\n const [fliData, setFliData] = useState();\n const [ferData, setFerData] = useState();\n const [activitiesData, setActivitiesData] = useState();\n const [loading, setLoading] = useState(true);\n const callLock = useRef(false);\n const getApiService = useCallback((productType)=>{\n const searcherPromise = ()=>Promise.resolve(searcher);\n const apiService = {\n [SearcherModalProductType.ROUNDTRIP]: {\n service: searcherPromise,\n setState: setFliData\n },\n [SearcherModalProductType.ONEWAY]: {\n service: searcherPromise,\n setState: setFliData\n },\n [SearcherModalProductType.FLIGHTHOTEL]: {\n service: getFlightHotelSearcher,\n setState: setFlightHotelData\n },\n [SearcherModalProductType.TRAINHOTEL]: {\n service: getTrainHotelSearcher,\n setState: setTrainHotelData\n },\n [SearcherModalProductType.FERRYHOTEL]: {\n service: getFerryHotelSearcher,\n setState: setFerryHotelData\n },\n [SearcherModalProductType.ACTIVITIES]: {\n service: getActivitiesSearcher,\n setState: setActivitiesData\n },\n [SearcherModalProductType.FERRY]: {\n service: searcherPromise,\n setState: setFerData\n },\n [SearcherModalProductType.SEARCHER_FLIGHT_HOTEL]: {\n service: searcherPromise,\n setState: setFlightHotelData\n },\n [SearcherModalProductType.SEARCHER_TRAIN_HOTEL]: {\n service: searcherPromise,\n setState: setTrainHotelData\n },\n [SearcherModalProductType.SEARCHER_FERRY_HOTEL]: {\n service: searcherPromise,\n setState: setFerryHotelData\n },\n [SearcherModalProductType.SEARCHER_ACTIVITIES]: {\n service: searcherPromise,\n setState: setActivitiesData\n }\n };\n return apiService[productType] || {};\n }, [\n searcher\n ]);\n const getData = useCallback(()=>{\n if (!callLock.current) {\n const productType = product?.toUpperCase();\n callLock.current = true;\n const { service, setState } = getApiService(productType);\n if (productType === SearcherModalProductType.ONEWAY || productType === SearcherModalProductType.ROUNDTRIP) {\n setLoading(false);\n setState(searcher);\n setConfig((prevState)=>({\n ...prevState,\n literals\n }));\n callLock.current = false;\n return;\n }\n setLoading(true);\n service?.(endpoint, endpointParams, BaseUrl).then(setState).finally(()=>{\n setLoading(false);\n callLock.current = false;\n });\n }\n }, [\n BaseUrl,\n endpoint,\n endpointParams,\n product,\n getApiService,\n searcher,\n literals\n ]);\n useEffect(()=>{\n if (loading) getData();\n }, [\n getData,\n product,\n searcher,\n loading\n ]);\n return {\n flightHotelData,\n trainHotelData,\n ferryHotelData,\n fliData,\n ferData,\n activitiesData,\n loading,\n config,\n product\n };\n};\n\nexport { useSearcherModal as default, useSearcherModal };\n","import { ArrayInputWrapper, ArrayInputRowContent, ArrayInputRow, RemoveIcon, AddButton } from '@babylon/ui-kit-forms/components/inputs/array-input/styled';\nimport { CalendarLabel } from '@babylon/ui-kit-forms/components/inputs/calendar/styled';\nimport { SearcherSkeletonWrapper } from '../../../searcher/skeleton/styled.mjs';\nimport { SearcherWrapper, SearcherMiddle, SearcherItem } from '../../../searcher/styled.mjs';\nimport { SearcherItemArrayInput, SearcherFliItem } from '../../../../searchers/searcher-fli/views/desktop/styled.mjs';\nimport { Skeleton } from '@babylon/ui-kit-structures/components/others/skeleton/styled';\nimport { Border } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\n\nconst SearcherModalWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SearcherModalWrapper\",\n componentId: \"sc-4712f230-0\"\n})([\n \"\",\n \"{background-color:\",\n \";}\",\n \",\",\n \":not(.searcher-button){\",\n \"}.Openjaw \",\n \"{padding-right:0px;}.Openjaw \",\n \" > div{margin-bottom:0px;}.Openjaw \",\n \" \",\n \"{flex-basis:max-content;max-width:calc(100% / 3 - 10px);margin-bottom:0px;}.Openjaw \",\n \":nth-child(n+3) \",\n \"{max-width:calc(90% / 3 - 10px);padding:0;}.Openjaw [disabled]{display:none;}.Openjaw \",\n \"{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:calc(100% - 40px);}.Openjaw \",\n \"{padding:0;}.Openjaw \",\n \"{position:relative;margin-top:12px;}.Openjaw \",\n '[order=\"4\"],.Openjaw ',\n '[order=\"7\"]{display:inline-block;width:calc(50% - 8px);}.Openjaw ',\n '[order=\"7\"]{margin-left:16px;}',\n \"{\",\n \"{background-color:rgba(0,0,0,0.12);&:after{background:linear-gradient(90deg,transparent,rgba(0,0,0,0.04),transparent);mask-image:radial-gradient(rgb(255,255,255),rgb(0,0,0));}}\",\n \"{\",\n \":first-of-type{display:none;}}}\"\n], SearcherWrapper, ({ theme })=>theme.colors.white.base, SearcherItemArrayInput, SearcherItemArrayInput, Border({\n all: 'none'\n}), ArrayInputWrapper, ArrayInputRowContent, ArrayInputWrapper, SearcherFliItem, ArrayInputRow, SearcherFliItem, CalendarLabel, RemoveIcon, AddButton, SearcherFliItem, SearcherFliItem, SearcherFliItem, SearcherSkeletonWrapper, Skeleton, SearcherMiddle, SearcherItem);\n\nexport { SearcherModalWrapper };\n","import { jsx } from 'react/jsx-runtime';\nimport { SearcherId } from '../../../../../types/index.mjs';\nimport cloneDeep from 'clone-deep';\nimport _merge from 'lodash/merge.js';\nimport { lazy, Suspense } from 'react';\nimport { SearcherModalProductType } from '../../types.mjs';\nimport { useSearcherModal } from './hooks/useSearcherModal.mjs';\nimport { SearcherModalWrapper } from './styled.mjs';\nimport { renderSearcherSkeleton } from './utils.mjs';\n\nconst SearcherFerryHotelDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-ferry-hotel/views/desktop/index.mjs'));\nconst SearcherFerDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-fer/views/desktop/index.mjs'));\nconst SearcherFliDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-fli/views/desktop/index.mjs'));\nconst SearcherFlightHotelDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-flight-hotel/views/desktop/index.mjs'));\nconst SearcherTrainHotelDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-train-hotel/views/desktop/index.mjs'));\nconst SearcherActivitiesDesktop = /*#__PURE__*/ lazy(()=>import('../../../../searchers/searcher-activities/views/desktop/index.mjs'));\nconst SearcherModalDesktop = (props)=>{\n const { flightHotelData, trainHotelData, ferryHotelData, fliData, ferData, activitiesData, loading, config, product } = useSearcherModal(props);\n const renderSearcher = (Searcher, searcherId, data)=>{\n if (loading) return renderSearcherSkeleton(searcherId, {\n onModal: true\n });\n if (!data) return null;\n const props = _merge(cloneDeep(data), {\n config\n });\n return /*#__PURE__*/ jsx(Suspense, {\n fallback: renderSearcherSkeleton(searcherId, {\n onModal: true\n }),\n children: /*#__PURE__*/ jsx(Searcher, {\n props: props\n })\n });\n };\n const SearcherModalType = {\n [SearcherModalProductType.ROUNDTRIP]: {\n render: ()=>renderSearcher(SearcherFliDesktop, SearcherId.FLI, fliData)\n },\n [SearcherModalProductType.ONEWAY]: {\n render: ()=>renderSearcher(SearcherFliDesktop, SearcherId.FLI, fliData)\n },\n [SearcherModalProductType.FLIGHTHOTEL]: {\n render: ()=>renderSearcher(SearcherFlightHotelDesktop, SearcherId.FLI_HOT, flightHotelData)\n },\n [SearcherModalProductType.TRAINHOTEL]: {\n render: ()=>renderSearcher(SearcherTrainHotelDesktop, SearcherId.TRA_HOT, trainHotelData)\n },\n [SearcherModalProductType.FERRYHOTEL]: {\n render: ()=>renderSearcher(SearcherFerryHotelDesktop, SearcherId.FER_HOT, ferryHotelData)\n },\n [SearcherModalProductType.ACTIVITIES]: {\n render: ()=>renderSearcher(SearcherActivitiesDesktop, SearcherId.ACTIVITIES, activitiesData)\n },\n [SearcherModalProductType.FERRY]: {\n render: ()=>renderSearcher(SearcherFerDesktop, SearcherId.FER, ferData)\n },\n [SearcherModalProductType.SEARCHER_FLIGHT_HOTEL]: {\n render: ()=>renderSearcher(SearcherFlightHotelDesktop, SearcherId.FLI_HOT, flightHotelData)\n },\n [SearcherModalProductType.SEARCHER_TRAIN_HOTEL]: {\n render: ()=>renderSearcher(SearcherTrainHotelDesktop, SearcherId.TRA_HOT, trainHotelData)\n },\n [SearcherModalProductType.SEARCHER_FERRY_HOTEL]: {\n render: ()=>renderSearcher(SearcherFerryHotelDesktop, SearcherId.FER_HOT, ferryHotelData)\n },\n [SearcherModalProductType.SEARCHER_ACTIVITIES]: {\n render: ()=>renderSearcher(SearcherActivitiesDesktop, SearcherId.ACTIVITIES, activitiesData)\n }\n };\n return /*#__PURE__*/ jsx(SearcherModalWrapper, {\n \"data-testid\": \"SearcherModal\",\n children: product && SearcherModalType[product]?.render()\n });\n};\n\nexport { SearcherModalDesktop as default };\n","import { generateViewsComponent } from '@babylon/ui-kit-helpers/views';\nimport SearcherModalDesktop from './views/desktop/index.mjs';\n\nconst SearcherModal = generateViewsComponent(SearcherModalDesktop);\n\nexport { SearcherModal as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst Travel = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Travel\",\n componentId: \"sc-f8cb45b1-0\"\n})([\n \"\",\n \" background-color:\",\n \";padding:16px;\"\n], FlexMixin({\n direction: 'column'\n}), ({ theme })=>theme.bodyBgColor);\nconst CardTravel = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CardTravel\",\n componentId: \"sc-f8cb45b1-1\"\n})([\n \"\",\n \" flex-flow:row nowrap;padding:16px 0;\"\n], FlexMixin({\n justify: 'space-between'\n}));\nconst CityInfo = /*#__PURE__*/ styled.ul.withConfig({\n displayName: \"CityInfo\",\n componentId: \"sc-f8cb45b1-2\"\n})([\n \"margin-bottom:0;max-width:20%;&.card-travel-origin{text-align:left;}&.card-travel-destination{text-align:right;}& > li.travel-date{\",\n \"}& > li.travel-hour{\",\n \"}& > li.travel-code{\",\n \"}\"\n], FontMixin({\n size: 'small',\n weight: 'regular',\n height: 'smaller'\n}), FontMixin({\n size: 'base',\n weight: 'regular',\n height: 'base'\n}), FontMixin({\n size: 'medium',\n weight: 'bold',\n height: 'small'\n}));\nconst TransportInfo = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"TransportInfo\",\n componentId: \"sc-f8cb45b1-3\"\n})([\n \"\",\n \" \",\n \" color:\",\n \";flex-grow:1;\"\n], FlexMixin({\n direction: 'column',\n justify: 'center',\n align: 'center'\n}), FontMixin({\n weight: 'regular'\n}), ({ theme })=>theme.colors.grays.dark);\nconst Divider = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Divider\",\n componentId: \"sc-f8cb45b1-4\"\n})([\n \"\",\n \" margin:0 12px;position:relative;width:calc(100% - 24px);&:before{border-top:1px dashed \",\n \";content:'';left:0;margin-top:-1px;min-width:100%;position:absolute;top:50%;}\",\n \"{\",\n \" background-color:\",\n \";z-index:\",\n \";}\"\n], FlexMixin({\n justify: 'center',\n align: 'center'\n}), ({ theme })=>theme.colors.grays.base, Icon, FontMixin({\n size: 'larger'\n}), ({ theme })=>theme.bodyBgColor, ({ theme })=>theme.zIndex.lowest);\n\nexport { CardTravel, CityInfo, Divider, TransportInfo, Travel };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport Image from '@babylon/ui-kit-base/components/multimedia/image';\nimport { getIconTransport } from '../../../../utils/index.mjs';\nimport { Children } from 'react';\nimport { Travel, CardTravel, TransportInfo, Divider, CityInfo as CityInfo$1 } from './styled.mjs';\n\nconst CityInfo = ({ city, className })=>/*#__PURE__*/ jsxs(CityInfo$1, {\n className: className,\n children: [\n /*#__PURE__*/ jsx(\"li\", {\n className: \"travel-date\",\n children: city.date\n }),\n /*#__PURE__*/ jsx(\"li\", {\n className: \"travel-hour\",\n children: city.hour\n }),\n /*#__PURE__*/ jsx(\"li\", {\n className: \"travel-code\",\n children: city.city\n })\n ]\n });\nconst CardTransport = ({ outbound, arrival, product = 'TRAINHOTEL' })=>{\n const travelInfo = [\n outbound,\n arrival\n ];\n const icon = getIconTransport(product);\n return /*#__PURE__*/ jsx(\"div\", {\n \"data-testid\": \"CardTransport\",\n children: Children.toArray(travelInfo.map((travel)=>/*#__PURE__*/ jsx(Travel, {\n children: /*#__PURE__*/ jsxs(CardTravel, {\n children: [\n /*#__PURE__*/ jsx(CityInfo, {\n className: \"card-travel-origin\",\n city: travel.origin\n }),\n /*#__PURE__*/ jsxs(TransportInfo, {\n children: [\n travel.info.fare && /*#__PURE__*/ jsx(\"p\", {\n children: travel.info.fare\n }),\n travel.info.type && /*#__PURE__*/ jsx(\"p\", {\n children: travel.info.type\n }),\n /*#__PURE__*/ jsx(Divider, {\n children: /*#__PURE__*/ jsx(Icon, {\n \"data-testid\": \"CardTransportIcon\",\n className: `nico-${icon}`\n })\n }),\n /*#__PURE__*/ jsx(Image, {\n alt: travel.info.company,\n src: travel.info.logo\n }),\n travel.info.company && /*#__PURE__*/ jsx(\"span\", {\n children: travel.info.company\n }),\n travel.info.reference && /*#__PURE__*/ jsx(\"span\", {\n children: travel.info.reference\n })\n ]\n }),\n /*#__PURE__*/ jsx(CityInfo, {\n className: \"card-travel-destination\",\n city: travel.destination\n })\n ]\n })\n })))\n });\n};\n\nexport { CardTransport as default };\n","import styled from 'styled-components';\n\nconst Price = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"Price\",\n componentId: \"sc-f1636338-0\"\n})([\n \"--price-font-size:100%;\",\n \";font-size:var(--price-font-size);font-size:max(15px,var(--price-font-size));line-height:100%;\"\n], ({ $size = 0 })=>$size > 5 && '--price-font-size: 80%;');\nconst Currency = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"Currency\",\n componentId: \"sc-f1636338-1\"\n})([\n \"--currency-font-size:80%;&.small{--currency-font-size:70%;}font-size:var(--currency-font-size);font-size:max(13px,var(--currency-font-size));\"\n]);\n\nexport { Currency, Price };\n","import { jsx } from 'react/jsx-runtime';\nimport { formatPriceToParts } from '@babylon/ui-kit-helpers/currency';\nimport { genKey } from '@babylon/ui-kit-helpers/keys';\nimport React from 'react';\nimport { Currency, Price } from './styled.mjs';\n\nconst PriceWithCurrency = ({ props, className })=>{\n const { price = 0, currency = 'EUR', locale = 'es', minimumFractionDigits = 0 } = props;\n const priceParts = formatPriceToParts(price, currency, locale, minimumFractionDigits);\n // Var to check not currency price length\n let priceLenghtWithoutCurrency = 0;\n // Types to check\n const types = [\n 'integer',\n 'group',\n 'decimal'\n ];\n // Formatted price with the currency\n const priceFormatted = priceParts.map(({ type, value }, index)=>{\n if (types.includes(type)) priceLenghtWithoutCurrency += value.length;\n switch(type){\n case 'currency':\n {\n const currencyClassName = `currency ${value.length >= 3 && 'small'}`;\n return /*#__PURE__*/ jsx(Currency, {\n className: currencyClassName,\n children: value\n }, genKey(`${index}`));\n }\n case 'fraction':\n return /*#__PURE__*/ jsx(Currency, {\n children: value\n }, genKey(`${index}`));\n // Removes white spaces between price and currency\n case 'literal':\n return null;\n default:\n return /*#__PURE__*/ jsx(React.Fragment, {\n children: value\n }, genKey(`${index}`));\n }\n });\n return /*#__PURE__*/ jsx(Price, {\n className: className,\n $size: priceLenghtWithoutCurrency,\n children: priceFormatted\n });\n};\n\nexport { PriceWithCurrency as default };\n","import { css } from 'styled-components';\n\nconst logitravelPriceModalStyles = {\n InfoPrice: ()=>/*#__PURE__*/ css([\n \"background-color:\",\n \";\"\n ], ({ theme })=>theme.colors.secondary.base)\n};\n\nexport { logitravelPriceModalStyles as default };\n","import { css } from 'styled-components';\n\nconst partnershipsPriceModalStyles = {\n InfoPrice: ()=>/*#__PURE__*/ css([\n \"background-color:\",\n \";\"\n ], ({ theme })=>theme.colors.secondary.base)\n};\n\nexport { partnershipsPriceModalStyles as default };\n","import { css } from 'styled-components';\n\nconst smyPriceModalStyles = {\n InfoPrice: ()=>/*#__PURE__*/ css([\n \"background-color:\",\n \";\"\n ], ({ theme })=>theme.colors.secondary.base)\n};\n\nexport { smyPriceModalStyles as default };\n","import { css } from 'styled-components';\n\nconst veciPriceModalStyles = {\n InfoPrice: ()=>/*#__PURE__*/ css([\n \"background-color:\",\n \";\"\n ], ({ theme })=>theme.colors.green?.dark)\n};\n\nexport { veciPriceModalStyles as default };\n","import { createThemes } from '@babylon/ui-kit-styles/common/themes';\nimport logitravelPriceModalStyles from './styles/logitravel.mjs';\nimport partnershipsPriceModalStyles from './styles/partnerships.mjs';\nimport smyPriceModalStyles from './styles/smy.mjs';\nimport veciPriceModalStyles from './styles/veci.mjs';\n\nconst priceModalThemes = createThemes({\n logitravel: logitravelPriceModalStyles,\n partnerships: partnershipsPriceModalStyles,\n smy: smyPriceModalStyles,\n veci: veciPriceModalStyles\n});\n\nexport { priceModalThemes as default };\n","import { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\nimport priceModalThemes from './themes/index.mjs';\n\nconst InfoPrice = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"InfoPrice\",\n componentId: \"sc-d69cd59e-0\"\n})([\n \"\",\n \" position:absolute;background-color:\",\n \";color:\",\n \";bottom:8px;right:0;justify-content:center;align-items:center;padding:10px 20px;i{\",\n \"}\",\n \"\"\n], FlexMixin({\n direction: 'column'\n}), ({ theme })=>theme.colors.secondary.base, ({ theme })=>theme.colors.white.base, FontMixin({\n size: 'largest',\n weight: 'medium',\n height: 'larger'\n}), priceModalThemes('InfoPrice'));\nconst PriceAmounts = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceAmounts\",\n componentId: \"sc-d69cd59e-1\"\n})([\n \"\",\n \"\"\n], FlexMixin({\n direction: 'column',\n align: 'end'\n}));\nconst PriceTop = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceTop\",\n componentId: \"sc-d69cd59e-2\"\n})([\n \"\",\n \" & .from{margin-right:2px;margin-bottom:1px;\",\n \"}& .old-price{text-decoration:line-through;\",\n \"}\"\n], FlexMixin({\n justify: 'flex-end',\n align: 'flex-end'\n}), FontMixin({\n size: 'medium',\n weight: 'light',\n height: 'medium'\n}), FontMixin({\n size: 'base',\n weight: 'light',\n height: 'base'\n}));\nconst PriceCurrent = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"PriceCurrent\",\n componentId: \"sc-d69cd59e-3\"\n})([\n \"\",\n \"\"\n], FontMixin({\n size: 'largest',\n weight: 'medium',\n height: 'larger'\n}));\nconst PricePaxValue = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PricePaxValue\",\n componentId: \"sc-d69cd59e-4\"\n})([\n \"\",\n \" & .per-person{margin-right:2px;\",\n \"}\"\n], FontMixin({\n size: 'small',\n weight: 'light',\n height: 'small'\n}), FontMixin({\n size: 'medium',\n weight: 'regular',\n height: 'small'\n}));\n\nexport { InfoPrice, PriceAmounts, PriceCurrent, PricePaxValue, PriceTop };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport PriceWithCurrency from '@babylon/ui-kit-base/components/text/price-with-currency';\nimport { normalizePrice } from '../../../../utils/index.mjs';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport { formatPriceWithCurrency } from '@babylon/ui-kit-helpers/currency';\nimport { useContext } from 'react';\nimport { InfoPrice, PriceAmounts, PriceTop, PriceCurrent, PricePaxValue } from './styled.mjs';\n\nconst PriceModal = (props)=>{\n const { literals } = props;\n const price = normalizePrice(props.price);\n const { Currency, Language } = useContext(contextBabylon);\n const priceProps = {\n price: price.value,\n currency: Currency,\n locale: Language\n };\n return /*#__PURE__*/ jsx(InfoPrice, {\n \"data-testid\": \"PriceModal\",\n children: price?.value && price.value != 0 ? /*#__PURE__*/ jsxs(PriceAmounts, {\n children: [\n /*#__PURE__*/ jsxs(PriceTop, {\n children: [\n price.from && /*#__PURE__*/ jsx(\"span\", {\n className: \"from\",\n children: literals.fromCaption\n }),\n price.market_value && /*#__PURE__*/ jsx(\"span\", {\n className: \"old-price\",\n children: formatPriceWithCurrency(price.market_value, Currency, Language)\n })\n ]\n }),\n /*#__PURE__*/ jsx(PriceCurrent, {\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: priceProps\n })\n }),\n literals.perPerson && !price.paxValue && /*#__PURE__*/ jsx(\"span\", {\n className: \"per-person\",\n children: literals.perPerson\n }),\n price.paxValue && /*#__PURE__*/ jsxs(PricePaxValue, {\n children: [\n /*#__PURE__*/ jsx(\"span\", {\n className: \"per-person\",\n children: literals.perPerson\n }),\n /*#__PURE__*/ jsx(\"span\", {\n children: formatPriceWithCurrency(price.paxValue, Currency, Language)\n })\n ]\n })\n ]\n }) : /*#__PURE__*/ jsx(Icon, {\n className: \"nico-magnifier\"\n })\n });\n};\n\nexport { PriceModal as default };\n","import InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { AccordionContainer, AccordionHeader } from '@babylon/ui-kit-structures/components/others/accordion/styled';\nimport Modal from '@babylon/ui-kit-structures/components/others/modal';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { Padding } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\n\nconst ModalWrapper = /*#__PURE__*/ styled(Modal).withConfig({\n displayName: \"ModalWrapper\",\n componentId: \"sc-246e0662-0\"\n})([\n \"overflow-y:auto;padding-bottom:10px;--color-gray:\",\n \";\"\n], ({ theme })=>theme.colors.grays.lighter);\nconst Body = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Body\",\n componentId: \"sc-246e0662-1\"\n})([\n \"padding:0;width:100%;\",\n \" max-height:none;\"\n], FlexMixin());\nconst Info = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Info\",\n componentId: \"sc-246e0662-2\"\n})([\n \"width:50%;position:relative;border-right:\",\n \";color:\",\n \";\",\n \"\"\n], ({ $isActivities })=>!$isActivities && '1px solid var(--color-gray)', ({ theme })=>theme.colors.grays.darker, FontMixin({\n size: 'medium',\n weight: 'light',\n height: 'small'\n}));\nconst InfoImage = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"InfoImage\",\n componentId: \"sc-246e0662-3\"\n})([\n \"position:relative;width:100%;&:last-child{height:100%;}min-height:210px;\",\n \" &:last-child img{min-width:100%;min-height:100%;object-fit:cover;}\",\n \"\"\n], FlexMixin(), ({ $isActivities })=>$isActivities && Padding({\n all: '10px'\n }));\nconst InfoHead = /*#__PURE__*/ styled.p.withConfig({\n displayName: \"InfoHead\",\n componentId: \"sc-246e0662-4\"\n})([\n \"text-align:left;margin:32px 16px 12px 16px;\",\n \"\"\n], FontMixin({\n size: 'base',\n weight: 'medium',\n height: 'base'\n}));\nconst AccordionWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"AccordionWrapper\",\n componentId: \"sc-246e0662-5\"\n})([\n \"padding:0 16px;\",\n \":last-child{border:none;}\",\n \"{\",\n \" padding:12px 0;}.title{\",\n \"}\"\n], AccordionContainer, AccordionHeader, FontMixin({\n size: 'base',\n weight: 'regular',\n height: 'large'\n}), FontMixin({\n size: 'base',\n weight: 'medium',\n height: 'base'\n}));\nconst AccordionItem = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"AccordionItem\",\n componentId: \"sc-246e0662-6\"\n})([\n \"\",\n \" padding:12px 0;padding-right:32px;position:relative;&:first-child{padding-top:0;}&:not(:last-child){border-bottom:1px solid \",\n \";}\"\n], FlexMixin({\n direction: 'column'\n}), ({ theme })=>theme.colors.grays.light);\nconst AccordionHotelTitle = /*#__PURE__*/ styled.p.withConfig({\n displayName: \"AccordionHotelTitle\",\n componentId: \"sc-246e0662-7\"\n})([\n \"\",\n \" \",\n \" margin-bottom:4px;i + i{margin-left:2px;}& .hotel-title{margin-right:4px;}\"\n], FlexMixin({\n align: 'center'\n}), FontMixin({\n size: 'base',\n weight: 'medium',\n height: 'base'\n}));\nconst AccordionContent = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"AccordionContent\",\n componentId: \"sc-246e0662-8\"\n})([\n \"\",\n \" & strong{\",\n \"}\"\n], FontMixin({\n size: 'medium',\n weight: 'regular',\n height: 'base'\n}), FontMixin({\n size: 'medium',\n weight: 'bold',\n height: 'base'\n}));\nconst Searcher = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Searcher\",\n componentId: \"sc-246e0662-9\"\n})([\n \"width:50%;position:relative;\"\n]);\nconst Footer = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Footer\",\n componentId: \"sc-246e0662-10\"\n})([\n \"padding:16px;border-top:1px solid \",\n \";\",\n \" color:\",\n \";\"\n], ({ theme })=>theme.colors.grays.light, FontMixin({\n size: 'small',\n weight: 'regular',\n height: 'small'\n}), ({ theme })=>theme.colors.grays.dark);\n\nexport { AccordionContent, AccordionHotelTitle, AccordionItem, AccordionWrapper, Body, Footer, Info, InfoHead, InfoImage, ModalWrapper, Searcher };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Image from '@babylon/ui-kit-base/components/multimedia/image';\nimport SearcherModal from '@babylon/ui-kit-searchers/components/others/searcher-modal';\nimport { SearcherModalProductType } from '@babylon/ui-kit-searchers/components/others/searcher-modal/types';\nimport Accordion from '@babylon/ui-kit-structures/components/others/accordion';\nimport { Children } from 'react';\nimport { ratingTemplate } from '../../../utils/index.mjs';\nimport { REPLACE_DESTINATION, ImageResize } from '../../../utils/constants.mjs';\nimport CardTransport from './card-transport/index.mjs';\nimport PriceModal from './price-modal/index.mjs';\nimport { ModalWrapper, Body, Info, InfoImage, InfoHead, AccordionWrapper, AccordionItem, AccordionHotelTitle, AccordionContent, Searcher, Footer } from './styled.mjs';\n\nconst CardProductModal = ({ title, subtitle, zone, literals, image, price, expandedInfoTitle, expandedInfo, offerNote, rating, ratingIco, isVisible, product, endpoint, searcher, endpointParams, toggleVisibility, smallImage })=>{\n const { modalTitle: modalTitleLiteral = REPLACE_DESTINATION } = literals ?? {};\n const modalTitle = zone && subtitle !== null ? modalTitleLiteral.replace(REPLACE_DESTINATION, subtitle ?? '') : modalTitleLiteral.replace(REPLACE_DESTINATION, title);\n const hotelName = zone ? title : subtitle;\n const hasAccordion = !!expandedInfo?.filter((e)=>e.hotel).length || !!(expandedInfo?.filter((e)=>e.outbound).length && expandedInfo?.filter((e)=>e.arrival).length);\n let imageModalAttributes = ImageResize.MODAL;\n if (!hasAccordion && !expandedInfoTitle && !smallImage) {\n imageModalAttributes = ImageResize.MODAL_LARGE;\n }\n return /*#__PURE__*/ jsx(ModalWrapper, {\n hide: toggleVisibility,\n visible: isVisible,\n header: modalTitle,\n closeOnClickOut: true,\n closeOnEscapeKeyDown: true,\n content: /*#__PURE__*/ jsxs(\"div\", {\n \"data-testid\": \"CardProductModal\",\n children: [\n /*#__PURE__*/ jsxs(Body, {\n children: [\n /*#__PURE__*/ jsxs(Info, {\n $isActivities: product == SearcherModalProductType.SEARCHER_ACTIVITIES,\n children: [\n /*#__PURE__*/ jsxs(InfoImage, {\n $isActivities: product == SearcherModalProductType.SEARCHER_ACTIVITIES,\n children: [\n image && /*#__PURE__*/ jsx(Image, {\n ...imageModalAttributes,\n ...image\n }),\n /*#__PURE__*/ jsx(PriceModal, {\n literals: literals,\n price: price\n })\n ]\n }),\n !!expandedInfoTitle && /*#__PURE__*/ jsx(InfoHead, {\n children: expandedInfoTitle\n }),\n !!hasAccordion && /*#__PURE__*/ jsx(AccordionWrapper, {\n children: Children.toArray(expandedInfo?.map((info)=>{\n const hasTransport = !!(info.outbound && Object.keys(info.outbound).length > 0) || !!(info.arrival && Object.keys(info.arrival).length > 0);\n if (info.hotel) {\n return /*#__PURE__*/ jsxs(AccordionItem, {\n children: [\n /*#__PURE__*/ jsxs(AccordionHotelTitle, {\n children: [\n /*#__PURE__*/ jsx(\"span\", {\n className: \"hotel-title\",\n children: hotelName\n }),\n ratingTemplate(!!rating, ratingIco, rating)\n ]\n }),\n Children.toArray(info.content?.map((content)=>/*#__PURE__*/ jsx(AccordionContent, {\n tag: \"p\",\n content: content\n })))\n ]\n });\n }\n if (hasTransport && info.outbound && info.arrival) {\n return /*#__PURE__*/ jsx(Accordion, {\n header: /*#__PURE__*/ jsxs(\"span\", {\n className: \"title\",\n children: [\n info.title,\n Children.toArray(info.content?.map((content)=>/*#__PURE__*/ jsx(AccordionContent, {\n tag: \"p\",\n content: content\n })))\n ]\n }),\n content: /*#__PURE__*/ jsx(CardTransport, {\n outbound: info.outbound,\n arrival: info.arrival,\n product: product\n })\n });\n }\n if (info.title) {\n return /*#__PURE__*/ jsx(Accordion, {\n header: /*#__PURE__*/ jsxs(\"span\", {\n className: \"title\",\n children: [\n info.title,\n Children.toArray(info.content?.map((content)=>/*#__PURE__*/ jsx(AccordionContent, {\n tag: \"p\",\n content: content\n })))\n ]\n }),\n content: Children.toArray(info.descriptions?.map((description)=>/*#__PURE__*/ jsx(AccordionContent, {\n tag: \"p\",\n content: description\n })))\n });\n }\n }))\n })\n ]\n }),\n /*#__PURE__*/ jsx(Searcher, {\n children: /*#__PURE__*/ jsx(SearcherModal, {\n literals: literals,\n product: product,\n endpoint: endpoint,\n endpointParams: endpointParams,\n searcher: searcher\n })\n })\n ]\n }),\n offerNote && /*#__PURE__*/ jsx(Footer, {\n children: offerNote\n })\n ]\n })\n });\n};\n\nexport { CardProductModal as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst BenefitsCardWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"BenefitsCardWrapper\",\n componentId: \"sc-411e1d01-0\"\n})([\n \"background-color:\",\n \";margin-top:8px 0px;overflow:hidden;position:relative;width:100%;\",\n \"\"\n], ({ theme })=>theme.colors.primary.light, FlexMixin());\nconst BenefitsCardTitle = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"BenefitsCardTitle\",\n componentId: \"sc-411e1d01-1\"\n})([\n \"\",\n \" \",\n \" color:\",\n \";padding:0 8px;position:relative;width:90px;\",\n \"{z-index:\",\n \";}&::after{background-color:\",\n \";content:'';height:100%;left:-30px;position:absolute;top:0px;transform:skewX(-15deg);width:90px;}\"\n], FlexMixin({\n justify: 'center',\n align: 'center'\n}), FontMixin({\n size: 'largest',\n weight: 'light',\n height: 'largest'\n}), ({ theme })=>theme.colors.white.base, Icon, ({ theme })=>theme.zIndex.low, ({ theme })=>theme.colors.primary.base);\nconst Content = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Content\",\n componentId: \"sc-411e1d01-2\"\n})([\n \"\",\n \" color:\",\n \";padding:16px 20px;text-align:center;& span{\",\n \" margin-right:8px;&:not(:last-child)::after{content:'ยท';margin-left:8px;}}\"\n], FlexMixin({\n align: 'center',\n justify: 'center',\n wrap: true\n}), ({ theme })=>theme.colors.white.base, FontMixin({\n size: 'small',\n weight: 'light',\n height: 'small'\n}));\n\nexport { BenefitsCardTitle, BenefitsCardWrapper, Content };\n","import { jsx, Fragment, jsxs } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { Children } from 'react';\nimport { BenefitsCardWrapper, BenefitsCardTitle, Content } from './styled.mjs';\n\nconst BenefitsCardMobile = ({ items = [] })=>{\n if (!items.length) return /*#__PURE__*/ jsx(Fragment, {});\n return /*#__PURE__*/ jsxs(BenefitsCardWrapper, {\n \"data-testid\": \"BenefitsCard\",\n children: [\n /*#__PURE__*/ jsx(BenefitsCardTitle, {\n \"data-testid\": \"Title\",\n children: /*#__PURE__*/ jsx(Icon, {\n className: \"nico-circle-check\"\n })\n }),\n /*#__PURE__*/ jsx(Content, {\n className: \"benefits-card-content\",\n children: Children.toArray(items.map((item)=>/*#__PURE__*/ jsx(InnerMarkdownHTML, {\n content: item\n })))\n })\n ]\n });\n};\n\nexport { BenefitsCardMobile as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { rgba } from 'polished';\nimport styled, { css } from 'styled-components';\n\nconst variantStylesIconBadgeMobile = (variant = '', modifier = 'DEFAULT')=>({\n DISNEY: ({\n DEALS: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-disney-bg);\"\n ]),\n BLACKFRIDAY: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-disney-bg);\"\n ]),\n DEFAULT: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-disney-bg);\"\n ])\n })[modifier]\n })[variant.toUpperCase()] ?? ({\n DEALS: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-is-deal-bg);\"\n ]),\n BLACKFRIDAY: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-is-black-friday-bg);\"\n ]),\n DEFAULT: /*#__PURE__*/ css([\n \"background-color:var(--icon-badge-bg);\"\n ])\n })[modifier];\nconst IconBadgeMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"IconBadgeMobile\",\n componentId: \"sc-ee770e39-0\"\n})([\n \"--icon-badge-bg:\",\n \";--icon-badge-is-deal-bg:\",\n \";--icon-badge-is-black-friday-bg:\",\n \";--icon-badge-disney-bg:\",\n \";\",\n \" color:\",\n \";position:absolute;top:4px;left:0;padding:8px;\",\n \" z-index:\",\n \";\",\n \"{\",\n \"}&.is-deal{\",\n \"}&.is-blackfriday{\",\n \"}& .discount{\",\n \" &::before{content:'- ';}&::after{content:'%';}}\"\n], ({ theme })=>rgba(theme.colors.primary.lighter, 0.9), ({ theme })=>rgba(theme.colors.status.offer, 0.9), ({ theme })=>theme.colors.black.base, ({ theme })=>rgba(theme.colors.status.offer, 0.9), ({ $variant })=>variantStylesIconBadgeMobile($variant), ({ theme })=>theme.colors.white.base, FontMixin({\n size: 'larger'\n}), ({ theme })=>theme.zIndex.lowest, Icon, FontMixin({\n size: 'large',\n height: 'large',\n weight: 'regular'\n}), ({ $variant })=>variantStylesIconBadgeMobile($variant, 'DEALS'), ({ $variant })=>variantStylesIconBadgeMobile($variant, 'BLACKFRIDAY'), FontMixin({\n size: 'larger',\n height: 'base',\n weight: 'regular'\n}));\n\nexport { IconBadgeMobile };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport classNames from 'classnames';\nimport { getIcon } from '../../../utils/index.mjs';\nimport { IconBadgeMobile } from './styled.mjs';\n\nconst HeaderBadges = ({ config = {}, discount })=>{\n const { icon = false, iconName = '', deal = false, product = '', isBlackfriday = false } = config;\n const showOffer = !icon && !!discount;\n const hasBadge = icon || showOffer;\n return /*#__PURE__*/ jsx(\"div\", {\n \"data-testid\": \"HeaderBadges\",\n children: hasBadge && /*#__PURE__*/ jsxs(IconBadgeMobile, {\n $variant: product,\n \"data-testid\": \"HeaderBadgesIconWrapper\",\n className: classNames({\n 'is-deal': showOffer || deal,\n 'is-blackfriday': isBlackfriday\n }),\n children: [\n icon && /*#__PURE__*/ jsx(Icon, {\n className: `nico-${iconName || getIcon(product)}`\n }),\n showOffer && !icon && /*#__PURE__*/ jsx(\"span\", {\n \"data-testid\": \"HeaderBadgesIconDiscount\",\n className: \"discount\",\n children: discount\n })\n ]\n })\n });\n};\n\nexport { HeaderBadges as default };\n","import { css } from 'styled-components';\n\nconst partnershipsPortaventuraPricesMobileStyles = {\n PriceTopMobile: ()=>/*#__PURE__*/ css([\n \"color:\",\n \";text-transform:lowercase;\"\n ], ({ theme })=>theme.colors.grays.darker),\n PriceCurrentMobile: ()=>/*#__PURE__*/ css([\n \"font-family:\",\n \";font-weight:bold;color:\",\n \";\"\n ], ({ theme })=>theme.font.family.secondary, ({ theme })=>theme.colors.grays.darker)\n};\n\nexport { partnershipsPortaventuraPricesMobileStyles as default };\n","import { createThemes } from '@babylon/ui-kit-styles/common/themes';\nimport partnershipsPortaventuraPricesMobileStyles from './styles/portaventura.mjs';\n\nconst pricesMobileThemes = createThemes({\n partnershipsPortaventura: partnershipsPortaventuraPricesMobileStyles\n});\n\nexport { pricesMobileThemes as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { FlexMixin, FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { BorderRadius } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\nimport pricesMobileThemes from './themes/index.mjs';\n\nconst PricesWrapperMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PricesWrapperMobile\",\n componentId: \"sc-a9ba0742-0\"\n})([\n \"color:\",\n \";margin-left:auto;max-width:45%;text-align:end;flex-shrink:0;align-self:flex-end;align-items:flex-end;\",\n \"\"\n], ({ theme })=>theme.colors.secondary.base, FlexMixin({\n direction: 'column',\n align: 'flex-end'\n}));\nconst Price = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Price\",\n componentId: \"sc-a9ba0742-1\"\n})([\n \"\",\n \"\"\n], FlexMixin({\n direction: 'column'\n}));\nconst PriceTopMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceTopMobile\",\n componentId: \"sc-a9ba0742-2\"\n})([\n \"color:\",\n \";\",\n \" .from{\",\n \"}.old-price{\",\n \" text-decoration:line-through;}\",\n \"\"\n], ({ theme })=>theme.colors.secondary.base, FlexMixin({\n direction: 'column',\n justify: 'flex-end',\n align: 'flex-end'\n}), FontMixin({\n size: 'smaller',\n height: 'small',\n weight: 'regular'\n}), FontMixin({\n size: 'medium',\n height: 'small',\n weight: 'regular'\n}), pricesMobileThemes('PriceTopMobile'));\nconst PriceCurrentMobile = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"PriceCurrentMobile\",\n componentId: \"sc-a9ba0742-3\"\n})([\n \"color:\",\n \";\",\n \" \",\n \"\"\n], ({ theme })=>theme.colors.secondary.base, FontMixin({\n size: 'larger',\n height: 'large',\n weight: 'medium'\n}), pricesMobileThemes('PriceCurrentMobile'));\nconst PricePaxValueMobile = /*#__PURE__*/ styled.span.withConfig({\n displayName: \"PricePaxValueMobile\",\n componentId: \"sc-a9ba0742-4\"\n})([\n \"color:\",\n \";.per-person{\",\n \"}.pax-value{\",\n \"}\"\n], ({ theme })=>theme.colors.grays.base, FontMixin({\n size: 'small',\n height: 'small',\n weight: 'regular'\n}), FontMixin({\n size: 'base',\n height: 'small',\n weight: 'regular'\n}));\nconst PriceCaptionMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceCaptionMobile\",\n componentId: \"sc-a9ba0742-5\"\n})([\n \"color:\",\n \";\",\n \"\"\n], ({ theme })=>theme.colors.grays.base, FontMixin({\n size: 'smaller',\n weight: 'regular',\n height: 'small'\n}));\nconst PriceTopDealMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceTopDealMobile\",\n componentId: \"sc-a9ba0742-6\"\n})([\n \"color:\",\n \";\",\n \" margin-bottom:4px;.discount{background-color:\",\n \";color:\",\n \";\",\n \" padding:1px 4px;margin-right:4px;&::after{content:'%';}&::before{content:'-';}}.old-price{text-decoration:line-through;}\"\n], ({ theme })=>theme.colors.grays.dark, FontMixin({\n size: 'small',\n weight: 'light',\n height: 'medium'\n}), ({ theme })=>theme.colors.grays.base, ({ theme })=>theme.colors.white.base, BorderRadius({\n all: '4px'\n}));\nconst PriceCurrentDealMobile = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"PriceCurrentDealMobile\",\n componentId: \"sc-a9ba0742-7\"\n})([\n \"color:\",\n \";\",\n \" position:relative;\",\n \" background-color:\",\n \";padding-right:12px;max-height:36px;min-height:36px;margin-right:-12px;&::before{content:'';height:0;position:absolute;top:0;width:0;border-bottom:18px solid transparent;border-right:12px solid \",\n \";border-top:18px solid transparent;left:-12px;}&.is-blackfriday{background-color:\",\n \";}&.is-blackfriday::before{border-right-color:\",\n \";}\"\n], ({ theme })=>theme.colors.white.base, FlexMixin({\n align: 'center'\n}), FontMixin({\n size: 'larger',\n weight: 'medium',\n height: 'large'\n}), ({ theme })=>theme.colors.status.offer, ({ theme })=>theme.colors.status.offer, ({ theme })=>theme.colors.black.base, ({ theme })=>theme.colors.black.base);\nconst OnlyIcon = /*#__PURE__*/ styled(Icon).withConfig({\n displayName: \"OnlyIcon\",\n componentId: \"sc-a9ba0742-8\"\n})([\n \"color:\",\n \";\",\n \"\"\n], ({ theme })=>theme.colors.secondary.base, FontMixin({\n size: 'large',\n weight: 'bold',\n height: 'large'\n}));\nconst NoPrice = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"NoPrice\",\n componentId: \"sc-a9ba0742-9\"\n})([\n \"\",\n \" margin-left:auto;& > span{color:\",\n \";\",\n \" margin-right:8px;margin-bottom:0;text-align:right;}& strong{display:block;color:\",\n \";\",\n \"}\",\n \"{\",\n \" background-color:\",\n \";color:\",\n \";\",\n \" width:40px;min-width:40px;height:40px;}\"\n], FlexMixin({\n justify: 'flex-end',\n align: 'center'\n}), ({ theme })=>theme.colors.secondary.base, FontMixin({\n size: 'medium',\n weight: 'regular',\n height: 'base'\n}), ({ theme })=>theme.colors.grays.base, FontMixin({\n size: 'medium',\n weight: 'regular',\n height: 'base'\n}), Icon, FlexMixin({\n justify: 'center',\n align: 'center'\n}), ({ theme })=>theme.colors.secondary.base, ({ theme })=>theme.colors.white.base, BorderRadius({\n all: '50%'\n}));\n\nexport { NoPrice, OnlyIcon, Price, PriceCaptionMobile, PriceCurrentDealMobile, PriceCurrentMobile, PricePaxValueMobile, PriceTopDealMobile, PriceTopMobile, PricesWrapperMobile };\n","import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport PriceWithCurrency from '@babylon/ui-kit-base/components/text/price-with-currency';\nimport contextBabylon from '@babylon/ui-kit-context';\nimport classNames from 'classnames';\nimport { useContext } from 'react';\nimport { normalizePrice } from '../../../utils/index.mjs';\nimport { OnlyIcon, PricesWrapperMobile, PriceTopDealMobile, Price, PriceCurrentDealMobile, PriceTopMobile, PriceCurrentMobile, PricePaxValueMobile, PriceCaptionMobile } from './styled.mjs';\n\nconst Prices = (props)=>{\n const { isDeal, isBlackfriday = false, literals } = props;\n const price = normalizePrice(props.price);\n const { Currency, Language } = useContext(contextBabylon);\n const priceProps = {\n price: price.value,\n currency: Currency,\n locale: Language\n };\n if (!price?.value) return /*#__PURE__*/ jsx(OnlyIcon, {\n className: \"nico-magnifier\"\n });\n return /*#__PURE__*/ jsxs(PricesWrapperMobile, {\n \"data-testid\": \"Prices\",\n itemProp: \"offers\",\n itemScope: false,\n itemType: \"https://schema.org/AggregateOffer\",\n children: [\n /*#__PURE__*/ jsx(\"meta\", {\n itemProp: \"lowPrice\",\n content: price.value.toString()\n }),\n /*#__PURE__*/ jsx(\"meta\", {\n itemProp: \"priceCurrency\",\n content: Currency\n }),\n isDeal ? /*#__PURE__*/ jsxs(Fragment, {\n children: [\n /*#__PURE__*/ jsxs(PriceTopDealMobile, {\n children: [\n /*#__PURE__*/ jsx(Price, {\n children: price.from && /*#__PURE__*/ jsxs(\"span\", {\n className: \"from\",\n children: [\n literals?.fromCaption,\n \" \"\n ]\n })\n }),\n price.discount && /*#__PURE__*/ jsx(\"span\", {\n className: \"discount\",\n children: price.discount\n }),\n price.market_value && /*#__PURE__*/ jsx(\"span\", {\n className: \"old-price\",\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: {\n ...priceProps,\n price: price.market_value\n }\n })\n })\n ]\n }),\n /*#__PURE__*/ jsx(PriceCurrentDealMobile, {\n \"data-testid\": \"PriceCurrentDeal\",\n className: classNames({\n 'is-blackfriday': isBlackfriday\n }),\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: priceProps\n })\n })\n ]\n }) : /*#__PURE__*/ jsxs(Fragment, {\n children: [\n /*#__PURE__*/ jsxs(PriceTopMobile, {\n children: [\n price.from && /*#__PURE__*/ jsx(\"span\", {\n className: \"from\",\n children: literals?.fromCaption\n }),\n price.market_value && /*#__PURE__*/ jsx(\"span\", {\n className: \"old-price\",\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: {\n ...priceProps,\n price: price.market_value\n }\n })\n })\n ]\n }),\n /*#__PURE__*/ jsx(PriceCurrentMobile, {\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: priceProps\n })\n }),\n price.paxValue && /*#__PURE__*/ jsxs(PricePaxValueMobile, {\n children: [\n /*#__PURE__*/ jsx(\"span\", {\n className: \"per-person\",\n children: literals?.perPerson\n }),\n /*#__PURE__*/ jsx(\"span\", {\n className: \"pax-value\",\n children: /*#__PURE__*/ jsx(PriceWithCurrency, {\n props: {\n ...priceProps,\n price: price.paxValue\n }\n })\n })\n ]\n }),\n price.caption && /*#__PURE__*/ jsx(PriceCaptionMobile, {\n children: literals?.priceCaption\n })\n ]\n })\n ]\n });\n};\n\nexport { Prices as default };\n","import { css } from 'styled-components';\n\nconst partnershipsPortaventuraProductCardMobileStyles = {\n ProductCardTitle: ()=>/*#__PURE__*/ css([\n \"color:\",\n \";font-weight:bold;\"\n ], ({ theme })=>theme.colors.grays.darker)\n};\n\nexport { partnershipsPortaventuraProductCardMobileStyles as default };\n","import { createThemes } from '@babylon/ui-kit-styles/common/themes';\nimport partnershipsPortaventuraProductCardMobileStyles from './styles/portaventura.mjs';\n\nconst productCardMobileThemes = createThemes({\n partnershipsPortaventura: partnershipsPortaventuraProductCardMobileStyles\n});\n\nexport { productCardMobileThemes as default };\n","import Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport Image from '@babylon/ui-kit-base/components/multimedia/image';\nimport InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport Modal from '@babylon/ui-kit-structures/components/others/modal';\nimport { ModalWrapper } from '@babylon/ui-kit-structures/components/others/modal/styled';\nimport { FontMixin, FlexMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { Margin } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport { Stars } from '@babylon/ui-kit-styles/common/mixins/stars.styled';\nimport styled from 'styled-components';\nimport productCardMobileThemes from './themes/index.mjs';\n\nconst ProductCardBox = /*#__PURE__*/ styled.article.withConfig({\n displayName: \"ProductCardBox\",\n componentId: \"sc-2e44e6d-0\"\n})([\n \"border-top:1px solid \",\n \";border-bottom:1px solid \",\n \";background:\",\n \";position:relative;&.is-sold-out{overflow:hidden;&::before{background-color:\",\n \";content:'';height:100%;left:0;position:absolute;top:0;width:100%;z-index:\",\n \";}&::after{\",\n \" background:\",\n \";border:4px solid \",\n \";color:\",\n \";content:'sold out!';font-family:\",\n \";left:50%;padding:16px 28px;position:absolute;text-align:center;text-transform:uppercase;top:50%;transform:rotate(-10deg) translate(-50%,-100%);width:120%;z-index:\",\n \";}}\"\n], ({ theme })=>theme.colors.grays.light, ({ theme })=>theme.colors.grays.light, ({ theme })=>theme.colors.white.base, ({ theme })=>theme.colors.black.lower, ({ theme })=>theme.zIndex.low, FontMixin({\n size: 'xl',\n weight: 'semiBold',\n height: 'xl'\n}), ({ theme })=>theme.colors.black.base, ({ theme })=>theme.colors.secondary.base, ({ theme })=>theme.colors.white.base, ({ theme })=>theme.font.family.secondary, ({ theme })=>theme.zIndex.base);\nconst ProductCardLink = /*#__PURE__*/ styled.a.withConfig({\n displayName: \"ProductCardLink\",\n componentId: \"sc-2e44e6d-1\"\n})([\n \"\",\n \"\"\n], FlexMixin({\n direction: 'row'\n}));\nconst ProductCardImageContainer = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardImageContainer\",\n componentId: \"sc-2e44e6d-2\"\n})([\n \"overflow:hidden;min-width:112px;\",\n \" & .itinerary{position:relative;height:100%;width:100%;max-width:112px;overflow:hidden;& img{object-fit:cover;position:absolute;top:0;height:100%;left:50%;transform:translateX(-50%);max-width:initial;aspect-ratio:16 / 9;width:100%;object-fit:cover;}}& .logo{margin:4px 0;background:\",\n \";position:relative;bottom:0;& img{height:auto;width:100%;}}\"\n], FlexMixin({\n direction: 'column',\n justify: 'space-between'\n}), ({ theme })=>theme.colors.white.base);\nconst ProductCardHeader = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardHeader\",\n componentId: \"sc-2e44e6d-3\"\n})([\n \"\",\n \" & > *:last-child{margin-bottom:8px;}\"\n], FontMixin({\n height: 'base'\n}));\nconst ProductCardContent = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardContent\",\n componentId: \"sc-2e44e6d-4\"\n})([\n \"padding:8px 12px;\",\n \" flex-grow:1;min-height:120px;\"\n], FlexMixin({\n justify: 'space-between',\n direction: 'column'\n}));\nconst ProductCardTitle = /*#__PURE__*/ styled.h3.withConfig({\n displayName: \"ProductCardTitle\",\n componentId: \"sc-2e44e6d-5\"\n})([\n \"\",\n \" color:\",\n \";\",\n \"\"\n], FontMixin({\n size: 'base',\n height: 'base',\n weight: 'regular'\n}), ({ theme })=>theme.colors.grays.darker, productCardMobileThemes('ProductCardTitle'));\nconst Subtitle = /*#__PURE__*/ styled.p.withConfig({\n displayName: \"Subtitle\",\n componentId: \"sc-2e44e6d-6\"\n})([\n \"& > .product-card-subtitle{\",\n \" color:\",\n \";margin-right:4px;}& > .product-card-textInfo{\",\n \" color:\",\n \";margin-right:4px;display:block;}\",\n \"{\",\n \" & > i{margin-left:2px;}}\"\n], FontMixin({\n size: 'medium',\n height: 'base',\n weight: 'light'\n}), ({ theme })=>theme.colors.grays.dark, FontMixin({\n size: 'medium',\n height: 'base',\n weight: 'medium'\n}), ({ theme })=>theme.colors.grays.darker, Stars, FontMixin({\n size: 'small',\n height: 'smaller',\n weight: 'regular'\n}));\nconst Detail = /*#__PURE__*/ styled(InnerMarkdownHTML).withConfig({\n displayName: \"Detail\",\n componentId: \"sc-2e44e6d-7\"\n})([\n \"\",\n \" color:\",\n \";margin-bottom:8px;\"\n], FontMixin({\n size: 'base',\n height: 'base',\n weight: 'light'\n}), ({ theme })=>theme.colors.grays.dark);\nconst Descriptions = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Descriptions\",\n componentId: \"sc-2e44e6d-8\"\n})([\n \"color:\",\n \";\",\n \" overflow:hidden;&.is-deal{margin-right:14px;}\"\n], ({ theme })=>theme.colors.grays.dark, FontMixin({\n size: 'small',\n height: 'medium',\n weight: 'light'\n}));\nconst ProductCardPrice = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardPrice\",\n componentId: \"sc-2e44e6d-9\"\n})([\n \"\",\n \" color:\",\n \";margin-left:12px;max-width:45%;text-align:end;flex-shrink:0;align-self:flex-end;align-items:flex-end;\",\n \" .from{\",\n \"}.old-price{\",\n \" text-decoration:line-through;}\"\n], FontMixin({\n size: 'larger',\n height: 'large',\n weight: 'medium'\n}), ({ theme })=>theme.colors.secondary.base, FlexMixin({\n direction: 'column',\n align: 'flex-end'\n}), FontMixin({\n size: 'smaller',\n height: 'small',\n weight: 'regular'\n}), FontMixin({\n size: 'medium',\n height: 'small',\n weight: 'regular'\n}));\nconst Upside = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Upside\",\n componentId: \"sc-2e44e6d-10\"\n})([\n \"color:\",\n \";\",\n \"\"\n], ({ theme })=>theme.colors.primary.lighter, FontMixin({\n size: 'small',\n weight: 'medium',\n height: 'medium'\n}));\nconst Promotion = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Promotion\",\n componentId: \"sc-2e44e6d-11\"\n})([\n \"color:\",\n \";\",\n \"\"\n], ({ theme })=>theme.colors.status.offer, FontMixin({\n size: 'small',\n weight: 'medium',\n height: 'medium'\n}));\nconst Tripadvisor = /*#__PURE__*/ styled(Image).withConfig({\n displayName: \"Tripadvisor\",\n componentId: \"sc-2e44e6d-12\"\n})([\n \"width:120px;height:20px;margin-left:-8px;\"\n]);\nconst Reviews = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Reviews\",\n componentId: \"sc-2e44e6d-13\"\n})([\n \"color:\",\n \";\",\n \" \",\n \" \",\n \"{margin:0 4px 4px 4px;}&.reviews-veryGood{color:\",\n \";}\"\n], ({ theme })=>theme.colors.status.success, FontMixin({\n size: 'small',\n weight: 'medium',\n height: 'medium'\n}), FlexMixin({\n align: 'center'\n}), Icon, ({ theme })=>theme.colors.primary.lighter);\nconst Transport = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Transport\",\n componentId: \"sc-2e44e6d-14\"\n})([\n \"color:\",\n \";\",\n \"\"\n], ({ theme })=>theme.colors.status.success, FontMixin({\n size: 'small',\n weight: 'medium',\n height: 'medium'\n}));\nconst ProductCardFooter = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardFooter\",\n componentId: \"sc-2e44e6d-15\"\n})([\n \"\",\n \"\"\n], FlexMixin({\n justify: 'space-between'\n}));\nconst ProductCardDescription = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardDescription\",\n componentId: \"sc-2e44e6d-16\"\n})([\n \"\",\n \" \",\n \" overflow:hidden;\"\n], FlexMixin({\n direction: 'column',\n justify: 'flex-end'\n}), FontMixin({\n height: 'medium'\n}));\nconst ProductCardIconProps = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ProductCardIconProps\",\n componentId: \"sc-2e44e6d-17\"\n})([\n \"color:\",\n \";\",\n \" \",\n \" margin-right:4px;margin-top:4px;\",\n \"{width:30px;height:30px;\",\n \"}\"\n], ({ theme })=>theme.colors.primary.lighter, FontMixin({\n size: 'large',\n height: 'base',\n weight: 'regular'\n}), FlexMixin({\n align: 'center'\n}), Icon, FlexMixin({\n align: 'center'\n}));\nconst SearcherModal = /*#__PURE__*/ styled(Modal).withConfig({\n displayName: \"SearcherModal\",\n componentId: \"sc-2e44e6d-18\"\n})([\n \"\",\n \"{background-color:\",\n \";}\"\n], ModalWrapper, (props)=>props.theme.colors.primary.base);\nconst Title = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"Title\",\n componentId: \"sc-2e44e6d-19\"\n})([\n \"color:\",\n \";\",\n \" \",\n \" text-align:center;\"\n], (props)=>props.theme.colors.white.base, Margin({\n all: '0px'\n}), FontMixin({\n size: 'largest',\n weight: 'medium',\n height: 'largest'\n}));\n\nexport { Descriptions, Detail, ProductCardBox, ProductCardContent, ProductCardDescription, ProductCardFooter, ProductCardHeader, ProductCardIconProps, ProductCardImageContainer, ProductCardLink, ProductCardPrice, ProductCardTitle, Promotion, Reviews, SearcherModal, Subtitle, Title, Transport, Tripadvisor, Upside };\n","import { jsx, Fragment, jsxs } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport Image from '@babylon/ui-kit-base/components/multimedia/image';\nimport JsonLd from '@babylon/ui-kit-base/components/others/json-ld';\nimport InnerMarkdownHTML from '@babylon/ui-kit-base/components/text/inner-markdown-HTML';\nimport { nullsToUndefined } from '@babylon/ui-kit-helpers/null';\nimport SearcherActivitiesMobile from '@babylon/ui-kit-searchers/components/searchers/searcher-activities/views/mobile';\nimport { SearcherId } from '@babylon/ui-kit-searchers/types';\nimport classNames from 'classnames';\nimport { useMemo, useCallback, Children } from 'react';\nimport { useBoolean } from 'usehooks-ts';\nimport { ratingTemplate, getReviewContent } from '../../utils/index.mjs';\nimport { ImageResize, MAX_UPSIDE } from '../../utils/constants.mjs';\nimport HeaderBadges from './header-badges/index.mjs';\nimport Prices from './prices/index.mjs';\nimport { Subtitle, ProductCardBox, ProductCardLink, ProductCardImageContainer, ProductCardContent, ProductCardHeader, ProductCardTitle, Detail, Descriptions, Upside, Promotion, ProductCardFooter, ProductCardDescription, Tripadvisor, Reviews, ProductCardIconProps, Transport, SearcherModal, Title } from './styled.mjs';\n\nconst ProductCardMobile = ({ title = '', textInfo, subtitle, detail, descriptions = [], price, rating, image, link, className = '', ldjson, config = {}, upside = [], promotion, tripadvisor, reviews, transport, icons = [], company, searcher, defaultImage = {} })=>{\n const { literals, rating: ratingIco = 'star', zone = false, deal = false, showSubtitleFirst = false, isBlackfriday = false, soldOut = false, hasModal = false, showDescriptionFirst = false, isFirstComponent = false } = config;\n const reviewContent = getReviewContent(reviews);\n const jsonLd = ldjson && 'scripts' in ldjson ? [\n ldjson\n ] : ldjson?.scripts || [];\n const transports = transport && Array.isArray(transport) ? transport : [\n transport ?? ''\n ];\n const { value: isVisible, toggle: toggleVisibility } = useBoolean();\n const imagePropertiesMobile = {\n ...ImageResize.MOBILE,\n ...defaultImage,\n isLazy: !isFirstComponent\n };\n const imagePropertiesMobileCompany = {\n ...ImageResize.MOBILE_COMPANY,\n ...defaultImage,\n isLazy: !isFirstComponent\n };\n const subtitleItem = useMemo(()=>/*#__PURE__*/ jsx(Fragment, {\n children: subtitle && /*#__PURE__*/ jsxs(Subtitle, {\n children: [\n textInfo && /*#__PURE__*/ jsx(\"span\", {\n className: \"product-card-textInfo\",\n children: textInfo\n }),\n /*#__PURE__*/ jsx(\"span\", {\n className: \"product-card-subtitle\",\n children: subtitle\n }),\n ratingTemplate(!zone, ratingIco, rating)\n ]\n })\n }), [\n subtitle,\n zone,\n ratingIco,\n rating,\n textInfo\n ]);\n const onClickCard = useCallback((event)=>{\n if (hasModal) {\n event.preventDefault();\n toggleVisibility();\n }\n }, [\n hasModal,\n toggleVisibility\n ]);\n const renderSearcher = (id)=>{\n const searcherProps = {\n name: 'm-productcardmodal-searcher',\n props: searcher\n };\n if (id === SearcherId.ACTIVITIES) {\n return /*#__PURE__*/ jsx(SearcherActivitiesMobile, {\n ...searcherProps\n });\n }\n };\n return /*#__PURE__*/ jsxs(Fragment, {\n children: [\n /*#__PURE__*/ jsxs(ProductCardBox, {\n \"data-testid\": \"ProductCard\",\n className: classNames({\n [className]: !!className,\n 'is-sold-out': soldOut\n }),\n children: [\n /*#__PURE__*/ jsx(HeaderBadges, {\n config: config,\n discount: price?.discount\n }),\n /*#__PURE__*/ jsxs(ProductCardLink, {\n ...nullsToUndefined(link),\n children: [\n /*#__PURE__*/ jsxs(ProductCardImageContainer, {\n onClick: onClickCard,\n children: [\n image && /*#__PURE__*/ jsx(Image, {\n className: \"itinerary\",\n ...imagePropertiesMobile,\n ...image\n }),\n company && /*#__PURE__*/ jsx(Image, {\n className: \"logo\",\n ...imagePropertiesMobileCompany,\n ...company\n })\n ]\n }),\n /*#__PURE__*/ jsxs(ProductCardContent, {\n children: [\n /*#__PURE__*/ jsxs(ProductCardHeader, {\n onClick: onClickCard,\n children: [\n showSubtitleFirst && subtitleItem,\n /*#__PURE__*/ jsxs(ProductCardTitle, {\n children: [\n title,\n ratingTemplate(zone, ratingIco, rating)\n ]\n }),\n !showSubtitleFirst && subtitleItem,\n detail && /*#__PURE__*/ jsx(Detail, {\n tag: \"p\",\n content: detail\n }),\n showDescriptionFirst && !!descriptions.length && /*#__PURE__*/ jsx(Descriptions, {\n className: classNames({\n 'is-deal': deal\n }),\n children: Children.toArray(descriptions.map((item)=>/*#__PURE__*/ jsx(InnerMarkdownHTML, {\n tag: \"p\",\n content: item\n })))\n }),\n !!upside.length && /*#__PURE__*/ jsx(Upside, {\n children: Children.toArray(upside.slice(0, MAX_UPSIDE).map((item)=>/*#__PURE__*/ jsx(\"p\", {\n children: item\n })))\n }),\n promotion && /*#__PURE__*/ jsx(Promotion, {\n children: /*#__PURE__*/ jsx(\"p\", {\n children: promotion\n })\n })\n ]\n }),\n /*#__PURE__*/ jsxs(ProductCardFooter, {\n onClick: onClickCard,\n children: [\n (!!tripadvisor || !!reviews || descriptions.length > 0 || !!icons || !transports) && /*#__PURE__*/ jsxs(ProductCardDescription, {\n children: [\n tripadvisor && /*#__PURE__*/ jsx(Tripadvisor, {\n ...tripadvisor,\n width: 120,\n height: 20\n }),\n !tripadvisor && !!reviews && /*#__PURE__*/ jsxs(Reviews, {\n className: `reviews-${reviewContent}`,\n children: [\n /*#__PURE__*/ jsx(\"span\", {\n children: literals?.[reviewContent]\n }),\n /*#__PURE__*/ jsx(Icon, {\n className: \"nico-thumbs-up-filled\"\n }),\n /*#__PURE__*/ jsx(\"span\", {\n children: reviews\n })\n ]\n }),\n !showDescriptionFirst && !!descriptions.length && /*#__PURE__*/ jsx(Descriptions, {\n className: classNames({\n 'is-deal': deal\n }),\n children: Children.toArray(descriptions.map((item)=>/*#__PURE__*/ jsx(InnerMarkdownHTML, {\n tag: \"p\",\n content: item\n })))\n }),\n !!icons.length && /*#__PURE__*/ jsx(ProductCardIconProps, {\n children: Children.toArray(icons.slice(0, 3).map((item)=>/*#__PURE__*/ jsx(Icon, {\n className: `nico-${item.icon}`\n })))\n }),\n transports && /*#__PURE__*/ jsx(Transport, {\n children: Children.toArray(transports.map((trans)=>/*#__PURE__*/ jsx(\"p\", {\n children: trans\n })))\n })\n ]\n }),\n /*#__PURE__*/ jsx(Prices, {\n isDeal: deal,\n price: price,\n literals: literals,\n isBlackfriday: isBlackfriday\n })\n ]\n })\n ]\n })\n ]\n }),\n Children.toArray(jsonLd?.map((script)=>/*#__PURE__*/ jsx(JsonLd, {\n structuredData: script\n })))\n ]\n }),\n hasModal && /*#__PURE__*/ jsx(SearcherModal, {\n visible: isVisible,\n hide: toggleVisibility,\n content: /*#__PURE__*/ jsxs(Fragment, {\n children: [\n /*#__PURE__*/ jsx(Title, {\n children: title\n }),\n renderSearcher('ACTIVITIES')\n ]\n }),\n color: \"primary\",\n variant: \"fullScreen\",\n \"data-testid\": \"CardProductModal\"\n })\n ]\n });\n};\n\nexport { ProductCardMobile as default };\n","import { FlexMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport styled from 'styled-components';\n\nconst SkeletonItem = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonItem\",\n componentId: \"sc-873d2146-0\"\n})([\n \"\",\n \" background-color:\",\n \";margin-bottom:8px;position:relative;width:100%;\"\n], FlexMixin(), ({ theme })=>theme.colors.white.base);\nconst SkeletonImages = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonImages\",\n componentId: \"sc-873d2146-1\"\n})([\n \"margin-right:16px;min-width:112px;\"\n]);\nconst SkeletonContent = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"SkeletonContent\",\n componentId: \"sc-873d2146-2\"\n})([\n \"min-width:calc(100% - 128px);& div:first-child{margin-top:16px;}& div{margin-bottom:14px;min-heigh:18px;}\"\n]);\n\nexport { SkeletonContent, SkeletonImages, SkeletonItem };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport Skeleton from '@babylon/ui-kit-structures/components/others/skeleton';\nimport { SkeletonItem, SkeletonImages, SkeletonContent } from './styled.mjs';\n\nconst CardSkeletonMobile = ()=>/*#__PURE__*/ jsxs(SkeletonItem, {\n className: \"item\",\n \"data-testid\": \"CardSkeletonMobile\",\n children: [\n /*#__PURE__*/ jsx(SkeletonImages, {\n children: /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n height: \"112px\"\n })\n }),\n /*#__PURE__*/ jsxs(SkeletonContent, {\n children: [\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"90%\",\n style: {\n minHeight: '18px'\n }\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"40%\",\n style: {\n minHeight: '18px'\n }\n }),\n /*#__PURE__*/ jsx(Skeleton, {\n variant: \"rectangular\",\n animation: \"wave\",\n width: \"60%\",\n style: {\n minHeight: '18px'\n }\n })\n ]\n })\n ]\n });\n\nexport { CardSkeletonMobile as default };\n","const getTitle = (title)=>{\n if (!title?.title) return undefined;\n return {\n title: title.title,\n link: title?.link,\n subTitle: title?.subTitle ?? title?.subtitle,\n icon: typeof title?.icon === 'string' ? title?.icon : title?.icon?.name\n };\n};\n\nexport { getTitle };\n","import { FontMixin } from '@babylon/ui-kit-styles/common/mixins/helpers.styled';\nimport { BorderRadius } from '@babylon/ui-kit-styles/common/mixins/logical.styled';\nimport styled from 'styled-components';\n\nconst ButtonBox = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"ButtonBox\",\n componentId: \"sc-4781480-0\"\n})([\n \"padding:24px 0;margin-top:0px;text-align:center;background-color:\",\n \";background:\",\n \";a{\",\n \" \",\n \" color:\",\n \";border:1px solid \",\n \";background-color:\",\n \";display:inline-block;padding:8px 16px;cursor:pointer;transition:0.4s;text-transform:uppercase;text-align:center;vertical-align:middle;white-space:nowrap;outline:none;}\"\n], ({ theme })=>theme.colors.white.base, ({ theme })=>theme.bodyBgColor, FontMixin({\n size: 'medium',\n weight: 'medium',\n height: 'small'\n}), BorderRadius({\n all: '4px'\n}), ({ theme })=>theme.colors.primary.light, ({ theme })=>theme.colors.primary.light, ({ theme })=>theme.colors.white.base);\n\nexport { ButtonBox };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport Icon from '@babylon/ui-kit-base/components/icons/icon';\nimport { nullsToUndefined } from '@babylon/ui-kit-helpers/null';\nimport { ButtonBox } from './styled.mjs';\n\nconst ButtonViewMore = ({ link, content, hasIcon })=>/*#__PURE__*/ jsxs(ButtonBox, {\n \"data-testid\": \"ButtonViewMore\",\n className: \"button-view-more\",\n children: [\n /*#__PURE__*/ jsx(\"a\", {\n ...nullsToUndefined(link),\n children: content\n }),\n hasIcon && /*#__PURE__*/ jsx(Icon, {\n className: \"nico-arrow-right\"\n })\n ]\n });\n\nexport { ButtonViewMore as default };\n","import styled from 'styled-components';\n\nconst CarouselProductWrapper = /*#__PURE__*/ styled.div.withConfig({\n displayName: \"CarouselProductWrapper\",\n componentId: \"sc-29070ce-0\"\n})([\n \"background:\",\n \";& > :not(.button-view-more){margin-top:8px;}\"\n], ({ theme })=>theme.bodyBgColor);\n\nexport { CarouselProductWrapper };\n","import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport JsonLd from '@babylon/ui-kit-base/components/others/json-ld';\nimport Title from '@babylon/ui-kit-base/components/text/title';\nimport BenefitsCard from '@babylon/ui-kit-cards/components/cards/benefits-card/views/mobile';\nimport ProductCardMobile from '@babylon/ui-kit-cards/components/cards/product-card/views/mobile';\nimport CardSkeletonMobile from '@babylon/ui-kit-cards/components/cards/product-card/views/mobile/card-skeleton';\nimport { getTitle } from '../utils.mjs';\nimport { genKey } from '@babylon/ui-kit-helpers/keys';\nimport { useMemo } from 'react';\nimport ButtonViewMore from './button-view-more/index.mjs';\nimport { CarouselProductWrapper } from './styled.mjs';\n\nconst CarouselProductMobile = ({ props })=>{\n const { ldjson, items = [], className = '', link, config, isLoading = false, defaultImage = {\n src: ''\n }, isFirstComponent = false, benefits, hasIcon } = props ?? {};\n const title = getTitle(props?.title);\n const skeleton = useMemo(()=>new Array(5).fill(undefined).map((_, index)=>/*#__PURE__*/ jsx(CardSkeletonMobile, {}, genKey(index))), []);\n return /*#__PURE__*/ jsxs(Fragment, {\n children: [\n title && /*#__PURE__*/ jsx(Title, {\n className: \"carousel-title\",\n ...title\n }),\n /*#__PURE__*/ jsxs(CarouselProductWrapper, {\n \"data-testid\": \"CarouselProduct\",\n className: className,\n children: [\n benefits && /*#__PURE__*/ jsx(BenefitsCard, {\n ...benefits\n }),\n isLoading ? skeleton : items.map((item)=>{\n const generalConfig = {\n ...item.config,\n ...config\n };\n const literals = {\n ...item.config?.literals,\n ...config?.literals\n };\n return /*#__PURE__*/ jsx(ProductCardMobile, {\n ...item,\n config: {\n ...generalConfig,\n literals,\n isFirstComponent\n },\n defaultImage: defaultImage\n }, genKey(item));\n }),\n !!link && !!link.href && !isLoading && /*#__PURE__*/ jsx(ButtonViewMore, {\n link: link,\n content: config?.literals?.viewMore ?? link.title,\n hasIcon: hasIcon\n }),\n ldjson?.scripts?.map((script)=>/*#__PURE__*/ jsx(JsonLd, {\n structuredData: script\n }, genKey(script)))\n ]\n })\n ]\n });\n};\n\nexport { CarouselProductMobile as default };\n"],"file":"cdn-placeholder/babylon/logitravel-ferries/client/chunks/index.PiUrzHnR.js"}