railwatch 0.3.4 → 0.3.5

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 (167) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/app/jobs/railwatch/prune_telemetry_job.rb +20 -1
  4. data/app/models/railwatch/telemetry_record.rb +48 -0
  5. data/db/railwatch_telemetry_migrate/20260903000000_enable_incremental_vacuum.rb +62 -0
  6. data/docs/embedded.md +47 -1
  7. data/lib/railwatch/version.rb +1 -1
  8. data/lib/tasks/railwatch_tasks.rake +161 -0
  9. data/public/railwatch/assets/{app-layout-yh-sPWgK.js → app-layout-CdJ5Qjms.js} +1 -1
  10. data/public/railwatch/assets/{app-wordmark-nbjkzxwQ.js → app-wordmark-B-0yZiDb.js} +1 -1
  11. data/public/railwatch/assets/{appearance-CDuRvQTB.js → appearance-CU28GBf1.js} +1 -1
  12. data/public/railwatch/assets/application-CwshqwM6.css +1 -0
  13. data/public/railwatch/assets/{arrow-up-DVtOGdVA.js → arrow-up-DY1fS0tD.js} +1 -1
  14. data/public/railwatch/assets/{auth-layout-TCwPpS1K.js → auth-layout-C3FKuUJz.js} +1 -1
  15. data/public/railwatch/assets/{badge-Daw4Hvr8.js → badge-DKvItdlb.js} +1 -1
  16. data/public/railwatch/assets/{braces-DhFbHPsz.js → braces-Bse5Gh3K.js} +1 -1
  17. data/public/railwatch/assets/{card-BX_3HXcJ.js → card-C9j_ffR9.js} +1 -1
  18. data/public/railwatch/assets/{chart-B14-N9g7.js → chart-Cmh6JEww.js} +1 -1
  19. data/public/railwatch/assets/{chart-hover-Vy52H4uD.js → chart-hover-B0SjyWFy.js} +1 -1
  20. data/public/railwatch/assets/{chart-panel-Cb4S_ej_.js → chart-panel-DKNxoauI.js} +1 -1
  21. data/public/railwatch/assets/{checkbox-D3aRSsBj.js → checkbox-BsBkRg5n.js} +1 -1
  22. data/public/railwatch/assets/{code-KvW8k7Jr.js → code-C879Qwgg.js} +1 -1
  23. data/public/railwatch/assets/{copy-block-BKFGd11J.js → copy-block-DtO_3esq.js} +1 -1
  24. data/public/railwatch/assets/{copy-id-Djks1fXB.js → copy-id-SeLCKsW2.js} +1 -1
  25. data/public/railwatch/assets/{cursor-load-more-BXV0f1D_.js → cursor-load-more-OpHbe_kE.js} +1 -1
  26. data/public/railwatch/assets/{data-table-iv1bdF6u.js → data-table-Bc3ZRnpb.js} +1 -1
  27. data/public/railwatch/assets/{edit-__9yJlO3.js → edit-BMpgcQhU.js} +1 -1
  28. data/public/railwatch/assets/{edit-DMKUF8Zi.js → edit-CTD1jSWh.js} +1 -1
  29. data/public/railwatch/assets/{edit-BZc_Iawe.js → edit-DDvf9mkq.js} +1 -1
  30. data/public/railwatch/assets/{empty-state-6j_0AaQQ.js → empty-state-CkPROZB0.js} +1 -1
  31. data/public/railwatch/assets/env-layout-aGQgTZRg.js +1 -0
  32. data/public/railwatch/assets/{execution-path-CzgBUi5e.js → execution-path-BX5NcXUZ.js} +1 -1
  33. data/public/railwatch/assets/{filter-bar-9SU5NrzX.js → filter-bar-C0O2rJVr.js} +1 -1
  34. data/public/railwatch/assets/{flamegraph-qcekju8V.js → flamegraph-Vj4QSAlT.js} +1 -1
  35. data/public/railwatch/assets/{frames-Cyu7KMxZ.js → frames-CTiGwm4E.js} +1 -1
  36. data/public/railwatch/assets/{google-sign-in-button-DsTSfmzY.js → google-sign-in-button-BzogBGeF.js} +1 -1
  37. data/public/railwatch/assets/index-B-kuWp-m.js +1 -0
  38. data/public/railwatch/assets/{index-1ol1-QWI.js → index-B2_QluAw.js} +1 -1
  39. data/public/railwatch/assets/index-B69Iad2U.js +1 -0
  40. data/public/railwatch/assets/index-BCLvKVhP.js +1 -0
  41. data/public/railwatch/assets/index-BKgAm-w2.js +1 -0
  42. data/public/railwatch/assets/index-BRN_bXV_.js +1 -0
  43. data/public/railwatch/assets/index-Ble4RoA3.js +1 -0
  44. data/public/railwatch/assets/index-Bvy021Vv.js +1 -0
  45. data/public/railwatch/assets/index-CCLMaY9k.js +1 -0
  46. data/public/railwatch/assets/index-CD4HIHq0.js +1 -0
  47. data/public/railwatch/assets/{index-Cmlwy1-V.js → index-CPQKOQxV.js} +1 -1
  48. data/public/railwatch/assets/{index-CeYKnapu.js → index-CY6lbwAC.js} +1 -1
  49. data/public/railwatch/assets/index-C__S10ze.js +1 -0
  50. data/public/railwatch/assets/index-ChQ1_u8u.js +1 -0
  51. data/public/railwatch/assets/index-CtT4T6kp.js +1 -0
  52. data/public/railwatch/assets/index-CxU1Jj35.js +1 -0
  53. data/public/railwatch/assets/index-D3Axxkk2.js +1 -0
  54. data/public/railwatch/assets/index-D5YVcrqR.js +1 -0
  55. data/public/railwatch/assets/index-D9cV-IQr.js +1 -0
  56. data/public/railwatch/assets/index-DbyRgbzQ.js +1 -0
  57. data/public/railwatch/assets/index-Dcxd_H-U.js +1 -0
  58. data/public/railwatch/assets/index-Dep2XomH.js +1 -0
  59. data/public/railwatch/assets/{index-DlumCsWY.js → index-DepurF6s.js} +2 -2
  60. data/public/railwatch/assets/{index-BRiq3SNR.js → index-DigUOHQ8.js} +1 -1
  61. data/public/railwatch/assets/index-DkgImCOg.js +1 -0
  62. data/public/railwatch/assets/{index-DU9F5b5d.js → index-DxuDLoTc.js} +1 -1
  63. data/public/railwatch/assets/{index-OqI59zPb.js → index-Dy7Wg880.js} +1 -1
  64. data/public/railwatch/assets/index-FgpFDA1Z.js +1 -0
  65. data/public/railwatch/assets/index-LaTKDe0-.js +1 -0
  66. data/public/railwatch/assets/index-Wb_U2_hz.js +1 -0
  67. data/public/railwatch/assets/index-chS28dvS.js +1 -0
  68. data/public/railwatch/assets/index-jSEU_Yp7.js +1 -0
  69. data/public/railwatch/assets/index-uuKg6Zqn.js +1 -0
  70. data/public/railwatch/assets/index-y2c8xKzI.js +1 -0
  71. data/public/railwatch/assets/index-z2YfKBJl.js +1 -0
  72. data/public/railwatch/assets/{inertia-TViv6kNv.js → inertia-CgBdJDaE.js} +2 -2
  73. data/public/railwatch/assets/{input-error-LxImUkxv.js → input-error-DfpIawjl.js} +1 -1
  74. data/public/railwatch/assets/{json-viewer-Ar4cjPDW.js → json-viewer-CH7nEIUs.js} +1 -1
  75. data/public/railwatch/assets/klass-BTg1l2AO.js +1 -0
  76. data/public/railwatch/assets/{label-COUKWqE_.js → label-BWgQzHCO.js} +1 -1
  77. data/public/railwatch/assets/{layout-DNSLAkw_.js → layout-neknbxn-.js} +1 -1
  78. data/public/railwatch/assets/{live-dot-ChfUtY3p.js → live-dot-Bejk0a5o.js} +1 -1
  79. data/public/railwatch/assets/{nav-CNnDqPlm.js → nav-C1M8941-.js} +1 -1
  80. data/public/railwatch/assets/{new-D4uewYC8.js → new-B8CzyoMu.js} +1 -1
  81. data/public/railwatch/assets/{new-Be55nmt9.js → new-BnGIYM37.js} +1 -1
  82. data/public/railwatch/assets/{new-Bi_xQiIb.js → new-DElC-JCS.js} +1 -1
  83. data/public/railwatch/assets/{new-D05SajFR.js → new-DGYPcz7w.js} +1 -1
  84. data/public/railwatch/assets/{new-84S8ZJq9.js → new-DLgCLBiW.js} +1 -1
  85. data/public/railwatch/assets/{new-BvCT8TMg.js → new-bBwawsEg.js} +1 -1
  86. data/public/railwatch/assets/{onboarding-CYZi5Cqc.js → onboarding-CW0jUhHT.js} +1 -1
  87. data/public/railwatch/assets/{origin-identity-6q1-CBts.js → origin-identity-bJMxeEHB.js} +1 -1
  88. data/public/railwatch/assets/{percentile-picker-gFZCXtdb.js → percentile-picker-DLAnTKY3.js} +1 -1
  89. data/public/railwatch/assets/{relative-time-IOOgl5n2.js → relative-time-BHbJh8HW.js} +1 -1
  90. data/public/railwatch/assets/release-health-2O1GRclB.js +1 -0
  91. data/public/railwatch/assets/route-DSw8aIZa.js +1 -0
  92. data/public/railwatch/assets/{segmented-h1VdDTqE.js → segmented-Dg8CES94.js} +1 -1
  93. data/public/railwatch/assets/{select-_AJsUa7X.js → select-CqKpvI98.js} +1 -1
  94. data/public/railwatch/assets/{separator-BwwTYtCF.js → separator-BOp2LHw3.js} +1 -1
  95. data/public/railwatch/assets/{series-chart-DaFPefku.js → series-chart-COEtj3PY.js} +1 -1
  96. data/public/railwatch/assets/show-B40560ZT.js +1 -0
  97. data/public/railwatch/assets/{show-C4Ltf5i9.js → show-B7Zqjlqc.js} +1 -1
  98. data/public/railwatch/assets/{show-CeTL4B37.js → show-BAxMoNvw.js} +2 -2
  99. data/public/railwatch/assets/show-B_QVoqKE.js +1 -0
  100. data/public/railwatch/assets/show-Bbs1i46N.js +1 -0
  101. data/public/railwatch/assets/{show-DACku6AD.js → show-C-xpDkoj.js} +3 -3
  102. data/public/railwatch/assets/{show-DgSIoRvA.js → show-C9Y1To9_.js} +1 -1
  103. data/public/railwatch/assets/show-CGv85sRo.js +1 -0
  104. data/public/railwatch/assets/{show-BM6X2Mpo.js → show-CPh-7VGL.js} +1 -1
  105. data/public/railwatch/assets/show-C_9M2nLy.js +1 -0
  106. data/public/railwatch/assets/{show-DIOSGcXV.js → show-DFlP1ktM.js} +2 -2
  107. data/public/railwatch/assets/show-DqtE0LI6.js +1 -0
  108. data/public/railwatch/assets/{show-C8sHalnw.js → show-DrhEDGPn.js} +1 -1
  109. data/public/railwatch/assets/{show-JxFtB4eK.js → show-HjjzcKRq.js} +2 -2
  110. data/public/railwatch/assets/show-Zr2xV4OD.js +1 -0
  111. data/public/railwatch/assets/show-dRDz8OVu.js +1 -0
  112. data/public/railwatch/assets/{show-DYteoYWW.js → show-pbkvGRER.js} +1 -1
  113. data/public/railwatch/assets/{sort-header-DpFzXblu.js → sort-header-DBxQ_KFX.js} +1 -1
  114. data/public/railwatch/assets/{sparkline-cell-C3-5vFkP.js → sparkline-cell-BbfXw3kA.js} +1 -1
  115. data/public/railwatch/assets/stat-Cd8QaTGw.js +1 -0
  116. data/public/railwatch/assets/{status-badge-8jVV-LA4.js → status-badge-Ys4b0fcG.js} +1 -1
  117. data/public/railwatch/assets/{tenant-path-G-6u9A-o.js → tenant-path-CQWzaNYR.js} +1 -1
  118. data/public/railwatch/assets/{text-link-DfsiaCcP.js → text-link-BY8FY-CJ.js} +1 -1
  119. data/public/railwatch/assets/{textarea-Dye72uP7.js → textarea-Bq2jjOMC.js} +1 -1
  120. data/public/railwatch/assets/{timeline-CD7WHnbo.js → timeline-SxStCFO2.js} +1 -1
  121. data/public/railwatch/assets/{transition-B_AW8rMK.js → transition-CQ9yvfPa.js} +1 -1
  122. data/public/railwatch/assets/{use-clipboard-ColgLyQ2.js → use-clipboard-3hTXU91g.js} +1 -1
  123. data/public/railwatch/assets/use-live-LwJStJvD.js +1 -0
  124. data/public/railwatch/manifest.json +1289 -1236
  125. metadata +117 -115
  126. data/public/railwatch/assets/application-DD4nJA5I.css +0 -1
  127. data/public/railwatch/assets/env-layout-DrT8rO6P.js +0 -1
  128. data/public/railwatch/assets/index-5jI4aFzC.js +0 -1
  129. data/public/railwatch/assets/index-9KTrVnrc.js +0 -1
  130. data/public/railwatch/assets/index-B0-8lcTp.js +0 -1
  131. data/public/railwatch/assets/index-B7jjfNfO.js +0 -1
  132. data/public/railwatch/assets/index-BBchRy0M.js +0 -1
  133. data/public/railwatch/assets/index-BgKj9xhr.js +0 -1
  134. data/public/railwatch/assets/index-BkTZqqOu.js +0 -1
  135. data/public/railwatch/assets/index-BprKx8QO.js +0 -1
  136. data/public/railwatch/assets/index-C3jzvPs3.js +0 -1
  137. data/public/railwatch/assets/index-Cbs6gGyQ.js +0 -1
  138. data/public/railwatch/assets/index-CdRZ6AWF.js +0 -1
  139. data/public/railwatch/assets/index-Cwx6058d.js +0 -1
  140. data/public/railwatch/assets/index-D4CSdbHv.js +0 -1
  141. data/public/railwatch/assets/index-DEFMSkdG.js +0 -1
  142. data/public/railwatch/assets/index-DFiHEBSh.js +0 -1
  143. data/public/railwatch/assets/index-DL4vWdWJ.js +0 -1
  144. data/public/railwatch/assets/index-DaXgPcGL.js +0 -1
  145. data/public/railwatch/assets/index-DbtaU-EE.js +0 -1
  146. data/public/railwatch/assets/index-DeOe83F4.js +0 -1
  147. data/public/railwatch/assets/index-DiucHN4B.js +0 -1
  148. data/public/railwatch/assets/index-DlnR_l9o.js +0 -1
  149. data/public/railwatch/assets/index-DmRd7aIG.js +0 -1
  150. data/public/railwatch/assets/index-DxSh2UpM.js +0 -1
  151. data/public/railwatch/assets/index-MIMGuFNt.js +0 -1
  152. data/public/railwatch/assets/index-P4rC7IlX.js +0 -1
  153. data/public/railwatch/assets/index-gpPOcFWq.js +0 -1
  154. data/public/railwatch/assets/index-oVkururr.js +0 -1
  155. data/public/railwatch/assets/index-p9puqVge.js +0 -1
  156. data/public/railwatch/assets/klass-CJ-J4INB.js +0 -1
  157. data/public/railwatch/assets/release-health-DC8oc7uw.js +0 -1
  158. data/public/railwatch/assets/route-Dv6LAWvT.js +0 -1
  159. data/public/railwatch/assets/show-B7NCgkEo.js +0 -1
  160. data/public/railwatch/assets/show-BKqyKjBK.js +0 -1
  161. data/public/railwatch/assets/show-BNw4tN5q.js +0 -1
  162. data/public/railwatch/assets/show-BO3bnG5h.js +0 -1
  163. data/public/railwatch/assets/show-BhrAVAEA.js +0 -1
  164. data/public/railwatch/assets/show-CpfgV1jP.js +0 -1
  165. data/public/railwatch/assets/show-DQp_1n-B.js +0 -1
  166. data/public/railwatch/assets/show-DVNz46RI.js +0 -1
  167. data/public/railwatch/assets/stat-s4RpOS9w.js +0 -1
@@ -1 +1 @@
1
- import{c as n,j as c,C as i}from"./inertia-TViv6kNv.js";function p(o){const e=n.c(8);let s,t,r;e[0]!==o?({messages:s,className:r,...t}=o,e[0]=o,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);const a=r===void 0?"":r;let l;return e[4]!==a||e[5]!==s||e[6]!==t?(l=s?c.jsx("p",{...t,className:i("text-sm text-red-600 dark:text-red-400",a),children:s.join(", ")}):null,e[4]=a,e[5]=s,e[6]=t,e[7]=l):l=e[7],l}export{p as I};
1
+ import{c as n,j as c,C as i}from"./inertia-CgBdJDaE.js";function p(o){const e=n.c(8);let s,t,r;e[0]!==o?({messages:s,className:r,...t}=o,e[0]=o,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);const a=r===void 0?"":r;let l;return e[4]!==a||e[5]!==s||e[6]!==t?(l=s?c.jsx("p",{...t,className:i("text-sm text-red-600 dark:text-red-400",a),children:s.join(", ")}):null,e[4]=a,e[5]=s,e[6]=t,e[7]=l):l=e[7],l}export{p as I};
@@ -1 +1 @@
1
- import{c as $,r as A,C as w,j as s}from"./inertia-TViv6kNv.js";import{B as E}from"./app-wordmark-nbjkzxwQ.js";import{u as J,C as O}from"./use-clipboard-ColgLyQ2.js";import{C as R}from"./index-1ol1-QWI.js";import{C as B,a as D}from"./app-layout-yh-sPWgK.js";function L(i){return i!==null&&typeof i=="object"}function P(i){return i===null?"text-muted-foreground":typeof i=="string"?"text-emerald-600 dark:text-emerald-400":typeof i=="number"?"text-amber-600 dark:text-amber-400":typeof i=="boolean"?"text-primary":""}function T(i){const e=$.c(5),{value:t}=i,r=t===null?"null":typeof t=="string"?`"${t}"`:String(t);let a;e[0]!==t?(a=P(t),e[0]=t,e[1]=a):a=e[1];let u;return e[2]!==a||e[3]!==r?(u=s.jsx("span",{className:a,children:r}),e[2]=a,e[3]=r,e[4]=u):u=e[4],u}function z(i){const e=$.c(42),{label:t,value:r,depth:a,collapsed:u}=i,[f,C]=A.useState(!u),y=`${a*12}px`;let m;e[0]!==y?(m={paddingLeft:y},e[0]=y,e[1]=m):m=e[1];const n=m;if(!L(r)){let c;e[2]!==t?(c=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[2]=t,e[3]=c):c=e[3];let l;e[4]!==r?(l=s.jsx(T,{value:r}),e[4]=r,e[5]=l):l=e[5];let o;return e[6]!==n||e[7]!==c||e[8]!==l?(o=s.jsxs("div",{style:n,children:[c,l]}),e[6]=n,e[7]=c,e[8]=l,e[9]=o):o=e[9],o}let p,d;if(e[10]!==u||e[11]!==a||e[12]!==n||e[13]!==t||e[14]!==f||e[15]!==r){d=Symbol.for("react.early_return_sentinel");e:{const c=Array.isArray(r)?r.map(q):Object.entries(r);let l;e[18]!==r?(l=Array.isArray(r)?["[","]"]:["{","}"],e[18]=r,e[19]=l):l=e[19];const[o,j]=l;if(c.length===0){let h;e[20]!==t?(h=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[20]=t,e[21]=h):h=e[21];let x;e[22]!==j||e[23]!==o?(x=s.jsxs("span",{className:"text-muted-foreground",children:[o,j]}),e[22]=j,e[23]=o,e[24]=x):x=e[24];let N;e[25]!==n||e[26]!==h||e[27]!==x?(N=s.jsxs("div",{style:n,children:[h,x]}),e[25]=n,e[26]=h,e[27]=x,e[28]=N):N=e[28],d=N;break e}let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>C(V),e[29]=_):_=e[29];let g;e[30]!==f?(g=f?s.jsx(B,{className:"text-muted-foreground size-3"}):s.jsx(D,{className:"text-muted-foreground size-3"}),e[30]=f,e[31]=g):g=e[31];let b;e[32]!==t?(b=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,":"]}),e[32]=t,e[33]=b):b=e[33];const S=!f&&`…${c.length}…${j}`;let v;e[34]!==o||e[35]!==S?(v=s.jsxs("span",{className:"text-muted-foreground",children:[o,S]}),e[34]=o,e[35]=S,e[36]=v):v=e[36];let k;e[37]!==n||e[38]!==v||e[39]!==g||e[40]!==b?(k=s.jsxs("button",{type:"button",onClick:_,className:"hover:bg-muted/60 inline-flex items-center gap-0.5 rounded",style:n,children:[g,b,v]}),e[37]=n,e[38]=v,e[39]=g,e[40]=b,e[41]=k):k=e[41],p=s.jsxs("div",{children:[k,f&&s.jsxs("div",{children:[c.map(h=>{const[x,N]=h;return s.jsx(z,{label:Array.isArray(r)?void 0:x,value:N,depth:a+1,collapsed:u},x)}),s.jsx("div",{className:"text-muted-foreground",style:n,children:j})]})]})}e[10]=u,e[11]=a,e[12]=n,e[13]=t,e[14]=f,e[15]=r,e[16]=p,e[17]=d}else p=e[16],d=e[17];return d!==Symbol.for("react.early_return_sentinel")?d:p}function V(i){return!i}function q(i,e){return[String(e),i]}function M(i){const e=$.c(17),{data:t,collapsed:r,className:a}=i,u=r===void 0?!1:r,[,f]=J(),[C,y]=A.useState(!1);let m;e[0]!==a?(m=w("bg-muted/60 relative rounded p-2 pr-8 font-mono text-xs",a),e[0]=a,e[1]=m):m=e[1];let n;e[2]!==f||e[3]!==t?(n=()=>{(async()=>await f(JSON.stringify(t,null,2))&&(y(!0),setTimeout(()=>y(!1),1200)))()},e[2]=f,e[3]=t,e[4]=n):n=e[4];let p;e[5]!==C?(p=C?s.jsx(R,{className:"size-3.5"}):s.jsx(O,{className:"size-3.5"}),e[5]=C,e[6]=p):p=e[6];let d;e[7]!==n||e[8]!==p?(d=s.jsx(E,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute top-1 right-1",onClick:n,children:p}),e[7]=n,e[8]=p,e[9]=d):d=e[9];const c=t;let l;e[10]!==u||e[11]!==c?(l=s.jsx(z,{value:c,depth:0,collapsed:u}),e[10]=u,e[11]=c,e[12]=l):l=e[12];let o;return e[13]!==m||e[14]!==d||e[15]!==l?(o=s.jsxs("div",{className:m,children:[d,l]}),e[13]=m,e[14]=d,e[15]=l,e[16]=o):o=e[16],o}export{M as J};
1
+ import{c as $,r as A,C as w,j as s}from"./inertia-CgBdJDaE.js";import{B as E}from"./app-wordmark-B-0yZiDb.js";import{u as J,C as O}from"./use-clipboard-3hTXU91g.js";import{C as R}from"./index-B2_QluAw.js";import{C as B,a as D}from"./app-layout-CdJ5Qjms.js";function L(i){return i!==null&&typeof i=="object"}function P(i){return i===null?"text-muted-foreground":typeof i=="string"?"text-emerald-600 dark:text-emerald-400":typeof i=="number"?"text-amber-600 dark:text-amber-400":typeof i=="boolean"?"text-primary":""}function T(i){const e=$.c(5),{value:t}=i,r=t===null?"null":typeof t=="string"?`"${t}"`:String(t);let a;e[0]!==t?(a=P(t),e[0]=t,e[1]=a):a=e[1];let u;return e[2]!==a||e[3]!==r?(u=s.jsx("span",{className:a,children:r}),e[2]=a,e[3]=r,e[4]=u):u=e[4],u}function z(i){const e=$.c(42),{label:t,value:r,depth:a,collapsed:u}=i,[f,C]=A.useState(!u),y=`${a*12}px`;let m;e[0]!==y?(m={paddingLeft:y},e[0]=y,e[1]=m):m=e[1];const n=m;if(!L(r)){let c;e[2]!==t?(c=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[2]=t,e[3]=c):c=e[3];let l;e[4]!==r?(l=s.jsx(T,{value:r}),e[4]=r,e[5]=l):l=e[5];let o;return e[6]!==n||e[7]!==c||e[8]!==l?(o=s.jsxs("div",{style:n,children:[c,l]}),e[6]=n,e[7]=c,e[8]=l,e[9]=o):o=e[9],o}let p,d;if(e[10]!==u||e[11]!==a||e[12]!==n||e[13]!==t||e[14]!==f||e[15]!==r){d=Symbol.for("react.early_return_sentinel");e:{const c=Array.isArray(r)?r.map(q):Object.entries(r);let l;e[18]!==r?(l=Array.isArray(r)?["[","]"]:["{","}"],e[18]=r,e[19]=l):l=e[19];const[o,j]=l;if(c.length===0){let h;e[20]!==t?(h=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[20]=t,e[21]=h):h=e[21];let x;e[22]!==j||e[23]!==o?(x=s.jsxs("span",{className:"text-muted-foreground",children:[o,j]}),e[22]=j,e[23]=o,e[24]=x):x=e[24];let N;e[25]!==n||e[26]!==h||e[27]!==x?(N=s.jsxs("div",{style:n,children:[h,x]}),e[25]=n,e[26]=h,e[27]=x,e[28]=N):N=e[28],d=N;break e}let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>C(V),e[29]=_):_=e[29];let g;e[30]!==f?(g=f?s.jsx(B,{className:"text-muted-foreground size-3"}):s.jsx(D,{className:"text-muted-foreground size-3"}),e[30]=f,e[31]=g):g=e[31];let b;e[32]!==t?(b=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,":"]}),e[32]=t,e[33]=b):b=e[33];const S=!f&&`…${c.length}…${j}`;let v;e[34]!==o||e[35]!==S?(v=s.jsxs("span",{className:"text-muted-foreground",children:[o,S]}),e[34]=o,e[35]=S,e[36]=v):v=e[36];let k;e[37]!==n||e[38]!==v||e[39]!==g||e[40]!==b?(k=s.jsxs("button",{type:"button",onClick:_,className:"hover:bg-muted/60 inline-flex items-center gap-0.5 rounded",style:n,children:[g,b,v]}),e[37]=n,e[38]=v,e[39]=g,e[40]=b,e[41]=k):k=e[41],p=s.jsxs("div",{children:[k,f&&s.jsxs("div",{children:[c.map(h=>{const[x,N]=h;return s.jsx(z,{label:Array.isArray(r)?void 0:x,value:N,depth:a+1,collapsed:u},x)}),s.jsx("div",{className:"text-muted-foreground",style:n,children:j})]})]})}e[10]=u,e[11]=a,e[12]=n,e[13]=t,e[14]=f,e[15]=r,e[16]=p,e[17]=d}else p=e[16],d=e[17];return d!==Symbol.for("react.early_return_sentinel")?d:p}function V(i){return!i}function q(i,e){return[String(e),i]}function M(i){const e=$.c(17),{data:t,collapsed:r,className:a}=i,u=r===void 0?!1:r,[,f]=J(),[C,y]=A.useState(!1);let m;e[0]!==a?(m=w("bg-muted/60 relative rounded p-2 pr-8 font-mono text-xs",a),e[0]=a,e[1]=m):m=e[1];let n;e[2]!==f||e[3]!==t?(n=()=>{(async()=>await f(JSON.stringify(t,null,2))&&(y(!0),setTimeout(()=>y(!1),1200)))()},e[2]=f,e[3]=t,e[4]=n):n=e[4];let p;e[5]!==C?(p=C?s.jsx(R,{className:"size-3.5"}):s.jsx(O,{className:"size-3.5"}),e[5]=C,e[6]=p):p=e[6];let d;e[7]!==n||e[8]!==p?(d=s.jsx(E,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute top-1 right-1",onClick:n,children:p}),e[7]=n,e[8]=p,e[9]=d):d=e[9];const c=t;let l;e[10]!==u||e[11]!==c?(l=s.jsx(z,{value:c,depth:0,collapsed:u}),e[10]=u,e[11]=c,e[12]=l):l=e[12];let o;return e[13]!==m||e[14]!==d||e[15]!==l?(o=s.jsxs("div",{className:m,children:[d,l]}),e[13]=m,e[14]=d,e[15]=l,e[16]=o):o=e[16],o}export{M as J};
@@ -0,0 +1 @@
1
+ import{c as pe,u as de,X as fe,j as s,e as ne,Y as he,K as be}from"./inertia-CgBdJDaE.js";import{V as xe,D as ye}from"./chart-panel-DKNxoauI.js";import{D as ve}from"./data-table-Bc3ZRnpb.js";import{F as ge}from"./filter-bar-C0O2rJVr.js";import{O as ae}from"./origin-identity-bJMxeEHB.js";import{u as _e,P as je,E as ke}from"./env-layout-aGQgTZRg.js";import{S as G,a as we}from"./stat-Cd8QaTGw.js";import{S as Oe}from"./status-badge-Ys4b0fcG.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-COEtj3PY.js";import"./chart-hover-B0SjyWFy.js";import"./chart-Cmh6JEww.js";import"./empty-state-CkPROZB0.js";import"./badge-DKvItdlb.js";import"./app-wordmark-B-0yZiDb.js";import"./app-layout-CdJ5Qjms.js";import"./live-dot-Bejk0a5o.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";import"./label-BWgQzHCO.js";import"./tenant-path-CQWzaNYR.js";import"./use-live-LwJStJvD.js";import"./segmented-Dg8CES94.js";import"./arrow-up-DY1fS0tD.js";function at(t){const e=pe.c(104),{environment:re,window:r,range:n}=de().props,{window:ce,label:me}=_e(),i=re.application_id,l=re.id;let F;e[0]!==n?.from||e[1]!==n?.to||e[2]!==r?(F=r==="custom"?{from:n?.from,to:n?.to}:{window:r},e[0]=n?.from,e[1]=n?.to,e[2]=r,e[3]=F):F=e[3];const U=F,o=t.summary.current,c=t.summary.previous,m=ce==="custom"?"vs previous period":`vs previous ${me}`,ue=t.name;let u;e[4]!==i||e[5]!==l||e[6]!==r?(u=fe(i,l,{window:r}),e[4]=i,e[5]=l,e[6]=r,e[7]=u):u=e[7];let p;e[8]!==u?(p={title:"Jobs",href:u},e[8]=u,e[9]=p):p=e[9];let d;e[10]!==t.name?(d={title:t.name,href:"#"},e[10]=t.name,e[11]=d):d=e[11];let f;e[12]!==p||e[13]!==d?(f=[p,d],e[12]=p,e[13]=d,e[14]=f):f=e[14];let h;e[15]!==t.name?(h=s.jsx(je,{title:s.jsx("span",{className:"font-mono",children:t.name})}),e[15]=t.name,e[16]=h):h=e[16];let b;e[17]!==o.count?(b=Se(o.count),e[17]=o.count,e[18]=b):b=e[18];let x;e[19]!==b?(x=s.jsx(G,{label:"Attempts",value:b}),e[19]=b,e[20]=x):x=e[20];let y;e[21]!==o.count||e[22]!==o.errors?(y=qe(o.errors,o.count),e[21]=o.count,e[22]=o.errors,e[23]=y):y=e[23];const Z=o.errors?"destructive":"success",ee=o.count?o.errors/o.count*100:0,te=c.count?c.errors/c.count*100:0;let v;e[24]!==ee||e[25]!==te?(v={current:ee,previous:te,goodDirection:"down"},e[24]=ee,e[25]=te,e[26]=v):v=e[26];let g;e[27]!==m||e[28]!==Z||e[29]!==v||e[30]!==y?(g=s.jsx(G,{label:"Failed",value:y,tone:Z,delta:v,deltaCaption:m}),e[27]=m,e[28]=Z,e[29]=v,e[30]=y,e[31]=g):g=e[31];const oe=o.p50/1e3;let _;e[32]!==oe?(_=C(oe),e[32]=oe,e[33]=_):_=e[33];const se=o.p95/1e3;let N;e[34]!==se?(N=C(se),e[34]=se,e[35]=N):N=e[35];const ie=`p95 ${N}`;let j;e[36]!==c.p95||e[37]!==o.p95?(j={current:o.p95,previous:c.p95,goodDirection:"down"},e[36]=c.p95,e[37]=o.p95,e[38]=j):j=e[38];let k;e[39]!==m||e[40]!==_||e[41]!==ie||e[42]!==j?(k=s.jsx(G,{label:"p50 / p95",value:_,hint:ie,delta:j,deltaCaption:m}),e[39]=m,e[40]=_,e[41]=ie,e[42]=j,e[43]=k):k=e[43];const le=o.max/1e3;let w;e[44]!==le?(w=C(le),e[44]=le,e[45]=w):w=e[45];let O;e[46]!==w?(O=s.jsx(G,{label:"Max",value:w}),e[46]=w,e[47]=O):O=e[47];let S;e[48]!==g||e[49]!==k||e[50]!==O||e[51]!==x?(S=s.jsxs(we,{children:[x,g,k,O]}),e[48]=g,e[49]=k,e[50]=O,e[51]=x,e[52]=S):S=e[52];let q;e[53]!==t.deploys||e[54]!==t.series?(q=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(xe,{legend:"job",label:"Attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),s.jsx(ye,{label:"Duration",data:t.series,deploys:t.deploys})]}),e[53]=t.deploys,e[54]=t.series,e[55]=q):q=e[55];let W,L,R,$;e[56]===Symbol.for("react.memo_cache_sentinel")?(W={key:"user",label:"Origin user"},L={key:"tenant",label:"Origin tenant"},R={key:"queue",label:"Queue"},$={key:"job_id",label:"Job ID"},e[56]=W,e[57]=L,e[58]=R,e[59]=$):(W=e[56],L=e[57],R=e[58],$=e[59]);let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B=[W,L,R,$,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[60]=B):B=e[60];let D;e[61]!==i||e[62]!==l||e[63]!==t.group_hash||e[64]!==U?(D=a=>ne.visit(he(i,l,t.group_hash,{...U,q:a||void 0}),{preserveState:!0}),e[61]=i,e[62]=l,e[63]=t.group_hash,e[64]=U,e[65]=D):D=e[65];let P;e[66]!==t.q||e[67]!==D?(P=s.jsx(ge,{value:t.q,fields:B,onChange:D,placeholder:"Filter attempts by origin, queue, or outcome"}),e[66]=t.q,e[67]=D,e[68]=P):P=e[68];let E;e[69]!==i||e[70]!==l?(E=a=>ne.visit(be(i,l,a.execution_id)),e[69]=i,e[70]=l,e[71]=E):E=e[71];let K,Q,V,H;e[72]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",cell:Ce},Q={key:"st",header:"Outcome",cell:Ae},V={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:Me},H={key:"q",hideOnMobile:!0,header:"Queue",cell:Je},e[72]=K,e[73]=Q,e[74]=V,e[75]=H):(K=e[72],Q=e[73],V=e[74],H=e[75]);let I;e[76]!==i||e[77]!==l||e[78]!==n||e[79]!==r?(I={key:"user",hideOnMobile:!0,header:"Origin user",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"user",range:n,window:r})},e[76]=i,e[77]=l,e[78]=n,e[79]=r,e[80]=I):I=e[80];let J;e[81]!==i||e[82]!==l||e[83]!==n||e[84]!==r?(J={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"tenant",range:n,window:r})},e[81]=i,e[82]=l,e[83]=n,e[84]=r,e[85]=J):J=e[85];let T,X,Y;e[86]===Symbol.for("react.memo_cache_sentinel")?(T={key:"wait",hideOnMobile:!0,header:"Waited",align:"right",cell:Ie},X={key:"dur",header:"Duration",align:"right",cell:Ee},Y={key:"ex",header:"Exception",cell:Pe},e[86]=T,e[87]=X,e[88]=Y):(T=e[86],X=e[87],Y=e[88]);let M;e[89]!==I||e[90]!==J?(M=[K,Q,V,H,I,J,T,X,Y],e[89]=I,e[90]=J,e[91]=M):M=e[91];let A;e[92]!==t.attempts||e[93]!==E||e[94]!==M?(A=s.jsx(ve,{rows:t.attempts,rowKey:Fe,onRowClick:E,columns:M}),e[92]=t.attempts,e[93]=E,e[94]=M,e[95]=A):A=e[95];let z;return e[96]!==t.name||e[97]!==S||e[98]!==q||e[99]!==P||e[100]!==A||e[101]!==f||e[102]!==h?(z=s.jsxs(ke,{title:ue,crumbs:f,children:[h,S,q,P,A]}),e[96]=t.name,e[97]=S,e[98]=q,e[99]=P,e[100]=A,e[101]=f,e[102]=h,e[103]=z):z=e[103],z}function Pe(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ee(t){return C(t.duration)}function Ie(t){return C(t.queue_latency)}function Je(t){return t.queue}function Me(t){return t.attempt}function Ae(t){return s.jsx(Oe,{outcome:t.outcome})}function Ce(t){return s.jsx("span",{className:"text-xs",children:De(t.occurred_at)})}function Fe(t){return t.execution_id}export{at as default};
@@ -1 +1 @@
1
- import{c as s,C as d,j as l,r as u}from"./inertia-TViv6kNv.js";import{P as f}from"./index-OqI59zPb.js";function v(o){const e=s.c(10);let r,t,i;e[0]!==o?({className:r,type:i,...t}=o,e[0]=o,e[1]=r,e[2]=t,e[3]=i):(r=e[1],t=e[2],i=e[3]);let a;e[4]!==r?(a=d("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),e[4]=r,e[5]=a):a=e[5];let n;return e[6]!==t||e[7]!==a||e[8]!==i?(n=l.jsx("input",{type:i,"data-slot":"input",className:a,...t}),e[6]=t,e[7]=a,e[8]=i,e[9]=n):n=e[9],n}var c=Object.defineProperty,p=(o,e)=>c(o,"name",{value:e,configurable:!0}),b=u.forwardRef(p(function(e,r){return l.jsx(f.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"Label")),m=b;function w(o){const e=s.c(8);let r,t;e[0]!==o?({className:r,...t}=o,e[0]=o,e[1]=r,e[2]=t):(r=e[1],t=e[2]);let i;e[3]!==r?(i=d("flex items-center gap-2 text-sm 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",r),e[3]=r,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=l.jsx(m,{"data-slot":"label",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}export{v as I,w as L};
1
+ import{c as s,C as d,j as l,r as u}from"./inertia-CgBdJDaE.js";import{P as f}from"./index-Dy7Wg880.js";function v(o){const e=s.c(10);let r,t,i;e[0]!==o?({className:r,type:i,...t}=o,e[0]=o,e[1]=r,e[2]=t,e[3]=i):(r=e[1],t=e[2],i=e[3]);let a;e[4]!==r?(a=d("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),e[4]=r,e[5]=a):a=e[5];let n;return e[6]!==t||e[7]!==a||e[8]!==i?(n=l.jsx("input",{type:i,"data-slot":"input",className:a,...t}),e[6]=t,e[7]=a,e[8]=i,e[9]=n):n=e[9],n}var c=Object.defineProperty,p=(o,e)=>c(o,"name",{value:e,configurable:!0}),b=u.forwardRef(p(function(e,r){return l.jsx(f.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"Label")),m=b;function w(o){const e=s.c(8);let r,t;e[0]!==o?({className:r,...t}=o,e[0]=o,e[1]=r,e[2]=t):(r=e[1],t=e[2]);let i;e[3]!==r?(i=d("flex items-center gap-2 text-sm 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",r),e[3]=r,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=l.jsx(m,{"data-slot":"label",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}export{v as I,w as L};
@@ -1 +1 @@
1
- import{c as x,j as l,u as h,L as u,C as p,a2 as g,aG as j,aH as N,aI as y,aF as w}from"./inertia-TViv6kNv.js";import{B as P}from"./app-wordmark-nbjkzxwQ.js";import{S}from"./separator-BwwTYtCF.js";function H(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h3",{className:"mb-0.5 text-base font-medium",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("header",{children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}function b(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("div",{className:"mb-8 space-y-0.5",children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}const v=[{title:"Profile",href:g(),icon:null},{title:"Email",href:j(),icon:null},{title:"Password",href:N(),icon:null},{title:"Sessions",href:y(),icon:null},{title:"Appearance",href:w(),icon:null}];function L(o){const e=x.c(11),{children:n}=o,{url:i}=h();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx(b,{title:"Settings",description:"Manage your profile and account settings"}),e[0]=t):t=e[0];let s;e[1]!==i?(s=v.map((r,d)=>l.jsx(P,{size:"sm",variant:"ghost",asChild:!0,className:p("w-full justify-start",{"bg-muted":i===r.href}),children:l.jsxs(u,{href:r.href,children:[r.icon&&l.jsx(r.icon,{className:"h-4 w-4"}),r.title]})},`${r.href}-${d}`)),e[1]=i,e[2]=s):s=e[2];let a;e[3]!==s?(a=l.jsx("aside",{className:"w-full max-w-xl lg:w-48",children:l.jsx("nav",{className:"flex flex-col space-y-1 space-x-0",children:s})}),e[3]=s,e[4]=a):a=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(S,{className:"my-6 md:hidden"}),e[5]=f):f=e[5];let c;e[6]!==n?(c=l.jsx("div",{className:"flex-1 md:max-w-2xl",children:l.jsx("section",{className:"max-w-xl space-y-12",children:n})}),e[6]=n,e[7]=c):c=e[7];let m;return e[8]!==a||e[9]!==c?(m=l.jsxs("div",{className:"px-4 py-6",children:[t,l.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12",children:[a,f,c]})]}),e[8]=a,e[9]=c,e[10]=m):m=e[10],m}export{H,L as S};
1
+ import{c as x,j as l,u as h,L as u,C as p,a2 as g,aG as j,aH as N,aI as y,aF as w}from"./inertia-CgBdJDaE.js";import{B as P}from"./app-wordmark-B-0yZiDb.js";import{S}from"./separator-BOp2LHw3.js";function H(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h3",{className:"mb-0.5 text-base font-medium",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("header",{children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}function b(o){const e=x.c(7),{title:n,description:i}=o;let t;e[0]!==n?(t=l.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:n}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i?(s=i&&l.jsx("p",{className:"text-muted-foreground text-sm",children:i}),e[2]=i,e[3]=s):s=e[3];let a;return e[4]!==t||e[5]!==s?(a=l.jsxs("div",{className:"mb-8 space-y-0.5",children:[t,s]}),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}const v=[{title:"Profile",href:g(),icon:null},{title:"Email",href:j(),icon:null},{title:"Password",href:N(),icon:null},{title:"Sessions",href:y(),icon:null},{title:"Appearance",href:w(),icon:null}];function L(o){const e=x.c(11),{children:n}=o,{url:i}=h();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx(b,{title:"Settings",description:"Manage your profile and account settings"}),e[0]=t):t=e[0];let s;e[1]!==i?(s=v.map((r,d)=>l.jsx(P,{size:"sm",variant:"ghost",asChild:!0,className:p("w-full justify-start",{"bg-muted":i===r.href}),children:l.jsxs(u,{href:r.href,children:[r.icon&&l.jsx(r.icon,{className:"h-4 w-4"}),r.title]})},`${r.href}-${d}`)),e[1]=i,e[2]=s):s=e[2];let a;e[3]!==s?(a=l.jsx("aside",{className:"w-full max-w-xl lg:w-48",children:l.jsx("nav",{className:"flex flex-col space-y-1 space-x-0",children:s})}),e[3]=s,e[4]=a):a=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(S,{className:"my-6 md:hidden"}),e[5]=f):f=e[5];let c;e[6]!==n?(c=l.jsx("div",{className:"flex-1 md:max-w-2xl",children:l.jsx("section",{className:"max-w-xl space-y-12",children:n})}),e[6]=n,e[7]=c):c=e[7];let m;return e[8]!==a||e[9]!==c?(m=l.jsxs("div",{className:"px-4 py-6",children:[t,l.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12",children:[a,f,c]})]}),e[8]=a,e[9]=c,e[10]=m):m=e[10],m}export{H,L as S};
@@ -1,4 +1,4 @@
1
- import{B as Un,r as f,a3 as Xn,j as P,W as Kt,c as z,C as Y,a5 as Yn}from"./inertia-TViv6kNv.js";import{P as V,d as Kn}from"./index-OqI59zPb.js";import{u as de,a as Gn,B as Zn}from"./app-wordmark-nbjkzxwQ.js";import{b as ce,a as re,P as pt,c as Gt,u as qn,d as Qn}from"./index-1ol1-QWI.js";const Jn=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ji=Un("bell",Jn);var er=Object.defineProperty,tr=(t,e)=>er(t,"name",{value:e,configurable:!0}),nr=Xn[" useId ".trim().toString()]||(()=>{}),rr=0;function _e(t){const[e,n]=f.useState(nr());return ce(()=>{t||n(r=>r??String(rr++))},[t]),t||(e?`radix-${e}`:"")}tr(_e,"useId");var or=Object.defineProperty,ir=(t,e)=>or(t,"name",{value:e,configurable:!0});function le(t){const e=f.useRef(t);return f.useEffect(()=>{e.current=t}),f.useMemo(()=>((...n)=>e.current?.(...n)),[])}ir(le,"useCallbackRef");var sr=Object.defineProperty,F=(t,e)=>sr(t,"name",{value:e,configurable:!0}),ot="dismissableLayer.update",ar="dismissableLayer.pointerDownOutside",cr="dismissableLayer.focusOutside",Tt,Zt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lr=f.forwardRef(F(function(e,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...m}=e,l=f.useContext(Zt),[d,g]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=f.useState({}),v=de(n,g),y=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=w?y.indexOf(w):-1,x=d?y.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,S=f.useRef(!1),R=Qt(O=>{s?.(O),c?.(O),O.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:l.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(O=>{if(!(O instanceof Node))return!1;const L=[...l.branches].some(_=>_.contains(O));return E&&!L},[l.branches,E])}),A=Jt(O=>{if(o&&S.current)return;const L=O.target;[...l.branches].some(j=>j.contains(L))||(a?.(O),c?.(O),O.defaultPrevented||u?.())},h),T=d?x===y.length-1:!1,N=le(O=>{O.key==="Escape"&&(i?.(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))});return f.useEffect(()=>{if(T)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,T,N]),f.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),it(),()=>{r&&(l.layersWithOutsidePointerEventsDisabled.delete(d),l.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Tt))}},[d,h,r,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),it())},[d,l]),f.useEffect(()=>{const O=F(()=>p({}),"handleUpdate");return document.addEventListener(ot,O),()=>document.removeEventListener(ot,O)},[]),P.jsx(V.div,{...m,ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,A.onFocusCapture),onBlurCapture:re(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function qt(){const t=f.useContext(Zt),[e,n]=f.useState(null);return f.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}F(qt,"useDismissableLayerSurface");var ur=F(()=>!0,"IS_TRUE");function Qt(t,e){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=ur}=e,a=le(t),c=f.useRef(!1),u=f.useRef(!1),m=f.useRef(new Map),l=f.useRef(()=>{});return f.useEffect(()=>{function d(){u.current=!1,o.current=!1,m.current.clear()}F(d,"resetOutsideInteraction");function g(){return Array.from(m.current.values()).some(Boolean)}F(g,"isOutsideInteractionIntercepted");function h(b){if(!u.current)return;const x=b.target;x instanceof Node&&[...i].some(E=>E.contains(x))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&l.current()},0)}F(h,"handleInteractionCapture");function p(b){u.current&&m.current.set(b.type,!1)}F(p,"handleInteractionBubble");const v=F(b=>{if(b.target&&!c.current){let x=function(){n.removeEventListener("click",l.current);const E=g();d(),E||mt(ar,a,C,{discrete:!0})};if(F(x,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",l.current),d(),c.current=!1;return}const C={originalEvent:b};u.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?x():(n.removeEventListener("click",l.current),l.current=x,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),d();c.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,h,!0),n.addEventListener(b,p);const w=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(w),n.removeEventListener("pointerdown",v),n.removeEventListener("click",l.current);for(const b of y)n.removeEventListener(b,h,!0),n.removeEventListener(b,p)}},[n,a,r,o,i,s]),{onPointerDownCapture:F(()=>c.current=!0,"onPointerDownCapture")}}F(Qt,"usePointerDownOutside");function Jt(t,e=globalThis?.document){const n=le(t),r=f.useRef(!1);return f.useEffect(()=>{const o=F(i=>{i.target&&!r.current&&mt(cr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:F(()=>r.current=!0,"onFocusCapture"),onBlurCapture:F(()=>r.current=!1,"onBlurCapture")}}F(Jt,"useFocusOutside");function it(){const t=new CustomEvent(ot);document.dispatchEvent(t)}F(it,"dispatchUpdate");function mt(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?Kn(o,i):o.dispatchEvent(i)}F(mt,"handleAndDispatchCustomEvent");var fr=Object.defineProperty,I=(t,e)=>fr(t,"name",{value:e,configurable:!0}),Ke="focusScope.autoFocusOnMount",Ge="focusScope.autoFocusOnUnmount",_t={bubbles:!1,cancelable:!0},dr=f.forwardRef(I(function(e,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[c,u]=f.useState(null),m=le(i),l=le(s),d=f.useRef(null),g=de(n,u),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let v=function(x){if(h.paused||!c)return;const C=x.target;c.contains(C)?d.current=C:q(d.current,{select:!0})},y=function(x){if(h.paused||!c)return;const C=x.relatedTarget;C!==null&&(c.contains(C)||q(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&q(c)};I(v,"handleFocusIn"),I(y,"handleFocusOut"),I(w,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",y);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),b.disconnect()}}},[o,c,h.paused]),f.useEffect(()=>{if(c){Lt.add(h);const v=document.activeElement;if(!c.contains(v)){const w=new CustomEvent(Ke,_t);c.addEventListener(Ke,m),c.dispatchEvent(w),w.defaultPrevented||(en(sn(ht(c)),{select:!0}),document.activeElement===v&&q(c))}return()=>{c.removeEventListener(Ke,m),setTimeout(()=>{const w=new CustomEvent(Ge,_t);c.addEventListener(Ge,l),c.dispatchEvent(w),w.defaultPrevented||q(v??document.body,{select:!0}),c.removeEventListener(Ge,l),Lt.remove(h)},0)}}},[c,m,l,h]);const p=f.useCallback(v=>{if(!r&&!o||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const b=v.currentTarget,[x,C]=tn(b);x&&C?!v.shiftKey&&w===C?(v.preventDefault(),r&&q(x,{select:!0})):v.shiftKey&&w===x&&(v.preventDefault(),r&&q(C,{select:!0})):w===b&&v.preventDefault()}},[r,o,h.paused]);return P.jsx(V.div,{tabIndex:-1,...a,ref:g,onKeyDown:p})},"FocusScope"));function en(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(q(r,{select:e}),document.activeElement!==n)return}I(en,"focusFirst");function tn(t){const e=ht(t),n=st(e,t),r=st(e.reverse(),t);return[n,r]}I(tn,"getTabbableEdges");function ht(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:I(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)e.push(n.currentNode);return e}I(ht,"getTabbableCandidates");function st(t,e){const n=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nn(r,{upTo:e})))return r}I(st,"findVisible");function nn(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}I(nn,"isHidden");function rn(t){return t instanceof HTMLInputElement&&"select"in t}I(rn,"isSelectableInput");function q(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&rn(t)&&e&&t.select()}}I(q,"focus");var Lt=on();function on(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=at(t,e),t.unshift(e)},remove(e){t=at(t,e),t[0]?.resume()}}}I(on,"createFocusScopesStack");function at(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}I(at,"arrayRemove");function sn(t){return t.filter(e=>e.tagName!=="A")}I(sn,"removeLinks");var pr=Object.defineProperty,mr=(t,e)=>pr(t,"name",{value:e,configurable:!0}),hr=f.forwardRef(mr(function(e,n){const{container:r,...o}=e,[i,s]=f.useState(!1);ce(()=>s(!0),[]);const a=r||i&&globalThis?.document?.body;return a?Kt.createPortal(P.jsx(V.div,{...o,ref:n}),a):null},"Portal")),gr=Object.defineProperty,gt=(t,e)=>gr(t,"name",{value:e,configurable:!0}),Se=0,pe=null;function vr(t){return vt(),t.children}gt(vr,"FocusGuards");function vt(){f.useEffect(()=>{pe||(pe={start:ct(),end:ct()});const{start:t,end:e}=pe;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),Se++,()=>{Se===1&&(pe?.start.remove(),pe?.end.remove(),pe=null),Se=Math.max(0,Se-1)}},[])}gt(vt,"useFocusGuards");function ct(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}gt(ct,"createFocusGuard");var X=function(){return X=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},X.apply(this,arguments)};function an(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function wr(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Le="right-scroll-bar-position",Ne="width-before-scroll-bar",yr="with-scroll-bars-hidden",br="--removed-body-scroll-bar-size";function Ze(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function xr(t,e){var n=f.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Cr=typeof window<"u"?f.useLayoutEffect:f.useEffect,Nt=new WeakMap;function Er(t,e){var n=xr(null,function(r){return t.forEach(function(o){return Ze(o,r)})});return Cr(function(){var r=Nt.get(n);if(r){var o=new Set(r),i=new Set(t),s=n.current;o.forEach(function(a){i.has(a)||Ze(a,null)}),i.forEach(function(a){o.has(a)||Ze(a,s)})}Nt.set(n,t)},[t]),n}function Pr(t){return t}function Sr(t,e){e===void 0&&(e=Pr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var s=e(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var m=s;s=[],m.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Or(t){t===void 0&&(t={});var e=Sr(null);return e.options=X({async:!0,ssr:!1},t),e}var cn=function(t){var e=t.sideCar,n=an(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,X({},n))};cn.isSideCarExport=!0;function Rr(t,e){return t.useMedium(e),cn}var ln=Or(),qe=function(){},$e=f.forwardRef(function(t,e){var n=f.useRef(null),r=f.useState({onScrollCapture:qe,onWheelCapture:qe,onTouchMoveCapture:qe}),o=r[0],i=r[1],s=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,m=t.enabled,l=t.shards,d=t.sideCar,g=t.noRelative,h=t.noIsolation,p=t.inert,v=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,b=t.gapMode,x=an(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,E=Er([n,e]),S=X(X({},x),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:ln,removeScrollBar:u,shards:l,noRelative:g,noIsolation:h,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?f.cloneElement(f.Children.only(a),X(X({},S),{ref:E})):f.createElement(w,X({},S,{className:c,ref:E}),a))});$e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$e.classNames={fullWidth:Ne,zeroRight:Le};var Dr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ar(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Dr();return e&&t.setAttribute("nonce",e),t}function Tr(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function _r(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Lr=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Ar())&&(Tr(e,n),_r(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Nr=function(){var t=Lr();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},un=function(){var t=Nr(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},kr={left:0,top:0,right:0,gap:0},Qe=function(t){return parseInt(t||"",10)||0},Mr=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Qe(n),Qe(r),Qe(o)]},Fr=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return kr;var e=Mr(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Ir=un(),ve="data-scroll-locked",jr=function(t,e,n,r){var o=t.left,i=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
1
+ import{B as Un,r as f,a3 as Xn,j as P,W as Kt,c as z,C as Y,a5 as Yn}from"./inertia-CgBdJDaE.js";import{P as V,d as Kn}from"./index-Dy7Wg880.js";import{u as de,a as Gn,B as Zn}from"./app-wordmark-B-0yZiDb.js";import{b as ce,a as re,P as pt,c as Gt,u as qn,d as Qn}from"./index-B2_QluAw.js";const Jn=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ji=Un("bell",Jn);var er=Object.defineProperty,tr=(t,e)=>er(t,"name",{value:e,configurable:!0}),nr=Xn[" useId ".trim().toString()]||(()=>{}),rr=0;function _e(t){const[e,n]=f.useState(nr());return ce(()=>{t||n(r=>r??String(rr++))},[t]),t||(e?`radix-${e}`:"")}tr(_e,"useId");var or=Object.defineProperty,ir=(t,e)=>or(t,"name",{value:e,configurable:!0});function le(t){const e=f.useRef(t);return f.useEffect(()=>{e.current=t}),f.useMemo(()=>((...n)=>e.current?.(...n)),[])}ir(le,"useCallbackRef");var sr=Object.defineProperty,F=(t,e)=>sr(t,"name",{value:e,configurable:!0}),ot="dismissableLayer.update",ar="dismissableLayer.pointerDownOutside",cr="dismissableLayer.focusOutside",Tt,Zt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lr=f.forwardRef(F(function(e,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...m}=e,l=f.useContext(Zt),[d,g]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=f.useState({}),v=de(n,g),y=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=w?y.indexOf(w):-1,x=d?y.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,S=f.useRef(!1),R=Qt(O=>{s?.(O),c?.(O),O.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:l.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(O=>{if(!(O instanceof Node))return!1;const L=[...l.branches].some(_=>_.contains(O));return E&&!L},[l.branches,E])}),A=Jt(O=>{if(o&&S.current)return;const L=O.target;[...l.branches].some(j=>j.contains(L))||(a?.(O),c?.(O),O.defaultPrevented||u?.())},h),T=d?x===y.length-1:!1,N=le(O=>{O.key==="Escape"&&(i?.(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))});return f.useEffect(()=>{if(T)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,T,N]),f.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),it(),()=>{r&&(l.layersWithOutsidePointerEventsDisabled.delete(d),l.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Tt))}},[d,h,r,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),it())},[d,l]),f.useEffect(()=>{const O=F(()=>p({}),"handleUpdate");return document.addEventListener(ot,O),()=>document.removeEventListener(ot,O)},[]),P.jsx(V.div,{...m,ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,A.onFocusCapture),onBlurCapture:re(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function qt(){const t=f.useContext(Zt),[e,n]=f.useState(null);return f.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}F(qt,"useDismissableLayerSurface");var ur=F(()=>!0,"IS_TRUE");function Qt(t,e){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=ur}=e,a=le(t),c=f.useRef(!1),u=f.useRef(!1),m=f.useRef(new Map),l=f.useRef(()=>{});return f.useEffect(()=>{function d(){u.current=!1,o.current=!1,m.current.clear()}F(d,"resetOutsideInteraction");function g(){return Array.from(m.current.values()).some(Boolean)}F(g,"isOutsideInteractionIntercepted");function h(b){if(!u.current)return;const x=b.target;x instanceof Node&&[...i].some(E=>E.contains(x))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&l.current()},0)}F(h,"handleInteractionCapture");function p(b){u.current&&m.current.set(b.type,!1)}F(p,"handleInteractionBubble");const v=F(b=>{if(b.target&&!c.current){let x=function(){n.removeEventListener("click",l.current);const E=g();d(),E||mt(ar,a,C,{discrete:!0})};if(F(x,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",l.current),d(),c.current=!1;return}const C={originalEvent:b};u.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?x():(n.removeEventListener("click",l.current),l.current=x,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),d();c.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,h,!0),n.addEventListener(b,p);const w=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(w),n.removeEventListener("pointerdown",v),n.removeEventListener("click",l.current);for(const b of y)n.removeEventListener(b,h,!0),n.removeEventListener(b,p)}},[n,a,r,o,i,s]),{onPointerDownCapture:F(()=>c.current=!0,"onPointerDownCapture")}}F(Qt,"usePointerDownOutside");function Jt(t,e=globalThis?.document){const n=le(t),r=f.useRef(!1);return f.useEffect(()=>{const o=F(i=>{i.target&&!r.current&&mt(cr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:F(()=>r.current=!0,"onFocusCapture"),onBlurCapture:F(()=>r.current=!1,"onBlurCapture")}}F(Jt,"useFocusOutside");function it(){const t=new CustomEvent(ot);document.dispatchEvent(t)}F(it,"dispatchUpdate");function mt(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?Kn(o,i):o.dispatchEvent(i)}F(mt,"handleAndDispatchCustomEvent");var fr=Object.defineProperty,I=(t,e)=>fr(t,"name",{value:e,configurable:!0}),Ke="focusScope.autoFocusOnMount",Ge="focusScope.autoFocusOnUnmount",_t={bubbles:!1,cancelable:!0},dr=f.forwardRef(I(function(e,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[c,u]=f.useState(null),m=le(i),l=le(s),d=f.useRef(null),g=de(n,u),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let v=function(x){if(h.paused||!c)return;const C=x.target;c.contains(C)?d.current=C:q(d.current,{select:!0})},y=function(x){if(h.paused||!c)return;const C=x.relatedTarget;C!==null&&(c.contains(C)||q(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&q(c)};I(v,"handleFocusIn"),I(y,"handleFocusOut"),I(w,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",y);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),b.disconnect()}}},[o,c,h.paused]),f.useEffect(()=>{if(c){Lt.add(h);const v=document.activeElement;if(!c.contains(v)){const w=new CustomEvent(Ke,_t);c.addEventListener(Ke,m),c.dispatchEvent(w),w.defaultPrevented||(en(sn(ht(c)),{select:!0}),document.activeElement===v&&q(c))}return()=>{c.removeEventListener(Ke,m),setTimeout(()=>{const w=new CustomEvent(Ge,_t);c.addEventListener(Ge,l),c.dispatchEvent(w),w.defaultPrevented||q(v??document.body,{select:!0}),c.removeEventListener(Ge,l),Lt.remove(h)},0)}}},[c,m,l,h]);const p=f.useCallback(v=>{if(!r&&!o||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const b=v.currentTarget,[x,C]=tn(b);x&&C?!v.shiftKey&&w===C?(v.preventDefault(),r&&q(x,{select:!0})):v.shiftKey&&w===x&&(v.preventDefault(),r&&q(C,{select:!0})):w===b&&v.preventDefault()}},[r,o,h.paused]);return P.jsx(V.div,{tabIndex:-1,...a,ref:g,onKeyDown:p})},"FocusScope"));function en(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(q(r,{select:e}),document.activeElement!==n)return}I(en,"focusFirst");function tn(t){const e=ht(t),n=st(e,t),r=st(e.reverse(),t);return[n,r]}I(tn,"getTabbableEdges");function ht(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:I(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)e.push(n.currentNode);return e}I(ht,"getTabbableCandidates");function st(t,e){const n=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nn(r,{upTo:e})))return r}I(st,"findVisible");function nn(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}I(nn,"isHidden");function rn(t){return t instanceof HTMLInputElement&&"select"in t}I(rn,"isSelectableInput");function q(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&rn(t)&&e&&t.select()}}I(q,"focus");var Lt=on();function on(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=at(t,e),t.unshift(e)},remove(e){t=at(t,e),t[0]?.resume()}}}I(on,"createFocusScopesStack");function at(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}I(at,"arrayRemove");function sn(t){return t.filter(e=>e.tagName!=="A")}I(sn,"removeLinks");var pr=Object.defineProperty,mr=(t,e)=>pr(t,"name",{value:e,configurable:!0}),hr=f.forwardRef(mr(function(e,n){const{container:r,...o}=e,[i,s]=f.useState(!1);ce(()=>s(!0),[]);const a=r||i&&globalThis?.document?.body;return a?Kt.createPortal(P.jsx(V.div,{...o,ref:n}),a):null},"Portal")),gr=Object.defineProperty,gt=(t,e)=>gr(t,"name",{value:e,configurable:!0}),Se=0,pe=null;function vr(t){return vt(),t.children}gt(vr,"FocusGuards");function vt(){f.useEffect(()=>{pe||(pe={start:ct(),end:ct()});const{start:t,end:e}=pe;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),Se++,()=>{Se===1&&(pe?.start.remove(),pe?.end.remove(),pe=null),Se=Math.max(0,Se-1)}},[])}gt(vt,"useFocusGuards");function ct(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}gt(ct,"createFocusGuard");var X=function(){return X=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},X.apply(this,arguments)};function an(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function wr(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Le="right-scroll-bar-position",Ne="width-before-scroll-bar",yr="with-scroll-bars-hidden",br="--removed-body-scroll-bar-size";function Ze(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function xr(t,e){var n=f.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Cr=typeof window<"u"?f.useLayoutEffect:f.useEffect,Nt=new WeakMap;function Er(t,e){var n=xr(null,function(r){return t.forEach(function(o){return Ze(o,r)})});return Cr(function(){var r=Nt.get(n);if(r){var o=new Set(r),i=new Set(t),s=n.current;o.forEach(function(a){i.has(a)||Ze(a,null)}),i.forEach(function(a){o.has(a)||Ze(a,s)})}Nt.set(n,t)},[t]),n}function Pr(t){return t}function Sr(t,e){e===void 0&&(e=Pr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var s=e(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var m=s;s=[],m.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Or(t){t===void 0&&(t={});var e=Sr(null);return e.options=X({async:!0,ssr:!1},t),e}var cn=function(t){var e=t.sideCar,n=an(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,X({},n))};cn.isSideCarExport=!0;function Rr(t,e){return t.useMedium(e),cn}var ln=Or(),qe=function(){},$e=f.forwardRef(function(t,e){var n=f.useRef(null),r=f.useState({onScrollCapture:qe,onWheelCapture:qe,onTouchMoveCapture:qe}),o=r[0],i=r[1],s=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,m=t.enabled,l=t.shards,d=t.sideCar,g=t.noRelative,h=t.noIsolation,p=t.inert,v=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,b=t.gapMode,x=an(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,E=Er([n,e]),S=X(X({},x),o);return f.createElement(f.Fragment,null,m&&f.createElement(C,{sideCar:ln,removeScrollBar:u,shards:l,noRelative:g,noIsolation:h,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?f.cloneElement(f.Children.only(a),X(X({},S),{ref:E})):f.createElement(w,X({},S,{className:c,ref:E}),a))});$e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$e.classNames={fullWidth:Ne,zeroRight:Le};var Dr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ar(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Dr();return e&&t.setAttribute("nonce",e),t}function Tr(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function _r(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Lr=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Ar())&&(Tr(e,n),_r(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Nr=function(){var t=Lr();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},un=function(){var t=Nr(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},kr={left:0,top:0,right:0,gap:0},Qe=function(t){return parseInt(t||"",10)||0},Mr=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Qe(n),Qe(r),Qe(o)]},Fr=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return kr;var e=Mr(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Ir=un(),ve="data-scroll-locked",jr=function(t,e,n,r){var o=t.left,i=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(yr,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(a,"px ").concat(r,`;
@@ -1 +1 @@
1
- import{c as u,j as e,L as m,N as f,O as j,P as p,x as g,Q as b,M as w}from"./inertia-TViv6kNv.js";import{A as v,B as x}from"./app-wordmark-nbjkzxwQ.js";function _(s){const t=u.c(9);let c,l,r,a,i,n,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx("polygon",{fill:"#FDC11A",points:"98.29 127.2 98.28 354.44 174.85 289.77 174.85 191.88 98.29 127.2"}),l=e.jsx("path",{fill:"currentColor",d:"M289.69,346.4c45.62-11.54,71.84-36.71,71.84-82.33v-45.1c0-67.65-55.58-91.77-145.26-91.77h-117.99v354.49c23.07,2.1,53.49,2.1,76.56,0v-127.43h38.28c29.89,40.9,54.54,86.53,73.94,127.43,22.55,2.1,57.68,2.1,80.23,0-20.45-43.52-46.15-92.29-77.61-135.3ZM204.97,276.38l-30.12,13.39v-97.9l28.53,12.68,81.6,36.27-80,35.56Z"}),r=e.jsx("path",{fill:"currentColor",d:"M641.3,363.7c-35.13,2.62-115.89,3.15-160.99.53v13.11c0,37.23,21.5,44.05,66.6,44.05,30.94,0,52.96-2.62,82.33-8.39,2.1,17.83,2.1,43,0,60.83-36.71,6.29-66.07,9.44-100.68,9.44-75.51,0-123.23-22.55-123.23-89.15v-104.88c0-69.74,50.34-90.19,120.08-90.19s115.89,29.36,115.89,104.35v60.3ZM567.89,300.25c0-35.66-20.45-39.85-43.52-39.85s-44.05,4.19-44.05,39.85v20.45l40.38-2.62h47.2v-17.83Z"}),a=e.jsx("path",{fill:"currentColor",d:"M936.53,404.08c0,58.21-38.8,79.18-89.67,79.18-43,0-74.46-11.01-84.43-44.05h-3.15l-4.72,38.81c-17.31,2.1-49.29,2.1-66.6,0V100.98c17.83-2.62,56.63-2.62,74.99,0v98.06l-3.67,44.57h3.15c9.96-33.03,41.43-44.57,84.43-44.57,50.86,0,89.67,20.98,89.67,79.18v125.85ZM861.54,311.79c0-43-18.88-48.77-45.62-48.77-32.51,0-43.52,7.87-52.97,37.23v81.28c9.44,29.37,20.45,37.23,52.97,37.23,26.74,0,45.62-5.77,45.62-48.24v-58.73Z"}),i=e.jsx("path",{fill:"currentColor",d:"M1159.39,439.21h-3.15c-9.44,33.04-41.43,44.05-84.95,44.05-50.87,0-88.62-19.93-88.62-77.61v-198.75c18.35-2.62,57.16-2.62,74.99,0v164.14c0,41.95,19.4,48.24,45.1,48.24,32.51,0,44.57-8.91,52.96-37.23v-175.15c18.35-2.62,57.16-2.62,74.99,0v271.64c-17.3,2.62-49.29,2.62-66.6,0l-4.72-39.33Z"}),n=e.jsx("path",{fill:"currentColor",d:"M1288.38,100.98c17.83-2.62,56.63-2.62,74.99,0v375.99c-18.35,2.62-57.16,2.62-74.99,0V100.98Z"}),o=e.jsx("path",{fill:"currentColor",d:"M1522.26,356.88l-26.22,3.67v116.41c-18.35,2.62-57.16,2.62-74.99,0V100.98c17.83-2.62,56.63-2.62,74.99,0v195.6l29.36-4.19,66.07-89.15c17.3-2.62,63.45-2.62,80.76,0l-88.1,120.09,91.77,153.65c-17.3,2.62-63.97,2.62-81.8,0l-71.84-120.09Z"}),t[0]=c,t[1]=l,t[2]=r,t[3]=a,t[4]=i,t[5]=n,t[6]=o):(c=t[0],l=t[1],r=t[2],a=t[3],i=t[4],n=t[5],o=t[6]);let h;return t[7]!==s?(h=e.jsxs("svg",{viewBox:"98 99 1578 385",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Rebulk",...s,children:[c,l,r,a,i,n,o]}),t[7]=s,t[8]=h):h=t[8],h}function M(){const s=u.c(10);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx("div",{className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto"})}),s[0]=t):t=s[0];let c,l;s[1]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx(m,{href:f(),className:"hover:text-foreground",children:"Docs"}),l=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[1]=c,s[2]=l):(c=s[1],l=s[2]);let r,a;s[3]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:j("legal","terms"),className:"hover:text-foreground",children:"Terms"}),a=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[3]=r,s[4]=a):(r=s[3],a=s[4]);let i,n;s[5]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(m,{href:j("legal","privacy"),className:"hover:text-foreground",children:"Privacy"}),n=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[5]=i,s[6]=n):(i=s[5],n=s[6]);let o,h;s[7]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs("span",{className:"flex items-baseline gap-1.5",children:["Built by",e.jsx("a",{href:"https://rebulk.com",className:"text-foreground/80 hover:text-foreground transition-colors",children:e.jsx(_,{className:"h-3 w-auto"})})]}),h=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[7]=o,s[8]=h):(o=s[7],h=s[8]);let d;return s[9]===Symbol.for("react.memo_cache_sentinel")?(d=e.jsxs("footer",{className:"mx-auto flex w-full max-w-5xl flex-col gap-3 border-t px-6 py-8 text-sm sm:flex-row sm:items-center sm:justify-between",children:[t,e.jsxs("p",{className:"text-muted-foreground flex flex-wrap items-center gap-x-2 gap-y-1",children:[c,l,r,a,i,n,o,h,"© ",new Date().getFullYear()]})]}),s[9]=d):d=s[9],d}function C(s){const t=u.c(4),{signedIn:c}=s;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=p(),t[0]=l):l=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:l,className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto sm:h-5"})}),t[1]=r):r=t[1];let a;return t[2]!==c?(a=e.jsxs("header",{className:"mx-auto flex w-full max-w-5xl items-center justify-between px-6 py-6",children:[r,c?e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:g(),children:"Dashboard"})})]}):e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:b(),children:"Sign in"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:w(),children:"Get started"})})]})]}),t[2]=c,t[3]=a):a=t[3],a}export{C as M,_ as R,M as a};
1
+ import{c as u,j as e,L as m,N as f,O as j,P as p,x as g,Q as b,M as w}from"./inertia-CgBdJDaE.js";import{A as v,B as x}from"./app-wordmark-B-0yZiDb.js";function _(s){const t=u.c(9);let c,l,r,a,i,n,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx("polygon",{fill:"#FDC11A",points:"98.29 127.2 98.28 354.44 174.85 289.77 174.85 191.88 98.29 127.2"}),l=e.jsx("path",{fill:"currentColor",d:"M289.69,346.4c45.62-11.54,71.84-36.71,71.84-82.33v-45.1c0-67.65-55.58-91.77-145.26-91.77h-117.99v354.49c23.07,2.1,53.49,2.1,76.56,0v-127.43h38.28c29.89,40.9,54.54,86.53,73.94,127.43,22.55,2.1,57.68,2.1,80.23,0-20.45-43.52-46.15-92.29-77.61-135.3ZM204.97,276.38l-30.12,13.39v-97.9l28.53,12.68,81.6,36.27-80,35.56Z"}),r=e.jsx("path",{fill:"currentColor",d:"M641.3,363.7c-35.13,2.62-115.89,3.15-160.99.53v13.11c0,37.23,21.5,44.05,66.6,44.05,30.94,0,52.96-2.62,82.33-8.39,2.1,17.83,2.1,43,0,60.83-36.71,6.29-66.07,9.44-100.68,9.44-75.51,0-123.23-22.55-123.23-89.15v-104.88c0-69.74,50.34-90.19,120.08-90.19s115.89,29.36,115.89,104.35v60.3ZM567.89,300.25c0-35.66-20.45-39.85-43.52-39.85s-44.05,4.19-44.05,39.85v20.45l40.38-2.62h47.2v-17.83Z"}),a=e.jsx("path",{fill:"currentColor",d:"M936.53,404.08c0,58.21-38.8,79.18-89.67,79.18-43,0-74.46-11.01-84.43-44.05h-3.15l-4.72,38.81c-17.31,2.1-49.29,2.1-66.6,0V100.98c17.83-2.62,56.63-2.62,74.99,0v98.06l-3.67,44.57h3.15c9.96-33.03,41.43-44.57,84.43-44.57,50.86,0,89.67,20.98,89.67,79.18v125.85ZM861.54,311.79c0-43-18.88-48.77-45.62-48.77-32.51,0-43.52,7.87-52.97,37.23v81.28c9.44,29.37,20.45,37.23,52.97,37.23,26.74,0,45.62-5.77,45.62-48.24v-58.73Z"}),i=e.jsx("path",{fill:"currentColor",d:"M1159.39,439.21h-3.15c-9.44,33.04-41.43,44.05-84.95,44.05-50.87,0-88.62-19.93-88.62-77.61v-198.75c18.35-2.62,57.16-2.62,74.99,0v164.14c0,41.95,19.4,48.24,45.1,48.24,32.51,0,44.57-8.91,52.96-37.23v-175.15c18.35-2.62,57.16-2.62,74.99,0v271.64c-17.3,2.62-49.29,2.62-66.6,0l-4.72-39.33Z"}),n=e.jsx("path",{fill:"currentColor",d:"M1288.38,100.98c17.83-2.62,56.63-2.62,74.99,0v375.99c-18.35,2.62-57.16,2.62-74.99,0V100.98Z"}),o=e.jsx("path",{fill:"currentColor",d:"M1522.26,356.88l-26.22,3.67v116.41c-18.35,2.62-57.16,2.62-74.99,0V100.98c17.83-2.62,56.63-2.62,74.99,0v195.6l29.36-4.19,66.07-89.15c17.3-2.62,63.45-2.62,80.76,0l-88.1,120.09,91.77,153.65c-17.3,2.62-63.97,2.62-81.8,0l-71.84-120.09Z"}),t[0]=c,t[1]=l,t[2]=r,t[3]=a,t[4]=i,t[5]=n,t[6]=o):(c=t[0],l=t[1],r=t[2],a=t[3],i=t[4],n=t[5],o=t[6]);let h;return t[7]!==s?(h=e.jsxs("svg",{viewBox:"98 99 1578 385",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Rebulk",...s,children:[c,l,r,a,i,n,o]}),t[7]=s,t[8]=h):h=t[8],h}function M(){const s=u.c(10);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx("div",{className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto"})}),s[0]=t):t=s[0];let c,l;s[1]===Symbol.for("react.memo_cache_sentinel")?(c=e.jsx(m,{href:f(),className:"hover:text-foreground",children:"Docs"}),l=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[1]=c,s[2]=l):(c=s[1],l=s[2]);let r,a;s[3]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:j("legal","terms"),className:"hover:text-foreground",children:"Terms"}),a=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[3]=r,s[4]=a):(r=s[3],a=s[4]);let i,n;s[5]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(m,{href:j("legal","privacy"),className:"hover:text-foreground",children:"Privacy"}),n=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[5]=i,s[6]=n):(i=s[5],n=s[6]);let o,h;s[7]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs("span",{className:"flex items-baseline gap-1.5",children:["Built by",e.jsx("a",{href:"https://rebulk.com",className:"text-foreground/80 hover:text-foreground transition-colors",children:e.jsx(_,{className:"h-3 w-auto"})})]}),h=e.jsx("span",{"aria-hidden":!0,children:"·"}),s[7]=o,s[8]=h):(o=s[7],h=s[8]);let d;return s[9]===Symbol.for("react.memo_cache_sentinel")?(d=e.jsxs("footer",{className:"mx-auto flex w-full max-w-5xl flex-col gap-3 border-t px-6 py-8 text-sm sm:flex-row sm:items-center sm:justify-between",children:[t,e.jsxs("p",{className:"text-muted-foreground flex flex-wrap items-center gap-x-2 gap-y-1",children:[c,l,r,a,i,n,o,h,"© ",new Date().getFullYear()]})]}),s[9]=d):d=s[9],d}function C(s){const t=u.c(4),{signedIn:c}=s;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=p(),t[0]=l):l=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(m,{href:l,className:"flex items-center text-white",children:e.jsx(v,{className:"h-4 w-auto sm:h-5"})}),t[1]=r):r=t[1];let a;return t[2]!==c?(a=e.jsxs("header",{className:"mx-auto flex w-full max-w-5xl items-center justify-between px-6 py-6",children:[r,c?e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:g(),children:"Dashboard"})})]}):e.jsxs("nav",{className:"flex items-center gap-2",children:[e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:f(),children:"Docs"})}),e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(m,{href:b(),children:"Sign in"})}),e.jsx(x,{asChild:!0,size:"sm",children:e.jsx(m,{href:w(),children:"Get started"})})]})]}),t[2]=c,t[3]=a):a=t[3],a}export{C as M,_ as R,M as a};
@@ -1 +1 @@
1
- import{c,n,j as e,F as m,a as i,H as l}from"./inertia-TViv6kNv.js";import{I as d}from"./input-error-LxImUkxv.js";import{B as u}from"./app-wordmark-nbjkzxwQ.js";import{C as p,a as h,b as x,c as f}from"./card-BX_3HXcJ.js";import{L as j,I as b}from"./label-COUKWqE_.js";import{A as C}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";function L(){const t=c.c(4);let a,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=[{title:"New account",href:n()}],r=e.jsx(l,{title:"Create your account"}),t[0]=a,t[1]=r):(a=t[0],r=t[1]);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(x,{children:e.jsx(f,{children:"Create your Railwatch account"})}),t[2]=s):s=t[2];let o;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(C,{breadcrumbs:a,children:[r,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(p,{children:[s,e.jsx(h,{children:e.jsx(m,{method:"post",action:i(),className:"space-y-4",children:_})})]})})]}),t[3]=o):o=t[3],o}function _(t){const{errors:a,processing:r}=t;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(j,{htmlFor:"name",children:"Organization name"}),e.jsx(b,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Rebulk"}),e.jsx(d,{messages:a.name})]}),e.jsx(u,{disabled:r,children:"Create account"})]})}export{L as default};
1
+ import{c,n,j as e,F as m,a as i,H as l}from"./inertia-CgBdJDaE.js";import{I as d}from"./input-error-DfpIawjl.js";import{B as u}from"./app-wordmark-B-0yZiDb.js";import{C as p,a as h,b as x,c as f}from"./card-C9j_ffR9.js";import{L as j,I as b}from"./label-BWgQzHCO.js";import{A as C}from"./app-layout-CdJ5Qjms.js";import"./index-Dy7Wg880.js";import"./live-dot-Bejk0a5o.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";function L(){const t=c.c(4);let a,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=[{title:"New account",href:n()}],r=e.jsx(l,{title:"Create your account"}),t[0]=a,t[1]=r):(a=t[0],r=t[1]);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(x,{children:e.jsx(f,{children:"Create your Railwatch account"})}),t[2]=s):s=t[2];let o;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(C,{breadcrumbs:a,children:[r,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(p,{children:[s,e.jsx(h,{children:e.jsx(m,{method:"post",action:i(),className:"space-y-4",children:_})})]})})]}),t[3]=o):o=t[3],o}function _(t){const{errors:a,processing:r}=t;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(j,{htmlFor:"name",children:"Organization name"}),e.jsx(b,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Rebulk"}),e.jsx(d,{messages:a.name})]}),e.jsx(u,{disabled:r,children:"Create account"})]})}export{L as default};
@@ -1 +1 @@
1
- import{c as x,u as h,Q as g,j as e,H as f,F as j,aD as w,M as b}from"./inertia-TViv6kNv.js";import{G as I}from"./google-sign-in-button-DsTSfmzY.js";import{I as m}from"./input-error-LxImUkxv.js";import{T as d}from"./text-link-DfsiaCcP.js";import{B as y}from"./app-wordmark-nbjkzxwQ.js";import{L as c,I as p}from"./label-COUKWqE_.js";import{A as L,S as N}from"./auth-layout-TCwPpS1K.js";import"./separator-BwwTYtCF.js";import"./index-OqI59zPb.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.js";function A(){const s=x.c(5),{google_oauth:i}=h().props;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(f,{title:"Log in"}),s[0]=t):t=s[0];let a,o;s[1]===Symbol.for("react.memo_cache_sentinel")?(a=g(),o=["password"],s[1]=a,s[2]=o):(a=s[1],o=s[2]);let r;return s[3]!==i?(r=e.jsxs(L,{title:"Log in to your account",description:"Enter your email and password below to log in",children:[t,e.jsx(j,{method:"post",action:a,resetOnSuccess:o,className:"flex flex-col gap-6",children:u=>{const{processing:l,errors:n}=u;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(c,{htmlFor:"email",children:"Email address"}),e.jsx(p,{id:"email",name:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",placeholder:"email@example.com"}),e.jsx(m,{messages:n.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(c,{htmlFor:"password",children:"Password"}),e.jsx(d,{href:w(),className:"ml-auto text-sm",tabIndex:5,children:"Forgot password?"})]}),e.jsx(p,{id:"password",type:"password",name:"password",required:!0,tabIndex:2,autoComplete:"current-password",placeholder:"Password"}),e.jsx(m,{messages:n.password})]}),e.jsxs(y,{type:"submit",className:"mt-4 w-full",tabIndex:4,disabled:l,children:[l&&e.jsx(N,{}),"Log in"]})]}),i&&e.jsx(I,{label:"Continue with Google"}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Don't have an account?"," ",e.jsx(d,{href:b(),tabIndex:5,children:"Sign up"})]})]})}})]}),s[3]=i,s[4]=r):r=s[4],r}export{A as default};
1
+ import{c as x,u as h,Q as g,j as e,H as f,F as j,aD as w,M as b}from"./inertia-CgBdJDaE.js";import{G as I}from"./google-sign-in-button-BzogBGeF.js";import{I as m}from"./input-error-DfpIawjl.js";import{T as d}from"./text-link-BY8FY-CJ.js";import{B as y}from"./app-wordmark-B-0yZiDb.js";import{L as c,I as p}from"./label-BWgQzHCO.js";import{A as L,S as N}from"./auth-layout-C3FKuUJz.js";import"./separator-BOp2LHw3.js";import"./index-Dy7Wg880.js";import"./copy-DaQMJWoT.js";import"./empty-state-CkPROZB0.js";function A(){const s=x.c(5),{google_oauth:i}=h().props;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(f,{title:"Log in"}),s[0]=t):t=s[0];let a,o;s[1]===Symbol.for("react.memo_cache_sentinel")?(a=g(),o=["password"],s[1]=a,s[2]=o):(a=s[1],o=s[2]);let r;return s[3]!==i?(r=e.jsxs(L,{title:"Log in to your account",description:"Enter your email and password below to log in",children:[t,e.jsx(j,{method:"post",action:a,resetOnSuccess:o,className:"flex flex-col gap-6",children:u=>{const{processing:l,errors:n}=u;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(c,{htmlFor:"email",children:"Email address"}),e.jsx(p,{id:"email",name:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",placeholder:"email@example.com"}),e.jsx(m,{messages:n.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(c,{htmlFor:"password",children:"Password"}),e.jsx(d,{href:w(),className:"ml-auto text-sm",tabIndex:5,children:"Forgot password?"})]}),e.jsx(p,{id:"password",type:"password",name:"password",required:!0,tabIndex:2,autoComplete:"current-password",placeholder:"Password"}),e.jsx(m,{messages:n.password})]}),e.jsxs(y,{type:"submit",className:"mt-4 w-full",tabIndex:4,disabled:l,children:[l&&e.jsx(N,{}),"Log in"]})]}),i&&e.jsx(I,{label:"Continue with Google"}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Don't have an account?"," ",e.jsx(d,{href:b(),tabIndex:5,children:"Sign up"})]})]})}})]}),s[3]=i,s[4]=r):r=s[4],r}export{A as default};
@@ -1 +1 @@
1
- import{c as u,g as x,j as t,D as h,H as j,F as g}from"./inertia-TViv6kNv.js";import{I as b}from"./input-error-LxImUkxv.js";import{B as v}from"./app-wordmark-nbjkzxwQ.js";import{b as _,c as C,a as N,C as w}from"./card-BX_3HXcJ.js";import{L as E,I as F}from"./label-COUKWqE_.js";import{A as y}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";function D(a){const e=u.c(21),f=a.application.name;let i;e[0]!==a.application.id?(i=x(a.application.id),e[0]=a.application.id,e[1]=i):i=e[1];let n;e[2]!==a.application.name||e[3]!==i?(n={title:f,href:i},e[2]=a.application.name,e[3]=i,e[4]=n):n=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={title:"New environment",href:"#"},e[5]=c):c=e[5];let s;e[6]!==n?(s=[n,c],e[6]=n,e[7]=s):s=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(j,{title:"Add environment"}),e[8]=d):d=e[8];let r;e[9]!==a.application.name?(r=t.jsx(_,{children:t.jsxs(C,{children:["Add environment to ",a.application.name]})}),e[9]=a.application.name,e[10]=r):r=e[10];let o;e[11]!==a.application.id?(o=h(a.application.id),e[11]=a.application.id,e[12]=o):o=e[12];let l;e[13]!==o?(l=t.jsx(N,{children:t.jsx(g,{method:"post",action:o,className:"space-y-4",children:A})}),e[13]=o,e[14]=l):l=e[14];let m;e[15]!==r||e[16]!==l?(m=t.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:t.jsxs(w,{children:[r,l]})}),e[15]=r,e[16]=l,e[17]=m):m=e[17];let p;return e[18]!==s||e[19]!==m?(p=t.jsxs(y,{breadcrumbs:s,children:[d,m]}),e[18]=s,e[19]=m,e[20]=p):p=e[20],p}function A(a){const{errors:e,processing:f}=a;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx(E,{htmlFor:"name",children:"Name"}),t.jsx(F,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"staging",pattern:"[a-z0-9_-]+"}),t.jsx(b,{messages:e.name}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Lowercase letters, numbers, dashes. Each environment gets its own token and database."})]}),t.jsx(v,{disabled:f,children:"Create environment"})]})}export{D as default};
1
+ import{c as u,g as x,j as t,D as h,H as j,F as g}from"./inertia-CgBdJDaE.js";import{I as b}from"./input-error-DfpIawjl.js";import{B as v}from"./app-wordmark-B-0yZiDb.js";import{b as _,c as C,a as N,C as w}from"./card-C9j_ffR9.js";import{L as E,I as F}from"./label-BWgQzHCO.js";import{A as y}from"./app-layout-CdJ5Qjms.js";import"./index-Dy7Wg880.js";import"./live-dot-Bejk0a5o.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";function D(a){const e=u.c(21),f=a.application.name;let i;e[0]!==a.application.id?(i=x(a.application.id),e[0]=a.application.id,e[1]=i):i=e[1];let n;e[2]!==a.application.name||e[3]!==i?(n={title:f,href:i},e[2]=a.application.name,e[3]=i,e[4]=n):n=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={title:"New environment",href:"#"},e[5]=c):c=e[5];let s;e[6]!==n?(s=[n,c],e[6]=n,e[7]=s):s=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(j,{title:"Add environment"}),e[8]=d):d=e[8];let r;e[9]!==a.application.name?(r=t.jsx(_,{children:t.jsxs(C,{children:["Add environment to ",a.application.name]})}),e[9]=a.application.name,e[10]=r):r=e[10];let o;e[11]!==a.application.id?(o=h(a.application.id),e[11]=a.application.id,e[12]=o):o=e[12];let l;e[13]!==o?(l=t.jsx(N,{children:t.jsx(g,{method:"post",action:o,className:"space-y-4",children:A})}),e[13]=o,e[14]=l):l=e[14];let m;e[15]!==r||e[16]!==l?(m=t.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:t.jsxs(w,{children:[r,l]})}),e[15]=r,e[16]=l,e[17]=m):m=e[17];let p;return e[18]!==s||e[19]!==m?(p=t.jsxs(y,{breadcrumbs:s,children:[d,m]}),e[18]=s,e[19]=m,e[20]=p):p=e[20],p}function A(a){const{errors:e,processing:f}=a;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx(E,{htmlFor:"name",children:"Name"}),t.jsx(F,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"staging",pattern:"[a-z0-9_-]+"}),t.jsx(b,{messages:e.name}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Lowercase letters, numbers, dashes. Each environment gets its own token and database."})]}),t.jsx(v,{disabled:f,children:"Create environment"})]})}export{D as default};
@@ -1 +1 @@
1
- import{c as i,j as e,F as l,R as m,Q as n,H as c}from"./inertia-TViv6kNv.js";import{I as d}from"./input-error-LxImUkxv.js";import{T as p}from"./text-link-DfsiaCcP.js";import{B as f}from"./app-wordmark-nbjkzxwQ.js";import{L as x,I as u}from"./label-COUKWqE_.js";import{A as h,S as j}from"./auth-layout-TCwPpS1K.js";import"./index-OqI59zPb.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.js";function N(){const s=i.c(4);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{title:"Forgot password"}),s[0]=t):t=s[0];let r;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(l,{method:"post",action:m(),children:g}),s[1]=r):r=s[1];let a;s[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx("span",{children:"Or, return to"}),s[2]=a):a=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(h,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[t,e.jsxs("div",{className:"space-y-6",children:[r,e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[a,e.jsx(p,{href:n(),children:"log in"})]})]})]}),s[3]=o):o=s[3],o}function g(s){const{processing:t,errors:r}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(x,{htmlFor:"email",children:"Email address"}),e.jsx(u,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),e.jsx(d,{messages:r.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(f,{className:"w-full",disabled:t,children:[t&&e.jsx(j,{}),"Email password reset link"]})})]})}export{N as default};
1
+ import{c as i,j as e,F as l,R as m,Q as n,H as c}from"./inertia-CgBdJDaE.js";import{I as d}from"./input-error-DfpIawjl.js";import{T as p}from"./text-link-BY8FY-CJ.js";import{B as f}from"./app-wordmark-B-0yZiDb.js";import{L as x,I as u}from"./label-BWgQzHCO.js";import{A as h,S as j}from"./auth-layout-C3FKuUJz.js";import"./index-Dy7Wg880.js";import"./copy-DaQMJWoT.js";import"./empty-state-CkPROZB0.js";function N(){const s=i.c(4);let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{title:"Forgot password"}),s[0]=t):t=s[0];let r;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(l,{method:"post",action:m(),children:g}),s[1]=r):r=s[1];let a;s[2]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx("span",{children:"Or, return to"}),s[2]=a):a=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(h,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[t,e.jsxs("div",{className:"space-y-6",children:[r,e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[a,e.jsx(p,{href:n(),children:"log in"})]})]})]}),s[3]=o):o=s[3],o}function g(s){const{processing:t,errors:r}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(x,{htmlFor:"email",children:"Email address"}),e.jsx(u,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),e.jsx(d,{messages:r.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(f,{className:"w-full",disabled:t,children:[t&&e.jsx(j,{}),"Email password reset link"]})})]})}export{N as default};
@@ -1 +1 @@
1
- import{c as y,u as b,M as v,j as e,H as N,F as _,O as f,Q as I}from"./inertia-TViv6kNv.js";import{G as C}from"./google-sign-in-button-DsTSfmzY.js";import{I as o}from"./input-error-LxImUkxv.js";import{T as h}from"./text-link-DfsiaCcP.js";import{B as P}from"./app-wordmark-nbjkzxwQ.js";import{C as F}from"./checkbox-D3aRSsBj.js";import{L as i,I as c}from"./label-COUKWqE_.js";import{S as k,A as S}from"./auth-layout-TCwPpS1K.js";import"./separator-BwwTYtCF.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./copy-DaQMJWoT.js";import"./empty-state-6j_0AaQQ.js";function Q(j){const s=y.c(10),{invitation:a}=j,{google_oauth:p}=b().props,x=a?`Join ${a.account}`:"Create an account",u=a?`${a.inviter} invited you. Pick a name and password to get started.`:"Enter your details below to create your account";let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(N,{title:"Register"}),s[0]=n):n=s[0];let l,m;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=v(),m=["password","password_confirmation"],s[1]=l,s[2]=m):(l=s[1],m=s[2]);let t;s[3]!==p||s[4]!==a?(t=e.jsx(_,{method:"post",action:l,resetOnSuccess:m,disableWhileProcessing:!0,className:"flex flex-col gap-6",children:w=>{const{processing:g,errors:r}=w;return e.jsxs(e.Fragment,{children:[a&&e.jsx("input",{type:"hidden",name:"invitation_token",value:a.token}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"name",children:"Name"}),e.jsx(c,{id:"name",type:"text",name:"name",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",disabled:g,placeholder:"Full name"}),e.jsx(o,{messages:r.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"email",children:"Email address"}),e.jsx(c,{id:"email",type:"email",name:"email",required:!0,tabIndex:2,autoComplete:"email",placeholder:"email@example.com",defaultValue:a?.email,readOnly:!!a}),e.jsx(o,{messages:r.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password",children:"Password"}),e.jsx(c,{id:"password",type:"password",name:"password",required:!0,tabIndex:3,autoComplete:"new-password",placeholder:"Password"}),e.jsx(o,{messages:r.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(c,{id:"password_confirmation",type:"password",name:"password_confirmation",required:!0,tabIndex:4,autoComplete:"new-password",placeholder:"Confirm password"}),e.jsx(o,{messages:r.password_confirmation})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(F,{id:"terms",name:"terms",required:!0,tabIndex:5,className:"mt-0.5"}),e.jsxs(i,{htmlFor:"terms",className:"text-muted-foreground text-sm leading-snug font-normal",children:["I agree to the"," ",e.jsx(h,{href:f("legal","terms"),target:"_blank",children:"Terms of Service"})," ","and"," ",e.jsx(h,{href:f("legal","privacy"),target:"_blank",children:"Privacy Policy"})]})]}),e.jsx(o,{messages:r.terms})]}),e.jsxs(P,{type:"submit",className:"mt-2 w-full",tabIndex:6,children:[g&&e.jsx(k,{}),"Create account"]})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx(C,{label:"Continue with Google"}),e.jsx("p",{className:"text-muted-foreground -mt-3 text-center text-xs",children:"Continuing with Google also accepts the Terms and Privacy Policy."})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Already have an account?"," ",e.jsx(h,{href:I(),tabIndex:7,children:"Log in"})]})]})}}),s[3]=p,s[4]=a,s[5]=t):t=s[5];let d;return s[6]!==x||s[7]!==u||s[8]!==t?(d=e.jsxs(S,{title:x,description:u,children:[n,t]}),s[6]=x,s[7]=u,s[8]=t,s[9]=d):d=s[9],d}export{Q as default};
1
+ import{c as y,u as b,M as v,j as e,H as N,F as _,O as f,Q as I}from"./inertia-CgBdJDaE.js";import{G as C}from"./google-sign-in-button-BzogBGeF.js";import{I as o}from"./input-error-DfpIawjl.js";import{T as h}from"./text-link-BY8FY-CJ.js";import{B as P}from"./app-wordmark-B-0yZiDb.js";import{C as F}from"./checkbox-BsBkRg5n.js";import{L as i,I as c}from"./label-BWgQzHCO.js";import{S as k,A as S}from"./auth-layout-C3FKuUJz.js";import"./separator-BOp2LHw3.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./copy-DaQMJWoT.js";import"./empty-state-CkPROZB0.js";function Q(j){const s=y.c(10),{invitation:a}=j,{google_oauth:p}=b().props,x=a?`Join ${a.account}`:"Create an account",u=a?`${a.inviter} invited you. Pick a name and password to get started.`:"Enter your details below to create your account";let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(N,{title:"Register"}),s[0]=n):n=s[0];let l,m;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=v(),m=["password","password_confirmation"],s[1]=l,s[2]=m):(l=s[1],m=s[2]);let t;s[3]!==p||s[4]!==a?(t=e.jsx(_,{method:"post",action:l,resetOnSuccess:m,disableWhileProcessing:!0,className:"flex flex-col gap-6",children:w=>{const{processing:g,errors:r}=w;return e.jsxs(e.Fragment,{children:[a&&e.jsx("input",{type:"hidden",name:"invitation_token",value:a.token}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"name",children:"Name"}),e.jsx(c,{id:"name",type:"text",name:"name",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",disabled:g,placeholder:"Full name"}),e.jsx(o,{messages:r.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"email",children:"Email address"}),e.jsx(c,{id:"email",type:"email",name:"email",required:!0,tabIndex:2,autoComplete:"email",placeholder:"email@example.com",defaultValue:a?.email,readOnly:!!a}),e.jsx(o,{messages:r.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password",children:"Password"}),e.jsx(c,{id:"password",type:"password",name:"password",required:!0,tabIndex:3,autoComplete:"new-password",placeholder:"Password"}),e.jsx(o,{messages:r.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(i,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(c,{id:"password_confirmation",type:"password",name:"password_confirmation",required:!0,tabIndex:4,autoComplete:"new-password",placeholder:"Confirm password"}),e.jsx(o,{messages:r.password_confirmation})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(F,{id:"terms",name:"terms",required:!0,tabIndex:5,className:"mt-0.5"}),e.jsxs(i,{htmlFor:"terms",className:"text-muted-foreground text-sm leading-snug font-normal",children:["I agree to the"," ",e.jsx(h,{href:f("legal","terms"),target:"_blank",children:"Terms of Service"})," ","and"," ",e.jsx(h,{href:f("legal","privacy"),target:"_blank",children:"Privacy Policy"})]})]}),e.jsx(o,{messages:r.terms})]}),e.jsxs(P,{type:"submit",className:"mt-2 w-full",tabIndex:6,children:[g&&e.jsx(k,{}),"Create account"]})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx(C,{label:"Continue with Google"}),e.jsx("p",{className:"text-muted-foreground -mt-3 text-center text-xs",children:"Continuing with Google also accepts the Terms and Privacy Policy."})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Already have an account?"," ",e.jsx(h,{href:I(),tabIndex:7,children:"Log in"})]})]})}}),s[3]=p,s[4]=a,s[5]=t):t=s[5];let d;return s[6]!==x||s[7]!==u||s[8]!==t?(d=e.jsxs(S,{title:x,description:u,children:[n,t]}),s[6]=x,s[7]=u,s[8]=t,s[9]=d):d=s[9],d}export{Q as default};
@@ -1 +1 @@
1
- import{c as m,h as c,j as e,F as d,k as p,H as h}from"./inertia-TViv6kNv.js";import{I as l}from"./input-error-LxImUkxv.js";import{B as u}from"./app-wordmark-nbjkzxwQ.js";import{C as x,a as f,b as j,c as _}from"./card-BX_3HXcJ.js";import{L as t,I as i}from"./label-COUKWqE_.js";import{A as g}from"./app-layout-yh-sPWgK.js";import"./index-OqI59zPb.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";function S(){const s=m.c(4);let r,a;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=[{title:"New application",href:c()}],a=e.jsx(h,{title:"Add application"}),s[0]=r,s[1]=a):(r=s[0],a=s[1]);let n;s[2]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(j,{children:e.jsx(_,{children:"Add an application"})}),s[2]=n):n=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(g,{breadcrumbs:r,children:[a,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(x,{children:[n,e.jsx(f,{children:e.jsx(d,{method:"post",action:p(),className:"space-y-4",children:b})})]})})]}),s[3]=o):o=s[3],o}function b(s){const{errors:r,processing:a}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"name",children:"Name"}),e.jsx(i,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Volume Tracker"}),e.jsx(l,{messages:r.name})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"issue_prefix",children:"Issue prefix"}),e.jsx(i,{id:"issue_prefix",name:"issue_prefix",placeholder:"VT",maxLength:8,className:"uppercase"}),e.jsx(l,{messages:r.issue_prefix}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Issues get ids like VT-171. Defaults from the name."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"repository_url",children:"Repository URL"}),e.jsx(i,{id:"repository_url",name:"repository_url",placeholder:"https://github.com/org/repo"}),e.jsx(l,{messages:r.repository_url})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"default_branch",children:"Default branch"}),e.jsx(i,{id:"default_branch",name:"default_branch",defaultValue:"main"}),e.jsx(l,{messages:r.default_branch}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Stack frames link into this repository at the deploy's git SHA when one was recorded, and at this branch otherwise."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"environment_name",children:"First environment"}),e.jsx(i,{id:"environment_name",name:"environment_name",defaultValue:"production"})]}),e.jsx(u,{disabled:a,children:"Create application"})]})}export{S as default};
1
+ import{c as m,h as c,j as e,F as d,k as p,H as h}from"./inertia-CgBdJDaE.js";import{I as l}from"./input-error-DfpIawjl.js";import{B as u}from"./app-wordmark-B-0yZiDb.js";import{C as x,a as f,b as j,c as _}from"./card-C9j_ffR9.js";import{L as t,I as i}from"./label-BWgQzHCO.js";import{A as g}from"./app-layout-CdJ5Qjms.js";import"./index-Dy7Wg880.js";import"./live-dot-Bejk0a5o.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";function S(){const s=m.c(4);let r,a;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=[{title:"New application",href:c()}],a=e.jsx(h,{title:"Add application"}),s[0]=r,s[1]=a):(r=s[0],a=s[1]);let n;s[2]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(j,{children:e.jsx(_,{children:"Add an application"})}),s[2]=n):n=s[2];let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsxs(g,{breadcrumbs:r,children:[a,e.jsx("div",{className:"mx-auto w-full max-w-md p-6",children:e.jsxs(x,{children:[n,e.jsx(f,{children:e.jsx(d,{method:"post",action:p(),className:"space-y-4",children:b})})]})})]}),s[3]=o):o=s[3],o}function b(s){const{errors:r,processing:a}=s;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"name",children:"Name"}),e.jsx(i,{id:"name",name:"name",required:!0,autoFocus:!0,placeholder:"Volume Tracker"}),e.jsx(l,{messages:r.name})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"issue_prefix",children:"Issue prefix"}),e.jsx(i,{id:"issue_prefix",name:"issue_prefix",placeholder:"VT",maxLength:8,className:"uppercase"}),e.jsx(l,{messages:r.issue_prefix}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Issues get ids like VT-171. Defaults from the name."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"repository_url",children:"Repository URL"}),e.jsx(i,{id:"repository_url",name:"repository_url",placeholder:"https://github.com/org/repo"}),e.jsx(l,{messages:r.repository_url})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"default_branch",children:"Default branch"}),e.jsx(i,{id:"default_branch",name:"default_branch",defaultValue:"main"}),e.jsx(l,{messages:r.default_branch}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Stack frames link into this repository at the deploy's git SHA when one was recorded, and at this branch otherwise."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"environment_name",children:"First environment"}),e.jsx(i,{id:"environment_name",name:"environment_name",defaultValue:"production"})]}),e.jsx(u,{disabled:a,children:"Create application"})]})}export{S as default};
@@ -1 +1 @@
1
- import{B as b,c as v,j as t,L as w,a2 as S,e as L}from"./inertia-TViv6kNv.js";import{C as j}from"./copy-block-BKFGd11J.js";import{L as A}from"./live-dot-ChfUtY3p.js";import{B as R}from"./app-wordmark-nbjkzxwQ.js";import{b as T,c as B,a as M,C as P}from"./card-BX_3HXcJ.js";const z=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],E=b("refresh-cw",z);function W(g){const e=v.c(22),{tokenPrefix:_,newToken:a,className:y}=g,C=a??`${_}…`,N=H;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(T,{children:t.jsx(B,{children:"Set up this environment"})}),e[0]=o):o=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("li",{children:["Add the gem",t.jsx(j,{code:'gem "railwatch"',className:"mt-1.5"})]}),e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("li",{children:["Run the generator",t.jsx(j,{code:"bin/rails generate railwatch:install",className:"mt-1.5"})]}),e[2]=m):m=e[2];const k=`RAILWATCH_TOKEN=${C}`;let s;e[3]!==k?(s=t.jsx(j,{code:k,className:"mt-1.5"}),e[3]=k,e[4]=s):s=e[4];let n;e[5]!==a?(n=!a&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Showing the token prefix only. The full token is shown once, right after an environment is created."}),e[5]=a,e[6]=n):n=e[6];let r;e[7]!==s||e[8]!==n?(r=t.jsxs("li",{children:["Set the token in the app's environment",s,n]}),e[7]=s,e[8]=n,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("li",{children:["Check every piece is wired up",t.jsx(j,{code:"bin/rails railwatch:doctor",className:"mt-1.5"}),t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Prints a ✓/✗ line per check — token, ingest, middleware, routes, deploy marker, browser client, test matchers — and exits non-zero if anything required is missing."})]}),e[10]=d):d=e[10];let h,f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs("li",{children:["Connect your AI assistant",t.jsxs("p",{className:"text-muted-foreground mt-1 text-xs",children:["Generate a personal token on your"," ",t.jsx(w,{href:S(),className:"underline underline-offset-4",children:"profile page"})," ","for paste-ready Claude Code, Cursor, VS Code, and Zed config."]})]}),h=t.jsx("li",{children:"Deploy"}),e[11]=h,e[12]=f):(h=e[11],f=e[12]);let i;e[13]!==r?(i=t.jsxs("ol",{className:"list-inside list-decimal space-y-3 text-sm",children:[c,m,r,d,f,h]}),e[13]=r,e[14]=i):i=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[t.jsx(A,{lastSeenAt:null}),"Waiting for first event…"]}),e[15]=x):x=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[x,t.jsxs(R,{type:"button",variant:"outline",size:"sm",onClick:N,children:[t.jsx(E,{className:"size-3.5"}),"Check now"]})]}),e[16]=p):p=e[16];let l;e[17]!==i?(l=t.jsxs(M,{className:"space-y-4",children:[i,p]}),e[17]=i,e[18]=l):l=e[18];let u;return e[19]!==y||e[20]!==l?(u=t.jsxs(P,{className:y,children:[o,l]}),e[19]=y,e[20]=l,e[21]=u):u=e[21],u}function H(){return L.reload()}export{W as O};
1
+ import{B as b,c as v,j as t,L as w,a2 as S,e as L}from"./inertia-CgBdJDaE.js";import{C as j}from"./copy-block-DtO_3esq.js";import{L as A}from"./live-dot-Bejk0a5o.js";import{B as R}from"./app-wordmark-B-0yZiDb.js";import{b as T,c as B,a as M,C as P}from"./card-C9j_ffR9.js";const z=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],E=b("refresh-cw",z);function W(g){const e=v.c(22),{tokenPrefix:_,newToken:a,className:y}=g,C=a??`${_}…`,N=H;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(T,{children:t.jsx(B,{children:"Set up this environment"})}),e[0]=o):o=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("li",{children:["Add the gem",t.jsx(j,{code:'gem "railwatch"',className:"mt-1.5"})]}),e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("li",{children:["Run the generator",t.jsx(j,{code:"bin/rails generate railwatch:install",className:"mt-1.5"})]}),e[2]=m):m=e[2];const k=`RAILWATCH_TOKEN=${C}`;let s;e[3]!==k?(s=t.jsx(j,{code:k,className:"mt-1.5"}),e[3]=k,e[4]=s):s=e[4];let n;e[5]!==a?(n=!a&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Showing the token prefix only. The full token is shown once, right after an environment is created."}),e[5]=a,e[6]=n):n=e[6];let r;e[7]!==s||e[8]!==n?(r=t.jsxs("li",{children:["Set the token in the app's environment",s,n]}),e[7]=s,e[8]=n,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("li",{children:["Check every piece is wired up",t.jsx(j,{code:"bin/rails railwatch:doctor",className:"mt-1.5"}),t.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Prints a ✓/✗ line per check — token, ingest, middleware, routes, deploy marker, browser client, test matchers — and exits non-zero if anything required is missing."})]}),e[10]=d):d=e[10];let h,f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs("li",{children:["Connect your AI assistant",t.jsxs("p",{className:"text-muted-foreground mt-1 text-xs",children:["Generate a personal token on your"," ",t.jsx(w,{href:S(),className:"underline underline-offset-4",children:"profile page"})," ","for paste-ready Claude Code, Cursor, VS Code, and Zed config."]})]}),h=t.jsx("li",{children:"Deploy"}),e[11]=h,e[12]=f):(h=e[11],f=e[12]);let i;e[13]!==r?(i=t.jsxs("ol",{className:"list-inside list-decimal space-y-3 text-sm",children:[c,m,r,d,f,h]}),e[13]=r,e[14]=i):i=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[t.jsx(A,{lastSeenAt:null}),"Waiting for first event…"]}),e[15]=x):x=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[x,t.jsxs(R,{type:"button",variant:"outline",size:"sm",onClick:N,children:[t.jsx(E,{className:"size-3.5"}),"Check now"]})]}),e[16]=p):p=e[16];let l;e[17]!==i?(l=t.jsxs(M,{className:"space-y-4",children:[i,p]}),e[17]=i,e[18]=l):l=e[18];let u;return e[19]!==y||e[20]!==l?(u=t.jsxs(P,{className:y,children:[o,l]}),e[19]=y,e[20]=l,e[21]=u):u=e[21],u}function H(){return L.reload()}export{W as O};
@@ -1 +1 @@
1
- import{c as g,j as h,az as E,L as w}from"./inertia-TViv6kNv.js";import{t as N}from"./tenant-path-G-6u9A-o.js";function v(l,e,o,i){const _=String(E(l,e,o,{...i})),[r,s]=_.split("?");return`${r.replace(/\./g,"%2E")}${s?`?${s}`:""}`}function y(l,e){if(l==="custom"){if(!e)throw new Error("Custom telemetry window requires a range");return{from:e.from,to:e.to}}return{window:l??"24h"}}function S(l){const e=g.c(30),{applicationId:o,environmentId:i,kind:_,person:r,range:s,tenant:a,user_ref:x,window:m}=l;if(_==="user"){if(!x){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=n):n=e[0],n}if(!r){let n;return e[1]!==x?(n=h.jsx("span",{className:"font-mono text-xs",children:x}),e[1]=x,e[2]=n):n=e[2],n}let t,d,p;if(e[3]!==o||e[4]!==i||e[5]!==r.ref||e[6]!==s||e[7]!==m){const n=y(m,s);t=w,d="font-mono text-xs hover:underline",p=v(o,i,r.ref,n),e[3]=o,e[4]=i,e[5]=r.ref,e[6]=s,e[7]=m,e[8]=t,e[9]=d,e[10]=p}else t=e[8],d=e[9],p=e[10];let P;return e[11]!==t||e[12]!==r.name||e[13]!==d||e[14]!==p?(P=h.jsx(t,{className:d,href:p,children:r.name}),e[11]=t,e[12]=r.name,e[13]=d,e[14]=p,e[15]=P):P=e[15],P}if(!a){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[16]=t):t=e[16],t}let f,c,u;if(e[17]!==o||e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==m){const t=y(m,s);f=w,c="font-mono text-xs hover:underline",u=N(o,i,a,t),e[17]=o,e[18]=i,e[19]=s,e[20]=a,e[21]=m,e[22]=f,e[23]=c,e[24]=u}else f=e[22],c=e[23],u=e[24];let j;return e[25]!==f||e[26]!==c||e[27]!==u||e[28]!==a?(j=h.jsx(f,{className:c,href:u,children:a}),e[25]=f,e[26]=c,e[27]=u,e[28]=a,e[29]=j):j=e[29],j}export{S as O};
1
+ import{c as g,j as h,az as E,L as w}from"./inertia-CgBdJDaE.js";import{t as N}from"./tenant-path-CQWzaNYR.js";function v(l,e,o,i){const _=String(E(l,e,o,{...i})),[r,s]=_.split("?");return`${r.replace(/\./g,"%2E")}${s?`?${s}`:""}`}function y(l,e){if(l==="custom"){if(!e)throw new Error("Custom telemetry window requires a range");return{from:e.from,to:e.to}}return{window:l??"24h"}}function S(l){const e=g.c(30),{applicationId:o,environmentId:i,kind:_,person:r,range:s,tenant:a,user_ref:x,window:m}=l;if(_==="user"){if(!x){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=n):n=e[0],n}if(!r){let n;return e[1]!==x?(n=h.jsx("span",{className:"font-mono text-xs",children:x}),e[1]=x,e[2]=n):n=e[2],n}let t,d,p;if(e[3]!==o||e[4]!==i||e[5]!==r.ref||e[6]!==s||e[7]!==m){const n=y(m,s);t=w,d="font-mono text-xs hover:underline",p=v(o,i,r.ref,n),e[3]=o,e[4]=i,e[5]=r.ref,e[6]=s,e[7]=m,e[8]=t,e[9]=d,e[10]=p}else t=e[8],d=e[9],p=e[10];let P;return e[11]!==t||e[12]!==r.name||e[13]!==d||e[14]!==p?(P=h.jsx(t,{className:d,href:p,children:r.name}),e[11]=t,e[12]=r.name,e[13]=d,e[14]=p,e[15]=P):P=e[15],P}if(!a){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[16]=t):t=e[16],t}let f,c,u;if(e[17]!==o||e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==m){const t=y(m,s);f=w,c="font-mono text-xs hover:underline",u=N(o,i,a,t),e[17]=o,e[18]=i,e[19]=s,e[20]=a,e[21]=m,e[22]=f,e[23]=c,e[24]=u}else f=e[22],c=e[23],u=e[24];let j;return e[25]!==f||e[26]!==c||e[27]!==u||e[28]!==a?(j=h.jsx(f,{className:c,href:u,children:a}),e[25]=f,e[26]=c,e[27]=u,e[28]=a,e[29]=j):j=e[29],j}export{S as O};
@@ -1 +1 @@
1
- import{e as i,c as l,j as o}from"./inertia-TViv6kNv.js";import{a,S as p}from"./segmented-h1VdDTqE.js";const u=["p50","p95","p99"];function m(){const s=new URL(globalThis.location.href).searchParams.get("pct");return{percentile:u.includes(s)?s:"p95",set:n=>{const r=new URL(globalThis.location.href);r.searchParams.set("pct",n),i.visit(r.toString(),{preserveScroll:!0,preserveState:!0})}}}const f=["p50","p95","p99"];function P(){const e=l.c(5),{percentile:s,set:c}=m();let t;e[0]!==s||e[1]!==c?(t=f.map(r=>o.jsx(a,{active:s===r,onClick:()=>c(r),children:r},r)),e[0]=s,e[1]=c,e[2]=t):t=e[2];let n;return e[3]!==t?(n=o.jsx(p,{children:t}),e[3]=t,e[4]=n):n=e[4],n}export{P,m as u};
1
+ import{e as i,c as l,j as o}from"./inertia-CgBdJDaE.js";import{a,S as p}from"./segmented-Dg8CES94.js";const u=["p50","p95","p99"];function m(){const s=new URL(globalThis.location.href).searchParams.get("pct");return{percentile:u.includes(s)?s:"p95",set:n=>{const r=new URL(globalThis.location.href);r.searchParams.set("pct",n),i.visit(r.toString(),{preserveScroll:!0,preserveState:!0})}}}const f=["p50","p95","p99"];function P(){const e=l.c(5),{percentile:s,set:c}=m();let t;e[0]!==s||e[1]!==c?(t=f.map(r=>o.jsx(a,{active:s===r,onClick:()=>c(r),children:r},r)),e[0]=s,e[1]=c,e[2]=t):t=e[2];let n;return e[3]!==t?(n=o.jsx(p,{children:t}),e[3]=t,e[4]=n):n=e[4],n}export{P,m as u};
@@ -1 +1 @@
1
- import{c as m,j as n}from"./inertia-TViv6kNv.js";import{t as c}from"./live-dot-ChfUtY3p.js";import{w as f,a as p}from"./format-B9SDkrWj.js";function R(a){const e=m.c(10),{iso:t,className:s}=a;if(c(),!t){let l;return e[0]!==s?(l=n.jsx("span",{className:s,children:"never"}),e[0]=s,e[1]=l):l=e[1],l}let i;e[2]!==t?(i=f(t),e[2]=t,e[3]=i):i=e[3];let r;e[4]!==t?(r=p(t),e[4]=t,e[5]=r):r=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==r?(o=n.jsx("span",{className:s,title:i,children:r}),e[6]=s,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}export{R};
1
+ import{c as m,j as n}from"./inertia-CgBdJDaE.js";import{t as c}from"./live-dot-Bejk0a5o.js";import{w as f,a as p}from"./format-B9SDkrWj.js";function R(a){const e=m.c(10),{iso:t,className:s}=a;if(c(),!t){let l;return e[0]!==s?(l=n.jsx("span",{className:s,children:"never"}),e[0]=s,e[1]=l):l=e[1],l}let i;e[2]!==t?(i=f(t),e[2]=t,e[3]=i):i=e[3];let r;e[4]!==t?(r=p(t),e[4]=t,e[5]=r):r=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==r?(o=n.jsx("span",{className:s,title:i,children:r}),e[6]=s,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}export{R};
@@ -0,0 +1 @@
1
+ import{c as D,j as x}from"./inertia-CgBdJDaE.js";import{S,a as H}from"./stat-Cd8QaTGw.js";import{c as F,m as T}from"./format-B9SDkrWj.js";import"./use-live-LwJStJvD.js";import"./arrow-up-DY1fS0tD.js";function R(r){return r===null?"default":r>=99.5?"success":r>=98?"warning":"destructive"}function E(r){return r===null?"–":`${r.toFixed(2)}%`}function w(r,e){if(!(r===null||e===null||e===void 0))return{current:r,previous:e,goodDirection:"up"}}function B(r){const e=D.c(43),{health:s,previous:C,deltaCaption:t}=r;let i;e[0]!==s.crash_free_sessions?(i=E(s.crash_free_sessions),e[0]=s.crash_free_sessions,e[1]=i):i=e[1];let l;e[2]!==s.crash_free_sessions?(l=R(s.crash_free_sessions),e[2]=s.crash_free_sessions,e[3]=l):l=e[3];const g=C?.crash_free_sessions;let n;e[4]!==s.crash_free_sessions||e[5]!==g?(n=w(s.crash_free_sessions,g),e[4]=s.crash_free_sessions,e[5]=g,e[6]=n):n=e[6];let o;e[7]!==s.errored?(o=s.errored===null?void 0:`${s.errored.toFixed(2)}% errored`,e[7]=s.errored,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==i||e[11]!==l||e[12]!==n||e[13]!==o?(a=x.jsx(S,{label:"Crash-free sessions",value:i,tone:l,delta:n,deltaCaption:t,hint:o}),e[9]=t,e[10]=i,e[11]=l,e[12]=n,e[13]=o,e[14]=a):a=e[14];let f;e[15]!==s.crash_free_users?(f=E(s.crash_free_users),e[15]=s.crash_free_users,e[16]=f):f=e[16];let _;e[17]!==s.crash_free_users?(_=R(s.crash_free_users),e[17]=s.crash_free_users,e[18]=_):_=e[18];const b=C?.crash_free_users;let u;e[19]!==s.crash_free_users||e[20]!==b?(u=w(s.crash_free_users,b),e[19]=s.crash_free_users,e[20]=b,e[21]=u):u=e[21];let c;e[22]!==t||e[23]!==u||e[24]!==f||e[25]!==_?(c=x.jsx(S,{label:"Crash-free users",value:f,tone:_,delta:u,deltaCaption:t}),e[22]=t,e[23]=u,e[24]=f,e[25]=_,e[26]=c):c=e[26];let h;e[27]!==s.sessions?(h=F(s.sessions),e[27]=s.sessions,e[28]=h):h=e[28];let v;e[29]!==s.users?(v=F(s.users),e[29]=s.users,e[30]=v):v=e[30];const $=`${v} users`;let d;e[31]!==h||e[32]!==$?(d=x.jsx(S,{label:"Sessions",value:h,hint:$}),e[31]=h,e[32]=$,e[33]=d):d=e[33];let m;e[34]!==s.avg_duration_ms?(m=T(s.avg_duration_ms),e[34]=s.avg_duration_ms,e[35]=m):m=e[35];let p;e[36]!==m?(p=x.jsx(S,{label:"Session duration",value:m,hint:"average"}),e[36]=m,e[37]=p):p=e[37];let j;return e[38]!==c||e[39]!==d||e[40]!==p||e[41]!==a?(j=x.jsxs(H,{children:[a,c,d,p]}),e[38]=c,e[39]=d,e[40]=p,e[41]=a,e[42]=j):j=e[42],j}export{B as ReleaseHealthStrip,R as crashFreeTone,E as rate};
@@ -0,0 +1 @@
1
+ import{c as G,u as J,ab as X,j as r,e as Y,t as Z}from"./inertia-CgBdJDaE.js";import{V as ee,D as te}from"./chart-panel-DKNxoauI.js";import{D as se}from"./data-table-Bc3ZRnpb.js";import{u as re,P as oe,E as ne}from"./env-layout-aGQgTZRg.js";import{S as D,a as ie}from"./stat-Cd8QaTGw.js";import{S as le}from"./status-badge-Ys4b0fcG.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-COEtj3PY.js";import"./chart-hover-B0SjyWFy.js";import"./chart-Cmh6JEww.js";import"./empty-state-CkPROZB0.js";import"./badge-DKvItdlb.js";import"./app-wordmark-B-0yZiDb.js";import"./app-layout-CdJ5Qjms.js";import"./live-dot-Bejk0a5o.js";import"./index-Dy7Wg880.js";import"./index-B2_QluAw.js";import"./checkbox-BsBkRg5n.js";import"./label-BWgQzHCO.js";import"./use-live-LwJStJvD.js";import"./segmented-Dg8CES94.js";import"./arrow-up-DY1fS0tD.js";function Ie(t){const e=G.c(72),{environment:Q,window:O}=J().props,{window:z,label:A}=re(),o=Q.application_id,n=Q.id,s=t.summary.current,i=t.summary.previous,l=z==="custom"?"vs previous period":`vs previous ${A}`,F=t.route;let a;e[0]!==o||e[1]!==n||e[2]!==O?(a=X(o,n,{window:O}),e[0]=o,e[1]=n,e[2]=O,e[3]=a):a=e[3];let u;e[4]!==a?(u={title:"Requests",href:a},e[4]=a,e[5]=u):u=e[5];let c;e[6]!==t.route?(c={title:t.route,href:"#"},e[6]=t.route,e[7]=c):c=e[7];let m;e[8]!==u||e[9]!==c?(m=[u,c],e[8]=u,e[9]=c,e[10]=m):m=e[10];let p;e[11]!==t.route?(p=r.jsx(oe,{title:r.jsx("span",{className:"font-mono",children:t.route})}),e[11]=t.route,e[12]=p):p=e[12];let d;e[13]!==s.count?(d=ae(s.count),e[13]=s.count,e[14]=d):d=e[14];let f;e[15]!==d?(f=r.jsx(D,{label:"Requests",value:d}),e[15]=d,e[16]=f):f=e[16];let x;e[17]!==s.count||e[18]!==s.errors?(x=ue(s.errors,s.count),e[17]=s.count,e[18]=s.errors,e[19]=x):x=e[19];const L=s.errors?"destructive":"success",W=`${s.errors} 5xx · ${s.client_errors} 4xx`,C=s.count?s.errors/s.count*100:0,T=i.count?i.errors/i.count*100:0;let h;e[20]!==C||e[21]!==T?(h={current:C,previous:T,goodDirection:"down"},e[20]=C,e[21]=T,e[22]=h):h=e[22];let v;e[23]!==l||e[24]!==W||e[25]!==h||e[26]!==x||e[27]!==L?(v=r.jsx(D,{label:"Errors",value:x,tone:L,hint:W,delta:h,deltaCaption:l}),e[23]=l,e[24]=W,e[25]=h,e[26]=x,e[27]=L,e[28]=v):v=e[28];const V=s.p50/1e3;let j;e[29]!==V?(j=N(V),e[29]=V,e[30]=j):j=e[30];let y;e[31]!==j?(y=r.jsx(D,{label:"p50",value:j}),e[31]=j,e[32]=y):y=e[32];const B=s.p95/1e3;let _;e[33]!==B?(_=N(B),e[33]=B,e[34]=_):_=e[34];let b;e[35]!==i.p95||e[36]!==s.p95?(b={current:s.p95,previous:i.p95,goodDirection:"down"},e[35]=i.p95,e[36]=s.p95,e[37]=b):b=e[37];let w;e[38]!==l||e[39]!==_||e[40]!==b?(w=r.jsx(D,{label:"p95",value:_,delta:b,deltaCaption:l}),e[38]=l,e[39]=_,e[40]=b,e[41]=w):w=e[41];const H=s.p99/1e3;let g;e[42]!==H?(g=N(H),e[42]=H,e[43]=g):g=e[43];const I=s.max/1e3;let P;e[44]!==I?(P=N(I),e[44]=I,e[45]=P):P=e[45];const K=`max ${P}`;let q;e[46]!==g||e[47]!==K?(q=r.jsx(D,{label:"p99 / max",value:g,hint:K}),e[46]=g,e[47]=K,e[48]=q):q=e[48];let k;e[49]!==v||e[50]!==y||e[51]!==w||e[52]!==q||e[53]!==f?(k=r.jsxs(ie,{children:[f,v,y,w,q]}),e[49]=v,e[50]=y,e[51]=w,e[52]=q,e[53]=f,e[54]=k):k=e[54];let R;e[55]!==t.deploys||e[56]!==t.series?(R=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r.jsx(ee,{label:"Requests",data:t.series,deploys:t.deploys}),r.jsx(te,{label:"Latency",data:t.series,deploys:t.deploys})]}),e[55]=t.deploys,e[56]=t.series,e[57]=R):R=e[57];let E;e[58]!==o||e[59]!==n?(E=U=>U.execution_id&&Y.visit(Z(o,n,U.execution_id)),e[58]=o,e[59]=n,e[60]=E):E=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=[{key:"when",header:"When",cell:je},{key:"status",header:"Status",cell:ve},{key:"dur",header:"Duration",align:"right",cell:he},{key:"q",hideOnMobile:!0,header:"Queries",align:"right",cell:xe},{key:"user",hideOnMobile:!0,header:"User",cell:fe},{key:"tenant",hideOnMobile:!0,header:"Tenant",cell:de},{key:"comp",hideOnMobile:!0,header:"Inertia",cell:pe},{key:"ex",header:"Exception",cell:me}],e[61]=$):$=e[61];let S;e[62]!==t.requests||e[63]!==E?(S=r.jsx(se,{rows:t.requests,rowKey:ye,onRowClick:E,columns:$}),e[62]=t.requests,e[63]=E,e[64]=S):S=e[64];let M;return e[65]!==t.route||e[66]!==k||e[67]!==R||e[68]!==S||e[69]!==m||e[70]!==p?(M=r.jsxs(ne,{title:F,crumbs:m,children:[p,k,R,S]}),e[65]=t.route,e[66]=k,e[67]=R,e[68]=S,e[69]=m,e[70]=p,e[71]=M):M=e[71],M}function me(t){return r.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function pe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.inertia_component??""})}function de(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??"–"})}function fe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function xe(t){return t.queries??"–"}function he(t){return N(t.duration)}function ve(t){return r.jsx(le,{status:t.status})}function je(t){return r.jsx("span",{className:"text-xs tabular-nums",children:ce(t.occurred_at)})}function ye(t){return t.execution_id}export{Ie as default};
@@ -1 +1 @@
1
- import{c as f,C as x,j as b}from"./inertia-TViv6kNv.js";function y(i){const e=f.c(5),{children:r,className:n}=i;let t;e[0]!==n?(t=x("bg-card flex h-8 shrink-0 items-center gap-px rounded-lg border p-0.5",n),e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==r||e[3]!==t?(o=b.jsx("div",{className:t,children:r}),e[2]=r,e[3]=t,e[4]=o):o=e[4],o}function j(i){const e=f.c(12),{active:r,onClick:n,children:t,className:o,mono:u,disabled:a,"aria-label":l}=i,d=(u===void 0?!0:u)&&"font-mono uppercase",m=r?"bg-primary border-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground border-transparent",p=a&&"cursor-not-allowed opacity-50";let s;e[0]!==o||e[1]!==d||e[2]!==m||e[3]!==p?(s=x("flex h-full min-w-8 items-center justify-center gap-1.5 rounded-md border px-2.5 text-xs whitespace-nowrap transition-colors",d,m,p,o),e[0]=o,e[1]=d,e[2]=m,e[3]=p,e[4]=s):s=e[4];let c;return e[5]!==r||e[6]!==l||e[7]!==t||e[8]!==a||e[9]!==n||e[10]!==s?(c=b.jsx("button",{type:"button",onClick:n,disabled:a,"aria-pressed":r,"aria-label":l,className:s,children:t}),e[5]=r,e[6]=l,e[7]=t,e[8]=a,e[9]=n,e[10]=s,e[11]=c):c=e[11],c}export{y as S,j as a};
1
+ import{c as f,C as x,j as b}from"./inertia-CgBdJDaE.js";function y(i){const e=f.c(5),{children:r,className:n}=i;let t;e[0]!==n?(t=x("bg-card flex h-8 shrink-0 items-center gap-px rounded-lg border p-0.5",n),e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==r||e[3]!==t?(o=b.jsx("div",{className:t,children:r}),e[2]=r,e[3]=t,e[4]=o):o=e[4],o}function j(i){const e=f.c(12),{active:r,onClick:n,children:t,className:o,mono:u,disabled:a,"aria-label":l}=i,d=(u===void 0?!0:u)&&"font-mono uppercase",m=r?"bg-primary border-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground border-transparent",p=a&&"cursor-not-allowed opacity-50";let s;e[0]!==o||e[1]!==d||e[2]!==m||e[3]!==p?(s=x("flex h-full min-w-8 items-center justify-center gap-1.5 rounded-md border px-2.5 text-xs whitespace-nowrap transition-colors",d,m,p,o),e[0]=o,e[1]=d,e[2]=m,e[3]=p,e[4]=s):s=e[4];let c;return e[5]!==r||e[6]!==l||e[7]!==t||e[8]!==a||e[9]!==n||e[10]!==s?(c=b.jsx("button",{type:"button",onClick:n,disabled:a,"aria-pressed":r,"aria-label":l,className:s,children:t}),e[5]=r,e[6]=l,e[7]=t,e[8]=a,e[9]=n,e[10]=s,e[11]=c):c=e[11],c}export{y as S,j as a};
@@ -1 +1 @@
1
- import{B as ze,r as a,j as u,W as Me,c as ne,C as ae}from"./inertia-TViv6kNv.js";import{c as We,a as E,b as q,P as Ke,u as _e,C as $e}from"./index-1ol1-QWI.js";import{V as Ge,o as Ye,u as qe,C as Oe}from"./app-layout-yh-sPWgK.js";import{u as H,a as Xe}from"./app-wordmark-nbjkzxwQ.js";import{d as De,A as Ze,P as Je,h as Qe,f as et,g as tt,F as ot,e as nt,C as rt,i as ye,u as ke,R as st}from"./live-dot-ChfUtY3p.js";import{P as F}from"./index-OqI59zPb.js";const lt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ct=ze("chevron-up",lt);var it=Object.defineProperty,at=(l,e)=>it(l,"name",{value:e,configurable:!0});function Ae(l){const e=a.useRef({value:l,previous:l});return a.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}at(Ae,"usePrevious");var dt=Object.defineProperty,ut=(l,e)=>dt(l,"name",{value:e,configurable:!0});function we(l,[e,o]){return Math.min(o,Math.max(e,l))}ut(we,"clamp");var pt=Object.defineProperty,S=(l,e)=>pt(l,"name",{value:e,configurable:!0}),ft=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],de="Select",[he,ve,ht]=Ye(de),[re,eo]=We(de,[ht,De]),Ie=De(),[vt,X]=re(de),[gt,St]=re(de);function Be(l){const{__scopeSelect:e,children:o,open:t,defaultOpen:r,onOpenChange:n,value:d,defaultValue:s,onValueChange:c,dir:i,name:m,autoComplete:x,disabled:y,required:C,form:w,internal_do_not_use_render:I}=l,p=Ie(e),[g,b]=a.useState(null),[v,f]=a.useState(null),[O,j]=a.useState(!1),Z=qe(i),[D,A]=_e({prop:t,defaultProp:r??!1,onChange:n,caller:de}),[J,K]=_e({prop:d,defaultProp:s,onChange:c,caller:de}),U=a.useRef(null),z=a.useRef(J);a.useEffect(()=>{const N=w?g?.ownerDocument.getElementById(w):g?.form;if(N instanceof HTMLFormElement){const V=S(()=>K(z.current),"reset");return N.addEventListener("reset",V),()=>N.removeEventListener("reset",V)}},[w,g,K]);const Q=g?!!w||!!g.closest("form"):!0,[W,B]=a.useState(new Set),$=ke(),G=Array.from(W).map(N=>N.props.value).join(";"),Y=a.useCallback(N=>{B(V=>new Set(V).add(N))},[]),L=a.useCallback(N=>{B(V=>{const ce=new Set(V);return ce.delete(N),ce})},[]),le={required:C,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:f,valueNodeHasChildren:O,onValueNodeHasChildrenChange:j,contentId:$,value:J,onValueChange:K,open:D,onOpenChange:A,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:m,autoComplete:x,form:w,nativeOptions:W,nativeSelectKey:G,isFormControl:Q};return u.jsx(st,{...p,children:u.jsx(vt,{scope:e,...le,children:u.jsx(he.Provider,{scope:e,children:u.jsx(gt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:L,children:Fe(I)?I(le):o})})})})}S(Be,"SelectProvider");var xt=S(l=>{const{__scopeSelect:e,children:o,...t}=l;return u.jsx(Be,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(Kt,{__scopeSelect:e}):null]})})},"Select"),wt="SelectTrigger",Ct=a.forwardRef(S(function(e,o){const{__scopeSelect:t,disabled:r=!1,...n}=e,d=Ie(t),s=X(wt,t),c=s.disabled||r,i=H(o,s.onTriggerChange),m=ve(t),x=a.useRef("touch"),[y,C,w]=Pe(p=>{const g=m().filter(f=>!f.disabled),b=g.find(f=>f.value===s.value),v=Te(g,p,b);v!==void 0&&s.onValueChange(v.value)}),I=S(p=>{c||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return u.jsx(Ze,{asChild:!0,...d,children:u.jsx(F.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":pe(s.value)?"":void 0,...n,ref:i,onClick:E(n.onClick,p=>{p.currentTarget.focus(),x.current!=="mouse"&&I(p)}),onPointerDown:E(n.onPointerDown,p=>{x.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(I(p),p.preventDefault())}),onKeyDown:E(n.onKeyDown,p=>{const g=y.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&C(p.key),!(g&&p.key===" ")&&ft.includes(p.key)&&(I(),p.preventDefault())})})})},"SelectTrigger")),yt="SelectValue",It=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,children:d,placeholder:s="",...c}=e,i=X(yt,t),{onValueNodeHasChildrenChange:m}=i,x=d!==void 0,y=H(o,i.onValueNodeChange);q(()=>{m(x)},[m,x]);const C=pe(i.value);return u.jsx(F.span,{...c,asChild:C?!1:c.asChild,ref:y,style:{pointerEvents:"none"},children:u.jsx(a.Fragment,{children:C?s:d},C?"placeholder":"value")})},"SelectValue")),bt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,...n}=e;return u.jsx(F.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})},"SelectIcon")),Pt="SelectPortal",[Tt,_t]=re(Pt,{forceMount:void 0}),Rt=S(l=>{const{__scopeSelect:e,forceMount:o,...t}=l;return u.jsx(Tt,{scope:l.__scopeSelect,forceMount:o,children:u.jsx(Je,{asChild:!0,...t})})},"SelectPortal"),oe="SelectContent",Et=a.forwardRef(S(function(e,o){const t=_t(oe,e.__scopeSelect),{forceMount:r=t.forceMount,...n}=e,d=X(oe,e.__scopeSelect),[s,c]=a.useState();return q(()=>{c(new DocumentFragment)},[]),u.jsx(Ke,{present:r||d.open,children:({present:i})=>i?u.jsx(Mt,{...n,ref:o}):u.jsx(jt,{...n,fragment:s})})},"SelectContent")),jt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,fragment:n}=e;return n?Me.createPortal(u.jsx(Le,{scope:t,children:u.jsx(he.Slot,{scope:t,children:u.jsx("div",{ref:o,children:r})})}),n):null},"SelectContentFragment")),k=10,[Le,se]=re(oe),Nt=Xe("SelectContent.RemoveScroll"),Mt=a.forwardRef(S(function(e,o){const{__scopeSelect:t}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:d,onPointerDownOutside:s,side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g,...b}=e,v=X(oe,t),[f,O]=a.useState(null),[j,Z]=a.useState(null),D=H(o,O),[A,J]=a.useState(null),[K,U]=a.useState(null),z=ve(t),[Q,W]=a.useState(!1),B=a.useRef(!1);a.useEffect(()=>{if(f)return Qe(f)},[f]),et();const $=a.useCallback(h=>{const[_,...M]=z().map(R=>R.ref.current),[P]=M.slice(-1),T=document.activeElement;for(const R of h)if(R===T||(R?.scrollIntoView({block:"nearest"}),R===_&&j&&(j.scrollTop=0),R===P&&j&&(j.scrollTop=j.scrollHeight),R?.focus(),document.activeElement!==T))return},[z,j]),G=a.useCallback(()=>$([A,f]),[$,A,f]);a.useEffect(()=>{Q&&G()},[Q,G]);const{onOpenChange:Y,triggerPointerDownPosRef:L}=v;a.useEffect(()=>{if(f){let h={x:0,y:0};const _=S(P=>{h={x:Math.abs(Math.round(P.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(P.pageY)-(L.current?.y??0))}},"handlePointerMove"),M=S(P=>{h.x<=10&&h.y<=10?P.preventDefault():P.composedPath().includes(f)||Y(!1),document.removeEventListener("pointermove",_),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",M,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",M,{capture:!0})}}},[f,Y,L]),a.useEffect(()=>{const h=S(()=>Y(!1),"close");return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[Y]);const[le,N]=Pe(h=>{const _=z().filter(T=>!T.disabled),M=_.find(T=>T.ref.current===document.activeElement),P=Te(_,h,M);P&&setTimeout(()=>P.ref.current?.focus())}),V=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&(J(h),P&&(B.current=!0))},[v.value]),ce=a.useCallback(()=>f?.focus(),[f]),ie=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&U(h)},[v.value]),fe=r==="popper"?Re:Ot,ue=fe===Re?{side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g}:{};return u.jsx(Le,{scope:t,content:f,viewport:j,onViewportChange:Z,itemRefCallback:V,selectedItem:A,onItemLeave:ce,itemTextRefCallback:ie,focusSelectedItem:G,selectedItemText:K,position:r,isPositioned:Q,searchRef:le,children:u.jsx(tt,{as:Nt,allowPinchZoom:!0,children:u.jsx(ot,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:E(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:u.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...b,...ue,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:E(b.onKeyDown,h=>{const _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&N(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let P=z().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(h.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const T=h.target,R=P.indexOf(T);P=P.slice(R+1)}setTimeout(()=>$(P)),h.preventDefault()}})})})})})})},"SelectContentImpl")),Ot=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onPlaced:r,...n}=e,d=X(oe,t),s=se(oe,t),[c,i]=a.useState(null),[m,x]=a.useState(null),y=H(o,x),C=ve(t),w=a.useRef(!1),I=a.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=s,f=a.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&m&&p&&g&&b){const D=d.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),J=d.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(d.dir!=="rtl"){const T=K.left-A.left,R=J.left-T,ee=D.left-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.left=xe+"px"}else{const T=A.right-K.right,R=window.innerWidth-J.right-T,ee=window.innerWidth-D.right-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.right=xe+"px"}const U=C(),z=window.innerHeight-k*2,Q=p.scrollHeight,W=window.getComputedStyle(m),B=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),L=B+$+Q+Y+G,le=Math.min(g.offsetHeight*5,L),N=window.getComputedStyle(p),V=parseInt(N.paddingTop,10),ce=parseInt(N.paddingBottom,10),ie=D.top+D.height/2-k,fe=z-ie,ue=g.offsetHeight/2,h=g.offsetTop+ue,_=B+$+h,M=L-_;if(_<=ie){const T=U.length>0&&g===U[U.length-1].ref.current;c.style.bottom="0px";const R=m.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(fe,ue+(T?ce:0)+R+G),te=_+ee;c.style.height=te+"px"}else{const T=U.length>0&&g===U[0].ref.current;c.style.top="0px";const ee=Math.max(ie,B+p.offsetTop+(T?V:0)+ue)+M;c.style.height=ee+"px",p.scrollTop=_-ie+p.offsetTop}c.style.margin=`${k}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[C,d.trigger,d.valueNode,c,m,p,g,b,d.dir,r]);q(()=>f(),[f]);const[O,j]=a.useState();q(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const Z=a.useCallback(D=>{D&&I.current===!0&&(f(),v?.(),I.current=!1)},[f,v]);return u.jsx(Dt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:Z,children:u.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(F.div,{...n,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Re=a.forwardRef(S(function(e,o){const{__scopeSelect:t,align:r="start",collisionPadding:n=k,...d}=e,s=Ie(t);return u.jsx(rt,{...s,...d,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Dt,be]=re(oe,{}),Ee="SelectViewport",kt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,nonce:r,...n}=e,d=se(Ee,t),s=be(Ee,t),c=H(o,d.onViewportChange),i=a.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(he.Slot,{scope:t,children:u.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:E(n.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:C}=s;if(C?.current&&y){const w=Math.abs(i.current-x.scrollTop);if(w>0){const I=window.innerHeight-k*2,p=parseFloat(y.style.minHeight),g=parseFloat(y.style.height),b=Math.max(p,g);if(b<I){const v=b+w,f=Math.min(I,v),O=v-f;y.style.height=f+"px",y.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}i.current=x.scrollTop})})})]})},"SelectViewport")),At="SelectGroup",[to,oo]=re(At),Ce="SelectItem",[Bt,Ve]=re(Ce),Lt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,value:r,disabled:n=!1,textValue:d,...s}=e,c=X(Ce,t),i=se(Ce,t),m=c.value===r,[x,y]=a.useState(d??""),[C,w]=a.useState(!1),I=ye(f=>i.itemRefCallback?.(f,r,n)),p=H(o,I),g=ke(),b=a.useRef("touch"),v=S(()=>{n||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return u.jsx(Bt,{scope:t,value:r,disabled:n,textId:g,isSelected:m,onItemTextChange:a.useCallback(f=>{y(O=>O||(f?.textContent??"").trim())},[]),children:u.jsx(he.ItemSlot,{scope:t,value:r,disabled:n,textValue:x,children:u.jsx(F.div,{role:"option","aria-labelledby":g,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:p,onFocus:E(s.onFocus,()=>w(!0)),onBlur:E(s.onBlur,()=>w(!1)),onClick:E(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:E(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:E(s.onPointerDown,f=>{b.current=f.pointerType}),onPointerMove:E(s.onPointerMove,f=>{b.current=f.pointerType,n?i.onItemLeave?.():b.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:E(s.onKeyDown,f=>{n||f.target!==f.currentTarget||i.searchRef?.current!==""&&f.key===" "||(mt.includes(f.key)&&v(),f.key===" "&&f.preventDefault())})})})})},"SelectItem")),me="SelectItemText",Vt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,...d}=e,s=X(me,t),c=se(me,t),i=Ve(me,t),m=St(me,t),[x,y]=a.useState(null),C=ye(v=>c.itemTextRefCallback?.(v,i.value,i.disabled)),w=H(o,y,i.onItemTextChange,C),I=x?.textContent,p=a.useMemo(()=>u.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=m;return q(()=>(g(p),()=>b(p)),[g,b,p]),u.jsxs(u.Fragment,{children:[u.jsx(F.span,{id:i.textId,...d,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!pe(s.value)?Me.createPortal(d.children,s.valueNode):null]})},"SelectItemText")),Ht="SelectItemIndicator",Ft=a.forwardRef(S(function(e,o){const{__scopeSelect:t,...r}=e;return Ve(Ht,t).isSelected?u.jsx(F.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),je="SelectScrollUpButton",Ut=a.forwardRef(S(function(e,o){const t=se(je,e.__scopeSelect),r=be(je,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollTop>0;d(m)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null},"SelectScrollUpButton")),Ne="SelectScrollDownButton",zt=a.forwardRef(S(function(e,o){const t=se(Ne,e.__scopeSelect),r=be(Ne,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollHeight-i.clientHeight,x=Math.ceil(i.scrollTop)<m;d(x)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null},"SelectScrollDownButton")),He=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onAutoScroll:r,...n}=e,d=se("SelectScrollButton",t),s=a.useRef(null),c=ve(t),i=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>i(),[i]),q(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(F.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:E(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:E(n.onPointerMove,()=>{d.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:E(n.onPointerLeave,()=>{i()})})},"SelectScrollButtonImpl")),Wt="SelectBubbleInput",Kt=a.forwardRef(S(function({__scopeSelect:e,...o},t){const r=X(Wt,e),{value:n,onValueChange:d,required:s,disabled:c,name:i,autoComplete:m,form:x}=r,{nativeOptions:y,nativeSelectKey:C}=r,w=a.useRef(null),I=H(t,w),p=n??"",g=Ae(p),b=Array.from(y).some(v=>(v.props.value??"")==="");return a.useEffect(()=>{const v=w.current;if(!v)return;const f=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(f,"value").set;if(g!==p&&j){const Z=new Event("change",{bubbles:!0});j.call(v,p),v.dispatchEvent(Z)}},[g,p]),u.jsxs(F.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:m,disabled:c,form:x,onChange:v=>d(v.target.value),...o,style:{...Ge,...o.style},ref:I,defaultValue:p,children:[pe(n)&&!b?u.jsx("option",{value:""}):null,Array.from(y)]},C)},"SelectBubbleInput"));function Fe(l){return typeof l=="function"}S(Fe,"isFunction");function pe(l){return l===""||l===void 0}S(pe,"shouldShowPlaceholder");function Pe(l){const e=ye(l),o=a.useRef(""),t=a.useRef(0),r=a.useCallback(d=>{const s=o.current+d;e(s),S((function c(i){o.current=i,window.clearTimeout(t.current),i!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch")(s)},[e]),n=a.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,r,n]}S(Pe,"useTypeaheadSearch");function Te(l,e,o){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,n=o?l.indexOf(o):-1;let d=Ue(l,Math.max(n,0));r.length===1&&(d=d.filter(i=>i!==o));const c=d.find(i=>i.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}S(Te,"findNextItem");function Ue(l,e){return l.map((o,t)=>l[(e+t)%l.length])}S(Ue,"wrapArray");function no(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(xt,{"data-slot":"select",...o}),e[2]=o,e[3]=t):t=e[3],t}function ro(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(It,{"data-slot":"select-value",...o}),e[2]=o,e[3]=t):t=e[3],t}function so(l){const e=ne.c(13);let o,t,r,n;e[0]!==l?({className:t,size:n,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n):(o=e[1],t=e[2],r=e[3],n=e[4]);const d=n===void 0?"default":n;let s;e[5]!==t?(s=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(bt,{asChild:!0,children:u.jsx(Oe,{className:"size-4 opacity-50"})}),e[7]=c):c=e[7];let i;return e[8]!==o||e[9]!==r||e[10]!==d||e[11]!==s?(i=u.jsxs(Ct,{"data-slot":"select-trigger","data-size":d,className:s,...r,children:[o,c]}),e[8]=o,e[9]=r,e[10]=d,e[11]=s,e[12]=i):i=e[12],i}function lo(l){const e=ne.c(22);let o,t,r,n,d;e[0]!==l?({className:t,children:o,position:n,align:d,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n,e[5]=d):(o=e[1],t=e[2],r=e[3],n=e[4],d=e[5]);const s=n===void 0?"popper":n,c=d===void 0?"center":d,i=s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==t||e[7]!==i?(m=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i,t),e[6]=t,e[7]=i,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=u.jsx($t,{}),e[9]=x):x=e[9];const y=s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[10]!==y?(C=ae("p-1",y),e[10]=y,e[11]=C):C=e[11];let w;e[12]!==o||e[13]!==C?(w=u.jsx(kt,{className:C,children:o}),e[12]=o,e[13]=C,e[14]=w):w=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=u.jsx(Gt,{}),e[15]=I):I=e[15];let p;return e[16]!==c||e[17]!==s||e[18]!==r||e[19]!==m||e[20]!==w?(p=u.jsx(Rt,{children:u.jsxs(Et,{"data-slot":"select-content",className:m,position:s,align:c,...r,children:[x,w,I]})}),e[16]=c,e[17]=s,e[18]=r,e[19]=m,e[20]=w,e[21]=p):p=e[21],p}function co(l){const e=ne.c(13);let o,t,r;e[0]!==l?({className:t,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r):(o=e[1],t=e[2],r=e[3]);let n;e[4]!==t?(n=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Ft,{children:u.jsx($e,{className:"size-4"})})}),e[6]=d):d=e[6];let s;e[7]!==o?(s=u.jsx(Vt,{children:o}),e[7]=o,e[8]=s):s=e[8];let c;return e[9]!==r||e[10]!==n||e[11]!==s?(c=u.jsxs(Lt,{"data-slot":"select-item",className:n,...r,children:[d,s]}),e[9]=r,e[10]=n,e[11]=s,e[12]=c):c=e[12],c}function $t(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ct,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(Ut,{"data-slot":"select-scroll-up-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}function Gt(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(Oe,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(zt,{"data-slot":"select-scroll-down-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}export{no as S,so as a,ro as b,lo as c,co as d};
1
+ import{B as ze,r as a,j as u,W as Me,c as ne,C as ae}from"./inertia-CgBdJDaE.js";import{c as We,a as E,b as q,P as Ke,u as _e,C as $e}from"./index-B2_QluAw.js";import{V as Ge,o as Ye,u as qe,C as Oe}from"./app-layout-CdJ5Qjms.js";import{u as H,a as Xe}from"./app-wordmark-B-0yZiDb.js";import{d as De,A as Ze,P as Je,h as Qe,f as et,g as tt,F as ot,e as nt,C as rt,i as ye,u as ke,R as st}from"./live-dot-Bejk0a5o.js";import{P as F}from"./index-Dy7Wg880.js";const lt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ct=ze("chevron-up",lt);var it=Object.defineProperty,at=(l,e)=>it(l,"name",{value:e,configurable:!0});function Ae(l){const e=a.useRef({value:l,previous:l});return a.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}at(Ae,"usePrevious");var dt=Object.defineProperty,ut=(l,e)=>dt(l,"name",{value:e,configurable:!0});function we(l,[e,o]){return Math.min(o,Math.max(e,l))}ut(we,"clamp");var pt=Object.defineProperty,S=(l,e)=>pt(l,"name",{value:e,configurable:!0}),ft=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],de="Select",[he,ve,ht]=Ye(de),[re,eo]=We(de,[ht,De]),Ie=De(),[vt,X]=re(de),[gt,St]=re(de);function Be(l){const{__scopeSelect:e,children:o,open:t,defaultOpen:r,onOpenChange:n,value:d,defaultValue:s,onValueChange:c,dir:i,name:m,autoComplete:x,disabled:y,required:C,form:w,internal_do_not_use_render:I}=l,p=Ie(e),[g,b]=a.useState(null),[v,f]=a.useState(null),[O,j]=a.useState(!1),Z=qe(i),[D,A]=_e({prop:t,defaultProp:r??!1,onChange:n,caller:de}),[J,K]=_e({prop:d,defaultProp:s,onChange:c,caller:de}),U=a.useRef(null),z=a.useRef(J);a.useEffect(()=>{const N=w?g?.ownerDocument.getElementById(w):g?.form;if(N instanceof HTMLFormElement){const V=S(()=>K(z.current),"reset");return N.addEventListener("reset",V),()=>N.removeEventListener("reset",V)}},[w,g,K]);const Q=g?!!w||!!g.closest("form"):!0,[W,B]=a.useState(new Set),$=ke(),G=Array.from(W).map(N=>N.props.value).join(";"),Y=a.useCallback(N=>{B(V=>new Set(V).add(N))},[]),L=a.useCallback(N=>{B(V=>{const ce=new Set(V);return ce.delete(N),ce})},[]),le={required:C,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:f,valueNodeHasChildren:O,onValueNodeHasChildrenChange:j,contentId:$,value:J,onValueChange:K,open:D,onOpenChange:A,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:m,autoComplete:x,form:w,nativeOptions:W,nativeSelectKey:G,isFormControl:Q};return u.jsx(st,{...p,children:u.jsx(vt,{scope:e,...le,children:u.jsx(he.Provider,{scope:e,children:u.jsx(gt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:L,children:Fe(I)?I(le):o})})})})}S(Be,"SelectProvider");var xt=S(l=>{const{__scopeSelect:e,children:o,...t}=l;return u.jsx(Be,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(Kt,{__scopeSelect:e}):null]})})},"Select"),wt="SelectTrigger",Ct=a.forwardRef(S(function(e,o){const{__scopeSelect:t,disabled:r=!1,...n}=e,d=Ie(t),s=X(wt,t),c=s.disabled||r,i=H(o,s.onTriggerChange),m=ve(t),x=a.useRef("touch"),[y,C,w]=Pe(p=>{const g=m().filter(f=>!f.disabled),b=g.find(f=>f.value===s.value),v=Te(g,p,b);v!==void 0&&s.onValueChange(v.value)}),I=S(p=>{c||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return u.jsx(Ze,{asChild:!0,...d,children:u.jsx(F.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":pe(s.value)?"":void 0,...n,ref:i,onClick:E(n.onClick,p=>{p.currentTarget.focus(),x.current!=="mouse"&&I(p)}),onPointerDown:E(n.onPointerDown,p=>{x.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(I(p),p.preventDefault())}),onKeyDown:E(n.onKeyDown,p=>{const g=y.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&C(p.key),!(g&&p.key===" ")&&ft.includes(p.key)&&(I(),p.preventDefault())})})})},"SelectTrigger")),yt="SelectValue",It=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,children:d,placeholder:s="",...c}=e,i=X(yt,t),{onValueNodeHasChildrenChange:m}=i,x=d!==void 0,y=H(o,i.onValueNodeChange);q(()=>{m(x)},[m,x]);const C=pe(i.value);return u.jsx(F.span,{...c,asChild:C?!1:c.asChild,ref:y,style:{pointerEvents:"none"},children:u.jsx(a.Fragment,{children:C?s:d},C?"placeholder":"value")})},"SelectValue")),bt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,...n}=e;return u.jsx(F.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})},"SelectIcon")),Pt="SelectPortal",[Tt,_t]=re(Pt,{forceMount:void 0}),Rt=S(l=>{const{__scopeSelect:e,forceMount:o,...t}=l;return u.jsx(Tt,{scope:l.__scopeSelect,forceMount:o,children:u.jsx(Je,{asChild:!0,...t})})},"SelectPortal"),oe="SelectContent",Et=a.forwardRef(S(function(e,o){const t=_t(oe,e.__scopeSelect),{forceMount:r=t.forceMount,...n}=e,d=X(oe,e.__scopeSelect),[s,c]=a.useState();return q(()=>{c(new DocumentFragment)},[]),u.jsx(Ke,{present:r||d.open,children:({present:i})=>i?u.jsx(Mt,{...n,ref:o}):u.jsx(jt,{...n,fragment:s})})},"SelectContent")),jt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,fragment:n}=e;return n?Me.createPortal(u.jsx(Le,{scope:t,children:u.jsx(he.Slot,{scope:t,children:u.jsx("div",{ref:o,children:r})})}),n):null},"SelectContentFragment")),k=10,[Le,se]=re(oe),Nt=Xe("SelectContent.RemoveScroll"),Mt=a.forwardRef(S(function(e,o){const{__scopeSelect:t}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:d,onPointerDownOutside:s,side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g,...b}=e,v=X(oe,t),[f,O]=a.useState(null),[j,Z]=a.useState(null),D=H(o,O),[A,J]=a.useState(null),[K,U]=a.useState(null),z=ve(t),[Q,W]=a.useState(!1),B=a.useRef(!1);a.useEffect(()=>{if(f)return Qe(f)},[f]),et();const $=a.useCallback(h=>{const[_,...M]=z().map(R=>R.ref.current),[P]=M.slice(-1),T=document.activeElement;for(const R of h)if(R===T||(R?.scrollIntoView({block:"nearest"}),R===_&&j&&(j.scrollTop=0),R===P&&j&&(j.scrollTop=j.scrollHeight),R?.focus(),document.activeElement!==T))return},[z,j]),G=a.useCallback(()=>$([A,f]),[$,A,f]);a.useEffect(()=>{Q&&G()},[Q,G]);const{onOpenChange:Y,triggerPointerDownPosRef:L}=v;a.useEffect(()=>{if(f){let h={x:0,y:0};const _=S(P=>{h={x:Math.abs(Math.round(P.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(P.pageY)-(L.current?.y??0))}},"handlePointerMove"),M=S(P=>{h.x<=10&&h.y<=10?P.preventDefault():P.composedPath().includes(f)||Y(!1),document.removeEventListener("pointermove",_),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",M,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",M,{capture:!0})}}},[f,Y,L]),a.useEffect(()=>{const h=S(()=>Y(!1),"close");return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[Y]);const[le,N]=Pe(h=>{const _=z().filter(T=>!T.disabled),M=_.find(T=>T.ref.current===document.activeElement),P=Te(_,h,M);P&&setTimeout(()=>P.ref.current?.focus())}),V=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&(J(h),P&&(B.current=!0))},[v.value]),ce=a.useCallback(()=>f?.focus(),[f]),ie=a.useCallback((h,_,M)=>{const P=!B.current&&!M;(v.value!==void 0&&v.value===_||P)&&U(h)},[v.value]),fe=r==="popper"?Re:Ot,ue=fe===Re?{side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g}:{};return u.jsx(Le,{scope:t,content:f,viewport:j,onViewportChange:Z,itemRefCallback:V,selectedItem:A,onItemLeave:ce,itemTextRefCallback:ie,focusSelectedItem:G,selectedItemText:K,position:r,isPositioned:Q,searchRef:le,children:u.jsx(tt,{as:Nt,allowPinchZoom:!0,children:u.jsx(ot,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:E(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:u.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...b,...ue,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:E(b.onKeyDown,h=>{const _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&N(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let P=z().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(h.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const T=h.target,R=P.indexOf(T);P=P.slice(R+1)}setTimeout(()=>$(P)),h.preventDefault()}})})})})})})},"SelectContentImpl")),Ot=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onPlaced:r,...n}=e,d=X(oe,t),s=se(oe,t),[c,i]=a.useState(null),[m,x]=a.useState(null),y=H(o,x),C=ve(t),w=a.useRef(!1),I=a.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=s,f=a.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&m&&p&&g&&b){const D=d.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),J=d.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(d.dir!=="rtl"){const T=K.left-A.left,R=J.left-T,ee=D.left-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.left=xe+"px"}else{const T=A.right-K.right,R=window.innerWidth-J.right-T,ee=window.innerWidth-D.right-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.right=xe+"px"}const U=C(),z=window.innerHeight-k*2,Q=p.scrollHeight,W=window.getComputedStyle(m),B=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),L=B+$+Q+Y+G,le=Math.min(g.offsetHeight*5,L),N=window.getComputedStyle(p),V=parseInt(N.paddingTop,10),ce=parseInt(N.paddingBottom,10),ie=D.top+D.height/2-k,fe=z-ie,ue=g.offsetHeight/2,h=g.offsetTop+ue,_=B+$+h,M=L-_;if(_<=ie){const T=U.length>0&&g===U[U.length-1].ref.current;c.style.bottom="0px";const R=m.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(fe,ue+(T?ce:0)+R+G),te=_+ee;c.style.height=te+"px"}else{const T=U.length>0&&g===U[0].ref.current;c.style.top="0px";const ee=Math.max(ie,B+p.offsetTop+(T?V:0)+ue)+M;c.style.height=ee+"px",p.scrollTop=_-ie+p.offsetTop}c.style.margin=`${k}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[C,d.trigger,d.valueNode,c,m,p,g,b,d.dir,r]);q(()=>f(),[f]);const[O,j]=a.useState();q(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const Z=a.useCallback(D=>{D&&I.current===!0&&(f(),v?.(),I.current=!1)},[f,v]);return u.jsx(Dt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:Z,children:u.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(F.div,{...n,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Re=a.forwardRef(S(function(e,o){const{__scopeSelect:t,align:r="start",collisionPadding:n=k,...d}=e,s=Ie(t);return u.jsx(rt,{...s,...d,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Dt,be]=re(oe,{}),Ee="SelectViewport",kt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,nonce:r,...n}=e,d=se(Ee,t),s=be(Ee,t),c=H(o,d.onViewportChange),i=a.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(he.Slot,{scope:t,children:u.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:E(n.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:C}=s;if(C?.current&&y){const w=Math.abs(i.current-x.scrollTop);if(w>0){const I=window.innerHeight-k*2,p=parseFloat(y.style.minHeight),g=parseFloat(y.style.height),b=Math.max(p,g);if(b<I){const v=b+w,f=Math.min(I,v),O=v-f;y.style.height=f+"px",y.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}i.current=x.scrollTop})})})]})},"SelectViewport")),At="SelectGroup",[to,oo]=re(At),Ce="SelectItem",[Bt,Ve]=re(Ce),Lt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,value:r,disabled:n=!1,textValue:d,...s}=e,c=X(Ce,t),i=se(Ce,t),m=c.value===r,[x,y]=a.useState(d??""),[C,w]=a.useState(!1),I=ye(f=>i.itemRefCallback?.(f,r,n)),p=H(o,I),g=ke(),b=a.useRef("touch"),v=S(()=>{n||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return u.jsx(Bt,{scope:t,value:r,disabled:n,textId:g,isSelected:m,onItemTextChange:a.useCallback(f=>{y(O=>O||(f?.textContent??"").trim())},[]),children:u.jsx(he.ItemSlot,{scope:t,value:r,disabled:n,textValue:x,children:u.jsx(F.div,{role:"option","aria-labelledby":g,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:p,onFocus:E(s.onFocus,()=>w(!0)),onBlur:E(s.onBlur,()=>w(!1)),onClick:E(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:E(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:E(s.onPointerDown,f=>{b.current=f.pointerType}),onPointerMove:E(s.onPointerMove,f=>{b.current=f.pointerType,n?i.onItemLeave?.():b.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:E(s.onKeyDown,f=>{n||f.target!==f.currentTarget||i.searchRef?.current!==""&&f.key===" "||(mt.includes(f.key)&&v(),f.key===" "&&f.preventDefault())})})})})},"SelectItem")),me="SelectItemText",Vt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,...d}=e,s=X(me,t),c=se(me,t),i=Ve(me,t),m=St(me,t),[x,y]=a.useState(null),C=ye(v=>c.itemTextRefCallback?.(v,i.value,i.disabled)),w=H(o,y,i.onItemTextChange,C),I=x?.textContent,p=a.useMemo(()=>u.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=m;return q(()=>(g(p),()=>b(p)),[g,b,p]),u.jsxs(u.Fragment,{children:[u.jsx(F.span,{id:i.textId,...d,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!pe(s.value)?Me.createPortal(d.children,s.valueNode):null]})},"SelectItemText")),Ht="SelectItemIndicator",Ft=a.forwardRef(S(function(e,o){const{__scopeSelect:t,...r}=e;return Ve(Ht,t).isSelected?u.jsx(F.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),je="SelectScrollUpButton",Ut=a.forwardRef(S(function(e,o){const t=se(je,e.__scopeSelect),r=be(je,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollTop>0;d(m)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null},"SelectScrollUpButton")),Ne="SelectScrollDownButton",zt=a.forwardRef(S(function(e,o){const t=se(Ne,e.__scopeSelect),r=be(Ne,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollHeight-i.clientHeight,x=Math.ceil(i.scrollTop)<m;d(x)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null},"SelectScrollDownButton")),He=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onAutoScroll:r,...n}=e,d=se("SelectScrollButton",t),s=a.useRef(null),c=ve(t),i=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>i(),[i]),q(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(F.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:E(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:E(n.onPointerMove,()=>{d.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:E(n.onPointerLeave,()=>{i()})})},"SelectScrollButtonImpl")),Wt="SelectBubbleInput",Kt=a.forwardRef(S(function({__scopeSelect:e,...o},t){const r=X(Wt,e),{value:n,onValueChange:d,required:s,disabled:c,name:i,autoComplete:m,form:x}=r,{nativeOptions:y,nativeSelectKey:C}=r,w=a.useRef(null),I=H(t,w),p=n??"",g=Ae(p),b=Array.from(y).some(v=>(v.props.value??"")==="");return a.useEffect(()=>{const v=w.current;if(!v)return;const f=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(f,"value").set;if(g!==p&&j){const Z=new Event("change",{bubbles:!0});j.call(v,p),v.dispatchEvent(Z)}},[g,p]),u.jsxs(F.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:m,disabled:c,form:x,onChange:v=>d(v.target.value),...o,style:{...Ge,...o.style},ref:I,defaultValue:p,children:[pe(n)&&!b?u.jsx("option",{value:""}):null,Array.from(y)]},C)},"SelectBubbleInput"));function Fe(l){return typeof l=="function"}S(Fe,"isFunction");function pe(l){return l===""||l===void 0}S(pe,"shouldShowPlaceholder");function Pe(l){const e=ye(l),o=a.useRef(""),t=a.useRef(0),r=a.useCallback(d=>{const s=o.current+d;e(s),S((function c(i){o.current=i,window.clearTimeout(t.current),i!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch")(s)},[e]),n=a.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,r,n]}S(Pe,"useTypeaheadSearch");function Te(l,e,o){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,n=o?l.indexOf(o):-1;let d=Ue(l,Math.max(n,0));r.length===1&&(d=d.filter(i=>i!==o));const c=d.find(i=>i.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}S(Te,"findNextItem");function Ue(l,e){return l.map((o,t)=>l[(e+t)%l.length])}S(Ue,"wrapArray");function no(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(xt,{"data-slot":"select",...o}),e[2]=o,e[3]=t):t=e[3],t}function ro(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(It,{"data-slot":"select-value",...o}),e[2]=o,e[3]=t):t=e[3],t}function so(l){const e=ne.c(13);let o,t,r,n;e[0]!==l?({className:t,size:n,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n):(o=e[1],t=e[2],r=e[3],n=e[4]);const d=n===void 0?"default":n;let s;e[5]!==t?(s=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(bt,{asChild:!0,children:u.jsx(Oe,{className:"size-4 opacity-50"})}),e[7]=c):c=e[7];let i;return e[8]!==o||e[9]!==r||e[10]!==d||e[11]!==s?(i=u.jsxs(Ct,{"data-slot":"select-trigger","data-size":d,className:s,...r,children:[o,c]}),e[8]=o,e[9]=r,e[10]=d,e[11]=s,e[12]=i):i=e[12],i}function lo(l){const e=ne.c(22);let o,t,r,n,d;e[0]!==l?({className:t,children:o,position:n,align:d,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n,e[5]=d):(o=e[1],t=e[2],r=e[3],n=e[4],d=e[5]);const s=n===void 0?"popper":n,c=d===void 0?"center":d,i=s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==t||e[7]!==i?(m=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i,t),e[6]=t,e[7]=i,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=u.jsx($t,{}),e[9]=x):x=e[9];const y=s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[10]!==y?(C=ae("p-1",y),e[10]=y,e[11]=C):C=e[11];let w;e[12]!==o||e[13]!==C?(w=u.jsx(kt,{className:C,children:o}),e[12]=o,e[13]=C,e[14]=w):w=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=u.jsx(Gt,{}),e[15]=I):I=e[15];let p;return e[16]!==c||e[17]!==s||e[18]!==r||e[19]!==m||e[20]!==w?(p=u.jsx(Rt,{children:u.jsxs(Et,{"data-slot":"select-content",className:m,position:s,align:c,...r,children:[x,w,I]})}),e[16]=c,e[17]=s,e[18]=r,e[19]=m,e[20]=w,e[21]=p):p=e[21],p}function co(l){const e=ne.c(13);let o,t,r;e[0]!==l?({className:t,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r):(o=e[1],t=e[2],r=e[3]);let n;e[4]!==t?(n=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Ft,{children:u.jsx($e,{className:"size-4"})})}),e[6]=d):d=e[6];let s;e[7]!==o?(s=u.jsx(Vt,{children:o}),e[7]=o,e[8]=s):s=e[8];let c;return e[9]!==r||e[10]!==n||e[11]!==s?(c=u.jsxs(Lt,{"data-slot":"select-item",className:n,...r,children:[d,s]}),e[9]=r,e[10]=n,e[11]=s,e[12]=c):c=e[12],c}function $t(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ct,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(Ut,{"data-slot":"select-scroll-up-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}function Gt(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(Oe,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(zt,{"data-slot":"select-scroll-down-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}export{no as S,so as a,ro as b,lo as c,co as d};
@@ -1 +1 @@
1
- import{r as m,j as d,c as u,C as x}from"./inertia-TViv6kNv.js";import{P as O}from"./index-OqI59zPb.js";var h=Object.defineProperty,v=(r,t)=>h(r,"name",{value:t,configurable:!0}),p="horizontal",P=["horizontal","vertical"],E=m.forwardRef(v(function(t,o){const{decorative:a,orientation:e=p,...n}=t,s=f(e)?e:p,i=a?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return d.jsx(O.div,{"data-orientation":s,...i,...n,ref:o})},"Separator"));function f(r){return P.includes(r)}v(f,"isValidOrientation");var N=E;function j(r){const t=u.c(12);let o,a,e,n;t[0]!==r?({className:o,orientation:e,decorative:n,...a}=r,t[0]=r,t[1]=o,t[2]=a,t[3]=e,t[4]=n):(o=t[1],a=t[2],e=t[3],n=t[4]);const s=e===void 0?"horizontal":e,l=n===void 0?!0:n;let i;t[5]!==o?(i=x("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=i):i=t[6];let c;return t[7]!==l||t[8]!==s||t[9]!==a||t[10]!==i?(c=d.jsx(N,{"data-slot":"separator",decorative:l,orientation:s,className:i,...a}),t[7]=l,t[8]=s,t[9]=a,t[10]=i,t[11]=c):c=t[11],c}export{j as S};
1
+ import{r as m,j as d,c as u,C as x}from"./inertia-CgBdJDaE.js";import{P as O}from"./index-Dy7Wg880.js";var h=Object.defineProperty,v=(r,t)=>h(r,"name",{value:t,configurable:!0}),p="horizontal",P=["horizontal","vertical"],E=m.forwardRef(v(function(t,o){const{decorative:a,orientation:e=p,...n}=t,s=f(e)?e:p,i=a?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return d.jsx(O.div,{"data-orientation":s,...i,...n,ref:o})},"Separator"));function f(r){return P.includes(r)}v(f,"isValidOrientation");var N=E;function j(r){const t=u.c(12);let o,a,e,n;t[0]!==r?({className:o,orientation:e,decorative:n,...a}=r,t[0]=r,t[1]=o,t[2]=a,t[3]=e,t[4]=n):(o=t[1],a=t[2],e=t[3],n=t[4]);const s=e===void 0?"horizontal":e,l=n===void 0?!0:n;let i;t[5]!==o?(i=x("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=i):i=t[6];let c;return t[7]!==l||t[8]!==s||t[9]!==a||t[10]!==i?(c=d.jsx(N,{"data-slot":"separator",decorative:l,orientation:s,className:i,...a}),t[7]=l,t[8]=s,t[9]=a,t[10]=i,t[11]=c):c=t[11],c}export{j as S};