@cleartrip/ct-platform-banner 1.0.0-beta.6 → 1.0.0-beta.7
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,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=require("tslib"),n=require("react/jsx-runtime"),e=require("react"),a=require("@cleartrip/ct-platform-assets");!function(t,n){void 0===n&&(n={});var e=n.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===e&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".ct-banner{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Ubuntu,Arial,sans-serif}.ct-banner .m-0{margin:0!important}.ct-banner .ml-4{margin-left:4px!important}.ct-banner .mb-5{margin-bottom:5px!important}.ct-banner .mb-2{margin-bottom:2px!important}.ct-banner .p-0{padding:0!important}.ct-banner .py-8{padding-bottom:8px!important;padding-top:8px!important}.ct-banner .mr-12{margin-right:12px!important}.ct-banner .pr-20{padding-right:20px!important}.ct-banner .pl-4{padding-left:4px!important}.ct-banner .pl-20{padding-left:20px!important}.ct-banner .fw-600{font-weight:600!important}.ct-banner .fs-2{font-size:12px!important}.ct-banner .fs-2,.ct-banner .lh-16{line-height:16px!important}.ct-banner .lh-20{line-height:20px!important}.ct-banner .d-none{display:none!important}.ct-banner .c-tripblue{color:#0f6bff!important}.ct-banner .pr-16{padding-right:16px!important}.ct-banner .fw-500{font-weight:500!important}.ct-banner .bento-c-neutral-500{color:gray!important}.ct-banner .animateSlideIn{-webkit-transition:all .3s ease-in-out!important;transition:all .3s ease-in-out!important}.ct-banner .mb-12{margin-bottom:12px!important}.ct-banner .h-48p{height:48px!important}.ct-banner .w-100p{width:100%!important}.ct-banner .w-50p{width:50%!important}.ct-banner .w-fit-content{width:fit-content!important}.ct-banner .bento-bg-secondary-500{background-color:#36c!important}.ct-banner .c-white{color:#fff!important}.ct-banner .mr-16{margin-right:16px!important}.ct-banner .ml-20{margin-left:20px!important}.ct-banner .flex-middle{align-items:center!important}.ct-banner .flex-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.ct-banner .flex-around{justify-content:space-around!important}.ct-banner .flex{display:flex!important}.ct-banner .fs-14{font-size:14px!important}.ct-banner .pl-15{padding-left:15px!important}.ct-banner .pr-24{padding-right:24px!important}.ct-banner .pt-8{padding-top:8px!important}.ct-banner .pb-24{padding-bottom:24px!important}.ct-banner .z-20{z-index:20!important}.ct-banner .w-100vw{width:100vw!important}.ct-banner .bg-orange-light-100{background-color:#fff1ec!important}.ct-banner .px-16{padding-left:16px!important;padding-right:16px!important}.ct-banner .br-6-imp{border-radius:6px!important}.ct-banner .p-relative{position:relative!important}.ct-banner .p-absolute{position:absolute!important}.ct-banner .p-fixed{position:fixed!important}.ct-banner .r-0{right:0!important}.ct-banner .t-0{top:0!important}.ct-banner .l-0{left:0!important}.ct-banner .b--4{bottom:-4px!important}.ct-banner .flex-grow{-webkit-box-flex:1!important;-ms-flex-positive:1!important;flex-grow:1!important}.ct-banner .bento-c-neutral-900{color:#1a1a1a!important}.ct-banner .pb-8{padding-bottom:8px!important}.ct-banner .bg-black{background-color:#000!important}.ct-banner .pl-16{padding-left:16px!important}.ct-banner .pt-12{padding-top:12px!important}.ct-banner .flex-column{flex-direction:column!important}.ct-banner .flex-start{align-items:flex-start!important}");exports.CTBanner=function(i){var r=i.campaignTopic,o=i.isMobileApp,s=i.isDesktop,c=i.initialProps,p=i.tupleIndex,l=i.componentClassNames,m=i.onClick,b=i.onLoad,d=e.useState(c||void 0),g=d[0],x=d[1],_=e.useRef(null),f=g||{},u=f.img_url,h=f.img_class,v=f.img_height,y=f.img_style,w=f.appBanner,j=f.pwaBanner,k=f.title_class,N=f.title,S=f.subTitle,C=f.subtitle_class,T=f.cta,J=f.cta_class,O=f.cta_copy_class,B=f.cta_style,F=f.title_container_class,E=f.title_container_style,L=f.banner_icon,q=f.banner_icon_class,z=f.content_icon,I=f.content_icon_class,R=f.button_one_link,A=f.button_two_link,M=f.btn1_Style,D=f.btn2_Style,U=f.btn1_class,H=f.btn2_class,P=f.banner_container_class,G=f.banner_container_style,K=f.banner_icon_style,Q=f.content_icon_style,V=f.redirection_link,W=f.open_in_new_tab,X=f.index,Y=f.clickable_banner,Z=f.is_banner_icon,$=f.is_content_icon,tt=X&&parseInt(X),nt="true"===W?"_blank":"_self",et=e.useCallback((function(){"true"===Y&&(V&&("true"===W?window.open(V,"_blank"):window.location.href=V),m&&m())}),[Y,V,W,m]),at=e.useCallback((function(){"false"===Y&&m()}),[Y,m]),it=o&&"true"===w||!o&&"true"===j||s;e.useLayoutEffect((function(){if(g){var t=_.current,n=t?t.getBoundingClientRect().height:0;b&&n>0&&b()}}),[g]),e.useEffect((function(){var t=function(t){var n,e=null==t?void 0:t.detail;(null===(n=null==e?void 0:e.kv)||void 0===n?void 0:n.topic)===r&&x(null==e?void 0:e.kv)};return document.addEventListener("CT_web_native_display",t),function(){document.removeEventListener("CT_web_native_display",t)}}),[r]);var rt={},ot={},st={},ct={},pt={},lt={},mt={},bt={};try{K&&(mt=JSON.parse(K)),y&&(rt=JSON.parse(y)),B&&(ot=JSON.parse(B)),E&&(st=JSON.parse(E)),M&&(ct=JSON.parse(M)),D&&(pt=JSON.parse(D)),G&&(lt=JSON.parse(G)),Q&&(bt=JSON.parse(Q))}catch(t){}return n.jsx(n.Fragment,{children:it&&(tt===p||void 0===X)&&n.jsx("div",{children:n.jsx("div",t.__assign({className:"ct-banner p-relative ".concat(l||""),ref:_},{children:n.jsxs("div",t.__assign({style:rt,onClick:et},{children:[u&&n.jsx("img",{src:u,className:h,height:v}),(R||A)&&n.jsxs(n.Fragment,{children:[n.jsx("a",t.__assign({href:R,target:nt},{children:n.jsx("div",{className:U,style:ct})})),n.jsx("a",t.__assign({href:A,target:nt},{children:n.jsx("div",{className:H,style:pt})}))]}),N&&n.jsxs("div",t.__assign({className:P,style:lt},{children:["true"===Z&&n.jsx("div",t.__assign({className:q},{children:L?n.jsx("img",{src:L,style:mt}):n.jsx(a.CTLogo,{fill:"#FF4F17"})})),n.jsxs("div",t.__assign({className:F,style:st},{children:[n.jsx("div",t.__assign({className:k},{children:N})),n.jsx("div",t.__assign({className:C},{children:S})),"true"===$&&n.jsx("div",t.__assign({className:I},{children:z?n.jsx("img",{src:z,style:bt}):n.jsxs(n.Fragment,{children:[n.jsx(a.Ratings,{}),"(10M+ Downloads)"]})}))]})),n.jsx("div",t.__assign({className:J,style:ot},{children:n.jsx("span",t.__assign({className:O,onClick:at},{children:T}))}))]}))]}))}))})})};
|
|
2
2
|
//# sourceMappingURL=ct-platform-banner.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-banner.cjs.js","sources":["../packages/components/Banner/src/Banner.tsx"],"sourcesContent":[null],"names":["_a","campaignTopic","isMobileApp","isDesktop","initialProps","tupleIndex","componentClassNames","onClick","onLoad","_b","useState","undefined","banner","setBanner","bannerRef","useRef","_c","img_url","img_class","img_height","img_style","appBanner","pwaBanner","title_class","title","subTitle","subtitle_class","cta","cta_class","cta_copy_class","cta_style","title_container_class","title_container_style","banner_icon","banner_icon_class","content_icon","content_icon_class","button_one_link","button_two_link","btn1_Style","btn2_Style","btn1_class","btn2_class","banner_container_class","banner_container_style","banner_icon_style","content_icon_style","redirection_link","open_in_new_tab","index","clickable_banner","is_banner_icon","is_content_icon","bannerIndex","parseInt","targetAttribute","handleBannerClick","useCallback","window","open","location","href","handleNonClickableFlow","showBanner","useLayoutEffect","bannerElement","current","bannerHeight","getBoundingClientRect","height","useEffect","eventListener","event","data","detail","kv","topic","
|
|
1
|
+
{"version":3,"file":"ct-platform-banner.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Banner/src/Banner.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","campaignTopic","isMobileApp","isDesktop","initialProps","tupleIndex","componentClassNames","onClick","onLoad","_b","useState","undefined","banner","setBanner","bannerRef","useRef","_c","img_url","img_class","img_height","img_style","appBanner","pwaBanner","title_class","title","subTitle","subtitle_class","cta","cta_class","cta_copy_class","cta_style","title_container_class","title_container_style","banner_icon","banner_icon_class","content_icon","content_icon_class","button_one_link","button_two_link","btn1_Style","btn2_Style","btn1_class","btn2_class","banner_container_class","banner_container_style","banner_icon_style","content_icon_style","redirection_link","open_in_new_tab","index","clickable_banner","is_banner_icon","is_content_icon","bannerIndex","parseInt","targetAttribute","handleBannerClick","useCallback","window","open","location","href","handleNonClickableFlow","showBanner","useLayoutEffect","bannerElement","current","bannerHeight","getBoundingClientRect","height","useEffect","eventListener","event","data","detail","kv","topic","addEventListener","removeEventListener","bannerImageStyle","bannerCtastyle","titleContainerStyle","buttonOneStyle","buttonTwoStyle","bannerContainerStyle","bannerIconStyle","contentIconStyle","JSON","parse","error","_jsx","jsx","children","__assign","className","concat","_jsxs","jsxs","src","_Fragment","target","CTLogo","fill","Ratings"],"mappings":"kIAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAK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IAAKjE,EACL1C,MAAO8F,KAGXK,EAACC,IAAAU,EAAMA,OAAC,CAAAC,KAAK,eAKzBN,EAAAC,KAAA,MAAAJ,EAAAA,SAAA,CACIC,UAAW/D,EACXxC,MAAO0F,IAAmB,CAAAW,SAAA,CAE1BF,EAAAA,IAAK,MAAAG,EAAAA,SAAA,CAAAC,UAAWvE,GACX,CAAAqE,SAAApE,KAELkE,EAAAA,IAAK,MAAAG,EAAAA,SAAA,CAAAC,UAAWpE,GACX,CAAAkE,SAAAnE,KAGgB,SAApB2B,GACGsC,MAAA,MAAAG,EAAAA,SAAA,CACIC,UACI1D,GAAkB,CAAAwD,SAGrBzD,EACGuD,MAAA,MAAA,CACIQ,IAAK/D,EACL5C,MACI+F,KAIRU,EAAAC,KAAAE,WAAA,CAAAP,SAAA,CACIF,EAAAA,IAACa,EAAOA,QAAG,CAAA,GAAA,6BAQ/Bb,EAAAA,IAAA,MAAAG,EAAAA,SAAA,CACIC,UAAWlE,EACXrC,MAAOyF,IAAc,CAAAY,SAErBF,EAAAA,IACI,OAAAG,EAAAA,SAAA,CAAAC,UAAWjE,EACXtB,QAASuD,IAER,CAAA8B,SAAAjE,sBAWjD","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as n,Fragment as e,jsxs as a}from"react/jsx-runtime";import{useState as r,useRef as i,useCallback as o,useLayoutEffect as c,useEffect as p}from"react";import{CTLogo as l,Ratings as s}from"@cleartrip/ct-platform-assets";!function(t,n){void 0===n&&(n={});var e=n.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}(".ct-banner{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Ubuntu,Arial,sans-serif}.ct-banner .m-0{margin:0!important}.ct-banner .ml-4{margin-left:4px!important}.ct-banner .mb-5{margin-bottom:5px!important}.ct-banner .mb-2{margin-bottom:2px!important}.ct-banner .p-0{padding:0!important}.ct-banner .py-8{padding-bottom:8px!important;padding-top:8px!important}.ct-banner .mr-12{margin-right:12px!important}.ct-banner .pr-20{padding-right:20px!important}.ct-banner .pl-4{padding-left:4px!important}.ct-banner .pl-20{padding-left:20px!important}.ct-banner .fw-600{font-weight:600!important}.ct-banner .fs-2{font-size:12px!important}.ct-banner .fs-2,.ct-banner .lh-16{line-height:16px!important}.ct-banner .lh-20{line-height:20px!important}.ct-banner .d-none{display:none!important}.ct-banner .c-tripblue{color:#0f6bff!important}.ct-banner .pr-16{padding-right:16px!important}.ct-banner .fw-500{font-weight:500!important}.ct-banner .bento-c-neutral-500{color:gray!important}.ct-banner .animateSlideIn{-webkit-transition:all .3s ease-in-out!important;transition:all .3s ease-in-out!important}.ct-banner .mb-12{margin-bottom:12px!important}.ct-banner .h-48p{height:48px!important}.ct-banner .w-100p{width:100%!important}.ct-banner .w-50p{width:50%!important}.ct-banner .w-fit-content{width:fit-content!important}.ct-banner .bento-bg-secondary-500{background-color:#36c!important}.ct-banner .c-white{color:#fff!important}.ct-banner .mr-16{margin-right:16px!important}.ct-banner .ml-20{margin-left:20px!important}.ct-banner .flex-middle{align-items:center!important}.ct-banner .flex-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.ct-banner .flex-around{justify-content:space-around!important}.ct-banner .flex{display:flex!important}.ct-banner .fs-14{font-size:14px!important}.ct-banner .pl-15{padding-left:15px!important}.ct-banner .pr-24{padding-right:24px!important}.ct-banner .pt-8{padding-top:8px!important}.ct-banner .pb-24{padding-bottom:24px!important}.ct-banner .z-20{z-index:20!important}.ct-banner .w-100vw{width:100vw!important}.ct-banner .bg-orange-light-100{background-color:#fff1ec!important}.ct-banner .px-16{padding-left:16px!important;padding-right:16px!important}.ct-banner .br-6-imp{border-radius:6px!important}.ct-banner .p-relative{position:relative!important}.ct-banner .p-absolute{position:absolute!important}.ct-banner .p-fixed{position:fixed!important}.ct-banner .r-0{right:0!important}.ct-banner .t-0{top:0!important}.ct-banner .l-0{left:0!important}.ct-banner .b--4{bottom:-4px!important}.ct-banner .flex-grow{-webkit-box-flex:1!important;-ms-flex-positive:1!important;flex-grow:1!important}.ct-banner .bento-c-neutral-900{color:#1a1a1a!important}.ct-banner .pb-8{padding-bottom:8px!important}.ct-banner .bg-black{background-color:#000!important}.ct-banner .pl-16{padding-left:16px!important}.ct-banner .pt-12{padding-top:12px!important}.ct-banner .flex-column{flex-direction:column!important}.ct-banner .flex-start{align-items:flex-start!important}");var m=function(m){var d=m.campaignTopic,b=m.isMobileApp,f=m.isDesktop,g=m.initialProps,u=m.tupleIndex,h=m.componentClassNames,x=m.onClick,_=m.onLoad,v=r(g||void 0),y=v[0],w=v[1],N=i(null),k=y||{},S=k.img_url,C=k.img_class,J=k.img_height,O=k.img_style,T=k.appBanner,B=k.pwaBanner,z=k.title_class,E=k.title,F=k.subTitle,I=k.subtitle_class,j=k.cta,A=k.cta_class,L=k.cta_copy_class,M=k.cta_style,D=k.title_container_class,R=k.title_container_style,U=k.banner_icon,H=k.banner_icon_class,P=k.content_icon,q=k.content_icon_class,G=k.button_one_link,K=k.button_two_link,Q=k.btn1_Style,V=k.btn2_Style,W=k.btn1_class,X=k.btn2_class,Y=k.banner_container_class,Z=k.banner_container_style,$=k.banner_icon_style,tt=k.content_icon_style,nt=k.redirection_link,et=k.open_in_new_tab,at=k.index,rt=k.clickable_banner,it=k.is_banner_icon,ot=k.is_content_icon,ct=at&&parseInt(at),pt="true"===et?"_blank":"_self",lt=o((function(){"true"===rt&&(nt&&("true"===et?window.open(nt,"_blank"):window.location.href=nt),x&&x())}),[rt,nt,et,x]),st=o((function(){"false"===rt&&x()}),[rt,x]),mt=b&&"true"===T||!b&&"true"===B||f;c((function(){if(y){var t=N.current,n=t?t.getBoundingClientRect().height:0;_&&n>0&&_()}}),[y]),p((function(){var t=function(t){var n,e=null==t?void 0:t.detail;(null===(n=null==e?void 0:e.kv)||void 0===n?void 0:n.topic)===d&&w(null==e?void 0:e.kv)};return document.addEventListener("CT_web_native_display",t),function(){document.removeEventListener("CT_web_native_display",t)}}),[d]);var dt={},bt={},ft={},gt={},ut={},ht={},xt={},_t={};try{$&&(xt=JSON.parse($)),O&&(dt=JSON.parse(O)),M&&(bt=JSON.parse(M)),R&&(ft=JSON.parse(R)),Q&&(gt=JSON.parse(Q)),V&&(ut=JSON.parse(V)),Z&&(ht=JSON.parse(Z)),tt&&(_t=JSON.parse(tt))}catch(t){}return n(e,{children:mt&&(ct===u||void 0===at)&&n("div",{children:n("div",t({className:"ct-banner p-relative ".concat(h||""),ref:N},{children:a("div",t({style:dt,onClick:lt},{children:[S&&n("img",{src:S,className:C,height:J}),(G||K)&&a(e,{children:[n("a",t({href:G,target:pt},{children:n("div",{className:W,style:gt})})),n("a",t({href:K,target:pt},{children:n("div",{className:X,style:ut})}))]}),E&&a("div",t({className:Y,style:ht},{children:["true"===it&&n("div",t({className:H},{children:U?n("img",{src:U,style:xt}):n(l,{fill:"#FF4F17"})})),a("div",t({className:D,style:ft},{children:[n("div",t({className:z},{children:E})),n("div",t({className:I},{children:F})),"true"===ot&&n("div",t({className:q},{children:P?n("img",{src:P,style:_t}):a(e,{children:[n(s,{}),"(10M+ Downloads)"]})}))]})),n("div",t({className:A,style:bt},{children:n("span",t({className:L,onClick:st},{children:j}))}))]}))]}))}))})})};export{m as CTBanner};
|
|
2
2
|
//# sourceMappingURL=ct-platform-banner.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-banner.esm.js","sources":["../packages/components/Banner/src/Banner.tsx"],"sourcesContent":[null],"names":["CtBanner","_a","campaignTopic","isMobileApp","isDesktop","initialProps","tupleIndex","componentClassNames","onClick","onLoad","_b","useState","undefined","banner","setBanner","bannerRef","useRef","_c","img_url","img_class","img_height","img_style","appBanner","pwaBanner","title_class","title","subTitle","subtitle_class","cta","cta_class","cta_copy_class","cta_style","title_container_class","title_container_style","banner_icon","banner_icon_class","content_icon","content_icon_class","button_one_link","button_two_link","btn1_Style","btn2_Style","btn1_class","btn2_class","banner_container_class","banner_container_style","banner_icon_style","content_icon_style","redirection_link","open_in_new_tab","index","clickable_banner","is_banner_icon","is_content_icon","bannerIndex","parseInt","targetAttribute","handleBannerClick","useCallback","window","open","location","href","handleNonClickableFlow","showBanner","useLayoutEffect","bannerElement","current","bannerHeight","getBoundingClientRect","height","useEffect","eventListener","event","data","detail","kv","topic","
|
|
1
|
+
{"version":3,"file":"ct-platform-banner.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Banner/src/Banner.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","CtBanner","_a","campaignTopic","isMobileApp","isDesktop","initialProps","tupleIndex","componentClassNames","onClick","onLoad","_b","useState","undefined","banner","setBanner","bannerRef","useRef","_c","img_url","img_class","img_height","img_style","appBanner","pwaBanner","title_class","title","subTitle","subtitle_class","cta","cta_class","cta_copy_class","cta_style","title_container_class","title_container_style","banner_icon","banner_icon_class","content_icon","content_icon_class","button_one_link","button_two_link","btn1_Style","btn2_Style","btn1_class","btn2_class","banner_container_class","banner_container_style","banner_icon_style","content_icon_style","redirection_link","open_in_new_tab","index","clickable_banner","is_banner_icon","is_content_icon","bannerIndex","parseInt","targetAttribute","handleBannerClick","useCallback","window","open","location","href","handleNonClickableFlow","showBanner","useLayoutEffect","bannerElement","current","bannerHeight","getBoundingClientRect","height","useEffect","eventListener","event","data","detail","kv","topic","addEventListener","removeEventListener","bannerImageStyle","bannerCtastyle","titleContainerStyle","buttonOneStyle","buttonTwoStyle","bannerContainerStyle","bannerIconStyle","contentIconStyle","JSON","parse","error","_jsx","children","__assign","className","concat","_jsxs","src","_Fragment","target","CTLogo","fill","Ratings"],"mappings":"wQAAA,SAAqBA,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,q/FCVM,IAAAe,EAAkC,SAACC,OACrCC,EAAaD,EAAAC,cACbC,EAAWF,EAAAE,YACXC,EAASH,EAAAG,UACTC,EAAYJ,EAAAI,aACZC,EAAUL,EAAAK,WACVC,EAAmBN,EAAAM,oBACnBC,EAAOP,EAAAO,QACPC,EAAMR,EAAAQ,OAEAC,EAAsBC,EAASN,QAAgBO,GAA9CC,EAAMH,EAAA,GAAEI,OACTC,EAAYC,EAA8B,MAE1CC,EAqCFJ,GAAU,GApCVK,EAAOD,EAAAC,QACPC,EAASF,EAAAE,UACTC,eACAC,EAASJ,EAAAI,UACTC,EAASL,EAAAK,UACTC,EAASN,EAAAM,UACTC,EAAWP,EAAAO,YACXC,UACA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XnD,MAAO4F,QAGfQ,EAAA,IAAAE,EAAA,CACI/B,KAAMvB,EACN4D,OAAQ3C,IAAe,CAAAoC,SAEvBD,EACI,MAAA,CAAAG,UAAWnD,EACXpD,MAAO6F,WAMtB3D,GACGuE,EACI,MAAAH,EAAA,CAAAC,UAAWlD,EACXrD,MAAO8F,IAEN,CAAAO,SAAA,CAAmB,SAAnBxC,IACGuC,EAAK,MAAAE,EAAA,CAAAC,UAAW3D,GACX,CAAAyD,SAAA1D,EACGyD,EACI,MAAA,CAAAM,IAAK/D,EACL3C,MAAO+F,KAGXK,EAACS,EAAO,CAAAC,KAAK,eAKzBL,EAAA,MAAAH,EAAA,CACIC,UAAW9D,EACXzC,MAAO2F,IAAmB,CAAAU,SAAA,CAE1BD,EAAK,MAAAE,EAAA,CAAAC,UAAWtE,GACX,CAAAoE,SAAAnE,KAELkE,EAAK,MAAAE,EAAA,CAAAC,UAAWnE,GACX,CAAAiE,SAAAlE,KAGgB,SAApB2B,IACGsC,EAAA,MAAAE,EAAA,CACIC,UACIzD,GAAkB,CAAAuD,SAGrBxD,EACGuD,EAAA,MAAA,CACIM,IAAK7D,EACL7C,MACIgG,KAIRS,EAAAE,EAAA,CAAAN,SAAA,CACID,EAACW,EAAU,CAAA,GAAA,6BAQ/BX,EAAA,MAAAE,EAAA,CACIC,UAAWjE,EACXtC,MAAO0F,IAAc,CAAAW,SAErBD,EACI,OAAAE,EAAA,CAAAC,UAAWhE,EACXtB,QAASuD,IAER,CAAA6B,SAAAhE,sBAWjD","x_google_ignoreList":[0]}
|
package/dist/index.css
CHANGED
|
@@ -1 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTPlatformComponents = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function styleInject(css, ref) {
|
|
8
|
+
if ( ref === void 0 ) ref = {};
|
|
9
|
+
var insertAt = ref.insertAt;
|
|
10
|
+
|
|
11
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
12
|
+
|
|
13
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
14
|
+
var style = document.createElement('style');
|
|
15
|
+
style.type = 'text/css';
|
|
16
|
+
|
|
17
|
+
if (insertAt === 'top') {
|
|
18
|
+
if (head.firstChild) {
|
|
19
|
+
head.insertBefore(style, head.firstChild);
|
|
20
|
+
} else {
|
|
21
|
+
head.appendChild(style);
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
head.appendChild(style);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (style.styleSheet) {
|
|
28
|
+
style.styleSheet.cssText = css;
|
|
29
|
+
} else {
|
|
30
|
+
style.appendChild(document.createTextNode(css));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var css_248z = ".ct-banner{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Ubuntu,Arial,sans-serif}.ct-banner .m-0{margin:0!important}.ct-banner .ml-4{margin-left:4px!important}.ct-banner .mb-5{margin-bottom:5px!important}.ct-banner .mb-2{margin-bottom:2px!important}.ct-banner .p-0{padding:0!important}.ct-banner .py-8{padding-bottom:8px!important;padding-top:8px!important}.ct-banner .mr-12{margin-right:12px!important}.ct-banner .pr-20{padding-right:20px!important}.ct-banner .pl-4{padding-left:4px!important}.ct-banner .pl-20{padding-left:20px!important}.ct-banner .fw-600{font-weight:600!important}.ct-banner .fs-2{font-size:12px!important}.ct-banner .fs-2,.ct-banner .lh-16{line-height:16px!important}.ct-banner .lh-20{line-height:20px!important}.ct-banner .d-none{display:none!important}.ct-banner .c-tripblue{color:#0f6bff!important}.ct-banner .pr-16{padding-right:16px!important}.ct-banner .fw-500{font-weight:500!important}.ct-banner .bento-c-neutral-500{color:gray!important}.ct-banner .animateSlideIn{-webkit-transition:all .3s ease-in-out!important;transition:all .3s ease-in-out!important}.ct-banner .mb-12{margin-bottom:12px!important}.ct-banner .h-48p{height:48px!important}.ct-banner .w-100p{width:100%!important}.ct-banner .w-50p{width:50%!important}.ct-banner .w-fit-content{width:fit-content!important}.ct-banner .bento-bg-secondary-500{background-color:#36c!important}.ct-banner .c-white{color:#fff!important}.ct-banner .mr-16{margin-right:16px!important}.ct-banner .ml-20{margin-left:20px!important}.ct-banner .flex-middle{align-items:center!important}.ct-banner .flex-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.ct-banner .flex-around{justify-content:space-around!important}.ct-banner .flex{display:flex!important}.ct-banner .fs-14{font-size:14px!important}.ct-banner .pl-15{padding-left:15px!important}.ct-banner .pr-24{padding-right:24px!important}.ct-banner .pt-8{padding-top:8px!important}.ct-banner .pb-24{padding-bottom:24px!important}.ct-banner .z-20{z-index:20!important}.ct-banner .w-100vw{width:100vw!important}.ct-banner .bg-orange-light-100{background-color:#fff1ec!important}.ct-banner .px-16{padding-left:16px!important;padding-right:16px!important}.ct-banner .br-6-imp{border-radius:6px!important}.ct-banner .p-relative{position:relative!important}.ct-banner .p-absolute{position:absolute!important}.ct-banner .p-fixed{position:fixed!important}.ct-banner .r-0{right:0!important}.ct-banner .t-0{top:0!important}.ct-banner .l-0{left:0!important}.ct-banner .b--4{bottom:-4px!important}.ct-banner .flex-grow{-webkit-box-flex:1!important;-ms-flex-positive:1!important;flex-grow:1!important}.ct-banner .bento-c-neutral-900{color:#1a1a1a!important}.ct-banner .pb-8{padding-bottom:8px!important}.ct-banner .bg-black{background-color:#000!important}.ct-banner .pl-16{padding-left:16px!important}.ct-banner .pt-12{padding-top:12px!important}.ct-banner .flex-column{flex-direction:column!important}.ct-banner .flex-start{align-items:flex-start!important}";
|
|
35
|
+
var stylesheet=".ct-banner{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Ubuntu,Arial,sans-serif}.ct-banner .m-0{margin:0!important}.ct-banner .ml-4{margin-left:4px!important}.ct-banner .mb-5{margin-bottom:5px!important}.ct-banner .mb-2{margin-bottom:2px!important}.ct-banner .p-0{padding:0!important}.ct-banner .py-8{padding-bottom:8px!important;padding-top:8px!important}.ct-banner .mr-12{margin-right:12px!important}.ct-banner .pr-20{padding-right:20px!important}.ct-banner .pl-4{padding-left:4px!important}.ct-banner .pl-20{padding-left:20px!important}.ct-banner .fw-600{font-weight:600!important}.ct-banner .fs-2{font-size:12px!important}.ct-banner .fs-2,.ct-banner .lh-16{line-height:16px!important}.ct-banner .lh-20{line-height:20px!important}.ct-banner .d-none{display:none!important}.ct-banner .c-tripblue{color:#0f6bff!important}.ct-banner .pr-16{padding-right:16px!important}.ct-banner .fw-500{font-weight:500!important}.ct-banner .bento-c-neutral-500{color:gray!important}.ct-banner .animateSlideIn{-webkit-transition:all .3s ease-in-out!important;transition:all .3s ease-in-out!important}.ct-banner .mb-12{margin-bottom:12px!important}.ct-banner .h-48p{height:48px!important}.ct-banner .w-100p{width:100%!important}.ct-banner .w-50p{width:50%!important}.ct-banner .w-fit-content{width:fit-content!important}.ct-banner .bento-bg-secondary-500{background-color:#36c!important}.ct-banner .c-white{color:#fff!important}.ct-banner .mr-16{margin-right:16px!important}.ct-banner .ml-20{margin-left:20px!important}.ct-banner .flex-middle{align-items:center!important}.ct-banner .flex-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.ct-banner .flex-around{justify-content:space-around!important}.ct-banner .flex{display:flex!important}.ct-banner .fs-14{font-size:14px!important}.ct-banner .pl-15{padding-left:15px!important}.ct-banner .pr-24{padding-right:24px!important}.ct-banner .pt-8{padding-top:8px!important}.ct-banner .pb-24{padding-bottom:24px!important}.ct-banner .z-20{z-index:20!important}.ct-banner .w-100vw{width:100vw!important}.ct-banner .bg-orange-light-100{background-color:#fff1ec!important}.ct-banner .px-16{padding-left:16px!important;padding-right:16px!important}.ct-banner .br-6-imp{border-radius:6px!important}.ct-banner .p-relative{position:relative!important}.ct-banner .p-absolute{position:absolute!important}.ct-banner .p-fixed{position:fixed!important}.ct-banner .r-0{right:0!important}.ct-banner .t-0{top:0!important}.ct-banner .l-0{left:0!important}.ct-banner .b--4{bottom:-4px!important}.ct-banner .flex-grow{-webkit-box-flex:1!important;-ms-flex-positive:1!important;flex-grow:1!important}.ct-banner .bento-c-neutral-900{color:#1a1a1a!important}.ct-banner .pb-8{padding-bottom:8px!important}.ct-banner .bg-black{background-color:#000!important}.ct-banner .pl-16{padding-left:16px!important}.ct-banner .pt-12{padding-top:12px!important}.ct-banner .flex-column{flex-direction:column!important}.ct-banner .flex-start{align-items:flex-start!important}";
|
|
36
|
+
styleInject(css_248z);
|
|
37
|
+
|
|
38
|
+
exports.default = css_248z;
|
|
39
|
+
exports.stylesheet = stylesheet;
|
|
40
|
+
|
|
41
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
|
|
43
|
+
}));
|
|
44
|
+
//# sourceMappingURL=index.css.map
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.css","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.css","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"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"],"names":[],"mappings":";;;;;;E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beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Banner Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-banner.cjs.js",
|
|
7
7
|
"module": "dist/ct-platform-banner.esm.js",
|
|
8
|
-
"sideEffects":
|
|
8
|
+
"sideEffects": true,
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|