@cleartrip/ct-platform-top-offers 2.4.0 → 2.4.1

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,5 +1,4 @@
1
- import React from 'react';
2
- import { TopOffersProps } from './TopOffers.types';
3
- declare const TopOffers: React.FC<TopOffersProps>;
1
+ import { IBaseItemProps, ITopOffersProps } from './TopOffers.types';
2
+ declare const TopOffers: <T extends IBaseItemProps = IBaseItemProps>({ lazyWidget, eligibleUserType, isLoadingOffers, widgetData, getSlideStyles, ravenPayload, }: ITopOffersProps<T>) => import("react/jsx-runtime").JSX.Element;
4
3
  export default TopOffers;
5
4
  //# sourceMappingURL=TopOffers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopOffers.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiGvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TopOffers.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAiBpE,QAAA,MAAM,SAAS,0MA6Jd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,4 +1,24 @@
1
- export interface TopOffersProps {
2
- config?: string[];
1
+ import { CSSProperties } from 'react';
2
+ export type IBaseItemProps = Record<string, any>;
3
+ export interface ITopOffersItems<T extends IBaseItemProps> {
4
+ items?: T[];
5
+ }
6
+ export interface ITopOffersData<T extends IBaseItemProps> {
7
+ slidesToDisplay: number;
8
+ title?: string;
9
+ forYou?: ITopOffersItems<T>;
10
+ bank?: ITopOffersItems<T>;
11
+ flights?: ITopOffersItems<T>;
12
+ hotels?: ITopOffersItems<T>;
13
+ buses?: ITopOffersItems<T>;
14
+ trains?: ITopOffersItems<T>;
15
+ }
16
+ export interface ITopOffersProps<T extends IBaseItemProps = IBaseItemProps> {
17
+ lazyWidget: boolean;
18
+ eligibleUserType?: string;
19
+ isLoadingOffers?: boolean;
20
+ widgetData: ITopOffersData<T>;
21
+ getSlideStyles?: (slide: any) => CSSProperties;
22
+ ravenPayload?: Record<string, unknown>;
3
23
  }
4
24
  //# sourceMappingURL=TopOffers.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopOffers.types.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
1
+ {"version":3,"file":"TopOffers.types.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEjD,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,cAAc;IACrD,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;CACf;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,cAAc;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;IACtE,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,aAAa,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,7 @@
1
+ export declare const WIDGET_HEADER = "Top offers";
2
+ export declare const PILL_CAROUSEL_CONFIG: {
3
+ text: string;
4
+ imageUrl: any;
5
+ value: string;
6
+ }[];
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/constants.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,eAAO,MAAM,oBAAoB;;;;GA+BhC,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),a=require("@cleartrip/ct-design-typography"),r=require("@cleartrip/ct-platform-assets"),i=require("@cleartrip/ct-platform-merch-carousel"),l=require("@cleartrip/ct-platform-pill-carousel"),s=require("@cleartrip/ct-platform-widget-manager");var o="index-module_top-offers__container__Z747x",p="index-module_top-offers__header__hIxia";!function(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");.index-module_top-offers__container__Z747x{align-items:flex-start;background:linear-gradient(180deg,#e4edff,#f7faff);display:flex;flex-direction:column;gap:16px;padding:16px 0 24px}.index-module_top-offers__header__hIxia{font-feature-settings:"dlig" on,"clig" off,"liga" off;font-family:Inter;font-style:normal;padding-left:16px}');exports.TopOffers=function(m){return m.config,t.jsx(t.Fragment,{children:t.jsxs("div",e.__assign({className:o},{children:[t.jsx(a.Typography,e.__assign({variant:a.TypographyVariant.HM3,className:p},{children:"Top Offers"})),t.jsx(l.PillCarousel,{carouselData:[{text:"For you",imageUrl:r.ForYouPill},{text:"Bank",imageUrl:r.BankPill},{text:"Flights",imageUrl:r.FlightPill},{text:"Hotels",imageUrl:r.HotelPill},{text:"Buses",imageUrl:r.BusPill},{text:"Trains",imageUrl:r.TrainPill}],carouselType:l.CarouselType.PILL_CHIP,onItemClick:function(){},styleConfig:{carouselStyleConfig:{paddingLeft:"16px",paddingRight:"16px"}}}),t.jsx("div",e.__assign({style:{width:"100%",marginTop:"8px"}},{children:t.jsx(i.MerchCarousel,e.__assign({slidesToDisplay:1.5,slides:[{itemId:"item1",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 1"}},{itemId:"item2",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 2"}},{itemId:"item3",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 3"}},{itemId:"item4",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 4"}},{itemId:"item5",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 5"}}]},s.MerchCarouselPeekingProps))}))]}))})};
1
+ "use strict";var e=require("tslib"),i=require("react/jsx-runtime"),l=require("react"),n=require("styled-components"),t=require("@cleartrip/ct-design-typography"),r=require("@cleartrip/ct-platform-merch-carousel"),a=require("@cleartrip/ct-platform-pill-carousel"),o=require("@cleartrip/ct-platform-utils"),s=require("@cleartrip/ct-platform-assets");function u(e){return e&&e.__esModule?e:{default:e}}var p,d,c=u(n),f=[{text:"For you",imageUrl:s.ForYouPill,value:"forYou"},{text:"Bank",imageUrl:s.BankPill,value:"bank"},{text:"Flights",imageUrl:s.FlightPill,value:"flights"},{text:"Hotels",imageUrl:s.HotelPill,value:"hotels"},{text:"Buses",imageUrl:s.BusPill,value:"buses"},{text:"Trains",imageUrl:s.TrainPill,value:"trains"}],g=c.default.div(p||(p=e.__makeTemplateObject(["\n margin: 16px 0;\n"],["\n margin: 16px 0;\n"]))),v=c.default.div(d||(d=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-top: 16px;\n padding-bottom: 16px;\n padding-left: 16px;\n gap: 16px;\n background: #eaf0ff;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-top: 16px;\n padding-bottom: 16px;\n padding-left: 16px;\n gap: 16px;\n background: #eaf0ff;\n"])));exports.TopOffers=function(n){var s=n.lazyWidget,u=n.eligibleUserType,p=n.isLoadingOffers,d=n.widgetData,c=n.getSlideStyles,m=n.ravenPayload,_=l.useState(""),x=_[0],y=_[1],h=l.useState([]),T=h[0],k=h[1],P=l.useState([]),S=P[0],b=P[1],C=l.useMemo((function(){var e;return null!==(e=o.getQueryParam("utm_source"))&&void 0!==e?e:"organic"}),[]);l.useEffect((function(){if(d){var i=f.filter((function(e){var i;return(null===(i=null==d?void 0:d[e.value])||void 0===i?void 0:i.items.length)>0}));u&&(i=i.filter((function(e){var i;return(null===(i=null==d?void 0:d[e.value])||void 0===i?void 0:i.items.filter((function(e){return!(null==e?void 0:e.userType)||e.userType===u}))).length>0}))),i.length&&(b(i),y(i[0].value)),o.ravenSDKTrigger("u_impression",e.__assign({action_name:"top_offers_widget_impression",page_name:"unified_homepage",u_utm_source:C},(null==m?void 0:m.topOffers)||{}))}}),[]),l.useEffect((function(){var e;if(x){var i=(null===(e=null==d?void 0:d[x])||void 0===e?void 0:e.items)||[];u&&(i=i.filter((function(e){return!(null==e?void 0:e.userType)||e.userType===u}))),k(i)}}),[u,x]);var j=l.useCallback((function(e){y(e.value)}),[]),q=l.useCallback((function(i,l,n){var t;o.ravenSDKTrigger("u_ui_action",e.__assign({action_name:"top_offers_card_click",page_name:"unified_homepage",action_type:"click",u_utm_source:C,slot_id:i,url:null===(t=null==l?void 0:l.split("/"))||void 0===t?void 0:t.pop(),percent_scroll:n,offer_type:x},(null==m?void 0:m.topOffers)||{}))}),[x,m]),w=l.useCallback((function(i,l,n){var t;o.ravenSDKTrigger("u_impression",e.__assign({action_name:"top_offers_card_impression",page_name:"unified_homepage",u_utm_source:C,slot_id:i,url:null===(t=null==l?void 0:l.split("/"))||void 0===t?void 0:t.pop(),percent_scroll:n},(null==m?void 0:m.topOffers)||{}))}),[m]);return i.jsx(i.Fragment,{children:x&&i.jsxs(g,{children:[i.jsxs(v,{children:[i.jsx(t.Typography,e.__assign({variant:t.TypographyVariant.HM3},{children:(null==d?void 0:d.title)||"Top offers"})),i.jsx(a.PillCarousel,{carouselType:a.CarouselType.PILL_CHIP,carouselData:S,onItemClick:function(e){return j(e)},carouselConfig:{pillsPerView:3.5,spaceBetweenPills:8},styleConfig:{carouselStyleConfig:{paddingRight:"16px"}}})]}),i.jsx(r.MerchCarousel,{isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:s,isLoading:p,isLoopAdditionalSlides:!s,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:0,slidesToDisplay:null==d?void 0:d.slidesToDisplay,slides:T,getSlideStyles:c,onItemClick:function(e,i,l){return q(e,i,l)},onItemImpression:function(e,i,l){return w(e,i,l)}},x)]})})};
2
2
  //# sourceMappingURL=ct-platform-top-offers.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-top-offers.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TopOffers/src/TopOffers.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","config","_jsx","_Fragment","children","_jsxs","jsxs","__assign","className","styles","Typography","variant","TypographyVariant","HM3","PillCarousel","carouselData","text","imageUrl","ForYouPill","BankPill","FlightPill","HotelPill","BusPill","TrainPill","carouselType","CarouselType","PILL_CHIP","onItemClick","styleConfig","carouselStyleConfig","paddingLeft","paddingRight","width","marginTop","MerchCarousel","slidesToDisplay","slides","itemId","targetUrl","image","url","alt","MerchCarouselPeekingProps"],"mappings":"iZAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,M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IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,cAIbC,EAAyBA,oCAMrD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-top-offers.cjs.js","sources":["../packages/components/TopOffers/src/constants.ts","../packages/components/TopOffers/src/TopOffers.tsx"],"sourcesContent":[null,null],"names":["PILL_CAROUSEL_CONFIG","text","imageUrl","ForYouPill","value","BankPill","FlightPill","HotelPill","BusPill","TrainPill","TopOffersContainer","styled","default","div","templateObject_1","__makeTemplateObject","TopOffersHeader","templateObject_2","_a","lazyWidget","eligibleUserType","isLoadingOffers","widgetData","getSlideStyles","ravenPayload","_b","useState","selectedFilter","setSelectedFilter","_c","filteredSlides","setFilteredSlides","_d","pillCarouselConfig","setPillCarouselConfig","utmSource","useMemo","getQueryParam","useEffect","availableFilters","filter","data","items","length","item","userType","ravenSDKTrigger","__assign","action_name","page_name","u_utm_source","topOffers","slidesByUserType","handleFilterClick","useCallback","handleItemClick","itemId","src","percentage","action_type","slot_id","url","split","pop","percent_scroll","offer_type","handleItemImpression","_jsx","_Fragment","children","_jsxs","jsx","Typography","variant","TypographyVariant","HM3","title","PillCarousel","carouselType","CarouselType","PILL_CHIP","carouselData","onItemClick","carouselConfig","pillsPerView","spaceBetweenPills","styleConfig","carouselStyleConfig","paddingRight","MerchCarousel","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","isLoading","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","slides","onItemImpression"],"mappings":"8ZAWaA,EAAuB,CAChC,CACIC,KAAM,UACNC,SAAUC,EAAUA,WACpBC,MAAO,UAEX,CACIH,KAAM,OACNC,SAAUG,EAAQA,SAClBD,MAAO,QAEX,CACIH,KAAM,UACNC,SAAUI,EAAUA,WACpBF,MAAO,WAEX,CACIH,KAA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AC,SAAA1C,GACG2C,OAAC5D,EACG,CAAA2D,SAAA,CAAAC,EAAAA,KAACtD,EAAe,CAAAqD,SAAA,CACZF,EAACI,IAAAC,aAAWzB,EAAAA,SAAA,CAAA0B,QAASC,EAAiBA,kBAACC,KAClC,CAAAN,UAAA/C,aAAU,EAAVA,EAAYsD,QDpIZ,gBCuILT,MAACU,EAAAA,aAAY,CACTC,aAAcC,eAAaC,UAC3BC,aAAchD,EACdiD,YAAa,SAACzC,GAAS,OAAAY,EAAkBZ,EAAlB,EACvB0C,eAAgB,CACZC,aAAc,IACdC,kBAAmB,GAEvBC,YAAa,CACTC,oBAAqB,CACjBC,aAAc,cAM9BrB,EAAAA,IAACsB,EAAaA,cAAA,CAEVC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UAAU,EACV3E,WAAYA,EACZ4E,UAAW1E,EACX2E,wBAAyB7E,EACzB8E,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,EAChBC,gBAAiB/E,aAAU,EAAVA,EAAY+E,gBAC7BC,OAAQxE,EACRP,eAAgBA,EAChB2D,YAAa,SAAC1B,EAAQC,EAAKC,GACvB,OAAAH,EAAgBC,EAAQC,EAAKC,EAAW,EAE5C6C,iBAAkB,SAAC/C,EAAQC,EAAKC,GAC5B,OAAAQ,EAAqBV,EAAQC,EAAKC,EAAW,GApB5C/B,OA2B7B"}
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as e,Fragment as a,jsxs as r}from"react/jsx-runtime";import{Typography as i,TypographyVariant as o}from"@cleartrip/ct-design-typography";import{ForYouPill as l,BankPill as m,FlightPill as p,HotelPill as s,BusPill as f,TrainPill as n}from"@cleartrip/ct-platform-assets";import{MerchCarousel as c}from"@cleartrip/ct-platform-merch-carousel";import{PillCarousel as d,CarouselType as g}from"@cleartrip/ct-platform-pill-carousel";import{MerchCarouselPeekingProps as u}from"@cleartrip/ct-platform-widget-manager";var _="index-module_top-offers__container__Z747x",h="index-module_top-offers__header__hIxia";!function(t,e){void 0===e&&(e={});var a=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");.index-module_top-offers__container__Z747x{align-items:flex-start;background:linear-gradient(180deg,#e4edff,#f7faff);display:flex;flex-direction:column;gap:16px;padding:16px 0 24px}.index-module_top-offers__header__hIxia{font-feature-settings:"dlig" on,"clig" off,"liga" off;font-family:Inter;font-style:normal;padding-left:16px}');var x=function(x){return x.config,e(a,{children:r("div",t({className:_},{children:[e(i,t({variant:o.HM3,className:h},{children:"Top Offers"})),e(d,{carouselData:[{text:"For you",imageUrl:l},{text:"Bank",imageUrl:m},{text:"Flights",imageUrl:p},{text:"Hotels",imageUrl:s},{text:"Buses",imageUrl:f},{text:"Trains",imageUrl:n}],carouselType:g.PILL_CHIP,onItemClick:function(){},styleConfig:{carouselStyleConfig:{paddingLeft:"16px",paddingRight:"16px"}}}),e("div",t({style:{width:"100%",marginTop:"8px"}},{children:e(c,t({slidesToDisplay:1.5,slides:[{itemId:"item1",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 1"}},{itemId:"item2",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 2"}},{itemId:"item3",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 3"}},{itemId:"item4",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 4"}},{itemId:"item5",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 5"}}]},u))}))]}))})};export{x as TopOffers};
1
+ import{__makeTemplateObject as e,__assign as i}from"tslib";import{jsx as n,Fragment as t,jsxs as o}from"react/jsx-runtime";import{useState as l,useMemo as r,useEffect as a,useCallback as s}from"react";import u from"styled-components";import{Typography as p,TypographyVariant as d}from"@cleartrip/ct-design-typography";import{MerchCarousel as f}from"@cleartrip/ct-platform-merch-carousel";import{PillCarousel as c,CarouselType as m}from"@cleartrip/ct-platform-pill-carousel";import{getQueryParam as g,ravenSDKTrigger as v}from"@cleartrip/ct-platform-utils";import{ForYouPill as _,BankPill as x,FlightPill as y,HotelPill as h,BusPill as T,TrainPill as b}from"@cleartrip/ct-platform-assets";var k,w,S=[{text:"For you",imageUrl:_,value:"forYou"},{text:"Bank",imageUrl:x,value:"bank"},{text:"Flights",imageUrl:y,value:"flights"},{text:"Hotels",imageUrl:h,value:"hotels"},{text:"Buses",imageUrl:T,value:"buses"},{text:"Trains",imageUrl:b,value:"trains"}],C=u.div(k||(k=e(["\n margin: 16px 0;\n"],["\n margin: 16px 0;\n"]))),I=u.div(w||(w=e(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-top: 16px;\n padding-bottom: 16px;\n padding-left: 16px;\n gap: 16px;\n background: #eaf0ff;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-top: 16px;\n padding-bottom: 16px;\n padding-left: 16px;\n gap: 16px;\n background: #eaf0ff;\n"]))),U=function(e){var u=e.lazyWidget,_=e.eligibleUserType,x=e.isLoadingOffers,y=e.widgetData,h=e.getSlideStyles,T=e.ravenPayload,b=l(""),k=b[0],w=b[1],U=l([]),L=U[0],P=U[1],B=l([]),D=B[0],O=B[1],z=r((function(){var e;return null!==(e=g("utm_source"))&&void 0!==e?e:"organic"}),[]);a((function(){if(y){var e=S.filter((function(e){var i;return(null===(i=null==y?void 0:y[e.value])||void 0===i?void 0:i.items.length)>0}));_&&(e=e.filter((function(e){var i;return(null===(i=null==y?void 0:y[e.value])||void 0===i?void 0:i.items.filter((function(e){return!(null==e?void 0:e.userType)||e.userType===_}))).length>0}))),e.length&&(O(e),w(e[0].value)),v("u_impression",i({action_name:"top_offers_widget_impression",page_name:"unified_homepage",u_utm_source:z},(null==T?void 0:T.topOffers)||{}))}}),[]),a((function(){var e;if(k){var i=(null===(e=null==y?void 0:y[k])||void 0===e?void 0:e.items)||[];_&&(i=i.filter((function(e){return!(null==e?void 0:e.userType)||e.userType===_}))),P(i)}}),[_,k]);var F=s((function(e){w(e.value)}),[]),H=s((function(e,n,t){var o;v("u_ui_action",i({action_name:"top_offers_card_click",page_name:"unified_homepage",action_type:"click",u_utm_source:z,slot_id:e,url:null===(o=null==n?void 0:n.split("/"))||void 0===o?void 0:o.pop(),percent_scroll:t,offer_type:k},(null==T?void 0:T.topOffers)||{}))}),[k,T]),A=s((function(e,n,t){var o;v("u_impression",i({action_name:"top_offers_card_impression",page_name:"unified_homepage",u_utm_source:z,slot_id:e,url:null===(o=null==n?void 0:n.split("/"))||void 0===o?void 0:o.pop(),percent_scroll:t},(null==T?void 0:T.topOffers)||{}))}),[T]);return n(t,{children:k&&o(C,{children:[o(I,{children:[n(p,i({variant:d.HM3},{children:(null==y?void 0:y.title)||"Top offers"})),n(c,{carouselType:m.PILL_CHIP,carouselData:D,onItemClick:function(e){return F(e)},carouselConfig:{pillsPerView:3.5,spaceBetweenPills:8},styleConfig:{carouselStyleConfig:{paddingRight:"16px"}}})]}),n(f,{isFreeSwipe:!1,isCentered:!1,isInfinite:!1,isAutoplay:!1,lazyLoad:!0,lazyWidget:u,isLoading:x,isLoopAdditionalSlides:!u,showNavigation:!1,showPagination:!1,startingSlide:0,spacingBetween:0,slidesToDisplay:null==y?void 0:y.slidesToDisplay,slides:L,getSlideStyles:h,onItemClick:function(e,i,n){return H(e,i,n)},onItemImpression:function(e,i,n){return A(e,i,n)}},k)]})})};export{U as TopOffers};
2
2
  //# sourceMappingURL=ct-platform-top-offers.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-top-offers.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TopOffers/src/TopOffers.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TopOffers","_a","config","_jsx","_Fragment","children","_jsxs","__assign","className","styles","Typography","variant","TypographyVariant","HM3","PillCarousel","carouselData","text","imageUrl","ForYouPill","BankPill","FlightPill","HotelPill","BusPill","TrainPill","carouselType","CarouselType","PILL_CHIP","onItemClick","styleConfig","carouselStyleConfig","paddingLeft","paddingRight","width","marginTop","MerchCarousel","slidesToDisplay","slides","itemId","targetUrl","image","url","alt","MerchCarouselPeekingProps"],"mappings":"qoBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SA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XC,MAAO,CACHC,IAAK,2HACLC,IAAK,cAIbC,YAM5B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-top-offers.esm.js","sources":["../packages/components/TopOffers/src/constants.ts","../packages/components/TopOffers/src/TopOffers.tsx"],"sourcesContent":[null,null],"names":["PILL_CAROUSEL_CONFIG","text","imageUrl","ForYouPill","value","BankPill","FlightPill","HotelPill","BusPill","TrainPill","TopOffersContainer","styled","div","templateObject_1","__makeTemplateObject","TopOffersHeader","templateObject_2","TopOffers","_a","lazyWidget","eligibleUserType","isLoadingOffers","widgetData","getSlideStyles","ravenPayload","_b","useState","selectedFilter","setSelectedFilter","_c","filteredSlides","setFilteredSlides","_d","pillCarouselConfig","setPillCarouselConfig","utmSource","useMemo","getQueryParam","useEffect","availableFilters","filter","data","items","length","item","userType","ravenSDKTrigger","__assign","action_name","page_name","u_utm_source","topOffers","slidesByUserType","handleFilterClick","useCallback","handleItemClick","itemId","src","percentage","action_type","slot_id","url","split","pop","percent_scroll","offer_type","handleItemImpression","_jsx","_Fragment","children","_jsxs","Typography","variant","TypographyVariant","HM3","title","PillCarousel","carouselType","CarouselType","PILL_CHIP","carouselData","onItemClick","carouselConfig","pillsPerView","spaceBetweenPills","styleConfig","carouselStyleConfig","paddingRight","MerchCarousel","isFreeSwipe","isCentered","isInfinite","isAutoplay","lazyLoad","isLoading","isLoopAdditionalSlides","showNavigation","showPagination","startingSlide","spacingBetween","slidesToDisplay","slides","onItemImpression"],"mappings":"grBASO,QAEMA,EAAuB,CAChC,CACIC,KAAM,UACNC,SAAUC,EACVC,MAAO,UAEX,CACIH,KAAM,OACNC,SAAUG,EACVD,MAAO,QAEX,CACIH,KAAM,UACNC,SAAUI,EACVF,MAAO,WAEX,CACIH,KAAM,SACNC,SAAUK,EACVH,MAAO,UAEX,CACIH,KAAM,QACNC,SAAUM,EACVJ,MAAO,SAEX,CACIH,KAAM,SACNC,SAAUO,EACVL,MAAO,WCxBTM,EAAqBC,EAAOC,IAAGC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lB,EACvByC,eAAgB,CACZC,aAAc,IACdC,kBAAmB,GAEvBC,YAAa,CACTC,oBAAqB,CACjBC,aAAc,cAM9BpB,EAACqB,EAAa,CAEVC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,UAAU,EACV1E,WAAYA,EACZ2E,UAAWzE,EACX0E,wBAAyB5E,EACzB6E,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAe,EACfC,eAAgB,EAChBC,gBAAiB9E,aAAU,EAAVA,EAAY8E,gBAC7BC,OAAQvE,EACRP,eAAgBA,EAChB0D,YAAa,SAACzB,EAAQC,EAAKC,GACvB,OAAAH,EAAgBC,EAAQC,EAAKC,EAAW,EAE5C4C,iBAAkB,SAAC9C,EAAQC,EAAKC,GAC5B,OAAAQ,EAAqBV,EAAQC,EAAKC,EAAW,GApB5C/B,OA2B7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-top-offers",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Top Offers Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-top-offers.cjs.js",
@@ -12,10 +12,9 @@
12
12
  "dependencies": {
13
13
  "@cleartrip/ct-design-typography": "2.6.0",
14
14
  "swiper": "6.8.4",
15
- "@cleartrip/ct-platform-assets": "2.4.0",
16
- "@cleartrip/ct-platform-pill-carousel": "0.0.1",
17
- "@cleartrip/ct-platform-merch-carousel": "2.4.0",
18
- "@cleartrip/ct-platform-widget-manager": "2.5.0"
15
+ "@cleartrip/ct-platform-merch-carousel": "3.5.1",
16
+ "@cleartrip/ct-platform-assets": "3.0.1",
17
+ "@cleartrip/ct-platform-pill-carousel": "0.0.2"
19
18
  },
20
19
  "peerDependencies": {
21
20
  "react": ">=16.8.0",