@cleartrip/ct-platform-supercoins-chip 1.0.1-beta.32 → 1.0.1-beta.34

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":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AActE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAa7D,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgOjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SupercoinsChip.d.ts","sourceRoot":"","sources":["../packages/components/SuperCoinsChip/src/SupercoinsChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAetE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAa7D,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoRjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export interface SupercoinsChipProps {
2
2
  page?: string;
3
3
  supercoinsLoading: boolean;
4
+ supercoinsExpiryCount?: string | number;
4
5
  supercoinBurnBalance: string | number;
5
6
  supercoinsFetchError?: boolean;
6
7
  hideSupercoinsViaConfig?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SupercoinsChip.types.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/SupercoinsChip.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,6BAA6B;IAC1C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"SupercoinsChip.types.d.ts","sourceRoot":"","sources":["../packages/components/SuperCoinsChip/src/SupercoinsChip.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,6BAA6B;IAC1C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -3,6 +3,13 @@ export declare const SUPERCOIN_ISLAND_RENDERED_FREQUENCY = "island_rendered_frqu
3
3
  export declare const SUPERCOIN_ISLAND_ANIMATION_PLAYED = "islandAnimationPlayed";
4
4
  export declare const SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY = "island_expiration_frquency";
5
5
  export declare const SUPERCOIN_ISLAND_DISABLE_FLOATER = "disable_floater";
6
+ export declare const SUPERCOIN_EXPIRY_CONFIG: {
7
+ minSupercoinsForAnimation: number;
8
+ maxPlayCount: number;
9
+ delayBetweenConsecutiveAnimation: number;
10
+ delayBeforeStartAnimation: number;
11
+ delayAfterExpandAnimation: number;
12
+ };
6
13
  export declare const SUPERCOIN_FLOATING_ISLAND_CONFIG: {
7
14
  requiredSupercoins: number;
8
15
  frequency: number;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,wHACwF,CAAC;AAE1H,eAAO,MAAM,mCAAmC,6BAA6B,CAAC;AAE9E,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AAEzE,eAAO,MAAM,qCAAqC,+BAClB,CAAC;AAEjC,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAElE,eAAO,MAAM,gCAAgC;;;;;;CAM5C,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/SuperCoinsChip/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,wHACwF,CAAC;AAE1H,eAAO,MAAM,mCAAmC,6BAA6B,CAAC;AAE9E,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AAEzE,eAAO,MAAM,qCAAqC,+BAClB,CAAC;AAEjC,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;CAMnC,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;CAM5C,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),r=require("react"),i=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-platform-shimmer"),t=require("@cleartrip/ct-platform-utils");function a(e){return e&&e.__esModule?e:{default:e}}var s=a(r);var c="index-module_supercoinsBalance__w9srh",u="index-module_superCoinsFloatingIslandContainer__5FNNa",l="index-module_supercoinsBalanceBackgroundColorShift__r6YWa",_="index-module_supercoinsBalanceTextColorShift__y7vva",d="index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ",m="index-module_supercoinsBalanceTextColorShift_exit__JKt90";!function(e,n){void 0===n&&(n={});var r=n.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.index-module_supercoinsBalance__w9srh{background-color:#fff;border:1px solid #e6e6e6;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 8px}.index-module_superCoinsFloatingIslandContainer__5FNNa{margin-left:100%;position:relative;width:1px}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa{animation:index-module_supercoins_balance_background_color_shift__1NHEU .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift__y7vva{animation:index-module_supercoins_balance_text_color_shift__V8yxU .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ{animation:index-module_supercoins_balance_background_color_shift_exit__qAHuv .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift_exit__JKt90{animation:index-module_supercoins_balance_text_color_shift_exit__rluZH .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa:before{animation:index-module_supercoin_chip_loading_shimmer__0jquY .4s ease-in .5s;background:hsla(0,0%,100%,.8);content:"";height:64px;left:-30%;position:absolute;top:-10px;transform:rotate(25deg);width:8px}@keyframes index-module_supercoin_chip_loading_shimmer__0jquY{0%{left:-30%}to{left:120%}}@keyframes index-module_supercoins_balance_background_color_shift__1NHEU{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}@keyframes index-module_supercoins_balance_background_color_shift_exit__qAHuv{0%{background-color:#003ea2}to{background-color:rgba(0,62,162,0)}}@keyframes index-module_supercoins_balance_text_color_shift__V8yxU{0%{color:#000}to{color:#fff}}@keyframes index-module_supercoins_balance_text_color_shift_exit__rluZH{0%{color:#fff}to{color:#000}}@keyframes index-module_supercoins_balance_background_shimmer__2lOFp{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}');var p="island_rendered_frquency",f="islandAnimationPlayed",g="island_expiration_frquency",x={requiredSupercoins:50,frequency:3,frequencyGapInDays:15,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function v(e){var n,r=e.renderFloatingIsland,i=e.supercoins;if(new Date>new Date("2025-01-31"))return!1;if(!r)return!1;if(i<x.requiredSupercoins)return!1;if(!("true"===t.getQueryParam("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(p);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=x.frequency){var o=(n=localStorage.getItem(g))&&"number"==typeof parseInt(n)?parseInt(n):null;return!o||!(o>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(p),localStorage.removeItem(g),!0)}return!sessionStorage.getItem(f)}function h(){var e=localStorage.getItem(p);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(p,n.toString()),n>=x.frequency){var r=Math.floor(Date.now()/1e3)+86400*x.frequencyGapInDays;localStorage.setItem(g,r.toString())}}var y=s.default.lazy((function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then((function(e){return{default:e.SupercoinsFloatingIsland}}))}));exports.SupercoinsChip=function(a){var s=a.supercoinsLoading,p=a.supercoinBurnBalance,g=a.ravenPayload,b=void 0===g?{}:g,S=a.onSupercoinsClick,k=a.renderFloatingIsland,I=void 0===k||k,w=r.useMemo((function(){var e;return null!==(e=t.getQueryParam("utm_source"))&&void 0!==e?e:"organic"}),[]),B=r.useMemo((function(){return"number"==typeof p&&p>=0&&!s}),[p,s]),C=r.useState(!1),q=C[0],j=C[1],T=r.useState(null),N=T[0],E=T[1],F=r.useState(!1),D=F[0],A=F[1],M="entry"===N?l:"exit"===N?d:"",H="entry"===N?_:"exit"===N?m:"";return r.useEffect((function(){var e=function(){window.scrollY>0&&(sessionStorage.getItem(f)||(A(!0),E(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),r.useEffect((function(){var e,n=v({renderFloatingIsland:I,supercoins:p});return n&&sessionStorage.setItem("disable_floater","true"),n&&!D&&(E("entry"),e=setTimeout((function(){j(!0)}),1500)),function(){clearTimeout(e)}}),[p]),r.useEffect((function(){if(I&&q){var e=setTimeout((function(){sessionStorage.getItem(f)||(j(!1),E("exit"))}),x.cutoffTimeInMs);return function(){clearTimeout(e)}}}),[]),r.useEffect((function(){var n;if("number"==typeof p&&p>=0&&!s){b.action_event_name;var r=b.impression_event_name,i=e.__rest(b,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(n=r)&&void 0!==n?n:"u_impression",e.__assign({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:p,u_utm_source:w},i))}}),[s]),n.jsx(n.Fragment,{children:s?n.jsx("div",e.__assign({className:c},{children:n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx(o.Shimmer,{width:18,height:18,type:"rounded"}),n.jsx(o.Shimmer,{width:44,height:18,type:"rounded"})]}))})):B?n.jsxs("div",e.__assign({style:{position:"relative"}},{children:[n.jsx("div",e.__assign({className:"".concat(c," ").concat(M),onClick:function(){var n;S&&"function"==typeof S&&S();var r=b.action_event_name;b.impression_event_name;var i=e.__rest(b,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(n=r)&&void 0!==n?n:"u_ui_action",e.__assign({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:p,u_utm_source:w},i))}},{children:n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",alt:"supercoin_icon",width:18,height:18}),n.jsx(i.Typography,e.__assign({variant:"B2",style:{lineHeight:"18px"},className:H},{children:p}))]}))})),q&&!D&&n.jsx("div",e.__assign({className:u},{children:n.jsx(r.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(y,{superCoins:p,onAnimationStart:function(){return function(n){var r,i=n.supercoins,o=n.ravenPayload,a=void 0===o?{}:o,s=n.utmSource,c=void 0===s?"":s;a.action_event_name;var u=a.impression_event_name,l=e.__rest(a,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(r=u)&&void 0!==r?r:"u_impression",e.__assign({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:i,u_utm_source:c},l)),sessionStorage.setItem("islandAnimationPlayed","true"),h()}({supercoins:p,ravenPayload:b,utmSource:w})},onAnimationEnd:function(){E("exit")}})}))}))]})):null})};
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-platform-shimmer"),t=require("@cleartrip/ct-platform-utils");function a(e){return e&&e.__esModule?e:{default:e}}var s=a(i);var u="index-module_supercoinsBalance__w9srh",c="index-module_supercoinsExpiry__1kMrX",l="index-module_supercoinChipWrapper__QPdUS",_="index-module_supercoinBurnTextAlign__g-go5",d="index-module_supercoinBurnExpiryColor__FTFjA",p="index-module_supercoinExpiryText__rkVbG",m="index-module_supercoinExpiryAnimating__Gdq0n",f="index-module_superCoinsFloatingIslandContainer__5FNNa",g="index-module_supercoinsBalanceBackgroundColorShift__r6YWa",x="index-module_supercoinsBalanceTextColorShift__y7vva",h="index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ",v="index-module_supercoinsBalanceTextColorShift_exit__JKt90";!function(e,n){void 0===n&&(n={});var i=n.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.index-module_supercoinsBalance__w9srh{background-color:#fff;border:1px solid #e6e6e6;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 8px}.index-module_supercoinsExpiry__1kMrX{background-color:var(--Error-Red-100,#fbefef);border:1.5px solid #c83232;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 0 6px 8px}.index-module_supercoinChipWrapper__QPdUS{align-items:center;display:flex;justify-content:center;padding:0 4px}.index-module_supercoinBurnTextAlign__g-go5{line-height:18px;margin-right:6px}.index-module_supercoinBurnExpiryColor__FTFjA{color:#c83232!important}.index-module_supercoinExpiryText__rkVbG{color:#c83232!important;display:inline-block;line-height:18px;opacity:0;overflow:hidden;transition:width .4s ease-in-out,opacity .4s ease-in-out;white-space:nowrap;width:0}.index-module_supercoinExpiryAnimating__Gdq0n{opacity:1;width:97px}.index-module_superCoinsFloatingIslandContainer__5FNNa{margin-left:100%;position:relative;width:1px}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa{animation:index-module_supercoins_balance_background_color_shift__1NHEU .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift__y7vva{animation:index-module_supercoins_balance_text_color_shift__V8yxU .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ{animation:index-module_supercoins_balance_background_color_shift_exit__qAHuv .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift_exit__JKt90{animation:index-module_supercoins_balance_text_color_shift_exit__rluZH .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa:before{animation:index-module_supercoin_chip_loading_shimmer__0jquY .4s ease-in .5s;background:hsla(0,0%,100%,.8);content:"";height:64px;left:-30%;position:absolute;top:-10px;transform:rotate(25deg);width:8px}@keyframes index-module_supercoin_chip_loading_shimmer__0jquY{0%{left:-30%}to{left:120%}}@keyframes index-module_supercoins_balance_background_color_shift__1NHEU{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}@keyframes index-module_supercoins_balance_background_color_shift_exit__qAHuv{0%{background-color:#003ea2}to{background-color:rgba(0,62,162,0)}}@keyframes index-module_supercoins_balance_text_color_shift__V8yxU{0%{color:#000}to{color:#fff}}@keyframes index-module_supercoins_balance_text_color_shift_exit__rluZH{0%{color:#fff}to{color:#000}}@keyframes index-module_supercoins_balance_background_shimmer__2lOFp{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}');var y="island_rendered_frquency",b="islandAnimationPlayed",S="island_expiration_frquency",k=5,w=2,I=1e3,C=500,T=4e3,B={requiredSupercoins:50,frequency:3,frequencyGapInDays:15,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function E(e){var n,i=e.renderFloatingIsland,r=e.supercoins;if(new Date>new Date("2025-01-31"))return!1;if(!i)return!1;if(r<B.requiredSupercoins)return!1;if(!("true"===t.getQueryParam("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(y);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=B.frequency){var o=(n=localStorage.getItem(S))&&"number"==typeof parseInt(n)?parseInt(n):null;return!o||!(o>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(y),localStorage.removeItem(S),!0)}return!sessionStorage.getItem(b)}function j(){var e=localStorage.getItem(y);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(y,n.toString()),n>=B.frequency){var i=Math.floor(Date.now()/1e3)+86400*B.frequencyGapInDays;localStorage.setItem(S,i.toString())}}var q=s.default.lazy((function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then((function(e){return{default:e.SupercoinsFloatingIsland}}))}));exports.SupercoinsChip=function(a){var s=a.supercoinsLoading,y=a.supercoinBurnBalance,S=a.ravenPayload,A=void 0===S?{}:S,F=a.onSupercoinsClick,N=a.supercoinsExpiryCount,M=a.renderFloatingIsland,D=void 0===M||M,P=i.useMemo((function(){var e;return null!==(e=t.getQueryParam("utm_source"))&&void 0!==e?e:"organic"}),[]),H=i.useState(!1),U=H[0],G=H[1],Y=i.useState((function(){return Number(sessionStorage.getItem("expiryAnimationCount"))||0})),K=Y[0],V=Y[1],W=i.useState(!1),J=W[0],Q=W[1],L=i.useMemo((function(){return"number"==typeof y&&y>=0&&!s}),[y,s]),O=i.useState(!1),X=O[0],Z=O[1],z=i.useState(null),R=z[0],$=z[1],ee=i.useState(!1),ne=ee[0],ie=ee[1],re="entry"===R?g:"exit"===R?h:"",oe="entry"===R?x:"exit"===R?v:"";return i.useEffect((function(){var e=function(){window.scrollY>0&&(sessionStorage.getItem(b)||(ie(!0),$(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),i.useEffect((function(){var e,n=E({renderFloatingIsland:D,supercoins:y});return G("number"==typeof N&&N>k&&!n),n&&sessionStorage.setItem("disable_floater","true"),n&&!ne&&($("entry"),e=setTimeout((function(){Z(!0)}),1500)),function(){clearTimeout(e)}}),[y,N]),i.useEffect((function(){if(D&&X){var e=setTimeout((function(){sessionStorage.getItem(b)||(Z(!1),$("exit"))}),B.cutoffTimeInMs);return function(){clearTimeout(e)}}}),[]),i.useEffect((function(){var n;if("number"==typeof y&&y>=0&&!s){A.action_event_name;var i=A.impression_event_name,r=e.__rest(A,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(n=i)&&void 0!==n?n:"u_impression",e.__assign({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:y,u_utm_source:P,supercoinsExpiryCount:N},r))}}),[s]),i.useEffect((function(){if(U&&!(K>=w)){var e=setTimeout((function(){Q(!0);var e=setTimeout((function(){Q(!1);var e=K+1;V(e),sessionStorage.setItem("expiryAnimationCount",e.toString())}),T);return function(){return clearTimeout(e)}}),0===K?C:I);return function(){return clearTimeout(e)}}}),[U,K]),n.jsx(n.Fragment,{children:s?n.jsx("div",e.__assign({className:u},{children:n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx(o.Shimmer,{width:18,height:18,type:"rounded"}),n.jsx(o.Shimmer,{width:44,height:18,type:"rounded"})]}))})):L?n.jsxs("div",e.__assign({style:{position:"relative"}},{children:[n.jsx("div",e.__assign({className:"".concat(U?c:u," ").concat(re),onClick:function(){var n;F&&"function"==typeof F&&F();var i=A.action_event_name;A.impression_event_name;var r=e.__rest(A,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(n=i)&&void 0!==n?n:"u_ui_action",e.__assign({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:y,u_utm_source:P},r))}},{children:n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",alt:"supercoin_icon",width:18,height:18}),n.jsxs("div",e.__assign({className:l},{children:[n.jsx(r.Typography,e.__assign({variant:U?"HM4":"B2",className:"".concat(oe," ").concat(_," ").concat(U?d:""," ")},{children:J?N:y})),U&&n.jsx(r.Typography,e.__assign({variant:"HM4",className:"".concat(p," ").concat(J?m:"")},{children:"expiring soon"}))]}))]}))})),X&&!ne&&n.jsx("div",e.__assign({className:f},{children:n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(q,{superCoins:y,onAnimationStart:function(){return function(n){var i,r=n.supercoins,o=n.ravenPayload,a=void 0===o?{}:o,s=n.utmSource,u=void 0===s?"":s;a.action_event_name;var c=a.impression_event_name,l=e.__rest(a,["action_event_name","impression_event_name"]);t.ravenSDKTrigger(null!==(i=c)&&void 0!==i?i:"u_impression",e.__assign({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:r,u_utm_source:u},l)),sessionStorage.setItem("islandAnimationPlayed","true"),j()}({supercoins:y,ravenPayload:A,utmSource:P})},onAnimationEnd:function(){$("exit")}})}))}))]})):null})};
2
2
  //# sourceMappingURL=ct-platform-supercoins-chip.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-supercoins-chip.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_FLOATING_ISLAND_CONFIG","requiredSupercoins","frequency","frequencyGapInDays","cutoffTimeInMs","isVisibleOnScroll","shouldRenderFloatingIsland","_a","expiry","renderFloatingIsland","supercoins","Date","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","LazySuperCoinsFloatingIsland","React","lazy","import","then","module","default","SupercoinsFloatingIsland","supercoinsLoading","supercoinBurnBalance","_b","ravenPayload","onSupercoinsClick","_c","utmSource","useMemo","shouldRenderSupercoins","_d","useState","renderSuperCoinIsland","setRenderSuperCoinIsland","_e","chipAnimationType","setChipAnimationType","_f","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","chipBackgroundAnimationClassname","styles","chipTextAnimationClassname","useEffect","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","setTimeout","clearTimeout","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","_jsx","_Fragment","children","jsx","__assign","className","_jsxs","jsxs","display","alignItems","gap","Shimmer","width","height","position","concat","onClick","src","alt","Typography","variant","lineHeight","Suspense","fallback","Fragment","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"snBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,s1DCzBO,IAGMe,EAAsC,2BAEtCC,EAAoC,wBAEpCC,EACT,6BAISC,EAAmC,CAC5CC,mBAAoB,GACpBC,UAAW,EACXC,mBAAoB,GACpBC,eAAgB,IAChBC,mBAAmB,GCIC,SAAAC,EAA2BC,OALzCC,EAMNC,EAAoBF,EA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,MAAA,CAAAiB,IHpN5B,sHGqN4BC,IAAK,iBACLN,MAAO,GACPC,OAAQ,KAEZb,MAACmB,EAAAA,WACGf,EAAAA,SAAA,CAAAgB,QAAS,KACT5G,MAAO,CAAE6G,WAAY,QACrBhB,UAAWzB,GAA0B,CAAAsB,SAEpC1C,YAIZU,IAA0BM,GACvBwB,EACIG,IAAA,MAAAC,EAAAA,SAAA,CAAAC,UAAW1B,GAAwC,CAAAuB,SAEnDF,EAAAA,IAACsB,EAAAA,SAASlB,EAAAA,SAAA,CAAAmB,SAAUvB,EAAKG,IAAAF,EAAAuB,SAAA,CAAA,IAAA,CAAAtB,SACrBF,EAAAA,IAACjD,GACG0E,WAAYjE,EACZkE,iBAAkB,WACd,ODnMlC,SAAiC/F,SACnCG,EAAUH,EAAAG,WACV8B,EAAiBjC,EAAA+B,aAAjBA,OAAe,IAAAE,EAAA,CAAE,EAAAA,EACjBI,EAAcrC,EAAAkC,UAAdA,OAAS,IAAAG,EAAG,GAAEA,EAKVN,EADqB6B,sBAAEC,EACvB9B,EAD4C8B,sBAAKC,EACjDC,EAAAA,OAAAhC,EADE,CAAA,oBAAA,0BAENiC,kBAAqD,QAApClC,EAAA+B,SAAoC,IAAA/B,EAAAA,EAAA,2BACjDmC,YAAa,8BACbC,UAAW,mBACXC,kBAAmBhE,EACnBiE,aAAclC,GACX4B,IAIP/C,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CC6KwCgF,CAAuB,CACnB7F,WACI0B,EACJE,aAAYA,EACZG,UAASA,GACX,EAEN+D,eA7KhC,WACItD,EAAqB,OACxB,cAiLW,MAGhB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-supercoins-chip.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/SuperCoinsChip/src/constants.ts","../packages/components/SuperCoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SuperCoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SuperCoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","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","_a","expiry","renderFloatingIsland","supercoins","Date","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","LazySuperCoinsFloatingIsland","React","lazy","import","then","module","default","SupercoinsFloatingIsland","supercoinsLoading","supercoinBurnBalance","_b","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","_c","utmSource","useMemo","_d","useState","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","_e","Number","animationCount","setAnimationCount","_f","isAnimating","setIsAnimating","shouldRenderSupercoins","_g","renderSuperCoinIsland","setRenderSuperCoinIsland","_h","chipAnimationType","setChipAnimationType","_j","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","chipBackgroundAnimationClassname","styles","chipTextAnimationClassname","useEffect","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","setTimeout","clearTimeout","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","__assign","action_name","page_name","supercoin_balance","u_utm_source","startTimer","switchBackTimer","newCount","_jsx","_Fragment","children","jsx","className","_jsxs","jsxs","display","alignItems","gap","Shimmer","width","height","position","concat","onClick","src","alt","Typography","variant","Suspense","fallback","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"y4BAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,8iFCzBO,IAGMe,EAAsC,2BAEtCC,EAAoC,wBAEpCC,EACT,6BAISC,EACkB,EADlBA,EAEK,EAFLA,EAGyB,IAHzBA,EAIkB,IAJlBA,EAKkB,IAGlBC,EAAmC,CAC5CC,mBAAoB,GACpBC,UAAW,EACXC,mBAAoB,GACpBC,eAAgB,IAChBC,mBAAmB,GCJC,SAAAC,EAA2BC,OALzCC,EAMNC,EAAoBF,EAAAE,qBACpBC,EAAUH,EAAAG,WAKV,GAFoB,IAAIC,KACJ,IAAIA,KAAK,cACE,OAAO,EAGtC,IAAKF,EAAsB,OAAO,EAElC,GAAIC,EAAaV,EAAiCC,mBAC9C,OAAO,EAIX,KADqD,SAAjCW,EAAAA,cAAc,gBAChB,OAAO,EAIzB,GAjCJ,WACI,IAAMV,EAAYW,aAAaC,QAAQlB,GACvC,OAAKM,GAA4C,iBA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SACrBF,MAAChE,EAA4B,CACzBsF,WAAY7E,EACZ8E,iBAAkB,WACd,ODxPlC,SAAiC3G,SACnCG,EAAUH,EAAAG,WACV+B,EAAiBlC,EAAA+B,aAAjBA,OAAe,IAAAG,EAAA,CAAE,EAAAA,EACjBG,EAAcrC,EAAAmC,UAAdA,OAAS,IAAAE,EAAG,GAAEA,EAKVN,EADqBwC,sBAAEC,EACvBzC,EAD4CyC,sBAAKC,EACjDC,EAAAA,OAAA3C,EADE,CAAA,oBAAA,0BAEN4C,kBAAqD,QAApC7C,EAAA0C,SAAoC,IAAA1C,EAAAA,EAAA,2BACjD+C,YAAa,8BACbC,UAAW,mBACXC,kBAAmB5E,EACnB6E,aAAc7C,GACXsC,IAIP1D,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CCkOwC4F,CAAuB,CACnBzG,WACI0B,EACJE,aAAYA,EACZI,UAASA,GACX,EAEN0E,eAzNhC,WACIvD,EAAqB,OACxB,cA6NW,MAGhB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n}from"tslib";import{jsx as o,Fragment as i,jsxs as r}from"react/jsx-runtime";import t,{useMemo as a,useState as s,useEffect as c,Suspense as l}from"react";import{Typography as u}from"@cleartrip/ct-design-typography";import{Shimmer as _}from"@cleartrip/ct-platform-shimmer";import{getQueryParam as d,ravenSDKTrigger as m}from"@cleartrip/ct-platform-utils";var p="index-module_supercoinsBalance__w9srh",f="index-module_superCoinsFloatingIslandContainer__5FNNa",g="index-module_supercoinsBalanceBackgroundColorShift__r6YWa",v="index-module_supercoinsBalanceTextColorShift__y7vva",h="index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ",x="index-module_supercoinsBalanceTextColorShift_exit__JKt90";!function(e,n){void 0===n&&(n={});var o=n.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('.index-module_supercoinsBalance__w9srh{background-color:#fff;border:1px solid #e6e6e6;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 8px}.index-module_superCoinsFloatingIslandContainer__5FNNa{margin-left:100%;position:relative;width:1px}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa{animation:index-module_supercoins_balance_background_color_shift__1NHEU .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift__y7vva{animation:index-module_supercoins_balance_text_color_shift__V8yxU .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ{animation:index-module_supercoins_balance_background_color_shift_exit__qAHuv .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift_exit__JKt90{animation:index-module_supercoins_balance_text_color_shift_exit__rluZH .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa:before{animation:index-module_supercoin_chip_loading_shimmer__0jquY .4s ease-in .5s;background:hsla(0,0%,100%,.8);content:"";height:64px;left:-30%;position:absolute;top:-10px;transform:rotate(25deg);width:8px}@keyframes index-module_supercoin_chip_loading_shimmer__0jquY{0%{left:-30%}to{left:120%}}@keyframes index-module_supercoins_balance_background_color_shift__1NHEU{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}@keyframes index-module_supercoins_balance_background_color_shift_exit__qAHuv{0%{background-color:#003ea2}to{background-color:rgba(0,62,162,0)}}@keyframes index-module_supercoins_balance_text_color_shift__V8yxU{0%{color:#000}to{color:#fff}}@keyframes index-module_supercoins_balance_text_color_shift_exit__rluZH{0%{color:#fff}to{color:#000}}@keyframes index-module_supercoins_balance_background_shimmer__2lOFp{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}');var y="island_rendered_frquency",b="islandAnimationPlayed",S="island_expiration_frquency",k={requiredSupercoins:50,frequency:3,frequencyGapInDays:15,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function I(e){var n,o=e.renderFloatingIsland,i=e.supercoins;if(new Date>new Date("2025-01-31"))return!1;if(!o)return!1;if(i<k.requiredSupercoins)return!1;if(!("true"===d("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(y);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=k.frequency){var r=(n=localStorage.getItem(S))&&"number"==typeof parseInt(n)?parseInt(n):null;return!r||!(r>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(y),localStorage.removeItem(S),!0)}return!sessionStorage.getItem(b)}function w(){var e=localStorage.getItem(y);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(y,n.toString()),n>=k.frequency){var o=Math.floor(Date.now()/1e3)+86400*k.frequencyGapInDays;localStorage.setItem(S,o.toString())}}var B=t.lazy((function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then((function(e){return{default:e.SupercoinsFloatingIsland}}))})),C=function(t){var y=t.supercoinsLoading,S=t.supercoinBurnBalance,C=t.ravenPayload,q=void 0===C?{}:C,T=t.onSupercoinsClick,N=t.renderFloatingIsland,F=void 0===N||N,A=a((function(){var e;return null!==(e=d("utm_source"))&&void 0!==e?e:"organic"}),[]),E=a((function(){return"number"==typeof S&&S>=0&&!y}),[S,y]),H=s(!1),D=H[0],U=H[1],Y=s(null),M=Y[0],P=Y[1],J=s(!1),j=J[0],L=J[1],V="entry"===M?g:"exit"===M?h:"",W="entry"===M?v:"exit"===M?x:"";return c((function(){var e=function(){window.scrollY>0&&(sessionStorage.getItem(b)||(L(!0),P(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),c((function(){var e,n=I({renderFloatingIsland:F,supercoins:S});return n&&sessionStorage.setItem("disable_floater","true"),n&&!j&&(P("entry"),e=setTimeout((function(){U(!0)}),1500)),function(){clearTimeout(e)}}),[S]),c((function(){if(F&&D){var e=setTimeout((function(){sessionStorage.getItem(b)||(U(!1),P("exit"))}),k.cutoffTimeInMs);return function(){clearTimeout(e)}}}),[]),c((function(){var o;if("number"==typeof S&&S>=0&&!y){q.action_event_name;var i=q.impression_event_name,r=e(q,["action_event_name","impression_event_name"]);m(null!==(o=i)&&void 0!==o?o:"u_impression",n({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:S,u_utm_source:A},r))}}),[y]),o(i,{children:y?o("div",n({className:p},{children:r("div",n({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[o(_,{width:18,height:18,type:"rounded"}),o(_,{width:44,height:18,type:"rounded"})]}))})):E?r("div",n({style:{position:"relative"}},{children:[o("div",n({className:"".concat(p," ").concat(V),onClick:function(){var o;T&&"function"==typeof T&&T();var i=q.action_event_name;q.impression_event_name;var r=e(q,["action_event_name","impression_event_name"]);m(null!==(o=i)&&void 0!==o?o:"u_ui_action",n({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:S,u_utm_source:A},r))}},{children:r("div",n({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[o("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",alt:"supercoin_icon",width:18,height:18}),o(u,n({variant:"B2",style:{lineHeight:"18px"},className:W},{children:S}))]}))})),D&&!j&&o("div",n({className:f},{children:o(l,n({fallback:o(i,{})},{children:o(B,{superCoins:S,onAnimationStart:function(){return function(o){var i,r=o.supercoins,t=o.ravenPayload,a=void 0===t?{}:t,s=o.utmSource,c=void 0===s?"":s;a.action_event_name;var l=a.impression_event_name,u=e(a,["action_event_name","impression_event_name"]);m(null!==(i=l)&&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"),w()}({supercoins:S,ravenPayload:q,utmSource:A})},onAnimationEnd:function(){P("exit")}})}))}))]})):null})};export{C as SupercoinsChip};
1
+ import{__rest as e,__assign as n}from"tslib";import{jsx as o,Fragment as i,jsxs as r}from"react/jsx-runtime";import t,{useMemo as a,useState as c,useEffect as s,Suspense as l}from"react";import{Typography as u}from"@cleartrip/ct-design-typography";import{Shimmer as d}from"@cleartrip/ct-platform-shimmer";import{getQueryParam as _,ravenSDKTrigger as p}from"@cleartrip/ct-platform-utils";var m="index-module_supercoinsBalance__w9srh",f="index-module_supercoinsExpiry__1kMrX",x="index-module_supercoinChipWrapper__QPdUS",g="index-module_supercoinBurnTextAlign__g-go5",h="index-module_supercoinBurnExpiryColor__FTFjA",v="index-module_supercoinExpiryText__rkVbG",y="index-module_supercoinExpiryAnimating__Gdq0n",b="index-module_superCoinsFloatingIslandContainer__5FNNa",S="index-module_supercoinsBalanceBackgroundColorShift__r6YWa",k="index-module_supercoinsBalanceTextColorShift__y7vva",w="index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ",I="index-module_supercoinsBalanceTextColorShift_exit__JKt90";!function(e,n){void 0===n&&(n={});var o=n.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('.index-module_supercoinsBalance__w9srh{background-color:#fff;border:1px solid #e6e6e6;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 8px}.index-module_supercoinsExpiry__1kMrX{background-color:var(--Error-Red-100,#fbefef);border:1.5px solid #c83232;border-radius:16px;display:inline-block;overflow:hidden;padding:6px 0 6px 8px}.index-module_supercoinChipWrapper__QPdUS{align-items:center;display:flex;justify-content:center;padding:0 4px}.index-module_supercoinBurnTextAlign__g-go5{line-height:18px;margin-right:6px}.index-module_supercoinBurnExpiryColor__FTFjA{color:#c83232!important}.index-module_supercoinExpiryText__rkVbG{color:#c83232!important;display:inline-block;line-height:18px;opacity:0;overflow:hidden;transition:width .4s ease-in-out,opacity .4s ease-in-out;white-space:nowrap;width:0}.index-module_supercoinExpiryAnimating__Gdq0n{opacity:1;width:97px}.index-module_superCoinsFloatingIslandContainer__5FNNa{margin-left:100%;position:relative;width:1px}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa{animation:index-module_supercoins_balance_background_color_shift__1NHEU .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift__y7vva{animation:index-module_supercoins_balance_text_color_shift__V8yxU .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift_exit__sinUJ{animation:index-module_supercoins_balance_background_color_shift_exit__qAHuv .6s forwards;overflow:hidden;position:relative}.index-module_supercoinsBalanceTextColorShift_exit__JKt90{animation:index-module_supercoins_balance_text_color_shift_exit__rluZH .6s forwards}.index-module_supercoinsBalanceBackgroundColorShift__r6YWa:before{animation:index-module_supercoin_chip_loading_shimmer__0jquY .4s ease-in .5s;background:hsla(0,0%,100%,.8);content:"";height:64px;left:-30%;position:absolute;top:-10px;transform:rotate(25deg);width:8px}@keyframes index-module_supercoin_chip_loading_shimmer__0jquY{0%{left:-30%}to{left:120%}}@keyframes index-module_supercoins_balance_background_color_shift__1NHEU{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}@keyframes index-module_supercoins_balance_background_color_shift_exit__qAHuv{0%{background-color:#003ea2}to{background-color:rgba(0,62,162,0)}}@keyframes index-module_supercoins_balance_text_color_shift__V8yxU{0%{color:#000}to{color:#fff}}@keyframes index-module_supercoins_balance_text_color_shift_exit__rluZH{0%{color:#fff}to{color:#000}}@keyframes index-module_supercoins_balance_background_shimmer__2lOFp{0%{background-color:rgba(0,62,162,.1)}to{background-color:#003ea2}}');var C="island_rendered_frquency",B="islandAnimationPlayed",T="island_expiration_frquency",E=5,q=2,A=1e3,N=500,F=4e3,M={requiredSupercoins:50,frequency:3,frequencyGapInDays:15,cutoffTimeInMs:5e3,isVisibleOnScroll:!1};function H(e){var n,o=e.renderFloatingIsland,i=e.supercoins;if(new Date>new Date("2025-01-31"))return!1;if(!o)return!1;if(i<M.requiredSupercoins)return!1;if(!("true"===_("isMobileApp")))return!1;if(function(){var e=localStorage.getItem(C);return e&&"number"==typeof parseInt(e)?parseInt(e):0}()>=M.frequency){var r=(n=localStorage.getItem(T))&&"number"==typeof parseInt(n)?parseInt(n):null;return!r||!(r>Math.floor(Date.now()/1e3))&&(localStorage.removeItem(C),localStorage.removeItem(T),!0)}return!sessionStorage.getItem(B)}function U(){var e=localStorage.getItem(C);e||(e="0");var n=parseInt(e)+1;if(localStorage.setItem(C,n.toString()),n>=M.frequency){var o=Math.floor(Date.now()/1e3)+86400*M.frequencyGapInDays;localStorage.setItem(T,o.toString())}}var P=t.lazy((function(){return import("@cleartrip/ct-platform-supercoins-floating-island").then((function(e){return{default:e.SupercoinsFloatingIsland}}))})),j=function(t){var C=t.supercoinsLoading,T=t.supercoinBurnBalance,j=t.ravenPayload,D=void 0===j?{}:j,G=t.onSupercoinsClick,Y=t.supercoinsExpiryCount,V=t.renderFloatingIsland,W=void 0===V||V,J=a((function(){var e;return null!==(e=_("utm_source"))&&void 0!==e?e:"organic"}),[]),L=c(!1),K=L[0],O=L[1],Q=c((function(){return Number(sessionStorage.getItem("expiryAnimationCount"))||0})),X=Q[0],Z=Q[1],z=c(!1),R=z[0],$=z[1],ee=a((function(){return"number"==typeof T&&T>=0&&!C}),[T,C]),ne=c(!1),oe=ne[0],ie=ne[1],re=c(null),te=re[0],ae=re[1],ce=c(!1),se=ce[0],le=ce[1],ue="entry"===te?S:"exit"===te?w:"",de="entry"===te?k:"exit"===te?I:"";return s((function(){var e=function(){window.scrollY>0&&(sessionStorage.getItem(B)||(le(!0),ae(null)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),s((function(){var e,n=H({renderFloatingIsland:W,supercoins:T});return O("number"==typeof Y&&Y>E&&!n),n&&sessionStorage.setItem("disable_floater","true"),n&&!se&&(ae("entry"),e=setTimeout((function(){ie(!0)}),1500)),function(){clearTimeout(e)}}),[T,Y]),s((function(){if(W&&oe){var e=setTimeout((function(){sessionStorage.getItem(B)||(ie(!1),ae("exit"))}),M.cutoffTimeInMs);return function(){clearTimeout(e)}}}),[]),s((function(){var o;if("number"==typeof T&&T>=0&&!C){D.action_event_name;var i=D.impression_event_name,r=e(D,["action_event_name","impression_event_name"]);p(null!==(o=i)&&void 0!==o?o:"u_impression",n({action_name:"supercoin_pill_impression",page_name:"unified_homepage",supercoin_balance:T,u_utm_source:J,supercoinsExpiryCount:Y},r))}}),[C]),s((function(){if(K&&!(X>=q)){var e=setTimeout((function(){$(!0);var e=setTimeout((function(){$(!1);var e=X+1;Z(e),sessionStorage.setItem("expiryAnimationCount",e.toString())}),F);return function(){return clearTimeout(e)}}),0===X?N:A);return function(){return clearTimeout(e)}}}),[K,X]),o(i,{children:C?o("div",n({className:m},{children:r("div",n({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[o(d,{width:18,height:18,type:"rounded"}),o(d,{width:44,height:18,type:"rounded"})]}))})):ee?r("div",n({style:{position:"relative"}},{children:[o("div",n({className:"".concat(K?f:m," ").concat(ue),onClick:function(){var o;G&&"function"==typeof G&&G();var i=D.action_event_name;D.impression_event_name;var r=e(D,["action_event_name","impression_event_name"]);p(null!==(o=i)&&void 0!==o?o:"u_ui_action",n({action_name:"supercoin_icon_click",page_name:"unified_homepage",supercoin_balance:T,u_utm_source:J},r))}},{children:r("div",n({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[o("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto,dpr_2/offermgmt-prod/offermgmt/images/banner/supercoins-chip-icon.png",alt:"supercoin_icon",width:18,height:18}),r("div",n({className:x},{children:[o(u,n({variant:K?"HM4":"B2",className:"".concat(de," ").concat(g," ").concat(K?h:""," ")},{children:R?Y:T})),K&&o(u,n({variant:"HM4",className:"".concat(v," ").concat(R?y:"")},{children:"expiring soon"}))]}))]}))})),oe&&!se&&o("div",n({className:b},{children:o(l,n({fallback:o(i,{})},{children:o(P,{superCoins:T,onAnimationStart:function(){return function(o){var i,r=o.supercoins,t=o.ravenPayload,a=void 0===t?{}:t,c=o.utmSource,s=void 0===c?"":c;a.action_event_name;var l=a.impression_event_name,u=e(a,["action_event_name","impression_event_name"]);p(null!==(i=l)&&void 0!==i?i:"u_impression",n({action_name:"supercoin_banner_impression",page_name:"unified_homepage",supercoin_balance:r,u_utm_source:s},u)),sessionStorage.setItem("islandAnimationPlayed","true"),U()}({supercoins:T,ravenPayload:D,utmSource:J})},onAnimationEnd:function(){ae("exit")}})}))}))]})):null})};export{j 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":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/SupercoinsChip/src/constants.ts","../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SupercoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","SUPERCOIN_ISLAND_RENDERED_FREQUENCY","SUPERCOIN_ISLAND_ANIMATION_PLAYED","SUPERCOIN_ISLAND_EXPIRATION_FREQUENCY","SUPERCOIN_FLOATING_ISLAND_CONFIG","requiredSupercoins","frequency","frequencyGapInDays","cutoffTimeInMs","isVisibleOnScroll","shouldRenderFloatingIsland","_a","expiry","renderFloatingIsland","supercoins","Date","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","LazySuperCoinsFloatingIsland","React","lazy","import","then","module","default","SupercoinsFloatingIsland","SupercoinsChip","supercoinsLoading","supercoinBurnBalance","_b","ravenPayload","onSupercoinsClick","_c","utmSource","useMemo","shouldRenderSupercoins","_d","useState","renderSuperCoinIsland","setRenderSuperCoinIsland","_e","chipAnimationType","setChipAnimationType","_f","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","chipBackgroundAnimationClassname","styles","chipTextAnimationClassname","useEffect","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","setTimeout","clearTimeout","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","action_name","page_name","supercoin_balance","u_utm_source","_jsx","_Fragment","children","__assign","className","_jsxs","display","alignItems","gap","Shimmer","width","height","position","concat","onClick","src","alt","Typography","variant","lineHeight","Suspense","fallback","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"kuBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,s1DCzBO,IAGMe,EAAsC,2BAEtCC,EAAoC,wBAEpCC,EACT,6BAISC,EAAmC,CAC5CC,mBAAoB,GACpBC,UAAW,EACXC,mBAAoB,GACpBC,eAAgB,IA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f,UAAWxB,GAA0B,CAAAsB,SAEpC1C,YAIZU,IAA0BM,GACvBwB,EACI,MAAAG,EAAA,CAAAC,UAAWzB,GAAwC,CAAAuB,SAEnDF,EAACoB,EAASjB,EAAA,CAAAkB,SAAUrB,EAAKC,EAAA,CAAA,IAAA,CAAAC,SACrBF,EAAClD,GACGwE,WAAY9D,EACZ+D,iBAAkB,WACd,ODnMlC,SAAiC7F,SACnCG,EAAUH,EAAAG,WACV+B,EAAiBlC,EAAAgC,aAAjBA,OAAe,IAAAE,EAAA,CAAE,EAAAA,EACjBI,EAActC,EAAAmC,UAAdA,OAAS,IAAAG,EAAG,GAAEA,EAKVN,EADqB6B,sBAAEC,EACvB9B,EAD4C8B,sBAAKC,EACjDC,EAAAhC,EADE,CAAA,oBAAA,0BAENiC,EAAqD,QAApClC,EAAA+B,SAAoC,IAAA/B,EAAAA,EAAA,kBACjDmC,YAAa,8BACbC,UAAW,mBACXC,kBAAmBjE,EACnBkE,aAAclC,GACX4B,IAIPhD,eAAeG,QAAQ,wBAAyB,QAGhDF,GACJ,CC6KwC8E,CAAuB,CACnB3F,WACI2B,EACJE,aAAYA,EACZG,UAASA,GACX,EAEN4D,eA7KhC,WACInD,EAAqB,OACxB,cAiLW,MAGhB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-supercoins-chip.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/SuperCoinsChip/src/constants.ts","../packages/components/SuperCoinsChip/src/utils/shouldRenderFloatingIsland.ts","../packages/components/SuperCoinsChip/src/utils/onIslandAnimationStart.ts","../packages/components/SuperCoinsChip/src/SupercoinsChip.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","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","_a","expiry","renderFloatingIsland","supercoins","Date","getQueryParam","localStorage","getItem","parseInt","getIslandShownFrequency","expiryEpoch","Math","floor","now","removeItem","sessionStorage","incrementAnimationPlayedFrequency","currentFrequency","setItem","toString","LazySuperCoinsFloatingIsland","React","lazy","import","then","module","default","SupercoinsFloatingIsland","SupercoinsChip","supercoinsLoading","supercoinBurnBalance","_b","ravenPayload","onSupercoinsClick","supercoinsExpiryCount","_c","utmSource","useMemo","_d","useState","showSupercoinExpiryAnimation","setSupercoinExpiryAnimation","_e","Number","animationCount","setAnimationCount","_f","isAnimating","setIsAnimating","shouldRenderSupercoins","_g","renderSuperCoinIsland","setRenderSuperCoinIsland","_h","chipAnimationType","setChipAnimationType","_j","hasScrolledBeforeAnimation","setHasScrolledBeforeAnimation","chipBackgroundAnimationClassname","styles","chipTextAnimationClassname","useEffect","handleScroll","window","scrollY","addEventListener","removeEventListener","timeout","shouldRender","setTimeout","clearTimeout","action_event_name","impression_event_name","restPayload","__rest","ravenSDKTrigger","__assign","action_name","page_name","supercoin_balance","u_utm_source","startTimer","switchBackTimer","newCount","_jsx","_Fragment","children","className","_jsxs","display","alignItems","gap","Shimmer","width","height","position","concat","onClick","src","alt","Typography","variant","Suspense","fallback","superCoins","onAnimationStart","onIslandAnimationStart","onAnimationEnd"],"mappings":"q/BAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,8iFCzBO,IAGMe,EAAsC,2BAEtCC,EAAoC,wBAEpCC,EACT,6BAISC,EACkB,EADlBA,EAEK,EAFLA,EAGyB,IAHzBA,EAIkB,IAJlBA,EAKkB,IAGlBC,EAAmC,CAC5CC,mBAAoB,GACpBC,UAAW,EACXC,mBAAoB,GACpBC,eAAgB,IAChBC,mBAAmB,GCJC,SAAAC,EAA2BC,OALzCC,EAMNC,EAAoBF,EAAAE,qBACpBC,EAAUH,EAAAG,WAKV,GAFoB,IAAIC,KACJ,IAAIA,KAAK,cACE,OAAO,EAGtC,IAAKF,EAAsB,OAAO,EAElC,GAAIC,EAAaV,EAAiCC,mBAC9C,OAAO,EAIX,KADqD,SAAjCW,EAAc,gBAChB,OAAO,EAIzB,GAjCJ,WACI,IAAMV,EAAYW,aAAaC,QAAQlB,GACvC,OAAKM,GAA4C,iBAAxBa,SAASb,GAC3Ba,SAASb,GADkD,CAEtE,CA4BsBc,IACDhB,EAAiCE,UAAW,CAEzD,IAAMe,GA5BJT,EAASK,aAAaC,QAAQhB,KACO,iBAArBiB,SAASP,GACxBO,SAASP,GAD4C,KA4BxD,OAAKS,KAEDA,EADiBC,KAAKC,MAAMR,KAAKS,MAAQ,QAK7CP,aAAaQ,W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,eAzNhC,WACIrD,GAAqB,OACxB,cA6NW,MAGhB","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsChip/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/SuperCoinsChip/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,cAAc,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"onIslandAnimationStart.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/utils/onIslandAnimationStart.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAkCrE,wBAAgB,sBAAsB,CAAC,EACnC,UAAU,EACV,YAAiB,EACjB,SAAc,GACjB,EAAE,0BAA0B,QAkB5B"}
1
+ {"version":3,"file":"onIslandAnimationStart.d.ts","sourceRoot":"","sources":["../../packages/components/SuperCoinsChip/src/utils/onIslandAnimationStart.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAkCrE,wBAAgB,sBAAsB,CAAC,EACnC,UAAU,EACV,YAAiB,EACjB,SAAc,GACjB,EAAE,0BAA0B,QAkB5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"shouldRenderFloatingIsland.d.ts","sourceRoot":"","sources":["../../packages/components/SupercoinsChip/src/utils/shouldRenderFloatingIsland.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAcxE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAC/C,oBAAoB,EACpB,UAAU,GACb,EAAE,6BAA6B,WAwC/B"}
1
+ {"version":3,"file":"shouldRenderFloatingIsland.d.ts","sourceRoot":"","sources":["../../packages/components/SuperCoinsChip/src/utils/shouldRenderFloatingIsland.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAcxE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAC/C,oBAAoB,EACpB,UAAU,GACb,EAAE,6BAA6B,WAwC/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-supercoins-chip",
3
- "version": "1.0.1-beta.32",
3
+ "version": "1.0.1-beta.34",
4
4
  "description": "SuperCoins Chip Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-supercoins-chip.cjs.js",
@@ -11,9 +11,9 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "@cleartrip/ct-design-typography": "2.6.0",
14
- "@cleartrip/ct-platform-shimmer": "3.0.3-beta.49",
15
- "@cleartrip/ct-platform-utils": "3.18.1-beta.41",
16
- "@cleartrip/ct-platform-supercoins-floating-island": "1.0.1-beta.28"
14
+ "@cleartrip/ct-platform-shimmer": "3.1.0-beta.51",
15
+ "@cleartrip/ct-platform-utils": "3.19.0-beta.43",
16
+ "@cleartrip/ct-platform-supercoins-floating-island": "1.1.0-beta.30"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",