@automattic/agenttic-ui 0.1.9 → 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 -350
- 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 +20 -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/animations/index.d.ts +0 -1
- package/dist/components/animations/index.d.ts.map +1 -1
- package/dist/components/chat/AnimatedPlaceholder.d.ts +8 -0
- package/dist/components/chat/AnimatedPlaceholder.d.ts.map +1 -0
- package/dist/components/chat/Chat.d.ts +1 -1
- package/dist/components/chat/Chat.d.ts.map +1 -1
- package/dist/components/chat/ChatFooter.d.ts +4 -2
- package/dist/components/chat/ChatFooter.d.ts.map +1 -1
- package/dist/components/chat/ChatFooter.stories.d.ts +73 -0
- package/dist/components/chat/ChatFooter.stories.d.ts.map +1 -0
- 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 +5 -2
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.stories.d.ts +41 -1
- package/dist/components/chat/ChatInput.stories.d.ts.map +1 -1
- package/dist/components/chat/MessageActions.d.ts.map +1 -1
- package/dist/components/chat/Messages.d.ts +2 -2
- package/dist/components/chat/Messages.d.ts.map +1 -1
- package/dist/components/chat/Messages.stories.d.ts +2 -2
- 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/icons/ZoomIcon.d.ts +3 -0
- package/dist/components/icons/ZoomIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomIconFilled.d.ts +3 -0
- package/dist/components/icons/ZoomIconFilled.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +3 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.stories.d.ts +15 -4
- package/dist/components/ui/button.stories.d.ts.map +1 -1
- package/dist/components/views/CompactView.d.ts +6 -2
- package/dist/components/views/CompactView.d.ts.map +1 -1
- package/dist/components/views/ConversationView.d.ts +3 -2
- package/dist/components/views/ConversationView.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 +22 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -2371
- 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 +7 -2
- 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 +4 -4
package/dist/index.js
CHANGED
|
@@ -1,2373 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import We, { useState as Ne, useEffect as q, useCallback as V, useRef as W, useId as dn, memo as hn, useMemo as pn } from "react";
|
|
3
|
-
import { motion as ae, AnimatePresence as tt, useMotionValue as yt, useDragControls as vn, animate as _t } from "framer-motion";
|
|
4
|
-
import { useRef as mn, useCallback as Xe, useEffect as gn } from "@wordpress/element";
|
|
5
|
-
import { Slot as yn } from "@radix-ui/react-slot";
|
|
6
|
-
import _n from "react-markdown";
|
|
7
|
-
import './index.css';var qe = { exports: {} }, Re = {};
|
|
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 Ct;
|
|
18
|
-
function Cn() {
|
|
19
|
-
if (Ct) return Re;
|
|
20
|
-
Ct = 1;
|
|
21
|
-
var t = We, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
-
function l(h, u, f) {
|
|
23
|
-
var v, _ = {}, C = null, j = null;
|
|
24
|
-
f !== void 0 && (C = "" + f), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (j = u.ref);
|
|
25
|
-
for (v in u) i.call(u, v) && !c.hasOwnProperty(v) && (_[v] = u[v]);
|
|
26
|
-
if (h && h.defaultProps) for (v in u = h.defaultProps, u) _[v] === void 0 && (_[v] = u[v]);
|
|
27
|
-
return { $$typeof: n, type: h, key: C, ref: j, props: _, _owner: a.current };
|
|
28
|
-
}
|
|
29
|
-
return Re.Fragment = r, Re.jsx = l, Re.jsxs = l, Re;
|
|
30
|
-
}
|
|
31
|
-
var Te = {};
|
|
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 bt;
|
|
42
|
-
function bn() {
|
|
43
|
-
return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = We, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), h = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), I = Symbol.iterator, M = "@@iterator";
|
|
45
|
-
function B(e) {
|
|
46
|
-
if (e === null || typeof e != "object")
|
|
47
|
-
return null;
|
|
48
|
-
var o = I && e[I] || e[M];
|
|
49
|
-
return typeof o == "function" ? o : null;
|
|
50
|
-
}
|
|
51
|
-
var $ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function A(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var o = arguments.length, d = new Array(o > 1 ? o - 1 : 0), y = 1; y < o; y++)
|
|
55
|
-
d[y - 1] = arguments[y];
|
|
56
|
-
g("error", e, d);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function g(e, o, d) {
|
|
60
|
-
{
|
|
61
|
-
var y = $.ReactDebugCurrentFrame, T = y.getStackAddendum();
|
|
62
|
-
T !== "" && (o += "%s", d = d.concat([T]));
|
|
63
|
-
var S = d.map(function(w) {
|
|
64
|
-
return String(w);
|
|
65
|
-
});
|
|
66
|
-
S.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, S);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var p = !1, m = !1, b = !1, L = !1, O = !1, R;
|
|
70
|
-
R = Symbol.for("react.module.reference");
|
|
71
|
-
function ue(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === i || e === c || O || e === a || e === f || e === v || L || e === j || p || m || b || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === l || e.$$typeof === h || e.$$typeof === u || // 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 === R || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Be(e, o, d) {
|
|
79
|
-
var y = e.displayName;
|
|
80
|
-
if (y)
|
|
81
|
-
return y;
|
|
82
|
-
var T = o.displayName || o.name || "";
|
|
83
|
-
return T !== "" ? d + "(" + T + ")" : d;
|
|
84
|
-
}
|
|
85
|
-
function fe(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function X(e) {
|
|
89
|
-
if (e == null)
|
|
90
|
-
return null;
|
|
91
|
-
if (typeof e.tag == "number" && A("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 c:
|
|
101
|
-
return "Profiler";
|
|
102
|
-
case a:
|
|
103
|
-
return "StrictMode";
|
|
104
|
-
case f:
|
|
105
|
-
return "Suspense";
|
|
106
|
-
case v:
|
|
107
|
-
return "SuspenseList";
|
|
108
|
-
}
|
|
109
|
-
if (typeof e == "object")
|
|
110
|
-
switch (e.$$typeof) {
|
|
111
|
-
case h:
|
|
112
|
-
var o = e;
|
|
113
|
-
return fe(o) + ".Consumer";
|
|
114
|
-
case l:
|
|
115
|
-
var d = e;
|
|
116
|
-
return fe(d._context) + ".Provider";
|
|
117
|
-
case u:
|
|
118
|
-
return Be(e, e.render, "ForwardRef");
|
|
119
|
-
case _:
|
|
120
|
-
var y = e.displayName || null;
|
|
121
|
-
return y !== null ? y : X(e.type) || "Memo";
|
|
122
|
-
case C: {
|
|
123
|
-
var T = e, S = T._payload, w = T._init;
|
|
124
|
-
try {
|
|
125
|
-
return X(w(S));
|
|
126
|
-
} catch {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
var K = Object.assign, z = 0, J, ne, re, de, Ae, ie, Oe;
|
|
134
|
-
function De() {
|
|
135
|
-
}
|
|
136
|
-
De.__reactDisabledLog = !0;
|
|
137
|
-
function Ie() {
|
|
138
|
-
{
|
|
139
|
-
if (z === 0) {
|
|
140
|
-
J = console.log, ne = console.info, re = console.warn, de = console.error, Ae = console.group, ie = console.groupCollapsed, Oe = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: De,
|
|
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
|
-
z++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Ce() {
|
|
161
|
-
{
|
|
162
|
-
if (z--, z === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: K({}, e, {
|
|
170
|
-
value: J
|
|
171
|
-
}),
|
|
172
|
-
info: K({}, e, {
|
|
173
|
-
value: ne
|
|
174
|
-
}),
|
|
175
|
-
warn: K({}, e, {
|
|
176
|
-
value: re
|
|
177
|
-
}),
|
|
178
|
-
error: K({}, e, {
|
|
179
|
-
value: de
|
|
180
|
-
}),
|
|
181
|
-
group: K({}, e, {
|
|
182
|
-
value: Ae
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: K({}, e, {
|
|
185
|
-
value: ie
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: K({}, e, {
|
|
188
|
-
value: Oe
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
z < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var oe = $.ReactCurrentDispatcher, be;
|
|
196
|
-
function ee(e, o, d) {
|
|
197
|
-
{
|
|
198
|
-
if (be === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (T) {
|
|
202
|
-
var y = T.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
be = y && y[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + be + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var xe = !1, he;
|
|
210
|
-
{
|
|
211
|
-
var Pe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
he = new Pe();
|
|
213
|
-
}
|
|
214
|
-
function Fe(e, o) {
|
|
215
|
-
if (!e || xe)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var d = he.get(e);
|
|
219
|
-
if (d !== void 0)
|
|
220
|
-
return d;
|
|
221
|
-
}
|
|
222
|
-
var y;
|
|
223
|
-
xe = !0;
|
|
224
|
-
var T = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var S;
|
|
227
|
-
S = oe.current, oe.current = null, Ie();
|
|
228
|
-
try {
|
|
229
|
-
if (o) {
|
|
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 (U) {
|
|
241
|
-
y = U;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], w);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
w.call();
|
|
247
|
-
} catch (U) {
|
|
248
|
-
y = U;
|
|
249
|
-
}
|
|
250
|
-
e.call(w.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (U) {
|
|
256
|
-
y = U;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (U) {
|
|
261
|
-
if (U && y && typeof U.stack == "string") {
|
|
262
|
-
for (var x = U.stack.split(`
|
|
263
|
-
`), N = y.stack.split(`
|
|
264
|
-
`), D = x.length - 1, P = N.length - 1; D >= 1 && P >= 0 && x[D] !== N[P]; )
|
|
265
|
-
P--;
|
|
266
|
-
for (; D >= 1 && P >= 0; D--, P--)
|
|
267
|
-
if (x[D] !== N[P]) {
|
|
268
|
-
if (D !== 1 || P !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (D--, P--, P < 0 || x[D] !== N[P]) {
|
|
271
|
-
var G = `
|
|
272
|
-
` + x[D].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" && he.set(e, G), G;
|
|
274
|
-
}
|
|
275
|
-
while (D >= 1 && P >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
xe = !1, oe.current = S, Ce(), Error.prepareStackTrace = T;
|
|
281
|
-
}
|
|
282
|
-
var me = e ? e.displayName || e.name : "", ce = me ? ee(me) : "";
|
|
283
|
-
return typeof e == "function" && he.set(e, ce), ce;
|
|
284
|
-
}
|
|
285
|
-
function E(e, o, d) {
|
|
286
|
-
return Fe(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function H(e) {
|
|
289
|
-
var o = e.prototype;
|
|
290
|
-
return !!(o && o.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function Y(e, o, d) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return Fe(e, H(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return ee(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case f:
|
|
301
|
-
return ee("Suspense");
|
|
302
|
-
case v:
|
|
303
|
-
return ee("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case u:
|
|
308
|
-
return E(e.render);
|
|
309
|
-
case _:
|
|
310
|
-
return Y(e.type, o, d);
|
|
311
|
-
case C: {
|
|
312
|
-
var y = e, T = y._payload, S = y._init;
|
|
313
|
-
try {
|
|
314
|
-
return Y(S(T), o, d);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var Z = Object.prototype.hasOwnProperty, se = {}, we = $.ReactDebugCurrentFrame;
|
|
322
|
-
function te(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var o = e._owner, d = Y(e.type, e._source, o ? o.type : null);
|
|
325
|
-
we.setExtraStackFrame(d);
|
|
326
|
-
} else
|
|
327
|
-
we.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function pe(e, o, d, y, T) {
|
|
330
|
-
{
|
|
331
|
-
var S = Function.call.bind(Z);
|
|
332
|
-
for (var w in e)
|
|
333
|
-
if (S(e, w)) {
|
|
334
|
-
var x = 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
|
-
x = e[w](o, w, y, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (D) {
|
|
342
|
-
x = D;
|
|
343
|
-
}
|
|
344
|
-
x && !(x instanceof Error) && (te(T), A("%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 x), te(null)), x instanceof Error && !(x.message in se) && (se[x.message] = !0, te(T), A("Failed %s type: %s", d, x.message), te(null));
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
var Ye = Array.isArray;
|
|
349
|
-
function Ee(e) {
|
|
350
|
-
return Ye(e);
|
|
351
|
-
}
|
|
352
|
-
function Ut(e) {
|
|
353
|
-
{
|
|
354
|
-
var o = typeof Symbol == "function" && Symbol.toStringTag, d = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
|
-
return d;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function Zt(e) {
|
|
359
|
-
try {
|
|
360
|
-
return ot(e), !1;
|
|
361
|
-
} catch {
|
|
362
|
-
return !0;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function ot(e) {
|
|
366
|
-
return "" + e;
|
|
367
|
-
}
|
|
368
|
-
function st(e) {
|
|
369
|
-
if (Zt(e))
|
|
370
|
-
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ut(e)), ot(e);
|
|
371
|
-
}
|
|
372
|
-
var ct = $.ReactCurrentOwner, Gt = {
|
|
373
|
-
key: !0,
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, lt, ut;
|
|
378
|
-
function Kt(e) {
|
|
379
|
-
if (Z.call(e, "ref")) {
|
|
380
|
-
var o = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
-
if (o && o.isReactWarning)
|
|
382
|
-
return !1;
|
|
383
|
-
}
|
|
384
|
-
return e.ref !== void 0;
|
|
385
|
-
}
|
|
386
|
-
function Xt(e) {
|
|
387
|
-
if (Z.call(e, "key")) {
|
|
388
|
-
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
-
if (o && o.isReactWarning)
|
|
390
|
-
return !1;
|
|
391
|
-
}
|
|
392
|
-
return e.key !== void 0;
|
|
393
|
-
}
|
|
394
|
-
function zt(e, o) {
|
|
395
|
-
typeof e.ref == "string" && ct.current;
|
|
396
|
-
}
|
|
397
|
-
function Jt(e, o) {
|
|
398
|
-
{
|
|
399
|
-
var d = function() {
|
|
400
|
-
lt || (lt = !0, A("%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)", o));
|
|
401
|
-
};
|
|
402
|
-
d.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
|
-
get: d,
|
|
404
|
-
configurable: !0
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function qt(e, o) {
|
|
409
|
-
{
|
|
410
|
-
var d = function() {
|
|
411
|
-
ut || (ut = !0, A("%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)", o));
|
|
412
|
-
};
|
|
413
|
-
d.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
|
-
get: d,
|
|
415
|
-
configurable: !0
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
var Qt = function(e, o, d, y, T, S, w) {
|
|
420
|
-
var x = {
|
|
421
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof: n,
|
|
423
|
-
// Built-in properties that belong on the element
|
|
424
|
-
type: e,
|
|
425
|
-
key: o,
|
|
426
|
-
ref: d,
|
|
427
|
-
props: w,
|
|
428
|
-
// Record the component responsible for creating this element.
|
|
429
|
-
_owner: S
|
|
430
|
-
};
|
|
431
|
-
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !0,
|
|
435
|
-
value: !1
|
|
436
|
-
}), Object.defineProperty(x, "_self", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: y
|
|
441
|
-
}), Object.defineProperty(x, "_source", {
|
|
442
|
-
configurable: !1,
|
|
443
|
-
enumerable: !1,
|
|
444
|
-
writable: !1,
|
|
445
|
-
value: T
|
|
446
|
-
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
447
|
-
};
|
|
448
|
-
function en(e, o, d, y, T) {
|
|
449
|
-
{
|
|
450
|
-
var S, w = {}, x = null, N = null;
|
|
451
|
-
d !== void 0 && (st(d), x = "" + d), Xt(o) && (st(o.key), x = "" + o.key), Kt(o) && (N = o.ref, zt(o, T));
|
|
452
|
-
for (S in o)
|
|
453
|
-
Z.call(o, S) && !Gt.hasOwnProperty(S) && (w[S] = o[S]);
|
|
454
|
-
if (e && e.defaultProps) {
|
|
455
|
-
var D = e.defaultProps;
|
|
456
|
-
for (S in D)
|
|
457
|
-
w[S] === void 0 && (w[S] = D[S]);
|
|
458
|
-
}
|
|
459
|
-
if (x || N) {
|
|
460
|
-
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
x && Jt(w, P), N && qt(w, P);
|
|
462
|
-
}
|
|
463
|
-
return Qt(e, x, N, T, y, ct.current, w);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
var Ue = $.ReactCurrentOwner, ft = $.ReactDebugCurrentFrame;
|
|
467
|
-
function ve(e) {
|
|
468
|
-
if (e) {
|
|
469
|
-
var o = e._owner, d = Y(e.type, e._source, o ? o.type : null);
|
|
470
|
-
ft.setExtraStackFrame(d);
|
|
471
|
-
} else
|
|
472
|
-
ft.setExtraStackFrame(null);
|
|
473
|
-
}
|
|
474
|
-
var Ze;
|
|
475
|
-
Ze = !1;
|
|
476
|
-
function Ge(e) {
|
|
477
|
-
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
478
|
-
}
|
|
479
|
-
function dt() {
|
|
480
|
-
{
|
|
481
|
-
if (Ue.current) {
|
|
482
|
-
var e = X(Ue.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 ht = {};
|
|
495
|
-
function nn(e) {
|
|
496
|
-
{
|
|
497
|
-
var o = dt();
|
|
498
|
-
if (!o) {
|
|
499
|
-
var d = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
|
-
d && (o = `
|
|
501
|
-
|
|
502
|
-
Check the top-level render call using <` + d + ">.");
|
|
503
|
-
}
|
|
504
|
-
return o;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
function pt(e, o) {
|
|
508
|
-
{
|
|
509
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
510
|
-
return;
|
|
511
|
-
e._store.validated = !0;
|
|
512
|
-
var d = nn(o);
|
|
513
|
-
if (ht[d])
|
|
514
|
-
return;
|
|
515
|
-
ht[d] = !0;
|
|
516
|
-
var y = "";
|
|
517
|
-
e && e._owner && e._owner !== Ue.current && (y = " It was passed a child from " + X(e._owner.type) + "."), ve(e), A('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), ve(null);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
function vt(e, o) {
|
|
521
|
-
{
|
|
522
|
-
if (typeof e != "object")
|
|
523
|
-
return;
|
|
524
|
-
if (Ee(e))
|
|
525
|
-
for (var d = 0; d < e.length; d++) {
|
|
526
|
-
var y = e[d];
|
|
527
|
-
Ge(y) && pt(y, o);
|
|
528
|
-
}
|
|
529
|
-
else if (Ge(e))
|
|
530
|
-
e._store && (e._store.validated = !0);
|
|
531
|
-
else if (e) {
|
|
532
|
-
var T = B(e);
|
|
533
|
-
if (typeof T == "function" && T !== e.entries)
|
|
534
|
-
for (var S = T.call(e), w; !(w = S.next()).done; )
|
|
535
|
-
Ge(w.value) && pt(w.value, o);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
function rn(e) {
|
|
540
|
-
{
|
|
541
|
-
var o = e.type;
|
|
542
|
-
if (o == null || typeof o == "string")
|
|
543
|
-
return;
|
|
544
|
-
var d;
|
|
545
|
-
if (typeof o == "function")
|
|
546
|
-
d = o.propTypes;
|
|
547
|
-
else if (typeof o == "object" && (o.$$typeof === u || // Note: Memo only checks outer props here.
|
|
548
|
-
// Inner props are checked in the reconciler.
|
|
549
|
-
o.$$typeof === _))
|
|
550
|
-
d = o.propTypes;
|
|
551
|
-
else
|
|
552
|
-
return;
|
|
553
|
-
if (d) {
|
|
554
|
-
var y = X(o);
|
|
555
|
-
pe(d, e.props, "prop", y, e);
|
|
556
|
-
} else if (o.PropTypes !== void 0 && !Ze) {
|
|
557
|
-
Ze = !0;
|
|
558
|
-
var T = X(o);
|
|
559
|
-
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
560
|
-
}
|
|
561
|
-
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && A("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 o = Object.keys(e.props), d = 0; d < o.length; d++) {
|
|
567
|
-
var y = o[d];
|
|
568
|
-
if (y !== "children" && y !== "key") {
|
|
569
|
-
ve(e), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ve(null);
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
e.ref !== null && (ve(e), A("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
var mt = {};
|
|
577
|
-
function gt(e, o, d, y, T, S) {
|
|
578
|
-
{
|
|
579
|
-
var w = ue(e);
|
|
580
|
-
if (!w) {
|
|
581
|
-
var x = "";
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " 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 ? x += N : x += dt();
|
|
585
|
-
var D;
|
|
586
|
-
e === null ? D = "null" : Ee(e) ? D = "array" : e !== void 0 && e.$$typeof === n ? (D = "<" + (X(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
587
|
-
}
|
|
588
|
-
var P = en(e, o, d, T, S);
|
|
589
|
-
if (P == null)
|
|
590
|
-
return P;
|
|
591
|
-
if (w) {
|
|
592
|
-
var G = o.children;
|
|
593
|
-
if (G !== void 0)
|
|
594
|
-
if (y)
|
|
595
|
-
if (Ee(G)) {
|
|
596
|
-
for (var me = 0; me < G.length; me++)
|
|
597
|
-
vt(G[me], e);
|
|
598
|
-
Object.freeze && Object.freeze(G);
|
|
599
|
-
} else
|
|
600
|
-
A("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
|
-
vt(G, e);
|
|
603
|
-
}
|
|
604
|
-
if (Z.call(o, "key")) {
|
|
605
|
-
var ce = X(e), U = Object.keys(o).filter(function(fn) {
|
|
606
|
-
return fn !== "key";
|
|
607
|
-
}), Ke = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
-
if (!mt[ce + Ke]) {
|
|
609
|
-
var un = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
A(`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} />`, Ke, ce, un, ce), mt[ce + Ke] = !0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return e === i ? an(P) : rn(P), P;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
function on(e, o, d) {
|
|
622
|
-
return gt(e, o, d, !0);
|
|
623
|
-
}
|
|
624
|
-
function sn(e, o, d) {
|
|
625
|
-
return gt(e, o, d, !1);
|
|
626
|
-
}
|
|
627
|
-
var cn = sn, ln = on;
|
|
628
|
-
Te.Fragment = i, Te.jsx = cn, Te.jsxs = ln;
|
|
629
|
-
}()), Te;
|
|
630
|
-
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? qe.exports = Cn() : qe.exports = bn();
|
|
632
|
-
var s = qe.exports;
|
|
633
|
-
function le(...t) {
|
|
634
|
-
return t.flat().filter(Boolean).map((n) => typeof n == "string" ? n : typeof n == "object" && !Array.isArray(n) && n !== null ? Object.entries(n).filter(([r, i]) => i).map(([r]) => r).join(" ") : "").join(" ").trim();
|
|
635
|
-
}
|
|
636
|
-
function xn(t) {
|
|
637
|
-
const n = t || "collapsed", [r, i] = Ne(n);
|
|
638
|
-
q(() => {
|
|
639
|
-
t !== void 0 && i(t);
|
|
640
|
-
}, [t]);
|
|
641
|
-
const a = r !== "collapsed" && r !== "compact", c = V(() => {
|
|
642
|
-
i("expanded");
|
|
643
|
-
}, []), l = V(() => {
|
|
644
|
-
i(n);
|
|
645
|
-
}, [n]), h = V(() => {
|
|
646
|
-
i(
|
|
647
|
-
(u) => u === "collapsed" ? "compact" : "collapsed"
|
|
648
|
-
);
|
|
649
|
-
}, []);
|
|
650
|
-
return {
|
|
651
|
-
state: r,
|
|
652
|
-
initialState: n,
|
|
653
|
-
setState: i,
|
|
654
|
-
isOpen: a,
|
|
655
|
-
open: c,
|
|
656
|
-
close: l,
|
|
657
|
-
toggle: h
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
function wn({
|
|
661
|
-
value: t,
|
|
662
|
-
setValue: n,
|
|
663
|
-
onSubmit: r,
|
|
664
|
-
isProcessing: i
|
|
665
|
-
}) {
|
|
666
|
-
const a = mn(null), c = Xe(() => {
|
|
667
|
-
n(""), a.current && (a.current.style.height = "auto", setTimeout(() => {
|
|
668
|
-
var u;
|
|
669
|
-
(u = a.current) == null || u.focus();
|
|
670
|
-
}, 100));
|
|
671
|
-
}, [n]), l = Xe(() => {
|
|
672
|
-
const u = a.current;
|
|
673
|
-
if (!u)
|
|
674
|
-
return;
|
|
675
|
-
u.style.height = "auto";
|
|
676
|
-
const f = u.scrollHeight, v = 40, _ = 200;
|
|
677
|
-
u.style.height = `${Math.min(
|
|
678
|
-
Math.max(f, v),
|
|
679
|
-
_
|
|
680
|
-
)}px`;
|
|
681
|
-
}, []), h = Xe(
|
|
682
|
-
(u) => {
|
|
683
|
-
u.key === "Enter" && !u.shiftKey && !i && t.trim() && (u.preventDefault(), r(t.trim()), c());
|
|
684
|
-
},
|
|
685
|
-
[t, i, r, c]
|
|
686
|
-
);
|
|
687
|
-
return gn(() => {
|
|
688
|
-
l();
|
|
689
|
-
}, [t, l]), {
|
|
690
|
-
value: t,
|
|
691
|
-
setValue: n,
|
|
692
|
-
clear: c,
|
|
693
|
-
textareaRef: a,
|
|
694
|
-
handleKeyDown: h,
|
|
695
|
-
adjustHeight: l
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
var Qe, Ft, Se, Mt;
|
|
699
|
-
Qe = {
|
|
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
|
-
Ft = ["(", "?"];
|
|
719
|
-
Se = {
|
|
720
|
-
")": ["("],
|
|
721
|
-
":": ["?", "?:"]
|
|
722
|
-
};
|
|
723
|
-
Mt = /<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;
|
|
724
|
-
function En(t) {
|
|
725
|
-
for (var n = [], r = [], i, a, c, l; i = t.match(Mt); ) {
|
|
726
|
-
for (a = i[0], c = t.substr(0, i.index).trim(), c && n.push(c); l = r.pop(); ) {
|
|
727
|
-
if (Se[a]) {
|
|
728
|
-
if (Se[a][0] === l) {
|
|
729
|
-
a = Se[a][1] || a;
|
|
730
|
-
break;
|
|
731
|
-
}
|
|
732
|
-
} else if (Ft.indexOf(l) >= 0 || Qe[l] < Qe[a]) {
|
|
733
|
-
r.push(l);
|
|
734
|
-
break;
|
|
735
|
-
}
|
|
736
|
-
n.push(l);
|
|
737
|
-
}
|
|
738
|
-
Se[a] || r.push(a), t = t.substr(i.index + a.length);
|
|
739
|
-
}
|
|
740
|
-
return t = t.trim(), t && n.push(t), n.concat(r.reverse());
|
|
741
|
-
}
|
|
742
|
-
var Rn = {
|
|
743
|
-
"!": function(t) {
|
|
744
|
-
return !t;
|
|
745
|
-
},
|
|
746
|
-
"*": function(t, n) {
|
|
747
|
-
return t * n;
|
|
748
|
-
},
|
|
749
|
-
"/": function(t, n) {
|
|
750
|
-
return t / n;
|
|
751
|
-
},
|
|
752
|
-
"%": function(t, n) {
|
|
753
|
-
return t % n;
|
|
754
|
-
},
|
|
755
|
-
"+": function(t, n) {
|
|
756
|
-
return t + n;
|
|
757
|
-
},
|
|
758
|
-
"-": function(t, n) {
|
|
759
|
-
return t - n;
|
|
760
|
-
},
|
|
761
|
-
"<": function(t, n) {
|
|
762
|
-
return t < n;
|
|
763
|
-
},
|
|
764
|
-
"<=": function(t, n) {
|
|
765
|
-
return t <= n;
|
|
766
|
-
},
|
|
767
|
-
">": function(t, n) {
|
|
768
|
-
return t > n;
|
|
769
|
-
},
|
|
770
|
-
">=": function(t, n) {
|
|
771
|
-
return t >= n;
|
|
772
|
-
},
|
|
773
|
-
"==": function(t, n) {
|
|
774
|
-
return t === n;
|
|
775
|
-
},
|
|
776
|
-
"!=": function(t, n) {
|
|
777
|
-
return t !== n;
|
|
778
|
-
},
|
|
779
|
-
"&&": function(t, n) {
|
|
780
|
-
return t && n;
|
|
781
|
-
},
|
|
782
|
-
"||": function(t, n) {
|
|
783
|
-
return t || n;
|
|
784
|
-
},
|
|
785
|
-
"?:": function(t, n, r) {
|
|
786
|
-
if (t)
|
|
787
|
-
throw n;
|
|
788
|
-
return r;
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
function Tn(t, n) {
|
|
792
|
-
var r = [], i, a, c, l, h, u;
|
|
793
|
-
for (i = 0; i < t.length; i++) {
|
|
794
|
-
if (h = t[i], l = Rn[h], l) {
|
|
795
|
-
for (a = l.length, c = Array(a); a--; )
|
|
796
|
-
c[a] = r.pop();
|
|
797
|
-
try {
|
|
798
|
-
u = l.apply(null, c);
|
|
799
|
-
} catch (f) {
|
|
800
|
-
return f;
|
|
801
|
-
}
|
|
802
|
-
} else n.hasOwnProperty(h) ? u = n[h] : u = +h;
|
|
803
|
-
r.push(u);
|
|
804
|
-
}
|
|
805
|
-
return r[0];
|
|
806
|
-
}
|
|
807
|
-
function jn(t) {
|
|
808
|
-
var n = En(t);
|
|
809
|
-
return function(r) {
|
|
810
|
-
return Tn(n, r);
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function Ln(t) {
|
|
814
|
-
var n = jn(t);
|
|
815
|
-
return function(r) {
|
|
816
|
-
return +n({ n: r });
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
var xt = {
|
|
820
|
-
contextDelimiter: "",
|
|
821
|
-
onMissingKey: null
|
|
822
|
-
};
|
|
823
|
-
function Sn(t) {
|
|
824
|
-
var n, r, i;
|
|
825
|
-
for (n = t.split(";"), r = 0; r < n.length; r++)
|
|
826
|
-
if (i = n[r].trim(), i.indexOf("plural=") === 0)
|
|
827
|
-
return i.substr(7);
|
|
828
|
-
}
|
|
829
|
-
function nt(t, n) {
|
|
830
|
-
var r;
|
|
831
|
-
this.data = t, this.pluralForms = {}, this.options = {};
|
|
832
|
-
for (r in xt)
|
|
833
|
-
this.options[r] = n !== void 0 && r in n ? n[r] : xt[r];
|
|
834
|
-
}
|
|
835
|
-
nt.prototype.getPluralForm = function(t, n) {
|
|
836
|
-
var r = this.pluralForms[t], i, a, c;
|
|
837
|
-
return r || (i = this.data[t][""], c = 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 c != "function" && (a = Sn(
|
|
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
|
-
), c = Ln(a)), r = this.pluralForms[t] = c), r(n);
|
|
846
|
-
};
|
|
847
|
-
nt.prototype.dcnpgettext = function(t, n, r, i, a) {
|
|
848
|
-
var c, l, h;
|
|
849
|
-
return a === void 0 ? c = 0 : c = this.getPluralForm(t, a), l = r, n && (l = n + this.options.contextDelimiter + r), h = this.data[t][l], h && h[c] ? h[c] : (this.options.onMissingKey && this.options.onMissingKey(r, t), c === 0 ? r : i);
|
|
850
|
-
};
|
|
851
|
-
const wt = {
|
|
852
|
-
"": {
|
|
853
|
-
plural_forms(t) {
|
|
854
|
-
return t === 1 ? 0 : 1;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}, An = /^i18n\.(n?gettext|has_translation)(_|$)/, On = (t, n, r) => {
|
|
858
|
-
const i = new nt({}), a = /* @__PURE__ */ new Set(), c = () => {
|
|
859
|
-
a.forEach((p) => p());
|
|
860
|
-
}, l = (p) => (a.add(p), () => a.delete(p)), h = (p = "default") => i.data[p], u = (p, m = "default") => {
|
|
861
|
-
var b;
|
|
862
|
-
i.data[m] = {
|
|
863
|
-
...i.data[m],
|
|
864
|
-
...p
|
|
865
|
-
}, i.data[m][""] = {
|
|
866
|
-
...wt[""],
|
|
867
|
-
...(b = i.data[m]) == null ? void 0 : b[""]
|
|
868
|
-
}, delete i.pluralForms[m];
|
|
869
|
-
}, f = (p, m) => {
|
|
870
|
-
u(p, m), c();
|
|
871
|
-
}, v = (p, m = "default") => {
|
|
872
|
-
var b;
|
|
873
|
-
i.data[m] = {
|
|
874
|
-
...i.data[m],
|
|
875
|
-
...p,
|
|
876
|
-
// Populate default domain configuration (supported locale date which omits
|
|
877
|
-
// a plural forms expression).
|
|
878
|
-
"": {
|
|
879
|
-
...wt[""],
|
|
880
|
-
...(b = i.data[m]) == null ? void 0 : b[""],
|
|
881
|
-
...p == null ? void 0 : p[""]
|
|
882
|
-
}
|
|
883
|
-
}, delete i.pluralForms[m], c();
|
|
884
|
-
}, _ = (p, m) => {
|
|
885
|
-
i.data = {}, i.pluralForms = {}, f(p, m);
|
|
886
|
-
}, C = (p = "default", m, b, L, O) => (i.data[p] || u(void 0, p), i.dcnpgettext(p, m, b, L, O)), j = (p) => p || "default", I = (p, m) => {
|
|
887
|
-
let b = C(m, void 0, p);
|
|
888
|
-
return r ? (b = r.applyFilters("i18n.gettext", b, p, m), r.applyFilters("i18n.gettext_" + j(m), b, p, m)) : b;
|
|
889
|
-
}, M = (p, m, b) => {
|
|
890
|
-
let L = C(b, m, p);
|
|
891
|
-
return r ? (L = r.applyFilters("i18n.gettext_with_context", L, p, m, b), r.applyFilters("i18n.gettext_with_context_" + j(b), L, p, m, b)) : L;
|
|
892
|
-
}, B = (p, m, b, L) => {
|
|
893
|
-
let O = C(L, void 0, p, m, b);
|
|
894
|
-
return r ? (O = r.applyFilters("i18n.ngettext", O, p, m, b, L), r.applyFilters("i18n.ngettext_" + j(L), O, p, m, b, L)) : O;
|
|
895
|
-
}, $ = (p, m, b, L, O) => {
|
|
896
|
-
let R = C(O, L, p, m, b);
|
|
897
|
-
return r ? (R = r.applyFilters("i18n.ngettext_with_context", R, p, m, b, L, O), r.applyFilters("i18n.ngettext_with_context_" + j(O), R, p, m, b, L, O)) : R;
|
|
898
|
-
}, A = () => M("ltr", "text direction") === "rtl", g = (p, m, b) => {
|
|
899
|
-
var R, ue;
|
|
900
|
-
const L = m ? m + "" + p : p;
|
|
901
|
-
let O = !!((ue = (R = i.data) == null ? void 0 : R[b ?? "default"]) != null && ue[L]);
|
|
902
|
-
return r && (O = r.applyFilters("i18n.has_translation", O, p, m, b), O = r.applyFilters("i18n.has_translation_" + j(b), O, p, m, b)), O;
|
|
903
|
-
};
|
|
904
|
-
if (r) {
|
|
905
|
-
const p = (m) => {
|
|
906
|
-
An.test(m) && c();
|
|
907
|
-
};
|
|
908
|
-
r.addAction("hookAdded", "core/i18n", p), r.addAction("hookRemoved", "core/i18n", p);
|
|
909
|
-
}
|
|
910
|
-
return {
|
|
911
|
-
getLocaleData: h,
|
|
912
|
-
setLocaleData: f,
|
|
913
|
-
addLocaleData: v,
|
|
914
|
-
resetLocaleData: _,
|
|
915
|
-
subscribe: l,
|
|
916
|
-
__: I,
|
|
917
|
-
_x: M,
|
|
918
|
-
_n: B,
|
|
919
|
-
_nx: $,
|
|
920
|
-
isRTL: A,
|
|
921
|
-
hasTranslation: g
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
function kt(t) {
|
|
925
|
-
return typeof t != "string" || t === "" ? (console.error("The namespace must be a non-empty string."), !1) : /^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t) ? !0 : (console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."), !1);
|
|
926
|
-
}
|
|
927
|
-
function rt(t) {
|
|
928
|
-
return typeof t != "string" || t === "" ? (console.error("The hook name must be a non-empty string."), !1) : /^__/.test(t) ? (console.error("The hook name cannot begin with `__`."), !1) : /^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t) ? !0 : (console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."), !1);
|
|
929
|
-
}
|
|
930
|
-
function Et(t, n) {
|
|
931
|
-
return function(i, a, c, l = 10) {
|
|
932
|
-
const h = t[n];
|
|
933
|
-
if (!rt(i) || !kt(a))
|
|
934
|
-
return;
|
|
935
|
-
if (typeof c != "function") {
|
|
936
|
-
console.error("The hook callback must be a function.");
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
if (typeof l != "number") {
|
|
940
|
-
console.error("If specified, the hook priority must be a number.");
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
const u = {
|
|
944
|
-
callback: c,
|
|
945
|
-
priority: l,
|
|
946
|
-
namespace: a
|
|
947
|
-
};
|
|
948
|
-
if (h[i]) {
|
|
949
|
-
const f = h[i].handlers;
|
|
950
|
-
let v;
|
|
951
|
-
for (v = f.length; v > 0 && !(l >= f[v - 1].priority); v--)
|
|
952
|
-
;
|
|
953
|
-
v === f.length ? f[v] = u : f.splice(v, 0, u), h.__current.forEach((_) => {
|
|
954
|
-
_.name === i && _.currentIndex >= v && _.currentIndex++;
|
|
955
|
-
});
|
|
956
|
-
} else
|
|
957
|
-
h[i] = {
|
|
958
|
-
handlers: [u],
|
|
959
|
-
runs: 0
|
|
960
|
-
};
|
|
961
|
-
i !== "hookAdded" && t.doAction("hookAdded", i, a, c, l);
|
|
962
|
-
};
|
|
963
|
-
}
|
|
964
|
-
function Me(t, n, r = !1) {
|
|
965
|
-
return function(a, c) {
|
|
966
|
-
const l = t[n];
|
|
967
|
-
if (!rt(a) || !r && !kt(c))
|
|
968
|
-
return;
|
|
969
|
-
if (!l[a])
|
|
970
|
-
return 0;
|
|
971
|
-
let h = 0;
|
|
972
|
-
if (r)
|
|
973
|
-
h = l[a].handlers.length, l[a] = {
|
|
974
|
-
runs: l[a].runs,
|
|
975
|
-
handlers: []
|
|
976
|
-
};
|
|
977
|
-
else {
|
|
978
|
-
const u = l[a].handlers;
|
|
979
|
-
for (let f = u.length - 1; f >= 0; f--)
|
|
980
|
-
u[f].namespace === c && (u.splice(f, 1), h++, l.__current.forEach((v) => {
|
|
981
|
-
v.name === a && v.currentIndex >= f && v.currentIndex--;
|
|
982
|
-
}));
|
|
983
|
-
}
|
|
984
|
-
return a !== "hookRemoved" && t.doAction("hookRemoved", a, c), h;
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
function Rt(t, n) {
|
|
988
|
-
return function(i, a) {
|
|
989
|
-
const c = t[n];
|
|
990
|
-
return typeof a < "u" ? i in c && c[i].handlers.some((l) => l.namespace === a) : i in c;
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
function ke(t, n, r, i) {
|
|
994
|
-
return function(c, ...l) {
|
|
995
|
-
const h = t[n];
|
|
996
|
-
h[c] || (h[c] = {
|
|
997
|
-
handlers: [],
|
|
998
|
-
runs: 0
|
|
999
|
-
}), h[c].runs++;
|
|
1000
|
-
const u = h[c].handlers;
|
|
1001
|
-
if (process.env.NODE_ENV !== "production" && c !== "hookAdded" && h.all && u.push(...h.all.handlers), !u || !u.length)
|
|
1002
|
-
return r ? l[0] : void 0;
|
|
1003
|
-
const f = {
|
|
1004
|
-
name: c,
|
|
1005
|
-
currentIndex: 0
|
|
1006
|
-
};
|
|
1007
|
-
async function v() {
|
|
1008
|
-
try {
|
|
1009
|
-
h.__current.add(f);
|
|
1010
|
-
let C = r ? l[0] : void 0;
|
|
1011
|
-
for (; f.currentIndex < u.length; )
|
|
1012
|
-
C = await u[f.currentIndex].callback.apply(null, l), r && (l[0] = C), f.currentIndex++;
|
|
1013
|
-
return r ? C : void 0;
|
|
1014
|
-
} finally {
|
|
1015
|
-
h.__current.delete(f);
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
function _() {
|
|
1019
|
-
try {
|
|
1020
|
-
h.__current.add(f);
|
|
1021
|
-
let C = r ? l[0] : void 0;
|
|
1022
|
-
for (; f.currentIndex < u.length; )
|
|
1023
|
-
C = u[f.currentIndex].callback.apply(null, l), r && (l[0] = C), f.currentIndex++;
|
|
1024
|
-
return r ? C : void 0;
|
|
1025
|
-
} finally {
|
|
1026
|
-
h.__current.delete(f);
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return (i ? v : _)();
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
function Tt(t, n) {
|
|
1033
|
-
return function() {
|
|
1034
|
-
var l;
|
|
1035
|
-
var i;
|
|
1036
|
-
const a = t[n];
|
|
1037
|
-
return (i = (l = Array.from(a.__current).at(-1)) == null ? void 0 : l.name) !== null && i !== void 0 ? i : null;
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
function jt(t, n) {
|
|
1041
|
-
return function(i) {
|
|
1042
|
-
const a = t[n];
|
|
1043
|
-
return typeof i > "u" ? a.__current.size > 0 : Array.from(a.__current).some((c) => c.name === i);
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
function Lt(t, n) {
|
|
1047
|
-
return function(i) {
|
|
1048
|
-
const a = t[n];
|
|
1049
|
-
if (rt(i))
|
|
1050
|
-
return a[i] && a[i].runs ? a[i].runs : 0;
|
|
1051
|
-
};
|
|
1052
|
-
}
|
|
1053
|
-
class Dn {
|
|
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 = Et(this, "actions"), this.addFilter = Et(this, "filters"), this.removeAction = Me(this, "actions"), this.removeFilter = Me(this, "filters"), this.hasAction = Rt(this, "actions"), this.hasFilter = Rt(this, "filters"), this.removeAllActions = Me(this, "actions", !0), this.removeAllFilters = Me(this, "filters", !0), this.doAction = ke(this, "actions", !1, !1), this.doActionAsync = ke(this, "actions", !1, !0), this.applyFilters = ke(this, "filters", !0, !1), this.applyFiltersAsync = ke(this, "filters", !0, !0), this.currentAction = Tt(this, "actions"), this.currentFilter = Tt(this, "filters"), this.doingAction = jt(this, "actions"), this.doingFilter = jt(this, "filters"), this.didAction = Lt(this, "actions"), this.didFilter = Lt(this, "filters");
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
function In() {
|
|
1059
|
-
return new Dn();
|
|
1060
|
-
}
|
|
1061
|
-
const $t = In(), {
|
|
1062
|
-
addAction: Ur,
|
|
1063
|
-
addFilter: Zr,
|
|
1064
|
-
removeAction: Gr,
|
|
1065
|
-
removeFilter: Kr,
|
|
1066
|
-
hasAction: Xr,
|
|
1067
|
-
hasFilter: zr,
|
|
1068
|
-
removeAllActions: Jr,
|
|
1069
|
-
removeAllFilters: qr,
|
|
1070
|
-
doAction: Qr,
|
|
1071
|
-
doActionAsync: ei,
|
|
1072
|
-
applyFilters: ti,
|
|
1073
|
-
applyFiltersAsync: ni,
|
|
1074
|
-
currentAction: ri,
|
|
1075
|
-
currentFilter: ii,
|
|
1076
|
-
doingAction: ai,
|
|
1077
|
-
doingFilter: oi,
|
|
1078
|
-
didAction: si,
|
|
1079
|
-
didFilter: ci,
|
|
1080
|
-
actions: li,
|
|
1081
|
-
filters: ui
|
|
1082
|
-
} = $t, F = On(void 0, void 0, $t);
|
|
1083
|
-
F.getLocaleData.bind(F);
|
|
1084
|
-
F.setLocaleData.bind(F);
|
|
1085
|
-
F.resetLocaleData.bind(F);
|
|
1086
|
-
F.subscribe.bind(F);
|
|
1087
|
-
const _e = 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 Ht = _e("Ask anything", "a8c-agenttic"), et = {
|
|
1094
|
-
type: "spring",
|
|
1095
|
-
stiffness: 300,
|
|
1096
|
-
damping: 30
|
|
1097
|
-
}, Pn = {
|
|
1098
|
-
type: "spring",
|
|
1099
|
-
stiffness: 400,
|
|
1100
|
-
damping: 35
|
|
1101
|
-
}, it = {
|
|
1102
|
-
type: "spring",
|
|
1103
|
-
damping: 40,
|
|
1104
|
-
stiffness: 500,
|
|
1105
|
-
mass: 0.8
|
|
1106
|
-
}, Ve = {
|
|
1107
|
-
...it,
|
|
1108
|
-
stiffness: 1e3,
|
|
1109
|
-
damping: 90
|
|
1110
|
-
}, at = {
|
|
1111
|
-
type: "spring",
|
|
1112
|
-
damping: 40,
|
|
1113
|
-
stiffness: 400,
|
|
1114
|
-
mass: 0.8
|
|
1115
|
-
}, Nt = {
|
|
1116
|
-
hidden: {
|
|
1117
|
-
opacity: 0
|
|
1118
|
-
},
|
|
1119
|
-
visible: {
|
|
1120
|
-
opacity: 1,
|
|
1121
|
-
transition: et
|
|
1122
|
-
},
|
|
1123
|
-
exit: {
|
|
1124
|
-
opacity: 0,
|
|
1125
|
-
transition: { ...et, duration: 0.1 }
|
|
1126
|
-
}
|
|
1127
|
-
}, Fn = () => {
|
|
1128
|
-
if (typeof window > "u")
|
|
1129
|
-
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
1130
|
-
const t = 20;
|
|
1131
|
-
return {
|
|
1132
|
-
left: t,
|
|
1133
|
-
right: window.innerWidth - 400 - t,
|
|
1134
|
-
// Assuming max width of 400px
|
|
1135
|
-
top: t,
|
|
1136
|
-
bottom: window.innerHeight - 60 - t
|
|
1137
|
-
// Assuming collapsed height of 60px
|
|
1138
|
-
};
|
|
1139
|
-
}, Mn = {
|
|
1140
|
-
"0%": { backgroundPosition: "-200% 0" },
|
|
1141
|
-
"100%": { backgroundPosition: "200% 0" }
|
|
1142
|
-
}, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1143
|
-
__proto__: null,
|
|
1144
|
-
fadeVariants: Nt,
|
|
1145
|
-
fastSpring: it,
|
|
1146
|
-
fastSpringWithDelay: Ve,
|
|
1147
|
-
getDragConstraints: Fn,
|
|
1148
|
-
layoutTransition: Pn,
|
|
1149
|
-
morphSpring: at,
|
|
1150
|
-
springConfig: et,
|
|
1151
|
-
thinkingGradientKeyframes: Mn
|
|
1152
|
-
}, Symbol.toStringTag, { value: "Module" })), kn = "button-module_button", $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", $e = {
|
|
1153
|
-
button: kn,
|
|
1154
|
-
primary: $n,
|
|
1155
|
-
ghost: Hn,
|
|
1156
|
-
outline: Nn,
|
|
1157
|
-
link: Vn,
|
|
1158
|
-
icon: Wn,
|
|
1159
|
-
sm: Bn,
|
|
1160
|
-
withTextAndIcon: Yn
|
|
1161
|
-
}, Q = Pt.forwardRef(
|
|
1162
|
-
function({
|
|
1163
|
-
className: n,
|
|
1164
|
-
variant: r = "primary",
|
|
1165
|
-
size: i,
|
|
1166
|
-
icon: a,
|
|
1167
|
-
children: c,
|
|
1168
|
-
asChild: l = !1,
|
|
1169
|
-
...h
|
|
1170
|
-
}, u) {
|
|
1171
|
-
const f = l ? yn : "button", v = !!a, _ = i || (v && !c ? "icon" : void 0);
|
|
1172
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1173
|
-
f,
|
|
1174
|
-
{
|
|
1175
|
-
ref: u,
|
|
1176
|
-
"data-slot": "button",
|
|
1177
|
-
className: le(
|
|
1178
|
-
$e.button,
|
|
1179
|
-
$e[r],
|
|
1180
|
-
_ && $e[_],
|
|
1181
|
-
v && c ? $e.withTextAndIcon : void 0,
|
|
1182
|
-
n
|
|
1183
|
-
),
|
|
1184
|
-
...h,
|
|
1185
|
-
children: [
|
|
1186
|
-
a,
|
|
1187
|
-
c
|
|
1188
|
-
]
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
1191
|
-
}
|
|
1192
|
-
);
|
|
1193
|
-
Q.displayName = "Button";
|
|
1194
|
-
function Vt({ className: t, size: n = 24 }) {
|
|
1195
|
-
return /* @__PURE__ */ s.jsx(
|
|
1196
|
-
"svg",
|
|
1197
|
-
{
|
|
1198
|
-
className: t,
|
|
1199
|
-
width: n,
|
|
1200
|
-
height: n,
|
|
1201
|
-
viewBox: "0 0 24 24",
|
|
1202
|
-
fill: "none",
|
|
1203
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1204
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1205
|
-
"path",
|
|
1206
|
-
{
|
|
1207
|
-
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",
|
|
1208
|
-
fill: "currentColor"
|
|
1209
|
-
}
|
|
1210
|
-
)
|
|
1211
|
-
}
|
|
1212
|
-
);
|
|
1213
|
-
}
|
|
1214
|
-
const Un = "CollapsedView-module_button", Zn = {
|
|
1215
|
-
button: Un
|
|
1216
|
-
};
|
|
1217
|
-
function Gn({
|
|
1218
|
-
icon: t = /* @__PURE__ */ s.jsx(Vt, { size: 36 }),
|
|
1219
|
-
onClick: n,
|
|
1220
|
-
onHover: r,
|
|
1221
|
-
focusOnMount: i = !1
|
|
1222
|
-
}) {
|
|
1223
|
-
const a = W(null), c = W(i);
|
|
1224
|
-
return q(() => {
|
|
1225
|
-
c.current && a.current && a.current.focus(), c.current = !1;
|
|
1226
|
-
}, [c, a]), /* @__PURE__ */ s.jsx(
|
|
1227
|
-
ae.div,
|
|
1228
|
-
{
|
|
1229
|
-
"data-slot": "collapsed-view",
|
|
1230
|
-
layout: "preserve-aspect",
|
|
1231
|
-
layoutId: "collapsed-button",
|
|
1232
|
-
initial: {
|
|
1233
|
-
opacity: 0,
|
|
1234
|
-
scale: 0.5
|
|
1235
|
-
},
|
|
1236
|
-
animate: {
|
|
1237
|
-
opacity: 1,
|
|
1238
|
-
scale: 1,
|
|
1239
|
-
transition: {
|
|
1240
|
-
...at,
|
|
1241
|
-
delay: 0.2
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
exit: {
|
|
1245
|
-
opacity: 0,
|
|
1246
|
-
scale: 0,
|
|
1247
|
-
transition: {
|
|
1248
|
-
duration: 0.15
|
|
1249
|
-
}
|
|
1250
|
-
},
|
|
1251
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1252
|
-
Q,
|
|
1253
|
-
{
|
|
1254
|
-
ref: a,
|
|
1255
|
-
onClick: n,
|
|
1256
|
-
onMouseEnter: r,
|
|
1257
|
-
variant: "link",
|
|
1258
|
-
className: Zn.button,
|
|
1259
|
-
icon: t,
|
|
1260
|
-
"aria-label": _e("Open chat", "a8c-agenttic")
|
|
1261
|
-
}
|
|
1262
|
-
)
|
|
1263
|
-
}
|
|
1264
|
-
);
|
|
1265
|
-
}
|
|
1266
|
-
const Kn = "Textarea-module_textarea", Xn = {
|
|
1267
|
-
textarea: Kn
|
|
1268
|
-
}, Wt = Pt.forwardRef(
|
|
1269
|
-
({ className: t, ...n }, r) => /* @__PURE__ */ s.jsx(
|
|
1270
|
-
"textarea",
|
|
1271
|
-
{
|
|
1272
|
-
"data-slot": "textarea",
|
|
1273
|
-
className: Xn.textarea,
|
|
1274
|
-
ref: r,
|
|
1275
|
-
...n
|
|
1276
|
-
}
|
|
1277
|
-
)
|
|
1278
|
-
);
|
|
1279
|
-
Wt.displayName = "Textarea";
|
|
1280
|
-
function zn({ className: t, size: n = 24 }) {
|
|
1281
|
-
return /* @__PURE__ */ s.jsx(
|
|
1282
|
-
"svg",
|
|
1283
|
-
{
|
|
1284
|
-
width: n,
|
|
1285
|
-
height: n,
|
|
1286
|
-
viewBox: "0 0 24 24",
|
|
1287
|
-
fill: "none",
|
|
1288
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1289
|
-
className: t,
|
|
1290
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1291
|
-
"path",
|
|
1292
|
-
{
|
|
1293
|
-
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",
|
|
1294
|
-
fill: "currentColor"
|
|
1295
|
-
}
|
|
1296
|
-
)
|
|
1297
|
-
}
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
function Jn({ className: t, size: n = 24 }) {
|
|
1301
|
-
return /* @__PURE__ */ s.jsx(
|
|
1302
|
-
"svg",
|
|
1303
|
-
{
|
|
1304
|
-
width: n,
|
|
1305
|
-
height: n,
|
|
1306
|
-
viewBox: "0 0 24 24",
|
|
1307
|
-
fill: "none",
|
|
1308
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1309
|
-
className: t,
|
|
1310
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1311
|
-
"rect",
|
|
1312
|
-
{
|
|
1313
|
-
x: "7",
|
|
1314
|
-
y: "7",
|
|
1315
|
-
width: "10",
|
|
1316
|
-
height: "10",
|
|
1317
|
-
rx: "2",
|
|
1318
|
-
fill: "currentColor"
|
|
1319
|
-
}
|
|
1320
|
-
)
|
|
1321
|
-
}
|
|
1322
|
-
);
|
|
1323
|
-
}
|
|
1324
|
-
const qn = "ChatInput-module_container", Qn = "ChatInput-module_textareaContainer", er = "ChatInput-module_actions", tr = "ChatInput-module_button", ge = {
|
|
1325
|
-
container: qn,
|
|
1326
|
-
textareaContainer: Qn,
|
|
1327
|
-
actions: er,
|
|
1328
|
-
button: tr
|
|
1329
|
-
};
|
|
1330
|
-
function nr({ className: t, size: n = 24 }) {
|
|
1331
|
-
return /* @__PURE__ */ s.jsx(
|
|
1332
|
-
"svg",
|
|
1333
|
-
{
|
|
1334
|
-
className: t,
|
|
1335
|
-
width: n,
|
|
1336
|
-
height: n,
|
|
1337
|
-
viewBox: "0 0 24 24",
|
|
1338
|
-
fill: "none",
|
|
1339
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1340
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1341
|
-
"path",
|
|
1342
|
-
{
|
|
1343
|
-
fillRule: "evenodd",
|
|
1344
|
-
clipRule: "evenodd",
|
|
1345
|
-
d: "M18.0045 13.4451L12 7.9864L5.9955 13.4451L7.00451 14.5549L12 10.0136L16.9955 14.5549L18.0045 13.4451Z",
|
|
1346
|
-
fill: "currentColor"
|
|
1347
|
-
}
|
|
1348
|
-
)
|
|
1349
|
-
}
|
|
1350
|
-
);
|
|
1351
|
-
}
|
|
1352
|
-
function Bt({
|
|
1353
|
-
value: t,
|
|
1354
|
-
onChange: n,
|
|
1355
|
-
onSubmit: r,
|
|
1356
|
-
onKeyDown: i,
|
|
1357
|
-
textareaRef: a,
|
|
1358
|
-
placeholder: c = Ht,
|
|
1359
|
-
isProcessing: l,
|
|
1360
|
-
onBlur: h,
|
|
1361
|
-
fromCompact: u = !1,
|
|
1362
|
-
onExpand: f,
|
|
1363
|
-
showExpandButton: v = !0,
|
|
1364
|
-
focusOnMount: _ = !1,
|
|
1365
|
-
customActions: C = [],
|
|
1366
|
-
actionOrder: j = "before-submit"
|
|
1367
|
-
}) {
|
|
1368
|
-
const I = dn(), M = t.trim() || l, B = c.endsWith("…") ? c : `${c}…`, $ = W(_);
|
|
1369
|
-
q(() => {
|
|
1370
|
-
$.current && a.current && a.current.focus(), $.current = !1;
|
|
1371
|
-
}, [$, a]);
|
|
1372
|
-
const A = () => C.map((m) => /* @__PURE__ */ s.jsx(
|
|
1373
|
-
Q,
|
|
1374
|
-
{
|
|
1375
|
-
className: m.className || ge.button,
|
|
1376
|
-
onClick: m.onClick,
|
|
1377
|
-
disabled: m.disabled,
|
|
1378
|
-
variant: m.variant || "ghost",
|
|
1379
|
-
icon: m.icon,
|
|
1380
|
-
"aria-label": m["aria-label"]
|
|
1381
|
-
},
|
|
1382
|
-
m.id
|
|
1383
|
-
)), g = () => v && f ? /* @__PURE__ */ s.jsx(
|
|
1384
|
-
Q,
|
|
1385
|
-
{
|
|
1386
|
-
className: ge.button,
|
|
1387
|
-
onClick: f,
|
|
1388
|
-
variant: "ghost",
|
|
1389
|
-
icon: /* @__PURE__ */ s.jsx(nr, {}),
|
|
1390
|
-
"aria-label": _e("Expand conversation", "a8c-agenttic")
|
|
1391
|
-
}
|
|
1392
|
-
) : null, p = () => /* @__PURE__ */ s.jsx(
|
|
1393
|
-
Q,
|
|
1394
|
-
{
|
|
1395
|
-
className: ge.button,
|
|
1396
|
-
onClick: r,
|
|
1397
|
-
disabled: !M,
|
|
1398
|
-
variant: "primary",
|
|
1399
|
-
icon: l ? /* @__PURE__ */ s.jsx(Jn, {}) : /* @__PURE__ */ s.jsx(zn, {}),
|
|
1400
|
-
"aria-label": _e(l ? "Stop processing" : "Send message", "a8c-agenttic")
|
|
1401
|
-
}
|
|
1402
|
-
);
|
|
1403
|
-
return /* @__PURE__ */ s.jsxs("div", { "data-slot": "chat-input", className: ge.container, children: [
|
|
1404
|
-
/* @__PURE__ */ s.jsx(
|
|
1405
|
-
ae.div,
|
|
1406
|
-
{
|
|
1407
|
-
className: ge.textareaContainer,
|
|
1408
|
-
initial: {
|
|
1409
|
-
opacity: 0
|
|
1410
|
-
},
|
|
1411
|
-
animate: {
|
|
1412
|
-
opacity: 1,
|
|
1413
|
-
scale: 1,
|
|
1414
|
-
transition: t.trim() ? { duration: 0 } : Ve
|
|
1415
|
-
},
|
|
1416
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1417
|
-
Wt,
|
|
1418
|
-
{
|
|
1419
|
-
id: I,
|
|
1420
|
-
ref: a,
|
|
1421
|
-
value: t,
|
|
1422
|
-
onChange: (m) => n(m.target.value),
|
|
1423
|
-
onKeyDown: i,
|
|
1424
|
-
onBlur: h,
|
|
1425
|
-
placeholder: B,
|
|
1426
|
-
rows: 1
|
|
1427
|
-
}
|
|
1428
|
-
)
|
|
1429
|
-
}
|
|
1430
|
-
),
|
|
1431
|
-
/* @__PURE__ */ s.jsxs(
|
|
1432
|
-
ae.div,
|
|
1433
|
-
{
|
|
1434
|
-
className: ge.actions,
|
|
1435
|
-
initial: {
|
|
1436
|
-
opacity: u ? 1 : 0,
|
|
1437
|
-
scale: u ? 1 : 0.5
|
|
1438
|
-
},
|
|
1439
|
-
animate: {
|
|
1440
|
-
opacity: 1,
|
|
1441
|
-
scale: 1,
|
|
1442
|
-
transition: t.trim() ? { duration: 0 } : it
|
|
1443
|
-
},
|
|
1444
|
-
children: [
|
|
1445
|
-
g(),
|
|
1446
|
-
j === "before-submit" && A(),
|
|
1447
|
-
p(),
|
|
1448
|
-
j === "after-submit" && A()
|
|
1449
|
-
]
|
|
1450
|
-
}
|
|
1451
|
-
)
|
|
1452
|
-
] });
|
|
1453
|
-
}
|
|
1454
|
-
function rr({
|
|
1455
|
-
value: t,
|
|
1456
|
-
onChange: n,
|
|
1457
|
-
onSubmit: r,
|
|
1458
|
-
onKeyDown: i,
|
|
1459
|
-
textareaRef: a,
|
|
1460
|
-
placeholder: c,
|
|
1461
|
-
isProcessing: l,
|
|
1462
|
-
onBlur: h,
|
|
1463
|
-
onExpand: u,
|
|
1464
|
-
showExpandButton: f = !0,
|
|
1465
|
-
focusOnMount: v = !1,
|
|
1466
|
-
customActions: _,
|
|
1467
|
-
actionOrder: C
|
|
1468
|
-
}) {
|
|
1469
|
-
return /* @__PURE__ */ s.jsx(
|
|
1470
|
-
Bt,
|
|
1471
|
-
{
|
|
1472
|
-
value: t,
|
|
1473
|
-
onChange: n,
|
|
1474
|
-
onSubmit: r,
|
|
1475
|
-
onKeyDown: i,
|
|
1476
|
-
textareaRef: a,
|
|
1477
|
-
placeholder: c,
|
|
1478
|
-
isProcessing: l,
|
|
1479
|
-
onBlur: h,
|
|
1480
|
-
onExpand: u,
|
|
1481
|
-
showExpandButton: f,
|
|
1482
|
-
focusOnMount: v,
|
|
1483
|
-
customActions: _,
|
|
1484
|
-
actionOrder: C
|
|
1485
|
-
}
|
|
1486
|
-
);
|
|
1487
|
-
}
|
|
1488
|
-
function Yt({ className: t, size: n = 24 }) {
|
|
1489
|
-
return /* @__PURE__ */ s.jsx(
|
|
1490
|
-
"svg",
|
|
1491
|
-
{
|
|
1492
|
-
className: t,
|
|
1493
|
-
width: n,
|
|
1494
|
-
height: n,
|
|
1495
|
-
viewBox: "0 0 24 24",
|
|
1496
|
-
fill: "none",
|
|
1497
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1498
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1499
|
-
"path",
|
|
1500
|
-
{
|
|
1501
|
-
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",
|
|
1502
|
-
fill: "currentColor"
|
|
1503
|
-
}
|
|
1504
|
-
)
|
|
1505
|
-
}
|
|
1506
|
-
);
|
|
1507
|
-
}
|
|
1508
|
-
const ir = "ChatHeader-module_container", ar = {
|
|
1509
|
-
container: ir
|
|
1510
|
-
};
|
|
1511
|
-
function or({ onClose: t }) {
|
|
1512
|
-
return /* @__PURE__ */ s.jsx(
|
|
1513
|
-
"div",
|
|
1514
|
-
{
|
|
1515
|
-
"data-slot": "chat-header",
|
|
1516
|
-
"data-draggable": "true",
|
|
1517
|
-
className: ar.container,
|
|
1518
|
-
children: t && /* @__PURE__ */ s.jsx(
|
|
1519
|
-
Q,
|
|
1520
|
-
{
|
|
1521
|
-
variant: "ghost",
|
|
1522
|
-
icon: /* @__PURE__ */ s.jsx(Yt, {}),
|
|
1523
|
-
onClick: t,
|
|
1524
|
-
"aria-label": _e("Close conversation", "a8c-agenttic")
|
|
1525
|
-
}
|
|
1526
|
-
)
|
|
1527
|
-
}
|
|
1528
|
-
);
|
|
1529
|
-
}
|
|
1530
|
-
const sr = "Notice-module_container", cr = "Notice-module_containerWithIcon", lr = "Notice-module_content", ur = "Notice-module_actions", fr = "Notice-module_icon", dr = "Notice-module_dismissible", ye = {
|
|
1531
|
-
container: sr,
|
|
1532
|
-
containerWithIcon: cr,
|
|
1533
|
-
content: lr,
|
|
1534
|
-
actions: ur,
|
|
1535
|
-
icon: fr,
|
|
1536
|
-
dismissible: dr
|
|
1537
|
-
};
|
|
1538
|
-
function hr({
|
|
1539
|
-
icon: t,
|
|
1540
|
-
message: n,
|
|
1541
|
-
action: r,
|
|
1542
|
-
dismissible: i = !0,
|
|
1543
|
-
onDismiss: a
|
|
1544
|
-
}) {
|
|
1545
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1546
|
-
"div",
|
|
1547
|
-
{
|
|
1548
|
-
"data-slot": "notice",
|
|
1549
|
-
className: le(ye.container, {
|
|
1550
|
-
[ye.containerWithIcon]: !!t
|
|
1551
|
-
}),
|
|
1552
|
-
children: [
|
|
1553
|
-
/* @__PURE__ */ s.jsxs("div", { className: ye.content, children: [
|
|
1554
|
-
t && /* @__PURE__ */ s.jsx("div", { className: ye.icon, children: t }),
|
|
1555
|
-
/* @__PURE__ */ s.jsx("span", { children: n })
|
|
1556
|
-
] }),
|
|
1557
|
-
/* @__PURE__ */ s.jsxs("div", { className: ye.actions, children: [
|
|
1558
|
-
r && /* @__PURE__ */ s.jsx(Q, { onClick: r.onClick, variant: "link", children: r.label }),
|
|
1559
|
-
i && a && /* @__PURE__ */ s.jsx(
|
|
1560
|
-
Q,
|
|
1561
|
-
{
|
|
1562
|
-
className: ye.dismissible,
|
|
1563
|
-
onClick: a,
|
|
1564
|
-
variant: "ghost",
|
|
1565
|
-
size: "sm",
|
|
1566
|
-
icon: /* @__PURE__ */ s.jsx(Yt, {})
|
|
1567
|
-
}
|
|
1568
|
-
)
|
|
1569
|
-
] })
|
|
1570
|
-
]
|
|
1571
|
-
}
|
|
1572
|
-
);
|
|
1573
|
-
}
|
|
1574
|
-
const pr = "Suggestions-module_container", St = {
|
|
1575
|
-
container: pr
|
|
1576
|
-
}, vr = ({
|
|
1577
|
-
className: t,
|
|
1578
|
-
suggestions: n,
|
|
1579
|
-
onSubmit: r
|
|
1580
|
-
}) => {
|
|
1581
|
-
const i = (a) => {
|
|
1582
|
-
r && r(a.prompt);
|
|
1583
|
-
};
|
|
1584
|
-
return !n || n.length === 0 ? null : /* @__PURE__ */ s.jsx(tt, { children: n && n.length > 0 && /* @__PURE__ */ s.jsx(
|
|
1585
|
-
ae.div,
|
|
1586
|
-
{
|
|
1587
|
-
className: le(St.container, t),
|
|
1588
|
-
initial: { opacity: 0, y: "-80%" },
|
|
1589
|
-
animate: { opacity: 1, y: "-100%" },
|
|
1590
|
-
exit: { opacity: 0, y: "-80%" },
|
|
1591
|
-
transition: Ve,
|
|
1592
|
-
children: n.map(
|
|
1593
|
-
(a, c) => /* @__PURE__ */ s.jsx(
|
|
1594
|
-
ae.div,
|
|
1595
|
-
{
|
|
1596
|
-
initial: { opacity: 0, y: 10 },
|
|
1597
|
-
animate: { opacity: 1, y: 0 },
|
|
1598
|
-
transition: {
|
|
1599
|
-
...Ve,
|
|
1600
|
-
delay: c * 0.05
|
|
1601
|
-
},
|
|
1602
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1603
|
-
Q,
|
|
1604
|
-
{
|
|
1605
|
-
onClick: () => i(a),
|
|
1606
|
-
variant: "outline",
|
|
1607
|
-
className: St.button,
|
|
1608
|
-
children: a.label
|
|
1609
|
-
}
|
|
1610
|
-
)
|
|
1611
|
-
},
|
|
1612
|
-
a.id
|
|
1613
|
-
)
|
|
1614
|
-
)
|
|
1615
|
-
}
|
|
1616
|
-
) });
|
|
1617
|
-
}, mr = "ChatFooter-module_container", gr = {
|
|
1618
|
-
container: mr
|
|
1619
|
-
};
|
|
1620
|
-
function yr({
|
|
1621
|
-
inputValue: t,
|
|
1622
|
-
onInputChange: n,
|
|
1623
|
-
onSubmit: r,
|
|
1624
|
-
onKeyDown: i,
|
|
1625
|
-
textareaRef: a,
|
|
1626
|
-
placeholder: c,
|
|
1627
|
-
isProcessing: l,
|
|
1628
|
-
fromCompact: h = !1,
|
|
1629
|
-
onExpand: u,
|
|
1630
|
-
notice: f,
|
|
1631
|
-
suggestions: v,
|
|
1632
|
-
clearSuggestions: _,
|
|
1633
|
-
focusOnMount: C,
|
|
1634
|
-
customActions: j,
|
|
1635
|
-
actionOrder: I
|
|
1636
|
-
}) {
|
|
1637
|
-
const M = V(
|
|
1638
|
-
(B) => {
|
|
1639
|
-
n(B), _ == null || _();
|
|
1640
|
-
},
|
|
1641
|
-
[n, _]
|
|
1642
|
-
);
|
|
1643
|
-
return /* @__PURE__ */ s.jsxs("div", { "data-slot": "chat-footer", className: gr.container, children: [
|
|
1644
|
-
!t && /* @__PURE__ */ s.jsx(
|
|
1645
|
-
vr,
|
|
1646
|
-
{
|
|
1647
|
-
suggestions: v,
|
|
1648
|
-
onSubmit: M
|
|
1649
|
-
}
|
|
1650
|
-
),
|
|
1651
|
-
f && /* @__PURE__ */ s.jsx(
|
|
1652
|
-
hr,
|
|
1653
|
-
{
|
|
1654
|
-
icon: f.icon,
|
|
1655
|
-
message: f.message,
|
|
1656
|
-
action: f.action,
|
|
1657
|
-
dismissible: f.dismissible,
|
|
1658
|
-
onDismiss: f.onDismiss
|
|
1659
|
-
}
|
|
1660
|
-
),
|
|
1661
|
-
/* @__PURE__ */ s.jsx(
|
|
1662
|
-
Bt,
|
|
1663
|
-
{
|
|
1664
|
-
value: t,
|
|
1665
|
-
onChange: n,
|
|
1666
|
-
onSubmit: r,
|
|
1667
|
-
onKeyDown: i,
|
|
1668
|
-
textareaRef: a,
|
|
1669
|
-
placeholder: c,
|
|
1670
|
-
isProcessing: l,
|
|
1671
|
-
fromCompact: h,
|
|
1672
|
-
onExpand: u,
|
|
1673
|
-
showExpandButton: !1,
|
|
1674
|
-
focusOnMount: C,
|
|
1675
|
-
customActions: j,
|
|
1676
|
-
actionOrder: I
|
|
1677
|
-
}
|
|
1678
|
-
)
|
|
1679
|
-
] });
|
|
1680
|
-
}
|
|
1681
|
-
const _r = "MessageActions-module_container", At = {
|
|
1682
|
-
container: _r
|
|
1683
|
-
};
|
|
1684
|
-
function Ot({ message: t }) {
|
|
1685
|
-
return !t.actions || t.actions.length === 0 ? null : /* @__PURE__ */ s.jsx(
|
|
1686
|
-
"div",
|
|
1687
|
-
{
|
|
1688
|
-
className: At.container,
|
|
1689
|
-
"data-visible": "true",
|
|
1690
|
-
role: "toolbar",
|
|
1691
|
-
"aria-label": "Message actions",
|
|
1692
|
-
children: t.actions.map((n) => /* @__PURE__ */ s.jsx(
|
|
1693
|
-
Q,
|
|
1694
|
-
{
|
|
1695
|
-
className: At.button,
|
|
1696
|
-
icon: n.icon,
|
|
1697
|
-
onClick: () => n.onClick(t),
|
|
1698
|
-
variant: "ghost",
|
|
1699
|
-
size: "sm",
|
|
1700
|
-
type: "button",
|
|
1701
|
-
disabled: n.disabled,
|
|
1702
|
-
title: n.tooltip || n.label,
|
|
1703
|
-
"aria-label": n.label,
|
|
1704
|
-
...n.tooltip && { title: n.tooltip }
|
|
1705
|
-
},
|
|
1706
|
-
n.id
|
|
1707
|
-
))
|
|
1708
|
-
}
|
|
1709
|
-
);
|
|
1710
|
-
}
|
|
1711
|
-
const Cr = "Message-module_message", br = "Message-module_user", xr = "Message-module_bubble", wr = "Message-module_error", Er = "Message-module_content", He = {
|
|
1712
|
-
message: Cr,
|
|
1713
|
-
user: br,
|
|
1714
|
-
bubble: xr,
|
|
1715
|
-
error: wr,
|
|
1716
|
-
content: Er
|
|
1717
|
-
}, Rr = We.forwardRef(
|
|
1718
|
-
function({ message: n, messageRenderer: r = _n }, i) {
|
|
1719
|
-
const a = () => /* @__PURE__ */ s.jsx(s.Fragment, { children: n.content.map((c, l) => {
|
|
1720
|
-
if (c.type === "text" && c.text)
|
|
1721
|
-
return /* @__PURE__ */ s.jsx(r, { children: c.text }, l);
|
|
1722
|
-
if (c.type === "component" && c.component) {
|
|
1723
|
-
const h = c.component;
|
|
1724
|
-
return /* @__PURE__ */ s.jsx(
|
|
1725
|
-
h,
|
|
1726
|
-
{
|
|
1727
|
-
...c.componentProps || {}
|
|
1728
|
-
},
|
|
1729
|
-
l
|
|
1730
|
-
);
|
|
1731
|
-
}
|
|
1732
|
-
return null;
|
|
1733
|
-
}) });
|
|
1734
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1735
|
-
ae.div,
|
|
1736
|
-
{
|
|
1737
|
-
ref: i,
|
|
1738
|
-
variants: Nt,
|
|
1739
|
-
initial: "hidden",
|
|
1740
|
-
animate: "visible",
|
|
1741
|
-
"data-slot": "message",
|
|
1742
|
-
"data-role": n.role,
|
|
1743
|
-
className: le(He.message, He[n.role]),
|
|
1744
|
-
children: [
|
|
1745
|
-
/* @__PURE__ */ s.jsxs("div", { className: He.content, children: [
|
|
1746
|
-
/* @__PURE__ */ s.jsx("div", { className: He.bubble, children: a() }),
|
|
1747
|
-
n.role !== "user" && /* @__PURE__ */ s.jsx(Ot, { message: n })
|
|
1748
|
-
] }),
|
|
1749
|
-
n.role === "user" && /* @__PURE__ */ s.jsx(Ot, { message: n })
|
|
1750
|
-
]
|
|
1751
|
-
}
|
|
1752
|
-
);
|
|
1753
|
-
}
|
|
1754
|
-
), Tr = "Messages-module_container", jr = "Messages-module_emptyState", ze = {
|
|
1755
|
-
container: Tr,
|
|
1756
|
-
emptyState: jr
|
|
1757
|
-
}, Lr = "Thinking-module_container", Sr = "Thinking-module_icon", Ar = "Thinking-module_content", Je = {
|
|
1758
|
-
container: Lr,
|
|
1759
|
-
icon: Sr,
|
|
1760
|
-
content: Ar
|
|
1761
|
-
}, Or = hn(
|
|
1762
|
-
We.forwardRef(
|
|
1763
|
-
function({ content: n = "Thinking…" }, r) {
|
|
1764
|
-
const i = pn(() => /* @__PURE__ */ s.jsx(Vt, {}), []);
|
|
1765
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1766
|
-
"div",
|
|
1767
|
-
{
|
|
1768
|
-
ref: r,
|
|
1769
|
-
"data-slot": "thinking",
|
|
1770
|
-
className: Je.container,
|
|
1771
|
-
children: [
|
|
1772
|
-
/* @__PURE__ */ s.jsx("div", { className: Je.icon, children: i }),
|
|
1773
|
-
/* @__PURE__ */ s.jsx("span", { className: Je.content, children: n })
|
|
1774
|
-
]
|
|
1775
|
-
}
|
|
1776
|
-
);
|
|
1777
|
-
}
|
|
1778
|
-
)
|
|
1779
|
-
);
|
|
1780
|
-
function Dr({
|
|
1781
|
-
messages: t,
|
|
1782
|
-
isProcessing: n,
|
|
1783
|
-
error: r,
|
|
1784
|
-
emptyView: i,
|
|
1785
|
-
fromCompact: a = !1,
|
|
1786
|
-
messageRenderer: c
|
|
1787
|
-
}) {
|
|
1788
|
-
const l = W(null), h = W([]), u = W(!0), f = W(null);
|
|
1789
|
-
return q(() => {
|
|
1790
|
-
const v = t.length > h.current.length;
|
|
1791
|
-
if (v && l.current) {
|
|
1792
|
-
const _ = l.current.querySelectorAll(
|
|
1793
|
-
'[data-slot="message"]'
|
|
1794
|
-
), C = _[_.length - 1];
|
|
1795
|
-
if (C) {
|
|
1796
|
-
const j = C.getBoundingClientRect().top - l.current.getBoundingClientRect().top + l.current.scrollTop, I = a && u.current ? "auto" : "smooth";
|
|
1797
|
-
l.current.scrollTo({
|
|
1798
|
-
top: j,
|
|
1799
|
-
behavior: I
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
if (v && f.current) {
|
|
1804
|
-
const C = t.slice(
|
|
1805
|
-
h.current.length
|
|
1806
|
-
).filter(
|
|
1807
|
-
(j) => j.role === "agent"
|
|
1808
|
-
);
|
|
1809
|
-
if (C.length > 0) {
|
|
1810
|
-
const I = C[C.length - 1].content.filter((M) => M.type === "text").map((M) => M.text).join(" ");
|
|
1811
|
-
I && (f.current.textContent = I);
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
u.current && (u.current = !1), h.current = t;
|
|
1815
|
-
}, [t, a]), t.length === 0 ? i ? /* @__PURE__ */ s.jsx(
|
|
1816
|
-
"div",
|
|
1817
|
-
{
|
|
1818
|
-
"data-slot": "messages",
|
|
1819
|
-
className: `${ze.container} ${ze.emptyState}`,
|
|
1820
|
-
ref: l,
|
|
1821
|
-
children: i
|
|
1822
|
-
}
|
|
1823
|
-
) : null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1824
|
-
/* @__PURE__ */ s.jsx(
|
|
1825
|
-
"div",
|
|
1826
|
-
{
|
|
1827
|
-
ref: f,
|
|
1828
|
-
"aria-live": "polite",
|
|
1829
|
-
"aria-atomic": "true",
|
|
1830
|
-
style: {
|
|
1831
|
-
position: "absolute",
|
|
1832
|
-
left: "-10000px",
|
|
1833
|
-
width: "1px",
|
|
1834
|
-
height: "1px",
|
|
1835
|
-
overflow: "hidden"
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
),
|
|
1839
|
-
/* @__PURE__ */ s.jsx(
|
|
1840
|
-
"div",
|
|
1841
|
-
{
|
|
1842
|
-
"data-slot": "messages",
|
|
1843
|
-
className: ze.container,
|
|
1844
|
-
ref: l,
|
|
1845
|
-
children: /* @__PURE__ */ s.jsxs(tt, { mode: "popLayout", children: [
|
|
1846
|
-
t.map((v) => /* @__PURE__ */ s.jsx(
|
|
1847
|
-
Rr,
|
|
1848
|
-
{
|
|
1849
|
-
message: v,
|
|
1850
|
-
messageRenderer: c
|
|
1851
|
-
},
|
|
1852
|
-
v.id
|
|
1853
|
-
)),
|
|
1854
|
-
n && /* @__PURE__ */ s.jsx(Or, {}),
|
|
1855
|
-
r && /* @__PURE__ */ s.jsx(
|
|
1856
|
-
"div",
|
|
1857
|
-
{
|
|
1858
|
-
className: "error-message",
|
|
1859
|
-
style: {
|
|
1860
|
-
color: "var(--color-destructive)",
|
|
1861
|
-
padding: "1rem",
|
|
1862
|
-
textAlign: "center"
|
|
1863
|
-
},
|
|
1864
|
-
children: r
|
|
1865
|
-
}
|
|
1866
|
-
)
|
|
1867
|
-
] })
|
|
1868
|
-
}
|
|
1869
|
-
)
|
|
1870
|
-
] });
|
|
1871
|
-
}
|
|
1872
|
-
const Ir = "ConversationView-module_container", Pr = "ConversationView-module_withHeader", Dt = {
|
|
1873
|
-
container: Ir,
|
|
1874
|
-
withHeader: Pr
|
|
1875
|
-
};
|
|
1876
|
-
function It({
|
|
1877
|
-
messages: t,
|
|
1878
|
-
error: n,
|
|
1879
|
-
inputValue: r,
|
|
1880
|
-
onInputChange: i,
|
|
1881
|
-
onSubmit: a,
|
|
1882
|
-
onKeyDown: c,
|
|
1883
|
-
textareaRef: l,
|
|
1884
|
-
placeholder: h,
|
|
1885
|
-
isProcessing: u,
|
|
1886
|
-
fromCompact: f = !1,
|
|
1887
|
-
showHeader: v = !1,
|
|
1888
|
-
onClose: _,
|
|
1889
|
-
onExpand: C,
|
|
1890
|
-
notice: j,
|
|
1891
|
-
emptyView: I,
|
|
1892
|
-
suggestions: M,
|
|
1893
|
-
clearSuggestions: B,
|
|
1894
|
-
messageRenderer: $,
|
|
1895
|
-
focusOnMount: A = !1
|
|
1896
|
-
}) {
|
|
1897
|
-
return q(() => {
|
|
1898
|
-
const g = (p) => {
|
|
1899
|
-
p.key === "Escape" && _ && _();
|
|
1900
|
-
};
|
|
1901
|
-
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
1902
|
-
}, [_]), /* @__PURE__ */ s.jsxs(
|
|
1903
|
-
"div",
|
|
1904
|
-
{
|
|
1905
|
-
"data-slot": "conversation-view",
|
|
1906
|
-
className: `${Dt.container}${v ? ` ${Dt.withHeader}` : ""}`,
|
|
1907
|
-
children: [
|
|
1908
|
-
v && /* @__PURE__ */ s.jsx(or, { onClose: _ }),
|
|
1909
|
-
/* @__PURE__ */ s.jsx(
|
|
1910
|
-
Dr,
|
|
1911
|
-
{
|
|
1912
|
-
messages: t,
|
|
1913
|
-
isProcessing: u,
|
|
1914
|
-
error: n,
|
|
1915
|
-
emptyView: I,
|
|
1916
|
-
fromCompact: f,
|
|
1917
|
-
messageRenderer: $
|
|
1918
|
-
}
|
|
1919
|
-
),
|
|
1920
|
-
/* @__PURE__ */ s.jsx(
|
|
1921
|
-
yr,
|
|
1922
|
-
{
|
|
1923
|
-
inputValue: r,
|
|
1924
|
-
onInputChange: i,
|
|
1925
|
-
onSubmit: a,
|
|
1926
|
-
onKeyDown: c,
|
|
1927
|
-
textareaRef: l,
|
|
1928
|
-
placeholder: h,
|
|
1929
|
-
isProcessing: u,
|
|
1930
|
-
fromCompact: f,
|
|
1931
|
-
onExpand: C,
|
|
1932
|
-
notice: j,
|
|
1933
|
-
suggestions: M,
|
|
1934
|
-
clearSuggestions: B,
|
|
1935
|
-
focusOnMount: A
|
|
1936
|
-
}
|
|
1937
|
-
)
|
|
1938
|
-
]
|
|
1939
|
-
}
|
|
1940
|
-
);
|
|
1941
|
-
}
|
|
1942
|
-
const Fr = "Chat-module_container", Mr = "Chat-module_embedded", kr = "Chat-module_floating", $r = "Chat-module_content", je = {
|
|
1943
|
-
container: Fr,
|
|
1944
|
-
embedded: Mr,
|
|
1945
|
-
floating: kr,
|
|
1946
|
-
content: $r
|
|
1947
|
-
}, k = {
|
|
1948
|
-
COLLAPSED_SIZE: 56,
|
|
1949
|
-
COMPACT_WIDTH: 372,
|
|
1950
|
-
EXPANDED_HEIGHT: 520,
|
|
1951
|
-
AUTO_COLLAPSE_DELAY: 1500,
|
|
1952
|
-
BORDER_RADIUS: 24,
|
|
1953
|
-
PADDING: 16,
|
|
1954
|
-
VIEWPORT_OFFSET: 16
|
|
1955
|
-
}, Le = {
|
|
1956
|
-
SPRING_CONFIG: {
|
|
1957
|
-
type: "spring",
|
|
1958
|
-
damping: 25,
|
|
1959
|
-
stiffness: 300
|
|
1960
|
-
},
|
|
1961
|
-
VELOCITY_MULTIPLIER: 0.1,
|
|
1962
|
-
NON_DRAGGABLE_SELECTORS: [
|
|
1963
|
-
'[data-slot="message"]',
|
|
1964
|
-
'[data-slot="chat-input"]',
|
|
1965
|
-
'[data-slot="chat-footer"]'
|
|
1966
|
-
].join(", ")
|
|
1967
|
-
};
|
|
1968
|
-
function Hr({
|
|
1969
|
-
messages: t,
|
|
1970
|
-
isProcessing: n,
|
|
1971
|
-
error: r,
|
|
1972
|
-
onSubmit: i,
|
|
1973
|
-
variant: a = "floating",
|
|
1974
|
-
triggerIcon: c,
|
|
1975
|
-
placeholder: l = Ht,
|
|
1976
|
-
notice: h,
|
|
1977
|
-
onOpen: u,
|
|
1978
|
-
onExpand: f,
|
|
1979
|
-
onClose: v,
|
|
1980
|
-
emptyView: _,
|
|
1981
|
-
floatingChatState: C,
|
|
1982
|
-
suggestions: j,
|
|
1983
|
-
clearSuggestions: I,
|
|
1984
|
-
messageRenderer: M,
|
|
1985
|
-
className: B
|
|
1986
|
-
}) {
|
|
1987
|
-
const [$, A] = Ne(""), g = xn(C), p = W(!1), m = W(!1), b = W(!1);
|
|
1988
|
-
q(() => {
|
|
1989
|
-
p.current = !1, m.current = !1, b.current = !1;
|
|
1990
|
-
}, [g.state]);
|
|
1991
|
-
const L = W(/* @__PURE__ */ new Set()), O = V(() => {
|
|
1992
|
-
L.current.forEach((E) => {
|
|
1993
|
-
clearTimeout(E);
|
|
1994
|
-
}), L.current.clear();
|
|
1995
|
-
}, []), R = wn({
|
|
1996
|
-
value: $,
|
|
1997
|
-
setValue: A,
|
|
1998
|
-
onSubmit: async (E) => {
|
|
1999
|
-
g.state !== "expanded" && (f == null || f()), g.setState("expanded"), await i(E);
|
|
2000
|
-
},
|
|
2001
|
-
isProcessing: n
|
|
2002
|
-
}), [ue, Be] = Ne(56), [fe, X] = Ne(
|
|
2003
|
-
"left"
|
|
2004
|
-
), K = W(null), z = W(null), J = W(null), ne = yt(0), re = yt(0), de = vn(), Ae = V(() => {
|
|
2005
|
-
p.current = !0, g.open(), u == null || u();
|
|
2006
|
-
}, [g, u]), ie = V(() => {
|
|
2007
|
-
var H, Y, Z;
|
|
2008
|
-
const E = (Y = (H = J.current) == null ? void 0 : H.ownerDocument) == null ? void 0 : Y.activeElement;
|
|
2009
|
-
return !(E && ((Z = J.current) != null && Z.contains(E)) || $.trim());
|
|
2010
|
-
}, [$, J]), Oe = (E) => E === "collapsed" ? k.COLLAPSED_SIZE : E === "compact" ? ue : k.EXPANDED_HEIGHT, De = V(() => {
|
|
2011
|
-
if (g.state === "collapsed" && (g.setState("compact"), g.initialState === "collapsed")) {
|
|
2012
|
-
const E = setTimeout(() => {
|
|
2013
|
-
g.state === "compact" && ie() && g.setState("collapsed"), L.current.delete(E);
|
|
2014
|
-
}, k.AUTO_COLLAPSE_DELAY);
|
|
2015
|
-
L.current.add(E);
|
|
2016
|
-
}
|
|
2017
|
-
}, [g, ie]), Ie = V(() => {
|
|
2018
|
-
if (g.initialState === "collapsed" && g.state === "compact" && ie()) {
|
|
2019
|
-
const E = setTimeout(() => {
|
|
2020
|
-
g.state === "compact" && ie() && g.setState("collapsed"), L.current.delete(E);
|
|
2021
|
-
}, k.AUTO_COLLAPSE_DELAY);
|
|
2022
|
-
L.current.add(E);
|
|
2023
|
-
}
|
|
2024
|
-
}, [g, ie]), Ce = V(async () => {
|
|
2025
|
-
if (R.value.trim()) {
|
|
2026
|
-
const E = R.value.trim();
|
|
2027
|
-
R.clear(), g.state !== "expanded" && (f == null || f()), g.setState("expanded"), await i(E);
|
|
2028
|
-
}
|
|
2029
|
-
}, [R, i, g, f]), oe = V(() => {
|
|
2030
|
-
b.current = !0, f == null || f(), g.setState("expanded");
|
|
2031
|
-
}, [f, g]), be = V(() => {
|
|
2032
|
-
m.current = !0, R.clear(), g.close(), v && v();
|
|
2033
|
-
}, [R, g, v]), ee = V(
|
|
2034
|
-
(E) => {
|
|
2035
|
-
if (!J.current || !z.current)
|
|
2036
|
-
return null;
|
|
2037
|
-
const H = J.current.getBoundingClientRect(), Y = z.current.getBoundingClientRect(), Z = window.getComputedStyle(J.current), se = new DOMMatrixReadOnly(Z.transform), we = H.x - se.e, te = H.y - se.f, Ye = (E ?? fe) === "left" ? Y.left : Y.right - k.COMPACT_WIDTH, Ee = Y.bottom - k.EXPANDED_HEIGHT;
|
|
2038
|
-
return {
|
|
2039
|
-
x: Ye - we,
|
|
2040
|
-
y: Ee - te
|
|
2041
|
-
};
|
|
2042
|
-
},
|
|
2043
|
-
[fe]
|
|
2044
|
-
), xe = V(
|
|
2045
|
-
(E) => {
|
|
2046
|
-
E.target.closest(
|
|
2047
|
-
Le.NON_DRAGGABLE_SELECTORS
|
|
2048
|
-
) || de.start(E.nativeEvent);
|
|
2049
|
-
},
|
|
2050
|
-
[de]
|
|
2051
|
-
), he = V(
|
|
2052
|
-
(E, H) => {
|
|
2053
|
-
const Y = H.point.x, Z = k.COMPACT_WIDTH, se = (window.innerWidth - Z) / 2, te = Y < se ? "left" : "right";
|
|
2054
|
-
X(te);
|
|
2055
|
-
const pe = ee(te);
|
|
2056
|
-
pe && (_t(ne, pe.x, {
|
|
2057
|
-
...Le.SPRING_CONFIG,
|
|
2058
|
-
velocity: H.velocity.x * Le.VELOCITY_MULTIPLIER
|
|
2059
|
-
}), _t(re, pe.y, {
|
|
2060
|
-
...Le.SPRING_CONFIG,
|
|
2061
|
-
velocity: H.velocity.y * Le.VELOCITY_MULTIPLIER
|
|
2062
|
-
}));
|
|
2063
|
-
},
|
|
2064
|
-
[ne, re, ee]
|
|
2065
|
-
), Pe = W(g.state), Fe = Pe.current === "compact" && g.state === "expanded";
|
|
2066
|
-
return q(() => {
|
|
2067
|
-
O(), Pe.current = g.state;
|
|
2068
|
-
}, [g.state, O]), q(() => {
|
|
2069
|
-
if (g.state !== "expanded")
|
|
2070
|
-
return;
|
|
2071
|
-
const E = () => {
|
|
2072
|
-
const H = ee();
|
|
2073
|
-
H && (ne.set(H.x), re.set(H.y));
|
|
2074
|
-
};
|
|
2075
|
-
return window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
|
|
2076
|
-
}, [g.state, ne, re, ee]), q(() => {
|
|
2077
|
-
const E = L.current;
|
|
2078
|
-
return () => {
|
|
2079
|
-
E.forEach((H) => {
|
|
2080
|
-
clearTimeout(H);
|
|
2081
|
-
}), E.clear();
|
|
2082
|
-
};
|
|
2083
|
-
}, []), q(() => {
|
|
2084
|
-
if (g.state === "compact" && K.current) {
|
|
2085
|
-
const E = K.current.scrollHeight + k.PADDING;
|
|
2086
|
-
Be(E);
|
|
2087
|
-
}
|
|
2088
|
-
}, [g.state, R.value]), a === "embedded" ? /* @__PURE__ */ s.jsx(
|
|
2089
|
-
"div",
|
|
2090
|
-
{
|
|
2091
|
-
"data-slot": "chat-embedded",
|
|
2092
|
-
className: le(B, je.container, je.embedded),
|
|
2093
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2094
|
-
It,
|
|
2095
|
-
{
|
|
2096
|
-
messages: t,
|
|
2097
|
-
inputValue: R.value,
|
|
2098
|
-
onInputChange: R.setValue,
|
|
2099
|
-
onSubmit: Ce,
|
|
2100
|
-
onKeyDown: R.handleKeyDown,
|
|
2101
|
-
textareaRef: R.textareaRef,
|
|
2102
|
-
placeholder: l,
|
|
2103
|
-
isProcessing: n,
|
|
2104
|
-
showHeader: !1,
|
|
2105
|
-
notice: h,
|
|
2106
|
-
suggestions: j,
|
|
2107
|
-
clearSuggestions: I,
|
|
2108
|
-
error: r,
|
|
2109
|
-
emptyView: _,
|
|
2110
|
-
messageRenderer: M,
|
|
2111
|
-
onExpand: oe,
|
|
2112
|
-
focusOnMount: b.current
|
|
2113
|
-
}
|
|
2114
|
-
)
|
|
2115
|
-
}
|
|
2116
|
-
) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2117
|
-
/* @__PURE__ */ s.jsx(
|
|
2118
|
-
"div",
|
|
2119
|
-
{
|
|
2120
|
-
ref: z,
|
|
2121
|
-
style: {
|
|
2122
|
-
position: "fixed",
|
|
2123
|
-
top: k.VIEWPORT_OFFSET,
|
|
2124
|
-
left: k.VIEWPORT_OFFSET,
|
|
2125
|
-
right: k.VIEWPORT_OFFSET,
|
|
2126
|
-
bottom: k.VIEWPORT_OFFSET,
|
|
2127
|
-
pointerEvents: "none"
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
),
|
|
2131
|
-
/* @__PURE__ */ s.jsx(
|
|
2132
|
-
ae.div,
|
|
2133
|
-
{
|
|
2134
|
-
ref: J,
|
|
2135
|
-
"data-slot": "chat-floating",
|
|
2136
|
-
className: le(B, je.container, je.floating),
|
|
2137
|
-
onMouseLeave: g.state === "compact" ? Ie : void 0,
|
|
2138
|
-
drag: g.state === "expanded",
|
|
2139
|
-
dragControls: de,
|
|
2140
|
-
dragListener: !1,
|
|
2141
|
-
dragConstraints: z,
|
|
2142
|
-
dragMomentum: !1,
|
|
2143
|
-
dragElastic: 0.1,
|
|
2144
|
-
dragTransition: { power: 0.1, timeConstant: 100 },
|
|
2145
|
-
onDragEnd: he,
|
|
2146
|
-
onPointerDown: xe,
|
|
2147
|
-
style: {
|
|
2148
|
-
x: ne,
|
|
2149
|
-
y: re,
|
|
2150
|
-
bottom: k.VIEWPORT_OFFSET,
|
|
2151
|
-
left: k.VIEWPORT_OFFSET
|
|
2152
|
-
},
|
|
2153
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2154
|
-
ae.div,
|
|
2155
|
-
{
|
|
2156
|
-
layout: !0,
|
|
2157
|
-
className: je.content,
|
|
2158
|
-
initial: !1,
|
|
2159
|
-
animate: {
|
|
2160
|
-
width: g.state === "collapsed" ? k.COLLAPSED_SIZE : k.COMPACT_WIDTH,
|
|
2161
|
-
height: Oe(g.state),
|
|
2162
|
-
x: g.state === "collapsed" && fe === "right" ? k.COMPACT_WIDTH - k.COLLAPSED_SIZE : 0,
|
|
2163
|
-
transition: R.value.trim() ? { duration: 0 } : at
|
|
2164
|
-
},
|
|
2165
|
-
style: {
|
|
2166
|
-
borderRadius: k.BORDER_RADIUS
|
|
2167
|
-
},
|
|
2168
|
-
children: /* @__PURE__ */ s.jsxs(tt, { mode: "wait", children: [
|
|
2169
|
-
g.state === "collapsed" && /* @__PURE__ */ s.jsx(
|
|
2170
|
-
Gn,
|
|
2171
|
-
{
|
|
2172
|
-
icon: c,
|
|
2173
|
-
onClick: Ae,
|
|
2174
|
-
onHover: De,
|
|
2175
|
-
focusOnMount: m.current
|
|
2176
|
-
},
|
|
2177
|
-
"collapsed"
|
|
2178
|
-
),
|
|
2179
|
-
g.state === "compact" && /* @__PURE__ */ s.jsx("div", { ref: K, children: /* @__PURE__ */ s.jsx(
|
|
2180
|
-
rr,
|
|
2181
|
-
{
|
|
2182
|
-
value: R.value,
|
|
2183
|
-
onChange: R.setValue,
|
|
2184
|
-
onSubmit: Ce,
|
|
2185
|
-
onKeyDown: R.handleKeyDown,
|
|
2186
|
-
textareaRef: R.textareaRef,
|
|
2187
|
-
placeholder: l,
|
|
2188
|
-
isProcessing: n,
|
|
2189
|
-
onBlur: Ie,
|
|
2190
|
-
onExpand: oe,
|
|
2191
|
-
showExpandButton: !R.value.trim(),
|
|
2192
|
-
focusOnMount: p.current
|
|
2193
|
-
},
|
|
2194
|
-
"compact"
|
|
2195
|
-
) }),
|
|
2196
|
-
g.state === "expanded" && /* @__PURE__ */ s.jsx(
|
|
2197
|
-
It,
|
|
2198
|
-
{
|
|
2199
|
-
messages: t,
|
|
2200
|
-
inputValue: R.value,
|
|
2201
|
-
onInputChange: R.setValue,
|
|
2202
|
-
onSubmit: Ce,
|
|
2203
|
-
onKeyDown: R.handleKeyDown,
|
|
2204
|
-
textareaRef: R.textareaRef,
|
|
2205
|
-
placeholder: l,
|
|
2206
|
-
isProcessing: n,
|
|
2207
|
-
showHeader: !0,
|
|
2208
|
-
onClose: be,
|
|
2209
|
-
fromCompact: Fe,
|
|
2210
|
-
notice: h,
|
|
2211
|
-
suggestions: j,
|
|
2212
|
-
clearSuggestions: I,
|
|
2213
|
-
error: r,
|
|
2214
|
-
emptyView: _,
|
|
2215
|
-
messageRenderer: M,
|
|
2216
|
-
onExpand: oe,
|
|
2217
|
-
focusOnMount: b.current
|
|
2218
|
-
},
|
|
2219
|
-
"expanded"
|
|
2220
|
-
)
|
|
2221
|
-
] })
|
|
2222
|
-
}
|
|
2223
|
-
)
|
|
2224
|
-
}
|
|
2225
|
-
)
|
|
2226
|
-
] });
|
|
2227
|
-
}
|
|
2228
|
-
const di = ({
|
|
2229
|
-
messages: t,
|
|
2230
|
-
isProcessing: n,
|
|
2231
|
-
error: r,
|
|
2232
|
-
onSubmit: i,
|
|
2233
|
-
variant: a = "floating",
|
|
2234
|
-
triggerIcon: c,
|
|
2235
|
-
placeholder: l,
|
|
2236
|
-
notice: h,
|
|
2237
|
-
emptyView: u,
|
|
2238
|
-
onOpen: f,
|
|
2239
|
-
onExpand: v,
|
|
2240
|
-
onClose: _,
|
|
2241
|
-
floatingChatState: C,
|
|
2242
|
-
suggestions: j,
|
|
2243
|
-
clearSuggestions: I,
|
|
2244
|
-
messageRenderer: M,
|
|
2245
|
-
className: B
|
|
2246
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
2247
|
-
Hr,
|
|
2248
|
-
{
|
|
2249
|
-
messages: t,
|
|
2250
|
-
isProcessing: n,
|
|
2251
|
-
error: r,
|
|
2252
|
-
onSubmit: i,
|
|
2253
|
-
variant: a,
|
|
2254
|
-
triggerIcon: c,
|
|
2255
|
-
placeholder: l,
|
|
2256
|
-
notice: h,
|
|
2257
|
-
emptyView: u,
|
|
2258
|
-
onOpen: f,
|
|
2259
|
-
onExpand: v,
|
|
2260
|
-
onClose: _,
|
|
2261
|
-
floatingChatState: C,
|
|
2262
|
-
suggestions: j,
|
|
2263
|
-
clearSuggestions: I,
|
|
2264
|
-
messageRenderer: M,
|
|
2265
|
-
className: le("agenttic", B)
|
|
2266
|
-
}
|
|
2267
|
-
);
|
|
2268
|
-
function hi({ className: t, size: n = 24 }) {
|
|
2269
|
-
return /* @__PURE__ */ s.jsx(
|
|
2270
|
-
"svg",
|
|
2271
|
-
{
|
|
2272
|
-
width: n,
|
|
2273
|
-
height: n,
|
|
2274
|
-
viewBox: "0 0 24 24",
|
|
2275
|
-
fill: "none",
|
|
2276
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2277
|
-
className: t,
|
|
2278
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2279
|
-
"path",
|
|
2280
|
-
{
|
|
2281
|
-
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",
|
|
2282
|
-
fill: "currentColor"
|
|
2283
|
-
}
|
|
2284
|
-
)
|
|
2285
|
-
}
|
|
2286
|
-
);
|
|
2287
|
-
}
|
|
2288
|
-
function pi({ className: t, size: n = 24 }) {
|
|
2289
|
-
return /* @__PURE__ */ s.jsx(
|
|
2290
|
-
"svg",
|
|
2291
|
-
{
|
|
2292
|
-
width: n,
|
|
2293
|
-
height: n,
|
|
2294
|
-
viewBox: "0 0 24 24",
|
|
2295
|
-
fill: "none",
|
|
2296
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2297
|
-
className: t,
|
|
2298
|
-
"aria-hidden": "true",
|
|
2299
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2300
|
-
"path",
|
|
2301
|
-
{
|
|
2302
|
-
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",
|
|
2303
|
-
fill: "currentColor"
|
|
2304
|
-
}
|
|
2305
|
-
)
|
|
2306
|
-
}
|
|
2307
|
-
);
|
|
2308
|
-
}
|
|
2309
|
-
function vi({ className: t, size: n = 24 }) {
|
|
2310
|
-
return /* @__PURE__ */ s.jsx(
|
|
2311
|
-
"svg",
|
|
2312
|
-
{
|
|
2313
|
-
width: n,
|
|
2314
|
-
height: n,
|
|
2315
|
-
viewBox: "0 0 24 24",
|
|
2316
|
-
fill: "none",
|
|
2317
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2318
|
-
className: t,
|
|
2319
|
-
"aria-hidden": "true",
|
|
2320
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2321
|
-
"path",
|
|
2322
|
-
{
|
|
2323
|
-
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",
|
|
2324
|
-
fill: "currentColor"
|
|
2325
|
-
}
|
|
2326
|
-
)
|
|
2327
|
-
}
|
|
2328
|
-
);
|
|
2329
|
-
}
|
|
2330
|
-
function mi({ className: t, size: n = 24 }) {
|
|
2331
|
-
return /* @__PURE__ */ s.jsx(
|
|
2332
|
-
"svg",
|
|
2333
|
-
{
|
|
2334
|
-
width: n,
|
|
2335
|
-
height: n,
|
|
2336
|
-
viewBox: "0 0 24 24",
|
|
2337
|
-
fill: "none",
|
|
2338
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2339
|
-
className: t,
|
|
2340
|
-
"aria-hidden": "true",
|
|
2341
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2342
|
-
"path",
|
|
2343
|
-
{
|
|
2344
|
-
fillRule: "evenodd",
|
|
2345
|
-
clipRule: "evenodd",
|
|
2346
|
-
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",
|
|
2347
|
-
fill: "currentColor"
|
|
2348
|
-
}
|
|
2349
|
-
)
|
|
2350
|
-
}
|
|
2351
|
-
);
|
|
2352
|
-
}
|
|
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";
|
|
2353
2
|
export {
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
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
|
|
2373
43
|
};
|