@cleartrip/ct-platform-rtbs 1.0.1-beta.3 → 1.0.1-beta.5

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 +1 @@
1
- {"version":3,"file":"RTBs.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAerD,OAAO,EAAa,QAAQ,EAAE,MAAM,cAAc,CAAC;AAInD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA8C5B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"RTBs.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAerD,OAAO,EAAa,QAAQ,EAAE,MAAM,cAAc,CAAC;AAInD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAwE5B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -7,6 +7,10 @@ export interface CardProps {
7
7
  bottomImage: string;
8
8
  sideImgAltText: string;
9
9
  bottomImageAltText: string;
10
+ itemId: string;
11
+ image: {
12
+ url: string;
13
+ };
10
14
  }
11
15
  export interface RTBProps {
12
16
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RTBs.types.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB,aAAa,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACjD"}
1
+ {"version":3,"file":"RTBs.types.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB,aAAa,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACjD"}
@@ -8,6 +8,10 @@ export declare const DefaultProps: {
8
8
  bottomImage: string;
9
9
  sideImgAltText: string;
10
10
  bottomImageAltText: string;
11
+ itemId: string;
12
+ image: {
13
+ url: string;
14
+ };
11
15
  }[];
12
16
  };
13
17
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;CAyDxB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAyExB,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),i=require("@cleartrip/ct-platform-merch-carousel"),o=require("@cleartrip/ct-design-theme"),r=require("@cleartrip/ct-design-typography"),s=require("@cleartrip/ct-platform-widget-manager");function l(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var n="index-module_container__R8KqS",m="index-module_leftContainer__NzVff",d="index-module_bottomImage__zP7vx";l(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var g=function(a){var i=a.title,o=a.bgColor,s=a.subtitles,l=a.sideImage,g=a.bottomImage,c=a.sideImgAltText,u=a.bottomImageAltText;return t.jsxs("div",e.__assign({className:n,style:{backgroundColor:o}},{children:[t.jsxs("div",e.__assign({className:m},{children:[t.jsxs("div",{children:[t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.HM3},{children:i})),s.map((function(a){return t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.B3},{children:a}),a)}))]}),t.jsx("img",{src:g,fetchPriority:"low",alt:u,className:d})]})),t.jsx("img",{width:154,height:144,src:l,alt:c})]}))},c={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1"},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2"},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3"},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medi-cancel.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4"}]},u="index-module_title__SB457",p="index-module_rtbSlide__cXva8";l(".index-module_title__SB457{padding-bottom:16px;padding-left:16px}.index-module_rtbSlide__cXva8:first-child{padding-left:16px}");exports.RTBWidget=function(l){var n=l.cards,m=l.title,d=l.carouselProps,_=a.useState(null!=m?m:c.title)[0],h=a.useState(null!=n?n:c.cardsData)[0],f=a.useCallback((function(a){return(null==a?void 0:a.slideData)?t.jsx("div",e.__assign({className:p},{children:t.jsx(g,e.__assign({},a.slideData),a.slideData.title)})):t.jsx(t.Fragment,{})}),[]),x=a.useCallback((function(){return{width:"292px",height:"144px"}}),[]);return t.jsxs(o.ThemeProvider,{children:[t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.HM3,className:u},{children:_})),t.jsx(i.MerchCarousel,e.__assign({},s.MerchCarouselPeekingProps,{slides:h,lazyWidget:!0,isAutoplay:!1,spacingBetween:16,slidesToDisplay:"auto"},d,{getSlideStyles:x,renderSlideItem:f}))]})};
1
+ "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),a=require("@cleartrip/ct-platform-merch-carousel"),o=require("@cleartrip/ct-design-theme"),l=require("@cleartrip/ct-design-typography"),s=require("@cleartrip/ct-platform-widget-manager");function r(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var n="index-module_container__R8KqS",m="index-module_leftContainer__NzVff",d="index-module_bottomImage__zP7vx";r(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var c=function(i){var a=i.title,o=i.bgColor,s=i.subtitles,r=i.sideImage,c=i.bottomImage,g=i.sideImgAltText,u=i.bottomImageAltText;return t.jsxs("div",e.__assign({className:n,style:{backgroundColor:o}},{children:[t.jsxs("div",e.__assign({className:m},{children:[t.jsxs("div",{children:[t.jsx(l.Typography,e.__assign({variant:l.TypographyVariant.HM3},{children:a})),s.map((function(i){return t.jsx(l.Typography,e.__assign({variant:l.TypographyVariant.B3},{children:i}),i)}))]}),t.jsx("img",{src:c,fetchPriority:"low",alt:u,className:d})]})),t.jsx("img",{width:154,height:144,src:r,alt:g})]}))},g={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1",itemId:"clearchoice_air",image:{url:"Dhoni%201.png"}},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2",itemId:"clearchoice_hotels",image:{url:"Dhoni%202.png"}},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3",itemId:"clearchoice_bus",image:{url:"Frame%201410121086.png"}},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medi-cancel.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4",itemId:"medicancel",image:{url:"dhoni%204.png"}}]},u="index-module_title__SB457",p="index-module_rtbSlide__cXva8";r(".index-module_title__SB457{padding-bottom:16px;padding-left:16px}.index-module_rtbSlide__cXva8:first-child{padding-left:16px}");exports.RTBWidget=function(r){var n=r.cards,m=r.title,d=r.carouselProps,_=i.useState(null!=m?m:g.title)[0],h=i.useState(null!=n?n:g.cardsData)[0],f=i.useCallback((function(i){return(null==i?void 0:i.slideData)?t.jsx("div",e.__assign({className:p,onClick:function(){i.onClick(null==i?void 0:i.slideData)}},{children:t.jsx(c,e.__assign({},i.slideData),i.slideData.title)})):t.jsx(t.Fragment,{})}),[]),x=i.useCallback((function(){return{width:"292px",height:"144px"}}),[]),b=i.useCallback((function(e,t,i){console.log("Click: ",e,t,i)}),[]),I=i.useCallback((function(e,t,i){console.log("Impression: ",e,t,i)}),[]),y=i.useCallback((function(){console.log("Widget Impression")}),[]);return t.jsxs(o.ThemeProvider,{children:[t.jsx(l.Typography,e.__assign({variant:l.TypographyVariant.HM3,className:u},{children:_})),t.jsx(a.MerchCarousel,e.__assign({},s.MerchCarouselPeekingProps,{slides:h,lazyWidget:!0,isAutoplay:!1,spacingBetween:16,slidesToDisplay:"auto"},d,{getSlideStyles:x,renderSlideItem:f,onItemClick:b,onItemImpression:I,onWidgetImpression:y}))]})};
2
2
  //# sourceMappingURL=ct-platform-rtbs.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-rtbs.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.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":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","jsx","src","fetchPriority","alt","width","height","DefaultProps","cardsData","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","_Fragment","Fragment","getSlideStyles","jsxs","ThemeProvider","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"iRAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ifCjBA,IAAMe,EAA+B,SAACC,GAClC,IAAAC,UACAC,YACAC,cACAC,EAASJ,EAAAI,UACTC,EAAWL,EAAAK,YACXC,EA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C,QAAAA,EAAS2B,EAAa3B,UACzCiC,EAAUD,EAAAA,SAASH,QAAAA,EAASF,EAAaC,cAE1CM,EAAkBC,eACpB,SAACC,GACG,OAAOA,aAAA,EAAAA,EAAMC,WACTxB,EAAAA,IAAK,MAAAD,EAAAA,SAAA,CAAAJ,UAAWC,GACZ,CAAAE,SAAAE,EAAAA,IAACf,EAAOc,EAAAA,SAAA,CAAA,EAAgCwB,EAAKC,WAA/BD,EAAKC,UAAUrC,UAGjCa,EAAAQ,IAAAiB,EAAAC,SAAA,CAAA,EAEP,GACD,IAGEC,EAAiBL,EAAAA,aAAY,WAC/B,MAAO,CACHV,MAAO,QACPC,OAAQ,QAEf,GAAE,IAEH,OACInB,EAACkC,KAAAC,gBACG,CAAA/B,SAAA,CAAAE,EAAAQ,IAACP,aAAUF,EAAAA,SAAA,CACPG,QAASC,EAAiBA,kBAACC,IAC3BT,UAAWC,GAAY,CAAAE,SAEtBoB,KAGLlB,EAAAQ,IAACsB,gBAAa/B,EAAAA,SAAA,CAAA,EACNgC,EAAyBA,0BAAA,CAC7BC,OAAQZ,EACRa,YAAY,EACZC,YAAY,EACZC,eAAgB,GAChBC,gBAAgB,QACZnB,EAAa,CACjBU,eAAgBA,EAChBN,gBAAiBA,OAIjC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-rtbs.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.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":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","jsx","src","fetchPriority","alt","width","height","DefaultProps","cardsData","itemId","image","url","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","onClick","_Fragment","Fragment","getSlideStyles","onItemClick","position","console","log","onItemImpression","onWidgetImpression","ThemeProvider","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"iRAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ifCjBA,IAAMe,EAA+B,SAACC,GAClC,IAAAC,UACAC,YACAC,cACAC,EAASJ,EAAAI,UACTC,EAAWL,EAAAK,YACXC,EAAcN,EAAAM,eACdC,EAAkBP,EAAAO,mBAElB,OACIC,yBAAKC,UAAWC,EAAkBpB,MAAO,CAAEqB,gBAAiBT,IAAS,CAAAU,SAAA,CACjEJ,OAAK,MAAAK,EAAAA,SAAA,CAAAJ,UAA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x-runtime";import{useState as o,useCallback as l}from"react";import{MerchCarousel as m}from"@cleartrip/ct-platform-merch-carousel";import{ThemeProvider as r}from"@cleartrip/ct-design-theme";import{Typography as n,TypographyVariant as d}from"@cleartrip/ct-design-typography";import{MerchCarouselPeekingProps as s}from"@cleartrip/ct-platform-widget-manager";function c(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var g="index-module_container__R8KqS",p="index-module_leftContainer__NzVff",u="index-module_bottomImage__zP7vx";c(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var f=function(a){var o=a.title,l=a.bgColor,m=a.subtitles,r=a.sideImage,s=a.bottomImage,c=a.sideImgAltText,f=a.bottomImageAltText;return e("div",t({className:g,style:{backgroundColor:l}},{children:[e("div",t({className:p},{children:[e("div",{children:[i(n,t({variant:d.HM3},{children:o})),m.map((function(e){return i(n,t({variant:d.B3},{children:e}),e)}))]}),i("img",{src:s,fetchPriority:"low",alt:f,className:u})]})),i("img",{width:154,height:144,src:r,alt:c})]}))},_={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1"},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2"},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3"},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medi-cancel.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4"}]},h="index-module_title__SB457",x="index-module_rtbSlide__cXva8";c(".index-module_title__SB457{padding-bottom:16px;padding-left:16px}.index-module_rtbSlide__cXva8:first-child{padding-left:16px}");var b=function(c){var g=c.cards,p=c.title,u=c.carouselProps,b=o(null!=p?p:_.title)[0],I=o(null!=g?g:_.cardsData)[0],T=l((function(e){return(null==e?void 0:e.slideData)?i("div",t({className:x},{children:i(f,t({},e.slideData),e.slideData.title)})):i(a,{})}),[]),B=l((function(){return{width:"292px",height:"144px"}}),[]);return e(r,{children:[i(n,t({variant:d.HM3,className:h},{children:b})),i(m,t({},s,{slides:I,lazyWidget:!0,isAutoplay:!1,spacingBetween:16,slidesToDisplay:"auto"},u,{getSlideStyles:B,renderSlideItem:T}))]})};export{b as RTBWidget};
1
+ import{__assign as e}from"tslib";import{jsxs as t,jsx as i,Fragment as a}from"react/jsx-runtime";import{useState as o,useCallback as l}from"react";import{MerchCarousel as m}from"@cleartrip/ct-platform-merch-carousel";import{ThemeProvider as n}from"@cleartrip/ct-design-theme";import{Typography as r,TypographyVariant as d}from"@cleartrip/ct-design-typography";import{MerchCarouselPeekingProps as s}from"@cleartrip/ct-platform-widget-manager";function c(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var g="index-module_container__R8KqS",u="index-module_leftContainer__NzVff",p="index-module_bottomImage__zP7vx";c(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var f=function(a){var o=a.title,l=a.bgColor,m=a.subtitles,n=a.sideImage,s=a.bottomImage,c=a.sideImgAltText,f=a.bottomImageAltText;return t("div",e({className:g,style:{backgroundColor:l}},{children:[t("div",e({className:u},{children:[t("div",{children:[i(r,e({variant:d.HM3},{children:o})),m.map((function(t){return i(r,e({variant:d.B3},{children:t}),t)}))]}),i("img",{src:s,fetchPriority:"low",alt:f,className:p})]})),i("img",{width:154,height:144,src:n,alt:c})]}))},h={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1",itemId:"clearchoice_air",image:{url:"Dhoni%201.png"}},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2",itemId:"clearchoice_hotels",image:{url:"Dhoni%202.png"}},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3",itemId:"clearchoice_bus",image:{url:"Frame%201410121086.png"}},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medi-cancel.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4",itemId:"medicancel",image:{url:"dhoni%204.png"}}]},_="index-module_title__SB457",x="index-module_rtbSlide__cXva8";c(".index-module_title__SB457{padding-bottom:16px;padding-left:16px}.index-module_rtbSlide__cXva8:first-child{padding-left:16px}");var b=function(c){var g=c.cards,u=c.title,p=c.carouselProps,b=o(null!=u?u:h.title)[0],I=o(null!=g?g:h.cardsData)[0],T=l((function(t){return(null==t?void 0:t.slideData)?i("div",e({className:x,onClick:function(){t.onClick(null==t?void 0:t.slideData)}},{children:i(f,e({},t.slideData),t.slideData.title)})):i(a,{})}),[]),B=l((function(){return{width:"292px",height:"144px"}}),[]),v=l((function(e,t,i){console.log("Click: ",e,t,i)}),[]),w=l((function(e,t,i){console.log("Impression: ",e,t,i)}),[]),y=l((function(){console.log("Widget Impression")}),[]);return t(n,{children:[i(r,e({variant:d.HM3,className:_},{children:b})),i(m,e({},s,{slides:I,lazyWidget:!0,isAutoplay:!1,spacingBetween:16,slidesToDisplay:"auto"},p,{getSlideStyles:B,renderSlideItem:T,onItemClick:v,onItemImpression:w,onWidgetImpression:y}))]})};export{b as RTBWidget};
2
2
  //# sourceMappingURL=ct-platform-rtbs.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-rtbs.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.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":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","src","fetchPriority","alt","width","height","DefaultProps","cardsData","RTBs","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","_Fragment","getSlideStyles","ThemeProvider","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"0bAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ifCjBA,IAAMe,EAA+B,SAACC,GAClC,IAAAC,UACAC,YACAC,cACAC,EAASJ,EAAAI,UACTC,EAAWL,EAAAK,YACXC,EAAcN,EAAAM,eACdC,EAAkBP,EAAAO,mBAElB,OACIC,WAAKC,UAAWC,EAAkBpB,MAAO,CAAEqB,gBAAiBT,IAAS,CAAAU,SAAA,CACjEJ,EAAK,MAAAK,EAAA,CAAAJ,UAAWC,GAAoB,CAAAE,SAAA,CAChCJ,EACI,MAAA,CAAAI,SAAA,CAAAE,EAACC,EAAWF,EAAA,CAAAG,QAASC,EAAkBC,KAClC,CAAAN,SAAAX,KAEJE,EAAUgB,KAAI,SAACC,GAAa,OACzBN,EAACC,EAAUF,EAAA,CAEPG,QAASC,EAAkBI,IAE1B,CAAAT,SAAAQ,IAHIA,EAKZ,OAGLN,EAA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C,IAC3BT,UAAWC,GAAY,CAAAE,SAEtBoB,KAGLlB,EAAC4B,EAAa7B,EAAA,CAAA,EACN8B,EAAyB,CAC7BC,OAAQV,EACRW,YAAY,EACZC,YAAY,EACZC,eAAgB,GAChBC,gBAAgB,QACZjB,EAAa,CACjBS,eAAgBA,EAChBL,gBAAiBA,OAIjC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-rtbs.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.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":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","src","fetchPriority","alt","width","height","DefaultProps","cardsData","itemId","image","url","RTBs","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","onClick","_Fragment","getSlideStyles","onItemClick","position","console","log","onItemImpression","onWidgetImpression","ThemeProvider","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"0bAAA,SAASA,E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GEI,EAAqBX,GAAY,WACnCQ,QAAQC,IAAI,oBACf,GAAE,IAEH,OACIxC,EAAC2C,EAAa,CAAAvC,SAAA,CACVE,EAACC,EAAUF,EAAA,CACPG,QAASC,EAAkBC,IAC3BT,UAAWC,GAEV,CAAAE,SAAAuB,KAGLrB,EAACsC,EAAavC,EAAA,CAAA,EACNwC,EAAyB,CAC7BC,OAAQjB,EACRkB,YAAY,EACZC,YAAY,EACZC,eAAgB,GAChBC,gBAAgB,QACZxB,EAAa,CACjBU,eAAgBA,EAChBN,gBAAiBA,EACjBO,YAAaA,EACbI,iBAAkBA,EAClBC,mBAAoBA,OAIpC","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-rtbs",
3
- "version": "1.0.1-beta.3",
3
+ "version": "1.0.1-beta.5",
4
4
  "description": "RTB Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-rtbs.cjs.js",
@@ -13,8 +13,8 @@
13
13
  "@cleartrip/ct-design-theme": "3.7.0",
14
14
  "@cleartrip/ct-design-typography": "3.7.0",
15
15
  "classnames": "^2.5.1",
16
- "@cleartrip/ct-platform-merch-carousel": "3.1.1-beta.6",
17
- "@cleartrip/ct-platform-widget-manager": "3.1.1-beta.6"
16
+ "@cleartrip/ct-platform-merch-carousel": "3.1.1-beta.8",
17
+ "@cleartrip/ct-platform-widget-manager": "3.1.1-beta.8"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0",