@hot-updater/console 1.0.0-rc.3 → 1.0.0-rc.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 (97) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/InsightsPageHeader-C-Xc2MB9.js +1 -0
  3. package/.output/public/assets/api-keys-C1sgC6ko.js +1 -0
  4. package/.output/public/assets/badge-BuMDU0Rf.js +1 -0
  5. package/.output/public/assets/card-BEvx_QKh.js +1 -0
  6. package/.output/public/assets/composite-CHTH1Xhh.js +1 -0
  7. package/.output/public/assets/dialog-dyZ1SphZ.js +1 -0
  8. package/.output/public/assets/field-79SVH26s.js +1 -0
  9. package/.output/public/assets/{index-C6Nb14xG.js → index-BNkxg4jz.js} +3 -3
  10. package/.output/public/assets/input-group-BbHfaBzQ.js +1 -0
  11. package/.output/public/assets/insights-D_7uSKfc.js +1 -0
  12. package/.output/public/assets/installations-BzoHWuXw.js +1 -0
  13. package/.output/public/assets/{installations-DDTw9DSK.js → installations-DvjbUqd1.js} +2 -2
  14. package/.output/public/assets/routes-BFE-oRIT.js +1 -0
  15. package/.output/public/assets/{routes-B3JviaDV.js → routes-DaPMY31P.js} +2 -2
  16. package/.output/public/assets/signing-BTRhaF5D.js +1 -0
  17. package/.output/public/assets/styles-C7U0oVke.css +2 -0
  18. package/.output/public/assets/table-BBEzJ7Xl.js +1 -0
  19. package/.output/public/assets/useCompositeListItem-BkPDaqyj.js +42 -0
  20. package/.output/server/{__23tanstack-start-server-fn-resolver-EMel9KYs.mjs → __23tanstack-start-server-fn-resolver-Dr2ixDgQ.mjs} +37 -33
  21. package/.output/server/_libs/@base-ui/react+[...].mjs +2471 -2471
  22. package/.output/server/_libs/lucide-react.mjs +8 -1
  23. package/.output/server/_libs/recharts+[...].mjs +900 -482
  24. package/.output/server/_ssr/InsightsPageHeader-C5Has8Ry.mjs +60 -0
  25. package/.output/server/_ssr/{api-keys-BBl84_lN.mjs → api-keys-DJml_XoK.mjs} +9 -7
  26. package/.output/server/_ssr/{api-keys-api-KSH04dLB.mjs → api-keys-api-CrCZyvnl.mjs} +2 -2
  27. package/.output/server/_ssr/{api-keys-rpc-DBmgnW5o.mjs → api-keys-rpc-CFaNf-q0.mjs} +3 -3
  28. package/.output/server/_ssr/{api-rpc-DX5B6b-L.mjs → api-rpc-B61KL3Eo.mjs} +25 -25
  29. package/.output/server/_ssr/{auth-rpc-gaibR719.mjs → auth-rpc-D_hv52-J.mjs} +2 -2
  30. package/.output/server/_ssr/badge-BgsCP9Dp.mjs +28 -0
  31. package/.output/server/_ssr/{bundle-signing-rpc-C01EKpb-.mjs → bundle-signing-rpc-BBipZnFs.mjs} +2 -2
  32. package/.output/server/_ssr/bundleActivity-D3_fIda2.mjs +27 -0
  33. package/.output/server/_ssr/{card-gGh8F6kQ.mjs → card-DrbxCPtG.mjs} +3 -25
  34. package/.output/server/_ssr/chart-qxa-_30a.mjs +162 -0
  35. package/.output/server/_ssr/{config.server-NIXXHk-e.mjs → config.server-CBr6PDj5.mjs} +4 -4
  36. package/.output/server/_ssr/{createSsrRpc-4rr4IJh3.mjs → createSsrRpc-NHF2PxuK.mjs} +3 -3
  37. package/.output/server/_ssr/{deleteBundle-C71v1GBr.mjs → deleteBundle-BAq3JuGr.mjs} +1 -1
  38. package/.output/server/_ssr/{dialog-DNtKYR5K.mjs → dialog-DUaIgpgd.mjs} +1 -1
  39. package/.output/server/_ssr/{downloadBundle-A9zYC2go.mjs → downloadBundle-B3ert-pY.mjs} +1 -1
  40. package/.output/server/_ssr/{table-QQ9cnWf2.mjs → field-CqNUlqUq.mjs} +3 -49
  41. package/.output/server/_ssr/{getBundleChildren-CMGSGBWv.mjs → getBundleChildren-COMt16m_.mjs} +1 -1
  42. package/.output/server/_ssr/{input-group-Oj4kUnE4.mjs → input-group-Bb8ueylQ.mjs} +51 -2
  43. package/.output/server/_ssr/insights-B-DUbksX.mjs +502 -0
  44. package/.output/server/_ssr/insights-recovery-rpc-P71FH66n.mjs +37 -0
  45. package/.output/server/_ssr/{insights-rpc-DBf0ouen.mjs → insights-rpc-DrIQCjpD.mjs} +2 -2
  46. package/.output/server/_ssr/insightsRecovery-CqcosG7B.mjs +149 -0
  47. package/.output/server/_ssr/{installations-DBmYuVBi.mjs → installations-BQrppti7.mjs} +2 -2
  48. package/.output/server/_ssr/{installations-DQyJN-pZ.mjs → installations-YumqpNpa.mjs} +425 -10
  49. package/.output/server/_ssr/{router-C8J4nYEG.mjs → router-iP95Vqi2.mjs} +12 -12
  50. package/.output/server/_ssr/{routes-C2RIYhyl.mjs → routes-BDabsmc7.mjs} +2 -2
  51. package/.output/server/_ssr/{routes-NlTRKPML.mjs → routes-ivsV2TDu.mjs} +299 -23
  52. package/.output/server/_ssr/{runtime.server-DLZpzphL.mjs → runtime.server-jmZOKIQM.mjs} +1 -1
  53. package/.output/server/_ssr/{server-hgrXpJQY.mjs → server-p7yrVBfD.mjs} +3 -3
  54. package/.output/server/_ssr/{signing-bfOvUMSJ.mjs → signing-CxCbnFCt.mjs} +5 -4
  55. package/.output/server/_ssr/ssr.mjs +1 -1
  56. package/.output/server/_ssr/table-D1mL8fJu.mjs +53 -0
  57. package/.output/server/{_tanstack-start-manifest_v-BAb_a_eC.mjs → _tanstack-start-manifest_v-Cwpu0C9Q.mjs} +38 -35
  58. package/.output/server/index.mjs +130 -130
  59. package/package.json +4 -4
  60. package/src/components/features/bundles/BundleActivityChart.tsx +95 -0
  61. package/src/components/features/bundles/BundleInsightsSummary.tsx +121 -0
  62. package/src/components/features/insights/InsightsControls.tsx +1 -15
  63. package/src/components/features/insights/InsightsOverview.tsx +368 -179
  64. package/src/components/features/releases/ReleaseEditorSheet.tsx +10 -13
  65. package/src/lib/bundle-activity.ts +21 -0
  66. package/src/lib/insights-recovery-rpc.ts +24 -0
  67. package/src/lib/insights-recovery.ts +5 -1
  68. package/src/lib/server/bundleActivity.ts +37 -0
  69. package/src/lib/server/insightsHistory.ts +52 -0
  70. package/src/lib/server/insightsRecovery.ts +125 -96
  71. package/src/routes/index.tsx +33 -3
  72. package/src/routes/insights.tsx +1 -44
  73. package/.output/public/assets/InsightsErrorAlert-1cg6LDJG.js +0 -1
  74. package/.output/public/assets/InsightsPageHeader-oNIg_lcd.js +0 -1
  75. package/.output/public/assets/InsightsRolloutCard-Zsv9gBjU.js +0 -42
  76. package/.output/public/assets/api-keys-ChJjsbP2.js +0 -1
  77. package/.output/public/assets/card-iD7iiy4T.js +0 -1
  78. package/.output/public/assets/dialog-DX6o8qCL.js +0 -1
  79. package/.output/public/assets/input-group-Pa3SAbEI.js +0 -1
  80. package/.output/public/assets/insights-C1uKy3p2.js +0 -1
  81. package/.output/public/assets/installations-Bj5AzZ3T.js +0 -1
  82. package/.output/public/assets/routes-9E2okfpG.js +0 -1
  83. package/.output/public/assets/signing-BKy9fIdB.js +0 -1
  84. package/.output/public/assets/styles-C5-su40i.css +0 -2
  85. package/.output/public/assets/table-bpgpQkPz.js +0 -1
  86. package/.output/public/assets/useOpenInteractionType-4dPacbwb.js +0 -1
  87. package/.output/public/assets/x-Cr_sPM8E.js +0 -1
  88. package/.output/server/_ssr/InsightsErrorAlert-DzDVdfgW.mjs +0 -169
  89. package/.output/server/_ssr/InsightsPageHeader-CZ2AaQGk.mjs +0 -372
  90. package/.output/server/_ssr/InsightsRolloutCard-DHB2iM4t.mjs +0 -693
  91. package/.output/server/_ssr/insights-oK2n5WBp.mjs +0 -406
  92. package/.output/server/_ssr/insights-recovery-rpc-CgeCAs2K.mjs +0 -16
  93. package/.output/server/_ssr/insightsRecovery-DFkXGFjd.mjs +0 -108
  94. package/src/components/features/insights/InsightsBundleReports.tsx +0 -51
  95. package/src/components/features/insights/InsightsRolloutCard.tsx +0 -505
  96. /package/.output/public/assets/{dist-BPrb_vuw.js → dist-Bh1gaDfB.js} +0 -0
  97. /package/.output/public/assets/{preload-helper-B_l5jfgx.js → preload-helper-uTix4PVD.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-09-07T09:37:45.337Z",
2
+ "date": "2026-09-07T15:33:16.051Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -0,0 +1 @@
1
+ import{Gn as e,Kn as t,Qn as n,bn as r,m as i}from"./createServerFn-DHc2erub.js";import{t as a}from"./link-BG06whwB.js";import{t as o}from"./chart-no-axes-combined-C0G0fQ3J.js";import{l as s,s as c,u as l}from"./card-BEvx_QKh.js";var u=t(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),d=n();function f({fallbackTitle:t}){return(0,d.jsxs)(c,{variant:`destructive`,children:[(0,d.jsx)(e,{"aria-hidden":`true`}),(0,d.jsx)(l,{children:t}),(0,d.jsx)(s,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}function p({view:e}){return(0,d.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,d.jsx)(i,{className:`-ml-1 size-11 lg:size-7`}),(0,d.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,d.jsx)(o,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,d.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,d.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-1`,children:[(0,d.jsx)(a,{"aria-current":e===`overview`?`page`:void 0,className:r({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`overview`?`secondary`:`ghost`}),to:`/insights`,children:`Overview`}),(0,d.jsx)(a,{"aria-current":e===`events`?`page`:void 0,className:r({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`events`?`secondary`:`ghost`}),to:`/installations`,children:`Events`})]})]})}export{f as n,u as r,p as t};
@@ -0,0 +1 @@
1
+ import{Gn as e,Kn as t,Or as n,Qn as r,gn as i,jr as a,m as o,vn as s,yn as c}from"./createServerFn-DHc2erub.js";import{t as l}from"./loader-circle-Bbp8LGVC.js";import{a as u,c as ee,i as d,n as f,o as p,r as m,t as te}from"./table-BBEzJ7Xl.js";import{a as h,i as g,o as _,r as v}from"./api-keys-api-LchP65vQ.js";import{N as y,_ as b,a as x,d as ne,f as S,g as C,h as w,i as T,l as E,m as D,n as O,o as k,p as A,r as j,t as M,u as N,v as P}from"./dialog-dyZ1SphZ.js";import{t as F}from"./refresh-cw-DZgiAOMk.js";import{n as I}from"./dist-Bh1gaDfB.js";import{a as re,c as L,l as R,n as z,o as B,s as V,t as H,u as U}from"./card-BEvx_QKh.js";import{t as W}from"./badge-BuMDU0Rf.js";import{a as G,i as K,n as q,r as J,t as Y}from"./field-79SVH26s.js";var X=t(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),Z=t(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Q=a(n(),1),$=r(),ie=e=>new Date(e).toISOString().slice(0,10);function ae(){let[e,t]=(0,Q.useState)(!1),[n,r]=(0,Q.useState)(``),[i,a]=(0,Q.useState)(null),o=g(),u=n.trim(),d=u.length>64?`Name must be 64 characters or fewer.`:null,f=()=>{r(``),a(null),o.reset()},p=e=>{t(e),e||f()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(c,{onClick:()=>t(!0),children:[(0,$.jsx)(y,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(M,{open:e,onOpenChange:p,children:(0,$.jsxs)(O,{showCloseButton:i===null,children:[(0,$.jsxs)(x,{children:[(0,$.jsx)(k,{children:i===null?`Create API key`:`Save your API key`}),(0,$.jsx)(j,{children:i===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),i===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(u.length===0||d!==null))try{a((await o.mutateAsync(u)).apiKey),I.success(`API key created`)}catch(e){I.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(K,{children:(0,$.jsxs)(Y,{"data-invalid":d!==null||void 0,children:[(0,$.jsx)(G,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(s,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>r(e.target.value),placeholder:`Production app`,value:n}),(0,$.jsx)(q,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(J,{children:d})]})}),(0,$.jsx)(T,{className:`mt-4`,children:(0,$.jsxs)(c,{disabled:o.isPending||u.length===0||d!==null,type:`submit`,children:[o.isPending?(0,$.jsx)(l,{"data-icon":`inline-start`,className:`animate-spin`}):(0,$.jsx)(_,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(K,{children:[(0,$.jsxs)(Y,{children:[(0,$.jsx)(G,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(s,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:i}),(0,$.jsxs)(c,{onClick:async()=>{if(i!==null)try{await navigator.clipboard.writeText(i),I.success(`API key copied`)}catch{I.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(X,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(T,{children:(0,$.jsxs)(c,{onClick:()=>p(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function oe({record:e}){let[t,n]=(0,Q.useState)(!1),r=h(),i=async t=>{t.preventDefault();try{await r.mutateAsync(e.id),n(!1),I.success(`API key revoked`)}catch(e){I.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(E,{open:t,onOpenChange:e=>{r.isPending||n(e)},children:[(0,$.jsxs)(P,{render:(0,$.jsx)(c,{size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(Z,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(S,{children:[(0,$.jsxs)(w,{children:[(0,$.jsx)(C,{children:(0,$.jsx)(Z,{})}),(0,$.jsxs)(b,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(A,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(D,{children:[(0,$.jsx)(ne,{disabled:r.isPending,children:`Cancel`}),(0,$.jsx)(N,{disabled:r.isPending,onClick:e=>void i(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function se(){let t=v();return(0,$.jsxs)(H,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(re,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(B,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(ae,{})]}),(0,$.jsx)(z,{className:`p-0`,children:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(V,{variant:`destructive`,children:[(0,$.jsx)(e,{}),(0,$.jsx)(U,{children:`API keys couldn't be loaded`}),(0,$.jsx)(R,{children:`Check your connection and try again.`}),(0,$.jsx)(L,{children:(0,$.jsxs)(c,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(F,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(te,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(u,{children:(0,$.jsxs)(p,{children:[(0,$.jsx)(d,{children:`Key`}),(0,$.jsx)(d,{className:`w-32`,children:`Created`}),(0,$.jsx)(d,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(f,{children:t.isLoading?Array.from({length:3},(e,t)=>(0,$.jsxs)(p,{children:[(0,$.jsxs)(m,{className:`space-y-2 py-3`,children:[t===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(i,{className:`h-3.5 w-32`}),(0,$.jsx)(i,{className:`h-3 w-20`})]}),(0,$.jsx)(m,{children:(0,$.jsx)(i,{className:`h-3.5 w-20`})}),(0,$.jsx)(m,{children:(0,$.jsx)(i,{className:`ml-auto h-6 w-16`})})]},t)):t.data?.length===0?(0,$.jsx)(p,{children:(0,$.jsx)(m,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(_,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):t.data?.map(e=>(0,$.jsxs)(p,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(m,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(m,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:ie(e.created_at_ms)})}),(0,$.jsx)(m,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(oe,{record:e}):(0,$.jsx)(W,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ce(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(o,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(_,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(se,{})})})]})}export{ce as component};
@@ -0,0 +1 @@
1
+ import{Fn as e,Nn as t,Wn as n,xn as r}from"./createServerFn-DHc2erub.js";var i=t(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function a({className:t,variant:a=`default`,render:o,...s}){return e({defaultTagName:`span`,props:n({className:r(i({variant:a}),t)},s),render:o,state:{slot:`badge`,variant:a}})}export{a as t};
@@ -0,0 +1 @@
1
+ import{Nn as e,Or as t,Qn as n,xn as r}from"./createServerFn-DHc2erub.js";t();var i=n(),a=e(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function o({className:e,variant:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:r(a({variant:t}),e),...n})}function s({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-title`,className:r(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,e),...t})}function c({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-description`,className:r(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),...t})}function l({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`alert-action`,className:r(`absolute top-1.5 right-2`,e),...t})}function u({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card`,className:r(`rounded-xl border bg-card text-card-foreground shadow`,e),...t})}function d({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-header`,className:r(`flex flex-col space-y-1.5 p-6`,e),...t})}function f({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-title`,className:r(`font-semibold leading-none tracking-tight`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-description`,className:r(`text-sm text-muted-foreground`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-content`,className:r(`p-6 pt-0`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-footer`,className:r(`flex items-center p-6 pt-0`,e),...t})}export{d as a,l as c,h as i,c as l,m as n,f as o,p as r,o as s,u as t,s as u};
@@ -0,0 +1 @@
1
+ import{An as e}from"./createServerFn-DHc2erub.js";var t=`ArrowUp`,n=`ArrowDown`,r=`ArrowLeft`,i=`ArrowRight`,a=`Home`,o=`PageUp`,s=`PageDown`,c=new Set([r,i]),l=new Set([r,i,a,`End`]),u=new Set([t,n]),d=new Set([t,n,a,`End`]),f=new Set([...c,...u]),p=new Set([...f,a,`End`]),m=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function h(t){return e(t)&&t.tagName===`INPUT`}function g(t){return!!(h(t)&&t.selectionStart!=null||e(t)&&t.tagName===`TEXTAREA`)}function _(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=v(e,t,`left`),a=y(e),o=y(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=v(e,t,`top`),r=y(e),i=y(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function v(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function y(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}export{t as a,c,s as d,o as f,_ as g,g as h,i,l,d as m,f as n,p as o,u as p,r,a as s,n as t,m as u};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,An as n,At as r,B as i,Bn as a,Dn as o,Dt as s,E as c,En as l,F as u,G as d,H as f,I as p,In as m,It as h,J as g,Jt as _,Kn as v,L as y,M as b,Mn as x,Mt as S,N as C,Nt as w,O as T,On as E,Or as D,Ot as O,P as ee,Qn as k,Qt as te,R as A,Rn as j,Rt as ne,Sn as M,T as N,Tn as P,U as F,Un as I,V as L,Vn as re,Wn as R,X as ie,Xt as ae,Z as z,Zt as oe,at as se,bt as ce,cn as le,ct as ue,dn as de,dt as fe,en as B,et as pe,fn as me,ft as he,hn as ge,it as _e,j as V,jn as H,jr as ve,jt as ye,kt as be,ln as xe,lt as Se,mn as Ce,nn as U,nt as we,ot as Te,pn as Ee,sn as De,st as Oe,tn as W,tt as ke,un as Ae,ut as je,w as G,wt as Me,xn as K,yn as q,z as J,zn as Ne,zt as Pe}from"./createServerFn-DHc2erub.js";import{s as Fe}from"./table-BBEzJ7Xl.js";import{o as Ie}from"./composite-CHTH1Xhh.js";var Le=v(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Y=ve(D()),Re=0;function ze(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Re);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),Ne;let o=requestAnimationFrame(a);return Re=o,()=>{Re===o&&(cancelAnimationFrame(o),Re=0)}}var Be={inert:new WeakMap,"aria-hidden":new WeakMap},Ve=`data-base-ui-inert`,He={inert:new WeakSet,"aria-hidden":new WeakSet},X=new WeakMap,Ue=0;function We(e){return He[e]}function Ge(e){return e?x(e)?e.host:Ge(e.parentNode):null}var Ke=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ge(t);return e.contains(n)?n:null}).filter(e=>e!=null),qe=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Je=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{o(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ye(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Ke(t,e),u=i?Ke(t,a):[],d=new Set(u),f=i?Je(t,qe(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Be[o],n=We(o);c=n,s=e;let r=Ke(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Je(t,qe(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(X.get(e)||0)+1;X.set(e,t),m.push(e),t===1&&e.setAttribute(Ve,``)}),Ue+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(X.get(e)||0)-1;X.set(e,t),t||e.removeAttribute(Ve)}),--Ue,Ue||(Be.inert=new WeakMap,Be[`aria-hidden`]=new WeakMap,He.inert=new WeakSet,He[`aria-hidden`]=new WeakSet,X=new WeakMap)}}function Xe(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=s(e[0]).body;return Ye(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Z=k();function Ze(e,t){let n=E(U(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Qe=20,Q=[];function $e(){Q=Q.filter(e=>e.deref()?.isConnected)}function et(e){$e(),e&&o(e)!==`body`&&(Q.push(new WeakRef(e)),Q.length>Qe&&(Q=Q.slice(-Qe)))}function tt(){return $e(),Q[Q.length-1]?.deref()}function nt(e){return e?fe(e)?e:he(e)[0]||e:null}function rt(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Oe(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return fe(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function it(t){let{context:i,children:a,disabled:o=!1,initialFocus:c=!0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,closeOnFocusOut:p=!0,openInteractionType:m=``,nextFocusableElement:h,previousFocusableElement:g,beforeContentFocusGuardRef:_,externalTree:v,getInsideElements:y}=t,b=`rootStore`in i?i.rootStore:i,x=b.useState(`open`),C=b.useState(`domReferenceElement`),T=b.useState(`floatingElement`),{events:E,dataRef:D}=b.context,O=l(()=>D.current.floatingContext?.nodeId),ee=c===!1,k=oe(C)&&ee,A=Y.useRef([`content`]),j=r(c),M=r(u),N=r(m),F=e(v),I=ke(),L=Y.useRef(!1),R=Y.useRef(!1),ie=Y.useRef(!1),de=Y.useRef(null),pe=Y.useRef(``),ge=Y.useRef(``),V=Y.useRef(null),H=Y.useRef(null),ve=re(V,_,I?.beforeInsideRef),we=re(H,I?.afterInsideRef),Ee=Ce(),De=Ce(),Oe=be(),G=I!=null,K=ae(T),q=l((e=K)=>e?he(e):[]),J=l(()=>y?.().filter(e=>e!=null)??[]);Y.useEffect(()=>{if(o||!f)return;function e(e){e.key===`Tab`&&W(K,B(s(K)))&&q().length===0&&!k&&Ae(e)}return S(s(K),`keydown`,e)},[o,K,f,k,q]),Y.useEffect(()=>{if(o||!x)return;let e=s(K);function t(){ie.current=!1}function n(e){let t=U(e),n=J();ie.current=!(W(T,t)||W(C,t)||W(I?.portalNode,t)||n.some(e=>e===t||W(e,t))),ge.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(R.current=!0)}function r(){ge.current=`keyboard`}return ye(S(e,`pointerdown`,n,!0),S(e,`pointerup`,t,!0),S(e,`pointercancel`,t,!0),S(e,`keydown`,r,!0))},[o,T,C,K,x,I,J]),Y.useEffect(()=>{if(o||!p)return;let e=s(K);function t(){R.current=!0,De.start(0,()=>{R.current=!1})}function r(e){let t=U(e);fe(t)&&(de.current=t)}function i(t){let r=t.relatedTarget,i=t.currentTarget,a=U(t);queueMicrotask(()=>{let o=O(),s=b.context.triggerElements,c=J(),l=r?.hasAttribute(_e(`focus-guard`))&&[V.current,H.current,I?.beforeInsideRef.current,I?.afterInsideRef.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,z(g),z(h)].includes(r),u=!(W(C,r)||W(T,r)||W(r,T)||W(I?.portalNode,r)||c.some(e=>e===r||W(e,r))||r!=null&&s.hasElement(r)||s.hasMatchingElement(e=>W(e,r))||l||F&&(Te(F.nodesRef.current,o).find(e=>W(e.context?.elements.floating,r)||W(e.context?.elements.domReference,r))||se(F.nodesRef.current,o).find(e=>[e.context?.elements.floating,ae(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===C&&K&&rt(K,A),d&&i!==C&&!ce(a)&&B(e)===e.body){if(n(K)&&(K.focus(),d===`popup`)){Oe.request(()=>{K.focus()});return}let e=q(),t=de.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||K;n(r)&&r.focus()}if(D.current.insideReactTree){D.current.insideReactTree=!1;return}(k||!f)&&r&&u&&!R.current&&(k||r!==tt())&&(L.current=!0,b.setOpen(!1,w(ne,t)))})}function a(){ie.current||(D.current.insideReactTree=!0,Ee.start(0,()=>{D.current.insideReactTree=!1}))}let c=n(C)?C:null;if(!(!T&&!c))return ye(c&&S(c,`focusout`,i),c&&S(c,`pointerdown`,t),T&&S(T,`focusin`,r),T&&S(T,`focusout`,i),T&&I&&S(T,`focusout`,a,!0))},[o,C,T,K,f,F,I,b,p,d,q,k,O,A,D,Ee,De,Oe,h,g,J]),Y.useEffect(()=>{if(o||!T||!x)return;let e=Array.from(I?.portalNode?.querySelectorAll(`[${_e(`portal`)}]`)||[]),t=(F?se(F.nodesRef.current,O()):[]).find(e=>oe(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Xe([...[T,...e,V.current,H.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,...J()],t,z(g),z(h),k?C:null].filter(e=>e!=null),{ariaHidden:f||k,mark:!1}),r=Xe([T,...e].filter(e=>e!=null));return()=>{r(),n()}},[x,o,C,T,f,I,k,F,O,h,g,J]),P(()=>{if(!x||o||!n(K))return;let e=s(K),t=B(e);queueMicrotask(()=>{let n=j.current,r=typeof n==`function`?n(N.current||``):n;if(r===void 0||r===!1||W(K,t))return;let i=null,a=()=>(i??=q(K),i[0]||K),o;o=r===!0||r===null?a():z(r),o||=a();let s=W(K,B(e));ze(o,{preventScroll:o===K,shouldFocus(){if(s)return!0;let t=B(e);return!(t!==o&&W(K,t))}})})},[o,x,K,q,j,N]),P(()=>{if(o||!K)return;let e=s(K);et(B(e));function t(e){if(e.open||(pe.current=Ze(e.nativeEvent,ge.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(L.current=!0),e.reason===`outside-press`)if(e.nested)L.current=!1;else if(le(e.nativeEvent)||xe(e.nativeEvent))L.current=!1;else{let e=!1;s(K).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?L.current=!1:L.current=!0}}E.on(`openchange`,t);function r(){let e=M.current,t=typeof e==`function`?e(pe.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return C?.isConnected?C:tt()||null;let n=C?.isConnected?C:tt();return z(t)||n||null}return()=>{E.off(`openchange`,t);let i=B(e),a=J(),o=W(T,i)||a.some(e=>e===i||W(e,i))||F&&Te(F.nodesRef.current,O(),!1).some(e=>W(e.context?.elements.floating,i)),s=M.current,c=r();queueMicrotask(()=>{let t=nt(c),r=typeof s!=`boolean`;s&&!L.current&&n(t)&&(!(!r&&t!==i&&i!==e.body)||o)&&t.focus({preventScroll:!0}),L.current=!1})}},[o,T,K,M,E,F,C,O,J]),P(()=>{if(!me||x||!T)return;let e=B(s(T));!n(e)||!te(e)||W(T,e)&&e.blur()},[x,T]),P(()=>{if(!(o||!I))return I.setFocusManagerState({modal:f,closeOnFocusOut:p,open:x,onOpenChange:b.setOpen,domReference:C}),()=>{I.setFocusManagerState(null)}},[o,I,f,x,b,p,C]),P(()=>{if(!(o||!K))return rt(K,A),()=>{queueMicrotask($e)}},[o,K,A]);let Ne=!o&&(f?!k:!0)&&(G||f);return(0,Z.jsxs)(Y.Fragment,{children:[Ne&&(0,Z.jsx)(Me,{"data-type":`inside`,ref:ve,onFocus:e=>{if(f){let e=q();ze(e[e.length-1])}else I?.portalNode&&(L.current=!1,je(e,I.portalNode)?ue(C)?.focus():z(g??I.beforeOutsideRef)?.focus())}}),a,Ne&&(0,Z.jsx)(Me,{"data-type":`inside`,ref:we,onFocus:e=>{f?ze(q()[0]):I?.portalNode&&(p&&(L.current=!0),je(e,I.portalNode)?Se(C)?.focus():z(h??I.afterOutsideRef)?.focus())}})]})}function at(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=_}=t,l=`rootStore`in e?e.rootStore:e,u=l.context.dataRef,d=Y.useRef(void 0),f=be(),p=Ce(),m=Y.useMemo(()=>{function e(e,t,n,r){let i=w(c,t,n);e&&r===`touch`&&s>0?p.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=u.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){d.current=e.pointerType},onMouseDown(n){let i=d.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||De(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=U(o);if(te(u)){e(c,o,u,i);return}let p=n.currentTarget;f.request(()=>{e(c,o,p,i)})},onClick(n){if(r===`mousedown-only`)return;let i=d.current;if(r===`mousedown`&&i){d.current=void 0;return}De(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,r,a,c,l,o,i,f,p,s]);return Y.useMemo(()=>n?{reference:m}:j,[n,m])}function ot(e){return a(19)?e:e?`true`:void 0}var st={},ct={},lt=``;function ut(e){if(typeof document>`u`)return!1;let t=s(e);return E(t).innerWidth-t.documentElement.clientWidth>0}function dt(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=s(e),n=t.documentElement,r=t.body,i=H(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let c=i.offsetWidth;i.style.overflowY=`hidden`;let l=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,c===l}function ft(e){let t=s(e),n=t.documentElement,r=t.body,i=H(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function pt(e){let t=s(e),n=t.documentElement,r=t.body,i=E(n),a=0,o=0,c=!1,l=O.create();if(me&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=i.getComputedStyle(n),s=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,st={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},lt=n.style.scrollBehavior,ct={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||s.overflowY===`scroll`,p=t.overflowX===`scroll`||s.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(s.marginTop)+parseFloat(s.marginBottom),_=parseFloat(s.marginLeft)+parseFloat(s.marginRight),v=H(n)?n:r;if(c=dt(e),c){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function d(){Object.assign(n.style,st),Object.assign(r.style,ct),c||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=lt)}function f(){d(),l.request(u)}u();let p=S(i,`resize`,f);return()=>{l.cancel(),d(),typeof i.removeEventListener==`function`&&p()}}var mt=new class{lockCount=0;restore=null;timeoutLock=Ee.create();timeoutUnlock=Ee.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=s(e).documentElement,n=E(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ne;return}this.restore=de||!ut(e)?ft(e):pt(e)}};function ht(e=!0,t=null){P(()=>{if(e)return mt.acquire(t)},[e,t])}function gt(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);J(t,a),p(t);let{forceUnmount:o}=y(a,t),s=Y.useCallback(()=>{t.setOpen(!1,w(Pe))},[t]);return Y.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function _t({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=Y.useState(0),[d,f]=Y.useState(0),p=l===0,m=ie(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=U(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||W(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return ht(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),Y.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),A(e,{activeTriggerProps:m.reference??j,inactiveTriggerProps:m.trigger??j,popupProps:Y.useMemo(()=>R(ee,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var vt=Y.createContext(!1),yt=Y.createContext(void 0);function $(e){let t=Y.useContext(yt);if(e===!1&&t===void 0)throw Error(I(27));return t}var bt={...b,modal:g(e=>e.modal),nested:g(e=>e.nested),nestedOpenDialogCount:g(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:g(e=>e.nestedOpenDrawerCount),disablePointerDismissal:g(e=>e.disablePointerDismissal),openMethod:g(e=>e.openMethod),descriptionElementId:g(e=>e.descriptionElementId),titleElementId:g(e=>e.titleElementId),viewportElement:g(e=>e.viewportElement),role:g(e=>e.role)},xt=class e extends d{constructor(e,t,n=!1){let r=new C,i=St(e);i.floatingRootContext=V(r,t,n),super(i,{popupRef:Y.createRef(),backdropRef:Y.createRef(),internalBackdropRef:Y.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},bt)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};u(n,e,t.trigger),this.update(n)};static useStore(t,n){return i(t,(t,r)=>new e(n,t,r),!0).store}};function St(e={}){return{...t(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Ct(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=$(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=xt.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});ge(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=gt({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),T=x||S,E=Y.useMemo(()=>({store:b}),[b]);return(0,Z.jsx)(vt.Provider,{value:!1,children:(0,Z.jsxs)(yt.Provider,{value:E,children:[T&&(0,Z.jsx)(_t,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function wt(e){return Ct(e,`alert-dialog`)}var Tt={...c,...F},Et=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=$(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return m(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Tt,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Dt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=$(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=M({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,w(h,e.nativeEvent))}return m(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Ot=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=$(),c=G(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),m(`p`,e,{ref:t,props:[{id:c},o]})}),kt=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),At=function(e){return e[e.open=N.open]=`open`,e[e.closed=N.closed]=`closed`,e[e.startingStyle=N.startingStyle]=`startingStyle`,e[e.endingStyle=N.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),jt=Y.createContext(void 0);function Mt(){let e=Y.useContext(jt);if(e===void 0)throw Error(I(26));return e}var Nt={...c,...F,nestedDialogOpen(e){return e?{[At.nestedDialogOpen]:``}:null}},Pt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=$(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),p=c.useState(`popupProps`),h=c.useState(`modal`),g=c.useState(`mounted`),_=c.useState(`nested`),v=c.useState(`nestedOpenDialogCount`),y=c.useState(`open`),b=c.useState(`openMethod`),x=c.useState(`titleElementId`),S=c.useState(`transitionStatus`),C=c.useState(`role`),w=d.useState(`floatingId`),T=s.id??w;Mt(),f({open:y,ref:c.context.popupRef,onComplete(){y&&c.context.onOpenChangeComplete?.(!0)}});function E(e){return e===`touch`?c.context.popupRef.current:!0}let D=o===void 0?E:o,O=v>0,k=c.useStateSetter(`popupElement`),te=m(`div`,e,{state:{open:y,nested:_,transitionStatus:S,nestedDialogOpen:O},props:[p,{id:T,"aria-labelledby":x??void 0,"aria-describedby":l??void 0,role:C,...ee,hidden:!g,onKeyDown(e){Ie.has(e.key)&&e.stopPropagation()},style:{[kt.nestedDialogs]:v}},s],ref:[t,c.context.popupRef,k],stateAttributesMapping:Nt});return(0,Z.jsx)(it,{context:d,openInteractionType:b,disabled:!g,closeOnFocusOut:!u,initialFocus:D,returnFocus:a,modal:h!==!1,restoreFocus:`popup`,children:te})}),Ft=Y.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),It=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=$(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(jt.Provider,{value:n,children:(0,Z.jsxs)(pe,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(Ft,{ref:i.context.internalBackdropRef,inert:ot(!s)}),e.children]})}):null}),Lt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=$(),c=G(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),m(`h2`,e,{ref:t,props:[{id:c},o]})});function Rt(e){let t=Y.useRef(``),n=Y.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Y.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function zt(e,t){let n=Y.useRef(e),r=l(t);P(()=>{n.current!==e&&r(n.current)},[e,r]),P(()=>{n.current=e},[e])}function Bt(e,t){let{onClick:n,onPointerDown:r}=Rt(l((n,r)=>{(typeof e==`function`?e():e)||t(r||(de?`touch`:``))}));return Y.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Vt(e){let[t,n]=Y.useState(null),r=Bt(e,n);return zt(e,t=>{t&&!e&&n(null)}),Y.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Ht=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=$(!0),f=l?.store??d?.store;if(!f)throw Error(I(79));let p=G(s),h=f.useState(`floatingRootContext`),g=f.useState(`isOpenedByTrigger`,p),_=f.useState(`triggerPopupId`,p),v=Y.useRef(null),{registerTrigger:y,isMountedByThisTrigger:b}=L(p,v,f,{payload:c}),{getButtonProps:x,buttonRef:S}=M({disabled:a,native:o}),C=at(h,{enabled:h!=null}),w=Bt(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),E={disabled:a,open:g},D=f.useState(`triggerProps`,b);return m(`button`,e,{state:E,ref:[S,t,y,v],props:[C.reference,D,w,{[we]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":g,"aria-controls":_},u,x],stateAttributesMapping:T})}),Ut=Ht;function Wt({...e}){return(0,Z.jsx)(wt,{"data-slot":`alert-dialog`,...e})}function Gt({...e}){return(0,Z.jsx)(Ut,{"data-slot":`alert-dialog-trigger`,...e})}function Kt({...e}){return(0,Z.jsx)(It,{"data-slot":`alert-dialog-portal`,...e})}function qt({className:e,...t}){return(0,Z.jsx)(Et,{"data-slot":`alert-dialog-overlay`,className:K(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Jt({className:e,size:t=`default`,...n}){return(0,Z.jsxs)(Kt,{children:[(0,Z.jsx)(qt,{}),(0,Z.jsx)(Pt,{"data-slot":`alert-dialog-content`,"data-size":t,className:K(`group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function Yt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:K(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function Xt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:K(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function Zt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:K(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,e),...t})}function Qt({className:e,...t}){return(0,Z.jsx)(Lt,{"data-slot":`alert-dialog-title`,className:K(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function $t({className:e,...t}){return(0,Z.jsx)(Ot,{"data-slot":`alert-dialog-description`,className:K(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function en({className:e,...t}){return(0,Z.jsx)(q,{"data-slot":`alert-dialog-action`,className:K(e),...t})}function tn({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,Z.jsx)(Dt,{"data-slot":`alert-dialog-cancel`,className:K(e),render:(0,Z.jsx)(q,{variant:t,size:n}),...r})}function nn(e){return Ct(e,Y.useContext(vt)?`drawer`:`dialog`)}function rn({...e}){return(0,Z.jsx)(nn,{"data-slot":`dialog`,...e})}function an({...e}){return(0,Z.jsx)(Ht,{"data-slot":`dialog-trigger`,...e})}function on({...e}){return(0,Z.jsx)(It,{"data-slot":`dialog-portal`,...e})}function sn({className:e,...t}){return(0,Z.jsx)(Et,{"data-slot":`dialog-overlay`,className:K(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function cn({className:e,children:t,showCloseButton:n=!0,...r}){return(0,Z.jsxs)(on,{children:[(0,Z.jsx)(sn,{}),(0,Z.jsxs)(Pt,{"data-slot":`dialog-content`,className:K(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,Z.jsxs)(Dt,{"data-slot":`dialog-close`,render:(0,Z.jsx)(q,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Z.jsx)(Fe,{}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ln({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`dialog-header`,className:K(`flex flex-col gap-1`,e),...t})}function un({className:e,showCloseButton:t=!1,children:n,...r}){return(0,Z.jsxs)(`div`,{"data-slot":`dialog-footer`,className:K(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,Z.jsx)(Dt,{render:(0,Z.jsx)(q,{variant:`outline`}),children:`Close`})]})}function dn({className:e,...t}){return(0,Z.jsx)(Lt,{"data-slot":`dialog-title`,className:K(`text-sm font-medium`,e),...t})}function fn({className:e,...t}){return(0,Z.jsx)(Ot,{"data-slot":`dialog-description`,className:K(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{at as A,Ft as C,Et as D,Dt as E,ze as M,Le as N,ht as O,It as S,Ot as T,Qt as _,ln as a,zt as b,nn as c,tn as d,Jt as f,Zt as g,Yt as h,un as i,it as j,ot as k,Wt as l,Xt as m,cn as n,dn as o,$t as p,fn as r,an as s,rn as t,en as u,Gt as v,Pt as w,Lt as x,Vt as y};
@@ -0,0 +1 @@
1
+ import{Nn as e,Or as t,Qn as n,jr as r,xn as i}from"./createServerFn-DHc2erub.js";var a=r(t(),1),o=n();function s({className:e,htmlFor:t,...n}){return(0,o.jsx)(`label`,{"data-slot":`label`,htmlFor:t,className:i(`flex items-center gap-2 text-xs/relaxed leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...n})}function c({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`field-group`,className:i(`gap-4 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col`,e),...t})}var l=e(`data-[invalid=true]:text-destructive gap-2 group/field flex w-full`,{variants:{orientation:{vertical:`flex-col [&>*]:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function u({className:e,orientation:t=`vertical`,...n}){return(0,o.jsx)(`div`,{"data-slot":`field`,"data-orientation":t,className:i(l({orientation:t}),e),...n})}function d({className:e,...t}){return(0,o.jsx)(s,{"data-slot":`field-label`,className:i(`has-data-checked:bg-primary/5 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2 group/field-label peer/field-label flex w-fit leading-snug`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,e),...t})}function f({className:e,...t}){return(0,o.jsx)(`p`,{"data-slot":`field-description`,className:i(`text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance`,`last:mt-0 nth-last-2:-mt-1`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function p({className:e,children:t,errors:n,...r}){let s=(0,a.useMemo)(()=>{if(t)return t;if(!n?.length)return null;let e=[...new Map(n.map(e=>[e?.message,e])).values()];return e?.length===1?e[0]?.message:(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&(0,o.jsx)(`li`,{children:e.message},t))})},[t,n]);return s?(0,o.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:i(`text-destructive text-xs/relaxed font-normal`,e),...r,children:s}):null}export{d as a,c as i,f as n,s as o,p as r,u as t};