@marimo-team/islands 0.17.0 → 0.17.1
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.
- package/dist/{fullscreen-blsKUrtN.js → Combination-De9yoNY5.js} +132 -69
- package/dist/{ConnectedDataExplorerComponent-DJEUH6Bb.js → ConnectedDataExplorerComponent-DuvpJOKp.js} +45 -44
- package/dist/{ImageComparisonComponent-D4Tv9QzJ.js → ImageComparisonComponent--etUl2pp.js} +2 -2
- package/dist/{_baseIsEqual-CN4oFUZ4.js → _baseIsEqual-BFlyFUxC.js} +1 -1
- package/dist/{_basePickBy-CzSvE_-f.js → _basePickBy-gCCvtjgp.js} +3 -3
- package/dist/{_baseProperty-DbbUiyUD.js → _baseProperty-BuqBC0Ie.js} +5 -5
- package/dist/{_baseUniq-DwoC-LVO.js → _baseUniq-CKN9mEDq.js} +5 -5
- package/dist/any-language-editor-Du2Q_6IK.js +156 -0
- package/dist/apl-CUm2DGqh.js +4 -0
- package/dist/{arc-B1iVbHTB.js → arc-C_O2hc-b.js} +2 -2
- package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +21 -0
- package/dist/{architectureDiagram-W76B3OCA-CoBORy6u.js → architectureDiagram-W76B3OCA-CrK99pJi.js} +38 -37
- package/dist/asciiarmor-lqJ78U01.js +4 -0
- package/dist/asn1-CjwpSTlW.js +4 -0
- package/dist/assets/__vite-browser-external-DHoMWs4M.js +1 -0
- package/dist/assets/{worker-vPn7gxWj.js → worker-B6tH8gPO.js} +3 -3
- package/dist/{blockDiagram-QIGZ2CNN-0yzoLIar.js → blockDiagram-QIGZ2CNN-BJOEyO6w.js} +47 -46
- package/dist/brainfuck-ClvDI1dq.js +4 -0
- package/dist/{button-DcnBVpVa.js → button-ADXOb_gX.js} +27 -27
- package/dist/{c4Diagram-FPNF74CW-CKsIA_DD.js → c4Diagram-FPNF74CW-7Pz_X9wF.js} +12 -11
- package/dist/{channel-3LVvQZcD.js → channel-X-wRUxX6.js} +1 -1
- package/dist/{check-D7ifz5op.js → check-COlaG7Ss.js} +1 -1
- package/dist/{chunk-3AY6CYHV-B2C-aVc3.js → chunk-3AY6CYHV-BQH2fFpA.js} +10 -10
- package/dist/{chunk-4BX2VUAB-DEd4VI9L.js → chunk-4BX2VUAB-D-QtDCKM.js} +1 -1
- package/dist/{chunk-4KMFLZZN-DnvP3O4K.js → chunk-4KMFLZZN-BirZvvJS.js} +13 -13
- package/dist/{chunk-55IACEB6-BcCzwOOl.js → chunk-55IACEB6-DjtPYZKs.js} +1 -1
- package/dist/{chunk-6OXUPJBA-eNAAfJ3Q.js → chunk-6OXUPJBA-CTnnqlzw.js} +7 -7
- package/dist/{chunk-7GE3RBXV-CSAeQvLz.js → chunk-7GE3RBXV-CT47hCrL.js} +1 -1
- package/dist/{chunk-ABZYJK2D-CZcb_1iM.js → chunk-ABZYJK2D-B6ZsU6SR.js} +484 -1039
- package/dist/{chunk-BN7GFLIU-pBc5O5Rh.js → chunk-BN7GFLIU-DYWEsrG4.js} +1 -1
- package/dist/{chunk-CVBHYZKI-CivHZg9P.js → chunk-CVBHYZKI-BuzDGXz0.js} +1 -1
- package/dist/{chunk-CXMOBAN2-Dd0E6qb0.js → chunk-CXMOBAN2-Bas2S5w1.js} +6 -6
- package/dist/{chunk-EXTU4WIE-GQ2ZWfJo.js → chunk-EXTU4WIE-DXwNSukz.js} +2 -2
- package/dist/{chunk-FMBD7UC4-C6YcisV6.js → chunk-FMBD7UC4-CYKEpuPr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-DYeQaT57.js → chunk-JA3XYJ7Z-DcxfkcDC.js} +4 -4
- package/dist/{chunk-JEIROHC2-B-EZMP4V.js → chunk-JEIROHC2-C01ZIcIG.js} +1 -1
- package/dist/{chunk-K7UQS3LO-DENzlS-M.js → chunk-K7UQS3LO-CmbT97MV.js} +7 -7
- package/dist/{chunk-KMC2YHZD-SckhHdEh.js → chunk-KMC2YHZD-D64m-1E1.js} +1 -1
- package/dist/{chunk-QN33PNHL-Cjq5b604.js → chunk-QN33PNHL-DjB0j8Dr.js} +2 -2
- package/dist/{chunk-QYVHNE3D-CNUuivie.js → chunk-QYVHNE3D-VA4W4oxG.js} +2 -2
- package/dist/{chunk-QZHKN3VN-DugEU_bA.js → chunk-QZHKN3VN-KT0fl3Em.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-itCT6Vif.js → chunk-S3R3BYOJ-C5zmcMvn.js} +6 -6
- package/dist/{chunk-T44TD3VJ-BLdfTX8J.js → chunk-T44TD3VJ-BMOgu-Hk.js} +1 -1
- package/dist/{chunk-TVAH2DTR-BOnwF9d8.js → chunk-TVAH2DTR-eKm8SKnH.js} +6 -6
- package/dist/{chunk-TZMSLE5B-DGs66AlL.js → chunk-TZMSLE5B-CQxFRiI2.js} +3 -3
- package/dist/{chunk-WFRQ32O7-CPsipkmJ.js → chunk-WFRQ32O7-Dg51o277.js} +1 -1
- package/dist/{chunk-WFWHJNB7-Cmed18Pk.js → chunk-WFWHJNB7-DVLO98ge.js} +1 -1
- package/dist/{chunk-XRWGC2XP-DH5GDaY8.js → chunk-XRWGC2XP-UNFKdWQh.js} +1 -1
- package/dist/{chunk-ZPAFE4SF-DPDwaqZm.js → chunk-ZPAFE4SF-DbCSwfLK.js} +1 -1
- package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +40 -0
- package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +40 -0
- package/dist/{click-outside-container-CL_FkgGY.js → click-outside-container-2BH589Bq.js} +2 -2
- package/dist/{clike-DYfRWWXk.js → clike-CytFO-kN.js} +1 -1
- package/dist/clojure-8GefCgPe.js +4 -0
- package/dist/{clone-Msbhmn2a.js → clone-CCgVUJ6x.js} +1 -1
- package/dist/cmake-yAhT9H0F.js +4 -0
- package/dist/cobol-BmltueOY.js +4 -0
- package/dist/coffeescript-C7KEQBcH.js +4 -0
- package/dist/commonlisp-CNbiJRU-.js +4 -0
- package/dist/{constants-BCOEQoEQ.js → constants-BaCMVd12.js} +3 -3
- package/dist/{copy-BkZ8PkBM.js → copy-GNcK40wy.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-BZnbwyVD.js → cose-bilkent-S5V4N54A-BnvuJG6Y.js} +3 -3
- package/dist/crystal-OdjZZ8bc.js +4 -0
- package/dist/css-DhTxMmL_.js +5 -0
- package/dist/cypher-CgN8E3YI.js +4 -0
- package/dist/d-g41sJcBC.js +4 -0
- package/dist/{dagre-5GWH7T2D-BGaiSZZO.js → dagre-5GWH7T2D-rn7tZYaQ.js} +37 -36
- package/dist/{dagre-pyfDIOWJ.js → dagre-Bghq6VKO.js} +13 -13
- package/dist/{data-grid-overlay-editor-867aBz0Y.js → data-grid-overlay-editor-B4_Caieu.js} +4 -4
- package/dist/{diagram-N5W7TBWH-CzLE0jZB.js → diagram-N5W7TBWH-lbF94o-g.js} +41 -40
- package/dist/{diagram-QEK2KX5R-AGS60xEZ.js → diagram-QEK2KX5R-CKBhSzsO.js} +35 -34
- package/dist/{diagram-S2PKOQOG-BxRoG6yW.js → diagram-S2PKOQOG-161_1f53.js} +35 -34
- package/dist/diff-ViRYYhhg.js +4 -0
- package/dist/{dist-PGgOcwbF.js → dist-28HYzERB.js} +2 -2
- package/dist/{dist-CfQHSIQC.js → dist-4dtbqf8A.js} +3 -3
- package/dist/{dist-CYhQCVru.js → dist-71jYYbWP.js} +2 -2
- package/dist/{dist-Cacac5HV.js → dist-B8Pbw5ln.js} +2 -2
- package/dist/{dist-z_iuDES7.js → dist-BAqp4Vtl.js} +1 -1
- package/dist/{dist-RwqAqkpG.js → dist-BBhmkni2.js} +1 -1
- package/dist/{dist-DMxl6Qbu.js → dist-BNRdMfJH.js} +2 -2
- package/dist/{dist-Doiq_KIP.js → dist-BSyYM1Gi.js} +6 -6
- package/dist/{dist-NUdHX0XE.js → dist-BYHiiJB-.js} +2 -2
- package/dist/{dist-B0YD1aXi.js → dist-B_wjJqqS.js} +2 -2
- package/dist/{dist-DBhEu3-F.js → dist-BaPjLM6s.js} +1 -1
- package/dist/dist-BfJO8Bm9.js +12 -0
- package/dist/{dist-BFkr6kAQ.js → dist-BqdQPWpQ.js} +2 -2
- package/dist/{dist-DlHkZUnY.js → dist-C2IEc8og.js} +5 -5
- package/dist/{dist-DS6nuHYK.js → dist-C9-uHBqC.js} +1 -1
- package/dist/{dist-B1Dv8Sdk.js → dist-CJb8EiFO.js} +3 -3
- package/dist/dist-CLuF3AtO.js +6 -0
- package/dist/{dist-CId4IPXu.js → dist-CNAkUyxv.js} +1 -1
- package/dist/{dist-RdxOJbBw.js → dist-CNvMOZu9.js} +2 -2
- package/dist/{dist-C7zhQ7K0.js → dist-CPNnKuPh.js} +1 -1
- package/dist/{dist-ivwkJchV.js → dist-CTIyD_KU.js} +3 -3
- package/dist/dist-CU04U4NL.js +10 -0
- package/dist/{dist-D-3fICwh.js → dist-CWh5ZwcC.js} +2 -2
- package/dist/{dist-d5NxvX2s.js → dist-CWqB4bg8.js} +3 -3
- package/dist/{dist-biZ846D9.js → dist-CtOeHDJp.js} +5 -5
- package/dist/{dist-BL2DSY0P.js → dist-Cw0F6l-7.js} +1 -1
- package/dist/{dist-wHVprCkn.js → dist-CwZcC4om.js} +1 -1
- package/dist/dist-DNUT6b47.js +6 -0
- package/dist/{dist-CZq5-ZyD.js → dist-Da046MhT.js} +1 -1
- package/dist/{dist-reo2kYlN.js → dist-DaTVdKJa.js} +2 -2
- package/dist/dist-DbAb2sY7.js +6 -0
- package/dist/dist-DiDFQ2Rk.js +6 -0
- package/dist/{dist-BpzZrRd6.js → dist-DlK420ke.js} +1 -1
- package/dist/{dist-CvyfRaIr.js → dist-Drf3cyIW.js} +3 -3
- package/dist/{dist-2Ne-33Xy.js → dist-DxESp2-T.js} +3 -3
- package/dist/{dist-CkvGMBAS.js → dist-DzJem5xc.js} +1 -1
- package/dist/{dist-y8uoXYaE.js → dist-O0zVziwn.js} +3 -3
- package/dist/dist-SNAyAOJ-.js +6 -0
- package/dist/{dist-BhVFggab.js → dist-_4cudra1.js} +3 -3
- package/dist/dist-cbW5xJNV.js +6 -0
- package/dist/dist-h8eGLSbK.js +10 -0
- package/dist/{dist-CBhnQKQ4.js → dist-xLN9qCAp.js} +3 -3
- package/dist/{dockerfile-sZMPcXVY.js → dockerfile-Cmlcqk35.js} +1 -1
- package/dist/dtd-RplB6hDg.js +4 -0
- package/dist/dylan-BX8KJufP.js +4 -0
- package/dist/ecl-CWtLaNMH.js +4 -0
- package/dist/eiffel-C-mlZPMn.js +4 -0
- package/dist/elm-CWp06vcb.js +4 -0
- package/dist/{erDiagram-AWTI2OKA-CTxzb-U8.js → erDiagram-AWTI2OKA-BU7Qig7n.js} +30 -29
- package/dist/erlang-pfp22AZM.js +4 -0
- package/dist/error-banner-BAWlXn49.js +1012 -0
- package/dist/{esm-CAWW9sum.js → esm-AtKNNGYO.js} +1 -1
- package/dist/esm-B2pocBPL.js +26 -0
- package/dist/{esm-BdiY4QsX.js → esm-Oo8OvZ6m.js} +110 -110
- package/dist/{esm-YY5zh7KV.js → esm-YVnxJqkD.js} +20 -20
- package/dist/{factor-CRFTmP_a.js → factor-BZnBK3CG.js} +1 -1
- package/dist/factor-CEn53jua.js +5 -0
- package/dist/{flowDiagram-PVAE7QVJ-Dck2hiJe.js → flowDiagram-PVAE7QVJ-JKJebWeY.js} +39 -38
- package/dist/{formats-BnqXUb1V.js → formats-DOEuF6TR.js} +8 -8
- package/dist/forth-CL8vu_y8.js +4 -0
- package/dist/fortran-DsmXkYtE.js +4 -0
- package/dist/{ganttDiagram-OWAHRB6G-AWzfzpup.js → ganttDiagram-OWAHRB6G-BvWRfg05.js} +17 -16
- package/dist/gas-mYt9Rtlx.js +4 -0
- package/dist/gherkin-DHNCKBNj.js +4 -0
- package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +21 -0
- package/dist/{gitGraphDiagram-NY62KEGX-GyNboWSV.js → gitGraphDiagram-NY62KEGX-VEJJBf5L.js} +35 -34
- package/dist/{glide-data-editor-DHuN8kQ8.js → glide-data-editor-Bne10icG.js} +87 -85
- package/dist/{graphlib-hb3zmtVD.js → graphlib-DRS8CrjA.js} +5 -5
- package/dist/groovy-DzRtOS5a.js +4 -0
- package/dist/haskell-Bl9iT_Mp.js +4 -0
- package/dist/haxe-DqA0ED6k.js +5 -0
- package/dist/{hotkeys-Ct2T3e9O.js → hotkeys-DVxFjl2s.js} +12 -0
- package/dist/idl-WU2hil4i.js +4 -0
- package/dist/info-63CPKGFF-CG-xzUJo.js +21 -0
- package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +45 -0
- package/dist/invariant-D3JoRb4I.js +6 -0
- package/dist/{isEmpty--odfYjh1.js → isEmpty-Do_v2sls.js} +2 -2
- package/dist/{isSymbol-Cb1f2HgO.js → isSymbol-CtkA8Y0a.js} +1 -1
- package/dist/javascript-QY2BGJeV.js +5 -0
- package/dist/jinja2-Czleq7Sk.js +4 -0
- package/dist/{journeyDiagram-BIP6EPQ6-TmXYCUbT.js → journeyDiagram-BIP6EPQ6-CsgEQgxh.js} +10 -9
- package/dist/julia-Dru3Qi0y.js +4 -0
- package/dist/{kanban-definition-6OIFK2YF-B6ozleHo.js → kanban-definition-6OIFK2YF-Bi8Ete2P.js} +42 -41
- package/dist/{katex-mPzRsXEy.js → katex-C-g3rKKt.js} +1 -1
- package/dist/{label-VVRKZmrP.js → label-BiVIU_wb.js} +245 -243
- package/dist/{line-C6-zz71o.js → line-B7-GoF1m.js} +3 -3
- package/dist/{linear-iebAbJVD.js → linear-DeGGALuc.js} +4 -4
- package/dist/livescript-Dxqi_HLT.js +4 -0
- package/dist/{loader-CM0VALo9.js → loader-BBqwtZWj.js} +3 -3
- package/dist/lua-ByH1cUQZ.js +4 -0
- package/dist/main.js +11785 -11529
- package/dist/mathematica-CWJIFuES.js +4 -0
- package/dist/mbox-qhPIGaUI.js +4 -0
- package/dist/{memoize-DYoRBSLn.js → memoize-D7eDkf3R.js} +1 -1
- package/dist/{merge-BjuR6j_w.js → merge-C_6cGM6o.js} +1 -1
- package/dist/{mermaid-YPPMBmhk.js → mermaid-BmtvsZ2m.js} +323 -321
- package/dist/{mermaid-parser.core-BLkyTSZj.js → mermaid-parser.core-geyG_6o0.js} +8 -8
- package/dist/{mhchem-Dw7wvXtr.js → mhchem-OhAaJ0fA.js} +1 -1
- package/dist/{min-B_i2ahn4.js → min-Dwa_NbP6.js} +7 -7
- package/dist/{mindmap-definition-Q6HEUPPD-F6-JnXwq.js → mindmap-definition-Q6HEUPPD-B-wmX1oG.js} +29 -28
- package/dist/mirc-yYcXhXBY.js +4 -0
- package/dist/mllike-BfT_Nl9x.js +6 -0
- package/dist/modelica-lVDtz1Rm.js +4 -0
- package/dist/mscgen-DvwdD1QJ.js +6 -0
- package/dist/mumps-BiY3GwKd.js +4 -0
- package/dist/{now-CwRqw0nS.js → now-DumxsrcX.js} +1 -1
- package/dist/{nsis-BWJEeUyS.js → nsis-D4bLR_Y1.js} +1 -1
- package/dist/nsis-Dk18Sq_4.js +5 -0
- package/dist/ntriples-Cj-8VqKF.js +4 -0
- package/dist/{number-overlay-editor-CeyruAX4.js → number-overlay-editor-D6r-48ka.js} +2 -2
- package/dist/octave-BgFAaYjU.js +4 -0
- package/dist/once-3OSMKEsL.js +74 -0
- package/dist/{ordinal-BXk5xAj2.js → ordinal-DpEbSVPc.js} +1 -1
- package/dist/oz-IsEG1I1m.js +4 -0
- package/dist/packet-HUATNLJX-Cafuo3IG.js +21 -0
- package/dist/pascal-BVf7FtIE.js +4 -0
- package/dist/perl-BM0-y4mZ.js +4 -0
- package/dist/pie-WTHONI2E-BE0pHBwB.js +21 -0
- package/dist/{pieDiagram-ADFJNKIX-C5dSQVCn.js → pieDiagram-ADFJNKIX-C3GvPNUL.js} +40 -39
- package/dist/pig-CLBjzQmc.js +4 -0
- package/dist/powershell-B_qvE33J.js +4 -0
- package/dist/{precisionRound-DbP73hkf.js → precisionRound-7YYJq2rW.js} +1 -1
- package/dist/properties-CUTpsH2y.js +4 -0
- package/dist/protobuf-DqCP8a-0.js +4 -0
- package/dist/pug-BvexKkw4.js +5 -0
- package/dist/{pug-PJh82u1M.js → pug-Dv3gE36O.js} +1 -1
- package/dist/puppet-CoIi0R3f.js +4 -0
- package/dist/purify.es-CrfFzTyi.js +536 -0
- package/dist/python-C-11-YMh.js +5 -0
- package/dist/q-CCVgEip7.js +4 -0
- package/dist/{quadrantDiagram-LMRXKWRM-DlahxNiy.js → quadrantDiagram-LMRXKWRM-DPXwGNVa.js} +8 -7
- package/dist/r-CIdR0Sfs.js +4 -0
- package/dist/radar-NJJJXTRR-0adgjw0u.js +21 -0
- package/dist/{range-DxfkexCE.js → range-CIbLpsrs.js} +3 -3
- package/dist/{react-plotly-D_IAfR8f.js → react-plotly-DYyvxcRD.js} +1 -1
- package/dist/{requirementDiagram-4UW4RH46-DTkinyvU.js → requirementDiagram-4UW4RH46-Cs3Hqnm0.js} +24 -23
- package/dist/rpm-Dwvm039g.js +5 -0
- package/dist/ruby-DpTnO5gb.js +4 -0
- package/dist/{sankeyDiagram-GR3RE2ED-CsLnEnnq.js → sankeyDiagram-GR3RE2ED-Be1d_Xf7.js} +7 -6
- package/dist/sas-CK9boxgv.js +4 -0
- package/dist/scheme-Y1aYL-Qq.js +4 -0
- package/dist/{sequenceDiagram-C3RYC4MD-BdEOR6SC.js → sequenceDiagram-C3RYC4MD-lbtovKTa.js} +14 -13
- package/dist/shell-D3eXGsHd.js +4 -0
- package/dist/sieve-BdwSFdWJ.js +4 -0
- package/dist/{slides-component-2bbal1YJ.js → slides-component-BoeQU7-s.js} +999 -998
- package/dist/smalltalk-BTYJquCm.js +4 -0
- package/dist/sparql-CYF0g4Cc.js +4 -0
- package/dist/{src-DZkaBUmt.js → src-BTqT1mA1.js} +1 -1
- package/dist/{stateDiagram-KXAO66HF-DQLH2jhP.js → stateDiagram-KXAO66HF-BmbR-Rol.js} +40 -39
- package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +39 -0
- package/dist/{step-IHYrujTc.js → step-2RJrMSSG.js} +1 -1
- package/dist/stex-CyWhoWHt.js +5 -0
- package/dist/style.css +1 -1
- package/dist/stylus-BBiKaI2h.js +4 -0
- package/dist/swift-COb15qFR.js +4 -0
- package/dist/tcl-Jik1LXu9.js +4 -0
- package/dist/textile-BFHPD3wr.js +4 -0
- package/dist/{time-CFkXkVrt.js → time-BB30r1tK.js} +4 -4
- package/dist/{timeline-definition-XQNQX7LJ-bToVq14i.js → timeline-definition-XQNQX7LJ-1mv5caPW.js} +16 -15
- package/dist/{toNumber-EFF1Z9T1.js → toNumber-D3Ystr3y.js} +2 -2
- package/dist/{toString-C2mCkasT.js → toString-CbuxCRDG.js} +2 -2
- package/dist/toml-Brp9fBXs.js +4 -0
- package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +21 -0
- package/dist/troff-CcZRW4vg.js +4 -0
- package/dist/ttcn-Bz_6ifRd.js +4 -0
- package/dist/ttcn-cfg-v-yi2rKc.js +4 -0
- package/dist/turtle-CDOsZYhB.js +4 -0
- package/dist/{types-CRXV0KD5.js → types-BPohCsA7.js} +141 -210
- package/dist/{useAsyncData-uMVTsDI9.js → useAsyncData-DHBqeb9a.js} +3 -2
- package/dist/{useDateFormatter-Dcz7jstn.js → useDateFormatter-BkbjKw83.js} +9 -9
- package/dist/useIframeCapabilities-BEvvwlwt.js +46 -0
- package/dist/{useTheme-NbEx-ZNV.js → useTheme-CnMbo-iq.js} +23 -23
- package/dist/vb-CL7fRwRw.js +4 -0
- package/dist/vbscript-CR2xfxpw.js +4 -0
- package/dist/{vega-component-hegVmfuS.js → vega-component-BfFcXZxw.js} +40 -39
- package/dist/{vega-loader.browser.module-DcW8jnKp.js → vega-loader.browser.module-CFMtdrNw.js} +3 -3
- package/dist/velocity-CfuZoxPt.js +4 -0
- package/dist/verilog-CySTkzw_.js +4 -0
- package/dist/vhdl-Dvcd8KHW.js +4 -0
- package/dist/webidl-tbJt7sKk.js +4 -0
- package/dist/xquery-DJQVztyc.js +4 -0
- package/dist/{xychartDiagram-6GGTOJPD-C7Bhm_yt.js → xychartDiagram-6GGTOJPD-njc-naaw.js} +23 -22
- package/dist/yacas-BbgBReEH.js +4 -0
- package/dist/z80-DPyb8VGz.js +4 -0
- package/package.json +10 -6
- package/src/components/app-config/ai-config.tsx +1 -3
- package/src/components/app-config/common.tsx +14 -0
- package/src/components/app-config/data-form.tsx +282 -0
- package/src/components/app-config/user-config-form.tsx +36 -223
- package/src/components/chat/acp/__tests__/state.test.ts +75 -2
- package/src/components/chat/acp/agent-panel.tsx +143 -89
- package/src/components/chat/acp/blocks.tsx +77 -34
- package/src/components/chat/acp/state.ts +5 -1
- package/src/components/chat/acp/thread.tsx +12 -1
- package/src/components/chat/chat-panel.tsx +38 -5
- package/src/components/chat/chat-utils.ts +5 -1
- package/src/components/chat/markdown-renderer.css +1 -0
- package/src/components/chat/tool-call-accordion.tsx +7 -1
- package/src/components/data-table/charts/__tests__/storage.test.ts +12 -6
- package/src/components/data-table/charts/charts.tsx +8 -2
- package/src/components/data-table/charts/storage.ts +1 -1
- package/src/components/data-table/column-wrapping/feature.ts +2 -0
- package/src/components/data-table/columns.tsx +10 -2
- package/src/components/data-table/renderers.tsx +3 -2
- package/src/components/editor/Output.tsx +28 -24
- package/src/components/editor/actions/useCellActionButton.tsx +20 -4
- package/src/components/editor/ai/add-cell-with-ai.tsx +17 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +79 -32
- package/src/components/editor/ai/completion-handlers.tsx +26 -7
- package/src/components/editor/cell/StagedAICell.tsx +81 -12
- package/src/components/editor/cell/code/cell-editor.tsx +2 -3
- package/src/components/editor/cell/useRunCells.ts +62 -30
- package/src/components/editor/chrome/panels/cache-panel.tsx +2 -2
- package/src/components/editor/chrome/panels/packages-panel.tsx +1 -1
- package/src/components/editor/chrome/state.ts +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +2 -0
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +108 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
- package/src/components/editor/code/readonly-diff.tsx +49 -0
- package/src/components/editor/columns/storage.ts +1 -1
- package/src/components/editor/errors/fix-mode.ts +6 -1
- package/src/components/editor/inputs/Inputs.styles.ts +1 -1
- package/src/components/editor/output/CalloutOutput.tsx +1 -1
- package/src/components/editor/output/HtmlOutput.tsx +3 -2
- package/src/components/editor/output/JsonOutput.tsx +6 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +59 -45
- package/src/components/editor/output/__tests__/HtmlOutput.test.tsx +134 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +8 -1
- package/src/components/editor/output/useWrapText.ts +6 -1
- package/src/components/editor/package-alert.tsx +34 -32
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +5 -2
- package/src/components/home/state.ts +3 -2
- package/src/components/scratchpad/scratchpad-history.ts +6 -1
- package/src/components/slides/slides-component.tsx +25 -21
- package/src/components/ui/confirmation-button.tsx +1 -1
- package/src/components/ui/context-menu.tsx +14 -4
- package/src/components/ui/dropdown-menu.tsx +14 -4
- package/src/components/ui/fullscreen.tsx +115 -1
- package/src/components/ui/popover.tsx +11 -3
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/select.tsx +7 -3
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/tooltip.tsx +10 -3
- package/src/core/ai/__tests__/staged-cells.test.ts +189 -64
- package/src/core/ai/config.ts +6 -2
- package/src/core/ai/context/providers/__tests__/__snapshots__/cell-output.test.ts.snap +17 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +194 -10
- package/src/core/ai/context/providers/cell-output.ts +170 -112
- package/src/core/ai/context/providers/tables.ts +2 -2
- package/src/core/ai/staged-cells.ts +32 -16
- package/src/core/ai/state.ts +2 -1
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +556 -0
- package/src/core/ai/tools/__tests__/registry.test.ts +12 -4
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +450 -0
- package/src/core/ai/tools/__tests__/utils.test.ts +87 -0
- package/src/core/ai/tools/base.ts +31 -8
- package/src/core/ai/tools/edit-notebook-tool.ts +239 -0
- package/src/core/ai/tools/registry.ts +13 -6
- package/src/core/ai/tools/run-cells-tool.ts +233 -0
- package/src/core/ai/tools/sample-tool.ts +10 -8
- package/src/core/ai/tools/utils.ts +23 -0
- package/src/core/cells/__tests__/cells.test.ts +19 -1
- package/src/core/cells/__tests__/session.test.ts +20 -3
- package/src/core/cells/cells.ts +12 -7
- package/src/core/cells/session.ts +1 -1
- package/src/core/codemirror/ai/resources.ts +13 -2
- package/src/core/codemirror/copilot/state.ts +4 -2
- package/src/core/codemirror/language/__tests__/extension.test.ts +10 -2
- package/src/core/codemirror/language/languages/markdown.ts +16 -153
- package/src/core/codemirror/language/languages/python.ts +12 -7
- package/src/core/codemirror/language/languages/sql/sql-mode.ts +6 -1
- package/src/core/codemirror/language/languages/sql/sql.ts +20 -293
- package/src/core/codemirror/language/panel/markdown.tsx +2 -1
- package/src/core/codemirror/language/panel/panel.tsx +1 -1
- package/src/core/codemirror/lsp/federated-lsp.ts +1 -1
- package/src/core/codemirror/lsp/transports.ts +7 -13
- package/src/core/config/config-schema.ts +4 -1
- package/src/core/hotkeys/hotkeys.ts +12 -0
- package/src/core/lsp/__tests__/transport.test.ts +233 -0
- package/src/core/lsp/transport.ts +139 -0
- package/src/core/rtc/state.ts +6 -1
- package/src/core/vscode/is-in-vscode.ts +9 -0
- package/src/core/wasm/store.ts +1 -1
- package/src/css/app/Cell.css +31 -0
- package/src/css/globals.css +5 -0
- package/src/hooks/useIframeCapabilities.ts +14 -0
- package/src/hooks/useLocalStorage.ts +1 -1
- package/src/plugins/core/RenderHTML.tsx +65 -5
- package/src/plugins/core/__test__/RenderHTML.test.ts +25 -23
- package/src/plugins/core/__test__/renderHTML-sanitization.test.tsx +131 -0
- package/src/plugins/core/__test__/sanitize.test.ts +465 -0
- package/src/plugins/core/registerReactComponent.tsx +14 -1
- package/src/plugins/core/sanitize.ts +76 -0
- package/src/plugins/impl/DataTablePlugin.tsx +1 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +1 -3
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +8 -1
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +6 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +8 -1
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +3 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +42 -0
- package/src/utils/__tests__/capabilities.test.ts +453 -0
- package/src/utils/__tests__/formatting.test.ts +13 -13
- package/src/utils/__tests__/local-storage.test.ts +1 -1
- package/src/utils/__tests__/storage.test.ts +21 -21
- package/src/utils/arrays.ts +25 -0
- package/src/utils/capabilities.ts +114 -0
- package/src/utils/numbers.ts +2 -2
- package/src/utils/{storage.ts → storage/jotai.ts} +16 -4
- package/src/utils/storage/storage.ts +57 -0
- package/src/utils/{localStorage.ts → storage/typed.ts} +22 -12
- package/dist/any-language-editor-CEXn1vFs.js +0 -156
- package/dist/apl-DuVfHsPc.js +0 -4
- package/dist/architecture-O4VJ6CD3-lp-opOaL.js +0 -21
- package/dist/asciiarmor-qIVWsi4F.js +0 -4
- package/dist/asn1-BjPqARr7.js +0 -4
- package/dist/assets/__vite-browser-external-lX-sn9m2.js +0 -1
- package/dist/brainfuck-DPGTVfkE.js +0 -4
- package/dist/classDiagram-KNZD7YFC-azuS_99k.js +0 -39
- package/dist/classDiagram-v2-RKCZMP56-CQpyQQOR.js +0 -39
- package/dist/clojure-ATksAecl.js +0 -4
- package/dist/cmake-CWylaz2C.js +0 -4
- package/dist/cobol-BiLLCZIQ.js +0 -4
- package/dist/coffeescript-Ca4jipi8.js +0 -4
- package/dist/commonlisp-BwFjyEC7.js +0 -4
- package/dist/crystal-BhUsQHbh.js +0 -4
- package/dist/css-Cf4wlIyV.js +0 -5
- package/dist/cypher-Dj8Hzgxa.js +0 -4
- package/dist/d-DZI7tbTy.js +0 -4
- package/dist/diff-WQISUHG5.js +0 -4
- package/dist/dist-BawZu0ix.js +0 -10
- package/dist/dist-BiOF7987.js +0 -6
- package/dist/dist-Cs3McXEj.js +0 -6
- package/dist/dist-D3aaithT.js +0 -6
- package/dist/dist-DELcMSpJ.js +0 -6
- package/dist/dist-Dgts3WXd.js +0 -6
- package/dist/dist-DtpUiDG_.js +0 -6
- package/dist/dist-ZjnJq_jD.js +0 -10
- package/dist/dist-mof3iuBu.js +0 -12
- package/dist/dtd-B2M8dhfC.js +0 -4
- package/dist/dylan-CU3Vt8SC.js +0 -4
- package/dist/ecl-B8ESAVq4.js +0 -4
- package/dist/eiffel-DDfMIKeA.js +0 -4
- package/dist/elm-Bj6rj8jf.js +0 -4
- package/dist/erlang-BxyshZUq.js +0 -4
- package/dist/error-banner-npbEfanI.js +0 -1012
- package/dist/esm-svAVli9f.js +0 -26
- package/dist/factor-CYk6XT8r.js +0 -5
- package/dist/forth-fcoJkd-f.js +0 -4
- package/dist/fortran-IxZHu4wc.js +0 -4
- package/dist/gas-B8rmKcim.js +0 -4
- package/dist/gherkin-BTm-jIdJ.js +0 -4
- package/dist/gitGraph-ZV4HHKMB-DFg_OLQb.js +0 -21
- package/dist/groovy-01kRHFMD.js +0 -4
- package/dist/haskell-B3PhE05w.js +0 -4
- package/dist/haxe-DEoAm8oA.js +0 -5
- package/dist/idl-DsDJU9cV.js +0 -4
- package/dist/info-63CPKGFF-D3DZmDBa.js +0 -21
- package/dist/infoDiagram-STP46IZ2-ec08vi_U.js +0 -44
- package/dist/javascript-gwczVhuU.js +0 -5
- package/dist/jinja2-AkZRdFk3.js +0 -4
- package/dist/julia-_s6qe3bf.js +0 -4
- package/dist/livescript-CwPHQdv5.js +0 -4
- package/dist/lua-s7nRxkCP.js +0 -4
- package/dist/mathematica-Ci36yd1q.js +0 -4
- package/dist/mbox-DbOYMNCO.js +0 -4
- package/dist/mirc-VmNe8AwF.js +0 -4
- package/dist/mllike-BdD7SJEa.js +0 -6
- package/dist/modelica-BA4VqzC3.js +0 -4
- package/dist/mscgen-DF-5WHJm.js +0 -6
- package/dist/mumps-c_Uia_QN.js +0 -4
- package/dist/nsis-BAANGODV.js +0 -5
- package/dist/ntriples-Bslqh2Ki.js +0 -4
- package/dist/octave-DYn5ltia.js +0 -4
- package/dist/oz-B_N-StZq.js +0 -4
- package/dist/packet-HUATNLJX-CkqjFdAv.js +0 -21
- package/dist/pascal-DU4CtAUu.js +0 -4
- package/dist/perl-Bae6k32u.js +0 -4
- package/dist/pie-WTHONI2E-D0rWwX5P.js +0 -21
- package/dist/pig-DSIxUEgX.js +0 -4
- package/dist/powershell-31lcPgIF.js +0 -4
- package/dist/properties-lmYbntDG.js +0 -4
- package/dist/protobuf-BTYoCEpV.js +0 -4
- package/dist/pug-DMFM7zzO.js +0 -5
- package/dist/puppet-B0ub07d-.js +0 -4
- package/dist/python-C4jT87Nt.js +0 -5
- package/dist/q-YbPYlqRI.js +0 -4
- package/dist/r-OfNu6HAI.js +0 -4
- package/dist/radar-NJJJXTRR-Bxqv4O5a.js +0 -21
- package/dist/rpm-D_3b5peD.js +0 -5
- package/dist/ruby-CehsJy_T.js +0 -4
- package/dist/sas-DwQHzPoF.js +0 -4
- package/dist/scheme-B6ArxiQu.js +0 -4
- package/dist/shell-AHmQgDfc.js +0 -4
- package/dist/sieve-CgodKOcx.js +0 -4
- package/dist/smalltalk-BeFzDkbo.js +0 -4
- package/dist/sparql-BWxq-Lnx.js +0 -4
- package/dist/stateDiagram-v2-UMBNRL4Z-D9v8fKjF.js +0 -38
- package/dist/stex-Dvaq0qsm.js +0 -5
- package/dist/stylus-Ge0ofWlZ.js +0 -4
- package/dist/swift-CjQfbVxV.js +0 -4
- package/dist/tcl-CAGDF11K.js +0 -4
- package/dist/textile-CrXreJtf.js +0 -4
- package/dist/toml-AdLXKwEi.js +0 -4
- package/dist/treemap-75Q7IDZK-Da9Jv6a_.js +0 -21
- package/dist/troff-C-LaM2ex.js +0 -4
- package/dist/ttcn-DTclUi6T.js +0 -4
- package/dist/ttcn-cfg-BtBPbmLX.js +0 -4
- package/dist/turtle-BODDDg5O.js +0 -4
- package/dist/vb-Cb1HQHii.js +0 -4
- package/dist/vbscript-CpXOP4wZ.js +0 -4
- package/dist/velocity-Dz0rBQIk.js +0 -4
- package/dist/verilog-6Di9aLKw.js +0 -4
- package/dist/vhdl-BRNesXYc.js +0 -4
- package/dist/webidl-BpRNYIYn.js +0 -4
- package/dist/xquery-DXWcJ7b6.js +0 -4
- package/dist/yacas-DbSARPz4.js +0 -4
- package/dist/z80-DzslPj_l.js +0 -4
- package/src/core/codemirror/language/__tests__/ast.test.ts +0 -124
- package/src/core/codemirror/language/utils/ast.ts +0 -84
- package/src/core/codemirror/language/utils/quotes.ts +0 -18
- /package/dist/{_arrayReduce-CVwxyrBP.js → _arrayReduce-Cd9xQjbl.js} +0 -0
- /package/dist/{_baseSlice-OgpvpOOJ.js → _baseSlice-CE9WsQZm.js} +0 -0
- /package/dist/{_hasUnicode-BgIggCqE.js → _hasUnicode-DkEebvtD.js} +0 -0
- /package/dist/{apl-CEHentF4.js → apl-aGhy11IM.js} +0 -0
- /package/dist/{array-aAxy08hN.js → array-DYSXIreg.js} +0 -0
- /package/dist/{asciiarmor-DURYiCS0.js → asciiarmor-DJKJ3Gkn.js} +0 -0
- /package/dist/{asn1-ETAiEoXY.js → asn1-C6f5IeNs.js} +0 -0
- /package/dist/{asterisk-DTpbbXPb.js → asterisk-DB1poX9_.js} +0 -0
- /package/dist/{brainfuck-BWQep-SA.js → brainfuck-Ch9vjun0.js} +0 -0
- /package/dist/{chunk-57QY23SG-0TxCfmy_.js → chunk-57QY23SG-BpXU7ph4.js} +0 -0
- /package/dist/{clike-bzZTreP4.js → clike-Bc2PZzZQ.js} +0 -0
- /package/dist/{clojure-BzFapDkA.js → clojure-B_lpr3zt.js} +0 -0
- /package/dist/{cmake-DvlbIC8x.js → cmake-DaocNF4I.js} +0 -0
- /package/dist/{cobol-BrEI4cPR.js → cobol-suTPtt7c.js} +0 -0
- /package/dist/{coffeescript-B6cvu8mO.js → coffeescript-CPLIvtqJ.js} +0 -0
- /package/dist/{colors-Cr_mZ2aH.js → colors-BXlG8Lmz.js} +0 -0
- /package/dist/{common-keywords-WqQm7W8t.js → common-keywords-Bhll7O3b.js} +0 -0
- /package/dist/{commonlisp-BIT8PQqi.js → commonlisp-BqM3qFK7.js} +0 -0
- /package/dist/{crystal-B_UcPArT.js → crystal-AsSFu4ke.js} +0 -0
- /package/dist/{css-dHbnt_zl.js → css-Df7Sdeyh.js} +0 -0
- /package/dist/{cypher-Dh3FOpL7.js → cypher-CaVKL6Gu.js} +0 -0
- /package/dist/{cytoscape.esm-BTpRoPd2.js → cytoscape.esm-BFEMljQI.js} +0 -0
- /package/dist/{d-CQD1IHee.js → d-DCGWK7NQ.js} +0 -0
- /package/dist/{defaultLocale-BAgEOGks.js → defaultLocale-CYgZlqDF.js} +0 -0
- /package/dist/{defaultLocale-471SYAPk.js → defaultLocale-Cto8YOmX.js} +0 -0
- /package/dist/{diff-CpF_IDx0.js → diff-CsxOM4Tr.js} +0 -0
- /package/dist/{dist-CK8Gj3GX.js → dist-C76MUPD3.js} +0 -0
- /package/dist/{dtd-DYoNpy6c.js → dtd-Dwr0Jmks.js} +0 -0
- /package/dist/{duckdb-keywords-CdIsl9L0.js → duckdb-keywords-7wAWf848.js} +0 -0
- /package/dist/{dylan-Bc_2G1E-.js → dylan-A7-ZBSey.js} +0 -0
- /package/dist/{ebnf-jGVT_YpN.js → ebnf-9_SaGDUz.js} +0 -0
- /package/dist/{ecl-UIU-P-Ar.js → ecl-BzJVIQDc.js} +0 -0
- /package/dist/{eiffel-C90Oyuix.js → eiffel-CO9eC_Op.js} +0 -0
- /package/dist/{elm-B9fWSySj.js → elm-CVAWj8SB.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-BHMWayAG.js → emotion-is-prop-valid.esm-C3Yi5GQt.js} +0 -0
- /package/dist/{erlang-Ccff0UAn.js → erlang-DWbZP546.js} +0 -0
- /package/dist/{fcl-CGR8NxAg.js → fcl-CM9t2iay.js} +0 -0
- /package/dist/{forth-U1ROGcBY.js → forth-BTYqUuu3.js} +0 -0
- /package/dist/{fortran-3nOkjDmc.js → fortran-DgAjHcCq.js} +0 -0
- /package/dist/{gas-B_4H5FzV.js → gas-BjDSWPZd.js} +0 -0
- /package/dist/{gherkin-B0eru5Uz.js → gherkin-ClRqqpKv.js} +0 -0
- /package/dist/{groovy-dqjtZUVf.js → groovy-BzNjnc8x.js} +0 -0
- /package/dist/{haskell-DFzCCQzo.js → haskell-DLdk34Jq.js} +0 -0
- /package/dist/{haxe-Da8Pj5RT.js → haxe-l6gaY_IS.js} +0 -0
- /package/dist/{http-1HACL_9s.js → http-6Qg7z_h2.js} +0 -0
- /package/dist/{idl-D3NXs5iM.js → idl-hlWT4D26.js} +0 -0
- /package/dist/{init-D6eDd7H0.js → init-tZ42Torz.js} +0 -0
- /package/dist/{isArrayLikeObject-BlvK28do.js → isArrayLikeObject-DU5MCuQM.js} +0 -0
- /package/dist/{javascript-BfCTmOnk.js → javascript-DGukg1sB.js} +0 -0
- /package/dist/{jinja2-gBHAxUdF.js → jinja2-DI5k_Er3.js} +0 -0
- /package/dist/{julia-bG-6nJ-_.js → julia-BvDZDiIT.js} +0 -0
- /package/dist/{katex-mkWmhPUh.js → katex-DgfMWJY9.js} +0 -0
- /package/dist/{livescript-BlsRC8UJ.js → livescript-2YMQfkfI.js} +0 -0
- /package/dist/{lua-BbDC0_5w.js → lua-DIUrQRfA.js} +0 -0
- /package/dist/{main-Czi9-LVy.js → main-BMTpe7M0.js} +0 -0
- /package/dist/{marked.esm-DJM8la36.js → marked.esm-DkVwEwtO.js} +0 -0
- /package/dist/{math-C7wLpe9K.js → math-qsHyz2Eo.js} +0 -0
- /package/dist/{mathematica-YZTe3-PF.js → mathematica-Dqmg_BwL.js} +0 -0
- /package/dist/{mbox-CY5idp08.js → mbox-Cng-P-F1.js} +0 -0
- /package/dist/{mirc-CbQuFZKk.js → mirc-CNDqOVhQ.js} +0 -0
- /package/dist/{mllike-DsbHMX-5.js → mllike-C1n2UDyX.js} +0 -0
- /package/dist/{modelica-CQuvsOQk.js → modelica-QqQC2pFj.js} +0 -0
- /package/dist/{mscgen-LIpBP9VR.js → mscgen-C3fl8uhp.js} +0 -0
- /package/dist/{mumps-Ct5NXoaG.js → mumps-BeCUbMej.js} +0 -0
- /package/dist/{nginx-Dvc62C8z.js → nginx-ejv7DsBz.js} +0 -0
- /package/dist/{node-sql-parser-BqKV-TpL.js → node-sql-parser-CoPWN4hn.js} +0 -0
- /package/dist/{ntriples-jVkxWUuv.js → ntriples-CUgUpcma.js} +0 -0
- /package/dist/{octave-jGOImUB0.js → octave-BD652tGl.js} +0 -0
- /package/dist/{oz-Y0FKDMS2.js → oz-DrRsFa0K.js} +0 -0
- /package/dist/{pascal-BaLtPWWB.js → pascal-hpcx9sVn.js} +0 -0
- /package/dist/{path-VDkDgx1I.js → path-Bbv2tLY1.js} +0 -0
- /package/dist/{perl-CjfE0JLo.js → perl-DW8XHeFc.js} +0 -0
- /package/dist/{pig-DE4epV99.js → pig-Cv7Nxbfo.js} +0 -0
- /package/dist/{powershell-BZx53Ujw.js → powershell-Dr7WZMDU.js} +0 -0
- /package/dist/{prop-types-0wNc-99T.js → prop-types-Bd16OEUP.js} +0 -0
- /package/dist/{properties-CLyCG5C-.js → properties-D-qJDXAM.js} +0 -0
- /package/dist/{protobuf-BjBBs_V4.js → protobuf-B48QZbd3.js} +0 -0
- /package/dist/{puppet-ZImLuomA.js → puppet-15JDyiY2.js} +0 -0
- /package/dist/{python-C9YN71pR.js → python-DWkQA94h.js} +0 -0
- /package/dist/{q-CMoUHJ5Q.js → q-BzRpKgfd.js} +0 -0
- /package/dist/{r-DILmKWWW.js → r-dcNRe_Q8.js} +0 -0
- /package/dist/{range-PcytnUSJ.js → range-CQvYp_qE.js} +0 -0
- /package/dist/{rpm-fpIsm1Kr.js → rpm-Djl3Dsf1.js} +0 -0
- /package/dist/{ruby-BuiQI41h.js → ruby-Dd2CZTip.js} +0 -0
- /package/dist/{sas-C76sJ1zF.js → sas-DYF5_Iqu.js} +0 -0
- /package/dist/{scheme-DHjM-txv.js → scheme-YtWcji1H.js} +0 -0
- /package/dist/{shell--7NmGJ9p.js → shell-C3uC3Y0Z.js} +0 -0
- /package/dist/{sieve-DaPvBv1M.js → sieve-DHB17sQG.js} +0 -0
- /package/dist/{simple-mode-BP3Jd4vf.js → simple-mode-BMmwP_vI.js} +0 -0
- /package/dist/{smalltalk-KPvwrjCs.js → smalltalk-Y5v1Np3H.js} +0 -0
- /package/dist/{solr-PvZUtEDb.js → solr-DvRJLlRD.js} +0 -0
- /package/dist/{sparql-CXSUIQer.js → sparql-BEt3GJwM.js} +0 -0
- /package/dist/{spreadsheet-DPJdGPkx.js → spreadsheet-Dp4B9_rc.js} +0 -0
- /package/dist/{sql-Dp4ZLSIa.js → sql-DBsUs8nQ.js} +0 -0
- /package/dist/{stex-CeXW4zzk.js → stex-C6-x52ei.js} +0 -0
- /package/dist/{stylus-BXcmrg9w.js → stylus-DroA8via.js} +0 -0
- /package/dist/{swift-DD8I7hKP.js → swift-DR0x1ESK.js} +0 -0
- /package/dist/{tcl-B9Lp4GtA.js → tcl-BeuTFc_c.js} +0 -0
- /package/dist/{textile-qdiY0teq.js → textile-C0ikhHN3.js} +0 -0
- /package/dist/{tiddlywiki-t32lkubq.js → tiddlywiki-C_2Nvsgu.js} +0 -0
- /package/dist/{tiki-B0qKrSMl.js → tiki-CKQlhmQQ.js} +0 -0
- /package/dist/{timer-CzOhIJuk.js → timer-CcUhugb0.js} +0 -0
- /package/dist/{toml-eSl4PUAH.js → toml-BqNUJWRI.js} +0 -0
- /package/dist/{treemap-BpgMKHv-.js → treemap-BYLUKIzA.js} +0 -0
- /package/dist/{troff-105XJOEu.js → troff-DkK0f2ZH.js} +0 -0
- /package/dist/{tslib.es6-DofFyd9S.js → tslib.es6-3ZL768sZ.js} +0 -0
- /package/dist/{ttcn-1_BxDcM8.js → ttcn-Bf8vrg-_.js} +0 -0
- /package/dist/{ttcn-cfg-Cn_XgXiw.js → ttcn-cfg-DjCKzd95.js} +0 -0
- /package/dist/{turtle-BI6LyfEu.js → turtle-SSc84S9m.js} +0 -0
- /package/dist/{vb-BecoBfmr.js → vb-CQ6DC3cL.js} +0 -0
- /package/dist/{vbscript-De-zpA4i.js → vbscript-Dw0gFssg.js} +0 -0
- /package/dist/{velocity-DhlYJTrD.js → velocity-BvJQyBmj.js} +0 -0
- /package/dist/{verilog-BDZgxDOW.js → verilog-CKGAvQjj.js} +0 -0
- /package/dist/{vhdl-CV0OKTbp.js → vhdl-B40_x6fM.js} +0 -0
- /package/dist/{webidl-BOM1Fs0O.js → webidl-Bi9hczCv.js} +0 -0
- /package/dist/{xquery-CltP_CGh.js → xquery-DwWUXvP3.js} +0 -0
- /package/dist/{yacas-Dch4E2Dg.js → yacas-ClUs0mmH.js} +0 -0
- /package/dist/{z80-B5Yly27o.js → z80-DPC4UGzR.js} +0 -0
- /package/dist/{zod-ChY6miG5.js → zod-mAEs2ITo.js} +0 -0
|
@@ -1,1012 +0,0 @@
|
|
|
1
|
-
import { s as __toESM } from "./chunk-DgPTj83v.js";
|
|
2
|
-
import { t as require_react } from "./react-DHL_F5hS.js";
|
|
3
|
-
import { n as require_compiler_runtime, t as require_jsx_runtime } from "./jsx-runtime-DZyWJV5b.js";
|
|
4
|
-
import { E as composeEventHandlers, S as Primitive, T as createContextScope, a as useFocusGuards, b as DismissableLayer, d as Portal, f as Anchor, g as createPopperScope, h as Root2$1, i as FocusScope, l as useControllableState, m as Content$1, n as Combination_default, o as StyleNamespace, p as Arrow, r as hideOthers, s as Root$1, t as withFullScreenAsRoot, u as Presence, v as useId, w as createContext2 } from "./fullscreen-blsKUrtN.js";
|
|
5
|
-
import { d as cn, i as cva, l as useComposedRefs, n as buttonVariants, o as createSlot, s as createSlottable } from "./button-DcnBVpVa.js";
|
|
6
|
-
import { s as Logger } from "./hotkeys-Ct2T3e9O.js";
|
|
7
|
-
import { F as object, z as string } from "./zod-ChY6miG5.js";
|
|
8
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]), usePopperScope = createPopperScope(), PROVIDER_NAME = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME), TooltipProvider$1 = (t) => {
|
|
9
|
-
let { __scopeTooltip: A, delayDuration: j = DEFAULT_DELAY_DURATION, skipDelayDuration: M = 300, disableHoverableContent: N = false, children: P } = t, F = import_react.useRef(true), I = import_react.useRef(false), L = import_react.useRef(0);
|
|
10
|
-
return import_react.useEffect(() => {
|
|
11
|
-
let t2 = L.current;
|
|
12
|
-
return () => window.clearTimeout(t2);
|
|
13
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipProviderContextProvider, {
|
|
14
|
-
scope: A,
|
|
15
|
-
isOpenDelayedRef: F,
|
|
16
|
-
delayDuration: j,
|
|
17
|
-
onOpen: import_react.useCallback(() => {
|
|
18
|
-
window.clearTimeout(L.current), F.current = false;
|
|
19
|
-
}, []),
|
|
20
|
-
onClose: import_react.useCallback(() => {
|
|
21
|
-
window.clearTimeout(L.current), L.current = window.setTimeout(() => F.current = true, M);
|
|
22
|
-
}, [M]),
|
|
23
|
-
isPointerInTransitRef: I,
|
|
24
|
-
onPointerInTransitChange: import_react.useCallback((t2) => {
|
|
25
|
-
I.current = t2;
|
|
26
|
-
}, []),
|
|
27
|
-
disableHoverableContent: N,
|
|
28
|
-
children: P
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
TooltipProvider$1.displayName = PROVIDER_NAME;
|
|
32
|
-
var TOOLTIP_NAME = "Tooltip", [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME), Tooltip$1 = (t) => {
|
|
33
|
-
let { __scopeTooltip: A, children: j, open: M, defaultOpen: N, onOpenChange: P, disableHoverableContent: F, delayDuration: I } = t, L = useTooltipProviderContext(TOOLTIP_NAME, t.__scopeTooltip), R = usePopperScope(A), [z, B] = import_react.useState(null), H = useId(), W = import_react.useRef(0), G = F ?? L.disableHoverableContent, K = I ?? L.delayDuration, q = import_react.useRef(false), [J, Y] = useControllableState({
|
|
34
|
-
prop: M,
|
|
35
|
-
defaultProp: N ?? false,
|
|
36
|
-
onChange: (t2) => {
|
|
37
|
-
t2 ? (L.onOpen(), document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))) : L.onClose(), P == null ? void 0 : P(t2);
|
|
38
|
-
},
|
|
39
|
-
caller: TOOLTIP_NAME
|
|
40
|
-
}), X = import_react.useMemo(() => J ? q.current ? "delayed-open" : "instant-open" : "closed", [J]), Z = import_react.useCallback(() => {
|
|
41
|
-
window.clearTimeout(W.current), W.current = 0, q.current = false, Y(true);
|
|
42
|
-
}, [Y]), Q = import_react.useCallback(() => {
|
|
43
|
-
window.clearTimeout(W.current), W.current = 0, Y(false);
|
|
44
|
-
}, [Y]), $ = import_react.useCallback(() => {
|
|
45
|
-
window.clearTimeout(W.current), W.current = window.setTimeout(() => {
|
|
46
|
-
q.current = true, Y(true), W.current = 0;
|
|
47
|
-
}, K);
|
|
48
|
-
}, [K, Y]);
|
|
49
|
-
return import_react.useEffect(() => () => {
|
|
50
|
-
W.current && (W.current = (window.clearTimeout(W.current), 0));
|
|
51
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
|
|
52
|
-
...R,
|
|
53
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContextProvider, {
|
|
54
|
-
scope: A,
|
|
55
|
-
contentId: H,
|
|
56
|
-
open: J,
|
|
57
|
-
stateAttribute: X,
|
|
58
|
-
trigger: z,
|
|
59
|
-
onTriggerChange: B,
|
|
60
|
-
onTriggerEnter: import_react.useCallback(() => {
|
|
61
|
-
L.isOpenDelayedRef.current ? $() : Z();
|
|
62
|
-
}, [
|
|
63
|
-
L.isOpenDelayedRef,
|
|
64
|
-
$,
|
|
65
|
-
Z
|
|
66
|
-
]),
|
|
67
|
-
onTriggerLeave: import_react.useCallback(() => {
|
|
68
|
-
G ? Q() : (window.clearTimeout(W.current), W.current = 0);
|
|
69
|
-
}, [Q, G]),
|
|
70
|
-
onOpen: Z,
|
|
71
|
-
onClose: Q,
|
|
72
|
-
disableHoverableContent: G,
|
|
73
|
-
children: j
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
Tooltip$1.displayName = TOOLTIP_NAME;
|
|
78
|
-
var TRIGGER_NAME$2 = "TooltipTrigger", TooltipTrigger$1 = import_react.forwardRef((t, A) => {
|
|
79
|
-
let { __scopeTooltip: j, ...M } = t, F = useTooltipContext(TRIGGER_NAME$2, j), I = useTooltipProviderContext(TRIGGER_NAME$2, j), L = usePopperScope(j), R = useComposedRefs(A, import_react.useRef(null), F.onTriggerChange), B = import_react.useRef(false), V = import_react.useRef(false), H = import_react.useCallback(() => B.current = false, []);
|
|
80
|
-
return import_react.useEffect(() => () => document.removeEventListener("pointerup", H), [H]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
|
|
81
|
-
asChild: true,
|
|
82
|
-
...L,
|
|
83
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
84
|
-
"aria-describedby": F.open ? F.contentId : void 0,
|
|
85
|
-
"data-state": F.stateAttribute,
|
|
86
|
-
...M,
|
|
87
|
-
ref: R,
|
|
88
|
-
onPointerMove: composeEventHandlers(t.onPointerMove, (t2) => {
|
|
89
|
-
t2.pointerType !== "touch" && !V.current && !I.isPointerInTransitRef.current && (F.onTriggerEnter(), V.current = true);
|
|
90
|
-
}),
|
|
91
|
-
onPointerLeave: composeEventHandlers(t.onPointerLeave, () => {
|
|
92
|
-
F.onTriggerLeave(), V.current = false;
|
|
93
|
-
}),
|
|
94
|
-
onPointerDown: composeEventHandlers(t.onPointerDown, () => {
|
|
95
|
-
F.open && F.onClose(), B.current = true, document.addEventListener("pointerup", H, { once: true });
|
|
96
|
-
}),
|
|
97
|
-
onFocus: composeEventHandlers(t.onFocus, () => {
|
|
98
|
-
B.current || F.onOpen();
|
|
99
|
-
}),
|
|
100
|
-
onBlur: composeEventHandlers(t.onBlur, F.onClose),
|
|
101
|
-
onClick: composeEventHandlers(t.onClick, F.onClose)
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
TooltipTrigger$1.displayName = TRIGGER_NAME$2;
|
|
106
|
-
var PORTAL_NAME$2 = "TooltipPortal", [PortalProvider$1, usePortalContext$1] = createTooltipContext(PORTAL_NAME$2, { forceMount: void 0 }), TooltipPortal = (t) => {
|
|
107
|
-
let { __scopeTooltip: A, forceMount: j, children: M, container: N } = t, P = useTooltipContext(PORTAL_NAME$2, A);
|
|
108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider$1, {
|
|
109
|
-
scope: A,
|
|
110
|
-
forceMount: j,
|
|
111
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
112
|
-
present: j || P.open,
|
|
113
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, {
|
|
114
|
-
asChild: true,
|
|
115
|
-
container: N,
|
|
116
|
-
children: M
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
TooltipPortal.displayName = PORTAL_NAME$2;
|
|
122
|
-
var CONTENT_NAME$2 = "TooltipContent", TooltipContent$1 = import_react.forwardRef((t, A) => {
|
|
123
|
-
let j = usePortalContext$1(CONTENT_NAME$2, t.__scopeTooltip), { forceMount: M = j.forceMount, side: N = "top", ...P } = t, F = useTooltipContext(CONTENT_NAME$2, t.__scopeTooltip);
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
125
|
-
present: M || F.open,
|
|
126
|
-
children: F.disableHoverableContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentImpl, {
|
|
127
|
-
side: N,
|
|
128
|
-
...P,
|
|
129
|
-
ref: A
|
|
130
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentHoverable, {
|
|
131
|
-
side: N,
|
|
132
|
-
...P,
|
|
133
|
-
ref: A
|
|
134
|
-
})
|
|
135
|
-
});
|
|
136
|
-
}), TooltipContentHoverable = import_react.forwardRef((t, A) => {
|
|
137
|
-
let j = useTooltipContext(CONTENT_NAME$2, t.__scopeTooltip), M = useTooltipProviderContext(CONTENT_NAME$2, t.__scopeTooltip), N = import_react.useRef(null), P = useComposedRefs(A, N), [F, I] = import_react.useState(null), { trigger: L, onClose: R } = j, z = N.current, { onPointerInTransitChange: B } = M, V = import_react.useCallback(() => {
|
|
138
|
-
I(null), B(false);
|
|
139
|
-
}, [B]), H = import_react.useCallback((t2, A2) => {
|
|
140
|
-
let j2 = t2.currentTarget, M2 = {
|
|
141
|
-
x: t2.clientX,
|
|
142
|
-
y: t2.clientY
|
|
143
|
-
}, N2 = getPaddedExitPoints(M2, getExitSideFromRect(M2, j2.getBoundingClientRect())), P2 = getPointsFromRect(A2.getBoundingClientRect());
|
|
144
|
-
I(getHull([...N2, ...P2])), B(true);
|
|
145
|
-
}, [B]);
|
|
146
|
-
return import_react.useEffect(() => () => V(), [V]), import_react.useEffect(() => {
|
|
147
|
-
if (L && z) {
|
|
148
|
-
let t2 = (t3) => H(t3, z), A2 = (t3) => H(t3, L);
|
|
149
|
-
return L.addEventListener("pointerleave", t2), z.addEventListener("pointerleave", A2), () => {
|
|
150
|
-
L.removeEventListener("pointerleave", t2), z.removeEventListener("pointerleave", A2);
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
}, [
|
|
154
|
-
L,
|
|
155
|
-
z,
|
|
156
|
-
H,
|
|
157
|
-
V
|
|
158
|
-
]), import_react.useEffect(() => {
|
|
159
|
-
if (F) {
|
|
160
|
-
let t2 = (t3) => {
|
|
161
|
-
let A2 = t3.target, j2 = {
|
|
162
|
-
x: t3.clientX,
|
|
163
|
-
y: t3.clientY
|
|
164
|
-
}, M2 = (L == null ? void 0 : L.contains(A2)) || (z == null ? void 0 : z.contains(A2)), N2 = !isPointInPolygon(j2, F);
|
|
165
|
-
M2 ? V() : N2 && (V(), R());
|
|
166
|
-
};
|
|
167
|
-
return document.addEventListener("pointermove", t2), () => document.removeEventListener("pointermove", t2);
|
|
168
|
-
}
|
|
169
|
-
}, [
|
|
170
|
-
L,
|
|
171
|
-
z,
|
|
172
|
-
F,
|
|
173
|
-
R,
|
|
174
|
-
V
|
|
175
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentImpl, {
|
|
176
|
-
...t,
|
|
177
|
-
ref: P
|
|
178
|
-
});
|
|
179
|
-
}), [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false }), Slottable$1 = createSlottable("TooltipContent"), TooltipContentImpl = import_react.forwardRef((t, A) => {
|
|
180
|
-
let { __scopeTooltip: j, children: M, "aria-label": N, onEscapeKeyDown: P, onPointerDownOutside: F, ...I } = t, R = useTooltipContext(CONTENT_NAME$2, j), z = usePopperScope(j), { onClose: B } = R;
|
|
181
|
-
return import_react.useEffect(() => (document.addEventListener(TOOLTIP_OPEN, B), () => document.removeEventListener(TOOLTIP_OPEN, B)), [B]), import_react.useEffect(() => {
|
|
182
|
-
if (R.trigger) {
|
|
183
|
-
let t2 = (t3) => {
|
|
184
|
-
var _a;
|
|
185
|
-
((_a = t3.target) == null ? void 0 : _a.contains(R.trigger)) && B();
|
|
186
|
-
};
|
|
187
|
-
return window.addEventListener("scroll", t2, { capture: true }), () => window.removeEventListener("scroll", t2, { capture: true });
|
|
188
|
-
}
|
|
189
|
-
}, [R.trigger, B]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
|
|
190
|
-
asChild: true,
|
|
191
|
-
disableOutsidePointerEvents: false,
|
|
192
|
-
onEscapeKeyDown: P,
|
|
193
|
-
onPointerDownOutside: F,
|
|
194
|
-
onFocusOutside: (t2) => t2.preventDefault(),
|
|
195
|
-
onDismiss: B,
|
|
196
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content$1, {
|
|
197
|
-
"data-state": R.stateAttribute,
|
|
198
|
-
...z,
|
|
199
|
-
...I,
|
|
200
|
-
ref: A,
|
|
201
|
-
style: {
|
|
202
|
-
...I.style,
|
|
203
|
-
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
204
|
-
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
205
|
-
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
206
|
-
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
207
|
-
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
208
|
-
},
|
|
209
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slottable$1, { children: M }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VisuallyHiddenContentContextProvider, {
|
|
210
|
-
scope: j,
|
|
211
|
-
isInside: true,
|
|
212
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root$1, {
|
|
213
|
-
id: R.contentId,
|
|
214
|
-
role: "tooltip",
|
|
215
|
-
children: N || M
|
|
216
|
-
})
|
|
217
|
-
})]
|
|
218
|
-
})
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
TooltipContent$1.displayName = CONTENT_NAME$2;
|
|
222
|
-
var ARROW_NAME = "TooltipArrow", TooltipArrow = import_react.forwardRef((t, A) => {
|
|
223
|
-
let { __scopeTooltip: j, ...M } = t, N = usePopperScope(j);
|
|
224
|
-
return useVisuallyHiddenContentContext(ARROW_NAME, j).isInside ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
|
|
225
|
-
...N,
|
|
226
|
-
...M,
|
|
227
|
-
ref: A
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
TooltipArrow.displayName = ARROW_NAME;
|
|
231
|
-
function getExitSideFromRect(t, A) {
|
|
232
|
-
let j = Math.abs(A.top - t.y), M = Math.abs(A.bottom - t.y), N = Math.abs(A.right - t.x), P = Math.abs(A.left - t.x);
|
|
233
|
-
switch (Math.min(j, M, N, P)) {
|
|
234
|
-
case P:
|
|
235
|
-
return "left";
|
|
236
|
-
case N:
|
|
237
|
-
return "right";
|
|
238
|
-
case j:
|
|
239
|
-
return "top";
|
|
240
|
-
case M:
|
|
241
|
-
return "bottom";
|
|
242
|
-
default:
|
|
243
|
-
throw Error("unreachable");
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function getPaddedExitPoints(t, A, j = 5) {
|
|
247
|
-
let M = [];
|
|
248
|
-
switch (A) {
|
|
249
|
-
case "top":
|
|
250
|
-
M.push({
|
|
251
|
-
x: t.x - j,
|
|
252
|
-
y: t.y + j
|
|
253
|
-
}, {
|
|
254
|
-
x: t.x + j,
|
|
255
|
-
y: t.y + j
|
|
256
|
-
});
|
|
257
|
-
break;
|
|
258
|
-
case "bottom":
|
|
259
|
-
M.push({
|
|
260
|
-
x: t.x - j,
|
|
261
|
-
y: t.y - j
|
|
262
|
-
}, {
|
|
263
|
-
x: t.x + j,
|
|
264
|
-
y: t.y - j
|
|
265
|
-
});
|
|
266
|
-
break;
|
|
267
|
-
case "left":
|
|
268
|
-
M.push({
|
|
269
|
-
x: t.x + j,
|
|
270
|
-
y: t.y - j
|
|
271
|
-
}, {
|
|
272
|
-
x: t.x + j,
|
|
273
|
-
y: t.y + j
|
|
274
|
-
});
|
|
275
|
-
break;
|
|
276
|
-
case "right":
|
|
277
|
-
M.push({
|
|
278
|
-
x: t.x - j,
|
|
279
|
-
y: t.y - j
|
|
280
|
-
}, {
|
|
281
|
-
x: t.x - j,
|
|
282
|
-
y: t.y + j
|
|
283
|
-
});
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
return M;
|
|
287
|
-
}
|
|
288
|
-
function getPointsFromRect(t) {
|
|
289
|
-
let { top: A, right: j, bottom: M, left: N } = t;
|
|
290
|
-
return [
|
|
291
|
-
{
|
|
292
|
-
x: N,
|
|
293
|
-
y: A
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
x: j,
|
|
297
|
-
y: A
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
x: j,
|
|
301
|
-
y: M
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
x: N,
|
|
305
|
-
y: M
|
|
306
|
-
}
|
|
307
|
-
];
|
|
308
|
-
}
|
|
309
|
-
function isPointInPolygon(t, A) {
|
|
310
|
-
let { x: j, y: M } = t, N = false;
|
|
311
|
-
for (let t2 = 0, P = A.length - 1; t2 < A.length; P = t2++) {
|
|
312
|
-
let F = A[t2], I = A[P], L = F.x, R = F.y, z = I.x, B = I.y;
|
|
313
|
-
R > M != B > M && j < (z - L) * (M - R) / (B - R) + L && (N = !N);
|
|
314
|
-
}
|
|
315
|
-
return N;
|
|
316
|
-
}
|
|
317
|
-
function getHull(t) {
|
|
318
|
-
let A = t.slice();
|
|
319
|
-
return A.sort((t2, A2) => t2.x < A2.x ? -1 : t2.x > A2.x ? 1 : t2.y < A2.y ? -1 : t2.y > A2.y ? 1 : 0), getHullPresorted(A);
|
|
320
|
-
}
|
|
321
|
-
function getHullPresorted(t) {
|
|
322
|
-
if (t.length <= 1) return t.slice();
|
|
323
|
-
let A = [];
|
|
324
|
-
for (let j2 = 0; j2 < t.length; j2++) {
|
|
325
|
-
let M = t[j2];
|
|
326
|
-
for (; A.length >= 2; ) {
|
|
327
|
-
let t2 = A[A.length - 1], j3 = A[A.length - 2];
|
|
328
|
-
if ((t2.x - j3.x) * (M.y - j3.y) >= (t2.y - j3.y) * (M.x - j3.x)) A.pop();
|
|
329
|
-
else break;
|
|
330
|
-
}
|
|
331
|
-
A.push(M);
|
|
332
|
-
}
|
|
333
|
-
A.pop();
|
|
334
|
-
let j = [];
|
|
335
|
-
for (let A2 = t.length - 1; A2 >= 0; A2--) {
|
|
336
|
-
let M = t[A2];
|
|
337
|
-
for (; j.length >= 2; ) {
|
|
338
|
-
let t2 = j[j.length - 1], A3 = j[j.length - 2];
|
|
339
|
-
if ((t2.x - A3.x) * (M.y - A3.y) >= (t2.y - A3.y) * (M.x - A3.x)) j.pop();
|
|
340
|
-
else break;
|
|
341
|
-
}
|
|
342
|
-
j.push(M);
|
|
343
|
-
}
|
|
344
|
-
return j.pop(), A.length === 1 && j.length === 1 && A[0].x === j[0].x && A[0].y === j[0].y ? A : A.concat(j);
|
|
345
|
-
}
|
|
346
|
-
var Provider = TooltipProvider$1, Root3 = Tooltip$1, Trigger$1 = TooltipTrigger$1, Content2$1 = TooltipContent$1, import_compiler_runtime$3 = /* @__PURE__ */ __toESM(require_compiler_runtime()), TooltipProvider = (t) => {
|
|
347
|
-
let A = (0, import_compiler_runtime$3.c)(6), j, M;
|
|
348
|
-
A[0] === t ? (j = A[1], M = A[2]) : ({ delayDuration: M, ...j } = t, A[0] = t, A[1] = j, A[2] = M);
|
|
349
|
-
let N = M === void 0 ? 400 : M, P;
|
|
350
|
-
return A[3] !== N || A[4] !== j ? (P = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, {
|
|
351
|
-
delayDuration: N,
|
|
352
|
-
...j
|
|
353
|
-
}), A[3] = N, A[4] = j, A[5] = P) : P = A[5], P;
|
|
354
|
-
}, TooltipRoot = Root3, TooltipTrigger = Trigger$1, TooltipContent = import_react.forwardRef((t, A) => {
|
|
355
|
-
let j = (0, import_compiler_runtime$3.c)(11), M, N, P;
|
|
356
|
-
j[0] === t ? (M = j[1], N = j[2], P = j[3]) : ({ className: M, sideOffset: P, ...N } = t, j[0] = t, j[1] = M, j[2] = N, j[3] = P);
|
|
357
|
-
let F = P === void 0 ? 4 : P, I;
|
|
358
|
-
j[4] === M ? I = j[5] : (I = cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-xs data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", M), j[4] = M, j[5] = I);
|
|
359
|
-
let L;
|
|
360
|
-
return j[6] !== N || j[7] !== A || j[8] !== F || j[9] !== I ? (L = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2$1, {
|
|
361
|
-
ref: A,
|
|
362
|
-
sideOffset: F,
|
|
363
|
-
className: I,
|
|
364
|
-
...N
|
|
365
|
-
}) }), j[6] = N, j[7] = A, j[8] = F, j[9] = I, j[10] = L) : L = j[10], L;
|
|
366
|
-
});
|
|
367
|
-
TooltipContent.displayName = Content2$1.displayName;
|
|
368
|
-
var Tooltip = (t) => {
|
|
369
|
-
let A = (0, import_compiler_runtime$3.c)(22), j, M, N, P, F, I, L, R;
|
|
370
|
-
A[0] === t ? (j = A[1], M = A[2], N = A[3], P = A[4], F = A[5], I = A[6], L = A[7], R = A[8]) : ({ content: N, children: M, usePortal: I, asChild: L, tabIndex: R, side: F, align: j, ...P } = t, A[0] = t, A[1] = j, A[2] = M, A[3] = N, A[4] = P, A[5] = F, A[6] = I, A[7] = L, A[8] = R);
|
|
371
|
-
let z = I === void 0 ? true : I, B = L === void 0 ? true : L;
|
|
372
|
-
if (N == null || N === "") return M;
|
|
373
|
-
let V;
|
|
374
|
-
A[9] !== B || A[10] !== M || A[11] !== R ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
375
|
-
asChild: B,
|
|
376
|
-
tabIndex: R,
|
|
377
|
-
children: M
|
|
378
|
-
}), A[9] = B, A[10] = M, A[11] = R, A[12] = V) : V = A[12];
|
|
379
|
-
let H;
|
|
380
|
-
A[13] !== j || A[14] !== N || A[15] !== F || A[16] !== z ? (H = z ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
381
|
-
side: F,
|
|
382
|
-
align: j,
|
|
383
|
-
children: N
|
|
384
|
-
}) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
385
|
-
side: F,
|
|
386
|
-
align: j,
|
|
387
|
-
children: N
|
|
388
|
-
}), A[13] = j, A[14] = N, A[15] = F, A[16] = z, A[17] = H) : H = A[17];
|
|
389
|
-
let U;
|
|
390
|
-
return A[18] !== P || A[19] !== V || A[20] !== H ? (U = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
391
|
-
disableHoverableContent: true,
|
|
392
|
-
...P,
|
|
393
|
-
children: [V, H]
|
|
394
|
-
}), A[18] = P, A[19] = V, A[20] = H, A[21] = U) : U = A[21], U;
|
|
395
|
-
}, DetailsSchema = object({ detail: string() }), ErrorSchema = object({ error: string() });
|
|
396
|
-
function prettyError(t) {
|
|
397
|
-
if (!t) return "Unknown error";
|
|
398
|
-
if (t instanceof Error) {
|
|
399
|
-
let A = DetailsSchema.safeParse(t.cause);
|
|
400
|
-
return A.success ? A.data.detail : maybeExtractDetails(t.message);
|
|
401
|
-
}
|
|
402
|
-
if (typeof t == "object") {
|
|
403
|
-
let A = DetailsSchema.safeParse(t);
|
|
404
|
-
if (A.success) return A.data.detail;
|
|
405
|
-
let j = ErrorSchema.safeParse(t);
|
|
406
|
-
if (j.success) return j.data.error;
|
|
407
|
-
}
|
|
408
|
-
try {
|
|
409
|
-
return JSON.stringify(t);
|
|
410
|
-
} catch {
|
|
411
|
-
return String(t);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function maybeExtractDetails(t) {
|
|
415
|
-
let A = safeJSONParse(t);
|
|
416
|
-
if (!A) return t;
|
|
417
|
-
let j = DetailsSchema.safeParse(A);
|
|
418
|
-
if (j.success) return j.data.detail;
|
|
419
|
-
let M = ErrorSchema.safeParse(A);
|
|
420
|
-
return M.success ? M.data.error : t;
|
|
421
|
-
}
|
|
422
|
-
function safeJSONParse(t) {
|
|
423
|
-
try {
|
|
424
|
-
return JSON.parse(t);
|
|
425
|
-
} catch {
|
|
426
|
-
return t;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
var CellNotInitializedError = class extends Error {
|
|
430
|
-
constructor(t = "The cell containing this UI element has not been run yet. Please run the cell first.") {
|
|
431
|
-
super(t), this.name = "CellNotInitializedError";
|
|
432
|
-
}
|
|
433
|
-
}, DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), Dialog = (t) => {
|
|
434
|
-
let { __scopeDialog: A, children: j, open: M, defaultOpen: N, onOpenChange: P, modal: F = true } = t, I = import_react.useRef(null), L = import_react.useRef(null), [R, z] = useControllableState({
|
|
435
|
-
prop: M,
|
|
436
|
-
defaultProp: N ?? false,
|
|
437
|
-
onChange: P,
|
|
438
|
-
caller: DIALOG_NAME
|
|
439
|
-
});
|
|
440
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogProvider, {
|
|
441
|
-
scope: A,
|
|
442
|
-
triggerRef: I,
|
|
443
|
-
contentRef: L,
|
|
444
|
-
contentId: useId(),
|
|
445
|
-
titleId: useId(),
|
|
446
|
-
descriptionId: useId(),
|
|
447
|
-
open: R,
|
|
448
|
-
onOpenChange: z,
|
|
449
|
-
onOpenToggle: import_react.useCallback(() => z((t2) => !t2), [z]),
|
|
450
|
-
modal: F,
|
|
451
|
-
children: j
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
|
-
Dialog.displayName = DIALOG_NAME;
|
|
455
|
-
var TRIGGER_NAME$1 = "DialogTrigger", DialogTrigger = import_react.forwardRef((t, A) => {
|
|
456
|
-
let { __scopeDialog: j, ...M } = t, F = useDialogContext(TRIGGER_NAME$1, j), I = useComposedRefs(A, F.triggerRef);
|
|
457
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
458
|
-
type: "button",
|
|
459
|
-
"aria-haspopup": "dialog",
|
|
460
|
-
"aria-expanded": F.open,
|
|
461
|
-
"aria-controls": F.contentId,
|
|
462
|
-
"data-state": getState(F.open),
|
|
463
|
-
...M,
|
|
464
|
-
ref: I,
|
|
465
|
-
onClick: composeEventHandlers(t.onClick, F.onOpenToggle)
|
|
466
|
-
});
|
|
467
|
-
});
|
|
468
|
-
DialogTrigger.displayName = TRIGGER_NAME$1;
|
|
469
|
-
var PORTAL_NAME$1 = "DialogPortal", [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME$1, { forceMount: void 0 }), DialogPortal = (t) => {
|
|
470
|
-
let { __scopeDialog: A, forceMount: j, children: M, container: N } = t, P = useDialogContext(PORTAL_NAME$1, A);
|
|
471
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, {
|
|
472
|
-
scope: A,
|
|
473
|
-
forceMount: j,
|
|
474
|
-
children: import_react.Children.map(M, (t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
475
|
-
present: j || P.open,
|
|
476
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, {
|
|
477
|
-
asChild: true,
|
|
478
|
-
container: N,
|
|
479
|
-
children: t2
|
|
480
|
-
})
|
|
481
|
-
}))
|
|
482
|
-
});
|
|
483
|
-
};
|
|
484
|
-
DialogPortal.displayName = PORTAL_NAME$1;
|
|
485
|
-
var OVERLAY_NAME$1 = "DialogOverlay", DialogOverlay = import_react.forwardRef((t, A) => {
|
|
486
|
-
let j = usePortalContext(OVERLAY_NAME$1, t.__scopeDialog), { forceMount: M = j.forceMount, ...N } = t, P = useDialogContext(OVERLAY_NAME$1, t.__scopeDialog);
|
|
487
|
-
return P.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
488
|
-
present: M || P.open,
|
|
489
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlayImpl, {
|
|
490
|
-
...N,
|
|
491
|
-
ref: A
|
|
492
|
-
})
|
|
493
|
-
}) : null;
|
|
494
|
-
});
|
|
495
|
-
DialogOverlay.displayName = OVERLAY_NAME$1;
|
|
496
|
-
var Slot = createSlot("DialogOverlay.RemoveScroll"), DialogOverlayImpl = import_react.forwardRef((t, A) => {
|
|
497
|
-
let { __scopeDialog: j, ...M } = t, N = useDialogContext(OVERLAY_NAME$1, j);
|
|
498
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Combination_default, {
|
|
499
|
-
as: Slot,
|
|
500
|
-
allowPinchZoom: true,
|
|
501
|
-
shards: [N.contentRef],
|
|
502
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
503
|
-
"data-state": getState(N.open),
|
|
504
|
-
...M,
|
|
505
|
-
ref: A,
|
|
506
|
-
style: {
|
|
507
|
-
pointerEvents: "auto",
|
|
508
|
-
...M.style
|
|
509
|
-
}
|
|
510
|
-
})
|
|
511
|
-
});
|
|
512
|
-
}), CONTENT_NAME$1 = "DialogContent", DialogContent = import_react.forwardRef((t, A) => {
|
|
513
|
-
let j = usePortalContext(CONTENT_NAME$1, t.__scopeDialog), { forceMount: M = j.forceMount, ...N } = t, P = useDialogContext(CONTENT_NAME$1, t.__scopeDialog);
|
|
514
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
515
|
-
present: M || P.open,
|
|
516
|
-
children: P.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentModal, {
|
|
517
|
-
...N,
|
|
518
|
-
ref: A
|
|
519
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentNonModal, {
|
|
520
|
-
...N,
|
|
521
|
-
ref: A
|
|
522
|
-
})
|
|
523
|
-
});
|
|
524
|
-
});
|
|
525
|
-
DialogContent.displayName = CONTENT_NAME$1;
|
|
526
|
-
var DialogContentModal = import_react.forwardRef((t, A) => {
|
|
527
|
-
let j = useDialogContext(CONTENT_NAME$1, t.__scopeDialog), M = import_react.useRef(null), P = useComposedRefs(A, j.contentRef, M);
|
|
528
|
-
return import_react.useEffect(() => {
|
|
529
|
-
let t2 = M.current;
|
|
530
|
-
if (t2) return hideOthers(t2);
|
|
531
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentImpl, {
|
|
532
|
-
...t,
|
|
533
|
-
ref: P,
|
|
534
|
-
trapFocus: j.open,
|
|
535
|
-
disableOutsidePointerEvents: true,
|
|
536
|
-
onCloseAutoFocus: composeEventHandlers(t.onCloseAutoFocus, (t2) => {
|
|
537
|
-
var _a;
|
|
538
|
-
t2.preventDefault(), (_a = j.triggerRef.current) == null ? void 0 : _a.focus();
|
|
539
|
-
}),
|
|
540
|
-
onPointerDownOutside: composeEventHandlers(t.onPointerDownOutside, (t2) => {
|
|
541
|
-
let A2 = t2.detail.originalEvent, j2 = A2.button === 0 && A2.ctrlKey === true;
|
|
542
|
-
(A2.button === 2 || j2) && t2.preventDefault();
|
|
543
|
-
}),
|
|
544
|
-
onFocusOutside: composeEventHandlers(t.onFocusOutside, (t2) => t2.preventDefault())
|
|
545
|
-
});
|
|
546
|
-
}), DialogContentNonModal = import_react.forwardRef((t, A) => {
|
|
547
|
-
let j = useDialogContext(CONTENT_NAME$1, t.__scopeDialog), M = import_react.useRef(false), N = import_react.useRef(false);
|
|
548
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentImpl, {
|
|
549
|
-
...t,
|
|
550
|
-
ref: A,
|
|
551
|
-
trapFocus: false,
|
|
552
|
-
disableOutsidePointerEvents: false,
|
|
553
|
-
onCloseAutoFocus: (A2) => {
|
|
554
|
-
var _a, _b;
|
|
555
|
-
(_a = t.onCloseAutoFocus) == null ? void 0 : _a.call(t, A2), A2.defaultPrevented || (M.current || ((_b = j.triggerRef.current) == null ? void 0 : _b.focus()), A2.preventDefault()), M.current = false, N.current = false;
|
|
556
|
-
},
|
|
557
|
-
onInteractOutside: (A2) => {
|
|
558
|
-
var _a, _b;
|
|
559
|
-
(_a = t.onInteractOutside) == null ? void 0 : _a.call(t, A2), A2.defaultPrevented || (M.current = true, A2.detail.originalEvent.type === "pointerdown" && (N.current = true));
|
|
560
|
-
let P = A2.target;
|
|
561
|
-
((_b = j.triggerRef.current) == null ? void 0 : _b.contains(P)) && A2.preventDefault(), A2.detail.originalEvent.type === "focusin" && N.current && A2.preventDefault();
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
}), DialogContentImpl = import_react.forwardRef((t, A) => {
|
|
565
|
-
let { __scopeDialog: j, trapFocus: M, onOpenAutoFocus: N, onCloseAutoFocus: P, ...F } = t, R = useDialogContext(CONTENT_NAME$1, j), z = import_react.useRef(null), B = useComposedRefs(A, z);
|
|
566
|
-
return useFocusGuards(), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
|
|
567
|
-
asChild: true,
|
|
568
|
-
loop: true,
|
|
569
|
-
trapped: M,
|
|
570
|
-
onMountAutoFocus: N,
|
|
571
|
-
onUnmountAutoFocus: P,
|
|
572
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
|
|
573
|
-
role: "dialog",
|
|
574
|
-
id: R.contentId,
|
|
575
|
-
"aria-describedby": R.descriptionId,
|
|
576
|
-
"aria-labelledby": R.titleId,
|
|
577
|
-
"data-state": getState(R.open),
|
|
578
|
-
...F,
|
|
579
|
-
ref: B,
|
|
580
|
-
onDismiss: () => R.onOpenChange(false)
|
|
581
|
-
})
|
|
582
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleWarning, { titleId: R.titleId }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionWarning$1, {
|
|
583
|
-
contentRef: z,
|
|
584
|
-
descriptionId: R.descriptionId
|
|
585
|
-
})] })] });
|
|
586
|
-
}), TITLE_NAME$1 = "DialogTitle", DialogTitle = import_react.forwardRef((t, A) => {
|
|
587
|
-
let { __scopeDialog: j, ...M } = t, N = useDialogContext(TITLE_NAME$1, j);
|
|
588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.h2, {
|
|
589
|
-
id: N.titleId,
|
|
590
|
-
...M,
|
|
591
|
-
ref: A
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
DialogTitle.displayName = TITLE_NAME$1;
|
|
595
|
-
var DESCRIPTION_NAME$1 = "DialogDescription", DialogDescription = import_react.forwardRef((t, A) => {
|
|
596
|
-
let { __scopeDialog: j, ...M } = t, N = useDialogContext(DESCRIPTION_NAME$1, j);
|
|
597
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.p, {
|
|
598
|
-
id: N.descriptionId,
|
|
599
|
-
...M,
|
|
600
|
-
ref: A
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
DialogDescription.displayName = DESCRIPTION_NAME$1;
|
|
604
|
-
var CLOSE_NAME = "DialogClose", DialogClose = import_react.forwardRef((t, A) => {
|
|
605
|
-
let { __scopeDialog: j, ...M } = t, F = useDialogContext(CLOSE_NAME, j);
|
|
606
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
607
|
-
type: "button",
|
|
608
|
-
...M,
|
|
609
|
-
ref: A,
|
|
610
|
-
onClick: composeEventHandlers(t.onClick, () => F.onOpenChange(false))
|
|
611
|
-
});
|
|
612
|
-
});
|
|
613
|
-
DialogClose.displayName = CLOSE_NAME;
|
|
614
|
-
function getState(t) {
|
|
615
|
-
return t ? "open" : "closed";
|
|
616
|
-
}
|
|
617
|
-
var TITLE_WARNING_NAME = "DialogTitleWarning", [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
|
|
618
|
-
contentName: CONTENT_NAME$1,
|
|
619
|
-
titleName: TITLE_NAME$1,
|
|
620
|
-
docsSlug: "dialog"
|
|
621
|
-
}), TitleWarning = ({ titleId: t }) => {
|
|
622
|
-
let A = useWarningContext(TITLE_WARNING_NAME), j = `\`${A.contentName}\` requires a \`${A.titleName}\` for the component to be accessible for screen reader users.
|
|
623
|
-
|
|
624
|
-
If you want to hide the \`${A.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
625
|
-
|
|
626
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${A.docsSlug}`;
|
|
627
|
-
return import_react.useEffect(() => {
|
|
628
|
-
t && (document.getElementById(t) || console.error(j));
|
|
629
|
-
}, [j, t]), null;
|
|
630
|
-
}, DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning", DescriptionWarning$1 = ({ contentRef: t, descriptionId: A }) => {
|
|
631
|
-
let j = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;
|
|
632
|
-
return import_react.useEffect(() => {
|
|
633
|
-
var _a;
|
|
634
|
-
let M = (_a = t.current) == null ? void 0 : _a.getAttribute("aria-describedby");
|
|
635
|
-
A && M && (document.getElementById(A) || console.warn(j));
|
|
636
|
-
}, [
|
|
637
|
-
j,
|
|
638
|
-
t,
|
|
639
|
-
A
|
|
640
|
-
]), null;
|
|
641
|
-
}, Root = Dialog, Trigger = DialogTrigger, Portal$1 = DialogPortal, Overlay = DialogOverlay, Content = DialogContent, Title = DialogTitle, Description = DialogDescription, Close = DialogClose, ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [createDialogScope]), useDialogScope = createDialogScope(), AlertDialog$1 = (t) => {
|
|
642
|
-
let { __scopeAlertDialog: A, ...j } = t, M = useDialogScope(A);
|
|
643
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
|
|
644
|
-
...M,
|
|
645
|
-
...j,
|
|
646
|
-
modal: true
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
AlertDialog$1.displayName = ROOT_NAME;
|
|
650
|
-
var TRIGGER_NAME = "AlertDialogTrigger", AlertDialogTrigger$1 = import_react.forwardRef((t, A) => {
|
|
651
|
-
let { __scopeAlertDialog: j, ...M } = t, N = useDialogScope(j);
|
|
652
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trigger, {
|
|
653
|
-
...N,
|
|
654
|
-
...M,
|
|
655
|
-
ref: A
|
|
656
|
-
});
|
|
657
|
-
});
|
|
658
|
-
AlertDialogTrigger$1.displayName = TRIGGER_NAME;
|
|
659
|
-
var PORTAL_NAME = "AlertDialogPortal", AlertDialogPortal$1 = (t) => {
|
|
660
|
-
let { __scopeAlertDialog: A, ...j } = t, M = useDialogScope(A);
|
|
661
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal$1, {
|
|
662
|
-
...M,
|
|
663
|
-
...j
|
|
664
|
-
});
|
|
665
|
-
};
|
|
666
|
-
AlertDialogPortal$1.displayName = PORTAL_NAME;
|
|
667
|
-
var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlay$1 = import_react.forwardRef((t, A) => {
|
|
668
|
-
let { __scopeAlertDialog: j, ...M } = t, N = useDialogScope(j);
|
|
669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay, {
|
|
670
|
-
...N,
|
|
671
|
-
...M,
|
|
672
|
-
ref: A
|
|
673
|
-
});
|
|
674
|
-
});
|
|
675
|
-
AlertDialogOverlay$1.displayName = OVERLAY_NAME;
|
|
676
|
-
var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), Slottable = createSlottable("AlertDialogContent"), AlertDialogContent$1 = import_react.forwardRef((t, A) => {
|
|
677
|
-
let { __scopeAlertDialog: j, children: M, ...P } = t, F = useDialogScope(j), I = import_react.useRef(null), L = useComposedRefs(A, I), R = import_react.useRef(null);
|
|
678
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WarningProvider, {
|
|
679
|
-
contentName: CONTENT_NAME,
|
|
680
|
-
titleName: TITLE_NAME,
|
|
681
|
-
docsSlug: "alert-dialog",
|
|
682
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogContentProvider, {
|
|
683
|
-
scope: j,
|
|
684
|
-
cancelRef: R,
|
|
685
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, {
|
|
686
|
-
role: "alertdialog",
|
|
687
|
-
...F,
|
|
688
|
-
...P,
|
|
689
|
-
ref: L,
|
|
690
|
-
onOpenAutoFocus: composeEventHandlers(P.onOpenAutoFocus, (t2) => {
|
|
691
|
-
var _a;
|
|
692
|
-
t2.preventDefault(), (_a = R.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
693
|
-
}),
|
|
694
|
-
onPointerDownOutside: (t2) => t2.preventDefault(),
|
|
695
|
-
onInteractOutside: (t2) => t2.preventDefault(),
|
|
696
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slottable, { children: M }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionWarning, { contentRef: I })]
|
|
697
|
-
})
|
|
698
|
-
})
|
|
699
|
-
});
|
|
700
|
-
});
|
|
701
|
-
AlertDialogContent$1.displayName = CONTENT_NAME;
|
|
702
|
-
var TITLE_NAME = "AlertDialogTitle", AlertDialogTitle$1 = import_react.forwardRef((t, A) => {
|
|
703
|
-
let { __scopeAlertDialog: j, ...M } = t, N = useDialogScope(j);
|
|
704
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title, {
|
|
705
|
-
...N,
|
|
706
|
-
...M,
|
|
707
|
-
ref: A
|
|
708
|
-
});
|
|
709
|
-
});
|
|
710
|
-
AlertDialogTitle$1.displayName = TITLE_NAME;
|
|
711
|
-
var DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription$1 = import_react.forwardRef((t, A) => {
|
|
712
|
-
let { __scopeAlertDialog: j, ...M } = t, N = useDialogScope(j);
|
|
713
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
|
|
714
|
-
...N,
|
|
715
|
-
...M,
|
|
716
|
-
ref: A
|
|
717
|
-
});
|
|
718
|
-
});
|
|
719
|
-
AlertDialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
720
|
-
var ACTION_NAME = "AlertDialogAction", AlertDialogAction$1 = import_react.forwardRef((t, A) => {
|
|
721
|
-
let { __scopeAlertDialog: j, ...M } = t, N = useDialogScope(j);
|
|
722
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Close, {
|
|
723
|
-
...N,
|
|
724
|
-
...M,
|
|
725
|
-
ref: A
|
|
726
|
-
});
|
|
727
|
-
});
|
|
728
|
-
AlertDialogAction$1.displayName = ACTION_NAME;
|
|
729
|
-
var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel$1 = import_react.forwardRef((t, A) => {
|
|
730
|
-
let { __scopeAlertDialog: j, ...M } = t, { cancelRef: N } = useAlertDialogContentContext(CANCEL_NAME, j), P = useDialogScope(j), F = useComposedRefs(A, N);
|
|
731
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Close, {
|
|
732
|
-
...P,
|
|
733
|
-
...M,
|
|
734
|
-
ref: F
|
|
735
|
-
});
|
|
736
|
-
});
|
|
737
|
-
AlertDialogCancel$1.displayName = CANCEL_NAME;
|
|
738
|
-
var DescriptionWarning = ({ contentRef: t }) => {
|
|
739
|
-
let A = `\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
|
|
740
|
-
|
|
741
|
-
You can add a description to the \`${CONTENT_NAME}\` by passing a \`${DESCRIPTION_NAME}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
742
|
-
|
|
743
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
744
|
-
|
|
745
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
746
|
-
return import_react.useEffect(() => {
|
|
747
|
-
var _a;
|
|
748
|
-
document.getElementById((_a = t.current) == null ? void 0 : _a.getAttribute("aria-describedby")) || console.warn(A);
|
|
749
|
-
}, [A, t]), null;
|
|
750
|
-
}, Root2 = AlertDialog$1, Portal2 = AlertDialogPortal$1, Overlay2 = AlertDialogOverlay$1, Content2 = AlertDialogContent$1, Action = AlertDialogAction$1, Cancel = AlertDialogCancel$1, Title2 = AlertDialogTitle$1, Description2 = AlertDialogDescription$1, import_compiler_runtime$2 = /* @__PURE__ */ __toESM(require_compiler_runtime());
|
|
751
|
-
function useRestoreFocus() {
|
|
752
|
-
let t = (0, import_compiler_runtime$2.c)(3), [A, j] = (0, import_react.useState)(null), M;
|
|
753
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
754
|
-
j(document.activeElement);
|
|
755
|
-
}, t[0] = M) : M = t[0];
|
|
756
|
-
let N = M, P;
|
|
757
|
-
return t[1] === A ? P = t[2] : (P = {
|
|
758
|
-
onOpenAutoFocus: N,
|
|
759
|
-
onCloseAutoFocus: (t2) => {
|
|
760
|
-
document.activeElement === document.body && (A instanceof HTMLElement && A.focus(), t2.preventDefault());
|
|
761
|
-
}
|
|
762
|
-
}, t[1] = A, t[2] = P), P;
|
|
763
|
-
}
|
|
764
|
-
var import_compiler_runtime$1 = /* @__PURE__ */ __toESM(require_compiler_runtime()), AlertDialog = Root2, AlertDialogPortal = withFullScreenAsRoot(({ children: t, ...A }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal2, {
|
|
765
|
-
...A,
|
|
766
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
767
|
-
className: "fixed inset-0 z-50 flex items-end justify-center sm:items-start sm:top-[15%]",
|
|
768
|
-
children: t
|
|
769
|
-
}) })
|
|
770
|
-
}));
|
|
771
|
-
AlertDialogPortal.displayName = Portal2.displayName;
|
|
772
|
-
var AlertDialogOverlay = import_react.forwardRef((t, A) => {
|
|
773
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
774
|
-
if (j[0] !== t) {
|
|
775
|
-
let { className: A2, children: P2, ...F2 } = t;
|
|
776
|
-
M = A2, N = F2, j[0] = t, j[1] = M, j[2] = N;
|
|
777
|
-
} else M = j[1], N = j[2];
|
|
778
|
-
let P;
|
|
779
|
-
j[3] === M ? P = j[4] : (P = cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", M), j[3] = M, j[4] = P);
|
|
780
|
-
let F;
|
|
781
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay2, {
|
|
782
|
-
className: P,
|
|
783
|
-
...N,
|
|
784
|
-
ref: A
|
|
785
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
786
|
-
});
|
|
787
|
-
AlertDialogOverlay.displayName = Overlay2.displayName;
|
|
788
|
-
var AlertDialogContent = import_react.forwardRef((t, A) => {
|
|
789
|
-
let j = (0, import_compiler_runtime$1.c)(11), M, N;
|
|
790
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
791
|
-
let P = useRestoreFocus(), F;
|
|
792
|
-
j[3] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}), j[3] = F) : F = j[3];
|
|
793
|
-
let I;
|
|
794
|
-
j[4] === M ? I = j[5] : (I = cn("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", M), j[4] = M, j[5] = I);
|
|
795
|
-
let L;
|
|
796
|
-
return j[6] !== N || j[7] !== A || j[8] !== P || j[9] !== I ? (L = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [F, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2, {
|
|
797
|
-
ref: A,
|
|
798
|
-
className: I,
|
|
799
|
-
...P,
|
|
800
|
-
...N
|
|
801
|
-
})] }), j[6] = N, j[7] = A, j[8] = P, j[9] = I, j[10] = L) : L = j[10], L;
|
|
802
|
-
});
|
|
803
|
-
AlertDialogContent.displayName = Content2.displayName;
|
|
804
|
-
var AlertDialogHeader = (t) => {
|
|
805
|
-
let A = (0, import_compiler_runtime$1.c)(8), j, M;
|
|
806
|
-
A[0] === t ? (j = A[1], M = A[2]) : ({ className: j, ...M } = t, A[0] = t, A[1] = j, A[2] = M);
|
|
807
|
-
let N;
|
|
808
|
-
A[3] === j ? N = A[4] : (N = cn("flex flex-col space-y-2 text-center sm:text-left", j), A[3] = j, A[4] = N);
|
|
809
|
-
let P;
|
|
810
|
-
return A[5] !== M || A[6] !== N ? (P = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
811
|
-
className: N,
|
|
812
|
-
...M
|
|
813
|
-
}), A[5] = M, A[6] = N, A[7] = P) : P = A[7], P;
|
|
814
|
-
};
|
|
815
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
816
|
-
var AlertDialogFooter = (t) => {
|
|
817
|
-
let A = (0, import_compiler_runtime$1.c)(8), j, M;
|
|
818
|
-
A[0] === t ? (j = A[1], M = A[2]) : ({ className: j, ...M } = t, A[0] = t, A[1] = j, A[2] = M);
|
|
819
|
-
let N;
|
|
820
|
-
A[3] === j ? N = A[4] : (N = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", j), A[3] = j, A[4] = N);
|
|
821
|
-
let P;
|
|
822
|
-
return A[5] !== M || A[6] !== N ? (P = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
823
|
-
className: N,
|
|
824
|
-
...M
|
|
825
|
-
}), A[5] = M, A[6] = N, A[7] = P) : P = A[7], P;
|
|
826
|
-
};
|
|
827
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
828
|
-
var AlertDialogTitle = import_react.forwardRef((t, A) => {
|
|
829
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
830
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
831
|
-
let P;
|
|
832
|
-
j[3] === M ? P = j[4] : (P = cn("text-lg font-semibold", M), j[3] = M, j[4] = P);
|
|
833
|
-
let F;
|
|
834
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title2, {
|
|
835
|
-
ref: A,
|
|
836
|
-
className: P,
|
|
837
|
-
...N
|
|
838
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
839
|
-
});
|
|
840
|
-
AlertDialogTitle.displayName = Title2.displayName;
|
|
841
|
-
var AlertDialogDescription = import_react.forwardRef((t, A) => {
|
|
842
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
843
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
844
|
-
let P;
|
|
845
|
-
j[3] === M ? P = j[4] : (P = cn("text-muted-foreground", M), j[3] = M, j[4] = P);
|
|
846
|
-
let F;
|
|
847
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description2, {
|
|
848
|
-
ref: A,
|
|
849
|
-
className: P,
|
|
850
|
-
...N
|
|
851
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
852
|
-
});
|
|
853
|
-
AlertDialogDescription.displayName = Description2.displayName;
|
|
854
|
-
var AlertDialogAction = import_react.forwardRef((t, A) => {
|
|
855
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
856
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
857
|
-
let P;
|
|
858
|
-
j[3] === M ? P = j[4] : (P = cn(buttonVariants(), M), j[3] = M, j[4] = P);
|
|
859
|
-
let F;
|
|
860
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
|
|
861
|
-
ref: A,
|
|
862
|
-
className: P,
|
|
863
|
-
...N
|
|
864
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
865
|
-
});
|
|
866
|
-
AlertDialogAction.displayName = Action.displayName;
|
|
867
|
-
var AlertDialogDestructiveAction = import_react.forwardRef((t, A) => {
|
|
868
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
869
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
870
|
-
let P;
|
|
871
|
-
j[3] === M ? P = j[4] : (P = cn(buttonVariants({ variant: "destructive" }), M), j[3] = M, j[4] = P);
|
|
872
|
-
let F;
|
|
873
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
|
|
874
|
-
ref: A,
|
|
875
|
-
className: P,
|
|
876
|
-
...N
|
|
877
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
878
|
-
});
|
|
879
|
-
AlertDialogDestructiveAction.displayName = "AlertDialogDestructiveAction";
|
|
880
|
-
var AlertDialogCancel = import_react.forwardRef((t, A) => {
|
|
881
|
-
let j = (0, import_compiler_runtime$1.c)(9), M, N;
|
|
882
|
-
j[0] === t ? (M = j[1], N = j[2]) : ({ className: M, ...N } = t, j[0] = t, j[1] = M, j[2] = N);
|
|
883
|
-
let P;
|
|
884
|
-
j[3] === M ? P = j[4] : (P = cn(buttonVariants({ variant: "secondary" }), "mt-2 sm:mt-0", M), j[3] = M, j[4] = P);
|
|
885
|
-
let F;
|
|
886
|
-
return j[5] !== N || j[6] !== A || j[7] !== P ? (F = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cancel, {
|
|
887
|
-
ref: A,
|
|
888
|
-
className: P,
|
|
889
|
-
...N
|
|
890
|
-
}), j[5] = N, j[6] = A, j[7] = P, j[8] = F) : F = j[8], F;
|
|
891
|
-
});
|
|
892
|
-
AlertDialogCancel.displayName = Cancel.displayName;
|
|
893
|
-
var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime());
|
|
894
|
-
const ErrorBanner = (t) => {
|
|
895
|
-
let A = (0, import_compiler_runtime.c)(23), { error: j, className: M, action: N } = t, [P, F] = (0, import_react.useState)(false);
|
|
896
|
-
if (!j) return null;
|
|
897
|
-
Logger.error(j);
|
|
898
|
-
let I;
|
|
899
|
-
A[0] === j ? I = A[1] : (I = prettyError(j), A[0] = j, A[1] = I);
|
|
900
|
-
let L = I, R;
|
|
901
|
-
A[2] === Symbol.for("react.memo_cache_sentinel") ? (R = () => F(true), A[2] = R) : R = A[2];
|
|
902
|
-
let z;
|
|
903
|
-
A[3] === L ? z = A[4] : (z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
904
|
-
className: "line-clamp-4",
|
|
905
|
-
children: L
|
|
906
|
-
}), A[3] = L, A[4] = z);
|
|
907
|
-
let B;
|
|
908
|
-
A[5] === N ? B = A[6] : (B = N && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
909
|
-
className: "flex justify-end",
|
|
910
|
-
children: N
|
|
911
|
-
}), A[5] = N, A[6] = B);
|
|
912
|
-
let V;
|
|
913
|
-
A[7] !== M || A[8] !== z || A[9] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Banner, {
|
|
914
|
-
kind: "danger",
|
|
915
|
-
className: M,
|
|
916
|
-
clickable: true,
|
|
917
|
-
onClick: R,
|
|
918
|
-
children: [z, B]
|
|
919
|
-
}), A[7] = M, A[8] = z, A[9] = B, A[10] = V) : V = A[10];
|
|
920
|
-
let H;
|
|
921
|
-
A[11] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, {
|
|
922
|
-
className: "text-error",
|
|
923
|
-
children: "Error"
|
|
924
|
-
}) }), A[11] = H) : H = A[11];
|
|
925
|
-
let U;
|
|
926
|
-
A[12] === L ? U = A[13] : (U = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
|
|
927
|
-
className: "text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
|
|
928
|
-
children: L
|
|
929
|
-
}), A[12] = L, A[13] = U);
|
|
930
|
-
let W;
|
|
931
|
-
A[14] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogAction, {
|
|
932
|
-
autoFocus: true,
|
|
933
|
-
onClick: () => F(false),
|
|
934
|
-
children: "Ok"
|
|
935
|
-
}) }), A[14] = W) : W = A[14];
|
|
936
|
-
let G;
|
|
937
|
-
A[15] === U ? G = A[16] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, {
|
|
938
|
-
className: "max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",
|
|
939
|
-
children: [
|
|
940
|
-
H,
|
|
941
|
-
U,
|
|
942
|
-
W
|
|
943
|
-
]
|
|
944
|
-
}), A[15] = U, A[16] = G);
|
|
945
|
-
let K;
|
|
946
|
-
A[17] !== P || A[18] !== G ? (K = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog, {
|
|
947
|
-
open: P,
|
|
948
|
-
onOpenChange: F,
|
|
949
|
-
children: G
|
|
950
|
-
}), A[17] = P, A[18] = G, A[19] = K) : K = A[19];
|
|
951
|
-
let q;
|
|
952
|
-
return A[20] !== K || A[21] !== V ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [V, K] }), A[20] = K, A[21] = V, A[22] = q) : q = A[22], q;
|
|
953
|
-
};
|
|
954
|
-
var bannerStyle = cva("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
|
|
955
|
-
variants: {
|
|
956
|
-
kind: {
|
|
957
|
-
danger: "text-error border-(--red-6) shadow-md-solid shadow-error bg-(--red-1)",
|
|
958
|
-
info: "text-primary border-(--blue-6) shadow-md-solid shadow-accent bg-(--blue-1)",
|
|
959
|
-
warn: "border-(--yellow-6) bg-(--yellow-2) dark:bg-(--yellow-4) text-(--yellow-11) dark:text-(--yellow-12)"
|
|
960
|
-
},
|
|
961
|
-
clickable: { true: "cursor-pointer" }
|
|
962
|
-
},
|
|
963
|
-
compoundVariants: [
|
|
964
|
-
{
|
|
965
|
-
clickable: true,
|
|
966
|
-
kind: "danger",
|
|
967
|
-
className: "hover:bg-(--red-3)"
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
clickable: true,
|
|
971
|
-
kind: "info",
|
|
972
|
-
className: "hover:bg-(--blue-3)"
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
clickable: true,
|
|
976
|
-
kind: "warn",
|
|
977
|
-
className: "hover:bg-(--yellow-3)"
|
|
978
|
-
}
|
|
979
|
-
],
|
|
980
|
-
defaultVariants: { kind: "info" }
|
|
981
|
-
});
|
|
982
|
-
const Banner = (t) => {
|
|
983
|
-
let A = (0, import_compiler_runtime.c)(14), j, M, N, P, F;
|
|
984
|
-
A[0] === t ? (j = A[1], M = A[2], N = A[3], P = A[4], F = A[5]) : ({ kind: P, clickable: N, className: M, children: j, ...F } = t, A[0] = t, A[1] = j, A[2] = M, A[3] = N, A[4] = P, A[5] = F);
|
|
985
|
-
let I;
|
|
986
|
-
A[6] !== M || A[7] !== N || A[8] !== P ? (I = cn(bannerStyle({
|
|
987
|
-
kind: P,
|
|
988
|
-
clickable: N
|
|
989
|
-
}), M), A[6] = M, A[7] = N, A[8] = P, A[9] = I) : I = A[9];
|
|
990
|
-
let L;
|
|
991
|
-
return A[10] !== j || A[11] !== F || A[12] !== I ? (L = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
992
|
-
className: I,
|
|
993
|
-
...F,
|
|
994
|
-
children: j
|
|
995
|
-
}), A[10] = j, A[11] = F, A[12] = I, A[13] = L) : L = A[13], L;
|
|
996
|
-
};
|
|
997
|
-
export {
|
|
998
|
-
Portal$1 as a,
|
|
999
|
-
Tooltip as c,
|
|
1000
|
-
TooltipRoot as d,
|
|
1001
|
-
TooltipTrigger as f,
|
|
1002
|
-
Overlay as i,
|
|
1003
|
-
TooltipContent as l,
|
|
1004
|
-
TooltipProvider$1 as m,
|
|
1005
|
-
ErrorBanner as n,
|
|
1006
|
-
Root as o,
|
|
1007
|
-
TooltipPortal as p,
|
|
1008
|
-
Content as r,
|
|
1009
|
-
CellNotInitializedError as s,
|
|
1010
|
-
Banner as t,
|
|
1011
|
-
TooltipProvider as u
|
|
1012
|
-
};
|