@medixdeck/ui 0.1.31 → 0.1.33
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -432,5 +432,5 @@
|
|
|
432
432
|
`});++o<e.length;)o&&n.push({type:"text",value:`
|
|
433
433
|
`}),n.push(e[o]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
434
434
|
`}),n}function co(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function uo(e,t){const n=Cp(e,t),o=n.one(e,void 0),i=pp(n),l=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
435
|
-
`},i),l}function Lp(e,t){return e&&"run"in e?async function(n,o){const i=uo(n,{file:o,...t});await e.run(i,o)}:function(n,o){return uo(n,{file:o,...e||t})}}function fo(e){if(e)throw e}var xn,po;function Ip(){if(po)return xn;po=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},l=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!h)return!1;var x;for(x in u);return typeof x>"u"||e.call(u,x)},a=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},c=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(o)return o(u,f).value}else return;return u[f]};return xn=function d(){var u,f,h,x,p,b,v=arguments[0],B=1,y=arguments.length,S=!1;for(typeof v=="boolean"&&(S=v,v=arguments[1]||{},B=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});B<y;++B)if(u=arguments[B],u!=null)for(f in u)h=c(v,f),x=c(u,f),v!==x&&(S&&x&&(l(x)||(p=i(x)))?(p?(p=!1,b=h&&i(h)?h:[]):b=h&&l(h)?h:{},a(v,{name:f,newValue:d(S,b,x)})):typeof x<"u"&&a(v,{name:f,newValue:x}));return v},xn}var Tp=Ip();const gn=Fi(Tp);function _n(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dp(){const e=[],t={run:n,use:o};return t;function n(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(d,...u){const f=e[++l];let h=-1;if(d){a(d);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,f?Ap(f,c)(...u):a(null,...u)}}function o(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ap(e,t){let n;return o;function o(...a){const c=e.length>a.length;let d;c&&a.push(i);try{d=e.apply(this,a)}catch(u){const f=u;if(c&&n)throw f;return i(f)}c||(d&&d.then&&typeof d.then=="function"?d.then(l,i):d instanceof Error?i(d):l(d))}function i(a,...c){n||(n=!0,t(a,...c))}function l(a){i(null,a)}}const ze={basename:zp,dirname:Rp,extname:Mp,join:Op,sep:"/"};function zp(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ft(e);let n=0,o=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,c=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=a));return n===o?o=a:o<0&&(o=e.length),e.slice(n,o)}function Rp(e){if(Ft(e),e.length===0)return".";let t=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){t=n;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Mp(e){Ft(e);let t=e.length,n=-1,o=0,i=-1,l=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){o=t+1;break}continue}n<0&&(a=!0,n=t+1),c===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===o+1?"":e.slice(i,n)}function Op(...e){let t=-1,n;for(;++t<e.length;)Ft(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Np(n)}function Np(e){Ft(e);const t=e.codePointAt(0)===47;let n=Pp(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Pp(e,t){let n="",o=0,i=-1,l=0,a=-1,c,d;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",o=0):(n=n.slice(0,d),o=n.length-1-n.lastIndexOf("/")),i=a,l=0;continue}}else if(n.length>0){n="",o=0,i=a,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),o=a-i-1;i=a,l=0}else c===46&&l>-1?l++:l=-1}return n}function Ft(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _p={cwd:Hp};function Hp(){return"/"}function Hn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wp(e){if(typeof e=="string")e=new URL(e);else if(!Hn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return qp(e)}function qp(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const o=t.codePointAt(n+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const mn=["history","path","basename","stem","extname","dirname"];class tl{constructor(t){let n;t?Hn(t)?n={path:t}:typeof t=="string"||Vp(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_p.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<mn.length;){const l=mn[o];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)mn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(t){yn(t,"basename"),bn(t,"basename"),this.path=ze.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(t){ho(this.basename,"dirname"),this.path=ze.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(t){if(bn(t,"extname"),ho(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hn(t)&&(t=Wp(t)),yn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(t){yn(t,"stem"),bn(t,"stem"),this.path=ze.join(this.dirname||"",t+(this.extname||""))}fail(t,n,o){const i=this.message(t,n,o);throw i.fatal=!0,i}info(t,n,o){const i=this.message(t,n,o);return i.fatal=void 0,i}message(t,n,o){const i=new ve(t,n,o);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function bn(e,t){if(e&&e.includes(ze.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ze.sep+"`")}function yn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ho(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $p=(function(e){const o=this.constructor.prototype,i=o[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,o),l}),Up={}.hasOwnProperty;class hr extends $p{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dp()}copy(){const t=new hr;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];t.use(...o)}return t.data(gn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wn("data",this.frozen),this.namespace[t]=n,this):Up.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const i=n.call(t,...o);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Nt(t),o=this.parser||this.Parser;return vn("parse",o),o(String(n),n)}process(t,n){const o=this;return this.freeze(),vn("process",this.parser||this.Parser),kn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,a){const c=Nt(t),d=o.parse(c);o.run(d,c,function(f,h,x){if(f||!h||!x)return u(f);const p=h,b=o.stringify(p,x);Kp(b)?x.value=b:x.result=b,u(f,x)});function u(f,h){f||!h?a(f):l?l(h):n(void 0,h)}}}processSync(t){let n=!1,o;return this.freeze(),vn("processSync",this.parser||this.Parser),kn("processSync",this.compiler||this.Compiler),this.process(t,i),go("processSync","process",n),o;function i(l,a){n=!0,fo(l),o=a}}run(t,n,o){xo(t),this.freeze();const i=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?l(void 0,o):new Promise(l);function l(a,c){const d=Nt(n);i.run(t,d,u);function u(f,h,x){const p=h||t;f?c(f):a?a(p):o(void 0,p,x)}}}runSync(t,n){let o=!1,i;return this.run(t,n,l),go("runSync","run",o),i;function l(a,c){fo(a),i=c,o=!0}}stringify(t,n){this.freeze();const o=Nt(n),i=this.compiler||this.Compiler;return kn("stringify",i),xo(t),i(t,o)}use(t,...n){const o=this.attachers,i=this.namespace;if(wn("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")d(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...h]=u;d(f,h)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(u.plugins),u.settings&&(i.settings=gn(!0,i.settings,u.settings))}function c(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const h=u[f];l(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function d(u,f){let h=-1,x=-1;for(;++h<o.length;)if(o[h][0]===u){x=h;break}if(x===-1)o.push([u,...f]);else if(f.length>0){let[p,...b]=f;const v=o[x][1];_n(v)&&_n(p)&&(p=gn(!0,v,p)),o[x]=[u,p,...b]}}}}const Gp=new hr().freeze();function vn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xo(e){if(!_n(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function go(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nt(e){return Yp(e)?e:new tl(e)}function Yp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Kp(e){return typeof e=="string"||Zp(e)}function Zp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mo=[],bo={allowDangerousHtml:!0},Jp=/^(https?|ircs?|mailto|xmpp)$/i,Qp=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function e1(e){const t=t1(e),n=n1(e);return r1(t.runSync(t.parse(n),n),e)}function t1(e){const t=e.rehypePlugins||mo,n=e.remarkPlugins||mo,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bo}:bo;return Gp().use(Af).use(n).use(Lp,o).use(t)}function n1(e){const t=e.children||"",n=new tl;return typeof t=="string"&&(n.value=t),n}function r1(e,t){const n=t.allowedElements,o=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||o1;for(const f of Qp)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Xp+f.id,void 0);return el(e,u),uu(e,{Fragment:r.Fragment,components:i,ignoreInvalidStyle:!0,jsx:r.jsx,jsxs:r.jsxs,passKeys:!0,passNode:!0});function u(f,h,x){if(f.type==="raw"&&x&&typeof h=="number")return a?x.children.splice(h,1):x.children[h]={type:"text",value:f.value},h;if(f.type==="element"){let p;for(p in fn)if(Object.hasOwn(fn,p)&&Object.hasOwn(f.properties,p)){const b=f.properties[p],v=fn[p];(v===null||v.includes(f.tagName))&&(f.properties[p]=d(String(b||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&o&&typeof h=="number"&&(p=!o(f,h,x)),p&&x&&typeof h=="number")return c&&f.children?x.children.splice(h,1,...f.children):x.children.splice(h,1),h}}}function o1(e){const t=e.indexOf(":"),n=e.indexOf("?"),o=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||o!==-1&&t>o||Jp.test(e.slice(0,t))?e:""}const i1={blue:{solid:"#0685FF",ring:"#0685FF"},purple:{solid:"#7700CC",ring:"#7700CC"}};function l1({items:e,allowMultiple:t=!1,defaultOpenIds:n=[],colorScheme:o="blue",answerType:i="HTML",haptic:l,disableHaptic:a=!1,...c}){const{trigger:d}=de(),u=i1[o],[f,h]=I.default.useState(new Set(n)),x=p=>{!a&&l!==!1&&d(l??"selection"),h(b=>{const v=new Set(b);return v.has(p)?v.delete(p):(t||v.clear(),v.add(p)),v})};return r.jsx(s.Box,{display:"flex",flexDirection:"column",gap:"4",...c,children:e.map(p=>{const b=f.has(p.id);return r.jsxs(s.Box,{bg:"bg.primary",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",transition:"border-color 0.2s",_hover:{borderColor:b?u.ring:"border"},children:[r.jsxs(s.Box,{as:"button",w:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4",px:"6",py:"5",bg:"transparent",border:"none",cursor:"pointer",textAlign:"left",onClick:()=>x(p.id),"aria-expanded":b,children:[r.jsx(s.Box,{fontSize:"lg",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",flex:"1",lineHeight:"short",children:p.question}),r.jsx(s.Box,{flexShrink:0,w:"10",h:"10",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s, border-color 0.2s, color 0.2s","aria-hidden":"true",style:{border:b?"none":"1.5px solid var(--medix-form-text)",background:b?u.solid:"transparent",color:b?"#ffffff":"inherit",flexShrink:0},children:b?r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:r.jsx("rect",{x:"3",y:"8.25",width:"12",height:"1.5",rx:"0.75",fill:" var(--medix-form-text)"})}):r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[r.jsx("rect",{x:"3",y:"8.25",width:"12",height:"1.5",rx:"0.75",fill:" var(--medix-form-text)"}),r.jsx("rect",{x:"8.25",y:"3",width:"1.5",height:"12",rx:"0.75",fill:" var(--medix-form-text)"})]})})]}),r.jsx(s.Box,{overflow:"hidden",maxH:b?"800px":"0px",opacity:b?1:0,transition:"max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease",children:r.jsx(s.Box,{px:"6",pb:"6",pt:"0",fontSize:"md",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"loose",children:typeof p.answer=="string"?i==="MD"?r.jsx(e1,{children:p.answer}):r.jsx("span",{dangerouslySetInnerHTML:{__html:Rc(p.answer)}}):p.answer})})]},p.id)})})}function a1({quote:e,authorName:t,authorTitle:n,authorAvatar:o,rating:i,...l}){return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",boxShadow:"none",_dark:{boxShadow:"none"},...l,children:[i!==void 0&&r.jsx(s.Box,{display:"flex",gap:"0.5",children:Array.from({length:5}).map((a,c)=>r.jsx(s.Box,{as:"span",fontSize:"sm",color:c<i?"#F59E0B":"text.muted",children:"★"},c))}),r.jsxs(s.Box,{as:"blockquote",m:"0",fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"loose",fontStyle:"italic",children:['"',e,'"']}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",mt:"auto",children:[o?r.jsx("img",{src:o,alt:t,style:{width:36,height:36,borderRadius:"50%",objectFit:"cover"}}):r.jsx(s.Box,{w:"9",h:"9",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"sm",fontWeight:"semibold",color:"white",flexShrink:0,children:t.charAt(0).toUpperCase()}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-body)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:n})]})]})]})}const s1={blue:{solid:"#0685FF",token:"blue.500"},purple:{solid:"#7700CC",token:"purple.500"}};function c1(e){if(!e)return null;try{const t=new Date(e);return isNaN(t.getTime())?null:{day:String(t.getUTCDate()),weekday:t.toLocaleDateString("en-US",{weekday:"short",timeZone:"UTC"}).toUpperCase()}}catch{return null}}function u1({title:e,excerpt:t,category:n,date:o,coverImage:i,href:l,onClick:a,colorScheme:c="blue",...d}){const u=!!(l||a),f=c1(o),h=s1[c],x={display:"block",textDecoration:"none",background:"transparent",border:"none",padding:0,cursor:u?"pointer":"default",textAlign:"left"},p=r.jsxs(s.Box,{bg:"bg.primary",borderRadius:"card",overflow:"hidden",transition:"transform 0.22s ease, box-shadow 0.22s ease",_dark:{bg:"bg.primary"},_hover:u?{transform:"translateY(-4px)"}:void 0,...d,children:[r.jsxs(s.Box,{position:"relative",overflow:"hidden",children:[i?r.jsx("img",{src:i,alt:e,style:{width:"100%",height:300,objectFit:"cover",display:"block",borderRadius:"20px"}}):r.jsx(s.Box,{borderRadius:"card",h:"300px",style:{background:"linear-gradient(135deg, #0685FF 0%, #7700CC 100%)",borderRadius:"20px"}}),f&&r.jsxs(s.Box,{position:"absolute",bottom:"3",right:"3",bg:"white",borderRadius:"10px",px:"3",py:"2",display:"flex",flexDirection:"column",alignItems:"center",minW:"44px",border:"1px solid",borderColor:"border",boxShadow:"none",children:[r.jsx(s.Box,{style:{fontSize:22,fontWeight:700,color:h.solid,lineHeight:1,fontFamily:"var(--font-heading)"},children:f.day}),r.jsx(s.Box,{style:{fontSize:10,fontWeight:600,color:"#6B7280",letterSpacing:"0.08em",marginTop:2,fontFamily:"var(--font-body)"},children:f.weekday})]})]}),r.jsxs(s.Box,{px:"0",pt:"3",pb:"4",children:[n&&r.jsx(s.Box,{display:"inline-flex",alignItems:"center",px:"3",py:"1",mb:"3",borderRadius:"full",bg:h.token,color:"white",fontSize:"xs",fontWeight:"medium",fontFamily:"var(--font-body)",letterSpacing:"wide",children:n}),r.jsx(s.Box,{fontSize:"md",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",lineHeight:"snug",mb:t?"2":"0",children:e}),t&&r.jsx(s.Box,{fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"relaxed",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t})]})]});return l?r.jsx("a",{href:l,style:x,onClick:a,children:p}):a?r.jsx("button",{type:"button",style:x,onClick:a,children:p}):p}function d1({columns:e,data:t,rowKey:n="id",isLoading:o=!1,emptyMessage:i="No data available",sortable:l=!1,sortKey:a,sortDirection:c="asc",onSort:d,striped:u=!0,onRowClick:f,caption:h,enablePagination:x=!1,pageSize:p=10,page:b,onPageChange:v,enableSearch:B=!1,searchPlaceholder:y="Search table...",searchQuery:S,onSearchChange:j,style:C,className:F,stickyFirstColumn:w=!1,haptic:D,disableHaptic:E=!1}){const{trigger:z}=de(),[N,R]=U.useState(""),T=S??N,[q,M]=U.useState(1),k=b??q,[P,$]=U.useState(a),[Q,J]=U.useState(c),g=a??P,H=a?c:Q,A=X=>{R(X),M(1),j==null||j(X)},m=X=>{!E&&D!==!1&&z(D??"selection");const ne=g===X&&H==="asc"?"desc":"asc";$(X),J(ne),d==null||d(X,ne)},O=X=>{M(X),v==null||v(X)},G=U.useMemo(()=>{if(!T.trim())return t;const X=T.toLowerCase().trim();return t.filter(ne=>e.some(le=>{const ge=ne[le.key];return ge==null?!1:String(ge).toLowerCase().includes(X)}))},[t,e,T]),K=U.useMemo(()=>!g||d?G:[...G].sort((X,ne)=>{const le=X[g],ge=ne[g],we=String(le??""),xe=String(ge??""),je=we.localeCompare(xe,void 0,{numeric:!0,sensitivity:"base"});return H==="asc"?je:-je}),[G,g,H,d]),Y=K.length,Z=U.useMemo(()=>{if(!x)return K;const X=(k-1)*p;return K.slice(X,X+p)},[K,x,k,p]),ae=({colKey:X})=>g!==X?r.jsx(s.Text,{as:"span",opacity:.3,ml:"1",fontSize:"xs",children:"↕"}):r.jsx(s.Text,{as:"span",ml:"1",color:"text.heading",fontSize:"xs",children:H==="asc"?"↑":"↓"});return r.jsxs(s.Box,{border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",bg:"bg",boxShadow:"none",_dark:{boxShadow:"none"},style:C,className:F,children:[B&&r.jsx(s.Box,{p:"4",borderBottom:"1px solid",borderColor:"border",bg:"bg",children:r.jsx(Kn,{placeholder:y,value:T,onChange:X=>A(X.target.value),maxW:"360px"})}),r.jsx(s.Box,{overflowX:"auto",children:r.jsxs(s.Box,{as:"table",w:"full",style:{borderCollapse:"collapse"},"aria-label":h,children:[h&&r.jsx("caption",{style:{display:"none"},children:h}),r.jsx(s.Box,{as:"thead",children:r.jsx(s.Box,{as:"tr",bg:"bg.subtle",borderBottom:"1px solid",borderColor:"border",children:e.map((X,ne)=>{const le=w&&ne===0;return r.jsx(s.Box,{as:"th",py:"3",px:"4",textAlign:X.align??"left",minW:X.minWidth,fontSize:"xs",fontWeight:"600",letterSpacing:"0.05em",textTransform:"uppercase",color:"text.muted",fontFamily:"var(--font-body)",whiteSpace:"nowrap",userSelect:"none",cursor:X.sortable||l?"pointer":"default",_hover:X.sortable||l?{color:"text.heading"}:void 0,onClick:()=>X.sortable||l?m(X.key):void 0,"aria-sort":g===X.key?H==="asc"?"ascending":"descending":void 0,position:le?"sticky":void 0,left:le?0:void 0,zIndex:le?3:void 0,bg:le?"bg.subtle":void 0,borderRight:le?"1px solid":void 0,borderColor:le?"border":void 0,boxShadow:le?"2px 0 4px rgba(0, 0, 0, 0.05)":void 0,children:r.jsxs(s.Flex,{as:"span",align:"center",justify:X.align==="right"?"flex-end":X.align==="center"?"center":"flex-start",children:[X.label,(X.sortable||l)&&r.jsx(ae,{colKey:X.key})]})},X.key)})})}),r.jsx(s.Box,{as:"tbody",children:o?Array.from({length:5}).map((X,ne)=>r.jsx(s.Box,{as:"tr",borderBottom:"1px solid",borderColor:"border",children:e.map(le=>r.jsx(s.Box,{as:"td",py:"3.5",px:"4",children:r.jsx(s.Box,{h:"4",bg:"bg.subtle",borderRadius:"full",w:`${60+Math.random()*30}%`,style:{animation:"medix-shimmer 1.5s infinite"}})},le.key))},ne)):Z.length===0?r.jsx(s.Box,{as:"tr",children:r.jsx("td",{colSpan:e.length,style:{textAlign:"center",padding:"48px 16px"},children:r.jsx(s.Text,{color:"text.muted",fontFamily:"var(--font-body)",fontSize:"sm",children:i})})}):Z.map((X,ne)=>{const le=String(X[n]??ne);return r.jsx(s.Box,{as:"tr",onClick:()=>{f&&!E&&D!==!1&&z(D??"selection"),f==null||f(X,ne)},bg:u&&ne%2===1?"bg.subtle":"transparent",borderBottom:"1px solid",borderColor:"border",cursor:f?"pointer":"default",transition:"background 0.15s ease",_hover:{bg:"bg.subtle"},children:e.map((ge,we)=>{const xe=w&&we===0;return r.jsx(s.Box,{as:"td",py:"3.5",px:"4",textAlign:ge.align??"left",fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",verticalAlign:"middle",position:xe?"sticky":void 0,left:xe?0:void 0,zIndex:xe?2:void 0,bg:xe?u&&ne%2===1?"bg.subtle":"bg":void 0,borderRight:xe?"1px solid":void 0,borderColor:xe?"border":void 0,boxShadow:xe?"2px 0 4px rgba(0, 0, 0, 0.05)":void 0,children:ge.render?ge.render(X[ge.key],X,ne):String(X[ge.key]??"—")},ge.key)})},le)})})]})}),x&&r.jsxs(s.Flex,{p:"4",borderTop:"1px solid",borderColor:"border",bg:"bg",align:"center",justify:"space-between",flexWrap:"wrap",gap:"4",children:[r.jsxs(s.Text,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:["Showing ",Y===0?0:(k-1)*p+1," to"," ",Math.min(k*p,Y)," of ",Y," entries"]}),r.jsx(ui,{total:Y,pageSize:p,currentPage:k,onChange:O,compact:!0,haptic:D,disableHaptic:E})]})]})}function f1({name:e,specialty:t,location:n,avatar:o,rating:i,reviewCount:l,experience:a,consultationFee:c,isVerified:d=!1,isAvailable:u=!1,availabilityLabel:f="Available",onBookClick:h,onViewClick:x,variant:p="standard",...b}){return p==="featured"?r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},display:"flex",flexDirection:"column",...b,children:[o?r.jsx("img",{src:o,alt:e,style:{width:"100%",height:240,objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"100%",h:"240px",bg:"blue.100",display:"flex",alignItems:"center",justifyContent:"center",children:r.jsx(s.Box,{fontSize:"4xl",fontWeight:"bold",color:"blue.500",children:e.charAt(0)})}),r.jsxs(s.Box,{p:"5",display:"flex",flexDirection:"column",gap:"4",children:[r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),d&&r.jsx(Oe,{label:"This practitioner's identity has been verified by MedixDeck",placement:"top",children:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",flexShrink:0},children:[r.jsx("path",{d:"M10.5213 2.62368C11.3147 1.75255 12.6853 1.75255 13.4787 2.62368L14.4989 3.74391C14.8998 4.18418 15.4761 4.42288 16.071 4.39508L17.5845 4.32435C18.7614 4.26934 19.7307 5.23857 19.6757 6.41554L19.6049 7.92905C19.5771 8.52388 19.8158 9.10016 20.2561 9.50111L21.3763 10.5213C22.2475 11.3147 22.2475 12.6853 21.3763 13.4787L20.2561 14.4989C19.8158 14.8998 19.5771 15.4761 19.6049 16.071L19.6757 17.5845C19.7307 18.7614 18.7614 19.7307 17.5845 19.6757L16.071 19.6049C15.4761 19.5771 14.8998 19.8158 14.4989 20.2561L13.4787 21.3763C12.6853 22.2475 11.3147 22.2475 10.5213 21.3763L9.50111 20.2561C9.10016 19.8158 8.52388 19.5771 7.92905 19.6049L6.41554 19.6757C5.23857 19.7307 4.26934 18.7614 4.32435 17.5845L4.39508 16.071C4.42288 15.4761 4.18418 14.8998 3.74391 14.4989L2.62368 13.4787C1.75255 12.6853 1.75255 11.3147 2.62368 10.5213L3.74391 9.50111C4.18418 9.10016 4.42288 8.52388 4.39508 7.92905L4.32435 6.41554C4.26934 5.23857 5.23857 4.26934 6.41554 4.32435L7.92905 4.39508C8.52388 4.42288 9.10016 4.18418 9.50111 3.74391L10.5213 2.62368Z",fill:"#0685FF"}),r.jsx("path",{d:"M10.5 15.5L6.5 11.5L7.91 10.09L10.5 12.67L16.09 7.09L17.5 8.5L10.5 15.5Z",fill:"white"})]})})]}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",mt:"0.5",children:[t,n?` • ${n}`:""]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"4",mt:"1",children:[u&&r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"1.5",bg:"status.success.tint",color:"status.success",borderRadius:"md",fontSize:"sm",fontWeight:"medium",children:[r.jsx(s.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:"status.success"}),f]}),u&&a&&r.jsx(s.Box,{w:"1px",h:"20px",bg:"border"}),a&&r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",fontSize:"sm",color:"text.heading",children:[r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"var(--chakra-colors-text-muted)",children:[r.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),r.jsx("path",{d:"M9 12l2 2 4-4"})]}),a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",my:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),r.jsxs(s.Box,{display:"flex",gap:"3",alignItems:"center",children:[x&&r.jsx(s.Box,{as:"button",px:"3",py:"2",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.body",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{color:"blue.500"},onClick:x,children:"view"}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]})]})]}):p==="compact"?r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},...b,children:[r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",gap:"4",children:[r.jsx(s.Box,{flexShrink:0,children:o?r.jsx("img",{src:o,alt:e,style:{width:64,height:64,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"64px",h:"64px",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",fontWeight:"bold",color:"white",children:e.charAt(0)})}),r.jsxs(s.Box,{pt:"1",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",children:[t,n&&p!=="compact"?` • ${n}`:""]})]})]}),x&&r.jsx(s.Box,{as:"button",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.heading",border:"none",cursor:"pointer",_hover:{color:"blue.500"},onClick:x,pt:"1",children:"View"})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1.5",fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",children:[r.jsx(s.Box,{as:"span",color:"status.warning",mt:"-2px",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}),r.jsxs(s.Box,{as:"span",color:"text.heading",mr:"1",children:[(i==null?void 0:i.toFixed(1))||"New"," ",l?`(${l})`:""]}),n&&r.jsxs(s.Box,{as:"span",children:[" • ",n]}),a&&r.jsxs(s.Box,{as:"span",children:[" • ",a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",mt:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"1",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]}):r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},...b,children:[r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",gap:"4",minW:"0",flex:"1",children:[r.jsx(s.Box,{flexShrink:0,children:o?r.jsx("img",{src:o,alt:e,style:{width:64,height:64,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"64px",h:"64px",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",fontWeight:"bold",color:"white",children:e.charAt(0)})}),r.jsxs(s.Box,{pt:"1",minW:"0",flex:"1",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",minW:"0",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minW:"0",flex:"1",children:e}),d&&r.jsx(Oe,{label:"This practitioner's identity has been verified by MedixDeck",placement:"top",children:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",flexShrink:0},children:[r.jsx("path",{d:"M10.5213 2.62368C11.3147 1.75255 12.6853 1.75255 13.4787 2.62368L14.4989 3.74391C14.8998 4.18418 15.4761 4.42288 16.071 4.39508L17.5845 4.32435C18.7614 4.26934 19.7307 5.23857 19.6757 6.41554L19.6049 7.92905C19.5771 8.52388 19.8158 9.10016 20.2561 9.50111L21.3763 10.5213C22.2475 11.3147 22.2475 12.6853 21.3763 13.4787L20.2561 14.4989C19.8158 14.8998 19.5771 15.4761 19.6049 16.071L19.6757 17.5845C19.7307 18.7614 18.7614 19.7307 17.5845 19.6757L16.071 19.6049C15.4761 19.5771 14.8998 19.8158 14.4989 20.2561L13.4787 21.3763C12.6853 22.2475 11.3147 22.2475 10.5213 21.3763L9.50111 20.2561C9.10016 19.8158 8.52388 19.5771 7.92905 19.6049L6.41554 19.6757C5.23857 19.7307 4.26934 18.7614 4.32435 17.5845L4.39508 16.071C4.42288 15.4761 4.18418 14.8998 3.74391 14.4989L2.62368 13.4787C1.75255 12.6853 1.75255 11.3147 2.62368 10.5213L3.74391 9.50111C4.18418 9.10016 4.42288 8.52388 4.39508 7.92905L4.32435 6.41554C4.26934 5.23857 5.23857 4.26934 6.41554 4.32435L7.92905 4.39508C8.52388 4.42288 9.10016 4.18418 9.50111 3.74391L10.5213 2.62368Z",fill:"#0685FF"}),r.jsx("path",{d:"M10.5 15.5L6.5 11.5L7.91 10.09L10.5 12.67L16.09 7.09L17.5 8.5L10.5 15.5Z",fill:"white"})]})})]}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[t,n?` • ${n}`:""]})]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",fontSize:"md",color:"text.heading",fontFamily:"var(--font-body)",pt:"1",children:[r.jsx(s.Box,{as:"span",color:"status.warning",mt:"-2px",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}),(i==null?void 0:i.toFixed(1))||"New"," ",l?r.jsxs(s.Box,{as:"span",color:"text.muted",children:["(",l,")"]}):null]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"4",mt:"1",children:[u&&r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"1.5",bg:"status.success.tint",color:"status.success",borderRadius:"md",fontSize:"sm",fontWeight:"medium",children:[r.jsx(s.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:"status.success"}),f]}),u&&a&&r.jsx(s.Box,{w:"1px",h:"20px",bg:"border"}),a&&r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",fontSize:"sm",color:"text.heading",children:[r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"var(--chakra-colors-text-muted)",children:[r.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),r.jsx("path",{d:"M9 12l2 2 4-4"})]}),a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",my:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"1",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),r.jsxs(s.Box,{display:"flex",gap:"3",alignItems:"center",children:[x&&r.jsx(s.Box,{as:"button",px:"4",py:"2",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.heading",border:"1px solid",borderColor:"border",borderRadius:"md",cursor:"pointer",transition:"all 0.15s",_hover:{borderColor:"blue.400",color:"blue.500"},onClick:x,children:"view"}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]})]})}const p1={normal:{bg:"color-mix(in srgb, var(--chakra-colors-status-success) 8%, transparent)",indicator:"status.success",border:"color-mix(in srgb, var(--chakra-colors-status-success) 20%, transparent)",text:"status.success",ariaLabel:"Normal",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"var(--chakra-colors-status-success)"}),r.jsx("path",{d:"M7 12.5l3.5 3.5 6.5-7",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:{bg:"color-mix(in srgb, var(--chakra-colors-status-warning) 8%, transparent)",indicator:"status.warning",border:"color-mix(in srgb, var(--chakra-colors-status-warning) 20%, transparent)",text:"status.warning",ariaLabel:"Warning",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("path",{d:"M12 2L2 21h20L12 2z",fill:"var(--chakra-colors-status-warning)"}),r.jsx("path",{d:"M12 9v5",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round"}),r.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"white"})]})},critical:{bg:"color-mix(in srgb, var(--chakra-colors-status-error) 8%, transparent)",indicator:"status.error",border:"color-mix(in srgb, var(--chakra-colors-status-error) 20%, transparent)",text:"status.error",ariaLabel:"Critical",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("path",{d:"M8.5 2h7l6.5 6.5v7L15.5 22h-7L2 15.5v-7L8.5 2z",fill:"var(--chakra-colors-status-error)"}),r.jsx("path",{d:"M12 7v6",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round"}),r.jsx("circle",{cx:"12",cy:"16.5",r:"1",fill:"white"})]})}};function h1({label:e,value:t,unit:n,status:o="normal",...i}){const l=p1[o];return r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"2",borderRadius:"md",bg:l.bg,border:"1px solid",borderColor:l.border,...i,children:[r.jsx("span",{"aria-label":l.ariaLabel,style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:l.icon}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"2xs",color:"text.muted",fontFamily:"var(--font-body)",textTransform:"uppercase",letterSpacing:"wide",children:e}),r.jsxs(s.Box,{display:"flex",alignItems:"baseline",gap:"1",children:[r.jsx(s.Box,{fontSize:"md",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-mono, monospace)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:l.text,fontFamily:"var(--font-body)",children:n})]})]})]})}const x1={upcoming:{label:"Upcoming",color:"info"},completed:{label:"Completed",color:"success"},cancelled:{label:"Cancelled",color:"error"}};function g1({doctorName:e,doctorSpecialty:t,doctorAvatar:n,date:o,time:i,type:l="video",status:a="upcoming",onCancel:c,onReschedule:d,onJoin:u,...f}){const h=x1[a];return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",...f,children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",children:[n?r.jsx("img",{src:n,alt:e,style:{width:40,height:40,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"10",h:"10",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"md",fontWeight:"bold",color:"white",children:e.charAt(0)}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"md",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),t&&r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:t})]})]}),r.jsx(Gn,{status:h.color,size:"sm",children:h.label})]}),r.jsxs(s.Box,{display:"flex",gap:"4",py:"3",borderTop:"1px solid",borderBottom:"1px solid",borderColor:"border",children:[r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Date"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:o})]}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Time"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:i})]}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Type"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",textTransform:"capitalize",children:l==="video"?"🎥 Video Call":"🏥 In-Person"})]})]}),a==="upcoming"&&r.jsxs(s.Box,{display:"flex",gap:"2",children:[u&&r.jsx(s.Box,{as:"button",flex:"1",py:"2",bg:"blue.500",color:"white",borderRadius:"md",border:"none",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{bg:"blue.600"},transition:"all 0.15s",onClick:u,children:"Join Call"}),d&&r.jsx(s.Box,{as:"button",flex:"1",py:"2",bg:"transparent",color:"text.body",border:"1px solid",borderColor:"border",borderRadius:"md",fontSize:"sm",fontWeight:"medium",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{borderColor:"blue.400",color:"blue.500"},transition:"all 0.15s",onClick:d,children:"Reschedule"}),c&&r.jsx(s.Box,{as:"button",py:"2",px:"3",bg:"transparent",color:"red.500",border:"1px solid",borderColor:"red.200",borderRadius:"md",fontSize:"sm",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{bg:"red.50"},transition:"all 0.15s",onClick:c,children:"Cancel"})]})]})}const m1={active:{label:"Active",bg:"color-mix(in srgb, var(--chakra-colors-status-success) 12%, transparent)",color:"var(--chakra-colors-status-success)"},expired:{label:"Expired",bg:"color-mix(in srgb, var(--chakra-colors-status-error) 10%, transparent)",color:"var(--chakra-colors-status-error)"},dispensed:{label:"Dispensed",bg:"color-mix(in srgb, var(--chakra-colors-blue-500) 10%, transparent)",color:"var(--chakra-colors-blue-500)"}},b1=()=>r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"}),r.jsx("path",{d:"m8.5 8.5 7 7"})]}),y1=()=>r.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),r.jsx("polyline",{points:"7 10 12 15 17 10"}),r.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),yo=()=>r.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),r.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),r.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),r.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]});function v1({rxId:e,doctorName:t,doctorSpecialty:n,issuedDate:o,expiryDate:i,drugs:l,refillsRemaining:a,status:c="active",colorScheme:d="blue",onDownload:u,...f}){const h=m1[c],x=d==="purple"?"#7700CC":"#0685FF",p=d==="purple"?"color-mix(in srgb, #7700CC 8%, transparent)":"color-mix(in srgb, #0685FF 8%, transparent)";return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",...f,children:[r.jsxs(s.Box,{px:"5",py:"3.5",display:"flex",alignItems:"center",justifyContent:"space-between",style:{borderBottom:"1px solid var(--chakra-colors-border)",background:p},children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",children:[r.jsx(s.Box,{style:{color:x},children:r.jsx(b1,{})}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"700",fontFamily:"var(--font-heading)",style:{color:x},children:"Prescription"}),e&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:e})]}),r.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:h.bg,color:h.color},children:[r.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:h.color,display:"inline-block"}}),h.label]})]}),r.jsxs(s.Box,{px:"5",py:"3",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid",borderColor:"border",flexWrap:"wrap",gap:"2",children:[r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:n})]}),r.jsxs(s.Box,{display:"flex",gap:"4",children:[r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",color:"text.muted",children:[r.jsx(yo,{}),r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",children:"Issued"})]}),r.jsx(s.Box,{fontSize:"xs",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:o})]}),i&&r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",color:"text.muted",children:[r.jsx(yo,{}),r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",children:"Expires"})]}),r.jsx(s.Box,{fontSize:"xs",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:i})]})]})]}),r.jsx(s.Box,{px:"5",py:"4",display:"flex",flexDirection:"column",gap:"3",children:l.map((b,v)=>r.jsxs(s.Box,{display:"flex",alignItems:"flex-start",gap:"3",p:"3",borderRadius:"md",bg:"bg.subtle",border:"1px solid",borderColor:"border",children:[r.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:"50%",background:p,color:x,fontSize:11,fontWeight:700,fontFamily:"var(--font-heading)",flexShrink:0,marginTop:1},children:v+1}),r.jsxs(s.Box,{flex:"1",minW:"0",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:b.name}),r.jsx("span",{style:{padding:"1px 6px",borderRadius:4,fontSize:11,fontWeight:600,background:p,color:x,fontFamily:"var(--font-body)"},children:b.dosage})]}),r.jsxs(s.Box,{display:"flex",gap:"3",mt:"1",flexWrap:"wrap",children:[r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:["🕐 ",b.frequency]}),b.duration&&r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:["📅 ",b.duration]}),b.instructions&&r.jsxs(s.Box,{fontSize:"xs",color:"text.body",fontFamily:"var(--font-body)",fontStyle:"italic",children:["ℹ️ ",b.instructions]})]})]})]},v))}),r.jsxs(s.Box,{px:"5",py:"3",display:"flex",alignItems:"center",justifyContent:"space-between",borderTop:"1px solid",borderColor:"border",children:[a!==void 0?r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:[r.jsx(s.Box,{as:"span",fontWeight:"semibold",color:"text.heading",children:a})," ","refill",a!==1?"s":""," remaining"]}):r.jsx(s.Box,{}),u&&r.jsxs("button",{onClick:u,"aria-label":"Download prescription",style:{display:"inline-flex",alignItems:"center",gap:6,padding:"6px 14px",borderRadius:8,fontSize:12,fontWeight:600,fontFamily:"var(--font-body)",color:x,background:p,border:"none",cursor:"pointer",transition:"opacity 0.15s"},onMouseEnter:b=>{b.currentTarget.style.opacity="0.8"},onMouseLeave:b=>{b.currentTarget.style.opacity="1"},children:[r.jsx(y1,{}),"Download"]})]})]})}const k1={primary:{label:"Primary",bg:"color-mix(in srgb, #0685FF 10%, transparent)",color:"#0685FF",border:"color-mix(in srgb, #0685FF 25%, transparent)"},secondary:{label:"Secondary",bg:"color-mix(in srgb, #64748B 10%, transparent)",color:"#64748B",border:"color-mix(in srgb, #64748B 25%, transparent)"},chronic:{label:"Chronic",bg:"color-mix(in srgb, #F59E0B 10%, transparent)",color:"#B45309",border:"color-mix(in srgb, #F59E0B 25%, transparent)"},acute:{label:"Acute",bg:"color-mix(in srgb, #EF4444 10%, transparent)",color:"#DC2626",border:"color-mix(in srgb, #EF4444 25%, transparent)"}};function nl({code:e,description:t,category:n="primary",...o}){const i=k1[n];return r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"1.5",...o,children:[r.jsx("span",{title:t,"aria-label":`ICD-10 code ${e}${t?`: ${t}`:""}`,style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:4,fontSize:11,fontWeight:700,fontFamily:"var(--font-mono, monospace)",background:i.bg,color:i.color,border:`1px solid ${i.border}`,cursor:t?"help":"default",whiteSpace:"nowrap"},children:e}),t&&r.jsx(s.Box,{as:"span",fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:t})]})}function rl({bloodType:e,...t}){return r.jsx(s.Box,{display:"inline-flex",alignItems:"center",...t,children:r.jsxs("span",{"aria-label":`Blood type ${e}`,style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:4,fontSize:12,fontWeight:800,fontFamily:"var(--font-heading)",background:"color-mix(in srgb, #DC2626 12%, transparent)",color:"#DC2626",border:"1px solid color-mix(in srgb, #DC2626 30%, transparent)",letterSpacing:"0.02em"},children:[r.jsx("svg",{width:"10",height:"12",viewBox:"0 0 12 16",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M6 0C6 0 0 7.5 0 11a6 6 0 0 0 12 0C12 7.5 6 0 6 0z"})}),e]})})}const w1={mild:{label:"Mild",bg:"color-mix(in srgb, #F59E0B 8%, transparent)",color:"#B45309",border:"color-mix(in srgb, #F59E0B 30%, transparent)",icon:"⚠"},moderate:{label:"Moderate",bg:"color-mix(in srgb, #F97316 10%, transparent)",color:"#C2410C",border:"color-mix(in srgb, #F97316 30%, transparent)",icon:"⚠"},severe:{label:"Severe",bg:"color-mix(in srgb, #EF4444 10%, transparent)",color:"#DC2626",border:"color-mix(in srgb, #EF4444 30%, transparent)",icon:"🚫"},"life-threatening":{label:"Life-threatening",bg:"color-mix(in srgb, #7F1D1D 15%, transparent)",color:"#991B1B",border:"#DC2626",icon:"⛔"}};function ol({allergen:e,severity:t="mild",...n}){const o=w1[t];return r.jsx(s.Box,{display:"inline-flex",alignItems:"center",...n,children:r.jsxs("span",{"aria-label":`Allergy: ${e} — ${o.label} severity`,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"3px 8px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:o.bg,color:o.color,border:`1px solid ${o.border}`,borderLeftWidth:t==="life-threatening"?3:1,whiteSpace:"nowrap"},children:[r.jsx("span",{"aria-hidden":"true",children:o.icon}),e,r.jsxs("span",{style:{opacity:.7,fontSize:10},children:["· ",o.label]})]})})}function j1({diagnoses:e,bloodType:t,allergies:n,direction:o="row",...i}){return r.jsxs(s.Box,{display:"flex",flexDirection:o,flexWrap:"wrap",gap:"2",alignItems:o==="row"?"center":"flex-start",...i,children:[t&&r.jsx(rl,{bloodType:t}),e==null?void 0:e.map((l,a)=>r.jsx(nl,{code:l.code,description:l.description,category:l.category},a)),n==null?void 0:n.map((l,a)=>r.jsx(ol,{allergen:l.allergen,severity:l.severity},a))]})}var il={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vo=I.default.createContext&&I.default.createContext(il),C1=["attr","size","title"];function S1(e,t){if(e==null)return{};var n,o,i=B1(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function B1(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Gt.apply(null,arguments)}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ko(Object(n),!0).forEach(function(o){F1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function F1(e,t,n){return(t=E1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E1(e){var t=L1(e,"string");return typeof t=="symbol"?t:t+""}function L1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ll(e){return e&&e.map((t,n)=>I.default.createElement(t.tag,Yt({key:n},t.attr),ll(t.child)))}function ke(e){return t=>I.default.createElement(I1,Gt({attr:Yt({},e.attr)},t),ll(e.child))}function I1(e){var t=n=>{var{attr:o,size:i,title:l}=e,a=S1(e,C1),c=i||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),I.default.createElement("svg",Gt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,a,{className:d,style:Yt(Yt({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&I.default.createElement("title",null,l),e.children)};return vo!==void 0?I.default.createElement(vo.Consumer,null,n=>t(n)):t(il)}function T1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}function D1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"},child:[]},{tag:"rect",attr:{x:"2",y:"6",width:"14",height:"12",rx:"2"},child:[]}]})(e)}function A1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196"},child:[]},{tag:"path",attr:{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2"},child:[]},{tag:"path",attr:{d:"m2 2 20 20"},child:[]}]})(e)}function z1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3"},child:[]},{tag:"path",attr:{d:"M8 21h8"},child:[]},{tag:"path",attr:{d:"M12 17v4"},child:[]},{tag:"path",attr:{d:"m17 8 5-5"},child:[]},{tag:"path",attr:{d:"M17 3h5v5"},child:[]}]})(e)}function R1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"},child:[]},{tag:"path",attr:{d:"m8.5 8.5 7 7"},child:[]}]})(e)}function M1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},child:[]},{tag:"line",attr:{x1:"22",x2:"2",y1:"2",y2:"22"},child:[]}]})(e)}function O1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]},{tag:"path",attr:{d:"M14.05 2a9 9 0 0 1 8 7.94"},child:[]},{tag:"path",attr:{d:"M14.05 6A5 5 0 0 1 18 10"},child:[]}]})(e)}function N1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"19",y2:"22"},child:[]}]})(e)}function P1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"2",x2:"22",y1:"2",y2:"22"},child:[]},{tag:"path",attr:{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"},child:[]},{tag:"path",attr:{d:"M5 10v2a7 7 0 0 0 12 5"},child:[]},{tag:"path",attr:{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"19",y2:"22"},child:[]}]})(e)}function _1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",x2:"9",y1:"12",y2:"12"},child:[]}]})(e)}function H1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 6v4"},child:[]},{tag:"path",attr:{d:"M14 14h-4"},child:[]},{tag:"path",attr:{d:"M14 18h-4"},child:[]},{tag:"path",attr:{d:"M14 8h-4"},child:[]},{tag:"path",attr:{d:"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2"},child:[]},{tag:"path",attr:{d:"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18"},child:[]}]})(e)}function W1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2"},child:[]},{tag:"path",attr:{d:"M8.5 2h7"},child:[]},{tag:"path",attr:{d:"M7 16h10"},child:[]}]})(e)}function q1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},child:[]},{tag:"path",attr:{d:"M14 2v4a2 2 0 0 0 2 2h4"},child:[]},{tag:"path",attr:{d:"M10 9H8"},child:[]},{tag:"path",attr:{d:"M16 13H8"},child:[]},{tag:"path",attr:{d:"M16 17H8"},child:[]}]})(e)}function V1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(e)}function $1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"},child:[]},{tag:"path",attr:{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"},child:[]},{tag:"path",attr:{d:"M4 2C2.8 3.7 2 5.7 2 8"},child:[]},{tag:"path",attr:{d:"M22 8c0-2.3-.8-4.3-2-6"},child:[]}]})(e)}function U1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"},child:[]}]})(e)}const G1=({muted:e})=>e?r.jsx(P1,{size:18,"aria-hidden":"true"}):r.jsx(N1,{size:18,"aria-hidden":"true"}),Y1=({off:e})=>e?r.jsx(A1,{size:18,"aria-hidden":"true"}):r.jsx(D1,{size:18,"aria-hidden":"true"}),K1=({active:e})=>r.jsx(z1,{size:18,color:e?"var(--chakra-colors-status-success, #16A34A)":"currentColor","aria-hidden":"true"}),Z1=()=>r.jsx(M1,{size:18,"aria-hidden":"true"});function X1({participantName:e,participantRole:t,participantAvatar:n,duration:o,isMuted:i=!1,isCameraOff:l=!1,isSharingScreen:a=!1,onToggleMute:c,onToggleCamera:d,onEndCall:u,onShareScreen:f,position:h="bottom",variant:x="adaptive",...p}){const[b,v]=I.default.useState(i),[B,y]=I.default.useState(l),S=x==="dark",j=()=>{v(w=>!w),c==null||c()},C=()=>{y(w=>!w),d==null||d()},F=({onClick:w,ariaLabel:D,active:E,isEndCall:z=!1,children:N})=>{let R=S?"rgba(255,255,255,0.1)":"var(--chakra-colors-bg-subtle, #F0F4F8)",T=S?"white":"var(--chakra-colors-text-heading, #111926)",q=S?"rgba(255,255,255,0.2)":"var(--chakra-colors-border, #E2E8F0)";return z?(R="var(--chakra-colors-status-error, #DC2626)",T="white",q="color-mix(in srgb, var(--chakra-colors-status-error, #DC2626) 85%, black)"):E&&(R="var(--chakra-colors-status-error-tint, rgba(220,38,38,0.15))",T="var(--chakra-colors-status-error, #DC2626)",q="var(--chakra-colors-status-error-tint, rgba(220,38,38,0.25))"),r.jsx("button",{onClick:w,"aria-label":D,"aria-pressed":E,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:44,height:44,borderRadius:"50%",border:E?"1px solid var(--chakra-colors-status-error)":"1px solid transparent",cursor:"pointer",transition:"all 0.15s ease",background:R,color:T,WebkitTapHighlightColor:"transparent"},onMouseEnter:M=>{const k=M.currentTarget;k.style.background=q,k.style.transform="scale(1.06)"},onMouseLeave:M=>{const k=M.currentTarget;k.style.background=R,k.style.transform="scale(1)"},children:N})};return r.jsxs(s.Box,{position:"fixed",...h==="bottom"?{bottom:"0"}:{top:"0"},left:"0",right:"0",zIndex:"overlay",display:"flex",alignItems:"center",justifyContent:"space-between",px:{base:"4",md:"8"},flexWrap:"wrap",gap:"4",bg:S?void 0:"bg.surface",borderColor:"border",style:{minHeight:72,paddingTop:12,paddingBottom:h==="bottom"?"calc(12px + env(safe-area-inset-bottom, 0px))":12,background:S?"linear-gradient(135deg, #0A1220 0%, #0F1C2E 100%)":void 0,borderTop:h==="bottom"?"1px solid var(--chakra-colors-border)":"none",borderBottom:h==="top"?"1px solid var(--chakra-colors-border)":"none",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",transition:"background 0.2s ease, border-color 0.2s ease"},...p,children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",children:[r.jsx(Jt,{src:n,name:e,size:"md"}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-heading)",color:S?"white":"text.heading",children:e}),t&&r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",color:S?"rgba(255,255,255,0.6)":"text.muted",children:t})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",ml:"2",children:[r.jsxs("span",{"aria-label":"Live call",style:{display:"inline-flex",alignItems:"center",gap:5,padding:"2px 8px",borderRadius:4,fontSize:10,fontWeight:700,background:"var(--chakra-colors-status-error-tint, rgba(220,38,38,0.15))",color:"var(--chakra-colors-status-error, #DC2626)",fontFamily:"var(--font-body)",letterSpacing:"0.05em"},children:[r.jsx("span",{"aria-hidden":"true",style:{width:6,height:6,borderRadius:"50%",background:"var(--chakra-colors-status-error, #DC2626)",display:"inline-block",animation:"medixPulse 1.5s ease-in-out infinite"}}),"LIVE"]}),o&&r.jsx(s.Box,{fontSize:"sm",fontFamily:"var(--font-mono, monospace)",fontWeight:"600",color:S?"rgba(255,255,255,0.8)":"text.heading",style:{letterSpacing:"0.05em"},children:o})]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",children:[c&&r.jsx(F,{onClick:j,ariaLabel:b?"Unmute microphone":"Mute microphone",active:b,children:r.jsx(G1,{muted:b})}),d&&r.jsx(F,{onClick:C,ariaLabel:B?"Turn camera on":"Turn camera off",active:B,children:r.jsx(Y1,{off:B})}),f&&r.jsx(F,{onClick:f,ariaLabel:a?"Stop sharing screen":"Share screen",active:a,children:r.jsx(K1,{active:a})}),u&&r.jsx(F,{onClick:u,ariaLabel:"End call",isEndCall:!0,children:r.jsx(Z1,{})})]})]})}const J1={consultation:{bg:"color-mix(in srgb, #0685FF 12%, transparent)",color:"#0685FF",icon:r.jsx(O1,{size:14,"aria-hidden":"true"})},lab:{bg:"color-mix(in srgb, #7700CC 12%, transparent)",color:"#7700CC",icon:r.jsx(W1,{size:14,"aria-hidden":"true"})},prescription:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981",icon:r.jsx(R1,{size:14,"aria-hidden":"true"})},vitals:{bg:"color-mix(in srgb, #F59E0B 12%, transparent)",color:"#D97706",icon:r.jsx(U1,{size:14,"aria-hidden":"true"})},note:{bg:"color-mix(in srgb, #64748B 12%, transparent)",color:"#64748B",icon:r.jsx(q1,{size:14,"aria-hidden":"true"})},admission:{bg:"color-mix(in srgb, #EF4444 12%, transparent)",color:"#EF4444",icon:r.jsx(H1,{size:14,"aria-hidden":"true"})},discharge:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981",icon:r.jsx(_1,{size:14,"aria-hidden":"true"})},custom:{bg:"color-mix(in srgb, #0685FF 10%, transparent)",color:"#0685FF",icon:r.jsx(V1,{size:14,"aria-hidden":"true"})}},wo={success:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981"},warning:{bg:"color-mix(in srgb, #F59E0B 12%, transparent)",color:"#D97706"},error:{bg:"color-mix(in srgb, #EF4444 12%, transparent)",color:"#EF4444"},info:{bg:"color-mix(in srgb, #0685FF 12%, transparent)",color:"#0685FF"},neutral:{bg:"color-mix(in srgb, #64748B 12%, transparent)",color:"#64748B"}};function Q1(){return r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",children:[r.jsxs(s.Box,{flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",children:[r.jsx(s.Box,{w:"8",h:"8",borderRadius:"full",bg:"bg.subtle",style:{animation:"medix-shimmer 1.5s infinite"}}),r.jsx(s.Box,{w:"px",flex:"1",minH:"8",bg:"border",mt:"2"})]}),r.jsxs(s.Box,{flex:"1",pb:"6",children:[r.jsx(s.Box,{h:"4",bg:"bg.subtle",borderRadius:"full",w:"40%",mb:"2",style:{animation:"medix-shimmer 1.5s infinite"}}),r.jsx(s.Box,{h:"3",bg:"bg.subtle",borderRadius:"full",w:"65%",style:{animation:"medix-shimmer 1.5s infinite"}})]})]})}function eh({events:e,compact:t=!1,isLoading:n=!1,loadingCount:o=4,colorScheme:i="blue",...l}){const a=i==="purple"?"var(--chakra-colors-purple-200, rgba(119,0,204,0.2))":"var(--chakra-colors-blue-200, rgba(6,133,255,0.2))";return n?r.jsx(s.Box,{...l,children:Array.from({length:o}).map((c,d)=>r.jsx(Q1,{},d))}):r.jsx(s.Box,{...l,role:"feed","aria-label":"Patient medical timeline",children:e.map((c,d)=>{const u=J1[c.type],f=d===e.length-1;return r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",role:"article","aria-label":`${c.title} on ${c.date}`,children:[r.jsxs(s.Box,{flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",children:[r.jsx(s.Box,{w:"8",h:"8",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",style:{background:u.bg,color:u.color,border:`1.5px solid ${u.color}40`,cursor:c.onClick?"pointer":"default",transition:"transform 0.15s, box-shadow 0.15s",flexShrink:0},onClick:c.onClick,role:c.onClick?"button":void 0,tabIndex:c.onClick?0:void 0,onKeyDown:c.onClick?h=>{(h.key==="Enter"||h.key===" ")&&c.onClick()}:void 0,_hover:c.onClick?{transform:"scale(1.1)"}:void 0,children:c.icon??u.icon}),!f&&r.jsx(s.Box,{w:"1px",flex:"1",minH:"8",mt:"1",style:{background:a}})]}),r.jsxs(s.Box,{flex:"1",pb:f?"0":"5",cursor:c.onClick?"pointer":"default",onClick:c.onClick,_hover:c.onClick?{opacity:.85}:void 0,transition:"opacity 0.15s",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:c.title}),c.badgeLabel&&c.badgeStatus&&r.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"1px 7px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:wo[c.badgeStatus].bg,color:wo[c.badgeStatus].color},children:c.badgeLabel})]}),!t&&c.description&&r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",mt:"0.5",children:c.description}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",mt:"1",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:c.date}),c.provider&&r.jsxs(r.Fragment,{children:[r.jsx(s.Box,{w:"1px",h:"3",style:{background:"var(--chakra-colors-border)"}}),r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:c.provider})]})]})]})]},c.id)})})}function th({title:e="Get notifications in this browser",description:t,actionLabel:n="Turn on notifications",busy:o,error:i,onAction:l,onDismiss:a}){return r.jsxs(s.Flex,{as:"section","aria-label":e,align:{base:"start",md:"center"},gap:"4",p:"4",mb:"4",bg:"bg.panel",borderWidth:"1px",borderColor:"border",borderRadius:"xl",boxShadow:"sm",children:[r.jsx(s.Flex,{"aria-hidden":"true",align:"center",justify:"center",boxSize:"11",flexShrink:"0",borderRadius:"lg",bg:"green.subtle",color:"green.fg",children:r.jsx($1,{size:22})}),r.jsxs(s.Flex,{flex:"1",minW:"0",gap:"3",align:{base:"start",md:"center"},direction:{base:"column",md:"row"},children:[r.jsxs(s.Box,{flex:"1",children:[r.jsx(s.Text,{fontWeight:"semibold",children:e}),r.jsx(s.Text,{fontSize:"sm",color:"fg.muted",children:t}),i&&r.jsx(s.Text,{role:"status",fontSize:"sm",color:"red.fg",mt:"1",children:i})]}),r.jsx(s.chakra.button,{type:"button",onClick:l,disabled:o,"aria-busy":o,bg:"green.solid",color:"green.contrast",borderRadius:"lg",px:"4",py:"3",fontWeight:"semibold",cursor:"pointer",_disabled:{opacity:.65},focusVisibleRing:"outside",children:o?"Turning on…":n})]}),r.jsx(s.IconButton,{type:"button",variant:"ghost",size:"sm","aria-label":"Dismiss notification prompt",onClick:a,children:r.jsx(T1,{})})]})}Object.defineProperty(exports,"Box",{enumerable:!0,get:()=>s.Box});Object.defineProperty(exports,"Center",{enumerable:!0,get:()=>s.Center});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>s.Flex});Object.defineProperty(exports,"Grid",{enumerable:!0,get:()=>s.Grid});Object.defineProperty(exports,"GridItem",{enumerable:!0,get:()=>s.GridItem});Object.defineProperty(exports,"HStack",{enumerable:!0,get:()=>s.HStack});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>s.Heading});Object.defineProperty(exports,"Icon",{enumerable:!0,get:()=>s.Icon});Object.defineProperty(exports,"Image",{enumerable:!0,get:()=>s.Image});Object.defineProperty(exports,"Link",{enumerable:!0,get:()=>s.Link});Object.defineProperty(exports,"SimpleGrid",{enumerable:!0,get:()=>s.SimpleGrid});Object.defineProperty(exports,"Stack",{enumerable:!0,get:()=>s.Stack});Object.defineProperty(exports,"Text",{enumerable:!0,get:()=>s.Text});Object.defineProperty(exports,"VStack",{enumerable:!0,get:()=>s.VStack});Object.defineProperty(exports,"Wrap",{enumerable:!0,get:()=>s.Wrap});Object.defineProperty(exports,"WrapItem",{enumerable:!0,get:()=>s.WrapItem});exports.Accordion=l1;exports.Alert=$n;exports.AllergyBadge=ol;exports.AppointmentCard=g1;exports.Avatar=Jt;exports.AvatarGroup=Hl;exports.Badge=Gn;exports.BlogCard=u1;exports.BloodTypeBadge=rl;exports.Breadcrumb=Js;exports.BrowserNotificationBanner=th;exports.Button=Be;exports.Calendar=Zn;exports.Card=Jo;exports.CardBody=Ya;exports.CardFooter=Ka;exports.CardHeader=Ga;exports.Checkbox=$o;exports.Combobox=Ca;exports.Container=ei;exports.CookieConsentBanner=gi;exports.DASHBOARD_MEDIX_TIER_CONFIG=Ht;exports.DASHBOARD_MEDIX_TIER_ORDER=ii;exports.DEFAULT_HAPTIC_PATTERNS=Kt;exports.DRAFT_STORAGE_PREFIX=Ze;exports.DashboardLayout=ai;exports.DataTable=d1;exports.DatePicker=ka;exports.DateRangePicker=wa;exports.Divider=Po;exports.DoctorCard=f1;exports.Drawer=gc;exports.EmptyState=fc;exports.FileUpload=Ba;exports.Footer=ci;exports.FormControl=la;exports.FullPageSpinner=Wl;exports.HapticsProvider=Ao;exports.ICD10Badge=nl;exports.IconButton=Ro;exports.Input=Yn;exports.Logo=Ye;exports.MedicalRecordBadge=j1;exports.MedixProvider=Al;exports.Modal=dc;exports.Navbar=Hs;exports.NotFoundPage=pc;exports.OTPInput=Go;exports.PWAInstallPrompt=bi;exports.Pagination=ui;exports.PatientTimeline=eh;exports.PhoneInput=ha;exports.PinInput=aa;exports.PrescriptionCard=v1;exports.Progress=fi;exports.RadioGroup=na;exports.RichTextEditor=Ua;exports.RichTextInput=Xn;exports.SearchInput=Kn;exports.SectionHeader=Xa;exports.Select=ta;exports.ServerErrorPage=hc;exports.Skeleton=Ue;exports.SkeletonCard=lc;exports.SkeletonText=di;exports.Spinner=Oo;exports.StatCard=Qo;exports.Stepper=oc;exports.Switch=Uo;exports.TEXTAREA_DRAFT_PREFIX=Ke;exports.Tabs=tc;exports.Tag=No;exports.TagInput=Fa;exports.TagsInput=Yo;exports.TelehealthCallBar=X1;exports.TestimonialCard=a1;exports.Textarea=qo;exports.ThemeColorPalette=ti;exports.Toaster=zo;exports.Tooltip=Oe;exports.VitalBadge=h1;exports.canUseHaptics=Xt;exports.cancelHaptic=qn;exports.clearRichTextDraft=Zo;exports.clearTextareaDraft=Ho;exports.colorTokens=_;exports.dismissToast=Cl;exports.getEffectiveStorageKey=Ko;exports.getEffectiveTextareaStorageKey=_o;exports.getMedixScoreTierForScore=js;exports.getMedixScoreTierMeta=li;exports.getRichTextDraft=Xo;exports.getTextareaDraft=Wo;exports.htmlToMarkdown=it;exports.isReducedMotionPreferred=Wn;exports.markdownToHtml=He;exports.medixConfig=Eo;exports.radiiTokens=Bo;exports.resolveHapticPattern=Io;exports.saveRichTextDraft=Sn;exports.saveTextareaDraft=jn;exports.shadowTokens=Fo;exports.spacingTokens=So;exports.system=Lo;exports.textStyleTokens=Co;exports.toast=yt;exports.triggerHaptic=Vn;exports.typographyTokens=ot;exports.useColorScheme=Ml;exports.useHaptics=de;exports.useIsDarkMode=Un;exports.useThemeMode=St;
|
|
435
|
+
`},i),l}function Lp(e,t){return e&&"run"in e?async function(n,o){const i=uo(n,{file:o,...t});await e.run(i,o)}:function(n,o){return uo(n,{file:o,...e||t})}}function fo(e){if(e)throw e}var xn,po;function Ip(){if(po)return xn;po=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},l=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!h)return!1;var x;for(x in u);return typeof x>"u"||e.call(u,x)},a=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},c=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(o)return o(u,f).value}else return;return u[f]};return xn=function d(){var u,f,h,x,p,b,v=arguments[0],B=1,y=arguments.length,S=!1;for(typeof v=="boolean"&&(S=v,v=arguments[1]||{},B=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});B<y;++B)if(u=arguments[B],u!=null)for(f in u)h=c(v,f),x=c(u,f),v!==x&&(S&&x&&(l(x)||(p=i(x)))?(p?(p=!1,b=h&&i(h)?h:[]):b=h&&l(h)?h:{},a(v,{name:f,newValue:d(S,b,x)})):typeof x<"u"&&a(v,{name:f,newValue:x}));return v},xn}var Tp=Ip();const gn=Fi(Tp);function _n(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dp(){const e=[],t={run:n,use:o};return t;function n(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(d,...u){const f=e[++l];let h=-1;if(d){a(d);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,f?Ap(f,c)(...u):a(null,...u)}}function o(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ap(e,t){let n;return o;function o(...a){const c=e.length>a.length;let d;c&&a.push(i);try{d=e.apply(this,a)}catch(u){const f=u;if(c&&n)throw f;return i(f)}c||(d&&d.then&&typeof d.then=="function"?d.then(l,i):d instanceof Error?i(d):l(d))}function i(a,...c){n||(n=!0,t(a,...c))}function l(a){i(null,a)}}const ze={basename:zp,dirname:Rp,extname:Mp,join:Op,sep:"/"};function zp(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ft(e);let n=0,o=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,c=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=a));return n===o?o=a:o<0&&(o=e.length),e.slice(n,o)}function Rp(e){if(Ft(e),e.length===0)return".";let t=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){t=n;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Mp(e){Ft(e);let t=e.length,n=-1,o=0,i=-1,l=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){o=t+1;break}continue}n<0&&(a=!0,n=t+1),c===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===o+1?"":e.slice(i,n)}function Op(...e){let t=-1,n;for(;++t<e.length;)Ft(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Np(n)}function Np(e){Ft(e);const t=e.codePointAt(0)===47;let n=Pp(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Pp(e,t){let n="",o=0,i=-1,l=0,a=-1,c,d;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",o=0):(n=n.slice(0,d),o=n.length-1-n.lastIndexOf("/")),i=a,l=0;continue}}else if(n.length>0){n="",o=0,i=a,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),o=a-i-1;i=a,l=0}else c===46&&l>-1?l++:l=-1}return n}function Ft(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _p={cwd:Hp};function Hp(){return"/"}function Hn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wp(e){if(typeof e=="string")e=new URL(e);else if(!Hn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return qp(e)}function qp(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const o=t.codePointAt(n+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const mn=["history","path","basename","stem","extname","dirname"];class tl{constructor(t){let n;t?Hn(t)?n={path:t}:typeof t=="string"||Vp(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_p.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<mn.length;){const l=mn[o];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)mn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(t){yn(t,"basename"),bn(t,"basename"),this.path=ze.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(t){ho(this.basename,"dirname"),this.path=ze.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(t){if(bn(t,"extname"),ho(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hn(t)&&(t=Wp(t)),yn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(t){yn(t,"stem"),bn(t,"stem"),this.path=ze.join(this.dirname||"",t+(this.extname||""))}fail(t,n,o){const i=this.message(t,n,o);throw i.fatal=!0,i}info(t,n,o){const i=this.message(t,n,o);return i.fatal=void 0,i}message(t,n,o){const i=new ve(t,n,o);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function bn(e,t){if(e&&e.includes(ze.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ze.sep+"`")}function yn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ho(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $p=(function(e){const o=this.constructor.prototype,i=o[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,o),l}),Up={}.hasOwnProperty;class hr extends $p{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dp()}copy(){const t=new hr;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];t.use(...o)}return t.data(gn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wn("data",this.frozen),this.namespace[t]=n,this):Up.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const i=n.call(t,...o);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Nt(t),o=this.parser||this.Parser;return vn("parse",o),o(String(n),n)}process(t,n){const o=this;return this.freeze(),vn("process",this.parser||this.Parser),kn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,a){const c=Nt(t),d=o.parse(c);o.run(d,c,function(f,h,x){if(f||!h||!x)return u(f);const p=h,b=o.stringify(p,x);Kp(b)?x.value=b:x.result=b,u(f,x)});function u(f,h){f||!h?a(f):l?l(h):n(void 0,h)}}}processSync(t){let n=!1,o;return this.freeze(),vn("processSync",this.parser||this.Parser),kn("processSync",this.compiler||this.Compiler),this.process(t,i),go("processSync","process",n),o;function i(l,a){n=!0,fo(l),o=a}}run(t,n,o){xo(t),this.freeze();const i=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?l(void 0,o):new Promise(l);function l(a,c){const d=Nt(n);i.run(t,d,u);function u(f,h,x){const p=h||t;f?c(f):a?a(p):o(void 0,p,x)}}}runSync(t,n){let o=!1,i;return this.run(t,n,l),go("runSync","run",o),i;function l(a,c){fo(a),i=c,o=!0}}stringify(t,n){this.freeze();const o=Nt(n),i=this.compiler||this.Compiler;return kn("stringify",i),xo(t),i(t,o)}use(t,...n){const o=this.attachers,i=this.namespace;if(wn("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")d(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...h]=u;d(f,h)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(u.plugins),u.settings&&(i.settings=gn(!0,i.settings,u.settings))}function c(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const h=u[f];l(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function d(u,f){let h=-1,x=-1;for(;++h<o.length;)if(o[h][0]===u){x=h;break}if(x===-1)o.push([u,...f]);else if(f.length>0){let[p,...b]=f;const v=o[x][1];_n(v)&&_n(p)&&(p=gn(!0,v,p)),o[x]=[u,p,...b]}}}}const Gp=new hr().freeze();function vn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xo(e){if(!_n(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function go(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nt(e){return Yp(e)?e:new tl(e)}function Yp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Kp(e){return typeof e=="string"||Zp(e)}function Zp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mo=[],bo={allowDangerousHtml:!0},Jp=/^(https?|ircs?|mailto|xmpp)$/i,Qp=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function e1(e){const t=t1(e),n=n1(e);return r1(t.runSync(t.parse(n),n),e)}function t1(e){const t=e.rehypePlugins||mo,n=e.remarkPlugins||mo,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bo}:bo;return Gp().use(Af).use(n).use(Lp,o).use(t)}function n1(e){const t=e.children||"",n=new tl;return typeof t=="string"&&(n.value=t),n}function r1(e,t){const n=t.allowedElements,o=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||o1;for(const f of Qp)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Xp+f.id,void 0);return el(e,u),uu(e,{Fragment:r.Fragment,components:i,ignoreInvalidStyle:!0,jsx:r.jsx,jsxs:r.jsxs,passKeys:!0,passNode:!0});function u(f,h,x){if(f.type==="raw"&&x&&typeof h=="number")return a?x.children.splice(h,1):x.children[h]={type:"text",value:f.value},h;if(f.type==="element"){let p;for(p in fn)if(Object.hasOwn(fn,p)&&Object.hasOwn(f.properties,p)){const b=f.properties[p],v=fn[p];(v===null||v.includes(f.tagName))&&(f.properties[p]=d(String(b||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&o&&typeof h=="number"&&(p=!o(f,h,x)),p&&x&&typeof h=="number")return c&&f.children?x.children.splice(h,1,...f.children):x.children.splice(h,1),h}}}function o1(e){const t=e.indexOf(":"),n=e.indexOf("?"),o=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||o!==-1&&t>o||Jp.test(e.slice(0,t))?e:""}const i1={blue:{solid:"#0685FF",ring:"#0685FF"},purple:{solid:"#7700CC",ring:"#7700CC"}};function l1({items:e,allowMultiple:t=!1,defaultOpenIds:n=[],colorScheme:o="blue",answerType:i="HTML",haptic:l,disableHaptic:a=!1,...c}){const{trigger:d}=de(),u=i1[o],[f,h]=I.default.useState(new Set(n)),x=p=>{!a&&l!==!1&&d(l??"selection"),h(b=>{const v=new Set(b);return v.has(p)?v.delete(p):(t||v.clear(),v.add(p)),v})};return r.jsx(s.Box,{display:"flex",flexDirection:"column",gap:"4",...c,children:e.map(p=>{const b=f.has(p.id);return r.jsxs(s.Box,{bg:"bg.primary",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",transition:"border-color 0.2s",_hover:{borderColor:b?u.ring:"border"},children:[r.jsxs(s.Box,{as:"button",w:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4",px:"6",py:"5",bg:"transparent",border:"none",cursor:"pointer",textAlign:"left",onClick:()=>x(p.id),"aria-expanded":b,children:[r.jsx(s.Box,{fontSize:"lg",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",flex:"1",lineHeight:"short",children:p.question}),r.jsx(s.Box,{flexShrink:0,w:"10",h:"10",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s, border-color 0.2s, color 0.2s","aria-hidden":"true",style:{border:b?"none":"1.5px solid var(--medix-form-text)",background:b?u.solid:"transparent",color:b?"#ffffff":"inherit",flexShrink:0},children:b?r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:r.jsx("rect",{x:"3",y:"8.25",width:"12",height:"1.5",rx:"0.75",fill:" var(--medix-form-text)"})}):r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[r.jsx("rect",{x:"3",y:"8.25",width:"12",height:"1.5",rx:"0.75",fill:" var(--medix-form-text)"}),r.jsx("rect",{x:"8.25",y:"3",width:"1.5",height:"12",rx:"0.75",fill:" var(--medix-form-text)"})]})})]}),r.jsx(s.Box,{overflow:"hidden",maxH:b?"800px":"0px",opacity:b?1:0,transition:"max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease",children:r.jsx(s.Box,{px:"6",pb:"6",pt:"0",fontSize:"md",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"loose",children:typeof p.answer=="string"?i==="MD"?r.jsx(e1,{children:p.answer}):r.jsx("span",{dangerouslySetInnerHTML:{__html:Rc(p.answer)}}):p.answer})})]},p.id)})})}function a1({quote:e,authorName:t,authorTitle:n,authorAvatar:o,rating:i,...l}){return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",boxShadow:"none",_dark:{boxShadow:"none"},...l,children:[i!==void 0&&r.jsx(s.Box,{display:"flex",gap:"0.5",children:Array.from({length:5}).map((a,c)=>r.jsx(s.Box,{as:"span",fontSize:"sm",color:c<i?"#F59E0B":"text.muted",children:"★"},c))}),r.jsxs(s.Box,{as:"blockquote",m:"0",fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"loose",fontStyle:"italic",children:['"',e,'"']}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",mt:"auto",children:[o?r.jsx("img",{src:o,alt:t,style:{width:36,height:36,borderRadius:"50%",objectFit:"cover"}}):r.jsx(s.Box,{w:"9",h:"9",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"sm",fontWeight:"semibold",color:"white",flexShrink:0,children:t.charAt(0).toUpperCase()}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-body)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:n})]})]})]})}const s1={blue:{solid:"#0685FF",token:"blue.500"},purple:{solid:"#7700CC",token:"purple.500"}};function c1(e){if(!e)return null;try{const t=new Date(e);return isNaN(t.getTime())?null:{day:String(t.getUTCDate()),weekday:t.toLocaleDateString("en-US",{weekday:"short",timeZone:"UTC"}).toUpperCase()}}catch{return null}}function u1({title:e,excerpt:t,category:n,date:o,coverImage:i,href:l,onClick:a,colorScheme:c="blue",...d}){const u=!!(l||a),f=c1(o),h=s1[c],x={display:"block",textDecoration:"none",background:"transparent",border:"none",padding:0,cursor:u?"pointer":"default",textAlign:"left"},p=r.jsxs(s.Box,{bg:"bg.primary",borderRadius:"card",overflow:"hidden",transition:"transform 0.22s ease, box-shadow 0.22s ease",_dark:{bg:"bg.primary"},_hover:u?{transform:"translateY(-4px)"}:void 0,...d,children:[r.jsxs(s.Box,{position:"relative",overflow:"hidden",children:[i?r.jsx("img",{src:i,alt:e,style:{width:"100%",height:300,objectFit:"cover",display:"block",borderRadius:"20px"}}):r.jsx(s.Box,{borderRadius:"card",h:"300px",style:{background:"linear-gradient(135deg, #0685FF 0%, #7700CC 100%)",borderRadius:"20px"}}),f&&r.jsxs(s.Box,{position:"absolute",bottom:"3",right:"3",bg:"white",borderRadius:"10px",px:"3",py:"2",display:"flex",flexDirection:"column",alignItems:"center",minW:"44px",border:"1px solid",borderColor:"border",boxShadow:"none",children:[r.jsx(s.Box,{style:{fontSize:22,fontWeight:700,color:h.solid,lineHeight:1,fontFamily:"var(--font-heading)"},children:f.day}),r.jsx(s.Box,{style:{fontSize:10,fontWeight:600,color:"#6B7280",letterSpacing:"0.08em",marginTop:2,fontFamily:"var(--font-body)"},children:f.weekday})]})]}),r.jsxs(s.Box,{px:"0",pt:"3",pb:"4",children:[n&&r.jsx(s.Box,{display:"inline-flex",alignItems:"center",px:"3",py:"1",mb:"3",borderRadius:"full",bg:h.token,color:"white",fontSize:"xs",fontWeight:"medium",fontFamily:"var(--font-body)",letterSpacing:"wide",children:n}),r.jsx(s.Box,{fontSize:"md",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",lineHeight:"snug",mb:t?"2":"0",children:e}),t&&r.jsx(s.Box,{fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",lineHeight:"relaxed",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t})]})]});return l?r.jsx("a",{href:l,style:x,onClick:a,children:p}):a?r.jsx("button",{type:"button",style:x,onClick:a,children:p}):p}function d1({columns:e,data:t,rowKey:n="id",isLoading:o=!1,emptyMessage:i="No data available",sortable:l=!1,sortKey:a,sortDirection:c="asc",onSort:d,striped:u=!0,onRowClick:f,caption:h,enablePagination:x=!1,pageSize:p=10,page:b,onPageChange:v,enableSearch:B=!1,searchPlaceholder:y="Search table...",searchQuery:S,onSearchChange:j,style:C,className:F,stickyFirstColumn:w=!1,haptic:D,disableHaptic:E=!1}){const{trigger:z}=de(),[N,R]=U.useState(""),T=S??N,[q,M]=U.useState(1),k=b??q,[P,$]=U.useState(a),[Q,J]=U.useState(c),g=a??P,H=a?c:Q,A=X=>{R(X),M(1),j==null||j(X)},m=X=>{!E&&D!==!1&&z(D??"selection");const ne=g===X&&H==="asc"?"desc":"asc";$(X),J(ne),d==null||d(X,ne)},O=X=>{M(X),v==null||v(X)},G=U.useMemo(()=>{if(!T.trim())return t;const X=T.toLowerCase().trim();return t.filter(ne=>e.some(le=>{const ge=ne[le.key];return ge==null?!1:String(ge).toLowerCase().includes(X)}))},[t,e,T]),K=U.useMemo(()=>!g||d?G:[...G].sort((X,ne)=>{const le=X[g],ge=ne[g],we=String(le??""),xe=String(ge??""),je=we.localeCompare(xe,void 0,{numeric:!0,sensitivity:"base"});return H==="asc"?je:-je}),[G,g,H,d]),Y=K.length,Z=U.useMemo(()=>{if(!x)return K;const X=(k-1)*p;return K.slice(X,X+p)},[K,x,k,p]),ae=({colKey:X})=>g!==X?r.jsx(s.Text,{as:"span",opacity:.3,ml:"1",fontSize:"xs",children:"↕"}):r.jsx(s.Text,{as:"span",ml:"1",color:"text.heading",fontSize:"xs",children:H==="asc"?"↑":"↓"});return r.jsxs(s.Box,{border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",bg:"bg",boxShadow:"none",_dark:{boxShadow:"none"},style:C,className:F,children:[B&&r.jsx(s.Box,{p:"4",borderBottom:"1px solid",borderColor:"border",bg:"bg",children:r.jsx(Kn,{placeholder:y,value:T,onChange:X=>A(X.target.value),maxW:"360px"})}),r.jsx(s.Box,{overflowX:"auto",children:r.jsxs(s.Box,{as:"table",w:"full",style:{borderCollapse:"collapse"},"aria-label":h,children:[h&&r.jsx("caption",{style:{display:"none"},children:h}),r.jsx(s.Box,{as:"thead",children:r.jsx(s.Box,{as:"tr",bg:"bg.subtle",borderBottom:"1px solid",borderColor:"border",children:e.map((X,ne)=>{const le=w&&ne===0;return r.jsx(s.Box,{as:"th",py:"3",px:"4",textAlign:X.align??"left",minW:X.minWidth,fontSize:"xs",fontWeight:"600",letterSpacing:"0.05em",textTransform:"uppercase",color:"text.muted",fontFamily:"var(--font-body)",whiteSpace:"nowrap",userSelect:"none",cursor:X.sortable||l?"pointer":"default",_hover:X.sortable||l?{color:"text.heading"}:void 0,onClick:()=>X.sortable||l?m(X.key):void 0,"aria-sort":g===X.key?H==="asc"?"ascending":"descending":void 0,position:le?"sticky":void 0,left:le?0:void 0,zIndex:le?3:void 0,bg:le?"bg.subtle":void 0,borderRight:le?"1px solid":void 0,borderColor:le?"border":void 0,boxShadow:le?"2px 0 4px rgba(0, 0, 0, 0.05)":void 0,children:r.jsxs(s.Flex,{as:"span",align:"center",justify:X.align==="right"?"flex-end":X.align==="center"?"center":"flex-start",children:[X.label,(X.sortable||l)&&r.jsx(ae,{colKey:X.key})]})},X.key)})})}),r.jsx(s.Box,{as:"tbody",children:o?Array.from({length:5}).map((X,ne)=>r.jsx(s.Box,{as:"tr",borderBottom:"1px solid",borderColor:"border",children:e.map(le=>r.jsx(s.Box,{as:"td",py:"3.5",px:"4",children:r.jsx(s.Box,{h:"4",bg:"bg.subtle",borderRadius:"full",w:`${60+Math.random()*30}%`,style:{animation:"medix-shimmer 1.5s infinite"}})},le.key))},ne)):Z.length===0?r.jsx(s.Box,{as:"tr",children:r.jsx("td",{colSpan:e.length,style:{textAlign:"center",padding:"48px 16px"},children:r.jsx(s.Text,{color:"text.muted",fontFamily:"var(--font-body)",fontSize:"sm",children:i})})}):Z.map((X,ne)=>{const le=String(X[n]??ne);return r.jsx(s.Box,{as:"tr",onClick:()=>{f&&!E&&D!==!1&&z(D??"selection"),f==null||f(X,ne)},bg:u&&ne%2===1?"bg.subtle":"transparent",borderBottom:"1px solid",borderColor:"border",cursor:f?"pointer":"default",transition:"background 0.15s ease",_hover:{bg:"bg.subtle"},children:e.map((ge,we)=>{const xe=w&&we===0;return r.jsx(s.Box,{as:"td",py:"3.5",px:"4",textAlign:ge.align??"left",fontSize:"sm",color:"text.body",fontFamily:"var(--font-body)",verticalAlign:"middle",position:xe?"sticky":void 0,left:xe?0:void 0,zIndex:xe?2:void 0,bg:xe?u&&ne%2===1?"bg.subtle":"bg":void 0,borderRight:xe?"1px solid":void 0,borderColor:xe?"border":void 0,boxShadow:xe?"2px 0 4px rgba(0, 0, 0, 0.05)":void 0,children:ge.render?ge.render(X[ge.key],X,ne):String(X[ge.key]??"—")},ge.key)})},le)})})]})}),x&&r.jsxs(s.Flex,{p:"4",borderTop:"1px solid",borderColor:"border",bg:"bg",align:"center",justify:"space-between",flexWrap:"wrap",gap:"4",children:[r.jsxs(s.Text,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:["Showing ",Y===0?0:(k-1)*p+1," to"," ",Math.min(k*p,Y)," of ",Y," entries"]}),r.jsx(ui,{total:Y,pageSize:p,currentPage:k,onChange:O,compact:!0,haptic:D,disableHaptic:E})]})]})}function f1({name:e,specialty:t,location:n,avatar:o,rating:i,reviewCount:l,experience:a,consultationFee:c,isVerified:d=!1,isAvailable:u=!1,availabilityLabel:f="Available",onBookClick:h,onViewClick:x,variant:p="standard",...b}){return p==="featured"?r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},display:"flex",flexDirection:"column",...b,children:[o?r.jsx("img",{src:o,alt:e,style:{width:"100%",height:240,objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"100%",h:"240px",bg:"blue.100",display:"flex",alignItems:"center",justifyContent:"center",children:r.jsx(s.Box,{fontSize:"4xl",fontWeight:"bold",color:"blue.500",children:e.charAt(0)})}),r.jsxs(s.Box,{p:"5",display:"flex",flexDirection:"column",gap:"4",children:[r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),d&&r.jsx(Oe,{label:"This practitioner's identity has been verified by MedixDeck",placement:"top",children:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",flexShrink:0},children:[r.jsx("path",{d:"M10.5213 2.62368C11.3147 1.75255 12.6853 1.75255 13.4787 2.62368L14.4989 3.74391C14.8998 4.18418 15.4761 4.42288 16.071 4.39508L17.5845 4.32435C18.7614 4.26934 19.7307 5.23857 19.6757 6.41554L19.6049 7.92905C19.5771 8.52388 19.8158 9.10016 20.2561 9.50111L21.3763 10.5213C22.2475 11.3147 22.2475 12.6853 21.3763 13.4787L20.2561 14.4989C19.8158 14.8998 19.5771 15.4761 19.6049 16.071L19.6757 17.5845C19.7307 18.7614 18.7614 19.7307 17.5845 19.6757L16.071 19.6049C15.4761 19.5771 14.8998 19.8158 14.4989 20.2561L13.4787 21.3763C12.6853 22.2475 11.3147 22.2475 10.5213 21.3763L9.50111 20.2561C9.10016 19.8158 8.52388 19.5771 7.92905 19.6049L6.41554 19.6757C5.23857 19.7307 4.26934 18.7614 4.32435 17.5845L4.39508 16.071C4.42288 15.4761 4.18418 14.8998 3.74391 14.4989L2.62368 13.4787C1.75255 12.6853 1.75255 11.3147 2.62368 10.5213L3.74391 9.50111C4.18418 9.10016 4.42288 8.52388 4.39508 7.92905L4.32435 6.41554C4.26934 5.23857 5.23857 4.26934 6.41554 4.32435L7.92905 4.39508C8.52388 4.42288 9.10016 4.18418 9.50111 3.74391L10.5213 2.62368Z",fill:"#0685FF"}),r.jsx("path",{d:"M10.5 15.5L6.5 11.5L7.91 10.09L10.5 12.67L16.09 7.09L17.5 8.5L10.5 15.5Z",fill:"white"})]})})]}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",mt:"0.5",children:[t,n?` • ${n}`:""]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"4",mt:"1",children:[u&&r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"1.5",bg:"status.success.tint",color:"status.success",borderRadius:"md",fontSize:"sm",fontWeight:"medium",children:[r.jsx(s.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:"status.success"}),f]}),u&&a&&r.jsx(s.Box,{w:"1px",h:"20px",bg:"border"}),a&&r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",fontSize:"sm",color:"text.heading",children:[r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"var(--chakra-colors-text-muted)",children:[r.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),r.jsx("path",{d:"M9 12l2 2 4-4"})]}),a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",my:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),r.jsxs(s.Box,{display:"flex",gap:"3",alignItems:"center",children:[x&&r.jsx(s.Box,{as:"button",px:"3",py:"2",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.body",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{color:"blue.500"},onClick:x,children:"view"}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]})]})]}):p==="compact"?r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},...b,children:[r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",gap:"4",children:[r.jsx(s.Box,{flexShrink:0,children:o?r.jsx("img",{src:o,alt:e,style:{width:64,height:64,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"64px",h:"64px",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",fontWeight:"bold",color:"white",children:e.charAt(0)})}),r.jsxs(s.Box,{pt:"1",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",children:[t,n&&p!=="compact"?` • ${n}`:""]})]})]}),x&&r.jsx(s.Box,{as:"button",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.heading",border:"none",cursor:"pointer",_hover:{color:"blue.500"},onClick:x,pt:"1",children:"View"})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1.5",fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",children:[r.jsx(s.Box,{as:"span",color:"status.warning",mt:"-2px",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}),r.jsxs(s.Box,{as:"span",color:"text.heading",mr:"1",children:[(i==null?void 0:i.toFixed(1))||"New"," ",l?`(${l})`:""]}),n&&r.jsxs(s.Box,{as:"span",children:[" • ",n]}),a&&r.jsxs(s.Box,{as:"span",children:[" • ",a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",mt:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"1",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]}):r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",transition:"all 0.2s ease",_hover:{transform:"translateY(-2px)",borderColor:"blue.200"},...b,children:[r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",gap:"4",minW:"0",flex:"1",children:[r.jsx(s.Box,{flexShrink:0,children:o?r.jsx("img",{src:o,alt:e,style:{width:64,height:64,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"64px",h:"64px",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",fontWeight:"bold",color:"white",children:e.charAt(0)})}),r.jsxs(s.Box,{pt:"1",minW:"0",flex:"1",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",minW:"0",children:[r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minW:"0",flex:"1",children:e}),d&&r.jsx(Oe,{label:"This practitioner's identity has been verified by MedixDeck",placement:"top",children:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",flexShrink:0},children:[r.jsx("path",{d:"M10.5213 2.62368C11.3147 1.75255 12.6853 1.75255 13.4787 2.62368L14.4989 3.74391C14.8998 4.18418 15.4761 4.42288 16.071 4.39508L17.5845 4.32435C18.7614 4.26934 19.7307 5.23857 19.6757 6.41554L19.6049 7.92905C19.5771 8.52388 19.8158 9.10016 20.2561 9.50111L21.3763 10.5213C22.2475 11.3147 22.2475 12.6853 21.3763 13.4787L20.2561 14.4989C19.8158 14.8998 19.5771 15.4761 19.6049 16.071L19.6757 17.5845C19.7307 18.7614 18.7614 19.7307 17.5845 19.6757L16.071 19.6049C15.4761 19.5771 14.8998 19.8158 14.4989 20.2561L13.4787 21.3763C12.6853 22.2475 11.3147 22.2475 10.5213 21.3763L9.50111 20.2561C9.10016 19.8158 8.52388 19.5771 7.92905 19.6049L6.41554 19.6757C5.23857 19.7307 4.26934 18.7614 4.32435 17.5845L4.39508 16.071C4.42288 15.4761 4.18418 14.8998 3.74391 14.4989L2.62368 13.4787C1.75255 12.6853 1.75255 11.3147 2.62368 10.5213L3.74391 9.50111C4.18418 9.10016 4.42288 8.52388 4.39508 7.92905L4.32435 6.41554C4.26934 5.23857 5.23857 4.26934 6.41554 4.32435L7.92905 4.39508C8.52388 4.42288 9.10016 4.18418 9.50111 3.74391L10.5213 2.62368Z",fill:"#0685FF"}),r.jsx("path",{d:"M10.5 15.5L6.5 11.5L7.91 10.09L10.5 12.67L16.09 7.09L17.5 8.5L10.5 15.5Z",fill:"white"})]})})]}),r.jsxs(s.Box,{fontSize:"md",color:"text.muted",fontFamily:"var(--font-body)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[t,n?` • ${n}`:""]})]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",fontSize:"md",color:"text.heading",fontFamily:"var(--font-body)",pt:"1",children:[r.jsx(s.Box,{as:"span",color:"status.warning",mt:"-2px",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}),(i==null?void 0:i.toFixed(1))||"New"," ",l?r.jsxs(s.Box,{as:"span",color:"text.muted",children:["(",l,")"]}):null]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"4",mt:"1",children:[u&&r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"1.5",bg:"status.success.tint",color:"status.success",borderRadius:"md",fontSize:"sm",fontWeight:"medium",children:[r.jsx(s.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:"status.success"}),f]}),u&&a&&r.jsx(s.Box,{w:"1px",h:"20px",bg:"border"}),a&&r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",fontSize:"sm",color:"text.heading",children:[r.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"var(--chakra-colors-text-muted)",children:[r.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),r.jsx("path",{d:"M9 12l2 2 4-4"})]}),a]})]}),r.jsx(s.Box,{borderTop:"1px solid",borderColor:"border",my:"1"}),r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"1",children:[c&&r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:"Consultation fee"}),r.jsx(s.Box,{fontSize:"xl",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-heading)",children:c})]}),r.jsxs(s.Box,{display:"flex",gap:"3",alignItems:"center",children:[x&&r.jsx(s.Box,{as:"button",px:"4",py:"2",fontSize:"md",fontWeight:"medium",fontFamily:"var(--font-body)",bg:"transparent",color:"text.heading",border:"1px solid",borderColor:"border",borderRadius:"md",cursor:"pointer",transition:"all 0.15s",_hover:{borderColor:"blue.400",color:"blue.500"},onClick:x,children:"view"}),h&&r.jsx(s.Box,{as:"button",px:"5",py:"2.5",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",bg:"blue.500",color:"white",borderRadius:"md",border:"none",cursor:"pointer",transition:"all 0.15s",_hover:{bg:"blue.600"},onClick:h,children:"Consult Now"})]})]})]})}const p1={normal:{bg:"color-mix(in srgb, var(--chakra-colors-status-success) 8%, transparent)",indicator:"status.success",border:"color-mix(in srgb, var(--chakra-colors-status-success) 20%, transparent)",text:"status.success",ariaLabel:"Normal",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"var(--chakra-colors-status-success)"}),r.jsx("path",{d:"M7 12.5l3.5 3.5 6.5-7",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:{bg:"color-mix(in srgb, var(--chakra-colors-status-warning) 8%, transparent)",indicator:"status.warning",border:"color-mix(in srgb, var(--chakra-colors-status-warning) 20%, transparent)",text:"status.warning",ariaLabel:"Warning",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("path",{d:"M12 2L2 21h20L12 2z",fill:"var(--chakra-colors-status-warning)"}),r.jsx("path",{d:"M12 9v5",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round"}),r.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"white"})]})},critical:{bg:"color-mix(in srgb, var(--chakra-colors-status-error) 8%, transparent)",indicator:"status.error",border:"color-mix(in srgb, var(--chakra-colors-status-error) 20%, transparent)",text:"status.error",ariaLabel:"Critical",icon:r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[r.jsx("path",{d:"M8.5 2h7l6.5 6.5v7L15.5 22h-7L2 15.5v-7L8.5 2z",fill:"var(--chakra-colors-status-error)"}),r.jsx("path",{d:"M12 7v6",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round"}),r.jsx("circle",{cx:"12",cy:"16.5",r:"1",fill:"white"})]})}};function h1({label:e,value:t,unit:n,status:o="normal",...i}){const l=p1[o];return r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"2",px:"3",py:"2",borderRadius:"md",bg:l.bg,border:"1px solid",borderColor:l.border,...i,children:[r.jsx("span",{"aria-label":l.ariaLabel,style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:l.icon}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"2xs",color:"text.muted",fontFamily:"var(--font-body)",textTransform:"uppercase",letterSpacing:"wide",children:e}),r.jsxs(s.Box,{display:"flex",alignItems:"baseline",gap:"1",children:[r.jsx(s.Box,{fontSize:"md",fontWeight:"bold",color:"text.heading",fontFamily:"var(--font-mono, monospace)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:l.text,fontFamily:"var(--font-body)",children:n})]})]})]})}const x1={upcoming:{label:"Upcoming",color:"info"},completed:{label:"Completed",color:"success"},cancelled:{label:"Cancelled",color:"error"}};function g1({doctorName:e,doctorSpecialty:t,doctorAvatar:n,date:o,time:i,type:l="video",status:a="upcoming",onCancel:c,onReschedule:d,onJoin:u,...f}){const h=x1[a];return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",p:"5",display:"flex",flexDirection:"column",gap:"4",...f,children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",children:[n?r.jsx("img",{src:n,alt:e,style:{width:40,height:40,borderRadius:"50%",objectFit:"cover",display:"block"}}):r.jsx(s.Box,{w:"10",h:"10",borderRadius:"full",bg:"blue.500",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"md",fontWeight:"bold",color:"white",children:e.charAt(0)}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"md",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:e}),t&&r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",children:t})]})]}),r.jsx(Gn,{status:h.color,size:"sm",children:h.label})]}),r.jsxs(s.Box,{display:"flex",gap:"4",py:"3",borderTop:"1px solid",borderBottom:"1px solid",borderColor:"border",children:[r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Date"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:o})]}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Time"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:i})]}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:"Type"}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",textTransform:"capitalize",children:l==="video"?"🎥 Video Call":"🏥 In-Person"})]})]}),a==="upcoming"&&r.jsxs(s.Box,{display:"flex",gap:"2",children:[u&&r.jsx(s.Box,{as:"button",flex:"1",py:"2",bg:"blue.500",color:"white",borderRadius:"md",border:"none",fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{bg:"blue.600"},transition:"all 0.15s",onClick:u,children:"Join Call"}),d&&r.jsx(s.Box,{as:"button",flex:"1",py:"2",bg:"transparent",color:"text.body",border:"1px solid",borderColor:"border",borderRadius:"md",fontSize:"sm",fontWeight:"medium",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{borderColor:"blue.400",color:"blue.500"},transition:"all 0.15s",onClick:d,children:"Reschedule"}),c&&r.jsx(s.Box,{as:"button",py:"2",px:"3",bg:"transparent",color:"red.500",border:"1px solid",borderColor:"red.200",borderRadius:"md",fontSize:"sm",fontFamily:"var(--font-body)",cursor:"pointer",_hover:{bg:"red.50"},transition:"all 0.15s",onClick:c,children:"Cancel"})]})]})}const m1={active:{label:"Active",bg:"color-mix(in srgb, var(--chakra-colors-status-success) 12%, transparent)",color:"var(--chakra-colors-status-success)"},expired:{label:"Expired",bg:"color-mix(in srgb, var(--chakra-colors-status-error) 10%, transparent)",color:"var(--chakra-colors-status-error)"},dispensed:{label:"Dispensed",bg:"color-mix(in srgb, var(--chakra-colors-blue-500) 10%, transparent)",color:"var(--chakra-colors-blue-500)"}},b1=()=>r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"}),r.jsx("path",{d:"m8.5 8.5 7 7"})]}),y1=()=>r.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),r.jsx("polyline",{points:"7 10 12 15 17 10"}),r.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),yo=()=>r.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),r.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),r.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),r.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]});function v1({rxId:e,doctorName:t,doctorSpecialty:n,issuedDate:o,expiryDate:i,drugs:l,refillsRemaining:a,status:c="active",colorScheme:d="blue",onDownload:u,...f}){const h=m1[c],x=d==="purple"?"#7700CC":"#0685FF",p=d==="purple"?"color-mix(in srgb, #7700CC 8%, transparent)":"color-mix(in srgb, #0685FF 8%, transparent)";return r.jsxs(s.Box,{bg:"bg.surface",border:"1px solid",borderColor:"border",borderRadius:"card",overflow:"hidden",...f,children:[r.jsxs(s.Box,{px:"5",py:"3.5",display:"flex",alignItems:"center",justifyContent:"space-between",style:{borderBottom:"1px solid var(--chakra-colors-border)",background:p},children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",children:[r.jsx(s.Box,{style:{color:x},children:r.jsx(b1,{})}),r.jsx(s.Box,{fontSize:"sm",fontWeight:"700",fontFamily:"var(--font-heading)",style:{color:x},children:"Prescription"}),e&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:e})]}),r.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:h.bg,color:h.color},children:[r.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:h.color,display:"inline-block"}}),h.label]})]}),r.jsxs(s.Box,{px:"5",py:"3",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid",borderColor:"border",flexWrap:"wrap",gap:"2",children:[r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:t}),n&&r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:n})]}),r.jsxs(s.Box,{display:"flex",gap:"4",children:[r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",color:"text.muted",children:[r.jsx(yo,{}),r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",children:"Issued"})]}),r.jsx(s.Box,{fontSize:"xs",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:o})]}),i&&r.jsxs(s.Box,{children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"1",color:"text.muted",children:[r.jsx(yo,{}),r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",children:"Expires"})]}),r.jsx(s.Box,{fontSize:"xs",fontWeight:"medium",color:"text.heading",fontFamily:"var(--font-body)",children:i})]})]})]}),r.jsx(s.Box,{px:"5",py:"4",display:"flex",flexDirection:"column",gap:"3",children:l.map((b,v)=>r.jsxs(s.Box,{display:"flex",alignItems:"flex-start",gap:"3",p:"3",borderRadius:"md",bg:"bg.subtle",border:"1px solid",borderColor:"border",children:[r.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:"50%",background:p,color:x,fontSize:11,fontWeight:700,fontFamily:"var(--font-heading)",flexShrink:0,marginTop:1},children:v+1}),r.jsxs(s.Box,{flex:"1",minW:"0",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:b.name}),r.jsx("span",{style:{padding:"1px 6px",borderRadius:4,fontSize:11,fontWeight:600,background:p,color:x,fontFamily:"var(--font-body)"},children:b.dosage})]}),r.jsxs(s.Box,{display:"flex",gap:"3",mt:"1",flexWrap:"wrap",children:[r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:["🕐 ",b.frequency]}),b.duration&&r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:["📅 ",b.duration]}),b.instructions&&r.jsxs(s.Box,{fontSize:"xs",color:"text.body",fontFamily:"var(--font-body)",fontStyle:"italic",children:["ℹ️ ",b.instructions]})]})]})]},v))}),r.jsxs(s.Box,{px:"5",py:"3",display:"flex",alignItems:"center",justifyContent:"space-between",borderTop:"1px solid",borderColor:"border",children:[a!==void 0?r.jsxs(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:[r.jsx(s.Box,{as:"span",fontWeight:"semibold",color:"text.heading",children:a})," ","refill",a!==1?"s":""," remaining"]}):r.jsx(s.Box,{}),u&&r.jsxs("button",{onClick:u,"aria-label":"Download prescription",style:{display:"inline-flex",alignItems:"center",gap:6,padding:"6px 14px",borderRadius:8,fontSize:12,fontWeight:600,fontFamily:"var(--font-body)",color:x,background:p,border:"none",cursor:"pointer",transition:"opacity 0.15s"},onMouseEnter:b=>{b.currentTarget.style.opacity="0.8"},onMouseLeave:b=>{b.currentTarget.style.opacity="1"},children:[r.jsx(y1,{}),"Download"]})]})]})}const k1={primary:{label:"Primary",bg:"color-mix(in srgb, #0685FF 10%, transparent)",color:"#0685FF",border:"color-mix(in srgb, #0685FF 25%, transparent)"},secondary:{label:"Secondary",bg:"color-mix(in srgb, #64748B 10%, transparent)",color:"#64748B",border:"color-mix(in srgb, #64748B 25%, transparent)"},chronic:{label:"Chronic",bg:"color-mix(in srgb, #F59E0B 10%, transparent)",color:"#B45309",border:"color-mix(in srgb, #F59E0B 25%, transparent)"},acute:{label:"Acute",bg:"color-mix(in srgb, #EF4444 10%, transparent)",color:"#DC2626",border:"color-mix(in srgb, #EF4444 25%, transparent)"}};function nl({code:e,description:t,category:n="primary",...o}){const i=k1[n];return r.jsxs(s.Box,{display:"inline-flex",alignItems:"center",gap:"1.5",...o,children:[r.jsx("span",{title:t,"aria-label":`ICD-10 code ${e}${t?`: ${t}`:""}`,style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:4,fontSize:11,fontWeight:700,fontFamily:"var(--font-mono, monospace)",background:i.bg,color:i.color,border:`1px solid ${i.border}`,cursor:t?"help":"default",whiteSpace:"nowrap"},children:e}),t&&r.jsx(s.Box,{as:"span",fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:t})]})}function rl({bloodType:e,...t}){return r.jsx(s.Box,{display:"inline-flex",alignItems:"center",...t,children:r.jsxs("span",{"aria-label":`Blood type ${e}`,style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:4,fontSize:12,fontWeight:800,fontFamily:"var(--font-heading)",background:"color-mix(in srgb, #DC2626 12%, transparent)",color:"#DC2626",border:"1px solid color-mix(in srgb, #DC2626 30%, transparent)",letterSpacing:"0.02em"},children:[r.jsx("svg",{width:"10",height:"12",viewBox:"0 0 12 16",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M6 0C6 0 0 7.5 0 11a6 6 0 0 0 12 0C12 7.5 6 0 6 0z"})}),e]})})}const w1={mild:{label:"Mild",bg:"color-mix(in srgb, #F59E0B 8%, transparent)",color:"#B45309",border:"color-mix(in srgb, #F59E0B 30%, transparent)",icon:"⚠"},moderate:{label:"Moderate",bg:"color-mix(in srgb, #F97316 10%, transparent)",color:"#C2410C",border:"color-mix(in srgb, #F97316 30%, transparent)",icon:"⚠"},severe:{label:"Severe",bg:"color-mix(in srgb, #EF4444 10%, transparent)",color:"#DC2626",border:"color-mix(in srgb, #EF4444 30%, transparent)",icon:"🚫"},"life-threatening":{label:"Life-threatening",bg:"color-mix(in srgb, #7F1D1D 15%, transparent)",color:"#991B1B",border:"#DC2626",icon:"⛔"}};function ol({allergen:e,severity:t="mild",...n}){const o=w1[t];return r.jsx(s.Box,{display:"inline-flex",alignItems:"center",...n,children:r.jsxs("span",{"aria-label":`Allergy: ${e} — ${o.label} severity`,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"3px 8px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:o.bg,color:o.color,border:`1px solid ${o.border}`,borderLeftWidth:t==="life-threatening"?3:1,whiteSpace:"nowrap"},children:[r.jsx("span",{"aria-hidden":"true",children:o.icon}),e,r.jsxs("span",{style:{opacity:.7,fontSize:10},children:["· ",o.label]})]})})}function j1({diagnoses:e,bloodType:t,allergies:n,direction:o="row",...i}){return r.jsxs(s.Box,{display:"flex",flexDirection:o,flexWrap:"wrap",gap:"2",alignItems:o==="row"?"center":"flex-start",...i,children:[t&&r.jsx(rl,{bloodType:t}),e==null?void 0:e.map((l,a)=>r.jsx(nl,{code:l.code,description:l.description,category:l.category},a)),n==null?void 0:n.map((l,a)=>r.jsx(ol,{allergen:l.allergen,severity:l.severity},a))]})}var il={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vo=I.default.createContext&&I.default.createContext(il),C1=["attr","size","title"];function S1(e,t){if(e==null)return{};var n,o,i=B1(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function B1(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Gt.apply(null,arguments)}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ko(Object(n),!0).forEach(function(o){F1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function F1(e,t,n){return(t=E1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E1(e){var t=L1(e,"string");return typeof t=="symbol"?t:t+""}function L1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ll(e){return e&&e.map((t,n)=>I.default.createElement(t.tag,Yt({key:n},t.attr),ll(t.child)))}function ke(e){return t=>I.default.createElement(I1,Gt({attr:Yt({},e.attr)},t),ll(e.child))}function I1(e){var t=n=>{var{attr:o,size:i,title:l}=e,a=S1(e,C1),c=i||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),I.default.createElement("svg",Gt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,a,{className:d,style:Yt(Yt({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&I.default.createElement("title",null,l),e.children)};return vo!==void 0?I.default.createElement(vo.Consumer,null,n=>t(n)):t(il)}function T1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}function D1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"},child:[]},{tag:"rect",attr:{x:"2",y:"6",width:"14",height:"12",rx:"2"},child:[]}]})(e)}function A1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196"},child:[]},{tag:"path",attr:{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2"},child:[]},{tag:"path",attr:{d:"m2 2 20 20"},child:[]}]})(e)}function z1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3"},child:[]},{tag:"path",attr:{d:"M8 21h8"},child:[]},{tag:"path",attr:{d:"M12 17v4"},child:[]},{tag:"path",attr:{d:"m17 8 5-5"},child:[]},{tag:"path",attr:{d:"M17 3h5v5"},child:[]}]})(e)}function R1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"},child:[]},{tag:"path",attr:{d:"m8.5 8.5 7 7"},child:[]}]})(e)}function M1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},child:[]},{tag:"line",attr:{x1:"22",x2:"2",y1:"2",y2:"22"},child:[]}]})(e)}function O1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]},{tag:"path",attr:{d:"M14.05 2a9 9 0 0 1 8 7.94"},child:[]},{tag:"path",attr:{d:"M14.05 6A5 5 0 0 1 18 10"},child:[]}]})(e)}function N1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"19",y2:"22"},child:[]}]})(e)}function P1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"2",x2:"22",y1:"2",y2:"22"},child:[]},{tag:"path",attr:{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"},child:[]},{tag:"path",attr:{d:"M5 10v2a7 7 0 0 0 12 5"},child:[]},{tag:"path",attr:{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"19",y2:"22"},child:[]}]})(e)}function _1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",x2:"9",y1:"12",y2:"12"},child:[]}]})(e)}function H1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 6v4"},child:[]},{tag:"path",attr:{d:"M14 14h-4"},child:[]},{tag:"path",attr:{d:"M14 18h-4"},child:[]},{tag:"path",attr:{d:"M14 8h-4"},child:[]},{tag:"path",attr:{d:"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2"},child:[]},{tag:"path",attr:{d:"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18"},child:[]}]})(e)}function W1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2"},child:[]},{tag:"path",attr:{d:"M8.5 2h7"},child:[]},{tag:"path",attr:{d:"M7 16h10"},child:[]}]})(e)}function q1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},child:[]},{tag:"path",attr:{d:"M14 2v4a2 2 0 0 0 2 2h4"},child:[]},{tag:"path",attr:{d:"M10 9H8"},child:[]},{tag:"path",attr:{d:"M16 13H8"},child:[]},{tag:"path",attr:{d:"M16 17H8"},child:[]}]})(e)}function V1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(e)}function $1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"},child:[]},{tag:"path",attr:{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"},child:[]},{tag:"path",attr:{d:"M4 2C2.8 3.7 2 5.7 2 8"},child:[]},{tag:"path",attr:{d:"M22 8c0-2.3-.8-4.3-2-6"},child:[]}]})(e)}function U1(e){return ke({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"},child:[]}]})(e)}const G1=({muted:e})=>e?r.jsx(P1,{size:18,"aria-hidden":"true"}):r.jsx(N1,{size:18,"aria-hidden":"true"}),Y1=({off:e})=>e?r.jsx(A1,{size:18,"aria-hidden":"true"}):r.jsx(D1,{size:18,"aria-hidden":"true"}),K1=({active:e})=>r.jsx(z1,{size:18,color:e?"var(--chakra-colors-status-success, #16A34A)":"currentColor","aria-hidden":"true"}),Z1=()=>r.jsx(M1,{size:18,"aria-hidden":"true"});function X1({participantName:e,participantRole:t,participantAvatar:n,duration:o,isMuted:i=!1,isCameraOff:l=!1,isSharingScreen:a=!1,onToggleMute:c,onToggleCamera:d,onEndCall:u,onShareScreen:f,position:h="bottom",variant:x="adaptive",...p}){const[b,v]=I.default.useState(i),[B,y]=I.default.useState(l),S=x==="dark",j=()=>{v(w=>!w),c==null||c()},C=()=>{y(w=>!w),d==null||d()},F=({onClick:w,ariaLabel:D,active:E,isEndCall:z=!1,children:N})=>{let R=S?"rgba(255,255,255,0.1)":"var(--chakra-colors-bg-subtle, #F0F4F8)",T=S?"white":"var(--chakra-colors-text-heading, #111926)",q=S?"rgba(255,255,255,0.2)":"var(--chakra-colors-border, #E2E8F0)";return z?(R="var(--chakra-colors-status-error, #DC2626)",T="white",q="color-mix(in srgb, var(--chakra-colors-status-error, #DC2626) 85%, black)"):E&&(R="var(--chakra-colors-status-error-tint, rgba(220,38,38,0.15))",T="var(--chakra-colors-status-error, #DC2626)",q="var(--chakra-colors-status-error-tint, rgba(220,38,38,0.25))"),r.jsx("button",{onClick:w,"aria-label":D,"aria-pressed":E,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:44,height:44,borderRadius:"50%",border:E?"1px solid var(--chakra-colors-status-error)":"1px solid transparent",cursor:"pointer",transition:"all 0.15s ease",background:R,color:T,WebkitTapHighlightColor:"transparent"},onMouseEnter:M=>{const k=M.currentTarget;k.style.background=q,k.style.transform="scale(1.06)"},onMouseLeave:M=>{const k=M.currentTarget;k.style.background=R,k.style.transform="scale(1)"},children:N})};return r.jsxs(s.Box,{position:"fixed",...h==="bottom"?{bottom:"0"}:{top:"0"},left:"0",right:"0",zIndex:"overlay",display:"flex",alignItems:"center",justifyContent:"space-between",px:{base:"4",md:"8"},flexWrap:"wrap",gap:"4",bg:S?void 0:"bg.surface",borderColor:"border",style:{minHeight:72,paddingTop:12,paddingBottom:h==="bottom"?"calc(12px + env(safe-area-inset-bottom, 0px))":12,background:S?"linear-gradient(135deg, #0A1220 0%, #0F1C2E 100%)":void 0,borderTop:h==="bottom"?"1px solid var(--chakra-colors-border)":"none",borderBottom:h==="top"?"1px solid var(--chakra-colors-border)":"none",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",transition:"background 0.2s ease, border-color 0.2s ease"},...p,children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",children:[r.jsx(Jt,{src:n,name:e,size:"md"}),r.jsxs(s.Box,{children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",fontFamily:"var(--font-heading)",color:S?"white":"text.heading",children:e}),t&&r.jsx(s.Box,{fontSize:"xs",fontFamily:"var(--font-body)",color:S?"rgba(255,255,255,0.6)":"text.muted",children:t})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",ml:"2",children:[r.jsxs("span",{"aria-label":"Live call",style:{display:"inline-flex",alignItems:"center",gap:5,padding:"2px 8px",borderRadius:4,fontSize:10,fontWeight:700,background:"var(--chakra-colors-status-error-tint, rgba(220,38,38,0.15))",color:"var(--chakra-colors-status-error, #DC2626)",fontFamily:"var(--font-body)",letterSpacing:"0.05em"},children:[r.jsx("span",{"aria-hidden":"true",style:{width:6,height:6,borderRadius:"50%",background:"var(--chakra-colors-status-error, #DC2626)",display:"inline-block",animation:"medixPulse 1.5s ease-in-out infinite"}}),"LIVE"]}),o&&r.jsx(s.Box,{fontSize:"sm",fontFamily:"var(--font-mono, monospace)",fontWeight:"600",color:S?"rgba(255,255,255,0.8)":"text.heading",style:{letterSpacing:"0.05em"},children:o})]})]}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",children:[c&&r.jsx(F,{onClick:j,ariaLabel:b?"Unmute microphone":"Mute microphone",active:b,children:r.jsx(G1,{muted:b})}),d&&r.jsx(F,{onClick:C,ariaLabel:B?"Turn camera on":"Turn camera off",active:B,children:r.jsx(Y1,{off:B})}),f&&r.jsx(F,{onClick:f,ariaLabel:a?"Stop sharing screen":"Share screen",active:a,children:r.jsx(K1,{active:a})}),u&&r.jsx(F,{onClick:u,ariaLabel:"End call",isEndCall:!0,children:r.jsx(Z1,{})})]})]})}const J1={consultation:{bg:"color-mix(in srgb, #0685FF 12%, transparent)",color:"#0685FF",icon:r.jsx(O1,{size:14,"aria-hidden":"true"})},lab:{bg:"color-mix(in srgb, #7700CC 12%, transparent)",color:"#7700CC",icon:r.jsx(W1,{size:14,"aria-hidden":"true"})},prescription:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981",icon:r.jsx(R1,{size:14,"aria-hidden":"true"})},vitals:{bg:"color-mix(in srgb, #F59E0B 12%, transparent)",color:"#D97706",icon:r.jsx(U1,{size:14,"aria-hidden":"true"})},note:{bg:"color-mix(in srgb, #64748B 12%, transparent)",color:"#64748B",icon:r.jsx(q1,{size:14,"aria-hidden":"true"})},admission:{bg:"color-mix(in srgb, #EF4444 12%, transparent)",color:"#EF4444",icon:r.jsx(H1,{size:14,"aria-hidden":"true"})},discharge:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981",icon:r.jsx(_1,{size:14,"aria-hidden":"true"})},custom:{bg:"color-mix(in srgb, #0685FF 10%, transparent)",color:"#0685FF",icon:r.jsx(V1,{size:14,"aria-hidden":"true"})}},wo={success:{bg:"color-mix(in srgb, #10B981 12%, transparent)",color:"#10B981"},warning:{bg:"color-mix(in srgb, #F59E0B 12%, transparent)",color:"#D97706"},error:{bg:"color-mix(in srgb, #EF4444 12%, transparent)",color:"#EF4444"},info:{bg:"color-mix(in srgb, #0685FF 12%, transparent)",color:"#0685FF"},neutral:{bg:"color-mix(in srgb, #64748B 12%, transparent)",color:"#64748B"}};function Q1(){return r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",children:[r.jsxs(s.Box,{flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",children:[r.jsx(s.Box,{w:"8",h:"8",borderRadius:"full",bg:"bg.subtle",style:{animation:"medix-shimmer 1.5s infinite"}}),r.jsx(s.Box,{w:"px",flex:"1",minH:"8",bg:"border",mt:"2"})]}),r.jsxs(s.Box,{flex:"1",pb:"6",children:[r.jsx(s.Box,{h:"4",bg:"bg.subtle",borderRadius:"full",w:"40%",mb:"2",style:{animation:"medix-shimmer 1.5s infinite"}}),r.jsx(s.Box,{h:"3",bg:"bg.subtle",borderRadius:"full",w:"65%",style:{animation:"medix-shimmer 1.5s infinite"}})]})]})}function eh({events:e,compact:t=!1,isLoading:n=!1,loadingCount:o=4,colorScheme:i="blue",...l}){const a=i==="purple"?"var(--chakra-colors-purple-200, rgba(119,0,204,0.2))":"var(--chakra-colors-blue-200, rgba(6,133,255,0.2))";return n?r.jsx(s.Box,{...l,children:Array.from({length:o}).map((c,d)=>r.jsx(Q1,{},d))}):r.jsx(s.Box,{...l,role:"feed","aria-label":"Patient medical timeline",children:e.map((c,d)=>{const u=J1[c.type],f=d===e.length-1;return r.jsxs(s.Box,{display:"flex",gap:"4",alignItems:"flex-start",role:"article","aria-label":`${c.title} on ${c.date}`,children:[r.jsxs(s.Box,{flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",children:[r.jsx(s.Box,{w:"8",h:"8",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",style:{background:u.bg,color:u.color,border:`1.5px solid ${u.color}40`,cursor:c.onClick?"pointer":"default",transition:"transform 0.15s, box-shadow 0.15s",flexShrink:0},onClick:c.onClick,role:c.onClick?"button":void 0,tabIndex:c.onClick?0:void 0,onKeyDown:c.onClick?h=>{(h.key==="Enter"||h.key===" ")&&c.onClick()}:void 0,_hover:c.onClick?{transform:"scale(1.1)"}:void 0,children:c.icon??u.icon}),!f&&r.jsx(s.Box,{w:"1px",flex:"1",minH:"8",mt:"1",style:{background:a}})]}),r.jsxs(s.Box,{flex:"1",pb:f?"0":"5",cursor:c.onClick?"pointer":"default",onClick:c.onClick,_hover:c.onClick?{opacity:.85}:void 0,transition:"opacity 0.15s",children:[r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"2",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"sm",fontWeight:"semibold",color:"text.heading",fontFamily:"var(--font-heading)",children:c.title}),c.badgeLabel&&c.badgeStatus&&r.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"1px 7px",borderRadius:4,fontSize:11,fontWeight:600,fontFamily:"var(--font-body)",background:wo[c.badgeStatus].bg,color:wo[c.badgeStatus].color},children:c.badgeLabel})]}),!t&&c.description&&r.jsx(s.Box,{fontSize:"sm",color:"text.muted",fontFamily:"var(--font-body)",mt:"0.5",children:c.description}),r.jsxs(s.Box,{display:"flex",alignItems:"center",gap:"3",mt:"1",flexWrap:"wrap",children:[r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:c.date}),c.provider&&r.jsxs(r.Fragment,{children:[r.jsx(s.Box,{w:"1px",h:"3",style:{background:"var(--chakra-colors-border)"}}),r.jsx(s.Box,{fontSize:"xs",color:"text.muted",fontFamily:"var(--font-body)",children:c.provider})]})]})]})]},c.id)})})}function th({title:e="Get notifications in this browser",description:t,actionLabel:n="Turn on notifications",busy:o,error:i,onAction:l,onDismiss:a}){return r.jsxs(s.Flex,{as:"section","aria-label":e,align:{base:"start",md:"center"},gap:"4",p:"4",mb:"4",bg:"bg.panel",borderWidth:"1px",borderColor:"border",borderRadius:"xl",children:[r.jsx(s.Flex,{"aria-hidden":"true",align:"center",justify:"center",boxSize:"11",flexShrink:"0",borderRadius:"lg",bg:"blue.subtle",color:"blue.fg",children:r.jsx($1,{size:22})}),r.jsxs(s.Flex,{flex:"1",minW:"0",gap:"3",align:{base:"start",md:"center"},direction:{base:"column",md:"row"},children:[r.jsxs(s.Box,{flex:"1",children:[r.jsx(s.Text,{fontWeight:"semibold",color:"text.heading",children:e}),r.jsx(s.Text,{fontSize:"sm",color:"text.body",children:t}),i&&r.jsx(s.Text,{role:"status",fontSize:"sm",color:"status.error",mt:"1",children:i})]}),r.jsx(s.chakra.button,{type:"button",onClick:l,disabled:o,"aria-busy":o,bg:"blue.subtle",color:"blue.solid",borderRadius:"lg",px:"4",py:"3",fontWeight:"semibold",cursor:"pointer",_disabled:{opacity:.65},focusVisibleRing:"outside",children:o?"Turning on…":n})]}),r.jsx(s.IconButton,{type:"button",variant:"ghost",size:"sm","aria-label":"Dismiss notification prompt",onClick:a,children:r.jsx(T1,{})})]})}Object.defineProperty(exports,"Box",{enumerable:!0,get:()=>s.Box});Object.defineProperty(exports,"Center",{enumerable:!0,get:()=>s.Center});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>s.Flex});Object.defineProperty(exports,"Grid",{enumerable:!0,get:()=>s.Grid});Object.defineProperty(exports,"GridItem",{enumerable:!0,get:()=>s.GridItem});Object.defineProperty(exports,"HStack",{enumerable:!0,get:()=>s.HStack});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>s.Heading});Object.defineProperty(exports,"Icon",{enumerable:!0,get:()=>s.Icon});Object.defineProperty(exports,"Image",{enumerable:!0,get:()=>s.Image});Object.defineProperty(exports,"Link",{enumerable:!0,get:()=>s.Link});Object.defineProperty(exports,"SimpleGrid",{enumerable:!0,get:()=>s.SimpleGrid});Object.defineProperty(exports,"Stack",{enumerable:!0,get:()=>s.Stack});Object.defineProperty(exports,"Text",{enumerable:!0,get:()=>s.Text});Object.defineProperty(exports,"VStack",{enumerable:!0,get:()=>s.VStack});Object.defineProperty(exports,"Wrap",{enumerable:!0,get:()=>s.Wrap});Object.defineProperty(exports,"WrapItem",{enumerable:!0,get:()=>s.WrapItem});exports.Accordion=l1;exports.Alert=$n;exports.AllergyBadge=ol;exports.AppointmentCard=g1;exports.Avatar=Jt;exports.AvatarGroup=Hl;exports.Badge=Gn;exports.BlogCard=u1;exports.BloodTypeBadge=rl;exports.Breadcrumb=Js;exports.BrowserNotificationBanner=th;exports.Button=Be;exports.Calendar=Zn;exports.Card=Jo;exports.CardBody=Ya;exports.CardFooter=Ka;exports.CardHeader=Ga;exports.Checkbox=$o;exports.Combobox=Ca;exports.Container=ei;exports.CookieConsentBanner=gi;exports.DASHBOARD_MEDIX_TIER_CONFIG=Ht;exports.DASHBOARD_MEDIX_TIER_ORDER=ii;exports.DEFAULT_HAPTIC_PATTERNS=Kt;exports.DRAFT_STORAGE_PREFIX=Ze;exports.DashboardLayout=ai;exports.DataTable=d1;exports.DatePicker=ka;exports.DateRangePicker=wa;exports.Divider=Po;exports.DoctorCard=f1;exports.Drawer=gc;exports.EmptyState=fc;exports.FileUpload=Ba;exports.Footer=ci;exports.FormControl=la;exports.FullPageSpinner=Wl;exports.HapticsProvider=Ao;exports.ICD10Badge=nl;exports.IconButton=Ro;exports.Input=Yn;exports.Logo=Ye;exports.MedicalRecordBadge=j1;exports.MedixProvider=Al;exports.Modal=dc;exports.Navbar=Hs;exports.NotFoundPage=pc;exports.OTPInput=Go;exports.PWAInstallPrompt=bi;exports.Pagination=ui;exports.PatientTimeline=eh;exports.PhoneInput=ha;exports.PinInput=aa;exports.PrescriptionCard=v1;exports.Progress=fi;exports.RadioGroup=na;exports.RichTextEditor=Ua;exports.RichTextInput=Xn;exports.SearchInput=Kn;exports.SectionHeader=Xa;exports.Select=ta;exports.ServerErrorPage=hc;exports.Skeleton=Ue;exports.SkeletonCard=lc;exports.SkeletonText=di;exports.Spinner=Oo;exports.StatCard=Qo;exports.Stepper=oc;exports.Switch=Uo;exports.TEXTAREA_DRAFT_PREFIX=Ke;exports.Tabs=tc;exports.Tag=No;exports.TagInput=Fa;exports.TagsInput=Yo;exports.TelehealthCallBar=X1;exports.TestimonialCard=a1;exports.Textarea=qo;exports.ThemeColorPalette=ti;exports.Toaster=zo;exports.Tooltip=Oe;exports.VitalBadge=h1;exports.canUseHaptics=Xt;exports.cancelHaptic=qn;exports.clearRichTextDraft=Zo;exports.clearTextareaDraft=Ho;exports.colorTokens=_;exports.dismissToast=Cl;exports.getEffectiveStorageKey=Ko;exports.getEffectiveTextareaStorageKey=_o;exports.getMedixScoreTierForScore=js;exports.getMedixScoreTierMeta=li;exports.getRichTextDraft=Xo;exports.getTextareaDraft=Wo;exports.htmlToMarkdown=it;exports.isReducedMotionPreferred=Wn;exports.markdownToHtml=He;exports.medixConfig=Eo;exports.radiiTokens=Bo;exports.resolveHapticPattern=Io;exports.saveRichTextDraft=Sn;exports.saveTextareaDraft=jn;exports.shadowTokens=Fo;exports.spacingTokens=So;exports.system=Lo;exports.textStyleTokens=Co;exports.toast=yt;exports.triggerHaptic=Vn;exports.typographyTokens=ot;exports.useColorScheme=Ml;exports.useHaptics=de;exports.useIsDarkMode=Un;exports.useThemeMode=St;
|
|
436
436
|
//# sourceMappingURL=index.cjs.map
|