PageSourceSearch

https://assets.pharmeasy.in/web-assets/_next/static/chunks/4268-8046a7e23d9fcafb.js

js pharmeasy.in collected 2026-10-01 10:27:32 UTC 15,549 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4268],{28892:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var l=t(85893),i=t(67294),s=t(16217),a=t(24957),o=t(75622),c=t(60835),r=t(81774),_=t.n(r),d=e=>{let{isOptIn:n=!1,onClick:t,isExpired:i=!1,duration:s="",isSingleVariant:a=!1}=e;return n?(0,l.jsx)("button",{onClick:t,className:_().addBtn,children:i?c.ar.renew:c.ar.add}):(0,l.jsxs)("button",{disabled:a,onClick:t,className:"".concat(_().planSelector," ").concat(a?_().disabled:""),children:[s,!a&&(0,l.jsx)("svg",{className:_().arrow,children:(0,l.jsx)("use",{xlinkHref:"#chevronFilled"})})]})},u=t(82698),p=t(60946),m=t.n(p),v=e=>{let{type:n,text:t="",keyword:i=""}=e,o=t.split("%s"),c=n===u.oc.PEOPLE;return(0,l.jsxs)("div",{className:"".concat(m().text," ").concat(c?m().blue:m().purple),children:[(0,l.jsx)(a.Z,{src:"".concat(s.v5).concat(c?"multiple-users-icon.svg":"rupee-circle-outline.svg"),alt:c?"users":"savings",height:24,width:24,className:m().image}),o[0],i&&(0,l.jsx)("span",{className:m().keyword,children:i}),(null==o?void 0:o[1])||""]})},x=t(77426),h=t(65220),f=t.n(h),g=e=>{let{plan:{id:n,isActive:t=0,duration:i,validityText:s="",amount:a,discountedAmount:o},isLast:r=!1,onSelect:_}=e,d=e=>{e.stopPropagation(),_(n)},p="".concat(u.JG,"_").concat(n),m=!!t,v=+a>+(o||a),x=v?o:a;return(0,l.jsx)("div",{role:"radio","aria-labelledby":i,"aria-checked":m,tabIndex:0,onClick:d,onKeyDown:d,className:"".concat(f().wrapper," ").concat(r?f().lastOption:""),children:(0,l.jsxs)("div",{className:f().plan,children:[(0,l.jsx)("input",{name:u.JG,type:"radio",id:p,value:n,checked:m,onChange:d,className:f().radio}),(0,l.jsxs)("div",{className:f().label,children:[(0,l.jsx)("div",{className:f().title,children:"".concat(i," ").concat(c.Sc.plan)}),(0,l.jsx)("div",{className:f().subtitle,children:s})]}),(0,l.jsxs)("div",{className:f().priceBox,children:[v&&(0,l.jsxs)("span",{className:f().mrp,children:["₹",a]}),(0,l.jsxs)("span",{className:f().salePrice,children:["₹",x]})]})]})})},j=t(79769),N=t.n(j),b=(0,i.memo)(e=>{let{plans:n,recommendedPlan:t="",isOpen:i=!1,onClose:s,onSelect:a}=e,o=(null==n?void 0:n.length)-1;return(0,l.jsxs)(x.default,{name:u.pk,isOpen:i,onClose:s,position:"center",title:c.Sc.title,classes:{innerWrapper:N().wrapper,content:N().content,header:N().title},children:[(0,l.jsx)("div",{className:N().subtitle,children:t}),null==n?void 0:n.map((e,n)=>(0,l.jsx)(g,{plan:e,isLast:n===o,onSelect:a},null==e?void 0:e.id))]})}),I=t(64309),B=t(20223),y=t(34763),C=t.n(y),w=(0,i.memo)(e=>{var n,t,r,_;
1let{benefits:p=[],removalBottomSheet:m,savingsText:x,variants:h,recommendedPlan:f="",addToCart:g,removeFromCart:j,isExpired:N=!1,isOptIn:y=!1,usersStrip:w="",savingsStrip:k={keyword:"",text:""},openLoyaltyDrawer:P,source:S=u.bW.OTHER,isMobile:O=!0,classes:E={},proPlusCart:T=!1}=e,[A,M]=(0,i.useState)(!1),[F,D]=(0,i.useState)(!1),L=(0,i.useMemo)(()=>(0,u.ue)(h),[h]),R=(null==L?void 0:L.find(e=>null==e?void 0:e.isActive))||(null==L?void 0:L[0]);(0,i.useEffect)(()=>{(0,B.cy)({isExpired:N,plan:y?null:null==R?void 0:R.duration,isOptIn:y})},[N,null==R?void 0:R.duration,y]);let W=()=>{M(e=>!e)},G=()=>{D(e=>!e)},H=()=>{G(),j()},U=!y&&[{cta:c.cm.payExtra,onClick:()=>{(0,B.Qm)(N,"remove",B.mM),H()}},{cta:"".concat(c.cm.getPlus).concat((null==R?void 0:R.discountedAmount)?" ".concat(R.discountedAmount):""),onClick:()=>{(0,B.Qm)(N,"get_plus",B.mM),G()}}],{amount:J,discountPercentage:Z,discountedAmount:V}=R||{},Y=+J>+(V||J),q=Y?V:J,{benefitsText:z,highlights:K,amount:Q}=(0,u.cV)(x),{showInfoStrip:X,infoStripProps:$}=(0,u.qx)(y,k,w),ee=null==p?void 0:p.slice(0,u.zm),en=(S===u.bW.AUTO_ADD||S===u.bW.QUICK_ADD)&&(null==ee?void 0:ee.length),et=N&&y,el=(null==L?void 0:L.length)===1;return(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(C().wrapper," ").concat((null==E?void 0:E.wrapper)||""," ").concat(y?C().optInWrapper:""),children:(0,l.jsxs)("div",{className:C().container,children:[(0,l.jsxs)("div",{className:C().main,children:[et&&(0,l.jsx)("div",{className:C().expiredBar,children:(0,l.jsx)("div",{className:C().expiredTag,children:c.BC.expired})}),(0,l.jsxs)("div",{className:"".concat(C().item," ").concat(y?C().itemOptIn:""),children:[(0,l.jsxs)("div",{className:C().spaceBWFlex,children:[(0,l.jsxs)(o.Z,{onClick:()=>null==P?void 0:P(),className:"".concat(C().heading," ").concat(y?"":C().noClick),children:[(0,l.jsx)(a.Z,{src:T?"".concat(s.v5,"plus-pro/icon_plusCart.svg"):"".concat(s.v5,"plusIcon.svg"),alt:"plus_membership",height:24,width:24,className:C().plusIcon}),c.BC.heading]}),!y&&(0,l.jsx)(a.Z,{src:"".concat(s.v5,"icDelete.svg"),alt:"delete",onClick:()=>{(0,B.p8)({isOptIn:!1,isExpired:N,plan:null==R?void 0:R.duration}),G()},height:24,width:24,className:"".concat(C().delete," ").concat((null==E?void 0:E.removeBtn)||"")})]}),(0,l.jsxs)("div",{className:"".concat(C().details," ").concat(C().spaceBWFlex),children:[(0,l.jsxs)("div",{className:C().priceUnit,children:[Y&&(0,l.jsxs)("div",{className:C().commonPriceStyle,children:[(0,l.jsxs)("span",{className:C().mrp,children:["₹",J]}),!!Z&&(0,l.jsxs)("span",{className:C().discount,children:[Z,c.BC.off]})]}),(0,l.jsxs)("span",{className:C().priceUnitText,children:[c.BC.activeDuration.replace("$duration",null==R?void 0:R.duration),(0,l.jsxs)("div",{className:C().salePrice,children:["₹",q]})]})]}),(null==L?void 0:L.length)&&(0,l.jsx)(d,{isOptIn:y,onClick:()=>{if(y&&(null==L?void 0:L.length)===1){var e,n;g(null==L?void 0:null===(e=L[0])||void 0===e?void 0:e.id),(0,B.p8)({isOptIn:y,isExpired:N,plan:null==L?void 0:null===(n=L[0])||void 0===n?void 0:n.duration})}else W(),y&&(0,B.p8)({isOptIn:y,isExpired:N}),(0,B.Fv)(B.EY.SELECTOR,N)},duration:(null==R?void 0:R.duration)||"",isExpired:N,isSingleVariant:el})]})]})]}),X&&(0,l.jsx)(v,{type:$.type,text:$.text,keyword:$.keyword}),(0,l.jsxs)("div",{className:"".concat(C().benefits," ").concat(y?C().optInBenefits:""),children:[(0,l.jsxs)("div",{className:C().mainBenefit,children:[null!==(n=null==z?void 0:z[0])&&void 0!==n?n:"",(0,l.jsxs)("span",{className:C().highlight,children:[null!==(t=null==K?void 0:K[0])&&void 0!==t?t:"",Q&&(0,l.jsxs)("span",{className:C().amount,children:["₹",Q]}),null!==(r=null==K?void 0:K[1])&&void 0!==r?r:""]}),null!==(_=null==z?void 0:z[1])&&void 0!==_?_:""]}),en&&(0,l.jsxs)("div",{className:C().centerAlignFlex,children:[(0,l.jsx)("ul",{className:C().list,children:null==ee?void 0:ee.map((e,n)=>
1(0,l.jsxs)("li",{className:C().benefit,children:[(0,l.jsx)(a.Z,{src:"".concat(s.v5,"plus-tick.svg"),alt:"tick",width:24,height:24,className:C().tick}),(0,l.jsx)("span",{className:C().benefitText,children:e})]},n))}),(0,l.jsx)(a.Z,{src:"".concat(s.v5,"plus-woman.png"),alt:"plus_woman",height:110,width:95,className:C().plusWoman})]})]})]})}),(0,l.jsx)(b,{plans:L,recommendedPlan:f,isOpen:A,onClose:W,onSelect:e=>{var n;let t=null==L?void 0:null===(n=L.find(n=>(null==n?void 0:n.id)===e))||void 0===n?void 0:n.duration;(0,B.gW)(N,t),W(),g(e)}}),!y&&(0,l.jsx)(I.default,{isOpen:F,onClose:G,data:m,isExpired:N,ctaArr:U,drawerName:u.Gz.REMOVAL,source:B.mM,isMobile:O,proPlusCart:T})]})})},64309:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return C}});var l=t(85893),i=t(67294),s=t(77426),a=t(20223),o=t(60835),c=t(24957),r=t(16217),_=t(82698),d=t(98942),u=t.n(d),p=(0,i.memo)(e=>{var n,t;let{data:{keyword:i="",text:s=""},showAutoAddBottomSheetAB:a=!1,proPlusCart:o=!1}=e,d=(0,_.PF)(s);return(0,l.jsxs)("div",{className:u().savingsContainer,children:[(0,l.jsxs)("h2",{className:"".concat(u().savings," ").concat(a?u().savingHeading:""),children:[null!==(n=null==d?void 0:d[0])&&void 0!==n?n:"",(0,l.jsx)("span",{className:"".concat(u().highlight," ").concat(a&&u().autoLp),children:i}),null!==(t=null==d?void 0:d[1])&&void 0!==t?t:""]}),(0,l.jsx)(c.Z,{src:o?"".concat(r.v5,"plus-pro/img_plusText.svg"):"".concat(r.v5,"plus_icon_text.webp"),alt:"plus_savings",width:o?71:49,height:o?71:69,className:u().plusIcon})]})}),m=t(79618),v=t.n(m),x=e=>{var n;let{benefits:t=[]}=e;return(0,l.jsxs)("div",{className:v().container,children:[(0,l.jsxs)("h3",{className:v().title,children:[o.zk.benefits,(0,l.jsx)("span",{className:v().bold,children:o.zk.benefitsBold})]}),null==t?void 0:null===(n=t.map)||void 0===n?void 0:n.call(t,(e,n)=>{var t,i;let{icon:s,keyword:a,subtext:o,text:r}=e,d=(0,_.PF)(r);return(0,l.jsxs)("div",{className:v().benefit,children:[(0,l.jsx)(c.Z,{src:s,alt:r,width:48,height:48,className:v().icon}),(0,l.jsxs)("div",{className:v().textBox,children:[(0,l.jsxs)("div",{className:v().text,children:[null!==(t=null==d?void 0:d[0])&&void 0!==t?t:"",(0,l.jsx)("span",{className:v().keyword,children:a}),null!==(i=null==d?void 0:d[1])&&void 0!==i?i:""]}),(0,l.jsx)("div",{className:v().subtext,children:o})]})]},"".concat(a,"-").concat(n))})]})},h=t(36779),f=t.n(h),g=(0,i.memo)(e=>{let{ctaArr:n=[]}=e;return(0,l.jsxs)("div",{className:f().box,children:[(0,l.jsx)("button",{onClick:n[0].onClick,className:f().outline,children:n[0].cta}),(0,l.jsx)("button",{onClick:n[1].onClick,className:f().solid,children:n[1].cta})]})}),j=t(5293),N=t.n(j),b=(0,i.memo)(e=>{let{isExpired:n=!1,savingsData:t,benefits:s,ctaArr:a,showAutoAddBottomSheetAB:c=!1,proPlusCart:r=!1}=e;return(0,l.jsxs)(i.Fragment,{children:[n&&(0,l.jsx)("div",{className:N().expired,children:o.BC.expired}),(0,l.jsxs)("div",{className:N().main,children:[(0,l.jsx)(p,{data:t,showAutoAddBottomSheetAB:c,proPlusCart:r}),(0,l.jsx)(x,{benefits:s}),(0,l.jsx)(g,{ctaArr:a})]})]})}),I=t(62227),B=t.n(I);let y={benefits:[],keyword:"",text:""};var C=(0,i.memo)(e=>{let{data:{benefits:n=[],keyword:t="",text:c=""}=y,isExpired:r=!1,isOpen:_,onClose:d,ctaArr:u=[],drawerName:p="",isMobile:m=!0,source:v,showAutoAddBottomSheetAB:x=!1,proPlusCart:h=!1}=e;return(0,i.useEffect)(()=>{_&&(0,a.Fv)(a.EY.BOTTOMSHEET,r,v)},[_,r,v]),(0,l.jsx)(s.default,{name:p,title:o.RY,isOpen:_,onClose:()=>{(0,a.Qm)(r,"close",v),d()},showLegendCircularClose:!0,hideHeader:m,showCloseButton:!m,classes:{innerWrapper:B().wrapper,content:B().content,header:B().header},children:(0,l.jsx)(b,{savingsData:{keyword:t,text:c},benefits:n,isExpired:r,ctaArr:u,showAutoAddBottomSheetAB:x,proPlusCart:h})})})},20223:function(e,n,t){"use strict";t.d(n,{EY:function(){return s},Fv:function(){return c},Qm:function(){return _},cy:function(){return o},gW:function(){return d},mM:function(){return a},p8:function(){return r}});var l=t(75812),i=t(82698);let s={ITEM:"loyalty_plus_banner_with_cta",BOTTOMSHEET:"plus_bottomsheet_on_delete",SELECTOR:"select_membership_plan"},a="p_your_cart",o=e=>{let{isExpired:n,plan:t=null,isOptIn:o}=e,{userType:c,type:r,planVal:_}=(0,i.et)({isExpired:n,plan:t,isOptIn:o});(0,l.Kw)({property_name:s.ITEM,item_name:r,lp_no_of_months:_,loyalty_user_type:c,page_name:a})},c=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s={property_name:e,loyalty_user_type:(0,i.j8)(n),page_name:a};t&&(s.source_property_name=t),(0,l.Kw)(s)},r=e=>{let{isOptIn:n,isExpired:t,plan:o=null}=e,{userType:c,type:r,planVal:_}=(0,i.et)({isExpired:t,plan:o,isOptIn:n});(0,l.Nc)({element_name:"Plus Membership",element_unique_name:s.ITEM,lp_no_of_months:_,loyalty_user_type:c,element_cta:r,page_name:a})},_=(e,n,t)=>{let o=(0,i.j8)(e);(0,l.Nc)({element_name:"MISSING",element_unique_name:s.BOTTOMSHEET,loyalty_user_type:o,element_cta:n,source_property_name:t,page_name:a})},d=(e,n)=>{let t=(0,i.j8)(e),s=(0,i.tN)(n);(0,l.Nc)({element_name:"MISSING",element_unique_name:"select_membership_plan",lp_no_of_months:s,loyalty_user_type:t,element_cta:"click",page_name:a})}},60835:function(e,n,t){"use strict";t.d(n,{BC:function(){return l},LJ:function(){return c},RY:function(){return r},Sc:function(){return s},ar:function(){return i},cm:function(){return o},zk:function(){return a}});let l={heading:"PLUS Membership",off:" OFF",expired:"Membership Expired",activeDuration:" Add for $duration at"},i={add:"ADD",renew:"Renew"},s={title:"Select Your Membership Plan",plan:"Plan"},a={benefits:"Keep enjoying the ",benefitsBold:"Exclusive Benefits"},o={payExtra:"No, I'll skip",getPlus:"Get Plus at ₹"},c={remove:"Remove Plus",continue:"Continue"},r="Plus Benefits"},7247:function(e,n,t){"use strict";t.d(n,{x:function(){return s}});
1var l=t(16217),i=t(82776);let s=e=>{let{selectedVariant:n,lpAutoAdded:t,source:s,actionType:a,...o}=e,c={eventLabel:"c_add_to_cart",eventDetails:{order_type:l.ORDER_TYPES.loyalty,source:s||"p_your_cart",lp_auto_added:t||"false",item_name:(null==n?void 0:n.description)||"",item_id:(null==n?void 0:n.programId)||(null==n?void 0:n.programID)||"",item_price:(null==n?void 0:n.discountedAmount)||"",action_type:a||"add_to_cart",...o}};(0,i.qe)(c)}},81774:function(e){e.exports={addBtn:"CTA_addBtn__l7T2g",planSelector:"CTA_planSelector__BJP76",arrow:"CTA_arrow__OIsBI",disabled:"CTA_disabled___9Kyy"}},60946:function(e){e.exports={text:"InfoStrip_text__KsDg2",blue:"InfoStrip_blue__kToEh",purple:"InfoStrip_purple__1El40",keyword:"InfoStrip_keyword__JpRAD",image:"InfoStrip_image__kgt2s"}},34763:function(e){e.exports={wrapper:"Item_wrapper__cIf4c",optInWrapper:"Item_optInWrapper__dumq5",container:"Item_container__8WC7_",main:"Item_main__46_y_",expiredBar:"Item_expiredBar__3DM8g",expiredTag:"Item_expiredTag__4Lxii",item:"Item_item__2Js4D",itemOptIn:"Item_itemOptIn__91GYt",spaceBWFlex:"Item_spaceBWFlex__jMBk_",heading:"Item_heading__BVA6U",noClick:"Item_noClick__NHrG5",plusIcon:"Item_plusIcon__9RpN0",delete:"Item_delete__kP_Y9",details:"Item_details__f6Mf9",priceUnit:"Item_priceUnit__LGBg8",commonPriceStyle:"Item_commonPriceStyle__4L13v",mrp:"Item_mrp__LVCoG",discount:"Item_discount__MWblp",salePrice:"Item_salePrice__G_5lV",benefits:"Item_benefits__ay8qk",optInBenefits:"Item_optInBenefits__4SqGy",mainBenefit:"Item_mainBenefit__sRFH6",highlight:"Item_highlight__lxAHk",amount:"Item_amount__6mmes",centerAlignFlex:"Item_centerAlignFlex__JV6ET",list:"Item_list__i5_m0",benefit:"Item_benefit__2JusJ",tick:"Item_tick__zpWl4",benefitText:"Item_benefitText__1MFal",plusWoman:"Item_plusWoman__GGKcz",priceUnitText:"Item_priceUnitText__nJZNi"}},65220:function(e){e.exports={wrapper:"PlanOption_wrapper__46s9s",lastOption:"PlanOption_lastOption__Ts_9l",plan:"PlanOption_plan__FrLsT",label:"PlanOption_label__V2FVU",radio:"PlanOption_radio__XQLJz",title:"PlanOption_title__rH1v1",subtitle:"PlanOption_subtitle__LO2f1",mrp:"PlanOption_mrp__8pklb",salePrice:"PlanOption_salePrice__hVOyl"}},79769:function(e){e.exports={wrapper:"PlanSelector_wrapper___b_jf",title:"PlanSelector_title__PF7GQ",content:"PlanSelector_content__0egT6",subtitle:"PlanSelector_subtitle__RwPEv"}},79618:function(e){e.exports={container:"Benefits_container__leG6R",title:"Benefits_title__EDFuG",bold:"Benefits_bold__G_hUR",benefit:"Benefits_benefit__qhBv_",icon:"Benefits_icon__QJ7uM",textBox:"Benefits_textBox__dwONt",text:"Benefits_text__udHeb",keyword:"Benefits_keyword__YrS34",subtext:"Benefits_subtext__8CZIK"}},36779:function(e){e.exports={box:"CTABox_box__tNHmU",outline:"CTABox_outline__jNB80",solid:"CTABox_solid__vcDpY"}},5293:function(e){e.exports={expired:"Content_expired__7nOyE",main:"Content_main__uExOe"}},62227:function(e){e.exports={content:"RemovalBottomsheet_content__nwux7",wrapper:"RemovalBottomsheet_wrapper__Fk0Lo",header:"RemovalBottomsheet_header__rfbeh"}},98942:function(e){e.exports={savingsContainer:"Savings_savingsContainer__ZrgpD",savingHeading:"Savings_savingHeading__VPUj1",savings:"Savings_savings__kz0_M",autoLp:"Savings_autoLp__R4ShB",highlight:"Savings_highlight__76XF5",plusIcon:"Savings_plusIcon__pxAS_"}}}]);

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.