1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{63919:function(e,t,s){s.d(t,{Z:function(){return i}});var l=s(85893);let a=e=>{let{fill:t="#243868"}=e;return(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18 0H0V18H18V0ZM7 14L2 9L3.41 7.59L7 11.17L14.59 3.58L16 5L7 14Z",fill:t})})},n=e=>{let{checked:t,onChange:s,checkboxClasses:n="",size:i=18,color:r="#243868"}=e;return(0,l.jsx)("div",{className:"border border-[".concat(r,"] flex items-center justify-center ").concat(n),style:{height:"".concat(i,"px"),width:"".concat(i,"px")},onClick:()=>null==s?void 0:s(!t),children:t&&(0,l.jsx)(a,{fill:r})})};var i=n},41686:function(e,t,s){var l=s(85893),a=s(65478);let n=e=>{let{height:t,width:s}=e,n=e.isLoading;return n?(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"".concat(t," ").concat(s," text-[#444] bg-[#fff] fixed inset-0 z-[1000] flex items-center justify-center text-sm text-center lg:text-xl font-600"),children:(0,l.jsxs)("div",{children:[(0,l.jsx)(a.hU,{src:"/New/Logomark.png",className:"mx-auto w-full h-auto mb-3 lg:mb-7 max-w-[3.13rem] lg:max-w-[6.25rem] animate-spin",alt:"loader"}),(0,l.jsx)("p",{children:"Largest Marketplace For Medical Supplies"})]})})}):null};t.Z=n},98301:function(e,t,s){var l=s(85893);let a=e=>{let{type:t,label:s,onClick:a=()=>{},style:n,disabled:i,extraStyle:r}=e;return(0,l.jsx)("button",{"aria-label":s,type:t,onClick:()=>a(),disabled:i,className:n||"w-full bg-[#EC6303] text-sm font-semibold text-[#fff] py-[17px] rounded-sm ".concat(r),children:s})};t.Z=a},97563:function(e,t,s){var l=s(85893);let a=e=>(0,l.jsx)("div",{className:"h-14 fixed bottom-0 left-0 right-0 flex z-[99] ".concat(e.z||"z-30"," ").concat(e.style),style:{filter:"drop-shadow(0px -4px 24px rgba(0, 0, 0, 0.1))"},children:e.children});t.Z=a},65489:function(e,t,s){s.d(t,{Z:function(){return j}});var l=s(85893),a=s(67294);let n=a.forwardRef(function({title:e,titleId:t,...s},l){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:l,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});var i=s(87782),r=s(45785),c=s(14416),d=s(95578),o=s(94920),x=s(67707),m=s(76599),h=s(98301),u=s(81679);let f=e=>{var t;let{coupon:s,selectedCoupon:n,setSelectedCoupon:i,id:r,disabled:c}=e,[d,o]=(0,a.useState)(!1),[x,m]=(0,a.useState)(Object);return(0,l.jsxs)("div",{className:"border border-solid border-[#F7F7F7] rounded p-4 mt-2 min-h-[7rem]",children:[(0,l.jsxs)("div",{className:"flex items-center mt-2",children:[(0,l.jsx)("div",{className:"min-w-[100px]",children:(0,l.jsxs)("div",{className:"border relative border-[#EC6303] border-dashed px-4 py-3 after:shadow-[#fff] ".concat(n.id===s.id&&"bg-[#EC6303] text-[#fff]"),children:[(0,l.jsx)("p",{className:"text-sm text-center text-gray-300",children:s.code}),(0,l.jsx)("div",{className:"flex mt-2 translate-y-full absolute -bottom-[.6rem] w-full left-0",children:(0,l.jsx)("button",{"aria-label":"Apply coupon",onClick:()=>{i({...s}),e.onApplyCoupon({...s})},className:"text-[#EC6303] mx-auto ".concat(c?"opacity-60 cursor-not-allowed":""),disabled:c,children:n.id===s.id?"Applied":"Apply"})})]})}),(0,l.jsxs)("div",{className:"flex flex-1 ml-4",children:[(0,l.jsx)("p",{className:"ml-2 text-[#777777] leading-relaxed",children:s.description}),(null===(t=s.voucher_terms_conditions)||void 0===t?void 0:t.length)>0&&(0,l.jsx)("button",{"aria-label":"T&C",className:"ml-1 text-xs align-middle text-blue",onClick:()=>{m(s),o(!0)},children:"T&C"})]})]}),(0,l.jsx)(u.default,{showModal:d,closeModal:()=>o(!1),data:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:null==x?void 0:x.voucher_terms_conditions}})})]},r)},p=e=>{let{showModal:t,closeModal:s,selectedCoupon:u,setSelectedCoupon:p,coupons:j,id:v,disabled:g=!1}=e,[b,N]=(0,a.useState)(""),[w,y]=(0,a.useState)([]),[C,E]=(0,a.useState)([...j]),[k,M]=(0,a.useState)([]),F=(0,c.I0)();(0,a.useEffect)(()=>{E([...j])},[j]),(0,a.useEffect)(()=>{""===b&&M([...w])},[b]);let[S,L]=(0,a.useState)(""),A=async t=>{let s=await (0,d.PD)(v,null==t?void 0:t.code),l={...u};(null==s?void 0:s.success)==!1?(p(l),(0,i.O)(o.T_,s.message,F)):s.checkout&&e.onCouponChange(s.checkout)};return(0,a.useEffect)(()=>{let t=null==e?void 0:e.items,s=null==t?void 0:t.map(e=>e.sku_id),l=(0,r.gE)(C,s);y(l),M(l)},[C,null==e?void 0:e.items]),(0,l.jsx)(m.Z,{showClose:!0,title:"Ap
1ply Coupon",showModal:t,closeModal:s,closeIcon:(0,l.jsx)(n,{className:"w-4 h-4"}),children:(0,l.jsxs)("div",{className:"p-4 text-sm font-normal",children:[(0,l.jsxs)("div",{className:"flex items-center ".concat(S?"mb-1":"mb-6"),children:[(0,l.jsx)(x.default,{style:"flex-1",value:b,placeholder:"eg. MBFREEDOM",onChange:e=>{N(e.target.value),L("")},extraInputStyle:"py-3.5"}),(0,l.jsx)(h.Z,{label:"Apply",extraStyle:"ml-4 max-w-[120px] !py-3 ".concat(g?"opacity-60 cursor-not-allowed":""),disabled:g,onClick:()=>{if(b.length>0){let e=w.find(e=>e.code.toLowerCase()===b.toLowerCase());A({...e,code:b}),s()}}})]}),S&&(0,l.jsx)("p",{className:"text-[#ff0000] text-xs mb-5",children:S}),k.map((e,t)=>(0,l.jsx)(f,{coupon:e,disabled:g,selectedCoupon:u,setSelectedCoupon:p,id:t,onApplyCoupon:e=>{A(e),s()}},t))]})})};var j=p},81679:function(e,t,s){s.r(t);var l=s(85893),a=s(76599);let n=e=>{let{showModal:t,closeModal:s,title:n,subTitle:i,descriptionData:r,data:c}=e;return(0,l.jsx)(a.Z,{showClose:!0,hBorder:!0,showModal:t,closeModal:s,title:n||"Terms & Conditions",children:(0,l.jsxs)("div",{className:"pb-5 pt-2 px-4 text-[#444] text-sm font-400 ".concat(e.extraStyle),children:[r,(0,l.jsx)("div",{className:"pt-4 pb-2 text-sm font-semibold lg:text-[1rem] lg:text-base text-[#000000]",children:i}),c]})})};t.default=n},92592:function(e,t,s){s.d(t,{Z:function(){return x}});var l=s(85893),a=s(45785),n=s(11163),i=s(65478),r=s(39073);let c=()=>{let[e,t]=(0,r.k)(!1);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(i.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."})]})]})},d=e=>{let{location:t,shippingCharges:s,actualShippingCharges:n,slashedShippingCharges:i}=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:[!!i&&(0,l.jsx)("span",{className:"line-through",children:(0,a.x6)(i)}),(0,l.jsx)("span",{className:i?"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"})]})})]})},o=e=>{let{shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:i,subtotal:r,tax:c,total:o,location:x,discount:m=0,discountCode:h,hideShipping:u=!1,creditLineBalance:f=0,codFee:p=0,rewardPointsUsed:j=0,className:v=""}=e,g=(0,n.useRouter)().pathname;return(0,l.jsxs)("div",{className:"py-4 lg:py-5 ".concat(v),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:r>0?(0,a.x6)(r):(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)(d,{location:x,shippingCharges:t,actualShippingCharges:s,slashedShippingCharges:i}),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"===g?"":"To Pay"]}),(0,l.jsx)("div",{className:"text-right text-[#444] font-[600] text-xs",children:(0,a.x6)(o)})]})]})]})};var x=o},96205:function(e,t,s){var l=s(85893),a=s(65478);let n=e=>{let{current:t,addressOnClick:s=()=>null,paymentOnClick:n=()=>null}=e;return(0,l.jsxs)("div",{className:"bg-[#fff] container flex text-sm font-500 p-0",children:[(0,l.jsxs)("div",{className:"flex gap-3 basis-full px-3 py-4 justify-center items-center ".concat("Address"===t?"border-b-[3px] border-[#24396B] text-[#24396B]":"text-[#8F8F8F]"),onClick:s,children:[(0,l.jsx)(a.hU,{alt:"location",name:"Address"===t?"loc.svg":"loc-1.svg",className:"w-auto"}),(0,l.jsx)("p",{children:"Address"})]}),(0,l.jsxs)("div",{className:"flex gap-3 basis-full px-3 py-4 justify-center items-center ".concat("Payment"===t?"border-b-[3px] border-[#24396B] text-[#24396B]":"text-[#8F8F8F]"),onClick:n,children:[(0,l.jsx)("h2",{children:"(AED)"}),(0,l.jsx)("p",{children:"Payment"})]})]})};t.Z=n},11347:function(e,t,s){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:"
1currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},s),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M5.25 2.25a3 3 0 00-3 3v4.318a3 3 0 00.879 2.121l9.58 9.581c.92.92 2.39 1.186 3.548.428a18.849 18.849 0 005.441-5.44c.758-1.16.492-2.629-.428-3.548l-9.58-9.581a3 3 0 00-2.122-.879H5.25zM6.375 7.5a1.125 1.125 0 100-2.25 1.125 1.125 0 000 2.25z",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.