@cleartrip/ct-platform-book-zero-trip-widget 1.0.6-beta.38 → 1.0.6-beta.39
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/BookZeroTripWidget.d.ts +1 -1
- package/dist/BookZeroTripWidget.d.ts.map +1 -1
- package/dist/ct-platform-book-zero-trip-widget.cjs.js +1 -1
- package/dist/ct-platform-book-zero-trip-widget.cjs.js.map +1 -1
- package/dist/ct-platform-book-zero-trip-widget.esm.js +1 -1
- package/dist/ct-platform-book-zero-trip-widget.esm.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBookZeroTripWidgetProps } from '@cleartrip/ct-platform-types';
|
|
2
2
|
import './index.scss';
|
|
3
|
-
declare const BookZeroTripWidget: ({ title, cards, pageName, vertical, onPayNow, onImpression, }: IBookZeroTripWidgetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare const BookZeroTripWidget: ({ title, cards, pageName, vertical, onPayNow, onImpression, hasBgColor, }: 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":"
|
|
1
|
+
{"version":3,"file":"BookZeroTripWidget.d.ts","sourceRoot":"","sources":["../packages/components/BookZeroTripWidget/src/BookZeroTripWidget.tsx"],"names":[],"mappings":"AAQA,OAAO,EACH,wBAAwB,EAE3B,MAAM,8BAA8B,CAAC;AAatC,OAAO,cAAc,CAAC;AAGtB,QAAA,MAAM,kBAAkB,8EAQrB,wBAAwB,mDAyH1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),a=require("@cleartrip/ct-platform-io-hoc"),r=require("@cleartrip/ct-platform-merch-carousel"),o=require("@cleartrip/ct-platform-utils"),l=require("@cleartrip/ct-design-typography"),d=require("@cleartrip/ct-design-button"),s=require("@cleartrip/ct-platform-assets"),_=require("@cleartrip/ct-platform-constants");function c(e){return e&&e.__esModule?e:{default:e}}var u=c(t);var m="index-module_bztContainer__eDkV4",p="index-module_bztWrapper__ISRXL",x="index-module_bztTitle__Gghfq",g="index-module_bztTitleOnBg__XnCaQ",h="index-module_bztContentWrapper__YjHdZ",f="index-module_bztCard__nDyiw",v="index-module_bztCardTop__NsU0I",b="index-module_bztThumb__s-7EQ",y="index-module_bztCardTitle__BINAl",w="index-module_bztCardTextCol__wheg1",C="index-module_bztDivider__M-QEW",T="index-module_bztCardBottom__Tjcmq",z="index-module_bztPriceBlock__9GkVf",D="index-module_bztTextEllipsis__d3TSs",I="index-module_bztAmountLabel__OD-eO",N="index-module_bztCountdownRow__8Vniy",j="index-module_bztCountdownIcon__BltvK",E="index-module_bztCountdownLabel__cfr0-";!function(e,i){void 0===i&&(i={});var n=i.insertAt;if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&t.firstChild?t.insertBefore(a,t.firstChild):t.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_bztTitleOnBg__XnCaQ{color:#fff}.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 B=function(t){var a=t.card,r=t.onPayNow,c=t.pageName,m=t.vertical,p=a.metaData,x=a.landingUrl,g=a.tripId,h=(p||{}).hotelImageUrl,B=o.constructHotelImage(h),O=n.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]),R=n.useMemo((function(){return o.formatBookZeroPaymentDueLabel(p.paymentExpiry)}),[p.paymentExpiry]),k=o.formatRemainingMsAsHoursCountdown(p.paymentExpiry),L="₹".concat(Number(null==p?void 0:p.pendingAmount).toLocaleString("en-IN")),S=_.BOOK_ZERO_DEFAULT_STATUS,A=n.useCallback((function(e){var i=e.currentTarget;i.src=_.DEFAULT_IMAGE_URL,i.onerror=null}),[]);return i.jsxs("div",e.__assign({className:f,onClick:function(){g&&(window.location.href="".concat(_.BOOK_ZERO_TRIP_DETAILS_PREFIX_URL,"/").concat(g))}},{children:[i.jsxs("div",e.__assign({className:v},{children:[i.jsx("img",{className:b,src:B,loading:"lazy",onError:A}),i.jsxs("div",e.__assign({className:w},{children:[i.jsx(l.Typography,e.__assign({variant:"L3",color:"success"},{children:S})),i.jsx(l.Typography,e.__assign({variant:"HM3",className:u.default(D,y)},{children:a.title})),O?i.jsx(l.Typography,e.__assign({variant:"B3",color:l.TypographyColor.SUBHEADING,className:u.default(D)},{children:O})):null]}))]})),i.jsx("hr",{className:C}),i.jsxs("div",e.__assign({className:T},{children:[i.jsxs("div",e.__assign({className:z},{children:[i.jsx(l.Typography,e.__assign({variant:"HM2",className:I},{children:L})),k?i.jsxs("div",e.__assign({className:N},{children:[i.jsx(s.HourGlass,{className:j,"aria-hidden":!0}),i.jsx(l.Typography,e.__assign({variant:"B4",className:E},{children:k}))]})):i.jsx(l.Typography,e.__assign({variant:"L3"},{children:R}))]})),i.jsx(d.Button,e.__assign({variant:"contained",size:"medium",color:"secondary",onClick:function(e){var i;e.stopPropagation();var n={action_name:"pay_now_clicked",action_type:"click",page_name:c||"",platform:null===(i=o.getDevicePlatform())||void 0===i?void 0:i.toLowerCase(),vertical:m||"",last_page_name:"",h_trip_id:g||""};o.ravenSDKTrigger("u_click",n),r&&r(),x&&(window.location.href=x)}},{children:"Pay now"}))]}))]}))};exports.BookZeroTripWidget=function(t){var l,d=t.title,s=void 0===d?_.BOOK_ZERO_DEFAULT_TITLE:d,c=t.cards,f=t.pageName,v=t.vertical,b=t.onPayNow,y=t.onImpression,w=t.hasBgColor,C=void 0!==w&&w,T=n.useRef(!1),z=n.useCallback((function(){!T.current&&(null==c?void 0:c.length)&&(T.current=!0,null==y||y(c.length),j(0))}),[null==c?void 0:c.length]),D=n.useMemo((function(){return(null!=c?c:[]).map((function(i){var n;return e.__assign(e.__assign({},i),{itemId:i.id,image:{url:null===(n=null==i?void 0:i.metaData)||void 0===n?void 0:n.hotelImageUrl,alt:""}})}))}),[c]),I=n.useCallback((function(){var i={background:"transparent",overflow:"hidden",borderRadius:"16px"};return 1===(null==c?void 0:c.length)?e.__assign({width:"100%",height:_.BOOK_ZERO_TRIP_CARD_HEIGHT},i):e.__assign({width:_.BOOK_ZERO_TRIP_CARD_WIDTH,height:_.BOOK_ZERO_TRIP_CARD_HEIGHT},i)}),[]),N=n.useCallback((function(e){var n=e.slideData;return i.jsx(B,{card:n,onPayNow:b,pageName:f,vertical:v})}),[b,f,v]);if(!(null==c?void 0:c.length))return null;var j=function(e){var i,n=c[e],t=o.mapBookZeroRavenEventImpressionName(v||"");if(n&&t){var a={page_name:f||"",platform:null===(i=o.getDevicePlatform())||void 0===i?void 0:i.toLowerCase(),vertical:v||"",last_page_name:"",h_trip_id:(null==n?void 0:n.tripId)||""};o.ravenSDKTrigger(t,a)}};return i.jsx(a.IntersectionObserverHOC,e.__assign({onIntersection:z},{children:i.jsx("section",e.__assign({className:m,"aria-label":s},{children:i.jsxs("div",e.__assign({className:p},{children:[i.jsx("div",e.__assign({className:u.default(x,(l={},l[g]=C,l))},{children:s})),i.jsx("div",e.__assign({className:h},{children:i.jsx(r.MerchCarousel,{onCarouselSlideChange:function(e){j(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:D,getSlideStyles:I,renderSlideItem:N,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"
|
|
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"],"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],"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","statusLabel","BOOK_ZERO_DEFAULT_STATUS","handleImageError","useCallback","currentTarget","src","DEFAULT_IMAGE_URL","onerror","_jsxs","__assign","className","styles","onClick","window","location","href","BOOK_ZERO_TRIP_DETAILS_PREFIX_URL","children","_jsx","loading","onError","Typography","variant","color","jsx","classNames","default","title","TypographyColor","SUBHEADING","jsxs","HourGlass","Button","size","e","stopPropagation","ravenPayload","action_name","action_type","page_name","platform","getDevicePlatform","toLowerCase","last_page_name","h_trip_id","ravenSDKTrigger","_c","BOOK_ZERO_DEFAULT_TITLE","cards","onImpression","_d","hasBgColor","hasImpressionFiredRef","useRef","handleIntersection","current","length","handleFireCardImpression","slides","map","itemId","id","image","url","alt","getSlideStyles","sharedSlideStyles","background","overflow","borderRadius","width","height","BOOK_ZERO_TRIP_CARD_HEIGHT","BOOK_ZERO_TRIP_CARD_WIDTH","renderSlideItem","slideData","index","ravenEventName","mapBookZeroRavenEventImpressionName","IntersectionObserverHOC","onIntersection","_b","MerchCarousel","onCarouselSlideChange","swiper","activeIndex","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","lazyWidget","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"yoCAAA,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,y4DCDA,IAAMe,EAAmB,SAACC,OACtBC,EAAID,EAAAC,KACJC,EAAQF,EAAAE,SACRC,EAAQH,EAAAG,SACRC,EAAQJ,EAAAI,SAEAC,EAAiCJ,EAAII,SAA3BC,EAAuBL,EAAIK,WAAfC,EAAWN,SAEjCO,GA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AAIH,GAAQuG,EAAgB,CACxB,IAAMzC,EAAe,CACjBG,UAAW/D,GAAY,GACvBgE,SAA6B,QAAnBnE,EAAAoE,EAAiBA,2BAAE,IAAApE,OAAA,EAAAA,EAAEqE,cAC/BjE,SAAUA,GAAY,GACtBkE,eAAgB,GAChBC,WAAWtE,eAAAA,EAAMM,SAAU,IAE/BiE,kBAAgBgC,EAAgBzC,EACnC,CACL,EAMA,OACIlB,EAAAA,IAAC6D,EAAAA,wBAAuBtE,EAAAA,SAAA,CAACuE,eAAgB1B,GAAkB,CAAArC,SACvDC,EAAAA,IAAS,UAAAT,EAAAA,SAAA,CAAAC,UAAWC,EAAmB,aAAcgB,GAAK,CAAAV,SACtDT,EAAAA,KAAK,MAAAC,EAAAA,SAAA,CAAAC,UAAWC,GAAiB,CAAAM,SAAA,CAC7BC,EACIM,IAAA,MAAAf,EAAAA,SAAA,CAAAC,UAAWe,EAAUC,QAACf,GAAesE,EAAA,CAAA,EACjCA,EAACtE,GAAsBwC,EACzB8B,KAAA,CAAAhE,SAEDU,KAELT,EAAAA,IAAK,MAAAT,WAAA,CAAAC,UAAWC,GAAwB,CAAAM,SACpCC,MAACgE,EAAAA,cAAa,CACVC,sBAjBE,SAACC,GACvB3B,EAAyB2B,EAAOC,YACpC,EAgBwBC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UAAQ,EACRC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,GAChBC,gBAAgB,OAChBvC,OAAQA,EACRO,eAAgBA,EAChBS,gBAAiBA,EACjBwB,YAAa,CACTC,eAAgB,CACZC,YAAa,OACbC,aAAc,uBASlD","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useMemo as n,useCallback as o,useRef as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useMemo as n,useCallback as o,useRef as d}from"react";import a from"classnames";import{IntersectionObserverHOC as l}from"@cleartrip/ct-platform-io-hoc";import{MerchCarousel as r}from"@cleartrip/ct-platform-merch-carousel";import{constructHotelImage as c,formatBookZeroStayDateRange as m,formatBookZeroPaymentDueLabel as s,formatRemainingMsAsHoursCountdown as _,getDevicePlatform as p,ravenSDKTrigger as u,mapBookZeroRavenEventImpressionName as x}from"@cleartrip/ct-platform-utils";import{Typography as h,TypographyColor as f}from"@cleartrip/ct-design-typography";import{Button as g}from"@cleartrip/ct-design-button";import{HourGlass as v}from"@cleartrip/ct-platform-assets";import{DEFAULT_IMAGE_URL as b,BOOK_ZERO_DEFAULT_STATUS as w,BOOK_ZERO_TRIP_DETAILS_PREFIX_URL as z,BOOK_ZERO_TRIP_CARD_HEIGHT as y,BOOK_ZERO_TRIP_CARD_WIDTH as C,BOOK_ZERO_DEFAULT_TITLE as N}from"@cleartrip/ct-platform-constants";var T="index-module_bztContainer__eDkV4",D="index-module_bztWrapper__ISRXL",I="index-module_bztTitle__Gghfq",k="index-module_bztTitleOnBg__XnCaQ",B="index-module_bztContentWrapper__YjHdZ",S="index-module_bztCard__nDyiw",L="index-module_bztCardTop__NsU0I",E="index-module_bztThumb__s-7EQ",A="index-module_bztCardTitle__BINAl",P="index-module_bztCardTextCol__wheg1",W="index-module_bztDivider__M-QEW",j="index-module_bztCardBottom__Tjcmq",O="index-module_bztPriceBlock__9GkVf",Q="index-module_bztTextEllipsis__d3TSs",R="index-module_bztAmountLabel__OD-eO",U="index-module_bztCountdownRow__8Vniy",V="index-module_bztCountdownIcon__BltvK",G="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_bztTitleOnBg__XnCaQ{color:#fff}.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 H=function(d){var l=d.card,r=d.onPayNow,x=d.pageName,y=d.vertical,C=l.metaData,N=l.landingUrl,T=l.tripId,D=(C||{}).hotelImageUrl,I=c(D),k=n((function(){var e;return m(C.travelDates.start,null!==(e=C.travelDates.end)&&void 0!==e?e:"")}),[C.travelDates.start,C.travelDates.end]),B=n((function(){return s(C.paymentExpiry)}),[C.paymentExpiry]),H=_(C.paymentExpiry),M="₹".concat(Number(null==C?void 0:C.pendingAmount).toLocaleString("en-IN")),q=w,X=o((function(e){var i=e.currentTarget;i.src=b,i.onerror=null}),[]);return i("div",e({className:S,onClick:function(){T&&(window.location.href="".concat(z,"/").concat(T))}},{children:[i("div",e({className:L},{children:[t("img",{className:E,src:I,loading:"lazy",onError:X}),i("div",e({className:P},{children:[t(h,e({variant:"L3",color:"success"},{children:q})),t(h,e({variant:"HM3",className:a(Q,A)},{children:l.title})),k?t(h,e({variant:"B3",color:f.SUBHEADING,className:a(Q)},{children:k})):null]}))]})),t("hr",{className:W}),i("div",e({className:j},{children:[i("div",e({className:O},{children:[t(h,e({variant:"HM2",className:R},{children:M})),H?i("div",e({className:U},{children:[t(v,{className:V,"aria-hidden":!0}),t(h,e({variant:"B4",className:G},{children:H}))]})):t(h,e({variant:"L3"},{children:B}))]})),t(g,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:x||"",platform:null===(i=p())||void 0===i?void 0:i.toLowerCase(),vertical:y||"",last_page_name:"",h_trip_id:T||""};u("u_click",t),r&&r(),N&&(window.location.href=N)}},{children:"Pay now"}))]}))]}))},M=function(c){var m,s=c.title,_=void 0===s?N:s,h=c.cards,f=c.pageName,g=c.vertical,v=c.onPayNow,b=c.onImpression,w=c.hasBgColor,z=void 0!==w&&w,S=d(!1),L=o((function(){!S.current&&(null==h?void 0:h.length)&&(S.current=!0,null==b||b(h.length),W(0))}),[null==h?void 0:h.length]),E=n((function(){return(null!=h?h:[]).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:""}})}))}),[h]),A=o((function(){var i=1===(null==h?void 0:h.length),t={background:"transparent",overflow:"hidden",borderRadius:"16px"};return e(i?{width:"100%",height:y}:{width:C,height:y},t)}),[]),P=o((function(e){var i=e.slideData;return t(H,{card:i,onPayNow:v,pageName:f,vertical:g})}),[v,f,g]);if(!(null==h?void 0:h.length))return null;var W=function(e){var i,t=h[e],n=x(g||"");if(t&&n){var o={page_name:f||"",platform:null===(i=p())||void 0===i?void 0:i.toLowerCase(),vertical:g||"",last_page_name:"",h_trip_id:(null==t?void 0:t.tripId)||""};u(n,o)}};return t(l,e({onIntersection:L},{children:t("section",e({className:T,"aria-label":_},{children:i("div",e({className:D},{children:[t("div",e({className:a(I,(m={},m[k]=z,m))},{children:_})),t("div",e({className:B},{children:t(r,{onCarouselSlideChange:function(e){W(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:E,getSlideStyles:A,renderSlideItem:P,styleConfig:{swipperWrapper:{paddingLeft:"16px",paddingRight:"16px"}}})}))]}))}))}))};export{M 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"
|
|
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"],"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],"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","statusLabel","BOOK_ZERO_DEFAULT_STATUS","handleImageError","useCallback","currentTarget","src","DEFAULT_IMAGE_URL","onerror","_jsxs","__assign","className","styles","onClick","window","location","href","BOOK_ZERO_TRIP_DETAILS_PREFIX_URL","children","_jsx","loading","onError","Typography","variant","color","classNames","title","TypographyColor","SUBHEADING","HourGlass","Button","size","e","stopPropagation","ravenPayload","action_name","action_type","page_name","platform","getDevicePlatform","toLowerCase","last_page_name","h_trip_id","ravenSDKTrigger","BookZeroTripWidget","_c","BOOK_ZERO_DEFAULT_TITLE","cards","onImpression","_d","hasBgColor","hasImpressionFiredRef","useRef","handleIntersection","current","length","handleFireCardImpression","slides","map","itemId","id","image","url","alt","getSlideStyles","isSingleCard","sharedSlideStyles","background","overflow","borderRadius","width","height","BOOK_ZERO_TRIP_CARD_HEIGHT","BOOK_ZERO_TRIP_CARD_WIDTH","renderSlideItem","slideData","index","ravenEventName","mapBookZeroRavenEventImpressionName","IntersectionObserverHOC","onIntersection","_b","MerchCarousel","onCarouselSlideChange","swiper","activeIndex","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","lazyWidget","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","styleConfig","swipperWrapper","paddingLeft","paddingRight"],"mappings":"woDAAA,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,y4DCDA,IAAMe,EAAmB,SAACC,OACtBC,EAAID,EAAAC,KACJC,EAAQF,EAAAE,SACRC,EAAQH,EAAAG,SACRC,EAAQJ,EAAAI,SAEAC,EAAiCJ,EAAII,SAA3BC,EAAuBL,EAAIK,WAAfC,EAAWN,SAEjCO,GAAkBH,GAAY,CAAA,iBAEhCI,EAA2BC,EAAoBF,GAE/CG,EAAgBC,GAClB,iBACI,OAAAC,EACIR,EAASS,YAAYC,MACO,QAA5Bf,EAAAK,EAASS,YAAYE,WAAO,IAAAhB,EAAAA,EAAA,GAC/B,GACL,CAACK,EAASS,YAAYC,MAAOV,EAASS,YAAYE,MAGhDC,EAAkBL,GACpB,WAAM,OAAAM,EAA8Bb,EAASc,cAAc,GAC3D,CAACd,EAASc,gBAGRC,EAAuBC,EACzBhB,EAASc,eAEPG,EAAqB,IAAAC,OAAIC,OAAOnB,aAAQ,EAARA,EAAUoB,eAAeC,eAAe,UAExEC,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AAQ,EACRC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,GAChBC,gBAAgB,OAChBxC,OAAQA,EACRO,eAAgBA,EAChBU,gBAAiBA,EACjBwB,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.
|
|
3
|
+
"version": "1.0.6-beta.39",
|
|
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.
|
|
21
|
-
"@cleartrip/ct-platform-utils": "4.2.0-beta.
|
|
22
|
-
"@cleartrip/ct-platform-
|
|
23
|
-
"@cleartrip/ct-platform-
|
|
24
|
-
"@cleartrip/ct-platform-
|
|
25
|
-
"@cleartrip/ct-platform-merch-carousel": "4.2.0-beta.
|
|
20
|
+
"@cleartrip/ct-platform-assets": "4.2.0-beta.114",
|
|
21
|
+
"@cleartrip/ct-platform-utils": "4.2.0-beta.114",
|
|
22
|
+
"@cleartrip/ct-platform-io-hoc": "4.2.0-beta.114",
|
|
23
|
+
"@cleartrip/ct-platform-types": "4.2.0-beta.114",
|
|
24
|
+
"@cleartrip/ct-platform-constants": "4.2.0-beta.114",
|
|
25
|
+
"@cleartrip/ct-platform-merch-carousel": "4.2.0-beta.114"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.8.0",
|