@cleartrip/ct-platform-hotel-recommendations 1.4.1-beta.6 → 1.4.1-beta.7

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;AAO3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0D5C,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;AAQhE,OAAO,EAEH,iCAAiC,EACpC,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAiDjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,16 +1,28 @@
1
+ import { HRecommendationData } from '@cleartrip/ct-platform-types';
1
2
  import { MerchCarouselProps } from '@cleartrip/ct-platform-merch-carousel';
2
- export interface HotelRecommendationsProps {
3
+ export interface HotelRecommendationContainerProps {
4
+ location: string;
5
+ vertical: string;
6
+ maxCardsCount?: number;
7
+ fallbackPageLandingURL: string;
8
+ carouselProps?: MerchCarouselProps<HRecommendationData>;
9
+ }
10
+ export interface HotelRecommendationWidgetProps {
3
11
  loading?: boolean;
12
+ location?: string;
13
+ checkInDate?: string;
14
+ checkOutDate?: string;
4
15
  maxCardsCount?: number;
5
- data?: HotelRecommendationAPIRes;
6
- carouselProps?: MerchCarouselProps<HRecommendationCardProps>;
16
+ locationAirport?: string;
17
+ data?: HotelRecommendationWidgetData;
18
+ carouselProps?: MerchCarouselProps<HRecommendationData>;
7
19
  }
8
- export interface HotelRecommendationAPIRes {
9
- offerCallout: string;
10
- couponCallout: string;
11
- bookingCallout: string;
20
+ export interface HotelRecommendationWidgetData {
21
+ offerCallOut: string;
22
+ couponCallOut: string;
23
+ bookingCallOut: string;
12
24
  pageLandingUrl: string;
13
- hotels: HRecommendationCardProps[];
25
+ recommendations: HRecommendationData[];
14
26
  }
15
27
  export interface HRecommendationHeroImgProps {
16
28
  mediaUrl: string;
@@ -30,16 +42,12 @@ export interface HRecommendationPricingProps {
30
42
  slashedPrice: number;
31
43
  perNightPrice: number;
32
44
  }
33
- export interface HRecommendationCardProps {
34
- hotelId: string;
35
- hotelLandingUrl: string;
36
- heroImage: HRecommendationHeroImgProps;
37
- pricingData: HRecommendationPricingProps;
38
- staticData: HRecommendationStaticDataProps;
39
- }
40
45
  export interface HRecommendationLoaderProps {
41
46
  loading?: boolean;
42
47
  className?: string;
43
48
  priority?: 'high' | 'low' | 'auto' | undefined;
44
49
  }
50
+ export interface HRecommendationCardProps extends HRecommendationData {
51
+ imgPriority?: 'high' | 'low' | 'auto' | undefined;
52
+ }
45
53
  //# 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;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,WAAW,iCAAiC;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAE/B,aAAa,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAC3D;AACD,MAAM,WAAW,8BAA8B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,6BAA6B,CAAC;IAErC,aAAa,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,6BAA6B;IAC1C,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,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,KAA+B,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAK3E,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAiJpE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -2,4 +2,5 @@ export declare const GIFT_ICON = "https://fastui.cltpstatic.com/image/upload/f_a
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
4
  export declare const CARDS_MAX_COUNT = 5;
5
+ 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
6
  //# 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;AAEjC,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"),i=require("react/jsx-runtime"),a=require("react"),o=require("@cleartrip/ct-design-button"),n=require("@cleartrip/ct-design-typography"),r=require("@cleartrip/ct-platform-utils"),d=require("@cleartrip/ct-platform-assets"),t=require("@cleartrip/ct-design-theme");function l(e,i){void 0===i&&(i={});var a=i.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===a&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var s="index-module_hRecoCardWrapper__FhtJN",c="index-module_hRecoInfoWrapper__4EAyB",_="index-module_hRecoTitleRow__97dd5",p="index-module_hRecoRatingWrapper__mGwia",h="index-module_hRecoPriceWrapper__49o5u",x="index-module_hRecoLoaderWrapper__KXG-6",u="index-module_hidden__CdBrr",m="index-module_hRecoLoaderGradient__c7400",g="index-module_hRecoLoaderTitleRow__cWktU",f="index-module_hRecoLoaderTitle__-Onou",y="index-module_hRecoLoaderRating__Qy5b-",v="index-module_hRecoLoaderSubtitle__l1X3H",R="index-module_hRecoLoaderPricing__KsQ-o";l(".index-module_hRecoCardWrapper__FhtJN{background:#fff;border-radius:16px;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_hRecoRatingWrapper__mGwia{align-items:center;background-color:#ecf3ff;border-radius:4px;display:flex;padding:0 4px}.index-module_hRecoPriceWrapper__49o5u{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_hRecoLoaderWrapper__KXG-6{opacity:1;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(a){var o=a.loading,n=a.priority,r=void 0===n?"low":n;return i.jsxs("div",e.__assign({className:"".concat(s," ").concat(x," ").concat(o?"":u)},{children:[i.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"}),i.jsxs("div",e.__assign({className:c},{children:[i.jsxs("div",e.__assign({className:g},{children:[i.jsx("div",{className:"".concat(f," ").concat(m)}),i.jsx("div",{className:"".concat(y," ").concat(m)})]})),i.jsx("div",{className:"".concat(v," ").concat(m)}),i.jsx("div",{className:"".concat(R," ").concat(m)})]}))]}))},C=function(o){var d=o.heroImage,t=o.staticData,l=o.pricingData,x=o.imgPriority,u=o.hotelLandingUrl,m=a.useCallback((function(){u&&(window.location.href=u)}),[u]);return i.jsxs("div",e.__assign({className:s,onClick:m},{children:[i.jsx("img",{width:200,height:104,src:d.mediaUrl,fetchPriority:x}),i.jsxs("div",e.__assign({className:c},{children:[i.jsxs("div",e.__assign({className:_},{children:[i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.B2,lineClamp:1},{children:null==t?void 0:t.hotelName})),i.jsx("div",e.__assign({className:p},{children:i.jsx(n.Typography,e.__assign({color:"link",variant:n.TypographyVariant.B3},{children:null==t?void 0:t.userRating}))}))]})),i.jsxs(n.Typography,e.__assign({variant:n.TypographyVariant.P3,lineClamp:1,color:"subheading"},{children:[null==t?void 0:t.starRating," stars hotel in"," ",null==t?void 0:t.locality]}))]})),i.jsxs("div",e.__assign({className:h},{children:[i.jsxs(n.Typography,e.__assign({variant:n.TypographyVariant.HM4},{children:[r.formatCurrency(null==l?void 0:l.perNightPrice)," "]})),i.jsx(n.Typography,e.__assign({isStriked:!0,color:"subheading",variant:n.TypographyVariant.B4},{children:r.formatCurrency(null==l?void 0:l.slashedPrice,!1)})),i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.B4,color:"subheading"},{children:" / night"}))]}))]}))},j={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"};l(".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:268px;left:-.5px;opacity:.5;position:relative}.index-module_hRecoCardsWrapper__tc4sW{-ms-overflow-style:none;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:16px}.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;margin-top:4px;width:8px}.index-module_hRecoHeaderTextLoader__tyYPe{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%);border-radius:4px}");var w="index-module_hRecoBanner__CyUB8",T="index-module_hRecoBannerIcon__cFmbk",N="index-module_hRecoBannerTextsWrapper__0P-pK",B="index-module_hRecoBannerTextRow__qbE8k",L="index-module_hRecoBannerImg__eC0hA";l(".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;width:calc(100% - 56px)}.index-module_hRecoBannerIcon__cFmbk{min-width:16px;padding-right:8px;padding-top:1px}.index-module_hRecoBannerTextsWrapper__0P-pK{display:flex;flex-direction:column;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.jsxs("div",e.__assign({className:w},{children:[i.jsxs("div",e.__assign({className:N},{children:[i.jsxs("div",e.__assign({className:B},{children:[i.jsx(d.CheckIcon,{className:T}),i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.P3},{children:"Free cancellation till check-in time"}))]})),i.jsxs("div",e.__assign({className:B},{children:[i.jsx(d.CheckIcon,{className:T}),i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),i.jsxs("div",e.__assign({className:B},{children:[i.jsx(d.CheckIcon,{className:T}),i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.P3},{children:"Earn and redeem SuperCoins"}))]}))]})),i.jsx("img",{src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_274,h_360/offermgmt/images/Hero-Image.png",className:L})]}))},W=function(r){var d=r.data,t=r.loading,l=r.maxCardsCount,s=void 0===l?5:l,c=a.useMemo((function(){var a,o=Array.from({length:s},(function(e,i){return i+1}));return t||(null===(a=null==d?void 0:d.recommendations)||void 0===a?void 0:a.length)?i.jsx("div",e.__assign({className:j.hRecoCardsWrapper},{children:o.map((function(a,o){var n,r;return i.jsxs("div",e.__assign({className:j.hRecoCardWrapper},{children:[(null===(n=null==d?void 0:d.recommendations)||void 0===n?void 0:n[o])&&i.jsx(C,e.__assign({},null===(r=null==d?void 0:d.recommendations)||void 0===r?void 0:r[o],{imgPriority:0===o?"high":"auto"})),i.jsx(b,{loading:t,priority:0===o?"high":"auto"})]}),a)}))})):i.jsx(k,{})}),[d,t]),_=a.useCallback((function(){var e=null==d?void 0:d.pageLandingUrl;e&&(window.location.href=e)}),[d]);return i.jsxs("div",e.__assign({className:j.hRecoWrapper},{children:[i.jsxs("div",e.__assign({className:j.hRecoSidebar},{children:[i.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"}),i.jsx("div",{className:j.connectedLine}),i.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"}),i.jsx("div",{className:j.dottedLine}),i.jsx("div",{className:j.sidebarCircle})]})),i.jsxs("div",e.__assign({className:j.hRecoMainWrapper},{children:[i.jsxs("div",e.__assign({className:j.hRecoHeader},{children:[t?i.jsx("div",e.__assign({style:{padding:"4px 0",marginBottom:"16px"}},{children:i.jsx("div",{className:j.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.P3,className:j.hRecoBookingCallout},{children:null==d?void 0:d.bookingCallOut})),t?i.jsx("div",e.__assign({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:i.jsx("div",{className:j.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})})):i.jsx("div",e.__assign({className:j.hRecoOfferCallout},{children:i.jsx(n.Typography,e.__assign({color:"success",variant:n.TypographyVariant.B4CAPS},{children:null==d?void 0:d.offerCallOut}))})),t?i.jsx("div",e.__assign({style:{marginBottom:"24px"}},{children:i.jsx("div",{className:j.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):i.jsx(n.Typography,e.__assign({variant:n.TypographyVariant.HM4,className:j.hRecoCouponCallout},{children:null==d?void 0:d.couponCallOut}))]})),i.jsxs("div",e.__assign({className:j.hRecoContent},{children:[c,i.jsx(o.Button,e.__assign({disabled:t,onClick:_,variant:o.ButtonVariant.OUTLINE,className:j.exploreButton},{children:"Book hotel now"}))]}))]}))]}))};exports.HotelRecommendationContainer=function(o){var n=o.location,d=o.vertical,l=void 0===d?"AIR":d,s=o.fallbackPageLandingURL,c=e.__rest(o,["location","vertical","fallbackPageLandingURL"]),_=a.useState(!0),p=_[0],h=_[1],x=a.useState(),u=x[0],m=x[1],g=a.useCallback((function(i){var a;return e.__assign(e.__assign({},i),{bookingCallOut:n?"Since you are flying to ".concat(n,"!"):"Since you are flying for your trip",recommendations:null!==(a=i.recommendations)&&void 0!==a?a:[]})}),[]);return a.useEffect((function(){r.getHotelCrossSellRecos(l,s).then((function(e){var i=g(e);m(i),setTimeout((function(){h(!1)}),10)}))}),[]),i.jsx(t.ThemeProvider,{children:i.jsx(W,e.__assign({data:u,loading:p},c))})},exports.HotelRecommendationsWidget=W;
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,GAA2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,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,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/Card/loader.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Banner/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","CardLoader","_a","loading","_b","priority","_jsxs","jsxs","__assign","className","concat","styles","children","_jsx","jsx","width","height","fetchPriority","src","alt","Card","heroImage","staticData","pricingData","imgPriority","hotelLandingUrl","handleCardClick","useCallback","window","location","href","onClick","mediaUrl","Typography","variant","TypographyVariant","B2","lineClamp","hotelName","color","B3","userRating","P3","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","Banner","CheckIcon","HRecommendationsWidget","data","maxCardsCount","recommendationCards","useMemo","dummyArray","Array","from","length","_","index","recommendations","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","redirectToSRP","url","pageLandingUrl","hRecoWrapper","hRecoSidebar","connectedLine","dottedLine","sidebarCircle","hRecoMainWrapper","hRecoHeader","padding","marginBottom","hRecoHeaderTextLoader","hRecoBookingCallout","bookingCallOut","hRecoOfferCallout","B4CAPS","offerCallOut","hRecoCouponCallout","couponCallOut","hRecoContent","Button","disabled","ButtonVariant","OUTLINE","exploreButton","vertical","fallbackPageLandingURL","props","__rest","_c","useState","setLoading","_d","setData","formatResponse","recommendationRes","useEffect","getHotelCrossSellRecos","then","formattedData","setTimeout","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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 i}from"tslib";import{jsxs as o,jsx as d}from"react/jsx-runtime";import{useCallback as a,useMemo as r,useState as n,useEffect as t}from"react";import{Button as l,ButtonVariant as c}from"@cleartrip/ct-design-button";import{Typography as p,TypographyVariant as h}from"@cleartrip/ct-design-typography";import{formatCurrency as m,getHotelCrossSellRecos as s}from"@cleartrip/ct-platform-utils";import{CheckIcon as _}from"@cleartrip/ct-platform-assets";import{ThemeProvider as u}from"@cleartrip/ct-design-theme";function x(e,i){void 0===i&&(i={});var o=i.insertAt;if(e&&"undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===o&&d.firstChild?d.insertBefore(a,d.firstChild):d.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var g="index-module_hRecoCardWrapper__FhtJN",f="index-module_hRecoInfoWrapper__4EAyB",v="index-module_hRecoTitleRow__97dd5",R="index-module_hRecoRatingWrapper__mGwia",b="index-module_hRecoPriceWrapper__49o5u",y="index-module_hRecoLoaderWrapper__KXG-6",C="index-module_hidden__CdBrr",w="index-module_hRecoLoaderGradient__c7400",N="index-module_hRecoLoaderTitleRow__cWktU",L="index-module_hRecoLoaderTitle__-Onou",B="index-module_hRecoLoaderRating__Qy5b-",W="index-module_hRecoLoaderSubtitle__l1X3H",k="index-module_hRecoLoaderPricing__KsQ-o";x(".index-module_hRecoCardWrapper__FhtJN{background:#fff;border-radius:16px;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_hRecoRatingWrapper__mGwia{align-items:center;background-color:#ecf3ff;border-radius:4px;display:flex;padding:0 4px}.index-module_hRecoPriceWrapper__49o5u{align-items:baseline;display:flex;padding:4px 8px 8px}.index-module_hRecoLoaderWrapper__KXG-6{opacity:1;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 P=function(i){var a=i.loading,r=i.priority,n=void 0===r?"low":r;return o("div",e({className:"".concat(g," ").concat(y," ").concat(a?"":C)},{children:[d("img",{width:200,height:104,fetchPriority:n,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"}),o("div",e({className:f},{children:[o("div",e({className:N},{children:[d("div",{className:"".concat(L," ").concat(w)}),d("div",{className:"".concat(B," ").concat(w)})]})),d("div",{className:"".concat(W," ").concat(w)}),d("div",{className:"".concat(k," ").concat(w)})]}))]}))},H=function(i){var r=i.heroImage,n=i.staticData,t=i.pricingData,l=i.imgPriority,c=i.hotelLandingUrl,s=a((function(){c&&(window.location.href=c)}),[c]);return o("div",e({className:g,onClick:s},{children:[d("img",{width:200,height:104,src:r.mediaUrl,fetchPriority:l}),o("div",e({className:f},{children:[o("div",e({className:v},{children:[d(p,e({variant:h.B2,lineClamp:1},{children:null==n?void 0:n.hotelName})),d("div",e({className:R},{children:d(p,e({color:"link",variant:h.B3},{children:null==n?void 0:n.userRating}))}))]})),o(p,e({variant:h.P3,lineClamp:1,color:"subheading"},{children:[null==n?void 0:n.starRating," stars hotel in"," ",null==n?void 0:n.locality]}))]})),o("div",e({className:b},{children:[o(p,e({variant:h.HM4},{children:[m(null==t?void 0:t.perNightPrice)," "]})),d(p,e({isStriked:!0,color:"subheading",variant:h.B4},{children:m(null==t?void 0:t.slashedPrice,!1)})),d(p,e({variant:h.B4,color:"subheading"},{children:" / night"}))]}))]}))},T={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"};x(".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:268px;left:-.5px;opacity:.5;position:relative}.index-module_hRecoCardsWrapper__tc4sW{-ms-overflow-style:none;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:16px}.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;margin-top:4px;width:8px}.index-module_hRecoHeaderTextLoader__tyYPe{background:linear-gradient(90deg,#f1efef -24.18%,#f9f8f8 50.26%,#e7e5e5 114.84%);border-radius:4px}");var U="index-module_hRecoBanner__CyUB8",O="index-module_hRecoBannerIcon__cFmbk",S="index-module_hRecoBannerTextsWrapper__0P-pK",G="index-module_hRecoBannerTextRow__qbE8k",I="index-module_hRecoBannerImg__eC0hA";x(".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;width:calc(100% - 56px)}.index-module_hRecoBannerIcon__cFmbk{min-width:16px;padding-right:8px;padding-top:1px}.index-module_hRecoBannerTextsWrapper__0P-pK{display:flex;flex-direction:column;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 A=function(){return o("div",e({className:U},{children:[o("div",e({className:S},{children:[o("div",e({className:G},{children:[d(_,{className:O}),d(p,e({variant:h.P3},{children:"Free cancellation till check-in time"}))]})),o("div",e({className:G},{children:[d(_,{className:O}),d(p,e({variant:h.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),o("div",e({className:G},{children:[d(_,{className:O}),d(p,e({variant:h.P3},{children:"Earn and redeem SuperCoins"}))]}))]})),d("img",{src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_274,h_360/offermgmt/images/Hero-Image.png",className:I})]}))},E=function(i){var n=i.data,t=i.loading,m=i.maxCardsCount,s=void 0===m?5:m,_=r((function(){var i,a=Array.from({length:s},(function(e,i){return i+1}));return t||(null===(i=null==n?void 0:n.recommendations)||void 0===i?void 0:i.length)?d("div",e({className:T.hRecoCardsWrapper},{children:a.map((function(i,a){var r,l;return o("div",e({className:T.hRecoCardWrapper},{children:[(null===(r=null==n?void 0:n.recommendations)||void 0===r?void 0:r[a])&&d(H,e({},null===(l=null==n?void 0:n.recommendations)||void 0===l?void 0:l[a],{imgPriority:0===a?"high":"auto"})),d(P,{loading:t,priority:0===a?"high":"auto"})]}),i)}))})):d(A,{})}),[n,t]),u=a((function(){var e=null==n?void 0:n.pageLandingUrl;e&&(window.location.href=e)}),[n]);return o("div",e({className:T.hRecoWrapper},{children:[o("div",e({className:T.hRecoSidebar},{children:[d("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"}),d("div",{className:T.connectedLine}),d("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"}),d("div",{className:T.dottedLine}),d("div",{className:T.sidebarCircle})]})),o("div",e({className:T.hRecoMainWrapper},{children:[o("div",e({className:T.hRecoHeader},{children:[t?d("div",e({style:{padding:"4px 0",marginBottom:"16px"}},{children:d("div",{className:T.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):d(p,e({variant:h.P3,className:T.hRecoBookingCallout},{children:null==n?void 0:n.bookingCallOut})),d("div",t?e({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:d("div",{className:T.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})}):e({className:T.hRecoOfferCallout},{children:d(p,e({color:"success",variant:h.B4CAPS},{children:null==n?void 0:n.offerCallOut}))})),t?d("div",e({style:{marginBottom:"24px"}},{children:d("div",{className:T.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):d(p,e({variant:h.HM4,className:T.hRecoCouponCallout},{children:null==n?void 0:n.couponCallOut}))]})),o("div",e({className:T.hRecoContent},{children:[_,d(l,e({disabled:t,onClick:u,variant:c.OUTLINE,className:T.exploreButton},{children:"Book hotel now"}))]}))]}))]}))},q=function(o){var r=o.location,l=o.vertical,c=void 0===l?"AIR":l,p=o.fallbackPageLandingURL,h=i(o,["location","vertical","fallbackPageLandingURL"]),m=n(!0),_=m[0],x=m[1],g=n(),f=g[0],v=g[1],R=a((function(i){var o;return e(e({},i),{bookingCallOut:r?"Since you are flying to ".concat(r,"!"):"Since you are flying for your trip",recommendations:null!==(o=i.recommendations)&&void 0!==o?o:[]})}),[]);return t((function(){s(c,p).then((function(e){var i=R(e);v(i),setTimeout((function(){x(!1)}),10)}))}),[]),d(u,{children:d(E,e({data:f,loading:_},h))})};export{q as HotelRecommendationContainer,E 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,SAAS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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/Card/loader.tsx","../packages/components/HotelRecommendations/src/constants.ts","../packages/components/HotelRecommendations/src/Card/index.tsx","../packages/components/HotelRecommendations/src/Banner/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","CardLoader","_a","loading","_b","priority","_jsxs","__assign","className","concat","styles","children","_jsx","width","height","fetchPriority","src","alt","Card","heroImage","staticData","pricingData","imgPriority","hotelLandingUrl","handleCardClick","useCallback","window","location","href","onClick","mediaUrl","Typography","variant","TypographyVariant","B2","lineClamp","hotelName","color","B3","userRating","P3","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","Banner","CheckIcon","HRecommendationsWidget","data","maxCardsCount","recommendationCards","useMemo","dummyArray","Array","from","length","_","index","recommendations","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","redirectToSRP","url","pageLandingUrl","hRecoWrapper","hRecoSidebar","connectedLine","dottedLine","sidebarCircle","hRecoMainWrapper","hRecoHeader","padding","marginBottom","hRecoHeaderTextLoader","hRecoBookingCallout","bookingCallOut","hRecoOfferCallout","B4CAPS","offerCallOut","hRecoCouponCallout","couponCallOut","hRecoContent","Button","disabled","ButtonVariant","OUTLINE","exploreButton","HRecommendations","vertical","fallbackPageLandingURL","props","__rest","_c","useState","setLoading","_d","setData","formatResponse","recommendationRes","useEffect","getHotelCrossSellRecos","then","formattedData","setTimeout","ThemeProvider"],"mappings":"whBAAA,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,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List":[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.6",
3
+ "version": "1.4.1-beta.7",
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,9 @@
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-utils": "3.6.1-beta.3",
18
- "@cleartrip/ct-platform-lazy-image": "3.3.1-beta.3"
17
+ "@cleartrip/ct-platform-assets": "3.1.1-beta.4",
18
+ "@cleartrip/ct-platform-utils": "3.6.1-beta.4",
19
+ "@cleartrip/ct-platform-types": "3.2.1-beta.30"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "react": ">=16.8.0",