PageSourceSearch

https://rigmeds.com/_next/static/chunks/7962.b4609c842434b69b.js

js rigmeds.com collected 2026-09-24 14:21:40 UTC 3,893 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7962],{67962:function(e,r,n){n.r(r),n.d(r,{ScheduleGrid:function(){return x},default:function(){return p}});var t=n(85893),l=n(56727),i=n(91131),d=n(94184),o=n.n(d),a=function(e){var r,n=e.checked,l=e.schedule;return(0,t.jsxs)("div",{className:o()("relative p-4 rounded border cursor-pointer group hover:border-accent flex items-center",{"border-accent shadow-sm":n,"bg-gray-100 border-transparent":!n}),children:[(0,t.jsx)("input",{type:"radio",checked:n,className:""}),(0,t.jsxs)("div",{className:"ml-2",children:[(0,t.jsx)("span",{className:"text-sm text-heading font-semibold block mb-2",children:null===l||void 0===l||null===(r=l.day)||void 0===r?void 0:r.name}),(0,t.jsxs)("span",{className:"text-sm text-heading block",children:[null===l||void 0===l?void 0:l.startTime," - ",null===l||void 0===l?void 0:l.endTime]})]})]})},s=n(60765),c=n(67294),u=n(20868),v=n(27484),m=n.n(v);function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,l,i=[],d=!0,o=!1;try{for(n=n.call(e);!(d=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);d=!0);}catch(a){o=!0,l=a}finally{try{d||null==n.return||n.return()}finally{if(o)throw l}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return h(e,r);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 h(e,r)}(e,r)||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 x=function(e){var r=e.label,n=e.className,d=(e.count,e.schedules),o=e.checkAddress,v=(0,u.$G)("common").t,h=f((0,i.KO)(s.Gh),2),x=h[0],p=h[1];return(0,c.useEffect)((function(){var e=!0;(null===d||void 0===d?void 0:d.length)&&(null===d||void 0===d||d.map((function(r,n){var t=!!(null===r||void 0===r?void 0:r.startTime)&&(null===r||void 0===r?void 0:r.startTime)<m()().add(1,"hours").format("HH:mm");!t&&e&&p(r),e=t})))}),[d]),(0,t.jsxs)("div",{className:n,children:[(0,t.jsx)("div",{className:"mb-5 flex items-center justify-between md:mb-8",children:(0,t.jsx)("div",{className:"flex items-center space-x-3 rtl:space-x-reverse md:space-x-4",children:(0,t.jsx)("p",{className:"text-lg capitalize text-heading lg:text-xl",children:r})})}),d&&(null===d||void 0===d?void 0:d.length)?(0,t.jsxs)(l.Ee,{value:x,onChange:p,disabled:!o,children:[(0,t.jsx)(l.Ee.Label,{className:"sr-only",children:r}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-2",children:null===d||void 0===d?void 0:d.map((function(e,r){var n,i=!(!(null===e||void 0===e?void 0:e.startTime)||!(null===e||void 0===e?void 0:e.endTime))&&("today"==(null===e||void 0===e||null===(n=e.day)||void 0===n?void 0:n.value)&&(m()().format("HH:mm")<(null===e||void 0===e?void 0:e.startTime)||m()().format("HH:mm")>(null===e||void 0===e?void 0:e.endTime)));return(0,t.jsx)(l.Ee.Option,{value:e,disabled:i,children:function(r){var n,l;r.checked;return(0,t.jsx)(a,{checked:(null===x||void 0===x||null===(n=x.day)||void 0===n?void 0:n.name)===(null===e||void 0===e||null===(l=e.day)||void 0===l?void 0:l.name)&&(null===x||void 0===x?void 0:x.endTime)===(null===e||void 0===e?void 0:e.endTime),schedule:e})}},r)}))})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3",children:(0,t.jsx)("span",{className:"relative rounded border border-border-200 bg-gray-100 px-5 py-6 text-center text-base",children:v("text-no-delivery-time-found")})})]})},p=x}}]);

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.