"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[2060],{42060:function(e,a,t){t.d(a,{t:function(){return ke}});var r=t(73884),o=t.n(r),n=t(86566),l=t(85618);const i="Tabs component was not found in the tree",s="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",[c,d]=(0,l.F)(i);var b=t(48085),u=t(50736),p=t(36950),f=Object.defineProperty,v=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,g=(e,a,t)=>a in e?f(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,h=(e,a)=>{for(var t in a||(a={}))m.call(a,t)&&g(e,t,a[t]);if(v)for(var t of v(a))y.call(a,t)&&g(e,t,a[t]);return e};function w({orientation:e,inverted:a,placement:t},r,o){const n="vertical"===e;return"default"===o?{[n?"left"===t?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:`${(0,b.D)(2)} solid ${"dark"===r.colorScheme?r.colors.dark[4]:r.colors.gray[3]}`}:"outline"===o?{[n?"left"===t?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:`${(0,b.D)(1)} solid ${"dark"===r.colorScheme?r.colors.dark[4]:r.colors.gray[3]}`}:"pills"===o?{gap:`calc(${r.spacing.sm} / 2)`}:{}}var O=(0,u.r)(((e,a,{variant:t})=>{const r="vertical"===a.orientation;return{tabsList:h({display:"flex",flexWrap:"wrap",flexDirection:r?"column":"row",justifyContent:p.H[a.position],'& [role="tab"]':{flex:a.grow?1:void 0}},w(a,e,t))}})),T=t(36814),P=Object.defineProperty,k=Object.defineProperties,j=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,C=(e,a,t)=>a in e?P(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;const I={grow:!1,position:"left"},S=(0,r.forwardRef)(((e,a)=>{const t=(0,n.a1)("TabsList",I,e),{children:r,className:l,grow:i,position:s}=t,c=((e,a)=>{var t={};for(var r in e)x.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&N)for(var r of N(e))a.indexOf(r)<0&&D.call(e,r)&&(t[r]=e[r]);return t})(t,["children","className","grow","position"]),{orientation:b,variant:u,color:p,radius:f,inverted:v,placement:m,classNames:y,styles:g,unstyled:h}=d(),{classes:w,cx:P}=O({orientation:b,grow:i,color:p,position:s,radius:f,inverted:v,placement:m},{name:"Tabs",unstyled:h,classNames:y,styles:g,variant:u});return o().createElement(T.a,(S=((e,a)=>{for(var t in a||(a={}))x.call(a,t)&&C(e,t,a[t]);if(N)for(var t of N(a))D.call(a,t)&&C(e,t,a[t]);return e})({},c),$={className:P(w.tabsList,l),ref:a,role:"tablist","aria-orientation":b},k(S,j($))),r);var S,$}));S.displayName="@mantine/core/TabsList";var $=t(55470),R=(0,u.r)(((e,{orientation:a})=>({panel:{flex:"vertical"===a?1:void 0}}))),E=Object.defineProperty,L=Object.defineProperties,K=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,z=(e,a,t)=>a in e?E(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;const B={},H=(0,r.forwardRef)(((e,a)=>{const t=(0,n.a1)("TabsPanel",B,e),{value:l,children:i,sx:s,className:c}=t,b=((e,a)=>{var t={};for(var r in e)V.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&M)for(var r of M(e))a.indexOf(r)<0&&W.call(e,r)&&(t[r]=e[r]);return t})(t,["value","children","sx","className"]),u=d(),{classes:p,cx:f}=R({orientation:u.orientation,color:u.color,radius:u.radius,inverted:u.inverted,placement:u.placement},{name:"Tabs",unstyled:u.unstyled,classNames:u.classNames,styles:u.styles,variant:u.variant}),v=u.getPanelId(l),m=u.value===l,y=u.keepMounted||m?i:null;return(0,r.useEffect)((()=>(u.setMountedPanelIds((e=>[...e,v])),u.setMountedPanelIds((e=>e.filter((e=>e!==v)))))),[v]),o().createElement(T.a,(g=((e,a)=>{for(var t in a||(a={}))V.call(a,t)&&z(e,t,a[t]);if(M)for(var t of M(a))W.call(a,t)&&z(e,t,a[t]);return e})({},b),h={ref:a,sx:[{display:m?void 0:"none"},...(0,$.n)(s)],className:f(p.panel,c),role:"tabpanel",id:v,"aria-labelledby":u.getTabId(l)},L(g,K(h))),y);var g,h}));H.displayName="@mantine/core/TabsPanel";var F=t(23338),Y=Object.defineProperty,Z=Object.defineProperties,q=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,Q=(e,a,t)=>a in e?Y(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,U=(e,a)=>{for(var t in a||(a={}))G.call(a,t)&&Q(e,t,a[t]);if(A)for(var t of A(a))J.call(a,t)&&Q(e,t,a[t]);return e},X=(e,a)=>Z(e,q(a));function _(e,{orientation:a,color:t,radius:r,inverted:o,placement:n},l){const i="vertical"===a,s=e.fn.variant({color:t,variant:"filled"}),c=(0,b.D)(e.fn.radius(r)),d="vertical"===a?"left"===n?`${c} 0 0 ${c}`:` 0 ${c} ${c} 0`:o?`0 0 ${c} ${c}`:`${c} ${c} 0 0`;return"default"===l?X(U({[i?"left"===n?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`${(0,b.D)(2)} solid transparent`,[i?"left"===n?"marginRight":"marginLeft":o?"marginTop":"marginBottom"]:(0,b.D)(-2),borderRadius:d},e.fn.hover({backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0],borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":U({borderColor:s.background,color:"dark"===e.colorScheme?e.white:e.black},e.fn.hover({borderColor:s.background}))}):"outline"===l?{borderRadius:d,border:`${(0,b.D)(1)} solid transparent`,[i?"left"===n?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,position:"absolute",bottom:i?0:o?"unset":(0,b.D)(-1),top:i?0:o?(0,b.D)(-1):"unset",[i?"width":"height"]:(0,b.D)(1),right:i?"left"===n?(0,b.D)(-1):"unset":0,left:i?"left"===n?"unset":(0,b.D)(-1):0}}}:"pills"===l?X(U({borderRadius:e.fn.radius(r)},e.fn.hover({backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":U({backgroundColor:s.background,color:e.white},e.fn.hover({backgroundColor:s.background}))}):{}}var ee=(0,u.r)(((e,a,{variant:t})=>({tabLabel:{},tab:U({position:"relative",padding:`${e.spacing.xs} ${e.spacing.md}`,paddingLeft:a.withIcon?e.spacing.xs:void 0,paddingRight:a.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:"horizontal"===a.orientation?"center":void 0,lineHeight:1,"&:disabled":U({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},_(e,a,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:(0,b.D)(7)}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:(0,b.D)(7)}}}))),ae=t(42990),te=Object.defineProperty,re=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,a,t)=>a in e?te(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;const ce={},de=(0,r.forwardRef)(((e,a)=>{const t=(0,n.a1)("TabsTab",ce,e),{value:r,children:l,onKeyDown:i,onClick:s,className:c,icon:b,rightSection:u,color:p}=t,f=((e,a)=>{var t={};for(var r in e)le.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&ne)for(var r of ne(e))a.indexOf(r)<0&&ie.call(e,r)&&(t[r]=e[r]);return t})(t,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),v=d(),m=!!b,y=!!u,{theme:g,classes:h,cx:w}=ee({withIcon:m||y&&!l,withRightSection:y||m&&!l,orientation:v.orientation,color:p||v.color,radius:v.radius,inverted:v.inverted,placement:v.placement},{name:"Tabs",unstyled:v.unstyled,classNames:v.classNames,styles:v.styles,variant:v.variant}),O=r===v.value,T=v.getPanelId(r),P=v.mountedPanelIds.includes(r)?T:void 0;return o().createElement(ae.N,(k=((e,a)=>{for(var t in a||(a={}))le.call(a,t)&&se(e,t,a[t]);if(ne)for(var t of ne(a))ie.call(a,t)&&se(e,t,a[t]);return e})({},f),j={unstyled:v.unstyled,className:w(h.tab,c),"data-active":O||void 0,ref:a,type:"button",role:"tab",id:v.getTabId(r),"aria-selected":O,tabIndex:O||null===v.value?0:-1,"aria-controls":P,onClick:e=>{v.onTabChange(v.allowTabDeactivation&&r===v.value?null:r),null==s||s(e)},onKeyDown:(0,F.Y)({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:v.activateTabWithKeyboard,loop:v.loop,dir:g.dir,orientation:v.orientation,onKeyDown:i})},re(k,oe(j))),b&&o().createElement("span",{className:h.tabIcon},b),l&&o().createElement("span",{className:h.tabLabel},l),u&&o().createElement("span",{className:h.tabRightSection},u));var k,j}));de.displayName="@mantine/core/Tab";var be=t(25850),ue=t(27878),pe=t(19203);function fe({defaultValue:e,value:a,onTabChange:t,orientation:n,children:l,loop:i,id:d,activateTabWithKeyboard:b,allowTabDeactivation:u,variant:p,color:f,radius:v,inverted:m,placement:y,keepMounted:g=!0,classNames:h,styles:w,unstyled:O}){const T=(0,ue.B)(d),[P,k]=(0,r.useState)([]),[j,N]=(0,pe.Z)({value:a,defaultValue:e,finalValue:null,onChange:t});return o().createElement(c,{value:{placement:y,value:j,orientation:n,id:T,loop:i,activateTabWithKeyboard:b,getTabId:(0,be.r)(`${T}-tab`,s),getPanelId:(0,be.r)(`${T}-panel`,s),onTabChange:N,setMountedPanelIds:k,mountedPanelIds:P,allowTabDeactivation:u,variant:p,color:f,radius:v,inverted:m,keepMounted:g,classNames:h,styles:w,unstyled:O}},l)}fe.displayName="@mantine/core/TabsProvider";var ve=(0,u.r)(((e,{orientation:a,placement:t})=>({root:{display:"vertical"===a?"flex":void 0,flexDirection:"right"===t?"row-reverse":"row"}}))),me=Object.defineProperty,ye=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Te=(e,a,t)=>a in e?me(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;const Pe={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},ke=(0,r.forwardRef)(((e,a)=>{const t=(0,n.a1)("Tabs",Pe,e),{defaultValue:r,value:l,orientation:i,loop:s,activateTabWithKeyboard:c,allowTabDeactivation:d,children:b,id:u,onTabChange:p,variant:f,color:v,className:m,unstyled:y,classNames:g,styles:h,radius:w,inverted:O,keepMounted:P,placement:k}=t,j=((e,a)=>{var t={};for(var r in e)we.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&he)for(var r of he(e))a.indexOf(r)<0&&Oe.call(e,r)&&(t[r]=e[r]);return t})(t,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:N,cx:x}=ve({orientation:i,color:v,radius:w,inverted:O,placement:k},{unstyled:y,name:"Tabs",classNames:g,styles:h,variant:f});return o().createElement(fe,{activateTabWithKeyboard:c,defaultValue:r,orientation:i,onTabChange:p,value:l,id:u,loop:s,allowTabDeactivation:d,color:v,variant:f,radius:w,inverted:O,keepMounted:P,placement:k,classNames:g,styles:h,unstyled:y},o().createElement(T.a,(D=((e,a)=>{for(var t in a||(a={}))we.call(a,t)&&Te(e,t,a[t]);if(he)for(var t of he(a))Oe.call(a,t)&&Te(e,t,a[t]);return e})({},j),C={className:x(N.root,m),id:u,ref:a},ye(D,ge(C))),b));var D,C}));ke.List=S,ke.Tab=de,ke.Panel=H,ke.displayName="@mantine/core/Tabs"}}]);