@cleartrip/ct-platform-hotel-recommendations 1.4.1-beta.2 → 1.4.1-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const Banner: React.FC<unknown>;
3
+ export default Banner;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CA2B7B,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAM3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAoD5C,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAc3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAsH5C,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Card/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAIvE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAoBpD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Card/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAIvE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAiCpD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HotelRecommendationsProps } from './HRecommendations.types';
3
- declare const HRecommendations: React.FC<HotelRecommendationsProps>;
2
+ import { HotelRecommendationContainerProps } from './HRecommendations.types';
3
+ declare const HRecommendations: React.FC<HotelRecommendationContainerProps>;
4
4
  export default HRecommendations;
5
5
  //# sourceMappingURL=HRecommendations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HRecommendations.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,EAEH,yBAAyB,EAC5B,MAAM,0BAA0B,CAAC;AAgIlC,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyBzD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"HRecommendations.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAUhE,OAAO,EAEH,iCAAiC,EACpC,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAgEjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,16 +1,27 @@
1
- import { MerchCarouselProps } from '@cleartrip/ct-platform-merch-carousel';
2
- export interface HotelRecommendationsProps {
3
- loading?: boolean;
1
+ import { HRecommendationData } from '@cleartrip/ct-platform-types';
2
+ export interface HotelRecommendationContainerProps {
3
+ tripId: string;
4
+ pageName: string;
5
+ location: string;
6
+ vertical?: string;
7
+ departureDate: string;
4
8
  maxCardsCount?: number;
5
- data?: HotelRecommendationAPIRes;
6
- carouselProps?: MerchCarouselProps<HRecommendationCardProps>;
9
+ fallbackPageLandingURL: string;
10
+ }
11
+ export interface HotelRecommendationWidgetProps extends HotelRecommendationContainerProps {
12
+ vertical: string;
13
+ loading?: boolean;
14
+ maxCardsCount: number;
15
+ destroyLoaders: boolean;
16
+ data?: HotelRecommendationWidgetData;
7
17
  }
8
- export interface HotelRecommendationAPIRes {
9
- offerCallout: string;
10
- couponCallout: string;
11
- bookingCallout: string;
18
+ export interface HotelRecommendationWidgetData {
19
+ couponCode: string;
20
+ offerCallOut: string;
21
+ couponCallOut: string;
22
+ bookingCallOut: string;
12
23
  pageLandingUrl: string;
13
- hotels: HRecommendationCardProps[];
24
+ recommendations: HRecommendationData[];
14
25
  }
15
26
  export interface HRecommendationHeroImgProps {
16
27
  mediaUrl: string;
@@ -30,16 +41,19 @@ export interface HRecommendationPricingProps {
30
41
  slashedPrice: number;
31
42
  perNightPrice: number;
32
43
  }
33
- export interface HRecommendationCardProps {
34
- hotelId: string;
35
- hotelLandingUrl: string;
36
- heroImage: HRecommendationHeroImgProps;
37
- pricingData: HRecommendationPricingProps;
38
- staticData: HRecommendationStaticDataProps;
39
- }
40
44
  export interface HRecommendationLoaderProps {
41
45
  loading?: boolean;
42
46
  className?: string;
43
47
  priority?: 'high' | 'low' | 'auto' | undefined;
44
48
  }
49
+ export interface HRecommendationCardProps extends HRecommendationData {
50
+ rank: number;
51
+ tripId: string;
52
+ coupon: string;
53
+ pageName: string;
54
+ vertical: string;
55
+ location: string;
56
+ departureDate: string;
57
+ imgPriority?: 'high' | 'low' | 'auto' | undefined;
58
+ }
45
59
  //# sourceMappingURL=HRecommendations.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HRecommendations.types.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAEjC,aAAa,CAAC,EAAE,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;CAChE;AAED,MAAM,WAAW,yBAAyB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,wBAAwB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,8BAA8B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,2BAA2B,CAAC;IACvC,WAAW,EAAE,2BAA2B,CAAC;IACzC,UAAU,EAAE,8BAA8B,CAAC;CAE9C;AAED,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;CAClD"}
1
+ {"version":3,"file":"HRecommendations.types.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAClC;AACD,MAAM,WAAW,8BACb,SAAQ,iCAAiC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,6BAA6B,CAAC;CACxC;AAED,MAAM,WAAW,6BAA6B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,mBAAmB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,2BAA2B;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,8BAA8B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;CACrD"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HotelRecommendationsProps } from '../HRecommendations.types';
3
- declare const HRecommendationsWidget: React.FC<HotelRecommendationsProps>;
2
+ import { HotelRecommendationWidgetProps } from '../HRecommendations.types';
3
+ declare const HRecommendationsWidget: React.FC<HotelRecommendationWidgetProps>;
4
4
  export default HRecommendationsWidget;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Widget/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAItE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+F/D,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Widget/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAmBzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8OpE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,5 +1,8 @@
1
1
  export declare const GIFT_ICON = "https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Gift%20%281%29.png";
2
2
  export declare const FLIGHTS_ICON = "https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Flight%20%281%29.png";
3
3
  export declare const CARD_PLACEHOLDER_SRC = "https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg";
4
+ export declare const CARDS_MIN_COUNT = 2;
4
5
  export declare const CARDS_MAX_COUNT = 5;
6
+ export declare const CARD_IMG_BASE = "https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/";
7
+ export declare const FALLBACK_BANNER = "https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_274,h_360/offermgmt/images/Hero-Image.png";
5
8
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wHACmG,CAAC;AAC1H,eAAO,MAAM,YAAY,0HACkG,CAAC;AAG5H,eAAO,MAAM,oBAAoB,4GAE4E,CAAC;AAE9G,eAAO,MAAM,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wHACmG,CAAC;AAC1H,eAAO,MAAM,YAAY,0HACkG,CAAC;AAG5H,eAAO,MAAM,oBAAoB,4GAE4E,CAAC;AAE9G,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,aAAa,iFACwD,CAAC;AACnF,eAAO,MAAM,eAAe,yGAC8E,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),t=require("@cleartrip/ct-design-button"),o=require("@cleartrip/ct-design-typography"),r=require("@cleartrip/ct-platform-lazy-image"),n=require("@cleartrip/ct-platform-utils"),l=require("@cleartrip/ct-design-theme");function d(e,a){void 0===a&&(a={});var i=a.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var s="index-module_cardWrapper__gNp5L",c="index-module_infoWrapper__SbSyr",p="index-module_titleRow__1g79Q",u="index-module_ratingWrapper__5VWjY",m="index-module_priceWrapper__lHaFH",g="index-module_loaderWrapper__qpkZL",_="index-module_hidden__CdBrr";d(".index-module_cardWrapper__gNp5L{background:#fff;border-radius:16px;height:192px;overflow-x:hidden;width:200px}.index-module_infoWrapper__SbSyr{padding:8px}.index-module_titleRow__1g79Q{display:flex;justify-content:space-between;padding-bottom:4px}.index-module_ratingWrapper__5VWjY{align-items:center;background-color:#ecf3ff;border-radius:4px;display:flex;padding:0 4px}.index-module_priceWrapper__lHaFH{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_slashedPrice__Sr26j{padding:0 2px}.index-module_loaderWrapper__qpkZL{opacity:1;position:absolute;top:0;transition:opacity .15s ease-in-out}.index-module_loaderWrapper__qpkZL.index-module_hidden__CdBrr{opacity:0}");var h=function(i){var t=i.loading,o=i.priority,r=void 0===o?"low":o;return a.jsx("div",e.__assign({className:"".concat(s," ").concat(g," ").concat(t?"":_)},{children:a.jsx("img",{width:200,height:104,fetchPriority:r,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"})}))},x=function(t){var l=t.heroImage,d=t.staticData,g=t.pricingData,_=t.hotelLandingUrl,h=i.useCallback((function(){_&&(window.location.href=_)}),[_]);return a.jsxs("div",e.__assign({className:s,onClick:h},{children:[a.jsx(r.LazyImage,{width:200,height:104,src:l.mediaUrl}),a.jsxs("div",e.__assign({className:c},{children:[a.jsxs("div",e.__assign({className:p},{children:[a.jsx(o.Typography,e.__assign({variant:o.TypographyVariant.B2,lineClamp:1},{children:null==d?void 0:d.hotelName})),a.jsx("div",e.__assign({className:u},{children:a.jsx(o.Typography,e.__assign({color:"link",variant:o.TypographyVariant.B3},{children:null==d?void 0:d.userRating}))}))]})),a.jsxs(o.Typography,e.__assign({variant:o.TypographyVariant.P3,lineClamp:1,color:"subheading"},{children:[null==d?void 0:d.starRating," stars hotel in"," ",null==d?void 0:d.locality]}))]})),a.jsxs("div",e.__assign({className:m},{children:[a.jsxs(o.Typography,e.__assign({variant:o.TypographyVariant.HM4},{children:[n.formatCurrency(null==g?void 0:g.perNightPrice)," "]})),a.jsx(o.Typography,e.__assign({isStriked:!0,color:"subheading",variant:o.TypographyVariant.B4},{children:n.formatCurrency(null==g?void 0:g.slashedPrice,!1)})),a.jsx(o.Typography,e.__assign({variant:o.TypographyVariant.B4,color:"subheading"},{children:" / night"}))]}))]}))},f={hRecomWrapper:"index-module_hRecomWrapper__TL8eh",hRecomHeader:"index-module_hRecomHeader__RpSVO",hRecomContent:"index-module_hRecomContent__JoNi0",hRecomSidebar:"index-module_hRecomSidebar__rZAvT",connectedLine:"index-module_connectedLine__Z9VpQ",dottedLine:"index-module_dottedLine__6K0LJ",hRecomCardsWrapper:"index-module_hRecomCardsWrapper__6du4Z",hRecomCardWrapper:"index-module_hRecomCardWrapper__-IKwU",hRecomCouponCallout:"index-module_hRecomCouponCallout__Y2GEF",hRecomOfferCallout:"index-module_hRecomOfferCallout__a25nf",hRecomBookingCallout:"index-module_hRecomBookingCallout__XHOB5",exploreButton:"index-module_exploreButton__--vcq",sidebarCircle:"index-module_sidebarCircle__-dZZH"};d(".index-module_hRecomWrapper__TL8eh{background:linear-gradient(215deg,#e5fce3 8%,#fff 85.78%);display:flex;padding:16px 0;position:relative}.index-module_hRecomHeader__RpSVO{left:16px;position:relative}.index-module_hRecomContent__JoNi0{left:0;position:absolute;width:100%}.index-module_hRecomSidebar__rZAvT{align-items:center;display:flex;flex-direction:column;padding-left:16px}.index-module_connectedLine__Z9VpQ{border-left:1px solid grey;height:18px;left:-.5px;opacity:.3;position:relative}.index-module_dottedLine__6K0LJ{border-left:1px dotted grey;height:280px;left:-.5px;opacity:.5;position:relative}.index-module_hRecomCardsWrapper__6du4Z{-ms-overflow-style:none;box-sizing:border-box;display:flex;height:208px;overflow:auto;padding:0 16px 16px 52px;scrollbar-width:none;width:100%}.index-module_hRecomCardWrapper__-IKwU{border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);margin-right:12px;min-width:200px;position:relative}.index-module_hRecomCardWrapper__-IKwU:last-child{margin-right:0}.index-module_hRecomCardsWrapper__6du4Z::-webkit-scrollbar{display:none}.index-module_hRecomCouponCallout__Y2GEF{background:linear-gradient(90deg,#cafbcc 5.15%,rgba(212,255,218,.62) 41.66%,rgba(218,255,224,.23) 77.81%,hsla(0,0%,100%,0));border-radius:24px;padding:10px 12px}.index-module_hRecomOfferCallout__a25nf{padding:8px 0 20px}.index-module_hRecomBookingCallout__XHOB5{padding-bottom:16px}.index-module_exploreButton__--vcq{left:52px;margin-top:8px;position:relative;width:calc(100% - 68px)}.index-module_sidebarCircle__-dZZH{border:1px solid #1a1a1a;border-radius:50%;height:8px;margin-top:4px;width:8px}");var y=function(r){var n=r.data,l=r.loading,d=r.maxCardsCount,s=void 0===d?5:d,c=i.useMemo((function(){var i=Array.from({length:s},(function(e,a){return a+1}));return a.jsx("div",e.__assign({className:f.hRecomCardsWrapper},{children:i.map((function(i,t){var o,r;return a.jsxs("div",e.__assign({className:f.hRecomCardWrapper},{children:[(null===(o=null==n?void 0:n.hotels)||void 0===o?void 0:o[t])&&a.jsx(x,e.__assign({},null===(r=null==n?void 0:n.hotels)||void 0===r?void 0:r[t])),a.jsx(h,{loading:l,priority:0===t?"high":"auto"})]}),i)}))}))}),[n,l]),p=i.useCallback((function(){var e=null==n?void 0:n.pageLandingUrl;e&&(window.location.href=e)}),[n]);return a.jsxs("div",e.__assign({className:f.hRecomWrapper},{children:[a.jsxs("div",e.__assign({className:f.hRecomSidebar},{children:[a.jsx("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Flight%20%281%29.png",fetchPriority:"low"}),a.jsx("div",{className:f.connectedLine}),a.jsx("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Gift%20%281%29.png",fetchPriority:"low"}),a.jsx("div",{className:f.dottedLine}),a.jsx("div",{className:f.sidebarCircle})]})),a.jsxs("div",e.__assign({className:f.hRecomMainWrapper},{children:[a.jsxs("div",e.__assign({className:f.hRecomHeader},{children:[a.jsx(o.Typography,e.__assign({variant:o.TypographyVariant.P3,className:f.hRecomBookingCallout},{children:null==n?void 0:n.bookingCallout})),a.jsx("div",e.__assign({className:f.hRecomCouponCallout},{children:a.jsx(o.Typography,e.__assign({color:"success",variant:o.TypographyVariant.B4CAPS},{children:null==n?void 0:n.couponCallout}))})),a.jsx(o.Typography,e.__assign({variant:o.TypographyVariant.HM4,className:f.hRecomOfferCallout},{children:null==n?void 0:n.offerCallout}))]})),a.jsxs("div",e.__assign({className:f.hRecomContent},{children:[c,a.jsx(t.Button,e.__assign({onClick:p,variant:t.ButtonVariant.OUTLINE,className:f.exploreButton},{children:"Explore hotels"}))]}))]}))]}))},C={hotels:[{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717881",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:"https://www.cleartrip.com/hotels/results?num_rooms=1&adults=2&childs=0&adults1=2&children1=0&chk_in=20%2F06%2F2024&chk_out=21%2F06%2F2024&city=Bangalore&dest_code=32550&country=IN&state=Karnataka&poi=&localityId=&localityName=&baseLocation=CITY-32550&version=V2&utm_source=XSELL-AIR&hotelId=717881"},{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717884",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""}],couponCallout:"CTBEST COUPON UNLOCKED!",bookingCallout:"Yay! Your flight to Goa is booked!",offerCallout:"Flat 20% off applied on hotel stays",pageLandingUrl:"https://www.cleartrip.com/hotels/results?num_rooms=1&adults=2&childs=0&adults1=2&children1=0&chk_in=20%2F06%2F2024&chk_out=21%2F06%2F2024&city=Bangalore&dest_code=32550&country=IN&state=Karnataka&poi=&localityId=&localityName=&baseLocation=CITY-32550&version=V2&utm_source=XSELL-AIR"};exports.HotelRecommendationContainer=function(t){var o=i.useState(!0),r=o[0],n=o[1],d=i.useState(e.__assign(e.__assign({},C),{hotels:[]})),s=d[0],c=d[1];return i.useEffect((function(){setTimeout((function(){c(C)}),300),setTimeout((function(){n(!1)}),310)}),[]),a.jsx(l.ThemeProvider,{children:a.jsx(y,e.__assign({data:s,loading:r},t))})},exports.HotelRecommendationsWidget=y;
1
+ "use strict";var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),o=require("@cleartrip/ct-platform-utils"),n=require("@cleartrip/ct-design-button"),t=require("@cleartrip/ct-platform-io-hoc"),r=require("@cleartrip/ct-design-typography"),d=require("@cleartrip/ct-platform-assets"),l=require("@cleartrip/ct-design-theme");function s(e,a){void 0===a&&(a={});var i=a.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var c="index-module_hRecoBanner__CyUB8",_="index-module_hRecoBannerIcon__cFmbk",p="index-module_hRecoBannerTextsWrapper__0P-pK",h="index-module_hRecoBannerTextRow__qbE8k",u="index-module_hRecoBannerImg__eC0hA";s(".index-module_hRecoBanner__CyUB8{aspect-ratio:304/180;background:#fff;border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);display:flex;height:180px;margin:0 16px 24px 40px;overflow:hidden;width:calc(100% - 56px)}.index-module_hRecoBannerIcon__cFmbk{margin-right:8px;min-width:16px;padding-top:1px}.index-module_hRecoBannerTextsWrapper__0P-pK{display:flex;flex-direction:column;justify-content:center;padding:18px 8px 18px 12px}.index-module_hRecoBannerTextRow__qbE8k{display:flex;padding-bottom:16px}.index-module_hRecoBannerTextRow__qbE8k:last-of-type{padding-bottom:0}.index-module_hRecoBannerImg__eC0hA{height:100%}");var x=function(){return a.jsxs("div",e.__assign({className:c},{children:[a.jsxs("div",e.__assign({className:p},{children:[a.jsxs("div",e.__assign({className:h},{children:[a.jsx(d.CheckIcon,{className:_}),a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.P3},{children:"Free cancellation till check-in time"}))]})),a.jsxs("div",e.__assign({className:h},{children:[a.jsx(d.CheckIcon,{className:_}),a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),a.jsxs("div",e.__assign({className:h},{children:[a.jsx(d.CheckIcon,{className:_}),a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.P3},{children:"Earn and redeem SuperCoins"}))]}))]})),a.jsx("img",{src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_274,h_360/offermgmt/images/Hero-Image.png",className:u})]}))},m="index-module_hRecoCardWrapper__FhtJN",g="index-module_hRecoInfoWrapper__4EAyB",v="index-module_hRecoTitleRow__97dd5",f="index-module_hRecoTitle__3Uxkj",y="index-module_hRecoRatingWrapper__mGwia",R="index-module_hRecoPriceWrapper__49o5u",b="index-module_hRecoLoaderWrapper__KXG-6",C="index-module_hidden__CdBrr",j="index-module_hRecoLoaderGradient__c7400",N="index-module_hRecoLoaderTitleRow__cWktU",w="index-module_hRecoLoaderTitle__-Onou",k="index-module_hRecoLoaderRating__Qy5b-",T="index-module_hRecoLoaderSubtitle__l1X3H",L="index-module_hRecoLoaderPricing__KsQ-o";s(".index-module_hRecoCardWrapper__FhtJN{background:#fff;border-radius:16px;display:flex;flex-direction:column;height:180px;overflow:hidden;width:200px}.index-module_hRecoInfoWrapper__4EAyB{padding:8px 8px 0}.index-module_hRecoTitleRow__97dd5{display:flex;justify-content:space-between}.index-module_hRecoTitle__3Uxkj{padding-right:4px}.index-module_hRecoRatingWrapper__mGwia{align-items:center;background-color:#ecf3ff;box-sizing:border-box;display:flex;justify-content:center;margin-left:4px;min-width:28px;padding:0 4px}.index-module_hRecoPriceWrapper__49o5u{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_hRecoLoaderWrapper__KXG-6{opacity:1;pointer-events:none;position:absolute;top:0;transition:opacity .15s ease-in-out}.index-module_hRecoLoaderWrapper__KXG-6.index-module_hidden__CdBrr{opacity:0}.index-module_hRecoLoaderGradient__c7400{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%)}.index-module_hRecoLoaderTitleRow__cWktU{align-items:center;display:flex;margin-bottom:4px}.index-module_hRecoLoaderTitle__-Onou{border-radius:6px;height:20px;width:152px}.index-module_hRecoLoaderRating__Qy5b-{border-radius:6px;height:16px;margin-left:8px;width:20px}.index-module_hRecoLoaderSubtitle__l1X3H{border-radius:4px;height:8px;margin-bottom:8px;width:138px}.index-module_hRecoLoaderPricing__KsQ-o{border-radius:6px;height:16px;width:120px}");var B=function(i){var o=i.loading,n=i.priority,t=void 0===n?"low":n;return a.jsxs("div",e.__assign({className:"".concat(m," ").concat(b," ").concat(o?"":C)},{children:[a.jsx("img",{width:200,height:104,fetchPriority:t,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"}),a.jsxs("div",e.__assign({className:g},{children:[a.jsxs("div",e.__assign({className:N},{children:[a.jsx("div",{className:"".concat(w," ").concat(j)}),a.jsx("div",{className:"".concat(k," ").concat(j)})]})),a.jsx("div",{className:"".concat(T," ").concat(j)}),a.jsx("div",{className:"".concat(L," ").concat(j)})]}))]}))},W=function(n){var d=n.rank,l=n.coupon,s=n.tripId,c=n.hotelId,_=n.vertical,p=n.location,h=n.pageName,u=n.heroImage,x=n.staticData,b=n.pricingData,C=n.imgPriority,j=n.departureDate,N=n.hotelLandingUrl,w=i.useCallback((function(){o.ravenSDKTrigger("u_ui_action",{vertical:_,a_trip_id:s,h_hotel_rank:d,h_hotel_id:c,page_name:h,child_product:"hotel",a_destination:p,ct_coupon_applied:l,transaction_id_ca:s,onward_date:j,search_destination:p,a_departure_date:j,object_name:null==x?void 0:x.hotelName,h_hotel_name:null==x?void 0:x.hotelName,action_name:"hotel_cross_sell_click",personalised_callout:"hotel_card_click"}),N&&(window.location.href=N)}),[N]),k=i.useCallback((function(){o.batchRavenEvent("u_impression",{vertical:_,a_trip_id:s,h_hotel_rank:d,h_hotel_id:c,page_name:h,child_product:"hotel",a_destination:p,ct_coupon_applied:l,transaction_id_ca:s,onward_date:j,search_destination:p,a_departure_date:j,object_name:null==x?void 0:x.hotelName,h_hotel_name:null==x?void 0:x.hotelName,action_name:"hotel_cross_sell_impression",personalised_callout:"hotel_card_impression"})}),[c]);return a.jsx(t.IntersectionObserverHOC,e.__assign({onIntersection:k},{children:a.jsxs("div",e.__assign({className:m,onClick:w},{children:[a.jsx("img",{width:200,height:104,src:"".concat("https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/").concat(u.mediaUrl),fetchPriority:C}),a.jsxs("div",e.__assign({className:g},{children:[a.jsxs("div",e.__assign({className:v},{children:[a.jsx(r.Typography,e.__assign({lineClamp:1,className:f,variant:r.TypographyVariant.B2},{children:null==x?void 0:x.hotelName})),a.jsx("div",e.__assign({className:y},{children:a.jsx(r.Typography,e.__assign({color:"link",variant:r.TypographyVariant.B3},{children:null==x?void 0:x.userRating}))}))]})),a.jsxs(r.Typography,e.__assign({variant:r.TypographyVariant.P3,lineClamp:1,color:"subheading"},{children:[null==x?void 0:x.starRating," stars hotel in"," ",null==x?void 0:x.locality]}))]})),a.jsxs("div",e.__assign({className:R},{children:[a.jsxs(r.Typography,e.__assign({variant:r.TypographyVariant.HM4},{children:[o.formatCurrency(null==b?void 0:b.perNightPrice)," "]})),a.jsx(r.Typography,e.__assign({isStriked:!0,color:"subheading",variant:r.TypographyVariant.B4},{children:o.formatCurrency(null==b?void 0:b.slashedPrice,!1)})),a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.B4,color:"subheading"},{children:" / night"}))]}))]}))}))},P={hRecoWrapper:"index-module_hRecoWrapper__AeUoH",hRecoHeader:"index-module_hRecoHeader__5xuYV",hRecoContent:"index-module_hRecoContent__0kDhm",hRecoSidebar:"index-module_hRecoSidebar__UjWWx",connectedLine:"index-module_connectedLine__Z9VpQ",dottedLine:"index-module_dottedLine__6K0LJ",hRecoCardsWrapper:"index-module_hRecoCardsWrapper__tc4sW",hRecoCardWrapper:"index-module_hRecoCardWrapper__5lhlY",hRecoOfferCallout:"index-module_hRecoOfferCallout__FBOgY",hRecoCouponCallout:"index-module_hRecoCouponCallout__77bdL",hRecoBookingCallout:"index-module_hRecoBookingCallout__GGryo",exploreButton:"index-module_exploreButton__--vcq",sidebarCircle:"index-module_sidebarCircle__-dZZH",hRecoHeaderTextLoader:"index-module_hRecoHeaderTextLoader__tyYPe"};s(".index-module_hRecoWrapper__AeUoH{background:linear-gradient(215deg,#e5fce3 8%,#fff 85.78%);display:flex;padding:16px 0;position:relative}.index-module_hRecoHeader__5xuYV{left:8px;position:relative}.index-module_hRecoContent__0kDhm{left:0;position:absolute;width:100%}.index-module_hRecoSidebar__UjWWx{align-items:center;display:flex;flex-direction:column;padding-left:12px}.index-module_connectedLine__Z9VpQ{border-left:1px solid grey;height:18px;left:-.5px;opacity:.3;position:relative}.index-module_dottedLine__6K0LJ{border-left:1px dotted grey;height:272px;left:-.5px;opacity:.5;position:relative}.index-module_hRecoCardsWrapper__tc4sW{-ms-overflow-style:none;box-sizing:content-box;display:flex;height:180px;overflow:auto;padding:0 16px 16px 40px;scrollbar-width:none;width:calc(100% - 56px)}.index-module_hRecoCardWrapper__5lhlY{border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);margin-right:12px;min-width:200px;position:relative}.index-module_hRecoCardWrapper__5lhlY:last-child{margin-right:0}.index-module_hRecoCardsWrapper__tc4sW::-webkit-scrollbar{display:none}.index-module_hRecoOfferCallout__FBOgY{background:linear-gradient(90deg,#cafbcc 5.15%,rgba(212,255,218,.62) 41.66%,rgba(218,255,224,.23) 77.81%,hsla(0,0%,100%,0));border-radius:24px;padding:10px 12px}.index-module_hRecoCouponCallout__77bdL{padding:8px 0 20px}.index-module_hRecoBookingCallout__GGryo{padding-bottom:12px;padding-top:4px}.index-module_exploreButton__--vcq{left:40px;margin-top:8px;position:relative;width:calc(100% - 56px)}.index-module_sidebarCircle__-dZZH{border:1px solid #1a1a1a;border-radius:50%;height:8px;width:8px}.index-module_hRecoHeaderTextLoader__tyYPe{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%);border-radius:4px}");var H=function(d){var l=d.data,s=d.loading,c=d.tripId,_=d.pageName,p=d.vertical,h=d.location,u=d.maxCardsCount,m=d.departureDate,g=d.destroyLoaders,v=d.fallbackPageLandingURL,f=i.useState(!1),y=f[0],R=f[1],b=i.useMemo((function(){return o.formatFullDateString(m)}),[m]),C=i.useMemo((function(){var i,o,n=null!==(o=null===(i=null==l?void 0:l.recommendations)||void 0===i?void 0:i.length)&&void 0!==o?o:0,t=Array.from({length:u},(function(e,a){return a+1}));return s||n>=2?a.jsx("div",e.__assign({className:P.hRecoCardsWrapper},{children:t.map((function(i,o){var n,t,r;return s||!g||(null===(n=null==l?void 0:l.recommendations)||void 0===n?void 0:n[o])?a.jsxs("div",e.__assign({className:P.hRecoCardWrapper},{children:[(null===(t=null==l?void 0:l.recommendations)||void 0===t?void 0:t[o])&&a.jsx(W,e.__assign({tripId:c,rank:o+1,location:h,pageName:_,vertical:p,coupon:null==l?void 0:l.couponCode,departureDate:b},null===(r=null==l?void 0:l.recommendations)||void 0===r?void 0:r[o],{imgPriority:0===o?"high":"auto"})),!g&&a.jsx(B,{loading:s,priority:0===o?"high":"auto"})]}),i):a.jsx(a.Fragment,{})}))})):a.jsx(x,{})}),[l,s,g]),j=i.useCallback((function(){R(!0)}),[]),N=i.useCallback((function(){var e,a,i,n=null!==(a=null===(e=null==l?void 0:l.recommendations)||void 0===e?void 0:e.length)&&void 0!==a?a:0;o.ravenSDKTrigger("u_ui_action",{vertical:p,a_trip_id:c,page_name:_,action_type:"click",child_product:"hotel",a_destination:h,transaction_id_ca:c,onward_date:b,search_destination:h,a_departure_date:b,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:n<u?n:u});var t=null!==(i=null==l?void 0:l.pageLandingUrl)&&void 0!==i?i:v;t&&(window.location.href=t)}),[l]);return i.useEffect((function(){var e,a;if(y&&!s){var i=null!==(a=null===(e=null==l?void 0:l.recommendations)||void 0===e?void 0:e.length)&&void 0!==a?a:0;o.batchRavenEvent("u_impression",{vertical:p,a_trip_id:c,page_name:_,child_product:"hotel",a_destination:h,transaction_id_ca:c,onward_date:b,search_destination:h,a_departure_date:b,action_name:"hotel_cross_sell_impression",result_count:i<u?i:u})}}),[s,l,y]),a.jsx(t.IntersectionObserverHOC,e.__assign({onIntersection:j},{children:a.jsxs("div",e.__assign({className:P.hRecoWrapper},{children:[a.jsxs("div",e.__assign({className:P.hRecoSidebar},{children:[a.jsx("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Flight%20%281%29.png",fetchPriority:"low"}),a.jsx("div",{className:P.connectedLine}),a.jsx("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Gift%20%281%29.png",fetchPriority:"low"}),a.jsx("div",{className:P.dottedLine}),a.jsx("div",{className:P.sidebarCircle})]})),a.jsxs("div",e.__assign({className:P.hRecoMainWrapper},{children:[a.jsxs("div",e.__assign({className:P.hRecoHeader},{children:[s?a.jsx("div",e.__assign({style:{padding:"4px 0",marginBottom:"16px"}},{children:a.jsx("div",{className:P.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.P3,className:P.hRecoBookingCallout},{children:null==l?void 0:l.bookingCallOut})),s?a.jsx("div",e.__assign({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:a.jsx("div",{className:P.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})})):a.jsx("div",e.__assign({className:P.hRecoOfferCallout},{children:a.jsx(r.Typography,e.__assign({color:"success",variant:r.TypographyVariant.B4CAPS},{children:null==l?void 0:l.offerCallOut}))})),s?a.jsx("div",e.__assign({style:{marginBottom:"24px"}},{children:a.jsx("div",{className:P.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):a.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.HM4,className:P.hRecoCouponCallout},{children:null==l?void 0:l.couponCallOut}))]})),a.jsxs("div",e.__assign({className:P.hRecoContent},{children:[C,a.jsx(n.Button,e.__assign({disabled:s,onClick:N,variant:n.ButtonVariant.OUTLINE,className:P.exploreButton},{children:"Book hotel now"}))]}))]}))]}))}))};exports.HotelRecommendationContainer=function(n){var t=n.location,r=n.pageName,d=n.vertical,s=void 0===d?"AIR":d,c=n.fallbackPageLandingURL,_=n.maxCardsCount,p=void 0===_?5:_,h=e.__rest(n,["location","pageName","vertical","fallbackPageLandingURL","maxCardsCount"]),u=i.useState(!0),x=u[0],m=u[1],g=i.useState(!1),v=g[0],f=g[1],y=i.useState(),R=y[0],b=y[1],C=i.useCallback((function(a){var i;return e.__assign(e.__assign({},a),{bookingCallOut:t?"Since you are flying to ".concat(t,"!"):"Since you are flying for your trip",recommendations:null!==(i=a.recommendations)&&void 0!==i?i:[]})}),[]);return i.useEffect((function(){o.getHotelCrossSellRecos(s,c).then((function(e){var a=C(e);b(a),setTimeout((function(){m(!1)}),10),setTimeout((function(){f(!0)}),180)}))}),[]),a.jsx(l.ThemeProvider,{children:a.jsx(H,e.__assign({data:R,loading:x,pageName:r,vertical:s,location:t,maxCardsCount:p,destroyLoaders:v,fallbackPageLandingURL:c},h))})},exports.HotelRecommendationsWidget=H;
2
2
  //# sourceMappingURL=ct-platform-hotel-recommendations.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-hotel-recommendations.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelRecommendations/src/Card/loader.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Widget/index.tsx","../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","CardLoader","_a","loading","_b","priority","_jsx","className","styles","concat","children","width","height","fetchPriority","src","alt","Card","heroImage","staticData","pricingData","hotelLandingUrl","handleCardClick","useCallback","window","location","href","_jsxs","onClick","LazyImage","mediaUrl","Typography","__assign","variant","TypographyVariant","B2","lineClamp","hotelName","color","B3","userRating","P3","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","jsx","HRecommendationsWidget","data","maxCardsCount","recommendationCards","useMemo","dummyArray","Array","from","length","_","index","hRecomCardsWrapper","map","val","hRecomCardWrapper","hotels","RecommendationCard","redirectToSRP","url","pageLandingUrl","hRecomWrapper","jsxs","hRecomSidebar","connectedLine","dottedLine","sidebarCircle","hRecomMainWrapper","hRecomHeader","hRecomBookingCallout","bookingCallout","hRecomCouponCallout","B4CAPS","couponCallout","hRecomOfferCallout","offerCallout","hRecomContent","Button","ButtonVariant","OUTLINE","exploreButton","API_RESPONSE","hotelId","mediaType","mediaCategory","featured","mediaSubCategory","city","props","useState","setLoading","setData","useEffect","setTimeout","ThemeProvider"],"mappings":"6SAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK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WAAY,CACRkB,UAAW,8CACXM,SAAU,UACVsD,KAAM,YACNvD,WAAY,EACZF,WAAY,KAEhBpB,YAAa,CACT0B,cAAe,KACfG,aAAc,KAElB5B,gBAAiB,IAErB,CACIuE,QAAS,SACT1E,UAAW,CACPY,SACI,kGACJ+D,UAAW,QACXC,cAAe,oBACfC,UAAU,EACVC,iBAAkB,kBAEtB7E,WAAY,CACRkB,UAAW,8CACXM,SAAU,UACVsD,KAAM,YACNvD,WAAY,EACZF,WAAY,KAEhBpB,YAAa,CACT0B,cAAe,KACfG,aAAc,KAElB5B,gBAAiB,KAGzB8D,cAAe,0BACfH,eAAgB,qCAChBK,aAAc,sCACdf,eACI,mUAEsD,SAAC4B,GACrD,IAAA/F,EAAwBgG,EAAAA,UAAkB,GAAzC/F,EAAOD,EAAA,GAAEiG,EAAUjG,EAAA,GACpBE,EAAkB8F,EAAAA,SACjBnE,EAAAA,SAAAA,EAAAA,SAAA,GAAA2D,IACHzB,OAAQ,MAFLd,EAAI/C,EAAA,GAAEgG,OAcb,OATAC,EAAAA,WAAU,WACNC,YAAW,WACPF,EAAQV,EACX,GAAE,KACHY,YAAW,WACPH,GAAW,EACd,GAAE,IACN,GAAE,IAGC7F,EAAAA,IAACiG,EAAAA,wBACGjG,EAAC2C,IAAAC,cACGC,KAAMA,EACNhD,QAASA,GACL8F,KAIpB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-hotel-recommendations.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelRecommendations/src/Banner/index.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/loader.tsx","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Widget/index.tsx","../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Banner","_jsxs","jsxs","__assign","className","styles","children","_jsx","jsx","CheckIcon","Typography","variant","TypographyVariant","P3","src","CardLoader","_a","loading","_b","priority","concat","width","height","fetchPriority","alt","Card","rank","coupon","tripId","hotelId","vertical","location","pageName","heroImage","staticData","pricingData","imgPriority","departureDate","hotelLandingUrl","handleCardClick","useCallback","ravenSDKTrigger","a_trip_id","h_hotel_rank","h_hotel_id","page_name","child_product","a_destination","ct_coupon_applied","transaction_id_ca","onward_date","search_destination","a_departure_date","object_name","hotelName","h_hotel_name","action_name","personalised_callout","window","href","sendImpressionEvent","batchRavenEvent","IntersectionObserverHOC","onIntersection","onClick","mediaUrl","lineClamp","B2","color","B3","userRating","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","HRecommendationsWidget","data","maxCardsCount","destroyLoaders","fallbackPageLandingURL","useState","widgetIntersected","setWidgetIntersected","_departureDate","useMemo","formatFullDateString","recommendationCards","resultCount","recommendations","length","dummyArray","Array","from","_","index","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","couponCode","_c","handleIntersection","redirectToSRP","action_type","result_count","url","pageLandingUrl","useEffect","hRecoWrapper","hRecoSidebar","connectedLine","dottedLine","sidebarCircle","hRecoMainWrapper","hRecoHeader","padding","marginBottom","hRecoHeaderTextLoader","hRecoBookingCallout","bookingCallOut","hRecoOfferCallout","B4CAPS","offerCallOut","hRecoCouponCallout","couponCallOut","hRecoContent","Button","disabled","ButtonVariant","OUTLINE","exploreButton","props","__rest","_d","setLoading","_e","setDestroyLoaders","_f","setData","formatResponse","recommendationRes","getHotelCrossSellRecos","then","formattedData","setTimeout","ThemeProvider"],"mappings":"oVAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,60BChBA,IAAMe,EAA4B,WAC9B,OACIC,EAAKC,KAAA,MAAAC,WAAA,CAAAC,UAAWC,GAAkB,CAAAC,SAAA,CAC9BL,EAAKC,KAAA,MAAAC,EAAAA,SAAA,CAAAC,UAAWC,GAA8B,CAAAC,SAAA,CAC1CL,EAAAA,KAAK,MAAAE,EAAAA,SAAA,CAAAC,UAAWC,GACZ,CAAAC,SAAA,CAAAC,EAAAC,IAACC,YAAS,CAACL,UAAWC,IACtBE,EAAAA,IAACG,EAAAA,uBAAWC,QAASC,EAAAA,kBAAkBC,IAAE,CAAAP,SAAA,8CAI7CL,EAAAA,KAAA,MAAAE,EAAAA,SAAA,CAAKC,UAAWC,GAAyB,CAAAC,SAAA,CACrCC,EAACC,IAAAC,EAASA,UAAC,CAAAL,UAAWC,IACtBE,EAAAA,IAACG,EAAAA,WAAUP,EAAAA,SAAA,CAACQ,QAASC,EAAAA,kBAAkBC,IAE1B,CAAAP,SAAA,yDAEjBL,EAAAA,KAAK,MAAAE,EAAAA,SAAA,CAAAC,UAAWC,GACZ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AiBD,EAAA,GAClCE,EAAkB1D,aAAjBJ,EAAI8D,EAAA,GAAEC,EAAOD,EAAA,GAIdE,EAAiBxG,eACnB,SACIyG,SAEA,OAAA9I,EAAAA,SAAAA,EAAAA,SAAA,CAAA,EACO8I,GAAiB,CACpBrB,eAAgB7F,EACV,2BAA2BX,OAAAW,EAAW,KACtC,qCACN6D,gBAAsD,QAArC5E,EAAAiI,EAAkBrD,uBAAmB,IAAA5E,EAAAA,EAAA,IAE7D,GACD,IAuBJ,OApBAgG,EAAAA,WAAU,WACNkC,EAAAA,uBAAuBpH,EAAUqD,GAAwBgE,MACrD,SAACnE,GACG,IAAMoE,EAAgBJ,EAAehE,GACrC+D,EAAQK,GAGRC,YAAW,WACPV,GAAW,EACd,GAAE,IAIHU,YAAW,WACPR,GAAkB,EACrB,GAAE,IACP,GAEP,GAAE,IAGCtI,EAACC,IAAA8I,EAAaA,wBACV/I,EAACC,IAAAuE,cACGC,KAAMA,EACN/D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACVkD,cAAeA,EACfC,eAAgBA,EAChBC,uBAAwBA,GACpBqD,KAIpB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as a,jsxs as i}from"react/jsx-runtime";import{useCallback as t,useMemo as o,useState as r,useEffect as l}from"react";import{Button as d,ButtonVariant as n}from"@cleartrip/ct-design-button";import{Typography as c,TypographyVariant as p}from"@cleartrip/ct-design-typography";import{LazyImage as m}from"@cleartrip/ct-platform-lazy-image";import{formatCurrency as s}from"@cleartrip/ct-platform-utils";import{ThemeProvider as u}from"@cleartrip/ct-design-theme";function h(e,a){void 0===a&&(a={});var i=a.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var g="index-module_cardWrapper__gNp5L",_="index-module_infoWrapper__SbSyr",f="index-module_titleRow__1g79Q",x="index-module_ratingWrapper__5VWjY",y="index-module_priceWrapper__lHaFH",C="index-module_loaderWrapper__qpkZL",v="index-module_hidden__CdBrr";h(".index-module_cardWrapper__gNp5L{background:#fff;border-radius:16px;height:192px;overflow-x:hidden;width:200px}.index-module_infoWrapper__SbSyr{padding:8px}.index-module_titleRow__1g79Q{display:flex;justify-content:space-between;padding-bottom:4px}.index-module_ratingWrapper__5VWjY{align-items:center;background-color:#ecf3ff;border-radius:4px;display:flex;padding:0 4px}.index-module_priceWrapper__lHaFH{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_slashedPrice__Sr26j{padding:0 2px}.index-module_loaderWrapper__qpkZL{opacity:1;position:absolute;top:0;transition:opacity .15s ease-in-out}.index-module_loaderWrapper__qpkZL.index-module_hidden__CdBrr{opacity:0}");var R=function(i){var t=i.loading,o=i.priority,r=void 0===o?"low":o;return a("div",e({className:"".concat(g," ").concat(C," ").concat(t?"":v)},{children:a("img",{width:200,height:104,fetchPriority:r,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"})}))},b=function(o){var r=o.heroImage,l=o.staticData,d=o.pricingData,n=o.hotelLandingUrl,u=t((function(){n&&(window.location.href=n)}),[n]);return i("div",e({className:g,onClick:u},{children:[a(m,{width:200,height:104,src:r.mediaUrl}),i("div",e({className:_},{children:[i("div",e({className:f},{children:[a(c,e({variant:p.B2,lineClamp:1},{children:null==l?void 0:l.hotelName})),a("div",e({className:x},{children:a(c,e({color:"link",variant:p.B3},{children:null==l?void 0:l.userRating}))}))]})),i(c,e({variant:p.P3,lineClamp:1,color:"subheading"},{children:[null==l?void 0:l.starRating," stars hotel in"," ",null==l?void 0:l.locality]}))]})),i("div",e({className:y},{children:[i(c,e({variant:p.HM4},{children:[s(null==d?void 0:d.perNightPrice)," "]})),a(c,e({isStriked:!0,color:"subheading",variant:p.B4},{children:s(null==d?void 0:d.slashedPrice,!1)})),a(c,e({variant:p.B4,color:"subheading"},{children:" / night"}))]}))]}))},N={hRecomWrapper:"index-module_hRecomWrapper__TL8eh",hRecomHeader:"index-module_hRecomHeader__RpSVO",hRecomContent:"index-module_hRecomContent__JoNi0",hRecomSidebar:"index-module_hRecomSidebar__rZAvT",connectedLine:"index-module_connectedLine__Z9VpQ",dottedLine:"index-module_dottedLine__6K0LJ",hRecomCardsWrapper:"index-module_hRecomCardsWrapper__6du4Z",hRecomCardWrapper:"index-module_hRecomCardWrapper__-IKwU",hRecomCouponCallout:"index-module_hRecomCouponCallout__Y2GEF",hRecomOfferCallout:"index-module_hRecomOfferCallout__a25nf",hRecomBookingCallout:"index-module_hRecomBookingCallout__XHOB5",exploreButton:"index-module_exploreButton__--vcq",sidebarCircle:"index-module_sidebarCircle__-dZZH"};h(".index-module_hRecomWrapper__TL8eh{background:linear-gradient(215deg,#e5fce3 8%,#fff 85.78%);display:flex;padding:16px 0;position:relative}.index-module_hRecomHeader__RpSVO{left:16px;position:relative}.index-module_hRecomContent__JoNi0{left:0;position:absolute;width:100%}.index-module_hRecomSidebar__rZAvT{align-items:center;display:flex;flex-direction:column;padding-left:16px}.index-module_connectedLine__Z9VpQ{border-left:1px solid grey;height:18px;left:-.5px;opacity:.3;position:relative}.index-module_dottedLine__6K0LJ{border-left:1px dotted grey;height:280px;left:-.5px;opacity:.5;position:relative}.index-module_hRecomCardsWrapper__6du4Z{-ms-overflow-style:none;box-sizing:border-box;display:flex;height:208px;overflow:auto;padding:0 16px 16px 52px;scrollbar-width:none;width:100%}.index-module_hRecomCardWrapper__-IKwU{border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);margin-right:12px;min-width:200px;position:relative}.index-module_hRecomCardWrapper__-IKwU:last-child{margin-right:0}.index-module_hRecomCardsWrapper__6du4Z::-webkit-scrollbar{display:none}.index-module_hRecomCouponCallout__Y2GEF{background:linear-gradient(90deg,#cafbcc 5.15%,rgba(212,255,218,.62) 41.66%,rgba(218,255,224,.23) 77.81%,hsla(0,0%,100%,0));border-radius:24px;padding:10px 12px}.index-module_hRecomOfferCallout__a25nf{padding:8px 0 20px}.index-module_hRecomBookingCallout__XHOB5{padding-bottom:16px}.index-module_exploreButton__--vcq{left:52px;margin-top:8px;position:relative;width:calc(100% - 68px)}.index-module_sidebarCircle__-dZZH{border:1px solid #1a1a1a;border-radius:50%;height:8px;margin-top:4px;width:8px}");var w=function(r){var l=r.data,m=r.loading,s=r.maxCardsCount,u=void 0===s?5:s,h=o((function(){var t=Array.from({length:u},(function(e,a){return a+1}));return a("div",e({className:N.hRecomCardsWrapper},{children:t.map((function(t,o){var r,d;return i("div",e({className:N.hRecomCardWrapper},{children:[(null===(r=null==l?void 0:l.hotels)||void 0===r?void 0:r[o])&&a(b,e({},null===(d=null==l?void 0:l.hotels)||void 0===d?void 0:d[o])),a(R,{loading:m,priority:0===o?"high":"auto"})]}),t)}))}))}),[l,m]),g=t((function(){var e=null==l?void 0:l.pageLandingUrl;e&&(window.location.href=e)}),[l]);return i("div",e({className:N.hRecomWrapper},{children:[i("div",e({className:N.hRecomSidebar},{children:[a("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Flight%20%281%29.png",fetchPriority:"low"}),a("div",{className:N.connectedLine}),a("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Gift%20%281%29.png",fetchPriority:"low"}),a("div",{className:N.dottedLine}),a("div",{className:N.sidebarCircle})]})),i("div",e({className:N.hRecomMainWrapper},{children:[i("div",e({className:N.hRecomHeader},{children:[a(c,e({variant:p.P3,className:N.hRecomBookingCallout},{children:null==l?void 0:l.bookingCallout})),a("div",e({className:N.hRecomCouponCallout},{children:a(c,e({color:"success",variant:p.B4CAPS},{children:null==l?void 0:l.couponCallout}))})),a(c,e({variant:p.HM4,className:N.hRecomOfferCallout},{children:null==l?void 0:l.offerCallout}))]})),i("div",e({className:N.hRecomContent},{children:[h,a(d,e({onClick:g,variant:n.OUTLINE,className:N.exploreButton},{children:"Explore hotels"}))]}))]}))]}))},B={hotels:[{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717881",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:"https://www.cleartrip.com/hotels/results?num_rooms=1&adults=2&childs=0&adults1=2&children1=0&chk_in=20%2F06%2F2024&chk_out=21%2F06%2F2024&city=Bangalore&dest_code=32550&country=IN&state=Karnataka&poi=&localityId=&localityName=&baseLocation=CITY-32550&version=V2&utm_source=XSELL-AIR&hotelId=717881"},{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717884",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""},{hotelId:"717883",heroImage:{mediaUrl:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/HotelsCS1.jpeg",mediaType:"PHOTO",mediaCategory:"Property Pictures",featured:!1,mediaSubCategory:"Hotel Exterior"},staticData:{hotelName:"Fairfield By Marriott Bengaluru Rajajinagar",locality:"MG Road",city:"Bangalore",starRating:5,userRating:4.2},pricingData:{perNightPrice:1499,slashedPrice:2e3},hotelLandingUrl:""}],couponCallout:"CTBEST COUPON UNLOCKED!",bookingCallout:"Yay! Your flight to Goa is booked!",offerCallout:"Flat 20% off applied on hotel stays",pageLandingUrl:"https://www.cleartrip.com/hotels/results?num_rooms=1&adults=2&childs=0&adults1=2&children1=0&chk_in=20%2F06%2F2024&chk_out=21%2F06%2F2024&city=Bangalore&dest_code=32550&country=IN&state=Karnataka&poi=&localityId=&localityName=&baseLocation=CITY-32550&version=V2&utm_source=XSELL-AIR"},P=function(i){var t=r(!0),o=t[0],d=t[1],n=r(e(e({},B),{hotels:[]})),c=n[0],p=n[1];return l((function(){setTimeout((function(){p(B)}),300),setTimeout((function(){d(!1)}),310)}),[]),a(u,{children:a(w,e({data:c,loading:o},i))})};export{P as HotelRecommendationContainer,w as HotelRecommendationsWidget};
1
+ import{__assign as e,__rest as o}from"tslib";import{jsxs as i,jsx as a,Fragment as d}from"react/jsx-runtime";import{useCallback as n,useState as t,useMemo as r,useEffect as l}from"react";import{ravenSDKTrigger as c,batchRavenEvent as _,formatCurrency as p,formatFullDateString as s,getHotelCrossSellRecos as h}from"@cleartrip/ct-platform-utils";import{Button as m,ButtonVariant as u}from"@cleartrip/ct-design-button";import{IntersectionObserverHOC as x}from"@cleartrip/ct-platform-io-hoc";import{Typography as g,TypographyVariant as f}from"@cleartrip/ct-design-typography";import{CheckIcon as v}from"@cleartrip/ct-platform-assets";import{ThemeProvider as R}from"@cleartrip/ct-design-theme";function b(e,o){void 0===o&&(o={});var i=o.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===i&&a.firstChild?a.insertBefore(d,a.firstChild):a.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}var y="index-module_hRecoBanner__CyUB8",C="index-module_hRecoBannerIcon__cFmbk",N="index-module_hRecoBannerTextsWrapper__0P-pK",w="index-module_hRecoBannerTextRow__qbE8k",L="index-module_hRecoBannerImg__eC0hA";b(".index-module_hRecoBanner__CyUB8{aspect-ratio:304/180;background:#fff;border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);display:flex;height:180px;margin:0 16px 24px 40px;overflow:hidden;width:calc(100% - 56px)}.index-module_hRecoBannerIcon__cFmbk{margin-right:8px;min-width:16px;padding-top:1px}.index-module_hRecoBannerTextsWrapper__0P-pK{display:flex;flex-direction:column;justify-content:center;padding:18px 8px 18px 12px}.index-module_hRecoBannerTextRow__qbE8k{display:flex;padding-bottom:16px}.index-module_hRecoBannerTextRow__qbE8k:last-of-type{padding-bottom:0}.index-module_hRecoBannerImg__eC0hA{height:100%}");var k=function(){return i("div",e({className:y},{children:[i("div",e({className:N},{children:[i("div",e({className:w},{children:[a(v,{className:C}),a(g,e({variant:f.P3},{children:"Free cancellation till check-in time"}))]})),i("div",e({className:w},{children:[a(v,{className:C}),a(g,e({variant:f.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),i("div",e({className:w},{children:[a(v,{className:C}),a(g,e({variant:f.P3},{children:"Earn and redeem SuperCoins"}))]}))]})),a("img",{src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_274,h_360/offermgmt/images/Hero-Image.png",className:L})]}))},B="index-module_hRecoCardWrapper__FhtJN",W="index-module_hRecoInfoWrapper__4EAyB",P="index-module_hRecoTitleRow__97dd5",T="index-module_hRecoTitle__3Uxkj",H="index-module_hRecoRatingWrapper__mGwia",U="index-module_hRecoPriceWrapper__49o5u",I="index-module_hRecoLoaderWrapper__KXG-6",O="index-module_hidden__CdBrr",S="index-module_hRecoLoaderGradient__c7400",G="index-module_hRecoLoaderTitleRow__cWktU",j="index-module_hRecoLoaderTitle__-Onou",A="index-module_hRecoLoaderRating__Qy5b-",E="index-module_hRecoLoaderSubtitle__l1X3H",q="index-module_hRecoLoaderPricing__KsQ-o";b(".index-module_hRecoCardWrapper__FhtJN{background:#fff;border-radius:16px;display:flex;flex-direction:column;height:180px;overflow:hidden;width:200px}.index-module_hRecoInfoWrapper__4EAyB{padding:8px 8px 0}.index-module_hRecoTitleRow__97dd5{display:flex;justify-content:space-between}.index-module_hRecoTitle__3Uxkj{padding-right:4px}.index-module_hRecoRatingWrapper__mGwia{align-items:center;background-color:#ecf3ff;box-sizing:border-box;display:flex;justify-content:center;margin-left:4px;min-width:28px;padding:0 4px}.index-module_hRecoPriceWrapper__49o5u{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_hRecoLoaderWrapper__KXG-6{opacity:1;pointer-events:none;position:absolute;top:0;transition:opacity .15s ease-in-out}.index-module_hRecoLoaderWrapper__KXG-6.index-module_hidden__CdBrr{opacity:0}.index-module_hRecoLoaderGradient__c7400{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%)}.index-module_hRecoLoaderTitleRow__cWktU{align-items:center;display:flex;margin-bottom:4px}.index-module_hRecoLoaderTitle__-Onou{border-radius:6px;height:20px;width:152px}.index-module_hRecoLoaderRating__Qy5b-{border-radius:6px;height:16px;margin-left:8px;width:20px}.index-module_hRecoLoaderSubtitle__l1X3H{border-radius:4px;height:8px;margin-bottom:8px;width:138px}.index-module_hRecoLoaderPricing__KsQ-o{border-radius:6px;height:16px;width:120px}");var F=function(o){var d=o.loading,n=o.priority,t=void 0===n?"low":n;return i("div",e({className:"".concat(B," ").concat(I," ").concat(d?"":O)},{children:[a("img",{width:200,height:104,fetchPriority:t,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"}),i("div",e({className:W},{children:[i("div",e({className:G},{children:[a("div",{className:"".concat(j," ").concat(S)}),a("div",{className:"".concat(A," ").concat(S)})]})),a("div",{className:"".concat(E," ").concat(S)}),a("div",{className:"".concat(q," ").concat(S)})]}))]}))},K=function(o){var d=o.rank,t=o.coupon,r=o.tripId,l=o.hotelId,s=o.vertical,h=o.location,m=o.pageName,u=o.heroImage,v=o.staticData,R=o.pricingData,b=o.imgPriority,y=o.departureDate,C=o.hotelLandingUrl,N=n((function(){c("u_ui_action",{vertical:s,a_trip_id:r,h_hotel_rank:d,h_hotel_id:l,page_name:m,child_product:"hotel",a_destination:h,ct_coupon_applied:t,transaction_id_ca:r,onward_date:y,search_destination:h,a_departure_date:y,object_name:null==v?void 0:v.hotelName,h_hotel_name:null==v?void 0:v.hotelName,action_name:"hotel_cross_sell_click",personalised_callout:"hotel_card_click"}),C&&(window.location.href=C)}),[C]),w=n((function(){_("u_impression",{vertical:s,a_trip_id:r,h_hotel_rank:d,h_hotel_id:l,page_name:m,child_product:"hotel",a_destination:h,ct_coupon_applied:t,transaction_id_ca:r,onward_date:y,search_destination:h,a_departure_date:y,object_name:null==v?void 0:v.hotelName,h_hotel_name:null==v?void 0:v.hotelName,action_name:"hotel_cross_sell_impression",personalised_callout:"hotel_card_impression"})}),[l]);return a(x,e({onIntersection:w},{children:i("div",e({className:B,onClick:N},{children:[a("img",{width:200,height:104,src:"".concat("https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/").concat(u.mediaUrl),fetchPriority:b}),i("div",e({className:W},{children:[i("div",e({className:P},{children:[a(g,e({lineClamp:1,className:T,variant:f.B2},{children:null==v?void 0:v.hotelName})),a("div",e({className:H},{children:a(g,e({color:"link",variant:f.B3},{children:null==v?void 0:v.userRating}))}))]})),i(g,e({variant:f.P3,lineClamp:1,color:"subheading"},{children:[null==v?void 0:v.starRating," stars hotel in"," ",null==v?void 0:v.locality]}))]})),i("div",e({className:U},{children:[i(g,e({variant:f.HM4},{children:[p(null==R?void 0:R.perNightPrice)," "]})),a(g,e({isStriked:!0,color:"subheading",variant:f.B4},{children:p(null==R?void 0:R.slashedPrice,!1)})),a(g,e({variant:f.B4,color:"subheading"},{children:" / night"}))]}))]}))}))},Y={hRecoWrapper:"index-module_hRecoWrapper__AeUoH",hRecoHeader:"index-module_hRecoHeader__5xuYV",hRecoContent:"index-module_hRecoContent__0kDhm",hRecoSidebar:"index-module_hRecoSidebar__UjWWx",connectedLine:"index-module_connectedLine__Z9VpQ",dottedLine:"index-module_dottedLine__6K0LJ",hRecoCardsWrapper:"index-module_hRecoCardsWrapper__tc4sW",hRecoCardWrapper:"index-module_hRecoCardWrapper__5lhlY",hRecoOfferCallout:"index-module_hRecoOfferCallout__FBOgY",hRecoCouponCallout:"index-module_hRecoCouponCallout__77bdL",hRecoBookingCallout:"index-module_hRecoBookingCallout__GGryo",exploreButton:"index-module_exploreButton__--vcq",sidebarCircle:"index-module_sidebarCircle__-dZZH",hRecoHeaderTextLoader:"index-module_hRecoHeaderTextLoader__tyYPe"};b(".index-module_hRecoWrapper__AeUoH{background:linear-gradient(215deg,#e5fce3 8%,#fff 85.78%);display:flex;padding:16px 0;position:relative}.index-module_hRecoHeader__5xuYV{left:8px;position:relative}.index-module_hRecoContent__0kDhm{left:0;position:absolute;width:100%}.index-module_hRecoSidebar__UjWWx{align-items:center;display:flex;flex-direction:column;padding-left:12px}.index-module_connectedLine__Z9VpQ{border-left:1px solid grey;height:18px;left:-.5px;opacity:.3;position:relative}.index-module_dottedLine__6K0LJ{border-left:1px dotted grey;height:272px;left:-.5px;opacity:.5;position:relative}.index-module_hRecoCardsWrapper__tc4sW{-ms-overflow-style:none;box-sizing:content-box;display:flex;height:180px;overflow:auto;padding:0 16px 16px 40px;scrollbar-width:none;width:calc(100% - 56px)}.index-module_hRecoCardWrapper__5lhlY{border-radius:16px;box-shadow:0 4px 16px 0 rgba(26,26,26,.08);margin-right:12px;min-width:200px;position:relative}.index-module_hRecoCardWrapper__5lhlY:last-child{margin-right:0}.index-module_hRecoCardsWrapper__tc4sW::-webkit-scrollbar{display:none}.index-module_hRecoOfferCallout__FBOgY{background:linear-gradient(90deg,#cafbcc 5.15%,rgba(212,255,218,.62) 41.66%,rgba(218,255,224,.23) 77.81%,hsla(0,0%,100%,0));border-radius:24px;padding:10px 12px}.index-module_hRecoCouponCallout__77bdL{padding:8px 0 20px}.index-module_hRecoBookingCallout__GGryo{padding-bottom:12px;padding-top:4px}.index-module_exploreButton__--vcq{left:40px;margin-top:8px;position:relative;width:calc(100% - 56px)}.index-module_sidebarCircle__-dZZH{border:1px solid #1a1a1a;border-radius:50%;height:8px;width:8px}.index-module_hRecoHeaderTextLoader__tyYPe{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%);border-radius:4px}");var D=function(o){var p=o.data,h=o.loading,v=o.tripId,R=o.pageName,b=o.vertical,y=o.location,C=o.maxCardsCount,N=o.departureDate,w=o.destroyLoaders,L=o.fallbackPageLandingURL,B=t(!1),W=B[0],P=B[1],T=r((function(){return s(N)}),[N]),H=r((function(){var o,n,t=null!==(n=null===(o=null==p?void 0:p.recommendations)||void 0===o?void 0:o.length)&&void 0!==n?n:0,r=Array.from({length:C},(function(e,o){return o+1}));return h||t>=2?a("div",e({className:Y.hRecoCardsWrapper},{children:r.map((function(o,n){var t,r,l;return h||!w||(null===(t=null==p?void 0:p.recommendations)||void 0===t?void 0:t[n])?i("div",e({className:Y.hRecoCardWrapper},{children:[(null===(r=null==p?void 0:p.recommendations)||void 0===r?void 0:r[n])&&a(K,e({tripId:v,rank:n+1,location:y,pageName:R,vertical:b,coupon:null==p?void 0:p.couponCode,departureDate:T},null===(l=null==p?void 0:p.recommendations)||void 0===l?void 0:l[n],{imgPriority:0===n?"high":"auto"})),!w&&a(F,{loading:h,priority:0===n?"high":"auto"})]}),o):a(d,{})}))})):a(k,{})}),[p,h,w]),U=n((function(){P(!0)}),[]),I=n((function(){var e,o,i,a=null!==(o=null===(e=null==p?void 0:p.recommendations)||void 0===e?void 0:e.length)&&void 0!==o?o:0;c("u_ui_action",{vertical:b,a_trip_id:v,page_name:R,action_type:"click",child_product:"hotel",a_destination:y,transaction_id_ca:v,onward_date:T,search_destination:y,a_departure_date:T,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:a<C?a:C});var d=null!==(i=null==p?void 0:p.pageLandingUrl)&&void 0!==i?i:L;d&&(window.location.href=d)}),[p]);return l((function(){var e,o;if(W&&!h){var i=null!==(o=null===(e=null==p?void 0:p.recommendations)||void 0===e?void 0:e.length)&&void 0!==o?o:0;_("u_impression",{vertical:b,a_trip_id:v,page_name:R,child_product:"hotel",a_destination:y,transaction_id_ca:v,onward_date:T,search_destination:y,a_departure_date:T,action_name:"hotel_cross_sell_impression",result_count:i<C?i:C})}}),[h,p,W]),a(x,e({onIntersection:U},{children:i("div",e({className:Y.hRecoWrapper},{children:[i("div",e({className:Y.hRecoSidebar},{children:[a("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Flight%20%281%29.png",fetchPriority:"low"}),a("div",{className:Y.connectedLine}),a("img",{width:20,height:20,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_20,h_20,dpr_2/offermgmt/images/banner/Gift%20%281%29.png",fetchPriority:"low"}),a("div",{className:Y.dottedLine}),a("div",{className:Y.sidebarCircle})]})),i("div",e({className:Y.hRecoMainWrapper},{children:[i("div",e({className:Y.hRecoHeader},{children:[h?a("div",e({style:{padding:"4px 0",marginBottom:"16px"}},{children:a("div",{className:Y.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):a(g,e({variant:f.P3,className:Y.hRecoBookingCallout},{children:null==p?void 0:p.bookingCallOut})),a("div",h?e({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:a("div",{className:Y.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})}):e({className:Y.hRecoOfferCallout},{children:a(g,e({color:"success",variant:f.B4CAPS},{children:null==p?void 0:p.offerCallOut}))})),h?a("div",e({style:{marginBottom:"24px"}},{children:a("div",{className:Y.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):a(g,e({variant:f.HM4,className:Y.hRecoCouponCallout},{children:null==p?void 0:p.couponCallOut}))]})),i("div",e({className:Y.hRecoContent},{children:[H,a(m,e({disabled:h,onClick:I,variant:u.OUTLINE,className:Y.exploreButton},{children:"Book hotel now"}))]}))]}))]}))}))},Q=function(i){var d=i.location,r=i.pageName,c=i.vertical,_=void 0===c?"AIR":c,p=i.fallbackPageLandingURL,s=i.maxCardsCount,m=void 0===s?5:s,u=o(i,["location","pageName","vertical","fallbackPageLandingURL","maxCardsCount"]),x=t(!0),g=x[0],f=x[1],v=t(!1),b=v[0],y=v[1],C=t(),N=C[0],w=C[1],L=n((function(o){var i;return e(e({},o),{bookingCallOut:d?"Since you are flying to ".concat(d,"!"):"Since you are flying for your trip",recommendations:null!==(i=o.recommendations)&&void 0!==i?i:[]})}),[]);return l((function(){h(_,p).then((function(e){var o=L(e);w(o),setTimeout((function(){f(!1)}),10),setTimeout((function(){y(!0)}),180)}))}),[]),a(R,{children:a(D,e({data:N,loading:g,pageName:r,vertical:_,location:d,maxCardsCount:m,destroyLoaders:b,fallbackPageLandingURL:p},u))})};export{Q as HotelRecommendationContainer,D as HotelRecommendationsWidget};
2
2
  //# sourceMappingURL=ct-platform-hotel-recommendations.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-hotel-recommendations.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelRecommendations/src/Card/loader.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Widget/index.tsx","../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","CardLoader","_a","loading","_b","priority","_jsx","className","styles","concat","children","width","height","fetchPriority","src","alt","Card","heroImage","staticData","pricingData","hotelLandingUrl","handleCardClick","useCallback","window","location","href","_jsxs","onClick","LazyImage","mediaUrl","Typography","__assign","variant","TypographyVariant","B2","lineClamp","hotelName","color","B3","userRating","P3","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","HRecommendationsWidget","data","maxCardsCount","recommendationCards","useMemo","dummyArray","Array","from","length","_","index","hRecomCardsWrapper","map","val","hRecomCardWrapper","hotels","RecommendationCard","redirectToSRP","url","pageLandingUrl","hRecomWrapper","hRecomSidebar","connectedLine","dottedLine","sidebarCircle","hRecomMainWrapper","hRecomHeader","hRecomBookingCallout","bookingCallout","hRecomCouponCallout","B4CAPS","couponCallout","hRecomOfferCallout","offerCallout","hRecomContent","Button","ButtonVariant","OUTLINE","exploreButton","API_RESPONSE","hotelId","mediaType","mediaCategory","featured","mediaSubCategory","city","HRecommendations","props","useState","setLoading","setData","useEffect","setTimeout","ThemeProvider"],"mappings":"ofAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,i7BCjBA,IAAMe,EAAmD,SAACC,GACtD,IAAAC,YACAC,EAAAF,EAAAG,SAAAA,OAAQ,IAAAD,EAAG,MAAKA,EAGhB,OAEIE,WACIC,UAAW,UAAGC,EAAkB,KAAAC,OAAID,EAAwB,KAAAC,OAAAN,EAAU,GAAKK,IAG3E,CAAAE,SAAAJ,EAAA,MAAA,CACIK,MAAO,IACPC,OAAQ,IACRC,cAAeR,EACfS,ICfZ,0GDgBYC,IAAI,uCAIpB,EElBMC,EAA2C,SAACd,OAC9Ce,EAASf,EAAAe,UACTC,EAAUhB,EAAAgB,WACVC,EAAWjB,EAAAiB,YACXC,EAAelB,EAAAkB,gBAETC,EAAkBC,GAAY,WAC5BF,IACAG,OAAOC,SAASC,KAAOL,EAE/B,GAAG,CAACA,IAEJ,OACIM,WAAKnB,UAAWC,EAAoBmB,QAASN,cACzCf,EAACsB,GAAUjB,MAAO,IAAKC,OAAQ,IAAKE,IAAKG,EAAUY,WACnDH,WAAKnB,UAAWC,GAAkB,CAAAE,SAAA,CAC9BgB,WAAKnB,UAAWC,GAAe,CAAAE,SAAA,CAC3BJ,EAACwB,EAAUC,EAAA,CAACC,QAASC,EAA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a,CACT0B,cAAe,KACfG,aAAc,KAElB5B,gBAAiB,IAErB,CACIqE,QAAS,SACTxE,UAAW,CACPY,SACI,kGACJ6D,UAAW,QACXC,cAAe,oBACfC,UAAU,EACVC,iBAAkB,kBAEtB3E,WAAY,CACRkB,UAAW,8CACXM,SAAU,UACVoD,KAAM,YACNrD,WAAY,EACZF,WAAY,KAEhBpB,YAAa,CACT0B,cAAe,KACfG,aAAc,KAElB5B,gBAAiB,KAGzB4D,cAAe,0BACfH,eAAgB,qCAChBK,aAAc,sCACdd,eACI,8RAEF2B,EAAwD,SAACC,GACrD,IAAA9F,EAAwB+F,GAAkB,GAAzC9F,EAAOD,EAAA,GAAEgG,EAAUhG,EAAA,GACpBE,EAAkB6F,EACjBlE,EAAAA,EAAA,GAAAyD,IACHxB,OAAQ,MAFLd,EAAI9C,EAAA,GAAE+F,OAcb,OATAC,GAAU,WACNC,YAAW,WACPF,EAAQX,EACX,GAAE,KACHa,YAAW,WACPH,GAAW,EACd,GAAE,IACN,GAAE,IAGC5F,EAACgG,YACGhG,EAAC2C,KACGC,KAAMA,EACN/C,QAASA,GACL6F,KAIpB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-hotel-recommendations.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelRecommendations/src/Banner/index.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/loader.tsx","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Widget/index.tsx","../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Banner","_jsxs","__assign","className","styles","children","_jsx","CheckIcon","Typography","variant","TypographyVariant","P3","src","CardLoader","_a","loading","_b","priority","concat","width","height","fetchPriority","alt","Card","rank","coupon","tripId","hotelId","vertical","location","pageName","heroImage","staticData","pricingData","imgPriority","departureDate","hotelLandingUrl","handleCardClick","useCallback","ravenSDKTrigger","a_trip_id","h_hotel_rank","h_hotel_id","page_name","child_product","a_destination","ct_coupon_applied","transaction_id_ca","onward_date","search_destination","a_departure_date","object_name","hotelName","h_hotel_name","action_name","personalised_callout","window","href","sendImpressionEvent","batchRavenEvent","IntersectionObserverHOC","onIntersection","onClick","mediaUrl","lineClamp","B2","color","B3","userRating","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","HRecommendationsWidget","data","maxCardsCount","destroyLoaders","fallbackPageLandingURL","useState","widgetIntersected","setWidgetIntersected","_departureDate","useMemo","formatFullDateString","recommendationCards","resultCount","recommendations","length","dummyArray","Array","from","_","index","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","couponCode","_c","handleIntersection","redirectToSRP","action_type","result_count","url","pageLandingUrl","useEffect","hRecoWrapper","hRecoSidebar","connectedLine","dottedLine","sidebarCircle","hRecoMainWrapper","hRecoHeader","padding","marginBottom","hRecoHeaderTextLoader","hRecoBookingCallout","bookingCallOut","hRecoOfferCallout","B4CAPS","offerCallOut","hRecoCouponCallout","couponCallOut","hRecoContent","Button","disabled","ButtonVariant","OUTLINE","exploreButton","HRecommendations","props","__rest","_d","setLoading","_e","setDestroyLoaders","_f","setData","formatResponse","recommendationRes","getHotelCrossSellRecos","then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,WAAA,yBAAA,kBAQ7D2H,EAAwBvD,GAAkB,GAAzCnE,EAAO0H,EAAA,GAAEC,EAAUD,EAAA,GACpBE,EAAsCzD,GAAkB,GAAvDF,EAAc2D,EAAA,GAAEC,EAAiBD,EAAA,GAClCE,EAAkB3D,IAAjBJ,EAAI+D,EAAA,GAAEC,EAAOD,EAAA,GAIdE,EAAiBzG,GACnB,SACI0G,SAEA,OAAA9I,EAAAA,EAAA,CAAA,EACO8I,GAAiB,CACpBtB,eAAgB7F,EACV,2BAA2BX,OAAAW,EAAW,KACtC,qCACN6D,gBAAsD,QAArC5E,EAAAkI,EAAkBtD,uBAAmB,IAAA5E,EAAAA,EAAA,IAE7D,GACD,IAuBJ,OApBAgG,GAAU,WACNmC,EAAuBrH,EAAUqD,GAAwBiE,MACrD,SAACpE,GACG,IAAMqE,EAAgBJ,EAAejE,GACrCgE,EAAQK,GAGRC,YAAW,WACPV,GAAW,EACd,GAAE,IAIHU,YAAW,WACPR,GAAkB,EACrB,GAAE,IACP,GAEP,GAAE,IAGCtI,EAAC+I,YACG/I,EAACuE,KACGC,KAAMA,EACN/D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACVkD,cAAeA,EACfC,eAAgBA,EAChBC,uBAAwBA,GACpBsD,KAIpB","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-hotel-recommendations",
3
- "version": "1.4.1-beta.2",
3
+ "version": "1.4.1-beta.20",
4
4
  "description": "Hotel Recommendations Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-hotel-recommendations.cjs.js",
@@ -14,8 +14,10 @@
14
14
  "@cleartrip/ct-design-theme": "3.7.0",
15
15
  "@cleartrip/ct-design-typography": "3.7.0",
16
16
  "classnames": "^2.5.1",
17
- "@cleartrip/ct-platform-lazy-image": "3.2.1-beta.9",
18
- "@cleartrip/ct-platform-utils": "3.5.1-beta.9"
17
+ "@cleartrip/ct-platform-assets": "3.1.1-beta.17",
18
+ "@cleartrip/ct-platform-utils": "3.7.1-beta.5",
19
+ "@cleartrip/ct-platform-types": "3.2.1-beta.43",
20
+ "@cleartrip/ct-platform-io-hoc": "3.0.0-beta.51"
19
21
  },
20
22
  "peerDependencies": {
21
23
  "react": ">=16.8.0",