@alepha/devtools 0.14.3 → 0.14.4

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.
Files changed (148) hide show
  1. package/assets/devtools/actions.html +37 -0
  2. package/assets/devtools/actions.html.br +0 -0
  3. package/assets/devtools/actions.html.gz +0 -0
  4. package/assets/devtools/asset.BZV40eAE.css.br +0 -0
  5. package/assets/devtools/asset.BZV40eAE.css.gz +0 -0
  6. package/assets/devtools/asset.DbJSgVPr.css.br +0 -0
  7. package/assets/devtools/asset.DbJSgVPr.css.gz +0 -0
  8. package/assets/devtools/atoms.html +37 -0
  9. package/assets/devtools/atoms.html.br +0 -0
  10. package/assets/devtools/atoms.html.gz +0 -0
  11. package/assets/devtools/caches.html +37 -0
  12. package/assets/devtools/caches.html.br +0 -0
  13. package/assets/devtools/caches.html.gz +0 -0
  14. package/assets/devtools/{chunk.XsVAJU_N.js → chunk.5EOPWu_h.js} +1 -1
  15. package/assets/devtools/chunk.5EOPWu_h.js.br +0 -0
  16. package/assets/devtools/chunk.5EOPWu_h.js.gz +0 -0
  17. package/assets/devtools/{chunk.Dwv4A_H_.js → chunk.B-FEo0lV.js} +1 -1
  18. package/assets/devtools/chunk.B-FEo0lV.js.br +0 -0
  19. package/assets/devtools/chunk.B-FEo0lV.js.gz +0 -0
  20. package/assets/devtools/{chunk.I1TSx4X4.js → chunk.BCBZ1wAk.js} +1 -1
  21. package/assets/devtools/chunk.BCBZ1wAk.js.br +0 -0
  22. package/assets/devtools/chunk.BCBZ1wAk.js.gz +0 -0
  23. package/assets/devtools/{chunk.ChDpavl2.js → chunk.BKZ6YEV4.js} +1 -1
  24. package/assets/devtools/chunk.BKZ6YEV4.js.br +0 -0
  25. package/assets/devtools/chunk.BKZ6YEV4.js.gz +0 -0
  26. package/assets/devtools/{chunk.DN-SKgAD.js → chunk.BQQ5nN1l.js} +1 -1
  27. package/assets/devtools/chunk.BQQ5nN1l.js.br +0 -0
  28. package/assets/devtools/chunk.BQQ5nN1l.js.gz +0 -0
  29. package/assets/devtools/{chunk.CAWWjC4E.js → chunk.BX7p74D8.js} +1 -1
  30. package/assets/devtools/chunk.BX7p74D8.js.br +0 -0
  31. package/assets/devtools/chunk.BX7p74D8.js.gz +0 -0
  32. package/assets/devtools/{chunk.DF8tZYh8.js → chunk.BZpSlmHc.js} +1 -1
  33. package/assets/devtools/chunk.BZpSlmHc.js.br +0 -0
  34. package/assets/devtools/chunk.BZpSlmHc.js.gz +0 -0
  35. package/assets/devtools/{chunk.DcaVw31J.js → chunk.BgMi2Pqe.js} +1 -1
  36. package/assets/devtools/chunk.BgMi2Pqe.js.br +0 -0
  37. package/assets/devtools/chunk.BgMi2Pqe.js.gz +0 -0
  38. package/assets/devtools/chunk.BjFrJKj1.js.br +2 -0
  39. package/assets/devtools/chunk.BjFrJKj1.js.gz +0 -0
  40. package/assets/devtools/{chunk.ByuRJbSC.js → chunk.BjOMCPQ3.js} +1 -1
  41. package/assets/devtools/chunk.BjOMCPQ3.js.br +0 -0
  42. package/assets/devtools/chunk.BjOMCPQ3.js.gz +0 -0
  43. package/assets/devtools/chunk.BlqFPyLh.js.br +0 -0
  44. package/assets/devtools/chunk.BlqFPyLh.js.gz +0 -0
  45. package/assets/devtools/{chunk.DLDchrhP.js → chunk.BqEqrty9.js} +1 -1
  46. package/assets/devtools/chunk.BqEqrty9.js.br +0 -0
  47. package/assets/devtools/chunk.BqEqrty9.js.gz +0 -0
  48. package/assets/devtools/{chunk.BPjMdorr.js → chunk.BuGWOypT.js} +1 -1
  49. package/assets/devtools/chunk.BuGWOypT.js.br +0 -0
  50. package/assets/devtools/chunk.BuGWOypT.js.gz +0 -0
  51. package/assets/devtools/{chunk.UAANdYnt.js → chunk.C3geCUq9.js} +1 -1
  52. package/assets/devtools/chunk.C3geCUq9.js.br +0 -0
  53. package/assets/devtools/chunk.C3geCUq9.js.gz +0 -0
  54. package/assets/devtools/{chunk.BjjA59Pf.js → chunk.CEbDj1NR.js} +1 -1
  55. package/assets/devtools/chunk.CEbDj1NR.js.br +0 -0
  56. package/assets/devtools/chunk.CEbDj1NR.js.gz +0 -0
  57. package/assets/devtools/{chunk.BC4Lys4j.js → chunk.CIYikik4.js} +1 -1
  58. package/assets/devtools/chunk.CIYikik4.js.br +0 -0
  59. package/assets/devtools/chunk.CIYikik4.js.gz +0 -0
  60. package/assets/devtools/{chunk.Bdi_dTor.js → chunk.CQO49DQF.js} +1 -1
  61. package/assets/devtools/chunk.CQO49DQF.js.br +0 -0
  62. package/assets/devtools/chunk.CQO49DQF.js.gz +0 -0
  63. package/assets/devtools/{chunk.C1yl87Yo.js → chunk.CWwJDVEM.js} +1 -1
  64. package/assets/devtools/chunk.CWwJDVEM.js.br +0 -0
  65. package/assets/devtools/chunk.CWwJDVEM.js.gz +0 -0
  66. package/assets/devtools/{chunk.CYVZxO-p.js → chunk.CZ4J9K5b.js} +1 -1
  67. package/assets/devtools/chunk.CZ4J9K5b.js.br +4 -0
  68. package/assets/devtools/chunk.CZ4J9K5b.js.gz +0 -0
  69. package/assets/devtools/{chunk.mJxmm31y.js → chunk.CoD2sLa1.js} +1 -1
  70. package/assets/devtools/chunk.CoD2sLa1.js.br +0 -0
  71. package/assets/devtools/chunk.CoD2sLa1.js.gz +0 -0
  72. package/assets/devtools/{chunk.CQ8PqHT0.js → chunk.CsxSstrk.js} +1 -1
  73. package/assets/devtools/chunk.CsxSstrk.js.br +0 -0
  74. package/assets/devtools/chunk.CsxSstrk.js.gz +0 -0
  75. package/assets/devtools/{chunk.BeYM7pih.js → chunk.D0jFBu2p.js} +1 -1
  76. package/assets/devtools/chunk.D0jFBu2p.js.br +0 -0
  77. package/assets/devtools/chunk.D0jFBu2p.js.gz +0 -0
  78. package/assets/devtools/{chunk.BNC0DJB8.js → chunk.D7ro5_n3.js} +1 -1
  79. package/assets/devtools/chunk.D7ro5_n3.js.br +0 -0
  80. package/assets/devtools/chunk.D7ro5_n3.js.gz +0 -0
  81. package/assets/devtools/{chunk.BBrq-Wwo.js → chunk.W-1mjDd7.js} +1 -1
  82. package/assets/devtools/chunk.W-1mjDd7.js.br +0 -0
  83. package/assets/devtools/chunk.W-1mjDd7.js.gz +0 -0
  84. package/assets/devtools/{chunk.B3_W5FaN.js → chunk._3YEef80.js} +1 -1
  85. package/assets/devtools/chunk._3YEef80.js.br +0 -0
  86. package/assets/devtools/chunk._3YEef80.js.gz +0 -0
  87. package/assets/devtools/{chunk.DI-f4xNk.js → chunk._t5z0lP9.js} +1 -1
  88. package/assets/devtools/chunk._t5z0lP9.js.br +0 -0
  89. package/assets/devtools/chunk._t5z0lP9.js.gz +0 -0
  90. package/assets/devtools/{chunk.DxjqPOcc.js → chunk.albVVSQX.js} +1 -1
  91. package/assets/devtools/chunk.albVVSQX.js.br +0 -0
  92. package/assets/devtools/chunk.albVVSQX.js.gz +0 -0
  93. package/assets/devtools/{chunk.C5K_AIru.js → chunk.bPNpu2iW.js} +1 -1
  94. package/assets/devtools/chunk.bPNpu2iW.js.br +0 -0
  95. package/assets/devtools/chunk.bPNpu2iW.js.gz +0 -0
  96. package/assets/devtools/{chunk.DAVfKvCa.js → chunk.fWijEdcZ.js} +1 -1
  97. package/assets/devtools/chunk.fWijEdcZ.js.br +0 -0
  98. package/assets/devtools/chunk.fWijEdcZ.js.gz +0 -0
  99. package/assets/devtools/{chunk.ospt8-RN.js → chunk.ffYG67rk.js} +1 -1
  100. package/assets/devtools/chunk.ffYG67rk.js.br +0 -0
  101. package/assets/devtools/chunk.ffYG67rk.js.gz +0 -0
  102. package/assets/devtools/{chunk.C6NWzsJg.js → chunk.lo8X57tY.js} +1 -1
  103. package/assets/devtools/chunk.lo8X57tY.js.br +0 -0
  104. package/assets/devtools/chunk.lo8X57tY.js.gz +0 -0
  105. package/assets/devtools/{chunk.PWK2K2kI.js → chunk.rqjDVBSo.js} +1 -1
  106. package/assets/devtools/chunk.rqjDVBSo.js.br +0 -0
  107. package/assets/devtools/chunk.rqjDVBSo.js.gz +0 -0
  108. package/assets/devtools/{chunk.INuuLdYd.js → chunk.u4exfSZ6.js} +1 -1
  109. package/assets/devtools/chunk.u4exfSZ6.js.br +0 -0
  110. package/assets/devtools/chunk.u4exfSZ6.js.gz +0 -0
  111. package/assets/devtools/chunk.uyVen0u2.js.br +0 -0
  112. package/assets/devtools/chunk.uyVen0u2.js.gz +0 -0
  113. package/assets/devtools/{chunk.iyc5GsVj.js → chunk.xjh83uy1.js} +1 -1
  114. package/assets/devtools/chunk.xjh83uy1.js.br +0 -0
  115. package/assets/devtools/chunk.xjh83uy1.js.gz +0 -0
  116. package/assets/devtools/{chunk.BOc4btAA.js → chunk.yZM2qlCX.js} +1 -1
  117. package/assets/devtools/chunk.yZM2qlCX.js.br +0 -0
  118. package/assets/devtools/chunk.yZM2qlCX.js.gz +0 -0
  119. package/assets/devtools/db.html +34 -0
  120. package/assets/devtools/db.html.br +0 -0
  121. package/assets/devtools/db.html.gz +0 -0
  122. package/assets/devtools/entry.BWhdC3SJ.js +79 -0
  123. package/assets/devtools/entry.BWhdC3SJ.js.br +0 -0
  124. package/assets/devtools/entry.BWhdC3SJ.js.gz +0 -0
  125. package/assets/devtools/env.html +35 -0
  126. package/assets/devtools/env.html.br +0 -0
  127. package/assets/devtools/env.html.gz +0 -0
  128. package/assets/devtools/graph.html +38 -0
  129. package/assets/devtools/graph.html.br +0 -0
  130. package/assets/devtools/graph.html.gz +0 -0
  131. package/assets/devtools/index.html +28 -8
  132. package/assets/devtools/index.html.br +0 -0
  133. package/assets/devtools/index.html.gz +0 -0
  134. package/assets/devtools/logs.html +38 -0
  135. package/assets/devtools/logs.html.br +0 -0
  136. package/assets/devtools/logs.html.gz +0 -0
  137. package/assets/devtools/queues.html +30 -0
  138. package/assets/devtools/queues.html.br +0 -0
  139. package/assets/devtools/queues.html.gz +0 -0
  140. package/assets/devtools/topics.html +38 -0
  141. package/assets/devtools/topics.html.br +0 -0
  142. package/assets/devtools/topics.html.gz +0 -0
  143. package/dist/index.d.ts +16 -1
  144. package/dist/index.js +0 -1
  145. package/dist/index.js.map +1 -1
  146. package/package.json +5 -5
  147. package/src/index.ts +0 -4
  148. package/assets/devtools/entry.DBfTnVUe.js +0 -75
@@ -1 +1 @@
1
- import{r as m,f as E,b as A,q as se,s as re,j as i,B as L,v as ee,t as oe,c as Eo,aC as me,b8 as jo,b9 as Ue,ah as ge,bc as Po,_ as fe,$ as te,aJ as Ke,e as Ce,ay as Ro,U as To,a0 as we,b7 as qe,ak as We,al as Ze,aH as $o,ad as Vo,d as Mo,ax as zo,a2 as Je,w as ye}from"./entry.DBfTnVUe.js";import{I as Bo,a as Fo,b as Lo}from"./chunk.BNC0DJB8.js";import{P as he}from"./chunk.mJxmm31y.js";function Go(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function K(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Ho(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var P={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const Ko={error:null},Uo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=E((e,o)=>{const t=A("ComboboxChevron",Ko,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:P,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Uo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=P;ke.displayName="@mantine/core/ComboboxChevron";const[qo,M]=Eo("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Se=E((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Se.classes=P;Se.displayName="@mantine/core/ComboboxDropdown";const Wo={refProp:"ref"},eo=E((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Wo,e);if(M(),!jo(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Oe=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Oe.classes=P;Oe.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Zo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Zo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,Po(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=P;_e.displayName="@mantine/core/ComboboxFooter";const Ne=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=P;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=P;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=E((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:k,mod:g,...w}=t,S=M(),D=m.useId(),_=d||D;return i.jsx(L,{...S.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...w,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":k},g],role:"option",onClick:h=>{x?h.preventDefault():(S.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{S.resetSelectionOnOptionHover&&S.store.resetSelectedOption(),b?.(h)}})});Ae.classes=P;Ae.displayName="@mantine/core/ComboboxOption";const Ee=E((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=P;Ee.displayName="@mantine/core/ComboboxOptions";const Jo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=E((e,o)=>{const t=A("ComboboxSearch",Jo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),k=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...k,...u,__staticSelector:"Combobox"})});je.classes=P;je.displayName="@mantine/core/ComboboxSearch";const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function Xo(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function Yo(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function et(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),k=m.useRef(-1),g=m.useRef(-1),w=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),S=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),D=m.useCallback((f="unknown")=>{l?S(f):w(f)},[S,w,l]),_=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-selected]`,f);O?.removeAttribute("data-combobox-selected"),O?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const O=K(b.current),B=be(`#${d.current}`,O),N=B?U("[data-combobox-option]",B):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),C=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-active]`,f);if(O){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===O);return h(N)}return h(0)},[h]),j=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Yo(p.current,O,a))},[h,a]),R=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Xo(p.current,O,a))},[h,a]),ce=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(et(O))},[h]),J=m.useCallback((f="selected",O)=>{g.current=window.setTimeout(()=>{const B=K(b.current),N=U(`#${d.current} [data-combobox-option]`,B),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,O?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),q=m.useCallback(()=>{const f=K(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),z=m.useCallback(f=>{d.current=f},[]),Q=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),H=m.useCallback(()=>{k.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(k.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:S,toggleDropdown:D,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:C,selectNextOption:j,selectPreviousOption:R,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:z,clickSelectedOption:q,searchRef:u,focusSearchInput:Q,targetRef:b,focusTarget:H}}const ot={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},tt=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",ot,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:k,attributes:g,...w}=o,S=so(),D=n||S,_=se({name:x||"Combobox",classes:P,props:o,classNames:t,styles:s,unstyled:r,attributes:g,vars:l,varsResolver:tt}),h=()=>{d?.(),D.closeDropdown()};return i.jsx(qo,{value:{getStyles:_,store:D,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:k},children:i.jsx(he,{opened:D.dropdownOpened,preventPositionChangeWhenVisible:!1,...w,onChange:C=>!C&&h(),withRoles:!1,unstyled:r,children:a})})}const nt=e=>e;v.extend=nt;v.classes=P;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Se;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Oe;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;const ro=m.createContext(null),st=ro.Provider,ao=()=>m.useContext(ro),[rt,at]=Ro();var co={card:"m_26775b0a"};const ct={withBorder:!0},lt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=E((e,o)=>{const t=A("CheckboxCard",ct,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:k,onChange:g,attributes:w,...S}=t,D=se({name:"CheckboxCard",classes:co,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:w,vars:c,varsResolver:lt,rootSelector:"card"}),_=ao(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[C,j]=te({value:h,defaultValue:k,finalValue:!1,onChange:g});return i.jsx(rt,{value:{checked:C},children:i.jsx(To,{ref:o,mod:[{"with-border":u,checked:C},p],...D("card"),...S,role:"checkbox","aria-checked":C,onClick:R=>{x?.(R),_?.onChange(b||""),j(!C)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=co;const Re=E((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=k=>{const g=typeof k=="string"?k:k.currentTarget.value;!c&&b(u.includes(g)?u.filter(w=>w!==g):[...u,g])};return i.jsx(st,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Bo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function lo({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function io({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(lo,{...o})}var uo={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const it={icon:io,variant:"filled"},dt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),Te=E((e,o)=>{const t=A("CheckboxIndicator",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:k,checked:g,mod:w,variant:S,disabled:D,attributes:_,...h}=t,C=se({name:"CheckboxIndicator",classes:uo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:dt,rootSelector:"indicator"}),j=at(),R=typeof g=="boolean"||typeof p=="boolean"?g||p:j?.checked||!1;return i.jsx(L,{ref:o,...C("indicator",{variant:S}),variant:S,mod:[{checked:R,disabled:D},w],...h,children:i.jsx(d,{indeterminate:p,...C("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=uo;var po={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ut={labelPosition:"right",icon:io,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),ae=E((e,o)=>{const t=A("Checkbox",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:k,checked:g,labelPosition:w,description:S,error:D,disabled:_,variant:h,indeterminate:C,icon:j,rootRef:R,iconColor:ce,onChange:J,autoContrast:le,mod:q,attributes:z,...Q}=t,H=ao(),X=b||H?.size,f=se({name:"Checkbox",props:t,classes:po,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:z,vars:c,varsResolver:pt}),{styleProps:O,rest:B}=$o(Q),N=fe(u),I={checked:H?.value.includes(B.value)??g,onChange:ie=>{H?.onChange(ie),J?.(ie)},disabled:H?.disabled??_},Y=m.useRef(null),F=o||Y;return m.useEffect(()=>{F&&"current"in F&&F.current&&(F.current.indeterminate=C||!1,C?F.current.setAttribute("data-indeterminate","true"):F.current.removeAttribute("data-indeterminate"))},[C,F]),i.jsx(Fo,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:w,label:p,description:S,error:D,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||g||void 0,variant:h,ref:R,mod:q,...O,...k,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":w},children:[i.jsx(L,{component:"input",id:N,ref:F,mod:{error:!!D},...f("input",{focusable:!0,variant:h}),...B,...I,type:"checkbox"}),i.jsx(j,{indeterminate:C,...f("icon")})]})})});ae.classes={...po,...Lo};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function bt(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function mt(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=mt(s,e.value),d=o&&(c?i.jsx(lo,{className:P.optionsDropdownCheckIcon}):t?i.jsx("div",{className:P.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:Mo({[P.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function ft({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:k,labelId:g,renderOption:w,scrollAreaProps:S,"aria-label":D}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,C=bt(h),j=h.map(R=>i.jsx(fo,{data:R,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:k,renderOption:w},ne(R)?R.group:R.value));return i.jsx(v.Dropdown,{hidden:o||t&&C,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:g,"aria-label":D,children:[l?i.jsx(Vo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...S,children:j}):j,C&&x&&i.jsx(v.Empty,{children:x})]})})}const ht={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},ho=E((e,o)=>{const t=A("Select",ht,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:k,data:g,value:w,defaultValue:S,selectFirstOptionOnChange:D,onOptionSubmit:_,comboboxProps:h,readOnly:C,disabled:j,filter:R,limit:ce,withScrollArea:J,maxDropdownHeight:le,size:q,searchable:z,rightSection:Q,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,name:B,form:N,searchValue:I,defaultSearchValue:Y,onSearchChange:F,allowDeselect:ie,error:$e,rightSectionPointerEvents:xo,id:vo,clearable:Co,clearButtonProps:go,hiddenInputProps:wo,renderOption:yo,onClear:ko,autoComplete:So,scrollAreaProps:Oo,__defaultRightSection:gt,__clearSection:wt,__clearable:yt,chevronColor:Do,autoSelectOnBlur:Ve,attributes:Me,...de}=t,xe=m.useMemo(()=>Ho(g),[g]),ue=m.useRef({}),$=m.useMemo(()=>Xe(xe),[xe]),ze=fe(vo),[y,Be,Fe]=te({value:w,defaultValue:S,finalValue:null,onChange:k}),G=typeof y=="string"?y in $?$[y]:ue.current[y]:void 0,Le=Go(G),[pe,_o,No]=te({value:I,defaultValue:Y,finalValue:G?G.label:"",onChange:F}),V=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),V.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(V.resetSelectedOption,0)}}),W=T=>{_o(T),V.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:He}=zo({props:t,styles:r,classNames:s});m.useEffect(()=>{D&&V.selectFirstOption()},[D,pe]),m.useEffect(()=>{w===null&&W(""),typeof w=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[w,G]),m.useEffect(()=>{!Fe&&!No&&W(typeof y=="string"?y in $?$[y]?.label:ue.current[y]?.label||"":"")},[$,y]),m.useEffect(()=>{y&&y in $&&(ue.current[y]=$[y])},[$,y]);const Io=i.jsx(v.ClearButton,{...go,onClear:()=>{Be(null,null),W(""),ko?.()}}),Ao=Co&&!!y&&!j&&!C;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:V,__staticSelector:"Select",classNames:Ge,styles:He,unstyled:a,readOnly:C,size:q,attributes:Me,keepMounted:Ve,onOptionSubmit:T=>{_?.(T);const Z=ie&&$[T].value===y?null:$[T],ve=Z?Z.value:null;ve!==y&&Be(ve,Z),!Fe&&W(typeof ve=="string"&&Z?.label||""),V.closeDropdown()},...h,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:ze,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:Do}),__clearSection:Io,__clearable:Ao,rightSection:Q,rightSectionPointerEvents:xo||"none",...de,size:q,__staticSelector:"Select",disabled:j,readOnly:C||!z,value:pe,onChange:T=>{W(T.currentTarget.value),V.openDropdown(),D&&V.selectFirstOption()},onFocus:T=>{z&&V.openDropdown(),u?.(T)},onBlur:T=>{Ve&&V.clickSelectedOption(),z&&V.closeDropdown();const Z=typeof y=="string"&&(y in $?$[y]:ue.current[y]);W(Z&&Z.label||""),b?.(T)},onClick:T=>{z?V.openDropdown():V.toggleDropdown(),x?.(T)},classNames:Ge,styles:He,unstyled:a,pointer:!z,error:$e,attributes:Me})}),i.jsx(ft,{data:xe,hidden:C||j,filter:R,search:pe,limit:ce,hiddenWhenEmpty:!O,withScrollArea:J,maxDropdownHeight:le,filterOptions:!!z&&G?.label!==pe,value:y,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,unstyled:a,labelId:de.label?`${ze}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:yo,scrollAreaProps:Oo})]}),i.jsx(v.HiddenInput,{value:y,name:B,form:N,disabled:j,...wo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const xt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],Dt=ye("outline","arrow-down","ArrowDown",xt);const vt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],_t=ye("outline","arrow-up","ArrowUp",vt);const Ct=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Nt=ye("outline","plus","Plus",Ct);export{ae as C,Dt as I,ft as O,ho as S,_t as a,Nt as b,Xe as c,v as d,lo as e,Ho as g,ne as i,so as u};
1
+ import{r as m,f as E,b as A,q as se,s as re,j as i,B as L,v as ee,t as oe,c as Eo,aC as me,b8 as jo,b9 as Ue,ah as ge,bc as Po,_ as fe,$ as te,aJ as Ke,e as Ce,ay as Ro,U as To,a0 as we,b7 as qe,ak as We,al as Ze,aH as $o,ad as Vo,d as Mo,ax as zo,a2 as Je,w as ye}from"./entry.BWhdC3SJ.js";import{I as Bo,a as Fo,b as Lo}from"./chunk.D7ro5_n3.js";import{P as he}from"./chunk.CoD2sLa1.js";function Go(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function K(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Ho(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var P={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const Ko={error:null},Uo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=E((e,o)=>{const t=A("ComboboxChevron",Ko,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:P,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Uo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=P;ke.displayName="@mantine/core/ComboboxChevron";const[qo,M]=Eo("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Se=E((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Se.classes=P;Se.displayName="@mantine/core/ComboboxDropdown";const Wo={refProp:"ref"},eo=E((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Wo,e);if(M(),!jo(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Oe=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Oe.classes=P;Oe.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Zo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Zo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,Po(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=P;_e.displayName="@mantine/core/ComboboxFooter";const Ne=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=P;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=P;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=E((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:k,mod:g,...w}=t,S=M(),D=m.useId(),_=d||D;return i.jsx(L,{...S.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...w,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":k},g],role:"option",onClick:h=>{x?h.preventDefault():(S.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{S.resetSelectionOnOptionHover&&S.store.resetSelectedOption(),b?.(h)}})});Ae.classes=P;Ae.displayName="@mantine/core/ComboboxOption";const Ee=E((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=P;Ee.displayName="@mantine/core/ComboboxOptions";const Jo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=E((e,o)=>{const t=A("ComboboxSearch",Jo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),k=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...k,...u,__staticSelector:"Combobox"})});je.classes=P;je.displayName="@mantine/core/ComboboxSearch";const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function Xo(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function Yo(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function et(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),k=m.useRef(-1),g=m.useRef(-1),w=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),S=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),D=m.useCallback((f="unknown")=>{l?S(f):w(f)},[S,w,l]),_=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-selected]`,f);O?.removeAttribute("data-combobox-selected"),O?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const O=K(b.current),B=be(`#${d.current}`,O),N=B?U("[data-combobox-option]",B):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),C=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-active]`,f);if(O){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===O);return h(N)}return h(0)},[h]),j=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Yo(p.current,O,a))},[h,a]),R=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Xo(p.current,O,a))},[h,a]),ce=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(et(O))},[h]),J=m.useCallback((f="selected",O)=>{g.current=window.setTimeout(()=>{const B=K(b.current),N=U(`#${d.current} [data-combobox-option]`,B),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,O?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),q=m.useCallback(()=>{const f=K(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),z=m.useCallback(f=>{d.current=f},[]),Q=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),H=m.useCallback(()=>{k.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(k.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:S,toggleDropdown:D,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:C,selectNextOption:j,selectPreviousOption:R,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:z,clickSelectedOption:q,searchRef:u,focusSearchInput:Q,targetRef:b,focusTarget:H}}const ot={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},tt=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",ot,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:k,attributes:g,...w}=o,S=so(),D=n||S,_=se({name:x||"Combobox",classes:P,props:o,classNames:t,styles:s,unstyled:r,attributes:g,vars:l,varsResolver:tt}),h=()=>{d?.(),D.closeDropdown()};return i.jsx(qo,{value:{getStyles:_,store:D,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:k},children:i.jsx(he,{opened:D.dropdownOpened,preventPositionChangeWhenVisible:!1,...w,onChange:C=>!C&&h(),withRoles:!1,unstyled:r,children:a})})}const nt=e=>e;v.extend=nt;v.classes=P;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Se;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Oe;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;const ro=m.createContext(null),st=ro.Provider,ao=()=>m.useContext(ro),[rt,at]=Ro();var co={card:"m_26775b0a"};const ct={withBorder:!0},lt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=E((e,o)=>{const t=A("CheckboxCard",ct,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:k,onChange:g,attributes:w,...S}=t,D=se({name:"CheckboxCard",classes:co,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:w,vars:c,varsResolver:lt,rootSelector:"card"}),_=ao(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[C,j]=te({value:h,defaultValue:k,finalValue:!1,onChange:g});return i.jsx(rt,{value:{checked:C},children:i.jsx(To,{ref:o,mod:[{"with-border":u,checked:C},p],...D("card"),...S,role:"checkbox","aria-checked":C,onClick:R=>{x?.(R),_?.onChange(b||""),j(!C)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=co;const Re=E((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=k=>{const g=typeof k=="string"?k:k.currentTarget.value;!c&&b(u.includes(g)?u.filter(w=>w!==g):[...u,g])};return i.jsx(st,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Bo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function lo({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function io({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(lo,{...o})}var uo={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const it={icon:io,variant:"filled"},dt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),Te=E((e,o)=>{const t=A("CheckboxIndicator",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:k,checked:g,mod:w,variant:S,disabled:D,attributes:_,...h}=t,C=se({name:"CheckboxIndicator",classes:uo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:dt,rootSelector:"indicator"}),j=at(),R=typeof g=="boolean"||typeof p=="boolean"?g||p:j?.checked||!1;return i.jsx(L,{ref:o,...C("indicator",{variant:S}),variant:S,mod:[{checked:R,disabled:D},w],...h,children:i.jsx(d,{indeterminate:p,...C("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=uo;var po={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ut={labelPosition:"right",icon:io,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),ae=E((e,o)=>{const t=A("Checkbox",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:k,checked:g,labelPosition:w,description:S,error:D,disabled:_,variant:h,indeterminate:C,icon:j,rootRef:R,iconColor:ce,onChange:J,autoContrast:le,mod:q,attributes:z,...Q}=t,H=ao(),X=b||H?.size,f=se({name:"Checkbox",props:t,classes:po,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:z,vars:c,varsResolver:pt}),{styleProps:O,rest:B}=$o(Q),N=fe(u),I={checked:H?.value.includes(B.value)??g,onChange:ie=>{H?.onChange(ie),J?.(ie)},disabled:H?.disabled??_},Y=m.useRef(null),F=o||Y;return m.useEffect(()=>{F&&"current"in F&&F.current&&(F.current.indeterminate=C||!1,C?F.current.setAttribute("data-indeterminate","true"):F.current.removeAttribute("data-indeterminate"))},[C,F]),i.jsx(Fo,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:w,label:p,description:S,error:D,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||g||void 0,variant:h,ref:R,mod:q,...O,...k,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":w},children:[i.jsx(L,{component:"input",id:N,ref:F,mod:{error:!!D},...f("input",{focusable:!0,variant:h}),...B,...I,type:"checkbox"}),i.jsx(j,{indeterminate:C,...f("icon")})]})})});ae.classes={...po,...Lo};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function bt(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function mt(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=mt(s,e.value),d=o&&(c?i.jsx(lo,{className:P.optionsDropdownCheckIcon}):t?i.jsx("div",{className:P.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:Mo({[P.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function ft({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:k,labelId:g,renderOption:w,scrollAreaProps:S,"aria-label":D}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,C=bt(h),j=h.map(R=>i.jsx(fo,{data:R,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:k,renderOption:w},ne(R)?R.group:R.value));return i.jsx(v.Dropdown,{hidden:o||t&&C,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:g,"aria-label":D,children:[l?i.jsx(Vo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...S,children:j}):j,C&&x&&i.jsx(v.Empty,{children:x})]})})}const ht={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},ho=E((e,o)=>{const t=A("Select",ht,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:k,data:g,value:w,defaultValue:S,selectFirstOptionOnChange:D,onOptionSubmit:_,comboboxProps:h,readOnly:C,disabled:j,filter:R,limit:ce,withScrollArea:J,maxDropdownHeight:le,size:q,searchable:z,rightSection:Q,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,name:B,form:N,searchValue:I,defaultSearchValue:Y,onSearchChange:F,allowDeselect:ie,error:$e,rightSectionPointerEvents:xo,id:vo,clearable:Co,clearButtonProps:go,hiddenInputProps:wo,renderOption:yo,onClear:ko,autoComplete:So,scrollAreaProps:Oo,__defaultRightSection:gt,__clearSection:wt,__clearable:yt,chevronColor:Do,autoSelectOnBlur:Ve,attributes:Me,...de}=t,xe=m.useMemo(()=>Ho(g),[g]),ue=m.useRef({}),$=m.useMemo(()=>Xe(xe),[xe]),ze=fe(vo),[y,Be,Fe]=te({value:w,defaultValue:S,finalValue:null,onChange:k}),G=typeof y=="string"?y in $?$[y]:ue.current[y]:void 0,Le=Go(G),[pe,_o,No]=te({value:I,defaultValue:Y,finalValue:G?G.label:"",onChange:F}),V=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),V.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(V.resetSelectedOption,0)}}),W=T=>{_o(T),V.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:He}=zo({props:t,styles:r,classNames:s});m.useEffect(()=>{D&&V.selectFirstOption()},[D,pe]),m.useEffect(()=>{w===null&&W(""),typeof w=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[w,G]),m.useEffect(()=>{!Fe&&!No&&W(typeof y=="string"?y in $?$[y]?.label:ue.current[y]?.label||"":"")},[$,y]),m.useEffect(()=>{y&&y in $&&(ue.current[y]=$[y])},[$,y]);const Io=i.jsx(v.ClearButton,{...go,onClear:()=>{Be(null,null),W(""),ko?.()}}),Ao=Co&&!!y&&!j&&!C;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:V,__staticSelector:"Select",classNames:Ge,styles:He,unstyled:a,readOnly:C,size:q,attributes:Me,keepMounted:Ve,onOptionSubmit:T=>{_?.(T);const Z=ie&&$[T].value===y?null:$[T],ve=Z?Z.value:null;ve!==y&&Be(ve,Z),!Fe&&W(typeof ve=="string"&&Z?.label||""),V.closeDropdown()},...h,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:ze,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:Do}),__clearSection:Io,__clearable:Ao,rightSection:Q,rightSectionPointerEvents:xo||"none",...de,size:q,__staticSelector:"Select",disabled:j,readOnly:C||!z,value:pe,onChange:T=>{W(T.currentTarget.value),V.openDropdown(),D&&V.selectFirstOption()},onFocus:T=>{z&&V.openDropdown(),u?.(T)},onBlur:T=>{Ve&&V.clickSelectedOption(),z&&V.closeDropdown();const Z=typeof y=="string"&&(y in $?$[y]:ue.current[y]);W(Z&&Z.label||""),b?.(T)},onClick:T=>{z?V.openDropdown():V.toggleDropdown(),x?.(T)},classNames:Ge,styles:He,unstyled:a,pointer:!z,error:$e,attributes:Me})}),i.jsx(ft,{data:xe,hidden:C||j,filter:R,search:pe,limit:ce,hiddenWhenEmpty:!O,withScrollArea:J,maxDropdownHeight:le,filterOptions:!!z&&G?.label!==pe,value:y,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,unstyled:a,labelId:de.label?`${ze}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:yo,scrollAreaProps:Oo})]}),i.jsx(v.HiddenInput,{value:y,name:B,form:N,disabled:j,...wo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const xt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],Dt=ye("outline","arrow-down","ArrowDown",xt);const vt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],_t=ye("outline","arrow-up","ArrowUp",vt);const Ct=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Nt=ye("outline","plus","Plus",Ct);export{ae as C,Dt as I,ft as O,ho as S,_t as a,Nt as b,Xe as c,v as d,lo as e,Ho as g,ne as i,so as u};
@@ -1 +1 @@
1
- import{j as o,e as n}from"./entry.DBfTnVUe.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
1
+ import{j as o,e as n}from"./entry.BWhdC3SJ.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
@@ -1 +1 @@
1
- import{ar as t}from"./entry.DBfTnVUe.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
1
+ import{ar as t}from"./entry.BWhdC3SJ.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
@@ -1 +1 @@
1
- import{f as p,b as y,q as b,j as g,B as x,s as R,a0 as T,t as f}from"./entry.DBfTnVUe.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
1
+ import{f as p,b as y,q as b,j as g,B as x,s as R,a0 as T,t as f}from"./entry.BWhdC3SJ.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
@@ -1 +1 @@
1
- import{r as i}from"./entry.DBfTnVUe.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
1
+ import{r as i}from"./entry.BWhdC3SJ.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
@@ -1 +1 @@
1
- import{w as a}from"./entry.DBfTnVUe.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
1
+ import{w as a}from"./entry.BWhdC3SJ.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
@@ -1 +1 @@
1
- import{j as e,F as o,L as n,T as s}from"./entry.DBfTnVUe.js";import{T as r}from"./chunk.DN-SKgAD.js";const t=()=>e.jsxs(o,{direction:"column",gap:"xl",w:"100%",p:"xl",children:[e.jsxs(o,{align:"center",gap:"sm",children:[e.jsx(r,{size:32,variant:"light",color:"orange",children:e.jsx(n,{size:20})}),e.jsx(s,{size:"xl",fw:600,children:"Queue Monitor"})]}),e.jsx(s,{c:"dimmed",children:"Background job queues - coming soon"})]});export{t as DevQueueMonitor,t as default};
1
+ import{j as e,F as o,L as n,T as s}from"./entry.BWhdC3SJ.js";import{T as r}from"./chunk.BQQ5nN1l.js";const t=()=>e.jsxs(o,{direction:"column",gap:"xl",w:"100%",p:"xl",children:[e.jsxs(o,{align:"center",gap:"sm",children:[e.jsx(r,{size:32,variant:"light",color:"orange",children:e.jsx(n,{size:20})}),e.jsx(s,{size:"xl",fw:600,children:"Queue Monitor"})]}),e.jsx(s,{c:"dimmed",children:"Background job queues - coming soon"})]});export{t as DevQueueMonitor,t as default};
@@ -0,0 +1,2 @@
1
+ �const o=()=>{};export{o as n};
2
+ 
@@ -1 +1 @@
1
- import{w as a}from"./entry.DBfTnVUe.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
1
+ import{w as a}from"./entry.BWhdC3SJ.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
@@ -1 +1 @@
1
- import{p as q,b as v,q as y,j as g,B as f,s as h,v as z,a0 as E,t as u,f as F,g as T}from"./entry.DBfTnVUe.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=h((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(f,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const W={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
1
+ import{p as q,b as v,q as y,j as g,B as f,s as h,v as z,a0 as E,t as u,f as F,g as T}from"./entry.BWhdC3SJ.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=h((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(f,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const W={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
@@ -1 +1 @@
1
- import{w as B,j as e,ae as v,a3 as D,a4 as P,r as j,F as d,T as n,B as a,H as m,Q as C,af as k,z as I,ad as w}from"./entry.DBfTnVUe.js";import{d as $}from"./chunk.ChDpavl2.js";import{B as x,S as g}from"./chunk.DLDchrhP.js";import{T as f}from"./chunk.Bdi_dTor.js";import{T as s}from"./chunk.BjjA59Pf.js";import"./chunk.BlqFPyLh.js";const A=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]],y=B("outline","table","Table",A),K=({column:i,size:r="xs"})=>{const t=[];return i.primaryKey&&t.push({label:"PK",tooltip:"Primary Key"}),i.identity&&t.push({label:"ID",tooltip:"Auto-increment Identity"}),i.ref&&t.push({label:"FK",tooltip:`Foreign Key → ${i.ref.entity}.${i.ref.column}`}),i.createdAt&&t.push({label:"C",tooltip:"Created At (auto-set on insert)"}),i.updatedAt&&t.push({label:"U",tooltip:"Updated At (auto-set on update)"}),i.deletedAt&&t.push({label:"D",tooltip:"Deleted At (soft delete)"}),i.version&&t.push({label:"V",tooltip:"Version (optimistic locking)"}),e.jsxs(e.Fragment,{children:[t.map(o=>e.jsx(v,{label:o.tooltip,children:e.jsx(x,{size:r,variant:"light",color:"blue",children:o.label})},o.label)),i.nullable&&e.jsx(v,{label:"Nullable",children:e.jsx(x,{size:r,variant:"outline",color:"gray",children:"?"})})]})},z={PostgresProvider:"#336791",SqliteProvider:"#003B57",DatabaseProvider:"#495057",default:"#495057"},S=i=>z[i]??z.default,N=({entities:i,selectedEntity:r,onSelectEntity:t,search:o,onSearchChange:T})=>{const u=j.useMemo(()=>{const l={};for(const c of i){const h=c.provider.replace("Provider","");l[h]||(l[h]=[]),l[h].push(c)}return l},[i]),b=Object.keys(u).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${m.colors.border}`},children:e.jsx(k,{placeholder:"Search tables...",leftSection:e.jsx(I,{size:14}),size:"xs",value:o,onChange:l=>T(l.target.value)})}),e.jsx(w,{style:{flex:1},children:b.map(l=>e.jsxs(a,{children:[e.jsx(n,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:m.colors.background,borderBottom:`1px solid ${m.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:l}),u[l].map(c=>{const h=r?.name===c.name,p=S(c.provider);return e.jsxs(d,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>t(c),style:{cursor:"pointer",backgroundColor:h?`${p}15`:void 0,borderLeft:h?`2px solid ${p}`:"2px solid transparent",borderBottom:`1px solid ${m.colors.border}`},children:[e.jsx(y,{size:14,opacity:.5}),e.jsx(n,{size:"sm",style:{flex:1},truncate:!0,children:c.name}),e.jsx(n,{size:"xs",c:"dimmed",children:c.columns.length})]},c.name)})]},l))})]})},O=({entity:i})=>e.jsx(w,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Columns"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Type"}),e.jsx(s.Th,{children:"Attributes"})]})}),e.jsx(s.Tbody,{children:i.columns.map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",fw:r.primaryKey?600:400,children:r.name})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",c:"dimmed",children:r.type})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,wrap:"wrap",children:e.jsx(K,{column:r})})})]},r.name))})]})]}),i.indexes.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Indexes"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Unique"})]})}),e.jsx(s.Tbody,{children:i.indexes.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"light",children:o},o))})}),e.jsx(s.Td,{children:r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"})})]},r.name||t))})]})]}),i.foreignKeys.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Foreign Keys"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.foreignKeys.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.columns.join(", ")})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.foreignEntity,".",r.foreignColumns.join(", ")]})})]},r.name||t))})]})]}),i.columns.some(r=>r.ref)&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Column References"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.columns.filter(r=>r.ref).map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.ref?.entity,".",r.ref?.column]})})]},r.name))})]})]}),i.constraints.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Constraints"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Type"})]})}),e.jsx(s.Tbody,{children:i.constraints.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"outline",children:o},o))})}),e.jsx(s.Td,{children:e.jsxs(d,{gap:4,children:[r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"}),r.hasCheck&&e.jsx(x,{size:"xs",color:"blue",children:"CHECK"})]})})]},r.name||t))})]})]})]})}),R=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Data browser coming soon"})]})}),H=({entity:i})=>{const r=S(i.provider);return e.jsxs(d,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${m.colors.border}`,backgroundColor:`${r}08`},children:e.jsxs(d,{align:"center",gap:"sm",children:[e.jsx(y,{size:18,opacity:.7}),e.jsx(n,{size:"md",fw:600,children:i.name}),e.jsxs(x,{size:"xs",variant:"light",color:"gray",children:[i.columns.length," columns"]})]})}),e.jsxs(f,{defaultValue:"structure",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(f.List,{px:"md",children:[e.jsx(f.Tab,{value:"structure",children:"Structure"}),e.jsx(f.Tab,{value:"data",children:"Data"})]}),e.jsx(f.Panel,{value:"structure",style:{flex:1,overflow:"hidden"},children:e.jsx(O,{entity:i})}),e.jsx(f.Panel,{value:"data",style:{flex:1,overflow:"hidden"},children:e.jsx(R,{})})]})]})},L=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(y,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Select a table to view its structure"})]})}),U=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{children:"No entities found"}),e.jsx(n,{size:"sm",c:"dimmed",children:"Add entities using $entity primitive to see them here"})]})}),G=()=>{const i=D(P),[r,t]=j.useState([]),[o,T]=j.useState(!0),[u,b]=j.useState(null),[l,c]=j.useState("");j.useEffect(()=>{i.fetch("/devtools/api/metadata",{schema:{response:$}}).then(p=>{t(p.data.entities),T(!1)})},[]);const h=j.useMemo(()=>{if(!l)return r;const p=l.toLowerCase();return r.filter(E=>E.name.toLowerCase().includes(p))},[r,l]);return o?e.jsx(d,{align:"center",justify:"center",h:"100%",children:e.jsx(n,{c:"dimmed",children:"Loading..."})}):r.length===0?e.jsx(U,{}):e.jsxs(d,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:240,style:{borderRight:`1px solid ${m.colors.border}`,backgroundColor:m.colors.surface},children:e.jsx(N,{entities:h,selectedEntity:u,onSelectEntity:b,search:l,onSearchChange:c})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:u?e.jsx(H,{entity:u}):e.jsx(L,{})})]})};export{G as DevDbStudio,G as default};
1
+ import{w as B,j as e,ae as v,a3 as D,a4 as P,r as j,F as d,T as n,B as a,H as m,Q as C,af as k,z as I,ad as w}from"./entry.BWhdC3SJ.js";import{d as $}from"./chunk.BKZ6YEV4.js";import{B as x,S as g}from"./chunk.BqEqrty9.js";import{T as f}from"./chunk.CQO49DQF.js";import{T as s}from"./chunk.CEbDj1NR.js";import"./chunk.BlqFPyLh.js";const A=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]],y=B("outline","table","Table",A),K=({column:i,size:r="xs"})=>{const t=[];return i.primaryKey&&t.push({label:"PK",tooltip:"Primary Key"}),i.identity&&t.push({label:"ID",tooltip:"Auto-increment Identity"}),i.ref&&t.push({label:"FK",tooltip:`Foreign Key → ${i.ref.entity}.${i.ref.column}`}),i.createdAt&&t.push({label:"C",tooltip:"Created At (auto-set on insert)"}),i.updatedAt&&t.push({label:"U",tooltip:"Updated At (auto-set on update)"}),i.deletedAt&&t.push({label:"D",tooltip:"Deleted At (soft delete)"}),i.version&&t.push({label:"V",tooltip:"Version (optimistic locking)"}),e.jsxs(e.Fragment,{children:[t.map(o=>e.jsx(v,{label:o.tooltip,children:e.jsx(x,{size:r,variant:"light",color:"blue",children:o.label})},o.label)),i.nullable&&e.jsx(v,{label:"Nullable",children:e.jsx(x,{size:r,variant:"outline",color:"gray",children:"?"})})]})},z={PostgresProvider:"#336791",SqliteProvider:"#003B57",DatabaseProvider:"#495057",default:"#495057"},S=i=>z[i]??z.default,N=({entities:i,selectedEntity:r,onSelectEntity:t,search:o,onSearchChange:T})=>{const u=j.useMemo(()=>{const l={};for(const c of i){const h=c.provider.replace("Provider","");l[h]||(l[h]=[]),l[h].push(c)}return l},[i]),b=Object.keys(u).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${m.colors.border}`},children:e.jsx(k,{placeholder:"Search tables...",leftSection:e.jsx(I,{size:14}),size:"xs",value:o,onChange:l=>T(l.target.value)})}),e.jsx(w,{style:{flex:1},children:b.map(l=>e.jsxs(a,{children:[e.jsx(n,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:m.colors.background,borderBottom:`1px solid ${m.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:l}),u[l].map(c=>{const h=r?.name===c.name,p=S(c.provider);return e.jsxs(d,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>t(c),style:{cursor:"pointer",backgroundColor:h?`${p}15`:void 0,borderLeft:h?`2px solid ${p}`:"2px solid transparent",borderBottom:`1px solid ${m.colors.border}`},children:[e.jsx(y,{size:14,opacity:.5}),e.jsx(n,{size:"sm",style:{flex:1},truncate:!0,children:c.name}),e.jsx(n,{size:"xs",c:"dimmed",children:c.columns.length})]},c.name)})]},l))})]})},O=({entity:i})=>e.jsx(w,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Columns"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Type"}),e.jsx(s.Th,{children:"Attributes"})]})}),e.jsx(s.Tbody,{children:i.columns.map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",fw:r.primaryKey?600:400,children:r.name})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",c:"dimmed",children:r.type})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,wrap:"wrap",children:e.jsx(K,{column:r})})})]},r.name))})]})]}),i.indexes.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Indexes"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Unique"})]})}),e.jsx(s.Tbody,{children:i.indexes.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"light",children:o},o))})}),e.jsx(s.Td,{children:r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"})})]},r.name||t))})]})]}),i.foreignKeys.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Foreign Keys"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.foreignKeys.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.columns.join(", ")})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.foreignEntity,".",r.foreignColumns.join(", ")]})})]},r.name||t))})]})]}),i.columns.some(r=>r.ref)&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Column References"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.columns.filter(r=>r.ref).map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.ref?.entity,".",r.ref?.column]})})]},r.name))})]})]}),i.constraints.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Constraints"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Type"})]})}),e.jsx(s.Tbody,{children:i.constraints.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"outline",children:o},o))})}),e.jsx(s.Td,{children:e.jsxs(d,{gap:4,children:[r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"}),r.hasCheck&&e.jsx(x,{size:"xs",color:"blue",children:"CHECK"})]})})]},r.name||t))})]})]})]})}),R=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Data browser coming soon"})]})}),H=({entity:i})=>{const r=S(i.provider);return e.jsxs(d,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${m.colors.border}`,backgroundColor:`${r}08`},children:e.jsxs(d,{align:"center",gap:"sm",children:[e.jsx(y,{size:18,opacity:.7}),e.jsx(n,{size:"md",fw:600,children:i.name}),e.jsxs(x,{size:"xs",variant:"light",color:"gray",children:[i.columns.length," columns"]})]})}),e.jsxs(f,{defaultValue:"structure",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(f.List,{px:"md",children:[e.jsx(f.Tab,{value:"structure",children:"Structure"}),e.jsx(f.Tab,{value:"data",children:"Data"})]}),e.jsx(f.Panel,{value:"structure",style:{flex:1,overflow:"hidden"},children:e.jsx(O,{entity:i})}),e.jsx(f.Panel,{value:"data",style:{flex:1,overflow:"hidden"},children:e.jsx(R,{})})]})]})},L=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(y,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Select a table to view its structure"})]})}),U=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{children:"No entities found"}),e.jsx(n,{size:"sm",c:"dimmed",children:"Add entities using $entity primitive to see them here"})]})}),G=()=>{const i=D(P),[r,t]=j.useState([]),[o,T]=j.useState(!0),[u,b]=j.useState(null),[l,c]=j.useState("");j.useEffect(()=>{i.fetch("/devtools/api/metadata",{schema:{response:$}}).then(p=>{t(p.data.entities),T(!1)})},[]);const h=j.useMemo(()=>{if(!l)return r;const p=l.toLowerCase();return r.filter(E=>E.name.toLowerCase().includes(p))},[r,l]);return o?e.jsx(d,{align:"center",justify:"center",h:"100%",children:e.jsx(n,{c:"dimmed",children:"Loading..."})}):r.length===0?e.jsx(U,{}):e.jsxs(d,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:240,style:{borderRight:`1px solid ${m.colors.border}`,backgroundColor:m.colors.surface},children:e.jsx(N,{entities:h,selectedEntity:u,onSelectEntity:b,search:l,onSearchChange:c})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:u?e.jsx(H,{entity:u}):e.jsx(L,{})})]})};export{G as DevDbStudio,G as default};
@@ -1 +1 @@
1
- import{av as Me,r as x,aM as De,x as je,a3 as ke,b5 as Ie,b6 as Ae,A as z,aK as te,p as H,b as M,j as r,T as Pe,d as Te,c as Ne,f as B,B as se,ah as K,ay as Ee,i as q,aj as re,b7 as ie,U as ae,b8 as Le,_ as Fe,b9 as Re,q as _e,$ as Oe,ax as Be,a1 as Ke,a$ as Ve,H as $e,F as ne,ae as ze,a6 as L,G as He,ab as qe}from"./entry.DBfTnVUe.js";import{T as ce}from"./chunk.DN-SKgAD.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.mJxmm31y.js";import{A as Ge}from"./chunk.I1TSx4X4.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=x.useState(!1),[e,c]=x.useState(!1),[l,u]=x.useState(void 0),[m,y]=x.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),v=s.includes("dirty"),b=s.includes("loading");return x.useEffect(()=>{const C=[];return(d||w||v)&&C.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(v&&i(!0),d&&u(void 0)),w&&y(h.currentValues))})),w&&C.push(t.events.on("form:reset",p=>{p.id===h.id&&y(p.values)})),b&&C.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||v)&&C.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&y(p.values),v&&i(!1))})),d&&C.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of C)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie)),We=n=>{Ae();const o=z(),[t,s]=x.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.go(i)}finally{s(!1)}}}}}};function S(n,o){return t=>{n?.(t),o?.(t)}}function Je(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:Je(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Qe(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Xe(n=!1,o={}){const[t,s]=x.useState(n),a=x.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=x.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=x.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=x.useRef(-1),i=x.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return x.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Ye={underline:"hover"},U=H((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Ye,n);return r.jsx(Pe,{component:"a",ref:o,className:Te({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ze,k]=Ne("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuDropdown",null,n),h=x.useRef(null),f=k(),w=S(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=S(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=S(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[et,V]=Ee(),J=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:y,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=S(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,P=c?ie({color:c,theme:b}):null,_=S(D.onKeyDown,T=>{T.key==="ArrowLeft"&&v&&(v.close(),v.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:_}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),y&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:y}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuSubDropdown",null,n),h=x.useRef(null),f=k(),w=V(),d=S(c,w?.open),v=S(l,w?.close);return r.jsx(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:y,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,P=S(D.onKeyDown,E=>{E.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),E.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),_=S(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=S(D.onMouseEnter,v?.open),N=S(D.onMouseLeave,v?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:_,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Le(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const tt={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function R(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",tt,n),i=Fe(),[e,{open:c,close:l}]=Xe(!1),u=V(),{openDropdown:m,closeDropdown:y}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(et,{value:{opened:e,close:y,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}R.extend=n=>n;R.displayName="@mantine/core/MenuSub";R.Target=fe;R.Dropdown=X;R.Item=Y;const nt={refProp:"ref"},pe=x.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",nt,n),i=Re(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=S(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=S(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=S(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:x.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const ot={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function g(n){const o=M("Menu",ot,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:y,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:v,unstyled:b,variant:C,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,..._}=o,T=_e({name:"Menu",classes:I,props:o,classNames:d,styles:v,unstyled:b,attributes:P}),[N,E]=Oe({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=x.useState(!1),O=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?O():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:O,closeDelay:w,openDelay:f}),we=Ce=>Qe("[data-menu-item]","[data-menu-dropdown]",Ce),{resolvedClassNames:be,resolvedStyles:Se}=Be({classNames:d,styles:v,props:o});return r.jsx(Ze,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?O:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:O,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,..._,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:y,__staticSelector:"Menu",classNames:be,styles:Se,unstyled:b,variant:C,keepMounted:A,children:t})})}g.extend=n=>n;g.withProps=Ke(g);g.classes=I;g.displayName="@mantine/core/Menu";g.Item=J;g.Label=Q;g.Dropdown=W;g.Target=pe;g.Divider=G;g.Sub=R;const ve=n=>{const{item:o,index:t}=n,s=z(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(g.Divider,{},t);if(o.type==="label")return r.jsx(g.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(g,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(g.Target,{children:r.jsx(g.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(g.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(g.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=q(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=x.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:y,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:y,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:y})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(g,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(g.Target,{...a.targetProps,children:l}),r.jsx(g.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,...i}=n,e=z(),{isPending:c,isActive:l}=We(o?{href:n.href,...o}:{href:n.href}),u=e.anchor(n.href,a),m=i.className||"";return l&&o!==!1&&t&&(i.className=`${m} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...u,...n.anchorProps,children:n.children}):r.jsx(L,{component:"a",loading:c,...i,...u,variant:l&&o!==!1?s??"filled":i.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,Xe as b,S as c,ue as d,Je as g,pt as u};
1
+ import{av as Me,r as x,aM as De,x as je,a3 as ke,b5 as Ie,b6 as Ae,A as z,aK as te,p as H,b as M,j as r,T as Pe,d as Te,c as Ne,f as B,B as se,ah as K,ay as Ee,i as q,aj as re,b7 as ie,U as ae,b8 as Le,_ as Fe,b9 as Re,q as _e,$ as Oe,ax as Be,a1 as Ke,a$ as Ve,H as $e,F as ne,ae as ze,a6 as L,G as He,ab as qe}from"./entry.BWhdC3SJ.js";import{T as ce}from"./chunk.BQQ5nN1l.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.CoD2sLa1.js";import{A as Ge}from"./chunk.BCBZ1wAk.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=x.useState(!1),[e,c]=x.useState(!1),[l,u]=x.useState(void 0),[m,y]=x.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),v=s.includes("dirty"),b=s.includes("loading");return x.useEffect(()=>{const C=[];return(d||w||v)&&C.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(v&&i(!0),d&&u(void 0)),w&&y(h.currentValues))})),w&&C.push(t.events.on("form:reset",p=>{p.id===h.id&&y(p.values)})),b&&C.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||v)&&C.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&y(p.values),v&&i(!1))})),d&&C.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of C)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie)),We=n=>{Ae();const o=z(),[t,s]=x.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.go(i)}finally{s(!1)}}}}}};function S(n,o){return t=>{n?.(t),o?.(t)}}function Je(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:Je(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Qe(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Xe(n=!1,o={}){const[t,s]=x.useState(n),a=x.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=x.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=x.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=x.useRef(-1),i=x.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return x.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Ye={underline:"hover"},U=H((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Ye,n);return r.jsx(Pe,{component:"a",ref:o,className:Te({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ze,k]=Ne("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuDropdown",null,n),h=x.useRef(null),f=k(),w=S(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=S(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=S(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[et,V]=Ee(),J=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:y,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=S(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,P=c?ie({color:c,theme:b}):null,_=S(D.onKeyDown,T=>{T.key==="ArrowLeft"&&v&&(v.close(),v.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:_}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),y&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:y}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuSubDropdown",null,n),h=x.useRef(null),f=k(),w=V(),d=S(c,w?.open),v=S(l,w?.close);return r.jsx(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:y,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,P=S(D.onKeyDown,E=>{E.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),E.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),_=S(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=S(D.onMouseEnter,v?.open),N=S(D.onMouseLeave,v?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:_,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Le(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const tt={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function R(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",tt,n),i=Fe(),[e,{open:c,close:l}]=Xe(!1),u=V(),{openDropdown:m,closeDropdown:y}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(et,{value:{opened:e,close:y,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}R.extend=n=>n;R.displayName="@mantine/core/MenuSub";R.Target=fe;R.Dropdown=X;R.Item=Y;const nt={refProp:"ref"},pe=x.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",nt,n),i=Re(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=S(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=S(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=S(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:x.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const ot={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function g(n){const o=M("Menu",ot,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:y,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:v,unstyled:b,variant:C,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,..._}=o,T=_e({name:"Menu",classes:I,props:o,classNames:d,styles:v,unstyled:b,attributes:P}),[N,E]=Oe({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=x.useState(!1),O=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?O():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:O,closeDelay:w,openDelay:f}),we=Ce=>Qe("[data-menu-item]","[data-menu-dropdown]",Ce),{resolvedClassNames:be,resolvedStyles:Se}=Be({classNames:d,styles:v,props:o});return r.jsx(Ze,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?O:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:O,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,..._,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:y,__staticSelector:"Menu",classNames:be,styles:Se,unstyled:b,variant:C,keepMounted:A,children:t})})}g.extend=n=>n;g.withProps=Ke(g);g.classes=I;g.displayName="@mantine/core/Menu";g.Item=J;g.Label=Q;g.Dropdown=W;g.Target=pe;g.Divider=G;g.Sub=R;const ve=n=>{const{item:o,index:t}=n,s=z(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(g.Divider,{},t);if(o.type==="label")return r.jsx(g.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(g,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(g.Target,{children:r.jsx(g.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(g.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(g.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=q(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=x.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:y,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:y,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:y})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(g,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(g.Target,{...a.targetProps,children:l}),r.jsx(g.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,...i}=n,e=z(),{isPending:c,isActive:l}=We(o?{href:n.href,...o}:{href:n.href}),u=e.anchor(n.href,a),m=i.className||"";return l&&o!==!1&&t&&(i.className=`${m} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...u,...n.anchorProps,children:n.children}):r.jsx(L,{component:"a",loading:c,...i,...u,variant:l&&o!==!1?s??"filled":i.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,Xe as b,S as c,ue as d,Je as g,pt as u};
@@ -1 +1 @@
1
- import{c as M,f as w,b as B,j as a,B as N,q as P,s as $,ad as Q,e as C,v as x,g as O}from"./entry.DBfTnVUe.js";const[X,Y]=M("Table component was not found in the tree");var f={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function b(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=w((l,i)=>{const n=B(t,{},l),{classNames:c,className:d,style:m,styles:u,...h}=n,p=Y();return a.jsx(N,{component:e,ref:i,...Z(p,r),...p.getStyles(e,{className:d,classNames:c,style:m,styles:u,props:n}),...h})});return o.displayName=`@mantine/core/${t}`,o.classes=f,o}const j=b("th",{columnBorder:!0}),A=b("td",{columnBorder:!0}),v=b("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D=b("thead",{stickyHeader:!0}),z=b("tbody"),E=b("tfoot"),I=b("caption",{captionSide:!0});function R({data:e}){return a.jsxs(a.Fragment,{children:[e.caption&&a.jsx(I,{children:e.caption}),e.head&&a.jsx(D,{children:a.jsx(v,{children:e.head.map((r,t)=>a.jsx(j,{children:r},t))})}),e.body&&a.jsx(z,{children:e.body.map((r,t)=>a.jsx(v,{children:r.map((o,l)=>a.jsx(A,{children:o},l))},t))}),e.foot&&a.jsx(E,{children:a.jsx(v,{children:e.foot.map((r,t)=>a.jsx(j,{children:r},t))})})]})}R.displayName="@mantine/core/TableDataRenderer";const ee={type:"scrollarea"},te=$((e,{minWidth:r,maxHeight:t,type:o})=>({scrollContainer:{"--table-min-width":C(r),"--table-max-height":C(t),"--table-overflow":o==="native"?"auto":void 0}})),H=w((e,r)=>{const t=B("TableScrollContainer",ee,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,children:m,minWidth:u,maxHeight:h,type:p,scrollAreaProps:g,attributes:T,...S}=t,y=P({name:"TableScrollContainer",classes:f,props:t,className:l,style:i,classNames:o,styles:n,unstyled:c,attributes:T,vars:d,varsResolver:te,rootSelector:"scrollContainer"});return a.jsx(N,{component:p==="scrollarea"?Q:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...g}:{offsetScrollbars:"x",...g}:{},ref:r,...y("scrollContainer"),...S,children:a.jsx("div",{...y("scrollContainerInner"),children:m})})});H.classes=f;H.displayName="@mantine/core/TableScrollContainer";const re={withRowBorders:!0,verticalSpacing:7},ae=$((e,{layout:r,captionSide:t,horizontalSpacing:o,verticalSpacing:l,borderColor:i,stripedColor:n,highlightOnHoverColor:c,striped:d,highlightOnHover:m,stickyHeaderOffset:u,stickyHeader:h})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":O(o),"--table-vertical-spacing":O(l),"--table-border-color":i?x(i,e):void 0,"--table-striped-color":d&&n?x(n,e):void 0,"--table-highlight-on-hover-color":m&&c?x(c,e):void 0,"--table-sticky-header-offset":h?C(u):void 0}})),s=w((e,r)=>{const t=B("Table",re,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,horizontalSpacing:m,verticalSpacing:u,captionSide:h,stripedColor:p,highlightOnHoverColor:g,striped:T,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,withTableBorder:F,borderColor:oe,layout:se,variant:U,data:_,children:V,stickyHeader:W,stickyHeaderOffset:le,mod:G,tabularNums:J,attributes:K,...L}=t,k=P({name:"Table",props:t,className:l,style:i,classes:f,classNames:o,styles:n,unstyled:c,attributes:K,rootSelector:"table",vars:d,varsResolver:ae});return a.jsx(X,{value:{getStyles:k,stickyHeader:W,striped:T===!0?"odd":T||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,captionSide:h||"bottom"},children:a.jsx(N,{component:"table",variant:U,ref:r,mod:[{"data-with-table-border":F,"data-tabular-nums":J},G],...k("table"),...L,children:V||!!_&&a.jsx(R,{data:_})})})});s.classes=f;s.displayName="@mantine/core/Table";s.Td=A;s.Th=j;s.Tr=v;s.Thead=D;s.Tbody=z;s.Tfoot=E;s.Caption=I;s.ScrollContainer=H;s.DataRenderer=R;export{s as T};
1
+ import{c as M,f as w,b as B,j as a,B as N,q as P,s as $,ad as Q,e as C,v as x,g as O}from"./entry.BWhdC3SJ.js";const[X,Y]=M("Table component was not found in the tree");var f={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function b(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=w((l,i)=>{const n=B(t,{},l),{classNames:c,className:d,style:m,styles:u,...h}=n,p=Y();return a.jsx(N,{component:e,ref:i,...Z(p,r),...p.getStyles(e,{className:d,classNames:c,style:m,styles:u,props:n}),...h})});return o.displayName=`@mantine/core/${t}`,o.classes=f,o}const j=b("th",{columnBorder:!0}),A=b("td",{columnBorder:!0}),v=b("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D=b("thead",{stickyHeader:!0}),z=b("tbody"),E=b("tfoot"),I=b("caption",{captionSide:!0});function R({data:e}){return a.jsxs(a.Fragment,{children:[e.caption&&a.jsx(I,{children:e.caption}),e.head&&a.jsx(D,{children:a.jsx(v,{children:e.head.map((r,t)=>a.jsx(j,{children:r},t))})}),e.body&&a.jsx(z,{children:e.body.map((r,t)=>a.jsx(v,{children:r.map((o,l)=>a.jsx(A,{children:o},l))},t))}),e.foot&&a.jsx(E,{children:a.jsx(v,{children:e.foot.map((r,t)=>a.jsx(j,{children:r},t))})})]})}R.displayName="@mantine/core/TableDataRenderer";const ee={type:"scrollarea"},te=$((e,{minWidth:r,maxHeight:t,type:o})=>({scrollContainer:{"--table-min-width":C(r),"--table-max-height":C(t),"--table-overflow":o==="native"?"auto":void 0}})),H=w((e,r)=>{const t=B("TableScrollContainer",ee,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,children:m,minWidth:u,maxHeight:h,type:p,scrollAreaProps:g,attributes:T,...S}=t,y=P({name:"TableScrollContainer",classes:f,props:t,className:l,style:i,classNames:o,styles:n,unstyled:c,attributes:T,vars:d,varsResolver:te,rootSelector:"scrollContainer"});return a.jsx(N,{component:p==="scrollarea"?Q:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...g}:{offsetScrollbars:"x",...g}:{},ref:r,...y("scrollContainer"),...S,children:a.jsx("div",{...y("scrollContainerInner"),children:m})})});H.classes=f;H.displayName="@mantine/core/TableScrollContainer";const re={withRowBorders:!0,verticalSpacing:7},ae=$((e,{layout:r,captionSide:t,horizontalSpacing:o,verticalSpacing:l,borderColor:i,stripedColor:n,highlightOnHoverColor:c,striped:d,highlightOnHover:m,stickyHeaderOffset:u,stickyHeader:h})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":O(o),"--table-vertical-spacing":O(l),"--table-border-color":i?x(i,e):void 0,"--table-striped-color":d&&n?x(n,e):void 0,"--table-highlight-on-hover-color":m&&c?x(c,e):void 0,"--table-sticky-header-offset":h?C(u):void 0}})),s=w((e,r)=>{const t=B("Table",re,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,horizontalSpacing:m,verticalSpacing:u,captionSide:h,stripedColor:p,highlightOnHoverColor:g,striped:T,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,withTableBorder:F,borderColor:oe,layout:se,variant:U,data:_,children:V,stickyHeader:W,stickyHeaderOffset:le,mod:G,tabularNums:J,attributes:K,...L}=t,k=P({name:"Table",props:t,className:l,style:i,classes:f,classNames:o,styles:n,unstyled:c,attributes:K,rootSelector:"table",vars:d,varsResolver:ae});return a.jsx(X,{value:{getStyles:k,stickyHeader:W,striped:T===!0?"odd":T||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,captionSide:h||"bottom"},children:a.jsx(N,{component:"table",variant:U,ref:r,mod:[{"data-with-table-border":F,"data-tabular-nums":J},G],...k("table"),...L,children:V||!!_&&a.jsx(R,{data:_})})})});s.classes=f;s.displayName="@mantine/core/Table";s.Td=A;s.Th=j;s.Tr=v;s.Thead=D;s.Tbody=z;s.Tfoot=E;s.Caption=I;s.ScrollContainer=H;s.DataRenderer=R;export{s as T};
@@ -1 +1 @@
1
- import{w as a}from"./entry.DBfTnVUe.js";const e=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],l=a("outline","player-play","PlayerPlay",e);export{l as I};
1
+ import{w as a}from"./entry.BWhdC3SJ.js";const e=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],l=a("outline","player-play","PlayerPlay",e);export{l as I};
@@ -1 +1 @@
1
- import{c as q,f as w,b as C,j as u,B as R,i as F,aj as H,U as G,v as z,_ as J,$ as Q,q as X,s as Y,ak as Z,a0 as tt,al as et}from"./entry.DBfTnVUe.js";import{c as at}from"./chunk.BlqFPyLh.js";function E(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=w((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:v,mod:d,...b}=a,e=K();return u.jsx(R,{...b,...e.getStyles("list",{className:c,style:v,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=w((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:v,keepMounted:d,...b}=a,e=K(),p=e.value===r,y=e.keepMounted||d||p?l:null;return u.jsx(R,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,p?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},v],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=w((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:v,disabled:d,color:b,style:e,classNames:p,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,k=L=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(L)},h={classNames:p,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:k,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:v}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const U="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":tt(o),"--tabs-color":z(a,s),"--tabs-text-color":et(l,s)?Z({color:a,theme:s,autoContrast:l}):void 0}})),f=w((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:v,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:k,autoContrast:h,mod:L,attributes:A,...B}=a,j=J(v),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),$=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:k,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:j,loop:m,activateTabWithKeyboard:d,getTabId:E(`${j}-tab`,U),getPanelId:E(`${j}-panel`,U),onChange:O,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:$},children:u.jsx(R,{ref:o,id:j,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},L],...$("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,E as g};
1
+ import{c as q,f as w,b as C,j as u,B as R,i as F,aj as H,U as G,v as z,_ as J,$ as Q,q as X,s as Y,ak as Z,a0 as tt,al as et}from"./entry.BWhdC3SJ.js";import{c as at}from"./chunk.BlqFPyLh.js";function E(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=w((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:v,mod:d,...b}=a,e=K();return u.jsx(R,{...b,...e.getStyles("list",{className:c,style:v,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=w((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:v,keepMounted:d,...b}=a,e=K(),p=e.value===r,y=e.keepMounted||d||p?l:null;return u.jsx(R,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,p?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},v],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=w((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:v,disabled:d,color:b,style:e,classNames:p,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,k=L=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(L)},h={classNames:p,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:k,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:v}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const U="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":tt(o),"--tabs-color":z(a,s),"--tabs-text-color":et(l,s)?Z({color:a,theme:s,autoContrast:l}):void 0}})),f=w((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:v,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:k,autoContrast:h,mod:L,attributes:A,...B}=a,j=J(v),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),$=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:k,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:j,loop:m,activateTabWithKeyboard:d,getTabId:E(`${j}-tab`,U),getPanelId:E(`${j}-panel`,U),onChange:O,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:$},children:u.jsx(R,{ref:o,id:j,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},L],...$("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,E as g};