@automattic/agenttic-ui 0.1.10 → 0.1.11
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/README.md +281 -387
- package/dist/_basePickBy-Co6w2C-t.js +151 -0
- package/dist/_baseUniq-BbhifY2s.js +614 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/andromeeda-uXNdzNpk.js +4 -0
- package/dist/angular-html-BmadGEgW.js +32 -0
- package/dist/angular-ts-D-QQnnGT.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apex-D_wPycVx.js +6 -0
- package/dist/apl-sitt7C8I.js +16 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-DMQNivgh.js +83 -0
- package/dist/architecture-O4VJ6CD3-CrsUkgBe.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BCeU_Tkj.js +4665 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/astro-DHnp0xIo.js +18 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/ayu-dark-CxPZkpb2.js +4 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/beancount-DEfTbbFX.js +6 -0
- package/dist/berry-PwsHPR_K.js +6 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-DFU2oTl7.js +6 -0
- package/dist/blade-OPzGcV14.js +20 -0
- package/dist/blockDiagram-ZYB65J3Q-eNfG2owp.js +2265 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c4Diagram-AAMF2YG6-CEVcZg_d.js +1581 -0
- package/dist/cadence-DMRWHJp4.js +6 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/catppuccin-frappe-DlGpEc12.js +4 -0
- package/dist/catppuccin-latte-DDI4I_Rd.js +4 -0
- package/dist/catppuccin-macchiato-BBzuZG5U.js +4 -0
- package/dist/catppuccin-mocha-CwrFPXRy.js +4 -0
- package/dist/channel-DwkBtswx.js +5 -0
- package/dist/chunk-ANTBXLJU-DjsG4Faa.js +9 -0
- package/dist/chunk-FHKO5MBM-DvgpKHah.js +15 -0
- package/dist/chunk-GLLZNHP4-BS9MWsNn.js +19 -0
- package/dist/chunk-JBRWN2VN-BB1oFn95.js +1376 -0
- package/dist/chunk-LXBSTHXV-DoWWvL-R.js +1382 -0
- package/dist/chunk-NRVI72HA-CN8BG5Yn.js +20 -0
- package/dist/chunk-OMD6QJNC-D7UKmZm8.js +64 -0
- package/dist/chunk-WVR4S24B-D3bw0yi4.js +8 -0
- package/dist/clarity-BseSxcHx.js +6 -0
- package/dist/classDiagram-3BZAVTQC-DhpbenB7.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DhpbenB7.js +16 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/clone-DmrWxu_i.js +8 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cobol-4A8XjHhj.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-Dl27lzbd.js +8 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/components/AgentUI.d.ts +19 -1
- package/dist/components/AgentUI.d.ts.map +1 -1
- package/dist/components/AgentUIContainer.d.ts +8 -0
- package/dist/components/AgentUIContainer.d.ts.map +1 -0
- package/dist/components/chat/Chat.d.ts.map +1 -1
- package/dist/components/chat/ChatFooter.stories.d.ts.map +1 -1
- package/dist/components/chat/ChatHeader.d.ts +2 -1
- package/dist/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.d.ts +2 -1
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.stories.d.ts +39 -1
- package/dist/components/chat/ChatInput.stories.d.ts.map +1 -1
- package/dist/components/chat/Messages.d.ts +2 -1
- package/dist/components/chat/Messages.d.ts.map +1 -1
- package/dist/components/chat/Notice.d.ts +3 -1
- package/dist/components/chat/Notice.d.ts.map +1 -1
- package/dist/components/chat/Notice.stories.d.ts +3 -0
- package/dist/components/chat/Notice.stories.d.ts.map +1 -1
- package/dist/components/chat/Suggestions.d.ts +2 -0
- package/dist/components/chat/Suggestions.d.ts.map +1 -1
- package/dist/components/composable/AgentUIConversationView.d.ts +8 -0
- package/dist/components/composable/AgentUIConversationView.d.ts.map +1 -0
- package/dist/components/composable/AgentUIFooter.d.ts +7 -0
- package/dist/components/composable/AgentUIFooter.d.ts.map +1 -0
- package/dist/components/composable/AgentUIHeader.d.ts +5 -0
- package/dist/components/composable/AgentUIHeader.d.ts.map +1 -0
- package/dist/components/composable/AgentUIInput.d.ts +9 -0
- package/dist/components/composable/AgentUIInput.d.ts.map +1 -0
- package/dist/components/composable/AgentUIMessages.d.ts +5 -0
- package/dist/components/composable/AgentUIMessages.d.ts.map +1 -0
- package/dist/components/composable/AgentUINotice.d.ts +5 -0
- package/dist/components/composable/AgentUINotice.d.ts.map +1 -0
- package/dist/components/composable/AgentUISuggestions.d.ts +6 -0
- package/dist/components/composable/AgentUISuggestions.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/views/CompactView.d.ts +4 -1
- package/dist/components/views/CompactView.d.ts.map +1 -1
- package/dist/context/AgentUIContext.d.ts +41 -0
- package/dist/context/AgentUIContext.d.ts.map +1 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/crystal-ymVvJzbZ.js +18 -0
- package/dist/csharp-DmxfTLWR.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/cytoscape.esm-ZmItrg9y.js +18731 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dagre-2BBEFEWP-DWbEdWsD.js +447 -0
- package/dist/dark-plus-pUHDTVV0.js +4 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/diagram-4IRLE6MV-Q8q6qm5n.js +534 -0
- package/dist/diagram-GUPCWM2R-B8VhFieT.js +143 -0
- package/dist/diagram-RP2FKANI-CYWUKKLB.js +221 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/edge-_LvgTcmu.js +12 -0
- package/dist/elixir-BTCUAmQk.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-HZWUO2LU-CC0RhTpv.js +842 -0
- package/dist/erb-D0PIpZCP.js +10 -0
- package/dist/erlang-xM7DPKQj.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-B6QqlqeT.js +6 -0
- package/dist/flowDiagram-THRYKUMA-B00E_hY6.js +1627 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
- package/dist/fortran-free-form-DPIT_jbP.js +6 -0
- package/dist/fsharp-BTdsmEUN.js +8 -0
- package/dist/ganttDiagram-WV7ZQ7D5-Cv2vsghm.js +2499 -0
- package/dist/gdresource-DLfsylRW.js +10 -0
- package/dist/gdscript-9lm8qppb.js +6 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/gitGraph-ZV4HHKMB-Bj31zYat.js +5 -0
- package/dist/gitGraphDiagram-OJR772UL-BGrYC5q0.js +712 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/glimmer-js-CkxRszZZ.js +14 -0
- package/dist/glimmer-ts-Bi6BYQCn.js +14 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/graph-DaSuptw6.js +247 -0
- package/dist/graphql-BLaPX4fU.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/gruvbox-dark-hard-C2ND4cMr.js +4 -0
- package/dist/gruvbox-dark-medium-C8k4c8au.js +4 -0
- package/dist/gruvbox-dark-soft-xx9Q6FaG.js +4 -0
- package/dist/gruvbox-light-hard-BpUXv5in.js +4 -0
- package/dist/gruvbox-light-medium-D3XFCoU1.js +4 -0
- package/dist/gruvbox-light-soft-u7hpfz6Z.js +4 -0
- package/dist/hack-Bx1jMtBC.js +10 -0
- package/dist/haml-6FagfhCM.js +10 -0
- package/dist/handlebars-Bd5Y4M6I.js +14 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/hooks/useMultiTimeout.d.ts +11 -0
- package/dist/hooks/useMultiTimeout.d.ts.map +1 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/html-7XVNRwN7.js +10 -0
- package/dist/html-derivative-BNxZ5Yf6.js +8 -0
- package/dist/http-WC357zBG.js +14 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/index-DR9mkSeU.js +29474 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -2501
- package/dist/info-63CPKGFF-DnZM8nKQ.js +5 -0
- package/dist/infoDiagram-DDUCL6P7-ClQolrbt.js +24 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-Dp1Jmi5H.js +6 -0
- package/dist/jinja-WEhOU5ES.js +11 -0
- package/dist/jison-c2JI40PB.js +8 -0
- package/dist/journeyDiagram-FFXJYRFH-P_IVMTj2.js +836 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/julia-DcoDQokW.js +16 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kanban-definition-KOZQBZVT-Uk8JKe_b.js +720 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-VWFLl2T0.js +6 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-MZCpjnva.js +8 -0
- package/dist/layout-BHKAMNdk.js +1324 -0
- package/dist/lean-DXqEE_d1.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-UAzexi4b.js +255 -0
- package/dist/liquid-3HHuHOZ2.js +14 -0
- package/dist/llvm-6RQLId6G.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-BeoZWRh5.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/markdown-CiI2E98D.js +6 -0
- package/dist/marko-L-KhXzqZ.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/mdc-DPBWa7dN.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mermaid-B0ixDHKN.js +6 -0
- package/dist/mermaid-parser.core-FuzJzmL7.js +12921 -0
- package/dist/mermaid.core-D7qBd055.js +14002 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/mindmap-definition-LNHGMQRG-D1C2-kkn.js +3229 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-BD611d7o.js +6 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/move-653S600C.js +6 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-D1Zd9cNl.js +6 -0
- package/dist/nginx-5vhPAEw3.js +8 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-Fi8wNe6i.js +20 -0
- package/dist/nix-ceY58Dty.js +6 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nushell-Be2rueDv.js +6 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-HUATNLJX-B5EJOyma.js +5 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-BoEn6HmT.js +16 -0
- package/dist/php-BRU9zhoN.js +18 -0
- package/dist/pie-WTHONI2E-Bl1BKqE7.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-BkVTsR1n.js +161 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/proto-MmCPeFAD.js +6 -0
- package/dist/pug-CJWI-qSo.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/qml-D3ATcgGh.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/quadrantDiagram-YPSRARAO-D1el8UE7.js +1024 -0
- package/dist/r-Bm0uF0U2.js +6 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/radar-NJJJXTRR-Ba8Estdw.js +5 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-BPFYEoc9.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/requirementDiagram-EGVEC5DT-DL1bEAjs.js +852 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/rose-pine-Cr4kwgAY.js +4 -0
- package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
- package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
- package/dist/rst-B6mPMsKo.js +22 -0
- package/dist/ruby-DInklMmU.js +30 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/sankeyDiagram-HRAUVNP4-Dyr3TqRu.js +810 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/sequenceDiagram-4MX5Z3NR-CaMVkEvG.js +2283 -0
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solidity-CneOhxmR.js +6 -0
- package/dist/soy-LybuU3Y_.js +8 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/stateDiagram-UUKSUZ4H-D-xTiq6H.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-BK5bFTpp.js +16 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-BjDUPxZ1.js +14 -0
- package/dist/swift-_uF_96_m.js +6 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-Brj2RH7A.js +12 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-CmrLTxbG.js +8 -0
- package/dist/timeline-definition-3HZDQTIS-DbCuAY-N.js +801 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/treemap-75Q7IDZK-RcudvwLc.js +5 -0
- package/dist/ts-tags-CZMzuZh-.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-GjIxYqCX.js +18 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/typescript-mg6ATTE8.js +6 -0
- package/dist/typespec-Djmco60m.js +6 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/v-BW14IZv7.js +6 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vue-D-ba2-Rx.js +31 -0
- package/dist/vue-html-Dn2ZoOSz.js +10 -0
- package/dist/vue-vine-Jmfkm6lF.js +20 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/xychartDiagram-FDP5SA34-NGeBTA9Y.js +1340 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,2503 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Ze, { useState as Ee, useEffect as J, useCallback as V, useRef as W, useId as dn, memo as hn, useMemo as pn } from "react";
|
|
3
|
-
import { motion as q, AnimatePresence as Ue, useMotionValue as _t, useDragControls as vn, animate as xt } from "framer-motion";
|
|
4
|
-
import { useRef as mn, useCallback as et, useEffect as gn } from "@wordpress/element";
|
|
5
|
-
import { Slot as yn } from "@radix-ui/react-slot";
|
|
6
|
-
import Cn from "react-markdown";
|
|
7
|
-
import './index.css';var rt = { exports: {} }, je = {};
|
|
8
|
-
/**
|
|
9
|
-
* @license React
|
|
10
|
-
* react-jsx-runtime.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
var bt;
|
|
18
|
-
function _n() {
|
|
19
|
-
if (bt) return je;
|
|
20
|
-
bt = 1;
|
|
21
|
-
var n = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
-
function u(h, f, p) {
|
|
23
|
-
var m, g = {}, C = null, E = null;
|
|
24
|
-
p !== void 0 && (C = "" + p), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (E = f.ref);
|
|
25
|
-
for (m in f) i.call(f, m) && !s.hasOwnProperty(m) && (g[m] = f[m]);
|
|
26
|
-
if (h && h.defaultProps) for (m in f = h.defaultProps, f) g[m] === void 0 && (g[m] = f[m]);
|
|
27
|
-
return { $$typeof: t, type: h, key: C, ref: E, props: g, _owner: a.current };
|
|
28
|
-
}
|
|
29
|
-
return je.Fragment = r, je.jsx = u, je.jsxs = u, je;
|
|
30
|
-
}
|
|
31
|
-
var Le = {};
|
|
32
|
-
/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.development.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
var wt;
|
|
42
|
-
function xn() {
|
|
43
|
-
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var n = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), D = Symbol.iterator, H = "@@iterator";
|
|
45
|
-
function B(e) {
|
|
46
|
-
if (e === null || typeof e != "object")
|
|
47
|
-
return null;
|
|
48
|
-
var c = D && e[D] || e[H];
|
|
49
|
-
return typeof c == "function" ? c : null;
|
|
50
|
-
}
|
|
51
|
-
var M = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function j(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
|
|
55
|
-
d[y - 1] = arguments[y];
|
|
56
|
-
K("error", e, d);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function K(e, c, d) {
|
|
60
|
-
{
|
|
61
|
-
var y = M.ReactDebugCurrentFrame, R = y.getStackAddendum();
|
|
62
|
-
R !== "" && (c += "%s", d = d.concat([R]));
|
|
63
|
-
var L = d.map(function(w) {
|
|
64
|
-
return String(w);
|
|
65
|
-
});
|
|
66
|
-
L.unshift("Warning: " + c), Function.prototype.apply.call(console[e], console, L);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var l = !1, v = !1, _ = !1, A = !1, O = !1, T;
|
|
70
|
-
T = Symbol.for("react.module.reference");
|
|
71
|
-
function Z(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === i || e === s || O || e === a || e === p || e === m || A || e === E || l || v || _ || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === u || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
|
|
73
|
-
// types supported by any Flight configuration anywhere since
|
|
74
|
-
// we don't know which Flight build this will end up being used
|
|
75
|
-
// with.
|
|
76
|
-
e.$$typeof === T || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Pe(e, c, d) {
|
|
79
|
-
var y = e.displayName;
|
|
80
|
-
if (y)
|
|
81
|
-
return y;
|
|
82
|
-
var R = c.displayName || c.name || "";
|
|
83
|
-
return R !== "" ? d + "(" + R + ")" : d;
|
|
84
|
-
}
|
|
85
|
-
function S(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function z(e) {
|
|
89
|
-
if (e == null)
|
|
90
|
-
return null;
|
|
91
|
-
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
-
return e.displayName || e.name || null;
|
|
93
|
-
if (typeof e == "string")
|
|
94
|
-
return e;
|
|
95
|
-
switch (e) {
|
|
96
|
-
case i:
|
|
97
|
-
return "Fragment";
|
|
98
|
-
case r:
|
|
99
|
-
return "Portal";
|
|
100
|
-
case s:
|
|
101
|
-
return "Profiler";
|
|
102
|
-
case a:
|
|
103
|
-
return "StrictMode";
|
|
104
|
-
case p:
|
|
105
|
-
return "Suspense";
|
|
106
|
-
case m:
|
|
107
|
-
return "SuspenseList";
|
|
108
|
-
}
|
|
109
|
-
if (typeof e == "object")
|
|
110
|
-
switch (e.$$typeof) {
|
|
111
|
-
case h:
|
|
112
|
-
var c = e;
|
|
113
|
-
return S(c) + ".Consumer";
|
|
114
|
-
case u:
|
|
115
|
-
var d = e;
|
|
116
|
-
return S(d._context) + ".Provider";
|
|
117
|
-
case f:
|
|
118
|
-
return Pe(e, e.render, "ForwardRef");
|
|
119
|
-
case g:
|
|
120
|
-
var y = e.displayName || null;
|
|
121
|
-
return y !== null ? y : z(e.type) || "Memo";
|
|
122
|
-
case C: {
|
|
123
|
-
var R = e, L = R._payload, w = R._init;
|
|
124
|
-
try {
|
|
125
|
-
return z(w(L));
|
|
126
|
-
} catch {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
var te = Object.assign, ne = 0, Fe, de, le, Q, re, ie, he;
|
|
134
|
-
function Me() {
|
|
135
|
-
}
|
|
136
|
-
Me.__reactDisabledLog = !0;
|
|
137
|
-
function ce() {
|
|
138
|
-
{
|
|
139
|
-
if (ne === 0) {
|
|
140
|
-
Fe = console.log, de = console.info, le = console.warn, Q = console.error, re = console.group, ie = console.groupCollapsed, he = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: Me,
|
|
145
|
-
writable: !0
|
|
146
|
-
};
|
|
147
|
-
Object.defineProperties(console, {
|
|
148
|
-
info: e,
|
|
149
|
-
log: e,
|
|
150
|
-
warn: e,
|
|
151
|
-
error: e,
|
|
152
|
-
group: e,
|
|
153
|
-
groupCollapsed: e,
|
|
154
|
-
groupEnd: e
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
ne++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Ge() {
|
|
161
|
-
{
|
|
162
|
-
if (ne--, ne === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: te({}, e, {
|
|
170
|
-
value: Fe
|
|
171
|
-
}),
|
|
172
|
-
info: te({}, e, {
|
|
173
|
-
value: de
|
|
174
|
-
}),
|
|
175
|
-
warn: te({}, e, {
|
|
176
|
-
value: le
|
|
177
|
-
}),
|
|
178
|
-
error: te({}, e, {
|
|
179
|
-
value: Q
|
|
180
|
-
}),
|
|
181
|
-
group: te({}, e, {
|
|
182
|
-
value: re
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: te({}, e, {
|
|
185
|
-
value: ie
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: te({}, e, {
|
|
188
|
-
value: he
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
ne < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var Te = M.ReactCurrentDispatcher, pe;
|
|
196
|
-
function ae(e, c, d) {
|
|
197
|
-
{
|
|
198
|
-
if (pe === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (R) {
|
|
202
|
-
var y = R.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
pe = y && y[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + pe + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var ue = !1, ve;
|
|
210
|
-
{
|
|
211
|
-
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
ve = new me();
|
|
213
|
-
}
|
|
214
|
-
function ke(e, c) {
|
|
215
|
-
if (!e || ue)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var d = ve.get(e);
|
|
219
|
-
if (d !== void 0)
|
|
220
|
-
return d;
|
|
221
|
-
}
|
|
222
|
-
var y;
|
|
223
|
-
ue = !0;
|
|
224
|
-
var R = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var L;
|
|
227
|
-
L = Te.current, Te.current = null, ce();
|
|
228
|
-
try {
|
|
229
|
-
if (c) {
|
|
230
|
-
var w = function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
};
|
|
233
|
-
if (Object.defineProperty(w.prototype, "props", {
|
|
234
|
-
set: function() {
|
|
235
|
-
throw Error();
|
|
236
|
-
}
|
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
-
try {
|
|
239
|
-
Reflect.construct(w, []);
|
|
240
|
-
} catch (Y) {
|
|
241
|
-
y = Y;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], w);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
w.call();
|
|
247
|
-
} catch (Y) {
|
|
248
|
-
y = Y;
|
|
249
|
-
}
|
|
250
|
-
e.call(w.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (Y) {
|
|
256
|
-
y = Y;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (Y) {
|
|
261
|
-
if (Y && y && typeof Y.stack == "string") {
|
|
262
|
-
for (var b = Y.stack.split(`
|
|
263
|
-
`), N = y.stack.split(`
|
|
264
|
-
`), I = b.length - 1, P = N.length - 1; I >= 1 && P >= 0 && b[I] !== N[P]; )
|
|
265
|
-
P--;
|
|
266
|
-
for (; I >= 1 && P >= 0; I--, P--)
|
|
267
|
-
if (b[I] !== N[P]) {
|
|
268
|
-
if (I !== 1 || P !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (I--, P--, P < 0 || b[I] !== N[P]) {
|
|
271
|
-
var G = `
|
|
272
|
-
` + b[I].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" && ve.set(e, G), G;
|
|
274
|
-
}
|
|
275
|
-
while (I >= 1 && P >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
ue = !1, Te.current = L, Ge(), Error.prepareStackTrace = R;
|
|
281
|
-
}
|
|
282
|
-
var xe = e ? e.displayName || e.name : "", fe = xe ? ae(xe) : "";
|
|
283
|
-
return typeof e == "function" && ve.set(e, fe), fe;
|
|
284
|
-
}
|
|
285
|
-
function Ke(e, c, d) {
|
|
286
|
-
return ke(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function $e(e) {
|
|
289
|
-
var c = e.prototype;
|
|
290
|
-
return !!(c && c.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function ge(e, c, d) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return ke(e, $e(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return ae(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case p:
|
|
301
|
-
return ae("Suspense");
|
|
302
|
-
case m:
|
|
303
|
-
return ae("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case f:
|
|
308
|
-
return Ke(e.render);
|
|
309
|
-
case g:
|
|
310
|
-
return ge(e.type, c, d);
|
|
311
|
-
case C: {
|
|
312
|
-
var y = e, R = y._payload, L = y._init;
|
|
313
|
-
try {
|
|
314
|
-
return ge(L(R), c, d);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var x = Object.prototype.hasOwnProperty, k = {}, U = M.ReactDebugCurrentFrame;
|
|
322
|
-
function X(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var c = e._owner, d = ge(e.type, e._source, c ? c.type : null);
|
|
325
|
-
U.setExtraStackFrame(d);
|
|
326
|
-
} else
|
|
327
|
-
U.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function ye(e, c, d, y, R) {
|
|
330
|
-
{
|
|
331
|
-
var L = Function.call.bind(x);
|
|
332
|
-
for (var w in e)
|
|
333
|
-
if (L(e, w)) {
|
|
334
|
-
var b = void 0;
|
|
335
|
-
try {
|
|
336
|
-
if (typeof e[w] != "function") {
|
|
337
|
-
var N = Error((y || "React class") + ": " + d + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
-
throw N.name = "Invariant Violation", N;
|
|
339
|
-
}
|
|
340
|
-
b = e[w](c, w, y, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (I) {
|
|
342
|
-
b = I;
|
|
343
|
-
}
|
|
344
|
-
b && !(b instanceof Error) && (X(R), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", d, w, typeof b), X(null)), b instanceof Error && !(b.message in k) && (k[b.message] = !0, X(R), j("Failed %s type: %s", d, b.message), X(null));
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
var He = Array.isArray;
|
|
349
|
-
function oe(e) {
|
|
350
|
-
return He(e);
|
|
351
|
-
}
|
|
352
|
-
function Ce(e) {
|
|
353
|
-
{
|
|
354
|
-
var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
|
-
return d;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function Xe(e) {
|
|
359
|
-
try {
|
|
360
|
-
return Ne(e), !1;
|
|
361
|
-
} catch {
|
|
362
|
-
return !0;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function Ne(e) {
|
|
366
|
-
return "" + e;
|
|
367
|
-
}
|
|
368
|
-
function ct(e) {
|
|
369
|
-
if (Xe(e))
|
|
370
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ce(e)), Ne(e);
|
|
371
|
-
}
|
|
372
|
-
var ut = M.ReactCurrentOwner, Gt = {
|
|
373
|
-
key: !0,
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, ft, dt;
|
|
378
|
-
function Kt(e) {
|
|
379
|
-
if (x.call(e, "ref")) {
|
|
380
|
-
var c = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
-
if (c && c.isReactWarning)
|
|
382
|
-
return !1;
|
|
383
|
-
}
|
|
384
|
-
return e.ref !== void 0;
|
|
385
|
-
}
|
|
386
|
-
function Xt(e) {
|
|
387
|
-
if (x.call(e, "key")) {
|
|
388
|
-
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
-
if (c && c.isReactWarning)
|
|
390
|
-
return !1;
|
|
391
|
-
}
|
|
392
|
-
return e.key !== void 0;
|
|
393
|
-
}
|
|
394
|
-
function Jt(e, c) {
|
|
395
|
-
typeof e.ref == "string" && ut.current;
|
|
396
|
-
}
|
|
397
|
-
function qt(e, c) {
|
|
398
|
-
{
|
|
399
|
-
var d = function() {
|
|
400
|
-
ft || (ft = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
401
|
-
};
|
|
402
|
-
d.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
|
-
get: d,
|
|
404
|
-
configurable: !0
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function zt(e, c) {
|
|
409
|
-
{
|
|
410
|
-
var d = function() {
|
|
411
|
-
dt || (dt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
412
|
-
};
|
|
413
|
-
d.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
|
-
get: d,
|
|
415
|
-
configurable: !0
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
var Qt = function(e, c, d, y, R, L, w) {
|
|
420
|
-
var b = {
|
|
421
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof: t,
|
|
423
|
-
// Built-in properties that belong on the element
|
|
424
|
-
type: e,
|
|
425
|
-
key: c,
|
|
426
|
-
ref: d,
|
|
427
|
-
props: w,
|
|
428
|
-
// Record the component responsible for creating this element.
|
|
429
|
-
_owner: L
|
|
430
|
-
};
|
|
431
|
-
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !0,
|
|
435
|
-
value: !1
|
|
436
|
-
}), Object.defineProperty(b, "_self", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: y
|
|
441
|
-
}), Object.defineProperty(b, "_source", {
|
|
442
|
-
configurable: !1,
|
|
443
|
-
enumerable: !1,
|
|
444
|
-
writable: !1,
|
|
445
|
-
value: R
|
|
446
|
-
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
447
|
-
};
|
|
448
|
-
function en(e, c, d, y, R) {
|
|
449
|
-
{
|
|
450
|
-
var L, w = {}, b = null, N = null;
|
|
451
|
-
d !== void 0 && (ct(d), b = "" + d), Xt(c) && (ct(c.key), b = "" + c.key), Kt(c) && (N = c.ref, Jt(c, R));
|
|
452
|
-
for (L in c)
|
|
453
|
-
x.call(c, L) && !Gt.hasOwnProperty(L) && (w[L] = c[L]);
|
|
454
|
-
if (e && e.defaultProps) {
|
|
455
|
-
var I = e.defaultProps;
|
|
456
|
-
for (L in I)
|
|
457
|
-
w[L] === void 0 && (w[L] = I[L]);
|
|
458
|
-
}
|
|
459
|
-
if (b || N) {
|
|
460
|
-
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
b && qt(w, P), N && zt(w, P);
|
|
462
|
-
}
|
|
463
|
-
return Qt(e, b, N, R, y, ut.current, w);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
var Je = M.ReactCurrentOwner, ht = M.ReactDebugCurrentFrame;
|
|
467
|
-
function _e(e) {
|
|
468
|
-
if (e) {
|
|
469
|
-
var c = e._owner, d = ge(e.type, e._source, c ? c.type : null);
|
|
470
|
-
ht.setExtraStackFrame(d);
|
|
471
|
-
} else
|
|
472
|
-
ht.setExtraStackFrame(null);
|
|
473
|
-
}
|
|
474
|
-
var qe;
|
|
475
|
-
qe = !1;
|
|
476
|
-
function ze(e) {
|
|
477
|
-
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
478
|
-
}
|
|
479
|
-
function pt() {
|
|
480
|
-
{
|
|
481
|
-
if (Je.current) {
|
|
482
|
-
var e = z(Je.current.type);
|
|
483
|
-
if (e)
|
|
484
|
-
return `
|
|
485
|
-
|
|
486
|
-
Check the render method of \`` + e + "`.";
|
|
487
|
-
}
|
|
488
|
-
return "";
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
function tn(e) {
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
var vt = {};
|
|
495
|
-
function nn(e) {
|
|
496
|
-
{
|
|
497
|
-
var c = pt();
|
|
498
|
-
if (!c) {
|
|
499
|
-
var d = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
|
-
d && (c = `
|
|
501
|
-
|
|
502
|
-
Check the top-level render call using <` + d + ">.");
|
|
503
|
-
}
|
|
504
|
-
return c;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
function mt(e, c) {
|
|
508
|
-
{
|
|
509
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
510
|
-
return;
|
|
511
|
-
e._store.validated = !0;
|
|
512
|
-
var d = nn(c);
|
|
513
|
-
if (vt[d])
|
|
514
|
-
return;
|
|
515
|
-
vt[d] = !0;
|
|
516
|
-
var y = "";
|
|
517
|
-
e && e._owner && e._owner !== Je.current && (y = " It was passed a child from " + z(e._owner.type) + "."), _e(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, y), _e(null);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
function gt(e, c) {
|
|
521
|
-
{
|
|
522
|
-
if (typeof e != "object")
|
|
523
|
-
return;
|
|
524
|
-
if (oe(e))
|
|
525
|
-
for (var d = 0; d < e.length; d++) {
|
|
526
|
-
var y = e[d];
|
|
527
|
-
ze(y) && mt(y, c);
|
|
528
|
-
}
|
|
529
|
-
else if (ze(e))
|
|
530
|
-
e._store && (e._store.validated = !0);
|
|
531
|
-
else if (e) {
|
|
532
|
-
var R = B(e);
|
|
533
|
-
if (typeof R == "function" && R !== e.entries)
|
|
534
|
-
for (var L = R.call(e), w; !(w = L.next()).done; )
|
|
535
|
-
ze(w.value) && mt(w.value, c);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
function rn(e) {
|
|
540
|
-
{
|
|
541
|
-
var c = e.type;
|
|
542
|
-
if (c == null || typeof c == "string")
|
|
543
|
-
return;
|
|
544
|
-
var d;
|
|
545
|
-
if (typeof c == "function")
|
|
546
|
-
d = c.propTypes;
|
|
547
|
-
else if (typeof c == "object" && (c.$$typeof === f || // Note: Memo only checks outer props here.
|
|
548
|
-
// Inner props are checked in the reconciler.
|
|
549
|
-
c.$$typeof === g))
|
|
550
|
-
d = c.propTypes;
|
|
551
|
-
else
|
|
552
|
-
return;
|
|
553
|
-
if (d) {
|
|
554
|
-
var y = z(c);
|
|
555
|
-
ye(d, e.props, "prop", y, e);
|
|
556
|
-
} else if (c.PropTypes !== void 0 && !qe) {
|
|
557
|
-
qe = !0;
|
|
558
|
-
var R = z(c);
|
|
559
|
-
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
560
|
-
}
|
|
561
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function an(e) {
|
|
565
|
-
{
|
|
566
|
-
for (var c = Object.keys(e.props), d = 0; d < c.length; d++) {
|
|
567
|
-
var y = c[d];
|
|
568
|
-
if (y !== "children" && y !== "key") {
|
|
569
|
-
_e(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), _e(null);
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
e.ref !== null && (_e(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
var yt = {};
|
|
577
|
-
function Ct(e, c, d, y, R, L) {
|
|
578
|
-
{
|
|
579
|
-
var w = Z(e);
|
|
580
|
-
if (!w) {
|
|
581
|
-
var b = "";
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var N = tn();
|
|
584
|
-
N ? b += N : b += pt();
|
|
585
|
-
var I;
|
|
586
|
-
e === null ? I = "null" : oe(e) ? I = "array" : e !== void 0 && e.$$typeof === t ? (I = "<" + (z(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : I = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, b);
|
|
587
|
-
}
|
|
588
|
-
var P = en(e, c, d, R, L);
|
|
589
|
-
if (P == null)
|
|
590
|
-
return P;
|
|
591
|
-
if (w) {
|
|
592
|
-
var G = c.children;
|
|
593
|
-
if (G !== void 0)
|
|
594
|
-
if (y)
|
|
595
|
-
if (oe(G)) {
|
|
596
|
-
for (var xe = 0; xe < G.length; xe++)
|
|
597
|
-
gt(G[xe], e);
|
|
598
|
-
Object.freeze && Object.freeze(G);
|
|
599
|
-
} else
|
|
600
|
-
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
|
-
else
|
|
602
|
-
gt(G, e);
|
|
603
|
-
}
|
|
604
|
-
if (x.call(c, "key")) {
|
|
605
|
-
var fe = z(e), Y = Object.keys(c).filter(function(fn) {
|
|
606
|
-
return fn !== "key";
|
|
607
|
-
}), Qe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
-
if (!yt[fe + Qe]) {
|
|
609
|
-
var un = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
j(`A props object containing a "key" prop is being spread into JSX:
|
|
611
|
-
let props = %s;
|
|
612
|
-
<%s {...props} />
|
|
613
|
-
React keys must be passed directly to JSX without using spread:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`, Qe, fe, un, fe), yt[fe + Qe] = !0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return e === i ? an(P) : rn(P), P;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
function on(e, c, d) {
|
|
622
|
-
return Ct(e, c, d, !0);
|
|
623
|
-
}
|
|
624
|
-
function sn(e, c, d) {
|
|
625
|
-
return Ct(e, c, d, !1);
|
|
626
|
-
}
|
|
627
|
-
var ln = sn, cn = on;
|
|
628
|
-
Le.Fragment = i, Le.jsx = ln, Le.jsxs = cn;
|
|
629
|
-
}()), Le;
|
|
630
|
-
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? rt.exports = _n() : rt.exports = xn();
|
|
632
|
-
var o = rt.exports;
|
|
633
|
-
function se(...n) {
|
|
634
|
-
return n.flat().filter(Boolean).map((t) => typeof t == "string" ? t : typeof t == "object" && !Array.isArray(t) && t !== null ? Object.entries(t).filter(([r, i]) => i).map(([r]) => r).join(" ") : "").join(" ").trim();
|
|
635
|
-
}
|
|
636
|
-
function bn(n) {
|
|
637
|
-
const t = n || "collapsed", [r, i] = Ee(t);
|
|
638
|
-
J(() => {
|
|
639
|
-
n !== void 0 && i(n);
|
|
640
|
-
}, [n]);
|
|
641
|
-
const a = r !== "collapsed" && r !== "compact", s = V(() => {
|
|
642
|
-
i("expanded");
|
|
643
|
-
}, []), u = V(() => {
|
|
644
|
-
i(t);
|
|
645
|
-
}, [t]), h = V(() => {
|
|
646
|
-
i(
|
|
647
|
-
(f) => f === "collapsed" ? "compact" : "collapsed"
|
|
648
|
-
);
|
|
649
|
-
}, []);
|
|
650
|
-
return {
|
|
651
|
-
state: r,
|
|
652
|
-
initialState: t,
|
|
653
|
-
setState: i,
|
|
654
|
-
isOpen: a,
|
|
655
|
-
open: s,
|
|
656
|
-
close: u,
|
|
657
|
-
toggle: h
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
function wn({
|
|
661
|
-
value: n,
|
|
662
|
-
setValue: t,
|
|
663
|
-
onSubmit: r,
|
|
664
|
-
isProcessing: i
|
|
665
|
-
}) {
|
|
666
|
-
const a = mn(null), s = et(() => {
|
|
667
|
-
t(""), a.current && (a.current.style.height = "auto", setTimeout(() => {
|
|
668
|
-
var f;
|
|
669
|
-
(f = a.current) == null || f.focus();
|
|
670
|
-
}, 100));
|
|
671
|
-
}, [t]), u = et(() => {
|
|
672
|
-
const f = a.current;
|
|
673
|
-
if (!f)
|
|
674
|
-
return;
|
|
675
|
-
f.style.height = "auto";
|
|
676
|
-
const p = f.scrollHeight, m = 40, g = 200;
|
|
677
|
-
f.style.height = `${Math.min(
|
|
678
|
-
Math.max(p, m),
|
|
679
|
-
g
|
|
680
|
-
)}px`;
|
|
681
|
-
}, []), h = et(
|
|
682
|
-
(f) => {
|
|
683
|
-
f.key === "Enter" && !f.shiftKey && !i && n.trim() && (f.preventDefault(), r(n.trim()), s());
|
|
684
|
-
},
|
|
685
|
-
[n, i, r, s]
|
|
686
|
-
);
|
|
687
|
-
return gn(() => {
|
|
688
|
-
u();
|
|
689
|
-
}, [n, u]), {
|
|
690
|
-
value: n,
|
|
691
|
-
setValue: t,
|
|
692
|
-
clear: s,
|
|
693
|
-
textareaRef: a,
|
|
694
|
-
handleKeyDown: h,
|
|
695
|
-
adjustHeight: u
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
var it, kt, Ie, $t;
|
|
699
|
-
it = {
|
|
700
|
-
"(": 9,
|
|
701
|
-
"!": 8,
|
|
702
|
-
"*": 7,
|
|
703
|
-
"/": 7,
|
|
704
|
-
"%": 7,
|
|
705
|
-
"+": 6,
|
|
706
|
-
"-": 6,
|
|
707
|
-
"<": 5,
|
|
708
|
-
"<=": 5,
|
|
709
|
-
">": 5,
|
|
710
|
-
">=": 5,
|
|
711
|
-
"==": 4,
|
|
712
|
-
"!=": 4,
|
|
713
|
-
"&&": 3,
|
|
714
|
-
"||": 2,
|
|
715
|
-
"?": 1,
|
|
716
|
-
"?:": 1
|
|
717
|
-
};
|
|
718
|
-
kt = ["(", "?"];
|
|
719
|
-
Ie = {
|
|
720
|
-
")": ["("],
|
|
721
|
-
":": ["?", "?:"]
|
|
722
|
-
};
|
|
723
|
-
$t = /<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;
|
|
724
|
-
function En(n) {
|
|
725
|
-
for (var t = [], r = [], i, a, s, u; i = n.match($t); ) {
|
|
726
|
-
for (a = i[0], s = n.substr(0, i.index).trim(), s && t.push(s); u = r.pop(); ) {
|
|
727
|
-
if (Ie[a]) {
|
|
728
|
-
if (Ie[a][0] === u) {
|
|
729
|
-
a = Ie[a][1] || a;
|
|
730
|
-
break;
|
|
731
|
-
}
|
|
732
|
-
} else if (kt.indexOf(u) >= 0 || it[u] < it[a]) {
|
|
733
|
-
r.push(u);
|
|
734
|
-
break;
|
|
735
|
-
}
|
|
736
|
-
t.push(u);
|
|
737
|
-
}
|
|
738
|
-
Ie[a] || r.push(a), n = n.substr(i.index + a.length);
|
|
739
|
-
}
|
|
740
|
-
return n = n.trim(), n && t.push(n), t.concat(r.reverse());
|
|
741
|
-
}
|
|
742
|
-
var Rn = {
|
|
743
|
-
"!": function(n) {
|
|
744
|
-
return !n;
|
|
745
|
-
},
|
|
746
|
-
"*": function(n, t) {
|
|
747
|
-
return n * t;
|
|
748
|
-
},
|
|
749
|
-
"/": function(n, t) {
|
|
750
|
-
return n / t;
|
|
751
|
-
},
|
|
752
|
-
"%": function(n, t) {
|
|
753
|
-
return n % t;
|
|
754
|
-
},
|
|
755
|
-
"+": function(n, t) {
|
|
756
|
-
return n + t;
|
|
757
|
-
},
|
|
758
|
-
"-": function(n, t) {
|
|
759
|
-
return n - t;
|
|
760
|
-
},
|
|
761
|
-
"<": function(n, t) {
|
|
762
|
-
return n < t;
|
|
763
|
-
},
|
|
764
|
-
"<=": function(n, t) {
|
|
765
|
-
return n <= t;
|
|
766
|
-
},
|
|
767
|
-
">": function(n, t) {
|
|
768
|
-
return n > t;
|
|
769
|
-
},
|
|
770
|
-
">=": function(n, t) {
|
|
771
|
-
return n >= t;
|
|
772
|
-
},
|
|
773
|
-
"==": function(n, t) {
|
|
774
|
-
return n === t;
|
|
775
|
-
},
|
|
776
|
-
"!=": function(n, t) {
|
|
777
|
-
return n !== t;
|
|
778
|
-
},
|
|
779
|
-
"&&": function(n, t) {
|
|
780
|
-
return n && t;
|
|
781
|
-
},
|
|
782
|
-
"||": function(n, t) {
|
|
783
|
-
return n || t;
|
|
784
|
-
},
|
|
785
|
-
"?:": function(n, t, r) {
|
|
786
|
-
if (n)
|
|
787
|
-
throw t;
|
|
788
|
-
return r;
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
function Tn(n, t) {
|
|
792
|
-
var r = [], i, a, s, u, h, f;
|
|
793
|
-
for (i = 0; i < n.length; i++) {
|
|
794
|
-
if (h = n[i], u = Rn[h], u) {
|
|
795
|
-
for (a = u.length, s = Array(a); a--; )
|
|
796
|
-
s[a] = r.pop();
|
|
797
|
-
try {
|
|
798
|
-
f = u.apply(null, s);
|
|
799
|
-
} catch (p) {
|
|
800
|
-
return p;
|
|
801
|
-
}
|
|
802
|
-
} else t.hasOwnProperty(h) ? f = t[h] : f = +h;
|
|
803
|
-
r.push(f);
|
|
804
|
-
}
|
|
805
|
-
return r[0];
|
|
806
|
-
}
|
|
807
|
-
function jn(n) {
|
|
808
|
-
var t = En(n);
|
|
809
|
-
return function(r) {
|
|
810
|
-
return Tn(t, r);
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function Ln(n) {
|
|
814
|
-
var t = jn(n);
|
|
815
|
-
return function(r) {
|
|
816
|
-
return +t({ n: r });
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
var Et = {
|
|
820
|
-
contextDelimiter: "",
|
|
821
|
-
onMissingKey: null
|
|
822
|
-
};
|
|
823
|
-
function An(n) {
|
|
824
|
-
var t, r, i;
|
|
825
|
-
for (t = n.split(";"), r = 0; r < t.length; r++)
|
|
826
|
-
if (i = t[r].trim(), i.indexOf("plural=") === 0)
|
|
827
|
-
return i.substr(7);
|
|
828
|
-
}
|
|
829
|
-
function ot(n, t) {
|
|
830
|
-
var r;
|
|
831
|
-
this.data = n, this.pluralForms = {}, this.options = {};
|
|
832
|
-
for (r in Et)
|
|
833
|
-
this.options[r] = t !== void 0 && r in t ? t[r] : Et[r];
|
|
834
|
-
}
|
|
835
|
-
ot.prototype.getPluralForm = function(n, t) {
|
|
836
|
-
var r = this.pluralForms[n], i, a, s;
|
|
837
|
-
return r || (i = this.data[n][""], s = i["Plural-Forms"] || i["plural-forms"] || // Ignore reason: As known, there's no way to document the empty
|
|
838
|
-
// string property on a key to guarantee this as metadata.
|
|
839
|
-
// @ts-ignore
|
|
840
|
-
i.plural_forms, typeof s != "function" && (a = An(
|
|
841
|
-
i["Plural-Forms"] || i["plural-forms"] || // Ignore reason: As known, there's no way to document the empty
|
|
842
|
-
// string property on a key to guarantee this as metadata.
|
|
843
|
-
// @ts-ignore
|
|
844
|
-
i.plural_forms
|
|
845
|
-
), s = Ln(a)), r = this.pluralForms[n] = s), r(t);
|
|
846
|
-
};
|
|
847
|
-
ot.prototype.dcnpgettext = function(n, t, r, i, a) {
|
|
848
|
-
var s, u, h;
|
|
849
|
-
return a === void 0 ? s = 0 : s = this.getPluralForm(n, a), u = r, t && (u = t + this.options.contextDelimiter + r), h = this.data[n][u], h && h[s] ? h[s] : (this.options.onMissingKey && this.options.onMissingKey(r, n), s === 0 ? r : i);
|
|
850
|
-
};
|
|
851
|
-
const Rt = {
|
|
852
|
-
"": {
|
|
853
|
-
plural_forms(n) {
|
|
854
|
-
return n === 1 ? 0 : 1;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}, Sn = /^i18n\.(n?gettext|has_translation)(_|$)/, On = (n, t, r) => {
|
|
858
|
-
const i = new ot({}), a = /* @__PURE__ */ new Set(), s = () => {
|
|
859
|
-
a.forEach((l) => l());
|
|
860
|
-
}, u = (l) => (a.add(l), () => a.delete(l)), h = (l = "default") => i.data[l], f = (l, v = "default") => {
|
|
861
|
-
var _;
|
|
862
|
-
i.data[v] = {
|
|
863
|
-
...i.data[v],
|
|
864
|
-
...l
|
|
865
|
-
}, i.data[v][""] = {
|
|
866
|
-
...Rt[""],
|
|
867
|
-
...(_ = i.data[v]) == null ? void 0 : _[""]
|
|
868
|
-
}, delete i.pluralForms[v];
|
|
869
|
-
}, p = (l, v) => {
|
|
870
|
-
f(l, v), s();
|
|
871
|
-
}, m = (l, v = "default") => {
|
|
872
|
-
var _;
|
|
873
|
-
i.data[v] = {
|
|
874
|
-
...i.data[v],
|
|
875
|
-
...l,
|
|
876
|
-
// Populate default domain configuration (supported locale date which omits
|
|
877
|
-
// a plural forms expression).
|
|
878
|
-
"": {
|
|
879
|
-
...Rt[""],
|
|
880
|
-
...(_ = i.data[v]) == null ? void 0 : _[""],
|
|
881
|
-
...l == null ? void 0 : l[""]
|
|
882
|
-
}
|
|
883
|
-
}, delete i.pluralForms[v], s();
|
|
884
|
-
}, g = (l, v) => {
|
|
885
|
-
i.data = {}, i.pluralForms = {}, p(l, v);
|
|
886
|
-
}, C = (l = "default", v, _, A, O) => (i.data[l] || f(void 0, l), i.dcnpgettext(l, v, _, A, O)), E = (l) => l || "default", D = (l, v) => {
|
|
887
|
-
let _ = C(v, void 0, l);
|
|
888
|
-
return r ? (_ = r.applyFilters("i18n.gettext", _, l, v), r.applyFilters("i18n.gettext_" + E(v), _, l, v)) : _;
|
|
889
|
-
}, H = (l, v, _) => {
|
|
890
|
-
let A = C(_, v, l);
|
|
891
|
-
return r ? (A = r.applyFilters("i18n.gettext_with_context", A, l, v, _), r.applyFilters("i18n.gettext_with_context_" + E(_), A, l, v, _)) : A;
|
|
892
|
-
}, B = (l, v, _, A) => {
|
|
893
|
-
let O = C(A, void 0, l, v, _);
|
|
894
|
-
return r ? (O = r.applyFilters("i18n.ngettext", O, l, v, _, A), r.applyFilters("i18n.ngettext_" + E(A), O, l, v, _, A)) : O;
|
|
895
|
-
}, M = (l, v, _, A, O) => {
|
|
896
|
-
let T = C(O, A, l, v, _);
|
|
897
|
-
return r ? (T = r.applyFilters("i18n.ngettext_with_context", T, l, v, _, A, O), r.applyFilters("i18n.ngettext_with_context_" + E(O), T, l, v, _, A, O)) : T;
|
|
898
|
-
}, j = () => H("ltr", "text direction") === "rtl", K = (l, v, _) => {
|
|
899
|
-
var T, Z;
|
|
900
|
-
const A = v ? v + "" + l : l;
|
|
901
|
-
let O = !!((Z = (T = i.data) == null ? void 0 : T[_ ?? "default"]) != null && Z[A]);
|
|
902
|
-
return r && (O = r.applyFilters("i18n.has_translation", O, l, v, _), O = r.applyFilters("i18n.has_translation_" + E(_), O, l, v, _)), O;
|
|
903
|
-
};
|
|
904
|
-
if (r) {
|
|
905
|
-
const l = (v) => {
|
|
906
|
-
Sn.test(v) && s();
|
|
907
|
-
};
|
|
908
|
-
r.addAction("hookAdded", "core/i18n", l), r.addAction("hookRemoved", "core/i18n", l);
|
|
909
|
-
}
|
|
910
|
-
return {
|
|
911
|
-
getLocaleData: h,
|
|
912
|
-
setLocaleData: p,
|
|
913
|
-
addLocaleData: m,
|
|
914
|
-
resetLocaleData: g,
|
|
915
|
-
subscribe: u,
|
|
916
|
-
__: D,
|
|
917
|
-
_x: H,
|
|
918
|
-
_n: B,
|
|
919
|
-
_nx: M,
|
|
920
|
-
isRTL: j,
|
|
921
|
-
hasTranslation: K
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
function Ht(n) {
|
|
925
|
-
return typeof n != "string" || n === "" ? (console.error("The namespace must be a non-empty string."), !1) : /^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n) ? !0 : (console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."), !1);
|
|
926
|
-
}
|
|
927
|
-
function st(n) {
|
|
928
|
-
return typeof n != "string" || n === "" ? (console.error("The hook name must be a non-empty string."), !1) : /^__/.test(n) ? (console.error("The hook name cannot begin with `__`."), !1) : /^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(n) ? !0 : (console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."), !1);
|
|
929
|
-
}
|
|
930
|
-
function Tt(n, t) {
|
|
931
|
-
return function(i, a, s, u = 10) {
|
|
932
|
-
const h = n[t];
|
|
933
|
-
if (!st(i) || !Ht(a))
|
|
934
|
-
return;
|
|
935
|
-
if (typeof s != "function") {
|
|
936
|
-
console.error("The hook callback must be a function.");
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
if (typeof u != "number") {
|
|
940
|
-
console.error("If specified, the hook priority must be a number.");
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
const f = {
|
|
944
|
-
callback: s,
|
|
945
|
-
priority: u,
|
|
946
|
-
namespace: a
|
|
947
|
-
};
|
|
948
|
-
if (h[i]) {
|
|
949
|
-
const p = h[i].handlers;
|
|
950
|
-
let m;
|
|
951
|
-
for (m = p.length; m > 0 && !(u >= p[m - 1].priority); m--)
|
|
952
|
-
;
|
|
953
|
-
m === p.length ? p[m] = f : p.splice(m, 0, f), h.__current.forEach((g) => {
|
|
954
|
-
g.name === i && g.currentIndex >= m && g.currentIndex++;
|
|
955
|
-
});
|
|
956
|
-
} else
|
|
957
|
-
h[i] = {
|
|
958
|
-
handlers: [f],
|
|
959
|
-
runs: 0
|
|
960
|
-
};
|
|
961
|
-
i !== "hookAdded" && n.doAction("hookAdded", i, a, s, u);
|
|
962
|
-
};
|
|
963
|
-
}
|
|
964
|
-
function Ve(n, t, r = !1) {
|
|
965
|
-
return function(a, s) {
|
|
966
|
-
const u = n[t];
|
|
967
|
-
if (!st(a) || !r && !Ht(s))
|
|
968
|
-
return;
|
|
969
|
-
if (!u[a])
|
|
970
|
-
return 0;
|
|
971
|
-
let h = 0;
|
|
972
|
-
if (r)
|
|
973
|
-
h = u[a].handlers.length, u[a] = {
|
|
974
|
-
runs: u[a].runs,
|
|
975
|
-
handlers: []
|
|
976
|
-
};
|
|
977
|
-
else {
|
|
978
|
-
const f = u[a].handlers;
|
|
979
|
-
for (let p = f.length - 1; p >= 0; p--)
|
|
980
|
-
f[p].namespace === s && (f.splice(p, 1), h++, u.__current.forEach((m) => {
|
|
981
|
-
m.name === a && m.currentIndex >= p && m.currentIndex--;
|
|
982
|
-
}));
|
|
983
|
-
}
|
|
984
|
-
return a !== "hookRemoved" && n.doAction("hookRemoved", a, s), h;
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
function jt(n, t) {
|
|
988
|
-
return function(i, a) {
|
|
989
|
-
const s = n[t];
|
|
990
|
-
return typeof a < "u" ? i in s && s[i].handlers.some((u) => u.namespace === a) : i in s;
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
function We(n, t, r, i) {
|
|
994
|
-
return function(s, ...u) {
|
|
995
|
-
const h = n[t];
|
|
996
|
-
h[s] || (h[s] = {
|
|
997
|
-
handlers: [],
|
|
998
|
-
runs: 0
|
|
999
|
-
}), h[s].runs++;
|
|
1000
|
-
const f = h[s].handlers;
|
|
1001
|
-
if (process.env.NODE_ENV !== "production" && s !== "hookAdded" && h.all && f.push(...h.all.handlers), !f || !f.length)
|
|
1002
|
-
return r ? u[0] : void 0;
|
|
1003
|
-
const p = {
|
|
1004
|
-
name: s,
|
|
1005
|
-
currentIndex: 0
|
|
1006
|
-
};
|
|
1007
|
-
async function m() {
|
|
1008
|
-
try {
|
|
1009
|
-
h.__current.add(p);
|
|
1010
|
-
let C = r ? u[0] : void 0;
|
|
1011
|
-
for (; p.currentIndex < f.length; )
|
|
1012
|
-
C = await f[p.currentIndex].callback.apply(null, u), r && (u[0] = C), p.currentIndex++;
|
|
1013
|
-
return r ? C : void 0;
|
|
1014
|
-
} finally {
|
|
1015
|
-
h.__current.delete(p);
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
function g() {
|
|
1019
|
-
try {
|
|
1020
|
-
h.__current.add(p);
|
|
1021
|
-
let C = r ? u[0] : void 0;
|
|
1022
|
-
for (; p.currentIndex < f.length; )
|
|
1023
|
-
C = f[p.currentIndex].callback.apply(null, u), r && (u[0] = C), p.currentIndex++;
|
|
1024
|
-
return r ? C : void 0;
|
|
1025
|
-
} finally {
|
|
1026
|
-
h.__current.delete(p);
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return (i ? m : g)();
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
function Lt(n, t) {
|
|
1033
|
-
return function() {
|
|
1034
|
-
var u;
|
|
1035
|
-
var i;
|
|
1036
|
-
const a = n[t];
|
|
1037
|
-
return (i = (u = Array.from(a.__current).at(-1)) == null ? void 0 : u.name) !== null && i !== void 0 ? i : null;
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
function At(n, t) {
|
|
1041
|
-
return function(i) {
|
|
1042
|
-
const a = n[t];
|
|
1043
|
-
return typeof i > "u" ? a.__current.size > 0 : Array.from(a.__current).some((s) => s.name === i);
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
function St(n, t) {
|
|
1047
|
-
return function(i) {
|
|
1048
|
-
const a = n[t];
|
|
1049
|
-
if (st(i))
|
|
1050
|
-
return a[i] && a[i].runs ? a[i].runs : 0;
|
|
1051
|
-
};
|
|
1052
|
-
}
|
|
1053
|
-
class In {
|
|
1054
|
-
constructor() {
|
|
1055
|
-
this.actions = /* @__PURE__ */ Object.create(null), this.actions.__current = /* @__PURE__ */ new Set(), this.filters = /* @__PURE__ */ Object.create(null), this.filters.__current = /* @__PURE__ */ new Set(), this.addAction = Tt(this, "actions"), this.addFilter = Tt(this, "filters"), this.removeAction = Ve(this, "actions"), this.removeFilter = Ve(this, "filters"), this.hasAction = jt(this, "actions"), this.hasFilter = jt(this, "filters"), this.removeAllActions = Ve(this, "actions", !0), this.removeAllFilters = Ve(this, "filters", !0), this.doAction = We(this, "actions", !1, !1), this.doActionAsync = We(this, "actions", !1, !0), this.applyFilters = We(this, "filters", !0, !1), this.applyFiltersAsync = We(this, "filters", !0, !0), this.currentAction = Lt(this, "actions"), this.currentFilter = Lt(this, "filters"), this.doingAction = At(this, "actions"), this.doingFilter = At(this, "filters"), this.didAction = St(this, "actions"), this.didFilter = St(this, "filters");
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
function Dn() {
|
|
1059
|
-
return new In();
|
|
1060
|
-
}
|
|
1061
|
-
const Nt = Dn(), {
|
|
1062
|
-
addAction: Kr,
|
|
1063
|
-
addFilter: Xr,
|
|
1064
|
-
removeAction: Jr,
|
|
1065
|
-
removeFilter: qr,
|
|
1066
|
-
hasAction: zr,
|
|
1067
|
-
hasFilter: Qr,
|
|
1068
|
-
removeAllActions: ei,
|
|
1069
|
-
removeAllFilters: ti,
|
|
1070
|
-
doAction: ni,
|
|
1071
|
-
doActionAsync: ri,
|
|
1072
|
-
applyFilters: ii,
|
|
1073
|
-
applyFiltersAsync: ai,
|
|
1074
|
-
currentAction: oi,
|
|
1075
|
-
currentFilter: si,
|
|
1076
|
-
doingAction: li,
|
|
1077
|
-
doingFilter: ci,
|
|
1078
|
-
didAction: ui,
|
|
1079
|
-
didFilter: fi,
|
|
1080
|
-
actions: di,
|
|
1081
|
-
filters: hi
|
|
1082
|
-
} = Nt, F = On(void 0, void 0, Nt);
|
|
1083
|
-
F.getLocaleData.bind(F);
|
|
1084
|
-
F.setLocaleData.bind(F);
|
|
1085
|
-
F.resetLocaleData.bind(F);
|
|
1086
|
-
F.subscribe.bind(F);
|
|
1087
|
-
const Re = F.__.bind(F);
|
|
1088
|
-
F._x.bind(F);
|
|
1089
|
-
F._n.bind(F);
|
|
1090
|
-
F._nx.bind(F);
|
|
1091
|
-
F.isRTL.bind(F);
|
|
1092
|
-
F.hasTranslation.bind(F);
|
|
1093
|
-
const Vt = Re("Ask anything", "a8c-agenttic"), at = {
|
|
1094
|
-
type: "spring",
|
|
1095
|
-
stiffness: 300,
|
|
1096
|
-
damping: 30
|
|
1097
|
-
}, De = {
|
|
1098
|
-
type: "spring",
|
|
1099
|
-
damping: 40,
|
|
1100
|
-
stiffness: 500,
|
|
1101
|
-
mass: 0.8
|
|
1102
|
-
}, Ye = {
|
|
1103
|
-
...De,
|
|
1104
|
-
stiffness: 1e3,
|
|
1105
|
-
damping: 90
|
|
1106
|
-
}, lt = {
|
|
1107
|
-
type: "spring",
|
|
1108
|
-
damping: 40,
|
|
1109
|
-
stiffness: 500,
|
|
1110
|
-
mass: 0.8
|
|
1111
|
-
}, Wt = {
|
|
1112
|
-
hidden: {
|
|
1113
|
-
opacity: 0
|
|
1114
|
-
},
|
|
1115
|
-
visible: {
|
|
1116
|
-
opacity: 1,
|
|
1117
|
-
transition: at
|
|
1118
|
-
},
|
|
1119
|
-
exit: {
|
|
1120
|
-
opacity: 0,
|
|
1121
|
-
transition: { ...at, duration: 0.1 }
|
|
1122
|
-
}
|
|
1123
|
-
}, Pn = () => {
|
|
1124
|
-
if (typeof window > "u")
|
|
1125
|
-
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
1126
|
-
const n = 20;
|
|
1127
|
-
return {
|
|
1128
|
-
left: n,
|
|
1129
|
-
right: window.innerWidth - 400 - n,
|
|
1130
|
-
// Assuming max width of 400px
|
|
1131
|
-
top: n,
|
|
1132
|
-
bottom: window.innerHeight - 60 - n
|
|
1133
|
-
// Assuming collapsed height of 60px
|
|
1134
|
-
};
|
|
1135
|
-
}, Fn = {
|
|
1136
|
-
"0%": { backgroundPosition: "-200% 0" },
|
|
1137
|
-
"100%": { backgroundPosition: "200% 0" }
|
|
1138
|
-
}, pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1139
|
-
__proto__: null,
|
|
1140
|
-
fadeVariants: Wt,
|
|
1141
|
-
fastSpring: De,
|
|
1142
|
-
fastSpringWithDelay: Ye,
|
|
1143
|
-
getDragConstraints: Pn,
|
|
1144
|
-
morphSpring: lt,
|
|
1145
|
-
springConfig: at,
|
|
1146
|
-
thinkingGradientKeyframes: Fn
|
|
1147
|
-
}, Symbol.toStringTag, { value: "Module" })), Mn = "button-module_button", kn = "button-module_pressed", $n = "button-module_primary", Hn = "button-module_ghost", Nn = "button-module_outline", Vn = "button-module_link", Wn = "button-module_icon", Bn = "button-module_sm", Yn = "button-module_withTextAndIcon", Ae = {
|
|
1148
|
-
button: Mn,
|
|
1149
|
-
pressed: kn,
|
|
1150
|
-
primary: $n,
|
|
1151
|
-
ghost: Hn,
|
|
1152
|
-
outline: Nn,
|
|
1153
|
-
link: Vn,
|
|
1154
|
-
icon: Wn,
|
|
1155
|
-
sm: Bn,
|
|
1156
|
-
withTextAndIcon: Yn
|
|
1157
|
-
}, ee = Mt.forwardRef(
|
|
1158
|
-
function({
|
|
1159
|
-
className: t,
|
|
1160
|
-
variant: r = "primary",
|
|
1161
|
-
size: i,
|
|
1162
|
-
icon: a,
|
|
1163
|
-
children: s,
|
|
1164
|
-
asChild: u = !1,
|
|
1165
|
-
pressed: h = !1,
|
|
1166
|
-
...f
|
|
1167
|
-
}, p) {
|
|
1168
|
-
const m = u ? yn : "button", g = !!a, C = i || (g && !s ? "icon" : void 0);
|
|
1169
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1170
|
-
m,
|
|
1171
|
-
{
|
|
1172
|
-
ref: p,
|
|
1173
|
-
"data-slot": "button",
|
|
1174
|
-
className: se(
|
|
1175
|
-
Ae.button,
|
|
1176
|
-
Ae[r],
|
|
1177
|
-
C && Ae[C],
|
|
1178
|
-
g && s ? Ae.withTextAndIcon : void 0,
|
|
1179
|
-
h ? Ae.pressed : void 0,
|
|
1180
|
-
t
|
|
1181
|
-
),
|
|
1182
|
-
"aria-pressed": h,
|
|
1183
|
-
...f,
|
|
1184
|
-
children: [
|
|
1185
|
-
a,
|
|
1186
|
-
s
|
|
1187
|
-
]
|
|
1188
|
-
}
|
|
1189
|
-
);
|
|
1190
|
-
}
|
|
1191
|
-
);
|
|
1192
|
-
ee.displayName = "Button";
|
|
1193
|
-
function Bt({ className: n, size: t = 24 }) {
|
|
1194
|
-
return /* @__PURE__ */ o.jsx(
|
|
1195
|
-
"svg",
|
|
1196
|
-
{
|
|
1197
|
-
className: n,
|
|
1198
|
-
width: t,
|
|
1199
|
-
height: t,
|
|
1200
|
-
viewBox: "0 0 24 24",
|
|
1201
|
-
fill: "none",
|
|
1202
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1203
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1204
|
-
"path",
|
|
1205
|
-
{
|
|
1206
|
-
d: "M19.6611 11.5224L16.3782 10.39C15.0799 9.94387 14.0561 8.92011 13.61 7.62181L12.4775 4.33887C12.3231 3.88704 11.6769 3.88704 11.5225 4.33887L10.39 7.62181C9.94388 8.92011 8.9201 9.94387 7.6218 10.39L4.33887 11.5224C3.88704 11.6768 3.88704 12.3231 4.33887 12.4776L7.6218 13.61C8.9201 14.0561 9.94388 15.0799 10.39 16.3782L11.5225 19.6611C11.6769 20.113 12.3231 20.113 12.4775 19.6611L13.61 16.3782C14.0561 15.0799 15.0799 14.0561 16.3782 13.61L19.6611 12.4776C20.113 12.3231 20.113 11.6768 19.6611 11.5224ZM15.8291 12.2431L14.1876 12.8093C13.5356 13.0323 13.0266 13.5471 12.8036 14.1934L12.2374 15.8348C12.1572 16.0636 11.837 16.0636 11.7569 15.8348L11.1907 14.1934C10.9677 13.5414 10.4529 13.0323 9.80662 12.8093L8.16515 12.2431C7.93637 12.163 7.93637 11.8427 8.16515 11.7626L9.80662 11.1964C10.4586 10.9734 10.9677 10.4586 11.1907 9.81233L11.7569 8.17087C11.837 7.94209 12.1572 7.94209 12.2374 8.17087L12.8036 9.81233C13.0266 10.4643 13.5414 10.9734 14.1876 11.1964L15.8291 11.7626C16.0579 11.8427 16.0579 12.163 15.8291 12.2431Z",
|
|
1207
|
-
fill: "currentColor"
|
|
1208
|
-
}
|
|
1209
|
-
)
|
|
1210
|
-
}
|
|
1211
|
-
);
|
|
1212
|
-
}
|
|
1213
|
-
const Zn = "CollapsedView-module_button", Un = {
|
|
1214
|
-
button: Zn
|
|
1215
|
-
};
|
|
1216
|
-
function Gn({
|
|
1217
|
-
icon: n = /* @__PURE__ */ o.jsx(Bt, { size: 36 }),
|
|
1218
|
-
onClick: t,
|
|
1219
|
-
onHover: r,
|
|
1220
|
-
focusOnMount: i = !1
|
|
1221
|
-
}) {
|
|
1222
|
-
const a = W(null), s = W(i);
|
|
1223
|
-
return J(() => {
|
|
1224
|
-
s.current && a.current && a.current.focus(), s.current = !1;
|
|
1225
|
-
}, [s, a]), /* @__PURE__ */ o.jsx(
|
|
1226
|
-
q.div,
|
|
1227
|
-
{
|
|
1228
|
-
"data-slot": "collapsed-view",
|
|
1229
|
-
layout: "preserve-aspect",
|
|
1230
|
-
layoutId: "collapsed-button",
|
|
1231
|
-
initial: {
|
|
1232
|
-
opacity: 0,
|
|
1233
|
-
scale: 0.5
|
|
1234
|
-
},
|
|
1235
|
-
animate: {
|
|
1236
|
-
opacity: 1,
|
|
1237
|
-
scale: 1,
|
|
1238
|
-
transition: {
|
|
1239
|
-
...lt,
|
|
1240
|
-
delay: 0.2
|
|
1241
|
-
}
|
|
1242
|
-
},
|
|
1243
|
-
exit: {
|
|
1244
|
-
opacity: 0,
|
|
1245
|
-
scale: 0,
|
|
1246
|
-
transition: {
|
|
1247
|
-
duration: 0.15
|
|
1248
|
-
}
|
|
1249
|
-
},
|
|
1250
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1251
|
-
ee,
|
|
1252
|
-
{
|
|
1253
|
-
ref: a,
|
|
1254
|
-
onClick: t,
|
|
1255
|
-
onMouseEnter: r,
|
|
1256
|
-
variant: "link",
|
|
1257
|
-
className: Un.button,
|
|
1258
|
-
icon: n,
|
|
1259
|
-
"aria-label": Re("Open chat", "a8c-agenttic")
|
|
1260
|
-
}
|
|
1261
|
-
)
|
|
1262
|
-
}
|
|
1263
|
-
);
|
|
1264
|
-
}
|
|
1265
|
-
const Kn = "Textarea-module_textarea", Xn = {
|
|
1266
|
-
textarea: Kn
|
|
1267
|
-
}, Yt = Mt.forwardRef(
|
|
1268
|
-
({ className: n, ...t }, r) => /* @__PURE__ */ o.jsx(
|
|
1269
|
-
"textarea",
|
|
1270
|
-
{
|
|
1271
|
-
"data-slot": "textarea",
|
|
1272
|
-
className: Xn.textarea,
|
|
1273
|
-
ref: r,
|
|
1274
|
-
...t
|
|
1275
|
-
}
|
|
1276
|
-
)
|
|
1277
|
-
);
|
|
1278
|
-
Yt.displayName = "Textarea";
|
|
1279
|
-
function Jn({ className: n, size: t = 24 }) {
|
|
1280
|
-
return /* @__PURE__ */ o.jsx(
|
|
1281
|
-
"svg",
|
|
1282
|
-
{
|
|
1283
|
-
width: t,
|
|
1284
|
-
height: t,
|
|
1285
|
-
viewBox: "0 0 24 24",
|
|
1286
|
-
fill: "none",
|
|
1287
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1288
|
-
className: n,
|
|
1289
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1290
|
-
"path",
|
|
1291
|
-
{
|
|
1292
|
-
d: "M12.2197 5C12.4186 5 12.6094 5.07902 12.75 5.21967L17 9.46967C17.2929 9.76256 17.2929 10.2374 17 10.5303C16.7071 10.8232 16.2322 10.8232 15.9393 10.5303L12.9697 7.56067V18.25C12.9697 18.6642 12.6339 19 12.2197 19C11.8055 19 11.4697 18.6642 11.4697 18.25V7.56065L8.5 10.5303C8.2071 10.8232 7.73223 10.8232 7.43934 10.5303C7.14644 10.2374 7.14645 9.76256 7.43934 9.46967L11.6894 5.21967C11.83 5.07902 12.0208 5 12.2197 5Z",
|
|
1293
|
-
fill: "currentColor"
|
|
1294
|
-
}
|
|
1295
|
-
)
|
|
1296
|
-
}
|
|
1297
|
-
);
|
|
1298
|
-
}
|
|
1299
|
-
function qn({ className: n, size: t = 24 }) {
|
|
1300
|
-
return /* @__PURE__ */ o.jsx(
|
|
1301
|
-
"svg",
|
|
1302
|
-
{
|
|
1303
|
-
width: t,
|
|
1304
|
-
height: t,
|
|
1305
|
-
viewBox: "0 0 24 24",
|
|
1306
|
-
fill: "none",
|
|
1307
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1308
|
-
className: n,
|
|
1309
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1310
|
-
"rect",
|
|
1311
|
-
{
|
|
1312
|
-
x: "7",
|
|
1313
|
-
y: "7",
|
|
1314
|
-
width: "10",
|
|
1315
|
-
height: "10",
|
|
1316
|
-
rx: "2",
|
|
1317
|
-
fill: "currentColor"
|
|
1318
|
-
}
|
|
1319
|
-
)
|
|
1320
|
-
}
|
|
1321
|
-
);
|
|
1322
|
-
}
|
|
1323
|
-
const zn = "ChatInput-module_container", Qn = "ChatInput-module_textareaContainer", er = "ChatInput-module_actions", tr = "ChatInput-module_button", be = {
|
|
1324
|
-
container: zn,
|
|
1325
|
-
textareaContainer: Qn,
|
|
1326
|
-
actions: er,
|
|
1327
|
-
button: tr
|
|
1328
|
-
};
|
|
1329
|
-
function nr({ className: n, size: t = 24 }) {
|
|
1330
|
-
return /* @__PURE__ */ o.jsx(
|
|
1331
|
-
"svg",
|
|
1332
|
-
{
|
|
1333
|
-
className: n,
|
|
1334
|
-
width: t,
|
|
1335
|
-
height: t,
|
|
1336
|
-
viewBox: "0 0 24 24",
|
|
1337
|
-
fill: "none",
|
|
1338
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1339
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1340
|
-
"path",
|
|
1341
|
-
{
|
|
1342
|
-
fillRule: "evenodd",
|
|
1343
|
-
clipRule: "evenodd",
|
|
1344
|
-
d: "M18.0045 13.4451L12 7.9864L5.9955 13.4451L7.00451 14.5549L12 10.0136L16.9955 14.5549L18.0045 13.4451Z",
|
|
1345
|
-
fill: "currentColor"
|
|
1346
|
-
}
|
|
1347
|
-
)
|
|
1348
|
-
}
|
|
1349
|
-
);
|
|
1350
|
-
}
|
|
1351
|
-
const rr = "AnimatedPlaceholder-module_container", ir = {
|
|
1352
|
-
container: rr
|
|
1353
|
-
};
|
|
1354
|
-
function ar({
|
|
1355
|
-
texts: n,
|
|
1356
|
-
interval: t = 3e3,
|
|
1357
|
-
className: r = ""
|
|
1358
|
-
}) {
|
|
1359
|
-
const [i, a] = Ee(0);
|
|
1360
|
-
return J(() => {
|
|
1361
|
-
const s = setInterval(() => {
|
|
1362
|
-
a(
|
|
1363
|
-
(u) => (u + 1) % n.length
|
|
1364
|
-
);
|
|
1365
|
-
}, t);
|
|
1366
|
-
return () => clearInterval(s);
|
|
1367
|
-
}, [n.length, t]), /* @__PURE__ */ o.jsx(Ue, { mode: "wait", children: /* @__PURE__ */ o.jsx(
|
|
1368
|
-
q.span,
|
|
1369
|
-
{
|
|
1370
|
-
"data-slot": "animated-placeholder",
|
|
1371
|
-
className: se(ir.container, r),
|
|
1372
|
-
initial: { opacity: 0, y: 8 },
|
|
1373
|
-
animate: { opacity: 1, y: 0 },
|
|
1374
|
-
exit: { opacity: 0, y: -8 },
|
|
1375
|
-
transition: {
|
|
1376
|
-
duration: 0.3,
|
|
1377
|
-
ease: [0.4, 0, 0.2, 1]
|
|
1378
|
-
// Matches --transition-colors cubic-bezier
|
|
1379
|
-
},
|
|
1380
|
-
children: n[i]
|
|
1381
|
-
},
|
|
1382
|
-
i
|
|
1383
|
-
) });
|
|
1384
|
-
}
|
|
1385
|
-
function Zt({
|
|
1386
|
-
value: n,
|
|
1387
|
-
onChange: t,
|
|
1388
|
-
onSubmit: r,
|
|
1389
|
-
onKeyDown: i,
|
|
1390
|
-
textareaRef: a,
|
|
1391
|
-
placeholder: s = Vt,
|
|
1392
|
-
isProcessing: u,
|
|
1393
|
-
onBlur: h,
|
|
1394
|
-
fromCompact: f = !1,
|
|
1395
|
-
onExpand: p,
|
|
1396
|
-
showExpandButton: m = !0,
|
|
1397
|
-
focusOnMount: g = !1,
|
|
1398
|
-
customActions: C = [],
|
|
1399
|
-
actionOrder: E = "before-submit",
|
|
1400
|
-
onStop: D,
|
|
1401
|
-
disabled: H = !1
|
|
1402
|
-
}) {
|
|
1403
|
-
const B = dn(), M = (n.trim() || u) && !H, j = (T) => T.endsWith("…") ? T : `${T}…`, K = Array.isArray(s);
|
|
1404
|
-
let l;
|
|
1405
|
-
K ? l = s.map(j) : s ? l = j(s) : l = "";
|
|
1406
|
-
const v = W(g);
|
|
1407
|
-
J(() => {
|
|
1408
|
-
v.current && a.current && a.current.focus(), v.current = !1;
|
|
1409
|
-
}, [v, a]);
|
|
1410
|
-
const _ = () => C.map((T) => /* @__PURE__ */ o.jsx(
|
|
1411
|
-
ee,
|
|
1412
|
-
{
|
|
1413
|
-
className: T.className || be.button,
|
|
1414
|
-
onClick: T.onClick,
|
|
1415
|
-
disabled: T.disabled,
|
|
1416
|
-
variant: T.variant || "ghost",
|
|
1417
|
-
icon: T.icon,
|
|
1418
|
-
"aria-label": T["aria-label"]
|
|
1419
|
-
},
|
|
1420
|
-
T.id
|
|
1421
|
-
)), A = () => m && p ? /* @__PURE__ */ o.jsx(
|
|
1422
|
-
ee,
|
|
1423
|
-
{
|
|
1424
|
-
className: be.button,
|
|
1425
|
-
onClick: p,
|
|
1426
|
-
variant: "ghost",
|
|
1427
|
-
icon: /* @__PURE__ */ o.jsx(nr, {}),
|
|
1428
|
-
"aria-label": Re("Expand conversation", "a8c-agenttic")
|
|
1429
|
-
}
|
|
1430
|
-
) : null, O = () => {
|
|
1431
|
-
const T = () => {
|
|
1432
|
-
u && D ? D() : r();
|
|
1433
|
-
};
|
|
1434
|
-
return /* @__PURE__ */ o.jsx(
|
|
1435
|
-
ee,
|
|
1436
|
-
{
|
|
1437
|
-
className: be.button,
|
|
1438
|
-
onClick: T,
|
|
1439
|
-
disabled: !M,
|
|
1440
|
-
variant: "primary",
|
|
1441
|
-
icon: u ? /* @__PURE__ */ o.jsx(qn, {}) : /* @__PURE__ */ o.jsx(Jn, {}),
|
|
1442
|
-
"aria-label": Re(u ? "Stop processing" : "Send message", "a8c-agenttic")
|
|
1443
|
-
}
|
|
1444
|
-
);
|
|
1445
|
-
};
|
|
1446
|
-
return /* @__PURE__ */ o.jsxs("div", { "data-slot": "chat-input", className: be.container, children: [
|
|
1447
|
-
/* @__PURE__ */ o.jsxs(
|
|
1448
|
-
q.div,
|
|
1449
|
-
{
|
|
1450
|
-
className: be.textareaContainer,
|
|
1451
|
-
initial: {
|
|
1452
|
-
opacity: 0
|
|
1453
|
-
},
|
|
1454
|
-
animate: {
|
|
1455
|
-
opacity: 1,
|
|
1456
|
-
scale: 1,
|
|
1457
|
-
transition: n.trim() ? { duration: 0 } : Ye
|
|
1458
|
-
},
|
|
1459
|
-
children: [
|
|
1460
|
-
!n && K && /* @__PURE__ */ o.jsx(
|
|
1461
|
-
ar,
|
|
1462
|
-
{
|
|
1463
|
-
texts: l
|
|
1464
|
-
}
|
|
1465
|
-
),
|
|
1466
|
-
/* @__PURE__ */ o.jsx(
|
|
1467
|
-
Yt,
|
|
1468
|
-
{
|
|
1469
|
-
id: B,
|
|
1470
|
-
ref: a,
|
|
1471
|
-
value: n,
|
|
1472
|
-
onChange: (T) => t(T.target.value),
|
|
1473
|
-
onKeyDown: i,
|
|
1474
|
-
onBlur: h,
|
|
1475
|
-
placeholder: K ? "" : l,
|
|
1476
|
-
rows: 1
|
|
1477
|
-
}
|
|
1478
|
-
)
|
|
1479
|
-
]
|
|
1480
|
-
}
|
|
1481
|
-
),
|
|
1482
|
-
/* @__PURE__ */ o.jsxs(
|
|
1483
|
-
q.div,
|
|
1484
|
-
{
|
|
1485
|
-
className: be.actions,
|
|
1486
|
-
initial: {
|
|
1487
|
-
opacity: f ? 1 : 0,
|
|
1488
|
-
scale: f ? 1 : 0.5
|
|
1489
|
-
},
|
|
1490
|
-
animate: {
|
|
1491
|
-
opacity: 1,
|
|
1492
|
-
scale: 1,
|
|
1493
|
-
transition: n.trim() ? { duration: 0 } : De
|
|
1494
|
-
},
|
|
1495
|
-
children: [
|
|
1496
|
-
A(),
|
|
1497
|
-
E === "before-submit" && _(),
|
|
1498
|
-
O(),
|
|
1499
|
-
E === "after-submit" && _()
|
|
1500
|
-
]
|
|
1501
|
-
}
|
|
1502
|
-
)
|
|
1503
|
-
] });
|
|
1504
|
-
}
|
|
1505
|
-
function or({
|
|
1506
|
-
value: n,
|
|
1507
|
-
onChange: t,
|
|
1508
|
-
onSubmit: r,
|
|
1509
|
-
onKeyDown: i,
|
|
1510
|
-
textareaRef: a,
|
|
1511
|
-
placeholder: s,
|
|
1512
|
-
isProcessing: u,
|
|
1513
|
-
onBlur: h,
|
|
1514
|
-
onExpand: f,
|
|
1515
|
-
showExpandButton: p = !0,
|
|
1516
|
-
focusOnMount: m = !1,
|
|
1517
|
-
customActions: g,
|
|
1518
|
-
actionOrder: C,
|
|
1519
|
-
onStop: E
|
|
1520
|
-
}) {
|
|
1521
|
-
return /* @__PURE__ */ o.jsx(
|
|
1522
|
-
Zt,
|
|
1523
|
-
{
|
|
1524
|
-
value: n,
|
|
1525
|
-
onChange: t,
|
|
1526
|
-
onSubmit: r,
|
|
1527
|
-
onKeyDown: i,
|
|
1528
|
-
textareaRef: a,
|
|
1529
|
-
placeholder: s,
|
|
1530
|
-
isProcessing: u,
|
|
1531
|
-
onBlur: h,
|
|
1532
|
-
onExpand: f,
|
|
1533
|
-
showExpandButton: p,
|
|
1534
|
-
focusOnMount: m,
|
|
1535
|
-
customActions: g,
|
|
1536
|
-
actionOrder: C,
|
|
1537
|
-
onStop: E
|
|
1538
|
-
}
|
|
1539
|
-
);
|
|
1540
|
-
}
|
|
1541
|
-
function Ut({ className: n, size: t = 24 }) {
|
|
1542
|
-
return /* @__PURE__ */ o.jsx(
|
|
1543
|
-
"svg",
|
|
1544
|
-
{
|
|
1545
|
-
className: n,
|
|
1546
|
-
width: t,
|
|
1547
|
-
height: t,
|
|
1548
|
-
viewBox: "0 0 24 24",
|
|
1549
|
-
fill: "none",
|
|
1550
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1551
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1552
|
-
"path",
|
|
1553
|
-
{
|
|
1554
|
-
d: "M12.0001 13.0607L16.4697 17.5304L17.5304 16.4697L13.0607 12.0001L17.5304 7.53039L16.4697 6.46973L12.0001 10.9394L7.5304 6.46973L6.46973 7.53039L10.9394 12.0001L6.46974 16.4697L7.5304 17.5304L12.0001 13.0607Z",
|
|
1555
|
-
fill: "currentColor"
|
|
1556
|
-
}
|
|
1557
|
-
)
|
|
1558
|
-
}
|
|
1559
|
-
);
|
|
1560
|
-
}
|
|
1561
|
-
const sr = "ChatHeader-module_container", lr = {
|
|
1562
|
-
container: sr
|
|
1563
|
-
};
|
|
1564
|
-
function cr({ onClose: n }) {
|
|
1565
|
-
return /* @__PURE__ */ o.jsx(
|
|
1566
|
-
q.div,
|
|
1567
|
-
{
|
|
1568
|
-
"data-slot": "chat-header",
|
|
1569
|
-
"data-draggable": "true",
|
|
1570
|
-
className: lr.container,
|
|
1571
|
-
initial: { opacity: 0 },
|
|
1572
|
-
animate: { opacity: 1 },
|
|
1573
|
-
transition: { ...De, delay: 0.1 },
|
|
1574
|
-
children: n && /* @__PURE__ */ o.jsx(
|
|
1575
|
-
ee,
|
|
1576
|
-
{
|
|
1577
|
-
variant: "ghost",
|
|
1578
|
-
icon: /* @__PURE__ */ o.jsx(Ut, {}),
|
|
1579
|
-
onClick: n,
|
|
1580
|
-
"aria-label": Re("Close conversation", "a8c-agenttic")
|
|
1581
|
-
}
|
|
1582
|
-
)
|
|
1583
|
-
}
|
|
1584
|
-
);
|
|
1585
|
-
}
|
|
1586
|
-
const ur = "Notice-module_container", fr = "Notice-module_containerWithIcon", dr = "Notice-module_content", hr = "Notice-module_actions", pr = "Notice-module_icon", vr = "Notice-module_dismissible", we = {
|
|
1587
|
-
container: ur,
|
|
1588
|
-
containerWithIcon: fr,
|
|
1589
|
-
content: dr,
|
|
1590
|
-
actions: hr,
|
|
1591
|
-
icon: pr,
|
|
1592
|
-
dismissible: vr
|
|
1593
|
-
};
|
|
1594
|
-
function mr({
|
|
1595
|
-
icon: n,
|
|
1596
|
-
message: t,
|
|
1597
|
-
action: r,
|
|
1598
|
-
dismissible: i = !0,
|
|
1599
|
-
onDismiss: a
|
|
1600
|
-
}) {
|
|
1601
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1602
|
-
"div",
|
|
1603
|
-
{
|
|
1604
|
-
"data-slot": "notice",
|
|
1605
|
-
className: se(we.container, {
|
|
1606
|
-
[we.containerWithIcon]: !!n
|
|
1607
|
-
}),
|
|
1608
|
-
children: [
|
|
1609
|
-
/* @__PURE__ */ o.jsxs("div", { className: we.content, children: [
|
|
1610
|
-
n && /* @__PURE__ */ o.jsx("div", { className: we.icon, children: n }),
|
|
1611
|
-
/* @__PURE__ */ o.jsx("span", { children: t })
|
|
1612
|
-
] }),
|
|
1613
|
-
/* @__PURE__ */ o.jsxs("div", { className: we.actions, children: [
|
|
1614
|
-
r && /* @__PURE__ */ o.jsx(ee, { onClick: r.onClick, variant: "link", children: r.label }),
|
|
1615
|
-
i && a && /* @__PURE__ */ o.jsx(
|
|
1616
|
-
ee,
|
|
1617
|
-
{
|
|
1618
|
-
className: we.dismissible,
|
|
1619
|
-
onClick: a,
|
|
1620
|
-
variant: "ghost",
|
|
1621
|
-
size: "sm",
|
|
1622
|
-
icon: /* @__PURE__ */ o.jsx(Ut, {})
|
|
1623
|
-
}
|
|
1624
|
-
)
|
|
1625
|
-
] })
|
|
1626
|
-
]
|
|
1627
|
-
}
|
|
1628
|
-
);
|
|
1629
|
-
}
|
|
1630
|
-
const gr = "Suggestions-module_container", Ot = {
|
|
1631
|
-
container: gr
|
|
1632
|
-
}, yr = ({
|
|
1633
|
-
className: n,
|
|
1634
|
-
suggestions: t,
|
|
1635
|
-
onSubmit: r
|
|
1636
|
-
}) => {
|
|
1637
|
-
const i = (a) => {
|
|
1638
|
-
r && r(a.prompt);
|
|
1639
|
-
};
|
|
1640
|
-
return !t || t.length === 0 ? null : /* @__PURE__ */ o.jsx(Ue, { children: t && t.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1641
|
-
q.div,
|
|
1642
|
-
{
|
|
1643
|
-
className: se(Ot.container, n),
|
|
1644
|
-
initial: { opacity: 0, y: "-80%" },
|
|
1645
|
-
animate: { opacity: 1, y: "-100%" },
|
|
1646
|
-
exit: { opacity: 0, y: "-80%" },
|
|
1647
|
-
transition: Ye,
|
|
1648
|
-
children: t.map(
|
|
1649
|
-
(a, s) => /* @__PURE__ */ o.jsx(
|
|
1650
|
-
q.div,
|
|
1651
|
-
{
|
|
1652
|
-
initial: { opacity: 0, y: 10 },
|
|
1653
|
-
animate: { opacity: 1, y: 0 },
|
|
1654
|
-
transition: {
|
|
1655
|
-
...Ye,
|
|
1656
|
-
delay: s * 0.05
|
|
1657
|
-
},
|
|
1658
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1659
|
-
ee,
|
|
1660
|
-
{
|
|
1661
|
-
onClick: () => i(a),
|
|
1662
|
-
variant: "outline",
|
|
1663
|
-
className: Ot.button,
|
|
1664
|
-
children: a.label
|
|
1665
|
-
}
|
|
1666
|
-
)
|
|
1667
|
-
},
|
|
1668
|
-
a.id
|
|
1669
|
-
)
|
|
1670
|
-
)
|
|
1671
|
-
}
|
|
1672
|
-
) });
|
|
1673
|
-
}, Cr = "ChatFooter-module_container", _r = {
|
|
1674
|
-
container: Cr
|
|
1675
|
-
};
|
|
1676
|
-
function xr({
|
|
1677
|
-
inputValue: n,
|
|
1678
|
-
onInputChange: t,
|
|
1679
|
-
onSubmit: r,
|
|
1680
|
-
onKeyDown: i,
|
|
1681
|
-
textareaRef: a,
|
|
1682
|
-
placeholder: s,
|
|
1683
|
-
isProcessing: u,
|
|
1684
|
-
onStop: h,
|
|
1685
|
-
fromCompact: f = !1,
|
|
1686
|
-
onExpand: p,
|
|
1687
|
-
disabled: m,
|
|
1688
|
-
notice: g,
|
|
1689
|
-
suggestions: C,
|
|
1690
|
-
clearSuggestions: E,
|
|
1691
|
-
focusOnMount: D,
|
|
1692
|
-
customActions: H,
|
|
1693
|
-
actionOrder: B
|
|
1694
|
-
}) {
|
|
1695
|
-
const M = V(
|
|
1696
|
-
(j) => {
|
|
1697
|
-
t(j), E == null || E();
|
|
1698
|
-
},
|
|
1699
|
-
[t, E]
|
|
1700
|
-
);
|
|
1701
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1702
|
-
q.div,
|
|
1703
|
-
{
|
|
1704
|
-
"data-slot": "chat-footer",
|
|
1705
|
-
className: _r.container,
|
|
1706
|
-
initial: { opacity: 0, scale: 1 },
|
|
1707
|
-
animate: { opacity: 1, scale: 1 },
|
|
1708
|
-
transition: { ...De },
|
|
1709
|
-
children: [
|
|
1710
|
-
!n && /* @__PURE__ */ o.jsx(
|
|
1711
|
-
yr,
|
|
1712
|
-
{
|
|
1713
|
-
suggestions: C,
|
|
1714
|
-
onSubmit: M
|
|
1715
|
-
}
|
|
1716
|
-
),
|
|
1717
|
-
g && /* @__PURE__ */ o.jsx(
|
|
1718
|
-
mr,
|
|
1719
|
-
{
|
|
1720
|
-
icon: g.icon,
|
|
1721
|
-
message: g.message,
|
|
1722
|
-
action: g.action,
|
|
1723
|
-
dismissible: g.dismissible,
|
|
1724
|
-
onDismiss: g.onDismiss
|
|
1725
|
-
}
|
|
1726
|
-
),
|
|
1727
|
-
/* @__PURE__ */ o.jsx(
|
|
1728
|
-
Zt,
|
|
1729
|
-
{
|
|
1730
|
-
value: n,
|
|
1731
|
-
onChange: t,
|
|
1732
|
-
onSubmit: r,
|
|
1733
|
-
onKeyDown: i,
|
|
1734
|
-
textareaRef: a,
|
|
1735
|
-
placeholder: s,
|
|
1736
|
-
isProcessing: u,
|
|
1737
|
-
onStop: h,
|
|
1738
|
-
fromCompact: f,
|
|
1739
|
-
onExpand: p,
|
|
1740
|
-
showExpandButton: !1,
|
|
1741
|
-
focusOnMount: D,
|
|
1742
|
-
customActions: H,
|
|
1743
|
-
actionOrder: B,
|
|
1744
|
-
disabled: m
|
|
1745
|
-
}
|
|
1746
|
-
)
|
|
1747
|
-
]
|
|
1748
|
-
}
|
|
1749
|
-
);
|
|
1750
|
-
}
|
|
1751
|
-
const br = "MessageActions-module_container", It = {
|
|
1752
|
-
container: br
|
|
1753
|
-
};
|
|
1754
|
-
function Dt({ message: n }) {
|
|
1755
|
-
return !n.actions || n.actions.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1756
|
-
"div",
|
|
1757
|
-
{
|
|
1758
|
-
className: It.container,
|
|
1759
|
-
"data-visible": "true",
|
|
1760
|
-
role: "toolbar",
|
|
1761
|
-
"aria-label": "Message actions",
|
|
1762
|
-
children: n.actions.map((t) => /* @__PURE__ */ o.jsx(
|
|
1763
|
-
ee,
|
|
1764
|
-
{
|
|
1765
|
-
className: It.button,
|
|
1766
|
-
icon: t.icon,
|
|
1767
|
-
onClick: () => t.onClick(n),
|
|
1768
|
-
variant: "ghost",
|
|
1769
|
-
size: "sm",
|
|
1770
|
-
type: "button",
|
|
1771
|
-
disabled: t.disabled,
|
|
1772
|
-
pressed: t.pressed,
|
|
1773
|
-
title: t.tooltip || t.label,
|
|
1774
|
-
"aria-label": t.label,
|
|
1775
|
-
...t.tooltip && { title: t.tooltip },
|
|
1776
|
-
children: t.showLabel ? t.label : void 0
|
|
1777
|
-
},
|
|
1778
|
-
t.id
|
|
1779
|
-
))
|
|
1780
|
-
}
|
|
1781
|
-
);
|
|
1782
|
-
}
|
|
1783
|
-
const wr = "Message-module_message", Er = "Message-module_user", Rr = "Message-module_bubble", Tr = "Message-module_error", jr = "Message-module_content", Be = {
|
|
1784
|
-
message: wr,
|
|
1785
|
-
user: Er,
|
|
1786
|
-
bubble: Rr,
|
|
1787
|
-
error: Tr,
|
|
1788
|
-
content: jr
|
|
1789
|
-
}, Lr = Ze.forwardRef(
|
|
1790
|
-
function({ message: t, messageRenderer: r = Cn }, i) {
|
|
1791
|
-
const a = () => /* @__PURE__ */ o.jsx(o.Fragment, { children: t.content.map((s, u) => {
|
|
1792
|
-
if (s.type === "text" && s.text)
|
|
1793
|
-
return /* @__PURE__ */ o.jsx(r, { children: s.text }, u);
|
|
1794
|
-
if (s.type === "component" && s.component) {
|
|
1795
|
-
const h = s.component;
|
|
1796
|
-
return /* @__PURE__ */ o.jsx(
|
|
1797
|
-
h,
|
|
1798
|
-
{
|
|
1799
|
-
...s.componentProps || {}
|
|
1800
|
-
},
|
|
1801
|
-
u
|
|
1802
|
-
);
|
|
1803
|
-
}
|
|
1804
|
-
return null;
|
|
1805
|
-
}) });
|
|
1806
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1807
|
-
q.div,
|
|
1808
|
-
{
|
|
1809
|
-
ref: i,
|
|
1810
|
-
variants: Wt,
|
|
1811
|
-
initial: "hidden",
|
|
1812
|
-
animate: "visible",
|
|
1813
|
-
"data-slot": "message",
|
|
1814
|
-
"data-role": t.role,
|
|
1815
|
-
className: se(Be.message, Be[t.role]),
|
|
1816
|
-
children: [
|
|
1817
|
-
/* @__PURE__ */ o.jsxs("div", { className: Be.content, children: [
|
|
1818
|
-
/* @__PURE__ */ o.jsx("div", { className: Be.bubble, children: a() }),
|
|
1819
|
-
t.role !== "user" && /* @__PURE__ */ o.jsx(Dt, { message: t })
|
|
1820
|
-
] }),
|
|
1821
|
-
t.role === "user" && /* @__PURE__ */ o.jsx(Dt, { message: t })
|
|
1822
|
-
]
|
|
1823
|
-
}
|
|
1824
|
-
);
|
|
1825
|
-
}
|
|
1826
|
-
), Ar = "Messages-module_container", Sr = "Messages-module_emptyState", tt = {
|
|
1827
|
-
container: Ar,
|
|
1828
|
-
emptyState: Sr
|
|
1829
|
-
}, Or = "Thinking-module_container", Ir = "Thinking-module_icon", Dr = "Thinking-module_content", nt = {
|
|
1830
|
-
container: Or,
|
|
1831
|
-
icon: Ir,
|
|
1832
|
-
content: Dr
|
|
1833
|
-
}, Pr = hn(
|
|
1834
|
-
Ze.forwardRef(
|
|
1835
|
-
function({ content: t = "Thinking…" }, r) {
|
|
1836
|
-
const i = pn(() => /* @__PURE__ */ o.jsx(Bt, {}), []);
|
|
1837
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1838
|
-
"div",
|
|
1839
|
-
{
|
|
1840
|
-
ref: r,
|
|
1841
|
-
"data-slot": "thinking",
|
|
1842
|
-
className: nt.container,
|
|
1843
|
-
children: [
|
|
1844
|
-
/* @__PURE__ */ o.jsx("div", { className: nt.icon, children: i }),
|
|
1845
|
-
/* @__PURE__ */ o.jsx("span", { className: nt.content, children: t })
|
|
1846
|
-
]
|
|
1847
|
-
}
|
|
1848
|
-
);
|
|
1849
|
-
}
|
|
1850
|
-
)
|
|
1851
|
-
);
|
|
1852
|
-
function Fr({
|
|
1853
|
-
messages: n,
|
|
1854
|
-
isProcessing: t,
|
|
1855
|
-
error: r,
|
|
1856
|
-
emptyView: i,
|
|
1857
|
-
messageRenderer: a
|
|
1858
|
-
}) {
|
|
1859
|
-
const s = W(null), u = W([]), h = W(!0), f = W(null);
|
|
1860
|
-
return J(() => {
|
|
1861
|
-
const p = n.length > u.current.length;
|
|
1862
|
-
if (h.current && n.length > 0 && s.current ? s.current.scrollTop = s.current.scrollHeight : p && !h.current && s.current && s.current.scrollTo({
|
|
1863
|
-
top: s.current.scrollHeight,
|
|
1864
|
-
behavior: "smooth"
|
|
1865
|
-
}), p && f.current) {
|
|
1866
|
-
const g = n.slice(
|
|
1867
|
-
u.current.length
|
|
1868
|
-
).filter(
|
|
1869
|
-
(C) => C.role === "agent"
|
|
1870
|
-
);
|
|
1871
|
-
if (g.length > 0) {
|
|
1872
|
-
const E = g[g.length - 1].content.filter((D) => D.type === "text").map((D) => D.text).join(" ");
|
|
1873
|
-
E && (f.current.textContent = E);
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
h.current && (h.current = !1), u.current = n;
|
|
1877
|
-
}, [n]), n.length === 0 ? i ? /* @__PURE__ */ o.jsx(
|
|
1878
|
-
"div",
|
|
1879
|
-
{
|
|
1880
|
-
"data-slot": "messages",
|
|
1881
|
-
className: `${tt.container} ${tt.emptyState}`,
|
|
1882
|
-
ref: s,
|
|
1883
|
-
children: i
|
|
1884
|
-
}
|
|
1885
|
-
) : null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1886
|
-
/* @__PURE__ */ o.jsx(
|
|
1887
|
-
"div",
|
|
1888
|
-
{
|
|
1889
|
-
ref: f,
|
|
1890
|
-
"aria-live": "polite",
|
|
1891
|
-
"aria-atomic": "true",
|
|
1892
|
-
style: {
|
|
1893
|
-
position: "absolute",
|
|
1894
|
-
left: "-10000px",
|
|
1895
|
-
width: "1px",
|
|
1896
|
-
height: "1px",
|
|
1897
|
-
overflow: "hidden"
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
),
|
|
1901
|
-
/* @__PURE__ */ o.jsx(
|
|
1902
|
-
"div",
|
|
1903
|
-
{
|
|
1904
|
-
"data-slot": "messages",
|
|
1905
|
-
className: tt.container,
|
|
1906
|
-
ref: s,
|
|
1907
|
-
children: /* @__PURE__ */ o.jsxs(Ue, { mode: "popLayout", children: [
|
|
1908
|
-
n.map((p) => /* @__PURE__ */ o.jsx(
|
|
1909
|
-
Lr,
|
|
1910
|
-
{
|
|
1911
|
-
message: p,
|
|
1912
|
-
messageRenderer: a
|
|
1913
|
-
},
|
|
1914
|
-
p.id
|
|
1915
|
-
)),
|
|
1916
|
-
t && /* @__PURE__ */ o.jsx(Pr, {}),
|
|
1917
|
-
r && /* @__PURE__ */ o.jsx(
|
|
1918
|
-
"div",
|
|
1919
|
-
{
|
|
1920
|
-
className: "error-message",
|
|
1921
|
-
style: {
|
|
1922
|
-
color: "var(--color-destructive)",
|
|
1923
|
-
padding: "1rem",
|
|
1924
|
-
textAlign: "center"
|
|
1925
|
-
},
|
|
1926
|
-
children: r
|
|
1927
|
-
}
|
|
1928
|
-
)
|
|
1929
|
-
] })
|
|
1930
|
-
}
|
|
1931
|
-
)
|
|
1932
|
-
] });
|
|
1933
|
-
}
|
|
1934
|
-
const Mr = "ConversationView-module_container", kr = "ConversationView-module_withHeader", Pt = {
|
|
1935
|
-
container: Mr,
|
|
1936
|
-
withHeader: kr
|
|
1937
|
-
};
|
|
1938
|
-
function Ft({
|
|
1939
|
-
messages: n,
|
|
1940
|
-
error: t,
|
|
1941
|
-
inputValue: r,
|
|
1942
|
-
onInputChange: i,
|
|
1943
|
-
onSubmit: a,
|
|
1944
|
-
onKeyDown: s,
|
|
1945
|
-
textareaRef: u,
|
|
1946
|
-
placeholder: h,
|
|
1947
|
-
isProcessing: f,
|
|
1948
|
-
onStop: p,
|
|
1949
|
-
fromCompact: m = !1,
|
|
1950
|
-
showHeader: g = !1,
|
|
1951
|
-
onClose: C,
|
|
1952
|
-
onExpand: E,
|
|
1953
|
-
notice: D,
|
|
1954
|
-
emptyView: H,
|
|
1955
|
-
suggestions: B,
|
|
1956
|
-
clearSuggestions: M,
|
|
1957
|
-
messageRenderer: j,
|
|
1958
|
-
focusOnMount: K = !1
|
|
1959
|
-
}) {
|
|
1960
|
-
return J(() => {
|
|
1961
|
-
const l = (v) => {
|
|
1962
|
-
v.key === "Escape" && C && C();
|
|
1963
|
-
};
|
|
1964
|
-
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
1965
|
-
}, [C]), /* @__PURE__ */ o.jsxs(
|
|
1966
|
-
"div",
|
|
1967
|
-
{
|
|
1968
|
-
"data-slot": "conversation-view",
|
|
1969
|
-
className: `${Pt.container}${g ? ` ${Pt.withHeader}` : ""}`,
|
|
1970
|
-
children: [
|
|
1971
|
-
g && /* @__PURE__ */ o.jsx(cr, { onClose: C }),
|
|
1972
|
-
/* @__PURE__ */ o.jsx(
|
|
1973
|
-
Fr,
|
|
1974
|
-
{
|
|
1975
|
-
messages: n,
|
|
1976
|
-
isProcessing: f,
|
|
1977
|
-
error: t,
|
|
1978
|
-
emptyView: H,
|
|
1979
|
-
messageRenderer: j
|
|
1980
|
-
}
|
|
1981
|
-
),
|
|
1982
|
-
/* @__PURE__ */ o.jsx(
|
|
1983
|
-
xr,
|
|
1984
|
-
{
|
|
1985
|
-
inputValue: r,
|
|
1986
|
-
onInputChange: i,
|
|
1987
|
-
onSubmit: a,
|
|
1988
|
-
onKeyDown: s,
|
|
1989
|
-
textareaRef: u,
|
|
1990
|
-
placeholder: h,
|
|
1991
|
-
isProcessing: f,
|
|
1992
|
-
onStop: p,
|
|
1993
|
-
fromCompact: m,
|
|
1994
|
-
onExpand: E,
|
|
1995
|
-
notice: D,
|
|
1996
|
-
suggestions: B,
|
|
1997
|
-
clearSuggestions: M,
|
|
1998
|
-
focusOnMount: K
|
|
1999
|
-
}
|
|
2000
|
-
)
|
|
2001
|
-
]
|
|
2002
|
-
}
|
|
2003
|
-
);
|
|
2004
|
-
}
|
|
2005
|
-
const $r = "Chat-module_container", Hr = "Chat-module_embedded", Nr = "Chat-module_floating", Vr = "Chat-module_content", Se = {
|
|
2006
|
-
container: $r,
|
|
2007
|
-
embedded: Hr,
|
|
2008
|
-
floating: Nr,
|
|
2009
|
-
content: Vr
|
|
2010
|
-
}, $ = {
|
|
2011
|
-
COLLAPSED_SIZE: 56,
|
|
2012
|
-
COMPACT_WIDTH: 372,
|
|
2013
|
-
EXPANDED_HEIGHT: 520,
|
|
2014
|
-
AUTO_COLLAPSE_DELAY: 1500,
|
|
2015
|
-
BORDER_RADIUS: 24,
|
|
2016
|
-
PADDING: 16,
|
|
2017
|
-
VIEWPORT_OFFSET: 16
|
|
2018
|
-
}, Oe = {
|
|
2019
|
-
SPRING_CONFIG: {
|
|
2020
|
-
type: "spring",
|
|
2021
|
-
damping: 25,
|
|
2022
|
-
stiffness: 300
|
|
2023
|
-
},
|
|
2024
|
-
VELOCITY_MULTIPLIER: 0.1,
|
|
2025
|
-
NON_DRAGGABLE_SELECTORS: [
|
|
2026
|
-
'[data-slot="message"]',
|
|
2027
|
-
'[data-slot="chat-input"]',
|
|
2028
|
-
'[data-slot="chat-footer"]'
|
|
2029
|
-
].join(", ")
|
|
2030
|
-
};
|
|
2031
|
-
function Wr({
|
|
2032
|
-
messages: n,
|
|
2033
|
-
isProcessing: t,
|
|
2034
|
-
error: r,
|
|
2035
|
-
onSubmit: i,
|
|
2036
|
-
variant: a = "floating",
|
|
2037
|
-
triggerIcon: s,
|
|
2038
|
-
placeholder: u = Vt,
|
|
2039
|
-
notice: h,
|
|
2040
|
-
onOpen: f,
|
|
2041
|
-
onExpand: p,
|
|
2042
|
-
onClose: m,
|
|
2043
|
-
onStop: g,
|
|
2044
|
-
emptyView: C,
|
|
2045
|
-
floatingChatState: E,
|
|
2046
|
-
suggestions: D,
|
|
2047
|
-
clearSuggestions: H,
|
|
2048
|
-
messageRenderer: B,
|
|
2049
|
-
className: M
|
|
2050
|
-
}) {
|
|
2051
|
-
const [j, K] = Ee(""), l = bn(E), v = W(!1), _ = W(!1), A = W(!1), [O, T] = Ee(!1);
|
|
2052
|
-
J(() => {
|
|
2053
|
-
v.current = !1, _.current = !1, A.current = !1;
|
|
2054
|
-
}, [l.state]);
|
|
2055
|
-
const Z = W(/* @__PURE__ */ new Set()), Pe = V(() => {
|
|
2056
|
-
Z.current.forEach((x) => {
|
|
2057
|
-
clearTimeout(x);
|
|
2058
|
-
}), Z.current.clear();
|
|
2059
|
-
}, []), S = wn({
|
|
2060
|
-
value: j,
|
|
2061
|
-
setValue: K,
|
|
2062
|
-
onSubmit: async (x) => {
|
|
2063
|
-
l.state !== "expanded" && (p == null || p()), l.setState("expanded"), await i(x);
|
|
2064
|
-
},
|
|
2065
|
-
isProcessing: t
|
|
2066
|
-
}), [z, te] = Ee(56), [ne, Fe] = Ee(
|
|
2067
|
-
"left"
|
|
2068
|
-
), de = W(null), le = W(null), Q = W(null), re = _t(0), ie = _t(0), he = vn(), Me = V(() => {
|
|
2069
|
-
v.current = !0, l.open(), f == null || f();
|
|
2070
|
-
}, [l, f]), ce = V(() => {
|
|
2071
|
-
var k, U, X;
|
|
2072
|
-
const x = (U = (k = Q.current) == null ? void 0 : k.ownerDocument) == null ? void 0 : U.activeElement;
|
|
2073
|
-
return !(x && ((X = Q.current) != null && X.contains(x)) || j.trim());
|
|
2074
|
-
}, [j, Q]), Ge = (x) => x === "collapsed" ? $.COLLAPSED_SIZE : x === "compact" ? z : $.EXPANDED_HEIGHT, Te = V(() => {
|
|
2075
|
-
if (l.state === "collapsed" && (l.setState("compact"), l.initialState === "collapsed")) {
|
|
2076
|
-
const x = setTimeout(() => {
|
|
2077
|
-
l.state === "compact" && ce() && l.setState("collapsed"), Z.current.delete(x);
|
|
2078
|
-
}, $.AUTO_COLLAPSE_DELAY);
|
|
2079
|
-
Z.current.add(x);
|
|
2080
|
-
}
|
|
2081
|
-
}, [l, ce]), pe = V(() => {
|
|
2082
|
-
if (l.initialState === "collapsed" && l.state === "compact" && ce()) {
|
|
2083
|
-
const x = setTimeout(() => {
|
|
2084
|
-
l.state === "compact" && ce() && l.setState("collapsed"), Z.current.delete(x);
|
|
2085
|
-
}, $.AUTO_COLLAPSE_DELAY);
|
|
2086
|
-
Z.current.add(x);
|
|
2087
|
-
}
|
|
2088
|
-
}, [l, ce]), ae = V(async () => {
|
|
2089
|
-
if (S.value.trim()) {
|
|
2090
|
-
const x = S.value.trim();
|
|
2091
|
-
S.clear(), l.state !== "expanded" && (p == null || p()), l.setState("expanded"), await i(x);
|
|
2092
|
-
}
|
|
2093
|
-
}, [S, i, l, p]), ue = V(() => {
|
|
2094
|
-
A.current = !0, p == null || p(), l.setState("expanded");
|
|
2095
|
-
}, [p, l]), ve = V(() => {
|
|
2096
|
-
_.current = !0, S.clear(), l.close(), m && m();
|
|
2097
|
-
}, [S, l, m]), me = V(
|
|
2098
|
-
(x) => {
|
|
2099
|
-
if (!Q.current || !le.current)
|
|
2100
|
-
return null;
|
|
2101
|
-
const k = Q.current.getBoundingClientRect(), U = le.current.getBoundingClientRect(), X = window.getComputedStyle(Q.current), ye = new DOMMatrixReadOnly(X.transform), He = k.x - ye.e, oe = k.y - ye.f, Xe = (x ?? ne) === "left" ? U.left : U.right - $.COMPACT_WIDTH, Ne = U.bottom - $.EXPANDED_HEIGHT;
|
|
2102
|
-
return {
|
|
2103
|
-
x: Xe - He,
|
|
2104
|
-
y: Ne - oe
|
|
2105
|
-
};
|
|
2106
|
-
},
|
|
2107
|
-
[ne]
|
|
2108
|
-
), ke = V(
|
|
2109
|
-
(x) => {
|
|
2110
|
-
x.target.closest(
|
|
2111
|
-
Oe.NON_DRAGGABLE_SELECTORS
|
|
2112
|
-
) || he.start(x.nativeEvent);
|
|
2113
|
-
},
|
|
2114
|
-
[he]
|
|
2115
|
-
), Ke = V(
|
|
2116
|
-
(x, k) => {
|
|
2117
|
-
const U = k.point.x, X = $.COMPACT_WIDTH, ye = (window.innerWidth - X) / 2, oe = U < ye ? "left" : "right";
|
|
2118
|
-
Fe(oe);
|
|
2119
|
-
const Ce = me(oe);
|
|
2120
|
-
Ce && (xt(re, Ce.x, {
|
|
2121
|
-
...Oe.SPRING_CONFIG,
|
|
2122
|
-
velocity: k.velocity.x * Oe.VELOCITY_MULTIPLIER
|
|
2123
|
-
}), xt(ie, Ce.y, {
|
|
2124
|
-
...Oe.SPRING_CONFIG,
|
|
2125
|
-
velocity: k.velocity.y * Oe.VELOCITY_MULTIPLIER
|
|
2126
|
-
}));
|
|
2127
|
-
},
|
|
2128
|
-
[re, ie, me]
|
|
2129
|
-
), $e = W(l.state), ge = $e.current === "compact" && l.state === "expanded";
|
|
2130
|
-
return J(() => {
|
|
2131
|
-
Pe(), $e.current = l.state;
|
|
2132
|
-
}, [l.state, Pe]), J(() => {
|
|
2133
|
-
if (l.state !== "expanded")
|
|
2134
|
-
return;
|
|
2135
|
-
const x = () => {
|
|
2136
|
-
const k = me();
|
|
2137
|
-
k && (re.set(k.x), ie.set(k.y));
|
|
2138
|
-
};
|
|
2139
|
-
return window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
2140
|
-
}, [l.state, re, ie, me]), J(() => {
|
|
2141
|
-
const x = Z.current;
|
|
2142
|
-
return () => {
|
|
2143
|
-
x.forEach((k) => {
|
|
2144
|
-
clearTimeout(k);
|
|
2145
|
-
}), x.clear();
|
|
2146
|
-
};
|
|
2147
|
-
}, []), J(() => {
|
|
2148
|
-
if (l.state === "compact" && de.current) {
|
|
2149
|
-
const x = de.current.scrollHeight + $.PADDING;
|
|
2150
|
-
te(x);
|
|
2151
|
-
}
|
|
2152
|
-
}, [l.state, S.value]), a === "embedded" ? /* @__PURE__ */ o.jsx(
|
|
2153
|
-
"div",
|
|
2154
|
-
{
|
|
2155
|
-
"data-slot": "chat-embedded",
|
|
2156
|
-
className: se(M, Se.container, Se.embedded),
|
|
2157
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2158
|
-
Ft,
|
|
2159
|
-
{
|
|
2160
|
-
messages: n,
|
|
2161
|
-
inputValue: S.value,
|
|
2162
|
-
onInputChange: S.setValue,
|
|
2163
|
-
onSubmit: ae,
|
|
2164
|
-
onKeyDown: S.handleKeyDown,
|
|
2165
|
-
textareaRef: S.textareaRef,
|
|
2166
|
-
placeholder: u,
|
|
2167
|
-
isProcessing: t,
|
|
2168
|
-
onStop: g,
|
|
2169
|
-
showHeader: !1,
|
|
2170
|
-
notice: h,
|
|
2171
|
-
suggestions: D,
|
|
2172
|
-
clearSuggestions: H,
|
|
2173
|
-
error: r,
|
|
2174
|
-
emptyView: C,
|
|
2175
|
-
messageRenderer: B,
|
|
2176
|
-
onExpand: ue,
|
|
2177
|
-
focusOnMount: A.current
|
|
2178
|
-
}
|
|
2179
|
-
)
|
|
2180
|
-
}
|
|
2181
|
-
) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2182
|
-
/* @__PURE__ */ o.jsx(
|
|
2183
|
-
"div",
|
|
2184
|
-
{
|
|
2185
|
-
ref: le,
|
|
2186
|
-
style: {
|
|
2187
|
-
position: "fixed",
|
|
2188
|
-
top: $.VIEWPORT_OFFSET,
|
|
2189
|
-
left: $.VIEWPORT_OFFSET,
|
|
2190
|
-
right: $.VIEWPORT_OFFSET,
|
|
2191
|
-
bottom: $.VIEWPORT_OFFSET,
|
|
2192
|
-
pointerEvents: "none"
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
),
|
|
2196
|
-
/* @__PURE__ */ o.jsx(
|
|
2197
|
-
q.div,
|
|
2198
|
-
{
|
|
2199
|
-
ref: Q,
|
|
2200
|
-
"data-slot": "chat-floating",
|
|
2201
|
-
className: se(M, Se.container, Se.floating, {
|
|
2202
|
-
animating: O
|
|
2203
|
-
}),
|
|
2204
|
-
onMouseLeave: l.state === "compact" ? pe : void 0,
|
|
2205
|
-
drag: l.state === "expanded",
|
|
2206
|
-
dragControls: he,
|
|
2207
|
-
dragListener: !1,
|
|
2208
|
-
dragConstraints: le,
|
|
2209
|
-
dragMomentum: !1,
|
|
2210
|
-
dragElastic: 0.1,
|
|
2211
|
-
dragTransition: { power: 0.1, timeConstant: 100 },
|
|
2212
|
-
onDragEnd: Ke,
|
|
2213
|
-
onPointerDown: ke,
|
|
2214
|
-
style: {
|
|
2215
|
-
x: re,
|
|
2216
|
-
y: ie,
|
|
2217
|
-
bottom: $.VIEWPORT_OFFSET,
|
|
2218
|
-
left: $.VIEWPORT_OFFSET
|
|
2219
|
-
},
|
|
2220
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2221
|
-
q.div,
|
|
2222
|
-
{
|
|
2223
|
-
layout: !0,
|
|
2224
|
-
className: Se.content,
|
|
2225
|
-
initial: !1,
|
|
2226
|
-
animate: {
|
|
2227
|
-
width: l.state === "collapsed" ? $.COLLAPSED_SIZE : $.COMPACT_WIDTH,
|
|
2228
|
-
height: Ge(l.state),
|
|
2229
|
-
x: l.state === "collapsed" && ne === "right" ? $.COMPACT_WIDTH - $.COLLAPSED_SIZE : 0,
|
|
2230
|
-
transition: S.value.trim() ? { duration: 0 } : lt
|
|
2231
|
-
},
|
|
2232
|
-
onAnimationStart: () => T(!0),
|
|
2233
|
-
onAnimationComplete: () => T(!1),
|
|
2234
|
-
style: {
|
|
2235
|
-
borderRadius: $.BORDER_RADIUS
|
|
2236
|
-
},
|
|
2237
|
-
children: /* @__PURE__ */ o.jsxs(Ue, { mode: "wait", children: [
|
|
2238
|
-
l.state === "collapsed" && /* @__PURE__ */ o.jsx(
|
|
2239
|
-
Gn,
|
|
2240
|
-
{
|
|
2241
|
-
icon: s,
|
|
2242
|
-
onClick: Me,
|
|
2243
|
-
onHover: Te,
|
|
2244
|
-
focusOnMount: _.current
|
|
2245
|
-
},
|
|
2246
|
-
"collapsed"
|
|
2247
|
-
),
|
|
2248
|
-
l.state === "compact" && /* @__PURE__ */ o.jsx("div", { ref: de, children: /* @__PURE__ */ o.jsx(
|
|
2249
|
-
or,
|
|
2250
|
-
{
|
|
2251
|
-
value: S.value,
|
|
2252
|
-
onChange: S.setValue,
|
|
2253
|
-
onSubmit: ae,
|
|
2254
|
-
onKeyDown: S.handleKeyDown,
|
|
2255
|
-
textareaRef: S.textareaRef,
|
|
2256
|
-
placeholder: u,
|
|
2257
|
-
isProcessing: t,
|
|
2258
|
-
onBlur: pe,
|
|
2259
|
-
onExpand: ue,
|
|
2260
|
-
showExpandButton: !S.value.trim(),
|
|
2261
|
-
focusOnMount: v.current,
|
|
2262
|
-
onStop: g
|
|
2263
|
-
},
|
|
2264
|
-
"compact"
|
|
2265
|
-
) }),
|
|
2266
|
-
l.state === "expanded" && /* @__PURE__ */ o.jsx(
|
|
2267
|
-
Ft,
|
|
2268
|
-
{
|
|
2269
|
-
messages: n,
|
|
2270
|
-
inputValue: S.value,
|
|
2271
|
-
onInputChange: S.setValue,
|
|
2272
|
-
onSubmit: ae,
|
|
2273
|
-
onKeyDown: S.handleKeyDown,
|
|
2274
|
-
textareaRef: S.textareaRef,
|
|
2275
|
-
placeholder: u,
|
|
2276
|
-
isProcessing: t,
|
|
2277
|
-
onStop: g,
|
|
2278
|
-
showHeader: !0,
|
|
2279
|
-
onClose: ve,
|
|
2280
|
-
fromCompact: ge,
|
|
2281
|
-
notice: h,
|
|
2282
|
-
suggestions: D,
|
|
2283
|
-
clearSuggestions: H,
|
|
2284
|
-
error: r,
|
|
2285
|
-
emptyView: C,
|
|
2286
|
-
messageRenderer: B,
|
|
2287
|
-
onExpand: ue,
|
|
2288
|
-
focusOnMount: A.current
|
|
2289
|
-
},
|
|
2290
|
-
"expanded"
|
|
2291
|
-
)
|
|
2292
|
-
] })
|
|
2293
|
-
}
|
|
2294
|
-
)
|
|
2295
|
-
}
|
|
2296
|
-
)
|
|
2297
|
-
] });
|
|
2298
|
-
}
|
|
2299
|
-
const vi = ({
|
|
2300
|
-
messages: n,
|
|
2301
|
-
isProcessing: t,
|
|
2302
|
-
error: r,
|
|
2303
|
-
onSubmit: i,
|
|
2304
|
-
variant: a = "floating",
|
|
2305
|
-
triggerIcon: s,
|
|
2306
|
-
placeholder: u,
|
|
2307
|
-
notice: h,
|
|
2308
|
-
emptyView: f,
|
|
2309
|
-
onOpen: p,
|
|
2310
|
-
onExpand: m,
|
|
2311
|
-
onClose: g,
|
|
2312
|
-
onStop: C,
|
|
2313
|
-
floatingChatState: E,
|
|
2314
|
-
suggestions: D,
|
|
2315
|
-
clearSuggestions: H,
|
|
2316
|
-
messageRenderer: B,
|
|
2317
|
-
className: M
|
|
2318
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
2319
|
-
Wr,
|
|
2320
|
-
{
|
|
2321
|
-
messages: n,
|
|
2322
|
-
isProcessing: t,
|
|
2323
|
-
error: r,
|
|
2324
|
-
onSubmit: i,
|
|
2325
|
-
variant: a,
|
|
2326
|
-
triggerIcon: s,
|
|
2327
|
-
placeholder: u,
|
|
2328
|
-
notice: h,
|
|
2329
|
-
emptyView: f,
|
|
2330
|
-
onOpen: p,
|
|
2331
|
-
onExpand: m,
|
|
2332
|
-
onClose: g,
|
|
2333
|
-
onStop: C,
|
|
2334
|
-
floatingChatState: E,
|
|
2335
|
-
suggestions: D,
|
|
2336
|
-
clearSuggestions: H,
|
|
2337
|
-
messageRenderer: B,
|
|
2338
|
-
className: se("agenttic", M)
|
|
2339
|
-
}
|
|
2340
|
-
);
|
|
2341
|
-
function mi({ className: n, size: t = 24 }) {
|
|
2342
|
-
return /* @__PURE__ */ o.jsx(
|
|
2343
|
-
"svg",
|
|
2344
|
-
{
|
|
2345
|
-
width: t,
|
|
2346
|
-
height: t,
|
|
2347
|
-
viewBox: "0 0 24 24",
|
|
2348
|
-
fill: "none",
|
|
2349
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2350
|
-
className: n,
|
|
2351
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2352
|
-
"path",
|
|
2353
|
-
{
|
|
2354
|
-
d: "M6.97288 17.25C6.97288 17.3881 7.08481 17.5 7.22288 17.5L8.5 17.5L8.5 12.875L7.22288 12.875C7.08481 12.875 6.97288 12.9869 6.97288 13.125L6.97288 17.25ZM16.3725 17.5C17.1129 17.5 17.7434 16.9587 17.8549 16.2256L18.4819 13.1006C18.6199 12.1924 17.9175 11.3752 17.0004 11.375L14.0698 11.375C13.8509 11.3749 13.6429 11.2794 13.5004 11.1133C13.358 10.9469 13.2949 10.7261 13.3286 10.5098L13.7602 7.74023C13.8309 7.28511 13.4792 6.875 13.02 6.875L13.0141 6.87891L10 12.5L10 17.5L16.3725 17.5ZM5.47288 13.125C5.47288 12.1585 6.25638 11.375 7.22288 11.375L9.01216 11.375L11.6811 6.19238C11.9394 5.69079 12.4558 5.3751 13.02 5.375C14.4008 5.375 15.4552 6.6078 15.2426 7.97168L14.9458 9.875L17.0004 9.875C18.8366 9.87517 20.2413 11.511 19.9653 13.3262L19.3374 16.4512C19.1145 17.9166 17.8548 19 16.3725 19L7.22288 19C6.25638 19 5.47288 18.2165 5.47288 17.25L5.47288 13.125Z",
|
|
2355
|
-
fill: "currentColor"
|
|
2356
|
-
}
|
|
2357
|
-
)
|
|
2358
|
-
}
|
|
2359
|
-
);
|
|
2360
|
-
}
|
|
2361
|
-
function gi({ className: n, size: t = 24 }) {
|
|
2362
|
-
return /* @__PURE__ */ o.jsx(
|
|
2363
|
-
"svg",
|
|
2364
|
-
{
|
|
2365
|
-
width: t,
|
|
2366
|
-
height: t,
|
|
2367
|
-
viewBox: "0 0 24 24",
|
|
2368
|
-
fill: "none",
|
|
2369
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2370
|
-
className: n,
|
|
2371
|
-
"aria-hidden": "true",
|
|
2372
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2373
|
-
"path",
|
|
2374
|
-
{
|
|
2375
|
-
d: "M6.97288 6.75C6.97288 6.61194 7.08481 6.5 7.22288 6.5L8.5 6.5L8.5 11.125L7.22288 11.125C7.08481 11.125 6.97288 11.0131 6.97288 10.875L6.97288 6.75ZM16.3725 6.5C17.1129 6.5 17.7434 7.0413 17.8549 7.77438L18.4819 10.8994C18.6199 11.8076 17.9175 12.6248 17.0004 12.625L14.0698 12.625C13.8509 12.6251 13.6429 12.7206 13.5004 12.8867C13.358 13.0531 13.2949 13.2739 13.3286 13.4902L13.7602 16.2598C13.8309 16.7149 13.4792 17.125 13.02 17.125L13.0141 17.1211L10 11.5L10 6.5L16.3725 6.5ZM5.47288 10.875C5.47288 11.8415 6.25638 12.625 7.22288 12.625L9.01216 12.625L11.6811 17.8076C11.9394 18.3092 12.4558 18.6249 13.02 18.625C14.4008 18.625 15.4552 17.3922 15.2426 16.0283L14.9458 14.125L17.0004 14.125C18.8366 14.1248 20.2413 12.489 19.9653 10.6738L19.3374 7.54883C19.1145 6.08344 17.8548 5 16.3725 5L7.22288 5C6.25638 5 5.47288 5.78348 5.47288 6.75L5.47288 10.875Z",
|
|
2376
|
-
fill: "currentColor"
|
|
2377
|
-
}
|
|
2378
|
-
)
|
|
2379
|
-
}
|
|
2380
|
-
);
|
|
2381
|
-
}
|
|
2382
|
-
function yi({ className: n, size: t = 24 }) {
|
|
2383
|
-
return /* @__PURE__ */ o.jsx(
|
|
2384
|
-
"svg",
|
|
2385
|
-
{
|
|
2386
|
-
width: t,
|
|
2387
|
-
height: t,
|
|
2388
|
-
viewBox: "0 0 24 24",
|
|
2389
|
-
fill: "none",
|
|
2390
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2391
|
-
className: n,
|
|
2392
|
-
"aria-hidden": "true",
|
|
2393
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2394
|
-
"path",
|
|
2395
|
-
{
|
|
2396
|
-
d: "M14.5 12C14.5 11.1716 13.8284 10.5 13 10.5H8C7.17157 10.5 6.5 11.1716 6.5 12V17C6.5 17.8284 7.17157 18.5 8 18.5H13C13.8284 18.5 14.5 17.8284 14.5 17V12ZM16 14.5H16.5C17.3284 14.5 18 13.8284 18 13V8C18 7.17157 17.3284 6.5 16.5 6.5H11C10.1716 6.5 9.5 7.17157 9.5 8V9H13C14.6569 9 16 10.3431 16 12V14.5ZM19.5 13C19.5 14.6569 18.1569 16 16.5 16H16V17C16 18.6569 14.6569 20 13 20H8C6.34315 20 5 18.6569 5 17V12C5 10.3431 6.34315 9 8 9V8C8 6.34315 9.34315 5 11 5H16.5C18.1569 5 19.5 6.34315 19.5 8V13Z",
|
|
2397
|
-
fill: "currentColor"
|
|
2398
|
-
}
|
|
2399
|
-
)
|
|
2400
|
-
}
|
|
2401
|
-
);
|
|
2402
|
-
}
|
|
2403
|
-
function Ci({ className: n, size: t = 24 }) {
|
|
2404
|
-
return /* @__PURE__ */ o.jsx(
|
|
2405
|
-
"svg",
|
|
2406
|
-
{
|
|
2407
|
-
width: t,
|
|
2408
|
-
height: t,
|
|
2409
|
-
viewBox: "0 0 24 24",
|
|
2410
|
-
fill: "none",
|
|
2411
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2412
|
-
className: n,
|
|
2413
|
-
"aria-hidden": "true",
|
|
2414
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2415
|
-
"path",
|
|
2416
|
-
{
|
|
2417
|
-
fillRule: "evenodd",
|
|
2418
|
-
clipRule: "evenodd",
|
|
2419
|
-
d: "M19 12C19 13.8565 18.2625 15.637 16.9497 16.9497C15.637 18.2625 13.8565 19 12 19C10.1435 19 8.36301 18.2625 7.05025 16.9497C5.7375 15.637 5 13.8565 5 12C5 10.1435 5.7375 8.36301 7.05025 7.05025C8.36301 5.7375 10.1435 5 12 5C13.8565 5 15.637 5.7375 16.9497 7.05025C18.2625 8.36301 19 10.1435 19 12ZM17.6875 12C17.6875 13.5084 17.0883 14.9551 16.0217 16.0217C14.9551 17.0883 13.5084 17.6875 12 17.6875V6.3125C13.5084 6.3125 14.9551 6.91172 16.0217 7.97833C17.0883 9.04494 17.6875 10.4916 17.6875 12Z",
|
|
2420
|
-
fill: "currentColor"
|
|
2421
|
-
}
|
|
2422
|
-
)
|
|
2423
|
-
}
|
|
2424
|
-
);
|
|
2425
|
-
}
|
|
2426
|
-
function _i({ className: n, size: t = 24 }) {
|
|
2427
|
-
return /* @__PURE__ */ o.jsx(
|
|
2428
|
-
"svg",
|
|
2429
|
-
{
|
|
2430
|
-
width: t,
|
|
2431
|
-
height: t,
|
|
2432
|
-
viewBox: "0 0 24 24",
|
|
2433
|
-
fill: "none",
|
|
2434
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2435
|
-
className: n,
|
|
2436
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2437
|
-
"path",
|
|
2438
|
-
{
|
|
2439
|
-
fillRule: "evenodd",
|
|
2440
|
-
clipRule: "evenodd",
|
|
2441
|
-
d: "M11.2222 6.55556C8.6449 6.55556 6.55556 8.6449 6.55556 11.2222C6.55556 13.7996 8.6449 15.8889 11.2222 15.8889C13.7996 15.8889 15.8889 13.7996 15.8889 11.2222C15.8889 8.6449 13.7996 6.55556 11.2222 6.55556ZM5 11.2222C5 7.78579 7.78579 5 11.2222 5C14.6587 5 17.4445 7.78579 17.4445 11.2222C17.4445 12.6601 16.9567 13.9841 16.1377 15.0377L18.7722 17.6722C19.0759 17.976 19.0759 18.4685 18.7722 18.7722C18.4685 19.0759 17.976 19.0759 17.6722 18.7722L15.0377 16.1377C13.9841 16.9567 12.6601 17.4445 11.2222 17.4445C7.78579 17.4445 5 14.6587 5 11.2222Z",
|
|
2442
|
-
fill: "currentColor"
|
|
2443
|
-
}
|
|
2444
|
-
)
|
|
2445
|
-
}
|
|
2446
|
-
);
|
|
2447
|
-
}
|
|
2448
|
-
function xi({ className: n, size: t = 24 }) {
|
|
2449
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2450
|
-
"svg",
|
|
2451
|
-
{
|
|
2452
|
-
width: t,
|
|
2453
|
-
height: t,
|
|
2454
|
-
viewBox: "0 0 24 24",
|
|
2455
|
-
fill: "none",
|
|
2456
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2457
|
-
className: n,
|
|
2458
|
-
children: [
|
|
2459
|
-
/* @__PURE__ */ o.jsx(
|
|
2460
|
-
"path",
|
|
2461
|
-
{
|
|
2462
|
-
d: "M11.2222 14.3333C12.9404 14.3333 14.3333 12.9404 14.3333 11.2222C14.3333 9.50401 12.9404 8.11111 11.2222 8.11111C9.50401 8.11111 8.11111 9.50401 8.11111 11.2222C8.11111 12.9404 9.50401 14.3333 11.2222 14.3333Z",
|
|
2463
|
-
fill: "currentColor"
|
|
2464
|
-
}
|
|
2465
|
-
),
|
|
2466
|
-
/* @__PURE__ */ o.jsx(
|
|
2467
|
-
"path",
|
|
2468
|
-
{
|
|
2469
|
-
fillRule: "evenodd",
|
|
2470
|
-
clipRule: "evenodd",
|
|
2471
|
-
d: "M11.2222 6.55556C8.6449 6.55556 6.55556 8.6449 6.55556 11.2222C6.55556 13.7996 8.6449 15.8889 11.2222 15.8889C13.7996 15.8889 15.8889 13.7996 15.8889 11.2222C15.8889 8.6449 13.7996 6.55556 11.2222 6.55556ZM5 11.2222C5 7.78579 7.78579 5 11.2222 5C14.6587 5 17.4445 7.78579 17.4445 11.2222C17.4445 12.6601 16.9567 13.9841 16.1377 15.0377L18.7722 17.6722C19.0759 17.976 19.0759 18.4685 18.7722 18.7722C18.4685 19.0759 17.976 19.0759 17.6722 18.7722L15.0377 16.1377C13.9841 16.9567 12.6601 17.4445 11.2222 17.4445C7.78579 17.4445 5 14.6587 5 11.2222Z",
|
|
2472
|
-
fill: "currentColor"
|
|
2473
|
-
}
|
|
2474
|
-
)
|
|
2475
|
-
]
|
|
2476
|
-
}
|
|
2477
|
-
);
|
|
2478
|
-
}
|
|
1
|
+
import { A as e, a as n, k as o, j as t, b as I, f as g, e as i, i as c, h as A, p as r, H as C, F as U, C as p, l as u, q as h, m as l, I as m, r as d, s as w, t as M, D as S, o as v, n as y, M as F, N as T, G as V, E as b, S as f, T as k, B as x, z as H, X as N, Z, J as B, y as D, x as X, A as j, u as q, v as z, w as E } from "./index-DR9mkSeU.js";
|
|
2479
2
|
export {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
3
|
+
e as AgentUI,
|
|
4
|
+
n as AgentUIContainer,
|
|
5
|
+
o as AgentUIConversationView,
|
|
6
|
+
t as AgentUIFooter,
|
|
7
|
+
I as AgentUIHeader,
|
|
8
|
+
g as AgentUIInput,
|
|
9
|
+
i as AgentUIMessages,
|
|
10
|
+
c as AgentUINotice,
|
|
11
|
+
A as AgentUISuggestions,
|
|
12
|
+
r as AnimatedPlaceholder,
|
|
13
|
+
C as ArrowUpIcon,
|
|
14
|
+
U as BigSkyIcon,
|
|
15
|
+
p as Chat,
|
|
16
|
+
u as ChatFooter,
|
|
17
|
+
h as ChatHeader,
|
|
18
|
+
l as ChatInput,
|
|
19
|
+
m as ChevronUpIcon,
|
|
20
|
+
d as CollapsedView,
|
|
21
|
+
w as CompactView,
|
|
22
|
+
M as ConversationView,
|
|
23
|
+
S as CopyIcon,
|
|
24
|
+
v as Message,
|
|
25
|
+
y as MessageActions,
|
|
26
|
+
F as Messages,
|
|
27
|
+
T as Notice,
|
|
28
|
+
V as StopIcon,
|
|
29
|
+
b as StylesIcon,
|
|
30
|
+
f as Suggestions,
|
|
31
|
+
k as ThinkingMessage,
|
|
32
|
+
x as ThumbsDownIcon,
|
|
33
|
+
H as ThumbsUpIcon,
|
|
34
|
+
N as XIcon,
|
|
35
|
+
Z as ZoomIcon,
|
|
36
|
+
B as ZoomIconFilled,
|
|
37
|
+
D as animations,
|
|
38
|
+
X as cn,
|
|
39
|
+
j as default,
|
|
40
|
+
q as useAgentUIContext,
|
|
41
|
+
z as useChat,
|
|
42
|
+
E as useInput
|
|
2503
43
|
};
|