@cleartrip/ct-platform-book-zero-trip-widget 1.0.6-beta.20 → 1.0.6-beta.21

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.
@@ -1,4 +1,4 @@
1
1
  import { IBookZeroTripCardProps } from '@cleartrip/ct-platform-types';
2
- declare const BookZeroTripCard: ({ card }: IBookZeroTripCardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BookZeroTripCard: ({ card, onPayNow, pageName, vertical, }: IBookZeroTripCardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BookZeroTripCard;
4
4
  //# sourceMappingURL=BookZeroTripCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookZeroTripCard.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAWtE,QAAA,MAAM,gBAAgB,aAAc,sBAAsB,4CAiGzD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"BookZeroTripCard.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AActE,QAAA,MAAM,gBAAgB,4CAKnB,sBAAsB,4CA2HxB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { IBookZeroTripWidgetProps } from '@cleartrip/ct-platform-types';
2
2
  import './index.scss';
3
- declare const BookZeroTripWidget: ({ title, cards, }: IBookZeroTripWidgetProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const BookZeroTripWidget: ({ title, cards, pageName, vertical, onPayNow, onImpression, }: IBookZeroTripWidgetProps) => import("react/jsx-runtime").JSX.Element | null;
4
4
  export default BookZeroTripWidget;
5
5
  //# sourceMappingURL=BookZeroTripWidget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookZeroTripWidget.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.tsx"],"names":[],"mappings":"AAOA,OAAO,EAEH,wBAAwB,EAC3B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,cAAc,CAAC;AAWtB,QAAA,MAAM,kBAAkB,sBAGrB,wBAAwB,mDAsF1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"BookZeroTripWidget.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.tsx"],"names":[],"mappings":"AAOA,OAAO,EACH,wBAAwB,EAE3B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,cAAc,CAAC;AAGtB,QAAA,MAAM,kBAAkB,kEAOrB,wBAAwB,mDA8G1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,3 +1,6 @@
1
1
  export declare const BOOK_ZERO_TRIP_CARD_HEIGHT = 157;
2
2
  export declare const BOOK_ZERO_TRIP_CARD_WIDTH = 295;
3
+ export declare const BOOK_ZERO_DEFAULT_TITLE = "Complete your payment";
4
+ export declare const BOOK_ZERO_DEFAULT_STATUS = "Booked with \u20B90 payment";
5
+ export declare const BOOK_ZERO_TRIP_DETAILS_PREFIX_URL = "/hotels/trips";
3
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,yBAAyB,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,uBAAuB,0BAA0B,CAAC;AAC/D,eAAO,MAAM,wBAAwB,gCAA2B,CAAC;AAEjE,eAAO,MAAM,iCAAiC,kBAAkB,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@cleartrip/ct-platform-io-hoc"),a=require("@cleartrip/ct-platform-merch-carousel"),d=require("classnames"),r=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-design-button"),l=require("@cleartrip/ct-platform-assets"),s=require("@cleartrip/ct-platform-utils");function _(e){return e&&e.__esModule?e:{default:e}}var u=_(d);var c="index-module_bztContainer__eDkV4",m="index-module_bztWrapper__ISRXL",x="index-module_bztTitle__Gghfq",p="index-module_bztContentWrapper__YjHdZ",h="index-module_bztCard__nDyiw",g="index-module_bztCardTop__NsU0I",b="index-module_bztThumb__s-7EQ",f="index-module_bztCardTitle__BINAl",y="index-module_bztCardTextCol__wheg1",w="index-module_bztDivider__M-QEW",v="index-module_bztCardBottom__Tjcmq",z="index-module_bztPriceBlock__9GkVf",C="index-module_bztTextEllipsis__d3TSs",T="index-module_bztDateMuted__kS6-O",j="index-module_bztAmountLabel__OD-eO",N="index-module_bztCountdownRow__8Vniy",D="index-module_bztCountdownIcon__BltvK",k="index-module_bztCountdownLabel__cfr0-";!function(e,i){void 0===i&&(i={});var t=i.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".index-module_bztContainer__eDkV4{height:100%;position:relative;width:100%}.index-module_bztWrapper__ISRXL{height:100%;padding:16px 0;width:100%}.index-module_bztTitle__Gghfq{color:#1a1a1a;font-size:16px;font-weight:600;line-height:22px;margin:0;padding-bottom:12px;padding-left:16px;width:100%}.index-module_bztContentWrapper__YjHdZ{position:relative;width:100%}.index-module_bztCard__nDyiw{background:#fff;border:1.17px solid rgba(26,26,26,.08);border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;outline:none;overflow:hidden;padding:12px;width:100%}.index-module_bztCard__nDyiw:focus,.index-module_bztCard__nDyiw:focus-visible{outline:none}.index-module_bztCardTop__NsU0I{align-items:flex-start;display:flex;flex-direction:row;gap:8px;padding-bottom:12px}.index-module_bztCard__nDyiw .index-module_bztThumb__s-7EQ{background:#f2f2f2;border-radius:8px;flex-shrink:0;height:58px;max-height:58px;max-width:58px;object-fit:cover;width:58px}.index-module_bztCardTitle__BINAl{font-weight:600!important;line-height:22px}.index-module_bztCardTextCol__wheg1{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.index-module_bztDivider__M-QEW{border:0;border-top:1px dashed rgba(0,0,0,.1);margin:0 0 12px}.index-module_bztCardBottom__Tjcmq{align-items:flex-end;display:flex;flex-direction:row;gap:12px;justify-content:space-between}.index-module_bztPriceBlock__9GkVf{display:flex;flex-direction:column;gap:4px;min-width:0}.index-module_bztTextEllipsis__d3TSs{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module_bztDateMuted__kS6-O{color:grey}.index-module_bztAmountLabel__OD-eO{line-height:24px}.index-module_bztCountdownRow__8Vniy{align-items:center;display:flex;flex-direction:row;gap:4px;margin-bottom:4px}.index-module_bztCountdownIcon__BltvK{flex-shrink:0}.index-module_bztCountdownLabel__cfr0-{color:#cd1719}");var B=function(n){var a,d=n.card,_=d.metaData,c=d.landingUrl,m=t.useMemo((function(){return s.formatBookZeroStayDateRange(_.stayStartDate,_.stayEndDate)}),[_.stayStartDate,_.stayEndDate]),x=t.useMemo((function(){return s.formatBookZeroPaymentDueLabel(_.paymentExpiryTime)}),[_.paymentExpiryTime]),p=s.formatRemainingMsAsHoursCountdown(_.paymentExpiryTime),B=null!==(a=_.bookZeroStatusLabel)&&void 0!==a?a:"Booked with ₹0 payment";return i.jsxs("div",e.__assign({className:h},{children:[i.jsxs("div",e.__assign({className:g},{children:[i.jsx("img",{className:b,src:d.imageUrl,loading:"lazy"}),i.jsxs("div",e.__assign({className:y},{children:[i.jsx(r.Typography,e.__assign({variant:"L3",color:"success"},{children:B})),i.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.B1,className:u.default(C,f)},{children:d.title})),m?i.jsx(r.Typography,e.__assign({variant:"B3",className:u.default(C,T)},{children:m})):null]}))]})),i.jsx("hr",{className:w}),i.jsxs("div",e.__assign({className:v},{children:[i.jsxs("div",e.__assign({className:z},{children:[i.jsx(r.Typography,e.__assign({variant:"HM2",className:j},{children:_.amountDueLabel})),p?i.jsxs("div",e.__assign({className:N},{children:[i.jsx(l.HourGlass,{className:D,"aria-hidden":!0}),i.jsx(r.Typography,e.__assign({variant:"B4",className:k},{children:p}))]})):i.jsx(r.Typography,e.__assign({variant:"L3"},{children:x}))]})),i.jsx(o.Button,e.__assign({variant:"contained",size:"medium",color:"secondary",onClick:function(){c&&(window.location.href=c)}},{children:"Pay now"}))]}))]}))};exports.BookZeroTripWidget=function(d){var r=d.title,o=void 0===r?"Complete your payment":r,l=d.cards,s=t.useRef(!1),_=t.useCallback((function(){!s.current&&(null==l?void 0:l.length)&&(s.current=!0)}),[null==l?void 0:l.length]),u=t.useMemo((function(){return(null!=l?l:[]).map((function(i){return e.__assign(e.__assign({},i),{itemId:i.id,image:{url:i.imageUrl,alt:""}})}))}),[l]),h=!1,g=t.useCallback((function(){return 1===(null==l?void 0:l.length)?{width:"100%",height:157}:{width:295,height:157}}),[]),b=t.useCallback((function(e){var t=e.slideData;return i.jsx(B,{card:t})}),[]);return(null==l?void 0:l.length)?i.jsx(n.IntersectionObserverHOC,e.__assign({onIntersection:_},{children:i.jsx("section",e.__assign({className:c,"aria-label":o},{children:i.jsxs("div",e.__assign({className:m},{children:[i.jsx("div",e.__assign({className:x},{children:o})),i.jsx("div",e.__assign({className:p},{children:i.jsx(a.MerchCarousel,{isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:h,isLoopAdditionalSlides:!0,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:12,slidesToDisplay:"auto",slides:u,getSlideStyles:g,renderSlideItem:b,styleConfig:{swipperWrapper:{paddingLeft:"16px",paddingRight:"16px"}}})}))]}))}))})):null};
1
+ "use strict";var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@cleartrip/ct-platform-io-hoc"),a=require("@cleartrip/ct-platform-merch-carousel"),o=require("@cleartrip/ct-platform-utils"),r=require("classnames"),l=require("@cleartrip/ct-design-typography"),d=require("@cleartrip/ct-design-button"),s=require("@cleartrip/ct-platform-assets");function _(e){return e&&e.__esModule?e:{default:e}}var c=_(r);var u="index-module_bztContainer__eDkV4",p="index-module_bztWrapper__ISRXL",m="index-module_bztTitle__Gghfq",x="index-module_bztContentWrapper__YjHdZ",g="index-module_bztCard__nDyiw",h="index-module_bztCardTop__NsU0I",f="index-module_bztThumb__s-7EQ",v="index-module_bztCardTitle__BINAl",b="index-module_bztCardTextCol__wheg1",y="index-module_bztDivider__M-QEW",w="index-module_bztCardBottom__Tjcmq",C="index-module_bztPriceBlock__9GkVf",z="index-module_bztTextEllipsis__d3TSs",N="index-module_bztAmountLabel__OD-eO",T="index-module_bztCountdownRow__8Vniy",j="index-module_bztCountdownIcon__BltvK",D="index-module_bztCountdownLabel__cfr0-";!function(e,i){void 0===i&&(i={});var t=i.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".index-module_bztContainer__eDkV4{height:100%;position:relative;width:100%}.index-module_bztWrapper__ISRXL{height:100%;padding:16px 0;width:100%}.index-module_bztTitle__Gghfq{color:#1a1a1a;font-size:16px;font-weight:600;line-height:22px;margin:0;padding-bottom:12px;padding-left:16px;width:100%}.index-module_bztContentWrapper__YjHdZ{position:relative;width:100%}.index-module_bztCard__nDyiw{background:#fff;border:1.17px solid rgba(26,26,26,.08);border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;outline:none;overflow:hidden;padding:12px;width:100%}.index-module_bztCard__nDyiw:focus,.index-module_bztCard__nDyiw:focus-visible{outline:none}.index-module_bztCardTop__NsU0I{align-items:flex-start;display:flex;flex-direction:row;gap:8px;padding-bottom:12px}.index-module_bztCard__nDyiw .index-module_bztThumb__s-7EQ{background:#f2f2f2;border-radius:8px;flex-shrink:0;height:58px;max-height:58px;max-width:58px;object-fit:cover;width:58px}.index-module_bztCardTitle__BINAl{font-weight:600;line-height:22px}.index-module_bztCardTextCol__wheg1{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.index-module_bztDivider__M-QEW{border:0;border-top:1px dashed rgba(0,0,0,.1);margin:0 0 12px}.index-module_bztCardBottom__Tjcmq{align-items:flex-end;display:flex;flex-direction:row;gap:12px;justify-content:space-between}.index-module_bztPriceBlock__9GkVf{display:flex;flex-direction:column;gap:4px;min-width:0}.index-module_bztTextEllipsis__d3TSs{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module_bztDateMuted__kS6-O{color:grey}.index-module_bztAmountLabel__OD-eO{line-height:24px}.index-module_bztCountdownRow__8Vniy{align-items:center;display:flex;flex-direction:row;gap:4px;margin-bottom:4px}.index-module_bztCountdownIcon__BltvK{flex-shrink:0}.index-module_bztCountdownLabel__cfr0-{color:#cd1719}");var I=function(n){var a=n.card,r=n.onPayNow,_=n.pageName,u=n.vertical,p=a.metaData,m=a.landingUrl,x=a.tripId,I=(p||{}).hotelImageUrl,k=o.constructHotelImage(I),S=t.useMemo((function(){var e;return o.formatBookZeroStayDateRange(p.travelDates.start,null!==(e=p.travelDates.end)&&void 0!==e?e:"")}),[p.travelDates.start,p.travelDates.end]),B=t.useMemo((function(){return o.formatBookZeroPaymentDueLabel(p.paymentExpiry)}),[p.paymentExpiry]),L=o.formatRemainingMsAsHoursCountdown(p.paymentExpiry),q="₹".concat(Number(null==p?void 0:p.pendingAmount).toLocaleString("en-IN"));return i.jsxs("div",e.__assign({className:g,onClick:function(){x&&(window.location.href="".concat("/hotels/trips","/").concat(x))}},{children:[i.jsxs("div",e.__assign({className:h},{children:[i.jsx("img",{className:f,src:k,loading:"lazy"}),i.jsxs("div",e.__assign({className:b},{children:[i.jsx(l.Typography,e.__assign({variant:"L3",color:"success"},{children:"Booked with ₹0 payment"})),i.jsx(l.Typography,e.__assign({variant:l.TypographyVariant.B1,className:c.default(z,v)},{children:a.title})),S?i.jsx(l.Typography,e.__assign({variant:"B3",color:l.TypographyColor.SUBHEADING,className:c.default(z)},{children:S})):null]}))]})),i.jsx("hr",{className:y}),i.jsxs("div",e.__assign({className:w},{children:[i.jsxs("div",e.__assign({className:C},{children:[i.jsx(l.Typography,e.__assign({variant:"HM2",className:N},{children:q})),L?i.jsxs("div",e.__assign({className:T},{children:[i.jsx(s.HourGlass,{className:j,"aria-hidden":!0}),i.jsx(l.Typography,e.__assign({variant:"B4",className:D},{children:L}))]})):i.jsx(l.Typography,e.__assign({variant:"L3"},{children:B}))]})),i.jsx(d.Button,e.__assign({variant:"contained",size:"medium",color:"secondary",onClick:function(e){var i;e.stopPropagation();var t={action_name:"pay_now_clicked",action_type:"click",page_name:_||"",platform:null===(i=o.getDevicePlatform())||void 0===i?void 0:i.toLowerCase(),vertical:u||"",last_page_name:"",xsell_eligibility:"TRUE",login_status:o.isUserSignedIn()?"yes":"no",h_trip_id:x||""};o.ravenSDKTrigger("u_ui_action",t),r&&r(),m&&(window.location.href=m)}},{children:"Pay now"}))]}))]}))};exports.BookZeroTripWidget=function(r){var l=r.title,d=void 0===l?"Complete your payment":l,s=r.cards,_=r.pageName,c=r.vertical,g=r.onPayNow,h=r.onImpression,f=t.useRef(!1),v=t.useCallback((function(){!f.current&&(null==s?void 0:s.length)&&(f.current=!0,null==h||h(s.length),C(0))}),[null==s?void 0:s.length]),b=t.useMemo((function(){return(null!=s?s:[]).map((function(i){var t;return e.__assign(e.__assign({},i),{itemId:i.id,image:{url:null===(t=null==i?void 0:i.metaData)||void 0===t?void 0:t.hotelImageUrl,alt:""}})}))}),[s]),y=t.useCallback((function(){return 1===(null==s?void 0:s.length)?{width:"100%",height:157}:{width:295,height:157}}),[]),w=t.useCallback((function(e){var t=e.slideData;return i.jsx(I,{card:t,onPayNow:g,pageName:_,vertical:c})}),[g,_,c]);if(!(null==s?void 0:s.length))return null;var C=function(e){var i,t=s[e];if(t){var n={page_name:_||"",platform:null===(i=o.getDevicePlatform())||void 0===i?void 0:i.toLowerCase(),vertical:c||"",last_page_name:"",xsell_eligibility:"TRUE",login_status:o.isUserSignedIn()?"yes":"no",h_trip_id:(null==t?void 0:t.tripId)||""};o.ravenSDKTrigger("u_impression",n)}};return i.jsx(n.IntersectionObserverHOC,e.__assign({onIntersection:v},{children:i.jsx("section",e.__assign({className:u,"aria-label":d},{children:i.jsxs("div",e.__assign({className:p},{children:[i.jsx("div",e.__assign({className:m},{children:d})),i.jsx("div",e.__assign({className:x},{children:i.jsx(a.MerchCarousel,{onCarouselSlideChange:function(e){C(e.activeIndex)},isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:!1,isLoopAdditionalSlides:!0,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:12,slidesToDisplay:"auto",slides:b,getSlideStyles:y,renderSlideItem:w,styleConfig:{swipperWrapper:{paddingLeft:"16px",paddingRight:"16px"}}})}))]}))}))}))};
2
2
  //# sourceMappingURL=ct-platform-book-zero-trip-widget.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-book-zero-trip-widget.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx","../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.tsx","../packages/components/BookZeroTripWidget/src/constants.ts"],"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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","BookZeroTripCard","_a","card","metaData","landingUrl","stayDateLabel","useMemo","formatBookZeroStayDateRange","stayStartDate","stayEndDate","paymentDueLabel","formatBookZeroPaymentDueLabel","paymentExpiryTime","paymentCountdownText","formatRemainingMsAsHoursCountdown","statusLabel","_b","bookZeroStatusLabel","_jsxs","__assign","className","styles","children","_jsx","src","imageUrl","loading","jsxs","Typography","variant","color","TypographyVariant","B1","classNames","title","jsx","amountDueLabel","HourGlass","Button","size","onClick","window","location","href","cards","hasImpressionFiredRef","useRef","handleIntersection","useCallback","current","length","slides","map","itemId","id","image","url","alt","lazyWidget","getSlideStyles","width","height","renderSlideItem","slideData","IntersectionObserverHOC","onIntersection","MerchCarousel","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"2lCAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAAS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,WAE/B,OADuC,KAAlBJ,aAAA,EAAAA,EAAOM,QAEjB,CACHU,MAAO,OACPC,OCtD0B,KDyD3B,CACHD,MCzD6B,ID0D7BC,OC3D8B,ID6DrC,GAAE,IAEGC,EAAkBd,eACpB,SAAC/C,GAAE,IAAA8D,EAAS9D,EAAA8D,UAAkD,OAC1DxC,MAACvB,EAAgB,CACbE,KAAM6D,GAEb,GACD,IAGJ,OAAKnB,eAAAA,EAAOM,QAKR3B,MAACyC,EAAuBA,wBAAA7C,WAAA,CAAC8C,eAAgBlB,GACrC,CAAAzB,SAAAC,EAAAY,IAAA,UAAAhB,WAAA,CACIC,UAAWC,EACC,aAAAa,GAEZ,CAAAZ,SAAAJ,EAAAS,KAAA,MAAAR,WAAA,CAAKC,UAAWC,GACZ,CAAAC,SAAA,CAAAC,EAAAA,IAAA,MAAAJ,EAAAA,SAAA,CAAKC,UAAWC,GAAe,CAAAC,SAAGY,KAClCX,MAAK,MAAAJ,EAAAA,SAAA,CAAAC,UAAWC,GAAwB,CAAAC,SACpCC,EAAAA,IAAC2C,EAAAA,cACG,CAAAC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UACA,EAAAb,WAAYA,EACZc,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,GAChBC,gBAAgB,OAChB1B,OAAQA,EACRQ,eAAgBA,EAChBG,gBAAiBA,EACjBgB,YAAa,CACTC,eAAgB,CACZC,YAAa,OACbC,aAAc,wBA/BnC,IAwCf","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-book-zero-trip-widget.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx","../packages/components/BookZeroTripWidget/src/constants.ts","../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","BookZeroTripCard","_a","card","onPayNow","pageName","vertical","metaData","landingUrl","tripId","hotelImageUrl","constructedHotelImageUrl","constructHotelImage","stayDateLabel","useMemo","formatBookZeroStayDateRange","travelDates","start","end","paymentDueLabel","formatBookZeroPaymentDueLabel","paymentExpiry","paymentCountdownText","formatRemainingMsAsHoursCountdown","pendingAmountLabel","concat","Number","pendingAmount","toLocaleString","_jsxs","__assign","className","styles","onClick","window","location","href","children","_jsx","jsx","src","loading","Typography","variant","color","TypographyVariant","B1","classNames","title","TypographyColor","SUBHEADING","jsxs","HourGlass","Button","size","e","stopPropagation","ravenPayload","action_name","action_type","page_name","platform","getDevicePlatform","toLowerCase","last_page_name","xsell_eligibility","login_status","isUserSignedIn","h_trip_id","ravenSDKTrigger","_b","cards","onImpression","hasImpressionFiredRef","useRef","handleIntersection","useCallback","current","length","handleFireCardImpression","slides","map","itemId","id","image","url","alt","getSlideStyles","width","height","renderSlideItem","slideData","index","IntersectionObserverHOC","onIntersection","MerchCarousel","onCarouselSlideChange","swiper","activeIndex","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","lazyWidget","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"sjCAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EA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}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useMemo as n,useRef as d,useCallback as o}from"react";import{IntersectionObserverHOC as l}from"@cleartrip/ct-platform-io-hoc";import{MerchCarousel as r}from"@cleartrip/ct-platform-merch-carousel";import a from"classnames";import{Typography as m,TypographyVariant as s}from"@cleartrip/ct-design-typography";import{Button as c}from"@cleartrip/ct-design-button";import{HourGlass as _}from"@cleartrip/ct-platform-assets";import{formatBookZeroStayDateRange as p,formatBookZeroPaymentDueLabel as u,formatRemainingMsAsHoursCountdown as x}from"@cleartrip/ct-platform-utils";var h="index-module_bztContainer__eDkV4",f="index-module_bztWrapper__ISRXL",b="index-module_bztTitle__Gghfq",g="index-module_bztContentWrapper__YjHdZ",w="index-module_bztCard__nDyiw",y="index-module_bztCardTop__NsU0I",z="index-module_bztThumb__s-7EQ",v="index-module_bztCardTitle__BINAl",C="index-module_bztCardTextCol__wheg1",N="index-module_bztDivider__M-QEW",T="index-module_bztCardBottom__Tjcmq",D="index-module_bztPriceBlock__9GkVf",S="index-module_bztTextEllipsis__d3TSs",k="index-module_bztDateMuted__kS6-O",B="index-module_bztAmountLabel__OD-eO",E="index-module_bztCountdownRow__8Vniy",L="index-module_bztCountdownIcon__BltvK",I="index-module_bztCountdownLabel__cfr0-";!function(e,i){void 0===i&&(i={});var t=i.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===t&&n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".index-module_bztContainer__eDkV4{height:100%;position:relative;width:100%}.index-module_bztWrapper__ISRXL{height:100%;padding:16px 0;width:100%}.index-module_bztTitle__Gghfq{color:#1a1a1a;font-size:16px;font-weight:600;line-height:22px;margin:0;padding-bottom:12px;padding-left:16px;width:100%}.index-module_bztContentWrapper__YjHdZ{position:relative;width:100%}.index-module_bztCard__nDyiw{background:#fff;border:1.17px solid rgba(26,26,26,.08);border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;outline:none;overflow:hidden;padding:12px;width:100%}.index-module_bztCard__nDyiw:focus,.index-module_bztCard__nDyiw:focus-visible{outline:none}.index-module_bztCardTop__NsU0I{align-items:flex-start;display:flex;flex-direction:row;gap:8px;padding-bottom:12px}.index-module_bztCard__nDyiw .index-module_bztThumb__s-7EQ{background:#f2f2f2;border-radius:8px;flex-shrink:0;height:58px;max-height:58px;max-width:58px;object-fit:cover;width:58px}.index-module_bztCardTitle__BINAl{font-weight:600!important;line-height:22px}.index-module_bztCardTextCol__wheg1{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.index-module_bztDivider__M-QEW{border:0;border-top:1px dashed rgba(0,0,0,.1);margin:0 0 12px}.index-module_bztCardBottom__Tjcmq{align-items:flex-end;display:flex;flex-direction:row;gap:12px;justify-content:space-between}.index-module_bztPriceBlock__9GkVf{display:flex;flex-direction:column;gap:4px;min-width:0}.index-module_bztTextEllipsis__d3TSs{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module_bztDateMuted__kS6-O{color:grey}.index-module_bztAmountLabel__OD-eO{line-height:24px}.index-module_bztCountdownRow__8Vniy{align-items:center;display:flex;flex-direction:row;gap:4px;margin-bottom:4px}.index-module_bztCountdownIcon__BltvK{flex-shrink:0}.index-module_bztCountdownLabel__cfr0-{color:#cd1719}");var W=function(d){var o,l=d.card,r=l.metaData,h=l.landingUrl,f=n((function(){return p(r.stayStartDate,r.stayEndDate)}),[r.stayStartDate,r.stayEndDate]),b=n((function(){return u(r.paymentExpiryTime)}),[r.paymentExpiryTime]),g=x(r.paymentExpiryTime),W=null!==(o=r.bookZeroStatusLabel)&&void 0!==o?o:"Booked with ₹0 payment";return i("div",e({className:w},{children:[i("div",e({className:y},{children:[t("img",{className:z,src:l.imageUrl,loading:"lazy"}),i("div",e({className:C},{children:[t(m,e({variant:"L3",color:"success"},{children:W})),t(m,e({variant:s.B1,className:a(S,v)},{children:l.title})),f?t(m,e({variant:"B3",className:a(S,k)},{children:f})):null]}))]})),t("hr",{className:N}),i("div",e({className:T},{children:[i("div",e({className:D},{children:[t(m,e({variant:"HM2",className:B},{children:r.amountDueLabel})),g?i("div",e({className:E},{children:[t(_,{className:L,"aria-hidden":!0}),t(m,e({variant:"B4",className:I},{children:g}))]})):t(m,e({variant:"L3"},{children:b}))]})),t(c,e({variant:"contained",size:"medium",color:"secondary",onClick:function(){h&&(window.location.href=h)}},{children:"Pay now"}))]}))]}))},j=function(a){var m=a.title,s=void 0===m?"Complete your payment":m,c=a.cards,_=d(!1),p=o((function(){!_.current&&(null==c?void 0:c.length)&&(_.current=!0)}),[null==c?void 0:c.length]),u=n((function(){return(null!=c?c:[]).map((function(i){return e(e({},i),{itemId:i.id,image:{url:i.imageUrl,alt:""}})}))}),[c]),x=!1,w=o((function(){return 1===(null==c?void 0:c.length)?{width:"100%",height:157}:{width:295,height:157}}),[]),y=o((function(e){var i=e.slideData;return t(W,{card:i})}),[]);return(null==c?void 0:c.length)?t(l,e({onIntersection:p},{children:t("section",e({className:h,"aria-label":s},{children:i("div",e({className:f},{children:[t("div",e({className:b},{children:s})),t("div",e({className:g},{children:t(r,{isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:x,isLoopAdditionalSlides:!0,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:12,slidesToDisplay:"auto",slides:u,getSlideStyles:w,renderSlideItem:y,styleConfig:{swipperWrapper:{paddingLeft:"16px",paddingRight:"16px"}}})}))]}))}))})):null};export{j as BookZeroTripWidget};
1
+ import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useMemo as n,useRef as o,useCallback as l}from"react";import{IntersectionObserverHOC as d}from"@cleartrip/ct-platform-io-hoc";import{MerchCarousel as a}from"@cleartrip/ct-platform-merch-carousel";import{constructHotelImage as r,formatBookZeroStayDateRange as s,formatBookZeroPaymentDueLabel as c,formatRemainingMsAsHoursCountdown as m,getDevicePlatform as _,isUserSignedIn as p,ravenSDKTrigger as u}from"@cleartrip/ct-platform-utils";import x from"classnames";import{Typography as h,TypographyVariant as f,TypographyColor as g}from"@cleartrip/ct-design-typography";import{Button as b}from"@cleartrip/ct-design-button";import{HourGlass as v}from"@cleartrip/ct-platform-assets";var w="index-module_bztContainer__eDkV4",y="index-module_bztWrapper__ISRXL",z="index-module_bztTitle__Gghfq",C="index-module_bztContentWrapper__YjHdZ",N="index-module_bztCard__nDyiw",T="index-module_bztCardTop__NsU0I",D="index-module_bztThumb__s-7EQ",I="index-module_bztCardTitle__BINAl",k="index-module_bztCardTextCol__wheg1",B="index-module_bztDivider__M-QEW",S="index-module_bztCardBottom__Tjcmq",E="index-module_bztPriceBlock__9GkVf",L="index-module_bztTextEllipsis__d3TSs",A="index-module_bztAmountLabel__OD-eO",P="index-module_bztCountdownRow__8Vniy",U="index-module_bztCountdownIcon__BltvK",W="index-module_bztCountdownLabel__cfr0-";!function(e,i){void 0===i&&(i={});var t=i.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".index-module_bztContainer__eDkV4{height:100%;position:relative;width:100%}.index-module_bztWrapper__ISRXL{height:100%;padding:16px 0;width:100%}.index-module_bztTitle__Gghfq{color:#1a1a1a;font-size:16px;font-weight:600;line-height:22px;margin:0;padding-bottom:12px;padding-left:16px;width:100%}.index-module_bztContentWrapper__YjHdZ{position:relative;width:100%}.index-module_bztCard__nDyiw{background:#fff;border:1.17px solid rgba(26,26,26,.08);border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;outline:none;overflow:hidden;padding:12px;width:100%}.index-module_bztCard__nDyiw:focus,.index-module_bztCard__nDyiw:focus-visible{outline:none}.index-module_bztCardTop__NsU0I{align-items:flex-start;display:flex;flex-direction:row;gap:8px;padding-bottom:12px}.index-module_bztCard__nDyiw .index-module_bztThumb__s-7EQ{background:#f2f2f2;border-radius:8px;flex-shrink:0;height:58px;max-height:58px;max-width:58px;object-fit:cover;width:58px}.index-module_bztCardTitle__BINAl{font-weight:600;line-height:22px}.index-module_bztCardTextCol__wheg1{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.index-module_bztDivider__M-QEW{border:0;border-top:1px dashed rgba(0,0,0,.1);margin:0 0 12px}.index-module_bztCardBottom__Tjcmq{align-items:flex-end;display:flex;flex-direction:row;gap:12px;justify-content:space-between}.index-module_bztPriceBlock__9GkVf{display:flex;flex-direction:column;gap:4px;min-width:0}.index-module_bztTextEllipsis__d3TSs{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module_bztDateMuted__kS6-O{color:grey}.index-module_bztAmountLabel__OD-eO{line-height:24px}.index-module_bztCountdownRow__8Vniy{align-items:center;display:flex;flex-direction:row;gap:4px;margin-bottom:4px}.index-module_bztCountdownIcon__BltvK{flex-shrink:0}.index-module_bztCountdownLabel__cfr0-{color:#cd1719}");var j=function(o){var l=o.card,d=o.onPayNow,a=o.pageName,w=o.vertical,y=l.metaData,z=l.landingUrl,C=l.tripId,j=(y||{}).hotelImageUrl,R=r(j),V=n((function(){var e;return s(y.travelDates.start,null!==(e=y.travelDates.end)&&void 0!==e?e:"")}),[y.travelDates.start,y.travelDates.end]),G=n((function(){return c(y.paymentExpiry)}),[y.paymentExpiry]),O=m(y.paymentExpiry),q="₹".concat(Number(null==y?void 0:y.pendingAmount).toLocaleString("en-IN"));return i("div",e({className:N,onClick:function(){C&&(window.location.href="".concat("/hotels/trips","/").concat(C))}},{children:[i("div",e({className:T},{children:[t("img",{className:D,src:R,loading:"lazy"}),i("div",e({className:k},{children:[t(h,e({variant:"L3",color:"success"},{children:"Booked with ₹0 payment"})),t(h,e({variant:f.B1,className:x(L,I)},{children:l.title})),V?t(h,e({variant:"B3",color:g.SUBHEADING,className:x(L)},{children:V})):null]}))]})),t("hr",{className:B}),i("div",e({className:S},{children:[i("div",e({className:E},{children:[t(h,e({variant:"HM2",className:A},{children:q})),O?i("div",e({className:P},{children:[t(v,{className:U,"aria-hidden":!0}),t(h,e({variant:"B4",className:W},{children:O}))]})):t(h,e({variant:"L3"},{children:G}))]})),t(b,e({variant:"contained",size:"medium",color:"secondary",onClick:function(e){var i;e.stopPropagation();var t={action_name:"pay_now_clicked",action_type:"click",page_name:a||"",platform:null===(i=_())||void 0===i?void 0:i.toLowerCase(),vertical:w||"",last_page_name:"",xsell_eligibility:"TRUE",login_status:p()?"yes":"no",h_trip_id:C||""};u("u_ui_action",t),d&&d(),z&&(window.location.href=z)}},{children:"Pay now"}))]}))]}))},R=function(r){var s=r.title,c=void 0===s?"Complete your payment":s,m=r.cards,x=r.pageName,h=r.vertical,f=r.onPayNow,g=r.onImpression,b=o(!1),v=l((function(){!b.current&&(null==m?void 0:m.length)&&(b.current=!0,null==g||g(m.length),I(0))}),[null==m?void 0:m.length]),N=n((function(){return(null!=m?m:[]).map((function(i){var t;return e(e({},i),{itemId:i.id,image:{url:null===(t=null==i?void 0:i.metaData)||void 0===t?void 0:t.hotelImageUrl,alt:""}})}))}),[m]),T=l((function(){return 1===(null==m?void 0:m.length)?{width:"100%",height:157}:{width:295,height:157}}),[]),D=l((function(e){var i=e.slideData;return t(j,{card:i,onPayNow:f,pageName:x,vertical:h})}),[f,x,h]);if(!(null==m?void 0:m.length))return null;var I=function(e){var i,t=m[e];if(t){var n={page_name:x||"",platform:null===(i=_())||void 0===i?void 0:i.toLowerCase(),vertical:h||"",last_page_name:"",xsell_eligibility:"TRUE",login_status:p()?"yes":"no",h_trip_id:(null==t?void 0:t.tripId)||""};u("u_impression",n)}};return t(d,e({onIntersection:v},{children:t("section",e({className:w,"aria-label":c},{children:i("div",e({className:y},{children:[t("div",e({className:z},{children:c})),t("div",e({className:C},{children:t(a,{onCarouselSlideChange:function(e){I(e.activeIndex)},isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:!1,isLoopAdditionalSlides:!0,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:12,slidesToDisplay:"auto",slides:N,getSlideStyles:T,renderSlideItem:D,styleConfig:{swipperWrapper:{paddingLeft:"16px",paddingRight:"16px"}}})}))]}))}))}))};export{R as BookZeroTripWidget};
2
2
  //# sourceMappingURL=ct-platform-book-zero-trip-widget.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-book-zero-trip-widget.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx","../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.tsx","../packages/components/BookZeroTripWidget/src/constants.ts"],"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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","BookZeroTripCard","_a","card","metaData","landingUrl","stayDateLabel","useMemo","formatBookZeroStayDateRange","stayStartDate","stayEndDate","paymentDueLabel","formatBookZeroPaymentDueLabel","paymentExpiryTime","paymentCountdownText","formatRemainingMsAsHoursCountdown","statusLabel","_b","bookZeroStatusLabel","_jsxs","__assign","className","styles","children","_jsx","src","imageUrl","loading","Typography","variant","color","TypographyVariant","B1","classNames","title","amountDueLabel","HourGlass","Button","size","onClick","window","location","href","BookZeroTripWidget","cards","hasImpressionFiredRef","useRef","handleIntersection","useCallback","current","length","slides","map","itemId","id","image","url","alt","lazyWidget","getSlideStyles","width","height","renderSlideItem","slideData","IntersectionObserverHOC","onIntersection","MerchCarousel","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"szCAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,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,s2DCVA,IAEMe,EAAmB,SAACC,SAAEC,EAAID,EAAAC,KACpBC,EAAyBD,EAAIC,SAAnBC,EAAeF,EAAIE,WAE/BC,EAAgBC,GAClB,WACI,OAAAC,EACIJ,EAASK,cACTL,EAASM,YACZ,GACL,CAACN,EAASK,cAAeL,EAASM,cAGhCC,EAAkBJ,GACpB,WAAM,OAAAK,EAA8BR,EAASS,kBAAkB,GAC/D,CAACT,EAASS,oBAGRC,EAAuBC,EACzBX,EAASS,mBAGPG,EAA0C,QAA5BC,EAAAb,EAASc,2BAAmB,IAAAD,EAAAA,EAvB7B,yBA+BnB,OACIE,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GAAc,CAAAC,SAAA,CAC1BJ,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GAAiB,CAAAC,SAAA,CAC7BC,E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C,GACX,WACI,OAACqC,QAAAA,EAAS,IAAIQ,KAAI,SAACjD,GAAS,OAAAiB,EAAAA,EAAA,CAAA,EACrBjB,GACH,CAAAkD,OAAQlD,EAAKmD,GACbC,MAAO,CAAEC,IAAKrD,EAAKuB,SAAU+B,IAAK,KACpC,GAJF,GAKJ,CAACb,IAGCc,GAAa,EAEbC,EAAiBX,GAAY,WAE/B,OADuC,KAAlBJ,aAAA,EAAAA,EAAOM,QAEjB,CACHU,MAAO,OACPC,OCtD0B,KDyD3B,CACHD,MCzD6B,ID0D7BC,OC3D8B,ID6DrC,GAAE,IAEGC,EAAkBd,GACpB,SAAC9C,GAAE,IAAA6D,EAAS7D,EAAA6D,UAAkD,OAC1DvC,EAACvB,EAAgB,CACbE,KAAM4D,GAEb,GACD,IAGJ,OAAKnB,eAAAA,EAAOM,QAKR1B,EAACwC,EAAuB5C,EAAA,CAAC6C,eAAgBlB,GACrC,CAAAxB,SAAAC,EAAA,UAAAJ,EAAA,CACIC,UAAWC,EACC,aAAAY,GAEZ,CAAAX,SAAAJ,EAAA,MAAAC,EAAA,CAAKC,UAAWC,GACZ,CAAAC,SAAA,CAAAC,EAAA,MAAAJ,EAAA,CAAKC,UAAWC,GAAe,CAAAC,SAAGW,KAClCV,EAAK,MAAAJ,EAAA,CAAAC,UAAWC,GAAwB,CAAAC,SACpCC,EAAC0C,EACG,CAAAC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UACA,EAAAb,WAAYA,EACZc,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,GAChBC,gBAAgB,OAChB1B,OAAQA,EACRQ,eAAgBA,EAChBG,gBAAiBA,EACjBgB,YAAa,CACTC,eAAgB,CACZC,YAAa,OACbC,aAAc,wBA/BnC,IAwCf","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-book-zero-trip-widget.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/BookZeroTripWidget/src/BookZeroTripCard.tsx","../packages/components/BookZeroTripWidget/src/constants.ts","../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","BookZeroTripCard","_a","card","onPayNow","pageName","vertical","metaData","landingUrl","tripId","hotelImageUrl","constructedHotelImageUrl","constructHotelImage","stayDateLabel","useMemo","formatBookZeroStayDateRange","travelDates","start","end","paymentDueLabel","formatBookZeroPaymentDueLabel","paymentExpiry","paymentCountdownText","formatRemainingMsAsHoursCountdown","pendingAmountLabel","concat","Number","pendingAmount","toLocaleString","_jsxs","__assign","className","styles","onClick","window","location","href","children","_jsx","src","loading","Typography","variant","color","TypographyVariant","B1","classNames","title","TypographyColor","SUBHEADING","HourGlass","Button","size","e","stopPropagation","ravenPayload","action_name","action_type","page_name","platform","getDevicePlatform","toLowerCase","last_page_name","xsell_eligibility","login_status","isUserSignedIn","h_trip_id","ravenSDKTrigger","BookZeroTripWidget","_b","cards","onImpression","hasImpressionFiredRef","useRef","handleIntersection","useCallback","current","length","handleFireCardImpression","slides","map","itemId","id","image","url","alt","getSlideStyles","width","height","renderSlideItem","slideData","index","IntersectionObserverHOC","onIntersection","MerchCarousel","onCarouselSlideChange","swiper","activeIndex","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","lazyWidget","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"+3CAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,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,41DCLA,IAAMe,EAAmB,SAACC,OACtBC,EAAID,EAAAC,KACJC,EAAQF,EAAAE,SACRC,EAAQH,EAAAG,SACRC,EAAQJ,EAAAI,SAGAC,EAAiCJ,EAAII,SAA3BC,EAAuBL,EAAIK,WAAfC,EAAWN,SAEjCO,GAAkBH,GAAY,CAAA,iBAEhCI,EAA2BC,EAAoBF,GAE/CG,EAAgBC,GAClB,WAAM,IAAAZ,EAAA,OAAAa,EAA4BR,EAASS,YAAYC,MAAmC,UAA5BV,EAASS,YAAYE,WAAO,IAAAhB,EAAAA,EAAA,GAAG,GAC7F,CAACK,EAASS,YAAYC,MAAOV,EAASS,YAAYE,MAGhDC,EAAkBL,GACpB,WAAM,OAAAM,EAA8Bb,EAASc,cAAc,GAC3D,CAACd,EAASc,gBAGRC,EAAuBC,EAAkChB,EAASc,eAClEG,EAAqB,IAAAC,OAAIC,OAAOnB,aAAQ,EAARA,EAAUoB,eAAeC,eAAe,UAmC9E,OACIC,EACI,MAAAC,EAAA,CAAAC,UAAWC,EACXC,QATgB,WAChBxB,IACAyB,OAAOC,SAASC,KAAO,UCrEc,gBDqEsB,KAAAX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GX,IAAMC,EAA2B,SAACa,SACxBxF,EAAOmE,EAAMqB,GACnB,GAAIxF,EAAM,CACN,IAAMoD,EAAe,CACjBG,UAAWrD,GAAY,GACvBsD,SAA6B,QAAnBzD,EAAA0D,WAAmB,IAAA1D,OAAA,EAAAA,EAAE2D,cAC/BvD,SAAUA,GAAY,GACtBwD,eAAgB,GAChBC,kBAAmB,OACnBC,aAAcC,IAAmB,MAAQ,KACzCC,WAAW/D,eAAAA,EAAMM,SAAU,IAE/B0D,EAAgB,eAAgBZ,EACnC,CACL,EAMA,OACIjB,EAACsD,EAAuB9D,EAAA,CAAC+D,eAAgBnB,GACrC,CAAArC,SAAAC,EAAA,UAAAR,EAAA,CACIC,UAAWC,EACC,aAAAe,GAEZ,CAAAV,SAAAR,EAAA,MAAAC,EAAA,CAAKC,UAAWC,GACZ,CAAAK,SAAA,CAAAC,EAAA,MAAAR,EAAA,CAAKC,UAAWC,GAAkB,CAAAK,SAAAU,KAClCT,EAAA,MAAAR,EAAA,CAAKC,UAAWC,GACZ,CAAAK,SAAAC,EAACwD,EAAa,CACVC,sBAdE,SAACC,GACvBlB,EAAyBkB,EAAOC,YACpC,EAawBC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UACA,EAAAC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,GAChBC,gBAAgB,OAChB9B,OAAQA,EACRO,eAAgBA,EAChBG,gBAAiBA,EACjBqB,YAAa,CACTC,eAAgB,CACZC,YAAa,OACbC,aAAc,uBASlD","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-book-zero-trip-widget",
3
- "version": "1.0.6-beta.20",
3
+ "version": "1.0.6-beta.21",
4
4
  "description": "Book Zero Trip Widget Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-book-zero-trip-widget.cjs.js",
@@ -17,12 +17,12 @@
17
17
  "classnames": "^2.5.1",
18
18
  "swiper": "6.8.4",
19
19
  "uuid": "^9.0.1",
20
- "@cleartrip/ct-platform-assets": "4.2.0-beta.95",
21
- "@cleartrip/ct-platform-utils": "4.2.0-beta.95",
22
- "@cleartrip/ct-platform-merch-carousel": "4.2.0-beta.95",
23
- "@cleartrip/ct-platform-io-hoc": "4.2.0-beta.95",
24
- "@cleartrip/ct-platform-types": "4.2.0-beta.95",
25
- "@cleartrip/ct-platform-constants": "4.2.0-beta.95"
20
+ "@cleartrip/ct-platform-assets": "4.2.0-beta.96",
21
+ "@cleartrip/ct-platform-merch-carousel": "4.2.0-beta.96",
22
+ "@cleartrip/ct-platform-io-hoc": "4.2.0-beta.96",
23
+ "@cleartrip/ct-platform-types": "4.2.0-beta.96",
24
+ "@cleartrip/ct-platform-utils": "4.2.0-beta.96",
25
+ "@cleartrip/ct-platform-constants": "4.2.0-beta.96"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.8.0",