@cleartrip/ct-platform-hotel-cross-sell-lpg-bottomsheet 3.0.4 → 3.1.0-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.
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js +1 -1
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js.map +1 -1
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js +1 -1
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js.map +1 -1
- package/package.json +5 -5
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),a=require("@cleartrip/ct-platform-hotel-cross-sell-lpg-content"),r=require("@cleartrip/ct-platform-drawer"),i=require("@cleartrip/ct-platform-utils");var l="index-module_lpgBottomSheetWrapper__itQ-L";!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".index-module_lpgBottomSheetWrapper__itQ-L{border-radius:1rem 1rem 0 0;margin:0;max-height:calc(100dvh - 100px);overflow-y:scroll;padding:0}");exports.HotelLPGBottomSheet=function(n){var d=n.onCloseButtonClick,s=n.isBottomSheetExpanded,c=void 0===s||s,p=n.closeOnOutsideClick,u=void 0!==p&&p,_=n.content,m=n.tripId,h=n.pageName,v=n.location,y=n.vertical,f=n.departureDate,g=n.loyaltyType,x=n.arrivalDate,C=o.useState(!0),S=C[0],D=C[1];return o.useEffect((function(){var e,t;!i.isEmpty(_)&&(null===(t=null===(e=null==_?void 0:_.refundDetails)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)>0&&D(!1)}),[_]),t.jsx(r.Drawer,e.__assign({overlay:!0,isOpen:c,direction:"bottom",showClose:!0,handleClose:function(e){null==e||e.stopPropagation(),d&&"function"==typeof d&&d(),i.ravenSDKTrigger("u_ui_action",{action_name:"hotel_cross_sell_knowmore_screen",page_name:h,personalised_callout:"close",action_type:"click",loyalty_type:g,a_departure_date:f,transaction_id_ca:m,a_trip_id:m,vertical:y,a_destination:v,child_product:"hotel",h_dx:x?i.getNoOfDaysFromToday(x):"",onward_date:f,search_destination:v})},onClose:function(){},closeOnOutsideClick:u},{children:t.jsx("div",e.__assign({className:l},{children:t.jsx(a.HotelLPGContentWidget,{content:_,cssStyle:{padding:"24px 16px"},isLoading:S,tripId:m,pageName:h,location:v,vertical:y,departureDate:f,loyaltyType:g,arrivalDate:x})}))}))};
|
2
2
|
//# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_d","useState","isLoading","setIsLoading","useEffect","isEmpty","refundDetails","data","length","_jsx","jsx","Drawer","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","ravenSDKTrigger","action_name","page_name","personalised_callout","action_type","loyalty_type","a_departure_date","transaction_id_ca","a_trip_id","a_destination","child_product","h_dx","getNoOfDaysFromToday","onward_date","search_destination","onClose","children","className","Style","HotelLPGContentWidget","cssStyle","padding"],"mappings":"
|
1
|
+
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_d","useState","isLoading","setIsLoading","useEffect","isEmpty","refundDetails","data","length","_jsx","jsx","Drawer","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","ravenSDKTrigger","action_name","page_name","personalised_callout","action_type","loyalty_type","a_departure_date","transaction_id_ca","a_trip_id","a_destination","child_product","h_dx","getNoOfDaysFromToday","onward_date","search_destination","onClose","children","className","Style","HotelLPGContentWidget","cssStyle","padding"],"mappings":"+RAAA,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,8KCVgE,SAACe,GAC7D,IAAAC,uBACAC,EAAAF,EAAAG,sBAAAA,cAA4BD,EAC5BE,EAAAJ,EAAAK,oBAAAA,OAAmB,IAAAD,GAAQA,EAC3BE,EAAON,EAAAM,QACPC,EAAMP,EAAAO,OACNC,EAAQR,EAAAQ,SACRC,aACAC,EAAQV,EAAAU,SACRC,EAAaX,EAAAW,cACbC,EAAWZ,EAAAY,YACXC,EAAWb,EAAAa,YAELC,EAA4BC,EAAAA,UAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GAgC9B,OANAI,EAAAA,WAAU,oBACDC,EAAAA,QAAQb,KAA0C,QAA9BJ,EAAsB,QAAtBF,EAAAM,aAAA,EAAAA,EAASc,qBAAa,IAAApB,OAAA,EAAAA,EAAEqB,YAAM,IAAAnB,OAAA,EAAAA,EAAAoB,QAAS,GAC5DL,GAAa,EAErB,GAAG,CAACX,IAGAiB,EAACC,IAAAC,EAAMA,mBACHC,SAAS,EACTC,OAAQxB,EACRyB,UAAW,SACXC,WAAW,EACXC,YApCuB,SAACC,GAC5BA,SAAAA,EAAKC,kBACD/B,GAAmD,mBAAtBA,GAC7BA,IAGJgC,EAAAA,gBAAgB,cAAe,CAC3BC,YAAa,mCACbC,UAAW3B,EACX4B,qBAAsB,QACtBC,YAAa,QACbC,aAAc1B,EACd2B,iBAAkB5B,EAClB6B,kBAAmBjC,EACnBkC,UAAWlC,EACXG,SAAUA,EACVgC,cAAejC,EACfkC,cAAe,QACfC,KAAM/B,EAAcgC,uBAAqBhC,GAAe,GACxDiC,YAAanC,EACboC,mBAAoBtC,GAE5B,EAeQuC,QAAS,WAAA,EACT3C,oBAAqBA,GAAmB,CAAA4C,SAExC1B,EAAAA,sBAAK2B,UAAWC,GACZ,CAAAF,SAAA1B,EAAAA,IAAC6B,EAAAA,sBACG,CAAA9C,QAASA,EACT+C,SAAU,CAAEC,QAAS,aACrBtC,UAAWA,EACXT,OAAQA,EACRC,SAAUA,EACVC,SAAUA,EACVC,SAAUA,EACVC,cAAeA,EACfC,YAAaA,EACbC,YAAaA,SAKjC","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as a}from"react";import{HotelLPGContentWidget as i}from"@cleartrip/ct-platform-hotel-cross-sell-lpg-content";import{Drawer as r}from"@cleartrip/ct-platform-drawer";import{isEmpty as
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as a}from"react";import{HotelLPGContentWidget as i}from"@cleartrip/ct-platform-hotel-cross-sell-lpg-content";import{Drawer as r}from"@cleartrip/ct-platform-drawer";import{isEmpty as l,ravenSDKTrigger as n,getNoOfDaysFromToday as d}from"@cleartrip/ct-platform-utils";var c="index-module_lpgBottomSheetWrapper__itQ-L";!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_lpgBottomSheetWrapper__itQ-L{border-radius:1rem 1rem 0 0;margin:0;max-height:calc(100dvh - 100px);overflow-y:scroll;padding:0}");var p=function(p){var s=p.onCloseButtonClick,m=p.isBottomSheetExpanded,u=void 0===m||m,_=p.closeOnOutsideClick,h=void 0!==_&&_,f=p.content,v=p.tripId,y=p.pageName,g=p.location,x=p.vertical,C=p.departureDate,B=p.loyaltyType,S=p.arrivalDate,k=o(!0),w=k[0],D=k[1];return a((function(){var e,t;!l(f)&&(null===(t=null===(e=null==f?void 0:f.refundDetails)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)>0&&D(!1)}),[f]),t(r,e({overlay:!0,isOpen:u,direction:"bottom",showClose:!0,handleClose:function(e){null==e||e.stopPropagation(),s&&"function"==typeof s&&s(),n("u_ui_action",{action_name:"hotel_cross_sell_knowmore_screen",page_name:y,personalised_callout:"close",action_type:"click",loyalty_type:B,a_departure_date:C,transaction_id_ca:v,a_trip_id:v,vertical:x,a_destination:g,child_product:"hotel",h_dx:S?d(S):"",onward_date:C,search_destination:g})},onClose:function(){},closeOnOutsideClick:h},{children:t("div",e({className:c},{children:t(i,{content:f,cssStyle:{padding:"24px 16px"},isLoading:w,tripId:v,pageName:y,location:g,vertical:x,departureDate:C,loyaltyType:B,arrivalDate:S})}))}))};export{p as HotelLPGBottomSheet};
|
2
2
|
//# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","HotelLPGBottomSheet","_a","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_d","useState","isLoading","setIsLoading","useEffect","isEmpty","refundDetails","data","length","_jsx","Drawer","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","ravenSDKTrigger","action_name","page_name","personalised_callout","action_type","loyalty_type","a_departure_date","transaction_id_ca","a_trip_id","a_destination","child_product","h_dx","getNoOfDaysFromToday","onward_date","search_destination","onClose","children","className","Style","HotelLPGContentWidget","cssStyle","padding"],"mappings":"
|
1
|
+
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","HotelLPGBottomSheet","_a","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_d","useState","isLoading","setIsLoading","useEffect","isEmpty","refundDetails","data","length","_jsx","Drawer","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","ravenSDKTrigger","action_name","page_name","personalised_callout","action_type","loyalty_type","a_departure_date","transaction_id_ca","a_trip_id","a_destination","child_product","h_dx","getNoOfDaysFromToday","onward_date","search_destination","onClose","children","className","Style","HotelLPGContentWidget","cssStyle","padding"],"mappings":"qaAAA,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,kJCVM,IAAAe,EAA0D,SAACC,GAC7D,IAAAC,uBACAC,EAAAF,EAAAG,sBAAAA,cAA4BD,EAC5BE,EAAAJ,EAAAK,oBAAAA,OAAmB,IAAAD,GAAQA,EAC3BE,EAAON,EAAAM,QACPC,EAAMP,EAAAO,OACNC,EAAQR,EAAAQ,SACRC,aACAC,EAAQV,EAAAU,SACRC,EAAaX,EAAAW,cACbC,EAAWZ,EAAAY,YACXC,EAAWb,EAAAa,YAELC,EAA4BC,GAAS,GAApCC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GAgC9B,OANAI,GAAU,oBACDC,EAAQb,KAA0C,QAA9BJ,EAAsB,QAAtBF,EAAAM,aAAA,EAAAA,EAASc,qBAAa,IAAApB,OAAA,EAAAA,EAAEqB,YAAM,IAAAnB,OAAA,EAAAA,EAAAoB,QAAS,GAC5DL,GAAa,EAErB,GAAG,CAACX,IAGAiB,EAACC,KACGC,SAAS,EACTC,OAAQvB,EACRwB,UAAW,SACXC,WAAW,EACXC,YApCuB,SAACC,GAC5BA,SAAAA,EAAKC,kBACD9B,GAAmD,mBAAtBA,GAC7BA,IAGJ+B,EAAgB,cAAe,CAC3BC,YAAa,mCACbC,UAAW1B,EACX2B,qBAAsB,QACtBC,YAAa,QACbC,aAAczB,EACd0B,iBAAkB3B,EAClB4B,kBAAmBhC,EACnBiC,UAAWjC,EACXG,SAAUA,EACV+B,cAAehC,EACfiC,cAAe,QACfC,KAAM9B,EAAc+B,EAAqB/B,GAAe,GACxDgC,YAAalC,EACbmC,mBAAoBrC,GAE5B,EAeQsC,QAAS,WAAA,EACT1C,oBAAqBA,GAAmB,CAAA2C,SAExCzB,WAAK0B,UAAWC,GACZ,CAAAF,SAAAzB,EAAC4B,EACG,CAAA7C,QAASA,EACT8C,SAAU,CAAEC,QAAS,aACrBrC,UAAWA,EACXT,OAAQA,EACRC,SAAUA,EACVC,SAAUA,EACVC,SAAUA,EACVC,cAAeA,EACfC,YAAaA,EACbC,YAAaA,SAKjC","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cleartrip/ct-platform-hotel-cross-sell-lpg-bottomsheet",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.1.0-beta.34",
|
4
4
|
"description": "Hotel cross sell LPG bottomsheet Component",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"main": "dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js",
|
@@ -12,10 +12,10 @@
|
|
12
12
|
"dependencies": {
|
13
13
|
"classnames": "^2.5.1",
|
14
14
|
"@cleartrip/ct-design-components": "2.3.0",
|
15
|
-
"@cleartrip/ct-platform-
|
16
|
-
"@cleartrip/ct-platform-
|
17
|
-
"@cleartrip/ct-platform-
|
18
|
-
"@cleartrip/ct-platform-
|
15
|
+
"@cleartrip/ct-platform-drawer": "3.10.0-beta.43",
|
16
|
+
"@cleartrip/ct-platform-utils": "3.19.0-beta.42",
|
17
|
+
"@cleartrip/ct-platform-hotel-cross-sell-lpg-content": "3.1.0-beta.34",
|
18
|
+
"@cleartrip/ct-platform-types": "3.6.0-beta.43"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
21
|
"react": ">=16.8.0",
|