@marimo-team/frontend 0.25.1-dev34 → 0.25.1-dev36

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 (92) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-udUY_cVV.js → ConnectedDataExplorerComponent-CTxKM-Fu.js} +1 -1
  2. package/dist/assets/{ErrorBoundary-DU9X9ktG.js → ErrorBoundary-C8BZe74f.js} +2 -2
  3. package/dist/assets/{LazyAnyLanguageCodeMirror-CQdQHMxt.js → LazyAnyLanguageCodeMirror-CkODE94l.js} +2 -2
  4. package/dist/assets/{RunButton-CIxAj01l.js → RunButton-D76pDZgh.js} +1 -1
  5. package/dist/assets/{abnfDiagram-VCTEODGH-BfLRkjG6.js → abnfDiagram-VCTEODGH-DFgvXDc1.js} +1 -1
  6. package/dist/assets/{add-cell-with-ai-Cg23faw-.js → add-cell-with-ai-5fL14140.js} +1 -1
  7. package/dist/assets/{agent-panel-C-o00y2k.js → agent-panel-PlE7RWO5.js} +1 -1
  8. package/dist/assets/{ai-model-dropdown-BPMrBvJI.js → ai-model-dropdown-CpDlqh7R.js} +1 -1
  9. package/dist/assets/{any-language-editor-GarAZZ0F.js → any-language-editor-DPbp6EN0.js} +1 -1
  10. package/dist/assets/{app-config-button-AYB1pelg.js → app-config-button-gMbOmEz8.js} +1 -1
  11. package/dist/assets/{architectureDiagram-5GKGNRK7-D6yIyzt2.js → architectureDiagram-5GKGNRK7-D3fH0W70.js} +1 -1
  12. package/dist/assets/{blockDiagram-I7D4REHJ-AeNyA9f7.js → blockDiagram-I7D4REHJ-Bb1dGHGB.js} +1 -1
  13. package/dist/assets/{cache-panel-NwDYxLSV.js → cache-panel-0CCaMmiG.js} +1 -1
  14. package/dist/assets/{chat-display-C3AR_hMq.js → chat-display-Blk9BCpr.js} +1 -1
  15. package/dist/assets/{chat-panel-sk2UDGU0.js → chat-panel-DdZtA_Ly.js} +1 -1
  16. package/dist/assets/{chat-ui-B5emUm0i.js → chat-ui-DbBd3vj7.js} +1 -1
  17. package/dist/assets/{chunk-IMKFNOWR-BI1s1f6A.js → chunk-IMKFNOWR-VjtUlt3M.js} +1 -1
  18. package/dist/assets/{chunk-SHT3W25Y-C_QEZvyN.js → chunk-SHT3W25Y-BDbt1BRF.js} +1 -1
  19. package/dist/assets/{chunk-SVP7TREG-DatsBSS6.js → chunk-SVP7TREG-DgvGq6mB.js} +1 -1
  20. package/dist/assets/{chunk-TICWLB2K-C9CpTOkM.js → chunk-TICWLB2K-Dzog7DD-.js} +1 -1
  21. package/dist/assets/{classDiagram-ZZMXUADV-hebgKVy4.js → classDiagram-ZZMXUADV-BuyS78aT.js} +1 -1
  22. package/dist/assets/{classDiagram-v2-VYDZK3BY-hebgKVy4.js → classDiagram-v2-VYDZK3BY-BuyS78aT.js} +1 -1
  23. package/dist/assets/{code-visibility-BeRg7UF8.js → code-visibility-BQO5ynsF.js} +1 -1
  24. package/dist/assets/{command-palette-B-bSvOst.js → command-palette-CJ2-Lk_T.js} +1 -1
  25. package/dist/assets/{common-w6BfuBwC.js → common-ChCgZPBo.js} +1 -1
  26. package/dist/assets/{components-DJgWwFKZ.js → components-BHgHX2Vh.js} +1 -1
  27. package/dist/assets/{components-CzGcBorn.js → components-DuP3oeub.js} +1 -1
  28. package/dist/assets/{cynefinDiagram-5FMLGOSQ-K72fUOLW.js → cynefinDiagram-5FMLGOSQ-BJXgJlQE.js} +1 -1
  29. package/dist/assets/{dagre-DTta7jpy.js → dagre-BrubeqnK.js} +1 -1
  30. package/dist/assets/{dagre-GXQ25YYZ-C88kjVwA.js → dagre-GXQ25YYZ-Cxe8eFLe.js} +1 -1
  31. package/dist/assets/{data-grid-overlay-editor-DsSRMApC.js → data-grid-overlay-editor-B-iFnQsG.js} +1 -1
  32. package/dist/assets/{dependency-graph-panel-C55Dhoh3.js → dependency-graph-panel-CFAlqtgV.js} +1 -1
  33. package/dist/assets/{diagram-S7CK7UJ4-DH_lSV_Y.js → diagram-S7CK7UJ4-C8k5GKLH.js} +1 -1
  34. package/dist/assets/{diagram-UQ7AKVKN-oBdNuXP7.js → diagram-UQ7AKVKN-ILiutJ7q.js} +1 -1
  35. package/dist/assets/{diagram-VX7I27RA-BVtc8GgH.js → diagram-VX7I27RA-8ndT8L7U.js} +1 -1
  36. package/dist/assets/{diagram-Z3DM3KII-DE1--pGH.js → diagram-Z3DM3KII-CnmAi9JW.js} +1 -1
  37. package/dist/assets/{documentation-panel-GB0Szc5R.js → documentation-panel-CZIJpxtD.js} +1 -1
  38. package/dist/assets/{ebnfDiagram-PWID7BFC-Z4aPnApQ.js → ebnfDiagram-PWID7BFC-BNiga6y-.js} +1 -1
  39. package/dist/assets/{edit-page-TfUoZYYQ.js → edit-page-DLXYrEYR.js} +4 -4
  40. package/dist/assets/{erDiagram-RLTQ6QDP-Bbt-nBnx.js → erDiagram-RLTQ6QDP-CCn5XAuY.js} +1 -1
  41. package/dist/assets/{error-panel-BN7MBpEM.js → error-panel-LtiuGoqB.js} +1 -1
  42. package/dist/assets/{feedback-button-DGMsNfSL.js → feedback-button-kiTFEFG2.js} +1 -1
  43. package/dist/assets/{file-explorer-panel-C3U1Obcn.js → file-explorer-panel-B9vbUvff.js} +1 -1
  44. package/dist/assets/{file-name-input-Vfy6-ZpU.js → file-name-input-Bb4J9FNM.js} +1 -1
  45. package/dist/assets/{flowDiagram-HODETNUW-DmUN-RBx.js → flowDiagram-HODETNUW-x2R_qnr8.js} +1 -1
  46. package/dist/assets/{gallery-page-DGVsSSzP.js → gallery-page-DyYJgoCq.js} +1 -1
  47. package/dist/assets/{glide-data-editor-A5jFMgYE.js → glide-data-editor-BK1EDuw2.js} +4 -4
  48. package/dist/assets/{graphlib-NBIj2Kfp.js → graphlib-CoSM0Es6.js} +1 -1
  49. package/dist/assets/has-Bt1s1fF2.js +1 -0
  50. package/dist/assets/{home-page-ZW1NJzws.js → home-page-DW5G9SPG.js} +1 -1
  51. package/dist/assets/{index-Zs38iNAG.js → index-Cn__joas.js} +8 -8
  52. package/dist/assets/{infoDiagram-27XIBGKW-rs2zTVPc.js → infoDiagram-27XIBGKW-r4zXhTFC.js} +1 -1
  53. package/dist/assets/{ishikawaDiagram-5VMMS53U-CwKWXMNK.js → ishikawaDiagram-5VMMS53U-DZLSjWUg.js} +1 -1
  54. package/dist/assets/{kanban-definition-UXKFOSKX-DLr-4ocd.js → kanban-definition-UXKFOSKX-DU_TZwIK.js} +1 -1
  55. package/dist/assets/{logs-panel-Dqs_vVC_.js → logs-panel-BmtADsSE.js} +1 -1
  56. package/dist/assets/{mermaid-C1kG065l.js → mermaid-B8tUrr6k.js} +4 -4
  57. package/dist/assets/{mindmap-definition-YA3MSWOX-B1C1gz8B.js → mindmap-definition-YA3MSWOX-k8SkzwAv.js} +1 -1
  58. package/dist/assets/{number-overlay-editor-DqGAR_ww.js → number-overlay-editor-CiwRJ-pX.js} +1 -1
  59. package/dist/assets/{outline-panel-B9dNfe9q.js → outline-panel-FaMzkZS9.js} +1 -1
  60. package/dist/assets/{packages-panel-BdTU1bBv.js → packages-panel-PliMyaIa.js} +1 -1
  61. package/dist/assets/{panels-D5aVxy-E.js → panels-B2PEOls0.js} +3 -3
  62. package/dist/assets/{pegDiagram-XKGWAZYB-BFvG7D2O.js → pegDiagram-XKGWAZYB-CWeqpdnX.js} +1 -1
  63. package/dist/assets/{pieDiagram-E7YTZNPT-74qoS1R2.js → pieDiagram-E7YTZNPT-Dsba2ilv.js} +1 -1
  64. package/dist/assets/{process-output-CtQkLZVy.js → process-output-DnFzobbU.js} +1 -1
  65. package/dist/assets/{railroadDiagram-O6MQD6OU-Dai_lKbV.js → railroadDiagram-O6MQD6OU-BrbY1-0D.js} +1 -1
  66. package/dist/assets/{requirementDiagram-BXWQKSXE-CiKina3x.js → requirementDiagram-BXWQKSXE-L5Fl7CRw.js} +1 -1
  67. package/dist/assets/{reveal-component-D4htvrrq.js → reveal-component-oP1YB3Z4.js} +1 -1
  68. package/dist/assets/{run-page-DdcSXYQd.js → run-page-BBn06OZ9.js} +1 -1
  69. package/dist/assets/{scratchpad-panel-DGYFLAo7.js → scratchpad-panel-DGv6YjZf.js} +1 -1
  70. package/dist/assets/{secrets-panel-CJJjGsuj.js → secrets-panel-DGQUG48Z.js} +1 -1
  71. package/dist/assets/{sequenceDiagram-WJ2MYXX4-CDhaii-1.js → sequenceDiagram-WJ2MYXX4-DuDWuBXC.js} +1 -1
  72. package/dist/assets/{session-panel-CmCj0NtQ.js → session-panel-pg13bpOc.js} +1 -1
  73. package/dist/assets/{snippets-panel-kQ1WZG0S.js → snippets-panel-CNwxeRNQ.js} +1 -1
  74. package/dist/assets/{stateDiagram-D77RDMKH-BtQ2OtwX.js → stateDiagram-D77RDMKH-BZgBYV1e.js} +1 -1
  75. package/dist/assets/{stateDiagram-v2-MP3YSRHH-xaoiOfCL.js → stateDiagram-v2-MP3YSRHH-PP5zKFU7.js} +1 -1
  76. package/dist/assets/{swimlanes-42K2YHIH-C0Cw-Tka.js → swimlanes-42K2YHIH-D4tyRKpt.js} +1 -1
  77. package/dist/assets/{swimlanesDiagram-VR7AAH4N-CHL36w8d.js → swimlanesDiagram-VR7AAH4N-atGhUm5p.js} +1 -1
  78. package/dist/assets/{swiper-component-Gt3Wh0WE.js → swiper-component-D_i4Ue3j.js} +1 -1
  79. package/dist/assets/{terminal-DtHInUNN.js → terminal-DRQW_eu-.js} +1 -1
  80. package/dist/assets/{timeline-definition-24CTP7MA-C7EutK_-.js → timeline-definition-24CTP7MA-JCkSP_Iw.js} +1 -1
  81. package/dist/assets/{tracing-DlzNhnai.js → tracing-BDWGWQ7A.js} +1 -1
  82. package/dist/assets/{tracing-panel-C3SuXZCf.js → tracing-panel-Cp5VJkvs.js} +2 -2
  83. package/dist/assets/{useCellActionButton-CDfnQ-sN.js → useCellActionButton-Cqxydxby.js} +1 -1
  84. package/dist/assets/{vega-component-BENjQM3D.js → vega-component-DO-9yuph.js} +1 -1
  85. package/dist/assets/{vega-embed-container-CDuaQJOb.js → vega-embed-container-DGvhIdos.js} +1 -1
  86. package/dist/assets/{vennDiagram-4TSXK5OY-2eNGjMK5.js → vennDiagram-4TSXK5OY-yhc0kjvi.js} +1 -1
  87. package/dist/assets/{wardleyDiagram-VM6X3IG4-ChtVzrz8.js → wardleyDiagram-VM6X3IG4-DvN1QrXE.js} +1 -1
  88. package/dist/assets/{xychartDiagram-S5SC5T6Z-CG-PhCjW.js → xychartDiagram-S5SC5T6Z-DBfBkoZn.js} +1 -1
  89. package/dist/index.html +3 -3
  90. package/package.json +1 -1
  91. package/src/plugins/impl/RadioPlugin.tsx +6 -2
  92. package/dist/assets/has-D5hx-VdG.js +0 -1
@@ -1 +1 @@
1
- import"./rolldown-runtime-B0Z9INg1.js";import{t as e}from"./react-CUdNIagt.js";import{t}from"./compiler-runtime-BQ9S8nyo.js";import{g as n}from"./useEventListener-BdZUApHd.js";import{t as r}from"./jsx-runtime-B74pBk57.js";import{t as i}from"./copy-icon-DFhUGBjO.js";import{Hn as a,S as o}from"./index-Zs38iNAG.js";import{n as s,t as c}from"./esm-BErdoAcz.js";var l=t();e();var u=r(),d={python:`py`,python3:`py`,javascript:`js`,typescript:`ts`,shell:`sh`,bash:`sh`,unknown:`text`,undefined:`text`},f=[];function p(e){return e?e in c:!1}var m=e=>{let t=(0,l.c)(29),r,m,h,g,_,v;if(t[0]!==e){let{language:n,hideUnsupportedLanguageErrors:i,showCopyButton:a,extensions:o,...s}=e;m=i,_=a,g=s,h=n,r=o===void 0?f:o,h=d[h||``]||h,v=p(h),t[0]=e,t[1]=r,t[2]=m,t[3]=h,t[4]=g,t[5]=_,t[6]=v}else r=t[1],m=t[2],h=t[3],g=t[4],_=t[5],v=t[6];let y=v;y||n.warn(`Language ${h} not found in CodeMirror.`);let b;bb0:{if(!p(h)){b=r;break bb0}let e;t[7]===h?e=t[8]:(e=s(h),t[7]=h,t[8]=e);let n;t[9]!==r||t[10]!==e?(n=[e,...r].filter(Boolean),t[9]=r,t[10]=e,t[11]=n):n=t[11],b=n}let x=b,S;t[12]!==m||t[13]!==y||t[14]!==h?(S=!y&&!m&&(0,u.jsx)(a,{className:`mb-1 rounded-sm`,error:`Language ${h} not supported. Supported languages are: ${Object.keys(c).join(`, `)}`}),t[12]=m,t[13]=y,t[14]=h,t[15]=S):S=t[15];let C;t[16]!==y||t[17]!==g||t[18]!==_?(C=_&&y&&(0,u.jsx)(i,{tooltip:!1,buttonClassName:`absolute top-2 right-2 z-10 hover-action`,className:`h-4 w-4 text-muted-foreground`,value:g.value||``,toastTitle:`Copied to clipboard`}),t[16]=y,t[17]=g,t[18]=_,t[19]=C):C=t[19];let w;t[20]===x?w=t[21]:(w=[...x],t[20]=x,t[21]=w);let T;t[22]!==g||t[23]!==w?(T=(0,u.jsx)(o,{...g,extensions:w}),t[22]=g,t[23]=w,t[24]=T):T=t[24];let E;return t[25]!==S||t[26]!==C||t[27]!==T?(E=(0,u.jsxs)(`div`,{className:`relative w-full group hover-actions-parent`,children:[S,C,T]}),t[25]=S,t[26]=C,t[27]=T,t[28]=E):E=t[28],E};export{d as LANGUAGE_MAP,m as default};
1
+ import"./rolldown-runtime-B0Z9INg1.js";import{t as e}from"./react-CUdNIagt.js";import{t}from"./compiler-runtime-BQ9S8nyo.js";import{g as n}from"./useEventListener-BdZUApHd.js";import{t as r}from"./jsx-runtime-B74pBk57.js";import{t as i}from"./copy-icon-DFhUGBjO.js";import{Hn as a,S as o}from"./index-Cn__joas.js";import{n as s,t as c}from"./esm-BErdoAcz.js";var l=t();e();var u=r(),d={python:`py`,python3:`py`,javascript:`js`,typescript:`ts`,shell:`sh`,bash:`sh`,unknown:`text`,undefined:`text`},f=[];function p(e){return e?e in c:!1}var m=e=>{let t=(0,l.c)(29),r,m,h,g,_,v;if(t[0]!==e){let{language:n,hideUnsupportedLanguageErrors:i,showCopyButton:a,extensions:o,...s}=e;m=i,_=a,g=s,h=n,r=o===void 0?f:o,h=d[h||``]||h,v=p(h),t[0]=e,t[1]=r,t[2]=m,t[3]=h,t[4]=g,t[5]=_,t[6]=v}else r=t[1],m=t[2],h=t[3],g=t[4],_=t[5],v=t[6];let y=v;y||n.warn(`Language ${h} not found in CodeMirror.`);let b;bb0:{if(!p(h)){b=r;break bb0}let e;t[7]===h?e=t[8]:(e=s(h),t[7]=h,t[8]=e);let n;t[9]!==r||t[10]!==e?(n=[e,...r].filter(Boolean),t[9]=r,t[10]=e,t[11]=n):n=t[11],b=n}let x=b,S;t[12]!==m||t[13]!==y||t[14]!==h?(S=!y&&!m&&(0,u.jsx)(a,{className:`mb-1 rounded-sm`,error:`Language ${h} not supported. Supported languages are: ${Object.keys(c).join(`, `)}`}),t[12]=m,t[13]=y,t[14]=h,t[15]=S):S=t[15];let C;t[16]!==y||t[17]!==g||t[18]!==_?(C=_&&y&&(0,u.jsx)(i,{tooltip:!1,buttonClassName:`absolute top-2 right-2 z-10 hover-action`,className:`h-4 w-4 text-muted-foreground`,value:g.value||``,toastTitle:`Copied to clipboard`}),t[16]=y,t[17]=g,t[18]=_,t[19]=C):C=t[19];let w;t[20]===x?w=t[21]:(w=[...x],t[20]=x,t[21]=w);let T;t[22]!==g||t[23]!==w?(T=(0,u.jsx)(o,{...g,extensions:w}),t[22]=g,t[23]=w,t[24]=T):T=t[24];let E;return t[25]!==S||t[26]!==C||t[27]!==T?(E=(0,u.jsxs)(`div`,{className:`relative w-full group hover-actions-parent`,children:[S,C,T]}),t[25]=S,t[26]=C,t[27]=T,t[28]=E):E=t[28],E};export{d as LANGUAGE_MAP,m as default};
@@ -1 +1 @@
1
- import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{c as t}from"./useEvent-Dc9HkKI2.js";import{t as n}from"./react-CUdNIagt.js";import{$t as r,Bn as i,En as a,On as o,Xt as s,Yt as c,Zt as l,cn as u,dn as d,en as f,nn as p,tn as m,un as h}from"./cells-B3WiM6w3.js";import{t as g}from"./compiler-runtime-BQ9S8nyo.js";import{D as _,O as v,S as y}from"./config-BxZgoFvi.js";import{d as b,f as x,i as S,j as C,n as w,u as T}from"./ai-model-dropdown-BPMrBvJI.js";import{M as E}from"./config-DpGPGznL.js";import{t as D}from"./jsx-runtime-B74pBk57.js";import{o as O}from"./alert-dialog-CeE3i3Qa.js";import{l as k}from"./select-BplWpfFo.js";import{t as A}from"./tooltip-DR2Z2N4w.js";import{t as j}from"./button-BoklZTGL.js";import{t as M}from"./createLucideIcon-rHn2EdoM.js";import{r as N}from"./useNumberFormatter-C4-_TnkF.js";import{b as P,p as F}from"./write-secret-modal-BiG2tahJ.js";import{Ut as I,Wt as L,Xt as ee,Zt as R,r as z}from"./input-BDakodZ2.js";import{t as B}from"./settings-DlKTeV_0.js";import{t as te}from"./use-toast-CC89xOwH.js";import{s as V}from"./arrays-BqUx5USx.js";import{r as H}from"./requests-yTHMxhVa.js";import{r as U}from"./useDebounce-DMbg9X18.js";import{Lr as W,Vi as ne}from"./index-Zs38iNAG.js";import{n as G}from"./useInterval-ChchS0Rl.js";var K=M(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),q=g(),J=D(),Y=e=>{let t=(0,q.c)(15),{description:n,disabled:r,tooltip:i}=e,a=r!==void 0&&r,o=i===void 0?`Shutdown`:i,{openConfirm:s,closeModal:c}=P(),{sendShutdown:l}=H(),u;t[0]===l?u=t[1]:(u=()=>{l(),setTimeout(X,200)},t[0]=l,t[1]=u);let d=u;if(E())return null;let f=a?`disabled`:`red`,p;t[2]!==c||t[3]!==n||t[4]!==d||t[5]!==s?(p=e=>{e.stopPropagation(),s({title:`Shutdown`,description:n,variant:`destructive`,confirmAction:(0,J.jsx)(O,{onClick:()=>{d(),c()},"aria-label":`Confirm Shutdown`,children:`Shutdown`})})},t[2]=c,t[3]=n,t[4]=d,t[5]=s,t[6]=p):p=t[6];let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(N,{strokeWidth:1}),t[7]=m):m=t[7];let h;t[8]!==a||t[9]!==f||t[10]!==p?(h=(0,J.jsx)(G,{"aria-label":`Shutdown`,"data-testid":`shutdown-button`,shape:`circle`,size:`small`,color:f,className:`h-[27px] w-[27px]`,disabled:a,onClick:p,children:m}),t[8]=a,t[9]=f,t[10]=p,t[11]=h):h=t[11];let g;return t[12]!==h||t[13]!==o?(g=(0,J.jsx)(A,{content:o,children:h}),t[12]=h,t[13]=o,t[14]=g):g=t[14],g};function X(){window.close()}var Z=e(n(),1),re=100,ie=()=>{let e=(0,q.c)(37),[t,n]=y(),{saveAppConfig:u}=H(),d=(0,Z.useId)(),h=(0,Z.useId)(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=a(_),e[0]=g):g=e[0];let v;e[1]===t?v=e[2]:(v={resolver:g,defaultValues:t},e[1]=t,e[2]=v);let S=o(v),C;e[3]!==u||e[4]!==n?(C=async e=>{await u({config:e}).then(()=>{n(e)}).catch(()=>{n(e)})},e[3]=u,e[4]=n,e[5]=C):C=e[5];let w=C,T;e[6]===w?T=e[7]:(T=e=>{w(e)},e[6]=w,e[7]=T);let E=U(T,re),D;e[8]===t.width?D=e[9]:(D=[t.width],e[8]=t.width,e[9]=D),(0,Z.useEffect)(ae,D);let O;e[10]!==E||e[11]!==S?(O=S.handleSubmit(E),e[10]=E,e[11]=S,e[12]=O):O=e[12];let k;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,J.jsxs)(`div`,{children:[(0,J.jsx)(x,{children:`Notebook Settings`}),(0,J.jsx)(b,{children:`Configure how your notebook or application looks and behaves.`})]}),e[13]=k):k=e[13];let A;e[14]===S.control?A=e[15]:(A=(0,J.jsxs)(Q,{title:`Display`,children:[(0,J.jsx)(r,{control:S.control,name:`width`,render:$}),(0,J.jsx)(r,{control:S.control,name:`app_title`,render:se})]}),e[14]=S.control,e[15]=A);let j;e[16]===S.control?j=e[17]:(j=(0,J.jsxs)(Q,{title:`Custom Files`,children:[(0,J.jsx)(r,{control:S.control,name:`css_file`,render:ce}),(0,J.jsx)(r,{control:S.control,name:`html_head_file`,render:le})]}),e[16]=S.control,e[17]=j);let M;e[18]===S.control?M=e[19]:(M=(0,J.jsx)(Q,{title:`Data`,children:(0,J.jsx)(r,{control:S.control,name:`sql_output`,render:de})}),e[18]=S.control,e[19]=M);let N;e[20]!==d||e[21]!==h?(N=e=>{let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(s,{children:(0,J.jsxs)(`div`,{className:`flex gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(i,{id:d,"data-testid":`html-checkbox`,checked:t.value.includes(`html`),onCheckedChange:()=>{t.onChange(V(t.value,`html`))}}),(0,J.jsx)(m,{htmlFor:d,children:`HTML`})]}),(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(i,{id:h,"data-testid":`ipynb-checkbox`,checked:t.value.includes(`ipynb`),onCheckedChange:()=>{t.onChange(V(t.value,`ipynb`))}}),(0,J.jsx)(m,{htmlFor:h,children:`IPYNB`})]})]})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`When enabled, marimo will periodically save this notebook in your selected formats (HTML, IPYNB) to a folder named`,` `,(0,J.jsx)(W,{className:`inline`,children:`__marimo__`}),` next to your notebook file.`]})]})},e[20]=d,e[21]=h,e[22]=N):N=e[22];let P;e[23]!==S.control||e[24]!==N?(P=(0,J.jsx)(Q,{title:`Exporting outputs`,children:(0,J.jsx)(r,{control:S.control,name:`auto_download`,render:N})}),e[23]=S.control,e[24]=N,e[25]=P):P=e[25];let F;e[26]!==P||e[27]!==A||e[28]!==j||e[29]!==M?(F=(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-8 gap-y-4`,children:[A,j,M,P]}),e[26]=P,e[27]=A,e[28]=j,e[29]=M,e[30]=F):F=e[30];let I;e[31]!==F||e[32]!==O?(I=(0,J.jsxs)(`form`,{onChange:O,className:`flex flex-col gap-6`,children:[k,F]}),e[31]=F,e[32]=O,e[33]=I):I=e[33];let L;return e[34]!==S||e[35]!==I?(L=(0,J.jsx)(c,{...S,children:I}),e[34]=S,e[35]=I,e[36]=L):L=e[36],L},Q=e=>{let t=(0,q.c)(5),{title:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,J.jsx)(`h3`,{className:`text-base font-semibold mb-1`,children:n}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-2`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a};function ae(){window.dispatchEvent(new Event(`resize`))}function oe(e){return(0,J.jsx)(`option`,{value:e,children:e},e)}function $(e){let{field:t}=e;return(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`Width`}),(0,J.jsx)(s,{children:(0,J.jsx)(k,{"data-testid":`app-width-select`,onChange:e=>t.onChange(e.target.value),value:t.value,disabled:t.disabled,className:`inline-flex mr-2`,children:C().map(oe)})}),(0,J.jsx)(p,{})]})}function se(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`App title`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,onChange:e=>{t.onChange(e.target.value),v.safeParse(e.target.value).success&&(document.title=e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsx)(l,{children:`The application title is put in the title tag in the HTML code and typically displayed in the title bar of the browser window.`})]})}function ce(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{className:`shrink-0`,children:`Custom CSS`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,placeholder:`custom.css`,onChange:e=>{t.onChange(e.target.value),v.safeParse(e.target.value).success&&(document.title=e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsx)(l,{children:`A filepath to a custom css file to be injected into the notebook.`})]})}function le(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{className:`shrink-0`,children:`HTML Head`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,placeholder:`head.html`,onChange:e=>{t.onChange(e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`A filepath to an HTML file to be injected into the`,` `,(0,J.jsx)(W,{className:`inline`,children:`<head/>`}),` section of the notebook. Use this to add analytics, custom fonts, meta tags, or external scripts.`]})]})}function ue(e){return(0,J.jsx)(`option`,{value:e.value,children:e.label},e.value)}function de(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`SQL Output Type`}),(0,J.jsx)(s,{children:(0,J.jsx)(k,{"data-testid":`sql-output-select`,onChange:e=>{t.onChange(e.target.value),te({title:`Kernel Restart Required`,description:`This change requires a kernel restart to take effect.`})},value:t.value,disabled:t.disabled,className:`inline-flex mr-2`,children:T.map(ue)})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`The Python type returned by a SQL cell. For best performance with large datasets, we recommend using`,` `,(0,J.jsx)(W,{className:`inline`,children:`native`}),`. See the`,` `,(0,J.jsx)(F,{href:`https://docs.marimo.io/guides/working_with_data/sql`,children:`SQL guide`}),` `,`for more information.`]})]})}var fe=e=>{let n=(0,q.c)(32),{showAppConfig:r,disabled:i,tooltip:a}=e,o=r===void 0||r,s=i!==void 0&&i,c=a===void 0?`Settings`:a,[l,f]=t(w),p=s?`disabled`:`hint-green`,m;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(B,{strokeWidth:1.8}),n[0]=m):m=n[0];let g;n[1]===c?g=n[2]:(g=(0,J.jsx)(A,{content:c,children:m}),n[1]=c,n[2]=g);let _;n[3]!==s||n[4]!==p||n[5]!==g?(_=(0,J.jsx)(G,{"aria-label":`Config`,"data-testid":`app-config-button`,shape:`circle`,size:`small`,className:`h-[27px] w-[27px]`,disabled:s,color:p,children:g}),n[3]=s,n[4]=p,n[5]=g,n[6]=_):_=n[6];let v=_,y;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,J.jsxs)(L,{className:`w-[90vw] h-[90vh] overflow-hidden sm:max-w-5xl top-[5vh] p-0`,children:[(0,J.jsx)(ne,{children:(0,J.jsx)(ee,{children:`User settings`})}),(0,J.jsx)(S,{})]}),n[7]=y):y=n[7];let b=y;if(!o){let e;n[8]===v?e=n[9]:(e=(0,J.jsx)(R,{children:v}),n[8]=v,n[9]=e);let t;return n[10]!==f||n[11]!==l||n[12]!==e?(t=(0,J.jsxs)(I,{open:l,onOpenChange:f,children:[e,b]}),n[10]=f,n[11]=l,n[12]=e,n[13]=t):t=n[13],t}let x;n[14]===v?x=n[15]:(x=(0,J.jsx)(d,{asChild:!0,children:v}),n[14]=v,n[15]=x);let C,T;n[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,J.jsx)(ie,{}),T=(0,J.jsx)(`div`,{className:`h-px bg-border my-2`}),n[16]=C,n[17]=T):(C=n[16],T=n[17]);let E;n[18]===f?E=n[19]:(E=()=>f(!0),n[18]=f,n[19]=E);let D;n[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,J.jsx)(B,{strokeWidth:1.8,className:`w-4 h-4 mr-2`}),n[20]=D):D=n[20];let O;n[21]===E?O=n[22]:(O=(0,J.jsxs)(h,{className:`w-[650px] overflow-auto max-h-[80vh] max-w-[80vw]`,align:`end`,side:`bottom`,onFocusOutside:pe,children:[C,T,(0,J.jsxs)(j,{onClick:E,variant:`link`,className:`px-0`,children:[D,`User settings`]})]}),n[21]=E,n[22]=O);let k;n[23]!==O||n[24]!==x?(k=(0,J.jsxs)(u,{children:[x,O]}),n[23]=O,n[24]=x,n[25]=k):k=n[25];let M;n[26]!==f||n[27]!==l?(M=(0,J.jsx)(I,{open:l,onOpenChange:f,children:b}),n[26]=f,n[27]=l,n[28]=M):M=n[28];let N;return n[29]!==k||n[30]!==M?(N=(0,J.jsxs)(J.Fragment,{children:[k,M]}),n[29]=k,n[30]=M,n[31]=N):N=n[31],N};function pe(e){return e.preventDefault()}export{Y as n,K as r,fe as t};
1
+ import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{c as t}from"./useEvent-Dc9HkKI2.js";import{t as n}from"./react-CUdNIagt.js";import{$t as r,Bn as i,En as a,On as o,Xt as s,Yt as c,Zt as l,cn as u,dn as d,en as f,nn as p,tn as m,un as h}from"./cells-B3WiM6w3.js";import{t as g}from"./compiler-runtime-BQ9S8nyo.js";import{D as _,O as v,S as y}from"./config-BxZgoFvi.js";import{d as b,f as x,i as S,j as C,n as w,u as T}from"./ai-model-dropdown-CpDlqh7R.js";import{M as E}from"./config-DpGPGznL.js";import{t as D}from"./jsx-runtime-B74pBk57.js";import{o as O}from"./alert-dialog-CeE3i3Qa.js";import{l as k}from"./select-BplWpfFo.js";import{t as A}from"./tooltip-DR2Z2N4w.js";import{t as j}from"./button-BoklZTGL.js";import{t as M}from"./createLucideIcon-rHn2EdoM.js";import{r as N}from"./useNumberFormatter-C4-_TnkF.js";import{b as P,p as F}from"./write-secret-modal-BiG2tahJ.js";import{Ut as I,Wt as L,Xt as ee,Zt as R,r as z}from"./input-BDakodZ2.js";import{t as B}from"./settings-DlKTeV_0.js";import{t as te}from"./use-toast-CC89xOwH.js";import{s as V}from"./arrays-BqUx5USx.js";import{r as H}from"./requests-yTHMxhVa.js";import{r as U}from"./useDebounce-DMbg9X18.js";import{Lr as W,Vi as ne}from"./index-Cn__joas.js";import{n as G}from"./useInterval-ChchS0Rl.js";var K=M(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),q=g(),J=D(),Y=e=>{let t=(0,q.c)(15),{description:n,disabled:r,tooltip:i}=e,a=r!==void 0&&r,o=i===void 0?`Shutdown`:i,{openConfirm:s,closeModal:c}=P(),{sendShutdown:l}=H(),u;t[0]===l?u=t[1]:(u=()=>{l(),setTimeout(X,200)},t[0]=l,t[1]=u);let d=u;if(E())return null;let f=a?`disabled`:`red`,p;t[2]!==c||t[3]!==n||t[4]!==d||t[5]!==s?(p=e=>{e.stopPropagation(),s({title:`Shutdown`,description:n,variant:`destructive`,confirmAction:(0,J.jsx)(O,{onClick:()=>{d(),c()},"aria-label":`Confirm Shutdown`,children:`Shutdown`})})},t[2]=c,t[3]=n,t[4]=d,t[5]=s,t[6]=p):p=t[6];let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(N,{strokeWidth:1}),t[7]=m):m=t[7];let h;t[8]!==a||t[9]!==f||t[10]!==p?(h=(0,J.jsx)(G,{"aria-label":`Shutdown`,"data-testid":`shutdown-button`,shape:`circle`,size:`small`,color:f,className:`h-[27px] w-[27px]`,disabled:a,onClick:p,children:m}),t[8]=a,t[9]=f,t[10]=p,t[11]=h):h=t[11];let g;return t[12]!==h||t[13]!==o?(g=(0,J.jsx)(A,{content:o,children:h}),t[12]=h,t[13]=o,t[14]=g):g=t[14],g};function X(){window.close()}var Z=e(n(),1),re=100,ie=()=>{let e=(0,q.c)(37),[t,n]=y(),{saveAppConfig:u}=H(),d=(0,Z.useId)(),h=(0,Z.useId)(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=a(_),e[0]=g):g=e[0];let v;e[1]===t?v=e[2]:(v={resolver:g,defaultValues:t},e[1]=t,e[2]=v);let S=o(v),C;e[3]!==u||e[4]!==n?(C=async e=>{await u({config:e}).then(()=>{n(e)}).catch(()=>{n(e)})},e[3]=u,e[4]=n,e[5]=C):C=e[5];let w=C,T;e[6]===w?T=e[7]:(T=e=>{w(e)},e[6]=w,e[7]=T);let E=U(T,re),D;e[8]===t.width?D=e[9]:(D=[t.width],e[8]=t.width,e[9]=D),(0,Z.useEffect)(ae,D);let O;e[10]!==E||e[11]!==S?(O=S.handleSubmit(E),e[10]=E,e[11]=S,e[12]=O):O=e[12];let k;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,J.jsxs)(`div`,{children:[(0,J.jsx)(x,{children:`Notebook Settings`}),(0,J.jsx)(b,{children:`Configure how your notebook or application looks and behaves.`})]}),e[13]=k):k=e[13];let A;e[14]===S.control?A=e[15]:(A=(0,J.jsxs)(Q,{title:`Display`,children:[(0,J.jsx)(r,{control:S.control,name:`width`,render:$}),(0,J.jsx)(r,{control:S.control,name:`app_title`,render:se})]}),e[14]=S.control,e[15]=A);let j;e[16]===S.control?j=e[17]:(j=(0,J.jsxs)(Q,{title:`Custom Files`,children:[(0,J.jsx)(r,{control:S.control,name:`css_file`,render:ce}),(0,J.jsx)(r,{control:S.control,name:`html_head_file`,render:le})]}),e[16]=S.control,e[17]=j);let M;e[18]===S.control?M=e[19]:(M=(0,J.jsx)(Q,{title:`Data`,children:(0,J.jsx)(r,{control:S.control,name:`sql_output`,render:de})}),e[18]=S.control,e[19]=M);let N;e[20]!==d||e[21]!==h?(N=e=>{let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(s,{children:(0,J.jsxs)(`div`,{className:`flex gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(i,{id:d,"data-testid":`html-checkbox`,checked:t.value.includes(`html`),onCheckedChange:()=>{t.onChange(V(t.value,`html`))}}),(0,J.jsx)(m,{htmlFor:d,children:`HTML`})]}),(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(i,{id:h,"data-testid":`ipynb-checkbox`,checked:t.value.includes(`ipynb`),onCheckedChange:()=>{t.onChange(V(t.value,`ipynb`))}}),(0,J.jsx)(m,{htmlFor:h,children:`IPYNB`})]})]})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`When enabled, marimo will periodically save this notebook in your selected formats (HTML, IPYNB) to a folder named`,` `,(0,J.jsx)(W,{className:`inline`,children:`__marimo__`}),` next to your notebook file.`]})]})},e[20]=d,e[21]=h,e[22]=N):N=e[22];let P;e[23]!==S.control||e[24]!==N?(P=(0,J.jsx)(Q,{title:`Exporting outputs`,children:(0,J.jsx)(r,{control:S.control,name:`auto_download`,render:N})}),e[23]=S.control,e[24]=N,e[25]=P):P=e[25];let F;e[26]!==P||e[27]!==A||e[28]!==j||e[29]!==M?(F=(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-8 gap-y-4`,children:[A,j,M,P]}),e[26]=P,e[27]=A,e[28]=j,e[29]=M,e[30]=F):F=e[30];let I;e[31]!==F||e[32]!==O?(I=(0,J.jsxs)(`form`,{onChange:O,className:`flex flex-col gap-6`,children:[k,F]}),e[31]=F,e[32]=O,e[33]=I):I=e[33];let L;return e[34]!==S||e[35]!==I?(L=(0,J.jsx)(c,{...S,children:I}),e[34]=S,e[35]=I,e[36]=L):L=e[36],L},Q=e=>{let t=(0,q.c)(5),{title:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,J.jsx)(`h3`,{className:`text-base font-semibold mb-1`,children:n}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-2`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a};function ae(){window.dispatchEvent(new Event(`resize`))}function oe(e){return(0,J.jsx)(`option`,{value:e,children:e},e)}function $(e){let{field:t}=e;return(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`Width`}),(0,J.jsx)(s,{children:(0,J.jsx)(k,{"data-testid":`app-width-select`,onChange:e=>t.onChange(e.target.value),value:t.value,disabled:t.disabled,className:`inline-flex mr-2`,children:C().map(oe)})}),(0,J.jsx)(p,{})]})}function se(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`App title`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,onChange:e=>{t.onChange(e.target.value),v.safeParse(e.target.value).success&&(document.title=e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsx)(l,{children:`The application title is put in the title tag in the HTML code and typically displayed in the title bar of the browser window.`})]})}function ce(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{className:`shrink-0`,children:`Custom CSS`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,placeholder:`custom.css`,onChange:e=>{t.onChange(e.target.value),v.safeParse(e.target.value).success&&(document.title=e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsx)(l,{children:`A filepath to a custom css file to be injected into the notebook.`})]})}function le(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{className:`shrink-0`,children:`HTML Head`}),(0,J.jsx)(s,{children:(0,J.jsx)(z,{...t,value:t.value??``,placeholder:`head.html`,onChange:e=>{t.onChange(e.target.value)}})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`A filepath to an HTML file to be injected into the`,` `,(0,J.jsx)(W,{className:`inline`,children:`<head/>`}),` section of the notebook. Use this to add analytics, custom fonts, meta tags, or external scripts.`]})]})}function ue(e){return(0,J.jsx)(`option`,{value:e.value,children:e.label},e.value)}function de(e){let{field:t}=e;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,J.jsxs)(f,{className:`flex flex-row items-center space-x-1 space-y-0`,children:[(0,J.jsx)(m,{children:`SQL Output Type`}),(0,J.jsx)(s,{children:(0,J.jsx)(k,{"data-testid":`sql-output-select`,onChange:e=>{t.onChange(e.target.value),te({title:`Kernel Restart Required`,description:`This change requires a kernel restart to take effect.`})},value:t.value,disabled:t.disabled,className:`inline-flex mr-2`,children:T.map(ue)})}),(0,J.jsx)(p,{})]}),(0,J.jsxs)(l,{children:[`The Python type returned by a SQL cell. For best performance with large datasets, we recommend using`,` `,(0,J.jsx)(W,{className:`inline`,children:`native`}),`. See the`,` `,(0,J.jsx)(F,{href:`https://docs.marimo.io/guides/working_with_data/sql`,children:`SQL guide`}),` `,`for more information.`]})]})}var fe=e=>{let n=(0,q.c)(32),{showAppConfig:r,disabled:i,tooltip:a}=e,o=r===void 0||r,s=i!==void 0&&i,c=a===void 0?`Settings`:a,[l,f]=t(w),p=s?`disabled`:`hint-green`,m;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(B,{strokeWidth:1.8}),n[0]=m):m=n[0];let g;n[1]===c?g=n[2]:(g=(0,J.jsx)(A,{content:c,children:m}),n[1]=c,n[2]=g);let _;n[3]!==s||n[4]!==p||n[5]!==g?(_=(0,J.jsx)(G,{"aria-label":`Config`,"data-testid":`app-config-button`,shape:`circle`,size:`small`,className:`h-[27px] w-[27px]`,disabled:s,color:p,children:g}),n[3]=s,n[4]=p,n[5]=g,n[6]=_):_=n[6];let v=_,y;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,J.jsxs)(L,{className:`w-[90vw] h-[90vh] overflow-hidden sm:max-w-5xl top-[5vh] p-0`,children:[(0,J.jsx)(ne,{children:(0,J.jsx)(ee,{children:`User settings`})}),(0,J.jsx)(S,{})]}),n[7]=y):y=n[7];let b=y;if(!o){let e;n[8]===v?e=n[9]:(e=(0,J.jsx)(R,{children:v}),n[8]=v,n[9]=e);let t;return n[10]!==f||n[11]!==l||n[12]!==e?(t=(0,J.jsxs)(I,{open:l,onOpenChange:f,children:[e,b]}),n[10]=f,n[11]=l,n[12]=e,n[13]=t):t=n[13],t}let x;n[14]===v?x=n[15]:(x=(0,J.jsx)(d,{asChild:!0,children:v}),n[14]=v,n[15]=x);let C,T;n[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,J.jsx)(ie,{}),T=(0,J.jsx)(`div`,{className:`h-px bg-border my-2`}),n[16]=C,n[17]=T):(C=n[16],T=n[17]);let E;n[18]===f?E=n[19]:(E=()=>f(!0),n[18]=f,n[19]=E);let D;n[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,J.jsx)(B,{strokeWidth:1.8,className:`w-4 h-4 mr-2`}),n[20]=D):D=n[20];let O;n[21]===E?O=n[22]:(O=(0,J.jsxs)(h,{className:`w-[650px] overflow-auto max-h-[80vh] max-w-[80vw]`,align:`end`,side:`bottom`,onFocusOutside:pe,children:[C,T,(0,J.jsxs)(j,{onClick:E,variant:`link`,className:`px-0`,children:[D,`User settings`]})]}),n[21]=E,n[22]=O);let k;n[23]!==O||n[24]!==x?(k=(0,J.jsxs)(u,{children:[x,O]}),n[23]=O,n[24]=x,n[25]=k):k=n[25];let M;n[26]!==f||n[27]!==l?(M=(0,J.jsx)(I,{open:l,onOpenChange:f,children:b}),n[26]=f,n[27]=l,n[28]=M):M=n[28];let N;return n[29]!==k||n[30]!==M?(N=(0,J.jsxs)(J.Fragment,{children:[k,M]}),n[29]=k,n[30]=M,n[31]=N):N=n[31],N};function pe(e){return e.preventDefault()}export{Y as n,K as r,fe as t};