PageSourceSearch

https://cornea.clinic/_next/static/chunks/276t-7xd9pw81.js

js cornea.clinic collected 2026-10-03 18:19:38 UTC 4,296 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107916,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(522016),r=e.i(475254);let n=(0,r.default)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),l=(0,r.default)("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);var o=e.i(65647);let s={cairo:o.CAIRO_LOCATION_ID,erbil:o.ERBIL_LOCATION_ID},c={ar:{label:"أقرب موعد كشف",loading:"جارٍ التحميل…",error:"تواصل معنا لمعرفة المواعيد المتاحة",none:"لا توجد مواعيد شاغرة هذا الشهر، اضغط لعرض المواعيد",visiting:"زيارات دورية، تواصل معنا لمعرفة موعد الزيارة القادمة",visitingLabel:"المواعيد"},en:{label:"Next available appointment",loading:"Loading…",error:"Contact us for available appointments",none:"No openings this month, click to see live availability",visiting:"Visiting clinic, contact us for the next visit schedule",visitingLabel:"Ap
1pointments"}};function d(e){return e<10?`0${e}`:String(e)}function h(e){return`${e.getFullYear()}-${d(e.getMonth()+1)}-${d(e.getDate())}`}function u(e){let{href:a,children:r}=e;return(0,t.jsx)(i.default,{href:a,className:"flex min-h-11 items-center gap-2 text-xs rounded-lg px-3 py-2 mb-4 border transition hover:bg-[rgba(0,219,204,0.12)] hover:border-[#00DBCC]",style:{borderColor:"#00DBCC55",background:"rgba(0, 219, 204, 0.06)"},children:r})}function m(e){let{locale:i,bookHref:r}=e,[l,m]=(0,a.useState)(null),[f,g]=(0,a.useState)(!0),[p,x]=(0,a.useState)(!1),b=c[i];return(0,a.useEffect)(()=>{let e=new Date,t=new Date(e);t.setDate(t.getDate()+30);let a=new URLSearchParams({service:String(o.SERVICE_CONSULTATION),location:String(s.cairo),employee:String(o.EMPLOYEE_BY_LOCATION[s.cairo]),calendar_start_date:h(e),calendar_end_date:h(t)});fetch(`/api/trafft/available-times?${a}`).then(e=>e.json()).then(e=>{let t=e?.data??e,a=null;if(Array.isArray(t))for(let e of[...t].sort((e,t)=>String(e?.date??"").localeCompare(String(t?.date??"")))){let t=e?.timeSlots;if(e?.date&&Array.isArray(t)&&t.length>0){let i=t[0],r="string"==typeof i?i:i?.time;if(r){a={date:e.date,time:r};break}}}m(a)}).catch(()=>x(!0)).finally(()=>g(!1))},[]),(0,t.jsxs)(u,{href:r,children:[(0,t.jsx)(n,{className:"w-3.5 h-3.5 flex-shrink-0",style:{color:"#00DBCC"}}),(0,t.jsxs)("span",{className:"text-gray-600 dark:text-white/65",children:[b.label,":"," ",(0,t.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:f?b.loading:l?function(e,t,a){let[i,r,n]=e.split("-").map(Number),l=new Date(i,r-1,n).toLocaleDateString("ar"===a?"ar-EG":"en-US",{weekday:"long",day:"numeric",month:"long"}),[o,s]=t.split(":").map(Number);return`${l}-${o%12||12}:${d(s)} ${"ar"===a?o>=12?"مساءً":"صباحاً":o>=12?"PM":"AM"}`}(l.date,l.time,i):p?b.error:b.none})]})]})}function f(e){let{locale:a,bookHref:i}=e,r=c[a];return(0,t.jsxs)(u,{href:i,children:[(0,t.jsx)(l,{className:"w-3.5 h-3.5 flex-shrink-0",style:{color:"#00DBCC"}}),(0,t.jsxs)("span",{className:"text-gray-600 dark:text-white/65",children:[r.visitingLabel,":"," ",(0,t.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:r.visiting})]})]})}e.s(["default",0,function(e){let{locationSlug:a,locale:i="ar"}=e,r="en"===i?"/en/book":"/book";return"cairo"===a?(0,t.jsx)(m,{locale:i,bookHref:r}):(0,t.jsx)(f,{locale:i,bookHref:r})}],107916)},976113,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function(e){let{children:a,delay:i=0,duration:r=.3,animation:n="fade-up",className:l="",style:o={},immediate:s=!1}=e;return s?(0,t.jsx)("div",{className:l,style:o,children:a}):(0,t.jsx)("div",{className:`motion-animate motion-${n} ${l}`.trim(),style:{animationDuration:`${r}s`,animationDelay:`${i}s`,...o},children: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.