@adminiumjs/app-clinic 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/customer/assets/App-DdIi94eM.js +1 -0
- package/customer/assets/embed-D9WnNWH8.js +1 -0
- package/customer/assets/icons-D7ArAIOl.js +1 -0
- package/customer/assets/index-CQI0fglh.css +1 -0
- package/customer/assets/index-re5HI07A.js +2 -0
- package/customer/assets/react-Ck9fDrdd.js +9 -0
- package/customer/assets/store-D7cmlyqr.js +1 -0
- package/customer/assets/surface-nav-6BkCPZCf.js +1 -0
- package/customer/assets/urlSync-DEafH1yc.js +1 -0
- package/customer/favicon.svg +18 -0
- package/customer/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/customer/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/customer/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/customer/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/customer/index.html +20 -0
- package/customer/surface.json +45 -0
- package/manifest.json +501 -0
- package/package.json +11 -0
- package/staff/assets/App-ijJtS1to.js +1 -0
- package/staff/assets/calendar-B59f3S_A.js +1 -0
- package/staff/assets/embed-D9WnNWH8.js +1 -0
- package/staff/assets/icons-BU1Aax3i.js +1 -0
- package/staff/assets/index-CqPaHjl7.js +8 -0
- package/staff/assets/index-DXzmd8KH.css +1 -0
- package/staff/assets/react-3MWIyadV.js +9 -0
- package/staff/assets/registry-EirlpZlW.js +1 -0
- package/staff/assets/store-D_4Keuh8.js +1 -0
- package/staff/assets/surface-nav-6BkCPZCf.js +1 -0
- package/staff/assets/urlSync-DqVGf0-x.js +1 -0
- package/staff/favicon.svg +18 -0
- package/staff/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/staff/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/staff/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/staff/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/staff/index.html +20 -0
- package/staff/surface.json +107 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,u as g,t as be,D as _e,s as ve}from"./index-CqPaHjl7.js";import{C as ye,X as V,T as we,a as N,b as ke,M as Ce,S as G,c as Se,d as Pe,U as ce,R as Ie,e as X,f as ze,g as Ae,h as Oe,i as Ee,j as oe,k as $e,l as Fe,m as de,A as Te,n as Re,o as De,p as Le,q as Me}from"./icons-BU1Aax3i.js";import{u as l,i as Be,t as Ke,c as L,v as U,V as z,p as S,n as he,l as v,d as me,s as We,e as Ve,a as D,b as ue,f as Ue,g as $,h as P,m as C,C as M,D as R,P as He,j as K,k as Z,r as pe,o as qe,q as Qe,w as Ye,x as Ge,y as Xe,z as Ze,A as Je,B as es,E as ss,Q as ns,F as se,G as J,H as as,I as ts,J as rs,K as is,L as ls,M as ne,N as cs,O as os,R as ds,S as hs,T as ae,U as W,W as ms,X as us,Y as ps,Z as xs,_ as js,$ as fs,a0 as Ns,a1 as gs}from"./store-D_4Keuh8.js";import{isEmbedded as bs}from"./embed-D9WnNWH8.js";import"./react-3MWIyadV.js";import"./calendar-B59f3S_A.js";function b({children:s,onClick:n,tone:r="accent",size:t,disabled:i,type:m="button",title:u,className:j=""}){const h=r==="accent"?"":` rh-button--${r}`,a=t==="sm"?" rh-button--sm":"";return e.jsx("button",{type:m,className:`rh-button rh-btn${h}${a} ${j}`.trim(),onClick:n,disabled:i,title:u,children:s})}function k({children:s,tone:n,onClick:r,pressed:t,title:i,style:m}){const u=`rh-chip${n?` rh-chip--${n}`:""}${r?" rh-chipbtn":""}`;return r?e.jsx("button",{type:"button",className:u,onClick:r,"aria-pressed":t,title:i,style:m,children:s}):e.jsx("span",{className:u,title:i,style:m,children:s})}function E({children:s,className:n=""}){return e.jsx("span",{className:`rh-mono ${n}`.trim(),children:s})}function w({title:s,subtitle:n,actions:r,children:t,className:i=""}){return e.jsxs("section",{className:`rh-panel ${i}`.trim(),children:[s!==void 0&&e.jsx("header",{className:"rh-panel__head",children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("h2",{className:"rh-panel__title",children:s}),n!==void 0&&e.jsx("p",{className:"rh-panel__sub",children:n})]}),r!==void 0&&e.jsx("div",{style:{marginInlineStart:"auto",display:"flex",gap:7},children:r})]})}),e.jsx("div",{className:"rh-panel__body",children:t})]})}function q({label:s,value:n,hint:r,tone:t}){return e.jsxs("div",{className:"rh-kpi",children:[e.jsx("div",{className:"rh-kpi__label",children:s}),e.jsx("div",{className:"rh-kpi__value rh-mono",style:t?{color:`var(--${t})`}:void 0,children:n}),r!==void 0&&e.jsx("div",{className:"rh-kpi__hint",children:r})]})}function A({name:s,tint:n,ini:r,large:t,title:i}){const m=l(u=>u.theme==="dark");return e.jsx("span",{className:`rh-avatar${t?" rh-avatar--lg":""}`,style:{background:Ke(n,m),color:m?"#f4f4f6":"#191920"},title:i??s,"aria-hidden":"true",children:r??Be(s)})}function I({label:s,children:n,hint:r}){return e.jsxs("label",{className:"rh-field",children:[e.jsx("span",{className:"rh-label",children:s}),n,r!==void 0&&e.jsx("span",{style:{fontSize:11.5,fontWeight:600,color:"var(--fg-subtle)"},children:r})]})}function B({icon:s,title:n,body:r,action:t}){return e.jsxs("div",{className:"rh-empty",children:[s!==void 0&&e.jsx("div",{className:"rh-empty__icon",children:s}),e.jsx("div",{className:"rh-empty__title",children:n}),r!==void 0&&e.jsx("div",{className:"rh-empty__body",children:r}),t!==void 0&&e.jsx("div",{style:{marginBlockStart:14},children:t})]})}function _s({children:s}){return e.jsx("p",{className:"rh-honest",children:s})}function vs(){const{t:s}=g(),n=l(t=>t.toasts),r=l(t=>t.dismissToast);return e.jsx("div",{className:"rh-toasts",role:"status","aria-live":"polite",children:n.map(t=>e.jsxs("div",{className:`rh-toast rh-toast--${t.tone}`,children:[t.tone==="pos"&&e.jsx(ye,{size:15,"aria-hidden":"true"}),e.jsx("span",{children:t.text}),e.jsx("button",{type:"button",className:"rh-toast__x",onClick:()=>r(t.id),"aria-label":s("chrome.toast.dismiss"),children:e.jsx(V,{size:14,"aria-hidden":"true"})})]},t.id))})}const Y=["checked_in","roomed","with_clinician","ready"];function ys(s){return ue(s)?Y.indexOf(s):s==="done"?Y.length-1:-1}function ws(){const{t:s}=g(),n=l(x=>x.panelRef),r=l(x=>x.appts),t=l(x=>x.walkIns),i=l(x=>x.openPanel),m=l(x=>x.advanceVisit),u=l(x=>x.checkIn),j=l(x=>x.markNoShow),h=l(x=>x.askCancel),a=l(x=>x.openPatient);if(n===null)return null;const o=r.find(x=>x.id===n);if(!o)return null;const f=L(o.clinician),c=U(z,o.type),p=S(o.patient,t[o.patient]??null),y=he(o.status),d=o.status==="done"||o.status==="no_show"||o.status==="cancelled";return e.jsx("div",{className:"rh-modal-scrim",onClick:x=>{x.target===x.currentTarget&&i(null)},children:e.jsxs("div",{className:"rh-modal rh-panelsheet",role:"dialog","aria-modal":"true","aria-label":s("panel.title",{ref:o.id}),children:[e.jsxs("div",{className:"rh-panelsheet__head",children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("h2",{className:"rh-modal__title",children:e.jsx(E,{children:o.id})}),e.jsxs("p",{className:"rh-panel__sub",children:[v(c.label)," · ",me(c.minutes)]})]}),e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn",style:{marginInlineStart:"auto"},onClick:()=>i(null),"aria-label":s("panel.close"),children:e.jsx(V,{size:17,"aria-hidden":"true"})})]}),e.jsxs("div",{className:"rh-facts",children:[e.jsxs("div",{className:"rh-fact",children:[e.jsx("span",{className:"rh-fact__k",children:s("panel.patient")}),e.jsx("span",{className:"rh-fact__v",children:p})]}),e.jsxs("div",{className:"rh-fact",children:[e.jsx("span",{className:"rh-fact__k",children:s("panel.when")}),e.jsx("span",{className:"rh-fact__v rh-mono",children:We(o.start,Ve(o,z))})]}),e.jsxs("div",{className:"rh-fact",children:[e.jsx("span",{className:"rh-fact__k",children:s("confirm.clinician")}),e.jsxs("span",{className:"rh-fact__v",children:[f!==null&&e.jsx(A,{name:f.name,tint:f.tint,ini:f.ini}),f?.name]})]}),e.jsxs("div",{className:"rh-fact",children:[e.jsx("span",{className:"rh-fact__k",children:s("panel.reason")}),e.jsx("span",{className:"rh-fact__v",children:v(o.reason)})]}),o.deskNote!==null&&e.jsxs("div",{className:"rh-fact",children:[e.jsx("span",{className:"rh-fact__k",children:s("panel.desknote")}),e.jsx("span",{className:"rh-fact__v",children:v(o.deskNote)})]})]}),e.jsx("div",{className:"rh-label",style:{marginBlockStart:16,marginBlockEnd:8},children:s("panel.status")}),e.jsx("div",{className:"rh-chain",children:Y.map((x,_)=>e.jsx("span",{className:`rh-chain__step${_<=ys(o.status)?" rh-chain__step--on":""}`,children:D(x)},x))}),d&&e.jsx("p",{className:"rh-honest",style:{marginBlockStart:14},children:D(o.status)}),e.jsxs("div",{className:"rh-panelsheet__actions",children:[o.status==="booked"&&e.jsx(b,{onClick:()=>u(o.id),children:s("panel.checkIn")}),ue(o.status)&&e.jsx(b,{onClick:()=>m(o.id),children:s("panel.advance",{status:D(y)})}),e.jsx(b,{tone:"ghost",onClick:()=>a(o.patient),children:s("panel.openPatient")}),o.status==="booked"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{tone:"ghost",onClick:()=>j(o.id),children:s("panel.noShow")}),e.jsx(b,{tone:"danger",onClick:()=>h(o.id),children:s("panel.cancel")})]})]})]})})}function ks(){const{t:s}=g(),n=l(a=>a.cancelRef),r=l(a=>a.appts),t=l(a=>a.now),i=l(a=>a.askCancel),m=l(a=>a.confirmCancel);if(n===null)return null;const u=r.find(a=>a.id===n);if(!u)return null;const j=Ue(u,t),h=L(u.clinician);return e.jsx("div",{className:"rh-modal-scrim",onClick:a=>{a.target===a.currentTarget&&i(null)},children:e.jsxs("div",{className:"rh-modal",role:"dialog","aria-modal":"true","aria-label":s("cancel.title",{ref:u.id}),children:[e.jsx("h2",{className:"rh-modal__title",children:s("cancel.title",{ref:u.id})}),e.jsx("p",{className:"rh-panel__sub",children:s("cancel.body",{when:`${$(u.date)}, ${P(u.start)}`,clinician:h?.name??""})}),j&&e.jsxs("div",{className:"rh-warnbox",children:[e.jsx(we,{size:16,"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:s("cancel.late.title")}),e.jsx("p",{children:s("cancel.late.body")})]})]}),e.jsxs("div",{className:"rh-modal__actions",children:[e.jsx(b,{tone:"ghost",onClick:()=>i(null),children:s("chrome.action.keep")}),e.jsx(b,{tone:"danger",onClick:m,children:s("cancel.confirm")})]})]})})}function Cs(){const{t:s}=g(),n=l(d=>d.cardFor),r=l(d=>d.openCard),t=l(d=>d.payCard),i=l(d=>d.charges),m=l(d=>d.payments),u=l(d=>d.appts),j=l(d=>d.confirmedRef),[h,a]=N.useState(""),[o,f]=N.useState(""),[c,p]=N.useState("");if(N.useEffect(()=>{n!==null&&(a(""),f(""),p(""))},[n]),n===null)return null;const y=(()=>{if(n==="booking"){const x=u.find(_=>_.id===j);return x?U(z,x.type).fee:0}const d=i.find(x=>x.id===n);return d?d.amount-m.filter(x=>x.charge===d.id).reduce((x,_)=>x+_.amount,0):0})();return e.jsx("div",{className:"rh-modal-scrim",onClick:d=>{d.target===d.currentTarget&&r(null)},children:e.jsxs("div",{className:"rh-modal",role:"dialog","aria-modal":"true","aria-label":s("card.title",{amount:C(y)}),children:[e.jsx("h2",{className:"rh-modal__title",children:s("card.title",{amount:C(y)})}),e.jsxs("div",{className:"rh-demobox",children:[e.jsx(ke,{size:16,"aria-hidden":"true"}),e.jsx("span",{children:s("card.demo")})]}),e.jsxs("div",{className:"rh-cardform",children:[e.jsx(I,{label:s("card.number"),children:e.jsx("input",{className:"rh-input rh-fld rh-mono",value:h,inputMode:"numeric",placeholder:"4242 4242 4242 4242",onChange:d=>a(d.target.value)})}),e.jsxs("div",{className:"rh-cardform__row",children:[e.jsx(I,{label:s("card.expiry"),children:e.jsx("input",{className:"rh-input rh-fld rh-mono",value:o,placeholder:"04/29",onChange:d=>f(d.target.value)})}),e.jsx(I,{label:s("card.cvc"),children:e.jsx("input",{className:"rh-input rh-fld rh-mono",value:c,placeholder:"123",onChange:d=>p(d.target.value)})})]})]}),e.jsxs("div",{className:"rh-modal__actions",children:[e.jsx(b,{tone:"ghost",onClick:()=>r(null),children:s("card.cancel")}),e.jsx(b,{onClick:t,children:s("card.pay",{amount:C(y)})})]})]})})}function Ss(){return e.jsx("div",{className:"rh-legend",children:M.map(s=>e.jsxs("span",{className:"rh-legend__item",children:[e.jsx("span",{className:"rh-legend__dot",style:{background:s.tint},"aria-hidden":"true"}),s.name,e.jsx("span",{className:"rh-legend__role",children:v(s.role)})]},s.id))})}const Ps=[{view:"daysheet",labelKey:"chrome.nav.daysheet",icon:Pe},{view:"waiting",labelKey:"chrome.nav.waiting",icon:ce},{view:"patients",labelKey:"chrome.nav.patients",icon:G},{view:"accounts",labelKey:"chrome.nav.accounts",icon:Ie},{view:"recalls",labelKey:"chrome.nav.recalls",icon:X},{view:"settings",labelKey:"chrome.nav.settings",icon:ze}];function te({onPick:s}){const{t:n}=g(),r=l(i=>i.view),t=l(i=>i.go);return e.jsx("nav",{className:"rh-sidebar__nav","aria-label":n("chrome.brand.desk"),children:Ps.map(i=>{const m=i.icon;return e.jsxs("button",{type:"button",className:"rh-navitem","aria-current":r===i.view?"page":void 0,onClick:()=>{t(i.view),s?.()},children:[e.jsx(m,{size:16,"aria-hidden":"true"}),n(i.labelKey)]},i.view)})})}function re(){const{t:s}=g();return e.jsxs("div",{className:"rh-sidebar__brand",children:[e.jsx("span",{className:"rh-sidebar__mark","aria-hidden":"true",children:e.jsx(G,{size:18})}),e.jsxs("span",{children:[e.jsx("span",{className:"rh-sidebar__name",children:s("chrome.brand")}),e.jsx("span",{className:"rh-sidebar__sub",style:{display:"block"},children:s("chrome.brand.desk")})]})]})}function ie(){const{t:s}=g();return e.jsxs("div",{className:"rh-sidebar__foot",children:[s("chrome.footer.copy"),e.jsx("span",{className:"rh-sidebar__chip rh-mono",children:s("chrome.footer.chip")})]})}function xe(){const{t:s}=g(),n=l(t=>t.theme),r=l(t=>t.toggleTheme);return e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn",onClick:r,"aria-label":s(n==="dark"?"chrome.dock.theme.light":"chrome.dock.theme.dark"),children:n==="dark"?e.jsx(Oe,{size:16,"aria-hidden":"true"}):e.jsx(Ee,{size:16,"aria-hidden":"true"})})}function Is(){const{t:s}=g(),[n,r]=N.useState(""),[t,i]=N.useState(!1),m=l(a=>a.openPatient),u=l(a=>a.now),j=n.trim().toLowerCase(),h=N.useMemo(()=>j.length<2?null:K.filter(a=>a.name.toLowerCase().includes(j)).slice(0,6),[j]);return e.jsxs("div",{className:"rh-topbar__search",children:[e.jsx(Ae,{size:15,"aria-hidden":"true"}),e.jsx("input",{className:"rh-topbar__input rh-fld",type:"search",value:n,placeholder:s("chrome.search.placeholder"),"aria-label":s("chrome.search.label"),onChange:a=>{r(a.target.value),i(!0)},onFocus:()=>i(!0),onBlur:()=>window.setTimeout(()=>i(!1),140)}),t&&h!==null&&e.jsxs("div",{className:"rh-searchpop rh-scroll",children:[h.length===0&&e.jsx("p",{className:"rh-searchpop__empty",children:s("chrome.search.empty",{query:n})}),h.length>0&&e.jsx("div",{className:"rh-searchpop__group",children:s("chrome.search.patients")}),h.map(a=>e.jsxs("button",{type:"button",className:"rh-searchpop__row",onMouseDown:()=>{m(a.id),r("")},children:[e.jsx(A,{name:a.name,tint:R.tint,ini:a.ini}),e.jsx("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:a.name}),e.jsx("span",{className:"rh-searchpop__meta rh-mono",children:Z(a.dob,u.date)})]},a.id))]})]})}function zs(){const{t:s}=g(),n=be();return n===null?null:n.source==="fallback"?e.jsx("span",{className:"rh-chip",title:s("chrome.utc.why"),children:s("chrome.utc.notice")}):e.jsx("span",{className:"rh-chip",title:s("chrome.zone.why",{zone:n.zone}),children:s("chrome.zone.notice",{zone:n.zone})})}function As({children:s}){const{t:n}=g(),r=l(i=>i.navOpen),t=l(i=>i.setNavOpen);return e.jsxs("div",{className:"rh-app",children:[e.jsxs("aside",{className:"rh-sidebar",children:[e.jsx(re,{}),e.jsx(te,{}),e.jsx(ie,{})]}),r&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:"rh-scrim","aria-label":n("chrome.menu.close"),onClick:()=>t(!1)}),e.jsxs("div",{className:"rh-sheet",role:"dialog","aria-modal":"true","aria-label":n("chrome.brand"),children:[e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(re,{}),e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn",style:{marginInlineStart:"auto",marginInlineEnd:12},onClick:()=>t(!1),"aria-label":n("chrome.menu.close"),children:e.jsx(V,{size:17,"aria-hidden":"true"})})]}),e.jsx(te,{onPick:()=>t(!1)}),e.jsx(ie,{})]})]}),e.jsxs("div",{className:"rh-main",children:[e.jsxs("header",{className:"rh-topbar",children:[e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn rh-narrow-only",onClick:()=>t(!0),"aria-label":n("chrome.menu.open"),children:e.jsx(Ce,{size:18,"aria-hidden":"true"})}),e.jsx(Is,{}),e.jsx("div",{className:"rh-topbar__spacer"}),e.jsx(zs,{}),e.jsx(xe,{}),e.jsxs("span",{className:"rh-userchip",children:[e.jsx(A,{name:R.name,tint:R.tint,ini:R.ini}),e.jsx("span",{className:"rh-wide-only",children:R.name})]})]}),e.jsx("main",{className:"rh-content",id:"main",children:s})]})]})}function Os({children:s}){const{t:n}=g(),r=l(m=>m.view),t=l(m=>m.go),i=[{view:"find",key:"chrome.nav.book"},{view:"myvisits",key:"chrome.nav.myvisits"},{view:"notfound",key:"chrome.nav.findus"}];return e.jsxs("div",{className:"rh-site",children:[e.jsxs("header",{className:"rh-site__head",children:[e.jsxs("button",{type:"button",className:"rh-site__brand",onClick:()=>t("find"),children:[e.jsx("span",{className:"rh-site__mark","aria-hidden":"true",children:e.jsx(G,{size:17})}),e.jsxs("span",{children:[e.jsx("span",{className:"rh-site__wordmark",children:n("chrome.brand")}),e.jsx("span",{className:"rh-site__tag",children:n("chrome.brand.site")})]})]}),e.jsx("nav",{className:"rh-site__nav","aria-label":n("chrome.brand.site"),children:i.map(m=>e.jsx("button",{type:"button",className:"rh-site__link","aria-current":r===m.view?"page":void 0,onClick:()=>t(m.view),children:n(m.key)},m.key))}),e.jsx("div",{style:{marginInlineStart:"auto"},children:e.jsx(xe,{})})]}),e.jsx("main",{className:"rh-site__body",id:"main",children:s}),e.jsxs("footer",{className:"rh-site__foot",children:[e.jsxs("span",{className:"rh-site__where",children:[e.jsx(Se,{size:13,"aria-hidden":"true"}),He]}),e.jsx("span",{children:n("chrome.footer.copy")}),e.jsx("span",{className:"rh-sidebar__chip rh-mono",children:n("chrome.footer.chip")})]})]})}function Es({children:s}){return e.jsx("div",{className:"rh-embedded",children:e.jsx("main",{className:"rh-content",id:"main",children:s})})}function $s({children:s}){const n=l(r=>r.persona);return bs()?e.jsx(Es,{children:s}):n==="clinic"?e.jsx(As,{children:s}):e.jsx(Os,{children:s})}function ee({addOn:s,style:n}){const{t:r,tAddOn:t}=g(),i=s.namesCompany?r("addon.host.notAffiliated"):(s.noCompanyKeys??[]).map(m=>t(m)).join(" ");return i.trim().length===0?null:e.jsx("p",{className:"rh-fine",style:n,children:i})}function Fs({addOnKey:s,messageKey:n,style:r}){const t=l(i=>i.registry).byKey(s);return t===void 0?null:e.jsxs(e.Fragment,{children:[e.jsx(je,{addOnKey:s,messageKey:n,style:r}),e.jsx(ee,{addOn:t})]})}function je({addOnKey:s,messageKey:n,style:r}){const{t}=g(),i=l(m=>m.registry).byKey(s);return i===void 0?null:e.jsx("span",{className:"rh-chip",style:r,children:t(n,{name:i.name})})}function Ts({from:s}){const n=l(i=>i.registry),t=[...new Set(s.filter(i=>i!==null))].sort().map(i=>n.byKey(i)).filter(i=>i!==void 0);return t.length===0?null:e.jsx(e.Fragment,{children:t.map(i=>e.jsx(ee,{addOn:i},i.key))})}const F=34,Rs={checked_in:"waiting.col.checked_in",roomed:"waiting.col.roomed",with_clinician:"waiting.col.with_clinician",ready:"waiting.col.ready"},Ds={card:"pay.method.card",cash:"pay.method.cash",transfer:"pay.method.transfer"};function Ls(){const{t:s}=g(),n=l(d=>d.appts),r=l(d=>d.now),t=l(d=>d.sheetDay),i=l(d=>d.setSheetDay),m=l(d=>d.openPanel),u=l(d=>d.walkIns),j=l(d=>d.prefill),h=l(d=>d.clearPrefill),a=J(),o=as(a,t),f=N.useMemo(()=>ts(n,M,t,a),[n,t,a]),c=N.useMemo(()=>rs(),[]),p=is(r,t),y=n.filter(d=>d.date===t).length;return e.jsxs("div",{className:"rh-screen",children:[e.jsxs("header",{className:"rh-head rh-head--row",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"rh-head__title",children:s("daysheet.title")}),e.jsx("p",{className:"rh-head__sub",children:ls(t)})]}),e.jsxs("div",{className:"rh-daynav",children:[e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn",onClick:()=>i(ne(t,-1)),"aria-label":s("daysheet.prev"),children:e.jsx($e,{size:17,"aria-hidden":"true"})}),e.jsx(b,{size:"sm",tone:t===r.date?"accent":"ghost",onClick:()=>i(r.date),children:s("daysheet.today")}),e.jsx("button",{type:"button",className:"rh-iconbtn rh-btn",onClick:()=>i(ne(t,1)),"aria-label":s("daysheet.next"),children:e.jsx(Fe,{size:17,"aria-hidden":"true"})})]})]}),e.jsx("p",{className:"rh-head__sub",style:{marginBlockEnd:12},children:s("daysheet.sub",{count:y,seen:cs(n,{date:t,minutes:r.minutes})},y)}),j!==null&&e.jsxs("div",{className:"rh-prefill",children:[e.jsx(X,{size:16,"aria-hidden":"true"}),e.jsx("span",{children:s("daysheet.prefill",{name:S(j.patient,u[j.patient]??null),reason:v(j.reason)})}),e.jsx("button",{type:"button",className:"rh-prefill__x",onClick:h,"aria-label":s("daysheet.prefill.clear"),children:e.jsx(V,{size:15,"aria-hidden":"true"})})]}),e.jsx(Ss,{}),os(t,a)?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"rh-note rh-narrow-only",children:s("daysheet.scrollHint")}),e.jsx("div",{className:"rh-sheetscroll rh-scroll",children:e.jsxs("div",{className:"rh-sheetgrid",children:[e.jsxs("div",{className:"rh-sheetgrid__head",children:[e.jsx("span",{className:"rh-sheetgrid__corner"}),f.map(d=>e.jsxs("span",{className:"rh-colhead",style:{borderBlockEndColor:d.clinician.tint},children:[e.jsx(A,{name:d.clinician.name,tint:d.clinician.tint,ini:d.clinician.ini}),e.jsxs("span",{children:[e.jsx("span",{className:"rh-colhead__name",children:d.clinician.name}),e.jsx("span",{className:"rh-colhead__role",children:v(d.clinician.role)})]})]},d.clinician.id))]}),e.jsxs("div",{className:"rh-sheetgrid__body",style:{height:c.length*F},children:[e.jsx("div",{className:"rh-times",children:c.map(d=>e.jsx("span",{className:"rh-times__t rh-mono",style:{height:F},children:d%60===0||d%60===30?P(d):""},d))}),f.map(d=>e.jsxs("div",{className:"rh-col",children:[c.map(x=>e.jsx("div",{className:`rh-colrow${ds(x)?" rh-colrow--break":""}`,style:{height:F}},x)),d.appts.map(x=>{const _=U(z,x.type),H=(x.start-hs)/ae*F,ge=_.minutes/ae*F-3;return e.jsxs("button",{type:"button",className:`rh-block rh-card rh-block--${x.status}`,style:{insetBlockStart:H,height:ge,background:`color-mix(in srgb, ${_.tint} 12%, var(--surface))`,borderInlineStartColor:_.tint},onClick:()=>m(x.id),"aria-label":s("daysheet.openVisit",{name:S(x.patient,u[x.patient]??null),time:P(x.start)}),children:[e.jsx("span",{className:"rh-block__dot",style:{background:_.tint},"aria-hidden":"true"}),e.jsx("span",{className:"rh-block__name",children:S(x.patient,u[x.patient]??null)}),_.minutes>15&&e.jsx("span",{className:"rh-block__reason",children:v(x.reason)})]},x.id)}),d.awayFor!==null&&e.jsx("span",{className:"rh-col__away",children:s("daysheet.away",{reason:d.awayFor})}),d.appts.length===0&&d.awayFor===null&&e.jsx("span",{className:"rh-col__empty",children:s("daysheet.empty")})]},d.clinician.id)),p!==null&&e.jsx("div",{className:"rh-nowline",style:{insetBlockStart:`${p*100}%`},"aria-hidden":"true",children:e.jsx("span",{className:"rh-nowline__t rh-mono",children:P(r.minutes)})})]})]})})]}):e.jsx(B,{icon:e.jsx(de,{size:22,"aria-hidden":"true"}),title:o===null?s("daysheet.closed",{date:$(t)}):s("daysheet.closedFor",{date:$(t),reason:o.reason}),body:o?.from==null?void 0:e.jsx(Fs,{addOnKey:o.from,messageKey:"addon.host.dayFrom"}),action:e.jsx(b,{onClick:()=>i(r.date),children:s("daysheet.today")})})]})}function Ms({appt:s}){const{t:n}=g(),r=l(o=>o.now),t=l(o=>o.walkIns),i=l(o=>o.advanceVisit),m=l(o=>o.openPanel),u=xs(s,r),j=fs(u),h=L(s.clinician),a=he(s.status);return e.jsxs("div",{className:"rh-wcard rh-card",children:[e.jsxs("div",{className:"rh-wcard__top",children:[h!==null&&e.jsx(A,{name:h.name,tint:h.tint,ini:h.ini}),e.jsx("span",{className:"rh-wcard__name",children:S(s.patient,t[s.patient]??null)}),e.jsx("span",{className:"rh-wcard__time rh-mono",children:P(s.start)})]}),e.jsxs("div",{className:"rh-wcard__mid",children:[e.jsxs(k,{tone:j==="ok"?void 0:j==="warn"?"warn":"danger",children:[e.jsx(de,{size:12,"aria-hidden":"true"}),e.jsx("span",{className:"rh-mono",children:js(u)})]}),e.jsx("button",{type:"button",className:"rh-linkish",onClick:()=>m(s.id),children:v(s.reason)})]}),e.jsx(b,{className:"rh-full",onClick:()=>i(s.id),children:s.status==="ready"?n("waiting.finish"):n("waiting.advance",{status:D(a)})})]})}function Bs(){const{t:s}=g(),n=l(h=>h.appts),r=l(h=>h.now),t=l(h=>h.walkIns),i=l(h=>h.checkIn),m=l(h=>h.markNoShow),u=N.useMemo(()=>es(n,r),[n,r]),j=N.useMemo(()=>ss(n,r),[n,r]);return e.jsxs("div",{className:"rh-screen",children:[e.jsxs("header",{className:"rh-head",children:[e.jsx("h1",{className:"rh-head__title",children:s("waiting.title")}),e.jsx("p",{className:"rh-head__sub",children:s("waiting.sub")})]}),e.jsxs("div",{className:"rh-waitlayout",children:[e.jsx("div",{className:"rh-board",children:ns.map(h=>e.jsxs("section",{className:"rh-boardcol",children:[e.jsxs("h2",{className:"rh-boardcol__head",children:[s(Rs[h]),e.jsx("span",{className:"rh-boardcol__n rh-mono",children:u[h].length})]}),u[h].length===0&&e.jsx("p",{className:"rh-boardcol__empty",children:s("waiting.empty")}),u[h].map(a=>e.jsx(Ms,{appt:a},a.id))]},h))}),e.jsx("aside",{className:"rh-lateStrip",children:e.jsxs(w,{title:s("waiting.late.title"),subtitle:s("waiting.late.sub"),children:[j.length===0&&e.jsx("p",{className:"rh-note",children:s("waiting.late.none")}),j.map(h=>e.jsxs("div",{className:"rh-laterow",children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("span",{className:"rh-laterow__name",children:S(h.patient,t[h.patient]??null)}),e.jsxs("span",{className:"rh-laterow__meta",children:[e.jsx(E,{children:P(h.start)})," · ",v(h.reason)]})]}),e.jsx(k,{tone:"danger",children:e.jsx("span",{className:"rh-mono",children:s("waiting.late.chip",{count:se(h,r)},se(h,r))})}),e.jsxs("div",{className:"rh-laterow__actions",children:[e.jsx(b,{size:"sm",onClick:()=>i(h.id),children:s("waiting.late.arrived")}),e.jsx(b,{size:"sm",tone:"ghost",onClick:()=>m(h.id),children:s("waiting.late.noShow")})]})]},h.id))]})})]})]})}function Ks({id:s}){const{t:n}=g(),r=l(p=>p.appts),t=l(p=>p.charges),i=l(p=>p.payments),m=l(p=>p.now),u=l(p=>p.openPanel),j=l(p=>p.closePatient),h=l(p=>p.openCard),a=ms(s),o=N.useMemo(()=>a===null?null:us(r,a.id,m),[a,r,m]),f=N.useMemo(()=>t.filter(p=>p.patient===s).map(p=>({charge:p,balance:ps(p,i)})).filter(p=>p.balance>0),[t,i,s]),c=N.useMemo(()=>pe(r,m).find(p=>p.patient===s)??null,[r,m,s]);return a===null||o===null?null:e.jsxs("div",{className:"rh-screen",children:[e.jsxs("button",{type:"button",className:"rh-backlink",onClick:j,children:[e.jsx(Te,{size:15,"aria-hidden":"true"}),n("patient.back")]}),e.jsxs("header",{className:"rh-profile",children:[e.jsx(A,{name:a.name,tint:M[0].tint,ini:a.ini,large:!0}),e.jsxs("div",{children:[e.jsx("h1",{className:"rh-head__title",children:a.name}),e.jsxs("p",{className:"rh-head__sub",children:[e.jsx(E,{children:Z(a.dob,m.date)})," · ",n("patient.dob")," ",e.jsx(E,{children:a.dob})," · ",n("patient.mobile")," ",e.jsx(E,{children:a.mobile})]})]}),a.allergies!==null&&e.jsxs(k,{tone:"warn",title:n("patients.allergies"),children:[e.jsx(oe,{size:12,"aria-hidden":"true"}),n("patients.allergies"),": ",v(a.allergies)]})]}),e.jsxs("div",{className:"rh-twocol",children:[e.jsx("div",{className:"rh-twocol__main",children:e.jsxs(w,{title:n("patient.history"),children:[o.past.length===0&&e.jsx("p",{className:"rh-note",children:n("patient.noHistory")}),e.jsx("div",{className:"rh-timeline",children:o.past.map(p=>e.jsxs("div",{className:"rh-tl-row",children:[e.jsx("span",{className:"rh-tl-dot",children:e.jsx(Re,{size:14,"aria-hidden":"true"})}),e.jsxs("div",{className:"rh-tl-body",children:[e.jsxs("div",{className:"rh-tl-head",children:[e.jsx("span",{className:"rh-tl-type",children:v(p.reason)}),e.jsxs("span",{className:"rh-tl-when rh-mono",children:[W(p.date)," ",P(p.start)]}),e.jsx(k,{children:D(p.status)})]}),e.jsxs("p",{className:"rh-tl-text",children:[L(p.clinician)?.name," ·"," ",v(U(z,p.type).label)]})]})]},p.id))})]})}),e.jsxs("aside",{className:"rh-rail",children:[e.jsxs(w,{title:n("patient.upcoming"),children:[o.upcoming.length===0&&e.jsx("p",{className:"rh-note",children:n("patient.none")}),o.upcoming.map(p=>e.jsxs("button",{type:"button",className:"rh-miniRow",onClick:()=>u(p.id),children:[e.jsx("span",{className:"rh-mono",children:W(p.date)}),e.jsx("span",{className:"rh-mono",children:P(p.start)}),e.jsx("span",{className:"rh-miniRow__t",children:v(p.reason)})]},p.id))]}),e.jsxs(w,{title:n("patient.outstanding"),children:[f.length===0&&e.jsx("p",{className:"rh-note",children:n("patient.settled")}),f.map(p=>e.jsxs("div",{className:"rh-miniRow",children:[e.jsx("span",{className:"rh-mono",children:p.charge.appt}),e.jsx("span",{className:"rh-mono rh-amount",children:C(p.balance)}),e.jsx(b,{size:"sm",onClick:()=>h(p.charge.id),children:n("chrome.action.pay")})]},p.charge.id))]}),e.jsx(w,{title:n("patient.recall"),children:c===null?e.jsx("p",{className:"rh-note",children:n("patient.recall.none")}):e.jsxs("p",{className:"rh-note",children:[n("recalls.dueOn",{date:$(c.due)})," ·"," ",n("recalls.every",{count:c.weeks},c.weeks)]})}),e.jsx(_s,{children:n("patient.honest")})]})]})]})}function Ws(){const{t:s}=g(),n=l(a=>a.patientQuery),r=l(a=>a.setPatientQuery),t=l(a=>a.openPatientId),i=l(a=>a.openPatient),m=l(a=>a.appts),u=l(a=>a.now);if(t!==null)return e.jsx(Ks,{id:t});const j=n.trim().toLowerCase(),h=K.filter(a=>j.length===0||a.name.toLowerCase().includes(j));return e.jsxs("div",{className:"rh-screen",children:[e.jsxs("header",{className:"rh-head",children:[e.jsx("h1",{className:"rh-head__title",children:s("patients.title")}),e.jsx("p",{className:"rh-head__sub",children:s("patients.sub",{count:K.length},K.length)})]}),e.jsx("div",{style:{maxWidth:380,marginBlockEnd:14},children:e.jsx(I,{label:s("patients.search"),children:e.jsx("input",{className:"rh-input rh-fld",type:"search",value:n,onChange:a=>r(a.target.value)})})}),h.length===0?e.jsx(B,{icon:e.jsx(ce,{size:22,"aria-hidden":"true"}),title:s("patients.empty")}):e.jsx("div",{className:"rh-plist",children:h.map(a=>{const o=Ze(m,a.id,u);return e.jsxs("button",{type:"button",className:"rh-prow rh-card",onClick:()=>i(a.id),"aria-label":s("patients.open",{name:a.name}),children:[e.jsx(A,{name:a.name,tint:M[0].tint,ini:a.ini}),e.jsx("span",{className:"rh-prow__name",children:a.name}),e.jsx("span",{className:"rh-prow__age rh-mono",children:Z(a.dob,u.date)}),e.jsx("span",{className:"rh-prow__last",children:o===null?s("patients.never"):Je(o.date,u.date)}),a.allergies!==null&&e.jsxs(k,{tone:"warn",children:[e.jsx(oe,{size:12,"aria-hidden":"true"}),v(a.allergies)]})]},a.id)})})]})}function Vs({chargeId:s,max:n}){const{t:r}=g(),t=l(f=>f.recordPayment),i=l(f=>f.openPayPopover),[m,u]=N.useState(String(n)),[j,h]=N.useState("card"),a=Number(m.replace(/[^\d.]/g,"")),o=Number.isFinite(a)&&a>n;return e.jsxs("div",{className:"rh-popover rh-paypop",children:[e.jsx("div",{className:"rh-popover__title",children:r("pay.title")}),e.jsx(I,{label:r("pay.amount"),children:e.jsx("input",{className:"rh-input rh-fld rh-mono",value:m,inputMode:"decimal",onChange:f=>u(f.target.value)})}),e.jsx("div",{className:"rh-seg rh-seg--full",role:"group","aria-label":r("pay.method"),children:["card","cash","transfer"].map(f=>e.jsx("button",{type:"button",className:"rh-seg__btn","aria-pressed":j===f,onClick:()=>h(f),children:r(Ds[f])},f))}),e.jsx(k,{onClick:()=>u(String(n)),children:r("pay.full",{amount:C(n)})}),o&&e.jsx("p",{className:"rh-badline",children:r("pay.overpay",{amount:C(n)})}),e.jsxs("div",{className:"rh-paypop__actions",children:[e.jsx(b,{size:"sm",tone:"ghost",onClick:()=>i(null),children:r("chrome.action.cancel")}),e.jsx(b,{size:"sm",onClick:()=>t(s,a,j),children:r("pay.take")})]})]})}function Us(){const{t:s}=g(),n=l(c=>c.charges),r=l(c=>c.payments),t=l(c=>c.appts),i=l(c=>c.now),m=l(c=>c.walkIns),u=l(c=>c.payChargeId),j=l(c=>c.openPayPopover),h=N.useMemo(()=>qe(n,r,i),[n,r,i]),a=Qe(r,i.date),o=Ye(n,r),f=Ge(t,i).length;return e.jsxs("div",{className:"rh-screen",children:[e.jsxs("header",{className:"rh-head",children:[e.jsx("h1",{className:"rh-head__title",children:s("accounts.title")}),e.jsx("p",{className:"rh-head__sub",children:s("accounts.sub")})]}),e.jsxs("div",{className:"rh-kpis",children:[e.jsx(q,{label:s("accounts.kpi.taken"),value:C(a),tone:"pos"}),e.jsx(q,{label:s("accounts.kpi.outstanding"),value:C(o),tone:o>0?"warn":void 0}),e.jsx(q,{label:s("accounts.kpi.noshow"),value:f,tone:f>0?"danger":void 0})]}),e.jsxs("div",{className:"rh-twocol",style:{marginBlockStart:16},children:[e.jsx("div",{className:"rh-twocol__main",children:e.jsxs(w,{title:s("accounts.open"),subtitle:s("accounts.open.sub"),children:[h.length===0&&e.jsx("p",{className:"rh-note",children:s("accounts.open.none")}),h.length>0&&e.jsxs("div",{className:"rh-table",children:[e.jsxs("div",{className:"rh-table__head",children:[e.jsx("span",{children:s("accounts.col.patient")}),e.jsx("span",{children:s("accounts.col.visit")}),e.jsx("span",{children:s("accounts.col.since")}),e.jsx("span",{className:"rh-amount",children:s("accounts.col.amount")}),e.jsx("span",{})]}),h.map(c=>{const p=c.balance<c.charge.amount;return e.jsxs("div",{className:"rh-table__row",children:[e.jsx("span",{className:"rh-table__name",children:S(c.charge.patient,m[c.charge.patient]??null)}),e.jsx("span",{className:"rh-mono",children:c.charge.appt}),e.jsxs("span",{children:[e.jsx(k,{tone:c.ageDays>30?"danger":c.ageDays>14?"warn":void 0,children:e.jsx("span",{className:"rh-mono",children:Xe(c.ageDays)})}),p&&e.jsx(k,{tone:"info",children:s("accounts.partial")})]}),e.jsx("span",{className:"rh-mono rh-amount",children:C(c.balance)}),e.jsxs("span",{className:"rh-table__act",children:[e.jsx(b,{size:"sm",tone:"ghost",onClick:()=>j(u===c.charge.id?null:c.charge.id),children:s("accounts.record")}),u===c.charge.id&&e.jsx(Vs,{chargeId:c.charge.id,max:c.balance})]})]},c.charge.id)})]})]})}),e.jsx("aside",{className:"rh-rail",children:e.jsx(w,{title:s("accounts.fees"),subtitle:s("accounts.fees.sub"),children:z.map(c=>e.jsxs("div",{className:"rh-feerow",children:[e.jsx("span",{className:"rh-feerow__dot",style:{background:c.tint},"aria-hidden":"true"}),e.jsx("span",{className:"rh-feerow__name",children:v(c.label)}),e.jsx("span",{className:"rh-feerow__len rh-mono",children:me(c.minutes)}),e.jsx("span",{className:"rh-mono rh-amount",children:C(c.fee)})]},c.id))})})]})]})}function Hs(){const{t:s}=g(),n=l(a=>a.appts),r=l(a=>a.now),t=l(a=>a.walkIns),i=l(a=>a.bookThemIn),m=N.useMemo(()=>pe(n,r),[n,r]),u=m.filter(a=>a.overdue),j=m.filter(a=>!a.overdue),h=a=>{const o=n.find(f=>f.id===a.appt);return e.jsxs("div",{className:`rh-recall rh-card${a.overdue?" rh-recall--late":""}`,children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("span",{className:"rh-recall__name",children:S(a.patient,t[a.patient]??null)}),e.jsx("span",{className:"rh-recall__meta",children:s("recalls.from",{reason:v(a.reason),date:o?W(o.date):""})})]}),e.jsx("span",{className:"rh-recall__due",children:e.jsx(k,{tone:a.overdue?"danger":void 0,children:e.jsx("span",{className:"rh-mono",children:a.overdue?s("recalls.late",{count:a.overdueDays},a.overdueDays):s("recalls.dueOn",{date:W(a.due)})})})}),e.jsx(b,{size:"sm",onClick:()=>i(a.patient,a.reason),children:s("recalls.book")})]},a.appt)};return e.jsxs("div",{className:"rh-screen",children:[e.jsxs("header",{className:"rh-head",children:[e.jsx("h1",{className:"rh-head__title",children:s("recalls.title")}),e.jsx("p",{className:"rh-head__sub",children:s("recalls.sub")})]}),m.length===0?e.jsx(B,{icon:e.jsx(X,{size:22,"aria-hidden":"true"}),title:s("recalls.none")}):e.jsxs(e.Fragment,{children:[u.length>0&&e.jsx(w,{title:s("recalls.overdue"),children:u.map(h)}),j.length>0&&e.jsx(w,{title:s("recalls.due"),children:j.map(h)})]})]})}function qs(s){const n=s.classPrefix;return{slotFill:`.${n}-slot-fill`,slotSpare:`.${n}-slot-spare`,dock:`.${n}-dock`,shelfEntry:`.${n}-addon-card, .${n}-addon-row`,...s.selectors}}const Qs=["img","picture","svg","canvas","video","iframe","object","embed","input","select","textarea","button","progress","meter","hr","math"],Ys=/^rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)$/i,O=s=>s==null||s===""||s==="none",Gs=["top","right","bottom","left","block-start","block-end","inline-start","inline-end"];function Xs(s){if(!O(s.backgroundImage))return!0;const n=s.backgroundColor;if(!O(n)&&n!=="transparent"&&!Ys.test(n)||!O(s.boxShadow))return!0;for(const t of Gs){const i=s.getPropertyValue(`border-${t}-width`),m=s.getPropertyValue(`border-${t}-style`);if(!O(m)&&m!=="hidden"&&i!==""&&parseFloat(i)>0)return!0}const r=s.outlineWidth;return!O(s.outlineStyle)&&r!==""&&parseFloat(r)>0}const Q=/(?:^|;)\s*(background(?:-color|-image)?|box-shadow|outline|border(?:-(?:block|inline)-(?:start|end)|-top|-right|-bottom|-left)?)\s*:\s*([^;]+)/gi;function Zs(s){const n=s.getAttribute("style");if(n===null||n==="")return!1;Q.lastIndex=0;for(let r=Q.exec(n);r!==null;r=Q.exec(n)){const t=(r[2]??"").trim().toLowerCase();if(!(t===""||t==="none"||t==="0"||t==="transparent")&&!(/^0(?:[a-z%]*)?(?:\s|$)/.test(t)&&r[1]?.startsWith("border")===!0))return!0}return!1}let T=null;function Js(s,n){if(T===!1)return!1;for(const r of["::before","::after"]){let t="";try{t=s.getComputedStyle(n,r).content}catch{t=""}if(T===null&&t!==""&&(T=!0),!O(t)&&t!=="normal"&&t!=='""'&&t!=="''")return!0}return T===null&&(T=!1),!1}function fe(s){if(s.nodeType===3)return/\S/.test(s.nodeValue??"");if(s.nodeType!==1)return!1;const n=s;if(n.hasAttribute("hidden"))return!1;const r=n.ownerDocument?.defaultView??null;let t=null;if(r!==null&&(t=r.getComputedStyle(n),t.display==="none"||t.visibility==="hidden"||t.visibility==="collapse"))return!1;if(Qs.includes(n.localName)||t!==null&&Xs(t)||Zs(n))return!0;for(const i of Array.from(n.childNodes))if(fe(i))return!0;return!!(r!==null&&Js(r,n))}const en=s=>qs(s);function le(s,n){const r=/^\.([A-Za-z_-][\w-]*)$/.exec(s.trim());if(r===null)throw new Error(`host-kit: selectors.${n} must be one plain class selector (got ${JSON.stringify(s)}). AddOnSlot renders it as a className and the stylesheet keys off it; anything else would make the markup and the rule disagree silently.`);return r[1]}function sn(s,n){const r=en(s),t=le(r.slotFill,"slotFill"),i=le(r.slotSpare,"slotSpare");function m({slot:j,children:h}){const a=N.useRef(null),[o,f]=N.useState(!0);return N.useLayoutEffect(()=>{const c=a.current;if(c===null)return;const p=()=>f(fe(c));if(p(),typeof MutationObserver>"u")return;const y=new MutationObserver(d=>{d.every(_=>_.type==="attributes"&&_.target===c&&_.attributeName==="data-drew")||p()});return y.observe(c,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>y.disconnect()}),e.jsx("div",{ref:a,className:t,"data-add-on-slot":j,"data-drew":o?void 0:"none",children:h})}function u({slot:j,payload:h,forAddOn:a,fallback:o,wrap:f}){const{fills:c,settings:p}=n(j,a);if(c.length===0)return e.jsx(e.Fragment,{children:o??null});const y=c.map((_,H)=>e.jsx(m,{slot:j,children:_.fill.render({...h,settings:p[_.addOn]??{}})},`${j}-${H}`)),d=o===void 0?null:e.jsx("div",{className:i,children:o},`${j}-spare`),x=d===null?y:[...y,d];return e.jsx(e.Fragment,{children:f?f(x):x})}return{AddOnSlot:u,SlotFill:m}}decodeURIComponent(new URL("../../",import.meta.url).pathname).replace(/\/$/,"");const nn={classPrefix:"rh"},an=(s,n)=>({fills:l(r=>r.registry).fillsFor(s,l(r=>r.enabled),n),settings:l(r=>r.addOnSettings)}),{AddOnSlot:tn}=sn(nn,an);function rn(){return N.useMemo(()=>z.map(s=>({key:s.id,label:v(s.label),quantity:1,unitPrice:{amount:s.fee,currency:"GBP"}})),[])}function ln(){const{t:s}=g(),n=J(),r=l(t=>t.removeClosure);return n.length===0?e.jsx(B,{icon:e.jsx(De,{size:22,"aria-hidden":"true"}),title:s("settings.closed.empty")}):e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"rh-closures",children:n.map(t=>e.jsxs("li",{className:"rh-closure",children:[e.jsx(E,{className:"rh-closure__date",children:$(t.date)}),e.jsx("span",{className:"rh-closure__reason",children:t.reason}),e.jsx("span",{className:"rh-closure__who",children:t.clinician===null?s("settings.closed.whole"):L(t.clinician)?.name??t.clinician}),t.from===null?e.jsx(k,{children:s("settings.closed.own")}):e.jsx(je,{addOnKey:t.from,messageKey:"addon.host.fromAddOn"}),t.from===null&&e.jsx("button",{type:"button",className:"rh-closure__x",onClick:()=>r(t.date,t.reason),"aria-label":s("settings.closed.remove",{reason:t.reason,date:$(t.date)}),children:e.jsx(Le,{size:15,"aria-hidden":"true"})})]},`${t.date}·${t.clinician??""}·${t.reason}`))}),e.jsx(Ts,{from:n.map(t=>t.from)})]})}function cn(){const{t:s}=g(),n=l(c=>c.addClosure),r=l(c=>c.closures),[t,i]=N.useState(""),[m,u]=N.useState(""),[j,h]=N.useState(""),[a,o]=N.useState(null),f=()=>{const c=j===""?null:j;if(t.trim()===""||m.trim()==="")return o("needed");if(r.some(p=>p.date===t&&p.clinician===c))return o("duplicate");n(t,m,c),i(""),u(""),h(""),o(null)};return e.jsxs("form",{className:"rh-addclosure",onSubmit:c=>{c.preventDefault(),f()},children:[e.jsx(I,{label:s("settings.add.date"),children:e.jsx("input",{className:"rh-fld",type:"date",value:t,onChange:c=>{i(c.target.value),o(null)}})}),e.jsx(I,{label:s("settings.add.reason"),hint:s("settings.add.reasonHint"),children:e.jsx("input",{className:"rh-fld",type:"text",value:m,onChange:c=>{u(c.target.value),o(null)}})}),e.jsx(I,{label:s("settings.add.who"),children:e.jsxs("select",{className:"rh-fld",value:j,onChange:c=>{h(c.target.value),o(null)},children:[e.jsx("option",{value:"",children:s("settings.add.everyone")}),M.map(c=>e.jsx("option",{value:c.id,children:c.name},c.id))]})}),e.jsx(b,{type:"submit",children:s("settings.add.submit")}),a!==null&&e.jsx("p",{className:"rh-note rh-note--danger",role:"alert",children:s(a==="needed"?"settings.add.needed":"settings.add.duplicate")})]})}function on(){const{t:s,tAddOn:n}=g(),r=l(a=>a.registry),t=l(a=>a.enabled),i=l(a=>a.addOnSettings),m=l(a=>a.toggleAddOn),u=l(a=>a.patchAddOnSettings),j=rn(),h=N.useMemo(()=>new Map(Ns(gs,t,i).map(a=>[a.addOn,a.days])),[t,i]);return r.all.length===0?e.jsx("p",{className:"rh-note",children:s("addon.host.none")}):e.jsx("div",{className:"rh-shelf",children:r.all.map(a=>{const o=t.has(a.key),f=h.get(a.key)??0;return e.jsxs("section",{className:"rh-addon-card",children:[e.jsxs("header",{className:"rh-addon-card__head",children:[e.jsx("span",{className:"rh-addon-card__mark","aria-hidden":"true",children:a.monogram}),e.jsxs("div",{style:{minWidth:0},children:[e.jsx("h3",{className:"rh-addon-card__name",children:a.name}),e.jsx("p",{className:"rh-addon-card__line",children:n(a.lineKey)})]}),e.jsxs("div",{style:{marginInlineStart:"auto",display:"flex",gap:7},children:[o&&e.jsx(k,{tone:"pos",children:s("addon.host.isOn")}),e.jsx(b,{size:"sm",tone:o?"ghost":"accent",onClick:()=>m(a.key),children:s(o?"addon.host.off":"addon.host.on")})]})]}),e.jsx(ee,{addOn:a}),!o&&f>0&&e.jsxs("div",{className:"rh-dormant",children:[e.jsx("p",{children:s("addon.host.dormant",{count:f},f)}),e.jsx("p",{className:"rh-fine",children:s("addon.host.dormantHow")})]}),o&&e.jsx(tn,{slot:"settings.add-on.panel",forAddOn:a.key,payload:{patch:c=>u(a.key,c),samples:j},fallback:e.jsx("p",{className:"rh-note",children:s("addon.host.slotEmpty")})})]},a.key)})})}function dn(){const{t:s}=g(),n=J();return e.jsxs("div",{className:"rh-screen rh-column",children:[e.jsxs("header",{className:"rh-head",children:[e.jsx("h1",{className:"rh-head__title",children:s("settings.title")}),e.jsx("p",{className:"rh-head__sub",children:s("settings.sub")})]}),e.jsx(w,{title:s("settings.closed.title"),actions:n.length>0?e.jsx(k,{children:s("settings.closed.count",{count:n.length},n.length)}):void 0,children:e.jsx(ln,{})}),e.jsx(w,{title:s("settings.add.title"),children:e.jsx(cn,{})}),e.jsxs(w,{title:s("addon.host.title"),subtitle:s("addon.host.sub"),children:[e.jsx("p",{className:"rh-note",children:s("addon.host.reads")}),e.jsx(on,{})]})]})}function Ne(){const{t:s}=g(),n=l(i=>i.go),t=l(i=>i.persona)==="clinic";return e.jsx("div",{className:"rh-screen rh-column",children:e.jsx(B,{icon:e.jsx(Me,{size:22,"aria-hidden":"true"}),title:s("notfound.title"),body:s("notfound.body"),action:e.jsx(b,{onClick:()=>n(t?"daysheet":"find"),children:s(t?"notfound.action":"notfound.actionPatient")})})})}const hn={daysheet:Ls,waiting:Bs,patients:Ws,accounts:Us,recalls:Hs,settings:dn},mn={...hn,notfound:Ne};function un(){const s=l(r=>r.view),n=mn[s]??Ne;return e.jsx(n,{})}function bn(){const s=l(u=>u.initTheme),n=l(u=>u.escape),{locale:r,t,money:i,number:m}=g();return ve(r,t,i),N.useEffect(()=>{s()},[s]),N.useEffect(()=>{const u=j=>{j.key==="Escape"&&n()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[n]),e.jsxs(e.Fragment,{children:[e.jsx("a",{className:"rh-sr-only",href:"#main",children:t("chrome.skipToContent")}),e.jsx($s,{children:e.jsx(un,{})}),_e,e.jsx(vs,{}),e.jsx(ws,{}),e.jsx(ks,{}),e.jsx(Cs,{})]})}export{bn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function y(n,e,o){const a=n-(e<=2?1:0),t=Math.floor(a/400),r=a-t*400,s=Math.floor((153*(e+(e>2?-3:9))+2)/5)+o-1,i=r*365+Math.floor(r/4)-Math.floor(r/100)+s;return t*146097+i-719468}function h(n){const e=n+719468,o=Math.floor(e/146097),a=e-o*146097,t=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),r=t+o*400,s=a-(365*t+Math.floor(t/4)-Math.floor(t/100)),i=Math.floor((5*s+2)/153),l=s-Math.floor((153*i+2)/5)+1,c=i+(i<10?3:-9);return{y:r+(c<=2?1:0),m:c,d:l}}const k=(n,e)=>String(n).padStart(e,"0");function u({y:n,m:e,d:o}){return`${k(n,4)}-${k(e,2)}-${k(o,2)}`}function p(n){const e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(n);if(e===null)return null;const o=Number.parseInt(e[1],10),a=Number.parseInt(e[2],10),t=Number.parseInt(e[3],10);if(a<1||a>12||t<1||t>31)return null;const r=y(o,a,t);return u(h(r))===n?r:null}function w(n){return((n+4)%7+7)%7}function K(n){const e=n%19,o=Math.floor(n/100),a=n%100,t=Math.floor(o/4),r=o%4,s=Math.floor((o+8)/25),i=Math.floor((o-s+1)/3),l=(19*e+o-t-i+15)%30,c=Math.floor(a/4),d=a%4,f=(32+2*r+2*c-l-d)%7,v=Math.floor((e+11*l+22*f)/451),A=Math.floor((l+f-7*v+114)/31),E=(l+f-7*v+114)%31+1;return{y:n,m:A,d:E}}function N(n,e,o,a){if(a<0){const s=y(e===12?n+1:n,e===12?1:e+1,1)-1,i=(w(s)-o+7)%7;return h(s-i-7*(-a-1))}const t=y(n,e,1),r=(o-w(t)+7)%7;return h(t+r+7*(a-1))}const z=[{country:"CN",labelKey:"addon.holiday-calendars.area.cn",whyKey:"addon.holiday-calendars.announced.cn"},{country:"TW",labelKey:"addon.holiday-calendars.area.tw",whyKey:"addon.holiday-calendars.announced.tw"},{country:"EG",labelKey:"addon.holiday-calendars.area.eg",whyKey:"addon.holiday-calendars.announced.eg"}],m=1,O=4,S={country:"US",labelKey:"addon.holiday-calendars.area.us",noteKey:"addon.holiday-calendars.note.us",derivation:{statedIn:"addon.holiday-calendars.from.us",reviewedOn:"2026-08-28"},days:[{name:"New Year's Day",rule:{on:"fixed",month:1,day:1}},{name:"Birthday of Martin Luther King, Jr.",rule:{on:"weekday",month:1,weekday:m,nth:3}},{name:"Washington's Birthday",rule:{on:"weekday",month:2,weekday:m,nth:3}},{name:"Memorial Day",rule:{on:"weekday",month:5,weekday:m,nth:-1}},{name:"Juneteenth National Independence Day",rule:{on:"fixed",month:6,day:19}},{name:"Independence Day",rule:{on:"fixed",month:7,day:4}},{name:"Labor Day",rule:{on:"weekday",month:9,weekday:m,nth:1}},{name:"Columbus Day",rule:{on:"weekday",month:10,weekday:m,nth:2}},{name:"Veterans Day",rule:{on:"fixed",month:11,day:11}},{name:"Thanksgiving Day",rule:{on:"weekday",month:11,weekday:O,nth:4}},{name:"Christmas Day",rule:{on:"fixed",month:12,day:25}}]},b={country:"DE",labelKey:"addon.holiday-calendars.area.de",noteKey:"addon.holiday-calendars.note.de",derivation:{statedIn:"addon.holiday-calendars.from.de",reviewedOn:"2026-08-28"},days:[{name:"Neujahr",rule:{on:"fixed",month:1,day:1}},{name:"Karfreitag",rule:{on:"easter",offset:-2}},{name:"Ostermontag",rule:{on:"easter",offset:1}},{name:"Tag der Arbeit",rule:{on:"fixed",month:5,day:1}},{name:"Christi Himmelfahrt",rule:{on:"easter",offset:39}},{name:"Pfingstmontag",rule:{on:"easter",offset:50}},{name:"Tag der Deutschen Einheit",rule:{on:"fixed",month:10,day:3}},{name:"Erster Weihnachtstag",rule:{on:"fixed",month:12,day:25}},{name:"Zweiter Weihnachtstag",rule:{on:"fixed",month:12,day:26}}]},x=[{name:"Jour de l'An",rule:{on:"fixed",month:1,day:1}},{name:"Lundi de Pâques",rule:{on:"easter",offset:1}},{name:"Fête du Travail",rule:{on:"fixed",month:5,day:1}},{name:"Victoire 1945",rule:{on:"fixed",month:5,day:8}},{name:"Ascension",rule:{on:"easter",offset:39}},{name:"Lundi de Pentecôte",rule:{on:"easter",offset:50}},{name:"Fête nationale",rule:{on:"fixed",month:7,day:14}},{name:"Assomption",rule:{on:"fixed",month:8,day:15}},{name:"Toussaint",rule:{on:"fixed",month:11,day:1}},{name:"Armistice 1918",rule:{on:"fixed",month:11,day:11}},{name:"Noël",rule:{on:"fixed",month:12,day:25}}],C={country:"FR",labelKey:"addon.holiday-calendars.area.fr",noteKey:"addon.holiday-calendars.note.fr",derivation:{statedIn:"addon.holiday-calendars.from.fr",reviewedOn:"2026-08-28"},days:x},I={country:"FR",region:"alsace-moselle",labelKey:"addon.holiday-calendars.area.fr-alsace-moselle",noteKey:"addon.holiday-calendars.note.fr-alsace-moselle",derivation:{statedIn:"addon.holiday-calendars.from.fr-alsace-moselle",reviewedOn:"2026-08-28"},days:[...x,{name:"Vendredi saint",rule:{on:"easter",offset:-2}},{name:"Saint Étienne",rule:{on:"fixed",month:12,day:26}}]},T={country:"CZ",labelKey:"addon.holiday-calendars.area.cz",noteKey:"addon.holiday-calendars.note.cz",derivation:{statedIn:"addon.holiday-calendars.from.cz",reviewedOn:"2026-08-28"},days:[{name:"Nový rok a Den obnovy samostatného českého státu",rule:{on:"fixed",month:1,day:1}},{name:"Velký pátek",rule:{on:"easter",offset:-2}},{name:"Velikonoční pondělí",rule:{on:"easter",offset:1}},{name:"Svátek práce",rule:{on:"fixed",month:5,day:1}},{name:"Den vítězství",rule:{on:"fixed",month:5,day:8}},{name:"Den slovanských věrozvěstů Cyrila a Metoděje",rule:{on:"fixed",month:7,day:5}},{name:"Den upálení mistra Jana Husa",rule:{on:"fixed",month:7,day:6}},{name:"Den české státnosti",rule:{on:"fixed",month:9,day:28}},{name:"Den vzniku samostatného československého státu",rule:{on:"fixed",month:10,day:28}},{name:"Den boje za svobodu a demokracii",rule:{on:"fixed",month:11,day:17}},{name:"Štědrý den",rule:{on:"fixed",month:12,day:24}},{name:"První svátek vánoční",rule:{on:"fixed",month:12,day:25}},{name:"Druhý svátek vánoční",rule:{on:"fixed",month:12,day:26}}]},R={country:"DK",labelKey:"addon.holiday-calendars.area.dk",noteKey:"addon.holiday-calendars.note.dk",derivation:{statedIn:"addon.holiday-calendars.from.dk",reviewedOn:"2026-08-28"},days:[{name:"Nytårsdag",rule:{on:"fixed",month:1,day:1}},{name:"Skærtorsdag",rule:{on:"easter",offset:-3}},{name:"Langfredag",rule:{on:"easter",offset:-2}},{name:"Påskedag",rule:{on:"easter",offset:0}},{name:"Anden påskedag",rule:{on:"easter",offset:1}},{name:"Kristi himmelfartsdag",rule:{on:"easter",offset:39}},{name:"Pinsedag",rule:{on:"easter",offset:49}},{name:"Anden pinsedag",rule:{on:"easter",offset:50}},{name:"Juledag",rule:{on:"fixed",month:12,day:25}},{name:"Anden juledag",rule:{on:"fixed",month:12,day:26}}]},_=[S,b,C,I,T,R],j=[2026,2027],P={ownerKey:"addon.holiday-calendars.maint.owner",lastReviewed:"2026-08-28",nextReview:"2027-08-31"};function L(n,e){switch(n.on){case"fixed":return u({y:e,m:n.month,d:n.day});case"easter":{const o=K(e);return u(h(y(o.y,o.m,o.d)+n.offset))}case"weekday":return u(N(e,n.month,n.weekday,n.nth))}}function Y(n,e){return n.days.map(o=>({date:L(o.rule,e),name:o.name})).sort((o,a)=>o.date<a.date?-1:o.date>a.date?1:0)}const D="days";function M(n,e){return n.country===e.country&&(n.region??"")===(e.region??"")&&n.year===e.year}function g(n){return[...n].sort((e,o)=>e.date<o.date?-1:e.date>o.date?1:e.name<o.name?-1:e.name>o.name?1:0)}function F(n){const e=(n??{})[D];if(!Array.isArray(e))return[];const o=[];for(const a of e){if(typeof a!="object"||a===null)continue;const t=a,r=t.date,s=t.name;if(typeof r!="string"||p(r)===null||typeof s!="string"||s.trim()==="")continue;const i=t.from;if(typeof i!="object"||i===null){o.push({date:r,name:s});continue}const l=i,c=l.country,d=l.region,f=l.year;if(typeof c!="string"||typeof f!="number"){o.push({date:r,name:s});continue}o.push({date:r,name:s,from:typeof d=="string"&&d!==""?{country:c,region:d,year:f}:{country:c,year:f}})}return g(o)}function W(n){return{[D]:g(n)}}function J(n,e,o){const a=e.region===void 0?{country:e.country,year:o}:{country:e.country,region:e.region,year:o},t=Y(e,o),r=new Map(t.map(d=>[d.date,d.name])),s=[];for(const d of n){if(d.from!==void 0)continue;const f=r.get(d.date);f!==void 0&&s.push({date:d.date,yours:d.name,theirs:f})}if(s.length>0)return{ok:!1,collisions:[...s].sort((d,f)=>d.date<f.date?-1:1)};const i=n.filter(d=>d.from===void 0||!M(d.from,a)),l=n.length-i.length,c=g([...i,...t.map(d=>({...d,from:a}))]);return{ok:!0,days:c,added:c.length-i.length,replaced:l}}function U(n,e,o,a){const t=o===void 0?{country:e,year:a}:{country:e,region:o,year:a};return n.filter(r=>r.from===void 0||!M(r.from,t))}function V(n,e,o){if(p(e)===null)return{ok:!1,why:"date"};const a=o.trim();return a===""?{ok:!1,why:"name"}:n.some(t=>t.from===void 0&&t.date===e)?{ok:!1,why:"duplicate"}:{ok:!0,days:g([...n,{date:e,name:a}])}}function H(n,e){return n.filter(o=>!(o.from===void 0&&o.date===e))}function $(n){return F(n)}export{z as A,_ as D,P as M,j as Y,U as a,J as b,V as c,Y as e,H as f,$ as n,F as r,W as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const h=1;let c=!1;function E(){return c}const g=250,l={embedded:!1,navigated:()=>{},detach:()=>{}};async function R(f,w,p,n={}){if(c=!1,typeof window>"u"||window.parent===window)return l;const a=window.location.origin,e=await new Promise(i=>{let o=!1;const t=s=>{o||(o=!0,window.clearTimeout(v),window.removeEventListener("message",u),i(s))},u=s=>{if(s.origin!==a)return;const d=s.data;if(d===null||typeof d!="object"||d.type!=="adminium:host:init")return;const r=d;if(r.v!==1){console.error(`[adminium] surface bridge version mismatch: the host speaks v${String(r.v)}, this build speaks v${String(1)}. Rendering the app's own chrome instead. Rebuild the surface, or update Adminium.`),t(null);return}t(r)},v=window.setTimeout(()=>t(null),g);window.addEventListener("message",u),window.parent.postMessage({type:"adminium:surface:hello",v:1,appKey:f,side:w,path:p},a)});if(e===null)return l;c=!0,e.persona!==void 0&&n.onPersona?.(e.persona),e.locale!==void 0&&n.onLocale?.(e.locale),e.theme!==void 0&&n.onTheme?.(e.theme),e.path!==void 0&&e.path!==""&&n.onPath?.(e.path);const m=i=>{if(i.origin!==a)return;const o=i.data;if(o===null||typeof o!="object"||o.type!=="adminium:host:set")return;const t=o;t.theme!==void 0&&n.onTheme?.(t.theme),t.locale!==void 0&&n.onLocale?.(t.locale),t.path!==void 0&&n.onPath?.(t.path)};return window.addEventListener("message",m),{embedded:!0,navigated:i=>{window.parent.postMessage({type:"adminium:surface:navigate",v:1,path:i},a)},detach:()=>window.removeEventListener("message",m)}}export{h as BRIDGE_VERSION,R as connectToHost,E as isEmbedded};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function ee(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var P={exports:{}},n={};var D;function te(){if(D)return n;D=1;var y=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),M=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),b=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=b&&e[b]||e["@@iterator"],typeof e=="function"?e:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,L={};function v(e,t,o){this.props=e,this.context=t,this.refs=L,this.updater=o||q}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N(){}N.prototype=v.prototype;function g(e,t,o){this.props=e,this.context=t,this.refs=L,this.updater=o||q}var A=g.prototype=new N;A.constructor=g,$(A,v.prototype),A.isPureReactComponent=!0;var I=Array.isArray;function S(){}var c={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function H(e,t,o){var r=o.ref;return{$$typeof:y,type:e,key:t,ref:r!==void 0?r:null,props:o}}function V(e,t){return H(e.type,t,e.props)}function j(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function W(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return t[o]})}var z=/\/+/g;function O(e,t){return typeof e=="object"&&e!==null&&e.key!=null?W(""+e.key):t.toString(36)}function X(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(S,S):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function m(e,t,o,r,u){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case y:case p:i=!0;break;case C:return i=e._init,m(i(e._payload),t,o,r,u)}}if(i)return u=u(e),i=r===""?"."+O(e,0):r,I(u)?(o="",i!=null&&(o=i.replace(z,"$&/")+"/"),m(u,t,o,"",function(F){return F})):u!=null&&(j(u)&&(u=V(u,o+(u.key==null||e&&e.key===u.key?"":(""+u.key).replace(z,"$&/")+"/")+i)),t.push(u)),1;i=0;var l=r===""?".":r+":";if(I(e))for(var f=0;f<e.length;f++)r=e[f],s=l+O(r,f),i+=m(r,t,o,s,u);else if(f=G(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,s=l+O(r,f++),i+=m(r,t,o,s,u);else if(s==="object"){if(typeof e.then=="function")return m(X(e),t,o,r,u);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function x(e,t,o){if(e==null)return e;var r=[],u=0;return m(e,r,"","",function(s){return t.call(o,s,u++)}),r}function Q(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var U=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},J={map:x,forEach:function(e,t,o){x(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return x(e,function(){t++}),t},toArray:function(e){return x(e,function(t){return t})||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return n.Activity=Z,n.Children=J,n.Component=v,n.Fragment=h,n.Profiler=E,n.PureComponent=g,n.StrictMode=d,n.Suspense=w,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,n.__COMPILER_RUNTIME={__proto__:null,c:function(e){return c.H.useMemoCache(e)}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(e,t,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=$({},e.props),u=e.key;if(t!=null)for(s in t.key!==void 0&&(u=""+t.key),t)!Y.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=o;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}return H(e.type,u,r)},n.createContext=function(e){return e={$$typeof:M,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:k,_context:e},e},n.createElement=function(e,t,o){var r,u={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)Y.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(u[r]=t[r]);var i=arguments.length-2;if(i===1)u.children=o;else if(1<i){for(var l=Array(i),f=0;f<i;f++)l[f]=arguments[f+2];u.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)u[r]===void 0&&(u[r]=i[r]);return H(e,s,u)},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:R,render:e}},n.isValidElement=j,n.lazy=function(e){return{$$typeof:C,_payload:{_status:-1,_result:e},_init:Q}},n.memo=function(e,t){return{$$typeof:T,type:e,compare:t===void 0?null:t}},n.startTransition=function(e){var t=c.T,o={};c.T=o;try{var r=e(),u=c.S;u!==null&&u(o,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(S,U)}catch(s){U(s)}finally{t!==null&&o.types!==null&&(t.types=o.types),c.T=t}},n.unstable_useCacheRefresh=function(){return c.H.useCacheRefresh()},n.use=function(e){return c.H.use(e)},n.useActionState=function(e,t,o){return c.H.useActionState(e,t,o)},n.useCallback=function(e,t){return c.H.useCallback(e,t)},n.useContext=function(e){return c.H.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e,t){return c.H.useDeferredValue(e,t)},n.useEffect=function(e,t){return c.H.useEffect(e,t)},n.useEffectEvent=function(e){return c.H.useEffectEvent(e)},n.useId=function(){return c.H.useId()},n.useImperativeHandle=function(e,t,o){return c.H.useImperativeHandle(e,t,o)},n.useInsertionEffect=function(e,t){return c.H.useInsertionEffect(e,t)},n.useLayoutEffect=function(e,t){return c.H.useLayoutEffect(e,t)},n.useMemo=function(e,t){return c.H.useMemo(e,t)},n.useOptimistic=function(e,t){return c.H.useOptimistic(e,t)},n.useReducer=function(e,t,o){return c.H.useReducer(e,t,o)},n.useRef=function(e){return c.H.useRef(e)},n.useState=function(e){return c.H.useState(e)},n.useSyncExternalStore=function(e,t,o){return c.H.useSyncExternalStore(e,t,o)},n.useTransition=function(){return c.H.useTransition()},n.version="19.2.8",n}var B;function ne(){return B||(B=1,P.exports=te()),P.exports}var _=ne();const se=ee(_);const re=y=>y.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K=(...y)=>y.filter((p,h,d)=>!!p&&p.trim()!==""&&d.indexOf(p)===h).join(" ").trim();var oe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ue=_.forwardRef(({color:y="currentColor",size:p=24,strokeWidth:h=2,absoluteStrokeWidth:d,className:E="",children:k,iconNode:M,...R},w)=>_.createElement("svg",{ref:w,...oe,width:p,height:p,stroke:y,strokeWidth:d?Number(h)*24/Number(p):h,className:K("lucide",E),...R},[...M.map(([T,C])=>_.createElement(T,C)),...Array.isArray(k)?k:[k]]));const a=(y,p)=>{const h=_.forwardRef(({className:d,...E},k)=>_.createElement(ue,{ref:k,iconNode:p,className:K(`lucide-${re(y)}`,d),...E}));return h.displayName=`${y}`,h};const ce=a("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const ie=a("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const ae=a("CalendarOff",[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const ye=a("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);const fe=a("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const pe=a("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const le=a("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const he=a("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const de=a("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const ke=a("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const ve=a("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);const me=a("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const _e=a("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const Ee=a("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const Ce=a("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]]);const xe=a("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const Me=a("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);const Re=a("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);const we=a("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const Te=a("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const ge=a("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Ae=a("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);const Se=a("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const He=a("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);export{ce as A,fe as C,_e as M,Ce as R,Re as S,ge as T,Se as U,He as X,_ as a,ve as b,me as c,ie as d,ye as e,Me as f,xe as g,we as h,Ee as i,he as j,pe as k,le as l,de as m,Ae as n,ae as o,Te as p,ke as q,ne as r,se as s};
|