@cleartrip/ct-platform-hotel-cross-sell-lpg-content 4.3.6 → 4.3.8

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":"HotelLPGContentWidget.d.ts","sourceRoot":"","sources":["../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAG3E,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6O/D,CAAC;AACF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"HotelLPGContentWidget.d.ts","sourceRoot":"","sources":["../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAG3E,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAyQ/D,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("classnames"),d=require("@cleartrip/ct-design-components"),o=require("@cleartrip/ct-platform-shimmer"),l=require("@cleartrip/ct-platform-io-hoc"),_=require("@cleartrip/ct-platform-utils");function s(e){return e&&e.__esModule?e:{default:e}}var a=s(n);var r="index-module_lpgContentWidget__NtYja",m="index-module_lpgContentWidgetForDesktop__er0dM",u="index-module_lpgContentWidget__header__0mgAX",g="index-module_title__SB457",c="index-module_subtitle__vEC1R",x="index-module_lpgContentWidget__refund-section__9siFY",p="index-module_refund-list__0tmn7",h="index-module_refund-listItem__YsHLq",f="index-module_refund-listItem-img__tvJRy",v="index-module_lpgContentWidget__refund-section-desktop__8BEim",y="index-module_lpgContentWidget__terms-section__awRLG",C="index-module_terms-list__2xCTb";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===i&&n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".index-module_lpgContentWidgetForDesktop__er0dM,.index-module_lpgContentWidget__NtYja{background:#fff;color:#1a1a1a;display:flex;flex-direction:column;gap:32px;padding-bottom:8px;padding-top:8px}.index-module_lpgContentWidget__header__0mgAX{display:flex;flex-direction:column;gap:2px}.index-module_lpgContentWidget__header__0mgAX .index-module_title__SB457{color:#ed6521;display:flex;flex-wrap:wrap;font-size:20px;font-weight:600;gap:4px;line-height:24px;margin:0}.index-module_lpgContentWidget__header__0mgAX .index-module_subtitle__vEC1R{color:grey;font-size:14px;font-weight:500;line-height:20px;margin:0}.index-module_lpgContentWidget__refund-section__9siFY{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__refund-section-desktop__8BEim,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__terms-section__awRLG{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_terms-list__2xCTb{font-size:14px;font-weight:400;line-height:20px;padding-inline-start:16px}");exports.HotelLPGContentWidget=function(n){var s,j,w,W,N=n.content,S=n.cssStyle,k=void 0===S?{}:S,B=n.isLoading,b=n.tripId,E=n.pageName,F=n.location,I=n.vertical,R=n.departureDate,T=n.loyaltyType,Y=n.arrivalDate,q=n.isPwa,D=void 0===q||q,L=i.useState(!1),z=L[0],O=L[1],A=i.useState(!1),G=A[0],H=A[1],J=N||{},M=J.header,X=J.refundDetails,K=J.termsDetails,P=J.knowMoreUrl,U=void 0===P?"/":P,V=i.useCallback((function(){O(!0)}),[]);return i.useEffect((function(){!B&&z&&_.ravenSDKTrigger("u_popup_load",{action_name:"hotel_cross_sell_knowmore_screen",page_name:E,loyalty_type:T,a_departure_date:R,a_destination:F,a_trip_id:b,h_dx:Y?_.getNoOfDaysFromToday(Y):"",vertical:I,child_product:"hotel",transaction_id_ca:b,onward_date:R,search_destination:F})}),[B,z]),i.useEffect((function(){z&&_.batchRavenEvent("u_impression",{action_name:"hotel_cross_sell_knowmore_card",page_name:E,loyalty_type:T,a_departure_date:R,a_destination:F,a_trip_id:b,child_product:"hotel",vertical:I,h_dx:Y?_.getNoOfDaysFromToday(Y):"",transaction_id_ca:b,onward_date:R,search_destination:F})}),[z]),t.jsx(l.IntersectionObserverHOC,e.__assign({onIntersection:V},{children:t.jsxs("div",e.__assign({className:D?r:m,style:k},{children:[t.jsxs("div",e.__assign({className:u},{children:[B?t.jsx(o.Shimmer,{height:24}):t.jsx("div",e.__assign({className:g},{children:null===(s=null==M?void 0:M.title)||void 0===s?void 0:s.map((function(i,n){return t.jsx("span",e.__assign({style:{color:"".concat(null==i?void 0:i.color)}},{children:null==i?void 0:i.text}),n)}))})),t.jsx("div",e.__assign({className:c},{children:B?t.jsx(o.Shimmer,{height:40}):null==M?void 0:M.subtitle}))]})),(null===(j=null==X?void 0:X.data)||void 0===j?void 0:j.length)>0?t.jsxs("div",e.__assign({className:D?x:v},{children:[t.jsx("div",e.__assign({className:g},{children:B?t.jsx(o.Shimmer,{height:30}):null==X?void 0:X.title})),t.jsx("div",e.__assign({className:p},{children:null===(w=X.data)||void 0===w?void 0:w.map((function(i,n){return t.jsxs("div",e.__assign({className:a.default(h)},{children:[t.jsx("div",e.__assign({className:a.default(f)},{children:B?t.jsx(o.Shimmer,{height:24}):t.jsx("img",{src:i.imgLink,alt:"hotel refund icon"})})),B?t.jsx(o.Shimmer,{height:22}):t.jsx("div",e.__assign({style:{display:"flex"}},{children:t.jsx("div",{children:null==i?void 0:i.text})}))]}),n)}))}))]})):t.jsx(t.Fragment,{}),t.jsxs("div",e.__assign({className:y},{children:[t.jsx("div",e.__assign({className:g},{children:B?t.jsx(o.Shimmer,{height:22}):null==K?void 0:K.title})),t.jsx("ul",e.__assign({className:C},{children:null===(W=null==K?void 0:K.data)||void 0===W?void 0:W.map((function(i,n){return t.jsx(t.Fragment,{children:B?t.jsx(o.Shimmer,{height:20}):t.jsx("li",e.__assign({style:{marginBottom:"4px"}},{children:i}),n)})}))}))]})),B?t.jsx(o.Shimmer,{height:40}):t.jsx(d.Button,e.__assign({variant:d.ButtonVariant.OUTLINE,onClick:function(){H(!0),_.ravenSDKTrigger("u_ui_action",{action_name:"hotel_cross_sell_knowmore_screen",page_name:E,personalised_callout:"viewmore",action_type:"click",loyalty_type:T,a_departure_date:R,transaction_id_ca:b,a_trip_id:b,vertical:I,a_destination:F,child_product:"hotel",h_dx:Y?_.getNoOfDaysFromToday(Y):"",onward_date:R,search_destination:F}),U&&(H(!1),window.location.href=U)},style:{height:"40px",marginBottom:"8px"},loading:G||!1},{children:"View more details"}))]}))}))};
1
+ "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("classnames"),d=require("@cleartrip/ct-design-components"),_=require("@cleartrip/ct-platform-shimmer"),o=require("@cleartrip/ct-platform-io-hoc"),l=require("@cleartrip/ct-platform-utils");function s(e){return e&&e.__esModule?e:{default:e}}var a=s(n);var r="index-module_lpgContentWidget__NtYja",m="index-module_lpgContentWidgetForDesktop__er0dM",g="index-module_lpgContentWidget__header__0mgAX",u="index-module_title__SB457",c="index-module_subtitle__vEC1R",p="index-module_lpgContentWidget__refund-section__9siFY",x="index-module_refund-list__0tmn7",h="index-module_refund-listItem__YsHLq",f="index-module_refund-listItem-img__tvJRy",v="index-module_lpgContentWidget__refund-section-desktop__8BEim",y="index-module_lpgContentWidget__terms-section__awRLG",C="index-module_terms-list__2xCTb";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===i&&n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".index-module_lpgContentWidgetForDesktop__er0dM,.index-module_lpgContentWidget__NtYja{background:#fff;color:#1a1a1a;display:flex;flex-direction:column;gap:32px;padding-bottom:8px;padding-top:8px}.index-module_lpgContentWidget__header__0mgAX{display:flex;flex-direction:column;gap:2px}.index-module_lpgContentWidget__header__0mgAX .index-module_title__SB457{color:#ed6521;display:flex;flex-wrap:wrap;font-size:20px;font-weight:600;gap:4px;line-height:24px;margin:0}.index-module_lpgContentWidget__header__0mgAX .index-module_subtitle__vEC1R{color:grey;font-size:14px;font-weight:500;line-height:20px;margin:0}.index-module_lpgContentWidget__refund-section__9siFY{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__refund-section-desktop__8BEim,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__terms-section__awRLG{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_terms-list__2xCTb{font-size:14px;font-weight:400;line-height:20px;padding-inline-start:16px}");exports.HotelLPGContentWidget=function(n){var s,j,w,W,k=n.content,N=n.cssStyle,S=void 0===N?{}:N,B=n.isLoading,b=n.tripId,E=n.pageName,F=n.location,I=n.vertical,R=n.departureDate,T=n.loyaltyType,Y=n.arrivalDate,q=n.isPwa,D=void 0===q||q,L=i.useState(!1),z=L[0],O=L[1],A=i.useState(!1),G=A[0],H=A[1],J=k||{},M=J.header,X=J.refundDetails,K=J.termsDetails,P=J.knowMoreUrl,U=void 0===P?"/":P,V=i.useCallback((function(){O(!0)}),[]);return i.useEffect((function(){if(!B&&z){var t={action_name:"hotel_cross_sell_knowmore_screen",page_name:E,loyalty_type:T,a_departure_date:R,a_destination:F,a_trip_id:b,h_dx:Y?l.getNoOfDaysFromToday(Y):"",vertical:I,child_product:"hotel",transaction_id_ca:b,onward_date:R,search_destination:F};D||(t=e.__assign(e.__assign({},t),{platform:"desktop"})),l.ravenSDKTrigger("u_popup_load",t)}}),[B,z]),i.useEffect((function(){if(z){var t={action_name:"hotel_cross_sell_knowmore_card",page_name:E,loyalty_type:T,a_departure_date:R,a_destination:F,a_trip_id:b,child_product:"hotel",vertical:I,h_dx:Y?l.getNoOfDaysFromToday(Y):"",transaction_id_ca:b,onward_date:R,search_destination:F};D||(t=e.__assign(e.__assign({},t),{platform:"desktop"})),l.batchRavenEvent("u_impression",t)}}),[z]),t.jsx(o.IntersectionObserverHOC,e.__assign({onIntersection:V},{children:t.jsxs("div",e.__assign({className:D?r:m,style:S},{children:[t.jsxs("div",e.__assign({className:g},{children:[B?t.jsx(_.Shimmer,{height:24}):t.jsx("div",e.__assign({className:u},{children:null===(s=null==M?void 0:M.title)||void 0===s?void 0:s.map((function(i,n){return t.jsx("span",e.__assign({style:{color:"".concat(null==i?void 0:i.color)}},{children:null==i?void 0:i.text}),n)}))})),t.jsx("div",e.__assign({className:c},{children:B?t.jsx(_.Shimmer,{height:40}):null==M?void 0:M.subtitle}))]})),(null===(j=null==X?void 0:X.data)||void 0===j?void 0:j.length)>0?t.jsxs("div",e.__assign({className:D?p:v},{children:[t.jsx("div",e.__assign({className:u},{children:B?t.jsx(_.Shimmer,{height:30}):null==X?void 0:X.title})),t.jsx("div",e.__assign({className:x},{children:null===(w=X.data)||void 0===w?void 0:w.map((function(i,n){return t.jsxs("div",e.__assign({className:a.default(h)},{children:[t.jsx("div",e.__assign({className:a.default(f)},{children:B?t.jsx(_.Shimmer,{height:24}):t.jsx("img",{src:i.imgLink,alt:"hotel refund icon"})})),B?t.jsx(_.Shimmer,{height:22}):t.jsx("div",e.__assign({style:{display:"flex"}},{children:t.jsx("div",{children:null==i?void 0:i.text})}))]}),n)}))}))]})):t.jsx(t.Fragment,{}),t.jsxs("div",e.__assign({className:y},{children:[t.jsx("div",e.__assign({className:u},{children:B?t.jsx(_.Shimmer,{height:22}):null==K?void 0:K.title})),t.jsx("ul",e.__assign({className:C},{children:null===(W=null==K?void 0:K.data)||void 0===W?void 0:W.map((function(i,n){return t.jsx(t.Fragment,{children:B?t.jsx(_.Shimmer,{height:20}):t.jsx("li",e.__assign({style:{marginBottom:"4px"}},{children:i}),n)})}))}))]})),B?t.jsx(_.Shimmer,{height:40}):t.jsx(d.Button,e.__assign({variant:d.ButtonVariant.OUTLINE,onClick:function(){H(!0);var t={action_name:"hotel_cross_sell_knowmore_screen",page_name:E,personalised_callout:"viewmore",action_type:"click",loyalty_type:T,a_departure_date:R,transaction_id_ca:b,a_trip_id:b,vertical:I,a_destination:F,child_product:"hotel",h_dx:Y?l.getNoOfDaysFromToday(Y):"",onward_date:R,search_destination:F};D||(t=e.__assign(e.__assign({},t),{platform:"desktop"})),l.ravenSDKTrigger("u_ui_action",t),U&&(H(!1),window.location.href=U)},style:{height:"40px",marginBottom:"8px"},loading:G||!1},{children:"View more details"}))]}))}))};
2
2
  //# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-content.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-hotel-cross-sell-lpg-content.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.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","content","_f","cssStyle","isLoading","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_g","isPwa","_h","useState","widgetIntersected","setWidgetIntersected","_j","buttonLoadingState","setButtonLoadingState","_k","header","refundDetails","termsDetails","_l","knowMoreUrl","handleIntersection","useCallback","useEffect","ravenSDKTrigger","action_name","page_name","loyalty_type","a_departure_date","a_destination","a_trip_id","h_dx","getNoOfDaysFromToday","child_product","transaction_id_ca","onward_date","search_destination","batchRavenEvent","_jsx","jsx","IntersectionObserverHOC","__assign","onIntersection","children","_jsxs","className","Style","Shimmer","height","_b","title","map","listItem","idx","color","text","subtitle","_c","data","length","jsxs","_d","classNames","default","src","imgLink","alt","display","_Fragment","Fragment","_e","marginBottom","Button","variant","ButtonVariant","OUTLINE","onClick","personalised_callout","action_type","window","href","loading"],"mappings":"w3BAAA,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,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,EAClB+B,kBAAmBnC,EACnB+B,UAAW/B,EACXG,SAAUA,EACV2B,cAAe5B,EACfgC,cAAe,QACfF,KAAM1B,EAAc2B,uBAAqB3B,GAAe,GACxD8B,YAAahC,EACbiC,mBAAoBnC,IAGpBmB,IACAN,GAAsB,GACtBiE,OAAO9E,SAAS+E,KAAO5D,EAE/B,EA8KoBnC,MAAO,CACH+D,OAAQ,OACRuB,aAAc,OAElBU,QAASpE,IAAsB,GAAK,CAAA8B,SAEnC,6BAMzB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-hotel-cross-sell-lpg-content.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.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","content","_f","cssStyle","isLoading","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_g","isPwa","_h","useState","widgetIntersected","setWidgetIntersected","_j","buttonLoadingState","setButtonLoadingState","_k","header","refundDetails","termsDetails","_l","knowMoreUrl","handleIntersection","useCallback","useEffect","payload","action_name","page_name","loyalty_type","a_departure_date","a_destination","a_trip_id","h_dx","getNoOfDaysFromToday","child_product","transaction_id_ca","onward_date","search_destination","platform","ravenSDKTrigger","batchRavenEvent","_jsx","jsx","IntersectionObserverHOC","__assign","onIntersection","children","_jsxs","className","Style","Shimmer","height","_b","title","map","listItem","idx","color","text","subtitle","_c","data","length","jsxs","_d","classNames","default","src","imgLink","alt","display","_Fragment","Fragment","_e","marginBottom","Button","variant","ButtonVariant","OUTLINE","onClick","personalised_callout","action_type","window","href","loading"],"mappings":"w3BAAA,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,yjFCToE,SAACe,eACjEC,YACAC,EAAAF,EAAAG,SAAAA,aAAW,CAAA,EAAED,EACbE,cACAC,WACAC,aACAC,EAAQP,EAAAO,SACRC,EAAQR,EAAAQ,SACRC,EAAaT,EAAAS,cACbC,EAAWV,EAAAU,YACXC,gBACAC,EAAAZ,EAAAa,MAAAA,OAAK,IAAAD,GAAOA,EAENE,EAA4CC,EAAAA,UAAS,GAApDC,EAAiBF,EAAA,GAAEG,EAAoBH,EAAA,GACxCI,EAA8CH,EAAAA,UAAS,GAAtDI,EAAkBD,EAAA,GAAEE,EAAqBF,EAAA,GAE1CG,EAKFpB,GAAW,CAAA,EAJXqB,EAAMD,EAAAC,OACNC,EAAaF,EAAAE,cACbC,EAAYH,EAAAG,aACZC,EAAiBJ,EAAAK,YAAjBA,OAAc,IAAAD,EAAA,MAGZE,EAAqBC,EAAAA,aAAY,WACnCX,GAAqB,EACxB,GAAE,IA8FH,OAxDAY,EAAAA,WAAU,WACN,IAAKzB,GAAaY,EAAmB,CAC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AAAI,UAAWC,GACZ,CAAAH,SAAA,CAAAL,EAAAC,IAAA,MAAAE,WAAA,CAAKI,UAAWC,GACX,CAAAH,SAAA/C,EACG0C,EAAAC,IAACQ,UAAO,CAACC,OAAQ,KAEjBhC,aAAY,EAAZA,EAAckC,SAGtBZ,EAAAC,IAAA,KAAAE,EAAAA,SAAA,CAAII,UAAWC,GACV,CAAAH,iBAAA2B,EAAAtD,aAAA,EAAAA,EAAc0C,2BAAMP,KAAI,SAACC,EAAUC,GAChC,OACIf,MAAA8B,EAAAA,SAAA,CAAAzB,SACK/C,EACG0C,EAAAA,IAACS,EAAOA,SAACC,OAAQ,KAEjBV,EAAAA,qBAEIvD,MAAO,CAAEwF,aAAc,QAEtB,CAAA5B,SAAAS,IAHIC,IAQzB,WAIPzD,EACG0C,MAACS,EAAAA,QAAO,CAACC,OAAQ,KAEjBV,MAACkC,EAAAA,OAAM/B,EAAAA,SAAA,CACHgC,QAASC,EAAaA,cAACC,QACvBC,QAjOM,WACtBhE,GAAsB,GAEtB,IAAIU,EAAU,CACVC,YAAa,mCACbC,UAAW1B,EACX+E,qBAAsB,WACtBC,YAAa,QACbrD,aAAcvB,EACdwB,iBAAkBzB,EAClB+B,kBAAmBnC,EACnB+B,UAAW/B,EACXG,SAAUA,EACV2B,cAAe5B,EACfgC,cAAe,QACfF,KAAM1B,EAAc2B,uBAAqB3B,GAAe,GACxD8B,YAAahC,EACbiC,mBAAoBnC,GAGnBM,IACDiB,2BACOA,GAAO,CAEVa,SAAU,aAIlBC,kBAAgB,cAAed,GAE3BJ,IACAN,GAAsB,GACtBmE,OAAOhF,SAASiF,KAAO9D,EAE/B,EAgMoBnC,MAAO,CACHiE,OAAQ,OACRuB,aAAc,OAElBU,QAAStE,IAAsB,GAAK,CAAAgC,SAEnC,6BAMzB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as d,useCallback as o,useEffect as l}from"react";import _ from"classnames";import{Button as a,ButtonVariant as r}from"@cleartrip/ct-design-components";import{Shimmer as m}from"@cleartrip/ct-platform-shimmer";import{IntersectionObserverHOC as s}from"@cleartrip/ct-platform-io-hoc";import{ravenSDKTrigger as p,getNoOfDaysFromToday as c,batchRavenEvent as u}from"@cleartrip/ct-platform-utils";var g="index-module_lpgContentWidget__NtYja",x="index-module_lpgContentWidgetForDesktop__er0dM",h="index-module_lpgContentWidget__header__0mgAX",f="index-module_title__SB457",v="index-module_subtitle__vEC1R",y="index-module_lpgContentWidget__refund-section__9siFY",C="index-module_refund-list__0tmn7",w="index-module_refund-listItem__YsHLq",W="index-module_refund-listItem-img__tvJRy",N="index-module_lpgContentWidget__refund-section-desktop__8BEim",k="index-module_lpgContentWidget__terms-section__awRLG",B="index-module_terms-list__2xCTb";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===i&&n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".index-module_lpgContentWidgetForDesktop__er0dM,.index-module_lpgContentWidget__NtYja{background:#fff;color:#1a1a1a;display:flex;flex-direction:column;gap:32px;padding-bottom:8px;padding-top:8px}.index-module_lpgContentWidget__header__0mgAX{display:flex;flex-direction:column;gap:2px}.index-module_lpgContentWidget__header__0mgAX .index-module_title__SB457{color:#ed6521;display:flex;flex-wrap:wrap;font-size:20px;font-weight:600;gap:4px;line-height:24px;margin:0}.index-module_lpgContentWidget__header__0mgAX .index-module_subtitle__vEC1R{color:grey;font-size:14px;font-weight:500;line-height:20px;margin:0}.index-module_lpgContentWidget__refund-section__9siFY{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__refund-section-desktop__8BEim,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__terms-section__awRLG{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_terms-list__2xCTb{font-size:14px;font-weight:400;line-height:20px;padding-inline-start:16px}");var b=function(b){var E,Y,I,R,L=b.content,F=b.cssStyle,z=void 0===F?{}:F,S=b.isLoading,T=b.tripId,D=b.pageName,A=b.location,J=b.vertical,G=b.departureDate,X=b.loyaltyType,j=b.arrivalDate,q=b.isPwa,H=void 0===q||q,M=d(!1),U=M[0],O=M[1],P=d(!1),V=P[0],K=P[1],Q=L||{},Z=Q.header,$=Q.refundDetails,ee=Q.termsDetails,te=Q.knowMoreUrl,ie=void 0===te?"/":te,ne=o((function(){O(!0)}),[]);return l((function(){!S&&U&&p("u_popup_load",{action_name:"hotel_cross_sell_knowmore_screen",page_name:D,loyalty_type:X,a_departure_date:G,a_destination:A,a_trip_id:T,h_dx:j?c(j):"",vertical:J,child_product:"hotel",transaction_id_ca:T,onward_date:G,search_destination:A})}),[S,U]),l((function(){U&&u("u_impression",{action_name:"hotel_cross_sell_knowmore_card",page_name:D,loyalty_type:X,a_departure_date:G,a_destination:A,a_trip_id:T,child_product:"hotel",vertical:J,h_dx:j?c(j):"",transaction_id_ca:T,onward_date:G,search_destination:A})}),[U]),t(s,e({onIntersection:ne},{children:i("div",e({className:H?g:x,style:z},{children:[i("div",e({className:h},{children:[S?t(m,{height:24}):t("div",e({className:f},{children:null===(E=null==Z?void 0:Z.title)||void 0===E?void 0:E.map((function(i,n){return t("span",e({style:{color:"".concat(null==i?void 0:i.color)}},{children:null==i?void 0:i.text}),n)}))})),t("div",e({className:v},{children:S?t(m,{height:40}):null==Z?void 0:Z.subtitle}))]})),(null===(Y=null==$?void 0:$.data)||void 0===Y?void 0:Y.length)>0?i("div",e({className:H?y:N},{children:[t("div",e({className:f},{children:S?t(m,{height:30}):null==$?void 0:$.title})),t("div",e({className:C},{children:null===(I=$.data)||void 0===I?void 0:I.map((function(n,d){return i("div",e({className:_(w)},{children:[t("div",e({className:_(W)},{children:S?t(m,{height:24}):t("img",{src:n.imgLink,alt:"hotel refund icon"})})),S?t(m,{height:22}):t("div",e({style:{display:"flex"}},{children:t("div",{children:null==n?void 0:n.text})}))]}),d)}))}))]})):t(n,{}),i("div",e({className:k},{children:[t("div",e({className:f},{children:S?t(m,{height:22}):null==ee?void 0:ee.title})),t("ul",e({className:B},{children:null===(R=null==ee?void 0:ee.data)||void 0===R?void 0:R.map((function(i,d){return t(n,{children:S?t(m,{height:20}):t("li",e({style:{marginBottom:"4px"}},{children:i}),d)})}))}))]})),S?t(m,{height:40}):t(a,e({variant:r.OUTLINE,onClick:function(){K(!0),p("u_ui_action",{action_name:"hotel_cross_sell_knowmore_screen",page_name:D,personalised_callout:"viewmore",action_type:"click",loyalty_type:X,a_departure_date:G,transaction_id_ca:T,a_trip_id:T,vertical:J,a_destination:A,child_product:"hotel",h_dx:j?c(j):"",onward_date:G,search_destination:A}),ie&&(K(!1),window.location.href=ie)},style:{height:"40px",marginBottom:"8px"},loading:V||!1},{children:"View more details"}))]}))}))};export{b as HotelLPGContentWidget};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as d,useCallback as o,useEffect as l}from"react";import _ from"classnames";import{Button as a,ButtonVariant as r}from"@cleartrip/ct-design-components";import{Shimmer as m}from"@cleartrip/ct-platform-shimmer";import{IntersectionObserverHOC as s}from"@cleartrip/ct-platform-io-hoc";import{getNoOfDaysFromToday as p,ravenSDKTrigger as c,batchRavenEvent as u}from"@cleartrip/ct-platform-utils";var g="index-module_lpgContentWidget__NtYja",x="index-module_lpgContentWidgetForDesktop__er0dM",h="index-module_lpgContentWidget__header__0mgAX",f="index-module_title__SB457",v="index-module_subtitle__vEC1R",y="index-module_lpgContentWidget__refund-section__9siFY",C="index-module_refund-list__0tmn7",w="index-module_refund-listItem__YsHLq",W="index-module_refund-listItem-img__tvJRy",k="index-module_lpgContentWidget__refund-section-desktop__8BEim",N="index-module_lpgContentWidget__terms-section__awRLG",B="index-module_terms-list__2xCTb";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===i&&n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".index-module_lpgContentWidgetForDesktop__er0dM,.index-module_lpgContentWidget__NtYja{background:#fff;color:#1a1a1a;display:flex;flex-direction:column;gap:32px;padding-bottom:8px;padding-top:8px}.index-module_lpgContentWidget__header__0mgAX{display:flex;flex-direction:column;gap:2px}.index-module_lpgContentWidget__header__0mgAX .index-module_title__SB457{color:#ed6521;display:flex;flex-wrap:wrap;font-size:20px;font-weight:600;gap:4px;line-height:24px;margin:0}.index-module_lpgContentWidget__header__0mgAX .index-module_subtitle__vEC1R{color:grey;font-size:14px;font-weight:500;line-height:20px;margin:0}.index-module_lpgContentWidget__refund-section__9siFY{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section__9siFY .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__refund-section-desktop__8BEim,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-list__0tmn7{display:flex;flex-direction:column;font-size:14px;font-weight:400;gap:16px;line-height:20px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem__YsHLq{align-items:center;display:flex;gap:16px}.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy,.index-module_lpgContentWidget__refund-section-desktop__8BEim .index-module_refund-listItem-img__tvJRy img{height:24px;width:24px}.index-module_lpgContentWidget__terms-section__awRLG{display:flex;flex-direction:column;margin-bottom:8px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_title__SB457{font-size:16px;font-weight:600;line-height:22px;margin-bottom:16px}.index-module_lpgContentWidget__terms-section__awRLG .index-module_terms-list__2xCTb{font-size:14px;font-weight:400;line-height:20px;padding-inline-start:16px}");var b=function(b){var E,Y,I,R,L=b.content,F=b.cssStyle,z=void 0===F?{}:F,S=b.isLoading,T=b.tripId,D=b.pageName,A=b.location,J=b.vertical,G=b.departureDate,X=b.loyaltyType,j=b.arrivalDate,q=b.isPwa,H=void 0===q||q,M=d(!1),U=M[0],O=M[1],P=d(!1),V=P[0],K=P[1],Q=L||{},Z=Q.header,$=Q.refundDetails,ee=Q.termsDetails,te=Q.knowMoreUrl,ie=void 0===te?"/":te,ne=o((function(){O(!0)}),[]);return l((function(){if(!S&&U){var t={action_name:"hotel_cross_sell_knowmore_screen",page_name:D,loyalty_type:X,a_departure_date:G,a_destination:A,a_trip_id:T,h_dx:j?p(j):"",vertical:J,child_product:"hotel",transaction_id_ca:T,onward_date:G,search_destination:A};H||(t=e(e({},t),{platform:"desktop"})),c("u_popup_load",t)}}),[S,U]),l((function(){if(U){var t={action_name:"hotel_cross_sell_knowmore_card",page_name:D,loyalty_type:X,a_departure_date:G,a_destination:A,a_trip_id:T,child_product:"hotel",vertical:J,h_dx:j?p(j):"",transaction_id_ca:T,onward_date:G,search_destination:A};H||(t=e(e({},t),{platform:"desktop"})),u("u_impression",t)}}),[U]),t(s,e({onIntersection:ne},{children:i("div",e({className:H?g:x,style:z},{children:[i("div",e({className:h},{children:[S?t(m,{height:24}):t("div",e({className:f},{children:null===(E=null==Z?void 0:Z.title)||void 0===E?void 0:E.map((function(i,n){return t("span",e({style:{color:"".concat(null==i?void 0:i.color)}},{children:null==i?void 0:i.text}),n)}))})),t("div",e({className:v},{children:S?t(m,{height:40}):null==Z?void 0:Z.subtitle}))]})),(null===(Y=null==$?void 0:$.data)||void 0===Y?void 0:Y.length)>0?i("div",e({className:H?y:k},{children:[t("div",e({className:f},{children:S?t(m,{height:30}):null==$?void 0:$.title})),t("div",e({className:C},{children:null===(I=$.data)||void 0===I?void 0:I.map((function(n,d){return i("div",e({className:_(w)},{children:[t("div",e({className:_(W)},{children:S?t(m,{height:24}):t("img",{src:n.imgLink,alt:"hotel refund icon"})})),S?t(m,{height:22}):t("div",e({style:{display:"flex"}},{children:t("div",{children:null==n?void 0:n.text})}))]}),d)}))}))]})):t(n,{}),i("div",e({className:N},{children:[t("div",e({className:f},{children:S?t(m,{height:22}):null==ee?void 0:ee.title})),t("ul",e({className:B},{children:null===(R=null==ee?void 0:ee.data)||void 0===R?void 0:R.map((function(i,d){return t(n,{children:S?t(m,{height:20}):t("li",e({style:{marginBottom:"4px"}},{children:i}),d)})}))}))]})),S?t(m,{height:40}):t(a,e({variant:r.OUTLINE,onClick:function(){K(!0);var t={action_name:"hotel_cross_sell_knowmore_screen",page_name:D,personalised_callout:"viewmore",action_type:"click",loyalty_type:X,a_departure_date:G,transaction_id_ca:T,a_trip_id:T,vertical:J,a_destination:A,child_product:"hotel",h_dx:j?p(j):"",onward_date:G,search_destination:A};H||(t=e(e({},t),{platform:"desktop"})),c("u_ui_action",t),ie&&(K(!1),window.location.href=ie)},style:{height:"40px",marginBottom:"8px"},loading:V||!1},{children:"View more details"}))]}))}))};export{b as HotelLPGContentWidget};
2
2
  //# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-content.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-hotel-cross-sell-lpg-content.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.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","HotelLPGContentWidget","_a","content","_f","cssStyle","isLoading","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_g","isPwa","_h","useState","widgetIntersected","setWidgetIntersected","_j","buttonLoadingState","setButtonLoadingState","_k","header","refundDetails","termsDetails","_l","knowMoreUrl","handleIntersection","useCallback","useEffect","ravenSDKTrigger","action_name","page_name","loyalty_type","a_departure_date","a_destination","a_trip_id","h_dx","getNoOfDaysFromToday","child_product","transaction_id_ca","onward_date","search_destination","batchRavenEvent","_jsx","IntersectionObserverHOC","__assign","onIntersection","children","_jsxs","className","Style","Shimmer","height","_b","title","map","listItem","idx","color","text","subtitle","_c","data","length","_d","classNames","src","imgLink","alt","display","_Fragment","_e","marginBottom","Button","variant","ButtonVariant","OUTLINE","onClick","personalised_callout","action_type","window","href","loading"],"mappings":"qhCAAA,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,2hFCTM,IAAAe,EAA8D,SAACC,eACjEC,YACAC,EAAAF,EAAAG,SAAAA,aAAW,CAAA,EAAED,EACbE,cACAC,WACAC,aACAC,EAAQP,EAAAO,SACRC,EAAQR,EAAAQ,SACRC,EAAaT,EAAAS,cACbC,EAAWV,EAAAU,YACXC,gBACAC,EAAAZ,EAAAa,MAAAA,OAAK,IAAAD,GAAOA,EAENE,EAA4CC,GAAS,GAApDC,EAAiBF,EAAA,GAAEG,EAAoBH,EAAA,GACxCI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,SAAA5C,EACGwC,EAACQ,EAAO,CAACC,OAAQ,KAEjB7B,cAAY,EAAZA,GAAc+B,SAGtBX,EAAA,KAAAE,EAAA,CAAII,UAAWC,GACV,CAAAH,iBAAAwB,EAAAhD,cAAA,EAAAA,GAAcuC,2BAAMP,KAAI,SAACC,EAAUC,GAChC,OACId,EAAA2B,EAAA,CAAAvB,SACK5C,EACGwC,EAACQ,GAAQC,OAAQ,KAEjBT,UAEItD,MAAO,CAAEmF,aAAc,QAEtB,CAAAzB,SAAAS,IAHIC,IAQzB,WAIPtD,EACGwC,EAACQ,EAAO,CAACC,OAAQ,KAEjBT,EAAC8B,EAAM5B,EAAA,CACH6B,QAASC,EAAcC,QACvBC,QArMM,WACtB1D,GAAsB,GAEtBU,EAAgB,cAAe,CAC3BC,YAAa,mCACbC,UAAW1B,EACXyE,qBAAsB,WACtBC,YAAa,QACb/C,aAAcvB,EACdwB,iBAAkBzB,EAClB+B,kBAAmBnC,EACnB+B,UAAW/B,EACXG,SAAUA,EACV2B,cAAe5B,EACfgC,cAAe,QACfF,KAAM1B,EAAc2B,EAAqB3B,GAAe,GACxD8B,YAAahC,EACbiC,mBAAoBnC,IAGpBmB,KACAN,GAAsB,GACtB6D,OAAO1E,SAAS2E,KAAOxD,GAE/B,EA8KoBpC,MAAO,CACH+D,OAAQ,OACRoB,aAAc,OAElBU,QAAShE,IAAsB,GAAK,CAAA6B,SAEnC,6BAMzB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-hotel-cross-sell-lpg-content.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGContentWidget/src/HotelLPGContentWidget.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","HotelLPGContentWidget","_a","content","_f","cssStyle","isLoading","tripId","pageName","location","vertical","departureDate","loyaltyType","arrivalDate","_g","isPwa","_h","useState","widgetIntersected","setWidgetIntersected","_j","buttonLoadingState","setButtonLoadingState","_k","header","refundDetails","termsDetails","_l","knowMoreUrl","handleIntersection","useCallback","useEffect","payload","action_name","page_name","loyalty_type","a_departure_date","a_destination","a_trip_id","h_dx","getNoOfDaysFromToday","child_product","transaction_id_ca","onward_date","search_destination","platform","ravenSDKTrigger","batchRavenEvent","_jsx","IntersectionObserverHOC","__assign","onIntersection","children","_jsxs","className","Style","Shimmer","height","_b","title","map","listItem","idx","color","text","subtitle","_c","data","length","_d","classNames","src","imgLink","alt","display","_Fragment","_e","marginBottom","Button","variant","ButtonVariant","OUTLINE","onClick","personalised_callout","action_type","window","href","loading"],"mappings":"qhCAAA,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,2hFCTM,IAAAe,EAA8D,SAACC,eACjEC,YACAC,EAAAF,EAAAG,SAA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AAS6E,KAAO1D,GAE/B,EAgMoBpC,MAAO,CACHiE,OAAQ,OACRoB,aAAc,OAElBU,QAASlE,IAAsB,GAAK,CAAA+B,SAEnC,6BAMzB","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-hotel-cross-sell-lpg-content",
3
- "version": "4.3.6",
3
+ "version": "4.3.8",
4
4
  "description": "Hotel cross sell LPG content Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-hotel-cross-sell-lpg-content.cjs.js",
@@ -14,10 +14,10 @@
14
14
  "@cleartrip/ct-design-components": "2.3.0",
15
15
  "@cleartrip/ct-design-theme": "3.7.0",
16
16
  "@cleartrip/ct-design-typography": "3.7.0",
17
- "@cleartrip/ct-platform-types": "4.3.6",
18
- "@cleartrip/ct-platform-utils": "4.3.6",
19
- "@cleartrip/ct-platform-io-hoc": "4.3.6",
20
- "@cleartrip/ct-platform-shimmer": "4.3.6"
17
+ "@cleartrip/ct-platform-utils": "4.3.8",
18
+ "@cleartrip/ct-platform-shimmer": "4.3.8",
19
+ "@cleartrip/ct-platform-io-hoc": "4.3.8",
20
+ "@cleartrip/ct-platform-types": "4.3.8"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.0",