@cleartrip/ct-platform-hotel-recommendations 1.4.1-beta.14 → 1.4.1-beta.15
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.
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/HRecommendations.d.ts.map +1 -1
- package/dist/HRecommendations.types.d.ts +14 -6
- package/dist/HRecommendations.types.d.ts.map +1 -1
- package/dist/Widget/index.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/ct-platform-hotel-recommendations.cjs.js +1 -1
- package/dist/ct-platform-hotel-recommendations.cjs.js.map +1 -1
- package/dist/ct-platform-hotel-recommendations.esm.js +1 -1
- package/dist/ct-platform-hotel-recommendations.esm.js.map +1 -1
- package/package.json +5 -4
package/dist/Card/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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,CA6G5C,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HRecommendations.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,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,CAwDjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { HRecommendationData } from '@cleartrip/ct-platform-types';
|
|
2
2
|
export interface HotelRecommendationContainerProps {
|
|
3
|
+
tripId: string;
|
|
4
|
+
coupon: string;
|
|
5
|
+
pageName: string;
|
|
3
6
|
location: string;
|
|
4
7
|
vertical?: string;
|
|
8
|
+
departureDate: string;
|
|
5
9
|
maxCardsCount?: number;
|
|
6
10
|
fallbackPageLandingURL: string;
|
|
7
11
|
}
|
|
8
|
-
export interface HotelRecommendationWidgetProps {
|
|
12
|
+
export interface HotelRecommendationWidgetProps extends HotelRecommendationContainerProps {
|
|
13
|
+
vertical: string;
|
|
9
14
|
loading?: boolean;
|
|
10
|
-
|
|
11
|
-
checkInDate?: string;
|
|
12
|
-
checkOutDate?: string;
|
|
13
|
-
maxCardsCount?: number;
|
|
14
|
-
locationAirport?: string;
|
|
15
|
+
maxCardsCount: number;
|
|
15
16
|
data?: HotelRecommendationWidgetData;
|
|
16
17
|
}
|
|
17
18
|
export interface HotelRecommendationWidgetData {
|
|
@@ -45,6 +46,13 @@ export interface HRecommendationLoaderProps {
|
|
|
45
46
|
priority?: 'high' | 'low' | 'auto' | undefined;
|
|
46
47
|
}
|
|
47
48
|
export interface HRecommendationCardProps extends HRecommendationData {
|
|
49
|
+
rank: number;
|
|
50
|
+
tripId: string;
|
|
51
|
+
coupon: string;
|
|
52
|
+
pageName: string;
|
|
53
|
+
vertical: string;
|
|
54
|
+
location: string;
|
|
55
|
+
departureDate: string;
|
|
48
56
|
imgPriority?: 'high' | 'low' | 'auto' | undefined;
|
|
49
57
|
}
|
|
50
58
|
//# 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,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,WAAW,iCAAiC;IAC9C,
|
|
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,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,IAAI,CAAC,EAAE,6BAA6B,CAAC;CACxC;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,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/HotelRecommendations/src/Widget/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,CAmNpE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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;
|
|
5
6
|
export declare const CARD_IMG_BASE = "https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/";
|
|
6
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";
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -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;AACjC,eAAO,MAAM,aAAa,iFACwD,CAAC;AACnF,eAAO,MAAM,eAAe,yGAC8E,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"),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;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(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:"".concat("https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/").concat(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;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: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{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.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;
|
|
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"),r=require("@cleartrip/ct-platform-io-hoc"),t=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;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(t.Typography,e.__assign({variant:t.TypographyVariant.P3},{children:"Free cancellation till check-in time"}))]})),a.jsxs("div",e.__assign({className:h},{children:[a.jsx(d.CheckIcon,{className:_}),a.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),a.jsxs("div",e.__assign({className:h},{children:[a.jsx(d.CheckIcon,{className:_}),a.jsx(t.Typography,e.__assign({variant:t.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",f="index-module_hRecoTitleRow__97dd5",v="index-module_hRecoRatingWrapper__mGwia",y="index-module_hRecoPriceWrapper__49o5u",R="index-module_hRecoLoaderWrapper__KXG-6",b="index-module_hidden__CdBrr",C="index-module_hRecoLoaderGradient__c7400",j="index-module_hRecoLoaderTitleRow__cWktU",N="index-module_hRecoLoaderTitle__-Onou",k="index-module_hRecoLoaderRating__Qy5b-",T="index-module_hRecoLoaderSubtitle__l1X3H",w="index-module_hRecoLoaderPricing__KsQ-o";s(".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;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 L=function(i){var o=i.loading,n=i.priority,r=void 0===n?"low":n;return a.jsxs("div",e.__assign({className:"".concat(m," ").concat(R," ").concat(o?"":b)},{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"}),a.jsxs("div",e.__assign({className:g},{children:[a.jsxs("div",e.__assign({className:j},{children:[a.jsx("div",{className:"".concat(N," ").concat(C)}),a.jsx("div",{className:"".concat(k," ").concat(C)})]})),a.jsx("div",{className:"".concat(T," ").concat(C)}),a.jsx("div",{className:"".concat(w," ").concat(C)})]}))]}))},B=function(n){var d=n.id,l=n.rank,s=n.coupon,c=n.tripId,_=n.vertical,p=n.location,h=n.pageName,u=n.heroImage,x=n.staticData,R=n.pricingData,b=n.imgPriority,C=n.departureDate,j=n.hotelLandingUrl,N=i.useCallback((function(){o.ravenSDKTrigger("u_ui_action",{vertical:_,h_hotel_id:d,a_trip_id:c,h_hotel_rank:l,page_name:h,child_product:"hotel",a_destination:p,ct_coupon_applied:s,a_departure_date:C,h_hotel_name:null==x?void 0:x.hotelName,action_name:"hotel_cross_sell_click",personalised_callout:"hotel_card_click"}),j&&(window.location.href=j)}),[j]),k=i.useCallback((function(){o.batchRavenEvent("u_impression",{vertical:_,h_hotel_id:d,a_trip_id:c,h_hotel_rank:l,page_name:h,child_product:"hotel",a_destination:p,ct_coupon_applied:s,a_departure_date:C,h_hotel_name:null==x?void 0:x.hotelName,action_name:"hotel_cross_sell_impression",personalised_callout:"hotel_card_impression"})}),[d]);return a.jsx(r.IntersectionObserverHOC,e.__assign({onIntersection:k},{children:a.jsxs("div",e.__assign({className:m,onClick:N},{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:b}),a.jsxs("div",e.__assign({className:g},{children:[a.jsxs("div",e.__assign({className:f},{children:[a.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.B2,lineClamp:1},{children:null==x?void 0:x.hotelName})),a.jsx("div",e.__assign({className:v},{children:a.jsx(t.Typography,e.__assign({color:"link",variant:t.TypographyVariant.B3},{children:null==x?void 0:x.userRating}))}))]})),a.jsxs(t.Typography,e.__assign({variant:t.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:y},{children:[a.jsxs(t.Typography,e.__assign({variant:t.TypographyVariant.HM4},{children:[o.formatCurrency(null==R?void 0:R.perNightPrice)," "]})),a.jsx(t.Typography,e.__assign({isStriked:!0,color:"subheading",variant:t.TypographyVariant.B4},{children:o.formatCurrency(null==R?void 0:R.slashedPrice,!1)})),a.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.B4,color:"subheading"},{children:" / night"}))]}))]}))}))},W={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:268px;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: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 P=function(d){var l=d.data,s=d.coupon,c=d.loading,_=d.tripId,p=d.pageName,h=d.vertical,u=d.location,m=d.maxCardsCount,g=d.departureDate,f=d.fallbackPageLandingURL,v=i.useState(!1),y=v[0],R=v[1],b=i.useMemo((function(){return o.formatFullDateString(g)}),[g]),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,r=Array.from({length:m},(function(e,a){return a+1}));return c||n>=2?a.jsx("div",e.__assign({className:W.hRecoCardsWrapper},{children:r.map((function(i,o){var n,r;return a.jsxs("div",e.__assign({className:W.hRecoCardWrapper},{children:[(null===(n=null==l?void 0:l.recommendations)||void 0===n?void 0:n[o])&&a.jsx(B,e.__assign({tripId:_,coupon:s,rank:o+1,location:u,pageName:p,vertical:h,departureDate:b},null===(r=null==l?void 0:l.recommendations)||void 0===r?void 0:r[o],{imgPriority:0===o?"high":"auto"})),a.jsx(L,{loading:c,priority:0===o?"high":"auto"})]}),i)}))})):a.jsx(x,{})}),[l,c]),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:h,a_trip_id:_,page_name:p,action_type:"click",child_product:"hotel",a_destination:u,a_departure_date:b,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:n<m?n:m});var r=null!==(i=null==l?void 0:l.pageLandingUrl)&&void 0!==i?i:f;r&&(window.location.href=r)}),[l]);return i.useEffect((function(){var e,a;if(y&&!c){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:h,a_trip_id:_,page_name:p,child_product:"hotel",a_destination:u,action_name:"hotel_cross_sell_impression",a_departure_date:o.formatFullDateString(g),result_count:i<m?i:m})}}),[c,l,y]),a.jsx(r.IntersectionObserverHOC,e.__assign({onIntersection:j},{children:a.jsxs("div",e.__assign({className:W.hRecoWrapper},{children:[a.jsxs("div",e.__assign({className:W.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:W.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:W.dottedLine}),a.jsx("div",{className:W.sidebarCircle})]})),a.jsxs("div",e.__assign({className:W.hRecoMainWrapper},{children:[a.jsxs("div",e.__assign({className:W.hRecoHeader},{children:[c?a.jsx("div",e.__assign({style:{padding:"4px 0",marginBottom:"16px"}},{children:a.jsx("div",{className:W.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):a.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.P3,className:W.hRecoBookingCallout},{children:null==l?void 0:l.bookingCallOut})),c?a.jsx("div",e.__assign({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:a.jsx("div",{className:W.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})})):a.jsx("div",e.__assign({className:W.hRecoOfferCallout},{children:a.jsx(t.Typography,e.__assign({color:"success",variant:t.TypographyVariant.B4CAPS},{children:null==l?void 0:l.offerCallOut}))})),c?a.jsx("div",e.__assign({style:{marginBottom:"24px"}},{children:a.jsx("div",{className:W.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):a.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.HM4,className:W.hRecoCouponCallout},{children:null==l?void 0:l.couponCallOut}))]})),a.jsxs("div",e.__assign({className:W.hRecoContent},{children:[C,a.jsx(n.Button,e.__assign({disabled:c,onClick:N,variant:n.ButtonVariant.OUTLINE,className:W.exploreButton},{children:"Book hotel now"}))]}))]}))]}))}))};exports.HotelRecommendationContainer=function(n){var r=n.location,t=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(),f=g[0],v=g[1],y=i.useCallback((function(a){var i;return e.__assign(e.__assign({},a),{bookingCallOut:r?"Since you are flying to ".concat(r,"!"):"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=y(e);v(a),setTimeout((function(){m(!1)}),10)}))}),[]),a.jsx(l.ThemeProvider,{children:a.jsx(P,e.__assign({data:f,loading:x,pageName:t,vertical:s,location:r,maxCardsCount:p,fallbackPageLandingURL:c},h))})},exports.HotelRecommendationsWidget=P;
|
|
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/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","ThemeProvider"],"mappings":"ySAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,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AAWE,EAAO6E,oBAAkB,CAAA5E,SAEnC0C,eAAAA,EAAMmC,qBAgBnBnF,OAAK,MAAAE,EAAAA,SAAA,CAAAC,UAAWE,EAAO+E,cAClB,CAAA9E,SAAA,CAAA4C,EAED3C,MAAC8E,EAAAA,OAAMnF,EAAAA,SAAA,CACHoF,SAAUzF,EACV4B,QAASuC,EACTpC,QAAS2D,EAAaA,cAACC,QACvBrF,UAAWE,EAAOoF,eAAa,CAAAnF,SAAA,+BAQvD,uCCnJsE,SAACV,GACnE,IAAA2B,EAAQ3B,EAAA2B,SACRzB,EAAgBF,EAAA8F,SAAhBA,OAAW,IAAA5F,EAAA,MAAKA,EAChB6F,EAAsB/F,EAAA+F,uBACnBC,EAAKC,EAAAA,OAAAjG,EAJ2D,kDAM7DkG,EAAwBC,EAAAA,UAAkB,GAAzClG,EAAOiG,EAAA,GAAEE,EAAUF,EAAA,GACpBG,EAAkBF,aAAjB/C,EAAIiD,EAAA,GAAEC,EAAOD,EAAA,GAIdE,EAAiB9E,eACnB,SACI+E,SAEA,OAAAlG,EAAAA,SAAAA,EAAAA,SAAA,CAAA,EACOkG,GAAiB,CACpBtB,eAAgBvD,EACV,2BAA2BnB,OAAAmB,EAAW,KACtC,qCACNmC,gBAAsD,QAArC9D,EAAAwG,EAAkB1C,uBAAmB,IAAA9D,EAAAA,EAAA,IAE7D,GACD,IAiBJ,OAdAyG,EAAAA,WAAU,WACNC,EAAAA,uBAAuBZ,EAAUC,GAAwBY,MACrD,SAACvD,GACG,IAAMwD,EAAgBL,EAAenD,GACrCkD,EAAQM,GAGRC,YAAW,WACPT,GAAW,EACd,GAAE,GACP,GAEP,GAAE,IAGCzF,EAAAA,IAACmG,EAAAA,wBACGnG,EAACC,IAAAuC,cACGC,KAAMA,EACNnD,QAASA,GACL+F,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","id","rank","coupon","tripId","vertical","location","pageName","heroImage","staticData","pricingData","imgPriority","departureDate","hotelLandingUrl","handleCardClick","useCallback","ravenSDKTrigger","h_hotel_id","a_trip_id","h_hotel_rank","page_name","child_product","a_destination","ct_coupon_applied","a_departure_date","h_hotel_name","hotelName","action_name","personalised_callout","window","href","sendImpressionEvent","batchRavenEvent","IntersectionObserverHOC","onIntersection","onClick","mediaUrl","B2","lineClamp","color","B3","userRating","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","HRecommendationsWidget","data","maxCardsCount","fallbackPageLandingURL","useState","widgetIntersected","setWidgetIntersected","_departureDate","useMemo","formatFullDateString","recommendationCards","resultCount","recommendations","length","dummyArray","Array","from","_","index","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","handleIntersection","redirectToSRP","action_type","result_count","url","_c","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","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,6zBChBA,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,G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AAAA,EAAA,IAE7D,GACD,IAiBJ,OAdA0F,EAAAA,WAAU,WACNgC,EAAAA,uBAAuB5G,EAAUgD,GAAwB6D,MACrD,SAAC/D,GACG,IAAMgE,EAAgBJ,EAAe5D,GACrC2D,EAAQK,GAGRC,YAAW,WACPR,GAAW,EACd,GAAE,GACP,GAEP,GAAE,IAGC9H,MAACuI,EAAAA,cACG,CAAAxI,SAAAC,EAAAA,IAACoE,EACGxE,EAAAA,SAAA,CAAAyE,KAAMA,EACN3D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACV8C,cAAeA,EACfC,uBAAwBA,GACpBoD,KAIpB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__rest as o}from"tslib";import{jsxs as i,jsx as d}from"react/jsx-runtime";import{useCallback as a,useMemo as n,useState as r,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 s,getHotelCrossSellRecos as m}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,o){void 0===o&&(o={});var i=o.insertAt;if(e&&"undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&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;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 P=function(o){var a=o.loading,n=o.priority,r=void 0===n?"low":n;return i("div",e({className:"".concat(g," ").concat(y," ").concat(a?"":C)},{children:[d("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("div",e({className:f},{children:[i("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(o){var n=o.heroImage,r=o.staticData,t=o.pricingData,l=o.imgPriority,c=o.hotelLandingUrl,m=a((function(){c&&(window.location.href=c)}),[c]);return i("div",e({className:g,onClick:m},{children:[d("img",{width:200,height:104,src:"".concat("https://fastui.cltpstatic.com/image/upload/t_h_seo_srp/hotels/places/hotels/").concat(n.mediaUrl),fetchPriority:l}),i("div",e({className:f},{children:[i("div",e({className:v},{children:[d(p,e({variant:h.B2,lineClamp:1},{children:null==r?void 0:r.hotelName})),d("div",e({className:R},{children:d(p,e({color:"link",variant:h.B3},{children:null==r?void 0:r.userRating}))}))]})),i(p,e({variant:h.P3,lineClamp:1,color:"subheading"},{children:[null==r?void 0:r.starRating," stars hotel in"," ",null==r?void 0:r.locality]}))]})),i("div",e({className:b},{children:[i(p,e({variant:h.HM4},{children:[s(null==t?void 0:t.perNightPrice)," "]})),d(p,e({isStriked:!0,color:"subheading",variant:h.B4},{children:s(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;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: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{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 A=function(){return i("div",e({className:U},{children:[i("div",e({className:S},{children:[i("div",e({className:G},{children:[d(_,{className:O}),d(p,e({variant:h.P3},{children:"Free cancellation till check-in time"}))]})),i("div",e({className:G},{children:[d(_,{className:O}),d(p,e({variant:h.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),i("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(o){var r=o.data,t=o.loading,s=o.maxCardsCount,m=void 0===s?5:s,_=n((function(){var o,a=Array.from({length:m},(function(e,o){return o+1}));return t||(null===(o=null==r?void 0:r.recommendations)||void 0===o?void 0:o.length)?d("div",e({className:T.hRecoCardsWrapper},{children:a.map((function(o,a){var n,l;return i("div",e({className:T.hRecoCardWrapper},{children:[(null===(n=null==r?void 0:r.recommendations)||void 0===n?void 0:n[a])&&d(H,e({},null===(l=null==r?void 0:r.recommendations)||void 0===l?void 0:l[a],{imgPriority:0===a?"high":"auto"})),d(P,{loading:t,priority:0===a?"high":"auto"})]}),o)}))})):d(A,{})}),[r,t]),u=a((function(){var e=null==r?void 0:r.pageLandingUrl;e&&(window.location.href=e)}),[r]);return i("div",e({className:T.hRecoWrapper},{children:[i("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})]})),i("div",e({className:T.hRecoMainWrapper},{children:[i("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==r?void 0:r.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==r?void 0:r.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==r?void 0:r.couponCallOut}))]})),i("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(i){var n=i.location,l=i.vertical,c=void 0===l?"AIR":l,p=i.fallbackPageLandingURL,h=o(i,["location","vertical","fallbackPageLandingURL"]),s=r(!0),_=s[0],x=s[1],g=r(),f=g[0],v=g[1],R=a((function(o){var i;return e(e({},o),{bookingCallOut:n?"Since you are flying to ".concat(n,"!"):"Since you are flying for your trip",recommendations:null!==(i=o.recommendations)&&void 0!==i?i:[]})}),[]);return t((function(){m(c,p).then((function(e){var o=R(e);v(o),setTimeout((function(){x(!1)}),10)}))}),[]),d(u,{children:d(E,e({data:f,loading:_},h))})};export{q as HotelRecommendationContainer,E as HotelRecommendationsWidget};
|
|
1
|
+
import{__assign as e,__rest as o}from"tslib";import{jsxs as i,jsx as a}from"react/jsx-runtime";import{useCallback as d,useState as t,useMemo as n,useEffect as r}from"react";import{ravenSDKTrigger as l,batchRavenEvent as c,formatCurrency as p,formatFullDateString as _,getHotelCrossSellRecos as h}from"@cleartrip/ct-platform-utils";import{Button as s,ButtonVariant as m}from"@cleartrip/ct-design-button";import{IntersectionObserverHOC as u}from"@cleartrip/ct-platform-io-hoc";import{Typography as x,TypographyVariant as g}from"@cleartrip/ct-design-typography";import{CheckIcon as f}from"@cleartrip/ct-platform-assets";import{ThemeProvider as v}from"@cleartrip/ct-design-theme";function R(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 b="index-module_hRecoBanner__CyUB8",C="index-module_hRecoBannerIcon__cFmbk",y="index-module_hRecoBannerTextsWrapper__0P-pK",N="index-module_hRecoBannerTextRow__qbE8k",w="index-module_hRecoBannerImg__eC0hA";R(".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{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 L=function(){return i("div",e({className:b},{children:[i("div",e({className:y},{children:[i("div",e({className:N},{children:[a(f,{className:C}),a(x,e({variant:g.P3},{children:"Free cancellation till check-in time"}))]})),i("div",e({className:N},{children:[a(f,{className:C}),a(x,e({variant:g.P3},{children:"Exclusive member discount for Flipkart & Myntra"}))]})),i("div",e({className:N},{children:[a(f,{className:C}),a(x,e({variant:g.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:w})]}))},k="index-module_hRecoCardWrapper__FhtJN",B="index-module_hRecoInfoWrapper__4EAyB",W="index-module_hRecoTitleRow__97dd5",P="index-module_hRecoRatingWrapper__mGwia",H="index-module_hRecoPriceWrapper__49o5u",T="index-module_hRecoLoaderWrapper__KXG-6",I="index-module_hidden__CdBrr",U="index-module_hRecoLoaderGradient__c7400",O="index-module_hRecoLoaderTitleRow__cWktU",S="index-module_hRecoLoaderTitle__-Onou",G="index-module_hRecoLoaderRating__Qy5b-",A="index-module_hRecoLoaderSubtitle__l1X3H",E="index-module_hRecoLoaderPricing__KsQ-o";R(".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;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 q=function(o){var d=o.loading,t=o.priority,n=void 0===t?"low":t;return i("div",e({className:"".concat(k," ").concat(T," ").concat(d?"":I)},{children:[a("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"}),i("div",e({className:B},{children:[i("div",e({className:O},{children:[a("div",{className:"".concat(S," ").concat(U)}),a("div",{className:"".concat(G," ").concat(U)})]})),a("div",{className:"".concat(A," ").concat(U)}),a("div",{className:"".concat(E," ").concat(U)})]}))]}))},F=function(o){var t=o.id,n=o.rank,r=o.coupon,_=o.tripId,h=o.vertical,s=o.location,m=o.pageName,f=o.heroImage,v=o.staticData,R=o.pricingData,b=o.imgPriority,C=o.departureDate,y=o.hotelLandingUrl,N=d((function(){l("u_ui_action",{vertical:h,h_hotel_id:t,a_trip_id:_,h_hotel_rank:n,page_name:m,child_product:"hotel",a_destination:s,ct_coupon_applied:r,a_departure_date:C,h_hotel_name:null==v?void 0:v.hotelName,action_name:"hotel_cross_sell_click",personalised_callout:"hotel_card_click"}),y&&(window.location.href=y)}),[y]),w=d((function(){c("u_impression",{vertical:h,h_hotel_id:t,a_trip_id:_,h_hotel_rank:n,page_name:m,child_product:"hotel",a_destination:s,ct_coupon_applied:r,a_departure_date:C,h_hotel_name:null==v?void 0:v.hotelName,action_name:"hotel_cross_sell_impression",personalised_callout:"hotel_card_impression"})}),[t]);return a(u,e({onIntersection:w},{children:i("div",e({className:k,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(f.mediaUrl),fetchPriority:b}),i("div",e({className:B},{children:[i("div",e({className:W},{children:[a(x,e({variant:g.B2,lineClamp:1},{children:null==v?void 0:v.hotelName})),a("div",e({className:P},{children:a(x,e({color:"link",variant:g.B3},{children:null==v?void 0:v.userRating}))}))]})),i(x,e({variant:g.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:H},{children:[i(x,e({variant:g.HM4},{children:[p(null==R?void 0:R.perNightPrice)," "]})),a(x,e({isStriked:!0,color:"subheading",variant:g.B4},{children:p(null==R?void 0:R.slashedPrice,!1)})),a(x,e({variant:g.B4,color:"subheading"},{children:" / night"}))]}))]}))}))},K={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"};R(".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;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: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 Y=function(o){var p=o.data,h=o.coupon,f=o.loading,v=o.tripId,R=o.pageName,b=o.vertical,C=o.location,y=o.maxCardsCount,N=o.departureDate,w=o.fallbackPageLandingURL,k=t(!1),B=k[0],W=k[1],P=n((function(){return _(N)}),[N]),H=n((function(){var o,d,t=null!==(d=null===(o=null==p?void 0:p.recommendations)||void 0===o?void 0:o.length)&&void 0!==d?d:0,n=Array.from({length:y},(function(e,o){return o+1}));return f||t>=2?a("div",e({className:K.hRecoCardsWrapper},{children:n.map((function(o,d){var t,n;return i("div",e({className:K.hRecoCardWrapper},{children:[(null===(t=null==p?void 0:p.recommendations)||void 0===t?void 0:t[d])&&a(F,e({tripId:v,coupon:h,rank:d+1,location:C,pageName:R,vertical:b,departureDate:P},null===(n=null==p?void 0:p.recommendations)||void 0===n?void 0:n[d],{imgPriority:0===d?"high":"auto"})),a(q,{loading:f,priority:0===d?"high":"auto"})]}),o)}))})):a(L,{})}),[p,f]),T=d((function(){W(!0)}),[]),I=d((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;l("u_ui_action",{vertical:b,a_trip_id:v,page_name:R,action_type:"click",child_product:"hotel",a_destination:C,a_departure_date:P,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:a<y?a:y});var d=null!==(i=null==p?void 0:p.pageLandingUrl)&&void 0!==i?i:w;d&&(window.location.href=d)}),[p]);return r((function(){var e,o;if(B&&!f){var i=null!==(o=null===(e=null==p?void 0:p.recommendations)||void 0===e?void 0:e.length)&&void 0!==o?o:0;c("u_impression",{vertical:b,a_trip_id:v,page_name:R,child_product:"hotel",a_destination:C,action_name:"hotel_cross_sell_impression",a_departure_date:_(N),result_count:i<y?i:y})}}),[f,p,B]),a(u,e({onIntersection:T},{children:i("div",e({className:K.hRecoWrapper},{children:[i("div",e({className:K.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:K.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:K.dottedLine}),a("div",{className:K.sidebarCircle})]})),i("div",e({className:K.hRecoMainWrapper},{children:[i("div",e({className:K.hRecoHeader},{children:[f?a("div",e({style:{padding:"4px 0",marginBottom:"16px"}},{children:a("div",{className:K.hRecoHeaderTextLoader,style:{height:"8px",width:"170px"}})})):a(x,e({variant:g.P3,className:K.hRecoBookingCallout},{children:null==p?void 0:p.bookingCallOut})),a("div",f?e({style:{padding:"8px 0 6px",marginBottom:"8px"}},{children:a("div",{className:K.hRecoHeaderTextLoader,style:{height:"18px",width:"270px"}})}):e({className:K.hRecoOfferCallout},{children:a(x,e({color:"success",variant:g.B4CAPS},{children:null==p?void 0:p.offerCallOut}))})),f?a("div",e({style:{marginBottom:"24px"}},{children:a("div",{className:K.hRecoHeaderTextLoader,style:{height:"16px",width:"260px"}})})):a(x,e({variant:g.HM4,className:K.hRecoCouponCallout},{children:null==p?void 0:p.couponCallOut}))]})),i("div",e({className:K.hRecoContent},{children:[H,a(s,e({disabled:f,onClick:I,variant:m.OUTLINE,className:K.exploreButton},{children:"Book hotel now"}))]}))]}))]}))}))},D=function(i){var n=i.location,l=i.pageName,c=i.vertical,p=void 0===c?"AIR":c,_=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],R=t(),b=R[0],C=R[1],y=d((function(o){var i;return e(e({},o),{bookingCallOut:n?"Since you are flying to ".concat(n,"!"):"Since you are flying for your trip",recommendations:null!==(i=o.recommendations)&&void 0!==i?i:[]})}),[]);return r((function(){h(p,_).then((function(e){var o=y(e);C(o),setTimeout((function(){f(!1)}),10)}))}),[]),a(v,{children:a(Y,e({data:b,loading:g,pageName:l,vertical:p,location:n,maxCardsCount:m,fallbackPageLandingURL:_},u))})};export{D as HotelRecommendationContainer,Y 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/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,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BvD,EACV,2BAA2BlB,OAAAkB,EAAW,KACtC,qCACNmC,gBAAsD,QAArC5D,EAAAuG,EAAkB3C,uBAAmB,IAAA5D,EAAAA,EAAA,IAE7D,GACD,IAiBJ,OAdAwG,GAAU,WACNC,EAAuBZ,EAAUC,GAAwBY,MACrD,SAACxD,GACG,IAAMyD,EAAgBL,EAAepD,GACrCmD,EAAQM,GAGRC,YAAW,WACPT,GAAW,EACd,GAAE,GACP,GAEP,GAAE,IAGCzF,EAACmG,YACGnG,EAACuC,KACGC,KAAMA,EACNjD,QAASA,GACL8F,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","id","rank","coupon","tripId","vertical","location","pageName","heroImage","staticData","pricingData","imgPriority","departureDate","hotelLandingUrl","handleCardClick","useCallback","ravenSDKTrigger","h_hotel_id","a_trip_id","h_hotel_rank","page_name","child_product","a_destination","ct_coupon_applied","a_departure_date","h_hotel_name","hotelName","action_name","personalised_callout","window","href","sendImpressionEvent","batchRavenEvent","IntersectionObserverHOC","onIntersection","onClick","mediaUrl","B2","lineClamp","color","B3","userRating","starRating","locality","HM4","formatCurrency","perNightPrice","isStriked","B4","slashedPrice","HRecommendationsWidget","data","maxCardsCount","fallbackPageLandingURL","useState","widgetIntersected","setWidgetIntersected","_departureDate","useMemo","formatFullDateString","recommendationCards","resultCount","recommendations","length","dummyArray","Array","from","_","index","hRecoCardsWrapper","map","val","hRecoCardWrapper","RecommendationCard","handleIntersection","redirectToSRP","action_type","result_count","url","_c","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","setData","formatResponse","recommendationRes","getHotelCrossSellRecos","then","formattedData","setTimeout","ThemeProvider"],"mappings":"oqBAAA,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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endations",
|
|
3
|
-
"version": "1.4.1-beta.
|
|
3
|
+
"version": "1.4.1-beta.15",
|
|
4
4
|
"description": "Hotel Recommendations Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-hotel-recommendations.cjs.js",
|
|
@@ -14,9 +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-assets": "3.1.1-beta.
|
|
18
|
-
"@cleartrip/ct-platform-utils": "3.
|
|
19
|
-
"@cleartrip/ct-platform-
|
|
17
|
+
"@cleartrip/ct-platform-assets": "3.1.1-beta.12",
|
|
18
|
+
"@cleartrip/ct-platform-utils": "3.7.1-beta.0",
|
|
19
|
+
"@cleartrip/ct-platform-io-hoc": "3.0.0-beta.46",
|
|
20
|
+
"@cleartrip/ct-platform-types": "3.2.1-beta.38"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
22
23
|
"react": ">=16.8.0",
|