PageSourceSearch

https://rigmeds.com/_next/static/chunks/5202-dab1257a0a861046.js

js rigmeds.com collected 2026-09-24 14:18:35 UTC 22,406 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5202],{57436:function(e,t){t.Z={src:"/_next/static/media/rx.6302b5cf.png",height:204,width:204,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEX/0KX6x57msYz2w5v5xp5MaXG2emHPl3e2e2H9y6GgYk2eYEvsuJLgqoc6lcaYAAAADHRSTlP++imz8wD+/viz/v4GaCbTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANklEQVQImQXBiQHAMAgDsbOBfIX9161E+Urhwtkt0gRnbQiS9U0jxJ7XJAFah8BJa9KUQ7quHybdARLQkVXpAAAAAElFTkSuQmCC"}},9450:function(e,t,n){var r=n(85893);n(67294);t.Z=function(e){var t=e.width,n=void 0===t?231.91:t,a=e.height,i=void 0===a?292:a,l=e.className;return(0,r.jsxs)("svg",{width:n,height:i,className:l,viewBox:"0 0 231.91 292",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"linear-gradient",x1:"1",y1:"0.439",x2:"0.369",y2:"1",gradientUnits:"objectBoundingBox",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#029477"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#009e7f"})]})}),(0,r.jsxs)("g",{id:"no_cart_in_bag_2","data-name":"no cart in bag 2",transform:"translate(-1388 -351)",children:[(0,r.jsx)("ellipse",{id:"Ellipse_2873","data-name":"Ellipse 2873",cx:"115.955",cy:"27.366",rx:"115.955",ry:"27.366",transform:"translate(1388 588.268)",fill:"#ddd",opacity:"0.25"}),(0,r.jsx)("path",{id:"Path_18691","data-name":"Path 18691",d:"M29.632,0H170.368A29.828,29.828,0,0,1,200,30.021V209.979A29.828,29.828,0,0,1,170.368,240H29.632A29.828,29.828,0,0,1,0,209.979V30.021A29.828,29.828,0,0,1,29.632,0Z",transform:"translate(1403 381)",fill:"#009e7f"}),(0,r.jsx)("path",{id:"Rectangle_1852","data-name":"Rectangle 1852",d:"M30,0H170a30,30,0,0,1,30,30v0a30,30,0,0,1-30,30H12.857A12.857,12.857,0,0,1,0,47.143V30A30,30,0,0,1,30,0Z",transform:"translate(1403 381)",fill:"#006854"}),(0,r.jsx)("path",{id:"Rectangle_1853","data-name":"Rectangle 1853",d:"M42,0H158a42,42,0,0,1,42,42v0a18,18,0,0,1-18,18H18A18,18,0,0,1,0,42v0A42,42,0,0,1,42,0Z",transform:"translate(1403 381)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18685","data-name":"Path 18685",d:"M446.31,246.056a30,30,0,1,1,30-30A30.034,30.034,0,0,1,446.31,246.056Zm0-53.294A23.3,23.3,0,1,0,469.9,216.056,23.471,23.471,0,0,0,446.31,192.762Z",transform:"translate(1056.69 164.944)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18686","data-name":"Path 18686",d:"M446.31,375.181a30,30,0,1,1,30-30A30.034,30.034,0,0,1,446.31,375.181Zm0-53.294A23.3,23.3,0,1,0,469.9,345.181,23.471,23.471,0,0,0,446.31,321.887Z",transform:"translate(1057.793 95.684)",fill:"#009e7f"}),(0,r.jsx)("circle",{id:"Ellipse_2874","data-name":"Ellipse 2874",cx:"28.689",cy:"28.689",r:"28.689",transform:"translate(1473.823 511.046)",fill:"#006854"}),(0,r.jsx)("circle",{id:"Ellipse_2875","data-name":"Ellipse 2875",cx:"15.046",cy:"15.046",r:"15.046",transform:"translate(1481.401 547.854) rotate(-45)",fill:"#009e7f"}),(0,r.jsx)("path",{id:"Path_18687","data-name":"Path 18687",d:"M399.71,531.27a71.755,71.755,0,0,1,12.65-13.6c3.4-2.863-1.5-7.726-4.882-4.882a78.392,78.392,0,0,0-13.73,15c-2.56,3.644,3.424,7.1,5.962,3.485Z",transform:"translate(1060.579 -35.703)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18688","data-name":"Path 18688",d:"M412.913,527.786a78.419,78.419,0,0,0-13.73-15c-3.38-2.843-8.289,2.017-4.882,4.882a71.785,71.785,0,0,1,12.65,13.6c2.535,3.609,8.525.162,5.962-3.485Z",transform:"translate(1060.566 -35.704)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18689","data-name":"Path 18689",d:"M583.278,527.786a78.417,78.417,0,0,0-13.73-15c-3.38-2.843-8.289,2.017-4.882,4.882a71.768,71.768,0,0,1,12.65,13.6c2.535,3.609,8.525.162,5.962-3.485Z",transform:"translate(970.304 -35.704)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18690","data-name":"Path 18690",d:"M570.075,531.27a71.77,71.77,0,0,1,12.65-13.6c3.4-2.863-1.5-7.726-4.882-4.882a78.407,78.407,0,0,0-13.73,15c-2.56,3.644,3.424,7.1,5.962,3.485Z",transform:"translate(970.318 -35.703)",fill:"#006854"}),(0,r.jsx)("path",{id:"Path_18692","data-name":"Path 18692",d:"M301.243,287.464a19.115,19.115,0,0,1,8.071,9.077,19.637,19.637,0,0,1,1.6,7.88v26.085a19.349,19.349,0,0,1-9.672,16.957c-10.048-6.858-16.544-17.742-16.544-30S291.2,294.322,301.243,287.464Z",transform:"translate(1292.301 101.536)",fill:"url(#linear-gradient)"}),(0,r.jsx)("path",{id:"Path_18693","data-name":"Path 18693",d:"M294.371,287.464a19.115,19.115,0,0,0-8.071,9.077,19.637,19.637,0,0,0-1.6,7.88v26.085a19.349,19.349,0,0,0,9.672,16.95
17c10.048-6.858,16.544-17.742,16.544-30S304.419,294.322,294.371,287.464Z",transform:"translate(1118.301 101.536)",fill:"url(#linear-gradient)"})]})]})}},19561:function(e,t,n){var r=n(85893),a=(n(67294),n(96872));t.Z=function(e){var t=e.page;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"hidden sm:block",children:(0,r.jsxs)("ol",{className:"inline-flex text-white rounded-sm breadcrumb-style-05",children:[(0,r.jsx)("li",{className:"flex pr-[1.25rem] bg-accent",children:(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)(a.Z,{href:"/",className:"flex",children:[(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor","data-slot":"icon","aria-hidden":"true",className:"w-[2.25rem] h-[1.25rem]",children:(0,r.jsx)("path",{d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z",clipRule:"evenodd",fillRule:"evenodd"})}),(0,r.jsx)("span",{className:"font-semibold ml-5",children:"Home"})]})})}),(0,r.jsx)("li",{className:"flex pr-[1.25rem] bg-accent relative",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{viewBox:"0 0 24 44",fill:"currentColor",preserveAspectRatio:"none","aria-hidden":"true",className:"w-[1.5rem]",children:(0,r.jsx)("path",{d:"M.293 0l22 22-22 22h1.414l22-22-22-22H.293z"})}),(0,r.jsxs)(a.Z,{href:"/cart",className:"flex font-semibold ml-5",children:[(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"w-6 h-6",children:[(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 3h18l-1.5 9h-15L3 3z"}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 14h16m-4 0a4 4 0 11-8 0m4 0H8"})]}),(0,r.jsx)("span",{className:"ml-5",children:"Cart"})]})]})}),(0,r.jsx)("li",{className:"flex  pr-[1.5rem] ".concat("cart"==t?"relative lastChild bg-slate-600":"bg-accent"),children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{viewBox:"0 0 24 44",fill:"currentColor",preserveAspectRatio:"none","aria-hidden":"true",className:"w-[1.5rem]",children:(0,r.jsx)("path",{d:"M.293 0l22 22-22 22h1.414l22-22-22-22H.293z"})}),(0,r.jsxs)(a.Z,{href:"/checkout",className:"flex font-semibold ml-5",children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M22 4h-20c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-12c0-1.104-.896-2-2-2zm0 13.5c0 .276-.224.5-.5.5h-19c-.276 0-.5-.224-.5-.5v-6.5h20v6.5zm0-9.5h-20v-1.5c0-.276.224-.5.5-.5h19c.276 0 .5.224.5.5v1.5zm-9 6h-9v-1h9v1zm-3 2h-6v-1h6v1zm10-2h-3v-1h3v1z"})}),(0,r.jsx)("span",{className:"ml-4",children:"Checkout"})]})]})})]})})})}},89874:function(e,t,n){n.d(t,{a9:function(){return r},Fi:function(){return a},LX:function(){return i},Vc:function(){return l},Bn:function(){return s}});var r=30,a=15,i=30,l=30,s=1e3},50838:function(e,t,n){n.d(t,{W4:function(){return x},Ad:function(){return p},$I:function(){return g}});var r=n(34051),a=n.n(r),i=n(88767),l=n(10505),s=n(39128),o=(n(16125),n(67294));function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,a,i,l){try{var s=e[i](l),o=s.value}catch(c){return void n(c)}s.done?t(o):Promise.resolve(o).then(r,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function l(e){d(i,r,a,l,s,"next",e)}function s(e){d(i,r,a,l,s,"throw",e)}l(void 0)}))}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function h(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return v.apply(this,arguments)}function v(){return(v=u(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.Z.section.cartSection(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){var t=e.id,n=(0,i.useQuery)([s.P.SECTION_PRODUCTS,t],(function(){return l.Z.section.getSectionProduct(t,12)}));return{products:n.data,isLoading:n.isLoading,error:n.error}}function g(e){var t=(0,o.useState)([]),n=t[0],r=t[1],i=(0,o.useState)(1),s=i[0],c=i[1],d=(0,o.useState)(!0),f=d[0],x=d[1],v=(0,o.useState)(!1),p=v[0],g=v[1],j=(0,o.useState)(null),b=j[0],y=j[1],w=(0,o.useRef)(0);return{sections:n,loadMore:(0,o.useCallback)(u(a().mark((function t(){var n,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((n=Date.now())-w.current<500)){t.next=3;break}return t.abrupt("return");case 3:if(!p&&f){t.next=5;break}return t.abrupt("return");case 5:return w.current=n,g(!0),y(null),t.prev=8,t.next=11,l.Z.section.homePageSection(m({},e,{page:s}));case 11:(i=t.sent).data&&i.data.length>0?(r((function(e){return h(e).concat(h(i.data))})),c((function(e){return e+1})),x(i.current_page<i.last_page)):x(!1),t.next=20;break;case 15:t.prev=15,t.t0=t.catch(8),console.error("Error loading sections:",t.t0),y((a=t.t0,(null!=(o=Error)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](a):a instanceof o)?t.t0:new Error("Unknown error"))),x(!1);case 20:return t.prev=20,g(!1),t.finish(20);case 23:case"end":return t.stop()}var a,o}),t,null,[[8,15,20,23]])}))),[s,p,f,e]),hasMore:f,isLoading:p,error:b}}},56455:function(e,t,n){n.d(t,{cA:function(){return l},os:function(){return s}});var r=n(88767),a=n(10505),i=n(39128);function l(e){var t=(0,r.useQuery)([i.P.TYPES,e],(function(e){var t=e.queryKey;return a.Z.types.all(Object.assign({},t[1]))}));return{types:t.data,isLoading:t.isLoading,error:t.error}}function s(e){var t=(0,r.useQuery)([i.P.TYPES,e],(function(){return a.Z.types.get(e)}),{enabled:Boolean(e)});return{type:t.data,isLoading:t.isLoading,error:t.error}}},87832:function(e,t,n){n.d(t,{A:function(){return h}});var r=n(85893),a=n(29076),i=n(76151),l=n(76775),s=n(20868),o=n(52140),c=n(96872),d=n(63879),u=n(3119),f=function(){var e,t,n,a,i,l=(0,s.$G)("common").t,f=(0,u.rV)().settings;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"w-full bg-light",children:[(0,r.jsx)("div",{className:"w-full text-center pb-5 pt-5 border-b",children:(0,r.jsx)("div",{className:"w-full flex gap-4 justify-center flex-wrap items-center ",children:null===o.U||void 0===o.U||null===(e=o.U.footer)||void 0===e||null===(t=e.payment_methods)||void 0===t?void 0:t.map((function(e,t){return(0,r.jsx)("div",{children:(0,r.jsx)(d.E,{src:e.img,className:"footer_payment",alt:null===e||void 0===e?void 0:e.name,width:70,height:42.25,loading:"lazy"})},"".concat(e.url,"-").concat(t))}))})}),(0,r.jsx)("div",{className:"w-full text-center pb-5 pt-5",children:(0,r.jsxs)("span",{className:"text-md text-heading",children:["\xa9 ",l("Copyright")," ",(new Date).getFullYear()," ",(0,r.jsx)(c.Z,{className:"font-bold text-red text-heading transition-colors hover:text-accent",href:null===o.U||void 0===o.U||null===(n=o.U.footer)||void 0===n?void 0:n.copyright.href,children:null===o.U||void 0===o.U||null===(a=o.U.footer)||void 0===a||null===(i=a.copyright)||void 0===i?void 0:i.name})," ",l("All rights reserved")]})}),(null===f||void 0===f?void 0:f.footerSiteSubtitle)&&(0,r.jsx)("div",{className:"w-full text-center pb-5 pt-5 border-t px-5 md:px-10",children:(0,r.jsx)("span",{className:"text-md text-heading",children:null===f||void 0===f?void 0:f.footerSiteSubtitle})})]})})};function m(e){var t=e.children;(0,a.Z)().layout;return(0,r.jsxs)("div",{className:"flex min-h-screen flex-col bg-gray-100 transition-colors duration-150",children:[(0,r.jsx)(i.Z,{className:""}),t,(0,r.jsx)(f,{}),(0,r.jsx)(l.Z,{})]})}var h=function(e){return(0,r.jsx)(m,{children:e})}},29076:function(e,t,n){var r=n(89874),a=n(56455),i=n(11163);t.Z=function(){var e,t,n=(0,a.cA)({limit:r.Fi}),l=(0,i.useRouter)();if(/^\/$|^\/\?(.*)/.test(null===l||void 0===l?void 0:l.asPath)){var s,o,c,d,u,f=null!==(d=null===n||void 0===n||null===(s=n.types)||void 0===s?void 0:s.find((function(e){var t;return null===e||void 0===e||null===(t=e.settings)||void 0===t?void 0:t.isHome})))&&void 0!==d?d:null===n||void 0===n||null===(o=n.types)||void 0===o?void 0:o[0];return{layout:null!==(u=null===f||void 0===f||null===(c=f.settings)||void 0===c?void 0:c.layoutType)&&void 0!==u?u:"default",page:f}}var m,h=null===n||void 0===n||null===(e=n.types)||void 0===e?void 0:e.find((function(e){return l.asPath.includes(e.slug)}));return{layout:null!==(m=null===h||void 0===h||null===(t=h.settings)||void 0===t?void 0:t.layoutType)&&void 0!==m?m:"default",page:h}}},95202:function(e,t,n){n.r(t),n.d(t,{CartPage:function(){return U}});var r=n(34051),a=n.n(r),i=n(85893),l=n(20868),s=n(11163),o=n(57592),c=n(9450),d=n(87994),u=n(10599),f=n(91131),m=n(5152),h=n(14685),x=n(96872),v=n(67294),p=n(60765),g=n(74354),j=n(92088),b=n(50838),y=n(80581),w=n(63879),A=n(57436),N=n(994),_=n(19561),P=n(37738),S=n(87832);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t,n,r,a,i,l){try{var s=e[i](l),o=s.value}catch(c){return void n(c)}s.done?t(o):Promise.resolve(o).then(r,a)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],l=!0,s=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);l=!0);}catch(o){s=!0,a=o}finally{try{l||null==n.return||n.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var M=(0,m.default)((function(){return n.e(9873).then(n.bind(n,19873))}),{loadableGenerated:{webpack:function(){return[19873]}},ssr:!1}),C=(0,m.default)((function(){return Promise.all([n.e(8417),n.e(8981)]).then(n.bind(n,76270))}),{loadableGenerated:{webpack:function(){return[76270]}},ssr:!1}),O=(0,m.default)((function(){return n.e(854).then(n.bind(n,90854))}),{loadableGenerated:{webpack:function(){return[90854]}},ssr:!1}),U=function(){var e,t,n=(0,l.$G)("common").t,r=E((0,f.KO)(p.Jb),1)[0],m=E((0,f.KO)(p.yw),1)[0],S=E((0,f.KO)(p.y9),2)[1],k=E((0,f.KO)(p.$L),1)[0],U=(0,P.aF)(),R=(U.me,U.isAuthorized,(0,y.N)()),L=R.items,H=R.isLoading,I=!1;null===L||void 0===L||L.map((function(e){"DRUG"===(null===e||void 0===e?void 0:e.medicine_type)&&(I=!0)})),(0,v.useEffect)((function(){I&&S(),K()}),[S,I]);var T=(0,v.useState)(),B=T[0],z=T[1];(0,s.useRouter)();var G=(0,g.os)({from:"cart"}).products,D=(0,v.useState)(0)[0],F=(0,v.useState)([]),Q=F[0],X=F[1],K=function(){var e,t=(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.W4)({active:!0,limit:3,page:0==D?1:D+1});case 2:t=e.sent,X(t);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function l(e){Z(i,r,a,l,s,"next",e)}function s(e){Z(i,r,a,l,s,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}(),V=null===L||void 0===L?void 0:L.filter((function(e){var t;return!(null===r||void 0===r||null===(t=r.unavailable_products)||void 0===t?void 0:t.includes(e.id))})),Y=(0,j.tf)(V);r&&(0,j.eA)({totalAmount:Y,tax:null===r||void 0===r?void 0:r.total_tax,shipping_charge:null===r||void 0===r?void 0:r.shipping_charge,packaging_charge:null===r||void 0===r?void 0:r.packaging_charge,delivery_charge:null===r||void 0===r?void 0:r.delivery_charge},Number(m));var $=L.some((function(e){return"DRUG"==(null===e||void 0===e?void 0:e.medicine_type)})),q=L.some((function(e){return"OTC"==(null===e||void 0===e?void 0:e.medicine_type)})),J=L.filter((function(e){if("DRUG"==(null===e||void 0===e?void 0:e.medicine_type))return e})),W=L.filter((function(e){if("OTC"==(null===e||void 0===e?void 0:e.medicine_type))return e}));return(0,i.jsxs)(i.Fragment,{children:[H&&(0,i.jsx)("div",{className:"w-full bg-gray-100",children:(0,i.jsxs)("div",{className:"mx-auto justify-center flex w-full md:space-x-5 max-w-[1320px] flex-col py-10 px-5 md:flex-row",children:[(0,i.jsx)("div",{className:"w-full md:w-2/3 lg:w-2/3 bg-light p-5",children:(0,N.Z)(12,(function(e){return(0,i.jsx)("div",{children:(0,i.jsx)(M,{position:"left"})},"cart-shimmer-".concat(e))}))}),(0,i.jsx)("div",{className:"w-full md:w-1/3 lg:w-1/3 bg-light p-5",children:(0,i.jsx)(M,{position:"right"})})]})}),(0,i.jsxs)("div",{className:"w-full bg-gray-100 py-8",children:[(B||(null===k||void 0===k?void 0:k.status))&&(0,i.jsx)("div",{className:"mx-auto justify-start flex w-full md:space-x-5 max-w-[1320px] flex-col px-5 md:flex-row !mb-4",children:(0,i.jsx)(_.Z,{page:"cart"})}),(0,i.jsxs)("div",{className:"mx-auto justify-center flex w-full md:space-x-5 max-w-[1320px] flex-col px-5 md:flex-row",children:[(0,i.jsxs)("div",{className:"w-full md:w-2/3 lg:w-2/3",children:[$&&(0,i.jsxs)("div",{className:"mb-8 w-full bg-light py-3 px-3 md:mb-5 md:p-4 ",children:[(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsxs)("h3",{className:"md:text-2xl text-xl text-accent",children:[(0,i.jsx)("small",{children:"Items Requiring Prescription"}),"(",null===J||void 0===J?void 0:J.length,")"]}),(0,i.jsxs)("div",{className:"text-md flex items-center text-body",children:[(0,i.jsx)("span",{className:"mr-2 rounded-full h-[20px] w-[20px] min-w-[20px] inline-block relative",children:(0,i.jsx)(w.E,{src:A.Z,layout:"fill"})}),"Government regulations require a prescription"]})]}),(0,i.jsx)("div",{className:"flex-grow",children:(null===J||void 0===J?void 0:J.length)>0&&(null===J||void 0===J?void 0:J.map((function(e){return(0,i.jsx)(d.Z,{item:e},"item-".concat(e.id,"-").concat(e.variation_option_id))}
1)))})]}),q&&(0,i.jsxs)("div",{className:"mb-8 w-full bg-light py-3 px-3 md:mb-5 md:p-4 ",children:[(0,i.jsxs)("h3",{className:"md:text-2xl text-xl text-accent",children:[(0,i.jsx)("small",{children:"Items NOT Requiring Prescription"}),"(",null===W||void 0===W?void 0:W.length,")"]}),(0,i.jsx)("div",{className:"flex-grow",children:(null===W||void 0===W?void 0:W.length)>0&&(null===W||void 0===W?void 0:W.map((function(e){return(0,i.jsx)(d.Z,{item:e},"item-".concat(e.id,"-").concat(e.variation_option_id))})))})]}),(null===L||void 0===L?void 0:L.length)<=0&&!H&&(0,i.jsxs)("div",{className:"mb-8 w-full bg-light py-3 px-3 md:mb-5 md:p-4 ",children:[(0,i.jsx)(o.E.div,{layout:!0,initial:"from",animate:"to",exit:"from",variants:(0,u.I)(.25),className:"flex h-full border-b border-solid border-border-200 items-center justify-center border-opacity-75 py-4 px-4 text-sm sm:px-6",children:(0,i.jsx)(c.Z,{width:140,height:176})}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,i.jsx)("h4",{className:"mt-6 mb-4 text-base",children:n("Cart is empty.")}),(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)(x.Z,{href:"/",children:(0,i.jsx)(h.Z,{className:"rtl:mr-auto",children:n("Add Medicine")})})})]})]}),(0,i.jsxs)("div",{className:"hidden md:block w-full bg-light mb-5 px-3 pt-3",children:[(0,i.jsx)("h1",{className:"md:text-2xl text-xl text-heading text-red",children:"Most Selling Products"}),(0,i.jsx)(C,{products:G})]}),null===Q||void 0===Q||null===(e=Q.data)||void 0===e?void 0:e.map((function(e,t){return(0,i.jsx)(v.Fragment,{children:(0,i.jsxs)("div",{className:"hidden md:block w-full bg-light mb-5 px-3 pt-3",children:[(0,i.jsx)("h3",{className:"md:text-2xl text-xl text-heading text-red",children:null===e||void 0===e?void 0:e.title}),(0,i.jsx)(C,{products:null===e||void 0===e?void 0:e.products})]},"cart-section-".concat(t))},"cart-section".concat(t))}))]}),(null===L||void 0===L?void 0:L.length)>0&&(0,i.jsxs)("div",{className:"w-full md:w-1/3 lg:w-1/3",children:[(0,i.jsx)("div",{className:"md:sticky md:top-[52px] lg:top-[120px] bg-light p-5",children:(0,i.jsx)(O,{hideTitle:!0,prescriptionStatus:I,setGrandTotal:z})}),(0,i.jsxs)("div",{className:"block md:hidden w-full bg-light mt-5 mb-5 px-3 pt-3",children:[(0,i.jsx)("h1",{className:"md:text-2xl text-xl text-heading text-red",children:"Most Selling Products"}),(0,i.jsx)(C,{products:G})]}),null===Q||void 0===Q||null===(t=Q.data)||void 0===t?void 0:t.map((function(e,t){return(0,i.jsx)(v.Fragment,{children:(0,i.jsxs)("div",{className:"block md:hidden w-full bg-light mb-5 px-3 pt-3",children:[(0,i.jsx)("h3",{className:"md:text-2xl text-xl text-heading text-red",children:null===e||void 0===e?void 0:e.title}),(0,i.jsx)(C,{products:null===e||void 0===e?void 0:e.products})]},"cart-section-".concat(t))},"cart-section-".concat(t))}))]})]})]})]})};U.getLayout=S.A,t.default=U}}]);

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.