@marimo-team/frontend 0.25.2-dev16 → 0.25.2-dev17

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 (99) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-SJEQJzCV.js → ConnectedDataExplorerComponent-DXfDBqxd.js} +1 -1
  2. package/dist/assets/{ErrorBoundary-DfqW9IUs.js → ErrorBoundary-CFLwe8Ze.js} +2 -2
  3. package/dist/assets/{LazyAnyLanguageCodeMirror-C98DNvLI.js → LazyAnyLanguageCodeMirror-CsgLA3va.js} +2 -2
  4. package/dist/assets/{RunButton-DJzt1mSu.js → RunButton-D_s-sd2x.js} +1 -1
  5. package/dist/assets/__vite-browser-external-BgsHWynV.js +1 -0
  6. package/dist/assets/__vite-browser-external-DMJaCYJh.js +1 -0
  7. package/dist/assets/{abnfDiagram-VCTEODGH-DH1E0zmF.js → abnfDiagram-VCTEODGH-D5tJbQeG.js} +1 -1
  8. package/dist/assets/{add-cell-with-ai-CQ0NJGhf.js → add-cell-with-ai-B24OH9H6.js} +1 -1
  9. package/dist/assets/{agent-panel-NZbe8xZk.js → agent-panel-B_qO2bWj.js} +1 -1
  10. package/dist/assets/{ai-model-dropdown-DyxQD71x.js → ai-model-dropdown-JVLsIAq8.js} +1 -1
  11. package/dist/assets/{any-language-editor-DSFQIVxN.js → any-language-editor-ByNR_ywf.js} +1 -1
  12. package/dist/assets/{app-config-button-BTPBl4_2.js → app-config-button-BhSn-gsg.js} +1 -1
  13. package/dist/assets/{architectureDiagram-5GKGNRK7-BgJ_V-GG.js → architectureDiagram-5GKGNRK7-ei7xMm1r.js} +1 -1
  14. package/dist/assets/{blockDiagram-I7D4REHJ-D6iyPUKh.js → blockDiagram-I7D4REHJ-CyR9Ul7M.js} +1 -1
  15. package/dist/assets/{cache-panel-Bj3iVsJP.js → cache-panel-CEi1EBGS.js} +1 -1
  16. package/dist/assets/{chat-display-D25pQ44L.js → chat-display-CnHKReih.js} +1 -1
  17. package/dist/assets/{chat-panel-CRY5ojsb.js → chat-panel-DOiv1y2X.js} +1 -1
  18. package/dist/assets/{chat-ui-B10N8GmS.js → chat-ui-CNxh8sq2.js} +1 -1
  19. package/dist/assets/{chunk-IMKFNOWR-DODdy9e0.js → chunk-IMKFNOWR-Cd9j8nZh.js} +1 -1
  20. package/dist/assets/{chunk-SHT3W25Y-3TeJ3lTg.js → chunk-SHT3W25Y-DX2hjCHE.js} +1 -1
  21. package/dist/assets/{chunk-SVP7TREG-Ct777wRM.js → chunk-SVP7TREG-BG9ncnm8.js} +1 -1
  22. package/dist/assets/{chunk-TICWLB2K-Da2jAi52.js → chunk-TICWLB2K-CXqaaib0.js} +1 -1
  23. package/dist/assets/{classDiagram-ZZMXUADV-D_m4oZbW.js → classDiagram-ZZMXUADV-B7P73oZ6.js} +1 -1
  24. package/dist/assets/{classDiagram-v2-VYDZK3BY-D_m4oZbW.js → classDiagram-v2-VYDZK3BY-B7P73oZ6.js} +1 -1
  25. package/dist/assets/{code-visibility-BKljCCDE.js → code-visibility-Du9q6YD9.js} +1 -1
  26. package/dist/assets/{command-palette-CMMJENXb.js → command-palette-CCW_vYbZ.js} +1 -1
  27. package/dist/assets/{common--XEpP1qz.js → common-BtNTv98d.js} +1 -1
  28. package/dist/assets/{components-jvm8P_df.js → components-C7tokapA.js} +1 -1
  29. package/dist/assets/{components-CjhZlMUm.js → components-Dude5nxX.js} +1 -1
  30. package/dist/assets/{cynefinDiagram-5FMLGOSQ-CPh1Kbrt.js → cynefinDiagram-5FMLGOSQ-Bu4DHCOG.js} +1 -1
  31. package/dist/assets/{dagre-CCiXgITG.js → dagre-C6qWzvFC.js} +1 -1
  32. package/dist/assets/{dagre-GXQ25YYZ-Cmt7670G.js → dagre-GXQ25YYZ-BmrdKMbI.js} +1 -1
  33. package/dist/assets/{data-grid-overlay-editor-DyC_M0HR.js → data-grid-overlay-editor-Cb2XMloM.js} +1 -1
  34. package/dist/assets/{dependency-graph-panel-CjZLuif-.js → dependency-graph-panel-D_ASPsTd.js} +1 -1
  35. package/dist/assets/{diagram-S7CK7UJ4-CxNSdES-.js → diagram-S7CK7UJ4-BDpM8zF-.js} +1 -1
  36. package/dist/assets/{diagram-UQ7AKVKN-l3mxspw1.js → diagram-UQ7AKVKN-CQR8YVAL.js} +1 -1
  37. package/dist/assets/{diagram-VX7I27RA-DKqeljt_.js → diagram-VX7I27RA-DbCxuEs-.js} +1 -1
  38. package/dist/assets/{diagram-Z3DM3KII-HVdOjDbt.js → diagram-Z3DM3KII-BKxCNKna.js} +1 -1
  39. package/dist/assets/{documentation-panel-t_M1iwCC.js → documentation-panel-DPhNGiXk.js} +1 -1
  40. package/dist/assets/{ebnfDiagram-PWID7BFC-0I5huAVM.js → ebnfDiagram-PWID7BFC-BS79e_zB.js} +1 -1
  41. package/dist/assets/{edit-page-DWfzY74t.js → edit-page-C8WCkElH.js} +4 -4
  42. package/dist/assets/{erDiagram-RLTQ6QDP-NAbTbXjD.js → erDiagram-RLTQ6QDP-CC6zQ_6k.js} +1 -1
  43. package/dist/assets/{error-panel-CeTSJtUe.js → error-panel-DFho45LA.js} +1 -1
  44. package/dist/assets/{feedback-button-CBs10NBs.js → feedback-button-TolU0QDp.js} +1 -1
  45. package/dist/assets/{file-explorer-panel-C7cGx9oC.js → file-explorer-panel-D7bpT_0P.js} +1 -1
  46. package/dist/assets/{file-name-input-gZ0zN0YL.js → file-name-input-CY6Qaixx.js} +1 -1
  47. package/dist/assets/{flowDiagram-HODETNUW-COt8nhXr.js → flowDiagram-HODETNUW-Bzuwsjnt.js} +1 -1
  48. package/dist/assets/{gallery-page-CHk490Ij.js → gallery-page-DJrPLIap.js} +1 -1
  49. package/dist/assets/{glide-data-editor-BzhWriSb.js → glide-data-editor-C4GmjdPG.js} +4 -4
  50. package/dist/assets/{graphlib-C_spNDqd.js → graphlib-CGBEs_CH.js} +1 -1
  51. package/dist/assets/has-DtJ36W7t.js +1 -0
  52. package/dist/assets/{home-page-BFnrrxp4.js → home-page-oxUJbwGR.js} +1 -1
  53. package/dist/assets/{index-BcSrlbHM.js → index-BwQosu9I.js} +9 -9
  54. package/dist/assets/{infoDiagram-27XIBGKW-Bnx33qrL.js → infoDiagram-27XIBGKW-DlnSsJkR.js} +1 -1
  55. package/dist/assets/{ishikawaDiagram-5VMMS53U-C6D132Ye.js → ishikawaDiagram-5VMMS53U-CSy37q4N.js} +1 -1
  56. package/dist/assets/{kanban-definition-UXKFOSKX-DaPCFz2C.js → kanban-definition-UXKFOSKX-CNqM52De.js} +1 -1
  57. package/dist/assets/{logs-panel-ybY8Mxrs.js → logs-panel-CtYvAjh9.js} +1 -1
  58. package/dist/assets/{mermaid-CUmBqzux.js → mermaid-BzCpEEZq.js} +4 -4
  59. package/dist/assets/{mindmap-definition-YA3MSWOX-CAgHHWv8.js → mindmap-definition-YA3MSWOX-Cj7kbST_.js} +1 -1
  60. package/dist/assets/{number-overlay-editor-BKaQSt37.js → number-overlay-editor-B-F0mRTv.js} +1 -1
  61. package/dist/assets/{outline-panel-DqPPL53_.js → outline-panel-B7MwNvlJ.js} +1 -1
  62. package/dist/assets/{packages-panel-CkSE_jbL.js → packages-panel-fIaUSNlv.js} +1 -1
  63. package/dist/assets/{panels-CrsfjzMc.js → panels-BZIdXTmc.js} +3 -3
  64. package/dist/assets/{pegDiagram-XKGWAZYB-BUSVb7nn.js → pegDiagram-XKGWAZYB-DcQKM41f.js} +1 -1
  65. package/dist/assets/{pieDiagram-E7YTZNPT-BOiuXITO.js → pieDiagram-E7YTZNPT-CUwu-m6V.js} +1 -1
  66. package/dist/assets/{process-output-CaAyA3CM.js → process-output-cU1z3S-I.js} +1 -1
  67. package/dist/assets/{railroadDiagram-O6MQD6OU-ydhTE-wy.js → railroadDiagram-O6MQD6OU-DxIHx-lA.js} +1 -1
  68. package/dist/assets/{requirementDiagram-BXWQKSXE-C988Cjar.js → requirementDiagram-BXWQKSXE-DIYVMyso.js} +1 -1
  69. package/dist/assets/{reveal-component-BxZHPrkV.js → reveal-component-DaZd_kMN.js} +1 -1
  70. package/dist/assets/{run-page-CXWsnvDf.js → run-page-BRVOMHdN.js} +1 -1
  71. package/dist/assets/{save-worker-Dw8ybFWq.js → save-worker-C880NC3o.js} +5 -5
  72. package/dist/assets/{scratchpad-panel-BPaH8KYi.js → scratchpad-panel-c7wFH-Oy.js} +1 -1
  73. package/dist/assets/{secrets-panel-DE2hDf__.js → secrets-panel-BHTitTsn.js} +1 -1
  74. package/dist/assets/{sequenceDiagram-WJ2MYXX4-C9eah9w8.js → sequenceDiagram-WJ2MYXX4-Dpk7sDmM.js} +1 -1
  75. package/dist/assets/{session-panel-Dpf8Kgy4.js → session-panel-BxnQsdxG.js} +1 -1
  76. package/dist/assets/{snippets-panel-CUaWd17V.js → snippets-panel-0tEz9in4.js} +1 -1
  77. package/dist/assets/{stateDiagram-D77RDMKH-7hEMSq3i.js → stateDiagram-D77RDMKH-qc3pRefj.js} +1 -1
  78. package/dist/assets/{stateDiagram-v2-MP3YSRHH-xImADxvl.js → stateDiagram-v2-MP3YSRHH-5IvDXqsU.js} +1 -1
  79. package/dist/assets/{swimlanes-42K2YHIH-Ts2LZKz6.js → swimlanes-42K2YHIH-DgC5Wl89.js} +1 -1
  80. package/dist/assets/{swimlanesDiagram-VR7AAH4N-OT8RyMny.js → swimlanesDiagram-VR7AAH4N-C_5IKZd0.js} +1 -1
  81. package/dist/assets/{swiper-component-DYo3pC2G.js → swiper-component-DKugJxYx.js} +1 -1
  82. package/dist/assets/{terminal-Dgf6yfKc.js → terminal-CT_PG6vP.js} +1 -1
  83. package/dist/assets/{timeline-definition-24CTP7MA-C5CrYwY2.js → timeline-definition-24CTP7MA-cli6EBSm.js} +1 -1
  84. package/dist/assets/{tracing-D3AehqB_.js → tracing-CoGFo6np.js} +1 -1
  85. package/dist/assets/{tracing-panel-DYQLU9U_.js → tracing-panel-DUzJo6UI.js} +2 -2
  86. package/dist/assets/{useCellActionButton-B3O3lQMF.js → useCellActionButton-BmylHRt-.js} +1 -1
  87. package/dist/assets/{vega-component-GpNt78cG.js → vega-component-B2Yw2uV8.js} +1 -1
  88. package/dist/assets/{vega-embed-container-DDuXVXkl.js → vega-embed-container-BUSjkWO5.js} +1 -1
  89. package/dist/assets/{vennDiagram-4TSXK5OY-CI7kwUQq.js → vennDiagram-4TSXK5OY-CFpSG_nk.js} +1 -1
  90. package/dist/assets/{wardleyDiagram-VM6X3IG4-BPv9pTcr.js → wardleyDiagram-VM6X3IG4-CZvydTGr.js} +1 -1
  91. package/dist/assets/{worker-ByzyDs4N.js → worker-B5tVfGoh.js} +6 -6
  92. package/dist/assets/{xychartDiagram-S5SC5T6Z-Cfi8QnEy.js → xychartDiagram-S5SC5T6Z-F8wRthiY.js} +1 -1
  93. package/dist/index.html +3 -3
  94. package/package.json +1 -1
  95. package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
  96. package/src/core/wasm/worker/bootstrap.ts +22 -3
  97. package/dist/assets/__vite-browser-external-Cw9Ccr_O.js +0 -1
  98. package/dist/assets/__vite-browser-external-DBuuG05M.js +0 -1
  99. package/dist/assets/has-BWZ6BWpX.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-CUPWI_1X.js";import{t as r}from"./jsx-runtime-B74pBk57.js";import{t as i}from"./copy-icon-DQuttmjH.js";import{Hn as a,x as o}from"./index-BcSrlbHM.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-CUPWI_1X.js";import{t as r}from"./jsx-runtime-B74pBk57.js";import{t as i}from"./copy-icon-DQuttmjH.js";import{Hn as a,x as o}from"./index-BwQosu9I.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-CU9huD49.js";import{t as g}from"./compiler-runtime-BQ9S8nyo.js";import{D as _,O as v,S as y}from"./config-BdH5RvM0.js";import{d as b,f as x,i as S,j as C,n as w,u as T}from"./ai-model-dropdown-DyxQD71x.js";import{M as E}from"./config-D7CP5wR5.js";import{t as D}from"./jsx-runtime-B74pBk57.js";import{o as O}from"./alert-dialog-BsB0FYEL.js";import{l as k}from"./select-CWHHoM53.js";import{t as A}from"./tooltip-CamoSiGF.js";import{t as j}from"./button-qFeU84ax.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-wFgr-1dA.js";import{Ut as I,Wt as L,Xt as ee,Zt as R,r as z}from"./input-D4bMj5Nb.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-BcSrlbHM.js";import{n as G}from"./useInterval-DluQa5sq.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-CU9huD49.js";import{t as g}from"./compiler-runtime-BQ9S8nyo.js";import{D as _,O as v,S as y}from"./config-BdH5RvM0.js";import{d as b,f as x,i as S,j as C,n as w,u as T}from"./ai-model-dropdown-JVLsIAq8.js";import{M as E}from"./config-D7CP5wR5.js";import{t as D}from"./jsx-runtime-B74pBk57.js";import{o as O}from"./alert-dialog-BsB0FYEL.js";import{l as k}from"./select-CWHHoM53.js";import{t as A}from"./tooltip-CamoSiGF.js";import{t as j}from"./button-qFeU84ax.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-wFgr-1dA.js";import{Ut as I,Wt as L,Xt as ee,Zt as R,r as z}from"./input-D4bMj5Nb.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-BwQosu9I.js";import{n as G}from"./useInterval-DluQa5sq.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};