PageSourceSearch

https://www.medikabazaar.ae/_next/static/chunks/4836-c198dde6e6.3557c6622f3ff8aa.js

js medikabazaar.ae collected 2026-10-02 00:45:40 UTC 8,634 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4836,8551],{79586:function(e,t,s){"use strict";var l=s(85893),a=s(733),n=s.n(a),r=s(57851);let i=e=>{let t="",s="#2A4689",a="";e.outline?(t+="bg-[#fff] ",a="#EC6303",e.secondary?(t+="border-[".concat(s,"] text-[").concat(s,"] "),a="#182A54"):t+=e.color?"border-[".concat(e.color,"] text-[").concat(e.color,"] "):"border-orange text-orange ",e.noborder?t+="border-0 ":t+="border "):(a="#fff",t+="text-[#fff] ",e.secondary?t+="bg-[".concat(s,"] "):t+=e.color?"bg-[".concat(e.color,"] "):"bg-orange ",t+="border-0 ");let i=e.paddingClasses||"p-2",c=e.disabled||e.loading,o=e.textClasses||"text-sm font-semibold",d=e.width||"w-full",x=e.height||"h-full",m={};return(null==e?void 0:e.color)&&(m={borderColor:null==e?void 0:e.color},m=(null==e?void 0:e.outline)?{...m,color:null==e?void 0:e.color}:{...m,backgroundColor:null==e?void 0:e.color}),(0,l.jsx)("button",{"aria-label":e.ariaLabel||e.children||"button",type:e.type||"button",className:(0,r.m)("flex justify-center items-center",t,i,e.rounded?"rounded":"",o,d,x,e.extraClasses||""),onClick:e.onClick,disabled:c,id:e.id,style:{...m,...e.additionalStyles},children:e.loading?(0,l.jsx)("div",{className:"relative h-2/3 aspect-square",children:(0,l.jsx)(n(),{type:"bars",width:"100%",height:"100%",color:a})}):e.children})};t.Z=i},8551:function(e,t,s){"use strict";s.r(t);var l=s(85893),a=s(5152),n=s.n(a),r=s(67294);let i=n()(()=>Promise.all([s.e(719),s.e(6090)]).then(s.bind(s,6090)),{loadableGenerated:{webpack:()=>[6090]}}),c=n()(()=>s.e(5343).then(s.bind(s,35149)),{loadableGenerated:{webpack:()=>[35149]}}),o=n()(()=>Promise.all([s.e(7851),s.e(1679)]).then(s.bind(s,81679)),{loadableGenerated:{webpack:()=>[81679]}}),d=e=>{var t;let{coupons:s}=e,[a,n]=(0,r.useState)(null);return(0,l.jsxs)(l.Fragment,{children:[s.length>1&&(0,l.jsx)(i,{coupons:s,handleSelect:n}),1===s.length&&(0,l.jsx)(c,{coupon:s[0],handleSelect:()=>n(s[0])}),a&&(0,l.jsx)(o,{showModal:!0,closeModal:()=>n(null),data:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:null!==(t=a.voucher_terms_conditions)&&void 0!==t?t:""}})})]})};t.default=d},92592:function(e,t,s){"use strict";s.d(t,{Z:function(){return x}});var l=s(85893),a=s(45785),n=s(11163),r=s(65478),i=s(39073);let c=()=>{let[e,t]=(0,i.k)(!1);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.hU,{src:"/New/Accounts/error_outline.png",alt:"back",className:"w-[15px] h-[15px] mt-0.1 ml-1 cursor-pointer",onMouseEnter:t.on,onMouseLeave:t.off}),e&&(0,l.jsxs)("div",{className:"absolute bg-[#fff] border border-[#ECECEC] rounded-lg shadow-2xl p-2 z-10 w-[250px] -translate-x-2/4",style:{top:"calc(100% + 12px)"},children:[(0,l.jsx)("h3",{className:"font-semibold text-[16px] mb-2",children:"Shipping Charges Update"}),(0,l.jsx)("p",{className:"text-[14px] font-medium",children:"We will be adjusting the shipping charges as per your city."})]})]})},o=e=>{let{location:t,shippingCharges:s,actualShippingCharges:n,slashedShippingCharges:r}=e;return(0,l.jsxs)("div",{className:"flex items-start justify-between text-[0.8rem]",children:[(0,l.jsxs)("div",{className:"text-[#444] font-normal",children:[(0,l.jsxs)("p",{className:"flex items-center relative ".concat(0===s?"text-[#138708]":"text-[#444]"),children:[(0,l.jsx)("span",{children:"Shipping (Exclusive of VAT)"}),(0,l.jsx)(c,{})]}),(0,l.jsxs)("p",{className:"text-[#999] text-[11px]",children:["Delivering to ",(0,l.jsx)("span",{children:t})]})]}),(0,l.jsx)("div",{className:"text-right flex items-center gap-2 font-medium text-xs",children:s>0?(0,l.jsxs)(l.Fragment,{children:[!!r&&(0,l.jsx)("span",{className:"line-through",children:(0,a.x6)(r)}),(0,l.jsx)("span",{className:r?"text-[#138708]":"text-[#444]",children:(0,a.x6)(s)})]}):(0,l.jsxs)(l.Fragment,{children:[!!n&&(0,l.jsx)("span",{className:"line-through",children:(0,a.x6)(n)}),(0,l.jsx)("span",{className:"text-[#138708]",children:"FREE"})]})})]})},d=e=>{let{shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:r,subtotal:i,tax:c,total:d,location:x,discount:m=0,discountCode:h,hideShipping:u=!1,creditLineBalance:f=0,codFee:p=0,rewardPointsUsed:j=0,className:g=""}=e,b=(0,n.useRouter)().pathname;return(0,l.jsxs)("div",{className:"py-4 lg:py-5 ".concat(g),children:[(0,l.jsx)("div",{className:"text-sm font-[600] leading-[150%] mb-2",children:"Price Details"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 text-[0.8rem]",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)("div",{className:"text-[#444] font-normal",children:"Subtotal (Excluding VAT)"}),(0,l.jsx)("div",{className:"text-right text-[#444] font-medium",children:i>0?(0,a.x6)(i):(0,a.x6)(0)})]}),m>0&&(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsxs)("div",{className:"text-[#138708] font-normal",children:["Discount(",h,")"]}),(0,l.jsxs)("div",{className:"text-right text-[#138708] font-normal",children:["- ",(0,a.x6)(m)]})]}),(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)("div",{className:"text-[#444] font-normal text-xs",children:"VAT"}),(0,l.jsx)("div",{className:"text-right text-[#444] font-medium",children:(0,a.x6)(c)})]}),!u&&(0,l.jsx)(o,{location:x,shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:r}),p>0&&(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)("div",{className:"text-[#444] font-normal text-xs",children:"COD Fees"}),(0,l.jsxs)("div",{className:"text-right text-[#444] font-medium text-xs",children:["+ ",(0,a.x6)(p)]})]}),j>0&&(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)("div",{className:"text-[#138708] font-normal text-xs",children:"Reward points"}),(0,l.jsxs)("div",{className:"text-right text-[#138708] font-normal text-xs",children:["- ",(0,a.x6)(j)]})]}),f>0&&(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)("div",{className:"text-[#138708] font-normal text-xs",children:"Credit Line Balance"}),(0,l.jsxs)("div",{className:"text-right text-[#138708] font-normal text-xs",children:["- ",(0,a.x6)(f)]})]}),(0,l.jsx)("div",{className:"border-t border-t-[#F4F4F4]"}),(0,l.jsxs)("div",{className:"flex items-start justify-between py-2",children:[(0,l.jsxs)("div",{className:"text-[#444] font-[600] text-xs",children:["Total Amount ","/account"===b?"":"To Pay"]}),(0,l.jsx)("div",{className:"text-right text-[#444] font-[600] text-xs",children:(0,a.x6)(d)})]})]})]})};var x=d},64539:function(e,t,s){"use strict";var l=s(85893),a=s(8551);s(99008),s(44233),s(74256);let n=e=>{let{coupons:t,className:s=""}=e;return(0,l.jsxs)("div",{className:"max-w-full py-4 mt-4 bg-[#fff] lg:mt-0 ".concat(s),children:[(0,l.jsx)("p",{className:"mb-4 text-sm font-bold text-[#182A54]",children:"Coupons"}),(0,l.jsx)("p",{className:"mb-2 -mt-2 text-xs text-400 text-[#EC6303]",children:"You can apply coupons on the next page"}),(0,l.jsx)(a.default,{coupons:t})]})};t.Z=n},84836:function(e,t,s){"use strict";s.r(t);var l=s(85893),a=s(52743),n=s(79586),r=s(64539),i=s(51538);let c=e=>{let{handleCheckout:t,coupons:s}=e;return(0,l.jsxs)("div",{className:"block mt-[1.6rem] mb-4 flex-1 max-w-[30%]",children:[(0,l.jsxs)("div",{className:"bg-[#F2F7FF] p-[.8rem] text-[#444] text-[.75rem] font-medium",children:[(0,l.jsx)(i.Z,{}),(0,l.jsxs)(n.Z,{width:"xl:min-w-[16.4rem] lg:min-w-[9rem] w-full",height:"h-[2.7rem]",rounded:!0,secondary:!0,extraClasse
1s:"flex-1",onClick:t,children:["Checkout",(0,l.jsx)(a.Z,{className:"w-[18px] font-bold ml-1"})]})]}),s.length>0&&(0,l.jsx)(r.Z,{coupons:s,className:"pb-0"})]})};t.default=c},51538:function(e,t,s){"use strict";var l=s(85893),a=s(91897),n=s(63665),r=s(92592);let i=()=>{let e=(0,n.i)(e=>e.cartReducer.location.name),{shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:i,cartWithShippingTotal:c,tax:o,subtotal:d}=(0,a.KZ)();return(0,l.jsx)(r.Z,{shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:i,tax:o,total:c,subtotal:d,location:e,className:"lg:pt-0"})};t.Z=i},44233:function(){},74256:function(){},99008:function(){},52743:function(e,t,s){"use strict";var l=s(67294);let a=l.forwardRef(function({title:e,titleId:t,...s},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},s),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M12.97 3.97a.75.75 0 011.06 0l7.5 7.5a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 11-1.06-1.06l6.22-6.22H3a.75.75 0 010-1.5h16.19l-6.22-6.22a.75.75 0 010-1.06z",clipRule:"evenodd"}))});t.Z=a}}]);

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.