@cleartrip/ct-platform-supercoins-chip 6.0.1-beta.0 → 6.4.0-SNAPSHOT-native-main.3

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":"SupercoinsChip.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAiB9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAqC7D,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkYjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SupercoinsChip.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAe9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAkB7D,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+WjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),t=require("@cleartrip/ct-design-style-manager"),i=require("react"),r=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-platform-shimmer"),a=require("@emotion/css"),s=require("@cleartrip/ct-platform-utils"),l=require("@cleartrip/ct-design-components");function c(e){return e&&e.__esModule?e:{default:e}}var u=c(i);const p=a.keyframes({"0%":{left:"-30%"},"100%":{left:"120%"}}),d=a.keyframes({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}}),g=a.keyframes({"0%":{backgroundColor:"#003ea2"},"100%":{backgroundColor:"white"}}),f=a.keyframes({"0%":{color:"#000"},"100%":{color:"#fff"}}),m=a.keyframes({"0%":{color:"#fff"},"100%":{color:"#000"}}),h=t.makeWebStyles((()=>({supercoinsBalance:{paddingTop:6,paddingRight:8,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},supercoinsExpiryPill:{paddingTop:6,paddingRight:0,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1.5,borderStyle:"solid",borderColor:"#c83232",display:"inline-block",backgroundColor:"#fbefef",overflow:"hidden"},supercoinChipWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4},supercoinBurnTextAlign:{lineHeight:18,marginRight:4},supercoinBurnExpiryColor:{color:"#c83232"},supercoinExpiryText:{lineHeight:18,display:"inline-block",overflow:"hidden",whiteSpace:"nowrap",width:0,opacity:0,color:"#c83232",transition:"width 0.5s ease-in-out, opacity 0.5s ease-in-out"},supercoinExpiryAnimating:{width:97,opacity:1},superCoinsFloatingIslandContainer:{position:"relative",width:1,marginLeft:"100%"},supercoinsBalanceBackgroundColorShift:{position:"relative",overflow:"hidden",animation:`${d} 600ms forwards`,"&::before":{content:'""',position:"absolute",left:"-30%",top:-10,width:8,height:64,background:"rgba(255, 255, 255, 0.8)",transform:"rotate(25deg)",animation:`${p} 400ms ease-in 0.5s`}},supercoinsBalanceTextColorShift:{animation:`${f} 600ms forwards`},supercoinsBalanceBackgroundColorShift_exit:{position:"relative",overflow:"hidden",animation:`${g} 600ms forwards`},supercoinsBalanceTextColorShift_exit:{animation:`${m} 600ms forwards`}}))),y="https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",x="https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/wallet-pill-icon.png",_="island_rendered_frquency",v="islandAnimationPlayed",C="island_expiration_frquency",w=5,b=2,S=2e3,B=500,j=1500,k={requiredSupercoins:50,frequency:1,frequencyGapInDays:1,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function T({renderFloatingIsland:e,supercoins:n}){if(!e)return!1;if(n<k.requiredSupercoins)return!1;if(!("true"===s.getQueryParam("isMobileApp")))return!1;if(function(){const e=localStorage.getItem(_);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=k.frequency){const e=function(){const e=localStorage.getItem(C);return e&&"number"==typeof parseInt(e)?parseInt(e):null}();if(!e)return!0;return!(e>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(_),localStorage.removeItem(C),!0)}return!sessionStorage.getItem(v)}function I(){let e=localStorage.getItem(_);e||(e="0");const n=parseInt(e)+1;if(localStorage.setItem(_,n.toString()),n>=k.frequency){const e=Math.floor(Date.now()/1e3)+86400*k.frequencyGapInDays;localStorage.setItem(C,e.toString())}}const q=a.keyframes({"0%":{transform:"translateY(0px)"},"60%":{transform:"translateY(-44px)"},"90%":{transform:"translateY(-40px)"},"100%":{transform:"translateY(-40px)"}}),E=a.keyframes({"0%":{transform:"translateY(-40px)"},"60%":{transform:"translateY(-84px)"},"90%":{transform:"translateY(-80px)"},"100%":{transform:"translateY(-80px)"}}),W=a.keyframes({"0%":{width:"var(--wallet-initial-width)"},"100%":{width:"var(--wallet-final-width)"}}),A=t.makeWebStyles((()=>({chipWrapper:{display:"flex",alignItems:"center",gap:4,marginBottom:20,textAlign:"center"},chipTextWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4,width:"100%",textAlign:"center"},textWrapper:{marginRight:4},pillContainer:{boxSizing:"border-box",paddingTop:5,paddingRight:8,paddingBottom:5,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},"width-animation":{animation:`${W} 0.7s ease-in-out forwards`},"spring-up-wallet":{animation:`${q} 0.7s ease-in-out forwards 2s`},"spring-up-wallet-sc":{animation:`${q} 0.7s ease-in-out forwards 2s, ${E} 0.7s ease-in-out forwards 5s`}}))),R={2:58,3:66,4:74,5:82,6:90,7:120};function M({supercoinBalance:e}){return n.jsxs(l.Container,{as:"div",styleConfig:{root:[A.chipWrapper]},children:[n.jsx("img",{src:y,alt:"supercoin_icon",width:18,height:18}),n.jsx(l.Container,{as:"div",styleConfig:{root:[A.chipTextWrapper]},children:n.jsx(r.Typography,{variant:"B2",styleConfig:{root:[A.textWrapper]},children:e})})]})}function P({walletBalance:e}){return n.jsxs(l.Container,{as:"div",styleConfig:{root:[A.chipWrapper]},children:[n.jsx("img",{src:x,alt:"supercoin_icon",width:18,height:18}),n.jsx(l.Container,{as:"div",styleConfig:{root:[A.chipTextWrapper]},children:n.jsxs(r.Typography,{variant:"B2",styleConfig:{root:[A.textWrapper]},children:["₹",e]})})]})}function $({supercoinBalance:e,walletBalance:t,handleClick:i,chipWidthRef:r}){var o;const a=0===t&&e>0||0===e&&0===t,s=a?A["spring-up-wallet-sc"]:A["spring-up-wallet"],c=Math.max(t.toString().length,e.toString().length)+1;!function(e,n){const t=document.querySelector(":root");null==t||t.style.setProperty("--wallet-initial-width",`${e}px`);const i=R[n];null==t||t.style.setProperty("--wallet-final-width",`${Math.max(i,e)}px`)}(null!==(o=null==r?void 0:r.current)&&void 0!==o?o:0,c);const u=0===(null==r?void 0:r.current)?"auto":null==r?void 0:r.current,p=0===(null==r?void 0:r.current)?"":A["width-animation"];return n.jsx(l.Container,{as:"div",onClick:i,children:n.jsx(l.Container,{as:"div",styleConfig:{root:[A.pillContainer,p,{height:32,width:u}]},children:n.jsxs(l.Container,{as:"div",styleConfig:{root:[s]},children:[n.jsx(M,{supercoinBalance:e}),n.jsx(P,{walletBalance:t}),a?n.jsx(M,{supercoinBalance:e}):null]})})})}const F=t.makeStyles((()=>({"ba-solid":{},"bc-line-500":{},"width-18":{width:18},"height-18":{height:18},"width-44":{width:44}}))),L=u.default.lazy((()=>import("@cleartrip/ct-platform-supercoins-floating-island").then((e=>({default:e.SupercoinsFloatingIsland})))));exports.SupercoinsChip=({supercoinsLoading:a,supercoinBurnBalance:c,ravenPayload:u={},onSupercoinsClick:p,supercoinsExpiryCount:d,renderFloatingIsland:g=!0,walletEnabled:f=!1,walletBalance:m,supercoinsFetchError:x})=>{const _=i.useMemo((()=>{var e;return null!==(e=s.getQueryParam("utm_source"))&&void 0!==e?e:"organic"}),[]),[C,q]=i.useState(!1),[E,W]=i.useState(0),[A,R]=i.useState(!1),[M,P]=i.useState(!1),[Y,D]=i.useState(!1),H=i.useMemo((()=>"number"==typeof c&&c>=0&&!a),[c,a]),[O,K]=i.useState(!1),[N,z]=i.useState(null),[G,Q]=i.useState(!1),V=i.useRef(0),J="entry"===N?h.supercoinsBalanceBackgroundColorShift:"exit"===N?h.supercoinsBalanceBackgroundColorShift_exit:"",U="entry"===N?h.supercoinsBalanceTextColorShift:"exit"===N?h.supercoinsBalanceTextColorShift_exit:"";function X(){var n;p&&"function"==typeof p&&p();const{action_event_name:t,impression_event_name:i}=u,r=e.__rest(u,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(n=t)&&void 0!==n?n:"u_ui_action",Object.assign({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:c,u_utm_source:_},r))}if(i.useEffect((()=>{W(Number(null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem("expiryAnimationCount")));const e=()=>{if(window.scrollY>0){sessionStorage.getItem(v)||(Q(!0),z(null))}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),i.useEffect((()=>{if(a)return;const e=T({renderFloatingIsland:g,supercoins:c}),n="number"==typeof d&&d>=w&&!e;let t;return q(n),e&&sessionStorage.setItem("disable_floater","true"),e&&!G?(z("entry"),t=setTimeout((()=>{K(!0)}),1500),D(!0)):n?(D(!0),setTimeout((()=>{f&&P(!0)}),1e4)):(f&&P(!0),D(!0)),()=>{clearTimeout(t)}}),[c,d,a]),i.useEffect((()=>{if(!g||!O)return;const e=setTimeout((()=>{sessionStorage.getItem(v)||(K(!1),z("exit"),P(!0))}),k.cutoffTimeInMs);return()=>{clearTimeout(e)}}),[]),i.useEffect((()=>{var n;if("number"==typeof c&&c>=0&&!a&&null!==d){const{action_event_name:t,impression_event_name:i}=u,r=e.__rest(u,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(n=i)&&void 0!==n?n:"u_impression",Object.assign({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:c,u_utm_source:_,supercoinsExpiryCount:d||"N/A"},r))}}),[a,d]),i.useEffect((()=>{if(!C||E>=b)return;const e=setTimeout((()=>{R(!0);const e=setTimeout((()=>{R(!1);const e=E+1;W(e),sessionStorage.setItem("expiryAnimationCount",e.toString())}),j);return()=>clearTimeout(e)}),0===E?B:S);return()=>clearTimeout(e)}),[C,E]),x)return n.jsx(n.Fragment,{});const Z=()=>n.jsx(l.Container,{as:"div",styleConfig:{root:[t.gs["px-2"],t.gs["br-16"],F["ba-solid"],F["bc-line-500"],t.gs["bg-neutral-100"],t.gs["o-hidden"],{paddingTop:6,paddingBottom:6,display:"inline-block"}]},children:n.jsxs(l.Container,{as:"div",styleConfig:{root:[t.gs.flex,t.gs["flex-middle"],t.gs["flex-gap-1"]]},children:[n.jsx(o.Shimmer,{type:"rounded",width:18,height:18}),n.jsx(o.Shimmer,{type:"rounded",width:44,height:18})]})});if(s.isServer())return n.jsx(Z,{});if(a||!O&&!M&&!Y)return n.jsx(Z,{});if(!H)return null;const ee=C?"HM4":"B2",ne=C?h.supercoinsExpiryPill:h.supercoinsBalance,te=C?h.supercoinBurnExpiryColor:"";return M?n.jsx($,{walletBalance:m,supercoinBalance:Number(c),handleClick:X,chipWidthRef:V}):n.jsxs(l.Container,{as:"div",styleConfig:{root:[{position:"relative"}]},children:[n.jsx(l.Container,{as:"div",onClick:X,styleConfig:{root:[ne,J]},children:n.jsxs(l.Container,{as:"div",styleConfig:{root:[{display:"flex",alignItems:"center",gap:4}]},children:[n.jsx("img",{src:y,alt:"supercoin_icon",width:18,height:18}),n.jsxs(l.Container,{as:"div",styleConfig:{root:[h.supercoinChipWrapper]},children:[n.jsx(r.Typography,{variant:ee,styleConfig:{root:[U,h.supercoinBurnTextAlign,te]},children:A?d:c}),C&&n.jsx(r.Typography,{variant:"HM4",styleConfig:{root:[h.supercoinExpiryText,A?h.supercoinExpiryAnimating:{}]},children:"expiring soon"})]})]})}),O&&!G&&n.jsx(l.Container,{as:"div",styleConfig:{root:[h.superCoinsFloatingIslandContainer]},children:n.jsx(i.Suspense,{fallback:n.jsx(n.Fragment,{}),children:n.jsx(L,{superCoins:c,onAnimationStart:()=>function({supercoins:n,ravenPayload:t={},utmSource:i=""}){var r;const{action_event_name:o,impression_event_name:a}=t,l=e.__rest(t,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(r=a)&&void 0!==r?r:"u_impression",Object.assign({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:n,u_utm_source:i},l)),sessionStorage.setItem("islandAnimationPlayed","true"),I()}({supercoins:c,ravenPayload:u,utmSource:_}),onAnimationEnd:function(){setTimeout((()=>{f&&P(!0)}),500),z("exit")}})})})]})};
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),r=require("@cleartrip/ct-design-style-manager"),i=require("react"),t=require("@cleartrip/ct-design-typography"),a=require("@cleartrip/ct-platform-shimmer"),o=require("@emotion/css"),s=require("@cleartrip/ct-platform-utils");function l(e){return e&&e.__esModule?e:{default:e}}var c=l(i),u=o.keyframes({"0%":{left:"-30%"},"100%":{left:"120%"}}),p=o.keyframes({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}}),d=o.keyframes({"0%":{backgroundColor:"#003ea2"},"100%":{backgroundColor:"white"}}),g=o.keyframes({"0%":{color:"#000"},"100%":{color:"#fff"}}),f=o.keyframes({"0%":{color:"#fff"},"100%":{color:"#000"}});o.keyframes({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}});var m=r.makeWebStyles(function(e){return{supercoinsBalance:{paddingTop:6,paddingRight:8,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},supercoinsExpiryPill:{paddingTop:6,paddingRight:0,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1.5,borderStyle:"solid",borderColor:"#c83232",display:"inline-block",backgroundColor:"#fbefef",overflow:"hidden"},supercoinChipWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4},supercoinBurnTextAlign:{lineHeight:"18px",marginRight:4},supercoinBurnExpiryColor:{color:"#c83232 !important"},supercoinExpiryText:{lineHeight:"18px",display:"inline-block",overflow:"hidden",whiteSpace:"nowrap",width:0,opacity:0,color:"#c83232 !important",transition:"width 0.5s ease-in-out, opacity 0.5s ease-in-out"},supercoinExpiryAnimating:{width:97,opacity:1},superCoinsFloatingIslandContainer:{position:"relative",width:1,marginLeft:"100%"},supercoinsBalanceBackgroundColorShift:{position:"relative",overflow:"hidden",animation:"".concat(p," 600ms forwards"),"&::before":{content:'""',position:"absolute",left:"-30%",top:-10,width:8,height:64,background:"rgba(255, 255, 255, 0.8)",transform:"rotate(25deg)",animation:"".concat(u," 400ms ease-in 0.5s")}},supercoinsBalanceTextColorShift:{animation:"".concat(g," 600ms forwards")},supercoinsBalanceBackgroundColorShift_exit:{position:"relative",overflow:"hidden",animation:"".concat(d," 600ms forwards")},supercoinsBalanceTextColorShift_exit:{animation:"".concat(f," 600ms forwards")}}}),_="https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",h="island_rendered_frquency",v="islandAnimationPlayed",x="island_expiration_frquency",y=5,b=2,w=2e3,S=500,C=1500,B=50,k=1,j=1,T=5e3;function I(e){var n,r=e.renderFloatingIsland,i=e.supercoins;if(!r)return!1;if(i<B)return!1;if(!("true"===s.getQueryParam("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(h);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=k){var t=(n=localStorage.getItem(x))&&"number"==typeof parseInt(n)?parseInt(n):null;return!t||!(t>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(h),localStorage.removeItem(x),!0)}return!sessionStorage.getItem(v)}function E(){var e=localStorage.getItem(h);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(h,n.toString()),n>=k){var r=Math.floor(Date.now()/1e3)+86400*j;localStorage.setItem(x,r.toString())}}var W=o.keyframes({"0%":{transform:"translateY(0px)"},"60%":{transform:"translateY(-44px)"},"90%":{transform:"translateY(-40px)"},"100%":{transform:"translateY(-40px)"}}),A=o.keyframes({"0%":{transform:"translateY(-40px)"},"60%":{transform:"translateY(-84px)"},"90%":{transform:"translateY(-80px)"},"100%":{transform:"translateY(-80px)"}}),N=o.keyframes({"0%":{width:"var(--wallet-initial-width)"},"100%":{width:"var(--wallet-final-width)"}}),R=r.makeWebStyles(function(e){return{chipWrapper:{display:"flex",alignItems:"center",gap:4,marginBottom:20,textAlign:"center"},chipTextWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4,width:"100%",textAlign:"center"},textWrapper:{marginRight:4},pillContainer:{boxSizing:"border-box",paddingTop:5,paddingRight:8,paddingBottom:5,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},"width-animation":{animation:"".concat(N," 0.7s ease-in-out forwards")},"spring-up-wallet":{animation:"".concat(W," 0.7s ease-in-out forwards 2s")},"spring-up-wallet-sc":{animation:"".concat(W," 0.7s ease-in-out forwards 2s, ").concat(A," 0.7s ease-in-out forwards 5s")}}}),q={2:58,3:66,4:74,5:82,6:90,7:120};function P(r){var i=r.supercoinBalance;return n.jsxs("div",e.__assign({className:R.chipWrapper},{children:[n.jsx("img",{src:_,alt:"supercoin_icon",width:18,height:18}),n.jsx("div",e.__assign({className:R.chipTextWrapper},{children:n.jsx(t.Typography,e.__assign({variant:"B2",styleConfig:{root:[R.textWrapper]}},{children:i}))}))]}))}function M(r){var i=r.walletBalance;return n.jsxs("div",e.__assign({className:R.chipWrapper},{children:[n.jsx("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/wallet-pill-icon.png",alt:"supercoin_icon",width:18,height:18}),n.jsx("div",e.__assign({className:R.chipTextWrapper},{children:n.jsxs(t.Typography,e.__assign({variant:"B2",styleConfig:{root:[R.textWrapper]}},{children:["₹",i]}))}))]}))}function F(r){var i,t=r.supercoinBalance,a=r.walletBalance,o=r.handleClick,s=r.chipWidthRef,l=0===a&&t>0||0===t&&0===a,c=l?R["spring-up-wallet-sc"]:R["spring-up-wallet"],u=Math.max(a.toString().length,t.toString().length)+1;!function(e,n){var r=document.querySelector(":root");null==r||r.style.setProperty("--wallet-initial-width","".concat(e,"px"));var i=q[n];null==r||r.style.setProperty("--wallet-final-width","".concat(Math.max(i,e),"px"))}(null!==(i=null==s?void 0:s.current)&&void 0!==i?i:0,u);var p=0===(null==s?void 0:s.current)?"auto":"".concat(null==s?void 0:s.current,"px"),d=0===(null==s?void 0:s.current)?"":R["width-animation"];return n.jsx("div",e.__assign({onClick:o},{children:n.jsx("div",e.__assign({className:"".concat(R.pillContainer," ").concat(d),style:{height:"32px",width:p}},{children:n.jsxs("div",e.__assign({className:c},{children:[n.jsx(P,{supercoinBalance:t}),n.jsx(M,{walletBalance:a}),l?n.jsx(P,{supercoinBalance:t}):null]}))}))}))}var L=c.default.lazy(function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then(function(e){return{default:e.SupercoinsFloatingIsland}})});exports.SupercoinsChip=function(o){var l=o.supercoinsLoading,c=o.supercoinBurnBalance,u=o.ravenPayload,p=void 0===u?{}:u,d=o.onSupercoinsClick,g=o.supercoinsExpiryCount,f=o.renderFloatingIsland,h=void 0===f||f,x=o.walletEnabled,B=void 0!==x&&x,k=o.walletBalance,j=o.supercoinsFetchError,W=i.useMemo(function(){var e;return null!==(e=s.getQueryParam("utm_source"))&&void 0!==e?e:"organic"},[]),A=i.useState(!1),N=A[0],R=A[1],q=i.useState(0),P=q[0],M=q[1],Y=i.useState(!1),D=Y[0],H=Y[1],K=i.useState(!1),z=K[0],Q=K[1],G=i.useState(!1),J=G[0],O=G[1],U=i.useMemo(function(){return"number"==typeof c&&c>=0&&!l},[c,l]),V=i.useState(!1),X=V[0],Z=V[1],$=i.useState(null),ee=$[0],ne=$[1],re=i.useState(!1),ie=re[0],te=re[1],ae=i.useRef(0),oe=i.useRef(!1),se="entry"===ee?m.supercoinsBalanceBackgroundColorShift:"exit"===ee?m.supercoinsBalanceBackgroundColorShift_exit:"",le="entry"===ee?m.supercoinsBalanceTextColorShift:"exit"===ee?m.supercoinsBalanceTextColorShift_exit:"";function ce(){var n;d&&"function"==typeof d&&d();var r=p.action_event_name;p.impression_event_name;var i=e.__rest(p,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(n=r)&&void 0!==n?n:"u_ui_action",e.__assign({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:c,u_utm_source:W},i))}if(i.useEffect(function(){M(Number(null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem("expiryAnimationCount")));var e=function(){window.scrollY>0&&(sessionStorage.getItem(v)||(te(!0),ne(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]),i.useEffect(function(){if(!l){var e,n=I({renderFloatingIsland:h,supercoins:c}),r="number"==typeof g&&g>=y&&!n;return R(r),n&&sessionStorage.setItem("disable_floater","true"),n&&!ie?(ne("entry"),e=setTimeout(function(){Z(!0)},1500),O(!0)):r?(O(!0),setTimeout(function(){B&&Q(!0)},1e4)):(B&&Q(!0),O(!0)),function(){clearTimeout(e)}}},[c,g,l]),i.useEffect(function(){if(h&&X){var e=setTimeout(function(){sessionStorage.getItem(v)||(Z(!1),ne("exit"),Q(!0))},T);return function(){clearTimeout(e)}}},[]),i.useEffect(function(){var n;if("number"==typeof c&&c>=0&&!l&&null!==g){p.action_event_name;var r=p.impression_event_name,i=e.__rest(p,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(n=r)&&void 0!==n?n:"u_impression",e.__assign({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:c,u_utm_source:W,supercoinsExpiryCount:g||"N/A"},i))}},[l,g]),i.useEffect(function(){if(N&&!(P>=b)){var e=setTimeout(function(){H(!0);var e=setTimeout(function(){H(!1);var e=P+1;M(e),sessionStorage.setItem("expiryAnimationCount",e.toString())},C);return function(){return clearTimeout(e)}},0===P?S:w);return function(){return clearTimeout(e)}}},[N,P]),j)return n.jsx(n.Fragment,{});var ue=function(){return n.jsx("div",e.__assign({className:"".concat(r.gs["px-2"]," ").concat(r.gs["br-16"]," ").concat(r.gs["ba-solid"]," ").concat(r.gs["bc-line-500"]," ").concat(r.gs["bg-neutral-100"]," ").concat(r.gs["o-hidden"]),style:{paddingTop:"6px",paddingBottom:"6px",display:"inline-block"}},{children:n.jsxs("div",e.__assign({className:"".concat(r.gs.flex," ").concat(r.gs["flex-middle"]," ").concat(r.gs["flex-gap-1"])},{children:[n.jsx(a.Shimmer,{width:18,height:18,type:"rounded"}),n.jsx(a.Shimmer,{width:44,height:18,type:"rounded"})]}))}))};if(s.isServer())return n.jsx(ue,{});if(l||!X&&!z&&!J)return n.jsx(ue,{});if(!U)return null;var pe=N?"HM4":"B2",de=N?m.supercoinsExpiryPill:m.supercoinsBalance,ge=N?m.supercoinBurnExpiryColor:"";return z?n.jsx(F,{walletBalance:k,supercoinBalance:Number(c),handleClick:ce,chipWidthRef:ae}):n.jsxs("div",e.__assign({style:{position:"relative"}},{children:[n.jsx("div",e.__assign({ref:function(e){var n;oe.current||(oe.current=!0,ae.current=null!==(n=null==e?void 0:e.offsetWidth)&&void 0!==n?n:0)},className:"".concat(de," ").concat(se),onClick:ce},{children:n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx("img",{src:_,alt:"supercoin_icon",width:18,height:18}),n.jsxs("div",e.__assign({className:m.supercoinChipWrapper},{children:[n.jsx(t.Typography,e.__assign({variant:pe,styleConfig:{root:[le,m.supercoinBurnTextAlign,ge]}},{children:D?g:c})),N&&n.jsx(t.Typography,e.__assign({variant:"HM4",styleConfig:{root:[m.supercoinExpiryText,D?m.supercoinExpiryAnimating:void 0]}},{children:"expiring soon"}))]}))]}))})),X&&!ie&&n.jsx("div",e.__assign({className:m.superCoinsFloatingIslandContainer},{children:n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(L,{superCoins:c,onAnimationStart:function(){return function(n){var r,i=n.supercoins,t=n.ravenPayload,a=void 0===t?{}:t,o=n.utmSource,l=void 0===o?"":o;a.action_event_name;var c=a.impression_event_name,u=e.__rest(a,["action_event_name","impression_event_name"]);s.ravenSDKTrigger(null!==(r=c)&&void 0!==r?r:"u_impression",e.__assign({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:i,u_utm_source:l},u)),sessionStorage.setItem("islandAnimationPlayed","true"),E()}({supercoins:c,ravenPayload:p,utmSource:W})},onAnimationEnd:function(){setTimeout(function(){B&&Q(!0)},500),ne("exit")}})}))}))]}))};
2
2
  //# sourceMappingURL=ct-platform-supercoins-chip.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-supercoins-chip.cjs.js","sources":["../packages/components/SupercoinsChip/src/index.module.ts","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts","../packages/components/SupercoinsChip/src/utils/setWalletCssVariables.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.tsx","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["supercoin_chip_loading_shimmer","keyframes","left","supercoins_balance_background_color_shift","backgroundColor","supercoins_balance_background_color_shift_exit","supercoins_balance_text_color_shift","color","supercoins_balance_text_color_shift_exit","styles","makeWebStyles","supercoinsBalance","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","borderWidth","borderStyle","borderColor","display","overflow","supercoinsExpiryPill","supercoinChipWrapper","alignItems","justifyContent","supercoinBurnTextAlign","lineHeight","marginRight","supercoinBurnExpiryColor","supercoinExpiryText","whiteSpace","width","opacity","transition","supercoinExpiryAnimating","superCoinsFloatingIslandContainer","position","marginLeft","supercoinsBalanceBackgroundColorShift","animation","content","top","height","background","transform","supercoinsBalanceTextColorShift","supercoinsBalanceBackgroundColorShift_exit","supercoinsBalanceTextColorShift_exit","SUPERCOINS_CHIP_ICON","WALLET_CHIP_ICON","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_EXPIRY_CONFIG","SUPERCOIN_FLOATING_ISLAND_CONFIG","requiredSupercoins","frequency","frequencyGapInDays","cutoffTimeInMs","isVisibleOnScroll","shouldRenderFloatingIsland","renderFloatingIsland","supercoins","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","expiry","getExpiryEpoch","Math","floor","Date","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","springUp1","springUp2","widthAnimation","chipWrapper","gap","marginBottom","textAlign","chipTextWrapper","textWrapper","pillContainer","boxSizing","widthByNumberOfCharactersMap","SupercoinChip","supercoinBalance","_jsxs","Container","as","styleConfig","root","children","_jsx","src","alt","Typography","variant","WalletChip","walletBalance","WalletAnimation","handleClick","chipWidthRef","renderSupercoinPillOnAnimationEnd","wrapperAnimation","maxNumberOfCharacters","max","length","chipWidth","numberOfCharacters","ctx","document","querySelector","style","setProperty","setWalletCSSVariables","_a","current","containerClass","onClick","jsx","staticStyles","makeStyles","LazySuperCoinsFloatingIsland","React","default","lazy","import","then","module","SupercoinsFloatingIsland","supercoinsLoading","supercoinBurnBalance","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","walletEnabled","supercoinsFetchError","utmSource","useMemo","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","useState","animationCount","setAnimationCount","isAnimating","setIsAnimating","startWalletAnimation","setStartWalletAnimation","calculatedAnimation","setCalculatedAnimation","shouldRenderSupercoins","renderSuperCoinIsland","setRenderSuperCoinIsland","chipAnimationType","setChipAnimationType","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","useRef","chipBackgroundAnimationClassname","chipTextAnimationClassname","handleSupercoinsClick","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","useEffect","Number","handleScroll","window","scrollY","addEventListener","removeEventListener","shouldRender","renderSupercoinExpiry","timeout","setTimeout","clearTimeout","startTimer","switchBackTimer","newCount","SupercoinLoadingPill","gs","Shimmer","type","isServer","typographyVariant","chipClassName","expiryColorClass","Suspense","fallback","_Fragment","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"8YAEA,MAAMA,EAAiCC,EAAAA,UAAU,CAC/C,KAAM,CACJC,KAAM,QAER,OAAQ,CACNA,KAAM,UAIJC,EAA4CF,EAAAA,UAAU,CAC1D,KAAM,CACJG,gBAAiB,yBAEnB,OAAQ,CACNA,gBAAiB,aAIfC,EAAiDJ,EAAAA,UAAU,CAC/D,KAAM,CACJG,gBAAiB,WAEnB,OAAQ,CACNA,gBAAiB,WAIfE,EAAsCL,EAAAA,UAAU,CACpD,KAAM,CACJM,MAAO,QAET,OAAQ,CACNA,MAAO,UAILC,EAA2CP,EAAAA,UAAU,CACzD,KAAM,CACJM,MAAO,Q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a,CACTC,KAAM,CACFqE,EACAhK,EAAOiB,uBACPgL,KAEPrG,SAEAqD,EACKV,EACAH,IAGTQ,GACG/C,EAAC2B,IAAAxB,EAAUA,YACPC,QAAQ,MACRP,YAAa,CACTC,KAAM,CACF3F,EAAOqB,oBACP4H,EAAcjJ,EAAO0B,yBAA2B,CAAE,IAEzDkE,SAAA,0BASpB4D,IAA0BI,GACvB/D,MAACL,EAAAA,UAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAAC3F,EAAO2B,oCAEdiE,SAAAC,EAAAA,IAACqG,EAAQA,SAAC,CAAAC,SAAUtG,EAAAA,IAAKuG,EAAAA,SAAA,CAAA,GAAAxG,SACrBC,EAAAA,IAAC8B,EAA4B,CACzB0E,WAAYjE,EACZkE,iBAAkB,IJnY9B,UAAuBhJ,WACnCA,EAAU+E,aACVA,EAAe,CAAA,EAAEK,UACjBA,EAAY,WAIZ,MAAMwB,kBAAEA,EAAiBC,sBAAEA,GACvB9B,EADiD+B,EACjDC,EAAAA,OAAAhC,EADE,CAAA,oBAAA,0BAENiC,kBAAqD,QAApClD,EAAA+C,SAAoC,IAAA/C,EAAAA,EAAA,8BACjDmD,YAAa,8BACbC,UAAW,mBACXC,kBAAmBnH,EACnBoH,aAAchC,GACX0B,IAIPhG,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CI8WgCkI,CAAuB,CACnBjJ,WAAY8E,EACZC,eACAK,cAGR8D,eArUxB,WACInB,YAAW,KACH7C,GAAeY,GAAwB,EAAK,GACjD,KACHO,EAAqB,OACxB,UAsUC"}
1
+ {"version":3,"file":"ct-platform-supercoins-chip.cjs.js","sources":["../packages/components/SupercoinsChip/src/index.module.ts","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts","../packages/components/SupercoinsChip/src/utils/setWalletCssVariables.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.tsx","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["supercoin_chip_loading_shimmer","keyframes","left","supercoins_balance_background_color_shift","backgroundColor","supercoins_balance_background_color_shift_exit","supercoins_balance_text_color_shift","color","supercoins_balance_text_color_shift_exit","styles","makeWebStyles","theme","supercoinsBalance","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","borderWidth","borderStyle","borderColor","display","overflow","supercoinsExpiryPill","supercoinChipWrapper","alignItems","justifyContent","supercoinBurnTextAlign","lineHeight","marginRight","supercoinBurnExpiryColor","supercoinExpiryText","whiteSpace","width","opacity","transition","supercoinExpiryAnimating","superCoinsFloatingIslandContainer","position","marginLeft","supercoinsBalanceBackgroundColorShift","animation","concat","content","top","height","background","transform","supercoinsBalanceTextColorShift","supercoinsBalanceBackgroundColorShift_exit","supercoinsBalanceTextColorShift_exit","SUPERCOINS_CHIP_ICON","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_EXPIRY_CONFIG","SUPERCOIN_FLOATING_ISLAND_CONFIG","shouldRenderFloatingIsland","_a","expiry","renderFloatingIsland","supercoins","getQueryParam","frequency","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","Date","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","springUp1","springUp2","widthAnimation","chipWrapper","gap","marginBottom","textAlign","chipTextWrapper","textWrapper","pillContainer","boxSizing","widthByNumberOfCharactersMap","SupercoinChip","supercoinBalance","_jsxs","__assign","className","children","_jsx","src","alt","Typography","variant","styleConfig","root","WalletChip","walletBalance","WalletAnimation","handleClick","chipWidthRef","renderSupercoinPillOnAnimationEnd","wrapperAnimation","maxNumberOfCharacters","max","length","chipWidth","numberOfCharacters","ctx","document","querySelector","style","setProperty","setWalletCSSVariables","_b","current","containerClass","onClick","LazySuperCoinsFloatingIsland","React","lazy","then","module","default","SupercoinsFloatingIsland","supercoinsLoading","supercoinBurnBalance","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","_c","_d","walletEnabled","supercoinsFetchError","utmSource","useMemo","_e","useState","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","_f","animationCount","setAnimationCount","_g","isAnimating","setIsAnimating","_h","startWalletAnimation","setStartWalletAnimation","_j","calculatedAnimation","setCalculatedAnimation","shouldRenderSupercoins","_k","renderSuperCoinIsland","setRenderSuperCoinIsland","_l","chipAnimationType","setChipAnimationType","_m","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","useRef","chipWidthCalculatedRef","chipBackgroundAnimationClassname","chipTextAnimationClassname","handleSupercoinsClick","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","useEffect","Number","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","renderSupercoinExpiry","setTimeout","clearTimeout","startTimer","switchBackTimer","newCount","SupercoinLoadingPill","gs","Shimmer","type","isServer","typographyVariant","chipClassName","expiryColorClass","ref","offsetWidth","undefined","Suspense","fallback","_Fragment","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"iWAEMA,EAAiCC,EAAAA,UAAU,CAC/C,KAAM,CACJC,KAAM,QAER,OAAQ,CACNA,KAAM,UAIJC,EAA4CF,EAAAA,UAAU,CAC1D,KAAM,CACJG,gBAAiB,yBAEnB,OAAQ,CACNA,gBAAiB,aAIfC,EAAiDJ,EAAAA,UAAU,CAC/D,KAAM,CACJG,gBAAiB,WAEnB,OAAQ,CACNA,gBAAiB,WAIfE,EAAsCL,EAAAA,UAAU,CACpD,KAAM,CACJM,MAAO,QAET,OAAQ,CACNA,MAAO,UAILC,EAA2CP,EAAAA,UAAU,CACzD,KAAM,CACJM,MAAO,QAET,OAAQ,CACNA,MAAO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,SAAA,CAAA,IAAK,CAAApH,SACrBC,MAAC6B,GACGuF,WAAY/E,EACZgF,iBAAkB,WACd,OJ5V1B,SAAiC5J,SACnCG,EAAUH,EAAAG,WACV6E,EAAAhF,EAAA6E,aAAAA,OAAY,IAAAG,EAAG,CAAA,EAAEA,EACjBC,EAAAjF,EAAAoF,UAAAA,WAASH,EAAG,GAAEA,EAKVJ,EAAYwC,sBADWC,EACvBzC,EAAYyC,sBADqCC,EAAWC,SAC5D3C,EADE,CAAA,oBAAA,0BAEN4C,kBAAiD,QAAjCzD,EAACsD,SAAgC,IAAAtD,EAAAA,EAAI,2BACjD0D,YAAa,8BACbC,UAAW,mBACXC,kBAAmBzH,EACnB0H,aAAczC,GACXmC,IAIPvG,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CIsUgC4I,CAAuB,CACnB1J,WAAYyE,EACZC,aAAYA,EACZO,UAASA,GAHb,EAMJ0E,eAjTxB,WACItB,WAAW,WACHtD,GAAegB,GAAwB,EAC/C,EAAG,KACHU,GAAqB,OACzB,aAmTJ"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{makeWebStyles as o,makeStyles as r,gs as a}from"@cleartrip/ct-design-style-manager";import s,{useMemo as l,useState as c,useRef as p,useEffect as d,Suspense as u}from"react";import{Typography as m}from"@cleartrip/ct-design-typography";import{Shimmer as f}from"@cleartrip/ct-platform-shimmer";import{keyframes as g}from"@emotion/css";import{getQueryParam as h,ravenSDKTrigger as y,isServer as _}from"@cleartrip/ct-platform-utils";import{Container as v}from"@cleartrip/ct-design-components";const w=g({"0%":{left:"-30%"},"100%":{left:"120%"}}),x=g({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}}),b=g({"0%":{backgroundColor:"#003ea2"},"100%":{backgroundColor:"white"}}),C=g({"0%":{color:"#000"},"100%":{color:"#fff"}}),S=g({"0%":{color:"#fff"},"100%":{color:"#000"}}),B=o((()=>({supercoinsBalance:{paddingTop:6,paddingRight:8,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},supercoinsExpiryPill:{paddingTop:6,paddingRight:0,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1.5,borderStyle:"solid",borderColor:"#c83232",display:"inline-block",backgroundColor:"#fbefef",overflow:"hidden"},supercoinChipWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4},supercoinBurnTextAlign:{lineHeight:18,marginRight:4},supercoinBurnExpiryColor:{color:"#c83232"},supercoinExpiryText:{lineHeight:18,display:"inline-block",overflow:"hidden",whiteSpace:"nowrap",width:0,opacity:0,color:"#c83232",transition:"width 0.5s ease-in-out, opacity 0.5s ease-in-out"},supercoinExpiryAnimating:{width:97,opacity:1},superCoinsFloatingIslandContainer:{position:"relative",width:1,marginLeft:"100%"},supercoinsBalanceBackgroundColorShift:{position:"relative",overflow:"hidden",animation:`${x} 600ms forwards`,"&::before":{content:'""',position:"absolute",left:"-30%",top:-10,width:8,height:64,background:"rgba(255, 255, 255, 0.8)",transform:"rotate(25deg)",animation:`${w} 400ms ease-in 0.5s`}},supercoinsBalanceTextColorShift:{animation:`${C} 600ms forwards`},supercoinsBalanceBackgroundColorShift_exit:{position:"relative",overflow:"hidden",animation:`${b} 600ms forwards`},supercoinsBalanceTextColorShift_exit:{animation:`${S} 600ms forwards`}}))),I="https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",T="https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/wallet-pill-icon.png",k="island_rendered_frquency",W="islandAnimationPlayed",E="island_expiration_frquency",A=5,q=2,R=2e3,$=500,L=1500,M={requiredSupercoins:50,frequency:1,frequencyGapInDays:1,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function P({renderFloatingIsland:e,supercoins:n}){if(!e)return!1;if(n<M.requiredSupercoins)return!1;if(!("true"===h("isMobileApp")))return!1;if(function(){const e=localStorage.getItem(k);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=M.frequency){const e=function(){const e=localStorage.getItem(E);return e&&"number"==typeof parseInt(e)?parseInt(e):null}();if(!e)return!0;return!(e>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(k),localStorage.removeItem(E),!0)}return!sessionStorage.getItem(W)}function Y(){let e=localStorage.getItem(k);e||(e="0");const n=parseInt(e)+1;if(localStorage.setItem(k,n.toString()),n>=M.frequency){const e=Math.floor(Date.now()/1e3)+86400*M.frequencyGapInDays;localStorage.setItem(E,e.toString())}}const F=g({"0%":{transform:"translateY(0px)"},"60%":{transform:"translateY(-44px)"},"90%":{transform:"translateY(-40px)"},"100%":{transform:"translateY(-40px)"}}),j=g({"0%":{transform:"translateY(-40px)"},"60%":{transform:"translateY(-84px)"},"90%":{transform:"translateY(-80px)"},"100%":{transform:"translateY(-80px)"}}),D=g({"0%":{width:"var(--wallet-initial-width)"},"100%":{width:"var(--wallet-final-width)"}}),H=o((()=>({chipWrapper:{display:"flex",alignItems:"center",gap:4,marginBottom:20,textAlign:"center"},chipTextWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4,width:"100%",textAlign:"center"},textWrapper:{marginRight:4},pillContainer:{boxSizing:"border-box",paddingTop:5,paddingRight:8,paddingBottom:5,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},"width-animation":{animation:`${D} 0.7s ease-in-out forwards`},"spring-up-wallet":{animation:`${F} 0.7s ease-in-out forwards 2s`},"spring-up-wallet-sc":{animation:`${F} 0.7s ease-in-out forwards 2s, ${j} 0.7s ease-in-out forwards 5s`}}))),O={2:58,3:66,4:74,5:82,6:90,7:120};function N({supercoinBalance:e}){return t(v,{as:"div",styleConfig:{root:[H.chipWrapper]},children:[n("img",{src:I,alt:"supercoin_icon",width:18,height:18}),n(v,{as:"div",styleConfig:{root:[H.chipTextWrapper]},children:n(m,{variant:"B2",styleConfig:{root:[H.textWrapper]},children:e})})]})}function z({walletBalance:e}){return t(v,{as:"div",styleConfig:{root:[H.chipWrapper]},children:[n("img",{src:T,alt:"supercoin_icon",width:18,height:18}),n(v,{as:"div",styleConfig:{root:[H.chipTextWrapper]},children:t(m,{variant:"B2",styleConfig:{root:[H.textWrapper]},children:["₹",e]})})]})}function G({supercoinBalance:e,walletBalance:i,handleClick:o,chipWidthRef:r}){var a;const s=0===i&&e>0||0===e&&0===i,l=s?H["spring-up-wallet-sc"]:H["spring-up-wallet"],c=Math.max(i.toString().length,e.toString().length)+1;!function(e,n){const t=document.querySelector(":root");null==t||t.style.setProperty("--wallet-initial-width",`${e}px`);const i=O[n];null==t||t.style.setProperty("--wallet-final-width",`${Math.max(i,e)}px`)}(null!==(a=null==r?void 0:r.current)&&void 0!==a?a:0,c);const p=0===(null==r?void 0:r.current)?"auto":null==r?void 0:r.current,d=0===(null==r?void 0:r.current)?"":H["width-animation"];return n(v,{as:"div",onClick:o,children:n(v,{as:"div",styleConfig:{root:[H.pillContainer,d,{height:32,width:p}]},children:t(v,{as:"div",styleConfig:{root:[l]},children:[n(N,{supercoinBalance:e}),n(z,{walletBalance:i}),s?n(N,{supercoinBalance:e}):null]})})})}const V=r((()=>({"ba-solid":{},"bc-line-500":{},"width-18":{width:18},"height-18":{height:18},"width-44":{width:44}}))),J=s.lazy((()=>import("@cleartrip/ct-platform-supercoins-floating-island").then((e=>({default:e.SupercoinsFloatingIsland}))))),K=({supercoinsLoading:o,supercoinBurnBalance:r,ravenPayload:s={},onSupercoinsClick:g,supercoinsExpiryCount:w,renderFloatingIsland:x=!0,walletEnabled:b=!1,walletBalance:C,supercoinsFetchError:S})=>{const T=l((()=>{var e;return null!==(e=h("utm_source"))&&void 0!==e?e:"organic"}),[]),[k,E]=c(!1),[F,j]=c(0),[D,H]=c(!1),[O,N]=c(!1),[z,K]=c(!1),Q=l((()=>"number"==typeof r&&r>=0&&!o),[r,o]),[U,X]=c(!1),[Z,ee]=c(null),[ne,te]=c(!1),ie=p(0),oe="entry"===Z?B.supercoinsBalanceBackgroundColorShift:"exit"===Z?B.supercoinsBalanceBackgroundColorShift_exit:"",re="entry"===Z?B.supercoinsBalanceTextColorShift:"exit"===Z?B.supercoinsBalanceTextColorShift_exit:"";function ae(){var n;g&&"function"==typeof g&&g();const{action_event_name:t,impression_event_name:i}=s,o=e(s,["action_event_name","impression_event_name"]);y(null!==(n=t)&&void 0!==n?n:"u_ui_action",Object.assign({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:r,u_utm_source:T},o))}if(d((()=>{j(Number(null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem("expiryAnimationCount")));const e=()=>{if(window.scrollY>0){sessionStorage.getItem(W)||(te(!0),ee(null))}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),d((()=>{if(o)return;const e=P({renderFloatingIsland:x,supercoins:r}),n="number"==typeof w&&w>=A&&!e;let t;return E(n),e&&sessionStorage.setItem("disable_floater","true"),e&&!ne?(ee("entry"),t=setTimeout((()=>{X(!0)}),1500),K(!0)):n?(K(!0),setTimeout((()=>{b&&N(!0)}),1e4)):(b&&N(!0),K(!0)),()=>{clearTimeout(t)}}),[r,w,o]),d((()=>{if(!x||!U)return;const e=setTimeout((()=>{sessionStorage.getItem(W)||(X(!1),ee("exit"),N(!0))}),M.cutoffTimeInMs);return()=>{clearTimeout(e)}}),[]),d((()=>{var n;if("number"==typeof r&&r>=0&&!o&&null!==w){const{action_event_name:t,impression_event_name:i}=s,o=e(s,["action_event_name","impression_event_name"]);y(null!==(n=i)&&void 0!==n?n:"u_impression",Object.assign({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:r,u_utm_source:T,supercoinsExpiryCount:w||"N/A"},o))}}),[o,w]),d((()=>{if(!k||F>=q)return;const e=setTimeout((()=>{H(!0);const e=setTimeout((()=>{H(!1);const e=F+1;j(e),sessionStorage.setItem("expiryAnimationCount",e.toString())}),L);return()=>clearTimeout(e)}),0===F?$:R);return()=>clearTimeout(e)}),[k,F]),S)return n(i,{});const se=()=>n(v,{as:"div",styleConfig:{root:[a["px-2"],a["br-16"],V["ba-solid"],V["bc-line-500"],a["bg-neutral-100"],a["o-hidden"],{paddingTop:6,paddingBottom:6,display:"inline-block"}]},children:t(v,{as:"div",styleConfig:{root:[a.flex,a["flex-middle"],a["flex-gap-1"]]},children:[n(f,{type:"rounded",width:18,height:18}),n(f,{type:"rounded",width:44,height:18})]})});if(_())return n(se,{});if(o||!U&&!O&&!z)return n(se,{});if(!Q)return null;const le=k?"HM4":"B2",ce=k?B.supercoinsExpiryPill:B.supercoinsBalance,pe=k?B.supercoinBurnExpiryColor:"";return O?n(G,{walletBalance:C,supercoinBalance:Number(r),handleClick:ae,chipWidthRef:ie}):t(v,{as:"div",styleConfig:{root:[{position:"relative"}]},children:[n(v,{as:"div",onClick:ae,styleConfig:{root:[ce,oe]},children:t(v,{as:"div",styleConfig:{root:[{display:"flex",alignItems:"center",gap:4}]},children:[n("img",{src:I,alt:"supercoin_icon",width:18,height:18}),t(v,{as:"div",styleConfig:{root:[B.supercoinChipWrapper]},children:[n(m,{variant:le,styleConfig:{root:[re,B.supercoinBurnTextAlign,pe]},children:D?w:r}),k&&n(m,{variant:"HM4",styleConfig:{root:[B.supercoinExpiryText,D?B.supercoinExpiryAnimating:{}]},children:"expiring soon"})]})]})}),U&&!ne&&n(v,{as:"div",styleConfig:{root:[B.superCoinsFloatingIslandContainer]},children:n(u,{fallback:n(i,{}),children:n(J,{superCoins:r,onAnimationStart:()=>function({supercoins:n,ravenPayload:t={},utmSource:i=""}){var o;const{action_event_name:r,impression_event_name:a}=t,s=e(t,["action_event_name","impression_event_name"]);y(null!==(o=a)&&void 0!==o?o:"u_impression",Object.assign({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:n,u_utm_source:i},s)),sessionStorage.setItem("islandAnimationPlayed","true"),Y()}({supercoins:r,ravenPayload:s,utmSource:T}),onAnimationEnd:function(){setTimeout((()=>{b&&N(!0)}),500),ee("exit")}})})})]})};export{K as SupercoinsChip};
1
+ import{__rest as e,__assign as n}from"tslib";import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{makeWebStyles as o,gs as a}from"@cleartrip/ct-design-style-manager";import l,{useMemo as c,useState as s,useRef as u,useEffect as p,Suspense as d}from"react";import{Typography as m}from"@cleartrip/ct-design-typography";import{Shimmer as f}from"@cleartrip/ct-platform-shimmer";import{keyframes as g}from"@emotion/css";import{getQueryParam as h,ravenSDKTrigger as v,isServer as x}from"@cleartrip/ct-platform-utils";var _=g({"0%":{left:"-30%"},"100%":{left:"120%"}}),y=g({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}}),w=g({"0%":{backgroundColor:"#003ea2"},"100%":{backgroundColor:"white"}}),b=g({"0%":{color:"#000"},"100%":{color:"#fff"}}),C=g({"0%":{color:"#fff"},"100%":{color:"#000"}});g({"0%":{backgroundColor:"rgba(0, 62, 162, 0.1)"},"100%":{backgroundColor:"#003ea2"}});var B=o(function(e){return{supercoinsBalance:{paddingTop:6,paddingRight:8,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},supercoinsExpiryPill:{paddingTop:6,paddingRight:0,paddingBottom:6,paddingLeft:8,borderRadius:16,borderWidth:1.5,borderStyle:"solid",borderColor:"#c83232",display:"inline-block",backgroundColor:"#fbefef",overflow:"hidden"},supercoinChipWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4},supercoinBurnTextAlign:{lineHeight:"18px",marginRight:4},supercoinBurnExpiryColor:{color:"#c83232 !important"},supercoinExpiryText:{lineHeight:"18px",display:"inline-block",overflow:"hidden",whiteSpace:"nowrap",width:0,opacity:0,color:"#c83232 !important",transition:"width 0.5s ease-in-out, opacity 0.5s ease-in-out"},supercoinExpiryAnimating:{width:97,opacity:1},superCoinsFloatingIslandContainer:{position:"relative",width:1,marginLeft:"100%"},supercoinsBalanceBackgroundColorShift:{position:"relative",overflow:"hidden",animation:"".concat(y," 600ms forwards"),"&::before":{content:'""',position:"absolute",left:"-30%",top:-10,width:8,height:64,background:"rgba(255, 255, 255, 0.8)",transform:"rotate(25deg)",animation:"".concat(_," 400ms ease-in 0.5s")}},supercoinsBalanceTextColorShift:{animation:"".concat(b," 600ms forwards")},supercoinsBalanceBackgroundColorShift_exit:{position:"relative",overflow:"hidden",animation:"".concat(w," 600ms forwards")},supercoinsBalanceTextColorShift_exit:{animation:"".concat(C," 600ms forwards")}}}),S="https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",I="island_rendered_frquency",k="islandAnimationPlayed",T="island_expiration_frquency",W=5,E=2,A=2e3,N=500,R=1500,L=50,P=1,Y=1,F=5e3;function M(e){var n,t=e.renderFloatingIsland,i=e.supercoins;if(!t)return!1;if(i<L)return!1;if(!("true"===h("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(I);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=P){var r=(n=localStorage.getItem(T))&&"number"==typeof parseInt(n)?parseInt(n):null;return!r||!(r>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(I),localStorage.removeItem(T),!0)}return!sessionStorage.getItem(k)}function q(){var e=localStorage.getItem(I);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(I,n.toString()),n>=P){var t=Math.floor(Date.now()/1e3)+86400*Y;localStorage.setItem(T,t.toString())}}var H=g({"0%":{transform:"translateY(0px)"},"60%":{transform:"translateY(-44px)"},"90%":{transform:"translateY(-40px)"},"100%":{transform:"translateY(-40px)"}}),j=g({"0%":{transform:"translateY(-40px)"},"60%":{transform:"translateY(-84px)"},"90%":{transform:"translateY(-80px)"},"100%":{transform:"translateY(-80px)"}}),z=g({"0%":{width:"var(--wallet-initial-width)"},"100%":{width:"var(--wallet-final-width)"}}),D=o(function(e){return{chipWrapper:{display:"flex",alignItems:"center",gap:4,marginBottom:20,textAlign:"center"},chipTextWrapper:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:0,paddingRight:4,paddingBottom:0,paddingLeft:4,width:"100%",textAlign:"center"},textWrapper:{marginRight:4},pillContainer:{boxSizing:"border-box",paddingTop:5,paddingRight:8,paddingBottom:5,paddingLeft:8,borderRadius:16,borderWidth:1,borderStyle:"solid",borderColor:"#e6e6e6",display:"inline-block",backgroundColor:"#fff",overflow:"hidden"},"width-animation":{animation:"".concat(z," 0.7s ease-in-out forwards")},"spring-up-wallet":{animation:"".concat(H," 0.7s ease-in-out forwards 2s")},"spring-up-wallet-sc":{animation:"".concat(H," 0.7s ease-in-out forwards 2s, ").concat(j," 0.7s ease-in-out forwards 5s")}}}),G={2:58,3:66,4:74,5:82,6:90,7:120};function J(e){var r=e.supercoinBalance;return i("div",n({className:D.chipWrapper},{children:[t("img",{src:S,alt:"supercoin_icon",width:18,height:18}),t("div",n({className:D.chipTextWrapper},{children:t(m,n({variant:"B2",styleConfig:{root:[D.textWrapper]}},{children:r}))}))]}))}function K(e){var r=e.walletBalance;return i("div",n({className:D.chipWrapper},{children:[t("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/wallet-pill-icon.png",alt:"supercoin_icon",width:18,height:18}),t("div",n({className:D.chipTextWrapper},{children:i(m,n({variant:"B2",styleConfig:{root:[D.textWrapper]}},{children:["₹",r]}))}))]}))}function O(e){var r,o=e.supercoinBalance,a=e.walletBalance,l=e.handleClick,c=e.chipWidthRef,s=0===a&&o>0||0===o&&0===a,u=s?D["spring-up-wallet-sc"]:D["spring-up-wallet"],p=Math.max(a.toString().length,o.toString().length)+1;!function(e,n){var t=document.querySelector(":root");null==t||t.style.setProperty("--wallet-initial-width","".concat(e,"px"));var i=G[n];null==t||t.style.setProperty("--wallet-final-width","".concat(Math.max(i,e),"px"))}(null!==(r=null==c?void 0:c.current)&&void 0!==r?r:0,p);var d=0===(null==c?void 0:c.current)?"auto":"".concat(null==c?void 0:c.current,"px"),m=0===(null==c?void 0:c.current)?"":D["width-animation"];return t("div",n({onClick:l},{children:t("div",n({className:"".concat(D.pillContainer," ").concat(m),style:{height:"32px",width:d}},{children:i("div",n({className:u},{children:[t(J,{supercoinBalance:o}),t(K,{walletBalance:a}),s?t(J,{supercoinBalance:o}):null]}))}))}))}var Q=l.lazy(function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then(function(e){return{default:e.SupercoinsFloatingIsland}})}),U=function(o){var l=o.supercoinsLoading,g=o.supercoinBurnBalance,_=o.ravenPayload,y=void 0===_?{}:_,w=o.onSupercoinsClick,b=o.supercoinsExpiryCount,C=o.renderFloatingIsland,I=void 0===C||C,T=o.walletEnabled,L=void 0!==T&&T,P=o.walletBalance,Y=o.supercoinsFetchError,H=c(function(){var e;return null!==(e=h("utm_source"))&&void 0!==e?e:"organic"},[]),j=s(!1),z=j[0],D=j[1],G=s(0),J=G[0],K=G[1],U=s(!1),V=U[0],X=U[1],Z=s(!1),$=Z[0],ee=Z[1],ne=s(!1),te=ne[0],ie=ne[1],re=c(function(){return"number"==typeof g&&g>=0&&!l},[g,l]),oe=s(!1),ae=oe[0],le=oe[1],ce=s(null),se=ce[0],ue=ce[1],pe=s(!1),de=pe[0],me=pe[1],fe=u(0),ge=u(!1),he="entry"===se?B.supercoinsBalanceBackgroundColorShift:"exit"===se?B.supercoinsBalanceBackgroundColorShift_exit:"",ve="entry"===se?B.supercoinsBalanceTextColorShift:"exit"===se?B.supercoinsBalanceTextColorShift_exit:"";function xe(){var t;w&&"function"==typeof w&&w();var i=y.action_event_name;y.impression_event_name;var r=e(y,["action_event_name","impression_event_name"]);v(null!==(t=i)&&void 0!==t?t:"u_ui_action",n({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:g,u_utm_source:H},r))}if(p(function(){K(Number(null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem("expiryAnimationCount")));var e=function(){window.scrollY>0&&(sessionStorage.getItem(k)||(me(!0),ue(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]),p(function(){if(!l){var e,n=M({renderFloatingIsland:I,supercoins:g}),t="number"==typeof b&&b>=W&&!n;return D(t),n&&sessionStorage.setItem("disable_floater","true"),n&&!de?(ue("entry"),e=setTimeout(function(){le(!0)},1500),ie(!0)):t?(ie(!0),setTimeout(function(){L&&ee(!0)},1e4)):(L&&ee(!0),ie(!0)),function(){clearTimeout(e)}}},[g,b,l]),p(function(){if(I&&ae){var e=setTimeout(function(){sessionStorage.getItem(k)||(le(!1),ue("exit"),ee(!0))},F);return function(){clearTimeout(e)}}},[]),p(function(){var t;if("number"==typeof g&&g>=0&&!l&&null!==b){y.action_event_name;var i=y.impression_event_name,r=e(y,["action_event_name","impression_event_name"]);v(null!==(t=i)&&void 0!==t?t:"u_impression",n({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:g,u_utm_source:H,supercoinsExpiryCount:b||"N/A"},r))}},[l,b]),p(function(){if(z&&!(J>=E)){var e=setTimeout(function(){X(!0);var e=setTimeout(function(){X(!1);var e=J+1;K(e),sessionStorage.setItem("expiryAnimationCount",e.toString())},R);return function(){return clearTimeout(e)}},0===J?N:A);return function(){return clearTimeout(e)}}},[z,J]),Y)return t(r,{});var _e=function(){return t("div",n({className:"".concat(a["px-2"]," ").concat(a["br-16"]," ").concat(a["ba-solid"]," ").concat(a["bc-line-500"]," ").concat(a["bg-neutral-100"]," ").concat(a["o-hidden"]),style:{paddingTop:"6px",paddingBottom:"6px",display:"inline-block"}},{children:i("div",n({className:"".concat(a.flex," ").concat(a["flex-middle"]," ").concat(a["flex-gap-1"])},{children:[t(f,{width:18,height:18,type:"rounded"}),t(f,{width:44,height:18,type:"rounded"})]}))}))};if(x())return t(_e,{});if(l||!ae&&!$&&!te)return t(_e,{});if(!re)return null;var ye=z?"HM4":"B2",we=z?B.supercoinsExpiryPill:B.supercoinsBalance,be=z?B.supercoinBurnExpiryColor:"";return $?t(O,{walletBalance:P,supercoinBalance:Number(g),handleClick:xe,chipWidthRef:fe}):i("div",n({style:{position:"relative"}},{children:[t("div",n({ref:function(e){var n;ge.current||(ge.current=!0,fe.current=null!==(n=null==e?void 0:e.offsetWidth)&&void 0!==n?n:0)},className:"".concat(we," ").concat(he),onClick:xe},{children:i("div",n({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[t("img",{src:S,alt:"supercoin_icon",width:18,height:18}),i("div",n({className:B.supercoinChipWrapper},{children:[t(m,n({variant:ye,styleConfig:{root:[ve,B.supercoinBurnTextAlign,be]}},{children:V?b:g})),z&&t(m,n({variant:"HM4",styleConfig:{root:[B.supercoinExpiryText,V?B.supercoinExpiryAnimating:void 0]}},{children:"expiring soon"}))]}))]}))})),ae&&!de&&t("div",n({className:B.superCoinsFloatingIslandContainer},{children:t(d,n({fallback:t(r,{})},{children:t(Q,{superCoins:g,onAnimationStart:function(){return function(t){var i,r=t.supercoins,o=t.ravenPayload,a=void 0===o?{}:o,l=t.utmSource,c=void 0===l?"":l;a.action_event_name;var s=a.impression_event_name,u=e(a,["action_event_name","impression_event_name"]);v(null!==(i=s)&&void 0!==i?i:"u_impression",n({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:r,u_utm_source:c},u)),sessionStorage.setItem("islandAnimationPlayed","true"),q()}({supercoins:g,ravenPayload:y,utmSource:H})},onAnimationEnd:function(){setTimeout(function(){L&&ee(!0)},500),ue("exit")}})}))}))]}))};export{U as SupercoinsChip};
2
2
  //# sourceMappingURL=ct-platform-supercoins-chip.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-supercoins-chip.esm.js","sources":["../packages/components/SupercoinsChip/src/index.module.ts","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts","../packages/components/SupercoinsChip/src/utils/setWalletCssVariables.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.tsx","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["supercoin_chip_loading_shimmer","keyframes","left","supercoins_balance_background_color_shift","backgroundColor","supercoins_balance_background_color_shift_exit","supercoins_balance_text_color_shift","color","supercoins_balance_text_color_shift_exit","styles","makeWebStyles","supercoinsBalance","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","borderWidth","borderStyle","borderColor","display","overflow","supercoinsExpiryPill","supercoinChipWrapper","alignItems","justifyContent","supercoinBurnTextAlign","lineHeight","marginRight","supercoinBurnExpiryColor","supercoinExpiryText","whiteSpace","width","opacity","transition","supercoinExpiryAnimating","superCoinsFloatingIslandContainer","position","marginLeft","supercoinsBalanceBackgroundColorShift","animation","content","top","height","background","transform","supercoinsBalanceTextColorShift","supercoinsBalanceBackgroundColorShift_exit","supercoinsBalanceTextColorShift_exit","SUPERCOINS_CHIP_ICON","WALLET_CHIP_ICON","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_EXPIRY_CONFIG","SUPERCOIN_FLOATING_ISLAND_CONFIG","requiredSupercoins","frequency","frequencyGapInDays","cutoffTimeInMs","isVisibleOnScroll","shouldRenderFloatingIsland","renderFloatingIsland","supercoins","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","expiry","getExpiryEpoch","Math","floor","Date","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","springUp1","springUp2","widthAnimation","chipWrapper","gap","marginBottom","textAlign","chipTextWrapper","textWrapper","pillContainer","boxSizing","widthByNumberOfCharactersMap","SupercoinChip","supercoinBalance","_jsxs","Container","as","styleConfig","root","children","_jsx","src","alt","Typography","variant","WalletChip","walletBalance","WalletAnimation","handleClick","chipWidthRef","renderSupercoinPillOnAnimationEnd","wrapperAnimation","maxNumberOfCharacters","max","length","chipWidth","numberOfCharacters","ctx","document","querySelector","style","setProperty","setWalletCSSVariables","_a","current","containerClass","onClick","staticStyles","makeStyles","LazySuperCoinsFloatingIsland","React","lazy","import","then","module","default","SupercoinsFloatingIsland","SupercoinsChip","supercoinsLoading","supercoinBurnBalance","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","walletEnabled","supercoinsFetchError","utmSource","useMemo","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","useState","animationCount","setAnimationCount","isAnimating","setIsAnimating","startWalletAnimation","setStartWalletAnimation","calculatedAnimation","setCalculatedAnimation","shouldRenderSupercoins","renderSuperCoinIsland","setRenderSuperCoinIsland","chipAnimationType","setChipAnimationType","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","useRef","chipBackgroundAnimationClassname","chipTextAnimationClassname","handleSupercoinsClick","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","useEffect","Number","handleScroll","window","scrollY","addEventListener","removeEventListener","shouldRender","renderSupercoinExpiry","timeout","setTimeout","clearTimeout","startTimer","switchBackTimer","newCount","SupercoinLoadingPill","gs","Shimmer","type","isServer","typographyVariant","chipClassName","expiryColorClass","Suspense","fallback","_Fragment","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"+kBAEA,MAAMA,EAAiCC,EAAU,CAC/C,KAAM,CACJC,KAAM,QAER,OAAQ,CACNA,KAAM,UAIJC,EAA4CF,EAAU,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AACL,EAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAAC3F,EAAO2B,oCAEdiE,SAAAC,EAACqG,EAAS,CAAAC,SAAUtG,EAAKuG,EAAA,CAAA,GAAAxG,SACrBC,EAAC6B,EAA4B,CACzB2E,WAAYjE,EACZkE,iBAAkB,IJnY9B,UAAuBhJ,WACnCA,EAAU+E,aACVA,EAAe,CAAA,EAAEK,UACjBA,EAAY,WAIZ,MAAMwB,kBAAEA,EAAiBC,sBAAEA,GACvB9B,EADiD+B,EACjDC,EAAAhC,EADE,CAAA,oBAAA,0BAENiC,EAAqD,QAApClD,EAAA+C,SAAoC,IAAA/C,EAAAA,EAAA,8BACjDmD,YAAa,8BACbC,UAAW,mBACXC,kBAAmBnH,EACnBoH,aAAchC,GACX0B,IAIPhG,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CI8WgCkI,CAAuB,CACnBjJ,WAAY8E,EACZC,eACAK,cAGR8D,eArUxB,WACInB,YAAW,KACH7C,GAAeY,GAAwB,EAAK,GACjD,KACHO,GAAqB,OACxB,UAsUC"}
1
+ {"version":3,"file":"ct-platform-supercoins-chip.esm.js","sources":["../packages/components/SupercoinsChip/src/index.module.ts","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts","../packages/components/SupercoinsChip/src/utils/setWalletCssVariables.ts","../packages/components/SupercoinsChip/src/walletAnimation/index.tsx","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["supercoin_chip_loading_shimmer","keyframes","left","supercoins_balance_background_color_shift","backgroundColor","supercoins_balance_background_color_shift_exit","supercoins_balance_text_color_shift","color","supercoins_balance_text_color_shift_exit","styles","makeWebStyles","theme","supercoinsBalance","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","borderWidth","borderStyle","borderColor","display","overflow","supercoinsExpiryPill","supercoinChipWrapper","alignItems","justifyContent","supercoinBurnTextAlign","lineHeight","marginRight","supercoinBurnExpiryColor","supercoinExpiryText","whiteSpace","width","opacity","transition","supercoinExpiryAnimating","superCoinsFloatingIslandContainer","position","marginLeft","supercoinsBalanceBackgroundColorShift","animation","concat","content","top","height","background","transform","supercoinsBalanceTextColorShift","supercoinsBalanceBackgroundColorShift_exit","supercoinsBalanceTextColorShift_exit","SUPERCOINS_CHIP_ICON","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_EXPIRY_CONFIG","SUPERCOIN_FLOATING_ISLAND_CONFIG","shouldRenderFloatingIsland","_a","expiry","renderFloatingIsland","supercoins","getQueryParam","frequency","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","Date","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","springUp1","springUp2","widthAnimation","chipWrapper","gap","marginBottom","textAlign","chipTextWrapper","textWrapper","pillContainer","boxSizing","widthByNumberOfCharactersMap","SupercoinChip","supercoinBalance","_jsxs","__assign","className","children","_jsx","src","alt","Typography","variant","styleConfig","root","WalletChip","walletBalance","WalletAnimation","handleClick","chipWidthRef","renderSupercoinPillOnAnimationEnd","wrapperAnimation","maxNumberOfCharacters","max","length","chipWidth","numberOfCharacters","ctx","document","querySelector","style","setProperty","setWalletCSSVariables","_b","current","containerClass","onClick","LazySuperCoinsFloatingIsland","React","lazy","then","module","default","SupercoinsFloatingIsland","SupercoinsChip","supercoinsLoading","supercoinBurnBalance","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","_c","_d","walletEnabled","supercoinsFetchError","utmSource","useMemo","_e","useState","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","_f","animationCount","setAnimationCount","_g","isAnimating","setIsAnimating","_h","startWalletAnimation","setStartWalletAnimation","_j","calculatedAnimation","setCalculatedAnimation","shouldRenderSupercoins","_k","renderSuperCoinIsland","setRenderSuperCoinIsland","_l","chipAnimationType","setChipAnimationType","_m","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","useRef","chipWidthCalculatedRef","chipBackgroundAnimationClassname","chipTextAnimationClassname","handleSupercoinsClick","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","useEffect","Number","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","renderSupercoinExpiry","setTimeout","clearTimeout","startTimer","switchBackTimer","newCount","SupercoinLoadingPill","gs","Shimmer","type","isServer","typographyVariant","chipClassName","expiryColorClass","ref","offsetWidth","undefined","Suspense","fallback","_Fragment","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"ihBAEA,IAAMA,EAAiCC,EAAU,CAC/C,KAAM,CACJC,KAAM,QAER,OAAQ,CACNA,KAAM,UAIJC,EAA4CF,EAAU,CAC1D,KAAM,CACJG,gBAAiB,yBAEnB,OAAQ,CACNA,gBAAiB,aAIfC,EAAiDJ,EAAU,CAC/D,KAAM,CACJG,gBAAiB,WAEnB,OAAQ,CACNA,gBAAiB,WAIfE,EAAsCL,EAAU,CACpD,KAAM,CACJM,MAAO,QAET,OAAQ,CACNA,MAAO,UAILC,EAA2CP,EAAU,CACzD,KAAM,CACJM,MAAO,QAET,OAAQ,CACNA,MAAO,UAImCN,EAAU,CACtD,KAAM,CACJG,gBAAiB,yBAEnB,OAAQ,CACNA,gBAAiB,aAMrB,IAAMK,EAASC,EAAc,SAAAC,GAAS,MAAA,CACpCC,kBAAmB,CACjBC,WAAY,EACZC,aAAc,EACdC,cAAe,EACfC,YAAa,EACbC,aAAc,GACdC,YAAa,EACbC,YAAa,QACbC,YAAa,UACbC,QAAS,eACTjB,gBAAiB,OACjBkB,SAAU,UAGZC,qBAAsB,CACpBV,WAAY,EACZC,aAAc,EACdC,cAA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MAEP,CAAA/G,SAEAyD,EACKf,EACAH,KAGTY,GACGlD,EAACG,KACGC,QAAQ,MACRC,YAAa,CACTC,KAAM,CACF9F,EAAOsB,oBACP0H,EAAchJ,EAAO2B,8BAA2B8K,KAEvD,CAAAlH,SAAA,8BASpBmE,KAA0BM,IACvBxE,EAAA,MAAAH,EAAA,CAAKC,UAAWtF,EAAO4B,mCAAiC,CAAA2D,SACpDC,EAACkH,EAAQrH,EAAA,CAACsH,SAAUnH,EAAAoH,EAAA,CAAA,IAAK,CAAArH,SACrBC,EAAC6B,GACGwF,WAAY/E,EACZgF,iBAAkB,WACd,OJ5V1B,SAAiC7J,SACnCG,EAAUH,EAAAG,WACV8E,EAAAjF,EAAA8E,aAAAA,OAAY,IAAAG,EAAG,CAAA,EAAEA,EACjBC,EAAAlF,EAAAqF,UAAAA,WAASH,EAAG,GAAEA,EAKVJ,EAAYwC,sBADWC,EACvBzC,EAAYyC,sBADqCC,EAAWC,EAC5D3C,EADE,CAAA,oBAAA,0BAEN4C,EAAiD,QAAjC1D,EAACuD,SAAgC,IAAAvD,EAAAA,EAAI,kBACjD2D,YAAa,8BACbC,UAAW,mBACXC,kBAAmB1H,EACnB2H,aAAczC,GACXmC,IAIPxG,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CIsUgC6I,CAAuB,CACnB3J,WAAY0E,EACZC,aAAYA,EACZO,UAASA,GAHb,EAMJ0E,eAjTxB,WACItB,WAAW,WACHtD,GAAegB,IAAwB,EAC/C,EAAG,KACHU,GAAqB,OACzB,aAmTJ"}
@@ -1,16 +1,3 @@
1
- declare const styles: import("@cleartrip/ct-design-types").NamedStyles<{
2
- supercoinsBalance: unknown;
3
- supercoinsExpiryPill: unknown;
4
- supercoinChipWrapper: unknown;
5
- supercoinBurnTextAlign: unknown;
6
- supercoinBurnExpiryColor: unknown;
7
- supercoinExpiryText: unknown;
8
- supercoinExpiryAnimating: unknown;
9
- superCoinsFloatingIslandContainer: unknown;
10
- supercoinsBalanceBackgroundColorShift: unknown;
11
- supercoinsBalanceTextColorShift: unknown;
12
- supercoinsBalanceBackgroundColorShift_exit: unknown;
13
- supercoinsBalanceTextColorShift_exit: unknown;
14
- }>;
1
+ declare const styles: any;
15
2
  export default styles;
16
3
  //# sourceMappingURL=index.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/index.module.ts"],"names":[],"mappings":"AAiDA,QAAA,MAAM,MAAM;;;;;;;;;;;;;EAoGT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/index.module.ts"],"names":[],"mappings":"AA0DA,QAAA,MAAM,MAAM,KAoGT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
@@ -1,10 +1,10 @@
1
- import { MutableRefObject } from 'react';
1
+ import React, { MutableRefObject } from 'react';
2
2
  interface IWalletAnimation {
3
3
  supercoinBalance: number;
4
4
  walletBalance: number;
5
5
  handleClick: () => void;
6
6
  chipWidthRef: MutableRefObject<number>;
7
7
  }
8
- export default function WalletAnimation({ supercoinBalance, walletBalance, handleClick, chipWidthRef, }: IWalletAnimation): import("react/jsx-runtime").JSX.Element;
8
+ export default function WalletAnimation({ supercoinBalance, walletBalance, handleClick, chipWidthRef, }: IWalletAnimation): React.JSX.Element;
9
9
  export {};
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/walletAnimation/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAShD,UAAU,gBAAgB;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAC1C;AAkDD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,YAAY,GACf,EAAE,gBAAgB,2CA6ClB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/walletAnimation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAMhD,UAAU,gBAAgB;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAC1C;AA0CD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,YAAY,GACf,EAAE,gBAAgB,qBA0ClB"}
@@ -1,11 +1,3 @@
1
- declare const styles: import("@cleartrip/ct-design-types").NamedStyles<{
2
- chipWrapper: unknown;
3
- chipTextWrapper: unknown;
4
- textWrapper: unknown;
5
- pillContainer: unknown;
6
- 'width-animation': unknown;
7
- 'spring-up-wallet': unknown;
8
- 'spring-up-wallet-sc': unknown;
9
- }>;
1
+ declare const styles: any;
10
2
  export default styles;
11
3
  //# sourceMappingURL=index.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts"],"names":[],"mappings":"AA2CA,QAAA,MAAM,MAAM;;;;;;;;EAmDT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/walletAnimation/index.module.ts"],"names":[],"mappings":"AA2CA,QAAA,MAAM,MAAM,KAmDT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-supercoins-chip",
3
- "version": "6.0.1-beta.0",
3
+ "version": "6.4.0-SNAPSHOT-native-main.3",
4
4
  "description": "SuperCoins Chip Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-supercoins-chip.cjs.js",
@@ -10,15 +10,18 @@
10
10
  "dist"
11
11
  ],
12
12
  "dependencies": {
13
- "@cleartrip/ct-platform-supercoins-floating-island": "6.0.1-beta.0",
14
- "@cleartrip/ct-platform-utils": "6.0.1-beta.0",
15
- "@cleartrip/ct-platform-shimmer": "6.0.1-beta.0"
13
+ "@cleartrip/ct-platform-shimmer": "6.4.0-SNAPSHOT-native-main.3",
14
+ "@cleartrip/ct-platform-supercoins-floating-island": "6.4.0-SNAPSHOT-native-main.3",
15
+ "@cleartrip/ct-platform-utils": "6.4.0-SNAPSHOT-native-main.3"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=16.8.0",
19
19
  "react-dom": ">=16.8.0",
20
- "@cleartrip/ct-design-typography": "5.27.0-SNAPSHOT-native-main.0",
21
- "@cleartrip/ct-design-types": "5.27.0-SNAPSHOT-native-main.0"
20
+ "styled-components": "^6.1.8",
21
+ "@cleartrip/ct-design-typography": "*"
22
+ },
23
+ "devDependencies": {
24
+ "@cleartrip/ct-design-typography": "5.7.0-SNAPSHOT-native-main.11"
22
25
  },
23
26
  "author": "Cleartrip",
24
27
  "license": "ISC",