1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{5026:function(e,t,s){Promise.resolve().then(s.t.bind(s,6857,23)),Promise.resolve().then(s.bind(s,7770)),Promise.resolve().then(s.bind(s,8502)),Promise.resolve().then(s.bind(s,1514)),Promise.resolve().then(s.bind(s,9659)),Promise.resolve().then(s.bind(s,8759)),Promise.resolve().then(s.t.bind(s,104,23))},8502:function(e,t,s){"use strict";var r=s(7437),a=s(6463);t.default=function(e){let{children:t}=e,s=(0,a.usePathname)();return"/login"==s||"/password-forget"==s||"/password-reset"==s||"/sign-up"==s?null:(0,r.jsx)("div",{children:t})}},1514:function(e,t,s){"use strict";s.d(t,{default:function(){return o}});var r=s(7437),a=s(7138),i=s(2265),n=s(1942),l=s(3580);function c(e){let{title:t,links:s}=e;return(0,r.jsxs)("ul",{className:"space-y-1 text-center sm:text-left",children:[(0,r.jsx)("li",{className:"font-medium text-[22px] md:text-lg mb-1 text-cyan-300 sm:text-white",children:t}),s.map(e=>{let[t,s]=e;return(0,r.jsx)("li",{children:(0,r.jsx)(a.default,{href:s,className:"text-[14px] sm:text-base font-normal text-white hover:text-customBlue",children:t})},t)})]})}function o(){let[e,t]=(0,i.useState)(""),[s,o]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),m=async s=>{if(s.preventDefault(),!e){l.Am.error("Please enter your email address");return}o(!0);try{let s=await fetch("https://qjcsu9oco5.execute-api.ap-south-1.amazonaws.com/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),r=await s.json();s.ok?(l.Am.success(r.message||"Successfully subscribed!"),u(!0),t("")):l.Am.error(r.message||"Email Already Subscribed")}catch(e){l.Am.error("Network error. Please try again.")}finally{o(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("footer",{className:"relative isolate text-white font-montserrat",style:{backgroundImage:"url('https://s3.ap-south-1.amazonaws.com/jkare.data/footer+image.jpeg')",backgroundSize:"cover",backgroundPosition:"center"},children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 left-0 w-full h-20 sm:h-32 bg-gradient-to-b from-white/95 to-transparent z-20"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#461f4d] via-[#632a6d]/80 to-white"}),(0,r.jsxs)("div",{className:"relative z-30 mx-auto max-w-7xl px-4 sm:px-6 py-10 space-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 justify-between",children:[(0,r.jsx)("div",{className:"text-center lg:text-left max-w-lg mx-auto lg:mx-0",children:(0,r.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/jkare.data/jkarelogo.png",alt:"JKARE logo",className:"w-36 sm:w-36 mx-auto lg:mx-0 mb-2"})}),(0,r.jsxs)("div",{className:"w-full max-w-[420px] mx-auto lg:mx-0",children:[(0,r.jsx)("h4",{className:"text-[14px] sm:text-base font-semibold mb-2 text-center lg:text-left text-black",children:"SIGNUP FOR NEWSLETTER"}),(0,r.jsxs)("form",{onSubmit:m,className:"flex overflow-hidden rounded-full shadow-lg",children:[(0,r.jsx)("input",{type:"email",required:!0,value:e,onChange:e=>t(e.target.value),placeholder:"Enter Your Email ID",disabled:s||d,className:"flex-1 px-4 py-2 text-gray-900 placeholder-gray-400 text-sm focus:outline-none disabled:bg-gray-200 disabled:cursor-not-allowed"}),(0,r.jsx)("button",{type:"submit",disabled:s||d,className:"bg-pink-500 text-white px-6 py-2 text-sm font-semibold hover:bg-pink-600 transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed flex items-center gap-2",children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.fCD,{className:"animate-spin",size:14}),"Subscribing..."]}):d?"Subscribed!":"Subscribe"})]})]})]}),(0,r.jsx)("hr",{className:"border-white/20"}),(0,r.jsxs)("div",{className:"grid md:grid-cols-3 gap-10 sm:gap-8 justify-items-center sm:justify-items-start text-[13px] sm:text-sm",children:[(0,r.jsx)(c,{title:"Quick Links",links:[["About Us","/about-us"],["Services","/our-services"],["Contact","/contact-us"],["Privacy Policy","/privacy-policy"],["Return Policy","/return-policy"]]}),(0,r.jsx)(c,{title:"Shop & Resources",links:[["Shop All Products","/product"],["News & Media","/news-media"],["Patient Resources","/Safety&Emergency"],["Blogs","/blog"]]}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 col-span-2 md:col-span-1",children:[(0,r.jsx)(c,{title:"Services",links:[["Clinical Respiratory Services","/our-services"],["Medical Equipment and Supplies","/our-services"],["Health Care Services Pool","/Recruitment-Staffing"]]}),(0,r.jsxs)("div",{className:"sm:block",children:[(0,r.jsx)("p",{className:"hidden sm:block font-semibold mb-2 text-white",children:"Follow Us"}),(0,r.jsx)("div",{className:"flex justify-center sm:justify-start gap-3",children:[["https://www.instagram.com/jkaremiami/",(0,r.jsx)(n.Zf_,{size:18},"ig")],["https://www.facebook.com/JKAREMiami",(0,r.jsx)(n.Am9,{size:18},"fb")],["https://www.linkedin.com/company/jkaremiami/",(0,r.jsx)(n.ltd,{size:18},"li")]].map(e=>{let[t,s]=e;return(0,r.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"grid h-8 w-8 place-items-center rounded-full border border-white/40 hover:bg-customPink transition-colors",children:s},t)})})]})]})]}),(0,r.jsx)("hr",{className:"border-white/20"}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-3 text-[12px] sm:text-xs text-white/80 text-center sm:text-left",children:[(0,r.jsx)("span",{children:"\xa9 2024 JKARE. All Rights Reserved."}),(0,r.jsxs)("span",{className:"space-x-2",children:[(0,r.jsx)("span",{"aria-hidden":!0,
1children:" | "}),(0,r.jsx)(a.default,{href:"https://hexerve.com/",className:"hover:text-white",children:"Designed and Developed by Hexerve Solutions"})]})]})]})]})})}s(4193)},9659:function(e,t,s){"use strict";s.d(t,{default:function(){return k}});var r=s(7437),a=s(2265),i=s(7138),n=s(1020);s(6648);let l={type:"spring",mass:.5,damping:11.5,stiffness:100,restDelta:.001,restSpeed:.001},c=e=>{let{setActive:t,active:s,item:a,children:i}=e;return(0,r.jsxs)("div",{onMouseEnter:()=>t(a),className:"relative ",children:[(0,r.jsx)(n.E.p,{transition:{duration:.3},className:"cursor-pointer text-black hover:text-customPink lg:text-base lg:font-normal md:font-light font-montserrat ",children:a}),null!==s&&(0,r.jsx)(n.E.div,{initial:{opacity:0,scale:.85,y:10},animate:{opacity:1,scale:1,y:0},transition:l,children:s===a&&i&&(0,r.jsx)("div",{className:"absolute top-[calc(100%_+_0.5rem)] left-1/2 transform -translate-x-1/2 pt-4",children:(0,r.jsx)(n.E.div,{transition:l,layoutId:"active",className:" bg-white backdrop-blur-sm rounded-2xl overflow-hidden border border-black/[0.2] dark:border-white/[0.2] shadow-xl",children:(0,r.jsx)(n.E.div,{layout:!0,className:"w-max h-full p-4 ",children:(0,r.jsx)("div",{onClick:()=>{setTimeout(()=>{t(null)},1200)},children:i})})})})})]})},o=e=>{let{setActive:t,children:s}=e;return(0,r.jsx)("nav",{className:"relative w-full shadow-input flex justify-center space-x-6 py-2 ",children:s})},d=e=>{let{children:t,...s}=e;return(0,r.jsx)(i.default,{...s,className:"text-black text-sm font-normal hover:text-customPink py-2",children:t})};var u=s(3003),m=s(731),x=s(5027),h=s(998),f=s(7770),p=s(8759),g=s(3051),b=s(6463);let j=a.forwardRef(function(e,t){let{title:s,titleId:r,...i}=e;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","data-slot":"icon",ref:t,"aria-labelledby":r},i),s?a.createElement("title",{id:r},s):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}),y=["State Farm","Geico","Progressive","Allstate","Liberty Mutual","USAA","Farmers Insurance","Nationwide","American Family Insurance","Travelers","MetLife","Chubb","Hartford","CNA Financial","Aflac","Mutual of Omaha","New York Life","Northwestern Mutual","Prudential Financial","Guardian Life","MassMutual","Cigna","Humana","Blue Cross Blue Shield","UnitedHealthcare","Aetna","Anthem","Colonial Life","American National Insurance","Principal Financial","Pacific Life","Lincoln Financial","Protective Life","Ameritas","EmblemHealth","American Fidelity","Plymouth Rock Assurance","Erie Insurance","Kemper","Lemonade","SafeAuto","Mercury Insurance","Amica Mutual Insurance","Markel Corporation","Western & Southern Financial","Horace Mann","OneBeacon","Selective Insurance Group","Alfa Insurance","Acadia Insurance","Esurance"];var v=(0,a.memo)(function(e){let{cart:t,isModalOpen:s,setIsModalOpen:i,email:n}=e,[l,c]=(0,a.useState)(!1),[o,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)("no-insurance"),[x,h]=(0,a.useState)(""),[f,p]=(0,a.useState)(null),[g,v]=(0,a.useState)(!0),[N,w]=(0,a.useState)(null),[k,P]=(0,a.useState)(!1),[C,S]=(0,a.useState)(t.length?t.filter(e=>e.prescription):[]),E=(0,a.useRef)([]),A=(0,a.useRef)(null),R=(0,b.useRouter)(),O=e=>!(e.size>1048576)||(alert("File size exceeds 1MB limit. Please reduce the file size to 1MB or less to upload."),!1),_=(e,t)=>{let s=C.length>0&&C.every(e=>e.file),r=t&&N;v(!(s||r||e))};if((0,a.useEffect)(()=>{_(l,o)},[E,l,o,N,C,s]),!s)return null;let I=()=>{E.current.forEach(e=>e&&(e.value=""))},M=(e,t)=>{let s=t.target.files[0];if(!s)return;if(!O(s)){t.target.value="";return}let r=new FileReader;r.onloadend=()=>{S(t=>{let a=[...t];return a[e]={...a[e],file:{fileName:s.name,fileSize:s.size,fileType:s.type,filePreview:r.result}},a})},r.readAsDataURL(s),E.current[e]=s},z=()=>{i(!1),v(!0)},B=async()=>{if(P(!0),"upload"===u&&(!f||""===x)){alert("Please select an insurance company and upload a file.");return}let e={},s="",r={},a=[];if(C.length?(e.prescription_required=!0,e.prescription_items={},e.prescription_status=N?"Received":C.every(e=>e.file)?"Received":"Pending"):(e.prescription_required=!1,e.prescription_status=""),o&&N){let e=new FormData;e.set("profile",N);let t=await fetch("/api/user/image",{method:"POST",body:e}),{secureUrl:r}=await t.json();s=r}for(let i of t){if(r[i.title]=i.product_id,i.prescription){let t=C.find(e=>e.product_id===i.product_id);if(null==t?void 0:t.file){let e=await fetch("/api/upload",{method:"POST",body:JSON.stringify({...t.file})}),{fileURL:r}=await e.json();s=r}e.prescription_items[i.product_id]=s}a.push({price_data:{currency:"usd",product_data:{name:i.title,de
1scription:i.description,images:i.images},unit_amount:Math.round(100*i.price)},quantity:parseInt(i.quantity,10),adjustable_quantity:{enabled:!0}})}if(e.prescription_items&&(e.prescription_items=JSON.stringify(e.prescription_items)),e.products=JSON.stringify(r),"upload"===u){let t=await fetch("/api/upload",{method:"POST",body:JSON.stringify(f)}),{fileURL:s}=await t.json();e.insurance_file=s,e.insurance_company=x}let l={line_items:a,metadata:e,total_amount:t.reduce((e,t)=>e+t.price*t.quantity,0),...n&&{email:n}};window.dispatchEvent(new CustomEvent("closeCart")),localStorage.setItem("checkoutStorage",JSON.stringify(l)),R.push("/package-shipment"),i(!1),P(!1)};return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 font-montserrat",children:(0,r.jsxs)("div",{className:"h-[50vh] w-[95vw] max-w-5xl overflow-y-auto rounded-lg bg-white p-4 sm:p-6",children:[C.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-base font-semibold sm:text-lg",children:"Upload Prescription"}),(0,r.jsx)("button",{onClick:z,className:"text-gray-500 hover:text-gray-700 transition p-1 text-lg","aria-label":"Close modal",children:"\xd7"})]}),(0,r.jsx)("div",{className:"hidden max-h-64 overflow-y-auto md:block ".concat(C.length>3?"overflow-y-auto":""),children:(0,r.jsxs)("table",{className:"w-full border-collapse border border-gray-300 text-xs sm:text-sm",children:[(0,r.jsx)("thead",{className:"sticky top-0 bg-white text-[0.65rem] sm:text-xs",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"border p-2",children:"S.no"}),(0,r.jsx)("th",{className:"border p-2",children:"Image"}),(0,r.jsx)("th",{className:"border p-2",children:"Product"}),(0,r.jsx)("th",{className:"border p-2",children:"Price\xa0($)/P"}),(0,r.jsx)("th",{className:"border p-2",children:"Qty"}),(0,r.jsx)("th",{className:"border p-2",children:"Upload"})]})}),(0,r.jsx)("tbody",{children:C.map((e,t)=>(0,r.jsxs)("tr",{className:"text-center",children:[(0,r.jsxs)("td",{className:"border p-2",children:[t+1,"."]}),(0,r.jsx)("td",{className:"p-2 flex justify-center border",children:(0,r.jsx)("img",{src:e.images[0],alt:e.title,className:"h-8 w-8 rounded-lg object-contain"})}),(0,r.jsx)("td",{className:"border p-2",children:e.title}),(0,r.jsx)("td",{className:"border p-2",children:e.price.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}),(0,r.jsx)("td",{className:"border p-2",children:e.quantity}),(0,r.jsx)("td",{className:"border p-2",children:(0,r.jsx)("input",{type:"file",ref:e=>E.current[t]=e,disabled:l||o,onChange:e=>M(t,e),className:"file:h-8 file:cursor-pointer file:rounded file:border file:border-gray-400 file:bg-white file:px-3 file:text-xs hover:file:bg-customBlue hover:file:text-white"})})]},e.product_id))})]})}),(0,r.jsx)("div",{className:"space-y-4 md:hidden",children:C.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-gray-300 p-3 text-xs",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center space-x-2",children:[(0,r.jsxs)("span",{className:"font-semibold",children:[t+1,"."]}),(0,r.jsx)("img",{src:e.images[0],alt:e.title,className:"h-10 w-10 flex-shrink-0 rounded-lg object-contain"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"truncate font-medium",children:e.title}),(0,r.jsxs)("p",{className:"text-[0.65rem] text-gray-500",children:["$",e.price.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})," ","\xa0x\xa0",e.quantity]})]})]}),(0,r.jsxs)("label",{className:"ml-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-gray-400 hover:bg-customBlue hover:text-white",children:[(0,r.jsx)(j,{className:"h-4 w-4"}),(0,r.jsx)("input",{type:"file",className:"hidden",ref:e=>E.current[t]=e,disabled:l||o,onChange:e=>M(t,e)})]}),e.file&&(0,r.jsx)("p",{className:"mt-1 w-2/3 truncate text-[0.65rem] text-gray-600",children:e.file.fileName})]},e.product_id))}),C.length>1&&(0,r.jsxs)("div",{className:"mt-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("label",{className:"inline-flex items-center text-xs sm:text-sm",children:[(0,r.jsx)("input",{type:"checkbox",className:"form-checkbox",checked:o,onChange:()=>{d(e=>!e),c(!1),I(),o?(w(null),A.current&&(A.current.value="")):S(e=>e.map(e=>{let{file:t,...s}=e;return s}))}}),(0,r.jsx)("span",{className:"ml-2",children:"Use the same prescription for all items"})]}),o&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Upload at least one file to use the same prescription for all items"}
1),o&&(0,r.jsx)("input",{type:"file",ref:A,onChange:e=>{let t=e.target.files[0];if(t){if(!O(t)){e.target.value="";return}w(t)}},className:"file:h-8 file:cursor-pointer file:rounded file:border file:border-gray-400 file:bg-white file:px-3 text-xs hover:file:bg-customBlue hover:file:text-white"})]}),(0,r.jsxs)("label",{className:"mt-3 inline-flex items-center text-xs sm:text-sm",children:[(0,r.jsx)("input",{type:"checkbox",className:"form-checkbox",checked:l,onChange:()=>{c(e=>!e),I(),d(!1),w(null),A.current&&(A.current.value=""),S(e=>e.map(e=>{let{file:t,...s}=e;return s}))}}),(0,r.jsx)("span",{className:"ml-2",children:"Upload the prescription later"})]})]}),(0,r.jsxs)("div",{className:"mt-6 text-xs sm:text-sm",children:[(0,r.jsx)("h2",{className:"mb-3 text-base font-semibold sm:text-lg",children:"Choose insurance option"}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,r.jsxs)("label",{className:"inline-flex items-center",children:[(0,r.jsx)("input",{type:"radio",className:"form-radio",value:"upload",name:"insurance",checked:"upload"===u,onChange:()=>m("upload")}),(0,r.jsx)("span",{className:"ml-2",children:"Upload Insurance"})]}),(0,r.jsxs)("label",{className:"inline-flex items-center",children:[(0,r.jsx)("input",{type:"radio",className:"form-radio",value:"no-insurance",name:"insurance",checked:"no-insurance"===u,onChange:()=>m("no-insurance")}),(0,r.jsx)("span",{className:"ml-2",children:"I don't have insurance"})]})]}),"upload"===u&&(0,r.jsxs)("div",{className:"mt-4 space-y-3 sm:flex sm:space-y-0 sm:space-x-4",children:[(0,r.jsxs)("select",{value:x,onChange:e=>h(e.target.value),className:"block w-full rounded-lg border border-gray-300 p-2 text-xs sm:text-sm",children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Select Insurance Company"}),y.map((e,t)=>(0,r.jsx)("option",{value:e,children:e},t))]}),(0,r.jsx)("input",{type:"file",onChange:e=>{let t=e.target.files[0];if(!t)return;if(!O(t)){e.target.value="";return}let s=new FileReader;s.onloadend=()=>p({fileName:t.name,fileSize:t.size,fileType:t.type,filePreview:s.result}),s.readAsDataURL(t)},className:"file:h-8 file:cursor-pointer file:rounded file:border file:border-gray-400 file:bg-white file:px-3 text-xs hover:file:bg-customBlue hover:file:text-white"})]})]}),(0,r.jsxs)("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row sm:justify-end",children:[(0,r.jsx)("button",{className:"rounded-lg bg-red-500 px-4 py-2 text-sm text-white transition hover:bg-red-600",onClick:z,children:"Cancel"}),(0,r.jsx)("button",{className:"rounded-lg px-4 py-2 text-sm text-white transition ".concat(g||k?"cursor-not-allowed bg-gray-400":"bg-customBlue hover:bg-customPink"),onClick:B,disabled:g||k,children:k?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-current"}),"Checking out..."]}):"Checkout"})]})]})})}),N=function(e){let{isCartOpen:t,authSession:s,cartRef:i}=e,n=window.localStorage.getItem("medCart"),[l,c]=(0,a.useContext)(p.A),[o,d]=(0,a.useState)(!1),u=(0,a.useRef)();(0,a.useEffect)(()=>{let e=e=>{o||!u.current||u.current.contains(e.target)||window.dispatchEvent(new CustomEvent("closeCart"))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[o]);let m=n?JSON.parse(n):[],x=async e=>{m=m.filter(t=>t.product_id!==e),s&&await fetch("/api/cart/".concat(s.user.email,"?product_id=").concat(e),{method:"DELETE"}),c(l-1),window.localStorage.setItem("medCart",JSON.stringify(m))},h=m.reduce((e,t)=>e+t.price*t.quantity,0);return t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{ref:u,className:"\n fixed z-50\n top-20 left-1/2 -translate-x-1/2 \n w-11/12 max-w-sm \n bg-white border-2 border-gray-200 rounded-lg shadow-lg\n transform transition-all duration-300 ease-in-out\n ".concat(t?"opacity-100 translate-y-0":"opacity-0 -translate-y-8","\n /* Breakpoints */\n sm:left-auto sm:right-6 sm:translate-x-0 sm:w-96 sm:top-16 \n lg:absolute lg:-left-72 lg:top-16 font-montserrat \n "),children:[(0,r.jsxs)("div",{className:"p-4 max-h-72 overflow-auto",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold",children:"Cart"}),0===m.length?(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"Your cart is empty."}):m.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center justify-between mt-4 cursor-pointer",children:[(0,r.jsx)("img",{src:e.images[0],alt:e.title,className:"h-16 w-16 rounded-lg object-contain border border-customBlue p-1"}),(0,r.jsxs)("div",{className:"flex flex-col flex-grow ml-4",children:[(0,r.jsx)("span",{className:"text-md font-medium",children:e.title}),(0,r.jsxs)("span",{className:"text-sm font-bold text-gray-500",children:["$",e.price.toLocaleStr
1ing(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})," ","x ",e.quantity," = $",(e.price*e.quantity).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,r.jsx)("button",{onClick:()=>x(e.product_id),className:"border-none bg-red-500 text-white hover:text-gray-300 p-2 rounded-lg",children:(0,r.jsx)(g.AWu,{size:22})})]},t))]}),l>0&&(0,r.jsxs)("div",{className:"px-4 py-2",children:[(0,r.jsxs)("div",{className:"text-md font-semibold text-right",children:["Total: $",parseFloat(h).toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Above shown Price is excluding Tax"})]}),(0,r.jsx)("button",{className:"mt-2 w-full bg-customBlue hover:bg-customPink text-white text-center rounded-lg cursor-pointer p-2",onClick:()=>d(!0),children:"Go To Checkout"})]})]}),o&&(0,r.jsx)(v,{cart:m,isModalOpen:o,setIsModalOpen:d,email:null==s?void 0:s.user.email})]}):null},w=s(1942),k=()=>{let[e,t]=(0,a.useState)(null),[s,n]=(0,a.useState)(!1),[l,g]=(0,a.useState)(!1),[b,j]=(0,a.useState)(!1),[y,v]=(0,a.useState)(!1),[k,P]=(0,a.useState)(""),[C,S]=(0,a.useState)([]),[E,A]=(0,a.useState)(!1),[R,O]=(0,a.useState)(!1),{data:_}=(0,h.useSession)(),I=(0,a.useContext)(f.R),[M,z]=(0,a.useContext)(p.A),B=(0,a.useRef)(),L=(0,a.useRef)(),F=(0,a.useRef)(),D=(0,a.useRef)(),U=(0,a.useRef)(),H=(0,a.useRef)(null),q=()=>{setTimeout(()=>{n(!1)},800)},T=async e=>{try{let t=e.target.value;P(t),t.trim().length>0?A(!0):A(!1);let s=await fetch("/api/product?query=".concat(t)),r=await s.json();S(r)}catch(e){console.log(e)}},G=()=>{window.localStorage.clear(),(0,h.signOut)()},W=e=>{var t,r;(null===(t=F.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=D.current)||void 0===r?void 0:r.contains(e.target))||!E||A(!1),L.current&&!L.current.contains(e.target)&&y&&v(!1),B.current&&!B.current.contains(e.target)&&s&&n(!1),U.current&&!U.current.contains(e.target)&&R&&O(!1)};return(0,a.useEffect)(()=>{let e=()=>O(!1);return window.addEventListener("closeCart",e),()=>window.removeEventListener("closeCart",e)},[]),(0,a.useEffect)(()=>{let e=window.localStorage.getItem("medCart");return e&&z(JSON.parse(e).length),document.addEventListener("click",W),()=>{document.removeEventListener("click",W)}},[E,y,s]),(0,r.jsxs)("div",{className:"fixed top-0 inset-x-0 z-50",children:[(0,r.jsxs)("div",{className:"bg-white shadow-lg px-4 lg:px-8 py-2 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[(0,r.jsx)(i.default,{href:"/",children:(0,r.jsx)("img",{src:"https://images.squarespace-cdn.com/content/v1/60aefe75c1a8f258e529fbac/1622081456984-G5MG4OZZJFVIM3R01YN7/jkare-2.png?format=1500w",alt:"Logo",className:"h-6 md:h-8 lg:h-10 flex-shrink-0"})}),(0,r.jsxs)("div",{className:"relative block lg:hidden flex-1",ref:D,children:[(0,r.jsx)("input",{type:"text",placeholder:"Search Jkare",value:k,onChange:T,className:"w-full px-3 py-1 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-blue-400"}),(0,r.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",children:(0,r.jsx)(u.w75,{size:18})}),E&&(0,r.jsx)("div",{className:"absolute top-full mt-2 w-72 bg-white shadow-lg rounded-lg p-4 z-50 left-1/2 -translate-x-1/2",children:(0,r.jsx)("div",{className:"max-h-60 overflow-y-auto",children:C.length>0?(0,r.jsx)("ul",{className:"list-none p-0",children:C.map(e=>(0,r.jsxs)(i.default,{href:"/product/".concat(e._id),className:"flex items-center p-2 border-b border-gray-200 hover:bg-blue-50 rounded-md transition",onClick:()=>A(!1),children:[(0,r.jsx)("img",{src:e.prod_images[0],alt:e.prod_name,className:"w-8 h-8 rounded-md object-cover mr-3"}),(0,r.jsx)("span",{className:"text-gray-800 text-sm",children:e.prod_name})]},e._id))}):(0,r.jsx)("div",{className:"p-4 text-gray-500 text-center",children:"No items found"})})})]})]}),(0,r.jsx)("div",{className:"hidden lg:flex",onMouseLeave:()=>{H.current=setTimeout(()=>t(null),800)},onMouseEnter:()=>{H.current&&(clearTimeout(H.current),H.current=null)},children:(0,r.jsx)("div",{className:"flex items-center space-x-6 font-semibold text-sm px-5 rounded-3xl font-montserrat",children:(0,r.jsxs)(o,{setActive:t,children:[(0,r.jsx)(i.default,{href:"/",children:(0,r.jsx)(c,{setActive:t,active:e,item:"Home"})}),(0,r.jsx)(c,{setActive:t,active:e,item:"Products",children:(0,r.jsxs)("div",{className:"flex flex-col text-sm bg-white px-2 rounded-md",children:[I.map(e=>(0,r.jsx)(d,{href:"/category/".concat(e.name),children:e.name},e.name)),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(d,{href:"/category",children:(0,r.jsx)("div",{className:"pr-2 font-normal text-black hover:text-customPink",children:"Shop All"})}),(0,r.jsx)(w.Z1Y,{className:"text-black hover:text-customPink",size:14})]})]})}),(0,r.jsx)(i.default,{href:"/about-us",children:(0,r.jsx)(c,{setActive:t,active:e,item:"About Us"})}),(0,r.jsx)(i.default,{href:"/our-services",children:(0,r.jsx)(c,{setActive:t,active:e,item:"Services"})}),(0,r.jsx)(c,{setActive:t,active:e,item:"Patient Resources",children:(0,r.jsxs)("div",{className:"grid grid-cols-5 ga
1p-8 w-[1400px] p-4 rounded-md text-gray-800 font-light",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-base font-semibold mb-1",children:"Safety & Emergency Planning"}),(0,r.jsx)("hr",{className:"border-gray-300 mb-2"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-sm",children:[(0,r.jsx)(d,{href:"/Safety&Emergency",children:"Emergency Planning for the Home Care Patient"}),(0,r.jsx)(d,{href:"/Safety&Emergency",children:"How to Make Your Home Safe for Medical Care"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-base font-semibold mb-1",children:"Patient Rights & Advocacy"}),(0,r.jsx)("hr",{className:"border-gray-300 mb-2"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-sm",children:[(0,r.jsx)(d,{href:"/PatientRights",children:"HIPAA Privacy Notice"}),(0,r.jsx)(d,{href:"/PatientRights",children:"Patient's Bill of Rights and Responsibilities"}),(0,r.jsx)(d,{href:"/PatientRights",children:"Patient Grievance and Complaint Procedure"}),(0,r.jsx)(d,{href:"/PatientRights",children:"Making Decisions About Your Health Care"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-base font-semibold mb-1",children:"Support Policies & Information"}),(0,r.jsx)("hr",{className:"border-gray-300 mb-2"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-sm",children:[(0,r.jsx)(d,{href:"/SupportPolicies",children:"Medicare DMEPOS Supplier Standards"}),(0,r.jsx)(d,{href:"/SupportPolicies",children:"Warranty Information"}),(0,r.jsx)(d,{href:"/SupportPolicies",children:"Insurance Information"}),(0,r.jsx)(d,{href:"/SupportPolicies",children:"Prescription Requirements"}),(0,r.jsx)(d,{href:"/SupportPolicies",children:"Medicare Support"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-base font-semibold mb-1",children:"Equipment Guides & Instructions"}),(0,r.jsx)("hr",{className:"border-gray-300 mb-2"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-sm",children:[(0,r.jsx)(d,{href:"/EquipmentGuide",children:"Customer Instruction Guide for CPAP & BiPAP"}),(0,r.jsx)(d,{href:"/EquipmentGuide",children:"Nebulizer/Compressor Therapy & Cleaning Instructions"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-base font-semibold mb-1",children:"Product Information"}),(0,r.jsx)("hr",{className:"border-gray-300 mb-2"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-1 text-sm",children:[(0,r.jsx)(d,{href:"/ProductBrochers#".concat(encodeURIComponent("afflovest-english")),children:"Afflovest (English)"}),(0,r.jsx)(d,{href:"/ProductBrochers#".concat(encodeURIComponent("oxlife-liberty-user-manual")),children:"Oxlife Liberty User Manual"}),(0,r.jsx)(d,{href:"/ProductBrochers#".concat(encodeURIComponent("myairvo-use-and-care-guide")),children:"MyAirvo Use and Care Guide"}),(0,r.jsxs)("div",{className:"mb-2",children:[(0,r.jsx)("span",{className:"font-semibold text-gray-800",children:"BiWaze Products"}),(0,r.jsxs)("div",{className:"ml-3 mt-1 flex flex-col space-y-1",children:[(0,r.jsx)("div",{children:(0,r.jsx)(d,{href:"/ProductBrochers#".concat(encodeURIComponent("biwaze-clear-lung-expansion-device-for-home-care")),children:" BiWaze Clear Lung Expansion Device for Home Care"})}),(0,r.jsx)("div",{children:(0,r.jsx)(d,{href:"/ProductBrochers#".concat(encodeURIComponent("biwaze-cough-for-home-care-english")),children:"BiWaze Cough for Home Care (English)"})})]})]})]})]})]})}),(0,r.jsx)(i.default,{href:"/Recruitment-Staffing",children:(0,r.jsx)(c,{setActive:t,active:e,item:"Recruiting"})}),(0,r.jsx)(i.default,{href:"/contact-us",children:(0,r.jsx)(c,{setActive:t,active:e,item:"Contact Us"})})]})})}),(0,r.jsxs)("div",{className:"flex items-center space-x-4 ml-2 sm:ml-4",children:[(0,r.jsxs)("div",{className:"relative hidden lg:block",ref:F,children:[(0,r.jsx)("input",{type:"text",placeholder:"Search Jkare",value:k,onChange:T,className:"w-64 px-4 py-1 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-blue-400"}),(0,r.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",children:(0,r.jsx)(u.w75,{size:18})}),E&&(0,r.jsx)("div",{className:"absolute top-full mt-2 right-0 w-64 bg-white shadow-lg rounded-lg p-4 z-50",children:(0,r.jsx)("div",{className:"max-h-60 overflow-y-auto",children:C.length>0?(0,r.jsx)("ul",{className:"list-none p-0",children:C.map(e=>(0,r.jsxs)(i.default,{href:"/product/".concat(e._id),className:"flex items-center p-2 border-b border-gray-200 hover:bg-blue-50 rounded-md transition",onClick:()=>A(!1),children:[(0,r.jsx)("img",{src:e.prod_images[0],alt:e.prod_name,className:"w-8 h-8 rounded-md object-cover mr-3"}),(0,r.jsx)("span",{className:"text-gray-800 text-sm",children:e.prod_name})]},e._id))}):(0,r.jsx)("div",{className:"p-4 text-gray-500 text-center",children:"No items found"})})})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.i07,{size:24,className:"cursor-pointer",onClick:e=>{e.stopPropagation(),O(!R)}}),M>0&&(0,r.jsx)("span",{className:"absolute -top-2 -right-2 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-white bg-red-500 rounded-full",children:M}),R&&(0,r.jsx)(N,{isCartOpen:R,authSession:_,cartRef:U})]}),(0,r.jsx)("div",{className:"hidden lg:block",children:_&&_.user?(0,r.jsxs)("div",{className:"relative",ref:L,children:[(0,r.jsx)("div",{className:"cursor-pointer flex items-center",onClick:()=>v(!y),children:_.user.image?(0,r.jsx)("img",{src:_.user.image,alt:"User Avatar",className:"w-8 h-8 rounded-full"}):(0,r.jsx)(m.Mdg,{size:24})}),y&&(0,r.jsxs)("div",{className:"absolute right-0 mt-2 w-48 bg-white shadow-lg rounded-lg p-4 z-50 border border-gray-200",children:[(0,r.jsx)("p",{className:"font-semibold truncate",children:_.user.name}),(0,r.jsx)("p",{className:"text-sm text-gray-600 truncate",children:_.user.email}),(0,r.jsx)(i.default,{href:"/account-settings",children:(0,r.jsx)("button",{className:"mt-2 w-full bg-blue-600 text-white py-1 px-2 rounded",children:"Account Setting"})}),(0,r.jsx)(i.default,{href:"/order-history",children:(0,r.jsx)("button",{className:"mt-2 w-full bg-blue-600 text-white py-1 px-2 rounded",children:"My Orders"})}),(0,r.jsx)("button",{onClick:G,className:"mt-2 w-full bg-blue-600 text-white py-1 px-2 rounded",children:"Sign Out"})]})]}):(0,r.jsxs)(i.default,{href:"/login",className:"flex items-center space-x-1",children:[(0,r.jsx)(u.WCB,{size:20}),(0,r.jsx)("span",{className:"text-gray-700",children:"Sign In"})]})}),(0,r.jsx)("div",{className:"lg:hidden",children:(0,r.jsx)(x.vHB,{size:24,className:"cursor-pointer",onClick:()=>n(!s)})})]})]}),s&&(0,r.jsxs)("div",{ref:B,className:"lg:hidden bg-white shadow-md border-t border-gray-200",children:[(0,r.jsxs)("div",{className:"px-4 py-2 flex items-center justify-between",children:[(0,r.jsx)("span",{className:"font-semibold text-gray-700",children:"Menu"}),(0,r.jsx)("button",{onClick:()=>n(!1),className:"text-gray-600 hover:text-gray-800 ",children:"Close"})]}),(0,r.jsxs)("div",{className:" space-y-2 px-4 pb-4 overflow-y-auto max-h-[calc(100dvh-96px)]",children:[(0,r.jsx)(i.default,{href:"/",className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",onClick:q,children:"Home"}),(0,r.jsxs)("button",{onClick:()=>g(!l),className:"flex items-center justify-between w-full text-left px-3 py-2 rounded text-gray-700 hover:bg-gray-100",children:[(0,r.jsx)("span",{children:"Products"}),(0,r.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:l?"M19 9l-7 7-7-7":"M9 5l7 7-7 7"})})]}),l&&(0,r.jsxs)("div",{className:"ml-6 space-y-1",children:[I.map(e=>(0,r.jsx)(i.default,{href:"/category/".concat(e.name),className:"block text-gray-700 hover:bg-gray-100 px-3 py-1 rounded",onClick:q,children:e.name},e.name)),(0,r.jsxs)("div",{className:"flex items-center ml-3 mt-1",children:[(0,r.jsx)(d,{href:"/category",onClick:q,children:(0,r.jsx)("div",{className:"pr-2 text-blue-600 hover:underline",children:"Shop All"})}),(0,r.jsx)(w.Z1Y,{className:"text-blue-600",size:14})]})]}),(0,r.jsxs)("button",{onClick:()=>j(!b),className:"flex items-center justify-between w-full text-left px-3 py-2 rounded text-gray-700 hover:bg-gray-100",children:[(0,r.jsx)("span",{children:"Patient Resources"}),(0,r.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:l?"M19 9l-7 7-7-7":"M9 5l7 7-7 7"})})]}),b&&(0,r.jsxs)("div",{className:"ml-6 space-y-1 text-sm",children:[(0,r.jsx)("span",{className:"block font-semibold mt-2",children:"Safety & Emergency Planning"}),(0,r.jsx)(i.default,{href:"/Safety&Emergency",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Emergency Planning for the Home Care Patient"}),(0,r.jsx)(i.default,{href:"/Safety&Emergency",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"How to Make Your Home Safe for Medical Care"}),(0,r.jsx)("span",{className:"block font-semibold mt-3",children:"Patient Rights & Advocacy"}),(0,r.jsx)(i.default,{href:"/PatientRights",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"HIPAA Privacy Notice"}),(0,r.jsx)(i.default,{href:"/PatientRights",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Patientâs Bill of Rights and Responsibilities"}),(0,r.jsx)(i.default,{href:"/PatientRights",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Patient Grievance and Complaint Procedure"}),(0,r.jsx)(i.default,{href:"/PatientRights",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Making Decisions About Your Health Care"}),(0,r.jsx)("span",{className:"block font-semibold mt-3",children:"Support Policies & Information"}),(0,r.jsx)(i.default,{href:"/SupportPolicies",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Medicare DMEPOS Supplier Standards"}),(0,r.jsx)(i.default,{href:"/SupportPolicies",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Warranty Information"}),(0,r.jsx)(i.default,{href:"/SupportPolicies",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Insurance Information"}),(0,r.jsx)(i.default,{href:"/SupportPolicies",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Prescription Requirements"}),(0,r.jsx)(i.default,{href:"/SupportPolicies",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Medicare Support"}),(0,r.jsx)("span",{className:"block font-semibold mt-3",children:"Equipment Guides & Instructions"}),(0,r.jsx)(i.default,{href:"/EquipmentGuide",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Customer Instruction Guide for CPAP & BiPAP"}),(0,r.jsx)(i.default,{href:"/EquipmentGuide",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Nebulizer/Compressor Therapy & Cleaning Instructions"}),(0,r.jsx)("span",{className:"block font-semibold mt-3",children:"Product Information"}),(0,r.jsx)(i.default,{href:"/ProductBrochers",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Afflovest (English)"}),(0,r.jsx)(i.default,{href:"/ProductBrochers",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"Oxlife Liberty User Manual"}),(0,r.jsx)(i.default,{href:"/ProductBrochers",onClick:q,className:"block px-3 py-1 rounded text-gray-600 hover:bg-gray-100",children:"MyAirvo Use and Care Guide"}),(0,r.jsx)("span",{className:"block font-semibold mt-1 px-3",children:"BiWaze Products"}),(0,r.jsx)(i.default,{href:"/ProductBrochers#".concat(encodeURIComponent("biwaze-clear-lung-ex
1pansion-device-for-home-care")),onClick:q,className:"block px-6 py-1 rounded text-gray-600 hover:bg-gray-100",children:"BiWaze Clear Lung Expansion Device for Home Care"}),(0,r.jsx)(i.default,{href:"/ProductBrochers#".concat(encodeURIComponent("biwaze-cough-for-home-care-english")),onClick:q,className:"block px-6 py-1 rounded text-gray-600 hover:bg-gray-100",children:"BiWaze Cough for Home Care (English)"})]}),(0,r.jsx)(i.default,{href:"/about-us",className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",onClick:q,children:"About Us"}),(0,r.jsx)(i.default,{href:"/our-services",className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",onClick:q,children:"Our Services"}),(0,r.jsx)(i.default,{href:"/Recruitment-Staffing",className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",onClick:q,children:"Recruiting"}),(0,r.jsx)(i.default,{href:"/contact-us",className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",onClick:q,children:"Contact Us"}),_&&_.user?(0,r.jsxs)("div",{className:"block px-3 py-2 rounded-md bg-gray-50",children:[(0,r.jsx)("p",{className:"font-medium",children:_.user.name}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:_.user.email}),(0,r.jsxs)("div",{className:"mt-3 flex flex-col space-y-2",children:[(0,r.jsx)(i.default,{href:"/account-settings",children:(0,r.jsx)("button",{className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-2 rounded",children:"Edit Profile"})}),(0,r.jsx)(i.default,{href:"/order-history",onClick:q,children:(0,r.jsx)("button",{className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-2 rounded",children:"Order History"})}),(0,r.jsx)("button",{onClick:G,className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-2 rounded",children:"Sign Out"})]})]}):(0,r.jsx)(i.default,{href:"/login",children:(0,r.jsx)("div",{className:"block text-gray-700 hover:bg-gray-100 px-3 py-2 rounded",children:"Sign In"})})]})]})]})}},8759:function(e,t,s){"use strict";s.d(t,{A:function(){return n}});var r=s(7437),a=s(998),i=s(2265);let n=(0,i.createContext)([]);t.default=function(e){let{children:t,session:s}=e,[l,c]=(0,i.useState)([]);return(0,r.jsx)(n.Provider,{value:[l,e=>{c(e)}],children:(0,r.jsx)(a.SessionProvider,{session:s,children:t})})}},7770:function(e,t,s){"use strict";s.d(t,{R:function(){return a}});var r=s(7437);let a=(0,s(2265).createContext)([]);t.default=function(e){let{data:t,children:s}=e;return(0,r.jsx)(a.Provider,{value:t,children:s})}},6463:function(e,t,s){"use strict";var r=s(1169);s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})},6857:function(){},104:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},1810:function(e,t,s){"use strict";s.d(t,{w_:function(){return d}});var r=s(2265),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(a),n=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(this,arguments)}function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach(function(t){var r,a;r=t,a=s[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var r=s.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function d(e){return t=>r.createElement(u,l({attr:o({},e.attr)},t),function e(t){return t&&t.map((t,s)=>r.createElement(t.tag,o({key:s},t.attr),e(t.child)))}(e.child))}function u(e){var t=t=>{var s,{attr:a,size:i,title:c}=e,d=function(e,t){if(null==e)return{};var s,r,a=function(e,t){if(null==e)return{};var s={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;s[r]=e[r]}return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)s=i[r],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}(e,n),u=i||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,d,{className:s,style:o(o({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),e.children)};return void 0!==i?r.createElement(i.Consumer,null,e=>t(e)):t(a)}}},function(e){e.O(0,[404,2898,7699,1994,522,5505,1694,231,8173,998,127,2410,2971,7023,1744],function(){return e(e.s=5026)}),_N_E=e.O()}]);
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.