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,MAoEA,EApE2BjE,IAKpB,IALqB,KAC1B6O,EAAI,YACJK,EAAW,QACXmF,EAAO,QACPjF,GAAU,GACXpP,EACC,MAAOsU,EAAWC,IAAgB9T,EAAAA,EAAAA,WAAS,IACpC+T,EAAcC,IAAmBhU,EAAAA,EAAAA,UAAS,GAOjD,OACEwK,EAAAA,EAAAA,MAAA,OAAAE,SAAA,EACEI,EAAAA,EAAAA,KAACmJ,EAAAA,GAAQ,CACPC,cAAY,EACZC,YAAaN,EACbO,YAAY,EACZC,YAAaR,EACbS,gBAAgB,EAChBC,UAAU,EACVC,YAAcpP,IAdCA,KACnB0O,GAAa,GACbE,EAAgB5O,EAAG,EAabqP,CAAYrP,GACZuJ,GACIxB,EAAAA,EAAAA,IAAa,yBACbA,EAAAA,EAAAA,IAAa,uBAAuB,EAE1C1C,UAAU,yBAAwBC,SAEtB,OAAX+D,QAAW,IAAXA,OAAW,EAAXA,EAAatK,KAAI,CAACuQ,EAAOtP,KACxB0F,EAAAA,EAAAA,KAAA,OAEE2B,MACEkI,OAAOC,SAASC,KAAK1P,SAAS,iBAC1B,cACA,QAENuH,OAAO,QACP3B,MAAO,CAAE+J,UAAW,SACpBC,QAAgB,IAAP3P,EAAW,QAAU,OAC9BoH,KACO,OAALkI,QAAK,IAALA,OAAK,EAALA,EAAOM,aACP,4BAA4BC,EAAAA,aAE9BtI,IAAKyB,EAAO,qBAAuBwF,GAb9BxO,OAiBVyO,IACC/I,EAAAA,EAAAA,KAACoK,EAAAA,EAAW,CACV1I,IAAgB,OAAXiC,QAAW,IAAXA,OAAW,EAAXA,EAAatK,KAAKgR,GACdA,EAAIH,cAKbjB,aAAcA,EACdqB,eAAe,EACfC,qBAAqB,EACrBzV,QAASkU,MAGT,C,0CC1CV,MACA,EAAe,IAA0B,yD","sources":["components/Checkout/Checkout.js","assets/images/discount.svg","assets/images/right.svg","components/HotelAddon/HotelAddonComponent.js","assets/images/time.svg","components/Promotion/Promotion.js","pages/MainPage/HotelImageCarousel.js","assets/images/close.svg"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport storageService from \"../../Services/storageService\";\nimport \"./Checkout.css\";\nimport { useTranslation } from \"react-i18next\";\nimport Confetti from \"react-confetti\";\nimport toastr from \"toastr\";\nimport { currency, promotionNames } from \"../../utils/currency\";\nimport dayjs from \"dayjs\";\nimport {\n addHoursToTime,\n couponHotels,\n EXCLUDE_DISCOUNT_ROOM,\n getFixedValue,\n sourceTest,\n} from \"../../utils/utils\";\nimport { fireGtmEvent } from \"../../utils/googleAnalytics\";\nimport usePriceCalculator, {\n arrangePromos,\n calculatePromotion,\n getApplicablePromotion,\n} from \"../../utils/usePriceCalculator\";\nimport useOldPriceCalculator from \"../../utils/useOldPriceCalculator\";\n\nconst Checkout = ({\n extraPrice = 1,\n localExtraValue = 1.15,\n onClose = () => {},\n showFakePrice = false,\n}) => {\n const [totalCost, setTotalCost] = useState();\n const [totalDays, setTotalDays] = useState(1);\n const [applyOffer, setApplyOffer] = useState(0);\n const [promotionSelected, setPromotionSelected] = useState({});\n const [promotionPrice, setPromotionPrice] = useState();\n const [applicablePromo, setApplicablePromo] = useState();\n const [isOffer, setIsOffer] = useState(false);\n const [priceWODiscount, setPriceWODiscount] = useState();\n const [selectedPeople, setSelecedPeople] = useState();\n const [roomPriceMap, setRoomPriceMap] = useState();\n const [taxAmount, setTaxAmount] = useState(0);\n const [arrangedPromos, setArrangedPromos] = useState([]);\n\n const history = useHistory();\n\n const testId = storageService.get(\"testId\") || 0;\n\n const oldPriceCalculator = useOldPriceCalculator();\n\n const { t } = useTranslation();\n\n const {\n selectedRooms,\n selectedAddons,\n hotelData,\n selectedHotelAddons,\n dateRange,\n totalPeople,\n promotions,\n totalAdult,\n isHourlyRoom,\n selectedRatePlans,\n roomSlots,\n hourlyTime,\n hourlyDate,\n hourlyHour,\n dateCount,\n isRatePlans,\n } = useSelector((state) => state.hotelInfo);\n\n useEffect(() => {\n let arr = [...promotions];\n arr.sort((b, a) => a.discount - b.discount);\n setApplicablePromo(arr);\n }, [promotions]);\n\n useEffect(() => {\n const arrange = () => {\n let arr = [...promotions];\n let ar = arrangePromos(arr);\n setArrangedPromos(ar);\n };\n promotions?.length > 0 && arrange();\n }, [\n promotions,\n selectedAddons,\n selectedHotelAddons,\n selectedRooms,\n totalAdult,\n ]);\n\n useEffect(() => {\n calculateDiscount();\n }, [applyOffer]);\n\n const promoShown = storageService.get(\"isPromoShown\") || false;\n\n const priceCalculator = usePriceCalculator();\n\n const calculateDiscount = () => {\n if (isRatePlans) {\n return;\n }\n\n let roomPrice = 0;\n let noDiscPrice = 0;\n\n if (isHourlyRoom) {\n storageService.remove(\"discount\");\n storageService.remove(\"promo\");\n return;\n }\n\n selectedRooms?.map((rm) => {\n const { pricing = [], priceConfig = {}, priceConfigDifference = {} } = rm;\n let val1 =\n totalAdult <= rm?.defaultGuestCount\n ? totalAdult\n : rm?.defaultGuestCount;\n\n // remove stuff\n if (testId === 0) {\n val1 = rm?.sAdult;\n }\n let prVal = 0;\n // end remove stuff\n if (\n priceConfigDifference &&\n Object.keys(priceConfigDifference).length > 0\n ) {\n pricing.forEach((pr) => {\n // roomPrice +=\n // parseFloat(pr?.price) + parseFloat(priceConfigDifference[val1]) ||\n // 1;\n prVal += parseFloat(pr?.price);\n if (EXCLUDE_DISCOUNT_ROOM.includes(rm?.id)) {\n noDiscPrice +=\n parseFloat(pr.price) * (parseFloat(priceConfig[val1]) || 1);\n } else if (hotelData?.userId === 63809) {\n let prc = pr?.price;\n prc = prc > 8400 ? prc / 1.18 : prc / 1.12;\n roomPrice += parseFloat(prc) * (parseFloat(priceConfig[val1]) || 1);\n } else {\n roomPrice +=\n parseFloat(pr.price) * (parseFloat(priceConfig[val1]) || 1);\n }\n });\n } else {\n pricing.forEach((pr) => {\n prVal += parseFloat(pr.price);\n if (EXCLUDE_DISCOUNT_ROOM.includes(rm?.id)) {\n noDiscPrice +=\n parseFloat(pr.price) * (parseFloat(priceConfig[val1]) || 1);\n } else if (hotelData?.userId === 63809) {\n let prc = pr?.price;\n prc = prc > 8400 ? prc / 1.18 : prc / 1.12;\n roomPrice += parseFloat(prc) * (parseFloat(priceConfig[val1]) || 1);\n } else {\n roomPrice +=\n parseFloat(pr.price) * (parseFloat(priceConfig[val1]) || 1);\n }\n });\n }\n\n // remove stuff\n if (testId === 0) {\n if (rm?.sInfant) {\n roomPrice =\n roomPrice + rm?.extraInfantPrice * rm?.sInfant * dateCount;\n }\n\n if (rm?.sChild) {\n roomPrice = roomPrice + rm?.extraChildPrice * rm?.sChild * dateCount;\n }\n }\n // end remove stuff\n\n // pricing.forEach((pr) => {\n // roomPrice =\n // roomPrice +\n // parseFloat(pr?.price) * (parseFloat(rm?.priceConfig[val1]) || 1);\n // });\n });\n\n selectedAddons?.forEach((adn) => {\n if (adn?.Addon?.category === \"person\") {\n roomPrice =\n roomPrice +\n parseInt(adn?.price) *\n // selectedRooms?.filter((rm) => rm?.id === adn?.hotelRoomId)?.length *\n selectedRooms[0]?.pricing?.length;\n }\n });\n\n let promoApplied = null;\n let discountAmount = 0;\n let finalAmount = 0;\n let cost = 0;\n\n if (applicablePromo?.length > 0 && promotions) {\n applicablePromo?.forEach((promo) => {\n if (!promoApplied) {\n if (\n promo?.type === \"bulk\" &&\n totalCost >= parseFloat(promo?.cutoffAmount)\n ) {\n cost = totalCost;\n discountAmount = (cost * parseFloat(promo?.discount)) / 100;\n finalAmount = cost - discountAmount;\n promoApplied = promo;\n setPromotionSelected(promoApplied);\n !storageService.get(\"promo\") && setIsOffer(true);\n\n setTimeout(() => {\n setIsOffer(false);\n storageService.set(\"isPromoShown\", true);\n }, 5000);\n // storageService.set(\"promo\", promoApplied);\n setTotalCost(finalAmount);\n setPriceWODiscount(discountAmount);\n } else if (promo?.type === \"early\" || promo?.type === \"late\") {\n cost = roomPrice;\n discountAmount = (cost * parseFloat(promo?.discount)) / 100;\n finalAmount = cost - discountAmount;\n promoApplied = promo;\n setPromotionSelected(promoApplied);\n !storageService.get(\"promo\") && setIsOffer(true);\n setTimeout(() => {\n setIsOffer(false);\n storageService.set(\"isPromoShown\", true);\n }, 5000);\n // storageService.set(\"promo\", promoApplied);\n storageService.set(\"discountedValue\", discountAmount);\n if (hotelData?.userId === 63809) {\n setTotalCost(finalAmount);\n } else {\n setTotalCost(parseFloat(totalCost - roomPrice + finalAmount));\n }\n\n setPriceWODiscount(discountAmount);\n } else {\n storageService.remove(\"promo\");\n setPromotionSelected({});\n setTotalCost(totalCost);\n }\n }\n });\n setPromotionPrice(parseFloat(finalAmount));\n promoApplied && storageService.set(\"discount\", parseFloat(finalAmount));\n } else {\n setPromotionPrice(0);\n storageService.set(\"discount\", 0);\n }\n };\n\n // done\n useEffect(() => {\n const computeRoomPriceObj = () => {\n const roomPriceObj = new Map();\n selectedRooms?.forEach((room) => {\n let onedayprice = 0;\n const {\n pricing = [],\n defaultGuestCount,\n id,\n priceConfig = {},\n priceConfigDifference = {},\n } = room;\n let val1 =\n totalAdult <= defaultGuestCount ? totalAdult : defaultGuestCount;\n // remove stuff\n if (testId === 0) {\n val1 = room?.sAdult;\n }\n let prVal = 0;\n // end remove stuff\n if (\n priceConfigDifference &&\n Object.keys(priceConfigDifference).length > 0\n ) {\n pricing.forEach((pr) => {\n let temp = pr?.price;\n if (hotelData?.userId === 63809) {\n temp = temp > 8400 ? temp / 1.18 : temp / 1.12;\n }\n onedayprice +=\n parseFloat(temp) + parseFloat(priceConfigDifference[val1]) || 1;\n prVal += parseFloat(temp);\n });\n } else {\n pricing.forEach((pr) => {\n let temp = pr?.price;\n if (hotelData?.userId === 63809) {\n temp = temp > 8400 ? temp / 1.18 : temp / 1.12;\n }\n onedayprice +=\n parseFloat(temp) * (parseFloat(priceConfig[val1]) || 1);\n prVal += parseFloat(temp);\n });\n }\n\n // remove stuff\n if (testId === 0) {\n if (room?.sInfant) {\n onedayprice =\n onedayprice + room?.extraInfantPrice * room?.sInfant * dateCount;\n }\n\n if (room?.sChild) {\n onedayprice =\n onedayprice + room?.extraChildPrice * room?.sChild * dateCount;\n }\n }\n // end remove stuff\n // pricing.forEach((pr) => {\n // onedayprice =\n // onedayprice +\n // parseFloat(pr?.price) *\n // (parseFloat(priceConfig[val1]) || defaultGuestCount);\n // });\n\n onedayprice = onedayprice / pricing?.length;\n\n // console.log(\"oneday\", onedayprice);\n // if (parseFloat(promotionSelected?.discount)) {\n // onedayprice =\n // onedayprice -\n // (onedayprice * parseFloat(promotionSelected?.discount)) / 100;\n // console.log(\"oneday\", onedayprice);\n // }\n\n if (roomPriceObj.has(room?.id)) {\n let val = roomPriceObj.get(room?.id);\n val += onedayprice;\n roomPriceObj.set(room?.id, val);\n } else {\n roomPriceObj.set(room?.id, onedayprice);\n }\n });\n\n selectedAddons?.forEach((addon) => {\n if (\n addon?.Addon?.category === \"person\" &&\n roomPriceObj.has(addon?.hotelRoomId)\n ) {\n let val = roomPriceObj.get(addon?.hotelRoomId);\n val += parseFloat(addon?.price);\n roomPriceObj.set(addon?.hotelRoomId, val);\n }\n });\n\n // setRoomPriceMap(roomPriceObj);\n };\n computeRoomPriceObj();\n }, [selectedRooms, selectedAddons, promotionSelected]);\n\n // done\n useEffect(() => {\n const calculateTaxPrice = () => {\n let sum = 0;\n for (let [key, value] of roomPriceMap) {\n let rmCount = selectedRooms?.filter((rm) => rm?.id === key)?.length;\n let taxAmount = 0;\n\n if (\n parseFloat(promotionSelected?.discount) &&\n !EXCLUDE_DISCOUNT_ROOM.includes(key)\n ) {\n value =\n value - (value * parseFloat(promotionSelected?.discount)) / 100;\n }\n\n if (\n hotelData?.userId === 63809 &&\n parseFloat(promotionSelected?.discount) > 0\n ) {\n if (value / rmCount > 7500) {\n taxAmount = value * 1.18 - value;\n } else {\n taxAmount = value * 1.12 - value;\n }\n } else {\n if (value / rmCount > 8400) {\n taxAmount = value - value / 1.18;\n } else {\n taxAmount = value - value / 1.12;\n }\n }\n\n sum += taxAmount;\n }\n sum = sum * selectedRooms[0]?.pricing?.length;\n\n storageService.set(\n \"tax\",\n parseFloat(sum.toFixed(getFixedValue(hotelData?.currency)))\n );\n setTaxAmount(sum.toFixed(getFixedValue(hotelData?.currency)));\n };\n typeof roomPriceMap === \"object\" &&\n hotelData?.currency === \"INR\" &&\n !isHourlyRoom &&\n calculateTaxPrice();\n }, [roomPriceMap]);\n\n useEffect(() => {\n const calculateCost = () => {\n var prices = 0;\n\n var totalPeople = 0;\n let arrPromos = [...arrangedPromos];\n let arr = [],\n totalTax = 0,\n roomCost = 0;\n\n selectedRooms?.forEach((room) => {\n const {\n pricing = [],\n defaultGuestCount,\n id,\n priceConfig = {},\n priceConfigDifference = {},\n } = room;\n let val =\n totalAdult <= defaultGuestCount ? totalAdult : defaultGuestCount;\n\n // remove stuff\n if (testId === 0) {\n val = room?.sAdult;\n }\n let prVal = 0;\n // end remove stuff\n let totPrice = 0;\n\n pricing.forEach((pr, idx) => {\n let prc = pr?.price;\n let tempPrice = 0;\n if (hotelData?.userId === 63809) {\n prc = prc > 8400 ? prc / 1.18 : prc / 1.12;\n }\n tempPrice += parseFloat(prc) * (parseFloat(priceConfig[val]) || 1);\n if (room?.sInfant) {\n tempPrice += room?.extraInfantPrice * room?.sInfant;\n }\n\n if (room?.sChild) {\n tempPrice += room?.extraChildPrice * room?.sChild;\n }\n\n prVal += parseFloat(prc);\n\n const promo = getApplicablePromotion({\n arrangedPromos: arrPromos,\n rp: { roomId: room?.id },\n tempPrice,\n checkInDate: pr?.date,\n });\n\n let { finalValue, reducedPrice } = calculatePromotion({\n price: tempPrice,\n promo,\n idx,\n dateCount,\n });\n\n totPrice += tempPrice;\n });\n\n if (isHourlyRoom) {\n let slotObj = roomSlots[id];\n\n // remove stuff\n if (testId === 0) {\n if (room?.sAdult <= room?.defaultGuestCount) {\n prices += prVal * slotObj?.percentage;\n } else {\n if (\n priceConfigDifference &&\n Object.keys(priceConfigDifference).length > 0\n ) {\n prices =\n prices +\n prVal * slotObj?.percentage +\n priceConfigDifference[room?.sAdult];\n } else {\n prices =\n prices +\n prVal * priceConfig[room?.sAdult] * slotObj?.percentage;\n }\n }\n } else {\n prices += totPrice * slotObj?.percentage;\n }\n // remove stuff end\n } else {\n prices += totPrice;\n }\n\n setTotalDays(pricing?.length);\n });\n\n selectedAddons?.forEach((addon) => {\n // const { price = \"0\" } = addon;\n if (addon?.Addon?.category === \"meal\") {\n prices =\n prices +\n parseFloat(addon?.price) * selectedRooms[0]?.pricing?.length;\n } else if (addon?.Addon?.category === \"person\") {\n prices =\n prices +\n parseFloat(addon?.price) * selectedRooms[0]?.pricing?.length;\n }\n });\n\n selectedHotelAddons?.forEach((adn) => {\n if (adn.Addon.multiplier === \"per_day\") {\n prices +=\n parseFloat(adn.price) *\n dayjs(dateRange?.endDate)?.diff(dateRange?.startDate, \"days\");\n } else {\n prices += parseFloat(adn.price);\n }\n });\n\n if (selectedRooms?.length < 1) {\n storageService.remove(\"promo\");\n }\n setTotalCost(parseFloat(prices));\n setApplyOffer(applyOffer + 1);\n\n // maybe add\n\n storageService.set(\"totalPrice\", parseFloat(prices));\n };\n calculateCost();\n }, [\n selectedAddons,\n selectedHotelAddons,\n selectedRooms,\n totalAdult,\n roomSlots,\n arrangedPromos,\n ]);\n\n const sendAnalytics = () => {\n if (selectedRooms?.length > 0 || priceCalculator.selectedRooms.length > 0) {\n history.push(\"/room/checkout\", {\n discount: promotionPrice,\n promo: promotionSelected,\n });\n } else {\n toastr.error(t(\"select_at_least_one_room\"));\n }\n };\n\n useEffect(() => {\n var count = 0;\n selectedRooms?.forEach((room) => {\n let searchGuest =\n totalAdult <= room?.defaultGuestCount\n ? totalAdult\n : room?.defaultGuestCount;\n\n // remove stuff\n if (testId === 0) {\n count += room?.sAdult + room?.sChild + room?.sInfant;\n } else {\n count += searchGuest;\n }\n\n // end remove stuff\n });\n [...new Set(selectedRooms)]?.forEach((room) => {\n selectedAddons?.forEach((addon) => {\n if (\n addon?.Addon?.category === \"person\" &&\n room?.id === addon?.hotelRoomId\n )\n count++;\n });\n });\n setSelecedPeople(count);\n }, [selectedAddons, selectedRooms]);\n\n useEffect(() => {\n if (isRatePlans) {\n setSelecedPeople(priceCalculator.rpTotalGuest || 0);\n } else {\n setSelecedPeople(oldPriceCalculator.totalGuests || 0);\n }\n }, [priceCalculator, oldPriceCalculator]);\n\n const isSubscribed = storageService.get(\"subscribed\") || false;\n\n const isGoogle = sourceTest.includes(storageService.get(\"source\"));\n\n return (\n
\n {\" \"}\n +{\" \"}\n {Number(\n (priceCalculator.rpTax +\n priceCalculator.taxObj.totalBookingTax) *\n extraPrice\n ).toFixed(getFixedValue(hotelData?.currency))}{\" \"}\n ({t(\"taxes\")})\n
\n ) : (\n({t(\"incl_of_taxes\")})
\n )\n ) : Math.abs(oldPriceCalculator?.totalTax) > 0 ||\n oldPriceCalculator.taxObj?.totalBookingTax > 0 ? (\n\n {\" \"}\n +{\" \"}\n {(\n (Math.abs(oldPriceCalculator?.totalTax) +\n oldPriceCalculator.taxObj?.totalBookingTax) *\n extraPrice\n ).toFixed(getFixedValue(hotelData?.currency))}{\" \"}\n {t(\"taxes\")}\n
\n ) : (\n({t(\"incl_of_taxes\")})
\n )}\n {isHourlyRoom && (\n\n ( {t(\"upto\")}{\" \"}\n {oldPriceCalculator.totalGuests || priceCalculator.rpTotalGuest}{\" \"}\n {t(\"guests\")} )\n
\n )}\n\n {dateCount > 1\n ? `${t(\"for\")} ${dateCount} ${t(\"nights\")}`\n : t(\"per_night\")}{\" \"}\n - {t(\"upto\")}{\" \"}\n {oldPriceCalculator.totalGuests || priceCalculator.rpTotalGuest}{\" \"}\n {t(\"guests\")}\n
\n )}\n {isHourlyRoom && (\n\n {dayjs(hourlyDate).format(\"DD MMMM YYYY\")}\n
\n )}\n {isHourlyRoom ? (\n <>\n \n {hourlyTime} -{\" \"}\n {addHoursToTime(hourlyDate, hourlyTime, hourlyHour)}\n \n >\n ) : (\n \n {dayjs(dateRange?.startDate).format(\"DD MMM\")} -{\" \"}\n {dayjs(dateRange?.endDate).format(\"DD MMM\")} ({dateCount}{\" \"}\n {dateCount > 1 ? t(\"nights\") : t(\"night\")})\n \n )}\n\n {t(\"unlock_additional_discount\")}!\n
\n \n{t(\"offer_ends_soon\")}
\n \n\n {currency(hotelData?.currency)} {addon?.price}{\" \"}\n {addon.Addon.multiplier === \"per_day\" ? \"/ day\" : \"\"}{\" \"}\n \n ({t(\"incl_of_taxes\")})\n \n
\n {selected ? (\n{t(\"use_mobikwik\")}
\n\n\n {t(\"limited_offer\")}\n
\n {promotions?.length + count > 1 && (\n \n {\" \"}\n{t(\"click_here\")}
\n{t(\"no_worries_cancel\")}
\n\n\n {/* {t(\"on_bookings_above\")}{\" \"}\n {promo?.cutoffAmount > 1\n ? promo?.cutoffAmount\n : promo?.lengthOfStay}{\" \"}\n {promoTexts(\n promo?.discountType,\n promo?.cutoffAmount > 1\n ? promo?.cutoffAmount\n : promo?.lengthOfStay\n )}{\" \"}\n {t(\"get\")} */}\n {promo?.promotionCta1}\n
\n\n{t(\"use_code\")}
\n\n {t(\"and\")} {promo?.promotionCta2}{\" \"}\n
\n{promo?.name}
\n >\n ) : (\n <>\n {\" \"}\n{promo?.promotionCta1}
\n >\n )}\n\n{t(\"use_code\")}
\n\n {t(\"and_get\")} {parseInt(promo?.discount)}{\" \"}\n {promoTexts(promo?.discountType, promo?.discount)}{\" \"}\n {t(\"off\")}\n
\n{t(\"early_bird_offer\")} !!
\n\n {t(\"book\")} {promo?.cutoffDays} {t(\"days_advance\")}{\" \"}\n
\n{t(\"use_code\")}
\n\n {t(\"and_get\")} {parseInt(promo?.discount)}{\" \"}\n {promoTexts(promo?.discountType, promo?.discount)}{\" \"}\n {t(\"off\")}\n
\n{t(\"last_minute_deals\")} !!
\n\n {t(\"book_now_for\")}{\" \"}\n {dayjs(startDate).format(\"MMM DD\")}\n
\nHotel will contact you for the same
\nOn dining and laundry service for solo women travellers
\n{t(\"flexible_hassle_free_affordable\")}
\n\n{t(\"no_waiting_just_go\")}
\n\n