1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5468],{2181:e=>{e.exports={slot_main_container:"SelectSlotPopup_slot_main_container__kC_22",slots_wrapper:"SelectSlotPopup_slots_wrapper__BnGXC",slots_container:"SelectSlotPopup_slots_container__v5eH0",slot_header:"SelectSlotPopup_slot_header__DpxyB",heading:"SelectSlotPopup_heading__meNkm",date_selection:"SelectSlotPopup_date_selection__qQCFG",dates:"SelectSlotPopup_dates__xPj0Q",date_selected:"SelectSlotPopup_date_selected__buVvf",apology_msg:"SelectSlotPopup_apology_msg__VJmST",slot_lock:"SelectSlotPopup_slot_lock__YM9CR",header:"SelectSlotPopup_header__s0c_i",slot_list:"SelectSlotPopup_slot_list__zIdvJ",slot_list_data:"SelectSlotPopup_slot_list_data__rpKGJ",slots:"SelectSlotPopup_slots__xpV3o",active:"SelectSlotPopup_active__mT5Xq",disabled:"SelectSlotPopup_disabled__nMmnx",paidDelivery:"SelectSlotPopup_paidDelivery__DjUfA",freeDelivery:"SelectSlotPopup_freeDelivery__EOAZB",slot_selected:"SelectSlotPopup_slot_selected__WhbNr",slot_selected_disabled:"SelectSlotPopup_slot_selected_disabled__q_osN",proceed_cancel_container:"SelectSlotPopup_proceed_cancel_container__WGKwX",staticPopup:"SelectSlotPopup_staticPopup__yKDo9",flicker:"SelectSlotPopup_flicker__C3n6E"}},37989:e=>{e.exports={empty_cart:"EmptyCart_empty_cart__g5Jqp",empty_image:"EmptyCart_empty_image__N5Un8",empty_status:"EmptyCart_empty_status__OcyAK",empty_header:"EmptyCart_empty_header__TRus3",continue_shop:"EmptyCart_continue_shop__Lrttu",staticPopup:"EmptyCart_staticPopup__usHCC",flicker:"EmptyCart_flicker__qpiL_"}},41617:(e,t,l)=>{"use strict";l.d(t,{A:()=>R});var a=l(37876),o=l(14232),s=l(98854),n=l(89494),i=l(3237),r=l(19077),c=l(94633),d=l(30085),_=l(13040),u=l(54243),m=l(4781),p=l(55412),h=l(22574),v=l(23105),y=l(78143),g=l(68934),S=l(34285),x=l(2365),b=l(29454),j=l(89099),f=l(90547),C=l(86883),N=l(58110),w=l(58133),k=l.n(w);let P=e=>{let{total:t=0,isProceed:l,onProceed:o,viewBillDetails:s}=e,n=(0,x.DP)();return(0,a.jsx)("div",{className:k().bottom_wrapper,children:(0,a.jsx)("div",{className:k().bottom_bar,children:(0,a.jsxs)("div",{className:k().slot_summary_wrapper,children:[(0,a.jsx)("div",{className:k().amount,children:(0,a.jsxs)("span",{children:["Total: â¹ ".concat(t),(0,a.jsx)("img",{src:"/image/".concat(null==n?void 0:n.theme_name,"/png/info-icon.png"),onClick:s})]})}),(0,a.jsx)("button",{className:"".concat(k().proceed_payment," ").concat(l?"":k().proceed_payment_isabled),disabled:!l,onClick:o,children:(0,a.jsxs)("div",{className:k().proceed_on_payment,children:[(0,a.jsxs)("div",{className:k().section_one,children:[(0,a.jsx)("span",{children:"Place Order"}),(0,a.jsx)("img",{src:"/image/".concat(null==n?void 0:n.theme_name,"/png/play-symbol copy 2.png")})]}),(0,a.jsx)("div",{className:k().section_two,children:l?"Select Payment Method":"Select Delivery Slot"})]})})]})})})};var E=l(97809),D=l.n(E),A=l(37989),I=l.n(A),B=l(68827),T=l.n(B);let M=e=>{let{onButtonClick:t}=e,l=(0,x.DP)();return(0,a.jsxs)("div",{className:I().empty_cart,children:[(0,a.jsx)("div",{className:I().empty_image,children:(0,a.jsx)(T(),{src:"/image/".concat(null==l?void 0:l.theme_name,"/png/empty_cart_icon.png"),alt:"empty-cart",height:150,width:150})}),(0,a.jsxs)("div",{className:I().empty_status,children:[(0,a.jsx)("div",{className:I().empty_header,children:"Your cart awaits your next meal"}),(0,a.jsx)("div",{onClick:t,className:I().continue_shop,children:"Continue shopping"})]})]})};var L=l(2181),V=l.n(L);let O=e=>{var t,l,s,n;let{shipment:i,selectedShipmentId:r,popupRef:c,closePopup:d,selectSlot:_}=e,u=(0,x.DP)(),[m,p]=(0,o.useState)({}),[h,v]=(0,o.useState)([]),[y,g]=(0,o.useState)({}),[S,b]=(0,o.useState)(""),[j,f]=(0,o.useState)(""),[N,w]=(0,o.useState)(""),[k,P]=(0,o.useState)(""),E=k||(null==m?void 0:m.selected),D=V().slot_selected+(E?"":" ".concat(V().slot_selected_disabled)),A=(null==i||null==(l=i.data)||null==(t=l.shipment_summary)?void 0:t.length)||1;(0,o.useEffect)(()=>{if(r){var e,t;let l=(null==i||null==(t=i.data)||null==(e=t.shipment_summary)?void 0:e.find(e=>e.id==r))||{};p(l),Object.keys(l).length&&B(null==l?void 0:l.slots)}},[r]);let I=e=>e.getDate()+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()],B=e=>{let t=[];
1e.forEach(e=>{let l="",a=new Date(e.timestamp);l=a.getDate()==new Date().getDate()?"Today "+I(a):a.getDate()==new Date().getDate()+1?"Tomorrow "+I(a):I(a),e.selected&&(b(l),f(e.date),w(e.date)),t.push({day:l,key:e.date})});let l=0,a=0;try{e:for(let t=0;t<e.length;t++)for(let o=0;o<e[t].slots.length;o++)if(e[t].slots[o].selected){l=t;break e}else Number(e[t].slots[o].status)&&!a&&(a=t.toString());l||(l=a)}catch(e){l=0}b(t[l].day),f(e[l].date),v(t)};(0,o.useEffect)(()=>{if(j.length){var e;M((null==m||null==(e=m.slots)?void 0:e.find(e=>e.date==j))||{})}},[j]);let M=e=>{var t;let l=(null==e||null==(t=e.slots)?void 0:t.find(e=>e.selected))||{};Object.keys(l).length&&P(null==l?void 0:l.time),g(e)},L=()=>{p({}),v([]),b(""),f(""),g({}),P("")};return(0,a.jsx)("div",{className:V().slot_main_container,ref:c,children:(0,a.jsx)("div",{className:V().slots_wrapper,children:(0,a.jsxs)("div",{className:V().slots_container,children:[(0,a.jsxs)("div",{className:V().slot_header,children:[(0,a.jsx)("span",{className:V().heading,children:"Select slot for Shipment ".concat(r," of ").concat(A)}),(0,a.jsx)(T(),{src:"/image/".concat(null==u?void 0:u.theme_name,"/png/002_cancel.png"),onClick:()=>{d(),L()},alt:"close",role:"presentation",height:12,width:12,layout:"fixed"})]}),(0,a.jsx)("ul",{className:V().date_selection,children:null==h?void 0:h.map((e,t)=>(0,a.jsx)("li",{className:"".concat(V().dates," ").concat(e.day===S?V().date_selected:""),onClick:()=>{b(e.day),f(e.key),P(""),w("")},role:"presentation",children:(0,a.jsx)("span",{children:e.day})},t))}),(null==m||null==(s=m.slot_message)?void 0:s.length)?(0,a.jsx)("div",{className:V().apology_msg,children:null==m?void 0:m.slot_message}):null,(0,a.jsx)("div",{className:V().slot_lock,children:(0,a.jsx)("ul",{className:V().slot_list,children:null==y||null==(n=y.slots)?void 0:n.map((e,t)=>{var l,o;return(0,a.jsxs)("li",{className:V().slot_list_data,children:[(0,a.jsx)("button",{className:"".concat(V().slots," \n ").concat(N===(null==y?void 0:y.date)&&e.time===k?V().active:"","\n ").concat(0===e.status?V().disabled:""),onClick:()=>{w(null==y?void 0:y.date),P(e.time)},id:"".concat(C.ZM.SLOT_SELECTION_SELECT_SLOT,"_").concat(null==y?void 0:y.date,"_").concat(e.time),children:e.time}),(null==i||null==(o=i.data)||null==(l=o.dynamic_delivery_message)?void 0:l.length)?(e=>2==e.show_delivery_type&&1==e.status?(0,a.jsx)("span",{className:V().freeDelivery,children:e.message}):(3==e.show_delivery_type||4==e.show_delivery_type)&&1==e.status?(0,a.jsx)("span",{className:V().paidDelivery,children:e.message}):(0,a.jsx)("span",{className:V().paidDelivery,children:"\xa0"}))(e):null]},t)})})}),(0,a.jsxs)("div",{className:V().proceed_cancel_container,children:[(0,a.jsx)("button",{onClick:()=>{d(),L()},id:C.ZM.SLOT_SELECTION_CANCEL_CTA,children:"CANCEL"}),(0,a.jsx)("div",{className:D,onClick:()=>{E&&_({date:j,shipment_id:r,slot:k},L)},role:"presentation",id:C.ZM.SLOT_SELECTION_UPDATE_SLOT,children:"SELECT & PROCEED"})]})]})})})},R=e=>{var t,l;let{source:w,isLoggedIn:k}=e,{cart_id:E}=(0,x.iT)(),A=(0,s.wA)(),I=(0,j.useRouter)(),[B,T]=(0,o.useState)(0),[L,V]=(0,o.useState)(!1),[R,q]=(0,o.useState)(""),[F,J]=(0,o.useState)(""),[U,Q]=(0,o.useState)(""),[W,G]=(0,o.useState)("/"),[X,z]=(0,o.useState)(!1),[K,Y]=(0,o.useState)(!1),[Z,H]=(0,o.useState)(!1),[$,ee]=(0,o.useState)(null),[et,el]=(0,o.useState)(""),[ea,eo]=(0,o.useState)(!1),[es,en]=(0,o.useState)({}),[ei,er]=(0,o.useState)(!1),ec=(0,s.d4)(e=>e.cart),ed=(0,s.d4)(e=>e.loyalty),e_=(0,s.d4)(e=>{var t,l;return(null==(l=e.cart)||null==(t=l.getAddress)?void 0:t.data)||{}}),eu=(0,f.Qt)(e_.selectedAddressId),em=ei&&(null==ec||null==(t=ec.getAddress)?void 0:t.message)!=="error"&&null!==eu&&!!(null==(l=e_.address)?void 0:l.some(e=>(0,f.Qt)(null==e?void 0:e.address_id)===eu)),ep=(0,s.d4)(e=>{var t;return null==(t=e.cart)?void 0:t.cartShipment}),eh=async()=>{var e,t,l,a,o,s,r,c,d,_;if(!em||!Z||ea)return;(0,N.P)({eventType:"CLICKED",pageName:"CheckoutSlotSelectionPage",clickName:"Proceed to Payment",clickType:"Click",source:"CheckoutSlotSelectionScreen",price:String(B)}),eo(!0);let u=await n.x.LockShipment();if((0,S.Y6)("lock_shipment_result",{order_charges:null==u||null==(e=u.data)?void 0:e.order_charges}),eo(!1),200===u.statusCode){let e=null==u||null==(o=u.data)||null==(t=o.order_charges[(null==u||null==(a=u.data)||null==(l=a.order_charges)?void 0:l.length)-1])?void 0:t.value,n=(null==ep||null==(s=ep.data)?void 0:s.shipment_summary)||[],m={};
1null==n||n.forEach(e=>{var t,l,a,o,s;let n=null==e||null==(o=e.slots)||null==(a=o[0])||null==(l=a.slots)||null==(t=l.find(e=>null==e?void 0:e.selected))?void 0:t.time;null==e||null==(s=e.products)||s.forEach(e=>m[null==e?void 0:e.product_id]=n)}),localStorage.setItem("productSlotMap",JSON.stringify(m)),localStorage.setItem("li_order_charges",JSON.stringify(null==u||null==(r=u.data)?void 0:r.order_charges)),localStorage.setItem("delivery-message",null==u||null==(d=u.data)||null==(c=d.messages)?void 0:c.message),localStorage.removeItem("pay_later_data"),localStorage.removeItem("ssr_payment_data"),localStorage.setItem("coupon_type",""),localStorage.setItem("coupon",""),localStorage.setItem("web_ordercharges",JSON.stringify(null==u||null==(_=u.data)?void 0:_.order_charges)),localStorage.setItem("final_amt",e),localStorage.setItem("li_pay_amt",e);let p=[];null==n||n.forEach((e,t)=>{p=[...p,...e.products]});let h="",v=[],y=[],g=[];for(let e=0;e<p.length;e++)h+=p[e].category_id+",",v.push(p[e].product_name),y.push(p[e].product_id),g.push(p[e].quantity);h=h.slice(0,-1);let S={Checkout_Flow:"true"===sessionStorage.getItem("isQuickCheckoutFlow")?"quick_checkout":"old_checkout",Source:"Checkout_Slot","Cart Value":e,"Saved Value":localStorage.getItem("Saved_amount"),"Is Split order":(null==n?void 0:n.length)>1,"No of Split":null==n?void 0:n.length,Defaultslot:"EXPRESS"===n[0].slots[0].type?"Express":"Scheduled","Category ID":h,"Product ID":y.toString(),"Product Name":v.toString(),Quantity:g.toString()};i.A.send("Payment Initiated",S),I.push(C.fw.payments)}else eg(u)},{toastProps:ev,setToast:ey}=(0,h.A)(),eg=e=>{var t,l,a,o;let s=(null==e||null==(t=e.data)?void 0:t.message)||(null==e?void 0:e.message)||"Something went wrong";if(eo(!1),w===C.iz)eA(),ey(s),A(r.Em.LiCrossSell());else{J(s);let t=(null==e?void 0:e.statusCode)===202&&(null==(l=e.data)?void 0:l.errorMessage)==="empty_cart",n=t?"/":C.fw.cart,i=!1;try{let e=JSON.parse(b.A.get("abConsoleData")||"[]");i=Array.isArray(e)&&!!(null==(o=e.find(e=>(null==e?void 0:e.experimentName)==="cartrevamp"))||null==(a=o.configuration)?void 0:a.status)}catch(e){}n=i?"https://www.licious.in/q/cart/":C.fw.cart,q(t?"Alert [Cart Empty]":"Alert [Change Product availability]"),Q(t?"Continue Shopping":"View Cart"),G(n),eb()}},eS=async()=>{eo(!0),er(!1);try{await A(r.Em.GetShipmentSummary()),await A(r.Em.GetAddress({fromShipment:!0})),er(!0)}catch(e){eg(e)}finally{eo(!1)}};(0,o.useEffect)(()=>{eS()},[]),(0,o.useEffect)(()=>{var e,t,l,a,o,s,n,r,c;let d=null==ec?void 0:ec.cartShipment;if(d&&Object.keys(d).length){if(200!==d.statusCode&&202!==d.statusCode){z(!1),eg(d);return}if(!X&&d.statusCode&&z(!0),(null==ec||null==(e=ec.cartShipment)?void 0:e.statusCode)===200?eo(!1):(null==ec||null==(t=ec.cartShipment)?void 0:t.statusCode)===202&&(eo(!1),X?Y(!0):eg(null==ec?void 0:ec.cartShipment)),!X&&Object.keys(null==ec?void 0:ec.cartShipment).length){let e=(null==ec||null==(l=ec.cartShipment)?void 0:l.data)||{},t=[],d={};null==e||null==(a=e.shipment_summary)||a.forEach((e,l)=>{t=[...t,...e.products],d["shipment".concat(l+1,"_item_count")]=e.products.length,d["shipment".concat(l+1,"_defaultday")]=e.messages.message});let _=null==t?void 0:t.map(e=>null==e?void 0:e.category_name).join(","),u=null==t?void 0:t.map(e=>null==e?void 0:e.product_name).join(","),m=null==t?void 0:t.map(e=>null==e?void 0:e.product_id).join(","),p=null==t?void 0:t.map(e=>null==e?void 0:e.category_id).join(","),h=null==t?void 0:t.reduce((e,t)=>e+(null==t?void 0:t.total_quantity),0),v=null==e||null==(o=e.shipment_summary)?void 0:o.length;localStorage.setItem("category_name",_),localStorage.setItem("category_id",p),localStorage.setItem("item_name",u),localStorage.setItem("item_id",m),localStorage.setItem("cartItemCount","".concat(h)),localStorage.setItem("shipment_count","".concat(v));let y={category_name:_,category_id:p,item_name:u,item_id:m,item_count:h,cart_value:(null==e||null==(n=e.order_charges)||null==(s=n.find(e=>"subtotal"===e.key))?void 0:s.value)||"",shipment_count:v,meatopia_status:(null==ed?void 0:ed.userLoyaltyDetails.meatopia_status)||"",logged_in:k,...d};i.A.send("SlotSelection_PageViewed",y),(0,N.P)({eventType:"PAGE_VIEWED",pageName:"CheckoutSlotSelectionPage",clickName:"CheckoutSlotSelectionScreen",clickType:"ScreenView",source:"checkout"});let g=(null==e||null==(c=e.order_charges)||null==(r=c.find(e=>"deliverycharge"===e.key))?void 0:r.value)===0;localStorage.setItem("freedelivery","".concat(g))}}},[null==ec?void 0:ec.cartShipment]),(0,o.useEffect)(()=>{var e;(null==ed||null==(e=ed.removedPlan)?void 0:e.statusCode)===200&&eS()},[null==ed?void 0:ed.removedPlan]);let ex=(0,o.useRef)(null),eb=()=>{ex.current&&(ex.current.style.display="block",document.body.style.overflow="hidden")},ej=(0,o.useRef)(null),ef=()=>{ej.current&&(ej.current.style.display="none",document.body.style.overflow="visible"),ee(null)};(0,o.useEffect)(()=>{$&&ej.current&&(ej.current.style.display="block",document.body.style.overflow="hidden")},[$]);let eC=async(e,t)=>{eo(!0);let l=await A(r.Em.SelectSlot(e));eo(!1),ef(),t(),202===l.statusCode&&eg(l)},eN=(0,o.useRef)(null),ew=(0,o.useRef)(null),ek=(0,o.useCallback)(async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eo(!0);let l={params:{cartId:E,shipmentId:e?$||(null==es?void 0:es.shipmentId):null==t?void 0:t.shipmentId,productId:e?es.product_id:null==t?void 0:t.product_id}};if(await A(r.Em.DeleteShipment(l))&&e){var a,o;V(!1),"msite"===w&&(ew.current&&(ew.current.style.display="none"),eN.current&&(e
1N.current.style.display="none")),es.shipmentId&&(null==(a=es.combo_pop_up_messages)?void 0:a.alert_message)&&(el(null==(o=es.combo_pop_up_messages)?void 0:o.alert_message),setTimeout(()=>{el("")},5e3))}eo(!1)},[es]),eP=async(e,t)=>{(null==e?void 0:e.is_combo_child)?"msite"===w?(ew.current&&(ew.current.style.display="block"),eN.current&&(eN.current.style.display="block")):V(!0):ek(!1,{...e,shipmentId:t}),en({...e,shipmentId:t})},eE=(0,o.useRef)(null),{isShown:eD,toggle:eA}=(0,y.h)();return(0,a.jsxs)(m.A,{showLoader:ea,children:[(0,a.jsx)("div",{ref:ew,className:D().modal_overlay}),(0,a.jsx)("div",{className:D().header,children:(0,a.jsx)(u.Y,{headerText:"Choose delivery option",imgStyle:{height:"10px",width:"7px"},backFn:()=>{window.history.back()}})}),et?(0,a.jsx)("div",{className:D().alert_orange,children:et}):null,X&&!K?(0,a.jsx)(c.A,{address:e_,shipment:ep,setTotalAmount:T,deleteProduct:eP,setIsSlotSelected:H,openSlotSelection:(e,t)=>{try{var l;let e=t.products,a=null==e?void 0:e.map(e=>null==e?void 0:e.category_name).join(","),o=null==e?void 0:e.map(e=>null==e?void 0:e.product_name).join(","),s=null==e?void 0:e.map(e=>null==e?void 0:e.product_id).join(","),n=null==e?void 0:e.map(e=>null==e?void 0:e.category_id).join(","),r="",c="";for(let e=0;e<(null==t||null==(l=t.slots)?void 0:l.length);e++)if(null==t?void 0:t.slots[e].selected){r=null==t?void 0:t.slots[e].date;let l=null==t?void 0:t.slots[e].slots;for(let e=0;e<l.length;e++)if(l[e].selected){c=l[e].time;break}}let d={category_name:a,category_id:n,item_name:o,item_id:s,shipment_defaultday:r,shipment_defaultslot:c,meatopia_status:(null==ed?void 0:ed.userLoyaltyDetails.meatopia_status)||"",logged_in:k};i.A.send("SlotSelection_LayerLoad",d)}catch(e){}ee(e)},billDetailsRef:eE,removeLoyaltyItem:e=>{A(r.Aj.RemoveLoyaltyFromCart(e)),eo(!0)},onProceed:eh,isProceed:Z&&em&&!ea,isAddressSelected:em}):null,(0,a.jsx)(O,{shipment:ep,selectedShipmentId:$,popupRef:ej,closePopup:ef,selectSlot:eC}),K?(0,a.jsx)("div",{className:D().empty_cart,children:(0,a.jsx)("div",{className:D().empty_cart_wrapper,children:(0,a.jsx)(M,{onButtonClick:()=>{window.location.href="/"}})})}):em?(0,a.jsx)(P,{total:B,onProceed:eh,isProceed:Z&&em&&!ea,viewBillDetails:()=>{eE.current&&eE.current.scrollIntoView()}}):null,(0,a.jsx)(_.r,{errorPopupRef:ex,title:R,description:F,buttonText:U,closeErrorPopup:()=>{window.location.href=W}}),"msite"===w&&(0,a.jsx)(d.A,{comboModalRef:eN,comboPayload:es,closeModal:()=>{eN.current&&(eN.current.style.display="none"),ew.current&&(ew.current.style.display="none")},removeItem:()=>ek()}),(0,a.jsx)(v.Dialog,{isShown:L,size:"small",hide:()=>V(!1),modalContent:(0,a.jsxs)("div",{className:D().popup,children:[(0,a.jsx)("div",{className:D().heading,children:"Remove combo product ?"}),(0,a.jsx)("div",{className:D().message,children:"Removing a combo product or changing any quantity will result in cancellation of combo offer. Prices can change accordingly."}),(0,a.jsxs)("div",{className:D().cta_row,children:[(0,a.jsx)("button",{className:D().cancel,onClick:()=>V(!1),children:"Don't remove"}),(0,a.jsx)("button",{className:D().confirm,onClick:()=>ek(),children:"Remove"})]})]})}),w===C.iz&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{addTooltip:!1,message:ev.message,show:ev.show}),(0,a.jsx)(g.A,{isShown:eD,toggle:eA,loginComponent:null==e?void 0:e.loginComponent})]})]})}},58133:e=>{e.exports={bottom_wrapper:"BottomBar_bottom_wrapper__HpPEC",bottom_bar:"BottomBar_bottom_bar__9y58A",slot_summary_wrapper:"BottomBar_slot_summary_wrapper__k83v4",amount:"BottomBar_amount__nImXn",proceed_payment:"BottomBar_proceed_payment__Uhev_",proceed_on_payment:"BottomBar_proceed_on_payment__vE_yd",section_one:"BottomBar_section_one__DrHPz",section_two:"BottomBar_section_two__qhzki",proceed_payment_isabled:"BottomBar_proceed_payment_isabled__YwY64",staticPopup:"BottomBar_staticPopup__AdPTv",flicker:"BottomBar_flicker__UIXkb"}},72424:e=>{e.exports={bill_details:"BillDetail_bill_details__Nyfkr",bd_heading:"BillDetail_bd_heading__i_HBn",bd_contents:"BillDetail_bd_contents__MqV7W",seperator:"BillDetail_seperator__3BhWc",slot_key:"BillDetail_slot_key__FIJFF",message:"BillDetail_message__X9J2i",slot_value:"BillDetail_slot_value__hUcVG",slot_key_total:"BillDetail_slot_key_total__NINLb",slot_value_total:"BillDetail_slot_value_total__Mu_4p",staticPopup:"BillDetail_staticPopup__EaUpt",flicker:"BillDetail_flicker__6TkVK"}},81294:e=>{e.exports={static_popup_wrapper:"AddMoneyPopup_static_popup_wrapper__B2hQM",staticPopup:"AddMoneyPopup_staticPopup__vnBDJ",popup_wrapper:"AddMoneyPopup_popup_wrapper__bCD27",cross_icon_container:"AddMoneyPopup_cross_icon_container__G6Lfo",details_container:"AddMoneyPopup_details_container__yzBOu",logo:"AddMoneyPopup_logo__V_wTU",info:"AddMoneyPopup_info___G2FZ",info_alert:"AddMoneyPopup_info_alert__wLyT9",input:"AddMoneyPopup_input__zSvLR",btns_container:"AddMoneyPopup_btns_container__ICyLe",price_btn:"AddMoneyPopup_price_btn__dLEVN",add_money_btn:"AddMoneyPopup_add_money_btn__u68ma",add_money_btn_main_text:"AddMoneyPopup_add_money_btn_main_text__tqUD7",add_money_btn_sub_text:"AddMoneyPopup_add_money_btn_sub_text__DgTQ7",flicker:"AddMoneyPopup_flicker__T5Q35"}},81525:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(37876),o=l(88221),s=l(14232),n=l(81294),i=l.n(n);let r=e=>{let{show:t=!1,total:l,closePopup:n,paytmAddMoney:r,paytmParams:c=null,isWalletSelected:d,walletAmount:_,paytmBalance:u,eventData:m={}}
1=e,p=Math.ceil(l-(Number(u)||0)),[h,v]=(0,s.useState)(p),[y,g]=(0,s.useState)(!1),S=[600,700,1e3];if(p>1e3){let e=e=>500*Math.ceil(p/500)+500*e;S=[e(0),e(1),e(2)]}return(0,s.useEffect)(()=>{if(c&&Object.keys(c).length){let e={isWalletSelected:d,walletAmount:_,total:l,coupon_name:(null==m?void 0:m.coupon_name)||""};localStorage.setItem("paytm_initiate_addmoney",JSON.stringify(e)),localStorage.setItem("paytm_event_data",JSON.stringify({...m,...e})),setTimeout(()=>document.paytmForm.submit(),100)}},[c]),(0,a.jsx)(a.Fragment,{children:t?(0,a.jsxs)("div",{className:i().static_popup_wrapper,children:[(0,a.jsxs)("div",{className:i().popup_wrapper,children:[(0,a.jsx)("div",{className:i().cross_icon_container,children:(0,a.jsx)("img",{src:"/image/default/svg/cross-white.svg",onClick:()=>n(!t)})}),(0,a.jsxs)("div",{className:i().details_container,children:[(0,a.jsx)("img",{src:"https://d2407na1z3fc0t.cloudfront.net/Banner/Paytm_logo.png",alt:"",className:i().logo}),(0,a.jsxs)("div",{className:"".concat(i().info," ").concat(y?i().info_alert:""),children:["Please add min. â¹ ",p," to place order"]}),(0,a.jsx)("div",{className:i().input,children:(0,a.jsx)(o.A,{otherClass:"custom_input_payment",alert:{},name:"add_money",placeholder:h?"Amount":"Enter Amount",type:"number",defaultValue:String(h),handler:e=>v(e.target.value)})}),(0,a.jsx)("div",{className:i().btns_container,children:S.map((e,t)=>(0,a.jsxs)("div",{className:i().price_btn,onClick:()=>v(e),children:["â¹ ",e]},t))}),(0,a.jsxs)("div",{className:i().add_money_btn,onClick:()=>{h<p?(g(!0),setTimeout(()=>g(!1),1500)):r({amount:h})},children:[(0,a.jsx)("span",{className:i().add_money_btn_main_text,children:"Add money"}),(0,a.jsx)("span",{className:i().add_money_btn_sub_text,children:"and Pay"})]})]})]}),c&&Object.keys(c).length?(0,a.jsx)("form",{method:"post",id:"callback",action:c.PAYTM_TXN_URL_NEW,name:"paytmForm",children:Object.keys(c).map((e,t)=>"PAYTM_TXN_URL_NEW"===e?null:(0,a.jsx)("input",{type:"hidden",name:e,value:c[e]},t))}):null]}):null})}},97809:e=>{e.exports={modal_overlay:"CartSummaryContainer_modal_overlay__JtiQZ",empty_cart:"CartSummaryContainer_empty_cart__rZ0vh",empty_cart_wrapper:"CartSummaryContainer_empty_cart_wrapper__1lkdJ",alert_orange:"CartSummaryContainer_alert_orange__Cgxxu",footer:"CartSummaryContainer_footer__jkCKV",header:"CartSummaryContainer_header__rSjnJ",popup:"CartSummaryContainer_popup__DyMc6",heading:"CartSummaryContainer_heading___N8R_",message:"CartSummaryContainer_message__eQqs0",cta_row:"CartSummaryContainer_cta_row__1Yhxv",cancel:"CartSummaryContainer_cancel__oCZcP",confirm:"CartSummaryContainer_confirm__x4yDV",staticPopup:"CartSummaryContainer_staticPopup__6DKmw",flicker:"CartSummaryContainer_flicker__nFqOw"}},99442:(e,t,l)=>{"use strict";l.d(t,{X:()=>y});var a=l(37876),o=l(14232),s=l(48115),n=l.n(s),i=l(98854),r=l(68827),c=l.n(r),d=l(90154);let _=e=>{var t;let{details:l}=e;return(0,a.jsxs)("section",{className:n().tooltipBreakdown,children:[(0,a.jsx)("span",{className:n().tooltipTitle,children:l.attribute}),null==(t=l.details)?void 0:t.map((e,t)=>(0,a.jsxs)("div",{className:n().tooltipContent,children:[(0,a.jsx)("span",{className:n().tooltipAttribute,children:e.attribute}),(0,a.jsx)("span",{className:n().tooltipValue,children:e.value<=0?"FREE":(0,d.q2)(e.value)})]},t))]})},u=e=>{var t,l;let{keyName:s}=e,[r,d]=(0,o.useState)(!1),{new_bill_summary:u={}}=(0,i.d4)(e=>e.payments,i.bN),m=(0,o.useMemo)(()=>(null==u?void 0:u[s])||{},[s,u]);(0,o.useEffect)(()=>{let e=()=>{r&&d(!1)};return window.addEventListener("scroll",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("scroll",e)}},[r,s]);let p=(null==m?void 0:m.key)==="otherCharges",h=p&&(null==m?void 0:m.iconUrl)&&!(null==m?void 0:m.infoIconUrl)?"":(null==m?void 0:m.infoIconUrl)||(null==m?void 0:m.iconUrl),v="tooltip_list"===m.iconAction;return(0,a.jsxs)(a.Fragment,{children:[((null==m||null==(t=m.message)?void 0:t.length)>0||v)&&h.length>0?(0,a.jsxs)("div",{className:n().handellingFeeContainer,children:[(0,a.jsxs)("div",{className:"".concat(n().coachM
1arkContainer," ").concat(r?n().showCoachMark:""),children:[(0,a.jsx)("div",{className:n().coachMark,children:v?(0,a.jsx)(_,{details:m}):m.message}),(0,a.jsx)("div",{className:n().triangleDown})]}),(0,a.jsx)(c(),{alt:"billsummary-icon",src:h,height:16,width:16,onClick:()=>d(e=>!e)})]}):null,p&&(null==(l=m.message)?void 0:l.length)?(0,a.jsx)("div",{className:n().deilvertMessage,children:m.message}):null]})},m={src:"/_next/static/media/cheveronUp.8f617a60.svg",height:16,width:16,blurWidth:0,blurHeight:0},p={src:"/_next/static/media/cheveronDown.12063a4f.svg",height:16,width:16,blurWidth:0,blurHeight:0},h=e=>{let{keyName:t,attribute:l,message:o}=e;return(0,a.jsxs)("div",{className:"".concat(n().billDetailsAttributeContainer," ").concat(n(),".").concat({couponSavings:"couponVariant"}[t||""]),children:[(0,a.jsx)("div",{className:n().billDetailsAttributes,children:l}),(0,a.jsx)("div",{className:n().billDetailsMessage,children:o})]})},v=e=>{let{parentKey:t="",keyName:l}=e,{new_bill_summary:s={}}=(0,i.d4)(e=>e.payments,i.bN),r=(0,o.useMemo)(()=>{let e=(null==s?void 0:s[t])||{};if(e.details)return e.details.find(e=>e.key===l)},[]);return(0,a.jsxs)("div",{className:n().billDetailsList,children:[(0,a.jsx)(h,{keyName:r.key,attribute:r.attribute,message:r.message}),(0,a.jsxs)("div",{className:n().billDetailsValueContainer,children:[!!(r.waivedValue&&r.waivedValue>0)&&(0,a.jsx)("div",{className:n().billDetailsWaivedValue,children:(0,d.q2)(r.waivedValue)}),(0,a.jsx)("div",{className:n().billDetailsValue,children:(0,d.q2)(r.value)})]})]})},y=e=>{let{keyName:t}=e,[l,s]=(0,o.useState)(!1),{new_bill_summary:r={}}=(0,i.d4)(e=>e.payments,i.bN),_=(0,o.useMemo)(()=>(null==r?void 0:r[t])||{},[t,r]);return(0,a.jsxs)("div",{className:"".concat(n().billItemsContainer," ").concat("amountToBePaid"===t?n().topBordered:""),children:[(0,a.jsxs)("div",{className:n().billItem,children:[(0,a.jsxs)("div",{className:n().billAttributeContainer,children:[(0,a.jsx)("div",{className:"".concat(n().billAttribute," ").concat("amountToBePaid"===t?n().boldText:""),children:null==_?void 0:_.attribute}),(0,a.jsx)(u,{keyName:_.key}),"tooltip_list"!==_.iconAction&&_.details&&_.details.length>0&&(0,a.jsx)("div",{className:n().billAttributeCheveron,onClick:()=>s(e=>!e),children:l?(0,a.jsx)(c(),{src:m,alt:"chevron-down",height:16,width:16}):(0,a.jsx)(c(),{src:p,alt:"chevron-up",height:16,width:16})})]}),(0,a.jsxs)("div",{className:n().billValueContainer,children:[!!(_.waivedValue&&_.waivedValue>0)&&(0,a.jsx)("div",{className:n().billWavedValue,children:(0,d.q2)(_.waivedValue)}),(0,a.jsx)("div",{className:"".concat(n().billValue," ").concat("amountToBePaid"===_.key?n().boldText:"savings"===_.key?n().greenText:""),children:((e,t)=>("otherCharges"===e||"SuperExpressFee"===e)&&0===t?(0,a.jsx)("div",{className:n().greenText,children:"FREE"}):(0,d.q2)(t))(t,_.value)})]})]}),l&&_.details&&(0,a.jsxs)("div",{className:n().billDetailsContainer,children:[(0,a.jsx)("div",{className:n().billBorder}),_.details.map(e=>(0,a.jsx)(v,{parentKey:_.key,keyName:e.key},e.key))]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.