@cleartrip/ct-platform-hotel-recommendations 1.4.1-beta.15 → 1.4.1-beta.16
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/HRecommendations.types.d.ts +1 -1
- package/dist/HRecommendations.types.d.ts.map +1 -1
- package/dist/Widget/index.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 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HRecommendationData } from '@cleartrip/ct-platform-types';
|
|
2
2
|
export interface HotelRecommendationContainerProps {
|
|
3
3
|
tripId: string;
|
|
4
|
-
coupon: string;
|
|
5
4
|
pageName: string;
|
|
6
5
|
location: string;
|
|
7
6
|
vertical?: string;
|
|
@@ -16,6 +15,7 @@ export interface HotelRecommendationWidgetProps extends HotelRecommendationConta
|
|
|
16
15
|
data?: HotelRecommendationWidgetData;
|
|
17
16
|
}
|
|
18
17
|
export interface HotelRecommendationWidgetData {
|
|
18
|
+
couponCode: string;
|
|
19
19
|
offerCallOut: string;
|
|
20
20
|
couponCallOut: string;
|
|
21
21
|
bookingCallOut: string;
|
|
@@ -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,MAAM,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"HRecommendations.types.d.ts","sourceRoot":"","sources":["../packages/components/HotelRecommendations/src/HRecommendations.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAA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AM,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,KAAoD,MAAM,OAAO,CAAC;AAmBzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,
|
|
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,CAkNpE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
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.loading,c=d.tripId,_=d.pageName,p=d.vertical,h=d.location,u=d.maxCardsCount,m=d.departureDate,g=d.fallbackPageLandingURL,f=i.useState(!1),v=f[0],y=f[1],R=i.useMemo((function(){return o.formatFullDateString(m)}),[m]),b=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:u},(function(e,a){return a+1}));return s||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:c,rank:o+1,location:h,pageName:_,vertical:p,coupon:null==l?void 0:l.couponCode,departureDate:R},null===(r=null==l?void 0:l.recommendations)||void 0===r?void 0:r[o],{imgPriority:0===o?"high":"auto"})),a.jsx(L,{loading:s,priority:0===o?"high":"auto"})]}),i)}))})):a.jsx(x,{})}),[l,s]),C=i.useCallback((function(){y(!0)}),[]),j=i.useCallback((function(){var e,a,i,n=null!==(a=null===(e=null==l?void 0:l.recommendations)||void 0===e?void 0:e.length)&&void 0!==a?a:0;o.ravenSDKTrigger("u_ui_action",{vertical:p,a_trip_id:c,page_name:_,action_type:"click",child_product:"hotel",a_destination:h,a_departure_date:R,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:n<u?n:u});var r=null!==(i=null==l?void 0:l.pageLandingUrl)&&void 0!==i?i:g;r&&(window.location.href=r)}),[l]);return i.useEffect((function(){var e,a;if(v&&!s){var i=null!==(a=null===(e=null==l?void 0:l.recommendations)||void 0===e?void 0:e.length)&&void 0!==a?a:0;o.batchRavenEvent("u_impression",{vertical:p,a_trip_id:c,page_name:_,child_product:"hotel",a_destination:h,action_name:"hotel_cross_sell_impression",a_departure_date:o.formatFullDateString(m),result_count:i<u?i:u})}}),[s,l,v]),a.jsx(r.IntersectionObserverHOC,e.__assign({onIntersection:C},{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:[s?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})),s?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}))})),s?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:[b,a.jsx(n.Button,e.__assign({disabled:s,onClick:j,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/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,IAA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"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","couponCode","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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2BX,OAAAW,EAAW,KACtC,qCACNwD,gBAAsD,QAArCvE,EAAA0H,EAAkBnD,uBAAmB,IAAAvE,EAAAA,EAAA,IAE7D,GACD,IAiBJ,OAdA2F,EAAAA,WAAU,WACNgC,EAAAA,uBAAuB7G,EAAUgD,GAAwB8D,MACrD,SAAChE,GACG,IAAMiE,EAAgBJ,EAAe7D,GACrC4D,EAAQK,GAGRC,YAAW,WACPR,GAAW,EACd,GAAE,GACP,GAEP,GAAE,IAGC/H,MAACwI,EAAAA,cACG,CAAAzI,SAAAC,EAAAA,IAACoE,EACGxE,EAAAA,SAAA,CAAAyE,KAAMA,EACN3D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACV8C,cAAeA,EACfC,uBAAwBA,GACpBqD,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 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};
|
|
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 n,useMemo as t,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,n=o.priority,t=void 0===n?"low":n;return i("div",e({className:"".concat(k," ").concat(T," ").concat(d?"":I)},{children:[a("img",{width:200,height:104,fetchPriority:t,src:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto/offermgmt/images/banner/Image-placholder-1.jpg",alt:"Hotel recommendation placeholder"}),i("div",e({className: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 n=o.id,t=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:n,a_trip_id:_,h_hotel_rank:t,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:n,a_trip_id:_,h_hotel_rank:t,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"})}),[n]);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.loading,f=o.tripId,v=o.pageName,R=o.vertical,b=o.location,C=o.maxCardsCount,y=o.departureDate,N=o.fallbackPageLandingURL,w=n(!1),k=w[0],B=w[1],W=t((function(){return _(y)}),[y]),P=t((function(){var o,d,n=null!==(d=null===(o=null==p?void 0:p.recommendations)||void 0===o?void 0:o.length)&&void 0!==d?d:0,t=Array.from({length:C},(function(e,o){return o+1}));return h||n>=2?a("div",e({className:K.hRecoCardsWrapper},{children:t.map((function(o,d){var n,t;return i("div",e({className:K.hRecoCardWrapper},{children:[(null===(n=null==p?void 0:p.recommendations)||void 0===n?void 0:n[d])&&a(F,e({tripId:f,rank:d+1,location:b,pageName:v,vertical:R,coupon:null==p?void 0:p.couponCode,departureDate:W},null===(t=null==p?void 0:p.recommendations)||void 0===t?void 0:t[d],{imgPriority:0===d?"high":"auto"})),a(q,{loading:h,priority:0===d?"high":"auto"})]}),o)}))})):a(L,{})}),[p,h]),H=d((function(){B(!0)}),[]),T=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:R,a_trip_id:f,page_name:v,action_type:"click",child_product:"hotel",a_destination:b,a_departure_date:W,personalised_callout:"Book hotel now",action_name:"hotel_cross_sell_impression",result_count:a<C?a:C});var d=null!==(i=null==p?void 0:p.pageLandingUrl)&&void 0!==i?i:N;d&&(window.location.href=d)}),[p]);return r((function(){var e,o;if(k&&!h){var i=null!==(o=null===(e=null==p?void 0:p.recommendations)||void 0===e?void 0:e.length)&&void 0!==o?o:0;c("u_impression",{vertical:R,a_trip_id:f,page_name:v,child_product:"hotel",a_destination:b,action_name:"hotel_cross_sell_impression",a_departure_date:_(y),result_count:i<C?i:C})}}),[h,p,k]),a(u,e({onIntersection:H},{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:[h?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",h?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}))})),h?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:[P,a(s,e({disabled:h,onClick:T,variant:m.OUTLINE,className:K.exploreButton},{children:"Book hotel now"}))]}))]}))]}))}))},D=function(i){var t=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=n(!0),g=x[0],f=x[1],R=n(),b=R[0],C=R[1],y=d((function(o){var i;return e(e({},o),{bookingCallOut:t?"Since you are flying to ".concat(t,"!"):"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:t,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/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,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,6zBChBA,IAAMe,EAA4B,WAC9B,OACIC,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GAAkB,CAAAC,SAAA,CAC9BJ,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GAA8B,CAAAC,SAAA,CAC1CJ,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GACZ,CAAAC,SAAA,CAAAC,EAACC,EAAS,CAACJ,UAAWC,IACtBE,EAACE,KAAWC,QAASC,EAAkBC,IAAE,CAAAN,SAAA,8CAI7CJ,EAAA,MAAAC,EAAA,CAAKC,UAAWC,GAAyB,CAAAC,SAAA,CACrCC,EAACC,EAAU,CAAAJ,UAAWC,IACtBE,EAACE,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zC9D,EAAOoH,EAAA,GAAEC,EAAUD,EAAA,GACpBE,EAAkBxD,IAAjBH,EAAI2D,EAAA,GAAEC,EAAOD,EAAA,GAIdE,EAAiBjG,GACnB,SACIkG,SAEA,OAAAtI,EAAAA,EAAA,CAAA,EACOsI,GAAiB,CACpBpB,eAAgBvF,EACV,2BAA2BX,OAAAW,EAAW,KACtC,qCACNwD,gBAAsD,QAArCvE,EAAA0H,EAAkBnD,uBAAmB,IAAAvE,EAAAA,EAAA,IAE7D,GACD,IAiBJ,OAdA0F,GAAU,WACNiC,EAAuB7G,EAAUgD,GAAwB8D,MACrD,SAAChE,GACG,IAAMiE,EAAgBJ,EAAe7D,GACrC4D,EAAQK,GAGRC,YAAW,WACPR,GAAW,EACd,GAAE,GACP,GAEP,GAAE,IAGC9H,EAACuI,EACG,CAAAxI,SAAAC,EAACmE,EACGvE,EAAA,CAAAwE,KAAMA,EACN3D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACV8C,cAAeA,EACfC,uBAAwBA,GACpBqD,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","couponCode","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,G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EP,GAAE,IAGC/H,EAACwI,EACG,CAAAzI,SAAAC,EAACmE,EACGvE,EAAA,CAAAwE,KAAMA,EACN3D,QAASA,EACTe,SAAUA,EACVF,SAAUA,EACVC,SAAUA,EACV8C,cAAeA,EACfC,uBAAwBA,GACpBsD,KAIpB","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-platform-hotel-recommendations",
|
|
3
|
-
"version": "1.4.1-beta.
|
|
3
|
+
"version": "1.4.1-beta.16",
|
|
4
4
|
"description": "Hotel Recommendations Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-hotel-recommendations.cjs.js",
|
|
@@ -14,10 +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-
|
|
19
|
-
"@cleartrip/ct-platform-
|
|
20
|
-
"@cleartrip/ct-platform-types": "3.2.1-beta.
|
|
17
|
+
"@cleartrip/ct-platform-assets": "3.1.1-beta.13",
|
|
18
|
+
"@cleartrip/ct-platform-io-hoc": "3.0.0-beta.47",
|
|
19
|
+
"@cleartrip/ct-platform-utils": "3.7.1-beta.1",
|
|
20
|
+
"@cleartrip/ct-platform-types": "3.2.1-beta.39"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.0",
|